[android-developers] Re: WebView - disallow breaking out

2009-09-21 Thread droidin.net
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

[android-developers] Re: WebView data caching

2009-09-19 Thread droidin.net
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,

[android-developers] Re: WebView data caching

2009-09-19 Thread droidin.net
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

[android-developers] Re: WebView data caching

2009-09-18 Thread indra
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

[android-developers] Re: WebView : can we select text in Java ?

2009-09-17 Thread Miguel Paraz
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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Mark Murphy
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

[android-developers] Re: WebView and javascript problem

2009-09-14 Thread Mark Murphy
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

[android-developers] Re: WebView and javascript problem

2009-09-14 Thread Rimma Sukhovsky
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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Photics
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.

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread lilbyrdie
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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Carmen Delessio
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.

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Photics
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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Photics
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...

[Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Photics
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

[Fwd: [Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-14 Thread Mark Murphy
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

[Fwd: Re: [Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [Fwd: [Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

[Fwd: [Fwd: [Fwd: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]]]]

2009-09-14 Thread Pedro Fernandes
--~--~-~--~~~---~--~~ 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

Re: [Fwd: [android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Carmen Delessio
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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Photics
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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain]

2009-09-14 Thread Photics
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);

[android-developers] Re: WebView and #links

2009-09-14 Thread hap 497
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

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-13 Thread Mark Murphy
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.

[android-developers] Re: WebView Catch 22 - Same Window, Except For New Domain

2009-09-13 Thread Photics
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

[android-developers] Re: Webview foreground and background colors?

2009-09-11 Thread Mark Murphy
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_

[android-developers] Re: WebView : can we select text in Java ?

2009-09-08 Thread Fred Grott(Android Expert)
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 ?

[android-developers] Re: WebView : can we select text in Java ?

2009-09-08 Thread Nanard
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

[android-developers] Re: WebView : can we select text in Java ?

2009-09-08 Thread Mark Murphy
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

[android-developers] Re: WebView data caching

2009-09-03 Thread droidin.net
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

[android-developers] Re: WebView data caching

2009-09-02 Thread Jason Proctor
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

[android-developers] Re: webview don't scroll up

2009-08-27 Thread Sikus
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

[android-developers] Re: WebView opening browser

2009-08-20 Thread Mark Murphy
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

[android-developers] Re: WebView opening browser

2009-08-19 Thread Jason Proctor
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

[android-developers] Re: WebView in emulator

2009-08-10 Thread Mark Murphy
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

[android-developers] Re: WebView and HTTP Post requests

2009-07-29 Thread mikedroid
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

[android-developers] Re: WebView and HTTP Post requests

2009-07-18 Thread DGupta
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

[android-developers] Re: WebView and HTTP Post requests

2009-07-18 Thread DGupta
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

[android-developers] Re: WebView and HTTP Post requests

2009-07-16 Thread DGupta
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

[android-developers] Re: WebView and HTTP Post requests

2009-07-15 Thread Mark Murphy
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

[android-developers] Re: WebView and HTTP Post requests

2009-07-15 Thread DGupta
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

[android-developers] Re: WebView and HTTP Post requests

2009-07-15 Thread Mark Murphy
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 |

[android-developers] Re: WebView

2009-07-11 Thread arnouf
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

[android-developers] Re: WebView

2009-07-11 Thread Mark Murphy
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

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-07-09 Thread Bill Zimmerly
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

[android-developers] Re: WebView not working on the new SDK?

2009-07-06 Thread rohit
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

[android-developers] Re: WebView not working on the new SDK?

2009-06-30 Thread andrew
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

[android-developers] Re: WebView not working on the new SDK?

2009-06-30 Thread Mark Murphy
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

[android-developers] Re: WebView not working on the new SDK?

2009-06-30 Thread andrew
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

[android-developers] Re: WebView + Gears

2009-06-29 Thread Mark Murphy
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)

[android-developers] Re: WebView + Gears

2009-06-29 Thread Evan Ruff
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

[android-developers] Re: WebView + Gears

2009-06-29 Thread Mark Murphy
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() ?

[android-developers] Re: WebView + Gears

2009-06-29 Thread Evan Ruff
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

[android-developers] Re: WebView + Gears

2009-06-29 Thread Mark Murphy
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!

[android-developers] Re: WebView

2009-06-25 Thread Sukitha Udugamasooriya
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

[android-developers] Re: WebView Link with SDK 1.5

2009-06-25 Thread John
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?

[android-developers] Re: WebView

2009-06-24 Thread Desu Vinod Kumar
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

[android-developers] Re: WebView

2009-06-24 Thread Mark Murphy
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Mark Murphy
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Derek
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Mark Murphy
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Jeff Sharkey
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Derek
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Mark Murphy
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 --

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Derek
Very interesting... Upon loading the view in the Hierarchy viewer I end up with a hierarchy like this: PhoneWindow$DecorView | LinearLayout /\ TextView FrameLayout | FrameLayout

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Dianne Hackborn
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:

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Derek
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Dianne Hackborn
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

[android-developers] Re: WebView Dialog Activity

2009-06-22 Thread Derek
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 

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-06-10 Thread MIND GAME
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

[android-developers] Re: webview tel: URLs

2009-06-08 Thread Mark Murphy
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

[android-developers] Re: webview tel: URLs

2009-06-08 Thread Jack C. Holt
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... ---

[android-developers] Re: WebView not working on the new SDK?

2009-06-08 Thread Benjamin
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

[android-developers] Re: WebView in the 1.5 SDK

2009-05-31 Thread wefi.andr...@gmail.com
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

[android-developers] Re: WebView in the 1.5 SDK

2009-05-31 Thread Mark Murphy
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

[android-developers] Re: Webview + self signed ssl cert

2009-05-30 Thread Disconnect
..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

[android-developers] Re: Webview + self signed ssl cert

2009-05-25 Thread Mike Hearn
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

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-05-25 Thread superjet
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

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-05-25 Thread Mark Murphy
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

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-05-25 Thread David Bickley
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?

[android-developers] Re: Webview + self signed ssl cert

2009-05-24 Thread Mariano Kamp
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

[android-developers] Re: Webview + self signed ssl cert

2009-05-24 Thread Mike Hearn
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

[android-developers] Re: Webview + self signed ssl cert

2009-05-24 Thread Al
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,

[android-developers] Re: Webview + self signed ssl cert

2009-05-24 Thread Al
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

[android-developers] Re: Webview + self signed ssl cert

2009-05-24 Thread PeeDee
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

[android-developers] Re: webview to show large picture zoomed out

2009-05-19 Thread me tun
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

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-05-18 Thread Diptanshu Parui
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

[android-developers] Re: WebView scroll issue while loading a website

2009-05-18 Thread Devomat
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.

[android-developers] Re: Webview Broken in 1.5 SDK?

2009-05-16 Thread superjet
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

[android-developers] Re: webView: How to click a web link and display in my WebView app

2009-05-13 Thread Jerry Fan
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

[android-developers] Re: webview will not follow links on some pages, why?

2009-05-12 Thread Tim Jowers
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

<    1   2   3   4   5   6   >