Sunday 15 March 2015

android - redirect user to play store from my app -


I want to redirect the user to the Google Play Store app from my app, and I want to open the Editor's Picks Collection As the default activity of the Play Store app In this, it says that if you want to open editor's selection collection then you should use it:

  market: // apps / archive / & lt; COLLECTION_NAME & gt;   

I have tried to:

  intent = new intent (int. Action_viez); Intent.setData (Uri.parse ("market: // apps / collection / editors_choice")); StartActivity;   

But this does not work, it always returns ActivityNotFoundException :

  06-21 17: 23: 26.564: W /System.err (1820): android.content.ActivityNotFoundException: no activity found to handle intent {ACT = android.intent.action.view.dat = market} 06-21 17: 23: 26.564: W / System Er (1820): At android.app.Instrumentation.checkStartActivityResult (Instrumentation.java) 06-21 17: 23: 26.564: W / Systems. ARR (1820): Android.app.instrumation.exassistative (instrumentation.java) 06-21 17: 23: 26.564: W / Systems. ARR (1820): Android App Activity Start activity response (activity.java) 06-21 17: 23: 26.564: W / System. ARR (1820): Android Activity.startActivityForResult (Activity.java) on the app 06-21 17: 23: 26.564: W / Systems. Er (1820): Android. Support.v4.app.FragmentActivity.startActivityForResult (FragmentActivity.java:817) 06-21 17: 23: 26.564: W / Systems. ARR (1820): Android App Activity Start Attractive (activity.java) 06-21 17: 23: 26.564: W / Systems. ARR (1820): Android On the App .st Art Activity (activity.java) 06-21 17: 23: 26.564: W / Systems. ARR (1820): com.icompagnon.activities.ApplicationsspaceActivity.onClick (ApplicationsSpaceActivity.java:92) 06-21 17: 23: 26.564: w / System.err (1820): android.view.View.performClick (see. Java) 06-21 17: 23: 26.564: W / Systems. ARR (1820): On Android. View $ View $ PerformClick.run (see .Java) 06-21 17: 23: 26.564: W / Systems. ARR (1820): Android.OS.HandlerHandle Callback (Handler.Java) 06-21 17: 23: 26.564: W / System.Arr (1820): Android.OS. Handler Dispatch Message (Handler.Java) 06-21 17: 23: 26.564: W / Systems ARR (1820): Android.OS Lopper. Lopp (Looper.Java) 06- 21 17: 23: 26.564: W / Systems. ARR (1820): Android App Activitat.mine (activityTrad.Java) 06-21 17: 23: 26.564: W / Systems. Er (1820): On Java. Lang.reflect.Method.invokeNative (Basic Method) 06-21 17: 23: 26.564: W / Systems. Er (1820): at java.lang.reflect.Method.invoke (Method.java) 06-21 17:23: 26.564: W / Systems. Er (1820): com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run (ZygoteInit.java) at 06-21 17: 23: 26.564: W / Systems. Er (1820): at 06. com.android.internal.os.ZygoteInit.main (ZygoteInit.java) 06-21 17: 23: 26.564: W / Systems. Er (1820): On Dalvik.system.NativeStart.main (Basic method)   

When I try to open some details of this application (Example: google-maps app ):

  intent to intent = new intent (int. Action_vijay); Intent.setData (Uri.parse ("market: // details? Id = com.google.android.apps.maps?")); StartActivity;   

But when I try to open editor's choice activity, then this exception returns back to an issue in Android ??

Your copy of the Play Store does not support the market: // apps / collection / editors_choice Is .

You can try alternate ( http://play.google.com/store/apps/collection/editors_choice ) to come to the Play Store for an available option. If this happens in the form, it will suggest a documentation bug, and there is some different syntax for the market: // that URI version. If the Play Store has not come as an option, then it may suggest that your version of the Play Store probably presates the pre-date support for those URI structures.

No comments:

Post a Comment