Questions tagged [android-activity]
Questions about creating or managing Activities in Android. In Android Applications, an Activity is a Component that provides a user interface allowing the user to do something. Simple examples are: dial the phone, take a photo, send an email, or view a map.
android-activity
29,044
questions
0
votes
0
answers
10
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'...
-4
votes
1
answer
61
views
Cannot resolve symbol 'main' in Android Studio [closed]
When I build a New Empty Activity
I am getting the following error.
related to the MainActivity.java file
[Error]: Cannot resolve symbol 'main'
line of code
`ViewCompat....
0
votes
1
answer
22
views
When opening AndroidManifest.xml there were several errors and I didn't find a solution for them
I had gradle errors and fixed them, but when I run the application, it opens and closes immediately and the phone sends me a message Something went wrong with mk mk closed because this app has a bug.
...
-1
votes
0
answers
21
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
38
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
40
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
54
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
19
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:
...
2
votes
1
answer
58
views
Start Intent from ViewModel
I would like to start a Foreground Service and call a LauncherForActivityResult.
As far as I know, i neither can start a Service from a ViewModel, nor call a LauncherForActivityResult.
I am working on ...
0
votes
1
answer
82
views
AppWidget configuration activity doesn't start in Android 14: missing opt in by PI sender
My app implements a configuration activity for its widget exactly as described here.
Starting with Android 14, the activity can't be launched automatically in background, as stated here, but I have no ...
0
votes
0
answers
18
views
Acitivity is recreated after navigating to forceground
I am creating an Android application, that bounds to a Service.
bindService(intent,
this,
ComponentActivity.BIND_AUTO_CREATE or
ComponentActivity.BIND_IMPORTANT or
...
0
votes
1
answer
46
views
Camera stops after one minute application suspend
I am using CameraX in my app. When I put application to background after one minute I got following logs and then when I resume the application the camera shows no preview (black screen).
Probably I ...
1
vote
0
answers
34
views
How to call Java code Activity from Kotlin compose Activity
How to call Java code Activity from Kotlin compose Activity.
There are a lot of post to the other way(Call Kotlin from Java) but seems it does not apply to my case because it gives (this@MainActivity ...
-1
votes
1
answer
75
views
open react native app on receive push notification without click on notification
I want to open react native app when the device gets a push notification.
I have used this code to open the app It works fine only on Android version less then 10. but it does not work on Android ...
0
votes
1
answer
32
views
How to prevent showing MainActivity when navigating back, but keep app state when reopening?
I'm developing an Android app with three activities: MainActivity, LoginActivity, and WebViewActivity. The MainActivity is the launcher activity and determines if the user is logged in or not. Based ...