Skip to content

Instantly share code, notes, and snippets.

@t4kemyh4nd
Created February 20, 2021 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t4kemyh4nd/6272122e009e90b7ed27e376608e97b5 to your computer and use it in GitHub Desktop.
Save t4kemyh4nd/6272122e009e90b7ed27e376608e97b5 to your computer and use it in GitHub Desktop.
package com.tmh.victim;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (getIntent().getBooleanExtra("bgtask", false)) {
moveTaskToBack(true);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment