> Best blogg: Android and Linux
Showing posts with label Android and Linux. Show all posts
Showing posts with label Android and Linux. Show all posts

Thursday, March 6, 2014

How to Install Android on Ubuntu

How to Install Android on Ubuntu Linux With Eclipse Ide

This document will prepare an overview of the steps you will take to install and configure Android on your Ubuntu Linux system. You must have Oracle Java JDK or OpenJDK on your system before installing Android SDK. OpenJDK (aka Open Java Development Kit) is a free and open source implementation of the Java programming language Moreover, you will learn how to:
  1. Prepare your development environment and ensure it meets the system requirements.
  2. Install the Android Software Development Kit (SDK)s
  3. Download and Configure the Eclipse Integrated Development Environment (IDE)
  4. Install the Android Development Tool (ADT) Plugin for Eclipse IDE
  5. Add Android platforms and other components to your SDK
  6. Create your Android Virtual Device (AVD)

Method 1 : Prepare your Development Environment

  1. 1
    Prepare your Ubuntu Linux development environment and ensure it meets the system requirements. First, boot up Ubuntu Linux,make sure you have an implementation of the Java JDK installed on your system, whether it is OpenJDK or Oracle Java JDK, which lays the foundation for the Android SDK. If you don't have the Java JDK installed on your system please install it, you can obtain the Oracle Java JDK from Download the Oracle Java JDK,for more information on: 
    • How to Install Oracle Java on Ubuntu Linux or to install the OpenJDK and OpenJRE open up a terminal on your system and run the following commands
    • Type/Copy/Paste: sudo apt-get install openjdk-7-jdk
      • This command installs OpenJDK on your system
    • Type/Copy/Paste: sudo apt-get install openjdk-7-jre
      • this command installs OpenJDK JRE( Java Runtime Environment ) on your system
    • You have choice between installing OpenJDK or installing Oracle Java. I strongly recommend installing Oracle Java because it is usually the most well maintained and up to date version of Java.
  2. 2
    If you are running a 64-bit distribution of Android SDK on your development machine, you need to install the ia32-libs:
    • Type/Copy/Paste: sudo apt-get install ia32-libs
      • This command installs additional libraries needed for development with the Android SDK
    • Type/Copy/Paste: javac -version
    • this command checks for the Java JDK on your system:
      • It should respond back with:
        • javac 1.7.0
        • or something very similiar
    • Type/Copy/Paste: java -version
      • this command checks for the Java JRE ( Java Runtine Environment ) on your system

Monday, February 24, 2014

Android and Linux

Android has always been Linux, but for years the Android project went its own way and its code wasn't merged back into the main Linux tree. Now, much sooner than Linus Torvalds, Linux's founder and lead developer, had expected, Android has officially merged back into Linux's mainline.
The fork between Android and Linux all began in the fall of 2010, "Google engineer Patrick Brady stated that Android is not Linux" That was never actually the case. Android has always been Linux at heart.

At the same time though Google did take Android in a direction that wasn't compatible with the mainstream Linux kernel. As Greg Kroah-Hartman, the maintainer of the stable Linux kernel for the Linux Foundation and head of the Linux Driver Project, wrote in Android and the Linux kernel community, "The Android kernel code is more than just the few weird drivers that were in the drivers/staging/androidsubdirectory in the kernel. In order to get a working Android system, you need the new lock type they have created, as well as hooks in the core system for their security model. In order to write a driver for hardware to work on Android, you need to properly integrate into this new lock, as well as sometimes the bizarre security model. Oh, and then there's the totally-different framebuffer driver infrastructure as well." That flew like a lead balloon in Android circles.

This disagreement sprang from several sources. One was that Google's Android developers had adopted their own way to address power issues with WakeLocks. The other cause, as Google open source engineering manager Chris DiBona pointed out, was that Android's programmers were so busy working on Android device specifics that they had done a poor job of co-coordinating with the Linux kernel developers.

The upshot was that developer circles have had many heated words over what's the right way of handling Android specific code in Linux. The upshot of the dispute was that Torvalds dropped the Android drivers from the main Linux kernel in late 2009.

Despite these disagreements, there was never any danger as one claim had it in March 2011, that Android was somehow in danger of being sued by Linux because of Gnu General Public License, version 2 (GPLv2) violations. As Linus himself said at the time, claims that the Android violated the GPL were "totally bogus. We've always made it very clear that the kernel system call interfaces do not in any way result in a derived work as per the GPL, and the kernel details are exported through the kernel headers to all the normal glibc interfaces too."

Over the last few months though, as Torvalds explained last fall, that while "there's still a lot of merger to be done … eventually Android and Linux would come back to a common kernel, but it will probably not be for four to five years." Kroah-Hartman added at the time that one problem is that "Google's Android team is very small and over-subscribed to so they're resource restrained It would be cheaper in the long run for them to work with us." Torvalds then added that "We're just going different directions for a while, but in the long run the sides will come together so I'm not worried."
In the event the re-merger of the two went much faster than expected. At the 2011 Kernel Summit in Prague in late October, the Linux kernel developers "agreed that the bulk of the Android kernel code should probably be merged into the mainline." To help this process along, the Android Mainlining Project was formed.

Things continued to go along much faster then anyone had foreseen. By December, Kroah-Hartman could write, "by the 3.3 kernel release, the majority of the Android code will be merged, but more work is still left to do to better integrate the kernel and userspace portions in ways that are more palatable to the rest of the kernel community. That will take longer, but I don't foresee any major issues involved." He was right.

Today, you can compile the Android code in Linux 3.3 and it will boot. Still, as Kroah-Hartman warned, WakeLocks, still aren't in the main kernel, but even that's getting worked on. For all essential purposes, Android and Linux are back together again.

Popular Posts


Copyright @ 2013 Best blogg.

Designed by Templateify & Sponsored By Twigplay