1
使用意圖從片段啓動活動時出現錯誤。從片段啓動新活動時發生崩潰
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 to find explicit activity class
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1719)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1491)
at android.app.Activity.startActivityForResult(Activity.java:3436)
at android.app.Activity.startActivityForResult(Activity.java:3393)
at android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:848)
at android.support.v4.app.Fragment.startActivity(Fragment.java:878)
at es.timetrack.app.InActivityPageFragment.onClick(InActivityPageFragment.java:148)
你是否在manifest文件中聲明瞭它? – Raghunandan