Launch QR code scanner directly
-
Hi! I'd like to create a shortcut to the QR code scanner.
I know there's a widget for that but I'd rather not use it.
Using a logcat reader I've found this:
06-18 16:49:41.653 I/ActivityTaskManager(1834): START u0 {act=org.vivaldi.browser.searchwidget.START_QR_CODE_SCAN flg=0x10080000 cmp=com.vivaldi.browser/org.chromium.chrome.browser.searchwidget.SearchActivity (has extras)} from uid 10643
However, I've been unable to open the scanner via an "am" command.
Could you please give me a working "am" command?
Thanks
-
Holding Vivaldi icon pops up a menu for direct opening of the QR scanner. Doesn't this work for you?
-
@solidsnake I tried your suggestion on my Samsung A41 with Android 10. I tried with the url bar at the top or the bottom of the screen. But I cannot get any other menu than the standard Vivaldi menu. Should I enable some setting? Could this be platform specific?
-
@S_Paternotte do not open Vivaldi... Click and hold on Vivaldi icon (the icon that clicked when you want to open Vivaldi)
-
@S_Paternotte There is no specific option to switch this function, the default is valid. You can open an empty new tab, click on the address bar, a QR icon will appear on the right
QR icon only appears when address bar is empty -
@bswn Not valid on some Android desktop environments
-
@Aaron what do you mean with Android desktop environment?
-
@bswn I‘m using Apex-launcher, it cann't pop-up the SCAN QR menu by long-press
-
@bswn I know the difference between hold and tap. Hold doesn't do it for me.
-
@bswn I'm using Microsoft Launcher. I would not know if this should make a difference or not.
-
@S_Paternotte I do have that popup menu on my other phone using the native launcher.
So I concluded it was the launcher that changed the long-press behavior -
@Aaron so, is it a feature or bug of the launcher, or bug of Vivaldi?
-
I was referring to the pop-up menu while holding the Vivaldi icon on the homescreen or drawer, not the menu from the program.
But I guess it depends on the launcher to display this menu. AFIAK all (or most) default launchers support this, but not all custom launchers.
I don't know what is the proper Android terminology for this feature. -
The pop-up menu does work for me, but my use case is different.
I'd like to open the scanner via a task in Tasker, to automate a flow of mine.
In other words, without any user interaction.
That's why I'd like to open it by broadcasting an intent or by opening a deep link.
I'm very close to achieving that (see my original message) but I believe there's an intent extra I'm missing.
-
@solidsnake
yes. what I'm talking about is desktop icons ,too
This is my Samsung S22 Ultra with Apex-launcher runs on Android 12:And this is my Royole FlexPai2 with it's natural
UI runs on Android 10: -
@S_Paternotte said in Launch QR code scanner directly:
so, is it a feature or bug of the launcher, or bug of Vivaldi?
I think it's a compatibility issue. It's hard to tell whose bug it is. If you think it's a bug, it obviously belongs to the launcher and not vivaldi
-
@S_Paternotte @solidsnake
Now that I switch back to the original UI on the Samsung phone, the menu for the QR scan comes back:
-
A long press of the Vivaldi icon on the start screen gives me a similar menu including qr code option. I was holding down Vivaldi's own icon. Mystery resolved, but we are deviating from the original request.
-
@denisidoro Well that's rather easy to solve tbh. Hold onto the Vivaldi Icon for a moment, you'll be presented with a similar type of interface of a pop up protruding out from Vivaldi icon
Hold onto the Scan QR Code option, the background will fade into the home screen separating the bar from the popup menu and converting it into a iconDevice used for demonstration :- Samsung Galaxy A72
I have added a video tutorial in the link down below to show it properly
https://mega.nz/file/KbhHWCRT#9CpX1unF5beKSSraxsqBgowUeWDOFuVaXQf-IA725fM -
@denisidoro said in Launch QR code scanner directly:
I'd like to open the scanner via a task in Tasker, to automate a flow of mine.
Nice. I use Tasker, but have never used the
Send Intent
option before. I usedadb logcat -e .+vivaldi.+
for the shortcut option to launch the QR code scanner and got this:06-20 12:11:12.272 1572 4458 I ActivityTaskManager: START u0 {act=vivaldi.shortcut.action.SCAN_QR_CODE flg=0x1000c000 cmp=com.vivaldi.browser/org.chromium.chrome.browser.LauncherShortcutActivity bnds=[849,1542][1003,1724]} from uid 10333 pid -1
I tried messing around in Tasker to get it working, but I don't really know what I am doing.
This didn't work:Send Intent [Action]: "vivaldi.shortcut.action.SCAN_QR_CODE", [Package]: "com.vivaldi.browser", [Class]: "com.vivaldi.browser/org.chromium.chrome.browser.LauncherShortcutActivity"
But again, I have no idea what I am doing...
Maybe you can do more with the log information and figure it out. If you do, please share it here. I could probably use this as well.
Do you use AutoShare or just the regular
Send Intent
?