●補充說明--加密
●程式說明--AES加密(代替DES,做完加密以後,還要把程式混亂,可以使用proguard反編譯工具)
.png)

●程式參考(GitHub):Android AES加密(使用com.scottyab:aescrypt)
●補充說明--加密
●程式說明--AES加密(代替DES,做完加密以後,還要把程式混亂,可以使用proguard反編譯工具)
●程式參考(GitHub):Android AES加密(使用com.scottyab:aescrypt)
●程式說明--多重執行緒補充
=>run倒數計時
●程式參考(GitHub):多重執行續的補充說明(CountDownTimer、Handler、runOnUiThread、AsynTask)
●程式說明
(一)Firebase Realtime Database
=>使用雲端資料庫交換資料
=>先連結google帳號和firebase
●程式參考(GitHub):透過Android Studio內建機制使用FireBase Realtime Database
6/21
My son finally finished his final exam yesterday and his grade of Math is 90 marks.
No matter what the result, both me and my son could take a load off our mind.
After dinner, we drew pictures together and had fun.
6/22
My birthday falls on a weekday, so we plan to celebrate my birthday at this weekend.
We are going to a famous Korean restaurant and the Banchan there is really yummy.
After lunch, we plan to buy the trolley bag for our tirp on July.
6/23
We didn't find the trolley bag which matched up my imagination yesterday.
My period was coming and I had cramps all last night.
In spite of sleeping for a long time last night, I still felt tired this morning.
6/24
I had a fight with my husband again.
To draw attention away from negative emotions, I started to play a mobile game.
The game was so much fun that I didn't sleep util 1:30 am and I was really tired.
6/25
My co-worker who is also a developer takes leave today because he has a job interview.
After yesterday's meeting, he made up his mind to give notice before July.
I have to say I really envy him for getting opportunities for interviews soon.
6/26
My boss arranges for a meeting at 5:00 pm today.
Both my co-worker and I think my boss's arrangement is to make us work more than we are paid.
Good news is that there will be four newcomers to join us at July 1.
6/27
My son's summer vacation is coming and I counld finally get up a bit late in the morning.
Howerver, I have to plan for his summer vacation.
I have to plan weekly summer homework schedule for my son and arrange for him to participate in fun and educational activities.
6/28
One of our client held a seminar today and used the face recognition of our company to welcome their VIP guests.
However, the client wasn't satisfited with our system.
My boss was very unhappy and called a post-mortem meeting right away.
6/29
All my family went to the Taipei Astronomical Museum today.
The museum recently had organized a special exhibition which displays the history, astronaut equipment, food and so on for moon landing.
After seeing the exhibition, we went to see a movie about Mars landing and the movie was really great.
6/30
My son and I plan to visit his best friend today after his Taekwondo class.
I take my son for a motorcycle ride but it's really dangerous.
Although it's dangerous, it's more convenient than taking public transportation.
*finish the final exam:結束期末考
*take a load off one's mind:放下心中重擔
*....falls on a weekday:...日子是工作日
*Banchan:韓式餐廳的小菜(拌菜)
*trolley bag:有拖輪的旅行袋
*match up my imagination:符合我的想像
*in spite of Ving:雖然....
*draw attention away from...:將注意力從...轉移
*have a job interview:有面試
*yeterday's meeting:昨天的會議
*make up one's mind:下定決心
*give notice:提辭呈
*envy sb. (for) sth.:羨慕某人某事
*get an opportunity for an interview:取得面試的機會
*arrange for ...:安排
*newcomer:新人
*summer homework:暑假作業
*Taipei Astronomical Museum:台北天文館
*organize a special exhibition:舉辦一個特展
*moon landing:登月
*seminar:研討會
*welcom VIP guests:迎賓
*call a meeting:召開會議
*post-mortem:屍檢,事後檢討
*take a child for a motorcycle ride:騎機車帶小孩
*public transportation:大眾交通工具
●程式說明
**上述兩種做法的缺點:當要載入的圖片很大時,不會出現進度條,要等全部載完才會有反應,但可以使用轉圈圈的方式
●程式參考(GitHub):使用volley ImageRequest和Picasso下載圖片資源
●補充說明
(一)用volley來寫網路的存取程式
=>volley是google官方作的,且為google官方推薦的第三方元件,已經把抓資料的細節都包好了
=>使用volley有四個步驟
1.建立queue(佇列)=>排隊
2.建立request(要求)=>去存取一個網路資源的要求,執行第二個步驟時,要丟三個參數
=>
a.url
b.成功了要做甚麼=>這是在主執行緒上做,所以可以動到ui
c.失敗了要做甚麼
3.把2加入1(讓request排隊)
4. 1.start();(叫隊伍開始動)
=>做之前要先設定權限
●程式說明
(ㄧ)Volley的部分
(二)Json的部分可以分為兩種做法
作法一:使用JSONArray和JSONObject
作法二:利用gson函式庫(https://github.com/google/gson) 也是google的
MainActivity.java
●程式參考(GitHub):
實作透過Volley、JSONArray、JSONObject、GSON取得Open Data資料
●程式說明
=>把抓到的rss新聞標題用listview的方法呈現出來
=>點擊每一個listview就要抓到它的link連出去(丟到下一頁,載入webview)
(二)MyDataHandler
(三)MainActivity.java
●程式參考(GitHub):實作讀取新聞網站的RSS
●畫面預覽
=>點擊SAX按鈕後,下方出現Udn RSS新聞列表
●補充說明
(二)RSS xml的取得
=>以udn新聞網為例,選取上方RSS,再到下方選定要Feed的rss類別
=>開啟RSS XML 的URL位址
●程式參考(GitHub):實作讀取新聞網站的RSS
自訂txt檔案並匯入app中,做法如下:
(一)在電腦建立一個檔名為flashcard.txt的檔案
(二)建立資料的規則為:
群組/資料夾名稱:寫在每一行的開頭,並且和單字內容以:區隔(注意這邊:不可以使用全形或中文的:)
單字卡:每個單字卡與中文都用,隔開(注意這邊,不可以使用全形或中文的,)
如果同時要建立的資料夾/群組不只一個,在每一個群組/資料夾的結尾用@區隔
範例如下:
**存檔時要注意,一定要存成UTF-8的格式,不然中文就會出現如下圖的亂碼
(三)將檔案放進app中的方法有兩種
1.使用電腦連接手機放入檔案
a.手機接到電腦後,開啟內部共用儲存空間
b.尋找一個名稱為FlashCard的資料夾
(有時候連接手機後會找不到這個資料夾,手機重開機即可找到)
c.將剛剛完成的txt檔放入,如果裡面已經有一個flashcard.txt可以直接覆蓋
2.透過雲端硬碟直接下載後放到手機中的資料夾
a.將txt檔放到雲端硬碟(ex:google drive/dropbox...)
b.下載到手機中(一般會下載到download資料夾中,每款手機可能會有差異)
c.將檔案從下載後的資料夾移動至內建儲存空間中的FlashCard資料夾即可
(一樣可直接覆蓋相同名稱的檔案)
(四)完成後,點擊"批次匯入txt檔按鈕"
(五)匯入成功回到資料夾/群組首頁,可以看到在txt檔內輸入的資料
單字卡app下載連結:google play
6/11
Our HR specialist was still angry and yelled at me this morning, so I told her that I didn't speak ill of her behind her back.
And after that, she could finally talk to me just as usual.
My workloads have increased recently and I'm worried that I can't handle it.
6/12
In the beginning I loved going to work because I really loved programming.
However, after all these days, I am in low spirits as soon as I think of going to work.
Because my co-workers would snitch on others.
6/13
My son had an English review quiz to review for the final exam yesterday .
I am worried about him because he always makes careless errors on exam.
However, he got really good grades and his grade was 99 marks.
6/14
Today is my son's English final Exam and I really hope he won't make careless errors again.
Last night I complained to my husband about my boss.
My husband didn't comfort me. Instead, he preached to me and that depressed me more.
6/15
I was bloated and have the hiccups all day long yesterday.
I was worried that I had a stomach ulcer again.
Having a gastroscopy is really uncomfortable.
6/16
Last night, I prepared the question paper for my son to review for his final exam next week.
I didn't sleep until it was 2:00 am and I felt really tired.
It's really strange that I prepare his final exam harder than he do.
6/17
I was finally not bloated and didn't keep having the hiccups this morning.
I plan to give in my notice by the end of July.
Although I make up my mind to quit, I still worry when I can find my next job.
6/18
My son got really good grades at his English final exam and he told me his grades was 97.5 marks.
However, he still made careless errors on the exam so he was worried that I would be angry at him.
I told him he was great and I didn't get angry.
6/19
The computers and servers of our company often crash and that always interrupts me at work.
After going home, my son told me his grades of Mandarin and Life Curriculum final exam are 97 and 95 marks.
I am really glad that he has made good progress in Mandarin and Life Curriculum.
6/20
Today is my birthday and the first present is an red envelope given by my husband.
When I got to my office and opened my laptop, I found the red envelope sticked on my screen.
The red envelope reads, "Happy Birthday to Derek's Mom" and it surprises me.
*workload:工作負擔
*snitch on sb:打sb的小報告
*be in low spirits:情緒低落
*review quiz:複習小考
*final exam:期末考
*review for the final exam:為了複習期末考
*make careless errors on exam:考試時常粗心錯
*get really good grades:考得很好
*one's grade is xx marks:考xx分
*complain to sb. about sth.:對sb.抱怨sth.
*comfort :安慰
*preach to sb.:對sb說教
*be bloated:脹氣
*have hiccups:打嗝
*have a stomach ulcer:胃潰瘍
*have a gastroscopy:照胃鏡
*give in one's notice:提辭呈
*make up one's mind to... :下定決心
*interrupt sb at work:打斷某人的工作
*Mandarin:國語
*Life Curriculum:生活課
*make good progress in xxxx:在xxx方面有很大的進步
*red envelope:紅包
*xxx TWD in red envelope:xxx元的紅包
*xxx reads/says, "........":xxx上面寫著....