Android Question phone sensor failing

Discussion in 'Android Questions' started by drgottjr, Mar 24, 2015.

  1. drgottjr

    drgottjr Active Member Licensed User

    phone sensor with nexus 4 running 5.0.1 works fine. same app on moto e (2nd gen) running 5.0.2 fails.
    is this likely to be a device/manufacturer issue? 5.0.1 versus 5.0.2 issue? any thoughts, please?

    Dim ps As PhoneSensors
    ps.Initialize2(ps.TYPE_ORIENTATION, 5)
    listening = False

    later, user taps button to start listening:
    if ps.StartListening( "Sensor" ) = False Then
    toastmessageshow("no listening...",false)
    ' do listening stuff
    end if

    when i tap the button, nexus shows me which way i'm pointing, as expected. with moto e, i see "no listening" message.
  2. drgottjr

    drgottjr Active Member Licensed User

    forget it; moto e doesn't support a number of sensors, among which orientation.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice