Fixed
Status Update
Comments
pi...@gmail.com <pi...@gmail.com> #2
Can you provide the below requested information to better understand the issue:
Can you please test with latest library and update result here.
https://developer.android.com/topic/libraries/support-library/revisions.html
If possible please provide a complete sample application.
Expected output
What do you expect to occur?
Current output
What do you see instead?
Can you please test with latest library and update result here.
If possible please provide a complete sample application.
Expected output
What do you expect to occur?
Current output
What do you see instead?
ol...@gmail.com <ol...@gmail.com> #3
This seems to be intended according to https://issuetracker.google.com/74278849 , the suggestion is to remove the extra logic to deliverResult() in onStartLoading().
js...@android.com <js...@android.com> #4
@gg..@google.com
Sample project is attached.
Steps to test:
1. Import, build and install apk
2. Notice "Number of 'onLoadFinished' calls: 1"
3. Click "Click me!" button to start Second Activity
4. Notice "Number of 'onLoadFinished' calls: 2"
EXPECTED: At stap 4 "Number of 'onLoadFinished' calls" should be 1.
ACTUAL: It's 2.
@ha...@gmail.com
That's not the solution because developers are not in control of all Loaders. For example CursorLoader from support libaray should be then fixed by google, not by developers.
And this is behavior change which is not documented, so suggestion on issuetracker is not good enough.
Sample project is attached.
Steps to test:
1. Import, build and install apk
2. Notice "Number of 'onLoadFinished' calls: 1"
3. Click "Click me!" button to start Second Activity
4. Notice "Number of 'onLoadFinished' calls: 2"
EXPECTED: At stap 4 "Number of 'onLoadFinished' calls" should be 1.
ACTUAL: It's 2.
@ha...@gmail.com
That's not the solution because developers are not in control of all Loaders. For example CursorLoader from support libaray should be then fixed by google, not by developers.
And this is behavior change which is not documented, so suggestion on issuetracker is not good enough.
da...@gmail.com <da...@gmail.com> #5
We have shared this with our engineering team and will update this issue with more information as it becomes available.
je...@gmail.com <je...@gmail.com> #6
Do you have any news ?
da...@gmail.com <da...@gmail.com> #7
@6 I think they changed the way it works, without much information about the change.
Try this solution I've written about (read the last part of the text too, as it talks about the changes) :
https://stackoverflow.com/a/22675607/878126
Try this solution I've written about (read the last part of the text too, as it talks about the changes) :
da...@gmail.com <da...@gmail.com> #8
@7 Thank you for your information. I still get the error when orientation change
gi...@gmail.com <gi...@gmail.com> #9
@8 I can't confirm. It works fine without any error .
Attached sample project, that "loads" content, and after 5 seconds returns a result, that will be returned on the current Activity.
Attached sample project, that "loads" content, and after 5 seconds returns a result, that will be returned on the current Activity.
da...@gmail.com <da...@gmail.com> #10
OK I'll check it again. Thx a lot!
mi...@gmail.com <mi...@gmail.com> #11
@9 Hello man, when orientation change the "onLoaderFinished" method, called again. Do you know how to stop calling this method?
ro...@gmail.com <ro...@gmail.com> #12
@11 It is called only once after onCreate is called, just as intended.
The reason is that after you load something, you wish to use it. After orientation change, all is destroyed, but the result is still available, so you can use it.
If you don't want to use the result, either ignore it, or check whether the loader (if existing) has a result or not.
But this loses the whole point of using a loader. By using a loader, you are supposed to use its result, even after an orientation change.
The reason is that after you load something, you wish to use it. After orientation change, all is destroyed, but the result is still available, so you can use it.
If you don't want to use the result, either ignore it, or check whether the loader (if existing) has a result or not.
But this loses the whole point of using a loader. By using a loader, you are supposed to use its result, even after an orientation change.
da...@gmail.com <da...@gmail.com> #13
Yep. I have two test Nexus 4's on which my app fails to work because of this problem.
ro...@gmail.com <ro...@gmail.com> #14
Just a by-pass (though does not work for me as I require encryption) - Use a zip file instead of obb (renamed to obb) - this does not require mounting but can be read directly using ZipResourceFile. Zip file renamed as obb works well in KitKat.
Just a thought: We might as well use an encrtypted zip file - till this thing works (Perhaps zip4j library comes in handy?)
al...@gmail.com <al...@gmail.com> #15
In my case, this functionality is needed to open html content which is stored in obb. Content is larger than 50Mb and I can't store it in Assets. I can't use zip format for obb file because WebView can't load resources from zip.
Now I shall rewrite my application because I shall choose entirely another way to deliver my application content for customers.
Any workarounds or suggestions will be very appreciated.
Now I shall rewrite my application because I shall choose entirely another way to deliver my application content for customers.
Any workarounds or suggestions will be very appreciated.
ol...@gmail.com <ol...@gmail.com> #16
Same problem with Nexus 7 and Nexus 7 HD with 4.4.
ro...@gmail.com <ro...@gmail.com> #17
Will this be solved in Kitkat 4.4.1 update?
te...@gmail.com <te...@gmail.com> #18
I tried on Nexus 5 with kitkat 4.4.1 and this is fixed. Thank you Google!
da...@gmail.com <da...@gmail.com> #19
Thanks for this information. I will see if the update is available for my Nexus 5.
aj...@gmail.com <aj...@gmail.com> #21
Hi Jeffrey,
Could you please point to the patch which solves this issue?
Thanks in advance
Could you please point to the patch which solves this issue?
Thanks in advance
da...@gmail.com <da...@gmail.com> #22
It's not a patch. It's a new release of the Android OS (4.4.1). To update, I followed the guide provided here: http://betanews.com/2013/12/06/android-4-4-1-kitkat-now-available-heres-how-to-install-it/ . I didn't want to wait for OTA update.
js...@android.com <js...@android.com> #23
It was fixed by this change in platform/external/sepolicy:
Change-Id: I45d30ecabdf0bc8871f3dd67b5695ac909109d9a
Change-Id: I45d30ecabdf0bc8871f3dd67b5695ac909109d9a
ia...@gmail.com <ia...@gmail.com> #24
Thanks for the fix! It would be great to get some love for this related bug too: https://code.google.com/p/android/issues/detail?id=53878 (flakiness in the JOBB tool)
po...@gmail.com <po...@gmail.com> #25
I am trying to mount an encrypted OBB on my Nexus 5 running Android 4.4.2
and return ERROR_COULD_NOT_MOUNT
Are there any workarounds of now ?
and return ERROR_COULD_NOT_MOUNT
Are there any workarounds of now ?
ma...@gmail.com <ma...@gmail.com> #26
I still get COULD_NOT_MOUNT errors when trying to mount an encrypted obb. Same as described here: http://stackoverflow.com/questions/14342068/how-to-mount-encrypted-apk-expansion-files
And I am on Android 4.4.4 with Nexus 4.
And I am on Android 4.4.4 with Nexus 4.
ma...@gmail.com <ma...@gmail.com> #27
The issue might be fixed for unencrypted OBB, but it still does not work with encrypted OBB on Android 4.4.4.
jj...@gmail.com <jj...@gmail.com> #28
I am from Holland and I also have the same problem, after reporting it I got the answer that it is also due to the fact that I am from abroad, so all I can do is wait.
I have a Samsung Tab S with 4.4 KitKat
I have a Samsung Tab S with 4.4 KitKat
sz...@gmail.com <sz...@gmail.com> #29
[Comment deleted]
ci...@gmail.com <ci...@gmail.com> #30
Up to Android SDK 21 it works, but I had again the same issue on ANDROID SDK 22!!!!
da...@gmail.com <da...@gmail.com> #31
I find the reason for some obb file could not be mounted. There a random solt when make obb file, an hashkey generated by PBKDF2WithHmacSHA1. the hashkey from bytes convert to hex string has a bug. I submit a patch to project : platform/framwork/base.
https://android-review.googlesource.com/#/c/230280/
Description
StorageManager.mountObb(XAPKS.filefullpath(context), null, new OnObbStateChangeListener(){
@Override
public void onObbStateChange(String path, int state){
switch (state){
case MOUNTED:
Log.e(LOG_TAG, "Obb mounted " + XAPKS.filefullpath(context));
break;
default:
Log.e(LOG_TAG, "Obb mounting errors " + XAPKS.filefullpath(context) + " | " + XAPKS.storageManagerErrorsHelper(state));
break;
}
}
});
XAPKS.filefullpath(context) returns "/storage/emulated/0/Android/obb/mypackage/main.version.mypackage.obb"
But Vold fails to mount my OBB with : "Unable to open /mnt/shell/emulated/obb/mypackage/main.version.mypackage.obb (Permission denied)"
Same code was working with Android 2.3 up to 4.3 .
My application uses android.permission.READ_EXTERNAL_STORAGE and android.permission.WRITE_EXTERNAL_STORAGE if it can be of any interest.