I want to call onCreate (Bundle cicici); from another method, then I get a "NullPointerException", so please call me, how can I call onCreate () from another method ().
public void moreFriendsButtonClick(int id) { contentId= id; onCreate(tempBundle); }
Here I pass the value of int and
tempBundle=savedInstanceState;
and after that I get a NullPointerException
vishesh chandra
source share