CS 491 Lecture 5b – Intents cont’d
Last time, few people got the camera working properly. So, today is a continuation of last time. Rather than throw our hands in the air, let’s try to resolve the issues we ran into. Feel free to comment on this post with any solutions to your problems.
Stick with your same partner(s).
If you have a phone, check out Using Hardware Devices. The lab machines may not have drivers available for older phones. The Samsung Galaxy S3 seems to work okay.
I’ve installed my own version of the Android SDK and created my own Android Virtual Devices. The directory is W:\c s\CJohnson\cs491-mobile\android-sdk. You can update the SDK location via Window > Preferences > Android. I was able to get the camera working and not crashing with the Eclair AVD.
If you’re not able to handle the intent-driven URL, perhaps the browser has been made the default handler already? Check out this StackOverflow thread.
Extra challenges
- Create an intent matching the one you have a filter for. List in a Toast all the Activities that can handle that Intent. What should you see? Check out Verify There is an App to Receive the Intent.
- Let the user choose between taking a picture or choosing one from the gallery.
- After a picture is taken, animate the button. Check out View Animations. Start with a simpler animation than the one you see there.