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
-1
votes
2 answers

Android where native code was stored?

We all know that Android objects and local variables are stored in the Dalvik-heap and stack. When we execute native functions from an Android application, it creates objects and local variables. So the question is where are native objects and local…
Sergey Shustikov
  • 15,377
  • 12
  • 67
  • 119
-1
votes
2 answers

Socket reading slow in Android

I am new to Android programming and am writing application that requires use of socket programming. I have written code for socket reading. I am reading around 14 MB of data and following is the code snippet: dataInputStream = new…
Rajesh Golani
  • 448
  • 1
  • 6
  • 13
-1
votes
1 answer

Where Dalvik should be in new diagram?

In which layer does Dalvik go? It is not mentioned anywhere in documentation. direct link to diagram
phidrho
  • 170
  • 6
-1
votes
1 answer

Dalvik virtual machine instruction set and architecture

How does the Dalvik virtual machine compare to a real hardware platform such as X86 or ARM? How many registers does Dalvik have? 8 like the X86 16 like most common CPUs Infinity with register window like Parrot VM What type of instruction is…
zeitue
  • 1,674
  • 2
  • 20
  • 45
-1
votes
1 answer

Measuring Performance of Dalvik

I've been reading up on the android dalvik and I was wondering if there are any applications that measure the performance of the dalvik? If there aren't, based on what aspects could one develop an app to measure the performance of the dalvik? I know…
RagHaven
  • 4,156
  • 21
  • 72
  • 113
-1
votes
1 answer

android (apache harmony) garbage collection

The Sun JDK has a java.lang.ref.Finalizer class, which is used during garbage collection. In Apache Harmony, the standard library that Android is based on, does not have the class. My question is: what is the dalvik/harmony equivalent of…
dacongy
  • 2,504
  • 3
  • 30
  • 48
-2
votes
1 answer

How to solve the issue Unable to execute dex

I am using eclipse. When i am adding facebook library give error "Unable to execute dex: method ID not in [0, 0xffff]: 65536 Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536" How to fix this issue.
-2
votes
4 answers

Programmatically, how to write an unoptimized code to calculate the sum of 10 integers?

In Java, C, or C++, how to write an unoptimized code to calculate the sum of 10 integers (from 0 to 9) programmatically? For example, I use the following code but it is seems that both codes (the ones labeled as //Baseline and //Method #1) are…
User
  • 277
  • 4
  • 13
-2
votes
1 answer

Android exception finalizer

I've been receiving this error and I can't figure out why I have. It doesn't cause the app to crash but I'm not sure if it is affecting my app or not. 05-03 16:29:20.962 31355-31366/com.example.apthagreat.faf E/System﹕ Uncaught exception thrown by…
Allen Perry
  • 191
  • 1
  • 8
-2
votes
1 answer

Difference between no of methods when counting the methods in a jar file by "Metrics" Plugin and the jar's .dex file?

I was trying to get the number of methods in a jar file. I used "meterics" plugin of eclipse and cyvis script. But both of them gave different answers. Then I converted the jar file to its dex equivalent and extracted the number of methods from…
Mragank
  • 1
  • 1
-2
votes
1 answer

android 4.4.2 VFY: invalid switch target 22 (-> 0x18) at 0x2[0]

I insert new bytecode in class dex. Bytecode is packed-switch(x2bx00xFFxFFxFFxFF). I'm success code injection. It works well under 4.3 version. But It doesn't work 4.4.2 This is the stack trace. 07-08 20:54:54.504: W/dalvikvm(1165): VFY: invalid…
buggyani
  • 1
  • 1
-2
votes
1 answer

Application not Working but after uninstall and install the same application works

Hi friends i have strange issue in my application First i get a build(Version 1) and released that in to play store, but that build not installed in some devices, so i search with google for the issues and find that "Have to get build with recent…
Rakki s
  • 1,426
  • 1
  • 18
  • 42
-2
votes
1 answer

Change Java-classes of Android-JDK via reflection

I wonder if something like this is possible: Application AA uses Androids class MediaPlayer to play some songs to STREAM_MUSIC Application BB changes/replaces some methods in Androids class MediaPlayer via standard Java-reflection methods The…
Martin L.
  • 3,006
  • 6
  • 36
  • 60
-2
votes
1 answer

Add Dalvik byte code to existing APK with Delphi

My company asked me to create a dalvik bytecode injector in delphi in order to pass a piece of code in its existing apps. Basicaly it's a code that displays ads in the main activity. So here is my question, is there a way to do that in delphi ? I'm…
Manitoba
  • 8,522
  • 11
  • 60
  • 122
-2
votes
1 answer

Android Dalvik Conversion Error while trying to run app

i was working fine with the project i saved work and closed eclipse when i opened again for work and tried to runon emulator it is saying : [2012-12-04 15:08:09 - Dex Loader] Unable to execute dex: com/android/dx/util/FileUtils [2012-12-04…
Ehsan Sajjad
  • 61,834
  • 16
  • 105
  • 160
1 2 3
68
69