File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

android action_call intent

 
subu ananthram
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you specifying that your app can handle that kind of intent? Post the relevant excerpt from the AndroidManifest.xml file.
 
subu ananthram
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic