FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

[App] Yay my first app called SmartLock 0.1

79 posts
Thanks Meter: 5
 
By tarantula78, Member on 4th July 2010, 12:50 AM
Post Reply Subscribe to Thread Email Thread
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:	1457
Size:	87.4 KB
ID:	354213   Click image for larger version

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

Name:	3.jpg
Views:	1058
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 12:55 AM.
The Following User Says Thank You to tarantula78 For This Useful Post: [ View ]
 
 
9th July 2010, 06:38 AM |#2  
Member
Thanks Meter: 0
 
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, 09:18 PM |#3  
OP Member
Thanks Meter: 5
 
More
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, 05:17 AM |#4  
Member
Thanks Meter: 0
 
More
Ok thanks well if you find a way to port it to HTC I would definetly use it.
10th July 2010, 08:24 AM |#5  
OP Member
Thanks Meter: 5
 
More
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, 09:33 AM |#6  
Member
Thanks Meter: 0
 
More
Through the power of search
I hope this works for you http://www.koushikdutta.com/2008/07/...ensor-sdk.html
12th July 2010, 02:31 AM |#7  
zole2112's Avatar
Senior Member
Flag Wisconsin
Thanks Meter: 45
 
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, 04:02 AM |#8  
Junior Member
Thanks Meter: 0
 
More
Interesting stuff! I'll be updating this. As soon as it's HTC compatible, I'll be testing it
12th July 2010, 11:11 AM |#9  
Member
Flag Trondheim
Thanks Meter: 6
 
More
Very interesting.

Hoping to see an HTC enabled version soon
12th July 2010, 03:52 PM |#10  
Junior Member
Flag Stockport
Thanks Meter: 0
 
More
how much ram does it take?
13th July 2010, 01:07 AM |#11  
Trekfan422991's Avatar
Senior Member
Flag fonda
Thanks Meter: 357
 
Donate to Me
More
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

im graphic designer as well so hit me up if need some help ... also cant test as i have td2 as well.. sorry

Read More
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