Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,813,752 Members 39,728 Now Online
XDA Developers Android and Mobile Development Forum

[App] Yay my first app called SmartLock 0.1

Tip us?
 
tarantula78
Old
(Last edited by tarantula78; 4th July 2010 at 12:55 AM.)
#1  
Member - OP
Thanks Meter 5
Posts: 79
Join Date: May 2008
Default [App] Yay my first app called SmartLock 0.1

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, 770 views)
The Following User Says Thank You to tarantula78 For This Useful Post: [ Click to Expand ]
 
LordVarkson
Old
#2  
Member
Thanks Meter 0
Posts: 36
Join Date: Aug 2008
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
Touch Diamond 2, Energy Rom MaxSense
 
tarantula78
Old
#3  
Member - OP
Thanks Meter 5
Posts: 79
Join Date: May 2008
Quote:
Originally Posted by LordVarkson View Post
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.
 
LordVarkson
Old
#4  
Member
Thanks Meter 0
Posts: 36
Join Date: Aug 2008
Ok thanks well if you find a way to port it to HTC I would definetly use it.
Touch Diamond 2, Energy Rom MaxSense
 
tarantula78
Old
#5  
Member - OP
Thanks Meter 5
Posts: 79
Join Date: 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 .
 
LordVarkson
Old
#6  
Member
Thanks Meter 0
Posts: 36
Join Date: Aug 2008
Through the power of search
I hope this works for you http://www.koushikdutta.com/2008/07/...ensor-sdk.html
Touch Diamond 2, Energy Rom MaxSense
 
zole2112
Old
#7  
zole2112's Avatar
Senior Member
Thanks Meter 42
Posts: 597
Join Date: Oct 2008
Location: Wisconsin

 
DONATE TO ME
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!
HTC One - ATT - Bootloader Unlocked, Rooted, S-OFF, Super CID, Carrier Unlocked and set free!
***Bootloader unlocked before activating on ATT! Bahahhahahhaaaa

Insertcoin 6thSense + Bulletproof
 
Eskilden
Old
#8  
Junior Member
Thanks Meter 0
Posts: 22
Join Date: Mar 2009
Interesting stuff! I'll be updating this. As soon as it's HTC compatible, I'll be testing it
 
TJ!
Old
#9  
Member
Thanks Meter 6
Posts: 33
Join Date: Oct 2009
Location: Trondheim
Very interesting.

Hoping to see an HTC enabled version soon
 
msra6la2
Old
#10  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Dec 2008
Location: Stockport
how much ram does it take?

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

Advanced Search
Display Modes


Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more

Create a Simple Custom Launcher from Scratch

When you are starting your journey intoany sort of development, it’s never easy at the … more

MediaTek Continues Steps Towards Being Developer-Friendly

Not too long ago MediaTek was very closed off towards the mobile developer … more