2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
20 using Tizen.CallManager;
22 namespace XamarinForTizen.Tizen
24 internal static class Globals
26 internal static string LogTag = "CallManagerTest";
27 internal static CmClientHandle cmHandle = null;
28 internal static string Number = "9900816947";
29 internal static bool DialTest = false;
30 internal static bool HoldTest = false;
32 public class App : Application
34 private static bool s_isTelephonySupported = false;
37 SystemInfo.TryGetValue("http://tizen.org/feature/network.telephony", out s_isTelephonySupported);
38 if (s_isTelephonySupported)
40 Log.Debug(Globals.LogTag, "Telephony feature check = " + s_isTelephonySupported);
41 MainPage = new NavigationPage(new MainPage());
46 Log.Debug(Globals.LogTag, "Telephony feature is not supported");
50 protected override void OnStart()
52 // Handle when your app starts
55 protected override void OnSleep()
57 // Handle when your app sleeps
60 protected override void OnResume()
62 // Handle when your app resumes
66 class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
68 private static App _app;
69 protected override void OnCreate()
73 Log.Debug(Globals.LogTag, "OnCreate()");
75 LoadApplication(_app);
78 public static App getApp()
82 static void Main(string[] args)
84 var app = new Program();
85 global::Xamarin.Forms.Platform.Tizen.Forms.Init(app);