Start a new topic
Solved

wikitude white screen coming when using sample example ?

and this is my main class code....or Activity code

public class MainActivity extends AppCompatActivity {

private ArchitectView architectView;

public static final String WIKITUDE_SDK_KEY =xyz";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
boolean support=architectView.isDeviceSupported(this);
Log.e("support",String.valueOf(support));
this.architectView = (ArchitectView)this.findViewById( R.id.architectView );
final ArchitectStartupConfiguration config = new ArchitectStartupConfiguration();
config.setLicenseKey(WIKITUDE_SDK_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();
}
}

}

@Override
protected void onResume() {
super.onResume();
this.architectView.onResume();

}

@Override
protected void onPause() {
super.onPause();
this.architectView.onPause();
}

@Override
protected void onDestroy() {
super.onDestroy();
this.architectView.onDestroy();
}

}

Hello Ranvir,

Since this is happening with your own app and our sample is working then there is something wrong you are doing in your code. What I would suggest you do is start with our sample, study carefully both the code as well as the corresponding section on our documentation regarding Instant Tracking, and then try to implement your own app.

Thanks
Eva

 

1->min sdk version:API 18: Android 4.3 (Jelly Bean).

2->max sdk version:API 25: Android 7.1.1 (Nougat).

3->yes I am using javascript api.

4->No i am not using any Extensions.

5->No i am not geeting any crash log?

6->Device i am testing is..

    model->Micromax AQ5001.

 version->5.0

7->it is happening in my own app.

8>step I followed to make application follows....

   1->I added wikitudesdk.aar jar in Lib folder.

   2->This is my build.gradle file

       

  apply plugin: 'com.android.application'

 

        android {

       compileSdkVersion 25

       buildToolsVersion "25.0.2"

    defaultConfig {

        applicationId "com.magna.wiki_js_api"

        minSdkVersion 18

        targetSdkVersion 25

        versionCode 1

        versionName "1.0"

        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }

    buildTypes {

        release {

            minifyEnabled false

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }

    }

}

 

dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])

    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {

        exclude group: 'com.android.support', module: 'support-annotations'

    })

    compile 'com.android.support:appcompat-v7:25.1.1'

    compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'

    compile (name: 'wikitudesdk', ext:'aar')

    testCompile 'junit:junit:4.12'

}

repositories {

    flatDir{

        dirs 'libs'

    }

}

 

 

3->this is my manifestfile

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

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

    package="com.magna.wiki_js_api">

 

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

 

    <application

        android:allowBackup="true"

        android:icon="@mipmap/ic_launcher"

        android:label="@string/app_name"

        android:roundIcon="@mipmap/ic_launcher_round"

        android:supportsRtl="true"

        android:theme="@style/AppTheme">

        <activity android:name=".MainActivity"

            android:configChanges="screenSize|orientation"

            >

            <intent-filter>

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

 

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

            </intent-filter>

        </activity>

    </application>

 

</manifest>

 

4->this is my Activity class

    package com.magna.wiki_js_api;

 

import android.support.v7.app.AppCompatActivity;

import android.os.Bundle;

 

import com.wikitude.architect.ArchitectStartupConfiguration;

import com.wikitude.architect.ArchitectView;

 

import java.io.IOException;

 

public class MainActivity extends AppCompatActivity {

 

    private ArchitectView architectView;

    public static final String WIKITUDE_SDK_KEY ="zT9diOHsjKmrQUIBKihBA2ajufNMvkC3Jmz53ple0szgCn6igsgCCxFIOI0mVTSZ6Nu32mxRmSbHjjF3iLC00b84Jl9ylI6Uvy4mxTjUHo0e/rgVeenTcO/cZMclFFMhyMVjprRwNMYBthDcf3HV2HwYMidaC/OE7ppWuihe/iVTYWx0ZWRfX6IgytaZ6bMQ7WoRApAeX2raofXNMrDD7h041Q71cEBN2nG7wFh3tqNYkeqksFti2c+A2qnHbdf7fWsnnLDdMoi2btQ4TxNXu2a0rNcewgpVeOPo/qGb9Nm5w9UkI9v9HTUy2pAU2mgORMz1PD2Rj/Luh++p26JtjvPBqmw2d3Qdv6MeB7uW2DGAbm57SH0jU0vsInHAZv+h4I3osXPtlBsrhqE/dJjAJlmHn/o5ERgUSX6o97FOLbUO9vvG+29dBVCuSBklTa60Pf7/4pGEhsBFMn7Gt688NviFetY1q/Myi2Er9h/7HUAA5DBYwtdfNE706rI2R8N6RGMR3iE6H/zCT9JmOwvornXG4q6Mb+kFMI/riwUVuZj59tmfSEWCTSApykr7rPTrPohJj6mW7W30mESgTmq9yAI1Ufq9TLpA4ABnIah6C7AGZyD25FF7tu//q5RG2qtTzGceRtWVgRiHRCRV5MSL1KT2Ct5ITsVAp60VfdpC4Ek=";

    @Override

    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

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

        final ArchitectStartupConfiguration config = new ArchitectStartupConfiguration();

        config.setLicenseKey(WIKITUDE_SDK_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();

            }

        }

 

    }

 

    @Override

    protected void onResume() {

        super.onResume();

        this.architectView.onResume();

 

    }

 

    @Override

    protected void onPause() {

        super.onPause();

        if ( this.architectView != null ) {

            this.architectView.onPause();

        }

    }

 

    @Override

    protected void onDestroy() {

        super.onDestroy();

        if ( this.architectView != null ) {

            this.architectView.onDestroy();

        }

    }

 

}

 

5->and I added sample example in to a assest folder.

   

       

   

Hello Ranvir,

Could you please provide some further details regarding the issue you are having?

  • Which version of the SDK are you using?
  • Are you using the JS API?
  • Are you using any of our Extensions (Titanium, Cordova, Xamarin, Unity)? If yes, which version are you using?
  • is there any crash log?
  • What device does this happen with (os Version and model)?
  • is this happening with the sample app or in your own app? If it happens with your own app, does the sample app work on your device?
  • Send exact steps to reproduce this issue and/or a video so we can check how we can reproduce this issue.

Thanks
Eva

 

Login or Signup to post a comment