Hi new to android, In the link below is a application that take a photo and upload it to a server.
But there are some bugs that I couldn't seems to solve:
1. There are always "empty images" being generated and stored in the gallery, even though I decided not to take an image and exit the camera screen by pressing on back? Is there a way to eliminate this continuous "blank image" problem?
2. Sometime a taken image will be too big that awkwardly cover the entire preview screen on the main page after taking a image? It may be due to wrap_content, tried changing to fill_parent and etc in manifest file but to no avail.
3. At landscape mode taking picture will cause the app to stop abruptly, tried searching for solution online to force camera to work in portrait mode but most post recommend not to do it!
Thanks for the help!
https://drive.google.com/file/d/0B2rvGRbu0A83LU1pQjRicnNFS0U/view
But there are some bugs that I couldn't seems to solve:
1. There are always "empty images" being generated and stored in the gallery, even though I decided not to take an image and exit the camera screen by pressing on back? Is there a way to eliminate this continuous "blank image" problem?
2. Sometime a taken image will be too big that awkwardly cover the entire preview screen on the main page after taking a image? It may be due to wrap_content, tried changing to fill_parent and etc in manifest file but to no avail.
3. At landscape mode taking picture will cause the app to stop abruptly, tried searching for solution online to force camera to work in portrait mode but most post recommend not to do it!
Thanks for the help!
https://drive.google.com/file/d/0B2rvGRbu0A83LU1pQjRicnNFS0U/view
Last edited: