double tap to take picture - Java for Android App Development

hi all
i am new to android coding but i have a question
right now i'm coding a camera app with gestures my question is
how i could add code that if the user tap once (single tap) on the screen the camera adjust the focus
and when the user tap twice (double tap) on the screen the camera take picture and save it

Related

gestures on the HD

I assume you know the standard gestures which can be used on the HD. Recently i stumbled over a gesture i never heard/read of. Try this:
Open a picture in album viewer, and choose any object of interest you would like to zoom to. Now draw a (almost complete) circle clockwise around the spot, and it will zoom in. Draw a circle counterclockwise and it will zoom out a bit. Double-tap will zoom out completely (ok no surprise here).
Are there any other secrets? Or is it just me not reading the manual?
Yeah, it was in the manual. But the thing I found out watching video on youtube is this:
open picture, zoom, tap on the screen and hold your finger while you wont see in the upper left corner the box which represent the whole picutre, and now you can move with your finger and with your current zoom you can slide through your picture
6Fg8 said:
Are there any other secrets? Or is it just me not reading the manual?
Click to expand...
Click to collapse
It's in the manual. You don't even have to actually 'read' it, you could also just look at the pictures
OMG next time i'll try harder
open picture, zoom, tap on the screen and hold your finger while you wont see in the upper left corner the box which represent the whole picutre, and now you can move with your finger and with your current zoom you can slide through your picture
Click to expand...
Click to collapse
That's a nice find! Thx bondoer
You really do need to read the manual ~ It's all on Page 212
To zoom in or out of an image
While viewing an image, make a full circle motion on the screen with your finger.
Slide your finger counter-clockwise to zoom out. Slide your finger clockwise on an area to zoom in on that area.
Tips
• When you zoom in on an image, double tap the screen to automatically zoom out and fit the image to the screen.
• When you zoom in on an image, tap and hold the screen so you can pan the image.
• When you zoom in on an image, tap the screen to open the on-screen menu.
On the on-screen menu, tap and then select Save Screen Image to save the image on-screen as a new file.
Beards

Tips and Tricks

So I came across this youtube video "20 tips and tricks for the htc one". I actually discovered a few things I didn't know about!
http://www.youtube.com/watch?v=kZsZemJdR48
1. Tap the status bar to scroll to top of blinkfeed/app drawer
2. Swipe from top/bottom to change front/rear camera whilst in the camera app
3. You can split and merge event folders in the gallery
4. You can hold the shutter button when in the camera app to take a burst shot
5. Power button + home (or volume button) takes a screen shot
6. whilst watching a video you can hit the shutter button to take a photo
Some of these may already be widely known, but I didnt know about them and im a pretty long time HTC user.
Does anyone know how to remove the facebook crap from the gallery?
Please feel free to share your tips and tricks here!

Huawei Ascend Mate7 Hidden Functions

I bought the Huawei Acend Mate7 mobile a few days ago and has used it for one week. Today i saw an article about "Huawei Ascend Mate7 18 Hidden Functions", and i have a try, while finding that there are many wrong ways that can't be operated, for example, No.2, 6, 10 and 16 all can't work well. If anyone also got the Mate7, you can try as below:
1. Press the down volume button under the dark screen, you can make a call after hearing the voice and then saying the name on your address book.
2. Quickly press the down volume button for twice under the dark screen and you can take photos.
3. When pulling down the notification bar, pull from the upper-left to the down is the notice, and from the upper-right is the switch.
4. When pulling down the notification bar, if there is news, there won't be the function of the third one, but the notification bar.
5. You can search the applications directly by pulling fron the middle of the screen.
6. Press the down volume button and power key for long it supports screenshots.
7. Slide upper, no need to unlock, then you can change the wallpaper freely, and save the pictures that you loved. Moreover, you can also open the Calendar, Calculator, Flashlight and Camera apps in a quick by just one touch.
8. When under the magazine locking station, you can enter the music interface by double-pressing the screen, and return to the unlock interface by pressing twice again.
9. Clicking the screen when selfie, it will shoot automaticly three seconds later.
10. Under full focus mode, it support take photos first and then focus.
11. You can take pictures by just pulling down in the gallery.
12. Fingerprint camera supported.
13. Mirror function: Blowing to the microphone, fog will appeared on the screen.
14. Blowing once again, and the screen will be disappeared.
15. Pressing the icons in the notification bar for long, it will enter into the relative setting interface automatically.
16. You can change the virtual key combination of the navigation bar in the settings.
17. It can search the bar codes and the two-dimensional code automatically through the camera, clicking the detail and you can have a campare with both the price and the performance.
18. Pressing the camera screen for long, it support dragging the focus frame and metering box, and can adjust the focus with metering points.
Krystyna said:
I bought the Huawei Acend Mate7 mobile a few days ago and has used it for one week. Today i saw an article about "Huawei Ascend Mate7 18 Hidden Functions", and i have a try, while finding that there are many wrong ways that can't be operated, for example, No.2, 6, 10 and 16 all can't work well. If anyone also got the Mate7, you can try as below:
1. Press the down volume button under the dark screen, you can make a call after hearing the voice and then saying the name on your address book.
2. Quickly press the down volume button for twice under the dark screen and you can take photos.
3. When pulling down the notification bar, pull from the upper-left to the down is the notice, and from the upper-right is the switch.
4. When pulling down the notification bar, if there is news, there won't be the function of the third one, but the notification bar.
5. You can search the applications directly by pulling fron the middle of the screen.
6. Press the down volume button and power key for long it supports screenshots.
7. Slide upper, no need to unlock, then you can change the wallpaper freely, and save the pictures that you loved. Moreover, you can also open the Calendar, Calculator, Flashlight and Camera apps in a quick by just one touch.
8. When under the magazine locking station, you can enter the music interface by double-pressing the screen, and return to the unlock interface by pressing twice again.
9. Clicking the screen when selfie, it will shoot automaticly three seconds later.
10. Under full focus mode, it support take photos first and then focus.
11. You can take pictures by just pulling down in the gallery.
12. Fingerprint camera supported.
13. Mirror function: Blowing to the microphone, fog will appeared on the screen.
14. Blowing once again, and the screen will be disappeared.
15. Pressing the icons in the notification bar for long, it will enter into the relative setting interface automatically.
16. You can change the virtual key combination of the navigation bar in the settings.
17. It can search the bar codes and the two-dimensional code automatically through the camera, clicking the detail and you can have a campare with both the price and the performance.
18. Pressing the camera screen for long, it support dragging the focus frame and metering box, and can adjust the focus with metering points.
Click to expand...
Click to collapse
You can also switch between the 2 most recent apps without going into the multitasking screen. Hold down the multitasking/appswitch button on the navigation bar for a second or so and it'll switch to the previous app, pressing again will take you back to the app you just had open
Sent from my HUAWEI MT7-TL10 using XDA Free mobile app
You can make your external SD card the default location for downloads, pics, app data by going to Settings>Storage>Default location>SD card.
Supports NTFS formated disks through OTG adapter out of the box.
PS. My samsung note 2 didn't, whetever I tried when on android 4.4.2 even with custom kernel.

Double tap action on HOME button = lag?

Anyone has programmed a "Double tap action" on the HOME button ?
Don't you notice some "lag" when touching only one time the HOME button?
I know it has to wait to seek if a second tap is coming but I think it waits too much time!
Disabling "Double tap action" on the HOME button makes HOME button very fast as expected!
I also facing this issue
Yeah, I noticed this issue, too.
I've disabled the double tap action because of that.
we decide didn't use it until this issue has been solved
It's because of the method double tap works. Everytime you press the home button, phone is waiting on second response. This same thing has happened on cyanogemod/lineage for as long as I can remember across all my devices...
MrWilsonxD said:
It's because of the method double tap works. Everytime you press the home button, phone is waiting on second response. This same thing has happened on cyanogemod/lineage for as long as I can remember across all my devices...
Click to expand...
Click to collapse
On my previous 3T I did not noticed it!
jvidia said:
On my previous 3T I did not noticed it!
Click to expand...
Click to collapse
I'm willing to bet it was there lol.
Can't do the test ... sold it
3t user here..
I can confirm exact the same behaviour if you set an action for double tap....home button is not so responsive on single tap .
That delay has to be there, it's by design.
If you assign a double tap action to any button, after the first tap, there's a delay that results from the system waiting for the second tap, if this second tap is recognized, it performs the assigned action, if not, it performs the regular single tap action.
It there wasn't that delay in there, every single double tap action would be immediately preceded by the single tap action, which would be very very much annoying.
For example, home button - single tap is return to home. If we assigned a double tap to, let's say, turn on the flashlight, without the delay, the process would go like this:
- You're inside an app and want to turn on the flashlight,
- Double tap the home button
- Because there's no delay, you would immediately be taken to the home screen (single tap action) and only then the flashlight would turn on (double tap action).
That's NOT how it should behave at all.
So, in conclusion, you either have to live with a short delay when assigning double tap actions to buttons or disable the double tap action and have no delay.
Note: this delay is present not only for double tap actions on the HOME button but also for the RECENTS and BACK button.
Note 2: this delay is present in EVERY single ROM that has this ability to assign double tap actions to physical buttons (not just OOS).
Personally, I just turn off the double tap action and use longpress instead, there's no delay that way.
Double Tap Options all off!
Case closed.
But but why there is no delay when you press the multitasking button? . That has also a default double tap for quick switch (alt tab) to previous app!
.. but as soon as you customize the double tap of this button you get a delay!
It must have something to do with the finger print scanner function on the home button too.
But the delay is present on all 3 capacitive buttons if you put a custom double tap action.. so i don't think it has anything to do with fingerprint sensor, more of a deliberately action of an increased timeout.
Well.. hope they will decrease the timeout or at least make it customizable
Do you notice it on the back button? I tested and it seems no different.
Yes i notice it on back button too. Just retested.
No double tap - instant. Custum double tap - delay
Yup! I also confirm know.
I was using double tap on home / back to turn off the screen.
Just changed to long press.
No lag now and same objective done!
isnt there a prob setting or so to adjust the delay ?

Possible to clone stock camera on OOS 10?

Hi, i have stock OOS 10 and I am looking for a way to clone the stock camera app (mine is ver 3.0.66) so that i can have a "duplicate" stock camera.
I´m trying to have a duplicate camera so that i can deactivate the main one, thus making it impossible to access it from the lock screen (bottom right corner).
I have tried using App Cloner but the cloned camera doesn't seem to work properly, as some features are not available (such as 1080p 60fps video recording, portrait photos, google lens, and some other settings). I tried playing a little bit with the options but i really have no idea what mos of those are for.
I like the stock camera, it does more than enough for what I want so moving to another one is not an option. Does anyone know how can i properly clone it, or maybe someone can upload a cloned APK ready-to-install?
Thanks in advance!
gonzule said:
Hi, i have stock OOS 10 and...
Click to expand...
Click to collapse
No interest... Why do complicate when you can do simple
Just use Gesture for Run OOS Cam from the Double Tap bouton ON/OFF
Settings > Button & gestures > "Quickly turn on camera"
(press power button twice for camera)
or
Settings > Button & gestures > Quick gestures > Screeen of Gestures
(Choose a "Draw O/V/S/M/W" shortcut for launch camera, advise the O, gesture is quick and simple)
Pho3nX said:
No interest... Why do complicate when you can do simple
Just use Gesture for Run OOS Cam from the Double Tap bouton ON/OFF
Settings > Button & gestures > "Quickly turn on camera"
(press power button twice for camera)
or
Settings > Button & gestures > Quick gestures > Screeen of Gestures
(Choose a "Draw O/V/S/M/W" shortcut for launch camera, advise the O, gesture is quick and simple)
Click to expand...
Click to collapse
Thanks, and I'm already doing that, but what I'm trying to do is get rid of the camera shortcut icon on the bottom right corner without having to root. If i disable stock camera, then that shortcut disappears, but I'm left without a camera, and i really like the stock one, that's why i want to clone it with a different package name

Categories

Resources