Getting the latest source - android

How do I get the latest Android Open Source Project (AOSP) source on windows?
I do not want to build, interested in seeing core applications/services etc. to learn for use in my own application development.
Is Linux Virtual Machine the only way?

I believe the site you're looking for is http://source.android.com/.
A number of interesting solutions appear here: Where can I find Android source code online?

Oracle VM VirtualBox + Debian 6 and packages - git, curl results in a full-blow error-free repository synchronization.
I doubt there are better ways to get AOSP on Windows.
P.S. Debian can be replaced with any other Linux distribution.

Related

Using libVLC for Android on windows platform

I'm trying to explore libVLC for Android that's why setting up VLC android project on windows 7 but i'm facing problems. When i import the project and setup all helping libraries and try to compile using NDK it gives following error
make.exe: *** No rule to make target `jni/..//modules/codec/omxil/iomx.cpp',
needed by `obj/local/armeabi/objs-debug/iomx gingerbread/__//modules/codec/omxil/iomx.o'. Stop.
While when i try to search the file in my folder i only able to find iomx.h and iomx.cpp is actually missing but i downloaded the project from official repository.
git clone git://git.videolan.org/vlc-ports/android.git
I'm willing to follow a tutorial with proper configurations to setup and compile android application of VLC but i'm not able to find any tutorial and the official one says that it is for Linux and you will require a Linux or Mac OSX to follow this tutorial Tutorial Link. So my first question is
Can we Compile VLC android project Using all mentioned tools like (Android SDK, NDK, ant etc) on a windows platform.
Secondly i'm not able to find a detailed or much easy Documentation except this one VLC Documentation link, Are there any other easy to understand libVLC documentation more specific to android usage
Please help me or guide me in right direction. I want to develop an application for Docked DVD device for android.
I found my answer about this by myself and today watched this question unanswered so thought to answer it so that it can be helpful for others.
For the first part the answer is 'NO' we cannot compile the libVLC code on Windows OS using NDK as due to complex compilation process of libVLC. it Cannot be compiled using NDK tools that's why VLC released a script to compile libVLC which is in main directory when you download code from Git repository named Compile.sh and it can be run only on linux or mac as both based on Unix. i.e for libVLC compilation you need to run compile.sh which requires alot of linux based tools as mentioned in their official tutorial for compilation. you can try all those packages through cygwin on windows but i have not tried that rather i switched to Ubuntu 13.04 so that i can also explore linux environment...:). One thing i like to mention here if your target is just to use the compiled C++ code of libVLC in your project through java then you can do this on windows OS using libVLC.so file but if you need to change the libVLC code and recompile it then you will need to run compile.sh which requires linux or mac.
For the Second one the answer is same that as far as i know the only documentation i found was that i mentioned in my question.

how to compile and modify android 4.0.3 source code in eclipse using windows

I have downloaded the android source code 4.0.3, installed cygwin with make and gcc, and downloaded
ndk and sdk, integrated eclipse with cdt and adt. Using windows 7 64bit.
Can you guys tell me how to build this source code in eclipse in order to customize the native settings
menu.
Thanks in advance.
FYI :I have been through google, stackoverflow, but couldn't find any lead which works.
See these pages in the Developer docs: Initializing a Build Environment. This page seems to indicate that Mac, and Linux are the only supported build environment OS. I would suggest using one of those instead of Windows 7.
Once you've got environment set up see also: Building and Running
I think it will be very difficult. From my experience, even on the supported platforms there are difficulties to tune build environment. Windows is not supported so I think this is almost impossible there.
Maybe in your case it's worth to install a virtual machine?

Compiling android apps on an actual phone

Hi I'd like to know how to compile an app source code on an android platform?
I know it's possible because I saw some apps that are doing it...
Thanx ahead!
I think what you are asking for is a way to compile android apps on an android device.
the way an app like this new IDE does.
If so what you would need to do is to take an open source java compiler such as the ejc (the Java compiler used within Eclipse) and use it to compile your java source. You would then need to port the dalvik compiler to be able to run, in order to generate dex from the class files generated by the java compiler.
An interview with he developers of AIDE has a little bit more info on how they did it.
UPDATE:
Actually I just came across an open source project which provides similar functionality but based on using vim and the existing SDK cli tools ported to run on a an android device. The project is hosted here.
UPDATE 2:
I found yet another open source project that also does on device compile/build which I think should provide you with examples of what you are trying to do...
More specifically, if you look in IDE.java, you can see how the individual tools (ejc, dx, aapt) are called/used.
Possible in a number of ways...
There have been apps - proprietary & open source - built for the purpose. I am not sure if these apps will be at least near the production quality. But they work:
It mainly depends on language you are writing - since cross platform app development is also possible on Android.
• Java: Java N-IDE, AIDE
• JavaScript: NativeScript CLI, Appcelerator Titanium CLI, Apache Cordova via CLI. [All these can be installed via node.js package manager (npm) which in turn can be installed via Dory NodeJS, GNURoot Debian or Termux apps..
• Linux CLI utilities can be installed on Android simply with a terminal shell or GNURoot / Termux. You can also Emulate complete PC OS using Limbo PC Emulator / Bochs [Although they should be lightweight]. In theory, by this way you should be able to use almost all Android development utilities. But Storage, memory & performance constraints come to play..
• There are other apps & web services for hobbyists: eg: Sketchware, DroidScript, Appy Pie, Monaca, PhoneGap Build and many others.... But don't expect professional quality apps using them..

Which IDE to use for Android Phone development?

I see another person asked this question and was answered but the other person was on a Mac. Also, I want to know why people are recommending the Classic Eclipse IDE. What is "Java EE"?
I'm on Windows 7 64-bit.
I'm new at using Java but I don't want to start off with something that will later need changing. If I am intending to write apps for Android Phones (and later tablets), which environment should I use?
I see the following options for download:
- Eclipse IDE for Java Developers
- Eclipse IDE for Java EE Developers
- Eclipse Classic 3.6.2
Thanks!
For a list of the different Eclipse editions, see http://eclipse.org/downloads/
"Java EE" is a release of Eclipse with all the features that are particular useful for Java EE development. Other similar editions are aimed at PHP, plug-ins, C++, etc.
Any of these can be used as the basis for Android development, but if you "just" want to development Android stuff and have no need for Java EE support, PHP or whatever, then choose "...for Java Developers", as it is the smallest available...
You can write in Javascript using titanium.It converts the code js to java or objective c.
I think this is the easiest way.It's the titanium link
You can use the Eclipse download for Java Developers and install Android Development Toolkit (ADT) plugin from Google.
Eclipse Pulsar which is intended for mobile developers is also available for from Eclipse downloads home.
If you are used to using Visual Studio on windows or other big IDEs, I'd recommend you use Eclipse for Java Developers.
If you are just getting started, I'd suggest you skip out on IDEs. For me, Eclipse was more trouble than I needed. Using VIM or Notepad++ and a batch file gives you great results.

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error:
/c/Users/Andrew Rabon/bin/repo: line
23: exec: python: not found
I've downloaded repo and put it in ~/bin like it says, and I've installed Python. I wonder what the issue could be.
For reference, I'm using msysgit on Windows Vista, I understand msysgit is limited, but I hope it can at least pull the android source.
I ended up creating a VirtualBox vm with Ubuntu installed. Followed the directions on the source code site and then zipped up the source and copied it over via file share to my windows machine. It's a bulky solution but it's the most straightforward as you don't have to deal with cryptic scripting issues.
I imagine that you could make msysgit and repo work with some tweaking,
In particular, I think there is an advantage in using Cygwin. It seems to have superior handling of case sensistive file names. This might be irrelevant for the main Android code base, but I know for a fact that it is necessary for the Linux kernel.
You cannot build Android on Windows. However, you should be able to use repo to pull the source code. I've done this. I imagine you must be using Cygwin. You'll need Python 2.4 (according to Get Source) and make sure you don't have any other Python installations on Windows or Cygwin that are overriding it. Check your version using the python interactive shell.

Categories

Resources