Questions tagged [google-api-client]

**[DO NOT USE THIS TAG]** Please use the language specifying tag for your question instead of this tag.

Please use the language specifying tag for your question instead of this tag.

Below is the original wiki for this tag.

This is an obsolete tag used for an android sdk that no longer exists.

The GoogleApiClient The main entry point for Google Play services integration

Documentation can be found here.

1581 questions
0
votes
2 answers

android check location services enabled if using GoogleApiClient

I am using GoogleApiClient to get current location in Service class and while starting I want to get the status of location Service of mobile, if location service is disable then I want to show popup to enable it. So how do I check the status of…
Gaurav
  • 3,615
  • 2
  • 27
  • 50
0
votes
0 answers

Authenticated GET of private google site image via ASP.Net

I have a list of URLs of images that was taken from the content of a private google site (the part of the code used to get those urls is not important here, as it works as expected). Having those URLs, I need to get the stream response of each one…
zed
  • 2,298
  • 4
  • 27
  • 44
0
votes
1 answer

Google Drive API 500 null errors when copying

I'm getting this error message (100% of the time) when copying a shared file, using the latest version of php library. And I'm getting the same response via the API explorer: developers.google.com/drive/v2/reference/files/copy Google_Exception:…
0
votes
1 answer

GoogleAPIClient not connecting properly?

I'm trying to connect mGoogleAPIClient, following this Guide. When i debug, a little window popsup asking me what googleplus account i would like to sign in as. As soon as I select my main account and click OK, it stops from there and does…
0
votes
1 answer

GetLastLocation always returns null

I try to access the last known location in a Fragment as explained here in my onCreate: public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGoogleApiClient = new…
Fabian
  • 2,693
  • 2
  • 21
  • 33
0
votes
1 answer

Does Google API Client need to be inside an Activity?

I am trying to design a good architecture for implementing Google API Services. The current documentation looks like this: public class MainActivity extends ActionBarActivity { public static final String TAG = "BasicHistoryApi"; private static final…
AndyRoid
  • 5,062
  • 8
  • 38
  • 73
0
votes
1 answer

Authorization issue with cron crawler inserting data into Google spreadsheet using Google API in Ruby

My project is to crawl the certain web data and put them into my Google spreadsheet every morning 9:00. And it has to get the authorization to read & write something. That's why the code below is located at the top. # Google API CLIENT_ID = blah…
ZHH
  • 99
  • 1
  • 10
0
votes
1 answer

Discovery API failing with JSON error

I have a very simple program meant to use the Google Discovery API. However, when I try to use the getRest call, it fails as below. Any ideas? I'm using the most recent version of the Discovery API from NuGet, VS 2012 Pro. DiscoveryService service =…
squid808
  • 1,430
  • 2
  • 14
  • 31
0
votes
1 answer

How to access Google API's from Android, using "Public API access", not user authentication

Background I believe the recommended way to access Google services from Android is to use the Google APIs Client Library for Java (for some services play services is recommeneded too). If you want to access your user's account, you use oauth2 to…
Tom
  • 17,103
  • 8
  • 67
  • 75
0
votes
0 answers

Implement google plus sharing in an android app

I can't share to Google+ from my application, I am getting an error: ActivityNotFoundException I have installed Google+ application on my device. Now I read also the documentation in developer.google.com and here they talk about the object…
Bob91
  • 103
  • 6
0
votes
1 answer

Android LocationServices lastKnownPosition

I've looked around but couldn't find a solution. I'm trying to find the last known position in Android, and I've seen this from google developer, but the function onConnected() is never called. Also, if I put this in onCreate(), the geolocalisation…
0
votes
2 answers

Why is my Fitness.SensorApi OnDataPointListener only called once?

My GoogleApiClient connects successfully and my @Override public void onDataPoint(DataPoint dataPoint) {…} is called exactly once and then never again. This is within a Service that's started only after Google Fit is authorized from within the UI…
Tim Trueman
  • 1,513
  • 3
  • 17
  • 28
0
votes
2 answers

Why does the Android GoogleApiClient ActivityRecognitionApi still send PendingIntents after the instantiating service is killed?

Confusingly, the FusedLocationProviderApi stops sending intents. A bit more detail: I have an Android service that builds a GoogleApiClient. mClient = new GoogleApiClient.Builder(this) .addApi(LocationServices.API) …
0
votes
0 answers

GoogleApiClient - Unable to start service

I'm trying to make a the LocationUpdate as a service (from the Play Services v7) and I have this error: Unable to start service com.package.etcetc... GoogleApiClient is not connected yet. This is my android Manifest: ...
0
votes
1 answer

Rails 4: Creating Google Calendar event

I'm trying to insert Google Calendar events as illustrated here. If I send the request with values hardcoded like the example it works fine: event = {'summary' => 'Summary', 'location' => 'Location', 'start' => { 'dateTime' =>…