Go Down

Topic: Rubik's cube Robot solver (Read 153537 times) previous topic - next topic

lampel

hello all ,
where can i find kas android program ?
thanks lampel

kas

 ::)  ::)  ::)

@lampel
Did you receive my email message ??


lampel

Hi KAS ,
no i havent :(

i sent you a PM a few days ago ,
didn't got response so i was thinking you're not available to answer


kas

Please confirm your email address via PM


kas

Check your mail   ;)
please confirm


lampel

hi Kas ,
still noting..  (i checked the spam folder aswell )
can you PM me your email mybe i will direct send you an email ,
mybe gmail is blocking JAR files

kas

Quote
Thank you! ,
Got it
Finally   ;D
Enjoy


lampel

Hello kas ,
So i installed your android program ,
I maneged to connect it to the HC 05 module but  when i press scan i am getting "setting not supported by camera" error message , do you know this problem ?

kas

#308
May 28, 2017, 08:24 am Last Edit: May 28, 2017, 12:17 pm by kas
Quote
when i press scan i am getting "setting not supported by camera" error message , do you know this problem ?
Android code:
Code: [Select]
    parameters.setPreviewFormat(ImageFormat.NV21);
    parameters.setPreviewSize(864, 480);
    parameters.setExposureCompensation(RubikMainActivity.exposureCompensation);
    parameters.setWhiteBalance (RubikMainActivity.WBCompensation);
    parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_MACRO);
    try {
      camera.setParameters(parameters);
         } catch (Exception e) {
      Toast.makeText(getContext(), "setting not supported by camera", Toast.LENGTH_LONG).show();
         }


Your specific IP camera doesn't accept one of those settings  ::)

Go to Option
   set Exposure compensation to zero
   set White Balance to 'auto'
and test again

Let me have your camera model, together with a link to technical specifications


lampel

Hi KAS ,
I tried that and still the same...
Its a samsung note 5 ,
Her is a link to the phone spesification

http://m.gsmarena.com/samsung_galaxy_note5-7431.php

kas

#310
May 28, 2017, 08:28 pm Last Edit: May 28, 2017, 09:15 pm by kas
I will recompile App with modified code:
Code: [Select]
    parameters.setPreviewFormat(ImageFormat.NV21);
    parameters.setExposureCompensation(RubikMainActivity.exposureCompensation);
    parameters.setWhiteBalance (RubikMainActivity.WBCompensation);
    parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_MACRO);
    try {
      camera.setParameters(parameters);
    } catch (Exception e) {
      Toast.makeText(getContext(), "setting not supported by camera", Toast.LENGTH_LONG).show();
    }

    parameters.setPreviewSize(864, 480);
    try {
      camera.setParameters(parameters);
    } catch (Exception e) {
      Toast.makeText(getContext(), "Preview 864X480 not supported by camera", Toast.LENGTH_LONG).show();
    }


I bet the unsupported feature is the 864X480 display; please confirm

Stay tuned



kas

#311
May 28, 2017, 09:14 pm Last Edit: May 28, 2017, 09:14 pm by kas
Check your mail   ;)

kas

Quote
Hi KAS ,
so i installed the debug version ,
i get : "PreviewSize(864,480) not supported"
Makes sense
I will compile the updated version within a week


lampel

Hi kas ,
Your new version fixed the problem !!!
Thank you what a great guy,
do you have a paypal account can I buy you a coffee???

kas

#314
May 29, 2017, 08:35 pm Last Edit: May 29, 2017, 08:36 pm by kas
Quote
Your new version fixed the problem !!!
Glad it works  :D
I built the App using my Motorola Moto G, I really need that type of feedback to polish the code
and make it fully usable for other brands with different screen sizes


Quote
do you have a paypal account can I buy you a coffee???
I don't drink coffee   ;)
Thanks for this kind offer anycase


Go Up