Joke Collection Website - Blessing messages - Lua gets the number of short messages.

Lua gets the number of short messages.

Depending on the settings, you can change the number of messages you get.

Send text messages in the background

Need to "import"

Import "Android. Telephone. * "SMS manager. GetDefault()。 Send a text message (Tostring (number), nil, tostring (content), nil, nil).

Call the system to send SMS.

Import "android.content.Intent"

Import "android.net.Uri"

Uri = Uri.parse("smsto: "... number) intention = intention. Action _ Sendto, URI) intention. Put Extra ("SMS _ body ",content) intention. Set the action ("Android. Intention. Action. View ") activities. Start an activity (intention).