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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:59:42+00:00 2026-05-28T01:59:42+00:00

I am new to android,to java and of course to achartengine. I have complete

  • 0

I am new to android,to java and of course to achartengine.
I have complete an application where the user enters some data and i
want with these data to make a line plot.
What are the steps i must follow?

  1. Import the achartengine jar file.
  2. Use the abstractdemochart.class file in my application.
  3. Use the trigonometricfunctionschart file in my application.
  4. Edit the trigonometricfunctionschart file in order to use my
    data.

I don’t know if the above are correct.Also,if i must edit
trigonometricfunctionschart file,how can i handle my variables (data)
that are in the number_cores.class?

Here is the number_cores.class which does the calculations.
User enters the num_cores,halftime and timecores (time).

I want to do a plot with time vs fcores( number of cores below from
the cores_func).

(And what if i want time to be from 0 to the time which the user enters.)

public class number_cores extends Activity implements OnClickListener 
 { 
         EditText num_cores; 
         EditText halftimecores; 
         EditText timecores; 
         View core_calcs; 

         /** Called when the activity is first created. */ 
     @Override 
     public void onCreate(Bundle savedInstanceState) { 

        super.onCreate(savedInstanceState); 
         setContentView(R.layout.numbercores); 

        num_cores=(EditText) findViewById(R.id.num_cores); 
         halftimecores=(EditText) findViewById(R.id.halftimecores); 
         timecores=(EditText) findViewById(R.id.timecores); 
         core_calcs=(View) findViewById(R.id.core_calcs); 
         core_calcs.setOnClickListener(this); 

    } 

        public void onClick(View v) { 
                 switch (v.getId()){ 
                 case R.id.core_calcs: 
                         if(isNumeric(num_cores.getText().toString()) && 
 isNumeric(halftimecores.getText().toString()) && 
 isNumeric(timecores.getText().toString())) 
                 { 
                                 cores_func(); 
                 } 
                 else 
                 { 
                     Toast.makeText(number_cores.this, "Please provide 
 a number", Toast.LENGTH_SHORT).show(); 
                 } 
                 break; 
     } 
         } 

        public static boolean isNumeric(String str) 
         { 
           try 
           { 
             double d = Double.parseDouble(str); 
           } 
           catch(NumberFormatException nfe) 
           { 
             return false; 
           } 
           return true; 
         } 
         public void cores_func(){ 
              double 
 initcores=Double.parseDouble(num_cores.getText().toString().trim()); 
              double 
 half_time=Double.parseDouble(halftimecores.getText().toString().trim()); 
              double 
 ttime=Double.parseDouble(timecores.getText().toString().trim()); 
                  double l=Math.log(2)/half_time; 
              double fcores=initcores*Math.exp(-l*ttime); 

             Intent i=new Intent(this,core_calcs.class); 
                  i.putExtra("value",fcores); 
              startActivity(i); 
          }

Thank you!

  • 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-28T01:59:42+00:00Added an answer on May 28, 2026 at 1:59 am

    You can follow the instructions here in order to get the ACE demo run in your IDE. Then, you can start building your application by copying stuff from there.

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

Sidebar

Related Questions

I am completely new to android, and pretty much a Java newb. I have
I have to admit that I'm new to Java and Android. db4o seems to
I have a android webservice client application. I am trying to use the java
I'm completely new to Java/Android and am stuck with listviews. What I want is
I'm fairly new in Android/Java programming, so some of the basic stuff is still
I'm fairly new to Android/Java and wanted to make an app that displays info
Firstly, I am new to both android and Java. I have two classes, my
I'm fairly new to Android programming and to Java in general, but I have
I am new to Android and Java Programming and I want to ask if
I am new to Android/java programming. I really have no clue what I am

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.