docs feedback re compiling src

by Michael Salmon » Sun, 19 Dec 2010 04:54:23 GMT


Sponsored Links
 Hi folks,

Have some feedback on the docs online
 http://source.android.com/source/download.html that could be considered for 
improvement:

1. docs say 32-bit linux ubuntu is supported, but on compile you get an
error that says (build/core/main.mk)

"$(warning You are attempting to build on a 32-bit system.)
$(warning Only 64-bit build environments are supported beyond froyo/2.2.)"

2. docs say 64-bit linux "has not been well tested", but considering 32-bit
isnt supported at all (above note) does this mean mac OS X is the only
environment supported?

3. on related note, it's odd that mac os X 64-bit is not supported. In other
words if you have a 64-bit macbook your only option is to build in linux,
which as noted is not "well tested"

4. with respect to JDK version, it's vague. "JDK 5.0, update 12 or higher."
suggest doc actually recommend a particular version, e.g. "JDK 5.0 Update X
is known to be stable"

I'm curious if there is a way to have a page of build setups that are known
to work, ideally by repo revision?

BTW I'm using a macbook i7 64-bit and have been reading the various
developer notes and suggested workarounds for building on this machine, but
it's pretty interesting to see how far  the real support is for working on
Mac and Linux compared with the statement that they are "official build
platforms".

regards,
ms

-- 



Re: docs feedback re compiling src

by Abdull » Fri, 24 Dec 2010 00:09:47 GMT


 So I spent the last four hours on setting up a 32-bit Ubuntu 10.10 (inside a 
VM VirtualBox) as pointed out by above mentioned guide and I ran into the 
exact same problems.

Make this a *wasted* four hours of development time >:(.

Considering the fact that the first user post regarding this 
problem<https://groups.google.com/d/topic/android-platform/sLuZETFYk2M/discussion>dates
 back to September 28, 2010, this means the documentation is pretty 
much useless for now already three months.

Please, maintainers of Android, don't treat us users like this! Time is 
money. Moments like these let users feel abandoning a project. I don't want 
to start over setting up a 64-bit Ubuntu, just to find out that yet another 
undocumented setup detail made me waste another four hours.

-- 


Sponsored Links


Other Threads

1. resource not found exception - framework

Hi All,

I was trying to replace exisiting status bar with custom one, the
following are the steps I tried:

1) I added a new project file in framework/base as 'customstatus' ,
all my source of new status bar and resuorce elements are here. When I
compile this I get the custom-res.apk ,

2) Further I modified build/core/pathap.mk to my customstatus (under
FRAMEWORK_BASE_SUBDIRS)

3) framework/base/Android.mk , added my resource file path as
customstatus-source-path := APPS/customstatus-res_intermediates/src
LOCAL_INTERMEDIATE_SOURCES := $(customstatus-source-path)/com/mist/
customstatus/R.java

4) in /frameorks/base/services/java/com/android/server/status/
StatusBarService.java , in this I replaced original status bar view
with my customstatus bar view.

I comiled framework , copied framework.jar,
services.jar ,customstatus-
res.apk into my device, rebooted, I see my custom status bar.


Now , I wanted to add a icon for volume , so added a icon iamge in my
customstatus/res/drawable , used it in my sustom status bar java file,
the source compiled fine. But when I deploy this on board I get the
error:

E/AndroidRuntime( 1370): *** EXCEPTION IN SYSTEM PROCESS.  System will
crash.
E/AndroidRuntime( 1370): android.content.res.Resources
$NotFoundException: Resource ID #0x7f020001
E/AndroidRuntime( 1370):        at
android.content.res.Resources.getValue(Resources.java:891)
E/AndroidRuntime( 1370):        at
android.content.res.Resources.getDrawable(Resources.java:579)
E/AndroidRuntime( 1370):        at
android.view.View.setBackgroundResource(View.java:7186)
E/AndroidRuntime( 1370):        at
com.mist.customstatus.CustomStatusBarView.setVolumeLealarm_release:
clear alarm, pending 0
vel(CustomStatusBarView.java:82)binder: release 1370:1370 transaction
3048 in, still active

E/AndroidRuntime( 1370):        at cbinder: send failed reply for
transaction 3048 to 1425:1425
om.android.server.status.StatusBarService.updateVolumeLevel(StatusBarService.java:
372)
E/AndroidRuntime( 1370):        at
com.android.server.status.StatusBarService.performAddUpdateIcon(StatusBarService.java:
758)
E/AndroidRuntimrequest_suspend_state: wakeup (0->0) at 111298797610
(2000-01-01 00:01:50.057922363 UTC)
e( 1370):       at com.android.server.status.StatusBarService
$H.handleMessage(StatusBarService.java:648)



I further unzipped the customstatus-res.apk to see if my image files
are there, they were all present. tried aapt resource dump too , I see
the corresponding entries inR.java file.

Any Idea what could be going wrong?

Where else should I be placing the sources if my customstaus is not
the right place?

Any help would be appreciated.

Regards,
Krt

-- 

2. Joins vs. Content provider

Is there a standard or recommended idiom for doing the equivalent of a
join of data in a local database versus a content provider?  is there
anything more efficient than explicitly looping on the result set from
the local database query and doing individual queries of the content
provider to grab the related rows?

Jay

-- 

3. GridView.scrollTo(int,int) is not working

4. Tutorial Upgrade Samsung Galaxy SCDMAakaFASCINATEfromeclair to Froyo

5. Paging om cristanto

6. OOT : Bro John visited me!

7. where can buy some tags can be read by nexus S