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.

Background running application

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2007, 02:41 AM
Junior Member
 
Join Date: Sep 2007
Posts: 16
Default Background running application

Hello experts and senior members.
Could u please share your idea on how to make an application which runs on the background?

When running, even with the task manager in the PPC, you cannot see whether it is running or not.

Target of the application is to send the latitude or longitude via sms:
1. when the built-in GPS in PPC detects ground speed exceeds some value.
2. when the PPC receives sms with certain text from certain sender

Some kind of spy-program.
Reply With Quote
  #2 (permalink)  
Old 09-20-2007, 08:27 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

In ppc apps, if a form is not shown by the end of app_start sub then the ap closes....

I have planned a similar app, but never got to code it, but you could make it as a ghost app with a splash screen, that after showing it self, got sent to background by hiiding it....

If shuch app was palced in the startup folder, then it would be launched every time the device was turned on (not awaken, for that you need to use a lib to detect external events)...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #3 (permalink)  
Old 09-26-2007, 09:15 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The Hardware library now includes ShowTodayScreen which you can use to build background applications.
There is an example in the help manual.
Reply With Quote
  #4 (permalink)  
Old 09-26-2007, 06:34 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Great addition!!!!
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #5 (permalink)  
Old 09-27-2007, 07:09 AM
Junior Member
 
Join Date: Sep 2007
Posts: 16
Thumbs up

Erel,
Thanks again for the updated library.


Before the new hardware library updated, I used FormLib.
Initially I set flb.New1("Form1",B4PObject(1))
Then, after runtime, I add flb.MinimizeBox = True
With this one, you will not see the running program even in the task manager.
You cannot terminate this program. Only by restarting your PPC, the program can be stopped.


LAP-PC:
Dual-Core 2.0Ghz, 2GB RAM, 120GB HD
PDA:
DOPOD D810, 2GB miniSD
DOPOD U1000, 4GB miniSD, 8GB HD
DOPOD C730, 2GB microSD
Reply With Quote
  #6 (permalink)  
Old 09-27-2007, 08:29 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I guess you are trying the example in the help manual.
If you remove the line: Form1.Text = "", it will show in the Task Manager.
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
application already running micro Questions (Windows Mobile) 3 09-04-2008 09:20 AM
send information to running application Mr_Gee Questions (Windows Mobile) 8 08-06-2008 11:10 AM
Background Task RandomCoder Questions (Windows Mobile) 11 07-01-2008 12:06 PM
Background Color im4retro Basic4ppc Wishlist 1 05-27-2008 05:11 PM
running in background tvrman Questions (Windows Mobile) 15 08-24-2007 03:37 AM


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


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