All Questions
Tagged with android android-activity
27,998
questions
1
vote
1
answer
8
views
How to start MainActivity after SplashScreen?
I want to run my app on devices below android 12. The app will have a splash screen, the app can't use splash screen api becuase it does not work sufficiently in devices below android 12. How to ...
0
votes
1
answer
18
views
How to Pass ArrayList of Custom Objects Between Activities in Kotlin on Android Studio
I'm working on an Android project in Kotlin where I store user information in a custom object. I need to pass an ArrayList<CustomObject> from one activity to another and display the stored ...
0
votes
1
answer
16
views
canceling notification after clicking on notification builder action button
Starting from android 12 , starting activity from BroadcastReceiver and services is not possible anymore, according to the documentation this is called Notification trampoline restrictions and now we ...
0
votes
1
answer
25
views
Android: Two launcher icon for two different Acitvities
What is correct method to create two launcher icons for towo activities? I tried it like this:
<activity
android:name=".SettingsActivity"
android:exported="true&...
0
votes
0
answers
29
views
I want to build androidx's appcompat and integrate in AOSP build
I want to build androidx's Appcompat(done some changes) and integrate in AOSP.
When I use the below command, it generates debug and release aar.
android_xsource_code/androidx/frameworks/support$ ./...
0
votes
0
answers
13
views
How to avoid TransactionTooLargeException in Android? [duplicate]
When the activity is created, it requests the list of installed applications using the following code-
public static List<PackageInfo> getAppsFromPackageManager(Context context) {
...
0
votes
1
answer
19
views
How do I change the behavior and icon of a Floating Action Button between fragments?
I created a Basic Views Activity in Android Studio and I cannot figure for the life of me how to change the "setOnClickListener" and icon of the FAB between fragments. I'm using the FAB to ...
1
vote
1
answer
38
views
How to manage Activity stack behavior in Android based on dynamic IDs?
I have one ActivityA that contains a specific ID in the intent data, one ActivityB that is open from this ActivityA, and ActivityB can also open the same ActivityA with the same ID or a different one. ...
0
votes
0
answers
15
views
Best Practice of using Navigation Component. Activities only or only Fragments or Both of them together?
I am working with Navigation in android and multiple questions came up:
If an android application only consist of activities, is it good practice to make NavGraph for activities?
Or NavGraph should ...
0
votes
0
answers
16
views
Android Settings panel not opening from my app
I'm trying to open the settings panel from my app but it is not doing anything, the device has Android 14 it's a Samsung A24.
I have another device which is the same model, where the code works. But I'...
-1
votes
0
answers
22
views
how to make status bar completely transparent in andorid
how to make status bar transparent on android>=30
i tried this custom theme but no result.
<style name="fullscreen" parent="Theme.AppCompat.NoActionBar">
<...
1
vote
0
answers
39
views
First activity is destroyed and recreated when the user is moved from First Activity to Second and back to First on Samaung A34
For one of the user who's using Samsung Galaxy A34 with Android 14 and RAM is 8 GB.
I have implemented dropdown selection in a different activity where the user clicks on dropdown for selection from ...
0
votes
2
answers
44
views
How can i open a activity from a foreground service (Find phone smartwatch function)
I'm working on a find phone feature on my company's BLE smartwatch.
The user accesses the option on a smartwatch and it sends a Bluetooth event informing that the user accessed the "find phone&...
0
votes
1
answer
55
views
start view activity from recycler view adapter in Android Studio
The activity I try to call out of a recycler view adapter doesn't start. Instead it either ends the app or just goes back to main.
I am trying to switch from one item in the BookRecyclerViewAdapter to ...
0
votes
1
answer
23
views
FLAG_ACTIVITY_REORDER_TO_FRONT does not work
I have an activity called ChatActivity but it has strange life cycle. When it is first created, the first instance (ChatActivity1) is created and the methods being call is as the below:
...