android-5.0-lollipop

How to Implement 'Data Tables' (material design component) in android?

℡╲_俬逩灬. 提交于 2019-12-09 02:20:25
问题 I have gone through this new design specifications https://www.google.com/design/spec/components/data-tables.html#data-tables-interaction How can we implement all these Structure, Interactions in android. I haven't found enough documents describing this implementation. Is this only a design language specification. Any helpful documents? Thanks The official document says that "Data tables usually appear in desktop enterprise products." But I am curious about the implementation. Is it not a

Custom progress drawable not working on Android Lollipop (API 21) devices

天大地大妈咪最大 提交于 2019-12-08 21:36:33
问题 I have a progress drawable which does not work properly on devices running Android Lollipop. Screenshot on M Screenshot on Lollipop circle_percentage_drawable.xml <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="oval"> <solid android:color="@color/colorTranslucentBlack"/> </shape> </item> <item android:id="@android:id/progress"> <rotate android:fromDegrees="270" android:pivotX="50%" android:pivotY="50%"

ProgressBar in ActionBar on Android L Preview

旧时模样 提交于 2019-12-08 16:58:42
问题 Today I started porting an app to Android L preview in order to have it almost ready when the final product launches. One problem I found is that I can't have an indeterminate progressbar on the ActionBar. It doesn't show at all and throws this error on logcat: E/PhoneWindow﹕ Circular progress bar not located in current window decor I'm using this code, which works in <4.4: requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setProgressBarIndeterminateVisibility(true); Is there any

Compatible version of Android JobScheduler - alternative [closed]

谁都会走 提交于 2019-12-08 14:47:11
问题 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 3 years ago . Is there a library or at least some open source example that provides functionality of new Android-L JobScheduler API. It is not to hard to implement my own version (with very limited functionality) but on the other hand it is not trivial either. So to sum it up is there anything that at least can provide subset

Android Lollipop camera issue

雨燕双飞 提交于 2019-12-08 11:16:31
My android application was working fine on all android devices from version 2.3 to 4.4. However, when i updated my Samsung Galaxy S4 to LOLLIPOP and tested the said app, there are a few errors in functionalities such as camera,map etc. Below is the code snippet used in my application to utilize the native camera: protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult( requestCode, resultCode, data); if (requestCode == CAMERA_REQUEST && resultCode == RESULT_OK && null != data) { Bitmap camImg = (Bitmap) data.getExtras().get("data"); } } Here I am

Bluetooth Low Energy avaible devices listview

时光怂恿深爱的人放手 提交于 2019-12-08 11:10:43
问题 I´m working on an app for android 5.0 and upper, and I need to show all the available bluetooth low energy devices on a listview and, after that, when a device is clicked I need its mac adress to be saved and to connect to it. The problem is that it doesn´t even show the available devices. After lots of tries i finally get this code: package com.sma.javier.sma_q.BluetoothLE; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice;

Support vs “real” libraries and “classes could not be found”

人盡茶涼 提交于 2019-12-08 09:19:49
问题 When I try to use the RecyclerView in a test project when Im about to try out Android 5.0 Lollipop, I see the following on Googles site: 1) What puzzles me is that they use the support thing instead of the "real" thing as provided in API 21. I was expecting to not use the support-package as I am running 5.0 on the device, have SDK 21 downloaded and installed. Why cant I just use RecyclerView directly, without using the support...? 2) Classes could not be found In Android Studio, I get this

Add custom layout to ActionBar with Gravity Left?

試著忘記壹切 提交于 2019-12-08 09:12:07
问题 The ActionBar shows a space on the left side of the custom view. I want to set my custom view align left of Actionbar. I'm trying to set getSupportActionBar().setDisplayShowTitleEnabled(false); getSupportActionBar().setDisplayShowHomeEnabled(false); and any other method like setLogo(null),But it's not work. My code is like ABCMainView actionLayout = new ABCMainView(this); //my custom view getSupportActionBar().setDisplayShowCustomEnabled(true); getSupportActionBar().setDisplayShowTitleEnabled

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

冷暖自知 提交于 2019-12-08 06:38:25
问题 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

Properly route non internet Wifi sockets & Cellular Internet request (Android L & M)

北慕城南 提交于 2019-12-08 06:37:50
问题 Is it possible to dedicate a WiFi network (to a device with no internet access) to a socket in an app and keep Cellular network as the default internet connection for the Android device (and other network requests from the app)? (Android 5 & 6) I can easily switch between WiFi and Cellular within the app but the main issue is when WiFi is up, Internet is not accessible anymore for the app and all apps already running on the device (i.e. streaming music, web browser, ...) I have tried to bind