Pages

Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Wednesday, 24 August 2016

Android App Development For Beginners - Running application through hardware Device.

Hello everyone,

As we discussed already We can run our Developed Application either through Emulator provided by Android studio or through a Hardware Device(your own Android Device).

If you are not go through the previous tutorials for setting up environment and to develop and run your first android Application. Please go to the below links to read those tutorials

Environmental Set Up
Developing Hello World Application and running through Emulator.

How to Run your Android App through Hardware Device.

1. Enable USB Debugging  in your Android Device.

Go to settings--> Find Developer Options --> find USB Debugging and select that if not selected.

If you are not able to see any option like Developer Options. Just Click on About Device Then Click on Build Number 7 times. Then a message will appear saying Developer option is enable. Now you can developer Options under settings, then select USB Debugging.

2.Connect you Device through USB to your Laptop/Desktop.

3. Install the Drivers if the Drivers are not already present. For drivers you can go to your mobile company website to download USB Drivers for your Device.

4. Click on Run in the header of Android Studio , select Run App then Select your Mobile which will appear in the List.

This will install the apk file in your Mobile. Your Application is ready to test in your Device itself. By this way you can test offline as well.

Please let me know if you are facing any issues.

We will see about Different Layouts in Android in coming Tutorials, then we will look at actual Development.

Thanks.

Monday, 22 August 2016

Android App Development for Beginners - Developing First Android Application

Hello Everyone,

In this tutorial we will see how to create our very first Android Application and how to run that App.

As we have already seen how to do environment setup in your system to start developing your Android Application. If you are not followed that Tutorial , please click the Link below to know about Environment set up for Android Application.

Environmental Setup


Once your JDK is downloaded and Android Studio is installed we are good to start our first Application. So, lets get started.

1. Open Android Studio .Give your Application name and leave the domain and location to the default values. Please find the screenshot below:




2. Select Target Devices as Phone and Tablet. Un select the other options as of now

Please select the Minimum SDK on which your app should run. Better to select Jelly bean as still many android devices running on that version as on 22nd August 2016. Please find the screenshot below




3. Add an Activity to your mobile:

The next page asks for creating an activity. In this page you will see different layouts which you can select. Depending on the Activity you selected the activity_main.xml(Main file for designing) will be designed. So, as of now just select a Blank activity and click next.





4. Customize Activity : Leave the fields to here default values and click Finish.

Once the Android Studio Click on project on the left side to open the project and the 2 important files you need to know as of now is
1.MainActivity.java under java folder and
2. activity_main.xml under res--> layout folder .

Just click on activity_main.xml and and click on Design on the bottom tabs and you will be able to see a mobile showing Hello World.




Now Click on Text tab just beside text tab and Change the Hello World to some text which you like "Hey this is my my android page". Just click design back and you should be able to the new message on the mobile now.

Running Android Application:
1. On the Header of Android studio click on run and run app and create a emulator where you can run the app.

Note: As I said there may be some processors having issue in creating virtual device along with android studio that case you cannot run on Emulator. In that cases you have your hardware device to run the App.

We will see how to do that in next tutorial.We will learn developing new designs for your Android Application in coming tutorials. Stay tuned. Please comment below for any questions on running your first app.

Thank you.


Sunday, 21 August 2016

How to Start Android App Development for Beginners - Environment Set up

Hello Everyone,

Looking to develop your own android app? Android is the leading operating system now a days and there are so many many developers out there doing different kinds of apps. Developing Android Apps is not just fun but also rewarding. So, lets get started.

Before moving on to Developing App one thing we should keep in mind you should be aware of at least basic Java Programming, because the coding which we will use for Android is Java.

Before Developing any Application we need to have following set ready in our system to Develop any Android App.

1.Download JDK 1.7

Go to the Oracle Website and download the latest version of Java Development Kit at least Java 1.7.

Make sure you have downloaded the correct version 32 bit or 64 bit depending on what Windows System you are using

Set up your environmental properties.


2. Download Android Studio

Please download the android studio here - Android Studio


Once you have downloaded the Android Studio it will automatically download the SDK for you. Once the download is done , go ahead and install the Android studio in your system. It requires atleast 2 GB of RAM but recommended is 4GB RAM.

Once it is installed you will run the app in a virtual machine which will installed during android studio installation process itself. If you face any issues or error while installing Virtual Machine during Android Studio installation you can ignore that Error. We will see how we can test that app in subsequent tutorials.

Basically, that's it the Environmental set up for Android Studio. Lets see how to develop our first app in coming tutorials. Stay tuned !!