Solved

backward compatible android

Posted on 2012-03-19
5
403 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Print Rhino Java Array in Javascript 1 58
Need a Cost effective MDM solution for Android smartphones (GPS tracking) 5 52
Xamarin  build error 4 72
phone area codes 3 44
A short article about a problem I had getting the GPS LocationListener working.
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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

751 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