Monday, February 27, 2012

Android: Enable/Disable 3G programmatically

Here we go again, Hint: this post will be just a wrap up to what you can find here. Unfortunately, the data-connection enable/disable APIs are not exposed to the user, So we'll access them using JAVA reflection. Starting from API level 8 (platform 2.2) we can use the following snippet: final ConnectivityManager conman = (ConnectivityManager) context.getSystemService(CONNECTIVITY_SERVICE);...

Thursday, February 9, 2012

Hello World !

This is my first blogging activity ever and I feel so excited about it. So, as a warm up, let's get our hands dirty in some ANDROID issue that confused me for a while. SlidingDrawer is a very interesting and useful tool that acts the same as a desk drawer. It contains a layout but the layout, and of course its contents, can't be seen except if the drawer is openned/dragged. well, what I found...