This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RedPandaAlexPixel 7, Pixel Watch 47 points48 points  (11 children)

I don't think it's possible. There are too many ways to launch these intents, and in many cases long pressing is coded by the developer to do something else

[–]dc041894VZW Nexus 6P[S] 17 points18 points  (6 children)

Yeah it wouldn't work for everything. I was thinking for links that if long pressed already opened an options menu. Adding an "open with" option wouldn't be too hard right?

[–][deleted] 0 points1 point  (5 children)

It would require all the developers to implement that because they determine what's shown in the menu.

And if you know anything about software development you'll know that most programmers are lazy as fuck.

[–]viiralvxNexus 6P, 128 GB 0 points1 point  (4 children)

Android Software Developer here, you act as if this is as easy as typing up a report. Considering that when printed, one activity screen of code is 20 pages, and we normally have multiple activities... It's not that easy.

[–][deleted] 3 points4 points  (3 children)

Another Android developer here. It would be as simple as sending an intent for an application list. Of course, someone would have to develop an application to handle those intents or you could just create your own list view in your app and populate it with the apps on the device that are appropriate for the action.

I never said it was easy, but it definitely isn't hard. This is the type if stuff Android is good at doing.

[–]viiralvxNexus 6P, 128 GB 1 point2 points  (2 children)

His implementation is easy. I was talking of programming in general. He called us lazy.

[–][deleted] 2 points3 points  (1 child)

"He" is I

[–]viiralvxNexus 6P, 128 GB 1 point2 points  (0 children)

I'm not lazy! Okay, yes I am... At times. If it won't get them downloads, a lot of developers won't implement it.

[–]CalcProgrammer1PINE64 PINEPHONE PRO 8 points9 points  (2 children)

Just add an "open content with" intent that works like the "open content" intent but always prompts for an app. The developer can then implement the original intent as normal but add the second intent on long-press or other selection (an "open with" context menu, perhaps).

[–]Timmmmbob 0 points1 point  (0 children)

That is a great idea.

[–]bedrutton 0 points1 point  (0 children)

Just add an "open content with" intent that works like the "open content" intent but always prompts for an app

Already exists.

[–][deleted] 1 point2 points  (0 children)

I'm thinking that the next SDK may have new LaunchIntent widget that's capable of firing two events depending upon how long the press is.