Friday, October 26, 2012

The post "List images in MediaStore.Images.Media" demonstrate how to list images in MediaStore.Images.Media with SimpleCursorAdapter. It's modified to retrieve the path of the clicked item using Cursor.

Friday, October 19, 2012

The post "Example of AutoCompleteTextView" demonstrate AutoCompleteTextView with pre-defined suggested words. It's modified to have dynamic suggested words in this exercise.

myAutoCompleteAdapter employ a List<string> instead of String[]. Such that we can modify the contain dynamically. When user finish enter by clicking on OK button, it will check if the words is contained in the List<string>. If not, it will be added, and the adapter will be updated.

Motorola launched the MOTODEV Android Portal in 2009 to provide developers with the technical support and resources needed to create quality apps for Motorola devices.

On November 1, the MOTODEV portal, tech library, support forums and social media sites will transition and we’ll begin redirecting users to a new Developer Resources page on Motorola.com for downloads and links to the rich set of tools, support forums and technical documentation now available in the broader Android community such as: Google Android Developers and Stack Overflow.

Google introducing Buyer’s Currencies in two new countries, India and Russia. All prices for these locales will be in the Indian Rupee (INR) and Russian Ruble (RUB) currencies, respectively. Visit the Google Play Developer Console to set prices for this new country by October 25, 2012. On October 25, 2012, Google Play will automatically assign Buyer’s Currency prices for your products for the new countries if you have not manually set them in the Developer Console.

To get touched pixel color of a ImageView, you can implement OnTouchListener of the ImageView, get touched position by calling event.getX() and event.getY(), and get the pixel color by calling bitmap.getPixel(x, y)...IF THE BITMAP IN YOUR ImageView IS DISPLAY AT 1:1, layout_width and layout_height ="wrap_content".

If your bitmap is scaled, such as layout_width and layout_height ="match_parent". It will not work! It's a example demonstrate how to invert the touched position to get pixel from scaled ImageView.