« first day (115 days earlier)      last day (4848 days later) » 
00:00 - 11:0011:00 - 00:00

12:50 AM
Hi everyone :)
is anyone here?
 
hello
@JoxTraex welcome
 
thanks :)
how are you doing?
 
frustrated, you?
 
I hear you, same I'm havinga small problem with android
what areyou working on?
 
@JoxTraex Ive got a simple app that sends two SMSs with a 30 second gap between, but using sleep(30000) hangs the UI, but creating another thread just ignores the sleep altogether.
 
1:02 AM
did you remember to use handlers?
 
New to android, can you explain?
 
uh, its kinda tricky
i'll try
heres an example
Thread t = new Thread(new Runnable() {
public void run() {
count = 0;

for (int i = 0; i < 15; i++) {
if (locationListener.L == null) {
try {
handler.sendMessage(handler
.obtainMessage());
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}

}
}
});
t.start();
this is creating a thread that is looking at the locationListener and periodically checking it
and the handler looks like this
Handler handler = new Handler() {
@Override
public void handleMessage(Message msg) {
count++;
if (count == 15) {
error();
count = 0;
}
}

};
by sending a message it sends a message however; for my application
I dont need it aside from incrementing a variable
the way it works.. is the thread checks the condition 15 times
each time the variable is null
it send a message to the handle to increment the count by 1
when my count hits fits in the handler which is be run through every time by the thread through the handler
it will eventually display the error message, which is simply a toast saying it timed out
basically Thread -> sends a message via a handler and you do what you will with it
got that?
 
First bit makes sense
dont understand where the handler comes into play
couldn't you increment in the for loop?
 
the handler is introduced to just send a message from your thread to your main thread
i didn't want to lock up the gui while waiting
 
ahhh that makes more sense
 
1:09 AM
atleast.. I think thats what it did
anyway, it should help you, look into it
 
alright, thanks for that
 
sure, best of luck
 
I'm probably not much help to you... but whats your problem?
 
by chance areyou fmiliar with the alarmManager?
 
no sorry, read a bit about it. Never implemented.
 
1:10 AM
its.. a pain in the ass
lol
stupid epoch time is messing up the time or.. the calendar variable is setup impropropely
I dont know.. i've been at it for a couple of days.. still not sure what it is
AAAAAAAAAARGH >_< lol :D
 
What are you trying to do?
 
just trying to set an alarm to a particular date and time
 
ahhh I messed around with the calendar gettings times, but never dates. I also didn't try setting alarms for them.
 
yeah, its definitely not easy
if I hardcode 2 mins into the app it'll launch in 2mins
but when I called the Calendar's .getTimeinMillis() it seems to fail
alarms.set(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), pi);
first parameeter is the type of alarm, time to wait, and the intent to be fired
second parameter is : "Time the alarm should go off, using the appropriate clock (depending on the alarm type)."
and RTC_WAKEUP is based on "Alarm time in System.currentTimeMillis() (wall clock time in UTC), which will wake up the device when it goes off." whatever that means
 
so it just doesnt go off at all?
 
1:18 AM
yeah, the date has to be way off or something
 
weird
 
because like I said if I set the hardcoded 120,000 ms + currentTime(ms) it launches in 2m
 
Does it have to be in ms?
 
yes
the base for any time in an application is in ms
 
I guess that helps for accuracy reasons?
 
1:21 AM
yep
especially considering that the base of time for ANY computer system (apparently) is epoch time
which is x amount of time from 1969 12am something something something lol
ooooh
this looks like a useful plugin for eclipse
 
I haven't gotten into databases for android yet.
 
you should save that link, could definitely be helpful
 
done :)
A question:
 
are you being trained in android?
or self taught?
 
"handler.sendMessage(handler.obtainMessage()); " what does handler.obtainMessage() do? I thought we were sending a message to handler
self taught, doing a CS degree at uni and its holidays so I want to do something useful
 
1:27 AM
iI think it has to do something with obtaining a message from the thread and passing it to the handler
You could put information into the handler.. I'm pretty sure so the message CAN change
 
yea thats what I was thinking, just trying to figure out how to structure this, think I might get the thread to sleep then get the handler to send the SMS, that sound right?
 
yes
just have the handler call a function like sendMessage(lols)
do you have sms working already between emulators?
 
yes
its just the delay that fails to work
 
nice, I had trouble with that.. when I wasn't told that you had to have an internet connection for it to work
yeah i'm like 90% sure that should fix your problem
 
an internet connection to send an SMS between emulators?
 
1:33 AM
yes, atleast that is what I recall
 
they already receive the messages, so thats not the problem. The problem is getting the thread to sleep without sending the messages straight after each other
 
it would fail anytime internet was not detected on the emulators
I know, i'm just saying
that was my first struggle with it
 
ahh ok, Im running eclipse in a VM at the moment, its working pretty well
 
nice, so what are you trying to do with this current project?
 
keeps my main operating system clean
just getting my feet wet, also it will help with a competition my cellphone provider hosts once a month
 
1:35 AM
hehe nice
 
basically a spamming app, I know there is probably lots out there, but I would rather make my own to get used to the environment.
 
yeah its not too hard to do
 
exactly
 
are you reading any books on android?
 
got some ebooks, and have a hard copy of a Java book
ebooks are on android development
 
1:36 AM
may I recommend a few?
 
please
 
Beginning Android 2, Pro Android 2, Professional 2 Application Development, and The Busycoder's guide to android
I have all these books on pdf
also have a couple of them physically
 
Brilliant, will have to source them
off to google I go
 
yes, the source is attached to their main site
and can be downloaded without any special "code"
Thats right, excercise that google fu.
:D
 
yea the physical version is good, stops you burning your eyes
 
1:38 AM
it depends on the style of the book
when it starts becoming pages and pages
its nice to have it btoken up on the screen
broken*
 
400pg math course reader pdf, felt like I was looking into the sun
 
LOL
yeah.. books like that are VERY hard to read on pdf
 
do you use source control software?
 
no, haven't been introduced to it
 
ahh ok, I'm trying to figure out github
 
1:45 AM
ah yeah, theres a lot to know about that.. lol
 
yea still trying to figure out how to upload.... massive fail
 
lol did you try looking up a tutorial?
 
many
keep getting "Permission denied (publickey)"
 
ah
sounds like you need to gte that key validated
 
yep, you read all those android books?
any recommended order?
 
1:53 AM
nope, they are just refferences
my suggestion is start with Beginning Android 2 and then Android 2 Pro then Android 2 Professional
and if you want to get into some advanced stuff
then go with Pro android media developing graphics, music, video and rich media for tablets and smartphones
great book for the advanced stuff
 
sweet, thanks for the help.
I have to go out and get some food, see you later.
 
cya :D
Hi chris
Anyone familair with the AlarmManager class? :) ?
 
2:28 AM
anyone familair with the AlarmManager class?
or anyone ned help?
 
 
1 hour later…
3:55 AM
hiiiiiiiiiiiiiiiiiiii all
 
4:24 AM
Room description looks quite changed :-?
and name too!
 
4:43 AM
Hi All
Yeah I like it
 
@SheikhAman hows u
 
5:24 AM
hi!!!!!!! every body gm.... all
 
@NJOY good morning
 
@RashmiB hi!!!! very good morning........
 
HI.... Good morning Friends....
 
morning everyone
 
0
A: how to display current webview in android

chirag shahUse this method: webview.getURL() on each button click.and get url that in string and just load that in that url in webview. but just mention here take relevant webview for that method means as for yahoo may u take webview1 like this.

Can anyone explain what chirag meant in his replies I am not understanding anything :)
 
viv
5:34 AM
@CreativeMITian morg......
 
my ListView is not updating inside onActivityResult() method. anyone is aware of this problem
 
@RashmiB look at my reply and if u dint understand chirag's reply then why u accepted it......LOL.....
 
viv
@CreativeMITian first check if it's getting inside, then check the updated content, then check ur adapter
 
@NJOY I replied to ur comment as well. I have made the other 2 webviews invisible. that issue is solved. I want to retrieve the selected answer somewhere and display when I click those buttons
 
@viv data is coming in my ArrayList but not updating using notifyDataSetChanged(). how ever i am creating new Adapter and setting it in ListView works but why the first one not working?
 
viv
5:43 AM
@CreativeMITian hmmmmmm strange don't have much experience with notifyDataSetChanged(), i usually update adapter............. let me check ........
 
@RashmiB which answer?????
 
@viv okay no worry... i am struggling with it
 
viv
@CreativeMITian hmmmmmmmmm.......
 
@CreativeMITian i think somewhere something is missing.......
@RashmiB see my coment....
 
@NJOY hey see one similar problem is here :stackoverflow.com/questions/4308061/…
 
5:56 AM
@NJOY ya got ur point :) thanks dude
@NJOY : one doubt....if I set visibility...will it show the query results on the first click...coz when I click the buttons for the first time, t must show me corresponding query results...den on the selection must remain constant
 
6:10 AM
u have 2 put condition if it is first button click then show results recieved from url and from next time onwards just make that webview visible and other 2 invisible.
thats wat i think u have 2 implement it practically........
lets give it a try.....
 
@NJOY: ok buddy il give that a shot n let u know
 
@RashmiB f9.....
 
6:26 AM
hiiii @RashmiB
 
@Tushar hi pal
 
@RashmiB hows u whats up
 
@Tushar m good how abt u
 
@RashmiB do u have skype
 
ya
 
6:32 AM
@RashmiB send me friend request on skype
 
@Tushar can I send it later? actually I am not allowed to use skype for personal accounts here in my office
 
ohh,,can u come on skype..plz mine id is tushar.sahni-xibindia.com
@RashmiB send me request
 
@Tushar i dont have skype installed here dude... anyways my id is rashmirb ...send a request Il accept it later
 
@RashmiB i have sent u request,,after how many hours u will come online
 
@Tushar I will let you know...y anything urgent?
 
6:38 AM
hi @NJOY.... r u there
 
@RashmiB yeah
 
@Tushar if u can then ask here only
 
hi @CreativeMITian.. morning dude..
 
@RashmiB can u tell how to open a url on click of ok button
 
@Tushar have u read the docs?
@Tushar they explain an entire program in WebView.
 
6:43 AM
@RashmiB which one
 
@Tushar developer.android.com
 
okk
i havenot read
that
 
@Tushar Every android developer has to go thru that site, Search for WebView class in that, you can get your doubt cleared
 
@RashmiBi will do
 
@CreativeMITian i think.. i can solve ur issue.... try with "extends ListActivity" rather than Activity....
@CreativeMITian r u there...
 
6:54 AM
@jerith okay let me check out it
 
@CreativeMITian k dude..
 
@jerith I am alrealdy using ListActivity
 
@CreativeMITian exactly ur problem is adding a new content to a listview right ?
 
@jerith its like this : data is coming in my ArrayList but not updating using notifyDataSetChanged(). how ever i am creating new Adapter and setting it in ListView works but why the first one not working?
 
i already faced this issue.. can send u mail id i will send that code...@CreativeMITian
otherwise try "setListAdapter(new ListViewAdapter(activity.this));" @CreativeMITian
it automatically set ur listview..
 
7:00 AM
@Tushar did u get those docs?
 
@RashmiB i did that
 
in my code no need to used use "notifyDataSetChanged()"....very simple buddy.. @CreativeMITian
 
@jerith Thanks for your suggestion . well i have tried both methods were working in the other projects and here i am facing this problem inside the onActivityResult() method. i am still finding the solution. this is similar like this : stackoverflow.com/questions/4308061/… see the second answer in this ...
 
@CreativeMITian k..
 
hiii
all
i have a url
i want to highlight
can anyone tell
should i paste the xml file
 
7:21 AM
@jerith okay let me send u r snippet
 
strugulling with R not found error tried every thing........
:-(.
 
@CreativeMITian k will send the code.. it may be usefull to ur issue...
 
viv
@NJOY is there R generated...... see in gen folder
 
@NJOY try cleaning whole workspace
 
@CreativeMITian... SORRY dude i missed ur mail id can u send again...
 
7:27 AM
@viv YUp R is generated.
@CreativeMITian cleaned it tons of tiimes.
 
@jerith I have to highlight url,,,in a text..How can i do this
 
viv
@NJOY import it manually........... import yourpackage.R;
 
@CreativeMITian k dude...
 
@jerith okay
 
@viv ho ho ho very simple your solution done the trick.thx........
 
7:33 AM
@NJOY well as @viv suggested is also works but its still strange sometimes both works.
 
@CreativeMITian sorry buddy iwas bit busy that time.....is your prob. solved.......
@CreativeMITian ya usually it works f9 on cleaning but 2day not was not working.........
 
@CreativeMITian do u know how to give condition such that for a single button we can have two functoins
 
@Tushar.. no idea dude..
@CreativeMITian... check ur mail..
 
viv
@NJOY great........ i have this issue many times......
 
@jerith do u have some code of android
 
viv
7:37 AM
@CreativeMITian hmmmmmm yup........... building and cleaning also works yes.......
 
@jerith okay
 
@viv cleaning usually solves the prob. and many times deleting the problems in problem tab and rebuilding also solves the prob but 2day nothing worked....
 
viv
@NJOY hmmmmm it happens............. thanks u were here..........
 
@CreativeMITian did u find solution 2 keyboard question that i reffered it is very interesting question i htink.........
 
@NJOY nope but did u checked the Sample SoftKeyboard in API Demos?
 
7:41 AM
@CreativeMITian ya actually what he wanted 2 do is finish the activity on back click even when keyboard is opn. @viv
1
Q: How to close Activity with software keyboard after BACK press?

fhuchoI have an Activity, where I want the software keyboard to be alaways opened. How to close the Activity after BACK press, when keyboard is opened? Now I have to click BACK twice, first to close the keyboard and then to finish the Activity.

he does not want 2 close keyboard when back presses
 
@jerith thanks buddy for this. your method is straight forward. but as i told u notifyDataSetChanged in not working when i am returning back to my main activity from another activity
 
k @CreativeMITian..
 
@CreativeMITian can u show me your code snippet....
@CreativeMITian hey buudy try notifydatasetChanged in your mainactivit's onResume().
this will do for you i think..........
@CreativeMITian u here friend......
@CreativeMITian ?????????
 
@NJOY okay let me try.
 
viv
@NJOY no idea buddy............. till now i have not worked with soft key board......... but when u get the soln tell me also............
 
7:48 AM
@viv ya sure.....
 
@NJOY which Back Button or Back Space?
 
viv
@NJOY thanks......
 
@CreativeMITian back button.....
 
okay got it
 
@CreativeMITian did u see d sol 2 ur question i suggested........
onresume()......
 
7:52 AM
@NJOY sorry mate i am checking and ping u other wise i will share code
 
@CreativeMITian ya sure.....
 
hi all
@jerith: i came now to my room
 
@MichelGeoffroy hello
 
@RashmiB: Hi, How do u do
 
@NJOY hey lets check this .pastebin.com/SaBXA8KM and its not working in onResume method
 
8:06 AM
@CreativeMITian:Hai, Mate
 
@MichelGeoffroy hello
 
@MichelGeoffroy am doing good
 
@RashmiB: @CreativeMITian: :)
 
@MichelGeoffroy: how can I display my web results first and then on each click ...how to display current selected web result...according to my code M regenerating query results
@MichelGeoffroy: how can I display my web results first and then on each click ...how to display current selected web result...according to my code M regenerating query results
 
@RashmiB: you have a webview, intially you are loading awebview
 
8:18 AM
yes
 
@RashmiB: then clicking the webview, you want to display current selected webresult am i right
 
@MichelGeoffroy yes
 
@RashmiB: well, can i know what you tried so far, mate
 
@MichelGeoffroy did u get my previous msgs? I had typed I donno if it reached u,,,theres some prb with internet
 
8:34 AM
hi @MichelGeoffroy.. i came to ur room
 
@RashmiB: i havenot got that message, pls send me again
@jerth: hi
 
@MichelGeoffroy : Initially I displayed one view and made other 2 views invisible...after first click of button, it mst display result
it used to stay fr 10 seconds and after tat would load the results page again
@MichelGeoffroy now i have set visibility for views on button click but no use
 
@RashmiB: ok, so your problem is you want to implement a timer right
 
@MichelGeoffroy no no
@MichelGeoffroy I just want the user selection to stay....suppose he selects first result from google search results....after he clicks google button again,,,,he must get that first selected result not query result
 
@RashmiB:ok, cool , so the extcat problem is
 
@RashmiB: i will going to see this, mate
 
@MichelGeoffroy k thank u
 
@RashmiB:)
@RashmiB: Are you here
 
@RashmiB hiiiii
 
9:06 AM
@CreativeMITian okk isaw ur code but is it printing that log..
@RashmiB hi!!!!!!did it work for u.........
 
@NJOY okay, so whats the bug
 
@CreativeMITian is it printing that log
msg....
 
@CreativeMITian hows u all
 
@NJOY okay let me tell is getView() method calling when we get back to our main activity
@Tushar fine freind..
 
@CreativeMITian no it will not be called again........
but have u checked it is satisfying all you conditrions or not
thats why i asked isit printng log message
 
9:12 AM
@NJOY okay let me tell where u r printing log in that code
 
@CreativeMITian no u printing it in your onactivity result
 
@CreativeMITian so whats up,,, do u have skype??
 
@CreativeMITian it is there on 59 line in pastebin
 
@NJOY:yes here printing in my log also and i am getting result in ArrayList and setting it to the adapter class method setItems()
@Tushar no buddy. you can chat with me only here. in office time
 
@CreativeMITian: i create the progress bar on web view load and cancellation=true,now on back button i want to close progress bar and activity
@CreativeMITian : but on first time it close the progress bar and on second time it close activity
 
9:20 AM
@CreativeMITian can u tell can we decrease the size of alert dialog?
 
@CreativeMITian u getting values in mPersonlist....
 
@NJOY yes buddy i am getting values , that is not a problem.. and i am adding using setItems() method and also values coming their but i am calling notifyDataSetChanged and nothing happend
@rubyid10 are u using threads in your program?
 
@CreativeMITian i was just asking bcoz may be notifyDataSetChanged working well but some other thing is mmissing
 
@Tushar yes you can create a custom dialog. whatever you need: see this androidpeople.com/android-custom-dialog-example
@NJOY hey u know its only happening in case of a onActivityResult() while i have used the same code with the AsyncTask and all was fine.
 
@CreativeMITian: just webclient,check my some code here stackoverflow.com/questions/4898093/…
 
9:29 AM
@CreativeMITian i have implemented similar thing but used notifyDatasetChanged() in OnResume() and all worked well.......
 
@NJOY okay lets post that code in pastebin.
 
@CreativeMITian i dont have it right now bcoz i changed that code and then used async Task .that was requirement of project then.....
 
@NJOY Okay
 
@MichelGeoffroy sorry was out for lunch
@NJOY no dude....am not getting it
 
@rubyid10 just use the AsyncTask, as the one has suggested in the answer. It will woks
 
9:41 AM
@CreativeMITian ok just checking let u know......
 
@NJOY okay i was just pondering to implement like this. but i was hoping that it will works in simple way and not working :(
 
@RashmiB: No probs, presently i m busy in work, cya
 
viv
10:07 AM
@MichelGeoffroy hi buddy................. kya hal chal hain aap ke...........
 
@viv he dont know HINDi
 
@viv Hello.... I need ur helop
 
viv
@CreativeMITian kkkkkkk..... i knew that........... that's why i wrote in hindi......... lol
@RashmiB yes............ tell................... let's see
 
@viv hmm maje le rahe ho..
 
@viv Whenever google displays ur search results, in that if u choose one...where is that url stored
@viv in my app i have 3 search engines..when Google is displayed Yahoo n Ask buttons r created...de al display the same result for the same query....if i click first time, it must show result....on next clicks it must show me that site's current view( Suppose I select one result from it)
 
viv
10:33 AM
@RashmiB sorry for late reply........ i was not at desk
@CreativeMITian yup....
@RashmiB i didn't understood ur question.......
 
@viv : I have 3 search engines..google yahoo ask....if google is displayed i have yahoo ask as buttons below...if yahoo is displd i have google n ask as buttons n so on...suppose google is displaying result for query "Stackoverflow' with 3 results result no1,2,3. I select result no2.(Google) Suppose I click ask, Ask displays "StackOverflow" results...with google n yahoo buttons...now whrn I click google...i must get result no2 and not SO results page...got it?
 
viv
@RashmiB "i must get result no2 and not SO results page."........ what this means......... do u mean......... that when u come back to google u should get the page with results of stackoverflow ?????????
 
hello
 
10:50 AM
@viv It means I must get the selected result amongst the 10 displayed results...if i choose facebook home result, when i go to google i am go to log in page of fb...not fb results
 
hello al......
 
viv
@RashmiB do u got the cause of this prob............
@nimi hi
 
@NJOY hello man
 
hi @NJOY
 
@viv I think I must call webviewclient
 
10:57 AM
@CreativeMITian @ganapathy hello.....
@CreativeMITian working on ur code, had got stuck in my prob now solved.
 
@NJOY okay I have found another solution.
 
viv
@RashmiB well i think there must be some thing in logic......................
 
@CreativeMITian whatbuddy......
 
00:00 - 11:0011:00 - 00:00

« first day (115 days earlier)      last day (4848 days later) »