version:1.5
fix: update:基本功能对接完成
This commit is contained in:
@@ -7,6 +7,7 @@ import android.content.Intent;
|
||||
import android.content.ServiceConnection;
|
||||
import android.os.IBinder;
|
||||
import android.os.RemoteException;
|
||||
import android.provider.Settings;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -270,4 +271,24 @@ public class RemoteManager {
|
||||
return mapBean.getLongitude() + "," + mapBean.getLatitude();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean getSnIsActivation() {
|
||||
try {
|
||||
return mGetInfoInterface.SnIsActivation();
|
||||
} catch (RemoteException e) {
|
||||
e.printStackTrace();
|
||||
Log.e(TAG, "getSnIsActivation: " + e.getMessage());
|
||||
int is_activation = Settings.Global.getInt(mContext.getContentResolver(), CommonConfig.UIUI_ACTIVATION_KEY, 0);
|
||||
return is_activation == 1;
|
||||
}
|
||||
}
|
||||
|
||||
public void setDefaultDesktop() {
|
||||
try {
|
||||
mGetInfoInterface.setDefaultLauncher(BuildConfig.APPLICATION_ID);
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "setDefaultDesktop: " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user