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