WAI
Status Update
Comments
je...@google.com <je...@google.com> #2
Hi, I have the same error in my app. It seems the error occurs only on some LG devices with Android 4.1
ca...@gmail.com <ca...@gmail.com> #3
Same here: developer console reports Android 4.1 on LG Optimus L3 II (vee3e)
li...@gmail.com <li...@gmail.com> #4
Same here, Android 4.1, LG Optimus L9 (u2)
je...@google.com <je...@google.com>
ri...@gmail.com <ri...@gmail.com> #5
Hello,
I have an LG Optimus L9 Android 4.1 and I have the same error in my app.
If I try in emulator with same version of android everything works fine!!!
The problem in on LG
I have an LG Optimus L9 Android 4.1 and I have the same error in my app.
If I try in emulator with same version of android everything works fine!!!
The problem in on LG
m....@gmail.com <m....@gmail.com> #6
See many error reports from Google Play about this issue, all are from LG devices.
Do you guy have any workarounds for this problem?
And Google, why do u ignore this issue? Many people can't use feature hidden in overflow button right now...
Do you guy have any workarounds for this problem?
And Google, why do u ignore this issue? Many people can't use feature hidden in overflow button right now...
m....@gmail.com <m....@gmail.com> #7
It seems there is a workaround here : http://developer.lge.com/community/forums/RetrieveForumContent.dev?detailContsId=FC29190703
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU){
openOptionsMenu();
return true;
}
return super.onKeyDown(keyCode, event);
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU){
openOptionsMenu();
return true;
}
return super.onKeyDown(keyCode, event);
}
jl...@gmail.com <jl...@gmail.com> #8
#6: Note that `Activity.openOptionsMenu()` might work on those affected LG devices (I haven't tried), but it generally won't work with AppCompat (it's a no-op).
A potential solution may be to catch the NPE `onKeyUp()` and then call `openOptionsMenu()` there. If going that route, no need to override `onKeyDown()` either.
A potential solution may be to catch the NPE `onKeyUp()` and then call `openOptionsMenu()` there. If going that route, no need to override `onKeyDown()` either.
m....@gmail.com <m....@gmail.com> #9
@5 - it looks like this is a bug with LG's customised version of Android. There's nothing this website can do here to help if a manufacturer chooses to do something that introduces bugs on their devices only.
m....@gmail.com <m....@gmail.com> #10
@8 - it looks that the bug is related to the latest appcompat library v7.
I developed an application that was working fine with older versions of the library, but after I upgraded the application source code including the revision 21 of the appcompat I started to receive lots of NPE from LG devices with hardware option button.
So the NPE was caused by the new Appcompat library, which indicates that Google did not perform any regression tests on these devices.
Why older versions of Appcompat works well with LG phones?
Note that no one from Google team has yet provided any answer, which is really unprofessional.
I developed an application that was working fine with older versions of the library, but after I upgraded the application source code including the revision 21 of the appcompat I started to receive lots of NPE from LG devices with hardware option button.
So the NPE was caused by the new Appcompat library, which indicates that Google did not perform any regression tests on these devices.
Why older versions of Appcompat works well with LG phones?
Note that no one from Google team has yet provided any answer, which is really unprofessional.
jl...@gmail.com <jl...@gmail.com> #11
@9 The fact that only LG devices are affected is proof that it is a bug made by LG. The appcompat library is not device-specific, so how could this be considered Google's problem if their implementation works fine on thousands of other devices? Google should be allowed to alter the implementation of the appcompat library without having to worry about bugs that LG and other OEMs introduced in their code.
m....@gmail.com <m....@gmail.com> #12
agree with #10 but Google is the only one can help developers to fix this problem. If they don't fix then many many many Android users can't use menu button anymore.
Description
See this discussion on the Android Developers mailing list for more information, including source code references in AOSP:
A test of SoftReferences which shows them getting freed too early can be found at:
This bug still exists as of Android 2.3.4.