Start a new topic

my camera dosent work help me

my camera dosent work help me

1 person has this problem


hi i am a new developer in AR and my firs App dont work camera

just show a black screen with trial logo

when i used genymotion for test app and turn on camera manully my app work and show 3d model 

my camera dont turn on automaticlly

plese help me 

 

Hi there!

Please have a look at the provided sample application, which is part of the Wikitude SDK zip.
Examples/apk - folder even contains the generated apk so you can test the app without and Android Studio / Eclipse setup.

Please check if

* issue occurs after device restart 
* SDK Sample applicationhas the same issue
* Other devices ahve same issue

If SDK Sample app works as expected: Please have a closer look at its source-code and compare it with your's.

Kind regards

I have the same problem. The sample works fine. Though the sample app is a bit too messy to start my own app. I would like a clean start as described in the 'tutorial'. The problem is the tutorial seems to be only about the javascript part, hardly about the android part.

I copied the first cam (surfer) example from the sample app and started my own activity according to the few instructions in the android starting tutorials. I do see the surfer header which means the html is loaded.

i got the "called unimplemented OpenGL ES API" error in logcat.

activity_main.xml:


<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android

    android:layout_width="fill_parent"

    android:layout_height="fill_parent"

    android:orientation="horizontal">

<com.wikitude.architect.ArchitectView android:id="@+id/architectView" android:layout_width="fill_parent" android:layout_height="fill_parent"/>

</LinearLayout>


 

Permissions:

    <uses-permission android:name="android.permission.INTERNET" />

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

    <uses-permission android:name="android.permission.ACCESS_GPS" />

    <uses-permission android:name="android.permission.CAMERA" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

 

My main method:

public class MainActivity extends Activity {

ArchitectView architectView;

 

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

 

this.architectView = (ArchitectView) this

.findViewById(R.id.architectView);

final StartupConfiguration config = new StartupConfiguration(key);

this.architectView.onCreate(config);

}

 

@Override

protected void onPostCreate(Bundle savedInstanceState) {

super.onPostCreate(savedInstanceState);

if (this.architectView != null) {

this.architectView.onPostCreate();

try {

this.architectView.load("index.html")

} catch (IOException e1) {

e1.printStackTrace();

}

}

}

}
Login or Signup to post a comment