depicus

changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

  1. Does free pay for Android

    January 30, 2012 by The Man

    Well I reached the 1000 download mark on the free Android app but what is quite surprising is that the numbers for the paid app have not fallen. You will be pleased to know that I made a total of $1.13 off the free apps so no retirement just yet.


  2. Shock Horror people like free stuff :)

    December 17, 2011 by The Man

    Well colour me shocked but it seems people like free stuff.

    While it took 129 days for my paid Android app to reach 100+ downloads its only taken 11 days for the free app to reach that milestone. I would love to provide everything free 🙂


  3. Android TextView making clickable url links

    December 9, 2011 by The Man

    So simple

    
    	public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.help);
            
            TextView urlText;
            urlText = (TextView) findViewById(R.id.lblInfo4);
            String text = "Finally if you need more information then please pop over to support.depicus.com or " +
            		"tweet me @depicus.";
            urlText.setText(Html.fromHtml(text));
            urlText.setMovementMethod(LinkMovementMethod.getInstance());
    	}
    
    

    And it should look like this


  4. Wake on Lan for Android gets a free version

    December 7, 2011 by The Man

    I have just uploaded a free version of Wake On Lan for Android to Google Marketplace which is an advert supported version.

    It was about a year ago I finished the paid version and so far it has had 297 downloads. Lets see how long it takes the free version to get to that level.


  5. Android sales

    June 16, 2011 by The Man

    Just got past 100 sales. Not really selling like hot cakes but will crunch the numbers soon and see how it stacks up to iOS.

    UPDATE

    Sales figures for 8th Feb to 17th June (129 days)

    Android sales – 101

    iOS sales – 689

    So that would suggest a 6.9:1 sales ratio.


  6. Android: Getting the Broadcast Address of your Wifi connection

    May 1, 2011 by The Man

    If you ever need to know the broadcast address of your wifi connection…

    private InetAddress getBroadcastAddress() throws IOException {
    	WifiManager myWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
    	DhcpInfo myDhcpInfo = myWifiManager.getDhcpInfo();
    	if (myDhcpInfo == null) {
    		System.out.println("Could not get broadcast address");
    		return null;
    	}
    	int broadcast = (myDhcpInfo.ipAddress & myDhcpInfo.netmask)
    				| ~myDhcpInfo.netmask;
    	byte[] quads = new byte[4];
    	for (int k = 0; k < 4; k++)
    	quads[k] = (byte) ((broadcast >> k * 8) & 0xFF);
    	return InetAddress.getByAddress(quads);
    }