The ModMyTM Family of Sites:
ModMyMotoModMyiModMyGphone




 
 
Register or Connect with Facebook

Discuss AppStore Apps | Browse / Search Cydia | MMi Cydia Stats




  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-02-2009, 07:15 AM
What's Jailbreak?
 
Join Date: Jul 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Simple App just with Popup

hey.
i wrote a little "app". actually it is just a shellscript which does a few things.
I would like to create an app to bring up a simple popup window, which asks whether you want to continue (and runs the shell script) or to abort (exit the app).
Unfortunately I have no clue about SDK and Co. I would just like to create that small starter for my app.
How could I do that best (and easiest)?
Thx
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2  
Old 07-13-2009, 08:28 AM
What's Jailbreak?
 
Join Date: Aug 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Hi,
A while back I was looking for the same thing and also went the road of trying to make one myself using the sdk. I eventually stumbled upon GriP. It will do what you want. You can install it through cydia. You need to enable the CLI interface to let your scripts use it. Run it once by opening terminal and running 'Grip'. It will give out saying that the cli interface hasn't been enabled. Now if you go to your settings, you'll find a new sub-category for enabling the CLI. The only way that I have been able to get a retrieve user acknowledge is whether or not the user clicks the popup or clears the popup.

PS:
An example that I am currently using. I have a server running at home. I coded a service on it that simply waits for my iphone to be in wireless range. Once it detects the iphone, it SSH's into the phone and sends a GriP message "Do you want to listen to Music?" using the CLI.
If I click the popup, it is interpreted as a 'YES' and the server runs a script that switches on the Amplifier and runs a playlist. Clearing the popup is interpreted as a 'No' and the service sleeps until I leave range for 30 minutes and return. It's a bit clunky but it works well. I have a bank of network controlled switches so there's a lot of scripting potential!! Another script asks whether I want to use my xbox 360. It then switches on the TV, Xbox and Amplifier and uses a UIRT to turn on the TV and Amp and selecting the appropriate channels.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums & iPhone Forums, Mods, Hacks, News, Themes, Downloads, and more! | ModMyi.com > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion

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



Go to Top
ModMyI

All times are GMT -6. The time now is 08:19 AM. Powered by vBulletin® Version 3.8.4
If you need Dedicated Server Hosting, you should check out SingleHop. | Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 Copyright © 2007-09 by ModMy, LLC. All rights reserved.

iPhone News / iPhone Forums / Apple News / Apple Forums / RSS / Contact Us / / Privacy Statement / Top