Friday 12 May 2017

Convert your website into Android application using android studio

Converting your website to Hybrid android application using Android Studio

I am using android studio IDE to achieve the same. Get it from the below link:
https://developer.android.com/studio/install.html

To do this, in the first place the website should be responsive to android devices.

I followed the below tutorial to convert the website to android apk

1) Follow the tutorial to convert your site: (Thanks to the site!!)
    http://abhiandroid.com/createandroidapp/webview-android-app

   Basically the main changes required are from the below files:
   a. activity_main.xml
   b. MainActivity.java
   c. AndroidManifest.xml

2) Once the changes are done, run the application in the studio. You should get Build Success.

3) To generate an apk file and install it in your real device:
     Go to Build-> Select Build APK

     Once you get an option to open the build apk in the explorer, you can use the same in android devices!! And I believe one need not learn android to create an apk for building Hybrid application..Cool ha :D !!

4) Now to change the default launcher ic_launcher icon of the android app:

5) You can do this too almost easily: Head to https://romannurik.github.io/AndroidAssetStudio/
    Build your icons and download the zip package. (Note: Do not start your logo name with caps)
    Extract the zip package to the following path:  
    app\src\main\   into the 'res' folder.

1 comment:

  1. Thanks for sharing such valuable information I am also impressed by the creativity of the writer. This is
    excellent information. It is amazing and wonderful to visit your site. how can your website be converted into a selling "

    ReplyDelete