[Q] Android 4 Application Source Code - General Questions and Answers

Hello everyone,
After developing some applications for Android I decided to get the source code for Android 4. I want to change my "Home" application. Actually I don't want to change it at all, but change it a little. I download the source code using repo from the branch Android4.0.3_r1 (I don't remember exactly). Under the folder "/packages/apps/" I get the "Launcher2" folder and import it at the Eclipse. Then a miracle confused happened! There are undeclared variables, undefined methods, etc! I cannot understand a thing!
I want a little help for:
- Making this source code run
OR
- Downloading the right source code.
Could you help me how to find and run the original source from Google?

no one has had (as far as i know) any success porting the ICS launcher to 2.X
you may want to look into a custom ROM, or a themed launcher.

mtmerrick said:
no one has had (as far as i know) any success porting the ICS launcher to 2.X
you may want to look into a custom ROM, or a themed launcher.
Click to expand...
Click to collapse
Hi again,
Actually I am not trying to port an ICS application to Android 2. Launcher2 is the name of the application for Android 4. Launcher2 works as "Home" application, as I understand.
The problem is that from the source code provided by Google there are errors. Undefined methods, etc. Is there any way to compile and build the Launcher2 application and disappear these errors? And, if there is no way to do it do you know any similar open-source application?

Related

[HELP] Compiling Launcher2 from source?

I'm trying to learn how to modify certain android components but I'm having trouble compiling from source.
I downloaded Launcher2 from cyanogen git://github.com/cyanogen/android_frameworks_base.git but Eclipse says it can't resolved some classes.
Some of these classes belong to other repositories like android_framework_base core and graphics. Do I need to bring the sources for these too? will these get compiled into -the Launcher making it huge? What is the correct configuration for eclipse to compile individual apps?
Thank you in advance.
i have the same problems with u~
yes, you need the whole android tree.
then do:
make Launcher2
hope that helps.

[Q] Eclipse and Samsung Captivate Open Source

Hi Forum Members,
I am trying to access the clock application that comes on the Samsung captivate. I noticed that its different than the stock clock application in the Android 2.1 source. The widget used to to type in numbers looks like its custom and not the phone widget used in the stock application. I downloaded and extracted the source but I don't see any of the custom samsung app implementations?? I also tried opening the captivate source using eclipse but there is no project file. Could someone point me in the right direction in getting a project created in eclipse using samsung source and accessing the samsung application. I am new to development on the captivate. Thanks.
The Samsung apps have not been open sourced. The things they've made open are the kernel (only the parts they had to, so even some custom stuff is not present) and the mods to the stock eclair tree that are required to build stock eclair. Look at the readme files for instructions on how to build that - there is no Eclipse project because there are no apps in the source and the method for building the kernel and stock eclair is all command line make based.
If you want to build a clock app, this isn't the level you should be working at. If you want to modify the Samsung clock itself, then you're out of luck because that is not open-sourced.
Thanks for the reply - you're right after doing some digging (and finding the README.txt) I realized that I wasn't going to find what I was looking for. Now I am currently building a stock samsung eclair build....
thanks again.

I5800 source code

Nearly days I get an open souce code of i5800 and I just a new one in the compling world,so I hope someone can help me find something useful in configuring the code or some books useful.
If you have a qq number and our time are not rushed ,we can communicate in this way.(No facebook or twitter in china....How big the wall!)
My QQ number is 361180509
not sure I understood what you mean, do you have access to newer (froyo) kernel sources for I5800? if so, please do share
eclair kernel source is on opensource.samsung.com, and they compile just fine with the official Android toolkit, but Samsung's changes for Froyo are nowhere to be found (a few modules missing, touchscreen and accelerometer being the most notable), and the kernel doesn't compile anyway.
ze-m0n5t3r said:
not sure I understood what you mean, do you have access to newer (froyo) kernel sources for I5800? if so, please do share
eclair kernel source is on opensource.samsung.com, and they compile just fine with the official Android toolkit, but Samsung's changes for Froyo are nowhere to be found (a few modules missing, touchscreen and accelerometer being the most notable), and the kernel doesn't compile anyway.
Click to expand...
Click to collapse
Not sure if i get you right, do you say it does, or it does not compile? If not, we should request propper sources from Samsung.
sorry,I just don't find the offical source code website before posting this.Cause I just a freshman and I haven't got my PC....
maybe I'll compile the source code later.Sorry to make these mistakes.And I'm chnese.So my english is poor.....
Sent from my GT-I5800 using XDA App
FadeFx said:
Not sure if i get you right, do you say it does, or it does not compile? If not, we should request propper sources from Samsung.
Click to expand...
Click to collapse
eclair sources compile just fine, both with my system cross-compiling toolkit (arm-android-linux-gnueabi managed on gentoo by crossdev) and with the prebuilt one that comes with the Android platform
I might give it a try to actually boot it (but I would need to construct an initramfs, and it's a lot of work, and I kinda need to get back to "proper" work, I was consumed by Android during the last 3 weeks since I got the phone )
ze-m0n5t3r said:
eclair sources compile just fine, both with my system cross-compiling toolkit (arm-android-linux-gnueabi managed on gentoo by crossdev) and with the prebuilt one that comes with the Android platform
I might give it a try to actually boot it (but I would need to construct an initramfs, and it's a lot of work, and I kinda need to get back to "proper" work, I was consumed by Android during the last 3 weeks since I got the phone )
Click to expand...
Click to collapse
You can use the initramfs from Eclair.. I'm assuming you're talking about 2.1.. since 2.2 sources aren't out yet for this phone.
Link for the initramfs for Eclair is here: http://www.multiupload.com/U6GB5BB3HI
This is the JK1 I think - or whatever eclair rom I posted up previously

[Resolved] How to compile Stock Android Source Code such as MMS.apk

I am new to android development and started messing around and building the example source in Eclipse Helios. When I do new project > existing source and open up the Mms.apk source (stock, from android's git hub, it says the source has errors and they need to be fixed before I can build.
I tried this on my Ubuntu 10.10 machine and used repo to get the entire android source, thinking maybe having the entire platform source would help. I'm still unable to build the source so any edits I do are useless.
Can someone tell me what I'm missing? I know I'm doing something wrong or skipping something, but I can't figure it out.
Thanks
Sent from my Droid using XDA App
sorry to double post but i'm not sure why it says "Resolved", i think the app made me add it in or something. anyways the status is still currently unresolved. any help much appreciated.
bump??? i hate that it says resolved there...

[Q] How can I compile a single AOSP app?

I'm looking to compile the stock Calendar app. I'm not quite sure how to do this. Do I have to download the whole Android tree? Can I download only the Calendar repository & compile from there?
You can pull the source code for the single application and compile it using an IDE.

Categories

Resources