Skip to content

Instantly share code, notes, and snippets.

@joelewis
Created June 29, 2013 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelewis/5892056 to your computer and use it in GitHub Desktop.
Save joelewis/5892056 to your computer and use it in GitHub Desktop.
  • On the go, to create a clicker like mobile app. Fancying it to be multiplatform, as it was meant to be put into commercial production.
  • clicker
  • Started prototyping it.
  • clicker
  • And ended up getting it somewhere here!
  • clicker
  • And there was a bug. Not a bug exactly, but
  • bug
  • Started digging the source online, and found this to be the problem
  • problem
  • Yes, the timeout right there, and commenting out the me.stoploading(); would be a dirty hack enough to put the app right on track.
  • Everything was fine, I took the cordova.jar file and extracted its components, hoping I could find its source files for me to lay my hands on and found this,
  • this
  • Pathetically the source for the version of phonegap I'm using couldn't be found at all. Anywhere. So, I had to force myself to go to a more, well, much more dirtier hack. and I did what I should never do. I changed the timeout value to the largest an Integer can hold. Literally, it will never timeout. It was ok. My app isn't going to lod any content out of its assets. and it's a single screen one which is reasonable enough.
  • timeout
  • Now, there was a 'I-Dont-Know-Why-The-Hell-This-Happens' bug, making the hardware back button to act as VolumeUpKey
  • So, I did this to the source code and killed the bug, mercyless-ly.
  • code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment