« first day (748 days earlier)      last day (2727 days later) » 

4:57 AM
good morning @PiyushGupta
 
good mrng guys :)
 
Good Mornings guys
 
mrng :)
 
Good morning guys...
 
@Edge @ChintanRathod GoooooooooD mRng!
 
5:08 AM
@ChintanRathod good morning
 
Morning!
 
how are you guys..
was monday boring or energetic..
 
Monday can never be energetic :(
 
Its a lazy Monday!
 
I have a one question for you guys
you all use android studio??
Do you think it is far better than Eclipse??
 
5:17 AM
No no expe with AS
 
so you still use Eclipse @PiyushGupta ??
 
@MukeshRana Yeah. Isn't it good?
 
Can Android runtime be hacked with reflection? It just came to mind the other day, even though the core is built with C base.
 
@PiyushGupta yeah it's good but i was just thinking of switching to android studio
@Unihedron :O not even thought of that
 
@MukeshRana Yeah AS is also good compare too eclipse
 
5:22 AM
@PiyushGupta so which is better ??
 
@MukeshRana You know, like using a Proxy class to list what classes are called in other threads, to intercept applications or inject stuff... You never know
 
@MukeshRana hi
 
@MukeshRana AS
 
C has reflection as well, but everyone uses SDK, not NDK
 
can u help me
ot create adapter
@PiyushGupta if u free
there one Logical thing
 
5:24 AM
yeah ask.
 
@Unihedron Do you have an experience with NDK??
@Edge hi
 
NDK is superior.
that is all.
 
which is based on C and C++
 
@PiyushGupta okay lemme start with android studio. hope it will not give much pain to me
@Unihedron yeah that i know but even google developers doesn't recommend to go for NDK in your app untill unless it is mandatory
 
@MukeshRana I think it will not but initially gradle make you little bit confuse. though u r brilliant u can learn easily
 
5:29 AM
@MukeshRana Google is evil.
 
and y is that ?
 
@PiyushGupta haha for sure. and you are there for me to help :)
 
@MukeshRana Ha ha . I will try to help you!!
 
@Unihedron haha ;)
@PiyushGupta hehe.. thanku.. :)
 
@MukeshRana Ur wel come!
 
5:31 AM
@PiyushGupta :)
does anyone have ever made some transparent kind of side panel?? or have ever crossed a library that can do the same
@PiyushGupta do you have any idea?
 
5:51 AM
yo
 
What does "document" refers to in documentLaunchMode?
 
Hi All, Anyone tell top 10 best tablet in android.
 
6:09 AM
hi
 
@berserk @MukeshRana yo yo honey singh..
 
@ChintanRathod yo :D
 
@ChintanRathod Yo yo chintan rathod
 
yesterday @PiyushGupta was very happy..
 
@berserk yo yo
 
6:13 AM
@PiyushGupta yo yo ^^
 
@ChintanRathod ha ha i knew why are u saying this?
 
ha ha..
very intelligent.. huh..
 
@ChintanRathod yo yo :)
 
@TopCat :]
 
@ChintanRathod ha ha
 
6:14 AM
why @PiyushGupta was happy @ChintanRathod :P??
 
@MukeshRana Its a top secret!!
 
ohkk @PiyushGupta ;)
 
@MukeshRana .. if i tell you .. @PiyushGupta will not let me live here happily.. :D
 
@ChintanRathod ha ha ha
 
@berserk :]
 
6:16 AM
sup kitty kat? >:D
 
@ChintanRathod haha okay okay.. :)
 
Good Morning Guys
 
@TheLittleNaruto Are Wel come
 
lol, thanks
 
yo baby
 
6:21 AM
@berserk :P
 
mrng baby :)
 
@TopCat [:
 
SwordsMan-san @Mukesh
 
dont ruin my fun :(
I won't forgive u >(
 
@TheLittleNaruto 8-) 8-)
 
6:26 AM
I am not coming to Konoha >:(
 
@berserk Why ?
You're not an adult ?
 
You seriously asking why? >:(
u are pure evil
 
I dint tell you the climax anyway.
 
@TheLittleNaruto gm
 
@TheLittleNaruto GRRR
 
6:29 AM
@Edge GM
@berserk Come back, Dont behave childish
 
@TheLittleNaruto screw it! I won;t!
 
@berserk Ah!
 
6:43 AM
@MukeshRana did honey singh bite you?? yo yo.. :P
 
guys How to redirect to the particular activity from the mail page send button @TheLittleNaruto @ChintanRathod @berserk @MukeshRana
@PiyushGupta
 
@Harish no idea ..
(please don't suggest for idea 3g :D)
 
later ppl :)
 
7:11 AM
@ChintanRathod Bhai bhai
 
good morning guys
 
had lunch???
@rekire morning dude
 
@ChintanRathod vgm
 
@ChintanRathod Na brp. need to go
 
(yawning.. )
 
7:14 AM
@rekire @TheLittleNaruto @ChintanRathod Morning :)
 
@rekire Hey morning mate
 
@Shyildo @PiyushGupta vgm :)
 
@rekire today is late.
 
@PiyushGupta well I just forgot to say hello :(
 
Oh means u r here from your punctual time ? @rekire
 
7:16 AM
@ChintanRathod you have started with yo yo and it just spreads over the group :P
 
Here is is 8:16am
 
@rekire mrng :)
 
@rekire Ahh. okies
 
@MukeshRana vgm :D
 
Its 8:16 am at your end and you are in office :O
 
7:18 AM
Time is very realative... I wait daily for some us guys they come online at 5pm. But those guys are early since for them it is then 7am
@MukeshRana I'm here since 7:30am ;)
 
@rekire worth appreciating and when you leave from office??
 
@rekire i want to call a particular activity after sending the mail then how to handle that send button in our activity
@MukeshRana
 
@MukeshRana I'm leaving between 4pm and 4:30pm
@Harish I don't understand you
 
@Harish i don't think we have any callback for that whether mail is sent or not but you can just call your particular activity from onActivityResult
@rekire okay :)
 
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL, new String[]{ to});
email.putExtra(Intent.EXTRA_SUBJECT, subject);
email.putExtra(Intent.EXTRA_TEXT, message);

//need this to prompts email client only
email.setType("message/rfc822");

startActivity(Intent.createChooser(email, "Choose an Email client :"));
 
7:28 AM
write activity calling code in your onActivityResult
 
when the user press on send button i want to direct to the particular activity then how..?
i haven't written any onActivityResult..
@MukeshRana
 
so that's what i am saying you to do
 
hi @KanakSony
 
@MukeshRana thanks working..
got it:)
 
@Harish :)
 
7:56 AM
@MukeshRana with out user interaction how to send email's i mean scheduling mail
@rekire
 
@Harish AFIK impossible
 
@rekire while searching i got this but getting some errors need to solve those trying to solve.................
 
@Harish well that is defacto a mail client... the big problem is that you would need to ask the user for the smtp server and his login
however if that is something "internal" do that with a REST API call and do that on your server side
 
@rekire in our app we havn't used any webservices just in some scenarios user will set some alarms then according to that we need to send mail if the condition met ..
 
@Harish how can you offer a mail service without a server infrastructure?
 
8:11 AM
@rekire if we have net connection in our device can't we send mail without user interaction
 
if you don't implement some kind of mail client you cannot send a mail. however when your mail servers should been used forgot it, everybody could start in that case sending spam with your mail server
 
@Harish when i try to open layout file then its gives erroe like "parsesdkcontent failed" .. how can i solve this...i'll search on google but its not solved
 
@MukeshRana ha ha....
 
8:26 AM
@ChintanRathod
 
@Edge yes
 
hi @ChintanRathod @Edge
 
How can read from FileOutputStream ?
 
8:54 AM
@berserk?
 
9:16 AM
Hey All..
 
0
Q: Get bearer token from GoogleApiClient

rekireI implemented the Google Plus SignIn as descriped on Androidhive. That works fine so far. Now I want to authenticate the user also on the server. For this senario I need a Bearer token to validate the user data on the server. But I have no idea how to get it. For the web it's quiet nice documenta...

 
@rekire I think you have already checked this developers.google.com/+/web/signin/client-to-server-flow
 
@PiyushGupta yes but how do I get those token?
 
@PiyushGupta Afternoon!
 
9:25 AM
@PiyushGupta that is something like a whitepaper about how to implement/use those tokens but not how I get that from the GoogleApiClient
 
@rekire Okay . Let me search.
 
9:38 AM
hi all
 
9:51 AM
noon :)
 
soon :)
 
hehe @PiyushGupta still messing with AS :(
 
noon
 
noon @nisha :)
 
9:57 AM
@nisha good nooon
 
noon @MukeshRana :)
good noon @ChintanRathod :)
 
hmmm
 
Sorry msg was for my dear friend @ChintanRathod
 
acha
 
10:08 AM
yeah.
@ChintanRathod had lunch?
 
ahrg why is that oauth stuff sooooo complicated?
 
@rekire Yes you'r right. I have tried to search lot but i couldn't found
 
@PiyushGupta well I already found one way to get a token, but I have no idea what I can do with it
 
@rekire Do one thing. For sometime 5 or 10 mins take some rest and make your mind fresh it will help you to figure out!!
 
I have now a token which looks like this 4/lh1fYR_xxxxxxxxxxxxxxxxxxxxxxxxxxxx and another one with looks like ya29.yQAmlxxxxxxxxxxxxxxxxxxxxxxxxxx. I know what to do with that numeric slashed token but now for that other with the four letters followed by an dot I'm lost
 
10:21 AM
@rekire oh looks like typical
 
@PiyushGupta yep
 
yeppy
 
I see a pattern in those keys but I have no idea which type matches on /^[a-z0-9]{4}\./ I think I know what /^[0-9]\// are for keys
 
hi
 
@rekire need to check regular expression
 
10:25 AM
Hi anyone have idea about rmi client and server ?
i have a doubt regarding that
 
no idea
 
okay
 
@PiyushGupta I'm just using regex for some kind of meta description
ahhhhhh I got it!
 
@rekire OMG. really?? How could?? explain
 
10:33 AM
with this curl command: curl -H "Authorization: Bearer ya29.yQAxxxxxxxxxxxxxxxxxxx" https://www.googleapis.com/oauth2/v2/userinfo
that returns my email id
 
@rekire Oh that a great achievement
 
I just think that I need some more data I cannot see the google+ id I need that one at least I think
 
@rekire So now it is easy for you for validate user to server
 
not yet but it is a good start
I just requested a very minimal set of permissions
 
yeah thats good
 
10:40 AM
@rekire need some help
 
@MukeshRana which kind of help?
 
@rekire regarding material design
 
go on
 
since you have worked with material theme, so what precautions should i have to take before starting an app with targetSDKVersion to 21 and also i want to know about the backward compatibility issues
 
Well I did not directly implement that yet. I just updated to the compat library v21 the other stuff come from allone. basically you need to define the primary color in your theme to change the color of the toolbar (former actionbar)
if you changes the colors of all control you can now delete those resouces since they are not automatically recolored with your accent color (which you also need to define in your theme)
 
10:50 AM
Okay and i have to make separate themes and layouts for android 5.0 and earlier versions??
@rekire and but about using widgets like recycler view
 
@MukeshRana no that is not required when you use the compat library
@MukeshRana if you use them from the compat library you can support also gingerbread (older platforms are for me not interesting)
 
11:12 AM
okay okay so you mean to say if I am using compat library v21 I can consider all my devices upto gingerbread as android 5.0
There is no need to have checks for previous versions @rekire
 
@MukeshRana no except you use some v21 functions, but that should be clear
 
okay okay can you mention few of them which i should go for sure @rekire
 
activity transitions are cool but they really require lollipop also like the new power apis
 
Have heard of RecyclerView can i use that too??
 
@MukeshRana yes of cause, but that is part of the compat libray as I mented before so you can use it
 
11:18 AM
okay last question @rekire All i have to do is to just add app compat library v21 in my project and that's all. Also can you provide me the link for compat library, i'll be very thankful to you
 
that is the normal support library I mix those names sometimes up sorry
 
okay thanks for the help @rekire :)
 
12:04 PM
guys anyone can help me scheduling mail i'm trying this but in that i need to select the mail either it is email or gmail and need to press send button.. @MukeshRana @rekire
 
12:29 PM
You are not going to believe this, but Friday Asus said they were going to send me a replacement motherboard [of equal or greater value] but last night they told me they cannot because they cannot come up with functional motherboard to send me!
 
12:43 PM
BTW: Greetings all!
 
12:56 PM
greetings :)
 
How are you?
 
am fine but your motherboard doesn't seems to be :P
 
@MukeshRana can u pls tell me how can i find cpu load for device in percentage
 
am fine but your motherboard doesn't seems to be :P
 
using RandomAccessFile reader = new RandomAccessFile("/proc/stat", "r");
is this for cpu load
?
 
1:03 PM
It's only been since August...
 
1:16 PM
@ErumHannan sorry no idea :(
@Joe'sMorgue and what about your super computer??
 
@Joe'sMorgue My dear friend Greetings!!!!
 
any idea
anyone ?
 
you need to update your JRE bro. means JDK 7 or JDK 8
 
I have with me updated JDK and JRE @PiyushGupta
and i have set required paths and JAVA_HOME in system variables
 
Oh Okay. I just knew that this is solution bt u have already tried it
 
1:24 PM
:( that's why i don't like AS
 
Ha haha..
loliipop also require JDK 7 or above it
 
good evening :)
 
@PiyushGupta :)
evng @nisha
 
:)
 
Time to leave now. Bye bye
 
1:36 PM
bye
 
bye :)
 
@MukeshRana That is my "super computer" 4Ghz, 16Gigs, SSD, 8-Cores!
No motherboard...
@PiyushGupta Greetings!
 
haha.. okay okay :)
 
For some reason, it's not as good without the motherboard
 
Ah..!! i can understand
 
1:45 PM
I have all the rest...MOST is still in the case, I don't get why it is not as well performing.
Maybe if I put the box with the new CPU in the case
 
2:07 PM
don't worry you'll soon get your motherboard back :)
 
2:22 PM
I wonder if I will get it this year...
 
2:42 PM
Good morning/afternoon everyone :)
@Joe'sMorgue @MukeshRana @rekire @Appu @Shyildo @Unihedron
 
@Lana good afternoon
 
@Lana Here it's good evening
@rekire @Joe'sMorgue Howdy!
 
Morning
It's actually midnight here
 
@Lana good evening :)
 
2:48 PM
@Unihedron I know you are from diff countries.
 
@Appu hey what's up?
 
Did you read my comment about my computer?
 
@Lana we are quiet mixed here US, Europe and India. I guess also some from Asia
 
@rekire and from Arabia :d
 
@Lana welcome ;)
 
2:50 PM
@rekire plz have a look at this question stackoverflow.com/questions/27128828/…
 
I am trying to retrieve a json array from a webpage then populate it in array in order to show it in spinner. I want to show you my code because it is not working
 
My sdk manager in android studio is not working
 
@MukeshRana your enviroment variables looks fine. did you check java 7 too?
@Lana please use pastie.org for that
 
@rekire year earlier i was trying with java 7
 
2:54 PM
When I run the code the app stops and throws Device driver API match error
 
Hi everybody
 
@MukeshRana same error?
@Goldbones hi
 
I have a question
I have a friend which is learning liferay
 
@Lana I'm right now a little too busy for a code review, but @MukeshRana can possible help
 
@rekire hmm
 
2:56 PM
do you know any site which could help?
 
@Goldbones what is liferay?
 
Liferay
 
m not gonna use android studio anymore
:(
bbieee
:(
 
don't say that^^ It's great
@MukeshRana try downloading it again. there must not be the sdk directory into the AS dir anymore
 
The code is not complicated, I am just dealing with spinners for the first time .. could someone read it please
 
3:02 PM
@Lana which part does not work? The adapter or the parsing part?
 
@rekire the error is run time error so, I do not know exactly where it comes from
 
post the stacktrace on pastie
they are quiet simple to read if you see them daily
 
@rekire you mean the logcat ?
 
yes but only that part with the error
 
Hey Re
 
3:11 PM
here is the logcat pastie.org/9742640
 
hey @Joe'sMorgue
@Lana check line 147 there is something null
 
@rekire ok
 
@Lana just remove "activity." that should work
 
@rekire now it works but it show the spinner with no elements
 
@Lana Okay I see your error. you replace the reference to the adapter. better clean it in line 147 and all all new elements with orglist.addAll() then you need to call on your adapter.notifyChanges or so and you should be done
 
3:23 PM
@rekire might you justify what to do first ? I did not get it
 
I have to go in some minutes... you break in setList the reference to your adapter. because you set a new array to that one. so replace line 147 with your array list if I remember correctly orgList.clear() than insert the new elements with orgList.addAll() when done grep your reference to your adapter and call notifyelementschange or so (I don't remember the exact name)
well those minutes where gone while typing it. I go now bye^^
 
3:38 PM
@rekire you mean I should use for loop in order to copy json array elements to orglist? I am sorry if I am wasting your time, you could go and someone else might read this
 
4:22 PM
@rekire Are you still in office?
 

« first day (748 days earlier)      last day (2727 days later) »