I’m working on a plugin for Gradle in android project. I use Transformation Api for manipulate with byte code across compilation and for this purpose I choosen Javassist. My question related to this library. Before manipulate byte code I need determine which type has this class. For example, if some ctC…
Tag: android
shared image file in Kotlin android studio
I have an application in which I try to share a photo, but when you share the application it crashes. log: Answer The exception raised is FileUriExposedException is caused by The exception that is thrown when an application exposes a file:// Uri to another app. When targeting Api 24 or higher you need to use …
How to save last visited url in android webview? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question So im writing a very simple web-view app that shows certain types of users a web-page that I…
Getting onSwipe event from a nested RecyclerView to the parent Fragment
I’m developping an app in which my main activity hosts different fragments via a SectionsPageAdapter. My question is about one of those fragments that roughtly looks like the image bellow: My innerRecyclers lists differents items that I want to be able to remove by swiping and make the user validate the…
Android Jetpack CameraX method createSurfaceProvider() not found
I ran into a problem when working with CameraX on the tutorial from the android documentation. I can’t find a method createSurfaceProvider() I am using these libraries: camerax_version = “1.0.0-beta10” CODE: Answer Just followed the latest tutorial and faced with same issue. But if you simpl…
use multiple location geofencing
I used this code (https://www.youtube.com/watch?v=nmAtMqljH9M&list=PLdHg5T0SNpN3GBUmpGqjiKGMcBaRT2A-m&index=9&ab_channel=yoursTRULY) (https://github.com/trulymittal/Geofencing) That code makes geofence by click and uses just one geofencing. But I wanna make geofence one more fixed markers when it …
How to increase tab height in xml without changing position. Also viewpager goes behind tab layout
Please help me. I have a tab layout and a viewpager. I have 2 problems. I want to decrease the height of tablayout. Also while scrolling(a list view in the page) as the viewpager is behind tab layout , the tab layout hides some elements of the list. Please help me solve the problem!!! The problem can be resol…
Gradle sync failed: Could not find com.android.tools.build:gradle:4.0.1 [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question In a …
Is it mandatory to create inner classes to handle events in DataBinding?
I was learning about DataBinding, particularly the section about handling events and click events. Now, I noticed in a few YouTube tutorials that I instructors were mainly using an inner class to handle these events. However, earlier, I’d written this code that implemented the View.OnClickListener and d…
LIBGdx – I get gray pixels in a sprite when saving as PNG
I’ve been trying to scale down a sprite and save it to the android local store for later use, but everything I’ve tried always results in a grey edge around the sprite. Sprites As you can see, the sprite batch blend function is set to GL20.GL_ONE, GL20.GL_ONE_MINUS_SRC_ALPHA and rendering to the s…