Home » Android » Android Core » Page 18

Android Core

Android Shake to Refresh tutorial

In this post we want to explore another way to refresh our app UI called Shake to Refresh. We all know the pull-to-refresh pattern that is implemented in several app. In this pattern we pull down our finger along the screen and the UI is refreshed: Even this pattern is very useful, we can use another pattern to refresh our ...

Read More »

Using Android Location API in Weather App – Search city

In this post I would like to describe how to search a city using openweathermap to get weather conditions. There are two way we can use to find a city: Using name pattern Using geographic coordinates (Android Location API) We will introduce, moreover, some concepts about Android location API and Location-based service.   Searching city by name In this kind ...

Read More »

Consume Webservice in Android using intentService

In this post, I will explain how to consume Restful Webservice using IntentService. We know we can consume a Webservice directly in the UI using for example Volley lib or a simple Http client, but there are some cases when we prefer to consume a Webservice in an Android Service. We know that Android Service has a “longer” life than ...

Read More »

Fixing The Android Camera API

The other day I participated in a company hackathon and I decided to make use of the Android camera. I’ve always said that the Android APIs are very bad (to put it mildly), but I’ve never actually tried to explicitly say what is wrong and how it could be better. Until now. So, the Camera API is crappy. If you ...

Read More »

Android Wear SDK: Set up “Hello world”

In this post I want to describe my first experience with Android Wear SDK.  This is a very simple project just to test how it works and how we can set up the environment. You can refer to this link if you want to have more detailed information. The first thing you have to do is open Android SDK Manager ...

Read More »

Update the AndroidManifest Version Number automatically

Recently I needed to automate the update of the versionName element in the AndroidManifest.xml file. This needed to be timed stamped and updated with the correct version number when a build was run. We use maven as part of the build, a few plugins come in handy. We want to use POM’s version number so that tools like the maven-release-plugin ...

Read More »