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 »Home » Android » Android Core »
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 »Android Remote Service Tutorial:AIDL–how to structure the Project and lib
In this post, I will describe how to use Remote Service in Android. This kind of services are services that can be consumed by other processes using RPC (Remote Procedure Call). In the other post we talk about Local Service, in other word the application that hosts the service can consume it. AIDL Services are useful when we want to ...
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 Weather app Tutorial: Step by Step guide (Part 2)
The app is available at google play. Download it and have fun. If you like my work you can donate to me using the app. In this post you will find a complete tutorial explaining how to build an Android app. The goal of this post is creating a Weather App that will use Yahoo! Weather as data provider. This ...
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 »Android Weather app using Yahoo weather provider and AutoCompleteTextView (Part 1)
This post is the first of a series where we will explore Yahoo Weather API. Our goal is building an app that gives us the actual weather condition using yahoo weather provider. We already talked about other weather provider like openweathermap, in other two post. You can give a look here and here if you are interested. In this first ...
Read More »