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!!
Related
I am trying to upload an APK/Bundle to Firebase's Test Lab to perform a robo-test/game-loop through scripts and not going on their website. I'm using C# and .sh scripts.
I see this link https://firebase.google.com/docs/test-lab/reference/testing/rest but I'm not sure how to utilize this information.
I am aware of the Google Cloud SDK (gcloud command) but I don't think I can use a CLI to do this since I cannot install anything.
Has anyone does this before? I've searched on the web and can't find someone who has done this.
The specific REST API you want to invoke is
https://firebase.google.com/docs/test-lab/reference/testing/rest/v1/projects.testMatrices/create.
You can use the "Try it!" button to play with the API and see the http request body and response.
Google publishes client libraries for many specific APIs in several languages. I have not used this specific library, but here's the link to the client library that should be usable for .NET development:
https://developers.google.com/api-client-library/dotnet/apis/testing/v1
It is a somewhat complex API. You might want to study the Cloud SDK (gcloud) Python source code for ideas on how to use it. But that would require you to install the Cloud SDK first, which you say you cannot do.
You could also study the Flank kotlin code for examples of how to use the Cloud Testing API (and also the Cloud Tool Results API).
I have spent over 2 days reading over the documentation over at Google Cloud Platform to find out how to hook up my Android app to my Google Cloud Storage.
I don't know if it's just the documentation that's just bad or my lack of understanding but I have really not gotten any closer in implementing this. By contrast I remember it took me a couple of hours implementing Amazon S3 support in an earlier Android project so I'm not a complete idiot.
My requirement:
Upload images to my GCS account
Questions:
Is there a simple "Hello World" type of example for hooking up an Android app to GCS?
I don't need access to users data so does that mean that I don't need OAuth 2.0?
Thanks
You need to use app engine and can use cloud end points to build your application. Detail procedure for creating android app and using app engine as back-end are described here and here
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
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.
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.