how can i programatically to turn wifi on/off in windows10 - switch-statement

Not using netsh, I found a way to switch airplane mode(Programmatically turn airplane mode on or off Windows), but I can't find any way to switch wifi state by code. Does any one know?

Related

How to communicate with a device without known wifi password

When configuring my baby camera, I just needed to press a button on the camera, and then my Android phone detected the camera, after which I could configure the camera with my Wifi settings.
I want to do something simular with a hobby project, but I have no idea how this works. How does the camera communicate with my phone? I wasn't asked to enable my Bluetooth, but it was enabled, so maybe it's using Bluetooth, but I don't think so.
Is there any other way, besides Bluetooth, to do this?

Physical USB Keyboard for coding on the Android AIDE app

I am running Android 8.1 Oreo on a smartphone device.
I would like to know, can I mount this KeyTronic USB Keyboard onto my Android phone using a USB to microUSB Adapter?
I want to use it in place the default GBoard soft Keyboard on Android, and use it to code on AIDE.
I don't know if the screen is too small, but I want to try using the keyboard while lying down with a pillow under my head to have me lean up, and the keyboard and smartphone stuck to my upper bent legs. I think this way I can code while lying down and probably don't need a tablet.
Thanks.
Of course, AIDE (Android IDE) supports USB keyboards, as well as mice (e.g. via Bluetooth). In this way, it is possible to code almost like on a laptop.
AIDE on a 10" tablet enables fairly comfortable work, but have in mind that e.g. on a 5" phone you won't be able to show on the sreen more than 13-15 lines (in landscape mode).
The question, however, is whether YOUR DEVICE supports USB keyboards, which cannot be determined since you mentioned neither the brand nor the model. To answer this, simply refer to the manual of your phone.

Windows 8.1 Bluetooth searching issue

I have a windows 8.1 based lap top which supports Bluetooth.
I wrote a java based bluetooth server which gets connections from Android.
The issue is, the device sometimes get invisible(or to say not shown) on android devices.
I've tried with other laptops or Android phones, but sometimes it just doesn't get searched.
I think it's not about my java server program. Even if there's a problem with my program, it should at least be shown on the bluetooth search list of other devices.
I found a very crude solution about this issue.
Always running the 'change pc settings(not the exact name)' app of windows 8.1, and going to 'PC, devices' -> Bluetooth makes it always searchable. If I turn this off(I mean the 'change pc settings' app, not turning off bluetooth), the bluetooth cannot be found by other devices.
Why is this happening? My purpose is, bluetooth server must be turned on automatically after boot, but the reliability of the bluetooth device is failing my intention. However, since my crude solution above is temporarily solving my issue, I do not think it's a hardware issue.
So, my question is :
1) Why is this happening? And how can I mend this?
2) How can I run windows metro app through windows shell? If I can't find any other solution about this, I will have to write a batch script to always run the solution thing above.
Going to Change PC Settings>PC and devices>Bluetooth is initiating a Bluetooth device search. As a side effect, the Bluetooth is also made Discoverable (pairing mode). However, this Discoverable setting is temporary, only while the PC is searching for remote Bluetooth devices.
If you wish to keep Bluetooth Discoverable at all times, you need to check the "Allow Bluetooth devices to find this PC" button box, found in Bluetooth Settings. I found Bluetooth settings by right clicking the Bluetooth system icon. Can also be found in Devices and Printers, by right clicking the Bluetooth adapter icon.

Remote device by smartphone android

I'm a newbie in this world.
I wanna build an application to remove some device.
Ex:
I wanna turn on or off lights and use my smartphone (Android) to do.
But, I don't know how to do? Can you show me all of steps?
Thank you so much!
Use a Raspberry Pi (runs linux).
You can have the RPi general purpose I/O lines to control, say, relays for lights etc. and then use the many Android apps to remotely control it.

Is it possible to develop Google TV apps using a Mac and an actual Google TV device?

I don't want to use Linux to use the emulator. Is it possible to use an actual device instead?
If possible, please, show me the references you used to answer.
Yes, you can. But instead of using the traditional USB method, you must debug over IP (this means that both your computer and the Google TV must be on the same network)
To start with, we will assume you have a Google TV and a Workstation [your Mac]
On your Google TV, open Settings, and go to Applications -> Development.
Turn Remote debugging on
Click Debugger IP address and enter the IP of your Workstation (if you have DHCP enabled on your router, you will need to look this up)
Find the IP address of your Google TV [it's available in Settings -> Network -> Status]
On your Workstation, run:
adb connect <Google TV IP Address>
If you got everything right, you will now be able to debug on Google TV just like any other device...
Caveats...
If you for some reason want to disconnect later, run: adb disconnect <Google TV IP Address>
If the IP of your Workstation ever changes, you will need to update this on the Google TV [step 3 above]
Source: Google TV developer guide here
http://mobile.tutsplus.com/tutorials/android/android-futures-creating-android-apps-for-google-tv/
Yes it is very much possible to use a device instead, please read the aforementioned link more specifically the section on testing:
Testing Your Application
As there is no emulator yet available with a true Google TV Android
image, we can only test the effects of the higher screen resolution
and using the application with a touch screen.
The easiest way to do this is to create a new AVD using Android 3.1,
API Level 12, use a resolution of 1920×1080 (or 1280×720), and use a
touch screen setting of false. The performance of the emulators may
make this difficult, but at least you can get an idea of what the
screen will look like and how the navigation or your application will
function without touch.
The only option now is having a Goole TV device and setting it up for debugging mode,
Also there is currently a topic in the Google TV issues asking for the Mac OS emulator.
You can star the issue to receive updates about it and also help to request this feature.

Resources