Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Android - Web Browser

  • #1, by darren-beckett 10 years ago Zitieren
    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?
  • #2, by sebastian 10 years ago Zitieren
    Try this for Android :

    os.execute("am start -n com.android.browser/com.android.browser.BrowserActivity "..url)
  • #3, by darren-beckett 10 years ago Zitieren
    That's something i've tried, it does nthing either.

    I don't think the App has Internet settings/permissions.
  • #4, by sebastian 10 years ago Zitieren
    what does os.execute return when you print it? 
  • #5, by darren-beckett 10 years ago Zitieren
    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.
  • #6, by darren-beckett 10 years ago Zitieren
    Any solutions?
  • #7, by darren-beckett 10 years ago Zitieren
    Any solutions?
  • #8, by sebastian 10 years ago Zitieren
    sorry, never exported something (to android) yet. 
  • #9, by darren-beckett 10 years ago Zitieren
    No worries Seb, we need the devs to get involved.
  • #10, by darren-beckett 10 years ago Zitieren
    Simon?
  • #11, by SimonS 10 years ago Zitieren
    This cannot yet be done, I will add this to startDefaultBrowser for vis 5.