I have an app which displays content of a post while the recycler view is clicked it opens a new activity
@Override
public void onClick(View v) {
int position = getAdapterPosition();
FeedItem feeditem = this.feeditem.get(position);
Intent intent = new Intent(this.ctx, ContentActivity.class);
intent.putExtra("posturl", feeditem.getPostUrl());
intent.putExtra("Author",feeditem.getAuthorname());
intent.putExtra("excerpt",feeditem.getExcerpt());
intent.putExtra("content",feeditem.getContent());
intent.putExtra("title",feeditem.getTitle());
intent.putExtra("date",feeditem.getdate());
intent.putExtra("thumbnail",feeditem.getAttachmentUrl());
this.ctx.startActivity(intent);
}
all i want to acheive is put a progress bar for at least 3 seconds before the other activity is being displayed thanks.