[android-developers] Re: DexClassLoader.loadClass fails on Android 4.2.2 but works on 2.1.

2013-07-16 Thread fadden
On Tuesday, July 9, 2013 9:00:41 AM UTC-7, Grigory F. wrote: *DexClassLoader.loadClass* fails if param *dexPath* (of *...newDexClassLoader(String dexPath ...)* does not end with *.jar*. Since when does file-extension matter on *nix systems?! Unbelievable... Since you get different

[android-developers] Re: [Urgent]TraceView DataFile format

2012-11-14 Thread fadden
It's documented in the code that generates it: dalvik/vm/Profile.cpp. * Record format v3: * u2 thread ID * u4 method ID | method action * u4 time delta since start, in usec * u4 wall time since start, in usec (when clock == dual only) On Tuesday, November 13, 2012 5:33:35 PM UTC-8,

[android-developers] Re: Java book (like C KR and C++ Programming Language)

2011-06-10 Thread fadden
On Jun 8, 6:55 am, luciofm luci...@gmail.com wrote: I have a C and C++ background and i'm looking for THE java book, like the C Programming Language, best know as KR, for C and the C++ Programming Language by Bjarne Stroustrup for C++. If you're looking for reference material, _The Java

[android-developers] Re: v4 Fragments library VerifyError crash

2011-05-27 Thread fadden
On May 26, 1:57 am, Dave Johnston john...@gmail.com wrote: Aye, I'm going to try enabling/disabling certain optimisation passes and see if I can isolate the one causing this issue. Methods that are only referenced via reflection may be dropped as dead. If that's what's happening here, there's

[android-developers] Re: help: all threads have the same pid, tid, same priority

2011-05-27 Thread fadden
On May 25, 5:17 pm, redmapleleaf redmaplel...@gmail.com wrote: Thread t = new Thread(r); t.start(); then a new thread should be created off of the parent process. Is this not true? A new thread is created that executes Thread.run(). If you do exactly what you have typed above, you will

[android-developers] Re: help: all threads have the same pid, tid, same priority

2011-05-25 Thread fadden
On May 25, 4:49 am, redmapleleaf redmaplel...@gmail.com wrote: I was expecting that all the threads should have different tid but they are all of the same. Also it seems that they don't have the low priority from my main activity as my GUI freeze every time the thread start receiving data or

[android-developers] Re: NFC JNI Error on Nexus S

2011-05-25 Thread fadden
On Apr 20, 1:25 pm, Myroslav Bachynskyi bachyns...@gmail.com wrote: 04-16 15:51:32.172: WARN/dalvikvm(567): ReferenceTable overflow (max=512) 04-16 15:51:32.172: WARN/dalvikvm(567): Last 10 entries in JNI local reference table: [...] 04-16 15:51:32.215: ERROR/dalvikvm(567): VM aborting This

[android-developers] Re: Debugging Killed Activity

2011-05-25 Thread fadden
On May 22, 6:46 pm, Kevin khant...@hotmail.com wrote: Anyway, it crashes while restoring the state, but when it's killed the debugger detaches, so when it's restarted after the camera is done, I don't have a debugger to see what's causing the crash.  I know what function is causing the crash

[android-developers] Re: ArrayIndexOutOfBounds in Thread.getState() ...

2011-05-19 Thread fadden
On May 18, 1:56 pm, Pent supp...@apps.dinglisch.net wrote: Caused by: java.lang.ArrayIndexOutOfBoundsException at java.lang.Thread.getState(Thread.java:812) at net.dinglisch.android.taskerm.ExecuteService.onStart(Unknown Source) Weird. That line is: int state =

[android-developers] Re: v4 Fragments library VerifyError crash

2011-05-17 Thread fadden
On May 16, 11:44 pm, Dave Johnston john...@gmail.com wrote: java.lang.VerifyError: android.support.v4.app.FragmentManagerImpl at android.support.v4.app.FragmentActivity.init(SourceFile:87) (...) The exception message is a bit lacking. There's more detail in the logcat output. -- You

[android-developers] Re: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

2011-04-08 Thread fadden
On Apr 3, 3:09 am, Naresh Samba naresh@gmail.com wrote: Class ref in pre-verified class resolved to unexpected implementation This i believe because the dex conversion of the class didn't match with wat was available as a shared library on the device? If you look at the logcat output

[android-developers] Re: Suppoting android 1.6. VerifyError.

2011-03-18 Thread fadden
On Mar 18, 5:30 am, Kirill batal...@gmail.com wrote: I want to support  android 1,6 and at the same time autocomplite e- mail in other vesrions of SDK See http://developer.android.com/resources/articles/backward-compatibility.html -- You received this message because you are subscribed to the

[android-developers] Re: Reasoning behind disabling certain ProGuard optimizations?

2011-03-14 Thread fadden
FWIW, the arithmetic optimizations were fixed a while back (2.0 / eclair). This doesn't help if you want your app to run on Donut though. If you know of anything that doesn't work in Froyo, please file a bug on b.android.com. An example, for the curious:

[android-developers] Re: java.lang.VerifyError error at the time of using gson library on HTC desire

2011-03-10 Thread fadden
On Mar 10, 3:49 am, Manish Garg mannishga...@gmail.com wrote: I am getting java.lang.VerifyError error at the time of parsing one json response on HTC desire. My application is running fine on other device, only on HTC desire I am getting this error. What versions of Android are they running?

[android-developers] Re: Global Variables

2011-03-09 Thread fadden
On Mar 9, 2:13 pm, TreKing treking...@gmail.com wrote: On Wed, Mar 9, 2011 at 4:10 PM, Kenny Riddile kfridd...@gmail.com wrote: Singletons are global variables. Uh ... no ... no they're not. I think this about covers it: http://sites.google.com/site/steveyegge2/singleton-considered-stupid

[android-developers] Re: startMethodTracing() can't open trace files

2011-03-08 Thread fadden
On Mar 8, 5:04 am, OldSkoolMark m...@sublimeslime.com wrote: I looked at the related posts, but my problem seems more basic. Full path, or no path, file extension or not, I get a Unable to open trace file '/sdcard/traceit.trace': Permission denied error when I run on the emulator. Do I need to

[android-developers] Re: How to take advantage of dual-core processing

2011-03-04 Thread fadden
On Mar 3, 1:29 pm, webmonkey webmonke...@gmail.com wrote: Let's say you have a task that is suitable for parallel processing. Can you detect the number of cores in Android and then make sure that the threads you create run on each separate core. If you have parallelizable tasks, just put them

[android-developers] Re: Announcing: The Android Developers Union

2011-03-04 Thread fadden
On Mar 3, 6:52 am, TreKing treking...@gmail.com wrote: My point is simply this: getting actual support or answers for legitimate issues relating to the Android Market is nigh impossible - regardless of the channel one goes through. Meanwhile a thread with the threat of being spammed gets the

[android-developers] Re: How to take advantage of dual-core processing

2011-03-04 Thread fadden
On Mar 4, 1:58 pm, webmonkey webmonke...@gmail.com wrote: When Honeycomb is open-sourced will we be able to see (and copy) how RenderScript schedules these tasks, or is that handled to deep in the system. I can't tell you much about RenderScript innards and source release schedules (mainly

[android-developers] Re: 3.0 release and multi core

2011-03-01 Thread fadden
On Feb 23, 3:48 pm, Maximilian Odendahl maxodend...@gmail.com wrote: reading Support for multicore processor architectures as one of the new major features, I have a quick questions in regards to multi core development: What base platform does the 3.0 preview emulator use? Does it have two

[android-developers] Re: What causes a java.lang.VerifyError?

2011-02-17 Thread fadden
On Feb 17, 1:46 pm, Bret Foreman bret.fore...@gmail.com wrote: I did a clean rebuild and got the same very uninformative error in the logcat. I'll try stepping through the code and see if I can isolate the call that's causing it. Look a few lines above the exception in logcat for some messages

[android-developers] Re: Garbage collector hangs OpenGL on HTC Evo

2011-02-17 Thread fadden
On Feb 16, 8:07 am, Bill Tschumy b...@otherwise.com wrote: Anytime the LogCat shows a GC_FOR_MALLOC or a GC_EXTERNAL_ALLOC, the app hangs with OpenGL in this LockCondition.  It appears that GC_EXPLICT, for the most part, does not cause a problem (maybe these are smaller allocs, I don't

[android-developers] Re: Debugging Exceptions

2011-02-17 Thread fadden
On Feb 14, 2:11 am, Rab m...@wizzy.co.uk wrote: It almost looks as though the framework handles the exception, unwinds the stack and then reports the issue. Almost. Eclipse is configured to break on uncaught exceptions. Your code is running in an app framework that catches the exception and

[android-developers] Re: Java Hangs When Converting 2.2250738585072012e-308

2011-02-04 Thread fadden
On Feb 2, 3:53 pm, Sanity Android sanity.andr...@gmail.com wrote: I just tested a known java bug on Android.. It happens as well :( http://www.exploringbinary.com/java-hangs-when-converting-2-225073858... Which release of Android did you try it on? -- You received this message because you

[android-developers] Re: Tracking memory allocation over time

2011-01-26 Thread fadden
On Jan 25, 10:41 pm, William Ferguson william.ferguson...@gmail.com wrote: Ie it only shows those allocation that are resident in memory at the time you click on Get Allocations. So if anything has been GCed prior to that its not visible. It always shows the last (up to) 512 allocations. The

[android-developers] Re: Android Development Income Tax Question

2011-01-21 Thread fadden
On Jan 21, 9:17 am, TreKing treking...@gmail.com wrote: Thanks. You know what, I'm going back to TurboTax, going to fill out everything to the best of my ability, then going to pray. Get the Turbo Tax Home Small Business edition (the one for sole props and single-member LLCs, not the one for

[android-developers] Re: Traceview + performance problem

2011-01-21 Thread fadden
On Jan 20, 12:56 pm, Roger Podacter rogerpodac...@gmail.com wrote: honestly i've found that scrolling around most any view, app, wherever, spikes the CPU pretty much to the same levels your traceview is showing.  perhaps you just never noticed it before?  or have you specifically compared it

[android-developers] Re: The curious case of the impossible ArrayIndexOutOfBoundsException

2011-01-19 Thread fadden
That is definitely strange. I can't see any reason why that exception would be thrown from that point. If you suspect that the object has been damaged, there's an excellent chance that your improved exception handler will throw an exception. Or crash. Either way you will have learned something

[android-developers] Re: Command line device debugging -- set breakpoint in the code?

2010-12-17 Thread fadden
On Dec 14, 1:33 pm, Tobiah t...@tobiah.org wrote: Looking at the jdb help, I should be able to set breakpoints given a method name or line number, but it would be nice to just edit them right into the code.  Is this possible? I'm not aware of such a feature in jdb. You'd need to have some way

[android-developers] Re: Do new threads inherit the priority of the creating thread in native code?

2010-12-17 Thread fadden
On Dec 15, 4:03 pm, Doug beafd...@gmail.com wrote: Does anyone know in Android/Linux if new threads inherit the priority of the creating thread?  I'm setting the priority of a thread using android.os.Process.setThreadPriority, which calls permanently into native code, and that native code is

[android-developers] Re: The String8 bug

2010-12-10 Thread fadden
On Dec 8, 8:23 pm, Daniel Tsai daniel.tsai@gmail.com wrote: I think it sould be String8 tmp(*this). Yes. It looks like this was fixed in Gingerbread. -- 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] Re: Attach debugger to app that is already running

2010-12-02 Thread fadden
On Dec 2, 8:58 am, Kostya Vasilyev kmans...@gmail.com wrote: - Run your game. - In Eclipse, switch to DDMS perspective (green Android, top-right toolbar). - In the Devices window (top-left), select your process. - Click the green bug icon in the toolbar above. Also, if you want to wait at a

[android-developers] Re: Issues debugging multi-threaded Android app?

2010-11-29 Thread fadden
On Nov 27, 8:47 am, darrinps darri...@gmail.com wrote: I was debugging just fine until I added a thread to do some background work. After I did that, the debugger could no longer connect to my Samsung Galaxy. I would guess these were coincidental, not cause and effect. Does the app appear at

[android-developers] Re: Unexpected extra byte occurring in binary logcat entry stream

2010-11-23 Thread fadden
On Nov 19, 8:07 am, Hal hal.blackb...@gmail.com wrote: The byte (in this instance) is 0x1D at offset 0x14 : | 2E 00 0D 0A  C0 7C 00 00  00 9A 00 00  00 EC BA E5  4C | À|...ìºåL [...] The extra byte shifts the payload by 1, so the payload length becomes incorrect. I can't see

[android-developers] Re: am profile command error Process not debuggable

2010-11-23 Thread fadden
On Nov 18, 5:52 pm, sudeep bhowmick sudeep.bhowm...@gmail.com wrote: java.lang.SecurityException: Process not debuggable: ProcessRecord{xx/xx} This app has multiple activities and threads. How do I deal with this? I do not have the source code for this app and hence I do not have the

[android-developers] Re: System.nanoTime() for Dual Core processors

2010-11-18 Thread fadden
On Nov 12, 10:27 am, chromeboy pgar...@codeaurora.org wrote: We are running the DALVIK Virtual Machine tests from 057-iteration- performance/ suite, and we don't It's a bad test. I don't think it succeeds on anything. It needs to go away. Has anyone seen problems with this API on a dual

[android-developers] Re: ClassNotFoundException for a compiled class

2010-11-18 Thread fadden
On Nov 15, 3:32 pm, pskr pskrt...@gmail.com wrote: I verified that the .class file exists in out/target/common/obj/APPS/ xxxApp_intermediates/classes.jar, classes-full-debug.jar, classes-full- names.jar Pull the APK off the device with adb pull and then use dexdump or dexlist to make sure the

[android-developers] Re: JNI Global Variables And activity change? / SIGKILL vs SIGTERM

2010-11-08 Thread fadden
On Nov 7, 9:47 am, lomoflicker evrenbin...@gmail.com wrote: 1) Do cached global environments get deleted or somehow get corrupted when activities change ? Not by the VM. 2) SIGKILL vs SIGTERM. I know the differences of both. Can android native threads handle these signals ? Nothing can

[android-developers] Re: Child Thread Blocking Problems

2010-10-28 Thread fadden
On Oct 28, 12:35 pm, DanH danhi...@ieee.org wrote: Lemme guess:  You created a Thread but you never started it. Calling run() instead of start() is tremendously popular. :-) It also causes a memory leak, because Threads get added to ThreadGroup when they're created and don't get removed until

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-21 Thread fadden
On Oct 20, 11:10 am, DanH danhi...@ieee.org wrote: The wrapper class example is defective if the verifier is conventional -- doesn't have the  swizzle you describe since 1.6. It works because the code does something like: if (version is 2.0 or later) use wrapped stuff else feature

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-20 Thread fadden
On Oct 19, 6:47 pm, DanH danhi...@ieee.org wrote: Even if you never actually execute the code that's causing the problem, the verifier will reject it, since it's doing a static check and can't tell what code is or isn't executed. That's a pretty concise explanation of the difference between

[android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread fadden
On Oct 19, 2:11 pm, kk kkostia...@gmail.com wrote: Is there any way to get more info as to what is causing this? I.e. what in my code is causing the GC to kick in... In the stand-alone DDMS there is an allocation tracker tab. Select your game, click start tracking, and after fiddling with your

[android-developers] Re: Always getting java.lang.VerifyError on 1.6 but fine on 2.1 and 2.2

2010-10-19 Thread fadden
On Oct 19, 2:25 am, Alex Xin xinxi...@gmail.com wrote: I have an app that runs perfect on 2.2 and 2.2 but always getting VerifyError on 1.6 while startup, I don't think that my app cannot run under 1.6 because I don't call any APIs that don't support 1.6. Post the output from logcat. Right

[android-developers] Re: Memory Leaks

2010-10-18 Thread fadden
On Oct 18, 8:58 am, John Gaby jg...@gabysoft.com wrote:     public void onCreate(Bundle savedInstanceState)     {         super.onCreate(savedInstanceState);         MyClass mc = new MyClass();         mc = null;         setContentView(R.layout.main);         System.gc();     } An

[android-developers] Re: How to enable tracing in Android

2010-10-15 Thread fadden
On Oct 14, 6:39 pm, Peter Teoh htmldevelo...@gmail.com wrote: I saw this random post: http://pastebin.com/m79d3d2ae I am curious - how to enable such kind of tracing in Android?   It is very informative to know for debugging. Looks like logcat output. adb logcat or the logcat pane in DDMS

[android-developers] Re: VerifyError: arbitrarily rejecting large method

2010-10-13 Thread fadden
On Oct 13, 9:42 am, MarVel marina.velik...@gmail.com wrote: 10-12 16:50:15.291: WARN/dalvikvm(4848): VFY: arbitrarily rejecting large method (regs=134 count=17618) ... I saw that in a recent discussionhttp://groups.google.com/group/android-developers/browse_thread/threa... Dirk has

[android-developers] Re: Wierd memory leak

2010-10-08 Thread fadden
On Oct 8, 3:57 am, DanH danhi...@ieee.org wrote: Well, I would hope that the Java threadsafe classes are still threadsafe.  But essentially none of the UI is, and the structure of the system greatly discourages sharing data between threads. Allowing multiple threads direct access to UI state

[android-developers] Re: Using Allocation Tracker in DDMS

2010-10-05 Thread fadden
On Oct 4, 6:14 pm, Bret Foreman bret.fore...@gmail.com wrote: Is there a way to cause the application to do a core dump and is there a tool for analyzing dumps? In this case it's leaking surfaces, which aren't related to the managed heap in the VM (and don't have much bearing on the app's

[android-developers] Re: VerifyError reloaded

2010-10-05 Thread fadden
On Oct 4, 5:09 pm, DanH danhi...@ieee.org wrote: The verifier must create what is commonly known a use-def chains for the bytecodes in a method, to determine which results from one bytecode can flow as inputs to another bytecode (data flow).  The traditional way to do this (and the one used in

[android-developers] Re: VerifyError reloaded

2010-10-05 Thread fadden
On Oct 5, 11:28 am, DanH danhi...@ieee.org wrote: In the bitmap scheme each stack entry/register has several bits assigned, one for each possible type that could conceivably reach it. If an object pointer is assigned then all the bits for that class hierarchy are set, and when flows combine

[android-developers] Re: VerifyError reloaded

2010-10-04 Thread fadden
On Sep 30, 3:59 pm, DanH danhi...@ieee.org wrote: Of course, the real problem is that the verifier is mis-designed.  I'm guessing it uses reference chains. I'm not sure those two sentences go together. :-) -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: VerifyError reloaded

2010-10-04 Thread fadden
On Oct 4, 1:45 pm, DanH danhi...@ieee.org wrote: Reference chains are slow and take up too much space. I don't know what you mean by reference chains. Could you point out where in the code they're being used? -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: VerifyError reloaded

2010-09-30 Thread fadden
On Sep 29, 11:32 am, Dirk dirkb...@googlemail.com wrote: In order to get around the problem, I tried to replace the whole switch-statement with lots of if-elseif statements. Unfortunately, another problem arose. The Verifyer now says: 09-29 18:02:44.058: WARN/dalvikvm(450): VFY: arbitrarily

[android-developers] Re: VerifyError reloaded

2010-09-28 Thread fadden
On Sep 28, 11:28 am, Dirk dirkb...@googlemail.com wrote: Before filing a bug, I would feel much better if someone else could have a look and approve that there's really something not working as it should. It's a bug in the verifier. Specifically, dvmCheckSwitchTargets is treating the switch

[android-developers] Re: VerifyError reloaded

2010-09-27 Thread fadden
On Sep 25, 12:33 pm, Dirk dirkb...@googlemail.com wrote: The project I am trying to build and run contains only Java sources (no libraries). Therefore, I assume, that if these are compiled successfully, they would pass the verification process. But during runtime, I get the following error:

[android-developers] Re: VM aborting on MediaScannerService scan

2010-09-27 Thread fadden
On Sep 25, 8:26 pm, kevens hao ithjf.kev...@gmail.com wrote: When I query the media store database, sometimes occur VM aborting on MediaScannerService. Please refer the attched log info. [...] 12-31 15:30:15.469: DEBUG/MediaScannerService(1724): start scanning volume external 12-31

[android-developers] Re: time in traceview

2010-09-26 Thread fadden
On Sep 24, 4:45 pm, Vesmar ves...@gmail.com wrote: Why there is this huge difference between real world time and trace view time? May be because I have a lot of idle time? The method profiler uses a per-thread CPU usage timer provided by Linux. While other threads or other processes are

[android-developers] Re: UnsatisfiedLinkError: Library XXXX not found

2010-09-24 Thread fadden
On Sep 24, 10:11 am, DanH danhi...@ieee.org wrote: Ah, it kinda came back to me a little more.  In your particular case where you have multiple classes referencing the lib you see this: Native class A is loaded under loader X and loads the lib under that loader.  Native class B is loaded under

[android-developers] Re: LogCat and threads

2010-09-22 Thread fadden
On Sep 22, 10:18 am, Chris Stratton cs07...@gmail.com wrote: You can probably call android.os.Process.myTid() and include the result in your message It's actually present in the log, just not normally displayed. adb logcat -v thread will show it, but unfortunately whoever implemented this had

[android-developers] Re: How can I track down a crash in a .so without a stack trace?

2010-09-21 Thread fadden
On Sep 21, 6:56 am, Leigh McRae leigh.mc...@lonedwarfgames.com wrote:   Thank you all for the very detailed responses.  The game is all Java and the .so isn't mine so I would have to have the source for the driver I am guessing.  Also I can't get it to crash on my Milestone or the simulator.  

[android-developers] Re: VM aborting

2010-09-17 Thread fadden
On Sep 16, 1:40 am, chetan chetanchauha...@gmail.com wrote:             I have one service name syncservice which is getting killed himself. Looks that VM aborting it. Please have look and guide me. [...] W/dalvikvm(  268): JNI WARNING: JNI method called with exception raised W/dalvikvm(  

[android-developers] Re: Android NDK has a bug in socket recvfrom ????

2010-09-09 Thread fadden
On Sep 7, 10:02 pm, HISONA hison...@gmail.com wrote: When, I call recvfrom function, but struct sockaddr *addr parameter returns NULL value. [...] int udp_read(int socket_no, char *str, int len, struct sockaddr *addr) {         int read;         return recvfrom(socket_no, str, len, 0,

[android-developers] Re: DDMS Heap Dump permissions problem

2010-09-02 Thread fadden
On Sep 1, 5:04 pm, mrmanuke mrman...@gmail.com wrote: D/ddm-heap(19153): Heap dump: file='/sdcard/com.bunnies.Shhh.hprof' E/dalvikvm(19153): hprof: can't open /sdcard/com.bunnies.Shhh.hprof- hptemp: Perm ission denied. I've tried this on an actual device (HTC Desire w/ 2.1 Eclair) and an

[android-developers] Re: convert .dex file to java back to .dex

2010-08-18 Thread fadden
On Aug 13, 11:57 am, kevinjirbo ke...@jirbo.com wrote: I need to decompile a .dex file back into java to edit it and recompile it back into .dex. I then need to put all the files back into the .apk format. How would I do this? There seems to be the beginnings of such a project here:

[android-developers] Re: Do we need to call System.gc() ?

2010-08-16 Thread fadden
On Aug 11, 10:03 am, Indicator Veritatis mej1...@yahoo.com wrote: Indeed: there seems to be a consensus among certain very experienced Java users, including Scott Myers (Effective Java) and Bruce Eckel (Thinking in Java). That consensus is that there are three conspicuous mistakes in the

[android-developers] Re: How to dump all thread stacks?

2010-08-05 Thread fadden
On Aug 5, 9:24 am, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I ended up writing an app that sleeps forevern in an event handling function. Whenever I need to dump stacks, I just run this app and then adb pull /data/and/traces.txt If you send SIGQUIT (signal 3) to a process, it

[android-developers] Re: DDMS Allocations tracker not picking up activity when using a real phone

2010-08-05 Thread fadden
On Aug 4, 1:09 am, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 4, 2010 at 12:24 AM, Bob Kerns r...@acm.org wrote: Also, you meant, unless it is rooted. Though I haven't reviewed your list in detail, many at least DO work on a rooted device. True, and they probably also work on

[android-developers] Re: DDMS Allocations tracker not picking up activity when using a real phone

2010-08-03 Thread fadden
On Aug 3, 3:27 pm, Mark Murphy mmur...@commonsware.com wrote: Many DDMS features only work on the emulator. It would not surprise me if this does not work on a device. The Allocation Tracker feature should work equally well on both. Pretty much everything but Emulator Control should work,

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

2010-07-27 Thread fadden
On Jul 26, 5:50 pm, Luis David Pedrosa luis.david.pedr...@gmail.com wrote: When I try to debug the issue by stepping through the code line by line, I can never pin point an exact place that consistently causes the crash, but it does crash every time. I have tried this out on Android 1.6 with an

[android-developers] Re: Attaching to DDMS

2010-07-27 Thread fadden
On Jul 27, 9:11 am, WindowsNT windows...@gmail.com wrote: I am trying to build my own IDE to write android apps (to get rid of eclipse eventually) and I am not sure how to debug. OK to build, I got the apk, but what do I do after I have connected to port 8700 to DDMS ? Is there a description

[android-developers] Re: external jar problem --java.lang.verifyerror

2010-07-23 Thread fadden
On Jul 23, 2:08 am, cindy ypu01...@yahoo.com wrote: I added the jar as external jar for other application. It can compile correctly. However, when it runs, I always get the error Jave.lang.verifyError. What does the full error look like? There should be some additional information from the

[android-developers] Re: InstructionCount in nested functions

2010-07-23 Thread fadden
On Jul 22, 5:15 pm, DanH danhi...@ieee.org wrote: Documentation is definitely a bit sparse. It's not what you'd call a tier 1 feature. :-) -- 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] Re: What is a WeakReference?

2010-07-22 Thread fadden
On Jul 22, 12:57 pm, Kostya Vasilyev kmans...@gmail.com wrote: I remember seeing somewhere that Dalvik didn't initially support Soft / Weak references, and this was implemented at some point. Can someone clarify: starting with what version of Dalvik / Android these are available? Soft, weak,

[android-developers] Re: InstructionCount in nested functions

2010-07-22 Thread fadden
On Jul 22, 8:28 am, Andrius andrius.auci...@gmail.com wrote: I'm not sure whether I'm badly misusing InstructionCount or there is a bug, but let's assume the first one for now... I see the same thing. Not sure why. Looks like you'll need to avoid nested invocations of it for now. -- You

[android-developers] Re: how to get function call trace on android phones?

2010-07-22 Thread fadden
On Jul 21, 5:53 am, Shuo Deng dengshuoama...@gmail.com wrote: Is there any tool that can get longer trace? Do you think we can write a debugger by ourselves and attach it to the VM? The JDK includes a sample JDI program called trace that might do what you want:

[android-developers] Re: Issue with getByteArrayRegion returning LARGE byte arrays. (JNI Code)

2010-07-16 Thread fadden
On Jul 15, 11:56 am, philip hays blackspyder31...@gmail.com wrote:         jbyte* imageData_out = (*env)-NewByteArray(env, length); NewByteArray returns a jbyteArray, not a pointer to jbyte.         (*env)-GetByteArrayRegion(env, imageData_in, 0, length, (jbyte*)imageData_out); This copied

[android-developers] Re: how to get function call trace on android phones?

2010-07-14 Thread fadden
On Jul 13, 11:44 pm, Shuo Deng dengshuoama...@gmail.com wrote: Does anybody know how can I get the build-in function call trace on Android phone? Traceview: http://developer.android.com/guide/developing/tools/traceview.html -- You received this message because you are subscribed to the

[android-developers] Re: Attach debugger to a process running in the emulator via eclipse.

2010-07-14 Thread fadden
On Jul 13, 2:26 pm, MB manoj.bi...@gmail.com wrote: Yes, it is enabled. I killed the process in step 1.) via the suspend/ terminate button in the eclipse debugger gui. After the process is killed I re launch it in the emulator. When it is relaunched, I want to re-attach the debugger. Open the

[android-developers] Re: Do threads cache instance variables?

2010-07-07 Thread fadden
On Jul 7, 12:20 pm, Al Sutton a...@funkyandroid.com wrote: Try using the java keyword volatile in you variable declaration. Volatile doesn't matter for interpreted Dalvik on a uniprocessor. The interpreter always executes all field access instructions and doesn't do any reordering, so volatile

[android-developers] Re: Android and Java Reflection to call a higher API level function/abstract class

2010-07-07 Thread fadden
On Jul 6, 2:23 am, WindowsNT windows...@gmail.com wrote: How can I resolve all this Java stuff ? Seems like you need to wrap it at a higher level. Some thoughts on a reflection alternative are here: http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html --

[android-developers] Re: Garbage Collection Infinit Loop: clamp GC FOR MALLOC Grow heap loop

2010-07-07 Thread fadden
On Jul 6, 6:43 am, TjerkW tje...@gmail.com wrote: Basically this stops me from properly implementing a background file upload. Anybody has an idea what is going on here? Looks like the heap is full. What's taking up all that space? Is something catching and ignoring OOM? -- You received

[android-developers] Re: Is there any Dalvik bytecoder available?

2010-07-07 Thread fadden
On Jul 6, 1:49 am, Gonzalo clxi...@gmail.com wrote: Is there any Dalvik bytecoder available or an ongoing project that I can join/check that is working on this issue? I'm not sure what you mean by bytecoder. You can generate Java bytecode and convert it with dx, but most Android devices are a

[android-developers] Re: println needs a message

2010-07-07 Thread fadden
On Jul 1, 11:18 pm, Brad Gies rbg...@gmail.com wrote: It looks like you are logging something and the message is null. See also: http://code.google.com/p/android/issues/detail?id=9211 -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: How to change ClassLoader of Activity

2010-06-30 Thread fadden
On Jun 25, 5:59 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 25, 2010 at 8:47 PM, James Wang jameswangc...@gmail.com wrote: So what Thread's ContextClassLoader for? Beats me -- can't even find it in the source code. All I know is that this question of replacing the system

[android-developers] Re: Thread Problem

2010-06-21 Thread fadden
On Jun 17, 9:40 am, YuviDroid yuvidr...@gmail.com wrote: what you need is a boolean var that checks whether to continue 'doing work', or stop the thread. Like this: public void run () {     while (!stopThread) {         doSomeWork();     } } If you use this approach, declare stopThread

[android-developers] Re: How to debug endless loop?

2010-06-21 Thread fadden
On Jun 16, 1:15 pm, MartinB bjornsson.mar...@gmail.com wrote: What kind of debugging mechanisms are available in this case? I've had a quick look at 'traceview' but the problem is that I have to call Debug.stopMethodTracing() to write profiling data from the recording buffer to file, and I am

[android-developers] Re: Native codes do not respect Overriding

2010-06-21 Thread fadden
On Jun 16, 11:34 am, Mehdy bohl...@gmail.com wrote: I've chased the chain of method calls and reached native methods and my only explanation is android Native codes to not respect method overriding and call the original version of methods in Canvas. What native code are you referring to? --

[android-developers] Re: Getting Hprof dump from application code

2010-06-21 Thread fadden
On Jun 15, 10:32 pm, Natraj rajaze...@gmail.com wrote: Do we need to have any special permission to kill other process from our process ? Or is it a built issue ? can you please suggest some possible way to get Hprof dump for other processes from application code?. You're running up against

[android-developers] Re: VM aborted and Framework disconnected

2010-06-21 Thread fadden
On Jun 15, 3:12 am, sweetdevil shinningb...@gmail.com wrote: 01-06 07:45:07.814: WARN/dalvikvm(1063): JNI global reference table summary (2001 entries): ... 01-06 07:45:07.854: WARN/dalvikvm(1063):   934 of Ljava/lang/ref/ WeakReference; 28B (934 unique) 01-06 07:45:07.874:

[android-developers] Re: Making the Java assert statement work

2010-06-21 Thread fadden
On Jun 16, 12:26 am, A Curious Developer imdb...@yahoo.com wrote: But ... I noticed that assert statements bloat the .apk, which seems like a bad thing. So I am now using a pattern of checking a static final constant: if(ASSERTS) { asserts( someCondition, Some explanation ); } Java-language

[android-developers] Re: Using SWIG with Android NDK - Weak Global References

2010-06-15 Thread fadden
On Jun 15, 9:25 am, GoG guillaume.au...@gmail.com wrote: Do you have any information about when exactly it will appear ? I can't comment on exactly when things will appear, but you should see it sooner rather than later. -- You received this message because you are subscribed to the Google

[android-developers] Re: Standalone java code is not working in the same way from android.

2010-06-15 Thread fadden
On Jun 15, 10:30 am, Achanta krishna.acha...@gmail.com wrote: I am trying to integrate Google Health on android and am trying to use a client login example which is working fine as a standalone java program. But when I implement the same in android it gives me all these errors. I guess I am

[android-developers] Re: dalvik and defineClass

2010-06-11 Thread fadden
(the story continues at: http://stackoverflow.com/questions/3022454/how-to-load-a-java-class-dynamically-on-android-dalvik ) -- 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] Re: Avoiding float operations in game design

2010-06-08 Thread fadden
On Jun 8, 7:18 am, Mario Zechner badlogicga...@gmail.com wrote: If you work in Java it does not pay of using fixed point math compared to using floating point math. For some reasons integer divisions are extremely costly and at the end of the day you will need to get the non-fractional part of

[android-developers] Re: AppWidget animation getting glitched by GC

2010-06-08 Thread fadden
On Jun 8, 3:35 am, James W jpbwebs...@gmail.com wrote: I am being very careful not to allocate any new objects on my animating timer loops, and I am also calling System.gc() before I start my animation, so I suspect that it is the multiple calls to the appWidgetManager's updateAppWidget() and

[android-developers] Re: Bug/Issue tracker a joke!

2010-06-08 Thread fadden
On Jun 6, 10:58 pm, Colin colinjone...@gmail.com wrote: I find astounding, rude and arrogant the complete disregard with which Google treats people attempting to access help on the tracker. http://b.android.com/7589 -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: HeapWorker is wedged problem

2010-06-04 Thread fadden
On Jun 4, 5:28 am, m2k to.mikeko...@gmail.com wrote: i'm parsing an HTML page... it has to take that long... ;=) i'm extracting information... i can't do anything against it, The problem is that a *finalizer* is stuck for that long. If you can eliminate the finalizer, problem solved. If

[android-developers] Re: We need Arabic support pleeeeeeas

2010-06-02 Thread fadden
On Jun 1, 11:32 am, mohammed sabri moh.d_sa...@hotmail.com wrote: We need Arabic support pleeas ): http://b.android.com/5597 -- 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] Re: SIGSEGV in system_server

2010-05-28 Thread fadden
On May 28, 10:13 am, Dmitriy dmitriy.kostyuche...@gmail.com wrote: The application I wrote HTTP POSTs a file to a remote web server.  If, during this upload the phone is going through a lot of other activity - applications being opened, closed, switched; notification drawer being opened and

[android-developers] Re: Making the Java assert statement work

2010-05-27 Thread fadden
On May 26, 11:30 am, A Curious Developer imdb...@yahoo.com wrote: How do I make the Java assert statement work? By work I mean that a failed assertion should either stop program execution or at least log the failure. Currently, neither happens. I understand there is a run- time option to

  1   2   3   4   5   >