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
0votes
0answers
8views

android notification works fine on level 29 but not works on api level 22 (5.1)

I want to send a simple notification from an android app. I have read the documentations and just copied from documentation. it works fine on newer versions such as api level 29 but when I test it in ...
user avatar
0votes
0answers
43views

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 ...
user avatar
0votes
1answer
148views

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 ...
user avatar
0votes
1answer
65views

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) ...
user avatar
0votes
1answer
225views

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 ...
user avatar
0votes
0answers
10views

is there a way to make latest android studio to build app that will run on android 5.0 lollipop

I have successfully build the app both debug and release apk. I choose 21 as the minSDK but the release apk didn't install on the android 5.0 phone with the error parsing package. the debug apk run ...
user avatar
1vote
1answer
135views

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. ...
user avatar
  • 824
0votes
1answer
150views

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 ...
user avatar
  • 872
1vote
0answers
69views

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 ...
user avatar
0votes
1answer
53views

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 ...
user avatar
  • 837
0votes
0answers
174views

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 ...
user avatar
  • 1,121
1vote
0answers
70views

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 ...
user avatar
29votes
7answers
23kviews

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(...
user avatar
2votes
1answer
1kviews

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. ...
user avatar
0votes
0answers
40views

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 ...
user avatar
2votes
0answers
214views

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 ...
user avatar
0votes
1answer
699views

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 ...
user avatar
1vote
1answer
998views

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="...
user avatar
1vote
0answers
106views

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(...
user avatar
  • 32.7k
1vote
0answers
48views

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/...
user avatar
  • 4,502
0votes
3answers
111views

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 ...
user avatar
  • 312
-1votes
1answer
629views

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/...
user avatar
1vote
0answers
102views

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 ...
user avatar
  • 848
0votes
0answers
39views

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 ...
user avatar
0votes
0answers
415views

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 ...
user avatar
  • 1,129
1vote
1answer
3kviews

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
3votes
0answers
233views

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 ...
user avatar
  • 3,896
0votes
1answer
54views

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 ...
user avatar
0votes
0answers
37views

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 ...
user avatar
0votes
0answers
41views

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 ...
user avatar
2votes
1answer
888views

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 ...
user avatar
  • 537
3votes
1answer
3kviews

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 ...
user avatar
  • 4,483
0votes
1answer
437views

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 ...
user avatar
  • 7,054
0votes
1answer
58views

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
0votes
1answer
83views

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
2votes
3answers
821views

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 ...
user avatar
  • 384
0votes
1answer
200views

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 ...
user avatar
0votes
2answers
2kviews

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. ...
user avatar
  • 512
0votes
0answers
309views

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 ...
user avatar
  • 21
1vote
1answer
2kviews

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 ...
user avatar
1vote
1answer
600views

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-...
user avatar
  • 173
1vote
0answers
187views

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 ...
user avatar
0votes
0answers
287views

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 ...
user avatar
  • 1,710
2votes
0answers
424views

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() ...
user avatar
  • 1,725
0votes
1answer
452views

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 ...
user avatar
0votes
1answer
24views

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 ...
user avatar
0votes
0answers
131views

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 ...
user avatar
4votes
1answer
207views

Application gets crashed while using KeyGuardManager below Android L

KeyGuardManager works fine above android L, but it throws exception in Android L and below. I am using below function: @RequiresApi(api = Build.VERSION_CODES.M) private void createKey() { ...
user avatar
  • 2,431
0votes
1answer
888views

textColor override textColorPrimary and textColorPrimaryDark

I have applied a theme to my app but when I use textColor properties it override all other properties like textColorPrimary. <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"...
user avatar
  • 32.5k
2votes
0answers
115views

Android app with fragment in lollipop version not working done but works in another version

I previously changed API from 21 to 26, then changed Android version 4 to version 7. When running the application on Android Lollipop I did not get an error but the application did not run properly. ...
user avatar

15 30 50 per page
1
2 3 4 5
56