java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText

Stack Overflow | vbCoder | 3 years 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 to put result from Async class to mainActivity EditText

    Stack Overflow | 3 years ago | vbCoder
    java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.TextView cannot be cast to android.widget.EditText

      at com.example.digiqueue.MainActivity$ftpfunctions.onPostExecute()
    2. com.example.digiqueue
      MainActivity$ftpfunctions.onPostExecute
      1. com.example.digiqueue.MainActivity$ftpfunctions.onPostExecute(MainActivity.java:106)
      2. com.example.digiqueue.MainActivity$ftpfunctions.onPostExecute(MainActivity.java:1)
      2 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.AsyncTask.finish(AsyncTask.java:631)
      2. android.os.AsyncTask.access$600(AsyncTask.java:177)
      3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)
      4. android.os.Handler.dispatchMessage(Handler.java:99)
      5. android.os.Looper.loop(Looper.java:176)
      6. android.app.ActivityThread.main(ActivityThread.java:5365)
      6 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame