Thanks - Makes sense. I should be able to look for Activities that have Intent filters for category.DEFAULT and URI scheme = http. That part is standard Android behavior (I think?). When I start the Activity it might not work the way I hope. As you say, some browsers might even give a 404 or some such when handed an incomplete URL. So I have to accept that potential outcome unless I am willing to go to an arbitrary page like irs.gov or whatever...
On Nov 21, 11:08 am, Mark Murphy <[email protected]> wrote: > On Sun, Nov 21, 2010 at 1:55 PM, jotobjects <[email protected]> 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 about > > browser intents? > > Not really. > > If you read that page, you will notice the following words in a really > big font, towards the top of the page: > > "Intents List: Invoking Google Applications on Android Devices" > > You will notice that the fourth word in that is: > > Google > > Google is a company. They have written *a* browser. They have not > written *every* browser. The documentation on that page, at most, > documents what Google's browser does. > > You are assuming that your unusual interpretation of that document is > somehow binding on every browser developer. > > I am advising you to think practically. The point of browsers is to > browse pages. The point of browsers is not to somehow fail gracefully > when you hand it clearly preposterous crap in an Intent, such as a URL > that violates Internet standards. It is reasonable to expect all > browser applications to successfully browse a page, at least for > fairly bland pages. It is unreasonable to expect that all browser > applications will support your intentionally-flawed Intents. > > The only thing you are likely to reliably do with an arbitrary browser > is hand it a legitimate URL, one that follows the specification for > some legitimate protocol (e.g., HTTP). That's just reality. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android App Developer Books:http://commonsware.com/books -- 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

