Android - Web Browser

  • #1, by darren-beckettFriday, 24. March 2017, 11:58 3 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)
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

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

    Great Poster

    351 Posts


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

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

    Thread Captain

    2337 Posts

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

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

    Great Poster

    351 Posts

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

    Thread Captain

    2337 Posts

  • #5, by darren-beckettFriday, 24. March 2017, 15:14 3 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

    351 Posts

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

    Great Poster

    351 Posts

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

    Great Poster

    351 Posts

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

    Thread Captain

    2337 Posts

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

    Great Poster

    351 Posts

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

    Great Poster

    351 Posts

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

    Thread Captain

    1369 Posts

Write post