Calling subactivity from subactivity
        Posted  
        
            by yogsma
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by yogsma
        
        
        
        Published on 2010-05-17T03:36:05Z
        Indexed on 
            2010/05/17
            3:40 UTC
        
        
        Read the original article
        Hit count: 329
        
I have three activities in my android app. First activity is main application screen which gives option to open second screen containing second activity. But when I click on the button on second activity which was supposed to open third activity screen, I get "Application has stopped unexpectedly" error.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="org.anddev.android.SampleApp"
  android:versionCode="1"
  android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".FirstActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".SecondActivity"
              android:label="@string/app_name" >
   </activity>        
    <activity android:name=".ThirdActivity"
              android:label="@string/app_name" >
    </activity>
</application>
© Stack Overflow or respective owner