-1

I know this might seem quite trivial, however, I've been tackling with it for quite some time.

I'm trying to simply display an error message through a TOAST in honeycomb. However, if I use the traditional Toast method, the app crashes.

From what I found (not very clear) the TOAST method must be in its own thread (?)?

Any help would be greatly appreciated and sorry if this is a really noob question...

        public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.hseactivity);

    Toast.makeText(getApplicationContext(), "Sorry, an error occurred...", Toast.LENGTH_LONG).show();
Eugen
  • 1,537
  • 7
  • 29
  • 57

1 Answers1

0

I would try cleaning the project and then rebuild it. It happens quite often that android breaks the code and you end up with this kind of odd errors.

andreapier
  • 2,958
  • 2
  • 38
  • 50