Android - Web Browser

  • #1, by darren-beckettFriday, 24. March 2017, 11:58 7 years ago
    Hi,

    I'm trying (and failing) to to open a web browser from within the Android App.

    None of these work:
    startDefaultBrowser(url)
    
    
    os.execute("start " .. url) 
    
    os.execute("open " .. url) 
    
    os.execute('start "" "' .. url .. '"') 
    
    os.execute('open "" "' .. url .. '"') 
    
    os.execute("am start -n com.android.browser/com.android.browser.BrowserActivity ".. url)

    Is there something you guys need to do within the Android APK?

    Great Poster

    384 Posts


  • #2, by sebastianFriday, 24. March 2017, 13:12 7 years ago
    Try this for Android :

    os.execute("am start -n com.android.browser/com.android.browser.BrowserActivity "..url)

    Thread Captain

    2346 Posts

  • #3, by darren-beckettFriday, 24. March 2017, 13:26 7 years ago
    That's something i've tried, it does nthing either.

    I don't think the App has Internet settings/permissions.

    Great Poster

    384 Posts

  • #4, by sebastianFriday, 24. March 2017, 14:15 7 years ago
    what does os.execute return when you print it? 

    Thread Captain

    2346 Posts

  • #5, by darren-beckettFriday, 24. March 2017, 15:14 7 years ago
    what does os.execute return when you print it? 

    The last part of the script is output to the log and it shows how many milliseconds it took.

    Each of the options i tried took a different amount of time.

    No errors though.

    Great Poster

    384 Posts

  • #6, by darren-beckettMonday, 27. March 2017, 21:04 7 years ago
    Any solutions?

    Great Poster

    384 Posts

  • #7, by darren-beckettMonday, 27. March 2017, 21:05 7 years ago
    Any solutions?

    Great Poster

    384 Posts

  • #8, by sebastianMonday, 27. March 2017, 21:11 7 years ago
    sorry, never exported something (to android) yet. 

    Thread Captain

    2346 Posts

  • #9, by darren-beckettMonday, 27. March 2017, 23:42 7 years ago
    No worries Seb, we need the devs to get involved.

    Great Poster

    384 Posts

  • #10, by darren-beckettTuesday, 28. March 2017, 12:03 7 years ago
    Simon?

    Great Poster

    384 Posts

  • #11, by SimonSTuesday, 28. March 2017, 12:14 7 years ago
    This cannot yet be done, I will add this to startDefaultBrowser for vis 5.

    Thread Captain

    1580 Posts