我正在开发一个应用程序,它将直接用葡萄牙语打开,在该应用程序内部,它可以选择将语言更改为英语.所以我必须改变代码中的语言.但是当我在棒棒糖中测试我的应用程序时,它直接用英语开放.在除了棒棒糖之外的所有其他版本中,它工作正常.有人可以帮助我或建议我必须采取的步骤来解决这个错误.谢谢
这是我用于本地化的代码.有一些方法被棒棒糖"折旧"吗?
public static Locale locale = new Locale("pt_BR");
Locale.setDefault(locale);
android.content.res.Configuration config = new android.content.res.Configuration();
config.locale = locale;
this.getResources().updateConfiguration(config, null);
String locale = this.getResources().getConfiguration().locale
.getDisplayName();
Log.i("System out", "(LogIn)Current Language : " + locale);
Run Code Online (Sandbox Code Playgroud) 我已经创建了一个应用程序,其中有应用内购买,每月自动续订..在第一次成功付款时,我已经调用了一个网络服务,我已经让用户进入高级课程.
现在,如果用户已从谷歌服务器手动取消付款,我怎么知道该用户已取消他/她的订阅.
是否有一些PHP代码查询或从Android我必须在后台调用一些东西来检查状态?
谢谢你的推荐
我刚刚开始研究颤振应用程序,按下保存按钮时出现这种异常。
方法 'call' 在 null 上被调用。接收者:空尝试调用:调用(“产品”的实例)
据我所知,我认为我工作正常,但仍然无法弄清楚这个错误/异常。
我还附上了参考代码。
这是我的主文件
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
// TODO: implement build
return ScopedModel<ProductsModel>(
model: ProductsModel(),
child: MaterialApp(
theme: ThemeData(
brightness: Brightness.light,
primarySwatch: Colors.deepOrange,
accentColor: Colors.deepPurple,
buttonColor: Colors.deepPurple,
),
// home: AuthPage(),
// Either '/' or home stands for starting point of the app
routes: {
'/': (BuildContext context) => AuthPage(),
'/product': (BuildContext context) => ProductsPage(),
'/admin': (BuildContext context) => ProductsAdminPage()
},
onGenerateRoute: (RouteSettings settings) {
final List<String> pathElements …Run Code Online (Sandbox Code Playgroud)