├── ic_launcher-web.png ├── res ├── drawable-hdpi │ └── ic_launcher.png ├── drawable-ldpi │ └── ic_launcher.png ├── drawable-mdpi │ └── ic_launcher.png ├── drawable-xhdpi │ └── ic_launcher.png ├── values-sw600dp │ └── dimens.xml ├── values │ ├── dimens.xml │ ├── colors.xml │ ├── attrs.xml │ ├── styles.xml │ └── strings.xml ├── menu │ └── activity_main.xml ├── values-sw720dp-land │ └── dimens.xml ├── values-v14 │ └── styles.xml ├── layout │ ├── fragment_game_map.xml │ ├── fragment_player_inventory.xml │ ├── activity_game.xml │ ├── activity_customize_game.xml │ ├── activity_account_selection.xml │ ├── activity_how_to_play.xml │ ├── fragment_player_navigation.xml │ ├── fragment_pre_game.xml │ ├── fragment_player_actions.xml │ ├── activity_main.xml │ ├── fragment_game_scores.xml │ └── activity_profile.xml └── drawable │ ├── bold_button.xml │ └── game_button.xml ├── project.properties ├── proguard-project.txt ├── proguard-google-api-client.txt ├── src └── com │ └── google │ └── cloud │ └── solutions │ └── cloudadventure │ ├── HowToPlayActivity.java │ ├── util │ ├── Constants.java │ └── CloudEndpointUtils.java │ ├── widget │ ├── OkDialogFragment.java │ └── CustomArrayAdapter.java │ ├── PlayerInventoryFragment.java │ ├── GameMapFragment.java │ ├── world │ └── MapUtils.java │ ├── PlayerNavFragment.java │ ├── MainActivity.java │ ├── PreGameFragment.java │ ├── GameScoresFragment.java │ ├── PlayerActionsFragment.java │ ├── AccountSelectionActivity.java │ ├── ProfileActivity.java │ ├── CustomizeGameActivity.java │ └── GCMIntentService.java ├── AndroidManifest.xml ├── README.md └── LICENSE /ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/solutions-cloud-adventure-sample-android-client/HEAD/ic_launcher-web.png -------------------------------------------------------------------------------- /res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/solutions-cloud-adventure-sample-android-client/HEAD/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/solutions-cloud-adventure-sample-android-client/HEAD/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/solutions-cloud-adventure-sample-android-client/HEAD/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GoogleCloudPlatform/solutions-cloud-adventure-sample-android-client/HEAD/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /res/menu/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | #006090 3 | #53d5f5 4 | #90006090 5 | #9053d5f5 6 | #00000000 7 | -------------------------------------------------------------------------------- /res/values-sw720dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 128dp 8 | 9 | -------------------------------------------------------------------------------- /res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt:proguard-google-api-client.txt 12 | 13 | # Project target. 14 | target=android-17 15 | -------------------------------------------------------------------------------- /res/layout/fragment_game_map.xml: -------------------------------------------------------------------------------- 1 | 7 | 13 | 18 | 19 | -------------------------------------------------------------------------------- /proguard-project.txt: -------------------------------------------------------------------------------- 1 | # To enable ProGuard in your project, edit project.properties 2 | # to define the proguard.config property as described in that file. 3 | # 4 | # Add project specific ProGuard rules here. 5 | # By default, the flags in this file are appended to flags specified 6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt 7 | # You can edit the include path and order by changing the ProGuard 8 | # include property in project.properties. 9 | # 10 | # For more details, see 11 | # http://developer.android.com/guide/developing/tools/proguard.html 12 | 13 | # Add any project specific keep options here: 14 | 15 | # If your project uses WebView with JS, uncomment the following 16 | # and specify the fully qualified class name to the JavaScript interface 17 | # class: 18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 19 | # public *; 20 | #} 21 | -------------------------------------------------------------------------------- /proguard-google-api-client.txt: -------------------------------------------------------------------------------- 1 | # ProGuard Configuration file 2 | # 3 | # See http://proguard.sourceforge.net/index.html#manual/usage.html 4 | 5 | # Needed to keep generic types and @Key annotations accessed via reflection 6 | 7 | -keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault 8 | 9 | -keepclassmembers class * { 10 | @com.google.api.client.util.Key ; 11 | } 12 | 13 | # Needed by Guava 14 | # See https://groups.google.com/forum/#!topic/guava-discuss/YCZzeCiIVoI 15 | 16 | -dontwarn sun.misc.Unsafe 17 | -dontwarn com.google.common.collect.MinMaxPriorityQueue 18 | 19 | # Needed by google-http-client-android when linking against an older platform version 20 | 21 | -dontwarn com.google.api.client.extensions.android.** 22 | 23 | # Needed by google-api-client-android when linking against an older platform version 24 | 25 | -dontwarn com.google.api.client.googleapis.extensions.android.** 26 | -------------------------------------------------------------------------------- /src/com/google/cloud/solutions/cloudadventure/HowToPlayActivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2013 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.cloud.solutions.cloudadventure; 18 | 19 | import android.app.Activity; 20 | import android.os.Bundle; 21 | import android.view.View; 22 | import android.view.Window; 23 | 24 | /** 25 | * Activity for the screen which shows static "About" page of the application. 26 | * 27 | */ 28 | public class HowToPlayActivity extends Activity { 29 | 30 | @Override 31 | protected void onCreate(Bundle savedInstanceState) { 32 | super.onCreate(savedInstanceState); 33 | 34 | this.requestWindowFeature(Window.FEATURE_NO_TITLE); 35 | setContentView(R.layout.activity_how_to_play); 36 | } 37 | 38 | public void returnHome(View view) { 39 | finish(); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /res/drawable/bold_button.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 11 | 12 | 17 | 18 | 19 | 20 | 22 | 27 | 28 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /res/layout/fragment_player_inventory.xml: -------------------------------------------------------------------------------- 1 | 6 | 12 |