Google Search

Friday, July 10, 2009

Browser Comparison by Microsoft Makes me Laugh

Recently i landed up in Microsoft website and saw the comparison table of Google Chrome and Firefox with IE and comparison results by Microsoft was hilarious though i think this just for IE promotion and not actual comparison if it is true Microsoft surely stirring up some controversy see the below comparison chart found in their website

Though IE was my favorite browser until 2005 and after that i started liking Firefox and never used IE though the new IE8 i tried recently looks promising still loads of things should be evolved in IE to catch up in the browser race with Firefox....



And i am Amazed with Microsoft only comparing with Google Chrome and Firefox and not with other browsers such as Opera, safari etc, Though i don't agree with above comparison done by MS do let us know what do you think, which is your favorite browser and why

Wednesday, July 8, 2009

How to Hide applications from Add Remove programs in control panel ?

All the applications that are installed in your computer are listed in add/remove in control panel but for some reason you might don't want others to see certain applications installed in your system, say reason might be you don't want your system Admin in your company to see all the audio video codecs, ripper tools and torrents installed in your office system ;)

There are two ways to hide the programs in Add remove windows in control panel one is manual which requires registry deletion and other is a use of free tool called "Hide Programs" which is easy method of hiding admin banned applications, and whats more you have a option of showing again the application in add/remove programs by using "Hide Programs" tool so no fear of registry corruption

Manual Method

This method should be used if you are familiar with computers and editing registry improperly might corrupt your Operating system and may require reinstallation of the OS

-->Click Start and Select Run
-->Type "regedit" and press enter and Navigate to below registry key from the registry editor

KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall


you can see the list of all the installed programs in your computer now right click on the key of a program you want to remove from the list select export and save it on desktop so that you can revert back if anything happens, now again click on the key you want to hide and press "delete" button in your keyboard and close the registry editor and open the add/remove programs on control panel now you can see the application will be missing in your add remove program list, but still the application runs as usual in your computer

-->Now if you want the application to again appear in the list for some reason double click on the exported backup file you saved before deleting and press OK in the dialogue box

Hiding by using Software tool

"Hide Programs" is a free tool and also easy way of hiding the programs from add/remove program list and apart from add/remove window it can also hide the programs from start menu list below is the snap shot of the tool

hiding and unhiding using this software is very easy easier than your email program just download the application from HERE install and launch it rest i bet you can easily understand

Tuesday, July 7, 2009

File and Folder Explorer in Android with Content Providers

want to pick a file or folder from your android application in sdcard or from phone memory? recently i wanted a file explorer just like windows in my android application and after a brief R&D i figured it out on how to do it below is the sample code


import java.io.File;
import java.net.URI;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
public class testclass extends Activity {
int PICK_REQUEST_CODE = 0;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.testclass);
// Files and directories !
Intent intent = new Intent();
Uri startDir = Uri.fromFile(new File("/sdcard"));
intent.setAction(Intent.ACTION_PICK);
intent.setDataAndType(startDir, "vnd.android.cursor.dir/*");
//intent.setDataAndType(startDir, "file://");
// Title
intent.putExtra("explorer_title", "Select a file");
// Optional colors
intent.putExtra("browser_title_background_color", "440000AA");
intent.putExtra("browser_title_foreground_color", "FFFFFFFF");
intent.putExtra("browser_list_background_color", "00000066");
// Optional font scale
intent.putExtra("browser_list_fontscale", "120%");
// Optional 0=simple list, 1 = list with filename and size, 2 = list with filename, size and date.
intent.putExtra("browser_list_layout", "2");
startActivityForResult(intent, PICK_REQUEST_CODE);
}
protected void onActivityResult(int requestCode, int resultCode, Intent intent)
{
if (requestCode == PICK_REQUEST_CODE)
{
if (resultCode == RESULT_OK)
{
Uri uri = intent.getData();
String type = intent.getType();
// LogHelper.i(TAG,"Pick completed: "+ uri + " "+type);
if (uri != null)
{
String path = uri.toString();
if (path.toLowerCase().startsWith("file://"))
{
// Selected file/directory path is below
path = (new File(URI.create(path))).getAbsolutePath();
}
}
}
else{}// LogHelper.i(TAG,"Back from pick with cancel status");
}
}
}


If you find any error in this code please do let us know

Other Interesting Articles



Related Article Widget by ceveni

Search Powered by Google