Samsung Keyboard problem using commit content APi - android-softkeyboard

Im using Android Image Support, using IME (https://developer.android.com/guide/topics/text/image-keyboard) but problem is when using Samsung Keyboard it returns null and using Google Keyboard it works perfectly. How can i support Samsung Keyboard using Commit Content API, which provides a universal way for IMEs to send images using soft keyboards. TIA.

Related

Flutter Web App Weird Beahvior in Desktop View on Mobile Phone

I am making a website with flutter
codingfries.com
Can someone check what the hell is happening when I click on Desktop View on chrome browser in mobile phone. The website starts to behave weirdly.
This is supposed to happen as the layout changes. Width of screen changes when you emulate Desktop view on mobile phone. For handling such cases, flutter has media queries which can be used to change layouts based on screen size changes.
For more info refer the official documentation.
https://flutter.dev/docs/development/ui/layout/adaptive-responsive

Flutter - Is there a way to mute a phone with an app?

I've started with Flutter and I´m currently working on a project which allows the application to mute the phone if you´re at a specified position. I´ve implemented Google Maps etc. Everything works except that the marker isn´t visible but that´s another question. My question is how I can mute the phone with an app. I didn´t find a solution anywhere.
I really doubt that Flutter provides such a fuctionality out of the box. I suggest searching 3rd party packages for it. If that fails you can implement this feature nativly on each platform using Platform Channels.
HERE you can find how to achieve this on Android, and HERE how to do it on IOS.

Building a Flutter application for mobile and desktop

Recently I've found out about Flutter being able to support desktop applications as well. I'm just curious how far this technology is and if any of you had success porting your mobile apps to the desktop. If so, what was the experience like? Are desktop-specific features like windows, mouse interaction, desktop notifications, etc. supported?
It was demonstrated at the Flutter Live event in December, but nothing official has been released that I'm aware of.
Flutter for Desktop was launched as alpha build at flutter interact 2019.
The official documentation is available at https://flutter.dev/desktop
The following video describes how to run your flutter app on a MacOS
You can watch the following video is you don't wanna read the docs
https://www.youtube.com/watch?v=9tEdoVuC1uQ&t=23s
(Skip to 0:48 seconds, as slight noise occurs for few seconds)
A simple app is created using android studio and we can easily see the options available to port the code to all platforms. For example, if you create a default app using android studio, the mouse event will help you to tap on a button and increase the count.
Regarding the experience, it feels good to write a single code and port/deploy on any platform. Using VSCode or android studio, both are helpful.

How to initiate/send SMS from a HTML5 webpage using devices native functions?

I am wondering how can I open the send SMS application by using a web control of a HTML5 page on Android and iPhone. I want to use the device native SMS sending app, with a prepopulated value from the web.
Further to other answers I can confirm that smsto:555:bodytext does not work on an iPhone running iOS5.
What does work (and I've tested it) on Android is the format:
sms:444?body=hello
Example:
Tap to say hello!
On iPhone the ?body=hello will prevent it working at all, and you should use just sms:555 instead.
sms:555
Example
Tap to text us!
I have tested the below and it works:
Using HTML Anchor tag:
Subscribe
Using JavaScript:
window.open('sms:111?body=SUBSCRIBE', '_self');
With Android 3.0 SDK Google has started exposing API in HTML5 for device access. An example is listed here. It may not be enough for what you seek to do.
I dont know enough about iphone to advise either way.

Using the Camera OK button

I have written an app that allows the user to take a photo with the camera capture some other information then attach the photo to an email and send it. But on the Motorola Droid the camera is started but the OK button will not return control to my application. The cancel button is the action that will return control to my app, even the back button does not work either.
Is it more likely that this is a hardware or software problem and does anyone have any suggestions on how to debug and or solve this problem.
Thanks,
If you are using an Intent, this may be the source of the problem. If you are using the API, I would make sure your layout is correct.
It would be helpful to know which level of the Android API you are targeting and which version of Android the Motorola Droid is running. Have you tested this on other devices? In the emulator?