callback/callback-android — pull request #9 by nisc (2011-10-31 13:19:44+00:00)
Title: Example project does not build

The steps to build and run the example project, as described in the README, are:

./bin/create
cd example
./phonegap/debug

However, this lets me run into several errors:

During ./bin/create:
```
[...]
BUILD SUCCESSFUL
Total time: 0 seconds
Error: Project folder '.' is not empty. Please consider using 'android update' instead.
Created directory /home/n/projects/callback-android/example/src/com/phonegap/example
Added file ./src/com/phonegap/example/PhoneGapExample.java
Created directory /home/n/projects/callback-android/example/res
Created directory /home/n/projects/callback-android/example/bin
Created directory /home/n/projects/callback-android/example/libs
Created directory /home/n/projects/callback-android/example/res/values
Added file ./res/values/strings.xml
Created directory /home/n/projects/callback-android/example/res/layout
Added file ./res/layout/main.xml
Created directory /home/n/projects/callback-android/example/res/drawable-hdpi
Created directory /home/n/projects/callback-android/example/res/drawable-mdpi
Created directory /home/n/projects/callback-android/example/res/drawable-ldpi
Added file ./AndroidManifest.xml
Added file ./build.xml
Added file ./proguard.cfg
cp: cannot create regular file `./assets/www': No such file or directory
sed: can't read s/__ACTIVITY__/PhoneGapExample/g: No such file or directory
sed: can't read s/__ID__/com.phonegap.example/g: No such file or directory
sed: can't read s/__ACTIVITY__/PhoneGapExample/g: No such file or directory
sed: can't read s/__PACKAGE__/com.phonegap.example/g: No such file or directory
```

I've had to make several adaptions to the create scripts. It's probably best if you could just have a look at the attached commit. Is this what it should be like?

Thanks.