This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <省略> | |
| using Xamarin.Controls; | |
| namespace AlertCenterSample | |
| { | |
| [Activity (Label = "AlertCenterSample", MainLauncher = true)] | |
| public class Activity1 : Activity | |
| { | |
| protected override void OnCreate(Bundle bundle) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # [変更]custom/asides/top_category_list.html を任意の位置に挿入する | |
| default_asides: [custom/asides/about.html, asides/recent_posts.html, custom/asides/top_category_list.html] | |
| # [追加]カテゴリの表示件数 | |
| top_category_limit: 15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Intent intent = new Intent(context, TestService.class); | |
| final ServiceConnection conn = new ServiceConnection() { | |
| public void onServiceConnected(ComponentName name, IBinder service) { | |
| Log.i("ServiceTest", "onServiceConnected"); | |
| binder = ITestService.Stub.asInterface(service); | |
| } | |
| // stopService すると呼ばれる | |
| public void onServiceDisconnected(ComponentName name) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell pm uninstall -k <package name> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| long t = System.currentTimeMillis(); | |
| Log.d("By DateFormat", DateFormat.format("HH:mm", t).toString()); | |
| Log.d("By SimpleDateFormat", new SimpleDateFormat("HH:mm").format(new Date(t))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Drawing; | |
| using MonoTouch.Foundation; | |
| using MonoTouch.UIKit; | |
| using System.IO.IsolatedStorage; | |
| using System.IO; | |
| namespace IsolatedStorageiOSTest | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ICELAND = new LatLng(64.88, -18.32); | |
| var LIBREVILLE = new LatLng(0.401, 9.459); | |
| _map.AddCircle(new CircleOptions() | |
| .InvokeCenter(ICELAND) | |
| .InvokeStrokeColor(Color.Blue.ToArgb()) | |
| .InvokeStrokeWidth(5f) | |
| .InvokeRadius(5000000)); // 500km | |
| _map.AddCircle(new CircleOptions() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public override void ViewDidLoad () | |
| { | |
| base.ViewDidLoad (); | |
| var camera = CameraPosition.FromCamera (-37.81969, 144.966085, 4); | |
| var mapView = MapView.FromCamera (RectangleF.Empty, camera); | |
| var sydneyMarker = new Marker () { | |
| Title = "Sydney", | |
| Snippet = "Population: 4,605,992", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.activityrecognizingsample" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <uses-sdk | |
| android:minSdkVersion="8" | |
| android:targetSdkVersion="17" /> | |
| <uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.fusedlocationprovidersample" | |
| android:versionCode="1" | |
| android:versionName="1.0" > | |
| <uses-sdk | |
| android:minSdkVersion="8" | |
| android:targetSdkVersion="17" /> | |
| <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> |