Hello,

    Im not sure the cause of your VerifyError but in my case before I have 
tried this when Im subclassing the MapActivity...I got this VerifyError saying 
that the class that extends the MapActivity lets just say MyMapActivity.class 
is not found. During compilation no error but during runtime when my 
application calls the MyMapActivity it crashed and got the VerifyError. For the 
solution which most people adviced here is that I need to indicate in the 
Manifest file that the activity which will trigger to launch the MyMapActivity 
lets just call it MyActivity will run on a separate process...below is an 
example of that part declared in the manifest file.

        <activity android:name=".MyActivity"
                  android:label="@string/app_name"
                  android:process=":PVMyActivity"/>
        <activity android:name=".MyMapActivity"
                  android:label="@string/app_name"/>

After declaring that so far I didn't have the VerifyError issue already.

Hope it helps.

-Brian

--- On Sat, 1/30/10, Martin <[email protected]> wrote:

From: Martin <[email protected]>
Subject: [android-developers] VerifyError - how can I solve this error?
To: "Android Developers" <[email protected]>
Date: Saturday, January 30, 2010, 7:16 PM

Hi!

I am analyzing my game with flurry-analytics and some people, who play
my game, receive the Exception java.lang.VerifyError in my Highscore-
Activity.

What do I have to do to solve this error?

Here is the quellcode of my Highscore-Activity:



package digle.de.LeonardFrog;

import android.app.Activity;
//all the imports.....

public class AHighscore extends Activity {

    private Highscore highscore;

    private AbsoluteLayout al_highscore;
    private TableLayout tl_highscore;
    private TextView tv_names[];
    private TextView tv_score[];
    private TableRow tr_tablerows[];

    private EditText tv_winnername;
    private int winnerpos;

    public void onStart()
    {
       super.onStart();
       FlurryAgent.onStartSession(this, Global.FlurryId);
    }

    public void onStop()
    {
       super.onStop();
       FlurryAgent.onEndSession(this);
    }

    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        this.getWindow().setFlags
(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN );

        setContentView(R.layout.ahighscore);

        ImageButton buttonback = (ImageButton) findViewById
(R.id.buttonback);
        buttonback.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                finish();
            }
        });


//some other stuff ......

    }
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en



      

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to