android - Crash when launching a new Activity from a Fragment -



android - Crash when launching a new Activity from a Fragment -

i error when launching activity fragment, using intent.

intent intent = new intent(this.getactivity(),formactivity.class); intent.putextra("horas",hours); intent.putextra("minutos",minutes); intent.putextra("segundos",seconds); intent.putextra("fecha",date); intent.putextra("hora",time); startactivity(intent);

logcat:

android.content.activitynotfoundexception: unable find explicit activity class @ android.app.instrumentation.checkstartactivityresult(instrumentation.java:1719) @ android.app.instrumentation.execstartactivity(instrumentation.java:1491) @ android.app.activity.startactivityforresult(activity.java:3436) @ android.app.activity.startactivityforresult(activity.java:3393) @ android.support.v4.app.fragmentactivity.startactivityfromfragment(fragmentactivity.java:848) @ android.support.v4.app.fragment.startactivity(fragment.java:878) @ es.timetrack.app.inactivitypagefragment.onclick(inactivitypagefragment.java:148)

declare activity starting in manifest .xml file:

<activity android:name="your.package.formactivity" android:label="formactivity" />

some additional information: the app manifest

there can see structure of manifest.xml file , used for.

in add-on not declaring activity in manifest file, application might crash due unhandled exceptions in oncreate(...) method of formactivity.

android android-intent android-activity android-fragments

Comments