36 questions
0
votes
0
answers
15
views
Last fragment is shown as a flicker when launched from a different application
The target activity uses singleTop as launchMode. When it is launched from another application with the following code, it shows Fragment A, then user switches to fragment B. Then user switches to ...
1
vote
0
answers
90
views
Problems while calling the API: The authManager is: null; the authCallback is: null; the mContext is: null
In my project, I want to call a Baidu map API (a Chinese map API), I wrote MapApp.java for this program, initialized the SDK in this file, and also declared it as the entry point of the program in ...
3
votes
0
answers
2k
views
Why does ActivityManager.runningAppProcesses returns current running app, only?
On my AndroidTV Emulator I have:
val am = this.getSystemService(ACTIVITY_SERVICE) as ActivityManager
am.runningAppProcesses?.forEach {
Logger.debug("XXX", "Running ${it.uid} , ${it....
7
votes
1
answer
2k
views
Attempt to read from field 'int com.android.server.wm.Task.mTaskId' on a null object reference
I am getting below exception in my firebase crashlytics console.
Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'int com.android.server.wm.Task.mTaskId' on a null object ...
1
vote
1
answer
395
views
How can I track the ActivityManager loading time of my app?
I would like to track how much time take my app to start, but I would like to track this specific info defined here: https://developer.android.com/topic/performance/vitals/launch-time
In order to ...
2
votes
1
answer
4k
views
How to prevent ActivityManager from killing my application's background process
I am developing a mobile application that runs in the background. It takes screenshots in the background on an interval, however after some time, ActivityManager would kill the process with the log, I/...
3
votes
3
answers
2k
views
SingleTask activity is created multiple times within the same process
I have a launcher app which has a singleTask activity as the main entry point. When the user navigates away to another activity or to a 3rd party app and then hits the home button, then this activity ...
0
votes
0
answers
118
views
Retrieving stack trace of launch intent
I have a React Native app running on Android and using some libraries that I have recently added. Now the app is constantly reopening itself after a couple of seconds whenever I close it without ...
12
votes
3
answers
23k
views
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/app/ActivityManagerCompat
Description
I want to build todolist app.I want to store information using RoomDatabse.
I build Database with room and get infomation than save to database.
But when i click add button then i got ...
1
vote
2
answers
506
views
How to view the Back Stack programmatically?
I'm trying to create an app ("ShowStack") to view the current App Back Stack (for development purposes). I know it can be done by using adb with the command "adb shell dumpsys activity activities".
I ...
0
votes
0
answers
701
views
What does "system_process E/ActivityManager: Empty Process Limit hit" mean?
Android version: JellyBean (4.3)
We recently hit the above mentioned error message Empty Process Limit hit thrown by the ActivityManager. A search on Google with this string didn't result in any ...
0
votes
0
answers
150
views
How to listen to running processes?
I want an application that is not in my phone to be checked for the name and to send the toast message accordingly. For example ; I have the Twitter app on my phone, but the ABC app is not on my phone....
0
votes
1
answer
418
views
Emulate an app interaction with adb [duplicate]
I really want to find an adb command to start an app and emulate/fake some clicks in the app.
When make an logcat and do with my android-remote what I want to emulate, I find many different lines ...
0
votes
1
answer
547
views
Where can i read this log that ActivityManager: Killing 2225:com.android.email/u0a39 (adj 900): remove task
I'm searching where can I read this log.
03-29 02:47:31.249 774 795 I ActivityManager: Displayed com.android.email/.activity.setup.AccountSetupFinal: +120ms
03-29 02:47:34.014 774 1200 I ...
2
votes
1
answer
1k
views
"CANNOT LINK EXECUTABLE" error with QPython (Android)
I'm trying to build a simple Telegram bot to start and stop an old Samsung device working as a security cam.
All is good via ssh, so the commands involved have been already proved to be working. It's ...
6
votes
6
answers
27k
views
Android checking whether the app is closed
I have an android application i need one function or any broadcast receiver that can check if the app is closed.. i don't need to call on destroy in every activity (there is about 20 activity into the ...
1
vote
0
answers
368
views
Android: get active app names in active session
I've tried to get all names of applications which the user opened in a session (session start with unlocking phone and ends with turning off the screen).
As first I've tried to get the current app in ...
1
vote
1
answer
7k
views
How to retrieve app usage statistics of an android device?
I'm constantly trying new apps and my phone is getting cluttered with old apps, I no longer use. So, I thought I'd develop a simple app to help me out. There are similar apps, but none does exactly ...