background preloader

Android

Facebook Twitter

SMS Messaging in Android. It would be safe to say that nearly every mobile phone sold in the past decade has SMS messaging capabilities. In fact, SMS messaging is one great killer application for the mobile phone and it has created a steady revenue stream for mobile operators. Understanding how to use SMS messaging in your application can provide you with many ideas to create the next killer application. In this article, we take a look at how you can programmatically send and receive SMS messages in your Android applications.

The good news for Android developers is that you don't need a real device to test out SMS messaging - the free Android emulator provides the capability to do so. Sending SMS Messages To get started, first launch Eclipse and create a new Android project. Figure 1 Creating a new Android project using Eclipse Android uses a permission-based policy where all the permissions needed by an application need to be specified in the AndroidManifest.xml file. The sendSMS() function is defined as follows: Help. Using Hardware Devices. When building a mobile application, it's important that you always test your application on a real device before releasing it to users. This page describes how to set up your development environment and Android-powered device for testing and debugging on the device.

You can use any Android-powered device as an environment for running, debugging, and testing your applications. The tools included in the SDK make it easy to install and run your application on the device each time you compile. You can install your application on the device directly from Eclipse or from the command line with ADB. If you don't yet have a device, check with the service providers in your area to determine which Android-powered devices are available. If you want a SIM-unlocked phone, then you might consider a Nexus phone. Note: When developing on a device, keep in mind that you should still use the Android emulator to test your application on configurations that are not equivalent to those of your real device. Downloads - mirror selection. Developers.