> How are you trying to "register touches"? Gah! I didn't call setClickable! Nevermind, it was REALLY late! Thanks for your help!
On Sat, Aug 23, 2008 at 5:34 AM, woodm <[EMAIL PROTECTED]> wrote: > > How are you trying to "register touches"? > > Are you using Overlay's and overriding the onTap / onTouchEvent > methods? > > On Aug 23, 4:50 am, "Casey Borders" <[EMAIL PROTECTED]> wrote: >> Now I am having another weird problem. If I define the MapView in a >> layout xml file, everything works like you would expect. If I create >> it programmatically like I show above, then it doesn't register >> touches. Any idea what's up with that? >> >> On Fri, Aug 22, 2008 at 3:20 AM, Casey Borders <[EMAIL PROTECTED]> wrote: >> > That did it!! Thank you!! >> >> > On Fri, Aug 22, 2008 at 3:05 AM, woodm <[EMAIL PROTECTED]> wrote: >> >> >> I was having this same problem yesterday but managed to solve it. >> >> >> It's just a case of fixing your AndroidManifest.xml file. It needs to >> >> use the correct permissions and contain a <uses-library >> >> android:name="com.google.android.maps" /> tag. >> >> >> This post: >> >>http://groups.google.com/group/android-developers/browse_thread/threa... >> >> >> was a great help to me, and shows the permissions you need to use. >> >> >> On Aug 22, 6:45 am, "Casey Borders" <[EMAIL PROTECTED]> wrote: >> >>> I have and application that was running fine under m5, but it fails in >> >>> 0.9. I tried to nail down what was causing it to fail and I have an >> >>> extremely simple MapActivity that is failing too. Here's the code: >> >> >>> package org.moo.android.Test; >> >> >>> import com.google.android.maps.MapActivity; >> >>> import com.google.android.maps.MapView; >> >> >>> import android.os.Bundle; >> >>> import android.view.Window; >> >> >>> public class MapTest extends MapActivity >> >>> { >> >>> private MapView mMap; >> >> >>> @Override >> >>> public void onCreate(Bundle icicle) >> >>> { >> >>> super.onCreate(icicle); >> >>> requestWindowFeature(Window.FEATURE_NO_TITLE); >> >> >>> mMap = new MapView(this, "MapAPIKey"); >> >>> setContentView(mMap); >> >> >>> } >> >> >>> @Override >> >>> protected boolean isRouteDisplayed() >> >>> { >> >>> return false; >> >>> } >> >> >>> } >> >> >>> Here's the logcat output: >> >> >>> 08-22 05:36:30.274: WARN/dalvikvm(263): Unable to resolve superclass >> >>> of Lorg/moo/android/Test/MapTest; (4) >> >>> 08-22 05:36:30.284: WARN/dalvikvm(263): Link of class >> >>> 'Lorg/moo/android/Test/MapTest;' failed >> >>> 08-22 05:36:30.294: DEBUG/AndroidRuntime(263): Shutting down VM >> >>> 08-22 05:36:30.304: WARN/dalvikvm(263): threadid=3: thread exiting >> >>> with uncaught exception (group=0x40010e28) >> >>> 08-22 05:36:30.304: ERROR/AndroidRuntime(263): Uncaught handler: >> >>> thread main exiting due to uncaught exception >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): >> >>> java.lang.RuntimeException: Unable to instantiate activity >> >>> ComponentInfo{org.moo.android.Test/org.moo.android.Test.MapTest}: >> >>> java.lang.ClassNotFoundException: org.moo.android.Test.MapTest in >> >>> loader [EMAIL PROTECTED] >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2060) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2147) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.app.ActivityThread.access$1800(ActivityThread.java:112) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1572) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.os.Handler.dispatchMessage(Handler.java:88) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.os.Looper.loop(Looper.java:123) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.app.ActivityThread.main(ActivityThread.java:3708) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> java.lang.reflect.Method.invokeNative(Native Method) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> java.lang.reflect.Method.invoke(Method.java:492) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:734) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:492) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> dalvik.system.NativeStart.main(Native Method) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): Caused by: >> >>> java.lang.ClassNotFoundException: org.moo.android.Test.MapTest in >> >>> loader [EMAIL PROTECTED] >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> dalvik.system.PathClassLoader.findClass(PathClassLoader.java:215) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> java.lang.ClassLoader.loadClass(ClassLoader.java:453) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> java.lang.ClassLoader.loadClass(ClassLoader.java:421) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.app.Instrumentation.newActivity(Instrumentation.java:1095) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): at >> >>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2052) >> >>> 08-22 05:36:30.334: ERROR/AndroidRuntime(263): ... 11 more >> >>> 08-22 05:36:30.364: INFO/Process(51): Sending signal. PID: 263 SIG: 3 >> >>> 08-22 05:36:30.404: INFO/dalvikvm(263): threadid=7: reacting to signal 3 >> >>> 08-22 05:36:30.464: INFO/dalvikvm(263): Wrote stack trace to >> >>> '/data/anr/traces.txt' >> >>> 08-22 05:36:35.364: DEBUG/dalvikvm(93): GC freed 1197 objects / 58416 >> >>> bytes in 198ms >> >>> 08-22 05:36:35.364: DEBUG/dalvikvm(124): GC freed 3 objects / 72 bytes >> >>> in 185ms >> >> >>> What's going wrong here? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---