In this quick tip, we’ll see how to use the excellent Android Debug Bridge (adb) tool on the command line to list all the installed packages on our android device (non-rooted in my case) and then extract one of their APK files to our computer.
When using the versatile Android Debug Bridge (adb) tool to issue commands, if there’s only one device or emulator attached then that’s fine as the commands will be executed on exactly that. But if there’s more than one instance then we’ll get an error on the terminal saying
error: more than one device and emulator.
We’ve already discussed
ViewPager in depth in one of my earlier posts. We saw how to use it with specific
PagerAdapter implementations like
FragmentStatePagerAdapter that works with fragments but we can also use it to inflate any other
ViewGroup (with standard View hierarchy) by hooking it up with
PagerAdapter itself. In this tutorial we’ll just discuss how to how to hook a
PagerAdapter to a
ViewPager to create an Image slideshow.
Note: This post is sort of a continuation of my previous post on
ViewPager and its related pager adapters with tabs.
When working with
ViewPager we most likely include action bar tabs and integrate them with their corresponding screens in the
ViewPager. Action bar tabs works great but just incase if you prefer scrollable tabs and want to use them over action bar tabs then there are two ways to achieve that:
Swipe Views are an efficient way to allow the user to laterally navigate among related data items spread across multiple panes using a simple touch gesture (swipes/flings), making access to data faster and much more enjoyable. Think of the android home screen where you can swipe across multiple sibling screens or the facebook or twitter app with multiple screens (and their respective tabs) where you can just swipe to navigate through them. The entire experience is super interactive and fun. They’re basically equivalent to slideshows/carousels which has sections with/without tabs (or similar controls to navigate) in the web development arena.