Comments (4)
Okay, I think I'll just do a version check then. The original motivation behind the existing code was to handle app chooser situations because AFAIK Android didn't handle it that well in older versions, so if Android 11 fixed that issue then I can just do the conventional Uri Intent method on that version and keep the current code for older versions.
from auxio.
Hm. My method for opening the browser might be too invasive then if it requires querying every package. I will need to see if I can do something else.
from auxio.
Well, you can use a try
and catch
, that's how I'm doing it in my apps:
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse("example.com")
try {
startActivity(openURL)
} catch (e: ActivityNotFoundException) {
Toast.makeText(this, "Can't open app", Toast.LENGTH_LONG).show()
}
The only thing is that you can't open an chooser if no default browser is set (but this is handled by Android itself).
from auxio.
so if Android 11 fixed that issue
It just displays this selection dialog:
from auxio.
Related Issues (20)
- Small split-screen UI mode HOT 6
- MIDI support HOT 1
- Missing bottom margin of player in landscape mode HOT 4
- [UX] Scroll bar for playlists, albums, artists, genres HOT 2
- Unable to load music from folder HOT 1
- Wrong "Now playing" state HOT 1
- Artist and albums splitting for no reason. HOT 1
- Chosing a music folder error HOT 2
- Change non-repeat icon in music player notification HOT 3
- Quickly moving queue items breaks queue display HOT 4
- Exclude / Include Music folders does not work HOT 5
- [Feature] Sort by "random" option HOT 1
- Propose playlist filename as playlist name when importing playlist HOT 1
- Extreme lag on 3.5.0 HOT 30
- Add a sleep timer HOT 1
- Show repeat and shuffle in android auto
- Add some e-mail/website/contact/feedback handle from within the app HOT 1
- Bookmark timestamps on the songs' timeline UI, so that user can get back quickly to banger moments :100: HOT 3
- Disable repeat when playing an entire album/artist HOT 1
- Offer "Folders" view tab when "Include folders" option is used HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auxio.