├── README.md
├── client
├── .classpath
├── .project
├── .settings
│ └── org.eclipse.core.resources.prefs
├── AndroidManifest.xml
├── bin
│ ├── AndroidManifest.xml
│ ├── MyYun.apk
│ ├── classes.dex
│ ├── classes
│ │ └── com
│ │ │ └── xiao
│ │ │ ├── bean
│ │ │ ├── ContactInfo.class
│ │ │ ├── FileInfo.class
│ │ │ ├── FormFile.class
│ │ │ └── SmsInfo.class
│ │ │ └── myyun
│ │ │ ├── BuildConfig.class
│ │ │ ├── Constants.class
│ │ │ ├── Contact$1.class
│ │ │ ├── Contact.class
│ │ │ ├── ContactUtil.class
│ │ │ ├── DownLoadThread$1.class
│ │ │ ├── DownLoadThread.class
│ │ │ ├── DownloadAdapter$ViewHolder.class
│ │ │ ├── DownloadAdapter.class
│ │ │ ├── DownloadList$1.class
│ │ │ ├── DownloadList$2.class
│ │ │ ├── DownloadList$3.class
│ │ │ ├── DownloadList.class
│ │ │ ├── FSExplorer.class
│ │ │ ├── FSInfo$1.class
│ │ │ ├── FSInfo.class
│ │ │ ├── FileBakRestoreActivity.class
│ │ │ ├── FileRestore$1.class
│ │ │ ├── FileRestore$2.class
│ │ │ ├── FileRestore.class
│ │ │ ├── FileRestoreAdapter$1.class
│ │ │ ├── FileRestoreAdapter$ViewHolder.class
│ │ │ ├── FileRestoreAdapter.class
│ │ │ ├── FileUtil.class
│ │ │ ├── LocalDB$MyDBAdapter.class
│ │ │ ├── LocalDB.class
│ │ │ ├── LocalUtils.class
│ │ │ ├── MainActivity.class
│ │ │ ├── MyAdapter$1.class
│ │ │ ├── MyAdapter$ViewHolder.class
│ │ │ ├── MyAdapter.class
│ │ │ ├── R$attr.class
│ │ │ ├── R$drawable.class
│ │ │ ├── R$id.class
│ │ │ ├── R$layout.class
│ │ │ ├── R$string.class
│ │ │ ├── R$style.class
│ │ │ ├── R.class
│ │ │ ├── Remote.class
│ │ │ ├── Sms$1.class
│ │ │ ├── Sms$2$1.class
│ │ │ ├── Sms$2.class
│ │ │ ├── Sms.class
│ │ │ ├── SmsUtil.class
│ │ │ ├── SocketHttpRequester.class
│ │ │ ├── UploadAdapter$ViewHolder.class
│ │ │ ├── UploadAdapter.class
│ │ │ ├── UploadList$1.class
│ │ │ ├── UploadList$2.class
│ │ │ ├── UploadList$3.class
│ │ │ ├── UploadList.class
│ │ │ ├── UploadThread$1.class
│ │ │ ├── UploadThread.class
│ │ │ └── Utils.class
│ ├── client.apk
│ ├── dexedLibs
│ │ ├── android-support-v4-1951ce1cb999c443891707f9e73c2218.jar
│ │ ├── android-support-v4-5af30e3a2faa2966bc588b8e8d320fca.jar
│ │ └── annotations-48854bf297e97c8a3f76cba31b5baa79.jar
│ ├── jarlist.cache
│ ├── res
│ │ ├── drawable-hdpi
│ │ │ ├── directory.png
│ │ │ ├── file_doc.png
│ │ │ ├── file_explorer.png
│ │ │ ├── file_paranet.png
│ │ │ ├── file_root.png
│ │ │ └── ic_launcher.png
│ │ ├── drawable-mdpi
│ │ │ ├── directory.png
│ │ │ ├── file_doc.png
│ │ │ ├── file_explorer.png
│ │ │ ├── file_paranet.png
│ │ │ ├── file_root.png
│ │ │ └── ic_launcher.png
│ │ ├── drawable-xhdpi
│ │ │ └── ic_launcher.png
│ │ └── drawable-xxhdpi
│ │ │ └── ic_launcher.png
│ └── resources.ap_
├── gen
│ └── com
│ │ └── xiao
│ │ └── myyun
│ │ ├── BuildConfig.java
│ │ └── R.java
├── ic_launcher-web.png
├── libs
│ └── android-support-v4.jar
├── proguard-project.txt
├── project.properties
├── res
│ ├── drawable-hdpi
│ │ ├── directory.png
│ │ ├── file_doc.png
│ │ ├── file_explorer.png
│ │ ├── file_paranet.png
│ │ ├── file_root.png
│ │ └── ic_launcher.png
│ ├── drawable-mdpi
│ │ ├── directory.png
│ │ ├── file_doc.png
│ │ ├── file_explorer.png
│ │ ├── file_paranet.png
│ │ ├── file_root.png
│ │ └── ic_launcher.png
│ ├── drawable-xhdpi
│ │ └── ic_launcher.png
│ ├── drawable-xxhdpi
│ │ └── ic_launcher.png
│ ├── layout
│ │ ├── download_row.xml
│ │ ├── downloads.xml
│ │ ├── file_bak_restore.xml
│ │ ├── file_restore.xml
│ │ ├── file_restore_row.xml
│ │ ├── file_row.xml
│ │ ├── files_brouse.xml
│ │ ├── main.xml
│ │ ├── upload_row.xml
│ │ └── uploads.xml
│ └── values
│ │ ├── strings.xml
│ │ └── styles.xml
└── src
│ └── com
│ └── xiao
│ ├── bean
│ ├── ContactInfo.java
│ ├── FileInfo.java
│ ├── FormFile.java
│ └── SmsInfo.java
│ └── myyun
│ ├── Constants.java
│ ├── Contact.java
│ ├── ContactUtil.java
│ ├── DownLoadThread.java
│ ├── DownloadAdapter.java
│ ├── DownloadList.java
│ ├── FSExplorer.java
│ ├── FSInfo.java
│ ├── FileBakRestoreActivity.java
│ ├── FileRestore.java
│ ├── FileRestoreAdapter.java
│ ├── FileUtil.java
│ ├── LocalDB.java
│ ├── LocalUtils.java
│ ├── MainActivity.java
│ ├── MyAdapter.java
│ ├── Remote.java
│ ├── Sms.java
│ ├── SmsUtil.java
│ ├── SocketHttpRequester.java
│ ├── UploadAdapter.java
│ ├── UploadList.java
│ ├── UploadThread.java
│ └── Utils.java
├── server
├── .classpath
├── .externalToolBuilders
│ └── com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder.launch
├── .mymetadata
├── .mystrutsdata
├── .project
├── .settings
│ ├── .jsdtscope
│ ├── org.eclipse.core.resources.prefs
│ ├── org.eclipse.jdt.core.prefs
│ ├── org.eclipse.wst.common.component
│ ├── org.eclipse.wst.common.project.facet.core.xml
│ ├── org.eclipse.wst.jsdt.ui.superType.container
│ └── org.eclipse.wst.jsdt.ui.superType.name
├── WebRoot
│ ├── META-INF
│ │ ├── .svn
│ │ │ ├── all-wcprops
│ │ │ ├── entries
│ │ │ └── text-base
│ │ │ │ └── MANIFEST.MF.svn-base
│ │ └── MANIFEST.MF
│ ├── WEB-INF
│ │ ├── .svn
│ │ │ ├── all-wcprops
│ │ │ ├── entries
│ │ │ └── text-base
│ │ │ │ └── web.xml.svn-base
│ │ ├── classes
│ │ │ ├── .svn
│ │ │ │ ├── all-wcprops
│ │ │ │ └── entries
│ │ │ ├── org
│ │ │ │ ├── action
│ │ │ │ │ ├── AddContactAction.class
│ │ │ │ │ ├── AddInfoAction.class
│ │ │ │ │ ├── DownloadFileAction.class
│ │ │ │ │ ├── GetFileJsonAction.class
│ │ │ │ │ ├── GetInfoAction.class
│ │ │ │ │ └── UploadFileAction.class
│ │ │ │ ├── bean
│ │ │ │ │ ├── ContactInfo.class
│ │ │ │ │ ├── MyFileInfo.class
│ │ │ │ │ └── SmsInfo.class
│ │ │ │ └── store
│ │ │ │ │ ├── Constants.class
│ │ │ │ │ ├── Contact.class
│ │ │ │ │ ├── HBaseUtil.class
│ │ │ │ │ ├── Hdfs.class
│ │ │ │ │ ├── MyFile.class
│ │ │ │ │ ├── Sms.class
│ │ │ │ │ └── Utils.class
│ │ │ └── struts.xml
│ │ ├── lib
│ │ │ └── .svn
│ │ │ │ ├── all-wcprops
│ │ │ │ └── entries
│ │ └── web.xml
│ ├── index.jsp
│ └── upload
│ │ └── .svn
│ │ ├── all-wcprops
│ │ └── entries
├── libs
│ ├── ezmorph-1.0.6.jar
│ ├── gson-2.2.2.jar
│ ├── json-lib-2.4-jdk15-javadoc.jar
│ ├── json-lib-2.4-jdk15-sources.jar
│ └── json-lib-2.4-jdk15.jar
└── src
│ ├── org
│ ├── .svn
│ │ ├── all-wcprops
│ │ └── entries
│ ├── action
│ │ ├── .svn
│ │ │ ├── all-wcprops
│ │ │ ├── entries
│ │ │ └── text-base
│ │ │ │ ├── AddContactAction.java.svn-base
│ │ │ │ ├── AddInfoAction.java.svn-base
│ │ │ │ ├── DownloadFileAction.java.svn-base
│ │ │ │ ├── GetFileJsonAction.java.svn-base
│ │ │ │ ├── GetInfoAction.java.svn-base
│ │ │ │ └── UploadFileAction.java.svn-base
│ │ ├── AddContactAction.java
│ │ ├── AddInfoAction.java
│ │ ├── DownloadFileAction.java
│ │ ├── GetFileJsonAction.java
│ │ ├── GetInfoAction.java
│ │ └── UploadFileAction.java
│ ├── bean
│ │ ├── .svn
│ │ │ ├── all-wcprops
│ │ │ ├── entries
│ │ │ └── text-base
│ │ │ │ ├── ContactInfo.java.svn-base
│ │ │ │ ├── MyFileInfo.java.svn-base
│ │ │ │ └── SmsInfo.java.svn-base
│ │ ├── ContactInfo.java
│ │ ├── MyFileInfo.java
│ │ └── SmsInfo.java
│ └── store
│ │ ├── .svn
│ │ ├── all-wcprops
│ │ ├── entries
│ │ └── text-base
│ │ │ ├── Constants.java.svn-base
│ │ │ ├── Contact.java.svn-base
│ │ │ ├── HBaseUtil.java.svn-base
│ │ │ ├── Hdfs.java.svn-base
│ │ │ ├── MyFile.java.svn-base
│ │ │ ├── Sms.java.svn-base
│ │ │ └── Utils.java.svn-base
│ │ ├── Constants.java
│ │ ├── Contact.java
│ │ ├── HBaseUtil.java
│ │ ├── Hdfs.java
│ │ ├── MyFile.java
│ │ ├── Sms.java
│ │ └── Utils.java
│ └── struts.xml
└── 系统说明.txt
/README.md:
--------------------------------------------------------------------------------
1 | PhoneCloud-Java
2 | ===============================
3 |
4 | 基于HBase实现的手机数据备份系统,实现了手机关键信息的备份,如短信、联系人等。
5 |
6 | 包括服务器端(Server)和客户端(Client)
7 |
8 | Server运行环境:Hadoop+HBase+Tomcat
9 |
10 | Client运行环境: Eclipse+Android
11 |
12 | Server端介绍:
13 |
14 | 接收客户端请求的Action:
15 |
16 | 1. 添加短信Action----------->AddInfoAction.java
17 | 2. 获取短信Action----------->GetInfoAction.java
18 | 3. 同步联系人Action--------->AddContactAction.java
19 | 4. 上传文件Action----------->UploadFileAction.java
20 | 5. 下载文件Action----------->DownloadFileAction.java
21 |
22 | 封装了3个实体:
23 |
24 | 1. 短信------->SmsInfo.java
25 | 2. 联系人----->ContactInfo.java
26 | 3. 文件------->MyFileInfo.java
27 |
28 | 底部存储层:
29 |
30 | 1. Hdfs操作类-------->Hdfs.java
31 | 2. HBase操作类------->HBaseUtil.java
32 | 3. 短信操作类-------->Sms.java
33 | 4. 联系人操作类------>Contact.java
34 | 5. 文件操作类-------->MyFile.java
35 |
36 | 上面的Action都配置到Struts.xml中。
37 |
38 |
39 | Client端介绍:
40 |
41 | 封装了三个实体bean
42 |
43 | 1. ContactInfo
44 | 2. SmsInfo
45 | 3. FileInfo
46 |
47 | 操作类
48 |
49 | 1. Contact
50 | 2. Sms
51 |
52 | 如有疑问请联系:lovezww2011@gmail.com 或微信我
53 |
--------------------------------------------------------------------------------
/client/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/client/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | MyYun
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/client/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding/=UTF-8
3 |
--------------------------------------------------------------------------------
/client/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
9 |
10 |
13 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/client/bin/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
9 |
10 |
13 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/client/bin/MyYun.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/MyYun.apk
--------------------------------------------------------------------------------
/client/bin/classes.dex:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes.dex
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/bean/ContactInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/bean/ContactInfo.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/bean/FileInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/bean/FileInfo.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/bean/FormFile.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/bean/FormFile.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/bean/SmsInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/bean/SmsInfo.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/BuildConfig.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/BuildConfig.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Constants.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Constants.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Contact$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Contact$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Contact.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Contact.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/ContactUtil.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/ContactUtil.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownLoadThread$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownLoadThread$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownLoadThread.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownLoadThread.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownloadAdapter$ViewHolder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownloadAdapter$ViewHolder.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownloadAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownloadAdapter.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownloadList$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownloadList$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownloadList$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownloadList$2.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownloadList$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownloadList$3.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/DownloadList.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/DownloadList.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FSExplorer.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FSExplorer.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FSInfo$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FSInfo$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FSInfo.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FSInfo.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileBakRestoreActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileBakRestoreActivity.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileRestore$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileRestore$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileRestore$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileRestore$2.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileRestore.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileRestore.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileRestoreAdapter$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileRestoreAdapter$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileRestoreAdapter$ViewHolder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileRestoreAdapter$ViewHolder.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileRestoreAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileRestoreAdapter.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/FileUtil.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/FileUtil.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/LocalDB$MyDBAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/LocalDB$MyDBAdapter.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/LocalDB.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/LocalDB.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/LocalUtils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/LocalUtils.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/MainActivity.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/MainActivity.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/MyAdapter$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/MyAdapter$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/MyAdapter$ViewHolder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/MyAdapter$ViewHolder.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/MyAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/MyAdapter.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/R$attr.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/R$attr.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/R$drawable.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/R$drawable.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/R$id.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/R$id.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/R$layout.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/R$layout.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/R$string.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/R$string.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/R$style.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/R$style.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/R.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/R.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Remote.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Remote.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Sms$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Sms$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Sms$2$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Sms$2$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Sms$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Sms$2.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Sms.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Sms.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/SmsUtil.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/SmsUtil.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/SocketHttpRequester.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/SocketHttpRequester.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadAdapter$ViewHolder.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadAdapter$ViewHolder.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadAdapter.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadAdapter.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadList$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadList$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadList$2.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadList$2.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadList$3.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadList$3.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadList.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadList.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadThread$1.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadThread$1.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/UploadThread.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/UploadThread.class
--------------------------------------------------------------------------------
/client/bin/classes/com/xiao/myyun/Utils.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/classes/com/xiao/myyun/Utils.class
--------------------------------------------------------------------------------
/client/bin/client.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/client.apk
--------------------------------------------------------------------------------
/client/bin/dexedLibs/android-support-v4-1951ce1cb999c443891707f9e73c2218.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/dexedLibs/android-support-v4-1951ce1cb999c443891707f9e73c2218.jar
--------------------------------------------------------------------------------
/client/bin/dexedLibs/android-support-v4-5af30e3a2faa2966bc588b8e8d320fca.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/dexedLibs/android-support-v4-5af30e3a2faa2966bc588b8e8d320fca.jar
--------------------------------------------------------------------------------
/client/bin/dexedLibs/annotations-48854bf297e97c8a3f76cba31b5baa79.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/dexedLibs/annotations-48854bf297e97c8a3f76cba31b5baa79.jar
--------------------------------------------------------------------------------
/client/bin/jarlist.cache:
--------------------------------------------------------------------------------
1 | # cache for current jar dependency. DO NOT EDIT.
2 | # format is
3 | # Encoding is UTF-8
4 |
--------------------------------------------------------------------------------
/client/bin/res/drawable-hdpi/directory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-hdpi/directory.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-hdpi/file_doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-hdpi/file_doc.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-hdpi/file_explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-hdpi/file_explorer.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-hdpi/file_paranet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-hdpi/file_paranet.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-hdpi/file_root.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-hdpi/file_root.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-mdpi/directory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-mdpi/directory.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-mdpi/file_doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-mdpi/file_doc.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-mdpi/file_explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-mdpi/file_explorer.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-mdpi/file_paranet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-mdpi/file_paranet.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-mdpi/file_root.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-mdpi/file_root.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/bin/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/bin/resources.ap_:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/bin/resources.ap_
--------------------------------------------------------------------------------
/client/gen/com/xiao/myyun/BuildConfig.java:
--------------------------------------------------------------------------------
1 | /** Automatically generated file. DO NOT MODIFY */
2 | package com.xiao.myyun;
3 |
4 | public final class BuildConfig {
5 | public final static boolean DEBUG = true;
6 | }
--------------------------------------------------------------------------------
/client/gen/com/xiao/myyun/R.java:
--------------------------------------------------------------------------------
1 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
2 | *
3 | * This class was automatically generated by the
4 | * aapt tool from the resource data it found. It
5 | * should not be modified by hand.
6 | */
7 |
8 | package com.xiao.myyun;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class drawable {
14 | public static final int directory=0x7f020000;
15 | public static final int file_doc=0x7f020001;
16 | public static final int file_explorer=0x7f020002;
17 | public static final int file_paranet=0x7f020003;
18 | public static final int file_root=0x7f020004;
19 | public static final int ic_launcher=0x7f020005;
20 | }
21 | public static final class id {
22 | public static final int backbutton=0x7f060005;
23 | public static final int backbutton4=0x7f06000d;
24 | public static final int bakbutton=0x7f060003;
25 | public static final int beifen=0x7f06000f;
26 | public static final int ckb=0x7f060009;
27 | public static final int ckblayout=0x7f060008;
28 | public static final int downloadlist=0x7f060002;
29 | public static final int filename=0x7f060000;
30 | public static final int huanyuan=0x7f060010;
31 | public static final int img=0x7f06000a;
32 | public static final int itemlist=0x7f060007;
33 | public static final int name=0x7f06000c;
34 | public static final int restore=0x7f060006;
35 | public static final int restorebutton=0x7f060004;
36 | public static final int status=0x7f060001;
37 | public static final int tongbu=0x7f060011;
38 | public static final int uploadbutton=0x7f06000e;
39 | public static final int uploadlist=0x7f060013;
40 | public static final int vw1=0x7f06000b;
41 | public static final int wenjian=0x7f060012;
42 | }
43 | public static final class layout {
44 | public static final int download_row=0x7f030000;
45 | public static final int downloads=0x7f030001;
46 | public static final int file_bak_restore=0x7f030002;
47 | public static final int file_restore=0x7f030003;
48 | public static final int file_restore_row=0x7f030004;
49 | public static final int file_row=0x7f030005;
50 | public static final int files_brouse=0x7f030006;
51 | public static final int main=0x7f030007;
52 | public static final int upload_row=0x7f030008;
53 | public static final int uploads=0x7f030009;
54 | }
55 | public static final class string {
56 | public static final int app_name=0x7f040000;
57 | }
58 | public static final class style {
59 | /**
60 | Base application theme, dependent on API level. This theme is replaced
61 | by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
62 |
63 |
64 | Theme customizations available in newer API levels can go in
65 | res/values-vXX/styles.xml, while customizations related to
66 | backward-compatibility can go here.
67 |
68 | */
69 | public static final int AppBaseTheme=0x7f050000;
70 | /** Application theme.
71 | All customizations that are NOT specific to a particular API-level can go here.
72 | */
73 | public static final int AppTheme=0x7f050001;
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/client/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/ic_launcher-web.png
--------------------------------------------------------------------------------
/client/libs/android-support-v4.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/libs/android-support-v4.jar
--------------------------------------------------------------------------------
/client/proguard-project.txt:
--------------------------------------------------------------------------------
1 | # To enable ProGuard in your project, edit project.properties
2 | # to define the proguard.config property as described in that file.
3 | #
4 | # Add project specific ProGuard rules here.
5 | # By default, the flags in this file are appended to flags specified
6 | # in ${sdk.dir}/tools/proguard/proguard-android.txt
7 | # You can edit the include path and order by changing the ProGuard
8 | # include property in project.properties.
9 | #
10 | # For more details, see
11 | # http://developer.android.com/guide/developing/tools/proguard.html
12 |
13 | # Add any project specific keep options here:
14 |
15 | # If your project uses WebView with JS, uncomment the following
16 | # and specify the fully qualified class name to the JavaScript interface
17 | # class:
18 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 | # public *;
20 | #}
21 |
--------------------------------------------------------------------------------
/client/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-10
15 |
--------------------------------------------------------------------------------
/client/res/drawable-hdpi/directory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-hdpi/directory.png
--------------------------------------------------------------------------------
/client/res/drawable-hdpi/file_doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-hdpi/file_doc.png
--------------------------------------------------------------------------------
/client/res/drawable-hdpi/file_explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-hdpi/file_explorer.png
--------------------------------------------------------------------------------
/client/res/drawable-hdpi/file_paranet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-hdpi/file_paranet.png
--------------------------------------------------------------------------------
/client/res/drawable-hdpi/file_root.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-hdpi/file_root.png
--------------------------------------------------------------------------------
/client/res/drawable-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/res/drawable-mdpi/directory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-mdpi/directory.png
--------------------------------------------------------------------------------
/client/res/drawable-mdpi/file_doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-mdpi/file_doc.png
--------------------------------------------------------------------------------
/client/res/drawable-mdpi/file_explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-mdpi/file_explorer.png
--------------------------------------------------------------------------------
/client/res/drawable-mdpi/file_paranet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-mdpi/file_paranet.png
--------------------------------------------------------------------------------
/client/res/drawable-mdpi/file_root.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-mdpi/file_root.png
--------------------------------------------------------------------------------
/client/res/drawable-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/res/drawable-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/geeeeeeeek/PhoneCloud-Java/25f7baaef80c62fbe7bbec4b86716a57b8f1108d/client/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/client/res/layout/download_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
11 |
12 |
17 |
18 |
23 |
24 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/client/res/layout/downloads.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/client/res/layout/file_bak_restore.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
19 |
20 |
--------------------------------------------------------------------------------
/client/res/layout/file_restore.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
11 |
17 |
24 |
25 |
26 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/client/res/layout/file_restore_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
13 |
18 |
19 |
20 |
21 |
26 |
27 |
33 |
34 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/client/res/layout/file_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
16 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
35 |
36 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/client/res/layout/files_brouse.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
12 |
18 |
25 |
26 |
27 |
31 |
--------------------------------------------------------------------------------
/client/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
10 |
15 |
20 |
25 |
30 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/client/res/layout/upload_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
16 |
17 |
22 |
23 |
28 |
29 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/client/res/layout/uploads.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/client/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | MyYun
4 |
5 |
6 |
--------------------------------------------------------------------------------
/client/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
14 |
15 |
16 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/client/src/com/xiao/bean/ContactInfo.java:
--------------------------------------------------------------------------------
1 | package com.xiao.bean;
2 |
3 | public class ContactInfo {
4 |
5 | private String name;
6 | private String phone;
7 | public String getName() {
8 | return name;
9 | }
10 | public void setName(String name) {
11 | this.name = name;
12 | }
13 | public String getPhone() {
14 | return phone;
15 | }
16 | public void setPhone(String phone) {
17 | this.phone = phone;
18 | }
19 | @Override
20 | public String toString() {
21 | return "ContactInfo [name=" + name + ", phone=" + phone + "]";
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/client/src/com/xiao/bean/FileInfo.java:
--------------------------------------------------------------------------------
1 | package com.xiao.bean;
2 |
3 | public class FileInfo {
4 |
5 | private String fileId;
6 | private String fileName;
7 | private String flag;
8 | public String getFileId() {
9 | return fileId;
10 | }
11 | public void setFileId(String fileId) {
12 | this.fileId = fileId;
13 | }
14 | public String getFileName() {
15 | return fileName;
16 | }
17 | public void setFileName(String fileName) {
18 | this.fileName = fileName;
19 | }
20 |
21 | public String getFlag() {
22 | return flag;
23 | }
24 | public void setFlag(String flag) {
25 | this.flag = flag;
26 | }
27 | @Override
28 | public String toString() {
29 | return "FileInfo [fileId=" + fileId + ", fileName=" + fileName
30 | + ", flag=" + flag + "]";
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/client/src/com/xiao/bean/FormFile.java:
--------------------------------------------------------------------------------
1 | package com.xiao.bean;
2 |
3 | import java.io.File;
4 | import java.io.FileInputStream;
5 | import java.io.FileNotFoundException;
6 | import java.io.InputStream;
7 |
8 | public class FormFile {
9 | /* 上传文件的数据 */
10 | private byte[] data;
11 | private InputStream inStream;
12 | private File file;
13 | /* 文件名称 */
14 | private String filname;
15 | /* 请求参数名称*/
16 | private String parameterName;
17 | /* 内容类型 */
18 | private String contentType = "application/octet-stream";
19 |
20 |
21 |
22 | public FormFile(String filname, File file, String parameterName, String contentType) {
23 | this.filname = filname;
24 | this.parameterName = parameterName;
25 | this.file = file;
26 | try {
27 | this.inStream = new FileInputStream(file);
28 | } catch (FileNotFoundException e) {
29 | e.printStackTrace();
30 | }
31 | if(contentType!=null) this.contentType = contentType;
32 | }
33 |
34 | public File getFile() {
35 | return file;
36 | }
37 |
38 | public InputStream getInStream() {
39 | return inStream;
40 | }
41 |
42 | public byte[] getData() {
43 | return data;
44 | }
45 |
46 | public String getFilname() {
47 | return filname;
48 | }
49 |
50 | public void setFilname(String filname) {
51 | this.filname = filname;
52 | }
53 |
54 | public String getParameterName() {
55 | return parameterName;
56 | }
57 |
58 | public void setParameterName(String parameterName) {
59 | this.parameterName = parameterName;
60 | }
61 |
62 | public String getContentType() {
63 | return contentType;
64 | }
65 |
66 | public void setContentType(String contentType) {
67 | this.contentType = contentType;
68 | }
69 |
70 | }
--------------------------------------------------------------------------------
/client/src/com/xiao/bean/SmsInfo.java:
--------------------------------------------------------------------------------
1 | package com.xiao.bean;
2 |
3 | public class SmsInfo {
4 | private String id;
5 | private String thread_id;
6 | private String address;
7 | private String body;
8 | private long date;
9 | private int type;
10 | private int protocol;
11 | private String read;
12 | private String status;
13 |
14 |
15 | public String getId() {
16 | return id;
17 | }
18 | public void setId(String id) {
19 | this.id = id;
20 | }
21 | public String getAddress() {
22 | return address;
23 | }
24 | public void setAddress(String address) {
25 | this.address = address;
26 | }
27 | public String getBody() {
28 | return body;
29 | }
30 | public void setBody(String body) {
31 | this.body = body;
32 | }
33 |
34 | public long getDate() {
35 | return date;
36 | }
37 | public void setDate(long date) {
38 | this.date = date;
39 | }
40 | public String getThread_id() {
41 | return thread_id;
42 | }
43 | public void setThread_id(String thread_id) {
44 | this.thread_id = thread_id;
45 | }
46 | public int getType() {
47 | return type;
48 | }
49 | public void setType(int type) {
50 | this.type = type;
51 | }
52 | public int getProtocol() {
53 | return protocol;
54 | }
55 | public void setProtocol(int protocol) {
56 | this.protocol = protocol;
57 | }
58 | public String getRead() {
59 | return read;
60 | }
61 | public void setRead(String read) {
62 | this.read = read;
63 | }
64 | public String getStatus() {
65 | return status;
66 | }
67 | public void setStatus(String status) {
68 | this.status = status;
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/client/src/com/xiao/myyun/Constants.java:
--------------------------------------------------------------------------------
1 | package com.xiao.myyun;
2 |
3 | public class Constants {
4 |
5 | public static String UserName="xiao";
6 |
7 | public static String BASEURL = "http://172.16.34.90:8080/"; //远程url
8 |
9 | //message
10 | public static String REMOTE_ADDINFO_URL = BASEURL + "Cloud/addInfo";// 备份短信
11 | public static String REMOTE_GETINFO_URL=BASEURL+"Cloud/getInfo"; //还原短信
12 | //contact
13 | public static String REMOTE_ADDCONTACT_URL = BASEURL + "Cloud/addContact";//备份联系人
14 | public static String REMOTE_GETCONTACT_URL=BASEURL+"Cloud/getContact"; //还原联系人
15 | //file
16 | public static String REMOTE_GETFILEJSON_URL=BASEURL+"Cloud/getFileJson";
17 | public static String REMOTE_ADDFILE_URL=BASEURL+"Cloud/uploadFile";
18 | public static String REMOTE_Download_URL=BASEURL+"Cloud/downloadFile";
19 | public static String SavePath="/MyDownload/";
20 | public static String REMOTE_DownloadPath=BASEURL+"Cloud/downloadfile/";
21 | //type
22 | public static String Type1="message";
23 | public static String Type2="contact";
24 | public static String Type3="file";
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/client/src/com/xiao/myyun/Contact.java:
--------------------------------------------------------------------------------
1 | package com.xiao.myyun;
2 | import java.util.List;
3 | import android.content.Context;
4 | import com.xiao.bean.ContactInfo;
5 |
6 | public class Contact {
7 | private Context ct;
8 |
9 | public Contact(Context ct) {
10 | this.ct = ct;
11 | }
12 |
13 | public void tongbu(){
14 | Thread th=new Thread(){
15 | public void run(){
16 | try {
17 | String contactJsonData=ContactUtil.getContactJsonData(ct);
18 |
19 | Remote remote=new Remote();
20 | if(remote.connect()){
21 | String result=remote.sendJsonData(Constants.Type2, Constants.UserName, contactJsonData);
22 | System.out.println(result);
23 | List data=ContactUtil.getContactListFromJsonData(result);
24 | ContactUtil.insertContact(ct, data);
25 |
26 | }
27 | } catch (Exception e) {
28 | e.printStackTrace();
29 | }
30 | }
31 | };
32 | th.start();
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/client/src/com/xiao/myyun/ContactUtil.java:
--------------------------------------------------------------------------------
1 | package com.xiao.myyun;
2 |
3 | import java.util.ArrayList;
4 | import java.util.List;
5 |
6 | import org.json.JSONArray;
7 | import org.json.JSONObject;
8 | import com.xiao.bean.ContactInfo;
9 | import android.content.ContentResolver;
10 | import android.content.ContentUris;
11 | import android.content.ContentValues;
12 | import android.content.Context;
13 | import android.database.Cursor;
14 | import android.net.Uri;
15 | import android.provider.ContactsContract;
16 | import android.provider.ContactsContract.CommonDataKinds.Phone;
17 | import android.provider.ContactsContract.CommonDataKinds.StructuredName;
18 | import android.provider.ContactsContract.Data;
19 | import android.provider.ContactsContract.RawContacts;
20 |
21 | public class ContactUtil {
22 | /**
23 | * 获取联系人的json
24 | * @param ct
25 | * @return
26 | */
27 | public static String getContactJsonData(Context ct) {
28 | int contactid;
29 | String name;
30 | String phone = "";
31 | String number;
32 | JSONArray jsonArray = new JSONArray();
33 | JSONObject jsonObject;
34 | Uri uri = Uri.parse("content://com.android.contacts/contacts");
35 | ContentResolver resolver = ct.getContentResolver();
36 | Cursor cursor = resolver.query(uri, null, null, null, null);
37 | Cursor phoneCursor;
38 | try{
39 | while (cursor.moveToNext()) {
40 | jsonObject = new JSONObject();
41 | contactid = cursor.getInt(cursor
42 | .getColumnIndex(ContactsContract.Contacts._ID));
43 | name = cursor.getString(cursor
44 | .getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
45 | jsonObject.put("name", name);
46 | phoneCursor = resolver.query(
47 | ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,
48 | ContactsContract.CommonDataKinds.Phone.CONTACT_ID + "=?",
49 | new String[] { String.valueOf(contactid) }, null);
50 | while (phoneCursor.moveToNext()) {
51 | number = phoneCursor
52 | .getString(phoneCursor
53 | .getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
54 | phone = phone + "#" + number;
55 | }
56 | if (phone.equals("")) {
57 | jsonObject.put("phone", phone);
58 | } else {
59 | jsonObject.put("phone", phone.substring(1));
60 | }
61 | phone = "";
62 | jsonArray.put(jsonObject);
63 | }
64 | }catch(Exception e){
65 | e.printStackTrace();
66 | }
67 |
68 | return jsonArray.toString();
69 | }
70 |
71 | /**
72 | * 解析json数据,获取所有的联系人
73 | * @param jsonData
74 | * @return
75 | */
76 | public static List getContactListFromJsonData(String jsonData) {
77 | try {
78 | JSONArray arr = new JSONArray(jsonData);
79 | List list = new ArrayList();
80 | ContactInfo contactInfo;
81 | for (int i = 0; i < arr.length(); i++) {
82 | JSONObject temp = (JSONObject) arr.get(i);
83 | contactInfo = new ContactInfo();
84 | contactInfo.setName(temp.getString("name"));
85 | contactInfo.setPhone(temp.getString("phone"));
86 | list.add(contactInfo);
87 | }
88 | return list;
89 | } catch (Exception e) {
90 | e.printStackTrace();
91 | return null;
92 | }
93 | }
94 |
95 | /**
96 | * 将联系人插入手机通讯录
97 | * @param ct
98 | * @param contactList
99 | */
100 | public static void insertContact(Context ct, List contactList) {
101 | ContentValues values;
102 | Uri rawContactUri;
103 | long rawContactId ;
104 | boolean have=false;
105 | ContentResolver resolver=ct.getContentResolver();
106 | List contactList2=getContactListFromJsonData(getContactJsonData(ct));
107 | for (ContactInfo contactInfo : contactList) {
108 | have=false;
109 | for(ContactInfo contactInfo2:contactList2){
110 | if(contactInfo.getName().equals(contactInfo2.getName())&&contactInfo.getPhone().equals(contactInfo2.getPhone())){
111 | {
112 | have=true;
113 | break;
114 | }
115 | }
116 | }
117 | if(!have){
118 | values = new ContentValues();
119 | //插入空值,获取rawContactId
120 | rawContactUri =resolver.insert(RawContacts.CONTENT_URI, values);
121 | rawContactId = ContentUris.parseId(rawContactUri);
122 |
123 | values.clear();
124 | values.put(Data.RAW_CONTACT_ID, rawContactId);
125 | values.put(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
126 | values.put(StructuredName.GIVEN_NAME, contactInfo.getName());
127 | resolver.insert(android.provider.ContactsContract.Data.CONTENT_URI, values);
128 |
129 | values.clear();
130 | values.put(Data.RAW_CONTACT_ID, rawContactId);
131 | values.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
132 | values.put(Phone.TYPE, Phone.TYPE_MOBILE);
133 | if(contactInfo.getPhone().contains("#")){
134 | String phones[]=contactInfo.getPhone().split("#");
135 | for(int i=0;i data,final Handler myHandler){
20 | th=new Thread(){
21 | public void run(){
22 | LocalUtils lu=new LocalUtils(ct);
23 | for(FileInfo fi:data){
24 | if(lu.checkDownloadedTable(fi.getFileName(),fi.getFileId()))
25 | continue;
26 |
27 | if(Utils.downloadFile(fi.getFileName(),fi.getFileId())){
28 | lu.updateDownloadTable(fi.getFileName(),fi.getFileId(),"yes");
29 | Message msg=new Message();
30 | msg.what=1;
31 | myHandler.sendMessage(msg);
32 | }
33 | }
34 | }
35 | };
36 | th.start();
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/client/src/com/xiao/myyun/DownloadAdapter.java:
--------------------------------------------------------------------------------
1 | package com.xiao.myyun;
2 |
3 | import java.util.ArrayList;
4 | import com.xiao.bean.FileInfo;
5 | import android.content.Context;
6 | import android.view.LayoutInflater;
7 | import android.view.View;
8 | import android.view.ViewGroup;
9 | import android.widget.BaseAdapter;
10 | import android.widget.ListView;
11 | import android.widget.TextView;
12 |
13 | public class DownloadAdapter extends BaseAdapter{
14 | private LayoutInflater mInflater;
15 | private ArrayList data;
16 | public DownloadAdapter(Context context, final ArrayList data,ListView listView ) {
17 | this.mInflater = LayoutInflater.from(context);
18 | this.data = data;
19 | }
20 |
21 |
22 | public int getCount() {
23 | // TODO Auto-generated method stub
24 | return data.size();
25 | }
26 |
27 | public Object getItem(int arg0) {
28 | // TODO Auto-generated method stub
29 | return data.get(arg0);
30 | }
31 |
32 | public long getItemId(int arg0) {
33 | // TODO Auto-generated method stub
34 | return arg0;
35 | }
36 |
37 | public View getView( final int position, View convertView, ViewGroup parent) {
38 | if (convertView == null) {
39 | holder = new ViewHolder();
40 | convertView = mInflater.inflate(R.layout.download_row, null);
41 | holder.filename = (TextView) convertView.findViewById(R.id.filename);
42 | holder.status=(TextView)convertView.findViewById(R.id.status);
43 | convertView.setTag(holder);
44 | } else {
45 | holder = (ViewHolder) convertView.getTag();
46 | }
47 | holder.filename.setText(data.get(position).getFileName());
48 | if(data.get(position).getFlag().equals("yes")){
49 | holder.status.setText("下载完成");
50 | }else{
51 | holder.status.setText("正在下载...");
52 | }
53 |
54 | return convertView;
55 | }
56 |
57 | public final class ViewHolder {
58 | public TextView filename;
59 | public TextView status;
60 | }
61 | ViewHolder holder = null;
62 |
63 |
64 | }
65 |
--------------------------------------------------------------------------------
/client/src/com/xiao/myyun/DownloadList.java:
--------------------------------------------------------------------------------
1 | package com.xiao.myyun;
2 |
3 | import java.util.ArrayList;
4 |
5 | import com.xiao.bean.FileInfo;
6 |
7 | import android.app.Activity;
8 | import android.app.AlertDialog;
9 | import android.content.DialogInterface;
10 | import android.os.Bundle;
11 | import android.os.Handler;
12 | import android.os.Message;
13 | import android.view.View;
14 | import android.widget.AdapterView;
15 | import android.widget.ListView;
16 | import android.widget.Toast;
17 | import android.widget.AdapterView.OnItemLongClickListener;
18 |
19 | public class DownloadList extends Activity{
20 | private ListView listView;
21 | private DownloadAdapter downloadAdapter;
22 | private ArrayList data=null;
23 | private LocalUtils lu;
24 | @Override
25 | protected void onCreate(Bundle savedInstanceState) {
26 | // TODO Auto-generated method stub
27 | super.onCreate(savedInstanceState);
28 | setContentView(R.layout.downloads);
29 | lu=new LocalUtils(this);
30 | listView=(ListView)findViewById(R.id.downloadlist);
31 | setListView();
32 | listView.setOnItemLongClickListener(new OnItemLongClickListener(){
33 |
34 | @Override
35 | public boolean onItemLongClick(AdapterView> parent, View view,
36 | int position, long id) {
37 | showDeleteDialog(position,data);
38 | return false;
39 | }
40 |
41 | });
42 |
43 | DownLoadThread dt=new DownLoadThread(this);
44 | dt.download(data, myHandler);
45 | }
46 |
47 | public Handler myHandler=new Handler(){
48 |
49 | @Override
50 | public void handleMessage(Message msg) {
51 | super.handleMessage(msg);
52 | switch(msg.what){
53 | case 1:
54 | setListView();
55 | }
56 | }
57 |
58 | };
59 |
60 | private void setListView() {
61 | data=lu.getDownloadList();
62 | downloadAdapter=new DownloadAdapter(this,data,listView);
63 | listView.setAdapter(downloadAdapter);
64 | }
65 |
66 | protected void showDeleteDialog(final int position,final ArrayList data) {
67 | new AlertDialog.Builder(this).setTitle("提示")
68 | .setMessage("是否删除?")
69 | .setPositiveButton("删除", new DialogInterface.OnClickListener() {
70 | @Override
71 | public void onClick(DialogInterface dialog, int which) {
72 | if(lu.deleteDownloadTable(data.get(position).getFileName(),data.get(position).getFileId())){
73 | Toast.makeText(DownloadList.this,"删除成功",Toast.LENGTH_LONG).show();
74 | setListView();//refresh
75 | }
76 | }
77 | }).setNegativeButton("取消", null).show();
78 |
79 | }
80 | }
81 |
--------------------------------------------------------------------------------
/client/src/com/xiao/myyun/FSExplorer.java:
--------------------------------------------------------------------------------
1 | package com.xiao.myyun;
2 |
3 | import java.io.File;
4 | import java.util.ArrayList;
5 | import java.util.HashMap;
6 | import java.util.List;
7 | import java.util.Map;
8 | import android.app.Activity;
9 | import android.content.Intent;
10 | import android.os.Bundle;
11 | import android.util.Log;
12 | import android.view.View;
13 | import android.view.View.OnClickListener;
14 | import android.widget.AdapterView;
15 | import android.widget.Button;
16 | import android.widget.ListView;
17 | import android.widget.Toast;
18 | import android.widget.AdapterView.OnItemClickListener;
19 |
20 | public class FSExplorer extends Activity implements OnItemClickListener, OnClickListener {
21 | private static final String TAG = "FSExplorer";
22 | private Button backfse;
23 | private Button uploadButton;
24 | private MyAdapter myAdapter;
25 | private ArrayList uploadList;
26 |
27 | ListView itemlist = null;
28 | String path = "/sdcard";
29 | String nowPath="";
30 | List