An RSS feed and an example of a Google XML adapter. Does he work?

I am trying to understand the example of Google XML adapters as shown at http://developer.android.com/resources/samples/XmlAdapters/index.html , especially with regard to RSS feeds.

I cannot get Google sample code to compile. It seems that Adapters.java code has several problems with undefined The variables, mContext, mFromand mToare used in the classroom XmlCursorAdapter.

I am new to Android and trying to get this to work with a level 4 API program.

Has anyone got this example to work? Can you offer an understanding?

+4
source share
2 answers
ArrayAdapter<RssItem> adapter = new
ArrayAdapter<RssItem>(this,R.layout.style,feed1.getAllItems());
itemlist.setAdapter(adapter);

itemlist.setOnItemClickListener(this);

itemlist.setSelection(0);

just try this example

0
source

sdk- android. XmlAdapters SDK- 15.

, , , - . , sdk. Android SDK Manager.

0

All Articles