forked from upstream-mirrors/quik
Strip out unused classes
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
package com.google.android.mms;
|
||||
|
||||
public class APN {
|
||||
public String MMSCenterUrl = "";
|
||||
public String MMSPort = "";
|
||||
public String MMSProxy = "";
|
||||
|
||||
public APN(String MMSCenterUrl, String MMSPort, String MMSProxy) {
|
||||
this.MMSCenterUrl = MMSCenterUrl;
|
||||
this.MMSPort = MMSPort;
|
||||
this.MMSProxy = MMSProxy;
|
||||
}
|
||||
|
||||
public APN() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
package com.google.android.mms;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import android.text.TextUtils;
|
||||
import android.widget.Toast;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public class APNHelper {
|
||||
|
||||
public APNHelper(final Context context) {
|
||||
this.context = context;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<APN> getMMSApns() {
|
||||
try {
|
||||
final Cursor apnCursor = this.context.getContentResolver().query(Uri.withAppendedPath(Uri.parse("content://telephony/carriers"), "current"), null, null, null, null);
|
||||
if (apnCursor == null) {
|
||||
return Collections.EMPTY_LIST;
|
||||
} else {
|
||||
final List<APN> results = new ArrayList<APN>();
|
||||
if (apnCursor.moveToFirst()) {
|
||||
do {
|
||||
final String type = apnCursor.getString(apnCursor.getColumnIndex("type"));
|
||||
if (!TextUtils.isEmpty(type) && (type.equalsIgnoreCase("*") || type.equalsIgnoreCase("mms"))) {
|
||||
final String mmsc = apnCursor.getString(apnCursor.getColumnIndex("mmsc"));
|
||||
final String mmsProxy = apnCursor.getString(apnCursor.getColumnIndex("mmsproxy"));
|
||||
final String port = apnCursor.getString(apnCursor.getColumnIndex("mmsport"));
|
||||
final APN apn = new APN();
|
||||
apn.MMSCenterUrl = mmsc;
|
||||
apn.MMSProxy = mmsProxy;
|
||||
apn.MMSPort = port;
|
||||
results.add(apn);
|
||||
|
||||
Toast.makeText(context, mmsc + " " + mmsProxy + " " + port, Toast.LENGTH_LONG).show();
|
||||
}
|
||||
} while (apnCursor.moveToNext());
|
||||
}
|
||||
apnCursor.close();
|
||||
return results;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// insignificant permissions
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
}
|
||||
|
||||
private Context context;
|
||||
}
|
||||
@@ -27,7 +27,6 @@ import java.util.HashSet;
|
||||
|
||||
public final class PduCache extends AbstractCache<Uri, PduCacheEntry> {
|
||||
private static final String TAG = "PduCache";
|
||||
private static final boolean DEBUG = false;
|
||||
private static final boolean LOCAL_LOGV = false;
|
||||
|
||||
private static final int MMS_ALL = 0;
|
||||
|
||||
Reference in New Issue
Block a user