Start a new topic

App crash

App crash


Hi I'm new to this sdk and I tried to make a simple Image recognition and 3d,  I followed the instructions on the documentation and also used the sample app.

I get this on the logcat: 12-05 20:09:03.521: E/Trace(22336): error opening trace file: Permission denied (13)

I've checked the manifest and I have my only activity listed there.

My activity looks like this:

package com.erick.upemorar;

 

 

import java.io.IOException;

 

import android.app.Activity;

import android.hardware.SensorManager;

import android.os.Bundle;

import android.widget.Toast;

 

import com.wikitude.architect.ArchitectView;

import com.wikitude.architect.ArchitectView.ArchitectConfig;

import com.wikitude.architect.SensorAccuracyChangeListener;

 

 

 

public class MainActivity extends Activity {

 

private ArchitectView architectView;

 

@Override

protected void onCreate(final Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

 

this.architectView = (ArchitectView)this.findViewById( R.id.architectView );

final ArchitectConfig config = new ArchitectConfig( "" );

this.architectView.onCreate( config );

setContentView(R.layout.activity_main);

this.setTitle("UpemorAR");

}

 

 

 

@Override

protected void onResume() {

super.onResume();

if ( this.architectView != null ) {

this.architectView.onResume();

}

}

 

@Override

protected void onPause() {

super.onPause();

if ( this.architectView != null ) {

this.architectView.onPause();

}

}

 

@Override

protected void onStop() {

super.onStop();

}

 

@Override

protected void onDestroy() {

super.onDestroy();

if ( this.architectView != null ) {

this.architectView.onDestroy();

}

}

 

@Override

protected void onPostCreate( final Bundle savedInstanceState ) {

super.onPostCreate( savedInstanceState );

if ( this.architectView != null ) {

this.architectView.onPostCreate();

}

 

try {

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

} catch (IOException e1) {

e1.printStackTrace();

}

}

}

 

and the manifest:


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

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

    package="com.erick.upemorar"

    android:versionCode="1"

    android:versionName="1.0" >

 

    <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" />

<uses-feature android:name="android.hardware.camera" android:required="true" />

<uses-feature android:name="android.hardware.location" android:required="true" />

<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />

<uses-feature android:name="android.hardware.sensor.compass" android:required="true" />

<uses-feature android:glEsVersion="0x00020000" android:required="true" />

    

    <uses-sdk

        android:minSdkVersion="8"

        android:targetSdkVersion="18" />

 

    <application

        android:allowBackup="true"

        android:icon="@drawable/ic_launcher"

        android:label="@string/app_name"

        android:theme="@style/AppTheme" >

        <activity

            android:name="com.erick.upemorar.MainActivity"

            android:configChanges="orientation|screenSize"

            android:label="@string/app_name" >

            <intent-filter>

                <action android:name="android.intent.action.MAIN" />

 

                <category android:name="android.intent.category.LAUNCHER" />

            </intent-filter>

        </activity>

    </application>

 

</manifest>

 

Any clue on whats going on?

Thanks.

 

Hi Erick!

Please check code of provided SampleApp-Project.
I guess ARchitectView is not defined properly in the layout xml (compare this post from stackoverflow) or do you have same issue in the sample app?

Kind regards,
Andreas
Login or Signup to post a comment