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
Post a Comment