안드로이드 스튜디오 23일째


안드로이드 스튜디오 23일째

TextView textView; ProgressBar progressBar; int value =0; BackgroundTask task; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); textView =(TextView) findViewById(R.id.textView); progressBar = (ProgressBar) findViewById(R.id.progressBar); } public void onButton1Clicked (View v){ task = new BackgroundTask(); task.execute(100); } public void onButton2clicked (View v){ task.cancel(true); } class BackgroundTask ...



원문링크 : 안드로이드 스튜디오 23일째