Back to project page binghamton_svc.
The source code is released under:
MIT License
If you think the Android project binghamton_svc listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package Fragments; /*from w w w. j a v a 2 s . c om*/ import com.github.chrzhang.R; import Parsers.GetEBoard; import android.os.Bundle; import android.os.StrictMode; import android.support.v4.app.Fragment; import android.text.Html; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; /** * Fragment in charge of displaying a list of e-board emails, fetched from * the club website as requested. * @author Christopher Zhang */ public class ContactSectionFragment extends Fragment { View rootView; TextView eboard; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().detectAll().penaltyLog().build(); StrictMode.setThreadPolicy(policy); rootView = inflater.inflate(R.layout.fragment_section_contact, container, false); eboard = (TextView) rootView.findViewById(R.id.tvEboard); GetEBoard getter = new GetEBoard(); try { String returned = getter.getInternetData(); eboard.setText(Html.fromHtml(returned)); eboard.setTextSize(19); } catch (Exception e) { e.printStackTrace(); } return rootView; } }