Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎04-07-2014
My Device: 9900
My Carrier: MOBICOM

SharedPreferences

Hi

 

When i save values in shared preferences like sharedpreferences.edit().putString("MyVal", "SavedValue").commit()

it does not seem to set value.Because it's not getting the right value afterwards.

 

 

 

Is it OS specific, or it's not supported or a bug? 

 

 

Thank you

 

My ported android application is 2.3.3 and i tested in Z30. 

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: SharedPreferences

Hey erhmee,

 

It seems to work fine for me. How/where are you are you setting/retrieving each SharedPreference?

 

Cheers,

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com