The Android Runtime, or ART for short, is an Android runtime which was made available in Android 4.4 and is the default runtime in Android from 5.0 onward, superseding the Dalvik runtime. ART compiles app's bytecode to native code using the dex2oat on-device compiler suite and executes them.
Questions tagged [android-runtime]
175 questions
0
votes
0 answers
AndroidRuntime Error: No static method get-impl([BI)B in class Lkotlin/UByteArray
I am using react native (v0.71.4) to create a java (v11.0.18) android app. The android app pulls in an external SDK. The external SDK is initialized in a function in MainActivity.java: public void onCreate(Bundle savedInstanceState).
When building…

user21439250
- 1
- 1
0
votes
0 answers
Why I got AndroidRunTimeException on my Flutter application?
I'm on developing a mobile application for connecting devices and recieving data via BLE. After some seconds of recieving data I got AndroidRuntime Problems and the application crashed.
I would be very thankful if you can help me resolving this…

ASMA
- 59
- 1
- 5
0
votes
0 answers
How to dump the specified java object from the memory of Android ART
I want to dump the specified java object from ART memory(/proc/{pid}/mem)
Python code
def read_mem_vma(pid):
vma_range_list = []
f = open(f'/proc/{pid}/maps')
for line in f:
if 'rw' in line:
range_ = tuple(int(s, 16)…

xiaoq
- 31
- 1
- 1
- 7
0
votes
1 answer
How to get rid of the resource not found exception when clicked on item view on recycler view and instead of data and activity lauch, it crashes app
I have built an app to learn the use of adapter and recycler view.
It contains a recycler view and adapter, it uses data class to show data on clicked to an item of the recycler view, but the app crashes on runtime whenever I click on an item of…
0
votes
1 answer
Does Dalvik create stacks to manage threads
Unlike JVMs, which are simple stack-based machines, the Dalvik VM uses a register-based — which requires fewer instructions, avoids unnecessary memory access — resulting in better performance code.
But how does Dalvik manage thread stacks? Does it…

nhoxbypass
- 9,695
- 11
- 48
- 71
0
votes
1 answer
Is it possible to run classes.dex without apk in Android Runtime like Dalvik?
I know how to run classes.dex on DalvikVM via adb using command adb shell dalvikvm -cp /sdcard/App.zip HelloWorld where App.zip contains classes.dex, or adb shell app_process -Djava.class.path=/sdcard/classes.dex /sdcard HelloWorld.
So is it…

cbcwestwolf
- 51
- 1
- 7
0
votes
1 answer
Which component passes the events and intents to our application if not zygote?
I am confused of how the actual lifecycle flow is implemented.
When a user clicks on an application icon, that click goes to a special application called Zygote which then forks a new process for the clicked application to run. I can understand the…

Jim
- 3,845
- 3
- 22
- 47
0
votes
1 answer
AndroidViewModel Cannot Create An Instance Kotlin
I've checked the all related topics. But couldn't find a solution for myself. I was using ApiCall to load live data and it was OK. But now i need to use Roo so that even without internet connection, users will be able to use it for a while. Ok let…

fatihberatcan
- 65
- 7
0
votes
0 answers
Java method executed faster on Android than on PC
I have a project written in Java and I integrated it into an Android app (written in Java as well).
When I measured the execution time for the same method (which refers to several external libraries in the form of .jar files) on both PC and Android,…

manuru0117
- 9
- 2
0
votes
1 answer
When __strlen_chk called?
as part of my project, I try to write a feature inside android art, and for some reason I get exception on
__strlen_chk
my trace is:
DEBUG : Revision: '0'
DEBUG : ABI: 'arm'
DEBUG : pid: 969, tid: 1346, name: PackageManager >>> system_server…

assaf.b
- 124
- 1
- 1
- 10
0
votes
1 answer
Running a terminal command from within an app?
I'm attempting to make a simple app to change a value on my AOSP device's GPIO directory to toggle a peripheral device. I'm trying to do this by running a shell command from within the app, but my code doesn't seem to be doing anything:
private…

andrewedgar
- 797
- 1
- 12
- 46
0
votes
0 answers
Why the looper and handel when i sync a device shows many errors and makes that the app close instant?
The problem that i have it's that when i try to run the app in a device works well and the code builds well but when the apk is installed, then close because say that didn't works well. And in the part of android run time, apears the message.
I try…

ignasi
- 1
0
votes
1 answer
When running my android studio app on my phone, it runs but does not save it on my phone
I have previously ran projects and they not only run but save as apps that I can open again later. Now for some reason this particular projects runs and opens but does not save as an app on my phone.
I'm sure I must be missing some simple setting…

Victor
- 31
- 5
0
votes
2 answers
Unity game crashes when closing Reward Based Video Ad
I'm using the sample code from the Google's AdMob documentation. The ad loads fine, but when I close it, the game just crashes. I don't really know what's causing the problem here. The script is attached to the AdManager game object, and the…

PenguinDev
- 21
- 3
0
votes
1 answer
Is there a way to check run-time permissions for the app whom I am sending data in the background
I need to check runtime-permissions for the background application whom I am sending some data through Intent.
I am broadcasting an Intent from appA to App-B in the background. Now, based on data in Intent app-B will start performing some task in…

003
- 197
- 1
- 12