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 8872717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:17:19+00:00 2026-06-14T18:17:19+00:00

portText to CONTEXT(this) contains some error. So if I comment it and app run

  • 0

portText to CONTEXT(this) contains some error. So if I comment it and app run correctly but no button shown in interface. What’s wrong?

    private static Context CONTEXT;
    @Override
    public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);
      /*portText = (TextView)this.findViewById(R.id.portText);
       ipText=(TextView)this.findViewById(R.id.ipText);
       goBut=(ImageButton)this.findViewById(R.id.goBut);
       forBut=(ImageButton)this.findViewById(R.id.forBut);
       backBut=(ImageButton)this.findViewById(R.id.backBut);
       leftBut=(ImageButton)this.findViewById(R.id.leftBut);
       rightBut=(ImageButton)this.findViewById(R.id.rightBut);
       kickBut=(ImageButton)this.findViewById(R.id.kickBut);
       goBut.setOnClickListener(this);
       forBut.setOnClickListener(this);
       backBut.setOnClickListener(this);
       leftBut.setOnClickListener(this);
       rightBut.setOnClickListener(this);
       accText.setText("AccelerometerStatus ");
       CONTEXT(this); */

   }
  • 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-14T18:17:21+00:00Added an answer on June 14, 2026 at 6:17 pm

    in the code

    accText.setText("AccelerometerStatus ");
    

    Where is accText initialized? If not then it is null

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In title i used Objective C but this question is viable for other OOP
I have seen several posts on this here at SO but those solutions don't
I want my AbstracttableModel subclass data() method to return html i.e. PreText<b>Text</b>PostText And this
I have this data structure: Post { attachments { }, postText } To display
I'm trying to make a quick sample Backbone.js app that has a Post model,
I am working on an android application and I want to show a button
App Engine Datastore cannot be queried for an aggregate result. Example: I have an
I am trying to post a message (contains both English and Chinese) to a
I'm setting up twitter on iOS6 in an app. The problem I've stumbled upon
As kind of a followup to this question I've gotten a solution working on

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.