上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 82 下一页
摘要: 1、设置Style//1、设置背景图Theme//2、设置透明Theme上面我定义了两种Theme,第一种Theme就是设置一张背景图。当程序启动时,首先显示这张背景图,避免出现黑屏。第二种Theme是把样式设置为透明,程序启动后不会黑屏而是整个透明了,等到界面初始化完才一次性显示出来。下面说说两种... 阅读全文
posted @ 2015-10-15 17:41 netcorner 阅读(7226) 评论(1) 推荐(1) 编辑
摘要: 在Android应用开发过程中,可能会遇到需要对整个界面或者某一部分进行截图的需求。Android中对View的截图也有很多中方式:使用DrawingCache直接调用View.drawDrawingCache方法:如果使用DrawingCache,则对要截图的View有一个要求:View本身已经显... 阅读全文
posted @ 2015-10-10 17:13 netcorner 阅读(387) 评论(0) 推荐(0) 编辑
摘要: Android Studio正式版已经发布一段时间了,使用Mac版的Android Studio可能与遇到Java not found:Android Studio was unable to find a valid JVM问题。解决这个问题:首先要确定mac系统上有没有安装jdk,并查看自己的j... 阅读全文
posted @ 2015-10-03 20:07 netcorner 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 使用http://loopj.com/android-async-http/的异步网络请求工具使用BinaryHttpResponseHandler来完成文件下载时总是报错,“org.apache.http.client.HttpResponseException: Content-Type not... 阅读全文
posted @ 2015-10-01 15:16 netcorner 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: import java.io.*; import org.json.*; public class Demo { public static void main(String[] args) throws Exception { String str = "{\"... 阅读全文
posted @ 2015-09-23 20:32 netcorner 阅读(19826) 评论(0) 推荐(0) 编辑
摘要: private boolean isServiceRunning() { ActivityManager manager = (ActivityManager) getSystemService(ACTIVITY_SERVICE); for (RunningServiceInfo ser... 阅读全文
posted @ 2015-09-05 12:31 netcorner 阅读(2460) 评论(0) 推荐(0) 编辑
摘要: 在Android中,Activity主要负责前台页面的展示,Service主要负责需要长期运行的任务,所以在我们实际开发中,就会常常遇到Activity与Service之间的通信,我们一般在Activity中启动后台Service,通过Intent来启动,Intent中我们可以传递数据给Servic... 阅读全文
posted @ 2015-09-04 20:13 netcorner 阅读(756) 评论(0) 推荐(0) 编辑
摘要: android.intent.action.MAIN决定应用程序最先启动的Activity android.intent.category.LAUNCHER决定应用程序是否显示在程序列表里 所以: 如果只有一个activity的应用程序只声明了 android.inte... 阅读全文
posted @ 2015-09-04 12:46 netcorner 阅读(1943) 评论(0) 推荐(0) 编辑
摘要: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (VERSION.SDK_INT >= VERSION_CODES.KITKAT... 阅读全文
posted @ 2015-09-04 09:32 netcorner 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 一、使用Android Studio创建本地git仓库: 1、检查本地git环境:在Android Studio中setting-->Version Control 点击Test按钮,提示success之后就证明本地git环境已经搭建好了; 2、新建工程; 3、创建好工程后在工具栏依次选择VC... 阅读全文
posted @ 2015-08-27 17:53 netcorner 阅读(2252) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 82 下一页