We’ll need to ask for some permissions in order for our app to work with SMS, start by declaring in your AndroidManifest Setting up a BroadcastReceiver to listen and handle for incoming SMS.Ask for SMS permissions (both manifest and runtime).I’ve also created a simplified and easier to understand project, check the available on GitHub. Note: I’m using the Bus-eta project as a implementation example, you can read more about the it in my previous post. With relative low effort you can have your app using SMS as a data source while providing a pleasing UX, a material design UI (beats plain text□). Truth is, besides the usual 2-step-verification and related services, there are some areas on the planet □ where data is still rare and/or very expensive, so if we are to tackle the next billion, most of these new users are in emerging markets so, SMS might be a good alternative or at least something to consider. With so many different ways to communicate (I’m □ at you Google Developers), one might find odd talking about integrating the old-school SMS service in your app. Runtime permissions, BroadcastReceiver & SmsManger.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |