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
// max count | |
int max = 10; | |
for (int i = 0; i < max; i++) | |
{ | |
Console.WriteLine("Hello " + i.toString() + " times."); | |
} | |
// おわり |
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
import android.app.Activity; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class MainActivity extends Activity { | |
/** static な変数 */ | |
private static int id = 0; | |
/** Called when the activity is first created. */ |
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
////////////////////////////////////////////////// | |
// AppBean.java | |
////////////////////////////////////////////////// | |
package com.amay077.android.statictest; | |
import android.app.Application; | |
public class AppBean extends Application { | |
private int id = 0; |
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.os; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import android.app.ProgressDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.DialogInterface.OnCancelListener; | |
import android.os.AsyncTask; |
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.view; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.util.Random; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import jp.co.cosmoroot.gequu.R; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; |
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 class Hoge { // implements Comparable してない | |
private int num = 0; | |
public Hoge(int num) { this.num = num; } | |
} | |
@Override | |
public void onCreate() { | |
Set<Hoge> hogeSet = new TreeSet<Hoge>(); | |
hogeSet.add(new Hoge(1)); // ← Gingerbread だとここで例外 |
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 class HogeOverlay extends Overlay implements OnGestureListener { | |
private GestureDetector gestureDetector = null; | |
public HogeOverlay() { | |
gestureDetector = new GestureDetector(this); | |
} | |
@Override | |
public boolean onTouchEvent(MotionEvent e, MapView mapView) { | |
// GestureDetector にタッチイベントを詳細化してもらう |
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
# coding: UTF-8 | |
# テキストファイルを、10行ずつ区切るだけのプログラム | |
# Created 2011.9.12 @amay077 | |
import codecs | |
# 入力ファイルを開く | |
fin = codecs.open('input.csv', 'r', 'utf-8') | |
# 一応初期化 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
xmlns:mx="library://ns.adobe.com/flex/mx" | |
title="HomeView"> | |
<fx:Declarations> | |
<!-- 非ビジュアルエレメント (サービス、値オブジェクトなど) をここに配置 --> | |
</fx:Declarations> | |
<maps:Map xmlns:maps="com.google.maps.*" id="map" |
OlderNewer