luke2012 Well-Known Member Licensed User Longtime User Oct 23, 2012 #1 Hi to all, I'm following the Erel tutorial in order to take a pictures with internal camera. The code work fine but when I display it in an imageview object the picture is in portrait mode. The problem is that I take the picture in landscape mode. Someone have any ideas about it?
Hi to all, I'm following the Erel tutorial in order to take a pictures with internal camera. The code work fine but when I display it in an imageview object the picture is in portrait mode. The problem is that I take the picture in landscape mode. Someone have any ideas about it?
NJDude Expert Licensed User Longtime User Oct 23, 2012 #2 The internal camera only supports landscape mode. Upvote 0
luke2012 Well-Known Member Licensed User Longtime User Oct 23, 2012 #3 Before of all, thanks for your reply! But my problem is that the picture is displayed in portrait mode and not in landscape mode. I did that : 1) Thake picture with the internal camera 2) save the picture in a SQLite DB 3) Display it within an ImageView object (it show in portrait mode) My problem is at point 3. Why the picture is show in portrait mode and not in landscape mode? Any Idea? Upvote 0
Before of all, thanks for your reply! But my problem is that the picture is displayed in portrait mode and not in landscape mode. I did that : 1) Thake picture with the internal camera 2) save the picture in a SQLite DB 3) Display it within an ImageView object (it show in portrait mode) My problem is at point 3. Why the picture is show in portrait mode and not in landscape mode? Any Idea?
NJDude Expert Licensed User Longtime User Oct 23, 2012 #4 luke2012 said: Before of all, thanks for your reply! But my problem is that the picture is displayed in portrait mode and not in landscape mode. I did that : 1) Thake picture with the internal camera 2) save the picture in a SQLite DB 3) Display it within an ImageView object (it show in portrait mode) My problem is at point 3. Why the picture is show in portrait mode and not in landscape mode? Any Idea? Click to expand... If I understood you correctly, what you should do is to put the ImageView on an activity in landscape mode, you will have to modify your Manifest to do that. Upvote 0
luke2012 said: Before of all, thanks for your reply! But my problem is that the picture is displayed in portrait mode and not in landscape mode. I did that : 1) Thake picture with the internal camera 2) save the picture in a SQLite DB 3) Display it within an ImageView object (it show in portrait mode) My problem is at point 3. Why the picture is show in portrait mode and not in landscape mode? Any Idea? Click to expand... If I understood you correctly, what you should do is to put the ImageView on an activity in landscape mode, you will have to modify your Manifest to do that.
luke2012 Well-Known Member Licensed User Longtime User Oct 23, 2012 #5 Right. So you mean that the ImageView support only the portrait mode ? The only way to do this is to modify the manifest ? And if the answer is yes, do you known how? Upvote 0
Right. So you mean that the ImageView support only the portrait mode ? The only way to do this is to modify the manifest ? And if the answer is yes, do you known how?
NJDude Expert Licensed User Longtime User Oct 23, 2012 #6 To change the orientation you have to open the Manifest Editor and add this line (assuming the activity where you have that ImageView is called Camera) Code: Copy SetActivityAttribute(Camera, android:screenOrientation, "landscape") Upvote 0
To change the orientation you have to open the Manifest Editor and add this line (assuming the activity where you have that ImageView is called Camera) Code: Copy SetActivityAttribute(Camera, android:screenOrientation, "landscape")
F Fred Borges New Member Licensed User Longtime User Sep 12, 2014 #7 Please, post source code above 1) Thake picture with the internal camera 2) save the picture in a SQLite DB 3) Display it within an ImageView object (it show in portrait mode) Thanks, Upvote 0
Please, post source code above 1) Thake picture with the internal camera 2) save the picture in a SQLite DB 3) Display it within an ImageView object (it show in portrait mode) Thanks,
Erel B4X founder Staff member Licensed User Longtime User Sep 12, 2014 #8 This is an old thread. See CameraEx: [Class] CameraEx - Extends the camera library functionality Upvote 0
F Fred Borges New Member Licensed User Longtime User Sep 12, 2014 #9 Thanks Erel. but I keep the photo in a imageview on my form. How I saved this photo as a field of record in sqlite? (i have a class that has a photo field as bitmapdrawable) Last edited: Sep 13, 2014 Upvote 0
Thanks Erel. but I keep the photo in a imageview on my form. How I saved this photo as a field of record in sqlite? (i have a class that has a photo field as bitmapdrawable)
Erel B4X founder Staff member Licensed User Longtime User Sep 14, 2014 #10 Please start a new thread for this question. Upvote 0