send sms j2me appear promt message

后端 未结 3 1773
误落风尘
误落风尘 2021-01-21 18:13

When I am sending sms via j2me application, before message sent it appears question for can I use internet to sent message. Is it possible to exit this question to not appear?

3条回答
  •  走了就别回头了
    2021-01-21 18:55

    I think you can skip the prompt but your application must be signed. However, even if your application is signed, on some devices, the prompt will still appear once. This usually (or always) occurs on the session's first use of the Wireless Messaging API. This happens because the access to this API is set to something like "Ask first time."

    If your app is signed, you can manually set the access to the wireless network settings to (something like) "Always allow." If it is set to (something like) this, the prompt will not appear.

    For apps that are not signed, the option "Always allow" is not available. However, on most devices, the next best option is available: "Ask first time."

    Well, the bad thing is, you are going to set it manually. The good thing, however, is that you are not going spend so much money just to set it to "Ask first time." :D

提交回复
热议问题