コード例 #1
0
		static void Initialize ()
		{
			main_form = new SWF.Form ();
			main_form.FormBorderStyle = SWF.FormBorderStyle.FixedSingle;
			main_form.MaximizeBox = false;
			main_form.MinimizeBox = false;
			main_form.ClientSize = device_config.Size;
			main_form.Name = "XobotOS";
			main_form.Text = "XobotOS";

			control = new XobotControl ();

			system_thread = ActivityThread.systemMain ();
			ContextImpl context = system_thread.getSystemContext ();
			package_manager = (XobotPackageManager)context.getPackageManager ();
		}
コード例 #2
0
		internal static int StartActivity (IApplicationThread whoThread, Intent intent, string type,
		                                   Activity target, int requestCode)
		{
			var component = intent.getComponent ();
			if (component == null)
				return IActivityManagerClass.START_CLASS_NOT_FOUND;

			var info = package_manager.getActivityInfo (component, 0);
			if (info == null)
				return IActivityManagerClass.START_CLASS_NOT_FOUND;

			ActivityThread thread = new ActivityThread ();

			Activity activity = thread.startActivityNow (
				main_activity, null, intent, info, null, null, null);

			if (activity == null)
				return IActivityManagerClass.START_NOT_ACTIVITY;

			ThreadPool.QueueUserWorkItem ((state) => StartActivity (activity));

			return IActivityManagerClass.START_SUCCESS;
		}
コード例 #3
0
ファイル: ActivityThread.cs プロジェクト: hakeemsm/XobotOS
			internal ApplicationThread(ActivityThread _enclosing)
			{
				this._enclosing = _enclosing;
			}
コード例 #4
0
ファイル: ActivityThread.cs プロジェクト: hakeemsm/XobotOS
			internal ProviderClientRecord(ActivityThread _enclosing, string name, android.content.IContentProvider
				 provider, android.content.ContentProvider localProvider)
			{
				throw new System.NotImplementedException();
			}
コード例 #5
0
ファイル: ActivityThread.cs プロジェクト: hakeemsm/XobotOS
			internal ProviderRefCount(ActivityThread _enclosing, int pCount)
			{
				throw new System.NotImplementedException();
			}
コード例 #6
0
ファイル: ActivityThread.cs プロジェクト: hakeemsm/XobotOS
			internal GcIdler(ActivityThread _enclosing)
			{
				this._enclosing = _enclosing;
			}
コード例 #7
0
ファイル: ActivityThread.cs プロジェクト: hakeemsm/XobotOS
			internal H(ActivityThread _enclosing)
			{
				this._enclosing = _enclosing;
			}