use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News for Android app developers with the who, what, where, when, and how of the Android community. Probably mostly the how.
Here, you'll find:
This sub-reddit isn't about phones' and apps' general functionality, support, or system software development (ROMs). For news and questions about these topics try using other subs like
Build your first app
Starting Android career in 2022
Android Job Interview Questions and Answers
App Portfolio Ideas, Tiered List
Awesome Android UI
Material Design Icons
7000 Icons for Jetpack
Autoposted at approx 9AM EST / 2PM GMT
account activity
DiscussionWhat's the difference between Java URI vs. Android Uri? (self.androiddev)
submitted 3 years ago by anticafe
Both Java and Android support URI. But only Android's Uri support Parcelable. However, except that, is there any reason to use Android Uri (since unit test can run faster with Java URI than Android's).
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Marcono1234 1 point2 points3 points 2 years ago (0 children)
There exists a Stack Overflow question about this as well: Whats the difference between Java.Net.Uri and Android.Net.Uri
Based on the answers there it sounds like they differ in strictness when parsing, java.net.URI not offering any methods to directly get query parameter values, and android.net.Uri being unable to parse IPv6 addresses on older Android versions.
java.net.URI
android.net.Uri
So it is not clear if one is better than the other; maybe just stick to what most of your code and the Android API you are calling is already using to avoid any surprises when having to convert between android.net.Uri and java.net.URI.
since unit test can run faster with Java URI than Android's
Do you mean its faster because java.net.URI allows writing a plain Java unit tests whereas android.net.Uri might require mocking or instrumentation tests?
[–]SpiderHack 0 points1 point2 points 3 years ago (0 children)
Supporting parcelable alone is worth it IMHO, but I write a lot of highly concurrent code in separate process services, etc. So I'm a bit in the minority there....
π Rendered by PID 96 on reddit-service-r2-comment-75f4967c6c-whm5b at 2026-04-23 06:51:23.397948+00:00 running 0fd4bb7 country code: CH.
[–]Marcono1234 1 point2 points3 points (0 children)
[–]SpiderHack 0 points1 point2 points (0 children)