« first day (2288 days earlier)      last day (2667 days later) » 
04:00 - 15:0015:00 - 00:00

4:21 AM
Morning Android
 
Night
 
4:54 AM
GM ALL :3
 
5:48 AM
Morning
 
Gmn all.
I am stuck into some minor issue but not getting solution from long time.

How can i play swf file into webview ?
 
 
1 hour later…
7:02 AM
Goooooooooood Morning Everyone!!!! :D
 
Good morning
 
good morning
 
How can i play swf file into webview ?
 
7:22 AM
good morning eveyrone
 
7:35 AM
I don't think you can
Flash is history
 
7:49 AM
HTML 5 supports flash
 
html5 replaces flash
 
flash is dead sadly, and it won't work on most phones you try to make it work.
even adobe has killed flash as software
vectors, svg and html5 are the new flash
 
flash is too heavy for even pc
 
8:07 AM
Can someone find the page where they list what are the changes in Nougat?
 
no, there were specific changes in Camera.
I can't seem to find that page
It was about how Nougat shares camera resources among all apps requesting camera access.
 
8:29 AM
I am so stupid, It was in marshmallow.
sorry.
 
\o
 
\o
 
o/
 
8:37 AM
o/
 
8:54 AM
FUCK SAFARI AND FUCKING APPLE
 
that escalated quickly
 
IT FUCKING CANCELS MY DAMN FUCKING HTTP PETITIONS
 
hold your hats! rant incoming
 
./rant off
good morning eveyrone
 
morning xD
 
8:56 AM
is there any RSS / tweetah where i can poll developer.android.com/about/versions/marshmallow/…
latest changes?
would ne nice to follow it to be informed
 
Im not sure marshmallow changes gets updated anymore
 
well
any changes i mean
 
yeah they are already RSS'ed here
but they never post about platform changes
just "crap" stuff like "Tips from developers Peak and Soundcloud on how to grow your startup on Google Play" that would be better on a 30 seconds PlayGround video than a dev blog
sometimes meaningful
but mostly... facebook-feed-level-stuff
 
9:02 AM
still doesn't state the changes, just points out to the changes doc page
 
why would they repeat all of it?
 
because it's important :I
we're on 2016, is it too much to ask for a simple, feed-able changelog of meaningful features? :P
 
2017*
 
rite. it should have some vr-stuff too.
like a play store's "New features" changelog, but on twitter/RSS/slack
wathever
 
Eric we live in 2017
if it doesn't exist, make it :D
 
9:16 AM
Anyone has shown price like
 
no, in euroland we put the cash symbol after the number
:P
 
x3
 
we don't ._.
 
:O
 
@RonakMehta Spannable make such things easy
 
9:21 AM
we do
:/
35€ not €35
 
:/
 
spaniards..
 
anglosaxons...
 
inquisitors..
 
weird
 
9:23 AM
shhhh
 
In many other countries, including France, Germany, Italy and Spain, an amount such as €3.50 is often written as 3,50 € instead, largely in accordance with conventions for previous currencies and the way amounts are read aloud.
 
if they don't know they can't expect us
 
\o
 
9:25 AM
o/
 
> It’s simple: the full Kotlin language can be now compiled to JavaScript.
interesting
 
yes it is
 
I have been dying to do some kotlin work for months
 
but never time
 
9:28 AM
me too :(
 
@Dharmendra I am trying that one with extends SuperscriptSpan but It doesn't return exact result.
 
You might need to reduce the font size for the SuperscriptSpan
 
let I try
 
o/
 
\o
 
9:36 AM
\o
 
o/
 
\o
 
@Dharmendra tried this one stackoverflow.com/a/15358956/1218762
But it looks like
Raised
 
Have you tried AbsoluteSizeSpan?
 
o/
 
9:43 AM
`Spannable ss1 = new SpannableString("any text");
ss1.setSpan(new AbsoluteSizeSpan(12), startIndex, endIndex, 0);`
 
@TimCastelijns ELI5 why is this good?
 
I don't know if it's good
but it is interesting :P
 
Let I try
 
What is ELI5?
 
explain like I'm 5
from reddit.com/r/eli5
 
9:46 AM
I tried that one but simple text is appearing.
 
ronak, prevent yourself headache and just use 2 different textviews
 
Tm, I tried that short cut but two textview aligned in same row still I see some padding in TextView
 
you can remove padding :p
 
PR reject :D
no fuzzy logic......
 
9:48 AM
push --force
 
On app bar structure page, do you think Title is too far from Icon?
 
Ronak can you send me code snippet you are using?
 
LOL peer review required and they really reject kind of thing.
Yes sure
 
Its like padL + icon + padR + padL + Title. and it should be padL + icon + padR + Title
right?
 
@rupinderjeet yes, on this page it is different material.io/guidelines/patterns/…
 
9:50 AM
mjon
 
i hate appbar crap animation is still not smooth and too much issues to deal with
 
o/
 
o/
 
they are doing it like above appbar.
and, I am doing like below one.
I think its too far
 
morning
happy friday
 
10:04 AM
Fatal Exception: java.lang.IllegalArgumentException: reportSizeConfigurations: ActivityRecord not found for: Token{3b7e679 null}
anybody encountered this exception^
 
Nope
 
i am having that exception since nougat
 
no idea
no nougat here yet
 
i dont have a nougat device to test
:(
 
haven't had that on nougat
 
10:07 AM
Caused by java.lang.IllegalArgumentException
at android.os.Parcel.readException(Parcel.java:1687)
at android.os.Parcel.readException(Parcel.java:1636)
at android.app.ActivityManagerProxy.isTopOfTask(ActivityManagerNative.java:5569)
and this too^
since nougat
 
i have 7.1.1 on Nexus 6P.
gotta buy Pixel
 
@RonakMehta I am not going to join that room, you can talk here..
 
No problem
Let I use pastee
 
@rupinderjeet I agree
 
10:13 AM
hope they fix the fucking adb soon
it's friday and i'm finding too many platform bugs to be calm
 
@RonakMehta lgtm
 
I realized that its that far for onPress UI. When you press/tap Icon, it dims background somewhat showing that icon is a button. So, Text sticking with that boundary will seem odd.
Thats why its far.
But still its not good somehow.
 
@RonakMehta why not use SuperScriptSpan developer.android.com/reference/android/text/style/…
 
@RonakMehta Using this way I am able to do that.
 
10:26 AM
trying .
for me it looks like
 
you want $25 big and .12 aligned bottom respective to $25 and small
 
he wants the 12 up
with the . small
right?
 
$25 big and 12 aligned but small
Exact
 
I think you used superscriptSpan wrongly
Can you show updated code snippet?
 
10:42 AM
This is how looks like to me
 
Oh
weird
 
<h1 style="margin:0; padding: 0; font-size:24pt">
    $25<sup style="font-size:12pt;">.49</sup>
</h1>
 
I really don't want exact sup else it was too easy.
 
Is there an alternative for srcCompat while using drawableRight="" or drawableEnd="" on a checkbox?
I think its not, just want to confirm.
 
11:14 AM
Just discovered if you release an APK version which is greater than the beta version, it'll deactivate the beta version ¬_¬
 
last time I checked you could only have 1 apk active
 
You can have multiple if you have the newer versions in alpha / beta
e.g. v20 in prod, v21 in beta, v22 in alpha
but whenever you move a new version to prod such as v23, it'll deactivate the two versions in alpha and beta
 
makes sense to me
 
Yeah but we have two apps essentially atm
 
tim you can have more than one
 
11:18 AM
in beta is the new one
prod has the old one but I needed to release a patch for it
 
also we had this discussion previously
 
I am old, my memory is bad
 
Makes me nervous releasing any fixes to the lite app next week
 
did I tell you guys about realm yet? I forgot
 
lol
 
11:20 AM
what's realm? ^^
 
i wonder why you dont forget about realm
 
it's like how you never forget your first love
 
lol
 
11:38 AM
First love umm
 
tim
what's realm mobile platform for, really?
 
more of a all-in-one thing to connect devices
like firebase
 
oh
but... what does it do, simplified
it's only a networked database, is it a push server...?
 
unsure
 
you're the realm master here
 
11:46 AM
i thought it was an database synced with your backend
so yeah networked database
 
I only use their local database lib
 
yeah same, but it's pretty cool that you can update a database and have it synced to your users
no need to make an api call, and parse it, just let it sync
 
indeed
however that's not always what you want
 
Anyone know why my options menu item icon is black for API 19 Nexus 4?
the icon is an xml file if that helps
It's colored for every API above 19 I think
 
@RED_ So how it decides which data to sync, realtime there can be many users so how it filters which data it needs to sync
 
11:58 AM
does it use an attribute that is 19+
 
ah, it says resource references don't work for API < 21
 
tomorrow uni exams
>_<
 
Sorted :D
Good luck Eric!
 
on what?
 
what who when?
 
12:05 PM
exam subject
 
english!!
 
should be a breeze for you guys
 
hope so
 
So far nodeJS basic tutorials are completed
 
13:00 english , 17:00 foundations of multimedia
 
12:08 PM
good luck both :D
 
Good luck Eric
both!! Womper same for you
 
thks
 
ty :D
 
me right now
 
uuugh
50' left
 
12:24 PM
now just 40'
 
good luck womper and eric
 
12:45 PM
if you don't make layout-large or layout-xlarge, and these devices will use default layout folder for every device. Will the drawable icons be taken from hdpi/xhdpi folder while using default layout?
In my AS preview, devices with 6.0"+ are showing very small icons.
 
Normally we don't need separate layout files if we don't have different UI design for the larger resolutions. it will pick images from appropriate drawable folder
you can put larger icons in xhdpi/xxhdpi/xxhdpi
or event for tablet you can put icons to specific qualifier drawable-large-xhdpi, drawable-large-xxhdpi and so on
or even for 10" tab you can put icons to drawable-xlarge-xhdpi, drawable-xlarge-xxhdpi and so on
 
I did. But on my phone, 4.3", they are looking good. In AS preview, on a phone with 6.0" display, they look really small.
 
o/
 
\o
Time to go :D
have a nice weekend!!! x3
 
1:01 PM
o/
 
1:11 PM
Morning
 
1:46 PM
o/
 
Do any of you guys arrange your variables so they look neat?
 
you cannot do multiline code formatting
 
Lame.
 
what do you mean with neat?
 
I always create vertical columns at =
same with private, public and protected.
 
1:58 PM
oh I don't do that
if you add a var with a longer name, you now have to edit all other lines
 
Yup
But it looks pretty
 
I don't often immediately define vars anyway :P
usually in constructor or something
 
Oh yeah, I reformat every time I add a new variable which would stretch a column ;)
 
oh man that formatting
 
CF I just watched some kotlin intro videos :D
 
2:08 PM
How do I stop my app converting UTC date/times to local date/times?
For example our UTC date/time is: 2016-08-26T11:03:39.000+01:00
Though if I set my location to the US: Fri Aug 26 06:03:39 EDT 2016
 
anyone got any suggestions on how to access an activity context from a service?
 
When the date time should be: 26th August 12:03 PM
 
(want to post a SnackBar to an Activity)
 
why would you want that ed?
 
2:10 PM
you do not want to do that from the service, instead, send a message to the activity
broadcast, eventbus, something like that
 
it could be any Activity.
so is this something I should pick up in the BaseActivity?
 
the service should not care about showing stuff on the UI. It can inform the UI manager (activity, fragment) of an event and let it take care of the rest
 
+1
let me give this a go. Thanks!
should I create a new BroadcastReceiver then?
 
see something like this stackoverflow.com/a/4739898/1843331
keep in mind there are several 3rd party libraries that make this process easier
otto, eventbus, to name 2
@MarkOSullivan94 what date/times? Like new Date()?
 
@TimCastelijns awesome
 
2:15 PM
yeah it looks hella confusing though
 
I'm getting date / time from the server of when a round of golf was played. The golf date / time should stay the same no matter where the user is.
Except currently it's being converted to the local time zone
 
how do you receive/store it?
 
UTC: 2016-08-26T11:03:39.000+01:00
 
that is not UTC, is it?
with the +01
 
shit sorry ISO format
 
2:19 PM
can you confirm?
 
Yeah that's the example I sent, it's ISO or at least should be because our team felt it was the best way to store dates
 
it is ISO, but it is not UTC
 
yeah ignore the UTC
 
Tim, how should I pass the received broadcast events from the base activity to the child activities?
 
I just don't know how to keep the time +01:00 no matter where the user is. I've set the emulator location to the US and it converts it to US time, I want to keep it the same time as it was played
 
2:22 PM
if not all activities are interested in that broadcast, it should not defined be in the shared parent activity
 
they all are.
but yes, noted.
 
Add an abstract method in the parent, and call that in receiver's onReceive, then have the children override that method with their custom functionality
 
agreed, the issue is, I want them all to handle it the same way and reduce code reuse.
 
but mark, if a golf match was played at 12:00 UTC, for US eastern, that match would have been played at 7:00. Does it not make sense that the time is converted?
ed, what functionality would required in that method? something with a snackbar you said
 
No because if a user is going on a golfing holiday they'll remember they played the golf round at whatever time they played locally, it'll be confusing when it's converted for them in their recent rounds screen
 
2:26 PM
CF - Good formatting or bad formatting
 
for example the app shows one time at 03:56 AM ... the golfer didn't play the round of golf at that time
 
yeah I just want to show a SnackBar on the current Activity after that broadcast is received.
 
that's when the apps locale is set to the US
 
already have the code for the SnackBar.
@FoamyGuy xD
 
2:27 PM
but if someone goes on holiday, they typically do not reconfigure their datetime settings on the phone
locale is based on user language preference setting, not location
 
@Graeme good but too much effort to maintain
 
ed, you can just put that code in the parent method then. But don't make it abstract then
 
Okay I meant the location
 
I don't have access to the parent CoordinatorLayout there though?
as the content view hasn't been set?
SnackBar requires the CoordinatorLayout.
 
do you need it? I thought it was just Snackbar.show()
 
2:29 PM
SnackBar.make(Parent, Text, Time);
 
I assume all child activities have a coordinatorlayout?
 
correct
 
give parent activity a protected CoordinatorLayour field, and set its value from the child activity
@MarkOSullivan94 Im not sure I follow anymore :P location does not affect datetime format
 
Okay my GMT times in the app are being converted to american times due to the emulated app's location, I want to stop the app from converting it and just keep the GMT times (or whatever timezone the round of golf was played in)
 
are you sure the emulator does not have the locale set to en-us?
 
2:36 PM
Only change I made was changing the lat long co-ordinates
 
it's possible the default is wrong
 
It was working fine previously
the only thing I have changed is the co-ordinates
so it's converting the time to the local time which is what I want to stop
 
how do you define the date object?
like new Date(response.getdate()) or something
 
mDate = utils.isoDateFormat.parse(isoDateString);
DateFormat isoDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
then it's converted using this: timeString = utils.timeFormat.format(mDate);
DateFormat timeFormat = new SimpleDateFormat("hh:mm a");
 
not quite sure how the setting of the Coordinator works?
 
2:47 PM
in the child activity onCreate, you can findViewById for the coordinatorlayout, and then assign it to the variable that is declared in the parent
since that one is protected, you can access it in the child
 
ahhh
nice!
 
mark, is one of those datetime objects giving you a warning that you do not specify a Locale?
 
let me try, cheers!!
 
perhaps if you specify Locale.UTC or something, it might work :P
@edwoollard keep in mind activities are supposed to unregister broadcastreceivers in onPause
 
2:55 PM
I wonder if that's Locale.getDefault
Why is it so hard to keep the time the same for all time zones, I don't get it
 
getdefault will use the phone's setting
you might save yourself some headaches by not parsing the datetime string into a date object
just display the time as calculated on the server
 
How would I do that?
 
instead of sending a datetime representation to the app, send a displayTime of which you know it is in UTC
but you might lose functionality that way, if you need to order by date or something
 
@TimCastelijns thanks, got that happening. Just working through it all now though.
 
04:00 - 15:0015:00 - 00:00

« first day (2288 days earlier)      last day (2667 days later) »