Why when dealing with DateTime picker Does not move to layout found by DateTime picker
This is the class where the existing Aldata Time On Baker :
public class Popactivity extends DialogFragment implements View.OnClickListener {
View view;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
view = inflater.inflate(R.layout.pop, container, false);
return view;
}
@Override
public void onClick(View v) {
}
public void show(FragmentTransaction manager, Object o) {}
}
This is the class MainActivity
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
android.support.v4.app.FragmentTransaction manager =getSupportFragmentManager().beginTransaction();
Popactivity ppp=new Popactivity();
ppp.show(manager,null);
This method does not need to exist.
At least, you shouldn't need to override / overload the existing
show(FragmentTransaction transaction, String tag)
method.If you delete it, there should be no errors.
This code, for example, compiles fine.