I was working on and app that would make a phone call when it’s started. When the call is done, instead of showing the Dialer, Call log, Contacts .. screen, i get the default black window (main.xml) created by the android adt.
After going through the Dev Guide, i found you can use the android:noHistory attribute to remove the activity from the activity stack. Here’s the AndroidManifest.xml of my project:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ipthing.TestApp" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".TestApp" android:label="@string/app_name" android:stateNotNeeded="true" android:noHistory="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-sdk android:minSdkVersion="3" /> <uses-permission android:name="android.permission.CALL_PHONE"></uses-permission> </manifest>
October 6th, 2009 → 4:30 pm @ admin
0