Giter Site home page Giter Site logo

Comments (18)

zakir-hossain avatar zakir-hossain commented on May 22, 2024

It seems I am having similar problems with HTC Wildfire S, Nexus 4, Samsung 10" tabs. Waiting for a solution on this. Thanks

from zxing.

srowen avatar srowen commented on May 22, 2024

I'm waiting for more info from someone with this device. https://code.google.com/p/zxing/issues/detail?id=1833

from zxing.

ArloL avatar ArloL commented on May 22, 2024

I can reproduce this with the Samsung Galaxy Tab 2 7.0.

Steps to reproduce:

  1. Enable screen rotation
  2. Flip to the right
  3. Disable screen rotation
  4. Open Barcode Scanner
  5. See screenshot

If bryancal is not reachable anymore I can test with BS+ if you want.

Another interesting behavior is that when you do not disable the screen rotation (step 3) the screen is flipped by 180 degrees:
device-2014-02-26-093908

from zxing.

srowen avatar srowen commented on May 22, 2024

That just looks like a device or sensor problem, right? Android thinks it is in the opposite orientation. Does anyone have a patch to suggest? AFAICT this is specific to the Kindle Fire.

from zxing.

ArloL avatar ArloL commented on May 22, 2024

I just tested with my app. The problem is that screen orientation is set to landscape. It should be sensorLandscape.

from zxing.

srowen avatar srowen commented on May 22, 2024

Ah I think you have it. So if you change this value, it works as expected? Yes, there should be no reason to not let it use either landscape or reverse landscape. I'll try it on my own device (not a tablet or Kindle) to make sure it behaves as expected for me too.

from zxing.

ArloL avatar ArloL commented on May 22, 2024

What android versions do you support? sensorLandscape was added in API level 9. There is also a userLandscape but a quick search did not reveal what exactly it does.

from zxing.

srowen avatar srowen commented on May 22, 2024

API 15+ so that is fine. It works OK on my phone and I see why it would
help the tablet situation where the natural landscape is not obvious. If it
works for the Fire I will commit it.
On Feb 26, 2014 12:44 PM, "ArloL" [email protected] wrote:

What android versions do you support? sensorLandscapehttps://developer.android.com/guide/topics/manifest/activity-element.html#screenwas added in API level 9. There is also a userLandscape but a quick search
did not reveal what exactly it does.


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-36121002
.

from zxing.

delta62 avatar delta62 commented on May 22, 2024

It appears that this functionality is glitchy on Galaxy Nexus running API level 17. Since the latest update, my handset does this when the device is "upside down":

zxing-upside-down

from zxing.

srowen avatar srowen commented on May 22, 2024

Not sure what to make of that. The app does not set any camera rotation
params and never has:

https://github.com/zxing/zxing/blob/master/android/src/com/google/zxing/client/android/camera/CameraConfigurationManager.java

The only way a working device would do this is if the wrong rotation params
were set, so this looks like a device problem.

Weirdly it may be caused by a different problem with a different camera
param. Try all the workarounds in settings.

On Mon, Mar 3, 2014 at 7:40 PM, Sam [email protected] wrote:

It appears that this functionality is glitchy on Galaxy Nexus running API
level 17. Since the latest update, my handset does this when the device is
"upside down":

[image: zxing-upside-down]https://f.cloud.github.com/assets/1361519/2313523/c6fa95e8-a30a-11e3-808b-3709d04aa4e0.png


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-36550099
.

from zxing.

ArloL avatar ArloL commented on May 22, 2024

Could it be solved using Camera.setDisplayOrientation?

from zxing.

srowen avatar srowen commented on May 22, 2024

I guess the point is, without calling that, it should never be in anything
but the natural orientation. That method is not called.

As a workaround, maybe that overrides it. But I suspect there is a deeper
problem, that the driver is failing to accept configuration that it says it
accepts. So the init is messed up.

This is not an app issue. To continue this, I'd have to see a proposed
workaround that does not affect other devices. Anything that affects
correct functioning of other devices to work around this is a non starter.

On Tue, Mar 4, 2014 at 2:26 PM, ArloL [email protected] wrote:

Could it be solved using:
https://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)


Reply to this email directly or view it on GitHubhttps://github.com//issues/36#issuecomment-36628390
.

from zxing.

delta62 avatar delta62 commented on May 22, 2024

You're right about this being a device issue.

I'm seeing the same problem with Galaxy S3 and Galaxy S4 handsets. Both phones are running API level 18.

from zxing.

veenakatdare avatar veenakatdare commented on May 22, 2024

has anyone resolved this?

from zxing.

delta62 avatar delta62 commented on May 22, 2024

Yes, this was patched and updated on the Play Store sometime around the 19th of March.

from zxing.

SyedWasiHaider avatar SyedWasiHaider commented on May 22, 2024

This is still an issue.

from zxing.

judax avatar judax commented on May 22, 2024

I am developing a camera handling library myself and I can confirm this is an issue on the Kindle Fire HDX 10. I also have the BarCodeScanner installed and the image is upside down. My library also has this problem. Not sure how can be resolved though. Very much appreciated if someone could provide some feedback on the issue. Tested on many other devices: Kindle Fire HD, Samsung Galaxy S3, Nexus 7, ... and none of these devices show this behaviour.

from zxing.

arnauorriols avatar arnauorriols commented on May 22, 2024

This is indeed still happening, on every device I can try.

from zxing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.