top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What role does Dalvik play in Android development?

0 votes
308 views
What role does Dalvik play in Android development?
posted Apr 25, 2017 by Karthick.c

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

I was experimenting something with Android native code and it needs to access a file in dalvik/vm folder from a .cpp file in frameworks/base/core/jni ... I would like to know if this is even possible through #include or some other technique. I think #include may not be the right way to do it and wold like to know if my purpose can be somehow achieved.

0 votes

I tried to run Dalvik in portable mode by setting /data/local.prop as follows:

dalvik.vm.execution-mode = int:portable

But after I reboot the device (which is a Nexus 7), app_process (hosting zygote) still starts in jit mode.

However, if I run:

adb shell stop
adb shell setprop dalvik.vm.execution-mode int:portable
adb shell start

Then app_process will run in portable mode. Is /data/local.prop deprecated or something is missing here?

0 votes

I am searching for the smallest and largest in term of size of android app ever built and launched in google play store?

+1 vote

I have installed my custom app in Packages/apps/

in the app, I use a simple Videoview for video playbacks (3gp or mp4). it works in actual device/ADT emulator, but If I run it in AOSP emulator, it says "Failed to open file : the path of the video"

// Retrieving file from internal file 
systemVideo.setVideoURI(Uri.parse("android.resource://" + getPackageName() + "/" + R.drawable.test));
...