android - How to handle app dependencies to 3d party -


I currently depend on the app developed on a third party (OIFileManager) application.

My question

Tell the user to resolve this?

Embed a 3-party APK (if its license allows)

Resolve it automatically (perhaps there is a system for this in the Android market).

There is no automatic route. The user has to manually depend on the Android Market (or some other source).

  Intent ScanIntent = New Intent ("com.google.zxing.client.android.SCAN"); Intent Market Entent = New Intent (ACTION_VIEW, Uri. PRS ("Market: // Description? Id = com.google.zxing.client.android")); Try {StartActivityForResult (ScanIntent); } Catch (ActivityNotFoundException E) {try {// start an indication here; feedback; marketIntent; } Catch (ActivityNotFoundException e) {Toast.makeText (This is, "The market is not established.", LENGTH_SHORT). Show (); }}  

Then you:

  • Try launching the scanner;
  • If fails, then quick user to install it from the Android Market;
  • If fails, the market is not established.

Comments