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

Stack Overflow | Piers Geyman | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

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

    onitemclicklistener

    solveseek.com | 2 years 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 | 3 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 10 months ago
  2. bayukresno 1 times, last 12 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