Re: [android-developers] Re: Is it possible to slow system clock by an app? or it is a system bug?

2011-03-29 Thread San Zhang
I have installed OS monitor to test usage of CPU. It is running 0% CPU. To DanH: What is By causing it to miss interrupts.? Could you tell me more details? 2011/3/29 DanH danhi...@ieee.org By causing it to miss interrupts. On Mar 26, 9:26 am, Marcin Orlowski webnet.andr...@gmail.com

Re: [android-developers] Re: Is it possible to slow system clock by an app? or it is a system bug?

2011-03-26 Thread San Zhang
conceivable that it would affect the clock. On Mar 25, 9:47 pm, San Zhang dahua007...@gmail.com wrote: I found a strange problem. On my Nexus One, since upgrading to Android 2.3.3, the system clock would be slowed about one or two minutes every day during running my app. The app is an alarm

Re: [android-developers] Re: Is it possible to slow system clock by an app? or it is a system bug?

2011-03-26 Thread San Zhang
Thanks. 2011/3/26 Marcin Orlowski webnet.andr...@gmail.com How to check the usage of CPU? https://market.android.com/details?id=com.eolwral.osmonitor or read /proc/loadavg 2011/3/26 DanH danhi...@ieee.org If your app is running 100% CPU (ie, looking rather than waiting for events)

[android-developers] Is it possible to slow system clock by an app? or it is a system bug?

2011-03-25 Thread San Zhang
I found a strange problem. On my Nexus One, since upgrading to Android 2.3.3, the system clock would be slowed about one or two minutes every day during running my app. The app is an alarm clock tool. I have tested it under both cases of running/stopping my app. It is obvious that it is related to

Re: [android-developers] ANR keyDispatchingTimedOut on android/com.android.internal.app.RingtonePickerActivity

2011-03-13 Thread San Zhang
Today, I got a ANR error, too. I want to know how to read this error message. 2011/3/1 Sven sirdarthna...@googlemail.com Hello! Today I got a error report in my market account for my application. It is listed under Freeze. I use the RingtonePicker in my preferences. Any chance I can do

[android-developers] Why can't my app be searched in Android Market?

2011-02-22 Thread San Zhang
Hi all, My app can't be searched in English name recently. I have tried to search it by both app name and key words but no result. It had could be searched to get result in the same methods. What is wrong? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Why can't my app be searched in Android Market?

2011-02-22 Thread San Zhang
..., include market.android.com. 2011/2/22 sogan xie soga...@gmail.com Hi San, Did you upload your app to Android Market successfully? Or you can check your upload link. On Tue, Feb 22, 2011 at 4:33 PM, San Zhang dahua007...@gmail.com wrote: Hi all, My app can't be searched in English

[android-developers] How to detect whether my app is installed on SD card by programmatically?

2011-02-16 Thread San Zhang
My app can be autostarted when system completed boot. However, this feature would be disabled if user intall the app on SD card. I want to disable AUTOSTART option in settings screen in my own code if it may be detected whether the app is installed on SD card. Is it possible? If answer yes, how

Re: [android-developers] How to detect whether my app is installed on SD card by programmatically?

2011-02-16 Thread San Zhang
Thanks Marcin Orlowski. Your answer is very useful for me. 2011/2/16 Marcin Orlowski webnet.andr...@gmail.com On 16 February 2011 13:53, San Zhang dahua007...@gmail.com wrote: My app can be autostarted when system completed boot. However, this feature would be disabled if user intall

Re: [android-developers] How to detect whether my app is installed on SD card by programmatically?

2011-02-16 Thread San Zhang
http://stackoverflow.com/questions/1056570/how-to-autostart-an-android-application 2011/2/16 Kevin R. Octavian kevin.r.octav...@gmail.com how to make an app can be autostartup? On 2/16/11, San Zhang dahua007...@gmail.com wrote: Thanks Marcin Orlowski. Your answer is very useful for me

Re: [android-developers] How to detect whether my app is installed on SD card by programmatically?

2011-02-16 Thread San Zhang
Aslo you have to add a permission in AndroidManifest.xml as bellow: uses-permission android:name=android.permission.RECEIVE_BOOT_COMPLETED/ 2011/2/16 San Zhang dahua007...@gmail.com http://stackoverflow.com/questions/1056570/how-to-autostart-an-android-application 2011/2/16 Kevin R

[android-developers] Why a canceled notification displayed later again?

2011-02-06 Thread San Zhang
I am developing an alarm clock app. I have a problem that alarm notification in status bar can not be deleted completely. I have tried both mathods, mNotificationManager.cancel(noti_id) and alarm_notification.flags=Notification.FLAG_AUTO_CANCEL. The results are same: The notification can be

Re: [android-developers] Why a canceled notification displayed later again?

2011-02-06 Thread San Zhang
, before I changed some thing in my code. If need, I can write these difference code snippet to here. 2011/2/7 TreKing treking...@gmail.com On Sun, Feb 6, 2011 at 7:21 AM, San Zhang dahua007...@gmail.com wrote: The results are same: The notification can be deleted from status bar, but it would

Re: [android-developers] Why a canceled notification displayed later again?

2011-02-06 Thread San Zhang
)); } . . . } } = 在 2011年2月7日 上午10:16,San Zhang dahua007...@gmail.com写道: I don't understand how to use AlarmManager to post notifications. I think that all notifications is managered by NotificationManager but not AlarmManager, although they are started and canceled according with alarms life cycle

Re: [android-developers] Why a canceled notification displayed later again?

2011-02-06 Thread San Zhang
Oh, I have found a cause of the problem. It is a logic problem in my code but it is not displayed above codes. 在 2011年2月7日 下午12:26,San Zhang dahua007...@gmail.com写道: Below codes is notifications behavior no problem: = public class AlarmService

Re: [android-developers] Market ranking

2010-10-06 Thread San Zhang
How to know the rank of an app in a category? I tried to find it on androlib site just now, didn't get any clue. -- 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

Re: [android-developers] Market ranking

2010-10-06 Thread San Zhang
on the Android Market. On Wed, Oct 6, 2010 at 5:27 PM, San Zhang dahua007...@gmail.com wrote: How to know the rank of an app in a category? I tried to find it on androlib site just now, didn't get any clue. -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Needs confirmation on screen orientation on Android 2.1

2010-09-24 Thread San Zhang
It is a new feature for android 2.2 only. 2010/9/24 archieval archie.brio...@gmail.com Hello everyone, I just need some confirmations. I have a device that has android 2.1 installed, and the packages that are included in that android os source code. Applications that I have, browser and

Re: [android-developers] How to open a nested child PreferenceScreen

2010-09-23 Thread San Zhang
This is my question, too. 2010/8/27 bo yada...@gmail.com Hi I have a PreferenceScreen that is defined in XML that serves all the preferences for my application. This PreferenceScreen also has a child PreferenceScreen nested within it. My implementing class is called

Re: [android-developers] Re: Is it possible to rotate screen by program code but not accelerometer sensor?

2010-09-19 Thread San Zhang
Thank you all for answer. If there is no system level API, may I control top activity from my service? for example, AnyTopActivity.setRequestedOrientation(). 2010/9/20 Doug beafd...@gmail.com On Sep 19, 1:47 am, HaMMeReD adamhamm...@gmail.com wrote: Maybe you can switch between landscape

Re: [android-developers] Re: Is it possible to rotate screen by program code but not accelerometer sensor?

2010-09-19 Thread San Zhang
Answer my own above question, it is impossible. Because there is no hotkey mechanism in android. Maybe need to research android source code to find solution. Have anyone any suggestion? 2010/9/20 San Zhang dahua007...@gmail.com Thank you all for answer. If there is no system level API, may I

Re: [android-developers] Is it possible to rotate screen by program code but not accelerometer sensor?

2010-09-18 Thread San Zhang
I known it can be disabled by Settings. My meaning is if there are APIs to manage rotate screen on system level but not my app only. 2010/9/19 Dianne Hackborn hack...@android.com On Fri, Sep 17, 2010 at 5:17 PM, San Zhang dahua007...@gmail.com wrote: 2. Accelerometer consumed power greatly

[android-developers] Is it possible to rotate screen by program code but not accelerometer sensor?

2010-09-17 Thread San Zhang
Hi every one, There are some shortcoming for system's rotate screen function: 1. It is too sensitive to result in many unwanted rotating actions. 2. Accelerometer consumed power greatly. I want disable it and control screen orientation by my own program. Is it possible? -- You received this

Re: [android-developers] Re: Bug in minSdkVersion or what?

2010-09-07 Thread San Zhang
Hi Dianne Hackborn, Your mention is very helpful for me, Thanks. I have an another question: If android:minSdkVersion is 3 and android:targetSdkVersion is 8, how to manager it? Or, is there a priority between both attributes? 2010/9/4 Dianne Hackborn hack...@android.com Also on that page: