Re: [android-developers] Android: Google drive integration, what is “com.google.android.gms.version”?

2015-04-06 Thread Kostya Vasilyev
For what it's worth -- I've got 6111000 in my app right now (6.1.something)
and the newest version is 7.0.something, works fine.

There's got to be some backwards compatibility, but maybe it doesn't go
quite as far as 6 -> 4 (your 4030500) and the app-side library itself
checks the installed Play Services version, since it has to interact with
it...

FWIW, again, I use app-side library version 6111000, so my version resource
matches the library's code.

-- K

2015-04-06 16:58 GMT+03:00 Ab :

> If I hardcode it to some previous version number, such as "4030500", my
> app crashes with stack traces saying that version 658700 was expected. I'm
> wondering if my solution, importing the version.xml file, will prevent or
> result in crashes on devices with older versions and/or devices with newer
> versions?
>
> On Monday, 6 April 2015 09:54:06 UTC-4, Kostya Vasilyev wrote:
>>
>> This is the minimum required Google Play Services version.
>>
>> When a device has a lower version, the system will prompt the user to
>> update via a status bar notification saying "app XXX requires Google Play
>> Services update" (or some such), linked to Google Play app.
>>
>> -- K
>>
>>
>> 2015-04-06 16:28 GMT+03:00 Ab :
>>
>>> My application integrates with Google Drive using the old api, it does
>>> not include Google's library project (instead it includes a bunch of jars
>>> like 'google-api-client-1.12.0-beta.jar', 
>>> 'google-api-services-drive-v2-rev59-1.12.0-beta.jar',
>>> etc...).
>>>
>>> This causes an issue because this line in my manifest file:
>>>
>>> >>android:value="@integer/google_play_services_version" />
>>>
>>> Now gives the following error:
>>>
>>> Error: No resource found that matches the given name (at 'value' with value
>>>  '@integer/google_play_services_version').
>>>
>>> If I just copy the version.xml file from the library project into my
>>> project, the error goes away. The file's contents are:
>>>
>>> 6587000
>>>
>>> But now I'm wondering, what is the com.google.android.gms.version attribute
>>> anyway? Is it the version number of the google play services on the device?
>>> Copying the file into my workspace seems the same as just hardcoding the
>>> attribute to '6587000'. If so, will this cause issues going forward if
>>> devices update their google play services? Will it cause issues on devices
>>> that currently have an old version of the services installed? (And in all
>>> these cases, how would importing this resource value from the library
>>> project be any better, as that just seems like a hardcoded value as well?)
>>>
>>> Any general insight into the safety of this workaround?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-d...@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to android-developers+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android: Google drive integration, what is “com.google.android.gms.version”?

2015-04-06 Thread Ab
If I hardcode it to some previous version number, such as "4030500", my app 
crashes with stack traces saying that version 658700 was expected. I'm 
wondering if my solution, importing the version.xml file, will prevent or 
result in crashes on devices with older versions and/or devices with newer 
versions?

On Monday, 6 April 2015 09:54:06 UTC-4, Kostya Vasilyev wrote:
>
> This is the minimum required Google Play Services version.
>
> When a device has a lower version, the system will prompt the user to 
> update via a status bar notification saying "app XXX requires Google Play 
> Services update" (or some such), linked to Google Play app.
>
> -- K
>
>
> 2015-04-06 16:28 GMT+03:00 Ab >:
>
>> My application integrates with Google Drive using the old api, it does 
>> not include Google's library project (instead it includes a bunch of jars 
>> like 'google-api-client-1.12.0-beta.jar', 
>> 'google-api-services-drive-v2-rev59-1.12.0-beta.jar', etc...).
>>
>> This causes an issue because this line in my manifest file:
>>
>> >android:value="@integer/google_play_services_version" />
>>
>> Now gives the following error:
>>
>> Error: No resource found that matches the given name (at 'value' with value 
>>  '@integer/google_play_services_version').
>>
>> If I just copy the version.xml file from the library project into my 
>> project, the error goes away. The file's contents are:
>>
>> 6587000
>>
>> But now I'm wondering, what is the com.google.android.gms.version attribute 
>> anyway? Is it the version number of the google play services on the device? 
>> Copying the file into my workspace seems the same as just hardcoding the 
>> attribute to '6587000'. If so, will this cause issues going forward if 
>> devices update their google play services? Will it cause issues on devices 
>> that currently have an old version of the services installed? (And in all 
>> these cases, how would importing this resource value from the library 
>> project be any better, as that just seems like a hardcoded value as well?)
>>
>> Any general insight into the safety of this workaround?
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-d...@googlegroups.com 
>> 
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Developers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Android: Google drive integration, what is “com.google.android.gms.version”?

2015-04-06 Thread Kostya Vasilyev
This is the minimum required Google Play Services version.

When a device has a lower version, the system will prompt the user to
update via a status bar notification saying "app XXX requires Google Play
Services update" (or some such), linked to Google Play app.

-- K


2015-04-06 16:28 GMT+03:00 Ab :

> My application integrates with Google Drive using the old api, it does not
> include Google's library project (instead it includes a bunch of jars like
> 'google-api-client-1.12.0-beta.jar',
> 'google-api-services-drive-v2-rev59-1.12.0-beta.jar', etc...).
>
> This causes an issue because this line in my manifest file:
>
> android:value="@integer/google_play_services_version" />
>
> Now gives the following error:
>
> Error: No resource found that matches the given name (at 'value' with value
>  '@integer/google_play_services_version').
>
> If I just copy the version.xml file from the library project into my
> project, the error goes away. The file's contents are:
>
> 6587000
>
> But now I'm wondering, what is the com.google.android.gms.version attribute
> anyway? Is it the version number of the google play services on the device?
> Copying the file into my workspace seems the same as just hardcoding the
> attribute to '6587000'. If so, will this cause issues going forward if
> devices update their google play services? Will it cause issues on devices
> that currently have an old version of the services installed? (And in all
> these cases, how would importing this resource value from the library
> project be any better, as that just seems like a hardcoded value as well?)
>
> Any general insight into the safety of this workaround?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Android: Google drive integration, what is “com.google.android.gms.version”?

2015-04-06 Thread Ab


My application integrates with Google Drive using the old api, it does not 
include Google's library project (instead it includes a bunch of jars like 
'google-api-client-1.12.0-beta.jar', 
'google-api-services-drive-v2-rev59-1.12.0-beta.jar', etc...).

This causes an issue because this line in my manifest file:



Now gives the following error:

Error: No resource found that matches the given name (at 'value' with value 
 '@integer/google_play_services_version').

If I just copy the version.xml file from the library project into my 
project, the error goes away. The file's contents are:

6587000

But now I'm wondering, what is the com.google.android.gms.version attribute 
anyway? Is it the version number of the google play services on the device? 
Copying the file into my workspace seems the same as just hardcoding the 
attribute to '6587000'. If so, will this cause issues going forward if 
devices update their google play services? Will it cause issues on devices 
that currently have an old version of the services installed? (And in all 
these cases, how would importing this resource value from the library 
project be any better, as that just seems like a hardcoded value as well?)

Any general insight into the safety of this workaround?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.