In the following Code to send SMS using SMS Manager:
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo, null,message, null, null);
In the below dialog that i recieve it when the device android version 4.3 or 4.4. how can detect status if click Send or cancel?
You will find that you can't detect status if click Send or Cancel as long as you read the corresponding source code.
"The default behavior for sending a message to a premium SMS short code (or suspected premium SMS number) is to ask the user for confirmation. Enable the user to set a default policy ("remember this choice" checkbox) to always/never allow the app to send SMS to premium short codes in the future. The policy can be changed by the Settings app in the app info screen." See here for details
The dialog is defined in src/java/com/android/internal/telephony/SMSDispatcher.java
And the Callbacks of negative and positive button:
When you click the Send or Cancel button on the dialog, it will send a message to its handler in its thread. But it seems that there is no way for you to capturing the click event.