本帖最后由 xjj2000 于 2012-01-10 11:37:27 编辑

解决方案 »

  1.   

    这里你可以借鉴下flash的安装 flash插件你在模拟器上是装不上去的,貌似需要arm7以上的cpu,而模拟器是没有的....具体怎么实现没有关注过!你可以查查有关资料....
      

  2.   

    可以尝试检验设备ID,模拟器返回为NULL。
    有个例子:TelephonyManager tm=(TelephonyManager )activity.getSystemService(Context.TELEPHONY_SERVICE);
        if(tm==null || !this.hasTelephony())
        {
            Log.v(TAG, "Can't get telephony service. Forcing shut down!");
            return false;
        }
        String deviceId=tm.getDeviceId();
        if(deviceId==null || deviceId.length() < 2)
        {
            Log.v(TAG, "Looks like emulator - bail out!");
            Toast.makeText(activity, "This special version not intended to run in this device!", 5000).show();
            return false;
        }
    关于如何检测到安装到模拟器,请参考:http://stackoverflow.com/questions/2799097/how-can-i-detect-when-an-android-application-is-running-in-the-emulator