Use "ant install" to build and install your application in one single step.
On Apr 7, 10:46 pm, Mikko Varri <[EMAIL PROTECTED]> wrote: > Hi Jun, > > Assuming you've got all the prerequisites installed (Ant and SDK tools > in your PATH) and that you're using Linux, here's how I did it. > > cd ~/src > cp -a /opt/android-sdk/samples/NotePad NotePad > activityCreator.py --out NotePad com.google.android.notepad.NotesList > cd NotePad > ant > adb install bin/NotesList.apk > > Don't worry about the warnings that say that something was not > created. The "com.google.android.notepad.NotesList" you can get by > choosing a randon Activity from the sources and turning its path to a > Java package name. > > If you've got an existing project with the "build.xml" file in your > source directory, you can directly try running "ant" to build the > project. After that, you can "adb install bin/MyProject.apk" to > install the app to the running emulator. > > I haven't used Eclipse/ADT, so if you started the project using those > I'm not sure whether the build.xml is correct (or that does it even > exist). > > On the other hand, if you're just starting a project, you can do: > > activityCreator.py --out helloworld org.example.hello.HelloWorld > cd helloworld > ant > adb install bin/HelloWorld.apk > > Hope that helps to get you started. > > BR, > -mikko > > On Mon, Apr 07, 2008 at 01:09:29PM -0700, monkey.jsun wrote: > > > All the tutorials have been talking about building sample code from > > Eclipse. I wonder if there is an easy way to build them from command > > line. > > > It is not obvious how to achieve this with activityCreator.py script. > > > Cheers. > > > Jun --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

