« first day (1682 days earlier)      last day (1793 days later) » 

04:00
"Your success will not be determined by your gender or your ethnicity, but only on the scope of your dreams and your hard work to achieve them." -Zaha Hadid (source)
04:25
hi
Greetings! @all
can someone help me out with this? stackoverflow.com/questions/44580099/…
I can't get any suggestions given to me to work.
i'll even zip or github the whole thing.
hey @Sasikumarediga
04:35
Yo Joe
Yo Kitten @jaga
morning fox
meet my friend @Sasikumarediga
Hey @Sasikumarediga
How are you today?
Just had a cup of tea.
Feeling lazy tbh
How about you ?
Started snoring ?
04:38
Not yet...It's past midnight here, I SHOULD be asleep
Tea is really good.
is there a way I can set myself a nick that's not a number ?
XD
of course you can
But numbers seem so much more personable....
And click Edit Profile & Setting
there you can change your username
user36.... seems confused
04:43
It's a good thing I didn't tell them the other people in the room have to pick their name... :P
Yeah you did good there
Whoo hoo!!!!!!
One in a row!
A NEW record!
uhm
It didn't update here?
@user3675013 takes time
04:51
Ohhhh
:/ Okie
How long have you been coding?
Years.
What platform do you prefer to code for?
I'm still learning things, I can find my way around almost anything. once I learn enough.
I prefer to code for pc, android, and I did some pebble C stuff a bit.
I'm between using MonoGame C#, or C++ with SDL for game making right now too but having a massive art dilemna.
I want to make wear apps.
My coding skills are not great. I mostly provide comic relief for the room, but occasionally I do come up with some help...
Wear apps? Do you mean for a watch, or ???
04:54
I'm not the most familiar with everything in every language I use. I just kind of get by and when I need to do something new it takes me a few days to pick up how
For android wear yeah. I'm having a big issue with not being able to set a textview's text right now. It's holding my project back.
without any help though I managed to get a button that causes the smart watch to vibrate working... so that's interesting.
My intention is to make a set of digital pets you download onto the watch which make the device vibrate and buzz you randomly through out the day (maybe even night if you don't set sleep hours), and when it does it pops up with what the pet wants and a simple glance UI to choose to do it. Ie FEED. Play. Etc. It won't have any fancy animations. Or sprites.
It will though have maybe an icon for the pet..
Instead of having the pet be interactable it's going to be more of a grinding app. You will level the pet up by interacting with it. eventually causing it to do certain things.
>_> so much to read
sorry
and you call yourself a nerd jk
tldr; pet app that disturbs you, or doesn't. wear device. VIBRATIONS. Level it up. no interaction menus. Just alerts. and pet status.
pet simulation.
brb
/afk
@jagapathi Cya later
Sounds like an interesting twist on an old idea
05:07
yo
05:18
Good morning guys
@rekire good morning
@jagapathi Welcome back!
@jagapathi vgm
@rekire vgm
OK...I'm out for the night...Probably be busy tomorrow
05:25
@rekire vgm
@Joe'sMorgue np night
@TheLittleNaruto vgm ;)
GM fox kun @TheLittleNaruto
@rekire morn
@TheFlash vgm
@ColdFire @ChewCat @AshuKumar @TCat @jagapathi cats GM
In java if a object is a member of a class and you initialize it in a function scope but then try to access it outside that function's scope but still within the class's functions, is it void or null?
05:30
@TheFlash Flash man GM
@Remmie you cannot define void members. however as long it is not defined it should have its default value e.g. null or 0 etc
@rekire :(
I figured out the issue that kept me up till 7 am today.
Now I need to understand...
on Line 77 setText is not valid for mTextView and returns a nullpointer issue..
If it were uncommented.
If line 65 were uncommented however, at that scope it causes no error.
I'm pissed off because the scope I want mTextView to be valid within is outside of the scope of the function: public void onLayoutInflated(WatchViewStub stub) {
once mTextView has a reference to an object it should stay referenced even after the function onLayoutInflated has ended execution. I don't know why it doesn't work that way. mTextView is a class member therefore within class scope it should be valid after it's been initialized to some<arbitrary>object.. why.. doesn't this work.
05:46
GM ALL :3
hi ChewCat
@Remmie VGM :)
:)
!!chewcat
05:51
kills @ColdFire
I'll be gone before war starts
today's preparation day
@TheFlash morning flash kun
@ColdFire vgm
@Remmie So that's your username... Are you a otaku ?
no not an otaku
I like anime but not enough to be an otaku
05:55
@Remmie Which anime did you watch already ?
Blue Drop, Familiar of zero (not all of it), Some Fairy Tale, I used to think Gundam Seed was cool but meh, Log Horizon haven't finished it yet. there's more just can't think of them right now.
Are you a fan of me ? ^^
Depends if you help me with my coding =p
lol
Ok boy
What's your issue ?
ima girl but s'ok.
well
In short
05:57
brb
meanwhile you shoot your query
Why can't I keep the object reference mTextView alive outside the scope of the function where it was assigned and casted?
it is a class member.
https://pastebin.com/BRVwU635 on line 77 mTextView throws a nullreference error IF you uncomment line 77. It works within any scope within: @Override
public void onLayoutInflated(WatchViewStub stub) { though.

Better yet, how can I force java (or the android API) to hold a static reference of it once assigned so that it doesn't become null again outside the scope that declared it.
Do we really need "Read common chat FAQs here - " in room's description @TheLittleNaruto @rekire
I think nobody pays attention to it
@DroidDev We can add a gist link instead in which we can write set of rules. that would be better
@Remmie checking..
@TheLittleNaruto yeah....like paste.ofcode.org and imgur.com link too
@TheLittleNaruto lmao
06:05
current description is too clutered
canary 4
@DroidDev Yeah both is fine. gist is better imo.
updating
you can always update it
@Rahul updating..
06:06
@Remmie why do you need that listener
for the button.
@TheLittleNaruto ok....will create a gist when I get a bit of time....will also prepare a list of rules
@Rahul yay
@TheLittleNar
You just uncommented stuff?
I can't tell what you did.
06:07
try what fox suggested
chewwwwwwwwwwwww chewwwwwwwwwwwwwww
I just moved mTextView initialization
ok let me see..
before setting listener
06:08
foxxxxxxxxxxxxxxx
ha h CF CF ty :3
this number?
oh
i think you mean member and not number
I'm trying the thing.
06:09
yeah :)
@Dro @rekire fork and raise a PR after adding rules : gist.github.com/TheLittleNaruto/…
Alright so.. like normaly right? i'm doing this coming from C#, if you set an object to be intialized in a function in C#, then anything else in the class will keep that reference if it's a CLASS member. Why does this behave differently? Should it behave differently?
@ColdFire Cold!
war in 10h @TheLittleNaruto
wolff sama @DroidDev
06:10
also the change broke it.
@TheLittleNaruto lol....I already created half of gist....now I gotta transfer here
x.x
@TheFlash sama
ok so that won't work
06:11
why ?
@DroidDev Ignore mine then. I can delete. Anyway it's empty
it wasn't the change per say.. let me test again.
@TheFlash sama
@TheLittleNaruto umm...ok..
06:11
Nah it just still doesn't like it outside scope....
@ColdFire sama
crashes ?
@DroidDev I was thinking today too that this should be rewritten entirely
@TheLittleNaruto 404
TLN removed the gist?
It starts running then throws the same nullreference exception it did before
Shouldn't ANY class member ALWAYS post-exist after initialization no matter which function within the class initialized it?
also setting it to a static type does nothing.
this means the object will die with the function no matter what I do
u_u
that isn't what I want
Function ends, object == Null
I'll try one last thing.
06:17
@Remmie I just read your profile a tamagotchi for android wear funny idea
Thanks rekire :D
@rekire ok....creating a gist
I've read somewhere that before accessing a UI component in Android you need to redo this each time

setContentView(R.layout.activity_main);
@Remmie in the end java is not null safe like kotlin is, so you can get often in the position that something is null in java
you just need to set the content view once
how do I force an object post-initialization to stay initialized as referencable.. maybe have the function return an instance of it?
but you can't do that with the @overRide becuase you're over riding a pre determined function?
06:19
@Remmie in the simplest case make it final and set the value in the constructor
put final as a keyword during class member scope?
yes
that forces you that a value needs to been set
an override is for changing an implementation that is a different story
it won't let me do this with final
mTextView = (TextView) stub.findViewById(R.id.textView2);
when I change to final mTextView = (TextView) stub.findViewById(R.id.textView2); it says "Not a statement"
when I do it at class scope it doesn't like it either.
final TextView mTextView;
@Remmie well right that does not work
@Remmie there you missed the type. it should be final TextView textView = (TextView) stub.findViewById(R.id.textView2);
aha!
got it
let me try accessing it outside function scope now.
06:23
however that would be just in the function scope
you cannot use final for views in android
except in a viewholder if you know the concept
lame.
I want to access a view outside the over ride function that does inflatlayout
that is one of the java restrictions, or better android because of the lifecycle
06:24
just init the value after you set the content view
@ResearchDevelopment hi
how do I do that it wont' let me.
can any one suggest me which library use for line graph in android?
ok so, I need a way to constantly update the text of a textview object.
@Remmie after setContentView all views are accessible in an activity
use a member variable as you tried before
I want to do everything the app will do mostly within only this : @Override
protected void onCreate(Bundle savedInstanceState){
sorry within only
this: stub.setOnLayoutInflatedListener(new WatchViewStub.OnLayoutInflatedListener() {
but also outside it.
in some cases
06:27
don't use the WatchViewStub use the layout-round directory
yay kotlin in the house
sorry copy and paste error^^
I'm only developing for rect-wear right now.
also I can only target API level 21 at the lowest.
06:28
@TheL @rek ^^
in that case just ignore the stupid WatchViewStub
@rekire master :)
sleep man :)
MeowMeowMeowMeowMeow
So I just need something. The end goal right now is to have a setup where the app starts up then sets up some variables, then when it is not active it has a pending activity that's launched. Every so often a background worker will force the app into focus and set a vibration alert and display the ui Elements which are just a textbox, as well as some buttons.
@DroidDev looks good. Assign number to each rule
06:30
@TheLittleNaruto ok...
Once done, add that in description
hi nyconing.
Good morning..
morning!
@Remmie in the end the WatchViewStub makes the life cycle more complex
@ChewCat morning it is already 8:31am here ;)
06:31
how do I do it differently? this was the default code that android studio generated.
@TheLittleNaruto see discussion in comments on gist
I'm very very new to all android dev in terms of java..
@Remmie ctrl + a then press delete ;)
funny but not helpful @rekire
@Remmie it you are a beginner start with kotlin, java sucks
06:33
what's kotlin?
Jvm programming language
what does it do differently or provide that would help me?
@Remmie a diffrent programming language with is compatible with the java byte code so you can use it in android
:o he he @rekire (y)
@Remmie its a different language
06:34
can I develop any android apps in it for wear?
@Rahul Could you please advise me on the above ?
@Remmie of cause, but tbh I never tried before
@Remmie yup
@rekire german guy :3
@BatCat ?
06:34
ok I'm not really sure, is it easier or harder than C#? for instance...
I have a recycler view which pushes the other elements below while scrolling ...What could be the prob ?

<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/recyclerView"
android:layout_margin="10dp"
android:scrollbars="vertical"
>
I stopped programming for wear 1.5 years ago :/
I was hoping to just float by with UI designer and then basic java code to get it done.
Android Studio is helpful with UI
I have to finish something brb
room topic changed to Java and Android era : Important: Read dos and don'ts here: gist.github.com/droiddev24/fe5ead90fdb3fc17577e2c2c08601fe6. Mark this room as your favorite to stay in touch with! :) [android] [android-layout] [android-studio] [android-wear] [class-design] [design] [design-patterns] [java] [kotlin]
06:37
lol @rekire m still nt start wear prog.
:/
phew....feels much better now. Back to work
@DroidDev try dos and don'ts ? because I think MSDOS :P
@DroidDev man add that pastie link again :/
special thanks to @nyconing for bringing room description to notice
@nyconing haha...I'll just edit and put "rules" there
@ColdFire it ain't coming back. Bookmark site :P
@DroidDev :|
06:40
(≧▽≦)
yay nycat
nyyyyyyyyyyyaaaaaaaaaaaa
it looks harder to use kotlin..
the tutorial i just read says you still have to convert everything to kotlin
@DroidDev better it could be a web page will be more easy to read
@jagapathi actually...I've got no place to host it....so....its a gist. Maybe @rek can help us here
github can host it
06:45
@Remmie nope. you no need convert java to kotlin.
!!crazycat
@jagapathi dunno how to do that....also....creating a webpage is a bit too much work for now
kotlin has well interop-ability with java. just call it.
let me help you with it
06:46
basically what I need.
ok
@jagapathi won't we also need html for webpage?
that poor cat.
oh, I need uhm.. a process always running
on the wear.
@DroidDev yup that will be easy to design using github
06:48
so that over time the pet's state changes. then depending on those changes an alert will be executed, or not.
@jagapathi oh...github will help in that too
can someone link me to a good tutorial to kotlin that also works with UI, background worker, and scheduling of function calls?
at the most I need buttons, and textviews.
nothing complicated.
haven't started kotlin yet
kotlin wolf
see official syntax documentation, its already good anough
06:51
@dro check comment
I have a layout below a recycler view when there are more items the recycler view the layout below also scrolls along with it...what could be the problem ? Googled but couldn't find the source of the problem
@BatCat some structure of your layout may help me to find the problem
all APIs is same to use, kotlin just a language to make syntax easier to use, and bring useful syntax like java8/swift/c# to <API24
@TheLittleNaruto I changed the description, but its not showing. Maybe its rate limited
06:57
Anyone here implemented this animation for recyclerview?
kotlin brings extention function, lambda, delegate, enum, multi generic type function and so much more java7 does not have.
@hardikm it is animation inside onbindviewholder
animating YDelta translation
you want code?
Is it like for every item of recyclerview?
or it can be done at library
take a look on this
Trying, thanks (y)
btw that (timeline) looks ugly. it does not look as timeline I mean, you may make a good one than that.
07:06
Isn't that beautiful ?
I saw it in google play store app too
:3
room topic changed to Java and Android era : Important: Read dos and don'ts here: goo.gl/bjVbxw . Mark this room as your favorite to stay in touch with! :) [android] [android-layout] [android-studio] [android-wear] [class-design] [design] [design-patterns] [java] [kotlin]
@berserk ^^
@TheLittleNaruto much cleaner room description. Looks like I let some weight off my shoulders. Phew! I like this one line description...dunno why
@DroidDev :)
07:11
no way. that was list, not timeline
see this
07:28
lol...CTO again told us to test the website
I am gonna die laughing one of these days
07:42
hello
GM
\o
I have a problem in android
anyone can help mee
@nyconing
u there?
@Rahul lol
@DroidDev lol
@FranciscoMelicias just shoot the query. If someone can, they'll answer

« first day (1682 days earlier)      last day (1793 days later) »