« first day (405 days earlier)      last day (4529 days later) » 

2:30 AM
Good morning
hey everybody.
 
 
2 hours later…
4:36 AM
Hi Judy, Good Morning.
 
 
2 hours later…
6:46 AM
Good now!
 
Hi TR.
 
Hi Lalit
how's stuff?
 
user457812
I should try to set up some sort of writing schedule for myself so I put out a new blog post/article on my site each week
 
I made my domain name force me to do the same.
you can call yours aspiffaweek.net
 
Everything going fine you say.
 
6:52 AM
yourweeklyspiffy.com
 
user457812
Both of those sound like drug things O-o
 
user457812
Either way, I'd rather not have something tying me to a specific model
 
perhaps therefore more attractive
yeah that's an issue for me; I can't stop!
amazeaweek.net is mine.
 
user457812
Maybe I'll copy Gruber and try the link thing, but I kind of feel like that'd be disingenuous and it's not really my style anyway
 
Lalit I am trying to incorporate a map into my app. it keeps crashing, but I have some new sample code to try...
 
6:57 AM
crashing for the reason?
 
7:08 AM
Lalit, it's the same question from last night...
0
Q: refreshing map ItemizedOverlay gives ArrayIndexOutOfBoundsException

Thunder RabbitUsing the com.google.android.maps API, I've got a MapActivity which uses ItemizedOverlay to place several (up to about 1000) icons on a MapView. I want to refresh (or perhaps just add to the list of) the icons when the LocationListener detects the device has moved a certain distance (currently 5...

right now I'm trying to incorporate Mark's "NooYawk" code
 
Oh!! yes I saw that question yesterday too, but I haven't worked on map yet I guess Reno will be giving you the right solution.
 
Did you try out my last night's suggestion?
It will probably work, but it involves a lot of coding.
 
8:00 AM
I sorta tried it, I think, but didn't totally understand it.
lemme go back and read your comment.
it was pretty easy to add them as a batch
but I didn't understand the rest of your suggestion about ArrayList about to overflow
I've never concerned myself with ArrayList allocation details.
 
Hey @ThunderRabbit
 
Whats going on?
 
do you mean with my maps?
basically I'm trying to put a buncha items in an overlay
and it's crashing the mapp
mapp is new slang for map app.
 
ah okay :D
Google Maps I think
 
8:05 AM
yes
 
:)
 
com.google.android.maps.ItemizedOverlay
I'm currently trying to take parts of Mark's NooYawkAsync example and put it into my code
(but now getting an error that I think is related to Eclipse being silly)
 
Yeah if you do batch updates it's good enough.
 
I couldn't get them to work
I'm sure there's a single missing magic bean somewhere that I don't know I need...
 
You mean the error persists? ... or the the batch updates thing was a PITA to code for?
 
8:08 AM
the error persists, despite using batch update
it was a relatively easy fix; I just pulled the populate() out of the loop
Mark's code seems to do the following: each time we update, create a whole new overlay; don't try to add to the old one.
but (dag nabbit), even when I wasn't updating, ... mine still crashes. I just run my item populate code once and it would crash
 
This looks like a Maps issue, as far as I know you are going by the book. Nothing wrong with your code.
 
it's some race condition, it seems cause it crashes in a background thread at inconsistent times
thank you
 
Emm can you try adding the overlay from the UI thread using runOnUiThread() inside venueListUpdated()? (Just shooting in the dark here)
 
According to some forum posts the problem is setLastFocusedIndex(-1);
 
Reno right at the moment I can't as my code is undergoing major surgery, but I will try in a bit
CS, I have a couple of setLastFocusedIndex(-1) calls in my code
they didn't seem to help
 
8:21 AM
3
Q: android maps : array index out of bound exception

PrashamI have a task to show 458 markers to show in Android maps. And to avoid performance related issues I update the data on map using an AsyncTask instance. Here is a short scenario of what I do. I fetch the latitude/longitude of 458 locations around UK. I run the loop and as per Android Blog tu...

Otherwise have a look on a similiar question
I hope it helps :)
I haven't the time to write an example, I am sorry
 
Thanks for your help CS! you found a question related to this that I hadn't seen before.
Reno, I updated my question to incorporate your batch idea
 
Like CS said, add invalidate() after calling populate().
I think it is because of the async task thing ... so ensure that the overlays are added on the UI thread.
 
@ThunderRabbit I only used Google ;)
 
8:58 AM
Morning
 
Evening
 
Don't argue bunny features!
 
yeah! don't argue with the Rabbit!
hey wait that's me!
 
:)
 
An update, for those of you carefully taking notes: I have successfully drawn four (4) icons on my map, and the map did not (!) crash. Stay tuned for further updates.
 
user457812
9:06 AM
Serious Sam 3 is the best or second best game this year.
 
user457812
It's what Duke Nukem Forever should have been: fun. >_>
 
and 3 is "san" in Japanese, so that makes the title an aliteration!
 
9:18 AM
@nil What's wrong with you o.o
 
9:31 AM
Hi all, I have some questions regarding c2dm implementation with .net web service server and android app as client. can anybody help
 
I'm not sure how the implementation of the webservice matters - but what's your question?
I'm assuming you've posted on SO?
 
Prashant, it's best to search for your question on Stack Overflow and then write a question if it doesn't exist. Then you can post the question link here
 
Or listen to @CSchulz who gives away the cow :P
 
9:33 AM
@PrashantLakhlani For implemtentation of the server just make an request to the given URL with the parameters from the doc
That's the magic
 
@Thunder, thanks, I am new to chats and missed that part.
 
no worries
 
Also if you search on Youchoob there is an excellent video on the whole c2dm thing. If you are really doing this c2dm, start by looking at that.
 
@ThunderRabbit Sorry for undermining your authoritative
 
Hahahahahha
 
9:37 AM
@Graeme Why shall I lost my virginity?
 
o.O!
That's some scary half english right there!
 
@Reno, thanks for the tip, it's useful
 
HAHAHAHAHA!
Michael:"Duuude I gave away the cow last night..."
 
What else do you mean with this?
 
9:42 AM
I think it's something to do with the saying, if you can sell the milk don't give away the cow.
 
I think he meant you gave a great answer without explaining to Prashant the best way to approach the forum
 
"Why would he want the milk when he can have the cow" and it's variants mean "Why would you settle for a small portion/product when you could have it all/the producer". It becomes less profound when you expand on it :P
 
so, according to urbandictionary, giving away the cow is what we used to call a home run
 
It's usually told to girls to explain to them they will never get married if guys can have sex with them without getting married first.
 
@Manan I've given you write access, but I'm not sure if you are interested in Android, you seem to work on php and stuff.
 
9:44 AM
Now, back to technology
What's the best way to code "The positive difference between a and b" ?
Ie, a-b could be negative.
 
abs(a-b)
 
Duh, course, sorry, being think
Thanks TR
 
post it on so next time so I can get the points!
 
@Graeme Mostly I give only hints and advices to solve a problem I am not looking for create solutions. Why shall I waste my brain power for anything like that? :P
 
9:50 AM
hi, i have posted a question, how to paste it here?
 
just copy the URL of the question
and post JUST the URL on one line here
 
0
Q: android c2dm with .net

Prashant Lakhlani Server authenticates against google client login to use app engine's c2dm server. I understand that. I will use .net here. When data changes, I will send push notification to client and client service will refresh the data in their device db and UI will be updated. I am expecting this way the w...

 
something like that, yes. ;-)
 
Thanks @thunder
thanks @CSchulz I have already forked : github.com/Redth/C2DM-Sharp for server example.
 
@PrashantLakhlani Why do you forked it and didn't use the checkout?
 
9:58 AM
@CSchulz Not sure, I am also new to git, there are many things that I change over there. If I checkout, can I be able to commit my own changes?
 
You can commit your own changes to your own local version of the code
if you want your changes to be published to the world, you can either request the original project to "pull" your changes
or make your own fork of the project
 
ok I see. thanks for that, I will remove that fork and will do that
 
Ok @CSchulz, in that case I should fork, because that repository is using monodroid, and I want to show example of .net android c2dm example like I asked in my question
 
@Reno i want to learn android, please help, how to start?
 
10:11 AM
Read this website, carry on down the links on the left hand side. By the time you get to the end you're an android developer.
 
94
Q: Good book for beginning android development

GeosHi guys Can somebody suggest the best book or online resource for beginning android apps development? Thanks

 
thanks Graeme and Reno
 
Welcome :)
Someone said thank you ^-^
 
Speaking of books, I'm reading Ulysses right now.
 
10:35 AM
 
11:00 AM
@Reno What is the meaning of "Ulysses" ?
 
I have a nice little class that extends AsyncTask.
I now need to do exactly what it does, but not asynchronously
 
or you can switch threads ?
 
well, the thing is I have an async task that's kicking off my asynctask
 
oh haha
 
actually what do you mean switch threads?
and it does its cleanup before mine finishes
causing all kinds of havoc
 
11:06 AM
UI -> Async -> UI
Handlers is what you should use.
 
hmmm
it's for my maps question..
I got Mark Murphy's code to work
he uses an async task, in the middle of which I need to kick off my asynctask
handlers?
 
Have you considered using Executors?
 
nope
until now I hadn't heard of them.
 
I think I'm bombarding suggestions, there are many umm ... options available so ...
 
hmmm!
That looks reasonably likely to be a reasonable soltuion
I might like executors
heading home now
thank you Reno; I appreciate your knowledge of Android. :-)
 
11:21 AM
それは大丈夫です ^^
 
Reno from where can I get Android Class codes. eg:- Activity.java
 
Oh!!! thats nice thanks a lot.
Its for reference so that we can refer anytime, I made a star. :)
 
> Code Search will be shut down on January 15, 2012.
:(
 
Why so?
 
Will this also be shut-down?
I think you are dealing with Android about more that 20 hrs. :)
 
12:06 PM
Perhaps you can use IntentService instead of AsyncTask
I can give you an example
 
12:17 PM
@hsz , you haz access nao :)
 
@ThunderRabbit :P
 
hsz
12:39 PM
@Reno Thank you :-)
 
I need some advice
I was thinking of writing a settings wizard for my app
to guide users through each option
1) Do you guys think this is a good idea?
2) What would be the best way to implement it? An activity for each set of options?
 
1:13 PM
I think an Activity for settings and you scroll through settings rather than page through them. Or you use a tab-esque system.
 
1:24 PM
I wanted to page through them
because it's a 'wizard' with a brief description
 
Ok, well that's still what I think
 
but that's what I already have, kinda :P
 
Well that's not right...
Oct 13 at 11:06, by Graeme
Sometimes Most of the time, the correct way is the way that everyone else does it .
Better
 
1:49 PM
I think the wizard idea is a good thing.
You can have the diagnostics in the wizard flow.
 
Hi
 
hsz
Hi
I am right now developing an app that will be started on boot time (if user allows in it's settings) and obtain user's location and compare it if he is in specified area. Is it a proper way to start a service in BroadcastReceiver which will register a LocationListener ?
 
2:06 PM
jepp that's the way to go.
android.intent.action.BOOT_COMPLETED is used for your Broadcast rcvr.
 
hsz
But GPS icon on notification bar will be always visible, am I right ?
 
yeah it will be visible.
 
hsz
And what about battery, will it drain it ? Or I shouldn't worry about it in this simple case ?
 
If you're tracking the user then yes, if it's a single shot fix then no.
 
hsz
Ok, I should then set some long delay between checks
Thanks @Reno
 
2:12 PM
There is an addProximityAlert(), it runs every 4 minutes
 
Is there an event that fires when you're app exits or am I best just doing something on the onResume() of a fake initial activity?
 
You can use ActivityLifecycleCallbacks to detect when your base activity dies maybe ?
 
Seem's complicated...
I'm just going to cheat
 
Yeah it is weird that the onTerminate() of the Application class is not called on production builds.
Have a nice weekend and stuff.
 
hsz
2:27 PM
@Reno this method is awesome. ;-) And there is another question from me: If I have ~3k location points in all country it will not be a good solution to add all of them to the LocationManager. Have you any idea how to filter them to get just points in radius of 10km ?
 
Got another quick question
I want a line of code which does openConfirmationDialog() which returns the result of the "yes" or "no" buttons clicked in a poped up dialog. Is that a thing?
 
0
Q: Get actualization while ViewFlipper is flipping

GabrielleI use a viewflipper with images from web. Every 30 seconds I make an actualization of the images. I must do this: even if viewflipper is start the images to be update. Now my update is working only if I get back from slideshow and open again the slideshow. How can I do this?

guys please help
 
@Graeme that's not completely possible. Things like that can be done in Java Swing, and if you have used them there you know that while user selects a button the UI will freeze. That's not good, is it?
That's why Dialogs are created asynchronously (for instance, showDialog()).
 
No, was thinking all I could do would be to say while(notDone) Thread.sleep(100) :P
Trying to now think what I can do instead.
 
OK, this is what you usually do instead:
 
3:16 PM
Looking at your answer to this question actually @Cristian
9
A: How can I pass values between a Dialog and an Activity?

CristianYou can do that in different ways... actually, if your dialog has only an "OK" button to dismiss, why don't you just create a custom dialog using the AlertDialog.Builder class instead of subclassing Dialog? Anyway... let's suppose you have good reasons to do it the way you did it. In that case, ...

Strange coincidence you being around ... :)
 
Yup ^_^
1. You show the dialog
2. When you create the dialog in the onCreateDialog method you set some listener to its buttons (I am assuming it is an `AlertDialog`)
3. Then you call some method from there... like: `confirmationDialog(String result)`
Where result is a string representing which kind of button the user clicked. As you can see this approach is completely asynchronous.
 
Is there a listener interface I can implement in the android framework?
aka a class with "fire(boolean result)"? If not i'll just knock one up
lol, nvm, it's amused me to create Listenable :)
 
Exactly
 
Ok cheers
Please accept my upvoting of above question in thanks.
(Let's face it, you can't not accept it, but nevermind)
 
Hahaha
OK, good luck
 
3:51 PM
oh rollocks...
How am I going to pass along the listener... doh. Oh well, will need to keep them at global scope which is annoying and very bad practice :(
 
Best not check it at work though.
@hsz Sorry I'm not a computer, I'm using a tablet. I guess I would simplify it by making a box with a side of 10 km and see if the point lies within the box's corners.
 
 
2 hours later…
5:59 PM
howdy
 
 
4 hours later…
10:08 PM
hey @Graeme
 
user457812
10:28 PM
It's weird coming across a song in my collection that feels nostalgic.
 
user457812
Like it's associated with some chunk of my brain that I don't remember
 
music has strong ties to emotions and memories in the brain. Sound and emotional response can be tied together within our brain long after the reason for the association is lost.
 

« first day (405 days earlier)      last day (4529 days later) »