[android-developers] Proper way to setup app to notify user(if opt in) when new items are added to database

2015-04-06 Thread Dan Cha
So working on a app that will list inventory items for a few users.. IF the 
user opts to be notified, what is the proper way to implement such 
notifications?

The app works via a webservice that allows the entry of items and also 
returns full list to the user when they select to view.

What would that be considered so i can google the appropriate technique.

thank you

-- 
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] Proper way to setup app to notify user(if opt in) when new items are added to database

2015-04-06 Thread Justin Anderson
That would probably be a push notification

On Mon, Apr 6, 2015, 4:23 PM Dan Cha cuban...@gmail.com wrote:

 So working on a app that will list inventory items for a few users.. IF
 the user opts to be notified, what is the proper way to implement such
 notifications?

 The app works via a webservice that allows the entry of items and also
 returns full list to the user when they select to view.

 What would that be considered so i can google the appropriate technique.

 thank you

 --
 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:

meta-data android:name=com.google.android.gms.version
   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:

integer name=google_play_services_version6587000/integer

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.


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 abe.oppenh...@gmail.com:

 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 abe.op...@gmail.com:

 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:

 meta-data android:name=com.google.android.gms.version
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:

 integer name=google_play_services_version6587000/integer

 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] Which layout(s) can help me ?

2015-04-06 Thread Justin Anderson
*Sounds like a LinearLayout with vertical orientation. The first item (top
image) would have a layout_weight of 0.25 and layout_gravity of
center_horizontal, the second (button) a weight of 0.75 and have
layout_gravity = center.*

I'm not sure he wants that top image to always take up 25% of the vertical
space.  It sounds to me like he wants the image to take up whatever space
it is supposed to and then have the button centered on the screen with
whatever is left.  The above solution would also cause the button's height
to take up the entire remaining space on the screen, which I don't think
was the OP's intent.

I would suggest not using layout weights and wrapping the button in a
layout (perhaps a frame layout since the button is supposed the only thing
going in there.  Something like this should work:

LinearLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=match_parent
android:layout_height=match_parent
android:orientation=vertical

ImageView
android:src=@drawable/your_image_source_goes_here
android:layout_width=match_parent
android:layout_height=wrap_content /

FrameLayout
android:layout_width=match_parent
android:layout_height=match_parent

Button
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=My Button
android:layout_gravity=center/
/FrameLayout
/LinearLayout




On Sun, Apr 5, 2015 at 9:03 AM TreKing treking...@gmail.com wrote:


 On Sun, Apr 5, 2015 at 6:55 AM, NewToAndroid rahulra...@gmail.com wrote:

 How / which layout or layouts should I use here ??


 Sounds like a LinearLayout with vertical orientation. The first item (top
 image) would have a layout_weight of 0.25 and layout_gravity of
 center_horizontal, the second (button) a weight of 0.75 and have
 layout_gravity = center.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

 --
 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 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 abe.oppenh...@gmail.com:

 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:

 meta-data android:name=com.google.android.gms.version
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:

 integer name=google_play_services_version6587000/integer

 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.


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 abe.op...@gmail.com javascript::

 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:

 meta-data android:name=com.google.android.gms.version
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:

 integer name=google_play_services_version6587000/integer

 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 
 javascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com javascript:
 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 javascript:.
 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.