TEXT 104
Class By theneedyguy on 7th April 2017 08:07:09 PM
  1.   private class GetXMLTask extends AsyncTask<String, Void, List<Event>> {
  2.         private Activity context;
  3.         public GetXMLTask(Activity context) {
  4.             this.context = context;
  5.         }
  6.  
  7.         @Override
  8.         protected void onPreExecute() {
  9.             LinearLayout linlaHeaderProgress = (LinearLayout) findViewById(R.id.linlaHeaderProgress);
  10.             linlaHeaderProgress.setVisibility(View.VISIBLE);
  11.         }
  12.  
  13.         @Override
  14.         protected void onPostExecute(List<Event> events) {
  15.             LinearLayout linlaHeaderProgress = (LinearLayout) findViewById(R.id.linlaHeaderProgress);
  16.             linlaHeaderProgress.setVisibility(View.GONE);
  17.         }
  18.  
  19.         @Override
  20.         protected List<Event> doInBackground(String... urls) {
  21.         do stuff
  22.         }
  23.     }

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.