Questions tagged [android-5.0-lollipop]

Android Lollipop, formerly known as just "Android L", was first shown at Google I/O 2014. The final name was confirmed on October 15th. It supports API Level 21.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

Firebase Cloud Messaging (FCM) not working on Android API 21 devices

I have implemented Firebase on my native android app. Token is getting generated for API 21 and above devices. But I am not able to receive push messages (using data payload) on API 21 devices but ...
CHIRANJIT BARDHAN's user avatar
1 vote
0 answers
60 views

Block the screen from turning on your Android phone

I develop an Android application in Java, using the Level 21 API (Lollipop), which aims to prevent third parties from manipulating the phone to turn on the screen. I would like to point out that I am ...
Etan's user avatar
  • 11
0 votes
0 answers
123 views

Is it possible to clear the android application cache at API 21

Is it possible to write a function to clear the app cache on my app. I know that I can go to app settings and clear it that way but I want to be able to do that within my own app in code when its ...
RentUrApp's user avatar
4 votes
1 answer
473 views

Splash Screen API not showing icon on Android lollipop 5.0 and 5.1

I am using splash screen API , everything is working fine but it doesn't show icon on android 5.0 and 5.1. SplashScreen API Version implementation 'androidx.core:core-splashscreen:1.0.0' Theme.xml &...
U. Manzoor's user avatar
1 vote
0 answers
19 views

Android 5 seems to be ignoring the gravity on a drawable xml

I have a drawable xml that will be used as the background for some views. It will add a border to the view and put an icon on the right hand side. This is working fine on newer Android versions but on ...
casolorz's user avatar
  • 8,516
2 votes
0 answers
399 views

Android - How to run *older* API images on M1 Mac

I know there are a lot of questions about how to run the Android Studio emulator on M1 Macs. It works fine for newer API images (24 and above right now). However, my project currently supports down to ...
adamo-bmx's user avatar
0 votes
1 answer
781 views

PBKDF2 With Sha256 on Android 5

I am making an android app which uses PBKDF2 With Hmac Sha256. I implemented the function but when I test it on android 5.0 device it gives NoSuchAlgorithmException. How can I implement manually ...
computermaniac's user avatar
0 votes
1 answer
247 views

WebView.loadUrl raising UnsupportedOperationException

This exception raising only in android 5.1 (Samsung galaxy J3 2016) Log: Caused by java.lang.UnsupportedOperationException java.util.Collections$SingletonMap$1$1.remove (Collections.java:355) ...
Axbor Axrorov's user avatar
0 votes
1 answer
676 views

Unexpected token error in Android 5 but not in Android 8

I am building an Ionic app that should work in devices with Android 8 and Android 5. The app uses two Cordova plugins that I wrote my self, and it works perfectly on Android 8, but when I try it on ...
VictorEspina's user avatar
1 vote
1 answer
252 views

Push Notification content text not showing on Lollipop

Here is the code for showing push notification: // receiverUid = unique uid for a receiver // notificationUid = unique notification_uid // receiverName, title, body are String variables. ...
Wamiq's user avatar
  • 1,114
0 votes
1 answer
219 views

Parse date from string on Android Lollipop

I have a date string like 2021-02-20 12:24:10 and I need to parse it to Date. I have the solution, which works on Nougat (API 24) and higher, but I need need the solution for Lollipop (API 21). The ...
QuarK's user avatar
  • 1,172
1 vote
0 answers
116 views

Android api 21/22 android version 5 video playing problems, video playing throws error Can't play video

Here is my code. When I run this app on android nexus 4 API 22, it throws me error saying "Can't play this video." However, the audio of video plays. Any help would be appreciated. Thanks ...
Kaustubh.P.N's user avatar
0 votes
1 answer
127 views

Can't create handler inside thread that has not called Looper.prepare()- Spinner in Android-5

Facing this issue in Android 5 while making dynamic UI, Although tried with xml too (working on 6-11). Any help will be appreciated. val spinner = Spinner(context) //ViewFactory.kt:186 val ...
Rohit's user avatar
  • 810
0 votes
0 answers
253 views

Xamarin.Forms: WebView support on Android 5.1

I've developed a Xamarin.Forms.Shell app where I use a WebView to manage appointments. By default, I let the Android minimum Version to 5.0, as I still have an old device on Android 5.1 that I use for ...
Gold.strike's user avatar
  • 1,269
1 vote
0 answers
154 views

Resource not found error for vector drawable in android 5 and 5.1

Hi, I am using binding adapter methods to pass 1 imageUrl and 1 placeHolder drawable in image view like this. and my binding adapter method is like this: and here is my vector drawable: it works ...
Vikas Pandey's user avatar
  • 1,115
46 votes
7 answers
41k views

How to set fullscreen in Android R?

I need to put a screen in fullscreen in my app. For this I am using this code: override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) requestWindowFeature(...
Vitor Ferreira's user avatar
2 votes
1 answer
2k views

How to trust SSL certificates with cross-signed root expired on android <= 5

I work for a company that uses a Comodo/Sectigo SSL certificate. But suddenly our app started throwing this error when sending POST to the server, in versions with android 4 and 5, with Okhttp client. ...
Carlos Cardoso's user avatar
0 votes
0 answers
63 views

is it possible to use google photos in lollipop (sdk version 22)

" I need to open google photos login and download required images in to device ", but ** my device is in lollipop ** . I think google services are available from sdk version 23. is there any ...
venkatesh nani's user avatar
2 votes
0 answers
269 views

Razor-pay failed to show input fields on Lollipop and marshmallow Android SDK

Configuration AndroidApp - com.razorpay:checkout:1.5.13 minSdkVersion 21 targetSdkVersion 29 com.android.tools.build:gradle:3.6.3 on Lollipop and marshmallow it creating crash to solve that I ...
shakil shaikh's user avatar
0 votes
1 answer
1k views

Cordova Android App - Works on Android 7,8,9; Fails on Android 4,5, and 6

This has been a monster of a headache trying to figure out what is going on. I have an android app that I have been developing and maintaining. My latest test devices are on android 9 and bring up ...
Bastien Auxer's user avatar
2 votes
2 answers
2k views

How to change font family of Android Date Picker?

I want to change the font family of the android date picker <DatePicker android:id="@+id/dob_picker" android:layout_width="match_parent" android:layout_height="...
Malik Bilal's user avatar
1 vote
0 answers
243 views

Ripple effect goes out of view's parent area in API21

I have a code for setting a ripple effect as the background of a custom frameLayot. ViewCompat.setBackground(myFrameLayout, getDiscRipple(getContext())); and private Drawable getDiscRipple(...
Elad Benda's user avatar
  • 35.2k
1 vote
0 answers
112 views

clipToPadding attribute ignored on android 5 (API 21)

Does clipToPadding attribute work on API 21? As you can see in the example below it does not. <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/...
Egis's user avatar
  • 5,123
0 votes
3 answers
189 views

Android Lollipop: Cannot include an external layout inside of a GridLayout

I am trying to include an external layout file that contains a GridLayout inside a GridLayout. My code works for API 23+, but does not work for API 21 or API 22 (Lollipop). Below is my code for ...
Adam Lee's user avatar
  • 436
0 votes
1 answer
831 views

android.view.InflateException: Binary XML file line #10: Error inflating class android.webkit.WebView

Since I migrated to Android X, WebView has not worked and the app is constantly shutting down. This is my logcat: I/LibraryLoader: Time to load native libraries: 4504 ms (timestamps 275-4779) I/...
Alireza Ivaz's user avatar
1 vote
0 answers
180 views

SensorEvent with old values

I've been trying to retrieve the number of steps taken in an intervall of 30 seconds. I use the TYPE_STEP_COUNTER sensor and a custom class which implements the SensorEventListener interface. My ...
CRoemheld's user avatar
  • 889
0 votes
0 answers
43 views

Compilation of std::make_shared on final subclass fails in type_traits::__is_empty1 using libcxx lib

final_class is defined as : class final_class final : private A { public : final_class() : A () {}; }; I am using final_class constructor as : auto a = std::make_shared<final_class>(); And ...
akshay dhule's user avatar
0 votes
0 answers
635 views

How to check if the file path is pointing to internal memory (or) sd card in android?

I have a file path to which I will be forming File obj and performing write operation. And I know that starting from Lollipop, you don't have write access to files in sd card and I have to request for ...
AndroidDev's user avatar
  • 1,485
1 vote
1 answer
4k views

Attempt to invoke virtual method 'android.app.Notification androidx.core.app.NotificationCompat$Builder.build()' on a null object reference

I am using Firebase Push notification to send notification to app. Notification is working in Latest android version's but when i tried to test in Lolipop version .When i test the notification app ...
user avatar
3 votes
0 answers
326 views

InsetDrawable not working on API 21 - why?

I'm using the following code in my Android App: InsetDrawable id = new InsetDrawable(context.getDrawable(drawableId), 150, 200, 150, 400); imageView.setImageDrawable(id); It works fine on newer ...
moritzg's user avatar
  • 4,266
0 votes
1 answer
78 views

Android 5 portrait app crashes when going to Recents and rotating

The activities of my app have all the attribute to make them portrait: android:screenOrientation="portrait" The minSdkVersion of the app is 21. With Android 5.0 phones the app crashes if the device ...
user11857736's user avatar
0 votes
0 answers
59 views

Get Top activity from service

I'm developing custom launcher for terminal (with package name com.my.launcher.Launcher, Terminal OS is Android 5.1.1). And I want to show password dialog to secure activity. For that I launch service ...
Bakhrom Achilov's user avatar
0 votes
0 answers
49 views

Broken view clipping/padding on API 21+

android API 19: android API 21: (without any margin) same results on emulator and real device, in appcompat and androidx. How can i get picture like on KitKat, but on Lollipop devices? Because ...
SupinePandora43's user avatar
2 votes
1 answer
1k views

How to fix 'dlopen failed: cannot locate symbol "EVP_camellia_128_cbc"' when loading libssl.so on Android 5.x

I tried to build 64bit (arm64) Openssl v1.1.1b and add it to my app as shared library (libcrypto.so and libssl.so). I built standalone toolchain with --arch arm64 and --api 21 arguments, then I built ...
Lohi's user avatar
  • 547
3 votes
1 answer
5k views

Android deep link always opening in the Browser first and then the correct activity

On Android version 5.0 we are using Deep links since App links work only from Android 6.0 onwards. We are facing an issue on these devices: when the intent is launched from the Host app first the link ...
AndroidDev's user avatar
  • 5,213
0 votes
1 answer
776 views

AlarmManager not triggering repeated alarm on proper time

I am developing an application for Android Lollipop and KitKat devices. The application needs to call an API in every predefined interval (Based on the interval received from server). I am doing this ...
droidev's user avatar
  • 7,352
0 votes
1 answer
84 views

How to Convert from List to String from an Array that gets it's stuff from previous activity

I'm trying to convert the specific item on the list after clicking it, it converts to a string, and then sends that information back to the MainActivity. Having trouble converting the information to ...
user avatar
0 votes
1 answer
190 views

Adding a button to each item in an array

My code records the current Longitude / Latitude and puts in an array and you can view all the history of these recordings in a GPSHistory Activity. btnGPSHistory = FindViewById<Button>(...
user avatar
2 votes
3 answers
1k views

Is there a way to download over LAN using DownloadManager in android?

I'm developing an app that needs to play a list of videos on an android TV. At first, I play the video by streaming it while also starting a download for the video. When a specific video is already ...
rminaj's user avatar
  • 449
0 votes
1 answer
230 views

Rounded rectangle image selector shape is not showing properly in lolliop

I am trying to put selector on image which is rectangle it's working fine above lollipop but not in lollipop and lower version of it. i used cardview with two images one with imageselector and one ...
Rucha Bhatt Joshi's user avatar
0 votes
2 answers
3k views

java.lang.ArithmeticException: divide by zero

Having a lot of trouble with this. It runs on Android Nougat and Marshmallow but on Lollipop it won't work(mainly, my fireTV). I'm getting the java.lang.ArithmeticException: divide by zero problem. ...
James H's user avatar
  • 562
0 votes
0 answers
389 views

custom kernel for msm8909

Need help. I have a ZTE blade a460 phone with broken screen and i want to make it something usefull like a nfs server. I want a custom compiled kernel so, i extract the config from the original kernel ...
lakis's user avatar
  • 21
1 vote
1 answer
2k views

How To Get Ionic 4 To Work On Android 5.1

I currently just created an Ionic 4 application and when i test on my android 5.1 device nothing shows, i go to google to find out what the issue could be and it turns out ionic 4 has a problem ...
marvin ralph's user avatar
  • 1,100
1 vote
1 answer
949 views

Regex pattern error on API 21(android 5) and below

Android 5 and below getting error from my regex pattern on runtime: java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 4: (?<g1>(http|ftp)(s)?://)?(?<g2>[\w-...
Alireza's user avatar
  • 183
1 vote
0 answers
318 views

Elevation not shown in PopupMenu in Android

Elevation is not working in PopupMenu. I tried to implement the elevation for PopupMenu using styles.xml but not working. I want to implement shadow for PopupMenu Screenshot for an issue Implemented ...
Muthukumar S's user avatar
0 votes
0 answers
364 views

OpenGL ES 2.0 not drawing in Android Lollipop (5.1)

I'm new in openGL ES programming, so I followed the guide provided by Android Developers site. It shows how draw a simple green triangle that rotate on the screen following the touch point. I tried it ...
Luca Murra's user avatar
  • 1,858
2 votes
0 answers
496 views

API changed error during AOSP build. How to fix?

Im trying to build AOSP(lollipop) using openjdk 1.8 and during make im getting the following errors. prebuilts/sdk/api/22.txt:24965: error 9: Removed public constructor MediaStore.Audio.Genres() ...
playmaker420's user avatar
  • 1,527
0 votes
1 answer
598 views

Cant get circular progress bar to display when using ScrollView

Currently I'm trying to get the custom ring progress bars to display properly on an android sdk level 23 and below. They work perfectly on android SDK 25+. Im using a custom library for circular ...
Ben Tran's user avatar
0 votes
1 answer
37 views

Apparent Delay Between Permissions Callback and Permissions Granted

So, this is a Lollipop app (5.0) which has a boot receiver. The boot receiver starts an activity (SplashActivity.class). The purpose of SplashActivity is to get all necessary permissions prior to ...
mike morris's user avatar
0 votes
0 answers
172 views

Launch Invisible Activity To Obtain Permissions For Service

thanks to everyone for reading. here's an application that has a boot-receiver so it launches upon starting android device: public class BootReceiver extends BroadcastReceiver { @Override public ...
mike morris's user avatar

1
2 3 4 5
56