Welcome in this article we are going to create app, get a machine setup and set app to real phone and finally we will send a message to Logcat window as well. So lets get started.
We need to make a “New android application Project”.
Image may be NSFW.
Clik here to view.
After that we have to fill the following window.
Image may be NSFW.
Clik here to view.
Here we have some different blanks that we have to fill.
Application Name: Now its a time to give a name to your project . I give “Awesome ” as Application name.
Project Name : Is the name we are going to inside the android workspace.We could keep this the same as Application name, but just for the sake of more understanding we give it different name as “AwesomeNew”
Package Name: This must a unique name as it is unique identifier for your application. My package name should be different to your package name , otherwise user will not be able to have two application of same at a time inside the device.
Minimum Required SDK: This is the lowest version of android that your application will support. Today i am going to change it to API 17 and see later what will happen after that.
Target SDK: This is the highest API level that the application is known to work with.
Lets click Next.
Image may be NSFW.
Clik here to view.
Tick “Create Customer Launcher Icon” and “Create Activity” and press Next.
Image may be NSFW.
Clik here to view.
Let have some colorful Launcher Icon with “Awesome” as a text and with different foreground and background color. I have learnt you how to create ”Launcher Icon” according to your choice in previous article.
Image may be NSFW.
Clik here to view.
Lets create a MainActivity as blank activity, and click finish. Keep in my that our main task is to run the android application on real phone instead of emulator. For this we have to install and make some changing on machine side and on android phone.
On machine side you need to install USB driver and on phone side we need to change our debugging mode. To do changing on the machine side ( both for Linux and Windows) go to android development side (developer.android.com) and follow the instruction , you need to go through that depends upon the type of your system.
Image may be NSFW.
Clik here to view.
Now on phone side go to Settings > Developer Options and check either your developer options is ON/OFF.
Image may be NSFW.
Clik here to view.
Right now my developer options are OFF , so i have to make it ON.
Image may be NSFW.
Clik here to view.After Clicking OK you have with couple of options . You have to Tick ” USB Debugging ” and stay awake and click OK to notification that you will see. Now you will able to send your apps directly to your android phone.
Image may be NSFW.
Clik here to view.