?????????????洢
???????????? ???????[ 2016/7/4 11:12:45 ] ??????????????? ???????
?????????????????洢
????????????????
????1. logcat
????2. Toast
????3. dialog
????4. Notification ????
??????? ?? ????????? ????????
????????汾?? Notification notification=new Notication????
????Notification.Builder : level 16?汾?????
??????????????棺
????RemoteViews
????????Android????
????1. ???????
????- ???????????????
????1. ??в??? ?? ??????????????????????????? ?????в???
????2. ??в??? ???????????????????????
????- ???????????? ?????????
????- ????????
????- ??????? ?? ?????junit ??????? ??apache
????- ???????
????- ?????? ????????????--?????????-??????
????- ?????????????
????1. ??????? ??????????λ????????????? ?????????
????monkey???? ?????????????????? ???????????????????
????adb ????????????
??????????????????? path=E:Androidadt-bundle-x86-32sdkplatform-tools;
????????linux shell?????У?
?????????У? adb shell
????# ?? moneky -p <????> count
????money -p cn.itcast.weixin 1000
????2. e????? ?????
????- ???????
????1. ????????
????2. ??????汾?????
????3. ????????android ???ο??????????
????2.Android???????
????- android ??????? ???????? Junit??? ???????????????
?????????????????裺
????1. ??????????д?????????AndroidTestCast????д???????
????2. ??AndroidManifest.xml application??????????????
????3. ??AndroidManifest.xml ???ò??????
????- ????
????1. ???? ????????
????2. ????
????- ???? ??????????????????????????????д????
????- ??? ?? ??????????
????3. ???? ???if else
????4. ????????? getContext
????- ????????????????????????? android test project
????????????洢????
??????????????洢
???????????洢?????
????????????е????????
?????????ж?????/data/data/<????> ????????????????????????洢??????????
???????λ??? /data/data/<????>/files
?????????
????Context.openFileOutput(String name?? int mode)
????????? ?????????????????FileOutputSteam??д??????????
????name ?? ????????????????????
????mode ???????????? private?? ????? ??????????????? append ??????????????
?????????洢??λ???/data/data/<????>/files ???????????????
????return?? FileOutputSteam
????Context.openFileInput(String name) ?????????洢?ж?????
??????????????????洢?ж?????
????name ???????
????FileInputStream
????context.getCacheDir() ??????????/data/data/<package name>/cache??
???????????File???? ??????У?
????context.getFilesDir() ??????????/data/data/<package name>/files??
???????????File???? ??????У?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11