java - intent does not launch any activity -
in %mainactivity
have
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); intent intent = new intent(mainactivity.this, loginsignupactivity.class); startactivity(intent); .... }
in fact, intent wrapped authentication check debug deleted it, method doesn't launch loginsignupactivity
. ?
edit:
here's entire oncreate
method
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); intent intent = new intent(mainactivity.this, loginsignupactivity.class); startactivity(intent); setactionbarlistnavigation(); setupdrawer(); setupcontainer(); }
mainactivity extends customactivity
(which lods data asyncloader
) , last activity
inherits fragmentactivity
, has oncreate
method
protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); theme = getapptheme(); setupactionbar(); }
with
protected void setupactionbar() { getactionbar().setdisplayhomeasupenabled(true); getactionbar().sethomebuttonenabled(true); getactionbar().setbackgrounddrawable(getresources().getdrawable(theme)); }
at last
add: startactivity(intent);
intent intent = new intent(this, loginsignupactivity.class); startactivity(intent);
and add loginsignupactivity manifest.xml
<activity android:name=".loginsignupactivity" android:label="login" >
Comments
Post a Comment