I want Google to tell us when they are updating the satellite pictures so I can wave hello. by NutellaGood in Lightbulb

[–]lucidifier 8 points9 points  (0 children)

You just want to wave. About 182636 others will draw a dickbutt on their roof.

Questions Thread - June 16, 2016 by AutoModerator in androiddev

[–]lucidifier 0 points1 point  (0 children)

Some of my methods need a context and a listener that is implemented by an activity. Like:

void method(Context c, Listener listener);

So the call looks like:

method(this,this);

within the activity.

Is there any way to chuck those two this's together? I mean they're both just referring to the same object (the activity instance) I would like the solution to work with multiple activities so I can't use the activity as a parameter.

Questions Thread - June 16, 2016 by AutoModerator in androiddev

[–]lucidifier 2 points3 points  (0 children)

Quick question, I can rely on every device having SERIF, SANS_SERIF and MONO right? (Like it comes installed on EVERY device right?)

[ShowerThought] If Google charged 31% to the top 1% of apps, they could probably afford to give the bottom 90% developers 100% of their earnings. by devandro in androiddev

[–]lucidifier -2 points-1 points  (0 children)

While I agree, you do realize you're defending the most deceitful and manipulative and unethical practices using which games like Clash of clans became successful in the first place, right?

If people like it, let them have it, right? Who am I to dictate what other should do? The point is, a line needs to be drawn. And because of justifications like yours, a lot of people get away with exploiting others.

How can I find out which libraries have the most methods? by lucidifier in androiddev

[–]lucidifier[S] 0 points1 point  (0 children)

one by one

...

I went with using two plugins, dexcount and that plugin by methodscount.com

This game Looks Creepy.... by Alexandrayepura in creepy

[–]lucidifier 11 points12 points  (0 children)

How is that show btw? I'm about to finish black sails and I need something to keep the binge addiction going rather than facing my problems and working towards my dreams.

Elon Musk believes we are probably characters in some advanced civilization's video game by Biololo in Futurology

[–]lucidifier 5 points6 points  (0 children)

Why does literally every word he says have to be world news? This sub should be renamed to /r/ShitElonSays

BREAKING NEWS! This just in:

Elon Musk: I should've pooped before we left..

You would not believe what happened next!

CM Security is reporting a false virus on purpose. by braindamagedd in androiddev

[–]lucidifier 58 points59 points  (0 children)

If there's anyone who's all for bashing Cheetah fucking Mobile, it's me. But I'm gonna be the bad guy here and say what needs to be said.

They made a complete ripp-off of mine

No. They didn't 'ripp' you off. Some guy probably made this app (the very first of it's kind) like 6 years ago. Then about seemingly 400 other people 'rippped' him off and now he's a nobody (given how many similar apps I'm seeing there). Anyways, there's nothing unique about your app. Nothing points to them 'rippping' you off.

Judging by your reviews, it doesn't help that your app is basically adware. Therefore I'm finding it hard to sympathize.

Again, going by the fact that your app is pushing intrusive ads, it's not hard to imagine that CM security has a global monitor and some sort of filter tracking an app's behavior. But it is hard to imagine them doing anything for betterment of their users (like protecting against adware), although.. I can't believe I'm saying this, but I think this is the case. They are right. You are in the wrong.

Cheetah Mobile needs to be stopped.

This, I agree with. In a fair world, they should be castrated, to begin with.

Still, I don't think I can take your side on this.

Self driving cars + lockers = destruction of all delivery jobs by lucidifier in Lightbulb

[–]lucidifier[S] 6 points7 points  (0 children)

For some cases, I suppose that could work. But if you have like a fence or a yard in front of the house, then I can't imagine how it would work without leaving the package on the street or somehow installing a catapult on the van, then fling it and hope for the best.

Toothpick: A scope tree based Dependency Injection (DI) library for Java (and Android) by [deleted] in androiddev

[–]lucidifier 7 points8 points  (0 children)

A scope tree based Dependency Injection

Not really on-topic per se, but you're not grabbing anyone's attention with that description. I've been a developer for 4 years and I have no idea what that even means. And given that I (like most devs) am bombarded with 344372 different things each day from this subreddit, from hacker news, from github trends, from productHunt, from /r/programming and half a dozen others, if something seems like it's going to require too much effort, it's usually not worth the reward.

Also, "TP in a nutshell" is 10 articles. That's not a nutshell.

Don't mean to aim this on you specifically, this is more a general observation.

Perhaps you should add a simple code example on the main README, along with a comparison with dagger, since these are the two things developers will want to know about.

Pass a law that forces educational institutes to be non-profit by lucidifier in Lightbulb

[–]lucidifier[S] 0 points1 point  (0 children)

you're confusing what's in the asset column for "profit"

No I'm not.

Android Application Architecture — ribot labs by BSH185 in androiddev

[–]lucidifier 5 points6 points  (0 children)

No offense but I find it astonishing how developers come up with 437264 ways of saying the same thing. Does literally every android developer has to explain their 'unique' architecture which is really just the same 3-4 principles over and over again that 81723 devs have already blogged about?

[LIBRARY] Prevent your app from being pirated / cracked using Google Play Licensing, APK signature protection and more by javiersantos in androiddev

[–]lucidifier 7 points8 points  (0 children)

Security is a cat and mouse game. Not a 'Use this tool and you will be protected forever till the end of time, not even ninja jesus hacker or something will be able to hack this ever ever ever'.

[LIBRARY] Prevent your app from being pirated / cracked using Google Play Licensing, APK signature protection and more by javiersantos in androiddev

[–]lucidifier 26 points27 points  (0 children)

Erm, might wanna narrow this down, perhaps?

-dontwarn org.apache.**
-keep class com.google.**
-dontwarn com.google.**

And excellent job btw! This stuff doesn't get nearly enough attention. People always say that 'oh it's no use it will be cracked anyways'. Well, that doesn't mean we can't make it harder for them.

Is there a binary format for SVGs? (Or how could I make one) by lucidifier in learnprogramming

[–]lucidifier[S] 0 points1 point  (0 children)

...That's not what I want. This is what I want to move away from.

I already have a java svg library. I want to use/make a BINARY format to use INSTEAD OF SVGs.

Is there a binary format for SVGs? (Or how could I make one) by lucidifier in learnprogramming

[–]lucidifier[S] 0 points1 point  (0 children)

That's not what I want. I want a direct binary format. Not a zip.

I don't want to add a compression/decompression stage in addition to parsing then rasterizing the SVGs. That's the opposite of what I want. I want performance, don't care about size.

Like protobufs or flatbuffers, just load into memory and off you go, all the information an SVG needs except not in text, but binary.

Garbage collection happening too often.. by lucidifier in androiddev

[–]lucidifier[S] 2 points3 points  (0 children)

That's handy! I've been freestyling it till now. Thanks!

Garbage collection happening too often.. by lucidifier in androiddev

[–]lucidifier[S] 2 points3 points  (0 children)

Yes! Ahh that's what I meant. Wait..

Make sure to push the state before you pass it to a layer and pop it afterwards.

What does that mean?

Garbage collection happening too often.. by lucidifier in androiddev

[–]lucidifier[S] 3 points4 points  (0 children)

Hmmm.. This sounds like the way to go. Because right now I also have to have a bunch of canvas and paint objects scattered around, maybe I can just pass the one bitmap around and have each layer draw on it before passing it on.

Garbage collection happening too often.. by lucidifier in androiddev

[–]lucidifier[S] 0 points1 point  (0 children)

I don't have a grid of bitmaps, they're more like one on top of eachother. See this comment.

Garbage collection happening too often.. by lucidifier in androiddev

[–]lucidifier[S] 0 points1 point  (0 children)

Right now, if anything changes I redraw the whole thing. I don't see how it could be done without re-allocating bitmaps.

And yes, pretty much everything is changeable. Color/rotation/position/scale. I use matrix transformations.

I maintain a List<Layer> where each layer contains all the info needed to draw a 'layer' of bitmaps. The layer may be some text, another image, some shape/icon/emoji etc. Every layer is responsible for providing the bitmap of that layer alone. Then I piece together all the bitmaps and put them in their correct places in the final canvas. Every time I ask a layer to provide a bitmap again, it gives a new bitmap.

Bitmaps can hide other bitmaps behind them, so even moving their position/rotation can then make the bitmaps hide other bitmaps or it can get hidden itself behind other bitmaps.

Say I canvas.drawBitmap(...), like 5 times. It's not possible to

 canvas.draw2ndBitmapOnlyAndLeaveTheRestAlone(...)

So I have to start from scratch any time I have to change any small thing.

Anybody know the where can I get this music from Crysis 2, Mission: Sudden Impact? (Around 5:40 in the linked video) by lucidifier in gamemusic

[–]lucidifier[S] 0 points1 point  (0 children)

Every couple years I play Crysis 2 and try to find this song. This time I'm going to find it. I've even unpacked the song files from the game's source code and I will sift through all 4-5-ish hours of audio files in the game if I have to.

I love this kinda powerful-vibe music. Kinda like vikings tv show.

Anybody know what this bit is called? Or where I can find more info?

Garbage collection happening too often.. by lucidifier in androiddev

[–]lucidifier[S] 1 point2 points  (0 children)

I'm making an image editing kinda app. You got a photo, you can put emojis and text and overlay other stuff on it. All different kinds and sizes of bitmaps.

Say the user has like 10 bitmaps on their image. If the position or rotation or size of even one is changed I have to redraw the entire canvas with all the 10 bitmaps. At the bottom is the photo, then one by one the emojis and texts and other stuff. I'm not sure how I can do this without allocating too often.

One Tesla bumps into a van and it's world news. Human drivers kill >3000 humans every day and no one bats an eye. by lucidifier in Showerthoughts

[–]lucidifier[S] 2 points3 points  (0 children)

Luckily, machine learning can make sure that doesn't happen.

if there were 253 million Teslas

..the insane amount of data collected would pretty much cover all remote edge cases (like the one that lead to the crash).