Professional Documents
Culture Documents
Contents
1. What is Android?..................................................................................................3
2. Android technology..............................................................................................3
3. Programming languages for Android.................................................................3
3.1.
Java..................................................................................................................4
3.1.1.
About Java.................................................................................................4
3.1.2.
Android SDK..............................................................................................4
3.2.
C++...................................................................................................................4
3.2.1.
About C++.................................................................................................4
3.2.2.
Android NDK..............................................................................................5
Step 1...............................................................................................................6
Figure 1. The Android SDK Manager shows the SDK packages that are available,
already installed, or for which an update...................................................................7
4.2.
Step 2...............................................................................................................8
5. Git...........................................................................................................................8
1 What is Android?
Android is the name of the mobile operating system made by American company
Google. It most commonly comes installed on a variety of smartphones and tablets
from a host of manufacturers offering users access to Googles own services like
Search, YouTube, Maps, Gmail and more.
2 Android technology
Android operating system(OS) is based on the Linux kernel. With a user interface
based on direct manipulation, Android is designed primarily for touchscreen mobile
devices such as smartphones and tablet computers, with specilalized user interface
for televisions(Android TV), cars(Android Auto), and wirst watches(Android Wear).
The OS uses touch inputs that loosely corrrespond to real-world actions, like swiping,
tapping, pinching, and reverse pinching to manipulate on-screen objects, and a vitual
keyboard. Despite being primarily designed for touchscreen input, it has also been
used in game console, digital cameras, regular PCs, and other electronics. As of
2015, Android has the largest installed base of all operating systems. Android is
popular with technology companies which require a ready-made, low-cost and
customizable operating system for high-tech devices. Android's open nature has
encouraged a large community of developers and enthusiasts to use the opensource code as a foundation for community-driven projects, which add new features
for advanced users or bring Android to devices which were officially released running
other operating systems. The operating system's success has made it a target for
patent litigation as part of the so-called "smartphones wars" between technology
companies.
Java
About Java
Java is a general-purpose computer programming language that is concurrent, classbased, object-oriented, and specifically designed to have as few implementation
dependecies as possible. It is intended to let application developers write once, run
anywhere (WORA), meaning that compiled Java code can run on all platforms that
support Java without the need for recompilation. Java applications are compiled to
bytecode that can run on any Java virtual machine (JVM) regardless od computer
architecture. As of 2015, Java is most populared programing languages in use,
practiculary for client-server web applicarions, with a reported 9 million developers.
2
Android SDK
2
1
C++
About C++
Android NDK
Libraries
written
in C, C++ and
other
languages
can
be
compiled
to ARM, MIPS or x86 native code and installed using the Android Native
Development Kit (NDK). Native classes can be called from Java code running under
the Dalvik VM using the System.loadLibrary call, which is part of the standard
Android Java classes.
Complete applications can be compiled and installed using traditional development
tools. However, according to the Android documentation, NDK should not be used
solely for developing applications only because the developer prefers to program in
C/C++, as using NDK increases complexity while most applications would not benefit
from using it.
The ADB debugger gives a root shell under the Android Emulator which allows ARM,
MIPS or x86 native code to be uploaded and executed. Native code can be compiled
using GCC or the Intel C++ Compiler on a standard PC. Running native code is
complicated by Android's use of a non-standard C library (libc, known as Bionic). The
graphics library that Android uses to arbitrate and control access to this device is
called the Skia Graphics Library (SGL), and it has been released under an open
source licence. Skia has backends for both Win32 and Unix, allowing the
development of cross-platform applications, and it is the graphics engine underlying
the Google Chrome web browser.
development
with
Java
Step 1
Run on windows
Download Java JDK
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads2133151.html
If JDK is installed in C:\jdk, the following line needs to be added to C:\autoexec.bat
file.
set PATH=C:\jdk_version\bin;%PATH%
set JAVA_HOME=C:\jdk_version
Alternatively, you could also right-click on My Computer, select Properties,
then Advanced, then Environment Variables. Then, you would update the PATH
value and press the OK button.
Download Java JRE
http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads2133155.html
Download AndroidStudio
http://developer.android.com/sdk/index.html
Go to SDK manager, select Tools->Android->SDK Manager
You can select which packages you want to download by toggling the checkboxes on
the left, then click Install to install the selected packages.
Figure 1. The Android SDK Manager shows the SDK packages that are available, already installed, or
for which an update is available.
There are several different packages available for the Android SDK. The table below
describes most of the available packages and where they're located in your SDK
directory once you download them.
SDK Tools
Required. Your new SDK installation already has the latest version. Make sure you
keep this up to date.
SDK Platform-tools
Required. You must install this package when you install the SDK for the first time.
SDK Platform
Required.You must download at least one platform into your environment so you're
able to compile your application. In order to provide the best user experience on the
latest devices, we recommend that you use the latest platform version as your build
target. You'll still be able to run your app on older versions, but you must build against
the latest version in order to use new features when running on devices with the
latest version of Android.
To get started, download the latest Android version, plus the lowest version you plan
to support (we recommend Android 2.2 for your lowest version).
Step 2
5 Git
Git is a distributed revision control system with an emphasis on speed, data integrity,
and support for distributed, non-linear workflows. Git was initially designed and
developed by Linus Torvalds for Linux kernel development in 2005, and has since
become the most widely adopted version control system for software development.
As with most other distributed revision control systems, and unlike most client
server systems, every Git working directory is a full-fledged repository with complete
history and full version-tracking capabilities, independent of network access or a
central server. Like the Linux kernel, Git is free software distributed under the terms
of the GNU General Public License version 2.
To learn git, you should use Lynda tutorial for git. At the moment of writing this
document, Lynda GIT Essential Training files can be found on the external hard drive
of the company.