get glympse url without user interaction - android

I am writing an automation app and would like to share Glympse location automatically without user interaction when the user starts to drive.
I took a look at the SDK to use Android intents, and it looks like I can populate all details, but to get a link, the user still needs to click the "Create" button that pops up. I get the created link back in my app only after the user clicks the "Create" button.
Is there a way for my app to get the Glympse url without user interaction?

Sending a Glympse without an explicit user action is not currently supported through the Glympse app. It's technically possible to do it using the Glympse client SDK, but doing so goes against the stated "Best Practices for Respecting User Privacy" https://developer.glympse.com/docs/core/guidelines
A Glympse sharing event should be initiated only by an explicit user action on the Glympse form (e.g. user needs to tap "Send" on the Glympse form to start the Glympse). In other words, your application may not programmatically invoke the "Send" command on behalf of the user.

Related

How can I get text from Google Assistant so that I can parse the text to do certain action?

I'm trying to build an Android app that inside the app when user long press the home button, Google Assistant will pop up (which is current system behavior), then my app can get the text that user has said which appears in GA. I know that GA provide system actions support, but the action I need to implement is not in system actions. Is there any example or material for doing this?
You can't control what happens when the user opens the Google Assistant, even if they've opened it while your Android app is active. You can only be passed input by the Google Assistant if the user invokes your action by requesting it after they open the Assistant.
So in the end, instead of using Google Assistant I actually used Google Speech-To-Text to solved the problem.

get post event from share dialog

Hi I have functionality in my app where I have to do some code on event when user shares my app.
So basically on tap share icon androids default share indent will open which will show installed apps through which user can share(e.g whatsapp, Facebook, gmail) then user will select any of the above app and then once he shares app i need that event of sharing post.
Please help me to achieve this functionality.

How should I request permissions when entering app from deep link?

I have two apps that both require a user to be logged in before creating the app databases. One app is a launcher-type app that contains my AccountManager and links to my other apps. All of my apps request storage permissions since they need local databases.
The problem I am currently having is when opening the second app for the first time through the launcher app. If you open the app normally for the first time there is a splash screen that asks the user to select an account, and the storage permission dialog comes up here. But if the user opens the app for the first time through a deep link, this splash page is skipped (since the deep link goes to a different activity). So if the user opens the app for the first time from a deep link, I can make the permission dialog appear, but the app continues behind the popup and inevitably crashes because it cannot create its databases. I can enable the permission, then try to launch the app again and everything works, but this is not nice.
What would be the best way to handle this scenario? I was thinking about hacking together a way to freeze the app until the permission is accepted but I would prefer not to have to do that.

app starting from a deep link overlapping the app with that link

I have an app that, when a user sign up, sends an email for activation. When the user taps that link my app starts overlapping the mail app instead of opening or bringing to front the one that the user used to sign up. Is there a way for the link to open or brings to front the one that the user used?

open another browser in spite of default browser

hiii..i m developing an app in which as user click on a link it should prompt the user to open link in myAppbrowser (which i will create) or default browser(like activity chooser do).
as user click on default browser app prompt again that, 'this page cant open in default browser'.
after that the browser which i make should run...
how to implement this....plz help me
Depends.
If the user clicks on your link, from one of the browsers (which aren't made by yourself), then no: It's not possible for security reasons. Android is designd to have the user choose which app he want's to use to open a certain Link (better term would be: Intent).
If the user clicks on a link in a WebView you created, then it may be possible to intercept that link and create a custom selection screen (or directly send it to your App without asking for a choice). I've forgot which method of WebView you need to override to intercept link clicks, have seen it somewhere here on Stackoverflow, just don't have the link atm.

Categories

Resources