« first day (682 days earlier)      last day (168 days later) » 

3:47 AM
anyone can get rid of EACCESS open failed? this is sick
 
ASG
hi
 
4:51 AM
any idea for large number array handle
 
GM :)
 
gm
@ChiragPatel is not work on ui thread
hello @ChiragPatel
 
@Jigsh paste your code
 
5:18 AM
ok
check it @ChiragPatel
size is approximately 500 above
 
5:40 AM
solve it or not? @ChiragPatel
 
gm all
 
@Jigsh change your code use listview instead of row data and display data in listview using your object Arraylist.
 
hi
Any body know how to create vertical paging . I want create custom layout with some button and text field . just like custom listview.
 
6:46 AM
give they your code pls
@chirag
@ChiragPatel
 
 
5 hours later…
12:00 PM
@Mysterious hey
 
@DIVA hello
again i need your help.. will you help me ?
 
@Mysterious yeah ..whats it
 
check this
0
Q: How to Show Total in TextView of all items available in List

MysteriousI am writing food ordering program, and in CartActivity i have to show Grand Total of all items available in Cart. Here is How my CartActivity looks right now : As you can see i am using a TextView above ListView, which has 0.00 as default value, here i want to show Total of all list items......

@DIVA
 
@Mysterious ok'
 
got it
@DIVA
how to calculate Grand Total ?
i have total of all items in a list
as you can see in image
 
12:11 PM
yes 1min let me read completely
 
sure
@DIVA
 
@Mysterious so u want to calculate when list stored or on any selection?
 
in onCreate() of CartActivity i want to show GrandTotal of all items available in a list
@DIVA
 
Hi, anyone knows about kernel module loading in android... stackoverflow.com/questions/25507694/…
 
@Mysterious ok when r u setting data in adapter so there price is avliable right?
 
12:20 PM
yes
@DIVA
holder.total.setText(new DecimalFormat("##.#").format(costValue*newValue));
String total = holder.total.getText().toString();
Log.d("total::", total);
 
@Mysterious ok so above get the result?
 
above code calculates total of each item
@DIVA
 
@Mysterious ok so above get the result?
 
yes
@DIVA
 
@Mysterious not all items?
 
12:29 PM
means ? @DIVA
 
@Mysterious can show upload some running demo?
i didnt get the issue
 
see this image
we have two items in a list
@DIVA
Samosa and Vegetable Pakora
OK
 
@Mysterious yes but y did the 0.0
yes
 
my dear friend pls wait a minute
@DIVA
you can easily resolve this issue
 
@Mysterious yes but y did the 0.0
yes
right
 
12:33 PM
in place of 0.00 we have to show grand total
@DIVA
 
ok got it
 
we have total of all items available in a list
 
ok nice
then
 
now i want to show grand total
 
ok 1 question
 
12:34 PM
@DIVA pls
 
is that textview is header of listview?
 
textview
sorry i forgot to place xml
 
np
 
wait
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_gradient"
android:orientation="vertical" >

<TextView
android:id="@+id/textGrandTotal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:padding="10dp"
android:textSize="20sp"
android:text="0.00" />

<ListView
 
tel me here
 
12:36 PM
@DIVA
 
@Mysterious hi
 
@AliAshiq hello bro
 
@Mysterious how could i update CustomListViewAdapter will u please tell me
 
@Mysterious ok got it then
 
@Mysterious fine how are u
 
12:38 PM
@Mysterious so y cant u set it ?
 
i have to update my CustomListViewAdapter when the new item or message received
 
@DIVA don't know how to show grand total?
@AliAshiq use notifyDataSetChanged();
 
@Mysterious ok i fell from ur lisvview that it should be in getview in adapter
since i can see + and - buttons also
so there grand toal effects
 
yes ofcourse
@DIVA
don't panic i will handle that
you just help me to get grandtotal in onCreate of CartActivity
 
@Mysterious ok 1 idea i can tell u is pas the Textview in cartadapter
ok
 
12:41 PM
tell me
whatever you think best
 
ok 1 . in oncreate r u sure u getting total number?
 
@DIVA this is the main thing naa i am not getting how to pass total from adapter to activity class... as you can see able to show total in list
 
ur comment :
you are doing total of item cost... but i asked how to calculate grand total-- when i have total of item(s)... for more clearity see above image screen shot
@Mysterious means qty*price?
@Mysterious so u mean u know grant toal in adapter
just wanna pas to activity?
@Mysterious** so u mean u know grant toal in adapter**
**just wanna pas to activity?**
???
 
@DIVA the great girl i know total of each item in adapter
 
@Mysterious the great boy .... do this listView.setAdapter(cartAdapter,textGrandTotal );
 
12:50 PM
lols, all are great here.. :D
is it so @PiYusHGuPtA..???
 
ok killer girl @DIVA
 
Yeah
 
lols now killer. :D
 
@Mysterious :(
 
12:51 PM
@PiYusHGuPtA i am not great Sir :D
 
@SilentKiller i am new hello bhai
@PiYusHGuPtA we already met
hello
 
@Mysterious i am also new you can ask to @DIVA
 
new to what
 
@SilentKiller i am not asking to you
bro
just greet
you
hello
 
@DIVA new to Programming. :P
 
12:52 PM
"hello"
@SilentKiller
 
@Mysterious helios.
 
but she [Diva] has talent @SilentKiller
 
happy ganesh chaturthi @ALL
 
agreed.
 
@SilentKiller u r too great sir so obviously not great sir D:
 
12:54 PM
@all Happy Ganesh Ji Chaturthi
 
@PiYusHGuPtA lols
 
@SilentKiller same here
 
@SilentKiller Same to you!!
 
now deleted else Flags will follow me. :D
 
@SilentKiller Yeah right
 
12:55 PM
i am always. ;)
@PiYusHGuPtA ohk Sir.
 
@SilentKiller Today. Need to talk
 
sure Sir
 
@SilentKiller thank you Sir
 
welcome Sir.
 
phone number is available in so profile :)
 
12:57 PM
@SilentKiller tomorrow off??
 
@SilentKiller
 
@PiYusHGuPtA no. :/
@AliAshiq yes Mr.
 
@SilentKiller Same Here
 
@SilentKiller sir i need ur help i have a chat base application:and i am using XMPP . and when i received message my CustomListViewAdapter does not update, and show previous message not current received message. How could i solve this? and idea
 
@PiYusHGuPtA हम होंगे कामयाब होंगे कामयाब हम होंगे कामयाब एक दिन..... (a hindi song)
 
1:01 PM
@SilentKiller Great bro...U r Woking on phonegap now a days. isn't t??
 
@AliAshiq i am not Sir you can call me by my name
@PiYusHGuPtA so so.. simple app
 
ohh ok @SilentKiller please dnt mind next time i will
and plese tell me
 
@SilentKiller Great. wanna also learn
 
@AliAshiq are you adding new message to your arraylist.?
@PiYusHGuPtA me too
 
@SilentKiller for that hindi song flags follows you?
 
1:04 PM
@PiYusHGuPtA i had specified its a hindi song anyone can translate that using translator so no worry :)
 
yes adding message which i received to user: check this pastie.org/9512956#16
 
@SilentKiller bro we already no that. But for other person. u understand better
 
@PiYusHGuPtA usually Mods don't flags to Hindi they just flag which they don't understand
hahaha no issues. :) hope for the Best
@AliAshiq debug and check whether it is adding to the Arraylist or not.
 
it is adding when i shift to another activity and return back to chat avtivity it will show
 
@AliAshiq it mean your adapter is not updating.
use notifydatasetchange()
 
1:09 PM
pastie.org/9512956#16 have a look please @SilentKiller
adapter = new CustomListViewAdapter(getBaseContext(),
R.layout.list_item, rowItems);
adapter.notifyDataSetChanged();
rowItems.add(item);
@SilentKiller
 
rowItems.add(item);
adapter.notifyDataSetChanged();
interchange this lines
 
1:25 PM
@SilentKiller @SilentKiller did'nt update using adapter.notifyDataSetChanged(); - An unknown error has occurred
@PiYusHGuPtA did'nt update using adapter.notifyDataSetChanged(); - An unknown error has occurred
@Mysterious
@Mysterious
 
1:47 PM
@Mysterious
solved
 
@Mysterious @DIVA
 
@AliAshiq yes
 
How coud i update my custom list view adapter in runnable thread ?
actually i want to update my adapter when i received message from user
@DIVA i have used this adapter.notifyDataSetChanged(); but this does not update my adpter
 
@AliAshiq ohh u would hvmissed something in adapter'
check once stackoverfloe examples
 
pastie.org/9513037#23 have a look @DIVA
 
1:55 PM
ok
 
@DIVA waiting
 
 
1 hour later…
3:14 PM
@AliAshiq sorry internet was down
 
3:43 PM
@TopCat
i need ur help
 
4:23 PM
@AliAshiq in mobile. Can't
Sorry
 
 
2 hours later…
5:53 PM
@AliAshiq Hello buddy
No one here :-/
 
6:25 PM
Hello @TopCat how are you ? Where is @Adi ?
 
hi @Prince
how are u
i am here
stackoverflow.com/questions/25571687/… princer have a look please
 
@AliAshiq Need to sleep now :-/ very sleepy
You still in office ? :O
We talk tomorrow, good night all. take care friends
 

« first day (682 days earlier)      last day (168 days later) »