2013-05-30 84 views

回答

0

我不知道如何工作的PhoneGap可是如果你的活動,那麼你可以使用以下代碼:

Intent sendIntent = new Intent(); 
sendIntent.setAction(Intent.ACTION_SEND); 
sendIntent.putExtra(Intent.EXTRA_TEXT, "A text to share"); 
sendIntent.setType("text/plain"); 
startActivity(Intent.createChooser(sendIntent, "Share via")); 

檢查Android's documentation for sending content to other apps

Here in method shareList(行406)你有一個工作的例子。

+0

謝謝你的回覆,但我不知道如何使用你的手機信息。 – Tommykx

+0

沒關係!你在這裏檢查過這個答案嗎? [PhoneGap的股的功能到電子郵件-Twitter的和Facebook的](http://stackoverflow.com/questions/4570701/phonegap-share-functionality-to-email-twitter-and-facebook);並檢查[此鏈接](http://www.raymondcamden.com/index.cfm/2012/5/1/Example-of-Intents-with-PhoneGap)too –

+0

我認爲OP希望他的應用程序能夠接收共享意圖,不發送? (實際上,我也在尋找這個:D) – REJH

相關問題