ArchiveMay 2012

How To do Push notification in android by using C2DM

H

Step 1: Sign-up for a C2DM account with Google Follow the steps here. Normally takes a day or so before you are ready to roll.==> Step 2: Setup your Manifest Overview of the manifest changes: 1. Permission to receive C2DM messages 2. Access to the internet 3. Restrict access to your C2DM messages so no other app can see them 4. Declare a Receiver, that we’ll create later, that will let us...

How to Create Write and Read a file in iphone without using playerprefs in unity3d

H

it is not that easy to read or write file in iphone we have to give the specific path in order to read or write. here is the sample code using UnityEngine; using System.Collections; using System.IO; using System.Text; public static class GameManager { private static string path; public static void starting () { path = Application.dataPath.Substring (0, Application.dataPath.Length - 20...

How to create iPhone/iPad’s “Slide to Unlock” animation ?

H

This is how Apple implemented “Slider to Unlock” or “Slide to Power off” animation. In .h file UISlider *slider; BOOL touchIsDown; CALayer *textLayer;     – (void)viewDidLoad { self.view.layer.backgroundColor = [[UIColor grayColor] CGColor]; UIImageView *sliderBackView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@”SliderBack1.png”]]; sliderBackView.frame =...

How to create file and read/write Data in iphone/ipad

H

//Documents Directory Path NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; //Give file Name With Extention to create NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:@”FileName.docx”]; [[NSFileManager defaultManager] createFileAtPath:savedImagePath...

Category