[TinyTut] - Replacing the DIAL-Action
What you learn: You will learn how to catch/replace the DIAL-Action that is broadcasted, when one starts typing numbers on the emulator-'desktop'.
Difficulty: 1 of 5

Description:
- Register the Activity you want your app to listen to it in the AndroidManifest.xml in the following way:Using xml Syntax Highlighting
- ...
- <activity class=".MyDIALHandlerApplication" android:label="@string/app_name">
- <intent-filter>
- <action android:value="android.intent.action.DIAL" />
- <category android:value="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
- ...
Parsed in 0.001 seconds, using GeSHi 1.0.8.4 - Run the app once and close it (just that it gets installed on the emulator).
- On the emulator-"desktop" start typing some numbers.
- The system will ask you which one of two available activities you want to use to handle the DIAL-Action:
- the 1st one is the "Contacts" standard system activity
- the 2nd one should be yours
Regards,
plusminus







