File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes android action_call intent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "android action_call intent" Watch "android action_call intent" New topic
Author

android action_call intent

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102

Hi
I am trying my hand on a simple application that I want triggered when the user dials a number .My activity has an intent ACTION_CALL and hence should be presented to the user to choose at runtime. I am trying this in the emulator and nothing is displayed it says mobile network is not available
Any help appreciated.
subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
Hi
I think I got it wrong this is from the api.
public static final String ACTION_CALL

Activity Action: Perform a call to someone specified by the data.


What I want to do is allow the user to route his call through my app i.e similar to what happens with skype when you download it on the android.
How do I do that
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42591
    
  65
How are you specifying that your app can handle that kind of intent? Post the relevant excerpt from the AndroidManifest.xml file.


Ping & DNS - my free Android networking tools app
subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
<activity android:name=".PhoneDemo" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.CALL" />

</intent-filter>
</activity>


I have an activity called PhoneDemo that should be invoked when intent is call ....
subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
can anyone help me out here?
I am learning how to program in android and was trying a simple implicit intent example i.e call a number and wanted to see if my app would be invoked
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: android action_call intent