[android-developers] Error when make Android Froyo Source code

2010-08-23 Thread Sansiro
Dears: I got an error when making Android Froyo Source code following is the message: Could not load 'clearsilver-jni' java.library.path-out/host/linux-x86/lib make:***[out/target/common/doc/api-stubs-timestamp] Error 45 I make it in ubuntu 8.04 with jdk6 After google searching

[android-developers] How to caculator the time?

2009-10-12 Thread Sansiro
long startTime=System.currentTimeMillis(); // do something long endTime=System.currentTimeMillis(); long spentTime=(endTime-startTime)/1000; but if I change the system time in //do something , how to caculator the spentTime? the CPU running time?

[android-developers] How to caculator the time?

2009-10-12 Thread Sansiro
long startTime=System.currentTimeMillis(); // do something long endTime=System.currentTimeMillis(); long spentTime=(endTime-startTime)/1000; but if I change the system time in //do something , how to caculator the spentTime? the CPU running time?

[android-developers] How to Check Application Launched?

2009-09-26 Thread Sansiro
Dears: I'm writing an android software testcase, but I don't kone how to check whether the application is launched or not after I have clicked the icon. Anybody can give me some advices? BRs! --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to Get the Top Activity's Name?

2009-09-26 Thread Sansiro
As the subject. --~--~-~--~~~---~--~~ 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] How to Get the Top Activity's Name?

2009-09-26 Thread Sansiro
As the subject. --~--~-~--~~~---~--~~ 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] Re: How to power off the screen?

2009-07-22 Thread Sansiro
Stephen I did not create Power class. The Power class is packaged in android.os.Power by Google But it's so strange that you can not find it in SDK documents On 7月22日, 下午3时15分, Stephen Le yangle...@gmail.com wrote: Sansiro I want to know , Did you created the Power class in your own project

[android-developers] Re: How to power off the screen?

2009-07-22 Thread Sansiro
..But It is doesn't work..Do you have any demo project to give me ? I've traped at this place for a long times and need your kindly help...Sincerely! On Wed, Jul 22, 2009 at 3:53 PM, Sansiro wangjiangfeng0...@gmail.comwrote: Stephen I did not create Power class. The Power class is packaged

[android-developers] Re: How to make my device sleep

2009-07-22 Thread Sansiro
Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 21, 7:28 pm, Sansiro wangjiangfeng0...@gmail.com

[android-developers] Re: How to power off the screen?

2009-07-21 Thread Sansiro
But, When I use the PowerManager class, it doesn't work.The emulator doesn't go to sleep. BTW, I use the goToSleep() method in this class, and I didn't get a PowerManaget instance from Context. On Jul 21, 6:06 am, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote: PowerManager is part of the SDK

[android-developers] Re: How to power off the screen?

2009-07-21 Thread Sansiro
In Android Souccr code, I find a Power class packaged in android.os. This class is not provided in SDK,But this is really a public class. This class has five native method: public static native void shutdown() public static native void reboot(String reason) throws IOException public static native

[android-developers] Re: How to power off the screen?

2009-07-21 Thread Sansiro
Same result with you. But the code I wrote is a system process with all the permission(Even one time, the system is crashed, my process is still running!! O(∩_∩) O~) So why is this result? On Jul 21, 9:17 pm, Yuri Dario mc6...@mclink.it wrote: Hi, public static native int

[android-developers] How to make my device sleep

2009-07-21 Thread Sansiro
Guys: PowerManager.goToSleep() seems to not work normally. If any other methods? Brs --~--~-~--~~~---~--~~ 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: How to power off the screen?

2009-07-21 Thread Sansiro
emm,I'm Sorry to say that the result I just said before is not right. By using the native method setScreenState(), I make my device's screen off.The code is: int x=Power.setScreenState(false);//make the screen off System.out.println(x);//0 will be print out Thread.sleep(3000);

[android-developers] How to make device to sleep?

2009-07-20 Thread Sansiro
I know that there is a PowerManager class and a goToSleep method in SDK But the code follow does not work.Anybody can tell me why? PowerManager pm=(PowerManager)ServiceManager.getService (Context.POWER_SERVICE); pm.goToSleep(6); BRs! --~--~-~--~~~---~--~~ You

[android-developers] Re: How to make device to sleep?

2009-07-20 Thread Sansiro
Now I use the code follow: IPowerManager.Stub.asInterface(ServiceManager.getService (Context.POWER_SERVICE)).goToSleep(6) But it still does not work. On Jul 21, 9:07 am, Sansiro wangjiangfeng0...@gmail.com wrote: I know that there is a PowerManager class and a goToSleep method in SDK

[android-developers] Android Screen Shot

2009-07-16 Thread Sansiro
Hi,guys: I'm writing an application running on PC. I want to get the android device's screen which is connected to PC. Now I use the method provider by SDK to get the screen image, just like DDMS, and transport the Image to PC via socket. But it's too inefficient. Is there a hook which can

[android-developers] Android Hook

2009-07-16 Thread Sansiro
In Windows Mobile, I have a hook function to get the System's mouse event,KB event and screen change. Can I have this function too in Android? Because I want to get the screen shot of Android, But the method providered in DDMS is too inefficient