jeudi 9 août 2018

UWP access buttons

Helloo all I'm currently developing an app for surface pro 3 that should be capable of:

  • detecting whether touchscreen was tapped and where
  • getting device information (product ID, amount of RAM, CPu model etc.) done by launching console application first which is capable of getting this information and saves it to a specific folder, UWP app can read its results from there and log them.
  • accessing sensor data like: accelerometer, gyroscope and ambient light sensor
  • testing cameras as i can command an app to make picture using either front or rear camera
  • testing microphones (both front and back)
  • testing speakers (i made synthesizer that is able to make beeps at given frequency at given stereo mode (left or right if both)
  • testing wifi - so it can connect to desired wifi network
  • bluetooth (swill working on it...)

I have already figured out quite a lot and put out a lot of work into it already, all listed tests are already developed on that UWP application so switching to completely different platform means rewriting whole app which I don't have time anymore.

This app will be automatically installed on a factory-resetted surface pro 3 that has no special configurations enabled, so tinkering with its settings is resource-hungry and not recommended process at all.

Now I have some other serious issues regarding of device: how can I test the functionality of all the buttons Surface pro 3 has ? It has 3 buttons: Volume up, Volume down and power button but pressing power button sets screen to clack and locks device. Can I make app override basic functionality of a button so that if button is pressed it detects it and logs its result. same question goes to volume up and down buttons.

Only similiar questions about this are here: Another thread on StackOverflow

I also cannot use same solution as I did with getting device information because test must be repetitive while app is running. (and UWP app cannot launch console application by itself)

Any help regarding this topic is highly welcome.

Aucun commentaire:

Enregistrer un commentaire