Closed thpir closed 2 years ago
Add the queries tag to the menifest file.
You can check the cause in the link below. https://stackoverflow.com/questions/62535856/intent-resolveactivity-returns-null-in-api-30
</manifest>
...
<application>
...
</application>
<queries>
<!-- Browser -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="http" />
</intent>
</queries>
</manifest>
When testing app on Samsung A50, Logging returns "Can't handle this intent!" when testing the intent to open a link and location. My code is exactly the same as the solution code. The problem was solved by removing the If-Else statement and put the "startActivity(intent)" right under the parsing of the URI.
Solution:
public void openWebsite(View view) { // Get the URL text. String url = mWebsiteEditText.getText().toString();
In which lesson and step of the codelab can this issue be found? Lesson number + step number.
[4. Task 2: Implement the Open Website button] - step 4 [5. Task 3: Implement the Open Location button] - step 4
How to reproduce? What are the exact steps to reproduce the problem? Copy the solution code - run app on Samsung Galaxy A50 (I don't think the device type matters)
Versions