Now Gesture Tweaks Replaces Google Now with Custom Action

On most modern Android devices with software navigation keys, swiping up from the … more

ToqAN Fixes Android 5.0 Notification Bug on Qualcomm Toq

The Qualcomm Toq is probably one of the lesser known smartwatches on the market … more

How to Root and Unlock the Google Nexus 6 on a Mac – XDA TV

In the past, XDA Developer TV Producer droidmodd3rx has shown you how to … more

Set Up Your MediaTek Device with Comprehensive Beginner’s Guide

As can be seen with the use of MediaTek chips in Android One devices … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[App] Yay my first app called SmartLock 0.1

OP tarantula78

4th July 2010, 01:50 AM   |  #1  
OP Member
Thanks Meter: 5
 
79 posts
Join Date:Joined: May 2008
Hi all!

Ive been taking stuff from the XDA-Dev Community for a long time so I thought while I learn C# Programming ill post my Apps up here (as a means of giving something back and having a fresh supply of guinea pigs heh heh heh). Anyway this is ver 0.1 and i am a beginner so use with caution.

Also I only just finished it so I would like to hear about feature requests if possible. ANNDD i made this using the Samsung SDK so i dont know which fones it will work with i doubt it will work with HTC as it uses the light sensor (the only thing used from it). So if someone wants to share with me the code on how to read the HTC light sensor (get the Lumens) then I can make it dual compatible .

Anyhoo this is the point of the app: I dont like to lock my phone with the password all the time as i usually listen to MP3s and I dont like the fact that my fone (i8000) sometimes unlocks the screen on receiving a message or email etc. The worst thing is when youre walking and happily listening to your MP3s and then suddenly you hear beeps from your phone as it presses against your leg!

If i lock it i have to put a password on it if i dont lock it sometimes the End Key gets pressed and turns the screen on or some event on the phone turns the screen on and then you have to dig it out your pocket and the Sleeve of the phone and close it again.

Maybe its just me but it bugs me very much.

So what this app does is when the screen is turned on in low light surroundings it presents another lock screen. As im not very good with graphics (i dont even have a program icon ) etc its just three buttons. The first is displayed at the top, tap it show the second and then the third and then it becomes unlocked and you can use it as normal. So next time you receive a message it wont be bugging you that your fone may be making a phonecall or typing gibberish to someone in your address book and so you can listen to your mP3's in peace.

Attached are screen shots of the proggie and the CAB file to install.

Please give me Feature suggestions and other App suggestions im hoping to be fluent in C# before summer is over.

PS: Im testing the app myself so im not sure about battery life etc. I didnt use polling of the screen power state rather i used the Power Notifications and the message queue method.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	1453
Size:	87.4 KB
ID:	354213   Click image for larger version

Name:	2.png
Views:	1180
Size:	86.0 KB
ID:	354214   Click image for larger version

Name:	3.jpg
Views:	1054
Size:	20.5 KB
ID:	354215  
Attached Files
File Type: cab StayLocked.CAB - [Click for QR Code] (23.0 KB, 774 views)
Last edited by tarantula78; 4th July 2010 at 01:55 AM.
The Following User Says Thank You to tarantula78 For This Useful Post: [ View ]
9th July 2010, 07:38 AM   |  #2  
Member
Thanks Meter: 0
 
36 posts
Join Date:Joined: Aug 2008
More
Looks cool, I would test it but I have a HTC phone so I cant . Just one question, how would you go about handling this in the dark, will it just lock or is there some way to quickly switch it off on unlock?
Also, if you want some buttons made, pm me I am a graphic design student and would have no trouble doing it for you
9th July 2010, 10:18 PM   |  #3  
OP Member
Thanks Meter: 5
 
79 posts
Join Date:Joined: May 2008
Quote:
Originally Posted by LordVarkson

Looks cool, I would test it but I have a HTC phone so I cant . Just one question, how would you go about handling this in the dark, will it just lock or is there some way to quickly switch it off on unlock?
Also, if you want some buttons made, pm me I am a graphic design student and would have no trouble doing it for you

In the dark the three buttons will appear on the screen and you have 10 seconds to press them. Once those buttons are pressed you can use the phone until you lock it again by turning the screen off (not the full Pass Code to lock but just turning the screen off with a quick press). This way if you turn the fone on in a dark room you still have the ability to use it. However if it accidently turns on in your pocket the same three buttons are shown but after 10 seconds it will turn back off.
10th July 2010, 06:17 AM   |  #4  
Member
Thanks Meter: 0
 
36 posts
Join Date:Joined: Aug 2008
More
Ok thanks well if you find a way to port it to HTC I would definetly use it.
10th July 2010, 09:24 AM   |  #5  
OP Member
Thanks Meter: 5
 
79 posts
Join Date:Joined: May 2008
Its not so much a major port I just dont have an HTC Device to test it on and the only thing i need is the api to get a value from the light sensor if you can find me that i can put an HTC version in one second .
10th July 2010, 10:33 AM   |  #6  
Member
Thanks Meter: 0
 
36 posts
Join Date:Joined: Aug 2008
More
Through the power of search
I hope this works for you http://www.koushikdutta.com/2008/07/...ensor-sdk.html
12th July 2010, 03:31 AM   |  #7  
zole2112's Avatar
Senior Member
Flag Wisconsin
Thanks Meter: 44
 
608 posts
Join Date:Joined: Oct 2008
Donate to Me
More
I need an app like this, my wife hates it when my HD2 pocket dials her. If you can make it compatible with HTC I'll be all over it! Nice job!
12th July 2010, 05:02 AM   |  #8  
Junior Member
Thanks Meter: 0
 
22 posts
Join Date:Joined: Mar 2009
Interesting stuff! I'll be updating this. As soon as it's HTC compatible, I'll be testing it
12th July 2010, 12:11 PM   |  #9  
Member
Flag Trondheim
Thanks Meter: 6
 
33 posts
Join Date:Joined: Oct 2009
More
Very interesting.

Hoping to see an HTC enabled version soon
12th July 2010, 04:52 PM   |  #10  
Junior Member
Flag Stockport
Thanks Meter: 0
 
12 posts
Join Date:Joined: Dec 2008
More
how much ram does it take?

Post Reply Subscribe to Thread

Tags
auto lock, light lock, lock, sensor, sensor lock
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes