android - i got a runtime error as "java.lang.RuntimeException: Unable to instantiate activity ComponentInfo" what would be the reason? -
i trying run listfragment prog during got below error in log cat , emulator shown force close in alert box. can 1 solve problem please....
error: 02-09 07:24:55.633: error/androidruntime(517): java.lang.runtimeexception: unable instantiate activity componentinfo{com.android.frags/com.android.frags.fragsactivity}: java.lang.classcastexception: com.android.frags.fragsactivity cannot cast android.app.activity
you need make activity extend activity class.
public class fragsactivity extends activity
also shouldn't use com.android part of namespace.
Comments
Post a Comment