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
Daniel Sharpe
602 PointsCrystal Ball App and Android 4.2.2
So I built out the Crystal Ball app but ran into a couple things on my rooted GS3 running stock 4.2.2. Did some research through the forums but couldn't seem to find anyone else with a similar issue.
- If I hook up to USB and try to run the .apk through Eclipse I get the follow error code in the console log.
[2013-04-10 23:27:00 - Crystal Ball] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.crystal.ball/.MainActivity } [2013-04-10 23:27:00 - Crystal Ball] ActivityManager: Error type 3 [2013-04-10 23:27:00 - Crystal Ball] ActivityManager: Error: Activity class {com.example.crystal.ball/com.example.crystal.ball.MainActivity} does not exist.
At first I thought maybe something was wrong in the Manifest but after reviewing it everything seems to check out. What's even more strange is if I hook up my wife's GS3 (running stock TW 4.1.2) the Crystall Ball app loads up flawlessly.
- My second issue is that when I try to install the .apk file on my rooted GS3 or my Nexus 7 (both on 4.2.2), the app will install, but then not show up either in the launcher, or in my Application Manager. Once again if I install the .apk on my wife's phone, it works.
My question thus is there something wrong with my code or is there something up with me trying to run this on 4.2.2? I should also note that the app always runs on the Eclipse Emulator.
2 Answers
Ben Jakuben
Treehouse TeacherI'm actually running CyanogenMod nightlies on a rooted S3, so you should be good for dev purposes!
These parts of your error message look strange:
[2013-04-10 23:27:00 - Crystal Ball] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.crystal.ball/.MainActivity } [2013-04-10 23:27:00 - Crystal Ball] ActivityManager: Error type 3 [2013-04-10 23:27:00 - Crystal Ball] ActivityManager: Error: Activity class {com.example.crystal.ball/com.example.crystal.ball.MainActivity} does not exist.
It looks like you have an extra / before .MainActivity that shouldn't be there. It could be correct in Eclipse but cached incorrectly on your phone. Try deleting the app from your phone and pushing from Eclipse again.
Daniel Sharpe
602 PointsThanks Ben for getting back to me so quickly.
I followed your recommendations and everything works flawlessly now. Not sure how I got a bad package name originally.
I should note that I wasn't able to uninstall the app using the built in system "app manager." Instead I had to search using Root Explorer for all files with the word "crystal" in them. I deleted all the files found (including Dalvik).
Why am I not surprised your running nightlies? :-) Been running PacMan nightlies for a while now. Thanks again!