Skip to content

Latest commit

 

History

History
82 lines (63 loc) · 3.23 KB

README.md

File metadata and controls

82 lines (63 loc) · 3.23 KB

AXACT

Axiros AXACT - Android Wrapper is a wrapper for AXACT

This project contains a sample application to demostrate how to use TR-069 and TR-143. AXACT is embedded in this project as an android library.

This version opens a blank activity AXACT is started as service on application run and is configured to run as background service. in order to stop the service uses developer options to see running tasks:

or call, fron any Activity:

stopService(new Intent(this, AxirosService.class));

LIB proguard rules

To use minifyEnabled build on your APP please add the following line to your proguard-rules.pro:

-keep public interface com.axiros.axact.AXACTEvents {*;}

Compiling on Android 6.0 (API level 23)

Beginning in Android 6.0 (API level 23), users grant permissions to apps while it is running not when they install it. In order to request the required SDK permissions, please be sure to call the verifyServicePermission method before binding the service and implement the onRequestPermissionsResult. Its return value will tell where the bind can be made. A full sample can be found on MainActivity.

@Override
public void onRequestPermissionsResult(int requestCode, String permissions[],
                                       int[] grantResults)
{
    /*
     * The option has already been chosen by the user. The bind can happen
     * here.
     */
}

@Override
public void onCreate(Bundle savedInstanceState) {
    if (AxirosService..verifyServicePermission(MainActivity.this) == false) {
        /*
         * Permissions were already given by the user. The bind can happen
         * here.
         */
    }
}

Tested intensively on multiple devices at AWS Device Farm

As it is compiled using Android NDK it can run on multiples android version.