Hoi,
I have a simple app with a surfaceview nothing special one would say. However when installing on my phone I get two warnings.
1 - Phone calls
- read phone state and identity
2 - Storage
- modify/delete SD card content.
My really is nothing more than a simple puzzle and I dont understand why I get these warnings.
Any ideas how to avoid this?
Help is very much appreciated,
Kind regards
Jasper de Keijzer.
Hi,
I have a ListView. I populate it with 8 items, that's all that fits vertically on the G1. Some of my users are saying the Droid has a taller screen height, and so I can probably add one or two more items to the ListView to take up the additional space provided.
How could I measure the available height the screen offers at startup, before the UI is displayed? If I see the height can fit more than 8 items, I'd like to add one or two more rows,
Thanks
Hello guys!
How can I change the place of the .sqlite file in my directory structure. Now it is in the Documents, but I want it to be in the Library/Preferences. Can you help me please?
I'm having trouble trying to find a way to guide a user from one point on a map to another. I can add the locations I want to the overlay.
I want the user to be able to pick a location and be guided through the streets to that location.
Does anyone know how to do this, or is it even available in the api?
My app is a tab bar application, which one of the tabs is a TableViewController instead of a viewController which works fine (the table displays great) but where and how do I add UINavigationController to it? :-)
Hi,
I am retrieving the Json data from an URL into a table view. The problem is that i couldnt replace the old data that is retrieved, with the new data when i click another table cell. The new data is getting added to the last cell of the table cell while the old data is also getting displayed. What could be the problem...
hi,
i have done in didapplicationfinishing function
tabBarController = [[UITabBarController alloc] init] ;
tabBarController.navigationItem.title = @"News";
SimpleTableViewController *rtbfViewController = [[SimpleTableViewController alloc]
init];
//initWithStyle:UITableViewStyleGrouped];
rtbfViewController.tabBarItem.title = @"News1";
rtbfViewController.tabBarItem.image = [UIImage imageNamed:@"home.png"];;
UINavigationController *table2NavController = [[[UINavigationController alloc] initWithRootViewController:rtbfViewController] autorelease];
[rtbfViewController release];
it works fine .suppose if i have Navigation controller in Interface Builder,how can i set initWithRootViewController in Interface builder?
Hello everyone!
I have an annoying problem with TabActivity. I have several activities in it and when I switch between them each of them gets recreated and loses all it's info Sad
I've tried using android:launchMode="singleTop" but no luck :(
Any clues?
What resources do folks use for UITableView related stuff? Apple's Docs seem sufficient , but am sure everyone has a UITableView reference that they use when implementing table views.
Hello everyone,
I was wondering how I can format the textField that I'm using for a phone number (ie like the "Add New Contact" page on the iPhone. When I enter in a new mobile phone, ex. 1236890987 it formats it as (123) 689-0987.)
I already have the keyboard set as the number pad.
Thanks!
after calling:
bindService(new Intent(IUdpListenerService.class.getName()),
serviceConnection, Context.BIND_AUTO_CREATE);
the onServiceConnected isn't being called.
I use the info button to display a settings page. This page is a modal. I need another button from here to display "About" info, since I've already used "info" for something. I have a search form that is accessed only from the modal. On the search form, I need a help icon. I can use the info button but that seems confusing, since I already use the info button from the main view to access the modal. What else can I do for help and about icons/buttons?
I am trying to subtract one variable from another, and use that output. but when I subtract them, the outcome is just the second variable negative!
int distance = pointX-pointXTwo;
NSLog(@"%d", distance);
I have tried using an outlet to connect my tableview controller to my object, setting the nib name in IB and setting the class in IB but it still wont link? I know this as im trying to set my table view to 'grouped'
Thanks very much.
I have a locationmanager in my main program which is called HomeViewController which I get the latitude and longitude and store them in LAT and LON. I can use LAT and LON in HomeViewController just fine. Once I go to another controller which is sending pictures and setting properties on flicker I want to use LAT and LON, how do I do this? I tried putting
HomeViewController.LAT
but obviously that does not work, I'm pretty new to the language so I am confused.
the code is giving me an error"Unused variable'path'" and when i press a button there is no sound playing how do i fix this the aSound is in the h file
- (void)playOnce:(NSString *)aSound;
- (IBAction) beatButton50
{
[self playOnce:@"racecars"];
}
- (void)playOnce:(NSString *)aSound {
NSString *path = [[NSBundle mainBundle] pathForResource:aSound ofType:@"caf"];
if([theAudio isPlaying])
{
[theAudio stop];
}
}
- (void)playLooped:(NSString *)aSound {
NSString *path = [[NSBundle mainBundle] pathForResource:aSound ofType:@"caf"];
if (!theAudio) {
theAudio = [[AVAudioPlayer alloc] initWithContentsOfURL: [NSURL fileURLWithPath: path] error: NULL];
}
[theAudio setDelegate: self];
// loop indefinitely
[theAudio setNumberOfLoops: -1];
[theAudio setVolume: 1.0];
[theAudio play];
}
- (void)stopAudio {
[theAudio stop];
[theAudio setCurrentTime:0];
}
Hi,
i have two applications which i want them to share the same arraylist.
how could i achive something like that? is there anything in Android for sharing such a prefrenceses?
thanks,
Hi there. I have recently been rewriting some of my iphone app because a couple of users have said it was crashing on certain events.
The event in question is when I add a new XIB to the view using the following code
AddItemViewController * add_item = [[AddItemViewController alloc] initWithNibName:@"AddItem" bundle:[NSBundle mainBundle]];
[self presentModalViewController:add_item animated:YES];
[add_item setViewFormat:2];
[add_item release];
it works perfectly on my iphone and a mate's ipod touch (both running 3.1.3) but another user on an ipod touch also with 3.1.3 says it crashes when the function above is called. Why could this be happening? Surely if it works on one device it should work on another?! Is there a better way to add a view which maybe doesnt crash?
I have also disabled all the code on the loading xib - so it literally is loading a near blank page.
It's SO annoying!! Thanks for any help.
I am writing an iPhone App that uses a HTTPS/SOAP service which needs user credentials. After I change the password used for these credentials from a valid to an invalid one I still get a valid response from the service, as if the password was never changed. When I restart the app (with the invalid password) the app immediately receives the expected '401' message.
Any hints what I might left out to code?
Thx :)