Fix for email query, add new email query with like
This commit is contained in:
@@ -19,6 +19,7 @@ package org.thialfihar.android.apg.demo;
|
||||
import org.thialfihar.android.apg.integration.ApgData;
|
||||
import org.thialfihar.android.apg.integration.ApgIntentHelper;
|
||||
import org.thialfihar.android.apg.service.IApgApiService;
|
||||
import org.thialfihar.android.apg.service.IApgKeyService;
|
||||
import org.thialfihar.android.apg.service.handler.IApgDecryptHandler;
|
||||
import org.thialfihar.android.apg.service.handler.IApgEncryptHandler;
|
||||
import org.thialfihar.android.apg.service.handler.IApgGetDecryptionKeyIdHandler;
|
||||
@@ -70,8 +71,7 @@ public class AidlDemoActivity extends Activity {
|
||||
mApgIntentHelper = new ApgIntentHelper(mActivity);
|
||||
mApgData = new ApgData();
|
||||
|
||||
bindService(new Intent("org.thialfihar.android.apg.service.IApgApiService"), svcConn,
|
||||
Context.BIND_AUTO_CREATE);
|
||||
bindService(new Intent(IApgApiService.class.getName()), svcConn, Context.BIND_AUTO_CREATE);
|
||||
}
|
||||
|
||||
public void encryptOnClick(View view) {
|
||||
|
||||
@@ -72,8 +72,7 @@ public class AidlDemoActivity2 extends Activity {
|
||||
mApgIntentHelper = new ApgIntentHelper(mActivity);
|
||||
mApgData = new ApgData();
|
||||
|
||||
bindService(new Intent("org.thialfihar.android.apg.service.IApgKeyService"), svcConn,
|
||||
Context.BIND_AUTO_CREATE);
|
||||
bindService(new Intent(IApgKeyService.class.getName()), svcConn, Context.BIND_AUTO_CREATE);
|
||||
}
|
||||
|
||||
public void getKeyringsStringsOnClick(View view) {
|
||||
|
||||
@@ -52,12 +52,12 @@ public class ContentProviderDemoActivity extends Activity {
|
||||
}
|
||||
|
||||
public void test1OnClick(View view) {
|
||||
long[] test = mApgContentProviderHelper.getPublicKeyIdsFromEmail("user@example.com");
|
||||
long[] test = mApgContentProviderHelper.getPublicKeyringIdsByEmail("user@example.com");
|
||||
mOutputTextView.setText(Arrays.toString(test));
|
||||
}
|
||||
|
||||
public void test2OnClick(View view) {
|
||||
boolean test = mApgContentProviderHelper.hasPublicKeyForEmail("user@example.com");
|
||||
boolean test = mApgContentProviderHelper.hasPublicKeyringByEmail("user@example.com");
|
||||
if (test) {
|
||||
mOutputTextView.setText("true");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user