Skip to content

AizazZaidee/Advance_App_Updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advance App Updater

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" />

  • Notification 1 Step 1
  • Notification 2 Step 2
  • Notification 3 Step 3

About

Automatically update you app without any play store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages