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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -