Solved

backward compatible android

Posted on 2012-03-19
5
404 Views
Last Modified: 2012-06-27
I downloaded the androind adk and the only version of android I checked was android 4.0

now is android backward compatible? If I want to develop for android 2.1 or 3.0 etc do I also need to download this from the android sdk? that would involve running the android adk again and checking only those versions?

can I also set the screen size as android phone come in different screen sizes or doesnt that matter?
0
Comment
Question by:jagguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 37739947
My guess is that if you want to develop for earlier versions - you need to do it on earlier versions to be sure. Let's assume, that this 4.0.3 as a newer version has morer options - so it may take advantage of them and when you then move to the earlier device it may complain.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37739954
The analogy which comes to my mind is suppose you'll compile your java code with JDK 7 - it will use something specific to Java 7 in the class file. Then youi'll start to execute this class with java 6; well JVM will check version in the very beginning and will complain.
Maybe Android will not be as strict, but it may encounter something which is not suppoterted in the earlier versions.

In the opposite way - if you dveleop for earlier versions - if Android is backward compatible, then the newer versions should run that older android programs; jut like Java 7 will run the classes compiled with javac 6.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37739971
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37739975
also read bottom answers here and about compatibilty package link in the last answer:

http://stackoverflow.com/questions/7841473/can-android-4-0-apps-work-with-android-2-0-and-android-3-0-devices
0
 
LVL 8

Accepted Solution

by:
Santhana earned 500 total points
ID: 37740557
Hi jagguy,

Check this below link.....
http://developer.android.com/resources/articles/backward-compatibility.html

What i am thinking is....If you develop any app with recent version (Android 4.1(IceCream)), It will have newer concepts like fragment, loader...etc...It will not be available in the older version 2.3(GingerBread). So while running  your code in older version it will break....
If you add a <android:minSdkVersion> to the application's manifest, to ensure your app won't be installed on older devices.

can I also set the screen size as android phone come in different screen sizes or doesnt that matter?

Go through the below link.....
http://developer.android.com/training/multiscreen/index.html
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
If you use the Google Now Launcher, as an aftermarket add on, have a Samsung Note 5 and are worried about power consumption be wary of using the ultra power saving mode.  Here is what happened to me when I made the mistake of trying this out...
This video teaches viewers about errors in exception handling.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question