I'm searching about how to expose some functionalities from my android app to a webpage using content provider. My app stores digital certificates in AndroidKeyStore, i'd like to list this certificates on a webpage using js.
Asked
Active
Viewed 586 times
-1
-
"some functionalities" like what specifically? anything that requires an android API -> no. – letsCode Jan 09 '18 at 16:02
-
Basically, i'd like to know if there is a way to exchange information between android app and js. – argoth Jan 09 '18 at 16:08
-
using a database, yes. look at firebase – letsCode Jan 09 '18 at 16:11
-
I wouldn't like to use a database, just to provide a way to return to js some data that only my app can access as my certificate list. – argoth Jan 09 '18 at 16:28
-
1then no... you cant do that. – letsCode Jan 09 '18 at 16:51
2 Answers
0
You can do a native app, in java and c++ or an html app with cordova or similar. Content provider belong to native app world. If you need to work with them, i suggest you to build an native app (in java) and do user interface natively.

xcesco
- 4,690
- 4
- 34
- 65
0
The best way to do it is using Android WebView and exposing some functions to javascript.

argoth
- 1,173
- 8
- 16