Vote for your favorite cruise ship.

Menu

ButterKnife and DeBugging with Logcat

ButterKnife is a coding utility and a great tool that software engineers use to instantiate the views in the layout code into the application code, however the “tidying up” process can create some interesting bugs in the code which gives the Android SDK Emulator fits, panic and seizures!

We are fans of the Android SDK built-in emulator, however a lot of software engineers also use GenyMotion for test their mobile apps before publishing their APK to the Google Play Store…

BTW, ButterKnife went to “@Bind” from “@Inject” commands for instantiating views in layout into application code (“Main_Activity.java”):

In putting together the final touches on our new Android app IRIEWeather, a simple one-page weather forecast mobile application by Javadeus Labs using the Forecast.io API data stream we got a few errors and it is a great learning environment as software engineers often learn the most from their “bugs”.

It is also amazing to see some of the live data coming from the Internet and various APIs and integrating this data into a cool Android layout mockup:

Logcat in Android SDK is a great feature of Android SDK. You can see the bugs in your code and work on each one and test in the SDK Emulator. It can be time consuming…but it is great for learning how to tidy up code and write cleaner code!

logcat:

at com.javadeus.irieweather.CurrentWeather.getFormattedTime(CurrentWeather.java:78)
at com.javadeus.irieweather.MainActivity.updateDisplay(MainActivity.java:107)
at com.javadeus.irieweather.MainActivity.access$200(MainActivity.java:30)
at com.javadeus.irieweather.MainActivity$1$1.run(MainActivity.java:77)