« first day (2726 days earlier)      last day (2239 days later) » 

5:20 AM
Well, I learned something myself, helped you and I enjoy questions around here that are not the usual lazy "I want build thisthatbla, give me code cuz hurry". So: Glad I could help, and thanks for a well-crafted question too. — user658042 May 24 '12 at 10:38
 
 
1 hour later…
6:34 AM
Goooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!! :D
 
6:47 AM
hi
 
7:04 AM
hi
 
@CarlAnderson :D That's definitely the most amount of times I've been pinged in a row
 
sup tim mark and womp
 
o/
I'm in early today \o/
 
yay nice
 
7:12 AM
Hiya Tim, CF, Mark, Warren!!!! :D
 
lol
 
hey womp, thanks for the ebook link!
 
:D
 
7:27 AM
good morning!
anyone here worked with geofences lately and can help me?
 
no eric
 
yes
wait, deja vu
 
yeah but you kinda redirected me to the android docs and they suck and don't work
:D
 
lol
 
a bunch of uncomplete code snippets referencing code not in the doc page is not useful at all. fucking google.
 
7:37 AM
bro
if I can make it work, you can make it work
what seems to be the problem
 
7:48 AM
it's not triggering
not exit, not enter, not dewll
dwell
followed every step
 
is the fence monitor request successful?
 
you mean the addGeofences addOnSuccessListener ?
yes
 
can you share the request builder
 
? extends AncientGreekCity
ok and the geofence list?
you are using an intentservice to handle the reports yes? Is it registered in the manifest
 
8:17 AM
yes
<service android:name=".GeofenceTransitionsIntentService" android:enabled="true" android:exported="false"/>
the list is OK, it returns success on add
this is the code that adds the geofences to the list
 
a lot of !! in there :D
 
kotlin!!.syntax
 
yeah, I know. are you sure that all of those things are not null :D
 
yeah
 
have you verified the region you're testing
 
8:26 AM
have i what? :I
you mean if the lat long and radius are the area i'm wanting to track? yes
one is a 10m radius circle in my office, the other a 10m radius circle in our cafeteria
 
you guys have a cafeteria?
 
shared with other business @ this place
 
sounds like a dream
 
user443346
o/
 
it's okay. cheap good quality food
 
8:42 AM
 
@TimCastelijns any other idea on what could be wrong?
 
is gps enabled
 
yes
i even have a map where i draw the user location and the markers of the areas
+ a radius
to see where i'm in or out
 
did you verify if the service is not called at all
 
how can i verify that
i mean, (if that'as what you mean), the onHandleIntent is never called, that's my problem
 
user443346
8:53 AM
I feel ignored
 
Hiya Netpork, Murat, Jordy!!!! :D
 
user443346
I don't feel ignored anymore
 
user443346
o/ Womp
 
ok
are you already in the geofence when you start monitoring?
 
yes
but if i leave, and enter again, it makes no change at all
and by leave i mean over 100m "outside" of the range
 
8:55 AM
how far out do you go to "leave"?
 
what i said, 100m
10x the radius
 
I think a radius of 10m might be very difficult to register
> Another strategy for getting best results from your geofences is to set a minimum radius of 100 meters.
 
well i need more precision than that :I
also it makes no fucking sense that it wouldn't work
given it's inside the geofence
and i can ltierally see the position in the google maps map fragment
it would be different if this thing was running in background
 
I don't think geofence api uses the most accurate location possible, to save battery
 
but there IS a "latest avaliable gprs location"
because i am requesting it
so it must be stored in the phone
also it's not even trggering the initial ENTER
 
9:06 AM
try with larger radius just to rule it out
 
will do
nope
still no initial trigger
 
for different reasons we switched to manual geofencing after some time. Might be an option for you
we needed more than 100 fences to be monitored
 
what is manual geofencing?
 
we just monitored GPS manually and checked if it was in any of our specified polygons
 
oh
how could i monitor GPS manually on a background serivce that keeps running even with the app closed & on app reboot?
that would solve it
no need to be exact
or instant
 
9:11 AM
it should be a foreground service for best results
 
the point of geofencing is getting intent triggers wathever the app state is
need the same
 
well it was working for me then, but we had larger radius, and still issues with accuracy
 
so back to the new topic, is there a way to make the background thing? i've never worked with services before.
 
no, largely due to android putting more restriction on background services with every release of android
in 8 you can only get like 6 location updates per hour in the background
 
that will do man
but, how?
6 is better than 0.
 
9:19 AM
you would miss any geofence event that lasts less than 10 mins
 
i don't have geofence events
i need to know when a user trespasses a geofence, and stays some time inside
that's it
 
I think you're better off trying to get the native geofence to work
 
:/
 
I worked a long time on an app that revolved around a backgroundservice that always had to run and do gps stuff. It was not nice
 
well, the docs code doesn't work and there's not a repository to clone and test, so i'm stranded.
 
9:25 AM
would like to save you the headache
 
let's see if it works, but i'm skeptical. thanks.
 
@Hardy you have access. Start by reading the rules and confirm you have read them before saying anything else
 
i'm fucking tired of google's shit so i'm sorry if i sound harsh tim <3
there's not a single goddamn docs where there is not a missing file or a missing config or a missing method.
aaand
not working.
set the lat and long to my exact position now
set a 1km radius
no enter trigger.
 
o/
 
try adding INITIAL_TRIGGER_DWELL to the requestbuilder
\o
 
9:39 AM
tried, nothing either.
also tried with exit
 
o/
 
in that case
give up, go home, cry in bed
 
yup
that's the plan
but as this is a work thing i can't give up
 
have you tried different phones
 
yup
same results
 
9:43 AM
that usually hints to an issue with the code
 
not my code, google's.
i just changed a latitude, a longitude and the radius
 
lol
android docs are quite good
in the other hand android things is like a mine field
 
Android Things isn't good?
 
android docs suck balls for most non mainstream things
 
I heard it uses BLE... no surprises really
 
9:47 AM
its fine but since its basically an alpha
they change lot of stuff
without reasoning
 
Curious if they actually changed anything in Android Things BLE API compared to Android BLE API
Would be a great test to compare performance of both
 
So who played where waldo on Google maps
 
i did
 
any firebase nerds around?
 
user443346
#notnerdyenough
 
10:03 AM
i'm a nerd and i use firebase
but that's it
 
@TimCastelijns what part of firebase you using? It's a massive set of tools
 
realtime database
anonymous signin
 
Haven't used real time db since 2016
 
wondering if it makes sense to create a user ref when a user signs in anonymously, for auth purposes
 
i use firestore now
but only your data will say if it makes sense or not
 
10:08 AM
should $uid === auth.uid have 3 or 2 ='s? Does it even matter
 
user443346
It does
 
user443346
Not for java tho
 
user443346
Since you can't compare variables of different types
 
> Firebase Database Rules are made up of Javascript-like expressions contained in a JSON document
uid are strings
 
10:13 AM
if you're certain that uids are always string, you can use ==, but as a rule of thumb in this context use === because it doesn't do any type conversion
so you're absolutely certain that both terms are java-like "equals"
 
ok
also wondering if there is a difference between $user_id and $uid
it is not mentioned, but they are used (seemingly) interchangeably in the docs
ok never mind, you don't have to google it for me anymore, I already googled it myself /lazy
 
what is the difference between a foreground and background service?
 
foreground is visible in the statusbar, and has high prio to be kept alive
+ less restrictions
 
in foreground service android will assign its own process id so it will work seperately
 
exempt from doze for example
 
10:19 AM
ok. right now i have a Service that just keeps polling the LocationRequest
on My Pixel (android O, 8.1), when i close the app, the service "callback speed" goes down to 4-6 minutes between each new location
that is completely ok for me right now
 
foregroundservice is not a separate process unless you define it to be
btw @Hardy have you read the rules yet?
 
is there any additional "restriction" to that completely ok handicap?
 
yea i'm there
but doesn't specify any technical insight
maybe it's because the spanish docs are wrongly translated
but i don't see any additional burden
 
iirc the gps was the only major change
 
10:24 AM
so they just limit the speed at wich location requests are returned
to atleast 5 minutes?
 
seems so. They are never very specific with these intervals
 
hmm i got one at 12:18
should already have gotten one
oh
the service got killed
 
@TimCastelijns sorry forgot to read rules did i break any?
 
I don't know
you could probably check by... reading them
 
I have read and understood the rules
 
user443346
10:33 AM
Very nice
 
wow government introduced fake news bill only to withdraw it later following the backslash
controversy created for no reason at all :/
nice hardy
 
very nice welcome
 
Thanks @All
 
also kudos to myself for being extra patient
 
@TimCastelijns any way to get rid of the "app is using battery" notification and put mine instead?
 
10:41 AM
i guess that is systems notification cant be removed
altho you can add your own
 
just what i said.
right now i'm adding a notification to startForeground that does nothing
it's not being used.
 
did you pass true in that method
 
@CptEric no
are you using notification channels
otherwise notifications don't work on oreo
afaik
 
yes i am
everything so fucking shitty i want to get back to html.
 
once you get used to all of this, you don't see the shit anymore
 
10:48 AM
it looks like a hell load of boilerplate for such simple features.
 
Realm is just a nice cover for the SQLite. So you are using SQLite. — Vladyslav Matviienko 7 mins ago
requesting a license to kill cc @Mark
 
11:06 AM
lol
 
11:26 AM
@CptEric the tomato festival made me giddy
 
tomato festival?
i didn't get to that one
 
user443346
For some reason my fragment holder doesn't always recieve the intent data I provide. Any of you guys an idea what could be the reason for this?

Intent intent = getIntent();
location_id = intent.getIntExtra("location_id", 0);
 
user443346
Sometimes it's 0.
 
user443346
Sometimes it's correct.
 
Well I spent about 3hrs so far playing #WheresWaldo on Google Maps. I'm STILL stuck on Level 4 - Buñol, Spain Tomato festival. My eyes are all goofy from these colors. #GoogleMaps #waldomaps
 
11:30 AM
are you sure you are not sending 0 sometimes
try with -1 as default value
 
i don't even know what that is lol
 
100 points if you find paella along with all characters
 
fragment holder, do you mean activity?
 
user443346
Yes, oops
 
user443346
11:35 AM
I pass the data with:
Intent myIntent = new Intent(mContext, ExtensionActivity.class);
myIntent.putExtra("location_id", location_id);
startActivity(myIntent);
 
do you put the data?
is location_id always non 0?
 
user443346
Not always, like 98% of the time it's correct
 
user443346
in the other 2% it stays 0
 
user443346
with the exact same button
 
so the issue is not with sending the data, but with collecting the data
in the activity that sends it
 
user443346
11:37 AM
Well, the button I click logs the right location_id - every time - the activity that creates the fragment doesn't.
 
user443346
And I don't really have a clue when this problem occurs
 
I mean do you send the correct location_id every time
 
too much work to do to find wally
 
did you see the wally game in gmaps
 
reno just posted it
like
half a chat page ago
 
user443346
11:39 AM
Yeah, I log the location_id on the button click, result is always correct
 
well
the problem is clear but I shouldn't say it
 
user443346
you should
 
probably not
can you share some more complete code snippets
 
user443346
I can, gimme a min
 
user443346
 
@TimCastelijns lol bolding stuff to emphasize how much of a moron he is
 
is there a putIntExtra?
 
user443346
No, just putExtra
 
fuck this geofence/background shit, i can't anymore. just want to lunch and forget i ever tried this
 
is location_id still correct in ExtensionActivity? Like before you send it to the fragment
 
11:48 AM
This is video from MKBHD is brilliant: youtube.com/watch?v=rsJlT53jU_4&t=1s
2
 
user443346
I'll check again, checked this friday night aswell but I removed the logs. Kinda hard testing aswell since it doesn't always happen, just rarely
 
user443346
So give me a couple mins trying to get the issue again
 
user443346
I hate shit like this, when I need to reproduce the bug it simply doesn't occur
 
are you sure the id is a int?
 
user443346
Yes
 
12:01 PM
Lunch time!!!! :D
 
12:46 PM
o/
 
@Smith you need 80+ rep to be given access here
 
1:00 PM
nice jpg
 
back~~ :3
 
wb womp
 
I'm presenting at the NY Android meetup tonight. panic
 
what will you present?
 
1:05 PM
the other talk @ chicago?
 
"securing the developer environement #101 - Backups"
 
i would like to give a tech talk sometime but i am not sure of the topic to pick
 
Yeah I'm giving a shortened version of my robot pattern talk
 
@Raghunandan Flutter
 
no i am just a starter. so i myself need some time
 
1:08 PM
Chances are if you give a talk on it, most people won't know enough to correct you even if they think you're wrong
I said I'd do a blog post on React Native components sometime but I really cba it's gonna take so long and would really need to be a series
Plus it requires me to go off and create an example project for people to use
 
@MarkO'Sullivan this is an accurate description of me posting answers on SO
 
That's not true, though. The fastest way to learn how to code is by posting the wrong solution on StackOverflow and letting people come in like vultures to tell you how to do it.
Cheaper than the price of a bootcamp tbh, but the instructors are way less polite.
 
yeah. There is codementor if you really need help but the charges are high.
 
anyone ever had pesky error "duplicate class X" while building?
 
I think I've seen stuff like that but I usually just run a clean build.
 
1:16 PM
I cleaned everything
 
Aug 10 '16 at 15:15, by McAdam331
Have you tried just accepting the fact that Android development sucks?
 
next step is reboot but I cba closing all programs
 
@TimCastelijns "how to secure your keystore"
 
okay what is cba it's been used twice
 
cabbage
 
1:18 PM
o
 
nah cbg is cabbage
 
Oct 27 '17 at 18:19, by Mark O'Sullivan
can't be assed
i know tim i was jk
 
can't be assed
what kinda non-American idiom is that
 
its in non imperial units
CommonWealth Bank of Australia
@AdamMc331 Can't Be Arsed*
 
now it's even more non-American
smh
 
1:23 PM
sigh weird murican
what is it in american version?
 
idk
can't be bothered?
 
cbbc - can't be bothered comrade
 
cbbc
 
7
Q: Where does "can't be arsed" come from?

MalvolioI've only heard it from Kiwis, but I am told it's used in other countries as well: "I can't be arsed" means (IIUC) "I can't be bothered". Where could the expression come from? It's the only expression I know of that uses "arse" as a verb -- assuming that is the correct spelling. Is it from "ar...

 
@TimCastelijns check the dependencies graph, maybe something us included twice in a module (I'm guessing here). this answer should help get that info : stackoverflow.com/questions/12288133/…
 
1:30 PM
I had no issues previously, it started after checkout out branches left and right and updating some
 
Dec 3 '12 at 13:52, by Anders Metnik
Please, use something like cba instead... CBF is insanely bad english..
And dont use abbreviations in general
 
I have a feeling something in git fucked it up
 
turn predexing off
something like that^
 
what is that lol
 
19
Q: What's the meaing of: incremental, preDexLibraries, jumboMode, inside dexOptions?

Xaninside build.gradle we can add that params android { dexOptions { incremental preDexLibraries jumboMode javaMaxHeapSize } } but documentation is too low http://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.DexOption...

 
1:34 PM
ok that's not it
 
did you try turning it off or on?
i am not sure which one solves the issue xD
 
Maybe you should just find and delete the duplicate class
 
bro
it's not duplicated
 
Do you have conflicting dependencies? Perhaps two libraries referencing different support lib versions so you're getting a clash?
 
nah bro
it's complaining about my class
btw I'm back bois
you can achieve this by reading the documentation and then writing the code — Tim Castelijns 2 mins ago
3
everybody who missed sarcastic tim
 
1:41 PM
not enough sarcasm
 
What docs tho Tim
 
i want to know how to start - open android studio — Tim Castelijns 9 secs ago
3
 
I'm just clicking on your comments to help vote to close lmao
 
good boi
 
LOL the reply
😂😂😂 not that start 😂😂😂 — mostafa zaghloul 23 secs ago
 
1:44 PM
LOL
 
lol
 
Click "Create New Project" and set your package name. — AdamMc331 7 secs ago
 
boo adam already closed question
 
So did the rest of you gtfo lmao
 
flagged as obsolete
 
its tagged as kotlin
time for adam to shine
 
lmao holy shit I think I've asked a similar question
 
lmao
closes adam's question as dup of this
 
Just use an EditText with a special inputType for decimal - stackoverflow.com/questions/24232833/…AdamMc331 6 secs ago
 
fuck my internet is very slow today
 
1:55 PM
@TimCastelijns I encountered this one a few weeks go, made me laugh :D
@2ndGAB I can't deny, his explanation was really good — Tim Castelijns Mar 19 at 10:46
 
tim, keep on keeping on. and ty for the smiles today
 
I don't want to overthink this, but if I want to pin a tweet with links to my slides for tonight, should I wait until the meetup or is it cool to go do it right now? lmao
 
@MehdiB. If your answer does not provide ctrl + c functionality then it's not clear enough
 

« first day (2726 days earlier)      last day (2239 days later) »