[android-developers] FragmentManager restoring Fragments in wrong order

2013-08-21 Thread DH
Came across this issue and posted a repro case to this android issue: http://code.google.com/p/android/issues/detail?id=31116#c4 Basically the fragment manager can restore fragments in a different order as how fragments were added before saving state. This has implications with the z order of

[android-developers] Re: fragment transactions in onLoadFinished()

2011-11-11 Thread DH
I'm trying to display a DialogFragment and am facing the same problem. How do you approach this? My loader gets data from our server and I would like to display an error dialog when for example a network problem occurs. Thanks. David. On Sep 14, 11:17 pm, Dianne Hackborn hack...@android.com

[android-developers] How to determine fragment restored from backstack

2011-10-31 Thread DH
Hi all, I have been researching this topic for the past couple days and have not found a solution yet, also on stackoverflow http://stackoverflow.com/questions/7919681/how-to-determine-fragment-restored-from-backstack so here goes: How do you determine a fragment is being restored from the

[android-developers] Re: Live Wallpaper canvas gradient banding

2011-04-20 Thread DH
Thanks Dianne, that solved my png banding issue. On Feb 23, 6:05 am, Dianne Hackborn hack...@android.com wrote: The canvas drawing into the live wallpaper is not ; the default is 565, which yes will result in banding.  You can change the desired format with the SurfaceHolder API.

[android-developers] Re: Detect OSK shown / hidden events

2010-12-13 Thread DH
From my hours spent on the Nexus One, onConfigurationChanged does not get called when the soft keyboard state is changed, I have resorted to hooking into the on size changed for my content view. However I get this annoying flickering issue since when one of my button is clicked, I would hide the

[android-developers] Flickering with keyboard animation

2010-12-12 Thread DH
Hi all, I'm trying to pop up a view in place of the soft keyboard, so I add a layout to my content view and set it to invisible when the soft keyboard is shown, and then set the layout to be visible when I want to hide the keyboard and display my view. Problem right now is whenever I set my

[android-developers] EditText with multiple selections highlighting

2010-12-06 Thread DH
Hi, Trying to make an EditText capable of multiple regions of text highlighting. (Like firefox Find-Highlight all) Was thinking of using multiple selections in EditText, but after browsing the source code of Selection, realised 1 CharSequence can only have 1 Selection. Then looked at EditText

[android-developers] remap accelerometer coordinate system

2010-06-01 Thread DH
Hi, the remapCoordinateSystem method remaps the axis for sensor readings, but I want to remap the coordinate system to any angle, for example: new coordinate system is say relative to earth's coordinate system, 20 degrees clockwise to earth's X axis, and 10 degrees to earth's Y axis, while Z is