is there any android library or application to send command or keystroke or mouse click to Windows from android app?
I have an android project that need to run an application on windows with a touch on android.. the android app will have 4 big button which is used to send command to windows..
I expect there is an android library and server app for windows.
Have a look at this answer: https://stackoverflow.com/a/10140812/1291122 .There are no android libraries for that. You need to write it all yourself!.
However I feel(haven't tried yet) that you can use the bluetooth API to establish a connection between your android device and your windows pc and exchange data(command strings like "LEFT","OPEN","SHUTDOWN") by managing the connections.At the same time, you may have simple ServerSocket running on windows which accepts connection from your android device and decodes the command strings received and performs actions accordingly.
There are many applications available in the market which do the same thing. I guess they use a similar(not exact) approach.
Related
I use my mobile device to run my flutter applications. I know all about the hot reload but I'm so tired of having to wait every time I connect back to my phone again maybe the next day and then the app has to be re installed and the gradle task assembler has to be built again. Please I want to ask if there is a way to reconnect easily and a way for the apps to run easily again any time I want to work on a project again after a while.
There are a couple of alternatives to building the APK and installing it on a physical device:
Use an emulated android device
You can use an android emulator. The easiest way to set that up is probably the graphical interface in Android Studio (see https://developer.android.com/studio/run/managing-avds), but you can also use flutter emulators --create [--name <Name>] to create a new virtual device. Then use the button in the bottom right of VS Code to select that device, before launching the debugger.
Build for desktop
Depending on the dependencies of your app, you could try building the app for the platform you're developing on (Windows, Linux, or macOS). This has the same visual result as an Android app, but does not need an emulator or physical device. The rendering engine is the same (Skia) on all platforms. The obvious downside is that some plugins may not be available for desktop.
See https://docs.flutter.dev/development/platform-integration/desktop on how to set that up.
My goal here is to have a simple Kivy app. When a button on-screen is pressed on an Android phone, it runs a command via SSH on my Raspberry Pi on the same network. Would I be capable of doing this on Android? I know I could get it to work on an actual Ubuntu environment with Kivy, but not entirely sure if Android is capable of that.
I Plan to use two computers both has low disk space and Not so great Processor & RAM for Android Development. So, I wonder if I could find a way to connect both of my PCs in the same WLAN N/W or by any means, One running Android Studio and the other with Android Emulator. If Possible multiple Emulators.
I am not quite sure on how you could have 2 pc's simultaneously working together here.
But you could look into version control such as Git and Bitbucket.
If you set something like git up on 2 different pc's you can have 2 different projects. The one you control the source code and the other one you just run from.
What this would mean is that you could code on the one pc, push (putting the code on an online repository) and then pull on the other pc (grabs this code from the respoistory) and run.
You may find this useful
I'm using a mac machine to build a android application, but it will crashed when run on device. but with the same code and key I build the application using another machine (windows). it is working well on devices.
Using my mac I already build several other apps and those are working well.
Can any one give me a solution?
First get the feedback of your client device as Kumar suggested.
get the clients device specifications,screenshots and try to reproduce on emulator.Exactly what caused the error may want you to ask him what steps to follow to reproduce the error.etc
is it possible to test this app on emulator with out any code changes?
Yes.You have a DDMS perspective.Just go to the top right corner above the coding window.There's a sort of plus (+) button there.From there you have a DDMS perspective.In this perspective,you can control emulator.You can feed the GPS co-ordinates here.
Look at this
Sounds like you are using some new API that your client doesn't have. He might be running an older OS. Run Android Lint checks and see if you get an API warnings.
Check your client's OS version and your own. Create emulator with your client's OS version and see if it's crashing.
I'm able to securely stream audio from one PC to another via SSH using:
ssh <username>#<host> 'dd bs=1k if=/dev/audio' > /dev/audio
Is there any similar way to do this from a terminal running on an Android phone? I tried testing this from a terminal emulator running on a Droid X, but the standard "/dev/audio" device is missing.
Note, I realize this could probably be accomplished by writing a custom app, but I'd like to avoid that overhead.
Another way would be to install a streaming server (i.e. icecast) on the Linux box and connect to it from your Android using any Internet Radio Client.
IIRC, icecast support authentication and SSL.
No, there is no way to do this. By default android phones do not run SSH, nor do they have /dev/audio available (I'm actually uncertain where the audio path on most android devices terminates).
I see a custom app in your future.