« first day (1266 days earlier)      last day (3695 days later) » 

9:00 PM
anyone know what import i need for setVisibility?
and View.Visible
 
what do you mean?
if you are using the View then it should already have it
 
should just be
import android.view.View
Yep
 
hm that's what I did, odd
 
What View are you trying to use it on?
 
a WebView
 
9:03 PM
And it can't find the method?
Also, it's View.VISIBLE
Constants are all caps
 
ahhh that's what it was, was reading the error wrong
 
ugh, just realized fontFamily is API 16 and I support 14
probably going to have to find some weird work-around now :/
 
user457812
@erebel55 ... Hello, erebel
 
user457812
You sure show up in a lot of places I am.
 
haha dang its cow
 
user457812
9:08 PM
I need more coffee
 
@trevor-e fontFamily and API 16?
nope
you can use the fontFamily attribute from API 1 on
 
I'm getting a Lint warning about it
I'm using sans-serif-light
which might only be >=16
 
Yeah the fontFamily itself is only available from API 16
but not the attribute
 
so I just can't use it from XML?
 
Yes
It will be ignored in earlier versions
 
9:17 PM
ah ok, I'll just create a custom view then
so dumb lol
 
21
A: Use Roboto font in app with minimum API level 14

Ahmad Is there a way to use Roboto without including the Roboto font as an asset? No there is no other way of doing this for API 11<. I usually create a custom TextView for the Robot typeface: public class TextView_Roboto extends TextView { public TextView_Roboto(Context context, Attr...

 
user457812
A: yes, put it in raw instead of assets
 
user457812
chuckle
 
is there a difference?
 
user457812
Yes. One's in raw and the other's in assets.
 
9:19 PM
that mentions API11
do I still need to hunt down the asset for 14?
 
user457812
No.
 
user457812
Just use the [sans-]serif/etc. fonts.
 
i'll give that a shot
 
Hmm I'm just realizing there's a lot wrong with my answer
Never mind, ignore that I posted it.
However, Roboto should be natively available for every android device that runs API 16+
 
user457812
Just use system fonts.
 
user457812
9:21 PM
If you must specifically have a font, then you ship with it and use it regardless of API level
 
why wouldnt you just include the font files? its nbd
 
it's a system font
so I assumed I wouldn't have to include it
sans-serif-light
3
Q: How do I use native Android OS 4.1 Roboto font in Eclipse, API 16 (fontFamily)

jayseattleWith 4.1 jellybean, Robot has started to make appearances throughout the system UI. I would like to use the new attribute 'fontFamily' within Eclipse as documented in the Font Families section of this page: http://developer.android.com/about/versions/android-4.1.html#UI The goal would be to use ...

I think this will work
 
user457812
In Eclipse?
 
user457812
wat
 
no, just how he created the typeface and set it
bad question name
 
user457812
9:25 PM
People are way too focused on their IDEs.
 
Hey Nil, what's up with the name thing?
 
user457812
What name thing?
 
You name thing is a name thing not a nil thing.
 
user457812
I changed my username to my real name.
 
I was out for a week or so and suddenly you have a name?
Do you mind if I still call you Nil? Or should I address you Noel now?
 
user457812
9:26 PM
Don't really care.
 
import android.app.Activity;
 
k, cool
 
but i'm still getting cannot find symbol method setContentView(android.webkit.WebView)
and address noel by cow
 
user457812
I don't think anyone can help you with compiler errors without seeing code, erebel.
 
k
 
user457812
9:28 PM
Nevermind that compiler errors are the easiest errors to fix.
 
user457812
That's not an Activity.
 
^
 
user457812
And you're not calling setContentView on an Activity instance.
 
oh
 
user457812
9:30 PM
Also, this → public static WebView webView; ← is probably going to create hell on earth.
 
yea static variables can cause pain in Android
 
user457812
The upside is you're explicitly using the application context. The downside is it'll still probably leak an activity context.
 
user457812
You should just use intents to open pages.
 
arg
i'm trying to do a facebook like button
so to fix my compiler issue i need to do activity.setContentView(webView);
 
wow everyone at my office left early today except me
kinda creepy being alone in a big office
 
user457812
9:34 PM
Check your back for a paper "chump" sign
 
that worked, thanks cow
 
cow? lol
 
lol
 
Noel Cower
is cow to me
lol
 
Hello, Android!
 
9:44 PM
ok, time to leave. cya all.
 
cya
 
can't create handler inside thread that has not called Looper.prepare()
weee
 
I bet you are calling something that is asynchronous inside an AsyncTask's doInBackground()
 
do i need to make my class implement runnable?
 
setContentView() should be called inside an Activity's onCreate()...
 
9:53 PM
oh
but my activity is already created
 
yes, if you want to create a "like" Button, you should extends Button...
or View
but I do not know why you are using a WebView
please vote to close
0
Q: Do the app stores still allow a app icon that just opens a browser and displays responsive site?

tvenWe are a small startup converting our site to responsive. And we would love to have a native mobile app. But right now we dont have the resources to do it right now. Question is, do the app stores for ios and android allow dropping an app icon that opens a browser and send the user to a site wit...

I do not know who would upvote this...
 
user457812
@Ahmad re: the cow thing, erebel and I have both known each other since we both used BlitzBasic/Max years ago. He apparently started calling me cow at some point.
 
i need a webview to show the facebook authentication stuff
i'm not worried about the button aspect now
i'm just trying to create a web view that opens a url
 
user457812
Except he still uses Blitz (even if Monkey is not officially called Blitz, it's still Mark's thing and based on it, so it's Blitz).
 
Can someone help me? It's about android accelerometer
 
9:58 PM
5
Q: Android How to like a post with facebook 3.0 sdk

Giulio BiderI want to implement "Like" option in my Android app, but I don't know which Request to use. I have a valid facebook Session opened and the ID post I want to like. How can I implement this function? Thanks

 
does that require the fb sdk?
 
yes
 
i'm trying to avoid using the sdk
which is why i'm using a webview
 
why?
 
cuz it's gay
 
9:59 PM
is it possible to reset the accelerometer? because I'm using landscape mode and that makes the accelerometer start at -0.7 ...
 
I can agree that it sucks
have you seen simple-facebook?
 
nope
 
it still uses the SDK, but it is simpler
you know your SDK sucks when people have to make a simple version of it
 
it looks a lot nicer
but i would still just rather do it with a webview
 
user457812
FYI, calling things "gay" is a good way to get me to ban you
 
10:05 PM
lol
not going to go down that road
so i'm trying to make my webview visible from my activity that is already created
do i even need setContentView?
 
user457812
I haven't seen nebulae in a while. Wonder where she disappeared to recently.
 
or do i need a new activity?
 
so if I want to add a "share" feature to my baseball card app, you would recommend simple-facebook rather than the trying to use the native Facebook sdk?
 
I'm back!
 
hi
 
10:09 PM
Miss me?
 
no
=p
 
Gee...
I feel loved...
 
user457812
smacks Karl
 
user457812
Pay up.
 
Why is it all my pics just kill the chat?
 
10:15 PM
Maybe its a sign @Karl.
 
:(
<Sniff>
 
Bad omens are nigh!
 
nigh?
 
yes.
 
Don't know what nigh means
 
10:17 PM
... google it?
 
so how can i do activity.setContentView(webView); after the activity has been created?
 
why are you changing the contentView?
 
i'm just trying to show my webView
 
Don't do that in a public forum!
 
from what I understand, you should only call setContentView() once in onCreate()
you probably need to make another activity with a webView
 
10:19 PM
okay, yeah i think that is what i'm missing
 
...
...
 
what did you say about posting pics here? =p
 
Testing...
Hey! It worked!
 
@noel Ah I see
 
10:36 PM
 
now you're getting the idea Karl
 
OK, I'm out of cute pics...
 
0
Q: How to find bitrate / resolution of youtube video in android ? Are there any APIs?

user3499908I am trying to get the resolution / bit rate of youtube videos . How can do it on Android ? Is there any client available ? Are there any APIs I can use ?

How lazy can one be?
Can't he just search for "youtube API"?
 
10:54 PM
I'M GOOD!
 
?
stop writing random things
 
I KILLED the chat
2 pics. DEAD!
 
Hello, folks! I'm back!
 
I'm so tired
oh hey cM
I'm going through python's standard lib: hg.python.org/cpython/file/tip/Lib
It's funny that they don't follow PEP8 in the codebase
 
You've done a lot of python, haven't you, Ahmad?
 
11:07 PM
@LiamWilliam Welcome. Please read the room rules.
 
I'm hoping to find time to work on back end stuff soon but not sure what I want to use
Been awhile since I've done much of any. So, taking suggestions
 
Go for python
Definitely
You'll love the language
 
I was considering that or Rails (mostly just because my brother has been getting into it lately)
 
Python is just awesome
 
I'm not sure I like the Rails syntax, from what I've seen
 
11:08 PM
Look through the standard lib
 
Hmm...maybe I will give it a go
 
python is really readable
 
Got a good starting point?
 
Learn python the hard way (the book)
 
What's the hard way? That doesn't sound like fun
 
11:10 PM
I read through that book when I started
 
Is that really where you think I should start or are you sending me for a ride
 
it's not actually hard though lol
 
I know how tricky you can be
Ok, thanks. I will give it a try
 
Lol
No, I mean it
The book is a good starting point
 
I thought about relearning PHP because I might need to for work (assuming I stay there long enough)
But I don't really want to
 
11:11 PM
You shouldn't either
 
Haha...Ok, will do
 
I've done some stuff with php before I (re)discovered python
I was basically in love with it for a month
but looking back
 
I haven't done **any** web stuff for awhile but I think I should start again
Last stuff I did was just a little bit in Cold Fusion
 
I think I wasn't in love with the language but the new platform I was discovering (the web)
 
Ah
 
11:12 PM
Because the language php sucks
 
It seems like a lot of people in here love python so I should give it a go
 
user457812
I've never seen the appeal of web dev.
 
user457812
I just don't understand how anyone could enjoy it.
 
And Ahmad likes it...that's all that really matters to me :P
 
^^
 
11:13 PM
I hate it, nil, that's why I haven't done any for a long time
But I think I should build some more experience in it
 
Why not nil? As long as I'm not involved with the front end side of things
 
user457812
Because what's there to do?
 
Being able to build the backends for your apps is nice
 
user457812
Write another social network, blog platform, or storefront?
 
user457812
Oh, or a wiki.
 
11:14 PM
Same goes for any platform
 
user457812
You could try to build a desktop-like thing as a web thing but honestly it's going to be worse as a result.
 
Sure, but I prefer not to have some things as native apps on my mac
For example, my email client
 
user457812
It's like saying, hey, let's give up filesystems, performance, speed, the ability to do things in realtime, etc. and write a bunch of crappy disconnected systems
 
user457812
What's that the intern accidentally nuked the production db oh no
 
haha :p
 
11:16 PM
@Ahmad Mac's client vs Microsoft's Outlook…. Which is better?
 
user457812
Which Outlook?
 
Like said, I prefer to not have a native email client
 
I don't use any…so...
 
So idk
 
user457812
If you throw "vs Eudora" in there I'll just pick Eudora.
 
11:17 PM
Never even heard of Eudora
 
user457812
I prefer native email clients because I happen to like hotkeys that respond to things and not requiring a connection to view my email and not having ads and all that other stuff
 
Okay you got me thinking. What else is there that I'd prefer to have as a web app and not as a native app..
 
user457812
Probably not much for me.
 
…Sorry
 
user457812
I've seen people try to build writing tools as web apps but it turns out that they all suck because they don't play nice with OS text editing hotkeys.
 
11:20 PM
Definitely not my IDE. I don't get all these code-in-the-cloud bullshit services that are popping up lately.
 
user457812
Also because browsers are slow.
 
user457812
Like, they're faster than they used to be, but for dynamic content they're a nightmare, and modifying tons of text is definitely in the dynamic content area
 
user457812
Atom proved you can't have a Sublime Text-like editor in a browser, too.
 
Are Browsers faster, or the feeds for them?
 
user457812
By trying and failing, anyway.
 
user457812
11:21 PM
Feeds?
 
True nil
 
The connection to the 'net
 
user457812
What's that got to do with browser performance?
 
Atom is a disaster
 
user457812
I'm talking about rendition, layout, the javascript VM (which is single-threaded because nobody planned for multiple threads on desktops back then), etc.
 
11:22 PM
Computers are faster, so any program that runs on them are faster...
Data from the internet is getting to people faster...
 
That sentence makes no sense
 
Which?
 
Well, both actually
I'm too tired to even type anymore. I'm off. Cya'll.
 
mozilla used to be fast
hi ahmad, bye ahmad
 
See you later, Ahmad
 
11:24 PM
A Browser on my 3.6Ghz machine will act faster than the same on on my 2Ghz server [Assuming everything else is equal]
 
user457812
Mozilla might be the fastest browser I've got right now
 
Or worse, my 1.4Ghz Netbook...
 
user457812
Chrome's probably the slowest
 
it depends where the bottlenecks are karl
 
user457812
I remember when Chrome used to be fast, but they tacked so much crap on that it inevitably became slow as hell
 
11:25 PM
you could have a program that runs equally as fast on a 3.6GHz as it does on 2GHz
 
user457812
Firefox had the same issue, but they've been pulling crap out of it
 
user457812
Now Firefox is probably the fastest, Safari's second-fasted by virtue of Apple controlling WebKit and being able to optimize for their specific hardware, and Chrome's slow as hell in weird areas
 
firefox is using 4x more memory for me to have chat open
maybe 2x would be a more fair assessment, since chrome splits its processes
 
Here. We mostly use IE [which nobody even mentioned]
For some reason, everybody seems to be anti-IE, but I really don't understand why...
 
11:35 PM
3 Laptops, a desktop, and a Winders server. All run IE the most. My Mac, well, safari. All have at least one other browser on them, but most are not used...
 
the first thing I do is uninstall IE
 
hello lads.
 
Why?
 
Hey, ed
Because IE sucks
 
hey man.
been a long time lol.
 
11:43 PM
What's wrong with it?
 
It seems considerably slower, at least for me, than most others for one thing
I'm a MS user for most things, at least at the moment, but that's one thing I won't use if I can help it
 
The only machine that we don't use IE is this one [Snow Leopard]
 
Have you ever used another browser?
Do you have to use what everyone else uses?
I missed some of the conversation but I just saw IE and gasped
 

« first day (1266 days earlier)      last day (3695 days later) »