**** BEGIN LOGGING AT Tue Mar 20 02:59:59 2012 Mar 20 03:00:17 i guess that isn't necessary Mar 20 03:00:19 im just being lazy Mar 20 03:02:49 dandaman: just call finish from the instance you want to exit and fire an intent to restart the activity Mar 20 03:03:01 don't encourage him ;) Mar 20 03:03:18 haha Mar 20 03:03:37 there are legit reasons to do it Mar 20 03:04:13 not many, but a few Mar 20 03:05:04 @ctate: any suggestions re: my bitmap reuse issue? Mar 20 03:06:13 killring: I'd advise you to not make a 2kx2k bitmap Mar 20 03:06:21 that's, lesse, 4M * 4bpp = 16MB Mar 20 03:06:30 you're using half your heap just on that one thing Mar 20 03:06:47 lov: no I'm not... I'm using largeheap ;-) Mar 20 03:07:02 oh WELL Mar 20 03:07:15 in that case feel free to blow through your memory like it was made of tissue Mar 20 03:07:29 the only reason I'm trying this approach is to work around the issue of running out of texture memory which results in all sorts of problems Mar 20 03:09:11 killring: what exactly are you doing that requires this (relatively for smartphones) gonzo amount of memory Mar 20 03:09:51 a medium to largish drawing app that will have dozens to hundreds of objects onscreen at a time Mar 20 03:10:00 hmph Mar 20 03:10:33 and I guess you can't push this all to the graphics HW since you tried that Mar 20 03:10:43 right Mar 20 03:11:32 the problem is compounded by the fact that there's no notice when the gpu is oom, the app just starts flaking out drawing/hangs/crashes Mar 20 03:12:24 so my idea was that for a certain subset of drawing ops that can't be done onscreen, I'd use a shared bitmap of the largest possible texture size Mar 20 03:13:30 is there a function like onResume or onCreate that i can use that is like "when this activity is brought up" Mar 20 03:13:38 like if someone hits back Mar 20 03:13:41 and it lands on the activity Mar 20 03:13:45 i want it to pop up a dialog Mar 20 03:13:53 saying you have visited this activity before Mar 20 03:14:07 so uh Mar 20 03:14:10 hey dandaman Mar 20 03:14:14 how about you go to the Activity docs Mar 20 03:14:16 it's onResume…isnt it? Mar 20 03:14:19 and click on the bit about the Activity Lifecycle Mar 20 03:14:24 because it explains all of this pretty clearly Mar 20 03:14:32 and really you ought to know what's going on here if you want to develop android effectively Mar 20 03:14:47 otherwise your dev process is going to involve a lot of "the fuck is this???" Mar 20 03:15:44 lov: no time :( Mar 20 03:15:52 going to thailand in 9 days Mar 20 03:21:09 good luck with the ladyboys I guess Mar 20 03:22:12 hi all Mar 20 03:22:46 I have downloaded an ICS image and an running it in virtualbox. The problem is that there are no tools available on it! Mar 20 03:23:07 cp it says command not found. same thing for head, tail, nano, vim, etc. Mar 20 03:23:22 How do I go about getting a minimal set of shell utils on it? Mar 20 03:23:43 freakabcd: Android does not have a 'complete' set of command-line tools - it's a graphical environment for appliance-type computing, not a general-purpose Linux OS Mar 20 03:24:10 Leeds, thats true. Mar 20 03:24:37 most images I have seen come with something like busybox which provides a very minimal set of tools Mar 20 03:24:58 I'm just surprised that this one has almost nothing in it :( Mar 20 03:25:23 you can add busybox if you want - but you can't rely on any of that stuff being there on an end-user device Mar 20 03:26:01 sure.. this is purely for my testing.. i don;t intend to put anything on any device ever! :) Mar 20 03:26:38 how do i go about adding busybox to it? Mar 20 03:29:17 ah, that's a harder question Mar 20 03:29:46 presumably when you say you're running it in virtualbox, you mean you sourced an x86 image from somewhere - in which case, that's where I'd start when looking for a native busybox Mar 20 03:30:30 nah, they don;t have anything there, i looked already Mar 20 03:30:42 is there a busybox apk somewhere i can download from? Mar 20 03:30:59 alternatively, if it's x86 - just build yourself a static binary on your regular Linux box and copy it over Mar 20 03:32:46 freakabcd: better terminal pro comes w/ a busybox Mar 20 03:32:50 freakabcd: and a nice terminal Mar 20 03:33:06 what is terminal pro? a free terminal or paid? Mar 20 03:33:15 freakabcd: you definitely CAN add your own busybox, you have to set up the android source and get the crossbuild going Mar 20 03:33:20 dragorn: built for x86? I doubt it Mar 20 03:33:21 "better terminal pro". It's paid, but cheap. Mar 20 03:33:24 cos i'm just playing around, i don;t want to spend anything other than time Mar 20 03:33:26 Leeds: oh, exclusively x86? Mar 20 03:33:41 and paying for a terminal emulator and busybox would be pretty dumb :) Mar 20 03:33:51 :) Mar 20 03:33:56 nyahahah Mar 20 03:34:32 well, I was thinking on working on a paid terminal emulator... but the competition was actually more expensive than I thought :D Mar 20 03:35:45 it would have to be pretty special to compete with connectbot Mar 20 03:36:40 ok.. i'm kinda annoyed that theres no apk files for even the free apps that i can simply download to put on my virtualbox ics vm Mar 20 03:38:53 freakabcd: uh, pull the apks with adb Mar 20 03:39:11 Leeds: SSH with nicer gui for keys, better coverage of codes than connectbot, built-in extras for keyboard handling, support TN3270, TN5250, serial ports :) Mar 20 03:39:12 yeah where are the apks initially? Mar 20 03:39:19 TN ha ha :) Mar 20 03:39:21 i need to first get them to my hdd Mar 20 03:40:02 pragma_, i mean to my host machine. then i can adb install them Mar 20 03:40:08 freakabcd: if you're talking about the Market (Play *spit*) - that isn't part of the open source Android platform... so no, you don't get it on your AOSP build, and you don't get to grab the APKs without it Mar 20 03:41:41 p_l: problem is, connectbot is pretty good - so you'd need something great to be worth the bump from free to paid Mar 20 03:42:45 hey guys, im having a hell of a time getting an application im testing to run through a web proxy. im running in an emulator and i re-create the system.img file to have my my own root CA in there to proprly mitm the traffic so the app doesnt get pissy but it doesnt seem to respect it Mar 20 03:43:02 Leeds: I know. But I think the stuff I figured for it would be worth it, especially with firewall piercing support Mar 20 03:43:08 whats the best way to get a Context reference from a Fragment? Mar 20 03:43:13 i popped the same certificate into firefox and everything loads fine without errors Mar 20 03:43:17 getActivity() gave me null result at one point Mar 20 03:43:23 basically, a tool (mainly for tablets) that you could grab for a visit in datacenter etc. Mar 20 03:43:33 or connect to serial port in the field Mar 20 03:44:51 oh well, I might soon find myself constrained with contracts regarding making such app as a paid one ;) Mar 20 03:46:05 is there a function for class Activity that i can call to trigger onresume? Mar 20 03:49:25 hmm... was it allowed to sell "physical" good over in-app purchase system? Mar 20 03:49:54 (in this case it would be using the app to sell "tickets" to enter) Mar 20 03:51:31 I need a very small app written. I have most of what i want documented down to the links to the documentation for what i want Mar 20 03:51:40 anyone want to pick up a small job Mar 20 03:54:32 hey, anybody want to get paid to write an app? /quit Mar 20 03:55:09 lol Mar 20 03:55:17 super troll Mar 20 03:55:48 not as bad as the craigslist scams revolving around pc repair Mar 20 03:56:04 * njkt shudders and the number of failed leads thanks to that Mar 20 03:57:52 njkt: hmm? Mar 20 03:59:23 oh.. well there is a common scam that involve asking the repair person to fix a problem pc they send you in the mail along with a cashiers check if you agree to pay the shipping or some such.. basically you give them money and they give you a fake check Mar 20 04:00:20 ah Mar 20 04:01:42 so its a good idea to deal only with face to face customers and those who pay by paypal Mar 20 04:07:49 hello all Mar 20 04:11:19 My eclipse is filling all my projects with errors that aren't actually errors Mar 20 04:11:37 They're all "R cannot be resolved to a variable" Mar 20 04:11:44 how is that "not an error" Mar 20 04:11:45 ? Mar 20 04:11:54 check gen folder, is R there? Mar 20 04:12:01 Because they all didn't have errors the last time I ran eclipse Mar 20 04:12:09 if you aren't in the same package as R, you need to import it Mar 20 04:12:12 gen is empty Mar 20 04:12:16 probably because theres an error in your xml and you built clean Mar 20 04:12:20 causing R to never be generated Mar 20 04:12:24 and gen/ to be empty Mar 20 04:12:38 so there's an xml in a project that i haven't touched yet? Mar 20 04:12:49 in a new project there is usually a main.xml Mar 20 04:13:02 but I don't know what's going on. fact is R.java is not being built. Is build automatically checked off? Mar 20 04:13:11 Let me check Mar 20 04:13:35 Build automatically is on Mar 20 04:13:37 make sure the console and problems view are visible Mar 20 04:13:41 there might be information in there Mar 20 04:13:44 error log as well Mar 20 04:14:13 how do you guys usually handle tablet layouts? res/layout/x-large? Mar 20 04:14:26 readme, this is my problems tab: http://dl.dropbox.com/u/3270519/pics/Screenshots/Capture.PNG Mar 20 04:14:53 every other tab is normal Mar 20 04:15:05 that's not the whole list Mar 20 04:15:12 expand the papers free tree on the left Mar 20 04:15:37 refresh that link Mar 20 04:15:57 well I think we have a n answer then Mar 20 04:16:08 "references non existing library" Mar 20 04:16:20 thats some other prokects Mar 20 04:16:27 not this one we're looking at right now Mar 20 04:16:30 well your workspace is a pile of crap Mar 20 04:16:33 good luck Mar 20 04:16:38 and i have no idea what caused it Mar 20 04:16:45 perhaps rampant disorganization? Mar 20 04:16:52 use separate workspaces for all those damn projects Mar 20 04:17:14 or at least right click and close project when not in use Mar 20 04:17:24 it was working fine and then i open eclipse and this happened Mar 20 04:17:34 crazy little thing called java :( Mar 20 04:19:12 did you move those folders to another location? Mar 20 04:19:36 Well whaddya know, i just did a clean, which i had tried many times before and everything cleared uo Mar 20 04:19:38 up Mar 20 04:19:55 eclipse magic Mar 20 04:20:05 exactly Mar 20 04:30:20 is there some kind of method i can call on my activity to force it to run onResume? Mar 20 04:31:46 firstly, I'd say you're doing something wrong if you need to ask that question... Mar 20 04:31:57 secondly, have you tried calling onResume? :) Mar 20 04:32:37 i cant go myActivity.onResume() :( Mar 20 04:33:28 what is consitered large vs xlarge? in res/layout/? Mar 20 04:33:35 anyone do much with unit testing? I've got a ActivityInstrumentationTestCase2 or whatver Mar 20 04:33:39 runs fine on its own Mar 20 04:33:46 err res/layout vs res/layout-large vs res/layout-xlarge Mar 20 04:33:47 when I run it as a part of a test suite it just hangs Mar 20 04:33:50 no obvious reason why Mar 20 04:34:04 dandaman: just dont do that Mar 20 04:34:13 dandaman: shouldn't you be rearranging things so that you don't need to mess with the activity's lifecycle? Mar 20 04:34:27 we just convinced you not to run onCreate, now you want to run onResume? :p Mar 20 04:35:10 lets put it this way Mar 20 04:35:18 YOU dont fire lifecycle events Mar 20 04:35:19 but i wanna :( Mar 20 04:35:21 activity manager does Mar 20 04:35:54 well my issue is that i have a bunch of different activities Mar 20 04:35:57 useing the same helper method Mar 20 04:36:10 and then? Mar 20 04:36:14 and i want that helper method to call a method that all of those activities have Mar 20 04:36:18 (but do different things) Mar 20 04:36:33 so i cant just go ActivityName.domethod() Mar 20 04:36:43 i'd need to cast the activity Mar 20 04:36:45 what are you trying to Mar 20 04:36:55 but i can't do that either because i have 6 different activities using the same method Mar 20 04:36:56 back the fuck up and state precisely what you are trying to do Mar 20 04:37:03 HOW you are trying to solve the problem is probably wrong Mar 20 04:37:03 so i have an onclick listener Mar 20 04:37:15 which sends a web service call Mar 20 04:37:19 dandaman so create a base class for the activity and have 6 activities extend it? Mar 20 04:37:24 to change the value of a textfield that is displayed Mar 20 04:37:38 have an abstract activity that they implement Mar 20 04:38:42 object oriented bitches Mar 20 04:39:12 abstract class extendableActivity extends Activty{} Mar 20 04:39:19 sure Mar 20 04:39:32 class myActivity implements extendableActivity{} Mar 20 04:39:33 right? Mar 20 04:39:42 extends Mar 20 04:39:47 err extends Mar 20 04:39:58 implements is interface Mar 20 04:48:07 Hi, every one please tell me how i implement text selection and highlighting Mar 20 04:48:14 how would an app know if im running a tablet or a phone? Mar 20 04:48:32 how i implement text selection and highlighting Mar 20 04:48:34 my UI is in tablet mode (that is my ui is that of a tablet) however Go Launcher thinks i have a phone Mar 20 04:48:35 why is that? Mar 20 04:48:42 how i implement text selection and highlighting Mar 20 04:49:01 Tjh: Mar 20 04:49:02 hi Mar 20 04:49:15 how i implement text selection and highlighting Mar 20 04:51:00 So, I have a question: I have the following TextView ---> http://collabedit.com/2b6r4 and unless I precede my text (below) with a telephone number or anything clickable (like an e-mail address) the scroll function just does NOT work. I've tried setting the "android:linksClickable" to both "true" and "false" but that doesn't make any difference. What gives? Mar 20 04:51:25 *Not exactly precede - a clickable link does need to be present, though. Mar 20 04:52:40 Hmm - kinda quiet in here today. Mar 20 04:54:33 Any ideas? Mar 20 04:55:59 I got this from a book that I'm following - so I'm still very much a newbie dev. I'm just trying to learn why the scroll does not work when a clickable link (e-mal addess, phone number, etc) is not present. Mar 20 04:57:01 aLearner: be aware of timezones... Mar 20 04:57:29 Right... Mar 20 04:57:43 Have seen it busier than this, though. Mar 20 04:57:59 Maybe I'll have to try again when the Eurozone is awake too. Mar 20 04:58:13 it's Asian lunchtime :) Mar 20 04:58:33 Depends where in Asia you are ;-) Mar 20 04:59:00 okay, east asia Mar 20 04:59:09 Fair enough. Mar 20 05:01:28 It's not too late on the West Coast of the US of A, though Mar 20 05:01:55 its 10pm on a monday Mar 20 05:02:46 Good point. Missed the daylight savings thing. Mar 20 05:02:51 Then it is late. Mar 20 05:03:24 What's an EditText's default state. I'm trying to detect if a user has put text in it Mar 20 05:03:34 To make the app tell them to put text if they haven't Mar 20 05:04:23 by default it has nothing in it, you can call getText().toString() and check if length is 0 Mar 20 05:04:50 also see setError() Mar 20 05:06:41 thanks readme Mar 20 05:18:40 Trying to ask my question again in case anyone new is around: I have the following TextView ---> http://collabedit.com/2b6r4 and unless the text contains a telephone number or anything clickable (like an e-mail address, address, etc) the scroll functionality just does NOT work. I've tried setting the "android:linksClickable" to both "true" and "false" but that doesn't make any difference. What gives? Mar 20 05:30:52 is it possible to reference the application package name from xml? Mar 20 05:31:11 etuleu: Been kinda slow lately... Mar 20 05:31:29 ? Mar 20 05:43:07 I found a chocolate chip melted to my buttock. I scraped it off and ate it. It was moist and delicious. Mar 20 05:43:25 * pragma_ is baking chocolate chip cookies in the buff. Mar 20 05:45:55 dude, unsafe Mar 20 05:47:39 my UI is in tablet mode (that is my ui is that of a tablet) however Go Launcher thinks i have a phone, it seems to read "physical screen size" is there any way to spoof/fool the app? Mar 20 05:48:03 Tjh: #android-root? Mar 20 05:48:19 its a dev question Mar 20 05:48:35 i am asking how the physical screen size variable works Mar 20 05:49:01 and why go launcher seems to think im using a phone even tho i am technically using a "tablet" as far as the OS is concernwed Mar 20 05:51:46 Hey guys, is there a way to display a search dialog on top of an activity and showing activities contents at the same time Mar 20 05:52:53 Currently when i show search dialog activity loses input focus , as a result activities contents are not displayed on the screen when search dialog is shown Mar 20 05:54:00 How can I use Galaxy Nexus's "OBEX Phonebook Access Server" via Bluetooth to sync contacts? Mar 20 05:59:15 by something that supports obex phonebook Mar 20 06:04:54 pfn: yeah im just not sure what the exact protocol would be 'obex phonebook'? The bluetooth profiles look promising and I need to find out what linux driver/software i could try: http://pastebin.com/ybwYN5Gy Mar 20 06:06:29 did anyone ever try etch or thrift on android? ;P Mar 20 06:10:32 cr5315, there is the hint property for edittexts Mar 20 06:10:39 don't know if this fits your needs Mar 20 06:18:24 mCurrentActionMode = (android.support.v4.view.ActionMode) getActivity().startActionMode((android.support.v4.view.ActionMode.Callback) callback); Mar 20 06:18:29 why can't I do this? Mar 20 06:38:01 Hi guys... I'm building an Android app, and need to play an audio file at a fairly precise time │ Apachez Mar 20 06:38:03 02:33:21 bobz44 | All the methods I've tried, incl SoundPool, MediaPlayer, and both Static AudioTrack and a streaming AudioTrack fed silence between sounds by another thread, still have over a second lag in playback │ apokryphos Mar 20 06:38:14 sorry copy failed Mar 20 06:38:23 anyway, any thoughts? Mar 20 06:38:58 I'm working on my most complicated app ever, which is essentially just an app to show various Rage faces on my tablet to hold up in front of me face Mar 20 06:39:29 It uses buttons, activities, and that's about it Mar 20 06:40:43 bobz44, why another thread? Mar 20 06:41:28 bobz44, make sure you keep filling the audiobuffer with buffer full of silence, otherwise it will get unloaded and will need to be loaded again when it gets new sound Mar 20 06:41:31 which takes time Mar 20 06:41:33 AudioTrack in streaming mode requires a constant stream of bits Mar 20 06:41:59 or it goes to sleep, and errors Mar 20 06:42:32 I think that would cause the second of lag, empty buffer Mar 20 06:43:00 I wrote a metronome with audiotrack and it worked fine for me :E Mar 20 06:43:24 it works fine on my galaxy nexus Mar 20 06:43:28 but lagged on my N1 Mar 20 06:43:50 but if I understood correctly, you're using two threads to pass data to the audiotrack? Mar 20 06:44:02 no Mar 20 06:44:18 UI thread passes messages to the second thread to play sounds Mar 20 06:44:23 ah Mar 20 06:44:26 ok that's fine then Mar 20 06:45:27 sorry, without seeing the code and finding out the problem myself, I don't think I can help much more :( Mar 20 06:45:58 Yea, next step is to try to reproduce the problem in a simpler codebase so I can get better help =P Mar 20 06:46:15 good idea Mar 20 06:46:15 Thanks anyway Mar 20 06:51:16 bobz44: you may find that using the NDK and native code is more responsive Mar 20 06:59:15 Leeds, is there documentation on outputting sound on native code (in android8), I need to do that soon :) Mar 20 06:59:46 dunno Mar 20 07:00:43 Leeds: Thanks, that's actually what I'm looking at right now. Any tips / good docs for getting started? Mar 20 07:00:57 dunno :) Mar 20 07:01:03 call it more like general advice... Mar 20 07:01:11 what if we ask a third time? ;) Mar 20 07:01:15 thx anyway Mar 20 07:01:32 bobz44, if you find a native way, please point me to something I can read, thanks :) Mar 20 07:01:48 I still need to get the system up and running first though so no rush on my part Mar 20 07:04:11 Anyone know how to launch the default android alarm clock app Mar 20 07:05:50 NightmareApps: erm... you load the clock, set an alarm, and go to sleep? Mar 20 07:06:06 erm... or I read 'launch' as 'use' for some reason... Mar 20 07:06:16 no, through code :P Mar 20 07:06:31 the problem, I suspect, is that vendors replace it Mar 20 07:06:41 NightmareApps: try this: http://stackoverflow.com/questions/3590955/intent-to-launch-the-clock-application-on-android Mar 20 07:06:53 otherwise, fire up your logcat, run the clock, check for the intent? Mar 20 07:07:36 QubeZ: hi Mar 20 07:08:39 i am working on c2d .. i was able to generate registration id and authentication token but when i send the message using curl ... it responses me back with Unauthorized

Unauthorized

Error 401

Mar 20 07:08:54 has somebody worked on c2dm Mar 20 07:33:57 I am working on c2dm and getting a 401 error when i try to send the message .... what could be the possible problem Mar 20 07:34:03 ? Mar 20 07:45:16 Wow, this is making me confused as hell. I'm launching an Intent (MediaStore.ACTION_IMAGE_CAPTURE) and only have a Nexus One and a Nexus S to test with. The rotation of the returned image seems to be just what I expect on the Nexus One but on the Nexus S, they are by default rotated 90 degrees. Mar 20 07:46:40 drlaban: id determine the width/height ratio to determine if its rotate and then rotate the image back Mar 20 07:46:53 Does anyone in here have a proper solution/suggestion to get to this rotation business so that when photos are taken in device rotated portrait "mode", the image returned gets rotated, if necessary, to portrait? Mar 20 07:47:17 Napalm: Hmm, that might work. I'll look into it. Mar 20 07:47:59 if(((float)width / (float)height) < 0) // portrait Mar 20 07:48:16 if(((float)width / (float)height) < 0.0f) // portrait *correction Mar 20 07:48:30 drlaban: ^ Mar 20 07:48:53 Napalm: Do I need to match this against the phone's rotation? Or will it work properly when the photo is actually taken in landscape mode? Mar 20 07:49:12 this is looking at the image width and height Mar 20 07:49:19 s/phone's/device's/ Mar 20 07:49:41 > 0.0f for landscape Mar 20 07:50:39 Napalm: Alright, I think I'm on to what you're saying here. Thanks. Can I get back to you if/when I realise I was wrong? :) Mar 20 07:50:42 drlaban: if you add a comparison for the current rotation to see if the image has been rotated Mar 20 07:50:58 ima here all day Mar 20 07:53:07 drlaban: did you look at te camera app source? Mar 20 07:54:41 Napalm: No, actually I didn't. Pretty much all the questions on SO, though. :p Mar 20 08:20:34 Napalm: Let me see, you mean (width / height) < 1, don't you? Cause I'm getting 0.75 and landscape all the time. :) Mar 20 08:21:03 yes Mar 20 08:33:47 Napalm: Ok, seems like I can determine if the photo taken is portrait or landscape based on width/height ratio. Mar 20 08:34:40 However, the Nexus S seems to rotate the photo to landscape, when the photo is taken by holding it in portrait. Mar 20 08:35:13 ok so now add an extra test condition Mar 20 08:35:37 drlaban: http://developer.android.com/reference/android/view/Display.html#getRotation%28%29 Mar 20 08:36:30 dont forget to check for both rotations Mar 20 08:36:36 90 and 270 Mar 20 08:36:42 Right/Left respectively? Mar 20 08:37:27 when you have the phone in landscape from either, yes Mar 20 08:38:17 Hey guys Mar 20 08:41:03 I'm wondering how can I make a toast that will show up when I press one of the buttons onscreen, then the toat will have "are you sure: cancel \ ok " buttons on it... coudn't find the exact phrase to google it.... Mar 20 08:42:10 sasson: toasts aren't interactive Mar 20 08:42:10 wouldn't a dialog be more appropriate for that? Mar 20 08:42:53 my bad I guess... that's why I couldn't find anything on google I guess Mar 20 08:43:36 well there is a setView on Toast, so idunno, it might be possible? but I wouldn't recommend it Mar 20 08:44:07 K, I'm checking on the dialog it seems to be what I was looking for Mar 20 08:56:29 hi~ Mar 20 08:56:49 anyone tried account manager in ICS ? Mar 20 08:57:58 i get a NPE every time i call the getAuthToken ... Mar 20 08:59:23 Napalm: Seems to be working out. Now I'm struggling with rescaling the photo to fit in an imageview that changes size on rotation but has no width/height because it hasn't been drawn yet.... Any takes on that one? :) Mar 20 08:59:55 Napalm: And of course, thanks for your help, I have yet to find out some weird configurations on other devices when it comes to rotation... Mar 20 09:00:36 drlaban: do you need to be able to zoom into the image? Mar 20 09:01:08 Napalm: Not at all at this point. _Maybe_ in the future if I feel I'm up for a challenge. :) Mar 20 09:01:44 ok, so its only ever going to be displayed at the maximum size of the screen Mar 20 09:02:00 correct? Mar 20 09:02:12 Napalm: Well, there are widgets that take up screen estate as well, with the image. Mar 20 09:03:18 ? Mar 20 09:03:26 Is anyone familiar with examples of EdgeEffect? Mar 20 09:03:42 drlaban: yes but the maximum it could ever go to would be the size of the screen because you are not zooming in Mar 20 09:03:56 Napalm: Ah, yes. That's correct. Mar 20 09:04:13 Napalm: It can only be _smaller_ than the device's maximum height/width. Mar 20 09:04:25 i assume the camera app saves the image as a file? Mar 20 09:05:03 Napalm: It does, and I read it from file, recalculating the height/width of it to fit the height/width of the imageview where it will be visible. Mar 20 09:05:13 nope Mar 20 09:05:31 one moment, this calls for me to look though some old code Mar 20 09:05:44 you want to use the BitmapFactory options for all this Mar 20 09:06:11 first of all Mar 20 09:06:14 Napalm: Well, that's what I actually am doing at the moment. I do a bit of resampling as well. But I perform BitmapFactory rescaling on the image. Mar 20 09:06:38 good, so, you never actually load the fullsize image Mar 20 09:06:45 just want to make sure Mar 20 09:07:03 Napalm: No, the VM went hella mad at me for exceeding the budgets when I started out with this. :) Mar 20 09:07:18 so many people complain that "i get vm heap overflows" when they load a 12MB image Mar 20 09:07:19 lol Mar 20 09:07:27 or something similar on smaller devices Mar 20 09:07:38 ah Mar 20 09:07:51 Hi all Mar 20 09:08:04 can someone please help me resolve this issue - http://stackoverflow.com/questions/9783704/broadcast-receiver-onreceive-never-called Mar 20 09:08:23 drlaban: ok, so get the display with and height, detect if you need to further correct the image rotation and then and resample to that Mar 20 09:08:32 Napalm: Yeah, I went down that path in the beginning, not really knowing how the device dealt with large images. It didn't take long until I understood it though. Mar 20 09:09:12 i have cells in my gridview with varying height.. Mar 20 09:09:22 they are basically linearlayouts.. Mar 20 09:09:33 i try to add a line at the bottom of each cell.. Mar 20 09:10:10 drlaban: now use that bitmap on your imageview, set the ScaleType to CENTER_INSIDE i believe Mar 20 09:10:18 http://pastesite.com/33119 Mar 20 09:10:33 interesting enough it seems the layout_height of the LinearLayout is ignored Mar 20 09:10:48 Napalm: Let's see if my current problem fits with your suggested solution: The problem I'm facing right now is, for instance, if I'm opening the Camera app in device portrait mode, physically flip the phone to landscape and take a picture and accept the photo, the Activity has to be redrawn. Mar 20 09:11:07 and as a consequence of that pushing the last view in the layout to the bottom using layout_gravity="bottom" fails, too Mar 20 09:11:27 Napalm: This means the ImageView I would like to use for placing the image hasn't been drawn/measured before I calculate how large it is on screen, and my calculations become zero... Mar 20 09:11:34 so, how do list selectors work? i've set the background colour of my list items, now i can't see a selector Mar 20 09:11:35 i guess i could rescale all the images to have the same height.. Mar 20 09:11:41 Napalm: imageView.getWidth/imageView.getHeight... Mar 20 09:12:20 tapas: layout_gravity=bottom is not going to work here Mar 20 09:12:30 tapas: layout_gravity only affects the "minor" axis Mar 20 09:12:44 (so the horizontal axis in a vertical linearlayout) Mar 20 09:13:43 drlaban: sounds to me like the usual chicken or the egg routine, without knowing more theres not much I can suggest Mar 20 09:14:36 drlaban: you normally would overcome your issue by extending the ImageView with your own and override the onMeasure so that it will default to MATCH_PARENT if no image has been set or otherwise use the image dimensions Mar 20 09:14:37 romainguy__: oh i see Mar 20 09:14:40 this might solve your issue Mar 20 09:15:18 romainguy__: i worked around it by fixing the height of the imageviews.. and having scaleType="centerInside" and adjustViewBounds="true" Mar 20 09:15:22 romainguy__: but good to know :D Mar 20 09:15:57 romainguy__: so the only way to push an item to to bottom of a linearlayout is using weights so that the other items in it will inflate in such a way as to push the last item to the bottom"? Mar 20 09:16:11 Napalm: I guess I'm going to have to find a way of getting the rotated layout measured before I calculate anything based on the imageview. Mar 20 09:16:51 Napalm: For now, mayhaps locking the entire app in Portrait mode for now at least would prevent this issue until I find a way. Mar 20 09:16:53 drlaban: no, thats the wrong way of going about solving this Mar 20 09:17:03 wait Mar 20 09:17:08 drlaban: explain your problem again Mar 20 09:17:53 Napalm: Sure. Let me formulate an example: Mar 20 09:17:58 ok Mar 20 09:19:16 Napalm: I have my phone in physical portrait mode, open the camera through an intent, snap a picture and accept it, my activity comes back, recalculates the image to fit in the imageview on my activity-layout. This works flawlessly. Mar 20 09:20:23 Napalm: If I have my phone in physical portrait mode, open the camera through an intent, snap a picture and _rotate the phone to physical landscape_ and accept, mt activity comes back, but now the imageview has no height or width for me to calculate against. Mar 20 09:21:45 Napalm: At least, not at the time I do my calculations. I believe it definitely has height and width some time afterwards, but not when it comes back to onActivityResult, where I do the calculation. Mar 20 09:22:23 ok im slightly confused, you use the imageview width and height to calculate what size to change the image? Mar 20 09:23:51 i understand your problem, what i dont see is why you are doing this "in this order" Mar 20 09:23:57 Napalm: Yes. I want the resulting photo in the activity to fit in the imageview. The photo itself has an original size of somewhere around 1000, or so, pixels in width. Mar 20 09:25:11 ok so lets just say the image taken by the camera is 1920x1200 or some large res, now you resample that to your display's width and height (not view) Mar 20 09:25:22 then set that image to the imageview Mar 20 09:25:30 and tell the imageview to scale the image to fit its size Mar 20 09:25:50 Napalm: Well, that is a perfectly valid question. For me, it's just a "natural" way for me to process this: Open camera -> Take photo (which is 5MP in size) -> Accept the photo taken -> Rescale the 5MP photo to fit in an imageview of, say 300 pixels in width. Mar 20 09:26:18 i see what your talking about, the problem is you dont handle your own rotations Mar 20 09:26:36 your activity is being restarted on rotation Mar 20 09:26:38 sdfds Mar 20 09:27:03 jopew0-o: hello to you too :) Mar 20 09:27:08 drlaban: add this to your tag android:configChanges="orientation" Mar 20 09:27:21 and see if it helps your cause Mar 20 09:27:45 Napalm: Yes, that's what I'm gathering, but I can't see a solution to it just now. The Activity gets destroyed and recreated, but however it doesn't get redrawn before I calculate rescaled sizes. Mar 20 09:27:51 Napalm: I'll try out your suggestion Mar 20 09:27:52 jopew0-o: why are you PMing me Mar 20 09:28:13 kogdfko Mar 20 09:28:27 e did not Mar 20 09:29:17 Napalm: Wonderful! Mar 20 09:29:22 working? Mar 20 09:29:45 Napalm: As far as I see it works flawlessly. Mar 20 09:29:54 drlaban: http://developer.android.com/guide/topics/manifest/activity-element.html#config Mar 20 09:29:57 read up what you have done Mar 20 09:30:07 looks like you also should implement screenSize Mar 20 09:30:12 this has other implications btw Mar 20 09:30:16 Napalm: I was just about to ask "Why does this work?" :D Mar 20 09:30:23 why does this work? Mar 20 09:30:49 Napalm: I'll go with "Magic" until I've read up on it. Mar 20 09:31:24 drlaban: read this http://developer.android.com/reference/android/app/Activity.html#ConfigurationChanges Mar 20 09:31:33 nothing runs in anrdoidx86 Mar 20 09:32:25 jopew0-o: anything app that implements native library which as not been compiled for x86 will not work Mar 20 09:33:16 Napalm: This is one of the important stuff, isn't it: "...bypass restarting of your activity based on one or more types of configuration changes." Mar 20 09:35:13 drlaban: basicly if you had a layout file or resource that was landscape only it would not get loaded Mar 20 09:35:35 because you have asked to handle the configuration change for orientation manually Mar 20 09:35:58 brb Mar 20 09:36:13 Napalm: Alright, good that you pointed this out because I was unsure of the drawbacks of doing this. Mar 20 09:40:10 hi all Mar 20 09:41:22 Napalm: I don't know if I'm doing things right but it seems as if I would have to keep track on which orientation the device was in when starting the camera app, and then compare this to the orientation of the device when the photo has been accepted. Mar 20 09:41:48 Napalm: It rotates a bit weird at times when the photo has been accepted. Mar 20 09:42:35 Napalm: Of course, I'm making it a bit "hard" on purpose, but I know that users come up with weird situations. Mar 20 09:42:54 I apologise for the rubbish image quality Mar 20 09:43:06 but does anyone know what woudl cause this sizing problem: Mar 20 09:43:07 http://imageshack.us/photo/my-images/542/androidsize.png/ Mar 20 09:43:27 <[Pi]> hello people! I've just bought myself an android device ( Samsung Galaxy S2 ) and I would like to try deploying a ' hello world ' app Onto it. I've done iOS dev, and I know that for iOS I need to register as a developer with Appl,e register the device, create a certificate, download it, stick it in Xcode, bla bla in order to deploy onto the device. Do I have to do this with android? Mar 20 09:43:57 nope Mar 20 09:44:20 download sdk, follow tutorial, copy apk (or run from the ide) Mar 20 09:44:38 you need to register to publish on the market (Play *spit*) - but there are no requirements to start developing Mar 20 09:44:40 no (or not many) draconian practices here :) Mar 20 09:44:54 <[Pi]> is there a generally favoured IDE? can anyone give me a good link to get started on? Mar 20 09:45:08 eclipse Mar 20 09:45:25 There's official support for eclipse, but intellij integrates android tools as well Mar 20 09:45:38 [Pi]: http://developer.android.com/index.html Mar 20 09:46:31 or you don't have to use any IDE, if you don't want... Mar 20 09:46:35 Leeds: You need to register IF you want to publish on the market. This is not mandatory, right ? You can distribute your app as you want (on your own website if you like). Am I wrong ? Mar 20 09:46:47 veyres: that's correct Mar 20 09:46:51 veyres: correct Mar 20 09:46:53 how do games pick live rates of currencies: dollars pound euro dinar peso ? Mar 20 09:46:59 but the user needs to have ticked the "allow nonmarket apps" option Mar 20 09:47:51 do they manually enter rates to game server from tv/news or anyone can easily freely get rates from world money exchange thing ? Mar 20 09:48:09 you'll need to ask them Mar 20 09:48:19 they probably use a web service or similar Mar 20 09:48:22 there are many around Mar 20 09:49:48 where does the images go when I use the camera app? I would like to have the camera app return one of these (they already have thumbnails in the MediaStore, but the only way I know is to set the image path in the calling intent... Mar 20 09:52:52 dullboy: normally into the standard photos folder Mar 20 09:53:10 cant you start the startactivityforresult to get the image? Mar 20 09:53:41 Anoia: as far as I know, I have to set the path where to send the image as an extra in the intent Mar 20 09:54:04 Anoia: or the camera app doesn't return anything Mar 20 09:54:53 i am trying out c2dm , i have a registration id and authentication token but when i send out data in the following format : curl --header "Authorization: GoogleLogin auth=your_authenticationid" "https://android.apis.google.com/c2dm/send" -d registration_id=your_registration -d "data.payload=payload" -d collapse_key=0 ......... it says INVALID REGISTRATION Mar 20 09:57:29 hey - any idea why my layout is appearing HUGE on my galaxy tab? it's like it's zoomed in or something. i've specified 10.1 in WXGA tabelt in the XML's config ..... any ideas? :) Mar 20 09:58:30 'the XML's config' Mar 20 09:58:35 what does that even mean? Mar 20 09:58:47 your layout? the manifest? Mar 20 09:58:51 yeah ok. that made no sense. in the layout. Mar 20 09:59:17 and why are you hardcoding layouts for tablet sizes? Mar 20 09:59:45 (at least, I'm assuming you are) Mar 20 09:59:48 that's obviously a bad practice? i'm just porting an ipad app - i'm fairly clueless tbh. Mar 20 10:00:03 you can simply specify sizes in percentages Mar 20 10:00:06 it's an app that they want purely to be run on these tablets Mar 20 10:00:14 or, weights, I should say Mar 20 10:00:15 yep that makes sense. Mar 20 10:00:47 and, erm, you should target a recent API lvl (3.0+, probably) Mar 20 10:00:58 then you won't get the compatibility zoom stuff Mar 20 10:01:11 (which is kind of what happens when you run an iPhone app on the iPad) Mar 20 10:01:25 oh ok - i'm targetting 3.2... Mar 20 10:01:36 hmm, does an empty TextView with lines="2" take up less space than one with text in it? Mar 20 10:01:41 hmm i just remembered... i originally was emulating this project at a smaller size.... so maybe that's it. Mar 20 10:01:42 iirc it shouldn't do the '2x zoom' then Mar 20 10:02:17 ok thanks MD. Mar 20 10:03:24 but what you should do ideally is provide a qualifier after your resource folder Mar 20 10:03:45 ie, layout-xlarge or a new 3.2 qualifier Mar 20 10:04:10 that way you can add phone layouts later on Mar 20 10:04:42 cool - but a happy middle for the time being is to use weights as you suggested.. Mar 20 10:07:56 yep, an empty TextView with lines="2" takes up less space than one with text in ot Mar 20 10:07:59 s/ot/it Mar 20 10:08:00 ugh Mar 20 10:08:14 now i have to fill bogus text in it and set its color to the background :D Mar 20 10:08:23 to make two identical layouts except for the two lines of text ;D Mar 20 10:08:32 anyone know any good gfx design channels? Mar 20 10:08:42 Could anybody point me in the right direction? I want my mobile phone to register me as "home" if the phone is inside a 10meter radius from the center of the house Mar 20 10:09:11 register? Mar 20 10:09:20 >.< Mar 20 10:09:23 Well... I'm creating an app. Mar 20 10:09:35 I've got my GPS coordinates. Mar 20 10:09:43 and the coordinates of my house. Mar 20 10:10:05 I need to figure out how to code the "if inside 10meter radius from coordinate A, then "register"" Mar 20 10:10:15 there must be an api you can use to calculate distance Mar 20 10:10:24 Location.getDistance ? Mar 20 10:10:54 Ahh Mar 20 10:10:55 wait, it's called Location.distanceTo Mar 20 10:11:04 I got hung up in the radius part Mar 20 10:11:18 hi, where can I find ICONS for imagebutton, so it can show @drawable/button_focused/button_pressed ? any good site for icons with states? Mar 20 10:11:20 but ofcourse, if I'm 10m from the point from any directions, that will be the radius.. doh Mar 20 10:12:12 Thank you guys so much! Maybe I'll be able to create my first app. New to Java and Android. Mar 20 10:14:24 morning Mar 20 10:14:50 in a fragment, whats better to use as a context for creating new views, getActivity() or getApplicationContext() Mar 20 10:16:57 getActivity() definitely Mar 20 10:17:05 ok cool Mar 20 10:17:08 you can't use the app context for everything Mar 20 10:17:09 thanks Mar 20 10:17:19 just wanted to make sure Mar 20 10:18:36 could anybody help me with registration Mar 20 10:18:39 I play a sound with MediaPlayer, but the sound does not decrease in volume when I press the volume down-key. What is the best way of fixing this? Mar 20 10:18:42 for example, if you try to create a dialog and you use an application context, you will crash Mar 20 10:19:10 (IMHO this should be compile-time error, but for better and for worse, everything is just a Context in android) :P Mar 20 10:19:10 ~does anyone know what would cause this sizing problem: Mar 20 10:19:11 http://tinypic.com/view.php?pic=sfjlsx&s=5 Mar 20 10:29:29 <[Pi]> Anoia: thx Mar 20 10:32:28 <[Pi]> http://www.eclipse.org/downloads/ <-- which download do I want to develop for android devices? Mar 20 10:32:57 java Mar 20 10:33:25 eclipse IDE for java developers Mar 20 10:33:27 3rd one Mar 20 10:34:52 actually, d.android.com says "The "Eclipse Classic" version is recommended." Mar 20 10:35:00 I always get that one and it does fine Mar 20 10:35:04 ahh, I found out my problem Mar 20 10:35:13 http://developer.android.com/guide/practices/screen-compat-mode.html Mar 20 10:39:10 wabz: the latest eclipse ide for java developers (indigo) works fine with the adt plugin Mar 20 10:58:21 Hi, I am trying to use a library (android.accounts) but only if the phone supports it Mar 20 10:58:29 I know it can be done, I forgot what it's called Mar 20 10:58:37 can someone point me to a guide Mar 20 11:00:24 vin: reflection Mar 20 11:16:00 hmm, interesting problem: i have a TextView here and on the samsung galaxy when i call setText() only part of the text is overwritten Mar 20 11:16:07 it has gravity="right" Mar 20 11:17:05 maybe an explicit clear wil help Mar 20 11:18:05 also: is there a no frmes version of the api docs? Mar 20 11:18:13 not being able to use the back button is highly annoying :D Mar 20 11:22:06 urks.. Mar 20 11:22:22 tapas: why cant you use the back button? Mar 20 11:23:25 2160p A10 tablets have real full 2160p pixels n colors? Mar 20 11:23:45 7" screen Mar 20 11:24:13 2160p needs 82" quadHD screen for full color display Mar 20 11:24:22 how can 7" fit all 2160p colors Mar 20 11:24:28 Napalm: oh it seems to be a bug of firefox.. do this for example: go to TextView main page Mar 20 11:24:31 those r all fake tablets /? Mar 20 11:24:37 fake 2160p Mar 20 11:24:49 Napalm: then select ellipsize from the xml attributes Mar 20 11:25:04 Napalm: then press back to get back to the top of the page Mar 20 11:25:14 it doesn't take me back to the top of the page though :D Mar 20 11:25:47 same in safari Mar 20 11:26:17 same in chrome Mar 20 11:26:38 yea its not a bug as such Mar 20 11:26:45 it seems a;; browsers on os x don't handle anchors correctly Mar 20 11:26:45 its not to do with frames i dont think Mar 20 11:26:56 yeah i was wrong about the frames being the culprit Mar 20 11:27:08 i do remember the same behaviour though from my linux box at home Mar 20 11:27:43 testing in virtual machine Mar 20 11:28:30 tapas: just looking at it, it might be to do with the actual website design Mar 20 11:28:45 it is highly annoying though Mar 20 11:28:49 tapas: they are using div tags with overflow-y: scroll rather than frames Mar 20 11:28:50 almost maximally aannoying Mar 20 11:29:10 only to be topped by a constant dripping of water onto your forehead while being bound Mar 20 11:29:16 i get over it by pressing back, clicking in the url bar and hitting enter Mar 20 11:29:31 yeah Mar 20 11:29:33 sucks though :D Mar 20 11:29:43 we're in the 21st century man :d Mar 20 11:29:48 true, i think there might be a way to fix this locally Mar 20 11:29:50 one moment Mar 20 11:30:02 going to javascript a fix up Mar 20 11:30:29 oy cool ;D Mar 20 11:31:10 tapas: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ Mar 20 11:31:12 grab that Mar 20 11:31:30 Napalm: kk Mar 20 11:32:02 ok, got it Mar 20 11:33:14 tapas: give me a moment to figure this out Mar 20 11:33:33 Napalm: no problem :D i still got this textview problem to solve :D Mar 20 11:33:45 You do know you can just press the "home" button on your keyboard to go to the top? Mar 20 11:33:50 tapas: just layout(); Mar 20 11:34:10 Napalm: you mean requestLayout()? Mar 20 11:34:28 yea you might have to TextView.measure(); first Mar 20 11:34:50 i tried bot invalidate() and requestLayout() Mar 20 11:34:54 s/bot/both/ Mar 20 11:37:34 since i don't remember my damn google account pw i can't report the issue to the google android team either.. oh well.. then it will go on unnoticed by them ;D Mar 20 11:38:19 <`z> lol Mar 20 11:38:22 <`z> tapas: forgot pw Mar 20 11:39:53 I'm thinking of introducing a app-idea to a company. What more than a NDA do I need to keep my idea protected Mar 20 11:40:52 and since i have no clue where the damn backtick on this keyboard layout is i can't adress the z guy directly :D Mar 20 11:41:35 <`z> tapas: lolol Mar 20 11:41:41 damn mac os x Mar 20 11:41:46 <`z> symbols -> second page Mar 20 11:41:47 <`z> oh Mar 20 11:41:49 <`z> on your keyboard? Mar 20 11:41:55 <`z> it should be between tab, esc and "1" Mar 20 11:42:30 `z: its different on a mac i believe Mar 20 11:42:38 that;s where it's on my PC keyboard at home.. oh how i'd love to have a usual PC layout on this mac.. it's so frigging depressing.. Mar 20 11:42:45 <`z> Napalm, lol Mar 20 11:42:50 <`z> tapas: derp mac Mar 20 11:42:53 yeah Mar 20 11:42:57 <`z> i'd just get a good laptop Mar 20 11:42:59 <`z> dump ubuntu on it Mar 20 11:43:01 <`z> and get going Mar 20 11:43:05 Duke_Puke: if the company knows you cant legally fight the NDA there is no point to it Mar 20 11:43:08 <`z> with windows on a 40GB partition just in case Mar 20 11:43:30 Duke_Puke: to be fair, NDA is binding, and hope that they decent peoples Mar 20 11:44:41 Napalm: Why youldn't I be able to fight it legaly? (P.s I'm not in the US) Mar 20 11:45:05 Duke_Puke: neither am i Mar 20 11:45:07 lol Mar 20 11:45:27 <`z> http://www.zoklet.net/bbs/showthread.php?t=110685 Mar 20 11:45:28 z: yeah, i got a macbook pro form work. i put ubuntu on a VM already :D but i'm still working on the old mac o finish up this project Mar 20 11:45:28 <`z> check this out Mar 20 11:45:29 <`z> o_O Mar 20 11:45:37 <`z> tapas: on a VM? Mar 20 11:45:38 <`z> :( Mar 20 11:45:51 I didn't get why there is no point to it? Mar 20 11:46:20 Duke_Puke: im saying it would cost you to fight it legally and even if you win and get that money back you funds up front to fight it Mar 20 11:46:21 z: yeah, it's a quad core i7 with 8 gigs ram. performance is decent in the VM Mar 20 11:46:51 <`z> tapas, wow Mar 20 11:46:52 and the keyboard works ok, too ;D Mar 20 11:47:06 Duke_Puke: know anyone else in business, that can look over the NDA.. make sure its got all the holes and outside cases covered Mar 20 11:47:11 <`z> too bad i'm feeling like switching to a new laptop in 2 years Mar 20 11:47:14 <`z> (mine's 3yo) Mar 20 11:47:15 if so, just go with that and hope for the best Mar 20 11:47:22 <`z> medium range at the time of purchase Mar 20 11:47:27 Napalm: aha but will it work to scare them, not to steal my idea? Mar 20 11:47:38 <`z> when i get my next laptop Mar 20 11:47:42 <`z> the first thing i'll probably do Mar 20 11:47:45 Duke_Puke: You should probably talk to a lawyer, instead of random people on irc Mar 20 11:47:52 <`z> is to maybe setup windows for a bit Mar 20 11:47:56 <`z> copy all files over Mar 20 11:48:01 <`z> repartition hdd Mar 20 11:48:04 ill never use windows unless work requires me to ;D Mar 20 11:48:06 same with OS X Mar 20 11:48:10 <`z> shrink windows partition to 40GB Mar 20 11:48:18 <`z> add a 80GB++ ubuntu partition Mar 20 11:48:22 this is sadly a pretty much os x only shop i'm at atm Mar 20 11:48:26 <`z> and maybe 40GB for MacOSX Mar 20 11:48:39 <`z> maybe i'll add a 20GB partition for future windows releases Mar 20 11:48:44 <`z> so i can try them out for the lulz Mar 20 11:48:48 <`z> derp Mar 20 11:48:53 <`z> the rest of hdd space is for data storage Mar 20 11:48:55 SimonVT I know I will, but maybe you guys would have some tips and tricks Mar 20 11:49:05 <`z> where I put my documents, torrents, backups, etc Mar 20 11:51:19 use some god enctyption scheme though Mar 20 11:51:27 i really like the cryptsetup stuff in linux Mar 20 11:52:15 How much money would I be able to ask for an App which has the main purpose to help their clients? Mar 20 12:12:16 At least £20 Mar 20 12:19:08 any1 knows a thing or two about AudioTrack? Mar 20 12:19:14 tapas: fixed Mar 20 12:19:25 simple once i worked though it Mar 20 12:19:26 damn Mar 20 12:19:36 man google music's web interface has been blowing chunks lately Mar 20 12:19:40 nothing plays Mar 20 12:19:42 tapas: i will send you the code in a moment Mar 20 12:19:45 hey canadiancow Mar 20 12:19:47 long time Mar 20 12:19:53 im always here! Mar 20 12:19:58 im not Mar 20 12:20:00 :D Mar 20 12:20:53 when i use inflate and set the parent view group, why can i only do it for 1 view? Mar 20 12:21:01 what Mar 20 12:21:09 alowaniak, did you read the topic? Mar 20 12:21:09 when i try to do it for more than 1 i get the error "the specific child already has a parent" Mar 20 12:21:39 http://pastebin.com/SgN3P4C0 Mar 20 12:21:49 Zharf you mean don't ask to ask?:P Mar 20 12:22:01 alowaniak, you've got it Mar 20 12:22:11 i thought i would be able to attach multiple inflated views to the parent viewgroup Mar 20 12:22:34 hmmk, so; when you got an AudioTrack in streaming mode and you call write Mar 20 12:22:38 does it return immediatly? Mar 20 12:22:46 i would think not... Mar 20 12:22:48 iirc, no Mar 20 12:22:58 CallumTaylor: inflate(...) adds it to the container.. Mar 20 12:23:08 it's been a year since I used it though, but I think it blocked until it was done playing Mar 20 12:23:09 not if you set the attach to false Mar 20 12:23:13 but; i've tried some examples; and they generated sound before writing to AudioTrack Mar 20 12:23:18 unless its true by default? Mar 20 12:23:19 But you didn't in that paste Mar 20 12:23:30 alowaniak, into a buffeR? Mar 20 12:23:47 hmye Mar 20 12:23:56 ah Mar 20 12:23:58 im a retard Mar 20 12:23:59 but i mean they generate and then do write() Mar 20 12:24:02 thanks SimonVT Mar 20 12:24:04 and over and over again Mar 20 12:24:44 but wouldn't that cause the sound to stop after every write for a small moment? Mar 20 12:25:02 shouldn't you have to generate on a different thread than you do the writing? Mar 20 12:26:14 ugh getting fedup of waiting for TMobile to release the ICS update for my samsung **** BEGIN LOGGING AT Tue Mar 20 12:29:04 2012 Mar 20 12:31:18 Hello world! Mar 20 12:32:00 Why do some apps deploy to /data/local/tmp/, while some to /data/data/? Mar 20 12:36:40 could someone explain me why http://stackoverflow.com/q/3305598/1214236 sounds good? Mar 20 12:37:00 (i'm not very good with sound etc. tbh) Mar 20 12:37:23 woo Mar 20 12:37:24 pick me Mar 20 12:37:50 alowaniak: what are you trying to do? Mar 20 12:38:24 and what I mean with good; like it sounds like a sine i wold say while I would suspect that the generating of the samples would take some time and thus you shouldn't hear the sine correctly Mar 20 12:38:33 because it wouldn't be playing the samples while it's generating them Mar 20 12:38:41 well trying to understand how that works tbh Mar 20 12:38:50 ultimately i just want to mess around with generating sounds Mar 20 12:38:59 alowaniak: if you can generate and load the samples fast enough, it will be fine Mar 20 12:39:11 alowaniak: my entire app actually works without a true buffer right now Mar 20 12:39:13 hey guys Mar 20 12:39:22 now.. Mar 20 12:39:27 alowaniak: and it is a very serious audio app :P Mar 20 12:40:06 is JakeWharton here? or dodes anyone else have an idea how to "convert" an android library project into some jar? Mar 20 12:40:09 DJTachyon: whats the app name? Mar 20 12:40:14 alowaniak: i can decode an mp3 frame, apply pitch modification, and get it into the audio output all before the internal buffer runs out Mar 20 12:40:20 Aeefire: he does hang out here Mar 20 12:40:27 Aeefire: but is pretty busy Mar 20 12:40:39 hmmk wait... Mar 20 12:40:46 ya i am for 4 weeks now in hospital Mar 20 12:40:49 wanted to code a bit Mar 20 12:40:50 alowaniak: https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntable Mar 20 12:40:54 so internal buffer gets written to; and then method returns? Mar 20 12:41:05 so hardware is playing sound Mar 20 12:41:15 while program is generating sound again? Mar 20 12:41:26 and i have only my TF201 here... i am using AIDE and want to include jake's ActionBarSherlock Mar 20 12:41:33 DJTachyon: i assume your using native code for the mp3 frame decoding? Mar 20 12:41:42 Napalm: yeah Mar 20 12:41:45 however i've only done including external libraries w/ eclipse and have no idea how to do this manually Mar 20 12:41:56 alowaniak: yes, there is a very large set of buffers in the android OS Mar 20 12:42:01 DJTachyon: any specific lib? Mar 20 12:42:10 aaaah well that makes sense Mar 20 12:42:20 i was thinking the method didn't return until the sound was played Mar 20 12:42:24 Napalm: well 4.x includes one Mar 20 12:42:55 alowaniak: well in the native C openSL player, it returns once it has pushed it down to the lower buffers Mar 20 12:43:23 alowaniak: the java may work in a similar fashion Mar 20 12:43:34 Aeefire: You can't package ABS as a jar, since the dev tools doesn't support packaging resources (yet) Mar 20 12:43:37 unfortunately android's implementation leads to a very aweful audio latency Mar 20 12:43:43 k, thanks DJTachyon Mar 20 12:43:59 SimonVT the beta version were packaged into jars.. Mar 20 12:44:07 No :o Mar 20 12:44:28 they were called "snapshots" Mar 20 12:44:33 and they were .jar s Mar 20 12:44:35 They were regular android library projects, packaged in a zip Mar 20 12:45:07 <[Pi]> oh ffs. How can this be so hard? I am trying to set up my MacBook for android dev, and the instructions on http://developer.android.com/ are pulling me round in circles :| Mar 20 12:45:23 its ez on mac Mar 20 12:45:27 They were snapshots of the 4.0-wip branch at the point of packaging Mar 20 12:45:49 however ( i am still sure it was a jar)... do you have any idea how to manually include a library project w/ AIDE or.. yeah.. manually? i thought it would work with the .classpath xml,but i have no idea how Mar 20 12:46:03 install eclipse, install JRE and the JDK (they should already be on your mac), install the ADT plugin, link to the android SDK folder Mar 20 12:46:13 (it wasn't) and I have no idea Mar 20 12:46:20 :D Mar 20 12:46:26 [Pi]: what you stuck on? Mar 20 12:46:35 =) Mar 20 12:46:43 <[Pi]> so first I install eclipse classic. then I want to install ADT I think http://developer.android.com/sdk/eclipse-adt.html#installing which tells me I should first install the android SDK starter package. so I click on that link which takes me to http://developer.android.com/sdk/installing.html#Installing which tells me I should first install ADT. which takes me straight back to the first page I linked. Mar 20 12:46:47 it seems like.. ya noone has an idea on how to do that xD Mar 20 12:46:56 to install the ADT Mar 20 12:46:58 open eclipse Mar 20 12:47:08 go to window->install new software Mar 20 12:47:16 sorry Mar 20 12:47:23 help-> install new softwqare Mar 20 12:47:33 then click on add Mar 20 12:47:40 then type in the URL to the adt and give it a name Mar 20 12:47:53 then when thats done, it will show a list of stuff to install, check it all and click next Mar 20 12:49:42 Napalm: and? :D Mar 20 12:50:32 yup sec Mar 20 12:51:03 i need a google evangelist Mar 20 12:51:12 so i can push this as a update to the sdk docs Mar 20 12:51:12 man its too bad all these android car stereos are so stupid Mar 20 12:51:27 DJTachyon: hows your app doing? Mar 20 12:51:36 http://ca-fi.com/en/ Mar 20 12:51:41 CallumTaylor: oh great Mar 20 12:51:48 awesome Mar 20 12:51:49 [Pi]: So it takes you to step 2, you skip step 2 and follow step 3 instead. Step 3 takes you to the first link, which in turn forwards you to step 2. You skip step 2... ? Mar 20 12:51:53 CallumTaylor: the paid has dropped off a bit, but the free is taking off Mar 20 12:52:07 CallumTaylor: 20,000 downloads in less than 2 weeks, $100 in ad revenue Mar 20 12:52:10 DJTachyon: yeah thats the best thing to do, do the freemium model Mar 20 12:52:26 DJTachyon: give the app for free, then sell adons, draws more people in Mar 20 12:52:30 <[Pi]> CallumTaylor: thanks, it seems to be hanging though http://cl.ly/F9qL should this really take > 5min to populate? Mar 20 12:53:13 [Pi]: i guess it depends on your internet connection Mar 20 12:53:20 CallumTaylor: yeah .. that is kind of hard with my model, but if the trends continue, a million downloads isnt a crazy number. The ratings are all coming in very high, got a 4.0 now. At a million downloads, I could be seeing 200k/year in ad revenue Mar 20 12:53:23 [Pi]: if it still takes a long time, try reopening the dialog Mar 20 12:53:39 DJTachyon: that's pretty sweet Mar 20 12:53:55 [Pi]: Download/install the android SDK first. Run the SDK manager, install the appropriate addons. Mar 20 12:54:00 [Pi]: THEN worry about ADT. Mar 20 12:54:02 CallumTaylor: i just dont have enough time to work on it .. i need to put in an FX panel, fix database bugs, add a ton of features Mar 20 12:54:12 CallumTaylor: i have one competitor that im really worried about Mar 20 12:54:23 lov: doesn't matter what order you do it in Mar 20 12:54:37 DJTachyon: take it's best features, do it better Mar 20 12:54:40 I have to shit for the fourth time today Mar 20 12:54:45 CallumTaylor: that's true, but the ADT wants to know where the android SDK is installed to Mar 20 12:54:50 CallumTaylor: yeah thats what i need the FX panel for :P Mar 20 12:54:55 so it generally makes sense to do SDK then ADT Mar 20 12:55:30 lov: or if you're truely amazing, you could download the SDK whilst installing the AFT Mar 20 12:55:35 ADT* Mar 20 12:55:41 oh shi Mar 20 12:55:49 boss mode engaged Mar 20 12:57:14 up up down down left right left right B A select start -> run -> cmd Mar 20 12:57:34 omg have you seen the gesture recogniser Mar 20 12:57:36 sec Mar 20 12:58:17 http://cl.ly/2A1h0R3E2H0Z2T0E271F Mar 20 12:58:34 +1 nerd points to the anddev team Mar 20 12:58:51 sensormanager* Mar 20 12:59:03 o_O Mar 20 12:59:07 yeah uh welcome to 2009? Mar 20 12:59:21 hey, i only saw it for the first time yesterday Mar 20 12:59:27 also anddev != google android dev team Mar 20 12:59:36 anddev == shitty and mostly out of date tutorials Mar 20 12:59:37 i meant android dev Mar 20 12:59:42 ok good Mar 20 12:59:48 but i was lazy to type it all Mar 20 13:02:56 does the id in a listview's onLIstItemClick correspond to the backing table's _id of the item in that position? Mar 20 13:03:37 I don't know, does it? Mar 20 13:03:47 (depends on how the adapter works doesn't it?) Mar 20 13:03:52 It's the value returned by your adapters getItemId Mar 20 13:04:09 it seems to but... ok Mar 20 13:04:22 seems to me we could have a bit more up to date topic Mar 20 13:04:33 of the irc channel i mean, not what we're talking about :0 Mar 20 13:04:41 <[Pi]> lov, thx ... http://cl.ly/FAee <-- do I want the ' android support package ' at the bottom as well? Mar 20 13:05:48 wouldent hurt Mar 20 13:06:00 hey tapas Mar 20 13:06:01 what version are you developing for Mar 20 13:06:03 if anyone wants the SDK anchor/back fix install greasemonkey addon for your browser http://www.greasespot.net/ and then visit http://android.netcore2k.net/android_sdk_anchor_fix.user.js Mar 20 13:06:14 if you don;t know, i suggest downloading 2.2 SDK aswell as the 4.0.3 Mar 20 13:06:24 Napalm what does it fix? Mar 20 13:06:54 xorgate: here's an example Mar 20 13:06:56 go http://developer.android.com/reference/android/R.styleable.html#TextView Mar 20 13:07:02 click on a attribute Mar 20 13:07:04 then click back Mar 20 13:07:18 you will notice it doesnt take you back but it does change the hashtag in the address bar Mar 20 13:07:22 crikey Mar 20 13:07:26 Yes it does ^_^ Mar 20 13:07:34 opera sucks again Mar 20 13:07:39 its not opera Mar 20 13:07:51 it effects MSIE FF and Google Chrome Mar 20 13:08:01 its because the page itself is not using frames Mar 20 13:08:07 but rather div tags with scroll Mar 20 13:08:22 SimonVT: what browser are you using? Mar 20 13:08:26 Chrome Mar 20 13:08:52 tapas tested on that and apparently the it didnt work still Mar 20 13:09:07 * Napalm tests now Mar 20 13:09:24 yup, not a problem in chrome Mar 20 13:09:30 it effects FF though Mar 20 13:10:22 crap Mar 20 13:10:27 thats the old greasemonkey script Mar 20 13:10:28 fixing Mar 20 13:11:25 fixed Mar 20 13:11:26 http://android.netcore2k.net/android_sdk_anchor_fix.user.js Mar 20 13:11:41 man my new computer compiles shit fast .. wow Mar 20 13:11:52 i wonder how fast i can compile the android source now Mar 20 13:12:02 DJTachyon: whats the new spec? Mar 20 13:12:14 oh wait .. what VM software lets you virtualize 12 cores? Mar 20 13:12:16 don't you need like 16gig ram to compile the acndroid source? Mar 20 13:12:25 what persmission must be set before playing the default ringtone?..and where :D Mar 20 13:12:29 CallumTaylor: you dont NEED .. but I have 32GB of 1866 :P Mar 20 13:12:38 my new machine compiles really quite Mar 20 13:12:42 oh look at me and my awesome machine Mar 20 13:12:46 s/quite/quick Mar 20 13:12:51 CallumTaylor: and this motherboard supports 64gb Mar 20 13:13:14 i7 2600K 3.6GHz 16GB DDR3 1600Mhz Mar 20 13:13:24 120GB SSD Mar 20 13:13:59 DJTachyon: i always found that making a Ramdisk and compiling in that is in order of magnatude faster Mar 20 13:14:02 Napalm: its the new intel Sandy-E Quad Memory Channel 2011 Pin, 6 core 3.8GHz overclocked to 4.2GHz with a water cooler. 4x8GB of DDR3-1866, and a Corsair 480GB Force 3 SSD with 550/MB read/write Mar 20 13:14:09 *magnitude Mar 20 13:14:28 DJTachyon: nice Mar 20 13:14:38 DJTachyon: have you tried to compile from a ramdisk Mar 20 13:14:39 ? Mar 20 13:14:46 SimonVT : http://developer.android.com/guide/developing/projects/projects-cmdline.html#ReferencingLibraryProject Mar 20 13:14:50 uaaHahhhh h looks good :) Mar 20 13:15:08 There you go :) Mar 20 13:15:09 Napalm: actually no .. but with 550MB/s read/write .. whats the point? Mar 20 13:15:24 Napalm: I run win7x64, with an ubuntu VM Mar 20 13:15:35 DJTachyon: trust me, its still a bottle-neck, try and compile from a ramdisk Mar 20 13:15:45 Napalm: but none of the VM software supports over 4 or 8 cores Mar 20 13:16:02 DJTachyon: nowadays we have the memory to burn Mar 20 13:16:06 indeed Mar 20 13:16:13 Napalm: oh god this issue Mar 20 13:16:14 cant wait to throw another 32gb of ram in this someday lol Mar 20 13:16:23 Napalm hmm doesnt work in opera.. then again it has a 'workaround' for greasemonkey Mar 20 13:16:26 lov: you've experienced it too? Mar 20 13:16:31 forever ._. Mar 20 13:16:39 lov: what browser? Mar 20 13:16:43 all of them ._. Mar 20 13:16:45 lol Mar 20 13:16:50 on the other hand i never noticed the problem so i'm good :0 Mar 20 13:16:52 I use chrome primarily Mar 20 13:16:52 well at least you have a fix now for FF Mar 20 13:17:17 is greasemonkey for Chrome and Opera? Mar 20 13:17:23 if so it might work Mar 20 13:17:36 xorgate: you said it doesnt work in opera? my fix you mean? Mar 20 13:17:41 yes Mar 20 13:17:43 Napalm: https://lh4.googleusercontent.com/-ONLr9EbkEHc/T0gTm1pS-UI/AAAAAAAAEik/SRRJvvypHyE/s1246/4200BurnIn.jpg Mar 20 13:17:57 xorgate: one moment, i will load opera and test it Mar 20 13:18:05 i placed the (second) file in a folder and tell it to use that folder for javascripts Mar 20 13:18:06 yeah, doesn't work in chrome Mar 20 13:18:17 http://my.opera.com/Contrid/blog/2007/02/11/how-to-greasemonkey-in-opera like so Mar 20 13:18:25 Napalm: does that link work? Mar 20 13:18:34 DJTachyon: yea Mar 20 13:18:49 right on Mar 20 13:18:55 DJTachyon: nice specs Mar 20 13:19:12 yeah burned in the 400MHz overclock for 4 hours Mar 20 13:19:27 settled at 60C or so Mar 20 13:19:35 i was happy with that Mar 20 13:19:46 32 gig ram heh Mar 20 13:19:50 DJTachyon: id like to know what type of speed gain you might get from compiling in ramdisk on your ubuntu vm Mar 20 13:20:05 DJTachyon: try it and let me know if and when you have time Mar 20 13:20:14 Napalm: what VM software do i need to get 12 cores? Mar 20 13:20:32 xorgate: yeah i was really tempted to spend another $400 to get 64gb :P Mar 20 13:20:32 DJTachyon: does VBox support that? Mar 20 13:20:53 ive been using VMWare for the usb passthrough Mar 20 13:20:58 DJTachyon: i can do 8 cores on my VBox but im not sure if thats my cpu or not Mar 20 13:20:59 never got that to work right on VB Mar 20 13:21:11 vmware workstation supports a max of 8 Mar 20 13:21:25 DJTachyon: check out the latest VBox, i got usb working fine Mar 20 13:21:56 with a windows host? Mar 20 13:22:00 yea Mar 20 13:22:07 alright .. Mar 20 13:22:27 <3 my 100mbit downloads :P Mar 20 13:22:33 same :D Mar 20 13:22:43 what annoys me Mar 20 13:22:54 is when the bottle-neck of the connection is server side Mar 20 13:22:55 :( Mar 20 13:22:59 hah indeed Mar 20 13:23:06 luckily the google source servers are balls fast now Mar 20 13:23:13 kernel was awful Mar 20 13:23:29 i can pull 13MB/sec from the google source servers now Mar 20 13:23:34 brb Mar 20 13:23:37 reminds me of the story about some grandma in norway who got 40GBit to her home... and she only browses websites etc. Mar 20 13:23:40 VB drivers Mar 20 13:23:41 DJTachyon: i might have to steal your brain some time Mar 20 13:23:52 Napalm: sweet Mar 20 13:23:58 DJTachyon: i want to compile the android source, but never got around to it Mar 20 13:24:04 whats happening people... im bored :P Mar 20 13:24:25 dannyD_: not a lot Mar 20 13:24:40 xorgate: managed to fix it by yourself? or want me to still look into it Mar 20 13:25:00 Napalm well i'm good.. it doesnt work but i never encountered the problem Mar 20 13:25:24 wont stop you though :) Mar 20 13:25:38 xorgate: question for you, http://android.netcore2k.net/ does this work in your browser Mar 20 13:25:38 mmm.. im doing a silly app, to then, on the next one do a killer app :D i just need some warming-up :-/ Mar 20 13:25:42 the search addition that is Mar 20 13:26:31 Napalm not really but chrome also doesnt give me anything Mar 20 13:26:54 lets have a google-free day, 1 day trying to figure out stuff without google. are you with me?!? Mar 20 13:27:02 i see now ff has the add button Mar 20 13:27:34 then again i already have a custom search for d.android.com in opera Mar 20 13:27:42 If I have an activity that has some information that I want to remember but only when I go to my preferences to change something and come back to the activity, is that calling onCreate on the original activity or only onResume? Mar 20 13:27:51 xorgate: mine does the suggestions tho Mar 20 13:27:52 :D Mar 20 13:28:17 xorgate: if you select an item from the suggestion it will take you directly to the class docs Mar 20 13:28:27 soooo anyone has an idea if i can use the "android" tooll within android... w/ the terminal ? Mar 20 13:30:08 What's the most used density for 320x480 phones? medium? Mar 20 13:30:18 yeah Mar 20 13:30:22 ldpi is 240x320 Mar 20 13:30:27 and hdpi is usually 480x800 Mar 20 13:30:38 k Mar 20 13:30:42 ty Mar 20 13:30:47 np Mar 20 13:31:38 Yeah, don't assume that Mar 20 13:31:40 are there any phones at all with 320x480 with high density? Mar 20 13:31:49 cuz if so, I'm royally screwed Mar 20 13:31:54 doubt it Mar 20 13:32:12 so everybody still building the android source in 10.04, or have you moved to 11.10? Mar 20 13:33:26 is onSaveInstanceState only called when the activity is destroyed? Mar 20 13:33:39 DJTachyon, i'm on 10.04 Mar 20 13:33:48 DammitJim: yes Mar 20 13:33:51 i belive so Mar 20 13:34:00 Is there a built-in Intent for the ListView Dialog that lists wifi access points in order to connect? Mar 20 13:34:12 I just basically want a AP chooser Mar 20 13:34:20 *an* AP chooser Mar 20 13:34:24 so, navigating to a preference in my own app wouldn't necessarily destroy the activity, right? Mar 20 13:34:26 jeppy: yeah i had trouble with all the newer stuff in the past Mar 20 13:34:53 if you navigate away from an activity using the back button Mar 20 13:34:57 or changing the orientation Mar 20 13:35:01 the activity gets destroyed Mar 20 13:35:01 I tried staying up to date with new releases but I'm still fairly new to using it as my primary OS and some of the bugs had me lost Mar 20 13:35:03 what should I use if I'm just changing a preference and I want to update something in that activity according to the update? Mar 20 13:35:26 onResume? Mar 20 13:35:33 CallumTaylor: Pressing back will not save state tho Mar 20 13:35:46 well it would be redundant wouldent it Mar 20 13:35:50 hello Mar 20 13:36:01 DammitJim, yes Mar 20 13:36:08 I know images for mdpi,ldpi, hdpi are placed in drawable-mdpi,drawable-ldpi... but what about layouts? Mar 20 13:36:20 I need one layout file to be used by medium density, and one for the rest Mar 20 13:36:21 layout-small, layout-large Mar 20 13:36:29 layout-medium Mar 20 13:36:36 i usually do layout and layout-small Mar 20 13:36:38 does that work for all android-versions? Mar 20 13:36:41 DammitJim, or an onPreferencesChangedListener (i think it will work in that situation) Mar 20 13:36:41 yes Mar 20 13:36:45 dammit, why is this thing saying I can't use onResume in my activity, but I have to do it in the BaseActivity? Mar 20 13:37:05 what if I have layout and layout-small, will that work? Mar 20 13:37:11 yeah Mar 20 13:37:15 great Mar 20 13:37:20 it will use the layout for everything, unless one exists in layout-small Mar 20 13:37:25 then it will use that instead for small devices Mar 20 13:37:37 DammitJim, it depends on what you're doing I guess, code wise. Mar 20 13:37:38 jeppy, where would I do the onPreferencesChangedListener? In the preference class? Mar 20 13:37:51 same with drawable and drawable-ldpi Mar 20 13:38:02 the main activity is asking me to either remove @Override or to add the onResume method to my baseActivity Mar 20 13:38:26 if I remove @Override, would my onResume code still be called? Mar 20 13:38:31 yes Mar 20 13:38:36 it's just an annotation Mar 20 13:38:45 but it shouldn't be causing problems Mar 20 13:38:46 @override is only required in certain versions of java Mar 20 13:38:55 others are optional Mar 20 13:39:01 but its generally best practice to include it Mar 20 13:39:17 check your project properties and make sure you're compiling with java 1.6 and not 1.5 Mar 20 13:39:31 yeah, it's 1.6 Mar 20 13:39:46 but the activity I have extends a base activity (where I defined all my menus) Mar 20 13:39:47 did you declare it final in baseActivity? Mar 20 13:40:00 no, it's not even mentioned in BaseActivity Mar 20 13:40:02 o_O Mar 20 13:40:08 did you change the visibility or make it final or something? Mar 20 13:40:38 so, when I removed the @Override, now when I call super.onResume() it doesn't want my savedInstanceState Bundle in the brackets Mar 20 13:40:42 you've got something garbled up Mar 20 13:40:47 I am extending LinearLayout and I want to add some controls to it dynamically. Is the right spot to do this in its constructor? Or do I need to override onLayout? Mar 20 13:40:59 onResume doesn't have a saved state Mar 20 13:41:09 oh Mar 20 13:41:11 hay evancharlton Mar 20 13:41:16 how much of a bribe ;) Mar 20 13:41:23 how do the runnables past to .post() methods execute... if they access shared state from an enclosing class do they need to synchronize on those vars, or are these not real threads? Mar 20 13:41:24 so, onResume has direct access to the stuff I was working on before it was paused? Mar 20 13:41:48 i ask because I see some code in a project like:class SomeListener{ private boolean isRefreshing = false; /*blah blah blah ....*/ public void setList() { list.post(new Runnable() { public void run() { if( ! isRefreshing) { isRefreshing = true; mlist.refreshStarted(); } } } ......blahblahblah..... } } Mar 20 13:41:57 which doesn't make sense to me.... for one thing it seems like isRefreshing should be outside the .post() call so the thread isn't created if it's not necessary.... but also seems like if "isRefreshing=true" is being executed in some other thread, then there'd need to be some knid of lock when checking/setting isRefreshing ... what do you guys think? Mar 20 13:42:05 no, you have to save and restore it yourself or using on (Save/Restore) InstanceState Mar 20 13:42:05 there are synthetic accessors and such Mar 20 13:42:21 nairb-: run baksmali on your compiled output. the code is.... enlightening. Mar 20 13:42:53 the short version is that your new anonymous runnable actually has a reference to your SomeListener class, even though you don't see it Mar 20 13:43:32 it should also be a non-static inner class in the compiled output Mar 20 13:43:55 hm, the layout I placed in layout-small does not seem to be used by the emulator I created with resolution 320x480 with medium density (160?) Mar 20 13:44:17 thats because layout-small will only show for small devices Mar 20 13:44:20 240x320 Mar 20 13:44:23 put it into layout-medium Mar 20 13:44:59 lov: hmm.... I mean, my question is really kind of about best-practices.... does it seem like the isRefreshing aught to be in a synchronized block? can the isRefreshing probably happen outside the runnable so that the runnable isn't instantiated unless it's actually going to do something? Mar 20 13:45:07 I thought the only optionns were layout-xlarge, large, normal and small? Mar 20 13:45:18 normal then Mar 20 13:45:21 put it into that Mar 20 13:45:26 jeppy: have you installed all security updates without a problem? Mar 20 13:45:34 jeppy: to your 10.04? Mar 20 13:45:46 jeppy: im running kubuntu btw Mar 20 13:45:55 nairb-: that's fair. You might want to make it volatile at a minimum, or you might want to more rigorously engineer your code so that you don't have those anonymous inner classes. Mar 20 13:46:02 layout: will use the layout for all devices Mar 20 13:46:10 if you're stil concerned then yes you could add a synchronized method to get/set that value Mar 20 13:46:15 layout-normal: will override layout if provided (for medium devices) Mar 20 13:46:22 layout-small: will override layout if provided (for small devices) Mar 20 13:46:23 etc etc Mar 20 13:46:25 I am extending LinearLayout and I want to add some controls to it dynamically. Is the right spot to do this in its constructor? Or do I need to override onLayout? Mar 20 13:46:43 do it after onLayout Mar 20 13:47:05 if you want examples on custom controlls take a look at my library Mar 20 13:47:06 https://github.com/scruffyfox/X-Library Mar 20 13:47:11 in package x->ui Mar 20 13:47:23 when you say after onLayout, which method specifically? Mar 20 13:47:28 I'm not sure what the lifecycle is yet Mar 20 13:47:30 in onLayout, after all the code Mar 20 13:47:36 ok Mar 20 13:47:45 lov: yeah i'm just having trouble understanding the mix of event-driven and threaded models in android, not sure what parts are actually separate threads sharing state and such. I'm looking at and trying to fix code someone else wrote... I probably understand java threads in general better than the original author, but this is my first time looking at mobile development. Mar 20 13:47:59 CallumTaylor: worked, but it also applied to my phone (Galaxy Nexus).. Need one layout to apply for phones with res of about 320x480 with medium density, and another one for phones with higher res. Mar 20 13:48:05 nairb-: at this level, there's no real difference between Java in general and Android Mar 20 13:48:09 doh Mar 20 13:48:43 just bear in mind that there's a "Main" thread which is used when you call postOnUiThread Mar 20 13:48:45 CallumTaylor: someone said this to me on stackoverflow: Changing the layout while in onLayout looks like a bad idea to me. Are you sure that you want to have different layouts depending on the size of your custom LinearLayout. Mar 20 13:48:52 and that the main thread runs in its own Handler Mar 20 13:48:56 so, when using onPause, I can't use a Bundle to save the stuff in? I have to either save it to a SharedPreference or sql? Mar 20 13:48:57 (and is basically event driven) Mar 20 13:48:57 use layout-large and layout-normal Mar 20 13:48:58 is he confusing onLayout with onMeasure? Mar 20 13:49:02 lov: right, but I still have to learn android's libraries. I'm assuming that the listener's method will only ever be called from one thread, and that any of the runnables (passed to some "post" method) could be running synchronously, but I don't know for sure what "post" does with those runnables. Mar 20 13:49:25 nairb-: highlight the method, see what the docs say :> Mar 20 13:49:30 gho5t: what controlls do you want to add to the view? Mar 20 13:49:55 oh shit Mar 20 13:50:00 CallumTaylor: I want to take each item in the control and wrap them in my custom view Mar 20 13:50:04 sorry i meant onFinishedInflate Mar 20 13:50:04 it's like a tab system Mar 20 13:50:11 https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUITitleBar.java take a loook at this Mar 20 13:50:14 i do something similar Mar 20 13:50:23 ok cool Mar 20 13:50:33 you have to like take out the current views in the xml and put it in an array Mar 20 13:50:38 inflate the controll you want Mar 20 13:50:43 then put the views back in where you want it Mar 20 13:50:59 more complex example: https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUIMenuButton.java Mar 20 13:51:10 cool I think this is exactly what I need. thanks Mar 20 13:51:25 one more question - what exactly does "inflating" mean Mar 20 13:51:27 * gho5t ducks Mar 20 13:51:46 so inflating is when you have a XML view and you want to load that in code into a View object Mar 20 13:52:15 bah i want my new car stereo Mar 20 13:52:27 these prices are too good not to dive into Mar 20 13:52:33 ok thanks man Mar 20 13:52:38 too bad all the android head units suck Mar 20 13:52:58 np Mar 20 13:53:12 custom views are a tough one to crack Mar 20 13:53:22 i should make a blog post tbh... Mar 20 13:53:39 CallumTaylor: layout-large didn't seem to do anything for my galaxy nexus. Still using the layout in layout-normal Mar 20 13:53:40 yeah there isn't a lot of resources on this Mar 20 13:53:42 that I could find Mar 20 13:53:42 hm Mar 20 13:53:57 XeruX: Cus GN is normal size Mar 20 13:53:59 hmm Mar 20 13:54:10 Hi .. ... when am trying to send message using c2dm and using curl to simulate a server /..... i was able to generate both the registration id for my application and authentication token ..... but whenever i send a mesaage it gives error 401 UNAUTHORISED Mar 20 13:54:13 ill write one up Mar 20 13:54:26 keep an eye on my blog @ http://blog.callumtaylor.net Mar 20 13:54:40 please somebody help me out with this ... Mar 20 13:55:16 cool I'll bookmark it Mar 20 13:56:55 man, what is the best way to store an ArrayList when using onPause? Mar 20 13:57:13 Been looking around for a few minutes for the wifi AP "chooser" Dialog that comes up on occasion... Do you guys know if there's a way to call this via an Intent? Mar 20 13:58:00 basically I need a list of access points in a Dialog that just goes away after selection, and rather than build it I assume there is something already built-in? Mar 20 13:58:10 DammitJim: depending on the size, just stuff the list into the bundle. Mar 20 13:58:17 well Mar 20 13:58:20 when you say "using onpause" Mar 20 13:58:28 do you mean storing the activity state for when it's restored? Mar 20 13:58:37 right... I was using onSavedInstanceState which is wrong for my needs Mar 20 13:58:50 is it? Mar 20 13:58:59 I need to save the data that I requested from a server (arrayList) when I go to my preferences Mar 20 13:59:17 my preferences have filters that change how the data is displayed in the activity that is being paused Mar 20 13:59:49 ok, why is your data being stored in your activity Mar 20 13:59:58 consider whether you want to use a service, or whether you shouldn't be persisting this data immediately Mar 20 13:59:58 but it is my understanding that I need to be using onPause for this Mar 20 14:00:10 no, onPause is a callback that you get when your activity isn't in the very foreground. Mar 20 14:00:14 it has nothing to do with persisting state Mar 20 14:00:21 you'll just want to stop animations or whatever in onPause generally Mar 20 14:00:29 if you want to save state, you should use onSaveInstanecState Mar 20 14:01:02 I am using onSaveInstanceState... I guess maybe I need to use onRestoreInstanceState, then? to bring back my arraylist? Mar 20 14:01:19 Your activity is not destroyed just because you go to a new activity Mar 20 14:01:31 exactly, SimonVT ... that's my issue Mar 20 14:01:41 How is that an issue.. Your data is all there Mar 20 14:01:43 Success? Mar 20 14:01:46 No need to save anything Mar 20 14:01:52 oh really? Mar 20 14:01:57 holy cow Mar 20 14:02:07 seriously i don't understand what the problem is Mar 20 14:02:11 either your activity is destroyed or it isn't. Mar 20 14:02:15 if it isn't, you're already set up Mar 20 14:02:22 if it is, you just have to set yourself back up when you're restored Mar 20 14:02:23 I'm doing all this work for no reason. Thanks guys! Mar 20 14:13:53 getting a "Conversion to Dalvik format failed with error 1" after adding proguard to project.properties . Should i upgrade proguard? Mar 20 14:14:14 +and making release build Mar 20 14:15:36 you might want to see what class ends up getting included twice. Do you have any libraries? Mar 20 14:16:53 i use a library .jar yes Mar 20 14:17:15 how can i see which class is included twice? Mar 20 14:17:26 read the error message Mar 20 14:17:42 ^^ Mar 20 14:20:12 the error message doesnt say anything about classes Mar 20 14:20:35 I'm 100% sure there's a more detailed log than "Conversion to Dalvik format failed with error 1" Mar 20 14:21:20 well thres a stacktrace in com.android.ide.eclipse.adt.internal.project.ExportHelper.exportReleaseApk(ExportHelper.java:252) but that doesnt really help me Mar 20 14:21:51 Hey. Can you give the UI thread less "priority"? I'm trying to process some large data and I want to use multicore architectures better, but UI thread is taking too much processor time. Mar 20 14:24:40 hstefan_: no Mar 20 14:24:52 if you have multiple cores, the UI thread is only going to use one Mar 20 14:26:13 Wait, it will use all the core? Mar 20 14:26:29 heh Mar 20 14:27:41 no hstefan_ Mar 20 14:27:45 it will only use as much as it needs Mar 20 14:27:56 if you dont want your app to use the UI thread, then dont update the UI :P Mar 20 14:28:44 my advice would be to not process that amount of data on a mobile device Mar 20 14:29:00 (yes, yes, not all android devices are mobile devices. too bad.) Mar 20 14:29:19 canadiancow|work: how can I do that? Mar 20 14:29:36 well Mar 20 14:29:59 instead of mTextView.setText("o hai i am done " + percent + " % of the processing"); every 2 seconds Mar 20 14:30:02 you could...not do that Mar 20 14:30:19 s/2/0.002/ Mar 20 14:30:51 I'm not doing anything like this :P Mar 20 14:31:17 hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:31:29 hstefan_: what metric did you use? Mar 20 14:31:58 if you're not updating anything in the UI it shouldn't use much CPU at all Mar 20 14:32:03 And still, I only got a 1.2 speedup, and the thread logic was double checked by me and my professor :( Mar 20 14:32:17 gee Mar 20 14:32:19 ... Mar 20 14:32:21 hstefan_: aah, so you have bad scalability and blame it on the UI :D Mar 20 14:32:22 i've never had a dumbass professor Mar 20 14:32:28 hey hstefan_ Mar 20 14:32:34 10:31:22 < tapas> hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:32:40 Q: Can i create package under the package in Eclipse? When I create new package - they all at the same level ... Mar 20 14:32:47 [10:32:28] hey hstefan_ Mar 20 14:32:47 [10:32:33] 10:31:22 < tapas> hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:32:49 That's a possbility, I'm trying to check that. Mar 20 14:32:59 10:32:52 < canadiancow|work> [10:32:28] hey hstefan_ Mar 20 14:32:59 10:32:52 < canadiancow|work> [10:32:33] 10:31:22 < tapas> hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:33:06 [10:32:59] 10:32:52 < canadiancow|work> [10:32:28] hey hstefan_ Mar 20 14:33:06 [10:32:59] 10:32:52 < canadiancow|work> [10:32:33] 10:31:22 < tapas> hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:33:11 silur: your question makes no sense Mar 20 14:33:15 15:33 < canadiancow|work> [10:32:59] 10:32:52 < canadiancow|work> [10:32:33] 10:31:22 < tapas> hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:33:15 silur: create a package under the package? Mar 20 14:33:23 07:32:43 < lov> 10:32:52 < canadiancow|work> [10:32:28] hey hstefan_ Mar 20 14:33:25 ok, I already understood haha Mar 20 14:33:25 yo dawg Mar 20 14:33:25 closing the circle :D Mar 20 14:33:26 07:32:43 < lov> 10:32:52 < canadiancow|work> [10:32:33] 10:31:22 < tapas> hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:33:30 lov, hierarchically organize packages Mar 20 14:33:31 silur: create a new packege, give it a name. THE END. Mar 20 14:33:31 i heard you like packagesw Mar 20 14:33:43 silur: packages are by definition hierarchically organized Mar 20 14:34:00 silur: your packages should really be starting with your app packagename generally anyway Mar 20 14:34:14 hstefan_: what kind of data processing do you do? Mar 20 14:34:22 so if your app packagename is "com.silur.myapp", your packages should be "com.silur.myapp.(anything goes here)" Mar 20 14:34:26 or even com.silur.myapp Mar 20 14:34:34 lov, say I want to create package 'utils' and under it 'ssl', 'xml', etc.... Mar 20 14:34:36 (which is particularly useful for anything with UI Mar 20 14:34:40 yeah no I understand what you're asking Mar 20 14:34:48 I'm asking YOU if you understand how java packages are actually organized Mar 20 14:34:49 and what they are Mar 20 14:35:03 really the key part is "what they are" Mar 20 14:35:06 tapas: I'm doing a simple dot product with a 800k length vector (just following what the professor asked) Mar 20 14:35:28 well, two vectors Mar 20 14:35:29 silur: http://docs.oracle.com/javase/tutorial/java/package/index.html Mar 20 14:35:30 hstefan_: so you split it in 4 parts, do the inner product of the parts and sum up the four subresults? Mar 20 14:35:32 lov, that's what i do. I guess my question is more about the way they are shown. com.silur.myapp.utils and com.silur.myapp.utils.ssl are shown at the same level (visually) Mar 20 14:35:41 exactly Mar 20 14:35:42 silur: configure eclipse to not do that. Mar 20 14:35:48 it should actually be the default Mar 20 14:35:50 but use the "package" view Mar 20 14:35:50 it that's the case, of course Mar 20 14:36:05 window -> show view -> Package (or other... if it's not there) Mar 20 14:36:10 I split it in getRuntime.avaiableProcessors() :P Mar 20 14:36:34 silur: regardless, the packagename actually determines the directory into which the java file goes, so regardless of how you're looking at this there really ought to be some sort of hierarchy in your view. Mar 20 14:36:35 hstefan_: do you really split the vectors or do you have your threads just process a chunk of it by passing indices to them? Mar 20 14:36:40 so if there isn't I have no idea how you're looking at your stuff Mar 20 14:36:54 hstefan_: if you indeed are splitting then the memory overhead might overshadow all your potential gains Mar 20 14:36:56 I really split Mar 20 14:37:07 hmmm, sounds legit Mar 20 14:37:14 hstefan_: well, then keep in mind that you basically create a copy of the 800k array.. Mar 20 14:37:14 I'll try indices, good idea Mar 20 14:37:22 memory allocations and all.. Mar 20 14:37:24 lov, package explorer shows them at the same level, even though they are named properly Mar 20 14:37:49 hstefan_: you don't even need synchronization in this case on the individual elements since the threads operate on disjoint parts of the vector Mar 20 14:38:03 lov, it's not critical, just something "nice to have" Mar 20 14:38:09 07:32:43 < lov> 10:32:52 < canadiancow|work> [10:32:28] hey hstefan_ Mar 20 14:38:10 07:32:43 < lov> 10:32:52 < canadiancow|work> [10:32:33] 10:31:22 < tapas> hstefan_: so how did you reach the conclusion tht the UI uses too much CPU? Mar 20 14:38:13 sigh Mar 20 14:38:13 silur: I literally don't know how you got into this state, try heading to #eclipse and ask for help there. Mar 20 14:38:13 thank you tapas :) Mar 20 14:38:15 stupid paste Mar 20 14:38:21 silur: this is a really strange configuration you've managed to get yourself into Mar 20 14:38:24 hstefan_: mind me asking what kind of feature vectors you have with 800k entries? Mar 20 14:38:34 hstefan_: images? surf features? pca? Mar 20 14:39:06 Hey there! Mar 20 14:39:32 UnbertKant: You're at about a 9, we need you to come down to a 6, thanks. Mar 20 14:39:52 tapas: it's a homework, no "real" reason, it's been given as homework so I can learn a bit of parallel programming. Mar 20 14:40:02 oops, bad phrasing Mar 20 14:40:02 what? Mar 20 14:40:23 I have a view that needs a long time to load, so I'd like to use a loading animation before the actual view is ready. What's the best way to do this? Mar 20 14:40:28 hi, I try to create a new screen when clicking on a button, I found the "common tasks" resource on the website which uses an Intent, also I already created a new layout.xml...but how do I combine them so the click will open the layout? Mar 20 14:40:31 hstefan_: ok.. Mar 20 14:40:35 hstefan_: good luck then.. Mar 20 14:41:01 I was thinking about returning a special view, that at first contains only a progressbar view. Later, an async task removes the progressbar and puts in the right view instead. Mar 20 14:41:03 hstefan_: parallel processing of large feature vectors has interesting applications in machine learning btw.. Mar 20 14:41:04 Is this a good idea? Mar 20 14:41:05 UnbertKant: depends on what you mean by "takes a long time to load" Mar 20 14:41:08 anyways, i need to get back to work Mar 20 14:41:14 hey gho5t you still here? Mar 20 14:41:15 about 5 seconds. Mar 20 14:41:20 UnbertKant: but you can just use a ViewFlipper if you want to swap between views Mar 20 14:41:36 UnbertKant: no, I mean are you loading data? does it take a long time to measure? inflate? Mar 20 14:41:50 loading the data from the internet takes a lot of time. Mar 20 14:41:58 DarsVaeda: learn how to start the new Activity through your intent (also define the new Activity in your manifest) and use that in an onClickListener Mar 20 14:42:09 So I want a loading swirl first, then a listview. Mar 20 14:42:09 DarsVaeda: you want to use the intent to start a new Activity Mar 20 14:42:19 DarsVaeda: let that new activity have the new layout Mar 20 14:42:28 http://blog.callumtaylor.net/archives/142 if you're still here Mar 20 14:42:29 UnbertKant: use a ProgressDialog with the style set to horizontal Mar 20 14:42:33 DarsVaeda: (to be clear, I'm talking about creating a different class too) Mar 20 14:42:39 is there a tutorial somewhere? I found one but it is from 2008 and seems not to be working anymore Mar 20 14:42:47 UnbertKant: yeah, look at ViewFlipper Mar 20 14:42:52 DarsVaeda: The official docs will explain it all Mar 20 14:43:01 i have sdk r15 and I can't find fastboot, where can I get it ? Mar 20 14:43:03 Does ViewFlipper even work when one of the two views isn't there yet? Mar 20 14:43:14 DarsVaeda: you should be looking at d.android.com Mar 20 14:43:28 DarsVaeda: whatever rando tutorials you found from searching the internet are at best inaccurate Mar 20 14:43:38 I have its too much information at my current level Mar 20 14:43:40 UnbertKant: sure; just populate the container when you get the data Mar 20 14:43:44 DarsVaeda: http://developer.android.com/resources/faq/commontasks.html Mar 20 14:43:53 the container? Mar 20 14:43:55 http://developer.android.com/resources/faq/commontasks.html#opennewscreen Mar 20 14:44:04 lov: thanks thats where I come form Mar 20 14:44:05 DarsVaeda: Why not start with hello world etc then? It starts from the beginning. Mar 20 14:44:15 I read those too Mar 20 14:44:19 eclipse started to like to crash today :( Mar 20 14:44:26 DarsVaeda: You read all the beginner examples? Mar 20 14:44:28 eclipse is a pile of wank Mar 20 14:44:31 did the noteliste tutorial but there is no newscreens Mar 20 14:44:48 then you did it wrong Mar 20 14:45:53 DarsVaeda: "new screen" being another activity, bear in mind. Mar 20 14:45:58 there are no "screens" Mar 20 14:46:05 there are activites, dialogs, and layouts Mar 20 14:46:11 activities and dialogs have layouts Mar 20 14:46:17 i do like eclipse's auto completion in the xml files, though :D Mar 20 14:46:31 what other ide is there with good android support? Mar 20 14:46:46 AIDE Mar 20 14:46:48 * evancharlton ducks Mar 20 14:46:50 all IDEs are bloat and crap Mar 20 14:47:18 vim Mar 20 14:47:32 And here we go.... editor waaaaaar!!!! Mar 20 14:47:35 :-P Mar 20 14:48:14 ahh I think I got it...with myIntent.setClassName('foo', 'foo.function') i call the new class and in this function I set the layout just as in the OnCreate()? Mar 20 14:49:06 DarsVaeda: ... what on earth is that? Mar 20 14:49:22 no. Mar 20 14:49:33 DarsVaeda: create a new class where you extend an Activity Mar 20 14:49:34 darn...it sounded good ^^ Mar 20 14:49:44 DarsVaeda: you know how you have your class that extends Activity right now? Mar 20 14:49:48 DarsVaeda: you create another class like that Mar 20 14:49:57 DarsVaeda: except in the onCreate there, you give it some other layout, and maybe some other code, etc Mar 20 14:50:10 thats what I just said? Mar 20 14:50:11 DarsVaeda: ...and define that Activity in your manifest Mar 20 14:50:13 no Mar 20 14:50:17 DarsVaeda: then you can do "Intent i = new Intent(this, MyNewClass.class); startActivity(i);" Mar 20 14:50:34 and yes, please don't forget to add this activity to your manifest Mar 20 14:50:47 Hello, does anyone know if it is possible to replicate the widget-adding experience of the ICS launcher? I seem to have trouble dropping the widgets and it seems like you *have* to use the lame list-based widget picker activity. Is there any way around this? And if not why on earth is it like this? Mar 20 14:51:03 DarsVaeda: what you were thinking was adding the code in a method to your extended Activity class, but this is wrong Mar 20 14:51:23 what code? Mar 20 14:51:26 Timmmm: third-party apps cannot add widgets to ICS's Launcher, no. Mar 20 14:51:46 DarsVaeda: If you try that, besides not working, any method would affect the current UI thread on your current Activity and thus overwrite... Mar 20 14:51:46 I think you got me wrong, I wanted to do like lov said Mar 20 14:51:57 Timmmm: because then every 3rd party dev would just utterly SHIT all over launcher. Mar 20 14:52:09 hey, not all of us Mar 20 14:52:18 of course if you replace "3rd party dev" with "oem" then that's what they do anyway :( Mar 20 14:52:39 DarsVaeda: yeah but what you wrote made absolutely no sense. Mar 20 14:52:45 DarsVaeda: intents don't specify specific methods to run. Mar 20 14:52:55 DarsVaeda: there are two kinds of intents; implicit intents and explicit intents. Mar 20 14:53:05 DarsVaeda: explicit intents specify the packagename and class of the target activity Mar 20 14:53:10 explicit intents are used with MiKandi Mar 20 14:53:30 DarsVaeda: you can provide extra info in your intent such as Action, Category, Data, and the Extras bundle, that's how you tell the Activity what it needs to do. Mar 20 14:53:35 If I want to center a view horizontally, but put it at 75% down, how to do that? Mar 20 14:54:18 I mean that the distance of the center of the view to the top of the screen is three times as long as the distance from center to bottom. Mar 20 14:55:04 UnbertKant: you go read up on gravity and weight :) Mar 20 14:56:30 I did that already, I have an invisible view with gravity 0.75, then the real view, then an invisible view with gravity 0.25, but this looks wrong because it doesn't account for the height of the visible view. Mar 20 14:56:44 evancharlton: That's not what I meant. I want to add widget to *my* launcher (which is a copy of the ICS launcher). Mar 20 14:57:41 BUILD SUCCESSFUL Mar 20 14:57:41 Total time: 9 minutes 20 seconds Mar 20 14:57:44 k guise Mar 20 14:57:49 someone needs to improve the build system Mar 20 14:57:53 like 4srs Mar 20 14:58:11 evancharlton: But I want to do it using the ICS-style widget selection widget (ahem), rather than the boring list you get in gingerbread (which uses the system ACTION_APPWIDGET_PICK activity) Mar 20 14:59:59 http://technology-headlines.com/2012/03/19/according-to-a-purdue-university-study-65-75-of-energy-in-free-apps-is-spent-in-third-party-advertising-modules/ heh. Mar 20 15:04:56 yeah no surprise there Mar 20 15:05:04 silly advertising Mar 20 15:05:12 always blocking them <3 Mar 20 15:05:24 I wish they'd offer eprof for testing our own apps Mar 20 15:07:02 Is there a way to build a minimal image of Android? It seems that lunch-eng has many packages I don't need. How can select a minimal base? Mar 20 15:20:26 Timmmm: ok, go nuts. You're the one running the show with the launcher. Mar 20 15:21:58 someone knows if there is a lib or something which allows us to push a intent from a desktop to a phone? Mar 20 15:22:15 a bit like how market website allows to install apps on a devices ( but that uses a gtalk channel ) Mar 20 15:23:47 er Mar 20 15:23:51 look into c2dm. Mar 20 15:24:41 okay, I did everything but when I do "Intent myIntent = new Intent(this, MyClass.class)" it says the constructor is undefined? Mar 20 15:25:34 "this" has to be a context Mar 20 15:25:43 hi Mar 20 15:26:02 what make an app climb on search list Mar 20 15:27:01 like if i search for "movie sounds" or what ever, a lot of apps that are the same will show up Mar 20 15:27:22 but.. in the order of most downloaded or what? Mar 20 15:27:59 If that would be known it would be easy to abuse I guess, same with google ranking Mar 20 15:28:16 Rating and active installs/downloads should count I guess Mar 20 15:28:35 And keywords in your description/app name etc Mar 20 15:28:43 some mix of "popularity" and "relevance" Mar 20 15:28:57 You probably get penalties for trying to cram in too much, too Mar 20 15:29:07 Google is not a good search engine for nothing :) Mar 20 15:29:23 lov, ok thx Mar 20 15:29:59 your search position definitely improves as you receive more downloads and ratings Mar 20 15:32:13 what does this tell me: http://pastesite.com/33131 Mar 20 15:32:21 i guess that i should use adb logcat directly :D Mar 20 15:32:57 actually no, that has the same info Mar 20 15:34:19 nice got it working, thanks to everyone Mar 20 15:34:22 Mikellip ok.. cool.. Mar 20 15:35:10 Mikellip so you think google uses only what you enter when describing your app? Mar 20 15:35:52 Mikellip what if one writes a script that downloads your app 1 miljon times :D is that ok? Mar 20 15:36:04 ok, i know its not "ok" but what if..? Mar 20 15:36:14 tapas: I'm gonna guess you returned null in your adapters getView Mar 20 15:36:23 SimonVT: yeah, that was it :D Mar 20 15:37:53 If i have a string array, is it possible to make a translation for only one item? Mar 20 15:38:32 Bear10: use @string/whatever instead of hardcoding the values Mar 20 15:38:43 evancharlton, its already a resource though Mar 20 15:38:47 can i do that? Mar 20 15:38:47 so? Mar 20 15:38:48 yes Mar 20 15:38:52 oh cool didn't know that Mar 20 15:39:13 @string/select_one <-- like that Mar 20 15:39:14 ? Mar 20 15:39:31 yes, though hitting "run" would've told you the same thing :) Mar 20 15:39:42 it doesnt :P lol Mar 20 15:40:07 what doesn't work? Mar 20 15:40:07 awesome evancharlton works like a charm Mar 20 15:40:11 :) Mar 20 15:40:11 i mean it doesnt tell me Mar 20 15:40:14 hehe Mar 20 15:40:40 evancharlton works like a charm? Mar 20 15:40:41 orly Mar 20 15:41:09 what the hell is with all these sync errors in my ubuntu vm downloading the source Mar 20 15:41:13 ugh Mar 20 15:41:28 my bandwidth overloading the virtualbox drivers or something Mar 20 15:41:58 trying one thread now >_> Mar 20 15:43:17 if I register a receiver dynamically, do I have to then unregister it at a later time? Mar 20 15:43:32 broadcastreceiver Mar 20 15:44:25 code1: yes Mar 20 15:44:41 code1: you should unregister onpause and/or ondestroy Mar 20 15:45:44 DJTachyon: problem is the receiver needs to live on outside of the activity (it's called by an alarm) Mar 20 15:46:13 code1: put the receiver in a service then Mar 20 15:46:36 yup Mar 20 15:46:54 code1: you need to put the receiver in a background service Mar 20 15:46:55 code1: http://developer.android.com/reference/android/app/IntentService.html Mar 20 15:47:16 http://developer.android.com/reference/android/app/Service.html Mar 20 15:47:23 What do you mean by put? As in an inner class? Mar 20 15:47:28 DJTachyon: have you ever created selectors that fade between their states? Mar 20 15:47:39 Napalm: hmm .. only fragments :P Mar 20 15:48:17 Napalm: thought of actually removing the fades for performance on my fragment tabs Mar 20 15:48:43 ive got a nice glowing button look for when the buttons in my app are pressed Mar 20 15:48:56 but i really wanted the glow to fade in when they are pressed or focused Mar 20 15:49:00 How do you put a broadcast reciever in a service? Aren't they two different things? Mar 20 15:49:02 i cant see a way of doing it Mar 20 15:49:08 hmm Mar 20 15:49:17 argh more sync fetch errors for the repo sync Mar 20 15:49:17 wtf Mar 20 15:49:19 lol Mar 20 15:49:28 so annoying Mar 20 15:49:36 code1: just create a seperate BroadcastReceiver Mar 20 15:49:43 stick in the manifest Mar 20 15:50:03 then the service would register and deregister it Mar 20 15:50:15 yeah i actually havented used an intentservice before Mar 20 15:50:16 the service survives outside the lifecycle of an activity Mar 20 15:50:20 -ed Mar 20 15:50:40 you can then launch the activity from the service when an alarm goes off or whatever Mar 20 15:50:42 I don't think it needs registering if it's in the manifest... Mar 20 15:50:43 DJTachyon: they are quite handy, especially for things like this guy is trying to do Mar 20 15:50:47 indeed Mar 20 15:50:52 my services are all foreground Mar 20 15:51:06 code1: well it depends on the intent Mar 20 15:51:20 code1: some intent/action combinations have to be registered for Mar 20 15:51:25 i have no idea what you are doing Mar 20 15:51:57 It's just a simple reciever that starts an activity, all internal stuff Mar 20 15:52:39 alarm -> start receiver -> start activity Mar 20 15:53:47 can you detect when your notification bar is opened? Mar 20 15:54:02 Napalm: PM Mar 20 15:55:38 canadiancow|work: not as far as I know Mar 20 15:55:51 it's a system window, so you don't get onPause or anything Mar 20 15:55:52 so theres no way to pause a game when that happens? Mar 20 15:55:59 onWindowFocusChanged? Mar 20 15:56:19 possibly; try it and see? Mar 20 15:56:29 well i know that's not happening Mar 20 15:56:33 all day pushing pixels around.. argh!! :D Mar 20 15:56:33 because i already handle that :) Mar 20 15:56:35 oh wait Mar 20 15:56:37 maybe i dont Mar 20 15:56:39 FUCK Mar 20 15:56:49 you cant pause games there, because volume controls trigger it Mar 20 15:57:17 hah Mar 20 15:58:27 that's an easy ticket to close :) Mar 20 16:02:09 <[Pi]> I am trying to set up my MacBook for android mobile dev. I've installed eclipse classic, and I've downloaded the SDK from here http://developer.android.com/sdk/index.html and run ./android and installed the necessary packages. but now I'm trying to install software from within eclipse ( help -> install new software -> http://cl.ly/FB5N ) but it just won't retrieve from this URL. I've tried a dozen times. It just says pending... any ide Mar 20 16:02:10 <[Pi]> as? Obviously my Internet is working becaues IRC and web browsre work Mar 20 16:02:58 try looking for any opened windows that might be hidden Mar 20 16:03:07 <[Pi]> unbelievable, no sooner do I whinge on IRC than it finds it! Mar 20 16:03:07 it might be asking you to accept the certificate because its using https Mar 20 16:03:10 <[Pi]> within seconds Mar 20 16:03:33 <[Pi]> I got it now... http://cl.ly/F9jy Mar 20 16:05:51 does anyone have any links to an example of a simple custom actionbarsherlock View? I just want to add a small widget to the actionbar but otherwise change the defaults as little as possible... Mar 20 16:12:39 anyone have a clue how I can convert a json string that looks like "foo" (including the quotes) into a String type which does not include the quotes ? I can't seem to find any way of doing this without having a key/value mapping in the json object that is serialized Mar 20 16:13:37 rvsjoen: just strip the quotes from the string? Mar 20 16:14:07 I thought about that, just wondering if there was something about JSONObject or some other utility function that I missed Mar 20 16:14:59 if the source string contains quotes json won't remove them for you Mar 20 16:15:59 alright, maybe I can find a way to make php's json_encode not add the quotes then Mar 20 16:16:06 thanks Mar 20 16:16:28 theres an option Mar 20 16:17:16 JSON_HEX_QUOT or something Mar 20 16:24:07 i want to have a dropdown view/popup/something so when you click an menu item in my action bar you get a text edit and a button, can anyone point me in the right direction? Mar 20 16:27:18 I can connect to a certain SSID fine from the wifi settings, but when I try to use WifiManager to add and enable the same network, everything comes back with network ID and "true" for enabled, but never connects: http://pastie.org/3635793 Mar 20 16:27:29 (the network is open) Mar 20 16:28:08 cdmdcmdmcdm: http://d.android.com/ Mar 20 16:28:34 omg thanks Mar 20 16:41:21 If i focus on an edittext programatically should the keyboard automatically popup? Mar 20 16:42:54 generally i think if no hw keyboard is present Mar 20 16:43:05 so not in the emulator Mar 20 16:43:20 birbeck weird, because im doing a findViewById(id).requestFocus(); and i see that the focus is working, but no keyboard is popping up Mar 20 16:44:44 have you defined android:windowSoftInputMode in your activity? Mar 20 16:45:51 birbeck, i dont think so but i don't know if i need to. what happens is: i have an activity, when it starts i have an edittext, that one is focused np and shows a keyboard -> i click on an item in my list and then an alert pops up (in this alert i have another edittext, when i do the request focus the keyboard dispapears) Mar 20 16:45:56 does anyone know how can I get WCDMA signal strength from android (ec/io or others relevant), not GsmSignalStrength which shows useless RSSI? Mar 20 16:46:33 if its not been solved in newer API,s can i get it somehow from JNI ? Mar 20 16:46:34 birbeck, actually it just disappears when the alert comes up Mar 20 16:46:59 Bear10: you can request the keyboard to be shown programatically Mar 20 16:48:03 looks like it's what ill have to do Mar 20 16:49:27 just sent out my request to expense io 2012 :) Mar 20 16:49:48 if thats denied then i can always expense it through my co though Mar 20 16:54:34 can someone help me out with a bit of database trouble? Mar 20 16:55:26 has anyone tried getting any useful wcdma info from JNI coding, RIL and platform apps? I know each 3g modem has to know values like ec/io to perform handover for example,so it should be possible to dig to it somehow Mar 20 16:59:06 http://pastie.org/3635964 this should be all the code you need, the database saved everything correctly, but I'm getting an arrayIndexOutOfBounds error and i'm not sure why. I also can't seem to get the tabs to save correctly Mar 20 17:01:17 birbeck, hmm everything im trying programatically isnt bringing it up Mar 20 17:04:09 Attention. I am a genius. That is all. Mar 20 17:05:31 a genius wouldn't use a full stop after "Attention" Mar 20 17:05:56 Bear10: final InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); Mar 20 17:05:56 imm.showSoftInput(v, InputMethodManager.SHOW_IMPLICIT); Mar 20 17:06:17 birbeck, yeah im doing that Mar 20 17:06:41 is v the edit text in your dialog? Mar 20 17:06:44 yeah Mar 20 17:07:00 and youre testing this on a phone, not the emulator? Mar 20 17:07:03 yep Mar 20 17:07:10 no clue then, sorry Mar 20 17:07:37 you can try SHOW_FORCED, but thats not very kind Mar 20 17:08:20 if I pass an int into: new LinearLayout.LayoutParams(someInt, someInt) is someInt in DP? Mar 20 17:08:26 let me see if forced does anything Mar 20 17:08:52 nope hmm Mar 20 17:09:00 gho5t: nope Mar 20 17:09:21 how can I get a DP value from an int? Mar 20 17:09:37 do I have to do the math Mar 20 17:09:45 or is there a utility method Mar 20 17:10:07 http://developer.android.com/guide/practices/screens_support.html#dips-pels Mar 20 17:11:07 no love :( Mar 20 17:11:40 evancharlton: a homosexual is attracted to colons Mar 20 17:11:50 Pragma, knock it off Mar 20 17:12:00 err pragma_ Mar 20 17:12:47 someone remind me to -b him in a few minutes Mar 20 17:12:56 will do Mar 20 17:13:00 was just about to do that Mar 20 17:13:20 birbeck, found a solution Mar 20 17:14:01 what did you do? Mar 20 17:14:08 dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE); Mar 20 17:14:17 Hey guys, I'm making a music player, and I want my MusicService to upload my my MusicActivity UI, and my Activity to take control over my Service. What is the best and fastest-working way to implemet this: intents and filters, binders, or static fields? Mar 20 17:14:32 Bear10: you can also do that via your application manifest Mar 20 17:14:45 *not upload, update Activity Mar 20 17:14:49 err, maybe not for the dialog Mar 20 17:14:56 yeah that's what i waas going to say Mar 20 17:15:15 Bear10: how does that react on devices with hardware keyboards? Mar 20 17:15:25 i was wondering the same Mar 20 17:15:38 does anybody see what i'm writing? Mar 20 17:16:06 yes stigg Mar 20 17:16:44 can anyone help me with my problem? Mar 20 17:17:36 what is the best and fastest-working way of constantly interacting between service and activity Mar 20 17:17:57 evancharlton, Reminder? Mar 20 17:18:16 intents and filters, or static fields, or binder? Mar 20 17:18:29 hey, what's all this banning I see going on in here? Mar 20 17:19:55 what is the best and fastest-working way of constantly interacting between service and activity? can anyone help me? Mar 20 17:21:01 i suppose noone sees what i'm writing here Mar 20 17:21:58 bug2000: thanks Mar 20 17:22:40 hey guys Mar 20 17:22:48 can anyone help me? Mar 20 17:23:53 fuck this Mar 20 17:25:18 Someone's getting impatient.. Mar 20 17:25:40 lol Mar 20 17:31:21 so what's the point of all this IRC if almost every each of you is constantly AFK'ing? and no one is giving a shit about other's questions (even the simple ones, like mine) Mar 20 17:31:35 because the devs are working possibly? Mar 20 17:31:42 I have a custom relative layout class that I create programmatically that has a ListView inside of it with a base background color of like dark gray. During the time of creating and filling the ListView though I set the background image to have a alpha of like 200 so I can see through it, but when I start to scroll the list it is no longer see through and it is just the base color? Mar 20 17:31:55 or people don't know the answer Mar 20 17:32:36 Anyone have any ideas on how I could fix this. I tried the cache color but that isn't working because I can't set the alpha on that… Anyone have any ideas? Mar 20 17:33:04 try the cahcequality Mar 20 17:33:06 set it to high Mar 20 17:33:14 or off if its available Mar 20 17:33:14 evancharlton: could you or another googler PM me a contact email for someone I can speak to about the SDK website, I have seen a bug and I have a fix for it Mar 20 17:33:56 Napalm Mar 20 17:34:00 stiggpwnz: next time, dont ask for help, just post your question Mar 20 17:34:05 cranky_85: yes Mar 20 17:34:06 stiggpwnz: i've never done it before, but try putting the service in a handler, then handle the messages sent by "handler.sendMessage" Mar 20 17:34:10 I think i know someone.....let me check it out Mar 20 17:34:38 or if you're trying to access the service from every activity, look at http://blog.callumtaylor.net/archives/126 Mar 20 17:34:47 cranky_85: i dont mind emailing you and you can forward it, but it would be nice to get it fixed Mar 20 17:34:55 stiggpwnz: I'd tell you but I'm afk sorry Mar 20 17:35:05 thanks Mar 20 17:35:08 stiggpwnz: think of IRC as Multiplayer Notepad Mar 20 17:35:36 I already am Mar 20 17:35:46 *do Mar 20 17:36:47 stiggpwnz: what was your question anyway? Mar 20 17:37:16 what is the best and fastest-working way of constantly interacting between service and activity? can anyone help me? Mar 20 17:37:18 this one? Mar 20 17:37:25 Napalm: yes Mar 20 17:37:35 do you have lots of activities accessing one service? Mar 20 17:37:41 just one Mar 20 17:37:50 so.. just bind to it Mar 20 17:38:02 you can just call the methods directly then Mar 20 17:38:24 I don't really know how to implement all this Mar 20 17:38:54 stiggpwnz: i suppose for you a simple method would be to implement a IntentService Mar 20 17:39:05 and just fire off intents to your service Mar 20 17:39:39 is it fast? creating a new intent everytime I need to interact Mar 20 17:39:50 and I want tw-way interaction Mar 20 17:40:06 two-way, from service to activity, and from activity to service Mar 20 17:40:22 Binder would do this? Mar 20 17:40:38 stiggpwnz: yes, it all depends on what your trying to do, and what you need the service for Mar 20 17:40:54 Hello Mar 20 17:41:04 music player Mar 20 17:41:24 Hi there Mar 20 17:41:36 Q: Can I call startActivity() from onCreate() of current activity? Mar 20 17:41:46 silur: yes Mar 20 17:41:49 ya Mar 20 17:42:38 ok, thanks. So the code seems to go to second onCreate() and then blows up right away, calling this: b.setOnClickListener(new OnClickListener() { ... }); What could be the reason? Mar 20 17:43:30 ohhh, i know. 'b' is null :P Mar 20 17:43:49 and I was looking for some rocket science reason.... Mar 20 17:45:38 Well, then next question, why is this thing returns 'null' if 'button1' clearly exists in resource: Button b = (Button) findViewById(R.id.button1); // return null ??? Mar 20 17:46:10 try cleaning the project Mar 20 17:46:22 fixes 90% of problems Mar 20 17:46:49 CallumTaylor, did it. still null! Mar 20 17:46:52 silur: was the view inflated before you tried to find it? ie) setContentView() Mar 20 17:47:06 make sure you do it after setContentView? Mar 20 17:47:13 post the activity and the xml on pastebin Mar 20 17:47:55 hi i stumbled over a drawing issue i don't really understand! i simply have an custom view object like so: http://pastebin.com/hnyx4P58 it basically draws only a red rect. here is my xml: http://pastebin.com/x9uJ7XhJ so i merge the custom view (as a background) and a linear layout containing a button. so here is the problem: it renders good but when i touch the button the button also gets the background from my custom view an Mar 20 17:47:55 shouldn't be? Mar 20 17:48:28 you have to force the width and height in onMeasure Mar 20 17:48:34 if you're drawing the view via onDraw Mar 20 17:48:50 sec Mar 20 17:49:07 Anybody know why using this code would not result in a wifi connection?: http://pastie.org/3636264 Mar 20 17:49:27 plan_rich: take a look at my custom view https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUISwitchView.java Mar 20 17:49:29 Napalm, i didn't call setContentView()... This is phonegap app, and I calling: super.onCreate(), then my if(true) { startActivity() }, then super.loadUrl(...); Mar 20 17:49:34 i use onDraw to completely draw the view Mar 20 17:49:40 I can connect to the network via the regular ACTION_PICK_WIFI_NETWORK Intent but not using the enableNetwork() method Mar 20 17:49:48 enableNetwork() is returning true. Mar 20 17:49:53 Just no connection. Mar 20 17:50:04 That maybe the reason? Should i call main activity's super.loadUrl() first and then startActivity() ? Mar 20 17:50:13 silur: that serves you right then, phonegap, pshhh Mar 20 17:50:58 i thing i figured out how to pass a Service instance to the Activity, but now I need to pass an Activity instance to the service, is that possible? Mar 20 17:50:59 oh god Mar 20 17:51:00 dont user phonegap Mar 20 17:51:02 Napalm, I faced right away with task of creating native plugin. So eventually will migrate the whole thing to java Mar 20 17:51:02 for the love of god Mar 20 17:51:10 *I think Mar 20 17:51:16 there's enough shit apps on the marketplace Mar 20 17:51:27 CallumTaylor, 120% agree Mar 20 17:51:37 stiggpwnz: what what, why are you passing your activity to your service??!? Mar 20 17:52:10 to call it's methods, like I do with a service inside of Activity Mar 20 17:52:18 noooo Mar 20 17:52:25 for the love of christ Mar 20 17:52:27 lol Mar 20 17:52:44 I need a two-way connection Mar 20 17:52:45 CallumTaylor: do you want to do the honor of explaining interfaces to this guy? :D Mar 20 17:52:52 CallumTaylor: thx ill take a look at that Mar 20 17:53:17 an interface is used as sort of like a delegate, when something happens you trigger the method of the interface and you handle it in that item Mar 20 17:53:45 so like when you click an item, you handle it in the 'onClick' method in an OnClickListener variable Mar 20 17:54:41 but how to handle for example my service's MediaPlayer.onCompletion() method inside an Activity? Mar 20 17:55:17 ok give me a se Mar 20 17:55:22 ill write some pseudocode up on pastebin Mar 20 17:55:36 thanks alot mate Mar 20 17:55:56 stiggpwnz: you don't have to copy and paste people's nicks; you can use tab-complete Mar 20 17:56:03 like Ca will give me CallumTaylor Mar 20 17:56:30 i didnt get it, what is Ca? Mar 20 17:56:42 the beginning of the nick Mar 20 17:56:44 nevermind Mar 20 17:56:50 stiggpwnz, type a couple letters, hit tab Mar 20 17:57:55 stiggpwnz: http://pastebin.com/Rttr30ks Mar 20 17:58:07 evancharlton, pfn, I think Ctrl-V is easier Mar 20 17:58:14 it isn't Mar 20 17:58:15 might not be 100% what you expected, but its what I would do Mar 20 17:58:28 so you had to double click on evancharlton , ctrl-c, then ctrl-v, hit comma Mar 20 17:58:35 then double click on pfn, ctrl-c, then ctrl-v Mar 20 17:58:36 then comma Mar 20 17:58:47 sounds like a lot more work than e, p Mar 20 17:58:50 CallumTaylor, anyway thank you! Mar 20 17:58:57 stiggpwnz: np Mar 20 17:59:06 pfn, right, thanks Mar 20 17:59:21 Does anyone knows what could cause "Waiting for Debugger to attach" on a phone. Emulator works fine... ? Mar 20 17:59:26 stiggpwnz: it also means that a lot of clients won't highlight correctly :) Mar 20 17:59:44 then again, xchat has some stupid ass defaults for tab completion Mar 20 17:59:57 it needs to be set to last-spoke order and with the complete_amount set to 999 or something Mar 20 18:00:20 "Waiting for Debugger to attach" is followed by "Failed to connect to remote VM. Connection timed out." ..... hmmmmm Mar 20 18:03:13 CallumTaylor, I didn't get it, how does it gets called in the Activity? Mar 20 18:03:22 you call it in the service Mar 20 18:03:34 post your activity on pastebin Mar 20 18:03:37 let me take a look Mar 20 18:04:04 CallumTaylor, ok let me finish it Mar 20 18:05:50 CallumTaylor: well i set a new measure spec in on measure but it did not help. the button also draws the red stroked rectangle as background… maybe there is something i did miss Mar 20 18:06:16 so what are you trying to make it do exactly? Mar 20 18:06:48 just paint red stroked rectangle as background 1px Mar 20 18:07:07 ok Mar 20 18:07:32 hmm Mar 20 18:07:34 but the button inherits that background and also draws 'its' own' red 1 px background Mar 20 18:07:44 let me send you a screenshot Mar 20 18:07:47 ok Mar 20 18:08:24 try removing the super for one Mar 20 18:08:29 if you want it to only draw what you tell it to Mar 20 18:11:26 http://www.tiikoni.com/tis/view/?id=587770c Mar 20 18:11:38 so the button background should not render Mar 20 18:11:43 right Mar 20 18:11:51 weird Mar 20 18:12:07 try removing the super ondraw Mar 20 18:12:15 but thats weird, that shouldent ever happen Mar 20 18:12:23 ooh Mar 20 18:12:27 you're using merrge Mar 20 18:12:29 that might be why Mar 20 18:12:40 super call doesn't do the job Mar 20 18:12:43 try putting them in a framelayout Mar 20 18:12:46 well i tried using a framelayout Mar 20 18:12:50 what happened Mar 20 18:12:53 same Mar 20 18:12:58 ill try again Mar 20 18:13:00 thats really weird Mar 20 18:13:08 Is there a way to "view stack" in Eclipse? While debugging Eclipse opens tab "Source not found" and gone ... Mar 20 18:13:08 did it still have the merge though Mar 20 18:13:44 CallumTaylor: perhaps its getting sized to match_parent before it the usual button size and the rest of the window is not getting redrawn Mar 20 18:13:52 possibly Mar 20 18:14:10 maybe its because of the getClipBounds Mar 20 18:14:17 try implicitly setting the rect Mar 20 18:14:25 to like 0, 0, 100, 100 or something Mar 20 18:14:38 nope Framelayout does the same… it does display it right after initial draw, BUT when i click the button the button draws that red background Mar 20 18:15:02 try setting the rect Mar 20 18:15:44 well i have a fix for this issue but i really don't like that one… if i draw it into a bitmap then i can set it as setBackgroundDrawable but this really sucks Mar 20 18:15:56 plan_rich: what are you trying to do? Mar 20 18:16:07 http://www.tiikoni.com/tis/view/?id=587770c Mar 20 18:16:14 checkout the red border at the button Mar 20 18:16:16 yeah i wouldent do that Mar 20 18:16:21 plan_rich: ok? Mar 20 18:16:26 it should not be there Mar 20 18:16:42 can anyone suggest me a good (clear) book to start programming for android? i know java quite well but nothing at all of sql, xml, opengl... i want to focus on videogames Mar 20 18:16:43 here my xml and java code: Mar 20 18:16:45 but your custom view code draws a red rectangle right? Mar 20 18:16:55 http://pastebin.com/hnyx4P58 Mar 20 18:16:58 http://pastebin.com/x9uJ7XhJ Mar 20 18:17:10 romainguy: yeah Mar 20 18:17:20 i think its drawing the rect twice because the bounding rect is changing Mar 20 18:17:32 you are using getClipBounds() Mar 20 18:17:38 that's not what you want Mar 20 18:17:40 thought so Mar 20 18:17:54 ok Mar 20 18:18:12 instead simply use 0,0,getWidth(),getHeight() Mar 20 18:18:14 but isn't clip bounds the rect that the view gets for drawing? Mar 20 18:18:19 ok ill try that Mar 20 18:18:22 can anyone suggest me a good (clear) book to start programming for android? i know java quite well but nothing at all of sql, xml, opengl... i want to focus on videogames Mar 20 18:18:23 yes it is Mar 20 18:18:28 but it can be smaller than the view Mar 20 18:18:33 in your case Mar 20 18:18:37 when you press the button Mar 20 18:18:41 the view behind the button has to redraw Mar 20 18:18:51 and the clip bounds are set to the size of the button Mar 20 18:19:01 you see the red rectangle only after pressing the button right? Mar 20 18:19:07 romainguy: wow thx it worked Mar 20 18:19:10 yeah Mar 20 18:19:15 yep that's why Mar 20 18:19:34 thx alot! Mar 20 18:19:43 this drove me crazy the last week Mar 20 18:19:47 i suggested it first ._. Mar 20 18:19:52 and also thx CallumTaylor Mar 20 18:19:56 ^^ Mar 20 18:20:35 hello? anyone there? Mar 20 18:20:41 no Mar 20 18:20:48 oh.. ok Mar 20 18:20:50 :) Mar 20 18:20:54 XD Mar 20 18:24:14 ricvail: well you could try the http://nehe.gamedev.net/ lessons Mar 20 18:24:31 xml and sql should not be the problem Mar 20 18:25:21 and you can try jmonkey engine. it makes developing 3d games simpler Mar 20 18:25:57 Unity too Mar 20 18:26:15 CallumTaylor|Awa, http://pastebin.com/GrewxCZ0 Mar 20 18:27:08 so what is it you wanted to do Mar 20 18:27:25 oh Mar 20 18:27:30 you've made them in seperate files Mar 20 18:27:38 ok sec Mar 20 18:27:58 whatabout that android game framework Mar 20 18:28:15 hm tricky one Mar 20 18:28:42 can you call getActivity() in the service? Mar 20 18:28:44 there is http://www.andengine.org/ Mar 20 18:28:53 or is that method not available Mar 20 18:28:59 in a service? no Mar 20 18:29:25 CallumTaylor|Awa: you trying to call back from a service to an activity? Mar 20 18:29:35 DJTachyon stiggpwnz is Mar 20 18:29:39 wb DJTachyon Mar 20 18:29:41 thx Mar 20 18:29:45 well you can bind to services Mar 20 18:29:52 trying to call a method from the service to his activity t update the UI Mar 20 18:29:54 or if it is non-time critical, you can broadcast Mar 20 18:30:03 do you want to help him out? Mar 20 18:30:08 ive never done it before so I have no idea Mar 20 18:30:16 http://pastebin.com/GrewxCZ0 Mar 20 18:30:18 thats his code so far Mar 20 18:30:38 is this a media player? Mar 20 18:30:42 yes Mar 20 18:30:42 running in a background service? Mar 20 18:30:44 ahh Mar 20 18:30:46 yes Mar 20 18:30:48 howdy Mar 20 18:30:49 well i would bind to the service Mar 20 18:30:51 cya guys tomorrow Mar 20 18:30:54 and poll it Mar 20 18:30:55 from the activity Mar 20 18:31:10 anyone here trying to use the new APK Expansion Files library Mar 20 18:31:11 thats what my dj app does Mar 20 18:31:35 stiggpwnz: http://developer.android.com/guide/topics/fundamentals/bound-services.html Mar 20 18:31:38 DJTachyon, I did it, I can now call my Service methods from inside of Activity Mar 20 18:31:39 dantheman: whats that? Mar 20 18:32:16 stiggpwnz: well you could setup an interface if you really need to call back for some reason Mar 20 18:32:20 monsti: http://developer.android.com/guide/market/expansion-files.html Mar 20 18:32:30 stiggpwnz, or use broadcasts Mar 20 18:32:33 yeah Mar 20 18:32:38 michaelnovakjr: thats what i said first Mar 20 18:32:42 DJTachyon, but now I need to update my Activity's UI from the service - call my Activity's methods from the Service Mar 20 18:32:50 stiggpwnz: why? Mar 20 18:32:51 monsti: I'm trying to get my building server up to I can link in the libraries to ant Mar 20 18:33:00 stiggpwnz: what do you need to update? Mar 20 18:33:04 stiggpwnz, if you need to update the UI broadcasts are best Mar 20 18:33:19 michaelnovakjr: yeah i guess it depends on how time critical/fast it needs to be Mar 20 18:33:28 monsti: but I keep getting errors from ant complaining about the google supplied libs Mar 20 18:33:29 DJTachyon, true Mar 20 18:33:31 mine has to update every 100th of second Mar 20 18:33:33 :P Mar 20 18:33:45 so my UI polls the service Mar 20 18:33:53 that makes sense Mar 20 18:33:54 DJTachyon, artist name, song name, progress bar and song's time Mar 20 18:34:21 that could go either way Mar 20 18:34:31 but im bias to polling from the activity Mar 20 18:34:43 if it needs to update to a second or less accuracy Mar 20 18:34:47 stiggpwnz, why not look at the music app source? Mar 20 18:34:58 it does exactly this Mar 20 18:35:07 yup Mar 20 18:35:15 michaelnovakjr, I don't know where to get it Mar 20 18:35:15 should be a perfect example Mar 20 18:35:17 http://source.android.com Mar 20 18:35:21 stiggpwnz: have you looked at broadcasts/broadcast receivers? Mar 20 18:35:30 or you can probably find a mirror on Github of the music project Mar 20 18:35:45 stiggpwnz: have you looked at the source to the android media player? Mar 20 18:35:47 anyone? Mar 20 18:35:56 stiggpwnz: http://developer.android.com/reference/android/content/BroadcastReceiver.html Mar 20 18:36:07 DJTachyon, I think they're slow for constant UI updates Mar 20 18:36:18 stiggpwnz: okay then .. bind to the service from the activity Mar 20 18:36:37 stiggpwnz: and poll the methods in the service using a runnable Mar 20 18:37:05 start and stop the runnable when onresume/onpause Mar 20 18:37:21 DJTachyon, I don't even know how to make that, will look for the mediaplayer source... Mar 20 18:37:54 stiggpwnz: a runnable? Mar 20 18:37:57 I'm using list.getBackground().setAlpha(180) to make my ListView see through but whenever I start scrolling the list it messes up and I can't see through it. I have had this issue before with basic lists and color issues when scrolling but I fixed it by setting the cache on the list. Mar 20 18:38:07 That doesn't work, anyone else have another idea? Mar 20 18:38:12 Madhatt5r, cacheColorHint Mar 20 18:38:33 stiggpwnz: use a handler Mar 20 18:38:34 I'll give it another shot. Mar 20 18:38:40 DJTachyon, the whole thing with binding activity to service Mar 20 18:38:49 Madhatt5r, also make sure that the activity background and listview background are in sync Mar 20 18:38:55 if that is what you are trying to do Mar 20 18:39:07 stiggpwnz: ohh Mar 20 18:39:17 stiggpwnz: http://developer.android.com/guide/topics/fundamentals/bound-services.html Mar 20 18:39:37 stiggpwnz: you can bind an activity to a service so that the activity can call service methods directly Mar 20 18:40:22 Well okay so the list has a basic gray background, and then I set the alpha on the list programmatically giving it kind of a clear grey. Mar 20 18:40:34 DJTachyon, I did that, now i need to bind a service to an activity and call activity's methods from service Mar 20 18:40:43 I am not sure if that is what you mean by sync with the background activity. Mar 20 18:41:05 stiggpwnz: DUDE Mar 20 18:41:11 stiggpwnz: listen to me .. YOU CANT Mar 20 18:41:39 DJTachyon, ...already serching for mediaplayer sources.. Mar 20 18:41:40 stiggpwnz: use a thread/runnable/loop in the activity to call the service say 10 times a second and update your UI Mar 20 18:41:45 <[Pi]> ok I finally (1) installed eclipse on my MacBook, (2) help -> install new software -> the android bobbins, which then prompted to automatically install the SDK. so I think I'm ready to try and get a hello world app running on my Samsung. what's my best way forward now? Mar 20 18:41:57 stiggpwnz: what if your activity isnt there? if it is closed? your app would crash Mar 20 18:42:16 stiggpwnz: you can only talk to the activity from the service using broadcasts Mar 20 18:42:20 DJTachyon, i will check ofcourse Mar 20 18:42:24 michaelnovakjr: Just doing the cacheColorHint(Color.alpha(180)) works perfect. Thanks. Mar 20 18:42:31 stiggpwnz: my DJ app polls the service exactly like im talking about Mar 20 18:42:44 [Pi]: are you in a new workspace in eclipse? Mar 20 18:42:53 Madhatt5r, np Mar 20 18:43:00 stiggpwnz: go see for yourself: https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntableFree Mar 20 18:43:06 cool http://www.fiercedeveloper.com/story/linux-33-integrates-android-kernel-code/2012-03-19 Mar 20 18:43:33 not cool http://www.h-online.com/open/news/item/Android-fragmentation-dampens-developer-interest-1475578.html Mar 20 18:43:34 hey g00s, long time no speak Mar 20 18:43:42 hey Napalm holy cow :) Mar 20 18:43:45 yea looks like theres a promising future :) Mar 20 18:43:56 romainguy: any idea why my repo sync is crapping out? Mar 20 18:44:03 romainguy: any server issues? Mar 20 18:44:21 DJTachyon: I guess because an error happened Mar 20 18:44:27 (answer as helpful as the question ;-) Mar 20 18:44:51 romainguy: lol fair enough, ive wiped my repo .. and tried different number of threads .. and one error or another happens Mar 20 18:45:02 romainguy: http failures, etc Mar 20 18:45:34 <[Pi]> Napalm: http://cl.ly/FA4G <-- not sure. should I create a new package? Mar 20 18:45:36 error: RPC failed; result=35, HTTP code = 0 Mar 20 18:45:36 error: gnutls_handshake() failed: A TLS packet with unexpected length was received. while accessing https://android.googlesource.com/platform/external/jhead/info/refs Mar 20 18:45:36 fatal: HTTP request failed Mar 20 18:45:43 ugh Mar 20 18:45:58 DownloadError: android.googlesource.com: Mar 20 18:45:58 Q: Is it possible to terminate app running on the phone from DDMS? Mar 20 18:46:02 looks like something is wrong with the server Mar 20 18:46:18 silur: click the big red stop button at the top Mar 20 18:46:18 romainguy: okies .. just getting a sanity check .. Mar 20 18:46:22 lol Mar 20 18:46:34 @romainguy, i don't have that one Mar 20 18:46:40 o_O Mar 20 18:46:42 stiggpwnz: you do not bind a service to an activity Mar 20 18:46:45 [Pi]: for a start close the crappy welcome panel... it looks like you dont have the ADT plugin installed into eclipse.. that should be your next stop Mar 20 18:46:50 @romainguy, sorry, got it Mar 20 18:46:51 DJTachyon: I'm just skimming my scrollback, and what on earth is this supposed to mean? 14:48 < DJTachyon> stiggpwnz: you can only talk to the activity from the service using broadcasts Mar 20 18:46:55 but if you want, egister and unregister the activity as some sort of listener Mar 20 18:47:18 Google Market APK Expansion has anyone played with this? Mar 20 18:47:20 evancharlton: or an interface Mar 20 18:47:20 make it implement something like NoobWatcherInterface Mar 20 18:47:30 i already mentioned an interface way back Mar 20 18:47:37 broadcasts, interface, binding Mar 20 18:47:39 <[Pi]> Napalm: I think I have it... I followed this page: http://developer.android.com/sdk/eclipse-adt.html#installing Mar 20 18:48:04 <[Pi]> oh I haven't configured it yet Mar 20 18:48:06 you have to setup a lot of error handling to detect if the activity is alive otherwise Mar 20 18:48:16 DJTachyon, mikedg , evancharlton I don't know how to implement that Mar 20 18:48:48 paypal me $20 and ill do it when i get a chance Mar 20 18:49:04 or send me $50 and I'll do it now Mar 20 18:49:11 $100 for yesterday Mar 20 18:49:19 haha Mar 20 18:49:27 that is if someone actually answers me Mar 20 18:49:32 might aswell send me $10 just for the fun of it Mar 20 18:49:43 stiggpwnz: http://developer.android.com/reference/android/app/Service.html#LocalServiceSample Mar 20 18:49:45 dantheman: i think suffice to say .. no Mar 20 18:49:46 quit Mar 20 18:49:51 fuck Mar 20 18:50:00 DJTachyon: I think google pushed a lib with errors Mar 20 18:50:06 stiggpwnz: there's a sample you can pretty much just copy and paste and ignore all of the terrible advice in here :) Mar 20 18:50:11 DJTachyon: I can't get ant to build with the libs linked in Mar 20 18:50:20 dantheman: yeah im having major issues Mar 20 18:50:33 dantheman: 100mbit connection does me no good Mar 20 18:50:42 keeps complaining about Invalid file: /etc/android-sdk-linux_86/extras/google/market_apk_expansion/zip_file/build.xml Mar 20 18:50:46 hi all Mar 20 18:50:48 its freezing on * [new tag] android-sdk-adt_r16.0.1 -> android-sdk-adt_r16.0.1 Mar 20 18:50:53 on my sync Mar 20 18:50:57 shit Mar 20 18:51:05 any actual GOOGLE people here Mar 20 18:51:14 romainguy: *cough* Mar 20 18:51:29 dantheman: he already confirmed something looks b0rked Mar 20 18:51:30 otherwise I'll go back channels through my contacts Mar 20 18:51:36 dantheman: post here: http://groups.google.com/group/android-building Mar 20 18:51:43 (2:46:05 PM) romainguy: looks like something is wrong with the server Mar 20 18:52:20 DJTachyon: well I already have the update Mar 20 18:52:20 is it possible to animate a LinearLayout to popup when I want ? Mar 20 18:52:20 repo sync seems to work fine for me... Mar 20 18:52:28 i just synched the whole repo too Mar 20 18:52:30 worked great Mar 20 18:52:36 >_> Mar 20 18:52:36 if your network has some sort of proxy it can screw up git sync Mar 20 18:52:36 your box is busted Mar 20 18:52:42 mikedg: lies Mar 20 18:52:54 pfn: wiped out the whole repo from scratch? Mar 20 18:53:02 i just telnetted to my windows imac at home and did a full refresh about an hour ago Mar 20 18:53:06 evancharlton, finally someone got what i wanted to do, thanks alot! Mar 20 18:53:21 mikedg: master? Mar 20 18:53:35 yeah Mar 20 18:53:38 hmm Mar 20 18:53:46 stiggpwnz: everyone else got what you wanted to do, but you couldnt be bothered searching for page with info for youself :P Mar 20 18:53:51 *yourself Mar 20 18:53:54 ill try it again Mar 20 18:53:57 wtf why are you trying to pull the source Mar 20 18:53:57 maybe something just broke Mar 20 18:54:10 dantheman: to build it? Mar 20 18:54:17 lulz Mar 20 18:54:22 glhvdd Mar 20 18:54:26 dantheman: huh? Mar 20 18:54:31 glhfdd Mar 20 18:54:33 sorry Mar 20 18:54:35 huh? Mar 20 18:54:41 good luck.... Mar 20 18:54:43 good luck have fun don't die Mar 20 18:54:48 hehe Mar 20 18:54:48 :) Mar 20 18:54:55 dantheman: ive built the source 100's of times Mar 20 18:54:58 sorry I used to build the source for my last day job Mar 20 18:55:01 DJTachyon, I normally don't wipe it from scratch, that's just stupid Mar 20 18:55:07 dantheman: and flashes my nexus one, nexus s, and galaxy nexus Mar 20 18:55:09 only if I'm setting up a new box Mar 20 18:55:12 DJTachyon: I was on the MIPSDroid team Mar 20 18:55:14 pfn: yeah it was a new VM Mar 20 18:55:26 DJTachyon, anyway, from scratch or not, generally should make no difference Mar 20 18:55:30 yeah Mar 20 18:55:34 same http calls for update vs. first fetch Mar 20 18:55:40 maybe its just stupid virtualbox Mar 20 18:55:45 going to try my VMWare VM Mar 20 18:55:47 so you have a 16 core beast to build ICS Mar 20 18:56:00 otherwise you gotta sit around for like what 4-6 hours Mar 20 18:56:12 dantheman: 12 core, 32gb of ddr3-1866, 550MB/sec SSD Mar 20 18:56:15 it takes 2 hours on my laptop dan82au Mar 20 18:56:24 MIPS android sucks Mar 20 18:56:24 dantheman: 1.5 hours on my laptop Mar 20 18:56:25 DJTachyon, anyway, tshark port 443 then do the repo sync Mar 20 18:56:28 for like 99 reasons Mar 20 18:56:31 and a bitch aint one Mar 20 18:56:34 DJTachyon: really? Mar 20 18:56:48 DJTachyon, my guess is that you have nat/host-only/etc. messed up in the vm Mar 20 18:56:54 dantheman: yeah, RAID0 Hard Drives, i7-Quad Extreme CPU, 16GB of RAM Mar 20 18:56:57 then they must have made changes in ICS to make it build faster Mar 20 18:56:58 dantheman: and thats in a VM Mar 20 18:57:01 nice box Mar 20 18:57:10 i7 extremes are so expensive :( Mar 20 18:57:12 2.3 and 2.2 took forever Mar 20 18:57:17 dantheman: ics is longer Mar 20 18:57:19 but on my i7 22 mins Mar 20 18:57:24 :p Mar 20 18:57:32 Q: Why would Log.d (...) suddenly stop posting messages to LogCat? (emulator and real phone) Mar 20 18:57:43 silur: your app crash? Mar 20 18:57:47 silur: it's failing before it gets to log.d? Mar 20 18:57:48 silur, it's not getting called, or you filtered the messages out Mar 20 18:57:53 dantheman, no works fine Mar 20 18:57:59 there are also some tags that don't show up in logcat for some reason Mar 20 18:58:01 silur: check your exceptions Mar 20 18:58:04 pfn: yeah just got the upgrade, its sexy Mar 20 18:58:06 ^^ Mar 20 18:58:09 I think someone came across Log.D("SMS", ...) Mar 20 18:58:21 silur use log.info Mar 20 18:58:21 pfn: Water Cooled i7-3930k @ 4.2Ghz Mar 20 18:58:29 silur: invisible ink Mar 20 18:58:33 lulz Mar 20 18:59:00 Anyone know a good way to get the relative Rect of a view so I can perform a hit test on it? As I drag my finger across views I am trying to highlight them. It works perfectly except for view like RadioGroup. It doesn't highlight the individual RadioButtons because I can't get their relative Rect so it doesn't think that the touch is over that view.. Mar 20 18:59:03 water cooled, overkill Mar 20 18:59:03 Anyone have any ideas? Mar 20 18:59:30 pfn: actually these 2011 Pin Intel's dont come with coolers Mar 20 18:59:38 pfn: intel actually offers a water cooler now Mar 20 19:00:00 pfn: https://plus.google.com/u/0/100541221646766109329/posts/SWBvz33pu7s Mar 20 19:00:15 hi Mar 20 19:00:35 I see Mar 20 19:00:41 I need a nyc-level salary to afford those kinda toys Mar 20 19:00:43 :p Mar 20 19:00:46 haha Mar 20 19:01:01 Napalm, fair enough Mar 20 19:01:03 dantheman, neither Log.i(...) nor Log.d(...) are reflected in LogCat Mar 20 19:01:22 ugh that picture is blurry Mar 20 19:01:28 at last :) found a nice place to guide my self to better android development Mar 20 19:01:38 * pfn has an old i7 920 in a haf with 18gb and 6 hard drives Mar 20 19:01:39 silur: um then are you doing it right Mar 20 19:01:41 <[Pi]> http://developer.android.com/resources/tutorials/hello-world.html <-- when I click ' create AVD ' as per step six, eclipse console gives me error: [2012-03-21 01:56:55 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder. Mar 20 19:01:42 and a $50 gpu Mar 20 19:01:43 :) Mar 20 19:01:47 <[Pi]> how to fix this? Mar 20 19:01:57 The intel cooler doesn't look at that great though. Mar 20 19:02:02 silur: Log.i(TAG, MESSAGE) Mar 20 19:02:04 Might as well go with a cosair one. Mar 20 19:02:12 [Pi]: do you have a android device? Mar 20 19:02:28 reservoir goes on back of the case? how weird Mar 20 19:02:32 <[Pi]> Napalm: Yes, but this step is for creating a virtual device IIUC Mar 20 19:02:41 pfn: I have a i7-940xm, 16gb, raid0 hd, quadro 3800m in my work laptop .. battery lasts 45 min, and it weighs 12 pounds :P Mar 20 19:03:05 dantheman, i know - it worked before.... Mar 20 19:03:06 mikedg: has seen be slowly blow out my spine Mar 20 19:03:09 same code Mar 20 19:03:11 seen me* Mar 20 19:03:13 indeed Mar 20 19:03:51 [Pi]: debig with the device, using the emulator is like pulling your teeth out with pliers Mar 20 19:03:58 SURREALISM Mar 20 19:03:58 You have two giraffes. Mar 20 19:03:58 The government requires you to take harmonica lessons. Mar 20 19:04:24 [Pi]: you can do development on a hardware device. If you can, you should do so; it's much faster than the emulator. Mar 20 19:04:53 you're discussing the raspberry pi? Mar 20 19:04:57 or wha... oh Mar 20 19:05:03 nvm Mar 20 19:05:04 cya Mar 20 19:07:23 man if this is a virtualbox thiing, ill be annoyed .. i really want to compile with all 12 cores Mar 20 19:08:13 vmware is stingy with the cores Mar 20 19:08:37 DJTachyon: how many cores are in your machine? Mar 20 19:08:43 DJTachyon, vbox is simple, setup the correct network adapters Mar 20 19:08:53 readme: logical 12 (6 physical) Mar 20 19:08:59 OS? Mar 20 19:09:08 Win64 host, kubuntu VMs Mar 20 19:09:11 DJTachyon, if you don't setup the correct network adapters, then you don't get internet Mar 20 19:09:16 DJTachyon: how have you got the network setup? Mar 20 19:09:24 pfn: well i get the internet, its just crapping out Mar 20 19:09:27 id' suggest a bridge Mar 20 19:09:31 hmm Mar 20 19:09:44 yeah vmware just synced fine .. but it was a minor sync Mar 20 19:10:38 giving bridge a shot Mar 20 19:10:53 main problem is ubuntu being stupid Mar 20 19:11:00 if you have multiple ifaces, ubuntu doesn't bring them all up Mar 20 19:11:07 <[Pi]> ok thx I will try on a device Mar 20 19:11:09 at least that's how it behaves on my 11.10 Mar 20 19:11:19 im on 10.04 .. Mar 20 19:11:31 anything newer has always given me grief Mar 20 19:11:39 with respect to android Mar 20 19:11:39 yeah, I haven't been able to build ics on 11.10 Mar 20 19:11:41 I just gave up Mar 20 19:11:46 hehe Mar 20 19:11:53 I have no desire to run my own rom Mar 20 19:12:04 not to mention, google hasn't even pushed android-4.0.4_r1 yet Mar 20 19:12:11 pfn: yeah we actually have needs for it.. surprisingly Mar 20 19:12:57 should i still tshark after switching adapters? Mar 20 19:13:06 sure Mar 20 19:13:27 dont have the package, whats the name? Mar 20 19:13:49 nvm ;) Mar 20 19:14:31 pfn: says no interfaces where a capture can be done Mar 20 19:14:49 i havented used tshark before Mar 20 19:14:52 -ed Mar 20 19:15:18 well im going to go for it anyway for now Mar 20 19:15:57 11.5MiB/sec .. nice .. lets see if it holds Mar 20 19:17:31 Where do you guys recommend storing SDK on Linux Mar 20 19:18:00 idk, /opt? Mar 20 19:18:02 /var/lib? Mar 20 19:18:05 legov: what distro? Mar 20 19:18:11 Debian Mar 20 19:18:11 /urmomlawl Mar 20 19:18:21 yah it doesnt really matter Mar 20 19:18:24 legov: /opt/android/sdk Mar 20 19:19:12 is it just the tools directory Mar 20 19:19:16 or do i need the others too? Mar 20 19:19:26 true, but its nice to be convenient location that falls in line with the distro Mar 20 19:19:36 hello? can anyone help me? Mar 20 19:19:46 Napalm: bridge seems to be fixing it .. damn passthrough drivers Mar 20 19:20:06 legov: you need everything in the sdk? so you would have /opt/android/sdk/tools and /opt/android/sdk/platform_tools and so on Mar 20 19:20:27 DJTachyon: sorry, i forgot to chat to you about vbox, been busy Mar 20 19:20:32 np Mar 20 19:21:25 where did you guys learnt programmming for android? Mar 20 19:21:28 ricvail: I'm pretty sure plan_rich answered you Mar 20 19:21:40 ricvail: the intarwebz Mar 20 19:21:42 ricvail: there's no "HOW 2 MAEK COMPUTAR GAEM" book Mar 20 19:21:49 hey any backpackers in here? Mar 20 19:21:54 well there are some but they're of dubious value Mar 20 19:22:03 setting up a new linux server, anyone want to suggest some names Mar 20 19:22:09 want to lean about SQL? Stop in #sqlite or something. Mar 20 19:22:17 its like choosing a baby name, its rediculess Mar 20 19:22:19 ricvail: i have one for sale, just send a money order to the following address Mar 20 19:22:23 Want to learn about gles? pick up a book about gles. Mar 20 19:22:24 you want something thats unique but not forgettable Mar 20 19:22:25 :D Mar 20 19:22:40 Napalm: Blue Ivy? Mar 20 19:23:15 nice, added to the list Mar 20 19:23:27 ricvail: steps, do not proceed in any other order than this: 1. learn java 2. learn android sdk 3. make sure you know high school math 4. learn game dev for android. Mar 20 19:23:39 a singluar word or one that can be expressed so is always better tho Mar 20 19:23:56 readme: nice Mar 20 19:24:03 Napalm: eh https://www.google.com/webhp?&ion=1#q=blue+ivy Mar 20 19:24:21 ricvail: don't PM people without asking. It's rude and people on IRC are frequently AFK. Mar 20 19:24:25 readme hi Mar 20 19:24:25 I am fighting with android UI design Mar 20 19:24:33 Napalm: gotta educate these youths Mar 20 19:24:50 lov: sorry, I'm not used to irc channels Mar 20 19:24:52 readme: indeed Mar 20 19:25:00 aLeSD: yeah a lot of new info in android design world right now to learn Mar 20 19:25:01 aLeSD: tried watching the UI google o/o vids? Mar 20 19:25:18 readme: http://www.shirttrader.com/shirtimages/can-t-touch-this-equation_2.jpg Mar 20 19:25:28 I am designing for API 10 Mar 20 19:25:38 old school Mar 20 19:25:39 haha Mar 20 19:25:39 DJTachyon: i'd touch it Mar 20 19:25:40 :D Mar 20 19:25:44 haha Mar 20 19:26:11 readme: ok, I already did steps 1 and 3. It's the android sdk I'm having problems with Mar 20 19:26:29 ricvail: what is it that you are having a problem with? Mar 20 19:26:45 ricvail: start here http://developer.android.com/guide/basics/what-is-android.html Mar 20 19:27:01 ricvail: then read the rest of the dev guide Mar 20 19:27:05 readme: I tried with the android dev site, both the dev resources and the tutorials Mar 20 19:27:09 ricvail: did you teach yourself java or learn in a class? self-learning requires a lot of patience. Mar 20 19:27:18 so learn some patience Mar 20 19:27:20 lol Mar 20 19:27:28 readme: self-learning Mar 20 19:27:31 http://mediacdn.snorgcontent.com/media/catalog/product/p/i/pi_f_fullpic_1.jpg Mar 20 19:27:38 ricvail: why do you think you are not understanding the sdk? Mar 20 19:27:40 serious question Mar 20 19:28:20 readme: ok, for example: they throw in that "an intent is used to send data between activities" Mar 20 19:28:43 can I call setContextView(...) more times inside an activity ? Mar 20 19:28:58 ricvail: don't worry about how Intent is implemented yet. Just know that it is used to pass data between activities and other components. Mar 20 19:28:58 readme: or wathever, but they don't take their time to explain what exactly an intent is, ok? Mar 20 19:29:16 read the bit about intents, there's a guide. treat them as a black box. Mar 20 19:29:21 what I am thinking is change the UI by setContextView ... what about ? Mar 20 19:29:22 dont try to think about how they work inside yet Mar 20 19:29:55 readme: yeah, but they added some examples, and it looked like one can just send some predefined intents, or not? Mar 20 19:30:12 <[Pi]> http://developer.android.com/resources/tutorials/hello-world.html <-- this tutorial doesn't seem to covre actually deploying the app onto a device. How do I do this? Mar 20 19:30:22 ricvail: yeah, some intents will start things on the phone, like the dialer, for example Mar 20 19:30:26 check out the openintents.org website Mar 20 19:30:30 aLeSD: i suppose you could but it could leave the activity in a inconsistent state Mar 20 19:30:39 ok bad way Mar 20 19:30:50 Napalm, so I have to lauch a new activity ? Mar 20 19:30:53 [Pi]: hit > Mar 20 19:31:29 [Pi]: if you have drivers installed, and have the phone set to allow debugging, you just hit the run in eclipse Mar 20 19:31:49 [Pi]: and it will list the phone, along with whatever emulators you have setup Mar 20 19:32:04 ok ... is there a book that explain the stuffs I am trying somewhere ? Mar 20 19:32:08 aLeSD: i suppose so, depends on what your trying to achieve and why Mar 20 19:32:20 [Pi]: you can query the devices detected with "adb devices" from the command line, see: http://developer.android.com/guide/developing/tools/adb.html Mar 20 19:32:24 aLeSD: what are you trying to do exactly? Mar 20 19:32:33 [Pi]: if no devices come up, your drivers/adb is not setup correctly Mar 20 19:32:38 ok, so I will have another try with the dev resources on the android dev website... is there anywhere i can download it from to read it offline? Mar 20 19:32:49 I believe it's available in the sdk manager Mar 20 19:32:54 offline .. what is this word? Mar 20 19:32:55 <[Pi]> DJTachyon: How do I go about installing drivers and setting the phone to allow debugging? I guess I need to get drivers from the Samsung website and look around the phone's settings to allow debugging...? Mar 20 19:33:02 ricvail: it comes with the sdk Mar 20 19:33:11 the documentation, but i haven't seen the resources Mar 20 19:33:28 ricvail: like what resources? Mar 20 19:33:31 [Pi]: http://lmgtfy.com/?q=android+adb+setup Mar 20 19:33:47 Napalm: say, "what is an activity?" Mar 20 19:34:09 Napalm, the user start the activity ... he presses a button that open a ListView with all options ... it press one option . returning back to the main layout Mar 20 19:34:17 ricvail: http://developer.android.com/guide/topics/fundamentals/activities.html Mar 20 19:34:42 Napalm: yeah, the dev guide Mar 20 19:34:46 :) Mar 20 19:34:50 Napalm: pfn: repo sync worked Mar 20 19:34:54 nice Mar 20 19:34:59 DJTachyon: better tell romainguy Mar 20 19:35:13 ricvail: googling android dev guide offline turned up some pdf copies, even Mar 20 19:35:18 first and second results. Mar 20 19:35:24 Napalm, I thought about setContextView , now to create a new activity ... but I think it's too much Mar 20 19:35:25 lrn2google Mar 20 19:35:57 romainguy: looks like it was a virtualbox driver/bs issue Mar 20 19:36:07 "Consumer Reports says Apple's new iPad hits 116 degrees running games" … whoops Mar 20 19:36:21 readme:great, thank you Mar 20 19:36:33 aLeSD: you can start a ListActivity with startActivityForResult, or you can do a private dialog class and show that Mar 20 19:37:03 Napalm, the common way is start a new activity ? Mar 20 19:37:22 + Mar 20 19:37:38 ok Mar 20 19:37:41 who was talking about the ramdisk for compiling android? Mar 20 19:37:43 g00s: nice to shame them, but its also a shame when Android hardware vendors screw things up and we the android "software" community take the hit Mar 20 19:38:02 DJTachyon: me Mar 20 19:38:19 Napalm: everybody gets an equal dose of shame from me, I don't play favorites :) Mar 20 19:38:21 Napalm: whats the best way to go about that? Mar 20 19:38:31 DJTachyon: what os? Mar 20 19:38:38 Napalm: kubuntu 10.04 Mar 20 19:38:58 DJTachyon: http://www.vanemery.com/Linux/Ramdisk/ramdisk.html Mar 20 19:38:59 :D Mar 20 19:39:03 well .. right Mar 20 19:39:08 but just copy the source in there? Mar 20 19:39:08 hehe Mar 20 19:39:11 yea Mar 20 19:39:13 hmm Mar 20 19:39:19 basicly create a ramdisk partition and mount Mar 20 19:39:21 how big do you need now-a-days Mar 20 19:39:28 copy over the files Mar 20 19:39:29 ive given the VM 12 cores and 24GB of ram Mar 20 19:39:30 and compile Mar 20 19:40:56 need like 12 gb for the ramdisk Mar 20 19:40:59 Napalm: well the current master is taking like 10gb i think Mar 20 19:41:09 DJTachyon: what do you get when you ls -al /dev/ram* Mar 20 19:41:34 16 folders Mar 20 19:41:35 copy everything over minus.repo Mar 20 19:41:44 ok so you have the kernel ready Mar 20 19:41:51 ram0-ram15 Mar 20 19:41:57 so just mkdir /mnt/ramdisk Mar 20 19:42:25 hmm Mar 20 19:42:30 wait, this is saying its a boot flag Mar 20 19:42:34 im sure theres another way Mar 20 19:42:35 one moment Mar 20 19:43:17 # mkdir /tmp/ramdisk; chmod 777 /tmp/ramdisk Mar 20 19:43:18 # mount -t tmpfs -o size=256M tmpfs /tmp/ramdisk/ Mar 20 19:43:39 Hey guys anyway to reformat a simulators sd card? Mar 20 19:43:45 DJTachyon: thats not in a ram device tho Mar 20 19:44:20 Aquilas: through the settings menu? and img editor? Mar 20 19:44:39 Inside the simulator? Mar 20 19:44:52 i shall try that Mar 20 19:44:58 Aquilas: settings menu, privacy, wipe? Mar 20 19:45:05 Aquilas: depending on the os version Mar 20 19:45:15 Aquilas: could be under storage Mar 20 19:46:26 Napalm: hmm Mar 20 19:46:27 hm, good thing eclipse asks me to save changes before I close a tab. because I just tried to save my changes and it wouldn't save, even though there was a change, and both save icons were disabled. finally I saved it by closing the tab and being prompted to save :| Mar 20 19:46:52 DJTachyon: i think i got it Mar 20 19:46:54 sec Mar 20 19:47:19 DJTachyon: i just tried this on a crappy vm and it worked Mar 20 19:47:25 mkfs -q /dev/ram0 16384 ; 16mb Mar 20 19:47:30 mkdir /tmp/ramdisk Mar 20 19:47:34 mount /dev/ram0 /tmp/ramdisk Mar 20 19:47:46 now i have a 16mb ramdisk on /tmp/ramdisk Mar 20 19:48:30 Napalm: so why does everything say to do it the other way? Mar 20 19:48:53 wait i found it Mar 20 19:49:00 fs -q /dev/ram0 160000 Mar 20 19:49:07 reserves 16GB in ram0 Mar 20 19:49:42 *mkfs Mar 20 19:50:05 ... why not use tmpfs? Mar 20 19:50:16 because tmpfs prefers swap Mar 20 19:50:20 which has autoscaling and doesn't have to emulate a block device Mar 20 19:50:26 and iirc you can stop it from swapping Mar 20 19:51:05 how do I regenerate my R file if it's missing Mar 20 19:51:19 rebuild Mar 20 19:51:23 <[Pi]> ERROR: Application requires API version 15. Device API version is 10 (Android 2.3.5). <-- where do I change the API version? ( I take it this is the earliest OS version that the app will run on ) Mar 20 19:51:36 pfn: i can't cause it's causing errors since it's missing Mar 20 19:51:38 hmmm... seems there isn't an option to that, sorry Mar 20 19:51:42 bah Mar 20 19:51:45 so which should i use :P Mar 20 19:51:47 [Pi], set target=15, min=10 Mar 20 19:51:56 with 24gb to work with Mar 20 19:51:56 ghchinoy: clean the project Mar 20 19:51:59 oopsy Mar 20 19:52:04 gho5t: clean the project Mar 20 19:52:05 <[Pi]> pfn: where? Mar 20 19:52:20 [Pi], read d.android.com -> dev guide -> AndroidManifest Mar 20 19:52:30 pfn: Napalm: so verdict on a methodology? Mar 20 19:52:52 DJTachyon, either way works, but for some reason I recall /dev/ram having a limited size for making ramdisks Mar 20 19:53:00 [Pi]: in the AndroidManifest and right click on the project and choose properties>android and select the new version and press apply Mar 20 19:53:02 maybe those were old 2.x kernels Mar 20 19:53:05 DJTachyon: I fixed it Mar 20 19:53:13 dantheman: hmm? Mar 20 19:53:22 dantheman: me too Mar 20 19:53:25 pfn: thats what im looking at, trying to find some offical 3 docs Mar 20 19:53:44 So if anyone wants to build with ANT and use the new Market Place Expansion File Libs talk to me Mar 20 19:53:58 google did a piss poor job with the docs on this one Mar 20 19:54:09 so 12GB of ram for disk, and 12gb for building .. seems reasonable Mar 20 19:54:18 dantheman, don't you just use the .jar for market-licensing and done... Mar 20 19:54:28 pfn: yeah there is no jar Mar 20 19:54:32 I guess the resources needs to be packaged Mar 20 19:54:36 so you'd do aapt package... Mar 20 19:54:51 naw Mar 20 19:54:54 dantheman: what was it.. im curious Mar 20 19:55:01 i gave up on licensing .. just a pain .. im on pirate bay though .. i feel so proud Mar 20 19:55:05 :P Mar 20 19:55:20 sweet, advocating piracy Mar 20 19:55:29 evancharlton, as in his app is on piratebay Mar 20 19:55:30 DJTachyon: hehe Mar 20 19:55:37 yeah Mar 20 19:55:47 evancharlton: its way out of date, so its more just free advertising than anything Mar 20 19:55:51 ah Mar 20 19:56:05 free bugs, you mean? not sure if that's the best advertising Mar 20 19:56:07 Napalm: so you have to fix the included project.properties Mar 20 19:56:23 to point to the correct a dep for one lib Mar 20 19:56:29 well if people want a working, modern, feature rich copy, they either download the free one or buy the paid one Mar 20 19:56:36 then run ant to build each separately Mar 20 19:56:43 Napalm: didn't work Mar 20 19:56:47 still no R file Mar 20 19:57:10 does eclipse recognize your project as an android project Mar 20 19:57:10 DJTachyon: i think the people who pirate apps on tpb aren't the kind who will necessarily buy them anyway Mar 20 19:57:22 readme: fair enough Mar 20 19:57:25 DJTachyon: better they get it free there than leave a snotnosed review or something when they are upset they had to pay for it Mar 20 19:57:25 or just generate the *.properties files and generate the build.xml file Mar 20 19:57:28 readme: thats what the free version is for :P Mar 20 19:57:40 DJTachyon: "THIS HAS AN AD, NOT FREE, WTF, 1star" Mar 20 19:57:46 and then run android update project Mar 20 19:57:49 lol Mar 20 19:57:50 it's not generating anything Mar 20 19:57:53 this is why eclipse sucks Mar 20 19:57:59 Napalm: it is a PAIN IN THE ASS cause they don't tell you Mar 20 19:58:02 not to mention it's running extremely slow Mar 20 19:58:06 readme: well the free version kind of runs that interference now either way Mar 20 19:58:07 readme: still, that argument shouldn't be used to condone piracy. opportunity makes thieves Mar 20 19:58:12 readme: only the people that like the free version pay for it Mar 20 19:58:14 Napalm: they assume you are building with fucking eclipse Mar 20 19:58:19 hehe Mar 20 19:58:26 well that throws out remote builds Mar 20 19:58:29 :( Mar 20 19:58:37 pretty much Mar 20 19:58:38 which is what I do Mar 20 19:58:59 ssh+vim+ant done Mar 20 19:59:12 nice Mar 20 19:59:30 that is my workflow fuck eclipse (or any IDE for that matter) Mar 20 19:59:37 lol Mar 20 19:59:37 indeed Mar 20 19:59:40 generally how I build Mar 20 19:59:46 'cept I use sbt instead of ant now Mar 20 19:59:50 RobinB: it's just that if you're so ghetto fabulous that you have to pirate an android app, I'd be glad you're not the one leaving a review Mar 20 19:59:55 gotta uncomment every reference to R Mar 20 20:00:01 i do like the way of using build servers to customise each application download to the owner Mar 20 20:00:05 oops .. need openafs <_< Mar 20 20:00:07 like watermarking or some other way Mar 20 20:00:15 gho5t: make sure you are importing YOUR.PACKAGE.R Mar 20 20:00:16 gho5t, basically sounds like the project is no longer recognized as an android project Mar 20 20:00:23 gho5t: and not android.R Mar 20 20:00:26 gho5t, otherwise, you have an error in your xml files Mar 20 20:00:35 brb, food time Mar 20 20:00:37 look at the log view Mar 20 20:00:40 console view Mar 20 20:00:45 whatever the hell eclipse calls it Mar 20 20:01:13 dantheman: I am. as a matter of fact I have to uncomment the refernece to my R Mar 20 20:01:17 so this bitch will build Mar 20 20:01:44 uncomment your R Mar 20 20:01:50 why do you have your R commented out? Mar 20 20:01:53 do a clean Mar 20 20:01:59 go ant clean Mar 20 20:02:05 I said that I am commenting it out Mar 20 20:02:06 so it will build Mar 20 20:02:09 oh sorry you are on eclipse Mar 20 20:02:13 that won't help you Mar 20 20:02:15 already did a clean Mar 20 20:02:18 yeah you need your R Mar 20 20:02:18 gho5t, read all console and log windows Mar 20 20:02:21 you have an error in your xml Mar 20 20:02:26 commenting it out won't help Mar 20 20:02:32 make sure your project is properly detected as an android project Mar 20 20:02:38 course it will Mar 20 20:02:44 it's not building because it can't find it Mar 20 20:02:49 k generated now Mar 20 20:02:58 ctrl z for the win Mar 20 20:03:03 pfn: $5 says it won't run Mar 20 20:03:20 I think you are misunderstanding the problem Mar 20 20:03:25 no R file generated Mar 20 20:03:27 nothign will build Mar 20 20:03:30 references to it are broken Mar 20 20:03:32 project -> clean results in R being generated Mar 20 20:03:36 need to fix references Mar 20 20:03:40 again, I already did that Mar 20 20:03:42 what pfn said Mar 20 20:03:44 as Napalm suggested Mar 20 20:03:53 gho5t: screen shots Mar 20 20:03:54 you cleaned the wrong project or something, but no screenshare to indicate otherwise Mar 20 20:03:58 lol Mar 20 20:04:01 it cleaned all of them Mar 20 20:05:08 * dantheman facepalm Mar 20 20:05:33 it's running Mar 20 20:05:45 poll: on a large screen, do you display MORE content or BIGGER content Mar 20 20:05:51 you know, I do understand what you mean when you say clean Mar 20 20:05:54 and I did do it Mar 20 20:05:57 canadiancow|work, more Mar 20 20:05:58 but umm didn't work Mar 20 20:05:59 canadiancow|work: both Mar 20 20:06:02 so I guess that makes me a noob Mar 20 20:10:36 Napalm: pfn: yeah these ramdisks can't be dynamically resized Mar 20 20:10:45 http://e2enetworks.com/2008/10/25/linux-in-memory-filesystems-tmpfs-vs-ramdisk/ Mar 20 20:16:54 hi everybody Mar 20 20:20:11 i have some problems deleting an alarm. the alarm is first set in activity A. but by a checkbox it should be deletable in activity B. when i try to do this i create a pendingintent in activity B in the same way i did it in activity A. i do alarmmanager.cancel(pendingintent), but the alarm is not deleted... Mar 20 20:20:39 chris_cross: http://developer.android.com/reference/android/app/PendingIntent.html#FLAG_NO_CREATE Mar 20 20:21:08 chris_cross: you might be looking for FLAG_UPDATE_CURRENT or whatever Mar 20 20:21:27 i already tried this Mar 20 20:21:41 one moment, i show you the code Mar 20 20:21:45 y u no pastebin source? :) Mar 20 20:23:10 If I extend a view (LinearLayout) can I use custom attributes with it? Mar 20 20:23:20 Q: How come "Force Stop" button is enabled for application, yet it doesn't shows in Applications->Manage->Running ? Mar 20 20:23:22 hay guise my app crashes and all i do is set a textview can u help? Mar 20 20:23:56 canadiancow|work, check it for 'null' first before setting Mar 20 20:24:00 http://pastebin.com/iSNmYN9m Mar 20 20:24:07 gesman: it was sarcasm :P Mar 20 20:24:11 lol Mar 20 20:24:20 canadiancow|work: hold on let me get u a tutorial Mar 20 20:24:27 ahhh, i missed the beginning of convo Mar 20 20:24:34 there was no beginning Mar 20 20:24:39 http://www.droidblogspam.com/how-to-write-app-with-a-text-view.php Mar 20 20:25:15 ok, so anyone knows an answer on my Q? Mar 20 20:25:17 gho5t: yes. Mar 20 20:25:57 damn lint tells me to set layout_height=0 Mar 20 20:26:00 How come I can force-stop application that is not shown as running? Mar 20 20:26:03 and then i end up with a view 0px high Mar 20 20:26:14 doesn't it only tell you that when you're using layout_weight? Mar 20 20:26:20 which would cause the view to expand Mar 20 20:26:43 anybody had a look at my code? Mar 20 20:27:33 readme, one would assume... Mar 20 20:27:51 okay here goes nothing Mar 20 20:28:03 sometimes I just clear the problems out manually because they're old/wrong Mar 20 20:28:22 starting build at 4:28 Mar 20 20:28:56 http://pastebin.com/iSNmYN9m the alarm is not deleted.... don't know y Mar 20 20:29:12 anyone using android plot 0.5.0 ? Mar 20 20:29:18 hahaha Mar 20 20:29:33 pfn: Napalm: 100% cpu usage on all 12 cores, 26.7GB of ram in use Mar 20 20:29:41 DJTachyon: what are you building? Mar 20 20:29:49 canadiancow|work: android source master Mar 20 20:30:01 ah Mar 20 20:30:02 DJTachyon, awesome Mar 20 20:30:04 canadiancow|work: in a VM, on a windows host Mar 20 20:30:07 my app currently takes ~10 minutes to build Mar 20 20:30:15 DJTachyon i did that back in the donut days in like ~25 mins Mar 20 20:30:16 canadiancow|work: dx taking forever? Mar 20 20:30:20 evancharlton: not sure Mar 20 20:30:23 its like 8 lib projects Mar 20 20:30:26 and the main Mar 20 20:30:32 havent looked into it Mar 20 20:30:35 canadiancow|work: run with verbose logging Mar 20 20:30:38 we're allegedly getting SSD's Mar 20 20:30:39 dx takes forever on this app Mar 20 20:30:46 canadiancow|work: yeah the galaxy nexus image is like 650MB compiled.. so like 4 times the size at least Mar 20 20:31:10 canadiancow|work: well I have an SSD on this, but im using a 12GB ramdisk to compile Mar 20 20:31:11 anyway, modify $(which dx) to stick --num-threads=4 in there; it should help a bit Mar 20 20:32:27 whew my pc is cooking Mar 20 20:32:33 hallo Mar 20 20:32:35 can somebody help me with my problem? Mar 20 20:32:44 Anyone knows a way to programmatically/gracefully terminate application? Mar 20 20:32:53 gesman: finish() Mar 20 20:32:57 :D Mar 20 20:33:14 <[Pi]> I'm unabel to deploy to my android device because it is running gingerbread. Mar 20 20:33:17 DJTachyon, so you copied everything over less .repo? Mar 20 20:33:25 <[Pi]> sorry, hit the enter key by mistake Mar 20 20:33:25 pfn: yeah .. took about 4GB Mar 20 20:33:33 DJTachyon, thanks... it still leaves app available to "Force stop". Not sure why Mar 20 20:33:40 gesman: System.exit(0), but you really shouldn't be doing that. Mar 20 20:33:45 DJTachyon, yeah, you don't need .repo to build Mar 20 20:34:13 evancharlton, ok, i guess finish() would do then Mar 20 20:34:15 copied in 5 seconds :P Mar 20 20:34:17 [Pi], so set the min sdk in your app to support gingerbread Mar 20 20:34:29 <[Pi]> 'ERROR: Application requires API version 15. Device API version is 10 (Android 2.3.5).' <-- now I only installed the SDK for the latest OS, does this mean I need to go back and install an earlier SDK as well, or can I simply change the required OS version in the app settings? Mar 20 20:34:33 pfn: 500mb/sec into ramdisk Mar 20 20:34:36 this thing is crazy Mar 20 20:34:49 ssd is some hot shit Mar 20 20:35:02 yeah these corsair force 3 and samsung 830's are impressive Mar 20 20:35:09 finally rock solid, and fast as hell Mar 20 20:35:40 pfn: https://plus.google.com/u/0/100541221646766109329/posts/TtEggnsNbSg Mar 20 20:35:41 please have a look at http://pastebin.com/iSNmYN9m , i am trying to delete an alarm by creating an identical pendingintent and delete it with alarmmanager.cancel , but the alarm starts, so it is not deleted Mar 20 20:41:26 i need a printout time when this compile is done so i dont have to watch it :P Mar 20 20:43:01 [Pi]: Yes, change your minSdk to 10 Mar 20 20:43:18 [Pi]: or lower (but watch out for API incompatibilities!) Mar 20 20:43:32 whats wrong with my code? why are the pendingintents not identical? cause they are created in different activities? Mar 20 20:43:49 <[Pi]> evancharlton: I am trying to figure out how to set the min SDK for my app... Mar 20 20:44:15 DJTachyon, next time, "time make" Mar 20 20:44:29 pfn: oh cool Mar 20 20:44:29 DJTachyon, so you get the us/sy/id/wa times when it's done Mar 20 20:44:46 actually, I guess it's just wa/us/sy Mar 20 20:44:48 evancharlton: can you tell me? Mar 20 20:44:49 uh oh Mar 20 20:44:59 ram disk filled Mar 20 20:45:00 lol Mar 20 20:45:15 guess 12GB isnt enough Mar 20 20:45:43 is it possible to reduce the apk footprint of actionbarsherlock+compatlib? Mar 20 20:46:05 Ge0rG, proguard Mar 20 20:46:09 ^ Mar 20 20:47:09 anybody have a total compiled /out size on an android source build? Mar 20 20:47:31 nope Mar 20 20:47:47 DJTachyon, the alternative, symlink out back to your ssd Mar 20 20:47:53 or wherever Mar 20 20:47:57 <[Pi]> can anyone tell me how to set the minimum SDK level for my project? sorry for being stupid, this must be really trivial ( it is just one text field in Xcode ) but I can't see it Mar 20 20:47:57 hmm Mar 20 20:48:09 DJTachyon, figure out how big it'll be, then make your ramdisk big enough next time Mar 20 20:48:13 yeah Mar 20 20:48:30 [Pi], I told you how and where to set it, read d.android.com -> dev guide -> AndroidManifest.xml Mar 20 20:48:36 pfn: I have still +400kb after proguard :( Mar 20 20:48:38 how could I send a Sensor.class by an _Intent ? It is not parcelable neither serializable Mar 20 20:48:46 Ge0rG, that's reasonable Mar 20 20:48:54 pfn: my whole app is <500kb Mar 20 20:49:08 aLeSD: by its name. Mar 20 20:49:08 including the android-actionbar project Mar 20 20:49:10 then look it up by its name Mar 20 20:49:19 (assuming the peer receiving this intent knows of this class) Mar 20 20:49:19 Ge0rG, that's the cost of adding libraries... Mar 20 20:49:26 ok Mar 20 20:49:34 aLeSD, why would you send a sensor.class in an intent Mar 20 20:49:41 jasta: what are you using for an action bar these days, below 3.0 ? Mar 20 20:49:49 I have a selectActivity Mar 20 20:49:54 pfn: the main library I'm using in that app is an 1.2mb jar Mar 20 20:49:57 g00s: nothing. the world before 3.0 is dead to me. Mar 20 20:50:02 * g00s sighs Mar 20 20:50:08 i haven't had a need, actually Mar 20 20:50:19 actionbar for pre 3.0 is pretty lame :p Mar 20 20:50:22 i don't do much direct UI stuff these days Mar 20 20:50:22 pfn, it's called by the main activity to select the sensor the user wants Mar 20 20:50:25 i build platforms, mang. Mar 20 20:50:37 inner platforms? :D Mar 20 20:52:31 * g00s looks at platform stats again, and notices froyo + gb = practically everything Mar 20 20:52:55 so? that doesn't mean you should backport non-native UI elements Mar 20 20:53:54 anyway, there's actionbarsherlock Mar 20 20:54:01 why are you resisting so much :p Mar 20 20:54:11 anyone play with this yet ? https://github.com/ChristopheVersieux/HoloEverywhere Mar 20 20:54:53 que es de? Mar 20 20:55:03 * pfn ponders paying for aldiko Mar 20 20:55:19 what does paid offer? Mar 20 20:55:23 aldiko is nice tho Mar 20 20:55:36 just new features before it trickles down to the free version Mar 20 20:55:57 ahh Mar 20 20:55:59 $? Mar 20 20:56:06 $3 Mar 20 20:56:18 * Jug6ernaut say do it Mar 20 20:56:23 always nice to support developers Mar 20 20:56:33 * readme facepalm. i just banged my head against the wall thinking, why isn't the screen getting cleared. drawcolor(0)... 00's in alpha bits. derp. Mar 20 20:56:34 * Jug6ernaut says that a little biasestly hehe Mar 20 20:56:42 yeah, aldiko is one of the apps I use all the time Mar 20 20:56:54 * Jug6ernaut needs to use it more Mar 20 20:57:01 ./needs to read more Mar 20 20:57:02 I like ebooks Mar 20 20:57:02 lol Mar 20 20:57:08 me2 Mar 20 20:57:19 * pfn reads a lot on his gnex Mar 20 20:57:25 * Jug6ernaut just sold his gnex Mar 20 20:57:30 whyforyoudothat Mar 20 20:57:35 How much did you sell it for and what did you replace it with Mar 20 20:57:36 g00s, thank you so much for posting that holo everywhere link Mar 20 20:57:37 gnote Mar 20 20:57:45 cr5315: np Mar 20 20:57:48 really, you wanted the phablet Mar 20 20:57:48 heh Mar 20 20:57:49 sold for 1k? Mar 20 20:57:51 a g-note? Mar 20 20:57:52 :) Mar 20 20:58:05 Holo-ify ALL THE APPS Mar 20 20:58:06 lol phablet? Mar 20 20:58:16 all your apps r belong 2 me Mar 20 20:58:21 pfn: where do you get your ebooks from ? most of my technical ones are from oreilly, but for general stuff i'm pondering kindle or iBooks Mar 20 20:58:40 kindle is pretty nice Mar 20 20:58:46 ive bought few from it Mar 20 20:58:50 how do you git clone in eclipse? Mar 20 20:58:51 I generally pirate them, because I already have hard copies and I ain't gonna pay for them again Mar 20 20:58:56 cr5315: you can use egit Mar 20 20:59:01 but I recommend just using git on the console Mar 20 20:59:05 yeah Mar 20 20:59:05 cr5315 import from git Mar 20 20:59:15 i found eclipse git to be confusing Mar 20 20:59:17 import/git Mar 20 20:59:22 readme yea it is Mar 20 20:59:24 commandline git is best Mar 20 21:00:52 newest git for mac just released yesterday ;) Mar 20 21:00:58 well, binary :D Mar 20 21:01:04 eww Mar 20 21:01:04 mac Mar 20 21:01:24 * Jug6ernaut cant help it sorry Mar 20 21:01:26 why do you care to keep up with the newest git versions? Mar 20 21:01:41 haha Mar 20 21:01:51 honestly, i dunno. why care about any newest software Mar 20 21:02:03 if it aint broken, dont fix it Mar 20 21:02:04 why care about lr 4 Mar 20 21:02:16 Jug6ernaut: they fix bugs :) Mar 20 21:02:37 good software has no bugs! Mar 20 21:02:40 * Jug6ernaut runs away Mar 20 21:02:45 then git is not good software XD Mar 20 21:02:50 xD Mar 20 21:02:50 * g00s runs away Mar 20 21:02:57 * Jug6ernaut just has to say Mar 20 21:03:03 * Jug6ernaut hates the "app" mentality Mar 20 21:03:32 I generally don't care to keep up with new software versions Mar 20 21:03:38 unless it brings me useful features Mar 20 21:04:07 same Mar 20 21:04:44 they don't seem to update the mac binaries unless a bunch of things were fixed Mar 20 21:05:00 (for git). they aren't updated each release generally Mar 20 21:05:01 g00s thats the way it should be imo Mar 20 21:06:48 * g00s is pondering writing an ant task which takes a recipe as DSL and automates the creation of some of my icons from SVGs. Mar 20 21:07:04 lockCanvas() acquires a ReentrantLock of its own, and for some reason, this causes code to deadlock if you call lockCanvas inside of a synchronized block, but I don't understand why? I understand that it does and that I cannot do it, but why? unlockCanvasAndPost seems to be native so I imagine it unlocks the ReentrantLock through JNI but I haven't checked. Does this mean the code I put between lockCanvas and unlockCanvasAndPost is automatically a crit Mar 20 21:07:22 anyone know how i can pass aapt -S when using the ADT ? Mar 20 21:07:59 readme: your line got cut off, in case you can't see that Mar 20 21:08:06 g00s: what was the last word? Mar 20 21:08:15 automatically a crit Mar 20 21:08:22 http://pastie.org/3637540 Mar 20 21:08:25 that settles it anyway Mar 20 21:08:47 I looked at the source to see how lock/unlock canvas are implemented and they use ReentrantLock, which I somewhat understand but not entirely Mar 20 21:09:04 oh!! Mar 20 21:09:10 Never mind, disregard all my questions Mar 20 21:09:17 it's funny how talking about it can make you think differently Mar 20 21:09:36 I was unlocking in one synchronized block, then locking in the next, that's what the problem was. Mar 20 21:09:46 causing deadlock, essentially Mar 20 21:09:57 * readme hides Mar 20 21:09:57 anyway, only synchronized blocks are "critical sections" Mar 20 21:10:18 but I guess the Lock objects somewhat emulate synchronized blocks Mar 20 21:10:37 to use a lock and wait, you've got to put the wait() in synchronized, I believe Mar 20 21:10:49 Consumer Reports says new iPad can hit 116 degrees Fahrenheit - http://news.consumerreports.org/electronics/2012/03/our-test-finds-new-ipad-hits-116-degrees-while-running-games.html Mar 20 21:11:01 116 isn't all that bad Mar 20 21:11:34 pfn: You obviously have never had to run a server room Mar 20 21:11:37 Ologn: maybe i can cool it with toilet water Mar 20 21:11:48 g00s: Like Google does! Mar 20 21:11:48 needs LN cooling Mar 20 21:11:49 tbh Mar 20 21:12:10 Ologn: indeed :) Mar 20 21:12:12 Ologn, server closets and datacenters are a different beast Mar 20 21:12:19 guys just check my pastie once more Mar 20 21:12:20 and keeping them at 70F is overrated Mar 20 21:12:24 http://pastie.org/3637540 Mar 20 21:12:45 I've never seen a datacenter melt down thankfully...seen a few server "closets" melt down Mar 20 21:13:08 how good is the quote from apple Mar 20 21:13:16 "The new iPad delivers a stunning Retina display, A5X chip, support for 4G LTE plus 10 hours of battery life, all while operating well within our thermal specifications" Mar 20 21:13:26 so is my understanding true: in order to do hw-accel transcoding as a 3rd party app, I need to use OpenMAX IL which may or may not be supported on a per-device basis…to me it appears OpenMAX AL doesn't support transcoding Mar 20 21:13:32 a lot of people are going to short apple for a nice profit Mar 20 21:13:33 ;) Mar 20 21:13:48 wabz: and in most countries comes with a sticker "sorry, LTE doesn't work" Mar 20 21:14:27 afaik Mar 20 21:15:03 pretty sure it doesn't do 4g on the .au 4g network Mar 20 21:15:54 "Apple said mobile network models of the new iPad would be capable of connecting to 4G LTE (long term evolution) networks, but that connectivity seems to be limited to Apple?s US mobile partners." Mar 20 21:16:22 wabz: afaik the chip used supports only one frequency, which happens to be used by one operator in USA and some in japan Mar 20 21:16:27 and that's it Mar 20 21:16:36 att only? Mar 20 21:16:48 yeah it says it supports 700mhz and 2100mhz Mar 20 21:16:50 or vzw only? hard to believe apple would do that Mar 20 21:17:03 in .au we have 1800mhz, so no go Mar 20 21:17:07 no LTE deployments here yet, but we'll get one at 2100 I think Mar 20 21:18:53 woho no battery Mar 20 21:18:57 (lte) Mar 20 21:19:28 hi, i am trying to use Go Launcher HD, but it thinks i have a phone whilst i am using ICS in tablet mode. How do i fool it into thinking my screen size is bigger> Mar 20 21:19:43 going my logcat, it reads my physical screen size and screws up Mar 20 21:21:03 g00s: on a completely unrelated notes... google food is doubleplusgood Mar 20 21:21:13 google food? Mar 20 21:21:22 Jug6ernaut, how's lte on the note? Mar 20 21:21:33 Tjh: the food in offices :) Mar 20 21:21:34 p_l|dublin: full time now ? Mar 20 21:21:40 aah ok Mar 20 21:21:48 g00s: no, just managed to get inside for the dinner :) Mar 20 21:21:49 yeah, google food is pretty good Mar 20 21:22:18 (I know two people in Google Dublin, so I got a tour of the facility) Mar 20 21:22:43 my current employers and colleagues are mostly ex-googlers Mar 20 21:22:51 before they came here, we took lots of advantage of the google foods Mar 20 21:22:53 cool Mar 20 21:23:32 (since the plex is across the street) Mar 20 21:23:46 are they served by busty android maids? Mar 20 21:24:07 Tjh: not yet Mar 20 21:24:10 :( Mar 20 21:24:34 damn it japan, they need to be faster about this.. Mar 20 21:26:54 pfn i have the international verson Mar 20 21:27:02 no lte where i live anyways lol Mar 20 21:27:21 pfn: having troubles with the nexus s virtualbox usb passthrough Mar 20 21:29:39 DJTachyon, that's easy, just make sure the host isn't capturing it first, if it is, you need to set a filter in vbox Mar 20 21:30:13 pfn: galaxy nexus comes up, nexus s isnt Mar 20 21:30:25 . Mar 20 21:30:45 .. Mar 20 21:30:55 yeah Mar 20 21:31:33 nexus s comes up as two devices, an unknown and nexus Mar 20 21:31:36 in virtual box Mar 20 21:31:49 hmm Mar 20 21:31:52 brb reboot Mar 20 21:32:45 so i have a dialogfragment, and if i click outside of it, it seems to cancel it Mar 20 21:32:50 does that sound normal? Mar 20 21:32:53 For OpenGL, would unused varyings be optimized out on Android Mar 20 21:32:56 or is it this implementation im using Mar 20 21:33:30 panda81: it will depend on the optimizer used by the GL driver Mar 20 21:33:36 so it will be vendor specific Mar 20 21:34:59 oh nevermind Mar 20 21:35:42 anyone have any examples or some resources on how to bind single objects to layouts ? Mar 20 21:36:42 yeah there is some weird stuff going on Mar 20 21:36:51 the nexus s craps out after a couple seconds of trying to pass through Mar 20 21:37:01 and the drivers get all wacky Mar 20 21:39:29 romainguy: yeah, wonder if the spec says anything. I think my tablet uses the nVidia gpu Mar 20 21:41:12 anyone know if, and how an app would go about getting the physical screen size of a device it is on? Mar 20 21:41:15 i.e. in inches Mar 20 21:41:20 wow Mar 20 21:41:23 pfn: http://forum.xda-developers.com/showthread.php?t=882708 Mar 20 21:41:28 Nexus S doesn't work on VB Mar 20 21:41:30 wtf Mar 20 21:41:51 and how can i intercept this "getting" to fool said app into thinking i have a bigger device Mar 20 21:41:51 what a waste of time Mar 20 21:44:01 thats what SHE SAID Mar 20 21:45:36 Tjh: pixels / density * 0.00625 Mar 20 21:45:43 * pfn doesn't have usb support turned on in his virtualbox install Mar 20 21:45:54 because it fucks up usb on my host in my setup :( Mar 20 21:46:13 Tjh: the size in density independent pixels IS a physical sizre Mar 20 21:46:14 it's just in very small units Mar 20 21:47:22 pfn: how do you pull the binaries? Mar 20 21:47:49 canadiancow: what do you mean "pixels" Mar 20 21:47:51 ? Mar 20 21:48:06 the total number of pixels? Mar 20 21:48:12 the width Mar 20 21:48:17 and you do the same thing for the height Mar 20 21:48:25 and you can calculate the diagonal, which is likely what you want? Mar 20 21:48:37 so my phone is 1280pixels tall Mar 20 21:48:49 DJTachyon, I usually pull it from a webserver, or copy it over using adb install from a network share Mar 20 21:49:03 with a density of approximately 320 (dont know it offhand) Mar 20 21:49:05 i get a rather large number.. Mar 20 21:49:14 err the denstiy you want though is the factor relative to 160 Mar 20 21:49:17 which is 2 Mar 20 21:49:20 360 / 2 * 0.00625 Mar 20 21:49:26 err Mar 20 21:49:27 1280 Mar 20 21:49:33 man i cant copypaste Mar 20 21:49:39 1280 / 2 * 0.00625 Mar 20 21:49:46 = 4 Mar 20 21:49:49 4 inches tall Mar 20 21:49:58 then the width is 780 / 2 * 0.00625 Mar 20 21:50:05 = 2.4375 Mar 20 21:50:18 still doesnt make sense Mar 20 21:50:23 what doesnt Mar 20 21:50:34 sqrt(((720 * 0.0625)^2) + ((1 280 * 0.0625)^2)) = 91.7877988 Mar 20 21:50:42 http://members.ping.de/~sven/dpi.html Mar 20 21:50:50 a little easier :) Mar 20 21:50:56 you're not dividing by 2 Mar 20 21:51:01 i dont have to Mar 20 21:51:04 you're missing a 0 in the 0.00625 Mar 20 21:51:04 And it's 0.00 Mar 20 21:51:06 my DPI IS 160 Mar 20 21:51:14 aah Mar 20 21:51:27 ctate: genius! Mar 20 21:51:27 so i get 45.7 Mar 20 21:51:44 ctate, that calculator goes the wrong way though Mar 20 21:51:53 whine whine Mar 20 21:51:59 Tjh so yours is 1280 x 720, 160dpi? Mar 20 21:52:05 indeed Mar 20 21:52:22 canadiancow|work: so that makes it a 9" or 10" tablet? Mar 20 21:52:26 1 280 * 0.00625 = 8 Mar 20 21:52:26 720 * 0.00625 = 4.5 Mar 20 21:52:28 sqrt(((720 * 0.00625)^2) + ((1 280 * 0.00625)^2)) = 9.17877988 Mar 20 21:52:35 there Mar 20 21:52:38 hey Mar 20 21:52:45 * ctate came in at the end here Mar 20 21:52:48 i know im right Mar 20 21:52:50 ctate knows im right Mar 20 21:52:52 SimonVT knows im right Mar 20 21:52:55 i do? Mar 20 21:52:55 so just trust me :) Mar 20 21:52:58 HEY! Mar 20 21:52:58 canadiancow|work: ok now why is it that GO Launcher HD can figure out the CORRECT size of my screen which is 4.5"? Mar 20 21:53:10 if its 1280x720 at 160dp, it's not 4.5" Mar 20 21:53:11 you said 1280x720 160dpi, which to me sounds pretty much like a Xoom which is a 10" tablet Mar 20 21:53:16 yea Mar 20 21:53:22 i think xoom is 1280x800, but yea Mar 20 21:53:23 my point exactly Mar 20 21:53:27 ... Mar 20 21:53:30 Also, the relative density does not exactly match your actual density Mar 20 21:53:33 YOUR INPUTS ARE WRONG Mar 20 21:53:42 canadiancow|work: i set my DPI to 160 Mar 20 21:53:43 what tablet Tjh Mar 20 21:53:47 right note that Android devices just pick a density bucket, and may be a bit different from it Mar 20 21:53:49 Tjh...you "set" it? Mar 20 21:53:51 you cant "set" it Mar 20 21:53:59 you can't? Mar 20 21:53:59 yes you can Mar 20 21:54:02 Tjh: oh, your device's physical screen is not that density but your local buidl of Android is? Mar 20 21:54:02 ro.lcd.density? Mar 20 21:54:04 are you talking about the avd Mar 20 21:54:13 @ctate yea Mar 20 21:54:16 the density is a hardware feature Mar 20 21:54:18 theres a ini file to change density pfn Mar 20 21:54:20 canadiancow|work: yeah, it's just set in software at build time Mar 20 21:54:23 you can lie Mar 20 21:54:24 I see Mar 20 21:54:34 but it's not really the desnity Mar 20 21:54:40 galaxy tab original lies about dpi Mar 20 21:54:40 if you have 1280x720 in 4.5", it's not 160dpi Mar 20 21:54:41 no ofc not Mar 20 21:54:41 there are devices that lie about it in order to e.g. have the icons look relatively bigger than they would otherwise Mar 20 21:54:45 you can lie, and then scratch your head when apps don't work quite right Mar 20 21:54:45 ==zambo Mar 20 21:54:47 like the original galaxy tab? Mar 20 21:54:52 right Mar 20 21:54:52 yea Mar 20 21:54:53 lol Mar 20 21:54:58 ok so heres the issue Mar 20 21:55:07 if you give bad inputs, you'll get a bad output Mar 20 21:55:08 Android puts density in buckets. So a mdpi (160 dpi) screen might be 150dpi, it might be 170.. Almost never exactly 160 Mar 20 21:55:14 how does Go Launcher HD figure out my REAL density is 320? Mar 20 21:55:14 ==SimonVT Mar 20 21:55:18 SimonVT, but you can get the true density Mar 20 21:55:22 and thats the factor you should use Mar 20 21:55:32 if you want to determine the true physical size Mar 20 21:55:38 Indeed Mar 20 21:55:41 canadiancow|work: can you? how can i fool the app into thinking the true density is not what it is? Mar 20 21:55:49 160 * pixels / density * 0.00625 Mar 20 21:56:03 my original equation should have been densityFactor or something Mar 20 21:56:12 =) Mar 20 21:56:16 canadiancow|work, so do you get the cm9 nightlies via rommanager, or download manually? Mar 20 21:56:18 ok my issue, one and for all: I want to fool Go Launcher HD into thinking I am using a 9" screen Mar 20 21:56:23 Tjh: for all i know maybe they hardcoded knowledge of specific devices Mar 20 21:56:30 pfn, can you via RM yet??? Mar 20 21:56:32 ive been doing it manually Mar 20 21:56:34 no idea Mar 20 21:56:37 that's why I'm asking you Mar 20 21:56:50 "via RM"? Mar 20 21:56:55 Rom Manager Mar 20 21:57:06 i know nothing of anything to do with custom builds Mar 20 21:57:12 hmm RM knows i have a nightly Mar 20 21:57:16 and it says no updates available Mar 20 21:57:16 @ctate: any ideas? clearly GO HD gets the REAL density somehow, and not the one set in build.prop, how does it do that, and how can i fool it? Mar 20 21:57:32 Tjh: i have no idea, and you might not be able to Mar 20 21:57:47 at least you can do 'adb shell getprop' and see if 320 shows up anywhere in there Mar 20 21:58:03 what's the device name of the galaxytab? Mar 20 21:58:17 p4wifi Mar 20 21:58:25 RM doesnt work well on my tab though Mar 20 21:58:34 anyuway im heading home Mar 20 21:58:37 no mysid huh Mar 20 21:58:45 oh, toro, duh Mar 20 21:59:04 hmm, 3/02 Mar 20 21:59:08 pretty old Mar 20 21:59:41 real men use maguro Mar 20 21:59:43 right ctate? Mar 20 21:59:44 and it's a snapshot, not a nightly Mar 20 21:59:50 oh ctate, the 4.0.2 update got pushed out finally eh? Mar 20 21:59:58 @ctate: neither 160 nor 320 show up Mar 20 22:00:36 @ctate: no my bad 160 does, 320 does not Mar 20 22:00:46 "[ro.sf.lcd_density]: [185]" Mar 20 22:02:24 185? what device is this? Mar 20 22:02:26 * pfn wonders what's new in cm7.2 Mar 20 22:03:33 @ctate: why device you have? Mar 20 22:03:40 What* Mar 20 22:03:50 still have, or have ever had? Mar 20 22:04:14 i've had a G1, a myTouch 3G, Droid [original] -- but don't use those any more Mar 20 22:04:27 Nexus One, Nexus S, Galaxy Nexus that i still use regularly Mar 20 22:04:46 Ok. Mar 20 22:05:14 still use the n1 and ns regularly? Mar 20 22:05:14 samosa: you do know i work on Android at Google, right? Mar 20 22:05:30 pfn: i use the N1 almost exclusively for GPS nav Mar 20 22:05:32 ctate: no I didn't :p Mar 20 22:05:34 NS I could imagine maybe Mar 20 22:05:51 and the Nexus S because i haven't bothered transferring all my data etc to the GN, and becasue it's easier ot hold / pocket. Mar 20 22:06:10 ctate, I imagine you'd keep using the NS for porting reasons Mar 20 22:06:17 oh sure Mar 20 22:06:35 i have a couple more at work for that sort of thing, too -- different builds / software loadouts etc Mar 20 22:06:48 my wife still uses a G! Mar 20 22:06:50 G2 Mar 20 22:06:52 * pfn <3 his GN still Mar 20 22:06:52 asd jfkhasdlkjfh Mar 20 22:06:54 a G1 that is Mar 20 22:07:00 still uses g1? wow Mar 20 22:07:08 with the APNs turned off, no internet on the account Mar 20 22:07:15 that sounds boring Mar 20 22:07:18 very boring Mar 20 22:07:20 the G1 is better *as a phone* than the later ones. Mar 20 22:07:35 certainly better than the N1 Mar 20 22:07:35 with the physical call and end buttons Mar 20 22:07:36 but still Mar 20 22:07:42 no, i mean better call quality Mar 20 22:07:45 oh really Mar 20 22:07:50 and she can't use the GN because it's too big Mar 20 22:08:02 my wife is using a rhyme... htc needs to hurry up with ics Mar 20 22:08:19 it's possible the NS has a good enough radio, but the N1's is noticeably inferior to the G1's Mar 20 22:08:21 @ctate: i use 185 sometimes cuz 160 is too small for phone.apk Mar 20 22:09:07 I didn't know g1 had a better radio than n1. Mar 20 22:09:20 real products are either 160 (mdpi) or 240 (hdpi), nothing in the middle Mar 20 22:09:20 @ctate: yea i was gonna go with the galaxy draw or whatever, but i realised after a few days of using GNexus that its kinda big enough in terms of usability Mar 20 22:09:27 yes Mar 20 22:09:43 samosa: neither did i, until my wife discovered it experimentally :) Mar 20 22:09:49 im using GNexus in tablet mode (160DPI) and i sometimes switch to 185 Mar 20 22:10:03 ew Mar 20 22:10:04 ~_~ Mar 20 22:10:15 why? Mar 20 22:10:22 @ctate why what? Mar 20 22:10:24 because he likes super-small UI elements Mar 20 22:10:26 tablet mode Mar 20 22:10:32 no cuz i like tablet mode Mar 20 22:10:32 why do anything other than what it's built at? Mar 20 22:10:35 "tablet mode"? Mar 20 22:10:39 yes Mar 20 22:11:11 ctate: forcing ICS UI into thinking it's on tablet Mar 20 22:11:13 oh, so you're doing it to force the system bar all the time etc? Mar 20 22:11:16 since ICS is built for both tablets AND phones, using the same os, and tablets have completely different UI, there is an internal mechanism to auto switch to the one that is conveinent Mar 20 22:11:29 tablets do not have completely different UI Mar 20 22:11:36 @ctate: yea basically it looks and behaves exactly like a tablet Mar 20 22:11:50 they get a different status bar implementation Mar 20 22:11:51 that's all. Mar 20 22:11:59 and gmail looks different Mar 20 22:12:16 ctate: different aplication layouts Mar 20 22:12:19 and contacts, browser, youtube, goolge+, google talk all look different Mar 20 22:12:23 that's not a different UI per se; that's just because the layouts are size-sensitive Mar 20 22:12:29 also some apps are much nicer too Mar 20 22:13:03 i spose, but i lke the 2 abr layout Mar 20 22:13:06 *2 bar Mar 20 22:13:23 fair enough Mar 20 22:13:31 anyways Mar 20 22:13:33 the issue is Mar 20 22:13:48 theres no good launcher, i mean all ics launchers work great, but i still like my dock Mar 20 22:14:16 theres one htat has dock but the icons are set at 320DPI icons, which looks ludicrious Mar 20 22:14:20 *that Mar 20 22:14:29 all except GO Launcher HD Mar 20 22:14:37 but it quits instantly because it says im not on a tablet Mar 20 22:14:39 :( Mar 20 22:14:45 interesting Mar 20 22:14:52 i dunno what it's done Mar 20 22:14:56 write to the dev and ask? Mar 20 22:14:57 yea i contacted dev, hoping theyd remove that Mar 20 22:15:10 maybe it looks at your model name or something Mar 20 22:15:14 cuz it loks REALLY nice Mar 20 22:15:20 hmm Mar 20 22:15:42 does the app not support phones? Mar 20 22:15:58 so when i pass a bitmap parcelable from one activity to the next is it passing a new instance of that bitmap or what? Mar 20 22:16:03 no lolcat says "system.print.out Screen Size 4.65 inches" Mar 20 22:16:04 I dont wanna kill my memory Mar 20 22:16:38 hang on Mar 20 22:16:39 @ctate: well they make "go launcher regular" for phones Mar 20 22:17:07 you pulled the apk off of some other device and installed it on your GN, which it explicitly says it is not compatible with, and now you're complaining that it doesn't run on the GN? Mar 20 22:17:11 tsk tsk. Mar 20 22:17:24 i didnt Mar 20 22:17:29 i puulled it off website Mar 20 22:17:35 actually market Mar 20 22:17:40 i downloaded it off market Mar 20 22:17:46 you can't download it from Market to a GN Mar 20 22:17:54 becuase the app is marked as not being compatible with the GN Mar 20 22:17:54 I did Mar 20 22:17:54 Hello everyone! Mar 20 22:18:18 lemme guess: you're running some build that lies about what device it is Mar 20 22:18:19 i think his point is that you intentionally installed an app that's explicitly not compatible with your device, onto your device, and now you are complaining that it doesn't work. Mar 20 22:18:26 its marked as not compatible with tablets..and android thinks i havea tablet Mar 20 22:18:32 in order to get software against the developer/publisher's wishes Mar 20 22:18:43 and now you're complaining that hte outcome is not what makes you happiest Mar 20 22:18:58 sheesh. Mar 20 22:19:25 Tjh: you're wasting time.. just email them and tell them you want it on your galaxy nexus and they will probably port it.. they're probably already working on it Mar 20 22:19:54 I am getting dome data from a SQLite database in my android application. I know that these data are gzipped in the DB so I get them as byte[] then I use the GZipInputStream in order to decompress them but I get an IOException:unknown format (magic number 0). Any idea what may cause this exception? It comes from the GZipInputStream... Mar 20 22:19:56 @ctate: it is marked as "for tablets", and i downloaded it from the market Mar 20 22:20:47 @ctate: if every single app thinks i have a tablet, how they hell does my "screen size" make a difference if i have the correct ui elements and dpi? Mar 20 22:21:12 ShibaKaneki: the magic number refers to the first byte or four bytes (fourcc) in the file which indicates the format by convention Mar 20 22:21:20 by screen size i mean physical size Mar 20 22:21:55 Tjh: on Market, the app is marked as not compatible wiht Galaxy Nexuses. Mar 20 22:21:58 Tjh: You should probably try the root channel instead Mar 20 22:22:00 it won't let me install it to mine. Mar 20 22:22:06 it did on mine Mar 20 22:22:07 hum I will check if I can read this magic number. MAybe should I configure something with GZipInputStream in order to be able to read it... Mar 20 22:22:07 odd Mar 20 22:22:13 ShibaKaneki: http://developer.android.com/reference/java/util/zip/GZIPInputStream.html#GZIP_MAGIC Does the "blob" begin with this? Mar 20 22:22:15 Tjh: you're running some custom build. Mar 20 22:22:18 Because it has to, or this class won't work Mar 20 22:22:21 Tjh: that build is probably lying about its identity. Mar 20 22:22:30 I will check that readme! Mar 20 22:22:55 anyway, i don't actually think there's real API for determining the physical screen size; i suspect the app is using some other info and checking against a mapping of known devices or something Mar 20 22:23:05 @ctate: im not asking for official support, i apologise if it souned like that, i merely asked for information on how to go about making the changes myself Mar 20 22:23:17 hmm Mar 20 22:23:27 If I have an XML layout file for an item in a ListView , how would I keep reusing it to for every new item I add to the list? Mar 20 22:23:29 well my build IS actually galaxy nexus, so maybe it looks at that Mar 20 22:23:38 like ro.build.product or whatever says galaxy nexus Mar 20 22:23:41 how does one close an app tho ? Mar 20 22:23:49 wbooze: with the back button Mar 20 22:23:50 i mean stop it Mar 20 22:23:55 wbooze: hit 'back' or 'home' Mar 20 22:23:59 boom, stopped. Mar 20 22:24:02 wbooze: very carefully. Mar 20 22:24:12 no it does not stop that way Mar 20 22:24:15 do not "shut down" apps. that is an old concept Mar 20 22:24:16 yes it does Mar 20 22:24:19 well if you want to kill it then you can do it through the app info thing Mar 20 22:24:20 Settings -> Applications -> Select your app, "Stop application" if you reeeeeeeeeeeeeeeally want to kill the process. Pointless (and counter-productive) to do so however. Mar 20 22:24:32 wbooze: i bet you are thinking about unix processes. processes are not the same as andorid apps. Mar 20 22:24:39 wbooze: why do you want to stop an app Mar 20 22:24:44 wbooze: please read this answer by Mark Murphy Mar 20 22:24:45 it's being run in background, as the frame switcher shows Mar 20 22:24:46 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon/2034238#2034238 Mar 20 22:24:56 tophyr: or, on modern versions of Android, swipe it out of the 'recents' list :) Mar 20 22:25:00 you should trust it, as he is a leading authority Mar 20 22:25:11 wbooze: Okay, er Mar 20 22:25:12 (and it has 400 upvotes....) Mar 20 22:25:23 what is the app, and what exactly does "being run" mean? Mar 20 22:25:26 wbooze: the frame switcher doesn't even show only running apps Mar 20 22:25:39 @ctate: hmm yea i never thot of that lol, i'll change the build id to a xoom or something and see Mar 20 22:25:45 ctate: if somebody would get a modern version to sprint's nexus s.. cough.. ahem ;) Mar 20 22:25:50 sureaint: you should probably watch "world of listview": http://www.google.com/events/io/2010/sessions/world-of-listview-android.html Mar 20 22:26:01 wabz: good as anything, alright. Mar 20 22:26:08 btw is there a dev+root channel? Mar 20 22:26:16 Tjh: #android-root Mar 20 22:26:20 #android-root is about as close as you'll get Mar 20 22:26:24 hmm Mar 20 22:26:39 well they told me to come here, cuz i was asking questions relating to the inner workings of the SDK Mar 20 22:26:46 lol Mar 20 22:26:48 they misunderstood you :) Mar 20 22:27:01 you're asking questions about device/product build setup Mar 20 22:27:04 well i did ask "how can an app know my physical screen size" Mar 20 22:27:08 This is app development. Breaking apps, faking device id, etc, is root Mar 20 22:27:15 aah Mar 20 22:27:16 ok Mar 20 22:27:22 Tjh: true. the answer there is "there's no way; they must be looking at other info" Mar 20 22:27:24 readme: the blob doesn't begin with that Mar 20 22:27:33 at least that's what I see in Eclipse Mar 20 22:27:36 @ctate: yea that was my mustake i didnt even think it would use buildid to estimate screen size Mar 20 22:27:36 ShibaKaneki: the only advice I can give is either make sure they do or put it in there yourself Mar 20 22:27:41 (what is a "frame switcher"?) Mar 20 22:27:52 sureaint yeh what he said. in short, write an adapter with a getView Mar 20 22:28:05 ctate: i think he's referring to the switcher that appears when one holds the home key Mar 20 22:28:06 oh! the longpress-on-Home popup? Mar 20 22:28:10 ctate ty Mar 20 22:28:11 readme: yeah I will talk about that with the guy who did the DB Mar 20 22:28:11 that's *recent* apps, not *running* apps Mar 20 22:28:32 ah ok Mar 20 22:28:34 that's why it is labelled "Recent apps" Mar 20 22:28:36 i got it Mar 20 22:29:04 (or just "Recent" on older versions of Android) Mar 20 22:29:14 at least it's consistent with the Exception that says Magic Number 0. The first byte I read from the blob is 0 Mar 20 22:29:33 thx for your help readme ;) Mar 20 22:30:56 wabz, xorgate: actually, I was going to copy its techniques and figure out a way for a horizontal list view (currently not so great way of using a HorizontalScrollView) Mar 20 22:31:35 How does the compiler handle calls to an empty virtual method? Mar 20 22:31:45 does it optimize it out? Mar 20 22:31:48 no Mar 20 22:31:49 There's already a horizontallistview somewhere on google Mar 20 22:31:56 readme, it can't, unless your class is final Mar 20 22:32:54 thanks, that is very useful Mar 20 22:34:42 WTF. I just got an email from a facebook recruiter which reads like typical android market spam... "I saw some of your work online and thought it was really awesome!" Mar 20 22:36:31 ask him to water your crops or whatever Mar 20 22:36:47 also, have them fix their fucking app's sharing Mar 20 22:36:55 Ge0rG: recruiters don't have much to lose, but you do Mar 20 22:37:13 lov: heh. Mar 20 22:37:16 we've had to embed the fucking facebook sdk into our app and special case sharing just to handle facebook being unable to handle the INCREDIBLE use case of a link in regular text being shared Mar 20 22:37:28 ZOUNDS Mar 20 22:37:32 Mar 20 22:37:52 * Ge0rG is still trying to figure out if the email is legit Mar 20 22:38:16 check the headers? Mar 20 22:38:23 Ge0rG: it probably is. I got one from a google recruiter before and I am not even that qualified. Mar 20 22:38:26 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) Mar 20 22:38:34 I told her I probably wouldn't get the job and to call me back later Mar 20 22:38:37 ;) Mar 20 22:39:22 i don't think you get this whole recruitment / job-hunting thing yet Mar 20 22:39:36 "Ray, when someone asks you if you're a god, you say *YES!*" Mar 20 22:40:06 leave it to the interviewers to trash your self-esteem; don't give them a head-start. Mar 20 22:40:09 ctate: she wanted someone with more exp on paper. going in for the interview would have just soiled my future chances. Mar 20 22:40:18 oh fair enough Mar 20 22:40:22 can someone help decipher http://pastie.org/3638048 Mar 20 22:40:26 but she would have pushed me through Mar 20 22:40:38 error log upon starting GO Launcher Mar 20 22:40:38 do I think I could do the job? definitely Mar 20 22:40:48 unfortunate that doesn't sell to a business very easy without proof Mar 20 22:41:31 * pfn hears google interviews are hard, in any case Mar 20 22:41:55 yeah, extremely so Mar 20 22:42:09 they are, yes. Mar 20 22:42:16 * pfn doesn't have any hope of successfully completing any google interviews Mar 20 22:42:20 * pfn shrugs Mar 20 22:43:05 i'll try for a major corp in the next 5 years probably Mar 20 22:43:23 damn, is there no online service for verifying a dkim key manually? Mar 20 22:43:30 SimonVT: there is (if you're talking about the one I'm thinking of) but I recall it being incomplete in some way. Mar 20 22:46:53 readme: so if you can ace a google interview, you'll be able to ace any (almost) interview! Do it! Mar 20 22:46:56 For the expeeerience. Mar 20 22:46:58 [18:05:30] <@ctate> pfn: i use the N1 almost exclusively for GPS nav Mar 20 22:47:00 LOL??? Mar 20 22:47:03 er, readme ^^ Mar 20 22:47:06 two seconds in the sun, and the screen stops responding Mar 20 22:47:13 sureaint: i can't. i will fail the interview when they ask about my education and work history :) Mar 20 22:47:31 I'm going to apply after I straighten that stuff out, though. Mar 20 22:47:39 if they are still a cool company by then Mar 20 22:48:13 my point is that recruiters find you with interesting tactics Mar 20 22:48:21 fuck recruiters Mar 20 22:48:30 one of them contacted me AT MY WORK EMAIL yesterday Mar 20 22:48:31 about a .net position Mar 20 22:48:39 and to them you are just an expendable resource Mar 20 22:48:45 if you don't get the job, they'll ask 1000 others to try Mar 20 22:49:09 they found my email because I'm subscribed to an arseload of mailing lists Mar 20 22:49:52 what kind of adapter would you use in order to populate a single item view ? Mar 20 22:49:54 they probably got mine from linkedin Mar 20 22:49:56 name + company Mar 20 22:49:57 hmm Mar 20 22:50:02 first.last@company.com? Mar 20 22:50:03 nope Mar 20 22:50:07 f.last@company.com? Mar 20 22:50:09 canadiancow: yeah i cancelled my linked in, too much recruiter spam Mar 20 22:50:10 flast@company.com? Mar 20 22:50:21 if you put "android" in your job description anywhere you'll get an email daily Mar 20 22:50:36 i disagree Mar 20 22:50:41 becasue that IS my job description Mar 20 22:50:44 and i dont get daily emails Mar 20 22:50:50 and the oens i do get rarely have anything to do with android Mar 20 22:50:56 recruiters don't find qualified people, they find people who are likely to be qualified and then find out later whether you fit the bill and don't really care either way. Mar 20 22:51:07 Does anyone know if it would be better to start with "Beginning Android 4 Games Development (Beginning Apress)" or "Pro Android 4 (Professional Apress)" when picking an android development book? Or should I go with something completely different? Mar 20 22:51:33 canadiancow: I was exaggerating Mar 20 22:52:12 arielkadouri: are you experienced at all in android development? Mar 20 22:52:29 the Pro* titles are more geared towards people who are already a bit proficient Mar 20 22:52:34 I know the basics Mar 20 22:52:46 i guess they are both fine books then Mar 20 22:53:19 is a book from Decemeber already out dated? Mar 20 22:53:30 no android 4 book is already outdated Mar 20 22:53:36 there will be some things not in the book obviously Mar 20 22:53:38 but it's fine to learn from Mar 20 22:54:12 android 4 still makes up for a very small portion of the total deployment Mar 20 22:54:15 most is 2.2/2.3 still Mar 20 22:54:47 i think it's bigger than google says Mar 20 22:55:00 thanks Mar 20 22:55:01 or at least, my personal app has a much higher percentage Mar 20 22:55:03 as do work apps Mar 20 22:55:09 what percent are you seeing? Mar 20 22:55:16 ~10 on ICS Mar 20 22:55:31 thats on my personal Mar 20 22:55:33 work is a bit lower Mar 20 22:55:39 but nothing like the 1-2 google says :P Mar 20 22:55:43 it could be that ICS users are the ones who keep up with tech Mar 20 22:55:49 and more likely to install awesome apps Mar 20 22:55:59 you can't even buy ICS phones in my country yet Mar 20 22:56:02 in any event it makes me rethink what I was thinking Mar 20 22:56:09 and root Mar 20 22:56:23 Or just that apps with an ICS design is more likely to get ICS users Mar 20 22:56:23 well, people get stuck in phone contracts too Mar 20 22:56:35 does it count rooted ics too, as in its not supposed to have ics but its in there Mar 20 22:57:53 SimonVT: yeah, that's definitely a factor Mar 20 22:58:47 do you guys port your apps to iphone after? Mar 20 22:58:52 or does it depend Mar 20 22:58:54 haha Mar 20 22:59:02 I think it usually goes the other way around Mar 20 22:59:10 is it hard to port apps FROM iphone, and vice versa? Mar 20 22:59:11 android devs generally get work porting the ios apps Mar 20 22:59:19 Tjh easier to go android to ios Mar 20 22:59:26 is it? Mar 20 22:59:29 because then you ahve a design that works on all screen sizes Mar 20 22:59:33 any reasons u can give? Mar 20 22:59:36 compared to having a 320x480 design Mar 20 22:59:39 oo tru dat Mar 20 22:59:40 and having to make it work on all screen sizes Mar 20 22:59:50 nevr thot of that Mar 20 22:59:53 that makes sense Mar 20 22:59:57 yea Mar 20 23:00:12 but thats one of the reasons some people i know dont dev apps for android, cuz of the different screen size Mar 20 23:00:14 *sizes Mar 20 23:00:37 Tjh: nah, it's because their wusses and can't code for a dime Mar 20 23:00:39 s/different screen sizes/ignorance/ Mar 20 23:00:46 I have a listview displaying a list of items which are retrieved using a ListAdapter, I want to display a more detailed view of each item when they are clicked. Does anyone know how I can accomplish this by either passing the object into the new (and more detailed) activity, or some other way ? Mar 20 23:00:54 they're* Mar 20 23:01:34 [19:00:37] Tjh: nah, it's because their wusses and can't code for a dime Mar 20 23:01:34 [19:00:39] s/different screen sizes/ignorance/ Mar 20 23:01:44 if you START with android, and are competent, its no problem Mar 20 23:01:55 the issues arise when you start with iOS, and then give the android devs a 320x480 design Mar 20 23:02:07 that had no thought put into it as to how it would work on varying sizes/aspect ratios/densities Mar 20 23:02:23 our comments weren't geared towards porters, but just "devs who don't develop for android because of screen size" Mar 20 23:02:34 oh i know Mar 20 23:02:35 ^ Mar 20 23:02:38 im just adding to it Mar 20 23:02:41 yeah Mar 20 23:02:45 START with android, and you'll be fine Mar 20 23:02:46 well, i'm in highschool and a few of my friends and I wanted to start app developing. We don't have macs or $99 to buy an apple developer subscription, so we're starting with android. Plus we already know java. Mar 20 23:02:55 or hire a competent android dev who's vocal enough to say FUCK NO THIS IS STUPID AND WON'T WORK Mar 20 23:03:07 arielkadouri: good, I don't think the opportunity cost for app development should be 2100 bucks either Mar 20 23:03:08 like me :) Mar 20 23:03:17 (2000 for a decent macbook, 100 for the membership) Mar 20 23:03:19 arielkadouri: yes :D Mar 20 23:03:21 oh wait, the iphone too Mar 20 23:03:23 arielkadouri: that's exactly what I'm doing Mar 20 23:03:26 so your entry cost is moer like 2600 Mar 20 23:03:28 readme: simulator Mar 20 23:03:33 arielkadouri: cept I know java from the console >.> Mar 20 23:03:39 and ONLY java from the console Mar 20 23:03:47 how to respond directly too people?... Mar 20 23:03:47 ok, I guess if you use the simulator that cuts things a bit Mar 20 23:03:58 arielkadouri, you just type their name Mar 20 23:03:59 arielkadouri: type rea Mar 20 23:04:07 realtybaron Mar 20 23:04:14 drat Mar 20 23:04:18 readme: thanks Mar 20 23:04:22 type readm Mar 20 23:04:25 arielkadouri: type out the first part of their name, then press tab Mar 20 23:04:30 canadiancow: haha Mar 20 23:04:32 Snuupy: thanks Mar 20 23:04:48 np Mar 20 23:06:48 Hi Mar 20 23:07:10 19:03:06 < canadiancow> or hire a competent android dev who's vocal enough to say FUCK NO THIS IS STUPID AND WON'T WORK Mar 20 23:07:16 WTB competent devs : ( Mar 20 23:07:24 i'll sell you one Mar 20 23:07:26 $250k/year Mar 20 23:07:30 and you buy me a house Mar 20 23:08:06 getting ready to do that at this point >_< Mar 20 23:08:32 just wondering, what is average android developer salary? Mar 20 23:08:34 attention mobile devs w/o jobs: move to the NYC area, you will have jobs. that is all. Mar 20 23:08:43 wait really? Mar 20 23:08:51 I live in NYC Mar 20 23:08:53 if you ever have an offer like that, i'm in Mar 20 23:08:53 like seriously Mar 20 23:08:54 need an intern? Mar 20 23:09:04 canadiancow: well we're not going to actually buy you a house and give you a quarter mil salary Mar 20 23:10:00 What is the correct way of rapidly moving an object on a SurfaceView? Mar 20 23:10:20 Got H1B!? Mar 20 23:11:35 Any developers here? ;-) Mar 20 23:12:13 as far as I know, there is no "correct" way to do anything. Mar 20 23:12:30 But always plenty wrong ways :P Mar 20 23:13:05 arielkadouri: If I only get around 29 FPS... then how can I move something really fast? Mar 20 23:13:31 PhyzloC: increase the change in the X/Y of the image? Mar 20 23:13:46 PhyzloC: how fast are you talking about? Mar 20 23:14:40 29fps on what screen? Mar 20 23:15:05 For example a bouncing ball .. I'm trying to create a breaker game just to learn Mar 20 23:15:12 that suggests that you're spending a lot of time doing *something*; that's over 30 milliseconds per frame Mar 20 23:16:00 My game loop only updates a background picture and a circle.. when I calculate the rate is 29 FPS Mar 20 23:16:53 @ctate: On Galaxy Nexus Mar 20 23:16:54 am I allowed to post a link here? Mar 20 23:17:12 yes Mar 20 23:17:20 don't know :) Mar 20 23:17:42 PhyzloC: I learned basic movement/animation from http://www.javacodegeeks.com/2011/07/android-game-development-moving-images.html tutorial, its a bit outdated but it worked for me. Mar 20 23:18:21 OK, I'll take a look at it! Mar 20 23:18:55 also use the profiling tools to see where you're spending all your time, etc. Mar 20 23:20:47 http://www.osnews.com/story/25728/Oracle_s_final_damage_claim_less_than_100_million Mar 20 23:21:29 lov: actually, its NYC, Seattle, and SF Mar 20 23:22:02 loloracle Mar 20 23:22:22 arielkadouri: it seems that they are just increasing several pixels each time to move faster Mar 20 23:22:40 PhyzloC: yep Mar 20 23:23:07 g00s: I bet that Dr. got teased a lot in school Mar 20 23:23:14 g00s: true enough Mar 20 23:23:40 arielkadouri: But that doesn't look very smooth.. is this how it's done? Mar 20 23:24:09 PhyzloC: its one way, i'm only a beginner so I don't really know Mar 20 23:24:17 SimonVT: there is also an Alistair Cockburn who has written some good stuff on Agile methods Mar 20 23:24:26 co - burn Mar 20 23:24:27 :D Mar 20 23:24:44 I giggle every time Mar 20 23:24:56 arielkadouri: Ok :) thanks anyways Mar 20 23:25:14 PhyzloC: yes, that's how it's done. Mar 20 23:25:51 that's basic physics. frames are only drawn so often, so if you want the physical speed of an image across it to be large, it needs to move multiple pixels per frame Mar 20 23:26:29 in practice your optical circuitry is good at lying about it being continuous motion Mar 20 23:26:40 Does anyone have a website/page where I can find what the resolutions should be for each drawable? (hdpi/mdpi/ldpi) Mar 20 23:27:10 And exactly why I need each type thing, can't I just put them all in hdpi and it will scale it down acordingly? Mar 20 23:27:17 @ctate: problem is that to get the bouncing speed I like I need to move maybe 10 pixels each time.. then during the move you can see that it's not that smooth Mar 20 23:27:43 eek Mar 20 23:27:46 T-Dub|DlolPics Mar 20 23:27:59 Yes? Mar 20 23:28:05 draw some motion blur or something, i dunno. it's your game. :) Mar 20 23:28:13 hehe Mar 20 23:28:22 drawable, icon? Mar 20 23:28:32 you were saying something about 29 FPS is slow? Mar 20 23:28:39 Like background images, button images, everything under the sun Mar 20 23:28:42 3:4:6:8 ratio for drawables Mar 20 23:28:45 Icon information is wanted though too Mar 20 23:28:49 err. one sec Mar 20 23:28:58 PhyzloC: the velocity should not be constant, it should change on each step Mar 20 23:29:01 NightmareApps: drawing circle using canvas Mar 20 23:29:19 I assumed android had a page that included all the information and recommended resolution sizes Mar 20 23:29:47 PhyzloC: first, use floats, on each iteration decrement x,y by their respective velocities, and on each iteration change the velocity Mar 20 23:29:56 PhyzloC: the object stops moving when velocities are both 0 Mar 20 23:29:57 readme: you mean I need to change it so it's constant? Mar 20 23:29:58 T-Dub|DlolPics: all assets should run a 3:4:6:8 ratio ldpi:mdpi:hdpi:xhdpi accordingly Mar 20 23:30:05 PhyzloC: no, you don't want it to be constant Mar 20 23:30:12 velocity should be constantly changing to look realistic Mar 20 23:30:19 what PhyzloC Mar 20 23:30:23 and 10px is a huge jump, you are right, and that shouldnt be happening Mar 20 23:30:44 PhyzloC: I have a tutorial for that... one sec Mar 20 23:30:58 thank you nightmareapps Mar 20 23:31:06 PhyzloC: basically the ball is always effected by 2 velocities, each for x,y. On each iteration you change the velocity values, but never touch the x,y directly Mar 20 23:31:22 np, private message me if you need anything else.. don't really check this irc, im on ludumdare mainly. Mar 20 23:31:38 T-Dub|DlolPics: http://developer.android.com/guide/practices/screens_support.html Mar 20 23:32:08 aweesome, thank you both. Mar 20 23:32:41 readme: I don't understand how the velcity need to be changed all the time.. the ball is to have a constant velocity Mar 20 23:32:51 PhyzloC: http://asgamer.com/2009/as3-flash-games-for-beginners-more-advanced-character-movement Mar 20 23:32:58 PhyzloC: its in flash, but the concept is the same Mar 20 23:33:21 PhyzloC: http://en.wikipedia.org/wiki/Acceleration Mar 20 23:33:38 readme: I'm not doing any acceleration Mar 20 23:33:55 your bouncing ball isn't going to look very good then Mar 20 23:34:01 let me know when you want it to look realistic Mar 20 23:34:19 ahh.. I mean bouncing agains the walls.. not like gravity Mar 20 23:34:34 interpolation is hard, lets go shopping Mar 20 23:34:50 remember the old breaker games.. where you have bricks on top which you need to smash using a ball Mar 20 23:34:56 its the same concept... Mar 20 23:34:59 PhyzloC: throw a ball at your wall and let me know if gravity effects it or not :) Mar 20 23:35:08 hehe Mar 20 23:35:26 arielkadouri: I'll have a look Mar 20 23:40:04 Thanks guys I gotta get some sleep now :) Mar 20 23:42:25 hello can i download the entire and-dev guide for offline viewing. (http://developer.android.com/guide/index.html) Mar 20 23:43:11 nfs1mw: in the sdk manager Mar 20 23:43:30 how can u explain please Mar 20 23:43:54 by opening the sdk manager, clicking documentation, and clicking install Mar 20 23:44:39 documentation for which platform? or is it in general? And what will be the download size? Mar 20 23:46:27 ... Mar 20 23:46:33 i no longer feel like a fat slob programmer Mar 20 23:46:33 why don't you open up the sdk manager and take a look Mar 20 23:46:36 first run in 18 months! Mar 20 23:46:40 canadiancow: congratulations Mar 20 23:46:40 took the words out of my mouth Mar 20 23:46:50 first run... what are you using to keep track of your runs? Mar 20 23:47:04 * pfn wishes his gnex weren't so big... need a fat armband to hold it Mar 20 23:47:06 which I don't have... Mar 20 23:47:07 keep track of what runs :) Mar 20 23:47:16 and my pockets in my running shorts are way too small Mar 20 23:47:22 he ran, singular Mar 20 23:47:32 i love my garmin forerunner Mar 20 23:47:33 yeah, but you gotta record this shits Mar 20 23:47:42 i use cardiotrainer Mar 20 23:47:56 but im now running on a treadmill, so it's much less useful Mar 20 23:47:59 oh Mar 20 23:48:01 no fun Mar 20 23:48:02 :p Mar 20 23:48:07 treadmill = boringest thing evar Mar 20 23:48:08 no fun indeed Mar 20 23:48:25 15 minutes on a treadmill and I'm done, screw that Mar 20 23:48:42 lift some weights after the treadmill Mar 20 23:48:46 thats what will really cut the fat off Mar 20 23:49:01 a month ago I lifted so hard I almost blacked out Mar 20 23:49:06 * pfn has a set of ironmaster weights at home Mar 20 23:49:09 they're so awesome Mar 20 23:49:14 but they've been gathering dust lately... ugh Mar 20 23:49:24 yeah lifting is good Mar 20 23:49:31 https://picasaweb.google.com/111751695436781052143/Ironmaster Mar 20 23:49:51 it's pretty hard to exercise hard enough to actually lose weight Mar 20 23:50:01 ctate: not really, just do it fasting Mar 20 23:50:02 it's all about caloric intake, unfortunately Mar 20 23:50:03 maybe if you're 40 :p Mar 20 23:50:13 nice Mar 20 23:50:20 of course, if you're eating 4000 calories a day, you ain't gonna lose shit Mar 20 23:50:23 g00s: it's easy to lose weight fasting even if you don't exercise :) Mar 20 23:50:29 if you're eating even 2000 a day you won't lose Mar 20 23:50:36 unfortunately :) Mar 20 23:50:48 it's easy to maintain a calorie deficit on a 2000 calorie diet Mar 20 23:50:52 building buscle raises your basal metabolic rate making it possible to lose weight without changing your intake Mar 20 23:50:54 unless you're thin as a stick Mar 20 23:50:59 ctate: i mean, exercise on an empty belly :P Mar 20 23:51:02 but I eat like less than 1700cal/day anyway Mar 20 23:51:08 thats, "belleh" Mar 20 23:51:11 the big thing is not eating garbage Mar 20 23:51:13 * pfn probably eats something like 3000cal/day Mar 20 23:51:22 of course, I'm about 10lbs overweight right now :( Mar 20 23:51:28 walk for an hour on that treadmill? you just burned the calories in a can of Coke. Mar 20 23:51:41 readme: is it crazy idea to sell android apps directly from own website? Mar 20 23:51:42 ctate, run not walk Mar 20 23:51:45 two cans if you're walking fast. Mar 20 23:51:49 onr: not if you have a good business plan Mar 20 23:51:58 anyhow, we're all fucked anyhow http://www.amazon.com/Sitting-Kills-Moving-Heals-Everyday/dp/1610350189 Mar 20 23:52:00 usually the market is a good idea, though. Mar 20 23:52:10 running is for people who didn't shred the ligaments in their ankle last year :( Mar 20 23:52:20 ctate, bummer Mar 20 23:52:26 * pfn has once again started running in his 5fingers Mar 20 23:52:29 <3 ctate Mar 20 23:52:29 readme: im thinking about affiliate marketing Mar 20 23:52:41 pfn, my cousin pointed out my double chin the other day...so i'm motivated :D Mar 20 23:52:44 damn things keep giving me blisters, though Mar 20 23:52:47 anyway, yes, aerobic exercise is basically the only mechanism through which you lose weight Mar 20 23:52:57 becasue it's the only outlet for carbon in your entire metabolism Mar 20 23:53:04 #android-exercise ftw Mar 20 23:53:08 yeah yeah Mar 20 23:53:09 :D Mar 20 23:53:12 devs need exercise! Mar 20 23:53:17 pedometer apps! Mar 20 23:53:20 half the people in this discussion are +o Mar 20 23:53:23 onr: affiliate marketing is spam Mar 20 23:53:37 just call it by its real name Mar 20 23:53:37 ;) Mar 20 23:53:39 so tired Mar 20 23:53:52 readme: do it can f.. up my brand value? Mar 20 23:54:01 (rowing FTW) Mar 20 23:54:07 ctate, that's not true, any energy expenditure is an outlet for carbon Mar 20 23:54:15 ctate, it doesn't have to be aerobic Mar 20 23:54:22 ctate: swimming too, right ? Mar 20 23:54:29 should be easy on busted body parts Mar 20 23:54:33 pfn: well, it has to result in exhaling a lot of CO2 Mar 20 23:54:37 the garmin 910xt is for swimmers Mar 20 23:54:43 g00s: yeah but you have to get wet to do that :) Mar 20 23:54:59 seen those bumper stickers? "ATHLETES ROW. EVERYBODY ELSE JUST PLAYS GAMES." Mar 20 23:55:10 ctate: doesn't google have some type of pod where you can swim and IRC at the same time ? Mar 20 23:55:15 onr: i doubt people will download your spam app directly from your website. you should put it on the market for the best chance. Mar 20 23:55:16 g00s: ha ha ha Mar 20 23:55:54 ctate: so that means biking is out of the picture, too? What about swimming? Mar 20 23:55:55 ctate, I dunno, a fair amount of carbon goes out the other ways.... Mar 20 23:56:01 Meh, excercise ;| Mar 20 23:56:21 Sports is like exercise, but fun! Mar 20 23:56:41 i guess some goes out as sweat, but that should be fairly minor Mar 20 23:56:46 especially as you become more conditioned Mar 20 23:56:55 if you're peeing out a lot of carbon you need to see a urologist :) Mar 20 23:57:09 sureaint: i was joking, partly Mar 20 23:57:23 rowing happens to be a pretty good exercise for much of the body at once Mar 20 23:57:25 even more so than swimming Mar 20 23:57:40 though rowing isn't as good for the abs Mar 20 23:57:59 whatever ends up with a higher maxHR is best for much of the body at once... dunno about rowing hitting those kinda numbers Mar 20 23:58:01 and personally i hate swimming Mar 20 23:58:40 * pfn hates swimming Mar 20 23:58:43 hate running for the most part... Mar 21 00:01:16 yeah, i hate running too. and now i can't really so that's all right then. Mar 21 00:02:08 btw, those who want to lose weight should research HIIT thingy Mar 21 00:02:40 (the problem of weight and fitness management for people with injuries is especially tough, sigh) Mar 21 00:02:58 thingy? Mar 21 00:02:59 heh Mar 21 00:03:35 i saw an ad for this thing Mar 21 00:03:37 you stand on it Mar 21 00:03:41 and it vibrates Mar 21 00:03:41 really fast Mar 21 00:03:45 and you stand tehre for like 15 mins Mar 21 00:03:48 and its the best workoute ver Mar 21 00:04:06 heh Mar 21 00:04:11 And if you order now you get a free dvd! Mar 21 00:04:13 ctate: you need to find a way to increase heart rate Mar 21 00:04:23 yeah Mar 21 00:04:25 p90x seems to be pretty popular Mar 21 00:04:25 actually it was an ad for a fitness center full of them Mar 21 00:04:28 which can be tough for some people Mar 21 00:04:31 also, http://en.wikipedia.org/wiki/High-intensity_interval_training Mar 21 00:04:33 i have a friend who did p90x Mar 21 00:04:36 he is the most fit person i have ever met Mar 21 00:04:39 ctate: what kind of injury do you have? Mar 21 00:04:40 s/did/does/ Mar 21 00:04:47 p90x is tough, but supposedly effective Mar 21 00:05:00 readme: for me it's not such a problem; i have a gamy ankle but that's it; i can do a lot of useful exercise Mar 21 00:05:07 ctate: one can successfully do cardio while sitting, or even napping Mar 21 00:05:13 basically incorporates HIIT and a short exercise routine Mar 21 00:05:17 but i have a family member with a bad back and knees Mar 21 00:05:31 cardio while napping? Mar 21 00:05:34 o_O Mar 21 00:05:43 count me in! Mar 21 00:05:50 i wish to learn how to sleep REALLY ATHLETICALLY Mar 21 00:06:45 there are a couple apps that track sleep cycles Mar 21 00:06:58 I've been meaning to try them but can't seem to get my sleep steady enough, heh Mar 21 00:06:58 ctate: www.google.com/search?q=mini+stationary+bike&num=100&hl=en&tbm=shop Mar 21 00:07:04 this one is while sitting Mar 21 00:07:17 onr: sure; not usable by person with bad knees Mar 21 00:07:39 ctate: he/she can use arms for cycling Mar 21 00:07:46 like i said, for people with injuries it can be *very hard* to find good ways to do extensive cardio Mar 21 00:08:01 yes, handbikes might work Mar 21 00:08:08 though the back injury also comes into play Mar 21 00:08:18 back injuries ftl Mar 21 00:08:18 (she, in this case) Mar 21 00:08:23 yeah, ==pfn Mar 21 00:08:31 if you've got a bad back, try janda situps Mar 21 00:08:32 worst thing ever when your core is broken Mar 21 00:08:44 i could not get my HR on a hand bike, and it seems like too much stress on the shoulders Mar 21 00:08:52 HR high, that is Mar 21 00:08:52 when i do a regular crunch, my back cracks a lot and it feels funny, but janda is fine Mar 21 00:09:06 not enough muscle groups in your torso and arms to really get an effective cardio workout Mar 21 00:10:05 readme: yeah, she does mad low-impact ab work as management of the back condition Mar 21 00:10:17 but it's not heavy cardio Mar 21 00:10:45 ctate: why does she want a heavy cardio? Mar 21 00:11:01 heavy enough to be relevant for weight loss Mar 21 00:11:16 she can swim, but also hates swimming. :( Mar 21 00:11:20 hi :) Mar 21 00:12:34 cycling should be fine for someone with bad knees? Mar 21 00:12:51 zero impact Mar 21 00:12:55 wabz: it is :) Mar 21 00:14:10 ctate: you should re-thing mini stationary bikes (also can be used as hand bikes). they're inexpensive. maybe she can increase heart rate without hurting herself Mar 21 00:15:07 i want to write my own class extending ScanResult (from android.net.wifi.ScanResult) and "wrote" the following code: http://pastebin.com/vmiN5yEr but i get this error: "Implicit super constructor ScanResult() is not visible. Must explicitly invoke another constructor" what can i do create my own class based on ScanResult? Mar 21 00:16:05 interesting issue...Im trying to get the percentage of a color on a bitmap Mar 21 00:16:10 singesang...what constructors ARE visible? Mar 21 00:16:13 possible? Mar 21 00:16:40 canadiancow: i'm sorry but i don't understand... Mar 21 00:18:11 onr: i'm serious; she cannot use a bike. her knee damage doesn't permit it. Mar 21 00:18:23 but as people have pointed out this is pretty off-topic; sorry i got into it. Mar 21 00:19:08 ctate: hand cycling Mar 21 00:19:15 ah right right Mar 21 00:25:45 What do you guys do to have multiple notifications? Mar 21 00:26:32 err... post them? Mar 21 00:27:34 can i do setImageBitmap() twice on an imageView? Mar 21 00:27:59 sure. you'll lose whatever you set last, though. Mar 21 00:28:17 it looks like the first time i do it after the activity loads it works since there is no image resource set to it Mar 21 00:28:21 but if i hit my next button, it doesnt change it Mar 21 00:28:30 layout.setImageBitmap(bitmaps.get(position)); Mar 21 00:28:39 i checked, and that bitmap exists Mar 21 00:28:43 I don't think the problem has anything to do with setImageBitmap Mar 21 00:28:48 something else is wrong Mar 21 00:29:18 i did a tostring of the bitmap and i get android.graphics.Bitmap@402... Mar 21 00:29:25 so it looks like its there... Mar 21 00:29:49 oh, then let me rub my crystal ball Mar 21 00:30:03 it says your code is wrong Mar 21 00:30:06 k, thanks, lemme know when you've got the answer Mar 21 00:30:15 impossibru! Mar 21 00:30:17 haha Mar 21 00:30:34 https://gist.github.com/2142991 Mar 21 00:30:42 in my next() function Mar 21 00:31:21 https://gist.github.com/2142997 Mar 21 00:31:26 java color coding on that one Mar 21 00:31:49 line 50, it stays on that bitmap the whole time Mar 21 00:32:05 setimagebitmap wont work on the next or previous() functions Mar 21 00:32:13 dandaman1: set a breakpoint on line 86 and run it with the debugger Mar 21 00:32:20 I will bet you the code never gets hit Mar 21 00:32:46 readme: the log print out of 85 prints out Mar 21 00:33:06 that means nothing Mar 21 00:33:45 k, i dont know how to use a debugger, im just going to put a log print out after Mar 21 00:33:50 just set the breakpoint, by clicking on the left margin and clicking debug Mar 21 00:33:52 its easy Mar 21 00:34:02 on the left margin you see, the grayish area Mar 21 00:34:05 you just click there Mar 21 00:34:07 then click run->debug Mar 21 00:34:20 if the code hits the breakpoint you'll be greeted by a dialog "do you want to open the debug perspective" Mar 21 00:34:28 if it doesn't, the code isn't getting hit Mar 21 00:34:30 and you need to look into that Mar 21 00:35:02 we shall see Mar 21 00:35:40 oops, i just ran it normally Mar 21 00:35:49 regardless, the log print out i put after the line came out Mar 21 00:35:53 ill try running the debugger now Mar 21 00:36:51 prompted me to open the debugger Mar 21 00:37:04 readme: what should i be looking for in here? Mar 21 00:37:20 also, you're not using ImageView Mar 21 00:37:26 you're using some non-standard class, GestureImageView Mar 21 00:37:33 what is up with that thing Mar 21 00:37:39 dandaman1: did the debug perspective open? Mar 21 00:37:45 yeah Mar 21 00:37:55 ok, then is the line setImageBitmap highlighted in green? Mar 21 00:38:02 yes Mar 21 00:38:09 inspect the variables Mar 21 00:38:13 in the variables view Mar 21 00:38:24 to make sure they are the ones you expected Mar 21 00:38:27 also, do you have the full code of GestureImageView in your workspace? Mar 21 00:38:58 (instance members will be under "this" -- click it to expand) Mar 21 00:39:23 hmm Mar 21 00:39:35 yeah the only thing under there is this$0 Mar 21 00:39:37 next thing to do is click step into and see where it goes Mar 21 00:39:40 readme: its a jar file i added Mar 21 00:39:44 does the exception get thrown, or? Mar 21 00:39:58 I think it's possible the IOException is getting thrown and you are simply not noticing the stack trace Mar 21 00:40:00 that was my first theory Mar 21 00:40:10 inside of this$0 is just a bunch of variables that start with m Mar 21 00:40:20 mContext is collapsible Mar 21 00:40:24 and my variables are in there though Mar 21 00:40:35 yeah, you will have to find yours as others will be there too sometimes. Mar 21 00:40:55 readme: found the bitmap variable, its definitely there Mar 21 00:40:59 it's better than logging though, because it allows you to freeze the state of the program. that rules out a lot of problems that can occur when using logging Mar 21 00:41:07 ok Mar 21 00:41:12 in the debug pane, click step into Mar 21 00:41:17 er, over Mar 21 00:41:21 read the tooltips to find it Mar 21 00:41:24 layout appears to be there too Mar 21 00:41:51 step over Mar 21 00:42:13 nothing happened Mar 21 00:42:59 BUT Mar 21 00:43:02 check this out Mar 21 00:43:11 the bitmap id it is set to is the new one i set it to Mar 21 00:43:22 however my screen still displays the old one Mar 21 00:43:32 do i need to refresh the image or something? Mar 21 00:43:51 I don't think so, but you can try calling invalidate() Mar 21 00:43:59 (since it's not the stock imageview and all) Mar 21 00:44:01 what's that gonna do? Mar 21 00:44:08 cause the view to redraw itself Mar 21 00:44:17 k lemme try that Mar 21 00:45:50 another theory is that the web service handler is returning the same bitmap Mar 21 00:45:57 have you tested to make sure this isn't true? Mar 21 00:45:59 readme: worked for me Mar 21 00:46:03 oh, cool Mar 21 00:46:08 invalidate it is! Mar 21 00:46:08 it must be something your custom ImageView has changed Mar 21 00:46:21 in a regular ImageView, you shouldn't have to call that Mar 21 00:46:29 not mine, some dude whose code i grabbed from a github repo :\ Mar 21 00:46:34 heh Mar 21 00:47:17 feel free to follow me back Mar 21 00:47:47 on gh Mar 21 00:48:02 will do Mar 21 01:08:18 Greetings all. Does anyone know if the issues identified here (http://code.google.com/p/android/issues/detail?id=21742#makechanges) with "custom views" and the the android compatibility library has been resolved or how to work around this? Assistance would be greatly appreciated. Mar 21 01:10:49 hey guys, any one using HoloEverywhere Mar 21 01:10:49 ? Mar 21 01:13:09 shipit what's that Mar 21 01:13:25 canadiancow|work: https://github.com/ChristopheVersieux/HoloEverywhere Mar 21 01:13:37 basically make pre-ICS apps look like ICS Mar 21 01:14:09 cool Mar 21 01:14:13 does it work well? Mar 21 01:14:18 JakeWharton ^^^ Mar 21 01:14:27 I haven't tried so far Mar 21 01:14:42 wondering if I should indeed undertake the exercise Mar 21 01:14:57 and/or if it's even worth it to begin with Mar 21 01:16:55 if it works, it's going in my app :P Mar 21 01:16:57 well Mar 21 01:16:58 hmm Mar 21 01:17:02 it looks nice Mar 21 01:17:03 BUT Mar 21 01:17:09 it would be inconsistent with the rest of the OS Mar 21 01:17:13 yes Mar 21 01:20:20 i shall bookmark it and do nothing at present Mar 21 01:20:21 ;) Mar 21 01:22:18 shit if that looks nice I am using it Mar 21 01:22:20 no doubt about it Mar 21 01:35:11 No one has encountered this problem with android compatibility library and custom list views? (http://code.google.com/p/android/issues/detail?id=21742#makechanges) Mar 21 02:03:49 so i have a bet with someone about how many users a certain app will have by the end of the day Mar 21 02:03:54 anyone want to download and play? Mar 21 02:03:58 i need a few hundred thousand =\ Mar 21 02:08:40 heh, good luck with that Mar 21 02:13:08 Is it a good practice to bind to a service in the main activity and store the service reference in the application object (for potential usage in a class outside of an object)? Mar 21 02:13:58 no, it is not Mar 21 02:14:06 Why not bind from the application instead? Mar 21 02:14:22 You can bind a service in an application object? Mar 21 02:14:34 Thought it needed to be in an activity? Mar 21 02:15:25 mikey|n1, ?? Mar 21 02:17:04 you can bind from anywhere you have a context Mar 21 02:17:42 paradoxx: global state is not ever a good thing for program design Mar 21 02:18:37 readme, Is that a suggestion that I do the binding in the local activities instead then? Mar 21 02:19:17 paradoxx: yes, but lets discuss why you think a bound service is the solution now Mar 21 02:19:29 why are you using a service, and why are you binding to it in each activity Mar 21 02:19:52 Well, I am using a service to manage downloading of data via API calls in the background Mar 21 02:20:20 that's a legit use of the service. why does each activity need to access it? Mar 21 02:20:50 Well, not really the activity. I need to access the fucntions of the service in a CursorLoader Mar 21 02:21:08 why Mar 21 02:21:19 if you need to bind then do it in each activity that needs it Mar 21 02:21:22 why don't you instead have the service write to sqlite Mar 21 02:21:32 paradoxx: extend Application class, bind in that, provide a way for your activities to get hold of the service Mar 21 02:21:48 Because the loadInBackground function is where I get the cursor from the API calls Mar 21 02:22:02 Or in the least, taht is where I initiate the calls Mar 21 02:22:30 does the service download stuff *and* write it to sqlite *and* return the cursor to you? Mar 21 02:23:40 readme, The service downloads and writes to the SQL db. However, the service also checks the local db if the data already exists before it does the pull. In the case that does exist it broadcasts an Intent to let the activity know that it should pull the data Mar 21 02:24:10 If it does exist locally then I pull the cursor Mar 21 02:24:17 http://developer.android.com/reference/android/database/ContentObserver.html Mar 21 02:24:21 If it does not exist then the list waits for the intent Mar 21 02:25:46 readme, kk. Looking into that then. Mar 21 02:25:52 your architecture will work, and it's better than the idea of storing it in global state by far. Mar 21 02:26:02 Just a quick note, how would that change the design? Mar 21 02:26:03 but if you used contentprovider, you would be able to remove the broadcast Mar 21 02:26:11 nice Mar 21 02:26:23 example for providers is in the iosched app Mar 21 02:26:45 but then you need to implement a content provider... Mar 21 02:26:52 yeah, that is a drawback, hahaha Mar 21 02:26:53 Does it work with sqldbs or only with content providers? Mar 21 02:26:58 oh Mar 21 02:26:59 :) Mar 21 02:27:02 >.< Mar 21 02:27:06 you can stick with what you have now Mar 21 02:27:15 Was kinda trying to get away with the CP Mar 21 02:27:22 without* Mar 21 02:27:24 o_O Mar 21 02:27:25 content providers are designed to be backed by sqlite Mar 21 02:27:26 CP? Mar 21 02:27:33 Content Provider Mar 21 02:28:14 I think I'd probably take a look into content providers for v2. But not sure I could atm Mar 21 02:28:49 But given I'm not using a CP, would you still recommend I not do the binding in the global service? Mar 21 02:29:22 application object* Mar 21 02:30:39 right Mar 21 02:30:49 do not bind globally Mar 21 02:35:04 When you do not use global state, it is clear what the dependencies of each class are. Globals turn it into spaghetti. Mar 21 02:35:14 Anyone in here some sort of layout master? I want to create a ListView, each row of the list view should contain two columns. Column 1 will have two rows in it, each with a TextView, Column 2 will contain a button, and I want column 2 to be as tall as the two TextViews. Is this possible? Mar 21 02:37:27 yeah, it's easy to do with LinearLayout, but it would involve using a nested layout for the two TextViews Mar 21 02:37:42 doing it with RelativeLayout would be more efficient but wouldn't be as straightforward to figure out Mar 21 02:38:29 see the layout_weight attribute if you decide to try linearlayout Mar 21 02:38:38 readme, will do, thanks Mar 21 02:38:48 ctate still around? Mar 21 02:38:57 (you'll avoid specifying dimensions this way, beyond telling something to use the available space) Mar 21 02:40:36 readme, pfn When would you recommend implementing a Content provider as opposed to just reading/writing directly to the SQL DB? Mar 21 02:41:02 cp when sharing data across processes Mar 21 02:55:58 I'm using animation.setBackgroundResource(R.drawable.splashanimation); where splashanimation is a xml layout with an with item images nested within it, whenever I add more than 16 different images it crashes, any one know why? I can do like 50 items, as long as it isn't over 16 DIFFERENT images Mar 21 02:56:06 They are .png's if that makes a difference. Mar 21 02:56:42 It works with over 16 images on my emulator, but it's super delayed and sucks due to the fast that the emulator is slow, but when I try it on my droid x2 it crashes, untill i make it under 16 images Mar 21 02:56:45 how big are teh pngs? Mar 21 02:56:50 maybe it's OOM Mar 21 02:56:52 like 70-75k Mar 21 02:56:55 kb Mar 21 02:56:58 each Mar 21 02:56:59 you have a stacktrace Mar 21 02:57:12 Can you explain what that is, I'm still new to java/android Mar 21 02:57:23 out of memory Mar 21 02:57:31 paset your stacktrace from logcat Mar 21 02:57:35 paste* Mar 21 02:57:41 k, sec Mar 21 02:57:48 pastebin it? Or into the channel? Mar 21 02:57:53 ... Mar 21 02:58:55 http://pastebin.com/qmMcpKpV Mar 21 02:59:31 hm Mar 21 02:59:36 try build clean Mar 21 02:59:37 that might fix it **** ENDING LOGGING AT Wed Mar 21 02:59:58 2012