Siam Active Member Licensed User Longtime User Jul 31, 2013 #1 Hello, I have a big Problem with Android 4.2.2 and webview i Have Attached some Pictures who shows my problem witch i Have under Android 4.2.2 with Android 4.1.2 its all fine. On the Pictures you can see that the webpage will sometimes be broken. But sometimes the page will loaded fine. How can i fix this problem ? Sorry for my bad english !! i use B4A 2.71 glg Andy
Hello, I have a big Problem with Android 4.2.2 and webview i Have Attached some Pictures who shows my problem witch i Have under Android 4.2.2 with Android 4.1.2 its all fine. On the Pictures you can see that the webpage will sometimes be broken. But sometimes the page will loaded fine. How can i fix this problem ? Sorry for my bad english !! i use B4A 2.71 glg Andy
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2013 #2 Seems like an issue in the native WebView component. Can you post the link to this page?
Siam Active Member Licensed User Longtime User Jul 31, 2013 #3 here ist the link to this topic: www.kleinersonnenschein.de/forum/forum/viewtopic.php?f=7&t=2704&style=14&format=html to view the page as mobile you must set the User Agent in your browser to kiwuweb-app lg Andy
here ist the link to this topic: www.kleinersonnenschein.de/forum/forum/viewtopic.php?f=7&t=2704&style=14&format=html to view the page as mobile you must set the User Agent in your browser to kiwuweb-app lg Andy
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2013 #4 How do you load it to the WebView?
Siam Active Member Licensed User Longtime User Jul 31, 2013 #5 hi, i open it with : main.url ="http://kleinersonnenschein.de/forum/forum.html" WebView1.LoadUrl(Main.Url) and bevore i set the useragent to "kiwuweb-app"
hi, i open it with : main.url ="http://kleinersonnenschein.de/forum/forum.html" WebView1.LoadUrl(Main.Url) and bevore i set the useragent to "kiwuweb-app"
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2013 #6 How do you set the user agent? With one of the extended WebView libraries? You can try to disable hardware acceleration in the manifest editor. It might help.
How do you set the user agent? With one of the extended WebView libraries? You can try to disable hardware acceleration in the manifest editor. It might help.
Siam Active Member Licensed User Longtime User Aug 1, 2013 #7 hi, i set the userAgent with the Reflectionlib Code: Copy Dim Obj1 As Reflector Obj1.Target = WebView1 Obj1.Target = Obj1.RunMethod("getSettings") Obj1.RunMethod2("setUserAgentString", UserAgent, "java.lang.String") it seems to work without the hardware accerlation but i wait of some feedback from my Beta Tester but i dont Understand why this happens is this now a bug in Android or from B4A?
hi, i set the userAgent with the Reflectionlib Code: Copy Dim Obj1 As Reflector Obj1.Target = WebView1 Obj1.Target = Obj1.RunMethod("getSettings") Obj1.RunMethod2("setUserAgentString", UserAgent, "java.lang.String") it seems to work without the hardware accerlation but i wait of some feedback from my Beta Tester but i dont Understand why this happens is this now a bug in Android or from B4A?
Erel B4X founder Staff member Licensed User Longtime User Aug 1, 2013 #8 It seems like a bug in Android.
Siam Active Member Licensed User Longtime User Aug 4, 2013 #9 hello, the problem is fixed! thank you vor your fast help !!!!
moster67 Expert Licensed User Longtime User Aug 4, 2013 #10 @Siam can you explain how it was fixed? This makes this thread complete and may be useful for other users trying to resolve your same problem.
@Siam can you explain how it was fixed? This makes this thread complete and may be useful for other users trying to resolve your same problem.
Siam Active Member Licensed User Longtime User Aug 4, 2013 #11 no problem! I have found some threats in other Community's and they wrote that this problem exists since Android 4.0.0 on Some Smartphones blinking Some areas on other Smatphones the webpage will appear so how you can see on my first posting. To solve This Problem add: Code: Copy AddManifestText( ..... ..... ..... SetApplicationAttribute(android:hardwareAccelerated, "false") ) to your Manifest file and the problem is fixed greets Andy
no problem! I have found some threats in other Community's and they wrote that this problem exists since Android 4.0.0 on Some Smartphones blinking Some areas on other Smatphones the webpage will appear so how you can see on my first posting. To solve This Problem add: Code: Copy AddManifestText( ..... ..... ..... SetApplicationAttribute(android:hardwareAccelerated, "false") ) to your Manifest file and the problem is fixed greets Andy