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

Stack Overflow | Piers Geyman | 4 months ago
  1. 0

    How can I handle clicks on the background of an Android GridView

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

    onitemclicklistener

    solveseek.com | 1 year ago
    java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Android App Crashed

    Stack Overflow | 4 years ago | Cross Marrian
    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:777)
    1 frame