Tag Archives: android

Java: Parts of the Day

A handy utility method that will return the part of the day, such as morning, afternoon, evening, etc.

public static String getPartOfTheDay(final int hour)
    if(hour > 4 && hour < 12)
        if(hour <= 8)
            return "Early Morning";
        else if(hour > 8 && hour < 11)
            return "Morning";
        return "Late Morning";        
    else if(hour >= 12 && hour < 17)
        if(hour >= 13 && hour <= 15)
            return "Early Afternoon";
        else if(hour >= 16)
            return "Late Afternoon";
        return "Afternoon";
    else if(hour >= 17 && hour <= 21)
        if(hour <= 19)
            return "Early Evening";
        return "Evening";
        return "Night";

The method is based on the following logic, that many people would agree with:

Morning: 5 to 12

  • Early morning: 5 to 8
  • Late morning: 11 to 12

Afternoon: 12 to 17

  • Early afternoon: 13 to 15
  • Late afternoon: 16 to 17

Evening: 17 to 21

  • Early evening: 17 to 21

Night: 21 to 4

GSM Signal Monitor 1.5 out now!

GSM Signal Monitor 1.5 is out now!
This version features new app visual style, additional logging options, bug fixes and Android 5.x and up support.

Version 1.5 Change Log
* New app visual style
* Compatibility with Android 5.x and up
* Fixed bug when clicking over the app notification in the notification area
* GSM Signal monitor will now log (optional) information when the phone is entering roaming state and changes in your mobile data connectivity.
* Fixed bug when no notifications will be made on some devices
* New Google play services version

Get it on Google Play

Alien Swarm 1.4.1 out now!

Alien Swarm version 1.4.1 is out now!

This is the best ‘Alien Swarm’ release to date. Featuring Facebook and Google+ share integration, so you can share your experience with friends and family. Sound and performance improvements, few bug fixes and more. Check it out!

Version 1.4.1 Change Log:
* Facebook and Google+ share improvements.
* Fixed visual bug when the game is running on tablets with Android 2.3.x
* Fixed crash when running on devices with Android 2.3.x
* Removed the ‘-1’ sign when hitting an enemy with a health bar.
* Sound improvements
* Small apk size reduction
* Reduced start up time


Alien Swarm 1.4 out now!


Alien Swarm version 1.4 brings our ‘shoot everything that moves’ game on the big screen!

The game is now available for Android TV. This update also features sound quality / performance improvements.


NOTE: Playing on Android TV requires game pad.

Happy Fruits is out now!

Happy Fruits is out now!

Happy Fruits is a simple match-3 puzzle game similar to Jewels / Bejeweled type of games.
Your goal is to swap adjacent fruits to create combinations of 3 or more fruits of the same color and type, horizontally or vertically.

When you match 4 or more fruits, horizontally or vertically the whole game field row or column is removed.

After removing fruits new fruits drop down on the game field. Quite often the falling fruits create new valid combinations causing a chain reaction (or cascade).

* 3 game modes: Normal, Timed and Endless
* Hints
* Infinite number of levels
* Saved games. Store your progress and resume playing later on.
* Android TV support
* Game pad support
* “Optimized for your device” graphics
* In game stats
* In game help

It’s free on the Google Play Store.