Cheok Yan Cheng

Aug 19, 2016 19:22
thanks for suggestion, and good nite.
Aug 19, 2016 19:04
@PoprostuRonin Thanks any way. Your input is pretty valuable.
Aug 19, 2016 18:51
But, if tested new account in another Nexus 6, thing works fine.
Aug 19, 2016 18:50
Tested new account in my Nexus 5, still facing the same problem
Aug 19, 2016 18:49
Trying...
Aug 19, 2016 18:45
Thanks for helping in testing in your Nexus 5. At least now I know, this is quite a tricky problem as it doesn't happen in all devices.
Aug 19, 2016 18:44
But, I'm not alone. Time-to-time, there are customers who are reporting the same problem.
Aug 19, 2016 18:44
Yes. When I try to run on Nexus 6 with a new account, the problem doesn't appear.
Aug 19, 2016 18:41
@PoprostuRonin I'm really appreciate your input. This is how it looks like under my device - youtu.be/kuIHoi4A1c0 I realize, not all users will hit with this problem. For instance, I had tested with another Nexus 6, Google Play Services 9.4.52 (440-127739847). The problem doesn't appear
Aug 19, 2016 18:41
@PoprostuRonin I had compiled an APK for testing purpose - github.com/yccheok/google-drive-bug/releases/download/1.0/&h‌​ellip;
Aug 19, 2016 18:41
@PoprostuRonin I'm using Nexus 5 6.0.1 MOB30Y too. Are you updated with latest Google Play Services? What if you try to click on "Save 123.." and "Save 456.." alternatively multiple times, before clicking on "LOAD LAST SAVED FILE"? Will you get 123.TXT with content "456" (Or 456.TXT with content "123") ?
Aug 19, 2016 18:41
@PoprostuRonin May I know, do you only have 1 Google account, or multiple Google accounts in your Nexus 5?
Aug 19, 2016 18:41
@StefanHaustein Helo, I manage to produce a minimal workable example, to demonstrate this problem. Do you mind to take a look in it? Thank you very much.
Aug 19, 2016 18:41
@StefanHaustein I hope I had explained the issues in a clear manner - code.google.com/a/google.com/p/apps-api-issues/issues/&helli‌​p;
Aug 19, 2016 18:41
@StefanHaustein ok. Thanks for the link. I'm in the process of producing a minimal workable example to demonstrate the bug. github.com/yccheok/google-drive-bug I will let you know once it is done. Thank you very much.
Aug 19, 2016 18:41
@Shailendra I had modified the code by using driveContents.commit request with the metadataChangeset gist.github.com/yccheok/2676fc3383116945ca1fac3bbf5a3b1f The saveToGoogleDrive returns true. Still, same problem occurs if you download -> save -> download again. It still get the cached content. I'm still in the process of producing a minimal workable example to demonstrate the problem.
Aug 19, 2016 18:41
@Shailendra Helo, I manage to produce a minimal workable example, to demonstrate this problem. Do you mind to take a look? Is there any mistake I had made in the source code, or is this bug in API? Thank you very much.
Aug 19, 2016 18:41
@StefanHaustein Before Google Play Services, I were using "regular" Java Rest API too. Due to the newly required permission stackoverflow.com/a/34701518/72437 in regular Java Rest API, I decide switch over to Google Drive Android API. Now, I realize such decision does more harm than good.
Aug 19, 2016 18:41
@StefanHaustein I don't think I want to file a bug report at this moment. As, even when they fix requestSync behavior, the strictly imposed limit (Sync request rate limit exceeded) on requestSync - stackoverflow.com/q/31203255/72437 , make that API not particular useful.
Aug 19, 2016 18:41
@StefanHaustein I realize you work in Google. Do you know anyone who is working on Google Drive Android API? Not sure you are able to draw his attention on this question. Would like to hear some input from them :)
 
May 8, 2016 18:55
Good night to you too :)
May 8, 2016 18:54
Thank u.
May 8, 2016 18:54
Thank you very much!
May 8, 2016 18:54
If that too much of effort, it is ok for me to stick with complicated solution.
May 8, 2016 18:53
oh, ok.
May 8, 2016 18:52
Hi there?
May 8, 2016 18:38
I try to do it in pixel-perfect sense. If not, it is very difficult to stand out of competitive app market.
May 8, 2016 18:37
I'm also impressed with your deep knowledge on how Android in-and-out.
May 8, 2016 18:36
ok.
May 8, 2016 18:35
I need to tackle other UI area :(
May 8, 2016 18:35
But, I think it is fine for now. As complicated way works for me.
May 8, 2016 18:35
Nope. As you can see, u can see the normal blue color effect is gone, after using this theme technique
May 8, 2016 18:33
:D I only want it to be in "Rate me" dialog
May 8, 2016 18:32
no. what i mean, that will affect my other alert dialogs right?
May 8, 2016 18:29
yup. but selector effect seem right
May 8, 2016 18:29
But, that will affect my entire app right? I only want this effect applicable to this dialog.
May 8, 2016 18:27
<style name="RateAppPositiveButton" parent="@style/Widget.AppCompat.Button.Borderless.Colored">
<item name="colorButtonNormal">#ff0000</item>
</style>

<style name="RateAppDialog" parent="@style/Theme.AppCompat.Light.Dialog.Alert">
<item name="android:buttonBarPositiveButtonStyle">@style/RateAppPositiveButton</item>
<item name="buttonBarPositiveButtonStyle">@style/RateAppPositiveButton</item>
</style>
May 8, 2016 18:27
final AlertDialog dialog = new AlertDialog.Builder(new ContextThemeWrapper(this.getContext(), R.style.RateAppDialog))
May 8, 2016 18:27
My changes is
May 8, 2016 18:27
May 8, 2016 18:26
I had tested parent="@style/Widget.AppCompat.Button", parent="@style/Widget.AppCompat.Button.Colored" and parent="@style/Widget.AppCompat.Button.Borderless.Colored"
May 8, 2016 18:25
Let me send u screenshot
May 8, 2016 18:25
Does look positive at first try
May 8, 2016 18:18
Yes. Testing right now...
May 8, 2016 18:09
ok
May 8, 2016 18:09
oh
May 8, 2016 18:09
Widget.AppCompat.Button.Borderless
May 8, 2016 18:09
maybe use this
May 8, 2016 18:09
I guess
May 8, 2016 18:08
API 14 (Android 4.0)