Code example for AbstractHttpClient

Methods: execute

	private String[] retrieveLatestVersion(AbstractHttpClient httpclient, String url) throws ClientProtocolException, IOException {
		// Retrieve what is the latest released app version 
		HttpResponse request = httpclient.execute(new HttpGet(url));
		InputStream stream = request.getEntity().getContent();
		String appVersion[] = HttpHelper.ConvertStreamToString(stream).split("\\|");
		return appVersion;
	private void newNotification(String ticker, String title, String text, String downloadUrl, int notifyID) {
		// Use the alarm service settings for the notification sound/vibrate/colour 
		SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
		AlarmSettings settings = Preferences.readAlarmSettings(prefs);
		// Set up an intent that will initiate a download of the new version