droidar
droidar copied to clipboard
DroidAR not working on several devices
Hi, I'm working project with droidar. I'm currently use Samsung galaxy mini and it works perfectly to show image and all sensor. Then I'm trying using Samsung galaxy mini 2 and Samsung Galaxy S3 Mini. 2.3 on galaxy mini and mini 2, and 4.2 on galaxy S3 mini.
Then I try to use Samsung galaxy tab 2 wifi only with 4.1.2 android version. It shown the sensor wont work it's only a camera. Beside it's shown an image but only like a picture stuck in the screen. it not move whenever I move my device.
I already change the Setup.java into false but it not working. Link [ https://code.google.com/p/droidar/issues/detail?id=74#c7 ]
The following code is
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
Button b = new Button(this);
b.setText("Click me to Start the AR Action");
b.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
ArActivity.startWithSetup(MainActivity.this, new DefaultARSetup(){
@Override
public void addObjectsTo(GL1Renderer renderer, World world,
GLFactory objectFactory) {
world.add(objectFactory.newSolarSystem(new Vec(10, 0, 0)));
}
});
}
});
setContentView(b);
}
Thanks in advance