Re: How to prevent applications to stop after receiving a phone call?
There are special phone management events (system and phone library) and notifications that circulate before, during and after a phone call. If your app handles them, then the phone app will not (mostly). Open the phone library and register to receive the phone management events. Also, register for the phone management notifications. Then, call the phone and watch what happens. For more info check out the Handspring phone API documentation for Treo 600/650, and the sample apps that come with the SDK. On 10/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi all, I have a Treo 650 and working on improving Palm Chess Client to play chess on freechess.org. One inconvenience of playing chess with that is that after receiving a phone call the chess application stops and the UI displays the Phone application in its place. This happens also with standard applications like Calculator, but there are others like the TomTom Navigator that behaves much nicer: when a phone call gets in the usual "Accept/Cancel" alert is displayed, but after clicking on "Accept" the UI still displays the Navigator! And when the call is over just another small alert is popped up. What is the trick behind such "always alive" applications and how can I replicate such behaviour? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- yisdersomenimororsisasisdenderisorsis? Jeff Loucks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to prevent applications to stop after receiving a phone call?
Hi all, I have a Treo 650 and working on improving Palm Chess Client to play chess on freechess.org. One inconvenience of playing chess with that is that after receiving a phone call the chess application stops and the UI displays the Phone application in its place. This happens also with standard applications like Calculator, but there are others like the TomTom Navigator that behaves much nicer: when a phone call gets in the usual "Accept/Cancel" alert is displayed, but after clicking on "Accept" the UI still displays the Navigator! And when the call is over just another small alert is popped up. What is the trick behind such "always alive" applications and how can I replicate such behaviour? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Creating forms that use scrollbars and/or repeating buttons
Thanks Doug, Repeating buttons are the ones that appear with a top and bottom arrow. I have seen them in lots of apps. They are mentioned in Lonnon R. Foster´s excelent book: "Professional Palm OS Programming (pag 22)" and they also appear in PODS´ resource editor. I probably didn´t made myself clear, I want to design a form that has more input fields than can be put into a 160x160 screen so I definitely have to use some sort of scrolling mechanism. The most relevant idea here isn´t the type of scrolling (both scrollbars and repeating buttons achieve this purpose ) mechanism that I end up using but how to implement it. I have tried with the resource Editor but its impossible so I'm starting to think that the only possibility that I have is to generate all the form from code but this is where I am kind of lost. I have no idea on how to implement this, how to generate the form from code and integrate it with scrolling actions, and show/hide elements according to scrolling events sent by the user, how can I control the rendering area to assure that it doesn´t exceeds 160x160 or does somehow Palm takes care of this for me? In general this seems to be a very complex issue 'cause believe me, I spent almost half day googling for examples without success. If anybody can help me with an example or clearing the FUD for me I´ll be really thankful. Best regards to all, Jorge Vásquez On 10/2/06, Doug Reeder <[EMAIL PROTECTED]> wrote: On Oct 1, 2006, at 6:31 PM, [EMAIL PROTECTED] wrote: > I am using the Palm OS Resource Editor that comes bundled with the > Eclipse PODS to create a form which doesn't fit in the 160x160 > screen so I would need to either use a repeating button or a > scrollbar. I'm not quite sure what you mean by "repeating buttons" in this context, but the OS only has support for scrolling text fields, not other controls. Forms can't be larger than 160x160 (excluding any effect from a dynamic input area). It is possible to create the effect of a "multi-page" form by making controls appear and disappear, as, for example, happens in the Sounds application on the Treo 650/700p. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Jorge Andres Vasquez -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Creating forms that use scrollbars and/or repeating buttons
On Oct 1, 2006, at 6:31 PM, [EMAIL PROTECTED] wrote: I am using the Palm OS Resource Editor that comes bundled with the Eclipse PODS to create a form which doesn't fit in the 160x160 screen so I would need to either use a repeating button or a scrollbar. I'm not quite sure what you mean by "repeating buttons" in this context, but the OS only has support for scrolling text fields, not other controls. Forms can't be larger than 160x160 (excluding any effect from a dynamic input area). It is possible to create the effect of a "multi-page" form by making controls appear and disappear, as, for example, happens in the Sounds application on the Treo 650/700p. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Strange sleep/wakeup notifications
I don't actually need to figure out what's causing the device to "dream", but as you suggest I just need to figure out when the device has really woken up. My brilliant idea was to record the time I get a late wakeup event, and set an alarm for 2 seconds in the future. If I get a sleep event before the alarm fires, I know I was just "dreaming" and I cancel the alarm. If the alarm fires, I know I've actually woken up. Trouble is, it seems that just by setting the alarm, I actually wake the device up fully, and I don't get the immediate sleep event anymore. Maybe I need to try this strategy again with a proc alarm instead of a regular alarm. Any more clues on how to sort this out? Thanks for your help, Gary Jeff Loucks wrote: What you are seeing is probably a short dream sequence. If you watch the event queue, you'll probably see an AutoOff character about 3 ticks after the LateWakeup. Some devices, the screen is coming on and going right back off again. If you put in a delay when the AutoOff of SleepRequest occurs, you'll probably see the screen come on. There are several reasons for the device to wake up. Many interrupts will do it. If you are using the serial port, I've seen it get into a state where it won't let the device sleep. If the phone needs service, the device will wake. If NetLib needs to respond to something, the device wakes. Try shutting down various services and see if your waking stops. This has been a thorn in my side for a long time. The spec says EarlyWakeup, then either SleepRequest/SleepNotify to go back to sleep, or LateWakeup, signifying it's waking past dream state to fully awake (screen on). This makes sense, but this is not what happens. What actually happens is you'll get the EarlyWakeup, then the LateWakeup, then either AutoOff event to go back to sleep or a selection of other events indicating you might come fully awake. Sometimes, I need to know when the device is dreaming, instead of actually waking. It is difficult to determine. I find you receive the EarlyWakup and then the LateWakeup, and then you have to wait for something else to happen. If I just wanted to know if the device is awake (screen on or not), I don't have to look at anything (if I'm running, I'm obviously awake!). But, I need to know the difference between dream and wake. That's tough because you have to 'predict' waking. It also inserts dead time in your process, because you can't tell what you'll be (dream or wake) until some later event occurs. On 9/29/06, Gary <[EMAIL PROTECTED]> wrote: I've registered myself for three notifications: sysNotifySleepRequestEvent sysNotifySleepNotifyEvent sysNotifyLateWakeupEvent Mostly I seem to get notified when I would expect, but I'm now seeing some strange behavior. I'm getting three notifications back to back, in this order: sysNotifyLateWakeupEvent sysNotifySleepRequestEvent sysNotifySleepNotifyEvent So it looks like the device is fully waking up, and then immediately going back to sleep. This patter then repeats every 15 seconds. I'm watching the device, and it's not waking up (i.e. the screen stays off). I've currently got my app set on an alarm to wake up once per minute (for debugging purposes), and this is working correctly. Screen comes on, app does it's thing, and the device goes back to sleep. I then get the strange wakeup/sleep combinations every 15 seconds until the device wakes up "for real" again. Anyone ever seen anything like this? Thanks, Gary -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Newbie: PDB to MySQL over internet
OK so as for the general logic I was thinking about: 1. Use a http/https POST function to send the pdb to the web server. On the web side I would do a php script to receive the file and copy it to a temporary directory that would persist after the script ended. 2. Send a second http/https GET function to start a php script to convert the pdb file sent to a MySQL db. After the file was converted I would delete it on the server side. 3. Send a third http/https GET function to do an SQL Query to sync the new MySQL db records with any existing ones. 4. Send a fourth http/https GET function to run a php to convert the new MySQL db records into a pdb. 5. Send a fifth http/https GET to download the new pdb file. Eventually I would hope to merge the 5 separate requests into a single script but I am separating them until I get it working. Does this logic make sense? Thanks Greg -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Is there any html rendering lib available on palm?
On 10/2/06, Dmitry Grinberg <[EMAIL PROTECTED]> wrote: netfrontlib that blazer uses can do this but it is undocumented, and doe snot export 68k entries, only arm. you CAN extract all html to card, and open them in blazer, then set yourself up as default launcher, and when you get control back delete the html files off the card, and reset the default launcher to what it was before you changed it. The Palm developer guide does document HMTLLib for recent devices -- Treo 650, Palm TX, and Treo 700p should all be on the supported list. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Is there any html rendering lib available on palm?
netfrontlib that blazer uses can do this but it is undocumented, and doe snot export 68k entries, only arm. you CAN extract all html to card, and open them in blazer, then set yourself up as default launcher, and when you get control back delete the html files off the card, and reset the default launcher to what it was before you changed it. On 10/2/06, Keith Hans <[EMAIL PROTECTED]> wrote: Hi, I'm trying to write a chm reader for my palm tx device. So far, I've finished porting chmlib to palm and it could be used to extract documents from chm files. Is there any html lib available so that I needn't to write it from scratch? Any hint or suggestion is welcome! Thanks, Keith -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- Best Regards, Dmitry Grinberg Software Engineer, http://PalmPowerups.com (847) 226 9295 AIM: DmitryGrinberg MSN: [EMAIL PROTECTED] ICQ: 165589894 Y! IM: dmitrygr2003 -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Is there any html rendering lib available on palm?
Hi, I'm trying to write a chm reader for my palm tx device. So far, I've finished porting chmlib to palm and it could be used to extract documents from chm files. Is there any html lib available so that I needn't to write it from scratch? Any hint or suggestion is welcome! Thanks, Keith -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Some of these questions shouldn't be asked
of the forum... Not that they are bad questions, or that we aren't just tickled to answer them, but that they often mean the person asking is missing out on the fun and experience of first seeking the answer for themselves. So many of the questions can be answered by writing a simple little 5 minute app. If you want to know what events are sent when such and so happens, watch the event queue and find out. If you want to know about notifications, and I know this is a little more difficult, register for them and see what happens. Some of the best insight is gained while badgering a little problem with test code. Don't be afraid of playing around with the OS. What's the worst that could happen? A reset? I encourage everyone to play. Keep a test app just laying around. When questions arise, throw some code in the test app and see what happens. If you have a simple terminal emulator on your MAC or PC, hook it up to the serial port on your device, simulator or emulator and spew text debug to it. If you like the debugger, blunder about with that. Do whatever it takes to mess about with the device and OS. You're likely to learn a lot of fun stuff. However, if you just can't figure it out, go ahead and ask. We don't mind the opportunity to play :) -- yisdersomenimororsisasisdenderisorsis? Jeff Loucks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Launch code
No, but you can set the protect flag on the app and then you'll get a delete protected notification. The notification handler has the opportunity to permit deletion by unprotecting the app. On 10/1/06, KP <[EMAIL PROTECTED]> wrote: Is there indication when an app is about to be deleted on Palm OS Garnet? Thanks. KP "P. Douglas Reeder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On Sep 30, 2006, at 2:18 PM, KP wrote: Hi, Does an app receives a launch code after installation? If so, which launch sysAppLaunchCmdSyncNotify -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- yisdersomenimororsisasisdenderisorsis? Jeff Loucks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Reasons for getting netErrSocketBusy
netErrSocketBusy means the previous activity is still in progress on the socket. A connect takes time to either complete or fail. Different networks may have different completion times. Are you using the socket in non-blocking mode? If so, this is telling you that your previous connect is not finished. If you want to cancel the connect, either set the socket to blocking and call connect to wait it out, or close the socket to cancel the connect. netErrSocketBusy on a non-blocking connect is a great tool for connecting asynchronously. Initiate the connect, which will return busy, connected or some real error. While not connected or a real error, go do other stuff and then come back and try again. Eventually, you'll connect, get a real error, or you'll decide you're tired of waiting (timeout). On 10/2/06, Troy Lokitz <[EMAIL PROTECTED]> wrote: Does ANYONE know what netErrSocketBusy means on a netlibsocketconnect call? Why would I get this? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- yisdersomenimororsisasisdenderisorsis? Jeff Loucks -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Problems doing a Std IO Application
Hi, everyone I´m trying to do a Standard IO application, it´s working, well I print the hello world in the form that I created with my provider application, everythingb seems to be working good, until I call gets() and the system crashes. So I debugged it and it says that I do´t have a form event handler, I did define it, but it seems, that when I run the module(the app linked with StdIOPalm.c) and I use the callback for gets() whose code is in the provider app, the event handler gets lost somewhere. Please, someone help me, I know there´s people who knows what´s happenning. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
WebBrowser issue
Hello, I am testing one webbrowser application in codewarrior IDE(ver.8).when i am using header #include "WebBrowserManager.h",and compile,it shows error file "WebBrowserManager.h" cannot open.Is any PALM profesional developer to point me my error. Thanks Rabindra -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Newbie: PDB to MySQL over internet
grrr, i hit ctrl-enter and message was sent before i finished it i just wanted to add that it doesn't matter if you will send pdb or cvs, for transfer you may use http library which is i think on every palmos5 device (tungsten t5,tx and treo 650 for sure). this will save you time with creating valid requests and parse response headers. its documented in palmonse sdk and there is also usable samle code coming with this sdk Michal Seliga wrote: > what i almost did once (project was cancelled before finished) was that from > my > application i created cvs file with all changes, sent it to php script (cvs > file > was parameter sent by post method) which accepted it and returned another cvs > file as result which i parsed and inserted/updated records in database. > > to save download/upload time you may use some zlib compression for both sent > and > received data, cvs generally compresses well. i didn't used it, but it was > planned for next sgate which never came > > in my case i had this cvs file only in memory chunk, it depends on how big > changes do you want to transmit. it would be easier if you would have some > custom synchronization server on other side, then you wouldn't be limited by > http protocol and you could do it more eficiently. but it would be more > difficult to do. > > Greg wrote: >> I am thinking about trying to link a Palm app with a web based app. I have >> done a bit of php and MySQL as well as Palm development but I am not sure >> how I would go about Syncing a Palm pdb with a MySQL db. >> >> Does anyone know of some info where I could read up on how to do this or >> even if it is possible? >> >> I have looked at pdb-php at sf.net: >> http://php-pdb.sourceforge.net/ >> >> Which gives me a good framework for when I get the records transfered but I >> am still not sure how I set up the transfer from the Palm app to the >> internet server. >> >> If anyone has some pointers I would appreciate it. >> >> Thanks >> >> Greg >> > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Newbie: PDB to MySQL over internet
what i almost did once (project was cancelled before finished) was that from my application i created cvs file with all changes, sent it to php script (cvs file was parameter sent by post method) which accepted it and returned another cvs file as result which i parsed and inserted/updated records in database. to save download/upload time you may use some zlib compression for both sent and received data, cvs generally compresses well. i didn't used it, but it was planned for next sgate which never came in my case i had this cvs file only in memory chunk, it depends on how big changes do you want to transmit. it would be easier if you would have some custom synchronization server on other side, then you wouldn't be limited by http protocol and you could do it more eficiently. but it would be more difficult to do. Greg wrote: > I am thinking about trying to link a Palm app with a web based app. I have > done a bit of php and MySQL as well as Palm development but I am not sure how > I would go about Syncing a Palm pdb with a MySQL db. > > Does anyone know of some info where I could read up on how to do this or even > if it is possible? > > I have looked at pdb-php at sf.net: > http://php-pdb.sourceforge.net/ > > Which gives me a good framework for when I get the records transfered but I > am still not sure how I set up the transfer from the Palm app to the internet > server. > > If anyone has some pointers I would appreciate it. > > Thanks > > Greg > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
re: Reasons for getting netErrSocketBusy
Does ANYONE know what netErrSocketBusy means on a netlibsocketconnect call? Why would I get this? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Newbie: PDB to MySQL over internet
I am thinking about trying to link a Palm app with a web based app. I have done a bit of php and MySQL as well as Palm development but I am not sure how I would go about Syncing a Palm pdb with a MySQL db. Does anyone know of some info where I could read up on how to do this or even if it is possible? I have looked at pdb-php at sf.net: http://php-pdb.sourceforge.net/ Which gives me a good framework for when I get the records transfered but I am still not sure how I set up the transfer from the Palm app to the internet server. If anyone has some pointers I would appreciate it. Thanks Greg -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Zire 71 Backlight adjust
hi, i searched some stuff about backlight but i didnt get the correct answer which fits my question. does someone have already a small application which allows to set the backlight to a value between 0 and 100% ? thanks in advance philipp -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: High res Bitmaps
On 10/2/06, Flavio Renga <[EMAIL PROTECTED]> wrote: Or is better to use Constructor for Palm OS? Have I to modify the system DEPTH, or only the bitmap DEPTH? use PilRC codewarrior R9 does not use constructor anymore; it actually used PilRC to generate the resources. you can edit .rcp files yourself; but, there are also a number of tools out there to help you with a GUI approach. the most up-to-date method is via text file editing. -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: High res Bitmaps
Or is better to use Constructor for Palm OS? Have I to modify the system DEPTH, or only the bitmap DEPTH? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: High res Bitmaps
Thanks! So you suggest me to use PilRC? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: High res Bitmaps
On 10/1/06, Flavio Renga <[EMAIL PROTECTED]> wrote: Does anyone know how to insert high res (deep color) bitmaps in an application? I'm using Falch.net Developer Studio, but only BITMAPCOLOR seems to work: BITMAPCOLOR16K, BITMAPCOLOR24K and BITMAPCOLOR32K doesn't display anything on Falch.net virtual device. Thanks all! are you using the DEPTH option inside the BITMAPCOLOR tags? you can define 72dpi or 144dpi (hires). falch.net utilities are no longer supported; so, any new tags that were added to PilRC may not actually appear in their virtual device. -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/