Skip to content Skip to sidebar Skip to footer

Passing The Date After Selecting It From The Calendar

everyone I am encountering a problem with passing the date from the calendar to my Create_Event.class. Initially the date textView displays 'text' then when I click the 'Select the

Solution 1:

Use Bundle in Create_Events Activity to get date. Before passing data you first need to check it is null or not.

Bundlebundle= getIntent().getExtras();

if(bundle != null)
{
    Stringdate= bundle.getString("passdate");
}

Bundle generally use for passing data between various Activities. It depends on you what type of values you want to pass but bundle can hold all types of values and pass to the new activity.

Post a Comment for "Passing The Date After Selecting It From The Calendar"