Create/Enable App Engine Application for existing project? - android

How do you create/enable a Google App Engine Application in an existing Google APIs Console Project? For instance, I have an existing Project because I use Android Maps in my App. However, I'd like to add to that a simple web app (maybe a website) but I don't know how to get about this. All I know is how to create a new google app engine app which automatically creates a new project.

Yes, for some strange reason, you can create a GAE project and then generate a new, connected, API console project - but not the other way around. Nor can you arbitrarily connect console projects and GAE projects.
On the other hand, you don't have to. As with the old style API projects (for which their was no concept of connecting an API and GAE project), you can use a GAE project with an API console project that are not formally connected. And your API project can be used with multiple client projects, e.g. your Android and your web app. See 'API's and auth', 'registered apps', and then register a new app.
Actually, I'm not completely certain whether you are asking about formally connecting GAE to API projects, or just about having multiple gae project informally used a single API project, but hopefully that helps either way.

Related

Creating an App Engine instance for Mobile Cloud Backend

Relatively new to the android dev world. I downloaded the mobile backend starter project and got everything working; modified it for my needs and it's still working. This is all in Eclipse.
I'm in the process of connecting to a Cloud SQL instance and the preferred way seems to be to enable Cloud SQL in the App Engine project.
I don't have an App Engine project, and when I create one (setting the configuration for my application etc.), I got enormous amounts of errors.
Before I troubleshoot them, I wanted to ask:
Can I create an App Engine Project instance for an existing android client app?
If so, will the app engine project instance correctly reference my app engine instance online?
Thank you for any detailed reponses.
Here are the instructions for extending the gae mobile backend
https://developers.google.com/cloud/samples/mbs/extend_backend
That should get you going in the right direction.

Generate Cloud End Point Client Library gives me ReadTimeOutException

I'm working in Google App Engine and Android Project, using Google Cloud Endpoints,
then when I'm trying to create a new Entity class in App Engine Backend Project,
it freeze when it tries generate Cloud Endpoints Client Library giving me a ReadTimeOutException.
Is a temporary error? I'm seeing that there are a lot problems with Google App Engine, is a technology in which we can trust??
The only way to make work this, it has been using the Google App Engine SDK version 1.7.7.1 (even the version 1.9.3 gives me an error). Good luck guys!!

Google Mobile Backend Starter: Extending the Mobile Backend

In Google's docs on "Extending the Mobile Backend", there is supposed to be an explanation on how to customize the Google App Engine app that is provided with the Mobile Backend Starter. The approach is to modify its sourcecode and deploy that to Google App Engine.
However, the text refers to the sourcecode of the sample Android client, not of the Google App Engine app, which I guess is just wrong. In the README.md of the sample Android client, though, there is an unused footnote pointing to https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java, which seems to be the correct sourcecode.
My questions now are:
Who can I tell that there is a mistake in the docs?
Does https://github.com/GoogleCloudPlatform/solutions-mobile-backend-starter-java really reflect the latest version of the mobile backend that gets deployed when I hit the button as described in the docs on Deploy Backend?
When I modify the backend, I effectively fork the sourcecode. Will future developments be reflected in Github so I can merge them into my modified app?
https://cloud.google.com/cloud/samples/mbs/extend_backend
(SO THERE IS NO WAY.... as the "Extending the Mobile Backend"... "Setup Instructions" tells you to use "Open Android SDK Manager and choose Extras > Google Cloud Messaging for Android Library" -> no longer available.
next is to use: https://cloud.google.com/endpoints/

how to include client libraries in 2nd android application generated by GAE Backend for the 1st android app

I have successfully developed an android application with Google App Engine as the Backend. Now I want to develop 2nd android application and want to connect it to the same App Engine of the 1st App. In short. 2 android applications with same App Engine at the backend hence common datastore.
Could not find the detailed and satisfactory answer, please provide the answer in detail. Thanks
I am assuming that the first Android application connects to the App Engine backend using a REST APIo r in general a Web Service. That is the recommended route and you should be able to use the same API in your second Android Application too !
Do give more details if this is not what you were looking for.
Surprisingly, the Eclipse plug-in doesn't really support this - it will only automatically copy the generated client files into a single project.
Fortunately, there are some (manual) solutions that are discussed here:
How to move Cloud Endpoints generated sources.jar library into Android project

Creating Photosharing app on Android

I want to develop android application like Photofeed application as mentioned on Google cloud sample link or like Instagram. For that I need App Engine SDK but i am not getting how i will achieve this functionality. In my app, i want exact functionalities (uploading image, like and comment on that photo) like Photofeed app shown on that link. For that I'll have to use Google Cloud Storage but Photofeed is for Webapp and i want to develop Mobile app. For that i also referred Mobile back-end starter but not getting much idea. Its quite confusing. Please guide me to develop this application. Is it possible to use Photofeed sample java classes in my android application?
Thank you.
You will need to install Google Plugin for Eclipse and make Android Connected App Engine Application. This is a good starting point.
You can make similar app or any app that connects to GAE as backend in 4 steps as follows:
Make your entity classes: You can use JPA, JDO or Objectify to access the Data Store or use its API directly as done in the sample NoSQL classes (The easiest way is Objectify IMO). Or you can use Google Cloud SQL as done in the SQL classes of the sample ( I never used that in a project so I do not know if there is another way beside the API).
Make REST Endpoints: You can use Google Cloud Endpoints to make REST API for your own app. This will allow you to develop Android, iOS and JavaScript clients in unified way. If needed you can secure it using OAuth too.
Generate Client Libraries: If you are using Eclipse, Google Plugin will provide that in the context menu of the App Engine project so you simply right click and click Generate Client Libraries. It can be done using command line too.
Consume the endpoints in the Android app: This is done really simple as explained here.
Note : You will need a Servlet to upload photos to Google Cloud Storage. You can make use of the one in the sample.

Categories

Resources