[DEV] RGB ambient light sensor test app (no root required) - Galaxy S III Themes and Apps

Hi all,
As some of you may know, the I9300 has an RGB ambient light sensor. I made a little app to show off the capabilities of the sensor. It's very basic at the moment since I just finished it but I though I'd share it with you guys and gals before heading to bed.
The sensor in the phone reports raw values, which haven't been adjusted to take into account the different sensitivity the human eye has to different colours. The app compensates a bit, by scaling the raw sensor values according to the CIE response curve. However I have not yet taken the non-linearity of intensity into account.
At the moment the app works best for strong colours.
To use the app:
Launch.
Done.
On the top left are the values reported by the sensor. The bottom square shows the colour after scaling/processing. If you tap the coloured square you can pause/unpause the measurement.
The attached pictures are what I get when I test my monitor. If I hold the phone next to the screen they look almost identical. So I can conclude my laptop screen is ****e
I have only tested this on the international version. So all you US folks, feel free to try it and let me know if it works.
-rcblob

Very nice work, seems like more and more people are learning to dev.

Very raw app, but with some work this could be useful.
Ps. Settings doesn't work

Thanks for the support.
I'm stuck on what to actually do with this, so if anyone has any ideas/features feel free to throw them out there.

Very nice! I'm just thinking that is there anyway we could turn this to an pc monitor calibration tool. Is the sensor accurate enough? Just thinking of the possibilities...

Nice app, i never knowed, that there are an rgb sensor)
Will be very cool if someone make something usefull with that)
Thank you for the show possibilities
Cheers
Sent from my GT-I9300 using xda premium

Rc-Blob said:
Thanks for the support.
I'm stuck on what to actually do with this, so if anyone has any ideas/features feel free to throw them out there.
Click to expand...
Click to collapse
This could be an awesome app for people who want to 'Colour Pick' from swatches, Eg: Paint matching, fabric matching etc...
You could also refine this to tweak & calibrate monitors (LCD/Plasma) just like thos $200.00 sensors you can buy at Photo stores.
For us photographers and cinematographers out there, it could be refined further to become an incident light meter...
Could also be used within a game where sensed colours could match a result of some kind..... endless possibilities..
Anyway, This is a very cool app indeed! I cant stop playing with it, Thanks for this!

Rc-Blob said:
Hi all,
As some of you may know, the I9300 has an RGB ambient light sensor. I made a little app to show off the capabilities of the sensor. It's very basic at the moment since I just finished it but I though I'd share it with you guys and gals before heading to bed.
The sensor in the phone reports raw values, which haven't been adjusted to take into account the different sensitivity the human eye has to different colours. The app compensates a bit, by scaling the raw sensor values according to the CIE response curve. However I have not yet taken the non-linearity of intensity into account.
At the moment the app works best for strong colours.
To use the app:
Launch.
Done.
On the top left are the values reported by the sensor. The bottom square shows the colour after scaling/processing. If you tap the coloured square you can pause/unpause the measurement.
The attached pictures are what I get when I test my monitor. If I hold the phone next to the screen they look almost identical. So I can conclude my laptop screen is ****e
I have only tested this on the international version. So all you US folks, feel free to try it and let me know if it works.
-rcblob
Click to expand...
Click to collapse
:good:
Great!!! Could you show us how did you get the values? Thanks in advance!

values
I am also interested to know how you can access the rgb ambient light sensor values. Is this part of the samsung API?
maicon said:
:good:
Great!!! Could you show us how did you get the values? Thanks in advance!
Click to expand...
Click to collapse

Wow I could calibrate my monitor colour using this app! haha!
Looking forward to updates!!
Sent from my GT-I9300 using xda premium

Related

[Q] SGS Blackberry-ish lock/unlock phone

Hi there,
Coming from a Blackberry Bold 9700 and being now the proud owner of a Samsung Galaxy S, I have to confess I miss a tiny little feature that I had with the BB and that the SGS doesn't have: when I used to put my BB in its case, it would lock the phone automatically.
Well, I know that is an old feature of all BB and that it works via a magnetic mechanism of some sort.
My question is: would it be possible to develop such a feature for the SGS, using the proximity sensor?
Or... is there any existing app that already does this?
FYI, I use this case: http://www.amazon.co.uk/GENUINE-KRU...1?ie=UTF8&s=electronics&qid=1284032013&sr=8-1
Thanks!
Benny
One small question: is this topic in the appropriate forum or should it be in the "Android Development" one?
This could really belong in any of the forums, it's about accessories, an application for locking the phone, and the development of such an application. Congrats, for what it's worth!
But...I don't think this is possible. I'm just another uneducated user though, so what do I know!
This looks cool :
http://androidforums.com/htc-desire/94942-use-proximity-sensor-disable-screen-while-pocket.html#post930969
Thanks for the info, Danesh!
That tool seems to be quite perfect for the job. But I'm afraid it does not work with my (and, I assume, any) SGS...
Can someone take a look at it and see if it can be modded in order for it to work?
Thanks a bunch!
Sent from my GT-I9000 using XDA App
It works but u need to plugin ur headphones first.
Daneshm90 said:
It works but u need to plugin ur headphones first.
Click to expand...
Click to collapse
Oh, ok... But that kind of defeats the purpose I intended to use it for.
Sorry to be such a pain, but is there someone who can enable the sensor to do its job even with no headphones plugged in?
Thanks again!
Benny_Lx said:
Oh, ok... But that kind of defeats the purpose I intended to use it for.
Sorry to be such a pain, but is there someone who can enable the sensor to do its job even with no headphones plugged in?
Thanks again!
Click to expand...
Click to collapse
Im currently creating such an app. Heres wht imma implement :
Using orientation sensor + proximity sensor, if ur phone is in vertical position and proximity sensor returns a 0 for 5s, then the screen turns off (haven't implemented this part yet).
So far i have it working where it sets the brightness to 0 when its dark for 5s, and sets to original brightness when its not dark. Will keep u posted.
Edit : I might not do orientation sensing, cuz tht'll cause too many variations where its not fathomable.
Neone know of any private api's or nething tht allows an app to disable screen ? Might open tht guys app to see.
Daneshm90 said:
Im currently creating such an app. Heres wht imma implement :
Using orientation sensor + proximity sensor, if ur phone is in vertical position and proximity sensor returns a 0 for 5s, then the screen turns off (haven't implemented this part yet).
So far i have it working where it sets the brightness to 0 when its dark for 5s, and sets to original brightness when its not dark. Will keep u posted.
Edit : I might not do orientation sensing, cuz tht'll cause too many variations where its not fathomable.
Neone know of any private api's or nething tht allows an app to disable screen ? Might open tht guys app to see.
Click to expand...
Click to collapse
Thanks, man! That seems awesome!
I would gladly give you a hand, but the truth is I am just a lawyer... lol
I can help you test that, though.
Thanks again.
Just a bump...
Sent from my GT-I9000 using XDA App
hi there.
first of all i think u dont need something like that .. i was a bb user too.. and trust me u dont need.. sgs touch screen only respond to finger.. u can try pen.. or try touching it with your clothes or trew your clothes the screen and see that nothing hapens GL.. so why is necesary the magnetic lock? i dont see the point
I suppose you could set something like this up with Tasker? Using the orientation sensor?

Idea for a new application

Hey peeps!
I have this new idea for a app that runs on phones with secondary front cams.
Unlock the screen by it doing a face recognition of your face, no need to passcode or pattern lock it...
Hope to see it soon.
If an app like this is alredy available, please post it here, if not - DEVELOP IT AND POST IT HERE!
thats a great idea, the tech already works well enough on laptops so hopefully some bright spark can make it a reality
Would it always have the camera running or only when a button is pressed. I can definitely see this being possible and not too hard to dev.
Sent from my GT-I9000 using XDA App
Exactllly! And still, only noobs like me are seeing seeing this stuff... Some real programmers! Do this!
timmy16744 said:
Would it always have the camera running or only when a button is pressed. I can definitely see this being possible and not too hard to dev.
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Camera will wake up as soon as the screen wakes up, and if it sees you, it should unlock.
This is a great idea for an app. Unfortunately, I don't have nearly enough coding skills to pull off facial recognition...
...and I only have skills to successfully use it
It would need something along the lines of Google Goggles recognition software.
Ian_Cog said:
It would need something along the lines of Google Goggles recognition software.
Click to expand...
Click to collapse
Maybe someone can rip off the api's from goggles and make it work offline
Not a bad "concept" but not likely to be done until Gingerbread is used by all the phones.
You see the api to access the ffc on Froyo is very phone specific wich would only make this app run on the Galaxy S (other phones would work also but with a lot of work).
Second problem is how would you unlock your phone when it's complete black (I mean no light at all) would be a very stupid situation to find yourself in isn’t it ?
The sight of my hungover face first thing in the morning is enough to make my phone go to sleep for good lol
Nice idea though, might have an issue with varying light levels though
FlanFlinger said:
Nice idea though, might have an issue with varying light levels though
Click to expand...
Click to collapse
Can't light sensor and screen work together to bring the enough light for camera to work?
Great idea of an app

[LWP][v0.6-pre] Crystal Reflection sensor-reactive Nexus 4 backplate live wallpaper

Inspired by Zurginator's cool Nexus 4 backplate backgrounds, I've started working on a live wallpaper interpretation of LG's Crystal Reflection glass process.
Current release: 0.6-pre
NOTE: I'm not currently working on this and don't currently have any plans to come back to it. It was a fun diversion for a couple of weeks. Thanks everyone.
Features:
Reacts to motion of your handset or tablet in a realistic way
Optionally reacts to ambient lighting conditions
Somewhat configurable (color of dots and background, number and size of dots, show/hide the lines in the dots)
Free (as in beer)
Free (as in speech, BSD 2-clause license, pull requests welcomed!)
Known bugs:
I haven't actually seen the back of a real Nexus 4 yet, so I may need to tune the response function once I have. (And I do have one on the way.)
Needs a demo video. (I'll take a community contribution here.)
Other TODO:
Optimus G pattern (apparently some diamondy thing?)
Point source lighting mode
Consider OpenGL ES
Consider dropping support for all API < 18 if Filterscript DTRT?
Ch-ch-ch-changelog
Enjoy!
nicely done! i was gonna comment on the other post about live wallpaper...beat me to it haha!
Looks really nice. Also I did modify those default values a bit.
Sent from my HTC One X using xda premium
I am really excited to try this out.
I will get you a demo video as soon as google ships me my phone waiting impatiently
It works so well! I have no pag at all!
Sent from my HTC Sensation 4G using Tapatalk 2
v0.5-pre is built, adding an option to disable the little lines across the dots, adding a real icon, and simplifying the label used in the Live Wallpapers list.
You may need to uninstall or delete prefs for the old version. Definitely try that if it's refusing to load.
I've noticed that if I crank up the number of dots across on my Nexus 7, I can still get significant delays in rendering, despite using precomputed bitmaps. I suspect that the Nexus 10 will experience poor performance due to the sheer number of bitmaps to render. As it turns out, there's no access to a hardware-accelerated canvas from a live wallpaper, so I may have to rewrite the core as [edited] OpenGL ES (graphics Renderscript is deprecated), which would delay feature work.
robg2008 said:
I am really excited to try this out.
I will get you a demo video as soon as google ships me my phone waiting impatiently
Click to expand...
Click to collapse
Ha ha, aren't we all?
Oh, I do want to say thanks to everyone who has tried this out, it's been a fun little side project and I'm glad it's gotten a positive reaction.
I downloaded the apk to my Inspire 4G and my LG Optimus G and just see a black screen and no background when chosen as the wallpaper
reignlight said:
I downloaded the apk to my Inspire 4G and my LG Optimus G and just see a black screen and no background when chosen as the wallpaper
Click to expand...
Click to collapse
After I went into the wallpaper settings and came back out the dots were there for me.
Seems to work for me even after clearing shared prefs. If you're setting it on a level surface or with the display straight up and down, with the default settings the display will appear black; more so if you are in a dark room (light sensor is enabled by default). I don't expect there to be a reason to make significant changes there to the defaults. All indications from reviews of N4s say that you don't normally even see the pattern; if anything I'm probably overstating the effect.
Thank you! It´s beautiful and i like it´s kind of sparkling.:good:
Can't wait to try it out once Google gets the N4 back in stock.
Dude thanks a million this **** looks sick on the N4
Sent from my Nexus 4 using xda app-developers app
glowing colored x logo animated
hey i adss expecting the nexus on the back of the device to be colored, unfortunately its just plain gray..
can u come up with something like that in the live wall paper.. just a suggestion
:fingers-crossed:
Anyone wanna post a video? I would but my current phone doesn't have a gyroscope. Or a light sensor. Or a processor fast enough to take a screen video
yogeshmha said:
hey i adss expecting the nexus on the back of the device to be colored, unfortunately its just plain gray..
can u come up with something like that in the live wall paper.. just a suggestion
:fingers-crossed:
Click to expand...
Click to collapse
Sorry, no, I don't plan to do anything along those lines.
Incidentally, OpenGL, even with the help of a framework: pain in the butt.
UPDATE: Along those lines, rather than wait for me to figure out how to make that work, have v0.6-pre. It has some modest performance improvements.
olearyp said:
Sorry, no, I don't plan to do anything along those lines.
Incidentally, OpenGL, even with the help of a framework: pain in the butt.
UPDATE: Along those lines, rather than wait for me to figure out how to make that work, have v0.6-pre. It has some modest performance improvements.
Click to expand...
Click to collapse
Nice work - I can definitely notice the performance improvements. Liking the customization options, as well.
This is fantastic, thanks so much for this. Perfect wallpaper to match my N4.
Really nice work mate. Keep up that great work Thanks
Can someone post a video? Im phoneless right now haha

[Q] Camera exposure settings

I have consistent problem with camera while taking shots during shows/concerts. Take a look at the pic, the normal looking one at the top is actually under exposed -2. The bottom is exposure 0. I have the same problem while taking videos. For some reason Samsung gets very sensitive while there is a big differential in the light settings. My friend's LG HD and all iPhones don't have this glare.
Is there a place I can edit and modify exposure settings? I'm on TW Jedi X12, but found all TW roms have that 'problem.'
C'mon, no one has the answer to this basic question/problem?
Bronyr said:
C'mon, no one has the answer to this basic question/problem?
Click to expand...
Click to collapse
Hi. I don't know where to edit exposure but, have you tried Camera FV-5? It's a really neat app, and it does a real job. You can adjust the exposure, ISO, shutter controls, white balance, metering and it also display a live histogram while focusing. DSLR controls on your Note2.
Hope it helps!
Thanks for the tip. Great app indeed but no video option. Will be looking to find how to edit the camera app file and make exposure -2 to stick as default.
Sent from my SGH-T889 using xda app-developers app
Do you have auto contrast on? Seems like that may be worth looking into
Sent from my SGH-T889
Bronyr said:
Thanks for the tip. Great app indeed but no video option. Will be looking to find how to edit the camera app file and make exposure -2 to stick as default.
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
Check your PMs
dwitherell said:
Check your PMs
Click to expand...
Click to collapse
have anybody tried to update camera firmware?
thx dwitherel, it worked perfectly.
Okay. what was the tip that worked perfectly? Wanna share or is it some "If I tell you, I'm gonna have to kill you" thing?
dkb218 said:
Okay. what was the tip that worked perfectly? Wanna share or is it some "If I tell you, I'm gonna have to kill you" thing?
Click to expand...
Click to collapse
LOL - it was a smali edit that fixed it. I am away from my laptop so I can't tell you the specifics at the moment, but there is one particular smali file that sets the defaults for a number of things - including exposure value. There were a few places where the exposurevalue:I and camcorderexposurevalue:I were set to 0x0 (i.e. 0 on the exposure setting). Each integer seemed to be equivalent to a half step on that scale (so 0x1 would be an exposure of 0.5, etc.), so where those values were being set I changed them to -0x4 (or -2). If folks are interested I could post just the modified camera apk, and dkb218 if you want the super-specifics shoot me a PM and I'll go into some more detail once I have the files in front of me (this is all being said from memory, which in my case is rather fallible lol).
Post the modded camera.apk when possible and thank you
camera exposure settings
Is there a way to get the exposure value to go lower than -2? I'm trying to take pictures of powerpoint presentations. The Ipads in the audiences are having no problem with tapping on the screen, the camera focuses on the powerpoint slide and it is clearly visible. The Note 8 still whites it out. An exposure of -2 helps but not enough.

[Q] Where can I find the "warm vintage" photo effect?

Hi everyone!
As a Note II user, I really enjoy the "warm vintage" camera effect, and I shoot the 80% of the photos with this filter activated. After I tried many Apps, I'm stick with this stock effect because creates an excellent tone and colours, and does not look so vintage. But I will change my phone in a few months, and I can't find any App with something like that. Could anyone help me out with this? Thanks a lot!
Snapseed and even Line camera app have those and many other effects - but I like Snapseed's ability to adjust more.
cyberboob said:
Snapseed and even Line camera app have those and many other effects - but I like Snapseed's ability to adjust more.
Click to expand...
Click to collapse
Yes, you are right, I should have explained myself better. I meant I'm looking for the effect in real time, as is built in our Notes, so you can see it before you take the picture, not a filter you can apply later. And also I'd like the same white balance and colour saturation that "warm vintage" has, not an approximate solution. Thanks anyway for the response!:laugh::good:
outrun86 said:
Yes, you are right, I should have explained myself better. I meant I'm looking for the effect in real time, as is built in our Notes, so you can see it before you take the picture, not a filter you can apply later. And also I'd like the same white balance and colour saturation that "warm vintage" has, not an approximate solution. Thanks anyway for the response!:laugh::good:
Click to expand...
Click to collapse
Does anyone know where the "Warm vintage" filter has gone in the note 3 and Note 4? Thanks!
RedJay88 said:
Does anyone know where the "Warm vintage" filter has gone in the note 3 and Note 4? Thanks!
Click to expand...
Click to collapse
It was only included in Note2, not in any model after that.
Hello, just switched from Galaxy S3 to Xperia Z3 and badly missing the warm vintage effect on my cammera, from same reasons as originator of this thread.
Can anyone advice which camera app is matching, if any?
Thank you very much
Try "Open Camera", it's free in the Playstore. It has quite same Warm Vintage effects in the stock camera app.
rafiakbar412 said:
Try "Open Camera", it's free in the Playstore. It has quite same Warm Vintage effects in the stock camera app.
Click to expand...
Click to collapse
Thank you for the hint. Open Camera is nowhere near my expectation. Its true, that with white balance manually set to Daylight or Cloudy-daylight, the colours are much more alive, but not as much as I would imagine.
Any other idea? It really not possible to transfer the Samsung (S3) camera mode to other device?
Z.I.P said:
Thank you for the hint. Open Camera is nowhere near my expectation. Its true, that with white balance manually set to Daylight or Cloudy-daylight, the colours are much more alive, but not as much as I would imagine.
Any other idea? It really not possible to transfer the Samsung (S3) camera mode to other device?
Click to expand...
Click to collapse
Tried this?

Categories

Resources