The bug is in your application. The crash is: java.lang.NumberFormatException unable to parse '' as integer
This means you are passing invalid data to Integer.parseInt(). ListView is innocent here :) 2011/5/16 hüseyin toplu <[email protected]> > I getting this error ----ActivityThread.performLaunchActivity(Activity > Thread$ActivityClientRecord.Intent)line:1647 > > 05-17 04:41:57.049: INFO/ActivityManager(61): Starting: Intent > { cmp=com.example.otomasyon/.bilet } from pid 352 > 05-17 04:41:57.989: INFO/ActivityManager(61): Displayed > com.example.otomasyon/.bilet: +830ms > 05-17 04:42:00.919: INFO/dalvikvm(61): Jit: resizing JitTable from > 1024 to 2048 > 05-17 04:42:11.939: INFO/ActivityManager(61): Starting: Intent > { cmp=com.example.otomasyon/.otobus_durumu (has extras) } from pid 352 > 05-17 04:42:11.988: DEBUG/dalvikvm(61): GREF has increased to 401 > 05-17 04:42:12.179: DEBUG/AndroidRuntime(352): Shutting down VM > 05-17 04:42:12.179: WARN/dalvikvm(352): threadid=1: thread exiting > with uncaught exception (group=0x40015560) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): FATAL EXCEPTION: main > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): > java.lang.RuntimeException: Unable to start activity > ComponentInfo{com.example.otomasyon/ > com.example.otomasyon.otobus_durumu}: java.lang.NumberFormatException: > unable to parse '' as integer > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 1647) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > 1663) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.app.ActivityThread.access$1500(ActivityThread.java:117) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.os.Handler.dispatchMessage(Handler.java:99) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.os.Looper.loop(Looper.java:123) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.app.ActivityThread.main(ActivityThread.java:3683) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > java.lang.reflect.Method.invokeNative(Native Method) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > java.lang.reflect.Method.invoke(Method.java:507) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:839) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > dalvik.system.NativeStart.main(Native Method) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): Caused by: > java.lang.NumberFormatException: unable to parse '' as integer > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > java.lang.Integer.parseInt(Integer.java:362) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > java.lang.Integer.parseInt(Integer.java:332) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > java.lang.Integer.valueOf(Integer.java:506) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > com.example.otomasyon.otobus_durumu.otobus4654(otobus_durumu.java:100) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > com.example.otomasyon.otobus_durumu.onCreate(otobus_durumu.java:37) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: > 1047) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 1611) > 05-17 04:42:12.209: ERROR/AndroidRuntime(352): ... 11 more > 05-17 04:42:12.239: WARN/ActivityManager(61): Force finishing > activity com.example.otomasyon/.otobus_durumu > 05-17 04:42:12.269: WARN/ActivityManager(61): Force finishing > activity com.example.otomasyon/.bilet > 05-17 04:42:12.779: WARN/ActivityManager(61): Activity pause timeout > for HistoryRecord{406af200 com.example.otomasyon/.otobus_durumu} > 05-17 04:42:22.021: WARN/ActivityManager(61): Launch timeout has > expired, giving up wake lock! > 05-17 04:42:22.856: WARN/ActivityManager(61): Activity idle timeout > for HistoryRecord{40683528 com.example.otomasyon/.otomasyon} > 05-17 04:42:28.173: WARN/ActivityManager(61): Activity destroy timeout > for HistoryRecord{40737cb8 com.example.otomasyon/.bilet} > 05-17 04:42:28.178: WARN/ActivityManager(61): Activity destroy timeout > for HistoryRecord{406af200 com.example.otomasyon/.otobus_durumu} > > > thats my logcat > > sefer_listesi.setOnItemClickListener(new > AdapterView.OnItemClickListener() { > > public void onItemClick(AdapterView<?> a, View v, > int position, > long id) { > Intent yonlen=new > Intent(bilet.this,otobus_durumu.class); > int > > sayi=Integer.parseInt(sefer_listesi.getItemAtPosition(position).toString()); > String seferno[]; > seferno=SeferBilgileri.get(sayi).split("!"); > yonlen.putExtra("sefer_no",seferno[4]); > yonlen.putExtra("koltuk_sayisi",seferno[5]); > startActivity(yonlen); > } > }); > that's my onclick method please help me > > -- > 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 > -- Romain Guy Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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

