« first day (817 days earlier)      last day (1428 days later) » 

Yes very first line "We all know that Java won't support multiple inheritance to avoid diamond problem."
I know concept of interface and its features but I am not able to understand why everyone is giving example of "Diamond Problem" while giving support for Multiple Inheritance
 
@SweetWisherツ hello
 
because of the shape of the class inheritance diagram in this situation. In this case, class A is at the top, both B and C separately beneath it, and D joins the two together at the bottom to form a diamond shape.
lifted that from "WikiPedia"
Simple terms :)
 
@AndoMasahashi wht is next line ?
 
that "return val; "
@SweetWisherツ
 
10:05 AM
@sᴜʀᴇsʜᴀᴛᴛᴀ Great, Ok I understand this
Now Take a look in one scenario
I have one Class A
class A{
}
 
@Wiz25 hi
 
@AndoMasahashi where is it ??
 
class A{
public void add(){

}
}
 
@AndoMasahashi pastie please
 
10:07 AM
@AndoMasahashi use pastie.org
 
@MysticMagic sure
 
@sᴜʀᴇsʜᴀᴛᴛᴀ
class A{
public void add(){

}
}
class B{
public void add(){

}
}
class C extends A{
@Override
public void add() {
// TODO Auto-generated method stub
super.add();
}
}
 
@SweetWisherツ @MysticMagic pastie.org/9609797
 
@Wiz25 And got one answer.. As per his suggestion I need to review APP first..
 
@RoshanJha you too as your code is increasing :P :)
 
10:08 AM
:D
 
Now suppose C entends to B also so C extends A,B
:p because bich me ye ando bhi apna code ghusa raha hai
 
@AndoMasahashi firstly move Toast to onPostExecute.. no sense of using runOnUiThread in doInBackground
 
@Wiz25 I think Facebook have change APIs So that this problem occurred.
 
@MysticMagic done then
 
@Wiz25 Just need one help from you.. just check your code Is this returns birthday without review your app??
 
10:10 AM
@AndoMasahashi And why generateList(val); is in runOnUiTherad? is it updating UI?
 
@MysticMagic no its updating variables
 
You can return val in doInBackground and call that generateList(val); in onPostExceute @AndoMasahashi
I am not getting point on runOnUiTherad :)
 
@MysticMagic i know that
 
@AndoMasahashi Bhai tune meri mehnat paani me mila di
 
@RoshanJha whats happens ?
 
10:12 AM
@RoshanJha lol
 
@sᴜʀᴇsʜᴀᴛᴛᴀ Let me create one room
 
@AndoMasahashi hmm. so try that way.. if its not necessary to use runOnUiThread.. :) I guess that should be fine..
 
@AndoMasahashi usko mazak karne ki aadat hey dont take tention..!
 
@SweetWisherツ :P
 
@RoshanJha Wait for some time :D ..
Not sure, whats going here ;)
 
10:13 AM
@BhavinChauhan wat u have posted in ur question
?
 
@MysticMagic issue is that my one variable not updating that null always
 
@AndoMasahashi did you check that you are getting that variable in response val?
 
@SweetWisherツ how can we make my app in onpause from doublebackbutton press?
 
@AndoMasahashi rechecked that you are assigning that value in that variable in generateList method? Please debug..
 
10:15 AM
i checked i am geting it but befor updating that value control transfer to other line
 
@RoshanJha ambiguity that arises when two classes B and C inherit from A, and class D inherits from both B and C. If there is a method in A that B and/or C has overridden, and D does not override it, then which version of the method does D inherit: that of B, or that of C?
 
@sᴜʀᴇsʜᴀᴛᴛᴀ :) same here
 
@AndoMasahashi That's what I am telling. Please use onPostExecute and avoid runOnUiThread.
 
@Anjali It can easily be done with a Handler/Timer
 
@Wiz25 Posted Code which I have integrated from some samples.. And as per Facebook guide line..
 
10:18 AM
@MysticMagic i changed it right now still that thins happens
 
@TopCat what ........???????
 
@AndoMasahashi like this?
 
@Wiz25 just need to confirm from your side is that, your code return B'day from Graph API??
 
@SilentKiller :) weccum
 
@MysticMagic chennkkaass.
 
10:19 AM
@SilentKiller hi
 
hello
 
I am doing like this if (doubleBackToExitPressedOnce) {
super.onBackPressed();
onPause();
stopFollowMe();
}
this.doubleBackToExitPressedOnce = true;
Toast.makeText(this, "Press again to exit", Toast.LENGTH_SHORT).show();
But not working
can u show me any sample please
 
@ṁᾶƔƏňツ ṁ
 
@Anjali u can use postDelayed method
 
AssalamuAlykum @SilentKiller
 
10:20 AM
@Anjali super.onBackPressed(); normally close the activity so as you are closing activity and then calling onPause(). not feasible
 
@TopCat silly cat
 
@SweetWisherツ walaikumAssalam. write fully else don't.
 
i'll
 
:P @SilentKiller
 
10:22 AM
:P
 
@Spark :P
 
:/
 
@Spark @MysticMagic @SweetWisherツ hows you?
 
10:24 AM
@SilentKiller fine.. you? :)
 
@MysticMagic same here
 
@SilentKiller Goodiieee Woodiee....U u ?
 
@SweetWisherツ 'm fine.
 
@BhavinChauhan yes, but the code u have posted is not wat isaid to u
 
10:25 AM
@SilentKiller :)
 
good..you? @SilentKiller
 
@SilentKiller is it not possible to call onpause from backpress.
 
did u checked the code which i pasted in morning @BhavinChauhan
 
@Spark special appearance :)
 
2
Q: How to crop an image which is coming inside circle in iOS

sanchitsinghI am working on a project where I need to show an screen same as below Here the image should be cropped which is visible only in the circle. I have tried image masking as below. But it always crop in square. - (UIImage*) maskImage1:(UIImage *) image withMask:(UIImage *) mask { CGImageRef imageR...

 
10:27 AM
:P @MysticMagic
 
@Anjali i don't think its required to call onPause it will automatically be called
@Spark i am good more then you. :P
 
forgotten ur usual words too.. @SilentKiller hm
 
hehehe
 
i said u to add String birthday = user.getBirthday(); in onCompleted() method where u have added String firstName = user.getFirstName();
String lastName = user.getLastName();
String id = user.getId(); @BhavinChauhan
 
anyone worked with Zebra Printer ???
 
10:29 AM
ask to Zebra :P
 
Ask @NareshSharma
 
@Spark change required. :P
 
@LalitPoptani hahah
 
okay... @SilentKiller
 
@Spark wokey
 
10:35 AM
:D
 
@BhavinChauhan pastie.org/9609907
 
@SilentKiller but again on starting the app it should not start from begining.
 
@Wiz25 yes I have tried to get birthday from user.getbirthday function
but it's null
 
@Anjali please write process/flow in one go so 'can suggest you good way
 
i think no need of extra permission, u just need extra permission for email
 
10:40 AM
and for that I need to add permission parameter user_birthday, Which i have Passed
Yes bro I have tested with removing permission just put one email permission
but it not working
 
@Anjali Are you that same Anjali?
 
@BhavinChauhan m doing same and it is working fine
 
I think problem with new APP Id with developer account..
 
from Where u have downloaded the facebook SDK
 
github
 
10:43 AM
and did u added machine Hashkey when u created the API for ur app
?
 
I have create new APP with fb developer account.. here I got new tab to review App
which was not there in older day
yes
even fb login works..
got id name etc
but can't get b'day only
 
@X'Factor Where are you ?
 
23 mins ago, by Harish
user image
 
@BhavinChauhan download it from here
 
@SilentKiller OnBackpress I have to send my app in pause state and on clicking icon again it should come in resume state not restart
 
10:47 AM
is it possible to remove the above bar without removing title bar
 
@Anjali then you don't need to call Super.onBackPress just call onPause()
 
@Anjali try this
@Override
public void onBackPressed() {
moveTaskToBack(true);
}
 
y can't u use bundle? @Anjali u said you have to send my app in pause state..for that , use recreating activity..use that :) so save that state and then while launching use what are all stuffs in save instance state so that, when u go from resume-> here u wl save the instance state..pause->stop-> destroy and then while launching activity restore the save instance state of values in resume... @Anjali
 
11:06 AM
@Wiz25 big thanks for your support..
I find out issue..
Problem is newly created app.. from developer account..
new version needs some veryfication process.. I tested app with older App Id which was created by one year ago.. And it works :)
@Wiz25 thanks for your support..
 
@BhavinChauhan grt :)
@BhavinChauhan u welcome :)
 
Hello Friends... :)
 
@BhavinChauhan and don't forget to answer ur question keep coding :)
 
Who are Android developer here?
 
i have an issue
 
11:11 AM
@ChetanBhalara @ṁᾶƔƏňツ is
 
with the help of this link
 
Why should we do vote?
 
this Ans is very useful for Android app performance and Analyse
 
i did fragment communication but the value which i passed from fragment A to Fragment B is cleared when it comes to onCreateView
 
11:14 AM
@ChetanBhalara if we found it is even then it is in our authorization to vote up or down. you should not ask like this
 
Ok as you wish
 
@SilentKiller help
 
thanks @SilentKiller
 
@Wiz25 show code.
 
wait
is is same like this
 
11:17 AM
@ChetanBhalara according to your answer we can check "Memory Usage, Network Usage and CPU Usage" using your tool. can't we check this using DDMS ?
@Wiz25 if it seems like that then it must be working as it is an accepted answer
 
@SilentKiller yup it is working for but the issue is
 
Using DDMS you can do it only those apps which are in development mode not all and this tool gives very good graphical view with live updates
 
you can retrieve data at onCreate() method instead of onCreateView()
 
hi
any one hear
 
i have onCreateView where the value becomes zero
@SilentKiller
 
11:20 AM
iOS-CocoaAsyncSocket: mp3 data sending from client CocoaAsyncSocket but largest data not send
please give any solution
 
@Wiz25 may i know ur Name?
 
@ChetanBhalara hierarchy viewer provides graphical view
 
@BhavinChauhan Pradeep
 
@Wiz25 try to get that values at onCreate()
 
@SilentKiller ok i will try
@SilentKiller ok
 
11:21 AM
ios devloper available
or not
iOS-CocoaAsyncSocket: mp3 data sending from client CocoaAsyncSocket but largest data not send
please give any solution
 
@Wiz25 onCreateView will always call when app come to Resume mode so you'll not always get that values it mean onCreateView will call multiple times while onCreate once only so use that method to get data from Arguments.
 
@SilentKiller but how can i return the view
 
@Wiz25 whats the connection between view and that values ?
 
@SilentKiller the value is needed for calculation in onCreateView which is on button click , and button is in the onCreateView
@SilentKiller same thing i did b
 
so what. declare that variables globally fetch values at onCreate() and use it at onCreateView()
 
11:27 AM
@All Guys PMCC
Happy Navaratri
 
@Wiz25 then ?
 
expected. :D
 
first it will hold the value later in OnCreateView which is on Button click the value is set to zero
@SweetWisherツ Bye bye
 
11:28 AM
@Wiz25 m not gng :P
 
@Wiz25 show your code. you're doing something wrong
 
@SilentKiller wait
 
@Strider Bye Bye
 
@SweetWisherツ welcome back :)
 
iOS-CocoaAsyncSocket: mp3 data sending from client CocoaAsyncSocket but largest data not send
please give any solution
 
11:31 AM
@GamiNilesh no idea about iOS
 
@SilentKiller this one is second fragment
 
@Wiz25 where you are getting values from another Fragment ?
 
public void AlcoholFirstScore(int firstscores){
FirstScore = firstscores;

}
 
from where assigning values ?
 
11:37 AM
the method is called from Fragment activity when button is presed in FirstFragment
 
show that fragment too
 
Fragment Activity code:
@Override
public void firstAlcoholscore(int firstscores) {
AlcoholQusSecond alcoholQusSecond = new AlcoholQusSecond();
alcoholQusSecond.AlcoholFirstScore(firstscores);

}
 
and using this object to start Fragment ?
 
First Code
btnAlcoholQuestionnaireNext.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {

Firstscore = AlcoholContaineDrink + AlcoholUnitsPerDay + SixorMoreUnits;

mCallback.firstAlcoholscore(Firstscore);
((AlcoholQusFragmentActivity) getActivity()).setCurrentItem(1,
true);
}
});
 
@Wiz25 instead of doing this use SetArgument method to send data from one Fragment to another Fragment
 
11:39 AM
in debug mode i got the value
 
but as you are starting fragment with another object assigning value to another object you'll not get that both side
 
@SilentKiller ok
 
120
A: How to transfer some data to another Fragment?

Vicki DUse a Bundle. Here's an example: Fragment fragment = new Fragment(); Bundle bundle = new Bundle(); bundle.putInt(key, value); fragment.setArguments(bundle); Bundle has put methods for lots of data types. See http://developer.android.com/reference/android/os/Bundle.html Then in your Fragment,...

check this answer. you can do it by this and this is standard way
 
@SilentKiller ok
 
@Wiz25 :)
 
11:43 AM
@SilentKiller :) i will try isaw this link so doing in that way
 
@Wiz25 that is also possible but i saw you standard way. you need to pass same object while replacing fragment or adding fragment
 
@SilentKiller ok
m having issue i have added the code
Fragment fragment = new Fragment();
Bundle bundle = new Bundle();
bundle.putInt(key, value);
fragment.setArguments(bundle);
in First fragment
 
which ?
what you have ?
 
Wat is the default value
??
which is in the link
 
@Wiz25 where is default value ?
 
11:55 AM
Bundle bundle = this.getArguments();
int myInt = bundle.getInt(key, defaultValue);
 
it can be 0 or -1.
 
@SilentKiller
@SilentKiller ok
 
if fragment didn't found any value from that bundle so we need to assign some default value to return its that
 
@SilentKiller i got error wait i will check
FirstScore = bundle.getInt("score", 0); nullpointer exception
 

« first day (817 days earlier)      last day (1428 days later) »