Android is an Operating System for mobile devices developed by Google, which is built upon Linux kernel. Android competes with Apple's iOS (for iPhone/iPad), Microsoft's Windows Phone, and many other proprietary mobile OSes.
The latest Android supports Phone/Tablet, TV, Wear (watch and glass), Automobile and Internet of things (IoT).
Download Tumblr for iOS. Follow the blogs you've been hearing about. Share the things that you love. Tumblr for iOS 3.4.2 Follow the blogs you've been hearing about. Share the things. Roberts Space Industries is the official go-to website for all news about Star Citizen and Squadron 42. It also hosts the online store for game items and merch, as well as all the community tools used by our fans.
Android is based on Linux with a set of native core C/C++ libraries. Android applications are written in Java. However, they run on Android's own Java Virtual Machine, called Dalvik Virtual Machine (DVM) (instead of JDK's JVM) which is optimized to operate on the small and mobile devices.
In May 2017, Google announced support for a new Kotlin programming language. As you are familiar with Java, you probably should start in Java (many of the examples out there are written in Java), and then move into Kotlin. Kotlin will not be discussed in this article.
The mother site for Android is https://www.android.com. For programmers and developers, visit https://developer.android.com to download the SDK, Android Training, API Guides and API documentation.
Installing Android software is probably the most challenging part of this project. It takes times - from 30 minutes to n hours to forever - depending on your luck, your programming knowledge, and your PC. You probably need a fairly decent PC (with 8GB RAM) and 10GB of free disk space to run the Android emulator!!! Running on 'actual' Android phone/tablet requires much lesser resources.
javac -version
'.Reference: 'Install Android Studio' @ https://developer.android.com/studio/install.
JAVA_HOME
is set to the JDK installation directory via command 'set JAVA_HOME
'. Otherwise, Follow the steps HERE.android-studio-ide-192.xxxxxxx-windows.exe
'.C:Program FilesAndroidAndroid Studio
'.by default, the 'Android Studio IDE' will be installed in 'C:Program FilesAndroidAndroid Studio
', and the 'Android SDK' in 'c:UsersusernameAppDataLocalAndroidSdk
'.
Notes: You can also use the ZIP version: Download the Windows 64-bit ZIP version (about 1.5GB) ⇒ UNZIP into a folder of your choice ⇒ Run 'binstudio64.exe
' to launch the Android Studio ⇒ It will enter the 'setup' for the first launch ⇒ 'Do not Import Settings' ⇒ In 'Welcome', click 'Next' ⇒ In 'Install Type', choose 'Custom' (so that you can see what is going on) ⇒ In 'Select Default JDK Location', use default ⇒ In 'Select UI Theme', choose one that you like ⇒ In 'SDK Components Setup', select 'Android Virtual Device (1.05GB) ⇒ Take note of the 'Android SDK Location' with default of 'C:UsersusernameAppDataLocalAndroidSdk
' ⇒ In 'Emulator Settings', use default ⇒ In 'Verify Settings', check the settings and choose 'Finish' ⇒ In 'Download Components', click 'Details' and check that nothing fails ⇒ Wait ⇒ Wait ⇒ Wait.
android-studio-ide-192.xxxxxxx-mac.dmg
'..dmg
' installation file ⇒ You may watch a short video @ https://developer.android.com/studio/install.The 'Android SDK' will be installed in '~/Library/Android/sdk
', where ~ denotes your home directory.
Note: If you see a warning that says 'the package is damaged and should be moved to the trash', goto 'System Preferences' ⇒ Security & Privacy ⇒ under 'Allow applications downloaded from' ⇒ select 'Anywhere'. Then run again.
Wondershare tunes go - ios & android 9.0 download free version. Wondershare TunesGo also creates beautiful with images from Live/Motion. You can move pictures directly to iDevices; add photos to the portable photo library from PC/Camera/Camcorders.
This step takes a long time as you need to download about 3GB of zip data, and expand to 5 GB of disk data, even for the minimum configuration.
Note: You can actually copy the SDK from another computer with the same OS.
c:UsersusernameAppDataLocalAndroidSdk
for Windows, '~/Library/Android/sdk
' for macOS) ⇒ Finish ⇒ Wait ⇒ Wait ⇒ Wait ⇒ Wait ⇒ Wait ⇒ Wait.AppData
' is a hidden directory. You need to choose 'View' menu ⇒ Uncheck 'Hidden Items' to see this directory.Android apps are written in Java, and use XML extensively. I shall assume that you have some basic knowledge of Java and XML.
Take note that Android emulator is slow - VERY VERY VERY SLOW!!! Be Patient!!!
Goto 'Android Guides' @ https://developer.android.com/guide/index.html. Read 'Build your first app'.
To run your Android app under an emulator, you need to first create an Android Virtual Devices (AVD). An AVD emulates a specific device (e.g., your zPone 99 or Taimi Green). You can create AVDs to emulate different devices (e.g., phone/tablet, android version, screen size, and etc.).
Common Errors:
compileSdkVersion
' and 'targetSdkVersion
' from 26 to 27 (we have installed API-27) and 'com.android.support:appcompat-v7:26.x.x
' to '27.0.0
'.C:Usersusername.gradlewrapperdists
' and delete 'gradle-x.x-all
'. Take note the '.gradle
' is a hidden directory and you need to enable viewing of hidden directory.~.gradlewrapperdists
' and delete 'gradle-x.x-all
'. Take note the '.gradle
' is a hidden directory and you need to enable viewing of hidden directory.C:Usersyour-usernameAppDataLocalAndroidSdkextrasintelHardware_Accelerated_Execution_Manager
' for Windows or '~/Library/Android/sdk
/extras/intel/Hardware_Accelerated_Execution_Manager
' for macOS) ⇒ run 'intelhaxm-android.exe
' to install HAXM ⇒ Be patient! The installer may take a while to launch ⇒ Follow the screen instructions to complete the setup.AppData
' directory is hidden. You need to unhide via 'File Explorer' ⇒ 'View' menu ⇒ Uncheck 'Hidden Items. (b) In macOS, the 'Library
' folder is hidden. You can unhide via 'Finder' ⇒ Go ⇒ Home ⇒ Settings ⇒ Show View Option.Reference: 'Run on Real Device' @ https://developer.android.com/training/basics/firstapp/running-app.html#RealDevice.
To run the Android app on a REAL device (Android Phone or Tablet):
To delete a project, select 'File' ⇒ 'Close Project' ⇒ On the 'Recent Projects' ⇒ Hover over the project ⇒ Press 'Delete' key on the project to remove the project from Android Studio ⇒ You can then delete the project directory from the file system.
There are two ways to create User Interface (UI) on Android:
Let's begin with writing Java codes (because you have learned Java). We shall continue from the 'Hello Android' project created earlier.
Expand the 'app
' node (by clicking on the triangle). Expand the 'java
' node. Expand the 'com.example.helloandroid
' package node. Open the 'MainActivity.java
' (which actually has already been opened). REPLACE the onCreate()
method as follows and add the import statement. Do not touch the rest of the codes, if any.
Run the application ('Run' ⇒ 'Run app'). You shall see the message 'Hello, from my Java code!' displayed.
An Android application could have one or more Activity
.
An Activity
, which usually has a screen, is a single, focused thing that the user can interact with the application (hence called activity). The MainActivity
extends the android.app.Activity
class (or android.app.AppCompatActivity
in the later version), and overrides the onCreate()
method. The onCreate()
is a call-back method, which is called back by the Android system when the activity is launched.
A View
is a UI component (or widget, or control). We construct a TextView
(which is a subclass View
for showing a text message), and set its text. We then set the content-view of the MainActivity
screen to this TextView
.
Each Android application has a manifest file named AndroidManifest.xml
under 'app' ⇒ 'manifests'. It describes the Android app.
For example, our 'Hello Android
' application, with an activity called MainActivity
, has the following manifest (generated automatically by the Android SDK when the project was built):
<manifest>
element specifies the package name.<manifest>
contains one <application>
element.<application>
element specifies the icon, label (the app's title) and theme of this application. It contains one or more <activity>
elements.<activity>
element declares its program name ('MainActivity
' in current package '.
'). It may contain <intent-filter>
.<intent-filter>
declares that this activity is the entry point (android.intent.action.MAIN
) of the application. This activity is to be added to the application launcher (android.intent.category.LAUNCHER
).Instead of writing Java codes to create the user interface (UI) (as in the above example using a TextView
component). It is more flexible and therefore recommended to layout your UI components via a descriptive XML layout file. In this way, you don't need to hardcode the views, and you can easily modify the look and feel of the application by editing the XML markups. The Java codes can therefore focus on the business logic.
Let's rewrite our hello-world to use XML layout.
CLOSE the previous project, via 'File' ⇒ 'Close Project' (Always CLOSE the previous project before starting a new project).
Choose 'Start a new Android Studio project' ⇒ 'Phone and Tablet' ⇒ 'Empty Activity' ⇒ Next ⇒ Set 'Name' to 'Hello Android XML
' ⇒ 'Finish'.
Expand the 'app', 'res (resource)', 'layout' node. Open the 'activity_main.xml
' (which is actually already opened). Android Studio provides 3 views for this XML file: 'Design (or Graphical)', 'Code (or XML)', or 'Split' - selectable by the icons at the top-right corner of the panel.
Select the 'Code' view and study the codes:
The XML declares a TextView
(text field) that holds a text string 'Hello World!
'. The TextView
component has width and height big enough to hold its content ('wrap_content
').
Instead of hardcoding the Hello-World string directly inside the TextView
(as in the above XML file), we shall use a string reference (or variable) for better flexibility.
Expand res/values
node. Open strings.xml
, and ADD the line in red:
This 'string.xml
' defines 2 variables/values:
app_name
' contains the application's name, that you entered when you created the project.hello
' contains the value of 'Hello world from XML!
'.Now, modify the 'activity_main.xml
' to use the string variable 'hello
', in the format '@string/hello
', as follows:
Next, check the 'MainActitivy.java
' (under app/java/com.example.helloandroidxml
), as follows:
The 'MainActivity
' sets its content-view to 'R.layout.activity_main
', which is mapped to the XML layout file 'reslayoutactivity_main.xml
' that we have modified earlier.
Run the application. You shall see the new string 'Hello, from XML!
' displayed.
Android is huge. You probably want to remove it after your project sessions.
C:UsersusernameAppDataLocalAndroidSdk
(this directory contains the SDK and is huge, about 5GB)C:Usersusername.android
C:Usersusername.AndroidStudioX.X
C:Usersusername.gradle
C:UsersusernameAndroidStudioProjects
(these are the Android projects written by you)[TODO]
REFERENCES & RESOURCES
You need an RSI account in order to play the game.
ENLIST OR SIGN INTo play Star Citizen you will need at least one Game Package on your account.
GET A GAME PACKAGEWith a Game Package you can explore Stanton, fly in Arena Commander and visit your own Ship Hangar.
Please make sure Steps 1 and 2 are completed before you can download Star Citizen.