Redifine Service callbacks

This commit is contained in:
Dominik Schürmann
2013-07-25 16:25:20 +02:00
parent 14350679d1
commit 7cca7b1ffa
8 changed files with 147 additions and 47 deletions

View File

@@ -263,7 +263,7 @@ public class CryptoService extends Service {
private final IServiceActivityCallback.Stub mBinderServiceActivity = new IServiceActivityCallback.Stub() {
@Override
public void register(boolean success, String packageName) throws RemoteException {
public void onRegistered(boolean success, String packageName) throws RemoteException {
if (success) {
// resume threads
@@ -280,7 +280,7 @@ public class CryptoService extends Service {
}
@Override
public void cachePassphrase(boolean success, String passphrase) throws RemoteException {
public void onCachedPassphrase(boolean success) throws RemoteException {
}
@@ -355,8 +355,6 @@ public class CryptoService extends Service {
Log.d(Constants.TAG, "starting activity...");
Intent intent = new Intent(getBaseContext(), ServiceActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
// intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
// intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
intent.setAction(action);
if (extras != null) {
intent.putExtras(extras);