How can I set background image full screen?

Hi there,

I meet this problem, and I try to setDesignResolutionSize,on my i9001 runs well,but unfortunately, my game runs on Nexus4 crash. The source like this below:

void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv*  env, jobject thiz, jint w, jint h)
{
    if (!CCDirector::sharedDirector()->getOpenGLView())
    {
        CCEGLView *view = CCEGLView::sharedOpenGLView();
        view->setFrameSize(w, h);

        view->setDesignResolutionSize(320,480,kResolutionExactFit);
        AppDelegate *pAppDelegate = new AppDelegate();
        CCApplication::sharedApplication()->run();
    }
    else
    {}
}

I have no idea about this, so I need some help about this crash and how can I set background image full screen,thanks!
The version is cocos2dx-2.2.1.

I have test this case:
remove ipad and idaphd folder from HelloCpp, then app crash also.

12-23 19:22:36.249: D/cocos2d-x debug info(6615): Get data from file(CloseNormal.png) failed!
12-23 19:22:36.249: D/cocos2d-x debug info(6615): Get data from file(CloseSelected.png) failed!
12-23 19:22:36.269: D/cocos2d-x debug info(6615): Get data from file(HelloWorld.png) failed!

Please help…

the resources hasn’t been added to you bundle source, the resouces of pics like CloseNormal.png, try to add them

My mistake.I put method “setDesignResolutionSize” wrong place.
Below is correct :

bool AppDelegate::applicationDidFinishLaunching()
{

    // initialize director
    CCDirector *pDirector = CCDirector::sharedDirector();
    pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());

    CCEGLView::sharedOpenGLView()->setDesignResolutionSize(320,480,kResolutionExactFit);
    // turn on display FPS
    pDirector->setDisplayStats(true);

    // set FPS. the default value is 1.0/60 if you don't call this
    pDirector->setAnimationInterval(1.0 / 60);

    // create a scene. it's an autorelease object
    CCScene *pScene = HMenu::scene();

    // run
    pDirector->runWithScene(pScene);

    return true;
}