随笔分类 -  android

摘要:package com.pingyijinren.test; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import and... 阅读全文
posted @ 2016-05-18 19:01 zqxLonely 阅读(497) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.app.IntentService; import android.content.Intent; import android.content.Context; import android.util.Log; /** * An {@link IntentService} subclass for... 阅读全文
posted @ 2016-05-18 18:12 zqxLonely 阅读(2174) 评论(0) 推荐(0)
摘要:public class MainActivity extends AppCompatActivity implements View.OnClickListener { private Context mContext; private NotificationManager mNManager; private Notification notify1; B... 阅读全文
posted @ 2016-05-18 17:57 zqxLonely 阅读(255) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.annotation.TargetApi; import android.app.Notification; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; impo... 阅读全文
posted @ 2016-05-18 17:55 zqxLonely 阅读(201) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; import android.util.Log; public class MyService extend... 阅读全文
posted @ 2016-05-18 17:35 zqxLonely 阅读(230) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.os.AsyncTask; import android.widget.ProgressBar; import android.widget.TextView; /** * Created by Administrator on 2016/5/18 0018. */ class MyAsyncTa... 阅读全文
posted @ 2016-05-18 16:06 zqxLonely 阅读(176) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.os.Handler; import android.os.Message; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import andro... 阅读全文
posted @ 2016-05-18 15:19 zqxLonely 阅读(176) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.net.Uri; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.MediaController; import android.widget.VideoVi... 阅读全文
posted @ 2016-05-18 14:50 zqxLonely 阅读(207) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.media.MediaPlayer; import android.os.Environment; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; i... 阅读全文
posted @ 2016-05-18 10:58 zqxLonely 阅读(9497) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.annotation.TargetApi; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.... 阅读全文
posted @ 2016-05-18 10:26 zqxLonely 阅读(284) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.annotation.TargetApi; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.... 阅读全文
posted @ 2016-05-18 10:12 zqxLonely 阅读(244) 评论(0) 推荐(0)
摘要:package com.pingyijinren.test; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import... 阅读全文
posted @ 2016-05-17 11:52 zqxLonely 阅读(248) 评论(0) 推荐(0)
摘要:在fragment中使用getActivity()即可获取activity的引用 阅读全文
posted @ 2016-05-12 17:13 zqxLonely 阅读(1256) 评论(0) 推荐(0)
摘要:在android开发中,写了一个关于继承Fragment的类时,如果有重载构造函数时,会提示“Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundl 阅读全文
posted @ 2016-05-12 11:27 zqxLonely 阅读(160) 评论(0) 推荐(0)
摘要:设置webview可以获取截图: 当要进行多次截图时,先要清除之前的缓存: 保存webview的截图到bitmap: 阅读全文
posted @ 2016-05-11 14:22 zqxLonely 阅读(426) 评论(0) 推荐(0)
摘要:学习Java的童鞋们都知道,Java的包、类、借口、方法、变量、常量;JavaEE的三层模型等都有一套约定俗成的命名规则。 我学习每种语言都会关注相应的命名规则,一则体现自己比较专业;二来方便后检查,看到名称就知道是属于什么类型、占用多少内存、使用是否正确等;三又可以供其他人参考。 当然,学习Jav 阅读全文
posted @ 2016-05-09 11:42 zqxLonely 阅读(14606) 评论(0) 推荐(1)
摘要:注意要添加权限: 阅读全文
posted @ 2016-05-07 19:32 zqxLonely 阅读(193) 评论(0) 推荐(0)
摘要:设置支持js: 设置无图模式: 设置文字大小: 阅读全文
posted @ 2016-05-07 18:24 zqxLonely 阅读(337) 评论(0) 推荐(0)
摘要:alertdialogbuilder=new AlertDialog.Builder(MainActivity.this); View view=getLayoutInflater().inflate(R.layout.layout_alertdialog,null,false); alertdialogbuilder.setVie... 阅读全文
posted @ 2016-05-07 13:27 zqxLonely 阅读(144) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-05-07 11:17 zqxLonely 阅读(152) 评论(0) 推荐(0)