Skip to main content

Posts

Display video from any particular folder

Hi, In this post ,I'm going to talk about how to display list of videos from any particular folder of devices. So frist we will have to decide complete path of folder in which want to extract own data. Now have a look about this code  package com.dilip.finalvideo; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.ContextMenu; import android.view.ContextMenu.ContextMenuInfo; import android.view.View; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener; import android.widget.ArrayAdapter; import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; public class FinalVideoActivity extends Activity {      private List<String> item = new ArrayList<String>();     ...

Display News and Videos through RSS and Display it in Listview

Hi friends , In this tutorial ,i'm going to describe about how to fetch data from rss feed.Here i had also problem ,when i was developing my recent project.I had also faced  many problem and at last i developed my best project. Here is the code that describe how to fetch news headline from rss This class describes how to parse XML data: import java.net.URL; import java.util.ArrayList; import org.xmlpull.v1.XmlPullParser; import android.content.res.XmlResourceParser; import android.util.Log; import android.util.Xml; public class XmlFeedParser {         //Feed Parsing Method     public ArrayList<Implement> parse(String url) {                 //Array of Episode Objects         ArrayList<Implement> episodes = null;          ...

Simple Code of DOM Parsing and display result in listview

Hi friends, this is the simplest way of DOM parsing and display result in listview.First its necessary to know that  DOM extends for Document Object Model. As you know that , in XML parsing we will have to create three classes.The first class that should be created when you created the project will be your activity. In this activity, all the data retrieved will be used and displayed to the screen. The second class required will be the handler, in this class all the extracting and setting of data will be done. The third class will contain all the getters and setters that we need to set the data and retrieve it.But here i have added and more class also that is used to display result in listview(I mean this is used for custom listview). Here I'm going to add all codes what i have used in this application. Assumes i have xml like this:- <?xml version="1.0" encoding="UTF-8"?> <ProductItemsResponse LIST_FOUND="true">       ...