How to create custom style for fast scroll scrollbar in Android

Here is sample for fastScroll ListView functionality. To apply this style you need add the following lines into your app’s style:

Also if you need handle click action on your scrollbar you need create the next drawable:

Also you need apply this style in the AndroidManifest.xml or in Read more…

How to fix “Conversion to Dalvik format failed with error 1” when you make Export Unsigned Application Package in Eclipse

Today I’ve got the “Conversion to Dalvik format failed with error 1” error when make “Android Tools–>Export Unsigned Application Package” I have ADT 23.0.2 The problem was in the Proguard. To fix it you can disable Proguard in “project.properties” (Note that it is bad idea) or update Proguard. The Proguard Read more…

How to include Facebook Android SDK in project as maven module

This post will be usefull if you have Android maven multimodule project and want to include Facebook Android SDK  in your project as module.

How do this?

As you see here https://github.com/facebook/facebook-android-sdk the Facebook SDK used not as maven module.

Below you can download source code of Android project

To do this you need:

1. Download the Facebook Android SDK from github.

2. Add Facebook Android SDK lib project in your workspace near other modules of your maven project. Look at screenshot below:

(more…)