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
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?
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?
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
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
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
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
..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
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
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
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
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
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
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);
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
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
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
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
18 matches
Mail list logo