[Q] Force Closed When Subtracting - Android Software Development

For some reason my program closes when this command is ran.
let a represent 50
let b represet 32
yes i already have variables set up.
Code:
textOutcome.setText(50 - 32);
Everythine is imported and varables are set. but it force closes on that command and im 100% sure of it.
Can Any one atleast solve this issue?

I would need to see a little more of the code, but my guess is that textOutcome is not available.
Make sure you set your view before you try to use one of the components on it.
example:
this.setContentView(R.layout.view);
should come before you try to use a component in the view.

xsxbluexsx said:
For some reason my program closes when this command is ran.
let a represent 50
let b represet 32
yes i already have variables set up.
Code:
textOutcome.setText(50 - 32);
Everythine is imported and varables are set. but it force closes on that command and im 100% sure of it.
Can Any one atleast solve this issue?
Click to expand...
Click to collapse
You're setting a text field to an integer. I'm surprised it compiles. Try:
Code:
textOutcome.setText(String.valueOf(50-32));

textOutcome.setText(String.valueOf(50-32));
Worked thanks And thank you Curroptor i checked and i had the view set. but thank you so much to gene poole!

Related

[new release] RunEveryday - Updated to v1.1

The missing Task Scheduler known from Windows XP!
RunEveryday 1.1 is done! It has:
1) a GUI, easily manage your scheduled tasks
2) Improved notification re-scheduler (old one proved to be kind of buggy)
3) Optionally force device to wakeup (as some programs need this to operate properly)
4) Under the hood, much improved code, easier bug fixing & updates in the future
no more need to use another program to setup the parameters etc. etc, just startup the app without any parameters, and you will be presented with a config dialog. in addition, you should remove any old entries within the notification database before using this new one (they are incompatible).
Everything should wotk MUCH better with this one. but still a few known issues:
1) When changing the system date, and you skip over a day, RunEveryday will get out of sync and stops working propperly. Work around: Start RunEveryday, and without changing anything, press the "Apply" button. this will correct all time/date stamps in the notification database.
2) For now, there can't be any spaces within the filename. Spaces within the directory name are oke though. THis is because I needed to seperate the Full path file name with any command line options, otherwise CreateProcess wouldn't work propperly. (Will be fixed in next version)
3) Keyboard doesn't popup when trying to enter text in the Command line. Workaround: select other program which has keyboard support first, then open RunEveryday, so you can openup the SIP yourself. This will be fixed in next version.
Compatibility: WM2003, WM5, WM6, QVGA, VGA and Square (240x240). in Other words: all recent devices
That's it! if there's any additional problems, I'd like to hear about them.
////////////////////////////////////////////////////////////////
// Text Below is outdated
Older version 1.0 usage:
A command driven app that will maintain itself within the notification database which will execute its params as a program.
for example, run:
\Program Files\RunEveryday.exe \Windows\prog.exe anyparams
this will basically execute \Windows\prog.exe anyparams
but it will register to start the same app with same params again in 24 hours, when it runs next time, it will delete the entry, and schedule again in another 24 hours, and so forth.
With an application like TaskMan you can easily see the notification entry this prog makes, and change it's time-schedule. (in other words, manage this app)
Also, creating a new entry with TaskMan, is really simple, make a CNT_TIME event, point it to RunEveryday.exe, and the application to run as it's params, and it's all set!
// Text Above is outdated
////////////////////////////////////////////////////////////////
My personal usage:
I have a task running every day at 23:00 -> turn radio off (with Vijay's app)
and a task in the morning 09:30 -> turn radio back on
But ofcorse you can use it for many other things! be creative!
Update to v1.1: Some people reported that they couldn't run the app because of some missing libraries. This probabbly goes for most of you WM2003 users: You need a static linked version, which I now have included below. Also, if you happen to get a message like "Cannot find ‘RunEveryday’ (or one of its components)", please try using the static linked version.
nnnnnnnniiiiiiiiiccccccccceeeee.. very niiiicccceee. Nicest thing that happened after the sad sad removal of ROMs... I'm soooo *touched..
UPDATE: Btw, an idea, for your next upgrade.. that is to add a day-of-the-week scheduling feature that is able to schedule events on days as well. Example, I may want to switch off my phone at 23:00 everyday. However, if I may went on partying late at night on Friday and Saturday. Hence, my job of "switch radio off at 23:00" can be programmed to be used on Sun-Thur only. And I can then add another job that "switch radio off at 02:00", to be performed on Sat and Sun only, just to make sure my phone won't switch off when I'm out partying on Friday and Sat night.
Thanks ;-)
And ohw, I meant TaskMgr, found here:
http://forum.xda-developers.com/showthread.php?t=280104
Edit: Works really great with mortscript's. Lots of possibilities.
hanmin said:
UPDATE: Btw, an idea, for your next upgrade.. that is to add a day-of-the-week scheduling feature that is able to schedule events on days as well. Example, I may want to switch off my phone at 23:00 everyday. However, if I may went on partying late at night on Friday and Saturday. Hence, my job of "switch radio off at 23:00" can be programmed to be used on Sun-Thur only. And I can then add another job that "switch radio off at 02:00", to be performed on Sat and Sun only, just to make sure my phone won't switch off when I'm out partying on Friday and Sat night.
Click to expand...
Click to collapse
I was actualy thinking about that, but that's making things more complicated. Right now, it's fairly simple. no config dialogs requiered etc etc, as you can have multiple apps at different times, which you might want to run at different days of the week, config wise it gets more complicated, much more coding. Maybe later, if I really need it, I'll make something like it, otherwise, this will have to do (sorry). I'm simply sharing some code that I wrote since I needed it myself ;-)
Edit: oke oke, maybe I'll make a "RunEveryWorkDay" variant (still no config required) Not much code writing, will post it here later on, as soon as I have some time on my hands to make a few adjustments.
Okey, I had a little time (kind of quick, haha)
Rather then having a different EXE handling workday events, I made on which is more dynamic.
Example 1, Run only on work days (monday through friday)
\Program Files\RunEveryday.exe OXXXXXO \Windows\prog.exe anyparams
So the string "OXXXXXO \Windows\prog.exe anyparams" becomes the complete param for RunEveryday.exe
As you can see, the first block of the params has become the days for which you want it to be active, X's x's 1's are for active, O's o's 0's for days to be disabled. Days are represented in following order: Sun, Mon, Tue, Wen, Thu, Fri, Sat.
You can still simply omit those days, and it'll work as previously (ALL days):
\Program Files\RunEveryday.exe \Windows\prog.exe anyparams
Everything is still untested (in this latest release) so it might not work propperly. So if you encounter a problem -> tell me and I'll fix it.
I'm working on a much improved version. It will have:
1) a GUI, easily manage your scheduled tasks
2) Improved notification re-scheduler (old one proved to be kind of buggy)
3) Optionally force device to wakeup (as some programs need this to operate properly)
4) Under the hood, much improved code, easier bug fixing & updates in the future
Expect it to be released in the next couple of days (will post it here)
Nice app. Im going to give it a try now
Is Taskman the only app that can set the time?? Can Memmaid be used?
Everyone who has downloaded and tried the initial release, please download the new one, as it contains critical bug fixes.
freeyayo50 said:
Is Taskman the only app that can set the time?? Can Memmaid be used?
Click to expand...
Click to collapse
See the first message in this thread, any other programs like Taskman or memmaid are no longer needed, RunEveryday is now a self-contained program with it's own user interface.
Thanks, this looks very useful, I also wanted an app to turn the radio on/off at scheduled times, Just need to find the VJ apps you use.
nigelw said:
Thanks, this looks very useful, I also wanted an app to turn the radio on/off at scheduled times, Just need to find the VJ apps you use.
Click to expand...
Click to collapse
here:
http://www.vijay555.com/?Releases:VJVolubilis
Thanks, I've got the files and installed them, but so far I've been unable to get it to work.
I suppose this is more of a problem with the VJ files, but I can't seem to get the radiooff to work. I have moved the binary to \Program Files so it's the same as your sample screenshot, but nothing happens, the radio remains on.
To debug, I created a .lnk file using Total Commander and added the /radiooff but that also does nothing.
I'm using a T-Mobile MDA Compact III in the UK, HTC Artemis (or is the Hero as it doesn't have Wifi?).
nigelw said:
Thanks, I've got the files and installed them, but so far I've been unable to get it to work.
I suppose this is more of a problem with the VJ files, but I can't seem to get the radiooff to work. I have moved the binary to \Program Files so it's the same as your sample screenshot, but nothing happens, the radio remains on.
To debug, I created a .lnk file using Total Commander and added the /radiooff but that also does nothing.
I'm using a T-Mobile MDA Compact III in the UK, HTC Artemis (or is the Hero as it doesn't have Wifi?).
Click to expand...
Click to collapse
To get it to work, be sure to enable "Force Wakeup". The radio won't go off unless you enable this option. In addition, Vijay has a spelling error on his website, he listed the option "radioff", but in fact it should be radiooff (double 'o' in the middle) otherwise his app doesn't recognize the command.
Optionally, you can enable "Suspend when woken up", this will put the device back to sleep when command has been executed, and works nicely with Vijay's app, your device will only be active for a few seconds. I didn't document this feature: but when you have this option enabled, and the command is still executing after 30 seconds, RunEveryday times out, and will put the device to sleep (but lets the command active in background).
Hmmm, just realized what you really posted, if a loose lnk file doesn't work either, it probably is (indeed) VJ's file that doesn't work. maybe you can ask him if he can add support for your device.................................
Thanks for the prompt response.... but I've just worked out what the problem is!
I followed the screenshot on page 1 using /radioon when it should be -radioon
My .lnk files now seem to work, so I will make the changes on your app and see if it works.
I'd like to start doing my own development, I'm particularly interested in retrieving information from the radio like Operator, signal strength, serving cell etc.
Anyone any comments on usability / stability / issues ?
I would really like some feedback ;-)
I've only been using it a couple of days, but it hasn't given me any problems. The only issue I have is one that you are already aware of, and that's support of text input, or maybe copy/paste?
Hope that helps, and thanks again.
Okey, great. In the near future I'll update it to be more complient with windows-ways-of-working. (keyboard, normal dialog, copy/pasting etc), but as it's all working without problems, it's not very high priority. However, if there's any indication of some bugs somewhere, i would get right on it, cause I really do want it to be reliable.
Hi, have you managed to make any improvements to the software? My install has gone wrong, I launch RunEveryDay but the 2 tasks I had configured no longer list in the dropdown (these were to turn the phone/radio off at midnight and back on at 9am).
I did change the timezone recently when I went on a business trip, so maybe that caused the problem when I returned?

[APP][21/11/2008] NoTSR - A very little tool to restore memory

Hi.
When using my Diamond I noticed some processes don't disappear when they should. They fill up memory. Either you kill 'em with some Task Manager, or you soft reset.
Don't wanna SR or kill processes manually? Let my thing do it for you!
NoTSR is a very very simple program which kills some predefined processes, based on my experience with Diamond.
Source code (eVC++ 4) is for you to use and modify whatever you want. However, it would be nice if you gave me some credit if using it!
Have fun!
p. s. Sorry for the icon.
If anyone is wondering, this is what it kills off (copied straight from the source code):
"Opera9.exe", // everything still loads well
"OperaPreL.exe", // after killing them
"pword.exe", // for some reason Pocket Word leaves its process even after leaving
"CommManager.exe", // other Office apps seem to be fixed
"AudioManager_eng.exe", // last ones are opened by manila for quicker loading of tabs.
"AlbumSearcher.exe" // killing AudioManager stops music and rewinds current track.
I keep getting a "Can't list processes" dialog box when I launch the app. I tried placing the NoTSR.exe within in the extracted NoTSR subdirectory and also outside the subdirectory.
JNGold said:
I keep getting a "Can't list processes" dialog box when I launch the app. I tried placing the NoTSR.exe within in the extracted NoTSR subdirectory and also outside the subdirectory.
Click to expand...
Click to collapse
I can confirm that.
What did we wrong? Do we have to place it in a special folder, like windows?
It worked for me, but my phone was very sluggish after running the app and I had to soft reset to bring it back to par.
Thanks for starting this development, there is definitely a gap to be filled by it, I use oxios hibernate and a task manager to finish off opera .exe, this is much easier to use and your icons not so bad either!
uniqueboy said:
It worked for me, but my phone was very sluggish after running the app and I had to soft reset to bring it back to par.
Thanks for starting this development, there is definitely a gap to be filled by it, I use oxios hibernate and a task manager to finish off opera .exe, this is much easier to use and your icons not so bad either!
Click to expand...
Click to collapse
Thanks for positive feedback. I wonder why th sluggish reaction. Loading of opera as well as some TF3D tabs will for sure be slower, but whole phone is weird. After all, it just kills and leaves (see src if unsure). I use NoTSR myself and I got no problems at all. Maybe you could test it again and if it slows down show the list of processes?
@others: try using the app with rest closed. It should work in any folder; I keep it in my docs and launch via Start.
Thanks again for interest!
same error message for me. sprint touch pro with jd6.1 rom
I can't reproduce that error to analyze and fix it, so I post new version which tells you what went wrong. Try with it.
trying now
kosherpig said:
Thanks for positive feedback. I wonder why th sluggish reaction. Loading of opera as well as some TF3D tabs will for sure be slower, but whole phone is weird. After all, it just kills and leaves (see src if unsure). I use NoTSR myself and I got no problems at all. Maybe you could test it again and if it slows down show the list of processes?
@others: try using the app with rest closed. It should work in any folder; I keep it in my docs and launch via Start.
Thanks again for interest!
Click to expand...
Click to collapse
OK, so I've been using the NoTSR app for a couple of days and I can't reproduce the lag that I had when I first ran it, odd. I think it may be something to do with the fact that when I first ran it it was from within file explorer, after using it I could not get explorer to open up again properly. Now I have put a shortcut in my windows/start up/programs folder and I am running it from my start menu everything seems just fine and is all working as it should with no sluggish side effect, so thanks again kosherpig for the very useful app.
SKTools Lite (free) comes with a small program called "Free up ram." During SKTools Lite install, it will tell you something about your windows version, just click through that and let it install.
Once it's installed, go to your programs page and you'll see it there: "Free Up RAM". Just run it once. It will look like nothing is opening, but its because it's working in the background. You'll get a message box very shortly telling you how much ram (in KB) you freed up.
http://s-k-tools.com/index.html?sktools/m_lite.html
I use it all the time. Brings me from 45 -50 down to 35-40. Lowest I've seen was 32%.
Our programs are slightly different. My one doesn't free RAM by itself; it closes processes which won't close by a "close all" command. And NoTSR is not resident (after all its name is No Terminate-Stay-Resident ). Its goal is to be as small as possible, also in term of occupied disk space (~9kB now). Maybe this SKTools and NoTSR could be used in conjunction to free up even more RAM?
And, I also got the error message 2 times.
1st when I was running FM radio.
2nd when I was at the Music tab.
I solved them:
1st by closing FM radio and invoking NoTSR. Everything went OK.
2nd switched to the Home tab. NoTSR failed again. Waited some seconds, ran again. OK now.
Solution: fails? Shut everything using the HTC task manager, go to today/home screen, and invoke NoTSR after some time. I can say the behavior is really weird, since my code doesn't depend on running apps.
However, I run NoTSR everytime after using Opera. I got that error 2 times in my whole usage.
Anyways. Thanks for all responses
I find "Oxios Hibernate" frees up more ram than sk tools "free up ram" does, it is also free, but must be run manually, a useful addition to any start menu.
I'm getting about 10 mb back with NoTSR after opera browsing, "free up ram" or "hibernate" practically nothing back after opera browsing. Basically if you use opera then this is a "must have".
A small update.
If you know when Oxios Hibernate works and NoTSR fails, check this exe out. I tried to contain the Hibernate in it.
This version is bugged.
Please use version from 1st post.
If you ran this version already perform a soft reset.
Sorry for inconvinience.
chronster said:
SKTools Lite (free) comes with a small program called "Free up ram." During SKTools Lite install, it will tell you something about your windows version, just click through that and let it install.
Once it's installed, go to your programs page and you'll see it there: "Free Up RAM". Just run it once. It will look like nothing is opening, but its because it's working in the background. You'll get a message box very shortly telling you how much ram (in KB) you freed up.
http://s-k-tools.com/index.html?sktools/m_lite.html
I use it all the time. Brings me from 45 -50 down to 35-40. Lowest I've seen was 32%.
Click to expand...
Click to collapse
it lowers your memory usage by 10%???
To me it goes from 63% to 61%...
On my Diamond
thats frustrating...
Hi there, trying to use this app I'm getting the same error as others...
"Can't list processes: The parameter is incorrect. (#0)"
Task Manager is empty, I've tried leaving it on the home screen for 20 secs and running it but still the same problem.
Any ideas? I'd really like to get this working as Dutty 3.1 does appear to suffer from this memory problem.
EDIT.... OK, did a reset and it's working fine. I'll play with it over the next day or so, and fingers crossed Dutty 3.1 will be good enough for me as I don't need YouTube.
EDIT2... Worked for a while, now has the same problem as earlier.
Are you using the version form 1st post?
If not, please use it.
By the way, something is really wrong... AFAIK "Invalid parameter" has error code 87, 0 is "success". I've looked at program code to see where I could mess up memory, but I saw no such places. Help with finding this bug (you've got the source) would be very appreciated.
hi kosherpig
can you add a settings file where we can put our personal process to stop?
I've try to modify the source but I'm not able to compile it
kosherpig said:
Are you using the version form 1st post?
If not, please use it.
By the way, something is really wrong... AFAIK "Invalid parameter" has error code 87, 0 is "success". I've looked at program code to see where I could mess up memory, but I saw no such places. Help with finding this bug (you've got the source) would be very appreciated.
Click to expand...
Click to collapse
Hi Kosherpig, I am using the version from the 1st post.
I'm happy to help finding the bug, but not sure what to do here! I THINK it stopped working after I used TomTom7, but can't be sure.
It's only 1635 and it's down to 16% battery already (I think this is a problem with Dutty 3.1), so I don't want to do lots of tests. However, when I'm home and charging it, I'll try each app individually until I pin point which one "causes" the problem.
Does this help? Anything else you want me to try?
Hi kosherpig, getting on great with NoTSR now, I just have one small idea that it would be nice to show the memory stats in the pop up dialogue in a similar way to oxios hibernate. Unless of course this would significantly affect the size and speed of the app, in that case I think it is easy enough to check on the memory usage other ways with a couple of quick taps.

How to check if your ROM is optimized ?

So,
Since the release of the kernel, there is oviously some work going on to optimise the ROMS, and I currently have the following setup.
Modaco 2.2 cooked ROM with custom kernel, and with compcache enabled.
It certainyl feels pretty snappy, but it always did with Spare Parts helping with the visual effect of speed.
I guess what I'm asking is if there is a way of checking to see if my phoe is actually utilising the compcache correctly, and if there are any other apps or scripts I can run to check if everything is ticking along nicely.
for example, I have meminfo installed, but I'm pretty new to all this, and I'm not sure what numbers I should be looking at , and what their values should be, to indicate that everything is nice....
Like I said, it's pretty snappy right now, and I have no complaints, but I just would like to get a handle on numbers to make sure I'm in the right ballpark.
Hoping someone can shed some light....
Shell into adb on your computer and type:
Code:
# free
Or download a terminal program from the marketplace and do the same on your phone.
You should see numbers in the Swap row of the data it returns.
Good question. I just flashed modaco's 1.2 Kernel over Fresh 1.1. Thus far I've noticed a big speed boost in dialing and loading apps. The Dialer speed is major at it used to be my biggest complaint with the Hero. Hit a contact and wait like 5 seconds or more .I have no way to verify though.
Tikerz said:
Shell into adb on your computer and type:
Code:
# free
Or download a terminal program from the marketplace and do the same on your phone.
You should see numbers in the Swap row of the data it returns.
Click to expand...
Click to collapse
total used free
Mem: 195916 193684 2232
Swap: 131064 90256 40808
Total: 326980 283940 43040
#
I'm worried about my Mem Free number (2232)
Doesn't seem a lot....??
I removed all of the # using es explorer, but it keeps giving me an error when trying to save it. Can someone please post instructions on an alternate way to enable compcache
noonanjs said:
I removed all of the # using es explorer, but it keeps giving me an error when trying to save it. Can someone please post instructions on an alternate way to enable compcache
Click to expand...
Click to collapse
I actually had the same problem. What I did was uncheck remount as read/write, re-check it, and after that was able to save the file, reboot and jus like that it was done

How to remove the Gesture Lockscreen!

I have seen other methods of removing the gesture or pattern lock but with this method you can remove the lock temporaley and apply it again without knowing the key.
Check it out here http://sud0x3.net/?p=5
What... you mean this: http://forum.xda-developers.com/showthread.php?t=536352
???
Nice find, just a little late.
lbcoder said:
What... you mean this: http://forum.xda-developers.com/showthread.php?t=536352
???
Nice find, just a little late.
Click to expand...
Click to collapse
I did do a few searches, but only found the method that changes settings in the sqlite3 database.
Suppose the method of recovering the pattern from gesture.key file is on here somewhere too then.
sud0x3 said:
I did do a few searches, but only found the method that changes settings in the sqlite3 database.
Suppose the method of recovering the pattern from gesture.key file is on here somewhere too then.
Click to expand...
Click to collapse
As far as I know, it is encrypted.
However, should be fairly easy to brute force given the low number of possible combinations.
lbcoder said:
As far as I know, it is encrypted.
However, should be fairly easy to brute force given the low number of possible combinations.
Click to expand...
Click to collapse
There are a lot of combinations and im not sure how you would go about brute-forcing it, unless you mean by making a comparison list of common gestures then referencing it.
sud0x3 said:
There are a lot of combinations and im not sure how you would go about brute-forcing it, unless you mean by making a comparison list of common gestures then referencing it.
Click to expand...
Click to collapse
This research could be of use but i cant get it to work yet http://moshe.nl/android/
My idea was to hex a load of key files, store them in a db and then compare. But this guy may have really cracked it.
sud0x3 said:
There are a lot of combinations and im not sure how you would go about brute-forcing it, unless you mean by making a comparison list of common gestures then referencing it.
Click to expand...
Click to collapse
Think about it;
There are precisely 9 points. You can't cross a point more than once, and each point you connect to has to be adjacent to the previous one. Each gesture can therefore be mapped to a tree, which you can traverse recursively until the proper pattern has been identified. You identify the proper pattern by encrypting the current pattern using the same encryption used by the phone (which we have source for and therefore KNOW), and comparing that against the contents of gesture.key.
Implementation:
We number each point 1 through 9.
From each point, you can go on to specific "next" points, which include all the adjacent points to that point except for any point that has already been traversed. You recursively test each of the possible next points until all possibilities are exhausted.
Lets say that point 1 is the upper left, counting across (3 is upper right), and then down (4 is below 1), etc.
Your function will basically do this (pseudocode):
Code:
boolean test(gesture_list){
if (encrypt(gesture_list)==gesture.key){
print(gesture_list);
return true;
} else {
for (nextmove in potential_next_moves){
if (test(gesture_list+nextmove)) return true;
}
return false;
}
Do you see how that works?
This is a simple brute force algo for this problem.
The main thing left to you in this is the computation of potential next moves. You can do this manually using a table. The value for potential_next_moves will be the contents of the table MINUS any point that is already within (gesture_list).
I believe that given the small scope of the problem, this will probably take under one second to brute force any key.
What makes this problem much easier for brute forcing is that there are a finite number of possible NEXT values, and this list of possible next values decreases very quickly as the gesture gets longer. For example, when you have 7 spaces filled, there may be AT MOST 2 possible next moves (as few as ZERO -- for example, using this gesture: 1,4,5,6,9,8,7 -- there are no possible next moves from there, so if that gesture doesn't compute, that branch will immediately return false without trying anything further.
Take a more complex brute force.... you have a 512 bit key, then you have 2^512 possible keys to test. Thats 1.34x10^154 -- an unimaginably big number. Even if your CPU could run 1 key per cycle (which it can't, not even close) at 2GHz, that would take you 6.7x10^144 seconds = 2x10^137 years!!! http://en.wikipedia.org/wiki/Brute-force_attack
But again, we have the advantage of no repeated numbers and a fixed/finite selection of next_steps.
sud0x3 said:
This research could be of use but i cant get it to work yet http://moshe.nl/android/
My idea was to hex a load of key files, store them in a db and then compare. But this guy may have really cracked it.
Click to expand...
Click to collapse
Ha ha. Yes. Nice find.
He's doing exactly what I said right above.
BTW: It works perfectly.
And as I predicted, takes under a second to compute.
You will note one thing about it though; if you throw in random data, it will calculate a gesture that is impossible. This is because he is ignoring one of the characteristics that I mentioned: adjacency! It would be much more efficient if he included this characteristic.
lbcoder said:
Ha ha. Yes. Nice find.
He's doing exactly what I said right above.
BTW: It works perfectly.
And as I predicted, takes under a second to compute.
You will note one thing about it though; if you throw in random data, it will calculate a gesture that is impossible. This is because he is ignoring one of the characteristics that I mentioned: adjacency! It would be much more efficient if he included this characteristic.
Click to expand...
Click to collapse
If i were to write something to recover the gesture i would probably either md5 the keyfile or the hexcode then generate a kind of rainbow table list.
example
md5:1234
md5:2345
md5:5321
Then you could compare md5 hashes to find the correct key. This would eliminate the problems in the script above.
lbcoder said:
Think about it;
There are precisely 9 points. You can't cross a point more than once, and each point you connect to has to be adjacent to the previous one.
Click to expand...
Click to collapse
You can cross a point more than once, I do it in my unlock.

cleanRAM problem/Annoyance

Hey there guys, just a quick one for ya.
Has anyone come across a problem with HTC Addicts cleanRAM?
when i click the the icon to clean it starts the process but then runs my email application(default HTC app) also.
It started doing this yesterday with no changes made to my registry or other device settings.
I've tried un-installing the program and then re-installing but i still get the same (annoying) result.
Has anyone else encountered this? and if so do you know of a fix?
Many Thanks
Sharingan
Well, for me, when I run the Level 3 purge, it takes me to the dial-pad screen for a few seconds. Never really bothered me though...
dial pad
level 3 takes me to dialpad also, wierd, but works ok,,
I also get this with Level 3.
...and for me as well.
This is just how it goes with cleanram. If you have done a customized process list than I would suppose thats why it's bringing up your email because it's purging anything in your list so if it's not running already it will bring it up to purge it to make sure it's not in the memory anymore.
Yea the thing is, i haven't ran a custom purge, i just do Level 3, and it doesn't just pop up, it keeps it open :s Thats why it was annoying for me, doesn't look like there is any kind of fix, just something we have to live with. Thanks for your input!
same here
I think I have the problem that after Cleanram, My Contacts and Programs wont open at all. Then calender says Error: Not enough program memory to start program...
This is a great tool but it keeps doing this to me...
I do a level one purge or 2, same thing happens..
any ideas?
feyt said:
I think I have the problem that after Cleanram, My Contacts and Programs wont open at all. Then calender says Error: Not enough program memory to start program...
This is a great tool but it keeps doing this to me...
I do a level one purge or 2, same thing happens..
any ideas?
Click to expand...
Click to collapse
Don't use Clean RAM, lol. It's not like you need to use it. I have 576Mbs enabled and I never use Clean RAM, most of the RAM used is just cache so your most commonly use programs will open faster if you don't use it.
I've never got any slow down from not using it.

Categories

Resources