Sha256: 4691fd7e476c970e3827386372f61e58d82c02b75a1d1aa9695543a669cbe279
Contents?: true
Size: 806 Bytes
Versions: 20
Compression:
Stored size: 806 Bytes
Contents
package sh.calaba.instrumentationbackend; import java.lang.reflect.Method; import android.content.Context; import android.os.Bundle; import android.test.InstrumentationTestRunner; public class CalabashInstrumentationTestRunner extends InstrumentationTestRunner { @Override public void onCreate(Bundle arguments) { try { Context context = getTargetContext (); Class<?> c = Class.forName("mono.MonoPackageManager"); Method method = c.getDeclaredMethod ("LoadApplication", Context.class, String.class, String[].class); method.invoke (null, context, null, new String[]{context.getApplicationInfo ().sourceDir}); System.out.println("Calabash loaded Mono"); } catch (Exception e) { System.out.println("Calabash could not load Mono"); } super.onCreate(arguments); } }
Version data entries
20 entries across 20 versions & 1 rubygems