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.
Related
At this moment I have a script written in AutoIt that browses some websites to check if it's online and forward some information via e-mail, but because of AutoIt only works on a "real computer", I can't put it in some "low-powered" device like a Mini Android PC or Raspberry Pi.
What I want to know is if there is some program or programming language where I can do the same thing in Android PC or Raspberry Pi.
As it is a linux system you can use shell scripts and linux is much more powerful in automation tasks than windows. With command redirection via pipes you can build powerful command chains to perform most of your needed tasks. To receive a website you can use wget, to check for a specific line, use grep or sed. There are lots of tutorials out there. On most linux systems mail is built in and properly configured and normally you could even use a small php or bash script to send mails...
For Android there is a great app called Tasker to do automation stuff... It's really worth its costs.
AutoIt only works on windows environments. So you could always emulate a windows environment.
This is by far the worst idea tho.
Here's a link: http://shackspace.de/?p=3859
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.
When I use Eclipse to develop my Android Project through remote desktop, I want to use my real mobile to test the apps.
How can I do that??
Is it possible to connect??
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.
I'm thinking to develop a PC desktop program to get application setting from android phone, install/uninstall apk application, sync photos/videos/music and display a web content.
Initial thought is to use .Net to write desktop program and shell ADB tool to do installation and file copy on android phone. However seems like advanced feature of ADB only works on a rooted android phone.
Is there an communication interface between windows and android system? Based on an app called "Android Manager" by Mobile Action, it seems that it can pull out what apps are installed on the phone but seems like this cannot be done by ADB alone without root access.
I would like to do the transfer of information using USB cable. Any thoughts where to research on? Thanks much
If you want to use the USB cable you can only use ADB, but you can use ADB to set up a socket between your pc and the mobile device. Both sides can then connect to this socket and use it to transmit data.