Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

A problem with the GPSDriver when turn off the screen

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-14-2009, 10:07 PM
schimanski's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Germany
Posts: 289
Default A problem with the GPSDriver when turn off the screen

Hello!

When I turn off the touchscreen with the on/off button, my gps-application (GPSDriver.DLL) resume on my Eten Glofiish X600 (WM6.1), no problem.

When I turn off the screen on my VPA Compact GPS (HTC P3600) and turn the screen on, it seems, that the GPSDriver locked up. The GPS data is no longer updated. When I disconnect the GPSDriver and opens it again, the GPS data is updated and the application runs fine.

I have updated the VPA Compact GPS from WM5 to WM6, but the same problem. Did anybody have an answer on this problem?
__________________
schimanski
--------------------------------------
Device: Motorola Defy, Samsung Galaxy Tab P1000
Dekstop: Asus Eee PC
Reply With Quote
  #2 (permalink)  
Old 01-15-2009, 08:39 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

What error do you get when the driver seems to be locked?
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 01-15-2009, 11:23 PM
schimanski's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Germany
Posts: 289
Default

There is no error. The application runs normaly except the data from the GPS-Chip. The GPS-parameters keeps similar until I reconnect the GPS again.
__________________
schimanski
--------------------------------------
Device: Motorola Defy, Samsung Galaxy Tab P1000
Dekstop: Asus Eee PC
Reply With Quote
  #4 (permalink)  
Old 01-16-2009, 08:12 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

If you can somehow recognize this state you can close and reopen the connection.
__________________
Basic4android documentation
Reply With Quote
  #5 (permalink)  
Old 01-16-2009, 11:06 AM
schimanski's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Germany
Posts: 289
Default

Hello Erel!

My application sends the own GPS-position to a server. I want, that the application works also, when the screen is off. A reconnect doesn't help. My Eten does it, but the VPA not. I thought that it is perhaps a windows-setting, but I dont' know which....
__________________
schimanski
--------------------------------------
Device: Motorola Defy, Samsung Galaxy Tab P1000
Dekstop: Asus Eee PC
Reply With Quote
  #6 (permalink)  
Old 01-17-2009, 06:35 PM
Newbie
 
Join Date: Jan 2009
Posts: 7
Default

This pretty much depends on the device and ROM combination. I've seen that across the different HTC devices I've had the behavior when pressing the on/off button would vary, and so would it on the same device (my current Kaiser) depending on the ROM I flashed on it.
A music player is a good test, if it stops playing when you press the power button that means the device turns off, if it goes on playing it means it sees an app is active and turns screen off instead of powering off.

On my current setup, pressing the power button WILL stop the GPS and most apps. I need to use the "Screen off" feature from Quickmenu for now (I have it mapped on a hardware button). In that case, everything continues to run. BTW, I'm looking for a way to turn the screen off in B4PPC, is that possible at all?

The solution must be what Coreplayer does. It seems they somehow manage to hook the power key, and when Coreplayer is playing music pressing the power button will just create a short skip but the device will actually stay on, the music will continue playing and for example GPS apps will continue running. So they must be able to prevent the power off command and replace it with a "screen off" command. I'd be very happy to find a way to do this as well.
Reply With Quote
  #7 (permalink)  
Old 01-17-2009, 11:09 PM
schimanski's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Germany
Posts: 289
Default

Hello Kilrah!

Thanks for your large answer. The Idee with the 'Screen off' on a hardware-button is a good idea.
I also have thought about a 'Screen off'-Function in basic4ppc. I have to check the aditional hardware-libs. Perhaps, there is something available.

I message, when I find something.....
__________________
schimanski
--------------------------------------
Device: Motorola Defy, Samsung Galaxy Tab P1000
Dekstop: Asus Eee PC
Reply With Quote
  #8 (permalink)  
Old 01-18-2009, 03:00 AM
Newbie
 
Join Date: Dec 2008
Posts: 1
Default

This is exactly the problem that I am currently encountering. I am trying to turn off the screen and leave the GPS tracking software running. So far the solution I have been using is a program called device lock, which can be mapped to a hardware button, which not only turns off the screen but also locks all the buttons, except the power button. Ideally I would like to be able to turn off the screen and lock the buttons with the power button or have the screen turn off by itself after a certain time has passed with no user input. PS I am also using an HTC Kaiser.
Reply With Quote
  #9 (permalink)  
Old 01-18-2009, 11:11 AM
Newbie
 
Join Date: Jan 2009
Posts: 7
Default

Quote:
Originally Posted by schimanski View Post
The Idee with the 'Screen off' on a hardware-button is a good idea.
Unfortunately it has its "human" limitations... frequently enough I forget to be careful and use the screen off button, and just press the power button as usual... Usually a big "ARGH!" ensues, and I have to power on again and check it hasn't screwed everything... some programs will just resume normally, but I've had a few that just crashed if they lost connection to GPS or whatever they were working with due to a power off...

So yes - in the wishlist, a way to turn screen off (the Hardware lib has ways to keep it on, but not to turn off from what I've seen), and maybe a way to prevent power off when using the power button.
Reply With Quote
  #10 (permalink)  
Old 02-21-2009, 03:38 PM
schimanski's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Germany
Posts: 289
Default Turn off the screen and make a keylock

Hello!

Knows somebody, if there is a way to turn off the screen on the device and program a keylock? I want to save energie and put the device in my jacket, when the application proceeds?
__________________
schimanski
--------------------------------------
Device: Motorola Defy, Samsung Galaxy Tab P1000
Dekstop: Asus Eee PC
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
New GPSDriver library Erel Official Updates 114 11-11-2010 09:16 AM
New GPSDriver library wolfgang Basic4ppc Wishlist 0 12-06-2008 02:10 PM
PDA screen blanker aerohost Questions (Windows Mobile) 1 06-18-2008 06:44 PM
Problem with screen objects - Please help grgczyz Questions (Windows Mobile) 4 06-01-2008 07:31 AM
Is there a way to keep the screen in the same location. XerVision Questions (Windows Mobile) 11 08-03-2007 01:46 AM


All times are GMT. The time now is 05:05 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0