Category: android

Twitter tutorial covering hashtags, reply & favorite/un-favorite using twitter4j

This article is in continuation to our previous article which demonstrated user how to authenticate on twitter and post tweet with/without image using twitter4j. This article will help you understand on how to fetch tweets using hashtags and other twitter actions like tweet, re-tweet etc . So let’s begin tweeting…I mean the tutorial 🙂 #letsBegin

Continue Reading…

Listview getViewType() and getViewTypeCount() in Action

This  is an article on listview with different view’s. We all know that listview is the most used and conventional way of displaying a list  of data in android. Many-a-times we do encounter a scenario where we want to display list item depending on a specific condition, for example  look at the images below. The common

Continue Reading…

How to use tabwidget with fragments

This is a simple tutorial on how to use tabs with fragment in android application. Final output In this application we are using fragment from android-support-v4.jar,  you are required to add android-support-v4.jar into your app. 1] Create a class lets say “BaseActivity” as we are using fragments to show tabs. BaseActivity class will extends “android.support.v4.app.FragmentActivity”

Continue Reading…

Code snippet to save/fetch data from file system

To save data from file system you need to add write access storage system permission in application’s manifest. You can write data in internal as well as on external sd card. Code to write data on disc [sourcecode language=”java”] protected static void saveDataOnDisk(String data) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); try { ObjectOutput objectOutput =

Continue Reading…

Gmail like pull to refresh

Hi!!  All Here is our new library which has gmail like refresh functionality. It’s a simple & fully customizable library  which you can use  in your app easily. You can download library & sample project from github. *Steps for usage. 1] Here is the code snippet CustomView view = new CustomView(getApplicationContext(), actionBar); setContentView(view); view.setRefreshListner(SampleForGmailLIkePullToRefresh.this); view.setActionBar(SampleForGmailLIkePullToRefresh.this); view.getListView().setAdapter(new

Continue Reading…