webOS Nation Forums >  Homebrew >  webOS homebrew apps > API Demo, v0.0.1 (07/22)
API Demo, v0.0.1 (07/22)

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/22/2009, 02:46 PM   #1 (permalink)
Member
 
Join Date: Jun 2009
Posts: 47
Likes Received: 0
Thanks: 4
Thanked 110 Times in 6 Posts
Default API Demo, v0.0.1 (07/22)

This is intended to serve as a working code example for developers. It is of no use to end users. It is not supported by Palm in any way. It is not complete.

Above all, the code strives to be simple at the expense of end-user beauty.

I found myself spending more time trying to divine the meaning of the API than actually coding. Since I couldn't find any good examples, I decided to create my own. This currently demonstrates most widgets, orientation events, location one-shots and subscriptions. View the source in the .ipk package itself or ask for SVN access as described below.

If you find yourself wanting to write test code for some API function that is not in this app, please consider adding it to this app and sending a patch to the email address in the About dialog.

Please include the following in that email:
  • State "I donate this patch without restriction" in your email.
  • State your name so that you can be credited.

I will be happy to gave read/write SVN access to anyone that's interested if you:
  • Ask nicely
  • Agree to donate any code you commit without restriction
  • Promise to send at least 1 commit
Attached Images
File Type: jpg apidemo_2009-22-07_153325.jpg (29.0 KB, 915 views) Email Attachment
Attached Files
File Type: ipk com.adsllc.apidemo_0.0.1_all.ipk (43.9 KB, 180 views) Email Attachment
Download URL:
adsllc is offline   Reply With Quote
Old 07/22/2009, 03:01 PM   #2 (permalink)
Member
 
Leke's Avatar
 
Join Date: Jan 2007
Posts: 602
Likes Received: 0
Thanks: 8
Thanked 59 Times in 36 Posts
Default

Interesting....
Leke is offline   Reply With Quote
Old 07/22/2009, 03:02 PM   #3 (permalink)
Member
 
Join Date: Jun 2009
Posts: 308
Likes Received: 0
Thanks: 18
Thanked 657 Times in 59 Posts
Default

Doesn't the SDK already come with this? UIWidgets, Services, etc
__________________
My Tether - version 2.1.0 now live. No patching, no ad-hoc, more features!
aonic is offline   Reply With Quote
Thanked By: branded
Old 07/22/2009, 03:08 PM   #4 (permalink)
WebOS Developer
 
kesne's Avatar
 
Join Date: Jun 2009
Location: Portland, Oregon
Posts: 491
Likes Received: 0
Thanks: 22
Thanked 118 Times in 31 Posts
Default

Palm already has this completely covered, nice to see somebody trying to help though
kesne is offline   Reply With Quote
Old 07/22/2009, 03:18 PM   #5 (permalink)
Member
 
Join Date: Jul 2009
Location: New Jersey
Posts: 29
Likes Received: 0
Thanks: 15
Thanked 4 Times in 4 Posts
Default

hmmmm.....
kmfast is offline   Reply With Quote
Old 07/22/2009, 03:47 PM   #6 (permalink)
Homebrew Developer
 
Join Date: Jul 2009
Posts: 85
Likes Received: 0
Thanks: 8
Thanked 12 Times in 7 Posts
Default

i wish they added in more of the guts on the app itself, so you didnt have to dig through the source code..
Shawalli is offline   Reply With Quote
Old 07/22/2009, 04:11 PM   #7 (permalink)
Member
 
Join Date: Jun 2009
Posts: 47
Likes Received: 0
Thanks: 4
Thanked 110 Times in 6 Posts
Default

D'oh! I'm running the SDK on Fedora, which isn't technically supported, so I never knew that I should be looking in /opt/PalmSDK/Current/share/samples/.

Oh well, it was good practice, and more examples never hurt.
adsllc is offline   Reply With Quote
Old 07/22/2009, 04:15 PM   #8 (permalink)
Member
 
Join Date: Jun 2009
Posts: 770
Likes Received: 0
Thanks: 37
Thanked 276 Times in 83 Posts
Default

Quote:
Originally Posted by adsllc View Post
D'oh! I'm running the SDK on Fedora, which isn't technically supported, so I never knew that I should be looking in /opt/PalmSDK/Current/share/samples/.

Oh well, it was good practice, and more examples never hurt.
Thanks anyways; the sdk examples confused me a bit (since I'm not really a programmer..)

always good to have more examples.
-mark
diomark is offline   Reply With Quote
Old 07/22/2009, 10:02 PM   #9 (permalink)
Member
 
Join Date: Jun 2009
Location: Chicago
Posts: 316
Likes Received: 0
Thanks: 32
Thanked 166 Times in 26 Posts
Default

I would like acess to the source files. I see that you have unsubscribe to the gps startTracking method and I can't seem to figure it out.
kmax12 is offline   Reply With Quote
Old 07/22/2009, 10:41 PM   #10 (permalink)
Member
 
frankos72's Avatar
 
Join Date: May 2009
Location: Oklahoma
Posts: 530
Likes Received: 13
Thanks: 68
Thanked 102 Times in 56 Posts
Default

Quote:
Originally Posted by kesne View Post
Palm already has this completely covered, nice to see somebody trying to help though
Well the Style Matters app that comes with the devloper's kit covers almost all the widgets. Problem is the code is inside other code and the way they did it it's next to impossible to actually figure out how to do what you want to do.

Thanks for this. I haven't checked it out yet, but if you put one or two widgets per scene with nothing but some filler content this could be VERY helpfull.
__________________
frankos72
Simple Bible - Simple Bible Pro - Bits of God Website
My Day Job: www.pigstands.com
frankos72 is offline   Reply With Quote
Old 07/27/2009, 09:32 AM   #11 (permalink)
Homebrew Developer
 
Join Date: Dec 2007
Posts: 290
Likes Received: 0
Thanks: 24
Thanked 23 Times in 13 Posts
Default

lol
adma84 is offline   Reply With Quote
Old 07/27/2009, 12:28 PM   #12 (permalink)
Member
 
Colonel Kernel's Avatar
 
Join Date: Apr 2009
Location: Boston, MA
Posts: 773
Likes Received: 0
Thanks: 191
Thanked 101 Times in 58 Posts
Default

First, thank you for this.
Two, I don't believe you can have both Open/Close buttons and a Toggle button refer to the same drawer, or at least it's much harder.
Three, I am struggling mightily trying to get drawers to open/close via collapsible dividers. Any chance you could include them in an all encompassing Drawer demo section?
Four, thank you, again.
Colonel Kernel is offline   Reply With Quote
Old 07/28/2009, 03:38 AM   #13 (permalink)
Member
 
Join Date: Jun 2009
Posts: 11
Likes Received: 0
Thanks: 4
Thanked 0 Times in 0 Posts
Default

hey this is a great app!! thanks for a begineer like me could you please give me the source code so i can look @ it and try to figure out how it works
ruchirbhai is offline   Reply With Quote
Old 07/31/2009, 01:05 PM   #14 (permalink)
Member
 
Join Date: May 2009
Posts: 61
Likes Received: 0
Thanks: 13
Thanked 10 Times in 1 Post
Default

Quote:
Originally Posted by Shawalli View Post
i wish they added in more of the guts on the app itself, so you didnt have to dig through the source code..
Totally agree. It would be nice to see some slices of code show up actually within the app itself... similar to FlexBuilder and TourDeFlex
OSU0034 is offline   Reply With Quote
Old 08/04/2009, 10:32 AM   #15 (permalink)
Member
 
Join Date: Jun 2009
Location: Chicago, IL
Posts: 59
Likes Received: 22
Thanks: 14
Thanked 50 Times in 13 Posts
Default

If you posted a zip of the files it would make this much more useful to everyone. Practice code works better when you can see the code. Or do you want people to ask you for it?
kyle3om is offline   Reply With Quote
Old 08/04/2009, 10:58 AM   #16 (permalink)
Member
 
Join Date: Jun 2009
Posts: 47
Likes Received: 0
Thanks: 4
Thanked 110 Times in 6 Posts
Default

Quote:
Originally Posted by kyle3om View Post
If you posted a zip of the files it would make this much more useful to everyone. Practice code works better when you can see the code. Or do you want people to ask you for it?
Just extract the package itself for the code.

If you're using Windows, 7-Zip or WinZip should be able to open the .ipk file, then the data.tar.gz file within it. You are interested in usr/palm/applications/com.adsllc.apidemo directory within the data.tar.gz file.

In Linux, the Archive Manager works fine, otherwise use "ar x" from the command line on the .ipk file, then "tar -zxf" on data.tar.gz.

Sorry I didn't mention this originally. Back in the days before the SDK was released you had to roll your own packages and this was common knowledge. Now that the SDK provides the nice packaging tools it's not so obvious.
adsllc is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0