Android button click event won't fire sometimes -


the onclick() event button in android app won't fire. button "next" button in 1 activity in series of configuration activities. first time go through series of configuration activities, onclick() event fires fine. however, if way out of app (using button) , relaunch, event never fires. i've verified putting breakpoint in next() method; method calls subsequent activity.

here's code:

button xml in layout:

<button     android:id="@+id/gender_button_id"     android:layout_height="wrap_content"     android:layout_width="fill_parent"     android:onclick="next"     android:text="@string/gender_button" /> 

activity code:

@override protected void oncreate(bundle savedinstancestate) {    super.oncreate(savedinstancestate);    setcontentview(r.layout.activity_gender); }  public void next(view view) {    intent = new intent(this, weightactivity.class);    startactivity(i); } 

put log/println statement inside next() ...what can guess print log/println onto console not start new activity because you might not have declared activity in menifest file


Comments

Popular posts from this blog

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

python - Received unregistered task using Celery with Django -