[android-developers] Switch the language of all app dynamically!

2009-03-12 Thread Stephen Le
Hi all: I must change en_US Locale into zh_CH dynamically(Like user choose it). I writed a demo where the code is following: public void onClick(View v){ Resources resource=super.getResources(); Configuration cf=resource.getConfiguration(); DisplayMetrics dm

[android-developers] Re: Class Cast Exception after classLoader.loadClass() and newInstance!

2009-03-26 Thread Stephen Le
Have you implemented the Parcelable interface? 2009/3/27 冰咖啡不加糖 xinyu...@gmail.com I load a class from another installed package. Class c = classLoader.loadClass(..); Object o = c.newInstance(); and create a instance using newInstance(). if i use getMethod() and invoke(), i can

[android-developers] How to use SUSE Linux download android source code?

2009-03-30 Thread Stephen Le
Hi all: Is there anyone knows about download android source code in SUSE Linux? I've been traped in this for a long time. Can you tell me the steps if you know ? -- Sincerely! --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to run apk file on SDcard?

2009-03-31 Thread Stephen Le
Hi all, How to run one or more apk programmess base on Emulator's SDcard? Thanks! -- Sincerely! --~--~-~--~~~---~--~~ 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: GPS still not working on emulator with r3

2009-07-21 Thread Stephen Le
I have used KML file to mock location changing in DDMS..But, the LocationListener just can run twice no more. right now On Wed, Jul 22, 2009 at 11:11 AM, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: I haven't used geo fix, but I assume it will work as well as DDMS. -John Coryat

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

2009-07-22 Thread Stephen Le
Sansiro I want to know , Did you created the Power class in your own project? or other ways? Pls tell me... On Wed, Jul 22, 2009 at 1:55 PM, Sansiro wangjiangfeng0...@gmail.comwrote: emm,I'm Sorry to say that the result I just said before is not right. By using the native method

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

2009-07-22 Thread Stephen Le
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 Stephen Le
类在应用的时候,我不知道是否有权限的问题。也许正如上面Yuri所说,也许在Activity下使用有可能有权限限制。 因为我写的程序是没有activity的,而且拥有最高的权限,貌似部分系统进程都没他高,所以才能实现。 我是通过把代码放到源码中重新编译得到如此高权限的程序的。 On 7月22日, 下午4时26分, Stephen Le yangle...@gmail.com wrote: As you say, I tried to import this class into my Activity..But It is doesn't work..Do you have