« first day (269 days earlier)      last day (4683 days later) » 
01:00 - 18:0018:00 - 00:00

1:52 AM
hi
who is here?
 
hello
I have a textview and it is on the TitleBar. I want to click it and show an AlertDialog, but is showing error
Inside my activity's oncreate, I call this

title.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View arg0) {
				AlertDialog ad = new AlertDialog.Builder(getApplicationContext()).create();
				ad.setTitle("Info");
				ad.setMessage(getString(R.string.info));
				ad.setButton("OK", new DialogInterface.OnClickListener() {

				      public void onClick(DialogInterface dialog, int which) {

				        dialog.dismiss();

				    } });
				ad.show();
			}
		});
The error is
07-11 22:54:06.640: ERROR/AndroidRuntime(7068): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
 
getApplicationContext()-->this is reason
 
@Judy what should be
 
you can't pass application context to it
Activity context
 
should it be getParent()?
 
1:59 AM
no
 
with this it returns:


07-11 22:59:20.480: ERROR/AndroidRuntime(7252): java.lang.NullPointerException
07-11 22:59:20.480: ERROR/AndroidRuntime(7252): at com.android.internal.app.AlertController$AlertParams.<init>(AlertController.java:742)
what should it be then
 
MyActivity.this
you should pass YourActivity.this to it
 
it worked
is there anyway to let the text justified?
in the ALertDialog?
 
Sorry, I don't understand your question
 
justify the text in the dialog. the text is not justified. I mean, its aligned to left, I want it justified got it??
 
2:04 AM
Sorry, I have no experience about it
 
ok. thanks anyways. you helped a lot.
 
not at all
^_^
who can take a look this question: stackoverflow.com/questions/6658813/…
 
user457812
Hey guys, questions and code pastes belong on SO, not chat >_>
 
user457812
Lookin' at you, @cyberrog
 
@nil Are you busy now? can you help me?
 
user457812
2:15 AM
Looked at it, can't help you since I don't use the emulator.
 
oh
 
user457812
Y'know, there's probably no reason for me to have a stack overflow careers account.. I'm a game artist, not a programmer O_o
 
hehe
 
 
2 hours later…
3:59 AM
Yesss I can finally chat in the android channel...which I wish had more people :)
 
 
2 hours later…
no9
5:38 AM
good morning
 
5:50 AM
good afternoon
I need to figure out a way to detect the quality of a light sensor, without too much user intervention
 
no9
sorry never touched that
 
hmm.. I can't find the save button for the beautify G+
 
I think it's a bug, hit 'reset' then everything should fix itself
 
ok
got it
coollll
but I can't scroll the sidebar LOL
 
that's what it does, it stops them scrolling :P
 
yeah LOL
the surplus is awesome though!!
 
6:15 AM
indeed :)
I thought of a new feature for my widget, but it won't be in the first stable release.
The icon will change to reflect the current weather
 
7:06 AM
Morning.
 
no9
yawn
 
my Eclipse stopped responding to backspace and arrows keys
just now, in the middle of typing
 
Beat the crap out of it.
 
I didn't install anything; I was typing and then it paused,.... and then
no backspace no arrows
I have backspace here without any problem
I just arrowed and backspaced to edit that.
I'm gonna slap the crap outta eclipse, but the project is still due in 3 days
hi Octavian
 
7:20 AM
Restarting it often helps.
Hello there.
 
restarting twice hasn't helped so far
closed all the open files and restarted
no good
delete works, but no backspace
 
Sure your KB didn't crap out?
 
I'm sure
 
Now that is interesting.
 
7:23 AM
I can backspace here all day
 
Odd
 
I know I can't hit return in Chrome
It crashes the browser
 
have to restart computer it seems.
 
More and more people are buying my app, which is interesting, considering it's a paid beta
How's it working for you, @OctavianDamiean? Any bugs? :P
 
7:27 AM
Yup, everything is absolutely fine.
 
yay Glitch!
Now come write my app!
 
I'm telling everyone I know to buy it. :D
 
@OctavianDamiean is that why people I don't know are actually buying it? :P
 
user457812
Oh, looks like question downvotes affect reputation again
 
user457812
Interesting
 
7:30 AM
I was wonder why I have people buying beta apps :P
 
@nil Oh? It doesn't for me.
 
Fixing a small bug at the moment, then going to make a step-by-step setup guide
 
user457812
Interesting, 'cause I just lost about 50 rep for downvoted questions :P
 
Oh, I should trigger a recalc.
 
Thanks for the link, Octavian; I was able to rebind my keys.
 
7:33 AM
You're welcome.
 
and even got Home and End keys to go to beginning and end of the line instead of the page.
 
@nil Nope still no reputation decrease.
 
user457812
Oh, nevermind, someone went around downvoting all my answers
 
user457812
So that's why my rep went down
 
user457812
Well, that's definitely not kosher.
 
7:35 AM
Hahahaha that sucks
 
user457812
I suppose I should go post about it on meta or something
 
I'm not laughing at that, but that's funny in a terrible way
I'll upvote your question
 
@nil Oh, the system is going to give you that reputation back.
 
user457812
I'm laughing at it :P
 
Hmm, I have a problem. I want an activity to finish() if a user hits 'back' or 'home'. But I can't override the home button. I'd call finish() on onPause() but then my activity finishes on screen rotation. O_o
 
user457812
7:36 AM
Oh, probably, I know there's a script that checks for it
 
There are algorithms that check for such a irregular voting behavior.
 
user457812
I'll give it a couple days, I don't really care all that much about my rep as long as I can answer questions
 
brain asplodes
 
user457812
And since that's free, I win
 
user457812
Any way to check for the conditions of a pause, Glitch?
 
7:37 AM
@Glitch That is a normal behavior. The activity restarts on orientation change.
 
user457812
Either that or throw the call to finish in a queue so it has a delayed execution, then if the app is still running afterwards, let finish run
 
user457812
Which is the hackjob approach, but eh</ValleyGirlFix>
 
heh
I tried to use onConfigurationChanged()
but it doesn't get called
 
Have you read this?
 
Will read it now. I also found this developer.android.com/guide/topics/manifest/…
 
user457812
7:47 AM
Now I'm just curious to know who felt obligated to go through all of my questions and downvote them. Won't know, but it'd be funny.
 
@nil Probably the bollywood nyancat gang
 
I think I had that as well once. For me it was RobinHood back then.
 
user457812
My dance moves were that offensive to 'em? I don't buy that, I'm a bad dancer, but I'm not that bad.
 
user457812
At the very least my nyandance is up to snuff.
 
hi all
If I want to kill all the application in my device, what can I do? Reboot the device?
 
7:52 AM
That's assuming the applications won't start back up on boot
 
user457812
Well, that'll probably kill everything aside from services/apps that run on startup, I think. So yeah, probably.
 
user457812
Oh yeah, do any of you guys want an invite for the Careers thing on SO?
 
@Judy Why do you want to do that in the first place?
@nil I so want one!
That would be wicked.
 
user457812
Qicked is cool too. Don't look down on qickedness.
 
what's this careers thing?
 
7:54 AM
I want to reload the resource for all the application
 
Basically I am trying to get an invite for almost half a year.
 
user457812
@Glitch Careers 2.0
 
hi all
 
user457812
I basically liken it to LinkedIn for programmers with privacy from recruiters and a barrier to entry for employers
 
I'll take an invite then!
 
user457812
7:57 AM
Sent an invite off to the email on your SO profile, Damiean
 
Thanks for the invitation!
 
user457812
@Glitch I need a full name and e-mail address, so if you've got a way to send one privately (if you care about that), that works
 
@nil, after reboot the device, whether is the launcher application also killed?
 
user457812
Well, it's killed necessarily, since everything dies when the device gets rebooted
 
user457812
But it'll get started again when the phone boots
 
7:59 AM
@nil I'll send my details to the e-mail on your blog
 
user457812
Okee dokee
 
user457812
Checks to make sure the e-mail is correct...
 
user457812
Yerp.
 
user457812
@Glitch Okee dokee, check your mail for an invitation.
 
how to reboot the device successfully. I try the two ways: first, use Intent.ATION_REBOOT, second, use Runtime.getRuntime().exec("/system/bin/reboot"), the two ways fail
 
8:04 AM
you will rather don't do that
 
what I can do to implement what I want
 
your .apk have to be signed with product ceritificates
 
user457812
Are you sure you want to have an app that reboots the device?
 
yes
 
user457812
Well, as long as you know it'll anger just about anyone who experiences said reboot.
 
8:07 AM
Umm, so why does your app need to reboot the phone?
 
I want to reload resource for all the application
 
For what reason?
 
If the applications have been started, their resource will not change
 
user457812
What?
 
to Implement the change skin function
 
user457812
8:10 AM
Change skin?
 
like HTC HD sense, which can change the skin of phone
 
user457812
I don't think you can do that unless the phone is rooted.
 
after select a skin, I think should reload the resource for all the application
my aim is to kill all the application which have been started and Launcher.
 
user457812
Well, a reboot would do that, but you should inform the user that it's what they need to do, not do it for them
 
So I think the Reboot the device is solution.
 
user457812
8:14 AM
Well, did you try rebooting your device and seeing if it works?
 
It's much nicer to simply tell the user to reboot. That way they can choose to do it on their own schedule.
 
user457812
'Cause I'm pretty sure you won't get an app like that to work on a device that isn't rooted
 
what the hell nil -54 rep D: was it something you said ?
 
user457812
But if you're targeting rooted devices and you know how to do it programmatically, then all's well, probably (aside from the 'user experience' debate over whether it's kosher to reboot someone's device for 'em)
 
user457812
Not a clue, Reno :P
 
user457812
8:16 AM
I don't think I've said anything odd recently, so all I know is it's funny
 
You made a Objective C room? so someone is mad ? '
 
I don't understand well about 'rooted'
 
user457812
No, haven't made one yet
 
user457812
I'm still not up to 1000 rep even with the downvoting, and I'm in no hurry to do it since I doubt anyone'd use it :P
 
user457812
I figure if I did something bad, someone would report it, so I'm both confused and amused by the situation
 
8:23 AM
@judy, rooting a phone is not something that most people do. I haven't done it. But basically it means to override the built-in operating system on the phone.
 
I'm not sure how frequently does that script run. But since that person has down-voted on your answers anyone with a -27 drop in their rep is your culprit
 
hides his 27 drop in rep
 
I wonder if it was that cry baby guy
The one with rage issues
 
No it is not him but holy hell, every one of them is upvoting on each others answers
 
@ThunderRabbit I can put my application to the system directory, But there is question about permission. So I think I need to take more time to fix it.
 
user457812
8:27 AM
Not sure who that is, the list of people who hate me is a little too long
 
haha
 
I'm going to puke. I was writing my damn IT related history for my Careers profile and then I accidentally close that tab.
ARGH.
 
user457812
Reopen it and see if it saved what you typed?
 
Nope it didn't. :(
 
8:28 AM
@OctavianDamiean You should install Lazarus
 
user457812
Drat
 
user457812
I routinely Cmd+A/Cmd+C whatever I'm writing just out of paranoia
 
 
user457812
Aren't there also scripts to check for that?
 
figure 1 shows surisahani's rep graph
 
user457812
8:30 AM
Well, if any of you guys end up with rep drops, you're welcome to join my club
 
user457812
The thing that gets me though is that they only downvoted 28 of my questions. I've got more than that - lazy gits. :P
 
no9
8:42 AM
@LabeebP are you here?
 
@no9 yup got your invitation. I'm there in that room
 
@Reno subtle. "No, no sockpuppeting here whatsoever, nope carry on"
 
user457812
Just had to manually update Google Chrome O-o
 
Yep, though this is bla8z cross-voting
 
no9
@nil on mac?
 
user457812
8:54 AM
Aye. Auto-update arbitrarily stopped working.
 
no9
It never worked for me. Always that error 12
 
welp, back up to 10 Andriod Chat rooms.
 
They should remove the new ones and cap it to two rooms
Did the nyancat gang start them?
 
@Glitch lol...why the nyancat gang?
 
They're a bunch of hacky developers with the maturity of a nyancat.
And they think they need a room per tear they shed, or something.
 
9:01 AM
@Glitch ohh I just saw the starred comment.
>:-D
 
user457812
Oh nifty, the Sublime Text 2 beta can be evaluated without a license now
 
@Glitch lol I just realised I've go so little rep I could annoy the nycancat gang without much impact if they go on a downvoting spree.
 
Nah it's more fun to remind them how immature they are.
 
user457812
0
Q: different between android opengl 2.1 and 2.2

cihmi use same code to complier on motoxt701 and DHD but DHD is not work the code is about opgl-es with camera. the erroe log at android opengl.glsurfaceview$glthread.run(glsurfaceview.java.1118) open main camera no file-can't switch camera overlay_queuebuffer msmfb_overlay_play error

 
user457812
I'm debating flagging this, but I figured I'd throw it up for opinions on whether I should give the author a chance to improve it
 
user457812
9:11 AM
OpenGL's already a strange beast on Android, it could be a good question, hence my hesitation.
 
9:29 AM
0
Q: How can I retrieve contact events without a year?

David CauntI'm using the code below to retrieve a cursor for events and contacts and it's working just fine for events with a year specified. Unfortunately, events where only the day and month are set are not returned by this query. I have set these dates in Google Contacts for some contact birthdays and I...

Anyone familiar with Contacts?
 
9:52 AM
hi all. I am going home. 88 to everyone!^_^
 
10:10 AM
If I had a dollar for every time I've forgotten to declare an activity in the manifest, I wouldn't need to charge for my app
2
 
:D
 
hah
 
10:49 AM
hi
 
hey
 
howdy
 
I agree, they screwed it all up.
 
I also agree with all the things he said
 
The prodigal son has returned!
 
Pretty poor article in my opinion. It's compilation of other ignorant press articles moaning about Android
Point 1 is nonsense, all software introduces newer features in newer versions. If it wasn't backward compatible, they'd have a valid point
 
ye thats true
 
11:11 AM
They've messed up on opening up Honeycomb source and the phone release, that's a fair point, though at the end of the day it's not that big a deal
ICS will mop up all the mess later
 
Well they've messed up in that there's no quality control
I believe that the official Android market should be similar to the App Store
 
but for now, I don't need the source from AOSP to make honeycomb apps, and I can still make phone apps
 
in the market?
 
Point 2 is a bit of an issue
Samsung especially make a mess, their code is buggy
 
:(
 
11:13 AM
hahaha.. Reno!
 
They make good hardware though. I wish manufacturers would offer a choice of vanilla and custom ROMs
 
I agree with that, excluding build quality
HTC devices feel solid and well built, Samsung devices are plastic and tacky
 
internals are great, GS2 is rapid
 
I was really shocked to see the similarities between iPhone and samsung galaxy when apple sued them :P
and yes, internals are great
 
11:16 AM
I've always said, HTC build with Samsung internals would be great
 
@DavidCaunt I fear removing the back cover of my Nexus S
 
@Sathya a couple of people I've spoken to have told me the S isn't that great, and the Nexus One was a far better device
 
I quite like my Meizu M9.
I disagree, the N1 is terrible
 
@Glitch i agree
 
I'm genuinely surprised that people have bought my app, when it's beta software.
Then again, the next best app is more expensive, and is less functional in its stable form
 
11:27 AM
@Glitch What is your app?
 
I've got a few more features I want to add.
 
Looks useful
 
It's my first app (first programming project outside uni, in fact).
 
what about your website :o
 
11:31 AM
That's great, it's impressive to get something on the market
 
I started it to learn how to program for Android, and because I hated my phone's autobrightness.
 
where are you from, Glitch?
 
@Reno websites are markup and installing already made CMS systems :P
@SheikhAman Australia
 
okay..
 
I'm making ipad apps at the moment :o
 
11:34 AM
I have no interest in making iDevice apps, because all my app ideas can't be done on iOS :P
And I can't justify the expense of buying another phone and computer to do it :P
 
this is my job :o it's not bad but I'm more interested in Android at the moment
 
not just any 'phone' and 'computer' but a highly expensive 'iPhone' and a 'Mac' plus, getting yourself registered in the appstore also eats a lot of cash
 
@DavidCaunt Ahh I see.
I'm working on a first-run set up for my app at the moment
It's not trivial to modify the settings, at least not for a layman
Then I can get to work on the more exciting features :p
 
@Glitch woah neat.
 
Thanks :)
 
11:42 AM
will check it out later at night
 
I hope you like it :P
I've got a support forum too, if you find bugs. forum.vitocassisi.com
 
Yeah developing for iDevices is expensive
 
(well, my old forum made into a support forum :P)
Much too expensive for me
I like the challenge of writing software to tweak Android. You can't do that on iOS. :/
 
Yeah I like the design of the OS and the fact that that you can do more with apps
 
user457812
I
 
11:46 AM
That's what attracted me to Android devices even before I was developing for them
 
o/ @nil !!
 
user457812
Bah, keyboard
 
@Glitch or I could always bug you in here :P
 
user457812
I personally prefer coding for iOS, just because 1) it's not Java, 2) it's not iffy between devices, and 3) the APIs are far less painful to use
 
@Sathya that too :P
 
11:50 AM
 
user457812
If I wanted to suffer through the different versions (that 2.3 never even got picked up for the most part is just depressing to me), wildly different hardware, and trying to support all 300 and growing devices all while using what I consider the worst language second to Perl (Java), then I'd still be coding for Android. :P
 
user457812
There's also the issue of where the actual paying customers are, and it appears Android users just don't like paying for stuff as much.
 
I definitely agree with paying customer issues
I think iPhone owners are more affluent
 
user457812
The way I see it, it's a value judgment on their part: the Android phone was free with the contract, the iPhone wasn't. They want free stuff with their free phone.
 
I prefer working with Java rather than Objective-C though
 
11:52 AM
I disagree, I think there's plenty of users willing to pay on Android, it's just that there's hardly any quality apps
 
user457812
I think it's probably both, Glitch
 
I think nil is closer to the truth - lots of people are getting Android phones that will never buy software
they used to get feature phones
 
user457812
Less paying users, close to no really good apps
 
It's also a different market, people respond better to in-app payments and ads
 
Everyone moans about ads from what I've seen
 
11:53 AM
Yep, in-app payment to piss them off :P
 
user457812
I can't comment on ads or in-app payments WRT other people because I can only speak for my own reaction, but if I see an ad, I uninstall your app and leave a bad review >_>
 
@nil Really? Even if there's a paid version without them?
 
That's not very constructive
 
user457812
Even if there's a paid version without them.
 
That's... lame
 
11:53 AM
But you would sell your own apps without ads?
 
So you only want free stuff?
 
user457812
I download lite versions to see what something is like and buy it if I like it. Show me an ad, you've just pissed me off and I'm going to skip your app.
 
user457812
@DavidCaunt Can and do.
 
That's a bit harsh
 
user457812
I've bought quite a lot of apps for the iPad, and a few apps for Android (lack of quality, again)
 
11:54 AM
I like the iAd concept. It is not as annoying as other ads
 
I was going to put unobtrusive ads in a free version of my own app
 
I think that's poor. People on app stores are so happy (even take pleasure) in rubbishing other people's work just for trying to earn a living
 
but I was also considering just pulling features out
@nil What's your stance on lite versions with missing functionality?
 
user457812
I would rather people go "I like this app even if I won't pay for a full version" rather than have the developer go "you can continue using this app because it has ads"
 
Non-core functionality, that is
 
user457812
11:56 AM
They're A-OK.
 
user457812
I've used a few before buying said apps.
 
I was thinking of making a lite version with no backup functionality
 
user457812
I.e., LauncherPro, some live wallpaper that did that, something else I forgot and am too lazy to look at my phone for
 
user457812
My live wallpaper also does it, and it seems to work out pretty well.
 
yeah I bought LauncherPro because it kept annoying me when I clicked on a widget too long
And I liked it :P
 
user457812
11:59 AM
That said, I'm sort of an ideologue when it comes to ads. I have no problem going "this is my way and it's right," and I have even less of a problem doing what little I can to punish developers for straying from my utterly righteous and holy ways that are not at all fallible.
 
I don't see the issue with unobtrustive ads
 
user457812
Unobtrusive isn't a problem usually, the problem is that when you've got a tiny screen, all ads are obtrusive
 
I'd rather purchase apps than get a free one with ads
 
user457812
In my opinion, most ads are the sort that take up N-pixels at the top or bottom of the screen. That's a portion of the screen that your user is going to either accidentally tap or decide they really want back. A few might think "I should buy this app," but most will progress from "this is annoying" to "I hate this app."
 
user457812
The last thing you want to do is annoy your users, because they are vengeful, mean, and spiteful people when you annoy them.
 
12:07 PM
that has to be a safe model for Android users
Fortunately my app is going for affiliate revenue
 
I hate the Ad placement in Angry Birds. Makes it impossible to play.
 
You can allow user to switch off ads in application settings while applying to their conscience. Some users will decide to leave ads running (because they know that it earns your bread and butter).
The ones that won't - won't.
 
True
My way of tackling this is to (on my stable release) make 10% of profits go to a charity
 
user457812
That's also a plausible way to do it, but you should be very careful about pitting their conscience against their patience.
 
so they feel like they're doing something good
Not sure which charity yet
 
user457812
12:10 PM
I recommend Child's Play, but that's just my preference
 
Interesting
I was thinking of something more to do with medical research
 
Pharmaceuticals, oil and guns are the best businesses in the world. That makes use gun loving driving junkies.
(-
 
I read an interesting article about how things could be different if instead of spending money on treatments, a lot more was pumped in to research
 
user457812
My parents did a really good job of making me paranoid of driving, drugs, and guns then O.o
 
For example, in the UK at the moment, the amount raised by charities is a very small % of the government's healthcare budget
 
user457812
12:16 PM
I think the problem a lot of people face is that there's a lot of different charities for medical research, and it's far less tangible to them than treatment is
 
@DavidCaunt That would be good for people, but not for shareholders.
 
In the UK, we have a public healthcare service where it is less of an issue
 
user457812
Someone's rooster is crowing outside.. that's my cue to go to sleep
 
though any gains through research would clearly be of interest to the whole world
 
I'm interested in how many people are actually donating to charities. Here in Ireland we have lots of local charities that goes straight to the local hospitals.
But that is different of course.
 
12:19 PM
a good stat i saw was that in the US, those earning over 200k/pa were donating 9% of their earnings to charity on average, compared to less than 1% in the UK
the age of the philanthropist
 
9% is quite high, now how many % do actually earn more than 200k/pa
 
I think I might go with the Australian Heart Foundation
 
A global charity might be more appealing to your audience
 
true
 
 
1 hour later…
1:32 PM
Hullo
 
hello
 
hey
 
Whats up?
 
 
3 hours later…
4:27 PM
Hi.. can i ask here a question about comilation problem i have?
 
4:39 PM
no.
just kidding, don't ask if you can ask. Just ask
 
5:17 PM
hm.. did I scare him off?
 
(-.
 
01:00 - 18:0018:00 - 00:00

« first day (269 days earlier)      last day (4683 days later) »