07-26 13:32:38.705: ERROR/Zygote(32): setreuid() failed. errno: 2
07-26 13:32:46.206: ERROR/Zygote(32): setreuid() failed. errno: 17
07-26 13:32:47.526: ERROR/BatteryService(58): usbOnlinePath not found
07-26 13:32:47.526: ERROR/BatteryService(58): batteryVoltagePath not found
07-26 13:32:47.526: ERROR/BatteryService(58): batteryTemperaturePath not found
07-26 13:32:47.556: ERROR/SurfaceFlinger(58): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
07-26 13:32:54.275: ERROR/EventHub(58): could not get driver version for /dev/input/mouse0, Not a typewriter
07-26 13:32:54.285: ERROR/EventHub(58): could not get driver version for /dev/input/mice, Not a typewriter
07-26 13:32:54.496: ERROR/System(58): Failure starting core service
07-26 13:32:54.496: ERROR/System(58): java.lang.SecurityException
07-26 13:32:54.496: ERROR/System(58): at android.os.BinderProxy.transact(Native Method)
07-26 13:32:54.496: ERROR/System(58): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
07-26 13:32:54.496: ERROR/System(58): at android.os.ServiceManager.addService(ServiceManager.java:72)
07-26 13:32:54.496: ERROR/System(58): at com.android.server.ServerThread.run(SystemServer.java:184)
07-26 13:32:55.756: ERROR/SoundPool(58): error loading /system/media/audio/ui/Effect_Tick.ogg
07-26 13:32:55.765: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressStandard.ogg
07-26 13:32:55.775: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressSpacebar.ogg
07-26 13:32:55.795: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressDelete.ogg
07-26 13:32:55.804: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressReturn.ogg
07-26 13:32:59.184: ERROR/ThrottleService(58): Could not open GPS configuration file /etc/gps.conf
07-26 13:33:00.706: ERROR/logwrapper(148): executing /system/bin/tc failed: No such file or directory
07-26 13:33:00.764: ERROR/logwrapper(149): executing /system/bin/tc failed: No such file or directory
07-26 13:33:00.815: ERROR/logwrapper(150): executing /system/bin/tc failed: No such file or directory
07-26 13:33:12.188: ERROR/HierarchicalStateMachine(58): TetherMaster - unhandledMessage: msg.what=3
07-26 13:34:04.617: ERROR/AndroidRuntime(276): FATAL EXCEPTION: main
07-26 13:34:04.617: ERROR/AndroidRuntime(276): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dataApplication/com.dataApplication.Edit}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.os.Looper.loop(Looper.java:123)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at java.lang.reflect.Method.invokeNative(Native Method)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at java.lang.reflect.Method.invoke(Method.java:521)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at dalvik.system.NativeStart.main(Native Method)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ListActivity.onContentChanged(ListActivity.java:245)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.Activity.setContentView(Activity.java:1647)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at com.dataApplication.Edit.onCreate(Edit.java:32)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-26 13:34:04.617: ERROR/AndroidRuntime(276): ... 11 more
0
A
回答
2
了java.lang.RuntimeException:
您的內容必須有一個ListView其id屬性爲 'android.R.id.list'
確保您的查看文件有一個ListView
元素,其中android:id="@android:id/list"
。
這就是ListActivity
知道在哪裏顯示您要添加的數據。
1
從http://developer.android.com/reference/android/app/ListActivity.html
ListActivity擁有一個由在屏幕中心的單一,全屏幕列表的默認佈局。但是,如果您願意,可以通過在onCreate()中使用setContentView()設置您自己的視圖佈局來自定義屏幕布局。要做到這一點,你自己的觀點必須包含id爲一個ListView對象「@android:ID /列表」(或列表,如果它在代碼)
檢查,如果你有「@android:ID /列表」中你的XML?
相關問題
- 1. 錯誤,而開始另一個活動
- 2. 開始一個新的活動,但我得到一個ActivityNotFoundException
- 3. 在開始一個活動時得到一個Java SecurityException
- 4. android開始活動錯誤
- 5. 錯誤開始活動,
- 6. 試圖讓我的listView開始一個活動。得到一個奇怪的錯誤
- 7. 開始另一個活動時出錯
- 8. 在活動校驗錯誤開始
- 9. 我得到ActivityNotFoundException錯誤,當我試圖啓動一個新的活動在android
- 10. 我如何開始一個活動的結果,並從我開始的活動中獲得結果?
- 11. 開始另一個活動
- 12. 運行命令「npm我」後,我開始得到多個錯誤
- 13. 在Windows 7開始mongod.exe,得到錯誤
- 14. 我得到一個錯誤
- 15. 我得到一個錯誤
- 16. 開始活動的Android錯誤
- 17. 處理開始活動時的錯誤
- 18. 錯誤開始新的活動
- 19. Android - 錯誤的活動有時開始
- 20. 活動開始時的Android錯誤
- 21. 的Android開始新的活動錯誤
- 22. docx4j錯誤當開始活動
- 23. 在onCreate()中開始另一個活動?
- 24. 我得到的開始兩個錯誤反應本地項目
- 25. 我得到錯誤,而我開始我的數據庫
- 26. 我得到一個SQL錯誤在PHP
- 27. 我得到一個錯誤,在PHP
- 28. 開始活動時出錯
- 29. 開始活動時出錯
- 30. 開始第二個活動時出錯
不錯,讓我發笑。 – RobotRock 2011-10-30 21:33:19