How to Install Openfire XMPP Server and Use it with Smack Android App From Emulator

Openfire is an widely used XMPP Server that is written in the Java programming language. It boasts  an intuitive and easy to use dashboard where your setup is just interacting with the UI and you can get complex setups done very easily. In this tutorial we are focusing on installing Openfire for use with a Smack based Android App on the local machine were Android Studio is installed. It is in response to my students from the course Build an Android Chat App from Scratch using XMPP and Smack, who happen to need this in big numbers. Let’s get started.Continue reading

Sending and Receiving Files with XMPP : Http File Upload Explained



In the previous tutorials, we covered the basics on XMPP and visited the Roster and saw how you can add your contacts in XMPP. In this one, we’re tackling an important problem of sending and receiving files.Everybody expects an instant messenger these days to be able to send and receive any kind of file. XMPP being one of the competing Instant Messaging Protocols, has attempted to come up with ways to allow the sending and receiving of files but most of the techniques highly depend on there being a single peer to peer connection( sender to receiver) over which the files are sent.

This becomes a problem in today’s expectations where you need to send the files in group chats, multiple connected clients on the same account. Simply put, a better tool for the job was needed and most people where alreadyContinue reading

How to scan QR Code in Android Apps

If you’re here, you probably need to integrate QR Code functionality into your existing android app. We are doing just that. When it comes to scanning and generating QR Codes into your android apps and for any platform out there for that matter,zxing comes among the libraries that can help. Rightfully so. It is the best in my opinion.

QR Code scanning on android can have a huge amount of details and most of the time the developer just wants to start some activity and get the result. That’s why we created a library to help you do that. No more talking, lets do some work.Continue reading

Android Smack XMPP Introduction:Building a Simple Client

rooster_full_chat_processedXmpp is a protocol for Presence and Messaging , and Smack is a Java/android implementation of the protocol that helps developers build fast client applications.When one embarks on the journey to build android chat apps based on xmpp using Smack ,there are a lot of pitfalls one can come across as you are trying to combine the three worlds of Java , Android and the Xmpp protocol itself to build one coherent product.This tutorial aims at documenting these and possible ways to mitigate them.By the end of this tutorial ,you will have an android chat client that can connect to and XMPP server , send and receive messages .Most importantly ,you will learn the android plumbing necessary to get all this rolling.Lets get started.Shall we.Continue reading

Android Health App Design : Saving Data in SQLite Database

android_sqliteThe last tutorial left our health android app ,Imirire usable by the user for the first time .Users could select foods , input gram counts and have the total calorie count displayed right away.Did we mention that it was more pleasing to the eye? 😉 ,In this tutorial we are going to improve the model of our application and let it save its data in an SQLite database.Along the way ,we ll discuss some practical tips to go by when debugging database applications on the android platform.Continue reading

Android Health App : Handling User Input

android_imirire_user_input_events_menu_displayedThe last turorial in this series left us with a pretty user interface that is dumb in one way : it didn’t handle user input ,in other words we want the calorie total count to be constantly updated as users input grams in EditTexts for chosen foods.We are going to change that in this tutorial.We will also look at how ridiculously easy it is to add menus to your apps so the user can perfrom other stuff on your app.Let’s get our hands dirty making our app better.Continue reading

Android Health App Design : User Interface Made Beautiful

android_imirire_add_foodsThe previous tutorial of our series left imirire list view showing up nice and clean but it is no secret it looks awful .In this article we are going to fix that.In that regard ,we modify the text display to resemble a calculator display screen ,change the lists items so they fill up the width of the screen and fill our model with more realistic data the user can work with.Lets just jump right in.Continue reading

Android ,Working with Fragments.

android_proud_iconIf you know what an activity is in android ,then you have probably crossed paths with the Fragment concept.The android documentation defines it as a behavior or a portion of user interface in an Activity .It is a stripped down version of an activity that can handle its own lifecycle events but that still needs an activity to host it.I have found a lot of examples that explain how to use fragments but none was focused enough to cover the features I need the most like static fragmentsContinue reading

Android health app Design , building the ListView with Model View Controller Pattern

MVCIn a previous tutorial ,we created the Android Studio project for our app but we really didn’t do anything fun and interesting.This is where the fun begins as they say.We are going to add a list view to our app ,following the Model View Controller Design Pattern ,we are going to wire the list view to our internal model so our app is flexible from the developer’s perspective,in this regard Adapters and ViewHolders are introduced.Along the way we will discuss some design choices we make to make our app the best Calorie Counter app the earth has ever seen… 😉 ,lets get going.Continue reading

New health android killer app idea :Imirire

android_health_appLately I have been working on my android skills as I have a few projects I will need to use them in the near future and I was hunting for ideas on a simple and and yet useful project that I could start and build as I learn new things .

One of my motivations to learn android is that I want to familiarize myself with native mobile device programming.I have been writing desktop applications for a few years now mainly using the Qt framework .Qt is super perfect for desktop applications .While being a cross platform Continue reading