0x5f3759df_habr
cpp_siberia_habr
Tools: DexGuard, DexProtector
[code language=”java”]
boolean isEmulator = Build.FINGERPRINT.contains("generic");
boolean isDebugger = android.os.debug.isDebuggerConnected();
[/code]
Манипуляции с битами. Игра в истину [https://nuancesprog.ru/p/4597]
A | B | A xor B |
0 | 0 | 0 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
[code language=”java”]
videoView = (VideoView) findViewById(R.id.video_view);
mediaController = new MediaController(this);
mediaController.setAnchorView(videoView);
videoView.setMediaController(mediaController);
Uri uri = Uri.parse(video_uri);
videoView.setVideoURI(uri);
videoView.requestFocus();
videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mp) {
videoView.start();
}
});
[/code]
LayoutParams (16 17 18)