[android-developers] SecurityException in GMS 8.4.0

2016-02-15 Thread 'Sheng-Dean Chang' via Android Developers
Android 5.1.1; Support Library 23.1.1; GMS 8.4.0; We're seeing the following crash after upgrading to GMS 8.4.0. ``` at java.lang.SecurityException: Requesting code from com.google.android.gsf (with uid 10017) to be run in process ask.me.if.you.need.more.details (with uid 10221)

[android-developers] Is there a common classpath for tests?

2015-07-26 Thread Sheng-Dean
I often find myself duplicating the exact same set of test classes such as mocks or helpers for both Android Tests `/androidTest` and Unit Tests `/test` when writing tests for an application module. For example, I have some static functions that help me set up mocks quickly in `/test/MockUtils.

[android-developers] Why are RecyclerView's notifyItemChanged/Inserted/Removed declared final?

2015-02-18 Thread Sheng-Dean
Hi everyone, I'm trying to extend the RecyclerView.Adapter class however I noticed that all of the notifyDataSetChanged() and notifyItemChanged/Inserted/Removed() method are declared final. Looking into the source code, these notify methods simply notify the RecyclerView's observer. Can any o

[android-developers] Re: How to acquire reference to UsageStatsManager?

2014-10-17 Thread Sheng-Dean
Specifically, this class: http://developer.android.com/reference/android/app/usage/UsageStatsManager.html On Friday, October 17, 2014 7:21:15 PM UTC-7, Sheng-Dean wrote: > > As titled, how does one acquire a reference to UsageStatsManager? > -- You received this message becaus

[android-developers] How to acquire reference to UsageStatsManager?

2014-10-17 Thread Sheng-Dean
As titled, how does one acquire a reference to UsageStatsManager? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

Re: [android-developers] How to animate the height of a view?

2014-06-19 Thread Sheng-Dean
partially measure the view hierarchy. On Thursday, June 19, 2014 1:34:06 AM UTC-7, Paul-Peter Tournaris wrote: > > > https://stackoverflow.com/questions/4946295/android-expand-collapse-animation > > > > > On Thu, Jun 19, 2014 at 11:07 AM, Sheng-Dean > wrote: > >>

[android-developers] How to animate the height of a view?

2014-06-19 Thread Sheng-Dean
Hello, I would like to animate the height of a View to make it look like it is expanding. My current implementation involves a custom Animation class that invokes getLayoutParams() and changes the height variable in the applyTransformation() method. It looks like this: @Override prote

Re: [android-developers] Help with native exception: ScriptIntrinsicBlur.create() throws RSRuntimeException: Internal error: Object id 0

2014-05-27 Thread Chang Sheng-Dean 章聖典
ce* and call invoke as many times you need to. > > If recreating RS context and/script is the cause, it is something you > could test rather easily since the crash would happen on second call to > your blur method. > > -- > H > On May 25, 2014 10:43 AM, "Chang Sheng-Dean 章

Re: [android-developers] Help with native exception: ScriptIntrinsicBlur.create() throws RSRuntimeException: Internal error: Object id 0

2014-05-25 Thread Chang Sheng-Dean 章聖典
lopers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to

[android-developers] Is there any functionality difference between ViewTreeObserver.removeOnGlobalLayoutListener() and .removeGlobalOnLayoutListener()?

2014-05-22 Thread Sheng-Dean
The ViewTreeObserver class has 2 methods: removeOnGlobalLayoutListener() & removeGlobalOnLayoutListener(). I went on GrepCode and diff-ed every version and couldn't find any functionality difference other than the name change. Is there any functionality differences between these two methods?

Re: [android-developers] Re: Concurrency: Do you use Loaders? AsyncTask? or Runnables?

2013-03-20 Thread Chang Sheng-Dean 章聖典
ttps://groups.google.com/groups/opt_out>. >>>> >>>> > >>>> > >>>> >>> -- >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>

Re: [android-developers] Re: What is the maximum range allowed when querying CalendarContract.Instances?

2013-03-04 Thread Chang Sheng-Dean 章聖典
le.com/d/topic/android-developers/YcNh7bM_8Yc/unsubscribe?hl=en > . > To unsubscribe from this group and all its topics, send an email to > android-developers+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Thank y