Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 2e37ed8

Browse files
committed
Import the first code
Change-Id: I6d8317178a8d119738194481edb61d4c1db8a82a
1 parent 05decd7 commit 2e37ed8

File tree

1,625 files changed

+53805
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,625 files changed

+53805
-1
lines changed

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
*/.gitignore
3+
.gradle
4+
.DS_Store
5+
6+
# built application files
7+
*.apk
8+
*.ap_
9+
10+
# files for the dex VM
11+
*.dex
12+
13+
# Java class files
14+
*.class
15+
16+
# generated files
17+
bin/
18+
out/
19+
gen/
20+
21+
# Libraries used by the app
22+
# Can explicitly add if we want, but shouldn't do so blindly. Licenses, bloat, etc.
23+
/libs
24+
25+
26+
# Build stuff (auto-generated by android update project ...)
27+
build.xml
28+
ant.properties
29+
local.properties
30+
project.properties
31+
32+
# Eclipse project files
33+
.classpath
34+
.project
35+
36+
# idea project files
37+
.idea/
38+
.idea/.name
39+
*.iml
40+
*.ipr
41+
*.iws
42+
43+
##Gradle-based build
44+
.gradle
45+
build/

AlertSample/.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
*/.gitignore
3+
.gradle
4+
.DS_Store
5+
6+
# built application files
7+
*.apk
8+
*.ap_
9+
10+
# files for the dex VM
11+
*.dex
12+
13+
# Java class files
14+
*.class
15+
16+
# generated files
17+
bin/
18+
out/
19+
gen/
20+
21+
# Libraries used by the app
22+
# Can explicitly add if we want, but shouldn't do so blindly. Licenses, bloat, etc.
23+
/libs
24+
25+
26+
# Build stuff (auto-generated by android update project ...)
27+
build.xml
28+
ant.properties
29+
local.properties
30+
project.properties
31+
32+
# Eclipse project files
33+
.classpath
34+
.project
35+
36+
# idea project files
37+
.idea/
38+
.idea/.name
39+
*.iml
40+
*.ipr
41+
*.iws
42+
43+
##Gradle-based build
44+
.gradle
45+
build/

AlertSample/.idea/compiler.xml

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AlertSample/.idea/copyright/profiles_settings.xml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AlertSample/.idea/encodings.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AlertSample/.idea/gradle.xml

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AlertSample/.idea/misc.xml

+46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AlertSample/.idea/modules.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AlertSample/README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
AlertSample - Solution Code
2+
==========================
3+
4+
Simple app with one button that shows the alert dialog.
5+
6+
Introduction
7+
------------
8+
9+
This app provides a button that the user taps to show an alert with OK and Cancel
10+
buttons. Tapping OK or Cancel display a toast message showing which button was
11+
tapped.
12+
13+
Pre-requisites
14+
--------------
15+
16+
You need to know:
17+
- How to open, build, and run apps with Android Studio.
18+
- Handling a button click.
19+
- Displaying a toast message.
20+
21+
22+
Getting Started
23+
---------------
24+
25+
1. Download the code.
26+
2. Open the code in Android Studio.
27+
3. Run the app.
28+
29+
30+
License
31+
-------
32+
33+
Copyright 2016 Google, Inc.
34+
35+
Licensed to the Apache Software Foundation (ASF) under one or more contributor
36+
license agreements. See the NOTICE file distributed with this work for
37+
additional information regarding copyright ownership. The ASF licenses this
38+
file to you under the Apache License, Version 2.0 (the "License"); you may not
39+
use this file except in compliance with the License. You may obtain a copy of
40+
the License at
41+
42+
http://www.apache.org/licenses/LICENSE-2.0
43+
44+
Unless required by applicable law or agreed to in writing, software
45+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
46+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
47+
License for the specific language governing permissions and limitations under
48+
the License.

AlertSample/app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

AlertSample/app/build.gradle

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "23.0.3"
6+
7+
defaultConfig {
8+
applicationId "com.example.android.alertsample"
9+
minSdkVersion 15
10+
targetSdkVersion 25
11+
versionCode 1
12+
versionName "1.0"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(dir: 'libs', include: ['*.jar'])
24+
testCompile 'junit:junit:4.12'
25+
compile 'com.android.support:appcompat-v7:25.0.0'
26+
compile 'com.android.support:support-v4:25.0.0'
27+
}

AlertSample/app/proguard-rules.pro

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/tbove/Library/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright 2016 Google Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License. -->
15+
16+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
17+
package="com.example.android.alertsample">
18+
19+
<application
20+
android:allowBackup="true"
21+
android:icon="@mipmap/ic_launcher"
22+
android:label="@string/app_name"
23+
android:supportsRtl="true"
24+
android:theme="@style/AppTheme">
25+
<activity android:name="com.example.android.alertsample.MainActivity">
26+
<intent-filter>
27+
<action android:name="android.intent.action.MAIN" />
28+
29+
<category android:name="android.intent.category.LAUNCHER" />
30+
</intent-filter>
31+
</activity>
32+
</application>
33+
34+
</manifest>

0 commit comments

Comments
 (0)