Android - app list - android

I am trying to make an app where the user is shown a list of installed applications, each one in a separate check box. If an app is checked, and then later opened, how can I trigger an event when the app that the user selected is opened. I am a complete novice in this area, therefore code or tutorials would be appreciated, as I don't know where to start.

You want to use PackageManager getInstalledApplications() or getInstalledPackages() to get a list of installed apps.
I don't understand the following part of your question:
If an app is checked, and then later opened, how can I trigger an event when the app that the user selected is opened.
It sounds like you want to open the exact app which the user opens but that's probably not what you mean.

Related

I want my Flutter app to automatically open when user hangs up a call

When a user receives a call and ends it. I want a small pop up from flutter app, which asks if the recent call was an enquiry or not. Once the user presses yes, it has to take him to the flutter app where he can enter rest of the details.
I can manage the rest of the app, but can someone give some pointers as to how I can do this. IOS is not a necessity. As long as it works with Android its fine.

Insert App option to call logs

I am developing an App that need to have an option or should i say a link when user gets the properties or menu list from call logs i.e when a user long press on an entry in call logs of phone. I have trying for hours now but not getting any useful information in internet. Please help.
Adding options to context menus of other apps is really not possible. For your example specifically if you see the Contacts app over there is made by Samsung and this may vary for other OEMs and it is totally up to them how they decide to design their user interactions within their apps.
Another point to this discussion can be related to apps like WhatsApp whose options (like calling) appear in the Phone app itself. This is because it has registered itself as having that ability in its <intent-filter> and the Phone app itself shows all apps with that ability. However, you cannot decide what options the default Phone app shows.

right way to add starting tips in Android app

I am developing an Android application, and I want to show some tips (few slides) for user when applicationis started first time.
I can make an activity and start it in OnCreate method of main activity, or make dialog window.
I want to ask: how to make it in the right way? Can experienced developers advise something, maybe with example?
You have to first make sure that these tips are launched only on first launch of app. I have seen this done by displaying a Dialog, and saving a value to shared preferences (or in sqlite for that matter). On next app launch this value is checked, if it is set, then you don't display the Dialogs.
This seems to be the simplest way. Note that when the app is uninstalled and installed by again the Dialogs will be displayed again.
Sometime we want to give the user ability to see this Dialogs once again. You can do this by setting/resetting the value in shared preferences from the apps settings screen. The user can change the value here and see the Dialogs again on app start.
Just make a Dialog Type Activity and show it automatically at the first time startup of your application.
and also add a help in you menu so that user can see it whenever he/she need help.

How can I update a home application without being asked to redefine the default home?

I have developed an application set as a home onto my Android device. On my device I set it as the default home application. That way, each time I click the home button, I am redirected to this app.
The problem I have is that I have to produce some updates. But when the app has been updated, the device ask to define the default home once anew.
I would like the update to be performed without the user having to define the default home again.
There isnt a way to do this. Each time your app is updated the user will have the opportunity to chose whether they want to keep it as the default home application. It is a means of Android showing a user he or she is in control of there device at all times.
If im wrong someone please correct me.

Launch my Activity when any (or selected) Apps are launched

I'm developing a Learning Application. In it, I have an Activity where the user can select some applications from a list of all the applications installed on his device.
Now, I'd like to launch my Activity whenever the user launches any of the selected applications from the app list. Basically I'd like to override the selected Activity by my activity. Once the user complete's some task, the user should be returned to the previously clicked Application.
How do I "Capture" this 'Launching other applications' part? BroadcastReceivers? Any example would be highly helpful. I'd be very grateful if anyone points me in the right direction with reference links.
This is very similar to a Lock Apps Application. But in a very badly twisted kind of way.
I know I have to use a background service to monitor the user activity.
You don't intercept arbitrary application launches, if that's what you're after. Doing this silently goes against the Android (or any reasonable) security model.
What you can do is offer an alternative Home screen.
However, if you just have a list view of available applications, nothing stops you from defining custom behaviours within that list activity.

Categories

Resources