Here is the error i get....
E/AndroidRuntime( 7903): FATAL EXCEPTION: main
E/AndroidRuntime( 7903): java.lang.ClassCastException:
com.arcdroid.chat.OosapVars
E/AndroidRuntime( 7903): at com.arcdroid.chat.MapItemizedOverlay
$1.onClick(MapItemizedOverlay.java:44)
E/AndroidRuntime( 7903): at com.android.internal.app.AlertController
$ButtonHandler.handleMessage(AlertController.java:159)
E/AndroidRuntime( 7903): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7903): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 7903): at
android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 7903): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7903): at
java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 7903): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 7903): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 7903): at dalvik.system.NativeStart.main(Native
Method)
W/ActivityManager( 103): Force finishing activity
com.arcdroid.chat/.Tabs
W/ActivityManager( 103): Activity pause timeout for
HistoryRecord{406c0a58 com.arcdroid.chat/.Tabs}
V/RenderScript_jni( 193): surfaceCreated
thanks
http://www.arcdroid.com
On Jun 6, 6:54 am, ArcDroid <[email protected]> wrote:
> hello, I am trying to click on a geo point and then open another tab.
> here is my code....
>
> public class MapItemizedOverlay extends ItemizedOverlay {
>
> public MapItemizedOverlay(Drawable drawable, Context context) {
> super(boundCenterBottom(drawable));
> mContext = context;
> }
> @Override
> protected boolean onTap(int index) {
> OverlayItem item = mOverlays.get(index);
> AlertDialog.Builder dialog = new AlertDialog.Builder(mContext);
> strRoom = item.getTitle();
> dialog.setTitle("title: "+strRoom);
> dialog.setIcon(R.drawable.butblue48x48);
> dialog.setMessage("message: "+item.getSnippet());
> dialog.setCancelable(true);
> dialog.setPositiveButton("Open Room", new
> DialogInterface.OnClickListener() {
> public void onClick(DialogInterface dialog, int id) {
>
> //these two lines don't
> work----------------------------------------------------
> TabActivity ta = (TabActivity)
> mContext.getApplicationContext();
> ta.getTabHost().setCurrentTab(3);
> }
> });
> dialog.setNegativeButton("Cancel", new
> DialogInterface.OnClickListener() {
> public void onClick(DialogInterface dialog, int id) {
> dialog.dismiss();
> }
> });
>
> dialog.show();
>
> return true;
> }
--
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