Taking a Photo After Attempting a Failed Unlock Code

954 views
Skip to first unread message

Wayne E

unread,
Apr 19, 2011, 1:18:53 PM4/19/11
to Tasker
Is there a way using Tasker to fire a task (in this case, take a
photo, ideally with the front-facing camera) when a failed attempt to
enter the unlock code is made? Perhaps with a third-party lockscreen
(I haven't seen one that provides callbacks)?

This would be similar functionality to the RedHand app on Mac (http://
download.cnet.com/RedHand/3000-2162_4-10920807.html).

Thanks,
-Wayne

Pent

unread,
Apr 19, 2011, 2:58:37 PM4/19/11
to Tasker
> Is there a way using Tasker to fire a task (in this case, take a
> photo, ideally with the front-facing camera) when a failed attempt to
> enter the unlock code is made?

You mean the keyguard unlock pattern ?

There's an Android callback for failed password entry, not sure if
that applies to the lock pattern as well.

Will put it on todo to check it out.

Pent

Wayne E

unread,
Apr 19, 2011, 4:17:12 PM4/19/11
to Tasker
Pent,

I can't find a good definition, but is the "keyguard" another word for
the default Android unlock screen? If so, then yes. I typically see
either the standard swipe to unlock or the pattern unlock, but I guess
any failed authentication method is the end goal (PIN or password or
some other future method).

Is addressing the front-facing camera specifically possible with
Tasker (i.e. on the Thunderbolt)? I don't have one, but my friend is
getting one and we were looking into some Tasker security options.

Pent

unread,
Apr 19, 2011, 4:57:08 PM4/19/11
to Tasker
> Is addressing the front-facing camera specifically possible with
> Tasker (i.e. on the Thunderbolt)? I don't have one, but my friend is
> getting one and we were looking into some Tasker security options.

Ah yes, missed that bit. I havn't looked recently to see if it's made
it into the Android API but it is on the todo list already.

Pent

Jason

unread,
May 9, 2011, 8:59:36 PM5/9/11
to Tasker
Thank you for considering this! Here is the API for the cameras
(2.3) It would also be nice to http post a picture as well (get a low-
res pic bin64 in a system variable)

------ from http://developer.android.com/sdk/android-2.3.html ----
Multiple cameras support

Applications can now make use of any cameras that are available on a
device, for either photo or video capture. The Camera lets
applications query for the number of cameras available and the unique
characteristics of each.

* New Camera.CameraInfo class stores a camera's positional
characteristics (orientation, front-facing or back-facing).
* New getNumberOfCameras() and getCameraInfo() methods in the
Camera class let applications query for the cameras available and open
the camera that they need.
* New get() method lets applications retrieve a CamcorderProfile
for a specific camera.
* New getJpegEncodingQualityParameter() lets applications obtain
the still-image capture quality level for a specific camera.

To look at sample code for accessing a front-facing camera, see
CameraPreview.java in the ApiDemos sample application.

The Camera API also adds:

* New parameters for cameras, including focus distance, focus
mode, and preview fps maximum/minimum. New getFocusDistances(),
getPreviewFpsRange(), and getSupportedPreviewFpsRange() for getting
camera parameters, as well as setPreviewFpsRange() for setting preview
framerate.





On Apr 19, 4:57 pm, Pent <supp...@apps.dinglisch.net> wrote:
> > Is addressing thefront-facing camera specifically possible with

Pent

unread,
May 10, 2011, 4:36:34 AM5/10/11
to Tasker
> Thank you for considering this!  Here is the API for the cameras
> (2.3)  It would also be nice to http post a picture as well (get a low-
> res pic bin64 in a system variable)

Cool, thanks, hadn't noticed that had slipped in with Gingerbread.

Pent

sfctac

unread,
May 26, 2011, 12:12:18 AM5/26/11
to Tasker
This is a great idea, too bad Thunderbolt is still on 2.2.
Perhaps by the time Tasker gets this feature Thunderbolt will be
updated by HTC.
> > > Tasker (i.e. on theThunderbolt)? I don't have one, but my friend is

sayling

unread,
May 26, 2011, 5:59:03 PM5/26/11
to Tasker
It's a bloody superb idea, particularly if it can then email the
picture somewhere so you can see what git has nicked your phone!
> > > Pent- Hide quoted text -
>
> - Show quoted text -

RogueSpear

unread,
May 27, 2011, 8:03:15 PM5/27/11
to Tasker
If you have WidgetLocker, the 3rd party event for WidgetLocker Unlock
has never failed me. Unfortunately taking a picture from the rear
facing camera is of limited utility.
Reply all
Reply to author
Forward
0 new messages