I am trying to read the data from an NFC card I have for a project. It is using Mifare classic 1k and has 16 sectors. I am able to connect to the card and I’m trying to read the data (I know the data that I want is in the 2nd sector – 2nd Block). I can scan the
Tag: android
Is it possible to create a ByteArray of ByteArrays as elements in kotlin?
I have some issues with creating a ByteArray var where its elements are also ByteArray, I don’t know is it possible first ? and how to ? Answer A ByteArray is just what it sounds like, an array of bytes. If you want to hold onto multiple byte arrays you can use a generic list or array. Something like th…
Android app client Mutual TLS with java server
I’m trying to send https requests to my server using mutual TLS. The server I got working successfully with TLS. But I can’t figure out how to do this on the client-side (Android app). I use spring on the java server. Requests from android app are made using HttpsUrlConnection(). I managed to be a…
Installing apk that updates the same app fails on Android 10; java.lang.SecurityException: Files still open
Our app downloads an APK from our server, and runs this to upgrade itself. As mentioned in Android 10 – No Activity found to handle Intent and Xamarin Android 10 Install APK – No Activity found to handle Intent, this does not work as previously if the mobile device has been upgraded to Android 10,…
Gradle migration 3.1.4 -> 3.5.1; :app module doesn’t compile; ClassNotFoundException: Didn’t find class on path: DexPathList
I have two applications where I face the same issue while trying to update project target API from 27 to 29. To do this, first I need to update Gradle plugin at least to 3.2.+. Project is building fine with 3.1.4, but as soon as I rise Gradle plugin to: classpath ‘com.android.tools.build:gradle:3.5.1 di…
ERROR: Failed to resolve: androidx.annotation.annotation:1.1.0: Affected Modules: app
i try to add this package androidx.annotation.annotation:1.1.0 to fix some problem but i get this ERROR: Failed to resolve: androidx.annotation.annotation:1.1.0: Affected Modules: app this is my build.gradle what i can do to fix that Answer androidx.annotation.annotation:1.1.0 is not a correct dependancy decl…
Extracting Operation(…); and sub Operation from String using REGEX
I have an issue with a Regex in java for Android. i would like to retreive the first operation (and each sub operations) like in the following samples: “OPERATION(ASYNC_OPERATION,_RFID_ITEM_SERIAL);” “OPERATION(CONCAT,~1261,01,OPERATION(ASYNC_OPERATION,_RFID_ITEM_ID);,21,OPERATION(ASYNC_OPER…
How to disable a button and clear an arraylist?
i have some button and arraylist, my button have condition if(list.isEmpty){ button.setEnabled(false) } and textTotalFinalPrice set value to 0 but in my case , that function actually …
Send spinner data to database
I am trying to send data to database from a spinner I initialize the database like this SPINNER + ” TYPE “; And in insert data method I put it as Type spinner but this line gives me an error contentValues.put(SPINNER, spinner); what should I put there instead of put Answer You are trying to save a…
Android NavigationView vith rounded corners
I am designing a custom Drawer on Android, it must have rounded corners in top and bottom, I am first customizing top side and I find the problem that the background of the shape is not transparent. I have: (source: toile-libre.org) I need to build: (source: toile-libre.org) I would also like some help on how…