Hi Thank you for Read this thread.
i tryed for apps sms blocker
first i get sms inbox message like this
public class CsmsHandler extends BroadcastReceiver {
public void onReceive(Context arg0, Intent arg1) {
Bundle bundle = arg1.getExtras();
SmsMessage[] msgs = null;
String str = "";
if (bundle != null){
Object[] pdus = (Object[]) bundle.get("pdus");
msgs = new SmsMessage[pdus.length];
for (int i=0; i<msgs.length; i++){
msgs[i] =
SmsMessage.createFromPdu((byte[])pdus[i]);
str += "SMS from " +
msgs[i].getOriginatingAddress();
str += " :";
str += msgs[i].getMessageBody().toString();
str += "\n";
}
Toast.makeText(arg0, str, Toast.LENGTH_SHORT).show();
main.instance.viewSmsList(); << mark
}
}
-- "<< mark" is ListActivity List refresh from smsinbox
DDMS send to sms recieve event and refresh List very well
but last messeage is not view in list
how can process last message into list?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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