The Architecture of Open Source Applications

Great book about Open Source Applications architecture and performance

October 28, 2013 · 1 min · Elyézer Rezende

Localize your apps with Google Translator Toolkit

Google Translator Toolkit has launched support for four new translation-related file formats: Android Resource (.xml) Application Resource Bundle (.arb) Chrome Extension (.json) GNU gettext-based (.po) Now you could localize your Android App easily. Source: http://googledevelopers.blogspot.com.br/2012/03/localize-your-apps-and-content-more.html

March 30, 2012 · 1 min · Elyézer Rezende

Android screen capture with Eclipse

Taking a screen shot of your Android app with Eclipse is very easy, in Devices view, select the Screen Capture tool from the toolbar with an Android device or emulator selected. After that you could: Refresh to update the view, Rotate, Save the screen shot or Copy the image to the clipboard. If you don’t have the Device view opened, you could open it from Window > Show View > Other ....

March 13, 2012 · 1 min · Elyézer Rezende

Reading application's versionCode and versionName

When versioning your application, you use the AndroidManifest.xml to specify the versionCode and versionName. You can read your application’s versionCode and versionName from you activity using the following code: PackageInfo packageInfo = getPackageManager().getPackageInfo(getPackageName(), 0); int versionNumber = packageInfo.versionCode; String versionName = packageInfo.versionName; To know more about versioning your app read de documentation.

January 5, 2012 · 1 min · Elyézer Rezende

String format in String Resources

The string format, when added to string.xml resource, has a differente syntax, for exemple: Hello, %s! You have %d new messages. Becomes: Hello, %1$s! You have %2$d new messages. The syntax is: *%<position>$<type>*. where <position> starts at 1 and type is the Java String format like d, s, f. Source: String Resources

December 28, 2011 · 1 min · Elyézer Rezende

Updating a preference value without reloading PreferenceActivity

This code snippet shows how to get a reference to a preference in PreferenceActivity. With this reference, you could update the UI without reloading the PreferenceActivity. Source: Update preference value without reloading PreferenceActivity

December 22, 2011 · 1 min · Elyézer Rezende