This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void turnOFF() | |
{ | |
param = cam.getParameters(); | |
param.setFlashMode(Camera.Parameters.FLASH_MODE_OFF); | |
cam.setParameters(param); | |
cam.stopPreview(); | |
cam.release(); | |
cam=null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
urlConnection = (HttpURLConnection) imageURL.openConnection(); | |
String location = urlConnection.getHeaderField("Location"); | |
if (location != null ) | |
{ | |
URL newURL = new URL(location); | |
urlConnection = (HttpURLConnection) newURL.openConnection(); | |
} | |
//use the urlConnection now |
NewerOlder