I would like to know if there is a way to fully stop one activity when another activity is called. For instance, I have two activities within an application but it seems like that when one activity is called another activity seems to be running (such as Background services). I thought that when one activity within an application is called another activity is stopped under the circumstance that there are two activities. Following is manifest file for the application (I deleted lines for Background services here..) Thanks in advance! :)
<?xml version="1.0" encoding="utf-8"?>
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.me.hello"
android:label="@string/app_name"
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>