The method apply() is undefined for the type SharedPreferences.Editor
<p>code: <a href="http://pastebin.com/sh5TKhVv" rel="nofollow">http://pastebin.com/sh5TKhVv</a>
I have coppied this code from book and I did not change anything but it have this error in lines 96 and 192.</p>

<pre><code>preferencesEditor.apply(); --&gt; The method apply() is undefined for the type SharedPreferences.Editor
</code></pre>
