Menu
Login
Language
DE EN FR ES IT CZ
Back

Android - Web Browser

  • #1, by darren-beckett Friday, 24. March 2017, 11:58 9 years ago Quote
    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

    386 Posts

  • #2, by sebastian Friday, 24. March 2017, 13:12 9 years ago Quote
    Try this for Android :

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

    Thread Captain

    2346 Posts

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

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

    Great Poster

    386 Posts

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

    Thread Captain

    2346 Posts

  • #5, by darren-beckett Friday, 24. March 2017, 15:14 9 years ago Quote
    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

    386 Posts

  • #6, by darren-beckett Monday, 27. March 2017, 21:04 9 years ago Quote
    Any solutions?

    Great Poster

    386 Posts

  • #7, by darren-beckett Monday, 27. March 2017, 21:05 9 years ago Quote
    Any solutions?

    Great Poster

    386 Posts

  • #8, by sebastian Monday, 27. March 2017, 21:11 9 years ago Quote
    sorry, never exported something (to android) yet. 

    Thread Captain

    2346 Posts

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

    Great Poster

    386 Posts

  • #10, by darren-beckett Tuesday, 28. March 2017, 12:03 9 years ago Quote
    Simon?

    Great Poster

    386 Posts

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

    Thread Captain

    1621 Posts