Hi ,i never face ,i used the following code.its working fine.

*to store the data into shared preferences*

SharedPreferences.Editor editor = getPreferences(MODE_PRIVATE).edit();
 editor.putString("text","hello");
editor.commit();
*

to retrive the data from shared preferences*


SharedPreferences prefs = getPreferences(MODE_PRIVATE); String
restoredText = prefs.getString("text", null);




Regards,
NaResH.


On Fri, May 10, 2013 at 10:04 AM, rahul <[email protected]> wrote:

> Hi Guys,
> I am facing error while trying to create shared preferences from my
> application
> "Could n't create Directory for shared preferences"
> Any one face this problem and any known solution for this?
>
> Thanks alot
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to