I'm using Ionic for building a multi-platform hybrid app that, basically, just opens a responsive web app, with InAppBrowser plugin. I can't figure out why, only on Android (on iOS it works as expected), the standard context menu, for copy/paste operation, after a long click on input text, doesn't appear, only the markers for the select text are displayed.
I can't find out what I'm missing, did it suppose to show up by default, on Android, or did I need some configuration, register some listener, use other plugin or whatever?
So, in short, if I copy some text on a device (e.g. from google.com) and I want to be able to paste it, on Android, in an input text, of a page opened with InAppBrowser within my app, is it possible and how can I achieve that?
I confirm that the standard behavior, even with InAppBrowser, is to display the context menu, to manage copy/paste operation, on long click, on the selectable text.
So, in my case, it wasn't an InAppBrowser problem, but it was the site who disable all context menu (iOS just doesn't care and show it anyway, but that's another story).
Related
I have a Google Data Studio dashboard that allows users to search a list of people by various criteria. They need to find the person they're looking for in a table and copy-and-paste one of the fields of interest into another application.
On desktop, it's possible to highlight and copy as normal, but on Android (phone and tablet) I can't figure out how to do it:
Long-pressing text brings up the Data Studio context menu. The text also becomes highlighted, but no clipboard menu appears (see image).
Double-tapping triggers the browser's auto-zoom instead of highlighting
Tapping and dragging does nothing
To replicate:
Open this Example table on an Android device in Chrome or Firefox
Attempt to highlight text from the table and copy it to the clipboard
Desired behavior:
Text can be highlighted and copied
Current behavior:
The browser either zooms, or opens the Data Studio context menu, but it is not possible to highlight and copy text.
At this point I'm open to any kind of workaround, even if it's onerous or messy.
What I've tried so far:
Use cross-filtering to feed the selected row's ID into a scorecard or other element: Scorecards have the same behavior
Turn off cross-filtering: This removes the interactivity where tapping a row highlights it, but doesn't change the behavior described above.
Try different mobile browser. I can make it work in Firefox Nightly, which allows you to disable double-tap-to-zoom and in Puffin Browser, which doesn't implement it in the first place. However, neither of these is a good solution for users.
Use presentation mode: If I put the data sheet in presentation mode, turn the device to landscape, and set it to full-width then I can usually but not consistently copy text in Firefox, but not in chrome.
I have a Firefox add on implemented as a web extension.
When I install the app on firefox for android, there is no button to trigger the action for the app - this is because browser actions are not supported on Firefox for Android
So, next I looked into adding a context menu item, to allow the user to trigger the extension that way. However, unfortunately the context menu API is not supported in Firefox for android either.
So - what options do I have with regards to adding some sort of UI so that the user can trigger my web extension?
It seems like the only answers to this at the current time are:
i) to use pageActions which weren't really designed for this purpose (they are supposed to be for things which are only applicable to certain pages.
ii) as in #Makyen comment above to add something to the dom which is clickable
I have an app that runs in the background. I want it to click/touch some points on screen as well as write some text automatically (example, open Browser, type google.com, search something). But as I am informed, there is no awt Robot in android so, how is this possible? Because I can't use keyPress, mouseMove and mousePress/mouseRelease commands...
it is against android policie to do the things you ask. you may not make clicks for users and you may not present them with pop-ups, whether its google that pops- up or not.
I'm doing the oauth procedure for installed apps, during which I send the user to a screen to copy the authorization code. This happens in a webview (it's a phonegap app).
When I reach the screen with the code I can select the code, but the context menu for copying it doesn't show! I can copy other stuff on the page, but not the code inside the input textarea. BTW the textarea is readonly but I don't think this should matter.
Is this a bug?
EDIT:
Same thing happens in regular chrome browser on android, but I found a way to copy there: long press and then quickly zoom in brings up the context menu.
Seems to be a bug in chrome for android
https://code.google.com/p/chromium/issues/detail?id=251235
I wish to create my own custom keyboard on android. It seems the below project on google code project should be able to achieve this. But to extension to this what I also want to add is ability to handle browser events when user is using custom keyboard. ie if user clicks on browser address bar or any text box on the page opened I should be able to determine that as well? Is there a way possible?
http://code.google.com/p/android-misc-widgets/source/checkout
Thanks,
nil
I'm not sure what your question is, but I think you are asking how to create a keyboard that is used when the user clicks on textfields in other apps. Is that right?
If you want to create your own virtual keyboard then you should definitely start by reading the Android IME Docs they are really good and even provide code for a example keyboard that you can download.