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. MyLocationOverlay blocks my Activity

Dear all,

I am facing a strange issu :

as soon as I try to instanciate a new MyLocationOverlay, my
application is blocked.

here is my code snippet

        mapViewFromXML = (MyMapView) this.findViewById(R.id.my_map);
         Log.d("MAP", "BEFORE CREATING MY LOCATION OVERLAY");
         mylocation = new MyLocationOverlay(this, mapViewFromXML);
         Log.d("MAP", "AFTER CREATING MY LOCATION OVERLAY");

And here is my log cat =

05-05 13:56:04.251: ERROR/ActivityThread(2961): Failed to find
provider info for com.google.settings
05-05 13:56:04.391: DEBUG/MAP(2961): BEFORE CREATING MY LOCATION
OVERLAY
05-05 13:56:04.401: DEBUG/MAP(2961): AFTER CREATING MY LOCATION
OVERLAY
05-05 13:56:04.421: DEBUG/LocationManager(2961): removeUpdates:
listener = com.google.android.maps.mylocationover...@435c17f8
05-05 13:56:04.431: DEBUG/GpsLocationProvider(567): setMinTime 0
05-05 13:56:04.440: INFO/Maps.MyLocationOverlay(2961): Request updates
from gps
05-05 13:56:04.461: DEBUG/qemud(546): fdhandler_accept_event:
accepting on fd 10
05-05 13:56:04.461: DEBUG/qemud(546): created client 0xc088 listening
on fd 14
05-05 13:56:04.471: DEBUG/qemud(546): client_fd_receive: attempting
registration for service 'sensors'
05-05 13:56:04.471: DEBUG/qemud(546): client_fd_receive:    ->
received channel id 31
05-05 13:56:04.481: DEBUG/qemud(546): multiplexer_handle_control:
unknown control message (26 bytes): 'ko:connect:1f:service busy'
05-05 13:56:09.160: INFO/ActivityManager(567): Displayed activity
com.glo.android/.X: 18065 ms
05-05 13:56:14.123: WARN/ActivityManager(567): Launch timeout has
expired, giving up wake lock!
05-05 13:56:14.150: WARN/ActivityManager(567): Activity idle timeout
for HistoryRecord{43646278 {com.glo.android/
com.glo.android.StationNearActivity}}

//
If I remove the instanciation then every thing is going fine (clear
but empty mapview). Did I do something wrong ?

Thanks for your help.


--~--~---------~--~----~------------~-------~--~----~

2. Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted. Error

Thanks, I meet the same problem. create a new AVD solve it.






--~--~---------~--~----~------------~-------~--~----~

3. is android:layout_width and android:layout_height manditory attributes

4. Is it possible to share one 'Canvas' in multiple custom-views within a single Activity?

5. how to add class path to build.xml file generated by android tool

6. catching points with the Gps

7. looking for push mobile mail libs/framewor