On Sun, Nov 21, 2010 at 12:23 PM, jotobjects <[email protected]> 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 = pm.resolveActivity(resolveIntent, > PackageManager.MATCH_DEFAULT_ONLY); > String packageName = ri.activityInfo.packageName; > String activityName = ri.activityInfo.name; > Intent webIntent = new Intent(); > webIntent.setComponent(new ComponentName(packageName, activityName)); > context.startActivity(webIntent); > > This worked! Yea.
The odds of this working for every browser are slim to none. There is no requirement in Android for browser implementations to support this in any meaningful fashion. Please just open a specific real URL. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://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

