Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Processo extends AsyncTask<Void,Date,Date>{
- @Override
- protected Date doInBackground(Void... params) {
- for(int i = 0 ; i < 100; i++){
- Log.i("Log", "i: " + i);
- }
- return null;
- }
- }
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.home);
- Processo p = new Processo();
- p.execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement