I forgot the exact spec for the URL, but if the phone has Android
Market installed and the URI starts with the "market://" scheme, then
the Android Market will handle it, not the browser.


On Aug 11, 5:00 pm, sblantipodi <[email protected]> wrote:
> Hi all,
> is it normal that this code open the browser and returns a 404 error
> in the emulator?
>
> Intent marketIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(
>                                 "http://market.android.com/details?
> id=" + getPackageName()));
>                         startActivity(marketIntent);
>                         finish();
>
> Should work fine on real device, am I right?
>
> Thanks.

-- 
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