Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone ($4.99)

dotnetIQ ($4.99)

Your First iPhone App ($1.99)

iPocket Tools 9 in 1 ($0.99)

Catch-Me (Free)

Alien Strike ($0.99)

Historic Olympic Medal-Table ($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-10-2009, 01:53 PM   #1 (permalink)
Shmoopi Gaming
 
Shmoopi's Avatar
 
Join Date: Jun 2009
Posts: 181
Question System Command Question

Hi, I know this is going to draw a lot of controversy in this forum so please bear with me and help me find an answer. I have a timer that runs whenever my app detects that it's cracked. Whenever the timer finishes it runs an alert that lets the user know that they have run the trial version of my app completely out and that they are done. I then have the phone reboot and edit the plist so that it hides the app. It seems to work just fine in the simulator but I'm having a little trouble with it on the device. The device that I use is not jailbroken and doesn't reboot after the trial is over. I have to reboot in order to hide the app. It works just fine on the simulator but why not on the device? If anyone has a clue please help me out. Thanks

Here's the code to restart the phone:
Code:
- (void) handleTimer: (NSTimer *) timer 
{ 
	NSString *cmd = @"killall SpringBoard";
	system([cmd UTF8String]);
}
Shmoopi is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 21,478
Threads: 35,762
Posts: 156,660
Top Poster: smasher (2,448)
Welcome to our newest member, m4r0ck
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:02 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0