Android SMS (GDayX, Dhaka, Bangladesh)

1,044 views

Published on

Published in: Engineering, Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,044
On SlideShare
0
From Embeds
0
Number of Embeds
533
Actions
Shares
0
Downloads
9
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Android SMS (GDayX, Dhaka, Bangladesh)

  1. 1. “Talk is cheap. Show me the code.” ― Linus Torvalds Who am i S. Mahbub-Uz-Zaman http://www.linkedin.com/in/mahbubzaman
  2. 2. Send SMS FIRST Receive SMS SECOND Messaging in Android THIRD Tips and Tricks
  3. 3. FIRST Send SMS Send SMS using the built-in Messaging application public void sendSMSUsingIntent() { Intent i = new Intent(android.content.Intent.ACTION_VIEW); i.putExtra("address", "01923962820"); i.putExtra("sms_body", "Hello i love recursion!"); i.setType("vnd.android-dir/mms-sms"); startActivity(i); }
  4. 4. Using Intent you can easily send SMS
  5. 5. Send SMS programmatically The sent message will not appear in the built-in Messaging application of the sender, if you send SMS programmatically. I will make a secret lover SMS App
  6. 6. Receive SMSSECOND # write a BroadcastReceiver class # send SMS using Broadcast Intent # register for BroadcastReceiver # show message
  7. 7. SMS blocker!
  8. 8. <intent-filter android:priority="1000" > To make sure your app receives the massage first If you don’t want broadcast the massage this.abortBroadcast();
  9. 9. SMS Testing on Emulator
  10. 10. At last I did something cool with emulator
  11. 11. <uses-feature android:name=”android.hardware.telephony” android:required=”true”/> Marking telephony as a required feature prevents your application from being found on Google Play using a device without telephony hardware support Other permission needed for SMS Application <uses-permission android:name="android.permission.SEND_SMS" > </uses-permission> <uses-permission android:name="android.permission.RECEIVE_SMS" > </uses-permission>
  12. 12. For More Cool Tutorials Visit: http://mahbubzaman.wordpress.com
  13. 13. Installation error: INSTALL_FAILED_DEXOPT Please check logcat output for more details. Launch canceled!
  14. 14. Thank You

×