提交项目

This commit is contained in:
2026-06-15 11:34:31 +08:00
commit 43d6c0125d
5698 changed files with 1236396 additions and 0 deletions
@@ -0,0 +1,17 @@
package com.tool.countrycode;
import android.app.Activity;
import java.util.Locale;
public class AcquireCountryCode {
// 获取国家码
public static String getCountryCode()
{
Locale locale = Locale.getDefault();
return locale.getCountry();
}
public static String getCountryCode3() {
Locale currentLocale = Locale.getDefault();
return currentLocale.getISO3Country();
}
}