{"id":3887,"date":"2018-02-21T13:37:50","date_gmt":"2018-02-21T13:37:50","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=3887"},"modified":"2018-02-21T13:38:50","modified_gmt":"2018-02-21T13:38:50","slug":"simulate-incoming-call-sms-emulator-android-studio","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/android\/simulate-incoming-call-sms-emulator-android-studio\/","title":{"rendered":"How to simulate an incoming call or SMS to an emulator in Android Studio"},"content":{"rendered":"<p>In this quick tip, I&#8217;ll show you how easy it is to simulate an incoming call or SMS to an emulator in Android Studio.<\/p>\n<h2>TL;DR<\/h2>\n<p>In Android Studio, go to <code>Tools-&gt;Android-&gt;Android Device Monitor<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/i3uDl2P.png\" alt=\"\" \/><\/p>\n<p>Select the Emulator on the left (you have to run it first &#8211; do that through <code>Tools-&gt;Android-&gt;AVD Manager<\/code>), then the <code>Emulator Control<\/code> tab, insert the number, select <code>Voice<\/code> or <code>SMS<\/code> and click the <code>Call<\/code> or <code>Send<\/code> button:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/yf802Im.png\" alt=\"\" \/><\/p>\n<p>See both of these functions in action:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/nr0Sj7b.gif\" alt=\"\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>In this short tip, I showed you how easy it is to simulate an incoming call or SMS to an emulator in Android Studio.<\/p>\n<p>Android Device Monitor allows you to set other stuff as well, like for example the current location, Network preferences (to test your app in not so ideal connectivity situations), etc.<\/p>\n<p>Hope this helps ?<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\">\n<p lang=\"en\" dir=\"ltr\">How to simulate an incoming call or SMS to an emulator in <a href=\"https:\/\/twitter.com\/hashtag\/Android?src=hash&amp;ref_src=twsrc%5Etfw\">#Android<\/a> Studio <a href=\"https:\/\/t.co\/Ou9vRRV7RW\">https:\/\/t.co\/Ou9vRRV7RW<\/a><\/p>\n<p>&mdash; Nikola Bre\u017enjak (@HitmanHR) <a href=\"https:\/\/twitter.com\/HitmanHR\/status\/966306103352004608?ref_src=twsrc%5Etfw\">February 21, 2018<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this quick tip, I&#8217;ll show you how easy it is to simulate an incoming call or SMS to an emulator in Android Studio. TL;DR In Android Studio,&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3888,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-3887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=3887"}],"version-history":[{"count":2,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3887\/revisions"}],"predecessor-version":[{"id":3890,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3887\/revisions\/3890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/3888"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=3887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=3887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=3887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}