cannot combine custom titles with other title features

I had a similar problem that drove me insane: I have 2 versions of the same app using a shared library project as their common code (over 95% of each app is made of that shared library project): One runs fine, without any problem whatsoever. The other crashes upon start with the same error message & symptoms you describe:

You cannot combine custom titles with other title features

The layout XML files are common as well! So, I couldn’t find any explanation for this weird problem.

After much brainstorming between me, myself and I, I discovered that the only difference between the two apps is that the one that runs fine has this in its AndroidManifest.xml:

<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7" />

And the one that crashes has this in its AndroidManifest.xml:

<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="13" />

So, you see, the Android UI is touted as being a 4th-generation UI framework, in which the UI is declarative and independently themed, but at the end of the day it’s all the same st: Developing in C (for example) for Microsoft Windows is no more time consuming than developing in Java for the Android because the Android development framework is full of landmines like this in which the compiler won’t tell you anything at compile time, and the thrown exception won’t tell you either. Instead, you have to rely on **luck finding that little snippet of documentation (that may or may not exist), providing you with a hint as to where to look for the root cause of the problem.

I hope that this information will be helpful to many who experience the same problem.

Leave a Comment