Is there a way to use Google Image Search API from Android application?
Official page (http://code.google.com/apis/imagesearch/) talks about using the API from a website. I'd like to use it from android application. I'd like to get URL of a first image for the specified keyword which will user enter in my applicaton. Thanks!
Update:
this api is no longer valid and has been replaced with a custom search engine that is probably not what you are looking for
I can't see any reason you can't use the normal REST/JSON interface Google has documented (intended for Flash webapps but seems legal to use for other non-Javascript purposes too).
According to Google:
The Google Image Search JSON interface, and this guide, are provided for Flash developers, and all other developers who need to access Image Search from other Non-JavaScript environments.
Seems like Android would qualify, assuming you meet all the other TOS requirements like attribution, user-generated queries, and so on.
Related
I need to get some work done with the Google Drive API for Android. My aim is to control via the API the current slide of a presentation, so on a computer a presentation is opened in "present"-View. Is there a way to get the user's opened presentation and change then with the API the slide?
Some research didn't help me, so maybe you have some information?
Maybe it's doable if you've written your own presentation app that utilizes Drive somehow. If you mean the default presentation function when viewing slides, then no, the Drive SDK has no control over that. Also, if you're trying to utilize the Android API in hopes it'd be some sort of remote, I suggest you look into Google Cast instead.
The Drive APIs provide file management, rather than direct access to the viewing apps.
As far as I'm aware there isn't an API that will allow you to access a user's Slides viewing state across devices.
the following link gives me speech in Arabic by using google translate server side api , some website descripe that using this is illegal is this true or not ? because I want to added it to my android application.
P.S : android os does not support Arabic speech
http://translate.google.com/translate_tts?tl=ar&q=%D9%85%D8%B1%D8%AD%D8%A8%D8%A7
http://code.tutsplus.com/tutorials/use-text-to-speech-on-android-to-read-out-incoming-messages--cms-22524
Please Google "text to speech android tutorial" you'll get many.
Edit: Sorry , I understood you question wrong.
I believe it is. But if you are really concerned, please contact Google or ask on their forums, I dont think you'll get an answer to that here. Good luck!
As described in the Terms of Service in Google Translate API:
1. Prohibitions
You will not knowingly use the API to create, train, or improve (directly or
indirectly) a substantially similar product or service, including any other machine translation engine.
That means, for my understanding, that if You plan something like this, it is not allowed if it is Your own implementation of a translate engine. For example, You are calling Your app "Hussamabd´s great Translation Engine" and this app is really for translate words into other languages, then it is not allowed. BUT, there is another part in the API:
Introduction
This document is intended for developers who want to write applications that can interact with the Google Translate API. Google Translate is a tool that automatically translates text from one language to another language (e.g. French to English). You can use the Google Translate API to programmatically translate text in your webpages or apps.
This means to me, if You create an app, which intention is not to translate words, but You need this translation for any other reason, for example making Your app in every language, it will be ok.
Also, You have to pay some fees for using this API. But to get really sure, You should contact Google or a lawyer, because I am not and I can´t give You any law confirmed statement!
How can I display a twitter feed In Android programmatically?
Please be more specific of what you want to do (maybe what your motivation is), what you know/tried already and where exactly you are stuck. It makes answering your questions easier.
Having said that, I see two main aspects of what your app should do:
Fetch the tweets for a given feed
Displaying them
I guess how building Android apps and user interfaces works is something you already know to some extend (if not this is a separate question).
So what is missing is a way to communicate with the twitter server and retrieve the tweets. For tasks like that (not only twitter) there are usually APIs defined and you can find libraries to do most of the hard work for you.
In this case a web search for "twitter api android" leads you to twitter's list of available Twitter libraries, sorted by language. Android programming is usually done in Java. In the list you find three Java libraries to choose from, with one explicitly mentioned as Android compatible: twitter4j (under Apache license).
Have fun playing around with that one. The section "code examples" might be worth a look as well.
Edit: Twitter API ME is also android compatible (and GPL / LGPL licensed). And there is TwAPIme, an app demonstrating its features, with source code available (for download link and license see end of description in Google Play).
I've been planning to build an Android application built on Foursquare APIs. I went to the foursquare developer site and tried out the android oauth example. Also I noticed in the showcase several fancy apps such as Instgram, LocalMind. I wonder where (websites like github) I can find their source codes so that I can have a taste of how to develop a real foursquare app.
I am not sure there is a direct answer to your question.. With the exception of code snippets found by google code search or regular google search, do not expect to find full source code for integration with APIs..
As far as oauth goes, there are many examples with a simple google search on how to make it work (note that you have the Venues API that does not requires the oauth process)
As far as source code goes, you should check out this page it should have links to many examples. (got here after two clicks from that page..)
From my experience, we are developing a foursquare-enabled app with a custom server software - in short, our Android app will access our server, which will access foursquare (if required) and get data and pass it to our client (Android/iPhone/whatever).
Bottom line - eventually, you really should learn the API yourself, know the different endpoints and the returned data structures, experiment with different search results and then, if you wonder on what is the right way to get specific data or if you think you are doing something right and getting the wrong data, this is probably the place to ask about it.
The API Explorer should help a lot in doing that.
I am thinking of capturing some text from documents using my android phone and was looking for an ideal OCR app on android. I just happened to read today that Google introduced OCR for scanning documents that can be edited in Google Docs. I was wondering if I could use the OCR for things other than converting the documents to Google Docs - say, like taking a picture of a certificate and capturing the names and dates of birth of the candidates or taking a photo of a license plate and be able to get the info as text that can be stored.
If anyone has an idea of how to achieve this on Android using Google's OCR, that would be great to know. I did read about Tesseract/Tesjeract but it seems very difficult to implement what I want using it - maybe I didnt fully understand how to use it through Java. Here's the link to the new app that uses OCR to scan documents - Google Docs on Android
We have tried Google Docs API a wile ago, but it is very weak in terms of accuracy. Looks like it is based on some outdated version of tesseract. I suppose you would get more accuracy if you try tesseract. However, you will need to manage special preprocessing of images taken by camera since they introduce additional challenges. Google Docs API does not have that.
On running Tesseract on Android look here:
Using tesseract on android
Commertial alternative to tesseract for OCR on mobile phone:
http://www.abbyy.com/mobileocr/
However, if you are looking not into just capturing text, but also exptracting data, then you may need additional technology to parse text output. That means writing even more code. Or there is alternative to license existing commertial Data Capture API from ABBYY. That was already discussed here:
Recognise text in certain position using the Iphone camera
Disclaimer: I work for ABBYY
You can use Google Docs (now called Google Drive) to OCR an image by uploading the image to Google Drive. Later you can pull this Google Document back as a text/rtf/doc/html file. This data now - you may use however you like in your app. This can be achieved directly without user intervention using Google Drive APIs. Here are some Google App API references:
To upload with OCR: see
Fail to upload a image file into Google Doc via java api with ?convert=true
To download a file from Google Drive:
https://developers.google.com/google-apps/documents-list/#downloading_documents_and_files
https://docs.google.com/feeds/download/documents/Export?docID=__INSERT-ID__&exportFormat=txt&format=txt
Beware there should be a quota in place to use the OCR service.