android


linux-mint下web开发环境搭建-Last·Update·2014·01·04·By·CCY

我怕爱的太早我们不能终老 提交于 2020-02-28 17:14:33
最新更新链接: https://gist.github.com/Channely/8296901 '.------------------------------------------------------------系统以64bit为例进行配置-----------------------------------------------------------.' 32位和64位的机器均可安装64位的系统 '.-------------------------------------------------------------------'.1.必备软件.'-------------------------------------------------------------------.' ibus (软件管理器安装) ibus-pinyin (软件管理器安装) 切换输入法快捷键:Alt+Shift Chrome (官网下载) 版本:64 bit .deb (适用于 Debian/Ubuntu) Skype (软件管理器安装) RubyMine (官网下载) 版本:默认版本 或 最高版本 IntelliJ IDEA (官网下载) 版本:Community Edition 【安装以上六个软件时请注意:不要同时按装两个软件 一个一个来 如果安装ibus/ibus

Android开发—— 小工具,大效率

空扰寡人 提交于 2020-02-28 16:03:40
一、Hugo插件 —— 打印方法运行时间 首先申明下,此Hugo非 彼Hugo(Hugo是由Go语言实现的静态网站生成器)。 Hugo插件作用 : 能够计算并打印一个方法的输入参数和函数的运行时间 Hugo插件应用场景: 处理Android 应用卡顿问题 (1)先看实例 1)在对应方法处标注@DebugLog SearchResultPanel::dispatchResult处标记@DebugLog 2)Hugo插件计算的运行时间 Hugo插件计算的运行时间 第一行:打印执行方法及其参数 第二行:方法执行时间 3)常规日志打印运行时间 常规日志打印运行时间 (2)Hugo 插件配置 1)在buildscript 的dependencies中添加依赖地址 classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1' 2)apply插件 applyplugin:'com.jakewharton.hugo' 3)使用开关配置 方式一 : hugo { enabled false } 方式二 : Hugo.setEnabled(true|false) 备注 : How to use Hugo.setEnabled(true)? (暂时好像还不行) Hugo插件详细资料可参考 : Hugo插件 Github 地址 二、Godeyes 插件 ——

Android adb hangs in list devices and other commands

断了今生、忘了曾经 提交于 2020-02-28 16:01:29
问题 When I try to run adb commands from terminal, especially adb devices , adb kill-server and adb start-server it hangs and I need to type CTRL+C to exit proccess. Its not possible to deploy APK to physical or virtual devices. Something is block adb proccess/port. I have anti-virus uninstalled and firewall disabled. In the example below, I type adb devices and terminal show me List of devices attached and hangs in there. 回答1: adb binds to TCP port 5037, if this port is in use by different

Android adb hangs in list devices and other commands

纵然是瞬间 提交于 2020-02-28 15:59:06
问题 When I try to run adb commands from terminal, especially adb devices , adb kill-server and adb start-server it hangs and I need to type CTRL+C to exit proccess. Its not possible to deploy APK to physical or virtual devices. Something is block adb proccess/port. I have anti-virus uninstalled and firewall disabled. In the example below, I type adb devices and terminal show me List of devices attached and hangs in there. 回答1: adb binds to TCP port 5037, if this port is in use by different

How to Handle Two Different Response in Retrofit

大憨熊 提交于 2020-02-28 15:56:15
问题 I followed this to POST Data Using Retrofit2 I Used JSON POJO to Parse my POST and GET files So Here If Data inside the Records Is there I will get This Kind of Response { "status": "200", "response": [{ "cnt_id": "201", "phn_no": "3251151515", "dat_cnt": "Reset Password request Said to Mail" }, { "cnt_id": "209", "phn_no": "555465484684", "dat_cnt": "Hi DEMO User , Congratulations! Your account has been created successfully." }, { "cnt_id": "210", "phn_no": "4774748", "dat_cnt": "Hi XYZ ,

How to Handle Two Different Response in Retrofit

断了今生、忘了曾经 提交于 2020-02-28 15:54:46
问题 I followed this to POST Data Using Retrofit2 I Used JSON POJO to Parse my POST and GET files So Here If Data inside the Records Is there I will get This Kind of Response { "status": "200", "response": [{ "cnt_id": "201", "phn_no": "3251151515", "dat_cnt": "Reset Password request Said to Mail" }, { "cnt_id": "209", "phn_no": "555465484684", "dat_cnt": "Hi DEMO User , Congratulations! Your account has been created successfully." }, { "cnt_id": "210", "phn_no": "4774748", "dat_cnt": "Hi XYZ ,

My app just crashed, how can I get the crash log?

拈花ヽ惹草 提交于 2020-02-28 15:51:04
问题 I am testing my app on my actual device, and it seems like there is a memory leak. The app has crashed after a couple of hours. How can I pull up the log of the crash? I plugged my phone in via USB and tried: adb logcat -v but I get the following message in my terminal: - waiting for device - error: more than one device and emulator How can I diagnose my crash? 回答1: That's because there's... more than one device and emulator The error is fairly clear. So, what you do in this case is: adb

My app just crashed, how can I get the crash log?

一曲冷凌霜 提交于 2020-02-28 15:50:10
问题 I am testing my app on my actual device, and it seems like there is a memory leak. The app has crashed after a couple of hours. How can I pull up the log of the crash? I plugged my phone in via USB and tried: adb logcat -v but I get the following message in my terminal: - waiting for device - error: more than one device and emulator How can I diagnose my crash? 回答1: That's because there's... more than one device and emulator The error is fairly clear. So, what you do in this case is: adb

Android| Basic Auth using retrofit2 and local API

最后都变了- 提交于 2020-02-28 15:41:49
问题 I started making an app and connected it to a mock API at first. Now I want to connect it an API that runs on my PC. For starters, I'm trying to implement the login access. Since my API's base URL was http://localhost:5000/energy/api/ I changed it to http://<< MyIPAddress >>:5000/energy/api/ (don't know if this is right yet). I'm testing it on my actual phone. But with my code username and password are passed on as parameters, while I'd like to login with basic auth (this is how I do it in

Android| Basic Auth using retrofit2 and local API

青春壹個敷衍的年華 提交于 2020-02-28 15:36:02
问题 I started making an app and connected it to a mock API at first. Now I want to connect it an API that runs on my PC. For starters, I'm trying to implement the login access. Since my API's base URL was http://localhost:5000/energy/api/ I changed it to http://<< MyIPAddress >>:5000/energy/api/ (don't know if this is right yet). I'm testing it on my actual phone. But with my code username and password are passed on as parameters, while I'd like to login with basic auth (this is how I do it in

工具导航Map