[android-developers] Will google plan to fix bug #26446 in next release?
Is there anybody know that will google plan to fix bug #26446( https://code.google.com/p/android/issues/detail?id=26446)? It is a bad performance bug which will impact the video/camera application. Thanks, Chuan -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Performance issue executing native code on ICS
We met exactly the same issue! We are on ICS 4.0.4 with Nexus S. Will google plan to fix it in the next release say 4.0.5? Thanks, Chuan 在 2012年3月5日星期一UTC+8下午10时22分24秒,Michael写道: These are results of 'top' running the (unmodified) CameraPreview of the ApiDemos sample on two Nexus S devices, one with Gingerbread, the other one with Ice Cream Sandwich: 1) Nexus S, Gingerbread, Build Target: Android 2.3.3 User 1%, System 6%, IOW 0%, IRQ 0% User 6 + Nice 0 + Sys 21 + Idle 282 + IOW 0 + IRQ 0 + SIRQ 0 = 309 PID TID CPU% S VSS RSS PCY UID Thread Proc 1138 1138 3% R 1092K528K fg shelltop top 75 1142 1% D 32312K 4500K fg mediaCameraPreviewTh /system/bin/mediaserver 114 125 0% D 192872K 62016K fg system system_server system_server 182 182 0% S 103024K 27104K fg system ndroid.systemui com.android.systemui 114 126 0% S 192872K 62016K fg system SensorService system_server 2) Nexus S, ICS, Build Target: Android 2.3.3 User 28%, System 21%, IOW 0%, IRQ 0% User 90 + Nice 0 + Sys 69 + Idle 157 + IOW 0 + IRQ 0 + SIRQ 1 = 317 PID TID PR CPU% S VSS RSS PCY UID Thread Proc 81 2509 0 17% S 49372K 5100K fg mediaCameraPreviewTh /system/bin/mediaserver 78 131 0 15% S 39576K 17648K fg system SurfaceFlinger /system/bin/surfaceflinger 162 175 0 4% D 356748K 46212K fg system system_server system_server 2478 2478 0 3% R 1188K588K fg shelltop top 162 177 0 1% S 356748K 46212K fg system er.ServerThread system_server 3) Nexus S, ICS, Build Target: Android 4.0.3 User 44%, System 15%, IOW 0%, IRQ 0% User 140 + Nice 0 + Sys 50 + Idle 128 + IOW 0 + IRQ 0 + SIRQ 0 = 318 PID TID PR CPU% S VSS RSS PCY UID Thread Proc 81 2931 0 38% S 55904K 8412K fg mediaCameraPreviewTh /system/bin/mediaserver 78 131 0 7% S 45432K 22484K fg system SurfaceFlinger /system/bin/surfaceflinger 2921 2921 0 3% R 1188K588K fg shelltop top 162 175 0 2% D 356860K 47052K fg system system_server system_server 2718 2718 0 1% S 0K 0K fg root kworker/0:1 Indeed, one does not even need to perform any additional (native) processing to find that the mediaserver and surfaceflinger processes are consuming an unhealthy amount of CPU power on Ice Cream Sandwich. Note that the exact behavior even changes with different build targets; ~30% of CPU time are already bad when building against Android 2.3.3, but it gets a lot worse with ~45% when building against Android 4.0.3. Am planning to file a bug report. On Thursday, March 1, 2012 6:53:08 PM UTC+1, Chris Stratton wrote: On Thursday, March 1, 2012 12:08:31 PM UTC-5, Michael wrote: Good tip! This is a print from top running the test application on a Nexus S with Gingerbread: User 89%, System 3%, IOW 0%, IRQ 0% User 282 + Nice 0 + Sys 12 + Idle 22 + IOW 0 + IRQ 0 + SIRQ 0 = 316 PID TID CPU% S VSS RSS PCY UID Thread Proc 771 771 86% R 104220K 27216K fg app_54 PerformanceTest com.ICSPerformanceTest And this is the exact same application on a Nexus S with Ice Cream Sandwich: User 87%, System 9%, IOW 0%, IRQ 0% User 287 + Nice 0 + Sys 32 + Idle 9 + IOW 0 + IRQ 0 + SIRQ 0 = 328 PID TID PR CPU% S VSS RSS PCY UID Thread Proc 2849 2849 0 57% R 278568K 35372K fg app_66 PerformanceTest com.ICSPerformanceTest 81 2867 0 28% S 56408K 9196K fg mediaCameraPreviewTh /system/bin/mediaserver We still don't know why this is happening, though. It's not an active face detection - we double-checked that. A quick look through the Android source code didn't give any insight either. Though my suspicion is that either something is wrong with the ICS implementation or the camera driver. It would be nice to get more info on that, and potential solutions to fix the issue. You could try and see if you can get git to give up a diff of the relevant files in mediaserver between the two versions of Android, but that may be a lengthy path to follow. It would be interesting if you could reproduce the same difference in mediaserver CPU usage with someone else's code that doesn't do any (even dummy) native processing. Could you try the CamerPreview in the ApiDemos of the sdk samples? If you can reproduce the mediaserver CPU load reflected by top with that you'd clearly be in a position to file a bug report. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http
[android-developers] How to wait for file scanning finished before starting the launcher app
Hi there I am currently working on an Android launcher application, and I would like to play some intro video before the launcher starts. Knowing that playing video directly from assets or raw folder does not work on some devices, I include the video file in assets folder, and let the app copy the video file to SD card before playing it. However, since launcher is always the first application to be started upon bootup, there is a media scanning process right after the bootup. So the problem is when the launcher is started, the SD card file system may still being scanned and not ready to be accessed, therefore the video cannot be played. Any suggestions and comments are appreciated! -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Alternative of VMRuntime.getRuntime().setMinimumHeapSize in Gingerbread
Hi All I know there's a VMRuntime.getRuntime().setMinimumHeapSize in Android 2.1/2.2 for developer to adjust the starting heap size of the application, and it is one of the most effective solution for solving the OutOfMemory error during itmapFactory.decodeStream() However, since Android 2.3, this VMRuntime class is removed from official API, does anyone knows the alternative API of this function? -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to set focus on the item in Gallery view when activity is started
Hi, I am developing an application that is navigated by DPad, and I use gallery view as the navigation bar. How do I set the initial focus to be on the central item of the gallery view? I know that some control like EditText can attract the focus, but I still have no luck after trying gallery.requestFocus() or gallery.requestFocusFromTouch(). Really appreciate if someone can help me out, thanks. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to broadcast information with Bluetooth on Android?
I'd like to know how to broadcast information with Bluetooth on Android. I'm thinking to utilize the service name for SDP record in listenUsingRfcommWithServiceRecord() to broadcast the information. However, I couldn't find any method to use to read the service name for SDP record. May I know is there any way to read that? Or is there any other more appropriate approach to broadcast information with Bluetooth? Plz enlighten me. Ur help would be greatly appreciated. =) -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Eclair install choked with errors about locks and died horribly leaving corrupted install
I'm new to this group. Has anyone got an answer to the problem? I read through the posts and I can say I've tried most of the way I can think of. First of all, I'm pretty sure it's 'SDK Setup.exe' that is locking up the directory. So after it unpacks the platforms and addons to 'temp' directory, it can't move the subdirs under 'temp' to 'platforms' and 'add-ons'. I confirmed the lock because I couldn't delete any directory when 'SDK Setup' was running. Manually, you CAN move the subdirs under 'temp' yourself by following error log telling you failed to move directory from temp... to platforms The problem is the subdirs under 'temp' are empty directories. So your manual tasks will be done in vain. I tried 3 times! I tried to trick 'SDK Setup' by moving to Windows DeskTop. But it wouldn't run from there! Sigh. I tried to install it from eclipse. Same error. There must be an easier way to install the Android SDK 1.6 or 2.0. The previous versions that have pre-expanded directories work fine. So you just unzip the file and drap-and-drop the whole folder to wherever you want. -- 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 group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Playing video as a raw resource
I have the exact problem with you. Any one can help? On Jun 16, 11:22 pm, JP jpotte...@gmail.com wrote: I'm writing a program which requires that a video be packaged with it. The only way I know of doing this is by adding the video to res/ raw/, which coincidentally renders the video useless. I've looked all over the web and the consensus seems to be you can only play streaming video, or video from a file. In the emulator if I attempt to play the video through the method used here (http://developer.android.com/guide/topics/media/index.html ), all I get is audio and a black screen. I've attempted to use VideoView as well, and the same thing occurs, audio but with a black screen. There must be a way to package video with your application without needing an SD card, or having to stream the file and have the video actually play. In the words of Google, I would like to create a seamless experience. :) Any help is greatly appreciated! --~--~-~--~~~---~--~~ 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 group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Chuan Zhang 想跟您 聊天
我使用 Google Talk 已经有一段时间,我觉得您也不妨试试。我们可以使用它通过互联网免费拨打电话。您可通过此邀请函下载 Google Talk。试试吧! --- Chuan Zhang 希望使用 Google 最酷的几个新产品与您更好地保持联系。 如果您已拥有 Gmail 或 Google Talk,请访问: http://mail.google.com/mail/b-6199b73c23-184b813721-a0bfa736e109acb3 您需要点击此链接才能与 Chuan Zhang 聊天。 要获得 Gmail(Google 提供的超过 2,800 兆字节存储空间的免费电子邮件帐户)并与 Chuan Zhang 聊天,请访问: http://mail.google.com/mail/a-6199b73c23-184b813721-a0bfa736e109acb3 Gmail 提供: - Gmail 内的即时消息服务 - 强有力的垃圾邮件防范功能 - 用于查找邮件的内置搜索功能以及将电子邮件整理为“会话”的实用方法 - 没有弹出式广告或不相关的横幅广告 - 只有与您的邮件内容有关的文字广告和相关信息 所有这一切都是您的,而且完全免费。 别急,还有更精彩的内容! 创建 Gmail 帐户,您就可以访问 Google Talk(Google 的即时消息服务): http://www.google.com/talk/intl/zh-CN/ Google Talk 提供: - 随时随地基于网络的聊天服务,无须下载 - 与您的 Gmail 帐户同步的联系人列表 - 下载 Google Talk 客户端时,即能获得免费、质优的 PC 对 PC 语音电话 Gmail 和 Google Talk 仍处于测试阶段。 我们正努力添加新功能并进行改进,因此我们可能还会定期向您征求意见和建议。 对于您为改善我们的产品所做的贡献,我们深表谢意! 衷心感谢! Google 小组敬上 要了解有关 Gmail 和 Google Talk 的详情,请访问: http://mail.google.com/mail/help/intl/zh_CN/about.html http://www.google.com/talk/intl/zh-CN/about.html (如果本邮件提供的网址无法通过点击进入,请将该网址复制并粘贴至浏览器的地址栏中)。 --~--~-~--~~~---~--~~ 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 group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How does prelink-linux-arm.map work?
Hi, I got some diopen() fails in my native library. I guess the reason is insufficient memory. I conduct some experiments by exhausting the memory and then dynamically load some .so files. Yes, dlopen() failed again. At first I thought the .so files listed in prelink-linux-arm.map are libraries pre-loaded into memory, and dlopen won't fail if the target is in the map. However, that's not true. Anybody here knows what's the use of the map? Or where did I go wrong? Thanks. Hsiung --~--~-~--~~~---~--~~ 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 group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Chuan Zhang 想跟您 聊天
我使用 Google Talk 已经有一段时间,我觉得您也不妨试试。我们可以使用它通过互联网免费拨打电话。您可通过此邀请函下载 Google Talk。试试吧! --- Chuan Zhang 希望使用 Google 最酷的几个新产品与您更好地保持联系。 如果您已拥有 Gmail 或 Google Talk,请访问: http://mail.google.com/mail/b-6199b73c23-5b67a7113e-894949d3ea954139 您需要点击此链接才能与 Chuan Zhang 聊天。 要获得 Gmail(Google 提供的超过 2,800 兆字节存储空间的免费电子邮件帐户)并与 Chuan Zhang 聊天,请访问: http://mail.google.com/mail/a-6199b73c23-5b67a7113e-909f748736 Gmail 提供: - Gmail 内的即时消息服务 - 强有力的垃圾邮件防范功能 - 用于查找邮件的内置搜索功能以及将电子邮件整理为“会话”的实用方法 - 没有弹出式广告或不相关的横幅广告 - 只有与您的邮件内容有关的文字广告和相关信息 所有这一切都是您的,而且完全免费。 别急,还有更精彩的内容! 创建 Gmail 帐户,您就可以访问 Google Talk(Google 的即时消息服务): http://www.google.com/talk/intl/zh-CN/ Google Talk 提供: - 随时随地基于网络的聊天服务,无须下载 - 与您的 Gmail 帐户同步的联系人列表 - 下载 Google Talk 客户端时,即能获得免费、质优的 PC 对 PC 语音电话 Gmail 和 Google Talk 仍处于测试阶段。 我们正努力添加新功能并进行改进,因此我们可能还会定期向您征求意见和建议。 对于您为改善我们的产品所做的贡献,我们深表谢意! 衷心感谢! Google 小组敬上 要了解有关 Gmail 和 Google Talk 的详情,请访问: http://mail.google.com/mail/help/intl/zh_CN/about.html http://www.google.com/talk/intl/zh-CN/about.html (如果本邮件提供的网址无法通过点击进入,请将该网址复制并粘贴至浏览器的地址栏中)。 --~--~-~--~~~---~--~~ 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 group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---