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?

Android :: Embedded webview crashes on dialog


Android :: Progress Bar Embedded In Ui And Not In Dialog

Nov 22, 2010

Is there a way to embed the progress bar in the UI with out an dialog. And not programmatically but with layout xml files. I am guessing it has to be some sort of animation or a "drawable"

View 2 Replies View Related

Android :: Embedded ActivityGroup And Dialog Box

Apr 14, 2009

I'm trying to run an activityGroup embedded inside another activityGroup. (Example : an activityGroup inside a tabActivity)

This seems to display properly but throw an exception when i'm trying to display a modal box like an alertDialog.

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

If childActivity1 or 2 try to display a dialogBox i'm getting this exception :

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

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 :: Gridview In Custom Dialog Not Working / Crashes / Fix It

Sep 5, 2010

I have tried adding a grid view to a custom dialog. When displaying the dialog it crashes. But when tried displaying the grid view in normal activity it was working.( without dialog )

I took the examples from developer android website.Took grid view and tried to integrate in custom dialog.

I used two xml main.xml & category.xml. Here is my code...

View 2 Replies View Related

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...

View 1 Replies View Related

Android :: Handle A Webview Dialog Popup?

Apr 28, 2010

I'm displaying a webpage in a WebView and on the webpage, there is a button. When you click the button, a confirmation dialog is supposed to popup, but it doesn't show in my WebView. It does popup if I go to the same webpage in the android browser. Anyone know how to handle popup dialogs coming from a webpage inside your WebView?

View 1 Replies View Related

Android :: Layout - Webview To Display As A Dialog

Nov 5, 2009

I have a webview I'd like to display as a dialog. I'd like the webview to fill the entire screen, except for a button below it that I'd like to stay at the bottom of the dialog regardless of how much content is in the webview. Currently my webview fills up the dialog just enough to push the button off the screen. I'm sure this is something pretty easy but for the life of me, I haven't been able to find the magical combination of layouts, views and attribute values to get it to play nice. Just to be clear, I've gotten it so the button floats over the webview but I'd like the webview to stop just above the button and scroll, if that makes sense.

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

View 2 Replies View Related

Android :: How To Play With Webview In Dialog / Loading It Inside?

Aug 5, 2010

I want to open twitter auth in my webview rather then opening in browser, any good tutorial how to play with webview in dialog and loading it inside dialog?

View 1 Replies View Related

Android :: How To Make My Progress Dialog Dismiss After Webview Loaded?

Jul 19, 2010

What do I need to my code to make the dialog dismiss() after the webview is loaded?

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
CookieSyncManager.createInstance(this);
CookieSyncManager.getInstance().startSync();
webview = (WebView) findViewById(R.id.webview);
webview.setWebViewClient(new homeClient());
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setPluginsEnabled(true);
webview.loadUrl("http://google.com");
ProgressDialog pd = ProgressDialog.show(Home.this, "", "Loading. Please wait...", true);
}
I've tried
public void onPageFinshed(WebView view, String url){ pd.dismiss();
}
Didn't work.

View 3 Replies View Related

Android :: How To Show WebView With Theme.Dialog Style In Droid

Aug 29, 2010

I declared a WebView activity in the manifest like this. code...

When I start this activity within my main activity, only the title of the dialog, containing the apps name, is visible but not the WebView. If I add a TextView to the LinearLayout, it is shown as well, but still the WebView is missing.
If I don't apply android:theme="@android:style/Theme.Dialog" in the manifest, the WebView is displayed.

Why is that and how can I show a WebView in a dialog?

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 :: Prevent Dialog Closed / Remain Dialog When Button Is Clicked

Apr 12, 2010

I have a dialog with edittext for input. when i click yes button on dialog, it will validate the input and then close dialog. However, if the input is wrong, i want to remain in the same dialog. every time no matter what input it is, the dialog always automatically close when i click button. How can i disable this. By the way, i use PositiveButton and NegativeButton for the button on dialog

View 2 Replies View Related

Android :: How To Repeat Login Dialog And Progress Dialog?

Jan 25, 2010

I am having a problem about repeating Login dialog (an AlertDialog) and progress dialog, coordinating with http thread. I suppose repetitive Login dialog (if fail, continue) handling should be common and straightforward. I guess my approach must be wrong somewhere. I already spent 2 days on this and am desperate. So please help. User starts the app, the main activity starts.Show a login dialog (generated by the main thread, i.e. from on Create. The main thread then starts a wait_thread, which will wait for http to return data and check the data and decide what to do.After user input username/password and press login, a progress dialog starts.The progress dialog starts an http_thread to talk to the server and get replies. Once done, it will notify the waiting thread.If the user type in the right username password first time, the code works fine.But it always fail for 2nd time Login, i.e. When first login fail(wrong username/ password),the wait_thread will generate 2nd Login dialog to let user repeat the login process. But after user hit the login on this 2nd Login dialog, the system always crashes.

View 3 Replies View Related

Android :: Custom Dialog By Extends Dialog Or AlertDialog

Dec 29, 2009

I want to make a custom Dialog,because i donot like it"s style,i want get a rounded rectangle rather than rectangle . i know to implement it by theme in Manifest.xml . for example :the code
at activity write:

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

My question is how to implement this Similar result by extends dialog or alertDialog.

View 1 Replies View Related

Android :: ListView Opening Dialog (or Alert Dialog)

Aug 13, 2010

I'm trying to get my list view to open up an alert dialog to display information when a person clicks on a selection. I have been trying several different things on the Google Developers website that have to do with this but have yet to come up with a result. Here is my code. package table.periodic;

import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.AdapterView.OnItemClickListener;...........

View 1 Replies View Related

Android :: Creating An Alert Dialog In Dialog

Apr 14, 2010

how to create an Alert dialog in a dialog? is it possible to create? My requirement is to show mulitple dialogs simultaneously. I tried creating with the following code snippet onClick of a Button in the first Dialog and got an "BadToken" exception from WindowManager: "Unable to add window -- token null is not for an application"

AlertDialog.Builder builder = new AlertDialog.Builder(getContext()); builder.setTitle("Test Title"); builder.setOnCancelListener(new Dialog.OnCancelListener() { public void onCancel(DialogInterface dialog) { dismiss(); } });

View 4 Replies View Related

Android :: Showing Dialog After Another Dialog Hangs

Sep 2, 2010

I have a really weird problem, which I am unable to debug so far. thing is. my app needs to download something to work. So in the beginning of the onCreate() method, I check if that something is already downloaded. If not, I pop a dialog up asking the user to download it.My dialog is shown and I am clicking, so aManager.install() is called. I am passing the context because that aManager.install() pops up a ProgressDialog to show downloading progress and spawns a new thread in which everything is downloaded. So obviously before creating my dialog I make a Handler to receive the response from that aManager.install(). And the response MAY vary, because for example the internet connection isn't available (Exception raised and catched and listener called with different code).Now, when that happens (Exception) I would like to call another dialog saying "something went wrong, would you like to retry?" so another call to showDialog(DIALOG_REINSTALL) (this time with another code).thing is the showDialog() gets called (I can verify this by logging) but the dialogs doesn't show up. Instead my application JUST HANGS Does someone have a clue why it's doing this? No exception raised, absolutely nothing from logcat, I can't tell WHERE it's hanging...just see that the method is called and the dialog should be displayed.

View 2 Replies View Related

Android :: How To Communicate With Embedded Activity?

Jan 30, 2010

In my current project I have a full screen TabActivity. Each tab content is handled by two instances of same ListActivity. Now, I put an extra int in intent to know which data should be displayed.So in onCreate method of my ListActivity, I check the int in extra and I build my query to obtain a SQLLiteCursor.I would like to dynamycally give to this two instances of ListActivity the list of item that should be displayed.I do not know what is the best way to do this. Any idea ?

View 1 Replies View Related

Android :: Embedded Hardware Devices?

Sep 1, 2009

I'm playing around with an idea in the back of my head, was wondering if there were any Android devices that had touchscreen and wifi - no other requirements necessary. The GiiNii Movit Mini is as close to what I'm looking for as I can find. Are there hardware vendors that make custom Android products such as this? Inexpensive, ARM or MIPS, run Android, touchscreen, wifi, that's it.

View 9 Replies View Related

Android :: Getting WAP Embedded Video And Iphone?

Jun 14, 2010

Recently a client asked me to make their site "work on smart phones", which normally wouldn't be too much of an issue... However it's a video site, and I have absolutely no idea where to even begin. Right off the bat I'm not even going to consider allowing the site to even function in anything other than Android (Maybe even 2.0+) and iPhone, maybe Blackberry and WinMo. But beyond that... What do I do? I'm looking at using the tag, however I'm unsure what, if any, codecs which phone uses. Is HTML5 even adopted in their browsers yet?

Could someone please point me in the right direction? Am I going about this the right way, using the tag? Or is there some magical html element both iPhone and Android (And BB and WMo) that lets them run video in their native video players (Like on youtube).

View 1 Replies View Related

Android :: Embedded Widgets In Preferences

Mar 1, 2010

I'm trying to make a somewhat advanced settings Activity (one that has a RadioGroup in one of the cells). The layout xml file contains the following:

CODE:.......

View 4 Replies View Related

Android :: Cheap Embedded Phone - M2M Device?

May 4, 2010

I'm playing around with some ideas and was wondering if anyone knew of an Android-based device that was basically a cell-phone with no screen.

Here's the requirements I'm looking for: - Support GSM - Single SIM slot or eSIM (3G preferred but not required) - Support GPS - Support BlueTooth - Optionally have an accelerometer - No display (this is an embedded device) - Would be willing to provide my own packaging (raw boards would be ok) I've debated taking the guts out of old G1s for this project. But if there is a specific device that meets my needs all the better. If there's any Manufacturers out there that have Android phone "guts" available, let me know too.

View 2 Replies View Related

Android :: Communication Between TabActivity And The Embedded Activity

Jun 28, 2010

I am trying to figure out the best practice of communication between a TabActivity and the child activity embedded in this TabActivity.

In my TabActivity, there is a button. When the button is clicked, I want the child activity embedded in this TabActivity to be updated. I wrote the code like below, and just wonder whether it is a good practice.

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

View 3 Replies View Related

Android :: Engadget App - Play The Embedded Videos?

Oct 21, 2010

I love using the Engadget app on my Desire to keep up with daily news, but no matter what I try I cannot watch the embedded videos within the stories.....

The ones that link to YouTube are fine as you can choose the browser or the YouTube app.

But their native videos don't play for me. I currently get the choice of viewing through double twist or streaming media player, both of which say "Sorry, this video cannot be played".

Anyone any idea what format these endgadget videos are in? And how I can get the engadget app to choose a player capable of playing them?

View 2 Replies View Related

Android :: Which Window-toolkit To Use For Embedded Linux

Sep 4, 2009

I am using embedded-linux for device which has Arch ARMv5 Speed 266MHZ, vfpu and 32bit bus, 32MB 133 Mhz DDR Ram. can you tell me which windowing system should I use,

1).QT for embedded linux
2). Android.
3). Other!

Well, I am using microwindows for last one year and not satisfied with it as it does not have BSP (Binary Space Partitionin) in its windowing system , No shared memory support for bitmaps. I think Microwindows is just optimized for memory-size not for speed.

View 4 Replies View Related

Android :: Scroll View Embedded In Table Layout

Jul 29, 2010

Before I added my ListView, along with changing my TableLayout height to "wrap_content" as opposed to "fill_parent", my ScrollView displayed properly. Here is my XML: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" Code...

View 1 Replies View Related

Android :: Sharing Embedded Resource Via Content Provider

Apr 29, 2009

How do I share an embedded resource with other apks via a content provider?

View 7 Replies View Related

Android :: Can You Tube Be Embedded In Applications? WebOS / Blackberry?

Apr 15, 2010

Can YouTube videos be played from within an AndroidOS without launching the separate YouTube player? How about WebOS or Blackberry? On the iPhone I can do this with a WebView and the embedded YouTube code and I'm weighing the possibility of porting my app to other mobile platforms.

View 2 Replies View Related

Android :: Search Engine App In Perst 4.0 Embedded Database?

Jan 26, 2009

Looking for a way to integrate full-text search and fast, lightweight data management with your Android applications? The new Perst 4.0 open source, object-oriented embedded database system brings native full-text search capability to Android and builds on this feature to provide a sample search engine application for contact data residing on mobile phones.

To provide search, the database stores an inverse index of keywords, with parsing and stemming of indexed text performed either by user- defined code or by Perst's default simple parser and stemmer. The feature supports logical operators and calculates relevance of search results to a query. The new sample application, ContactsIndex, stores and indexes contact information, and could be extended to provide search capabilities for PDF, word processing, HTML and other stored files. The example applications are included with complete source code in the Perst 4.0 for Java distribution..............

View 3 Replies View Related







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