Android application for controlling Intel Edison using MQTT
In the previous section, we saw how an Android application can be used to subscribe and publish to a channel using a broker. Here, in this section, we'll develop our own Android application for controlling the device using MQTT. The section won't concentrate on the set up of the Android, but will concentrate on the development side of it. We're going to use the Android Studio IDE for the development of the application. Make sure it's configured with all the latest SDKs.
Open your Android Studio
:

Android Studio—1
Now, select Start a new Android Studio project
:

Android Studio—set up application name
Enter a name for your application; here, we've entered MQTT
. Click on Next
to continue:

Android Studio: set API level
Now select the Minimum SDK
version. Select API 23: Android 6.0 (Marshmallow)
. Now let's select the type of activity:

Set activity
Select Empty Activity
and click on Next
:

Set start-up activity name
Give a name to your activity and...