Tatoo compatibility
This commit is contained in:
parent
b03884c987
commit
630b48b63e
@ -1,22 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.openwide.android"
|
package="com.openwide.android" android:versionCode="2"
|
||||||
android:versionCode="1"
|
android:versionName="1.0.1">
|
||||||
android:versionName="1.0">
|
<application android:label="@string/app_name" android:icon="@drawable/multisms">
|
||||||
<application android:label="@string/app_name" android:icon="@drawable/multisms">
|
<activity android:name=".MultiSmsSender" android:label="@string/app_name">
|
||||||
<activity android:name=".MultiSmsSender"
|
<intent-filter>
|
||||||
android:label="@string/app_name">
|
<action android:name="android.intent.action.MAIN" />
|
||||||
<intent-filter>
|
<category android:name="android.intent.category.LAUNCHER" />
|
||||||
<action android:name="android.intent.action.MAIN" />
|
</intent-filter>
|
||||||
<category android:name="android.intent.category.LAUNCHER" />
|
</activity>
|
||||||
</intent-filter>
|
<activity android:name=".PhoneNumberSelection"></activity>
|
||||||
</activity>
|
<activity android:name="SelectGroupActivity"></activity>
|
||||||
<activity android:name=".PhoneNumberSelection"></activity>
|
<activity android:name="GroupEditActivity"></activity>
|
||||||
<activity android:name="SelectGroupActivity"></activity>
|
</application>
|
||||||
<activity android:name="GroupEditActivity"></activity>
|
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"/>
|
||||||
</application>
|
<supports-screens android:smallScreens="true"
|
||||||
<uses-sdk android:minSdkVersion="3" />
|
android:anyDensity="true" />
|
||||||
<uses-permission android:name="android.permission.READ_CONTACTS"></uses-permission>
|
<uses-permission android:name="android.permission.READ_CONTACTS"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.SEND_SMS"></uses-permission>
|
<uses-permission android:name="android.permission.SEND_SMS"></uses-permission>
|
||||||
<uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>
|
<uses-permission android:name="android.permission.RECEIVE_SMS"></uses-permission>
|
||||||
</manifest>
|
</manifest>
|
@ -9,6 +9,7 @@ import android.app.ProgressDialog;
|
|||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
import android.telephony.PhoneNumberUtils;
|
||||||
import android.telephony.gsm.SmsManager;
|
import android.telephony.gsm.SmsManager;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
@ -83,8 +84,9 @@ public class MultiSmsSender extends Activity {
|
|||||||
for (int i = 0; i < numbers.length; i++) {
|
for (int i = 0; i < numbers.length; i++) {
|
||||||
String newN = numbers[i].trim();
|
String newN = numbers[i].trim();
|
||||||
mSendingDialog.setMax(size);
|
mSendingDialog.setMax(size);
|
||||||
if (!newN.equals("")) {
|
if (!newN.equals("") && PhoneNumberUtils.isWellFormedSmsAddress(newN)) {
|
||||||
mSendingDialog.setProgress(i / size);
|
mSendingDialog.setProgress(i / size);
|
||||||
|
|
||||||
if (!allreadySend.contains(newN)) {
|
if (!allreadySend.contains(newN)) {
|
||||||
allreadySend.add(newN);
|
allreadySend.add(newN);
|
||||||
manager.sendMultipartTextMessage(newN, null, manager.divideMessage(message), null, null);
|
manager.sendMultipartTextMessage(newN, null, manager.divideMessage(message), null, null);
|
||||||
@ -101,7 +103,7 @@ public class MultiSmsSender extends Activity {
|
|||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
|
|
||||||
}
|
}
|
||||||
}).setMessage( getResources().getString(R.string.message_sent)).show();
|
}).setMessage(allreadySend.size()+" "+ getResources().getString(R.string.message_sent)).show();
|
||||||
}else {
|
}else {
|
||||||
new AlertDialog.Builder(this).setPositiveButton(getResources().getString(R.string.ok),
|
new AlertDialog.Builder(this).setPositiveButton(getResources().getString(R.string.ok),
|
||||||
new DialogInterface.OnClickListener() {
|
new DialogInterface.OnClickListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user