Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Self-Destructing Message Android App Relating Users in Parse.com Setting Up a Query for Users

Nick Garstin
Nick Garstin
2,399 Points

Android Studio ParseUser.getQuery(); is deprecated message. what do I do now?

Android Studio ParseUser.getQuery(); is deprecated message. what do I do now?

Nick Garstin
Nick Garstin
2,399 Points

Spot on guys. Although Android Studio shows the code as deprecated, it functions correctly. Many thanks.

2 Answers

Jesse Gravenor
Jesse Gravenor
27,272 Points

I ran into this too. It shows with a line stricken through it in Android Studio. The code examples in the Parse Docs don't seem to indicate any deprivation. Also, the code still works to complete the application. I received no errors other than the line-through and the note about it being depricated. Just use it for now. Perhaps Ben will address this when he updates this course with Android Studio??

Just carry on with it in there - the code should still work, I think. The documentation doesn't show that this is deprecated, which is strange.