Certainly. 04-09 20:58:13.199: ERROR/AndroidRuntime(2362): Uncaught handler: thread main exiting due to uncaught exception 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.wissen.android/com.wissen.android.Hello}: java.lang.ClassNotFoundException: com.wissen.android.Hello in loader dalvik.system.pathclassloa...@43d02820 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2417) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2512) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.os.Handler.dispatchMessage(Handler.java:99) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.os.Looper.loop(Looper.java:123) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.app.ActivityThread.main(ActivityThread.java:4363) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at java.lang.reflect.Method.invokeNative(Native Method) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at java.lang.reflect.Method.invoke(Method.java:521) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at dalvik.system.NativeStart.main(Native Method) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): Caused by: java.lang.ClassNotFoundException: com.wissen.android.Hello in loader dalvik.system.pathclassloa...@43d02820 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 04-09 20:58:13.229: ERROR/AndroidRuntime(2362): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2409)
Thanks for the help On Apr 9, 4:10 pm, Rogério de Souza Moraes <rogerio.so...@gmail.com> wrote: > Can you paste your logcat? > This can guide us to help you! > > Regards, > > Rogerio > > 2010/4/9 bob <crcowboy...@gmail.com> > > > package com.wissen.android; > > import com.google.android.maps.GeoPoint; > > import com.google.android.maps.MapActivity; > > import com.google.android.maps.MapController; > > import com.google.android.maps.MapView; > > > import android.content.Context; > > import android.location.Location; > > import android.location.LocationListener; > > import android.location.LocationManager; > > import android.os.Bundle; > > import android.widget.Toast; > > > public class Hello extends MapActivity implements LocationListener > > { > > private LocationManager lm; > > private LocationListener locationListener; > > > private MapView mapView; > > private MapController mc; > > > /** Called when the activity is first created. */ > > �...@override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > > //---use the LocationManager class to obtain GPS locations--- > > lm = (LocationManager) > > getSystemService(Context.LOCATION_SERVICE); * > > > /locationListener = new MyLocationListener(); > > > lm.requestLocationUpdates( > > LocationManager.GPS_PROVIDER, > > 0, > > 0, > > locationListener); > > > mapView = (MapView) findViewById(R.id.mapview1); > > mc = mapView.getController(); > > > } > > > �...@override > > protected boolean isRouteDisplayed() { > > // TODO Auto-generated method stub > > return false; > > } > > > �...@override > > public void onLocationChanged(Location location) { > > // TODO Auto-generated method stub > > > } > > > �...@override > > public void onProviderDisabled(String provider) { > > // TODO Auto-generated method stub > > > } > > > �...@override > > public void onProviderEnabled(String provider) { > > // TODO Auto-generated method stub > > > } > > > �...@override > > public void onStatusChanged(String provider, int status, Bundle > > extras) { > > // TODO Auto-generated method stub > > > } > > > private class MyLocationListener implements LocationListener > > { > > �...@override > > public void onLocationChanged(Location loc) { > > if (loc != null) { > > Toast.makeText(getBaseContext(), > > "Location changed : Lat: " + loc.getLatitude() + > > " Lng: " + loc.getLongitude(), > > Toast.LENGTH_SHORT).show(); > > > GeoPoint p = new GeoPoint( > > (int) (loc.getLatitude() * 1E6), > > (int) (loc.getLongitude() * 1E6)); > > mc.animateTo(p); > > mc.setZoom(16); > > mapView.invalidate(); > > } > > } > > > �...@override > > public void onProviderDisabled(String provider) { > > // TODO Auto-generated method stub > > } > > > �...@override > > public void onProviderEnabled(String provider) { > > // TODO Auto-generated method stub > > } > > > �...@override > > public void onStatusChanged(String provider, int status, > > Bundle extras) { > > // TODO Auto-generated method stub > > } > > } > > > } > > > I'm making a simple GPS app that updates your current location, but > > whenever I try to run it, I get a "Application has stopped > > unexpectedly" error. I can't figure out the problem. Any ideas? > > > -- > > 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 > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > > To unsubscribe, reply using "remove me" as the subject. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en