Question:I imported a simple 3d model from which I construtected a terain. For a test I use box(mesh), but movment is really weird like that models would be realy bumpy. Because of that I also tryed to switch my models with unity meshes but it’s same Answer:In ur game select cube in that u have added rigidbody. In Rigidbody select the constraints in that u will see freeze rotation...
CActive Object in Symbian C++
Active Object provides a support for asynchronous process. let’s see example of Timer using CActive :- Active Object can be implemented by deriving from the CActive class void CTestTimerAO::RunL()//RunL-The handler function to be invoked by the active scheduler when the request completes { iTimeString = _L(“”); iMs = iMs + 1; TUint64 minute; TUint64 second; TUint64 millisecond;...
How to dial phone number programatically in iPhone / xCode?
UIDevice *device = [UIDevice currentDevice]; if ([[device model] isEqualToString:@”iPhone”] ) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@”tel:130-032-2837″]]]; } else { UIAlertView *Notpermitted=[[UIAlertView alloc] initWithTitle:@”Alert” message:@”Your device doesn’t support this feature.”...
“how to find Image size for a url in iPhone”
float size = [UIImageJPEGRepresentation(Image,0.9) length]/1024.0/1024.0;
//in above line Image is your image name
//NSLog(@”File Size : %f”, size);
if (size == 0)
{
UIImage *imagenew = [UIImage imageNamed”img-not-available.jpg”];
[ImageButton setImage:imagenew forState:UIControlStateNormal];
}
else
[ImageButton setImage:Image forState:UIControlStateNormal];
Charset in php
For Example to support Chinese Language web site <meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ /> //Inserting & Retrieving data from database mysql_query (“set character_set_results=’gb2312′”); or mysql_set_charset(“gb2312”); or mysql_query(“SET NAMES gb2312”); Please follow below link you...
Global variable in Symbian c++
You can store variable in AppUi class and get pointer to AppUi like this
static_cast<CYourAppUi*>(CCoeEnv::Static()->AppUi())
Switching Views In Symbian C++
Switching view code in Symbian c++
CEikonEnv* tEikonEnv=CEikonEnv::Static();
((CdemoAppUi*)(tEikonEnv->EikAppUi()))->ActivateLocalViewL(TUid::Uid(EStopwatchViewId));//EStopwatchViewId- enum uid
Adding an MKMapView programmatically
MKMapView * map = [[MKMapView alloc] initWithFrame:
CGRectMake(0, 0, 320, 480)];
Map.delegate = self;
[self.view addSubview:map];
Getting User’s Profile Data from Facebook in iPhone
It uses Graph API of Facebook. Use your own login to get data from all Methods. It gives you everything like UserName, email, user profile picture, all albums, all friends etc etc.
This is the code Getting User’s Profile Data from Facebook in iPhone.
reallylongaddress-iPhone-Facebook-Graph-API-59e6399