Note that there are some explanatory texts on larger screens.

plurals
  1. POError switching activity
    text
    copied!<p>I am having an error when trying to switch from one activity(<code>com.intelligent.stocktrader.MyAccount</code>) to another(<code>com.intelligent.stocktrader.SharePerformanceDetails</code>).What am I doing wrong? My code has no error. <br>Below is the log cat content:</p> <blockquote> <p>E/AndroidRuntime(787): FATAL EXCEPTION: main E/AndroidRuntime(787): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.intelligent.stocktrader/com.intelligent.stocktrader.SharePerformanceDetails}: java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = org.achartengine.chart.LineChart) E/AndroidRuntime(787): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955) E/AndroidRuntime(787): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)</p> </blockquote> <p>The MyAccount activity onCreate where am switching activities</p> <pre><code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_performance); //Bundle extras = getIntent().getExtras(); //stock_name = extras.getString("stock"); //new PerformanceDetails().execute(); LineGraph line=new LineGraph(); Intent intent=line.getIntent(getApplicationContext()); startActivity(intent); } </code></pre> <p>The LineGraph class</p> <pre><code>public Intent getIntent(Context context){ ----------- ----------- return intent; } </code></pre> <p>The LineGraph class has a method that will return an intent.Tha is where the error is propagating from</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload