Re: [android-developers] Market package name on Xoom?
Wow, that's certainly not necessary. Folks are simply trying to help you. -- Chris Stewart http://chriswstewart.com On Mon, Feb 28, 2011 at 3:15 PM, Shane Isbell shane.isb...@gmail.comwrote: On Mon, Feb 28, 2011 at 12:00 PM, Dianne Hackborn hack...@android.comwrote: Don't hard-code package names. This is fragile, as you've already found. Don't continue doing it. You'll just break again sometime in the future. If there is no public API to do something so simple, then opening with market package name way is the only way. I have a hard-requirement to open the market (all tested on specific devices and specific firmware before-hand). And who are you to tell me not to do it anyway? I understand the limitations. Shane -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Market package name on Xoom?
It looks like the old way of opening android market doesn't work on Xoom. loadIntent.setClassName(com.android.vending, com.android.vending.AssetBrowserActivity); Anyone know what the new package-name/class is? Thanks, Shane -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
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 webnet.andr...@gmail.comwrote: 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
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 shane.isb...@gmail.comwrote: 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 webnet.andr...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
Awesome. Thanks Justin: this does the trick: Intent loadIntent = getPackageManager().getLaunchIntentForPackage (com.google.android.finsky); startActivityForResult(loadIntent, 0); On Mon, Feb 28, 2011 at 11:23 AM, Justin Anderson magouyaw...@gmail.comwrote: 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 shane.isb...@gmail.comwrote: 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 webnet.andr...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
Don't hard-code package names. This is fragile, as you've already found. Don't continue doing it. You'll just break again sometime in the future. On Mon, Feb 28, 2011 at 11:39 AM, Shane Isbell shane.isb...@gmail.comwrote: Awesome. Thanks Justin: this does the trick: Intent loadIntent = getPackageManager().getLaunchIntentForPackage (com.google.android.finsky); startActivityForResult(loadIntent, 0); On Mon, Feb 28, 2011 at 11:23 AM, Justin Anderson magouyaw...@gmail.comwrote: 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 shane.isb...@gmail.comwrote: 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 webnet.andr...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
On Mon, Feb 28, 2011 at 12:00 PM, Dianne Hackborn hack...@android.comwrote: Don't hard-code package names. This is fragile, as you've already found. Don't continue doing it. You'll just break again sometime in the future. If there is no public API to do something so simple, then opening with market package name way is the only way. I have a hard-requirement to open the market (all tested on specific devices and specific firmware before-hand). And who are you to tell me not to do it anyway? I understand the limitations. Shane -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
boy you have balls! she's only the one who makes this OS happen... show some respect... On Feb 28, 2011 3:17 PM, Shane Isbell shane.isb...@gmail.com wrote: On Mon, Feb 28, 2011 at 12:00 PM, Dianne Hackborn hack...@android.com wrote: Don't hard-code package names. This is fragile, as you've already found. Don't continue doing it. You'll just break again sometime in the future. If there is no public API to do something so simple, then opening with market package name way is the only way. I have a hard-requirement to open the market (all tested on specific devices and specific firmware before-hand). And who are you to tell me not to do it anyway? I understand the limitations. Shane -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
It appears that Dianne has quite a following but enough with the hate emails, both public and private. I have control over the environment and distribution so saying not to do something just doesn't apply in my case. Shane On Mon, Feb 28, 2011 at 2:06 PM, rich friedel rich.frie...@gmail.comwrote: boy you have balls! she's only the one who makes this OS happen... show some respect... On Feb 28, 2011 3:17 PM, Shane Isbell shane.isb...@gmail.com wrote: On Mon, Feb 28, 2011 at 12:00 PM, Dianne Hackborn hack...@android.com wrote: Don't hard-code package names. This is fragile, as you've already found. Don't continue doing it. You'll just break again sometime in the future. If there is no public API to do something so simple, then opening with market package name way is the only way. I have a hard-requirement to open the market (all tested on specific devices and specific firmware before-hand). And who are you to tell me not to do it anyway? I understand the limitations. Shane -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
On Mon, Feb 28, 2011 at 4:06 PM, rich friedel rich.frie...@gmail.com wrote: she's only the one who makes this OS happen... I'm pretty sure Linus Torvalds (and 16K kernel hackers) would disagree, not to mention Dan Bornstein, Andy Rubin, etc. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
Mr Donald, you know what i meant. Mr Isbell, no hate emails from me, just irritated because you wrote fragile code. Your code broke. You come here asking for help. You receive help. You are told to not half-ass it and you cop an attitude with one of the Android framework engineers who takes her free time to help people like you and me. Yeah I believe, no matter what your situation, you could have done without that comment sir! On Feb 28, 2011 5:17 PM, Greg Donald gdon...@gmail.com wrote: -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
On Mon, Feb 28, 2011 at 4:42 PM, rich friedel rich.frie...@gmail.com wrote: framework engineers who takes her free time to help people like you and me. Free time? You think she's not getting paid? You did notice the don't email me privately, cause I don't have time to help you thing in all her emails, right? She answers questions when they are convenient to answer, much like everyone else here. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Market package name on Xoom?
On Mon, Feb 28, 2011 at 4:52 PM, Greg Donald gdon...@gmail.com wrote: Free time? You think she's not getting paid? Dianne frequently posts on weekends and obscure, late-night hours. I highly doubt she's on the clock in those cases. You did notice the don't email me privately, cause I don't have time to help you thing in all her emails, right? *No one* would have the time to provide private support for the volume of email that comes through this list. Plus restricting the conversation in that fashion removes the possibility for others to help and learn from the questions posed. I've gotten a few direct support questions and first thing I do is redirect the asker back here. She answers questions when they are convenient to answer, much like everyone else here. Which in no one implies she's being paid to do so. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en