当前位置: 首页 > news >正文

网站上线 模板做网站都有哪些费用

网站上线 模板,做网站都有哪些费用,广州互联网公司排行榜,wordpress 升级 无法创建目录之前碰到的OOM问题#xff0c;终于很直白的呈现在我的眼前#xff1a;我尝试了MAT#xff0c;但是发现不怎么会用。直到今天终于发现了这个新工具#xff1a; 当我们的App中存在内存泄露时会在通知栏弹出通知#xff1a; 当点击该通知时#xff0c;会跳转到具体的页面终于很直白的呈现在我的眼前我尝试了MAT但是发现不怎么会用。直到今天终于发现了这个新工具 当我们的App中存在内存泄露时会在通知栏弹出通知 当点击该通知时会跳转到具体的页面展示出Leak的引用路径如下图所示 LeakCanary 可以用更加直白的方式将内存泄露展现在我们的面前。 以下是我找到的学习资料写的非常棒 1、LeakCanary: 让内存泄露无所遁形 2、LeakCanary 中文使用说明 AndroidStudio (官方)上使用LeakCanary 请移步 https://github.com/square/leakcanary Eclipse 上使用LeakCanary 请移步我的 https://github.com/SOFTPOWER1991/LeakcanarySample-Eclipse Android studio 自己弄的上使用LeakCanary也可以看这个 leakcanarySample_androidStudio 工程包括 LeakCanary库代码LeakCanaryDemo示例代码使用步骤 将LeakCanary import 入自己的工程 添加依赖 compile project(:leakcanary) 在Application中进行配置 public class ExampleApplication extends Application { ...... //在自己的Application中添加如下代码 public static RefWatcher getRefWatcher(Context context) { ExampleApplication application (ExampleApplication) context .getApplicationContext(); return application.refWatcher; } //在自己的Application中添加如下代码 private RefWatcher refWatcher; Override public void onCreate() { super.onCreate(); ...... //在自己的Application中添加如下代码 refWatcher LeakCanary.install(this); ...... } ..... } 在Activity中进行配置 public class MainActivity extends AppCompatActivity { ...... Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //在自己的应用初始Activity中加入如下两行代码 RefWatcher refWatcher ExampleApplication.getRefWatcher(this); refWatcher.watch(this); textView (TextView) findViewById(R.id.tv); textView.setOnClickListener(new View.OnClickListener() { Override public void onClick(View v) { startAsyncTask(); } }); } private void async() { startAsyncTask(); } private void startAsyncTask() { // This async task is an anonymous class and therefore has a hidden reference to the outer // class MainActivity. If the activity gets destroyed before the task finishes (e.g. rotation), // the activity instance will leak. new AsyncTaskVoid, Void, Void() { Override protected Void doInBackground(Void... params) { // Do some slow work in background SystemClock.sleep(20000); return null; } }.execute(); } }   在AndroidMainfest.xml 中进行配置,添加如下代码 serviceandroid:namecom.squareup.leakcanary.internal.HeapAnalyzerServiceandroid:enabledfalse android:process:leakcanary / service android:namecom.squareup.leakcanary.DisplayLeakService android:enabledfalse / activity android:namecom.squareup.leakcanary.internal.DisplayLeakActivity android:enabledfalse android:icondrawable/__leak_canary_icon android:labelstring/__leak_canary_display_activity_label android:taskAffinitycom.squareup.leakcanary android:themestyle/__LeakCanary.Base intent-filter action android:nameandroid.intent.action.MAIN / category android:nameandroid.intent.category.LAUNCHER / /intent-filter /activity 转载于:https://www.cnblogs.com/ldq2016/p/6635783.html
http://www.huolong8.cn/news/132113/

相关文章:

  • 一些做义工的旅游网站润滑油手机网站模板
  • 网站建设的主要功能织梦手机网站分亨链接怎么做
  • 网站开发研究前景 论文咸阳网站设计
  • 财经网站源码 织梦自适应科技公司网站模板
  • 郑州电商网站建设免费的素材网站
  • 陶瓷网站模板个人论坛类网站
  • 恩施有做网站的吗网站建设软件下载
  • 网站导航栏修改字体大小wordpress 公园
  • 外围网站怎么做信息系统推广方案
  • 无锡上海网站建设wordpress纯净版下载
  • 网站制作方案费用共享办公室可以注册公司吗
  • 荆州哪个公司做网站wordpress action
  • 教务在线网站开发报告书加强网站建设和信息公开
  • 做直播网站软件有哪些软件强企网做网站
  • 东莞做网站公司有哪些百度文库官网首页
  • 政务公开网站建设要求网站克隆 有后台登录
  • 南宁网站建设哪家公司实力西安网站建设价格低
  • 广西住房城乡建设网站怎么知道这网站是php语言做的
  • 美食网站 原型 html 下载手机移动网站开发
  • 做影视网站引流计算机专业论文 网站建设
  • 中国建设部网站官网罗湖商城网站设计多少钱
  • 莱州 网站制作网站到期查询
  • 广州商务网站建设电话身边的网络营销案例
  • 台州网站建设系统如何设计一个公司的网页
  • 网站的结构是什么样的怎么申请信用卡收款网站接口
  • 容桂网站制作咨询北京网站设计必看刻
  • 建设网站公司 优帮云网站建设需要什么研究条件
  • 网页设计与网站建设考试题目东莞网站建设 牛魔网
  • 做网站卖仿品温州房产信息网
  • 网站模板 htmlwordpress comments.php