-
Yury
java android google-api google-translate google-api-java-client
How can I use Google Translate API and translate text in an android app? I tried this:http://code.google.com/p/google-api-translate-java/but it doesn’t work. I have an Api Key too. My code is(according to official example):GoogleAPI.setHttpReferrer(“http://mysite.com”);GoogleAPI.setKey(“My Key”);String translatedText = Translate.DEFAULT.execute(“Bonjour le monde”, Language.FRENCH, Language.ENGLISH);I put this code in my main Activity but I get an error: “Unhandled exception type GoogleAPIExcepti
-
Hitesh
android listview arraylist google-api-java-client
I am using Arraylist with definitionArrayList<HashMap<String, String>> placesListItems = new ArrayList<HashMap<String,String>>();Using following code to populate the Arraylistfor (Place p : placelist.getPlaces()) {HashMap<String, String> map = new HashMap<String, String>();// Place reference won’t display in listview – it will be hidden// Place reference is used to get “place full details”map.put(KEY_REFERENCE, p.getReference());// Place namemap.put(KEY_NAME,
-
Sam Jackson
android json parsing google-api-java-client google-shopping-api
I’m trying to send a request to the Google-Shopping API with the following static method which I think is working:public static String GET_TITLE(String url) throws JSONException {InputStream is = null;String result = “”;JSONObject jArray = null;// http posttry {HttpClient httpclient = new DefaultHttpClient();HttpPost httppost = new HttpPost(url);HttpResponse response = httpclient.execute(httppost);HttpEntity entity = response.getEntity();is = entity.getContent();} catch(Exception e) {Log.e(“log_
-
idan
android youtube-api google-api-java-client
My target is to use youtube instead of server, to store videos. I need youtube provide the following function 1. upload video and get his url . 2. search for video that match developer tag. to do so, i find here those postsUsing YouTube Data Api in AndroidCreating a playlist with Youtube DATA API on Androidafter i read those posts i install eclipse youtube data plug in and downloaded those file https://code.google.com/p/gdata-java-client/downloads/detail?name=gdata-samples.java-1.47.1.zip&
-
Hitesh
android google-api-java-client
I am trying to use Google Map APIs for Gingerbread This is what I gotImport:import com.google.api.client.http.GenericUrl; import com.google.api.client.http.HttpHeaders; import com.google.api.client.http.HttpRequest; import com.google.api.client.http.HttpRequestFactory; import com.google.api.client.http.HttpRequestInitializer; import com.google.api.client.http.HttpTransport; import com.google.api.client.http.javanet.NetHttpTransport; //import com.google.api.client.http.json.JsonHttpParser; import
-
Vivek Kalkur
java android google-api google-api-java-client
I am trying to build a simple OAuth Client for Android in Eclipse. I followed the instructions from code.google.com/p/google-api-java-client/wiki/SetupDownloaded the zip file and added google-api-client-1.6.0-beta.jar to my build path in Eclipse. All the 13 dependencies now show up under Referenced Libraries as shown below.The code is simple. I have just done the following changes to the default Activity.public class Testing1Activity extends Activity { /** Called when the activity is first creat
-
Aegis
android google google-calendar google-api-java-client android-calendar
Hi I’m trying to add events to a calender with the google-api-java-client and calender API service for a android app. I used the calendersample project created by Yaniv Inbar as a template which works great. When inserting 1 event to the selected calender works perfectly but when i try to batch add events to the calendar get an Illegal state exception. in the example you could batch add calenders like this. whole class can be found here AsyncBatchInsertCalendars.java@Override protected void doIn
-
anish
google-app-engine google-api-java-client
While deploying the MediaStroe application from the provided google SDK it trows the below stacktraceUncaught exception from servlet javax.servlet.UnavailableException: Servlet class com.google.appengine.demos.mediastore.Index is not a javax.servlet.Servletat org.mortbay.jetty.servlet.ServletHolder.checkServletType(ServletHolder.java:362)at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:243)at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)at org.mort
-
Jakemmarsh
angularjs google-api google-oauth google-api-java-client
I’m trying to use the Google API Javascript client to utilize Google Login on my app, and then access the user’s email address and contacts. I’m combining this with AngularJS, and I’ve read that it’s best to make this its own Service.Here is the code for the service so far:.service(‘googleLogin’, [‘$http’, ‘$rootScope’, function ($http, $rootScope) {var clientId = ‘{MY CLIENT KEY}’,apiKey = ‘{MY API KEY}’,scopes = ‘https://www.googleapis.com/auth/userinfo.email https://www.google.com/m8/feeds’,d
-
Ron
android eclipse google-api-java-client
I am trying to use the google api to access picasa from android. I’m following a sample that parses atom by doing:AlbumFeed feed = request.execute().parseAs(AlbumFeed.class);In order for the atom parser to work I understand that I need to define classes that have a @Key annotation like:public class Link {@Key(“@href”)public String href;@Key(“@rel”)public String rel;}But eclipse doesn’t even compile this – I keep getting both: Key cannot be resolved as a type and The attribute value is undefined
-
GETah
java netbeans google-api google-calendar google-api-java-client
I imported Google calendar API on Netbeans with all the needed libraries but it looks like java can’t see the API for an unknown reason, even thu I imported all the libraries…Please help …G Calendar API can be found here : http:// developers.google.com/google-apps/calendar/v3/reference/events/list#try-itimage 1 : I cant create or manipulate a new event thru APIimage 2 : all libraries imported
-
sohel khalifa
android google-api-java-client
I am following the tutorial : https://developers.google.com/drive/training/drive-apps/auth/credentials#retrieve_oauth_20_credentials and what problem is i am facing this error :The method com.google.api.services.oauth2.Oauth2.Builder(NetHttpTransport, JacksonFactory) is undefined for the type Oauth2even i can see this method in the Oath2 i cant use it .. any help please ?