user interaction windows phone 8 - windows-phone-8

I have to do my university project. We suppose to develop windows phone application that should track the user behavior and interaction with phone while driving.
At the moment we just trying to understand what we able to do and track.
we thought about monitoring maybe
incoming call, incoming sms and afcourse if the user answered to those,
maybe outgoing call
headset plugged in/out
click on any hardware button
screen touching..
and all the interrupts made by the user.
What our options? Can someone refer me to relevant reading?

for the purpose of your app, I suggest you implement something with voice control so that the driver can interact with his windows phone without having to touch it.
Visit these links for more info:
Here's the first link
Here's the second link

Related

How to highly recommend a user to launch an app when the app is not up?

I have the need to have an application always active in windows phone 8. All users have to use this application. More precisely, all users will have a background agent inside this application which will receive and send informations.
Note : I'm talking here about a private application use by a limited number of users.
During my research, I became aware that i couldn't paramater my application in order to launch it at startup. This isn't possible with Windows phone 8. So, i start looking for others options.
In my understanding, the only way to do that in the Microsoft way is to use the notifications. If the phone don't have the application launched, a notification is send periodically to invite the user to launch the application.
My question, did I miss some functionnalites in Windows Phone 8 whiches propose the same functionnality in a better way ?
Thank you very much

Close Windows Phone 8 App Programmatically

I've a Windows Phone 8 Application and with a button click, I want to ask user something like "Are you sure?" and if answer is yes(ok) then application will be closed.
I've searched a lot but couldn't find anything except "Application.Terminate()" but seems this is not the right way how to do it.
Though it is possible to do this using System.Windows.Application.Current.Terminate() as Nikita says it is not recommended to offer such a functionality. Here's an excerpt from the Windows Phone Guidelines on MSDN:
Don't include Close buttons or offer users other ways to terminate
your app in its UI. Users should feel confident that the system is
managing their apps for them. The system can terminate apps
automatically to ensure the best system performance and reliability,
and users can choose to close apps using gestures on Windows or
through the Task Switcher on Windows Phone.
The user should only be able to Close an app using the home or back-button.

Launch application automatically from an SMS on Windows Phone 8

I would like to launch an application using parameters provided from an SMS.
The behaviour I wish to achieve is that as soon as the user receives an SMS, the application will be launched with the parameters provided in the SMS. I.e. seamlessly present the SMS in a more user friendly way.
I have experimented with URI protocol associations and so far I can send an SMS to the test phone with text unleashed:param=test (protocol is taken from book “Windows Phone 8 Unleashed”, code is in WP8UnleashedSource_01_05\Source\FileAndProtocolAssociations).
When pressing the link in the received SMS the application is launched successfully.
But it would be great if the is a way to also launch the application automatically as soon as the SMS is received.
Is this possible on all Windows Phone models and versions from 8 and up?
Or are there other approaches, for example use push notifications, that are better suited to achieve the seamless use-case I described?
Thanks & Regards
This question is similar to Launch App through SMS (URI-Association) but I would like to concentrate on the automatic launch.
This is not possible on the Windows Phone 8 due to some security reasons.
This might be possible in Windows Phone 8.1. I read somewhere that 8.1 supports 3rd party SMS clients. This might mean there may some event that fires when new SMS are received. I am not sure though.
I would still suggest you to use Push Notifications.

Run Windows Phone App in background without UI

I am developing a Windows phone 8 app that need to run only in background with UI. Is there any way I can run the app in the background, or without actually being open?
It depends upon what you want to do in the background. Generally speaking you can't implement something like a Windows service that will startup automatically when the phone is launched.
That said you can run your app in the background within given limitations. Check out MSDN for detailed information.
Why all these limitations you might ask yourself? It's to provide a good battery life to the user.
Edit:
For the periodic agent to start running the app must be started once. Further the agent must update a live tile (user must pin it to the start screen) or the app has to be once opened every 14 days.
Another option might be using push notifications to trigger an update..

Windows Phone 8 SDK Voice Commands and Fast App Resume

I'm having a problem integrating Fast App Resume into my Windows Phone 8 app. When I hold the start button and enter a voice command, the command won't fire a Navigate event if the app is already loaded. I've tried intercepting every event I can when the app loads.... nothing.
Does anyone have any insight on how this should be handled in code?
Thanks!
I have confirmed with Microsoft that this behavior is indeed the case, and it is the way they intended it. They have left feedback to Engineering to take a look, but we can help it along by voting for it on UserVoice here.