(); } Break4. What type of USB can be set?public static final String usb_function_mass_storage = "Mass_storage"; /** * Name of the ADB USB function. * Used in extras for the {@link #ACTION_USB_STATE} broadcast * * {@hide} */public static final String usb_ FUNCTION_ADB = "ADB"; /** * Name of the RNDIS Ethernet USB function. * Used in extras for the {@link #AC
) { updateUsbState(); updateAudioSourceFunction(); } break;4. What types of usb are configurable?
public static final String USB_FUNCTION_MASS_STORAGE = "mass_storage"; /** * Name of the adb USB function. * Used in extras for the {@link #ACTION_USB_STATE} broadcast * * {@hide} */ public static final String USB_FUNCTION_ADB = "adb"; /**
Broadcastreveiver register receives the corresponding message, you will receive the corresponding Intent, this time can be based on Intent action, the corresponding action, this is said in the the meaning of the future; There are three static methods to obtain Pendingintent instances:
public static Pendingintent Getbroadcast (context context, int requestcode, Intent Intent, int flags)
public static Pendingintent getactivity (context context, int requestcode, Intent Intent, int fl
/E0/wKiom1ggJsOw-nAmAACoJkjZDto236.png "width=" 957 "height=" 672 "/>Third, crack1. Stop the service and upload the fileService Atlbitbucket StopDownload/opt/atlassian/bitbucket/4.10.1/atlassian-bitbucket/web-inf/on BitBucket server Lib in Atlassian-extras-decoder-v2-3.3.0.jar and Atlassian-extras-legacy-3.3.0.jar two files650) this.width=650; "title=" image "style=" border-right-width:0px;background-image:
., the content page displays the content that needs scrolling, and then invokes the Mui.init method to initialize the content page in the main page.Mui.init ({ subpages:[{ url:your-subpage-url,//child page HTML address, support for local address and network address id:your-subpage-id,//child page flag styles:{ top:subpage-top-position,//Sub-page top position bottom:subpage-bottom-position,//sub-page at the bottom of the position width: subpage-width,//Child
First, create a site. Both httpd and nginx are supported. The root directory of my site points to "/var/www/centos /"
Download the source and synchronize the source
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/updates/x86_64/ opt/centos/other/updates/
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/extras/x86_64// opt/centos/other/extras/
Rsync-AVRT rsync: // mirrors.ustc.edu.cn/centos/6.5/cento
1. Change Source
Well, for all the reasons, the download speed of many yum source paths provided by centos is very slow. So, change the source.
# cd /etc/yum.repos.d# cpCentOS-Base.repoCentOS-Base.repo.backup# vim CentOS-Base.repo
Under normal circumstances, the CentOS-Base.repo file is used to obtain the Source Path listing and then download the source package, don't worry about him, delete these lines
mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=osmirrorlist=
length: 14540 (14 K) [application/x-redhat-package-manager] is being saved: "epel-release-6-8.noarch.rpm" 100% [= ========================================================== =====================>] 14,540 12.9 K/s in 1.1 s 17:50:56 (12.9 KB/s) -Saved epel-release-6-8.noarch.rpm [14540/14540])
3. Install EPEL with rpm (I have installed EPEL, so it is displayed that it has been installed)
[root@localhost ~]# rpm -ivh epel-release-6-8.noarch.rpmwarning: epel-release-6-8.noarch.rpm: Header V3 RSA/SH
The following script can automatically identify whether the Centos version is 5, 6, or 7, and add different versions of the source#! /Bin/bashARCH = '/usr/bin/getconf LONG_BIT'REPOD = "/etc/yum. repos. d"OSVER = '/bin/awk-F "[.]"' {print $3} '/etc/redhat-release'OSVER7 = '/bin/awk-F "[.]"' {print $4} '/etc/redhat-release'If ["$ (ls-A $ REPOD)"]; then[-D $ {REPOD}/repos. old] |/bin/mkdir $ {REPOD}/repos. old/Bin/mv $
.noarchYum-rhn-plugin-2.0.1-5.el7.noarchKeyutils-libs-1.5.8-3.el7.x86_64Python-pyudev-0.15-6.el7.noarch3. Configure Yum Local source and network source;[[email protected] yum.repos.d]# mkdir Repobak Create a new backup folder[[email protected] YUM.REPOS.D] #mv * Repobak yum.repos.d files in the folder back into the Repobak[[email protected] YUM.REPOS.D] #vi Zabbix.repo Create a new Zabbix.repo yum source file, add the following:==============zabbix.repo file =======================[Zabbix]Name=z
Intent has the following functions:
In mainactivity, add a listening event for button 1:
Listener1 = new onclicklistener (){
@ OverridePublic void onclick (view v ){// Todo auto-generated method stubIntent intent1 = new intent (mainactivity. This, activity1.class );Intent1.putextra ("mainactivity", "This is data from mainactivity ");Startactivityforresult (intent1,Request_code);}};
Receive data from intent in mainactivity in activity1:
String data = NULL;Bundle
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.