2,800 questions
0
votes
0
answers
31
views
Using Android SQLCipher securely in Lollipop without deriving passwords from user's input
I've implemented SQLCipher for Android.
SQLCipher takes as the AES encryption key an string or a byte array, and it's up to the developer to provide it securely.
To do so, I have used the Android ...
0
votes
0
answers
58
views
Crash APK Cardlan QR Reader
i have a cardlan reader
https://es.cardlangroup.com/products/bus-card-reader-and-validator
is androdi 5.3 Lollipop API 22
works process of the apk is this:
scan QR and check internet
then, send the ...
0
votes
0
answers
62
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 ...
1
vote
0
answers
83
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 ...
0
votes
0
answers
230
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 ...
4
votes
1
answer
696
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
&...
1
vote
0
answers
26
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 ...
2
votes
0
answers
605
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
319
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)
...
0
votes
1
answer
808
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 ...
1
vote
1
answer
269
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.
...
0
votes
1
answer
241
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 ...
1
vote
0
answers
132
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
...
0
votes
1
answer
131
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 ...
0
votes
0
answers
288
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 ...
1
vote
0
answers
174
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 ...
48
votes
7
answers
49k
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(...
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. ...
0
votes
0
answers
78
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 ...
2
votes
0
answers
275
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 ...
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 ...
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="...
1
vote
0
answers
310
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(...
1
vote
0
answers
142
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/...
0
votes
3
answers
211
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 ...
0
votes
1
answer
978
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/...
1
vote
0
answers
198
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 ...
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 ...
0
votes
0
answers
731
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 ...
1
vote
1
answer
5k
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 ...
3
votes
0
answers
348
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 ...
0
votes
1
answer
94
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 ...
0
votes
0
answers
63
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 ...
0
votes
0
answers
52
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 ...
2
votes
1
answer
2k
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 ...
3
votes
1
answer
6k
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 ...
0
votes
1
answer
869
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 ...
0
votes
1
answer
87
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 ...
0
votes
1
answer
196
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>(...
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 ...
0
votes
1
answer
233
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 ...
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. ...
0
votes
0
answers
435
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 ...
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 ...
1
vote
1
answer
1k
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-...
1
vote
0
answers
356
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 ...
0
votes
0
answers
390
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 ...
2
votes
0
answers
539
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()
...
0
votes
1
answer
690
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 ...