Solved

backward compatible android

Posted on 2012-03-19
5
390 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
  • 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:
santhanasamy 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now