Linux

Been out of the game for 5 years and need to jump back in. Any up to date best practices for the latest SDKs?

Developing Android Apps - Thu, 01/17/2019 - 21:04

I haven't developed android apps professionally for five years (when I moved on Kotlin was just starting to see some solid adoption and I was refactoring stuff to use Dagger for DI) and I need to jump back in. Any gotchas/things I should watch out for/major tooling updates/etc?

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

Got a Drupal-powered website? You may want to get patching now...

The Register - Thu, 01/17/2019 - 20:45
Open-source CMS gets a pair of critical fixes

Drupal has issued a pair of updates to address two security vulnerabilities in its online publishing platform. The vulns are a little esoteric, and will not affect most sites, but it's good to patch just in case you later add functionality that can be exploited.…

Cool things to do with Terminal

Linux - Thu, 01/17/2019 - 20:42

Hello all, I wanted first thank everyone for the awesome community! Often times in communities like this answers aren’t given, I’ve been surprised how awesome the Linux community is especially here in this sub.

Being new to Linux and coming from a windows world yet having Cisco experience I don’t know why it took so long to move to Linux - but I love it.

Being new are there any cool tips, tricks or just neat things to do in the Terminal? I see a lot of terminal going on in /r/Unixporn so thought I might ask what you seasoned linux users love :-)

submitted by /u/brvheart_bjj
[link] [comments]
Categories: Linux

Working on a calculator app where input is shown in a multiline EditText. Is it possible to prefer line-breaks before operators?

Developing Android Apps - Thu, 01/17/2019 - 19:31

For readability, I'd like to implement some kind of logics that would make automatic line-breaks behave like this:

1111+111111 +222222 -333

...rather than this (default behaviour):

1111+1+22 2222-3333

Keep in mind that I don't want line breaks before every single operator - just the ones close to where line-breaks would automatically occur.

If at all possible, I would like to avoid introducing \n's or something like it into the code because I would have to rewrite a lot of input validation code to account for it. If it's the only possible solution, though, I'll consider it.

Thanks for reading!

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

Poor Camera Application on Asus Zenfone Max Pro M1 & M2

Android - Thu, 01/17/2019 - 19:31

Eventough, the hardware is good the below average camera application is making the smartphone camera experience miserable.

Asus have pushed a lot of updates for camera improvements but no changes were seen. It doesnt even have a manual mode. Just like that many features are missing.

Releasing a pixel master camera (Asus official camera app) application instead of the current camera app would be a good move and it will definetely improve the camera experience.

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

Purism announces PureOS Store

Linux - Thu, 01/17/2019 - 19:12
Categories: Linux

Twitter. Android. Private tweets. Pick two... Account bug unlocked padlocked accounts

The Register - Thu, 01/17/2019 - 19:01
Cock-up went unnoticed for two Olympics, one World Cup, an EU referendum, and a US presidential election

Twitter has fessed up to a flaw in its Android app that, for more than four years, was making twits' private tweets public. The programming blunder has been fixed.…

Is the practice of conforming to an interface solely for testability an anti-pattern?

Developing Android Apps - Thu, 01/17/2019 - 18:55

I think it is pretty well established that exposing methods as public solely to test them is bad practice. It becomes quite apparent that this practice reinforces bad design decisions, and private methods should ultimately be tested anyway by testing against a class’s API.

But… what about interfaces? If I make an object’s dependency conform to an interface only because I want to mock it in unit tests for the object, am I not making the same mistake of changing my production code solely to support testing? It seems that the argument usually goes: “Introducing interfaces as seams in your code gives two advantages: testability, and the ability to swap out concrete implementations at a later date with minimal required changes.”

This does make sense to me. But suppose my application is nothing but a REST API client, and my network "repository" will never grab data from anywhere but the network. I can’t shake the feeling that I am doing something wrong by making the repository conform to an interface only so that its callers can be unit tested with a mock implementation.

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

Stop Task from being executed repeatedly

Tasker: Total Automation for Android - Thu, 01/17/2019 - 18:40

Hey guys,

I'm very new to tasker and this is my first post in this sub, so I'm sorry if this is against the rules.

I have a profile setup that activates when my Sleep alarm goes off which sends a notification to my phone. If I hit snooze and the alarm goes off again it sends the notification again. I basically want the task to be able to only run once every X hours. Is there a way I can accomplish that?

Any help is appreciated. Thanks.

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

Man drives 6,000 miles to prove Uncle Sam's cellphone coverage maps are wrong – and, boy, did he manage it

The Register - Thu, 01/17/2019 - 18:10
Amazing how a big cash payout focuses the mind

A Vermont state employee drove 6,000 miles in six weeks to prove that the cellular coverage maps from the US government suck – and was wildly successful.…

Google spent 40 million dollar to buy Fossil’s Smartwatch Tech

Developing Android Apps - Thu, 01/17/2019 - 18:09
Google spent 40 million dollar to buy Fossil’s Smartwatch Tech

read more

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

Android studio crashing when starting up emulator

Developing Android Apps - Thu, 01/17/2019 - 17:50

When I select a emulated device and hit the play button, android studio crashes on

2.8 GHz Intel Core i7 Macbook using Android 6.0. Changing emulated performance does not help.

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

Pages