android-5.0-lollipop Questions

3

Solved

I'm looking to stop/dismiss a foreground notification for a service for a mediaplayer, much similar to Google's implementation for Google Music. For instance in Google Music, if you are playing m...

4

I have a device manager application and I am trying to use setScreenCaptureDisabled(..) function of DevicePolicyManager class available since API 21. DevicePolicyManager pManager = (android.app.ad...

7

I am writing an app that takes the camera feed, converts it to rgb, in order to do some processing. It works fine on the old camera implementation which uses NV21 Yuv format. The issue I am havin...
Uranalysis asked 28/5, 2015 at 15:28

6

Getting the error whenever I install the app on the device. 03/24 18:56:08: Launching app $ adb push /home/itstym/AndroidStudioProjects/hlthee/app/build/outputs/apk/app-debug.apk /data/local/tmp/u...
Raffaello asked 24/3, 2017 at 13:33

11

Solved

In one of my Activities, I changed the Toolbar color using Palette. But on 5.0 devices using ActionBarActivity the status bar color is the color of my colorPrimaryDark in my activity theme so I hav...
Marotta asked 2/11, 2014 at 17:7

29

Solved

Trying to install my own app from play store, it says "You cannot install this app because another user has already installed an incompatible version on this device" Note - I've uninstalled the de...
Mannerism asked 4/3, 2015 at 11:27

14

I'm trying to make an android launcher. I want to achieve a completely transparent status bar and navigation bar, here is my theme xml file. <resources> <style name="Theme" parent="andro...
Mangum asked 16/3, 2015 at 3:6

25

I am using Google notifications in my app, and until now I have done below in the manifest: <!-- GCM --> <uses-permission android:name="android.permission.GET_ACCOUNTS" /> <!-- GCM ...

28

Solved

The CardView has an attribute card_view:cardBackgroundColor to define the background color. This attribute works fine. At the same time there isn't a method to change the color dynamically. I've ...
Moriyama asked 25/10, 2014 at 9:44

38

Solved

I am getting open failed: EACCES (Permission denied) on the line OutputStream myOutput = new FileOutputStream(outFileName); I checked the root, and I tried android.permission.WRITE_EXTERNAL_S...

5

Solved

I want to disable SELinux at boot time for Android L or 5. The reason is because my daemon is not begin executed on boot when it should due to SELinux problems. I have the following in my init.rc f...

3

I'm using a device running on Android 5.0, the minSdk is 21 and the targetSdk is 22. App description I'm on an app with 2 activities, activity A contains a GridView with pictures and text and ac...

10

In guidelines of Android 5.0, the navigation bar seems customizable: http://www.google.com/design/spec/layout/structure.html#structure-system-bars How can I change the navigation bar color? I woul...
The asked 7/12, 2014 at 21:59

28

Solved

I have been trying to change Material's Floating Action Button color, but without success. <android.support.design.widget.FloatingActionButton android:id="@+id/profile_edit_fab" android:layou...

27

Solved

Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tyczj.weddingalbum/com.x...

9

Solved

I am creating a app lock application. How to get current running task in lollipop? getRunningTaskinfo method is deprecated in lollipop API, then how to overcome this problem?
Herder asked 21/1, 2015 at 11:35

5

Solved

I'm using android:paddingLeft and android:paddingTop to set the padding for the new CardView widget but it doesn't work. I can set the margin for all the controls inside the CardView as a workaro...
Footer asked 22/7, 2014 at 19:31

5

Solved

I am using an activity with a black background. That same activity has a toolbar and a DrawerLayout as well. This white screen makes the look inconsistent. It can become more apparent when there i...
Dotson asked 6/11, 2015 at 7:25

10

Solved

I've seen some SO questions and they gave some possible methods to achieve what I want. For example: Use colorControlHighlight attribute in styles.xml. Here is my styles-v21.xml: <style name...

9

Solved

I am getting data from server and then parsing it and storing it in a List. I am using this list for the RecyclerView's adapter. I am using Fragments. I am using a Nexus 5 with KitKat. I am using...
Haemolysin asked 14/7, 2014 at 15:49

9

Solved

So, I just updated my codebase to Lollipop, and I'm having issues with the Action Bar. I'm using AppCompat and ActionBarActivity, and inflating a custom view. It seems that the custom view no longe...

7

We know that Dalvik uses APK, DEX, and ODEX files. And we know this abbreviation means via AOSP source or Developers site. (like this - https://source.android.com/devices/tech/dalvik/dex-format.ht...
Devise asked 10/2, 2015 at 15:47

9

Solved

I've been using Android Studio 0.8.6 to develop apps and am having problems with the layout preview when using API21. I get the following error: Rendering Problems: The following classes could ...
Polygamist asked 27/10, 2014 at 19:0

4

Solved

I'm trying to receive a list with an array in RecyclerView and get error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setLayoutMa...
Procrastinate asked 17/2, 2015 at 20:49

2

I'm using Activity transitions from a ViewPager (in the calling activity) with a shared element and content transitions as well. I'm getting this crash when re-entering to the calling activity: j...

© 2022 - 2025 — McMap. All rights reserved.