Why force java 1.5?

by Chih-Wei » Mon, 27 Jul 2009 19:36:51 GMT


Sponsored Links
 Recently the build system will check if java version is 1.5, and stop
if the version mismatch. I'm unhappy with such unnecessary checking.

My system is Fedora 11, I can use its default java compiler, openjdk
1.6, to compile Android without problem. In fact I just removed the
unnecessary checking, and it compiled fine. I can run the emulator
well. I didn't notice any abnormality yet.

Any comment?
--~--~---------~--~----~------------~-------~--~----~



Why force java 1.5?

by Mark Murphy » Mon, 27 Jul 2009 19:59:58 GMT


 


No, it doesn't.

It probably checks for the Sun compiler, since the system requirements
say that is required:

 http://developer.android.com/sdk/1.5_r3/requirements.html 

But I use Sun's Java 1.6 (specifically 1.6.0_14) without issue and have
for some months now, on Ubuntu. It is definitely not limiting you to
Java 1.5.

It may be limiting you from using non-standard JDKs -- I would guess
that is a matter of reducing testing and support costs. So long as you
(and perhaps other like-minded folk) are willing to take on the burden
of testing and support for OpenJDK, there is nothing really stopping you
from trying to use it.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.0 Available!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Why force java 1.5?

by Fred Grott(shareme) » Mon, 27 Jul 2009 20:29:38 GMT


 Given the use of Harmony java classes it may be  that harmony targeted
their stuff for sun java 1.5 compliance..but that is just a guess







--~--~---------~--~----~------------~-------~--~----~



Why force java 1.5?

by Fred Grott(shareme) » Mon, 27 Jul 2009 20:39:30 GMT


 I seem to made a good Guess..Apache Harmony targets sun java 5
compliance..

Fred Grott
 http://mobilebytes.wordpress.com 







--~--~---------~--~----~------------~-------~--~----~



Why force java 1.5?

by Romain Guy » Mon, 27 Jul 2009 23:22:00 GMT


 We recently changed our build system to force you to use javac 1.5.
While you can build the system with javac 1.6 (and you can certainly
build apps with 1.6), many members of the Android team still need to
use javac 1.5 for various reasons (mostly because Mac OS X.) If
someone uses javac 1.6, we are at risk of checking in code that does
not compile on javac 1.5 (use of @Override on interface methods.) This
has been the cause of broken builds several times in the past. While
we could simply use -target 1.5 -source 1.5 with javac 1.6, we decided
to not take risk and make sure everyone uses a similar compiler. Thus
the enforcement of javac 1.5.

On Mon, Jul 27, 2009 at 5:39 AM, Fred








-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



Why force java 1.5?

by Mark Murphy » Mon, 27 Jul 2009 23:25:33 GMT


 


Which build system? SDK apps, or Android OSP?

I seem to be able to build SDK apps with Java 1.6 without complaint on
1.5r3.

I may have misinterpreted the OP -- I assumed he was talking about the
SDK, since this is an SDK list...

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~---------~--~----~------------~-------~--~----~



Why force java 1.5?

by Dianne Hackborn » Tue, 28 Jul 2009 00:00:17 GMT


 The original poster was talking about the platform build system, so sent
this to the wrong place and caused some confusion.

Chih-Wei, for future reference, questions related to the platform (as
opposed to the SDK) should be posted to android-porting.







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



Why force java 1.5?

by 闃垮亯 » Wed, 29 Jul 2009 09:35:05 GMT


 Yes, I'm talking about Android OSP.

This is android-developers group, not android-sdk...
The subject said "discuss developing Android applications using the
Android framework..."
So I think the compiler issue is suitable here. And I don't believe
this is a porting issue.
Am I wrong?

Anyway, I'm sorry for any possible confusion.




--~--~---------~--~----~------------~-------~--~----~



Why force java 1.5?

by Mark Murphy » Wed, 29 Jul 2009 09:46:08 GMT


 


I would vote for android-platform:

 http://source.android.com/discuss 

"You want to contribute code into the Android user-space projects. You
want to improve the system libraries, the Android services, the public
APIs, or the built-in applications. You've downloaded the source code,
compiled it, read through it, and you're at the point where you're going
to be making changes of your own to contribute into the Android source
code. Coordinate your efforts with those of other contributors here,
discuss architecture, design and implementation here. Go to
android-kernel for discussions about contributing to the kernel,
android-porting if you're porting Android to your own hardware or making
changes that you're not going to contribute back, android-developers if
you're writing applications with the SDK, or android-discuss for
everything else."

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Development Wiki:  http://wiki.andmob.org 

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Getting LinearLayout to wrap contents

Hi,

I've got a horizontal LinearLayout that contains a variable number of
child LinearLayouts. Right now, the children will just run off the
screen if there are too many of them.

How would I make the parent layout wrap the children on multiple
lines? If this is not possible, should I be using a different layout
as the parent?

Thanks!

-- 

2. webkit onGestureXXX


Is there any plans to support the onGestureXXX set of events
like the iPhone's webkit has?

Mike, curious

--

3. Does the Market use minSdkVersion or "Project Build Target"?

4. Does the Market use minSdkVersion or "Project Build Target"?

5. Informational: are there any charting packages for Android

6. Please help,,,:(,,,conferencing

7. onClickListener of a view