شما به چه صورت
خروجی میگیرید؟
یعنی چی چطوری خروجی میگیرم دوست عزیزم ؟ باید چطوری بگیرم ؟ خوب پروژه رو کامپایل میکنم 2 تا apk میسازه که در تصویر مشخه هر کدوم رو که رو گوشی بریزم اولی که نصب نمیشه یعنی در آخر نصب میگه نصب موفقیت آمیز نبود دومی ( که signed ) هست نصب میشه ولی در هنگام اجرا قابلیت اجرا نداره یهو در ابتدای باز شدن میپره بیرون و اجرا نمیشه .
پروژه من هم ساده ساده هست کدش همون کدی هست که ویژوال استودیو ساخته :
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace App1
{
[Activity(Label = "App1", MainLauncher = true, Icon = "@drawable/icon")]
public class Activity1 : Activity
{
int count = 1;
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
// Get our button from the layout resource,
// and attach an event to it
Button button = FindViewById<Button>(Resource.Id.MyButton);
button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };
}
}
}
235436536.jpg