For some reason when I try to launch a Maps intent into a tab, i get
this:
Thread [<3> main] (Suspended (exception SecurityException))
ViewRoot.handleMessage(Message) line: 1198
ViewRoot(Handler).dispatchMessage(Message) line: 88
Looper.loop() line: 123
ActivityThread.main(String[]) line: 3742
Method.invokeNative(Object, Object[], Class, Class[], Class, int,
boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 515
ZygoteInit$MethodAndArgsCaller.run() line: 739
ZygoteInit.main(String[]) line: 497
NativeStart.main(String[]) line: not available [native method]
In my Activity that hosts the TabHost I have:
TabHost tabHost = getTabHost();
TabSpec tab;
tab = tabHost.newTabSpec("List");
tab.setContent(new Intent(this, RSSReader.class));
tab.setIndicator("List");
tabHost.addTab(tab);
tab = tabHost.newTabSpec("Map");
tab.setContent(new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:38.899533,-77.036476")));
tab.setIndicator("Map");
tabHost.addTab(tab);
I have granted this permission in the manifest:
<uses-library android:name="com.google.android.maps" />
Any suggestions?
-Josh
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---