String dexFile = args[0]; String declaredBy = args[1]; String memberName = args[2]; Dex dex = new Dex(new File(dexFile)); PrintWriter out = new PrintWriter(System.out); new FindUsages(dex, declaredBy, memberName, out).findUsages(); out.flush();