how to get window group id for payment blackberry?

int
setup_screen()
{

if (screen_create_context(&screen_ctx, SCREEN_APPLICATION_CONTEXT) != 0) {
return EXIT_FAILURE;
}

if (screen_create_window(&screen_win, screen_ctx) != 0) {
screen_destroy_context(screen_ctx);
return EXIT_FAILURE;
}

if (screen_create_window_group(screen_win, get_window_group_id()) != 0){
return EXIT_FAILURE;
}

int usage = SCREEN_USAGE_NATIVE;
if (screen_set_window_property_iv(screen_win, SCREEN_PROPERTY_USAGE, &usage) != 0) return EXIT_FAILURE;

if (screen_create_window_buffers(screen_win, 1) != 0) return EXIT_FAILURE;

screen_buffer_t buff;
if (screen_get_window_property_pv(screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void*)&buff) != 0) return EXIT_FAILURE;
int buffer_size[2];
if != 0) return EXIT_FAILURE;
int attribs[1] = ;
if != 0) return EXIT_FAILURE;
int dirty_rects[4] = ;
if dirty_rects, 0) != 0) return EXIT_FAILURE;
return EXIT_SUCCESS;
}
i initiate this function for screen payment…
how i get screen get_window_group_id…
i think it’s already have after declare this line code in int main
CCEGLView
eglView = CCEGLView::sharedOpenGLView();
eglView->setFrameSize(width, height);

or do i need initiate int screen_screen() for payment blackberry?

Tommy

the problem :
i can’t show payment service dialog…

i’m creating screen for payment service blackberry from int setup_screen…

but if i do create screen for payment service and call payment service at int main()…
it’s doing well but after transaction my app can’t play…

but if i do in my app at button click,
the result is my app doing well… but the payment service can’t show up…

did i missed something??

i hope you understand what i mean…

Tommy