Really "getting started" stuff

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Really "getting started" stuff

Postby Geo Gnome » Sun Dec 20, 2009 7:12 pm

First off, I just wanted to say, awesome site!

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);
startActivity(manageAccountIntent);


Q: I want to interact with another application, but I want to put it on the emulator first, how do I do that?
A:
    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!
Geo Gnome
Freshman
Freshman
 
Posts: 2
Joined: Sun Dec 20, 2009 12:58 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests