@Composable fun MainScreen( modifier: Modifier = Modifier, viewModel: MainViewModel = androidx.lifecycle.viewmodel.compose.viewModel() ) { val state = viewModel.state.collectAsStateWithLifecycle() val navController =...
I am currently going through the android basics with compose course and I'm learning about classes. I had trouble understanding what a constructor, I don't know what's a constructor or why is it used and I don't really understand secondary...
I am facing ANR (Application Not Responding) issues in my Android application related to the initialization of the Mobile Ads SDK. I have a class named GoogleAdsManager where I perform the initialization in the initAds() function, and this function...
Even though I handled the exception still the app crash happens
@Override public void onAttach(@NonNull Context context) { super.onAttach(context); if (context instanceof FragmentActivity) { try { sampleDialogListener = (SampleDialogListener)...
My team has an Android app, developed over the past year, that's entirely written in Kotlin. We're interested in reaching a new user base to iPhone users.
One idea is to use Kotlin Multiplatform (KMM). This approach would allow us to reuse the...
I'm using the react-native-google-signin library for my expo project with firebase. I am able to login via google on iOS perfectly but no matter what I try I get developer error on Android. Here are the steps I followed so far to make sure it's not...
In Open activity oncreate() I am calling my setAdmob() function to show a launch interstitial ad ,it working fine in my all devices we also tested in all version devices like android 9 10 13, no crashes recorded but when app is live on play store it...
Android API 23 and above requires that dangerous permissions be confirmed at run-time. In accordance with other StackOverflow suggestions, I check for required permissions using checkSelfPermissions() and if required, call requestPermissions(). That...
I am using the AlertDialog.Builder in Android to quickly prompt the user for text. The dialog shows up and works great, but the user must click on the EditText field to load the soft keyboard. Is there any way to open the keyboard and give focus to...
I have an android app that I publish to external organizations' app stores using the Managed Google Play option in the play console. Before publishing a new version of the app to production, I would like for it to be tested by a select set of users....
So I have a fragment that contains CameraX. I want to move the photos to the fragment that contains ImageView. When I press the button for photos on the Camera Fragment
binding.ivCamCapture.setOnClickListener { takePhoto() } There always an...
I am using Chrome custom tabs for opening links inside the app. The app runs in a single activity with launchMode = singleTask. When I exit the app when the custom tab is open, and return to the app via recent apps screen, the tab is retained....
I took over a project written in React Native, but this project is a bit strange, I can generate apk to install, but using npx react-native run-android will get Error: Activity class {com.xxx.xxx/com.xxx.xxx.MainActivity} does not exist.
I have followed the Android developers guide on: how to hide the system navigation bar.
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN; decorView.setSystemUiVisibility(uiOptions); It works OK, until I show an...
I have an android application entirely based on immersive mode. I have managed to go edge-to-edge for the entire application but when I open a bottom sheet dialog with peek height of uptop 90% of the screen and a scrollview to accomodate a long...
Clicking on an image (within a Image composable) should open a new screen (using NavHost and NavController). The new screen should display a list of users (using LazyColumn and rememberScrollState() for smooth scrolling). Upon selecting a user (by...
I have scaffold with some floatingActionButton and bottomBar
And the main views.
On the first layout show, all works fine, but if you push home button and go back to the application, all fields after bottomBar become invisible. Last stop of...
I am trying to fetch the postid from a Real-Time Database for my Android application. However, I am not able to do so and keep encountering an error inside my isLiked() function:
Can't pass null for argument 'pathString' in child() My Code:...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения