Screen to show app output inside app in android - android

I'm writing an android app just to get familiar with the OS and API. I'd like to show what my app is doing to the user in a seperate screen and not via notifications. The reason is that I'd like to show the user exactly what the app is querying and how long it took etc. I saw an example of this in the superuser app which shows what the app is doing when it is updating itself.
Is there a library to do this?
Is it as simple as just showing a text box and then populating it programatically?

I would have done it so..
Just push state changes to your UI thread and display them there.
You can do that via BroadcastReceiver, which is intended to let background services communicate with UI activities, or LocalBroadcastManager which is simpler version of the previous.
Here on StackOverflow you will find dozens of questions describing how to implement it.

Related

How to start activity from background-service and display it over current running apps

According to the android documentation (https://developer.android.com/guide/components/activities/background-starts) this shouldn´t even be "possible" anymore. I checked many posts already but they all seem too old or say this isn´t really feasible or easily doable anymore. But still, there are apps doing this today like (StayFree for example). I want to start the activity with a running service that checks data in the background.
What I would like to know or I think is needed:
Permission like display over other apps (Something like ACTION_MANAGE_OVERLAY_PERMISSION)
A service for which is running in the background while the app is not open and starts the activity from the background.
Attention: I want the overlay/activity to be a normal activity and not a system alert window.
I tried many things but I am still mainly a C# Dev so help I would appreciate your help thanks!

How to read notification and not show in status bar when application is closed or killed?

I am creating a demo for android and for that, I want to not show notifications for a specific application like WhatsApp, Facebook, Instagram, etc. And for that, I have added notificationlistner and it worked for me when the application is in the foreground or in the background but not in a killed state. And I want to make it happen in the application killed state.
It would be great if I get help with this.
I have a simpler answer for you- just don't have those apps on the phone you're using to demo. If necessary, buy a cheap used phone for your demo. Far less time and effort than trying hacks to make notifications of other apps disappear.

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?

Android VoiceInteraction and Assist API

I've just read about the Android APIs called Assist and VoiceInteraction.
What I'm trying to achieve is an app like NowOnTap. For this, I need an access to the screen's content before the user long presses the home button.
First, I tried using a normal activity with the android.intent.action.ASSIST action.
Digging more into this, I found out that in order to access a screenshot before opening the apps, I need to implement VoiceInteractionSession and its methods onCreateContentView and onHandleScreenshot.
I wasn't able to create UI by using onCreateContentView and, according to my logs, it doesn't even gets called. Anyone with experience using this APIs?

how to keep application in running mode when create and launched in android?

I want to keep android application run in background not in foreground when it launched. For Example, like Android Settings and Android Keyboard. Only Running Process List in display this application. Actually, this application is running in background and user can't display it in foreground.
No matter what you want to do with your app, if you want it to run in the background and not getting destroyed when it isn't displayed anymore, you have to use Service.
This is the Android Developers site explaining it:
http://developer.android.com/guide/components/services.html
And this is a nice tutorial:
http://www.vogella.com/articles/AndroidServices/article.html
If your code doesn't work with a service, it's probably not the service's fault, but your code's, and you should post another question precisely explaining your problem with it.

Categories

Resources