Tag: android

SherlockActionBar in a MapActivity

I’m using the Sherlock Action Bar extensively throughout my application, but I have an activity which inherits from a MapActivity, and thus I can’t make it inherits from SherlockActivity. Is there any way I can make use of the Sherlock Action Bar in the map so I can customize it? Best, Manuel.

Is there any way to get GPU information?

I know how to get CPU info inside /proc/, but is there any way to get GPU info? Something like the CPU one?

SQLite exception: Database is locked issue

I’m having an issue with my SQLite database inside an Android app. It seems to happen every so often and I cannot reproduce it, but this is the report the Android Market gives. Basically I have first a splash screen activity that starts by checking if all the needed data is in the database. If […]

Android: Changing an ImageView src depending on database field data

I’m quite new to Android development (started 2 days ago) and have been through a number of tutorials already. I’m building a test app from the NotePad exercise (Link to tutorial) in the Android SDK and as part of the list of notes I want to display a different image depending on the contents of […]

Is there already a StopWatch class for android and why doesn't my implementation work?

Lately I saw http://developer.android.com/reference/android/os/CountDownTimer.html and wondered if there is an respective class for stop watches since I want to tell the user of my App how long he’s already trying to solve the puzzle. I mean it isn’t that complicated to program such a stop watch on your own. I tried something like Runnable runnable […]

Multiple dex files define <my package>/BuildConfig, can't find the cause:

I’m using the new gradle build system and I’m facing the following problem: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/kibo/mobi/BuildConfig; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170) at com.android.dx.merge.DexMerger.merge(DexMerger.java:188) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287) at com.android.dx.command.dexer.Main.run(Main.java:230) at com.android.dx.command.dexer.Main.main(Main.java:199) at com.android.dx.command.Main.main(Main.java:103) Priniting the dependencies I can’t see anything, here they are: firstDebugCompile – ## […]

Android studio: INSTALL_FAILED_CONFLICTING_PROVIDER facebook sdk

I’m facing a strange problem with android studio. I have two Android app that uses facebook sdk with same facebook Application for login and share pictures. With new api, it’s necessary to declare inside manifest this: <provider android:authorities=”com.facebook.app.FacebookContentProvider[app_id]” android:name=”com.facebook.FacebookContentProvider” android:exported=”true”/> Now if one of that app is already installed on device and i try to […]

Is there an Android GCM equivalent to the iOS Push Notification Feedback Service?

Our webapp sends push notification requests to iOS and Android devices. For iOS, the Apple Push Notification Service has a feedback service so you can detect which devices have uninstalled your app and then remove it from your database. Is there a similar feedback service for Android GCM? If not, how to detect which Android […]

Getting Request body content using Retrofit 2.0 POST method

I have a requirement to get a request body and to perform some logic operations with Retrofit 2.0 before doing enque operation. But unfortunately I am not able to get the post body content from my service call. At present after searching a lot I found only one solution like logging the request that I […]

Writing NFC tags using a Nexus S

I have a Gingerbread 2.3.4 powered Nexus S and I recently got some writable NFC tags. So far I can read them as blank tags, but I couldn’t find a way to write data to them. All my research has lead me to this article: Writing tags with Nexus S from January (before 2.3.4 release). […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.