Giter Site home page Giter Site logo

solutions-mobile-backend-starter-android-client's Introduction

status: inactive

This project is no longer actively developed or maintained.

For new work on this check out Mobile Shopping Assistant or Cloud Endpoints.

solutions-mobile-backend-starter-android-client

Warning: No Longer Supported

The mobile backend starter sample application is no longer supported. If you are looking for an easy way to connect your mobile app to Google Cloud Platform, we recommend you check out Cloud Endpoints. If you are already using the mobile backend starter your code will continue to work and no modifications are necessary at this time.

Description

This project is Android native client sample for Mobile Backend Starter.

Disclaimer: This is not an official Google Product.

Products

Language

APIs

Setup Instructions

The instruction below lists just some key steps. For detailed setup instructions and documentation visit [Google App Engine developer site] (https://developers.google.com/cloud/samples/mbs).

  1. Make sure you have Android SDK with Google APIs level 15 or above installed.

  2. Import the project into Eclipse.

  3. Make sure you have Google APIs selected in your project properties. This option is under Android in Project Build Target.

  4. Update the value of PROJECT_ID in src/com/google/cloud/backend/android/Consts.java to the app_id of your deployed Mobile Backend 5. Make sure that your Mobile Backend is configured with OPEN mode. Also update your PROJECT_NUMBER and WEB_CLIENT_ID with the values from your console project.

  5. Update the value of DEFAULT_ROOT_URL in endpoint-libs/libmobilebackend-v1/mobilebackend/mobilebackend-v1-generated-source/Mobilebackend.java to your own project.

  6. Run the application.

solutions-mobile-backend-starter-android-client's People

Contributors

go-zz-ogle-zz-clo-zz-udsolu-zz-tions avatar johndmulhausen avatar lesv avatar thagikura avatar yulia-witaschek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solutions-mobile-backend-starter-android-client's Issues

Does not work

I couldnt tell you what the problem is with this thing, whether its the code itself or the Google backend. I do know that the version number in the meta file has to be changed in order to get it to launch. I also had to import the google play service library into my workspace to reference it to build. Ive changed out all the information in the const.java file that I can (but there is no reference in any of the documentation of where to get the Web Client ID). But, with what I was able to get running the app give me a GoogleAuthException when it finally runs.

No more SocialTalkActivity.java?

When downloading the latest master branch , there is no more SocialTalkActivity.java activity. Is this intentional?

There is still ther following statement in the AndroidManifest.xml:

"You can replace the android:name attribute above with one of the the following
lines to choose a sample:
android:name="com.google.cloud.backend.sample.guestbook.GuestbookActivity"
android:name="com.google.cloud.backend.sample.socialtalk.SocialTalkActivity"

Sending Broadcast messages from Mobile Backend settings page, generates IllegalArgumentException.

Deployed the backend localy, when using Mobile Backend settings page to send Broadcast message I am getting:

java.lang.IllegalArgumentException: No such topic: defaultTopic
at com.google.appengine.api.prospectivesearch.dev.LocalSearchService.getTopicSubMapOrFail(LocalSearchService.java:522)
at com.google.appengine.api.prospectivesearch.dev.LocalSearchService.match(LocalSearchService.java:356)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.callInternal(ApiProxyLocalImpl.java:521)
at com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:475)
at com.google.appengine.tools.development.ApiProxyLocalImpl$AsyncApiCall.call(ApiProxyLocalImpl.java:452)
at java.util.concurrent.Executors$PrivilegedCallable$1.run(Executors.java:493)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.concurrent.Executors$PrivilegedCallable.call(Executors.java:490)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)

Can't run project

I put it in a new workspace and have the constants file setup. I try to run the project and I get the following error in the console:
Could not find CloudBackendAndroidClient.apk!

After cleaning it ends up deleting everything in the gen folder and not replacing it.

Any ideas?

Unable to comiple "solutions-mobile-backend-starter-android-client" app

Hello Friends,

I am not able to compile this android project, following classes are not get importing

import com.google.cloud.backend.android.mobilebackend.Mobilebackend;
import com.google.cloud.backend.android.mobilebackend.model.EntityDto;
import com.google.cloud.backend.android.mobilebackend.model.EntityListDto;
import com.google.cloud.backend.android.mobilebackend.model.QueryDto;

I am following this link..

http://android-developers.blogspot.in/2013/06/bootstrap-your-apps-cloud-services-with.html

Please help me.. :)

Thanks :)

Could not find CloudBackendAndroidClient.apk

While sending a message using this app, We're getting the following error msg
"com.google.api.client.googleapis.json.GoogleJsonResponseException: 503 Service Unavailable"

PN - It was working fine yesterday.

Sometimes, we are also getting the following exception while launching the application.
"java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.cloud.backend.android/com.google.cloud.backend.android.sample.guestbook.GuestbookActivity}: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf"

Can you please help us to resolve these two issues.

Thanks

Unable to set CloudEntity KindNames prefixed by [public] or [private] as per documentation

When constructing a CloudEntity on the Android client side, the Kind Name is passed as a String to the constructor e.g..

new CloudEntity("myKindName")

However looking at the source it is clear the kindnames are restricted to those parsable via Regex "\w" i.e. alphanumerics and the underscore.

public CloudEntity(String kindName) {
if (kindName == null || !kindName.matches("\w+")) {
throw new IllegalArgumentException("Illegal kind name: " + kindName);
}
this.kindName = kindName;
}

This presents a problem because the documentation states that the KindName can be prefixed by Strings such as "[public]" or "[private]" as a means of access control - see:

https://cloud.google.com/developers/articles/mobile-backend-starter-api-reference#acfce

And indeed the code for the Backend does show such prefixes being used for access control.

So, it appears that it is impossible to create a Cloud Entity to make use of this facility. This must be a bug specifically over-constrained validation check in the CloudEntity constructor. FYi I did ask a stackoverflow question about this.

http://stackoverflow.com/questions/23228241/access-scope-using-kind-name-on-google-cloud-android-mobile-backend-starter

Completely unable to get this to import in to Android Studio

I keep gettting the error

Project CloudBackendAndroidClient:/Users/myname/Downloads/solutions-mobile-backend-starter-android-client-master/project.properties:
Library reference ../google-play-services_lib could not be found
Path is /Users/myname/Downloads/solutions-mobile-backend-starter-android-client-master/../google-play-services_lib which resolves to /Users/myname/Downloads/google-play-services_lib

Any ideas?

Cannot get the app work with local back-end

LOCAL_ANDROID_RUN is defined in two places in the Android Client code. I changed both constants to true and run teh client in the emulator. It still seems to connect to AppEngine instance not to the running local back-end.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.