John x
John x

Reputation: 4031

Manipulate Native SMS App

Im sending SMS in my application using Intent like

Intent si= new Intent(Intent.ACTION_VIEW);
si.putExtra("sms_body", "some text"); 
si.putExtra("address", "123456789"); 
si.setType("vnd.android-dir/mms-sms");
startActivity(si);

is there a way i can restrict the user from adding any additional text, disable the native application's EditText area, is that possible...

Upvotes: 0

Views: 64

Answers (1)

baboo
baboo

Reputation: 2023

instead of Opening SMS APP via intent Why not use SMS Manager( method sendTextMessage ) and send SMS from your app..

http://developer.android.com/reference/android/telephony/SmsManager.html

note requires permission : http://developer.android.com/reference/android/Manifest.permission.html#SEND_SMS

Upvotes: 1

Related Questions