Is there a way to convert image to 3d model?
we are planning in developing an app that allows users to move an item from one place to another. the items that they could use are items that they physically have. so i am planning to add a feature wherein the user can take picture of it and the application could turn it into a 3d model.
How to close activity from fragment on back pressed?
My MainActivity on start opens SignInFragment, SignIn after succesful auth opens MainFragment. How can I close MainActivity from these two fragments on back pressed? When I tried to add back pressed callback into needed Fragment, it’s closing MainActivity from every fragment, instead of only that one. As well I can’t use popBackStack, since Activity isn’t in BackStack. Is there’s correct sollution to close Activity from needed fragment on back pressed?
How can I emulate pressure on the UI of Android device and get ANR?
I need to test some of my code but I need to emulate some high pressure on the main thread so the app goes ANR. And I will have to handle that. How can I achieve it with code?
It fetched the last second call duration instead of last call duration and in some devices its working fine
@SuppressLint(“Range”) private suspend fun lastCallDetail(): String { val delayDuration = if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) 3000L else 2000L delay(delayDuration) var callDuration = “0” try { val cur: Cursor? = contentResolver.query( CallLog.Calls.CONTENT_URI, null, null, null, CallLog.Calls.DATE + ” DESC limit 1;” ) if (cur != null) { while (cur.moveToNext()) { callDuration = cur.getString(cur.getColumnIndex(CallLog.Calls.DURATION)) break } cur.close() } […]
Array to get 7 inputs from user – KOTLIN
I need to make an app that allows the user to enter their screen time for the morning and afternoon along with the date their putting in the entry and notes of the day. They must enter the dates and screentimes like this over the course of a week only – 7 days…. how do i go about them storing it in arrays to call it on the next screen where i must display the average screen time for the week.
how to add items in cart in android studio in kotlin language
there are items in main activity and every item has a add to cart button.
how can i add those items from the main page to the cart page using that button.
main activity page
cart page image. here the items should add after clicking on “add to cart” button
I’m getting an error when creating a Kotlin project in Android Studio
I am new to learning Android Studio. I installed the IDE and every time I create a new project, I get an error. I tried changing the Gradle version, but it didn’t work. I searched in several places and couldn’t find a way to solve it. I want to fix it so I can learn, but I feel stuck and don’t have acquaintances who program Android to help me. Here are the errors that appear:
Drawer layout in android studio
Im trying to use 3 menus and for that 3 drawer layouts, but only the one in the activity_main is working. do i need to have every drawer in the activity_main or im doing something wrong?
How do I determine what Fragment or View is responsible for my AppCompatImageButton?
I have a button (AppCompatImageButton) defined inside a toolbar layout (androidx.appcompat.widget.Toolbar). The toolbar is visible throughout the app. But I’m trying to reference the button in a Fragment to set the listener but the button is null
val myButton = aView.findViewById<View>(R.id.my_button_id)
Error when executing test command per line, after updating project
I have a project that has several modules.
In the last few days I decided to update the project, after updating gradlew, libs, I discovered that my test commands stopped working.
I think it’s a problem with my jacoco, I can’t confirm it.