android-4.2-jelly-bean

What does it mean with bug report captured in android tablet?

烈酒焚心 提交于 2019-11-27 17:50:28
问题 I was playing around with my tablet and testing my program, when there was a notification that said bug report captured and whether I would like to share it. I had not seen this message before so I clicked Yes, and then I clicked OK on the warning dialog box that asked me to share it only with people I trust. After that the gmail app opened up which had a screenshot of my tablet, as well as a file attached to it called bugreport<some numbers, date and time I think>.txt . I did not send the

appcompat-v7 v21.0.0 causing crash on Samsung devices with Android v4.2.2

北城余情 提交于 2019-11-27 17:29:07
We just changed our application to use the appcompat-v7 support library in order to take advantage of the support actionbar and support Material themes. Using v21.0.0 of appcompat-v7 (and v21.0.0 of support-v4) , we are now seeing crashes in Google Play and Crashlytics only from Samsung devices running Android v4.2.2 . Here is the stack trace from Google Play and the app appears to crash as soon as the actionbar` is shown and/or invalidated. java.lang.NoClassDefFoundError: android.support.v7.internal.view.menu.MenuBuilder at android.support.v7.app.ActionBarActivityDelegateBase

null keyevent and actionid = 0 in onEditorAction() (Jelly Bean / Nexus 7)

旧城冷巷雨未停 提交于 2019-11-27 14:18:42
I have an edit text which functions as a search box in my application. In Jelly Bean on my Nexus 7 when I type something into the text box which I am listening on and hit enter the KeyEvent = null and ActionId = 0 passed into the onEditorAction() method. Has anyone else encountered this? I'm thinking it might be a bug. In the second if statement below I get a null pointer because the actionId = 0 and KeyEvent = null; // Search field logic. @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.d(TAG, "onEditorAction"); if (event != null && event.getAction() !=

Android 4.2.2 - adb offline, even after SDK upgrade

一个人想着一个人 提交于 2019-11-27 11:39:03
问题 Edit: Fixed! Looks like there are very many possible causes for this. Mine was one of the more unusual... I updated SDK Tools to 21.1 and Platform-tools to 16.0.1. Verified with adb version that I am running v1.0.31. My development machine is running Windows 7, x64. I have four 4.2.2 devices to test with, a Galaxy Nexus with unlocked bootloader but not rooted, and Nexuses One, 4, 7 & 10, all stock. The Nexus One, being <4.2.2, works just fine with adb, but all the 4.2.2 devices show as

How to encode Bitmaps into a video using MediaCodec?

醉酒当歌 提交于 2019-11-27 10:45:24
I would like to encode a set of Bitmaps that I have into an h264. Is this possible via MediaEncoder? I have written some code in order to do it, but the output cannot be played in any media player I have tried. Here's some of the code that I primarily borrowed from other sources that I found on Stackoverflow. mMediaCodec = MediaCodec.createEncoderByType("video/avc"); mMediaFormat = MediaFormat.createVideoFormat("video/avc", 320, 240); mMediaFormat.setInteger(MediaFormat.KEY_BIT_RATE, 125000); mMediaFormat.setInteger(MediaFormat.KEY_FRAME_RATE, 15); mMediaFormat.setInteger(MediaFormat.KEY_COLOR

Can't connect Nexus 4 to adb: unauthorized

二次信任 提交于 2019-11-27 10:37:47
I have a Nexus 4 with Android 4.3 and I am trying to connect the device to a computer with Windows 7 64bit. I installed the latest drivers and the latest adb version. I think I tried almost everything and I still get the following message: C:\Program Files (x86)\Android\sdk\platform-tools>adb devices List of devices attached 007667324ccb229b unauthorized What can be the reason for this error? I had similar situation. Here is what I did: Try to check and uncheck the USB Debugging option in the device. (if not working, try to unplug/plug the USB) At some point, the device should show up a

Create custom lockscreen for android 4.0 or above?

我的未来我决定 提交于 2019-11-27 10:28:23
I want to create custom lockScreen for android 4.0 and above, I have tried widget to create lockscreen but it supports only android 4.2. Is there any other way to create custom android lockScreen? I have found snippets somewhere on internet few months ago, I have made changes and recently uploaded the working demo on my github account, You can have a look at this Note: It will disable "hardware" home button. I hope it will be helpfull !! Screenshots: It provides lockscreen in API 8 or above. Initial Locked Unlocked 来源: https://stackoverflow.com/questions/16911049/create-custom-lockscreen-for

Android 4.2 on Nexus 7: canvas.drawText() not working correctly

血红的双手。 提交于 2019-11-27 09:07:49
I'm facing a serious issue with my Application, published on Google Play and apparently working fine on all versions of Android except for > 4.0. This is a screenshoot from my Android 4.0 HTC phone: And this is what I get on Nexus 7, Android 4.2.1 (same behaviour in the emulator): I see the same behaviour for each text drawn using canvas.drawText() the Paint used to draw text is: paint = new Paint(); paint.setAntiAlias(true); paint.setColor(color); //some color paint.setTextSize(size); //some size paint.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD)); paint.setTextAlign(Align.CENTER); In

Android 4.2.1 wrong character kerning (spacing)

人走茶凉 提交于 2019-11-27 08:44:02
When using Canvas and drawText() method I see a different rendering on Android 4.2.1. Below 4.2: For Android 4.2.1 (Nexux 7) I get: As you can see the text Consumption is very tight. Seems to be a kerning problem introduced in 4.2.1. The Paint used to draw text is nothing special: titlePaint = new Paint(); titlePaint.setAntiAlias(true); titlePaint.setColor(0xffffffff); titlePaint.setTextSize(0.125f); titlePaint.setTypeface(Typeface.defaultFromStyle(Typeface.BOLD)); titlePaint.setTextAlign(Align.CENTER); titlePaint.setLinearText(true); If I don't use titlePaint.setLinearText(true) I get a

Error running systrace tool in ADB using a Jelly Bean 4.1 emulator on Windows 7

最后都变了- 提交于 2019-11-27 08:22:35
How can I run systrace to show its html output? After watching the Google I/O 2012 talk "For Butter or Worse" I am having trouble getting systrace to work on Windows 7 using the emulator running Jelly Bean 4.1. I did the following: Installed Python 2.7, and added the install folder to my PATH Ran the following: C:\android-sdk\platform-tools\systrace>python systrace.py (with older SDKs: C:\android-sdk\tools\systrace>python systrace.py ) But I get the following error in cmd: Traceback (most recent call last): File "systrace.py", line 212, in <module> main() File "systrace.py", line 124, in main