Sound Stream API's

2004-07-14 Thread Gaurav Mengi
Hi Friends,
 Can anybody tell on which devices the Sound Stream API"s are
supported..

Gaurav Mengi



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


RE: Image APIs?

2004-07-14 Thread Oscar De León
George,
look at this Technical Note. Could help as an starting point.

http://www.nsbasic.com/palm/info/technotes/TN04b.htm

The sample code is for NSBASIC, but DmGetResource() is an API, so you can
translate the code easily to C.
Regards

Oscar

-Mensaje original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] nombre de George
VS
Enviado el: Miércoles, 14 de Julio de 2004 3:50
Para: Palm Developer Forum
Asunto: Image APIs?


Hi group,

I am considering building a photo album application.

Can anyone give me advice on what Image APIs may be used.
Are there any specific APIs for different devices (Palm, Sony, ..., OS5) or
a standard can be used.
What APIs are used for building the image databases (storing images) and
what APIs are used for rendering images on devices.
What formats are available. Is there any common image format (say .bmp) that
can be used for both Palm and PocketPC devices.

Thanks!
  George VS ([EMAIL PROTECTED])



--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Distributor greed - Are there other distributors

2004-07-14 Thread LionScribe
I agree with your complaint, but I disagree with your math. The Feds are
also taking 28% from Handango, so the math should be as follows;
Feds 28%
Handango 28.8%
Developer 43.2%

I have been using www.ShareIt.com as my storefront. They only charge a max
of 14.9%, and they have a very advanced interface, and good service. But
since they are not as Palm oriented, you have to do all the getting out the
word. Maybe if we all band together and switch to ShareIt, we can get
ShareIt to be a moving Palm force.

LionScribe

P.S. I am NOT affiliated with ShareIt!

"Mike Davis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Sorry for posting this in this forum.  I don't see any other fourms that
I'm
> subscribed to that are more appropriate.  Just received another increase
> notice from Handango.
>
> Are there any other better ( or as good ) distributors than Handango or
> PalmGear?
>
> My reply to Handango's email:
>
> You are taking far too much, for such little return.  You are taking 40%
> and the feds are talking 28%.  That leaves only 32% for the people that
> have put in all the "real" work.
>
> Greed is at work at Handango.  You started at 20% and in 3 years are at
> 40% and all the while, sales are dropping.  You are not doing anything to
> warrant this excessive greed.
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Distributor greed - Are there other distributors

2004-07-14 Thread Mike Davis
Sorry for posting this in this forum.  I don't see any other fourms that I'm 
subscribed to that are more appropriate.  Just received another increase 
notice from Handango.

Are there any other better ( or as good ) distributors than Handango or 
PalmGear?

My reply to Handango's email:

You are taking far too much, for such little return.  You are taking 40% 
and the feds are talking 28%.  That leaves only 32% for the people that 
have put in all the "real" work.  

Greed is at work at Handango.  You started at 20% and in 3 years are at 
40% and all the while, sales are dropping.  You are not doing anything to 
warrant this excessive greed.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Shim stops pining after 20 minutes

2004-07-14 Thread Carl
Hello and thanks in advance for any advance that is given.



What I have is an arm 'shim', somewhat like the sample 'VPPI" that one can
download from Palm One. In this sample there is a shim that basically can
trap the packets as they are coming and going from the hardware, nic.



Basically my shim/vpn, is working fine but when I do some long testing, that
is I am pining my Tungsten C continuously from another source I have seen
that the Tungsten stops replying after about 20 minutes.



Has anyone seen this behavior before? Any suggestions as to how to keep my
'connection' alive.



The shim is just an interface, like 'WiFi', so it should run on the same
process, but if I just open the 'WiFi' interface, I notice that my pings,
going to the tungsten, with out my shim loaded, will go with out stopping,
at least past the 20 minute mark.



Looking forward to you replies.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Displaying unicode

2004-07-14 Thread Jim Leno
I have run into a situation where I need to display unicode characters 
not in the 1252 code page.  From what I've been reading, it would 
appear that I need to make my own custom font to do this.

Is that correct?  Are there any commercial fonts folks can recommend 
that are made for this kind of problem, or does everyone just roll 
their own?

Thanks.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Displaying JPGs

2004-07-14 Thread Konstantin Klyatskin
JPEG/GIF decompression library for Palm OS
  1.. Fast and quality decoding
  2.. Fast JPEG scaling (1:8, 1:4, 1:2, 1:1)
  3.. Optimized palette: 16bpp for 16bpp devices, Web palette for 256 color
device, 4bpp for BW devices.
  4.. GIF animation via one-function call
  5.. Float scaling (bilinear/neighborhood) for bitmaps

http://www.absoluteword.com/jpglib/
Sample code available...
-- 



"Palm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi everybody,
>
> How would I be able to display JPGs or GIFs within Palm? I'm using
> CodeWarrior for Palm v8.
> Thanks.
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: SDIO issues, Tungsten T vs. m125

2004-07-14 Thread Dave Johnson
There is a separate SDK for SDIO applications, available PluggedIn 
program members (in other words, those who develop custom hardware for 
the Palm).

Dave
On Jul 14, 2004, at 12:26 PM, Petr Stetina wrote:
Only for clarification:
where SDIORWExtendedByte comes from? I can't find such method in 
public headers.

Petr
Dave Johnson wrote:
I'm developing an application to talk to custom SDIO hardware. The
hardware interrupts the handheld when it has data ready to be read. My
interrupt callback uses SDIORWExtendedByte() to read the data. So far
so good.
On my Tungsten T (OS 5.0), I frequently get an error
(expErrUnsupportedOperation) returned from SDIORWExtendedByte(),
particularly when the interrupts are coming in fast and furious
(fastest is every 20ms, and that's the case where I get the most
errors). Occasionally, the application hangs, waiting for the hardware
to respond.
On my m125 (OS 4.0.1), everything works fine.
At first I assumed the hardware was at fault, but then I tried the 
m125
and discovered that it works fine, pointing to (perhaps) something in
the Tungsten T.
The code is identical, and if I scope the interrupt pin on the 
hardware
it looks fine. The duration of the interrupt assertion is about the
same (around 2ms) on either handheld.
Those are the only 2 palms I have here at the moment, I'll try others
when I can get my hands on them, but in any case, I need to figure out
what's going on.
Is anyone aware of any SDIO "issues" with the Tungten T? Or are there
any SDIO experts out there (I'm not one) that can shed some light on
this problem, or suggest where to look next?
Thanks for any insight,
Dave Johnson

--
For information on using the Palm Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: SDIO issues, Tungsten T vs. m125

2004-07-14 Thread Petr Stetina
Only for clarification:
where SDIORWExtendedByte comes from? I can't find such method in public 
headers.

Petr
Dave Johnson wrote:
I'm developing an application to talk to custom SDIO hardware. The
hardware interrupts the handheld when it has data ready to be read. My
interrupt callback uses SDIORWExtendedByte() to read the data. So far
so good.
On my Tungsten T (OS 5.0), I frequently get an error
(expErrUnsupportedOperation) returned from SDIORWExtendedByte(),
particularly when the interrupts are coming in fast and furious
(fastest is every 20ms, and that's the case where I get the most
errors). Occasionally, the application hangs, waiting for the hardware
to respond.
On my m125 (OS 4.0.1), everything works fine.
At first I assumed the hardware was at fault, but then I tried the m125
and discovered that it works fine, pointing to (perhaps) something in
the Tungsten T.
The code is identical, and if I scope the interrupt pin on the hardware
it looks fine. The duration of the interrupt assertion is about the
same (around 2ms) on either handheld.
Those are the only 2 palms I have here at the moment, I'll try others
when I can get my hands on them, but in any case, I need to figure out
what's going on.
Is anyone aware of any SDIO "issues" with the Tungten T? Or are there
any SDIO experts out there (I'm not one) that can shed some light on
this problem, or suggest where to look next?
Thanks for any insight,
Dave Johnson


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Lists - tap and hold

2004-07-14 Thread Robert Moynihan
David Chevalier wrote:
[EMAIL PROTECTED] wrote:
 

I have a list, in which I need the user to be able to tap and hold any entry, and it 
will pop up information regarding the selected item.
Right now I am struggling with the tap and hold part.
   

Technical issues aside, you might have legal problems with this technique if
you try to use it in the US (maybe australia is free of this nonsense).
MSFT seems to have obtained a patent US 6,727,830 issued April 27, 2004 "Time
based hardware button for application launch"
The infamous "double-click" patent that I think really should be called the
PocketPC "tap-and-hold" patent.
Maybe I'm wrong.
good luck with that pen event loop, though.
 

I've read through the patent docs, and they seem to be VERY specific 
about the fact that the patent applies ONLY to alternate launch modes 
for an application.  For instance, tap to launch, tap-hold to launch AND 
start new doc, tap-long-hold to launch AND go to a specific document; 
stuff like that.  It doesn't seem to apply to a control within an 
application having multiple uses depending on hold duration.  I don't 
believe that this patent would prevent you from doing exactly what you 
want.  Of course, I'm not a lawyer, so I could be wrong.  Bob.

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Displaying JPGs

2004-07-14 Thread Palm
Hi everybody,

How would I be able to display JPGs or GIFs within Palm? I'm using
CodeWarrior for Palm v8.
Thanks.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: jpeg library

2004-07-14 Thread Konstantin Klyatskin
I know. :)
http://www.absoluteword.com/jpglib/
JPEG/GIF decompression library for Palm OS
  1.. Fast and quality decoding
  2.. Fast JPEG scaling (1:8, 1:4, 1:2, 1:1)
  3.. Optimized palette: 16bpp for 16bpp devices, Web palette for 256 color
device, 4bpp for BW devices.
  4.. GIF animation via one-function call
  5.. Float scaling (bilinear/neighborhood) for bitmaps
-- 



"Craig Hicks" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Anyone know how to show a jpeg at reduced size through code.
>
> Craig Hicks
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


SDIO issues, Tungsten T vs. m125

2004-07-14 Thread Dave Johnson
I'm developing an application to talk to custom SDIO hardware. The
hardware interrupts the handheld when it has data ready to be read. My
interrupt callback uses SDIORWExtendedByte() to read the data. So far
so good.
On my Tungsten T (OS 5.0), I frequently get an error
(expErrUnsupportedOperation) returned from SDIORWExtendedByte(),
particularly when the interrupts are coming in fast and furious
(fastest is every 20ms, and that's the case where I get the most
errors). Occasionally, the application hangs, waiting for the hardware
to respond.
On my m125 (OS 4.0.1), everything works fine.
At first I assumed the hardware was at fault, but then I tried the m125
and discovered that it works fine, pointing to (perhaps) something in
the Tungsten T.
The code is identical, and if I scope the interrupt pin on the hardware
it looks fine. The duration of the interrupt assertion is about the
same (around 2ms) on either handheld.
Those are the only 2 palms I have here at the moment, I'll try others
when I can get my hands on them, but in any case, I need to figure out
what's going on.
Is anyone aware of any SDIO "issues" with the Tungten T? Or are there
any SDIO experts out there (I'm not one) that can shed some light on
this problem, or suggest where to look next?
Thanks for any insight,
Dave Johnson
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Creator of DmCreateDatabase

2004-07-14 Thread Dave Lippincott
You register your creator ID with PalmSource
http://spp.palmos.com/iws/creator/ExtSearchCreatorID.jsp
http://www.palmos.com/creatoriddown.html?creatorid/
It looks like I111 is already in use.

- Original Message - 
From: "Wendel" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, July 14, 2004 12:20 PM
Subject: Creator of DmCreateDatabase


> Hi,
>
> How can i create a unique creator id for my database? DmCreateDatabase
> Im actually using I111 but i wanna a id for my use only.
>
> Thanx
>
> Wendel B Silva
>
>
>
> --
> WebMail Secrel (C) - www.secrel.com.br
>
>
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Result of DmCreateDatabase - Wrong Card

2004-07-14 Thread Ben Combee
At 11:55 AM 7/14/2004, you wrote:
Hi,
Im creating a database using DmCreateDatabase. I wanna know the result Err 
of the function to know when the error is memErrCardNotPresent, but, when 
i put a invalid card and call DmCreateDatabase the application stop and crash.
That error has nothing to do with expansion cards, like SD cards or Memory 
Sticks.  Those are accessed using the VFS APIs.  The "card" referred to 
here is the internal memory card, a concept from the original Pilot.  This 
value is always 0 except on the Handspring Visors line where databases on a 
plugin memory module would be on card 1.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Resource size?

2004-07-14 Thread Ted Peters
Ben,
aha! Thanks for the clarification. I'll go grab another cup of coffee 
and re-read the Memory Manager docs!

Thanks,
Ted
On Jul 14, 2004, at 9:50 AM, Ben Combee wrote:
At 11:50 AM 7/14/2004, you wrote:
I feel like I must be missing something simple...
Is there a way to get the correct data size of a resource? The only 
possibilities that I have found are MemHandleSize()/MemPtrSize(), but 
their documentation says "Call this routine to get the original 
requested size of a chunk." which sounds like it will be some rounded 
up size, not the actual number of bytes of data stored.
MemHandleSize is appropriate; it will return the correct length of the 
resource.  The docs are telling you that if you all MemPtrNew(100) and 
you actually get a 128 byte chunk of memory allocated to you, 
MemPtrSize will still tell you that the chunk is 100 bytes long.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Result of DmCreateDatabase - Wrong Card

2004-07-14 Thread Wendel
Hi, 

Im creating a database using DmCreateDatabase. I wanna know the result Err of the 
function to know when the error is memErrCardNotPresent, but, when i put a invalid 
card and call DmCreateDatabase the application stop and crash.

[]'

Wendel B Silva



--
WebMail Secrel (C) - www.secrel.com.br

   


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Resource size?

2004-07-14 Thread Ben Combee
At 11:50 AM 7/14/2004, you wrote:
I feel like I must be missing something simple...
Is there a way to get the correct data size of a resource? The only 
possibilities that I have found are MemHandleSize()/MemPtrSize(), but 
their documentation says "Call this routine to get the original requested 
size of a chunk." which sounds like it will be some rounded up size, not 
the actual number of bytes of data stored.
MemHandleSize is appropriate; it will return the correct length of the 
resource.  The docs are telling you that if you all MemPtrNew(100) and you 
actually get a 128 byte chunk of memory allocated to you, MemPtrSize will 
still tell you that the chunk is 100 bytes long.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Sound Stream API's Problem

2004-07-14 Thread Ben Combee
At 11:32 AM 7/14/2004, you wrote:
hi friends,
  I have made a voice recorder using Sound Stream API's .Its
working fine on the simulator but when i use it on the Tre0 270 and tre0 600
it crashes.where i create The streams..ie SndStreamCreate API...
The Treo 270 doesn't support sound streams, since it's running Palm OS 
3.5.  These APIs weren't added to Palm OS until version 5.0.

The Treo 600 does support recording sound streams when updated to the most 
recent OS version.  Earlier OS builds on the device didn't have this 
functionality.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Resource size?

2004-07-14 Thread Ted Peters
I feel like I must be missing something simple...
Is there a way to get the correct data size of a resource? The only 
possibilities that I have found are MemHandleSize()/MemPtrSize(), but 
their documentation says "Call this routine to get the original 
requested size of a chunk." which sounds like it will be some rounded 
up size, not the actual number of bytes of data stored.

I am writing code to play back raw sampled sound that I plan to store 
in custom resources in my app. I will be doing the playback using 
SndStreamCreate() and its callback. The callback has to repeatedly fill 
a buffer with data, so I need to be able to read X bytes from my 
resource, know when I'm out of data, and pad with 0 at the end.

Any help appreciated!
Ted Peters
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Sound Stream API's Problem

2004-07-14 Thread Gaurav Mengi
hi friends,
  I have made a voice recorder using Sound Stream API's .Its
working fine on the simulator but when i use it on the Tre0 270 and tre0 600
it crashes.where i create The streams..ie SndStreamCreate API...

Ne pointers plzz 


Gaurav



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Lists - tap and hold

2004-07-14 Thread Dave Lippincott
An awesome patent.  It should be really enforceable being there is no prior
art for this.  I wish the Newton did this way back when, it would have
really added to the interface.  It would have been nice if the power button
on my Palm Pro also turned on the backlight if I held it for a second or
two.  Or if an on-screen repeating button increased the frequency it
repeated as it was held down.  Nope, no prior art.

- Original Message - 
From: "David Chevalier" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, July 14, 2004 10:52 AM
Subject: Re: Lists - tap and hold


> [EMAIL PROTECTED] wrote:
> > I have a list, in which I need the user to be able to tap and hold any
entry, and it will pop up information regarding the selected item.
> >
> > Right now I am struggling with the tap and hold part.
>
> Technical issues aside, you might have legal problems with this technique
if
> you try to use it in the US (maybe australia is free of this nonsense).
>
> MSFT seems to have obtained a patent US 6,727,830 issued April 27, 2004
"Time
> based hardware button for application launch"
> The infamous "double-click" patent that I think really should be called
the
> PocketPC "tap-and-hold" patent.
> Maybe I'm wrong.
>
> good luck with that pen event loop, though.
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Creator of DmCreateDatabase

2004-07-14 Thread Wendel
Hi, 

How can i create a unique creator id for my database? DmCreateDatabase 
Im actually using I111 but i wanna a id for my use only. 

Thanx 

Wendel B Silva 



--
WebMail Secrel (C) - www.secrel.com.br

   


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: PODS-Problem Building a multi-section app

2004-07-14 Thread Richard Dumais
Thanks John for deducing that build-prc was not using sections.def.

Thanks Ben for confirming that this is a bug which at least won't exist in the final 
release of PODS 1.0. I will look at the manual 
makefile.

...Richard
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Indexing algorithm for index file for a dictionary

2004-07-14 Thread Nur
Thanks Matt and Ken for your suggestion. Well, if I store one word (or
phrase) per record and let the database sort for each insertion or deletion
action, that would cause a huge processing overhead and I doubt a user would
like to wait that long. So, I am thinking of storing several words per
record and then using a binary heap for indexing purpose. This way, in case
of insertion, I would be able to add the word anywhere and all I need to
change/refresh is the index database (which is a binary heap containing
pointer to dictionary database records) - no resorting of dictionary
database. Any comments/suggestions regarding this idea?

Thanks,
MN


- Original Message - 
From: "Matt Graham" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, July 14, 2004 9:35 AM
Subject: Re: Indexing algorithm for index file for a dictionary


> kcorey wrote:
>
> > On Tue, 2004-07-13 at 17:01, Nur wrote:
> >
> >>What would be the most efficient algorithm to use for an index file for
an
> >>modifiable dictionary database (where words can be inserted or removed)?
> >>Factors to be considered: searching speed, addition/deletion speed,
index
> >>file size etc.
> >>Algorithms to be considered: binary search tree, binary heap, .
?
> >
> >
> > It depends on a few things...are you going to sort on more than one
> > field, or is it strictly alphabetical? what's your most common access
> > type for the dictionary (lookup, insertion, deletion)?
> >
> > I would presume a lookup function on an alphabetically (only) sorted
> > database.  In that case, there's no real need for an index per se, just
> > sort the records of the database.  Slow to insert, but fast to lookup,
> > as if the database is in order, you could simply do a binary search on
> > the database.
> >
> > However, if inserts and deletes are done on a regular basis, you might
> > want to lower the cost of insertion at the expense of making retrieval
> > slower.  (For this scenario, I'd imagine a separate index
>
> If this works, you could speed up inserts and deletes by putting storing
> several words in one Palm record.  Like if you could store a max of 100
> words in one Palm record, start off w/ 50-70 or whatever depending on
> how much you want to insert and delete.  Whatever your method, if you
> will be storing large numbers of words, you'll probably want to store
> more than one per Palm record.
>
> /*
>   * Matt Graham
>   * Palm OS Developer
>   * www.healthramp.com
>   */
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Lists - tap and hold

2004-07-14 Thread David Chevalier
[EMAIL PROTECTED] wrote:
> I have a list, in which I need the user to be able to tap and hold any entry, and it 
> will pop up information regarding the selected item.
> 
> Right now I am struggling with the tap and hold part.

Technical issues aside, you might have legal problems with this technique if
you try to use it in the US (maybe australia is free of this nonsense).

MSFT seems to have obtained a patent US 6,727,830 issued April 27, 2004 "Time
based hardware button for application launch"
The infamous "double-click" patent that I think really should be called the
PocketPC "tap-and-hold" patent.
Maybe I'm wrong.

good luck with that pen event loop, though.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Newbie developer needs direction: Palm Resources (buttons), C & PODS

2004-07-14 Thread Roger Stringer

Subject: Newbie developer needs direction: Palm Resources (buttons), C & PODS
From: Phil Kelly <[EMAIL PROTECTED]>
Date: Tue, 13 Jul 2004 21:42:58 -0500
OK, I'm taking the plunge and have decided to do a little application
development and after struggling on my own for 2 weeks, I think it's
time to seek the advice of the collective.
First, I'm not a C programmer:  at best I'm a C hack.  Regardless, I
decided to try PODS as a first environment.  Luckily I've worked with
another Eclipse-based IDE so that helps a bit, but the basics of Palm
programming are not revealing themselves.
Seems like you are doing this the hard way.  Perhaps you'd be better of 
licensing a copy of the Metrowerks Codewarrior 9.x compiler for Palm OS and 
using the standard Palm SDK.

Remember that the primary focus of PODS is an early release of development 
software for a future version of Palm OS.   While it can be used for 
current versions of Palm OS, there are more stable solutions available to 
you, unless your objective to develop applications targeted at this future 
version of Palm OS.

Note: I use the phrase "future version" as there are no hardware products 
either announced or strongly rumored that use this OS version.

Roger Stringer
Marietta Systems, Inc.  (www.mariettasystems.com)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Indexing algorithm for index file for a dictionary

2004-07-14 Thread Matt Graham
kcorey wrote:
On Tue, 2004-07-13 at 17:01, Nur wrote:
What would be the most efficient algorithm to use for an index file for an
modifiable dictionary database (where words can be inserted or removed)?
Factors to be considered: searching speed, addition/deletion speed, index
file size etc.
Algorithms to be considered: binary search tree, binary heap, . ?

It depends on a few things...are you going to sort on more than one
field, or is it strictly alphabetical? what's your most common access
type for the dictionary (lookup, insertion, deletion)?  

I would presume a lookup function on an alphabetically (only) sorted
database.  In that case, there's no real need for an index per se, just
sort the records of the database.  Slow to insert, but fast to lookup,
as if the database is in order, you could simply do a binary search on
the database.
However, if inserts and deletes are done on a regular basis, you might
want to lower the cost of insertion at the expense of making retrieval
slower.  (For this scenario, I'd imagine a separate index
If this works, you could speed up inserts and deletes by putting storing 
several words in one Palm record.  Like if you could store a max of 100 
words in one Palm record, start off w/ 50-70 or whatever depending on 
how much you want to insert and delete.  Whatever your method, if you 
will be storing large numbers of words, you'll probably want to store 
more than one per Palm record.

/*
 * Matt Graham
 * Palm OS Developer
 * www.healthramp.com
 */
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Lists - tap and hold

2004-07-14 Thread Matt Graham
[EMAIL PROTECTED] wrote:
Unfortunately this didn't seem to work. While the selection now works
as I expected, the tap and hold never first.
The processing of the event only fires when there is a pen up, which
means pen down, hold, hold, hold, hold never runs my timeout code, as
it's still waiting for the lstSelectEvent to finish processing.
yeah, i was hoping that wouldn't happen.  How bout this, keep your code 
the same, but instead of popping the alert when it times out, enqueue a 
pen up event.  then display the alert in the lstSelectEvent?

/*
 * Matt Graham
 * Palm OS Developer
 * www.healthramp.com
 */
--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Re: Decode a PDB file with ANSI C

2004-07-14 Thread Dave Lippincott
Palmsource has published the PDB file format.  There are also 3rd party
controls but I'm not familiar with any for Unix.  Look through the
Palmsource docs on their developer's website for the spec and google for any
PDB libraries and/or code examples.
The PDB format is not difficult to read.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, July 13, 2004 5:50 PM
Subject: Decode a PDB file with ANSI C


>
>
>
>
> If I download a palm pdb file to a Unix server, I know there are Palm
> utilities that
> dump out the information i.e palmdump and par to output the info
> available
> But what if I had a database set up with product number and quantity where
> product
> is stored as a string and qty is stored as an int.
>
> How would I decode the pdb file? Is this possible if I know the layout of
> the file or do
> I need to use the utilities (somehow) in pilrc?
>
> Nole Mailey
> Data Conversion Specialist
> ProfitMaster Canada
> t:(800)-889-5320
> d: (204)-480-3816
> f: (204)-885-6485
> www.pmcanada.com
>
>
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


Image APIs?

2004-07-14 Thread George VS
Hi group,

I am considering building a photo album application.

Can anyone give me advice on what Image APIs may be used.
Are there any specific APIs for different devices (Palm, Sony, ..., OS5) or
a standard can be used.
What APIs are used for building the image databases (storing images) and
what APIs are used for rendering images on devices.
What formats are available. Is there any common image format (say .bmp) that
can be used for both Palm and PocketPC devices.

Thanks!
  George VS ([EMAIL PROTECTED])



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/