Download - Android using processing
-
8/20/2019 Android using processing
1/24
2013
Society of Electrical
Engineers
Ahmed Nafies
[ANDROID CHAPTER # 1]
-
8/20/2019 Android using processing
2/24
What is Android
There's no other software quite like Android. Google engineered Android, and Google’s own
apps run best on it. And with millions of apps, games, songs, and videos on Google Play, Android is great
for fun, and for getting things done.
Android devices come in all kinds of sizes, with all sorts of features, and at all sorts of prices.
Each version of Android is named after a dessert, and the most recent version of Android is Jelly Bean.
With Android, you’re in control of your mobile experience.
Android is an operating system based on the Linux kernel, and designed primarily for touch
screen mobile devices such as smart phones and tablet computers. Initially developed by Android, Inc.,
which Google backed financially and later bought in 2005,- Android was unveiled in 2007 along with the
founding of the Open Handset Alliance: a consortium of hardware, software, and telecommunication
companies devoted to advancing open standards for mobile devices.- The first Android-powered phone
was sold in October 2008.
http://en.wikipedia.org/wiki/Android_%28operating_system%29#cite_note-AndroidAnnouncement-14http://en.wikipedia.org/wiki/Android_%28operating_system%29#cite_note-AndroidAnnouncement-14http://en.wikipedia.org/wiki/Android_%28operating_system%29#cite_note-AndroidAnnouncement-14http://en.wikipedia.org/wiki/Android_%28operating_system%29#cite_note-AndroidAnnouncement-14
-
8/20/2019 Android using processing
3/24
Android is Linux-based so what is Linux?
Linux is an operating system like windows but assembled under the model of free and open
source software development and distribution. The main form of distribution is “Linux distributions”.
The defining component of Linux is the Linux kernel, an operating system kernel first released on 5
October 1991, by Linus Torvalds. Because it considers Linux to be a variant of the GNU operating system,
initiated in 1983 by Richard Stallman, the Free Software Foundation prefers the name GNU/Linux when
referring to the operating system as a whole.
Linux was originally developed as a free operating system for Intel x86-based personal
computers. It has since been ported to more computer hardware platforms than any other operating
system. It is a leading operating system on servers and other big iron systems such as mainframe
computers and supercomputers as of June 2013, more than 95% of the world's 500 fastest
supercomputers run some variant of Linux, including all the 44 fastest. Linux also runs on embeddedsystems (devices where the operating system is typically built into the firmware and highly tailored to
the system) such as mobile phones, tablet computers, network routers, building automation controls,
televisions and video game consoles; the Android system in wide use on mobile devices is built on the
Linux kernel.
-
8/20/2019 Android using processing
4/24
Examples of Linux-Based operating systems
(like windows)
-
8/20/2019 Android using processing
5/24
Why develop applications for android?
According to Forbes, Over thepast quarter, of the mobile
devices sold, 64.1% are powered
by Google’s Android™ and only
18.8% are operated by Apple’s
iOS.
That's right, you are fighting all
those App Sharks for less than
20% of the market share while
missing the obvious 64% of the
Untapped Market!
On the AppStore you are competing for a
few expensive gadgets only (three types of
iPhones, three of iPads) while on the
Android™ you can have thousands of
supported phones from all price ranges,
affordable even to small guys!
According to the latest stats Android™
works on 3,997 distinct devices spanning
almost 600 brands!
-
8/20/2019 Android using processing
6/24
Are you paying an extra $97 per year for
Xcode development tools for the Appstore?
Forget it. It's free on google, called Eclipse!
Are you struggling with approval for your
App? Waiting for weeks in pain and fear?
Do you realize that you can spend
thousands and still get your app denied by
some crazy moderators?
Forget it, there is no approval bar in
Android™ Market. Get your app published
in less than an hour!
Are your struggling with copyrights and
licensing? It all stays in the past. Let the big
companies waste millions on patent wars!
Google Android™ is an Open Source
environment! Android™ source codes areopen to the developers!
Google Android™ app developers earned $125
Million in mobile display adds while iphone
guys earned less than 90 last year! Google is all
about PPC and advertising, that's where the
biggest revenues come!, You don't really have
to sell your app! It can be free to download
and still bring thousands!
-
8/20/2019 Android using processing
7/24
What Is meant By Software Editor
A Software Editor is a text editor program designed specifically for editing source code of
computer programs by programmers. It may be a standalone application or it may be built into an
integrated development environment (IDE).
The first editor used for android development using java was “eclipse”
Then Google made its own editor and called it “Android Studio”
-
8/20/2019 Android using processing
8/24
Processing is our Editor
Processing is an open source programming language and integrated development environment
(IDE) built for the electronic arts, new media art, and visual design communities with the purpose of
teaching the fundamentals of computer programming in a visual context, and to serve as the foundation
for electronic sketchbooks. The project was initiated in 2001 by Casey Reas and Benjamin Fry, bothformerly of the Aesthetics and Computation Group at the MIT Media Lab. One of the stated aims of
Processing is to act as a tool to get non-programmers started with programming, through the instant
gratification of visual feedback. The language builds on the Java language, but uses a simplified syntax
and graphics programming model.
The primary goal of this project is to make it foolishly easy to create Android apps using the
Processing API. Once you have Processing on your machine (and the Android developer tools), you can
simply write a line of code, hit Run (Ctrl-R or Cmd-R), and have your sketch show up in the emulator as aworking Android app. Select Run on Device (Ctrl-Shift-R or Cmd-Shift-R) to have it run on an Android
device that you have plugged into your machine. That's good stuff!
-
8/20/2019 Android using processing
9/24
Downloading and Installing Processing
Go to the following webpage:
https://processing.org/download/
Choose “No Donation” then download
https://processing.org/download/https://processing.org/download/https://processing.org/download/
-
8/20/2019 Android using processing
10/24
Choose you operating system
Click on the “Ok” button and wait for processing to be fully download it.
-
8/20/2019 Android using processing
11/24
Open the .rar file with “Winrar” or any unpacking tool and extract contents to your preffered
directory.
Open processing and enjoy
-
8/20/2019 Android using processing
12/24
“Run” Button to
build the code
Command
window to write
the codes
Processing modes
Android mode
And java mode
-
8/20/2019 Android using processing
13/24
The Android SDK (software Development Kit)
Android software development is the process by which new applications are created for the
Android operating system. Applications are usually developed in the Java programming language using
the Android Software Development Kit, but other development tools are available
The Android software development kit (SDK) includes a comprehensive set of development
tools. These include
Debugger
Libraries
handset emulator based on QEMU
documentation
sample code
Tutorials.
-
8/20/2019 Android using processing
14/24
Downloading and Installing the Java (JDK and
JRE)
Go to the following website and download both JRE and JDK
http://www.oracle.com/technetwork/java/javase/downloads/index.html
Incase that you are using windows 64-bit operating system choose JDK 32 and JDK 64
http://www.oracle.com/technetwork/java/javase/downloads/index.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/index.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/index.html
-
8/20/2019 Android using processing
15/24
-
8/20/2019 Android using processing
16/24
Installing and Running the SDK
First go to following website choose “USE an Existing IDE” http://developer.android.com/sdk/index.html
http://developer.android.com/sdk/index.htmlhttp://developer.android.com/sdk/index.htmlhttp://developer.android.com/sdk/index.html
-
8/20/2019 Android using processing
17/24
Choose to agree on the terms and conditions then download
-
8/20/2019 Android using processing
18/24
Then open the downloaded files
Choose the APIs that you would like to develop apps for. Download all of the “SDK platform” and
“sources for SDK”
Make sure that you download all of the Extras
-
8/20/2019 Android using processing
19/24
Open Processing and choose add mode
-
8/20/2019 Android using processing
20/24
Choose to install android mode
Restart processing and change the mode to android
The following message box will appear
Then locate the android SDK folder
In my case it was:C:\Users\ahmed nafies\AppData\Local\Android\android-sdk
-
8/20/2019 Android using processing
21/24
Now you can find the android tab added and we can setup android Emulator
Setting the Java environment variables on windows to make sure that
everything works fine.
Locate the JDk which usually falls Under “C:\Program
Files\Java\Jdk ….”
Copy the Location of the JDK folder
-
8/20/2019 Android using processing
22/24
Open your computer and Right-click anywhere then select properties
Choose “advanced system settings”
-
8/20/2019 Android using processing
23/24
Click on “Environment variables”
Under “system Variables” press “new”
In the variable name write “JAVA_HOME” and paste the location of the JDk that you
have copied earlier in the variable value
Press “ok ” and search for “path”
-
8/20/2019 Android using processing
24/24
Then select edit
In the variable value at the end write semi-colon “;” and copy the location of the bin
folder located inside the JDK folder that we have opened earlier and paste the
location after the semi-colon “;”
Restart and you are ready to make android programs.