[Java] 纯文本查看 复制代码 public class FAppProtect extends Activity {
EditText edit;
Button enter;
int id = -1;
int key;
String temp;
TextView tv;
@Override
public void onCreate(Bundle bundle) {
this.key = 760919;
Context context = this;
super.onCreate(bundle);
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
boolean z = defaultSharedPreferences.getBoolean("F1542176839057", false);
if (defaultSharedPreferences.getBoolean("F1542176851402", false)) {
enter();
return;
}
public class FAppProtect extends Activity中,FAppProtect 是类名,this.key = 760919;是密钥,往下翻,
[Java] 纯文本查看 复制代码 void enter() {
Intent intent = r5;
Intent intent2 = intent2;
try {
intent2 = new Intent(this, Class.forName("io.dcloud.PandoraEntry"));
startActivity(intent);
finish();
} catch (Throwable e) {
Throwable th = e;
NoClassDefFoundError noClassDefFoundError = r11;
NoClassDefFoundError noClassDefFoundError2 = new NoClassDefFoundError(th.getMessage());
throw noClassDefFoundError;
}
}
这个是关键方法,在onCreate方法开始的地方调用这个方法可以直接进入页面,跳过注册界面,Class.forName("io.dcloud.PandoraEntry"));里面的是要跳转的页面名称,在AndroidManifest文件里把FAppProtect 改成io.dcloud.PandoraEntry也可以。 |