Thanks everyone! Never mind this topic. I will go with another solution. 
Forget Login page and remember UserID
Anh

On Wednesday, February 15, 2017 at 6:47:40 AM UTC-6, Marina Cuello wrote:
>
> I never played with that, but it seems like once you declare your app as 
> standalone some of that stuff should be enabled for you: 
> https://developer.android.com/training/wearables/apps/standalone-apps.html#shared-code
>
> Marina
>
> On Tue, Feb 14, 2017 at 7:17 PM, Anh <anhdu...@gmail.com <javascript:>> 
> wrote:
>
>> Hi Marina,
>> Thanks for your advise but my app on smartwatch will run alone. I meant 
>> no connection to the phone.
>> That's why I need to save it on the local, smartwatch.
>> Any ideas???
>> Anh
>>
>> On Monday, February 13, 2017 at 2:49:32 PM UTC-6, Marina Cuello wrote:
>>>
>>> I think you need to use the data sync API and save the shared 
>>> preferences on the normal app side.
>>>
>>> https://developer.android.com/training/wearables/data-layer/data-items.html
>>>
>>> Marina
>>>
>>> On Mon, Feb 13, 2017 at 12:34 PM, Anh <anhdu...@gmail.com> wrote:
>>>
>>>> Hello,
>>>> I am encountering an issue that saving userId in wearable app. I have a 
>>>> login page and need user enters userID and save it.
>>>> In android mobile app, I used SharedPreferences successfully. However, 
>>>> for wearable app, I don't know how and what I can use to save UserID.
>>>> I am searching on the internet but no clue. Please support!
>>>> Thank you
>>>> Anh
>>>>
>>>> -- 
>>>> 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-d...@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/e6a68708-ee23-4f52-9d1d-0c0f9398a573%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/android-developers/e6a68708-ee23-4f52-9d1d-0c0f9398a573%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> 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 unsubscribe from this group and stop receiving emails from it, send an 
>> email to android-developers+unsubscr...@googlegroups.com <javascript:>.
>> To post to this group, send email to android-d...@googlegroups.com 
>> <javascript:>.
>> 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/f6d87893-6ea6-4ef1-b6d1-abe35aa3da95%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-developers/f6d87893-6ea6-4ef1-b6d1-abe35aa3da95%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> 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 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/f62bb4bd-7987-4e7f-8113-5a56618a75f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to