If the package name didn't change you can use this to get the intent to launch the market: http://developer.android.com/reference/android/content/pm/PackageManager.html#getLaunchIntentForPackage%28java.lang.String%29
On Mon, Feb 28, 2011 at 12:19 PM, Shane Isbell <[email protected]>wrote: > I don't want to open to a publisher or application. I want to only open to > the market. > > Shane > > > On Mon, Feb 28, 2011 at 11:14 AM, Marcin Orlowski < > [email protected]> wrote: > >> > loadIntent.setClassName("com.android.vending", >> > "com.android.vending.AssetBrowserActivity"); >> >> Why you got this way? As you see it's quite fragile. Try using intent >> instead, ie: >> >> Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse( >> "market://search?q=pub:your.pub.name") ); >> intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); >> startActivity(intent); >> >> or "market://details?id=your.package.name" >> >> -- >> Regards, >> Marcin >> >> -- >> 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 > > > -- > 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 > -- 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

