O'Reilly logo

Flash Development for Android Cookbook by Joseph Labrecque

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending a text message from an application

With Flash on Android, we have the ability to invoke the native Android SMS utility through classes in the flash.net package based upon user interaction. We do not have the ability to supply any content for the text message, unfortunately. On Android, since all applications take up a full window, we must be extra mindful of any disruption this may cause while the user is interacting with our application.

How to do it...

Having the application invoke navigateToURL and passing in a new URLRequest with the correct URI prefix of sms: will open the default SMS utility along with the specified phone number loaded up, ready to text. In this example, we will perform this action once a TOUCH_TAP event is detected: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required