Android开发服务器的搭建


Android开发服务器的搭建


第一部分,选取交叉编译的硬件平台

Android的SDK包很大,源码至少3.5G以上,因此交叉编译的代码量也是相当大。 笔者,曾用DELL Latitude E5410(i3机型)Ubuntu实体机(非虚拟机)首次编译,整整花了10个小时编译。所以各位,“工欲善其事必先利其器”,推荐使用以下配置:

 
 
  • CPU:Intel i7-4770。
  • RAM:金士顿 16G DDR3-1600。
  • HD:西部数据 500G。
*主机详细配置请参阅附录1


第二部分,服务器的搭建

一,安装Linux系统
在安装前请准备一张已经可好的ubuntu-12.04LTS-AMD64.iso的光盘。 在光驱内插入光盘,重新启动机器,按照ubuntu安装提示一步一步即可。
在这里有几点建议:
第一点,最好预留一个SWAP分区16G。
第二点,作为Linux开发服务器,整个硬盘最好只安装ubuntu系统。
第三点,划分一个分区挂载到/home;而且这个分区要求一定要足够大。

二,安装SSH服务

在ubuntu服务器端,安装SSH服务。步骤如下:

1,安装软件包,执行

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo apt-get install openssh-server  

ubuntu CD版本缺省安装openssh-client;如果你的系统没有安装的话,那么请执行下面命令即可。

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo apt-get install openssh-client  

2,然后确认sshserver是否启动,执行

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ ps -e |grep ssh    

如果只有ssh-agent,那么说明ssh-server还没有启动;如果看到sshd那说明ssh-server已经启动了。


3,ssh-server配置文件位于/etc/ssh/sshd_config中,使用以下命令参看。

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ cat /etc/ssh/sshd_config  

SSH默认端口是22,可以定义SSH的服务端口,也可以改成其他端口。


4,然后重启SSH服务

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo /etc/init.d/ssh restart  

5,Windows机上,选用熟悉的远程登录工具,设置Ubuntu的IP地址、开放的用户名和密码、协议是SSH2、默认端口22,即可。



三,下载远程登录工具。
在Windows机端,推荐使用Putty或Xshell。

四,使用SSH服务登录Linux服务器(Windows端)
1,Linux服务器端,可以使用ifconfig命令手动设置服务器的IP,例如:192.168.1.101。
2,在远程登录软件中填入IP信息,输入用户名和密码。
3,登录成功。

五,安装SAMBA服务

1,安装samba服务套件

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo apt-get install samba  

安装系统设置的共享模块

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo apt-get install kdenetwork-filesharing  

2,配置samba服务

第一步,创建共享目录

创建:/home/jack/share。/home/jack/是笔者的服务器的普通用户的用户目录,读者将jack改为您使用的目录即可。

创建share目录:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ mkdir /home/jack/share  


第二步,设置目录的权限
设置该文件夹的权限,使新目录让所有用户可读可写可执行。如果读者觉得给目录全部的权限不妥当,请自行改为您认为安全妥当的权限。
[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ chmod -R 0777 /home/jack/share  

第三步,备份smb.conf
在Linux上修改脚本前,要养成随时备份的习惯。
备份smb.conf文件:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup  


第四步,修改smb.conf脚本

  • 使用vim修改脚本:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo gedit /etc/samba/smb.conf  

  • 在smb.conf中搜寻这一行文字代码:
[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. ; security = user  

用下面这几行取代

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1.   
[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. security = user  
  2. username map = /etc/samba/smbusers  


  • 在smb.conf中增加新用户new的共享目录

将下列几行新增到文件的最后面,新创建允许访问的用户为:new,共享目录为 /home/jack/share。

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. [Share]  
  2. comment = Shared Folder with username and password  
  3. path = /home/jack/share  
  4. public = yes  
  5. writable = yes  
  6. valid users = new  
  7. create mask = 0700  
  8. directory mask = 0700  
  9. force user = nobody  
  10. force group = nogroup  
  11. available = yes  
  12. browseable = yes  

  • 增加新用户的一些其他属性

找到[global],

将旧属性

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. workgroup = MSHOME   

改成 (这里的WORKGROUP是共享中的工作组名称):

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. workgroup = WORKGROUP  
  2. display charset = UTF-8  
  3. unix charset = UTF-8  
  4. dos charset = cp936  

后三行,为了防止出现中文目录乱码的情况。


  • 添加新网络访问帐户

添加新的网络访问账户:new

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo useradd new  

上面只是增加了new这个用户,却没有给用户赋予本机登录密码。所以这个用户将只能从远程访问,不能从本机登录。而且samba的登录密码可以和本机登录密码不一样。


  • 新增网络使用者的帐号

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo smbpasswd -a new  
设置new密码。这个密码不是开机登录时候用的,而是访问Windows共享文件时要填的密码。

  • 新建/etc/samba/smbusers文件

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo vim /etc/samba/smbusers  

在新建的文件内加入下面行并保存

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. new = “network username”  


  • new用户的管理

修改new用户的网络访问密码,使用下行命令:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo smbpasswd -a new  
删除new这个访问账户,使用下行命令:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo smbpasswd -x new  

  • 测试samba服务

测试samba服务:
[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo testparm  

当你输入上面的命令的时候有可能会出现“执行子进程“testparm”失败没有该文件或目录”, 这是你要重新输入命令:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo apt-get install samba-common-bin  

这个问题就解决了。


  • 重新启动samba服务

输入重启命令:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. $ sudo /etc/init.d/smbd restart  

到这,samba服务就配置完成。点开你的win下网上邻居 查看工作组计算机里面就有共享的samba服务,不过前提是你已经开启samba服务

  • Windows端打开共享目录

samba服务开启了,网上邻居下查看工作组计算机里面就有共享的samba服务。进入共享目录,输入用户名:new和密码:xxxxxx。


第五步,整个安装过程终了。



第三部分,附录
  1. 附录1:主机的详细配置
[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. jack-i7  
  2.     description: Desktop Computer  
  3.     product: All Series (All)  
  4.     vendor: ASUS  
  5.     version: System Version  
  6.     serial: System Serial Number  
  7.     width: 64 bits  
  8.     capabilities: vsyscall32  
  9.     configuration: administrator_password=disabled boot=normal chassis=desktop family=ASUS MB frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled sku=All uuid=E09BCD47-DAD7-DD11-AC19-AC220B83572C  
  10.   *-core  
  11.        description: Motherboard  
  12.        product: B85-PLUS  
  13.        vendor: ASUSTeK COMPUTER INC.  
  14.        physical id: 0  
  15.        version: Rev X.0x  
  16.        serial: 130713881100238  
  17.        slot: To be filled by O.E.M.  
  18.      *-firmware  
  19.           description: BIOS  
  20.           vendor: American Megatrends Inc.  
  21.           physical id: 0  
  22.           version: 0602  
  23.           date: 07/16/2013  
  24.           size: 64KiB  
  25.           capacity: 15MiB  
  26.           capabilities: pci apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification  
  27.      *-memory:0 UNCLAIMED  
  28.           physical id: 1  
  29.         *-bank UNCLAIMED  
  30.              description: DIMM DDR3 Synchronous 1600 MHz (0.6 ns)  
  31.              product: KHX1600C10D3/8GX  
  32.              vendor: Kingston  
  33.              physical id: 0  
  34.              serial: 18170682  
  35.              slot: ChannelA-DIMM0  
  36.              size: 8GiB  
  37.              width: 64 bits  
  38.              clock: 1600MHz (0.6ns)  
  39.      *-memory:1  
  40.           description: System Memory  
  41.           physical id: 42  
  42.           slot: System board or motherboard  
  43.         *-bank:0  
  44.              description: DIMM [empty]  
  45.              product: [Empty]  
  46.              vendor: [Empty]  
  47.              physical id: 0  
  48.              serial: [Empty]  
  49.              slot: ChannelA-DIMM1  
  50.         *-bank:1  
  51.              description: DIMM DDR3 Synchronous 1600 MHz (0.6 ns)  
  52.              product: KHX1600C10D3/8GX  
  53.              vendor: Kingston  
  54.              physical id: 1  
  55.              serial: 18170682  
  56.              slot: ChannelB-DIMM0  
  57.              size: 8GiB  
  58.              width: 64 bits  
  59.              clock: 1600MHz (0.6ns)  
  60.         *-bank:2  
  61.              description: DIMM [empty]  
  62.              product: [Empty]  
  63.              vendor: [Empty]  
  64.              physical id: 2  
  65.              serial: [Empty]  
  66.              slot: ChannelB-DIMM1  
  67.      *-cache:0  
  68.           description: L1 cache  
  69.           physical id: 49  
  70.           slot: CPU Internal L1  
  71.           size: 256KiB  
  72.           capacity: 256KiB  
  73.           capabilities: internal write-back  
  74.      *-cache:1  
  75.           description: L2 cache  
  76.           physical id: 4a  
  77.           slot: CPU Internal L2  
  78.           size: 1MiB  
  79.           capacity: 1MiB  
  80.           capabilities: internal write-back unified  
  81.      *-cache:2  
  82.           description: L3 cache  
  83.           physical id: 4b  
  84.           slot: CPU Internal L3  
  85.           size: 8MiB  
  86.           capacity: 8MiB  
  87.           capabilities: internal write-back unified  
  88.      *-cpu  
  89.           description: CPU  
  90.           product: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz  
  91.           vendor: Intel Corp.  
  92.           physical id: 4f  
  93.           bus info: cpu@0  
  94.           version: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz  
  95.           slot: SOCKET 1150  
  96.           size: 800MHz  
  97.           capacity: 3900MHz  
  98.           width: 64 bits  
  99.           clock: 100MHz  
  100.           capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cpufreq  
  101.           configuration: cores=4 enabledcores=4 threads=8  
  102.      *-memory:2 UNCLAIMED  
  103.           physical id: 2  
  104.      *-memory:3 UNCLAIMED  
  105.           physical id: 3  
  106.      *-pci  
  107.           description: Host bridge  
  108.           product: 4th Gen Core Processor DRAM Controller  
  109.           vendor: Intel Corporation  
  110.           physical id: 100  
  111.           bus info: pci@0000:00:00.0  
  112.           version: 06  
  113.           width: 32 bits  
  114.           clock: 33MHz  
  115.         *-pci:0  
  116.              description: PCI bridge  
  117.              product: Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller  
  118.              vendor: Intel Corporation  
  119.              physical id: 1  
  120.              bus info: pci@0000:00:01.0  
  121.              version: 06  
  122.              width: 32 bits  
  123.              clock: 33MHz  
  124.              capabilities: pci pm msi pciexpress normal_decode bus_master cap_list  
  125.              configuration: driver=pcieport  
  126.              resources: irq:40  
  127.         *-display  
  128.              description: VGA compatible controller  
  129.              product: Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller  
  130.              vendor: Intel Corporation  
  131.              physical id: 2  
  132.              bus info: pci@0000:00:02.0  
  133.              version: 06  
  134.              width: 64 bits  
  135.              clock: 33MHz  
  136.              capabilities: msi pm vga_controller bus_master cap_list rom  
  137.              configuration: driver=i915 latency=0  
  138.              resources: irq:45 memory:f7800000-f7bfffff memory:e0000000-efffffff ioport:f000(size=64)  
  139.         *-usb:0  
  140.              description: USB controller  
  141.              product: 8 Series/C220 Series Chipset Family USB xHCI  
  142.              vendor: Intel Corporation  
  143.              physical id: 14  
  144.              bus info: pci@0000:00:14.0  
  145.              version: 05  
  146.              width: 64 bits  
  147.              clock: 33MHz  
  148.              capabilities: pm msi xhci bus_master cap_list  
  149.              configuration: driver=xhci_hcd latency=0  
  150.              resources: irq:41 memory:f7d00000-f7d0ffff  
  151.         *-communication  
  152.              description: Communication controller  
  153.              product: 8 Series/C220 Series Chipset Family MEI Controller #1  
  154.              vendor: Intel Corporation  
  155.              physical id: 16  
  156.              bus info: pci@0000:00:16.0  
  157.              version: 04  
  158.              width: 64 bits  
  159.              clock: 33MHz  
  160.              capabilities: pm msi bus_master cap_list  
  161.              configuration: driver=mei latency=0  
  162.              resources: irq:44 memory:f7d1b000-f7d1b00f  
  163.         *-usb:1  
  164.              description: USB controller  
  165.              product: 8 Series/C220 Series Chipset Family USB EHCI #2  
  166.              vendor: Intel Corporation  
  167.              physical id: 1a  
  168.              bus info: pci@0000:00:1a.0  
  169.              version: 05  
  170.              width: 32 bits  
  171.              clock: 33MHz  
  172.              capabilities: pm debug ehci bus_master cap_list  
  173.              configuration: driver=ehci-pci latency=0  
  174.              resources: irq:20 memory:f7d18000-f7d183ff  
  175.         *-multimedia  
  176.              description: Audio device  
  177.              product: 8 Series/C220 Series Chipset High Definition Audio Controller  
  178.              vendor: Intel Corporation  
  179.              physical id: 1b  
  180.              bus info: pci@0000:00:1b.0  
  181.              version: 05  
  182.              width: 64 bits  
  183.              clock: 33MHz  
  184.              capabilities: pm msi pciexpress bus_master cap_list  
  185.              configuration: driver=snd_hda_intel latency=0  
  186.              resources: irq:46 memory:f7d10000-f7d13fff  
  187.         *-pci:1  
  188.              description: PCI bridge  
  189.              product: 8 Series/C220 Series Chipset Family PCI Express Root Port #1  
  190.              vendor: Intel Corporation  
  191.              physical id: 1c  
  192.              bus info: pci@0000:00:1c.0  
  193.              version: d5  
  194.              width: 32 bits  
  195.              clock: 33MHz  
  196.              capabilities: pci pciexpress msi pm normal_decode bus_master cap_list  
  197.              configuration: driver=pcieport  
  198.              resources: irq:16 ioport:2000(size=4096) memory:de200000-de3fffff ioport:de400000(size=2097152)  
  199.         *-pci:2  
  200.              description: PCI bridge  
  201.              product: 8 Series/C220 Series Chipset Family PCI Express Root Port #3  
  202.              vendor: Intel Corporation  
  203.              physical id: 1c.2  
  204.              bus info: pci@0000:00:1c.2  
  205.              version: d5  
  206.              width: 32 bits  
  207.              clock: 33MHz  
  208.              capabilities: pci pciexpress msi pm normal_decode bus_master cap_list  
  209.              configuration: driver=pcieport  
  210.              resources: irq:18 ioport:e000(size=4096) memory:f7c00000-f7cfffff ioport:f0000000(size=1048576)  
  211.            *-network  
  212.                 description: Ethernet interface  
  213.                 product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller  
  214.                 vendor: Realtek Semiconductor Co., Ltd.  
  215.                 physical id: 0  
  216.                 bus info: pci@0000:03:00.0  
  217.                 logical name: eth0  
  218.                 version: 0c  
  219.                 serial: ac:22:0b:83:57:2c  
  220.                 size: 100Mbit/s  
  221.                 capacity: 1Gbit/s  
  222.                 width: 64 bits  
  223.                 clock: 33MHz  
  224.                 capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation  
  225.                 configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-1_0.0.3 10/23/12 ip=192.168.1.100 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s  
  226.                 resources: irq:43 ioport:e000(size=256) memory:f7c00000-f7c00fff memory:f0000000-f0003fff  
  227.         *-pci:3  
  228.              description: PCI bridge  
  229.              product: 82801 PCI Bridge  
  230.              vendor: Intel Corporation  
  231.              physical id: 1c.3  
  232.              bus info: pci@0000:00:1c.3  
  233.              version: d5  
  234.              width: 32 bits  
  235.              clock: 33MHz  
  236.              capabilities: pci pciexpress msi pm subtractive_decode bus_master cap_list  
  237.            *-pci  
  238.                 description: PCI bridge  
  239.                 product: ASM1083/1085 PCIe to PCI Bridge  
  240.                 vendor: ASMedia Technology Inc.  
  241.                 physical id: 0  
  242.                 bus info: pci@0000:04:00.0  
  243.                 version: 03  
  244.                 width: 64 bits  
  245.                 clock: 33MHz  
  246.                 capabilities: pci subtractive_decode bus_master cap_list  
  247.                 resources: iomemory:202001f10-202001f0f  
  248.         *-usb:2  
  249.              description: USB controller  
  250.              product: 8 Series/C220 Series Chipset Family USB EHCI #1  
  251.              vendor: Intel Corporation  
  252.              physical id: 1d  
  253.              bus info: pci@0000:00:1d.0  
  254.              version: 05  
  255.              width: 32 bits  
  256.              clock: 33MHz  
  257.              capabilities: pm debug ehci bus_master cap_list  
  258.              configuration: driver=ehci-pci latency=0  
  259.              resources: irq:23 memory:f7d17000-f7d173ff  
  260.         *-isa  
  261.              description: ISA bridge  
  262.              product: B85 Express LPC Controller  
  263.              vendor: Intel Corporation  
  264.              physical id: 1f  
  265.              bus info: pci@0000:00:1f.0  
  266.              version: 05  
  267.              width: 32 bits  
  268.              clock: 33MHz  
  269.              capabilities: isa bus_master cap_list  
  270.              configuration: driver=lpc_ich latency=0  
  271.              resources: irq:0  
  272.         *-storage  
  273.              description: SATA controller  
  274.              product: 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode]  
  275.              vendor: Intel Corporation  
  276.              physical id: 1f.2  
  277.              bus info: pci@0000:00:1f.2  
  278.              version: 05  
  279.              width: 32 bits  
  280.              clock: 66MHz  
  281.              capabilities: storage msi pm ahci_1.0 bus_master cap_list  
  282.              configuration: driver=ahci latency=0  
  283.              resources: irq:42 ioport:f0b0(size=8) ioport:f0a0(size=4) ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:f7d16000-f7d167ff  
  284.         *-serial UNCLAIMED  
  285.              description: SMBus  
  286.              product: 8 Series/C220 Series Chipset Family SMBus Controller  
  287.              vendor: Intel Corporation  
  288.              physical id: 1f.3  
  289.              bus info: pci@0000:00:1f.3  
  290.              version: 05  
  291.              width: 64 bits  
  292.              clock: 33MHz  
  293.              configuration: latency=0  
  294.              resources: memory:f7d15000-f7d150ff ioport:f040(size=32)  
  295.      *-scsi:0  
  296.           physical id: 4  
  297.           logical name: scsi2  
  298.           capabilities: emulated  
  299.         *-disk  
  300.              description: ATA Disk  
  301.              product: ST500DM002-1BD14  
  302.              vendor: Seagate  
  303.              physical id: 0.0.0  
  304.              bus info: scsi@2:0.0.0  
  305.              logical name: /dev/sda  
  306.              version: KC48  
  307.              serial: W2AWZB7N  
  308.              size: 465GiB (500GB)  
  309.              capabilities: partitioned partitioned:dos  
  310.              configuration: ansiversion=5 signature=0005c4fe  
  311.            *-volume:0  
  312.                 description: EXT4 volume  
  313.                 vendor: Linux  
  314.                 physical id: 1  
  315.                 bus info: scsi@2:0.0.0,1  
  316.                 logical name: /dev/sda1  
  317.                 logical name: /  
  318.                 version: 1.0  
  319.                 serial: 04260d4f-b5e5-4347-af32-75ea9b2937a5  
  320.                 size: 450GiB  
  321.                 capacity: 450GiB  
  322.                 capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized  
  323.                 configuration: created=2013-09-20 17:52:06 filesystem=ext4 lastmountpoint=/ modified=2013-10-05 22:31:21 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2013-12-02 10:30:45 state=mounted  
  324.            *-volume:1  
  325.                 description: Extended partition  
  326.                 physical id: 2  
  327.                 bus info: scsi@2:0.0.0,2  
  328.                 logical name: /dev/sda2  
  329.                 size: 15GiB  
  330.                 capacity: 15GiB  
  331.                 capabilities: primary extended partitioned partitioned:extended  
  332.               *-logicalvolume  
  333.                    description: Linux swap / Solaris partition  
  334.                    physical id: 5  
  335.                    logical name: /dev/sda5  
  336.                    capacity: 15GiB  
  337.                    capabilities: nofs  
  338.      *-scsi:1  
  339.           physical id: 5  
  340.           logical name: scsi3  
  341.           capabilities: emulated  
  342.         *-cdrom  
  343.              description: DVD reader  
  344.              product: DVD-E818A9T   b  
  345.              vendor: ASUS  
  346.              physical id: 0.0.0  
  347.              bus info: scsi@3:0.0.0  
  348.              logical name: /dev/cdrom  
  349.              logical name: /dev/dvd  
  350.              logical name: /dev/sr0  
  351.              version: 1.00  
  352.              capabilities: removable audio dvd  
  353.              configuration: ansiversion=5 status=nodisc  
  354.   *-power UNCLAIMED  
  355.        description: To Be Filled By O.E.M.  
  356.        product: To Be Filled By O.E.M.  
  357.        vendor: To Be Filled By O.E.M.  
  358.        physical id: 1  
  359.        version: To Be Filled By O.E.M.  
  360.        serial: To Be Filled By O.E.M.  
  361.        capacity: 32768mWh  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: Android预约开发源码是用来实现预约功能的开发源码。预约功能是指用户可以在应用程序中预先安排和安排活动、服务或资源的功能。 开发预约功能的源码可以包括以下几个方面的内容: 1. 用户界面设计:通过Android提供的UI组件,如按钮、文本框、日期选择器等,设计出用户友好的预约界面。用户可以在界面中选择所需的服务、活动或资源,并填写相关的信息,如时间、地点、备注等。 2. 数据管理:通过数据库技术,如SQLite,来存储和管理预约相关的数据。开发源码需要包括数据库表的设计和创建,以及对数据的增删改查等操作的实现。 3. 预约逻辑:通过编程语言如Java,实现预约功能的逻辑。这包括对用户选择的服务、时间等进行验证和处理,如判断是否有冲突预约、发送预约通知等。 4. 通信和互联网技术:如果预约功能需要与服务器进行交互,开发源码还需要包括与服务器通信的相关代码,如使用HTTP协议发送和接收预约信息、处理服务器返回的结果等。 5. 错误处理和异常情况处理:开发源码应当考虑到可能出现的错误和异常情况,如网络连接失败、数据库操作错误等,并给出相应的处理方法和提示。 总而言之,Android预约开发源码是一套实现预约功能的代码集合,它可以帮助开发者快速实现预约功能,并可根据具体需求进行定制和扩展。 ### 回答2: Android预约开发源码属于移动应用开发的一个重要方向。这类源码通常用于构建具有预约功能的Android应用程序,比如用于预约餐厅、美容、医疗等服务的应用。下面将简要介绍一下关于Android预约开发源码的一些特点和使用方法。 首先,Android预约开发源码提供了开发者所需的基础框架和功能模块,包括用户注册登录、预约数据管理、日历选择、通知提醒等等。这些源码可以帮助开发者快速搭建起一个具有预约功能的Android应用,并且可以根据实际需求进行个性化定制。 其次,Android预约开发源码支持与后端服务器进行数据交互,实现用户与服务提供者之间的实时沟通和信息交流。通过与服务器的配合,用户可以方便地浏览、选择和预约各种可用服务,并且可以随时查看和修改自己的预约信息。 另外,Android预约开发源码还提供了丰富的界面设计和交互效果,帮助开发者构建出美观、简洁且易于使用的应用程序。同时,源码中也包含了一些常见的UI组件和样式,可以大大减少开发者的开发工作量,提高开发效率。 最后,对于开发者而言,使用Android预约开发源码进行开发不仅可以大大节省开发成本和时间,还可以减少出错和重复劳动的可能性。通过学习和理解源码的架构和思路,开发者也能够提升自己的开发能力,更好地应对未来的项目需求。 总而言之,Android预约开发源码是一种提供了基础框架、功能模块及交互设计的开发工具,可以帮助开发者快速搭建具备预约功能的Android应用,并且提供了一些便捷的操作和定制的方法。通过使用该源码,开发者可以更高效、更专注地开发出满足用户需求的应用程序。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值