Skip to content

Instantly share code, notes, and snippets.

View esp8266-smart-config.ino
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
void setup() {
int cnt = 0;
// set for STA mode
// put your setup code here, to run once:
s90304a123 / gist:f4db821eec5afe41247c
Created Aug 28, 2015
android直接關閉來電 必須要用sdk api level 8才可以正常使用
View gist:f4db821eec5afe41247c
* 直接關閉來電
* @throws NoSuchMethodException
* @throws InvocationTargetException
* @throws IllegalAccessException
* @throws ClassNotFoundException
private void endCallIfBlocked( ) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, ClassNotFoundException
s90304a123 /
Last active Aug 29, 2015
android app利用javax.mail.Authenticator與完成google gmail寄信的功能!
package com.example.mail;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.mail.Message;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;