Uncategorized

Intercepting Android network calls using Fiddler Web Proxy

Background Some time it is important to intercept and inspect network calls that are being made from your android device. Specially of you have made an android app want to debug the outgoing network calls. In a browser it is very simple , you simply right click and then inspect element. Network tab will give… Continue reading Intercepting Android network calls using Fiddler Web Proxy

Uncategorized

Using Android Emulator to test your Android Application

Background I have written a couple of posts before on Android Application development, debugging and other general concepts. As you know Android is just an operating system running on Linux kernel customized for resource constrained environment like that of handheld systems. Before you roll out your application to other users you need to test it… Continue reading Using Android Emulator to test your Android Application

Uncategorized

Understanding Explicit and Implicit intents in Android

Background Intents form the very basics of Android operating Systems. Primarily they are used to start new activities and transfer data between activities. There are two broad categories in which Intents can be classified – Explicit Intents Implicit Intents In Explicit intents we specify which exact Activity need to be started by giving the class… Continue reading Understanding Explicit and Implicit intents in Android

Uncategorized

Difference between Dalvik and ART runtimes in Android

Background If you own an Andorid device with Kitkat you would already know this. You have an option of choosing between the runtimes – Dalvik ART What is runtime you ask? –  Think of it as a library that takes care of converting the code that you write in a high level language like Java… Continue reading Difference between Dalvik and ART runtimes in Android

Uncategorized

Android Programming Tips and Tricks

Showing Toast in Android //Toast shown for  short period of time Toast.makeText(getApplicationContext(), “Toast Message”, Toast.LENGTH_SHORT).show(); //Toast shown for long period of time Toast.makeText(getApplicationContext(), “Toast Message”, Toast.LENGTH_LONG).show();   OR using custom layout for your toast Toast myToast = new Toast(getApplicationContext()); myToast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); myToast.setDuration(Toast.LENGTH_LONG); myToast.setView(myLayout); myToast.show(); Getting all running Apps in Android     private List<String> getRunningApps()… Continue reading Android Programming Tips and Tricks