Kirill Popov
Kirill Popov

Reputation: 320

How can i read sms using flex in android?

I'm developing application for android by using flex. That app should read sms from android and analise them. How can i read sms? I've searched all over the Internet and couldn't find any articles which would be helpful.

Is there any way to do that instead of using native extention?

Upvotes: 0

Views: 1050

Answers (1)

Gunnar Karlsson
Gunnar Karlsson

Reputation: 28470

"Is there any way to do that instead of using native extention?"

Send sms - yes, but only by calling the device's native SMS client.

Receive/read incoming sms - no.

The Air mobile API includes features that allows you to send SMS messages by invoking the device's native SMS client. There are tutorials available online how to do this, for example this one.

The Air mobile API does not includes methods that allow you to read incoming SMS messages. To implement this on an Android device you would have to write your own Native Extension.This answer on SO explains how to set up a BroadcastReceiver using the Native Android SDK to listen for incoming SMS messages. If you need help on how to implement your own Native Extensions, the Adobe Developer pages on the subject is a good start.

Upvotes: 1

Related Questions