Physical USB Keyboard for coding on the Android AIDE app - keyboard

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.

Related

USB Controller on Chromebook

Pretty new to ChromeOS as have tried googling but can't find anything of how to write something to control my USB Nes Controller to use it pretty much as a keyboard to play emulators online, much less system demanding than running it all through linux.
that product page doesn't say how the device presents itself to the OS. is it a keyboard ? if so, it should "just work" ...
you can find out by plugging it in and then going to chrome://system and look at the lsusb and dmesg output. or look at this page for getting a system debug log.
if it is an arbitrary device, there is the Chrome USB API, but that only works for dedicated apps. i don't think you can write an interface as an extension which would allow working with any website.

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.

Are there any programmable barcode scanners that can call a webservice?

I am looking at integrating a C# application with a barcode scanner.
The last time I did this was with Delphi 1 (win 3.11) using a scanner that plugged in-line into the keyboard cable.
Looking around it appears most scanners are USB based these days and assume they emulate keyboard entry.
Anybody know of more sophisticated/programmable scanner that can call a webservice or even just do a basic POST/GET this would eliminate the C# application and the computer to support it?
There are a number of Ethernet and Wifi code readers on the market, though they tend to be targeted at industrial applications and usually cost more than the USB models. The company I work for makes such readers, and our fixed-mount DM200 reader is just such a device.
You could use a small computer (or even a microcontroller) with RO media, USB, and networking capabilities plus a psu to turn any suitable scanner to a network one. Raspberry Pi, for example, could do it and seems to be hip these days.
Alternatively some portable devices (like Android tablets) could probably use a camera or even a USB scanner for scanning codes and come with capable networking features.

how to turn Bluetooth on/off with J2ME?

I want to write a program in J2ME to turn the Bluetooth on/off automaticly in a certain time without the user permission.
I'v been looking for a while but I couldn't find an answer.
Some phones will automatically switch bluetooth ON when a MIDlet starts using the Java ME Bluetooth API.
Other phones will not.
AFAIK, there is no Java ME API to switch bluetooth ON/OFF.
I have yet to find a mobile phone that automatically switches bluetooth OFF after some time of inactivity.
Any way you find to do this (I'm sure it's doable in Symbian OS C++, for example) will be platform-dependant.
There is definitely no way to programmatically switch your Bluetooth on and off in Java ME. However what may be useful is to switch between discoverable modes:
LocalDevice.getLocalDevice().setDiscoverable(DiscoveryAgent.GIAC);
to be discoverable, and
LocalDevice.getLocalDevice().setDiscoverable(DiscoveryAgent.NOT_DISCOVERABLE);
to hide from other devices. It doesn't save battery, but it does make things that little bit more secure I guess.
No way. We cannot be able to automatically turn on/off bluetooth in java & j2me. Better you refer to the documentation of JSR 82

Bluetooth support on Android Emulator

I want to know if the developer team which made the emulator have some information to make bluetooth work in the Android emulator, indicate some links about it, if they have some date for release or if they'll make it works in the future.
as far as I know there is no support in the emulator for bluetooth. And I will have to teach android and bluetooth in some classes. And the students will need to code stuff and test (guess it) in the android emulator.
So I came up with a bare-bone reimplementation of the android bluetooth API on top of tcp. You can find it on here on github.
Basically, you run a tcp-server on your machine, and the emulators will connect through it.
Instead of using the classes in the package android.bluetooth, you just need to use the classes in the package dk.itu.android.bluetooth (and other 2 little modifies).
As for now it supports:
switch on/off the "radio"
discovery devices (only other android emulators)
creating bluetooth services
connecting to bluetooth services
It's not much, but until we got some more from the android guys, I guess there is nothing else around.
Hope it'll be useful, cheers!
The documented bluetooth limitation appears inconsistent with the qemu -bt option. So, how is bluetooth enabled in the emulator so the -bt options can be used, or at least to know that bluetooth is supported?
The target/board/.../BoardConfig.mk having "BOARD_HAVE_BLUETOOTH := true" doesn't provide a bluetooth icon or enable bluetooth. So, how do we turn on bluetooth on the android qemu emulator?
What does it mean that bluetooth is not supported given the -bt option for emulating USB devices that were provided in 2008? The post and limitations are outdated.
The functional limitations of the emulator include:
No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however.
No support for USB connections
No support for device-attached headphones
No support for determining network connected state
No support for determining battery charge level and AC charging state
No support for determining SD card insert/eject
No support for Bluetooth
http://developer.android.com/tools/devices/emulator.html#limitations

Resources