Update your App without any Play Store.
Code:
UpdateCheck.getInstance().checkForUpdate(getApplicationContext(),"http://YourServer",true,new UpdateCheck.UpdateCheckCallback() {
@Override
public void noUpdateAvailable() {
System.out.println("No Update Available");
}
@Override
public void onUpdateAvailable() {
System.out.println("Update Available");
}
});
See MainActivity.java for more detail.
You also need to register a BroadCastReceiver
in your AndroidManifest.xml
<receiver
android:name=".UpdateNotificationReceiver"
android:enabled="true"
android:exported="false" >
<intent-filter>
<action android:name="com.az.advance.app.updater.DOWNLOAD_CANCELLED" />
<action android:name="com.az.advance.app.updater.NOTIFICATION_REMOVED" />
<action android:name="com.az.advance.app.updater.INSTALL_UPDATE" />
<action android:name="com.az.advance.app.updater.UPDATE_DOWNLOADED" />
</intent-filter>
</receiver>
-Permission Required No need of
android.permission.DOWNLOAD_WITHOUT_NOTIFICATION
, just two permissions required
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- Required Json { "updateURL" : "http://www.path-to-apk/app.apk", "versionCode" : "1" }