QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 DevActivity.java 源代码,内容仅作参考
package com.tencent.mtt.hippy.qb;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.MotionEvent;
import com.tencent.mtt.QbActivityBase;
import com.tencent.mtt.hippy.qb.ModuleParams;
import com.tencent.qqlive.module.videoreport.collect.EventCollector;
public class DevActivity extends QbActivityBase {
private QBHippyWindow mHippyView;
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
EventCollector.getInstance().onActivityDispatchTouchEvent(this, motionEvent, false, true);
boolean dispatchTouchEvent = super.dispatchTouchEvent(motionEvent);
EventCollector.getInstance().onActivityDispatchTouchEvent(this, motionEvent, dispatchTouchEvent, false);
return dispatchTouchEvent;
}
@Override
public void onBackPressed() {
finish();
}
@Override
public void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
EventCollector.getInstance().onActivityConfigurationChanged(this, configuration);
}
@Override
public void onCreate(Bundle bundle) {
requestWindowFeature(1);
super.onCreate(bundle);
this.mHippyView = (QBHippyWindow) QBHippyEngineManager.getInstance().loadModule(new ModuleParams.Builder().setModuleName("Demo").setComponentName("Demo").setActivity(this).setDemotionUrl("www.baidu.com").build());
setContentView(this.mHippyView);
}
@Override
public void onDestroy() {
QBHippyEngineManager.getInstance().destroyModule(this.mHippyView);
super.onDestroy();
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
return super.onKeyDown(i, keyEvent);
}
}