Questions tagged [dalvik]

Dalvik is a virtual machine used by Google's Android operating system.

From Wikipedia:

Dalvik is the process virtual machine (VM) in Google's Android operating system. [...] Programs are commonly written in Java and compiled to bytecode. They are then converted from Java Virtual Machine-compatible .class files to Dalvik-compatible .dex (Dalvik Executable) files before installation on a device. The compact Dalvik Executable format is designed to be suitable for systems that are constrained in terms of memory and processor speed. [...]

A tool called dx is used to convert some (but not all) Java .class files into the .dex format. Multiple classes are included in a single .dex file. Duplicate strings and other constants used in multiple class files are included only once in the .dex output to conserve space. Java bytecode is also converted into an alternative instruction set used by the Dalvik VM.

1028 questions
0
votes
1 answer

Android & calling methods that current API doesnt have

If i want to get the external path like this, and device has Android 2.1 (api 7) File f; int sdkVersion = Integer.parseInt(Build.VERSION.SDK); if (sdkVersion >= 8) { System.out.println(">=8"); …
pulancheck1988
  • 2,024
  • 3
  • 28
  • 46
0
votes
1 answer

Akka conversion to dalvik fails

I want to use akka in my android app but during conversion I get following error: Dx processing akka/kernel/Main$.class... Dx processing akka/kernel/Main$$anon$1.class... Dx trouble writing output: No expanded opcode for 01ffb17a…
0
votes
2 answers

Setting Application Specific Max Heap Size for the Android Dalvik VM

Is it possible to set an application-specific max heap size (the dalvik.vm.heapsize property) instead of using the same maximum heapsize for all VM's running on an Android device? I know I can set a new dalvik heapsize by modifying the device's…
mozturk
  • 3
  • 1
  • 4
0
votes
4 answers

Android VM Out of Memory Error

Possible Duplicate: OutOfMemoryError: bitmap size exceeds VM budget :- Android I've researched this problem up and down and I can't find anything about my specific problem. I use .PNG files located in my drawable folder for button backgrounds.…
John P.
  • 4,358
  • 4
  • 35
  • 47
0
votes
4 answers

How to String-Integer signed value to 2 byte array on the Davik VM?

Given a integer value from a string, I want to convert it to 2 byte signed integer. BigInteger does the job, but I don't know how to grant 2 bytes... public void handleThisStringValue(String x, String y){ BigInteger bi_x = new BigInteger(x, 10); …
Jorge
  • 695
  • 2
  • 9
  • 21
0
votes
1 answer

reboot using newly built libdvm.so gives fatal error

I have changed the structure of the JIT table (pJitEntryTable in / dalvik/vm/Globals.h) from a chained array(sort of hash) to a combination of hash table and B-tree. It finds hashed value based on PC and enters the corresponding JitEntry(dalvik…
0
votes
1 answer

is dvmStartup called every time an app is launched

I added some code print messages to logcat inside dvmStartup(), but it doesn't seem to print out anything. So does dvmStartup() invoked everytime? Is it related to whether the app is started in Zygote mode or not?
dacongy
  • 2,504
  • 3
  • 30
  • 48
0
votes
1 answer

android core library compilation

How does AOSP compile the core libraries? Is there any special handling to make it talk to the underlying OS? Are there any stub code generated as marks, and left for run-time processing by the Dalvik VM?
dacongy
  • 2,504
  • 3
  • 30
  • 48
0
votes
1 answer

Dalvik memory allocation

Is there any way, how to programatically (like allocating and filling some array) check, how much memory can Dalvik allocate before OutOfMemoryError appears? Is it possible to do it with Java?
Waypoint
  • 17,283
  • 39
  • 116
  • 170
-1
votes
1 answer

android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff?

I'm trying to repair an old android app that I've been using for years (not the original developer). I've got all the other issues fixed (yay! By pure luck almost) and I'm running into this issue, where it seems to have an issue getting the…
-1
votes
1 answer

How do I run C/C++ applications on Android?

How do I compile and run applications written in C/C++ and under NDK on Android OS?? Does the application compile and run in Dalvik or ART? Or independent is that VM?? In the case of programs written in other languages, how is it? For example (C# in…
-1
votes
1 answer

Android command line popup message

I know how to create and run command line console programs in android. For example a simple one would be for file Hellos.java: public class Hellos { public static void main(String[] args) { System.out.print("Hello World"); } } then $…
user2587965
-1
votes
1 answer

Adding external JAR to Android project in ECLIPSE causing "Conversion to Dalvik format failed"

I have problem adding mail.jar and activation.jar to my Android Project. When I try to launch in emulator I always get this messagge: Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536 Without this two…
Alessandro Mattiuzzi
  • 2,309
  • 2
  • 18
  • 24
-1
votes
1 answer

Conversion to Dalvik error 1 No SOlution Worked

i'm running on eclipse luna with adt and all is fine until i add google play service as a library the application wont run or debug and the eclipse goes to sleep for a long time trying to export signed apk it throws me Conversion to Dalvik…
Ahmed Atef
  • 55
  • 1
  • 8
-1
votes
2 answers

Dex Loader] Unable to execute dex: method ID not in [0, 0xffff]: 65536 Size Exceed

First thing I got same question on several post, but all the post answers cannot give me any solution. If I unchecked Android Private Libraries then app is running but after the splash screen it's give class not found exceptions. I have used the…
Satyaki Mukherjee
  • 2,857
  • 1
  • 22
  • 26