Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DexClassLoader loader = new DexClassLoader("/sdcard/classes.dex";, = getApplicationInfo().dataDir, null, getClass().getClassLoader());
- try {
- Class cl = classLoader.loadClass("com.example.myapplication.MyService");
- Method meth = cl.getMethod("onStartCommand", Intent.class, int.class, int.class);
- meth.invoke(c.newInstance(), null);
- } catch (Exception e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment