

You can see this effect by opening activity_main.xml found in your app/res/layout folder structure and dragging a text component onto the screen. The default layout choice is the RelativeLayout and works by aligning all of the components in relation to the first component placed on the screen (or as dictated by you). Without a layout manager, your GUI components would arrange themselves differently depending on the screen size of the device. We will be using the LinearLayout (Vertical) to make our application. The GUI builder has similarities such as anchors and layout managers similar to Java Swing. I will be making the GUI layout first since it is easier to grasp what we are trying to do via the visual elements. Keep the Activity Name default as MainActivity.Leave all of the other checkboxs blank since we won’t be needing them. The minimum API version was auto-selected to be at 15 for me at the time of writting which covers 97.3% of all devices on the market (pretty good coverage I’d say).

I named my project “Simple Bluetooth” and my company domain as “”.Create a new project by navigating to “File->New Project”.If you haven’t already, download and install the Android IDE and SDK. I also derived some ideas from this blog post. Some of the funtionality that I will be using was taken from the offical bluetooth SDK doc.

I’m going to be creating other posts with different microcontrollers that use this same phone app. The Android app that you develop can be used with any other microcontroller, I only used the Arduino in this example with the HC-06 bluetooth module since they are both cheap and popular. I will be using an Android phone for testing purposes and not an Android virtual device. No prior knowledge of Android development is needed, however it will help to know some basics of Java programming.
#Example simple android app that sends email to user how to#
This article will detail how to make a simple bluetooth application using Android Studio and demo it using an Arduino to toggle an LED and send data back-and-forth.
