我搜索了很多,但没有找到任何合适的答案。 请有人帮我,我怎么可以使用Wifi发送消息像WhatsApp。使用Wifi创建Android应用程序发送消息
我用这段代码。我可以使用Sim使用这段代码发送消息。但我想用Wifi发送消息。
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(number, null, message, null, null);
Toast.makeText(getApplicationContext(), "SMS sent.", Toast.LENGTH_LONG).show();
我想你误解了短信的工作原理。它不适用于WIFI。 – Steve
你能否给我提供一个我可以用来使用wifi发送消息的代码。 –
如果你想通过WiFi发送短信,那么没有解决方案。 – Steve