-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Review #9
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## Setup Android Studio | ||
###Download/Install Android Studio | ||
To build our Android app we'll be using an IDE called Android Studio. An IDE is a programming environment that allows you to edit files, compile and run your code, and has other features built into it like debugging. Lets start by [Downloading Android Studio](http://developer.android.com/training/basics/firstapp/index.html) To get it to work you'll also need to install [Java](TODO:link). | ||
|
||
###Download SDK tools | ||
TODO: SDK stuff here or after? test fresh install studio on windows. | ||
|
||
###Setting up a New Project | ||
Once Android studio is set up we'll need to start a [New Project](http://developer.android.com/training/basics/firstapp/creating-project.html). Open Android studio and select 'Start a new Android Studio Project', use a Minimum SDK of API 16 (Jelly Bean), and when prompted to choose starting Activity, choose 'Empty Activity' | ||
Minimum SDK is the minimum version of the Android Operating System required to run your app. We chose 16 because most phones run that or newer, and it allows us to use new Android features. | ||
The starting Activity is the code that Android Studio will generate to start your project. Well explain what Activity and Fragment are in a bit. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than just introducing the term "Activity" it may be more approachable if it's phrased "Android Studio will generate some starting code to start off your project. This is the starting Activity. We'll get more into what this means in a bit." or smthng |
||
Android studio should now generate your starting project, once it finishes indexing (loading bar at the bottom of the screen) it will drop you into the screen pictured below (TODO: Get screenshot from windows AS). | ||
|
||
### Running project on Device/Emulator | ||
To make sure it worked correctly, click the green 'Run' arrow at the top of the screen. This will compile the starting code and prompt you for a device to run it on. If you are using the emulator for testing, check Launch Emulator at the bottom and click OK, this will start a virtual device and run the app on it (may take while to start). If you are using a real device, plug in your phone and accept the prompt on the device, then it should appear under 'Choose a running device'. Select it and click OK to run the app on your phone. Your app should open with a white screen that says 'Hello World'. (TODO: add picture) | ||
|
||
### Problems? | ||
Thats what mentors are here for, feel free to ask for help with any problems you have, if you feel up to the challenge you can also try searching your problem on [StackOverflow](http://stackoverflow.com/) or just Google. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Android Studio Tips | ||
### Android studio view (structure project preview) | ||
- Project (left): Shows files in android structure | ||
- Structure (right): Shows functions and inner classes of files | ||
- Android (bottom right): Shows logs from device | ||
- Run (bottom left): Options for running project | ||
- Terminal (bottom left): Command line | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be useful to add screenshots here. |
||
|
||
### [Android studio shortcuts](https://teamtreehouse.com/library/android-tools/getting-started-with-android-studio/helpful-keyboard-shortcuts) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Beautify app | ||
## Colors | ||
### Defining colors in colors.xml | ||
- Colors | ||
|
||
### Using Colors in Layouts | ||
- Change text color | ||
|
||
### Using Colors in Java | ||
- Change Map properties if possible? | ||
|
||
## Themes | ||
### Create Dark/Light Theme | ||
- Create new colors | ||
- Define theme | ||
|
||
### Using Theme | ||
- Use theme attributes in styles | ||
|
||
### Add Theme to Settings | ||
- If made settings | ||
|
||
## Defining Styles | ||
### Defining Styles | ||
- Text Style2 | ||
- CardStyle | ||
- Button Style | ||
|
||
### Using styles | ||
|
||
## Portrait/Landscape Layouts | ||
### Dimensions | ||
- Use Dimens for different sizes | ||
|
||
### Alternate Layouts | ||
- Use Alternate layout for found screen |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Cacheing Data | ||
- Store json to use off network | ||
- Take in onError Callbacks | ||
- Check connectivity |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Extend it further | ||
- [Camera](#) | ||
- Other cool apis | ||
- Device functionalities (Accelerometer etc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets -> Let's