Check android application version automatically php internet

October 3, 2015 by PetuaTerbaik · Leave a Comment
Filed under: Android programming code 

Dear all, I know many of u still want to know how we can check our android application version that we develop automatically right?

It’s so hard when when we  want the user to download android application manually, and some of they want to download after we told them. Some of them just lazy to download.  This will get a headache situation ! We as a developer need to make the job easier for the people. So How we check the android application version automatically using php and internet? Well, I will tell you the easiest way.

This is tutorial i’m develop Android with PHP and internet… yes.. i Like to share with you. But for the moments i just shared the Android Manifest that work for the first tutorial. If many of you want this code. Please add the comment below.  I love to see if you like.


AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.checkupdate"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="19" />

        <!-- Network State Permissions to detect Internet status -->
        <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <service
        android:name="com.example.checkupdate.MyWebService"
        android:icon="@drawable/ic_launcher"
        android:label="hehehe" >
    </service>

    </application>

</manifest>

Images hosting provided by ImageShack Via ImageShack Migration plugin

Desclaimer : This website and the Materials are provided "as is" and "as available", without warranty of any kind, implied, express or statutory. Petua Terbaik or PetuaTerbaik.kaer-media.org shall not be liable for any loss or damage caused by the usage of any information or Materials obtained from this website. We are also not hosting the material, the material we get are only link from other site. Penafian : Petua Terbaik tidak bertanggungjawab terhadap sebarang kehilangan atau kerosakan yang dialami kerana menggunakan maklumat dalam laman ini. Kami juga tidak membekalkan bahan di server kami, bahan yang kami dapat adalah pautan dari web yang lain.
This site is protected by WP-CopyRightPro