Showing posts with label android development. Show all posts
Showing posts with label android development. Show all posts

Monday, August 22, 2011

Countdown Widgets

I knocked up a Skyrim countdown widget the other weekend, and heard some lovely stuff about it. I also had a couple of requests to do countdown widgets for different games. After spending my morning doing up a BF3 one I decided, rather than respond to each and every request I would put up the code.
It is from a tutorial I did a while ago and is very very simple.

Wednesday, June 29, 2011

Steam Specials update!

So I recently updated my app, Steam Specials to android 1.6 to be able to include ads. I checked my statistics and there were 11 or so users still running on 1.5. I feel bad for all of them so hopefully they manage to find there way here.
That there is a link to the ad free 1.5 version. No notification capability sadly.

Save as Ringtone Android Dev

The biggest trouble i had with my louis soundboard was getting the "Save as ringtone or notification" feature to work with my sound files.

This page from Stealthcopter helped me greatly. This sweet guy did basically all the work for me, the only problem was that it didn't work straight out of the box for me. After much trial and error, the only way i could get it to work was by adding a switch statement for each of my raw sound files, cumbersome and an example of very poor coding yes, but it works!

e.g.


public boolean saveas(int ressound){
String soundname = "";
switch(ressound){
case R.id.sound1:
ressound = R.raw.sound1;
soundname = "louis1";
break;
}