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
1
vote
1 answer
How to differentiate between primary and secondary profiles in Android?
I'm trying to disable a component during app OTA on my secondary profile. I'm writing a receiver to disable the component by capturing “android.intent.action.MY_PACKAGE_REPLACED”. Adding my AndroidManifest.xml change here,

Tom Taylor
- 3,344
- 2
- 38
- 63
1
vote
0 answers
Android 7.0 Nougat - Checking AOT and JIT compilation in ART
For some reason, I need to use only AOT compiler in ART.
According to this link:
https://source.android.com/devices/tech/dalvik/jit-compiler
I used four commands below
adb root
adb shell stop
adb shell setprop dalvik.vm.usejit false
adb shell…

ZodiacLeo123
- 115
- 2
- 8
1
vote
0 answers
Android Exception error : W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED
I was trying to make a simple app with 8 buttons and what it should do is to output an audio file whenever a button is pressed. This was working fine at first every button was assigned with a single onClick method. But the app always crashes when I…

Abdullah Awan
- 11
- 1
- 3
1
vote
0 answers
What is the purpose of non-compiled methods in oat file?
I'm trying to analyze the oat format to understand how android application loader works.
I think that android applications are all compiled into native code as oat file in Android Runtime(ART).
What I found was, however, that there is original dex…

DM Jo
- 11
- 3
1
vote
1 answer
boolean value in onRequestPermissionsResult changes but MainActivity uses old boolean value
I have a Boolean value that I am updating in the onRequestPermissionsResult method if I'm granted the permissions. And later after call to my checkPermission method I am checking the value of boolean.
The value of boolean is changing in the…

SAIFI369
- 87
- 1
- 2
- 11
1
vote
4 answers
FacebookSdk not starting android
I have tried everything from tutorials, answers all around, even with examples from https://github.com/facebook/facebook-android-sdk/tree/master/samples. I have tried with test app and normal app in developers.facebook.com/apps
But i always get this…

Jon Shkreli
- 61
- 2
- 5
1
vote
0 answers
Elegant classes loading and updating system
In the current state of the project I'm currently working on, I have a classic Android Studio project with a classic app on it.
For some good reasons (it's an embedded app), I would like to include an auto-update feature in the app, which doesn't…

natinusala
- 596
- 5
- 21
1
vote
1 answer
Where are the Runtime messages and logs displayed in Android Studio 2.3?
The logcat was displayed in the run tab at the bottom-left of the screen.
But that is not showing the messages anymore after i updated the android studio and updated to the latest gradle version.
UPDATE:I am able to see the logcat in the Android…

Arunava
- 353
- 1
- 4
- 13
1
vote
1 answer
Problems with Displaying a Message Output Using Two Activities [ANDROID]
I am attempting to concatenate strings in Android using two activities. Every time I enter two string and hit the button to run the app crashes on the emulator. Can you help me find what I am doing wrong here? My code and the error are below.
Main…

Tristan
- 95
- 10
1
vote
0 answers
Android ART error Check failed: slot_mem_map_.get()
I have an Android Service that can be running for 1 - 2 hours at the time.
Currently this app is in its debugging stage. While the service is running I randomly get this error:
F/art ( 2816): art/runtime/indirect_reference_table.cc:86] Check…

just_user
- 11,769
- 19
- 90
- 135
1
vote
0 answers
C/C++ include path in Android source code
Without using compiler or environment variable options, how to include a reference to the
dalvik.h (/dalvik/vm/Dalvik.h) file
inside the
Parcel.cpp (/frameworks/native/libs/binder/Parcel.cpp) file in Linux/Ubuntu operating system?
I tried the…

Curious
- 373
- 1
- 2
- 8
1
vote
0 answers
Android Dalvik Vs. ART Garbage Collection with ViewPager and Bitmap.recycle
So I have an image slider which is a ViewPager with an image that you can swipe horizontal to move to the next one.
Before loading new images into the image slider I call mBitmap.recycle() on each bitmap to make sure I'm not wasting memory
Checking…

user2322082
- 658
- 1
- 6
- 18
1
vote
0 answers
Does the android mobile application contains "Dalvik" as "User - Agent"
Hi I'm new to Android , I m developing native android application to interact with REST API.
I would like to secure my REST API .i.e, The REST API must only allows the requests from my native android application not from android browser. So as to…

Lakshmaji
- 899
- 2
- 14
- 30
1
vote
1 answer
Copying from /data/app folder using superuser
I am trying to copy files from /data/app folder, but facing the following issues, please advice.
Process suProcess = Runtime.getRuntime().exec("su");
DataOutputStream os = new DataOutputStream(suProcess.getOutputStream);
Error is, Required :…

lifeisgooddd
- 35
- 3
1
vote
1 answer
Android in ART garbage collection pause time indicates main thread or worker thread?
Does anybody know whether GC log below, "paused 1.439ms", means pause time on background thread that CMS is working on, or pause time on main thread?
I/art: Background sticky concurrent mark sweep GC freed 266189(12MB) AllocSpace objects, 0(0B) LOS…

Kyungmin Lee
- 35
- 3