Skip to content

Instantly share code, notes, and snippets.

Avatar

Ludovic FRIN ludovicfrin

View GitHub Profile
@ludovicfrin
ludovicfrin / SendSmsActivity.java
Last active Feb 1, 2016
Envoi d'un SMS sous Android
View SendSmsActivity.java
public class SendSmsActivity extends AppCompatActivity {
...
private void sendSms(String recipient, String message) {
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(recipient, null, message, null, null);
} catch (Exceptione e) {
e.printStackTrace();
}
}
@ludovicfrin
ludovicfrin / ReadSmsActivity.java
Last active Feb 1, 2016
Lecture de la liste des SMS sous Android
View ReadSmsActivity.java
/**
* Activité de lecture des SMS
*
* @author Ludovic FRIN
*/
public class ReadSmsActivity extends AppCompatActivity implements LoaderManager.LoaderCallbacks<Cursor> {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
You can’t perform that action at this time.