Skip to content

Commit b6cd1b2

Browse files
committed
Merge pull request google#14 from btco/master
Publishing the I/O 2014 source.
2 parents 4ef25b4 + 36d8898 commit b6cd1b2

File tree

1,302 files changed

+82368
-35549
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,302 files changed

+82368
-35549
lines changed

BUILDING.txt

Lines changed: 0 additions & 40 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and sizes. It also contains an Android Wear integration.
1313

1414
![Screenshot](art/hero.png)
1515

16-
We're updating the I/O app with [material design](http://www.google.com/design/spec) and the [Android L Developer Preview](http://developer.android.com/preview/index.html)! Source code for the updated I/O app is coming soon but you can get a sneak peek of the new tactile surfaces, animated touch feedback, bold use of color, and refreshed iconography by checking out this [teaser video](https://www.youtube.com/watch?v=mCgteBXYxQc) or downloading the preview APK below.
16+
We have updated the I/O app with [material design](http://www.google.com/design/spec) and the [Android L Developer Preview](http://developer.android.com/preview/index.html)! For a quick preview of the new tactile surfaces, animated touch feedback, bold use of color, and refreshed iconography by checking out this [teaser video](https://www.youtube.com/watch?v=mCgteBXYxQc) or download the preview APK below.
1717

1818
<a href="../../raw/master/binaries/iosched-lpreview.apk"><b>Download the I/O app APK for Android L Preview</b></a>
1919

@@ -22,7 +22,7 @@ more information, please refer to the [Android L Developer Preview page](http://
2222

2323
<h2>Source</h2>
2424

25-
**Note:** The source code in this repository still reflects the app as of I/O 2013. We will updated it to the I/O 2014 code shortly.
25+
The source code in this repository reflects the app as of I/O 2014.
2626

2727
<h2>Features</h2>
2828

@@ -44,7 +44,15 @@ With the app, you can:
4444
- See a list of people whose badges you have scanned, and take notes about your meeting with them
4545
- Send feedback on sessions, from your phone/tablet, or from your Android Wear device
4646

47-
Please refer to BUILDING.TXT for details about how to build and run the source.
47+
<h2>How to Work with the Source</h2>
48+
49+
We hope the source code for this app is useful for you as a reference or starting point for creating your own apps. Here is some additional reading to help you better understand and reuse this code.
50+
51+
* [Build instructions](doc/BUILDING.md): instructions on how to build and run the code.
52+
* [Sync protocol and data format](doc/SYNC.md)
53+
* [Image loading](doc/IMAGES.md)
54+
* [Use of GCM](doc/GCM.md)
55+
* [Customization guide](doc/CUSTOM.md)
4856

4957
<h2>Copyright</h2>
5058

Wearable/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2014 Google Inc. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
/build

Wearable/build.gradle

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*
2+
* Copyright 2014 Google Inc. All rights reserved.
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+
17+
apply plugin: 'android'
18+
19+
repositories {
20+
mavenCentral()
21+
flatDir {
22+
dirs 'libs'
23+
}
24+
}
25+
26+
android {
27+
compileSdkVersion 20
28+
buildToolsVersion "19.1.0"
29+
30+
defaultConfig {
31+
applicationId "com.google.samples.apps.iosched"
32+
minSdkVersion 20
33+
targetSdkVersion 20
34+
versionCode 1
35+
versionName "1.0"
36+
}
37+
signingConfigs {
38+
debug {
39+
storeFile file("../android/debug.keystore")
40+
storePassword "android"
41+
keyAlias "androiddebugkey"
42+
keyPassword "android"
43+
}
44+
release {
45+
storeFile file("../android/debug.keystore")
46+
storePassword "android"
47+
keyAlias "androiddebugkey"
48+
keyPassword "android"
49+
}
50+
}
51+
52+
buildTypes {
53+
debug {
54+
debuggable true
55+
signingConfig signingConfigs.debug
56+
}
57+
release {
58+
signingConfig signingConfigs.release
59+
}
60+
}
61+
62+
lintOptions {
63+
abortOnError false
64+
}
65+
}
66+
67+
dependencies {
68+
compile 'com.android.support:support-v13:+'
69+
compile 'com.google.android.support:wearable:+'
70+
compile 'com.google.android.gms:play-services-wearable:+'
71+
}
72+

Wearable/proguard-rules.pro

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2014 Google Inc. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
# Add project specific ProGuard rules here.
17+
# By default, the flags in this file are appended to flags specified
18+
# in /usr/local/android-sdk/tools/proguard/proguard-android.txt
19+
# You can edit the include path and order by changing the proguardFiles
20+
# directive in build.gradle.
21+
#
22+
# For more details, see
23+
# http://developer.android.com/guide/developing/tools/proguard.html
24+
25+
# Add any project specific keep options here:
26+
27+
# If your project uses WebView with JS, uncomment the following
28+
# and specify the fully qualified class name to the JavaScript interface
29+
# class:
30+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
31+
# public *;
32+
#}

Wearable/src/main/AndroidManifest.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!--
2+
Copyright 2014 Google Inc. All rights reserved.
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+
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18+
package="com.google.samples.apps.iosched">
19+
20+
<application
21+
android:name=".iowear.WearableApplication"
22+
android:allowBackup="true"
23+
android:icon="@drawable/ic_launcher"
24+
android:label="@string/app_name"
25+
android:theme="@android:style/Theme.DeviceDefault.Light">
26+
27+
<meta-data
28+
android:name="com.google.android.gms.version"
29+
android:value="@integer/google_play_services_version" />
30+
31+
<activity
32+
android:name=".iowear.PagerActivity"
33+
android:label="@string/app_name">
34+
<intent-filter>
35+
<action android:name="android.intent.action.MAIN" />
36+
</intent-filter>
37+
<intent-filter>
38+
<action android:name="com.test.myapp" />
39+
<category android:name="android.intent.category.DEFAULT" />
40+
</intent-filter>
41+
</activity>
42+
43+
<activity
44+
android:name=".iowear.FinishActivity"
45+
android:label="@string/thanks">
46+
<intent-filter>
47+
<action android:name="android.intent.action.MAIN" />
48+
</intent-filter>
49+
</activity>
50+
51+
<activity
52+
android:name=".iowear.NotificationActivity"
53+
android:taskAffinity=""
54+
android:allowEmbedded="true">
55+
<intent-filter>
56+
<action android:name="android.intent.action.MAIN" />
57+
</intent-filter>
58+
</activity>
59+
60+
<service android:name=".iowear.HomeListenerService">
61+
<intent-filter>
62+
<action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
63+
</intent-filter>
64+
<intent-filter>
65+
<action android:name="com.google.devrel.io.android.iowear.ACTION_DISMISS" />
66+
</intent-filter>
67+
<intent-filter>
68+
<action android:name="com.google.devrel.io.android.iowear.ACTION_FEEDBACK" />
69+
</intent-filter>
70+
</service>
71+
</application>
72+
73+
</manifest>
Binary file not shown.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright 2014 Google Inc. All rights reserved.
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+
17+
package com.google.samples.apps.iosched.iowear;
18+
19+
import android.app.Activity;
20+
import android.graphics.Typeface;
21+
import android.os.Bundle;
22+
import android.view.View;
23+
import android.widget.TextView;
24+
25+
import com.google.samples.apps.iosched.R;
26+
27+
/**
28+
* A simple activity to show that the process of collection and submission of a session feedback has
29+
* finished. Note that there would be no indication of success or failure of the process.
30+
*/
31+
public class FinishActivity extends Activity {
32+
33+
@Override
34+
protected void onCreate(Bundle savedInstanceState) {
35+
super.onCreate(savedInstanceState);
36+
setContentView(R.layout.activity_finish);
37+
findViewById(R.id.ok).setOnClickListener(new View.OnClickListener() {
38+
@Override
39+
public void onClick(View view) {
40+
finish();
41+
}
42+
});
43+
Typeface typeFace = Typeface.createFromAsset(getAssets(), "RobotoCondensed-Light.ttf");
44+
TextView thanksText = (TextView) findViewById(R.id.thanks_text);
45+
thanksText.setTypeface(typeFace);
46+
}
47+
}

0 commit comments

Comments
 (0)