status: inactive

This project is no longer actively developed or maintained.

For new work on this check out MobileShoppingAssistant

Mobile Shopping Assistant Android Client

Copyright

Copyright 2013 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Disclaimer

This sample application is not an official Google product.

Supported Platform and Versions

This sample source code and project is designed to work with Eclipse. It was tested with Eclipse 3.8. The resulted application runs on Android physical devices with Google API and was tested on devices with API level 16 and 17.

Overview

Mobile Shopping Assistant Android Client demonstrates how to build an Android native application that is powered by Google Cloud Platform and uses Google Cloud Endpoints to communicate with a mobile backend running on Google App Engine.

Prerequisite

  1. Eclipse with Google Plugin for Eclipse and Android Development Tools with Google API Level 16 or higher installed.

Developer Guide using Eclipse

  1. Follow the steps in README.md for Mobile Shopping Assistant - Java to configure and deploy the mobile backend needed for this client app.

  2. Select MobileAssistant-AppEngine project in "Project Explorer" and from Google context menu select Generate Cloud Endpoint client library. This should create endpoint-libs folder in MobileAssistant project. If it didn't then copy endpoints-libs from MobileAssistant-AppEngine project to MobileAssistant project.

  3. Open MobileAssistant/src/com/google/sample/mobileassistant/SignInActivity.java and update AUDIENCE variable with your WEB_CLIENT_ID.

  4. Open MobileAssistant/src/com/google/sample/mobileassistant/GCMIntentService.java and update GCM_PROJECT_ID variable with your Google Cloud Console Project Id.

  5. Add Google Play Services by following the Setup Google Play Services SDK section from Android documentation. Make sure that google-play-services.lib is referenced by MobileAsistant project (select MobileAssistatn project in Project Explorer, choose Properties from the context menu and select Android node in the left panel. If google-play-services.lib is not listed as a library then click Add and choose google-play-services.lib and click OK).

  6. Connect your Android device with USB debugging enabled, select MobileAssistant project and run it.