Problem with accelerometer using view->create(480, 320)

Hi everyone,

I follow this tutorial
http://www.raywenderlich.com/11338/cocos2d-x-for-ios-and-android-space-game
to create a game using cocos2d-x.

I create the game successfully without errors.

But when i uncomment the line
view~~>create~~ (to give another resolution for the game)
in the main.cpp file in android project, the game work with problem.

The accelerometer that works perfectly before, now only go for one direction(up), to make the ship down, I want to click and hold the screen.

Exists any reason to this strange behavior?

This is the function that correspond to the accelerometer

void GameScene::didAccelerate(CCAcceleration* pAccelerationValue) {
#define KFILTERINGFACTOR 0.1
#define KRESTACCELX 0.6
#define KSHIPMAXPOINTSPERSEC
#define KMAXDIFFX 0.2
double rollingX ;
// Cocos2DX inverts X and Y accelerometer depending on device orientation
// in landscape mode right x=y and y=x ! (Strange and confusing choice)
pAccelerationValue
>x = pAccelerationValue
>y ;
rollingX = (pAccelerationValue~~>x * KFILTERINGFACTOR) + );
float accelX = pAccelerationValue~~>x - rollingX ;
CCSize winSize = CCDirector::sharedDirector()>getWinSize;
float accelDiff = accelX
KRESTACCELX;
float accelFraction = accelDiff / KMAXDIFFX;
*shipPointsPerSecY = KSHIPMAXPOINTSPERSEC * accelFraction;
float curTimeMillis = getTimeTick;
if {
float randMillisecs = randomValueBetween * 1000;
*nextAsteroidSpawn = randMillisecs + curTimeMillis;

float randY = randomValueBetween(0.0,winSize.height);
float randDuration = randomValueBetween(2.0,10.0);

CCSprite *asteroid = _asteroids~~>getObjectAtIndex;
*nextAsteroid++;
if )
*nextAsteroid = 0;
asteroid~~>stopAllActions();
asteroid~~>setPosition.width/2, randY));
asteroid~~>setIsVisible(true) ;
asteroid->runAction ( CCSequence::actions (
CCMoveBy::actionWithDuration(randDuration,ccp(winSize.width-asteroid>getContentSize().width,0)) ,
CCCallFuncN::actionWithTarget(this,callfuncN_selector(GameScene::setInvisible)) ,
NULL // DO NOT FORGET TO TERMINATE WITH NULL (unexpected in C++)
) ) ;
}