[android-developers] Re: how to know if it the emulator or device

2009-11-03 Thread lianwei
if (1.equals(android.os.SystemProperties.get(ro.kernel.qemu))) { // Run in Emulator } On Nov 4, 9:21 am, Emmanuel emmanuel.ast...@gmail.com wrote: On Nov 3, 2:29 pm, Zhihong GUO gzhh...@gmail.com wrote: Hi all, How to know if the application is running on emulator or on a real device?

[android-developers] DisplayMetrics issue on Android1.6 SDK

2009-09-19 Thread lianwei
I got a issue with DisplayMetrics.         DisplayMetrics dm = new DisplayMetrics();         getWindowManager().getDefaultDisplay().getMetrics(dm);         Log.d(TEST, dm.widthPixels + x + dm.heightPixels); If I do not specify the uses-sdk android:minSdkVersion=4 / or supports-screens

[android-developers] There is a typo in system/core/rootdir/etc/init.goldfish.sh

2009-03-30 Thread lianwei
Hello Google developers, There is a TYPO in system/core/rootdir/etc/init.goldfish.sh: qemud=`getprop.ro.kernel.android.qemud` if test -z $qemud; then radio_ril=`getprop ro.kernel.android.ril` if test -z $radio_ril; then # no need for the radio interface daemon #

[android-developers] How to setup the DNS to access the external nework

2009-03-25 Thread lianwei
network. Does anyone know how to fix this issue? Thanks, Lianwei --~--~-~--~~~---~--~~ 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

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread lianwei Wang
More info, It can access the external network with IP address. 2009/3/25 lianwei lianwei.w...@gmail.com Hi all, I can not access the external network because of DNS problem, below is my steps: 1. Setup DNS ./adb shell setprop net.dns1 xx.xx.xx.xx I can successful access

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread lianwei
Where can I find the Ipconfig? is it ifconfig? -Lianwei On Mar 25, 4:11 pm, Eric Chan jude...@gmail.com wrote: Push a Ipconfig file to you phone or emulator Best Regards Eric Chan On Wed, Mar 25, 2009 at 4:00 PM, lianwei Wang lianwei.w...@gmail.comwrote: More info, It can access

[android-developers] Re: How to setup the DNS to access the external nework

2009-03-25 Thread lianwei
No, I check it with nslookup, and found that the DNS server can not return a IP address for the external network. So this is the root cause, but how to make it worked in Android Emulator? Do I need to find a available DNS server, or some other settings? -Lianwei On Mar 25, 5:27 pm, David Turner

[android-developers] Re: Android native and Dalvik performance compare

2009-02-25 Thread lianwei
will be entirely eliminated by any sane C compiler, since you don't actually use the variable 's' in a way that side-effects. dexopt doesn't eliminate empty loops for various reasons. On Feb 24, 10:59 am, lianwei lianwei.w...@gmail.com wrote: Below is a simple bench between Navive C and Dalvik