Code example for Dialog

Methods: setTitleshow

		Dialog dialog;
		protected void onPreExecute() { 
			dialog = new Dialog(getActivity());
			dialog.setTitle("Posting status update...");;
		/** Task that happens on a separate thread. */ 
		protected String doInBackground(String... params) {
			try { 
				SharedPreferences prefs = PreferenceManager
				String username = prefs.getString("username", null);
				String password = prefs.getString("password", null);
				String server = prefs.getString("server", null);
				YambaClient yambaClient = new YambaClient(username, password);
Experience pair programming with AI  Get Codota for Java