开发者

Android SkypeOut Replicate Functionality

开发者 https://www.devze.com 2023-02-24 04:07 出处:网络
I\'ve just installed Skype on my Android phone and I\'ve noticed that when I am to make a call, using either Keypad or choosing a contact, I g开发者_JAVA百科et a \"Complete action using\" option list

I've just installed Skype on my Android phone and I've noticed that when I am to make a call, using either Keypad or choosing a contact, I g开发者_JAVA百科et a "Complete action using" option list with the "Keypad" and "SkypeOut" options in it.

I can understand that Skype's developers managed to some how "intercept" my intention to make a call and gave me the options mentioned above.

My question is how can I achieve the same behaviour in my application for both making an outgoing call and sending an outgoing sms.

My real intention is to make an option list with "Messaging" and "MyApplication" options to be shown whenever the user tapps the button "Send" in the stock messaging application.

Thanks in advance,


Anytime an Intent is fired which could be handled by multiple apps (more precisely, by multiple activities), the OS will ask the user to choose, it's not specific to calls or Skype. A common example is sharing: for example, if you click "Share" in the gallery, you will get a list of installed apps that can be used as a sharing tool: GMail, Facebook, Twitter, Buzz etc. See the Dev Guide article "Intents and Intent Filters" for more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消