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

android:screenOrientation=”portrait” is deprecated

Since android:screenOrientation="portrait" is deprecated, I need a solution to ensure that my app runs only in portrait mode. However, none of the methods, including the programmatic approach, are working. Could you provide a proper solution? You need to sign in to view this answers

Read More
Android

What could be the reason our app doesn't show up when searching on Google Play

So this app: https://play.google.com/store/apps/details?id=dk.dkent.workreporting When searching for it on the store, either just the name or the company name it doesn’t show up. But if I search for it on Google or Duckduckgo I can find it there, I can press "See in Play Store app", it opens the play store app and I can

Read More
Android

expanded collapsible banner ads disapear slowly when change detination of navigation

I have page1 and page2. page2 has a collapsible banner ad. page1 navigate to page2. Then the collapsible banner ad show of page2. The collapsible banner ad disapear slowly when I back from page2. This question won’t happen on two Activity. How can I solve this problem on navigation. I reproduced this issue, please check

Read More
Android

Error on Using AutoComplete Widget (showing error controller is dispose)

when i am using AutoComplete widget in flutter to take name from list and fill manually also .Now i want to assign a value to its controller and close screen .its ok but if open again it show error , controller is dispose import 'package:shunya_core/models/claims_model/claims_list_model.dart' as c; class OfficeAndEpcExpenseScreen extends StatefulWidget { cData.Data? data; String

Read More
Android

onMessage not triggering on Android (working fine on iOS)

I’m implementing a web scraper in my managed Expo app, which requires injecting JavaScript to capture certain elements. Below is a snapshot of my WebView class: import Colors from 'constants/Colors' import React, { useRef } from 'react' import { StyleSheet, View } from 'react-native' import { WebView } from 'react-native-webview' import .... const buildIdDefault="00000000.00_v0.00.0" const

Read More
Android

How to change the physical resolution of an Android system?

I am using an Android hardware device without a screen, and I operate it via screen casting. However, the physical resolution is set very low, like 132×132. I tried changing the resolution using adb shell wm size, but after the change, the screen casting goes black. And this method is limited to change to double

Read More
Android

how to wait until the function is complete in kotlin?

I have the function download url and I want the main program to wait until I have a suitable url and I can put it in the object fun uploadImage(userName: String, uri: Uri): String { uploadImageProcess(userName , uri) return downloadUri } private fun uploadImageProcess(userName: String, uri: Uri){ val ref = createReference(userName) Log.d("uploadImageFUNCTION", "Reference: $ref") val

Read More
Android

How to set custom dialog full screen? (android)

I want to show custom dialog in full screen. But It’s not now. I don’t know why. This is my code val dialog = Dialog(requireContext()) val view = LayoutInflater.from(activity).inflate(R.layout.custom, null) dialog.requestWindowFeature(Window.FEATURE_NO_TITLE) dialog.setContentView(view) dialog.window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT) dialog.window?.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN) dialog.window?.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE) dialog.window?.decorView?.systemUiVisibility = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY You need to sign in to view this answers

Read More
Android

How to get apk bundle version from play console in android studio?

How to get apk bundle version from play console in android studio? In want apk version from play console for custom app update dialog.Any one has idea for that How to get apk bundle version from play console in android studio? You need to sign in to view this answers

Read More
Android

Forever running Service for API 34+

I have been researching without results for some time now. A foreground service whose service is forever running needs to be created. Idea can be found on this gist: https://gist.github.com/varunon9/f2beec0a743c96708eb0ef971a9ff9cd Issues is that when starting a foreground service from a Worker or from onDestroy() lifecycle callback of the ForegroundService itself the following error would appear:

Read More