android-4.4-kitkat

VP8 Encoding Nexus 5 returns empty/0-Frames

风格不统一 提交于 2019-12-18 07:18:02
问题 I'm trying to encode my camera feed to VP8. The problem is: when I get the frame from the output buffer, the byte array is always different size but all entries are 0. Here's the code where I grab the frame and print it: while (true) { try { encoderIndex = mEncoder.dequeueOutputBuffer(encoderOutputInfo, timeOut); } catch (Exception e) { e.printStackTrace(); } switch (encoderIndex) { case MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED: // something break; case MediaCodec.INFO_OUTPUT_FORMAT_CHANGED: //

java.lang.NoClassDefFoundError: android.support.v4.view.LayoutInflaterCompatHC in Android Studio

前提是你 提交于 2019-12-18 04:47:07
问题 i am new to android studio i am doing one sample application in android studio, when i run the application 5.0 it's working fine but 5.0 below it's throw's this Execption can any one tel what i am wrong here... 08-25 18:17:40.354 28953-28953/com.app E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.support.v4.view.LayoutInflaterCompatHC at android.support.v4.view.LayoutInflaterCompat$LayoutInflaterCompatImplV11.setFactory(LayoutInflaterCompat.java:42) at android

Android 4.4 WebView file chooser not opening?

别等时光非礼了梦想. 提交于 2019-12-17 23:09:51
问题 We are creating an app which uses the webview and will access a page where the user needs to upload a file. We are experiencing problems with Android 4.4 where the file chooser does not open and clicking the upload button causes nothing to happen. This functionality works with earlier versions using the openFileChooser method like so: webview.setWebChromeClient(new WebChromeClient() { //The undocumented magic method override //Eclipse will swear at you if you try to put @Override here // For

ConsumerIrManage.hasIrEmitter() always returns false (API 19)

泄露秘密 提交于 2019-12-17 22:33:08
问题 I call ConsumerIrManager.hasIrEmitter() on my LG G2, but it always returns false . According to the documentation on Infrared transmitters: When running on a device that includes an infrared (IR) transmitter, you can now transmit IR signals using the ConsumerIrManager APIs. To get an instance of ConsumerIrManager , call getSystemService() with CONSUMER_IR_SERVICE as the argument. You can then query the device's supported IR frequencies with getCarrierFrequencies() and transmit signals by

Hide status bar in android 4.4+ or kitkat with Fullscreen

北城余情 提交于 2019-12-17 21:13:00
问题 I'm using following code for hiding status bar with full screen purpose: void HideEverything(){ if (Build.VERSION.SDK_INT < 16) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); } else { View decorView = getWindow().getDecorView(); // Hide the status bar. int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); // Remember that you should never show the action bar if the // status bar is hidden,

Avoiding RejectedExecutionException in Android 4.4 when app uses list

安稳与你 提交于 2019-12-17 18:55:26
问题 In Android 4.4 there seems to be a change in the code that causes list icons to be loaded using AsyncTasks. The result is that many of my users on Android 4.4 get RejectedExecutionException since the queue size limit is exceeded. A clever user at Code Google discovered this, and explained it in this way: ResolverActivity will throw RejectedExecutionException on Android 4.4. I viewed the code of latest ResolverActivity and noticed that in ResolveListAdapter.bindView method it is using new

List of devices support HCE?

ⅰ亾dé卋堺 提交于 2019-12-17 10:34:36
问题 As more and more devices have KitKat, I'm trying to compile a list of devices support HCE. Does anyone have the list? Feel free to add comments to contribute to this list. Below is what I have so far: Notes: Not all KitKat devices support HCE. To detect HCE support, use this code snippet: boolean isHceSupported = getPackageManager().hasSystemFeature("android.hardware.nfc.hce"); Some people reported that KitKat HCE phones has "Tap & Pay" in NFC Setting. I don't know if using "Tap & Pay" as HCE

How to Record Android Screen Video programmatically in KitKat 4.4

假装没事ソ 提交于 2019-12-17 09:30:43
问题 I know this question has been asked so many times and there are so many questions, answers and discussions available. But I don't know what to do and what not to do. I already referred to the links below to get solution with no luck. https://stackoverflow.com/questions/23438767/how-to-record-video-on-kitkat-4-4 https://stackoverflow.com/questions/23185125/i-cannot-screen-record-with-my-kitkat-4-4-moto-x Android KitKat start screenrecord from App screen recorder with kitkat Screen Recording

isValidFragment Android API 19

假如想象 提交于 2019-12-17 08:45:48
问题 When I try my app with Android KitKat I have an error in PreferenceActivity. Subclasses of PreferenceActivity must override isValidFragment(String) to verify that the Fragment class is valid! com.crbin1.labeltodo.ActivityPreference has not checked if fragment com.crbin1.labeltodo.StockPreferenceFragment is valid In documentation I find the following explanation protected boolean isValidFragment (String fragmentName) Added in API level 19 Subclasses should override this method and verify that

Android detect usb storage for kitkat (4.4)

a 夏天 提交于 2019-12-17 06:18:42
问题 I've created a webview app which hosts a website within the app in the assets-directory. I want to update the website via an USBstick inserted in my tablets usbslot. I tried it first with the .MEDIA_MOUNTED broadcast which doesn't work for my android 4.4. Tablet. I've searched for an alternative and found the "MediaScannerConnection". There are several examples here, which didn't help me much, to solve my issue. I'm looking for an easy and clean solution and a little explanation would be nice