使用com.markupartist.android.widget.ActionBar在操作栏中的按钮单击上查找我的位置

使用com.markupartist.android.widget.ActionBar在操作栏中的按钮单击上查找我的位置,android,google-maps,android-actionbar,Android,Google Maps,Android Actionbar,我在mapview中使用这个库作为操作栏,我想在按钮上显示我的位置,单击操作栏中的项目,但我不知道怎么做,我挣扎了几个小时。。。。这是我的密码: ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar); actionBar.setTitle("Home"); actionBar.setHomeAction(new IntentAction(this, Main.createIntent(thi

我在mapview中使用这个库作为操作栏,我想在按钮上显示我的位置,单击操作栏中的项目,但我不知道怎么做,我挣扎了几个小时。。。。这是我的密码:

ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar);

        actionBar.setTitle("Home");
        actionBar.setHomeAction(new IntentAction(this, Main.createIntent(this), R.drawable.ic_title_home_default));

                actionBar.addAction(new locationAction());


                // add a listener to the title

                actionBar.setOnTitleClickListener(new OnClickListener() {
        @Override   
       public void onClick(View v) {

         makeToast("Title clicked...");
                    }

                });
    }

        // the location action should go here

        private class locationAction implements Action {

            @Override

            public int getDrawable() {

                return R.drawable.location;
            } 


            @Override

            public void performAction(View view) {

                makeToast("Refreshing...");
}
}

     // a simple method to create an intent

        public static Intent createIntent(Context context) {

            Intent i = new Intent(context, Main.class);

            i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

            return i;

        }

        public void makeToast(String message) {

            Toast.makeText(this, message, Toast.LENGTH_SHORT).show();

        }       }
求求你,救命