On the off-chance that the capital H was the problem I manually provided the URI in lower case - the page opened. Code sample 1 public void onClick(View view) Īt (Instrumentation.java:2067) UPPER CASE and lower case) matters for what you pass to Uri.parse. In this post I'll share how the case (e.g. URI stands for Uniform Resource Indicator and they look like URLs (Uniform Resource Locators). When you want to open a website by tapping a link or a button in your app you also use an intent, targeting the URI class and passing across the URI you want to open. You can remember this by thinking that you intend to move from one activity to another. Roughly speaking, each different screen in an Android application is a different activity and you switch between activities with intents. In the end I only stumbled on the anwer by accident so I'm hoping this blog post helps others in future. The problem was one of case, something that really should be a solved problem in my view. I had a problem recently when trying to open a web page from inside an Android application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |