How to use WebRTC in GAE/J Project - java

I want to start Video Session on a specific date and time between two users of my application.The Application is written in Java on Google App Engine.
I know about the Twilio SMS/Voice Services ,but GAE docs don't mention about how to have Video Calls.
I have looked into TOKBOX API, which seems a good fit, but what i want to know is , is there a better way to have a Scheduled Video Call in Google App Engine. Is there any bundled service i can use.
Thank You

TokBox has created a Starter Kit called ScheduleKit that has about the same purpose. The UI is modeled like a customer support application, and it also emails a reminder for the video chat. The sample code is built in PHP, but it can easily be ported to work with Java. Take a look at the OpenTok Java SDK.

Related

Android App to monitor training status of models from Google AI Platform

I am trying to build an Android App using Java and Android Studio that will monitor the training status of your models on Google Cloud AI Platform and send a notification to a Wearable when the training is done.
I have been looking for APIs I can use but I am a bit confused as I see a lot of people talking about 'generated apis'. So far I think this is what I need to use but I am not sure if it will work with Android.
Any suggestions how can I achieve this? Thanks.
Reviewing the docs, seems that there is no method that could monitor your progress in the training.
https://cloud.google.com/ai-platform/training/docs/reference/rest/v1/projects/predict
Generated API Clients (GAPICs) are the Google’s newest and most powerful APIs are built with gRPC, an open-source RPC framework that grew from technologies developed at Google. https://googleapis.github.io/#generated-api-clients-gapics
These are like client libraries that uses the model of RPC.
Maybe you can try to attach a notification with some other GCP product like Pub/Sub or Cloud Functions but I am not really sure that this could works for you.
Good Luck!

Google App Engine backend service(module) with Java

I am a newbie in Google App Engine. I am trying to create a service (previously called "modules") in Eclipse in Java. I didn't find any resources which shows a step-by-step guide to create a service for app-engine in eclipse or any other IDE. What are the configuration files I need to take care of?
I have tried to find docs on cloud platform and everything says about having front-end. There are articles about micro-service architecture and migrate an existing app. But I don't have an existing app. Every tutorial talks about cloning an hello world app and deploying it which shows hello world with appspot url. But didn't found anything for the service(module).
The service I am trying to create does not have a front-end. It just runs in the background and watch the database and sends emails and notifications to the users based on database change. This is not an API and there isn't any request-response architecture.
How can I achieve this?
Any reference material or samples which can guide me to the right direction?
To set up an App Engine project you could have a look at Romin Irani tutorials which are very good (https://rominirani.com/google-cloud-endpoints-tutorial-part-1-b571ad6c7cd2#.qclm8gyd9).
There is also a free MOOC on Udacity which covers Endpoints with Eclipse: https://www.udacity.com/course/developing-scalable-apps-in-java--ud859
Both cover the building of Endpoints and querying them from front-ends, which I understand is not your goal. But the Udacity course covers Cron jobs and sending of emails (both in Lesson 5), which is what you would use for your needs. See also https://cloud.google.com/appengine/docs/java/config/cron#creating_a_cron_job which is very good Google documentation.
So in a nutshell: I would start by Romin's tutorial to understand Eclipse set-up and main concepts, then follow Udacity MOOC (especially part on Cron and mail) and then dive into the Google doc for the fine tuning of your development.
Last but not least, for sending emails, nowadays, Google advice to use Sengrid. But I think it worth following the Udacity lesson on sending email, even if you switch from native email sending to Sendgrid later on. Again, the doc is complete and clear.
Hope this helps!

Could the Google App Engine be used to drive a desktop application?

I have the impression that the Google App Engine allows an interface for developers to make use of Google's servers for storing custom application data in a highly scalable and cost effective way. Whilst working through their tutorials, it seems like tools are focused on aiding the development of 'web applications'.
I'm looking to take advantage of the GAE in order to serve data for a platform independent desktop application that I'm writing in Java, so my end product will not rest within the confines of a browser. Is this functionality supported by the GAE?
Yea! you can do that.
So basically, you are going to build a native application and use API calls to send/receive data from a server(GAE). I see a good solution will be to
Build your API endpoints using the Endpoints lib https://cloud.google.com/appengine/docs/java/endpoints
Then, depending on your application you can make API calls directly or build a client library

How to connect android app with data store on app-engine

I am working with some friends on an android application and we want to use data store on google app engine.
Can anyone help me find a tutorial on how to create a connection between the android app and the data store, I couldn't find a good one myself.
Thanks.
I suggest you look at a few, quite recent Google services:
Endpoints will help you create an interface between your server code and your client, including generating a client library and doing OATH2 authentication.
Volley is an Android library that makes it easy to perform the requests to the server. (There are a number of 3rd party alternatives to Volley that are also good.)
Mobile Starter Kit is a simple way to get started, doing everything from the client initially, but with the ability to customize the server later.
Take a look at this Google blog post from a few days ago:
http://googlecloudplatform.blogspot.ca/2013/11/connecting-mobile-developers-to-the-cloud-with-google-cloud-endpoints.html
Those are good starting points, but don't assume you should use the recommended Google services. Endpoints for example, will lock you into GAE and it doesn't sound like you need the multi-platform support it offers. You could just create a REST/JSON servlet using one of many libraries.
I reccomand DropBox API.
It is not what you asked, but I guess you didnt start using the Google API because you are looking for a tutorial..
DropBox API has a lot of info and tutorials and it's kinda easy to handle..

AppEngine social application

I started developing my application in AppEngine Java, however I noticed that Facebook has officially discontinued the support for the Java API and the third party API was last updated a year ago.
Does anybody use Java + Social plugins? How has it been going so far? Should I switch to Python, I'd not want to since, I'm not very great with Python and have written significant amounts of code in Java already.
I have been using facebook-java-api on Google App Engine for a year now. It does almost all I need it to do (get friends list, get photos, upload photos). It uses the old REST api but I have not seen a deprecation date for the methods I use.
I also use Apache HTTP Client to do some Graph API calls not available in the REST api (deleting a photo for example).
If you decide to use python, try a look to vikuit social. It runs over Google Appengine , it's open source ( GNU3) and perhaps it's a good base to your development.

Categories