static final boolean attachActivity(int pid, int index, String plugin, String activity, String container) {
        if (LOG) {
            LogDebug.d(PLUGIN_TAG, "reg activity: pid=" + pid + " index=" + index + " plugin=" + plugin + " activity=" + activity + " container=" + container);
        }

        if (index < 0 || index >= STUB_PROCESSES.length) {
            if (LOG) {
                LogDebug.d(PLUGIN_TAG, "reg activity: invalid index=" + index);
            }
            return false;
        }

        ProcessRecord r = STUB_PROCESSES[index];
        synchronized (r){
            r.activities++;
            r.mobified = System.currentTimeMillis();
            if (LOG) {
                LogDebug.d(PLUGIN_TAG, "activities=" + r.activities + " services=" + r.services + " binders=" + r.binders);
            }
        }
        cancelPluginProcessLoop();

        return true;
    }
@param pid
@param index
@param plugin
@param activity
@param container
@return
replugin-host-library/replugin-host-lib/src/main/java/com/qihoo360/loader2/StubProcessManager.java