Office Hours — Today, March 22

Thursday, March 17

Mark M.
has entered the room
Mark M.
turned on guest access
scottt
has entered the room
Mark M.
howdy scottt
scottt
hello!
Mark M.
how can I help you today?
scottt
polishing off my mini app and have a generic sort of question...
Mar 22
8:00 PM
scottt
my app yet another stopwatch kind of thing (that scratche a personal itch)
i've found the delay before text-to-speech starts playing announcements (even after chunking it into small pieces) is too long
so i want to play a small chime or other announcement ringtone sort of thing
any recommendations on the lightest-weight way of doing it?
Mark M.
um
if a simple beep will do, try ToneGenerator
otherwise, I'm not sure if either MediaPlayer or SoundPool is significantly "lighter weight" than the other
scottt
ok. i plan to play the small chime to "mark the time" before playing the tts
Mark M.
AudioTrack is the lightest, but it may not be convenient for you to have the audio clip in 8- or 16-bit PCM
scottt
no, probably not
8:05 PM
scottt
i considered obtaining pre-recorded voice prompts for all the digits etc to get from 1 to 100
Mark M.
I'd be happy to provide a dramatic reading of the number 57 :-)
scottt
but didnt want to pay much for a toy app. and i got a bit confused trying to figure out the licensing for some open source ones (like in asterisk)
lol
fitz
has entered the room
Mark M.
howdy, fitz!
fitz
Hello - just here to observe - for now :)
Mark M.
OK
if either of you have a question, just chime in
fitz
ok
scottt
the next big challenge is trying to create an icon that adheres to google's guidelines
launcher icon
8:10 PM
Mark M.
yeah, the instructions are definitely designed for graphic designers, or at least people who speak Photoshop
fitz
View paste
do you know if android will allow Remote Method Invocation
Mark M.
Well, Android doesn't have the RMI classes
and you cannot readily add java.* classes to an Android app
you could attempt to grab the code from Harmony (assuming they have it) and refactor it into your own package
fitz
ok will look at that thanks
scottt
i finally got around to doing a market search for "stopwatch" and found there were 250+, so i have no illusions as to whether anyone would want mine. i've done mine to solve a personal need and because it's conceptually simple (so that i could concentrate on learning the platform)
8:15 PM
Mark M.
there are lots of reasons to write apps; distributing them on the Market is only necessary for a subset of those reasons
scottt
switching gears: i just picked up a very discounted ebook for doing native game ports. the author shows how to do it for all version back to 1.0 using code sourcery. and says he shows how to do stuff the ndk one in an appendix
do you touch on the ndk much in any of the books?
Mark M.
_Pro Android Games_?
scottt
yeah, that one
Mark M.
The NDK is covered in _Android Beyond Java_, with that material scheduled to move into _Tuning Android Applications_ once I get all this Honeycomb stuff behind me
scottt
it's very dated, but i figure the core concepts would still be the same
Mark M.
it's not terribly deep
(it's being my NDK coverage)
I haven't done serious C/C++ development in over a decade
fitz
so if I am on same network as windows box - can I have a droid talk to PC and transfer files? or is this a pipe-dream
not via cable - via wifi
Mark M.
fitz: sure, but Android is mostly just providing an HTTP client, if that
the server piece, wherever that would reside, is up to you
8:20 PM
Mark M.
and, if an HTTP client is not what you want, you may have to hunt around for something that will work
scottt
(my background is mostly c/c++/nix, with forays into a zillion other things as need/whim present themselves)
fitz
back after reboot
Chris
has entered the room
Mark M.
howdy, Chris!
Chris
Hey. I don't have any questions.
Mark M.
Um, OK
Chris
So you can skip me.
8:25 PM
Mark M.
well, right now, there aren't many questions, so it's a free for all
if something pops in mind, just ask
scottt
may have said so in a previous chat, but the latest flex stuff looks interesting. if adobe can get the reliability/resource-usage up to speed
Chris
OK, I haven't had time to do any programming lately, but I'm working on a little project now. I just figured I'd pop in to see what's going on.
Mark M.
is Flex able to run on Android? I seem to recall that they said 'no' originally
scottt
i saw some stuff where their latest flex builder can package APKs
Mark M.
yeah, the tools can do it, but I was under the impression that Flex itself (mx.* and the mxmlc stuff) was too big
but I haven't tuned back into that in several months
scottt
ID
IDK
8:30 PM
scottt
seems like i saw some recommendations not to use much exception handling in android, but also saw other guidelines that contradicted that. your thoughts?
Mark M.
well, you want something to serve as the top-level exception handler
that can either be the built-in "force close" dialog or something else
the key is to get those stack traces sent to you by one means or another
if you want to rely on the Android Market's error reporting, letting the built-in "force close" do its thing should be fine
otherwise, look at error-reporting libraries like ACRA or full analytics packages like Flurry (which often also support this sort of error tracking)
scottt
ok
8:40 PM
fitz
has left the room
Chris
Anyone know why when I have the Android emulator (2.2) in airplane mode I get an error that says I can't access web pages due to no internet connection, but the pages load up anyways?
Mark M.
never tried airplane mode on an emulator
Chris
ok, i was just trying to simulate what would happen with no connection.
scottt
sounds like a reasonable way to test it, but wouldnt expect it to load anything (unless it's falling back to cache)
Chris
yeah, the first page gives the error but loads. then i can browse any page after that with no error. oh well, i can test on my real device
8:45 PM
scottt
kind of a quite session. <chirp> <chirp>
Mark M.
yeah, these tend to run hot and cold
besides, everybody's busy playing Angry Birds Rio
8:50 PM
scottt
yeah, but just having them available is very useful
yeah, i finally succumbed to the hype and downloaded the free Angry Birds app for Android
it's as addictive as people say
Chris
usually when I have a question, i can find the answer in Mark's books. so that's a good thing :)
scottt
i'm still on the first set
i kind of feel bad, cuz i rearely come here with an actual question from his books
Mark M.
well, these chats aren't only for book-related questions -- anything on Android development is fair game
I only limit the question topics on the [cw-android] Google Group
scottt
cool. cuz i've been treating them that way
8:55 PM
scottt
so how much of the hoenycomb/fragments/etc stuff is useful if you're not targeting 3.0 devices specifically?
Mark M.
well, fragments are also supported by the Android compatibility library
so, if you're looking to use fragments to consolidate what are several activities on a phone into a single activity on a tablet, fragments would be the way to go
with the compatibility library, fragments work back to 1.6
scottt
i was totally just ignoring the hc stuff until i realized their was utility for older devices too
(i went back and looked a bit more after a previous one of these sessions)
looks like it's about time, so i'll sign off now. have a great one!
Chris
thanks Mark. I'll try to have a real question next time.
Mark M.
heh, ok
have a pleasant day!
9:00 PM
scottt
has left the room
Chris
has left the room
Mark M.
turned off guest access

Thursday, March 17

 

Office Hours

People in this transcript

  • Chris
  • fitz
  • Mark Murphy
  • scottt