Skip to content

Tag: android

Get CameraX final resolution

Just created a camera preview in Android with CameraX with the following configuration: Now, the problem is that such target resolution may not be available, in which case the preview will choose a resolution closed to the requested one. What I’m asking here is a way to know which resolution has effecti…

Unable to migrate android sqllite database

I have been running the onUpgrade method without issues, until this column: I have updated the database version. The above has been simplified to try and make sure that nothing else is causing this column to not be created. Note that if I uninstall the app and reinstall the app, then it runs without issue. Ho…

Copy some values from one ArrayList to another kotlin

I have list: ComplexModel contains (Name,Title,StartDate,Summarry) I want to find better way to create new MutableList from skillsList but the new list have to get only Name and Title from the first.For the moment i`m with this solution but i wonder if there are better way to achieve this. Answer

android.support.constraint.ConstraintLayout class not found

After importing android native ads templates module from https://github.com/googleads/googleads-mobile-android-native-templates I cannot run the app because of the following error Caused by: java.lang.ClassNotFoundException: Didn’t find class “android.support.constraint.ConstraintLayout” on …