« first day (120 days earlier)      last day (5053 days later) » 
00:00 - 21:0021:00 - 22:00

00:08
sup dudes?
hey
just posted a question myself.
is there reason why you dont just write it to a file?
what do you mean?
00:24
you said you write to the internal memory
oh wait
i may have misspoken there
you said internal of the device
im writing it to an sqlite db
oh my bad
do you mean on the disc drive or memory?
oh, ok
no no i just meant an sqlite
00:25
k, well whats the problem then?
i dont know how to get the id of the item
because when you, say, click the deny button it will delete the item from the sqlite db and subsequently from the listview
normally you use the onListItemClick method which has the id as a param
and it works fine, but with this im without that method by the nature of having the 2 buttons and the custom adapter
00:39
@JMRboosties hey. you want to get the id of a specific item between a lot in a list view right??
@JMRboosties so, you must click the item to get it
@JMRboosties have you thinked on that??
@psyhclo but i dont want to click the item at any point, i want to click the buttons
is that not possible
@JMRboosties I dont know. I just dont see a possibility, because you need to select which item from listview you want to get the id, got it??
yea. i guess i can look into finding another way to make it work. thanks.
00:46
@JMRboosties i've asked some friends about it. im gonna wait they reply
@JMRboosties what is the so question link?
1
Q: Question on logistics of a multiple button listview item which can use the id of the item in an SQLite DB

JMRboostiesSo this is a bit complicated situation, so I will try to explain what is going on as best I can. I have a sqlite db which populates a listview. Each item in the listview contains the name of the item, along with two buttons. I want these two buttons to be able to use the sqlite db row id of the i...

looks like someone just posted an answer
im about to read it
@JMRboosties is this your question? get the rowId of an item in a listview without clicking the item, just clicking a button?
@JMRboosties so, the answer solves your problem??
im trying it now
he recommends using a custom method for retrieving the id
view.setTag(customMethodForGetId(position));
i dont exactly know what that custom method would be
00:57
@JMRboosties hey man, you read the docs?
like on android's website? yea
@JMRboosties hey, in listview class there is a method getCheckItemIds that Returns the set of checked items ids.
oh really
@JMRboosties look at this methods getCheckedItemIds , getCheckedItemPosition Returns the currently checked item.
but is it really checked? im gonna read it now
cool thanks
00:59
getCheckedItemPositions Returns the set of checked items in the list
@JMRboosties read the docs man. LOL
@JMRboosties hey man getCheckItemIds is deprecated, Use getCheckedItemIds() instead.
@JMRboosties but i just dont see how you can check the item in the listview via a separated button.
@JMRboosties you know how??
im not sure if this is exactly what im looking for because of what you just said there
im not sure how i set it to checked when im clicking a button within the item
@JMRboosties look at this method performItemClick
i think that method is used for a system where you have checkboxes
Call the OnItemClickListener, if it is defined.
Parameters
view The view within the AdapterView that was clicked.
position The position of the view in the adapter.
id The row id of the item that was clicked.
Returns
True if there was an assigned OnItemClickListener that was called, false otherwise is returned.
@JMRboosties hey man, just take a doubt I have. You want to accept or deny the item the user receives right?
01:05
@JMRboosties so, how it happens. the item comes from the db??
yes, an sqlite db is populating the list
@JMRboosties yeah, so when a new data is inserted in the db, the user choose if will accept or deny to print in the listview right?
no, it will appear in the listview
and the user will choose to either put the data elsewhere or delete it
@JMRboosties so, just check, if a new data is inserted on the db, you choose to accpet or not, if yes, you print on listview, if not, delete from DB
not quite
01:08
@JMRboosties what you need to do first is check the new data is being inserted in db, got it? at least this is my point of view. I dont knwo if your app works like this
i will try to explain
the sqlite db gets its contents from an online db
so from the online db the sqlite db is populated
then that sqlite db populates a listview
if the user doesnt want it, they delete it, if they do, its stored elsewhere
@JMRboosties if the user doesnt want it what?? what the user choose to want or not.
its a request for the user. if the user says no, it should be removed from the db.
@JMRboosties yeah, but the request comes for each new data in the db??
01:12
@JMRboosties when the request comes to the user?
the request will come on regular intervals
thats not whats important here
what is
anyways i gotta go now, thanks for your help
the item id is what im concerned with
i gotta go, thanks, see you
see ya.
 
6 hours later…
07:01
Hi, can any one help me on this
0
Q: set setInAnimation and setOutAnimation while starting activity

JithinHi, I have the following situation TabActivity>group activiyt>(A->B->C) Here A,B and C are activities. And me loading like this setContentView(this,getLocalActivityManager().startActivity("zero",intent.addFlags(Intent.FLG_ACTIVITY_CLEAR_TOP)) .getDecorView()); What i need is t...

sorry, havent ever worked with animations
@Jithin are you indian by chance? ive noticed there are many in this chat
@JMRboosties yes i'm and you ?
nah im american
i just think its a funny coincidence that many users of this chat are from india
@JMRboosties lol... how you understood me as an indian...
well it just started as a hunch because most are, but also there are certain mannerisms in your typing which show
for instance indians use the comma (,) a lot earlier in sentences that americans
id say something like "hey what is going on" where an indian would say "hey, what is going on"
little things like that
its just how we are taught grammar differently i guess
07:09
@JMRboosties ya ... Good catch... we mainly me doesn't have good English.
do you have experience in building listviews? im struggling with that currently.
@Jithin your english is fine youre perfectly understandable
its just like you type with an accent, so to speak
@JMRboosties thanks.. ya i worked some
in listviews
cool, could you look at this q
0
A: Question on logistics of a multiple button listview item which can use the id of the item in an SQLite DB

tinny_bugyou maybe can do like this,in your custom adapter the getView method public View getView(int position, View convertView, ViewGroup parent) { View view = super.getView(position, convertView, parent); //you can set view's tag here //and you should do the reflect on your pos...

i know how to retrieve the row id when you do onListItemClick, but when im doing what im doing there its a bit more difficult
@JMRboosties i think its better you to create a different class that implements OnClickListener so you can sent the position to its constructor
@LabeebP im actually doing that now... I'm creating an activity which is in a dialogue theme, when you click the request its like a popup with just the 2 buttons
that way i can pass the position/id via intent
07:18
@JMRboosties i don't know buddy. i'm a just start in this
i'd rather it be all in one activity but id also rather continue working than get stuck here
its all good
@JMRboosties wait i will post my answer to your question
ok
hey @CodingGhost, do you have listview exerpience
@JMRboosties check it now dude.
cool, thanks
wow labeeb thats a really good idea!
07:29
@JMRboosties you are always welcome.
im going to try it right now
@JMRboosties ok and inform me what happens :)
to clarify
the constructor would require the rowId
@JMRboosties yes what you mean my rowId
ok yea
07:34
I think the position of that row right
well it refers to the id of the object in the database
for sqlite
which is a good reference to do things such as edit or delete rows
position means like
from top to bottom in the list, id means the actual id of the row, which is usually determined my chronological order of creation, where as position can move based on alphabetical order, etc
i need to either find or create a method which can get the id of the row at a given position
via a cursor, im sure
im just not exactly sure how that is done.
@JMRboosties ok so you can access you id from your getview rite
im not sure
public View getView(int position, View convertView, ViewGroup parent)
i have position, but not id
as a param there
@JMRboosties yes you are right.
ah but
could i use getId(position);
?
07:39
you should write the the logic to get the id in your get getview function
@JMRboosties ya is setId like that the getId will work
i think if i go
Long rowId = getItemId(position);
that should do it
@JMRboosties if you set itemId like that sure it will work
setItemId?
@JMRboosties how is you setting the id. Is that you get from you Cursor?
the id is just from the sqlite db
so the cursor gets it yea
07:45
@JMRboosties so access it from that Cursor and pass to click lisner.
@JMRboosties anyway dude its time lunch
ok, see you
see you
 
7 hours later…
14:31
guys.. anyone there?
15:06
evening
@SheikhAman hello all
@OctavianDamiean hello
Yeah
my team is here
I was wondering if someone could tell me how to get this SOAP webservice to work
its eating my head
@RashmiB ?? there?
@OctavianDamiean there?
@SheikhAman ya temme
@SheikhAman @o
@RashmiB You know how to access a webservice with KSOAP?
Octavian will answer your queries :P
@SheikhAman nope
15:13
:-P
okay!
I put my app in my phone...feels so nice :)
You got a phone!?
which one?
hey how do u decide upon the screen size...from developers perspective?
i have a galaxy 551
mera apna....office will give another one...I bot this after i gottu no am going into android :P
@SheikhAman if possible just go thru that forward button enable disable na....If i use onPrepareOptionsMenu, it makes the entire menu a mess
@SheikhAman My screen size is 3.2"....there was little space at the bottom of the app...so am unable to decide what screen resolution to tell for my UI developer...240x400 or 320x480
15:19
@RashmiB Sorry chick, im quite taken by this issue.. i have to get this done by tonight, and as of now, im not getting any help
@SheikhAman never mind....
@SheikhAman I am surprised as to even YOU can have queries :)
@RashmiB hahaha.. im not perfect man, everyone can land-up in problems
actually, I need some bucks, thats why i was doing this extra stufff, to get a motor bike
i have given my word to give them money by wednesday, if i don't deliver the apk, i wont get the money, and my bike will get delayed
:-P
@SheikhAman lolllll so this is the deal ha...apk k badle bike :) nice
carry on carry on hope u get ur bike :)
i hope i get that SOAP issue fixed first!
ya u will...dont worry
15:34
its eating my head as of now
very less documentation available about KSOAP
@OctavianDamiean there?
15:56
@SheikhAman hey
16:23
@MukulJain Hey, I have seen one from there, gonna see urs
what exactly is the problem?
with SOAP
I just redirect you to my code
Have you worked with them @MukulJain ?
@MukulJain Here's my code: gist.github.com/824821
yes
i actually am working closely with soap right now
wow.. God heard me ;-)
16:29
lots of problems i have faced, i hope i am able to help you
I wanna get this thing done
got the link?
yes, what is the problem?
it says this error:
Server was unable to process request. ---> Object reference not set to an instance of an object.
did u get the link of the webservice im trying to access?
no, i just have your code
just a moment
i link u to it
now got that?
16:38
yes
can you please try this
SoapObject request = new SoapObject(NAMESPACE,METHOD_NAME);
SoapObject loginRequestElement = request.addProperty("LoginUser", "");
loginRequestElement.addProperty("appName", "7-Laugh");
        loginRequestElement.addProperty("sEmail", "test");
        loginRequestElement.addProperty("sPassword", "test");
cool.. and rest of the things in that code are fine, right?
I try this out
hang on
i think so :) please let me know if it works
i just don't get how this SOAP shit works :-P thus having issues
tell me about it
my app has a soap response that is 7.6 MB
i was dying to parse it
poombayaah!
16:42
struggled for a week, then finally got it
does it have an XML parser too?
hey everyone
i have to write one
16:43
the AndroidHttpTransport was running out of memory
And AFAIK, normal XML parser won't work..
pheww!
*sorry i think it has an xml parser
@psyhclo hi mate!
ohh oay
i did not use it
@MukulJain in my code, after your modificatins, should it envelope.setOutputSoapObject(request);
or envelope.setOutputSoapObject(loginRequestElement);
16:44
yes
how are you doing??
the first one? or the second
quite fine, @psyhclo
request
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
@SheikhAman are you from india?
this code works for me, i havea different problem though, i cannot get the encryption right
16:45
ohhkay @MukulJain
so it always gives me an invalid password error
so it has encryption too! man! @MukulJain
yeah, @psyhclo, im from India
my app has encryption, i have to send an encrypted password
what are you doing right now? working in some project or just helping people here??
to the server
@ sheikh, india? where?
16:47
@MukulJain Chandigarh, in India
@MukulJain you from india too?
@psyhclo doing both!
cool, bangalore
cool, i wanna be there some time @MukulJain
sure, please let me know if it works
16:48
@SheikhAman I keep thinking, why we dont stop working. Its like , we like to do this, study new technologies, but even on sundays we are working. LOL
@MukulJain sorry to say, it still says the same exception
@SheikhAman this is our hobby right??
@psyhclo yeah.. people around me thingk im crazy cz i work 18 hours a day
@psyhclo yeah.. passion actually
@SheikhAman me too. people say im an adicted to computers. so, what company you work?
perhaps that's why im single yet :-P
I work for CueBlocks Technologies here in India
@MukulJain Its throwing the same exception buddy
do you have any blog post where you have explained the concepts? @MukulJain
or any link to a post or article? @MukulJain
16:52
No, sorry, i just keep searching from google, and try out
ohh
you should write one mate. its good!
@SheikhAman and would exactly you do in your job??
@psyhclo I develop web apps, and Mobile apps for Android currently, was into BlackBerry too
@SheikhAman webb apps with php?
yeah php
and frameworks
okay guys!
bubyeee
18:10
hi
iPhone is better so yeah android is not that good
hey
android is better than iphone
 
1 hour later…
19:29
hey all just advertising a question ive been struggling with
 
1 hour later…
20:58
Hello?
00:00 - 21:0021:00 - 22:00

« first day (120 days earlier)      last day (5053 days later) »