Questions tagged [android-runtime]

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.

175 questions
0
votes
3 answers

Android Read contacts Runtime permission not working

I am developing an application that required to access contacts in phone. this method is executed inside a thread. But when app start for the first time it crashes and says android.permission.READ_CONTACTS or android.permission.READ_CONTACTS…
0
votes
0 answers

Android source code compilation error: impossible constraint in 'asm'

For my project I must use inline assembly instructions such as rdtsc to calculate the execution time of an Android 4.3 C++ instruction in the stack. I found similar problem in stackoverflow such as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 but non of them solve…
Curious
  • 373
  • 1
  • 2
  • 8
0
votes
1 answer

Does ART's ahead-of-time compilation optimize resources

The new Android Runtime (ART) that replaces the old Davlik virtual machine in newer Android versions introduces ahead-of-time (AOT) compilation. Thus, applications get compiled on devices using the dex2oat tool, which compiles dex files, packed into…
Phidelux
  • 2,043
  • 1
  • 32
  • 50
0
votes
1 answer

java.lang.VerifyError: Rejecting class, failed compile-time verification on calling class

I need to call class data in my selectuser class I am using it when user selects any item from spinner @Override public void onItemSelected(AdapterView parent, View view, int position, long id) { int icon =…
0
votes
2 answers

Could not find the specific error from Android Device

This is the problem at hand. The app that i was developing worked nicely in an emulator, BlueStack to be more precise. And then when i run the app in my android device lenovo s650 4.4.2, the app crashed as soon as it gets into the main menu. And the…
0
votes
1 answer

Fatal Exception: java.lang.RuntimeException : unable to start Activity

Hey guys i m new in Android studio help me to out following. i use ActionBarSherlock Library and it hold Reference of current Fragment instance when user pause application. Fatal Exception: java.lang.RuntimeException: Unable to start activity…
0
votes
0 answers

Dagger2 runtime issue

I am trying to implement dagger2 for the dependency injection. Previously I was using Roboguice for the dependency injection but when I updated it to RG3 it stopped working. All the injected views were null. So I am trying to use Dagger2. Never had…
0
votes
1 answer

Expose new ART functionality by changing the Runtime.class of libcore

I have inserted some new functionality in the Android Runtime (ART), and now I want to expose it to the outside world via an interface. As it is native code, I will be using the JNI interface to call this new functionality, in a similar way with the…
Paschalis
  • 11,929
  • 9
  • 52
  • 82
0
votes
0 answers

Dalvikvm: could not find class referenced from method and get java.lang.verifyerror when run project from android studio

Hello I am getting error java.lang.verifyerror. whenever I run project from android studio. It happen when I run android application in Android version 4.1 or 4.2 and when I run this app on Nexus 5 its work well. so what is actual issue? Here is…
Pranav P
  • 1,755
  • 19
  • 39
0
votes
0 answers

Shutting down VM on focus EditText?

I was faced with a peculiar problem. In my dialog I have an EditText, when I focused that, keyboard appears and type first word, but my app not responding for long time, until I closed that. This is my function code for Showing Dialog: public…
0
votes
2 answers

RuntimeException: Unable to resume activity

I am newbie in Android and trying to create a database with two tables, but when I fire my project, I got the following errors in logcat: 05-04 11:21:29.678 1634-1634/com.example.keco.myapplication E/SQLiteLog﹕ (1) near "TABLEstudents": syntax…
keco
  • 3
  • 4
0
votes
1 answer

Unfortunately, app has stopped while logging

I'm trying to make an android app for logging but when I run it it tells me app has stopped and here is my login activity: public class Connexion extends Activity { Button b; EditText PWDEDIT; EditText LOGINEDIT; String loginedit; …
0
votes
1 answer

FATAL EXCEPTION: main Process: java.lang.IllegalStateException: Could not execute method of the activity

Been trying to get my IntroActivity.java to enter my FmMenu.java (which is a fragment) and I am getting the following error: 02-26 02:10:58.197 25189-25189/com.wlodsgn.bunbunup E/AndroidRuntime﹕ FATAL EXCEPTION: main Process:…
0
votes
1 answer

Push enabled app is not listed in the Notification section in the device

Am converting apk to bar with push feature with reference of the below url, http://developer.blackberry.com/android/apisupport/creating_push-enabled_android_apps.html. I installed the app in Blackberry Z10 and getting the device token. But my…
jrh
  • 764
  • 13
  • 31
0
votes
1 answer

Android application crashes when double clicking on a EditText field

I'm developing an android application using Action Bar template. Everything is OK, but when I double click to any EditText field, application gets a Runtime Error, and it crashes. When I just click once, nothing happens and everything is OK. Here's…
Iori Yagami
  • 387
  • 1
  • 3
  • 18