Home » Android » Android Core » Page 22

Android Core

Android ViewHolder Pattern Example

Now we are going to code the smooth scrolling of our Android ListView. In the previous post, we tried to understand how the ListView with adapter works. This time, it will be all about performance. I did this a separate post because Android ListView is difficult to understand at times. What I have in mind is, “we have to do ...

Read More »

Android Sensor Tutorial: Barometer Sensor

One of the most interesting topics in my opinion is how to use Sensor in Android. Nowadays our smartphone are full of sensors and we can use it to control somehow our app. The most common sensors are: GPS Proximity sensor Light sensor Temperature sensor Barometer sensor NFC just to mention some of them. In this post we will explain ...

Read More »

Detecting Television Feature on Android

I wrote up a post on google plus, that may be interested to a wider audience.  If you are an android app developer and want your app to work well on a Television or set top box, you need know if you need to handle focus specially or not for these devices.  Here is one way to know when you ...

Read More »

Android ListView with Adapter Example

How android ListView with adapter works is not so clear to me until I read this awesome examples and article of Lucas Rocha: Performance Tips for Android’s ListView. Today I’m going to show you the code I use whenever I wanted the user to select an “item” in an AlertDialog with ListView. If you are looking for an example AlertDialog ...

Read More »

Bluetooth Data Transfer with Android

To develop an Android application making use of data transfers via Bluetooth (BT), one would logically start at the Android Developer’s Bluetooth page, where all the required steps are described in details: device discovery, pairing, client/server sockets, RFCOMM channels, etc. But before jumping into sockets and threads programming just to perform a basic BT operation, let’s consider a simpler alternative, ...

Read More »

Android Expandable/Collapsible Views

Android Expandable/Collapsible Views Expandable/Collapsible Views (text, images, etc.) in Android are useful when we want to display all the available options on one screen, without the user having to scroll all the way to find the one he/she is interested in. What we are doing is trying to maximize the use of the available space on the screen by giving an ...

Read More »

Android app development:weather app with forecast

This tutorial will describe how to develop an android application. In this tutorial we will explore what we need to create an android application and what are the bricks we can use to create our app. As example we will create a weather app. We talked about it some months ago, we will develop the weather app with weather current ...

Read More »

Android Detect Face

In this post I want to describe how to detect faces in an image using Android. I will use the camera to get the picture and then the app will draws some rectangle around the faces detected in the image. To do it we simply use the Android API like: FaceDetector used to detect face in the bitmap Face  object ...

Read More »

Android Compass Code Example

Today I’m going to share a working code to make a very simple compass application for your android device.   Some android device (like Huawei Y300 and Lenovo P700i) does not have full support of motions sensors so this code will not work for them. Video Demo Our code for today will run just like this:         ...

Read More »