android-4.4-kitkat

Screen Recording kitkat with button

元气小坏坏 提交于 2019-12-08 05:18:29
i want create a button that starts the new screenrecording feature in Android 4.4 Kit Kat.. I create a button and i tryied to do in this way: start.setOnClickListener(new OnClickListener() { public void onClick(View v){ String record ="su screenrecord — bit rate 8000000 --time-limit 30 "+recordfolder+"Record.mp4"; recordfolder.mkdir(); try { Process screenrecording = Runtime.getRuntime().exec(record); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }); It creates the dir when i click but the recording not starts. My question are two right now; 1) Why i can

Text-shadow rendering on Android 4.4.2 bug

核能气质少年 提交于 2019-12-08 04:55:34
问题 we develop and android app that opens a full screen browser and loads some content. this all works fine excepted this little bug: only under 4.4.2 (works fine on 10 devices with 4.2, and also tested on 4.4/5) only the text-shadow css feature drops the shadow on the top of the text box instead of behind the text. it fails in our app, also fails in the default browser, but works fine in Chrome or firefox on the same android stick. as you can see it from the attached screenshot the box shadow

Android Webview on 4.4 freezes with nativeOnDraw failed; clearing to background color

北城以北 提交于 2019-12-07 21:07:44
问题 I know this question has been asked many times and there are few work arounds.But none of them work for me I have a app that uses webview . On opening many apps and then waking up this app sometimes makes the webview blank. Other components of the app works but the webview is stuck. I disabled the hardware acceleration in Androidmanifest.xml and it did not work <application android:name="com.nandish.app.MyApplication" android:largeHeap="true" android:hardwareAccelerated="false"> I tried to

Android floating window with hidden statusbar Accessibility problems

ぃ、小莉子 提交于 2019-12-07 19:33:03
问题 I am working on android 4.4.2 building an application with a system overlay/floating window created by an accessibility service. Edit: I want to be able to hide the status bar GLOBALLY (in any app) (made possible by the code below) however when the overlay is shown i stop receiving acessibilityEvents from the listener and the software/hardware back button When the floating view is injected into windowmanager: AccessibilityEvent listener does not receive updates Soft/hardware back key does not

How to identify app when it goes in background in Kitkat (4.4)?

这一生的挚爱 提交于 2019-12-07 15:41:30
问题 I am trying to detect app when it goes in background. Everything works perfect but in New Android Version 4.4(Kitkat) its not working. I am unable to find out what's the issue with Kitkat . It always returns false . public static boolean inBackground(final Context context) { ActivityManager am = (ActivityManager) context .getSystemService(Context.ACTIVITY_SERVICE); List<RunningTaskInfo> tasks = am.getRunningTasks(1); if (!tasks.isEmpty()) { ComponentName topActivity = tasks.get(0).topActivity

Statusbar Translucent with Tint on Kitkat

烂漫一生 提交于 2019-12-07 12:03:26
I need to set Android status bar semi-translucent with a color like tint effect on iOS 7, i've reviewed the documentation, but it only explains how to get a gradient translucent status bar. I've seen the effect on Samsung Galaxy S5 stock dialer app, so I want to perform this effect. This is the effect: For example this is an example app that show an effect similar that I want to make, but instead a gradient to transparent I want the whole status bar with solid color behind the solid semi translucent status bar: https://play.google.com/store/apps/details?id=com.readystatesoftware.systembartint

setColorFilter doesn't seem to work on kitkat

房东的猫 提交于 2019-12-07 08:40:28
问题 I'm attempting to colorize a graphic using setColorFilter . The following code seems to work fine on lollipop, but it seems to have no effect on kitkat, the icon is rendered in it's original colors: Drawable icon = ContextCompat.getDrawable(context, R.drawable.ic_chat_button).mutate(); icon.setColorFilter(context.getResources().getColor(R.color.control_tint_color), PorterDuff.Mode.SRC_ATOP); icon.invalidateSelf(); The mutate and invalidateSelf calls don't seem to have any effect on the

Power button click now calls onStop in Activity on Android KitKat, previously was just onPause?

前提是你 提交于 2019-12-07 04:48:21
问题 So I just realized that onStop is getting called in my Activity when the power button is clicked to turn off the screen. Previously only onPause was called. Was this a KitKat change and are there notes about it anywhere (was it intentional)? Is this a KitKat change or something that specific manufacturers implemented? EDIT: I'll be updating this soon with more info . I think the change was more subtle than I first realized, possibly due to me holding a partial wake lock or listening for GPS

How can one use ViewPropertyAnimator to set Width to a specific value

爱⌒轻易说出口 提交于 2019-12-07 04:27:45
问题 How can I use ViewPropertyAnimator to set my view width? I can scale or translate (see below) but I can't set to a specific width. frame_1.animate().scaleX(5).scaleY(5).start(); but there is no frame_1.animate().width(1024).height(768).start(); 回答1: Try this, support even from Android 2.3: ValueAnimatorCompat exitAnimator = AnimatorCompatHelper.emptyValueAnimator(); exitAnimator.setDuration(TransitCompat.ANIM_DURATION * 4); exitAnimator.addUpdateListener(new AnimatorUpdateListenerCompat() {

Stop SMS from moving to Inbox

佐手、 提交于 2019-12-07 04:25:02
问题 Before Android 4.4 I was able to stop messages from moving to inbox by setting the priority like this <receiver android:name="com.serviceschedular.helperClasses.SmsReceiver" > <intent-filter android:priority="1000"> <action android:name="android.provider.Telephony.SMS_RECEIVED" /> </intent-filter> </receiver> and then abortBroadcast() in onRecieve() messages. However in Android 4.4 we need to define SMS_DELIVER_ACTION in order to make our messaging app as default : Getting Your SMS Apps Ready