Did anyone take a look around the tip calc app released today?
Tip Calculator
The makefile in the source download has some references to the PalmSDK.
[code]palm-generate-app:
@ \
if [ -d $(DEVDIR) ]; then \
echo "$(DEVDIR)/ already exists" ; \
exit 1 ; \
fi
$(DEVDIR)/palm-generate \
-p "{title:'$(TITLE)', id:$(ID), version:'$(VERSION)'}" $(TARGET)
perl -pi -e 's/My Company/$(VENDOR)/g' $(TARGET)/appinfo.json
palm-generate-scene:
@D=$(TARGET)/app/views/first ; \
if [ -d $$D ]; then \
echo "$$D/ already exists" ; \
exit 1 ; \
fi
$(DEVDIR)/palm-generate -t new_scene -p "name=First" $(TARGET)
palm-install:
$(DEVDIR)/palm-install -d $(DEVICE) $(IPK)
palm-launch:
$(DEVDIR)/palm-launch -d $(DEVICE) $(ID)
palm-kill:
$(DEVDIR)/palm-launch -d $(DEVICE) -c $(ID) ; exit 0
test:: ipk palm-kill palm-install palm-launch
[/code]
and in the HTML of the webpage it self, i saw:
[code]<P> If you have the
<A HREF="https://prerelease.palm.com/confluence/display/sdk/Getting+Started">WebOS development environment</A> installed, you can
install it on your phone like so:
<P>
<OL>
<LI> Put your phone in
<A HREF="http://palmwebos.org/2009/06/10/palm-pre-konami-code-dev-mode/">developer mode</A> by going to the Launcher
and typing literally these characters, then hitting enter
and clicking the Developer icon that comes up:<P><UL>
<TT>upupdowndownleftrightleftrightbastart</TT></UL><P>
Which is a spelled-out version of the
<A HREF="http://en.wikipedia.org/wiki/Konami_Code">Konami code</A>:<P><UL>
↑↑↓↓←→←→[b][a][start]</UL>
<P></LI><LI> Then on your Mac, do this:<p><ul>
<TT>
/opt/PalmSDK/Current/bin/palm-install -d usb \<BR>
org.jwz.tipcalculator_1.0.3_all.ipk
</TT></ul>
</LI></OL>
<P> If you don't have the development environment installed, I'm not
sure how you do it. I also don't know how I go about getting this
program into the Palm App Catalog.[/code]
Not a lot of information, but better than nothing for people not in the SDK program yet.
I believe [code](DEVDIR)/palm-generate -t new_scene -p "name=First" $(TARGET)[/code] helps by generating a empty/template scene. Here is a (i believe auto-generated) comment from the first-assistant.
js file:
[code] /* this is the creator function for your scene assistant object. It
will be passed all the additional parameters (after the scene
name) that were passed to pushScene. The reference to the scene
controller (this.controller) has not be established yet, so any
initialization that needs the scene controller should be done in
the setup function below. */[/code]