Monday 30 September 2019

How to make an android app - HGX TECH

How to make an android app 

hey guys, first of all welcome to our website : HGX TECH

How to make an android app

You can make android Applications in two different ways first one through core and second one will based on the few scripting languages.
Both the ways has equal number of pros and cons.
For the first method,
Java is mandatory one and we can use xml for the UI design
We can develop this kind of app through Android Studio or Ecllipse framework and they are open ware.
You can download Android studio.
I prefer Android Studio since it was developed by Google and it is more advanced than Ecllipse.
After installing either of this software ,open a new project.
You will find following files
1)Manifest file
2)app folder
3)resource folder
This three are most important,
In Manifest file,We usually include our Application names and define which Activity(Activity means screen) has to be start first and we declare all the other Activities.And also we include permissions like enabling gps,internet connection and accessing the external storage card.
In the app folder we will find all our java files,The class may extends Activity or Fragment(Fragment means portion of screen).In this portion we will include what our app wanted to do.
In the Resource folder,many sub folders will be there like
1)Drawable-contains .png or .jpeg files
2)Values
3)Layouts-contains all our UI design and it will be in XML format.
4)Strings-Contains String values
Once  done with your coding part ,click build and then run.
You can run your application either in Emulator or Any android Phone(Developer options has to enabled).After that you can get the apk file by clicking the Generate Apk options.
Second Method
In this method,no need of any core languages like java.
If you know html5,css and javascript it will be more than enough to create application and it will support all the os i.e it will became cross platform application:-)
After writing all the scripts we can convert this to our apk in two different ways
1)There will be so many free ware available in net which converts the html script into apk file ex PhoneGap
2)The second option is more simple,first host all your pages in a server and use the Webview  to connect all the pages and then generate apk for this we can use android studio
According to me,developing an android applications through java is good option when we are going to launch our app in Android platform only.If you wanted to publish your app  in multiple OS,then i suggest the second methodi.e through the scripting languages.
Have a  nice day!!!
Thank you

No comments:

Post a Comment