Android Open Source - RFID_ME_GUI_APP F R A G_ About

From Project

Back to project page RFID_ME_GUI_APP.


The source code is released under:

%PDF-1.4 %???? 39 0 obj <</Length 2480 /Subtype /XML /Type /Metadata >> stream <?xpacket begin='?' id='W5M0MpCehiHzreSzNTczkc9d'?> <x:xmpmeta x:xmptk="3.1-701" xmlns:x="adobe:ns:meta/"> <rdf:RDF x...

If you think the Android project RFID_ME_GUI_APP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.mti.rfid.minime;
//from w ww  .  j av  a2s  .co  m
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceManager;
import android.preference.Preference.OnPreferenceClickListener;
import android.preference.PreferenceFragment;

public class FRAG_About extends PreferenceFragment{
  public static FRAG_About newInstance() {
    FRAG_About f = new FRAG_About();
    return f;
  public void onCreate(Bundle savedInstanceState) {

    SharedPreferences mSharedpref = PreferenceManager.getDefaultSharedPreferences(getActivity().getApplicationContext());

      Preference prefSn = (Preference) getPreferenceScreen().findPreference("about_reader_sn");
      prefSn.setSummary(mSharedpref.getString("about_reader_sn_sum", "n/a"));

      Preference prefWeb = (Preference) getPreferenceScreen().findPreference("about_web");
      prefWeb.setOnPreferenceClickListener(new OnPreferenceClickListener() {
      public boolean onPreferenceClick(Preference preference) {
        if(preference.getKey().equals("about_web")) {
          Uri uri = Uri.parse(getString(R.string.about_web_sum));
          Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        return true;

Java Source Code List