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 trialOld Man
1,333 PointsActual device crashes but virtual device OK.
On my physical android device the app crashes when i save a picture just taken or when i choose an existing picture. However, both work fine on the android virtual device. Both devices are running android 4.2.2 API 17. Cannot understand why the physical crashes but the virtual works running the same code on the same OS?
3 Answers
Jay Mayu
6,805 PointsI got the same error. Even with the project downloaded from the TTH.
When I checked the logcat
, the issue was around memory. Phone was running out of memory while running the conversions in the util classes provided.
I think the AVD takes up memory from the PC and literary it has more memory for the programme. But the real devices memory is limited and shared among multiple programs. That's why it's running out of memory.
My conclusion is that the util classes are not production ready and you can use them for your learning pleasure only.
Joe Brown
21,465 PointsI don't have that problem on my Samsung Galaxy S4. App runs as it should, including my own personal add ons
Old Man
1,333 Pointswow, is that true? these treehouse apps are not capable of functioning on actual devices? not sure what that's supposed to teach us. "don't write code like this or it will never work!"
Jay Mayu
6,805 PointsHey I'm referring to the Util classes provided in the lesson to resize the images. Otherwise the concepts are similar. The Android courses here at Team treehouse is one of the best courses available online for such a cheap price. I have taken many courses online and I can guarantee you that. You won't get the same quality videos anywhere else.
I highly recommend you learn the concepts and it'll help you to pick up from there onwards on your own.