Android, Custom ListAdapter get TextView-Text

I coded an own Adapter and added it to my ListActivity via an ListView. The reason why I wrote an own Adapter is, that i had to make some layout changes to the list-entrys. In every entry of the list i’ve got 3 TextViews. <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”” android:layout_width=”fill_parent” android:layout_height=”?android:attr/listPreferredItemHeight” android:padding=”6dip”> <TextView android:id=”@+id/myNr” android:layout_width=”40dip” […]

How to properly setup the syncAdapter?

I’m a newb with the syncAdapter . i’ve watched the google IO video (lecture presentation here) , and i’ve read 2 tutorials (here and here) about it . i’ve also tried out the code of the tutorials and it’s frustrating that i can’t figure out how to implement the syncAdapter correctly . what i believe […]

SQLiteConstraintException not caught

What is the problem with this code? It doesn’t catch the exception thrown by insertChild() method.; try { childDbOps.insertChild(child); } catch (SQLiteException exception) { Log.i(“error la inserare child”, “on the next line”); exception.printStackTrace(); } finally { childDbOps.close(); } The error is: ERROR/Database(320): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed at at at android.view.View.performClick( […]

Initialising the TextToSpeech object on a worker thread

For years (literally), my application has suffered woes from poorly performing text to speech engines, in particular, the initialisation time when calling: tts = new TextToSpeech(context, myOnInitListener); The above can cause the UI to lag and if you search for ‘Text to Speech initialization slow’ on SO, you’ll find many posts. The embedded high quality […]

java.lang.RuntimeException: system server dead?

My appwidget crashes with following error: E/AndroidRuntime( 5572): FATAL EXCEPTION: main E/AndroidRuntime( 5572): java.lang.RuntimeException: Unable to start receiver java.lang.RuntimeException: system server dead? E/AndroidRuntime( 5572): at E/AndroidRuntime( 5572): at$2400( E/AndroidRuntime( 5572): at$H.handleMessage( E/AndroidRuntime( 5572): at android.os.Handler.dispatchMessage( E/AndroidRuntime( 5572): at android.os.Looper.loop( E/AndroidRuntime( 5572): at E/AndroidRuntime( 5572): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5572): at […]

Android SyncAdapter Callback

I have implemented a SyncAdapter, AccountManager and private ContentProvider along the lines of the SimpleSyncAdapter sample project in the SDK. It is all working well. Now I want to show a message to the user when new rows have been downloaded from the remote server that have a specific flag set. I need a callback […]

Which Design Pattern is good for Android application development

Design patterns represent the best practices used by experienced object-oriented software developers. Design patterns are solutions to general problems that software developers faced during software development. There are three basic kinds of design patterns: 1.Structural 2.Creational 3.Behavioral Different design patterns are there like 1. MVC 2. Singlton 3. Factory method 4. Lazy initialization etc. I […]

Allowing cross-origin requests for Android WebView

I’m attempting to retrieve some data from my server, which is hosted at I am serving up a webpage at, which happens to be on the same server as the endpoint to retrieve my data. However, I am receive this error in eclipse: 08-03 19:47:57.210: E/Web Console(27287): XMLHttpRequest cannot load http:myendpoint Origin […]

Using SlidingPaneLayout from the right-hand side?

Is it possible to somehow use Android’s SlidingPaneLayout to do exactly what it does except from the opposite side? I.e. I want to bezel swipe the right-hand side of the screen instead of the left-hand side to expose the second pane, and it slides in from the right instead of the left. Ideally I’m looking […]

No decimal place in HTML5 number input on some Android devices / Chrome

On some Android devices creating an HTML5 number input field does not show any decimal place. <input type=”number” step=”0.001″ min=”0″ name=”foo” /> This is troublesome since I’m trying to write an HTML5 + Javascript app. It works on IOS at the moment as well as some (most?) Android devices. It’s just that some Android versions/brands […]

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