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
package com.google.android.gcm.demo.app; | |
import android.content.Context; | |
import android.content.Intent; | |
public final class CommonUtilities { | |
/** サードパーティのID登録/解除用URL */ | |
static final String SERVER_URL = "http://localhost:8080/jsp"; |
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.UnsupportedEncodingException; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class StringUtils { | |
/** バイトチェックする際の文字列エンコード */ | |
public static final String ENCODING = "SJIS"; | |
/** |
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
<pre style="font: 10px/5px monospace;"><span style="color: #b78550;"></span><span style="color: #af7d48;">#</span><span style="color: #b6834c;">#</span><span style="color: #c28b53;">#</span><span style="color: #c38c54;">#</span><span style="color: #be8955;">#</span><span style="color: #bb8757;">#</span><span style="color: #cd9d6d;">#</span><span style="color: #d5a66e;">#</span><span style="color: #d2a469;">#</span><span style="color: #d4a66b;">#</span><span style="color: #d3a46e;">#</span><span style="color: #d2a669;">#</span><span style="color: #d3a873;">#</span><span style="color: #cb9e74;">#</span><span style="color: #d0a280;">#</span><span style="color: #c69877;">#</span><span style="color: #9f734c;">#</span><span style="color: #a1764c;">#</span><span style="color: #b3885d;">#</span><span style="color: #ad8152;">#</span><span style="color: #b17f4c;">#</span><span style="color: #c9965f;">#</span><span style="color: #d09f65;">#</span><span style="color: #cd9f63;">#</span><span style="color: #d1a568;">#</spa |
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.security.InvalidKeyException; | |
import java.security.NoSuchAlgorithmException; | |
import javax.crypto.BadPaddingException; | |
import javax.crypto.Cipher; | |
import javax.crypto.IllegalBlockSizeException; | |
import javax.crypto.NoSuchPaddingException; | |
import javax.crypto.spec.SecretKeySpec; | |
import org.apache.commons.codec.DecoderException; |
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.text.SimpleDateFormat; | |
import java.util.Calendar; | |
public class Sample1 { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
String str = "メンタルにがり"; | |
System.out.println("print : " + str); |
NewerOlder