Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BirSeylerBirSeyler extends AsyncTask<String, Void, String>{
- TextView mSonucTextView;
- public DownloadImageTask(TextView tv) {
- //parametre olarak verdiğimiz bu TextView'ı
- //onCreate() sırasında örneklemiş olmalıyız.
- this.mSonucTextView=tv;
- }
- @Override
- protected String doInBackground(String... parametreler) {
- String sonuc=null;
- /*
- işledi, işledi
- */
- return sonuc; //burası çok önemli. onPostExecute()'a
- }
- protected void onPostExecute(String sonucumuz) {
- mSonucTextView.setText(sonucumuz);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement