Category "android"

Resources$NotFoundException - Failed to open file '...fragment_list.xml': No such file or directory

I am learning MVVM and have run into an issue, and I am getting the following errors: Resources$NotFoundException: File res/layout/fragment_list.xml from xml ty

Set android shape color programmatically

I am editing to make the question simpler, hoping that helps towards an accurate answer. Say I have the following oval shape: <?xml version="1.0" encoding=

Android-android.database.sqlite.SQLiteException: unknown error (code 0): INTEGER data in nativeGetBlob

I am working on database and exporting data from database to xml file but i faced this error in this line byte[] s = cur.getBlob(idx);. before I was using this

Get application Id in XML dynamically

I'm using shortcuts in my application and I have multiple product flavors. I want to get the application Id dynamically for target package. I've given ${applic

Get application Id in XML dynamically

I'm using shortcuts in my application and I have multiple product flavors. I want to get the application Id dynamically for target package. I've given ${applic

How to check for esim eligibility in react-native app?

I need to make a react-native app that checks if the device is suitable for esim or not. I obtain this information https://source.android.com/devices/tech/conn

How to check for esim eligibility in react-native app?

I need to make a react-native app that checks if the device is suitable for esim or not. I obtain this information https://source.android.com/devices/tech/conn

Phone application getting credit card information will pass PCI scan?

I'm building an app to collect payments. I need to get the credit card information from the user, and then using AJAX (to a SSL url) send that info to the websi

Where is android studio building my .apk file?

I've been rebuilding my project from the ground up, so there's been a lot of problems with it. At the moment, everything's working great, except that when I try

Android - when exiting a WebView, the audio still keeps playing

I have this code which works and the only problem with it is that if I leave the WebView and even close the app, and even press power on the phone, the audio fr

Android - when exiting a WebView, the audio still keeps playing

I have this code which works and the only problem with it is that if I leave the WebView and even close the app, and even press power on the phone, the audio fr

ERROR Android emulator gets killed

After updating to Android Studio 2 when I try to run my application and choose an emulator, I wait for the emulator to start and it suddenly gets killed. I can

How do I prevent the soft keyboard from pushing my view up in a fragment?

I have an edittext in my fragment. To prevent soft keyboard from pushing my view up I tried android:windowSoftInputMode="adjustPan" android:windowSoftInputMod

Android long click on tab

I have a TabHost with some tabs, and after doing a long press on a tab, I want to get the position or the tag of the tab which was long pressed, and not the cur

Android and Paypal API integration

I'm trying to integrate the Paypal API to make my app donation based. I have two questions: I can see the button, I click it but it doesn't do anything! (the

What is the use of <permission-group> in android?

From android documentation, Its clear that Using "permission-group" we can create a permission group. Using "permission" element in android manifest file, we ca

Why is it recommended to make the class that extends Room Database to abstract?

What is the reason behind it ? Is it for performance or compulsion? Please Explain

Android Bluetooth: Connect()/Disconnect()

I currently am designing an app which needs to connect to a device, write/read data, and close the connection reliably. Currently I have the write/read solid.

How to display Toast in Android?

I have a slider that can be pulled up and then it shows a map. I can move the slider up and down to hide or show the map. When the map is on front, I can handle

Cannot connect to internet after release build in Android Studio

I created an app using Android Studio. It connects to the internet for various reasons (eg. facebook SDK, Firebase database). It's connecting OK when the app i