Android – Upload files to ASP.NET Web API service

In previous posts, I showed you how to get/post data to ASP.NET Web API service. However, until now, I only used JSON for communicating between server and client and what about for binary data? For example, uploading files to ASP.NET Web API? How should the controller work and which kind of HTTP request/HTTP format should… Continue reading Android – Upload files to ASP.NET Web API service

Android – Media player and ASP.NET Web Api

Let’s start with a question. When was the last time you played a song offline at your computer? For me, It’s long,loong,looong… time ago. Since the boom of music websites, I just choose one provider, create my favorite playlist and listen to music online. I don’t have any CD or .mp3 song at my local… Continue reading Android – Media player and ASP.NET Web Api

Android, Dependency Injection (IOC) with roboguice and MVVM (Model-View-ViewModel) pattern

If you’re working with .NET, maybe you’re already familiar with the concepts of dependency injection and MVVM (Model-View-ViewModel) pattern. Some of popular dependency injection containers for .NET are Castle Windsor, Ninject or Unity… They are all good frameworks, it just depends on which you prefer. For example, I use Castle Windsor at company and Ninject… Continue reading Android, Dependency Injection (IOC) with roboguice and MVVM (Model-View-ViewModel) pattern

How to use Google Places and show places in Google Maps within Android

If you are searching to a coordinate (such as street, house number, location…) in Google Maps , you’ll see that there are more information about public places near by such as airport, cafe, restaurant, store… This information is really helpful, for example, if I want to move to a new¬†apartment, I would like to check… Continue reading How to use Google Places and show places in Google Maps within Android

How to install Google Maps v2 in Android Emulator and use it in Intellij Idea?

Integrating Google Maps (or any map service) is always a nice feature for our applications, but it seems to be “complicated” for integrating Google Maps because Google Maps is not officially supported in emulator because lacking of Google Play Service. That forces us to use a real device during developing app. For me, not nice.… Continue reading How to install Google Maps v2 in Android Emulator and use it in Intellij Idea?

How to tweet in Twitter within Android client?

Linking to social networks may be one of special features of your program. Today I’d like to make a small demo to make a tweet in Twitter from Android. The demo will use oAuth to authenticate user with Twitter and allow him to tweet when authentication is successful. The app won’t make any authentication with… Continue reading How to tweet in Twitter within Android client?

Google Cloud Messaging, ASP.NET Web Api and Android client

Pushing message from the server to client so that client doesn’t have to send the request to the server periodically is not a new concept anymore. Earlier when then client wants to check if the server wants to send something to him, he has to send dummy request to server repeatedly to ask for notifications.… Continue reading Google Cloud Messaging, ASP.NET Web Api and Android client

How to call ASP.Net Web API service from Android?

In my previous posts, I discussed how we can consume the ASP.Net Web API with RestSharp and HttpClient. In this small one, I would like to show how we can make a demo application in Android consuming ASP.Net Web API service. To save time, I already prepare a sample REST web service made by ASP.NET… Continue reading How to call ASP.Net Web API service from Android?

How to get Android emulator working with Fiddler?

If you are trying to call web service within Android emulator, maybe you would like to see how your real HTTP request looks like and was sent to server. Of course there are a lot of ways to hook network interface such as using Wireshark, Microsoft Network Monitor,… However these tools provide low-level-interfaces with packet… Continue reading How to get Android emulator working with Fiddler?