Recently I got this error:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat= launchParam=MultiScreenLaunchParams { mDisplayId=0 mBaseDisplayId=0 mFlags=0 } }
Why is this happening? I did everything like in the YT tutorial. The goal of my code is to make a link to another site. Here is my code:
adres2 =" https://www.facebook.com/ ";
c2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(adres2));
startActivity(intent);
}
});