|
|
@ -16,6 +16,7 @@ public class CertActivity extends AppCompatActivity {
|
|
|
|
|
|
|
|
|
|
|
|
private final static String ACTION_IMP_PUBKEY = "imp_pubkey";
|
|
|
|
private final static String ACTION_IMP_PUBKEY = "imp_pubkey";
|
|
|
|
private final static String ACTION_GEN_KEYS = "gen_keys";
|
|
|
|
private final static String ACTION_GEN_KEYS = "gen_keys";
|
|
|
|
|
|
|
|
private final static String ACTION_CERT_REQ = "cert_req";
|
|
|
|
|
|
|
|
|
|
|
|
private Handler mHandler = null;
|
|
|
|
private Handler mHandler = null;
|
|
|
|
|
|
|
|
|
|
|
@ -51,6 +52,9 @@ public class CertActivity extends AppCompatActivity {
|
|
|
|
} else if (TextUtils.equals(action, ACTION_GEN_KEYS)) {
|
|
|
|
} else if (TextUtils.equals(action, ACTION_GEN_KEYS)) {
|
|
|
|
int index = intent.getIntExtra("index", 0);
|
|
|
|
int index = intent.getIntExtra("index", 0);
|
|
|
|
MicroPhotoService.genKeys(index);
|
|
|
|
MicroPhotoService.genKeys(index);
|
|
|
|
|
|
|
|
} else if (TextUtils.equals(action, ACTION_CERT_REQ)) {
|
|
|
|
|
|
|
|
// int index = intent.getIntExtra("index", 0);
|
|
|
|
|
|
|
|
// MicroPhotoService.genKeys(index);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|