Re: [android-developers] Re: Custom DialogPreference and PreferenceManager.setDefaultValues issue

2013-10-25 Thread mattcoz
I had the same problem and fixed it by persisting the value in the onSetInitialValue method. The javadoc says: "If restorePersistedValue is false, you should set the Preference value to defaultValue that is given (and possibly store to SharedPreferences if shouldPersist()

[android-developers] Re: How to avoid multiple bitmap instantiation in list view, when fetching asynchronously?

2012-08-13 Thread mattcoz
This sounds a lot like a problem I used to have. Every time I would scroll the list it would rebuild the entire thing about 4 times. The problem isn't limited to bitmaps, it's any modification of the view after it has been added to the list. What I did was make sure I was caching my bitmaps

Re: [android-developers] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-26 Thread mattcoz
Well I figured out a workaround. It seems that this was occurring in onMeasure when it was measuring the children of the list. I subclassed ListView with an override, forcing the MeasureSpec to EXACTLY so it doesn't attempt to measure the children. Now it only calls getView for the new row a

Re: [android-developers] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-26 Thread mattcoz
No rules? It's a computer program, all it has are rules. The behavior is completely consistent and reproducible. I've been going over the source for ListView but can't quite track down the specific rule that is causing it. -- You received this message because you are subscribed to the Goo

Re: [android-developers] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-25 Thread mattcoz
I have determined this by logging the getView method of the adapter. When operating normally, getView is only called for the new row to be displayed when scrolling. In my case, getView is called for every row. -- You received this message because you are subscribed to the Google Groups "Andro

[android-developers] Delayed modification of ListView row causing a rebuild of the entire list when scrolling

2012-01-22 Thread mattcoz
I've got a ListView that I am populating with a list of videos from my server. For each row I'm showing the title, a thumbnail, and some additional information. The thumbnail is being loaded from a URL and the loading of the thumbnail is being done off of the main UI thread. When the thumbna

[android-developers] Re: Opening file when download completes

2012-01-06 Thread mattcoz
I'm now explicitly downloading the file to a location of my choosing and it is working. I guess it just doesn't work the other way. On Jan 4, 11:38 am, mattcoz wrote: > No change.  I'm not sure how that would have made a difference > though.  What's specific

[android-developers] ProxyProperties?

2012-01-06 Thread mattcoz
I'm trying to receive the PROXY_CHANGE_ACTION broadcast and I'm having trouble. Apparently there is a android.net.ProxyProperties object being passed in the extras bundle, but the SDK doesn't seem to include this class. It is even mentioned in the javadoc for Proxy: The intent will have the foll

[android-developers] Re: Opening file when download completes

2012-01-04 Thread mattcoz
obe Reader is not able to open the Uri that I pass in the Intent. On Jan 4, 3:31 am, King Sun wrote: > Add   intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); and try again. > On Jan 4, 2012 5:18 PM, "mattcoz" wrote: > > > > > > > > >

[android-developers] Opening file when download completes

2012-01-04 Thread mattcoz
I'm downloading a file using the DownloadManager. I'm receiving the ACTION_DOWNLOAD_COMPLETE broadcast but I'm having trouble opening the file. I'm creating a ACTION_VIEW intent with the data set to the Uri I get from the getUriFromDownloadedFile method and the type set to the String I get from t

[android-developers] HTTP Live Streaming, audio but no video

2011-04-29 Thread mattcoz
We're launching a new video streaming service and trying to get Android support in place. We've got our videos set up for HTTP Live Streaming, H.264 Baseline, AAC-LC. This works great on iOS, but on Android we're having mixed results. On my HTC Hero w/ Gingerbread I can play the video with audio