Collecting SMS call logs | Reading SMS history
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace SMSLogs
{
[Activity (Label = "SMSLogs", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
int count = 1;
protected override void OnCreate (Bundle bundle)
{
base.OnCreate (bundle);
// Set our view from the "main" layout resource
SetContentView (Resource.Layout.Main);
GetSmsCallLogs ();
}
public void GetSmsCallLogs(){
Android.Net.Uri uri = Android.Net.Uri.Parse ("content://sms");
Android.Database.ICursor queryData = ContentResolver.Query(uri, null, null, null, null);
while (queryData.MoveToNext ()) {
string phoneNumber = queryData.GetString(queryData.GetColumnIndex("address"));
string date = queryData.GetString(queryData.GetColumnIndex("date"));
// type: 1 = Inbox, 2 = Sent and 3 = Draft
string type = queryData.GetString(queryData.GetColumnIndex("type"));
}
}
}
}
AndroidManifest.xml
<uses-permission android:name="android.permission.READ_SMS" />
Thanks nice post !!SMS plugins are one of the best ways to send SMS directly from the browser. SMS plugins help you to create a buzz in the market and making your marketing much easier than other traditional means of communication.
ReplyDeletecanturQob_ha Alexis Thomas https://wakelet.com/wake/z0Ob0Ta3aeU_Hi4jpVfM2
ReplyDeletexinpytingscob
ininXtemp_sa_1981 Shannon Romero click
ReplyDeletewirkruptbunsper
distariozo Chris Needleman Express VPN
ReplyDeleteSONY Vegas
Movavi Video Editor
viowebpayty
NmogeYnicpu_Sioux Falls Tim Beard There
ReplyDeleteClick here
quehattiber