I have been writing my first app for a few weeks and today I realised that if we want to develop for Honeycomb and normal phones, we are supposed to package them together as one app rather than as two apps with different targets.
So I started a new project in Eclipse with a target of 2.1 (SDK level 7) and copied over my Java, XML and other resources from the old (Honeycomb oriented project) to the new (phone + tablet oriented) project.
All was going well until I hit a snag with the ActionBar code, in particular where I set the app icon to go to the main activity – it does not like this for some reason.
How are we supposed to write one app for both platforms? I thought it would be as simple as two versions of the layout and a few MINOR tweaks in Java.
I looked closer at the new (phone + tablet oriented) project to see if there was anything I had missed that would be causing the problem.
It turns out in the androidmanifest.xml I had the wrong targetsdk and minsdk levels.
I have changed them to the correct ones:
This change fixed the issue. Thanks for the help.