I'm trying to send integer value from activity to a fragment to change text size value, Iv tried user bundle and custom constructor and didn't work. So how can I use shared preferences for this purpose?
Hey have you tried something like this
Bundle bundle=new Bundle(); bundle.put('key',0); FragmentName name=new FragmentName(); name.setArguements(bundle); Integer q=getArguments.getInt(key)
1.4m articles
1.4m replys
5 comments
57.0k users