Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Unable to resume activity, fatal exception

Unable to resume activity, fatal exception

Put your problem here if it does not fit any of the other categories.

Unable to resume activity, fatal exception

Postby jrambharose » Fri Mar 04, 2011 4:52 pm

I'm trying to step through a project where I have a few SeekBars displayed with a text lable representing the current value. I check for input and update the text by overriding the onResume() but it crashes shortly after exiting this function.

LogCat displays this
03-04 10:43:12.065: ERROR/AndroidRuntime(549): FATAL EXCEPTION: main
03-04 10:43:12.065: ERROR/AndroidRuntime(549): java.lang.RuntimeException: Unable to resume activity {com.and.myequalizer/com.and.myequalizer.MyEqualizer}: android.app.SuperNotCalledException: Activity {com.and.myequalizer/com.and.myequalizer.MyEqualizer} did not call through to super.onResume()
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2120)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2135)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1668)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.os.Handler.dispatchMessage(Handler.java:99)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.os.Looper.loop(Looper.java:123)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.ActivityThread.main(ActivityThread.java:3683)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at java.lang.reflect.Method.invokeNative(Native Method)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at java.lang.reflect.Method.invoke(Method.java:507)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at dalvik.system.NativeStart.main(Native Method)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): Caused by: android.app.SuperNotCalledException: Activity {com.and.myequalizer/com.and.myequalizer.MyEqualizer} did not call through to super.onResume()
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.Activity.performResume(Activity.java:3834)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2110)
03-04 10:43:12.065: ERROR/AndroidRuntime(549): ... 12 more
03-04 10:43:12.135: WARN/ActivityManager(70): Force finishing activity com.and.myequalizer/.MyEqualizer

Code: Select all
package com.and.myequalizer;

import android.app.Activity;
import android.os.Bundle;
import android.widget.SeekBar;
import android.widget.TextView;

public class MyEqualizer extends Activity
{
   /*Will rep frequency changer*/
   SeekBar seekbar1;
   SeekBar seekbar2;
   SeekBar seekbar3;
   /*Will rep frequency being changed, show value of bar for now*/
   TextView seekbar1value;
   TextView seekbar2value;
   TextView seekbar3value;
   
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
       try
       {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.main);
          
           seekbar1 = (SeekBar)findViewById(R.id.seekbar1);
           seekbar1value = (TextView)findViewById(R.id.seekbar1value);   
          
           seekbar2 = (SeekBar)findViewById(R.id.seekbar2);
           seekbar2value = (TextView)findViewById(R.id.seekbar2value);
          
           seekbar3 = (SeekBar)findViewById(R.id.seekbar3);
           seekbar3value = (TextView)findViewById(R.id.seekbar3value);
       }
       catch(NumberFormatException e)
       {
          
       }
    }
   
    /**
    @Override
    public void onStart()
    {
       
    }
   
    @Override
    public void onRestart()
    {
       
    }
    */
    @Override
    public void onResume()
    {
       try
       {
          /* Frequency 1 */
          seekbar1.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener()
                {
                   @Override
                   public void onProgressChanged(SeekBar bar, int progress, boolean isUser)
                   {
                      seekbar1value.setText(String.valueOf(progress));
                   }
   
                  @Override
                  public void onStartTrackingTouch(SeekBar seekBar)
                  {
                     // TODO Auto-generated method stub
                  }
   
                  @Override
                  public void onStopTrackingTouch(SeekBar seekBar)
                  {
                     // TODO Auto-generated method stub
                  }
                });
          
          /* Frequency 2 */
          seekbar2.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener()
                {
                   @Override
                   public void onProgressChanged(SeekBar bar, int progress, boolean isUser)
                   {
                      seekbar2value.setText(String.valueOf(progress));
                   }
   
                  @Override
                  public void onStartTrackingTouch(SeekBar seekBar)
                  {
                     // TODO Auto-generated method stub
                  }
   
                  @Override
                  public void onStopTrackingTouch(SeekBar seekBar)
                  {
                     // TODO Auto-generated method stub
                  }
                });
          
          /* Frequency 3 */
          seekbar3.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener()
                {
                   @Override
                   public void onProgressChanged(SeekBar bar, int progress, boolean isUser)
                   {
                      seekbar3value.setText(String.valueOf(progress));
                   }
   
                  @Override
                  public void onStartTrackingTouch(SeekBar seekBar)
                  {
                     // TODO Auto-generated method stub
                  }
   
                  @Override
                  public void onStopTrackingTouch(SeekBar seekBar)
                  {
                     // TODO Auto-generated method stub
                  }
                });
       }
       catch(NumberFormatException e)
       {
          
       }
    }
   /**
    @Override
    public void onPause()
    {
       
    }
   
    @Override
    public void onStop()
    {
       
    }
   
    @Override
    public void onDestroy()
    {
       
    }
    */
}

I'm still new to Android dev so it's probably some simple mistake i'm not aware of.
jrambharose
Freshman
Freshman
 
Posts: 7
Joined: Wed Mar 02, 2011 6:57 pm

Top

Re: Unable to resume activity, fatal exception

Postby Boni2k » Sat Mar 05, 2011 2:22 pm

"Activity {com.and.myequalizer/com.and.myequalizer.MyEqualizer} did not call through to super.onResume()"
That clearly says that you have to add "super.onResume();" in you onResume method.
Boni2k
Experienced Developer
Experienced Developer
 
Posts: 88
Joined: Sun Dec 20, 2009 9:46 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 10 guests