android
  #1  
Old 03-17-2010, 03:26 AM
ThievingSix ThievingSix is offline
Member
 
Join Date: Aug 2008
Posts: 218
Default (Zen Lock) - Accelerometer Based Lock

I didn't feel motivated to work on my Tower Defense game tonight so I made this instead.

Basically it's an application that if the Zen is moved it will sound an alarm. Someone requested it in the Application suggestion thread and it sounded like fun.

It has 2 drawbacks. First is that if you have headphones plugged in you can't output to the speaker. So you must have the headphones unplugged if you want this to work. (Yes I tried audio.channel()). The other drawback is if the player goes into lock or sleep mode(more than 5-10 minutes) the application won't work.

Note: If the alarm goes off or not you hold the home button to disable the application.

Attached Files
File Type: zip (Zen Lock).zip (228.7 KB, 827 views)
__________________
Only ONE more functions in the Wiki need addressing!
Zen X-Fi2 LUA Wiki
Want to protect your applications? Click Here!
Tower Defense Thread
Zen Lock - Protect Your Zen!
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 03-17-2010, 06:03 AM
keirien keirien is offline
Junior Member
 
Join Date: Feb 2010
Posts: 39
Default

Awesome
Reply With Quote

  #3  
Old 03-17-2010, 11:07 AM
RobertsAccount's Avatar
RobertsAccount RobertsAccount is offline
X-Fi2 App Master
 
Join Date: Jan 2010
Location: UK
Posts: 310
Default

Very nice! Make sure you upload it to Xeroo.net if you haven't already! Nice work ThievingSix.
Reply With Quote

  #4  
Old 03-17-2010, 04:26 PM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

very nice, i like the sound lol
Reply With Quote

  #5  
Old 03-24-2010, 09:51 AM
blikbier's Avatar
blikbier blikbier is offline
Junior Member
 
Join Date: Feb 2010
Location: Netherlands
Posts: 98
Default

ThievingSix@ ,Can I get the code?
Reply With Quote

  #6  
Old 03-26-2010, 03:58 AM
echolife echolife is offline
Junior Member
 
Join Date: Mar 2010
Posts: 1
Default

it didn't work
Reply With Quote

  #7  
Old 03-26-2010, 04:09 AM
Tetrajak Tetrajak is offline
Member
 
Join Date: Feb 2010
Location: Oceania
Posts: 124
Default

Quote:
Originally Posted by echolife View Post
it didn't work
It hasn't been updated for the most recent firmware yet. You'll have to wait until ThievingSix updates it.
Reply With Quote

  #8  
Old 04-02-2010, 11:48 AM
blikbier's Avatar
blikbier blikbier is offline
Junior Member
 
Join Date: Feb 2010
Location: Netherlands
Posts: 98
Default

Can I get the code?
Reply With Quote

  #9  
Old 04-02-2010, 03:25 PM
Mr Wunderbar's Avatar
Mr Wunderbar Mr Wunderbar is offline
Junior Member
 
Join Date: Jan 2010
Posts: 93
Default

it could do with being a bit more sensitive, i don't know how much of that is just the zen itself
__________________
If anyone wants to teach me a bit of lua, feel free.

~Mr Wunderbar
Reply With Quote

  #10  
Old 05-01-2010, 12:55 PM
samuelng12 samuelng12 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Default

Well i use for mine zen.. it hangs..
Reply With Quote

  #11  
Old 05-01-2010, 03:25 PM
Brett_val's Avatar
Brett_val Brett_val is offline
Senior Member
 
Join Date: Jan 2010
Location: The Netherlands
Posts: 636
Default

Quote:
Originally Posted by samuelng12 View Post
Well i use for mine zen.. it hangs..
There is nothing wrong with the application. Which firmware are you running? It hasn't been updated for Firmware 1.12.08 and 1.20.08 I guess:

Quote:
Originally Posted by Tetrajak View Post
It hasn't been updated for the most recent firmware yet. You'll have to wait until ThievingSix updates it.

Last edited by Brett_val; 05-01-2010 at 03:50 PM.
Reply With Quote

  #12  
Old 05-02-2010, 01:51 AM
samuelng12 samuelng12 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 2
Default

Quote:
Originally Posted by Brett_val View Post
There is nothing wrong with the application. Which firmware are you running? It hasn't been updated for Firmware 1.12.08 and 1.20.08 I guess:

my version is 1.20.08.
Reply With Quote

  #13  
Old 12-29-2010, 03:11 AM
kmalhotra256 kmalhotra256 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 11
Default

it didnt work i am using 1.22.03
Reply With Quote

  #14  
Old 12-29-2010, 06:56 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Quote:
Originally Posted by kmalhotra256 View Post
it didnt work i am using 1.22.03
Then it won't work, this application isn't compatible with such a new firmware.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #15  
Old 01-04-2011, 10:02 AM
the dead guy the dead guy is offline
Junior Member
 
Join Date: Jan 2011
Posts: 3
Default

Can you please update this. it seems like a cool app and its a shame we cant use it
Reply With Quote

  #16  
Old 01-04-2011, 03:27 PM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default

If i can get ahold of the source ( or if someone would like to decompile it ( currently my decompiler is not working right)) then i will change the accelerometer to work with the newest version
Reply With Quote

  #17  
Old 01-04-2011, 05:39 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

Quote:
Originally Posted by jbob182 View Post
If i can get ahold of the source ( or if someone would like to decompile it ( currently my decompiler is not working right)) then i will change the accelerometer to work with the newest version
Why? Such a thing like this should be pretty easy to make from scratch, it's not very complicated. Unless of course I'm underestimating the inaccuracy of the accelerometer and the length you have to go to to make it stable.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #18  
Old 01-04-2011, 06:44 PM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default

I would'v liked the source just because it would be alot simpliar to change a couple lines.

Anyway i finished a new version , the player make a noise at a high frequency when moved now, i am just tweeking the accelermeter right now, when finished i will upload it.

-----------------------------------------------------------------------

Oh and by the way it is pretty loud.
Attached Files
File Type: zip (Lock).zip (177.8 KB, 50 views)

Last edited by jbob182; 01-04-2011 at 07:03 PM.
Reply With Quote

  #19  
Old 06-26-2011, 06:50 AM
jameswalker101 jameswalker101 is offline
Junior Member
 
Join Date: Jul 2010
Location: United Kingdom
Posts: 91
Default

it doesn't work on my Zen... :-(

is it possible to update it for the latest firmware?
__________________
Apps: Guitar Tuner- http://anythingbutipod.com/forum/showthread.php?t=61049

Last edited by Habhome; 06-26-2011 at 07:50 AM. Reason: Double posting
Reply With Quote

  #20  
Old 06-26-2011, 07:51 AM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,079
Default

It should very well be possible to do it, I don't have the source code though, but I think jbob might, above post suggests he at least has modified it once before.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 10:50 PM.