Hi, There is no way of getting the camera preview in portrait mode ( as you probably already know) and its very ( very) slow to rotate the preview image. The only option is to run the app in landscape mode and rotate the view that you want to overlay onto the preview by 90 degrees. To do this override the onDraw() method of the parent view (preferably a linearlayout) and rotate the canvas before calling super.onDraw(). Its going to take a bit of hacking.. Good luck!
On Jul 2, 7:35 pm, lufo <[email protected]> wrote: > Hi guys, I'm facing the same problem like indra. > > I need to overlay some text on the camera and I tried to rotate the > canvas on which the text is drawn but no result. > > Can someone (indra?) tell me how/what to rotate to bypass the > Cameraportraitbug ? > > Thanx a lot! > > On Jun 30, 7:22 pm, SebX <[email protected]> wrote: > > > > > It works only if I put this: > > this.setRequestedOrientation > > (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); > > It's a compromise even if locking the view in landscape mode is not > > the first choice... > > > On 29 juin, 01:34, SebX <[email protected]> wrote: > > > > Hi, > > > > First at all congratulation for Layar, it seems very impressive and I > > > look forward to test the application (I did not see it on the > > > appstore) > > > > I have the same problem with my application when I'm inportraitmode > > > and that's very frustrating. I think we have to use the landscape mode > > > only because even if the bug is fixed, there will always be a problem > > > with the old SDK.... > > > > Could someone post here if he find the solution, please... > > > > Thanks > > > > On 28 juin, 00:02, indra <[email protected]> wrote: > > > > > Hi guys at android, > > > > > Can you pleeeease > > > > fixhttp://code.google.com/p/android/issues/detail?id=1193 > > > > When do you expect it to get fixed? I am a developer working > > > > onhttp://layar.euandIhadto go through lot of trouble to get the app > > > > working inportraitmode with camera preview, using a LOT of > > > > rotations. I have managed to get everything rotated toportraitexcept > > > > for the on screen inputmethod which still shows up in landscape. Do > > > > you have any suggestions for rotating that? > > > > > Thanks, > > > > Indraneel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

