i have read through all the documentation and the questions posted previously, but i couldn't find myself an answer. by writing the below code, i would like to send an sms whenever i am within the proximity.
Firstly, i would like to check that if the intent only creates the sms and not send it? if it doesn't, is there a way which i can send sms for the proximity alert. secondly, the proximityalert did not fire up due to some reasons, is there something wrong with the code ?
thanks.
Intent smsintent = new Intent(android.content.Intent.ACTION_VIEW);
smsintent.putExtra("address", "96424127");
smsintent.putExtra("sms_body", "child alert");
smsintent.setType("vnd.android-dir/mms-sms");
PendingIntent pendintent = PendingIntent.getService(this, 0, smsintent, 0);
lm.addProximityAlert(103.8497215, 1.3630663, 1000, 100000000, pendintent);`