« first day (272 days earlier)      last day (4686 days later) » 
04:00 - 19:0019:00 - 00:00

7:01 PM
ok, let's start
@CommonsWare: hey
 
@nil its there already.
 
howdy!
 
Usually we talk about blog posts and books we read about android.
perhaps we can take advantage of having @CommonsWare here and ask him stuff about his own book.
if nobody goes first, I will start
ok, I will go first :)
This week I have read about some ListView tricks done by Cyril
 
It's my first time here, so I'll just expect learning and reading form you
 
he explained several tricks and I was particular interested in speed improvements
using cursor.copyToStringBuffer() instead of using cursor.getString()
I end up writing a blog post about it: android-argentina.blogspot.com/2011/07/…
The rest of my time I continue writing my book.
and that's me.
 
7:06 PM
I don't have a specific post to cite, but you owe it to yourself to subscribe to androiduipatterns.com
excellent resource
 
yep, that guy is doing an excellent work.
@Adinia: since you are new, can you tell us what you are reading to start learning?
 
@CommonsWare Indeed, it's a very useful link; I used it more than once to show to my manager what we can do in Android, and how things sould look, different from iPhone, for which he is coding
@Macarse I've started with the tutorials on developer.android.com, and then, I tooka look at commonsware's beginner book
 
I just got done going through the Android Bootcamp by Marco on YouTube. Found a ton of good information in it.
 
@Adinia: cool, how are you handling the experience?
 
@CommonsWare Thanks for the link, I'll be looking at that tonight for some ideas.
 
7:12 PM
@Pyrodante: can you post a link? I never heard of it :(
 
@Pyrodante What's the link to the YouTube account that has this bootcamp to which you refer?
 
@CommonsWare I have been in J2EE field for three years now, for developer who has some experience on Java EE development, which book are you going to recommend to read to get jump start in Android development?
 
youtube.com/user/MarakanaTechTV#p/c/17/FP2gElnwTSs that should be the whole playlist, and starting at his first video
3
 
@didxga: you mean, besides mine? :-)
 
It is basically his entire book in video form
 
7:14 PM
lol, better to be from your book
 
@CommonsWare: your book is actually lot's of books, right?
 
well, the Warescription is a set of books
The Busy Coder's Guide to Android Development, The Busy Coder's Guide to Advanced Android Development, and Android Programming Tutorials are the main three right now
subscribers also have access to an early partial beta of Tuning Android Applications
@didxga: J2EE experience, in Android terms, means you know Java
 
but you actually don't have a publisher, it's just online stuff, right?
 
not much else from J2EE really directly translates
@Macarse: no, those are available in print
The Busy Coder's Guide to Android Development is also known as Beginning Android from Apress
2
they just released Beginning Android 3, which is about where I was back in April
the other two books are published under the CommonsWare imprint, available in finer online bookstores, particularly those named after large South American rivers
@didxga: from my books, if you're a "learn by doing" sort, you might start with the Tutorials, but most are better served starting with The Busy Coder's Guide to Android Development
 
@CommonsWare yes. So I'd rather to skip some Java basic knowledge intro, dive directly into Android
 
7:18 PM
@didxga: most Android books do not cover Java, so you're safe there
in fact, you kinda have to go out of your way to get an Android book that does cover Java
 
I really can't think of an android book that covers java
 
Apress has one that is basically about Java, particularly the portions that Android uses
I forget the exact title off the top of my head
 
@CommonsWare: what do you think is the hardest thing to learn in Android?
 
@CommonsWare thank you for your reply, I am looking forward the publishing of your new book
 
Which is the most common pitfall in your office hours?
 
7:21 PM
well, my office hours rarely get the same question twice, so that's not a great measure
it used to be that configuration changes (e.g., rotation) was the #1 problem, but that seems to have improved over the last 6-12 months
and some of the stuff they added to fragments, notably setRetainInstance(), make that even easier
threading is still a trouble spot, and may get worse if they lock down AsyncTask in Ice Cream Sandwich as has been discussed
and the combination of stateful stuff (like threads, async tasks, service bindings, etc.) and configuration changes is still wicked confusing
 
yep, that's true.
The problem with the AsyncTask is that people abuse it.
so Ice cream sandwich will remove AsyncTasks?
 
no, they won't be gone
 
I didn't know that
 
but right now, AsyncTask uses a thread pool
5 or 10 threads to start
that will drop to 1 thread
and not grow
as I understand it
so, basically, it will behave a bit more like the IntentService model, where work is in the background, but only one thing at a time
 
And why would that be bad?
 
7:26 PM
on its own, it isn't bad
 
because of compatibly issues?
 
@Adinia: right, compatibility
I'm sure lots of apps assume AsyncTask does work in parallel
and so they'll need to use the new APIs for providing their own thread pool
the worrisome part, though, is that Romain hinted that there's reasons why they're dropping this down, and I don't know what those reasons are
hence, I'm a bit on pins-and-needles until they disclose a bit more
 
I would guess users abusing it.
 
possibly, but I got the impression there's something else wrong
 
I am reading code and there are a lot of inner classes inside the activity that extends AsyncTask
 
7:28 PM
yeah, well, I'm probably partly at fault for that
 
@Blundell You want your Stack Careers invitation?
 
my early AsyncTask samples used a non-static inner class
 
@Pyrodante Thank you!
 
took a while before I realized the flaw
 
@Lukas yeah lukas cheers!
 
7:30 PM
@JasonBunting No problem
 
@CommonsWare: Perhaps limiting the AsyncTask will make ppl look into other possibilities
 
@Macarse: yup
 
I have been loving android since I started using SyncAdapters
 
@Blundell I'll need your E-Mail Address.
 
everything makes sense now, I can see the matrix (?) :D
 
7:31 PM
I didn't heard yet of SyncAdapters :|
are they used with AsyncTask?
 
nope
SyncAdapter is a nice way to consume a web service and sync your db with a server
 
@Macarse Thank you :)
 
well I guess we endup talking of something else :(
Well, someone else wants to share his books/blogs links about android?
Ok, thanks everybody! Now go and code some apps :)
 
Thank you all for the links, for me I think there are enough for the moment :)
 
have a pleasant day, all!
 
7:38 PM
Thanks!
 
One more question: what Android office hours is supposed to mean?
 
@Adinia: CommonsWare host for his readers one hour chat
for them to ask questions
we are doing something simil here
 
yes, it's here on SO that I saw a new event
and I was wondering if it's worth attending, as it'll be midnight here, and beside I'll be in holiday :)
 
wow, I can belive this
for next book club
 
It's a new book that you found right now?
 
7:50 PM
@Macarse why is there an iPhone in the book?
 
Looks like spain to me :D
*Spanish
 
@cyberrog: haha exactly. No idea why they placed an iphone.
 
@LukasKnuth It is Spanish,I just found it's review on the editors site
 
Hello everyone
 
@OhDannyBoy: hey
 
8:07 PM
2
Q: AlphabetIndexer setCursor doesn't update its cache

cyberrogI'm trying to implement a fast scroller with AlphabetIndexer, but when the cursor changes, its not refreshing the index chache. In my CursorAdapter constructor I call setCursor(cursor) but nothing changes, and acording to the documentation: Your adapter is responsible for updating the cursor ...

 
Has anyone ever used a tablayout with the tabwidget at the bottom, then have the activities it points to overlap it? Google's lack of results make me wonder just how screwy I did this.
 
user457812
8:49 PM
@OhDannyBoy I just want you to know that now I can't get that bloody song out of my head.
 
9:27 PM
0
Q: Inheritance and Layouts. Why is abstract class not overridden?

hunterpWhy isnt the child class successfully overridding layoutId ?? In the base class we have: public abstract class FeedActivity extends Activity{ static final String TAG="FeedActivity"; static final String FEED_TITLE="feed_title"; int layoutId=R.layout.feed; public abstract void up...

 
9:57 PM
Does anyone know how to get the background color of a button (assuming i set it to a solid color such as Color.WHITE)?
 
android:background="@android:color/"
 
I mean programatically such as if button is colored white do this
 
user457812
10:09 PM
You'd probably have to get its drawable for that, I'd think
 
user457812
Which would make it a not-terribly-pleasant process when you could maintain that state on your own
 
Yup, looking like i'll have to find another way
 
 
1 hour later…
11:19 PM
I'm scared of keeping tabs around to be omnipresent during the app. can anyone help?
looking for a tutorial / what is it named ?
whats the easiest way to keep tabs around omnipresent-like ?
 
04:00 - 19:0019:00 - 00:00

« first day (272 days earlier)      last day (4686 days later) »