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
How to reload android sdk class at runtime
Is it possible to load an android sdk class dynamically at runtime?
Let's say I want to reload the class android.os.Debug dynamically at runtime, is it possible to reload it dynamically.
I tried extending ClassLoader and android provided…

neeraj_nigam
- 25
- 3
0
votes
1 answer
Android: Confusion in understanding the runtime permissions
I am implementing runtime permissions in my app. I have few questions though to understand them clearly.
Situation:
My application B is a child app of application A
That being said my application resides inside application A as part of it and,…

003
- 197
- 1
- 12
0
votes
0 answers
Compiling java file in android runtime java
I know this has been asked here and I have tried the suggested solutions but nothing yet to solve. I want to create an java compiler that could run in android in run time using button click but I can't find the right approach to solve the problem.
…

Gerome Tapales
- 29
- 4
0
votes
1 answer
android ART NoClassDefFoundError when deploying a multidex apk to fabric beta
I have a strange issue.
I have this kotlin piece of code that sorts a dictionary, inside my multidix mixed java-kotlin application. (code below)
when running the app on development phone (SAMSUNG s9) everything runs ok.
When deployed the app to…

Re'em
- 1,869
- 1
- 22
- 28
0
votes
1 answer
Are the OAT files on other devices using the same architecture the same?
Are the OAT files on other devices using the same architecture the same?
If it is not the same, can you tell me why? Thank you.
One more question, I wonder if ODEX files are the same on other devices using the same architecture

hongjo lim
- 85
- 7
0
votes
1 answer
Application keeps crashing when clicking register button and not showing preview in design mode?
I am having serious difficulties trying to figure this out. I have a landing page in my application and when i go to click the register button the application will crash and i will get this error;
--------- beginning of…

Aaron Smith
- 15
- 4
0
votes
1 answer
WMTS layer not showing in ArcGis Android runtime 100.2.0
Using the Android Runtime API 100.2.0, I would like to add a WMTS layer as a basemap. Unfortunately the layer is not showing in the map. The WMTS service url is https://geodata.nationaalgeoregister.nl/tiles/service/wmts?request=getcapabilities. It…

ʕ ᵔᴥᵔ ʔ
- 772
- 1
- 8
- 14
0
votes
1 answer
App stops unfortunately after clicking allow in run time permission(WRITE_EXTERNAL_STORAGE) in some devices
i'am trying to set run time permission for MarshMallow+ devices.
When i do it asks for permission but when i click allow the app stops unfortunately.
If i open the app again it works fine.
My code for run time permission:
int CurrentVersion =…

vinayak180696
- 39
- 7
0
votes
0 answers
Same activities not working the same on android 6.0
I am making an RSS feed app using CardView and RecyclerView, but whenever one of the cards is clicked on, the app with crash and give an AndroidRuntimeException that i cannot figure out.
holder.setItemClickListener(new ItemClickListener() {
…

OneEyedNinja
- 3
- 4
0
votes
0 answers
AndroidRunTimeException error on older devices
I am programming an RSS feed type app and on devices that are older than android 7.0, they will often get an android.util.AndroidRuntimeException and I cannot quite figure out why they are getting it. EDIT** The error is happening when a card (using…

OneEyedNinja
- 3
- 4
0
votes
1 answer
Android Runtime permission in Cordova 3.6 App
How to implement android runtime permissions in app that is using cordova 3.5

user3458301
- 21
- 6
0
votes
1 answer
Why Fullscreen mode is working just in Samsung phone?
There are some questions about Fullscreen but in my case, I'm using one java class with (AbsRuntimePermission extends AppCompatActivity) and the (MainActivity extends AbsRuntimePermission)
My problem is: the Fullscreen mode is working just in the…

Allison Sobral
- 35
- 7
0
votes
0 answers
Android Studio's type checker is complaining that Runtime.exec() is returning a Java process rather than an Android process
I have the following code:
try {
String command = "ps";
Process process = Runtime.getRuntime().exec(command);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line;
…

FutureShocked
- 779
- 1
- 10
- 26
0
votes
1 answer
Method does not override or implement a method from supertype for runtime camera permission
I am just invoking the run time camera permission dialog to enable the camera permission if it was disabled.
getting three problems in that:
1) Method does not override or implement a method from super type for the below method
@Override
public void…

Happy
- 1,031
- 10
- 26
0
votes
1 answer
Adding views at runtime or something else
My application has a form to fill data (invoice). And just as there is a button to add a new line in the invoice.
So far I use to add new view of the layout, but it is not a suitable option, because, let us assume that the user will need to enter…

kovac777
- 730
- 6
- 19