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 Adding Users Using Parse.com Creating an Account and App on Parse.com

Sandro Meschiari
Sandro Meschiari
18,418 Points

using android studio end the new webPage of parse.com

1.On the web page select: data=>mobile=>android=>native=>existing project.

2.Download the SDK open in folder and as the lib in the android studio is not shown you will have to add it in your project so: .../androidStudioProject/Ribbit/app/libs once you there paste all the jar file that you find on unzipped folder 4 of them(2x bolts, Parse, ParseCrash).

3.Then go androidStudio, on the build.grandle:(Module:app) add in the dependencies: compile 'com.parse.bolts:bolts-android:1.+' compile fileTree(dir: 'libs', include: 'Parse-*.jar')[this should be already there]. and don't forget to sync it!!!

4.Add on your OnCreate method: Parse.enableLocalDatastore(this); Parse.initialize(this, code given1, code given2);

5.On the manifest add: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

  1. Run your app everything should work

  2. Test the SDK following the web site

I hope this help.

Sandro Meschiari
Sandro Meschiari
18,418 Points

sorry they got cut: the permission to add are INTERNET and ACCESS_NETWORK_STATE

Kevin Gonzales
Kevin Gonzales
4,638 Points

In the video he created a java class and extended it for number 4. Do we need to do the same for android studio? also why can't we use the on create method in our main activity?

1 Answer

Worked perfectly! Thank you.