October 22, 2024
Chicago 12, Melborne City, USA
Android

How to use Tauri Resource Files properly on Android

I’m currently trying to write an android app using tauri that is required to access font resource files. I added these files in my src-tauri directory within a fonts folder. In my tauri.conf.json I set the "bundle": {"resources": ["fonts/*"]} specifier I checked the targe > debug directories and the fonts folder + font files were

Read More
Android

LazyColumn Recomposed when selected to pass url to AsyncImage

New to Jetpack compose, can someone explain why when i select an item in LazyRow and pass that url to the Image it will recomposed the whole row again? HOw should i be using the movieSelector variable? @Composable fun MovieHorizontalCarousel(viewModel: MovieViewModel = MovieViewModel()) { val movies: LazyPagingItems<Movie> = viewModel.movies.collectAsLazyPagingItems() Column( modifier = Modifier .fillMaxSize() )

Read More
Android

Unexpected Bottom Padding in Bottom App Bar in Android

Question I’m currently developing an Android application, and I have implemented a Bottom App Bar using the Material Components library. However, when I run the app, I notice an unexpected bottom padding that is affecting the layout of the Bottom App Bar. I’ve tried several solutions to resolve this issue, but none have worked. Here

Read More
Android

capturing request and response data with OKHttp with bytebuddy android showing error :

trying to capture the OKHttp data request and response with byteBuddy Android, got this error. what approach should I follow? how can I intercept OKHttp data Automatically with byteBudyy android? here is the error java.lang.IllegalStateException: Illegal method name interface okhttp3.Authenticator for public final okhttp3.Authenticator okhttp3.OkHttpClient.-deprecated_authenticator() at net.bytebuddy.dynamic.scaffold.InstrumentedType$Default.validated(InstrumentedType.java:1746) at net.bytebuddy.dynamic.scaffold.MethodRegistry$Default.prepare(MethodRegistry.java:519) at net.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.toTypeWriter(RedefinitionDynamicTypeBuilder.java:213) at net.bytebuddy.dynamic.scaffold.inline.AbstractInliningDynamicTypeBuilder.toTypeWriter(AbstractInliningDynamicTypeBuilder.java:127) at net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$UsingTypeWriter.make(DynamicType.java:4057)

Read More
Android

Flutter Build Release APK: Failed – Execution failed for task ':facebook_audience_network:verifyReleaseResources'

flutter build apk –release is unable to build release apk of my Flutter application. It is giving the error for facebook_audience_network: ^1.0.1 plugin which is declared in pubspec.yaml file. You need to sign in to view this answers

Read More
Android

Alert dialog before in-app review launch in Android? Is that accepted?

I am implementing an in-app review flow in Android using Google’s API. I want to know if it is acceptable if I want to have an AlertDialog that is displayed that asks user if they like the app or not and if they say YES, then only I launch the review flow. You need to

Read More
Android

How to Display an Application Window Below Other Windows with SYSTEM_ALERT_WINDOW?

I have used the `WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY` and `WindowManager.LayoutParams.TYPE_PHONE` attributes to create an overlay for my application. However, I don’t want it to appear above all other windows. Instead, I want it to behave like with the settings window, where it remains underneath other active windows. How can I achieve this? my code: params = new WindowManager.LayoutParams(

Read More
Android

Changing back stack with Multiple back stack BottomNavigation with type safety in Jetpack Compose

I built a multiple back stack navigation sample with bottom navigation but when back is clicked from another tab/navigation app navigates to initial destination of graph instead of last one on back stack. As can be seen on gif Home screen stores states and back stack with save and restore states but when back is

Read More
Android

Link in an Android textView not clickable

I would like to embed a link into a textView. However, the links are not underlined and not clickable. I have the following string resource <string name="info_efficiency_link"> <![CDATA[ • Heat pumps are by far the most efficient heating technology.<br/><br/> • They convert 1 kWh of electricity into 3-4 kWh of heat.<br/><br/> • Ground-source heat pumps

Read More
Android

Ionic Capacitor app shows blank screen on Android 5.1

I have an application I built in Ionic and Capacitor. The application runs well on Android 7+. The application is a point of sale and most devices that are made for Point of Sale are android v5.1. The app shows a blank screen on these devices. Thorough digging shows that the Problem is the webview.

Read More