java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead

Stack Overflow | astevens009 | 4 months ago
  1. 0

    Debug tells me to switch setOnClickListener with setOnItemClickListener

    Stack Overflow | 1 year ago | JJ Stamp
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.customledsupply.ledaudit/com.customledsupply.ledaudit.RoomDescription}: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
  2. 0

    Android: Using setOnItemClickListener on ListView

    Stack Overflow | 4 months ago | astevens009
    java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
  3. 0

    onitemclicklistener

    solveseek.com | 1 year ago
    java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    onClickListener couses Crash with TextView

    Stack Overflow | 6 years ago | Yaniv
    java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
  6. 0

    Making onClick of SimpleCursorAdapter

    Stack Overflow | 2 years ago | Vivek Warde
    java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead

  1. brunosatriani 15 times, last 4 months ago
  2. bayukresno 1 times, last 6 months ago
4 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

    Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead

    at android.widget.AdapterView.setOnClickListener()
  2. Android Platform
    AdapterView.setOnClickListener
    1. android.widget.AdapterView.setOnClickListener(AdapterView.java:783)
    1 frame