Compiling error with API 10

Posted by Suhel De Corser on Stack Overflow See other posts from Stack Overflow or by Suhel De Corser
Published on 2012-12-09T03:39:59Z Indexed on 2012/12/09 5:05 UTC
Read the original article Hit count: 177

Filed under:
|
|
|

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:

  1. "The method getActionBar() is undefined for the type DisplayMessageActivity
  2. "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?

© Stack Overflow or respective owner

Related posts about java

Related posts about android