Category "android"

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

Create drawable programatticly in jetpack compose

I want to use rectangle with rounded corner for placeholder in coil in jetpack compose. I need use different colors for placeholder depends on my algorithm. The

Android Changing Action Bar color

I want to change the Action Bar color, but I don't know how to do it. What should I add to change the style? <resources> <!-- Base application theme.

Glide not loading real image and stuck with placeholder

I have a pretty basic load image from server line code: Glide.with(view.getContext()).load(url).placeholder(R.drawable.default_profile).into(view); For some

FirebaseMessagingService Illegal Access

I am using flutter for building application. Recently, I have added firebase analytics to it but now I am experiencing one fatal issue. I am not sure what is ca

How to unrealize a json using GSON? Get an error

The structure of the json that I have stored in a string is: { "0": { "PDate": "2019-02-25 00:00:00.0000000", "DDate": "2019-06-25 00:00:00.000

ClassCastException: android.app.Application cannot be cast to android.app.Activity

I have an activity class along with customlistadapter inside customlist adapter. I have a thread runouithread which give me error msg when i wrap it with ((Act

Cannot find findelementbyandroiduiautomator method for appium android driver

I am using android driver with mobileElement typecast, but I cannot find the findelementbyandroiduiautomator method in my list of methods. All the other methods