Hello

i want create my own RSS using this tutorial: http://www.androidpit.com/java-guide...own-rss-reader

as i am beginner, i dont know how should use cods, i used below, but it not work right:

<resources>
<string name="app_name">My Application</string>

<string name="hello_world">Hello</string>
<string name="action_settings">Settings</string>
</resources>
<TextView
android:id="@+id/rss_feed"
android:text="@string/hello_world"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_main, container, false);
mRssFeed = (TextView) rootView.findViewById(R.id.rss_feed);
return rootView;
}
@Override
public void onStart() {
super.onStart();
InputStream in = null;
try {
URL url = new URL("http://www.androidpit.com/feed/main.xml");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
in = conn.getInputStream();
ByteArrayOutputStream out = new ByteArrayOutputStream();
byte[] buffer = new byte[1024];
for (int count; (count = in.read(buffer)) != -1; ) {
out.write(buffer, 0, count);
}
byte[] response = out.toByteArray();
String rssFeed = new String(response, "UTF-8");
mRssFeed.setText(rssFeed);
} catch (IOException e) {
e.printStackTrace();
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}

i used android studio and puted above code in string.xml

Thanks.