Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SmsSentReceiver extends BroadcastReceiver
- {
- @Override
- public void onReceive(Context context, Intent intent)
- {
- if (getResultCode() == Activity.RESULT_OK)
- Toast.makeText(context, R.string.sent, Toast.LENGTH_SHORT).show();
- else
- Toast.makeText(context, R.string.error_sending_sms, Toast.LENGTH_LONG).show();
- context.unregisterReceiver(this);
- }
- }
- public class SmsSentReceiver extends BroadcastReceiver
- new Handler(Looper.getMainLooper()).post(new Runnable()
- {
- @Override
- public void run()
- {
- Toast.makeText(context, R.string.sent, Toast.LENGTH_SHORT).show();
- }
- });
- new Handler(Looper.getMainLooper()).post(new Runnable()
- {
- @Override
- public void run()
- {
- Toast.makeText(context, R.string.sent, Toast.LENGTH_SHORT).show();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement