- 博客(4)
- 收藏
- 关注
原创 android adb 命令常用总结
adb devices 察看设备 adb root 拿到管理员权限 adb remount 重新挂载设备 adb shell 进入android设备 adb push 把apk文件推到设备里。 adb logcat -s abc //abc 是你想要过滤log的名字
2013-08-21 16:21:38 317
原创 Android一个程序使用另一个程序的资源
应用场景:程序A的一个ImageView使用程序B的资源图片。 前提:知道程序B的包名。 关键代码如下: //Context.CONTEXT_INCLUDE_CODE 是可以调用其他程序的代码 Context.CONTEXT_IGNORE_SECURITY 是资源 //两个一起写都可以 Context OtherContext = getContex
2013-08-21 15:41:15 306
原创 Ubuntu下Android开发Git常用命令
git branch 察看分支 git status 察看文件是否修改 git checkout 有俩做用 第一:切换分支 ,第二从本地git仓库的缓存中移除. 说明:例如你对一个文件修改了。可以先用git status 察看。不想修改 可以 checkout 掉 repo start xxx 新建一个分支 git add . 增加到本地仓库缓存区 git commit -s 提交本地
2013-08-21 15:29:02 384
原创 linux下开发常见问题总结
一:UBUNTU中如何获得root权限 在终端中输入: sudo passwd root Enter new UNIX password: (在这输入你的密码) Retype new UNIX password: (确定你输入的密码) passwd: password updated successfully 以后,如果在想获得root权限,只需进行如下的操作: su root P
2013-08-21 15:03:10 452
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人