« first day (1449 days earlier)      last day (3514 days later) » 
00:00 - 22:0022:00 - 00:00

12:00 AM
posted on October 03, 2014 by Android Developers

By +Wayne Piekarski, Developer Advocate, Android Wear For developers using the Android Wear APIs in Google Play services, it is important to correctly handle all the error conditions that can occur on legacy phones or when users do not have a wearable device. This post describes the best practice in handling error conditions with the GoogleApiClient connect() method. If you do not implement t

 
12:29 AM
@RaghavSood if you're around, could you check this, please? chat.stackoverflow.com/users/2826905/zohreh?tab=recent
A:Q is decent but can't read most of the chat messages
 
user457812
12:48 AM
God damned gnat-infested hell outside right now
 
? Rain?
 
user457812
Also a ton of aphids.
 
user457812
The latter's not really that weird because they're just kind of a given.
 
Had to look up aphids, neat-o.
 
user457812
Thought aphids were common knowledge.
 
12:51 AM
I am not common.
 
user457812
At any rate, aphids are a significant pest problem for crops.
 
I thought I knew what they were and I was kind of close.
 
user457812
They're like tiny locusts that ruin stuff far more frequently than anything else.
 
I am so far removed from all this you can't even imagine.
It wouldn't even cross my mind that locust could still be a problem in 2014
 
user457812
I live in a rural area where most people are farmers or born into farmer families and destined/doomed to become farmers because that's what happens
 
12:53 AM
Interesting, would like to visit an area like that once.
 
user457812
Locusts aren't a huge issue here, as far as I know, but they're a problem in other regions of the US and other countries
 
user457812
Easy way to visit a place like that: go anywhere in the US that isn't big.
 
user457812
If it's not mining, it's farming.
 
user457812
And if it's not farming, it's probably coastal or a large city that become a trade route
 
Oneof those towns you see in the movies, with a water tower and train crossing, one main road that goes through the town.
 
user457812
12:54 AM
Sounds like my town.
 
Where when you go to diner people know you and you have seen the waitress before.
 
user457812
Except we're more of a tourist location as well, so it's fancy.
 
user457812
Nobody knows me even after 14 years of living here, thankfully.
 
user457812
Well, 10 years. I lived in a few other places in Idaho.
 
I have no way of getting to these places really. I am also little scared. I hope next year I will get to cross of the rest of the states, and it's the middle ones, so I will fulfill my dream I think.
 
user457812
12:56 AM
Just keep in mind that most of the US is kind of a cesspit.
 
user457812
Most of the middle-US is just wasteland.
 
That never leaves my mind.
 
user457812
Wasteland that people for some reason settled down in.
 
user457812
Like Arizona.
 
Most of my surrounding feels like that too.
 
user457812
12:57 AM
You'd have to be a sadist to live in Arizona.
 
Utah
 
user457812
That too.
 
Arizona is very harsh too.
It has a charm to it.
 
user457812
Also, most of Texas is awful.
 
And you get a lot of land for the money.
 
user457812
12:57 AM
Partly because of the politics and partly because it's just lousy.
 
Still haven't seen Texas, but can imagine.
 
user457812
Austin is nice, Dallas is passable, everywhere else can sink into the ocean
 
Vegas is bizzare
That place should never exist by any law of nature of physics.
 
user457812
I went there once when I was 14 or so and decided I never want to go back
 
user457812
The only thing I really remember is the Bellagio fountains, the stripper cards stuck in ash trays, and the damn noise
 
1:00 AM
I only went one so far too, and I thought I never have to go back, but now I think I will go back, at least once. I like how it's an island in the dessert.
 
user457812
Oh, and I said nobody recognizes me after 14 years, but apparently the guy at the local pizza place has memorized my name and number because I'm a frequent customer now.
 
user457812
Kind of like how I'm well-known at Starbucks. >_>
 
user457812
Which isn't really bad since the people who work at the local starbucks are awesome.
 
<--- AZ native / sadist
 
hehe, I think the only person that knows me is the UPS guy, the laundry girl. :)
I have lived above this guy, in a 3 apartment building for over 2 years now and we still haven't met.
 
1:09 AM
I'm off folks. Y'all take it easy now.
 
Later
 
user457812
@nana I lived in an apartment for four years and only knew one guy below me who moved out after half a year.
 
user457812
In other news, my PS/2 cable didn't arrive today.
 
Well congrats
You should have driven to BestBuy a week ago :)
 
user457812
1:11 AM
I'd rather save the $12 on the adapter
 
user457812
That $12 went into the Lambic I bought today
 
Ok, I take it back.
 
user457812
Also pizza. Because I ordered pizza.
 
later guys
 
Later Dave
 
1:14 AM
See ya, Dave
 
Looking at your own code that someone butcherred is sad.
Clash of philosophies. Minus the comments..
 
 
1 hour later…
user457812
2:18 AM
My CEO somehow ended up in my driveway today. Side effect of a small town.
 
:) Is he the only other employee?
 
user457812
No, one of his friends lives around here
 
user457812
I have an idea of who it is
 
user457812
Can't see the house numbers at night, so eh
 
Is 1000 loc for an activity too much?
 
user457812
2:20 AM
I'd say it depends more on what the code is doing.
 
user457812
And whether it's all one method.
 
user457812
Chances are, some of it could be moved into smaller classes
 
23 methods
5 classes
 
user457812
If you have inner classes, make them not inner classes.
 
34 fields
All 5 classes are inner classes.
 
3:21 AM
Good evening, Android!
@nana How many lines are devoted to each inner class?
 
Evening, let me count that for you..
Around 30 lines each
 
user457812
Inner classes are bad from a memory management standpoint.
 
user457812
Especially inner classes of contexts and things with references to those
 
These are inner classes on Activity
 
Those are getting long enough that you should probably pull them out
 
3:27 AM
The whole file needs to be refactored.
But I agree
Right now I need to figure out why are network calls failing...
So either find aa way how to funnel traffic from router for one specific IP through the computer where I can funnel it through Fiddler or WireShark, or ...
.. I gues Just run it in GenyMotion, unless ...unless there is a simple way to pass all trafic through ADB
 
I've never done any network programming on Android....so can't help much there.
 
user457812
4:10 AM
All I know is network stuff on iOS is nice and Android's apparently hell on earth
 
It is
I know I had issues hacking it together last time a year ago.
 
4:30 AM
good morning peeps
what up
 
Morning! What are you doing up this early on Saturday?
 
hello, Ahmad!
I'm catching up on some world news...Jon Stewart is awesome
 
4:57 AM
I'm on my way to Bremen, @nana
 
One of those Hackathlons?
 
yuup
 
cool
 
:D
 
I am fiddling with all the wireless devices I found around to build some sort of a onitoring system.
 
4:59 AM
lol
your own security system?
 
More likely unsecurity system. I want to be able to sniff any traffic from my wireless devices
 
uuh that sounds like an interesting project
 
Great take on the media's hype and legislator's call to a response to threats from ISIS and ebola, but unwillingness to respond to the bigger threats of heart disease, gun violence, etc.
 
how are you sniffing the packets?
 
5:12 AM
I am not yet. But I have two devices in front of me.
USB wireless client that can be switched to AP mode.
But the drivers are shitty for linux
That's TP-LINK TL-WN822N v2
Then I have USB3 to Gigabit Ethernet Adapter and TPLink WR-703N, so I was thinking about linking those two together, and configuring the TPLink to run as AP.
Then I'd just connect the phones/tablets to the AP, which would be routing all traffic to the outside while WireShark is listening on everything.
 
5:36 AM
0
Q: How to create video or ppt presentation for my android application

user3651987I want to create video presentation or else show complete flow in ppt for my android app,is there any tool or way to do so.If any one know please let me know. Thanks

 
6:01 AM
Aah I see, fu
:D
 
6:17 AM
Time for bed, good night guys.
 
6:35 AM
night fu
 
Ahmad, nana is Fu sensei ?
 
6:57 AM
yo
 
7:26 AM
yo
 
7:45 AM
what are you up to code?
 
 
2 hours later…
9:55 AM
Who changed this rooms description?
Those commas are in... interesting places.
 
Huh. The description does seem off
 
Someone's upset me thinks!
Oh yeah, remember Switcher Raghav? The guy that 'borrowed' the idea owns a Corvette now. I guess it was a good idea afterall.
 
Hahaha yeah
I've got him on my Facebook now
Turns out he's also part of the rather large hackathon network
He's made a bunch more stuff since then
 
Yeah he lives in the US, so he gets all the good stuff
 
Works at Yo now
 
10:04 AM
Somehow I don't suspect that company will last long
 
Even the guy who won WWDC's scholarship last year and moved to the bay area drives a merc now
He's just about the same age as me
 
I can see why people leave Australia. There's no money here outside mining, accounting and politics.
 
Same for India
In USA, I could charge thousands for a few days
 
And a house here costs close to a million dollars in the outer suburbs
 
Even more here :P
Real estate in Delhi is absurdly high
 
 
1 hour later…
11:17 AM
@Glitch ikr?!
that motherfuc*er
lol
I didn't know you could make so much money with such apps.
 
11:41 AM
I made quite a lot on Lux last financial year
 
 
2 hours later…
1:43 PM
@Ahmad Working on a wear app?
 
yeah, how'd you figured?
 
GitHub stalking :P
 
lol :D
 
Got a wear device?
 
nope I haven't got one :/
but I've got an emulator!
lol
 
1:45 PM
I guess that works
 
I'm actually only working on the backend
another guy's woking on the app itself
 
So, who's familiar with parse?
 
2:08 PM
what do you want to do?
 
I used to be...
o/
 
I'm tempted to get a moto 360 from teh US
 
Send data to server, have server compare some floats, send a list back
Moto 360 starts selling here in about a week
for ~$300
 
I think you could do that with Cloud code, right?
 
I think so, but I'm not sure I'm understanding it right
Going through their Anywall example for now
Seems to be similar to what I want
 
2:28 PM
There are times I really hate the spatialite library for Android...
It's better than nothing, or writing my own, but...
 
Moto 360 is selling in India already?
 
yes they started to sell out
 
2:46 PM
@Glitch Next week onwards
 
O_o
but not Australia? That's weird.
 
They like us more :P
 
Send me one kthxbai
 
I can actually get one and ship it to you if you're willing to pay :P
I'm personally going to get it form USA somehow
 
Nah, US is cheaper for me too
 
2:49 PM
Cheaper by about 15%
 
$310AU delivered with a forwarder
 
That's what I thought with my OnePlus One. Until customs charged me a ton :/
 
Not an issue in Australia
free below $1k
 
Ahh. Limit here is like $200
And on electronics duty goes ~30%
 
@Glitch It came from a guy's profile that was on a rant on meta about a week ago. If you saw that post, it was very funny. I will have to see if I can find it. He used a lot of big words to say nothing
 
3:00 PM
lololol
 
Ah, wasn't from his profile
Pls., don't get it wrong. The message is not about anyone's attitude to a downvote. The issue is, that StackOverflow declares some Netiquette maxims be constructive, and others but does not promote them. You call it a noise. Why? Gamification without Netiquette both in mind & in action just creates an anonymous-silent-click-ing pathology. Many online portals suffer once such a sub-culture grows and starts to dominate. There is no "Noise" in asking for expressed argument for (down)-voting. If StackOverflow values just-opinionated votes more than an argument, there you go.Not me — user3666197 Sep 30 at 15:45
If you need a break and want to laugh, read through his comments on that post
The old description has been preserved so everyone can relax about that
 
3:58 PM
Hi all
Are there any UI frameworks for creating native android apps... like we have for web applications
 
android.widget?
 
no... I mean like bootstrap, foundation etc
 
You have a ton of libraries for most common stuff
 
are there any for laying out UI?
 
4:05 PM
isn't there anything that could make life easier!!!
 
Whiskey
 
;(
 
Plus there are tons of libraries depending on what you want google.com/…
 
@G.Akshay Interns
 
:D
 
4:11 PM
Hey buddies
 
Hmmm thnx @codeMagic
 
Hey, buddy
np
 
Which one do you prefer for code injection??
1] Robo Guice
2] Android annotations
3] Butter n knife
 
I use 3
But 2 is very advanced
 
ok, hows ur experience with it uptill now
 
4:15 PM
I use it with AS very easy .. and developement become fast
 
what do u use @RaghavSood @codeMagic @TGMCians
 
There are a plugin available with AS to use with butterkinfe
 
Please, no unnecessary pings, Akshay
I don't use any of them, really
 
Me either
 
/me never used anyone which you listed
@Abdellah really how ? I want to use it then
 
4:24 PM
Good, afternoon, people.
 
o/
 
@G.Akshay for code injection I would recommend Dagger
 
TGM, this is the plugin to use for butterknife plugins.jetbrains.com/plugin/7369
 
ok I will try sure. thanks
 
4:31 PM
Welcome
 
Why would I want to inject code? Am I missing out on something awesome?
 
"Not writing code" is what you're missing.
 
I mean what do you inject?
 
Boilerplate code
 
Emm Dagger is for architecture stuff
 
4:34 PM
Just popping in before I head out :P
AFK again.
 
I guess I'll have to read about it.
Can it save me work?
If yes I want it.
Is it difficult to introduce into an already semi-large project?
 
@Abdellah architecture code?
 
Yeah
 
You mean code that it is not part of Android?
Code that you write?
 
Exactlly
 
4:38 PM
Yeah, I should have been more explicit
AndroidAnnotations + Dagger seem like a good combination
 
(Y)
 
If I recall correctly AndroidAnnotations is compile time generated code
 
I really like to play with this new magic (Butter Knife)
 
We use RoboGuice at work, which is runtime generated
 
recommend which is best ?
 
4:40 PM
Yeah, I created a very simple ButterKnife clone to understand the magic
Roboguice is not recommended by Google because your code is inspected at runtime
And it slows your app down
 
ok thanks! what about others ?
 
TGM, All JW lib is Nice
 
yeah I forgot :D
 
But between androidannotations is very deep than BK
BK is only for ui stuff instead AndroidAnnotations is used for ui + threads, background tasks,..
 
ok thanks I will try in current project
 
4:47 PM
(y)
 
Yes
 
4:59 PM
what you guys do in app when unfortunately your server is down ? simply toast message or any screen. I am looking for some screens sample for that.
 
5:14 PM
Blame my users for using my server too much, of course
Toast: YOU CAUSED THIS, YOU UNGRATEFUL LOT
 
:)
I just toast them.
 
hehe Raghav
 
user457812
5:48 PM
I feel like I should get donuts today
 
user457812
Are donuts a good idea?
 
user457812
I think donuts are a good idea.
 
user457812
I can't imagine a world in which donuts are a bad idea.
 
6:01 PM
Hmmm donuts. Don't be giving me ideas.
 
Ohh donuts i love it
 
@RaghavSood have you worked with the android wear emulator?
 
Nope, sorry
 
okay :/
my wear emulator doesn't connect to the internet :s
 
lol
when is Google going to buy Genymotion?
 
6:14 PM
Hi
 
3
A: Does Android Wear support HttpURLConnection - getting EOFException

matiashUnfortunately, no. Android Wear applications cannot directly access the Internet. They must communicate with their corresponding handheld app (either via MessageApi or DataApi) and request that it executes whatever HTTP requests you need.

shit
 
3
A: My java compiler is broken. I need help fixing it/reinstalling it

Code-ApprenticeThese errors show a problem with your code, NOT the compiler. First of all, you should NEVER name a class String. This is the cause of most of your errors because Java sees your class named String and can't then use the standard library class with the same name. Second of all, word = String Rep...

 
look at this one Ahmad:
0
Q: Sleep Inside onItemClick

Csabi VidóI want some delay between two thing inside an OnItemClick,but actually nothing happens. If I run it, and click ,everything stops as long as is set the sleep, then it changes the pic at the same time.I would like to change the first pic. then Sleep then change the other. gv.setOnItemClickListene...

 
Why would someone assume that their compiler is broken when they get compiler errors?
 
beautiful Thread.sleep() on the main Thread
@Code-Apprentice frustration....being a noob.... you are James Gosling...
 
6:27 PM
I was a noob once, too...and I don't recall blaming the compiler for errors in my own code...
 
@Emmanuel Hopefully soon.
Seriously, there must be a simple way to debug network issues with your app, right?
 
What kind of network issues?
 
That'S what I am trying to figure out. I'd like to be able to see all the traffic coming in and out of my app.
Trying to figure out if it's achievable with DDMS.
 
if you are using Retrofit, you get meaningful logs
otherwise, Wireshark or the like
 
6:42 PM
I used Wireshark before, works great when using emulator.
Now I am trying to redirect traffic from the Android device on the router to my computer where I could use wireshark and then let it out.
I'll just wait till Monday I guess, I should receive USB-Wifi card, which I will then set up as AP and then use Wireshark without the need to redirect anthing.
 
I think you can monitor all traffic on the network
why do you need to redirect?
 
Because the phone is connected to the router wirelessly and then it goes straight out to the internet.
My PC is connected to the router too, but the traffic from the phone is in no way funneled through it.
I think I'd have to be sitting right in the middle to be able to listen in on the traffic.
Charles works great, but I think they want $50
 
I have used Wireshark to see the traffic from my phone...
 
Maybe I should just buy that, I can't get Fiddler to work properly.
What was your setup like?
 
Fiddler worked for me in the past. I use Charles now.
 
6:50 PM
Modem<----->PC <----->AP ( ( ( (( Phone ?
Did you buy it Adam?
 
what is AP? lol
 
You set your PC up as a proxy using Fiddler or Charles, direct your phone's wifi connection to it.
 
Access Point
 
You don't have to touch the access point.
 
I just connected my phone to my WiFi
 
6:51 PM
/ Router
 
and my PC
 
Just put your computers local IP address as the proxy address, along with the Fiddler port... 8888 I think.
 
fired Wireshark
 
You'll need to set up the SSH cert on the device as well though.
 
set it to something like "spy mode"
and I saw everything
 
6:52 PM
I did, but it looks like the linux version generates wrong CA cert
 
Oh, dunno about that then.
 
So I got the plugin to generate one that supports Andoid and iOS and tried to run it in Wine but after many tries I think I failed.
 
Pretty sure I downloaded the cert from the Fiddler site somewhere.
 
Afaik, it generates the certs on the fly, but then it links to your private root CA or something, I am not very good with SSL
I'll try the trick with Wireshark too. Good thing about Charles is that it seems to be able to decode the secure traffic too.
 
7:01 PM
@nana What I am talking about is "promiscuous mode"
 
mitmproxy is far easier to setup, and easier to read, imo
 
Easier than?
I am looking at MITM now.
 
Wireshark etc.
 
Ha ha ha
0
Q: Material Design hamburger icon

pieri need to implement the new Material Design hamburger icon (the navigation drawer icon) and i'm wondering what's the best way for doing it.. someone can give me some tips? also, is it possible to download the official new hamburger icon? or i have to draw it myself?

 
what is the hamburger icon?
 
user457812
7:39 PM
I gots donuts.
 
Can you send data from the wear to the phone?
 
user457812
Half an apple fritter and I'm pretty sure I feel sick now
 
Omg
Parse has specialises ParseGeoPoints <3
 
I don't know how to load stuff on the phones internet connection and then send it back to the wear
 
They literally did half my app for me just now
 
user457812
7:45 PM
Going to copy example code for the other half?
 
user457812
Can anyone think of a good reason for me to not order a Unicomp keyboard? 'Cause I think I'm going to do that now.
 
Nah, the other half needs to be custom rolled
But it shouldn't take too much effort
 
huh I am unable to capture screen of my device from android studio
oh it's bug
 
8:04 PM
What version of AS are you using?
This appears to be fixed in 0.8.2 and the latest version is 0.8.11
unless there was a regression of course...
 
0.8.0
 
update already!
 
I haven't updated it
 
user457812
> Attention crew. Paper is illegal. I have confiscated all paper bins in response.
 
8:37 PM
Just tried out google glass
interesting
you have to get used to it
was kinds blurry for me
but I'm impressed by how light it is
 
@Ahmad You might be needing glasses
 
hmm my eyes are quite good actually :s
 
user457812
Still don't really care about glass. Or smart watches.
 
the last time I was at the eye doctor (a year ago) I got the result 0,5 diopters for the right and 0,25 diopters for the left eye
which isn't really bad
 
Enough to make a difference with glass :P
 
8:44 PM
hmm true as well
 
user457812
8:55 PM
Not sure if I should watch Men in Black 3 or Fifth Element
 
user457812
Settled on MiB 3
 
9:10 PM
@Ahmad I think I have around the same and I have glasses for that. Everything is HD now.
 
9:27 PM
@RaghavSood Thank you for the mitmproxy suggestion it works wonders wit pretty much no setup. Love it!
 
00:00 - 22:0022:00 - 00:00

« first day (1449 days earlier)      last day (3514 days later) »