BackgroundTask Conditions Bug - Windows Phone 8 Development and Hacking

I have a very strange issue in my wp8.1 store app. Im running a BackgroundTask every hour. I have set a condition to run only when wifi is available. This works, but if i disconnect wifi, enable mobile data connection, and after some hours re enable wifi, the BackgroundTask diesnt run anymore. What can this be?
Greez

Probably, MS bug.

But there are many other apps, which are using background tasks. The internet connection required condition is there to address this i think?

By the way, what kind of the background download task are you talking about? The "old" way, by using Microsoft.Phone.BackgroundTransfer or a new one, by using Windows.Networking.BackgroundTransfer?
I may recommend you to use a new way; you also may try this sample to be sure that it works as you need...

No, not BackgroundTransfer, i mean BackgroundTask, which i have Time Triggered...

Show us some Sample code for your backgroundtask.

andy123456, sorry I was confused 'cause you've mentioned WiFi/cell data...
And I agree with snickler: if you want to get some help from xda members, please prepare some code snippets or - better - a complete project/solution to prove your words. Nobody will do it for you...

Sorry for the late answer. I figured it out and now i have a new question. The problem seems to be my lumia1520. On my second device, lumia530 which i use for developing only, all works fine without any problem. I have reinstalled my app but now the background task does not fire anymore. It seems to "hang" or so. Is there a limitation of background apps in wp8.1?

Related

Now that we have GPS, can someone help me to...

Hey, Everyone,
W/ the advent of havin' GPS on our Titans, I was wonderin' if anyone knew of any anti-theft software. I already have Sprite Terminator, but if the tele's hard-reset, that's purrty much k'poot, y'know? So, I need somethin' that req's a pwd to be hard-reset, but would also allow me to send SMS to the tele' to send its GPS co-ord's, lock device, and/or wipe storage. Sprite Terminator lets me do all, but pwd-protect hard-resets. Also, I use GPS Test v.1.04 to effectively activate GPS (COM4, 4800 Baud, etc.) upon startup, but it opens maximized, and it can just be exited to disable GPS. Does anyone know how to:
1. Open GPS Test @ startup min'd, and
2. Hide GPS Test from task managers (by this I mean memory.exe and QuickMenu (v.2.7, & my task manager of choice)? (I also use CeleTask, so any help w/ hiding GPS Test in "Running Tasks", and Sprite Terminator (SGStartup.exe) from "Running Processes", would be GREATLY appreciated.
Thanks, and 'hope the RE:s to this post help everyone.
kain144000 said:
1. Open GPS Test @ startup [minimized]...
Click to expand...
Click to collapse
Upon noticing I hadn't gotten any RE:'s yet, I'd realized I could probably just run a MortScript (although, 'not too familiar w/ it) for this operation, right?
::bump::
C'mon, is there really no one interested in this? Wouldn't y'wanna find your tele' if lost, or worse, stolen? ::gasp::
i would love some software like this as well...
much easier then calling your phone when you lose it
and if you ever get in an avalanche or something people can find you easier.
have u tried astrogpslauncher??? its a small proggy...and u can make shortcuts to startup menu...im gonna try and will report back
rbadh91 said:
have u tried astrogpslauncher??? its a small proggy...and u can make shortcuts to startup menu...im gonna try and will report back
Click to expand...
Click to collapse
I don't think you read the thread, AstroGPSLauncher cannot be used to access the 6800 remotely. It is a great prog, but only for opening the GPS and keeping it open while you are looking out. It does not transmit a signal that can be tracked.
serfboreds said:
I don't think you read the thread, AstroGPSLauncher cannot be used to access the 6800 remotely. It is a great prog, but only for opening the GPS and keeping it open while you are looking out. It does not transmit a signal that can be tracked.
Click to expand...
Click to collapse
i know AstroGPSLauncher CANNOT be used remotely...but if it enables the GPS...then the Terminator can send the location etc....btw i still didnt get the terminator trial email so im still waiting for it.
i brought AstroGPSLauncher into the picture because...
Its small - minimal memory/CPU usage
Its always minimized - It always launches in the background...does not let the user know its running
Shortcuts - A user can create a path/shortcut that it will launch itself plus anything else; ie: terminator
True about AstroGPS, I hadn't heard of Terminator; will test. Thanks rbadh91.
tried it
serfboreds said:
True about AstroGPS, I hadn't heard of Terminator; will test. Thanks rbadh91.
Click to expand...
Click to collapse
ok it wont work...the phone would technically freeze every time it went into standby when running astrogpslauncher.
unless the terminator program can launch an app when you send a txt msg like it deletes everything upon recieving a certain txt msg
if possible we could send a txt msg and it would launch astrogps...as we all know astrogpslauncher is a small app that runs in the background and not visible to most task managers and does not put strain on the cpu or memory so less chances of phone freezing
it would be doable IF and only IF the program is capable of launching another program
::sigh:: Perhaps you're all missing my point of this thread. I already know that the GPS doesn't stay on while the device is suspended, and initiating the GPS isn't the prob. The prob is that Sprite Terminator doesn't have a hard reset pwd, so you can just hard reset the phone upon finding/stealing it, and then it can't be traced. I initiate my GPS upon startup by copying the GPSTest.lnk to /Windows/StartUp, so my GPS is actually always on, running in the background as long as the device is awake. The prob w/ this is that since I need the GPS initiated in order to track the phone, what am I to do if a thief simply closes the program, in other words, turning off the GPS? That's why I'd like to hide it from task managers. Also, the Sprite Terminator process can be killed (which actually intercepts txts formatted a certain way). In other words, if an idiot steals my tele', chances are I can trace it so I can &(#^in' KILL 'EM for the audacity of disturbing my peace, but if another 933k comes across the tele', he'd just say, "Oh, let me kill this SGStartup.exe process...nah, I'd better just hard reset the phone to be safe," y'dig?
tie the phone to your arm so they can't steal it and you can't lose it.
No, really, though. My thoughts are cooking a gps launching utility into a ROM with it set to auto run (much like astrogps, minimized/invisible). Even if they hard reset it should still have that program on it, set to autorun on startup. So unless they actually KNOW what they're doing, you should be okay.
What? you have gps on the titan?? internally? how?
Psionfenix said:
tie the phone to your arm so they can't steal it and you can't lose it.
No, really, though. My thoughts are cooking a gps launching utility into a ROM with it set to auto run (much like astrogps, minimized/invisible). Even if they hard reset it should still have that program on it, set to autorun on startup. So unless they actually KNOW what they're doing, you should be okay.
Click to expand...
Click to collapse
i agree 100% with that theory...well i've been cooking roms lately and i am currently testing this hard reset thing...so taking what both of you (kain144000 & Psionfenix) are saying and putting it into one solution.
so if we cook the gpslink which kain144000 said into the rom, so whenever someone did a hard reset it would still be there...you can rename the process so it shows as "ppc.exe" or "service.exe" insted of "GPS.EXE"
Now that we have solved the issue of having the GPS running there when we hardreset; the next part is to track it; as for that part im still waiting for the terminator trial so i can cook that into the rom and test it
the terminator trial can be download on their website. if you go to support then terminator theres a download link. for some reason they don't sent the emails. i'm going to try to use the gps test
There was some software I used on the Treo 650 that would intercept a text message containing a specific string and do a variety of different things based on how it was configured. It could lock the device, wipe it, wipe the SD card, and so on.
A perfect program would do something similar, except have the ability to launch AstroGPSLauncher, and some kind of other program like Franson BuddyTracker which will broadcast the current location on a website.
There's a program or whatever depending on what service you have, family finder or something like that, so you can use that to track them.
Get close to where they are, call them up and watch them answer the phone, then bust their skull in for stealing.
For GSM Phones, Not exactly a GPS based system.
http://www.bak2u.com/phonebak.php
http://free.3dtracking.net/home.aspx
http://www.wimp-software.co.uk/
http://www.mologogo.com/
Just a few available...Some of those use SMS to send location secretly other are simple friend finders.
But you know if you should ever have your phone stolen your carrier can track it immediatly and alert authorities even without GPS enabled...
Unless you plan on confronting the theif yourself (not really wise) your better off going that route.
But this might be good if you lost your phone and don't remember where....
Asphyx said:
http://www.bak2u.com/phonebak.php
Click to expand...
Click to collapse
from what i see thats only for GSM phones and it only uses SIM card to figure out its lost or stolen
Try the 3d tracking link...
Guess what I found...
http://www.wimp-software.co.uk/
With mobile phone crime an ever increasing problem, W.I.M.P. offers an advanced phone tracking security system. In the event of your phone being lost or stolen, you can simply send a specially formated SMS text message to the phone and the W.I.M.P software will silently intercept it. W.I.M.P. will then send back a message containing the phone's GPS location in a format which can be entered into any common mapping application.
Click to expand...
Click to collapse
The only question is whether or not we can get the internal GPS turned on when that text message is intercepted. I just sent off an email to their support email:
The Mogul has internal GPS which is not active all the time, but has
to be turned on. Currently this is done automatically by certain
programs like Google Maps or Live Search when the GPS option is
selected, but other programs like TomTom or iGuidance do not turn the
GPS on automatically and need to use a launcher like AstroGPSLauncher.
Is WIMP able to turn on the GPS like the other programs or, if not,
can the launcher be executed when the special text message is
intercepted?
Click to expand...
Click to collapse
Will post back when I receive a reply.

Opening data connection

Hi there - I'm working on a Flash Lite application for PocketPC, which is designed to have web connectivity and for a single use event.
I've discovered that the only way to initiate and then maintain a data connection for Flash Lite is to open an IE window on WM5 and refresh it on occasion, then refocussing back on the Flash app.
I've tried the persistent registry key hack, which works fine when there is a connection, and does maintain it - however my application is for people wandering around in and out of "signal" coverage areas. So I really need my app to re-trigger the data connection somehow.
Flash Lite 2.1 does have GetURL commands, which I'm using, but once the data connection dies, nothing appears to re-establish it. So I've added an indicator to show this problem... but its a shame it can't reconnect on its own.
Any ideas guys?
I've even thought about a work-around - like task switching and "refreshing" the IE http session using the hardware buttons, because that does seem to work, but obviously its not the best user experience really - and obviously I want to keep my application running fullscreen rather than showing IE during that process - and confuse the user.
I've messed around with PQzII, to try this - but its pretty hard to configure... and the author hasn't responded to any questions - and I'm not really that sure it will do what I need in "the background" if you see what I mean!
Has anyone tried something like this, is there a simple standard app I can launch that is already in the Pocket PC windows folder to kick start this using a hardware button trigger if no such reconnect is ever going to be possible in the FlashLite environment?
I've looked on the Adobe site, several people are having this issue already - and information is scarce unfortunately!

Flexilis Mobile Security Beta

Hey Everyone,
Wanted to tell all of you about a neat app we're developing, called Flexilis.
It's a mobile security suite for Windows Mobile devices, that keeps your device and data safe from loss, theft, hackers, viruses, malware, spam, and more.
We've currently opened signups for our private beta testing, if you're interested in checking it out, just hit up http://beta.flexilis.com and sign up, and feel free to chat about the product here
If anyone has questions or runs into trouble, just shoot us an email at [email protected] and we'll help you out!
-Chris
Community Director,
Flexilis Inc.
[email protected]
Also, if any of you request an invite and it hasnt gotten granted within a day or so, let me know and I'll take care of it.
If you weren't asking for so much personal information, you might actually get people to try your app...
we're actually working on revising that, the reason we ask for the phone number is because it's used to sms you your download link for the software later on in the process, we're in the process of moving that to later on in the process, as well as an explanation of why we ask for it.
Thanks for the feedback!
-Chris
NRGZ28 said:
If you weren't asking for so much personal information, you might actually get people to try your app...
Click to expand...
Click to collapse
Hey man,
nice thing with this soft, that we give the phone number is not so a big problem i think. could you post a little bit infos about the program? Cause on your side there a not many informations.
But i ithink i'll give it a try...
I just have one little question, on you privacy page you write:
When you use the Flexilis Services, our servers automatically record certain information about your usage. These logs may include information such as the IP address, mobile device identification number, phone number, operating system, version information, wireless carrier, web requests, browser type, browser language, referring pages, landing pages, pages viewed, or other usage information.
Click to expand...
Click to collapse
Why do record the pages we visit?
we're still working on a little bit of a tour/walkthrough area of the software on the front page, as we get closer to public beta, but for now there's nothing there yet. My first post in this thread gives a brief summary of it though. Feel free to shoot me an email at [email protected] with any questions!
-Chris
There's nothing in the software that tracks the pages you view or anything, what that refers to is on our end we track what pages users use on the flexilis website the most, much the same way other websites do, to track what pages and content on our site our most popular, etc.
JeckyllHavok said:
I just have one little question, on you privacy page you write:
Why do record the pages we visit?
Click to expand...
Click to collapse
I'm still not sure what your program do, but it certainly doesn't behave the way I expect.
1) Why to require authorization so often?
2) Contrary to the stated phone number is not accepted for authorization. Only email.
3) I don't really know what you mean by "a few minutes", but currently Flexilis is authorizing my phone already for more than two hours. I see no progress bar and I don't understan what's going.
4) I can't stop authorization process.
5) Why the authorization process continues even when I close all connections? Did you invent new method of communication?
6) The program is hidden from task managers and process viewers. What for?
I didn't sniff the traffic but currently behavior of your program reminds more of malware rather than security software.
My conclusion: As I don't understand what your program is doing, I'm not going to test it anymore until additional guidance is provided.
Sorry, if I'm sounding harsh. It's just writing style (tough work, you know )
No worries
1] once it's authorized the first time, it shouldnt have to authorize again, what kind of phone are you authorizing it on? we're making some fixes to the authorization process to make it even simpler that should roll out in the next release.
2] if you're outside of the US, you might need to add your country code and such if that's the case, let me know, or send me an email to [email protected] so we can look into it.
3] per all authorization questions, it'll try til its authorized, again we're fixing this.
4] per the it being hidden from task managers, we've given this some discussion, for right now it's a security feature to try to prevent theives from disabling the software, though we might fix that in the future to have the app visible in there somehow.
As far as being more indepth on all of the features, we are working on a tour of sorts to explain it all before the beta goes public.
Thanks for the feedback!
-Chris
mrcaze said:
I'm still not sure what your program do, but it certainly doesn't behave the way I expect.
1) Why to require authorization so often?
2) Contrary to the stated phone number is not accepted for authorization. Only email.
3) I don't really know what you mean by "a few minutes", but currently Flexilis is authorizing my phone already for more than two hours. I see no progress bar and I don't understan what's going.
4) I can't stop authorization process.
5) Why the authorization process continues even when I close all connections? Did you invent new method of communication?
6) The program is hidden from task managers and process viewers. What for?
I didn't sniff the traffic but currently behavior of your program reminds more of malware rather than security software.
My conclusion: As I don't understand what your program is doing, I'm not going to test it anymore until additional guidance is provided.
Sorry, if I'm sounding harsh. It's just writing style (tough work, you know )
Click to expand...
Click to collapse
Authorizing a device ... what a hassle. I finally gave up since I couldn't tell if it was doing anything. No more testing for or feedback from me.
fredcatsmommy: sorry it didnt work out for you. hopefully in the future when that's fixed (should be less than a week), we can lure you back, it does some amazing stuff, but we do run into bugs from time to time due to the vast number of windows mobile devices out there, and only having a small test bed of them to work with. Keep your eyes peeled, and we'll have that fixed soon!
fredcatsmommy said:
Authorizing a device ... what a hassle. I finally gave up since I couldn't tell if it was doing anything. No more testing for or feedback from me.
Click to expand...
Click to collapse
I think you need to tell us what the app actually does?
I have read this and your site and still don't know what it does?
Will hold off on trying it till I know.
How long is the initializing and activating supposed to take?
seriously, the authorizing bugs should have been worked out before releasing a beta here. we cant even tell if its running, authorizing, stealing information from our devices, etc.. I surely hope this is a legit app youre pushing, if so, FIX IT, so we can at least see what it does.
thx
I installed and authorized with no issues what-so-ever... contrary to what everyone else is saying everything seems to work just fine. works great and doesn't seem to take much memory... not a single complaint here!
Advertising your application for beta purposes is usually not a problem. But, it seems you are here more for "recruiting" testers than anything else. Looks like you joined for this purpose only.
My suggestion to you, is to give a little more description on your develpoment. Seems there are too many questions going unanswered here.
jhw549 said:
I installed and authorized with no issues what-so-ever... contrary to what everyone else is saying everything seems to work just fine. works great and doesn't seem to take much memory... not a single complaint here!
Click to expand...
Click to collapse
what device do you have? did you do anything special to get it working?
I have a sprint vogue and installed to main mem and the data conn. is constantly active.
Polargoat said:
what device do you have? did you do anything special to get it working?
I have a sprint vogue and installed to main mem and the data conn. is constantly active.
Click to expand...
Click to collapse
I have an HTC Mobul/Titan using default Rom/Radio with WinMo 6.1
To install it I just did what I would any other and installed it onto internal memory...
Correction: The application works just fine if you don't have push e-mail (aren't connected to a remote exchange server), I have been having problems all day with my push e-mail from mail2web which I use to forward my work e-mail to my phone. I have therefore decided to remove it as I can't afford to have it interfere with work.

[REQ] Time sync software

since the asynchronous time problem still exists it would be great if someone could programm a little app that can sync time (like every 30-60 minutes) in order to keep it up to date.
id like to do it myself but my java and linux knowledge is way too little. but i think for the pros out there it shouldnt be too hard a task
i really hope someone could address himself to this task for all of us sake, since i dont know how long it will be until the problem is fixed.
Quick fix for the moment is to enter airplane mode, then come out. It seems to cause a clock update.
Will look out for a sync app, I'm sure there will be one, there's loads for other WinMo, Pre, Symbian etc
i searched 4 an app but didnt find any. therefore the thread.
airplane mode only updates the clock if clock is set to "automatically", because it syncs it from the network. but seriously, thats not even remotely something like a "fix".
There is a nice (free) app in the android Market called "ClockSync". It lets you sync your device via NTP. Scheduling the sync is also possible.

what app would you find useful ?

Hey guys.
I'm now looking for a bachelor thesis and I was thinking about writing an android application.
Preferably one of which aren't millions out there and a more complex one (using GPS and stuff).
So I'm hoping you could help me. Do you have any tips ?
Cool idea! good luck with this.
Unfortunately i can't think of anything my phone can't already do
May be some thing like an android firewall, which pops up when an applications initially try to connect to internet asking if we want to allow or reject the connection and remember the choice.. You know.. Much like an OS firewall. Something like littlesnitch (MacOS)
I dunno if this is possible, but would be great.
How about a GUI for bluetooth..
See what's connected and easily transfer files to another device..
I would double request for interactive firewall
Sent from my Legend using XDA App
Interactive firewall, that remembers your settings for each Application based on your GPS co-ordinates & the network you are connected to (Wifi, mobile and the IP range on the Wifi network - or options to that effect ) That's some advanced stuff to do!
Maybe build a complete network tool on top of the firewall? one that does subnet/CIDR calculating, pinging, MTR, tracerouting/pathping, SMTP/POP3 checker etc
I'd use it for sure!
Thanks for the ideas.
The BT GUI looks more interesting to me, but I see there's a bigger demand on the firewall.
Aren't there any similar firewall apps out there ?
I found Droid wall... Anyone tried it yet ?
On the other hand, I didn't find any BT app...
btw keep 'em comin'
grandioso said:
I found Droid wall... Anyone tried it yet ?
Click to expand...
Click to collapse
Yup, i'm using it, but... Always after installing new app i keep forgeting to set up rules for it on Droid Wall So interactive firewall would be awesome.
There are two apps I want that don't exist. One is dead simple - a timed SMS sender. How often have I thought "must text Mum about X" at past her bedtime, then forgot to send it come the morning. It would be well handy to be able to specify a send time for a message.
Other is location-aware to-do/reminder. Most "Remind Me" apps work on times - either set times or countdowns. That's not how I roll. I want reminding when I get somewhere, not at a time.
"Remind me of $message when I get [home|work]"
Where $home = joining wireless network "HomeNet" and $work = joining wireless network "Worknet"
You could also do notifications on leaving those networks - "When I leave work, remind me to pick up milk/eggs"
There are GPS versions of these, but I'm not leaving my GPS on all day just for one thing. Wifi is accurate enough for me (although you could build in GPS as well, for added accuracy if want/needed by the user)
Hand-written notes (a la Staesj) is good too. As is speech-to-text notes.
Those are all good ideas. I'd use all of 'em. Lol
Good luck mate!
johnnytruant - that is a BRILLIANT idea !!
Already contacted my professor.
If he won't agree with it, I think I'll stick with the firewall (if no one has a better idea).
johnnytruant said:
There are two apps I want that don't exist. One is dead simple - a timed SMS sender. How often have I thought "must text Mum about X" at past her bedtime, then forgot to send it come the morning. It would be well handy to be able to specify a send time for a message.
Other is location-aware to-do/reminder. Most "Remind Me" apps work on times - either set times or countdowns. That's not how I roll. I want reminding when I get somewhere, not at a time.
"Remind me of $message when I get [home|work]"
Where $home = joining wireless network "HomeNet" and $work = joining wireless network "Worknet"
You could also do notifications on leaving those networks - "When I leave work, remind me to pick up milk/eggs"
There are GPS versions of these, but I'm not leaving my GPS on all day just for one thing. Wifi is accurate enough for me (although you could build in GPS as well, for added accuracy if want/needed by the user)
Click to expand...
Click to collapse
These are pretty much all already covered by Tasker...
Ah. I didn't know about Tasker.
Still, an easy-to-use, single-purpose location-aware reminder/notes app is probably more useful to more people - plenty of non-techie types, who would likely be scared of Tasker - would definitely find such a thing useful.
So I finally got this app as my bc thesis.
Get ready for the best organizer ever
There's gonna be a usual calendar, plus location based reminders, plus friend location based reminders, notes (usual/voice, with/without notification) and alarms (with shake/flip/cover/voice-to-snooze), web-sync, and much more
Personally the main thing I've been dying for is SAMBA shares from my phone, but without having to root. If this was possible (or at least easy to do) I'm sure it would have been done by now, though.
Otherwise I think a facebook video uploader would be nice. I can't share more than 1 at a time with the onboard apps and have never found anything better, so I end up using Qik and sharing them to facebook from there.
Another idea (which has already been done, poorly) is to use your phone as a mouse/keyboard. I am not sure how many apps there are for this, but the last one I used (I forget the name) was pretty terrible. It's handy for HTPCs. The app itself wasn't the big problem, it was the Windows server program. It would take focus randomly, freeze, and there was no good way to hide it other than minimizing it.
grandioso said:
Hey guys.
I'm now looking for a bachelor thesis and I was thinking about writing an android application.
Preferably one of which aren't millions out there and a more complex one (using GPS and stuff).
So I'm hoping you could help me. Do you have any tips ?
Click to expand...
Click to collapse
No gps, but a video player (with flv support) that works on azure would be very useful to many people
grandioso said:
So I finally got this app as my bc thesis.
Get ready for the best organizer ever
There's gonna be a usual calendar, plus location based reminders, plus friend location based reminders, notes (usual/voice, with/without notification) and alarms (with shake/flip/cover/voice-to-snooze), web-sync, and much more
Click to expand...
Click to collapse
sounds great
what's the best music player ?
rewen said:
Personally the main thing I've been dying for is SAMBA shares from my phone, but without having to root. If this was possible (or at least easy to do) I'm sure it would have been done by now, though.
Click to expand...
Click to collapse
estrong file manager can access pc samba shares no problem...not sure if thats what your wanting to do though...
kazzaz said:
what's the best music player ?
Click to expand...
Click to collapse
I quite like Cubed.

Categories

Resources