private static final int Gallery_Pick = 1;
ProfileImage = (CircleImageView)findViewById(R.id.setup_profile_image);
ProfileImage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent gallerytIntent = new Intent();
gallerytIntent.setAction(Intent.ACTION_GET_CONTENT);
gallerytIntent.setType("image/*");
startActivityForResult(gallerytIntent, Gallery_Pick);
}
});
the function startActivityForResult(android.content.Intent, int) is deprecated , How I can go to gallery now?
I was trying to do it with using an intent, the I set the action and type.
when I type startActivityForResult it says that it has been deprecated(private static final int Gallery_Pick = 1
How can I solve it?
New contributor
Rom is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.