Skip to content

Commit

Permalink
- change connection IP(Server)
Browse files Browse the repository at this point in the history
- modify if compressed image resources, then delete temp-resource folder recursively

Signed-off-by: yoonsubKim <camera702@naver.com>
  • Loading branch information
rupert-kim committed Sep 22, 2015
1 parent 1927b16 commit fcc0543
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/com/androidhuman/example/CameraPreview2/CameraPreview.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.androidhuman.example.blutooth.DeviceListActivity;
import com.androidhuman.example.gallery.GalleryActivity;
import com.androidhuman.example.socket.Socket_command;
import com.androidhuman.example.utils.CustomIO;
import com.androidhuman.example.utils.SocketUtils;
import com.androidhuman.example.utils.ZipUtils;

Expand Down Expand Up @@ -141,11 +142,12 @@ public void onReceive(Context context, Intent intent) {
* 사진촬영을 끝으로 파일경로에 있는 사진을 압축하려 소켓객체 쓰레드를 생성 및 실행.
*/
public static void doZipAndSocket(){
String filePath = SocketUtils.FOLDER_PATH;
String filePath = SocketUtils.TEMP_FOLDER_PATH;

try {
ZipUtils.zip(filePath, filePath+"test.zip");
File file = new File(filePath);
file.delete();
CustomIO.deleteDirectory(file); // 임시 파일 저장 경로 삭제
} catch (Exception e) {
e.printStackTrace();
}
Expand Down Expand Up @@ -233,7 +235,7 @@ public void onClick(View v) {
Toast.makeText(getApplicationContext(), "블루투스 연결해 새꺄", 0).show();
}

//mPreview.takePicture("My Photo","Photo taken by sample application");
mPreview.takePicture("My Photo","Photo taken by sample application");
}
});

Expand All @@ -247,7 +249,7 @@ public void OnTestevnet(String test) {
e.printStackTrace();
}
Log.i("test","F보낸다");
// btclientThread.write("Frn");
btclientThread.write("Frn");
}
});

Expand Down

0 comments on commit fcc0543

Please sign in to comment.