Facebook official app is notorious for running in background and suck battery & RAM; I found a method to keep it "closed" (but without notification and need root) and I'd like to share it with you

Android - Tue, 02/20/2018 - 06:15

Facebook official app is not good - I guess I don't need to elaborate on this. I find myself using Facebook much less than before, but I still check it maybe once a day for friends' posts. I don't need notifications - I only want it to run when I open it in foreground, and close completely when I am not using it, much like opening it in a web browser.

I tried various Facebook wrappers for 1+ year. I used Swipe, Friendly, Simple, Metal, etc. It was always pretty decent at first. But sooner or later some function would break (albeit temporarily) due to Facebook update, discontinued development, or simply the web interface is just not as polished as the official one. In the end, my tolerance used up; I return to the offical Facebook app.

My major dissatisfaction with the offical app is that it runs in the background, drains battery and eat RAM. I have a Pixel 2 XL 128GB now, so the bloated functions and the large app size is not a concern. I just want to find ways to keep Facebook "stopped".

The problems in details:

  • Facebook runs in background. It has 3 background services with takes up 120+MB RAM (VideoPlayerService 22MB, NotificationService 7MB, Messaging Service 94MB).
  • If you wipe away Facebook in Recent Apps, the background services will not go away.
  • If you Force Stop Facebook, the background services will terminate temporarily, but it will restart a short while later.
  • If you Greenify Facebook, it could stay hibernated for a while, but it will restart somehow. Greenify states that the wakeup reason was "AttributionIdProvider" or "PlatformProviderBase". Usually Greenify can cut wakeup path, but these two cannot be cut. Under this condition, Greenify will act like those useless task killer, i.e hibernating Facebook only to have it waken up by some other apps later.

I did some Googling (btw I'm not a dev) and find that "AttributionIdProvider" or "PlatformProviderBase" are Content Providers of Facebook app. I suppose it means other apps are waking up Facebook to get login details. I installed My Android Tools which can disable components of apps. I disabled those two Content Providers. IT WORKS! Facebook never wakes up again.

I experimented with this method for about 2 months and there seems to be no bad side effect. However TBH the difference in battery impact cannot be assessed myself - I'm a heavy phone user so the battery used by Facebook is probably insignificant compared with that used by the screen. However, additional 120+MB RAM is noticeable. I frequently switched between game (boardgame apps), and the chance of games being "restarted" due to (I presume) lack of RAM is now less frequent.

Hope this method works for you!

TL;DR Use Greenify to hibernate Facebook. Use My Android Tools to disable Content Provider "AttributionIdProvider" and "PlatformProviderBase" (need root). Facebook can now be hibernated and will not wakeup until manually opened again. (Note: there will be no notification)

submitted by /u/hinghenry
[link] [comments]

How to make a free ads version of my paid app?

Developing Android Apps - Tue, 02/20/2018 - 05:55

I have a paid app out in the app store. What is the easiest way to also make a free version with ads of the same app? So I have only the paid app out, but I also want the same app for free with ads. How can I do this?

submitted by /u/LarsNyborgPedersen
[link] [comments]
Categories: Android, Linux

Wanted to get your opinion on app architectural patterns

Developing Android Apps - Tue, 02/20/2018 - 05:37

Hi all,

This probably has been asked too many times here, but I am not asking this same. It has been long since I started evaluating app architectural design patterns and I have some of my own understanding of what should be placed where.

Speaking from your experience, it would be awesome to hear your story of what you were previously following, what tempted you to upgrade and how do you feel about it now?

Really hoping to see some great stories here! :)

submitted by /u/raks99832
[link] [comments]
Categories: Android, Linux

Wondering about the version of android seen here.

Developing Android Apps - Tue, 02/20/2018 - 04:25

The phone featured (apparently made for india market) features no touch screen whatsoever but uses Android. version says marshmallow, but there's no touchscreen and the features are intentionally limited. there's even a Facebook Lite option.

Does anybody know what they're doing here to make Android play nice? Or is there some part of marshmallow that supports these types of experiences? Come to think of it, I haven't really ever seen an Android phone without a touchscreen (except for the first prototypes) so this struck me as odd and would love to learn more about it.

submitted by /u/2IOTA
[link] [comments]
Categories: Android, Linux

Stumped trying to figure out Google Play App Signing

Developing Android Apps - Tue, 02/20/2018 - 03:56


I'm developing an app in a small team and want to release an alpha version on Google Play for testing.

Now I uploaded a signed APK some months ago and enabled Google Play App Signing.

I've since lost the key I used to sign the APK with and now I'm wondering if I have to create a new application or request that the Google Service Team resets the public key so I can create a new one?

I wouldn't mind creating a new app since the package name was bogus anyways.

But please help me understand the point of GPAS then: If there is one initial key you need to allways continue uploading new versions, GPAS' only advantage over the traditional approach is that you can reset the upload key?

I was hoping that because I have access to the Googe Play Developer account I can just download a key, sign the APK with that and upload it. Doesn't it work like this in the iOS ecosystem? You can just add new members to your org, they click a couple of buttons in XCode and they can release the app to the store. I feel like with GPAS we still have to carefully manage the "original" signing key to not have to contact google to reset our upload key.

I'd be grateful if someone could clear this up for me!

submitted by /u/swagvr
[link] [comments]
Categories: Android, Linux

Take Photo doesn't work on lock screen?

Tasker: Total Automation for Android - Tue, 02/20/2018 - 02:18

Hey Reddit,

I'm trying to create a profile that takes a photo using the front camera after a failed login attempt using Secure Settings. I know that part is working. It stops at "Take Photo" and doesn't continue (I know this because I'm printing out notifications after each task).

With my phone awake and unlocked, the entire set of tasks will be executed just fine. It'll take the picture and everything. But when my phone is locked, "Take Photo" craps out.

I am currently running on Android O (OxygenOS) on the OnePlus 5.

Thanks in advance!

submitted by /u/brylee123
[link] [comments]

cerberus email inviting use of new app Persona

Android - Tue, 02/20/2018 - 00:21

Hmm...they are 'offering' 5€/year for Persona which includes Anti-Theft, even though I'm already covered for life under the original license.

Hi zubie_wanders,

We wanted to let you know that we released a new app: Cerberus Personal Safety (Persona).

Persona is the personal safety solution for you and your family. During an emergency or a potentially dangerous situation you can easily and quickly share real-time location with your loved ones. You can share with friends and relatives via email, SMS, Facebook and Twitter with one tap, they will be able to track you just by opening a link, no login required. You can install the app from the Google Play Store:

You might know that a couple years ago we switched to subscription licenses for new accounts, which is more in line with what we provide - a comprehensive service, not just a simple app.

You were one of our early users and purchased a lifetime license for the Anti-theft app, we appreciate it and of course we will honor the terms of that license. On the other hand the Personal Safety app, and new services we are working on, will be reserved to customers with a subscription license.

Persona will work with your lifetime license until the end of March. If you want to use it after that date and have access to our new apps and services, you can upgrade to a subscription plan. We have a special offer for you, check it out at this link:

Thanks for your continued support!

Thank You

submitted by /u/zubie_wanders
[link] [comments]

New Play Store Design?

Android - Mon, 02/19/2018 - 22:19

I've been seeing this lately, is it a new Play Store Design?

submitted by /u/cooperpell
[link] [comments]

2 hours with the S9/S9+. AMA!

Android - Mon, 02/19/2018 - 22:03

Work at retail and had a training session with the devices today. Ask me anything!

edit: it has a headphone jack

submitted by /u/Wan997
[link] [comments]

[Help] I'm Trying to Set Camera White Balance Before Using Tasker's 'Take Photo' Action.

Tasker: Total Automation for Android - Mon, 02/19/2018 - 21:36

I have a Tasker Profile that takes a picture every 15 minutes, stamps the picture with Date/Time (using a Android App I created), and FTPs it up to my WeatherUnderground weather station site. The pictures taken (a Droid Maxx HD) are pretty poor. If I use the factory Camera App the pictures are better.

So, I'm trying to set White Balance, and starting to learn about Java Functions. I came up with the following Task.

SetWhiteBalance (43) A1: Java Function [ Return:cam Class Or Object:Camera Function:open

{Camera} () Param: Param: Param: Param: Param: Param: Param: ]

A2: Java Function [ Return:params Class Or Object:cam Function:getParameters

{android.hardware.Camera$Parameters} () Param: Param: Param: Param: Param: Param: Param: ]

A3: Java Function [ Return: Class Or Object:params Function:setWhiteBalance

{} (String) Param:fluorescent Param: Param: Param: Param: Param: Param: ]

A4: Java Function [ Return: Class Or Object:cam Function:setParameters{} (android.hardware.Camera$Parameters) Param:params Param: Param: Param: Param: Param: Param: ] A5: Java Function [ Return: Class Or Object:cam Function:release

{} () Param: Param: Param: Param: Param: Param: Param: ]

In theory this sets the WhiteBalance to 'florescent' . However, if I use Tasker's 'Take Photo' Action immediately after, the picture does not change white balance. I have several questions.

  • Does this parameter change persist after the camera is released?

  • Does the 'Take Photo' action reset white balance to some default?

  • I have tried to examine the white balance change done in the code above with something similar to wbsetting = params.getWhiteBalance() without success.

*I am also in dire need of a tutorial in constructing Java Functions in Tasker. I'm so confused<GRIN>.

I dabble in Java and JavaScript, but I am 'just getting by, but willing to try' . I can usually understand Java code, but writing my own is a struggle.

submitted by /u/jimjoat
[link] [comments]

Add small image to wallpaper?

Tasker: Total Automation for Android - Mon, 02/19/2018 - 21:13

I saw this interesting task and wondered if it would be possible to, instead of just adding a gradient, or text, I could add an image I downloaded from another task (from a Webcam in this case). My code looks OK but the actual file isn't loading. If anyone knows a better way (such as a wallpaper app with Tasker support) I'd love to know. Task posted in comments.

submitted by /u/LauralHill
[link] [comments]

[Question] Good ol' Fragment vs Activity and data passing best practices.

Developing Android Apps - Mon, 02/19/2018 - 20:53

Hello all, I've been learning basics to Android dev and know a bunch of different ways to go about this but was looking to get some opinions on best practices.

ClassB has primitive data. ClassA has primitive data and a List<ClassB>. MainActivity has List<ClassA>. I needed to be able to save this List<ClassA> to file and a db seemed like too much trouble. I am currently parsing this list of ClassA to JSON and saving that JSON string to SharedPrefs. It shouldn't get big (less than 30 entries).

This List<ClassA> is also being displayed in a RecyclerView. Upon selecting one I will open a new Activity (or fragment) and display the List<ClassB>.

This is where my question comes in. I'm not sure the best way to pass the needed data over and whether I should be using a fragment or activity. It won't be needing to return any data, and this ActivityB will also be opening up an ActibityC at some point (Main->ActB->ActC) Should I make it a fragment and access the data from the activity? Should I make it an activity, and if so, do I just get another handle to SharedPrefs and read it again? JSON string it and pass it through an intent? Are all of these ok solutions and I'm overthinking it?

submitted by /u/Ttbot
[link] [comments]
Categories: Android, Linux

Tasker profiles on/off red/green button display not showing on note 8

Tasker: Total Automation for Android - Mon, 02/19/2018 - 20:51

I don't know when I noticed this, but I don't know how to change this to show again. I have stock unlocked note 8 snapdragon. FAQ says - Why isn't there a green light for the On/Off radio button on the main screen ? A user discovered that this happens when the DPI value of the Android build is set to particulart values (e.g. 200,240 is OK, 220 the light disappears).

Can someone help me change this, if this is the only reason?

Thanks! Marta

submitted by /u/lareya
[link] [comments]

Trying to build an android app that uses prices on Amazon

Developing Android Apps - Mon, 02/19/2018 - 20:39

I'm trying to make an android app that needs to see the prices for any product on Amazon. Could someone point me in the right direction for how to do this?

submitted by /u/tonypengwynn
[link] [comments]
Categories: Android, Linux

List of things to know for dev job?

Developing Android Apps - Mon, 02/19/2018 - 18:00

I am currently working as a Support engineer. I would like to change my focus and career to be an Android dev as there are more opportunities.

What is the must know topics and experience to get an Android dev job ?

submitted by /u/Drrazor
[link] [comments]
Categories: Android, Linux