|
how to read sms in mobile app pragmatically in java?
|
|
|
|
|
i am beginner in java and mobile development and want create app that can run on Java mobile OS,Symbian or any of mobile OS(i guess i need an app with jar extension that can run on listed OS) and want get sms in that app
can you help me pleas?
|
|
|
|
|
I working on Android, ,,
If you have any question in Android, i can help you
|
|
|
|
|
how to receive sms from special phone number in android app ?
thanks.
modified 3-Dec-12 9:04am.
|
|
|
|
|
You can use this code, for more details , please see, developer.android.com
Cursor cur = getContentResolver().query(uriSMSURI,
null, null, null, null);
String sms = "";
cur.moveToFirst();
int index = 0;
while (cur.isAfterLast() == false) {
if (cur.getString(2).equals("Phone number")) {
sms = cur.getString(cur.getColumnIndex("body"));
String[] smsHeader = sms.split(",");
}
cur.moveToNext();
}
|
|
|
|
|
hi
how to run avd?
when i start an avd this error is shown:
Starting emulator for AVD 'mm'
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
can you please send me an email in Persian language i can't telling well my problem in English language?
this is my mail address :
m2000.saleh@ymail.com
|
|
|
|
|