Windows Phone as a game controller - windows-phone-8

I want to develop a application on Windows Phonw 8 that allows me to use the phone as a remote control for desktop. My application is runnning like this: the phone is a client that connects to a TCP/IP server, that is located on the PC. The client sends to server the data from accelerometer. I want to know how could i use this data to make my device something like a gamepad, to control a game. Is a way that i could do this? Could you give me some information, or what i need to study? Thanks a lot.

Well, you just answered your own question. If you make the TCP connection to the machine, you are free to send any data from the phone to the target computer. And if you wrote that game yourself, you can control it.
However, if you want to play any game with your phone, you will have to write your own windows driver and that is not something trivial.
Read more Touch, Input, and HID: Architecture and Driver Support

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

Windows Phone control tv over wifi

I'd like to create a Windows Phone 8.1 app to connect to a TV and have basic controls (change channels, turn on/off).
I know It's hard to have an universal remote for every TV, but I'm just testing so It could work to a specific model/maker.
My first guess is to connect to a smart tv over wifi connection, but I can't find any site to describe how to do this or how do I start researching. I only got links to apps already made, but not on how to build it.
Anyone knows how this connection works?
Thanks!
i dont think this is really related to Windows phone specific. but here is what you can do:
find out what kind of API the TV has. it's probably some Rest or SOAP based webservice you can call. if there are existing apps (maybe for other platforms) you can use Fiddler to check the network traffic from these apps to the TV if you set your pc as "man in the middle" with fiddler.
as soon as you have what you need look into HttpClient examples on how to send these requests toward your TV.
fiddler :http://www.telerik.com/fiddler
HttpClient: https://msdn.microsoft.com/library/windows/apps/dn298639

gps receiver and windows phone 8 emulator

I'm debugging some windows phone 8 location tracking application and I want to purchase gps-receiver and connect it to my notebook for reality test of application with real location data. Will it work? Can the application running in the emulator get these real data?
Thank you.
I'm not sure if the emulator can communicate with the GPS receiver. You can, however, use the emulator location data to simulator it. Take a look at the MSDN guide to learn more.

Windows Phone 8 - Make a call without user notification

Is there any way a Windows Phone 8 app can make phone calls, sending SMS, and perform other cellular network activities without user interaction?
According to this answer https://stackoverflow.com/a/7342769 it is somehow possible to perform AT commands to directly access the cellular functionality on Windows Phone 7 (in an inofficial way). Since the Windows Phone 8 SDK supports native code, my question is if you can make use of this to send the required AT commands or access the RIL layer somehow.
In case anyone is wondering why I need this: it's not about an app wich is going to get published but it is needed for an automated testing process.
You cannot do that, this is not possible in windows phone

wifi videostreaming from laptop to device

trying to create a program that works as following .video is captured by web cam of laptop and it is streamed to android phone using wifi .According to the video displayed, user types some messages and sents back to laptop simultaneously.
googled and found that making an ad-hoc wireless network will work,but forum
discussions says its not supported by android.want my app to work from 2.2 onwards
Which Socket communication protocol (UDP or TCP) protocol should be used to stream video?
Since want to implement two way communication, which one must be the server (laptop or mobile device)
Please guide me how to implement this
use connectify or any virtual router to get connected to your android phone.so app can be connected with your laptop or desktop.
go for UDP its fast and recover data even if it's lost and also use a proper data streaming strategy or a protocol.
According to your application design , i will recommend you to make your laptop work as a server. Also it would be best if you choose to use threading in both application and recommend your app to act as server or client as it's required shows more robustness..!