简体   繁体   中英

Pass PublicKey Object from service to activity in Android?

I'm trying to pass a PublicKey object from a service to an activity. However, the Aidl doesn't seem to support the PublicKey type. Any ideas on how to do this?

If you already have your public key you should put it into the /res/raw/ folder and retrieve it from there. Or store it in filesystem activity.getFilesDir().getAbsolutePath() would be your path. You can also use - pass Objects over IPC as described here in the article http://developer.android.com/guide/developing/tools/aidl.html hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM