Category "android"

Is there any difference, if I init AES cipher, with and without IvParameterSpec

I was wondering, is there any difference, if I init AES cipher, with and without IvParameterSpec? With IvParameterSpec SecretKeySpec skeySpec = new SecretKeyS

Automatically scroll to bottom of RecyclerView

I have a fragment that has a RecyclerView inside its layout file. The RecyclerView holds messages in a chat. So naturally, I need the RecyclerView to scroll to

Xamarin forms : Stop page being accessible from hardware back button

I am using xamarin forms prism. Quick info : I have a page that contains information, this page the user can delete along with its information, this page is an

Android Data Binding: How to avoid "cannot find the KaptTask" warning

I have a large Android project with multiple library modules. They all use Kotlin, and many have data binding enabled. The project and all modules build and run

How to emulate TrustZone in QEMU?

I'm trying to emulate TrustZone features in Qemu. I've found two links that seems explain this process. The First Reference doesn't attach the image kernel tha

java.lang.VerifyError: Verifier rejected class [0x25] tried to get class from non-reference register v12 (type=Imprecise Constant: 127)

crash after remove "-dontshrink" in proguard-rules.pro log: java.lang.VerifyError: Verifier rejected class com.xxx.activity.XXActivity: androidx.loader.content.

Android Studio gradle takes too long to build

My Android Studio project used to build faster but now it takes a long time to build. Any ideas what could be causing the delays? I have tried https://stackover

Responsive Design: Everything shrinks when mobile keyboard is active

There are many screen resolutions in browsers nowadays, so using px in my CSS sizes isn't actually a good idea. I adopted and used vh in substitution for px sin

Android method performance suddnely slow after upgrade from Marshmallow to Nougat

I have been developing a game, using a Samsung Galaxy S6 running Marshmallow as one of my development devices. After the phone upgraded itself to Nougat, a met

Convert indefinitely running Runnable from java to kotlin

I have some code like this in java that monitors a certain file: private Handler mHandler = new Handler(); private final Runnable monitor = new Runnable() {

Android Studio is giving errors and warnings after enabling view binding. How to fix?

I am getting errors after i enabled view binding in my project. I have tried resyncing the project, invalidating cache. My app gradle file: apply plugin: 'com

Android method performance suddnely slow after upgrade from Marshmallow to Nougat

I have been developing a game, using a Samsung Galaxy S6 running Marshmallow as one of my development devices. After the phone upgraded itself to Nougat, a met

How can I use the singleton pattern in an Android project? [closed]

I know about singleton, but I can't use it in an Android project. I am a beginner in Android. How and where can we use singleton in an Android

Flutter - getApplicationDocumentsDirectory() : How to get the path in android and iOS

Directory tempDir = await getTemporaryDirectory(); String tempPath = tempDir.path; In android native code, I use getCacheDir() How do i get the getApplicatio

This Error Force close my app when I'm inspecting my table : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x10

I have table in my application and I'm Running my app on Huawei y9 and this error pops up after a 30 sec and force close my application. I link my other questio

Android Google map Cluster Item marker with dynamic image URL - overwrite URL with all marker

In my app having cluster on map, Top/Main cluster marker show total marker count, click on that show all sub cluster item marker. In Cluster item(Sub cluster m

com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 403

I have recently added fabric plugin in my android studio, but i am not finding twitter login option on that plugin. When i search on google then i found one qu

Get filePath for Recents,Downloads,Images from Uri of ACTION_GET_CONTENT Intent android

I am invoking image picker in my android app using intent ACTION_GET_CONTENT. In onActivityResult() I get Uri using data.getData(). Now I am using an already ex

How to move Google Map marker automatically as driver is moving

I'm trying to figure out how we can track driver position on Google map as he is moving. Here's my code: public class TrackDriverActivity extends AppCompatActiv

CardView remove border

I want too remove a border on my cardView. I try set elavation to 0 dp , app:cardPreventCornerOverlap to false and app:cardUseCompatPadding to true , but I can