Re: [android-developers] Re: finish() method of an activity inside of oncreate() and onpause() behaves differently. why?

2013-07-22 Thread Ryan Harter
What Ted said is absolutely true, I just wanted to add a little tidbit. In the AOSP sources, the code actually checks to see if finish was called from within onCreate and short circuits the displaying any UI. This is so that, if you determine your activity doesn't need to be run and call finish()

Re: [android-developers] Best way to save user's avatar

2013-07-22 Thread Ryan Harter
Take a look at that AOSP sources. You can see that the built in contacts app is saving the photos to the file system. On the PhotoStore class in the contacts provider, here is the javadoc comment on the class: 1. /** 2. * Photo storage system that stores the files directly onto the hard

Re: [android-developers] Re: Anyone know where to find the list of environment variables?

2013-07-22 Thread Ryan Harter
Check this out. http://developer.android.com/reference/android/os/Environment.html For things like External Storage directory, you're going to need to use a method, not a variable, as that can be dynamic. On Sun, Jul 21, 2013 at 1:53 AM, Piren wrote: > http://developer.android.com/reference/pa

[android-developers] Re: Google Play Services: UserRecoverableAuthException's intent doesn't start

2013-05-08 Thread Ryan Harter
Did you ever find a resolution for this? I'm seeing the same behavior in the dredit sample Drive SDK code, and my code based off of it. I create a pending intent out of the intent returned from getIntent(), but it doesn't launch. Here is my code, taken directly from the sample: try { GoogleA

[android-developers] How to respond to focused item change in ListView

2012-10-16 Thread Ryan Harter
I have a ListView which contains all of my TV Series in my Google TV app. My goal is that when the user uses the d-pad to move to a different TV Show, without selecting it (clicking the center button) the background of the main view will change to match the currently focused show. Selecting t