原创 Android Studio Package rename and error “Activity class does not exist”

最近被一個問題困擾很久: When using Android Studio, it gives me this error when I changed the package name  from “org.company.old” 

原创 StringTokenizer 字符串分隔類

String testString = "1,2,3"; StringTokenizer st = new StringTokenizer(testString.trim(), ","); while(st.hasMoreTokens()

原创 Android Aquery下載html修改後存儲到本地

Several ways. You can use Element#append() to append some piece of HTML to the element. Document document = Jsoup.con

原创 Servlet 404

<form action=“/registerServlet” 404 up vote5down votefavorite 4 I have an HTML form in a JSP file

原创 IabHelper crashes 整理

IabHelper crashes 1. Android in-app billing: onServiceConnected is never called and bindService returns “false” Ins

原创 web鏈接跳轉安卓app的問題

Load a web URL Google Now "open example.com" To open a web page, use the ACTION_VIEW action and specify the web U

原创 nexus 5X update 8.0

1. nexus 5X update to 8.0 下載工具,cmd進入命令行,打開文件所在位置 https://dl.google.com/android/repository/platform-tools-latest-windows

原创 Eclipse 配置 tomcat相關問題

Eclipse 配置 tomcat相關問題 1. 直接雙擊啓動tomcat中的startup.bat閃退原因及解決方法 解決辦法: 1.在已解壓的tomcat的bin文件夾下找到startup.bat,右擊->編輯。在文件頭加入下面兩行

原创 Android 保存文件路徑

Android保存文件到本地路徑問題 常見路徑 例如: application 包名: com.my.company 項目名: chat /data/data =

原创 Android adb 連不上

Android ADB server didn’t ACK * failed to start daemon * 遇到過Android studio調試時,adb啓動不了,開始不知道什麼原因,一直重啓都沒用,後來搜到這篇文章(轉自 htt

原创 AWS dynomodb 和 AWS CLI本地使用

本地使用dynamodb 下載Dynamodb到本地,如下是下載地址: .tar.gz 格式:http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_loca

原创 Retrofit2 使用心得

三次使用 Retrofit2 開始想做安卓的網絡請求,發現安卓本身的httpURLConnection太過簡單,使用有大量工作量,就想到使用第三方架包代替,通過了解選擇了Retrofit. 它是結合rxjava一起使用的,比較方便,不過其

原创 Maven 遇到的問題

source-1.5 中不支持 diamond運算符 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plug

原创 Java servlet 跳轉404

寫jsp的表格提交跳轉servlet, 出現404的情況 1、如果訪問jsp頁面需要項目名,則必須配置action=”${pageContext.request.contextPath}/login”。因爲表格的post方法寫的actio

原创 SSL/TLS Configuration HOW-TO Apache Tomcat 7

SSL/TLS Configuration HOW-TO Apache Tomcat 7 Version 7.0.67, Dec 7 2015 please go to https://tomcat.apache.org/tomcat-