moonmile solutions 分室

ソフトウェア開発者の情報収集をリアルタイムで垂れ流し...という具合に行きます。

android のビルド

Preparing to Build | Android Open Source Project https://source.android.com/source/building.html

Establishing a Build Environment | Android Open Source Project https://source.android.com/source/initializing.html

16.10 では std::unique でエラーになるので、14.04 でやり直し。

  • 2017/02/15 12:04 repo sync でダウンロード中

程よく完了。

Android のバックグラウンド処理

【Android】サービス(Service)を使ってバックグラウンド処理をする(1) | 桜花満開/テンシホタル http://blog.oukasoft.com/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%A0/%E3%80%90android%E3%80%91%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9%EF%BC%88service%EF%BC%89%E3%82%92%E4%BD%BF%E3%81%A3%E3%81%A6%E3%83%90%E3%83%83%E3%82%AF%E3%82%B0%E3%83%A9%E3%82%A6%E3%83%B3%E3%83%89/

Android の Intent

Intentで情報を伝える | TechBooster http://techbooster.org/android/application/17324/

UWPの共有みたいなものか。

private void Btn_Click(object sender, EventArgs e) { Intent intent = new Intent(MediaStore.ActionImageCapture); file = new File(dir, String.Format("myPhoto{0}.jpg", Guid.NewGuid())); intent.PutExtra(MediaStore.ExtraOutput, Android.Net.Uri.FromFile(file)); StartActivityForResult(intent, 0); }

protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { base.OnActivityResult(requestCode, resultCode, data);

// Make it available in the gallery

Intent mediaScanIntent = new Intent(Intent.ActionMediaScannerScanFile);
var contentUri = Android.Net.Uri.FromFile(_file);
mediaScanIntent.SetData(contentUri);
SendBroadcast(mediaScanIntent);

// Display in ImageView. We will resize the bitmap to fit the display.
// Loading the full sized image will consume to much memory
// and cause the application to crash.

int height = Resources.DisplayMetrics.HeightPixels;
int width = image1.Height;
bitmap = _file.Path.LoadAndResizeBitmap(width, height);
if (bitmap != null)
{
    image1.SetImageBitmap(bitmap);
    bitmap = null;
}
// Dispose of the Java side bitmap.
GC.Collect();

}

Windows 10 OSをSSDに移行

Windows 10 OSをSSDに移行する方法 http://jp.easeus.com/partition-manager/transfer-windows10-to-ssd.html

Windows 10をSSDに移行!OSとアプリを再インストールする必要がない! http://jp.easeus.com/todo-backup-resource/move-windows10-to-ssd-without-reinstalling-windows.html

Windows10でSSD(128GB)からSSD(250GB)にクローンしてデータ移行 | あいしんくいっと http://i-think-it.net/windows10-ssd128gb-ssd256gb-change-clone/#SSD-2

Win10へアップグレードしたら『HDD』を『SSD』に換装しよう | パソコン@エンジニアの休日 http://xinroom.net/pc/windows10-upgrade-ssd/#HDDSSD-3