Compiling error with API 10
- by Suhel De Corser
I was following the basic tutorials on developers.android.com and came by creating the activity named DisplayMessageActivity. It is a blank activity with all the specifications given as shown in the tutorial. FYI, I am using Min SDK = API 8, Target SDK = API 16, Compile with = API 10
The next thing is that there are two errors:
"The method getActionBar() is undefined for the type DisplayMessageActivity
"home cannot be resolved or is not a field"
I tried changing the API to 14 which called for another problem, it wants the minimum API to be 11.
That solves these problems, but the main problem is so many devices still use Gingerbread or maybe FroYo. Can't I write for them? Do I have to go higher? How to write for them?