Android SQLite Database for Insert and view the values

Published on

Hi, This is an Example for SQLITE Database n Android In android, there are several ways to store data while working with android applications. We can store data by preferences, files or using database. Android provides a very tiny database named Sqlite. A Sqlite database provides a way to store database on the android device. Mostly all … Continue reading Android SQLite Database for Insert and view the values

Pull to Refresh ListView in Android.

Published on

Hi, Pull to Refresh ListView   It will allow to user pulling down  and releasing from the top of the list. Then come to basic coding part PulltoRefresh. Here you can fine some better example for pulltorefresh. https://github.com/chrisbanes/Android-PullToRefresh Custom ListView pull_to_refresh_listview.xml   <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”     android:orientation=”vertical”     android:layout_width=”fill_parent”     android:layout_height=”fill_parent”     >    … Continue reading Pull to Refresh ListView in Android.

IOS AlertView

Published on

-(IBAction)click:(id)sender { alert1=[[UIAlertView alloc]initWithTitle:@”clicl alert view button” message:@”go to next page” delegate:self cancelButtonTitle:@”cancel” otherButtonTitles:@”ok”, nil]; [alert1 show]; } – (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if(buttonIndex==1) { NSLog(@”okbutton”); } else if (buttonIndex==0) { NSLog(@”cancelbutton”); } }

How to find current latitude and longitude

Published on

Add corelocation.framework import <CoreLocation/CoreLocation.h> Create the object in corelocationmanager Ex:@property (nonatomic, retain) CLLocationManager *locationManager; locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccuracyBest; locationManager.distanceFilter = kCLDistanceFilterNone; [locationManager startUpdatingLocation]; CLLocation *location = [locationManager location]; // Configure the new event with information from the location CLLocationCoordinate2D coordinate = [location coordinate]; NSString *latitude = [NSString stringWithFormat:@”%f”, … Continue reading How to find current latitude and longitude

Create Done Button In Number pad

Published on

– (void)loadView { self.view = [[UIView alloc] initWithFrame:[UIScreen mainScreen].applicationFrame]; self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; textField = [[UITextField alloc] initWithFrame:CGRectMake(10, 200, 300, 26)]; textField.borderStyle = UITextBorderStyleRoundedRect; textField.keyboardType = UIKeyboardTypeNumberPad; textField.returnKeyType = UIReturnKeyDone; textField.textAlignment = UITextAlignmentLeft; textField.text = @”12345″; [self.view addSubview:textField]; // add observer for the respective notifications (depending on the os version) if ([[[UIDevice currentDevice] systemVersion] floatValue] … Continue reading Create Done Button In Number pad

Create custom cell in table view

Published on

Create TableView in ViewController Right click in ViewController open New file Select objective-c class Click Next Create TableViewCell name and Select subclass:”UiTableViewCell” Click next then create a TableViewCell Add a Empty Xib. Drag the TableViewCell in that empty Xib. Select the TableViewCell,Select Identity and Type and Give the class name as TableViewCell   – (UITableViewCell … Continue reading Create custom cell in table view