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
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(); | |
} | |
} |
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
/** | |
* 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); |
NewerOlder