将文本直接发送到我的 SMS 应用程序。使其显示为文本
Sending an text directly to my SMS app. Make it display as a text
我可以使用以下代码发送短信:
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
但我想直接向我的短信应用程序发送短信。我最好的例子是 "Fake Text" 应用程序,您可以在其中输入要发送到 phone 的名称和消息,遗憾的是我没有任何源代码。
Android 实现在应用程序之间共享数据的机制。但是你需要在发送方和接收方应用程序中添加相应的和平代码。
您可以使用 Content providers or using shared preferences.
希望对您有所帮助。
我可以使用以下代码发送短信:
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
但我想直接向我的短信应用程序发送短信。我最好的例子是 "Fake Text" 应用程序,您可以在其中输入要发送到 phone 的名称和消息,遗憾的是我没有任何源代码。
Android 实现在应用程序之间共享数据的机制。但是你需要在发送方和接收方应用程序中添加相应的和平代码。
您可以使用 Content providers or using shared preferences.
希望对您有所帮助。