how to receive a phone call?? what do you need in manifest??

by franw » Mon, 07 Apr 2008 01:12:08 GMT


Sponsored Links
 hi,
i want my program to start if the phone rings, so i want to receive
that action but cannot find what you need in the manifest to get this
intent to start - please help!

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
    package="com.google.android.IC">
    <application android:icon="@drawable/icon">
        <receiver android:name=".TestIncomingCall"
android:label="@string/app_name">
            <intent-filter>
                <action
android:name="android.intent.action.TESTINCOMING" />
            </intent-filter>
        </receiver>
    </application>
</manifest>
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. J'ai pas trouv茅 le chemin syst em/lib

Bonjour

Je suis dbutant dans ce monde d'android.J'ai trouv dans plusieurs
tuto des chemins system/lib ou system/fonts mais j'ai pas trouv ces
chemins l sur mon windows 7.
De l'aide svp

-- 

2. SoundPool and LOADing from a resource

The code:
//this is all contained in my MainActivity.

 private SoundPool soundPool;
    private HashMap<Integer, Integer> soundPoolMap;
    public static final int SOUND_CANNON = 1;
    public static final int SOUND_HIT = 2;
    public static final int SOUND_MISS = 3;
    public static final int SOUND_WOUND = 4;
    public static final int SOUND_TAUNT = 5;

    private void initSounds() {

        soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 100);
        soundPoolMap = new HashMap<Integer, Integer>();
        try {
        soundPoolMap.put(SOUND_CANNON, soundPool.load(this,
R.raw.cannon, 1) );
        } catch(Exception e) {
            String s = new String(e.getMessage());

        }

        soundPoolMap.put(SOUND_HIT, soundPool.load(this, R.raw.hit,
1));
        soundPoolMap.put(SOUND_MISS, soundPool.load(this, R.raw.miss,
1));
        soundPoolMap.put(SOUND_WOUND, soundPool.load(this,
R.raw.wound, 1));
        soundPoolMap.put(SOUND_TAUNT, soundPool.load(this,
R.raw.taunt, 1));

        }

The Problem:

soundPool.load fails indicating that the RESOURCE CANNOT BE FOUND.

The oog files cannon, hit, miss, wound, and taunt are in my res/raw
folder (I am using NetBeans with the Android 2.x Emulator, BTW)
As an experiment I have added a line to try to open the same resource
(i.e. via the R.raw.xxx  ID) as an InputStream and that succeeds. So I
am stumped as to why won't load as a soundPool resource.

-- 

3. ListView not refreshing on back button when cursor is changed

4. Android APIs

5. How to make a imageview at right of linearlayout

6. Putting a service into a .jar?

7. Add link to my activity in Contact's Phone Number Context Menu