One simple question

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

One simple question

Postby nikoladj » Thu Feb 04, 2010 12:37 pm

Hello

Is android 1.5 application compatible for 1.6 and 2.1?

Thank you
nikoladj
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri Jan 29, 2010 7:44 pm

Top

Postby MichaelEGR » Thu Feb 04, 2010 4:11 pm

Yes, with caveats depending on what you are trying to accomplish. If it's a graphics oriented app you do have to worry about the automatic scaling and compatibility modes and screen sizes.

The 1.5 resource tags that I use are
drawable-120dpi
drawable
drawable-240dpi

this corresponds to ldpi, hdpi on 1.6+ and unless you search 20 messages deep on a particular thread on Android developers email list you won't see the 120dpi /240dpi tags discussed despite that they work for 1.6+ environments.

I'm releasing a significant framework for 2D/3D real time app & game dev (IE star demo is a game engine that can load Quake 3 assets) and everything compiles to 1.5 and also runs across the ecosystem of devices.

Check out this tag in AndroidManifest.xml as it's useful when compiling with a later SDK, but making sure it runs with 1.5 (you just can't call 1.5+ API):
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />

Another trick I prefer is building with Ant files and not using the Eclipse suite (I'm Idea based anyway for last decade practically!). I understand the Eclipse environment when you select a later target SDK automatically associates the SDK jar file. One thing I do with a more manual build is attach just the 1.5 android.jar though build with the latest SDK that way it's impossible to call newer APIs in the IDE I use.

So long story short yes 1.5 apps are fine, but their are workarounds required for some later SDK behavior; especially with OpenGL ES dev.
Founder & Principal Architect; EGR Software LLC
http://www.typhonrt.org
http://www.egrsoftware.com
User avatar
MichaelEGR
Senior Developer
Senior Developer
 
Posts: 147
Joined: Thu Jan 21, 2010 5:30 am
Location: San Francisco, CA

Postby nikoladj » Thu Feb 04, 2010 4:26 pm

Ok, thank you.

I am building 2 applications atm. both not far complex as for graphic goes. Some list, popups..

So i wanted just to know is there anything i need to look out to make them compatible 1.5 -2.1

tnx again
nikoladj
Junior Developer
Junior Developer
 
Posts: 13
Joined: Fri Jan 29, 2010 7:44 pm

Postby MichaelEGR » Fri Feb 05, 2010 1:05 am

Yeah.. If you stick to the stock Android GUI components the only thing that you may have a concern for is layout issues on small and large screen/density devices. If it's a lot of lists and popups/dialogs and such then it shouldn't be so bad and you can also test everything in the emulator for screen size/density combinations that you don't have a device in hand for at the moment.
Founder & Principal Architect; EGR Software LLC
http://www.typhonrt.org
http://www.egrsoftware.com
User avatar
MichaelEGR
Senior Developer
Senior Developer
 
Posts: 147
Joined: Thu Jan 21, 2010 5:30 am
Location: San Francisco, CA

Postby danslo » Fri Feb 12, 2010 6:05 pm

Yup, 2.0 is backwards compatible with both 1.5 and 1.6.
danslo
Junior Developer
Junior Developer
 
Posts: 11
Joined: Fri Feb 12, 2010 6:03 pm

Top

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests