Skip to content

Tag: android

How to determine if an apk is signed in Java?

I’m building an Java Android App in Android Studio. In my onCreate function I wand to determine if the App has been build with or without a certificate. But by now, I get no Certificate Information at all. output: Answer You have to use getPackageInfo instead of getPackageArchiveInfo. When you do so, ge…

Flutter project fails to build when gradle gets upgraded. Error: Type ‘FlutterTask’ property ‘assets’ is missing an input or output annotation [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 1 year ago. Improve this question When I…

Simple swipe screen using VIewPager2 (Java)

I am trying to create layout which will show three screens which could be changed by swipe or by button. Between those buttons should be dots indicator of selected page. I spent many time searching of samples how to do it, but usually I stucked on some issue. I don’t need option of dynamical adding of f…

Passing runtime parameter to constructor in Hilt

In Dagger, we can pass the runtime parameter through component.builder. But how to achieve that in hilt where the Component is Built in? How to inject an object of ProgressData in the main activity while percent data is set in runtime? Answer I found the answer. First Annotate the constructor with @AssistedIn…