View Single Post
  #1 (permalink)  
Old December 4th, 2012, 12:13 AM
pdevhecht pdevhecht is offline
Registered User
Points: 16, Level: 1
Points: 16, Level: 1 Points: 16, Level: 1 Points: 16, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Wink 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?

Last edited by pdevhecht; December 4th, 2012 at 11:14 AM.. Reason: Adding chapter 7
Reply With Quote