vieuxcarre44 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

webViewShow() needs close and reopen APIs #467

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

I'm using Perl and webViewShow, is there a way to switch html pages by 
re-issuing another webViewShow?

I've been able to use waitForEvent, receiveEvent and postEvent to change 
style="display: block;" to style="display: none;" through Javascript and Perl.  
But, I'm looking at building a more sophisticated application.  I've tried 
calling webViewShow again with no results.

I'm on the Sl4a r3 and Android 2.2

Thanks in advance for your help.

Jack

Original issue reported on code.google.com by jck...@gmail.com on 1 Nov 2010 at 8:54

GoogleCodeExporter commented 9 years ago
Also, when I exit the Perl script, the webview will not close.  I've tried 
useing window.close() inside of the webview with no effect.

Please give me a recommendation on how to close the webview.

Thanks
Jack

Original comment by jck...@gmail.com on 3 Nov 2010 at 3:46

GoogleCodeExporter commented 9 years ago

Original comment by damonkoh...@gmail.com on 6 Nov 2010 at 9:26

GoogleCodeExporter commented 9 years ago
I use a python script and even the sys.exit() doesn't close the web page.
I don't know how to do it.

Original comment by iloc...@gmail.com on 20 Nov 2010 at 4:52

GoogleCodeExporter commented 9 years ago
I use webViewShow and after refresh page in webview (javascript 
location.replace() ) script for waitForEvents in page is not function. And 
webViewShow should not close.

Original comment by milan...@gmail.com on 24 Nov 2010 at 1:47

GoogleCodeExporter commented 9 years ago
Is there a suggested work around?  Or, will this be fixed soon?  I have several 
apps ready to release but this is a show stopper for me.

Thanks

Original comment by jck...@gmail.com on 6 Dec 2010 at 7:49

GoogleCodeExporter commented 9 years ago
Sorry, no ETA. Also, there's no workaround that I'm aware of.

Original comment by damonkoh...@gmail.com on 10 Dec 2010 at 10:42

GoogleCodeExporter commented 9 years ago
surely the ability to close can be patched through the API from the webview 
class in the android library...?

Original comment by JMCobb@gmail.com on 25 Mar 2011 at 5:48

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hello guys, here are 2 patches that add methods from the webview to dismiss it.

The java patch adds the needed wrappers using the standard Android JS 
interface, while the js patch simply exposes the dimiss method in the Android 
object when you are in JS.

Sorry Robbie but I have no freaking idea on how to clone your repository and do 
a pull request like I do on gitorious. Can you commit it please? I made them 
against your tree.

Original comment by naranjo....@gmail.com on 22 Apr 2011 at 3:53

Attachments:

GoogleCodeExporter commented 9 years ago
Hello everybody

Can anyone say me how to apply these patches? I need to close webviews in a 
SL4A development, but I don't know how to make it :( 

Original comment by jmar...@zikzakmedia.com on 27 Oct 2011 at 10:12

GoogleCodeExporter commented 9 years ago
im not shure but try that

move *.diff files to sdcard, run sl4a and open shell interpreter and type

$applypatch -c /sdcard/download/HtmlActivityTask.java.diff
$applypatch -c /sdcard/download/android.java.diff

Original comment by dsso...@gmail.com on 24 Jan 2012 at 4:41