I have been dabbling in writing my first android app, and thought I'd share some of the really low level things I learned along the way. These aren't groundbreaking at all, I actually feel like I missed something somewhere (please let me know if I did, because there's probably more I need to learn)
Q: How do I take the user to another screen?
A: Create another Activity extending class, wrap it in an intent, and start that intent
- Code: Select all
Intent manageAccountIntent = new Intent(getApplicationContext(), ManageAccountActivity.class);
Q: I want to interact with another application, but I want to put it on the emulator first, how do I do that?
- download the apk
ensure that the tools directory is in your path
launch a command line (or run cmd in windows)
navigate to the directory containing the apk file
run adb install myprogram.apk
Hope this helped, please correct me if I got it wrong, or if there is a better way. Thanks folks!