android-5.0-lollipop

How to exit from Screen Pinning - Android 5 (Emulator)

混江龙づ霸主 提交于 2019-12-07 08:37:19
问题 Screen Pinning (as mentioned on this page) is a new feature introduced in Android 5 (Lollipop) which lets its users to temporarily lock only one Activity to the screen. All other notifications are hidden when screen pinning is activated. Following steps can be taken to activate Screen Pinning Users can enable screen pinning in Settings > Security > Screen Pinning, and select the tasks they want to pin by touching the green pin icon in the recents screen. And to exit from Screen Pinning user

CameraManager on devices running lower than Lollipop

喜夏-厌秋 提交于 2019-12-07 06:09:13
问题 I am facing a problem where I am using both the Camera (lower than Lollipop devices) and CameraManager class (Lollipop and above devices). The devices that run lower than Lollipop crashes, I believe this is because of the import android.hardware.camera2.CameraManager; part. How can I make this package com.example.DeviceCommands; import android.annotation.TargetApi; import android.content.Context; import android.content.pm.PackageManager; import android.hardware.Camera; import android.hardware

Root Shell command to Clear DNS Cache in Lollipop?

こ雲淡風輕ζ 提交于 2019-12-07 04:51:17
问题 I've searched high and low for an answer to this with no luck. Please forgive me if this has been addressed before. Until a month ago I was on KitKat on an old phone. Then I upgraded to the Nexus 6 with Lollipop. I'm currently on Android 5.1.1. When I was on KitKat on my old phone, I was able to run the shell command with root below to clear my phone's DNS cache: ndc resolver flushdefaultif Whenever I would run that command on KitKat, it would always output: Resolver command succeeded. But

BluetoothLeScanner could not find callback wrapper

拜拜、爱过 提交于 2019-12-07 04:23:08
问题 Because of I had problems with Bluetooth on Android Lollipop, I have tried to change the scanner method. So I have tried to use the new package. In the previous version, I called startScan(mLeScanCallback) and everything works but now, when I call startScan(mScanCallback) I have the error: "D/BluetoothLeScanner: could not find callback wrapper". No devices are found and the ListAdapter, I use to show the devices, is empty. The comment lines are the previous code (and it worked!). This my code

Android studio not letting me install the Android SDK platform

送分小仙女□ 提交于 2019-12-07 03:40:13
问题 Everything was working fine until I imported Esclipse Lollipop examples and the following errors showed up 回答1: The project you imported from eclipse is probably using an older version of the android SDK. Check the API version in the project. Typically, clicking the "Install missing platform(s) and sync project" works but seems like Android Studio isn't able to connect to the internet. There are some security restrictions that Mac OS X places on any application trying to connect to the

VectorDrawable: Android loads xhdpi PNG's instead of the vector resource

巧了我就是萌 提交于 2019-12-07 03:32:31
问题 I'm trying to use a VectorDrawable on API21, but Android loads the PNG resource from xxhdpi folder instead. My current res structure as follows: res drawable-xxhdpi test_icon.png drawable-21 test_icon.xml And my XML layout: <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/test_icon"/> Are there any other ways to solve this? From my understanding Android will always pick the PNG resource, but if that's the case, how one can use

Android Spinner not working on Samsung Devices with Android 5.0

梦想与她 提交于 2019-12-07 02:32:20
问题 I'm using a custom Spinner widget with the code below. Everything works fine on most devices except on Samsung's devices with Android 5.0. On click the Spinner should display a list of values but that doesn't happen. On emulators and others brands devices with Android 5.0 it works fine. Has anyone faced a similiar isse or have any idea of what might be happening? xml <?xml version="1.0" encoding="utf-8"?> <Spinner android:id="@+id/_combo_spinner" android:layout_width="0px" android:layout

AppCompat v21 Toolbar changing logo size

陌路散爱 提交于 2019-12-07 01:06:11
问题 I am migrating to the new Toolbar feature in appcompat v21 from the previous action bar. I still want to keep the logo on the top left part of the actionbar (toolbar). For doing I added in my layout the support toolbar and I created a new thene for it. app:theme="@style/NewToolBarStyle" I am adding the log programmatically as there is some logic in the app for this. actionBar.setLogo(R.drawable.myicon); Referring to my new style (empty for the moment): <style name="NewToolBarStyle" parent="

Slow H264 1080P@60fps Decoding on Android Lollipop 5.0.2

我是研究僧i 提交于 2019-12-06 22:17:37
I'm developing a JAVA RTP Streaming App for a company project, which should be capable of joining the Multicast Server and receive the RTP Packets.Later I use the H264 Depacketizer to recreate the a complete frame from the NAL FU (Keep append the data until End Bit & Marker Bit set ) I want to decode and display a raw h264 video byte stream in Android and therefore I'm currently using the MediaCodec classes with Hardware Decoder configured. The Application is Up and running for the Jeallybean (API 17). Various Resolutions which I need to decodes are : 480P at 30/60 FPS 720P/I at 30/60 FPS

file path return null always in lollipop android

懵懂的女人 提交于 2019-12-06 21:56:24
问题 this is my code when i'm getting image from internal storage (gallery). In lollipop file path return always null. if (requestCode == PICK_IMAGE) { if(resultCode == RESULT_OK){ //image successfully picked // launching upload activity Uri selectedImage = data.getData(); String[] filePathColumn = { MediaStore.Images.Media.DATA }; Cursor cursor = getContentResolver().query(selectedImage,filePathColumn, null, null, null); cursor.moveToFirst(); columnindex = cursor.getColumnIndex(MediaStore.Images