Here is a SecurityException I don't understand. The following code is in onCreate() for a TabActivity object. There is a TabWidget in the layout file. The code works for tabs with Views and ViewGroups, but when I put an Intent as the content in a tab I get this error.
The same intent works find if I call startActivity() directly. I do have android.permission.INTERNET set in AndroidManifest. Are there limitations on the kind of activity intent that can be used in a tab? Code from onCreate(): TabHost tabHost = getTabHost(); Uri uri = Uri.parse("http://www.jotobjects.net/jotdemo/ JotDemoMenu.html"); Intent briogeoContentIntent = new Intent(Intent.ACTION_VIEW, uri); tabHost.addTab(tabHost.newTabSpec("tab_briogeocontent") .setIndicator("BrioGeo Content") .setContent(briogeoContentIntent)); Exception when clicking on that tab: D/AndroidRuntime( 1095): Shutting down VM W/dalvikvm( 1095): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 1095): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 1095): java.lang.SecurityException: Requesting code from com.android.browser (with uid 10020) to be run in process com.briogeo.ex2 (with uid 10031) E/AndroidRuntime( 1095): at android.app.ActivityThread.getPackageInfo(ActivityThread.java:1932) E/AndroidRuntime( 1095): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2167) E/AndroidRuntime( 1095): at android.app.ActivityThread.startActivityNow(ActivityThread.java:2112) E/AndroidRuntime( 1095): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java: 127) E/AndroidRuntime( 1095): at android.app.LocalActivityManager.startActivity (LocalActivityManager.java:339) E/AndroidRuntime( 1095): at android.widget.TabHost $IntentContentStrategy.getContentView(TabHost.java:600) E/AndroidRuntime( 1095): at android.widget.TabHost.setCurrentTab (TabHost.java:310) E/AndroidRuntime( 1095): at android.widget.TabHost $2.onTabSelectionChanged(TabHost.java:126) E/AndroidRuntime( 1095): at android.widget.TabWidget $TabClickListener.onClick(TabWidget.java:268) ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---