java - startActivity not working on onCreateView -


oncreateview

i created button click function called

btnclick.setonclicklistener(new onclicklistener() { intent redirect = new intent(getactivity().getapplicationcontext(), mobilerecharge.class); startactivity(redirect);` } 

also androidmainfest.xml created

<activity android:name=".mobilerecharge"> </activity>` 

but when running code giving "unfortunality application stopped" error. kindly me in regards.

see log cat: java.lang.runtimeexception: binary xml file line #9: must supply layout_width attribute. check mobilerechargue xml layout, in layout tag, must specify layout_width attribute.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -