亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

direktori cari
android Manifest Manifest.permission Manifest.permission_group android.accessibilityservice AccessibilityService android.accounts Account android.app NotificationManager android.bluetooth BluetoothAdapter BluetoothClass BluetoothClass.Device BluetoothClass.Device.Major BluetoothClass.Service BluetoothDevice BluetoothServerSocket BluetoothSocket android.content SharedPreferences android.database.sqlite SQLiteCursorDriver SQLiteOpenHelper android.graphics Bitmap android.location LocationListener Geocoder GpsStatus GpsStatus.Listener GpsStatus.NmeaListener GpsSatellite android.media AudioFormat AsyncPlayer AudioRecord AudioRecord.OnRecordPositionUpdateListener ThumbnailUtils AudioManager android.net TrafficStats MailTo LocalSocket android.os AsyncTask AsyncTask.Status CountDownTimer Message MessageQueue HandlerThread android.text Html android.util JsonWriter android.view ContextMenu ContextMenu.ContextMenuInfo Display ViewManager View ViewStub ViewTreeObserver ViewParent WindowManager GestureDetector Gravity MenuInflater ScaleGestureDetector SoundEffectConstants android.view.inputmethod InputConnection InputMethod InputMethodSession BaseInputConnection InputMethodManager android.widget AbsListView AbsListView.LayoutParams AbsListView.OnScrollListener AbsListView.RecyclerListener AbsoluteLayout AbsoluteLayout.LayoutParams AbsSeekBar AbsSpinner AdapterView AdapterView.AdapterContextMenuInfo AdapterView.OnItemLongClickListener AdapterView.OnItemSelectedListener AdapterView.OnItemClickListener AnalogClock BaseAdapter BaseExpandableListAdapter Button CheckBox CheckedTextView Checkable Chronometer Chronometer.OnChronometerTickListener CompoundButton CompoundButton.OnCheckedChangeListener CursorAdapter CursorTreeAdapter DatePicker DatePicker.OnDateChangedListener DialerFilter DigitalClock EditText Filter Filter.FilterListener Filter.FilterResults ExpandableListAdapter ExpandableListView.OnChildClickListener ExpandableListView.OnGroupClickListener ExpandableListView.OnGroupCollapseListener ExpandableListView.OnGroupExpandListener Filterable Gallery Gallery.LayoutParams GridView GridLayout GridLayout.Alignment RadioGroup ImageView ImageView.ScaleType HorizontalScrollView ImageButton ImageSwitcher FilterQueryProvider ListAdapter ListView MediaController MultiAutoCompleteTextView MultiAutoCompleteTextView.CommaTokenizer MultiAutoCompleteTextView.Tokenizer QuickContactBadge RadioButton RatingBar RatingBar.OnRatingBarChangeListener RelativeLayout RemoteViews ResourceCursorAdapter ResourceCursorTreeAdapter Scroller ScrollView SearchView SearchView.OnCloseListener SearchView.OnQueryTextListener SearchView.OnSuggestionListener SeekBar SeekBar.OnSeekBarChangeListener SimpleAdapter SimpleAdapter.ViewBinder SimpleCursorAdapter SimpleCursorAdapter.CursorToStringConverter SimpleCursorAdapter.ViewBinder SimpleCursorTreeAdapter SimpleCursorTreeAdapter.ViewBinder SimpleExpandableListAdapter SlidingDrawer SlidingDrawer.OnDrawerCloseListener SlidingDrawer.OnDrawerOpenListener SlidingDrawer.OnDrawerScrollListener Spinner SpinnerAdapter WrapperListAdapter TabHost TabHost.TabSpec TextView TimePicker TimePicker.OnTimeChangedListener Toast TableLayout TableLayout.LayoutParams TableRow TableRow.LayoutParams TabWidget TextSwitcher ToggleButton TwoLineListItem VideoView ViewAnimator ViewFlipper ViewSwitcher ViewSwitcher.ViewFactory ZoomButtonsController ZoomButtonsController.OnZoomListener ZoomButton ZoomControls dalvik.system DexFile
watak


NotificationManager

版本:Android 4.0 r1

?

結(jié)構(gòu)

繼承關(guān)系

public class NotificationManager extends Object

????????

java.lang.Object

android.app.NotificationManager

?

類概述

該類用來向用戶通知發(fā)生的事情。用來告訴用戶在后臺發(fā)生的某些事情。

通知有下列一些形式:

l?? 在狀態(tài)欄中顯示一個圖片,可以通過launcher來訪問(當(dāng)用戶點擊該圖片會啟動一個預(yù)先定義好的intent

l?? 打開或者閃爍設(shè)備上的LED

l?? 或者通知用戶通過閃爍的背光燈、播放聲音或者震動

每個通知方法接受一個整型的id,還有一個字符串的標(biāo)簽參數(shù)可選,該參數(shù)可以為空。這兩個參數(shù)被用來組成一對(tag,id)或者如果標(biāo)簽沒有指定則為(null,id)。這對參數(shù)用來在應(yīng)用程序和系統(tǒng)中標(biāo)識該通知。所以這對參數(shù)在你的程序中應(yīng)該唯一。

如果你在通知方法時傳遞該參數(shù)對(tagid)和一些新的通知參數(shù),如果(tag,id)對應(yīng)的通知應(yīng)經(jīng)在運行,則對應(yīng)的通知會被更新。舉個例子來說:如果你傳遞一個新的狀態(tài)欄圖片,狀態(tài)欄中老的圖片會被新的圖片所替換。該(tag,id)也用來傳遞給cancelId)或者cancelString,int)方法來清除這些通知。

NotificationManager不用實例化,可以通過getSystemServiceString)方法來獲得。

開發(fā)者指南:創(chuàng)建一個通知,請閱讀Status Bar Notifications開發(fā)者指南。

?

公共方法

public void cancel (int id)

???????? 移除一個已經(jīng)顯示的通知,如果該通知是短暫的,會隱藏視圖;如果通知是持久的,會從狀態(tài)欄中移除。

參數(shù)

??????????????????????????? id????? 通知的id

??????????????????

public void cancel (String tag,int id)

移除一個已經(jīng)顯示的通知,如果該通知是短暫的,會隱藏視圖;如果通知是持久的,會從狀態(tài)欄中移除。????????

參數(shù)

??????????????????????????? tag?? 通知的標(biāo)簽

??????????????????????????? id????? 通知的id

?

public void cancelAll ()

???????? 移除所有的已經(jīng)顯示的通知,詳細(xì)行為見cancel(int)

?

public void notify (int id,Notification notification)

???????? 提交一個通知在狀態(tài)欄中顯示。如果擁有相同id的通知已經(jīng)被提交而且沒有被移除,該方法會用新的信息來替換之前的通知。

參數(shù)

?????????????????? id????? 應(yīng)用中通知的唯一標(biāo)識

notification?????? 一個通知對象用來描述向用戶展示什么信息,不能為空

?

public void notify (String tag,int id,Notification notification)

提交一個通知在狀態(tài)欄中顯示。如果擁有相同標(biāo)簽和相同id的通知已經(jīng)被提交而且沒有被移除,該方法會用更新的信息來替換之前的通知。

參數(shù)

???????? tag?? 用來標(biāo)識通知的字符串,可以為空。

??????????????????????????? id????? 應(yīng)用中通知的唯一標(biāo)識。

??????????????????????????? notification?????? 一個通知對象用來描述向用戶展示什么信息,不能為空。

?

補(bǔ)充

文章精選

AndroidNotification詳解【android進(jìn)化三十五】

?

?


Artikel sebelumnya: Artikel seterusnya: