title: java.lang.ClassCastException in android
body: <p>I have created an app and it was running successfully till yesterday, by today when I tried running it on my device it shows the following error in logcat and my app gets crashed.</p>
  
  <pre><code>03-31 12:37:47.059: ERROR/(1916): java.lang.ClassCastException: android.widget.ImageView
  03-31 12:37:47.239: ERROR/AndroidRuntime(1916): Uncaught handler: thread main exiting due to uncaught exception
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fis.flash/com.fis.flash.FirstImage}: java.lang.ClassCastException: android.widget.AbsoluteLayout
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.os.Handler.dispatchMessage(Handler.java:99)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.os.Looper.loop(Looper.java:123)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.app.ActivityThread.main(ActivityThread.java:4363)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at java.lang.reflect.Method.invokeNative(Native Method)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at java.lang.reflect.Method.invoke(Method.java:521)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at dalvik.system.NativeStart.main(Native Method)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916): Caused by: java.lang.ClassCastException: android.widget.AbsoluteLayout
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at com.fis.flash.FirstImage.onCreate(FirstImage.java:106)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
  03-31 12:37:47.246: ERROR/AndroidRuntime(1916):     ... 11 more
  </code></pre>
  
  <p>It shows an error in a <code>ImageView</code> of my  main class activity, but all the details are been correct in my coding side.</p>
  
  <p>What's this error, how to over come this?</p>