Also Read
Loading...
Saturday, November 14, 2015

Creating your WebView App : Part 4

6:41 AM
Before this, Read : Creating your WebView App : Part 3

This is the last part for our android application for the website.

Open AndroidManifest.xml from app>>manifests>>AndroidManifests.xml
In the AndroidManifest.xml, Delete everything except the first three lines. The screenshot of mine is given below.



Now paste the below code after the three lines

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name=".SplashClass"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
</activity>
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
</application>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>


Now, we have to change the Launcher icon for your app to be shown in the device.



  • From the bottom of screen select Download ZIP
  • Now, Extract the downloaded ZIP and Go to your project folder. (Normally C:\Users\username\AndroidStudioProjects\App_name\app\src\main\res)
  • Paste the images from mipmap folder in the extracted ZIP to the drawable folders
(Paste the image inside mipmap-hdpi to drawable-hdpi, mipmap-mdpi to drawable-mdpi, mipmap-xhdpi to drawable-xhdpi, mipmap-xxhdpi to drawable-xxhdpi)

Next, we have to create apk file for your android app. for instructions for that, click here

Thats it. Now your android app for your website is ready.

You can either share the apk or post it in the google play store to earn money from your android app.
If you have any doubts regarding the entire process, you are always welcome to use the below comments section...
Good Luck.

Next
This is the most recent post.
Older Post

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Toggle Footer