title: calling acharengine inside fragment
body: <p>I'm very new to the android world, coming from a background of lots of server-side programming . Very Little Java.</p>
  
  <p>I am developing an application in which I need to have two fragments, one on the left which displays the navigation, and one on the right, that displays the content. 
  My first major challange is to make one of the navigation links open up a chart using acharengine. </p>
  
  <p>I have an example from achartengine that I have been following here: <a href="http://coffeedrivendevelopment.wordpress.com/2012/01/17/achartengine-xy-date-plot-example/" rel="nofollow">achartengine example</a> </p>
  
  <p>I have been following the Android Developer application demo provided by google here: <a href="http://developer.android.com/shareables/training/FragmentBasics.zip" rel="nofollow">Fragment Basics</a></p>
  
  <p>I am using that example and simply building everything using that existing code. So far, I have narrowed down the actual content display to this code inside ArticleFragment.java:</p>
  
  <p>This is what happens onStart:</p>
  
  <pre><code>public void onStart() {
      super.onStart();
  
      // During startup, check if there are arguments passed to the fragment.
      // onStart is a good place to do this because the layout has already been
      // applied to the fragment at this point so we can safely call the method
      // below that sets the article text.
      Bundle args = getArguments();
      if (args != null) {
          // Set article based on argument passed in
          updateArticleView(args.getInt(ARG_POSITION));
      } else if (mCurrentPosition != -1) {
          // Set article based on saved instance state defined during onCreateView
          updateArticleView(mCurrentPosition);
      }
  }
  
  public void updateArticleView(int position) {
  
      TextView article = (TextView) getActivity().findViewById(R.id.article);
      article.setText(Ipsum.Articles[position]);
      System.out.println("Position: " + position);
      mCurrentPosition = position;
  }
  </code></pre>
  
  <p>This is what is inside Ipsum.java:</p>
  
  <pre><code>package com.example.android.fragments;
  </code></pre>
  
  <p>public class Ipsum {</p>
  
  <pre><code>static String[] Headlines = {
      "Link One",
      "Link Two",
      "Link Three"
  };
  
  
  static String[] Articles = {
      "Link One\n\n Some Text...",
      "Link Two\n\n Some Text...",
      "Link Three\n\n Some Text..."
  };
  </code></pre>
  
  <p>}</p>
  
  <p>When you click one of the "Links" I want the chart to show up inside the other fragment.
  I'm sure this is simple, and I have tried modifying the code inside updateArticleView to textViews with limited success due to my lack of syntactical knowledge. </p>
  
  <p>I have tried searching, and there have been some helpful examples, but they all have been from the perspective of someone who knows exactly what he/she is doing. I am brand new to this(3 or so weeks) so please dumb it down for me. Thank you.</p>