android - Calling subactivity from subactivity -


In my Android app I have three activities. The first activity is the main app screen that gives the option to open the second screen with another activity. is. But when I click the button on the second activity which should have opened the third activity screen, I get an "application stopped unexpectedly" error

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Manifest xmlns: Android = "http://schemas.android.com/apk/res/android" package = "org.anddev.android.SampleApp" Android: versionCode = "1" Android: versionName = "1.0" & gt; & Lt; Application Android: Icon = "@ Drable / Icon" Android: label = "@ string / app_name" & gt; & Lt; Activity Android: name = ". FirstActivity" android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = ". Second activity" Android: label = "@ string / app_name" & gt; & Lt; / Activity & gt; & Lt; Activity Android: Name = "Third Activity" Android: label = "@ string / app_name" & gt; & Lt; / Activity & gt; & Lt; / Application & gt;  

Perhaps you can use the Debug Tool You can use the application to actually stop. For example, this could be due to an NullPointerReference exception, which you can locate in the debug log.


Comments