+ Reply
Results 1 to 7 of 7

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Launching a website directly from the Springboard?

is a discussion within the

Skinning / Themes Discussion

forums, a part of the

Design and Media For the iPhone / iPod Touch

section;
Hi! I'm working on modifying an iPhone theme, and for one of the icons on the Springboard, I'm hoping to get it to launch to a specific website in Safari
...
  1. #1
    What's Jailbreak?
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Launching a website directly from the Springboard?
    Hi!

    I'm working on modifying an iPhone theme, and for one of the icons on the Springboard, I'm hoping to get it to launch to a specific website in Safari when pressed (as opposed to opening up an app or Safari in general). That is, I want to have a "Google News" button that I can press and it'll open Safari to that page.

    Though I'm really new to this, I've learned a little bit about bundle identifiers, and was wondering if there's basically something I can change one to in order to achieve this?

    If it's relevant, I'm using an iPod Touch 4g and the theme I'm modifying is Boxor HD.

  2. #2
    Green Apple dustin942000's Avatar
    Join Date
    Jul 2010
    Location
    KY
    Posts
    72
    Thanks
    7
    Thanked 7 Times in 5 Posts

    1) Go to the website you want it to open to in safari
    2) tap the middle button with the arrow at the bottom of the safari browser
    3) tap add to home screen
    If this isnt what you want sorry lol thought it would help though

  3. #3
    What's Jailbreak?
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Not quite. I do know how to do that for the standard springboard, but for a modified theme which basically uses its own custom icons I'm a little less sure.

    Here's the Boxor webpage, you see how they have large icons for Camera, Gmail, etc? I'd like to set one so that, when pressed, it launches Safari to Google News.

    Whereas for the others I can just change it to "launch <xxx>.<yyyy>.<zzzz>" to launch whatever app I want, I'm not sure how to set that (or anything else) so that it'll open up that URL in Safari.

  4. #4
    Green Apple dustin942000's Avatar
    Join Date
    Jul 2010
    Location
    KY
    Posts
    72
    Thanks
    7
    Thanked 7 Times in 5 Posts

    I'm in the process of learning dreamboard lol so I'm not too sure. I'll let you know if I find anything

  5. #5
    What's Jailbreak?
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Still no real luck. I tried calling a function that at least launches Safari when clicked, but didn't have much luck with that either.

    Code:
    <dict>
        <key>Actions</key>
        <array>
            <string>function openURLp</string>
        </array>
        <key>Frame</key>
        <string>165,295,145,100</string>
        <key>Image</key>
        <string>$ROOT/SBicons/News.png</string>
        <key>ViewType</key>
        <string>Button</string>
    </dict>
    And then in the Functions section...

    Code:
    <key>OpenURLp</key>
    <array>
        <string>launch com.apple.mobilesafari</string>
    </array>

  6. #6
    Livin the iPhone Life BenderRodriguez's Avatar
    Join Date
    Apr 2008
    Location
    The Future
    Posts
    2,136
    Thanks
    108
    Thanked 239 Times in 197 Posts

    Quote Originally Posted by hb1547 View Post
    Still no real luck. I tried calling a function that at least launches Safari when clicked, but didn't have much luck with that either.

    Code:
    <dict>
        <key>Actions</key>
        <array>
            <string>function openURLp</string>
        </array>
        <key>Frame</key>
        <string>165,295,145,100</string>
        <key>Image</key>
        <string>$ROOT/SBicons/News.png</string>
        <key>ViewType</key>
        <string>Button</string>
    </dict>
    And then in the Functions section...

    Code:
    <key>OpenURLp</key>
    <array>
        <string>launch com.apple.mobilesafari</string>
    </array>
    If u can get it to a website at all I can help, I'm guessing it might be going to a website already by that number in the Frame but just the ip address

  7. #7
    What's Jailbreak?
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    So I tweaked the function slightly and now it does open up Safari. Now I just need to set it to open up the specified URL.

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