在Contact应用程序下的SpecialCharSequenceMgr.java下的
static boolean handleSecretCode(Context context, String input) {        // Secret codes are in the form *#*#<code>#*#*        int len = input.length();        if (len > 8 && input.startsWith("*#*#") && input.endsWith("#*#*")) {            Intent intent = new Intent(Intents.SECRET_CODE_ACTION,                    Uri.parse("android_secret_code://" + input.substring(4, len - 4)));            context.sendBroadcast(intent);            return true;        }else if (input.equals("*998#"))        {        Intent intent2 = new Intent();        intent2.setAction("com.android.phone.ACTION_FACTORY_MODE");        context.sendBroadcast(intent2);        return true;        }        return false;    }

更多相关文章

  1. 【Android】遍历系统中所有应用程序
  2. Android应用程序键盘(Keyboard)消息处理机制分析(19)
  3. android 怎样通过暗码启动应用程序
  4. android 使用html做应用程序界面初探
  5. 关于android应用程序签名的一些事儿
  6. Android应用程序的消息处理机制

随机推荐

  1. Android程序员必备的六大顶级开发工具,快
  2. [置顶] Android轶事之View要去大保健?View
  3. 什么是积分墙?
  4. 【Android】Fragment懒加载和ViewPager的
  5. 关于Android长按出现复制粘贴栏在顶部占
  6. Android性能优化之过渡绘制
  7. Android - 软件自动更新的实现
  8. Android 中activity的启动方式和一些特定
  9. android将tab选项卡放在底部
  10. 资源—— 读取assets目录下的文件详细介