Android :: Droid WebView Crashes When Clicking On A Link / Fix It

Oct 13, 2009

I have some WebView widgets inside my Activity. I use loadData() to set the content, and this html contains a link. Some of my WebViews work okay, when I click the link, the web browser is started in a new window, but some make my app crash when I click on a link.

10-13 08:45:24.257: ERROR/AndroidRuntime(751): Uncaught handler: thread main exiting due to uncaught exception
10-13 08:45:24.308: ERROR/AndroidRuntime(751): android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at android.app.ApplicationContext.startActivity(ApplicationContext.java:627)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at android.content.ContextWrapper.startActivity(ContextWrapper.java:236)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:185)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:277)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at android.os.Handler.dispatchMessage(Handler.java:99)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at android.os.Looper.loop(Looper.java:123)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at android.app.ActivityThread.main(ActivityThread.java:3948)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at java.lang.reflect.Method.invokeNative(Native Method)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at java.lang.reflect.Method.invoke(Method.java:521)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
10-13 08:45:24.308: ERROR/AndroidRuntime(751): at dalvik.system.NativeStart.main(Native Method)

There seems to be a problem with the Intent that the WebView fires when I click the URL, but I have no control of this Intent, I think. Does anybody have any idea?

I use this AsyncTask to set the content in the WebView, and it works fine.code...

Android :: Droid WebView crashes when clicking on a link / fix it


Android : Extending WebView - Override Action Of Clicking On A Link

Feb 2, 2009

I want to extend the WebView so that I can override the action of clicking on a link in the webview. At first glance I do not see how to do this. I tried adding an onclick handler to the WebView and that had absolutely no effect. I am not seeing very much info on extending the WebView control and was hoping someone might have some suggestions.

View 4 Replies View Related

Android :: Disable Orange Circle Effect When Clicking On A Link In A WebView

Nov 2, 2010

I'm trying to catch the mouse click location so I wrote an onClick in the body tag, but every time I click on the page the whole page turn orange for a little while. Is there any setting can disable this effet?

View 2 Replies View Related

Android :: Webview Anchor Link - Jump Link - Not Working

Jun 14, 2010

I have a WebView in my Android App that is loading an HTML string using the loadDataWithBaseURL() method. The problem is that local anchor links (<a href="#link">...) are not working correctly. When the link is clicked, it becomes highlighted, but does not scroll to the corresponding anchor.

This also does not work if I use the WebView's loadUrl() method to load a page that contains anchor links. However, if I load the same URL in the browser, the anchor links do work.

Is there any special handling required to get these to work for a WebView?

I am using API v4 (1.6).

There isn't much to the code, here are the relevant parts of some test code I've been working with:

CODE:...................

View 2 Replies View Related

Android : Launch An Activty From Browser By Clicking A Webpage Link

Jul 29, 2010

I need to make an android App that when the user navigates to my webpage with the browser and clicks on a specific link my App activity gets launched. I try to achieve this using Intent filters but without success. I followed some samples like Notepad and PhotoStream but nothing works for me.

View 1 Replies View Related

Android :: How To Link XML Pages With Layout By Clicking On Buttons / Use UI To Code Phone

Nov 4, 2010

Excuse the simplicity of this request - but is there a way for me to link onClick commands for buttons through the Layout rather than code. I am trying to create a simple app and I want to be able to make buttons and have clicks go from one "page" to the other.

If not, could someone please point me in the direction of the code needed for it?

Is there a site that might overview how to use the UI to code for droid?

View 2 Replies View Related

Android :: Webview Crashes

Sep 20, 2009

I'm getting fairly regular crashes using WebView's in the underlying C code (sigsegv's). There isn't a _whole_ lot of rhyme or reason to it, but one thing that is somewhat suspicious is that I have more than one webview active (only one is one the screen at any one time, but if this has anything to do with my problem it may not matter since it appears that webkit widgets run asynchronously from the main UI thread).

Here's the stack dump. I've looked through the archives and it appears that there are other dumps, but it's really hard to tell from my vantagepoint whether they have anything to do with one another.

This is pretty easily reproducible (especially with one particular url of mine) so it should be relatively easy to track down.

CODE:.................

View 3 Replies View Related

Android :: Embedded Webview Crashes On Dialog

Aug 18, 2009

I have an application that uses the webview to load webpages so user can download media off them, but i get a crash when any sort of popup tries to show (eg from a select box or save password dialog) - the error is that for some reason the webview doesnt provide the new dialog with the application context (even though it as passed to the webview component when it was created).

Is there some method to use to supply the application context to dialogs launched from the webview?

View 3 Replies View Related

Android :: WebView Can't Click On Link / Why Is So?

Apr 15, 2009

My activity has a LinearLayout which contains a TableLayout and a WebView. The TableLayout has button and a TexView. This is created from code instead of using R.java (for our own reason).

Things are displayed correctly, however I can NOT click on the links inside the WebView (I can NOT browser through inside the WebView). This doesn't happen if I only have WebView inside the contentView. Are there some layout setting I missed?

View 2 Replies View Related

Android :: Way To Set Webview Area Upon Loading A Link?

Jul 20, 2010

OK so I have an rss reader that links to articles. One of the sites it links to doesn't have a mobile view. I was wondering if anyone knew if it was possible to set the "zoom" and position of the view once the page is loaded? So for instance if the following link were my article... http://www.neworleanssaints.com/news-and-events/article-1/Saints-agree-to-terms-with-7th-round-pick-Sean-Canfield/cce6a9ca-eaee-4878-ad40-0b98609f7fe7 Then how could I have the view focus on the article without the user having to zoom in and scroll the the top of the article.

View 1 Replies View Related

Android :: Way To Have WebView Auto-link URLs In Phone?

Nov 16, 2009

If a page has a URL or a phone number on it that isn't a link is there any way to have WebView recognize it and automatically turn it into a link like you can with TextViews?
With a TextView you would simply set the android:autoLink to the desired settings:
<TextView
android:autoLink="web|phone"
... />
but I can't find any equivalent for WebView.

View 2 Replies View Related

Android :: Web View - How To Click Web Link And Display In WebView App

May 13, 2009

I am trying to add a webview in my app to display a web page. However, every time I click link on the web page, Browser will be launched to display content in that link. I understand it is something about intent but I am still wondering is there any simpler method to ask webview to display link content within its View ?

View 2 Replies View Related

Android :: WebView Link Click Open Default Browser

Nov 19, 2010

I have an app that loads a webview and all the clicks are kept within the app. What I would like to do is when a certain link, for example, http://www.google.com is clicked within the app it opens the default browser.

View 2 Replies View Related

Android :: Remove Android Default Link Styling In Webview

Jul 31, 2010

When you click a link in the Android browser, the target link area gets highlighted with an orange box by default. A longpress then opens up the context menu for link handling (copy, paste, new window, etc). Is there a way to disable either / both of these in webview? I'm using the highlight code in scriptaculous and the default android link styling is being laid over top of the effect.

View 2 Replies View Related

Android :: Activity Crashes When Remote Service Crashes

Jul 16, 2010

I'm trying to understand remote services at the moment and everything works fine, i can start the service and know how to communicate with it through the AIDL-interface. My problem is that the service seems to still run in the same process like the activity it was started from, because the activity crashes too, if there is an error thrown in the Service.

I set the service process to remote ( android:process=":remote" ) so what am i doing wrong? Or what do i have to do to unbind the service-process completely from the activity-process?

View 1 Replies View Related

Android :: Link Up UI Elements To Data In Complicated Link Item

Jul 27, 2010

How can I link like the Checkbox and larger TextView to external data? Should I use a SimpleCursorAdapter? Or create my own adapter? Should it extend ArrayAdapter or BaseAdapter? My list item UI:

View 1 Replies View Related

Android :: Need Event For User Clicking On A Tab In Droid

Aug 17, 2010

I need to capture events when the user clicks on a tab in a TabHost. Something similar to OnTabChangeListener, but OnTabChangeListener only fires when the tab changes, not when it stays the same.

View 1 Replies View Related

Android : How To Connect URL When Clicking On Droid ListView?

Nov 24, 2009

How do I connect to a URL when clicking on a ListView?

View 2 Replies View Related

Android :: On / Off GPS And 3G By Clicking On Button Without Going On Setting Screen In Droid?

Oct 9, 2010

How can we on or off GPS and 3G by clicking on button without going on setting screen in android?

View 1 Replies View Related

Android : Connect To Email While Clicking On Button In Droid?

Nov 25, 2009

How to connect to email while clicking on button in android

View 2 Replies View Related

Android :: Get Custom Dialog Activity While Clicking On Listview In Droid?

Dec 12, 2009

How to get custom dialog activity while clicking on listview in android?

View 1 Replies View Related

Android :: Droid Application Fails And Stops After Clicking A Button / What To Do?

Nov 24, 2010

I started a small android application to learn. I placed an input text and button on the screen. That shows on the emulator. After i press the button(which has an onClickListener) the application cracks and tells me on the screen of the emulator : "The application... has stopped unexpectably.Try again" and i have a "Force close", which of course closes the application.
I cleaned and rebuild the project a lot of times. i have no errors shown.(using eclipse)
this is the layout/main.xml code...

View 2 Replies View Related

Android :: Update Spinner Values While Clicking On Button In Droid?

Dec 15, 2009

My app have a spinner and also have reset button. how to update the values while clicking on button?

View 1 Replies View Related

Android :: Start An Activity On Clicking Search Button On Droid Handset?

Dec 9, 2009

I would like to start MyActivity class when the user clicks on the search button on the handset.

Are there any strategies you can suggest for this? Any code examples would be very useful.

View 1 Replies View Related

Android : Show Spinner At Time Of Clicking Edit Text In Droid?

Nov 24, 2010

When the user click the editText Field I need to show spinner(dynamic) from that user select any of the item i need to set the Text for Edit text .How to do this?

View 1 Replies View Related

Android :: Droid Application Crashes / What To Do?

Jan 18, 2010

I am trying to run an application on an android emulator, but it crashes. i am following a howto

i don't know what to do, it just crashes. other applications are running fine, can anyone tell me what i am doing wrong.here is the code...

View 4 Replies View Related

Android : Way To Catch Crashes In Own Droid App?

Apr 16, 2010

Is there any way to catch crashes in my own android app? Something like a global uncaught exception handler? Just wondering if I could install something like that, then if an uncaught exception is thrown, I could pop up a dialog for the user and ask if they want to mail a dump of the exception to me.

View 2 Replies View Related

Android :: App Crashes On Droid - Works Fine On G1

Jan 7, 2010

I'm having a problem where my app crashes on the Droid and seems to work fine on the G1. We have a G1 dev phone but do not have access to a Droid phone, so the issue is difficult to debug at this stage.

The app loads up the main screen okay, but once the user moves beyond the main screen, the app crashes. Moving beyond main screen initiates the following:

- GPS signal acquired - Accelerometer sensor listener active - Geomagnetic sensor listener active - Camera preview active

I have a suspicion that the issue may be related to the camera preview. With the G1, it didn't seem to matter how I set the camera preview size, so I just made it fit the size of the view.

Camera.Parameters parameters = mCamera.getParameters(); parameters.setPreviewSize(w, h); //where w, h are the width and height.

One possibility is that with the Droid having a larger screen resolution to the G1, it may be setting the preview size to something that is not supported. I plan on addressing this, but I have a few questions that I was hoping someone could shed some light on.

1. If the app attempts to set a preview size that is not supported, will it just be ignored or will the app crash?

2. If the preview size is smaller than the surface that is holding the preview, will the image be stretched to fill the surface?

3. Can anyone think of anything else that may be related specifically to the Droid that could be causing me problems?

View 8 Replies View Related

Android :: Droid Application Crashes / What I Am Doing Wrong?

Jan 18, 2010

I am very new to android programming. i was following a guide in here, to create an application that shows the current location, i did as was told in the guide, but whenever i try to run it, it crashes, and asks for "force Close",
does somebody know what i am doing wrong? here is the code....

View 2 Replies View Related

Motorola Droid :: Clicking Sound On Keyboard

Feb 9, 2010

Anyone else have a clicking sound coming from there physical keyboard when you press each button?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved