localStorage.setItem("name", "Brian"); var name = localStorage.getItem("name");localStorage.setItem("data", {"foo":"bar","flip":"rep","arr":[1,3,4]});
var data = localStorage.getItem("data");
localStorage.setItem("name", "Brian"); var name = localStorage.getItem("name"); UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"downloadcell"];
if(cell==nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
reuseIdentifier:@"downloadcell"] autorelease];
UIProgressView* downPreView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
downPreView.tag = 1234;
downPreView.frame = CGRectMake(400,70, 200,10);
[cell.contentView addSubview:downPreView];
}
//update the progress
UIProgressView* downPreView = (UIProgressView*)[cell viewWithTag:123]; downPreView.progress = downloadPre;
|
var string = device.uuid;
PhoneGap api docs are here if you need any more info... http://docs.phonegap.com/phonegap_device_device.md.html#device.uuid |
Vector contactList = Phone.getContactsByPhoneNumber(inputNumber); Contact contact = (Contact) contactList.elementAt(0); byteStream = contact.getBinary(Contact.PHOTO, Contact.ATTR_NONE); EncodedImage contactPic = EncodedImage.createEncodedImage(byteStream, 0, byteStream.length); String picType = String.valueOf( contactPic.getImageType() );