Android Question webview issue on opening/browsing a file

microbox

Active Member
Licensed User
Longtime User
I have the following link http://www.tacloban-issues-concern.tacloban.gov.ph/site/
Opening it on a web browser the Choose File button works fine. But when I tried to display it on a webview it does not work.
Here is the code I'm using..
B4X:
Log(Position)
        vPosition = Position
        playMedia
        strDialog = "Report any other issues and concerns not provided by the other buttons. "
        Dim sf As Object = DetailsDialog.ShowAsync(items(Position ), "", "Cancel", "", LoadBitmap(File.DirAssets,images(Position-1 ) & "1.png"), False)
        DetailsDialog.SetSize(100%x, ht)
        Wait For (sf) Dialog_Ready(pnl As Panel)
        pnl.LoadLayout("detailsDialog2") ' Webpage
        WebView1.LoadUrl("Http://www.tacloban-issues-concern.tacloban.gov.ph/")
        cv5.Initialize("",0,Array As Int(Colors.Gray,Colors.LightGray,Colors.LightGray, Colors.Gray))
        pnl.AddView(cv5,50%x-55dip,40%y,50dip,50dip)
        AnimateIt(pnl)
        cv5.Visible = True

Kind regards,
microbox
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
no problem here for:
B4X:
        WebView1.LoadUrl("Http://www.tacloban-issues-concern.tacloban.gov.ph/")

maybe try stripping away all the other code above and below that statement. you should see that it works ok. then you can start adding the other stuff (which looks a little scary to me). my guess is that's where your issue lies. by the way, is that panel sitting on top of the webview by any chance?
 

Attachments

  • 1.png
    1.png
    32.4 KB · Views: 193
Upvote 0
Top