where are the Google app engine endpoints - java

Im developing a simple app for android. I just created a few entity's, nothing but a poem filled in them by a string. Ive been using Google app engine and it works in my browser just fine, deployed my little project. I want to use retrofit lib to grab the list of entity's i made in probably a simple for loop to an object class i make for them, however how do I define my endpoints! I cant seem to find them. new at this networking stuff but i'm trying very hard.
https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae
Looks like I need to actually create an app linked to the Google a engine.
Is this the only way? What if i had a team who needed to access the end points on an iphone app/

If you are having an android app which was not created using appengine connected app option, then you can still create the app engine code for it by right clicking and choosing the options Google->Generate App Engine Backend . After modifying your backend code, you can generate the client library for this backend by right clicking and choosing option Google->Generate Cloud Endpoint Client Library ,then deploy it to app engine and start accessing the endpoints from the android app.
If you are already having an android app and app engine code which are not yet connected, then you need to modify your backend code to include endpoint methods by following this tictactoe sample backend with endpoints . After doing this, you need to generate the android client lib using command line and import it to your android app to start accessing the endpoints. Follow this tictactoe sample android app to understand how to call endpoints and get and send data to the same.
In the future if you want to access the same endpoints from an iOS app, you wont need any modification in your backend with cloud endpoints and just need to create a client lib for iOS by following the official documentation. You can see the sample tictactoe app for iOS to understand how to handle endpoints in iOS

Related

Android connecting to Java Server

I'm new in android studio I'd like to know how can I make requests to a server.
I wanted that in my Android App I sign up an account and my server stores all the users, something simple just to start. The next step that i want is like passing some strings or objects to other users.
How can I do that?
Is recommended to do my Server in Java/Python?
Thank you
I would suggest you first google your queries, since there are many such repositories on GitHub.
First Link when I searched Android CRUD was this
https://github.com/budasuyasa/simple-android-crud
As for Java or Python, all depends on your skill set, what I would recommend is using Spring boot for backend services but you can also use Flask to create Rest services in Python.
Have fun coding

How is it possible to know if an application is using some Google Play Services API’s e.g. Maps, Location Services, Google+, Ads, Drive etc

Also if it’s known that some play service API is used, how to test it to know if it’s working correctly. Is it possible to use some instrumentation techniques (Junit,Robotium etc.) to test play services API’s .
Note that the application is installed in phone from Android Market and we don’t have access to the source code of that application.
I am not sure if it’s possible or not a but I am trying to find out the way but not able to succeed as of now.
I found that we can parse AndroidManifest.xml of application to get the meta-data tag defining google play services lib but how to know about particular Service Api usage in that application.
I can think of about getting details in log cat of the application if play service produce the specific usage logs . But the problem is that that logs would be generated only at particular instance in the application and we may not aware of that instance.
Another approach I can think about if somehow we can parse network data using some android API or third-party API.
If you decompile source code and code is minified (secured), I think the only way is to try to "sniff" http traffic in/out from Android phone with for example Wireshark software

How to access SQL database with Web App and Android App

What is the best way to have a SQL database that can both be accessed by an android device via java code and by a web app via php code?
In my mind I imagined a MySQL database somewhere on the cloud that is accessed in all the normal ways by the web app using mysqli_connect and then somehow the same database calls are made in Java inside the android app.
But after some research it appears this may not be the way to do it. What is the way to do this correctly?
EDIT: It was suggested my question was too broad. What I want then is a database of some basic financial information which is stored on the cloud which is then able to be accessed via a web app written in the LAMP stack and via an android app (with java code).
It is a really simple problem but I am not sure what the best practice for such a problem is in android (I come from a web dev background)
The standard way to access a database for mobile application is different than a normal web page/application.
Mobile devices should never run queries in the database; What you do is create a web service that does all the queries in the database and then sends back HTTP responses in xml, JSON format to the mobile device for consumption.
At the same time you can create a web client that interacts with the web service the same way your mobile app does. This way if you get erroneous data you can debug the web service without having to recompile the code in the mobile app.
Do a Google search for restful web service

calendar push notification to java app engine backend servlet

I want to get push notification from google calendar into my java app engine backend servlet. My question is, do I need to verify my java app engine backend servlet (which is hosted on google app engine server)?
Thanks.
Yes, you need to verify the domain even if it is hosted by Google App Engine. Remember to always use HTTPS otherwise you won't be able to do it. To verify the easiest way is to create a static HTML file that points to the same file name in the root of the application.
Apparently it can't and I tried using HTML file and meta tag method without any luck to verify my app engine backend site.

Android Application communicating with GWT Application

I am developing a mobile application for Android. The application will act as a front-end for another GWT-application I have running on appspot.com. To communicate between the two, I need to send data from the client (Android Applcation) to the server (GWT-application), which must then be processed and data sent back to the client. What would be the best way to accomplish this? By "best" I mean simple enough for me to understand and implement, but also in line with good practice.
Any advice is greatly appreciated, as I am very new to GWT and can not find a lot of support on the internet.
Thanks!
I don't have much experience with Android application development but I guess with "sending data to the GWT application" you mean sending data to your App Engine backend/server.
In the end GWT is just compiled to plain Javascript and runs in the browser. So I don't see how you want to communicate with the GWT part of your app.
However you can send data from your Android app with the backend running on App Engine and eventually the data can be displayed in your GWT application accessed by any browser (mobile, desktop, etc).
For that I think you can either go one of two routes:
Create an HTTPRequest from your Android app to the backend using JSON or XML as a data protocol
Use RequestFactory (internally uses JSON) in your Android app (There is a special Requestfactory_client.jar package for that. See here for more details).

Categories