« first day (676 days earlier)      last day (4287 days later) » 

8:35 AM
anyone here familiar with AsyncTask
... how do i return a string to main
 
slightly..... :P
 
what is your problem with that?
 
you can do it, just let me find my code :P
 
You would need to use the string in onPostExecute() or create an Interface(Listener) to return the value.
 
I did it like this pastebin.com/HrXWExn1
 
8:39 AM
should i use AsyncTask's Get function?
 
(that errored = false; definitely shouldn't be there....)
 
@adam2510 get() will block the UI.
 
...
 
Samsung... whhhhhhyyyy
Samsung Experience store opens tomorrow, and what do they have on display?
Galaxy Note 10.1
The Apple store next door is going be full of laughing customers..
 
@RaghavSood Huh ? that doesn't look standard in activity... from what should i call it?
 
I guess he was talking about requestWindowFeature(...)
 
@Glitch It's flimsy as shit i hear
 
Hi all
Have you seen the leaked docs saying LG, Sony and Samsung will create Nexus-es ?
who would buy a LG nexus ?
:))
 
@AndersMetnik ah!! he is talking about getWindow().requestFeature(Window.FEATURE_ACTION_BAR);
 
@ProfSmiles Well the main reason why i want it to return a String is to see if the AsyncTask is actually receiving the packet
 
8:57 AM
any thoughts on this: ?
0
Q: Unsent locations from local database handling on a GPS reading service in Android

AlinScenario Step 1: Init the location manager to read GPS locations every 50 meters: locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 50, locationListenerGps); Step 2: each time a location is read: @Override public void onLocationChanged(Location location) { n...

 
hi there
 
Hello Warren!!
 
@adam2510 yep so extending my thing make getPosts() return a String and then in putPostsInUi() Toast it (or something)
 
yeah i'll try that next
i don't think it is working.../
 
@LalitPoptani exactly thanks :)
 
9:02 AM
@Alin why you are creating a seperate thread each time inside onLocationChanged()?
 
I'm concerned that there's 8 people in here that would like me to be slapped :P
 
If i post a toast below the AsyncTask execute line
that still shows... should it?
 
yes, it should. Because AsyncTask is performing your task in the background thread so it won't block your UI.
 
aah ok
I think the most "friendly" thing to do instead of passing strings back and forth is to show a Notification instead
although i will need that at a later point @ProfSmiles :)
 
@Glitch is anything wrong with the note 10.1?
 
9:09 AM
Apart from everything?
 
I dunno, I just saw a few pictures of it and it looked fine
 
Build quality is worse than knockoff products, display is low res, TouchWiz is as shit as ever, it lags...
 
uuuh sounds bad
I don't like most samsung products anyway, they all look and feel cheap
the padfone is also plastic, but it feels much nicer than a S2
 
@LalitPoptani as the service runs in the same thread as the main app... I thought it would be wise to have threads for each web call
 
I unlike most see this as a good time for sony to pull their finger out
 
9:14 AM
Having on onCreate() of the service newThread(...run(){startListeningForLocation()} does it mean that all the processing onLocationChanged and web call is done in this thread ?
no extra threads neede ?
 
yes but better would be to create a single Thread for the Service instead of new thread everytime inside onLocationChanged()
 
@LalitPoptani as in my question above ?
 
yes.
From this it seems that onLocationChanged() is executed in the worker thread only. So, no need to add an extra explicit thread.
 
@LalitPoptani I Don't get it... should I make a new thread onCreate() or not ? From what I read, I believe I should
but in the example you posted, he does exactly what I do, run a new thread on each locationChnagend
 
yep, but he is possibly trying to update UI from onLocationChanged() and got an exception because updating UI from Non-UI thread is not allowed.
 
9:29 AM
but you can post a new runnable to a handler to update the ui
 
I have it in a service and the update of the UI is done via handler messaging
so I don't believe it is any problem with updating the ui
I just wanna make sure I get the best approach to send data to web without causing delays in the UI of the main app
However, having a Executors.newSingleThreadExecutor() like in the link you've posted, I believe it will help me to make threads wait one after another
so no problems with accessing the database
am I correct ?
 
are you updating UI from sendLocation(location) method?
 
@LalitPoptani yes, for some cases. I send a message to the Activity which binds to the service with an handler
works fine how it is now, with multiple threads
so no UI problems
 
so, there is no need for that thread that you are using inside the onLocationChanged()
 
@LalitPoptani if I remove the thread from the onLocationChanged, I need to add a big thread onCreate() of the service ? no
otherwise it will send data from the same thread as the UI and slow it down
 
9:44 AM
nopes AFAIK, onLocationChanged() is already executed on the worker thread. So, that won't block your UI.
 
dafuq The method build() is undefined for the type Notification.Builder
 
@LalitPoptani What do you mean by worker thread ?
 
background thread.
 
hmmm... interesting
I wonder then, why in your link, the author still uses new threads...
 
Hmm still can't call no titlebar. explained in a question that that won't allow for a actionbar then. How else can i remove the danm ugly titlebar and keep the actionbar ?
 
9:53 AM
Quote of the day: "(Apple thinks) it's entitled to having a monopoly on a rounded rectangle with a large screen. It's amazing really."
6
 
source?
 
god that's funny
I want the jury to come back and say Both of you can suck it the fuck up and deal with it.
and then make void all patents involved in the case ^_^
 
personally I'd love to see all their patents taken from them and given to the world
not just the ones in the case
 
9:58 AM
@Merlin The way you cutted that out of context, makes it look like apple has said it... Which isn't true, be careful how you manipulate written words :)
 
hahaha. Or they could at least order every single patent of both parties to be rejudged
 
It's a patent war, let them spend their money on it if they like :)
 
@AndersMetnik you're reading it wrong then
 
@Merlin Yours or the article ?
 
mine ... it's a quote not a statement
 
10:01 AM
Agrees, the "(Apple thinks)" suggests that someone else said that
 
@Merlin Might be, but it could be understood that way :)
 
I should've indicated who said it for clarity though
 
@ProfSmiles Scumbag 7 news shows a decent photo of a gunman walking into a servo then cuts instantly to a very blurry photo of him pointing the gun at staff
"hey you look like that blur, Arrest him"
 
:| I won't watch anything other than ABC News
 
I don't even watch it... my parents assume everything is fact
 
10:07 AM
never trust one source alone...
 
and The West Australian is just shocking
 
fuck i don't even know why i have them on twitter
 
the other news source I regularly look at is WAToday
 
@mithrop you now have write access ... please read the house rules
 
just.... ugh
 
10:12 AM
BAHAHAHA
 
you can probably guess when that was
 
i think i am getting the hang of AsyncTask
 
@Merlin I will read them right now. Thank you :)
 
@ProfSmiles February 23rd
 
10:18 AM
cheated on the guess which day this was competition
 
know what happened on February 22/23? :P
 
Nope but google and this telegraph article does
 
I guess someone shit his pants...
 
lol nah
dammit i want to be able to debug notifications via adb
 
When i'm in portrait mode, my actionbar fills 2 lines? any ideas how to change that? :)
 
10:32 AM
can you post a screenshot?
 
Search Stack Overflow thoroughly then if you don't find anything post a question
sounds like something other people would benefit from knowing
 
@Reno See if you can convince people at Samsung to document their chips. forum.xda-developers.com/…
 
the iphone/ipad room is full of help vampires... Abizern should lock the room, too
 
Some apps choose to show images only when in portrait mode
 
2
Q: Find out if ActionBar is stacked

JulianIf you add tabs to your ActionBar, they will be in an extra stacked ActionBar on phones in portrait mode. Is there an easy way to find out whether this happened? I've attached two screenshots of the youtube app. The first one shows the normal ActionBar with the tabs in it, the second one shows t...

already a Q no answer though
 
10:34 AM
ahh
nothing much you can do about that
 
really? that sucks... esp. in mine, where I have my tab on 2nd line and only thing on first is the danm icon
 
how many tabs
 
4
Isn't there a "theme" where it just needs to be scroll horizontally ?
 
unless you had a dropdown i dont see it to be viable
 
that's sad
 
10:40 AM
what's wrong with having it as a dropdown?
 
it's ugly imo ;)
 
that's not ugly
 
Well, I don't like it :)
 
no other option
-_-
 
@WarrenFaith I would lock the room - but it isn't mine - and the other owners want to keep it open.
 
10:45 AM
@adam2510 Thanks for the aid though :)
 
http://www.engadget.com/2012/08/22/nikon-coolpix-s800c-android-camera-hands-on/
dafuq?
 
Than just leave and make your own one. I guess you would have at least one follower :)
the biggest "issue" with the date selector is that it doesn't show the day of the week anymore... I really miss the "monday/tuesday..."
@Abizern you know my advice...
 
Maybe. Thanks for the support. :)
 
sure
If hate is around you, it is hard to stay on the bright side
 
11:18 AM
hmm maybe it would be a better idea to try and get the IP address from the packet rather than the socket :P
 
11:55 AM
 
I am not sure but I feel sad...
he seems to be the one in a billion...
 
1 in a billion more like it
 
I'm skeptical that the 'friendzone' even exists
 
like I said :D
 
Sound like another excuse for not asking someone out
It's much easier to make new friends, than to live with regret.
And that assumes asking a friend out even ruins the friendship.
If my friend ever breaks up with her boyfriend, I ain't waiting to ask her out :P
Embed it like a man!
 
12:03 PM
link was being a bitch
 
Third time's a charm!
 
i like this one
 
What?!? Now 10 people want me slapped?
 
^^
 
@adam2510 I remember a guy turning up to highschool with a shirt with that printed.
Teachers were not impressed
 
12:05 PM
hahaha
 
@Glitch that's just the people who've logged in here in the last couple days
 
I know right!
I guess that explains why I don't have room ownership :P
 
Bitch i'd slap you
 
i won't be going to Sydney for a few months though
... i want access to the tv so i can debug my GTV app
 
12:11 PM
and work on your slapping technique :D
 
yep
 
hey guys :-)
if you guys like hip hop, Google (which normally has a free song everyday) has a free ENTIRE ALBUM from Busta Rhymes today
 
12:30 PM
Why Busta, they should be putting Nas' instead.
 
Sorry! Music on Google Play is not available in your country yet.
We're working to bring the content you love to more countries as quickly as possible.
Please check back again soon.
 
haha!
 
that sucks sorry :-( what country?
wow! look what's on special: play.google.com/store/music/album/…
 
Not available in my country!!!!
 
12:44 PM
dito
so don't punish us with links!
please
 
sorry, that sucks. Why is this? The internet is world wide, why would they limit it
what country are you guys in? I know warren is german...what about the rest
the last link was a joke though BTW, that was susan boyle hehe :-)
 
internet is world wide, but the license systems not
otherwise I would look hulu 24/7 :)
 
just more problems with intellectual property laws...they are an anachronism at this point in my opinion. We need to overthrow the old information order to advance humanity
 
well, tell that the guys at the companies who think they can earn money with it...
 
29% of Lux users are on Android 4.1
Insane
 
12:49 PM
or worse (at least in Germany) the one at GEMA!
 
GEMA is a joke
 
Lux? what is that
 
indeed
 
hiphop vs nails on a blackboard ... pass me the blackboard
 
the worst part is the "GEMA assumption"
 
12:51 PM
@GeeksOnHugs My app
 
or what is lux if I'm not understanding right lol
Oh, I thought it was a place haha
 
i like ALL kinds Merlin...electronic, hip hop, folk (including irish folk), bluegrass, rock, indie, alternative, etc. etc.
even a small bit of country :P (not much though, mainly Johnny Cash)
 
shameless self-promotion @Glitch
@GeeksOnHugs you're thinking of Luxembourg
 
My bank account doesn't fill itself! :P
 
12:53 PM
Yah hah
that's right
 
@GeeksOnHugs you checked out Eli West and Cahalen Morrison?
 
No, what genres?
I certainly will, I love checking out new stuff
 
Arctic Monkeys
 
my favorite music is stuff people turned me on to
 
12:55 PM
Look up the album Favourtite Worst Nightmare
 
Also Sarah Jarosz is unmissable
 
yah sweet Merlin :-) I found a website
hah, lemme make a text file list...
OK, got it (Merlin) Eli West and Cahalen Morrison/Sarah Jarosz (Glitch) Arctic Monkeys (album: Favourtite Worst Nightmare)
 
thx, I'll check em out tonight...I have to listen to stuff I know while I work cause I can't pay attention
 
Sarah Blasko ^
 
12:58 PM
cool, added the link to my list
you guys who can't can't get google play, not sure if you are interested but I searched and there is stuff on XDA on how to access stuff from non available countries
 
I have Google Play app + streaming
but can't buy music
 
oh gotcha...
ok, starting time... codes
 
Sarah Blasko... nice voice, I like it
 
She's Australian
 
G'morning
 
1:26 PM
I wonder if you can justify bricking someone's phone if they pirate your app....
if (pirated())
{
    if (rooted())
    {
        delete('/sys/');
    }
    else
    {
        delete('/sdcard/');
    }
}
// :)
 
@merlin, were you on ubuntu?
 
you better have a damn good check for pirated
3
 
i hit some keys by accident, not sure what, but my mouse pointer turned into a target?
 
public static boolean prirated() {
    return true; // in your face!
}
 
or: if (piratedDetected()) { alert('We think you've pirated our app. Either buy it, uninstall it, or we'll fuck your phone over. Have a nice day :)'); }
 
1:32 PM
Noob question time
How do I split a string delimited by bar '|'
in Java
 
str.split("|");
 
^-- that one
 
haha Prof if(Pirated) {kick user in nuts}
 
does anybody here have experience with ExpandableListView?
 
1:35 PM
thx glitch... now I am listening to 45 songs of Sarah Blasko...
 
Turns out I needed .split("\\|")
stupid Java
 
@GeeksOnHugs I have used it once
 
Probably because split takes regex, too
how to punish your cat:
 
1:54 PM
that guy has the second most annoying voice in the world
But he still aint got shit on Gilbert Godfred
 
I can't believe I had to wait an extended period of time for a 21 second YouTube video to load
 
at least you didn't have to watch a polictical ad
 
.. i can't find my Logs in DDms :(
 
Window->show view->logcat
 
2:05 PM
... i have logcat up
lets say i have Log.i("EyeceBoxService", "Client IP address" + address);
i cant see it anywhere in logcat
 
are there other logs that are coming in? Or is it just blank?
 
as far as i can see none
 
ok, so you see no log messages at all?
or just not your own
 
none by my tag
 
lol, I saw that.
ok
add a filter with the green (+) button and type in your Tag string for it
 
2:09 PM
08-22 13:36:07.866: I/EyeceBoxService(1499): Client IP address/192.168.0.3
sweet
thanks mate
 
np be aware sometimes (for me at least) I have to click on the filter in the list of filters to get it to refresh
 
yeah, its a bit of a pain as its all remote debugging
 
Also consider yourself lucky that this is a tag filter. AFAIK that does not exist with blackberry. When I was working on it I resordted to making my logs like this ("##### thing I want to log ######") to make them easier to find
 
this is why i prefer android
is there a time delay on socket updates?
nvm i think i know my issue
.. i recieve a packet that was sent from my phone.. but for some reason it is not sending another packet back
 
@FoamyGuy how do you access the group view? There is a method to ExpandList.getChildAt() to get a view but given a groupPosition (as in the onExpand event) how do I access that group?
brb
 
2:22 PM
it seems very iffy if it is going to work or not
 
I am not exactly sure of the context for your question. But BaseExpandableListAdapter has getGroup(), and getGroupView()` methods. Have you made yourself an adapter to use with it? @GeeksOnHugs
 
2:40 PM
anyone know if you can colour one section of a String in an Alert?
 
yes
 
any hints? :) :P
 
@FoamyGuy yes, I have, cool thank you. I don't know why I didn't think to look in it. That seems kinda inconsistant? anyway thanks bro :)
 
that method will parse a string and look for things that are inside of (#) hash tags, and give them a yellow background
 
2:42 PM
@FoamyGuy many thanks :)
 
you can probably get rid of the parsing for #'s and use just the style bit, surely there is a way to font face color rather than background too
you prolly want ForegroundColorSpan instead of background
0_0 SuggestionSpan That seems super nifty
 
hmm interesting
^^ Phone time is correct
at least there is nothing wrong with the code :)
 
hey guys
 
hey
 
hello
 
2:55 PM
i'm confused to why my network is dropping these udp packets
one or two work
 
@Pyrodante you got my evemail?
 
I did not...
 
what?
I was so sure I sent it your name
 
oh just checked
its there
 
2:57 PM
Ill get you the isk tongiht
 
btw that mission 3 for industry requires such a high skill level for industry
 
today is not going to be my day
 
I have to wait another four days before I can do it
why?
 
it is my birthday, I wasn't allowed to eat or drink after 9 last night, cant drink coffee, cant eat giving blood in an hour (which I loath).
 
definitely do shots and see how quickly you get drunk
lol kidding it will kill you
 
2:58 PM
going to still be at work
this is the START of my day -.-
 
wow
you sure you can make it through
 
happy birthday to me party favors -.-
 
@Pyrodante Happy Birthday :)
 
thanks
 
3:01 PM
Happy Birthday man
 
btw if you have any interest in the EVE universe at all I highly recommend Clear Skys videos community.eveonline.com/devblog.asp?a=blog&nbid=73350
thanks
 
happy burzeltach (like we say in Berlin)
 
@IAmBatman Welcome. rules are over there ----> being Batman will not save you if you don't follow them.
 
Happy birthday pyro. You should've taken today off!
 
can't take days of until sep 11
which btw really sucks because I cant take a day off for PAX >.<
 
3:04 PM
@user919216. Rejected for default username.
 
new job?
 
sep 11 is the end of 3 month trial yes
 
ah
you like it so far?
 
pretty slick
although I don't like the work itself I like the company
and thankfully I have mitigated the contracts impact on my day :D
we are a solution delivery service, so I like the job, but not fond of the contract :(
 
I hear that, same sort of setup for me
 
3:15 PM
@FoamyGuy in getGroupView what do you pass in for convertView? that's the view that you want to get?
 
Argh.. these sockets are pissing me of
 
@GeeksOnHugs if you are just trying to arbitrarily get a reference to the View prolly null What is the context for this though i.e. what are you trying to accomplish by getting the group view? Change it somehow based on something?
 
I want to change a picture when it's expanded and when it's collapsed
 
oh
one sec I think I did that in mine
 
sweet thx
 
3:25 PM
just out of curiosity was anybody here had a B.A. in electrical and computer engineering and then decided to get a masters in computer science?
 
hmm... i think my AP is dying
night guys
 
@GeeksOnHugs ok, there is an xml attribute for ExpandableListView that will let you do it with a selector, getting code for you now
G'night
 
thank you bro
 
I have a masters degree in blowing up spaceships
I am also tired and cranky
 
3:31 PM
@FoamyGuy Thank you so much :-)
 
change arrowdown and arrowright to the names of the drawables you want to use
your welcome.
 
yep, got it, I've used that for colors before, I see how it works
looking online other people are having trouble figuring out how to do it programatically
 
Interesting... I have more active installs on the donate version of User Management than purchases.
 
are they exactly the same?
 
9 Active installs versus 8 purchases.
 
3:58 PM
gnihihihi scnr
This is the internal punishment for doing iPhone design on Android! — WarrenFaith 19 secs ago
 

« first day (676 days earlier)      last day (4287 days later) »