Java tutorial
//package com.java2s; import android.app.Instrumentation; public class Main { public static void sendStringSync(final String s) { new Thread(new Runnable() { @Override public void run() { new Instrumentation().sendStringSync(s); } }).start(); } }