**** BEGIN LOGGING AT Fri Jun 08 02:59:59 2012 Jun 08 03:07:47 oh recurring tasks was a bitch but done now Jun 08 03:36:33 is it possible to define a static array of no size and then allocate data to it froma file? i cant know the size till after i read it Jun 08 03:37:08 i probably knew how to do this last year when i frist started looking at android dev but ive been away from it for a while. gettin back in Jun 08 03:43:32 I think you can do that with list Jun 08 03:44:01 and convert it to an array if you need it as an array Jun 08 03:49:07 need to read in a blob from a sqlite database Jun 08 03:49:10 into the array Jun 08 03:55:47 hello can anyone help me with this question plz? http://stackoverflow.com/questions/10889559/draw-chart-legend-on-canvas-and-add-to-different-layout Jun 08 03:57:28 I440r ByteArrayInputStream or something like that Jun 08 03:58:03 erm. Jun 08 03:58:26 * I440r looks but i dont like the idea of a byte by byte read of a blob. it should be read in as ONE read Jun 08 04:01:04 you can Jun 08 04:01:14 pass it a buffer to read into Jun 08 04:02:48 anyone? Jun 08 04:02:49 yo dawg i heard you like buffers Jun 08 04:02:51 only examples i can find use successive byte reads to fill a byte buffer. i cannot see how to read a sqlite blob into an array of shorts Jun 08 04:05:12 99% of the blob hits i find on google are how to store and retrieve image data and everyone ive talked to in here says DONT use sqlite for images :/ Jun 08 04:12:08 why would you use it for images? just store the path to the image in external or internal storage. Jun 08 04:12:14 im not Jun 08 04:12:17 oh ok Jun 08 04:12:31 thats the point, 99% of the examples related to blobs from google are all about this Jun 08 04:12:55 better file a complaint with google then Jun 08 04:12:58 i cannot find anything that will help me "***READ ONLY***" a blob of data into an array of shorts or an array of ints Jun 08 04:13:06 not googles fault Jun 08 04:13:15 thatsthejoke.jpg Jun 08 04:13:46 Can anyone help? I'm getting a weird crash on Lenovo Thinkpad Tablet. I'm using android_native_app_glue and I'm getting an uniformative WIN DEATH logcat message when I do any input... The app works fine on Kindle Fire, not sure what to look at. Jun 08 04:22:07 yea i cant find anything about reading blob data into an array of anything other than bytes Jun 08 04:24:30 why would you want to use a type other than byte? Jun 08 04:25:09 beause they are shorts? Jun 08 04:25:49 oh, you're storing a blob, and in that blob, you previously wrote out, one short at a time? Jun 08 04:25:50 they are 16 bit items that have been stored in a blob. i need to read them into an array of 16 bit items NOT 8 bit items Jun 08 04:26:00 no not exactly but close enough Jun 08 04:26:06 android did not create the blob Jun 08 04:26:30 a data manipulation application on my pc created that "array" and write it and other things into the db Jun 08 04:26:37 "Wrote" Jun 08 04:27:26 here's your answer Jun 08 04:27:29 http://stackoverflow.com/questions/277944/best-way-to-read-structured-binary-files-with-java Jun 08 04:27:46 lets consider it a 'structured binary file' where the structure us [short, short, ...] Jun 08 04:28:13 so the blob is a "file" for this eample? Jun 08 04:28:26 that may acutally pose a problem.. Jun 08 04:28:27 hmm Jun 08 04:28:32 lets see what RandomAccessFile really is Jun 08 04:28:49 it has readShort(), which is what you want Jun 08 04:29:16 ok NO. i dont want to do 1024 reads *2 i want to do TWO reads Jun 08 04:29:34 i have two of these tables of shorts, each with 1024 entreis. Jun 08 04:29:39 one read per blob. Jun 08 04:32:14 unless of course theres just no other way. but that would be kind of DUMB in my opinion, making java kind of crippled Jun 08 04:32:20 in an annoying way Jun 08 04:32:22 do it yourself Jun 08 04:33:00 read 2048 bytes of data and parse each two-byte pair as a short Jun 08 04:33:03 done Jun 08 04:33:10 yeah, that Jun 08 04:33:43 java ain't c Jun 08 04:33:58 sometimes you don't get everything given to you by the platform Jun 08 04:34:17 in C, you could just use a cast and use pointer arithmetic to do the job Jun 08 04:34:23 I think that is what he wants, but java does not have this Jun 08 04:34:48 leeds i do embedded development. i work very close to the hardware with NO operating system. this is what low level coding is all about. Jun 08 04:34:52 java is not low level Jun 08 04:35:16 * Leeds bows down at the altar of I440r and his leet low-level skills Jun 08 04:35:36 hey I know how you can do what you want Jun 08 04:35:37 you could have written the code to handle your own weird data format in the time you've been in here asking how to get Java to do it for you Jun 08 04:35:38 use the NDK Jun 08 04:35:41 of course im a nub at android and your all experts so i expect you to belittle me when i have problems Jun 08 04:35:43 :P Jun 08 04:36:20 whats up folks Jun 08 04:36:42 QubeZ: we're just belittling I440r Jun 08 04:37:04 yeah he thinks he's writing code for a pdp11 Jun 08 04:37:09 point an dlaugh Jun 08 04:37:12 oh thats messed up Jun 08 04:37:19 lol Jun 08 04:37:24 because in their godly java world anyone who is just starting out does not deserve anything other than being belittled Jun 08 04:38:15 I440r: you're asking something unusual... you've been given advice on how to do it, but you've rejected it because it doesn't work exactly how you want Jun 08 04:38:45 it's quite possible you have hit a spot where Java is weak - if so, deal with that, you might have to write more code or do things in a more complicated way than you'd want to... so be it Jun 08 04:39:04 is the android SDK available in punchcard form? Jun 08 04:42:14 I440r: is that unreasonable? Jun 08 04:43:30 no. being a jerk about it when all im trhying to do is find the most efficient method of solving a problem... thats unreasonable Jun 08 04:43:38 ty for the input tho Jun 08 04:44:00 gotta reboot Jun 08 04:44:09 what's 'reboot'? Jun 08 04:48:08 To Do Mapr is nearing 1000 downloads Jun 08 04:48:47 congratulations Jun 08 04:49:03 i guess the first 1000 is the toughest (i hope) Jun 08 04:49:08 working on the ios version? Jun 08 04:49:10 i am having trouble connecting to my verizon Samsung Galaxy tablet... is there a trick to it. I have it working with my other android devices. Jun 08 04:49:16 any ideas? Jun 08 04:49:19 QubeZ: i think --- don't measure in downloads Jun 08 04:49:21 I am on a mbp Jun 08 04:49:34 readme: yea, got all the DB and backend stuff hooked in...just waiting on my UX guy to come up with a UI and I'll start hooking that in Jun 08 04:49:36 QubeZ: i've put a really shitty app on the market before and had it get lots of downloads right away Jun 08 04:49:39 but that means not much! Jun 08 04:49:49 Core Data is really cool, didn't have to mess much with the sqlite backend Jun 08 04:49:49 it's about whether the users are returning and using it Jun 08 04:50:03 how is your user engagement? Jun 08 04:50:13 readme: true, I'm getting good results from the Flurry analytics Jun 08 04:50:39 you could launch your premium services and make more than some guy with a bazillion downloads if all he offers is cat pictures Jun 08 04:50:41 lots of returning users daily (800 sessions per week from 50+ users) -- word of mouth Jun 08 04:51:10 i've still not launched a free version of my app Jun 08 04:51:20 50 total user installs, 31 active device installs Jun 08 04:51:31 readme: nice Jun 08 04:51:40 and I know those 31 are proably using it, because it just needs to be turned on then it shows up when you get a call.. Jun 08 04:51:47 I get about 1 user a day Jun 08 04:52:16 once I finish up some contract work i'm going to add some new features and maybe make a free trial Jun 08 04:52:23 and try some actual promotion Jun 08 04:52:43 yea get that in-app purchasing/upgrade going Jun 08 04:52:57 hmm Jun 08 04:53:09 I don't want to change the paid version as it is already Jun 08 04:53:20 like, replace that with a free and option to upgrade.. I don't wanna do that Jun 08 04:53:29 you should have made it free with time trial then upgrade in-app Jun 08 04:53:41 right, dont wanna do that now Jun 08 04:53:52 that might have been better Jun 08 04:57:40 i did an interesting extreme couponing adventure today Jun 08 04:58:32 whats that Jun 08 04:58:51 I found this $1 off Whole Foods coupon for Think Thin protein bars then another $1 manufacturer coupon -- they're $1.99. So I went to Whole Foods after printing 200 coupons of each and since its no restriction on using on each bar... I bought 200 bars. After all discounts and overages applied, I walked out with 200 protein bars + $37 Jun 08 04:59:38 so I talk to the manager since they expire end of this month, he told me I can keep coming back as much as I want and so I told him I want to order 1000. They're going to order them for me so I just print off $1000 coupons, give them to the manager and they give me the 1000 bars + $185 Jun 08 04:59:43 wtf Jun 08 05:00:00 you profit? Jun 08 05:00:20 You should blog about this Jun 08 05:00:28 post on the internet and put an ad on it too, profit even more Jun 08 05:00:47 ya, i just got 200 today and walked out with $37 because they ended up being $1.79 per bar since they are on special if you buy 10 -- since I bought 20x10, I got 21 cents back on each one (made money) Jun 08 05:01:06 so I gave a box to a homeless dude on the way home hehe Jun 08 05:01:17 awesome Jun 08 05:02:21 was a nice manager too, he sat there patiently and counted all 400 coupons (1 of each type) and kept thanking me for my patience Jun 08 05:15:07 goodguy annoying customer: is polite to you while he redeems his 200 coupons Jun 08 05:15:31 Is anyone here? Jun 08 05:17:25 I have a big list of strings, and everyone someone presses a button its suppose to show the next string, the only way I can think of is by using a switch statement, is there a better way? Jun 08 05:17:58 is Android 3.1 known to be unstable? Jun 08 05:18:31 Rumor has it that Android OpenGL ES 2 contexts can be shared. Is this true? Jun 08 05:18:44 between threads? Jun 08 05:18:57 But that only one can be active (system-wide) at any given time. Jun 08 05:19:07 Between threads etc. Jun 08 05:19:53 it is my understanding that you have to create an opengl es 2 context in each thread, but within the same Sharegroup, thus allowing the two contexts to share resources Jun 08 05:20:20 shit I want a new bike Jun 08 05:20:42 What about the rumor that only one can be active globally at any given time? Jun 08 05:22:00 Not too sure, if you close an OpenGL ES 2 app, you need to destroy the context, so another app could use it, so I would say only one can be active at a time Jun 08 05:22:16 The only thing I think OpenGL allows is multiple active contexts in a Sharegroup Jun 08 05:23:34 Well it seems suspicious to me. In no other form of OpenGL is it true that only one can be active at a time. Jun 08 05:23:45 Perhaps he meant only one active per shared group. Jun 08 05:23:51 But that is not the case in iOS. Jun 08 05:24:02 Generally it should be one active per thread. Jun 08 05:25:02 I agree that I think it is 1 active per thread Jun 08 05:25:14 but only through a sharegroup? Jun 08 05:25:22 can you have more than 1 at a time Jun 08 05:25:25 No, regardless of share groups. Jun 08 05:25:59 Not sure Jun 08 05:26:35 how would you destroy the opengl context? Jun 08 05:27:17 eglDestroyContext Jun 08 05:28:21 Is this about my questions, jeppy? Destroying them is the same as normal. Jun 08 05:28:43 But I can bet that resources made in the destroyed context will be lost to the other contexts. Jun 08 05:29:06 i haven't worked much with them, just wondering how it should be destroyed because I didnt know it had to be Jun 08 05:29:57 Technically it doesn’t but it is good practice to destroy everything on shut-down. Jun 08 05:30:51 If I bind a vertex buffer on thread 0 to context 0, then bind on thread 1 to context 1, does the binding on context 0 get changed if they are shared contexts? Jun 08 05:31:29 Talking about a Sharegroup now? Jun 08 05:31:36 Yes. Jun 08 05:31:48 My research suggests that is the case. Jun 08 05:32:20 Yep, Sharegroups share resources, so the same vertex buffer is accessible from both contexts, if one changes something it is changed for both. Jun 08 05:32:59 Well resources may be shared but are you sure that explicitly implies sharing state too? Jun 08 05:33:17 (Although again the only way for my results to happen is if state is shared too.) Jun 08 05:34:22 I don’t mean changing an attribute on a vertex buffer here. Jun 08 05:34:28 Which would of course change on all contexts. Jun 08 05:34:38 No, sorry, each context is an OpenGL state machine, so no state sharing. Jun 08 05:34:47 I am just talking about the OpenGL state, which includes the last bound buffer. Jun 08 05:35:12 i wish dev's could comment on reviews Jun 08 05:35:33 im more concerned with commenting on good reviews to let users know those features are coming that they are requesting... some users dont follow your twitter feed Jun 08 05:36:34 create your own personal ad space that shows a single tweet Jun 08 05:36:46 However if each context is a copy of state, I have to find another explanation for the results I am getting. Jun 08 05:36:59 What is happening? Jun 08 05:39:13 I have 2 threads, each with their own shared contexts. Under race conditions, the thread that binds vertex buffer A discovers when it tries to unbind it that it is no longer bound, though a log of thread ID’s shows that it was the same thread that bound it. Jun 08 05:39:40 After binding it to context A, the second thread bound a vertex buffer 0 to context B. Jun 08 05:39:56 That is what was discovered by the first vertex buffer. Jun 08 05:40:03 A binding of 0. Jun 08 05:40:23 Yet I confirmed that both threads bound their own vertex buffers and unbinded them. Jun 08 05:44:47 I get users with random sockettimeoutexception errors -- I have my connectTimeout set to 8 secs and readTimeout set to 8 secs Jun 08 05:44:49 You are confirming that they bind their own vertex buffers, by checking the ids in each thread prior to binding? Jun 08 05:44:52 should this be higher? Jun 08 05:45:31 Yes. Jun 08 05:48:13 I also confirm that the contexts assigned to each thread stay on those threads. Jun 08 05:48:17 Never swapping over. Jun 08 05:48:19 qubez, why not catch the exception and report to the user that the connection failed Jun 08 05:49:11 can you use multiple context with one surface view? Jun 08 05:49:49 jeppy: I am gracefully handling it, I still send the report to myself via ACRA so I know what caused it (i.e. I can see the data they are tryign to generate). But I'm wondering if there is a way to better handle the situation. Jun 08 05:49:57 preferably a better way to do this: http://pastebin.com/gShsxV55 Jun 08 05:50:03 jeppy, it is possible yes. Jun 08 05:53:45 QubeZ, i think you can set a socket timeout the same way you are doing the read and connection timeouts Jun 08 05:55:21 QubeZ, HttpConnectionParams.setSoTimeout(params, socketTimeout); Jun 08 05:56:02 will look at that, thanks Jun 08 05:58:36 QubeZ, http://pastebin.com/JmFNGX6Q Jun 08 05:59:02 thank you Jun 08 05:59:04 that is based on something a found on stackoverflow a while ago. not coming up right now Jun 08 05:59:21 I havent tested https though Jun 08 05:59:56 its only one user experiencing this with a Bionic Jun 08 06:00:05 so its not critical but might be symptomatic of a bigger problem Jun 08 06:00:39 so I'd like to optimize where ever I can, although Donald Knuth says premature opt is root of all evil... i'll have to leave this along until I profile that part of the code Jun 08 06:01:59 i'm off to bed, will tackle this tomorrow Jun 08 06:02:02 thanks jeppy Jun 08 06:03:07 QubeZ you little bitch Jun 08 06:11:40 nice Jun 08 06:11:52 11pm and someone is outside operating a god damn jackhammer Jun 08 06:15:08 http://www.upload.ee/image/2410708/clipboard_upped.png Jun 08 06:15:13 What am I doing wrong? Jun 08 06:15:18 http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getSupportedVideoSizes%28%29 Jun 08 06:29:20 ah, just spotted the almost invisible "Since: API Level" Jun 08 06:29:23 on the right Jun 08 06:33:20 either get used to looking for it, or set your API level at the top-right of the page Jun 08 06:33:37 that'll grey out calls which aren't available at your target level Jun 08 06:41:51 Getting used to it isn't a problem since I found it now, but thanks for the hint about selecting the level. Jun 08 06:43:41 did that guy figure out his byte buffer to short issue ? Jun 08 06:43:46 haha Jun 08 06:45:47 g00s - stfu Jun 08 06:46:32 I came up with my latest mil $ idea Jun 08 06:46:51 i come up with million $ ideas all day long Jun 08 06:46:55 and i'm still broke Jun 08 06:47:07 one that I believe I can accomplish in a relatively short amount of time Jun 08 06:47:12 and make gobs and gobs of cash off Jun 08 06:47:42 sharing is caring... Jun 08 06:47:45 haha Jun 08 06:48:19 I'll share that it relates to a very very specialized spatial database Jun 08 06:49:01 god damn it Jun 08 06:49:14 vmware registered all of windows known extensions to itself Jun 08 06:50:40 well i hope you guys didn't have CT scans when you were kids "NIH study finds childhood CT scans linked to leukemia and brain cancer later in life" Jun 08 06:50:58 haha Jun 08 06:50:59 go figure Jun 08 06:51:02 everything causes cansers Jun 08 06:54:37 i just sold my theory of computation book for $120 :D Jun 08 06:54:47 just before the 3e comes out in 2 weeks XD Jun 08 06:54:58 * g00s loves selling books on amazon Jun 08 06:56:51 a while back I came up with an idea for distributed b+trees for the purposes of storage agnostic db indexing... and found some japanese folks that were researching the very concept Jun 08 06:56:56 and how I was gonna go about doing it Jun 08 06:57:16 their research was published in some "big data" summit book Jun 08 06:57:21 the mf was like 900$ Jun 08 06:57:25 I can telnet to the virtual device but I can't adb to it, any idea why that is? Jun 08 06:57:37 adb isnt running? Jun 08 06:57:41 what os Jun 08 06:57:55 if it linux, you may need to setup udev for permissions for avg users Jun 08 06:58:15 it's linux indeed, thanks Jun 08 06:58:55 shouldn't need perms for the emulator, I think Jun 08 06:59:17 uses a socket rather than a device Jun 08 06:59:19 ron_frown: were you reading a book about this ? Jun 08 07:00:13 side note: adb to the actual device over usb works well Jun 08 07:00:22 anyhow, this is the bible http://www.amazon.com/Foundations-Multidimensional-Structures-Kaufmann-Computer/dp/0123694469 Jun 08 07:00:36 you can kill somebody with this book, its enormous Jun 08 07:00:47 * g00s hits ron_frown with the book Jun 08 07:00:51 except Chuck Noris. Jun 08 07:01:09 Leeds - its in the setting up your environment for building the os Jun 08 07:01:12 but for the adb aspect Jun 08 07:01:38 ron_frown: I'm assuming Utopiah is using one of the standard SDK images Jun 08 07:02:09 he is yes Jun 08 07:02:28 I would assume so too, but if you are required to setup udev to use adb to sync and push shit to a device Jun 08 07:02:37 I'd THINK you'd be required to do it for out of box images Jun 08 07:02:48 but that's only if you're using a hardware USB port, not for the emulator Jun 08 07:02:55 it'd be easy enough to try, launching 'sudo adb shell' Jun 08 07:03:03 no need for sudo either Jun 08 07:03:10 it's just a connection to port 5555 Jun 08 07:03:28 I was totally not aware adb would auto establish tcp connections as well Jun 08 07:03:35 was aware you could tell it to use tcp instead Jun 08 07:03:49 I assume it checks localhost:5555 by default, as well as USB ports Jun 08 07:04:42 g00s - that actually looks like a nice book Jun 08 07:10:13 hmmm doesnt change anything, stll work with telnet but nothing on adb devices, sometimes it appears but only as offline Jun 08 07:11:03 for what it's worth, have you tried restarting the emulator? it sometimes starts (started?) in a weird mode where networking failed Jun 08 07:11:22 about 10 times Jun 08 07:16:00 well Ill test on the actual device and hope not to brick it :-# Jun 08 07:20:34 man, htc is in deep shit Jun 08 07:20:41 g00s: ? Jun 08 07:21:09 ms refuses to allow them to do windows 8 rt tablets, and apple is filing a second injunction against the One X Jun 08 07:21:48 actually, the 2nd injunction is against all HTC handsets Jun 08 07:22:32 and samsung is kicking their butt too Jun 08 07:22:43 well, sony's teamed up with htc for their mobile platform Jun 08 07:22:57 HTC doesn't have a good patent portfolio for defense Jun 08 07:24:03 nokia also filed an itc injunction against them also Jun 08 07:25:05 pragma-: so did dr dre :) Jun 08 07:25:37 Dre isn't worth more than a small marketing gimmick Jun 08 07:25:44 haha, i was just joking :) Jun 08 07:26:10 i only know dr dre from a couple of years in the 90's Jun 08 07:27:11 i haven't recognized him since Jun 08 07:27:36 I only noticed that brand because of HTC and searching for 'phones Jun 08 07:28:16 given that Dre 'phones were on "do not buy" list... HTC didn't get bonus points from partnering with them ;) Jun 08 07:29:37 whats a 'phone? Jun 08 07:31:06 headphone Jun 08 07:31:09 *headphones Jun 08 07:40:44 seems pretty cool http://www.gizmag.com/compulab-intensepc-third-gen-core-i7-upgrade/22837/ Jun 08 07:40:49 fanless pc Jun 08 07:40:52 * g00s hates fans Jun 08 07:44:25 get a good case, and you don't need a cool cpu to run fanless Jun 08 07:44:55 if it ran Pentium IV without fans, it will run most new things ^_- Jun 08 07:45:09 hehe, pentium iv Jun 08 07:46:28 yeah, the failed try by Intel to get into personal nuclear power Jun 08 07:48:34 p_l|backup: aren't they working on pocket portable nuclear power now :P Jun 08 07:48:50 atom : there is something about that name, like splitting them Jun 08 07:50:23 fission Jun 08 07:51:02 though actually "atomos" meant "undividable" iirc Jun 08 08:58:46 http://en.wikipedia.org/wiki/Spongiforma_squarepantsii Jun 08 09:03:49 hi, i searched the interwebz a little bit for this: it seems that when i have a button inside a scrollview clicks on the button are only passed through to it once the scrollview has stopped scrolling for a bit Jun 08 09:07:59 tapas: yes, you woudln't want the user to accidentally click on some random button while flinging through the view Jun 08 09:09:21 pragma-: true.. Jun 08 09:09:23 hmmm Jun 08 09:09:35 i'll use that as an argument for our client then.. Jun 08 09:09:39 it's a good argument.. Jun 08 09:09:50 if they want it differently we'll have to redesign the app Jun 08 09:30:59 anyone else got spam from leadbolt.com? Jun 08 09:31:52 "several of our advertisers requested to advertise on " Jun 08 09:31:59 hello all Jun 08 09:32:41 can someone tell me how I can get the ports used by a specific app (given the pid or die package name) ??? netstat seems to be a bit downgraded on android :) thx Jun 08 09:35:15 Pinas: if you're rooted, you can use https://play.google.com/store/apps/details?id=com.googlecode.networklog Jun 08 09:36:00 well thats a good start, but I need such features inside my own code :) Jun 08 09:36:13 oha nice it's open source :) Jun 08 09:36:58 he's working on a neat firewall app too that has a learning mode Jun 08 09:37:26 the firewall apps on the market right now just allow or block specific apps Jun 08 09:37:52 this one will be able to choose to block specific addresses within an app instead of the entire app Jun 08 09:38:08 (hello ad-block!) Jun 08 09:38:39 i wish droidwall did not require root Jun 08 09:38:46 droidwall sucks Jun 08 09:38:50 sounds like a great idea Jun 08 09:39:11 what I need to do is to map port(s) to a running app in order to be able to get the network traffic Jun 08 09:40:49 this app seems to do something similar - so I hope that the source can help me :) Jun 08 09:41:08 a decent adblock type deal is the whole reason im looking forward to being able to root my phone Jun 08 09:41:13 if nothing else, it has a netstat parser that you may find useful Jun 08 09:42:37 pragma - this parser parses the output of netstat or /proc/net/tcp ??? Jun 08 09:43:08 On that note, how do I properly backup my Contacts, SMS, Apps (app data),... when I want to install a new ROM or move to a new phone alltogether? Jun 08 09:43:12 Hi, I'm using TranslateAnimation to slide-in my Side-Menu from the left. I do view.setX(0) on onAnimationEnd to update the real position of the menu after the animation is done. I'm getting an annoying flicker at the end of the animation, anyone knows what can be done about that? Jun 08 09:43:39 Pinas: /proc/net/* Jun 08 09:43:57 tcp, udp, tcp6 and udp6 Jun 08 09:44:13 https://github.com/pragma-/networklog/blob/master/src/com/googlecode/networklog/NetStat.java Jun 08 09:44:20 ok nice, I thought about doing the same but I am quite sure that your (is it your tool) solution is better :) Jun 08 09:45:10 it's always safe to assume that pragma- provides a better solution Jun 08 09:45:20 pragma- this is the parser ? Jun 08 09:46:45 :log Jun 08 09:47:27 ah selenium irc has a bot that will give log.txt when i hit above command :s Jun 08 09:52:40 anyone can help me with the animation? Jun 08 10:09:33 wow, philip zimbardo on reddit ? Jun 08 10:09:36 :O Jun 08 10:10:17 you say that name as if I should have heard of him Jun 08 10:10:41 well, he is famous in his line of work :) Jun 08 10:11:01 oh, another nutjob head shrink Jun 08 10:11:15 pragma-: yeah, but you aren't a hair on his ass Jun 08 10:11:19 XD Jun 08 10:11:27 kinky Jun 08 10:13:08 hey Jun 08 10:13:44 I'm having an app here, which is still displaying "old" interface widgets on ICS (progressbars, etc...), what exactly do I have to change for it to use the "native" ICS widgets? Jun 08 10:14:20 is having an app like having a baby ? Jun 08 10:14:45 Mavrik: the targetSdk Jun 08 10:14:59 g00s, yeah, very similar than being slapped for acting like a wiseass ;) Jun 08 10:15:29 pragma-, ok, thanks :) Jun 08 10:15:45 pragma-: will targetsdk change the look of widgets ? i left that at 8, and it looked fine on ics Jun 08 10:16:37 g00s: yes Jun 08 10:16:47 it will look better at 15! Jun 08 10:17:18 wut Jun 08 10:17:34 dat Jun 08 10:17:42 where is SimonVT Jun 08 10:18:59 i assume by widgets you mean checkboxes and stuff Jun 08 10:19:19 not the home screen app widgets thing Jun 08 10:19:23 yeah Jun 08 10:19:52 managed to find docs about it: http://developer.android.com/reference/android/os/Build.VERSION_CODES.html Jun 08 10:20:16 even though i poked around with ics in the emu, since i dont have an ics device its kinda ethereal to me Jun 08 10:20:25 the targetSdk, among other things, also determines which theme/look-n-feel to use Jun 08 10:20:33 ok Jun 08 10:20:43 Would anyone tell me where can i find a sample application which makes a API call of some kind Jun 08 10:20:45 please? Jun 08 10:21:54 er... what do you mean by API call? Jun 08 10:22:36 idk e.g. a google search api , or a rss feeds api any open api which exists, may be TFL api Jun 08 10:23:24 I'm right here, g00s Jun 08 10:24:11 sorry to bug you SimonVT , i was skeptical of pragma- 's claims that setting targetSdl changes the appearance of widgets (checkboxes, etc) on ICS Jun 08 10:24:25 but it seems legit Jun 08 10:24:48 it does Jun 08 10:25:05 Unless you specifically use the holo theme on >=ICS Jun 08 10:25:13 Then there's no difference Jun 08 10:25:38 As in, if no theme is set in your manifest, it will only use holo them targetSdk >=11 Jun 08 10:25:44 s/them/when/ Jun 08 10:26:08 g00s, read the docs I posted. Jun 08 10:27:01 Since you were talking about it, it will also change the look of appwidgets :p Jun 08 10:27:45 ok, reading Mavrik .. holy shit i am confused. i'll come back later Jun 08 10:27:56 1. size calculations are done differently 2. padding is automatically added from ICS Jun 08 10:29:04 g00s: in Mavrik's link, scrolling paste the summary to the actual definitions shows the details of how android changes behavior for each targetSdk chosen Jun 08 10:29:09 past. Jun 08 10:29:42 yes, thanks. reading. Jun 08 10:29:51 i missed these for some reason Jun 08 11:08:48 I have an Android project which has a debug signature. Can you remind me how I resign the project again? Jun 08 11:11:21 Or how I chose which debugkey I want to use rather Jun 08 11:15:38 Kake_Fisk: why do you care about which debug key you use? Jun 08 11:45:02 I find it useful to share debug-key when working in group. easy to install/upgrade with someone elses .apk without need to uninstall mine. Jun 08 11:49:02 I don't. But I had to get it running at least. But I figured it out :) Jun 08 11:50:00 Kake_Fisk: nice! Jun 08 11:50:08 :) Jun 08 11:50:21 I have a big problem which I don't know how to handle though Jun 08 11:50:28 Making my game work in different resolutions Jun 08 11:50:59 I would maybe have to scale or something :| Jun 08 11:54:40 if you are using sprites I think one should use resources of different sizes in drawable-[lmh]dpi/ Jun 08 11:55:36 if you are using Canvas, then Canvas.scale() and Canvas.setMatrix() or something sounds nice.. :) Jun 08 11:56:20 http://developer.android.com/guide/practices/screens_support.html Jun 08 12:01:26 Yeah, I have sprites for the different densities. But I guess I could use scaling. But doesn't the image get blurry that way? Jun 08 12:06:40 Kake_Fisk: I don't know what kind of algorithms are used, but yeah - scaling generates/removes information from an image. unless it's vector graphics I guess. Jun 08 12:07:22 Yeah, I might have to add scrolling or something then :| Jun 08 12:08:40 Kake_Fisk: most image viewing applications have scaling and I think it usually looks good :) Jun 08 12:10:03 But I think I'm actually going to go for the scrolling solution. That might be an interesting twist to the game when I think about it. And then I don't need to worry about this problem. Jun 08 12:10:28 Kake_Fisk: sweet Jun 08 12:13:20 What do you call it when you touch on the screen, drag, and then release? I tend to call it touchdrag, but I have no idea where I got that from. Jun 08 12:14:02 swipe? Jun 08 12:14:15 or simply drag, depending on the actual usage Jun 08 12:15:35 ah, okay Jun 08 12:19:48 Anyone know of any working examples of using ServiceTestCase with an IntentService? Jun 08 12:39:00 Is there any way to figure out the rankings of an app on the android market? Jun 08 12:44:55 I assume I need to set a permission to write to the sdcard right? Jun 08 12:45:54 Hi, what is the best way to store app-wise settings (which is a serializable class)? So far, I have callbacks for FragmentActivity<->Fragment and finish/onActivityResult for Activity<->FragmentActivity Jun 08 12:46:06 jrock20041: yes Jun 08 12:46:25 wongk: just found the write_external Jun 08 12:46:33 ppilate: SharedPreferences Jun 08 12:47:48 wongk: but I can't store just any object in there, can I? Jun 08 12:48:22 nope Jun 08 12:48:34 Right, so that won't do Jun 08 12:48:45 are you looking for data storage, or settings storage? Jun 08 12:48:46 Because I need to store a number of Lists and some other stuff Jun 08 12:49:38 Well, not so much for a storage in a file, but forsomewhere I can put my data, which is used application-wise Jun 08 12:49:52 so it doesn't need to be persistent? Jun 08 12:50:01 I thought about using data storage,but that would mean that I have to do IO in every activity Jun 08 12:50:31 wongk: it does Jun 08 12:51:00 but I want to write it to file system only when I press the Save button, not every time I run a different activity Jun 08 12:51:26 so read your data into an object, and write it back out when the save button is pressed Jun 08 12:51:34 ho many ram do i need to have to run eclipse + android emulator? would it run on a system with 2 gb of ram or it would be incredibly slow? Jun 08 12:51:35 sounds like you want a database Jun 08 12:51:51 Miles8of9: it would be incredibley slow Jun 08 12:52:16 wongk: but I modify this object in different activities Jun 08 12:52:24 I want a number of activities to share the same object Jun 08 12:52:24 ppilate: ok? Jun 08 12:52:29 :\ Jun 08 12:52:39 ppilate: so make it accessible by multiple activities Jun 08 12:55:03 Yes, but how? Jun 08 12:55:29 well, it sounds like you'll only ever need one instance of this object per process? Jun 08 12:55:42 wongk: i see that emulator-arm is using 190mb ram at moment + 373 mb used by eclipse.... keeping everything closed like browser ecc wouldn't it fit in 2gb ram? Jun 08 12:55:50 wongk: looks like so Jun 08 12:55:51 ppilate: Use Application or a ContentProvider Jun 08 12:55:58 Miles8of9: sure, it's possible Jun 08 12:56:14 ppilate: then the singleton pattern fits the bill Jun 08 12:56:33 Ah, true. Jun 08 12:57:07 it has to be statically accessible in some way Jun 08 12:57:14 the details are up to you Jun 08 12:58:01 the harder part of the decision is what you are going to use to persist the data on disk Jun 08 13:01:53 wongk: i am not sure, I thought about using standard internal storage? Jun 08 13:02:21 there is no "standard" internal storage Jun 08 13:02:28 do you mean SQLite? Jun 08 13:03:05 ppilate: I am writing an app currently that is doing what you are looking for except the internal file storage Jun 08 13:03:05 Maybe shared prefs Jun 08 13:03:21 wongk: well, i mean filesystem Jun 08 13:03:24 my object is serializable Jun 08 13:03:39 ppilate: obviously on the file system, but what type of file, what format Jun 08 13:03:49 serializable would work just fine Jun 08 13:04:00 it's not accomodating to changes in the data structure, though Jun 08 13:04:16 you'll need to be able to "upgrade" it in the future Jun 08 13:05:25 right Jun 08 13:05:27 thanks wongk Jun 08 13:08:47 what do i enter in the ipaddress http://www.tfl.gov.uk/businessandpartners/syndication/16492.aspx ? Jun 08 13:10:46 I can find ipaddress for my mobile Jun 08 13:10:54 but wonder how what should I enter there Jun 08 13:11:21 the IP address of your mobile is not static Jun 08 13:11:34 yeah, that's for server-to-server stuff Jun 08 13:11:57 so i need to setup a server for that and my android app has to communicate with my server ? Jun 08 13:12:03 yup Jun 08 13:12:13 and you need to make sure that the TfL terms allow that Jun 08 13:12:14 can it not directly communicate with the API ? Jun 08 13:12:30 not if TfL want you to give a source IP, no Jun 08 13:12:59 c2dm Jun 08 13:13:26 wow that means i need to write a webservice and host it on my server :/ Jun 08 13:16:58 I guess TfL are trying to keep control of their data, only allow access to specified IP addresses for specific uses Jun 08 13:17:56 well the only thing i want to do is get an experience with android app communicating with an api Jun 08 13:18:02 and their traffic Jun 08 13:18:10 doesnt seem very easy ? Jun 08 13:18:15 any free apis other than googles ? Jun 08 13:18:24 there are a million public apis, pick another one :P Jun 08 13:18:24 erm... if you don't care what API you play with, why pick one which requires registration? Jun 08 13:18:28 lots of free APIs out there Jun 08 13:18:45 is there any way to open a numeric keyboard on an EditText, but still be able to change over to alpha numeric. So basically just open with numbers initially? Jun 08 13:18:49 Is anyone using the xperia? Jun 08 13:18:59 that sony gaming phone Jun 08 13:19:05 a friend of mine has it Jun 08 13:19:49 So we got 1. Jun 08 13:24:16 same as this Jun 08 13:24:17 https://groups.google.com/group/android-developers/browse_thread/thread/23ca35f83e1ca4b6?pli=1# Jun 08 13:24:29 is there no solution to this? Jun 08 13:34:42 is there something similar to this http://guzzle.it/ in android ? Jun 08 13:37:07 i mean more like https://github.com/guzzle/guzzle Jun 08 13:37:20 bsilwal, this is a channel for developers Jun 08 13:37:47 oh you want the library? Jun 08 13:37:57 yes sorry for the earlier linke, Jun 08 13:38:13 guzzle is in php Jun 08 13:38:16 theres a lot in android already, and if not, http://commons.apache.org/net/ should have what you need Jun 08 13:38:16 :( Jun 08 13:39:16 android has everything you need to interact with guzzle, HttpClient/HttpURLConnection Jun 08 13:40:54 guzzle.it sounds pornographic Jun 08 13:41:15 wongk-home: is there such a thing like a a javascript alert in android? Jun 08 13:41:42 why ask me specifically? AlertDialog Jun 08 13:43:38 john_doe_jr: go read http://d.android.com Jun 08 13:43:51 mikedg: +1 Jun 08 13:44:09 mikedg: :D Jun 08 13:45:27 any of you guys successfully recording audio vida a bluetooth headset? Jun 08 13:49:26 canadiancow|work: thanks for the help Jun 08 14:01:49 http://guzzle.it/topic/131/android (puke) Jun 08 14:06:19 I'm running into a strange skia related drawing bug, we're grabbing a skia canvas via the GraphicsJNI interface and modifying its pixels directly. This works as expected until a system dialog is invoked (the notification area, volume control) at which point the invalidations seem to obliterate our custom widgets Jun 08 14:06:43 my theory is that skia is a double or triple buffered solution and we're writing into the wrong buffer, or something similar, but unfortunately I'm very new to android and skia dev Jun 08 14:06:57 can anyone share any advice, or even help me formulate productive google searches? Jun 08 14:07:03 I'm at a loss unfortunately Jun 08 14:47:16 ugh. this phone seems to only want to update apps when i'm using it. Jun 08 14:50:24 hi all! Jun 08 14:51:40 I'm trying to boot android x86 4.0 on a lenovo laptop, and all I get is a blank screen. Jun 08 14:52:17 thats not a developer issue Jun 08 14:52:19 hm. Jun 08 14:52:59 it kind of is, but this channel is mainly about app development using the SDK Jun 08 14:53:05 boily: this channel is for application development Jun 08 14:53:38 Hello guys, I have a ViewPager where I show things like a dynamic listview and a map to name a view. But sometimes, which happens rarely the ViewPager shows blank or is empty. Which is totally weird, cause it means it shows a View object which is totally empty, cause a View object of null would crash. Any idea? Jun 08 14:55:06 When I change screen orientation, it shows the right view again and flipping back results to normal again. Is it possible there's a bug in the ViewPager library? Jun 08 14:55:12 MDijkstra: in my case, it's a meta-development issue. I need to test my app on a laptop. in any case, I'll try to figure out a solution by myself... Jun 08 14:55:58 boily: #android Jun 08 14:56:08 boily: won't the new x86 emulator image suffice? Jun 08 14:56:22 there's also BlueStacks. Jun 08 14:57:16 MDijkstra: sadly no, because of the project's requirements. Jun 08 15:00:47 hurr my code for location works on other peoples phones?? :/ Jun 08 15:01:43 Hey all, I am using a View pager to swipe though a couple static html pages. On the last page in the list I would like to launch a different activity when the user swipes to the right again. I am currently going about this by creating a custom view pager (extending view pager) and then implementing GestureDetector.OnGestureListener and trying to override the onFling method. It isn't going great, but I haven't been working on it for to Jun 08 15:01:43 long. Should I continue with this idea, or does anybody have an alternative that would be more straightforward. I feel like I am just trying to jump through hoops to get this relatively simple thing done. Jun 08 15:02:49 gowie, you need android-support-v4.jar library Jun 08 15:03:01 number5 Have it. Jun 08 15:03:36 you need to use onswipelistener Jun 08 15:03:50 OnPageChangeListener Jun 08 15:03:55 number5 Problem is that I need to support API 8+ Jun 08 15:04:03 Hmm.. I'll look into those. Jun 08 15:04:24 I'm too busy to send you an example... I'm sorry Jun 08 15:04:36 but googling a bit will give you enough examples Jun 08 15:06:11 Number5 Oh is this a common thing? I thought I had googled pretty thoroughly to see if it had been done before, but couldn't find anything Jun 08 15:07:05 just a second... Jun 08 15:09:38 Hello Jun 08 15:10:36 http://pastebin.com/cDx4X3A1 Jun 08 15:10:41 I am trying to display two text views side by side in a horizontally oriented linear layout, but I keep having them in separate rows. Jun 08 15:10:43 gowie, http://pastebin.com/cDx4X3A1 Jun 08 15:10:58 This is what I get, http://troll.ws/i/joRWyV.png Jun 08 15:11:42 And I want both elements on the same row. Jun 08 15:11:59 rawroland: let's see your layout code Jun 08 15:12:05 http://pastebin.com/s0z9zGtv Jun 08 15:12:05 rawroland: pastebin your layout code Jun 08 15:12:13 hi Jun 08 15:12:22 Just did Jun 08 15:12:55 i'm looking for an c++/c API for android (for the wifi mostly) do you know any ? Jun 08 15:13:18 rawroland: which part of your image is associated with this linearlayout? Jun 08 15:13:36 Samsung computer,handy,video? Jun 08 15:14:00 QubeZ: no, the part with the details Jun 08 15:14:11 Clouclou: android ndk Jun 08 15:14:18 I would like them to be on the same "line" Jun 08 15:14:37 GEBRAUCT... <-- details? Jun 08 15:14:44 Exactly Jun 08 15:14:54 wongk, i did see anything related to wifi on the NDK, do you have more information about that ? Jun 08 15:15:09 rawroland: your width's are set to "fill_parent" Jun 08 15:15:23 Clouclou: nope Jun 08 15:15:35 ok :( Jun 08 15:15:36 I was following the linear layout tutorial on the android site Jun 08 15:16:16 rawroland: what you actually want is a layout weight of .5 for each, with a width of 0dp Jun 08 15:16:28 wongk: Trying out you suggestions Jun 08 15:16:35 weights < 1 behave strangely sometimes Jun 08 15:16:48 oh? i thought that's how it was done Jun 08 15:16:54 wongk: but with fill_parent and layout_weight = 1, they should be equally distributed anyhow Jun 08 15:16:59 i've only used wieghts once or twice, though Jun 08 15:17:06 well if you have 2 views each with equal weights, they both get half the space Jun 08 15:17:13 i see Jun 08 15:17:17 the problem is when you have 1:2:3 or something Jun 08 15:17:26 or lets use 1:2:1 Jun 08 15:17:31 1:2:1 does what i expect Jun 08 15:17:36 0.25:0.5:0.25 does not Jun 08 15:17:49 ok, so both weights = 1 Jun 08 15:17:51 or at least it didnt when i last used <1, which was likely ~2.1 Jun 08 15:18:20 I also read that equal weights are evenly distributed. Jun 08 15:18:32 just set the width to 0dp Jun 08 15:18:49 should the total weight for the layout be 2, then? Jun 08 15:18:55 The widths are all well distributed, the only problem is that they are placed on separate columns Jun 08 15:19:21 wongk: I intend to have only columns Jun 08 15:19:25 rawroland: what is the text of your first column and 2nd column? its hard to tell where your actual layout borders are Jun 08 15:19:28 sorry, 2 rows Jun 08 15:19:51 basically, what is that GEBRAUGCT data supposed to look like? Jun 08 15:20:46 QubeZ: GEBRAUT till 41.64 € will be one side, and NEU till the "other" 41,64€ will be on the other line Jun 08 15:21:05 rawroland: everything looks correct except the widths Jun 08 15:21:29 based on your font size, the text will wrap to the next line anyhow Jun 08 15:22:34 I did not set any text width. Jun 08 15:27:52 rawroland: side note, you do not need the xmlns:android in any other layout container ... only the root Jun 08 15:28:01 so the very top one, remove from others Jun 08 15:28:12 QubeZ: thanks for that Jun 08 15:28:54 setting the width to 0dp does not solve the problem Jun 08 15:28:56 also by default linear layout orientation is horizontal so explicitly stating that is not necessary Jun 08 15:30:58 rawroland: can you click on that GERB... area in your graphical view then screenshot that? I want to see the borders Jun 08 15:34:09 Hi. Can anyone help? I need to reset the activity layout to the xml without restarting the activity. What's the best way of doing that? Does it require layout inflater? Jun 08 15:35:16 http://troll.ws/i/1yeCdP.png Jun 08 15:35:17 hi room Jun 08 15:35:44 QubeZ: I could not click, so I simply navigated now to it Jun 08 15:35:52 Hello Android program doesn't show Hello Android ,it just shows Android , any suggestions? i think it has something to do with avd Jun 08 15:36:26 hi everybody! Jun 08 15:36:58 Does anyone have experience with layoutinflater? Jun 08 15:37:15 everyone has experience with layoutinflater. Jun 08 15:37:31 Can I use it to reset the layout to the original xml? Jun 08 15:37:36 rawroland: why is your LL height set to fill_parent? Jun 08 15:37:40 Without restarting the activity? Jun 08 15:38:20 icbinb: setContentView can only be called once. Jun 08 15:38:30 Was following the tutorial on the developer site for lineay layouts Jun 08 15:38:41 icbinb: but there's more than one way to skin that cat. Jun 08 15:38:59 i'm programming a blackjack app and I need to reset the layout after every round Jun 08 15:39:49 i have a probem with edittext. i want to show i dialog, when clicked on a button, where the user can type in it's own text for a label. first time clicking a button is ok, but second time the dialog with the edtittext appears with the last typed text. here is the code: http://pastebin.com/MjwThpS0 Jun 08 15:40:34 i spend ours of searching for solutions, but haven't found something useful Jun 08 15:40:50 s.o.s please help ^^ Jun 08 15:41:31 i dont even know if you're joking Jun 08 15:41:33 chris_cross: how are you showing the dialogs? are you using onCreateDialog and show(int) or are you just calling Dialog.show()? Jun 08 15:41:42 mEditText.setText(""); in onclick maybe? Jun 08 15:42:13 canadiancow: doesn't fix the problem. i've tried Jun 08 15:42:34 i'm using onCreateDialog Jun 08 15:43:21 any suggestions? Jun 08 15:43:51 1. that has been deprecated and you shouldn't use it. Jun 08 15:44:54 moonlightcheese: can you please describe one of the ways to 'skin that cat'? Jun 08 15:45:07 2. you need to also use onPrepareDialog(int) for dialogs that have already been inflated or 3. call removeDialog(int) before calling showDialog(int) - but this is very inefficient. Jun 08 15:45:50 since when this function is deprecated? Jun 08 15:46:14 i took a look at the developer guide and there is still the onCreate method Jun 08 15:46:30 chris_cross: since DialogFragment came around i think. Jun 08 15:46:35 Hello Jun 08 15:46:42 onCreate and onCreateDialog are not the same. Jun 08 15:46:47 I dropped out for a few minutes Jun 08 15:47:43 i mean onCreateDialog Jun 08 15:47:50 rawroland: im in the middle of a webex for work, i can address this again in 20 - 30 mins if no one else does Jun 08 15:48:05 QubeZ: I did LL to fill_parent because I saw it in the dev site Jun 08 15:48:12 "This method is deprecated. Use the new DialogFragment class with FragmentManager instead; this is also available on older platforms through the Android compatibility package." Jun 08 15:48:14 QubeZ: Thanks for your help till now Jun 08 15:48:16 so could you discribe a better solution? Jun 08 15:48:29 rawroland: android example tutorials are a piece of shit Jun 08 15:48:59 QubeZ: For real? Jun 08 15:49:09 no, not for real. Jun 08 15:49:32 yes, most if not all Android tutorials are incomplete and pretty shitty imho Jun 08 15:49:46 moonlightcheese: what should i pass as root to the inflate method? Jun 08 15:50:05 if by "incomplete" you mean "not very complicated" i guess i agree, but they work to give a basic example of a concept, which is really what you need. Jun 08 15:50:55 icbinb: dude, if you're using LayoutInflater to show a simple dialog, you're most likely doing it wrong. Jun 08 15:51:27 icbinb: there's also AlertDialog with it's Builder subclass, which makes simple Dialogs very easy to make. Jun 08 15:51:36 moonlightcheese: not a simple dialog, i need to reset the entire layout every time the player starts a new round of blackjack Jun 08 15:53:47 icbinb: i don't know if i can help you man. now you're getting ME lost. Jun 08 15:54:03 moonlightcheese: i tried option 3. you discribed. but there's still the same problem Jun 08 15:54:55 just do what the cow said... Jun 08 15:55:05 i did Jun 08 15:55:13 Is it possible to set a hidden id element on a view which I can retrieve onclick? Jun 08 15:55:14 no you didn't. Jun 08 15:55:21 of course Jun 08 15:55:41 not in the code i posted, but i tried it before Jun 08 15:55:56 I want to build an http request with an id from a view( textview) Jun 08 15:56:14 mEditText.setText("") doesn't take any effect and i don't know why Jun 08 15:56:19 interesting you're setting the EditText itself as the Dialog's View. Jun 08 15:56:52 yes. what's wrong with it? Jun 08 15:57:26 so you called "labeleditor.setText("");". Jun 08 15:57:28 i need a dialog where the user can type in a text Jun 08 15:57:35 yes Jun 08 15:58:25 just before labeleditor.setLines(2) Jun 08 16:00:14 if i have a button in a row of a list how do i work out which row's button was hit? Jun 08 16:01:10 I'm building a ContentProvider, how should I limit it's functionality for datasets that are read-only or that can be updated but not deleted? Jun 08 16:01:32 Should I just do nothing? Jun 08 16:02:25 honestly, it looks like this dialog never even gets shown. Jun 08 16:02:32 so that might be part of your problem there. Jun 08 16:02:37 ? Jun 08 16:03:11 selectEigenesLabelDialogBuilder.show() was never called. that dialog is never displayed. Jun 08 16:03:15 i got the app on my phone and i already typed my own text in by using this dialog Jun 08 16:03:52 you are so fucking lost it's hilarious. Jun 08 16:04:06 what? Jun 08 16:04:52 you might be typing in a dialog, but not the one in your pastebin. Jun 08 16:05:31 ?!?! Jun 08 16:05:37 !!!! Jun 08 16:05:40 !!!!!!!!!!1 Jun 08 16:05:48 no code for a dialog = no dialog. or not? Jun 08 16:06:05 i type the code for a dialog and tada, it appears Jun 08 16:06:40 what is the appropriate protocol, that I should choose while communicating with an API ? JSON, XML, and SOAP protocols ? Jun 08 16:07:14 bsilwal: "communicating with an API"...? Jun 08 16:07:23 bsilwal: I don't think it is related to android Jun 08 16:07:43 really? I am making a bing search application just for fun. Jun 08 16:07:56 bsilwal: using JSON is the simpler option I think Jun 08 16:07:57 and its guide tells me to choose a protocol first Jun 08 16:08:01 ok, so i'm going on googling around Jun 08 16:08:03 good bye Jun 08 16:08:32 that means android supports all the protocols and out of them JSON is the simpler one. Jun 08 16:08:38 bsilwal: you'll get a lot further if you actually try to *do* something Jun 08 16:08:51 rather than just picking random APIs online and failing to to communicate with them Jun 08 16:09:21 Leeds: I know, I am feeling that as well. Jun 08 16:10:16 What's the best way to put tabs in an app? The action bar only works for 3.x phones right? Jun 08 16:10:32 but i am done with the layout part and on create part Jun 08 16:10:36 Rich787: http://abs.io/ Jun 08 16:10:47 Rich787: firstly, there are no 3.x phones - 3.x is only for tablets... Jun 08 16:10:55 secondly, what evancharlton said Jun 08 16:11:10 hehe right Jun 08 16:11:14 thanks! Jun 08 16:12:44 Rich787: TabActivity Jun 08 16:13:44 Can anyone help me? I need to reset a layout for a blackjack game. What is the best way of doing that? Jun 08 16:17:39 Should I just use removeAllViews for each layout that had received cards? Jun 08 16:22:10 icbinb: That seems reasonable. Unless you have some static content in these layouts Jun 08 16:22:41 you could just hold the cards inside gridviews Jun 08 16:23:05 then you'd have separation between the actual logic and views Jun 08 16:23:20 readme: actually i have them in relativlayouts because the cards are overlapping Jun 08 16:23:26 ah i see Jun 08 16:23:36 also, the dealer's second card is facedown Jun 08 16:23:39 if they're overlapping, they should be in framelayout Jun 08 16:23:51 and i have a 3d animation for that card to turn over Jun 08 16:23:51 RelativeLayout has the same property as FrameLayout, QubeZ Jun 08 16:23:56 it can overlap Jun 08 16:24:12 i did not know that .. so is FL deprecated? Jun 08 16:24:16 no Jun 08 16:24:21 they're for different things Jun 08 16:24:32 I just wish I can reset the enter layout to the xml. Any way of doing that? Jun 08 16:24:32 but if you don't use any of the relative layout features, i.e. the positioning rules Jun 08 16:24:37 it behaves as a framelayout by default Jun 08 16:24:43 got it Jun 08 16:25:00 Are OTA upgrades automatically installed on your phone after certain time? I received the OTA notification about 45 days ago and had been postponing it each time I was asked to. Today my Nexus S is running 4.0.4 and I did nothing for the installation to be done. Jun 08 16:25:19 jetg: wrong channel, #android or #android-root Jun 08 16:25:22 this is a dev chan Jun 08 16:25:26 thanks Jun 08 16:26:48 This is interesting, I get an exception 'view already has a parent' when i had already called removeallview on the parent. Jun 08 16:28:41 oops, was using wrong id, cut and paste error Jun 08 16:29:36 can I supply my own SharedPreference object to a PreferenceActivity? Jun 08 16:31:11 number5 Jun 08 16:37:37 nplus: you can, but it's better to just use PreferenceManager.getDefaultSharedPreferences everywhere. Jun 08 16:37:52 or whatever that method name is called. Jun 08 16:38:48 moonlightcheese: I wanted to use a custom SharedPreference class Jun 08 16:39:00 nplus: i understand that. Jun 08 16:42:21 So are you saying I shouldn't use a custom SharedPreferences class or ??? Jun 08 16:43:01 by custom SharedPreferences, do you mean you're extending SharedPreferences, or you're making a PreferenceActivity? Jun 08 16:43:53 I've created a class that implements SharedPreferences Jun 08 16:44:32 why? Jun 08 16:44:43 nplus: what are you trying to accomplish? Jun 08 16:45:11 Obscuring saved passwords Jun 08 16:45:35 you're saving passwords in a preference file? Jun 08 16:46:01 probably a hash or md5 or some such. Jun 08 16:46:20 well whatever the case, you can hash or encrypt them before saving them to preferences Jun 08 16:46:41 if you have a preferenceactivity you can use the onPreferenceChanged callback Jun 08 16:46:44 birbeck: that's what this class does, is makes it transparent Jun 08 16:46:57 the encrypt/decrypt Jun 08 16:47:11 i really wouldn't implement SharedPreferences. Jun 08 16:47:43 why not make a PasswordEncrypter class, then do preferences.put("password", PasswordEncrypter(password)); Jun 08 16:47:45 moonlightcheese: it uses an instance of SharedPreferences within it Jun 08 16:49:39 or if you really want to make it completely transparent, make a SharedPreferences wrapper class with put and get methods, check the key, ecrypt/hash if necessary, and call put/get on the shared preferences instance Jun 08 16:50:11 you dont need to subclass sharedpreferences or implement its interface with your own implementation Jun 08 16:51:59 Ok thanks Jun 08 16:54:38 Deifyed: Thanks for confirming. I tried using removeallviews and it works. Jun 08 16:54:51 is it possible to programatically set a LinearLayout's padding to dip rather than pixels? Jun 08 16:54:57 icbinb: Glad it worked! Jun 08 16:55:14 tnzr: convert from dip to px Jun 08 16:55:38 Deifyed: by the way, i had solved an issue related to animation that may help others Jun 08 16:56:00 Deifyed: perhaps you can confirm if that's a good solution Jun 08 16:56:01 evancharlton: err.. never done that, not sure how that works Jun 08 16:57:36 icbinb: I'm by no means good at Android, but I know a couple of things. Post your code and I'll evaluate, though someone elses opinion might be better :P Jun 08 16:57:59 evancharlton: found it! Jun 08 16:58:03 http://developer.android.com/reference/android/content/res/Resources.html#getDimensionPixelSize(int) Jun 08 16:58:06 :) Jun 08 16:58:55 Deifyed: the code still needs improvement, but the problem was forcing the app to wait for each animation before moving on Jun 08 17:00:18 Deifyed: i created a animation listener which calls one method, dealTimeLine(), where there is a switch statement that runs through the timeline and increments the step. Jun 08 17:00:35 Deifyed: all the animations use this animationlistener Jun 08 17:00:36 r Jun 08 17:01:03 Deifyed: otherwise, i would need over 10 different listeners to run onanimationend Jun 08 17:02:18 evancharlton: i actaully used http://russenreaktor.wordpress.com/2010/04/29/solved-android-convert-dip-to-px/ because I had to convert 5dip (rather than the dimension of some resource) Jun 08 17:02:43 then I cast the result to an int, hopefully that's not a horrible violation of the style conventions or something Jun 08 17:03:08 It's 1-0 at halftime for Poland and Greece is down to 10 men if anyone is interested in Euro 2012. Jun 08 17:04:36 icbinb: I'm not sure I quite understand, but anywhere you can reduce 10 listeners to one is good in my opinion. I havn't done any animating in Android, but if theres no easy way of doing this, it seems like a good solution Jun 08 17:11:34 icbinb: euro what? Jun 08 17:14:45 It's 1-1 Poland vs Greece opening game of Euro 2012 soccer championship Jun 08 17:15:14 oh football.. Jun 08 17:36:22 I am seeing a really bizar bug, a SeekBar can't be dragged to it's max value ? am I doing something wrong, are these phones buggy, or is this a well known issue Jun 08 17:37:01 is it off by one? Jun 08 17:37:22 oGMo: no, I literally can't drag it into the last position Jun 08 17:37:31 it's stuck on 7th both in drawing and numerically Jun 08 17:37:41 and won't go to the 8th position if I drag it there Jun 08 17:37:54 oh, dunno heh Jun 08 17:38:27 it will go to the lowest value though Jun 08 17:39:20 wtf are "layout bounds" in a 9patch Jun 08 17:50:47 hey guys, I'm a BlackBerry developer, and I was wondering if anyone could point me to links outlining the Google Play app approval process? Jun 08 17:51:23 "did you pay your $25" Jun 08 17:51:55 http://developer.android.com/guide/publishing/publishing.html Jun 08 17:52:36 HorizonXP: the approval process basically goes: submit your app > app is live Jun 08 17:53:21 oGMo, wongk I see... so no approval process? Jun 08 17:53:27 just adhere to the guidelines, and publish? Jun 08 17:53:28 right Jun 08 17:53:40 violations are dealt with rectively Jun 08 17:53:43 and if you don't adhere, and someone rats on you/they find out, they're remove you Jun 08 17:53:43 right, though there are terms of serivce :p Jun 08 17:53:44 reactively Jun 08 17:53:59 ok, gotchya Jun 08 17:54:21 that was my impression of the process based on my reading, but i wanted to get a 2nd voice Jun 08 17:54:42 in your guys opinion... is that better? Jun 08 17:54:42 doing bad things generally means you get removed and no one ever trusts you again Jun 08 17:55:23 HorizonXP: than going through red tape and waiting indeterminate time to push things, yes Jun 08 17:56:02 i can speak from experience, if you have an app suspended you get *no* info on why and your app can never be unssuspended Jun 08 17:56:14 so, i would prefer a formal review Jun 08 17:56:33 well, I'll tell you why I'm asking Jun 08 17:56:53 I had an app submitted to BlackBerry App World that was approved, then reviewed again, then approved Jun 08 17:57:03 I launched, and then within 2 hours of launch, they pulled it Jun 08 17:57:17 clear lot of good reviews do Jun 08 17:57:32 So I'm writing a blog post detailing what happened, and I'm trying to compare it to RIM's competitors. Jun 08 17:57:41 And make the case for a more transparent process Jun 08 17:57:48 If they have any hope of competiting. Jun 08 17:57:52 * competing. Jun 08 17:57:52 wongk: i thought there was a review process Jun 08 17:57:58 for suspensions Jun 08 17:58:02 no, there isn't Jun 08 17:58:06 IntelliJ's interactive debugger is awesome Jun 08 17:58:16 once it's pulled, end of story Jun 08 17:58:24 when you step into compiled code, it actually shows you something useful. Jun 08 18:00:02 i'm reading cases of people having apps reinstated, so Jun 08 18:00:27 oGMo: probably if you're important enough. Jun 08 18:00:38 i.e. if you're Dropbox, or something... Jun 08 18:00:41 doesn't sound like it heh Jun 08 18:00:45 but yeah that would probably help Jun 08 18:01:04 but this just sounded like a small-time developer who had a trademark issue that got resolved Jun 08 18:01:22 i am speaking from having two different apps suspended Jun 08 18:01:34 your anecdote is counterevidenced Jun 08 18:01:37 you won't get so much as a reply in email form from anyone at google Jun 08 18:01:58 I know that at RIM and Apple, that's not true... Jun 08 18:02:08 Apple has an actual appeal form Jun 08 18:02:14 don't know how effective that is. Jun 08 18:02:22 RIM will respond to e-mails, and/or tweets. Jun 08 18:02:28 and/or forum posts Jun 08 18:02:46 i am sure there are exceptions, but i know what i've eperienced Jun 08 18:06:56 http://www.linuxfoundation.org/news-media/announcements/2012/06/samsung-electronics-joins-linux-foundation-platinum-level Jun 08 18:07:19 HorizonXP: so why was your app pulled? Jun 08 18:07:39 never heard of the linux foundation Jun 08 18:07:58 pragma-: they've been around a long time Jun 08 18:07:59 pragma-: and they've almost certainly never heard of you - so what? Jun 08 18:08:00 really? Jun 08 18:08:15 dragorn: since 2007 isn't that long Jun 08 18:08:31 pragma-: I really thought they'd been around longer Jun 08 18:08:44 Pragma: founded in 2000 Jun 08 18:09:17 dragorn: not according to the "About the Linux Foundation" in the page I linked. Jun 08 18:09:23 this article claims 2007 Jun 08 18:09:36 http://www.linuxfoundation.org/about Jun 08 18:09:42 "Founded in 2000, the Linux Foundation sponsors ... Jun 08 18:09:44 IIRC Linux Foundation existed before that, but possibly in different form Jun 08 18:10:00 the about page does disagree Jun 08 18:10:20 Another inconsistent and likely inept organization. Jun 08 18:10:52 it was formed by the merger of two existing organisations, dating back to at least 2000 Jun 08 18:11:06 Too many organizations in the kitchen. Jun 08 18:11:11 other announcement say 2000 Jun 08 18:11:16 probably an editing error Jun 08 18:11:26 pragma-: you've got no idea what you're talking about, as usual Jun 08 18:11:38 pragma-: Trolling points awarded: 2/10. Try harder. :P Jun 08 18:11:43 pragma-: what they do they do right Jun 08 18:12:10 it changed between 4/30 and 5/9 Jun 08 18:12:12 :P Jun 08 18:12:28 well, LSB was mostly a failure, IMHO, but I think it was more distributions fault Jun 08 18:14:17 i read that as LSD Jun 08 18:15:12 how everyones experience with the accuracy of tracking the distance of a person walking with GPS? I've found it pretty inaccurate so far. +1km more on a 5km distance Jun 08 18:16:52 ninjai: depends on the device, though if it was off by that, you are probably using approximation, not hte GPS Jun 08 18:16:58 ninjai: GPS can't be exactly depended on at less than 100m error radius, iirc. And while technically the current mode is better, interference means that you might get pretty big flux Jun 08 18:17:31 er i think it's more like a few meters tops Jun 08 18:17:52 good GPS can be cm, but probably not on a phone Jun 08 18:17:53 oGMo: depends on current mood at Cheyenne Mountain ;) Jun 08 18:18:03 depends on whether your device has been flagged by the NSA Jun 08 18:18:05 and no, GPS doesn't have cm range Jun 08 18:18:09 yeah but there haven't been restrictions for years Jun 08 18:18:12 pragma-: there's no flagging Jun 08 18:18:31 oGMo: GPS at full capability has few meter error Jun 08 18:18:33 there's no such agency either Jun 08 18:18:54 i see what you did there Jun 08 18:18:55 pragma-: ... I actually know how the military GPSes differ from civilian ones Jun 08 18:18:59 http://www.gps.gov/systems/gps/performance/accuracy/ Jun 08 18:19:07 p_l|backup: you're starting to reveal too much Jun 08 18:19:17 no they don't Jun 08 18:19:59 pragma-: nothing covered by secrecy acts Jun 08 18:20:18 so ~7.8m, and down to millimeter with additional stuff Jun 08 18:20:18 the best secrecy acts are the ones that are actually secret Jun 08 18:20:45 p_l|backup, oGMo it could just be my code too. I'm definitely using GPS. Jun 08 18:20:52 when you order a "full" GPS unit, it has an extra port for key loader Jun 08 18:21:28 pragma-: there's a report on b.android.com somewhere with someone complaining that their phone's GPS stopped working after 60,000m or something (they were using it as part of a balloon) Jun 08 18:21:32 it was pretty awesome Jun 08 18:21:38 I heard about that Jun 08 18:21:39 gps in phones generally can get down to ~1meter Jun 08 18:21:52 jeppy: that's a) luck b) augmentation Jun 08 18:21:53 you'd think it'd get better range the closer it got to the satellites Jun 08 18:21:55 :p Jun 08 18:22:08 pragma-: radionavigation doesn't work that way Jun 08 18:22:16 Stop correcting my trolling :( Jun 08 18:22:36 haha Jun 08 18:22:50 pragma-: that was pretty good trollscience :) Jun 08 18:24:24 I do think I'm going to write down that secrecy acts/actually secret one down. Jun 08 18:26:47 question: after i start an email intent, is it possible that after the user sends the email to return to my app? Jun 08 18:27:23 trolling doesn't help when you hear ranting at stupid military procurement that managed to order planes without GPS because they wanted to install "military ones" ;) Jun 08 18:28:54 hi. I have what is perhaps an inconsequential question, but I'm curious anyways: When I uploaded my app to the play store, it warned: "This apk requests 1 features that will be used for Google Play filtering: android.hardware.touchscreen". The thing is, my app doesn't use a touch screen at all. I don't see the touchscreen being requested in the manifest. Is the touch screen just automatically required for all apps, no matter what? Jun 08 18:29:30 calamari: unless you say or whatever Jun 08 18:30:55 evancharlton: trying that, thanks! Jun 08 18:31:25 Hello. I'm using a fragment with a simple button in it. At first, the button will be disabled, and will only be unabled after a slider is touched. When I touch the button a fragmenttransaction replaces that fragment with a new one. All works fine, however: when I hit the (hardware) back button I return to the previous fragment but the button is disabled again. I once again have to use the slider before the button is enabled aga Jun 08 18:31:36 I thought view objects' state was always preserved Jun 08 18:31:56 calamari: I'm probably wrong on the syntax, but that's the general idea Jun 08 18:32:10 why is the button set to disabled again while the state (position) of the slider is actually kept Jun 08 18:33:25 evancharlton: looks like it still complains about it even with that line, so I guess it's required no matter what Jun 08 18:34:36 lol, are you kidding me? this code i'm reading downloads a PNG, decodes it to a Bitmap, then stores it on disk by Bitmap#compress Jun 08 18:34:47 what is wrong with people Jun 08 18:35:01 niles11_: Rather than trusting android to remember state, I use the retainCustomNonConfigurationInstance family for all my state-related objects and I reconstruct them in onCreate or where appropriate Jun 08 18:36:23 Wow, even Google doesn't know much about retainCustomNonConfigurationInstance. How does it work? Jun 08 18:37:19 calamari: that's not true Jun 08 18:37:56 niles11_: the same way that onRetainNonConfigurationInstance Jun 08 18:38:00 evancharlton: interesting Jun 08 18:38:38 it's just that FragmentActivity makes it final so that fragment logic can work, so that extra method was added for the user to pass an additional bit of custom data through the configuration change Jun 08 18:39:21 @evancharlton: according to the SDK that method is deprecated, so I prefer not to use it Jun 08 18:39:36 niles11_: http://developer.android.com/reference/android/support/v4/app/FragmentActivity.html#onRetainCustomNonConfigurationInstance%28%29 Jun 08 18:39:42 It's not deprecated Jun 08 18:39:46 The other one is. Jun 08 18:42:05 OK, I see, sorry missed that Jun 08 18:42:32 How do I use it? It isn't very well documented. Should I just call the method? And what does it exactly do? Jun 08 18:43:14 niles11_: 14:46 < evancharlton> it's just that FragmentActivity makes it final so that fragment logic can work, so that extra method was added for the user to pass an additional bit of custom data through the configuration change Jun 08 18:43:42 back Jun 08 18:45:16 I am drawing a camera preview on a SurfaceView, but I need to know how to stop Android from stretching it, so I can set it to an aspect ratio appropriate size Jun 08 18:47:32 niles11_: this is still using the deprecated version from android.app.Activity, but they should work the same with a simple renaming: https://github.com/pragma-/networklog/blob/master/src/com/googlecode/networklog/GraphActivity.java -- search for instanceData Jun 08 18:52:49 also note my Spinner hacks for setSelection() and onItemSelected() to not trigger onItemSelected() behavior when setting first setSelection() or programmatical calls to setSelection() Jun 08 18:53:04 that was a bit of a head-scratching day Jun 08 18:53:23 how do you write a privacy policy when using the backupagent? Jun 08 18:54:02 another similiar widget has a fromUser boolean field or something Jun 08 18:54:08 Wish Spinner had that too Jun 08 18:56:00 http://stackoverflow.com/questions/10954344/android-cursoradapter-drawing-things-in-the-wrong-list-item Jun 08 18:56:02 halp. Jun 08 18:57:02 will an extra large screen use layout-large before layout? Jun 08 18:57:10 btw, that first setSelection on Spinner is annoying as fuck. Jun 08 18:57:19 jeppy: yes Jun 08 18:57:21 yes jeppy Jun 08 18:58:20 SeekBar has the fromUser field to differentiate programmatical calls versus user interaction Jun 08 18:58:21 can someone ban pragma Jun 08 18:58:44 i'm a whiny hockey fan and i want pragma banned Jun 08 18:58:47 probably Jun 08 19:00:58 mikedg: that might have been too subtle for Leeds to understand the canadian reference Jun 08 19:01:32 huh, im gonna go curling Jun 08 19:02:05 Hey Android nerds. Is there any way to declare multiple com.android.vending.INSTALL_REFERRER receivers in a manifest? What if I have multiple tracking systems? Jun 08 19:02:28 It's throwing an error when I try to declare 2, naturally, but I really need 2. Jun 08 19:02:30 So WTF. Jun 08 19:03:15 Chronax: i don't know. why would you need to declare it twice. Jun 08 19:03:40 you declare INTERNET permission once and can use it for anything Jun 08 19:03:53 Because I want to track if a variety of campaigns in 2 different analytic products. Jun 08 19:04:01 Some may come from 1 source, others may come from another source. Jun 08 19:04:22 Chronax: it doesn't work like that. Jun 08 19:04:24 Chronax: you get the referrer string from the intenet... Jun 08 19:04:48 Hrm... Jun 08 19:04:59 intent Jun 08 19:05:01 Chronax: place some kind of identifier when you send the broadcast that tells it which receiver code to traverse and put it all in one receiver. Jun 08 19:05:02 But the receiver name is important with respect to WHO tracks the event, right? Jun 08 19:05:12 Got it. Jun 08 19:05:14 Cool. Jun 08 19:05:14 the receiver is generic Jun 08 19:05:27 you use the receiver to get the referrer name and then act accordingly Jun 08 19:06:01 i am trying to convert a sqlite table to a json string. do i declare a JSONArray object, then in a while loop create JSONOBjects and "put" each column into it, then add it to the JSONArray? Jun 08 19:06:47 sounds like you're using "sqlite" and "json" because they're buzzwords Jun 08 19:06:57 * moonlightcheese snickers. Jun 08 19:07:52 shutin: but basically, yes, that's how you do it. Jun 08 19:08:59 moonlightcheese: i've searched google and there are no straightforward examples. i feel like what i've got is too simple! Jun 08 19:09:16 shutin: then you're doing it right. Jun 08 19:09:36 it's simple as hell dude. Jun 08 19:17:32 howdy Jun 08 19:17:40 go away. Jun 08 19:18:59 Why moonlightcheese :( Jun 08 19:19:17 because aliens don't wear hats. Jun 08 19:20:01 shutin: depends on how you need to construct your json Jun 08 19:20:42 Hello folks! Jun 08 19:23:06 Hiball Jun 08 19:23:14 Hi all* Jun 08 19:23:45 i liked the first one better. Jun 08 19:23:49 me too Jun 08 19:23:57 To what extent is C integratable in android apps? Jun 08 19:24:04 i could use a hiball right now Jun 08 19:24:10 And what are the limits? Jun 08 19:24:11 diki: google "android ndk" Jun 08 19:24:34 I know of the N'djamena but not of its limitations Jun 08 19:24:42 Damn itap app Jun 08 19:24:49 i was like wtf? Jun 08 19:25:01 what language is that even... Jun 08 19:25:07 Wrong word prediction Jun 08 19:25:13 I know of the Ninja, but not his limitations Jun 08 19:25:15 au contraire, I suspect hat-wears as potential aliens, especially the bigger the hat -- and if they carry a towel around while wearing a hat, it's a no-brainer. Jun 08 19:25:56 pragma-: http://dobrador.com/wp-content/uploads/2012/05/225250418833066801_GSXzMEtc_f1.jpg Jun 08 19:26:00 As i was saying, i know of N'djamena Jun 08 19:26:05 diki: i don't know much, but seems to me if you want to write in C, write for iOS Jun 08 19:26:07 .... Jun 08 19:26:12 lolol. Jun 08 19:26:13 moonlightcheese: I was going to link to that, too Jun 08 19:26:23 Disabling. Itap Jun 08 19:26:33 diki: you probably don't want to do UI stuff, but you can do basic lifecycle stuff and get a GL context .. the ndk documentation outlines this Jun 08 19:26:33 alright Jun 08 19:26:54 so can php be ported? Jun 08 19:27:00 if you need to do some C from your otherwise normal UI, you can use jni Jun 08 19:27:02 its highly portable Jun 08 19:27:06 um, what Jun 08 19:27:22 someone's lost. Jun 08 19:27:30 I come from symbian OS Jun 08 19:27:47 and there was the pamp stack Jun 08 19:28:06 which was php apache and mysql Jun 08 19:28:24 you would really not want to do php .. well, ever Jun 08 19:28:26 anywhere Jun 08 19:28:27 on the device? Jun 08 19:28:38 that sounds ridiculous Jun 08 19:28:42 ported to the os with minimum changes Jun 08 19:28:43 ^ this. Jun 08 19:29:23 tbh i am not interested in java Jun 08 19:29:25 you might as well just run your app as a web app remotely Jun 08 19:29:30 LOLOL. Jun 08 19:29:36 so pure c ia welcomed Jun 08 19:29:37 diki: time to throw in the towel then. Jun 08 19:29:41 after I publish an app in the play store, how long does it usually take before I can search and find it? Jun 08 19:29:41 is* Jun 08 19:29:43 the question is not whether you are interested in java or C or what .. it's whether you want to port your application to android Jun 08 19:30:10 diki: i would not recommend you develop for android, then Jun 08 19:30:23 ok. ui in java, "engine" in C? Jun 08 19:30:37 diki: what is it? you probably don't need C Jun 08 19:30:39 possible? probably. good? no idea Jun 08 19:31:00 why would you want to use C unless you had to\ Jun 08 19:31:06 calamari: shold be there within an hour or so? Jun 08 19:31:21 Because I like C? Jun 08 19:31:38 diki: you can compile programs in c directly for the device.. however they wouldn't be generally useful for people unless they were *nix buffs Jun 08 19:31:45 well, yes, you can do that, if you want Jun 08 19:31:52 I am barely into the language. I cannot start learning another one just yet. Jun 08 19:31:55 calamari: that is not the case Jun 08 19:32:00 if you like C, you'll love java Jun 08 19:32:06 oGMo: it is the case, I've done it Jun 08 19:32:09 lets not debate the relative merits of C vs. java again Jun 08 19:32:21 Hi all Jun 08 19:32:22 calamari: you are uninformed Jun 08 19:32:37 Atm Id like to port vanitygen which is written in C with pcre and pthreads Jun 08 19:33:02 oGMo: you're arguing that you can't compile command-line shell programs for android? Jun 08 19:33:02 diki: java is pretty easy to learn though .. and it's preferable to get a java sdk stack going and understand the lifecycle before doing NDK stuff Jun 08 19:33:09 diki: you'll be doing a lot ogf data marshalling through jni Jun 08 19:33:10 oGMo: not at all, I compiled a c program natively.. it was just like a hello world but I was able to run it from the command line Jun 08 19:33:26 pragma-: no, i'm saying they would not _only_ be commandline apps Jun 08 19:33:38 wongk: not that I understood what you wrote. Jun 08 19:33:43 the ndk allows GL and some other stuff, and you can always do JNI Jun 08 19:33:45 you are not limited to the command line for C apps Jun 08 19:34:02 oGMo: yes, hence the "*nix buffs" part of my statement ;) Jun 08 19:34:09 oh misread you Jun 08 19:34:12 diki: you will want to understand before attempting any real project Jun 08 19:34:13 thatd be cool Jun 08 19:34:14 oGMo: what would they be in addition to commandline apps? Jun 08 19:34:26 FUUU Since: API Level 11 Jun 08 19:34:33 pragma-: actual android apps :p Jun 08 19:34:43 Ikarus: compatibility library. Jun 08 19:34:45 I hope the docs are not like the symbian ones Jun 08 19:34:52 what can be more important than discussing the merits of C vs java? :> Jun 08 19:35:02 diki: i have heard horror stories about symbian development .. android dev is however relatively trivial Jun 08 19:35:03 moonlightcheese: nah, work around in this case probably Jun 08 19:35:26 diki: the docs _do_ make things seem a bit more complicated than they are, but the learning curve is barely a speed bump Jun 08 19:35:33 what was the old way for having a view know it's layout was changed ? Jun 08 19:35:45 diki: but, learn java first .. run through the basic java tutorial on oracle's site Jun 08 19:35:49 I am sure there was one before this onLayouChangeListener Jun 08 19:36:12 Ikarus: the view was destroyed and recreated? Jun 08 19:36:17 do some experiments, get some basic stuff working, and you'll see quickly how you want to do your actual stuff Jun 08 19:36:26 I kind of remember Notch now. Jun 08 19:36:41 Always wondered how he managed all that java code Jun 08 19:37:09 Ge0rG: well, it doesn't seem to be, I mean it's initialisers weren't called after the change Jun 08 19:37:34 I've but one slump.... Jun 08 19:37:37 I am trying to install Proxoid on my cell phone and I found a tutorial where it looks for a ./adb file which seens to have moved at the actual version of android I've downloaded. Could someone help me to figure out how to deal with it on Ubuntu please ? Jun 08 19:37:59 I do not have access to a Pc right now Jun 08 19:38:18 nor in the next few months due to person reasons Jun 08 19:38:31 personal* Jun 08 19:38:49 is there a Watch view in Eclipse that lets you type in things to be evaluated like there is in Visual Studio? Jun 08 19:39:43 shutin: while in the Debug perspective, try the Display view Jun 08 19:39:49 just to be sure. Calendar.getInstance().getTimeInMillis() is time since the epoch, yes? Jun 08 19:40:07 Could someone help to to install Android SDK Platform-tools at Ubuntu please ? Jun 08 19:40:12 fear Calendar Jun 08 19:40:18 use System Jun 08 19:40:27 pragma-: haha, okay.. Jun 08 19:40:48 System.currentTimeInMillis() then? Jun 08 19:40:51 Or at least point me to a location where I could find a updated tutorial ? Jun 08 19:41:57 jeremyhaberman: thanks. but how do you execute it? Jun 08 19:42:47 for example, i put this in the Display view: int x = agencySpinner.getSelectedItemId(); Jun 08 19:45:17 jdb could use some love. Jun 08 19:45:42 "help watch" should show just the help for the watch command, not the entire help spew Jun 08 19:46:01 and pressing enter should repeat the last command, and needs abbreviations, etc, etc Jun 08 19:46:16 * pragma- spoiled by gdb. Jun 08 19:47:12 heh Jun 08 19:48:45 pragma-: point me to a jdb tutorial and i'm all ears (I think). Jun 08 19:48:50 ahh, it's Expressions. Jun 08 19:49:31 is there a listenable or whatever on a view, other then onLayoutChangeListener that is called when the view is relayed out Jun 08 19:49:54 I'm appaerently losing some state, without the object being recreated (probably a parent class doing that) and I need to reinstate that Jun 08 19:51:43 hey Jun 08 19:52:15 how can I re-launch an app with its state saved? Jun 08 19:52:25 the way the task manager does it on android? Jun 08 19:52:53 its up to the app to remember its state Jun 08 19:52:55 what do you mean. are you writing an app? Jun 08 19:52:58 I tried setting the android:launchMode="singleTask" Jun 08 19:53:05 it does that for activities, not for apps Jun 08 19:53:28 I have a service which basically makes sure an app is running on the device at all times Jun 08 19:53:51 how do you make sure the service is running at all times? :P Jun 08 19:54:11 and if the app is not running, start it in its previous state Jun 08 19:54:21 I'm leery of anyone that says "task manager" or "task killer" Jun 08 19:54:43 pragma-: super task manager killer 2000 + (now with a 30% discount) Jun 08 19:55:02 no, this is for a device specific app thing, not going to be in the app store Jun 08 19:55:05 stmktp, for short. Jun 08 19:55:06 you can't push state to an app; an app is told to start and figures it out, or doesn't... The only thing you can really do is say "start xyz activity". What activity its in is not, I don't think, visible outside the app tho. Jun 08 19:55:31 how does the default launcher do it? Jun 08 19:55:50 if you're 3 activities in, it'll take you back to that activity Jun 08 19:55:50 apps remember their state, or are still running Jun 08 19:55:58 it's still running, then Jun 08 19:56:03 yes, still running Jun 08 19:56:04 if you go to task manager, force stop Jun 08 19:56:15 then long-home and click on it, it'll go to the initial state Jun 08 19:56:21 an app does not remember its state when it's killed Jun 08 19:56:24 yea, I want to bring the app to the foreground Jun 08 19:56:32 assuming it's still running Jun 08 19:56:59 but if I call a specific intent, it'll start that activity in the app, not the last activity the app was on Jun 08 19:57:08 unless the activity remembers its state immediately rather than in onPause Jun 08 19:57:10 I believe that's just the start intent Jun 08 19:57:22 probably just send the launcher intent Jun 08 19:57:36 so I start the app, navigate to activities A -> B -> C, then background the app Jun 08 19:57:49 I want to bring it back and be on activity C, not A Jun 08 19:58:19 I think it's just activity.class and go Jun 08 19:58:31 same as if you launched it new; it's already running so it comes to foreground Jun 08 19:59:57 the way I start it in the first place was that I had an intent action com.test.activities.launchA Jun 08 20:00:09 so I would use that to start activity A Jun 08 20:00:11 alex7: or... http://stackoverflow.com/questions/2232238/how-to-bring-an-activity-to-foreground-top-of-stack Jun 08 20:00:17 alex7: 10 seconds of google :P Jun 08 20:00:24 second answer. Jun 08 20:00:42 I saw that post, tried the first answer Jun 08 20:00:53 yeah, so, uh. read more. :P Jun 08 20:00:57 :) Jun 08 20:01:13 Since you explicitly stated you wanted to do the same as the launcher... the second answer is, "do the same as the launcher" :P Jun 08 20:01:37 I didn't think that will work since it seemed to just start their example activity, MyMainActivity Jun 08 20:01:49 I'm going to try it right now Jun 08 20:02:21 now i'll admit i didn't try it but the answer explicitly says "whatever activity in my package was most recently used is brought back" Jun 08 20:02:30 so it's worth exploring. Jun 08 20:03:41 alex7: it works. Jun 08 20:03:49 infact it solved a quirk w/ my service doing it that way, so, thanks for making me google for you ;P Jun 08 20:04:01 heh Jun 08 20:04:19 still doesn't work for me Jun 08 20:04:23 alex7: my test is bringing my UI back from the service notification; making that intent and setting it as the pending intent brings the UI back in the previous activity state Jun 08 20:05:15 since my "launcher" is in a different project, I can't call ActivityA.class Jun 08 20:05:47 so I did ComponentName cn = new ComponentName(this, "com.test.ActivityA"); Jun 08 20:05:53 well, you should call whatever activity is listed in the target as the action_main and category launcher Jun 08 20:06:19 Anyone have experience as to why a arrayadapter in an arrayadapter doesn't draw the correct view ? Jun 08 20:07:07 Anyone know whats going on when the listviewItem is drawn in size, but completely blanc ? Jun 08 20:07:36 arrayadepterception Jun 08 20:07:42 it's completely white? Jun 08 20:07:42 Know Jun 08 20:07:46 no its not white Jun 08 20:07:48 Transparant Jun 08 20:07:59 I made the background white, but it doesn't even draw that Jun 08 20:08:18 Yet the adapter works fine when not called from a listviewItem Jun 08 20:18:21 http://www.theatlantic.com/technology/archive/2012/06/sorry-young-white-guy-youre-not-the-most-important-demographic-in-tech/258087/ Jun 08 20:18:38 i remember the old vz android marketing - seems like they made a mistake :) Jun 08 20:19:03 i wonder about gender adoption of android devices, haven't seen any stats Jun 08 20:19:14 i typically see women with idevices Jun 08 20:20:43 people who still see the world as blue and pink have serious issues. Jun 08 20:23:45 http://www.cracked.com/article_19780_5-gender-stereotypes-that-used-to-be-exact-opposite.html Jun 08 20:23:48 * Ge0rG prefers teal and orange Jun 08 20:24:08 that's so hollywood. Jun 08 20:25:00 how well does android handle threads? Jun 08 20:27:47 jimi_hendrix: they're pretty intrinsic to android/java Jun 08 20:27:59 jimi_hendrix: so, just fine, w/ the usual caveats of java threads. Youc an't cancel a blocked one, etc. Jun 08 20:28:07 right Jun 08 20:28:27 jimi_hendrix: you cannot touch your UI from outside your UI thread Jun 08 20:28:45 so i cant call invalidate? Jun 08 20:28:52 jimi_hendrix: and you cannot (well, strongly should not, and enforced in newer androids) do blocking operations on your UI thread Jun 08 20:28:52 that would be touching the UI thread Jun 08 20:29:06 well thats why nothing is showing up Jun 08 20:29:10 jimi_hendrix: if you need to do something to the UI, you send a message to the UI thread Jun 08 20:29:20 ok Jun 08 20:29:43 or just throw a runnable its way Jun 08 20:29:45 is there a specific mechanism for that, or can i just do it however i want to implement it Jun 08 20:30:14 if you have an activity reference, you can call runOnUithread Jun 08 20:30:39 otherwise use the main looper Jun 08 20:30:55 jimi_hendrix: android uses Handler and Looper stuff; you could do other passing I'm sure, but. Jun 08 20:31:30 and yeah, as wongk says. You probably run runonuithread. I don't usually get near stuff that's timing sensitive w/ other threads so listen to him there Jun 08 20:32:29 you can tell who the eclipse users are by how they don't write the identifiers properly Jun 08 20:35:15 Guys, I'm trying to do custom circular progresspar. It's simple, it works, but it doesnt automagically scale my drawable based on size I specify for progressbar. Can't figure out, why? Jun 08 20:35:22 how would poorly writing identifiers be indicative of Eclipse users? Jun 08 20:35:39 QubeZ: he means layout builder users Jun 08 20:35:46 R.id.Button15 Jun 08 20:36:15 does Eclipse make you name things poorly? Not being stubborn, just curious. Jun 08 20:36:39 it just adds the ids itself, layout builder Jun 08 20:36:54 oh, i've never used layout builder Jun 08 20:37:01 I don't even remember how many textView1 I've had to change Jun 08 20:37:09 is that new? Jun 08 20:37:21 or is that the graphical tab to drag/drop? Jun 08 20:37:26 yep Jun 08 20:37:41 oh ok, I think I tried that for like 15 secs then deleted everything it did Jun 08 20:37:45 http://stackoverflow.com/questions/10955743/android-layout-ignoring-gravity-attribute Jun 08 20:38:56 it's useful to preview layouts Jun 08 20:39:03 I'm trying to use a Spinner View as an actionLayout with ActionBarSherlock and it looks correct in an ICS emulator, but not in my 2.3.3 device. Any ideas? Jun 08 20:39:11 and even when building stuff, if you remember to go back in and name things sanely :) Jun 08 20:39:18 I tried a nested menu as well, but neither does exactly what I'm looking for. Jun 08 20:39:33 actually, I was referring to "runonuithread" vs "runOnUiThread" -- a large portion of users of auto-generating/auto-completing IDEs often don't properly type the method/field/etc identifiers properly when talking about them in a textual medium such as e-mails or quick-and-dirty "documentation" Jun 08 20:40:00 camelcase is plain old annoying Jun 08 20:40:16 effect of unnecessary limitations on symbol names, I say! Jun 08 20:41:19 and I often repeat the same qualifier in a sentence often. Jun 08 20:42:53 wtf is _ActionBarSherlockTrojanHorse.java? Jun 08 20:42:59 lulz Jun 08 20:43:07 I pointed that out too when I saw it in a stacktrace Jun 08 20:43:16 worse name ever Jun 08 20:43:18 worst Jun 08 20:43:40 don't asl questions and JakeWharton won't shoot you in the face Jun 08 20:43:51 asl? Jun 08 20:44:01 that's how i roll Jun 08 20:44:01 lol Jun 08 20:44:03 ASL? Jun 08 20:44:13 age/sex/location Jun 08 20:44:13 bro Jun 08 20:44:16 14/f/Hotlanta. Jun 08 20:44:21 12/f/in your house Jun 08 20:44:37 80/m/in a tree Jun 08 20:44:44 lul. Jun 08 20:44:58 na/na/center of the universe Jun 08 20:44:59 you should come down from there, you're old, you could hurt yourself Jun 08 20:45:26 im not sure how I got up here because I have alzheimers Jun 08 20:45:37 lol he's the old man from Family Guy. Jun 08 20:45:57 "i won't tell if you won't" Jun 08 20:46:02 hehe Jun 08 20:47:42 aright i got a listview i'm havin trouble with, and i feel like i'm just overlooking something stupid. i've written two of these listviews that are almost identical, but they draw completely different. Jun 08 20:47:50 anyone wanna play "spot the difference"? Jun 08 20:47:53 http://stackoverflow.com/questions/10955743/android-layout-ignoring-gravity-attribute Jun 08 20:48:31 why you no derive from abstract base class if they're so similiar? Jun 08 20:48:41 they're xml layouts? Jun 08 20:48:57 needs less yellow Jun 08 20:49:14 holy hell Jun 08 20:49:19 was a requirement. not my choice. Jun 08 20:49:23 it's ugly as fuck. Jun 08 20:49:31 this is making my eye bleed Jun 08 20:50:42 just the one? Jun 08 20:50:53 i only have one Jun 08 20:50:58 pics. Jun 08 20:50:59 are you making fun of me? Jun 08 20:51:04 PIX. Jun 08 20:51:09 asl? Jun 08 20:51:20 you probably want a match_parent somewhere Jun 08 20:51:21 pics? Jun 08 20:51:35 "06-08 22:49:14.127: E/Surface(21642): Surface (identity=187) requestBuffer(0, 00000033) returneda buffer with a null handle" What could be the reason for that? I'm moving to a new activity and then I get a ton of those in the LogCat and the screen goes black :/ Jun 08 20:51:51 android:layout_weight="1" Jun 08 20:51:53 android:layout_height="wrap_content" Jun 08 20:51:55 android:layout_width="0dp" Jun 08 20:52:16 all that should force that TextView to be as big as it can, without pushing shit off the screen. Jun 08 20:52:26 works fine in ExpandableListAdapter. Jun 08 20:52:32 you might want to give them all weights if you're going to give one of them a weight, but I'm not sure since I just use relativelayouts Jun 08 20:53:36 interestingly, "item_text_units" uniquely ignores "gravity=right" it seems. Jun 08 20:53:40 looks weird. Jun 08 20:53:56 there's a layout_span in the second row in the bottom layout Jun 08 20:54:11 because it's supposed to be there. Jun 08 20:54:29 2nd and 3rd row. Jun 08 20:54:29 im just telling you the differences Jun 08 20:54:35 lololk. Jun 08 20:57:35 moonlight, are the elements static or dynamically defined? Jun 08 20:58:24 oh wait, you dont want the black part? Jun 08 20:58:30 exactly. Jun 08 20:58:41 everything on the right needs to be ALL THE WAY to the right. Jun 08 20:58:56 and it just ain't doin it. Jun 08 20:59:08 When using ABS, I get error that abs__strings.xml is not translated. I have localized my strings.xml but using the ABS lib is breaking that. I copied the abs__strings.xml to another values-es folder within the lib and clean -> build but still showing errors. Anyone using ABS with localization? Jun 08 21:00:11 i've localized all my strings to english with no warnings! =] Jun 08 21:00:19 nevermind, looks like Eclipse is being a lil bitch Jun 08 21:00:27 seems to be working now that I've closed and opened 3 times Jun 08 21:00:30 3 times the charm Jun 08 21:00:38 I don't understand why people still use Eclipse. Jun 08 21:00:38 /pimpslap Jun 08 21:00:47 IntelliJ ftw. Jun 08 21:00:50 Some kind of desperation or naivette, I guess. Jun 08 21:00:51 ^ Jun 08 21:00:53 Hm... can I use static initializer blocks in a Service to load data from a file once? Jun 08 21:01:08 ehh Eclipse im sticking with... inevitably moving to something else I'll find issues with something else Jun 08 21:01:17 you won't lol. Jun 08 21:01:18 I just went to vim :P Jun 08 21:01:18 Also, doesn't help much that developer.android.com keeps mentioning it before mentioning hte command-line equivalents Jun 08 21:01:23 IntelliJ is perfect. Jun 08 21:01:31 no software is perfect Jun 08 21:01:37 so glad i kicked Eclipse to the curb. Jun 08 21:01:41 its always "developing" :) Jun 08 21:02:00 moonlightcheese, having the textview and table both have "fill_parent" (width) and the same weight Jun 08 21:02:02 well, it's far and away superior to Eclipse, in any event. Jun 08 21:02:13 s/having/make Jun 08 21:02:16 why do they have such close ties with eclipse, anyways? Jun 08 21:02:17 Rich787: I got in trouble mentioning vim in here. Jun 08 21:02:22 shoerain: use a static with function scope Jun 08 21:02:22 trying... Jun 08 21:02:25 "fill_parent" is deprecated in favor of "match_parent" Jun 08 21:02:30 Gumboot: really? hah why? Jun 08 21:02:41 Well, I didn't get _in_ trouble. I just saw evidence of it. Jun 08 21:02:44 moonlightcheese, and give the table layout_gravity="right" Jun 08 21:02:45 But you know... that's basically the same. Jun 08 21:03:02 i had originally, but it didn't do anything in the expandable list adapter. Jun 08 21:03:07 Rich787: I think it's something that comes up and that people still argue about. Jun 08 21:03:07 s/adapter/view Jun 08 21:03:14 i'll see if it works. Jun 08 21:03:25 moonlightcheese, if that doesnt work, put a blank view between them and give it the weight Jun 08 21:03:35 right, I just see it as learning one IDE that works for every language. Jun 08 21:03:37 do I need to add something to proguard for it to like ABS? Jun 08 21:03:42 OoOOOOooOOo. Jun 08 21:03:45 kk. Jun 08 21:03:50 There's nothing more frustrating than spending the first hour wrestling with UIs Jun 08 21:03:54 QubeZ: you do, and it's discussed in the FAQ Jun 08 21:03:59 kk Jun 08 21:04:02 I see it as throwing away the IDE and just using the few remaining tools which actually work properly. Jun 08 21:04:07 let me know if that works and i'll answer you on SO :) Jun 08 21:04:12 QubeZ: don't understand why you no just prefix your ABS questions with jake's name -- he can directly answer them all. Jun 08 21:04:14 hah so true Jun 08 21:04:29 also, the ABS website tells you what you put in proguard Jun 08 21:06:07 Seems that you get to an age where printf debugging is actually adequate, and adding such diagnostic code is quicker than wrestling with the UI. Jun 08 21:06:08 make sure you ask all your C questions to Kernighan directly and your algorithms questions directly to Knuth, too Jun 08 21:06:19 Gumboot: gdb buddy, gdb Jun 08 21:06:27 jeppy: none of that worked, either in whole or by parts. Jun 08 21:06:34 got a java question, better email gosling Jun 08 21:06:35 wongk: not sure I follow, explain youselfs. Jun 08 21:06:59 just don't tell him it's aobut android... I don't think he's too fond of it Jun 08 21:07:25 yea this apparently just isn't gonna happen. Jun 08 21:07:26 gosling doesn't even deal with java any more Jun 08 21:07:33 shoerain: void loadFromFile() { static boolean loaded = false; if (!loaded) { loaded = true; ... } } Jun 08 21:07:36 i dunno what i'm doin wrong :/ Jun 08 21:07:41 it seems like it should be easy Jun 08 21:07:42 Gumboot: if you have an idea of what the problem is, printf/logs seem to work for a vast majority of bugs Jun 08 21:07:42 or if this is an android problem. Jun 08 21:07:47 that's what i thought! Jun 08 21:07:49 g00s: y ou mean those submarine robots he writes Jun 08 21:07:55 yeah ! Jun 08 21:07:57 way cooler Jun 08 21:08:00 YEAH!!! Jun 08 21:08:02 don't run the jvm ? Jun 08 21:08:19 wongk: I mean that's what I was thinking, but is that common practice? Jun 08 21:08:33 who cares, does it solve your problem? Jun 08 21:08:42 so against everyone's recommendation I purchased a samsung galaxy tab 10.1 Jun 08 21:08:42 moonlightcheese, try only changing the textview's width to fill_parent Jun 08 21:08:43 i wonder if JakeWharton needs any more to keep supporting his projets/libs.. Jun 08 21:08:46 i'd be happy to donate Jun 08 21:08:55 just taking it ou tof the box... very nice Jun 08 21:08:58 Actually, I say that, but eclipse kind of pushed me back to printf debugging. In my previous life I had a GUI debugger which wasn't a waste of my time. Jun 08 21:09:00 readme: except those things have a vastly huge community -- and even then, if they were in the IRC channels, I'd skip all the peons and peasants in the channel and specifically target the authors with my questions Jun 08 21:09:02 much like an ipad, I can see why apple hates it Jun 08 21:09:09 jeppy: that was the first thing i tried. i tried all possible combinations of your suggestions. Jun 08 21:09:17 check out abs mailing list... it's flooded 24/7 Jun 08 21:09:17 QubeZ: donate awesome apps that I will use! Jun 08 21:09:19 well phooey Jun 08 21:09:22 i subscribed to it once, big mistake Jun 08 21:09:29 phooey indeed. thanks for the effort though. Jun 08 21:09:29 haha, yea eclipse is pretty bad Jun 08 21:09:39 this really seems like a bug. Jun 08 21:09:43 JakeWharton: I'm implementing ABS into To Do Mapr as we speak for the next release -- not sure if you'll use this app but hope so :) Jun 08 21:09:43 in Android. Jun 08 21:09:46 helping on the mailing list would be awesome too :) Jun 08 21:09:46 i wonder if the new foursquare uses abs Jun 08 21:09:51 g00s: it does Jun 08 21:09:52 hey, I'm using a button and have an image which is being used for android:drawableRight on the button; are there any adjustments that can be made to the image's alignement that I am just missing? Jun 08 21:10:04 g00s: https://twitter.com/nickburton/status/210841865178710016 Jun 08 21:10:06 JakeWharton: thanks, that saved me from reversing the apk Jun 08 21:11:10 Twitter makes me feel dumb. Jun 08 21:11:19 my confidence increases as big apps use abs Jun 08 21:11:19 when I use drawableLeft image, the text spacing isn't right... its pushed right up next to the drawable. Is there an attribute to separate that? padding or margin work for that view so how do you pad space between image the the textview in the compound view? Jun 08 21:11:26 really? twitter reminds me how intelligent i am. Jun 08 21:11:28 twitter makes me hate twitter Jun 08 21:11:44 moonlightcheese: some peoples twitters are kind of smart. Jun 08 21:11:49 it's all about who you follow Jun 08 21:11:57 i don't use twitter. Jun 08 21:12:00 I don't follow people, son. Jun 08 21:12:02 but when i do. Jun 08 21:12:20 ... Jun 08 21:12:25 incompletememeexception Jun 08 21:12:34 but there *are* interesting people on twitter Jun 08 21:12:35 JakeWharton, how to help on the mailing list? Jun 08 21:12:36 lol. Jun 08 21:12:38 he accidentally a meme Jun 08 21:12:43 also it's like a a community/global message board, that's nice. Jun 08 21:12:54 jeppy: just reply intelligently to people who ask questions Jun 08 21:13:09 noted Jun 08 21:13:17 * pragma- volunteers to offer some replies. Jun 08 21:13:31 i post links to helpful pharmaceuticals Jun 08 21:13:40 viagra, etc. Jun 08 21:13:46 pft, if you can't grow it, don't use it. Jun 08 21:13:53 ^ this. Jun 08 21:14:03 I agree Jun 08 21:14:32 the egyptians cured their diseases with beer Jun 08 21:14:52 it was discovered that egyptian beer, contained, antibiotics Jun 08 21:15:21 take your berricine? Jun 08 21:15:22 (-5) unnecessary appositive. Jun 08 21:15:27 http://news.discovery.com/history/antibiotic-beer-nubia.html Jun 08 21:15:48 +5 great home remedy Jun 08 21:19:28 hm, samsung galaxy tab, y u have no hw back button Jun 08 21:19:43 lol extra credit. Jun 08 21:19:45 moonlightcheese, ok one more shot because i have this working but with two textviews inside a tablerow in my case. both use wrap_content for width and height, but the value textview (on the right) uses a weight of 1. Jun 08 21:19:53 i think i got it actually. Jun 08 21:19:55 i bet you've tried that Jun 08 21:19:57 just a sec. Jun 08 21:20:35 see, every time i think i do a thorough job posting all relevant code to form a clear, concise question, i find the problem somewhere completely unexpected. Jun 08 21:20:38 so it goes. Jun 08 21:21:04 shit happens Jun 08 21:21:19 so fixed in an unrelated area? Jun 08 21:21:40 yep, the fucking parent had the ListView defined with layout_width="wrap_content" rather than "match_parent" so of course it was gonna shrink to fit. Jun 08 21:22:01 so the items were just restricted by the parent. Jun 08 21:22:03 i'm retarded. Jun 08 21:22:04 can you set an animation as a styleable attr? perhaps as a resource? Jun 08 21:22:12 hehe Jun 08 21:22:22 well now we all know Jun 08 21:22:28 but hey, we were both right in that it was simple haha. Jun 08 21:23:35 told ya. Jun 08 21:24:12 honestly the layouts give me way more issues than anything else on this platform so far. Jun 08 21:24:19 i dunno why. Jun 08 21:24:37 i can get it to act right most of the time, i just can't get it to look good. Jun 08 21:24:50 because yellow. Jun 08 21:25:00 s/yellow/purple. Jun 08 21:26:02 looking good isn't a supported feature Jun 08 21:26:04 * oGMo runs Jun 08 21:26:37 y nobody lack mah staaaatus. Jun 08 21:26:39 moonlightcheese: i hear ya. i'm gonna try table layout i think Jun 08 21:33:16 hrm, silly question, I want to make 3 buttons, of equal size, layed out horizontally Jun 08 21:33:26 preferably entirely defined using resources Jun 08 21:33:30 what the hell do I need Jun 08 21:36:03 you need to read the docs on linearlayout and weights Jun 08 21:37:50 first thing I do when I get a new device: delete the 30 widgets on the home screen Jun 08 21:39:44 g00s, ditto Jun 08 21:41:31 readme: ditto Jun 08 21:46:09 #join mongodb Jun 08 21:46:11 #join #mongodb Jun 08 21:46:18 /join Jun 08 21:46:22 wrong Jun 08 21:46:28 sory Jun 08 21:46:47 if it's not mongodb, it's the wrongodb --hipsterhacker Jun 08 21:47:05 http://twitter.com/hipsterhacker/statuses/60148374506180609 Jun 08 21:47:25 readme: sounds legit Jun 08 21:47:27 Jacob Phillips +6 on SO. Jun 08 21:51:11 lololthisguy. Jun 08 21:51:15 "I write world-changing applications in languages you have probably not yet heard of. My code is poetry, meanwhile yours is oh-noetry." Jun 08 21:52:19 "@NeckbeardHacker Jun 08 21:52:21 Fat guy who knows C++. Hire me to replace @HipsterHacker's code with a set of very small shell scripts." Jun 08 21:52:28 lolol. Jun 08 21:52:47 this is the only cool thing i've ever seen on twitter. Jun 08 21:54:04 peace out cub scouts. Jun 08 22:04:25 how would one persist some primitives in a view (not in an activity) ? Jun 08 22:04:42 don't persist views Jun 08 22:05:07 what if I don't have a choice? :) Jun 08 22:05:08 persist the data. use sqlite, java serialization, or a flat file. Jun 08 22:05:13 ahh yes Jun 08 22:05:13 you do have a choice Jun 08 22:05:15 that's what I meant Jun 08 22:05:21 not the view itself, just some state within the view Jun 08 22:05:38 keep the state separate from the view and only use the view to display it Jun 08 22:05:42 don't use views as temp storage for state Jun 08 22:06:03 persist with sqlite Jun 08 22:06:04 hmm ok Jun 08 22:06:10 well this project uses db4 Jun 08 22:06:12 sqlite is overused Jun 08 22:06:14 anything else is uncivilized Jun 08 22:06:14 err Jun 08 22:06:32 sqlite == tons of disk IO for no good reason Jun 08 22:06:49 scratch what I said, I dont know what I'm talking about Jun 08 22:06:51 == lower battery == quicker sd wear and tear Jun 08 22:07:02 empty assertion without data Jun 08 22:07:06 show me a benchmark Jun 08 22:07:16 benchmarks are also overused Jun 08 22:07:26 anecdotes are overused Jun 08 22:07:28 == inconsistent == misinformation Jun 08 22:07:50 i think it would depend on the use case, no? Jun 08 22:08:01 the use case is "over" Jun 08 22:08:16 you can turn journaling off if you don't want durability :) Jun 08 22:08:20 it's in ram after it loads so if you're doing a bunch of reads wouldn't it never even touch disk? Jun 08 22:08:45 its the writes that are problematic Jun 08 22:08:47 you should benchmark adding a list of anecdotes to sqlite Jun 08 22:08:58 +1 Jun 08 22:09:01 hehe Jun 08 22:11:45 it would have been cool if android came with some alternatives to sqlite though, like leveldb or something else Jun 08 22:12:12 OutputStream works for me Jun 08 22:13:19 question related to ActionBar, if I have 6 items -- 2 items show up and 4 show up when I hit Menu key. Would these 4 items then be moved to a ellipsed icon on a non-Menu button phone? Jun 08 22:13:19 shit in == shit out Jun 08 22:13:24 just use a hashmap and write key:value pairs to a text file -- when loading, just use the key for the hashmap's key and set the value, done. Jun 08 22:13:28 easy peasy. Jun 08 22:13:32 Quacktop|BNC yes Jun 08 22:13:34 bah Jun 08 22:13:36 QubeZ Jun 08 22:13:40 ok thanks Jun 08 22:13:55 if you're gonna serialize a hashmap Jun 08 22:14:01 why not just use sharedpreferences instead Jun 08 22:14:05 it should be faster Jun 08 22:14:08 since it's native code Jun 08 22:15:40 the implementation of sharedpreferences is pretty terrible Jun 08 22:15:48 alternatively, you don't have to use a text file, you can just use an ObjectOutputStream and vomit the blob Jun 08 22:17:03 https://github.com/pragma-/networklog/blob/master/src/com/googlecode/networklog/ApplicationsTracker.java -- see saveCache() and loadCache() for great win Jun 08 22:17:46 I've used that strategy a few time Jun 08 22:19:06 only when I was in a hurry and didn't want to write good code, though. Jun 08 22:19:29 oh snap he just called you out big time Jun 08 22:19:33 are you going to take that? Jun 08 22:19:57 * pragma- is always in a hurry. Jun 08 22:20:18 http://code.google.com/p/android/issues/detail?id=13138 Jun 08 22:20:44 "I love to see these performance improvements in Honeycomb!" Jun 08 22:21:22 see, he says to use a DataOutputStream Jun 08 22:21:49 he says to write one yourself Jun 08 22:22:45 FYI, I am a biased SQL fundamentalist fanboy Jun 08 22:22:52 so we can do this all day Jun 08 22:22:52 this is a cellphone, not a desktop -- "good" code has an entirely different meaning here Jun 08 22:23:11 getters/setters are overrated in android Jun 08 22:23:13 etc Jun 08 22:23:19 so you shouldn't use the slow ass java serialization Jun 08 22:23:28 it would probably be faster if you used sqlite. Jun 08 22:23:34 bwahahahahaha "the serialization (or unserialization) of classes is really slow, especially if compared to the tests running in Java 6 on my computer." Jun 08 22:23:48 yeah, 20 ms is a huge difference from 13 ms Jun 08 22:23:50 lol Jun 08 22:24:14 you are one of the few people with an app that has enough data saved to care, probably. Jun 08 22:24:33 is there any way I can easily see or store my logcat when I'm not plugged into USB? I'm having some issues with my GPS portion of my app and the logcat app I downloaded seems to not help me. It looks like different output than when I'm plugged in with USB debugging Jun 08 22:24:40 i don't serialize the class containing all the packets Jun 08 22:24:41 I once worked on an app where this mattered quite a bit. Jun 08 22:24:43 good god Jun 08 22:25:21 also good response from a lib guy on Android: Jun 08 22:25:22 i still need to speed up the history loading, but i think i've hit the io limits Jun 08 22:25:24 * ctate | note that if you're doing something that requires high performance, serialization is not the answer. serialization is a quick hack Jun 08 22:25:26 words to live by Jun 08 22:25:43 there is a reason why Android has Parcelable Jun 08 22:25:54 i could make my code uglier by removing some more cases where java creates objects behind the scenes Jun 08 22:26:23 i'm hoping instead that the GC gets faster on newer API levels Jun 08 22:26:31 and on more powerful devices Jun 08 22:26:53 java is so object hungry Jun 08 22:27:00 if people just coded properly we wouldn't need more powerful devices :( Jun 08 22:27:04 GC seems like one of those things I could imagine having the best chance at getting slower on more powerful devices. Jun 08 22:27:14 http://developer.android.com/sdk/android-2.3-highlights.html Jun 08 22:27:18 2.3 introduced concurrent GC Jun 08 22:28:44 https://twitter.com/hipsterhacker/statuses/55107421223403520 Jun 08 22:29:00 so when you find a security hole in a website that lets you get all their customer names, addresses, phoen numbers, and order information, how do you proceed? Jun 08 22:29:02 seems like macports is pushing for some kind of best-in-class ecoterrorist award, here... Jun 08 22:29:05 just email them and hope they fix it? Jun 08 22:29:15 I like google code's issue tracker Jun 08 22:29:20 the rest of it needs work Jun 08 22:29:33 the syntax highlighting is atrocious Jun 08 22:29:43 canadiancow: email them from an anonymous account Jun 08 22:29:59 breaks all the time on my perl code Jun 08 22:30:00 and demand >$9000? Jun 08 22:30:05 yeah, yeah, inb4 "lol perl" Jun 08 22:30:45 semi-random linebreaks when viewing source too Jun 08 22:30:47 anyone who disses perl is an ass Jun 08 22:30:48 but evancharlton, back to my main point...do i just hope they fix it then? Jun 08 22:31:04 i want to light a fire under them without oding anything illegal Jun 08 22:31:09 i'm not a perl guy, but the perl community doesn't deserve that.. they are extremely helpful people Jun 08 22:31:11 canadiancow: Contact some of their customers and ask them to ask for it to be fixed. Jun 08 22:31:19 that would probably be illegal Jun 08 22:31:24 the first time we discovered the hole was an accident Jun 08 22:31:28 perl gives you almost complete freedom to write a program however you want Jun 08 22:31:29 knowingly obtaining customer info... Jun 08 22:31:31 also, CPAN Jun 08 22:31:36 DigitalKiwi: its not just android devs, android itself does some pretty stupid stuff. for example, BluetoothInputStream allocates a one byte array for each character read :) Jun 08 22:31:50 I hate cpan but I love perl Jun 08 22:32:03 i've written a little bit of perl. i'm not very knowledgable about it Jun 08 22:32:19 been meaning to read modern perl, on my list of books. Jun 08 22:32:37 probably a better investment of my time than learning awk anyway Jun 08 22:32:37 canadiancow: Hack some other site and set up a script to do it for you, then lock yourself out so that the data is not under your control. Jun 08 22:32:43 and python is just not good for quick text manipulation. Jun 08 22:32:47 you can make lots of money working on perl scrips, because nobody want to do it Jun 08 22:32:52 :) Jun 08 22:32:53 it's good if you want to write a reusable text manipulation program Jun 08 22:33:00 but not for very quick hacks Jun 08 22:33:04 it was a replacement for sed awk and grep Jun 08 22:33:09 python, on the other hand, strictly and rigidly enforces that you write your programs the python way Jun 08 22:33:25 currently I use python for these things Jun 08 22:33:40 its OK, but it's not as fast on dev time as it would be if I was a perl monger Jun 08 22:33:40 * ctate needs to properly learn python Jun 08 22:33:47 I used to know a guy who was very fast in perl Jun 08 22:33:53 perl > python Jun 08 22:33:59 nowai Jun 08 22:34:02 perl is line noise Jun 08 22:34:02 yawai Jun 08 22:34:03 not for maintainability :) Jun 08 22:34:13 ctate: you will learn it in a day. one thing i love about python, is you can walk away from it for a few years, and then jump into it and be productive in like 20 minutes Jun 08 22:34:16 i mean, it's faster than python Jun 08 22:34:17 perl is line noise to those who don't know perl Jun 08 22:34:26 but that's true of everything other than ruby Jun 08 22:34:30 '>' just means 'older than', right? Jun 08 22:34:30 (and haskell) Jun 08 22:34:33 ruby is gibberish Jun 08 22:34:44 haskell's type system is overhyped Jun 08 22:34:53 i heard C is cool Jun 08 22:35:34 now piet, there's a language Jun 08 22:35:46 hi, create an instance of AudioManager, do i just use AudioManager am; am.setSpeakerphoneOn(true); ? There is no constructor involved? Jun 08 22:35:53 piet is a work of art Jun 08 22:36:19 http://www.dangermouse.net/esoteric/piet.html -- and some samples: http://www.dangermouse.net/esoteric/piet/samples.html Jun 08 22:39:34 if that piet tetris program actually implemented a basic tetris game, i'd shit myself Jun 08 22:41:06 there are some things in python that would trick people coming from java if they didn't research Jun 08 22:41:19 for example a < b < c actually means what it means mathematically Jun 08 22:41:24 canadiancow: Just email them or even call them? Jun 08 22:41:53 they'd ignore it Jun 08 22:42:03 or say "ok thanks" and do nothing about it Jun 08 22:42:09 hi SimonVT Jun 08 22:42:46 Hi canadiancow Jun 08 22:42:47 canadiancow might mention something about disclosing it after a month after notice them or something Jun 08 22:42:54 I see my client crashed Jun 08 22:54:53 ok, this may be a noob question, but i need the activity context inside of an on click listener... which is preferable 1) v.getContext(), 2) MyActivity.this, 3) getApplicationContext(), 4) getBaseContext() Jun 08 22:56:52 depends on which context you want; and no, I have no idea what you want. Jun 08 22:57:07 pragma-: you cant read my mind? Jun 08 22:57:52 birbeck: MyActivity.this Jun 08 22:58:50 well the button click starts an asynctask, which i pass the context in to the constructor. so im pretty sure only the activity context is desirable Jun 08 22:59:11 evancharlton: thanks... thats what i have always been using Jun 08 22:59:11 v.getContext == MyActivity.this Jun 08 22:59:17 make sure that if you are rotating the screen and keeping the asynctask, that you are replacing the context each time. Jun 08 22:59:22 yeah, i debugged and they were both the same Jun 08 22:59:22 SimonVT: avoids a method call Jun 08 22:59:27 Yep Jun 08 22:59:46 readme: yeah, thats the purpose of holding the context, i have a setContext() as well Jun 08 23:00:04 evancharlton: good point Jun 08 23:00:57 one of the senior devs the other day saw my use of MyActivity.this the other day and was like 'wtf is this'? Jun 08 23:01:37 I hope by "senior" you mean "> 65 years old" Jun 08 23:01:38 java academics. Jun 08 23:02:21 :( Jun 08 23:02:39 some people plateau quick Jun 08 23:02:55 and by that i mean they stop learning and lose all will to improve Jun 08 23:04:55 evancharlton: senior as in frameworks and IDEA generate all his code :P Jun 08 23:05:53 I found the article I was thinking of Jun 08 23:06:06 http://www.drdobbs.com/architecture-and-design/240001472 Jun 08 23:06:17 you might learn how to repeat your same task faster by not pursuing new learning Jun 08 23:06:23 but you won't get very clever that way! Jun 08 23:09:07 http://pastebin.com/e35aaPAC is this a good way to run a set of code ONCE with a delay? Or are there better ways to do it? Jun 08 23:10:00 that is a good way Jun 08 23:10:04 we can afford to be reckless because we have interns to write the glue that makes everything work together! Jun 08 23:10:47 Thanks readme. Jun 08 23:11:43 I bet half of my life savings that he's using this delayed runnable as some horrible work-around for something like app initialization Jun 08 23:11:44 Do I need to destroy it or anything, or will that handle itself? Jun 08 23:12:14 pragma- I'm using it to change a image to correspond with a media sound. Jun 08 23:13:04 likely cover story! Jun 08 23:13:09 pragma-: you're on... can't wait to buy a coffee when I win Jun 08 23:13:35 can't wait to buy the starbucks chain, you mean? Jun 08 23:14:31 For a toast, can you change any properties of it? Like to auto close the message, or to change the specific time to whatever milliseconds you want, maybe change the color text size anything? Jun 08 23:14:56 no, maybe, yes. Jun 08 23:14:57 lmgtfy Jun 08 23:16:14 T-Dub|DlolPics: I don't think so, but you can use a PopupWindow Jun 08 23:16:23 note: toasts and toast-like UIs are almost always a bad idea Jun 08 23:16:32 It appears you can. Jun 08 23:16:52 and toasts always auto-close Jun 08 23:16:56 Well I didn't really care to really customize it. I wanted to do something like if(toast.isRunning()){ toast.cancel(); } type thing Jun 08 23:17:10 Or like instead of using Toast.short or Toast.long do like the exact time I wanted. Jun 08 23:18:16 I hate how google removes most punctuation from the search query Jun 08 23:18:58 and I especially hate when it replaces my search query altogether with something it thinks I meant Jun 08 23:19:08 lol Jun 08 23:19:40 Really it just makes everything much harder to type, now, because you need so many quotes. Jun 08 23:31:53 dumpsys alarm Jun 08 23:33:38 go to the libraries and demo section of google play Jun 08 23:33:44 the top apps are all asian porn Jun 08 23:33:47 QubeZ: wrong window :) Jun 08 23:33:48 can't even find abs? wtf Jun 08 23:34:04 ctate: haha ya Jun 08 23:34:10 just got recurring tasks working in To Do Mapr Jun 08 23:34:18 working exceptionally well actually Jun 08 23:34:28 it was kind of a pain to implement Jun 08 23:34:47 orly Jun 08 23:35:28 readme: on device or what? when i look on the desktop i see no pr0ny apps there. Jun 08 23:35:30 https://play.google.com/store/apps/category/LIBRARIES_AND_DEMO?feature=category-nav Jun 08 23:35:40 oh, top free, ha ha Jun 08 23:35:45 ctate: i am using a samsung galaxy Jun 08 23:35:46 heh Jun 08 23:35:49 tablet Jun 08 23:36:09 apparently you usually pay for that stuff :) Jun 08 23:36:46 medical apps.. most probably not checked by doctors Jun 08 23:37:08 I've got an idea for a medical app: OrgansNearMe Jun 08 23:37:13 find black market organ dealers near you Jun 08 23:37:52 why do the report crash activities have on-screen back buttons... Jun 08 23:38:26 because racecar Jun 08 23:43:21 canadiancow|work: Obvious implication is that it will un-crash. Is that not what you wanted? Jun 08 23:43:52 When i wark with sqllite, wich path i should use for the database? Jun 08 23:45:30 None, sqliteopenhelper takes care of that Jun 08 23:45:35 it will be in the apps folder /data/data/ Jun 08 23:45:59 It might be in /data/data/... Jun 08 23:54:36 if you have 4 tabs whats the actual tab size of each tab to fill each tab with an image? Jun 08 23:55:51 depends on the device, of course Jun 08 23:57:04 right but is there a fill option ? Jun 08 23:57:21 ctate, i guess that was my question Jun 09 00:04:18 ctate, i guess that was my question Jun 09 00:04:19 ctate, i guess that was my question Jun 09 00:04:25 right but is there a fill option ? Jun 09 00:04:27 dude. don't spam. Jun 09 00:04:28 opps sorry Jun 09 00:04:35 i didnt mean to sorry Jun 09 00:04:47 i do not know; i haven't done much UI programming, actually Jun 09 00:05:12 ok Jun 09 00:05:31 my tab images are looking funny thats why Jun 09 00:19:57 Question about tabbed interfaces i am trying to put a place holder underneth the tabs for something later and all it is doing is making all the tabs look funny. Jun 09 00:37:34 ctate: what do you work on? Jun 09 00:37:46 android engineer? Jun 09 00:37:48 yes Jun 09 00:37:50 framework Jun 09 00:37:58 the parts that don't draw pixels :) Jun 09 00:38:02 lol Jun 09 00:38:06 the awesome part :) Jun 09 00:38:15 surfaceflinger seems like a mess Jun 09 00:38:28 i aspire to have your knowledge some day Jun 09 00:38:43 surfaceflinger has a really complex job Jun 09 00:38:55 yeah yeah eyah Jun 09 00:39:04 esp when you consider mixing software rendering with hardware-accelerated rendering with direct GL etc Jun 09 00:39:18 finally just got my rom not shitting the bed without races and deadlocking in surfaceflinger Jun 09 00:39:49 just updated all the source as far forward as I could Jun 09 00:39:53 for surfaceflinger/surface/etc Jun 09 00:42:04 doesnt really help there are like 3 diff companies cooks in the kitchen *OTHER* than google in this case Jun 09 00:48:18 http://www.youtube.com/watch?src_vid=tSnUIxqH3zA -- the sequences at 3:10 and 3:40 are epic Jun 09 00:48:56 er http://www.youtube.com/watch?v=zlK5abIJRyM Jun 09 00:51:03 wow Pragma, wonder how many guys are hiding at the back Jun 09 00:51:08 pretty swell Jun 09 00:54:28 * p_l|backup wants surfaceflinger working on top of X11 Jun 09 00:58:04 that's ... backwards? :) Jun 09 00:58:22 lol'd at http://www.youtube.com/watch?v=Jn934YH9-rc Jun 09 00:58:24 * ctate wants never to have to deal with X11 EVER AGAIN Jun 09 00:58:52 X11 is too elite for you Jun 09 00:59:21 x11 works out of hte box now pretty mcuch. Jun 09 00:59:28 It's more than a simple window compositer. Jun 09 00:59:51 ctate: no, it's so that I can reuse drivers that are designed for X11, and have better device emulator this way Jun 09 01:00:23 see above re never having to deal with X11 :) Jun 09 01:00:58 readme: "is not dog-slow" is hte not the same as "works" :) Jun 09 01:02:36 it's slow Jun 09 01:02:37 sure Jun 09 01:02:57 now slow enough to effect me, though Jun 09 01:03:02 not* Jun 09 01:03:09 i suck at typing right now Jun 09 01:03:22 What, X11? When you have such braindamaged code as the one that goes for UI toolkits these days, it's no wonder it gets slow. Jun 09 01:03:46 X11 applications are not supposed to need to know display's DPI to render properly Jun 09 01:03:47 the bottleneck is in the client-server architecture Jun 09 01:04:07 all X11 apps just write commands to a socket underneath Jun 09 01:04:59 readme: yes, because X11 was designed for transparent networked operation. Something that, afaik, so far only Plan9 got better, and they had their own issues in display model Jun 09 01:05:42 ctate: i put ubuntu on my macbook, i just couldnt deal with os x Jun 09 01:05:58 X11 doesnt bother me much Jun 09 01:07:15 works fine for me Jun 09 01:07:28 I can understand if it was too slow 5 years ago for some people. Jun 09 01:09:42 readme: it got a bit worse, because someone got the idea that rendering fonts on the application side and sending compositing commands over network for every single glyph was a better idea Jun 09 01:11:11 whats that replacement called Jun 09 01:11:22 the other windowing system that ubuntu is purportedly switching to Jun 09 01:11:25 that uses direct rendering Jun 09 01:12:40 speed isn't what bugs me about X Jun 09 01:12:41 Has anyone here dealt with jni and gettext/libintl ? Jun 09 01:12:46 it's the totally hideous UX Jun 09 01:13:01 esp. the broken-by-design clipboard and hotkey regimes Jun 09 01:13:33 I wonder how I'll tackle this...I guess I'll try the direct approach, and if that doesn't work, do some kludge that uses the po/mo files Jun 09 01:17:11 readme: it's a shitty lib called wayland Jun 09 01:17:34 ctate: can you elaborate about clipboard and hotkeys? Jun 09 01:18:57 p_l|backup: if you close the application you've copied something from Jun 09 01:19:02 that's a shame, the buffer gets destroyed Jun 09 01:20:44 feesh: I recall the same happening in Windows Jun 09 01:21:40 that is, it required some manipulation for the buffer to stay Jun 09 01:21:48 personally, I mostly use X selections Jun 09 01:23:48 and still, you can fix the clipboard behaviour Jun 09 01:24:34 implicit select -> copy is horrific UX. Jun 09 01:24:47 multiple copy buffers are a cute idea but are also horrific UX. Jun 09 01:25:01 ctate: I *love* select -> paste Jun 09 01:25:03 copied content relying on the continued lifetime of the originating process is just broken. Jun 09 01:25:09 yes, people who like X like that feature Jun 09 01:25:14 there are also people who like being whipped. Jun 09 01:25:33 it takes all sorts i suppose but that doesn't make it ideal. Jun 09 01:26:00 ctate: nope, people who like being whipped go for OSX and its "my way or highway" Jun 09 01:26:26 funny how MacOS is perceived by normal human beings as a lot easier to learn and use than X. Jun 09 01:26:37 ctate: I didn't say "harder" to use Jun 09 01:26:45 "more powerful" is not inherently better. Jun 09 01:27:02 Neither did I claim that. Jun 09 01:27:05 "harder to kick yourself in the teeth" has a lot of value; cf select-to-ocpy Jun 09 01:28:01 meanwhile, there are so far two OSes that managed to confuse me in terms of closing an application... OSX and z/OS Jun 09 01:28:22 App menu / Quit? Jun 09 01:28:33 interesting Jun 09 01:28:46 the OS that confused me most about how to quit was emacs. Jun 09 01:28:57 oh snap Jun 09 01:29:17 ctate: heh. Usually that's reserved for Vi, hence the use of it as random number generator Jun 09 01:29:29 [speaking of examples of horrific UX] Jun 09 01:29:30 though Emacs can confuse about that on terminal, yes Jun 09 01:29:45 yes that was emacs on a non-windowing system Jun 09 01:30:05 i would *much* rather work in Widnwos Remote Desktop than in X. Jun 09 01:30:14 and that was true even in 2008 Jun 09 01:30:47 also painfully visible is the fact that Emacs was designed for very specific keyboard (though old full PC keyboards were closer to "proper" layout than current) Jun 09 01:30:53 reason why your argument is invalid #1) GUI mode emacs; #2) emacs Jun 09 01:31:05 oh sure, xemacs >>> emacs Jun 09 01:31:11 too bad gnu emacs won Jun 09 01:31:15 p_l|backup: worse is that even vim runs into that Jun 09 01:31:30 vim could be a superb product if it didn't have to be vi Jun 09 01:31:45 yeah, XEmacs had some nice stuff, SXEmacs as well, but they slowed down developement too much Jun 09 01:31:48 ctate: meh, I like it, works for me Jun 09 01:32:04 * p_l|backup was an XEmacs user till Emacs suddenly overtake it Jun 09 01:32:28 i used xemacs for all my dev work until i started on Android Jun 09 01:32:50 i still think emacs sucks compared to good editors/workflows. Jun 09 01:32:55 I'm surrounded by Macintosh users and emacs users in here! Jun 09 01:32:59 * pragma- panicks and attempts to flee. Jun 09 01:33:30 ctate: well, some packages for emacs are undisputed kings in their areas... while in other areas there are better solutions built than the ones available for Emacs Jun 09 01:34:03 i have seen no proof whatsoever that there is something comparably useful to IntelliJ that is emacs-based Jun 09 01:34:53 anyway, enough with the religious chatter Jun 09 01:35:02 have a good weekend Jun 09 01:35:25 same to you Jun 09 01:35:34 what about the rest of my life?! Jun 09 01:35:39 ctate: cya Jun 09 01:35:41 [oh one more note: someone needs to take gdb out back, shoot it, and write a good debugger. that is all.] Jun 09 01:35:45 lies Jun 09 01:35:50 more blasphemy Jun 09 01:35:51 lldb Jun 09 01:35:53 * MDijkstra runs Jun 09 01:35:59 (and btw, there's nothing comparable to SLIME for Common Lisp so far) Jun 09 01:36:38 http://www.youtube.com/watch?v=QEfWksb6Efg Jun 09 01:48:47 what a waste of food Jun 09 01:48:57 people do starve you know Jun 09 01:50:31 if i told you how much food supermarkets across the US throw out every day ... Jun 09 01:51:37 besides, those destitute people without food keep having babies... Jun 09 01:52:46 my friend works a tescos and he is the guy wh obins all the food Jun 09 01:53:03 they are not allowed to give it the homeless or anyone else for that matter Jun 09 01:53:08 right Jun 09 01:53:16 liability and profits Jun 09 01:53:24 I can't download the latest Atom system image. the SDK manager just gets stuck. Clicking the stop button does nothing. Jun 09 01:53:39 gotta make the non-profit organizations buy it so the corporation that owns the supermarket chains can profit Jun 09 01:53:56 humanity is flawed Jun 09 01:53:58 and we wouldn't want a homeless guy eating the spoiled food and suing the corporation to get rich Jun 09 01:54:10 "spoiled" Jun 09 01:54:23 but my friend says that the food is 90% of the time in good condition Jun 09 01:54:29 more like "just not fresh enough for the entitled people to buy" Jun 09 01:54:37 it is Jun 09 01:54:42 in fine condition Jun 09 01:55:18 pragma-: at the moment of being thrown out it's still good, true. The bigger problem is that sometimes the law is complex enough to prevent just giving the food away Jun 09 01:55:18 it just reached the sell-by date, not the spoiled and unfit for consumption date Jun 09 01:55:48 i know other people that actually raid the bins at asda and they get 100% of their food from it, yes they are dirty hippies Jun 09 01:56:00 but still, fair play Jun 09 01:57:07 can't get the intel hardware acceleration module either...progress bar gets to 1/8 full then stops forever. Jun 09 01:58:01 TheMusicGuy: you need the interwebs acceleration module before you can get intel acceleration module Jun 09 01:58:19 g00s: oh, those where the days Jun 09 01:59:12 ehh... Download Accelerator Pro, or what it was called? :P Jun 09 02:03:13 so for IDEs Jun 09 02:03:21 how well does intellij work compared to eclipser Jun 09 02:03:37 it works better Jun 09 02:03:44 How's the netbeans thing going? Jun 09 02:03:50 don't bother Jun 09 02:04:02 starting work on a droid app next week and want to know what to invest in getting to build Jun 09 02:04:08 the other dude working on it uses vim Jun 09 02:04:10 not well then? Jun 09 02:04:24 nowt wrong with vim Jun 09 02:04:32 i am not that hardcore Jun 09 02:04:36 i like refactoring tools etc Jun 09 02:04:49 and i have 16 GB of memory.. seems a shame to not waste it Jun 09 02:07:43 my eclipse resident set is about 400 mb, so you'll have a hard time wasting 16gb with eclipse Jun 09 02:07:59 i guess i could run VS in a VM as well Jun 09 02:08:27 well, IntelliJ works much, much faster for me than Eclipse ever did Jun 09 02:09:28 And I gave up fighting Eclipse's equivalent of this: http://25.media.tumblr.com/tumblr_m5b996WeGe1rw6hnto1_1280.png :> Jun 09 02:09:58 p_l|backup: somoene sent me that earlier i lol'd very hard in my office Jun 09 02:10:15 it's even worse when it pops up the list of suggestions, and then promptly freezes Jun 09 02:10:29 i always say, at least it's not obj-c Jun 09 02:16:37 I'm using using in xml to do animations. I'm doing android:fromAlpha and android:toAlpha, is there a way to make the view keep the end of the "to" alpha. Like if I do fromAlpha"1.0" then toAlpha"0.0" is there a way to keep it at 0, instead of going back to 1 once the animation is done Jun 09 02:17:28 android:fillAfter="true"? Jun 09 02:17:45 nope :( Jun 09 02:19:44 oh Jun 09 02:19:48 If I put it in the set tag it works Jun 09 02:19:49 win Jun 09 02:28:42 p_l|backup: great image Jun 09 02:28:59 JakeWharton: I had exactly that experience with Eclipse Jun 09 02:29:12 what's great about it? looks like a monkey can't follow instructions Jun 09 02:29:17 probably bigger reason for my switch to IntelliJ than speed in beginning Jun 09 02:29:50 interesting, part of APIDemo isnt rendering as I expected, the text entry dialog has both labels displayed as black text on a black background Jun 09 02:30:34 looks like "XCode" is supposed to be some sort of compiler bot and it's saying "Syntax error" in response to the english, and the moron keeps repeating himself **** ENDING LOGGING AT Sat Jun 09 02:59:59 2012