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
#!/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
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
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
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; |
NewerOlder