http://www.verycd.com/topics/2915669/

06_传智播客Android视频教程_电话拔号器

制作拨号器

android的源码写的很清晰,视频老师带着看非常方便。

将拨打电话的权限赋给应用。

    @Override    public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.main);        Button button = (Button) this.findViewById(R.id.button1);        button.setOnClickListener(new ButtonClientListener());    }    private final class ButtonClientListener implements OnClickListener {        @Override        public void onClick(View v) {            EditText text = (EditText) findViewById(R.id.editText1);            String number = text.getText().toString();// 这里需要tostring            Intent intent = new Intent();            intent.setAction("android.intent.action.CALL");            // intent.addCategory("android.intent.category.DEFAULT");            intent.setData(Uri.parse("tel:" + number));            startActivity(intent);        }    }

07_传智播客Android视频教程_查看应用输出的错误信息与如何部署应用到真实手机

1.查看错误信息。

logcat中查看

logcat中自过滤器,很方便的可以自由过滤日志。

2.安装到手机上

打开一个试图

安装启动,如果手机连接上后会自动显示出来。

打开 Android/screenmontor/asm.jar 可以查看手机界面

双击Devices中的手机设备,将会输出手机信息。

这样使用上面的拨号器就可以真正使用了。

将软件打包

1.导出Export

2.不能使用debug的密钥,需要创建自己的密钥。

3.将文件放入手机,可以使用View 中的File Explorer 的功能。

更多相关文章

  1. android APP安装支持安装到SDCard
  2. android sim卡 TelephonyManager类:Android手机及Sim卡状态的获取
  3. Nodejs 或 js 判断手机操作系统 Android(安卓)or IOS
  4. 判断手机类型
  5. 开源中国-android软件资源整理
  6. 手机壁纸设置相关
  7. android关于获取手机唯一码的组合文章
  8. 怎么查看android 版本
  9. Nodejs 或 js 判断手机操作系统 Android(安卓)or IOS

随机推荐

  1. Android(安卓)初步
  2. Android中得到布局文件对象三种方式
  3. 为android-support-v4.jar打包源码
  4. android 内存占用调试
  5. Android优秀开源项目
  6. android textview
  7. Android小功能集
  8. Android(安卓)设置横屏/竖屏
  9. android 工具类:用来判断一个文件是不是图
  10. Android(安卓)UI: LinearLayout中layout_