[android-developers] Android N Multi-locale feature

2016-09-27 Thread sanjeet kumar Singh
While developing an app, I tried use Android N multi-lingual support. As 
explained on developers site. It seems that it will automatically pick the 
resources using resource resolution mechanism.

But it doesn't seem to be working or could it be that I am missing 
something?

Here is the complete scenario :

Device as Portugese(pt_PT) and German(de_DE) as preferred language list 
respectively.
Locales supported by app are placed in corresponding resource folder:

a. values (default) b. values-de c. values-es
So according to explanation provided on developers site it should pick 
locale from "values-de" directory. But it shows the default one.

targetSdk & compiledSdk version set to 24.


Could someone give me an idea of what might be going wrong??

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/bee2c50a-29da-4a04-a617-eda3d581d2bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-developers] Re: Google Fit Nutrition Card

2016-06-02 Thread sanjeet kumar Singh
Hi, 
Yes we found the cause for the above problem. There was one attribute 
missing when we were setting the nutrition values to DataPoint.
So, in DataPoint you need to set the fields listed below (Meal type and 
Food item):

dataPoint.getValue(Field.FIELD_FOOD_ITEM).setString("some string");
dataPoint.getValue(Field.FIELD_MEAL_TYPE).setInt(Field.MEAL_TYPE_SNACK);

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/f58cd1b1-7bc8-4d10-855c-3e5ca382cefe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.