**** BEGIN LOGGING AT Sun Jan 29 02:59:58 2012 Jan 29 03:00:17 Hm.. Jan 29 03:00:37 Well ImageView has specific properties to deal with scaling. Jan 29 03:00:55 I'm not like an expert on anything like this, by the way. Jan 29 03:00:58 also screen orientation is a factor Jan 29 03:01:11 Well, I mean, you just handle that with properties or code or whatever. Jan 29 03:01:20 If you want to force one, set the XML property on the root layout. Jan 29 03:01:28 neither am i, just need someone who more experienced than me to bounce some ideas off of Jan 29 03:01:31 Otherwise set one of those onOrientationChangeListeners or whatever htey are called. Jan 29 03:02:01 if i used a linear layout, doesn't that scale automatically ? Jan 29 03:02:18 or maybe use image views inside the linear layout? Jan 29 03:02:35 Yeah, I dunno what the scaling behavior of a linear layout is. Jan 29 03:02:54 I just know that ImageViews have more robust scaling properties. Jan 29 03:03:12 ok, i'll do a little research on that, thank you, you've helped me more than you know :) Jan 29 03:03:30 I think it's preferable to inflate one layout, not two. Jan 29 03:04:09 So either finding a way to make the background on a LinearLayout scale properly, implementing the ImageView properties/methods in a child of LinearLayout (or AbsoluteLayout or whatever). Jan 29 03:04:13 also, can i view a textview inside a view or surface view ? Jan 29 03:04:17 Or something like that. Jan 29 03:04:25 I think you can have TextViews inside of any ViewGroups. Jan 29 03:04:43 awesome ok Jan 29 03:04:52 I think a SurfaceView is actually more equivalent to an ImageView. Jan 29 03:05:16 So it's not a container for other views. Jan 29 03:05:35 Anyway, good luck with all that. Jan 29 03:05:44 ah, ok, that explains a few things lol Jan 29 03:07:25 http://stackoverflow.com/questions/1400782/android-scale-a-drawable-or-background-image Jan 29 03:07:38 Looks like the common mechanism for scaling is to use the ImageView. Jan 29 03:08:13 For your application, you don't need to pay attention to the bits they are talking about with the FrameLayout/RelativeLayout, since your layouts will contain exactly 1 thing (the imageview). Jan 29 03:10:07 well actually, the "view" will have a background, with 8 other images on top in specific locations Jan 29 03:10:27 but all need to be scaled properly Jan 29 03:10:38 Sure, I guess I was just thinking of the first one. Jan 29 03:10:47 in c or c++ i would make an image buffer and put everything in that, then scale it, then display it as one Jan 29 03:11:08 is this possible in a linear layout ? Jan 29 03:11:41 Don't know what that means, but I would guess that it's not a good idea. Jan 29 03:12:02 I think it's preferable to use native Android layout handling as much as possible. Jan 29 03:12:07 And avoid doing things like scaling and whatnot. Jan 29 03:12:16 Because phones are slow, and operations cost battery. Jan 29 03:12:41 Plus, Android device fragmentation is insane. Jan 29 03:13:02 So hopefully each implementation on the device is tailor made to react more or less the same way. Jan 29 03:13:50 So where possible, you should probably use a single layout (ViewGroup) with a background (if the built-in scaling properties work for you). Jan 29 03:14:02 And when that fails, probably use an ImageView and use their built in scaling. Jan 29 03:14:31 So if you want to use an ImageView for the background, you should probably do as they say, use a FrameLayout or AbsoluteLayout or RelativeLayout. Jan 29 03:14:48 And create an ImageView with layout_height and layout_width = 0dp or match_parent. Jan 29 03:14:59 And probably focusable="false" Jan 29 03:15:10 Make sure it's at the bottom in the Z-direction. Jan 29 03:15:24 Set the android:scaleType to be whatever you want it to be. fitXY, Matrix, whatever. Jan 29 03:16:12 But again, I'm not an expert, I'm just basically parroting things that people tell me in this room or in documentation. Jan 29 03:16:21 that all sounds good, i will give it a go Jan 29 03:16:24 So maybe someone will come along and tell you how wrong I am. Jan 29 03:16:41 again, thank you for your insight, it has proven to be very useful :) Jan 29 03:17:51 oh, one more thing, how important is it to have drawables for every screen density? Jan 29 03:18:11 so far, i've got a total of 77 images in one density Jan 29 03:18:18 No idea. Probably not very. Jan 29 03:18:23 one of those being the background Jan 29 03:18:34 Just test it at a few densities and see that it looks OK. Jan 29 03:18:56 ok, i'm gonna try your advise now and see how it goes, thanks again :) Jan 29 03:19:00 * havoc74 is AFK... Jan 29 03:19:00 Best of luck. Jan 29 03:20:38 Does anyone here have any idea what the easiest (most reversible) thing to change that would allow me to install multiple versions of the same app on a device? Jan 29 03:21:18 i can only think of the package name... Jan 29 03:21:59 you might be able to write ant build script or something that changes the package name in the manifest to something relying on the version number... Jan 29 03:23:16 I have a driver request guys... I have a motorola webtop 500 with my razr, and a set of microsoft lifechat lx-3000 headphones... the problem is, microsoft only made drivers for the headset for windows... anyone interested in porting the driver to droid? :) Jan 29 03:24:05 Hm. Jan 29 03:24:17 Not the name in the AndroidManifest, yes? Jan 29 03:24:20 The package name in Eclipse? Jan 29 03:24:58 How much has this Jygga been kicked today? Lol Jan 29 03:25:57 i mean the package name in the manifest Jan 29 03:26:25 Ah. Jan 29 03:26:47 Is there a simple way to do the equivalent of an Eclipse refactor? Jan 29 03:26:50 To update references? Jan 29 03:26:54 if you use ant to build the app, it'd be external to eclipse...might get complicated :S Jan 29 03:26:58 i don't know unfortnately Jan 29 03:27:08 Yeah, this is annoying. Jan 29 03:27:18 I wish I could just create a virtual machine on my phone. Jan 29 03:28:20 I guess Jygga doesn't get it... lol... so no one has any suggestions for getting my headset to work, or a solution that already exists? Jan 29 03:28:37 dragonriot-droid: I doubt anyone is going to write a driver for the headphones. Jan 29 03:28:43 I mean, unless they already had reason to. Jan 29 03:29:41 Well... I guess that's to be expected... on that note, if anyone has a Webtop 500, and has figured out how to get the sound to to come through the speakers on the dock and use the microphone on the dock instead of everything still going through the phone, I'd love you forever. Jan 29 03:30:27 Actually... sound works fine when playing audio or videos on the machine... but phone calls still go through the phone, which is slightly irritating. Jan 29 03:31:46 Maybe try #android or #android-root instead of #android-dev Jan 29 03:32:04 Mmkay Jan 29 03:32:08 Thanks anyway. =) Jan 29 03:33:01 good night all Jan 29 03:56:58 anyone with xp recovering android market? Jan 29 03:58:50 hah, android's listview is so slick. It actually estimates the size of the list from the visible items, in order to render that side scrollbar Jan 29 03:59:18 but in my case I have one like 100 times longer item in the listview, and the scrollbar reacts accordingly Jan 29 04:00:06 the result is not the most convincing, but whatever, for now it will do Jan 29 04:01:24 hey guys Jan 29 04:02:02 im trying to build an app that has a spinner wtih a bunch of school names Jan 29 04:02:30 i can hard code that in a resource file and then give it to the spinner but when i add more schools i have to update that resource file and give an app update Jan 29 04:02:38 is there any better way of going about this ? Jan 29 04:10:02 I want to play sine waves, what would be the best method to have them loop without clicking Jan 29 04:12:16 dlaroche: select sin length that is evenly divisible with your buffer length Jan 29 04:12:38 how do I determine that? Jan 29 04:12:41 so for instance if you have 8192 frames of buffer, you can make sin loop, say 1000 times in that, and this will then not click Jan 29 04:12:51 dlaroche: well the sin cycle length is 2*pi Jan 29 04:13:49 a person might write it something like this: Jan 29 04:14:13 buffer[i] = sin((double) i / buffer.length * repeats * 2 * Math.PI) or something Jan 29 04:14:24 if repeats = 1, the sin will repeat once within that buffer Jan 29 04:14:39 (as the index goes from 0 .. 2*pi, and reaches a full sin cycle once) Jan 29 04:15:11 this is implied to be written in a for (int i = 0; i < buffer.length; i ++) and mono audio Jan 29 04:15:34 ok thank you, i will compare this to what i have Jan 29 04:21:02 also every iteration such as for (int i = 0; i < ...; i ++) {} where you do sin(a * i + b) is convertible to iteration with no sin() or cos() inside the for expression Jan 29 04:22:51 http://www.iquilezles.org/www/articles/sincos/sincos.htm is a writeup about this trick Jan 29 04:23:04 that's just if you find that sin and cos are for some reason too slow Jan 29 04:23:51 thank you, I just want to supply a frequency, and have the function generate it so that it can be played through AudioTrack Jan 29 04:24:19 i have something similar, but im guessing my math is off Jan 29 04:24:51 haven't had a chance to look...Eclipse is updating right now Jan 29 04:25:39 well, if you supply a frequency and require looping buffers you probably have to live with adjusting the frequency slightly so that complete cycles with in your audio buffer Jan 29 04:25:42 ah generating sounds cool Jan 29 04:26:14 it's key that i stick the frequencies though Jan 29 04:26:21 ^to Jan 29 04:26:27 complete cycles occur within your audio buffer... I wonder where I lost some words Jan 29 04:27:29 dlaroche: well if you can't accept any error in frequency then I think you will need to generate the audiotrack in realtime, or select buffer length such that the clicking that might occur from slightly imperfect looping is almost inaudible Jan 29 04:28:33 could you please explain generating the audiotrack in realtime? Jan 29 04:29:04 you make a thread, which writes to the audiotrack whatever audio you need Jan 29 04:29:15 an AsyncTask, I'd imagine Jan 29 04:29:19 i have a imageview with layout_weight of .5 and other views in the activity to be of appropriate weight so that it adds up to 1 Jan 29 04:29:56 but when i set a bitmap to the imageview using the method setimagebitmap it blows up the proportions Jan 29 04:30:06 I have tried that, but still get the clicking...I will pastebin my code in a few minutes when Eclipse is down updating Jan 29 04:34:21 Anyone familiar with Sherlock actionbars? Jan 29 04:50:31 everyone out partying huh Jan 29 04:51:16 nope Jan 29 04:53:56 Would anyone know if there would be any adverse effects after completely filling the /system partition? Jan 29 04:56:31 Maylay: yes. completely filled system partition may prevent all modifications to the filesystem, even file deletion Jan 29 04:57:07 (it takes space to write the metadata that describes that files have been deleted) Jan 29 04:58:22 ah, yep, I'm definitely going to want to make sure that doesn't happen then. Thanks! Jan 29 05:08:39 guys is it really bad practice if i limit my app to a single orientation Jan 29 05:08:57 it is if you do it because you're lazy Jan 29 05:09:01 sileni, on a phone it's not so bad, but on a tablet, it's terrible Jan 29 05:09:12 ok Jan 29 05:09:34 * pfn wants to kick some serious app when some stupid app locks itself in an orientation on tablets Jan 29 05:09:56 yea the app is going to be only for phones and in an activity i have tabbed activities and inside that i have imageview , spinner, multiline textview, button Jan 29 05:10:07 and when it goes horizontal it screws everything up Jan 29 05:10:45 all following linear layout Jan 29 05:13:29 That sounds like it would be forcing orientation out of laziness. Jan 29 05:14:03 yea Jan 29 05:14:05 nevermind Jan 29 05:14:15 i will look into that, thanks guys Jan 29 05:14:28 just make a different layout for landscape then Jan 29 05:14:29 im looking at chase's app and it does this orientation thing nicely Jan 29 05:15:39 does anyone have chase app installed Jan 29 05:16:09 it feels like they hardcoded the width and height of the buttons but it looks so right on my phone Jan 29 05:16:24 I think that would be unusual. Jan 29 05:16:33 Maybe not, I dunno. Jan 29 05:16:48 They may have different layouts for different device configurations. Jan 29 05:17:08 i see Jan 29 05:18:09 RMapZero: http://imageshack.us/photo/my-images/824/chaselogin.png/ Jan 29 05:18:15 RMapZero: that is what im talking about Jan 29 05:18:25 AndroidLoverInSF: You're in Sierra del Fuego as well? Jan 29 05:18:34 I thought it was just me! Jan 29 05:18:51 you scared him away Jan 29 05:19:01 Yeah Jan 29 05:19:12 sileni: That doesn't look too hard-coded. Jan 29 05:19:16 It probably just has a margin. Jan 29 05:19:28 And layout_width="fill_parent" Jan 29 05:19:52 i see Jan 29 05:20:27 I mean, I dunno how they did it, but if I were going to try to replicate that, I would probably do something where the height is some fixed value, so I can put those rounded corners on either end. Jan 29 05:20:41 Then have a stretching middle part with the gradient on it. Jan 29 05:20:43 So it doesn't look weird. Jan 29 05:21:00 RMapZero: this is what i have http://imageshack.us/photo/my-images/638/capturessy.png/ , do you think you can give me suggestions like that ? Jan 29 05:21:19 Not sure what you are asking. Jan 29 05:21:21 That looks fine to me. Jan 29 05:21:31 doesn't it look too cluttered? Jan 29 05:21:33 Yes. Jan 29 05:21:53 You can add margins and padding. Jan 29 05:22:04 Probably make those inputs a bit thinner. Jan 29 05:22:12 inputs? Jan 29 05:22:18 Those white boxes aren't inputs? Jan 29 05:22:20 the multiline text view? Jan 29 05:22:23 ye they are Jan 29 05:22:26 Oh, it's a multiline. Jan 29 05:22:49 I don't really know what the design guidelines are for this. Jan 29 05:23:10 But intuitively, I would probably put those tabs on the left or right in landscape mode. Jan 29 05:23:26 what is the spinner for? and the exittext? Jan 29 05:23:34 edittext* Jan 29 05:23:40 Or move the icon to the the left so it's a single-line thing. Jan 29 05:23:44 the spinner is going to allow them to pick a location they are at Jan 29 05:23:50 I think you probably need to make two layouts. Jan 29 05:23:53 and text is going to allow them to leave a review Jan 29 05:24:00 and the capture button? Jan 29 05:24:09 it uses camera to take picture Jan 29 05:24:16 PP is where the picture goes? Jan 29 05:24:19 that should be seperated Jan 29 05:24:19 yup Jan 29 05:24:33 what should be seperated? Jan 29 05:24:33 take pic -> make snapshot -> show snapshot with edittext Jan 29 05:24:42 Yeah, I agree with xorgate. Jan 29 05:24:54 im lost Jan 29 05:25:03 this is not something to do all at once Jan 29 05:25:07 They tag it in a second step. Jan 29 05:25:07 oh Jan 29 05:25:08 do it in little steps Jan 29 05:25:21 Though, actually. Jan 29 05:25:28 If they are going to take a bunch of photos. Jan 29 05:25:32 And tag them all with the same value. Jan 29 05:25:44 ye they are going to take a bunch at the same place thats why i structured like this Jan 29 05:25:44 if Jan 29 05:25:52 Still. Jan 29 05:26:04 You might want to swap it to like a much smaller, non-editable text thing at the bottom. Jan 29 05:26:13 Or like a little button in the corner. Jan 29 05:26:17 That is like, "Change tag" Jan 29 05:26:21 taking picture is 1 action Jan 29 05:27:12 ohhh!! Jan 29 05:27:14 i see what you mean Jan 29 05:27:36 like have another tab in the middle lets say tagit tab and they take pic in first tab and then tag it in second tab and then upload Jan 29 05:27:48 you mean like that ? Jan 29 05:27:51 Sure, anything like that. Jan 29 05:27:57 makes more sense Jan 29 05:27:59 thanks guys Jan 29 05:28:05 just not with tabs Jan 29 05:28:13 hmm Jan 29 05:28:26 Yeah, have you looked at the Android Design Guidelines? Jan 29 05:28:34 There are specific ways to organize stuff like that. Jan 29 05:28:53 i glanced at it , i think i need to go spend some quality time with it Jan 29 05:28:57 take pic -> evaluate pic -> if ok show thumbnail + edittext + savebutton Jan 29 05:29:07 that should be your flow Jan 29 05:29:09 xorgate: I don't think that's the point of the app. Jan 29 05:29:29 ok Jan 29 05:29:29 I think this is more Edittext -> Take (multiple) photos - > Upload Jan 29 05:29:49 Presumably this is something like Yelp, maybe more photo oriented. Jan 29 05:29:52 I could be wrong. Jan 29 05:30:06 well the thing is, it would be cumbersome for the user to keep giving reviews to the place after every shot Jan 29 05:30:09 then id say take pics->evaluate pics->write comment->upload Jan 29 05:30:26 Yeah, that works too. Jan 29 05:30:40 ok Jan 29 05:30:57 then i can just put the edittext in upload part, and they can give one review for the whole location Jan 29 05:31:01 And presumably you could add something in the "write comment" bit where you load a previous comment from history or something. Jan 29 05:31:05 and i would just have spinner to set where they are taking pictures Jan 29 05:31:21 sileni: The spinner should probably be in upload too, right? Jan 29 05:31:50 well i put it in the taking pic part because they might forget later when they upload Jan 29 05:32:29 But aren't they doing a bulk upload of photos of the same place? Jan 29 05:32:52 they are going to pick which photos they upload Jan 29 05:33:02 But they're all photos of the same place, right? Jan 29 05:33:17 there can be multiple places Jan 29 05:33:33 They should either be brought to an evaluate-and-comment screen after they have taken a photo. Jan 29 05:33:50 Or there should be a single bulk evaluate-and-comment place. Jan 29 05:33:55 Right before upload. Jan 29 05:34:20 ok Jan 29 05:36:07 Is there any documentation on modifying core system apps? i want to play with the voice dialer. Jan 29 05:38:19 Robert000: If you find some, let me know. Jan 29 05:38:35 batos Jan 29 05:39:08 RMapZero: ;) Jan 29 05:40:28 Christ Eclipse is so awful. Jan 29 05:40:34 Does anyone use anything even remotely good? Jan 29 05:40:54 RMapZero: other option you have is IDEA Jan 29 05:41:44 What a frustratingly un-google-able name for a thing. Jan 29 05:44:17 intellij idea Jan 29 05:45:11 Thanks. Jan 29 05:45:40 Gives me an idea for an app, called The. Jan 29 05:46:04 Is IDEA any good? Jan 29 05:46:11 i prefer it to eclispe Jan 29 05:46:19 only it has no layout editor :/ Jan 29 05:46:25 That's a shame. Jan 29 05:46:36 I thought the layotu editor was part of the Android SDK. Jan 29 05:47:14 its part of ADT for eclipse Jan 29 05:47:19 Ah Jan 29 05:48:08 eclipse may suck, but at least it's supported... Jan 29 05:48:41 I have never hated debugging more than I hate debugging on Android. Jan 29 05:48:47 Eclipse is so excruciatingly slow. Jan 29 05:48:55 The emulators make it even worse. Jan 29 05:49:19 I think it's a google conspiracy to get me to buy a bunch of devices for development. Jan 29 05:50:51 does anyone know if there is a non-GPLed mapview overlay that can render from an OSM source? Jan 29 05:50:57 RMapZero, compared to some of the places I've debugged (particularly other embedded environments)... it's a dream Jan 29 05:52:10 Well, that's a good reason to never, ever develop for embedded systems. Jan 29 05:52:41 I feel like I could write my own IDE faster than the time it takes to build Hello World on this piece of shit. Jan 29 05:53:08 I'm probably being harsh. Jan 29 05:53:22 oh really. Jan 29 05:53:33 ;) Jan 29 05:54:33 my worst was: tftp the image to a dev board, issue a reboot command, and if my code works a light will turn on.... Jan 29 05:54:49 no notification for failure Jan 29 05:56:04 Amazing. Jan 29 05:56:56 it was staggeringly annoying Jan 29 06:05:21 Is anyone else here in the bay arrea? Jan 29 06:05:55 yes Jan 29 06:06:00 I see these meetups for android developers. Jan 29 06:06:05 assuming there is only one bay area in the world Jan 29 06:06:07 I'm wondering if they're worthwhile to go to. Jan 29 06:06:12 never been Jan 29 06:06:15 Yes, the Hudson Bay. Jan 29 06:06:21 Nova Scotia, obviously. Jan 29 06:06:23 There's another one? Jan 29 06:06:27 hehe Jan 29 06:07:50 I mean I like hanging out in this room. Jan 29 06:07:59 But that's because I'm working. Jan 29 06:08:14 I can't quite imagine going to a place to, presumably, do the same thing as we do in here? Jan 29 06:08:59 can I not call my AsyncTask several times? Jan 29 06:09:41 QubeZ: no, make a new instance each time Jan 29 06:09:41 QubeZ: What do you mean by call it? Jan 29 06:10:05 blah.execute(); so I have to create a new object each time? Jan 29 06:11:01 yes. makeBlah().execute(); // blah blah Jan 29 06:11:18 ok thanks Jan 29 06:14:12 hello Jan 29 06:14:29 so i've got my code working in my activity using asynctask when i call it. Now I can just move that code to a service and startService from my main dasbooard in my app right? Jan 29 06:14:45 and I need to bind to be able to send data back to my activities Jan 29 06:14:51 QubeZ: sounds like you might want IntentService Jan 29 06:15:01 it handles creating asynctasks for you Jan 29 06:15:25 but what if I need to run it on an interval say every 6 hours without the user having to be in the app? Jan 29 06:15:39 sounds like alarmmanager is what you want, then. Jan 29 06:16:07 ya, SimonVT recommended that yesterday but im not sure how that fits into service and all that. Still new to that world of Android Jan 29 06:16:34 ie: to schedule a sync (some code that is already written and working), how do I run it every 6 hours regardless if the user is in the app or not? Jan 29 06:16:40 batos Jan 29 06:16:43 the code is simple, just pulls data and inserts into DB which is working Jan 29 06:16:45 As I said, alarmmanager. Jan 29 06:17:00 alankila: right but does alarm manager fire off the service or what? Jan 29 06:17:05 it's probably going to have to fire up a service to do the work. Jan 29 06:17:13 no, it's a broadcastreceiver iirc Jan 29 06:17:15 you know there is a syncservice class already in android framework Jan 29 06:17:22 you'll do whatever you do in that receiver. Jan 29 06:17:36 allows it to pop up in the syncrhonization preferences on the device Jan 29 06:18:48 * alankila has not paid any attention to those parts of android so far Jan 29 06:19:45 its nto documented terribly well Jan 29 06:20:03 I think they call them sync providers actually Jan 29 06:20:18 hello, I am having trouble getting a condition met for when recieveing an sms. I am able to see the # it comes from but when I do an if statement to see if its equal to a certain number, it never works or meets that condition http://pastie.org/3274192 Jan 29 06:20:19 syncservice does not really match anything. Some sample code that seems to make no sense Jan 29 06:20:28 or sync adapters perhaps even Jan 29 06:20:38 ill stick to the alarm manager Jan 29 06:20:53 user enters my app, goes to settings to turn of sync... fire off service to run every x hours based on user preference Jan 29 06:21:13 hkhalid: can't compare objects by ==, that is identity test Jan 29 06:21:25 see Object#equals() Jan 29 06:21:27 what subject do I use Jan 29 06:21:30 I read* Jan 29 06:21:33 ok thanmks Jan 29 06:23:34 hkhalid: smart people write if ("12345".equals(foo))" as this does not crash if foo is null Jan 29 06:23:51 noted! Jan 29 06:24:29 it's a general style to write if (1 == x) because it prevents the if (1 = x) mistake even in C. So put the constant first as general rule. Jan 29 06:25:26 worked alankila Jan 29 06:25:37 * hkhalid gives alankila chawal and boti Jan 29 06:25:47 hehe Jan 29 06:25:52 thanks! Jan 29 06:25:52 i love chawal and boti Jan 29 06:26:01 me too, it gives your programming powers Jan 29 06:26:06 just had chawal and dal Jan 29 06:26:09 you* Jan 29 06:26:12 I'm not familiar with what these are, and too lazy to google. Jan 29 06:26:34 * hkhalid bathes in dal Jan 29 06:26:48 alankila: indian food Jan 29 06:27:03 dal = lentils... cooked/boiled down Jan 29 06:27:05 chawal = rice Jan 29 06:27:21 usually just gives me gas Jan 29 06:27:34 we're indian and it gives us gas too Jan 29 06:27:39 but still tasty Jan 29 06:28:29 I see. Jan 29 06:31:00 vic gundotra Jan 29 06:31:04 would be proud Jan 29 06:31:06 of you Jan 29 07:12:34 I don't think I really get weights. Jan 29 07:12:50 How do you make it so that something takes up all the remaining space? Jan 29 07:13:20 I tried just setting the weight of everything lower (or higher) than the layout I want to fill the remaining space. Jan 29 07:15:40 did you set the height (or width) to 0dp? Jan 29 07:17:32 No. Jan 29 07:17:37 It's set to match_parent Jan 29 07:17:49 0dp seems to do what wrap_content asks for. Jan 29 07:18:26 if you assign a weight value to it, it'll have a relative height to other children of the parent view, assuming they have weight values as well Jan 29 07:18:33 the trick is to set the weight on only one element Jan 29 07:18:38 you can also set a weightSum in the parent view Jan 29 07:18:42 all others should be wrap_content Jan 29 07:19:50 Hm. Jan 29 07:19:59 Well it's a horizontal layout Jan 29 07:20:03 I've got 3 things. Jan 29 07:20:09 Left and right are set to wrap_conent. Jan 29 07:20:10 *content Jan 29 07:20:20 middle one is set to weight=1, match_parent. Jan 29 07:20:25 It displaces the one on the right. Jan 29 07:20:58 and no weights on left and right? and no weightsum in the horizontal layout? Jan 29 07:21:04 Correct. Jan 29 07:21:07 romainguy dont suppose you are around Jan 29 07:21:43 and you would like the middle view to take up the rest of the space? Jan 29 07:22:01 Yes, I want it to take up all space not taken up by the others. Jan 29 07:22:04 sorry just clarifying Jan 29 07:22:19 Yeah, no problem. Jan 29 07:22:30 kk, i'm not sure if weights are the best thing here...if it were me i'd try to do a relativelayout Jan 29 07:22:37 Yeah. Jan 29 07:22:39 place the left view, align to the left, wrap_content Jan 29 07:22:43 similar with right Jan 29 07:22:46 Yeah. Jan 29 07:22:59 I didn't feel like having to get that worked out. Jan 29 07:23:01 Ah well. Jan 29 07:23:04 No big deal. Jan 29 07:23:06 then have the middle view match_parent, but align to the right fo the left view, and to the right of the right view Jan 29 07:23:12 Yah Jan 29 07:23:27 Thanks for the help Jan 29 07:23:35 I'm a bit surprised there's not a different way to do this. Jan 29 07:23:39 Seems like it would be kinda simple. Jan 29 07:23:40 no worries...i don't think there's a way to do it with weights Jan 29 07:23:48 or if there is, i can't think of it :S Jan 29 07:23:49 lol Jan 29 07:23:49 Yeah, I always run up against this when I try to do this. Jan 29 07:25:22 I've always used linearlayout on the problem of getting something take all available space while keeping other stuff hugging the borders of the container Jan 29 07:25:39 ah yeah? how would you do it alankilla? Jan 29 07:25:42 It's called borderlayout in swing, and linearlayout seems to give that behavior when just one element has a weight Jan 29 07:26:45 also the width/height of that element which has weight will be ignored, android lint recommends setting it ti 0dip Jan 29 07:27:04 Yeah, I tried the only-one-weight thing. Jan 29 07:27:06 Doesn't seem to work. Jan 29 07:27:12 Odd, but it works for me. Jan 29 07:27:28 yeah, when i've worked with weights, i've found that having to something other than 0dp causes odd behaviour Jan 29 07:27:46 alankila: do you think you could pastebin some example code if you have some handy? i'm curious now... Jan 29 07:28:37 https://github.com/alankila/droidsound/blob/master/res/layout/playing_view.xml take a look at element called progress_container Jan 29 07:28:45 it's a horizontal layout with textview at left and right and seekbar filling the middle Jan 29 07:29:43 Well I switched it over to a RelativeLayout. Jan 29 07:29:56 But I think I actually missed one of the weights when deleting them. Jan 29 07:30:00 that, in turn, is contained in a linearlayout that is vertical, with listview at top allocating all space, except for the other things that happen to be at bottom Jan 29 07:30:02 Which is weird because there were only 2 Jan 29 07:30:15 I think the relativelayout is probably just fine anyway, though. Jan 29 07:30:58 * alankila is surprised that people are having trouble with this use case for listview. This is, imo, hands down the most important layouting style you will ever need. Jan 29 07:31:11 sorry, not listview, linearlayout Jan 29 07:31:16 Yeah. Jan 29 07:31:25 Well it's kinda hard to divine that only one thing can have a weight. Jan 29 07:31:34 Since weight defaults to 0. Jan 29 07:31:36 I do not understand how android reasons with the weights Jan 29 07:31:42 to be honest, it seems reversed Jan 29 07:31:46 Yeah, it's bizarre. Jan 29 07:31:50 it's tricky Jan 29 07:31:55 for instance, put one with weight = 1 and another with weight = 2, it's the weight=1 that will be larger Jan 29 07:31:58 makes 0 sense Jan 29 07:32:13 alankika: i had that problem when their widths were set to wrap_content Jan 29 07:32:16 but even such use case is not very important so I don't care Jan 29 07:33:00 I also would think that there would be a simple way to set something to be 50% of the screen width or something. Jan 29 07:33:11 Maybe things have changed since API10 when I first tried to do it. Jan 29 07:33:16 there is, a linearlayout with 2 elements with weight="1" Jan 29 07:33:30 should cause android to allocate equal area for its chlidren Jan 29 07:33:45 also maybe gridview Jan 29 07:34:04 Well I mean in HTML you can set widths and heights in pixels or in percent. Jan 29 07:34:10 gridview's cells are all supposed to be the same size. Jan 29 07:34:42 So if I want some image and I always want it to be 10% of the size of the screen, independent of all the other stuff going on, that seems harder than it should be. Jan 29 07:35:23 sounds like case of weight="9", weight="1" for linearlayout to me. Not especially difficult... ;-) Jan 29 07:35:31 you mean like, no matter where it is in the view heirarchy? yeah, that's a bit tricky Jan 29 07:36:25 alankila: I mean in the general sense. Jan 29 07:36:31 but didn't android support % measurements for size anyway? I've never used them, but it would seem to me that % of parent container would be trivial for any viewgroup to calculate Jan 29 07:36:42 I thought so too. Jan 29 07:36:53 anyone here use google tasks? can you not set a due time when choosing due date? Jan 29 07:36:56 yeah i seem to remember using % measurements at some stage...can't remember when... Jan 29 07:36:57 But it didn't seem obvious in API10. Jan 29 07:37:11 im synching with the service but not sure what the time of these tasks are Jan 29 07:37:23 well I'm going to guess you just write width="10%" and that works. Jan 29 07:37:23 QubeZ: I've never seen anything that does that. Jan 29 07:37:35 Hold on, I should check this. Jan 29 07:37:40 Because it's been a few years since I tried. Jan 29 07:38:06 RMapZero: hmm so the task is more of a day due and no time is associated with it? Jan 29 07:38:22 Hmm. There does not appear to be % measurements. Jan 29 07:38:42 in their API doc, i see dueTime which is in rfc3339 standard ie: T00:00:00Z but when in the web interface there is no way to set due time Jan 29 07:38:50 well, I'm not worried, strictly speaking they aren't *terribly* useful, and linearlayout will give you that if you insist. Jan 29 07:39:15 yeah, weights pretty much do the same thing... Jan 29 07:39:38 QubeZ: Haven't seen any due date. Jan 29 07:39:49 you mean time? due date is there Jan 29 07:39:56 Time, right. Jan 29 07:40:06 I just upgraded to ICS. Jan 29 07:40:07 ya, what a messed up system this google tasks is Jan 29 07:40:10 real piece of shit Jan 29 07:40:11 Let me re-add my gtasks widget. Jan 29 07:41:05 Yeah, GTasks doesn't allow me to choose a time either. Jan 29 07:41:39 yet the dueDate field comes back as a form like 01-01-2012T00:00:00.000Z Jan 29 07:41:46 or whatever time you entered that task Jan 29 07:41:57 QubeZ: Can you set it in that format? Jan 29 07:42:06 Maybe it's just unused. Jan 29 07:42:10 but you can't actually set the time in the web interface... causing an issue for me because for reminder reasons, i have to set it to midnight since no time exists Jan 29 07:42:32 ya, ill have to set it to reminder the user via prefernce to ask them what time to default to for google tasks tasks Jan 29 07:58:25 the future of computer music: http://www.youtube.com/watch?v=tCRPUv8V22o#t=5m15s Jan 29 07:59:53 alankila future, but really just the past you mean Jan 29 08:00:16 whoa Jan 29 08:00:30 well, demos are shortening... 4096 is plenty long. New music algorithms can be done in 256 bytes or less Jan 29 08:00:53 what they were able to do in 64k back int he day Jan 29 08:00:56 was mind blowing Jan 29 08:01:54 these c programs emit pcm data directly for playback. This particular is such a piece of work I should actually break it down and make an effort to understand it Jan 29 08:02:05 although it's javascript I guess. Doesn't matter Jan 29 08:03:13 the c one sounded too noisy, but i liked the javascript ones Jan 29 08:03:54 ron_frown: what they do today in 4096 bytes is mind blowing, really... Jan 29 08:04:11 this is imo the ultimate 4k achievement: http://www.youtube.com/watch?v=_YWMGuh15nE Jan 29 08:04:25 yep Jan 29 08:05:07 just the audio track on that in 4k is Jan 29 08:05:09 a lot Jan 29 08:06:35 whoa, i like that one... Jan 29 08:10:43 it's a very interesting program. ińigo quilez has some writeup about how the shader was made. Jan 29 08:11:28 annoyingly he hides a few of the details that interest me like his water shader that generates the coastlines and the frozen lake and the precise way he fakes trees Jan 29 08:11:54 I suspect it's not terribly complicated, everything boils down to applications of fractional brownian motion in this kind of designs Jan 29 08:12:35 but the man is a sort of opengl shader artist. Jan 29 08:15:37 and I don't just mean that the end product is pretty, although it is that too. I think the guy just plays fast and loose with fundamental physical rules and doesn't give a fuck because his experience pretty much already tells him what will work and what will not. It's strange to see a beautiful scene and then look at the lighting model and discover it's all fake and gamma is ignored or totally hosed, and stuff like that. Jan 29 08:18:01 but I'll show just one thing which blew me away: http://www.iquilezles.org/www/articles/raymarchingdf/06.jpg Jan 29 08:18:25 this is apparently another one of these algorithmic images. Quilez is unhappy with what it looks like so he has abandoned the work. But the grass on the near beach. Man, that must be *some* shader to generate it Jan 29 08:20:16 vegetation is so bizarrely complicated to generate, and here you have something that imo looks actually pretty damn good. Jan 29 08:20:58 i generate vegetation in my backyard Jan 29 09:44:15 I need a Set<> that I can add to and iterate through in different threads Jan 29 09:44:31 and Collections.synchronizedSet isn't doing it for me Jan 29 09:48:42 why isn't collections.synchronizedset working for you? Jan 29 09:50:04 maybe you get the concurrentmodificationexeption? if so, your iterations need to operate on copy of the key set. You might also consider the lock-free structures from the concurrent* package Jan 29 09:58:23 alankila, that is the error I'm getting Jan 29 09:59:33 ok, that's because you can't use certain parts of the api while iterating. Jan 29 10:01:45 sadly I think you may have to synchronize over some method like return new HashSet(set) to get a set for iterating Jan 29 10:02:35 http://www.youtube.com/watch?v=YVxn6wn-2Xc lol Jan 29 10:02:49 oops wrong chan, meh, you'll probably like Jan 29 10:02:50 it Jan 29 10:09:45 hello hello ! Jan 29 10:11:27 I've got a layout question: I have 7 image views that need to be scaled to fit within a frame layout horizontally, any thoughts ? Jan 29 10:15:19 I'm getting a Date ParseException when running on my phone (desire hd, android 2.3.5) but when running in the AVD (Android 2.3.3) it works fine. Unparseable date: "Tue, 24 Nov 2009 01:50:21 +0100" and I have the simple date format: "EEE, dd MMM yyyy HH:mm:ss Z". Does any one have a clue on why this is happning? Jan 29 10:24:18 alankila, that did it. thanks! Jan 29 10:50:54 Guys hi, i am trying to put three buttons in middle of screen and I found this http://stackoverflow.com/questions/2614936/how-to-center-buttons-on-screen-horizontally-and-vertically-plus-equidistant-apa Jan 29 10:51:19 what I dont understand is why is button two defined in layout as first but it shows as second Jan 29 11:35:48 I'm new to android developing and I'd need advice with some audio recording/buffering: I want to (ring-)buffer up 5 to 10 minutes of audio recording from the mic with little energy consumption. I suppose i need to encode the signal to make this possible in the 16mb heap size without writing to the SD, right? Jan 29 11:36:52 my goal is to achive an audiobuffer that lets me save the last few minutes of recording when they where intresting Jan 29 11:38:09 now there are bytebuffers and audiobytebuffers, how do they work if they are not emptied? will they drop the oldest byte (ringbuffering)? Jan 29 11:40:43 i don't see an audiobytebuffer class in the android docs? Jan 29 11:41:46 #you'd probably have to write your own circular byte buffer Jan 29 11:42:07 storkme: audioBuffer it says Jan 29 11:42:19 http://developer.android.com/guide/topics/media/audio-capture.html Jan 29 11:42:24 storkme: right Jan 29 11:42:39 i don't see an audiobuffer in the android docs Jan 29 11:42:48 what are you planning to record? Jan 29 11:43:08 Guys hi, i am trying to put three buttons in middle of screen and I found this http://stackoverflow.com/questions/2614936/how-to-center-buttons-on-screen-horizontally-and-vertically-plus-equidistant-apa Jan 29 11:43:09 what I dont understand is why is button two defined in layout as first but it shows as second Jan 29 11:44:09 Trudko: android:layout_above="@id/Button02" on Button01 Jan 29 11:44:46 storkme: speech. The audio capture example writes to a file, can i get that datastream somehow? Jan 29 11:45:17 i'm not sure about that cougarten the recording api is quite high level i'm afraid :[ Jan 29 11:45:27 right Jan 29 11:45:29 http://developer.android.com/reference/android/media/AudioRecord.html#read%28java.nio.ByteBuffer,%20int%29 Jan 29 11:46:26 this seems mor low vl, but without encoding i will run out of space pretty soon i fear. I suppose i get some wave-file-like byte stream Jan 29 11:46:40 http://developer.android.com/reference/android/media/AudioRecord.html maybe this will prove more fruitful.. looks like a more low level audio recording api Jan 29 11:47:02 you specify the sample rate, number of channels, and the format Jan 29 11:47:39 thats what i am looking at, right :) Jan 29 11:47:51 okay Jan 29 11:48:02 heh sorry if i'm a bit slow i'm just trying to catch up :D Jan 29 11:48:14 SimonVT: any idea why they arrange it like that why button 1 is not first? Jan 29 11:49:02 Trudko: They're positioned from the top down Jan 29 11:49:25 You can't position a view relative to a view that has not yet been positioned Jan 29 11:49:34 storkme: i can't see where the encoding happnes, if that happens befor all the buffering or with startRecording() Jan 29 11:53:59 the docs look a little lacking... i think your best bet is to try it and see Jan 29 11:53:59 SimonVT: ok i need to get my head around it but it seems reasonable Jan 29 11:54:20 create a really small buffer (getMinBufferSize * 2 or something), call startRecording() and see what happens Jan 29 11:54:24 Hello every body Jan 29 11:54:54 I am living in Kabul Afghanistan, We have Android HTC smartphone and we need to have a Pashto Jan 29 11:55:06 and Dari Keyboard layout on our Android System Jan 29 11:55:29 Pashto and Dari is the official language of Afghanistan Jan 29 11:55:55 cougarten: it looks like audiorecord is using a non-cicurcular buffer, so you'd probably have to make a wrapper class to pull the data out as soon as it is available and drop it in a circular buffer witrh the right size Jan 29 11:56:02 storkme: thanks a lot :) Jan 29 11:56:37 not sure if anything i've said will prove useful :D seems like you have an interesting task ahead of you Jan 29 11:56:53 storkme: i think it is circular Jan 29 11:57:32 storkme: if i am supposed to read less than the total buffer, that means it does not scramble everything when it overflows Jan 29 11:57:42 the impression i got was that it's linear, kinda like a queue - if it runs out of space to write to, it'll just throw away the data -- but i may well be wrong Jan 29 11:57:46 furthermore it says "The size of this buffer, specified during the construction, determines how long an AudioRecord can record before "over-running" data that has not been read yet" in the introcuction Jan 29 11:57:56 oh right Jan 29 11:58:01 storkme: throw away which data :) ? Jan 29 11:58:03 maybe i misunderstood what over-running meant Jan 29 11:58:06 the audio data Jan 29 11:58:10 i guess the oldest, which was perfect Jan 29 11:58:30 i think it's a bit ambiguous Jan 29 11:58:35 it is Jan 29 11:58:41 best bet is try it and see Jan 29 11:58:44 i will have to check :) Jan 29 11:58:45 right Jan 29 11:58:49 good luck :) Jan 29 11:58:52 thanks Jan 29 11:59:04 and then blog about it so we can see your victory! :D Jan 29 11:59:34 hey I'm an android noob but I want to make a simple app. Just static content, not even connected to a website or anything Jan 29 11:59:38 storkme: gonna take a while. i _should_ do my pre-diploma stuff first Jan 29 11:59:54 does any one can help me please? Jan 29 11:59:59 https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/AudioRecord.java this might be of interest to you Jan 29 12:00:20 there will be categories done with a simple vertical layout and when you click them, you're brought to a page of information Jan 29 12:01:11 Will I need to create a huge strings.xml file containing all the possible strings I'll need (around a 1000 I'd say) Jan 29 12:01:31 although i think you already saw that Jan 29 12:01:45 or should I learn to use the databases and create the menus and info pages (they follow the same structure except the info isn't clickable) Jan 29 12:01:53 *dynamically as such Jan 29 12:01:54 ??? Jan 29 12:03:09 it doesn't prove very fruitful as the native code is the interesting bit in this case Jan 29 12:03:51 storkme: havent seen that yet. that 's whats underlying the previous doc? Jan 29 12:04:11 that's right Jan 29 12:05:23 https://github.com/android/platform_frameworks_base/blob/master/media/libmedia/AudioRecord.cpp maybe this would be more useful Jan 29 12:05:33 looks like it's the underlying c code that AudioRecord uses Jan 29 12:07:05 ok :) i am that deep down now... Jan 29 12:07:22 here be dragons Jan 29 12:11:24 storkme: oh great, "audioBuffer->format = mFormat;" looks like it is encoded allready Jan 29 12:12:54 encoded as pcm though right? Jan 29 12:13:26 storkme: i dont know, if it's a variable it might be variable i thought :) Jan 29 12:13:46 i got to catch a train, thanks a lot and all the best Jan 29 12:13:58 you too mate Jan 29 12:42:10 Hi Jan 29 12:43:07 i have a problem Jan 29 12:43:11 i am doing testing Jan 29 12:44:34 but in my app i have come straigh java classes and some adroid api classes that interact with eachother, I can use the template for adroid testcases but i cant use it for normal java since non of the classes extend activity etc Jan 29 12:45:19 so if i have java clas A that takes some android class B as arument how can i create test case for A ? Jan 29 12:45:52 if I want A to use all that testing stuff that comes with android Jan 29 12:46:22 if the classes don't use any android-specific features i'd put them in a seperate project and just use normal java unit testing (linked to android.jar ofc) and link the classes in with the project Jan 29 12:46:39 i don't know if that's the best way of doing it but i have done that in the past Jan 29 12:47:29 can I just du unit testing in the same package as android testing ? Jan 29 12:47:44 can't see why not Jan 29 12:48:20 ehhh hate testing :( Jan 29 12:48:28 who doesn't :p Jan 29 12:48:31 lol Jan 29 12:48:50 us programmers like to think we're infallible and our code is perfect :D Jan 29 12:49:05 right i gotta go, good luck with the testing Jan 29 12:49:06 the funny thing is that you migh also have bugs in your test cases then what ? Jan 29 12:49:14 false positives :D Jan 29 12:49:22 haha Jan 29 12:49:27 sure man Jan 29 12:49:50 guys I am getting error java.lang.RuntimeException: Unable to instantiate activity ComponentInfo java.lang.NullPointerException when lanuching simple application main activity and adroid manifest are here http://pastebin.com/dwgKqDPm Jan 29 12:50:04 it has to be some totally simple mistake which I could not find Jan 29 12:50:07 my code is never perfect I always tend to skip testing till the end when nothing works lol Jan 29 12:50:39 Trudko: First mistake is not reading the whole stacktrace, as it will tell you where the nullpointer is Jan 29 12:51:13 :) Jan 29 12:52:18 Hi! My Android (Samsung Galaxy S, 2.2) won't boot properly. The fancy S boot logo blinks a bit, then the phone vibrates the way it does when an app has crashed, and after a ehile it goes black. This happens repeatedly. HOWEVER, I do have ADB shell access with root. What can I do? Jan 29 12:52:20 And the mistake is this: final Button button = (Button) findViewById(R.id.start); Jan 29 12:52:31 You can't findViewById until after setContentView Jan 29 12:52:31 my whole error is here http://pastebin.com/Mj0a2fM3 Jan 29 12:53:00 at sk.toth.resistance.BakalarkaActivity.(BakalarkaActivity.java:11) Jan 29 12:53:00 ah wait Jan 29 12:53:06 the key line is: 01-29 13:51:47.277: E/AndroidRuntime(2159): at sk.toth.resistance.BakalarkaActivity.(BakalarkaActivity.java:11) Jan 29 12:53:28 is there any software that can prevent other apps from reading out logcat? Jan 29 12:53:32 HELP!? This is my main phone, I don't really have any replacement for it! Jan 29 12:53:43 SimonVT: mg sorry .. barbs.. Jan 29 12:53:45 Jonathan_L: #android #android-root try one of those channels Jan 29 12:54:00 Ok, I'll go to -root to Jan 29 12:54:34 so thats the line final Button button = (Button) findViewById(R.id.start); and It seems like R is problem Jan 29 12:54:59 13:52 You can't findViewById until after setContentView Jan 29 12:55:02 not it canmt be that ok i will figure it out Jan 29 12:55:13 SimonVT :) Jan 29 12:55:17 ou sorry did not cathc that Jan 29 12:55:40 Trudko relax :) Jan 29 12:55:45 ^^ Jan 29 12:55:56 I write before i think Jan 29 13:00:59 SimonVT how do you test your straigh java classes that interact with some android classes ? Jan 29 13:01:07 Meh, I don't :p Jan 29 13:01:18 how come ? Jan 29 13:01:54 Part lazy, part never used the unit test stuff Jan 29 13:02:00 I got a lot of interactoin between those two libraries and need to test some how Jan 29 13:19:19 is it possible to generate an onclick event on selection of a footer in a ListView? Jan 29 13:48:26 Guys I have main activity and other activitys lets say A B which i launch from first activity. What I want to do is when I touch back button I need to return to main activity Jan 29 13:49:02 should I just rewrite onBackPressed and use intent ? Jan 29 13:50:05 I mean this works I am just courious if there is nice way how to do that Jan 29 13:56:33 Hi whats the best source for a beginner to learn development in android. I've tried various books but i seem to always loose interest and a new version gets released which seems to mess up my motivation Jan 29 13:57:11 software is always going to be evolving Jan 29 13:57:41 Android is going to always use some basic fundaments that it started with, so its ok to learn those. Jan 29 13:58:05 Some things may change the way you program like fragments, etc, but its not a huge burden to learn them. Jan 29 13:58:07 is there a particular brand you recommend on following? one thats an easy read Jan 29 13:58:14 Do you know Java? Jan 29 13:58:33 yes the basics of it and object oriented programing Jan 29 13:58:39 but at a basic level Jan 29 13:59:09 Do you know how the inheritance, abstraction, interfaces of java works? Jan 29 13:59:41 yes i have a high level understanding of it, i took a fiew courses of c# which seem simular Jan 29 13:59:56 I suggest you have a good/firm understanding of java (be able to extend your own classes, make interfaces, know how to cast datatypes/classes, etc) before you start into Android. Jan 29 14:00:13 I didn't really start off with a book, besides the "android for dummies", which was a pretty bad book. Jan 29 14:00:29 so you recemmend the android developers website over a book? Jan 29 14:00:36 I've heard good things about this site... Jan 29 14:00:37 http://thenewboston.org/ Jan 29 14:00:57 i learned off of tutorials and android reference/docs. Jan 29 14:01:16 I'm still a decent noobie to it though, but i almost have my first app finished. Jan 29 14:01:24 thanks for the reccomendations zerkz Jan 29 14:01:47 im my case i just want to create a simple app that takes a photo using the front camera when the device wakes up Jan 29 14:02:08 i just get frustrated with all of the information available but ill stick to the official reference and docs Jan 29 14:02:40 I think you might have some issues working with automatic things like that. I'm not too sure about it but I assume that some sort of rights and privleges need to be granted. Jan 29 14:03:06 with root access it should be possible though right? Jan 29 14:03:22 Yes. I would assume. But will you have to start your activity up and have it run in the background? Jan 29 14:03:32 well, maybe not root. Jan 29 14:03:56 yes it would be a backgroup service that i only want runing on screenwake \ Jan 29 14:04:31 its possible then. doesn't sound too exactly hard to code either. I think you will just need to learn how Android works with the conditions/states. Jan 29 14:05:00 ok thanks again for the tips Jan 29 14:06:47 hmmm anyone knosw how can i see my print statements when in adroid test runs ? Jan 29 14:07:17 the tests are negative but nothink prints to logcat or console Jan 29 14:12:59 any one ? Jan 29 14:13:19 check out the samples that come with ndk Jan 29 14:13:20 *eating tartare* in front of #android-dev Jan 29 14:13:38 I know native-plasma has some examples Jan 29 14:14:29 hey, i had a softkeyboard that i made. ICS just rolled to some of my target devices, and pushed two of my keyboard layout's keys over, its not honoring the spacing i had before. I know they did a new text style for ICS. Anyone else seen this type of behavior? I'm pulling my hair out because the layout xmls dont put the spacing where its being actually applied. Jan 29 14:16:26 Hi Jan 29 14:16:51 First time app dev here, been trying to code a app in eclipse, added a textbox to the gui, now R.layout.main cant be found by the app even though it exists :/ Jan 29 14:17:12 SimonVT: may I ask one last thing? I started camera and In my ap and I want to return back to main activity when you hit back buttom. Simple calling intent for main activity worked for other activies but not for camera. When I hit back button it retunr on phone menu - http://pastebin.com/f7adX7x7 Jan 29 14:19:26 Anyone ? Jan 29 14:19:36 Uh, finishing the current activity should show the last in the stack Jan 29 14:19:39 clean you project to regenerate R Jan 29 14:20:19 nicobo: didnt work Jan 29 14:20:28 the field is in R, but it isnt finding it Jan 29 14:21:00 SimonVT: what do you mean? calling just finish() ? Jan 29 14:21:05 @aaa801 do you have an error msg ? Jan 29 14:21:09 onBackPressed by default calls finish Jan 29 14:21:19 it just says the field doesnt exist (wont compile) Jan 29 14:21:25 If you're in Activity A and startActivity B. When you press back on B, it will show A Jan 29 14:21:35 R.layout.main doesnt exist blabla Jan 29 14:21:50 aaa801: Did you for some reason import android.R? Jan 29 14:21:55 nope :/ Jan 29 14:22:02 o wait Jan 29 14:22:08 ye its imported Jan 29 14:22:13 should i remove it Jan 29 14:22:16 There's your problem Jan 29 14:22:22 stupid autoimports Jan 29 14:22:29 aha Jan 29 14:22:31 thanks :D Jan 29 14:22:33 SimonVT: hmm If I dont overwrite onBackPressed it returns back to menu... Jan 29 14:23:22 SimonVT: maybe I am calling it bad this is how I call Activity B from Activity A http://pastebin.com/kg0pge04 Jan 29 14:23:36 remove the finish(); Jan 29 14:23:58 finish destroys the activity and removes it from the stack Jan 29 14:24:39 http://developer.android.com/guide/topics/fundamentals/tasks-and-back-stack.html Jan 29 14:25:36 SimonVT: yeah great thx Jan 29 14:34:09 what's the correct way to draw a drawable on canvas on a specific (x,y) position? Jan 29 14:34:21 drawable only has .draw(Canvas) that uses the entire canvas Jan 29 14:35:06 setBounds Jan 29 14:36:42 hello Jan 29 14:37:32 in doing this tab widget guide: http://developer.android.com/resources/tutorials/views/hello-tabwidget.html Jan 29 14:38:00 is there a way to alaways keep tabs above? and call each activity with her own view too? Jan 29 14:38:16 SimonVT, no that will just give me a rectangle on the drawable Jan 29 14:38:24 but it's postTranslate() on the matrix Jan 29 14:38:37 * iivvoo didn't know the operation is called "translate" Jan 29 14:40:34 No, setBounds tells the Drawable where to draw, and how large to be Jan 29 14:41:24 oh.. right Jan 29 14:41:46 it's x,y,w,h, not topleft x,y, bottom x,y Jan 29 14:41:47 thanks Jan 29 14:42:12 No, it's left, top, right, bottom Jan 29 14:48:37 can ther be only one asser method per one method that is under the test ? Jan 29 14:49:03 i have like 3 asser checks in one method but if first one fails the other 2 are not checked at all Jan 29 14:52:37 :/ adb upload keeps on rebooting my phone :< Jan 29 14:53:50 do you want adb push? Jan 29 14:56:59 is there a way i can write a error from a app into logcat? Jan 29 14:57:08 because my app is just closing after reporting a error :/ Jan 29 14:58:04 aaa801 you can use system.out.print or Log class Jan 29 14:58:12 Log.w("myApp", "no network") Jan 29 14:58:12 something like that Jan 29 14:58:51 yes Jan 29 14:58:52 excactly like that... Jan 29 15:00:26 W/System.err( 3531): java.io.IOException: Error running exec(). Command: [sudo,flash_image, recovery, /sdcard/recovery.img] Working Directory: null Environment: null Jan 29 15:00:40 :/ Jan 29 15:01:39 This has me stumped :/ Jan 29 16:09:12 hi Jan 29 16:22:55 Hello. I'm having an issue with posting data to a PHP file. the link I'm posting to is defined in a public static final String. I need that link set by SharedPreferences, though. here's an example: http://pastebin.com/WfJB95qD Jan 29 16:26:55 In the above example I get a NullPointerException when attempting a HTTP connection using the link stored in SharedPreferences Jan 29 16:32:54 did a lot change to using JNI in ICS? Jan 29 16:33:09 nothing changed as far as I know. Jan 29 16:33:21 or I've not noticed anything at least Jan 29 16:34:30 xfireguru: the dirty secret with android is that many of these objects don't work in static context, onCreate or such hook is appropriate to try to use any platform objects Jan 29 16:34:51 it's a bug, imo, but not one that android folks have shown any interest in fixing. Maybe one which isn't even on their radar Jan 29 16:35:51 alankila: thanks for the reply. didn't know that about the static objects. Jan 29 16:36:18 kind of silly, really. Jan 29 16:38:56 yes. But as far as I can tell we live with onCreate and don't use final variables, constructor arguments, or static initializers (except for most trivial cases) Jan 29 16:40:16 I wish as much as anybody else who comes to android from a java context that it would look and feel like normal java system. Jan 29 16:44:54 hi there Jan 29 16:48:58 heh, fix one error and create two more. time for a coffee break. Jan 29 17:07:11 hi all: I'm having a bit of an issue with a spinner inside of a TableLayout/TableRow: I can't get it to fill the width of the colum. Jan 29 17:07:28 is there a trick or something that I should be using? Jan 29 17:07:54 haven't noticed anything. Usually you just match_parent with the width and it fills it. Jan 29 17:08:29 hum.. I must be doing something damn stupid then.. Jan 29 17:08:57 is there an alternative to http://slickdevlabs.com/slick-usb-2-serial-library/ for accessing usb-serial devices on android with OTG or usb-host? Jan 29 17:10:59 alankila: it just doesn't enlarge the spiner. A TextEdit in the same TableLayout and in the same column is working being set to the proper width Jan 29 17:11:44 yes, well, I don't really have anything much to say about it. I have personally not noticed any issues with the width setting for a spinner, it has behaved like the other elements Jan 29 17:12:53 I want to offline sync some web content for my application, like Pulse and Google Current, any pointer Jan 29 17:13:46 Anyone know why this doesnt work (error flashing image) http://pastie.org/3276977 Jan 29 17:18:20 hope anyone can help. i am an absolut android-newbie and have some questions Jan 29 17:18:39 i have also new experiences with cellphones at all Jan 29 17:18:57 i want to know for example how i can install downloaded games Jan 29 17:19:35 anyone here who can help? Jan 29 17:19:41 talent, where have you downloaded games Jan 29 17:19:49 custom source Jan 29 17:19:52 not from the market Jan 29 17:19:52 in your phone? Jan 29 17:19:56 nope on the pc Jan 29 17:20:03 is it .apk file Jan 29 17:20:07 it has the ending: apk Jan 29 17:20:08 yes Jan 29 17:20:09 it is Jan 29 17:20:23 ok, what phone do you have? Jan 29 17:20:34 it an lg opimus something Jan 29 17:20:48 go to settings->applications Jan 29 17:21:06 its from a friend who don t need it anymore becouse he has an newer one. he said its should be also rootet, but i don t know what this mean Jan 29 17:21:10 ok, hold on Jan 29 17:21:25 check "unknown sources" checkbox Jan 29 17:21:55 sorry where i find settings? Jan 29 17:22:05 there are many application if i tunr it on Jan 29 17:22:32 settings should be in your launcher Jan 29 17:23:37 found it Jan 29 17:23:45 unknown sources is checked on Jan 29 17:25:02 varun06:? Jan 29 17:25:13 not put the games on SD card on your phone Jan 29 17:25:32 and double click on .apk file Jan 29 17:25:41 it should automatically install game Jan 29 17:25:42 well, i have found out that i can connect it with usb and aces it Jan 29 17:25:50 can i aces the sd card this way? Jan 29 17:25:56 i see many dirs if i do so Jan 29 17:26:01 i think its the sd card Jan 29 17:26:05 make sure your games are from some valid aource and there is no malware there Jan 29 17:26:33 there should be a file manager application in your phone or you can download one from market Jan 29 17:27:06 ok, i am on it with usb Jan 29 17:27:11 there are many dirs and folders Jan 29 17:27:21 where i should now copy this game exactly? Jan 29 17:27:39 maybe .temp? Jan 29 17:27:45 in sd card make a new folder, say games and put it there Jan 29 17:27:55 ok Jan 29 17:28:38 i createt a folder games and cpied the apk file Jan 29 17:29:34 now disconnect USB Jan 29 17:29:40 done Jan 29 17:29:52 open that folder in file manager, double clikc and enjoy Jan 29 17:29:56 which apk? Jan 29 17:30:09 k, then first i must look where or if i have a filemanager Jan 29 17:30:17 ok Jan 29 17:30:26 i friendly dude gave me alink for an instrcution video on youtube Jan 29 17:30:38 there they use a filemanager called astro filemanager or something Jan 29 17:30:42 duno ifd i have this Jan 29 17:31:22 install from market Jan 29 17:31:25 it's free Jan 29 17:31:27 Anyone know why this isnt working when the app has been granted root :/ p = Runtime.getRuntime().exec("/system/bin/flash_image recovery /sdcard/recovery.img"); Jan 29 17:32:01 aaa801: you need to run it through su Jan 29 17:32:03 ok, it seems that i don t have one Jan 29 17:32:07 then the seound problem Jan 29 17:32:17 ... Jan 29 17:32:19 i can t use android market becouse it want a password Jan 29 17:32:23 its my friend acount i think Jan 29 17:32:31 can t rech him for aksing that Jan 29 17:32:40 p_l whats the syntax for that? i tryed su -c \"command\" root Jan 29 17:32:43 and a bunch of others Jan 29 17:32:53 so i need a new acount for market place? Jan 29 17:33:00 you can do that Jan 29 17:33:01 i have an google email. can i use this? Jan 29 17:33:09 go to settings>accounts and sync>add account Jan 29 17:33:12 then sign in Jan 29 17:33:18 ok, a minute please Jan 29 17:33:23 then launch market and press menu>settings>select account>pick yours Jan 29 17:33:27 aaa801: you probably need /xbin/su -c \"...\" Jan 29 17:33:34 thank you! Jan 29 17:33:35 ok il try that Jan 29 17:33:36 brb Jan 29 17:33:38 in progress Jan 29 17:33:48 talent: This is the android developer channel. For those basic android stuff please visit #android. It's hard off topic and considered spam here. Jan 29 17:34:24 gah Jan 29 17:34:31 caused a crash, better then the error i got before Jan 29 17:34:32 sorry for that. i verify the steps and if it works i know what to do Jan 29 17:34:36 time to debug i guess ;( Jan 29 17:34:54 please make an exeption and let me people guide through this prcoess Jan 29 17:36:05 aaa801, every Runtime.exec forks a new process, therefore the "flash_image" command won't run as root Jan 29 17:36:18 ye Jan 29 17:36:24 im trying this now Jan 29 17:36:25 p = Runtime.getRuntime().exec("/xbin/su -c \"/system/bin/flash_image recovery /sdcard/recovery.img\""); Jan 29 17:36:25 Jan 29 17:36:52 it got some error executing the command Jan 29 17:36:57 ioexception Jan 29 17:37:00 I want to offline sync some web content for my application, like Pulse and Google Current, any pointer Jan 29 17:37:04 wonder if that su binarys in right place Jan 29 17:37:20 sh: /xbin/su: No such file or directory Jan 29 17:37:29 probs in /system or something Jan 29 17:37:33 just use su Jan 29 17:37:46 if i just use su it comes up with the usage prompt Jan 29 17:38:28 usage su [OPTIONS] [ Login] Jan 29 17:38:29 :/ Jan 29 17:51:57 i createt a new acount Jan 29 17:52:16 but if i go on market its still the old acount from my riend there asking me for an pw i don t hve Jan 29 17:52:23 its not useing my new acount Jan 29 17:52:29 Hi guys. Having a problem with a logout button in my app. I'm using flags Intent.FLAG_ACTIVITY_CLEAR_TOP and Intent.FLAG_ACTIVITY_NEW_TASK in my intent to start the login screen, but its not clearing the back navigation stack (i.e. after logging out of the app users can still press back and get into "restricted" areas of the app if they were logged in before) Jan 29 17:53:00 Any ideas why this isn't working? Jan 29 18:07:42 hello hello Jan 29 18:09:01 hi Jan 29 18:12:01 hey guys Jan 29 18:14:44 how do i make an activity be shown in the background, it should be paused i guess while i get more input from user and then resume after that Jan 29 18:15:11 dialog window? Jan 29 18:15:50 http://developer.android.com/guide/topics/ui/dialogs.html Jan 29 18:16:23 Aeefire: i'm looking at that, but the input i want is a spinner and multiline textview , would dialog window be appropriate for that ? Jan 29 18:17:26 go to Jan 29 18:17:28 sileni: you could also create a new activity and give it android:theme="@android:style/Theme.Dialog" in AndroidManifest Jan 29 18:17:29 "create a custom dialog" Jan 29 18:17:42 xfireguru: ah i think thats exactly what i should do Jan 29 18:17:52 that's an option too yeah. Jan 29 18:17:53 Aeefire: is xfireguru suggestion what you mean by custom dialog? Jan 29 18:18:10 It's not the same thing. Jan 29 18:18:13 not really, but if you have bigger actions to do, xfireguru's probably the better way Jan 29 18:18:40 well basically someone snaps a picture, and i want to get the info of where they are and if they want to leave comment Jan 29 18:18:49 the spinner would have locations, and the multiline for comment Jan 29 18:19:09 hm i think a custom dialog would be appropriate and the easier method Jan 29 18:19:26 but maybe the activity is "more beautiful" in its code Jan 29 18:19:26 :D Jan 29 18:19:47 You could use a customer AlertDialog and probably shove everything you needed into it. Jan 29 18:19:52 the only difference I see, is in accessing the data afterwards. Jan 29 18:20:08 yea, xfireguru.. thats somehow that what i mean :) Jan 29 18:21:40 Although if you created a new Activity you could have a little preview of the image in question with the Spinner and TextView and make the code look very nice. Jan 29 18:22:13 another question from me: I want to use the Holo theme from ICS (the dark one?) in my app... but through all android versions.. so for 2.x too... can i access it somehow if i set the "target version" of my app to 14 ? or do i need to extract the graphics & style data somehow into my app's resources? Jan 29 18:22:36 or is there some compability package... like there is for the action bar Jan 29 18:23:33 Not sure on that one Jan 29 18:24:31 ?android bla bla i think wouldn't work. because the holo theme isn't supported in pre-ICS. or would it because the "target-version" is API lvl 14 & there is the android.jar for that included? O.o uargh :D Jan 29 18:24:32 Targeting API level 14 alone, I don't think, would incorporate the Holo theme Jan 29 18:24:40 ya.. Jan 29 18:34:19 do I have to set a fixed them for the app, to make sure my background color etc always stays the same? Jan 29 18:34:31 theme Jan 29 18:34:48 so if I set the dark theme, holo won Jan 29 18:35:00 t be used in 4.0 phones Jan 29 18:35:29 if you have minsdkversion 14 it will work Jan 29 18:35:33 hi Jan 29 18:35:39 if you choose holo Jan 29 18:36:19 hii'm trying to get the location like described here: http://developer.android.com/guide/topics/location/obtaining-user-location.html. But the onLocationChanged Method is never called. Also there is no error message. how can i find out why onLocationChanged is never called? Jan 29 18:36:35 i did set the permissions correctly Jan 29 18:36:42 does maybe the onLocationChanged method never fire in the android emulator? Jan 29 18:37:32 ever tried it out on a real device? Jan 29 18:38:02 Aeefire, no Jan 29 18:38:33 are you using the eclipse IDE? Jan 29 18:38:44 you did try out "emulator control" right? Jan 29 18:39:39 im using eclipse. not sure what "emulator control" means Jan 29 18:39:51 swap to the DDMS view Jan 29 18:40:04 whats the ddms view? Jan 29 18:40:07 lol Jan 29 18:40:24 ah ok i got it Jan 29 18:40:32 sorry im very new to eclipse :) Jan 29 18:40:38 yeah, now look for emulator control Jan 29 18:40:55 there you should be able to manually set GPS coordinates Jan 29 18:41:13 (but i don't now if it will actually call your onLocationChanged , because i never worked with GPS locations) Jan 29 18:41:14 ah ok i see it Jan 29 18:41:31 well doesnt seem to call the method Jan 29 18:42:14 hm when i press "send" the log is not updated Jan 29 18:42:47 xfireguru: i just tried the activity method with theme.dialog. It is exactly what i wanted. Thank you so much Jan 29 18:42:58 sileni: Glad to hear it. You're welcome Jan 29 18:43:00 Aeefire: thanks to you too for your suggestion Jan 29 18:44:35 it's probably the "more beautiful" version :) have fun with it Jan 29 18:45:57 grml Jan 29 18:46:45 i wonder that it seems noone ever wanted to do this holo theme thingy for preICS devices.... i just hate the stock theme in android 2.x Jan 29 18:47:11 Too many framework modifications required, probably. Jan 29 18:48:56 the problem is I have no clue about AOSP sourcecodes... is there no way to extract the styles & drawables from that? can't be that hard. don't know where the problem actually is to do this. Jan 29 18:48:57 grml Jan 29 18:50:00 what's aosp? Jan 29 18:50:11 android open source project Jan 29 18:50:19 i mean the source code for the android ROM Jan 29 18:50:22 (stock) Jan 29 18:50:56 You can pull framework-res from a 4.0 ROM and pull the assets from that. Jan 29 18:51:07 Would be quite a project, though. Jan 29 18:51:31 hmm Jan 29 18:52:21 oh ok Jan 29 18:52:25 when i put the spinner, textview and button it is squished to one corner. I'm using linear layout with vertical orientation . http://imageshack.us/photo/my-images/31/tagitr.png/ if i do horizontal it only shows the spinner and nothing else is seen but even then it is not stretched to fill the activity. should i use table layout? Jan 29 18:56:51 sileni .. you set the spinner's view to "fill_parent" ? Jan 29 18:57:10 i think you did "wrap_content Jan 29 18:57:17 and because there is no content, it's that small Jan 29 18:58:25 i put the width to fill parent Jan 29 18:58:28 Jan 29 18:59:51 are there android devices which only logcat the error class, not debug, info etc? Jan 29 19:02:12 is it possible to have an event listener for clicking on the footer of a listview? Jan 29 19:04:07 testing... Jan 29 19:07:16 Is anybody good with ContentProviders? Jan 29 19:14:47 lol Jan 29 19:14:57 when adding "ActionBarSherlock" as existing projects I get over 100errors Jan 29 19:15:38 stupid eclipse lol Jan 29 19:15:48 when i remove & restart eclipse & readd it, it works Jan 29 19:15:48 lol Jan 29 19:16:23 Hi. Does anyone know anything about the status of ecryptfs on Android? Jan 29 19:19:33 Aeefire: even with table layout and putting each view in a row and telling it to fill_parent width Jan 29 19:19:50 Aeefire: it doesn't change it , i mean atleast button should fill the width right? Jan 29 19:24:55 sileni .. yeah that's actually strange. did you set the linear layout to width fill_parent too? Jan 29 19:25:20 it was match parent for the linear layout's width Jan 29 19:25:28 Aeefire: should i go back and try that Jan 29 19:25:39 go and try fill_parent Jan 29 19:27:15 Aeefire: doesn't change anything Jan 29 19:27:46 would you post the whole xml to some texthost? Jan 29 19:27:47 Hey guys, how do I preview my fragments in eclipse? Jan 29 19:27:59 Aeefire: http://pastebin.com/xS9vLvXe Jan 29 19:29:56 sileni: probably try it width layout weight Jan 29 19:30:11 assign weights to your views Jan 29 19:30:17 Aeefire: oh Jan 29 19:30:31 .33 everything Jan 29 19:30:47 DeviatPeer: Is it inside something that has wrap_content on or something? Jan 29 19:30:57 Oh my Jan 29 19:31:10 Chat window was scrolled up. Jan 29 19:31:14 Just responded to something from 2 hours ago. Jan 29 19:31:26 i'd try it with integer values Jan 29 19:32:14 Aeefire: it doesn't change anything Jan 29 19:32:18 RMapZero: hey :) Jan 29 19:32:54 Aeefire: its like there is a border there Jan 29 19:33:10 Aeefire: but on eclipse gui editor it fills the whole view Jan 29 19:35:46 hmm Jan 29 19:36:35 RMapZero: do you know why a textview, spinner, button will not fill_parent width in an activity? Jan 29 19:36:41 RMapZero: the activity has dialog theme Jan 29 19:36:56 I dunno, I always find this kind of thing confusing. Jan 29 19:37:22 lol strange Jan 29 19:37:32 What is it actually doing? Jan 29 19:37:40 Is it this pastebin thing? Jan 29 19:37:43 anyone has expierences with ActionBarSherlock ... i somehow can't import FragmentActivity Jan 29 19:37:55 RMapZero: http://imageshack.us/photo/my-images/31/tagitr.png/ Jan 29 19:39:38 RMapZero: all those views have their width set to fill parent Jan 29 19:39:46 Yeah, that looks right to me. Jan 29 19:39:51 Maybe it's in your code. Jan 29 19:40:06 Did you use setContentView on that dialog? Jan 29 19:40:30 RMapZero: yea Jan 29 19:40:37 thats how its showing those views Jan 29 19:40:40 Hrmmmmm. Jan 29 19:41:01 Maybe put a border around the containing layout. Jan 29 19:41:15 To see if the containing layout is small or if the spinner and text are small. Jan 29 19:41:24 how do i do that Jan 29 19:42:09 Oh maybe there isn't a simple way. Jan 29 19:42:26 http://stackoverflow.com/questions/2026873/android-way-to-appear-bordered-text-on-the-textview Jan 29 19:43:21 I'm surprised, because I see borders on the TableViews and such. Jan 29 19:43:38 Are you using Eclipse? What does it look like in the layout editor? Jan 29 19:43:54 In the layout editor it looks like it fills the whole activity Jan 29 19:44:44 Yeah, that sounds like the containing layout isn't flling that dialog. Don't know why. Jan 29 19:44:59 looking for someone who has used ActionBarSherlock before :XX Jan 29 19:46:56 I'm trying to make a simple 2 column layout, left column holding an image and it's corresponding right hand cell holding some text Jan 29 19:47:32 I want the image to take up 50% of the width of the screen (which is the same as 50% of it's parent) Jan 29 19:47:45 and the text to take up the rest Jan 29 19:47:53 how can I do this? Jan 29 19:48:20 ahow984_: linear layout ...vertical orientation...equal weights? Jan 29 19:48:26 I have a PageAdapter , which is working, but if I try to get a list view I've added to the pager by (ListView)findViewById(R.id.my_list); , it's null.. is there a better way to get a view from a pĂĄager? Jan 29 19:48:29 *pager Jan 29 19:48:29 ahow984_: what have you tried? Jan 29 19:48:34 I'm currently using a thread and a SurfaceView to draw an image, the threads run() is calling "doDraw" similar to the lunarlander example Jan 29 19:48:59 however, once the image has been drawn there's no real drawing work to do anymore until the user interacts or some part of the screen invalidates Jan 29 19:49:06 sileni: I tried linear layouts and table layouts Jan 29 19:49:09 neither worked Jan 29 19:49:18 I'll try linear layouts again Jan 29 19:49:20 what would be the correct way to implement this? My run() is currently basically endless looping Jan 29 19:49:39 is there any specific linux distro that seems to be most convenient for android dev or it really doesn't matter Jan 29 19:49:49 as far as having up to date packages etc. Jan 29 19:50:46 somedude, ubuntu works well for me Jan 29 19:50:53 wow I'm an idiot >_< Jan 29 19:51:15 tyvm sileni, I had forgotten to put weight into both columns, only into the first :P Jan 29 19:52:06 ahow984_: no problem Jan 29 19:53:12 ok cool i was thinking about going with ubuntu Jan 29 20:11:26 xfireguru: hey have you used the theme.dialog feature yourself? Jan 29 20:17:35 if i set the text of button to be a long string, it stretches to fill Jan 29 20:17:48 i don't understand why the button itself is not filling parent when i set its width to fill_parent Jan 29 20:18:11 also everything stretches to be same width as button Jan 29 20:18:19 its as if the container itself expands as the button becomes wider Jan 29 20:18:46 maybe it is and the container is small Jan 29 20:20:28 Why is onRetainNonConfigurationInstance() deprecated? Jan 29 20:20:29 http://developer.android.com/reference/android/app/Activity.html#onRetainNonConfigurationInstance() Jan 29 20:20:39 What am I supposed to use in its place if I'm not using Fragments? Jan 29 20:21:54 if i remove android:theme="@android:style/Theme.Dialog" , then the activity that is presented has the views to be fill_parent but if i put that option in the manifest it doesn't fill Jan 29 20:21:57 Hi folks, someone knows where i can find how to trace route based on waypoints on gmaps api? i just found how to do for web... Jan 29 20:22:38 does anyone here have experience with android:theme="@android:style/Theme.Dialog" Jan 29 20:31:03 hello Jan 29 20:31:21 I'm working on a class that extends TabActivity Jan 29 20:32:11 and I'm building a button (btngoto.setOnClickListener(new OnClickListener() ...onClick method.. etc) Jan 29 20:33:03 Does anyone have any experience with checkable listviews? Jan 29 20:33:18 I'm getting a force close(due to this line according to logcat). Any idea how to fix that? Jan 29 20:33:34 anyone has an idea how to add a compabilitypackage (.jar) to an android eclipse project? Jan 29 20:33:53 Aeefire: Yes, I think it's in properties. Jan 29 20:33:55 On the project. Jan 29 20:34:10 Under android. Jan 29 20:34:34 Or Java Build Path. Jan 29 20:35:37 wissem: I probably can't help you, but I would guess that anyone who could would need mroe information than that. Jan 29 20:35:54 Like the logcat trace. Jan 29 20:35:58 thanks RMapZero totally forgot about that! Jan 29 20:39:38 the android design guidelines for typography & text sizing conflict with the styles in ics, which to believe ? Jan 29 20:40:16 ICS is pretty. Jan 29 20:40:19 Just throwing that out there. Jan 29 20:41:49 RMapZero: agreed. Jan 29 20:42:03 if you wanted to make something similar to a map -- where you can drag the image around a fixed frame of view, how would you go about that? Jan 29 20:42:17 I'm suffering through a semi-broken build because I like it that much more than gb Jan 29 20:42:34 Touchpad?? Jan 29 20:42:47 g2 Jan 29 20:43:32 Yeah, I'm on Touchpad CM9 Alpha 0.5 Jan 29 20:43:33 the camera app doesn't work properly on my phone for some reason, and there are a couple other things that aren't complete, but it's fast and usable, which are the important things. Jan 29 20:43:37 nice Jan 29 20:43:49 I doubt the camera works. Jan 29 20:43:52 I really want ICS on my iconia tab. Jan 29 20:44:15 They haven't implemented, as far as I can tell, any mechanism for putting the battery precentage in the icon. Jan 29 20:44:18 But it's just so pretty. Jan 29 20:44:25 how many ics phones are there? Jan 29 20:44:31 Plus I kinda need it to do ICS dev. Jan 29 20:44:35 anyones that are similar in size to htc incredible 1? Jan 29 20:44:45 rgravener: officially, only Galaxy Nexus and some Nexus S, afaik Jan 29 20:44:59 thats not good Jan 29 20:45:08 a bunch of phones got alpha/beta quality images available Jan 29 20:45:26 Yeah, I doubt it'll be long before ICS is more widely adopted. Jan 29 20:45:26 in about 3-5 mos a bunch of gb handsets will probably get updates Jan 29 20:45:50 I never had a Honeycomb device - did they have the action bar in Honeycomb? Jan 29 20:46:00 yeah Jan 29 20:46:11 RMapZero: that's where actionbar appeared Jan 29 20:46:27 I like it. Jan 29 20:46:58 I have a warped sense of this OS, though, because I only run it on this big beautiful tablet. Not sure how I'd feel about it on my phone. Jan 29 20:47:28 Unless I had a phone made to have ICS - extra screen and no HW buttons. Jan 29 20:47:41 RMapZero: I wasn't sure either based on what I saw with honeycomb, but I like it on my g2 Jan 29 20:47:50 I find lack of hw buttons to be biggest flaw of Galaxy Nexus Jan 29 20:48:04 is someone into actionbars? Jan 29 20:48:16 though by hw buttons I mean "pressable" buttons, not capacitive crap Jan 29 20:48:29 p_l, why? Jan 29 20:48:35 I hate capacitive buttons. Jan 29 20:48:51 mrenouf: have you tried using capacitive buttons in gloves, in -30°C? Jan 29 20:48:56 I got a bluetooth listener, mostly for my motorcycle. Jan 29 20:49:04 Stereo bluetooth thing. Jan 29 20:49:08 p_l, get better gloves, mine work fine ;-) Jan 29 20:49:11 Fucking volume button is capacitive. Jan 29 20:49:18 maybe not -30 though Jan 29 20:49:18 And you stroke it to change the volume. Jan 29 20:49:34 mrenouf: low-temp stuff tends to be too thick for capacitive buttons to work Jan 29 20:49:35 The whole POINT of that thing is to use buttons with gloves on. Jan 29 20:49:51 p_l: Have you considered sewing some conductive thread into it? Jan 29 20:49:58 I was going to look into that, given my current issues. Jan 29 20:50:07 RMapZero: too much effort most of the time Jan 29 20:50:16 It's a one-off thing. Jan 29 20:50:36 I found SGS2 to hit the sweet point with hw volume, lock/power and home buttons Jan 29 20:50:59 you can use Home button to answer a call, lock/power to end it Jan 29 20:51:03 So, the iPhone then? Jan 29 20:51:04 ;) Jan 29 20:51:27 Someone here knows about gmaps api? Jan 29 20:51:31 But yeah, I can see it. That seems to be all I need on the Touchpad. Jan 29 20:51:37 RMapZero: iPhone doesn't let me answer a call other than swiping on the screen... or at least I haven't seen other option Jan 29 20:51:50 and the UI and OS suck Jan 29 20:51:54 (on iPhone) Jan 29 20:51:56 Yeah, but the form factor is the same. Jan 29 20:52:03 And yes, obviously the UI and OS are awful. Jan 29 20:52:17 other than speed/responsiveness of iOS, there's nothing appealing for me Jan 29 20:52:35 I had an iPhone for a few years, coudln't wait to get on to android. Jan 29 20:52:38 Is there any way to prevent someone uninstall my application on android? Jan 29 20:52:43 haven't tried iOS 5, but there isn't enough of a change for me Jan 29 20:52:43 I have an SGS and an N9 Jan 29 20:52:51 ping86: have it installed in system partition Jan 29 20:52:56 ping86: How so? (make it "administrative") Jan 29 20:53:05 Why would you ever want to do that? Jan 29 20:53:12 or make it the device administrator... Jan 29 20:53:12 there's admin API:s. Don't know how hard you can lock that down Jan 29 20:53:17 Jonathan_L: not much Jan 29 20:53:38 if the idea is to prevent other apps from installing that app, admin API:s should work Jan 29 20:53:39 funnily enough, Google device admin software includes remote bricking :D Jan 29 20:54:05 not hard when you know the target hardware, though Jan 29 20:54:07 I can't imagine you could install something on a non-root device that can't be uninstalled. Jan 29 20:54:16 Unless you do it in the factory. Jan 29 20:54:22 And if you're rooted, you can uninstall it anyway. Jan 29 20:54:34 ping86: So, writing a virus? Jan 29 20:54:35 RMapZero: Depends on who you're trying to protect it from Jan 29 20:54:45 no, Lost Phone app Jan 29 20:54:46 RMapZero: depends on the specific extensions done to the OS image by manufacturer Jan 29 20:54:48 RMapZero: let's say I have the same example as here: http://developer.android.com/guide/tutorials/views/hello-tabwidget.html Jan 29 20:55:01 ping86: make it a device administrator, and lock with password Jan 29 20:55:20 Ah. Jan 29 20:55:22 iirc unless you know the password you can't disable the device admin, and without disabling it, you can't uninstall it Jan 29 20:55:23 hello everyone Jan 29 20:55:24 how Can I add a button(with a click listner and a onClick method) to the HelloTabWidget class? Jan 29 20:56:11 p_l: I need root privileges to do this? Jan 29 20:56:14 RMapZero: i don't know if you were here , but if i make the text in the button to be a long string it expands to fill the view and everything else also expands. Its as if the container is initially small and it expands to content Jan 29 20:56:36 Is Froyo pretty common in devices still? Jan 29 20:56:39 wissem: Add a button in the xml, View.findViewById(R.id.blahblah).setOnClickListener(new OnClickListener() { protected void... }); Jan 29 20:56:41 New devices Jan 29 20:56:49 RMapZero: do you know how to set the container to fill parent? Jan 29 20:57:00 sileni: It looked like you already did that. Jan 29 20:57:08 In that pastebin you sent. Jan 29 20:57:14 RMapZero: yea Jan 29 20:57:17 let me show you Jan 29 20:57:20 ping86: no Jan 29 20:57:21 Definitely looks like the container itself isn't filling the parent. Jan 29 20:57:25 ping86: that's an official API Jan 29 20:57:40 ping86: you need root for some... interesting unofficial extensions Jan 29 20:57:47 like remote bricking Jan 29 20:57:52 o.O Jan 29 20:58:17 wissem: I think you have to use x.findViewById(...) where x is the appropriate view. Jan 29 20:58:24 But I always forget how to do it right in each context. Jan 29 20:58:26 theoretically with kernel modules you should be able to fry the cpu Jan 29 20:58:36 It's like this.findViewById or this.getContext().findViewById Jan 29 20:59:04 starlon: http://developer.android.com/resources/dashboard/platform-versions.html Jan 29 20:59:37 I imagine you can extrapolate from the historical data. Jan 29 20:59:47 I doubt Froyo will be on new devices, but I haven't looked. Jan 29 21:00:00 not anymore, but it was still there on some recent ones Jan 29 21:00:12 RMapZero: as you can see http://imageshack.us/photo/my-images/838/fillmeup.png/ Jan 29 21:00:17 RMapZero: Thanks. That's exactly what I was looking for. Jan 29 21:00:46 actually does anyone know what is going wrong? if i remove the theme.dialog directive i get a plain activity that has its views fill_parent working Jan 29 21:00:47 sileni: Yeah, I figured - it seems like the container those things are in are set to wrap_content or something. Jan 29 21:01:02 RMapZero: what container though its just a layout. Jan 29 21:01:08 The root layout. Jan 29 21:01:30 there is a root layout? i thought the parent is just the calling activity Jan 29 21:01:48 There's always a root layout. Jan 29 21:02:03 But in this case I mean the LinearLayout those views are in. Jan 29 21:02:10 oh ok Jan 29 21:02:41 Why do you have Theme.Dialog in there? Jan 29 21:02:47 I don't know if you need it for a custom dialog or anything. Jan 29 21:03:18 so that it will come out like that Jan 29 21:03:29 So this isn't an actual dialog? Jan 29 21:03:30 RMapZero: if i don't do theme.dialog it will just be another activity Jan 29 21:03:37 RMapZero: no it is an activity Jan 29 21:03:46 RMapZero: with style set to theme.dialog Jan 29 21:03:58 You should make it an actual dialog. Jan 29 21:04:03 Jan 29 21:04:18 public class MyDialog extends Dialog/AlertDialog or whatever. Jan 29 21:04:29 I dunno, maybe skinning an activity to look like a dialog is the standard way to do that. Jan 29 21:10:57 Damn it. Jan 29 21:11:01 I had this stupid checkable layout working. Jan 29 21:11:06 And decided I wanted a different behavior. Jan 29 21:11:09 So I changed everything around. Jan 29 21:11:23 Went back to the old way, now it won't toggle the check. Jan 29 21:13:17 Hold Ctrl+Z :P Jan 29 21:14:12 I wish. Jan 29 21:14:18 It was over a week ago. Jan 29 21:14:28 I think it would even be hard to restore from local history. Jan 29 21:21:15 RMapZero: hmm that didn't do it ...extending dialog instead of activity :\ Jan 29 21:21:22 RMapZero: this is driving me nuts Jan 29 21:21:29 Did you get rid of the style? Jan 29 21:22:09 ye Jan 29 21:22:36 hi guys. should I be able to open a jpg from my resources directory using Intent.ACTION_VIEW? Jan 29 21:22:56 I'm getting "android.content.ActivityNotFoundException: No Activity found to handle Intent" Jan 29 21:23:42 do services keep track of how manny clients are bound to one of its interfaces? Jan 29 21:23:52 *many Jan 29 21:23:59 Maybe it's this: http://stackoverflow.com/questions/2306503/how-to-make-an-alert-dialog-fill-90-of-srceen-size/6631310#6631310 Jan 29 21:24:15 Try setting the width of the layout after the Dialog is created, maybe? Jan 29 21:24:35 I honestly don't know, it's crazy. Jan 29 21:24:59 are dialogfragments worth it even bother about in comparsion to regular dialogs.... Jan 29 21:25:05 ? Jan 29 21:25:21 RMapZero: i thought you were all knowing, this shatters my reality Jan 29 21:25:29 Hah Jan 29 21:25:44 I'm not even really a programmer. Jan 29 21:25:47 I'm a chemist. Jan 29 21:25:53 I do this for fun. Jan 29 21:26:01 (And I don't think I'm that good at it) Jan 29 21:26:12 RMapZero: best to keep it that way Jan 29 21:26:21 Yeah. Jan 29 21:26:28 RMapZero: once you start doing it for someone else it honestly kills you Jan 29 21:26:29 Well. Jan 29 21:26:35 The do it for fun bit, anyway. Jan 29 21:26:42 I'd rather get rid of the not that good at it bit. Jan 29 21:26:45 RMapZero: all love of the subject dies :p Jan 29 21:26:52 hehe Jan 29 21:27:07 tclayson: i think you should help me solve my problem for fun Jan 29 21:27:23 lol I'll have a look Jan 29 21:27:28 whats your problem Jan 29 21:27:48 ok so i have a class that extends dialog and it has spinner, textview, and a button Jan 29 21:28:02 but the views don't fill_parent when even though i have their layoutwidth to fill_parent Jan 29 21:28:04 let me show picture Jan 29 21:28:10 maybe while I'm looking at yours someone can have a look at mine ;) lol Jan 29 21:28:53 sileni: ok lets see a pic Jan 29 21:29:42 http://imageshack.us/photo/my-images/850/wontfillme.png/ Jan 29 21:31:18 any ideas Jan 29 21:31:36 one sec sorry… :) just writing up my issue on stack overflow. :p will take a look in mere seconds Jan 29 21:32:09 ok and the xml is here http://pastebin.com/FfyvaRtC Jan 29 21:32:13 Is it possible to populate a listview dynamically? Jan 29 21:32:37 do services keep track of how manny clients are bound to one of its interfaces? currently i'm keeping track of clients in a registration call back list, but i don't want to keep synchronizing this Jan 29 21:34:06 seleni: what api level are you using? Jan 29 21:34:11 OK, fuck this checkable bullshit, I'll just handle all this stuff in the adapter. Jan 29 21:34:24 tclayson: 2.3.3 Jan 29 21:34:29 ok Jan 29 21:34:45 b0nn: What do you mean by dynamically? Jan 29 21:34:48 RMapZero: is this what you're talking about? Jan 29 21:34:53 RMapZero: whats the problem? Jan 29 21:35:04 RMapZero: is all good, I found an example straight after asking Jan 29 21:35:14 http://mfarhan133.wordpress.com/2010/10/14/list-view-tutorial-for-android/ Jan 29 21:35:24 ^^that has clickable list items Jan 29 21:35:30 Not clickable. Jan 29 21:35:31 Checkable. Jan 29 21:35:34 oh Jan 29 21:35:34 sileni you doing this for work? Jan 29 21:35:42 Aususter: no Jan 29 21:35:47 So when you select an item it checks the check box in it. Jan 29 21:35:48 Aususter: just something on side Jan 29 21:35:55 I've had it working before. Jan 29 21:35:55 interesting Jan 29 21:36:06 The ListView is supposed to take care of what items are checked and whatnot. Jan 29 21:36:20 Aususter: why have you done it before? Jan 29 21:36:48 no... i'm just starting to learn to do apps Jan 29 21:36:55 for fun Jan 29 21:37:03 RMapZero: Just make sure the root view is Checkable Jan 29 21:37:10 Yeah, it is. Jan 29 21:37:24 I think maybe OnListItemClick is capturing the input before the check goes in. Jan 29 21:37:42 the thing is it expands the container if lets say i put a huge string as text in the button Jan 29 21:37:44 I'm going to comment it out and double check. Jan 29 21:38:02 Then just proxy the setChecked to the CheckBox Jan 29 21:38:31 SimonVT: I mean I could build it easily into the adapter, or do some other hack. Jan 29 21:38:33 so do you guys make alot of money making apps? Jan 29 21:38:37 But I'd rather do it right. Jan 29 21:39:05 Aususter: A secret multiple of $1 000 000 a month. Jan 29 21:39:13 sileni: I'm like 95% sure that the views themselves aren't the issue. Jan 29 21:39:17 Could be more or less than 100. Jan 29 21:39:17 SimonVT: have you used tabs on ics? do you know what the background color would look like for a plain tabwidget (not actionbar) in a light theme? would it just be white bg or would it have a slight grey ? Jan 29 21:39:29 It's the Layout or the root view in the dialog that is being set to Wrap_content. Jan 29 21:39:29 (though probably less... :P) Jan 29 21:39:32 1 million US? Jan 29 21:39:41 g00s: No idea, only used ActionBar tabs Jan 29 21:39:43 RMapZero: oh ok Jan 29 21:39:43 you making angry birds or something Jan 29 21:39:46 Aususter: joking Jan 29 21:39:52 secret multiple = 0 Jan 29 21:39:59 0*whatever = 0 Jan 29 21:40:04 not sure if angry birds makes that much Jan 29 21:40:09 eh.. Jan 29 21:40:19 so what kind of apps have you made Jonathan_L Jan 29 21:40:27 none yet Jan 29 21:40:32 g00s: weren't you using RoboGuice? Jan 29 21:40:39 looks like your a beginner like me Jan 29 21:41:06 I mean, that explains the behavior. Jan 29 21:41:12 which is why multiple = 0 Jan 29 21:41:12 would like to turn that multiple into a 10, though. Jan 29 21:41:13 p_l: no, never used it Jan 29 21:41:17 Because you only need to expand /one/ of them to see them all get large. Jan 29 21:41:36 mine a beginner...? lol Jan 29 21:41:36 *you're Jan 29 21:41:36 (yes, I'm a grammar nazi when I find it funny) Jan 29 21:41:37 That indicates that whatever is containing them grows in response to their size. Jan 29 21:43:07 RMapZero: yea Jan 29 21:43:42 I set the linearlayout to be fill_parent for width also but it didn't do anythig Jan 29 21:43:53 Yeah Jan 29 21:44:06 That is what stuns me. Jan 29 21:44:11 Because when I use like an AlertDialog. Jan 29 21:44:16 And add some listview items to it. Jan 29 21:44:21 They fill it up just fine. Jan 29 21:44:28 But that is probably a different situation. Jan 29 21:44:44 g00s: ah. I thought you had something to do with guice, thus the roboguice conclusion Jan 29 21:45:05 It may be that the dialog forces the top-level view to be wrap_content, so it can determine how much room to give the dialog on the screen. Jan 29 21:45:13 But I don't understand why the thing wouldn't fill the dialog. Jan 29 21:45:26 I also don't fully understand the difference between a Dialog and an AlertDialog. Jan 29 21:45:31 So maybe there's something there. Jan 29 21:45:38 Since I often see AlertDialogs used for this instead of Dialogs. Jan 29 21:46:12 lol Jan 29 21:46:18 my action bar does work in pre-ICS but not in ICS Jan 29 21:46:19 hahaha Jan 29 21:47:05 RMapZero: if i use alert dialog there is nothing except the three views, its as if everything else becomes transparent and it is still small Jan 29 21:47:07 Wait a second... ViewPager + ViewPagerIndicator becomes pretty much the same as TabHost & co? Jan 29 21:47:21 Aeefire: grats Jan 29 21:47:27 n20: not really Jan 29 21:47:52 g00s: What does the 'Market app use? ViewPager? Jan 29 21:48:06 sileni: Ah, then I don't know. Jan 29 21:48:11 probably, or some special version of it Jan 29 21:48:11 Basically Jan 29 21:48:20 Good luck. Jan 29 21:48:22 Special version Jan 29 21:48:23 Let me know when you figure it out. Jan 29 21:48:27 I'm going to go to a ramen shop. Jan 29 21:48:34 RMapZero: ok Jan 29 21:48:37 RMapZero: have fun Jan 29 21:49:05 anyone else up for a challenge ? :D Jan 29 21:50:41 SimonVT: did you notice the text size guidelines conflict with ics textAppearance sizes? Jan 29 21:51:18 i am out for today Jan 29 21:51:20 cu tomorrow Jan 29 21:52:37 g00s: Not really Jan 29 21:52:47 I choose whatever size looks good Jan 29 21:53:02 for example, they have large as 18sp but textAppearanceLarge is 22 Jan 29 21:55:03 g00s: I assumed it were 18sp, too. Were did you see 22? Jan 29 21:55:26 sileni: sorry my internet went down… stupid plus net its been going down all weekend. Did you get your problem fixed? Jan 29 21:55:42 everythingWorks: in the platform styles.xml Jan 29 21:55:56 TextApparance.Large i think it is Jan 29 21:56:15 tclayson: no Jan 29 21:56:28 tclayson: its all good, do you have why it might be doing this ? Jan 29 21:56:43 I don't have any idea, but I'm looking into it… :p Jan 29 21:56:57 ok thank you Jan 29 21:58:59 wut Jan 29 21:59:25 i saved an xml file with an attribute missing a final " , and the adt formatter fucked up half the file Jan 29 21:59:33 sileni: dunno if this will help you? http://android-coding.blogspot.com/2011/07/create-custom-dialog-using.html Jan 29 22:00:03 sileni: sorry for the delay. i'm at work now. yes, i have used theme.dialog Jan 29 22:01:03 xfireguru: hey for some reason the views are not filling the parent Jan 29 22:01:11 xfireguru: do you have a second or busy? Jan 29 22:01:26 i've got a minute or two Jan 29 22:01:33 xfireguru: http://imageshack.us/photo/my-images/850/wontfillme.png/ Jan 29 22:01:40 xfireguru: does it look like something you ran into before? Jan 29 22:02:21 xfireguru: i actually made it extend dialog instead of doing activity and doing the style setting like you said. For some reason both give me this result Jan 29 22:02:44 xfireguru: it seems the container expands for example if i set a huge string for the button text everything expands including the other views Jan 29 22:03:02 I'm not aware of a way to make AlertDialog fill the parent. Jan 29 22:03:17 Unless I'm mistaken it will always wrap_content Jan 29 22:03:39 xfireguru: its same when i keep it as activity and do the style setting like you said Jan 29 22:03:42 theme.dialog will do the same... it's kind of the point of the dialog. Jan 29 22:03:59 It's meant to look almost like a pop-up over the originating activity Jan 29 22:05:00 otherwise you could replace theme.dialog with something like Theme.NoTitleBar to create a fullscreen activity Jan 29 22:05:53 xfireguru: yea but what i want is in the popup it should fill the popup space, for there is black space on the right Jan 29 22:06:09 oh, sorry! misunderstood the question Jan 29 22:06:24 xfireguru: no problem Jan 29 22:06:35 can you pastebin the xml for that activity? Jan 29 22:06:55 xfireguru: http://pastebin.com/FfyvaRtC Jan 29 22:07:10 oh man, somebody keeps ripping huge ones here at the library Jan 29 22:07:14 like fire from hell kinds Jan 29 22:08:46 I'm trying to mimic the appearance of a long click in a listview. I.e. I would like to use the same color as platform default. How do I get that color? In 2.x it's an orange one, and on 4.x it's a blueish color. Jan 29 22:09:28 pakerfeldt: the drawable is the listSelector Jan 29 22:09:49 @android:drawable/list_selector_background Jan 29 22:10:22 so anyone here a full-time app developer here Jan 29 22:10:41 sileni: that's an odd problem. Jan 29 22:10:49 xfireguru: yea Jan 29 22:11:20 g00s: hmm, I get the orange color on 4.0.1 Jan 29 22:11:37 xfireguru: im thinking about just leaving it as an activity , cause if i go this route it looks a little bad ...being so small and everything Jan 29 22:11:39 maybe not using the holo theme or something Jan 29 22:12:19 If he's using the drawable directly, theme doesn't matter Jan 29 22:12:28 * p_l ponders releasing his openvpn gui on market Jan 29 22:12:58 Most holo assets have holo in their names tho Jan 29 22:13:08 I'd guess that to be true for the list selector as well Jan 29 22:14:28 I did TextView.setBackground(...) Jan 29 22:15:02 ehm Jan 29 22:15:34 anyone here use OpenVPN GUI? This one, that is: https://market.android.com/details?id=de.schaeuffelhut.android.openvpn Jan 29 22:15:40 that was not what I meant. I did set android:backround="" on my TextView in my layout xml Jan 29 22:16:18 A listview gets the blue color when pressed, so I guess it has nothing to do with the theme? Jan 29 22:20:55 SimonVT: still there ? Jan 29 22:21:01 yarr Jan 29 22:22:08 SimonVT: quick q, if you look at http://developer.android.com/design/building-blocks/tabs.html you will notice the youtube indicators are red instead of the holo blue, is there any way to control this, or do i just need to redraw all the 9patches ? Jan 29 22:23:11 Well, if the indicator is an image, then yea, you have to make new 9patches Jan 29 22:25:06 k, thanks Jan 29 22:33:50 g00s: Sorry for coming back to this point, but where exactly did you see the 22sp? :P Jan 29 22:35:54 everythingWorks: platform styles.xml Jan 29 22:39:46 So, I have a short .mov file that I want to make into a repeating animation... Jan 29 22:40:09 all I can find on the googles is how to play .mov files with an app. I want to put this into my app Jan 29 22:40:35 g00s: I could not find a directory named 'platform' in the source folder/s Jan 29 22:40:50 if I wanted a tablet to dev on, which would be the best choice? a transformer prime maybe? Jan 29 22:41:37 Transformer was fine, so I hope Prime will be as good or better Jan 29 22:41:49 prime is out already, right..? Jan 29 22:42:01 didn't have a chance to play with Prime yet Jan 29 22:42:10 ah ok Jan 29 22:42:16 no tablets run 4.0 yet do they? Jan 29 22:42:40 there is one, I think, but it's quite uncommon device Jan 29 22:42:52 (and no app that uses NDK runs on it so far, I think) Jan 29 22:43:16 hmm, ok. maybe I'll suggest a transformer prime Jan 29 22:43:23 if I wanted to use NFC, what API level would I have to target..? Jan 29 22:44:27 (would it have to be 10? :/ ) Jan 29 22:44:57 Both prime and xoom has ics dont they Jan 29 22:46:34 hey Gambit- Jan 29 22:46:48 o/ Jan 29 22:46:49 how goes Jan 29 22:46:52 ? Jan 29 22:46:53 At CES 2012, the manufacturer announced a new version of the Transformer Prime, the TF700T, less than a month after the original product launch. Jan 29 22:46:54 o_O Jan 29 22:47:13 Gambit-: not bad, how is it up there ? still organizing those android events ? Jan 29 22:47:16 with a ridiculously pretty panel Jan 29 22:47:30 yup Jan 29 22:47:32 which reminds me Jan 29 22:47:34 that is probably too big for the 3 cores to power Jan 29 22:47:37 I need to make a point of booking the next one today. Jan 29 22:47:42 :) Jan 29 22:48:01 I wish I could find someone who was good at android/mobile user interface design to present. Jan 29 22:48:23 Gambit-: did you see the new guidelines ? Jan 29 22:48:39 sure Jan 29 22:48:51 didn't read through them, though, tbh, since I haven't been doing much/any android dev lately. Jan 29 22:49:16 one thing that would probably be a hit topic wise, is making an app look nice on froyo <--> ics Jan 29 22:49:30 yeah, blair's talked about that a little bit. Jan 29 22:49:37 when he did his fragments presentation. Jan 29 22:49:45 i spent the last month doing that, and found it ridiculously hard Jan 29 22:49:54 i mean, from a graphics design standpoint Jan 29 22:49:59 you're not local, are you? :) Jan 29 22:50:03 no Jan 29 22:50:04 :( Jan 29 22:50:06 alas. Jan 29 22:51:28 anyone else going to https://sites.google.com/site/androiddeveloperlabs/sydney ? Jan 29 22:52:31 wabz, no, but you totally should. Jan 29 22:52:47 yeah I am Jan 29 23:03:49 hi Jan 29 23:03:52 i'm a begginer Jan 29 23:04:09 i'm trying out tab layout in android 4.0.3 Jan 29 23:05:05 and when i add android:theme="@android:style/Theme.NoTitleBar" to the activity the tabs get old theme look, not 4.0 one Jan 29 23:22:55 Good night guys (: I'm trying to draw a line beetween two points in a map. I found an snippet on StackOverflow. It's everything ok, but, the line just appear when I move the map, touching the screen by "animateTo". Someone know why? Jan 29 23:25:07 I saw in another question in SO a dude with the same problem, but now, I can't find that question anymore... Jan 29 23:59:53 anyone used Boost with NDK? Jan 30 00:16:48 What does it mean when a device shows "offline" under 'adb devices'? Jan 30 00:17:01 How do I make it online? I tried replugging it. Jan 30 00:18:12 what phone is it? Jan 30 00:18:51 it's just a gingerbread tablet Jan 30 00:18:59 iview iview Jan 30 00:19:02 cypad or whatever Jan 30 00:19:07 Has anyone else had the problem that if you do R.id. none of the suggestions show up (in Eclipse)? Jan 30 00:19:40 I'm also seeing errors in the editor, but not in the package explorer. Jan 30 00:19:46 rebooting fixed it Jan 30 00:22:47 how can I disable auto-redraw on my view? Jan 30 00:35:30 p_l: I've used Boost with NDK, but no longer have access to the project source to refer back to. If you're only using the bits of boost that are headers (with the functions completely inlined) then it's not too bad. If you're using the parts that need their own library, it's possible but more fiddly. Jan 30 00:35:42 thanks Jan 30 00:36:02 it seems that with GNUstl it shouldn't be *too* problematic Jan 30 00:38:49 now, finding a GIS database to run in android seems harder -_-; Jan 30 00:39:07 how can I force a View to redraw? (I mean instantly) Jan 30 00:41:18 bluesign: invalidate() I think Jan 30 00:42:33 kanelbul1e: Actually I have two updates on screen, but android tries to be smart and combine them on a single paint. (painting the rectangle containing both updates). So I want to commit my first "invalidate" first. Jan 30 00:43:57 kanelbul1e: I guess if I want to invalidate single point (top left corner) and another one single point (bottom right), whole screen repainted. That's my problem Jan 30 00:45:18 bluesign: aha.. probably not much to do about that Jan 30 00:48:10 When you are connected to a physical device, how do you access logcat? Jan 30 00:48:15 Is there a specific config? Jan 30 00:50:12 RMapZero: when you say connected to a physical device, what do you mean? Jan 30 00:50:20 Like plugged into a phone. Jan 30 00:50:25 Build on the phone. Jan 30 00:50:37 I'm looking in DDMS mode. Jan 30 00:50:42 nothing special Jan 30 00:50:48 just choose the device Jan 30 00:51:17 Logcat's not showing me anything. Jan 30 00:51:28 * p_l nearly never runs the emulator, so it's straight adb logcat for him Jan 30 00:52:18 ... also, it's surprising how much you need to load as permissions in quite simple app -_-; Jan 30 00:53:23 Ah, got it. Jan 30 00:53:34 * p_l has 3 and 6 ... Jan 30 00:53:37 Not sure what it was. Jan 30 00:53:44 and I just started writing the app Jan 30 00:54:26 Me too. Jan 30 00:54:34 I wrote Hello World and it took like 5 permissions. Jan 30 00:54:38 And root. Jan 30 00:54:43 Nope, that was a lie. :( Jan 30 00:55:06 oops, sorry, i asked a question and forgot I asked it and went afk...glad you fixed it though ^^ Jan 30 00:55:21 or, maybe you haven't fixed it... Jan 30 00:55:37 i tend to use logcat from the command line rather than the one in eclipse Jan 30 00:56:29 assuming your paths are set up, you should be able to just go 'adb logcat' Jan 30 01:02:55 well, I need uses-feature to stop market from filtering it out on devices that don't have GPS or location.network, permissions for coarse and fine location, permission for vibrator, status bar, wake lock... Jan 30 01:18:11 Does anyone know how to sync the scrolling of two side by side listviews? I can't override the onScrollChanged method like you would with a scrollview Jan 30 01:25:07 maybe someone can help me out, i'm trying to update eclipse and the android sdk but eclipse is saying some of my software isn't valid, i have no idea what's wrong.... nothing's changed that i'm aware of Jan 30 01:39:06 which OS? Jan 30 01:39:55 I don't suppose anyone would know how to synchronize the scrolling of listviews? Jan 30 01:40:40 bankai_: i'm on ubuntu 10.10 Jan 30 01:40:49 i'm getting this message http://pastebin.com/EX2TfcaM Jan 30 01:41:37 can anyone point me to the most active android developer QA/forum site? Jan 30 01:41:46 stackoverflow? google groups? Jan 30 01:42:23 haiya Jan 30 01:42:52 djbpython: yes Jan 30 01:43:01 djbpython: stackoverflow though mostly Jan 30 01:44:00 intelligentfool: ubuntu? well there's your problem Jan 30 01:44:21 haha, perhaps Jan 30 01:44:26 what would you suggest? Jan 30 01:44:40 is this output from eclipse's own update service? Jan 30 01:44:51 yea Jan 30 01:44:54 well, i think Jan 30 01:45:36 maybe it can't download everything it needs to Jan 30 01:45:52 i'm going to just try updating eclipse manually Jan 30 01:46:15 if I get a table back from a webserver, what's the best way to sort the data out so I get what I want from the table? Jan 30 01:46:17 i'll upgrade ubuntu later on, or switch to another distro but i mostly like ubuntu so far Jan 30 01:46:32 intelligentfool: good luck with that ;) Jan 30 01:47:23 hah, thanks. i dont like to install stuff without apt-get but we'll see what happens Jan 30 01:47:48 For example http://pastebin.com/tVNHtSiX (I can give each td a unique name if that makes getting things out easier Jan 30 01:47:51 ubuntu doesn't like you doing things different or touching things it thinks you shouldn't Jan 30 01:48:22 bankai_: i'm usually ok with that though, i'm not a sys admin after all :) Jan 30 01:48:52 bankai_: if I wanted a distro that was like ubuntu but would allow me to do things differently, would debian be a good choice? Jan 30 01:49:15 only cos I'm gonna install linux on my laptop soon Jan 30 01:49:39 Everyones' favourite is Mint at the moment isn't it? Jan 30 01:50:04 barbs: depends how hacky you wanna get with it ... Jan 30 01:51:23 btw is there any significant differences between eclipse 3.5 and 3.7? Jan 30 01:51:32 probably a stupid question :) Jan 30 01:51:44 i like arch linux...only install what you need and all that. one of these days i'm gonna roll LFS Jan 30 01:52:08 barbs: LFS is fun to learn with, but a royal PITA to maintain Jan 30 01:52:34 yeah, I probably wouldn't use it as a practical machine, more of a hobby thing Jan 30 01:53:17 practical LFS is called "Gentoo" ;) Jan 30 01:53:32 lol then SLackware Jan 30 01:53:36 haha, yeah I've heard Gentoo is pretty pro Jan 30 01:53:52 slackware seemed a bit similar to arch from memory Jan 30 01:54:09 back when i was looking into installing a distro onto an eee pc Jan 30 01:54:24 pass, I went mandrake -> RH -> SLackware -> LFS -> Ubuntu Jan 30 01:54:42 debian, but I only use linux on servers Jan 30 01:55:03 I only went ubuntu because the debian I was trying to install had an X issue Jan 30 01:55:39 the answers on SO are terrible Jan 30 01:55:50 gentoo, well, perhaps for a desktop Jan 30 01:55:55 not really a fan Jan 30 01:55:57 That was ~6 years ago.. not bothered to fluff around with distros anymore, decided to learn how to code instead Jan 30 01:56:03 barbs: Arch is more organized than Slack, it seems Jan 30 01:56:12 yeah that was the impression I got Jan 30 01:56:16 it's also fairly easy to recompile specific package Jan 30 01:56:29 Gentoo is fine if you got the computing power for it Jan 30 01:56:29 i was pretty happy with it... Jan 30 01:56:45 and patience Jan 30 01:56:59 bankai_: if you have computing power, you don't need patience Jan 30 01:57:15 meh, even if you have the computing power, there's not much of a point compiling your entire system Jan 30 01:57:21 I think one of my friends uses Gentoo on his company-provided laptop Jan 30 01:57:31 it's still going to take an hour on fast hardware for big packages Jan 30 01:57:50 he had a problem where the thing that slowed down compilation was terminal output latency Jan 30 01:58:01 ie, you're not going to compile something like all of KDE very quickly Jan 30 01:58:19 that used to take a day a couple of years ago Jan 30 01:58:27 now it'll probably take almost an hour Jan 30 01:58:29 MDijkstra: My favourite thing about Gentoo was the fact that I could easily remove all the pesky KDE/GNOME deps Jan 30 01:58:51 or for example nuke Network Mangler^WManager Jan 30 01:59:12 hehe Jan 30 01:59:32 nothing more annoying than trying to install a package like UIM and have it pull half of KDE and half of GNOME Jan 30 01:59:50 because of support of Gnome Panel and equivalent for KDE Jan 30 02:00:14 the reason I stopped using linux on the desktop was because I was tired of having to spend significant effort to do simple things Jan 30 02:00:50 Mdijkstra: what distro were you using on the desktop? Jan 30 02:00:50 meh, at most I need to get my ass moving and automate some remaining things instead of depending on bash/zsh history Jan 30 02:01:03 ie, connecting to a WPA network shouldn't be difficult, even if I do happen to know wpa_supplicant config syntax from memory Jan 30 02:01:21 debian Jan 30 02:01:30 ah, interesting... Jan 30 02:01:39 MDijkstra: supposedly NM does it fine... my problem was that at least for some time, NM people strongly said they won't ever support more complex cases Jan 30 02:01:39 I switched like 7 years ago though Jan 30 02:01:47 and it requires a fuckton of things Jan 30 02:02:16 * p_l tends to connect to network with C-r wpa_supp , which actually pulls from bash history THIS: wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B && (sleep 5; dhcpcd -nL wlan0) Jan 30 02:02:47 but that's because there were some issues with broken WiFi in places and I didn't bother writing a proper config ^^; Jan 30 02:02:50 iirc you can run a trigger command that fires when wpa_supplicant activates Jan 30 02:03:01 *authenticates Jan 30 02:03:12 MDijkstra: my problem was that I didn't bother finishing the config Jan 30 02:03:39 before the problems with some pesky wifis, I used 'netcfg -r wpa' which uses Arch support Jan 30 02:03:41 I used to use wpa_supplicant to connect to my university's 802.1x (WEP) network Jan 30 02:04:00 so I'm pretty familiar with the config format Jan 30 02:04:10 the same for me. That network is horribly broken in some places, though (like new library), thus the manual call Jan 30 02:04:30 I was too lazy to figure how to add the delay step to netcfg :D Jan 30 02:06:42 it's that taking care of it will need more resources than just being lazy and going manual Jan 30 02:07:32 well, it's not one single thing that made me switch Jan 30 02:08:05 it's a lot of those small things, like setting up usb devices for development, working with proprietary formats (of course not linux' fault) Jan 30 02:08:53 the graphics drivers, multi-monitor setup, powersaving Jan 30 02:08:55 etc etc Jan 30 02:09:43 back in high school I didn't mind spending my free time solving these problems Jan 30 02:09:55 but now I just want to get work done Jan 30 02:13:02 hmm... the last big thing I really had to play with was Java having broken X11 lib Jan 30 02:13:18 which is was an outstanding bug since Java 0.x days Jan 30 02:13:21 srsly Jan 30 02:13:34 then patching my WM a little Jan 30 02:13:50 (again, because Java) Jan 30 02:14:32 ... holy fuck, 1.1G of updates Jan 30 02:16:23 is there a way via on click I can change my linear layouts's bg image Jan 30 02:16:56 found it Jan 30 02:16:57 thanks Jan 30 02:17:00 * hkhalid powers up Jan 30 02:22:30 yay, Eclipse removed from system Jan 30 02:59:06 so dead **** ENDING LOGGING AT Mon Jan 30 02:59:59 2012