Unable to show Dynamic table after Android System Webview update

3,839 views
Skip to first unread message
Assigned to ewpa...@gmail.com by taifu...@gmail.com

Ryan Cheung

unread,
Sep 23, 2017, 2:16:55 AM9/23/17
to MIT App Inventor Forum
Hi All,

I got a problem after Android System Webview update. The dynamic table unable to show. I am using LG V10 Android Version 5.1.1.
I tried to uninstall the Android System Webview update, then it works fine. I have no idea whats wrong. But I cant resist user to update the system webview.

How can I do?

Ryan



TimAI2

unread,
Sep 23, 2017, 4:46:44 AM9/23/17
to MIT App Inventor Forum
Will it show any web pages in the webviewer at all, or is it just the dynamic table?

Taifun

unread,
Sep 23, 2017, 10:30:41 AM9/23/17
to MIT App Inventor Forum
does the example project at https://puravidaapps.com/table.php work for you?
Taifun

Ryan Cheung

unread,
Sep 23, 2017, 10:46:18 AM9/23/17
to MIT App Inventor Forum
Tested. Its not work too. 

Ryan

Ryan Cheung

unread,
Sep 23, 2017, 10:53:54 AM9/23/17
to MIT App Inventor Forum
Unable to show url like http://google.com too.

Ryan

Ryan Cheung

unread,
Sep 26, 2017, 12:41:30 PM9/26/17
to MIT App Inventor Forum
I found more info about android system webview.

As my mobile phone updated to android version 7.0 . I unable to disable the android system webview. Chrome set as default browser. So the problem still occur. If I want to show the table list. I have to uninstall the chrome then not update the chrome. I guess this is the incompatible issue with the table method . Since I tested the chartmaker extension shown by web viewer in latest version of chrome. It has no problem at all. 

I have a thought, if I can identify the chrome version of the user, then I can at least make a notify to the user whats going wrong and tell them how to solve the problem. Anyone can tell me is it possible to check the chrome version in AI2 ?

Ryan


Evan Patton

unread,
Sep 26, 2017, 1:57:21 PM9/26/17
to MIT App Inventor Forum
Hi Ryan,

I'm wondering if this problem is addressed by increasing the minSdk of your compiled app. In the past, users have switched from using the older Android webview to the Chrome webview by increasing the minSdk from 4 to 14. This is probably a stretch, but maybe it would solve your problem. Search the forum for AppToMarket for links to a tool that will help you do this.

Evan

Something Crawfishy!

unread,
Sep 26, 2017, 9:39:17 PM9/26/17
to MIT App Inventor Forum
My phone did an update and I am having same problem where my WebView is just empty.
Don't know what Android version was before update but current version is 6.0.1

My app uses modified code from https://puravidaapps.com/table.php to create a multi-column table but now is just blank.

For the moment, I am going to just change the app to use a List. Won't look nice but I am the only one that uses this app and I need to use it every day.

I have a few thoughts for a fix but I am going to wait to see it this magically fixes itself in the near future or maybe someone comes up with some simple solution.

Thought 1...
I could just write out the entire finished html code to a file then use android.intent.action.VIEW to open that local file.
A real pain in the neck to write out the html code but it would probably work.

Thought 2...
Same as thought 1, write out the entire html file in code and then use com.android.htmlviewer to open that local file.

Can anyone shed any light on the difference between "android.intent.action.VIEW" and "com.android.htmlviewer"?

Evan Patton

unread,
Sep 26, 2017, 9:41:31 PM9/26/17
to MIT App Inventor Forum
android.intent.action.VIEW will let any application that handles the data type of the URI potentially open the app. This could include other browsers, such as Firefox. Using com.android.htmlviewer will open the app with that specific package name.

Evan

Evan Patton

unread,
Sep 26, 2017, 9:43:44 PM9/26/17
to MIT App Inventor Forum
I have filed this as issue 942.

Evan

Ryan Cheung

unread,
Sep 27, 2017, 7:46:20 AM9/27/17
to MIT App Inventor Forum
Thanks Evan and Crawfishy,

I have no much knowledge on script or html.  Even I have no idea what minsdk is. But I would try to search information to learn more about that. App Inventor is great for non-skillful developer like me to make a simple app. But have bottle neck to me if I would like to over the limitation of AI2 . I have a sense I have to give up AI2 finally and study Android Studio. Since it is professional tools for app making. As an amateur it is not an easy work.

Ryan

Something Crawfishy!

unread,
Sep 27, 2017, 8:07:10 PM9/27/17
to MIT App Inventor Forum
O.k. so just want a bit more clarification...
Intent.VIEW would open my html file in the default browser (of course assuming a default is set) correct?
And then .htmlviewer is some kind of generic built-in html viewing app? If so, just to clarify, does it "render" the html or view the html in text form?

Boban Stojmenovic

unread,
Sep 28, 2017, 12:08:21 PM9/28/17
to MIT App Inventor Forum
Since I also experienced this and what worked for me on Samsung S6+ edge, Android 7.0 was to remove WebViewer.GoHome block.


For urls, it has to be in this format http://google.com https://www.google.com/


I hope this will be of any help for you..

Boban


Auto Generated Inline Image 1
Auto Generated Inline Image 2

Ryan Cheung

unread,
Sep 28, 2017, 2:02:19 PM9/28/17
to MIT App Inventor Forum
HI Boban,

You are so great! Problem solved. How come you can find out to remove the go.home block? I have no idea what the go.home block actually doing, I guess it is essential command to call the webviewer go to the home url. But it is not essential to the table list.  So do you know what's wrong with the go.home block?

Ryan

Boban Stojmenovic

unread,
Sep 29, 2017, 1:20:30 PM9/29/17
to MIT App Inventor Forum
Hi Ryan,
 
You are so great! Problem solved.
Glad to hear that it worked out for you.

How come you can find out to remove the go.home block?
Before I had to dig into my own project to see what's wrong I made a quick test with Taifun's example and as the project was loaded, page was empty, I started debugging.
 
4. Use "Do It" to debug your blocks

one by one I excluded some blocks, tada it worked.


 I have no idea what the go.home block actually doing, I guess it is essential command to call the webviewer go to the home url. But it is not essential to the table list.  So do you know what's wrong with the go.home block?
WebViewer.GoHome Loads the home URL page, because it has worked so far the latest update has to do with it, Sorry.

Boban

JuanCarlosMM

unread,
Oct 3, 2017, 6:21:25 PM10/3/17
to mitappinv...@googlegroups.com
Hi Boban,

I have the same problem but I am working locally assets. It was working great before the last web viewer component update

I declared home viewer at Designer mode and it works fine just the first time I call the webviewer , then when I go out to a previous scren and back again it works again.

Any idea?

I have tested 
using go home, 
and go to url webviewer,
prompt for permission true and false




issue.jpg

JuanCarlosMM

unread,
Oct 3, 2017, 6:50:35 PM10/3/17
to MIT App Inventor Forum
It works again!!!

I solved it removing all GoToUrl procedures instead of GoHome procs. Remember I am using local assets and I declared homeUrl at design mode.

If I make a combination of procedures gotourl and GoHome in a routine then the fault appears.

Before the update was just working ok.

Thank you anyway.
Regards. :)

Something Crawfishy!

unread,
Oct 3, 2017, 10:46:35 PM10/3/17
to MIT App Inventor Forum
Boban's solution worked for me.  I just removed all calls to WebViewer.GoHome in my app and everything is working fine again.

Michael Schneider

unread,
Oct 5, 2017, 1:44:57 PM10/5/17
to MIT App Inventor Forum
Thank you for that tip it works fine

Abraham Getzler

unread,
Nov 3, 2017, 9:32:03 AM11/3/17
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages