using android phone as a bluetooth keyboard for another android phone - android

I'd like to use my old android phone as a bluetooth keyboard for my new android phone. There seems to be plenty of solutions when it comes to using the phone as a keyboard for windows, but no solutions for android->android connection. How would I go about implementing one?

I do not think that you can do that via a simple Bluetooth pairing as you wish to do. But did you tried the Android App store? There are multiple Apps (which can be installed on both devices) for example "Tablet Remote" which description said "Tablet Remote let you control an Android tablet or phone with another Android device".

Related

Is it possible to flash or install stock Android on a smart watch?

I am looking to install stock Android (Lollipop/Marshmallow etc.) on my LG Watch Urbane. I cannot find any help on this since everywhere I search, I only get information about Android Wear.
I do not want Android Wear but a full, regular version of Android running on the watch. My main reason for doing this is to be able to eventually write my own personal custom Android ROM for the watch, but in order to start I want to see how regular Android will run on the watch.
I found that a CyanogenMod could be run on Samsung Galaxy Gear as demonstrated by this video: https://www.youtube.com/watch?v=rb0R_JeI6gg
Is there is strict specific hardware requirement to port Android (or even CM, misc. ROMs) on a smart watch? By this I mean, can I take any off the shelf smart watch and port Android to it? What steps do I need to take (like rooting, unlocking a bootloader etc.?)

Modify firmware of noname android tablet: first steps

I want to develop a HTML5 app to control doors, lights and other things in my garage. The frontend of will get displayed on a 24/7 turned on screen, that really only displays the app (kiosk mode). So there will be really only the app, no browser controls like back and forth button or url bar, and also no notification bar or back and home buttons of the device. Just the app.
For this I considered 2 options:
Doing it with a raspberry PI & connect a touch screen to i
Doint it on a dead cheap noname Android Tablet
Since the 2nd option is much more elegant from the hardware point of view (everything I need is already built in) I decided to try this first and bought a 70 USD Prestigio Tablet.
But since I'm no android dev, I'm not sure how I can even modify the stock firmware that's currently installed on the device.
As far as I can see, the bootloader is unlocked and ready for flashing a modified firmware image.
And here comes the question:
How can I get the device's currently installed firmware image? Do I have to contact the manufacturer for this or can I extract it from the device directly?
If I get the firmware image, how will I be able to modify files in it?
Or do you think I got the wrong route?
You need to find sources of firmware for your specific device. I bet manufacturer would not provide them. For Nexus devices it is easier because there is AOSP (android open source project) which gives you an opportunity to build a firmware. You can also check specific forums like 4pda.
But there is another way - to make a KIOSK mode for your device example. I'm not sure how does that fit into requirements. Also You can make your app as Launcher app and live with that :)

Chromecast API doesn't accuratelly detect when device is connected/disconnected

I have a problem when i am trying to use my chromecast device.
Currently I have an app for Android , one for iOS
and these 2 apps from github.
https://github.com/googlecast/MediaRouter-Cast-Button-android
https://github.com/googlecast/CastVideos-android
All of them have a common problem. They sometimes cannot accuratelly tell if a chromecast device is connected or disconnected.Taking around a minute before they find it out themselfs.While an application like Youtube , discovers if it is connected or not, instantly.
EDIT #1 START:
While using the application "Cast Videos" for android from GitHub the following thing happens.
I hold the android device in my hand (Samsung Galaxy S2).
I know chromecast is on because I can see it on my monitor.
I start the application "Cast Videos".
The Chromecast icon does not appear, even if the chromecast device is on.
EDIT #1 END;
I have tried using the app_id from my own receiver application , and the default receiver app_id.
I have found a way to trick them into finding the device. By launching the youtube application on an Android or iOS device , connect to the chromecast device , then disconnect.
When I return to on off the apps I have mentioned at the start of the question , they can detect it now , and connect to it.
The two applications from github are not modified , and use the most up to date support libraries (appcompat, mediarouter, CCL).
The applications are now being currently build on a Mac (if that matters). I don't think it will be of any difference if they were built on Windows or something else.
EDIT #2:
I am starting to suspect that actually the wifi router in the building im programming may cause these connection problems. Because when I send the app to other people they don't have the same problem.
EDIT #3:
Good news :D.
The latest update on the castcompanionlibrary made chromecast detection much more reliable and the sample now detects preciselly every time if it is connected or not.

How to control custom Android app via Bluetooth custom device

I'm building a Bluetooth device and would like to make it so that once it's paired with an Android device such as a phone or tablet (eg. Nexus 7) it will be able to interact with a custom app on the Android device in a transparent manner without any prior setup.
For example, the behavior I'm looking for is similar to that of a handsfree headset where once you've done the initial pairing you can push a button on your headset, issue a voice command, and it transmits commands to the phone and the phone does it's thing. I have built a Bluetooth device where when a button is pushed it should be able to immmediately send commands to a custom app on my Android device and the custom app should run and do its thing. This should all happen without putting the Android device into some ready state or having my custom app open waiting for commands; it should all be transparent without the user having to do anything (eg. the Android device could be in my pocket or bookbag).
I am a veteran programmer but very new to Android and Bluetooth and would appreciate pointers in the right direction. I imagine that perhaps I would need to install some service-level app on the Android device to implement my own custom profile and/or intercept the Bluetooth commands but these are just guesses; I'm hoping someone would shed light on the actual process so that I can read up on them in detail. I'm also hoping that the solution is a generic one that would apply across the board but right now I'll take anything I can get lol!
Many thanks in advance.

Can android Emulate a HID device? [duplicate]

This question already has answers here:
Is it possible to program Android to act as physical USB keyboard?
(14 answers)
Closed 9 years ago.
I was attempting to design an app that would allow me to have android emulate a hardware device.
I.E. a generic keyboard, a generic mouse.
I could essentially plug in my android (HTC) to a computer, and program it to use a software keyboard as the computers hardware keyboard.
I don't have any direction on how to accomplish this.
I only wish to connect USB(not bluetooth). So that the computer needs 0 installation before working. And most devices will work in Dos Mode.
You can grab the app and have a look at the code: http://code.google.com/p/androhid/
Little jewels like this shine in the middle of a ocean of useless commercial apps.
"So that the computer needs 0 installation before working"
I have a Sony Ericsson K750i, and it can behave like a HID device trough Bluetooth. Mouse and/or keyboard, anything what you like. (This is a basic default factory feature of it)
The only install that I had to do is installing the drivers for the bluetooth device on the laptop.
So we can say that no installation was needed, as you install drivers for bluetooth anyway.
There were some default profiles for different applications (media player, windows, image viewer etc)
But one could created custom profiles too, assigning any mouse or keyboard action to any of they physical keys of the phone.
It would be good to see this exact functionality for Android. I was amazed that it doesn't have this by default. It's a shame.
When I search for Android remote control on the Internet, I all can find is about small physical keyboards for android, or the solution is using wifi which needs a damn special software to run on the computer in the same time.

Categories

Resources