App shows in Application List but widget doesn't appear in Widget List (on Android 2.2 phone) - android-widget

I have created an Android widget application which installs fine on my HTC Sensation with Android 4. I have also tested it using the AVD emulator and it works fine on Android 2.2, Android 2.33 and Android 4 emulators.
When a colleague installs it on his Android 2.2 phone the app installs and comes up with the welcome page, however the associated widget never appears in the Widget List so he can't add it to his home screen. He says the app is installed on the phone and not an SD card and he has opened the application which is normally required to make the widget appear in the list.
Does anyone know how this can happen or what I can do to make the installation more robust?

The issue appears to have been caused by installing the application on the SD card first. It was then moved it to the phone to try and get the widget to work but widget does not show in the Widget List. A phone restart sorted it out.

Related

Dynamic widget builder

am working on a time management app project in flutter I want the app to detect the apps installed on the user device and reveal them on the screen automatically, is there any way to do the front-end part of the work and how?

How to check if Flutter app in running in webview

I have built a web app in Flutter and I want to check where the app is running.
My app runs in the normal browser, in Microsoft Teams and in a WebView within another Flutter app.
In all cases the kIsWeb bool is true.
With the device_info_plus package I only get errors...
And with the web_browser_detect (on iOS) only safari back as the browser (even if it is in the webview)
Does anyone know a solution?
I think you are needing to look at userAgent. See this answer:
https://stackoverflow.com/a/67644049/233382
or this answer
How to get device user agent information in Flutter

Flutter Web with AutofillHints.creditCardNumber - Scan New Card Doesn't work in Flutter Web with Chrome for Android, but it works in Safari iPhone

I'm using AutofillHints.creditCardNumber on Flutter Web, everything is ok with HTTPS, it even works on iPhone. However, on Chrome Android the option to scan the card appears, then activates the camera, but does not return anything to the TextField.
If using HTML5 with cc-number it also works normal on Android Chrome to scan card with camera. The problem only happens with Flutter Web.
Has anyone gone through this?
Thanks

Flutter printing invoice to usb printer in desktop app

I'm working on flutter desktop app and i need to print invoice to USB printer.
https://pub.flutter-io.cn/packages/printing
Currently i m using this plugin but not working, it only shows pdf view with loading indicator only. not loading the invoice view i created.
https://pub.dev/packages/flutter_usb_write. This is another plugin i've tried so far but when running the app is shows exception stated unable to find method implementation for detecting usb connected devices.
Please help me solving this issues or suggest me some another solution or plugin.
Thanx.
Flutter desktop has been launched as stable earlier this year. Perhaps you may want to try running a desktop build again using the latest Flutter version. Simply run flutter upgrade to update the Flutter version that you're running on. Currently, the printing plugin is one of the stable printer plugins on Flutter.
If the issue persists, please include the logs from the app. This should give indicators if the app is able to communicate with the printer or if there's any issues with the document that you're trying to print.

Ionic served as web app

I have an Ionic app which I currently serve as a web app by doing ionic serve
I have few questions about it:
By default in the served web app, it takes the iOS layout, can it be changed to the android layout instead? How?
In the android version of y ionic app when I do ionic serve --lab, some of the bottom part of the content is somehow cut off (I can not scroll till the end), however it looks perfect in iOS version. Why does this happen and how can I fix it?
When I try to make an APK out of it as mentioned in the following link http://ionicframework.com/docs/guide/publishing.html , I get a blank app on my android device. What could be the reason?
ionic serve --platform android
Are you taking in account that iOS scroll "stretches"? I mean, even when the scroll is all way down, you still can pull the content up. Maybe your content is indeed hidden (specially if you are using a footer bar. Actually, if you are using a footer bar, try to add a margin-bottom for your content equal your footer bar height.).
Have you checked if this happens when you run ionic run android? If this command works, try to run cordova prepare android before following the publishing procedure. If the command does not work, open chrome://inspect on your computer's chrome browser (with the device connected to your computer and running your app) and debug it to check if your code is being packed with the apk and/or the app is yielding some error messages.