Permalink
Browse files

First Release

Added XLinkKai Protocol
  • Loading branch information...
1 parent 748d7a4 commit a49307adb08f41dc7ed7e19df6a6defeec872445 @netonjm netonjm committed Oct 10, 2012
Showing with 10,971 additions and 119 deletions.
  1. +27 −0 XBSlink.Android/AboutActivity.cs
  2. +19 −0 XBSlink.Android/Assets/AboutAssets.txt
  3. +31 −0 XBSlink.Android/BroadcastService.cs
  4. +20 −0 XBSlink.Android/Libs/ActivityManager.cs
  5. +18 −0 XBSlink.Android/Libs/AlertMessage.cs
  6. +228 −0 XBSlink.Android/Libs/AndroidClientEngine.cs
  7. +91 −0 XBSlink.Android/Libs/AndroidClientEngineProcess.cs
  8. +81 −0 XBSlink.Android/Libs/AudioManagement.cs
  9. +26 −0 XBSlink.Android/Libs/ChatItem.cs
  10. +112 −0 XBSlink.Android/Libs/DB/DBCommandsConfiguration.cs
  11. +30 −0 XBSlink.Android/Libs/DB/DBHelper.cs
  12. +167 −0 XBSlink.Android/Libs/EnvironmentEx.cs
  13. +74 −0 XBSlink.Android/Libs/Grid/CloudsItem.cs
  14. +60 −0 XBSlink.Android/Libs/Grid/CloudsListAdapter.cs
  15. +29 −0 XBSlink.Android/Libs/Grid/PMItem.cs
  16. +59 −0 XBSlink.Android/Libs/Grid/PMListAdapter.cs
  17. +81 −0 XBSlink.Android/Libs/Grid/UsersItem.cs
  18. +59 −0 XBSlink.Android/Libs/Grid/UsersListAdapter.cs
  19. +51 −0 XBSlink.Android/Libs/LogManager.cs
  20. +131 −0 XBSlink.Android/Libs/NetworkCardManager.cs
  21. +91 −0 XBSlink.Android/LogActivity.cs
  22. +296 −0 XBSlink.Android/MainActivity.cs
  23. +216 −0 XBSlink.Android/MainChatActivity.cs
  24. +239 −0 XBSlink.Android/MainCloudsActivity.cs
  25. +74 −0 XBSlink.Android/MainPMActivity.cs
  26. +140 −0 XBSlink.Android/MainSettingsActivity.cs
  27. +106 −0 XBSlink.Android/MainUsersActivity.cs
  28. +49 −0 XBSlink.Android/Pages/MasterActivity.cs
  29. +48 −0 XBSlink.Android/Pages/MasterTab.cs
  30. +217 −0 XBSlink.Android/Pages/MasterTabContainer.cs
  31. +19 −0 XBSlink.Android/Properties/AndroidManifest.xml
  32. +41 −0 XBSlink.Android/Properties/AssemblyInfo.cs
  33. +44 −0 XBSlink.Android/Resources/AboutResources.txt
  34. +18 −0 XBSlink.Android/Resources/Drawable/CustomSelector.xml
  35. BIN XBSlink.Android/Resources/Drawable/Icon.png
  36. BIN XBSlink.Android/Resources/Drawable/Icon2.png
  37. BIN XBSlink.Android/Resources/Drawable/email.png
  38. BIN XBSlink.Android/Resources/Drawable/email_go.png
  39. BIN XBSlink.Android/Resources/Drawable/email_open.png
  40. BIN XBSlink.Android/Resources/Drawable/ic_tab_artists_grey.png
  41. BIN XBSlink.Android/Resources/Drawable/ic_tab_artists_white.png
  42. BIN XBSlink.Android/Resources/Drawable/icon_key.png
  43. +25 −0 XBSlink.Android/Resources/Layout/About.axml
  44. +35 −0 XBSlink.Android/Resources/Layout/CloudView.axml
  45. +32 −0 XBSlink.Android/Resources/Layout/CustomListItem.axml
  46. +20 −0 XBSlink.Android/Resources/Layout/Log.axml
  47. +21 −0 XBSlink.Android/Resources/Layout/MainTab.axml
  48. +37 −0 XBSlink.Android/Resources/Layout/MainTabChat.axml
  49. +82 −0 XBSlink.Android/Resources/Layout/MainTabClouds.axml
  50. +18 −0 XBSlink.Android/Resources/Layout/MainTabPM.axml
  51. +84 −0 XBSlink.Android/Resources/Layout/MainTabSettings.axml
  52. +18 −0 XBSlink.Android/Resources/Layout/MainTabUsers.axml
  53. +35 −0 XBSlink.Android/Resources/Layout/PMView.axml
  54. +38 −0 XBSlink.Android/Resources/Layout/Test1.axml
  55. +56 −0 XBSlink.Android/Resources/Layout/TestButtons.axml
  56. +35 −0 XBSlink.Android/Resources/Layout/UsersView.axml
  57. BIN XBSlink.Android/Resources/Raw/incoming_chat_msg.mp3
  58. BIN XBSlink.Android/Resources/Raw/new_node.mp3
  59. BIN XBSlink.Android/Resources/Raw/node_left.mp3
  60. +356 −0 XBSlink.Android/Resources/Resource.Designer.cs
  61. +6 −0 XBSlink.Android/Resources/Values/Colors.xml
  62. +5 −0 XBSlink.Android/Resources/Values/Strings.xml
  63. +160 −0 XBSlink.Android/Test2Activity.cs
  64. +93 −0 XBSlink.Android/TestActivity.cs
  65. +201 −0 XBSlink.Android/XBSlink.Android.csproj
  66. BIN XBSlink.Android/bin/Debug/XBSLink.Client.Android-Signed.apk
  67. BIN XBSlink.Android/bin/Debug/XBSLink.Client.Android.apk
  68. BIN XBSlink.Android/bin/Debug/XBSLink.Client.Android.dll
  69. BIN XBSlink.Android/bin/Debug/XBSLink.Client.Android.dll.mdb
  70. BIN XBSlink.Android/bin/Debug/XBSLink.Client.Android.pdb
  71. BIN XBSlink.Android/bin/Debug/XBSlink.Android.dll
  72. BIN XBSlink.Android/bin/Debug/XBSlink.Android.dll.mdb
  73. BIN XBSlink.Android/bin/Debug/XBSlink.Android.pdb
  74. BIN XBSlink.Android/obj/Debug/DesignTimeResolveAssemblyReferences.cache
  75. BIN XBSlink.Android/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
  76. 0 XBSlink.Android/obj/Debug/R.cs.flag
  77. 0 XBSlink.Android/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
  78. 0 XBSlink.Android/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
  79. +37 −0 XBSlink.Android/obj/Debug/XBSLink.Client.Android.csproj.FileListAbsolute.txt
  80. BIN XBSlink.Android/obj/Debug/XBSLink.Client.Android.dll
  81. BIN XBSlink.Android/obj/Debug/XBSLink.Client.Android.pdb
  82. +37 −0 XBSlink.Android/obj/Debug/XBSlink.Android.csproj.FileListAbsolute.txt
  83. BIN XBSlink.Android/obj/Debug/XBSlink.Android.dll
  84. BIN XBSlink.Android/obj/Debug/XBSlink.Android.pdb
  85. +22 −0 XBSlink.Android/obj/Debug/acw-map.txt
  86. +42 −0 XBSlink.Android/obj/Debug/android/AndroidManifest.xml
  87. BIN XBSlink.Android/obj/Debug/android/assets/Mono.Android.dll
  88. BIN XBSlink.Android/obj/Debug/android/assets/Mono.Android.dll.mdb
  89. BIN XBSlink.Android/obj/Debug/android/assets/Mono.Security.dll
  90. BIN XBSlink.Android/obj/Debug/android/assets/Mono.Security.dll.mdb
  91. BIN XBSlink.Android/obj/Debug/android/assets/System.Core.dll
  92. BIN XBSlink.Android/obj/Debug/android/assets/System.Core.dll.mdb
  93. BIN XBSlink.Android/obj/Debug/android/assets/System.Xml.dll
  94. BIN XBSlink.Android/obj/Debug/android/assets/System.Xml.dll.mdb
  95. BIN XBSlink.Android/obj/Debug/android/assets/System.dll
  96. BIN XBSlink.Android/obj/Debug/android/assets/System.dll.mdb
  97. BIN XBSlink.Android/obj/Debug/android/assets/XBSLink.Client.Android.dll
  98. BIN XBSlink.Android/obj/Debug/android/assets/XBSLink.Client.Android.dll.mdb
  99. BIN XBSlink.Android/obj/Debug/android/assets/XBSlink.Android.dll
  100. BIN XBSlink.Android/obj/Debug/android/assets/XBSlink.Android.dll.mdb
  101. +273 −0 XBSlink.Android/obj/Debug/android/assets/machine.config
  102. BIN XBSlink.Android/obj/Debug/android/assets/mscorlib.dll
  103. BIN XBSlink.Android/obj/Debug/android/assets/mscorlib.dll.mdb
  104. BIN XBSlink.Android/obj/Debug/android/bin/XBSLink.Client.Android.apk
  105. BIN XBSlink.Android/obj/Debug/android/bin/classes.dex
  106. BIN XBSlink.Android/obj/Debug/android/bin/classes/mono/MonoPackageManager.class
  107. BIN XBSlink.Android/obj/Debug/android/bin/classes/mono/MonoPackageManager_Resources.class
  108. BIN XBSlink.Android/obj/Debug/android/bin/classes/mono/MonoRuntimeProvider.class
  109. BIN XBSlink.Android/obj/Debug/android/bin/classes/mono/android/Seppuku.class
  110. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/AboutActivity.class
  111. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/BroadcastService.class
  112. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/LogActivity.class
  113. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/LogActivity_MyRunnable.class
  114. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainActivity.class
  115. BIN ...ndroid/obj/Debug/android/bin/classes/xbslink/android/MainActivity_ActivityBroadcastReceiver.class
  116. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainChatActivity.class
  117. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainChatActivity_MyRunnable.class
  118. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainChatActivity_UpdateUI.class
  119. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainCloudsActivity.class
  120. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainPMActivity.class
  121. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainSettingsActivity.class
  122. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MainUsersActivity.class
  123. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MasterTab.class
  124. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MasterTabContainer.class
  125. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/MyService.class
  126. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R$attr.class
  127. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R$color.class
  128. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R$drawable.class
  129. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R$id.class
  130. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R$layout.class
  131. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R$raw.class
  132. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R$string.class
  133. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/R.class
  134. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/Test2Activity.class
  135. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/TestActivity.class
  136. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/grid/CloudsListAdapter.class
  137. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/grid/PMListAdapter.class
  138. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/android/grid/UsersListAdapter.class
  139. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/AboutActivity.class
  140. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/LogActivity.class
  141. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/LogActivity_MyRunnable.class
  142. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainActivity.class
  143. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainChatActivity.class
  144. BIN ...nk.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainChatActivity_MyRunnable.class
  145. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainChatActivity_UpdateUI.class
  146. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainCloudsActivity.class
  147. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainPMActivity.class
  148. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainSettingsActivity.class
  149. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MainUsersActivity.class
  150. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MasterTab.class
  151. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MasterTabContainer.class
  152. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/MyService.class
  153. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R$attr.class
  154. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R$color.class
  155. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R$drawable.class
  156. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R$id.class
  157. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R$layout.class
  158. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R$raw.class
  159. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R$string.class
  160. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/R.class
  161. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/Test2Activity.class
  162. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/TestActivity.class
  163. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/libs/db/DBHelper.class
  164. BIN ...nk.Android/obj/Debug/android/bin/classes/xbslink/client/android/libs/grid/CloudsListAdapter.class
  165. BIN XBSlink.Android/obj/Debug/android/bin/classes/xbslink/client/android/libs/grid/PMListAdapter.class
  166. BIN ...ink.Android/obj/Debug/android/bin/classes/xbslink/client/android/libs/grid/UsersListAdapter.class
  167. BIN XBSlink.Android/obj/Debug/android/bin/mono.android.jar
  168. BIN XBSlink.Android/obj/Debug/android/bin/packaged_resources
  169. BIN XBSlink.Android/obj/Debug/android/bin/resources_and_assemblies
  170. +74 −0 XBSlink.Android/obj/Debug/android/src/mono/MonoPackageManager.java
  171. +68 −0 XBSlink.Android/obj/Debug/android/src/mono/MonoRuntimeProvider.java
  172. +19 −0 XBSlink.Android/obj/Debug/android/src/mono/android/Seppuku.java
  173. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/AboutActivity.java
  174. +54 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/BroadcastService.java
  175. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/LogActivity.java
  176. +54 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/LogActivity_MyRunnable.java
  177. +64 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainActivity.java
  178. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainActivity_ActivityBroadcastReceiver.java
  179. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainChatActivity.java
  180. +54 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainChatActivity_MyRunnable.java
  181. +109 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainChatActivity_UpdateUI.java
  182. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainCloudsActivity.java
  183. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainPMActivity.java
  184. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainSettingsActivity.java
  185. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MainUsersActivity.java
  186. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MasterTab.java
  187. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MasterTabContainer.java
  188. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/MyService.java
  189. +119 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/R.java
  190. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/Test2Activity.java
  191. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/TestActivity.java
  192. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/grid/CloudsListAdapter.java
  193. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/grid/PMListAdapter.java
  194. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/android/grid/UsersListAdapter.java
  195. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/AboutActivity.java
  196. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/LogActivity.java
  197. +54 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/LogActivity_MyRunnable.java
  198. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainActivity.java
  199. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainChatActivity.java
  200. +54 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainChatActivity_MyRunnable.java
  201. +109 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainChatActivity_UpdateUI.java
  202. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainCloudsActivity.java
  203. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainPMActivity.java
  204. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainSettingsActivity.java
  205. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MainUsersActivity.java
  206. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MasterTab.java
  207. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MasterTabContainer.java
  208. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/MyService.java
  209. +119 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/R.java
  210. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/Test2Activity.java
  211. +46 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/TestActivity.java
  212. +55 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/libs/db/DBHelper.java
  213. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/libs/grid/CloudsListAdapter.java
  214. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/libs/grid/PMListAdapter.java
  215. +73 −0 XBSlink.Android/obj/Debug/android/src/xbslink/client/android/libs/grid/UsersListAdapter.java
  216. +119 −0 XBSlink.Android/obj/Debug/android/xbslink/android/R.java
  217. +119 −0 XBSlink.Android/obj/Debug/android/xbslink/client/android/R.java
  218. BIN XBSlink.Android/obj/Debug/assemblies/Mono.Android.dll
  219. BIN XBSlink.Android/obj/Debug/assemblies/Mono.Android.dll.mdb
  220. BIN XBSlink.Android/obj/Debug/assemblies/Mono.Security.dll
  221. BIN XBSlink.Android/obj/Debug/assemblies/Mono.Security.dll.mdb
  222. BIN XBSlink.Android/obj/Debug/assemblies/System.Core.dll
  223. BIN XBSlink.Android/obj/Debug/assemblies/System.Core.dll.mdb
  224. BIN XBSlink.Android/obj/Debug/assemblies/System.Xml.dll
  225. BIN XBSlink.Android/obj/Debug/assemblies/System.Xml.dll.mdb
  226. BIN XBSlink.Android/obj/Debug/assemblies/System.dll
  227. BIN XBSlink.Android/obj/Debug/assemblies/System.dll.mdb
  228. BIN XBSlink.Android/obj/Debug/assemblies/XBSLink.Client.Android.dll
  229. BIN XBSlink.Android/obj/Debug/assemblies/XBSLink.Client.Android.dll.mdb
  230. BIN XBSlink.Android/obj/Debug/assemblies/XBSlink.Android.dll
  231. BIN XBSlink.Android/obj/Debug/assemblies/XBSlink.Android.dll.mdb
  232. BIN XBSlink.Android/obj/Debug/assemblies/mscorlib.dll
  233. BIN XBSlink.Android/obj/Debug/assemblies/mscorlib.dll.mdb
  234. 0 XBSlink.Android/obj/Debug/link.flag
  235. +1 −0 XBSlink.Android/obj/Debug/res/drawable/customselector.xml
  236. BIN XBSlink.Android/obj/Debug/res/drawable/email.png
  237. BIN XBSlink.Android/obj/Debug/res/drawable/email_go.png
  238. BIN XBSlink.Android/obj/Debug/res/drawable/email_open.png
  239. BIN XBSlink.Android/obj/Debug/res/drawable/ic_tab_artists_grey.png
  240. BIN XBSlink.Android/obj/Debug/res/drawable/ic_tab_artists_white.png
  241. BIN XBSlink.Android/obj/Debug/res/drawable/icon.png
  242. BIN XBSlink.Android/obj/Debug/res/drawable/icon2.png
  243. BIN XBSlink.Android/obj/Debug/res/drawable/icon_key.png
  244. +1 −0 XBSlink.Android/obj/Debug/res/layout/about.axml
  245. +1 −0 XBSlink.Android/obj/Debug/res/layout/cloudview.axml
  246. +1 −0 XBSlink.Android/obj/Debug/res/layout/log.axml
  247. +1 −0 XBSlink.Android/obj/Debug/res/layout/maintab.axml
  248. +1 −0 XBSlink.Android/obj/Debug/res/layout/maintabchat.axml
  249. +1 −0 XBSlink.Android/obj/Debug/res/layout/maintabclouds.axml
  250. +1 −0 XBSlink.Android/obj/Debug/res/layout/maintabpm.axml
  251. +1 −0 XBSlink.Android/obj/Debug/res/layout/maintabsettings.axml
  252. +1 −0 XBSlink.Android/obj/Debug/res/layout/maintabusers.axml
  253. +1 −0 XBSlink.Android/obj/Debug/res/layout/pmview.axml
  254. +1 −0 XBSlink.Android/obj/Debug/res/layout/test1.axml
  255. +1 −0 XBSlink.Android/obj/Debug/res/layout/testbuttons.axml
  256. +1 −0 XBSlink.Android/obj/Debug/res/layout/usersview.axml
  257. BIN XBSlink.Android/obj/Debug/res/raw/incoming_chat_msg.mp3
  258. BIN XBSlink.Android/obj/Debug/res/raw/new_node.mp3
  259. BIN XBSlink.Android/obj/Debug/res/raw/node_left.mp3
  260. +6 −0 XBSlink.Android/obj/Debug/res/values/colors.xml
  261. +5 −0 XBSlink.Android/obj/Debug/res/values/strings.xml
  262. +1 −0 XBSlink.Android/obj/Debug/resolved_assemblies.txt
  263. +15 −0 XBSlink.Android/obj/Debug/uploadflags.txt
  264. +115 −59 XBSlink/Form1.Designer.cs
  265. +462 −19 XBSlink/Form1.cs
  266. +3 −0 XBSlink/Form1.resx
  267. +31 −1 XBSlink/XBSlink.csproj
  268. +1 −0 XBSlink/XBSlink.csproj.user
  269. +54 −0 XBSlink/controls/ChatPrivateWindow.cs
  270. +65 −0 XBSlink/controls/ChatPrivateWindow.designer.cs
  271. +120 −0 XBSlink/controls/ChatPrivateWindow.resx
  272. +49 −0 XBSlink/controls/TabPageChat.cs
  273. BIN XBSlink/sounds/pm_msg.wav
  274. +18 −0 XBSlink/xbs_chat.cs
  275. +23 −0 XBSlink/xbs_cloud.cs
  276. +19 −14 XBSlink/xbs_cloudlist.cs
  277. +2 −1 XBSlink/xbs_messages.cs
  278. +10 −3 XBSlink/xbs_node.cs
  279. +31 −0 XBSlink/xbs_node_list.cs
  280. +51 −19 XBSlink/xbs_node_message.cs
  281. +39 −3 XBSlink/xbs_udp_listener.cs
  282. +44 −0 XBSlink/xlink/msg/xlink_client_send_chat_message.cs
  283. +50 −0 XBSlink/xlink/msg/xlink_create_cloud_create_join_message.cs
  284. +45 −0 XBSlink/xlink/msg/xlink_get_clouds_message.cs
  285. +605 −0 XBSlink/xlink/msg/xlink_msg.cs
  286. +50 −0 XBSlink/xlink/msg/xlink_server_create_cloud_message.cs
  287. +63 −0 XBSlink/xlink/msg/xlink_server_info_message.cs
  288. +44 −0 XBSlink/xlink/msg/xlink_server_my_chat_message.cs
  289. +45 −0 XBSlink/xlink/msg/xlink_server_my_pm_message.cs
  290. +48 −0 XBSlink/xlink/msg/xlink_server_user_chat_message.cs
  291. +45 −0 XBSlink/xlink/msg/xlink_server_user_offline_message.cs
  292. +48 −0 XBSlink/xlink/msg/xlink_server_user_online_message.cs
  293. +45 −0 XBSlink/xlink/msg/xlink_server_user_pm_message.cs
  294. +312 −0 XBSlink/xlink/xlink_client_messages_helper.cs
  295. +39 −0 XBSlink/xlink/xlink_delegates.cs
  296. +485 −0 XBSlink/xlink/xlink_server.cs
  297. +177 −0 XBSlink/xlink/xlink_server_console_process.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using Android.App;
+using Android.Content;
+using Android.OS;
+using Android.Runtime;
+using Android.Views;
+using Android.Widget;
+
+namespace XBSlink.Android
+{
+ [Activity(Label = "About XBSLink for Android")]
+ public class AboutActivity : Activity
+ {
+ protected override void OnCreate(Bundle bundle)
+ {
+ base.OnCreate(bundle);
+
+ // Create your application here
+
+ SetContentView(Resource.Layout.About);
+ }
+ }
+}
@@ -0,0 +1,19 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories) and given a Build Action of "AndroidAsset".
+
+These files will be deployed with you package and will be accessible using Android's
+AssetManager, like this:
+
+public class ReadAsset : Activity
+{
+ protected override void OnCreate (Bundle bundle)
+ {
+ base.OnCreate (bundle);
+
+ InputStream input = Assets.Open ("my_asset.txt");
+ }
+}
+
+Additionally, some Android functions will automatically load asset files:
+
+Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using Android.App;
+using Android.Content;
+
+namespace XBSlink.Android
+{
+ [Service]
+ public class BroadcastService : IntentService
+ {
+ public const string ACTION_NEW_TWEETS = "action.NEW_TWEETS";
+ public long LastSinceId { get; set; }
+ public BroadcastService() : base()
+ {
+ this.LastSinceId = 0;
+ }
+ protected override void OnHandleIntent(Intent intent)
+ {
+ var lastSinceId = this.LastSinceId;
+ //var tweets = Search.SearchTweets(lastSinceId, “#MonoDroid”);
+ //this.LastSinceId = tweets.Max(t => t.Id);
+ //if (tweets.Exists(t => t.Id > lastSinceId))
+ //{
+ // var newTweetsIntent = new Intent(ACTION_NEW_TWEETS);
+ // newTweetsIntent.PutExtra("oldSinceId", lastSinceId);
+ // SendBroadcast(newTweetsIntent);
+ //}
+ }
+ }
+}
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using Android.App;
+
+namespace XBSlink.Android.Managers
+{
+ public class ActivityManager
+ {
+
+ public LogActivity GetLogActivity(Activity activity)
+ {
+ return null;
+ //activity.
+ //return (LogActivity)LocalActivityManager.GetActivity("log");
+ }
+
+
+ }
+}
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using Android.Content;
+using Android.Widget;
+
+namespace XBSlink.Android
+{
+ class AlertMessage
+ {
+
+ public static void ShowAlert(Context context, string message)
+ {
+ Toast.MakeText(context, message, ToastLength.Short).Show();
+ }
+
+ }
+}
@@ -0,0 +1,228 @@
+using System;
+using System.Collections.Generic;
+using System.Net;
+using System.Text;
+using System.Threading;
+using Java.Net;
+using XBSlink.XlinkKai;
+
+namespace XBSlink.Android
+{
+ public class AndroidClientEngine
+ {
+
+ public const int standard_port = 31415;
+ public const int standard_kay_port = 34522;
+ public const int standard_kay_client_port = 34523;
+
+ public int udp_kay_socket_port;
+ public EndPoint _local_endpoint;
+
+
+ public string KAI_CLIENT_LOCAL_DEVICE = "00242BECE7A0";
+ public string KAI_CLIENT_LOCAL_NAME = "magurin";
+
+ public bool is_exiting;
+ public IPAddress _xbs_link_ip;
+
+ private Thread sender_thread = null;
+
+
+ //public delegate void XlinkDebugMessageHandler(string message_debug, xlink_msg.xbs_message_sender sender);
+ //public event XlinkDebugMessageHandler XlinkDebugMessage;
+
+ public delegate void ProcessReceivedMessageHandler(xlink_msg msg);
+ public event ProcessReceivedMessageHandler ProcessReceivedMessage;
+
+
+ List<xlink_msg> sender_msg = new List<xlink_msg>();
+
+ public AndroidClientEngine()
+ {
+ ChangeIPAddresPort( standard_kay_port);
+ // InitializeSocket();
+ }
+
+ public DatagramSocket s;
+
+ Thread receive_thread;
+
+
+ public void Start()
+ {
+ is_exiting = false;
+ sender_thread = new Thread(new ThreadStart(while_sender));
+ sender_thread.IsBackground = true;
+ sender_thread.Priority = ThreadPriority.Normal;
+ sender_thread.Start();
+
+ try
+ {
+ s = new DatagramSocket(standard_kay_client_port);
+ }
+ catch (Exception)
+ {
+ }
+
+ System.Console.WriteLine(" * initialized CONSOLE udp listener on port " + udp_kay_socket_port);
+ //ProcessDebugMessage(" * initialized CONSOLE udp listener on port " + udp_kay_socket_port, xlink_msg.xbs_message_sender.UDP_LISTENER);
+
+ receive_thread = new Thread(new ThreadStart(Receive));
+ receive_thread.IsBackground = true;
+ receive_thread.Priority = ThreadPriority.Normal;
+ receive_thread.Start();
+
+
+ }
+
+
+ void while_sender()
+ {
+ while (!is_exiting)
+ {
+ udp_sender();
+ Thread.Sleep(400);
+ }
+
+ }
+
+ void udp_sender()
+ {
+ if (sender_msg.Count > 0)
+ {
+ SendMessage(sender_msg[0]);
+ sender_msg.Remove(sender_msg[0]);
+ }
+ }
+
+ public void SendMessage(xlink_msg msg)
+ {
+ if (msg.src_ip != null)
+ {
+ SendMessage(s, msg.src_ip, msg.src_port, msg.Data);
+ }
+
+ }
+
+
+
+ public static void SendMessage(DatagramSocket s, IPAddress Ip, int port, string msgText)
+ {
+ var Data = xlink_msg.getUTF8BytesFromString(msgText);
+ SendMessage(s, Ip, port, Data);
+ }
+
+
+ public static void SendMessage(DatagramSocket s, string Ip, int port, string msgText)
+ {
+ SendMessage(s, IPAddress.Parse(Ip), port, msgText);
+ }
+
+ public static void SendMessage(DatagramSocket s, IPAddress Ip, int port, byte[] message)
+ {
+ InetAddress local = InetAddress.GetByName(Ip.ToString());
+ //int msg_length = message.Length;
+ //byte[] message = StrToByteArray(messageStr);
+ DatagramPacket p = new DatagramPacket(message, message.Length, local, port);
+ s.Send(p);
+ }
+
+
+ public static void SendMessage(DatagramSocket s, InetAddress Ip, int port, byte[] message)
+ {
+ DatagramPacket p = new DatagramPacket(message, message.Length, Ip, port);
+ s.Send(p);
+ }
+
+ int ByteArray = 4096;
+
+
+ void Receive()
+ {
+
+ is_exiting = false;
+
+ string text;
+
+ byte[] message;
+ int Port=-1;
+ string HostAddress = "";
+
+ DatagramPacket p;
+
+ while (!is_exiting)
+ {
+ message = new byte[ByteArray];
+ p = new DatagramPacket(message, message.Length);
+
+ try
+ {
+ s.Receive(p);
+ text = ByteArrayToStr(p.GetData()).Replace("\0", "").Replace("\0", string.Empty); //new String().Trim().ToCharArray(), 0, p.Length);
+ message = StrToByteArray(text);
+ HostAddress = p.Address.HostAddress;
+ Port = p.Port;
+ //s.Close();
+ }
+ catch (Exception)
+ {
+ }
+
+ if (message.Length > 0)
+ PacketReceived(HostAddress, Port, message);
+
+ }
+ //Log.d("Udp tutorial", "message:" + text);
+ //s.Close();
+
+ }
+
+
+ public void PacketReceived(string IpAdress, int Port, byte[] message)
+ {
+ xlink_msg msg = new xlink_msg(message);
+ if (msg != null)
+ {
+ //remote_endpoint = (IPEndPoint)ep;
+ msg.src_ip = IPAddress.Parse(IpAdress);
+ msg.src_port = Port;
+
+ //ProcesamosMSG
+ if (ProcessReceivedMessage != null)
+ ProcessReceivedMessage(msg);
+ }
+ }
+
+
+ public void Close()
+ {
+
+ }
+
+ public void ChangeIPAddresPort( int console_port)
+ {
+ // _xbs_link_ip = IPAddress.Parse(xbs_link_ip);
+ udp_kay_socket_port = console_port;
+ }
+
+ public void Listen(int port)
+ {
+
+ }
+
+ public static string ByteArrayToStr(byte[] str)
+ {
+ //var buf = Encoding.Convert(Encoding.GetEncoding("iso-8859-1"), Encoding.UTF8, str);
+ return Encoding.UTF8.GetString(str);
+ }
+
+ public static byte[] StrToByteArray(string str)
+ {
+ System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
+ return encoding.GetBytes(str);
+ }
+
+
+
+ }
+}
Oops, something went wrong.

0 comments on commit a49307a

Please sign in to comment.