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
| <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 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 dumpsys power |
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(); | |
| SizeF imageSize = new SizeF(320f, 460f); | |
| for (int i = 0; i < 3; i++) | |
| { | |
| var image = UIImage.FromFile(String.Format("image{0}.png", i)); | |
| var imgView = new UIImageView(image); |
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.Diagnostics; | |
| namespace GesturesSample | |
| { | |
| public partial class GesturesSampleViewController : UIViewController | |
| { |
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
| // Tap gesture | |
| this.View.AddGestureRecognizer(new UITapGestureRecognizer(tap => | |
| { | |
| Debug.WriteLine("Double Tap."); | |
| }) | |
| { | |
| NumberOfTapsRequired = 2 // Double tap | |
| }); | |
| // Drag(Pan) gesture |
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 partial class PullUpToCloseSampleViewController : UIViewController | |
| { | |
| public PullUpToCloseSampleViewController() : base ("PullUpToCloseSampleViewController", null) | |
| { | |
| } | |
| public override void ViewDidLoad() | |
| { | |
| base.ViewDidLoad(); |
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" | |
| android:versionCode="1" | |
| android:versionName="1.0" | |
| package="com.amay077.sample.googlemapv2sample"> <--------※1 | |
| <uses-feature android:glEsVersion="0x00020000" android:required="true" /> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> |
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 formatted = marked(markdown_text) |
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
| 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; |
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 void singleThreadExecutorBasicTest() throws Exception { | |
| final ExecutorService executor = Executors.newSingleThreadExecutor(); | |
| Log.d(TAG, "Primary ThreadID:" + Thread.currentThread().getId()); | |
| executor.submit(new Runnable() { | |
| @Override | |
| public void run() { | |
| Log.d(TAG, "Run task A. ThreadId:" + Thread.currentThread().getId()); | |
| } | |
| }); |