android-4.4-kitkat

How do I maintain the Immersive Mode in Dialogs?

廉价感情. 提交于 2019-12-17 05:25:29
问题 How do I maintain the new Immersive Mode when my activities display a custom Dialog? I am using the code below to maintain the Immersive Mode in Dialogs, but with that solution, the NavBar appears for less than a second when I start my custom Dialog, then it disappears. The following video explains the issue better (look at the bottom of the screen when the NavBar appears): http://youtu.be/epnd5ghey8g How do I avoid this behavior? CODE The father of all activities in my application: public

How do I maintain the Immersive Mode in Dialogs?

自古美人都是妖i 提交于 2019-12-17 05:25:05
问题 How do I maintain the new Immersive Mode when my activities display a custom Dialog? I am using the code below to maintain the Immersive Mode in Dialogs, but with that solution, the NavBar appears for less than a second when I start my custom Dialog, then it disappears. The following video explains the issue better (look at the bottom of the screen when the NavBar appears): http://youtu.be/epnd5ghey8g How do I avoid this behavior? CODE The father of all activities in my application: public

How to Print PDF using Android 4.4 Printing framework [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-17 03:53:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . How to print already downloaded PDF using Android 4.4 printing framework? I viewed the developer documentation. but no luck. Any example would be helpful 回答1: After spend some hours on google i found the solution. PrintManager printManager = (PrintManager) this.getSystemService(Context.PRINT_SERVICE); String

ANDROID CAMERA: getParameters failed (empty parameters)

梦想与她 提交于 2019-12-14 00:29:00
问题 Hi I am getting this issue only in OS versions below lollipop, searched a lot for this bit didn't found the right solution. I think the issue is with OS version Its working fine in 5+ my piece of code is private void setCameraPhotoQuality(Camera camera) { final Camera.Parameters parameters = camera.getParameters(); parameters.setPictureFormat(PixelFormat.JPEG); if (configurationProvider.getMediaQuality() == Configuration.MEDIA_QUALITY_LOW) { parameters.setJpegQuality(50); } else if

Android 4.4.2 creates a black mask outside view object boundary, only during full Java code animations

给你一囗甜甜゛ 提交于 2019-12-13 15:52:22
问题 Really need some help on this... Please take a look to this simple FadeIn animation of an ImageView, using full java code. Recreate it using API's 21, 18, 17, 16.. works perfect. Now try it with API 19 (android 4.4.2), funny mask created (see explanation bellow): public class _ExampleAnimationNotWorking extends Activity { Common common; // my own class to read assets FrameLayout fl; ImageView iv; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this

Please tell us the minimum API for using VrVideoView

二次信任 提交于 2019-12-13 08:37:50
问题 I tried to run an application made with VrVideoView on two smartphones (galaxy grand max (android4.4.4) & galaxy j5 2017 (android 8.1)). My app worked fine in android 8.1, but it did not work well in android 4.4. Although the video was played in android 4.4, It did not respond to my smartphone movement and showed front view. So I want to know the minimum specifications for VrVideoView to work properly. Thanks 回答1: Minimum Android API level for running Google-VR-SDK is 19 but your problem is

How to block home button on Android 4.4?

佐手、 提交于 2019-12-13 07:33:00
问题 On Android 4.4 I develop a lockscreen app, but in lockscreen activity I can't block home button. Can anyone solve it? 回答1: Override the onKeyDown function of the activity and then catch the event for the home button. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_HOME)) { Toast.makeText(this, "You pressed the home button!", Toast.LENGTH_LONG).show(); return true; } return super.onKeyDown(keyCode, event); } 来源: https://stackoverflow.com

How can I use relative urls in ajax requests within trigger.io apps on Android 4.4 (kitkat)?

痞子三分冷 提交于 2019-12-13 06:00:32
问题 My trigger.io-bundled jquery-mobile app works great on both android < 4.4 and iOS devices but refuses to load any relative pages, scripts etc. on android 4.4 once jquery mobile loads. Afaik, jqm turns all links to ajax requests, which suggests ajax requests are broken. WebView has been changed to be Chromium 30-based in kitkat and the migration guide mentions url handling as an area of breaking changes (second link below). https://developer.android.com/about/versions/android-4.4.html https:/

NFC host card Emulation(HCE)

半世苍凉 提交于 2019-12-13 04:22:56
问题 I'm actually trying to emulate a NFC card with my android smartphone(on 4.4) and send this information to my NFC reader witch is connected to my Java Application. The goal is to catch an unique ID but my NFC reader do not support peer-to-peer. So the example on https://developer.android.com/guide/topics/connectivity/nfc/hce.html do not work. Thanks for your assistance 回答1: Peer-to-peer mode and Android HCE are two different things. In order to access devices with Android HCE, your reader only

Dynamic viewport with js Cordova or Phonegap Android KitKat 4.4

我只是一个虾纸丫 提交于 2019-12-13 02:20:17
问题 I'm using the following code to resize/scaling my app to the screen size of the any device (iOS, Android): <head> <meta charset="utf-8"> <title>App Title</title> <meta id="Viewport" name="viewport"> <script src="plugins/jquery-1.10.2.min.js"></script> <link rel="stylesheet" href="css/main.css" /> <script src="plugins/main.js"></script> <script src="cordova.js"></script> <script type="text/javascript"> $(function(){ if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {