Author Archives: admin

Working with files in Objective C

By | December 22, 2010

Basic file operations Assumes the existence of a file called “testfile” in the current working directory #import #import #import #import #import int main (int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *fName = @”testfile”; NSFileManager *fm; NSDictionary *attr; // Need to create an instance of the file manager fm =… Read More »

How to use picker in iphone, A simple example.

By | December 20, 2010

#import “ViewController.h” @implementation ViewController @synthesize mlabel; – (void)viewDidLoad { [super viewDidLoad]; arrayNo = [[NSMutableArray alloc] init]; [arrayNo addObject:@” Hello “]; [arrayNo addObject:@” Hai “]; [arrayNo addObject:@” Picker “]; [arrayNo addObject:@” Simple “]; [arrayNo addObject:@” example “]; [pickerView selectRow:1 inComponent:0 animated:NO]; mlabel.text= [arrayNo objectAtIndex:[pickerView selectedRowInComponent:0]]; } – (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView; { return 1; } – (void)pickerView:(UIPickerView *)pickerView… Read More »

PC Optimization – Clearing Temp files from your PC

By | December 19, 2010

The temp folder found in C:WindowsTemp often contains files that have no reason to exist any longer. You can use the ‘Disk Cleanup Wizard’ that comes with windows to sort out your temp folder by clicking on the Start menu -> Programs -> Accessories -> System Tools -> Disk Cleanup. Select the drive you wish… Read More »

what is XPath?

By | October 5, 2010

XSLT uses XPath to find information in an XML document. XPath is used to navigate through elements and attributes in XML documents.

what is E4X Simply?

By | October 5, 2010

E4X = JavaScript for XML E4X means “ECMAScript For XML”. It is a standard extension to ECMAScript. So in real life E4X means “JavaScript for XML”.

Custom Toasts in ANDROID.

By | October 5, 2010

First, just show an image inside a toast: This method just displays a text toast: And this method displays a Toast that contains both an image and text:

How to send an SMS from an android application?

By | October 4, 2010

It’s easy to send Messages using the SmsManager in android. Check some of the examples relating to working with SMS’s in android. 1. How to simulate an incoming call to an emulator OR Send an SMS to an emulator in ANDROID ? 2. Listening incoming sms message in Android. 3. How to get notified during… Read More »

Play Video using VideoView in ANDROID.

By | September 19, 2010

Playing a video file is simple in android. This post will help you. Put your video in res/raw folder. If no raw folder present then create a new folder inside res. The main. xml file. Please leave your comments if this post was useful.