	public void onCreate(Bundle savedInstanceState) {
        getActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.holo_blue_dark)));
        getActionBar().setDisplayShowHomeEnabled(true);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		final Button button = (Button)findViewById(R.id.button);
		button.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				pbarDialog = ProgressDialog.show(IconRequest.this,
						"Please wait...", "Gathering application info...", true);
				Thread designriftsThread = new Thread()
				{
					@Override
					public void run()
					{
						Looper.prepare();
						final File save_loc = new File(SAVE_LOC);
						save_loc.mkdirs();
						final PackageManager packageManager = getPackageManager();
						final StringBuilder sb = new StringBuilder( );
						final Intent intent = new Intent("android.intent.action.MAIN");
						intent.addCategory("android.intent.category.LAUNCHER");
						final List<ResolveInfo> activities = packageManager.queryIntentActivities( intent, 0 );
						final int size = activities.size();
						if (size == 0) {
							finish();
						}
						for (int i = 0; i < size; i++)
						{
							final ResolveInfo info = activities.get(i);
							final String label = info.loadLabel(packageManager).toString();
							final Drawable icon = info.loadIcon(packageManager);
							final String pkgName = info.activityInfo.packageName;
							final String className = info.activityInfo.name;
							sb.append("<!-- " + label + " -->\n<item component=\""+pkgName+"/"+className+"\" drawable=\""+label+"\" />");
							sb.append("\n");
							sb.append("\n");
							Bitmap bitmap = ((BitmapDrawable)icon).getBitmap();
							FileOutputStream fOut;
							try {
								fOut = new FileOutputStream(SAVE_LOC + "/" + pkgName + ".png");
								bitmap.compress(Bitmap.CompressFormat.PNG,100,fOut);
								fOut.flush();fOut.close();
							} catch (FileNotFoundException e) {	} 
							catch (IOException e) {	}
						}
						try {
							FileWriter fstream = new FileWriter(SAVE_LOC + "/+appfilter.xml");
							BufferedWriter out = new BufferedWriter(fstream);
							out.write(sb.toString());
							out.close();
						} catch (Exception e){}
						createZipFile(SAVE_LOC, true, SD + "/" + android.os.Build.MODEL + ".zip");
						handler.sendEmptyMessage(0);
					}
				};
				designriftsThread.start();				
			}
		});
	}

	public void onCreate(Bundle savedInstanceState) {
        getActionBar().setBackgroundDrawable(new ColorDrawable(getResources().getColor(android.R.color.holo_blue_dark)));
        getActionBar().setDisplayShowHomeEnabled(true);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		final Button button = (Button)findViewById(R.id.button);
		button.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				pbarDialog = ProgressDialog.show(IconRequest.this,
						"Please wait...", "Gathering application info...", true);
				Thread designriftsThread = new Thread()
				{
					@Override
					public void run()
					{
						Looper.prepare();
						final File save_loc = new File(SAVE_LOC);
						save_loc.mkdirs();
						final PackageManager packageManager = getPackageManager();
						final StringBuilder sb = new StringBuilder( );
						final Intent intent = new Intent("android.intent.action.MAIN");
						intent.addCategory("android.intent.category.LAUNCHER");
						final List<ResolveInfo> activities = packageManager.queryIntentActivities( intent, 0 );
						final int size = activities.size();
						if (size == 0) {
							finish();
						}
						for (int i = 0; i < size; i++)
						{
							final ResolveInfo info = activities.get(i);
							final String label = info.loadLabel(packageManager).toString();
							final Drawable icon = info.loadIcon(packageManager);
							final String pkgName = info.activityInfo.packageName;
							final String className = info.activityInfo.name;
							sb.append("<!-- " + label + " -->\n<!-- " + pkgName + " -->\n<item component=\""+pkgName+"/"+className+"\" drawable=\""+label.replace(" ", "")+"\" />");
							sb.append("\n");
							sb.append("\n");
							Bitmap bitmap = ((BitmapDrawable)icon).getBitmap();
							FileOutputStream fOut;
							try {
								fOut = new FileOutputStream(SAVE_LOC + "/" + pkgName + ".png");
								bitmap.compress(Bitmap.CompressFormat.PNG,100,fOut);
								fOut.flush();fOut.close();
							} catch (FileNotFoundException e) {	} 
							catch (IOException e) {	}
						}
						try {
							FileWriter fstream = new FileWriter(SAVE_LOC + "/appfilter.xml");
							BufferedWriter out = new BufferedWriter(fstream);
							out.write(sb.toString());
							out.close();
						} catch (Exception e){}
						createZipFile(SAVE_LOC, true, SD + "/" + android.os.Build.MODEL + ".zip");
						handler.sendEmptyMessage(0);
					}
				};
				designriftsThread.start();				
			}
		});
	}
