Jason - I do want to redirect. What I also want is to stay in the
original WebView window, right now it starts there but then app pops-
up mobile browser and page is displayed in that browser rather than
the app
On Sep 21, 3:45 pm, Jason Proctor jason.android.li...@gmail.com
wrote:
do you have
My problem is that data I'm loading/reloading into WebView takes long
time to process since it's full blown HTML + JS + CSS. I noticed that
when cached, same code loads way faster.
What I'm trying to do is to minimize loading hiccup when user reloads
already cached content
On Sep 3, 4:42 pm,
Indra - I would suggest asking separate question. It's hard to answer
2 questions on a single thread however related these may be
On Sep 18, 4:10 am, indra indrad...@gmail.com wrote:
Hi Guys,
I am doing google search and I want to receive the data without
loading the webView.
Just like a
Hi Guys,
I am doing google search and I want to receive the data without
loading the webView.
Just like a query to google db, but don't know the content uri of the
db.
I have done a similar thing in google suggestion provider, where
content uri is
On Sep 17, 8:13 pm, Nanard bsegon...@free.fr wrote:
Hi,
I'd like to use WebView to display some content (from my Java code or
local temp file).
I need to select some characters (change background color) of the
view. Of course I need to change those selected char. using my Java
code.
How
Photics wrote:
I tried, but I couldn't get it to work.
mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode
(WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean
legerb wrote:
I have a WebView in my activity opening html file, containing a simple
javascript.
My problem is that the webview opens the html file, but doesn't
execute the javascript.
When i open the file from web browser, and not from my app, it
executes the javascript correctly.
What
Thanks a lot Mark!
This is what i've been missing :)
On Mon, Sep 14, 2009 at 2:11 PM, Mark Murphy mmur...@commonsware.comwrote:
legerb wrote:
I have a WebView in my activity opening html file, containing a simple
javascript.
My problem is that the webview opens the html file, but doesn't
Heh... wow... this is complicated. In regular HTML, I can open a new
window with _blank With the WebView, it's a little bit harder! :)
I think that's what bothers me. I think that the WebView should
respect the hyperlink targets, or at least have an option to be set
such... like a webSetting.
I think it's best to think of WebView as little more than a rendering
engine. If you want to implement a Web Browser, you have to do that
yourself. WebView isn't intended to be a little micro-embedded web
browser.
On Sep 14, 8:22 am, Photics m...@photics.com wrote:
Heh... wow... this is
It seems like what you want to happen is this:
- if domain of URL is http://photics.com, display result in your webview
- if it is not http://photics.com, go to the URL in a new window
I think the answer is in this thread. I don't trust your solution. I don't
understand why it would work twice.
I don't think that's right. I'm not trying to do anything crazy here,
just enable a pretty basic HTML function - open a new window.
It goes back to this line...
webview.setWebViewClient(new WebViewClientDemo());
If that line is not there, EVERY link opens in a new window...
including ones on
OK... first... a correction in my previous post.
every link opens in a new window ...the word external should have
been added. Local files can work great. My problem is that I'm trying
to create exceptions. I have to do this to make my advertisers happy.
So OK... I have a fix... it's ugly...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
I don't trust your solution.
Heh... I didn't trust it at first either, but I've been playing around
with it today. It seems OK. It also seems similiar to what you
suggested... using an if/else after shouldOverrideUrlLoading. I tried
to understand what you and Mark Murphy posted about Intents
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
Photics wrote:
I tried
to understand what you and Mark Murphy posted about Intents and
Activities, but I wasn't able to get it working.
startActivity(new Intent(Intent.ACTION_VIEW, http://thisismydomain.com;));
Replace the hardwired URL in the above snippet with whatever you want to
display
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
This is why I didn't trust your solution.
When you say:
mWebView.setWebViewClient(null);
You are indicating that the webview has no special processing.
So after this is called 1 time, all URLs will open in an external browser.
Basically you want:
if (photics)
display in webview (works OK)
else
So basically, the Intent line is supposed to replace the line I put in
there. Yet, when I try it, I get lots of angry red squiggily lines in
Eclipse. Heh, I did try the code before, but it didn't work for me.
It's hard to understand the proper formatting on this bulletin board.
There are
OK... so I looked at your posts again. and I looked at the nice page
again. I was able to get rid of the red squiggily lines. The code
looks like this...
mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
Hi,
This email thread happened in Sept 2008. Can you please tell me if
this bug is fixed (named anchor won't load in Webview) in cupcake
builds?
Thank you.
On Sep 25, 5:45 pm, Mark Murphy [EMAIL PROTECTED] wrote:
Tauno T wrote:
I have a problem with WebView.
If I call loadData() with a
Photics wrote:
I like this tutorial...
http://developer.android.com/guide/tutorials/views/hello-webview.html
...but it doesn't explain how to handle new windows.
It says, What we've done is create a WebViewClient that will load any
URL selected in our WebView in the same WebView.
I tried, but I couldn't get it to work.
mWebView.loadUrl(http://photics.com/games/conquest;);
mWebView.getSettings().setCacheMode
(WebSettings.LOAD_NO_CACHE);
mWebView.setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView
dpackham wrote:
I cant find anywhere how to change the Text COLOR in a webview. I can
change the background color but not the Text.
Modify the HTML you are displaying in the WebView.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
_Beginning Android_
make it a DOM node than its possible as most DOM objects are
sleectable in webview
On Sep 8, 4:59 am, Nanard bsegon...@free.fr wrote:
Hi,
I like WebView component.
I would like to be able to select text in the view in my Java code.
Is it possible ?
OK, thanks.
I will check how DOM objects work on Android...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To
Jason Proctor wrote:
the regular WebKit has a method to run arbitrary javascript and
return any results. if you gave the text a DOM ID then you could
select it via this method.
unfortunately it looks like the Android interface to WebKit doesn't
include this facility.
You can use
This really stinks (not caching data loads). Is it possible to code it
in?
On Sep 2, 4:07 pm, Jason Proctor jason.android.li...@gmail.com
wrote:
the loadData() methods don't enter anything into the history and
rather more awkwardly don't set the current URL. so if you call
loadData() and then
the loadData() methods don't enter anything into the history and
rather more awkwardly don't set the current URL. so if you call
loadData() and then getUrl() you'll find that they don't match up.
it's not really clear what WebKit is supposed to do in these
circumstances, but i think as a
Nobody?
I'm using WebChromeClient and onJsConfirm. I need do some work when
method onJsConfirm end. Is there any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Loki117 wrote:
Can someone shed some light on why a inline webview into which I pass
a URL is now opening a browser session for the URL instead of
populating the in app webView? It works on the emulator perfectly but
a physical device shows the browser.
It behaves the same in both the
the default WebViewClient opens links in a browser window. if you
install a new one with setWebViewClient(), you can override this
behaviour.
Morning all,
Can someone shed some light on why a inline webview into which I pass
a URL is now opening a browser session for the URL instead of
Matt wrote:
Hi,
I have created an application using webview however whenever I load it
up in the emulator even with asking it to load google.com in my code
it comes up:
Web page not available
And then says the web page at http://www.google.com may be down etc.
Any ideas why its
but how do you pass that cookie which is a sessionsId for the webview
to continue the with the link you wanted to go to?
On Jul 19, 2:35 am, DGupta kaiserollofd...@gmail.com wrote:
Yeah so thats basically what I had to do,except if I got the Cookies
from the HttpResponse by asking for the
Yeah so thats basically what I had to do,except if I got the Cookies
from the HttpResponse by asking for the Set-Cookie headers and placing
the values from each of the headers as the value for setCookie() and
just use the URL. This way I didn't have to build a string, the string
was already the
Yeah so thats basically what I had to do,except if I got the Cookies
from the HttpResponse by asking for the Set-Cookie headers and placing
the values from each of the headers as the value for setCookie() and
just use the URL. This way I didn't have to build a string, the string
was already the
I've been trying this. I get the CookieStore from the HttpClient that
executes the HttpPost. I then get all the values from the CookieStore
and place it in the CookieManager using CookiManager.getInstance
().setCookie(url, theCookieStore.getCookies().get(i).getValue());
where i is the value in
DGupta wrote:
So I'm attempting to connect to the Tumblr Dashboard using an HTTP
Post. The Activity uses a WebView and I do an http post after creating
the webview, but the redirect_to in the HTTP Post doesn't work with
the WebView. I know my post works and isn't throwing errors, however I
But how does that help you get the cookie from a POST response and
then set the cookie on the WebView.? I can't find anyway to add a
cookie to a custom webview
On Jul 15, 1:26 pm, Jason Proctor jason.android.li...@gmail.com
wrote:
DGupta wrote:
So I'm attempting to connect to the Tumblr
DGupta wrote:
But how does that help you get the cookie from a POST response and
then set the cookie on the WebView.? I can't find anyway to add a
cookie to a custom webview
android.webkit.CookieManager is a singleton.
--
Mark Murphy (a Commons Guy)
http://commonsware.com |
Really strange...I found a lot of similar example, but with SDK
1.5_R2, the web content stays blank.
I've set correctly permission. If I load my URL without a WebView
Client my page is loaded correctly in default browser.
I saw some opened bugs in Google Android tool.
Can you give a status of
Really strange...I found a lot of similar example, but with SDK
1.5_R2, the web content stays blank.
I've set correctly permission. If I load my URL without a WebView
Client my page is loaded correctly in default browser.
I saw some opened bugs in Google Android tool.
Can you give a status
You're welcome, MIND GAME.
- Bill
On Jun 10, 5:02 am, MIND GAME lovekhanna04...@gmail.com wrote:
hii
thanks this woks for me.
On May 12, 6:56 am, Bill Zimmerly billzimme...@gmail.com wrote:
I was successful in fixing the problem (above) and this details it...
This line in the
hi man,
thanks a lot dear, Even I faced the same problem. with the help of
your post, I resolved it.
On Jun 9, 1:46 am, Benjamin benjamin.net...@gmail.com wrote:
Okay so I found out the problem, it's in the main.xml (found the
solution
I am having this same problem that when I attempt to load a URL in an
embedded webview in cupcake it launches in the browser instead.
Setting the layout_width and height on the webview to fill_parent with
layoutparams is not resolving it. Any ideas?
On Jun 8, 4:46 pm, Benjamin
I am having this same problem that when I attempt to load a URL in an
embedded webview in cupcake it launches in the browser instead.
Setting the layout_width and height on the webview to fill_parent with
layoutparams is not resolving it. Any ideas?
If the URL does a redirect (at least
Good catch as to what was going on. I see now that some sites load in
the embedded webview while some in the browser. Does anyone know if
there is a workaround to suppress this, in case an app needs to go to
a site like http://code.google.com/android ?
Thanks,
Andrew
On Jun 30, 9:12 am, Mark
Evan Ruff wrote:
I was wondering if I can use the Gears Toolkit within WebView? I heard
a nasty rumor that it was not available in WebView.
At least as of Android 1.1, it was not available in WebView, and I am
not aware that situation has changed.
--
Mark Murphy (a Commons Guy)
Huh, that seems kind of like a curious decision.
So, in order to use WebView and have persistent storage, I have to use
the Javascript - Android Interface specifically, then either expose
standard getDB, executeStatement, getResultSet in
WebView#addJavascriptInterface() ?
Also Mark, thanks for
Evan Ruff wrote:
Huh, that seems kind of like a curious decision.
So, in order to use WebView and have persistent storage, I have to use
the Javascript - Android Interface specifically, then either expose
standard getDB, executeStatement, getResultSet in
WebView#addJavascriptInterface() ?
Well, the whole point was kind of to be able to take my exisiting GWT/
Gears Application and fire it down into a WebView Component to gain
more control over the chrome, resource loading, etc.
It doesn't look like that's really going to work with this
implementation!
E
On Jun 29, 8:36 am, Mark
Evan Ruff wrote:
Well, the whole point was kind of to be able to take my exisiting GWT/
Gears Application and fire it down into a WebView Component to gain
more control over the chrome, resource loading, etc.
Ah.
It doesn't look like that's really going to work with this
implementation!
Thanks Mark Murphy, Works well. Genies piece... :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from
The same issue is posted at:
http://osdir.com/ml/AndroidDevelopers/2009-02/msg03441.html
Is it a SDK 1.5 bug??
On Jun 23, 3:59 pm, John johnj...@gmail.com wrote:
With previous SDK, clicking on the link of telephony number triggers
the dialer. But it does not work with new SDK, is it right?
Hi
Try this Snippet
it may helpful for u
try
{
URL url = new URL(eText.getText().toString());
URLConnection conn = url.openConnection();
// Get the response
BufferedReader rd = new BufferedReader(new
Sukitha Udugamasooriya wrote:
I have a webview and need to trigger a function when a user clicks on
particular url.
How can I achieve this?
1. Implement a WebViewClient subclass
2. Override shouldOverrideURLLoading() on your WebViewClient subclass
3. Attach an instance of your
Derek wrote:
We had an activity that simply created a WebView object and loaded a
single URL. In the manifest we had it declared to use the Dialog
theme. Everything worked perfectly well with Android 1.1
Now that we have upgraded to 1.5, the dialog loads with only the
title. None of the
Thanks for the quick response. My responses to your questions:
-- Does your page require Javascript? If so, have you tried enabling
Javascript?
No Javascript used (its pretty much begin/end tags with plain text)
-- Have you tried it without the Dialog theme?
Yes and that works but we'd
Derek wrote:
Thanks for the quick response. My responses to your questions:
-- Does your page require Javascript? If so, have you tried enabling
Javascript?
No Javascript used (its pretty much begin/end tags with plain text)
-- Have you tried it without the Dialog theme?
Yes and
This might be related to the layout measuring pass. Try
setLayoutParams() on the WebView with both dimensions as FILL_PARENT
before calling setContentView().
j
On Mon, Jun 22, 2009 at 5:50 PM, Mark Murphymmur...@commonsware.com wrote:
Derek wrote:
Thanks for the quick response. My
Tried the setLayoutParams() with no luck :(
The xml layout I tried from Mark's suggestion also had the width,
height set to fill_parent.
On Jun 22, 7:55 pm, Jeff Sharkey jshar...@android.com wrote:
This might be related to the layout measuring pass. Try
setLayoutParams() on the WebView with
Derek wrote:
Tried the setLayoutParams() with no luck :(
The xml layout I tried from Mark's suggestion also had the width,
height set to fill_parent.
Jeff does bring up a good point, though. You could examine your activity
in hierarchyviewer and see if anything seems odd with the WebView --
Very interesting...
Upon loading the view in the Hierarchy viewer I end up with a
hierarchy like this:
PhoneWindow$DecorView
|
LinearLayout
/\
TextView FrameLayout
|
FrameLayout
What is the size of the WebView/FrameLayout objects? What happens if you
try setting the web view to a fixed size?
On Mon, Jun 22, 2009 at 7:49 PM, Derek dlawl...@gmail.com wrote:
Very interesting...
Upon loading the view in the Hierarchy viewer I end up with a
hierarchy like this:
Height is 0 in HierarchyViewer for the webview and both FrameLayouts.
The height of the LinearLayout is 53 which is also what the height of
the textview (title) is. Seems strange that the height is showing as
0 in the properties of HierarchyViewer but the DisplayView shows a
fully populated
You aren't setting the layout params correctly; you need to call the version
of setContentView() that takes a LayoutParams argument.
On Mon, Jun 22, 2009 at 8:31 PM, Derek dlawl...@gmail.com wrote:
Height is 0 in HierarchyViewer for the webview and both FrameLayouts.
The height of the
Ok that seems to fix it. But why is that? Seems risky to be setting
concrete pixel sizes like that with future devices not necessarily the
same size as G1.
Thanks for all the help...any other insight you can give to get us to
a more future-friendly solution is appreciated!
On Jun 22, 10:47
hii
thanks this woks for me.
On May 12, 6:56 am, Bill Zimmerly billzimme...@gmail.com wrote:
I was successful in fixing the problem (above) and this details it...
This line in the Webapp.java file had to be changed from this ...
webview= (WebView) findViewById(R.id.webview);
To
Jason Proctor wrote:
(can someone respond if they see this? i don't seem to be able to
subscribe reliably.)
I see it.
i'm noticing that the regular browser calls numbers when a tel: URL
is clicked, but webviews embedded in applications don't - at least
mine doesn't.
i have the
Like Mark Murphy guessed, I set the WebViewClient and put some code in
shouldOverrideUrlLoading() to do this.
I created a method called setWebViewClient(WebView view) which creates
an anonymous class for the WebViewClient that starts out like this...
---
Okay so I found out the problem, it's in the main.xml (found the
solution here:
http://groups.google.com/group/android-developers/browse_thread/thread/e97e50c9e384106c/ed25789e63520880?show_docid=ed25789e63520880)
---
main.xml
No good news here. We see the exact same problem with any link we try.
Opened a bug with google on this one.
Good luck, we are searching for ways around it as well!
On May 11, 6:32 pm, daniel.benedykt daniel.bened...@gmail.com
wrote:
I am having the same problem on1.5
Does anyone have a
wefi.andr...@gmail.com wrote:
No good news here. We see the exact same problem with any link we try.
If I understand the issue correctly, Android has always behaved this way.
Links in WebView, by default, open up the Browser application (more
accurately, they call startActivity() on an Intent
..or you have a known safe channel (such as adb or local
secured/trusted wifi) you can use to get the cert the first time.
And what does that have to do with how do I do this anyway?
On Mon, May 25, 2009 at 11:02 AM, Mike Hearn mh.in.engl...@gmail.com wrote:
The server and url in question is
The server and url in question is private and no one apart from myself
will ever use it. Personally, I can't see the point of getting a
proper signed certificate for this.
Well, read the link I sent. If you're using encryption, presumably
you're worried about somebody attempting to snoop your
I actually just subscribed to your subscription service and am happy
to report your solution works for this problem! (I needed a little
more explanation than the code itself.) Looks like a nice set of
instructions all together, I look forward to the rest, and updates!
Thanks,
SJ
Are you behind
superjet wrote:
I actually just subscribed to your subscription service and am happy
to report your solution works for this problem! (I needed a little
more explanation than the code itself.) Looks like a nice set of
instructions all together, I look forward to the rest, and updates!
Happy
I had the same problem with the android hello-webview example. (link
below)
http://developer.android.com/guide/tutorials/views/hello-webview.html
Changing the layout_width and layout_height of LinearLayout to
fill_parent from wrap_content fixed it.
?xml version=1.0 encoding=utf-8?
When I have issues like that I check how the built-in browser handles the
url.
On Sun, May 24, 2009 at 10:47 PM, Al alcapw...@googlemail.com wrote:
Hi, I'm using webview to try and load a url over a https connection,
but all I get is a blank page. I've set up my WebViewClient and
overrode the
Don't use self signed certs? http://www.gerv.net/security/self-signed-certs/
There's a reason they are treated as an error I appreciate it may
*seem* like you're adding security without any cost, but you really
aren't, especially on a phone where MITM attacks are a whole lot more
feasible
I have checked the browser, but it uses a method not available in the
sdk to handle ssl errors. Inside TabControl.java, it has this:
private class SubWindowClient extends WebViewClient {
.
@Override
public void onReceivedSslError(WebView view, SslErrorHandler handler,
Mike, I missed your reply, it must have been posted while I was still
replying.
The server and url in question is private and no one apart from myself
will ever use it. Personally, I can't see the point of getting a
proper signed certificate for this. But regardless, it should be
possible to to
Al,
I really wouldn't bother with self-signed certificates for obvious
reasons. If you are looking for little or no cost you could try a free
cert from here:
http://www.startssl.com/?app=0
Mind you I haven't tested a cert from startssl so please let us know if
they work :-)
Hope this
There is a new scale type in ImageView which will shrink (but not
grow) an image to make it fit within the specified bounds. Not sure
if there is the same for WebView.
On May 19, 6:04 pm, rukiman ruksh...@optushome.com.au wrote:
How can I get the WebView to make any content it loads for
Thanks Bill.
Your suggestion worked for me. I had same problem as couple of other
posters. WebView example from android's website was not working
despite having the right permissions and no firewall issue. In fact, I
tried a to do a HTTPGet into a TextView. That worked fine, but WebView
example
Up
On 11 Mai, 14:27, Devomat mat.tu...@googlemail.com wrote:
Hello,
In the version 1.1 of Android the scrolling while loading a website
was not smooth but ok (tested with original Browser)
Now in the Cupcake 1.5 Version the scrolling while loading a website
is... ehm... really really bad.
I'm running into the same problem, but when I make this change
(webview to webkit) I get a compile error saying it cannot be
resolved. Ctrl-Shift-O doesnt bring in any new imports, so I'm at a
loss as to how to get the compiler to recognize this.
Can you shine some light?
Many thanks. SJ
On
I got the answer by myself. If anyone is also interested to know how to do
it, please go to below URL for a tutorial.
http://developer.android.com/guide/tutorials/views/hello-webview.html
On Thu, May 14, 2009 at 8:01 AM, jerryfan2000 jerryfan1...@gmail.comwrote:
Hi,
I am trying to add a
This was not a hard one. The default webclient doesn't load some
pages. Not sure why/what the algorithm. I over-rode with a custom
webclient and it works now.
Thanks,
TimJowers
On Sat, May 9, 2009 at 1:11 PM, timjowers timjow...@gmail.com wrote:
Does anyone know how to get webview to follow
301 - 400 of 575 matches
Mail list logo