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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:28:57+00:00 2026-05-27T20:28:57+00:00

Development Environment: Eclipse 3.7.0 Developing: Android 3.2 application for Market Place Using: aChartEngine 0.7.0

  • 0

Development Environment: Eclipse 3.7.0
Developing: Android 3.2 application for Market Place
Using: aChartEngine 0.7.0

I’m new to the development scene but have done a bit of coding in the past various languages, I’ve created the ZopaStats(on Marketplace) app, but I’m now trying to convert a text based stats page to be displayed in a bar graph using achartengine.
I can get the graph to display from an activity via another activity i.e.:

Intent achartIntent = new TemperatureChart().execute(this);
startActivity(achartIntent);

but this gives me an additional activity screen i.e.:

Main Screen -> 1st Activity (Original Text Stats View) -> 2nd Activity (Graph)

Therefore, with I hit back on the graph screen, I get the blank 1st activity screen.
I hope I’m making sense here.
So what I tried to do was launch the activity from the Main Screen (i.e. my Main class) e.g.

final Button button = (Button) findViewById(R.id.button);

button.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
  Intent achartIntent = new TemperatureChart().execute(this);
  startActivity(achartIntent);
  }
});

But eclipse gives me the following error in the code:

The method execute(Context) in the type TemperatureChart is not applicable for the arguments new (View.OnClickListener(){}}

I’ve tried letting Eclipse change the method but this then causes other problems, so I think what I’m really looking for (in a round about way) is to find out what the difference is when I can try to start the activity from another Activity class rather than starting it from the main class.

I apologise for the misuse of terms etc, as I say I’m new. I’ve been looking at this for a few days now but the Intent and Activity documentation doesn’t help me much so I just need a few pointers.

Thanks,

  • 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-05-27T20:28:58+00:00Added an answer on May 27, 2026 at 8:28 pm

    For completeness, the new code is this:
    N.B. My original class is called ZopaStats.class

    final Button button = (Button) findViewById(R.id.button);
    
    button.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
      Intent achartIntent = new MarketZopaGraph().execute(ZopaStats.this);
      startActivity(achartIntent);
      }
    });
    

    This works great, only a single Activity windows, once again many thanks for the quick response, in record time 😉

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

Sidebar

Related Questions

Today I have started with setting up of Android Development Environment using Eclipse for
I am new to Android and trying to setup Android Development Environment. I have
I have been using eclipse development environment for almost 3 years. Now I am
I wanna setup Android Development Environment in Linux. I have done it in Windows
I am new to Eclipse environment. I have Eclipse Indigo. Using I've downloaded the
We are using an Oracle 11 database and a java development environment (using Eclipse)
I am a newbie to Android and the Eclipse development environment and would like
I've just set up my first Android development environment consisting of Eclipse 3.5 Mac
I'm using Eclipse and Ant in my development environment. I've come across a problem
I'm developing an application using the Blackberry plugin for eclipse and I am getting

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.