Android :: OnPageFinished Not Firing Correctly When Rendering Web Page

Sep 13, 2010

For some reason the onPageFinished is firing before the WebView has finished loading -

I can't figure out why...

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

Android :: onPageFinished not firing correctly when rendering web page


Android :: OnTrackballEvent Not Firing?

Nov 15, 2010

I have a list in my app.

When a user touches a list item with their finger, the onListItemClick handler fires and I have it opening a new Activity.

However, when a user uses the trackball/pad to click, I want to perform some different functionality. I've overrode onTrackballEvent and everything works perfectly fine in the emulator's trackball mode.

Unfortunately, when testing on the Samsung Moment, clicking the trackpad fires the onListItemClick handler, not the onTrackballEvent handler.

View 2 Replies View Related

Android :: AlarmManager Not Firing Receiver

Feb 27, 2010

Any experts on AlarmManager out there?I've got something weird going on.The basic code to set my repeating alarm works fine. I can close my app and the alarm will continue to run like clockwork every five minutes. It works fine only if I set it in the app and then close the app.I've got a registered BootReceiver for re-registering the repeating alarm. I know it fires on boot b/c the log message clearly shows it is firing and re-setting the repeating alarm in question for the same frequency. But the AlarmManager is not firing.Basically, the nearly identical code for setRepeating() fires when set from the app and continues to run when the app is closed, so I know my AlarmReceiver is functioning, but the AlarmManager is either not broadcasting this alarm or my receiver doesn't work from an alarm set in the boot receiver.

View 9 Replies View Related

Android :: OnClick Event Not Firing?

Sep 20, 2010

I have a listview managed by an adapter that is extending BaseAdapter.

In the getview function im using the convertView to set up a OnClickListener. This OnClickListener work well when I am touching the screen but if I use the trackball of the HTC Desire, I see the row flashing on the screen, but the OnClickListener is not called...

I've read the android dev guide : http://developer.android.com/guide/topics/ui/ui-events.html
and its say that I should receive a onClick event from the trackball...

Im putting here my getview code in case someone see anything strange.

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

View 1 Replies View Related

Android :: OnClickListener Not Firing In GridView - 2.2 Only

Aug 8, 2010

I have a grid view of buttons that is generated by a CursorAdapter. When the CursorAdapter is passed to the Gridview the view renders correctly however the first item in the grid does not fire the OnClickListener event.

If I select another button in the grid, the event fires correctly however if I selected the first button then another button, it loads the first button action then the section button action.

When testing this, it only seems to be an issue in Android 2.2 on my emulator, my 1.5 phone works as expected. I've wiped the emulator but that doesn't seem to have made a difference.


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

View 1 Replies View Related

Android :: Firing An Event By Code?

Sep 25, 2010

Is any way to build and fire an event (e.g. on click event) in android applications programmatically.

I have an Activity (lets call it A) with multiple views (5 ImageView for example). And a normal Java class (lets call it B) which is used by my Activity. here is an instance of B in my Activity. If user click on a View (Image View) the view OnClickListener calls a method in B In B, if operation is successful, it will call back a method in activity again. in activity method, It will change image or state for clicked ImageView.

I the other hand: click on view (x) in Activity -------> B.doSomething() --------> A.bIsDone() -----> change image for view (x) with normal execution, its working and there is no problem. the problem is that I want to simulate this process to be automatic, my code looks like this:

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

The issue is that, it won't render anything, until the end of the loop.

I tried to put the loop in another Thread, but its throwing exception: android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

What can i do for this issue? i was think generate an click event on view (by code), to see it can help or not.

View 3 Replies View Related

Android :: ProtoRequestListener Firing WatchDogException ?

Dec 3, 2009

My app has been pretty stable for a while, and today out of the blue something called ProtoRequestListener has started intermittently throwing WatchDogExceptions. there's no path through to my code, so i can't even catch the exception and do something about it. i googled around a bit and it seems to be connected to Maps somehow.

View 2 Replies View Related

Android :: Running Directly Going To Connection Settings Page / Instead Of My Desired Page

Aug 6, 2010

I am trying to use open intents simulator and do all the settings according to the instructions. But when i tried to run a sample program, after running, its directly going to the "connections settings page" in openintents.apk.

View 49 Replies View Related

Android :: Clicks To MapView To Firing OnClick

Dec 10, 2009

I am working on my first android app and so my first with the Maps API and am experiencing an odd problem. How ever when I click the screen it seems the onClick event is not being run?Have I missed something or am I better off sub classing the MyLocationOverlay I am using and override DispatchTap?How ever i would rather be able to just click anywhere on the map to dispatch the event.

View 6 Replies View Related

Android :: Add Proximity Alert Firing Repeatedly

Jun 10, 2010

I am adding a proximity Alert with an expiration of -1 (does not expire). I am testing using an Evo. The proximity Alert fires several times after entering the location and staying inside the location. I was thinking that the proximity alert should fire once when you enter the location and fire once when you exit the location. Should the proximity alert fire multiple times after you enter the location and stay inside of the location?

View 2 Replies View Related

Android :: TOUCH_MOVE Event Not Firing In Avd Or Device

Sep 30, 2010

In fact, only the touch_down event will fire. Basically, I'm trying to implement a drag feature in my app so I need the touch_move event. I have a method that writes out the touch events to the LogCat in Eclipse but the touch_down is the only event that shows up. not even touch_up shows up. I have this problem when I debug on the device or in the avd.

This isn't really a code question. But has anyone had an issue getting different touch events to fire? If so, how did you resolve them? I'm using the latest Android SDK and Eclipse version. I'm using a simple ImageView.

View 1 Replies View Related

Android :: Browser Orientationchange Event Keeps Firing

Oct 28, 2010

Following is simple html, when viewed on android browser(nexus one) results into continuos orientationchange event chain when you change phone's orientation just once.

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

View 1 Replies View Related

Android :: OnClickListener Not Firing From Parent Class

Aug 17, 2010

A Follow up to this question: http://stackoverflow.com/questions/3488880/group-of-views-controls-on-multiple-screens

I have created a parent class and a child class that inherits from it. When I set the OnClickListener in the child class, the event fires when the button is clicked. When I move the set OnClickListener to the parent class, the event doesn't fire. I've got to be missing something obvious but I just don't see it.

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

Child Class:

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

View 2 Replies View Related

Android :: Ignore OnItemSelectedListener Firing On Create

Mar 3, 2010

I'm creating a spinner and I've added an OnItemSelectedListener to it. However I've noticed that it fires on create. Now I was wondering if there was a way to ignore/discard it. I know I could use a boolean value, but that's a bit "dirty".

View 1 Replies View Related

Android :: OnTouch Event Sometimes Not Firing ACTION_POINTER_DOWN

Jul 9, 2010

I'm trying to implement pinch-zoom in an app I'm making and am having issues with the onTouch event. It appears that the pointer up & down actions do not fire immediately, like you won't get a pointer up or down until an action move occurs. So what happens if both fingers hit the screen nearly simultaneously is that the 2nd finger (should be pointer(1)) gets a move action before pointer down is called, making the code think it's a DRAG not a pinch zoom.

View 2 Replies View Related

Android :: Cant Go Back To Previous Page From Webview Page

Feb 2, 2009

I am developing simple RSS Reader kind of application.In my applicaion i cant go back from Webview page to previous page.i can go back from all pages except the page where i have used Webview.What could be the reason?why i cant go back?

View 3 Replies View Related

Android :: Choosing Between Requery Or Firing The Query Again In SQLite

Jun 19, 2010

Have been using a SQLite database, Theres a situation where i have a list which displays all the "name" field data of a table "table1". Now i have a button to insert data in "table1". The list is populated using a simple cursor adapter which is passed a cursor "cursor1" populated with the data. "cursor1" is prepared using the SQLite query - "SELECT * FROM table1". Now the moment i insert data, i need to update the list too.

My question is- will the Adapter sense the database change automatically (i guess not)?
using cursor1.requery() is correct or should i use cursor1 = db.query("table1", null, null, null, null, null, null);

View 1 Replies View Related

Android :: How To Keep OnItemSelected From Firing Off On A Newly Instantiated Spinner

Apr 1, 2010

I've thought of some less than elegant ways to solve this, but I know I must be missing something.

My onItemSelected fires off immediately without any interaction with the user, and this is undesired behavior. I wish for the UI to wait until the user selects something before it does anything.

I even tried setting up the listener in the onResume, hoping that would help, but it doesn't. How can I stop this from firing off before the user can touch the control?

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

View 2 Replies View Related

Android :: Make Sure Activity Is Alive Before Firing Intent?

Feb 24, 2010

I am currently firing an Intent to a Broadcast Receiver which in turns starts an Activity.

Then from the same Service another Intent is fired to a Broadcast Receiver thats in the Activity.

The problem is that the Activity isn't getting the Intent meant for it because it is fired before it is alive and the Broadcast Reciever is registered.

I was wondering is there anyway to make sure an Activity is alive before sending an Intent?

View 1 Replies View Related

Android :: Svg Files Rendering ?

Nov 10, 2010

I wrote a program in Android for setting different kinds of images as my background image, but it is not working with svg files. I am not getting any errors, it is not displaying any image and I'm getting a blank screen in my emulator when using svg files. Can any one suggest how to read and display svg files in Android with some code? Or should I convert xml code?

View 1 Replies View Related

Android :: SW - 2D API - Vs HW - OpenGL - Rendering

Apr 27, 2009

I'm trying to compare the difference in speed between software and hardware graphics rendering. I have 2 apps right now - one written with only java/android 2D APIs, and one written with openGL calls...

View 6 Replies View Related

Android :: What Is Rendering Lifecycle?

Sep 10, 2010

There's a decent amount of information out there on the Activity lifecycle. But I'm surprised how difficult it is to find a comprehensive description of the rendering lifecycle. By that I mean the order and rules by which a tree of nested activities, views, and drawables get to be sized and drawn to the screen, and the points at which a developer can modify rendering behavior.

View 1 Replies View Related

Android :: Reloading Our Activities State After Firing Intent To Camera

Aug 31, 2009

We have an Activity which has a form on it and we launch an Intent to take a picture.We've overridden onSaveInstanceState and onRestoreInstanceState to push the data from the view fields But, on the return from the CameraActivity, the onRestoreInstanceState method is never called. Should this behavior work when calling another Intent?

View 7 Replies View Related

Android :: Measuring A View Before Rendering It

May 13, 2010

I need to find out how big a view will be after attaching it to its parent.I have overridden this method: Do you think there is a way to get this information before rendering the view itself? Basically I need to know the actually size before attaching it and not attach the view at all if it would take more certain amount of space. Code...

View 2 Replies View Related

Android :: Content Rendering For WebView

Jul 15, 2009

Can anyone help me to understand how WebView decided which content it can render and which it can't? For example I am inside a webview select a link and if the link sends an XML file I want my application to handle to data instead of WebView, Is this possible?

View 4 Replies View Related

Android :: ImageView With Drawable Not Always Rendering

Jun 22, 2010

I have an ImageView object that I'm setting the android:src="@drawable/some_xml_file" instead of a standard png and it seems to not always render the drawable, as you can see in the first row here (it also happens intermittently in other rows as well):

I've tried setting the src & the background property but they both have the same effect. the source code from my list view row item is this:

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

Then my res/drawable/action_box.xml is this:

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

View 1 Replies View Related

Android :: Video Rendering Performance ?

Apr 14, 2010

I need to render video on android. I got sw decoder which decodes stream to YUV or RGB with very reasonable cpu usage, but so far haven't found a nice way how to render frames.

I have tried 3 methods so far: 1) using opengl from native code: * create a texture of type GL_TEXTURE_2D * set coordinates to fill full opengl rendering area * to render a frame update the texture with glTexSubImage2D or glTexImage2D function (more or less the same method that is used in vlc media player)

With this method the performance is most terrible.. VGA rendering @5..7FPS uses up 100% of nexus one cpu!

2) rendering with canvas function Canvas.drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint)Was hoping to use this via JNI. First i just made a simple perfo test: * colors array was initialized in java code * then I just called mSurfaceHolder.lockCanvas(); canvas.drawBitmap(colors, ... ); mSurfaceHolder.unlockCanvasAndPost(canvas); in sequence

Perfo is better than with opengl - VGA@30FPS uses up 40% of nexus one- s cpu...

3) Rendering with canvas function Canvas.drawBitmap(Bitmap bitmap, float left, float top, Paint paint), while updating bitmap in native code * in java code i do:

CODE:.......

To get native pointer to memory (need to link to native android library libskia.so to get these functions) * copy or decode the video frame to this memory

With this method i get only 10% cpu usage when doing VGA@30fps... but lets face it - its a hack which may break in future. Am I missing something or there really isn't any better way to render video? for example some opengl extension function etc..?

View 2 Replies View Related

Android :: Simple 2D Tile Not Rendering ?

Mar 16, 2010

I'm putting together a simple test made up of two tutorials available online for OpenGL ES on Android. This is really just so that I can learn about the basics of OpenGL ES to better understand how I have to design my program.

Right now, when it tries to render, the mouse movement effect works, but I get no square drawn on the screen.

Here are the two source files I'm dealing with:

CODE:.......

The second one is the tile object itself:

CODE:........

View 1 Replies View Related

Android : Png Image Not Rendering Correct / How To Fix?

Jun 15, 2010

When trying to process this png image, webkit displays it blurry.

View 2 Replies View Related

Android NDK - Multithreading Slowing Down Rendering?

Mar 26, 2014

I have an Android app with a C++ library which uses pthreads to break down rendering tasks. This is for devices running Android 4+.

Lets say I have a 100 x 100 array of elements into which I repetitively do CPU-intensive processing. Currently I'm breaking the array up into four 25 x 100 element chunks and handing it off to four Posix threads (from a pool of stalled, pre-created threads). This gives an almost 4x speed increase on iOS and desktop Mac but slower results than single-threading under Android.

So the same code is used successfully to speed up the app on iOS or desktop Mac but in Android it often makes it even slower. I have done some tests on it and only quite big junks of data speed up when using multi threading. If the whole process (all threads) takes around 2 seconds or more it will speed up in multi threading mode but if it is less (say only takes about 400ms) it will be either the same speed or slower than just calling the rendering function normally. Which could point to thread switching being really slow. The bigger the processing tasks, the more they profit from multithreading. My tasks are usually not as big, but not fast enough in single threading mode.

I have also noticed that on ARM builds the speed difference between slower multi threading and the faster single threading is quite significant (almost twice as fast in multi threading rather than single threading) whereas on x86 builds the multi and single threaded versions will run at about the same speed as single threading on ARM builds. So x86 builds do not get slower on multithreading but also not faster.

View 1 Replies View Related







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