android-4.2-jelly-bean

Disable an apk for certain Android versions through google play console

南楼画角 提交于 2019-12-10 21:10:00
问题 I have an app that can switch airplane mode on and off on schedule. Or, rather, it could, until Android 4.2 came along, and this setting became unavailable. My app does not have an android:maxSdkVersion set in the manifest, and I've already started receiving angry emails from users who have Android 4.2 devices. And besides, according to answers here, android:maxSdkVersion is probably not the best solution anyway. I would like to disable my app for Android 4.2+ users, but keep it available for

Android TTS text longer than 4k chars not playing

喜欢而已 提交于 2019-12-10 20:21:50
问题 I am using TextToSpeech to play some long texts sometimes, and I have noticed that since Android 4.1.2 if the text is longer than 4000 chars, it does not play. I do not get any errors, but the text won't be played. Until now I was able to reproduce this just on Android 4.1.2 (Samsung Galaxy Nexus, Nexus7). Is this a bug just in 4.1.2 or is this normal (although I did not find any documentation regarding this behaviour)? Also I have found a post : onUtteranceCompleted() lost if TTS received is

Adding actions to a notification in jellybean ignores the custom layout set with setContent

这一生的挚爱 提交于 2019-12-10 17:34:11
问题 I'm creating a notification with a custom layout using setContent, and it works fine. But when I'm adding actions to the notification with addAction(), my custom layout is being ignored and it shows up the android's default notification layout. When I shrink the notification (using the two fingers gesture) my custom layout shows, so it seems the "expanded" form uses a different layout which I cannot set. Screenshots (With the actions, and then after swiping two fingers up to shrink it) As you

Android Jelly Bean MeasureSpec bug

筅森魡賤 提交于 2019-12-10 16:12:46
问题 I was having this problem: https://stackoverflow.com/questions/20121696/slidingmenu-bug-in-android-4-3 But now I've fixed and I want to share my solution 'cause probably someone will need it too. I'll answer this question myself bellow. 回答1: So the problem I was having lies on the fact that Build.VERSION_CODES.JELLY_BEAN_MR2 has a problem when we want to create a MeasureSpec : MeasureSpec.makeMeasureSpec(ViewGroup.LayoutParams..., MeasureSpec.EXACTLY); With MeasureSpec.EXACTLY when I perform

Android Jelly Bean service that receives all touch events

被刻印的时光 ゝ 提交于 2019-12-10 16:01:15
问题 I am an undergraduate research assistant working on an android accessibility project. My task involves collecting as much data about the user experience as possible, including touch events and other view interactions. I require 2 services: an accessibility service to gather details about the view current interaction, and a TouchListener service that is able to intercept MotionEvents . My problem is with the TouchListener service. Is there any known way to intercept all touch events and pass

Immersive like feature in JB and ICS

无人久伴 提交于 2019-12-10 15:52:52
问题 I am developing an Application where I need to go completely full screen. In kitkat its very easy by using Immersive tag. But since not all devices support kitkat I need to take JB and ICS (atleast) into consideration. Well although there is a way of hiding navigation bar and status bar in JB and ICS it becomes visible as soon as the user interacts. This certainly does not looks good. It also takes one extra touch. I did a lot of searching on net and was surprised that there is no way we can

Android ICS to JB Actionbar tabs changed requirements

陌路散爱 提交于 2019-12-10 12:18:57
问题 I have an application that targets SDK 15, ICS 4.0.3. I just updated it to point at 4.1 it broke my user interface, and makes it pretty ugly: Here's what it looks like normally on API 15: And here's it on 16 or 17: I got a feeling this is because the Nexus 7 uses the phone UI instead of the actual tablet UI... Is there a way to force the tabs into the actionbar without having to use something like ActionBar sherlock or something else (like subclassing)? Or even if I could make the tabs not

ScrollView inside ViewPager does not scroll on Android 4.x

非 Y 不嫁゛ 提交于 2019-12-10 05:50:57
问题 I have a problem that seems to only impact Android 4.x versions and may be also device specific (i.e. it does not exist on my Huawei G630@4.3, but do exists on a Samsung Ace2@4.4.4). I have a ScrollView that contains a RelativeLayout that has 4 CardView s. Now on some 4.x devices, the scroll event simply does not happen when I try to scroll beginning from a card. If I touch the small padding between the cards or above the first card (and not between any two) and the device screen, I can

my status bar in android 4.2.2 emulator is broken

廉价感情. 提交于 2019-12-10 03:58:04
问题 Today I found the status bar in android 4.2.2 emulator is broken.I cannot pull it down. I have no idea what happened. 回答1: Try to make a little app wich pulls it down: StatusBarManager statusBar = (StatusBarManager) getSystemService(STATUS_BAR_SERVICE); statusBar.expand(); Permission is required in manifest: <uses-permission android:name="android.permission.EXPAND_STATUS_BAR" /> 回答2: For what it's worth, as per this SO, it seems like it might be a bug in android. No response from Google as of

Is there a way to use cancel in Android JellyBean TimePickerDialog?

别来无恙 提交于 2019-12-09 12:57:26
问题 As far as I am aware, versions prior to Jelly Beans, had Set and Cancel buttons when using TimePickerDialog . Jelly Beans has only Done button. I could just leave the Done button, and could close the dialog by clicking outside the dialog, but my onTimeSetListener gets called if pressing Done or outside the dialog. So I found this stackoverflow question which describes, that there is a bug when using DatePickerDialog . To fix the issue using DatePickerDialog , when initializing I had to set