[android-developers] Re: Is that a way to only dump application heap allocations from app space?

2015-08-19 Thread Freepine
Ok, there is a '-z' option from hprof-conv which does exactly what I want :) On Tuesday, August 18, 2015 at 11:48:40 AM UTC+8, Freepine wrote: Hi, I am trying to investigate my app's memory usage by dumping all the java allocations with DDMS. However after converting the hprof dump

[android-developers] Is that a way to only dump application heap allocations from app space?

2015-08-17 Thread Freepine
::DdmsSendHeapSegments(bool) umimplemented Not counting objects in space Space=TypeZygoteSpace xxx ... If so, is there a way to filter out allocations from zygote and image space in the dumped hprof file? So that I can analyze the allocations from app space only. Thanks, Freepine -- You received

[android-developers] Re: how to parse and analyze the call stack of native code? any tools?

2009-04-19 Thread Freepine
hi, you can use addr2line to get back the symbol for the corresponding address, then use c++filt to demangle the symbol. -Freepine On Sun, Apr 19, 2009 at 1:45 PM, Paranoia zheny...@gmail.com wrote: Thanks! the following is the log from native code. I/DEBUG ( 543

[android-developers] Re: URGENT - video playing problem

2009-03-07 Thread Freepine
It looks Qualcomm omx decoder couldn't be initialized successfully for your video clip. Perhaps you can try with another video file. On Sat, Mar 7, 2009 at 5:31 PM, manoj manojkumar.m...@gmail.com wrote: Hi, I have written a small video playing application. I installed it on Android dev

[android-developers] Re: URGENT - video playing problem

2009-03-07 Thread Freepine
Probably not:) On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com wrote: can't I do anything to play it perfectly? Thanks, Manoj. On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote: It looks Qualcomm omx decoder couldn't be initialized successfully for your video clip

[android-developers] Re: URGENT - video playing problem

2009-03-07 Thread Freepine
reply. On Mar 7, 4:44 pm, Freepine freep...@gmail.com wrote: Probably not:) On Sat, Mar 7, 2009 at 7:34 PM, manoj manojkumar.m...@gmail.com wrote: can't I do anything to play it perfectly? Thanks, Manoj. On Mar 7, 4:29 pm, Freepine freep...@gmail.com wrote: It looks

[android-developers] Re: URGENT - video playing problem

2009-03-07 Thread Freepine
this answer. Thanks, Manoj. On Mar 7, 4:58 pm, Freepine freep...@gmail.com wrote: You are welcome, and It might be possible to use a video transcode tool to convert the original clip to lower profile, resolution or frame rate, but I guess using another file would be the easiest way

[android-developers] Re: How to see image and media files in SDCard from emulator

2009-03-06 Thread Freepine
Or use adb shell, then ls /sdcard :) On Fri, Mar 6, 2009 at 9:40 PM, dillirao malipeddi dillir...@arijasoft.comwrote: you can browse the sdcard by ddms - device - fileexplore you can push and pull files from that and also browse the files in which folder you placed On Fri, Mar 6, 2009

[android-developers] Re: Can only hear sound when playing video

2009-03-04 Thread Freepine
If you removed holder.addCallback(this), then the callback of surfaceCreated in MediaPlayerDemo_Video won't be invoked... 2009/3/5 susanner zsusan...@163.com I have met nearly the same problem, I am implementing the Mediaplayer to my hardware board. I haven't tried videoview, I just

[android-developers] Re: how to get the first frame of a video file ?

2009-02-11 Thread Freepine
Opencore has a frame and metadata utility, and there is also an API as android.media.MediaMetadataRetriever.captureFrame() in Java layer, but it might not be available in public SDK. On Wed, Feb 11, 2009 at 8:49 PM, trust_chen chen trustc...@gmail.comwrote: how to get the first frame of a video

[android-developers] Re: How to handle ini file in android?

2009-01-21 Thread Freepine
Hi, maybe you can try java.util.Properties.load(InputStreamhttp://code.google.com/android/reference/java/io/InputStream.html in) http://code.google.com/intl/zh-CN/android/reference/java/util/Properties.html#load(java.io.InputStream) On Thu, Jan 22, 2009 at 2:14 PM, Paranoia zheny...@gmail.com

[android-developers] Re: Questions related to IP addresses on Android

2009-01-17 Thread Freepine
According to Android's documentation, the emulated device's own network/ethernet interface 10.0.2.15.You might want to take a look at http://code.google.com/intl/zh-CN/android/reference/emulator.html#emulatornetworking On Sat, Jan 17, 2009 at 4:43 PM, Tez earlencefe...@gmail.com wrote: Hi, I

[android-developers] Re: Transferring a file between emulator instances

2009-01-17 Thread Freepine
So simply adb pull from one emulator instance and adb push to another doesn't fulfill your requirements? Just out of curiosity:) On Sat, Jan 17, 2009 at 3:15 PM, Tez earlencefe...@gmail.com wrote: Hi, I wanted to transfer a file stored on the sdcard of one emulator to another emulator

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Freepine
. -Freepine On Thu, Jan 15, 2009 at 2:41 PM, Al Sutton a...@funkyandroid.com wrote: A number of things which could come under the label common accepted Java practice are more about ensuring testability and simplifying the work of future maintainers than they are about performance. As with every

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Freepine
that make user interaction more pleasant. Al. Freepine wrote: I agree that performance is vital to embedded system, but testability is also important for quality, productivity, etc... At least it's not detrimental:) I know it's nontrivial to have this kind of dependency injection based

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Freepine
to implement it by himself. On Thu, Jan 15, 2009 at 9:54 PM, Mark Murphy mmur...@commonsware.comwrote: Freepine wrote: For example, maybe we can introduce DI on some selected root entities of aggregates, which I don't believe it will be at the expense of a considerable performance hit

[android-developers] Re: Dependency injection into Activity

2009-01-15 Thread Freepine
. Maybe someday I can start for some initial code if I had time and enthusiasm :) -Freepine On Thu, Jan 15, 2009 at 10:14 PM, Mark Murphy mmur...@commonsware.comwrote: Freepine wrote: I am not trying to convince you or someone else. I am just trying to explain here why I think it's beneficial

[android-developers] Re: Android media api's relation to PVMF api's

2009-01-09 Thread freepine
There are several documents shared in Opencore git repository. http://android.git.kernel.org/?p=platform/external/opencore.git;a=tree;f=doc;h=ef64867e9bc507fd9d4965bee74be363d2548646;hb=84e4f93158e7ad325118aca385a2c6153e5c8954 On Fri, Jan 9, 2009 at 9:13 PM, vishy s vishy.s1...@gmail.com wrote:

[android-developers] Re: Anybody uses Positron on Windows?

2009-01-09 Thread freepine
You can refer to below link: http://code.google.com/p/autoandroid/wiki/Positron On Fri, Jan 9, 2009 at 9:35 PM, hmmm akul...@mail.ru wrote: Hi, Does someone uses Positron on Windows for Android automated testing? If so, could you, please, refer me to the setup instructions? I've tried many

[android-developers] Re: Anybody uses Positron on Windows?

2009-01-09 Thread Freepine
it says to me when I attempt to run the tests 'don't know how to run tool on windows platform'. Did these exact instructions work for you? Thanks! - Original Message - *From:* freepine freep...@gmail.com *To:* android-developers@googlegroups.com *Sent:* Friday, January 09, 2009 5:01

[android-developers] Re: http-proxy does not work on emulator when i use the build of master branch with cupcake changes

2009-01-08 Thread freepine
when you actually try to connect to a site. this should dump the HTTP queries being made, how they are rewritten, and what kind of error the proxy is returning... On Thu, Jan 8, 2009 at 2:59 AM, freepine freep...@gmail.com wrote: Below is the output with debug proxy, but it does work when I

[android-developers] Re: http-proxy does not work on emulator when i use the build of master branch with cupcake changes

2009-01-08 Thread freepine
Got it, thanks again for the explanation and clarification:) On Fri, Jan 9, 2009 at 3:16 PM, David Turner di...@android.com wrote: On Fri, Jan 9, 2009 at 3:02 AM, freepine freep...@gmail.com wrote: yes, you are right:) It can access 62.70.27.118 successfully with -http-proxy option. So

[android-developers] Re: http-proxy does not work on emulator when i use the build of master branch with cupcake changes

2009-01-07 Thread freepine
My emulator failed to browse web pages with -http-proxy option too, but it works with below steps. Maybe you can also have a try: #cd /data/data/com.android.providers.settings/databases #sqlite3 settings.db SqliteINSERT INTO system VALUES(111,'http_proxy','your-proxy:port'); Sqlite.quit Then

[android-developers] Re: http-proxy does not work on emulator when i use the build of master branch with cupcake changes

2009-01-07 Thread freepine
Below is the output with debug proxy, but it does work when I insert my proxy setting in the settings db directly. Anything missed from my steps? Thanks. D:\Android\android-sdk-windows-1.0_r1\toolsemulator.exe -http-proxy wwwgate0-ch .mot.com:1080 -debug proxy proxy_http_setup: creating http

[android-developers] Re: Unique problem only for the EXPERTS.

2009-01-05 Thread freepine
So you need some support like parsing strings for regular expressions matching? Take a look at java.util.regex.Matcher http://code.google.com/intl/zh-CN/android/reference/java/util/regex/Matcher.html Maybe it's helpful to you. On Tue, Jan 6, 2009 at 3:33 PM, IPEG Student ipeg.stud...@gmail.com

[android-developers] Re: How to write code to uninstall apk from device/emulator?

2009-01-03 Thread freepine
Dr. Lu, Don't be sad, I believe there must be a way:) PackageManager.installPackage is still there in cupcake branch. Maybe it's just not exposed in public sdk. On Sat, Jan 3, 2009 at 6:30 PM, Dr. Tingrong Lu lutingr...@hotmail.comwrote: This answer makes me sad, my boss ordered me to do

[android-developers] Re: how to evoke pv logger

2008-12-25 Thread freepine
That's strange, it works for me:) On Thu, Dec 25, 2008 at 4:12 PM, develop code developcod...@gmail.comwrote: I tried replacing system.img, still no success. On Thu, Dec 25, 2008 at 12:34 PM, freepine freep...@gmail.com wrote: I think you should replace system.img in your SDK. On Thu

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

2008-12-24 Thread freepine
Hi JP, Yes, I agree to avoid time-consuming tasks in main thread:)What I am saying is that mostly GC will hold the whole process' execution while collecting memory, so it might not behave as you assumed even you put it in a separate thread. -freepine On Wed, Dec 24, 2008 at 1:37 PM, JP

[android-developers] Re: how to evoke pv logger

2008-12-24 Thread freepine
I think you should replace system.img in your SDK. On Thu, Dec 25, 2008 at 2:13 PM, develop code developcod...@gmail.comwrote: i am using emulator (eclispse) on windows xp. Do i need to create filter or any configuration in ddms. Since eclipse has ddms plugin does it create problem if i run

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

2008-12-23 Thread freepine
I was thinking that Dalvik GC was the stop-the-world GC. Does it matter to call gc manually in a seperate thread or UI thread itself? -freepine On Wed, Dec 24, 2008 at 2:49 AM, JP joachim.pfeif...@gmail.com wrote: Depends where it's placed at. I calls to the GC scattered all over

[android-developers] Re: Please help with Android source

2008-12-09 Thread freepine
Dr. You can have a try and check /out directory after building finished:) On Tue, Dec 9, 2008 at 5:26 PM, Dr. Tingrong Lu [EMAIL PROTECTED]wrote: Hi, I read Android source Get source doc. There is a section Building the code, it says that to cd to the source directory and run make. Here

[android-developers] Re: How to run application at boot up

2008-12-09 Thread freepine
You can register with the notification of BOOT_COMPLETED event in your app manifest file. On Tue, Dec 9, 2008 at 8:15 PM, Chandrakar Aravind-rqj386 [EMAIL PROTECTED] wrote: Hi, how we can make application run at boot up ? Thank you Arvind

[android-developers] Re: Console program with service without actuvity

2008-11-29 Thread freepine
You can invoke your app in adb shell after pushing the executables into the image. But as we are told again and again, android doesn't support native code development:) On Thu, Nov 27, 2008 at 6:51 PM, sal123 [EMAIL PROTECTED] wrote: Hi All, Can anyone tell me if there is anyway to run