Monday, 31 October 2011

First Phone With Android 4.0 Ice Cream Sandwich

Simple, beautiful and smart, the Galaxy Nexus is more than just a smart phone unveiled by Samsung in Hong Kong on 19 October 2011 with some innovative hardware and the latest version of Google’s OS Android 4.0, Ice Cream Sandwich.

Here’s what you can expect when it comes to you in this November.
The phone’s specifications are impressive with 1.2GHz dual-core processor and 1 GB RAM giving you high speeds and multi-tasking abilities. The 4.65-inch screen is large without increasing the size of the phone as the hardware buttons replaced by software buttons are included inside the screen. It also boasts of a 1280×720 pixels Super AMOLED HD display. 1080p HD video capture is possible using the rear 5MP camera while a 1.3 MP front camera aids video chat.
Besides the phone specs, Google brings several advanced features and capabilities with its Android 4.0 Ice Cream Sandwich. Android 4.0 has given special attention to the practical aspect of aesthetics introducing Roboto, a font with geometric forms and clean curves doing away with the unnecessary elements. Some of the fascinating features in the new product include Near Field Communication (NFC) with Android Beam, Facial Recognition Technology, Speech Recognition and People app.
A new screenshot feature allows you to hold the power and volume buttons down to capture a picture of the screen.
NFC helps transfer of all your data (except apps, which transfer a link to the Android Marketplace) between devices by just bringing them close to each other. Facial recognition allows you simply look at the phone to unlock your screens. Speech to text converts voice into text instantly for sending emails and SMS messages. People app helps gets contact details from Google+, Facebook, Twitter etc.
With special attention to aesthetics, some improvements have gone into the Home Screen with resizable widgets, dragging dropping to create folders and favourite trays and better copy paste abilities making Android Ice Cream Sandwich more acceptable.
Other plusses include enhanced camera features, multi tab browser and redesigned calendar interface. Major advantage of Android 4.0 is that it can run both on tablets as wells as mobiles unlike its predecessors.
Google and Samsung had set expectations soaring and with the unveiling of Android 4.0 ICS and the Galaxy Nexus, they have delivered what they promised.
No pricing details are available as of now.

Wednesday, 13 April 2011

How To Watch Directory using C#.NET

I have used a console based application in C# for watching my directory.
U can also use window based application for the same. Here is the code i have used for the console based application for watching any alteration in my directory.


****Inside the main function****
//Instance Of File Watcher Has Been Created
            FileSystemWatcher Watcher = new FileSystemWatcher();

            //Path To be watched by the watcher
            Watcher.Path = "G:\\Abhishek";

            //Filter files that are supposed to be watched
            Watcher.Filter = "*.*";

            //Specifying What To Look For Describing Attributes of the file system
            Watcher.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName | NotifyFilters.Attributes;

            //Specifies what need to be done if any of the attribute got altered
            Watcher.Changed += new FileSystemEventHandler(OnChanged);
            Watcher.Created += new FileSystemEventHandler(OnChanged);
            Watcher.Deleted += new FileSystemEventHandler(OnChanged);
            Watcher.Renamed += new RenamedEventHandler(OnRenamed);

            //Telling The watcher to do itz job WATCH IT!!!!
            Watcher.EnableRaisingEvents = true;

            //Keep the terminal alive
            Console.ReadLine();

****we have to create two more functions those we have called i.e OnChanged and OnRenamed****

        public  static void OnChanged(object sender, FileSystemEventArgs e)
        {
            switch (e.ChangeType)
            {
                case WatcherChangeTypes.Changed:
                    Console.WriteLine("File " + e.FullPath + " has been Modified");
                    break;
                case WatcherChangeTypes.Deleted:
                    Console.WriteLine("File " + e.FullPath + " has been Deleted");
                    break;
                case WatcherChangeTypes.Created:
                   Console.WriteLine("File " + e.FullPath + " has been Created");
                    break;
                default:
                    Console.WriteLine("Error Has Been Occured");
                    break;
            }

        }


        public static void OnRenamed(object sender, RenamedEventArgs e)
        {
            Console.WriteLine("File " + e.OldFullPath + " Renamed To " + e.FullPath);
        }
  • Remember one thing you have to make the functions as static