Thanks for the reply, Mark (I recognize the name - I read your book.) I understand your reasonable argument. Unfortunately, the application I'm writing has a requirement that it be designed so that it is completely automated. It is not a true user application at all - more like a test application which maintains a socket connection to a driver program outside Android.
I am trying to place a call with the Activity that may - but need not, have any graphical UI aspect to it. Launching an Activity appears to be the only way to place a call in Android 1.0. If the thinking of the API is to disallow any calls being placed in an automated fashion, it seems to me that there would be no need for ACTION_CALL - only ACTION_DIAL. I am also wondering if there exists within the exposed Android API, a way to hang up a call in an automated fashion. No appropriate intents exist - it seems the only remaining possibility is calling finish() or finishActivity(ACTIVITY_ID) on the Activity used to place or answer the call. However, there is nothing in the docs which actually states that. If I can get past my currently difficulty, I will definitely test it. I'll be reconfiguring the program to see if I can get different results - perhaps I missed something simple in the Manifest. However, a NullPointerException really does merit some explanation. Paul On Nov 10, 4:33 pm, Mark Murphy <[EMAIL PROTECTED]> wrote: > dreamerBoywrote: > > However, same error. > > I'm somewhat skeptical that launching an activity, particularly via > startActivityForResult(), will work from a service. I know it's in the > API, but think about what that means: some background process can cause > a full-fledged activity to spawn in front of the user, in the middle of > the user doing something else? That really violates the spirit of the UI > Android seems to be aiming for. > > Are you sure you want a service spawning this activity, instead of some > other activity doing it? Or maybe use Notifications or something? > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---