java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead

Appcelerator JIRA | Fokke Zandbergen | 2 years ago
  1. 0

    Setting {{touchEnabled}} to {{false}} causes the app to crash on Android: h3. Reproducing code {code:xml} <Alloy> <Window> <Picker touchEnabled="false"/> </Window> </Alloy> {code} h3. Log {code} [ERROR] : TiApplication: (main) [558,558] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead; Titanium 4.0.0,2015/05/18 15:42,9239ff9 [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) [ERROR] : TiApplication: at android.app.ActivityThread.access$600(ActivityThread.java:130) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4745) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) [ERROR] : TiApplication: Caused by: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead {code} Reported via Q&A: https://community.appcelerator.com/topic/520/app-crashed-when-using-widget-with-picker-in-it/3

    Appcelerator JIRA | 2 years ago | Fokke Zandbergen
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
  2. 0

    Setting {{touchEnabled}} to {{false}} causes the app to crash on Android: h3. Reproducing code {code:xml} <Alloy> <Window> <Picker touchEnabled="false"/> </Window> </Alloy> {code} h3. Log {code} [ERROR] : TiApplication: (main) [558,558] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead; Titanium 4.0.0,2015/05/18 15:42,9239ff9 [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084) [ERROR] : TiApplication: at android.app.ActivityThread.access$600(ActivityThread.java:130) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4745) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) [ERROR] : TiApplication: Caused by: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead {code} Reported via Q&A: https://community.appcelerator.com/topic/520/app-crashed-when-using-widget-with-picker-in-it/3

    Appcelerator JIRA | 2 years ago | Fokke Zandbergen
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
  3. 0

    getting URL response in Java throwing exception

    Stack Overflow | 3 years ago | user2789153
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.agvinsant.java1application/com.agvinsant.java1application.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Maven project using Volley: NullPointerException

    Stack Overflow | 3 years ago | s73v3r
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lhs.app/com.lhs.app.MainActivity}: java.lang.NullPointerException
  6. 0

    Bad Parcelable exception

    Stack Overflow | 4 years ago | user1659653
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.take2/com.take2.Contacts}: android.os.BadParcelableException: Parcelable protocol requires a Parcelable.Creator object called CREATOR on class com.take2.Persona

  1. bmacedo 1 times, last 2 weeks ago
  2. VeryRedChris 23 times, last 3 weeks ago
  3. franky li 6 times, last 1 month ago
  4. filpgame 27 times, last 3 weeks ago
  5. ajinkya_w 61 times, last 2 months ago
46 more registered users
43 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Unable to start activity ComponentInfo{com.reynald.test4project/org.appcelerator.titanium.TiActivity}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    3. android.app.ActivityThread.access$600(ActivityThread.java:130)
    4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    5. android.os.Handler.dispatchMessage(Handler.java:99)
    6. android.os.Looper.loop(Looper.java:137)
    7. android.app.ActivityThread.main(ActivityThread.java:4745)
    7 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    2 frames
  5. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame