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
Java Runtime check if library exits
Is this any simple way to check if a library (using nickname) is loadable in JAVA? I'm working on Android and trying to load libavutil, which is a c library, I need to check if this library is available to the system to load.

Dunes Buggy
- 1,779
- 1
- 21
- 41
0
votes
0 answers
Force Main-Layout to Inflate
I'll try another shot. Hopefully now i get the answere i totally Need.
Just imagine:
I have a widget which calls(after onClick) a blank activity with no hardcoded code, just a Relative Layout with some views.(Layout provided by XML-layout-file).
My…

Mike
- 857
- 1
- 7
- 11
0
votes
1 answer
ART on supported devices versus ART on pre-built images
There are several applications that we have in the Play Store. As a preparatory test to the new Lollipop release, I wanted to see where our applications stood.
The first approach that I took was to take the Samsung Google Edition S4 and tell it…

Jay Snayder
- 4,298
- 4
- 27
- 53
0
votes
1 answer
Android app force closes with arrayindexoutofbounds exception
My app was working fine and suddenly started force closing when i ran it on eclipse on my phone.
Tried to undo some things but nothing helped. Can someone help me find the peoblem?
My first activity:
package com.ui.contactmanager;
import…

GuruThor
- 11
- 1
- 1
0
votes
1 answer
Does the new Android Runtime (ART) compile only Java code AOT?
I read about the new Android Runtime (ART) which is now the default on Android 5 (Lollipop).
I am wondering whether the Ahead of time compilation that this new runtime enables works for Java code only, or for any code ?
For example, i am writing a…

lysergic-acid
- 19,570
- 21
- 109
- 218
0
votes
1 answer
Android Runtime - Fatal Exception: main
I have an Android Runtime Fatal Exception: main and I don't know what I have to do to resolve this problem. I have the following code, which causes this Exception:
... @Override
public void onItemClick(AdapterView> parent, View view, int…

fire147
- 63
- 1
- 3
- 9
0
votes
0 answers
Android ART crashing pattern
I am testing my app under the ART runtime and came up with a curious pattern:
If I install the app while on Dalvik, then set ART (developer settings), the phone reboots and takes its time to (compile?) all the applications, including mine. This way…

rupps
- 9,712
- 4
- 55
- 95
0
votes
1 answer
Eclipse AndroidRunTime Error. What am I doing wrong?
I got an AndroidRunTime Error and don't know what I am doing wrong. The Problem appears if I try to go from one activity to a next. If I start the app everything is ok and I can Change from one activity to the next. But after a time it stops…

Knacks
- 37
- 6
0
votes
1 answer
What is ART(Android Run Time), is their any changes required in live android application for making it compatible with ART?
I am heard that now Google start using ART, a new run-time for executing Android app and its come with Android 4.4 (in some devices). Now I am just want to confirm that, is pro-grammatically any changes are required or not in existing application or…

Ankit Kumar Singh
- 240
- 1
- 6
- 18
0
votes
1 answer
What does the "AndroidRuntime START" log message mean?
I've seen the following log message near a few crashes I'm working on:
>>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
What exactly does this mean? Obviously means the "AndroidRuntime" is starting, but what is that? I thought it meant my app is…

Barry Fruitman
- 12,316
- 13
- 72
- 135
0
votes
1 answer
Android: Runtime exec() gives null environment?
I am trying to run the following command in Runtime exec():
Process p;
try {
p = Runtime.getRuntime().exec("arp -a");
BufferedReader in = new BufferedReader(
new InputStreamReader(p.getInputStream()));
String inputLine;
…

Ujjwal Syal
- 377
- 1
- 3
- 12
0
votes
1 answer
Is it possible turn all dex in one apk to oat when installing apk?
I found this code in Android:
bool DexFile::OpenFromZip(const ZipArchive& zip_archive, const std::string& location,
std::string* error_msg, std::vector* dex_files) {
ZipOpenErrorCode error_code;
…

wawa
- 616
- 5
- 14
0
votes
1 answer
RS dependent on Dalvik?
How dependent is Renderscript on the framework being Dalvik or ART?
I was testing a device with 4.4.2 running ART and the app kept crashing. Was only later that I realized it was on ART and switched back to Dalvik. On Dalvik it runs fine.

Akshay Panday
- 31
- 2
-1
votes
1 answer
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.ArrayList.add(java.lang.Object)' on a null object reference
I was trying to build a messenger-ish app, when trying to add this part to display the chats a user has it just crashes on startup, before adding this part of code it was fine.
initializeRecyclerView();
getUserChatList();
}
private void…

Moritan
- 3
- 2
-1
votes
1 answer
How to write android app that provides the functionality to root the device?
I have read all over the internet and get the single info whose summary is Runtime.getRuntime().exec(). But it didn't work.
How does the applications like King Root etc works? Are these apps written in C/C++ with NDK or no java is also used to…

Stack Overflow
- 1
- 5
- 23
- 51