Info

/liHi/ifiiW t^ifiii'., "jri&ffiHj" fli mmtf'M]■

tmftXft helps.java fWW, it onCreate M^iftfWiin

(^Override public void onCreate(Bundle savedlnstanceState) ( super.onCreate(savedlnstanceState); setContentView(R.1ayout.helps); setTi tie ( "YOBO: IP? f£ ") ; )

X immft:

helps ff<J layout. iXMftX^mkft heips.xml *

<?xml version-"1.0" encoding="utf-B"?>

< Li near Layout xrr.lns : android "http: //schema s . android. com/apk/res/android" android:orientation="vertical" android: layout width="fillparent" android:layout height="fill_parent"> <TextView android:layout width-"fillparent"

android: layout height-"wrap content" android: text^"^1?1 YOBO: " android:textSize="18sp" android:paddingTop="14dip" /> <TextView android:layout width="fi11_parent" android:layout_height="wrap content" androi d:autOLink="all" android:text="@string/he'ps YOBO" /> <TextView android:layout width "fill parent"

android:layout height "wrap content" android:text -"YOBO.Android:" android : textSize=" 1 Bsp" android: paddmgTop="14dip" /> <TextView android:layout width-"fill parent" android:layout height-"wrap content" android:autoLink-"all"

android:texL = "@stririg/helps_Lext" /> <TextView android:layout_width»"fill parent"

android:layout_height="wrap_content" android:text=M^-F-f£4i: " android:texLSize="i8sp" android:paddingTpp=,,14dip" /> <TextView android:layouL_width="til1 parent" android:layout_height=Mwrap_content" android:autoLink="all" android:text = M{?string/author_text" /> </LinearLayout>

helps.xml ft^ift+fliflTextView mm^U.^ ^.mMt

Ps& '^x-mm^mx-mstm^ mmwmm 15-5 »¡^o 3. mpmzftw km. * n

Jityfifnmmumute- mvwm ■ tmmZo ffl/'ttffla^ttft-. bfi'JfeKiiiMlfeWttWtefl: YOBO tftifi-fc ww. mi ft'mmi ntiymwrn, &

»tkm^&^imsH.itnm^^Vi^yoBo iMtkmM'xu

'WkKH. YOBO (ft API «ffJfcliB, tjsvmm&KM oAuth w//A. ittifi. iicfN

KJJroS:

@0verride public void onCreate(Bundle savedlnstanceState) ( super.onCreate(savedlnstanceState); if (getSessionlnPerence().equdlsIgnoreCase(""}) ( setContentView(R.layout.auth); setTitie ("YOBO: ffiPfgiX"); showAlertDialog(); ) else I

setContentView(R.layout -uinfo); setTitle ("YOBO: ffl^fi'S"); f indViews(); restorePrefs(); 1 J

& hA£fOTlK ftffJW^iS«, frftWfj getSessionlnPerenceOitifSWtig«^, »K. uinfo.xml Will/'t All Jfi^WSfe, JMJfl showAlertDialogQffi flifl]5t-fi-getSessionInPerence()W4:%, K/ffd<:

// SharedPreferenceH / acessToker.

private String getSessionlnPerence() { SharedPreferences settings - getSharedPreferences( PreferencesUtii.preferencesSetting, 0);

String session = settings.getString(PreferencesUtll.session, "");

. fcAifl*iMft&S . iPfBR.'ili?" 9% *** fftfiH

0 0

Post a comment