Tag Archives: Android Studio

android studio

Android Studio – simple gradient example.

I used Android Studion 3.6.1 on Ubuntu Linux. I start an Empty Project and I change the activity_main.xml file into this:

You can see I change the Hello Word! text into GRADIENT COLORS. I add this source line of code:

I create this resource XML into res – drawable folder with click right… Read More »

Android Studio – using photo camera.

This tutorial is a good example of how to use a photo camera with Android Studio. Start the default project named BitCam and change these files: The BitCam.java file:

The activity_bit_cam.xml file:

The result is an android application with a button. When you press the button the photo camera start.

Android Studio – using SensorEventListener.

This tutorial is about programming android hardware sensors service: TYPE_ACCELEROMETER. You can start by using the last version of Android Studio version 3.1.1 with the default project Empty Activity. Is very simple to use accelerometer with Android Studio by reading the values and show us into the text view area. The SensorEventListener is used to… Read More »

Android emulation with Intel® HAXM.

The Intel Hardware Accelerated Execution Manager named Intel® HAXM is a a hardware-assisted virtualization engine that help Android application emulation on a host machine. You need to install it from here.. After that you can run the commands to install it, see the next image how to do it: Update tool from Android with Android… Read More »