Example to determine light level using Android light sensor: package com.example.androidsensor; import android.hardware.Sensor; import andro...
Access temperature sensor, TYPE_TEMPERATURE and TYPE_AMBIENT_TEMPERATURE.
The temperature sensors (Sensor.TYPE_TEMPERATURE/Sensor.TYPE_AMBIENT_TEMPERATURE) are used to determine temperature of the phone, for intern...
Read Aperture, Exposure Time, and ISO from Exif
The post " Read EXIF of JPG file " demonstrate how to read Exif from JPG file using ExifInterface. Start from API Level 11 , Exif ...
Samsung Pays $1B to Apple with 30 Truck Loads of 5 Cent Coins? It's NOT TRUE.
A funny story is sweeping the internet. Samsung paid $1.05 billion to Apple by sending 30 trucks containing five-cent coins. According to Pa...
How Apple Jury Reached a Verdict
Apple Jury Foreman: Here's How We Reached a Verdict Aug. 27 (Bloomberg) -- The Apple Vs. Samsung Jury Foreman Vel Hogan discusses his ex...
Implement ListView NOT extends ListActivity
Example to implement ListView NOT extends ListActivity: Create /res/layout/row.xml to define the layout of rows in ListView. <?xml versio...
New permission for Android 4.1, API Level: 16.
Android 4.1 add the following new permissions: READ_EXTERNAL_STORAGE Provides protected read access to external storage. In Android 4.1 by d...
Determine the best camera preview size
It'a example to determine the best supported camera preview size, to have the biggest preview area. package com.example.androidcamera; i...
Pro Android Augmented Reality (Professional Apress)
Augmented reality (AR) offers a live direct or indirect view of a physical, real-world environment, where the elements and surroundings are ...
Decompiling Android
Decompiling Android looks at the the reason why Android apps can be decompiled to recover their source code, what it means to Android devel...
Retain fragment instance across Activity re-creation (such as from a configuration change)
Fragment.setRetainInstance (boolean retain) control whether a fragment instance is retained across Activity re-creation (such as from a con...
Retrieve old activity state for configuration change by overriding onRetainNonConfigurationInstance() method
As mentioned in the post " Activity will be re-started when screen orientation changed ", the old activity will be destroyed when ...
EditText keep no change after orientation changed
As mentioned in the post " Activity will be re-started when screen orientation changed ", onCreate() method will be called when or...
Android Programming with App Inventor
Here is a great introduction of the re-released MIT App Inventor. Related Link: - MIT App Inventor
Implement slide top-down vertical animation
The exercise " Implement slide-in and slide-out animation " implement horizontal animation using build in animation xml android.R....
Preview build of ADT 21 and of the SDK Tools, r21 released
Preview 1 is mostly a bugfix release. It contains a number of bug fixes in various areas that were new in ADT 20, such as the new template i...
Share with photo using ShareActionProvider
Last exercise demonstrate how to " send email with photo by starting activity with Intent of ACTION_SEND ". In this exercise, we w...
Send email with Image by starting activity using Intent of ACTION_SEND
In the previous posts " Send email using Intent.ACTION_SEND " and " Select Image using Android build-in Gallery " demons...