Hi is there any option to get the Out going SMS

Quickly share your Android Code Snippets here...

Hi is there any option to get the Out going SMS

Postby damu » Thu Aug 13, 2009 10:54 am

Hi

i tried to write the small app for the Getting the Count for the out going SMS from one particular date to now , i can not able to write it i tried the

android.telephony

<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
<uses-permission android:name="android.permission.READ_CONTACTS"></uses-permission>

but i can not able to complete any one give the code snippet for getting the count please

my id : damu.be@gmail.com please email me immediate
Thank you

Damu
damu
Freshman
Freshman
 
Posts: 5
Joined: Thu Aug 13, 2009 10:37 am
Location: tirunelveli

Top

Postby hrlixiang » Fri Sep 18, 2009 9:33 am

Try this:

Uri SMS_URI = Uri.parse("content://sms/sent");
Cursor smscursor = getContentResolver().query(SMS_URI, null, null,
null, null);
smscursor.getCount();
hrlixiang
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Sep 18, 2009 9:30 am

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 9 guests