But please answer also to this question...
using this code:
Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(
                                "http://market.android.com/details?
id=" + packageName()));

you told me that user will see a dialog.
what kind of dialog? A dialog with two buttons? One button for browser
and one for details?
The details button redirect correctly to the market, the browser one
redirect to 404 error?

Is this ok? can you give me a screenshot of this situation please?
Really thanks.


On Aug 12, 4:16 pm, sblantipodi <[email protected]> wrote:
> I haven't got a real device at the moment,
> so if thehttp://market.android.com/details?id=URLdoesn't work well
> (I use it using intent) why is documented?
> I can't understand it...
>
> So the suggestion is to use:
> Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(
>                                 "market://search?q=pname:" +
> packageName()));
>                         startActivity(marketIntent);
>                         finish();
>
> On emulator launch force close, can you tell me if it works well on
> real device?
> Thanks.
>
> On Aug 12, 2:00 pm, String <[email protected]> wrote:
>
> > On Aug 12, 12:21 pm, sblantipodi <[email protected]> wrote:
>
> > > Hey but are you sure that is wrong?
> > > In this guide it also tell that it is correct.
>
> > >http://developer.android.com/guide/publishing/publishing.html
>
> > OK, so I just tried it in an app on a real device. 
> > Thehttp://market.android.com/details?id=URLopens a "Complete action
> > using" dialog, with the options of Browser and Details, where Details
> > has the Market icon. Selecting Details does indeed open the Market
> > client to the target package; selecting Browser gives the 404
> > previously discussed.
>
> > So while it's not completely *wrong*, it is suboptimal, and would be
> > likely to lead to some degree of user confusion. Conclusion: use the
> > market:// URL.
>
> > Conclusion #2: You could have tried this yourself, rather than running
> > to post it here.
>
> > String
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to