Import miniabs 1.0 source
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
4fe9eed870
78 files changed
+5800
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package android.content;
|
||||
import java.util.HashMap;
|
||||
public class Context {
|
||||
public static final int MODE_PRIVATE = 0;
|
||||
public static final String CONNECTIVITY_SERVICE = "connectivity";
|
||||
private final HashMap<String, SharedPreferences> prefs = new HashMap<String, SharedPreferences>();
|
||||
public static boolean online = true;
|
||||
public Context getApplicationContext() { return this; }
|
||||
public synchronized SharedPreferences getSharedPreferences(String name, int mode) {
|
||||
SharedPreferences p = prefs.get(name);
|
||||
if (p == null) { p = new SharedPreferences(); prefs.put(name, p); }
|
||||
return p;
|
||||
}
|
||||
public Object getSystemService(String name) { return new android.net.ConnectivityManager(); }
|
||||
}
|
||||
Reference in new issue
Block a user