App running under lock screen with StreamSocket and SpeechSynthesizer

On wp8 silverlight this was easy. PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled;
In 8.1 xaml how would I go about this? I have found an ugly hack online that keeps the screen alive, this is not a solution that I can use. My users need to start my app, select a car transponder that they want to hear lap times from, connect to my server
(over wifi to a local computer running my server code, no internet) hit the lock button, then put their phones in their pockets while they drive and get the lap times on their earpiece. 
I have the new and more cumbersome text-to-speech working (how you have to have an invisible media element on a the active page for mediaended to fire was especially annoying!). I have the streamsocket stuff working, just not under the lock screen. I don't
really need it to be a "background task". It is understood and preferable that it disconnects the moment you leave the page where get your live lap times. 
controlchanneltrigger seemed promising, you can use it for store apps... but not phone.
To summarize.
1. connect to server with streamsocket api
2. lock screen and put phone in pocket
3. app should stay alive and as packets arrive from the server (one packet every 10 seconds on average), store lap time results and say them out loud using text to speech.
https://youtu.be/0VnOh6s3hww
At this point I'm pretty fed up and I'm about to pull the plug on the WP8.1 version, my first experience with xaml was... unpleasant... So if you have some good keywords I can search for that would be appreciated.

Hi torg,
The most similar API on Windows Phone 8.1 is
RequestActive | requestActive method, see this for more information: How to keep the display on during audio/video playback (XAML)
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • I have a iPhone 4 and lately it has been shutting down randomly when I still have battery left. It also doesn't turn back on, until I plug it in to the charger. But when I plug it in, the low battery sign shows up then comes to the lock screen with 68%.

    I have a iPhone 4 and lately it has been shutting down randomly when I still have battery left. It also doesn't turn back on, until I plug it in to the charger. But when I plug it in, the low battery sign shows up then comes to the lock screen with like 68% left.

    Morning Clementine Lin,
    For more information this, please see this article:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Take a look at the Will not turn on, will not turn on unless connected to power, or unexpected power off section.
    Have a nice day,
    Mario

  • Is it possible to enter the lock screen with itunes or something else because i've damaged my phone and the touch screen is damaged that i'm not able to unlock it to make a backup on itunes

    is it possible to enter the lock screen with itunes or something else because i've damaged my phone and the touch screen is damaged that i'm not able to unlock it to make a backup on itunes ?
    it would be very important to put the data from iphone 5 to my new 5s ..
    looking forward to get some help
    thx

    You cant unlock your phone unless you put in your password. It may be possible that the apple store could do something about it.

  • Having an intermittent issue where my iMac blanks out on me. On restarting I get bands running down the screen with pixels jumping around, then the white screen of death and nothing... Wouldn't restart all weekend, now fine..? any ideas whats wrong?

    Having an intermittent issue where my iMac blanks out on me. On restarting I get several bands running down the screen with pixels jumping around within the bands, then the white screen of death and nothing... This happens intermittently and usually restarts OK. Happened again three days ago and wouldn't restart for two days (again the bands/pixels etc) but now operating fine? Any ideas whats wrong with my iMac and what the solution may be? Also gets very hot from time to time, particularly if I'm playing music/watching youtube/movies for extended periods. Mac is 3.5 years old, running OS X 10.6.8, processor 3.4 GHz i7 memory 8GB 1333 MHz DDR3

    If you live near an Apple Store, make a Genius Bar appointment to have the computer tested. Supposedly there is no charge for testing. Use 2nd link if not near an Apple Store or aren’t in the US.
    Genius Bar Reservation US
    Authorized Service Provider

  • HT4623 Is anyone else having issues with scaling down photos to fit the screen for home and lock screens with ios7??

    Is anyone else having issues with scaling down photos to fit the screen for home and lock screens with ios7??  Installed ios7 this morning. Tried to use one of my photos from camera roll as background for lock screen and I can't scale the photo to fit the screen.  Never had a problem before and now when I pinch the photo to get it to the right size of the screen, it won't stay that way. The photo is enlarged way beyond the screen size so it doesn't look right. Does anyone know how to fix this?

    Hello, cliffiapp4.  
    Thank you for visiting Apple Support Communities.  
    Here are the steps that I would recommend going through when experiencing this issue.  
    Resolution
    If a single application is not responding or stops responding when it opens, you can force it to close.
    If the device is unresponsive or if certain controls aren't working as expected, restart your device.
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If the above steps do not resolve the issue, contact Apple.
    iOS: Not responding
    http://support.apple.com/kb/TS3281
    Cheers, 
    Jason H.  

  • I have an iMac from 2008.  When I start I get gray screen with apple and turning gear. Next blue screen. Then light blue screen with turning gear. Back to blue screen.  Now just back and forth blue to light blur

    I have an iMac from 2008.  When I start I get gray screen with apple and turning gear. Next blue screen. Then light blue screen with turning gear. Back to blue screen.  Now just back and forth blue to light blur

    Reinstall OS X:
    Reinstall OS X without erasing the drive
    Do the following:
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install the Combo Updater for the version you prefer from support.apple.com/downloads/.
    Reinstalling Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Continue button.
    Note: You can also re-download the Lion installer by opening the App Store application. Hold down the OPTION key and click on the Purchases icon in the toolbar. You should now see an active Install button to the right of your Lion purchase entry. There are situations in which this will not work. For example, if you are already booted into the Lion you originally purchased with your Apple ID or if an instance of the Lion installer is located anywhere on your computer.

  • I spilled milk on  my IPhone - can see it running under the screen - what to do

    I spilled milk on my IPhone - can see it running under the screen - what to do

    There's nothing you can do about this other than live with it and hope that it doesn't damage the iPhone (likely that it will). If it does eventually fail, you'll need to take or send your iPhone to Apple and pay for a replacement.
    Regards.

  • On boot up, just white screen with logo and windmill.  Forever! Can't get out.

    On boot up, just white screen with logo and windmill.  Forever! Can't get out.

    Backup in case your disk is failing.  (Post back if you need instructions on how to do that w/o booting OS X.)
    Start up in Safe Mode;  http://support.apple.com/kb/PH14204?viewlocale=en_US
    If it boots reliably in Safe Mode then it is probably a software issue.  Post back for more instructions.
    Reset PRAM: http://support.apple.com/kb/PH4405
    Boot in Recovery Mode.  (Hold down the Command (⌘) and R keys as your computer restarts.)  Run Disk Utility.  Click on the upper left system disk icon.  Does S.M.A.R.T. report “Verified”?  If not the disk is failing and will need to be replaced.  Click on the icon underneath and indented to the right, usually called “Macintosh HD”.  Repair Disk.  It should finish normally with a green OK message.  If it does not try to repair it again. 
    If it will not finish with the green OK message then use Disk Utility to erase the drive and then reinstall OS X.  (Be sure you have a backup before erasing the disk.  Post back if you need instructions on how to do that.)
    If it repaired all errors and is still not booting normally, reinstall OS X.
    If it is still sick after all these steps then the disk probably needs to be replaced or it could be a disk cable.  You replace these inexpensively and fairly easily yourself or take it to an Apple store for them to do it for you at a higher cost.  If it is still under warranty or AppleCare have Apple do it for you for free.  You may want to have Apple check the health of the system and disk before repairing it yourself.  Post back if you need instructions on replacing the disk and/or testing the disk cable. 

  • MacBook Pro has a grey screen with circle and slash and will not start up or start into safe mode.

    MacBook Pro has started to get a grey screen with circle and slash and will not start up or start into safe mode.  This happened once previously, however, it allowed a safe mode reboot and then worked for a week or so.  While utilzing the machine, it started with the spinning beach ball for about 5 minutes, went into a shut down mode and then rebooted and came back up with the grey screen with a circle and slash after a few minutes.  For the past three days it has been stuck and will not allow it to boot into safe mode.  Any idea or suggestions?

    Try starting the MBP with the OPTION key down.  If you see two HDD icons, select the recovery Icon.  From the 4 option menu, select Disk Utility.  Select Disk Utility>First Aid and run Verify and Repair. 
    If you cannot get into the recovery partition, make an appointment at an Apple store genius bar.
    Ciao.

  • Every since I got my iphone4 out of recovery mode (stuck on screen with  usb and itunes), now everytime i plug up my iphone to computer it asks me to restore (i did several times) but that all its doing, its not even giving me the option to sync my music

    every since i got my iphone out of recovery mode (stuck on screen with itunes and usb cord) by restoring it, NOW every time i plug my iphone it only asks me to restore my iphone (i did this several times). It will not even give me the option to sync my music back...this is extremely frustrating. Please help

    so i cant sync music or apps HELP

  • HT1349 So everything on this page relates to Apple products. I am running a Sony laptop with Windows and as soon as I install iCloud desktop iTunes has stopped working. The only time I ever needed it. GREAT! Do you do this on purpose?

    So everything on this page relates to Apple products. I am running a Sony laptop with Windows and as soon as I install iCloud desktop iTunes has stopped working. The only time I ever needed it. GREAT! Do you do this on purpose?

    The latest version of iTunes tends to act up occassionaly. See this support document http://support.apple.com/kb/HT1923 and remove and reinstall iTunes. This will not affect your music library, apps or other content in iTunes. Make sure you follow the steps exactly.
    Also, just copying the ringtone will not get it into your phone. iPhone ringtones have an extension of m4r, and you have to first take the Media player file and covert it to an AAC version. From there you need to change the extension from m4a to m4r. If you cannot see file extensions in Windows Explorer, which is actually the default action, go into Organize>Folder and search options, then hit the View tab, and then remove the checkmark by hide file extensions from known file types. After you have created the m4a version and changed the file extension, you can double-click on it and it should show up in the Tones folder in iTunes. From there, sync the phone and it should show up in the list of ringtones.

  • My iphone 5c is frozen on the lock screen with a text message, I can't swipe it to unlock it. What do I do?

    My iPhone 5c is frozen on the lock screen with a text message on it. When I try and swipe the screen it sticks about halfway through the swipe. What do I do?

    A reset may help. Tap and hold the Home button and the On/Off buttons for approximately 15-20 seconds, until the Apple logo reappears. When the logo appears, release both buttons.
    No content is affected by this procedure.

  • My hard drive crashed. Replaced my hard drive. Installed Yosemite. Restored from Time Machine most recent backup before hard drive crash. Now laptop won't start up. Grey screen with circle and slash through it.

    How to start up laptop from grey screen with circle and slash through it?

    After you installed Yosemite and prior to restoring from the backup, were you able to start the Mac?

  • How do i turn off apps running in the background with the new upgrade?

    how do i turn off apps running in the background with the new upgrade?

    They changed it a bit, but you can still close apps. Double click the Home button to pull up the currently running apps. Side scroll over to the app you want to close, then swipe up on the app *window* (not the icon at the bottom).
    = L.I.

  • Stuck with black screen with Apple and download bar approx 1 quarter done. Downloading Yosemite. It has completely stopped. I can't access anything. Please help

    Stuck with black screen with Apple and download bar approx 1 quarter done. Downloading Yosemite. It has completely stopped. I can't access anything. Please help

    You should really read the manual.
    "How do you restore from backup? "
    Restore.  When given the choice, choose to use backup.
    "And how can I check to see if the pics and videos are on my computer somewhere first??"
    They would only be where you put them.  What program did you use to import them?  Pics/vids taken with ipod are not part of the sync process at all.  You should be importing them just as you would with any digital camera.
    If you did not import them, then they are not on your computer.

Maybe you are looking for

  • Scuff on MacBook Pro (Late 2006) non-glare screen

    My otherwise pristine MacBook Pro (Late 2006 model, 2.33GhZ C2D) has developed a 1/4-inch scuff right in the middle of the screen. Small, but highly distracting, particularly when the area beneath it is white. Can anyone recommend a product to minimi

  • I CANNOT USE SKYPE cannot login

    your updates after last update7.6 my PC is frozen new skype uses 11-18% CPU 300 MB memory, computer frozen so i uninstalled, i installed again version 6.00 because 6.00 use 0% CPU and 22 MB ram and i cannot login to old version STOP BLOCKING OLD VERS

  • Accounts Receivable and collections report project-wise

    Dear all, My client wants accounts receivable and collections reports project wise. are there any reports in PS which satify this requirements. If no, pls suggest me how to cater to this requirement. Pls help me on this issue. Thank you very much in

  • Mail client using pure Sock programmin??

    Hello guys, I want to code a mail client like OutLook Express using pure Sockets.Not using JavaMail...or something like that. I think I should study about ESMTP protocol. Where should I start? where can I find good tutorials thanks

  • Package Stack

    Hi How to know whether i am using <b>package stack 11</b> or not....of SAP Netweaver Developer Studio.....what is Adobe Life Cycle Designer... how to install Thanks & Regards Ravi Shankar B