reading and writing sms programmatically

by jsm_rajesh » Wed, 14 May 2008 10:37:03 GMT


Sponsored Links
 Hello,

This is Rajesh, i just want to know can we read and write sms
programmatically  using Android.
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Android Eclipse Plugin support for links in workspace via Import files?

Greetings,

I'm attempting to add some custom fonts into my <project_loc>\assets
\fonts directory. These custom fonts are used by a number of different
projects and therefore are stored outside of my project root.  Ideally
I was hoping the following would work in eclipse:

1. Create the <project_home>\assets\fonts directory.
2. Select File->Import
In the Import Dialog
3. Select the Fonts to include
Under Options group
4. Click the "Advanced >>" button
5. Check the "Create links in workspace", "Create virtual folders",
"Create link locations relative to: PROJECT_LOC" options
6. Click Finish.

Everything looks like it's working perfectly at this point, no errors
are reported by Eclipse and the TTF files show up in my package
explorer as linked files.  However when I try to test the APK the
fonts fail to load. Sure enough the APK did not contain the fonts.

Importing without linking (i.e. copying) the files into the
<project_loc>\assets\fonts directory works as expected but will is not
a clean solution from a project setup/archive perspective.

Suggestions?

-- 

2. receiving Data message on a specific port

hi ,i am trying to send a data message using
sendDataMessage("5556",null,1111,message.getBytes(),null,null) but it
seem to be not working on the receiver side

i declared a broadcast receiver in the Manifest :

        <receiver android:name=".SMSReceiver"
                  android:enabled="true"
                  >
            <intent-filter android:priority="100">
                <action
android:name="android.intent.action.DATA_SMS_RECEIVED" />
                 <data android:host="localhost"
                            android:port="1111"
                            android:scheme="sms"/>


            </intent-filter>
        </receiver>


so in the onReceive() function of the broadcastReceiver i have just
put a little test to know if the message has been received or not  :

   public void onReceive(Context context, Intent intent) {

 private  final String
ACTION="android.intent.action.DATA_SMS_RECEIVED";

                if(ACTION.equals(intent.getAction())  )
                {
                      Toast.makeText(context,"message reu",
Toast.LENGTH_LONG).show();
                }

and when i run in the emulator i  have nothing it seems the message is
sent but the receiver doesn't respond

can someone help me through this ?

-- 

3. Updating GridView child

4. camera preview problem

5. Problem in playing MP3 over RTSP streaming on Android Phones

6. Custom Layout and big view in smaller layout

7. ColdFusion and Android development