[android-developers] Delete SMS

2010-09-24 Thread perumal316
Hi All,

I am writing my own SMS application that will display a toast of my
message once it arrive. Now is it possible to delete the message after
the display of the toast, so that it will not go into the native SMS
application?

Thanks In Advance,
Perumal

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Delete SMS messages from SIM card

2009-03-20 Thread Mark K


Anyone know how to delete SMS messages from the SIM card? Thanks!

 Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Delete SMS from Inbox

2009-01-15 Thread Kamal Hasan

Hi,

Anybody knows how to delete sms from inbox.
I have tried using the following format but its giving Illegal
argument Exception : Unknown URL

getContentResolver().delete(Uri.parse(content://sms/
inbox),null,null);


Anybody knows the format to delete sms ?

Thanks a lot

Kamal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] DELETE SMS FROM INBOX

2008-10-15 Thread rajesh

Is there any way to delete SMS(s) from the inbox.

i am trying out
context.getContentResolver().delete(Uri.parse(content://sms/inbox),
null, null);

[In the above case, the purpose is to delete all the SMSs in the
inbox]

But I am getting invalid URL.

I intend to delete a particualr SMS based on a particular incoming
number. Is this possible

please help


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Delete sms from inbox

2008-10-14 Thread e

plz help me out..
i use for delete sms from in inbox
i use:


 Cursor c = context.getContentResolver().query(Uri.parse(content://
sms/inbox), null,null, null, null);
   Log.d(TAG, Read  + Integer.toString(c.getCount())
+  SMS messages from content ( +
Integer.toString(c.getColumnCount()) +  columns));
   Log.i(eer,555==1===+c.getCount());
   //Uri mUri=intent.getData();
   Uri mUri=Uri.parse(content://sms/
inbox/+c.getCount());
   Log.i(uri ,deedededede+mUri);
   c.close();
   c = null;
   context.getContentResolver().delete(mUri, null,
null);

and i have permission:

uses-permission android:name=android.permission.RECEIVE_SMS/uses-
permission
uses-permission android:name=android.permission.READ_SMS/uses-
permission
uses-permission android:name=android.permission.SEND_SMS/uses-
permission
uses-permission android:name=android.permission.WRITE_SMS/uses-
permission

but i have error:


10-14 13:54:41.903: INFO/eer(430): 555==1===14
10-14 13:54:41.903: INFO/uri(430): deededededecontent://sms/inbox/14
10-14 13:54:41.983: ERROR/DatabaseUtils(88): Writing exception to
parcel
10-14 13:54:41.983: ERROR/DatabaseUtils(88):
java.lang.IllegalArgumentException: Unknown URL
10-14 13:54:41.983: ERROR/DatabaseUtils(88): at
com.android.providers.telephony.SmsProvider.delete(SmsProvider.java:
510)
10-14 13:54:41.983: ERROR/DatabaseUtils(88): at
android.content.ContentProvider$Transport.delete(ContentProvider.java:
149)
10-14 13:54:41.983: ERROR/DatabaseUtils(88): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
149)
10-14 13:54:41.983: ERROR/DatabaseUtils(88): at
android.os.Binder.execTransact(Binder.java:276)
10-14 13:54:41.983: ERROR/DatabaseUtils(88): at
dalvik.system.NativeStart.run(Native Method)
10-14 13:54:42.032: DEBUG/AndroidRuntime(430): Shutting down VM
10-14 13:54:42.042: WARN/dalvikvm(430): threadid=3: thread exiting
with uncaught exception (group=0x40010e28)
10-14 13:54:42.042: ERROR/AndroidRuntime(430): Uncaught handler:
thread main exiting due to uncaught exception
10-14 13:54:42.073: ERROR/AndroidRuntime(430):
java.lang.RuntimeException: Unable to start receiver
org.sms.ServerMessagesReceiver: java.lang.IllegalArgumentException:
Unknown URL
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2289)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.app.ActivityThread.access$2700(ActivityThread.java:112)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1628)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.os.Handler.dispatchMessage(Handler.java:88)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.os.Looper.loop(Looper.java:123)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.app.ActivityThread.main(ActivityThread.java:3742)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
java.lang.reflect.Method.invokeNative(Native Method)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
java.lang.reflect.Method.invoke(Method.java:515)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:739)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
dalvik.system.NativeStart.main(Native Method)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): Caused by:
java.lang.IllegalArgumentException: Unknown URL
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
128)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:
110)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.content.ContentProviderProxy.delete(ContentProviderNative.java:
362)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.content.ContentResolver.delete(ContentResolver.java:386)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
org.sms.ServerMessagesReceiver.onReceive(ServerMessagesReceiver.java:
76)
10-14 13:54:42.073: ERROR/AndroidRuntime(430): at
android.app.ActivityThread.handleReceiver(ActivityThread.java:2280)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---