Android 网络服务发现 (NSD) 代码实现

此示例代码实现了 Android NSD 的客户端和服务器,提供基本功能。需要进一步完善其他判断逻辑。

rar
p20180313.rar 预估大小:75个文件
folder
p20180313 文件夹
folder
NSDDemo 文件夹
file
gradlew 5KB
file
settings.gradle 16B
file
NSDDemo.iml 861B
folder
.idea 文件夹
folder
libraries 文件夹
file
com_android_support_support_fragment_26_1_0.xml 702B
file
org_hamcrest_hamcrest_integration_1_3_jar.xml 578B
file
android_arch_lifecycle_runtime_1_0_0.xml 658B
file
com_android_support_test_espresso_espresso_core_3_0_1.xml 710B
file
com_google_code_findbugs_jsr305_2_0_1_jar.xml 359B
file
com_android_support_support_compat_26_1_0.xml 692B
file
com_squareup_javawriter_2_1_1_jar.xml 538B
file
android_arch_core_common_1_0_0_jar.xml 533B
file
com_android_support_animated_vector_drawable_26_1_0.xml 742B
file
com_android_support_support_vector_drawable_26_1_0.xml 737B
file
javax_inject_javax_inject_1_jar.xml 528B
file
org_hamcrest_hamcrest_core_1_3_jar.xml 543B
file
android_arch_lifecycle_common_1_0_0_jar.xml 548B
file
com_android_support_constraint_constraint_layout_solver_1_0_2_jar.xml 384B
file
com_android_support_support_media_compat_26_1_0.xml 722B
file
com_android_support_support_annotations_26_1_0_jar.xml 608B
file
org_hamcrest_hamcrest_library_1_3_jar.xml 557B
file
com_android_support_test_espresso_espresso_idling_resource_3_0_1.xml 765B
file
com_android_support_support_core_utils_26_1_0.xml 712B
file
com_android_support_appcompat_v7_26_1_0.xml 682B
file
net_sf_kxml_kxml2_2_3_0_jar.xml 285B
file
com_android_support_test_rules_1_0_1.xml 652B
file
com_android_support_constraint_constraint_layout_1_0_2.xml 501B
file
com_android_support_support_core_ui_26_1_0.xml 697B
file
com_android_support_test_runner_1_0_1.xml 657B
file
junit_junit_4_12_jar.xml 487B
file
com_android_support_support_v4_26_1_0.xml 672B
file
runConfigurations.xml 564B
file
misc.xml 2KB
file
workspace.xml 169KB
file
gradle.xml 626B
file
modules.xml 351B
folder
gradle 文件夹
folder
wrapper 文件夹
file
gradle-wrapper.properties 236B
file
gradle-wrapper.jar 52KB
file
local.properties 428B
file
gradlew.bat 2KB
file
gradle.properties 1002B
file
.gitignore 127B
folder
app 文件夹
folder
src 文件夹
folder
androidTest 文件夹
folder
java 文件夹
folder
com 文件夹
folder
nsd 文件夹
folder
lwx 文件夹
folder
nsddemo 文件夹
file
ExampleInstrumentedTest.java 765B
folder
test 文件夹
folder
java 文件夹
folder
com 文件夹
folder
nsd 文件夹
folder
lwx 文件夹
folder
nsddemo 文件夹
file
ExampleUnitTest.java 413B
folder
main 文件夹
file
AndroidManifest.xml 944B
folder
res 文件夹
folder
mipmap-hdpi 文件夹
file
ic_launcher.png 3KB
file
ic_launcher_round.png 5KB
folder
mipmap-xxxhdpi 文件夹
file
ic_launcher.png 9KB
file
ic_launcher_round.png 15KB
folder
mipmap-xhdpi 文件夹
file
ic_launcher.png 4KB
file
ic_launcher_round.png 7KB
folder
mipmap-anydpi-v26 文件夹
file
ic_launcher.xml 276B
file
ic_launcher_round.xml 276B
folder
mipmap-mdpi 文件夹
file
ic_launcher.png 2KB
file
ic_launcher_round.png 3KB
folder
drawable 文件夹
file
ic_launcher_background.xml 6KB
folder
layout 文件夹
file
activity_nsd_server.xml 2KB
file
activity_nsd_client.xml 976B
file
activity_main.xml 889B
folder
drawable-v24 文件夹
file
ic_launcher_foreground.xml 2KB
folder
values 文件夹
file
colors.xml 214B
file
strings.xml 73B
file
styles.xml 394B
folder
mipmap-xxhdpi 文件夹
file
ic_launcher.png 6KB
file
ic_launcher_round.png 10KB
folder
java 文件夹
folder
com 文件夹
folder
nsd 文件夹
folder
lwx 文件夹
folder
nsddemo 文件夹
folder
utils 文件夹
file
Constant.java 223B
folder
activity 文件夹
file
NSDClientActivity.java 7KB
file
MainActivity.java 829B
file
NSDServerActivity.java 4KB
folder
nsd 文件夹
file
NSDClient.java 3KB
file
NSDServer.java 4KB
file
app.iml 11KB
file
.gitignore 8B
file
build.gradle 952B
file
proguard-rules.pro 772B
file
build.gradle 573B
...
rar 文件大小:158.96KB