私は2Applicationつ持っており、両方ともsharedpref同じ名前で別のものを持っています。
value他のApplication sharedprefいいねから読みたい
Mycontxt = appcontext.create package context(otherapppackagename, context.mode_private);
Shared preference otherappshpref = mycontext.getshared preference("prefname",context.mode_private);
正しい参照を取得することもありますが、ほとんどの場合、最初のアプリです。
さまざまな方法を試しましたが、問題はまだ存在します。誰かがそれを行う方法を教えてもらえますか?
ありがとう
