Eclipse / Android : “Errors running builder ‘Android Pre Compiler’ on project…”

For those of you who don’t want to install preview version of ADT, there is a workaround described here. Open properties of project in Eclipse then Resources -> Resource filters. Click the “Add…” button -> Check “Exclude all”, “Files and folders”, “All children”. In the text entry box input “.svn” (without quotes). Restart Eclipse. I … Read more

Theme.AppCompat.Light.DarkActionBar – No resource found

In “android-support-v7-appcompat” project: Delete “android-support-v7-appcompat” from Package explorer. Import again and check “Copy into workspace” In Properties -> Android -> in Project build target, uncheck Android 2.2 and check Android 4.1.2 In Java build path, uncheck if you have any .jar library, and uncheck the Dependences In other hand, the project that uses “android-support-v7-appcompat”: In … Read more

Using the new “manifestmerger” property in Android

Add the following line to your project.properties file of your application project. manifestmerger.enabled=true Introduced with Android SDK Tools, Revision 20 (June 2012): https://developer.android.com/studio/releases/sdk-tools Build System     * Added automatic merging of library project manifest files into the including project’s manifest.       Enable this feature with the manifestmerger.enabled property.

How to create an animated GIF from JPEGs in Android (development)

See this solution. https://github.com/nbadal/android-gif-encoder It’s an Android version of this post. http://www.jappit.com/blog/2008/12/04/j2me-animated-gif-encoder/ To use this class, here is an example helper method to generate GIF byte array. Note here the getBitmapArray() function is a method to return all the Bitmap files in an image adapter at once. So the input is all the Bitmap files … Read more