APISonar


com.billy.cc.core.component.CC.log

> com > billy > cc > core > component > CC > log
com APIs billy APIs cc APIs core APIs component APIs CC APIs log APIs

Example 1
public static boolean tryWakeup(String packageName) {
        long time = System.currentTimeMillis();
        Intent intent = new Intent();
        intent.setClassName(packageName, RemoteConnectionActivity.class.getName());
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        try {
            CC.getApplication().startActivity(intent);
            CC.log("wakeup remote app '%s' success. time=%d", packageName, (System.currentTimeMillis() - time));
            return true;
        } catch(Exception e) {
            e.printStackTrace();
            CC.log("wakeup remote app '%s' failed. time=%d", packageName, (System.currentTimeMillis() - time));
            return false;
        }
    }