Re: [android-developers] Re: Why is Android so buggy?

2010-06-07 Thread Dan Bornstein
On Mon, Jun 7, 2010 at 4:04 PM, Dianne Hackborn hack...@android.com wrote: Dalvik [is] now done in the open. Actually, we're not developing in the open yet, but we are working toward it. It is nontrivial to get there for all the reasons you cite. -dan -- You received this message because you

Re: [android-developers] dex fails placing debug info

2010-04-20 Thread Dan Bornstein
On Mon, Apr 19, 2010 at 4:26 PM, Michael Newton michael.new...@gmail.com wrote: I hope someone can offer some insight on this problem. My build was failing with a dex error. After I turned verbosity up to debug I got the following: [...]    [apply] com.android.dx.util.ExceptionWithContext:

[android-developers] Re: Sucky error: java.lang.IllegalArgumentException: already added: Lnet/ponder2/Util;

2009-10-27 Thread Dan Bornstein
On Tue, Oct 27, 2009 at 5:37 AM, LuckyJim ktwi...@gmail.com wrote: I am using the Eclipse plugin and I have the above error. I am responsible for aforementioned sucky error. I admit that it sucks. One of dx's major rough spots is in translating internal exceptions into meaningful messages.

[android-developers] Re: Time to first screen, boot-up time and app-start time?

2009-08-26 Thread Dan Bornstein
On Tue, Aug 25, 2009 at 5:02 PM, Casper Bang casper.b...@gmail.com wrote: People who have digged into Dalvik aren't overly impressed when compared to similar technologies: http://www.koushikdutta.com/2009/01/dalvik-vs-mono.html Please read the comments on that article, which contained some

[android-developers] Re: Change in String.format between 1.1 and .15?

2009-08-10 Thread Dan Bornstein
On Sun, Aug 9, 2009 at 7:51 AM, amiz aarn...@gmail.com wrote: I have an app (SDK 1.1)  that uses  dataOut_str = String.format(%.2f ,dataOut_d); which converts correctly double (dataOut_d) into a string with 2 decimals. With 1.5, I get a runtime exception: 08-09 17:36:45.717:

[android-developers] Re: Serious dx error. Desperately need expert advice.

2009-08-03 Thread Dan Bornstein
First of all, thanks for taking the time to investigate, and I'm glad you've found a workaround for this. As a bit of background, the original version of the code that collects local variable debugging info was written to target an inefficient output representation. The output format was fixed

[android-developers] Re: serialization is taking too long, what can I do in terms of the activity life cycle

2009-07-28 Thread Dan Bornstein
On Mon, Jul 27, 2009 at 9:24 PM, Dianne Hackborn hack...@android.com wrote: On Mon, Jul 27, 2009 at 8:35 PM, rukiman ruksh...@optushome.com.au wrote: Yes I did mean Java serialization. Any reason why I can't use it (apart from it being slow) ? Um...  it being super-crazy slow? :) It's also

[android-developers] Re: [URGENT]Drag Screen like Android Home Screen

2009-07-27 Thread Dan Bornstein
On Sun, Jul 26, 2009 at 5:49 AM, Flavio Montenegro Filho filhovi...@gmail.com wrote: [URGENT]Drag Screen like Android Home Screen Just as an etiquette note, putting a screaming URGENT in your subject line is off-putting and probably as likely to get the opposite effect than the one you intend.

[android-developers] Re: [URGENT]Drag Screen like Android Home Screen

2009-07-27 Thread Dan Bornstein
On Mon, Jul 27, 2009 at 4:16 PM, Flavio Montenegro Filho filhovi...@gmail.com wrote: But the problem remains... Can you help me? Not any more than Romain already did. He pointed you at the source for the Launcher, and you can inspect that to understand how to implement the feature. You might

[android-developers] Re: Fwd: tools dex

2009-07-10 Thread Dan Bornstein
On Fri, Jul 10, 2009 at 1:00 PM, Mark Murphymmur...@commonsware.com wrote: warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.) At least in some cases,

[android-developers] Re: Fwd: tools dex

2009-07-10 Thread Dan Bornstein
On Fri, Jul 10, 2009 at 1:25 PM, Mark Murphymmur...@commonsware.com wrote: Dan Bornstein wrote: That message is only ever produced because of entirely local information about a class, and the trigger condition is exactly as stated [...] I apologize for my mistake -- I was thinking

[android-developers] Re: JIS conversion is ignored!

2009-07-01 Thread Dan Bornstein
On Tue, Jun 30, 2009 at 8:16 PM, Hirohiroy...@hotmail.com wrote: I can resolve this by omitting the input parametter in getBytes as follows. unicode = new String(unicode.getBytes(), ISO-2022-JP); It seems to me getBytes(ISO-2022-JP) won't work... Upon rereading your example, it's not clear

[android-developers] Re: JIS conversion is ignored!

2009-06-30 Thread Dan Bornstein
On Sun, Jun 28, 2009 at 8:18 PM, Hirohiroy...@hotmail.com wrote: I've changed as follows. unicode = new String(unicode.getBytes(ISO-2022-JP), ISO-2022-JP); However it won't convert the string as I expect... That's vexing. Can you please file a bug including a complete compilable/runnable

[android-developers] Re: JIS conversion is ignored!

2009-06-26 Thread Dan Bornstein
On Thu, Jun 25, 2009 at 8:31 PM, Hirohiroy...@hotmail.com wrote:            unicode = new String(unicode.getBytes(ISO2022JP), I believe the encoding name you are looking for is ISO-2022-JP (with dashes). The system should also recognize the name Shift_JIS (which is a different encoding). -dan

[android-developers] Re: Reflection fails on large class

2009-06-15 Thread Dan Bornstein
On Mon, Jun 15, 2009 at 2:43 AM, Hjalmaremail...@gmail.com wrote: Does dalvik have any limitation it puts on classfiles, mainly size related? In groovy we have a huge class thats need to be able to be reflected upon, but it silently fails. IE theres no error during build(dex) or load time

[android-developers] Re: Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-06-02 Thread Dan Bornstein
On Mon, Jun 1, 2009 at 9:20 PM, Robert Green rbgrn@gmail.com wrote: Dan, thanks for clearing that up. Glad to be of service. It's always nice to have *the* guy who wrote the VM (emphasis mine) I definitely can't take all that credit, not being surrounded[*] as I am by the *many* fine

[android-developers] Re: Whole lotta garbage collecting going on.... How do I find out what is being collected?

2009-06-01 Thread Dan Bornstein
On Mon, May 25, 2009 at 1:34 PM, Mark Murphy mmur...@commonsware.com wrote: 2)  What about local variable arrays?  Do those go in the heap (short lived, GC) or on the stack? The array is on the stack. If the array is a primitive array (int[]), that covers everything. If the array is of

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

2009-05-12 Thread Dan Bornstein
On May 11, 6:14 pm, Keith Wiley kbwi...@gmail.com wrote: On May 11, 5:58 pm, Dan Bornstein danf...@android.com wrote: How are you invoking it? From the commandline, dx should emit a Eclipse does it all automatically when it builds. description of any problem to the console. From

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

2009-05-12 Thread Dan Bornstein
On May 12, 3:25 pm, Keith Wiley kbwi...@gmail.com wrote: I know how to give java more space directly, ala -Xms and -Xmx, but not when I run dx as an executable. You can pass the vm that runs dx an argument by prefixing it with - J. So, to set the maximum heap size to 500 megs, you could say -

[android-developers] Re: Davlik bug? UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: [classXXX]

2009-05-11 Thread Dan Bornstein
On May 10, 7:23 pm, Peter Carpenter peter.carpen...@skytechnologies.com wrote: However for each one of these scenarios I keep getting the following exception thrown by the davlik compiler. [...] UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added:

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

2009-05-11 Thread Dan Bornstein
On May 11, 5:40 pm, Keith Wiley kbwi...@gmail.com wrote: Bump.  I've pretty much stated what I need.  I've been fighting with this all day and can't get it fixed.  I tried Retrotranslator, but I'm still getting error 2 ondalvikconversion.  How do I get thedalvik converter to tell me what's

[android-developers] Re: how to add --core-library to Eclipse ?

2009-03-31 Thread Dan Bornstein
On Mon, Mar 30, 2009 at 11:09 AM, Mark Murphy mmur...@commonsware.com wrote: When I tried putting src/java/beans/PropertyChangeEvent.java and src/java/beans/PropertyChangeListener.java in my source tree, though, I triggered the --core-library error message from dx. It seems like there's a lot

[android-developers] Re: how to add --core-library to Eclipse ?

2009-03-30 Thread Dan Bornstein
On Thu, Mar 26, 2009 at 9:43 AM, DaRolla netzprofi.ma...@googlemail.com wrote: I need to know how to add the parameter --core-library to Eclipse, especially to DEX. I managed to work around with activitycreator and ant scripts (build.xml), but this way it takes too long. Where can I

[android-developers] Re: dex failure

2009-03-30 Thread Dan Bornstein
On Mon, Mar 30, 2009 at 11:12 AM, BeWillDir wmmichael...@gmail.com wrote: Now I'm preparing for a trip and I want to continue development on my netbook, but I'm haviing trouble with the build process. It appears to run the compiler OK, and generates a set of class files identical to that on

[android-developers] Re: dex failure

2009-03-30 Thread Dan Bornstein
On Mon, Mar 30, 2009 at 5:46 PM, BeWillDir wmmichael...@gmail.com wrote: The dx command worked OK on the original system, but not on the new one. Here's why: The proximate cause was that I was sloppy installing java. The new (Debian) system has a java command that does this:

[android-developers] Re: Insanely slow read() from HttpsURLConnection...

2009-03-28 Thread Dan Bornstein
On Sat, Mar 28, 2009 at 3:16 PM, Marc gram...@gmail.com wrote: So I have the following code... StringBuilder sb = new StringBuilder(4096); while (true) { int i = in.read(); if (i == 0)

[android-developers] Re: Optimizing very big switch?

2009-03-26 Thread Dan Bornstein
On Thu, Mar 26, 2009 at 3:06 PM, HotHeart korshakov.ste...@gmail.com wrote: I have switch with 255 cases in my project - DroidGear... How i could optimize it? Other people have already covered much of the territory, but I wanted to add that it is more efficient to execute a switch code where

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Dan Bornstein
On Mar 25, 4:37 pm, Mark Murphy mmur...@commonsware.com wrote: Stoyan Damov wrote: I can't provide a way to reproduce the problem. [... helpful advice elided ...] Providing steps to reproduce failures, whether in tools or class libraries or whatever, has been a standard of professional

[android-developers] Re: getting android_id from GoogleLoginServiceBlockingHelper?

2009-02-26 Thread Dan Bornstein
On Thu, Feb 26, 2009 at 12:15 PM, strazzere str...@gmail.com wrote: Here is a small snippet; [...] I'm sorry to harp on this, but please provide a complete, *compilable* and *runnable* example, along with what you actually observed when running it (e.g., log output) I don't doubt that you are

[android-developers] Re: getting android_id from GoogleLoginServiceBlockingHelper?

2009-02-25 Thread Dan Bornstein
On Mon, Feb 23, 2009 at 8:31 PM, strazzere str...@gmail.com wrote: Everything seems to be going smoothly until I get to running the project and the dalvikvm spits out errors such as rejecting opcode 0x6e at 0x000e which seems to make no sense to me. Can you provide a bit more context from the

[android-developers] Re: Java Compatibility problems with getFields method in Android java.lang.Class

2009-02-12 Thread Dan Bornstein
On Thu, Feb 12, 2009 at 12:55 AM, sancane sanc...@gmail.com wrote: I only want to know if there is some way to get the declaration order of the fields in the main class. There is no such functionality in Dalvik. And to reiterate, though maybe it happens to work on your desktop VM, it is

[android-developers] Re: Generate .apk without debug info in .class

2009-02-04 Thread Dan Bornstein
On Tue, Feb 3, 2009 at 2:50 PM, Nanard bsegon...@free.fr wrote: If I test my application and generate a .apk, or if I use the 'Export unsigned' menu, I get the same application size. How can I remove debug information for my final releases ? By debug information I assume you mean the local

[android-developers] Re: audio recording to split (small) files without dropping or overlapping samples

2009-01-16 Thread Dan Bornstein
On Thu, Jan 15, 2009 at 5:16 PM, Dave Sparks davidspa...@android.com wrote: I am pretty sure that won't work. Why do you want to record a bunch of small audio files without dropping samples? Not that this is a target that Android explicitly caters to, but my portable digital recorder can be

[android-developers] Re: :: using System.gc();

2008-12-22 Thread Dan Bornstein
On Sun, Dec 21, 2008 at 11:34 PM, Imran imran...@gmail.com wrote: hey can i use System.gc() in my activity to request for garbage collection. will it work () .. will the garbage collector be called ? Yes it will. However, let me warn you that in my experience adding explicit calls

[android-developers] Re: support for encryption

2008-12-19 Thread Dan Bornstein
On Fri, Dec 19, 2008 at 7:25 AM, qvark joseluishuertasfernan...@gmail.com wrote: which is the JCE provider you use under the hoods? Bouncy castle? If so, which version? I cannot find built-in support for PKCS12 keystores and I cannot use BC as a third party library because their classes

[android-developers] Re: support for encryption

2008-12-18 Thread Dan Bornstein
On Thu, Dec 18, 2008 at 11:30 AM, sthustfo sthus...@gmail.com wrote: Does the current android SDK provide support for 1. AES-128 encryption 2. MD5 hash computation Yes on both counts. AES is available for use via the class javax.crypto.Cipher (along with helpers CipherInputStream and

[android-developers] Re: Thread Allocation Question

2008-12-11 Thread Dan Bornstein
On Wed, Dec 10, 2008 at 2:03 PM, beachy beachy.g...@gmail.com wrote: does the JVM scheduler use time slicing when allocating process to threads of the same priority? On Wed, Dec 10, 2008 at 6:18 PM, Dianne Hackborn hack...@android.com wrote: There is no JVM scheduler, There isn't even a JVM.

[android-developers] Re: How to open a .dex file with emulator?

2008-12-03 Thread Dan Bornstein
On Wed, Dec 3, 2008 at 4:55 AM, Paulo Weber [EMAIL PROTECTED] wrote: How to open a .dex file with emulator? Can you be more specific? What are you trying to accomplish? -dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: missing javax audio?

2008-11-20 Thread Dan Bornstein
On Thu, Nov 20, 2008 at 11:24 AM, Dorn Hetzel [EMAIL PROTECTED] wrote: There already are Android-specific classes and methods for a lot of audio-related functionality... At least for my applications, which would be new code for the android platform, not ports from somewhere else, I don't

[android-developers] Re: missing javax audio?

2008-11-20 Thread Dan Bornstein
On Thu, Nov 20, 2008 at 12:16 PM, blindfold [EMAIL PROTECTED] wrote: You can find the javax.sound code, as it currently exists, in the open source tree at /platform/dalvik/libcore-disabled/. [...] ...the specific patches she presumably meant would be patches to make this as-yet incomplete