Archives for Tutorials - Page 15

Android

How to set a particular font for a Button or a TextView on Android ?

In standard, Android offers a simple font for all views that display texts to the screen. Effect is great but sometimes you could want customize your application by using your specific font and offers to your users an awesome effect. To achieve that, you need to load the specific font and install it on your View. This article show you…
Continue Reading
Android

Use Wi-Fi rather USB to connect to your Android device via ADB

ADB connection via USB port is the most known method used by developers to connect to their Android devices.   However, there are some problems by connecting via USB Port : 1/ Impossible to move around with device for testing purpose 2/ It damages cable and with time, you should change the cable 3/ USB Socket of Android device can also…
Continue Reading
Android

Monitor your Android device with CPU Hardware and System Info

Android devices became more and more powerful. Now, Smartphones and Tablets are real computer with pocket size. Besides, Android devices make always more operation in background that users ignore. To monitor and know what are the capacities of your device ? What are its data and information ? You can now get CPU Hardware and System Info a simple and…
Continue Reading
Android

Use Visual Studio Emulator for Android with your Android Studio IDE

At the end of 2014 year, Microsoft has announced a fast and free Hyper-V compatible Android emulator usable to make Android developments in Visual Studio IDE. However, Android Studio and still Eclipse ADT are the primary options used by developers to make Android applications. Since Visual Studio Emulator for Android is very appreciated by developers thanks to its great performances…
Continue Reading
Android

Best practices for Android Logging

Android System offers to developers a centralized system to manage all logs. Each developer can write custom log messages in his application that will be visible in the centralized system. Each log message has an associated tag and a priority constant. Thus, you can filter log statements from the centralized logs system easily. API for sending logs in Android is…
Continue Reading
Android

Monitor and analyze Battery Usage Data on Android

Android SDK comes with a large number of amazing tools. However, a lot of developers don’t know some of these. Thus, who knows that Android SDK offers a tool to monitor and analyze battery usage data ? This great tool is low level and can be called from an adb shell command. The dumpsys batterystats command generates some intereseting statistical…
Continue Reading
Android

List all sensors available on an Android device

Android devices have a lot of sensors inside. Android SDK put on the hands of developers all the necessary APIs to take advantages of them and offer to their users applications that use them. In this tutorial, you’re going to learn how to list all the sensors available on an Android device. In a future tutorial, we will see how…
Continue Reading
Android

Discover Android Secret Codes for Samsung smartphones and others

Android secret codes are numeric or symbolic sequences entered in your dialer application that let you to access manufacturers’ secret menus hidden. Before Android operating system came out, secret codes were already available on other platforms. You can remember Nokia that offered some secret codes on their Symbian smartphones. Be careful by using the following secret codes because some of…
Continue Reading
Android

Get Android device rotation angles with accelerometer and geomagnetic sensors

In first versions of Android, rotation angles could be got by using a sensor with as type. But, since Android , this method is deprecated. However, a lot of applications and developers still use this way ! The following tutorial aims to show you how to get rotation angles (azimuth, pitch and roll) in the recommend way by using accelerometer…
Continue Reading
Android

Create and Start a Background Service in Android

In Android applications, like in all mobile applications, responsiveness is often the key to offer great user experience. It’s essential to avoid blocking user interface. In some cases, you will need to process long-running operations. To void affecting user interface’s responsiveness, you will need to use background service. Deriving from IntentService class, a background service is a straightforward structure for…
Continue Reading