**** BEGIN LOGGING AT Thu Apr 11 02:59:59 2013 Apr 11 03:31:40 wat Apr 11 03:47:13 Installed the latest Eclipse version of the Android Sdk in a forum and instruction given was right click your project -> Android Tools -> Fix project properties Apr 11 03:47:28 I can't find that what am I missing Apr 11 03:48:10 the project menu does not show Android tools Apr 11 03:58:05 not only sdk Apr 11 03:58:16 you should install eclipse plugins Apr 11 04:00:21 BJfreeman have you install these plugins: https://dl-ssl.google.com/android/eclipse/ ECLIPSE->HELP->INSTALL NEW SOFTWARE Apr 11 04:04:38 thanks Apr 11 04:07:42 how do cookies work in WebView? Apparently they are not shared with the browser... Apr 11 04:18:01 can someone explain to me why ANTI_ALIAS_FLAG has no affect on Paint when HardwareAcceleration is on? I have to disable hardware acceleration to get smooth lines when drawing a Path Apr 11 04:19:53 Trying to find an interesting way to inform the user that the application is posting their message, but I don't want it to be hardcore in your face. Apr 11 04:20:43 a couple of years ago, i would have said "toast!" Apr 11 04:20:48 now, not so sure Apr 11 04:20:49 ;] Apr 11 04:20:55 ;) Apr 11 04:21:10 rburton-: a plane that flies across the screen, trailing a banner Apr 11 04:21:14 Toast is still fairly non-intrusive as far as the user is concerned Apr 11 04:21:17 * JesusFreke ducks Apr 11 04:21:19 with a cat! Apr 11 04:21:22 imho. Apr 11 04:21:37 or a cat riding across the screen on a monocycle Apr 11 04:21:58 wearing a monocle. Apr 11 04:22:13 Monocoles rock! Apr 11 04:22:16 ;] Apr 11 04:22:39 You could package up my penrose tiling view, and say "here's a nice penrose tiling for you to watch while you wait" Apr 11 04:22:56 oo. maybe you could have a rotating penrose tiling Apr 11 04:23:03 Well the request should be fast, but I don't want to lock the user up to look at the screen. Apr 11 04:23:30 e.g., hit submit - kick async request off (tiny visual that the file + post is uploading) and then let the user do other stuff Apr 11 04:23:52 that sort of thing is normally done via a notification Apr 11 04:24:05 notifiation? Apr 11 04:24:16 yeah. like when you download a file in chrome Apr 11 04:24:18 I don't want a dialog box or anything like that. I'll use toast for now Apr 11 04:24:27 It just shows a notification in the notification bar Apr 11 04:24:39 no, not a dialog box. a notification :) Apr 11 04:24:54 those things in the top left :) Apr 11 04:25:09 and then once it's finished, the notification goes away Apr 11 04:25:24 unless it's really short lived Apr 11 04:25:29 in which case, that probably doesn't make sense Apr 11 04:25:30 i thought notifications when the UI was available were generally frowned upon Apr 11 04:26:56 * JesusFreke shrugs Apr 11 04:27:05 * g00s shrugs Apr 11 04:27:11 I try to stay away from doing UI stuff as much as possible :) Apr 11 04:27:12 I'll just use Toast then customize it Apr 11 04:27:27 JesusFreke: did you say you rode a monocycle ? Apr 11 04:27:32 unicycle Apr 11 04:27:41 but yes Apr 11 04:27:44 ah, damn, a cat on a unicycle :D Apr 11 04:27:56 ;) Apr 11 04:27:59 I don't think my cats would cooperate Apr 11 04:28:05 :p Apr 11 04:28:57 start them off on Segways Apr 11 04:29:10 have to lower the bars a little ;) Apr 11 04:31:38 hmm, according to this, Play 4 should be available on Froyo Apr 11 04:31:43 but i dont see it Apr 11 04:33:27 looking at the perms for Play - i would never install it from anyone else "Services that cost you money: send SMS messages" wut Apr 11 04:33:46 "Phone Calls" read phone state and identity Apr 11 04:33:56 same ol same ol, why are these needed? may as well not even tell me Apr 11 04:34:20 it might be a shared uid with the system or something Apr 11 04:34:28 well read phone state and identity i imagine it is using for identity Apr 11 04:34:53 but it also has "Your Accounts" … so i thought it would use that for identity Apr 11 04:35:27 probably both Apr 11 04:36:17 as linus would say, this fails the mom test Apr 11 04:36:25 hey guys this is my xml for button http://codepad.org/GPFlwf9q and this is definition of login method http://codepad.org/2qMfbDwB it is giving me error that can not find method login. Apr 11 04:36:26 help please Apr 11 04:36:52 ?? Apr 11 04:36:56 what mom test? Apr 11 04:37:52 g00s, can you please elaborate? Apr 11 04:37:57 what am I doing wrong. Apr 11 04:38:49 ioNull did the new install as well as loaded from the SDK manager but no such menu selections Apr 11 04:39:15 and also reboot elclipse Apr 11 04:40:16 BJfreeman, you talking to me? Apr 11 04:41:17 I was addressing ioNull but willing to take advice from anyone Apr 11 04:50:48 hey guys this is my xml for button http://codepad.org/GPFlwf9q and this is definition of login method http://codepad.org/2qMfbDwB it is giving me error that can not find method login. Apr 11 04:58:21 Abhijit: why does login() take a View as a parameter? Apr 11 04:59:33 tnzr, dont know. new to dev. thats what i seen in most samples on internet Apr 11 05:00:28 I guess it's supposed to when you use the XML onClick Apr 11 05:00:50 yeah i have written in .xml file android:onClick="login" Apr 11 05:01:02 using eclipse? Apr 11 05:01:05 yes Apr 11 05:04:00 you could make your activity implement View.OnClickListener Apr 11 05:04:10 then override the onClick method Apr 11 05:04:27 then just set your button's onClickListener to the activity Apr 11 05:04:51 is that button in the activity_main.xml ? Apr 11 05:05:54 Can I do the android development with the openjdk? Apr 11 05:22:51 i think google suggest oracle's java Apr 11 05:25:28 tnzr, yes Apr 11 05:42:07 hi, I want to compile a .apk file from source (specifically, Google Authenticator). So if I understood this correctly (from this thread - http://stackoverflow.com/questions/4600891/how-to-build-apk-file), do I have to have something like Eclipse and the ADK emulator running? Apr 11 05:43:11 also, in case that I have to have Eclipse, is it as easy as just opening the source files inside of Eclipse? Apr 11 05:45:30 you don't necessarily need eclipse Apr 11 05:45:41 and you don't need the emulator unless you plan to run the compiled app on it Apr 11 05:46:58 I think you probably mean SDK rather than ADK... Apr 11 05:47:30 you *do* need the basic SDK tools, but you can compile on the commandline with ant rather than in the GUI with eclipse, if that's your thing Apr 11 05:47:33 freeroute: ? Apr 11 05:48:11 Leeds: I guess, so what then would be the easiest way for me to just compile the source code (https://code.google.com/p/google-authenticator/source/checkout?repo=android) into an apk? Apr 11 05:48:28 if I can do it with just a commandline utility then that's perfect Apr 11 05:48:41 you grab the SDK and install the basic tools through it Apr 11 05:48:41 that means I don't have to install all of those things Apr 11 05:48:48 you'll need the Sun/Oracle JDK Apr 11 05:50:24 ok, so I need the SDK and Sun/Oracle Java installed. After I've done that, what should I run (in the commandline)? Apr 11 05:51:33 wait. is google authenticator open source? Apr 11 05:51:46 oh, I guess it is Apr 11 05:51:49 huh. nevermind :) Apr 11 05:52:02 I didn't think it was, for some reason Apr 11 05:52:03 a version of it apparently is/was Apr 11 05:52:16 not the current version Apr 11 05:52:48 freeroute: http://developer.android.com/tools/projects/projects-cmdline.html Apr 11 05:53:01 freeroute: depending on exactly what was provided in the source bundle, you may need to use the "android update" command to generate local build files Apr 11 05:53:14 then you just "ant debug" and start fixing build errors :) Apr 11 05:53:36 uh oh... and why exactly would there be build errors? :p Apr 11 05:53:49 with a pristine app like Google Authenticator? Apr 11 05:54:08 freeroute: it's a universal law Apr 11 05:54:13 eh, there are always build errors Apr 11 05:54:22 nothing compiles the first time without build errors Apr 11 05:54:26 particularly when the code is coming from somewhere like Google - those guys suck Apr 11 05:55:02 do I... do I have to know Java in order to fix build errors? Apr 11 05:55:04 really more of an iOS house, with the odd port to Android Apr 11 05:55:15 oh lol Apr 11 06:39:31 approximately how long would it take to build 4.2 with one thread and 4GB of RAM? Apr 11 07:01:25 ugh, seems like global supply of rice is contaminated with lead Apr 11 07:08:43 hey guys Apr 11 07:10:14 g00s, moderate to high in arsenic as well. Apr 11 07:19:17 wilee-nilee: only bacon is safe Apr 11 07:20:12 g00s, Thank god you know, there is a donut place where I live that has maple bars with bacon mmmm so good. ;) Apr 11 07:21:21 http://www.foodinsight.org/Resources/Detail.aspx?topic=Questions_and_Answers_about_Arsenic_in_Food_and_Beverages Apr 11 07:21:30 :D Apr 11 07:21:38 Theres good and bad kinds Apr 11 07:21:55 * Chainfire just got an invite to I/O w00t Apr 11 07:23:09 cool Chainfire Apr 11 07:24:22 * alex_PP wants to go to IO Apr 11 07:24:27 *sad face* Apr 11 07:27:26 alex_PP: do they have any extended i/o's by you ? Apr 11 07:28:12 in cambodia? Apr 11 07:28:18 i doubt it Apr 11 07:28:20 really extended :) Apr 11 07:32:20 over extended :P Apr 11 07:32:43 i suspect i personally know all the android devs in this country Apr 11 07:33:38 alex_PP: do you sell prints of your photography? you had some really good stuff Apr 11 07:34:01 Hi :) Apr 11 07:34:15 nope Apr 11 07:34:26 never really thought about Apr 11 07:34:27 it Apr 11 07:34:36 alex_PP: i'm reading this, its very good http://www.amazon.com/Marketing-Fine-Photography-Alain-Briot/dp/1933952555 Apr 11 07:34:52 but its fine art photography Apr 11 07:35:48 sure it all applies Apr 11 07:36:42 for a while i wanted to become a war photographer Apr 11 07:36:51 then i decided breathing was more fun Apr 11 07:36:57 than not Apr 11 07:38:40 alex_PP: if you are still into that, you may enjoy this (caught my eye because its unique) http://www.peachpit.com/store/photojournalists-field-guide-in-the-trenches-with-combat-9780133257892 Apr 11 07:40:11 very interesting Apr 11 07:43:21 Guys, I'm about to work with this API but I have no idea what should I do with my httpclient. https://github.com/cloudapp/api/blob/master/upload-file.md Apr 11 07:44:48 Any clue? Apr 11 07:46:18 alex_PP: come to extended in HK Apr 11 07:47:40 that's not a terrible idea Apr 11 07:47:47 linky? Apr 11 07:49:32 hmm, there appears to be 2 Apr 11 07:49:42 one in town and one in the new territories (?) Apr 11 07:50:49 the guy(s) organising it got a bit confused Apr 11 07:51:16 there isn't one in the middle of the countryside, just the one in Kwun Tong Apr 11 07:51:26 oh, ok Apr 11 07:51:41 AFAIK, anyway Apr 11 07:51:58 if you check, the address is actually the same on both, just that the map has put it somewhere random Apr 11 07:52:04 i just saw Apr 11 07:52:07 shame Apr 11 07:53:01 can I somehow name asyntask? so I will see something better then "AsyncTask #1" in ddms/logcat? Apr 11 07:53:08 you'd prefer to be in the middle of nowhere? Apr 11 07:53:21 might be fun Apr 11 07:53:46 kwun tong is pretty middle of nowhere for me - not my end of town :) Apr 11 07:53:52 ha Apr 11 07:54:50 midlevels? Apr 11 07:54:50 not really the sort of area where nice expats live... Apr 11 07:55:00 that's where all the whities hanf out isn't it? Apr 11 07:55:05 *oops Apr 11 07:55:10 *hang out Apr 11 07:55:11 haven't lived in midlevels since 2006 or so Apr 11 07:56:05 the best bit about the midlevels is you can earn octopus credit just for turning up! Apr 11 07:56:24 i was very impressed by octopus, less so that it dodn't have an android app Apr 11 07:56:29 I've gone - relatively - local, been living in Sheung Wan for years now Apr 11 07:56:40 there's an official balance/history app out now Apr 11 07:56:59 i was hoping for some NFC action Apr 11 07:57:08 right, uses NFC to read your card Apr 11 07:57:18 what is sorely lacking is a phone-as-card app Apr 11 07:57:31 that's what i was after Apr 11 07:58:59 I've been saying for the past 18 months that I desperately hope that somewhere behind closed doors, Google people are phoning Octopus people every day and begging them, offering to cover the costs, do whatever it takes to get at least a couple of phones certified as soft cards Apr 11 08:00:07 if they came out on the day the S4 is released here and said "oh, by the way, you can use it as an Octopus card, it's a 100% replacement" they'd sell a million phones in a month Apr 11 08:00:07 would be a good shot in the arm for NFC and android Apr 11 08:01:09 so, this IO extended lark, now I've ticked maybe, what else do I do Apr 11 08:01:21 is there any sugn up, ot do i just turn up? Apr 11 08:01:30 *sign or? Apr 11 08:01:38 just turn up... you could drop the organiser a line if you wanted Apr 11 08:01:45 I put an custom AdapterView inside a ScrollView, then the ScrollView doesn't scroll anymore, any debugging tips? Apr 11 08:01:54 erm, you know it's pretty much a viewing party for the keynote, right? Apr 11 08:02:03 yeah Apr 11 08:02:10 be nice to talk to people though Apr 11 08:02:15 yup Apr 11 08:02:31 and i like HK, any excuse for a jolly, especially if I can get work to pay Apr 11 08:02:38 that would be nice Apr 11 08:03:24 let me know, we can have beer Apr 11 08:03:56 i'll start the ball rolling Apr 11 08:04:01 can take a while Apr 11 08:11:11 can AdapterView be used in ScrollView? Apr 11 08:13:30 skyred: you mean the result of getView / bindView etc ? Apr 11 08:13:43 tis just a view, so you can use it really how you want Apr 11 08:14:27 StingRay_, in layout, I have a custom adapterView (without implementing scroller), and I want to put it in a ScrollView, however, it doesn't scroll Apr 11 08:29:09 so your after a listView inside a scroll view ? Apr 11 08:29:35 @ skyred Apr 11 08:30:07 StingRay_, not a ListView, that I know. It's a custom view extending AdapterView Apr 11 08:30:08 When two bluetooth devices are paired - Does this mean that they are currently connected to each other? Apr 11 08:39:58 Hi. I wonder if there is any mechanism of knowing if my Activity is running. The device will always be connected to a computer. I thought about sending periodic messages to logcat and capture these messages on my PC and check if it is alive. But since I am using MediaPlayer, I don't think I can put a Log.d() somewhere in its "main loop"... (Confusing?) Should I rephrase my question? Apr 11 08:46:53 I mean, I could have a different thread running and somehow signaling it is alive, but this won't work since the app may hang, and the thread will still be signaling it is alive... Apr 11 08:58:10 how can I list which apps that listen for a specific intent? Apr 11 09:00:38 gmag adb shell dumpsys activity with a grep somehow? Apr 11 09:08:49 morning Apr 11 09:09:47 I suck at graphic stuff but what do you think of this icon for a crossword helper? http://bildr.no/image/1436043.jpeg Apr 11 09:10:28 Norwegians don't really do crosswords, sorry. Apr 11 09:10:51 the graphic is ok Apr 11 09:10:58 old Norwegians do ;) Apr 11 09:11:21 you have any suggestions for improving it? Apr 11 09:11:38 nah, I suck at graphics as well. I can only say that I find it to be ok :P Apr 11 09:11:46 hehe Apr 11 09:15:44 Quacked: what do you mean stuck ? Apr 11 09:15:52 thats your icon ? Apr 11 09:19:56 StingRay_: suck, not stuck :P Apr 11 09:20:03 but yes, thats my icon Apr 11 09:21:19 not really a fan of it I have to say Apr 11 09:21:21 sorry :( Apr 11 09:21:37 too many things are, dirty/wrong ' ish Apr 11 09:21:46 again sorry to say Apr 11 09:22:17 dont be Apr 11 09:22:22 what do you think its wrong with it? Apr 11 09:22:29 is* Apr 11 09:22:49 erm, dont hate me (cause I'm a designer) but most/all of it Apr 11 09:23:00 as in every aspect almost Apr 11 09:23:10 haha.. give me a few tips :) Apr 11 09:23:34 ok there is no defined features Apr 11 09:23:37 I'm not a designer so I just tinker i photoshop Apr 11 09:23:43 not clear bevel/or shadown Apr 11 09:23:49 shadow* Apr 11 09:24:02 I have a drop shadow at 90 degrees angle Apr 11 09:24:08 the drop shadown on text is very odd in color/contrast specially for that size Apr 11 09:24:13 or intended size Apr 11 09:24:19 yeah, Im adjusting it as we speak Apr 11 09:24:23 not sure about font choice Apr 11 09:24:25 I realized it was way too black for isntance Apr 11 09:24:44 I want the font choice for the black writing, but the blue im uncertain for as well Apr 11 09:24:44 dividing lines are a bit ugly Apr 11 09:24:57 it looks dirty at the bottom Apr 11 09:25:12 basically it very, erm….. not designed :) Apr 11 09:25:50 I don't know why the lines appear ugly, I just set them with the line tool in PS Apr 11 09:26:08 the blue font was attended to look hand written Apr 11 09:26:12 intended* Apr 11 09:27:11 well it's hard to say, but it's just dont look right, have you looked at it when it's 48x48 ? Apr 11 09:27:23 or at any of the different sizes ? Apr 11 09:27:28 cause I doubt it will work Apr 11 09:28:24 the lines you mean? yeah, they look jagged at smaller res Apr 11 09:28:37 I don't know how to fix that Apr 11 09:28:50 well no, it's all of it Apr 11 09:28:55 not just lines Apr 11 09:29:05 tried to fix the drop shadow a bit here: http://bildr.no/image/1436046.jpeg Apr 11 09:29:14 my guess is text will be illegible Apr 11 09:29:20 and will look more dirty Apr 11 09:29:31 yeah, it doesnt look great Apr 11 09:30:02 normally you do logo design based on media/symbolism Apr 11 09:30:21 rather than attempting a practical visual representation Apr 11 09:30:29 well in this case (app design) Apr 11 09:30:38 yeah, but I couldnt think of a good idea for a crossword helper Apr 11 09:30:59 I initially added a question mark to the icon.. but it didnt really look good Apr 11 09:31:51 one of the most important things though, is designing something that will look good at the most common size Apr 11 09:32:29 yeah. At first I tried showing like 10 squares in the icon. Quickly realized that was a no go Apr 11 09:32:29 :D Apr 11 09:33:05 https://dl.dropboxusercontent.com/u/80096154/1436046.png Apr 11 09:33:53 here is how it is on my home screen now: http://bildr.no/image/1436049.jpeg Apr 11 09:34:13 yeah not good Apr 11 09:34:30 sad fact: most often these kind of ppl don't hire deisgners to do them a good icon Apr 11 09:35:20 timroes: I'm not gonna hire a designer for an app that was made in a few days :) Apr 11 09:35:41 and I want to learn some of the basics Apr 11 09:36:14 btw whats that for an terrible launcher you use with that bottom line? Apr 11 09:36:35 Nova Apr 11 09:37:32 Just went away from Go because it was too slow Apr 11 09:37:56 StingRay_: I dont think it looks horrible if there was a way to clean out the font to look better Apr 11 09:38:29 ok, totally disagree, but we have different views/backgrounds :) Apr 11 09:38:42 I will second StingRay_ Apr 11 09:38:45 :D Apr 11 09:39:09 inset drop shadow doesn't look good. Apr 11 09:39:30 every element in there does not look good Apr 11 09:39:33 most of your applications just have rounded corners with a 1px outline of a something color Apr 11 09:39:37 forget shadows Apr 11 09:39:51 Quacked: can I see your app ? Apr 11 09:39:57 forget the square, forget the small fonts, forget the dropiing shadows Apr 11 09:40:21 as in screenshots Apr 11 09:40:26 some have unidirectional gradients that go across the entire icon Apr 11 09:41:00 sad is how icons that could have been done pretty great with some changes (PocketCloud in that case) are ruined by putting them in the iOS square Apr 11 09:41:13 except dropbox, which isn't square and has a lot of unidirectional shadowing Apr 11 09:41:17 two secs Apr 11 09:42:11 http://bildr.no/image/1434517.jpeg Apr 11 09:42:22 Quacked: if you want a good icon for android, follow the Google examples. The Dropbox icon is also good. Apr 11 09:43:08 joar: yeah, for some reason the google+ icon has drop shadow but the rest dont Apr 11 09:43:47 google is the most programmer orientated design examples you can find, they are not good or consistent Apr 11 09:43:58 hah Apr 11 09:44:20 their design guides are based not on design, or even practical user driven choices Apr 11 09:44:32 they are just a collection of uniform ideas Apr 11 09:44:37 trust me on this :) Apr 11 09:44:44 trust him on this Apr 11 09:44:45 I don't doubt you ;) Apr 11 09:44:50 although tis only my opinion Apr 11 09:44:51 :) Apr 11 09:45:17 well I can offer loads of examples on why they are wrong from a design and practical pov Apr 11 09:45:21 :) Apr 11 09:45:23 How do you make a great icon? Apr 11 09:45:42 StingRay_: as you see on that last link I let holo take care of everything Apr 11 09:46:00 joar`: by being in vfx/art for 17 years… you ? Apr 11 09:46:17 What about http://panic.com/ Apr 11 09:46:54 StingRay_: Yeah, but there should reasonably be some common gotchas. I'm trying to find information. Apr 11 09:47:18 oh well thats always based on interpretation and context Apr 11 09:47:20 eg Apr 11 09:47:26 there is no ideal icon Apr 11 09:47:42 there is only a good/ideal icon for the purpose Apr 11 09:48:02 and unless every purpose was the same, and all puprposes were in the same context etc Apr 11 09:48:15 icons seems to be very susceptible to outside effects such as context, cultural differences in perception etc. Apr 11 09:48:25 indeed Apr 11 09:48:33 StingRay_: is it possible to get the font easier to read in smaller sizes or does it simply have to be larger? Apr 11 09:48:37 there is only a few common things to consider Apr 11 09:48:57 a ) has to be of quality, comparable to other icons that the user sees Apr 11 09:49:05 Quacked's app provides a way to find words when you're at loss. Apr 11 09:49:09 b ) has to stand out and have pallets and contrast that work Apr 11 09:49:23 c ) has to symbolize in some way the apps ident/purpose Apr 11 09:49:58 every other aspect should be driven by either brand or function Apr 11 09:50:00 Quacked: How do you illustrate a missing word? Apr 11 09:50:01 imho Apr 11 09:50:45 joar: instead of the list I show a textview saying not found etc Apr 11 09:51:48 btw you dont try an illustrate something missing :) Apr 11 09:52:10 but rather the action you would take to "find" Apr 11 09:52:32 missing (given context) is a hard thing to draw ;) Apr 11 09:53:54 and if you do want to symbolize missing, it has to be very obvious to user/viewer … and in this case I would think that very hard to do Apr 11 09:54:08 whereas the action that you perform is not hard Apr 11 09:56:04 im not sure he meant "illustrate" Apr 11 09:56:19 think he just wondered how I notified the user when nothing is found :P Apr 11 09:56:29 oh Apr 11 09:56:35 I'm in design mode :) Apr 11 09:56:40 hehehe Apr 11 09:56:50 Apr 11 09:56:55 but is it possible to get the font easier to read in smaller sizes or does it simply have to be larger? Apr 11 09:56:56 Apr 11 09:57:02 switch back ;) Apr 11 09:57:02 Quacked: I meant that, I was talking about the icon :) Apr 11 09:57:15 offs Apr 11 09:57:21 Apr 11 09:57:25 Apr 11 09:57:44 joar: aha.. well, I don't as you can see ;) Apr 11 09:57:48 gah, that's a validation error Apr 11 09:58:01 see, more a designer than dev ;) Apr 11 09:58:07 almost as bad as a missing end paren (I hate that Apr 11 09:58:52 joar`: I had this earlier: http://bildr.no/image/1436053.jpeg Apr 11 09:59:11 basically just showing an empty crossword Apr 11 09:59:14 Quacked: I was saying it more as "Think about how you would illustrate the purpose of your application and fit it in an icon" Apr 11 09:59:29 joar: I understood :) Apr 11 09:59:37 :) Apr 11 10:00:02 Alas, I have to earn my livelihood. Good luck, see you in a bit Apr 11 10:00:48 hey guys, am I doing something stupid with SoundPool? Entering a non-zero value for loops results in no audio being played Apr 11 10:00:55 and I tried to present the "help" bit with this: http://bildr.no/image/1436054.jpeg Apr 11 10:00:57 if I put 0, the audio does play. Apr 11 10:00:59 cya Apr 11 10:01:13 StingRay_: are those last two better you think? Apr 11 10:01:49 SoundPool.setLoops(streamId, loopCount) as a way to try and remedy the issue also doesn't work Apr 11 10:01:51 I am trying to provide a solution for being able to run only one application from your android device. I have built a custom launcher that only presents this app, but I have yet to find a solution in order to disallow one from running an app when accessing it from the settings or something. Any ideas how to solve this? Apr 11 10:02:25 jack_guru, the only real way to have a 'secure' solution is to roll your own firmware image Apr 11 10:03:15 jack_guru, if you sign your home app with a system level cert, you can use reflection and the android.permission.STATUS_BAR permission to lock the status bar and remove items from the system UI (e.g. the recent apps button) Apr 11 10:04:00 feesh, I have thought of that but it is not for my device but for a company and they will lose their guarantee if I change the firmware Apr 11 10:04:12 jack_guru, I say this because I believe Diane Hackborn answered a question at a google IO which was similar to this Apr 11 10:04:39 jack_guru, the only other ways are hacky and don't prevent services from running etc Apr 11 10:05:50 feesh, I was hoping to achieve this by using a policy or something but I cannot find something that will block users from uninstalling apps Apr 11 10:06:04 look on the play store, there is an application that provides a kind of kiosk mode and it uses a bit of reflection to close the notification tray every 200ms or so to prevent people getting to settings and it also reads log cat output (which only works on some devices due to alterations to activity manager) for activity manager output to determine which applications have just been launched. It then checks a white/black list and then relaunches the a Apr 11 10:06:04 pplication if it detects a launch Apr 11 10:06:17 Quacked: not really bud Apr 11 10:06:37 for a visual/desgin stand there is no difference Apr 11 10:06:44 jack_guru, device administration apis prevent the application from being uninstalled until the application has been stripped of device administration privileges Apr 11 10:07:18 feesh, at the moment I have also installed APP Lock from google play that requires a password in order to run apps but it takes some time on boot so someone can access the settings and uninstall it until it runs Apr 11 10:07:51 feesh, let me look for this app you mentioned :) Apr 11 10:07:55 StingRay_: ok Apr 11 10:08:04 jack_guru, I can't remember it's name, really sorry Apr 11 10:08:30 feesh, no problem, I ll look into it now and let you know if I find it Apr 11 10:08:35 StingRay_: did you see my question earlier btw? is it possible to get the font easier to read in smaller sizes or does it simply have to be larger? Apr 11 10:08:48 jack_guru, just don't expect something watertight and bulletproof Apr 11 10:09:12 jack_guru, you can only get to the point that you dismiss activities, but if an Application instance starts off services or what-have-you Apr 11 10:09:16 you're gonna have a bad time Apr 11 10:10:05 feesh, I don't, anyway it is not meant for experienced users, a pretty good (but not perfect) solution will work Apr 11 10:12:06 Quacked: have a look at how much type is in other icons Apr 11 10:12:15 that you consider to look nice Apr 11 10:12:16 jack_guru, in which case, I suggest looking into the StatusBarManager which you can get a reference of by calling getSystemService("status bar") then with a little reflection ... Apr 11 10:12:24 and then you have your answer :) Apr 11 10:12:25 but remember android.permission.STATUS_BAR Apr 11 10:13:23 StingRay_: yeah, Im thinking of showing the old type crossword, something like this: https://lh3.ggpht.com/pW9KhMt0-4hTJEUoG1Y4tY1BCFreB-q7RMWJ4aacdWr3RkqoKn4fwBMyfio=w78-h78 Apr 11 10:13:30 (I just found that icon on play) Apr 11 10:13:55 feesh, yes of course.. Let me look into it, but after finding the previous app you were talking about Apr 11 10:14:00 StingRay_: one idea could be to spell out H E L P in that Apr 11 10:15:03 thats ok'ish, a 4x4 grid with help looking a bit like that would be a massive improvement on what you have atm, imho Apr 11 10:15:51 have to be 5x5 though. because it needs to be HJELP (stupid language) :P Apr 11 10:16:02 5x5 might be pushing it Apr 11 10:17:00 here is an example of 5x5: https://lh4.ggpht.com/QJmDTfOVidTWSMSS-mg22YQWKvffbx3Ah0_JCqw5-yQGOnAa8xppAuJi-9uww0z79-Y=s0 Apr 11 10:17:18 dont talk to me about languages Apr 11 10:17:28 I once did a tv show call robotwars Apr 11 10:17:46 had to do translations for different EU countries Apr 11 10:17:54 hiho guys Apr 11 10:18:15 hehehe Apr 11 10:18:17 "battle board" = "the board on which battles occur" Apr 11 10:18:19 anyone familiar with the busy coders guide to android development? Apr 11 10:18:23 in some languages Apr 11 10:18:26 :D Apr 11 10:18:54 and there is no shorter translation :) Apr 11 10:19:11 Im gonna borrow that 5x5 and test how it looks if I put in HJELP :P Apr 11 10:19:32 not a brilliant visual for a board thought Apr 11 10:20:34 it says that DynamicDemo cannot be resolved to type Apr 11 10:20:52 https://github.com/commonsguy/cw-android/blob/master/FancyLists/Dynamic/src/com/commonsware/android/fancylists/three/DynamicDemo.java Apr 11 10:21:01 :< halp? Apr 11 10:25:15 StingRay_: http://bildr.no/image/1436059.jpeg ? Apr 11 10:25:45 as a starting point I mean Apr 11 10:25:50 still horrible :) Apr 11 10:25:56 haha Apr 11 10:26:08 but I think your going to have to go with what YOU think looks ok Apr 11 10:26:19 yeah Apr 11 10:26:34 thanks for your input Apr 11 10:29:46 anyone tried analytics to determine where their installs come from? Apr 11 10:31:07 how big should menu icons be? i know it's different size for mdpi, hdpi... but what's "base" size ? Apr 11 10:32:36 miha: "base?" Apr 11 10:32:51 miha, launcher icons? Apr 11 10:33:23 36x36 ldpi, 48 mdpi, 72 hdpi, 96 xhdpi Apr 11 10:33:41 feesh: not launcher, menu/action menu? Apr 11 10:34:00 miha, you can always dig in the platforms/android-*/data/drawable-* folders Apr 11 10:34:02 http://developer.android.com/guide/practices/ui_guidelines/icon_design.html Apr 11 10:34:11 that works too ^ Apr 11 10:34:13 http://developer.android.com/reference/android/graphics/PorterDuff.Mode.html wtf is "PorterDuff"? o_O Apr 11 10:34:35 Pitel_IPEX: algorithm called after two guys :P Apr 11 10:34:37 xorgate: oh, ok, doh. was looking at "supporting multiple screens" and "menu" docs Apr 11 10:34:58 p_l: thanks Apr 11 10:34:59 "Thomas Porter and Tom Duff." Apr 11 10:35:14 ThomTom would of been a better name Apr 11 10:35:23 if I have a layout, and i set it's visibility to View.GONE, and then in java set the var pointing to it to null, will it garbage collect it? Apr 11 10:35:35 thepoosh, no Apr 11 10:36:01 java sets the pointer to null ? Apr 11 10:36:04 really ? Apr 11 10:36:36 thepoosh, it's still in the view hierarchy (you can findViewById it still), so it will hang around unless you remove it from the view hierarchy Apr 11 10:37:09 View.GONE just means that the view won't be measured or laid out Apr 11 10:37:12 http://graphics.pixar.com/library/Compositing/paper.pdf fyi, here is the paper about compositing by those two guys ;) Apr 11 10:37:13 thepoosh: object is garbage collectored after there are no more references to object. remove that object from ViewGroup too :) Apr 11 10:37:19 collected Apr 11 10:37:26 as feesh says Apr 11 10:38:37 feesh: I inflate it into a known anchor Apr 11 10:38:56 and I want to remove it without causing too much damage to the memory Apr 11 10:39:16 thepoosh: dont set visibilty, removeView instead? Apr 11 10:39:28 if you want to destroy it Apr 11 10:39:34 miha: I'm getting a weird nullpointerexception when trying to remove it Apr 11 10:40:40 thepoosh: if you want help, you should paste those few lines of code somewhere Apr 11 10:40:44 miha: when I tried running root.removeView(layout), I got this crash: http://pastie.org/private/c2u9euq47yoqvxtj2vcoog Apr 11 10:41:16 oh Apr 11 10:41:22 yes Apr 11 10:41:36 My thoughts exactly Apr 11 10:41:52 well yes, you position some other element according to this one :p Apr 11 10:42:00 hmmm Apr 11 10:42:07 why would it crash?! Apr 11 10:42:26 I use this line in a different context and nothing happened Apr 11 10:42:30 just here Apr 11 10:42:33 :S Apr 11 10:43:03 relativelayout? :p Apr 11 10:43:12 waht? Apr 11 10:43:15 *what Apr 11 10:43:52 the root element is a relativelayout Apr 11 10:43:58 if you just remove view from linearlayout, nothing bad happens. in relative layout, some other view can have position relative to "null" one? (i dont use relativelayout much) Apr 11 10:45:28 well, the removed view is placed in a relative layout that contains 4 other relative layouts, a fragment and framelayout Apr 11 10:46:01 I have no idea what caused this, and why it doesn't happen from other places in the code (when I run the exact same code) Apr 11 10:47:07 miha: any thoughts? Apr 11 10:58:40 Will a service cancel a previous request when it recieves a new one? Apr 11 10:58:50 thepoosh, what you just described gave me goosebumps! I'm out! Apr 11 10:59:07 feesh: the layout? Apr 11 10:59:22 I have a crazy product manager... Apr 11 10:59:24 relative layout, with 4 other relative layouts, a fragment and ... Apr 11 10:59:33 WE'RE NOT DONE YET! Apr 11 10:59:45 :D Apr 11 11:01:08 How do I finish() an activity from another class? because I set the listener on my adapter :| Apr 11 11:01:29 xviv: do you have a context? Apr 11 11:01:38 feesh: I'm sorry Apr 11 11:01:40 O_O Apr 11 11:01:47 please come back here and love me Apr 11 11:01:53 hmm Apr 11 11:02:43 does anyone have a checksum of the latest google authenticator? you know... for like... authenticity purposes? Apr 11 11:03:10 are there any good rules on data retention fetched from XML/JSON? Apr 11 11:03:18 feesh: any idea why this will trigger a nullpointerexception in one place but not in a different one in the code? Apr 11 11:03:20 it's rather static (eg updates once a week or so) Apr 11 11:03:37 so I was wondering if caching it on the device would be okay, Apr 11 11:05:49 belgianguy: surely it entirely depends on what the data is? if - say - it's weather data, it'll be rather out of date in a week Apr 11 11:06:31 you'll have to come up with your own rules Apr 11 11:08:10 http://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html#getBitmap() this will get me bitmap without applied colorfilters, right? but I want bitmap after filters are applied. how to do that? Apr 11 11:08:51 or... I have a grayscale icon, and want to tint it to some colors. and I need to get Bitmap. Apr 11 11:08:57 Leeds: true, but it's data that's fresh for quite some time, not the weather :) Apr 11 11:08:59 belgianguy: can you be more vague :) Apr 11 11:10:01 belgianguy: well could the application learn how often it updates and check for it when it expects new content? Apr 11 11:10:03 g00s: sorry, I just haven't cached much before Apr 11 11:10:31 Ankhwatcher: well, maybe I could set up a service so it updates once a week, or on user command Apr 11 11:10:48 belgianguy: exactly! Go do that! Apr 11 11:11:15 Ankhwatcher: and how would I store said data? raw JSON? serialized Java? Apr 11 11:11:33 (the target is a SQLite db) Apr 11 11:11:56 belgianguy: that's up to you, you can output the json to a file or store it in a table Apr 11 11:12:37 Ankhwatcher: ah k, will write out some use cases and see what fits my solution best, thanks! Apr 11 11:13:51 can anyone please check which google authenticator this is and wether the checksum coincides with the original one? - https://mega.co.nz/#!xskTwB4a!HREYCFoTZFtGgZl_s2DvHxtVxAN2uhMXAbn5hs5-0c8 Apr 11 11:14:47 hi, i don't quite understand the Camera API...I need to get the video-data like in the preview, but i have no clue how to get to the data Apr 11 11:15:17 ca anyone tell me, how to do that? Apr 11 11:16:12 quietschie: in very general words (I don't work with Camera): You make a SurfaceView, and pass it to Camera code + a callback to notify you when it paints to it Apr 11 11:17:56 p_l:i habe to add the callback to the camera or to the surfaceView? What is then returned to me? Apr 11 11:19:03 could someone explain to me why BluetoothDevice.createRfcommSocketToServiceRecord needs UUID as an argument? Apr 11 11:19:06 quietschie: to the camera code, iirc Apr 11 11:19:24 surfaceView is passed to CameraPreview as well Apr 11 11:20:33 thepoosh, as miha said, RelativeLayout's children depend on each other in some instances, so removing a view could cause an NPE though I would of thought it wouldn't of done Apr 11 11:20:34 ok, and then the bitmap data is passed to the Callback as argument? Apr 11 11:21:24 quietschie: no, it's painted straight to surface view so you get it on screen Apr 11 11:22:33 p_l:yeah, but i'd like to send the data to a pc via socket, so i need to get the actual bytes Apr 11 11:23:55 Which is the better solution - Having 2 threads where 1 connects a phone to a bluetooth device and the other thread doing the reading and writing to said bluetooth device, or having 1 thread do both of these things? Apr 11 11:24:01 quietschie, isn't that what RFCOM is used for? Apr 11 11:24:46 feesh: RFCOM? Sry, never heard of it Apr 11 11:26:30 is the reason that there's no real facebook app alternatives a legal thing? Apr 11 11:27:50 quietschie: then you needs slightly different stuff - camera api isn't my forte Apr 11 11:28:11 feesh: he needs the camera stream first :) Apr 11 11:28:42 Lite_: one thread is enough... you aren't going to redo handshake all the time while sending, right? Apr 11 11:28:42 ok, thank you anyways, p_l Apr 11 11:28:57 no Apr 11 11:29:09 the tcp connection is working for my purposes Apr 11 11:29:23 okay, thanks p_l Apr 11 11:32:23 Can anyone tell me how to get the actual video-image data from the cam? Apr 11 11:33:16 quietschie, I think when you're streaming it's all done under the hood so you don't get glistening 720p image data passed to your app Apr 11 11:33:24 but I've never played with video stream Apr 11 11:33:34 but you can get preview frame image data Apr 11 11:34:09 in the form of bytes Apr 11 11:35:30 feesh: the under the hood version would be very nice, what do you recommend? I still don't know what RFCOM is or does. The previewed bytes should also do it. Apr 11 11:35:46 quietschie, RFCOM I thought was serial over bluetooth Apr 11 11:36:01 maybe a potential method for streaming bytes over bluetooth Apr 11 11:36:07 but not played with it myself either :( Apr 11 11:36:16 quietschie, give me a minute pal Apr 11 11:36:27 ok, i have to use wifi, not bluetooth Apr 11 11:39:52 quietschie, I can give you a drop in view I wrote for Camera Apr 11 11:40:24 that would be great help. thanks! Apr 11 12:00:07 Hello folks Apr 11 12:00:24 quick question - arrays.xml has a structore of , which is great\ Apr 11 12:00:38 what I'm wondering is whether the objects can have multiple values Apr 11 12:00:40 like say Apr 11 12:00:50 Apr 11 12:01:09 or is it strictly single value only? Apr 11 12:01:30 Tee_Pee: I've made an array of arrays Apr 11 12:01:52 Tee_Pee you make a string-array, it contains strings Apr 11 12:02:41 Tee_Pee: https://gist.github.com/joar/5362841 Apr 11 12:03:50 that will be more than enough, thanks Apr 11 12:05:07 It's inconvenient though and I'll move to JSON and non-android-resource images Apr 11 12:06:16 what I am trying to do is simple... I want to have a single place to keep track of categories used by my app Apr 11 12:06:35 I don't want to have to update 10 List objects down the line whenever I want to make a change here Apr 11 12:06:58 I have another place in my app where I use a JSON file. Apr 11 12:07:14 much easier to maintain complicated data structures than android resources Apr 11 12:07:55 Tee_Pee: what's the data structure of the data you'r going to put in the file? Apr 11 12:08:25 id, name, drawable id Apr 11 12:08:42 Tee_Pee: so the drawable one is the issue Apr 11 12:08:48 (for now) Apr 11 12:09:09 or if the id is an R.id.* id then that's also an issue Apr 11 12:09:17 in case you'd want to use JSON Apr 11 12:09:24 The thing is Apr 11 12:09:49 hmpf... no idea, I think the resource thing will work Apr 11 12:09:51 by doing it like this Apr 11 12:10:07 1 Streets @drawable/streets_df Apr 11 12:10:24 It will work in a file, but R.* doesn't work in a JSON file. Apr 11 12:10:24 Make loads of those, then just one last array called "categories" that will have those arrays as items Apr 11 12:10:30 but JSON files are easier to maintain Apr 11 12:10:31 aye Apr 11 12:28:48 what's the deal with EasyTracker versus GoogleAnalytics classes? Which should i use? Docs use them both, i suspect they are outdated here and there Apr 11 12:41:51 afternoon all Apr 11 12:42:22 afternoon Apr 11 12:45:42 anyone know what resize/filter method the nexus 10 uses when playing HD content ? Apr 11 12:46:12 or does it just dupe every 3rd pixel :) that would be funny Apr 11 12:46:32 that'd look like crap, wouldn't it Apr 11 12:46:40 well, maybe Apr 11 12:46:51 if it's small enough and you bob/weave it Apr 11 12:46:55 maybe not Apr 11 12:47:05 would be cheapest % way to do it Apr 11 12:47:30 as in a pixel is small enough Apr 11 12:47:36 I was just interested Apr 11 12:48:28 can anybody help me with this: http://stackoverflow.com/questions/15922098/android-app-for-radio-streaming-mms-howto Apr 11 12:48:31 until someone comes out with a 3840x2160 it's not gonna be great for HD stuff Apr 11 13:03:12 I am new to Android and kind of confused how java is being used there - so I was wondering if I could see some tutorial which can teach the language w.r.t java and make me comfortable with java syntax Apr 11 13:06:40 connecting to an irc server and chatting here is considerably more difficult than finding java 101 tutorials on the internet :) Apr 11 13:06:57 i think they're both absurdly easy ;) Apr 11 13:07:27 well, my point was made I think :) Apr 11 13:08:13 it's one thing to ask a question knowing that this will help you learn so much faster that it's worth while it's another thing to not even attempt to learn on your own Apr 11 13:12:54 itsaboutcode: google: thinking in java google: oracle java tutorial (ignore GUI part and some specific api, but collections, network, files, threads work more or less the same on android) and for gui and other android specific things https://developer.android.com/ Apr 11 13:13:23 itsaboutcode: i liked java 2 bible, if you can find it somewhere (thinking in java should do too) Apr 11 13:14:05 miha: thanks Apr 11 13:17:02 itsaboutcode: consider heading to http://docs.oracle.com/javase/tutorial/. Also go to #java (don't mention Android) to ask Java specific questions. Apr 11 13:17:12 +1 lov Apr 11 13:17:26 why not mention android ? Apr 11 13:17:31 out of interest Apr 11 13:18:01 itsaboutcode: what is your programming experience? Apr 11 13:18:02 because they'll immediately shut down and go "ANDROID DOES NOT USE JAVA" because of dalvik and possibly refuse to help. Apr 11 13:18:31 oh, wow Apr 11 13:18:31 so, you generally need to be a little ginger in the phrasing of your questions. Apr 11 13:18:46 I mean I kind of understand why they do it but they can go too far. Apr 11 13:19:06 IRC is sometimes not a friendly place. Apr 11 13:19:28 joar`: freenode is mostly harmless compared to *other* networks :p Apr 11 13:19:45 I'm not so sure about that. Apr 11 13:19:51 well, I think really you can never give offence, somebody needs to "take" it :) Apr 11 13:19:58 lov: do you get DDOSed here? Apr 11 13:20:08 even #android-dev can be harsh at times compared to what I'm used in #mediagoblin Apr 11 13:20:20 miha: no, though it'd be my shell not myself. Apr 11 13:21:12 itsaboutcode: i'd still recommend you get some book first, before tutorials. thinking in java, java2 bible, something else (perhaps from local library) Apr 11 13:21:28 so you get fast start on basic concepts Apr 11 13:22:17 especially if you are new to object oriented programming Apr 11 13:28:49 how do centerX/Y work for linear gradient drawables? Apr 11 13:28:57 whatever I put ther it doesn't change Apr 11 13:30:33 ah, that's because I don't have a centerColor Apr 11 13:55:33 is there an ABS equivalent of getChildFragmentManager? Apr 11 13:56:49 StingRay_: I think I'm getting closer to something I'm relatively happy with: http://bildr.no/image/1436164.jpeg Apr 11 13:56:57 joar: what thinks? :) Apr 11 13:57:57 Quacked: yeah, still not a fan Apr 11 13:57:59 :) Apr 11 13:58:00 sorry Apr 11 13:58:13 I didnt think you would be, hehe Apr 11 13:58:26 numbers at that size are irrelevant Apr 11 13:58:34 yeah, I'm wondering about that Apr 11 13:58:35 the shade pallet dont work Apr 11 13:58:40 as in lines etc Apr 11 13:58:51 you mean the inner glow? Apr 11 13:58:53 there is no def on the squares to make them pop Apr 11 13:59:08 the dirty shadow thing around it just looks odd Apr 11 13:59:11 def? Apr 11 13:59:18 StingRay_, long time no see Apr 11 13:59:22 definition Apr 11 13:59:38 yeah, Im gonna work on that shadow which is just inner glow.. Im just trying to make it look like a button Apr 11 13:59:40 the grid lines run off the icon edge Apr 11 13:59:53 yeah, Ill fix that grid line on the edge Apr 11 13:59:56 the font edges look soft and will not resize well Apr 11 14:00:07 overall it just doesnt work for me :) Apr 11 14:00:10 should they be crisp to resize better? Apr 11 14:00:14 even if you fix those things Apr 11 14:00:19 sharp* Apr 11 14:00:50 ill try that out anyways Apr 11 14:01:04 hi, how can I figure out what opengl es calls are executed on the gpu? Apr 11 14:01:12 probably best not to ask me in future btw Quacked :) Apr 11 14:01:51 StingRay_: are you kidding? this is top feedback Apr 11 14:02:10 yes but fix all of what I just said and I would still dislike the concept Apr 11 14:02:17 it's wrong etc Apr 11 14:02:20 to me Apr 11 14:02:24 yeah, thats ok Apr 11 14:02:39 you still point out things that I can fix that makes it look better to me Apr 11 14:02:48 hmmm, maybe Apr 11 14:03:03 this time I started in illustrator.. but that was painful :D Apr 11 14:03:57 the other grid icon you showed me looks 100x better than the grid you have at the moment btw Apr 11 14:04:36 if you copy that style, and then sort out the dirty inner shadow/bevel or whatever it's attempting to be, then I would maybe dislike it a hell of a lot less Apr 11 14:06:10 What is the meaning of "context" in building intent ? Apr 11 14:09:10 StingRay_: you mean this one? http://bildr.no/view/1436053 Apr 11 14:09:19 god no Apr 11 14:09:22 hehe Apr 11 14:10:03 https://lh3.ggpht.com/pW9KhMt0-4hTJEUoG1Y4tY1BCFreB-q7RMWJ4aacdWr3RkqoKn4fwBMyfio=w78-h78 ? Apr 11 14:10:03 you showed me a nice icon with a 5x5 grid Apr 11 14:10:08 yes Apr 11 14:10:10 that one Apr 11 14:10:23 that has details that pull Apr 11 14:10:30 shading differences etc Apr 11 14:11:05 not that I would have done a cut out/drop shadow with it, but that one is something like what I would aim for Apr 11 14:11:29 yeah, I'm aiming for something like that.. but there is no higher res version, so its extra difficult to understand whats been done (to me) :) Apr 11 14:11:46 well directional shading Apr 11 14:12:55 wonder how those grid lines are made Apr 11 14:13:03 with squares ? Apr 11 14:13:06 ;) Apr 11 14:13:10 hehe Apr 11 14:13:13 heuhue Apr 11 14:13:37 Is anyone else having issues with obtainStyledAttributes returning an empty set? Apr 11 14:14:43 StingRay_: theyre so slim and yet possible to see in low res Apr 11 14:15:02 indeed Apr 11 14:15:04 ? Apr 11 14:15:28 its probably magic Apr 11 14:15:33 thats cause you design something based on it's most common view Apr 11 14:15:46 in this case a small ass icon on the launcher Apr 11 14:15:49 :) Apr 11 14:16:42 but how the hell is it done? only way I know to make the lines seen in low res is to make it FAT in high res :D Apr 11 14:17:21 I dont get what you mean Apr 11 14:17:32 they will take 1 or 2 pixels at that size Apr 11 14:17:51 and even if it's for a presentation icon, thats 5x the size Apr 11 14:18:00 I would still only have x2 the thickness Apr 11 14:18:08 we're on the cool side of the split Apr 11 14:18:09 you dont design using math Apr 11 14:18:10 we have the ops Apr 11 14:18:42 ok thats a lie, sometimes you do Apr 11 14:18:44 :) Apr 11 14:18:48 StingRay_: so you make different icons for different resolutions instead of just resizing a large one? Apr 11 14:19:06 depends on context and elements Apr 11 14:19:12 ok Apr 11 14:19:56 if you just resize, you then have to consider resize method and what that will do to details Apr 11 14:19:58 eg Apr 11 14:20:09 you have a grid that is spaced 11 pixels apart Apr 11 14:20:20 x or / byt 2 and that dont work Apr 11 14:20:23 yeah, I blew up a 78x78 version.. and I see lines are completely off Apr 11 14:20:51 StingRay_: ahh.. that makes sense Apr 11 14:20:59 neways, I have to return to my dev mode and do some work, I'm running out of money fast Apr 11 14:21:08 hah, thanks again Apr 11 14:21:08 hmm, I'm displaying a SeekBar for some properties I get from my JSON data, what's the best way to associate that property and the SeekBar? Apr 11 14:21:14 damn how to rebuild this R.id's .. i inserted something at start of menu and now all id's are wrong Apr 11 14:21:27 writing a custom View to hold the id? Apr 11 14:21:28 miha: Do a clean. Apr 11 14:21:35 miha: project-clean in eclipse Apr 11 14:21:43 Or if that doesn't work, I've had to delete R.java sometimes. Apr 11 14:21:47 i have some jni libs.. is it safe to clean? :) Apr 11 14:22:33 miha: If it isn't safe to clean, there's something wrong with your project's stability in general :P Apr 11 14:22:40 ThymeCypher: :D Apr 11 14:22:43 ThymeCypher++ Apr 11 14:23:24 ok cool Apr 11 14:24:58 Oh the magic of IRC. 1) I have a problem 2) I'll ask a group of people about it. 3) The problem magically went away anyway. Apr 11 14:25:25 ThymeCypher: glad to be of help Apr 11 14:25:27 not judging from experience, but irc is like AA meeting Apr 11 14:26:03 Seems so. Apr 11 14:26:57 I spent 2 hours trying to get a custom attribute set to work, and the moment I asked the question on here - with no code changes whatsoever, they finally appear in the layout editor. Apr 11 14:32:01 soo, if I have a list of SeekBars, and I wish to relate their values to a property I have stored in an online database, what would be the easiest way to link those Apr 11 14:32:39 hack that property into their @+id/? Apr 11 14:33:01 a list? like in a listview? Apr 11 14:33:13 no, just a linearlayout of seekbars Apr 11 14:33:17 easiest would be to have a ListAdapter that converts the values to and from Apr 11 14:33:48 otherwise, just maintain a mapping of db keys vs. R.id values for your seekbar Apr 11 14:34:00 inflate(context, layout, root) returns root but according to doc makes sure that the layout_* attributes are inflated correctly, inflate(context, layout, null) returns the inflated layout. Can I have layout_* be inflated correctly and be returned the inflated layout? Apr 11 14:34:35 pfn: ah, yeah, could just use a mapping Apr 11 14:46:19 Aw chit. Updating eclipse breaks ADT. Lovely. Apr 11 14:47:46 Hi Apr 11 14:48:27 Hello netizen :D Apr 11 14:49:18 morning Apr 11 14:52:46 Guys, I can't learn Android API from doc but sample code. Any idea what is wrong with me? Apr 11 14:53:47 xviv: You're bad at reading docs, you don't recognise the terminology used in docs. Apr 11 14:54:49 joar`: Yeah, I think so. Any solution? because sometimes it is hard to find some sample code. Apr 11 14:55:04 Google with the word "tutorial" Apr 11 14:55:16 those usually explain things rather well Apr 11 14:55:30 "vogella" would also help I think Apr 11 14:56:58 is it just me or are AdMob's SmartBanner test ads currently broken (i.e., normal Banner ads are returned)? Apr 11 14:57:10 huh, I'm doing setSystemUiVisibility(SYSTEM_UI_FLAG_HIDE_NAVIGATION) and window.addFlags(FLAG_FULLSCREEN); how do I get my content view to resize? Apr 11 14:57:14 Did you guys think this is because I don't read doc from starter? Because I just read the doc what API I wanna know. Apr 11 14:57:26 I do contentView.invalidate(); but getWidth and getHeight still report the previous dimensions Apr 11 14:57:54 xviv, what's wrong is that you are a beginner and don't really understand programming yet Apr 11 14:58:02 hence the need for "example" code Apr 11 14:58:08 since beginners tend to learn by example Apr 11 14:58:29 xviv, improve your programming basics, and then reading docs becomes natural Apr 11 14:58:51 pfn: By coding in java? Apr 11 14:59:37 by writing lots of code for various problems Apr 11 14:59:50 try starting off with projecteuler.net Apr 11 15:01:22 Thanks pfn, that is exactly what I need. Because just practicing code without target is kinda boring, IMO. Apr 11 15:02:07 xviv, basically, practice makes perfect, the more you do, the better you get Apr 11 15:03:28 any dev searching for a small project? ;) Apr 11 15:03:35 Thanks again, pfn ! Apr 11 15:03:59 netizen: how small ? Apr 11 15:04:16 xviv, maybe spend a little time reading blogs, articles, and books in the programming domain you're interested in Apr 11 15:04:21 one mans small is anothers….erm…… not so small Apr 11 15:04:28 a special Tasker (Llama/Locale/et-all) Plugin Apr 11 15:04:41 xviv, and some programming essentials books, like if you plan on doing a lot of java and android, thinking in java and java concurrency in practice are good foundations Apr 11 15:05:12 I've even located sample code for what I want, but I don't have any time to learn JAVA Apr 11 15:07:29 netizen Apr 11 15:07:30 it's easy Apr 11 15:07:56 pfn: I used to do that, I have read Head First Java, 2nd Edition. It tells me about some concept and function or common class in java. After 2 months I stop read and practicing that because I just forget that somehow. Hence I start coding in Android to get objective to resolve. But the link you given to me is cool! Apr 11 15:08:26 I don't think otherwise, but I'm IT Manager without any IT or CS degree. I must survive with my own knoledge Apr 11 15:08:36 xviv, consider topcoder.com, too, they also have some programming problems Apr 11 15:08:49 netizen, rentacoder to the rescue Apr 11 15:09:09 there was a time when I loved to learn new languages and systems, but it's long gone Apr 11 15:09:32 #android-dev isn't for hiring/advertising Apr 11 15:09:51 see topic Apr 11 15:09:59 pfn: Paying? I already have what I want via dirty hacks, I'd just love to see a good clean implementation Apr 11 15:10:26 you assume you'll get someone to do it for free? Apr 11 15:10:48 pfn: Maybe lack of english vocab is one of my problem. And I feel grateful when I could chat with you guys here. You guys know what I ask for although my english is sucks. :| Apr 11 15:11:21 I don't mind if they sell it. I buy software, not every day, but every week for sure Apr 11 15:11:45 My N4 has more value in paid software than hardware Apr 11 15:12:47 netizen: you are aware that development costs do not equal off the shelf user purchase price ? Apr 11 15:13:49 Yes, I was a shareware dev back in the usenet days Apr 11 15:14:16 netizen: start a company, rent coders, make money? Apr 11 15:14:25 or do you want to be cheap? Apr 11 15:14:29 miha, you missed the '???' Apr 11 15:14:53 step 1: collect underwear, step 2: ???, step 3: profit! Apr 11 15:15:27 http://www.southparkstudios.com/clips/151040/the-underpants-business Apr 11 15:16:06 I was just looking for someone that wanted to learn/improve his skills in an OSS related channel, seems nowadays money rules everything Apr 11 15:16:47 worth has always ruled Apr 11 15:16:50 i apologise for being such a neoliberal :p Apr 11 15:17:03 hello Apr 11 15:17:06 just we use money to denote worth Apr 11 15:18:05 i am trying to build aosp for maguro. i grabbed the sources, lunch full_maguro-eng; make. however in my out directory, there is no boot.img. the make ends with "No rule to make target `/local/omn/google//Groundhog/target/product/maguro/kernel', needed by `/local/omn/google//Groundhog/target/product/maguro/boot.img'. Stop." Apr 11 15:18:15 any idea why such target doesnt exist? Apr 11 15:19:31 IIRC you need to sync the kernel tree separately from AOSP itself Apr 11 15:22:07 Hi, whenever I try to use File and FileWriter to write to a file with my android app, I get read-only file system all the time exception Apr 11 15:22:19 *read-only file system exception all the time Apr 11 15:22:23 WhereIsMySpoon, you're probably not writing into the conetxt directory Apr 11 15:22:42 WhereIsMySpoon, http://developer.android.com/guide/topics/data/data-storage.html Apr 11 15:23:33 so next week is my last week of working with android for work Apr 11 15:23:50 kaneda^: oh no Apr 11 15:23:53 why ? Apr 11 15:24:02 you turning evil ? Apr 11 15:24:06 StingRay_, switching jobs, and the new job doesnt include android, that's all Apr 11 15:24:15 i'm not switching to iOS or win phone, i promise ;) Apr 11 15:24:24 oh, suppose thats ok Apr 11 15:24:36 kaneda^: so, Oracle ? :p Apr 11 15:24:43 so any help we give you will be useless in a week Apr 11 15:25:11 belgianguy, nah, it's actually ruby/python/bash mostly Apr 11 15:25:25 kaneda^: ah, that looks nice Apr 11 15:25:36 xorgate, ya right ;) Apr 11 15:26:30 hey i got a question... what am I supposed to do when I design a UI for a couple of devices. Both fall under the same category (normal) both have the same dpi category (hdpi) but they dont have the same resolution which enforces me to design 2 sets of images and backgrounds... so now I have two images which need to reside in the same drawable folder. How do I differentiate? Apr 11 15:26:43 I was testing a simple app that connects to a ServerSocket, retrieves data and plays it with an AudioTrack object. It works okay except that when there is a network error the whole app vanishes. It doesn't go to the catch block for some reason. Can anyone help me out? Apr 11 15:27:15 how can I include vitamio in my project in eclipse? Apr 11 15:28:11 vangi__: depends on the content of the images/bg Apr 11 15:29:24 vangi__ there are different directories like drawable-hdpi and drawable-xhdpi. if both have the same dpi, maybe use some code to get the screenresolution and display the image based on the condition? Apr 11 15:29:30 StingRay_, well, basically I have a ViewPager that shows images. One device is a 800x480 res... and the other is 540x960 I need bigger images for this one Apr 11 15:29:55 well whats the src/context of these images ? Apr 11 15:31:30 StingRay_ all images are in drawable-hdpi. Each image is a fragment with a ImageView Apr 11 15:31:42 I call the images with a switch case block Apr 11 15:31:46 not really what I mean Apr 11 15:31:47 theres an adapter Apr 11 15:31:49 vangi__: http://stackoverflow.com/questions/6162181/how-to-scale-an-image-in-an-imageview-so-that-it-fits why not just scale the big image? Apr 11 15:32:03 or scale with matrix if you need something custom Apr 11 15:32:05 I mean what is the content of the image Apr 11 15:32:05 hmm sorry, then I didnt understand the question Apr 11 15:32:09 if I look at it Apr 11 15:32:13 what do I seeeeee Apr 11 15:32:15 :) Apr 11 15:32:19 vangi__: why do you need two images for two resolutions? Apr 11 15:32:19 :) Apr 11 15:32:47 miha: can need that for many reasons Apr 11 15:32:58 the obvious is 1:1 detail Apr 11 15:33:05 The imags are images of animals :) Apr 11 15:33:10 did you mean that lol? Apr 11 15:33:14 yes Apr 11 15:33:20 and are they created by you ? Apr 11 15:33:24 well theres one animal per picture Apr 11 15:33:37 the images were downloaded from shutterstock Apr 11 15:33:39 cropped by me Apr 11 15:33:41 in photoshop Apr 11 15:33:45 brilliant Apr 11 15:33:53 so have 1 source Apr 11 15:33:58 eg the biggest Apr 11 15:34:06 * miha still thinks its better to scale and crop automatically Apr 11 15:34:12 but hey.. Apr 11 15:34:23 hmm Apr 11 15:34:30 then use bitmapOptions Apr 11 15:34:31 one that is larger than all resolutions? Apr 11 15:34:38 to load only the innner crop area Apr 11 15:34:43 for the small screen Apr 11 15:34:56 so they all use same bmp Apr 11 15:35:05 but load different parts of it Apr 11 15:35:15 ooo i can do that? Apr 11 15:35:18 bitmapOptions Apr 11 15:35:20 ya Apr 11 15:35:49 and how do I differentiate? how cn I know on what device im currently running? Apr 11 15:35:56 all you really need to do is in PS, have a stepped crop template so when you do the largest crop, you can also see the others Apr 11 15:36:04 get the screen metrics Apr 11 15:36:19 ohh I see Apr 11 15:36:32 Alright gonna try that right now! Apr 11 15:36:34 brb Apr 11 15:36:37 good luck Apr 11 15:36:39 :) Apr 11 15:36:40 THANKS!!! :) Apr 11 15:36:44 vangi__: http://stackoverflow.com/questions/5910653/how-to-scale-image-according-to-screen-resolution Apr 11 15:37:22 miha: thats irrelvant when there are diff aspects Apr 11 15:37:23 miha :) thank you Apr 11 15:37:42 there's some code there to get the size of the screen no? Apr 11 15:37:57 or this Apr 11 15:38:04 you want display avaiable Apr 11 15:38:08 http://stackoverflow.com/questions/1016896/android-how-to-get-screen-dimensions Apr 11 15:38:09 not really the screen widths Apr 11 15:38:51 as in you want the screen XY - (status bar + system bar) Apr 11 15:38:55 this: Apr 11 15:38:58 DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); metrics.heightPixels; metrics.widthPixels; Apr 11 15:39:05 ? Apr 11 15:39:09 yeah thats it I think Apr 11 15:39:13 easy to try :) Apr 11 15:39:20 ahh nice! yeah gonna do that now Apr 11 15:39:21 brb Apr 11 15:39:34 pfn: hmm, would I be able to extend a SeekBar to contain said property? Apr 11 15:39:51 (an id of a property) Apr 11 15:39:52 belgianguy, what property? the database key? why would you Apr 11 15:40:05 you could, if you wanted, sure Apr 11 15:40:15 so you can declare it in layout, I suppose Apr 11 15:40:19 just define your own attribute Apr 11 15:40:23 vangi__: and if you want to crop so animal is always same size, you calculate according to metrics.density too, not just width/height ( http://developer.android.com/guide/practices/screens_support.html ) Apr 11 15:40:33 for next step :) Apr 11 15:40:41 pfn: I'm almost sure it'll be dynamically generated Apr 11 15:41:01 miha oo thanks.. ill check this out next ! :) Apr 11 15:42:29 pfn: I just thought it'd be more clean if I extended the class Apr 11 15:42:37 rather than using a mapping array Apr 11 15:42:52 extending classes isn't often clean Apr 11 15:42:59 hey guys, does anyone know of a solid solution for playing back HTML5 video in a WebView with SDK 4.2? Apr 11 15:44:30 why can't you just do that? Apr 11 15:44:44 load up a webview, go to a page with a