Category "android"

Cmake : Building .dylib to test Android JUnit tests

I am working on Android native project using C++ code built using CMake. Currently my app is running fine and native lib(.so) is successfully loaded using Syste

Problem : java.lang.NullPointerException: Argument must not be null

I have a problem in this line : public class ShowAllAdapter extends RecyclerView.Adapter<ShowAllAdapter.ViewHolder> { and in this line : Glide.with(conte

How do we open google map from a button inside onBindViewHolder? [duplicate]

I would like to open google map on button click. The code below works but when I went back to the app, it throws FATAL EXCEPTION. The button i

remove background from Bottomsheet android studio

I have created bottomsheet dialog which work great when it is in portait mode but it shows white backgrund when screen in landscape mode attaching the error ima

How can I set the background colour of views according to theme?

How can I set the background colour of views according to theme? For example, in light theme a background colour of a view can be a light shade of gray, but in

Google.Drive.Api Oauth 2 Credientials in Xamarin android application

I am trying to read a file from google drive using my xamarin android application using google.drive.api, the latter requests Google Oauth2 ID credentials for A

What happens to old app data written in another language when you release a new version of the App written in Flutter?

So I have my app released which was written in another older framework (non flutter). I've since rewritten the app from scratch in Flutter. The app, while func

Android Manifest error after creating a Flutter Application

Everytime i create a flutter application using Android Studio, i always have errors/red lines in the Android Manifest file. Any ideas why this keeps happening?

Android 12 Bluetooth Permissions

I'm trying to connect to a device using BLE, but I'm getting an error on Android 12. I've tried a lot of different methods, but I couldn't find any solution. Ho

Hilt Instrumentation Fragment tests failing - Unable to resolve activity for: Intent

I refactored from Dagger2 to Hilt. Everything is fine except my Fragment Instrumentation tests. They are failing with this error: java.lang.RuntimeException: Un

SELinux blocks execution of native executable on Android

I am trying to run my own native executable. The code looks like this: String[] command = {"/data/user/0/org.smowsoft.systeminformation.nativelib.test/files/smo

StorageException has occurred. User is not authenticated

The error is risen when I try to upload to the storage. I've already implemented authentication in my app, and am having no problem with creating a user and aut

Barcode Scanner - (Data Wedge) TC26 device reads data twice in EditText

I am working on a barcode scanner using DataWedge API's for TC26 device. I can see sometimes the value in EditTextBox the value is shown twice randomly. For exa

How to show 'NEW' tag after updating category recyclerView

How can I show NEW tag after updating category from database. Like this image Only after if my category get Updated and show for 24 hrs. This is my Adapter of

Sorting ArrayList<> based on Lattitude and Longitude in Android

I Have a requirement that has ArrayList that contains Latitude and Longitude (randomly).Is there any way so that I can get this list in a optimized way. Google

How to transfer external pages in Web View (Android Studio) to Chrome

I wrote a simple program and used webview. My problem is that links to pages that do not follow the https://irunisenter.com rule also open in the program. It's

Cant create an alarm in Xamerin Android C#

Copied my teacher's simplified code in order to see if the code i wrote was wrong or somthing yet even her's isnt working. Here is it: private void BtnAlarm_Cli

I am trying to run my flutter app and I am getting these errors?

here is the error message The current Dart SDK version is 2.13.4. Because test >=1.16.0-nullsafety <1.16.0-nullsafety.8 requires SDK version >=2.10.0-0

I want to change state of the component without reloading metro in react-native

so basically i have bunch of apps in my application as you can see in image In my app it check if application is installed or not, if its installed its shows op

Android: NEED_REMOTE_CONSENT Service: oauth2: https://www.googleapis.com/auth/drive.file

We have an Android app (minSdkVersion 23 - targetSdkVersion 32) that is custom build for a customer. It uploads files to their Google Drive. It worked fine for