Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9238523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:46:59+00:00 2026-06-18T07:46:59+00:00

I have problem with my app and i have no idea where is the

  • 0

I have problem with my app and i have no idea where is the cause.
I am developing an application, which connect with PC by Wi-Fi, and shows on phone screen orientation. All about sending works perfectly, but part with orientation sensor not. The strange fact is when i do app only with sensor part it works. Maybe threads something changes.

in on create

        txtView = (TextView) findViewById(R.id.txtView);
        txtView2 = (TextView) findViewById(R.id.txtView2);
        txtView3 = (TextView) findViewById(R.id.txtView3);
        SensorManager mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
        Sensor mOrientation = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);

in on sensor change

  @Override
  public void onSensorChanged(SensorEvent event) {
      azimuth_angle = event.values[0];
      pitch_angle = event.values[1];
      roll_angle = event.values[2];
      txtView.setText(azimuth_angle+"  ");
      txtView2.setText(pitch_angle+"  ");
      txtView3.setText(roll_angle+"  ");
      Log.e("kacper", azimuth_angle+"  "+pitch_angle+"  "+roll_angle); 

i checked that onSensorChanged is no called. why its not working when in new empty activity works good and refresh very often.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T07:47:01+00:00Added an answer on June 18, 2026 at 7:47 am

    have you register the listener?

        mSensormanager.registerListener(this, mOrientation ,
                SensorManager.SENSOR_DELAY_FASTEST);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem regarding Android App. I have created an application that download
I'm developing small FTP upload app. for mac (10.6 if it matters) Have problem
I have a little Problem with the app that I'm developing. In the App
I have a weird problem in the setup of my Android application which is
I have problem I cannot find the cause. I have menu and application crashes
I have a curious problem: My app is distributed through ClickOnce. I recently installed
I have problem in declaring the intents on my app. I have a form
I have a Problem in my App with the Dirty Memory Size and want
I have problem with Timeout, when I run a command through app, a timeout
I'm writing chat client/server app with c# and I have problem with threading. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.