2. Xamarin.Android 2.2 Hello Xamarin Android 구조? 2.2.6 Simple Intent Example (웹페이지 오픈하기) 탑크리에듀 http://www.topcredu.co.kr/
2.2.6 Simple Intent Example  “OpenWebpage“ 라는 이름의 Xamarin.Android 프로젝트 생성  ResourcelayoutMain.axml 탑크리에듀 http://www.topcredu.co.kr/ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Button android:id="@+id/myButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout>
2.2.6 Simple Intent Example  ResourcevaluesStrings.xml 탑크리에듀 http://www.topcredu.co.kr/ <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Go! OracleJava Community</string> <string name="app_name">OpenWebpage</string> </resources>  ResourcevaluesStrings.xml using System; using Android.App; using Android.Content; using Android.Runtime;
2.2.6 Simple Intent Example 탑크리에듀 http://www.topcredu.co.kr/ using Android.Views; using Android.Widget; using Android.OS; namespace OpenWebpage { [Activity (Label = "OpenWebpage", MainLauncher = true)] public class MainActivity : Activity { 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);
2.2.6 Simple Intent Example 탑크리에듀 http://www.topcredu.co.kr/ button.Click += (sender, e) => { var uri = Android.Net.Uri.Parse ("http://ojc.asia"); var intent = new Intent (Intent.ActionView, uri); StartActivity (intent);

2. xamarin.android 2.2 hello xamarin android 구조 2.2.6 simple intent example(웹페이지 오픈하기)

  • 1.
    2. Xamarin.Android 2.2 HelloXamarin Android 구조? 2.2.6 Simple Intent Example (웹페이지 오픈하기) 탑크리에듀 http://www.topcredu.co.kr/
  • 2.
    2.2.6 Simple IntentExample  “OpenWebpage“ 라는 이름의 Xamarin.Android 프로젝트 생성  ResourcelayoutMain.axml 탑크리에듀 http://www.topcredu.co.kr/ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <Button android:id="@+id/myButton" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout>
  • 3.
    2.2.6 Simple IntentExample  ResourcevaluesStrings.xml 탑크리에듀 http://www.topcredu.co.kr/ <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Go! OracleJava Community</string> <string name="app_name">OpenWebpage</string> </resources>  ResourcevaluesStrings.xml using System; using Android.App; using Android.Content; using Android.Runtime;
  • 4.
    2.2.6 Simple IntentExample 탑크리에듀 http://www.topcredu.co.kr/ using Android.Views; using Android.Widget; using Android.OS; namespace OpenWebpage { [Activity (Label = "OpenWebpage", MainLauncher = true)] public class MainActivity : Activity { 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);
  • 5.
    2.2.6 Simple IntentExample 탑크리에듀 http://www.topcredu.co.kr/ button.Click += (sender, e) => { var uri = Android.Net.Uri.Parse ("http://ojc.asia"); var intent = new Intent (Intent.ActionView, uri); StartActivity (intent);