Android :: Webviews Not Displayed Completely
Feb 28, 2010
My program doesn't work correctly with Android 1.6 (running on Acer), it works correctly with others devices. Apparently, my xml view is not correctly understood with this device (or Android version). With Android 2.1 all is ok, but with Android 1.6 I've a second scroll bars displayed (one for webview another for the scroll view), my last relative layout covers the webview which is not displayed completely. I know that an issue was existing with Android 1.5.
View 3 Replies
Mar 15, 2010
I'm having a very very strange problem with input and textarea html tags in a WebView. Basically they never seem to gain input focus with the virtual keybaord. which shows a single input box. There is now way just tapping around the screen to get it to accept input. Strangely, if I use my trackball on my G1 to select the field, I can eventually get focus and type in it. For trackball-less things like the N1, that doesn't help though.
View 16 Replies
View Related
May 15, 2009
I've literally spent 15+ hours trying to figure out this one bug (when I should be studying for finals). Any help is greatly appreciated. The bug appears on the dev1 phone running cupcake. It was not present before the upgrade. Basically, the problem is that when a activity with a webview and 2 threads is run, the service that runs after it will always crashes the process (but it works fine when the debugger is attached). The worst part is that it crashes at arbitrarily places in the service, so I can't isolate the error.
The details:
I have an activity with a WebView. The activity executes two threads, one after the other using the basic new Thread(new Runnable() {public void run()... Both threads use the same handler to report back results to the main activity. Flow works like this: when the activity starts, the first thread gets data to construct the URL that the webview will load (using DefaultHTTPClient). Then when the user navigates to a certain page, the second thread is again fired (using DefaultHTTPClient) to get some xml. This works fine.
The problem happens right afterwards. Once the activity with the webview finishes (it calls finish on itself), a service is started that has a thread that using DefaultHttpClient to downloaded some xml, process it, etc. The service crashes at arbitrary points with no error messages, simply displaying a memory dump, and kills the main process with it. When I attempt to debug the process, it runs just fine w/ no crashes. I've repeated this at least 30 times, with the same result. (no crash w/ debugger, crash when installing signed apk file to device and running it).
The program doesn't crash when the threads are removed from the activity with webview. So even if the webview activity runs (but all threads are removed), the service runs just fine regardless of the debugger.
Here is how my threads start (both of the ones in the activity with the webview, and the main thread in the service that is launched afterwards):
CODE:..........
.................
Here is what logcat displays:
CODE:..................
View 2 Replies
View Related
Nov 1, 2009
Our application displays widgets that update every minute through Alarm. It works fine under 1.5 and 1.6 but since 2.0, widget is not displayed at all. Only initial layout is displayed.
View 2 Replies
View Related
Jan 29, 2009
I was making a location based service applictaion but i was not getting maps rendered in to my mapview . i checked the ddms log i saw an error in mapactivty tags "couldnt get connection factory client"
View 4 Replies
View Related
Nov 10, 2009
Is anyone else goggle voice displaying in the app as Name: Name - message? it's not that big of a deal it just kind of bugs me that the name is displayed twice.
View 8 Replies
View Related
Jun 22, 2010
I have got a LG GW620 T-Mobile UK version running Android 1.5. I have setup my hotmail account but can only see the Inbox folder. Is there anyway to display all the other sub folders I have created e.g. Sent. So I can move email to the subfolders.
View 2 Replies
View Related
Feb 23, 2010
For a particular activity - what is the best way to store data that needs to be displayed. The issue is that when the user changes orientation, you need to be able to re-render your activity which means you need to get back at that data that you use to render. I understand the MVC design pattern, but I guess I'm wondering where the M should be stored. Global variables? Static members of your activity? Serialized to private storage?
View 2 Replies
View Related
Nov 12, 2010
I have a list view with array adapter to show user some information that retrieved from Internet, As we all know reading data from Internet requires some time to finish, but if I try to read data on getView(), it means user must wait and he/she cannot see anything at that time, the screen is black for long a time because it will cost too much time to finish. This is unacceptable.
So I think maybe I can show user a empty list view first and then display a progress dialog to let user know I'm now just reading data. The background task will read data and send message to UI thread when job is done. But there's one problem: I don't know how to get notified when list view is displayed. I mean, I want to know when & where to show that progress dialog when I first show user an empty list?
View 2 Replies
View Related
Aug 5, 2010
I have a service class written which gives notification(Toast dialog) on every life cycle method call back. when i run my application all works well. but when run this service class from my test project the toast message are not displayed.
It give the following log for the toast message
CODE:.............
I want that the toast message should also be displayed on subsequent calls to life cycle methods
View 4 Replies
View Related
Oct 27, 2010
I have created a textview with the below code:
CODE:.........
As above, i have set the 5 Lines as maximum for the textview.
But my doubt is: if the string which i am going to display in Textview if it exceeds 5 lines, then it will be fitted upto 5 lines ending with "..." characters.
e.g.
Hello this is the demo of
string which i have
created especially for
the demo of textview
and setting maximum...
As same as above, i want to display in TextView output.
View 1 Replies
View Related
Apr 9, 2009
When MountService received event from HAL and start a notification, it would display an AlertActivity after user's click. However, I found the AlertActivity is created and can't be displayed.
I got some log as below:
CODE:........
Is it related to "FLAG_ACTIVITY_NEW_TASK"? however, how to solve it?
I've tried to use "launchmode as singleTask", but is doesn't work.
Is there anyone give me a hand? Why my activity can be created but can't be displayed?
View 3 Replies
View Related
Sep 8, 2010
I have the following situation. Attached is a snippet of code that appears in the OnCreate of my Activity.
CODE:..........
The issue is that my layout never gets displayed until the OnCreate method has compoleted. Since my 3 functions takes about 10 secs to complete, I have a blank screen being displayed for 10 secs. This layout has a progress bar which meant to show the progress thru each function.
View 4 Replies
View Related
Jul 17, 2009
This is with reference to http://groups.google.com/group/android-developers/browse_thread/threa....
Large gif images of size more than 4MB can not displayed in android.
Is this is a known issue in android?
View 4 Replies
View Related
Aug 19, 2010
I have some activities and I have to display a fullscreen ad image before displaying the activity... all my activities extends a custom activity and I thought it was a great idea to implement that advertisement there, so I did: code...
This works nice... the ad is displayed for 3 seconds and it closes automatically. The problem is that the activity that should be hide for the ad is being created faster, so the user can see it for a second before the ad is created. How can I avoid that behavior? How to make sure the ad activity starts before the another does?
View 1 Replies
View Related
Nov 9, 2010
I have created a simple game for Android; I want to prevent users from sending the game to the background by pressing the home or back buttons accidentally. I planned on using a dialog to confirm the user's action. What I want is similar to what Sirius does with their app, if you need an illustration.
I tried adding this action to an overridden onPause(), but the activity vanishes right after the dialog is displayed, so I don't think I'm going about this the right way. How can I fix this?
View 1 Replies
View Related
Nov 24, 2010
I tried Hello goolge map tutorial and not able to viewthe map. I signed up for API key. I am using Eclipe which is installed in "d drive" used following command to obtain MD5 fingerprint fom bin folder of jdk
c:program filesjavajdk 1.6in> keytool -list -alias androiddebugkey -keystore "C:Documents and SettingsOwner.androiddebug.keystore" -storepass android -keypass android
Got this fingerprint: 21:17:B1:D8:01:BD:F2:5A:9F:C9:A3:01:96:FA:9A:5B
Used this to find API key and got this: "0Gm7C3R3R2K1pmQGuGkS0rx582TWJEBdJwryFrA"
Used following code in layout
CODE:.......
Still map is not displayed.
Log Cat error log
CODE:..................
My manifest file:
CODE:........................
View 2 Replies
View Related
Mar 17, 2010
I have a class that extends android.app.Dialog, the layout is done in an xml file, and the setup (button listeners, etc) is done on the onCreate method. My problem is that whenever the dialog is displayed, then dismissed, and displayed again, the Editable TextViews are still populated with the information that was displayed previously. What is the common way to clear these text fields?
View 2 Replies
View Related
Sep 21, 2009
I have got another mysterious issue. So, I am setting a background image for LinearLayout. This image contains gradient. Don't know why, but after I launch application the image appears to consist of several parts that actually form "smooth transition" of gradient, and that's why it seems that background image is not a gradient.
View 1 Replies
View Related
Jan 16, 2010
I am trying to implement a simple widget for display on the home screen. The problem I am experiencing is that onUpdate is only being called once when I install the widget. The configuration is below. Note: I will not leave update period at 20 secs as I know that would kill battery (just testing).
Configuration:
`<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="294dp" android:minHeight="72dp"
android:updatePeriodMillis="20000"
android:initialLayout="@layout/my_custom_app_widget">`
</appwidget-provider>`
Manifest Excerpt:
`<receiver android:name="MyCustomWidgetProvider"> <intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>`
I am observing the following behavior when I install the widget:
In my WidgetProvider class on onReceive is called then onEnabled then onReceive, then onUpdate.
After that the widget displays and onUpdate is never called again. I also inspect the settings of the provider when onUpdate is called and everything set in XML above (e.g. update period) is correct.
View 1 Replies
View Related
Feb 9, 2010
I have this simple HTML that I load into an Android WebView (SDK version 1.5)-
<html>
<body onload="nomethod()">
<h1>Hello World</h1>
</body>
</html>
Function nomethod() doesn't exist but the LogCat doesn't display any error. It seems that any exception that isn't caught cannot be traced. how can I handle or trace uncaught exceptions?
View 1 Replies
View Related
Mar 3, 2010
I am new to this group. I had posted a question yesterday in this group. It didn't appear. I thought I made a mistake; so I posted it today and it didn't appear either. I realized now that this group has something called moderators before it reaches the posting. Am I missing something or did anything wrong? My question was a simple application question and didn't have any bad language in it. Could some please let me know if the question was rejected? If so what is reason so that I can correct it.
View 3 Replies
View Related
Feb 11, 2010
Say I have mapview control in my Android app. If I know a landmark exists at a certain latitude and longitude, how can I determine if that landmark is currently viewable on the user's screen? Is there a method for getting the coordinates for the top left and bottom right corners of the visible area?
View 1 Replies
View Related
Aug 21, 2010
I have a splash screen/loading screen that has .setVisibility() to GONE right after the draw call of my large bitmap is completed. The problem is the splash screen takes a bit to popup which i believe is due to the main activity booting up and doing CPU intensive applications on first run. Is there a way to get my splash screen displayed ASAP? Would it be ok if i had it in a different thread maybe? The splash screen is just a bitmap with a progressBar right below it. My layout is xml based so i cant see myself using setContentView.
View 2 Replies
View Related
Apr 22, 2009
Is it possible to get listed the apps or activity which are actually displayed on the screen of the android mobile. I need to display a text box on some event when no acitivity is displayed, excepting the home screen.
View 3 Replies
View Related
Jul 30, 2009
I'd like to use CursorAdapter but Cursor its based on cannot be returned by simple sql query, since in db i have two fields and based on some criteria they build the String that would be displayed in the ListView.
what is the best solution: forget CursorAdapter and use ArrayAdapter or MatrixAdapter iterating over my db Cursor and adding rows, or maybe use CursorWrapper or some ither solution?
View 3 Replies
View Related
Jun 20, 2010
I'm try to display a map from a Google Maps Data API query (calling intent "geo:0,0?q=<my query url>") and I get this message : "This Community Map could not be displayed because it contains errors"
Does anybody have an idea what the problem could be ?
Here is the query URL : http://maps.google.com/maps/feeds/features/106514162886780242289.0004...
View 2 Replies
View Related
Jun 6, 2009
I have a simple problem which makes me feel like a stupid. I really need help on this.
I have a SurfaceView which I created with Java code not XML. I created a MediaPlayer which shows its content on that SurfaceView.
When I use, setContentView(mPreview); // where mPreview is a SurfaceView
The video is played on the screen.
I need to add two buttons on the screen. So I tried something like this:
code:.........
This did not change anything. Still the video is displayed on full screen and no buttons appear. I am a java programmer both SE and ME. Things are done in this way on Java.
Does Android have a different approach?
View 4 Replies
View Related
Sep 22, 2010
Will i get charged for having the weather displayed on the main screen?
View 9 Replies
View Related
Jan 20, 2010
Google map is not displayed ,in this i am generate new md5 key also but it is not coming.instead of map boxes and zoom buttons r coming
I am using this layout code...
View 3 Replies
View Related