[Q] obtain recently used app list programatically? - Android

As a user, whenever I long-press home key, I get this 'recently used
apps' list. As a developer, how do I fetch the same list
programatically?

Related

Google checkout button in my application

Hi,
I am developing an application and I would like to add a Google checkout button to the applications so users can purchase something.
I can't use inapp as (from what I understand) this is only for payment of digital items from the application.
Can anyone tell me whether I can add this scenario?
1) User visit page on my app
2) chooses some items from drop down menu
3) user clicks checkout button and purchases what he has chosen from drop down menu?
Thanks!

[Q] How to access main application SharedPreferences for Home Screen Widget?

I have an app that stores the location of the last opened database in it's SharedPreferences, I have no issues working with this inside the main application BUT...
I am trying to create a Home Screen Widget for this app and I need to access that preference some how so that I can open the database from inside the Widget. I have done a lot of google searches and I am coming up with nothing very good. It seems "possible" to do this with createPackageContext() but everything I have read indicates that this is not very secure.
I have the ContentProvider working just fine if I hard code the database location, but since the user can open up multiple files I need a way for them to specify in the app the default file they want opened. I guess maybe the "best" method would be to have them select the file when they enable the widget maybe?
I know that I have seen apps that "seem" to be using the SharedPreferences to store the data and it is shared between the Home Screen Widget and the main app, so how can this be done IF it really can be done?
Anyone have any suggestions or locations that I can do more research on?
Thanks,
-Eric

[Q] Tool to monitor code of app?

Not really sure where to ask this so if this is the wrong place, please let me know where to go!
Is there a tool somewhere in which you can run an app in an emulator and view the actual code being processed in each interaction? For example, if the user pressing a button causes the code "refresh voicemail list" to fire, then when the button is pressed in the emulator, "refresh voicemail list" will print in a log, ideally also on the screen to watch it real-time.
My purpose in this is to figure out what an app does at certain points (hopefully the intents being sent) so I can attempt to duplicate it through a shell command. More specifically, although this tool would be useful in multiple situations, I'm looking for the intent sent when Google Voice refreshes a voicemail to get the transcript. I'm hoping to force that refresh in the background so the sqlite database updates without needing to manually open the app and refresh it. I use the sqlite database in a Tasker profile to get the transcript as a variable and unless the Google Voice app refreshes after a missed call, the transcript isn't in the database.
Any tips to point me in the right direction in this endeavor?

[Q] [Help] Writing my Own App

I am planning to create an Android application which will neither have a launcher icon nor application UI. in short it will be a stealth app.
It will run in backgroungd and will perform its task automatically.
No user interaction required. just install it and forget it.
Basically it will collect some logs from a pre-defined directory and will send it via email to a pre-defined email address, without user knowing any thing All this should happen once a day as a pure background prcess.
Can anybody help me as this is going to be my very first Android application and I dont know anything about Android application programming.

Bootloop / Rebooting when WiFi is turned on?

Hi Folks,
3 nights ago for the 2nd time only, I connected to the Internet with WiFi and I noticed some apps were being updated. Somewhere along the way Automatic Updates was reset from Off to Via Wi-Fi only. It stopped on the third.
apps_Packages info is reporting the following 3 apps, in descending Date and Time order, as being updated but they still appear listed in the screen for App Updates which is accessed from the Update Center listed on the screen for About Phone.
LG Account
RemoteCall Service
LG Mobile Switch
My intention was to to look at LG SmartWorld to see what Dark Themes they have to offer before disabling this app. I would like a System Wide theme with Black Text on a Grey or Dark Grey background.
Are themes an inherent feature of Launchers that are automatically applied to all apps?
Not too long afterwards the phone Rebooted and this would happen again after 2 or so minutes each time after I entered my PIN and started checking settings etc.
I turned off WiFi and the rebooting stopped.
I noticed afterwards that less RAM is being used by the System.
Same thing started happening again the following morning when I turned Wi-Fi on again.
Has anyone else had a similar experience?
Have I possibly disabled something that is required for WiFi to function correctly or for apps to be able to properly communicate with the Wi-Fi processes?
I had previously used the Force stop button for apps such as Gallery, Weather, My Places, Email, Exchange, QuickMemo+ etc.
There does not appear to be a Software Update to Oreo 8.0 available but the following apps are listed as having updates available. Do they need to be updated first in order for the system to "properly" check for a Software Update?
Email
Home & app drawer
LG Account
LG Keyboard
LG Mobile Switch
QuickMemo+
RemoteCall Service
Weather
What I would like to achieve is to have everything disabled as much as possible before removing the SIM Chip from my old phone and installing it into this one.
The following Apps, I want disabled, but keep appearing in the lists of Running Services and Cached Processes even after I have used the Force stop button and after every Reboot.
Email
FmService (Can this be replaced by a Third Part app?)
Gallery
My Places
QuickMemo+
RemoteCall Service
Weather
Weather Service
I want the following disabled also.
Exchange
LG Account
LG Backup
LG Health
LG Keyboard (after installing AnySoftKeyboard)
Is the only way to ensure this, without loading another ROM, to use ADB (Android Debug Bridge) and uninstall the Apps? I am using MX Linux.
I have seen various Debloat lists on this forum and there is some useful information provided via the following page.
lists · master · W1nst0n / Universal Android Debloater · GitLab
Bash script using ADB to debloat rooted and non-rooted android devices. Improve your privacy, the security and battery life of your device.
gitlab.com
For example, in the Google.sh list the following is noted.
##################### YOU SHOULDN'T MESS WITH THEM (core packages and may cause bootloop) #####################
#"com.google.android.captiveportallogin"
# Support for captive portal : https://en.wikipedia.org/wiki/Captive_portal
# A captive portal login is a web page where the users have to input their login information or accept the displayed terms of use.
# Some networks (typically public wifi network) use the captive portal login to block access until the user inputs
# some necessary information
# NOTE : This package is a now a mandatory mainline module (https://www.xda-developers.com/android-project-mainline-modules-explanation/)
Click to expand...
Click to collapse
In the AOSP.sh list the following is noted.
#"com.android.captiveportallogin"
# Support for captive portal : https://en.wikipedia.org/wiki/Captive_portal
# A captive portal login is a web page where the users have to input their login information or accept the displayed terms of use.
# Some networks (typically public wifi network) use the captive portal login to block access until the user inputs
# some necessary information
Click to expand...
Click to collapse
My phone is using com.android.captiveportallogin - Version 7.0 (24). The Disable button is disabled for this app.
Which apps should not be uninstalled with the approach I am taking to mitigate privacy concerns?
For example, is it safe to uninstall the standard Contacts (com.android.contacts) and Contacts Storage (com.android.providers.contacts) apps or are they required by some of the Third Party apps, for Contacts, in order to function properly?
Can the Messaging (com.android.mms) and Phone (Call services - com.android.phone) apps be uninstalled and replaced by Third Party apps such as QKSMS and Simple Dialer?
My current Home Screen (Home & app drawer - com.lge.launcher2) had a Time and Date and Weather widget but, even though I have removed it, the Weather apps still appear in the lists for Running Services and Cached Processes after every Reboot.
Checking the Uses permissions list of apps_Packages info reveals that the Home & app drawer has references to Email, FormManager and Weather.
Could the Email, FormManager and Weather apps be prevented being used by using a different Launcher? Which Launcher?
https://f-droid.org/en/packages/com.vincent_falzon.discreetlauncher
Which Weather apps are recommended as a replacement?
I also want to prevent all the Offers (Advertisements) I keep receiving from my current Service Provider via SMS.
Can this be done using the SIM Toolkit?
Is the SIM Toolkit an app that should not be uninstalled?
Should I do a Factory Reset and start again? If so, will I need to disable, again, all the Gulag (Google) apps that I previously disabled with the Disable button?
Which of the methods on the following page is the best to use?
How to hard reset an LG G5
According to the following page, "If a pattern, PIN, etc. is or has ever been set up on the device, Google account sign-in is required during initial setup."
I am using a PIN but a Google Account has never been configured for the phone.
LG G5 - Factory Data Reset (Powered Off) | Verizon
Here's how to factory / hard reset your LG G5 if the screen freezes or call, app, audio or sync issues occur and the device won't start up.
www.verizon.com
If I do a Factory Reset should I attempt to have the App Updates done before starting to disable any other apps?
What other information could I provide that would help to pinpoint the cause of this problem?
Thanks, M.

Categories

Resources