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.
mContext
mFrom
mTo
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?
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
sdk- android. XmlAdapters SDK- 15.
, , , - . , sdk. Android SDK Manager.