Re: [android-developers] Re: What Intent for Browser without URL

2010-11-21 Thread Mark Murphy
On Sun, Nov 21, 2010 at 1:55 PM, jotobjects wrote: > The docs say you can use an "http:" uri, which is not quite a > "specific real URL" in the way I guess you intend. > > http://developer.android.com/guide/appendix/g-app-intents.html > > Is your advice in conflict with that page in the docs says

Re: [android-developers] Re: What Intent for Browser without URL

2010-11-21 Thread Mark Murphy
On Sun, Nov 21, 2010 at 12:23 PM, jotobjects wrote: > So I came up with what I thought was a great solution which worked > initially - > > Intent resolveIntent = new Intent(Intent.ACTION_VIEW, > Uri.fromParts("http", "", null)); > PackageManager pm = context.getPackageManager(); > ResolveInfo ri =

Re: [android-developers] Re: What Intent for Browser without URL

2010-11-19 Thread Brad Gies
Do you really need to do it with an intent Can't you just put a blank page in your app, and have it load that, or put a blank page on your website? Or am I missing something in what you are asking for? Sincerely, Brad Gies

Re: [android-developers] Re: What Intent for Browser without URL

2010-11-19 Thread Frank Weiss
On my phone, the browser shortcut on the home screen opens the browser with the last page that was visited. Perhaps the behavior you're looking for is like when, from the browser, you choose Menu + Windows + New window. I don't know the specifics of your use case (opening a blank browser seems a

Re: [android-developers] Re: What Intent for Browser without URL

2010-11-19 Thread Dianne Hackborn
On Fri, Nov 19, 2010 at 2:51 PM, jotobjects wrote: > So maybe I should doing a PackageManager.queryIntentActivityOptions > for an Intent with CATEGORY_LAUNCHER and URI scheme "http". and then > use the ResolveInfo to start the Activity. Does that sound right? > >String packageNa

Re: [android-developers] Re: What Intent for Browser without URL

2010-11-19 Thread Stephen Jungels
Have you tried using a standard intent to open the browser with the URL "about:blank" ? Maybe not exactly what you want, but simple and likely to work everywhere. On Fri, Nov 19, 2010 at 5:51 PM, jotobjects wrote: > Thanks - > > I don't have a URL to launch and I don't want to land on the google

Re: [android-developers] Re: What Intent for Browser without URL

2010-11-18 Thread Dianne Hackborn
That Intent is okay, though there is no need for BROWSABLE. (As per the documentation, BROWSABLE means that the Intent came from an untrusted source so you want to restrict who will handle it to those that say they will protect themselves from such things.) I'm not sure what you mean by "empty UR