Wink Saville’s Blog

December 6, 2007

How to create a New Android Project

Filed under: Android, programming — wink @ 5:52 pm

I installed Android and then tried to follow the instructions on how to develop a new application here. I tried Create new project in workspace and added the ‘test1′ to “Project name:”, then tabbed to “Package name:”. At the top of the dialog the help line said; “Package name must be specified”. I typed a character, the help line said; “Package name must have at least tw o identifiers.”. If I then type two identifiers “a b” it says; “‘a b’ is not a valid java identifier”.

I wasn’t making much progress, I then googled around and found this, so the Package name must be a reverse DNS type name of two identifiers. So I used ‘com.saville’. The the help line changed to, “Activity name must be specified.”, I added “test1″ to Activity name: and pressed Finnish.

This created the project file in /home/wink/workspace/test1 with assets/ bin/ res/ and src/ and AndroidManifest.xml plus a bunch of other files in the subdirectories. In particular the source is in test1/src/com/saville/test1.java along with R.java.

After that far, I asked my self; how do I print out “hello, world”? The HelloActivity in the samples seem to be missing the R.java file. Anyway I googled for <android hello world> and found this.

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URL

Sorry, the comment form is closed at this time.

Powered by WordPress