Display near by places in Location based Augmented reality Android -


i wanted try , code location based ar shows places.i tried android code in following link augmented reality android example , ended following error in redmi note 3(api 24) nougat. did changes in main.xml

<?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/surface_overlay">  <surfaceview android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:id="@+id/surface_camera" /> </framelayout> 

error

 08-18 09:15:15.588 32701-32701/? e/androidruntime: fatal exception: main                                                process: advisory.arplaces, pid: 32701                                                java.lang.nullpointerexception: attempt write field 'advisory.arplaces.arview.dataview advisory.arplaces.arview.radarview.view' on null object reference                                                    @ advisory.arplaces.arview.dataview.draw(dataview.java:329)                                                    @ advisory.arplaces.arview.radarmarkerview.ondraw(arview.java:390) 

hi think may not declare lib or did not initialize radarview object in java file want check or try debug it, because getting null object reference exception.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -