Translate SMS Body in Android - java

I am developing an application in which I want to translate an SMS body into Hindi/Gujarati from English.
Can anyone provide a free API for that?

Microsoft (Bing Translator) offers a free language translator (within limits) that you may want to use.
Below is a link to the Java wrapper that can be integrated into your Android application:
https://code.google.com/p/microsoft-translator-java-api/
However, as an alternative if you decide to go along the paid route, you can consider Google Translate's service:
https://developers.google.com/translate/v2/getting_started#background-concepts

Related

Easiet way to access a currency exchange rate in Android

I started my journey with Android and I would like to make a simple feature that would convert one currency to another. I don't know anything about web services really, I saw some tutorials but none for Android Studio for this.
Could someone explain how this could be done? Or give a link to a beginner-friendly tutorial that would hep understand how to perform such an operation?
You can use this API provided by google codes.
It fetches and uses bank web-services to fetch the rate dynamically for java-based application.

How to create a server for Android app which receive and transmit data to my application without socket?

I want to create a java server application which receives data from an Android client and also transmit notification to client. Actually i did not know much about server apps. I am quite familiar with servlets and mysql, is there any tutorials based on these??
So any suggestion how to build it or any tutorials for it?? please help me!
What you are probably looking for is Google App Engine a SaaS by Google. While there are many alternatives this is probably the best route you can take for implementing a Java based backend. Follow these tutorials* and you'll be good to go. Keep in mind the GAE is a bit complicated and will take some time to get on your feet.
https://cloud.google.com/appengine/docs/java
More tutorials on GAE can be found by a nice google search!

sending free messages to employee phones from Java application

We would like to be able to send instant messages to our employees from a Java application. Most of them have a phone with a data plan. Is there a free and easy way to do this?
I investigated using whatsapp, which most employees have installed, but it has no official API and it seems that a recent change also disabled the possibility to use the unofficial API's.
Perhaps there are whatsapp alternatives that provide an API?
Or is the only way to use mail or create my own android + iPhone apps to do this?
You can use Tropo API to send java messages.
Further details can be found below:-
https://www.tropo.com/2011/05/sending-outbound-sms-with-java/
You can use mysms.com API to send free messages. https://api.mysms.com
why dont you try Whatsapp Web Automated with Selenium framework
The following links can be helpfull:
https://github.com/sigalor/whatsapp-web-reveng
https://github.com/mukulhase/WebWhatsapp-Wrapper
Not all companies provide APIs, whatsapp doesnt want its customers to be bombarded with hoards of messages, that's why they arent giving any APIs
But the above links are a few work arounds. Proceed with caution.. If you send unusually high amount of messages you may get blocked

Asynchronous android GAE communication using restlet

I would like to repeatedly (every second) ask for the message (object or value) to GAE (if android client did not create or change something there) from another android device. I need to check it pretty fast, but I know that it happens aproximately once in hour.
I use restlet and I don't want to create new thread and poll by get from this thread every second, because this is very battery consuming. I also don't want to use C2DM.
Is it somehow possible to do this? I have found something about NIO nonblocking http connectors here:
http://restlet-code.1609877.n2.nabble.com/Push-data-from-server-using-a-live-HTTP-connection-td2906563.html
But here is described only the client side and I also don't know if this solution would even be possible to use on GAE and how. Does anyone know more about this approach?
Thank you very much in advance.
As the author of uniqush, I created an entry in the FAQ page specific to this question.
Can I use uniqush on Google App Engine?
Yes and no.
If you just want to use GCM on Google App Engine, then there are some code in uniqush-push which you can directly use.
However, because Google App Engine does not support socket connection, there is no way to use APNS. In another work, if you want to setup a server on Google App Engine, you cannot push any notification to iOS devices no matter what software/library you are using.
I did considered to port uniqush to Google App Engine. But because of this fact, I think it may be better to port it until Google let us use client-side socket connections, or provide some way to connect to APNS server.
Again, if you are considering to use Google App Engine as a server for your App, please be aware that you will not be able to push notification to any iOS device right now. If this fact does not bother you, then do it.
Personally, I recommend you to run a server with full control. It is not expensive nowadays. Amazon EC2 or similar cloud products may be a good choice to run uniqush.
As I recommended above, using a (virtual) server with full control would be a better choice if you want to support more platforms besides Android.
If there is any other question, please feel free to reply.
For being future proof I would suggest you have a single push notification service for both kind of devices. You can either build on your own, or leverage something like uniqush or this
Also the Urban Airship's SDK would be a good option to look at, more details here
this is similar to Urban Airship but only a fraction of the cost. The API allows you to send a C2DM message to a user via a call. After you implement the broadcast reciever, when a user installs the app they are prompted to accept the message. If they accept a token is sent to the C2DM server identifying the user. This token is then used to send them a message via the C2DM platform. The Zend PHP Framework has built in functions for this but if reliability is a concern go with an external provider like Remote Queries or Urban Airship

Automatical translation in desktop application

I run a chat service where people of all nationalities are welcome. The problem is that they can't communicate. I don't have enough users to create different chat rooms for each language.
I'd like to provide an automatical real-time translation integrated in the chat, which is programmed in plain Java.
I don't want to hack google translate or do something like that.
What are my options?
There are no options unless paying a lot of money for this service.
There is a Java client API for Google Translate (but it is an unofficial one). You can find it at http://code.google.com/p/google-api-translate-java/

Categories

Resources