Qt android emailing - android

Let's say I start with a Qt app that is built for android with only one pushButton in it. I would like to have a function be called when the button is pressed where it will:
open gmail (or maybe any other default mailing app in android if possible)
set the "to:" to be a specific email by default (which doesn't matter if it can be changed later, just to have a default that is none empty that I can set from inside the app)
set the title of the email (again from inside the app)
set the text inside the email from inside the app
so basically the user only needs to press send because data should be already gathered (survey ish thing) and it just has to be sent. Obviously if it is possible to not open this app and send the email directly it would be even better.

Related

Is it possible for a Flutter for Android activity to NOT be fullscreen? Or have no UI at all?

I'm building a somewhat basic app (only testing on Android for now) with multiple lists, one of which is an Inbox list. I can share text from other apps to my app, and it works well.
However, I would like the app to handle the intent without launching the full app UI. For example, if I share a URL from the browser to my app, I would like it to be handled in the background, save the URL to Firestore, and show a toast to the user indicating that it was successful.
Ideally, I would like to put two entries in the share menu, one to add to the Inbox and show a toast as described above, and a second entry that gives the user a modal dialog that floats above the sharing-from app, which allows the user to choose a different list to save to.
I think I'll have to make a (for example) ShareActivity.java, and add it to AndroidManifest.xml, but I have no idea where to go after that, or even if that's the right approach.

Show custom name in App-To-Phone Calls in Sinch

I'm developing an Android application that allows users to make app to phone calls and it is working pretty fine at the moment but, I want to show a custom name when the remote user receive the call. Now, the phone receiving the call is showing an unknown caller name.
My question is if there is a way to achieve this or it's impossible to show what i want.
There is a couple of ways do do this:
User callUserWithHeaders and add a friedly name as a header
Look up the username in your backend when you recieve the call and display the friendly name

Changing GUI text in android and iOS based on server data

I am a product manager and I want to understand if it is possible to create an application (the question is relevant for both OS) with the following behavior:
When the app launches for the first time, it will call the server and download all the GUI texts.
As part of the response, it will also receive a GUID.
on every next launch it will call the server, and get the GUID. if the GUID is new (doesn't match the current stored GUID) - there was a change in the GUI texts - and it will replace all the GUI texts with the new ones
Is it possible in android and iOS - and what are the limitations?

Verify if clicking something get you out of the app in appium

I would like to know if it's possible to test that if I click on a element in my app (android or ios) it opens another app over mine
For example
If I click on a publicity does it goes out of the application and open a browser or not
If I click on a button to open another app does it goes correctly to the other one or to the store or not
etc
Yeah ! You can verify both points. Use String getCurrentActivity=driver.currentActivity(); if you know your second apps activities then directly verify activity against current one.
In general yes it is possible. Simply using Appium's inspector go throught your scenario:
If I click on a publicity does it goes out of the application and open a browser or not
And then check if Inspector found particular elements that you can base on in your tests - check if those web view has some id's, name or xpath.
pick an id from your app, after exiting your app check that id , if its present your in your app still, if its not present ,you have exited your app

Get share content through accessibility in android app

I have an android app, which lets people share content from other apps to it. When it receives the shared data, it looks for the URL in the shared text and fetches the page and does processing on the data fetched. This is designed with specific purpose and not a generic for all apps.
It works fine, except that people have to click the share icon and then choose our app name. With accessibility we can reduce this work for the users. We are able to get the text displayed in the app.
Is it possible to get the content which we would get if we were to click the share button.
Or
Is it possible to trigger the share button and choose our app without disturbing the user in anyway
You could try that if it's only for 1 specific app. See question How to click button in settings using AccessibilityService? which clicks a button. This will not scale if you want to do this for more apps. You could however parse the text that is on the screen and look for http links and process them in a background service and then show a floating button like Link Bubble Browser
You can simply trigger the share activity of your app when you detect the text from the other app; but the question is how will you know when user is done typing the text?!
One way is you can place a system-wide floating button similar to Facebook Messenger and after user clicks it, the text can be shared. This will reduce number of clicks user has to do.
So,
1) Yes, its possible to get text content via AccessibilityService.
2) No, you cannot automate this action.

Categories

Resources