You can always use this for every device what ever its width,height is:
OrthographicCamera camera;
int screenWidth = Gdx.graphics.getWidth();
int screenHeight = Gdx.graphics.getHeight();
camera = new OrthographicCamera(screenWidth, screenHeight);
camera.position.set(screenWidth * 0.5f, screenHeight * 0.5f, 0);
Although its useful when your using a orthographic camera, This code can be used anywhere even if you'r not using a orthographic camera.