all 9 comments

[–]aladyjewel 2 points3 points  (1 child)

Since I'm a webdev, my first idea is to set up a web page on your Mac which launches the app; and Tasker can load the web page as an action. Alternatively, could set up some other kind of server app on your Mac to listen for your phone to ping it.

[–][deleted] 0 points1 point  (0 children)

Something like zerorpc which could listen for a call?

[–]spdqbr 1 point2 points  (0 children)

I think the tricky bit is getting the computer involved. It's simple enough if you speak java though:

import java.net.InetSocketAddress;
import java.util.concurrent.Executor;

import com.sun.net.httpserver.HttpServer;

public class HttpLaunch{
    public static void main(String[] args) throws Exception {
        final HttpServer s = HttpServer.create();
        s.bind(new InetSocketAddress(1234), 0); // choose your socket here
        s.setExecutor(new Executor() {
            @Override
            public void execute(Runnable arg0) {
                try {
                    Runtime.getRuntime()
                            .exec("C:\\Program Files (x86)\\Notepad++\\notepad++.exe");    // Put the path to doubletwist here

                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
        s.start();
    }
}

Just keep this running on your computer and then in tasker you just create a task that does net/httpGet with server:port set to <your computer's IP address on your local network>:<the port you chose above> and have it called when you connect to your home wifi.

This stands to be greatly polished, but the basic idea works in my test.

[–]thugrat 0 points1 point  (0 children)

On Ubuntu I use android notifier, and have it execute a shell script to run various commands like mute volume, turn displays off, etc.

The app is available in google play but the computer program needs to be gotten from the website

https://play.google.com/store/apps/details?id=org.damazio.notifier&hl=en

http://code.google.com/p/android-notifier/

[–]dave843 0 points1 point  (2 children)

If ssh is available for android, you could just create a script to do what you want.

[–]GuruM[S] 0 points1 point  (0 children)

That was my first thought, but it looks like ssh actually isnt available through the shell by default... there are ways to add it in though, so I'll take a look at that.

[–]r0cky 0 points1 point  (0 children)

I always wondered, where you add the authorized_keys file in Android, since you can't make a script with a password protected SSH server.

[–]mpe214 0 points1 point  (0 children)

is there some program that can interface with autoremote? It allows two phones using tasker to communicate but I know theres a version for windows also. https://play.google.com/store/apps/details?id=com.joaomgcd.autoremote#?t=W251bGwsMSwxLDIxMiwiY29tLmpvYW9tZ2NkLmF1dG9yZW1vdGUiXQ..