p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Android 2 Application Development (http://p2p.wrox.com/forumdisplay.php?f=547)
-   -   Chapter 7: addPreferencesFromResource is deprecated (http://p2p.wrox.com/showthread.php?t=88919)

pdevhecht December 4th, 2012 12:13 AM

Chapter 7: addPreferencesFromResource is deprecated
 
Edit: This should have been under the Android 4 forum. Sorry. I would delete it, but since I can' tell the difference between 2 and 4 is probably the reason I can't see the delete thread as well.
Hello, I'm trying to run this with 4.1.2 and Eclipse tells me this code:
Code:

  @SuppressWarnings("deprecation")
@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    addPreferencesFromResource(R.xml.userpreferences);
  }

that addPreferencesFromResource is deprecated. The method doesn't really do anything but that call. What should be done instead?


All times are GMT -4. The time now is 03:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.