« first day (2167 days earlier)      last day (3006 days later) » 

00:03
Poor monsters
lol
Mauker
That's what we get from dave
have you heard Go 4 It! by Corey Feldman
00:05
I haven't
go find it
on the interwebs and tell me your impressions
oh. wow.
I actually liked it ha
Oh God.
lol what?
Those gifs
I missed them
you actually liked the corey feldman song?!
00:27
A bit
It's weird
But I kinda liked it
oh man
It's like Skrillex and Charlie Sheen made Benjamin Button
01:29
Speaking of Skrillex, Ima listen to Skrillex
02:16
wants to rant about ignorant people, assholes, and politics
Pms
Pms
Sure, go on, I can listen :P
I want to rant about how Java don't have any proper consts.
 
2 hours later…
04:04
...
04:16
I'm screwed I can't use this keyboard anymore
I really need a US keyboard now
change keyboard layout
it's not that easy
my german keyboard is very different
04:46
@Eenvincible is NestedScrollView working with ViewPager? Are there any gesture/slide glitches?
I may switch to viewpagers too then
05:33
should i use assert value != null; if i am sure it is not null.
but, AS thinks it is null.
05:50
Finally got an update for my nexus 6p Android Nougat.
06:17
Morning
06:44
o/
successfully set up TOR on my android phone
feels good man
now I can leech office wifi without fear
PendingIntent.getBroadcast(context, requestId, intent, pendingIntentFlag); <------ does this require unique requestId's.
TOR is fun!
1
Q: GreenRobot: EventBus's isRegistered() method not working as expected

Lalit PoptaniI am using EventBus for receiving the events. I want to check if my Activity is already registered or not as I need to register only once through the whole lifetime of the application, but the issue is that wheneven I come to that Activity which is registered EventBus registers it again and due t...

07:00
there are some others who faced same issue. keeping registered state is really hard.
morning all
@Raghunandan nice
@Ahmad get one man
@Bhargav fu hi
07:11
@ColdFire but that would mean I'd have to get a US macbook
you cant get US keyboard with german macbook why?
@rupinderjeet47 yes
@ColdFire hi and fu too :)
Tim - I passed 1 and 2 as request id's for two getBroadcast(). Do i need to create really unique? or just unique for context of my app alone.
really unique like 4864864548 something
1 and 2 is fine
07:24
\o
and Tim - what about this one? --> notificationManager.notify(Constants.INT_NOTIFICATION_ID, mNotificationBuilder.build());
o/
notification manager needs a notification id, i think it is global request id.
it's private to your app, you can use 1 and 2
07:41
choose: intent to intent movement with slideIn and slideOut animation or ViewPager
i got 5 pages.
i can implement both, but i don't know which one is efficient.
what is the goal
making animated transitions between Help, Support, Main, Settings activities
If viewpager does what you need, use that
i heard ViewPager caches left and right page for fast transition, can that be done through intents.
ok then.
always use builtin solution over something self made
Well viewpager uses fragments, so it's a little different
07:45
alright - do you know about ClashRoyale? is that a ViewPager they use?
i can show you a video of that
@rupinderjeet47 you can find out more about the ui using a ui automatoreview
@TimCastelijns see the horizontal transitions made in first 15sec youtube.com/watch?v=8iVACsPA_0M
@Raghunandan looking for that too. thanks.
that's a game, I have no clue what that uses
ok then. i will try ViewPagers
07:53
Yo
Angry bear today
this HomeScreen navigation is close to ViewPager i guess
Graeme - you were right. time between calls changes as new calls are made.
o/
hi Graeme
I'm always right
Well, mostly.
Hi BB
07:59
how are you doing ?
Just had tester see my product and say "This, This and This is wrong because I don't personally like it" and then ganged up with the room to give me a hard time.
Not sure he realises I'm not going to take on any point or opinion he makes for the rest of the day, no matter how reasonable, given he's put me in a mood :P
not good then
I just need to vent and shake it off :P
I will try to make it like 'execute task either if 120 calls are made or buttonPressed for 6sec' whichever happens first.
workplace with testers is tough
most of bugs are usability bugs, critical bugs being very less
Rupinder - What happens if some devices give 40 events per second?
08:02
you scared me
You have to remember as an Android Developer you can't trust all devices to funtion the same, especially when interfacing with hardware. You have to, within reason, work agnostically.
cough Samsung cough
then, i will stop checking for call numbers, and set a timertask. if callgap is exceeded, reset timertask, else do nothing.
samsung :/ galaxy s2 here
Sounds good
I like the new buttons in AS 2.2
timertask will execute even if i get out of my application before canceling/purging it. right?
TimerTask?
08:07
Timer. TimerTask. together.
Don't know what that is, but, yes, your BroadcastReceiver runs in the callers process (Don't know if this is true - anyone?)
timer.schedule(timertask, delaytime, intervaltime)
... Actually, not sure that is true. But yes, your process will run in the background if called.
ok thanks. i will test it.
@Graeme don't know, but usually receivers are only meant to start an intentservice or something, which does run in a separate thread
08:09
i just noticed call numbers makes it horrible, if screen is on: each call is doubleCall, if screen is off: each call is single.
but Receivers aren't allowed to bind to servcies
a receiver can't call MediaScanner.scanFile(....);
Nah, Receivers can do what they want. Yes they run in a different Thread, was asking about the Process
Must run in the app process as it needs the correct permissions
... Right?
"Receivers can do what they want" nope
Please expand :)
(Prewarning - I've used receivers all over the place to do any number of different things)
making a haste in the bin for that
o.o? Eh?
08:20
Graeme - here is the haste hastebin.com/iyuhubigid.sql
oh ok I misunderstood
a receiver can't call MediaScanner.scanFile(....);
:D
Hey guys does your Application class implemented as Singleton pattern?
nope, but i have a sample
i haven't implemented it
Just asking because I always have mine that way, and some don't
08:24
Why would you need that?
what does it change if you implement it?
...
Been doing this for ages, havent read android best practices in years
Maybe something came up
Morning o/
I can't think of a reason why that would be necessary
Some util classes need some direct "Context" reference
08:27
for accessing instances maybe?
Yep
Where on my app I could just call MyApplication.getInstance().someGlobalMethod();
you cant have Context as static
ohh
i just pass context from methods to another methods
how did you use it? like private static Context mContext;?
08:30
o/ Warren
nope, 'this', 'HomeActivity.this', 'a received context' or 'android.content.Context for system'
@LawGimenez can you give an example of such a global method?
getSystemService(android.content.Context.POWER_SERVICE)
Hey Tim, any global method you want to persist throughout your app
in any activity?
08:32
what does it mean to persist a method?
Usually I have a public SharedPreference getSharedPref() on my Application
Because I use it a lot
persist == static?!
^ i do that too
@rupinderjeet47 Yes, but the Receiver can call something which can bind to a service.
Sorry, wrong word persist =(
08:34
Graeme - but in the exception, binding to service is not allowed. You can't run it in new thread too.
Graeme - do you mean to start a service from receiver, and then, bind to another service from new service?
I don't disapprove of what you do, but I don't find that a good enough reason to use a singleton
You can start an Activity or a Service and they can then perform whatever actions you want performing. Binding doesn't make sense from a receiver because it doesn't have a real lifecycle - doesn't mean you can't do it from a Receiver, you just have to make it make sense.
For example, some would have a utils class like Utils.goToProfile() with an Intent inside the static method (not really sure but I once met this code)
Graeme - thanks, you solved a problem.
addKudos(Users.Graeme, 5);
Intead of passing a context as parameter, I can use MyApplication.getInstance().getApplicationContext() directly as a context inside that static method
Some shit like that
08:43
morning
GC doesn't collect statics. right?
Youre late bro
i was doing a early demo
@rupinderjeet47 yes
08:45
:) nice approach you have there
in onCreate(), should i write super.onCreate(); at start(before my code) or at bottom(after my code) ?
I usually have mine before code
you know you're lost when you start thinking about how would you pool and manage every task god used to create the world to make them fully asyncronous but asserting their results
i bet he'd use some procedurally generated things. that's why penguins don't fly.
they got wings but didn't implement Flyable
08:58
me? are you talking about me? :Y
no, god :Y
we're all in a matrix simulation so god is some weirdo CPU. that's why there's so many look alikes and similar voice tones, he ran out of seeds.
#WeirdTalkWednesdays
nice quote :)
There is no god.
At least not a god with the attributes mentioned by christians (for other religions I have no clue)
The God paradox is an idea in philosophy. This idea is explained here: If God is able to do anything, may this mean He is able to make a mountain more heavy than He is able to lift? People say this question is a paradox because: If God is able to make a mountain more heavy than He is able to lift, then there may be something He is not able to do: He is not able to lift that mountain. If God is not able to make such a mountain, then there is something He is not able do: He is not able to make that mountain. If either outcome were considered true, then it is argued that God Almighty is actually not...
09:13
^^
see my quote again lol :P
god is just a python geek's procedural generator process ^^
God is Idea of Evil. if someone got time, read skullknight.net/idea <-- this is related to a great story started in 1989 and still ongoing.
i need to print things
Who's looking forward to trying out Allo?
anyone get an email from google play about using GPS?
ah nevermind, just seen a lot of people have got it
yeah
@rupinderjeet47 it only matters if you rely on the stuff that happens in super.onCreate, but for consistency just put it first
09:28
Wait, does that mean we have to add that GPS permission for BLE?
yeah i do put it at first.
wait what¿
what email from google?
email??
Hello Google Play Developer,

We're writing to let you know that the apps listed at the end of this email may be affected by an upcoming platform change.

Action required: If your app requires GPS hardware to operate properly, you will need to explicitly add the "android.hardware.location.gps" uses-feature to your manifest.

What’s changing

We’re making a change on October 15th, 2016 that will affect apps targeting API version 21 (Android 5.0, Lollipop) or higher that use ACCESS_FINE_LOCATION but don't explicitly have the "android.hardware.location.gps" uses-feature. Going forward, these a
@TimCastelijns yeah i got that email too
09:30
oh fuck didn't got it
nothing required from my end \o/
@MarkOSullivan94 that was already required, at least for 6.0+
this mail is specifically about the uses-feature
yes right
if i develop using deprecated API, do devices who are already using my app get affected?
I don't understand the question
09:33
^
i was going through android reference documentation, and found android.harware.Camera and android.hardware.Camera2 . First one is deprecated, cuzz latter one is introduced. Now, the apps that were built using first .Camera, do they get effected?
effected by what
deprecation. they will remove android.hardware.Camera eventually
Interesting question
I would assume that for an already existing app it doesn't matter, since it is already compiled into bytecode or something
But for a new app you're developing, you can't use that API since it was removed from the SDK
so that means, it will work on Marshmallows and Nougats if it was working on it before removal.
09:37
there's about a 50% chance that all of that was wrong
@rupinderjeet47 if you have the compiled apk then I would assume so
you want to say "i should not develop using currently deprecated api"
but if i compile it before its removal, it will still work. right?
@TimCastelijns it doesnt matter
even if they remove deprecated content right after i compiled app. (before upgrading sdk)
it will work
till it is not removed from
sdk
because new SDK will not compile it. or recognize it.
09:40
if it is removed it wont
work
even if you compile with lower version
I would think that a compiled APK doesn't know if it was made using deprecated APIs or not
if i don't upgrade sdk, i am safe. I will not do it though. just want to know.
I am not sure
> new API uses methods of deprecated API to deliver same functionality, they only changed name of function.
@TimCastelijns deprecation doesnt matter
it doesnt concern if it is deprecated or not
as long as it works
09:50
does that mean I was right or wrong
If you compile using a deprecated method it will work on all API levels in the future until the method is really removed in the OS version
that^
you are compiling against a empty android.jar... you only have the "interface", there is no logic
@TimCastelijns you were partially correct
in compiled apk there is no such thing as deprecated
the method you used is just a "pointer" to a method somewhere provided outside, if that is gone you will get NoSuchMethodError
09:52
if the os support that method it works else it doesnt, simple as that
right, ok
doesnt matter what you compile with and which version only thing that affect is the behaviour which is dependent on target sdk
that mean if Android O removes it, app with deprecated api is useless.
android oreo :D
Oreo have copyright?
09:58
google will buy oreo
on biscuits, new Google Oreo Biscuits
GOB
GOB-lins
@rupinderjeet47 nope
deprecation means it will be removed anytime
you can always check api level and code accordingly
so, you develop again with new API?
ofcourse
...
Y u lazy typng?!
10:08
google bought kitkat rights and partnered with them
so oreo is a possibility
haha eric could be
again: if you use deprecated methods that will be removed on Android O, it will crash on O but work on any previous Android. All you need to fix is that crash by using available methods
Hmm Oreo would be nice
10:09
an API switch is pretty common inside a project
yeah
i have some projects still working over google api services 6 and 7
not deprecated methods tho, just... old versions
got it warren
@Override public int onStartCommand (Intent intent, int flags, int startId) {
    // what do i return here
}
> startId?
START_ something
10:12
start_sticky
or nonsticky
use autocomplete and figure out what you want
i'm oficially a university student
today started online classes lol
\o/ good luck
10:13
this is in Service.java source ---> return mStartCompatibility ? START_STICKY_COMPATIBILITY : START_STICKY;
cool
don't look there :p look at the docs
i will use START_STICKY
besure to read docs of what it means
it says Guaranteed to be called if instance is recreated
10:30
really, where does it say that
> it will guarantee to call onStartCommand(Intent, int, int) after creating the new service instance;
but i think i dont need this.
i dont need to schedule my service to relaunch
START_NOT_STICKY <--- i am using this then
seems fine
@CptEric what you studying?
10:38
Multimedia Engineering
Sounds interesting
onCreate is after onStartCommand. right?
Possible mentions : Web Engineering , Multiplatform Multimedia Applications, Usability and interfaces, Visual communications and marketing, videogames , content management and design
more intesterting and fun than CS
atleast in spain
10:41
this is fun > Usability and interfaces, Visual communications, videogames
multiplaform multimedia apps too
it's what i work on lol
android ,ios, hybrid.
videogames has too many weird things
AI, expert level physics, advanced calculus
i don't like alphabet only maths.
physics is a brain eater
in games
maths is fun.
no they're not. maths are okay to use.
but they're not your friend.
:p
i don't like everything useless i learned in btech, i just did it because i liked math problems it gave me. interesting.
a, b, c, p, q, r, x, y, z is fun.
i like maths as long as there's still numbers on 'em.
10:48
defined values.
i am getting a weird problem, neither my if() nor else() is being called.
in onCreate()
blame maths. that's what i do.
@rupinderjeet47 no
Not work me Tristian :(
10:55
you mean onCreate() is first?
yeah naturally
then, how do i get intent.getExtras() ?
in onCreate()
in onstartcommand
so, the actual code will be called from onStartCommand
@TristanWiley yes just saw
hey tristan o/
10:58
google DUO is out on europe too @TristanWiley
but allo isn't

« first day (2167 days earlier)      last day (3006 days later) »