Installing an Android widget along with it's associated app - android

Developed an app that is feature intensive. (Complete and in testing)
User requests a widget on the home screen to display some summary data that will receive updates from the database that the app works with.
The widget is not difficult to create.
My question revolves around deployment. I want to be able to launch the app from the widget.
This of course means I have to install the app on the device along with the widget.
What is the deployment protocol for something like this or am I going about this the wrong way?
Summary:
Developed app
Developed widget that displays summary info entered through the app
Tapping on widget will launch app
How to deploy both together
Thanks

Related

how to make an app that automate rideshare/restaurants app requests (ex. mystro)

does anyone have any idea how to make an app that automates and filter rideshare/restaurant apps requests? It's kinda working as an umbrella for more than one app.
for example, the XYZ app will be in the foreground and will monitor both Uber Eats and Postmate in the background and whenever requests are received it will show on the XYZ app screen with its details.
I believe it's not doable on the IOS but its existing on android on an app called Mystor. it uses somehow advisability functions in the phone but I want to understand the logic behind it and know how does it work?

Is there a way to retrieve the current foreground application in Flutter (while app is running in background)?

I am looking to have my Android (Flutter) application running in the background, checking what app is currently running in the foreground.
When a certain app is opened (eg: Snapchat), I would like to redirect the user BACK to my application.
I've seen native android code that can accomplish this, but I was wondering if there were any Flutter-specific plugins that can accomplish this goal?
I'm aware that you can grab a list of currently installed applications using Flutter, but is there a way to see which app is running in the foreground and then redirect back to my own application, or is this something that would have to be done natively?

Amazon Hero widget retains information from previous application

When developing a sample list Hero widget application on the Amazon Fire phone I noticed that if I uninstall the application and install it again, the content from the previous application widget is displayed in the newly installed application.
Is this an expected behavior of the widget, because I cannot find any information about this?
The Amazon Fire phone just performed an update to a new operating system version(3.5.1) and after this update, the hero widget does not retain anymore information from the previous application.
It looks like this issue was fixed with the new system update.

android access widget list, coax/remind users to install widget

I would like users to install the widget component of my app. Currently my "mainactivity" simply pops up a textview saying that there is a widget and to see their widget list.
Unfortunately right now, this requires them to open the mainactivity at all. If they want to see the widget in their list of widgets.
I don't want to do anything annoying, but there does seems like there are a lot of hurdles to actually getting and using a widget right now.
Things I could do: setup an onboot service that checks to see if the widget is on the launcher screen. It could remind users once or twice (ever) via some kind of notification. The widget can turn off that service using its onUpdate method or other lifecycle commands. I personally hate erroneous notifications.
One thing I'd like to do is programmatically open up the widgets list. is that possible? any other best practices? Since we can't have widget only apps anymore, I'd still like the main component of my app to be a widget.
setup an onboot service that checks to see if the widget is on the launcher screen
That will require the user to launch your activity, anyway, on Android 3.1+. Your "onboot service" will not run before then.
One thing I'd like to do is programmatically open up the widgets list. is that possible?
No. After all, the user has to indicate where on the home screen the app widget goes first.
any other best practices?
An app that is purely an app widget, unless it is blindingly obvious that it is only an app widget, is going to have these sorts of issues. That is why many app widgets are simply one piece of a more substantial app, so that if the user elects not to use your app widget, or does not notice that it is there, it is not that big of a deal.

Notification in Phonegap While App is not running

I am working on an app with PhoneGap on android where the user will get messages every now and then bringing them to one of the pages on the app. I've looked at a few possibilities but haven't found any simple way to do this. Can I use the built in Notification on the Phonegap API to do this?
I have found a few good ways to do push notifications like thisw: http://www.pushwoosh.com/programming-push-notification/android-push-notification-for-phonegap/ but I want the notification to be coming from the app itself with the time determined by a built in timer.
Thanks!
You can't, not in Phonegap anyway. If the user leaves the app with the Home button, then the code is still running (until it gets killed when memory gets low). But if the user exists with the back key, the app dies. See here: Creating an Android Service with Phonegap? (Have phonegap app run even when closed)

Categories

Resources