直接拨号,将电话号码传入拨号程序等等的java代码 和实现窗口半透明效果

 // 拨号的
  Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:123456789"));
  // 将电话号码传入拨号程序代码
  intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:123456789"));
  // 调用拨号程序
  intent = new Intent("com.android.phone.action.TOUCH_DIALER");
  // 调用系统浏览器
  intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.baidu.com"));
  // 调用系统程序查看联系人代码
  intent = new Intent("com.android.contacts.action.LIST_CONTACTS");
  // 显示系统设置的界面
  intent = new Intent("android.settings.SETTINGS");
  // 显示WIFI设置界面代码
  intent = new Intent("android.settings.WIFI_SETTINGS");
  
  
  //如何将Activity变成半透明对话框
  <style name="myTheme" parent="@android :style/Theme.Dialog">
  <item name="android:windowBackground">@drawable/半透明png</item>
  </style>
  在AndroidMainfest.xml
  <activity android:theme="@style/myTheme"> android

相关文章
相关标签/搜索