« first day (421 days earlier)      last day (948 days later) » 

4:38 AM
morning
 
good morning
 
Very Good MOrning
 
5:03 AM
GooD MorninG
 
@MKJParekh Hello gm
:)
 
Hi :)
 
5:18 AM
GM Dosto
 
5:35 AM
Anyone interested in event from GDG can register here
2
 
6:24 AM
Yes m interested lalit
 
@parag you should not register though :P
as you are not present in Ahmedabad color.
 
@LalitPoptani Online ?
 
No, its not.
you can go through the link.
 
ok
i have one question
when i finish() any activity can i give animation to it
i tried like
but not work
@LalitPoptani
 
ellaborate --> not work.
nothing happens?
 
6:35 AM
nothing happen
 
6:49 AM
@parag try to add it in onResume() of next Activity
that will prabably work.
 
ok
@LalitPoptani Working your idea
 
@parag yeah I knew mine works always!! :D
don't post code though, use pastie or pastebin :)
 
@LalitPoptani I know dost
 
color then too you posted.
 
be code nu nai tara logic nu hu janu 6u
2 line na code ma su kam tention le 6e
:)
 
7:00 AM
hehe
 
7:35 AM
Hello All..
@Lali Hello, how are you?
Captain @MKJParekh salute..
 
Hello, I am fine, how about you?
has twitter API changed?
 
@AdilSoomro bus na hame bhul gaye na!!!
 
getting a strange exception of security exception, lolz :P
 
@Abhi can you smell what they are cookin
@Mihir POKE ;p
 
@AdilSoomro :D
 
7:48 AM
@AdilSoomro No..No cooking now due to demo in hour :
 
 
1 hour later…
8:53 AM
@AdilSoomro Hello
 
@MKJParekh hello
 
lo jee jawab to pehly e aa gya..
 
@user642953 Hello
Whats up..!!
 
9:07 AM
@MKJParekh bs shanti
solving bugs
tame kaho
:)
 
shanti,,uuhhhh ;)
 
@user642953 May I help you?
 
@MKJParekh na
kai prob padse to kais
thanks
 
9:38 AM
Colors hud hud
@MKJParekh yeh dekh toh, has twitter API changed?
 
9:51 AM
@MKJParekh hello
 
10:04 AM
@LalitPoptani Dabang Dabang..???
 
No, its BRS ;)
 
@LalitPoptani BRS ..?
 
Bhajji Raav Singham :D
 
@LalitPoptani ha ha ha
:)
kaise kaise short form banate ho
 
hehe.
 
10:10 AM
@LalitPoptani Twitter api ho gai ?
 
nopes useless error
 
muje bhai aa rahi he
:(
 
hey how can i unban myself to ask questions??
 
@LalitPoptani hello
@MKJParekh hello
 
yes
@user642953 which error are you getting?
 
10:21 AM
Sorry, we are no longer accepting questions from this account
i am getting this
hey
 
@LalitPoptani not sucesfully login to your account
 
@Vinay ask here
 
but i have account over here
 
@user642953 Hello
 
@MKJParekh hi
 
10:28 AM
Trying for the same Twitter error,
I am too..checking..
 
@MKJParekh k
 
@user642953 @LalitPoptani Both..Attention please
Go to you twitter, Application page....And Go to the application's Settings page...
@user642953
There???
 
then, ahead.
 
yes
have
 
In there check 2 things,

Application Type --->> Read,Write and Execute
Callback url --->> h t t p : / / w w w . g o o g le.com
 
10:39 AM
I don't think that can be the issue, because I tried with different Applications credential then to its not working.
 
Believe me or not..!
 
This is not repley's :P
 
@user642953 just give callback url,...and then choose type to Read write and execute
and then that twitter key will work
with the same code
@LalitPoptani you just please check again the key i gave you now
 
okay
thanks @MKJParekh
i'll try
 
10:59 AM
@user642953 Done or not yet..!!
 
@MKJParekh its not working.
 
@LalitPoptani Then problem should be in your code, Cause I just have logged in with that in the app 4-5 times
 
ok thanks.
 
 
1 hour later…
12:18 PM
@MKJParekh not yet.. solving another bugs thats why
 
12:41 PM
@LalitPoptani ,@MKJParekh ,@AdilSoomro
how to reduce GC
when use listview
 
1:27 PM
@MKJParekh click on edit and see what the mods has done.
still I am not satisfied that answer is never worth having 10 up-votes.
 
@LalitPoptani Hmm.. Ok.. So you are going to again flag it??
it happens many time many ans get so many upvote without that much reason..
And i swear on this that there has been no any serial or false voting..
then also there is 6 up for each
@LalitPoptani
 
@Mk
Hi
 
Hi
 
I have one doubt. Can I ask?
 
Sure.
 
1:43 PM
Actually I suspected that this room named as casual chat. That's why I asked upfront.
 
ok
 
How to retain data in the text fields even when we change modes?
 
Talking about which language or technology?
Android?
 
yes. Sorry edittexts.
I am always habituated to java terminology.
 
ok then in manifest you can write one more attribute to the Activity declaration..
android:configChanges="orientation"
now it will not create activity again when mode change
and you edittext values will be as it is.
 
1:46 PM
Yes. I know that. But my problem is I have different layout when the mode changes.
I have two xml files in the layout and layout-land.
 
then ..you need to learn from the example of ....savedInstances..
or you can also do that using overriding onConfigChange method in activity
 
savedInstances only save some data. Saving long data is very lengthy and makes my code inefficient.
 
try overriding onConfigChange
 
That's what my doubt is. How to save the data and retrieve and put it in the new display
 
I dont have much idea to share on this...right now..
may be @Abhi @Mihir can say something
There is one Application class if you can use it...
 
1:52 PM
Okay. Because When we use onConfigChange, the layout shouldn't change according to the modes respective to xml files. But we can do it dynamically.
 
yes
 
Yes. The Application class is used to get some features prior going to onCreate(). I don't think it would solve my problem.
Where are those abhi and Adil. They are not in android people room
 
hi guys
 
hey hi
 
can anyone help me with a java method?
 
2:01 PM
oh . I was about to ask you my above said question and in the mean while you fired
What is that method?
 
needs to sum an array of numbers
and if a boolean condition is true, then only sum the positive numbers
i have got something that is close, i think..
can i paste the code here?
 
yes you can. or you post a link that briefs your code.
 
int b=0;
if (positivesOnly) {

for (int a = 0; a>values.length; a++){

if (values[a]>=0) {
b=b+values[a];
}
}
}
else {

for (int a = 0; a>values.length; a++){

b=b+values[a];
}
}
return b;
so the first for loop is for the only positive numbers
and the second is for all numbers in the array "values"
 
What is the problem you are getting with this.
 
for example
when i give values {1,2,3,4,5}, false
it returns 0
instead of 15
 
2:06 PM
As it should return 0
 
i don't know why
 
because you are giving false flag
 
if you give false, how can it enter the if(positivesOnly). Because you have set positivesonly to false.
 
then it should go to the else statement
and complete that, right?
 
2:08 PM
you set that else statement within the first if loop
 
hi @MKJParekh
 
So when the first if is false, how can it enter.
 
i thought that, if the if statement cannot be executed because the statement is false, that it would then skip to the else statement
so either it executes the first if, or the else, depending on if the statement is true or false
is that not true?
 
have you edited your code now?
 
no, i'm not sure what to change
:/
any tips?
 
2:15 PM
Nope I am asking have you edited above code now which you asked previously
Becuase now your code looks fine. it should work.
 
no i haven't edited
 
Might be while at the time of giving values at runtime, it might have gone wrong.
 
yes, i run it through several test cases
and for most of them it gives 0
so there is something wrong with it i think
so i think b is not changing
even though it should be
 
Where did you keep this snippet in your program
 
it's not in a program, just a method i am doing for homework
so it's compiled and run online
many people have solved it, so it should work
 
2:19 PM
where are you printing these values?
You have declared the b variable in the method which is local.
So, it's scope is with in that method only
 
yes, the method is just asking for a return of the sum though
so it shouldn't matter
 
But you are retuning
 
i just have to return the values
 
yes. It doesn't matter.
might be entire code will give clear idea.
If you can, you post entire.
 
i can't sorry :/ it just lets me write the method
doesn't show any other code
here is the brief
The sumValues() methods takes two inputs: an array of integers, and a boolean called "positivesOnly". The method should calculate the sum of the values in the array, however if "positivesOnly" is true, then any negative numbers in the array should be ignored and not contribute to the sum.

For example, if the input array is:

{-1,2,-3,4,-5,6}

then calling sumValues() with "positivesOnly" being true should give:

12

because only the positive values (2,4,6) are summed, whereas if "positivesOnly" is false the output should be:
 
2:22 PM
Or, as a debugging part, you try to keep sop in this method too.
If you get values in this method, there is no problemhere at all.
 
hmm, so you think there is a problem with the program?
 

« first day (421 days earlier)      last day (948 days later) »