Wednesday, July 27, 2011

Whether it's a good idea or not...

As the title implies, this may or may not be a good idea, but here's the story of how I drug my pager into the 21st century.
So I used to have an iPhone and used Google Voice but at the time there wasn't an official Google Voice app (which ended up being a bit of a dud in my opinion) and the best jailbreak app that I could find at the time (GVMobile+) didn't support push notifications. There were some solutions out there, but they usually involved routing your data through a 3rd party server and that made me feel a little uncomfortable. So I looked into Google App Engine and made my own forwarding server. Yes, it was still going through a 3rd party server, but it was one that I at least had the warm fuzzy of having control over (who knows what Google may or may not be doing with all the data my app receives, processes and sends).
Shortly after getting this all up and running, the official Google Voice app came out and not too long after that I switched to an Android phone, so this project became useless and just sat on the shelf...
That is until I resurrected it to send all my Google Voice notifications to my pager. Most of the time it's unnecessary because I have my phone, but when I don't, it's nice to still get timely notification of texts, voicemails and missed calls. But the best part about it is that to everyone else in the world, they don't have to worry about whether they should call my phone or my pager. I just give out my Google Voice number and it now can act as the single point of contact for me whether I have my phone or not.
So, if you're interested in using this, then check out the new gvpush4pager project.

Tuesday, March 8, 2011

LDS Tools for Android

So I wanted to start working on the LDS Tools app for Android and it was a bit of a pain to get it all setup, so here's the list of stuff that I had to do to get it to work and hopefully it will help someone else out. I did it with Ubuntu 10.10, but the same general steps should apply to any OS.

  1. Install Eclipse (sudo apt-get install eclipse)
  2. Verify that Eclipse Update repo setup correctly (instructions here) (this was actually only a problem for me in Fedora and not Ubuntu)
  3. Install Android SDK (instructions found here)
  4. Create a Virtual Device (instructions here)
  5. Checkout the code (Instructions here)
  6. Change JDK Compliance to 1.6 in Windows->Preferences->Java->Compiler
  7. Create a new Android Project in Eclipse using the checked out source
  8. Install Checkstyle (Instructions here) (I had to set it to exclude the "files not open in editor" to avoid a ton of places that didn't match the style file. Hopefully, that can be resolved as people start to write compliant code)
  9. Add the checkstyle-config-1.0.0.xml as an "External Configuration File" in the Checkstyle section of the Project Properties
  10. In the Java Code Style->Formatter section of the Project Properties, import the ldssa.codestyle.xml file and select that as the Active Profile
Automatic build is enabled by default, so let it do its thing and then you should be able to run the generated executable. For me to get the Android emulator to connect to the internet on my laptop I had to disable my ethernet connection so it would use the wireless, but other than that the compiled app ran great.