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.xsota.twittergps.twittergps; | |
import android.Manifest; | |
import android.content.Context; | |
import android.content.pm.PackageManager; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.AsyncTask; | |
import android.os.Build; |
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
add-apt-repository ppa:webupd8team/java | |
java -version | |
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' | |
apt-get install jenkins | |
apt-get install nginx | |
apt-get install emacs24 | |
emacs /etc/nginx/sites-available/default | |
service nginx start | |
service --status-all |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name localhost; | |
location / { |
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
#!/bin/sh | |
SAVE_DIR=./screenshot | |
FILE_PATH=$SAVE_DIR/`date +%Y%m%d%H%M%S`.png | |
TMP_FILE=/sdcard/ss.pn | |
# capture screen image | |
mkdir -p $SAVE_DIR 2>/dev/null | |
adb shell screencap -p $TMP_FILE | |
adb pull $TMP_FILE $FILE_PATH |
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"?> | |
<manifest package="com.xsota.osmdroidtest" | |
xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!--<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>--> | |
<!--<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>--> | |
<!--<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />--> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
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"?> | |
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:paddingBottom="@dimen/activity_vertical_margin" | |
android:paddingLeft="@dimen/activity_horizontal_margin" | |
android:paddingRight="@dimen/activity_horizontal_margin" | |
android:paddingTop="@dimen/activity_vertical_margin" |
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.xsota.osmdroidtest; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import org.osmdroid.tileprovider.tilesource.TileSourceFactory; | |
import org.osmdroid.views.MapView; | |
public class MainActivity extends AppCompatActivity { |
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
// 地図 | |
final MapView map = (MapView) findViewById(R.id.map); | |
// map.setTileSource(TileSourceFactory.MAPNIK); | |
map.setBuiltInZoomControls(true); // ズームとかのコントローラ表示 | |
map.setMultiTouchControls(true); // マルチタッチ有効 | |
final ArrayList<OverlayItem> overlayItems = new ArrayList<>(); | |
overlayItems.add(new OverlayItem("ふじやま","ここがふじやま",new GeoPoint(35.360556,138.727778))); | |
// icon用overlay |
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
// 地図 | |
final MapView map = (MapView) findViewById(R.id.map); | |
// map.setTileSource(TileSourceFactory.MAPNIK); | |
map.setBuiltInZoomControls(true); // ズームとかのコントローラ表示 | |
map.setMultiTouchControls(true); // マルチタッチ有効 | |
final ArrayList<OverlayItem> overlayItems = new ArrayList<>(); | |
overlayItems.add(new OverlayItem("ふじやま","ここがふじやま",new GeoPoint(35.360556,138.727778))); |
OlderNewer