[android-developers] Dalvik vs ART

2013-11-14 Thread Naseem Rafique
Hi, Android launches ART in KitKat, which uses AOT instead of JIT, with some compromises. What Are The Compromises? There are a couple of drawbacks to using AOT compilation, but they are negligible compared to the advantages. To begin with, fully compiled machine code will usually consume more st

[android-developers] Dalvik - local variable type mismatch when adding java file to project - Without proguard

2013-03-21 Thread inistel
My android project compiles and builds fine, however, when I'm adding NanoHTTPD java file (a pure java 1 file http server) I am getting the following error when launching (without proguard). *[2013-03-20 23:28:56 - test] Dx EXCEPTION FROM SIMULATION:[2013-03-20 23:28:56 - test] Dx local variabl

Re: [android-developers] Dalvik VM performance

2012-10-25 Thread Kristopher Micinski
On Wed, Oct 24, 2012 at 1:32 PM, Etienne Fortin wrote: > I've been wondering for a long time about performance on Android and how it > can be improved. One area I think is overlooked is Dalvik. From what I can > understand, Dalvik is a good VM in concept but lack the latest and greatest > in VM te

[android-developers] Dalvik and the internal width of 'short' fields

2012-10-25 Thread Tamás Kovács
Hello, Usually, Java virtual machines are known for using int-sized width for short fields as well. Only the arrays (short[]) are exception. What about Dalvik? E.g. I have a class which contains 50 fields of type "short". Sometimes in my application, 1 of these classes exist. This means that

[android-developers] Dalvik VM performance

2012-10-25 Thread Etienne Fortin
I've been wondering for a long time about performance on Android and how it can be improved. One area I think is overlooked is Dalvik. From what I can understand, Dalvik is a good VM in concept but lack the latest and greatest in VM technology. I've seen benchmark compared to other VM that are n

[android-developers] Dalvik error code 1 using ProGuard

2012-01-05 Thread Alex Curran
I'm trying to build my app ready for release but keep hitting the dreaded Dalvik error 1, and can't figure out why. I was hoping people here would be able to diagnose my problem! My app uses lots of libraries sort of daisy-chained into each other because some are dependent on others, and it loo

[android-developers] Dalvik format error 1

2011-12-27 Thread DulcetTone
How can I tell what packages/classes are conflicting to cause this? Is it a problem to have a package's classes contributed from more than one project as long as the classes do not have the same package.classname signature? This is driving me bonkers, this vague error message. tone -- You rece

[android-developers] Dalvik VM Verify Error

2011-11-21 Thread Soma
Hi All, I'm currently working on a Wrapper for Android, Which wraps an android apk with some DRM related stuff.. which are by the way Android activities.. The activities i had created worked perfectly when I tested them in an Emulator as well as on a Device. I tried integrating it with an Applic

Re: [android-developers] Dalvik

2011-10-27 Thread Kristopher Micinski
Good points! Even if somewhat outdated, I feel like Bornsteins's talk here might be worth watching: http://www.youtube.com/watch?v=ptjedOZEXPM Kris On Thu, Oct 27, 2011 at 12:40 PM, Dianne Hackborn wrote: > There are a lot of other performance reasons for the .dex format that I > didn't see in

Re: [android-developers] Dalvik

2011-10-27 Thread Mark Murphy
Good to know -- thanks! On Thu, Oct 27, 2011 at 12:40 PM, Dianne Hackborn wrote: > There are a lot of other performance reasons for the .dex format that I > didn't see in your article.  For example, in Java byte code each class is in > its own file inside of the zip.  In Dalvik, they are all in o

Re: [android-developers] Dalvik

2011-10-27 Thread Dianne Hackborn
There are a lot of other performance reasons for the .dex format that I didn't see in your article. For example, in Java byte code each class is in its own file inside of the zip. In Dalvik, they are all in one .dex file. This makes it a lot faster to start the app (all code is loaded at once),

Re: [android-developers] Dalvik

2011-10-27 Thread Mark Murphy
http://commonsware.com/blog/Articles/what-is-dalvik.html On Thu, Oct 27, 2011 at 6:06 AM, bob wrote: > What is the point of putting stuff in this weird Dalvik format?  Why > not use Java bytecode? > > -- > You received this message because you are subscribed to the Google > Groups "Android Develo

[android-developers] Dalvik

2011-10-27 Thread bob
What is the point of putting stuff in this weird Dalvik format? Why not use Java bytecode? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this gr

[android-developers] [Dalvik] JIT profiling

2011-08-10 Thread Oleg Strikov
In the IO 2010 presentation guys from Google's Dalvik team showed profiling capabilities of their JIT compiler. This capability could be enabled with 'dalvik.vm.jit.profile=true' in system properties. But I can't profile JIT on GB and HC. Moreover I can't find 'dalvik.vm.jit.profile=true' processi

Re: [android-developers] Dalvik VM Java Annotations has very poor Performance

2011-07-07 Thread Daniel Drozdzewski
On Tue, Jul 5, 2011 at 9:06 PM, Bruno Vinicius wrote: > Hi, > > I've been using annotations on a Android project for a parsing XML > data into a VO object, and I came to notice that retrieving Annotation > info from a class or field is very slow. On a 1k iterations loop it > gives me a 100x fold p

[android-developers] Dalvik VM Java Annotations has very poor Performance

2011-07-06 Thread Bruno Vinicius
Hi, I've been using annotations on a Android project for a parsing XML data into a VO object, and I came to notice that retrieving Annotation info from a class or field is very slow. On a 1k iterations loop it gives me a 100x fold performance drop vesus a specific parsing algorithm version. Cachin

Re: [android-developers] Dalvik VM vs Sun JVM - compabillity

2010-08-18 Thread Kostya Vasilyev
If a class is missing you'll know right away, since Android apps are compiled against their own set of classes. However, sometimes there are bugs in Android (or, rather Apache Harmony) implementation of certain Java classes. I ran into one with SSLEngine, there are reports of occasional issues wi

[android-developers] Dalvik VM vs Sun JVM - compabillity

2010-08-18 Thread Per-Jarle Sæther
Hi all I am new to Android development Are there any compability issues between a standard JVM and Dalvik VM? Are there any classes or packages from the Sun SDK that can't be used on Android? Best regards Per-Jarle Sæther -- You received this message because you are subscribed to the Google Gr

Re: [android-developers] Dalvik SegFaults while using CMU Sphinx4

2010-07-28 Thread Shawn Brown
Hi, > I am a part of a project that involves automatically offloading portions of > an application's execution to a cloud of servers. As such, we try to run > traditionally difficult algorithms on our Android phones, in particular, > speech recognition algorithms, namely the CMU Sphinx4 library.

[android-developers] Dalvik SegFaults while using CMU Sphinx4

2010-07-27 Thread Luis D. Pedrosa
Hi all, I am a part of a project that involves automatically offloading portions of an application's execution to a cloud of servers. As such, we try to run traditionally difficult algorithms on our Android phones, in particular, speech recognition algorithms, namely the CMU Sphinx4 library. The

[android-developers] Dalvik SegFaults while using CMU Sphinx4

2010-07-27 Thread Luis David Pedrosa
Hi all, I am a part of a project that involves automatically offloading portions of an application's execution to a cloud of servers. As such, we try to run traditionally difficult algorithms on our Android phones, in particular, speech recognition algorithms, namely the CMU Sphinx4 library. The

[android-developers] dalvik and defineClass

2010-06-11 Thread garbeam
Hi there, I'm wondering if and how one can load dex or class files dynamically in dalvik, some quick'n'dirty test function I wrote was this: public void testLoader() { InputStream in; int len; byte[] data = new byte[2048]; t

[android-developers] Dalvik Turbo

2010-02-12 Thread skink
hi, is it in any way related to jit that is being developed at google? www.myriadgroup.com/Media-Centre/News/MYRIAD-BRINGS-3x-FASTER-APPLICATIONS-RICHER-GAME-GRAPHICS-AND-BETTER-BATTERY-LIFE-TO-ANDROID.aspx thanks pskink -- You received this message because you are subscribed to the Google Grou

[android-developers] Dalvik Version

2009-06-07 Thread Gavin Aiken
Hi Guys, I am writing the report for my project and I was wondering if anyone could tell me how to find the current version of the Dalvik VM. My phone is a Dev phone running cupcake. I just can't find it, I'm sure it must be obvious but if any of you know I'd really appreciate a pointer. Cheers,

[android-developers] dalvik doesnt seem to recognize classes compiled with groovyc

2009-05-28 Thread maileye
Ive been trying to get groovy running on dalvikvm. And i have been trying the route via groovyc (groovyc -> jar -> dx -> dalvikvm). For testing i put together a jarfile with 3 classfiles, one pure java, one javaclass that invokes a method on a groovy class, and a groovy class. The pure java class

[android-developers] Dalvik conversion error 2 (not annotations)

2009-05-11 Thread Keith Wiley
I am trying to convert my project o SDK 1.5. It won't build with the errror: "Conversion to Dalvik format failed with error 2" I have seen other threads refer to problem with annotations, but the code that is causing problems for me has absolutely no java annotations in it (no at-signs whatsoev

[android-developers] Dalvik Debug Monitor Sometimes Shows Multiple Devices (Sometimes!)

2009-03-03 Thread Graeme
Hi I am seeing some problems when my ADP1 is connected via USB to my Windows dev machine (Win XP). I sometimes see multiple (usually two) devices in the Dalvik Debug Monitor. One of these devcies will disappear when I unplug the ADP1 but one will remain. This is making it rather difficult to inst

[android-developers] Dalvik native libraries thread-safe?

2009-03-02 Thread Pascal Merle
I am using network sockets in a multi-threaded application, and I am struggling with crashes. Using gdbclient/gdbserver I found it c crashing in memory allocation. Looks like memory got corrupted somehow. What is your experience/knowledge? Is it okay to run multi-threaded networking applications

[android-developers] Dalvik spends 7.4% of its time garbage collecting, Android UI spends 7.4% of its time unresponsive

2009-01-07 Thread ______
With the phone sitting *idle*, Dalvik GCs every 3.5sec on average. A GC usually takes ~260ms. That means that a whole 7.4% of the time it is garbage collecting (albeit for only a quarter of a second each time). *7.4% of the time* the UI is completely unresponsive (and this percentage increases

[android-developers] dalvik is not getting implementation of open()

2008-12-09 Thread suchita bhardwaj
Hey all, I am trying to use *com.sun.cldc.io.j2me.socket.protocol* class in android for converting code from j2me to android. But dalvik vm is not getting native implementation of * protected static native int open0(byte hostname[], int port, int mode);* in protocol class.Can anyone te

[android-developers] Dalvik and BOOTCLASSPATH

2008-11-14 Thread Koush
>From adb shell on the emulator, I am prepend the BOOTCLASSPATH to include a jar that contains an implementation of android.widget.EditText. Then from ADB, I launch an activity using the "am" tool. However, "am" is failing to launch at all with the following errors in logcat. Any ideas on how to

[android-developers] dalvik bug?

2008-10-30 Thread Bradley Kite
Hi all, I am running this bit of code within the emulator (SDK 1.0r) Log.d(TAG, "I am here - 1"); Location currentLocation = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); Log.d(TAG, "I am here - 2"); The logcat output never shows the sec

[android-developers] Dalvik virtual machine specifiation

2008-10-14 Thread wiki
Are there any official documentaion available for the Dalvik Virtual Machine? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googleg

[android-developers] Dalvik VM VFY messages

2008-09-08 Thread android_dev
What are these messages in LogCat output? My app seems to run fine but there are several messages like this: DEBUG/dalvikvm(183): VFY: <...> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers"