« first day (745 days earlier)      last day (2730 days later) » 

5:59 AM
GOod Morning Guys
 
6:19 AM
Morning
 
3
Q: Is there a way to get total device ram?I need it for an optimization

PhateI have a lrucache that could contain static data, so that even if my app is closed when user returns he can find data faster. However this takes about 10-15 MB of memory and so I'd like to make an if branch like this if(deviceOverallRAM > treshold) preserve static memory on app exit else ...

@TheLittleNaruto can u tell mw
the first method returns ram in which units ?
 
6:35 AM
@ErumHannan bits
 
one thiing more how can i find size of inidividal apps installed
?
i have find systems apps list but how can i find individual app size ?
 
6:55 AM
@TheLittleNaruto
 
@ErumHannan Using PackageManager instance you can fetch data relevant to all apps installed in your device. For example, check this link
 
yes i using package manager i m getting all data except app size
@TheLittleNaruto
pStats.codeSize
15
A: Getting installed app size

Josef PflegerUnfortunately there is currently no official way to do that. However, you can call the PackageManager's hidden getPackageSize method if you import the PackageStats and IPackageStatsObserver AIDLs into our project and generate the stubs. You can then use reflection to invoke getPackageSize: Packa...

this code returns me codesize in which unitss ?
 
mrng guys :)
 
Morning!
 
morning SwordsMan-San @Mukesh , @Uni -San
 
7:08 AM
@Unihedron GM
 
me googles what the suffix 'san' means...
 
@TheLittleNaruto mrng baby-kun
@Unihedron mrng hehe.. @berserk told me it means elder am i right?? @TheLittleNaruto
 
LOL, I'm younger than most of you, I'm only 16
 
@Unihedron :O we at 16 didn't even knew about internet :P
 
times has changed
 
7:15 AM
@Unihedron hehe a lot.. that time Mario was our favourite game and we have to visit somewhere(either at friends's home or at some playstations) to play that
 
@Unihedron But I am just 5 years old.
 
@TheLittleNaruto 'most' :D
Will you all stay on Stack Overflow for winter? Winterbash is coming!
 
Last time I won 8 hats
8 or 10 or 12
Ah! I am not able to remember
 
Cool :D
I wasn't around for winterbash last year, I only joined 6 months ago you see
 
I am new to stack overflow so i don't know much about that :(
 
7:19 AM
Hats!
 
#Frosty the Snowman is the coolest hat
I had it in last winter
 
I wonder what hats there will be this year.
 
Same as they were before
 
Lol, probably.
 
One hat you'll sure get i.e. ho ho ho, it'll be awarded on Christmas day if you vote up the same day.
 
7:22 AM
"Passed judgement" is easy as well, just to vote to close
 
lol
I am under 3k. So I cant get one :/
 
You still need a bit more rep for that though
 
Yeah
hohoho hat will look cool on my current profile pic. What do you think ? ^^
But I'll have to wait for it more than a month :(
 
:O
 
7:27 AM
You can invest 50 points for Make It Rain and try for Hello, World!
@TheLittleNaruto Yeah, I'd have to remember to vote up something before I run out of votes from downvoting ;)
 
hehe
@Unihedron That I cant do as babies give no fuck! They only know to take ;)
 
xP
 
LOL
 
8:06 AM
@rekire Good Noon
@MahaveerMuttha hi bro
 
lolz
 
9:05 AM
bye alll
 
b bye
 
bye
 
10:04 AM
@MukeshRana ?
@TheLittleNaruto ?
 
@senti ??
 
@TheLittleNaruto i have one issue
 
@senti Why? xD
 
@senti ???
 
10:21 AM
i use checkbox item if it is check i save sharedprefrance and view correctly. i want if it is check arraylist item also add how?
 
10:55 AM
@MukeshRana .
 
@berserk there?
 
@senti didn't get you ?
 
@MukeshRana do u use team viewer?
 
using this code to find runing apps on my device but my application manager running apps and this code running apps are different ?
can someone pls help me why is it so ?
 
11:00 AM
@senti no :(
 
application manager showing Google play service as running app while this code is nt showing me google play services name
 
@MukeshRana i have 10 checkbox if it is true add arraylistitem text and drawable image and get another class this is stored in shared prefrance
 
any android dev here
 
@senti you want to add checked checkbox's text in an arraylist??
 
i have a query
can i ask?
 
11:06 AM
@UnityBeginner yeah for sure
 
have you seen fb app?
@MukeshRana
 
@UnityBeginner yes
 
home page pe status n images show hote hai
n as we scroll down
status n images or load hote rehte hai
got it?
 
yeah
 
so it means it request like 10 in starting as we scroll down it request another 10
in this way?
is it?
actually i am getting list from server
that list contain 1000 of entries
so client want this to be shown like the fb homepage
whats the scene behind this
how can i do this
 
11:13 AM
two ways actually to do that
 
@MukeshRana save . i add already but cant save
 
yes @MukeshRana what are they?
 
either you should request all the entries in one go and show on your side with paging or you can simply request first 10 and then next 10 and so on @UnityBeginner
@senti you want to save that arraylist in shared preferences??
 
how to do coding onscrolldown on listview?
 
@MukeshRana pastie.org/9736166 yse
 
11:16 AM
you can use libraries like pull up to refresh or can make a custom layout at the footer of the listview @UnityBeginner
 
this is selected item this selected item show in mainpage and save sharedpref@MukeshRana
 
@MukeshRana ok i try thanks
 
@senti your arraylist is a custom objects list or simple a string list??
 
@MukeshRana see my code above
@MukeshRana pastie.org/9736168 this is main page
 
@UnityBeginner there is plenty of libraries available for pull up to refresh you can use any one of them. best of luck :)
 
11:23 AM
can you suggest any one @MukeshRana
 
Munnawar Rana
 
@senti i don't have much time to see code. if you want to save string arraylist in preferences then we can directly do that in api level above 11 i think and if it is custom object list then there is also hack available one of them is stackoverflow.com/questions/20819294/…
 
i am looking over for something @MukeshRana
15
A: dynamic listview adding "Load more items" at the end of scroll

bill gatesyou try the following code list.setOnScrollListener(new OnScrollListener() { public void onScrollStateChanged(AbsListView view, int scrollState) { } public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount)...

 
@UnityBeginner coming in 10 mins
 
11:24 AM
@RobinHood back to you within 10 mins
 
approved.
 
@RobinHood have you changed your name?? there is a one guy who named me Munnawar Rana so tht was you??
 
yup.
 
@UnityBeginner will looking for your library
@RobinHood so you changed your name??
 
@MukeshRana did you see the link above?
 
11:31 AM
@UnityBeginner that link is good if you don't want any user interaction means silently load the next items
 
@MukeshRana SwordsMan! How is it going? if you understand what I mean. ;) You must be happy after yesterday.
 
just i want as user scroll downs n reach to last position
 
it has both pull down to refresh and pull up to refresh
 
i must get notification
so that new items can be added
 
@MukeshRana na just revert the name.
 
11:33 AM
Mukesh thanks but it will work when we go above but in my case we have to move down
 
@RobinHood haha okay so how's you??
 
:20083992 Yea! ;)
 
@UnityBeginner i said it supports both
@TheLittleNaruto wait my Moto g2 is coming
:)
 
Did you purchase a new one ? @MukeshRana
What device do you have now ?
 
ok thanks mukesh, i try it
 
11:37 AM
@MukeshRana yeah fine shine and you?
 
@TheLittleNaruto he just got it from flipkart now :)
actually that was for my cousin
m gonna but nexus 6 soon
i currently have xperia SP
 
Hmm I see.
 
@UnityBeginner you can customize this library also according to your needs
 
@RobinHood me too.. after long time i have seen you.. where were you?? don't say you got engaged :P
 
11:39 AM
hahaha,
abey budhape engaged..hahaha
 
@TheLittleNaruto :)
@RobinHood so how many children you have till now :P
 
wait, lemme count :D
 
@RobinHood haha.. okay okay count
:)
 
haha
 
11:44 AM
SwordsMan! What's the plan for today ?
Which bar would you prefer? Chandigarh or Mohali ?
 
@TheLittleNaruto don't you have off today??
 
Hello everyone, i have made an android project.
 
Glad to know that
 
But in it the R.java file is not getting generated
 
11:46 AM
that sucks
 
hahaha
 
I have tried cleaning and building project but R.java is not there..
 
@TheLittleNaruto m too sitting alone in the office :(
 
@MukeshRana berserk is enjoying his guitar
Wont you go somewhere tonight to have some drink ?
it's weekend, bro
 
@TheLittleNaruto haha.. sending mario tones on whatsapp :P
 
11:48 AM
haha
 
@TheLittleNaruto hehe.. normally i don't drink but wheni do i don't need weekend for that :P
2
 
@MukeshRana lol, and forcing us to believe that it is mario music even it does not sound like xD
 
how to auto-generate R.java file?
when it is not in gen
 
@TheLittleNaruto hehe true that
 
folder
 
11:48 AM
even i didn't recognise that but now have to live with it :P
@M.S. i think you have some error in your res folder that's why your R.java file is not auto generating
 
@MukeshRana Starred ;)
Cant believe guys from Punjab dont drink, though berserk is an exception
 
Here is res folder. Everything seems fine here. If it does not then tell me what is wrong with it..
 
@TheLittleNaruto hahaha.. but i am not from punjab, I am from more druggest area than punjab :P
 
@MukeshRana Really ? Which state it is ?
@M.S. It looks ok to me.
 
I am facing this problem for every project i make in eclipse
 
11:55 AM
@M.S. okay if the problem is coming for every project then it is genuine :P
@TheLittleNaruto kasol, HP :)
 
@MukeshRana Wow! I have got something to ask ya then
 
Do you know the solution to above problem?
 
@TheLittleNaruto haha.. you can but that should not be related to any kind of drug :P
@M.S. never faced such issue
 
@MukeshRana Na..na..na.. It's about visiting that place. Must be many hill stations over there to visit.
 
@M.S.
if it has been related to one project than the problem would have been at your end but entire projects in yout eclipse facing same issue then there can be prblem with your eclipse
 
12:01 PM
Actually I am planning to visit some cold place in next summer.
Of course ^^ @MukeshRana
 
@TheLittleNaruto haha god bless you both :)
 
Thank you my lord! ;)
 
1:03 PM
Never Mind!
 
@TheLittleNaruto :)
 
Time to work now. Cya tomorrow guys
 
bye :)
 
@RobinHood How to achieve that kind of ui which you have shown in that image named flexible space?
 
@RobinHood Thanks, nice feature. But does it work only with scrollview?
 
Hi all,This is Prakash here.I need some help. please have a look at this stackoverflow.com/questions/27077820/…
 
@Appu I didn't check.
 
Okay, because I am thinking to expand one view and push the other view down to that expanded view while clicking on one button. Just like in that image. Of course didn't start working on that feature yet. I just have it in my mind@RobinHood
How have you been?
 
1:45 PM
@MukeshRana hi
 
2:20 PM
@Mubeen1992 hello
 
 
2 hours later…
4:19 PM
did you find anything?
 

« first day (745 days earlier)      last day (2730 days later) »