Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new MyBackground().execute();
- MyBackground mBackground=new MyBackground();
- mBackground.p1=1;
- mBackground.p2="tets";
- MyBackground.execute();
- public class MyBackground extends AsyncTask<Void, Void, Void> {
- ...
- private int p1;
- private String p2;
- public MyBackground(int p1, String p2) {
- this.p1 = p1;
- this.p2 = p2;
- }
- ...
- }
- MyBackground myBackground = new MyBackground(1,"tets");
- myBackground.execute();
- // or
- MyBackground myBackground = new MyBackground(1,"tets").execute();
Add Comment
Please, Sign In to add comment