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 static void burbuja(int[] Arreglo) { | |
int i, j, aux; | |
for (i = 0; i < Arreglo.length -1; i++) { | |
for (j = 0; j < Arreglo.length -1; j++) { | |
if (Arreglo[j] > Arreglo[j + 1]) { | |
aux = Arreglo[j]; | |
Arreglo[j] = Arreglo[j + 1]; | |
Arreglo[j + 1] = aux; | |
} | |
} |
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
private void sendSMS() { | |
/*SEND SMS FROM AN ANDROID PHONE*/ | |
checkSMSStatePermission(); | |
String phone = "4455877998"; | |
String text = "Hellow im sending this SMS from my app"; | |
SmsManager sms = SmsManager.getDefault(); | |
sms.sendTextMessage(phone, null, text, null, null); | |
} | |
private void checkSMSStatePermission() { |