Author Archives: Noyabronok
I/Me/Myself
People always get confused whether to say I, Me, or Myself in a sentence. Here’s an excellent article explaining when to say which. http://www.wsu.edu/~brians/errors/myself.html
Easy getVersion method
Here’s an easy function to get the version name from the Manifest file. public String getVersionName() { try { PackageInfo pinfo = getPackageManager().getPackageInfo(getPackageName(), 0); return pinfo.versionName; } catch (android.content.pm.PackageManager.NameNotFoundException e) { return “Version Name Not Found”; } }
Changing background color of android buttons
It’s actually much more difficult to do this than one might think. There is no backgroundColor property or a method that takes color as a parameter. It took me a while to find the solution online. You actually have … Continue reading
Hello World!
This is my first post on my first blog! Since I’m a computer programmer most of my posts will be programming related, but I may deviate from time to time Enjoy!