newbie question about services and activities

RDG

New Member
Licensed User
Longtime User
Basicly I want to write a service that can send an email, essentially its a location monitor , when a certian set of criteria are met I want it to activate an email form collect some information from the user and send it. I tried it just an activity and of course at some point the OS runs out of resources and kills it. The service runs fine but I cant seem to start a new activity and give it focus, especially if the screen is locked from a timeout.

Any thoughts or advice are much appreciated.

BTW. I am a long time .NET and an old VB devotee, I have been struggling with the eclpse tools and even mono-for-android for a while, and this is just the platform I needed to get up and running quickly. Well done
 

RDG

New Member
Licensed User
Longtime User
Thanks for the answer, I guess the only way to do an automatic "unlock" would be to actually build a screen lock as well? Are there any samples for that using B4A ?
 
Upvote 0

Kamac

Active Member
Licensed User
Longtime User
Well, you cannot unlock your screen when it has been locked, but you can prevent the user from locking it using PartialLock and ReleasePartialLock.

PartialLock will make the phone stay awake, even when the user presses 'power' button to lock it. Make sure to use ReleasePartialLock to set all to normal again.

I hope this is what you've searched for :eek:
 
Upvote 0
Top