Everything is working fine below Android Q. so now this method "Environment.getExternalStorageDirectory()" is deprecated. And I’m getting crash on this method at Android Q and R. Can anyone help me to fix this? if (isExternalStorageDocument(uri)) { val docId = DocumentsContract.getDocumentId(uri) val split = docId.split(":").toTypedArray() val type = split[0] if ("primary".equals(type, ignoreCase = true)) { return ..

Read more

After I changed my application with fabric integration to firebase Crashlytics, the application started to crash on HMS devices and gives an error as follows. I am not having any problems with Google Play devices. I changed the google-service.json and I could follow the crash information afterwards. Does anyone have any comments? ——-Gradles—— (actual firebase ..

Read more

I’m a beginner tiring to develop a app in kotlin using laravel/sanctum api. Right now i stock in login, because all time that i try to call LARAVEL_URL ="http://10.0.2.2/venturiAPI/public/api/login" MainActivity.kt mServiceV.login(email,password,deviceName).enqueue(object : Callback<String>{ override fun onResponse(call: Call<String>, response: Response<String>) { Log.d("ErrorBody response", response.errorBody().toString()) Log.d("Body response", response.body().toString()) Log.d("Raw response", response.raw().toString()) Log.d("message response", response.message()) Log.d("Headers response", response.headers().toString()) ..

Read more

I have a Custom HeaderView and also a RecyclerView. The Visibility of the RecyclerView is handled Programmatically based on network load/refresh. Below is a sample of my layout. <androidx.constraintlayout.motion.widget.MotionLayout android:id="@+id/motionLayout" android:layout_width="match_parent" android:layout_height="match_parent" app:layoutDescription="@xml/fragment_list_scene" android:background="#EAF4FF"> <View android:id="@+id/topColorBar" android:layout_width="match_parent" android:layout_height="4dp" android:layout_gravity="top" android:background="@color/colorAccentSecondary" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <com.google.android.material.appbar.AppBarLayout android:id="@+id/appbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginStart="6dp" android:layout_marginLeft="6dp" android:layout_marginTop="16dp" android:background="@android:color/transparent" android:theme="@style/Theme.Moniepoint.AppBarOverlay" app:elevation="0dp" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" ..

Read more

class RetailerModel: BaseResponse { var customFields = List<CustomFieldsModel>() } class CustomFieldsModel: BaseResponse { @objc dynamic var params : ParamsModel? } class ParamsModel: BaseResponse { var options = List<String>() } I’m using realm to get data and RetailerModel has an object of CustomFieldsModel and CustomFieldsModel has an object of ParamsModel and ParamsModel contains the array on ..

Read more