ArToolKitJpctBaseLib icon indicating copy to clipboard operation
ArToolKitJpctBaseLib copied to clipboard

Can't change resolution from 320x240

Open l2dev opened this issue 8 years ago • 1 comments

Hi,

I'm using Lenovo TB2-X30L 10.1 inch tablet. I can't change default camera preview resolution which is 320x240.

Things I already tried:

Modifying preferences.xml, changing values such as pref_defaultValue_cameraResolution but didn't help.

Going to settings (Camera preference activity), it allows me to change and select resolution but after confirming the change, resolution remains the same.

Then I tried importing the whole library as source and going to ARActivity.java, tried changing width/height variables in cameraPreviewStarted() method but then the app crashes and nothing starts.

In this forum https://archive.artoolkit.org/community/forums/viewtopic.php?f=28&t=23113&p=28378&hilit=320#p28378 they advice to decompile Assets/Plugins/Android/ResLib-release.aar file, modify it and compile it back again. However this advice is only for arunity library. Our library doesn't use these files.

Any ideas how to make it work?

l2dev avatar Aug 18 '17 06:08 l2dev

Found the solution https://stackoverflow.com/questions/30552742/get-artoolkit-demo-on-android-to-fill-the-entire-screen

l2dev avatar Aug 18 '17 07:08 l2dev