Hello Everybody,
I'm developing an android application which uses the front camera.
As the Android SDK doesn't supoprt it natively, I need to fint the register name which tells the system to use the front camera. Unfortunately, I do not know how this parameter is called. Does anyone can help me?
btw, As I do not have an HTC Evo If anybody can help me by testing my app on its HTC evo, it will helps me a lot.
Many thanks in advance,
Best regards.
ill test if you tell me what the app does/is for
chikenkilr said:
btw, As I do not have an HTC Evo If anybody can help me by testing my app on its HTC evo, it will helps me a lot.
Many thanks in advance,
Best regards.
Click to expand...
Click to collapse
All I could think of was some of the CraigsList replies I get that want my item shipped to Africa.
GL with your app, hope it's a fun one, not enough stuff uses the front camera yet.
Hi,
many thanks for your answer and your help.
My app is quite simple, it acts as a mirror by displaying the front camera in full screen (it crops left and right parts of the picture in order to maximise the picture surface.
My app is avaiblable in the android market under the name : MagicMirror-Lite
I get some feedbacks that my app does work on Evo devices.
Before adding other features (such as zoom and so on), I would like to get first quite a reliable app which works on most of terminals (which have a front camera of course).
Pao23 said:
GL with your app, hope it's a fun one, not enough stuff uses the front camera yet.
Click to expand...
Click to collapse
I think the same, but as there is no explicit command in the android SDK which allows to use the front camera, I first need to get a reliable way to use front cams.
chikenkilr said:
Hi,
many thanks for your answer and your help.
My app is quite simple, it acts as a mirror by displaying the front camera in full screen (it crops left and right parts of the picture in order to maximise the picture surface.
My app is avaiblable in the android market undre the name : MagicMirror-Lite
I get some feedbacks that my app does work on Evo devices.
Before adding other features (such as zoom and so on), I would like to get first quite a reliable app which works on most of terminals (which have a front camera of course).
Click to expand...
Click to collapse
I like that bro im in on that! Givein that app a go thanx!!
Sent from my 1.2 HP EVO
explicit command in the android SDK which allows to use the front camera
Click to expand...
Click to collapse
The Cyanogen team has the front facing commands figured out.
Also, these guys do too http://www.popcrowd.com/
Maybe one would be willing to share or you could take a peak at their code.
Hi everybody,
Many thanks for your inputs.
If I made everything right, my application should now work on Sprint devices.
I uploaded a new version of the application. So, if you can test it on yours, it will be very helpful for me.
Cheers!
It uses the main camera on the EVO not the front one like you want.
Sorry.
Image is also turned 90 degrees...
For the rotation this is normal as the rear camera is rotated to 90° compared to the front camera (in order to use the rear camera in landscape mode and the front camera in portrait mode).
Ok well it still uses the wrong camera.
Looks promsing though.
Many thanks,
and before adding more sexy-features (like pinch zoom, or picture grabbing...) I want first to make sure my app is compatible with most mobile devices.
(If you have features ideas, do not hesitate )
Cool.
I'll test it again once you see about using the front camera.
I think I found what was wrong,
in the manifest file, I added:
<uses-library android:name="com.sprint.hardware.twinCamDevice" android:required="false"/>
I hope that this will make the things goes right for Sprint users without generating bugs for non-Sprint users.
how about make a video chat app that works all the time
chikenkilr said:
I think I found what was wrong,
in the manifest file, I added:
<uses-library android:name="com.sprint.hardware.twinCamDevice" android:required="false"/>
I hope that this will make the things goes right for Sprint users without generating bugs for non-Sprint users.
Click to expand...
Click to collapse
It works with the front camera now but you still need to rotate the image 90degress. I don't see why anyone would want a mirror that the reflection is sideways!
You're completely right, if picture is rotated, it is completely useless. ^^
What is that for the samsung Epic, picture owns the right orientation.
Futhermore, picture should be distorded on your Evo device?
Last question, I must rotate picture in clockwise or in counter-clockwise?
It works on my evo
You need to rotate image 90 degrees clockwise...no matter how I turned the phone the imageit displayed was turned facing 9 o'clock...
Keep working at it!
Swyped from an HTC Evo on MetroPCS...
Yep, me too. The top of my head points to the left no matter how I hold the camera. It 'IS' working with the front camera though.
I'm just beginning to test the front facing camera on my Evo too with some code. I 'think' I read that the Sprint library has to be included in the manifest (to enable the front camera); however, they say the app will not load on phones that don't have this library. that seems pretty severe. Anyone tested that out ?
It would be nice to make apps that use the front camera if possible but still use the regular cam if the front one's not available.
Hi rufus,
Yes the library must be loaded, but, as I mentioned above, you must add the :"android:required="false". So if the library exists, it will be loaded and if not, it doesn't mattre. But you need to add in your source a test to check if the library exists or not. It is explained in the sprint sdk.
Ok I'll add a test on my program add add a rotation if detected phoe is an HTC evo.
Is the ratio of the picture ok or not?
The ratio of the picture is good, but I assume once it's rotated 90 degrees, it wont' be. It's still rotated 90 counterclockwise...the top of my head is at the left.
Hey guys!
I tried to install 3D Live Wallpaper and well... it installed (on my xperia mini pro it didn't cos it lacks gyroscope) but it didn't work at all.... I also tried checking with Android Sensor Box from the Play Store and it didn't detect the Gyroscope so... Does this device actually has one? Could you please post your available sensors screen fromn Android Sensors Box? I'm scared my device is actually defective...
Thanks in advance!
Same here...accelerometer only.
Sent from my SM-T210 using xda app-developers app
Nope just accelerometer, light sensor, magnetic, sound, and orientation sensors. No gyro
I guess everybody thought this had gyro (even some serious tech websites) but checking on Samsung's website and some more recent specs, I learned that there's actually no gyro for any Galaxy Tab 3 7.0... Thanks for checking anyway
New Post
Have to post 10 times before posting in developer threads, using old threads to make random posts.
Hi guys, I just got my oneplus 5T today and i want to talk to you about the quality of the photos of this phone and how this camera setup is helping or not ?
For me, it's a waste of the second camera slot to use this "night camera module" ...
First of all i don't see the diference (using the pro mode and switch between the twos) and second, there is no other functions of the phone that use this second camera to improve anything (at least it shoud he use to combine two photos and result in a better pixel quality but since they have the same lens i don't think this helps either)
So what do you think guys ?
prologikus said:
Hi guys, I just got my oneplus 5T today and i want to talk to you about the quality of the photos of this phone and how this camera setup is helping or not ?
For me, it's a waste of the second camera slot to use this "night camera module" ...
First of all i don't see the diference (using the pro mode and switch between the twos) and second, there is no other functions of the phone that use this second camera to improve anything (at least it shoud he use to combine two photos and result in a better pixel quality but since they have the same lens i don't think this helps either)
So what do you think guys ?
Click to expand...
Click to collapse
In my opinion, I think they should implement the same feature as the essential phone. Using both cameras to create on single and good looking picture. If they can, they could make the main lens take all the details of the image and make the 2nd lens take all of the light and then somehow merge both images to create a perfect one.
Probably never going to happen though......
Colday96 said:
In my opinion, I think they should implement the same feature as the essential phone. Using both cameras to create on single and good looking picture. If they can, they could make the main lens take all the details of the image and make the 2nd lens take all of the light and then somehow merge both images to create a perfect one.
Probably never going to happen though......
Click to expand...
Click to collapse
They can't do it now because "the black and white sensor has had its top layer’s color filter removed. Without it, the sensor is unable to capture color, but its ability to capture light increases by 3x. This is especially helpful with low-light environments."(qualcomm clear sight)
prologikus said:
They can't do it now because "the black and white sensor has had its top layer’s color filter removed. Without it, the sensor is unable to capture color, but its ability to capture light increases by 3x. This is especially helpful with low-light environments."(qualcomm clear sight)
Click to expand...
Click to collapse
I guess we'll just have to wait for oneplus to release an update improving their camera's performance.....
Or if you look online, you might be able to find a ported google camera with hdr+
Hi all,
I want to know if. There's any application can help me. To. Run. Only second camera because my rear camera not work anymore when t check test manual by using code *#*808# i found only second camera work or if possibility to create shortcut of working camera to take photo iam waiting your help many thanks
ilyasking said:
Hi all,
I want to know if. There's any application can help me. To. Run. Only second camera because my rear camera not work anymore when t check test manual by using code *#*808# i found only second camera work or if possibility to create shortcut of working camera to take photo iam waiting your help many thanks
Click to expand...
Click to collapse
I dont know about setting a shortcut, but you can choose the lens by entering *#*#1597#*#* in the dialer and then double tapping the screen to switch between lenses.
Hello, everyone. I am a Mate 20 X owner and I am trying an interesting experiment. The Honor View 20 has an interesting software trick that not even the Mate and P30-Series have. AI Ultra-clear mode takes several 48MP exposures into one high quality 48MP photo. In theory, the Mate 20 and P30 series should be better suited for AI Ultra-clear mode since the sensors are more powerful than the IXM586 on the Honor View 20 and 40MP photos should be a bit easier to process than the 48MP. The P30 Pro in particular should be well suited because its RYYB sensor collects 40% more light and is optically stabilized. The theory is to create photos with a quality that's higher than what is expected from a smartphone. Of course this could all fall flat and the app will crash upon launch. But this is XDA, nothing ventured, nothing gained!
I have looked all over the net, but I could not find a camera Apk for the Honor View 20. I am hoping that a Honor View 20 owner would be kind enough to send me the apk for this experiment. If it works, I would also like if some P30 Pro owners would join me in this experiment. Thanks so much!
Was looking for this aswell. P30 Pro owner here.
The SuperSpectrum sensor on your P30 Pro, in theory, should produce outstanding results. Hopefully someone would be able to help us out.
https://mega.nz/#!2RVDVALS!P3K_8OXsjl7cHuslsK3nqcEniXJEple522bkr1H8yj8
flamery said:
Thanks for the share. But without an experienced developer we will not be able to run it. For Huawei devices it is treated like an update to the existing camera app.
I tried it several times with App clone, and even made it to Install, but it crashes after wanting the permission for localisation. I guess someone would have to Mod it. I would If I could.
Click to expand...
Click to collapse
steiner93 said:
flamery said:
Thanks for the share. But without an experienced developer we will not be able to run it. For Huawei devices it is treated like an update to the existing camera app.
I tried it several times with App clone, and even made it to Install, but it crashes after wanting the permission for localisation. I guess someone would have to Mod it. I would If I could.
Click to expand...
Click to collapse
Not only camera you also need libraries inorder to get the camera working.
To find what libraries are missing run logcat while opening the camera.
Click to expand...
Click to collapse
Would be great if somebody with the ability could look into this!