Skip to content

Instantly share code, notes, and snippets.

幼耳 s90304a123

Block or report user

Report or block s90304a123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@s90304a123
s90304a123 / GMailSender.java
Last active Aug 29, 2015
android app利用javax.mail.Authenticator與java.security.Provider完成google gmail寄信的功能!
View GMailSender.java
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;
@s90304a123
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
View esp8266-smart-config.ino
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
void setup() {
int cnt = 0;
// set for STA mode
WiFi.mode(WIFI_STA);
// put your setup code here, to run once:
You can’t perform that action at this time.