+ /// context 上下文
+ /// return int 网络状态 {@link #NETWORKTYPE_2G},{@link #NETWORKTYPE_3G}
+ /// {@link #NETWORKTYPE_INVALID},{@link #NETWORKTYPE_WAP}* {@link #NETWORKTYPE_WIFI}
+ ///
+ public static int getNetWorkType(Context context)
+ {
+ int mNetWorkType = 0;
+ ConnectivityManager manager = (ConnectivityManager)context.GetSystemService(Context.ConnectivityService);
+ NetworkInfo networkInfo = manager.ActiveNetworkInfo;
+
+
+ if (networkInfo != null && networkInfo.IsConnected)
+ {
+ String type = networkInfo.TypeName;
+
+
+ if (type.Equals("WIFI".ToUpper()))
+ {
+ mNetWorkType = NETWORKTYPE_WIFI;
+ }
+ else if (type.Equals("MOBILE".ToUpper()))
+ {
+ String proxyHost = Proxy.DefaultHost;
+ //String proxyHost = android.net.Proxy.getDefaultHost();
+ //mNetWorkType = TextUtils.IsEmpty(proxyHost) ? (isFastMobileNetwork(context) ? NETWORKTYPE_3G : NETWORKTYPE_2G) : NETWORKTYPE_WAP;
+ }
+ }
+ else
+ {
+ mNetWorkType = NETWORKTYPE_INVALID;
+ }
+ return mNetWorkType;
+ }
+ }
+}
\ No newline at end of file
diff --git a/XXCpzs.Android/Services/NotifyService.cs b/XXCpzs.Android/Services/NotifyService.cs
new file mode 100644
index 0000000..689fb80
--- /dev/null
+++ b/XXCpzs.Android/Services/NotifyService.cs
@@ -0,0 +1,18 @@
+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 XXCpzs.Droid.Services
+{
+ class NotifyService
+ {
+ }
+}
\ No newline at end of file
diff --git a/XXCpzs.Android/Services/TextToSpeechService.cs b/XXCpzs.Android/Services/TextToSpeechService.cs
new file mode 100644
index 0000000..6cb14d5
--- /dev/null
+++ b/XXCpzs.Android/Services/TextToSpeechService.cs
@@ -0,0 +1,83 @@
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Android.Speech.Tts;
+using XXCpzs.Services;
+
+namespace XXCpzs.Droid.Services
+{
+ public class TextToSpeechService : Java.Lang.Object, ITextToSpeechService, TextToSpeech.IOnInitListener,
+#pragma warning disable CS0618
+ TextToSpeech.IOnUtteranceCompletedListener
+#pragma warning restore CS0618
+ {
+ TextToSpeech speaker;
+ TaskCompletionSource