This file contains 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 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
package com.amay077.android.location; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.Bundle; |
This file contains 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 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 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 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
<metadata> | |
<remove-node path="/api/package[@name='com.google.android.gms.maps']/class[@name='GoogleMapOptionsCreator']" /> | |
<remove-node path="/api/package[@name!='com.google.android.gms.maps' | |
and @name != 'com.google.android.gms.maps.model' | |
and @name != 'com.google.android.gms.common' | |
and @name != 'com.google.android.gms.location']" /> | |
<remove-node path="/api/package[@name='com.google.android.gms.maps.model']/class[contains (@name, 'Creator')]" /> | |
<remove-node path="/api/package[@name='com.google.android.gms.location']/class[contains (@name, 'Creator')]" /> | |
<attr path="/api/package[@name='com.google.android.gms.maps']" name="managedName">Android.Gms.Maps</attr> |
This file contains 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 dumpsys power |
This file contains 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
// Tap gesture | |
this.View.AddGestureRecognizer(new UITapGestureRecognizer(tap => | |
{ | |
Debug.WriteLine("Double Tap."); | |
}) | |
{ | |
NumberOfTapsRequired = 2 // Double tap | |
}); | |
// Drag(Pan) gesture |
This file contains 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 partial class PullUpToCloseSampleViewController : UIViewController | |
{ | |
public PullUpToCloseSampleViewController() : base ("PullUpToCloseSampleViewController", null) | |
{ | |
} | |
public override void ViewDidLoad() | |
{ | |
base.ViewDidLoad(); |
This file contains 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
import java.io.BufferedWriter; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.OutputStream; | |
import java.io.OutputStreamWriter; | |
import android.content.Context; | |
import android.os.Environment; | |
import android.test.InstrumentationTestCase; | |
import android.util.Log; |