Differences

This shows you the differences between two versions of the page.

Link to this comparison view

smd:laboratoare:06 [2021/05/20 21:30]
adriana.draghici [Shared preferences]
smd:laboratoare:06 [2021/05/20 21:30] (current)
adriana.draghici [Shared preferences]
Line 93: Line 93:
 sharedPref = this.getSharedPreferences("​mysettings",​ Context.MODE_PRIVATE);​ sharedPref = this.getSharedPreferences("​mysettings",​ Context.MODE_PRIVATE);​
 // or // or
-sharedPref = PreferenceManager.getDefaultSharedPreferences(context);​ //!!! recently deprecated+sharedPref = PreferenceManager.getDefaultSharedPreferences(context);​ //!!! recently deprecated ​in API level 29
 </​code>​ </​code>​
  
smd/laboratoare/06.1621535421.txt.gz ยท Last modified: 2021/05/20 21:30 by adriana.draghici
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0