**** BEGIN LOGGING AT Wed Jul 18 02:59:59 2012 Jul 18 03:00:28 all of the clones need to be called with --depth=1 if you want ltest Jul 18 03:00:52 guys i have a logical problem Jul 18 03:00:55 funnily, it was done exactly for your use case Jul 18 03:00:57 and i cant work out a solution Jul 18 03:01:18 let me type it up 1 sec Jul 18 03:03:01 mark4: ./repo init --help Jul 18 03:03:18 mark4: check the "--depth" option. Jul 18 03:03:30 mark4: I've never used it... so your mileage may vary. Jul 18 03:03:51 I find it a pretty obscure and rare to use option... Jul 18 03:04:50 I also repo clone with --depth=laurentien-abyss Jul 18 03:05:52 anyone? how to attach an onCreate method to a view? :) Jul 18 03:06:24 uh, add one and call it? Jul 18 03:06:35 or use a fragment Jul 18 03:06:36 im not sure how to reference the view. Jul 18 03:06:56 I can do setContentView(R.layout.view_id_here), not sure how to reference the view itself though to attach an onCreate Jul 18 03:07:14 you can findViewById to get a reference to the view Jul 18 03:07:29 if it is in the layout you specified Jul 18 03:09:35 views don't seem to have any related events Jul 18 03:09:50 you can't attach on onCreate to a view, that's an Activity method Jul 18 03:10:01 they are not tied to any lifecycle beyond attachment and detachment to the window Jul 18 03:10:15 Ok Jul 18 03:10:17 so I have one activity and two layout views Jul 18 03:10:21 heres my logical problem http://pastie.org/4275577 Jul 18 03:10:33 Belacan: we'll decide if it's logical or not :) Jul 18 03:10:42 in the onCreate of my activity, I can't set up anything in the second view until it's shown... which I don't want to do in that order Jul 18 03:10:56 JakeWharton: ✔ Jul 18 03:11:37 oh wait. Jul 18 03:11:58 when another layout view is selected, are the hidden ones destroyed each time? so I could just reinit each time it is shown? Jul 18 03:12:29 hi lasserix Jul 18 03:12:33 o/ Jul 18 03:12:33 Heya Jul 18 03:13:15 can anyone explain why i cannot access the same array from two separate threads? one is reading and the other is writing but never to the same indices Jul 18 03:13:25 ive got a morning logical exercise if you care to take a look http://pastie.org/4275577 Jul 18 03:13:28 theres never any overlap Jul 18 03:13:58 are they both running at the same time Jul 18 03:14:03 yes Jul 18 03:14:29 are you getting an error or is it just not working Jul 18 03:14:46 thats the whole point. the writing thread is populating the data for the reading thread but the reading thread is guaranteed to never try read whats being written Jul 18 03:14:53 im getting garbage on the reads Jul 18 03:15:11 the writes will always be completed long before the read tries to read that data Jul 18 03:15:19 theres no guarantee that the writing one will be ahead Jul 18 03:15:23 oh Jul 18 03:15:47 LruCache degrades to counting contents to determine eviction when you don't override sizeOf, right? Jul 18 03:16:27 man, i'm failing at Google today. the answer is yes. Jul 18 03:16:32 its a 3x3 array. for example i might be writing to the left column of indicies. the data is not being READ from here for at least 20 more seconds. it takes a fraction of a second to populate the write data Jul 18 03:17:00 mark4 synchronization issue? Jul 18 03:17:03 maybe the thread needs to close before they sync back up Jul 18 03:17:17 i solved it by stalling reads till all writes are complete so my guess is YES Jul 18 03:18:01 Belacan I'm not sure I understand your issue, but i think simpler than doing a 2d array is maybe just a hashmap? Jul 18 03:18:15 i need to be able to write data to array[0][0] and [1][0] and [2][0] while im reading from [0][2] and [1][2] and [2][2] Jul 18 03:18:18 yet i cant Jul 18 03:18:22 the read data is corrupted Jul 18 03:18:31 because they are the same object Jul 18 03:18:45 ahh Jul 18 03:18:47 interesting Jul 18 03:18:52 ive never used that ill look into it Jul 18 03:18:53 thanks Jul 18 03:19:02 no. they are the same array. each element of the array is its own object Jul 18 03:19:27 mark4: how are you synchronizing the threads? Jul 18 03:19:31 256 bytes of data each to be exact. Jul 18 03:19:37 but i wonder if the sync isn't locking the array, making the objects inaccessable Jul 18 03:19:59 any timea write request is made (via a looper handler message) i bump a counter. i can have up to 6 write operations stacked up that way. Jul 18 03:20:17 my reads wait till all writes have been compled. this stalls the UI thread Jul 18 03:20:32 the entire point of moving the writes off of the UI was so that i would not have to stall it Jul 18 03:20:45 UI still needs to be able to READ data out of the array Jul 18 03:21:17 the reads never happen to the same index's that are being written Jul 18 03:22:06 flatten the array Jul 18 03:22:08 its a 3x3 array of 256 bytes each Jul 18 03:22:20 flatten to an array* Jul 18 03:22:22 the array is correct in its current form. theres no flattening of it Jul 18 03:22:45 mark4: when you increment the counter... does it happen atomically (e.g. protected by a mutex, or through a semaphore)? Jul 18 03:22:48 its a 3x3 grid of map blocks. each block of the map is 16x16. Jul 18 03:23:23 no. Jul 18 03:24:10 the count does not need to be. thats not the problem. the problem is that i cannot write to index [x][y] while reading from [a][b] Jul 18 03:24:26 the counter IS the mutex. i its non zero there are reads in progress. wait for them to complete Jul 18 03:24:35 "if" Jul 18 03:24:45 there are writes in progress i mean Jul 18 03:25:30 why can i not write to one memory address while reading an other memory address within the array Jul 18 03:26:03 because thats what it boils down to. each array element is a separate memory buffer of 256 bytes Jul 18 03:27:32 how long do you think it would tak an experienced/decent java programmer to learn android enough to be able to build a half decent/stable/sellable app? Jul 18 03:27:37 like a week to a month? Jul 18 03:29:18 mark4: how did you determine that you can't acces index[a][b] at the same time as index[c][d]? Jul 18 03:29:40 mark4: because you read garbage? Or do you see the function calls blocking? Jul 18 03:30:41 devtekbeta: i wouldn't imagine longer than a month. depends how much time you dedicate Jul 18 03:31:19 i meant full time hardcore mode. like studying android 12+ hours a day Jul 18 03:31:58 few weeks, depends what you want to achieve. this isn't a simple question Jul 18 03:32:15 Android has a lot of pitfalls depending on what you're trying to achieve Jul 18 03:32:28 yeh i guess it is a bit vague Jul 18 03:32:33 yeah esp that ABS rubbish people keep peddling Jul 18 03:32:42 seriously Jul 18 03:32:55 well i meant to be able to build something very simple, like a calendar app or a simple puzzle game Jul 18 03:33:04 just havin' a stab, JakeWharton ;) Jul 18 03:33:05 ok. its simple realy. the reads are hapening on a small window of viewable "tiles" each block in the array is itself a 16x16 block of tiles. the "window" will always be within the central block plus whatever overlap there is Jul 18 03:33:56 say the player moves left from the central block into the middle left block. all the blocks on the right are no stale an d discarded. the blok the player moved into becomes the new center an d the discareded blocks on the right are repopulated with data from blocks to the players left Jul 18 03:34:20 if the player ran as fast as he coluld he could never reach the blocks being written to until LONG after the writes were completed Jul 18 03:34:29 probably cant even move one step Jul 18 03:35:03 lasserix: heres the problem in a nutshell http://pastie.org/4275691 Jul 18 03:36:04 devtekbeta: Ive been at it for just over a month and i can make a working app Jul 18 03:36:35 albeit using basic concepts Jul 18 03:36:43 but you can get up and running with android pretty quickly Jul 18 03:36:47 ahh cool Jul 18 03:37:09 dont study 12+ hours a day Jul 18 03:37:17 for me thats not effective Jul 18 03:37:24 the best way is to have a goal and work towards it Jul 18 03:37:29 so just start making your app Jul 18 03:37:43 and learn what you need to learn along the way Jul 18 03:38:16 there are issues with the google examples however Jul 18 03:38:41 yes, sadly, common sense must be applied copiously Jul 18 03:38:44 they show you how to create a worker helper thread for example but they totally ignore the problems of screen rotation Jul 18 03:39:40 thats just one minor example of how googles documentation gives you the basics and leaves out 99% olf the stuff your going to actually need to deal with Jul 18 03:40:26 devtekbeta: the way i get around is to find working projects with things you need and adapt it into your app Jul 18 03:40:32 well iv already set up for it with the tools. i studied android a little bit ages ago. i could just make a screen to push a few buttons that made sounds. then i realised i needed to learn more about programming... so i went and spent a few months studying java which i am semi decent with now and can make some apps, so ill finish up my java studying in a week or 2 and get back into android fulltim Jul 18 03:40:37 if you extrapolate "activities are destroyed and recreated on configuration change" and "use a background thread for download things" I'm pretty sure you can figure it out Jul 18 03:40:41 for tabs i downloaded a working tab app and then modified mine to match Jul 18 03:41:42 you are right. the best way to learn is by trying stuff Jul 18 03:42:15 JakeWharton, yes if you are ubberly familiar withy 100% of every single aspect of every single piece of google doculentation an know their entire API inside out then yea... we can figujre that out without spending 3 weeks trying to figure that out for every single tidbit they neglect to state for the NUBS just starting out Jul 18 03:42:40 I find it's a good litmus test of your competence as an Android programmer Jul 18 03:42:41 by 'byte object' i mean, the library takes in a byte[] object, before sending it out im going to have to do some changes Jul 18 03:42:51 and I ask all of those things in interview questions Jul 18 03:43:36 oooooo JakeWharton's an interviewer? Jul 18 03:43:46 JakeWharton: ✔ Jul 18 03:43:49 Android apps aren't geocities websites. Everyone should not be making them by clicking and dragging things around. Jul 18 03:44:09 do you happen to know how to configure the NDK for a given architecture? Jul 18 03:45:25 Elitist developer culture results in things like Debian and OpenBSD Jul 18 03:45:30 drag and drop, cut and paste is for microsoft visual c++ coders Jul 18 03:47:17 are android threads guaranteed to share the same process space? Jul 18 03:47:19 "What, you don't know the way to send a bug report to Debian is bugs-28092.FIRST.QUEUE@debian.org ATTENTION: Manny, Quizno > Redraw, update, filter queue" - typical Debian developer Jul 18 03:47:54 lol debian Jul 18 03:48:11 Ologn, i gave up on debian and all its derivatives years ago. they dont even follow the FHS Jul 18 03:49:08 Like for example, Android barfs on anything over 65,536 methods in an APK. The compiler as of two months ago (they claim to have fixed this last month, haven't checked) spit out some byzantine error message. Jul 18 03:49:53 if you have that many methods you need to go back to simplicity school Jul 18 03:49:59 If it spit out "APK's can only handle 65,536 methods" - this would have been better. I don't magically know this. Jul 18 03:50:02 or pick a different career field Jul 18 03:50:31 mark4: the Jelly Bean framework is almost at that limit and third-party OEM ROMs surpass it Jul 18 03:50:32 Well if you look at the threads, lots of people have to go back to simplicity school, including many major projects who want to port to Android Jul 18 03:51:02 jake thats a different animal, you dont have all of those at the same time in the same .apk Jul 18 03:51:33 You can pull a Debian/OpenBSD on them and tell them they have to go back to school, in which case iOS and WP8 and Bada or whatever can leave Android as the system only smart people can develop for Jul 18 03:51:38 they're all compiled to a single .jar which has to be loaded by the Dalvik VM (from which the limitation originates) Jul 18 03:53:50 personally i would make eveyrone who wants to be a coder EVER. serve an apprenticeship of a minimum of 10 years during which time they may only code pure assembler. punishment would be instant execution if they code anything else Jul 18 03:53:50 Oh did I say 65536 methods to an APK? I mean 65536 methods to a dex file. Jul 18 03:54:03 after that they should be allowed to learn forth and after that anything else they want Jul 18 03:54:07 so vote for me k? Jul 18 03:55:15 Why would my application be compatible with my android ICS samsung fascinate and ICS HP touchpad? This is the manifest http://pastebin.com/fhQvNZSC The minimum SDK is set so that only devices running 3.2 and above will work. The link to my app is here. Is it compatible with any of your devices? http://goo.gl/VA8BF Jul 18 03:55:16 I thought I'd be doing Java/Dalvik stuff with Android, but for the past months I've been tinkering with C++ and JNI, and only coming up once in a while into Java Jul 18 03:55:22 anyone here using the Flurry location library? I implemented it in my app and now it shows up as 22% usage throughout the day even when I go into the app just once. Jul 18 03:55:30 *** incompatible Jul 18 03:55:47 I am not initializing it with anything but the default getBaseContext() so I am not sending in my own update interval params Jul 18 03:56:03 Ologn: a year of drivers, just native code, never touched java Jul 18 03:56:14 stone age development :/ Jul 18 03:57:54 ensi on my todo list is to 1: write an arm assembler forn my linux forth and 2: write a native forth for android Jul 18 03:58:18 forth? Jul 18 03:58:24 yes Jul 18 03:58:30 what is forth? Jul 18 03:59:56 www.isforth.com Jul 18 04:00:06 get my sources and learn it Jul 18 04:00:08 forth is a language...the only time I've used it was with short Solaris OpenBoot programs Jul 18 04:00:27 yea cept openboot isnt really forth Jul 18 04:00:29 never heard of it Jul 18 04:01:44 "Wait a sec... Did you just say that making source code readable is more important than making the code work? " Jul 18 04:02:02 some dude once said that code is written for humans to read and only incidentally for machines to execute Jul 18 04:02:16 yes Jul 18 04:02:52 read the next page. i say WHY its more important to create readable code than it is to create working code Jul 18 04:03:32 dunno.. thta website is kinda icky Jul 18 04:03:42 heh Jul 18 04:03:52 makes me want to close the tab real quick Jul 18 04:04:02 the compiler compiles about 3n or 4 megabytes of source code per secon on my laptop Jul 18 04:04:15 3 or 4. Jul 18 04:04:24 so what major aps have been written in this langauge? Jul 18 04:04:35 can anybody tell me if my app appears as compatible for their 3.2+ devices? http://goo.gl/VA8BF Jul 18 04:04:39 i was starting to write a random source puker so i could generate gigs of sources to benchmark it reliably Jul 18 04:04:49 ensi the entire fedex tracking system Jul 18 04:04:56 the robotic arm simulator for the space shuttle Jul 18 04:05:13 the entire satellite traking system as used by direct tv Jul 18 04:05:22 i got a buddy that works for fedex and they do java Jul 18 04:05:35 belacan, if you know your address before hand you could also use an enumeration colleciton i think Jul 18 04:05:58 QubeZ, their tracking system is created by Forth inc. and is FORTH not java Jul 18 04:07:24 so its like.. Eiffel or ADA some ancient old esoteric stuff that only some fossil programmers or other pervers are doomed to program in the baseements out of the dayligyht of more modern and sexier devs and stuff? ;) Jul 18 04:07:42 Bryan__K, looks OK to me - 3.2 Samsung tab 10.1 Jul 18 04:07:45 decide for yourself Jul 18 04:08:06 mark4: i only do C++ Jul 18 04:08:06 its as old as c Jul 18 04:08:18 is it statically typed? Jul 18 04:08:30 i would say taht cripples your software engineering more than "i only do java" would Jul 18 04:08:38 its NOT typed at all Jul 18 04:08:42 ew Jul 18 04:08:45 Ologn, any idea why all of my devices (all ICS) are showing up as incompatible? These were my test devices but I uninstalled the test versions once the google play link went live Jul 18 04:08:47 not "loosly typed Jul 18 04:08:49 Jul 18 04:09:01 "NOT typed at all" Jul 18 04:09:02 im quite happy with C++, have got everything done that i have needed to Jul 18 04:09:05 not weakly i mean Jul 18 04:09:48 Bryan__K, look up and down your Android Manifest file. On Google Play, go over "supported devices" carefully. Jul 18 04:10:31 im not a huge fan of OOP but i dont LOATHE the java implementation of it Jul 18 04:10:42 c++ oop makes my teeth itch Jul 18 04:10:46 heh Jul 18 04:10:58 whys that? Jul 18 04:10:59 hm, this not typing thing... Jul 18 04:11:11 i dont like java... Jul 18 04:11:24 Ologn, my device is listed as compatible. There's literally nothing in the manifest preventing compatibility (my manifest) http://pastebin.com/fhQvNZSC Jul 18 04:11:42 ensi you would probably consider me a heretic. i think C is the single worst thing ever to happen to the software engineering industry Jul 18 04:11:44 period Jul 18 04:11:57 yet C is orders of magnitude better than c++ Jul 18 04:12:03 <-- heretic Jul 18 04:12:08 without C, a lot of what we know today doesn't exist Jul 18 04:12:13 period Jul 18 04:12:13 mark4: i consider C obsolete, I hate C Jul 18 04:12:24 theres no reason to program in C.. hardly ever Jul 18 04:12:42 C++ on the other hand... Jul 18 04:12:51 umm ... why? half the world is written in C these days and it's definitely not a bad thing Jul 18 04:12:55 QubeZ, every moron and his autistic brother code C. work as a consultant software engineer for 25 years and tell me you like what you have to deal with on a daily basis Jul 18 04:13:03 Bryan__K, android:requiresSmallestWidthDp="320" Jul 18 04:13:13 bankai_: C doesnt give you any features, it just gives you tools to manipulate bits and bytes Jul 18 04:13:43 its too rudimentary, any modern software component requires sophisticated tools, runtime algorithms, data structures etc. Jul 18 04:13:50 theres no reason to write them over and over again Jul 18 04:14:11 hmm, 320dp should be ok though, I think Jul 18 04:14:18 isn't Java written in C, primarily? Jul 18 04:14:30 ensi that makes you a short oder cook not an engineer Jul 18 04:14:33 jvm Jul 18 04:14:37 Ologn, yes, so that really small screens are not supported. I use the same code in my layout folders ... layout-sw320dp ... and it works perfectly when I install it on my phone from eclipse. And even if that was the issue, why won't it show up as compatible for my HP touchpad? It's a 10 inch screen... Jul 18 04:14:43 jvm is cpp now, isn't it ? Jul 18 04:14:46 and talk about not being safe... C requires regirous discpline and methods to write anything that is not broken Jul 18 04:14:50 take the premixed ingredien ts and stuff them in the easy bake oven and out pops an application Jul 18 04:15:04 mark4: what? Jul 18 04:15:14 Bryan__K, so on Google Play it says your ics devices are supported? How many devices does Google Play say are supported? Jul 18 04:15:55 you were saying why reinvent the wheel every time Jul 18 04:15:57 there are 2 devices associated with my google play account. both running ICS. 0/2 are supported. Jul 18 04:16:23 mark4: yes, why indeed Jul 18 04:16:26 what if the wheel doesnt fit. you have to recode it. yet you spent your entire life using the CANNED instance of a wheel and dont know how to implement your own Jul 18 04:17:07 en si not YOU specifically Jul 18 04:17:21 Bryan__K, in the Google play developer console there is a supported devices section. It has a lot of useful info. One useful piece of info says "This application is available to over X devices". What is X for your app? Jul 18 04:17:51 mark4: for the majority of cases your standard linked list and vector are way better than what your average programmer can come up with. A lot of thought, effort and time has been put into them Jul 18 04:18:07 Ologn, "This application is available to over 326 devices." Jul 18 04:18:11 and for the majority of cases they are more than adequate Jul 18 04:18:19 ensi i disagree. anyohne using the STL needs shooting. NOW Jul 18 04:18:32 specially their linked lists and queues Jul 18 04:18:42 Bryan__K, If you click on show devices, it will list manufacturers, and you can see if your app is available for the ics devices you have Jul 18 04:18:59 the touchpad is a webos device so i don't see it listed (although it runs CM9) and the fascinate runs CM9 as well and is listed as compatible Jul 18 04:19:00 mark4: thats... an utterly retard remark Jul 18 04:19:15 Bryan__K, you can browse the manufacturers or try the search feature Jul 18 04:19:18 mark4: i take it you dont really understand c++ then Jul 18 04:19:24 maybe templates confuse you Jul 18 04:19:51 maybe. but then i consider C an abomination, why would i think any better of C++? Jul 18 04:20:14 cause it is a proper langauge Jul 18 04:20:20 ini 99.9999999999999999999 times out of 100 ive seen OOP methods destroy a project more than it assisted its developmehnt Jul 18 04:20:20 language* Jul 18 04:20:32 mark4 if you spent 10 years programming nothing but c you'd come to see it as useful in proper contexts Jul 18 04:20:36 java's oop i would consider more pure than c++'s oop Jul 18 04:20:54 what does OOP methods have to do with a specific language? Jul 18 04:20:57 lasserix: that usually comes off as "brainwashed" Jul 18 04:21:04 lasserix, try 25 years as a realtime embedded control apps sw engineer. consultant for the entire time Jul 18 04:21:14 you dont get to work in anything BUT c most of the tim e Jul 18 04:21:16 Ologn, and like i said, if i install the apk via adb it installs fine on both Jul 18 04:21:21 heya Jul 18 04:21:45 thers nothing wrong with C perse. its what the morons using it do with it that i object to Jul 18 04:22:08 nothign wrong, except that it is a crappy language and obsolete :) Jul 18 04:22:14 so i made an application which is purely based on webview.. where the user needs to login and gets access to the system Jul 18 04:22:19 50 page source file, one function, a single switch statement of 2486538946 cases. each c ase is a swithc statement of 396523894 cases where each case is a switch statement of 384675384 cases Jul 18 04:22:21 ugh Jul 18 04:22:26 yes ive seen shit like taht countless times Jul 18 04:22:40 however, after login, it keeps telling me to launch the browser Jul 18 04:24:12 oh and of course, not one single comment in the entire 509 gigs of obfuscated C sources for the project because as every c / c++ coder will tell you, the sources ARE the comments Jul 18 04:24:14 amirite? Jul 18 04:24:56 mark4: not sure what you are ranting about Jul 18 04:24:59 i'm trying to measure the height and widht of one of my elements, how do i make sure i call the getHeight/Width after the view has been layed out? Jul 18 04:25:03 bad progrmaming it seems Jul 18 04:25:19 ensi yes. C and c++ both encourage it Jul 18 04:25:30 enforce it Jul 18 04:25:49 mark4: no way Jul 18 04:25:58 that is a completely bogus statement Jul 18 04:26:11 work as a consultant softwre engineer for 25 yeras and repeat that statement. i dare you :) Jul 18 04:26:26 have you looked at java code much? Jul 18 04:26:29 or C# code? Jul 18 04:26:31 or python? Jul 18 04:26:31 Bryan__K, oh they run CM9? Hmm. Jul 18 04:26:36 how many years? Jul 18 04:27:00 Ologn, yes, but every other app ive ever wanted to download has been perfectly compatible Jul 18 04:27:05 ive looked at quite a bit of android java code... i kind of LIKE the way android devs work Jul 18 04:27:08 i have worked 12 years, ostly as a consultant, primarly c++ but also a bit of java, few years of C#, occasional python Jul 18 04:27:11 and i can tell you Jul 18 04:27:11 the ones with a clue i mean Jul 18 04:27:18 crappy code is crappy code regardless of language Jul 18 04:27:23 and most code is crappy Jul 18 04:27:50 ensi only when the language encourages every moron and their autistic brother to develop in it Jul 18 04:27:57 "learn C in 24 hours" Jul 18 04:28:03 yay im an expert Jul 18 04:28:06 you are barking at the wrong tree Jul 18 04:28:14 Bryan__K, it seems OK with my 3.2, I guess see if you can find others with ICS and see if they can get it...I don't have ics here right now.. Jul 18 04:28:19 i concur that C and C++ require a lot of knowledge Jul 18 04:28:38 mostly because of the minutiate detail that overwhelm both languages (especially c++) Jul 18 04:28:44 learn finite automata in 24 hours Jul 18 04:28:56 Ologn, ok well thanks for testing it out for me! Jul 18 04:29:05 Bryan__K, ok good luck Jul 18 04:29:13 and that need to be know, that being said, problems that you just described transcend an implementation Jul 18 04:29:13 thanks Jul 18 04:29:14 ensi after 2 weeks of studying the forth programming language you will know more about the inner workings of the language than 50 years of solid C coding will teach you of the inner workings of C Jul 18 04:29:18 bad design is bad design in any langauge Jul 18 04:29:46 i think any language that is easy to learn, next to impossible to master and HIDES its inner workings from all but the "leet few" should be shit canned Jul 18 04:30:15 bad design sticks around...look at your qwerty keyboard...look at your intel chip, whose assembly code is so much more convulted than say mips Jul 18 04:30:16 hides ohw? Jul 18 04:30:46 Ologn: thats the price for backwards compatibility Jul 18 04:30:57 too much legacy shit builds up, if you ask me Jul 18 04:31:02 haskell > all langauges Jul 18 04:31:03 we need a new geration of computer systems Jul 18 04:31:10 ensi can you write a 100% from scratch C compiler? Jul 18 04:31:21 as a percentage, how many c coders in the world could Jul 18 04:31:27 Is a book written on Android 2 still applicable to the newest version, or should I find another book? Jul 18 04:31:43 about .0000000000000000001 of all of the existing c coders could write their own compiler from scratch Jul 18 04:31:48 it will be year 2050 and we will still be daeling with ASCII and UTF-8, 16, UCS-2, UCS-4 and all other crap that just cumulates Jul 18 04:32:15 its not about having to do so, its about "CAN you" or they Jul 18 04:32:28 mark4: im sure i could if i wanted to Jul 18 04:32:28 Lisp seems to be a language that was very popular and just died out Jul 18 04:33:08 maybe I'm just being an idiot, but it doesn't seem that you can make the background of a sliding drawer tile-able Jul 18 04:33:15 ensi no. i mean. do yhou have in your head right now everything you would need to write your own C compiler from scratch Jul 18 04:33:22 Ologn: it was never 'very popular' Jul 18 04:33:41 I guess (although I'm talking out of my behind) that Lisp died out because languages began focusing more on data structures and OO, and Lisp was more function oriented. Although my knowledge of intermediate/advanced Lisp data structures is limited. Jul 18 04:33:49 give me a new CPU and ill write an assembler for my Linux forth and within a week ill have a 100% from scratch forth compiler implemented for it Jul 18 04:33:52 mark4: in my head, ofc not Jul 18 04:34:22 anybody worked with sliding drawers before? Jul 18 04:34:47 mark4: ok Jul 18 04:34:47 99% of all (the few) forth developers in the world could implement ther own forth compilers from scratch without needing to reference anyhthing other than their target cpu's instruction set Jul 18 04:35:02 and thats NOt because were all wizbang genius's/ Jul 18 04:35:11 * guzzlefry wonders if he's in the wrong channel. Jul 18 04:35:16 mark4: so its a simple language, whats your point? Jul 18 04:35:30 guzzlefry: it's probably fine, just don't forget to read the docs too Jul 18 04:35:45 C0deMaver1ck: thank you, sir Jul 18 04:35:45 Well maybe popular is not the right adjective Jul 18 04:35:48 c isnt. an thus it encourages bad coding. c++ is orders of orders of orders of magnitude more complex than C Jul 18 04:35:59 guzzlefry: It'll still teach the basics such as Intents, Activities and whatnot Jul 18 04:36:07 java on the other hand is almost as trivial to implement (the vm) as forth is Jul 18 04:36:23 People seemed to think more highly of Lisp from the 1950s until I guess the early 1990s or so Jul 18 04:37:06 mark4: yep, its very complex, but also very powerful Jul 18 04:37:14 if you cant handle it, then dont program in it Jul 18 04:37:39 mark4: ok Jul 18 04:37:59 ensi, forth is powerul. simplicity is more powerful than complexity Jul 18 04:38:11 complexity leads to bad design leads to bad implementation Jul 18 04:38:16 ok Jul 18 04:38:20 mark4: npoe Jul 18 04:38:22 ok Jul 18 04:42:09 My Admob CTRs doubled this month. Wonder how universal that is. Jul 18 04:42:22 mine have been relatively high recently, yes Jul 18 04:42:52 you make much $$$ from admob? Jul 18 04:43:54 mark4, my eCPM for the past month is $0.38 Jul 18 04:44:41 personally if i wasnt diametrically opposed to all adware i would be convinced admob and its ilk are a pointless waste of time for developers. Jul 18 04:44:47 all your doing is feeding google Jul 18 04:44:52 ok Jul 18 04:44:53 mark4: that depends on how many downloads you get and how much time it is in the foreground i believe Jul 18 04:46:14 I lost a keystore for one of my apps, is there a way to upload an updated copy over an existing app entry or do I have to delete it and create a new one? Jul 18 04:46:37 there is no way to update Jul 18 04:46:37 i'm pretty sure you have to make a new one Jul 18 04:46:52 you have to change the package, create a new keystore, and upload as a new app Jul 18 04:46:54 is there a way to retrieve a keystore? Jul 18 04:46:59 no Jul 18 04:47:01 damn shame Jul 18 04:47:18 next time: hex dump + tattoo Jul 18 04:47:26 you could always try to break rsa Jul 18 04:53:04 do 9 patches only stretch? or do they shrink too? Jul 18 04:53:26 i think they only stretch Jul 18 04:53:39 and my experience so far is that they dont stretch reliably Jul 18 04:54:53 they stretch very reliably Jul 18 04:55:01 you should make them as small as possible Jul 18 04:55:20 will they wear out? Jul 18 04:56:00 they're made of a space-age polymer elastic which is rated for a life of 50 years Jul 18 04:56:25 this is longer than the average validity of keystores so you'll have a bigger problem before they start wearing out Jul 18 04:56:46 Unfortunately some of the early models wore out after about 6 - 12 months, hence the constant updates to Android Jul 18 04:56:47 eh, i think i'll wait for 10patch. thanks. Jul 18 04:56:49 /quit Jul 18 04:56:57 so basically as long as i make them i minimum size i would ever need to use in my application, i'll be fine with resizing Jul 18 04:57:13 *the minimum Jul 18 04:57:57 f2prateek: yep. for example, here's the 9-patch for a standard button in Holo: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/drawable-mdpi/btn_default_normal_holo.9.png Jul 18 04:58:19 clicking "Raw" might make that more easily visible Jul 18 04:59:03 jake. the 9 patch im using has 1 pixle wide scale zones in both axes. i create a TextView and set its backgroun to the 9 patch and then write some text into the view. the text is never centered on the patch. theres either a gap to the right or the text is truncated a few pixles Jul 18 04:59:03 hi f2prateek Jul 18 04:59:12 err.. can someone help me with an app.. for some reason its launching the browser even tho i am accessing the information from withion the webview Jul 18 04:59:42 mark4, that would be TextView not measuring correctly then Jul 18 04:59:58 JakeWharton: thanks! Jul 18 05:00:02 hi Belacan Jul 18 05:00:09 jake. should i set the background AFTER setting the text"? Jul 18 05:00:12 hey! i wanted to add nfc functionality to my application Jul 18 05:00:27 what i want is i tap and the application loads up Jul 18 05:01:29 so i was just browsing through the android developer guide, seems you have to add intent filter in AndroidManifest.html, but unfortunately i am unable to do that! Jul 18 05:01:33 mark4, that's unlikely to help since measuring occurs much later Jul 18 05:03:09 pallavagrawal: what's the error? Jul 18 05:03:35 there are two intent filters in the same manifest, how do i add the second intent filter? Jul 18 05:04:34 JakeWharton, can you look at http://bpaste.net/show/35546/ and tell me what WOULD help? Jul 18 05:05:13 O_O Jul 18 05:05:50 that bad? Jul 18 05:06:08 f2prateek:http://pastebin.com/1NEUmMYC Jul 18 05:06:27 It might be worth sharing your .9.png Jul 18 05:06:52 oh yea its online at www.isforth.com/bubble.9.png if im remembering it right Jul 18 05:07:01 pallavagrawal:it just goes right below the first one Jul 18 05:07:05 Most of the time when I have issues with text not playing nice in my nine patches, it is because I have falsely drawn the right and bottom sides Jul 18 05:07:08 I'm trying to set up my dev environment on Ubuntu, and when I run the android emulator, the "hardware keyboard" on the emulator doesn't work. Any idea what I might have set up wrong? Jul 18 05:07:12 if thats the activty that handles the nfc Jul 18 05:07:17 I cant remember what that is called, the text padding? Jul 18 05:07:52 (everything else on the emulator seems to work fine) Jul 18 05:07:53 see the example in category testhttp://developer.android.com/guide/components/intents-filters.html#ifs Jul 18 05:07:57 yes i understand those aspects of the 9 p;atch Jul 18 05:08:02 my patch is fine. Jul 18 05:08:03 f2prateek: what do i enter in android:name and android:label? Jul 18 05:09:07 name is for java filename Jul 18 05:09:12 so .MainActivity is fine Jul 18 05:09:29 Yeah, the patch looks ok Jul 18 05:09:32 label is what's displayed as the title for that activity in the actionbar and launcher Jul 18 05:10:27 i drawed that all by my self! :) Jul 18 05:10:27 f2prateek: do i need to create java code for nfc support? Jul 18 05:10:29 :/ Jul 18 05:10:50 if i put a blank within the string right bfore the \n it sort of fixes things a bit better Jul 18 05:11:05 but its still fubar somewhat Jul 18 05:11:53 i havent worked with nfc before, but tis probably somehting like this Jul 18 05:12:25 so how do i fix my code so that the textview is measuerd correctly Jul 18 05:12:30 nfc intenet trigger>checks in your manifest for a class that handles the intent>onReceiveIntent in the class handels the intent Jul 18 05:12:44 or onCreate with getIntent() Jul 18 05:13:27 *onNewIntent Jul 18 05:13:39 JakeWharton, took one look at my code and went screamin for mamma :) Jul 18 05:14:23 mark4: you may find it easier to create a Paint, set the text size/color, call measureText, adjust the bounds of the 9-patch yourself, and then just draw both it and the text directly to the canvas Jul 18 05:14:42 TextView is heavy and only really useful if you're actually using the layout system Jul 18 05:14:57 jake. damn Jul 18 05:15:08 that souds more involved than i hoped Jul 18 05:15:24 how do i adjus the ounds of a 9 patch by hand Jul 18 05:15:29 setBounds() Jul 18 05:15:30 f2prateek: ohh, i didn't get it since i am newbie, but anyways thanks for the help Jul 18 05:15:44 check this example Jul 18 05:15:44 http://gitorious.org/0xdroid/development/blobs/150dd1693ff06a7683076eebe669277631dedf06/samples/NFCDemo/src/com/example/android/nfc/TagViewer.java Jul 18 05:15:56 drawable.setBounds(0, 0, desiredWidth, desiredHeight); drawable.draw(canvas); Jul 18 05:16:03 theres more in the apiedemoes Jul 18 05:16:08 *apidemos Jul 18 05:16:40 jake but how do i measure the text? the measure code in there is what you suggested yesterday or someone else did Jul 18 05:17:13 f2prateek: they removed them in api 16 update Jul 18 05:17:35 yea actually thers too much i DONT know about doing this that is missing from your solution. Jul 18 05:17:40 :/ Jul 18 05:17:56 paint.measureText Jul 18 05:18:07 Go forth and fill your brain with knowledge ;P Jul 18 05:18:24 Knossos, have you ever been to Knossos ? Jul 18 05:18:34 Unfortunately no Jul 18 05:18:38 i have Jul 18 05:18:58 I have heard that it is only a shadow of its former glory though Jul 18 05:19:00 pallavagrawal: the api demos are part of the SDK, look there Jul 18 05:19:04 you should go. its not that far from heraklion or however you spell it and that puppy is due for a major explosion Jul 18 05:19:18 have some raki on me :) Jul 18 05:19:24 pallavagrawal: they're still there Jul 18 05:19:34 download them with the sdk maanger Jul 18 05:19:49 anf if you dont have the new ones, even ics demos will work Jul 18 05:20:20 is there a way to tell webview not to let the browser overtake whatever it is thats causing it to do so ? Jul 18 05:20:46 Assid: you'll want to use a WebViewClient for that Jul 18 05:20:56 jake. by "drawable" you mean my "Bitmap" ? Jul 18 05:21:22 Assid: http://developer.android.com/guide/webapps/webview.html#HandlingNavigation Jul 18 05:21:36 and how do i stuff the 9 patch into said bitmap. with the text... Jul 18 05:21:43 Read through the WebView docs Jul 18 05:21:47 hey guys, morning or night :) Jul 18 05:22:30 f2prateek: it loaded many apis, i think i have to select only one of them, instead of loading all of them simultaneously. Jul 18 05:22:38 I'm trying to fix the resolution of the wallapapers in my tablet which is at 1024x600 Jul 18 05:22:39 also. im a bit lost as to why were masuring the text via the paint Jul 18 05:22:57 can any one tell me where are stored this wallapaers in the source tree please? Jul 18 05:24:19 expand any one api level Jul 18 05:24:24 and select download samples Jul 18 05:24:59 ALoGeNo: packages/wallpapers Jul 18 05:25:20 ALoGeNo: this is really a channel for app development though, in the future I recommend asking #android-root Jul 18 05:25:26 thank you mdwright you are so kind :) Jul 18 05:25:31 Sure thing :) Jul 18 05:25:37 thank you very much I'll do :) Jul 18 05:25:44 mdwright: so i need shouldOverrideUrlLoading ? Jul 18 05:26:33 f2prateek: nfcdemo in api 15 right? Jul 18 05:27:18 so if 9 patches stretch automatically, whats the advantage of supplying them in different densities? just for better resolution corners maybe? Jul 18 05:27:24 yeah Jul 18 05:27:47 Assid: that depends on whether you want only some of the URLs coming from within the WebView to load within it Jul 18 05:28:07 if you just want all of them, than (according to the docs) you shouldn't. Jul 18 05:28:44 Assid: what ryanm said. he deals with webviews more than I'd ever want to :) Jul 18 05:28:47 ok. paint.measurtext gives me the pixle width of the text? will setting the bounds of the 9 patch mean setting the bounds of the drawable area of said 9 patch? Jul 18 05:29:17 and dont i need both the width AND the height? Jul 18 05:34:53 JakeWharton, the text im stuffing into this 9 patch is not always going to be a single line of text. Jul 18 05:35:07 i dont think this plan of yours will work for hat Jul 18 05:35:09 that Jul 18 05:35:40 i need to be able to set the width and height of the drawable area of the 9 patch to fit multiple lines of text Jul 18 05:39:22 guys Jul 18 05:39:37 my function which is supposed to extract the decimal from a double as an int doesnt work, please take a look Jul 18 05:39:37 http://pastie.org/4276126 Jul 18 05:40:12 Its because the 'decimal' is taken as 1.999999999 instead of 2 Jul 18 05:40:25 Belacan: what are you trying to do? Jul 18 05:40:27 I know i could always add like .1 to this but thats not the point Jul 18 05:40:40 Have a function that returns the integer of a double Jul 18 05:40:49 so input 20.4 will return 4 as an int Jul 18 05:40:59 what about 20.45? Jul 18 05:41:00 input 123.5 will return 5 as an int Jul 18 05:41:04 that wont be input Jul 18 05:41:12 it will only be one decimal Jul 18 05:41:16 have you considered the Java Decimal class? Jul 18 05:41:39 no i wasnt aware of it Jul 18 05:41:40 doubles and floats aren't really intended for this sort of fixed-precision math Jul 18 05:41:44 BigDecimal is a good class for making sure you get your numbers correct Jul 18 05:41:52 i see Jul 18 05:42:04 err, yes, BigDecimal Jul 18 05:42:31 how do i adjust the height of my 9 patch to fit my multi line string? Jul 18 05:42:51 cool Jul 18 05:42:52 thanks Jul 18 05:43:00 I had a flashback to C# for a second there. Jul 18 05:43:07 and does paint.measuerText() take any \n's within said text into account? Jul 18 05:43:35 jake your solution is leaving me with way to many questions to be implementable Jul 18 05:43:41 :( Jul 18 05:44:07 how do i measure the HEIGHT of my text Jul 18 05:44:37 Belacan: alternatively, if you only need just the first decimal place, you could just add .05 to it and truncate :D Jul 18 05:44:41 because the font height is not the height of the text. the font height times the number of lines plus whatever gap is between those lines. THAT is the height Jul 18 05:45:00 yep, thats what i did thanks very much pyjar Jul 18 05:45:05 and for the new vocab ;) Jul 18 05:45:24 JakeWharton, :/ Jul 18 05:45:45 JakeWharton ✔ Jul 18 05:45:57 Poor Jake, all these highlights Jul 18 05:46:29 I have a script to auto-ignore anyone who says my name more than once in a 60-minute span for the next 60 minutes Jul 18 05:46:47 Seriously? Jul 18 05:47:25 k well if someone could help complete the half answer jake gave me it WOULD be appreciated Jul 18 05:47:52 haha no, but I should Jul 18 05:48:10 Had me going then Jul 18 05:48:18 I was just about to ask if it worked. Jul 18 05:48:31 how do i measure the pixle width ANd height of a multi line string Jul 18 05:48:37 JakeWharton ✔ Jul 18 05:57:35 can anyone tell me how to determine the pixle height of a multi line text string:? Jul 18 05:57:46 hi, i am changing the background of my root RelativeLayout programmatically, but the SurfaceView's background remains black. How can I fix this? Jul 18 05:58:08 also. its width would be the width of its longest line... im not certain that the solution jake gave me above takes these factors into account Jul 18 05:58:30 the root layout contains the surfaceview as a child Jul 18 05:58:42 also i reek onions tonight Jul 18 05:58:54 If I'm planning to add support for video calling in my app, in which direction I should go? Do you have any suggestions on this? TIA Jul 18 06:00:44 :/ Jul 18 06:01:43 hello Jul 18 06:02:07 i have a multi line string. i need to scale a 9 patch to fit the string so i can display them both using a drawable as suggested by jake above. but i need to be able to determine pixle width and height of the string, not just the width. how would this be done? Jul 18 06:02:42 if im to adjust the bounds of the 9 patch myself i kind of need to know this :/ Jul 18 06:03:33 i'm sure this is either wrong or you've thought of this- put the string in the a textview and then measuer the textview? Jul 18 06:04:16 hrm that might work! Jul 18 06:04:42 hello Jul 18 06:04:44 any idea on how is possible the android:layout_toRightOf="@+id/textView1" from main.xml to be programmaticaly ? Jul 18 06:05:39 use layoutParams Jul 18 06:05:53 ? Jul 18 06:05:58 me ? Jul 18 06:06:02 no Jul 18 06:06:04 sorry for kken Jul 18 06:06:09 ok lol Jul 18 06:06:14 ok, thank you Jul 18 06:06:42 Downloading prebuilt: 145% (1316MB/907MB) <--- this one musta grew alot since yesterday Jul 18 06:06:48 look at RelativeLayout.LayoutParams.addRule, specifically (I think) Jul 18 06:06:51 kken:the specific one for that would be RelativeLayout.RIGHT_OF i think Jul 18 06:06:58 im not buying that this repo sync isnt out to lunch Jul 18 06:07:29 kken: also what ryanm said Jul 18 06:08:18 thank you very much, i think that i also have to get the id (programmatically also) of tha textview Jul 18 06:09:04 actually writing the text into a textview doesnt help Jul 18 06:09:27 im then back to the original problem of measuring that textview Jul 18 06:09:31 it's static string text Jul 18 06:09:46 something that was not happening right earlier which prompted THIS solution Jul 18 06:10:00 so. again. how do i measure the pixle width and pixle height of a multi line string Jul 18 06:12:57 for measuring a view, make sure you do it after its finished drawing Jul 18 06:13:03 How good is Quadrant at benchmarking between different devices? Jul 18 06:13:49 mark4: http://stackoverflow.com/questions/4142090/how-do-you-to-retrieve-dimensions-of-a-view-getheight-and-getwidth-always-r Jul 18 06:15:00 http://stackoverflow.com/questions/8928615/determine-width-and-height-of-a-bitmap Jul 18 06:15:17 i found that but im not sure its right for my use case. looking at your link Jul 18 06:15:18 the other option would be to do it this way, measure font size, count letter sstring, get avilable width Jul 18 06:15:34 don't do that Jul 18 06:15:41 that would not take padding into account Jul 18 06:15:48 dlaroche, wasnt about to Jul 18 06:16:02 cant you always add pading into the calculation? Jul 18 06:16:09 letters are not crammed against each other horizontally or vertically Jul 18 06:16:09 can anyone think of a more elegant way of writing this: http://pastie.org/4276227 Jul 18 06:16:10 I just joined, but what widget are you trying to get the size of? Jul 18 06:16:35 Belacan: use switch Jul 18 06:16:38 im trying to manually adjust the size of a 9 patch to fit a multi line text string Jul 18 06:16:54 but without any breaks Jul 18 06:16:55 yeah i could do that Jul 18 06:16:58 it will just drop down Jul 18 06:17:02 ahh Jul 18 06:17:03 really Jul 18 06:17:03 Belacan: a switch statement Jul 18 06:17:10 interesting Jul 18 06:17:15 thats a GREAT idea Jul 18 06:17:19 thanks! Jul 18 06:17:22 you guys are great Jul 18 06:17:39 that's what she said....:) Jul 18 06:17:42 :) Jul 18 06:18:46 ok. how do you draw a drawable into a canvas Jul 18 06:19:12 turn it into a bitmap and construct the canvas with bitmap argument? Jul 18 06:21:05 Ok here we go: http://pastie.org/4276250 Jul 18 06:21:15 I've always wondered what a good use for the switch statement is Jul 18 06:21:15 ok. so i THINK i have the width and height of my text so i THINK ive set the bounds on the 9 patch drawable Jul 18 06:21:21 i just thought it was an alternative to if Jul 18 06:21:27 with more complicated syntax Jul 18 06:21:29 and ive converted this drawable into a bitmapo and drawn that int the canvas Jul 18 06:21:29 erm Jul 18 06:21:58 how do i know how to position the text so that it is correctly centered on the nicely (i hope) sized 9 patch Jul 18 06:22:09 Belacan: is that working? i think you have to order it differently Jul 18 06:22:53 mark4: (widthDrawable - widthText) / 2 Jul 18 06:23:06 umm Jul 18 06:23:09 no Jul 18 06:23:10 no Jul 18 06:23:23 i think the unscaled 9 patch tells me Jul 18 06:23:24 one sec Jul 18 06:23:52 I wonder when v2 of the Developer Console is rolling out to everyone Jul 18 06:24:03 Belacna: i think this is more appropriate http://pastebin.com/LGQ6PK7m Jul 18 06:24:43 belacan, each case needs to end in a "break;" or every case will be fired Jul 18 06:24:49 surely if you do that without the breaks it will be fired Jul 18 06:24:52 thats the point lasserix Jul 18 06:24:59 o ok Jul 18 06:25:07 its an alternative to this http://pastie.org/4276227 Jul 18 06:25:21 f2prateek: if the case is 0 i want it to only fire the 'firstByte' Jul 18 06:25:28 not all of them Jul 18 06:25:32 yeah it will fire only that Jul 18 06:25:39 but it will check all the others Jul 18 06:25:46 but not do those Jul 18 06:26:00 ahh Jul 18 06:26:03 and if it was 2? Jul 18 06:26:15 1** rather Jul 18 06:26:21 oh wait Jul 18 06:26:22 Belacan: the way you have it, every statement get fired Jul 18 06:26:50 it only works with constants, not compartors Jul 18 06:27:00 not true Jul 18 06:27:21 the way ive done it surely if the counter is 3 then the code starts from case: 3 Jul 18 06:27:23 dlaroche: i mean you cant have <2 in there Jul 18 06:27:26 and goes down Jul 18 06:27:38 Belacan: yeah sorry my bad Jul 18 06:27:46 cool cool Jul 18 06:27:47 yes, if the count = 3 then it will fire 3 and down Jul 18 06:27:48 thanks so much Jul 18 06:28:24 arghh....gotta brush up on my java Jul 18 06:28:28 Belacan: and watch out for the default: Jul 18 06:28:38 that will always go right Jul 18 06:28:56 yes if there is no breaks Jul 18 06:29:43 f2prateek: u don't use java for Android? Jul 18 06:30:32 dlaroche: was that a rhetorical question? Jul 18 06:30:45 lol...no Jul 18 06:30:53 or was THAT a rhetorical question? Jul 18 06:31:04 hows that for a mind jammer Jul 18 06:31:07 haha, but clearly need to work not making mistakes like that Jul 18 06:31:08 Maybe he uses a different language to develop with. I was just asking Jul 18 06:31:22 *work on Jul 18 06:31:27 gotcha Jul 18 06:31:29 cool Jul 18 06:33:47 so belacan, what i would do , is use <= in the if statemetns, and go from down to up Jul 18 06:34:22 ahh yes Jul 18 06:34:30 that was the actual solution i was looking for Jul 18 06:34:34 but i think this switch thing is working Jul 18 06:34:43 alas, there is no use for a switch statement Jul 18 06:34:52 or rearrange the switch statement Jul 18 06:35:10 start your cases with the high number, and go down Jul 18 06:35:26 but wouldnt it exit the switch after the break? Jul 18 06:35:59 yes Jul 18 06:36:29 so it would only execute one of those...not all right Jul 18 06:36:40 is there a way to repeat a background instead of stretching it? Jul 18 06:36:42 if the count = 3 then you want all the statements higher or lower then 3 to fire? Jul 18 06:36:59 oh yeah!!!!! Jul 18 06:37:01 got it Jul 18 06:37:32 ok Jul 18 06:37:35 so if case is 3 Jul 18 06:37:42 than case 2 1 and default will still go Jul 18 06:37:43 lasserix: setTileModeXY Jul 18 06:37:56 ya Jul 18 06:38:05 - without breaks Jul 18 06:38:07 cool cool Jul 18 06:38:08 your original one was right Jul 18 06:38:08 perfect Jul 18 06:38:19 thats so much everyone Jul 18 06:38:31 dlaroche ahh thanks Jul 18 06:38:40 no problem Jul 18 06:39:15 lasserix: for the arguments, use Shader.TileMode.REPEAT Jul 18 06:43:50 hello can sombody tell me if there is a program to make sets of images for the application? Jul 18 06:44:22 asset studio? Jul 18 06:44:26 what kind of images Jul 18 06:45:18 png Jul 18 06:45:23 gimp? Jul 18 06:45:39 for dialogs and menu Jul 18 06:45:41 i meant waht purpose? Jul 18 06:45:47 do you mean for differenet densities Jul 18 06:45:52 yes Jul 18 06:45:56 asset studio Jul 18 06:46:00 oke thx Jul 18 06:48:32 lasserix: if you were interested heres the solution to the problem I asked earlier, I dont you to read it all but basically what i wanted to do was create as many bytes as there are specified in the address[] and then write the appropriate bits into those bytes. So currently with the address in the example the method will give two bytes and populate them with their respective bits http://pastie.org/4276359 Jul 18 06:49:30 Belacan: just out of curiosity, what is the code for? Jul 18 06:50:05 its to control a cementing unit via PLC Jul 18 06:50:15 this particular code has to do with changing gears Jul 18 06:50:27 oh. interesting. Jul 18 06:50:39 each gear has several bits that need to be manipulated simultaneously Jul 18 06:50:59 heres a sneakpeak dlaroche http://tinypic.com/player.php?v=2ednyfc&s=6 Jul 18 06:51:01 ok this is not working. canvas.drawText("this text is not\n drawn as two lines") Jul 18 06:51:13 drawText does not draw multiple lines Jul 18 06:51:48 romainguy, ive been given a halfass incomplete WRONG answer to my poblem and im fighting to find a viable solution Jul 18 06:52:15 romainguy ✔ Jul 18 06:52:22 Belacan: how is the tablet interfaced with the machine? Jul 18 06:52:23 what's the quare for Jul 18 06:52:28 square Jul 18 06:52:39 through a wireless router which is connected to a Siemens PLC Jul 18 06:52:47 mark4: what are you trying to do? Jul 18 06:52:50 Im using a library called libnodave to communicate Jul 18 06:52:53 im TRYING to draw a multi line text bubble with a 9 patch. what i had before was not working Jul 18 06:53:13 mark4: look in android.text and use one of the *Layout classes Jul 18 06:53:19 i was told to manually adjust the bounds of the patch and draw it as a drawable into my canvas Jul 18 06:54:08 what i had before ALMOST worked. almost Jul 18 06:54:10 you can do that for the bubble Jul 18 06:54:18 but then yuo have to draw the text, hence the layout classes Jul 18 06:55:01 no. that didntwork for the bubble. my text string was being taken as a single line my bubble was being sized for a single line of text Jul 18 06:55:21 then you're are not setting the bounds of the drawale properly Jul 18 06:55:25 drawable Jul 18 06:55:47 because my string is multi line. Jul 18 06:55:58 p.getTextBounds(myString, 0, info.length(), bounds) Jul 18 06:56:05 you can't do that Jul 18 06:56:10 i found that out Jul 18 06:56:11 use the layout classes Jul 18 06:56:17 but it is what i was told to do... Jul 18 06:56:35 will have to fight layout classes tomorrow. its 2am an ive accomplished nothing Jul 18 06:56:41 and I'm telling you to use the text layout classes :) Jul 18 06:57:02 mark4: go with romainguy <---- He's the Android master :) Jul 18 06:58:11 so im majorly frustrate4d with people giving me halfassed bullshit answers that have NO chance of ever working, leaving me with 387548374 more questions and disappearing without any further help. it would havbe been better if JakeWharton had said NOTHING at all Jul 18 06:58:17 i know Jul 18 06:58:45 what you were doing was archaic and non-standard Jul 18 06:58:45 mark4: maybe JakeWharton misunderstood you. He's pretty good too. Jul 18 06:58:46 I Jul 18 06:58:47 Jul 18 06:58:52 I was attempting to point you in the right direction Jul 18 06:59:04 it should end up being simpler and easier to control Jul 18 06:59:04 mark4: at least they're trying to help you Jul 18 06:59:42 you're welcome to try and answer my crazy questions too :) Jul 18 07:00:01 im NOT unappreciative of help when its not sending me on a wild goose chase. the "help" jake gave was incomplete and doomed to failure from the getgo Jul 18 07:00:15 at least your learned something :) Jul 18 07:00:23 you have a tendency of making wild accusations and exaggerating Jul 18 07:00:28 whats a good way to setup common variables that can be used in all activities Jul 18 07:00:43 caseofinsani: use PHP! Jul 18 07:00:44 JakeWharton, you answered the questuion that fit very nicely wityh a SINGLE line of text Jul 18 07:01:04 perhaps YOU should have qualified that you required more advanced control Jul 18 07:01:04 anyone got a sensible answer? Jul 18 07:01:10 i have zero context as to what you are trying to achieve Jul 18 07:01:18 sorry, I spent too much time reading this tonight: http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ Jul 18 07:01:19 i cannot magically infer what your desired end-state is Jul 18 07:01:22 i said i was using multi lines and your answer was never going to work for that. And then you just went POOF leaving me with more questions than i had any hope of finding answers to Jul 18 07:01:24 mark4: I suggest asking for your money back from your #android-dev support contract Jul 18 07:01:30 caseofinsani: its not a good idea to do so Jul 18 07:01:35 romainguy_: http://www.flickr.com/photos/raindrift/7095238893 Jul 18 07:01:45 romainguy_: PHP is equally bad at every level? Jul 18 07:01:48 romainguy_: you read all of that! no wonder... Jul 18 07:02:06 romainguy_: a good (MUCH shorter) followup with humor: http://www.addedbytes.com/blog/if-php-were-british/ Jul 18 07:02:19 Leeds: I can forgive bad APIs, every platform has them Jul 18 07:02:27 dlaroche: i need a way for main variables to be used in major activities Jul 18 07:02:29 Leeds: but holy crap, I did not realize how bad the language/interpreter was Jul 18 07:02:36 (and I wrote tons of PHP in the past) Jul 18 07:02:52 yeah, it's really bad... most of what I've written in the past 4-5 years has been PHP Jul 18 07:02:53 how do i save in ARGB-8888? I am using photoshop cs4 Jul 18 07:03:04 thebishop: just save as PNG Jul 18 07:03:06 caseofinsani: im not sure what you are working on, but you could make a class that has static variables Jul 18 07:05:31 How does one save argb8888 in cs4? Jul 18 07:06:18 themirror: save as PNG Jul 18 07:06:40 lol Jul 18 07:06:43 I'm loving the British PHP :D Jul 18 07:07:45 romainguy: PNG-24? PNG-8? Number of colors? Jul 18 07:08:01 PNG-24 Jul 18 07:08:10 or PNG-8 if you have <= 256 colors Jul 18 07:08:15 if 9 patches image resize, whats the purpose of having them in different densities? Jul 18 07:08:19 thx Jul 18 07:08:22 (but aapt will optimize for you) Jul 18 07:08:37 f2prateek: imagine a rectangle with rounded corners Jul 18 07:08:54 f2prateek: you don't want to stretch the corners, you want to have them in different densities Jul 18 07:09:34 hmm...so 9 patches wouldnt work for circles then Jul 18 07:09:41 no Jul 18 07:09:42 definitely not Jul 18 07:09:43 yea thats my question too. why do i need the same 9 patch in hdpi, mdpi and ldpi? Jul 18 07:09:46 thanks Jul 18 07:09:59 mark4: what I just said Jul 18 07:10:03 you can make a rectangular button from a circle correct? Jul 18 07:10:22 360-patches? Jul 18 07:10:44 dlan: if the circle is very tiny Jul 18 07:10:47 romainguy, aha Jul 18 07:11:13 cant do a 9 path ciccle that has the entire left size and top border marked? Jul 18 07:11:15 :) Jul 18 07:11:24 circle even Jul 18 07:12:57 ok time for bed. rtfm layout classes tomorrow Jul 18 07:12:59 ty Jul 18 07:25:45 FYI: a little bit of audio synthsis in JNI: https://github.com/fps/android_camsynth/blob/master/jni/synth.c Jul 18 07:26:05 8 voices at 20% cpu load on my LG p 500.. ;D Jul 18 07:26:49 just uploaded 1.1 to google play, takes a while until visible there.. Jul 18 07:41:45 I'm getting the dreadded "R cannot be resolved to a variable". But how do I find the XML file causing the problem? Jul 18 07:42:06 Go to your problem perspective Jul 18 07:42:18 One of the xml files should have a error in it Jul 18 07:42:44 your problem window Jul 18 07:43:48 Blade: not really. I do however get this error: "Error executing aapt. Please check aapt is present at /home/bottiger/dev/android-sdk-linux_x86/platform-tools/aapt" Jul 18 07:44:03 Blade: but my other projects works fine, and appt is present in the folder Jul 18 07:44:11 *aapt Jul 18 07:44:17 close eclipse Jul 18 07:44:20 reopen Jul 18 07:44:26 then clean it Jul 18 07:44:37 and it should automatically rebuild Jul 18 07:47:18 Blade: that fixed it. Thank you Jul 18 07:47:33 Your welcome Jul 18 07:47:33 Blade: (needed to restart twice, don't know why) Jul 18 07:47:40 eclipse IDE is the cleverest little thing i've ever come across Jul 18 07:47:44 Forgot to mention that Jul 18 07:47:57 its actually a pleasure to use Jul 18 07:48:10 I wasnt fully sure though if you needed too restart twice, so I didn't mention it Jul 18 07:49:06 Belacan: Well it is a nice IDE, but I think i'm going to move to IntelliJ Idea after it gets a new update. Jul 18 07:49:12 hi guys, need some help.. do you have like a list of devices that you would recommend need be supported? Jul 18 07:49:25 Belacan: Stick around here, and help others. Jul 18 07:49:38 Question: i created a second listfragment and all the items in that are grayed out. anyone know why?? Jul 18 07:50:06 chups: Check the devices just release in 2012. Like the Evo V 4G Jul 18 07:50:19 cool.. Jul 18 07:50:38 EVo LTE Jul 18 07:50:49 the Evo One Series Jul 18 07:51:07 Galaxy III Jul 18 07:51:29 and Of course the the Galaxy Nexus but that's kinda old Jul 18 07:51:42 We have a a new Nexus coming soon Jul 18 07:52:03 "soon" = 6 months Jul 18 07:52:04 caseofinsani: Can I see the xml file? Jul 18 07:52:20 leslie: LOL Jul 18 08:04:23 nx5: Yo nx5 Jul 18 08:11:32 Is there a way to target UI widget styles from 3.0> without setting min sdk to 3.0 or > > Jul 18 08:11:34 *? Jul 18 08:12:04 u can add api level for resources Jul 18 08:12:50 I mean if I just want a default checkbox from 3.0, but also to be this on a phone running froyo? Jul 18 08:14:19 sry i dont understand Jul 18 08:15:30 I always find it difficult to explain my problems easily on chat Jul 18 08:15:56 i think its my fault now; my english not so good :( Jul 18 08:16:50 and now i dont understand what he really want, and why cant do it with resources with specific version, like values-v12 or layout-v12 Jul 18 08:17:34 romainguy: I have been reading that PHP: a fractal... web page you linked. Yikes. Jul 18 08:17:35 lasserix: well, you can copy the drawable xmls and images from the platform and put it in your own app. Jul 18 08:18:06 Hmm.. im wondering how you convert from a string such as true into boolean Jul 18 08:18:16 ixc: I think I got what you were saying (ala HDroid) but I was hoping there was a simple setting Jul 18 08:18:21 thanks! Jul 18 08:19:25 lasserix: I don't think it's in the support library, but maybe check that out. Jul 18 08:21:27 i created a little method to do it Jul 18 08:21:37 i thought there'd be a built in function Jul 18 08:23:14 Anyone know what the xml reference is for the default system settings menu background? Jul 18 08:35:16 system settings menu background? Jul 18 08:50:00 I have a view whose visibility can be toggled, and underneath that is a custom seekbar view. I've saved the preference for this view to be visible and it works except for the fact when I hide the top view, the custom seekbar view doesn't redraw to the full height available, do I need to do a request layout or something to get it to draw the full height? Also, if I hide the view, exit out Jul 18 08:50:00 and come back, the custom seekbar view will draw to the full height. Jul 18 08:52:53 i put the preference check in onResume Jul 18 08:53:03 so it redraws without haveing to exit Jul 18 08:53:07 *having to Jul 18 08:55:59 Oh, good idea. the problem actually is when the user toggles whether the top view should be viewed, the vertical seekbar only shifts up, but doesn't fill the height. However if i exit out and come back, it will draw filling the height. Jul 18 09:04:43 as long as you're not checking it onCreate, but onResume, i think you should be fine Jul 18 09:04:48 the other thing would be Jul 18 09:04:57 when reutring form the settings Jul 18 09:05:10 clear any existing instance of the activity Jul 18 09:05:13 *returning Jul 18 09:05:20 and launch a new one Jul 18 09:08:32 It's whenever the user toggles the checkbox, controlling the visibility. Jul 18 09:19:17 <[SP]JESTER> im at a debate Jul 18 09:19:24 <[SP]JESTER> whats the closest phone to the thunderbolt to port from Jul 18 09:19:26 yet another 1 star given for locking into portrait but requiring user to write stuff Jul 18 09:20:47 I hope you wrote a comment telling the developer why :P Jul 18 09:21:49 Also, why one star? Was the rest of the App completely unusable? Jul 18 09:26:33 Knossos, I did Jul 18 09:26:57 write an email so they can reply to you Jul 18 09:27:08 maybe I will Jul 18 09:27:14 Knossos, it reflects my feelings about the usability of the application, otherwise the software works... I also commented on that part Jul 18 09:27:18 It's an emotional subject, but I think I would have had the same response. Jul 18 09:27:51 It really really pisses me off, especially if there's no apparent need to lock it. Because the dev purposely locked it. Jul 18 09:28:14 laziness Jul 18 09:28:18 yep Jul 18 09:28:22 Because for an App that actually works, that is a pretty shitty reason to 1 star an App. 3 stars may be, if it really irritiates you. Jul 18 09:28:36 (I'm not condoning shitty UIs, mind you) Jul 18 09:28:45 android makes handling screen orientation changes complicated and prone to bugs Jul 18 09:29:05 hardly Jul 18 09:29:39 yeah, try anything more complicated than an edit box Jul 18 09:29:51 nx5: I tend to set configuration handling to manual if I have no specific reason... much better user experience (because the activity isn't restarted). Jul 18 09:29:52 you're doing it wrong Jul 18 09:31:07 I fully agree with Knossos, I'm tired of ungrateful jerks giving out 1-star reviews like it was christmas Jul 18 09:31:58 I often don't give any reviews at all, in fact I use very few apps in general ;) Jul 18 09:32:18 I wasn't talking about you specifically Jul 18 09:32:23 I know Jul 18 09:32:38 Well, the way I see it, is there are 5 different ratings you can give. I don't understand why people ignore the middle three. Jul 18 09:32:57 Should just make the buttons "Like" "Dislike" frankly :D Jul 18 09:33:02 because people need to have an opinion, they can't live in uncertainty Jul 18 09:33:07 they either love or hate Jul 18 09:33:12 they can't say "I don't know" Jul 18 09:33:37 I just wish the ability to respond will be available to all devs. Jul 18 09:33:45 I requested a better graph for android platforms distributions (by country), start it if you want: http://code.google.com/p/android/issues/detail?id=35131 Jul 18 09:34:14 HDroid: Yeah, that will be nice Jul 18 09:34:29 I have two apps, one free version and one pro version. is there any way I could find out in the free version if the user has bought the pro version? (ie, no need to have it installed on the device) I'm considering moving everything over to one app and have the in-app billing feature - but have to go around the issue that people have the paid version already Jul 18 09:34:43 I hate it when people ask me questions in comments. "How can I blahblah" Jul 18 09:34:54 I'd love to tell you, but Google won't let me yet :D Jul 18 09:35:32 xertoz: you can look for the pro package use the PackageManager Jul 18 09:36:34 Knossos: what's more irritating is the "REFUND!" comments. wtf? don't they realise we don't even know who they are, even if we wanted to refund them? Jul 18 09:36:39 nx5: yeah, but that requires the pro version still be installed - am hoping there some sort of way other than that (since it will not give me hundreds of mails asking why their ads were added again) Jul 18 09:37:28 write some hidden file on the sd card then Jul 18 09:37:32 frankly, I get more spam ("I've looked at your app INSERTAPPNAMEHERE and we would like to sell you installs and ads") to my developer email than support questions Jul 18 09:37:56 or "phone home" and keep a database of phone ids Jul 18 09:37:58 Knossos, I'm popping in, didn't read everything: are you looking for a way to reply on user comments in google play (as an app maintainer)? I've actually seen comments by apps maintainer on google play, so it's probably an option; I don't know if you need some premium account to do so Jul 18 09:38:21 Currently, only top-developers have the option to Jul 18 09:38:33 I assume it is going through beta-testing Jul 18 09:38:41 yeah, it's pretty new Jul 18 09:39:50 by the way, has anybody got offers to publish apps in China? Jul 18 09:40:05 nx5: yeah, which is dumb since I already publish in Chinese :) Jul 18 09:40:21 not dumb, you can't reach practically anyone with google play Jul 18 09:40:32 if it's a paid app Jul 18 09:40:43 can reach everyone in Hong Kong, which is where my app is targeted Jul 18 09:40:52 ok then :P Jul 18 09:41:26 I got contacted once about China, they wanted 50% of revenue... Jul 18 09:42:00 and - cynic - they'd probably have taken more than that Jul 18 09:42:27 yeah, as long as they can... Jul 18 09:43:24 some guys in china even translaetd my paid app to chinese. of course it didn't work because of copy protection, but there were like 60k downloads a couple of months ago, for an app that didn't work... spread like fire through chinese forums and such Jul 18 09:43:52 the problem is finding a way of selling it there properly... these guys don't know credit cards... Jul 18 09:44:58 payment processors? carriers? how to take the money out of china? headaches and more headaches... I don't know where to start Jul 18 09:45:12 is anybody here selling in China? Jul 18 09:45:46 hi guys, i have a question for Camera Flaslight. I working on simple torch app. I am opening flashlight torch mode but i want to flip flashlight a time perido ex. 1000ms how can i do this Jul 18 09:46:33 Hello.. i got problem with zxing integration... i'm trying to open barcode scanner in tab but don't know is it possible at all.. Jul 18 09:47:25 nx5: frankly, you probably *do* need to work with someone locally, but finding someone trustworthy is likely to be extremely frustrating... China is a hard nut to crack Jul 18 09:51:34 hello, can someone tell me where I can get sqlite3 for my android 4.0.3 Phone ? Jul 18 09:54:42 Pinas: ? ur phone has build in sqlite libs Jul 18 09:54:52 dont know about cli command is exists or no Jul 18 09:55:06 * xertoz has spent 30 minutes trying to figure out why an instantiation failed of an activity, only to figure out he defined the activity's class as abstract Jul 18 09:55:07 yes of course - i need the shell command Jul 18 09:55:09 but on site is describe how u can use on ur computer sqlite3 Jul 18 09:55:17 hand to face. Jul 18 09:55:31 I'd like to run sqlite3 when I am connected to the phone via adb shell Jul 18 09:56:18 btw r u sure its dont have sqlite3? maybe its just not in ur path environment Jul 18 09:56:39 hmm good point Jul 18 09:57:38 but how do i search for it ? Jul 18 09:58:08 but im think u cant use effectivly it without root Jul 18 09:58:30 the phone is rooted Jul 18 09:58:36 It's not there on production builds Jul 18 09:58:41 You need to push it yourself Jul 18 09:59:05 yes Jul 18 09:59:10 SimonVT yea I thought so too - but where to i get it from ? Jul 18 09:59:16 its in basic build in emulators Jul 18 09:59:35 Most custom roms have it Jul 18 09:59:47 yea right I could pull it from an emulator Jul 18 10:01:40 just need to find it ... Jul 18 10:03:49 Anyone heard of an issue where an app is removed from the charts but still appears in the store? Jul 18 10:06:01 hmm, interesting.. under what circumstances is onConfigChanged with "locale" every called? Jul 18 10:06:45 When the user changes language / country in device settings is one. Jul 18 10:06:48 hi, is there a way to exchange default sdk classes on a rooted device with custom classes without needing a custom rom? Jul 18 10:07:30 <[SP]JESTER> porting miui to tb on liquids ics build is proving to be a bitch Jul 18 10:07:42 snuy: add ur classes to project :) Jul 18 10:07:58 i want the classes system wide be customized Jul 18 10:08:02 +to Jul 18 10:08:03 HDroid: ok, because it's not called for us for this workflow: user starts app presses home and sets the language in the settings, then presses the app icon again.. Jul 18 10:08:14 i would expect onConfigChanged to be called in this circumstances Jul 18 10:08:30 <[SP]JESTER> anyone know how i can fix libc Fatal signal 11 at 0xdeadbaad Jul 18 10:08:32 I... would too. Jul 18 10:08:47 <[SP]JESTER> not sure wats going on but causing a loop Jul 18 10:08:48 ixc: i'd like to replace the standard inputstream with a custom one for example without needing to install a custom rom Jul 18 10:08:52 is that possible? Jul 18 10:11:47 Hi, I working on simple torch app. I am opening flashlight torch mode but i want to flip flashlight a time perido ex. 1000ms how can i do this Jul 18 10:12:04 tapas: is your activity set to handle that manually, though? Jul 18 10:12:51 args now i dont find sqlite3 in the emualtor ? Jul 18 10:16:51 why when I see my apk uploaded do I see, "Localized to: default, Japanese"? Jul 18 10:21:34 HDroid: ok, it was a bug.. everything works as expected.. Jul 18 10:22:09 thenovelist: Because you have a default language as well as japanese? Jul 18 11:05:04 is there a way to have apk with google api (mapview...) installed on device without it? i'd like to fail back and not use MapActivity? Jul 18 11:05:23 i get Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] Jul 18 11:05:45 this is most annoying Jul 18 11:10:11 ok uses-library android:required="false" Jul 18 11:13:13 Hello Jul 18 11:21:46 JakeWharton: xcuse me, can i change the ABS height? i've been trying with actionBarSize and android:actionBarSize with no success Jul 18 11:23:14 i have listview with two textview and one button.I want to do when i click on imagebutton then and then listview item click event should be fire otherwise not. Jul 18 11:23:43 but my problem is that i click on any place in listview then listview click event is fire. Jul 18 11:24:05 so can anybody know how to do possible my requirement] Jul 18 11:25:08 does anyone know if actionbars height can be changed ? Jul 18 11:25:25 With actionBarSize :) Jul 18 11:27:16 Check if android:actionBarSize is being applied on ICS+.. If not, you're doing it wrong Jul 18 11:27:27 Once that works, do the same without the android: Jul 18 11:27:32 ?hm question. When a service is stopped (onDestory is called) and this service previously has created an AsynchTask - will the AsynchTask be stopped as well ? Jul 18 11:28:00 No, Pinas Jul 18 11:28:14 hi where is the problem in my code ? http://paste.org/51834 Jul 18 11:28:23 SimonVT - thank you :) Jul 18 11:28:47 Please support us by at least allowing ads when viewing our website - that is all we us! Jul 18 11:28:50 Pfft Jul 18 11:28:53 No help for you Jul 18 11:29:18 SimonVT me ? Jul 18 11:29:34 yes you Jul 18 11:29:38 why ? Jul 18 11:30:13 SimonVT> Please support us by at least allowing ads when viewing our website - that is all we us! Jul 18 11:30:16 Can't see your code Jul 18 11:30:26 can you explaine ? Jul 18 11:31:02 ok Jul 18 11:31:20 can you give a simple paste site ? Jul 18 11:32:15 alright nn peeps Jul 18 11:32:19 thanks for your help today Jul 18 11:40:45 SimonVT 70dp isn't working...can't test on 4.0 for now because emulator isn't up and working...are you sure the height can be changed? maybe it's lnoy a feature for the tabs height...? Jul 18 11:41:54 SimonVT: http://pastebin.com/mYRzks7F Jul 18 11:42:54 Try putting the attribute in your theme Jul 18 11:43:32 Anyway, test on 4.0 .. just to make sure Jul 18 11:46:10 SimonVT i'll try 4 later, it's crashing for some other reason Jul 18 11:47:22 is there a possibilite to cancel an asych task to which I don't have a reference ?? Jul 18 11:47:46 oO no Jul 18 11:49:35 ok so what do I do when i have something like this: Service starts AsynchTask -> Service is destroyed -> User wants AsynchTask to be canceld ? Jul 18 11:52:20 You could just not stop the service until the asynctask is done Jul 18 12:03:24 Hello, does anyone here got any experience in enabling auto-zoom when pressing in textfields on a webview app Jul 18 12:03:57 disabling* sorry Jul 18 12:15:02 i wonder: if i use TextView.setText(R.string.foo) instead of setText(getString(R.string.foo)) Jul 18 12:15:17 will the view resolve the right language when the activity resumes after a locale change? Jul 18 12:15:51 nope Jul 18 12:16:06 dammit :D Jul 18 12:16:25 but if i set it in the xml it does resolve to the right language.. Jul 18 12:17:57 right? Jul 18 12:18:07 Hello, can anyone tell me please how to read the text from a file in the res folder? Jul 18 12:18:42 At inflating it will, sure Jul 18 12:18:54 ah ok.. Jul 18 12:20:00 It doesn't keep a reference to the res id Jul 18 12:20:10 It gets the text based on current locale, then caches that Jul 18 12:20:50 I don't really think this is something you should worry about Jul 18 12:22:33 SimonVT: oh well, we have a legacy app with a tabhost.. Jul 18 12:23:00 and we catch onConfigurationChanged in it so we can pass it through to all childviews.. Jul 18 12:23:07 child activities, rather.. Jul 18 12:23:21 each child activity is again a GroupActivity so we pass it through to those, too Jul 18 12:23:40 so no we wonder what's the smartest way to trigger a reloading of all resources in all these activities.. Jul 18 12:24:00 and the texts in the tabs in the tabhost are set programatically Jul 18 12:24:22 yeah, we should curse aloud because we used TabHost, but hey, we gotta live with it now :D Jul 18 12:24:36 Just saying, locale changes are not the most common Jul 18 12:25:07 I wouldn't spent more than 5 minutes trying to get that specific config change to work right :p Jul 18 12:25:10 well, i'm a sucker for consistency.. Jul 18 12:25:18 so if you change the locale while the app is open Jul 18 12:25:27 some parts of it are changed to the new locale and others not.. Jul 18 12:25:29 that sucks ;D Jul 18 12:26:15 i guess there's no way to force activities to reinflat their layouts? Jul 18 12:26:21 Move to fragments, problem solved Jul 18 12:29:33 Hello, can anyone tell me please how to read the text from a file in the res folder? Jul 18 12:30:59 dvorak_: use getResources() and go from there.. Jul 18 12:31:04 dvorak_: it's in Context i think Jul 18 12:39:06 how do i avoid View.buildDrawingCache while scrolling through a listview/ Jul 18 12:45:42 I have an Activity with stuff going on and want to show a dialog to the user with buttons, but without stopping the bottom Activity. Currently, everytime the dialog pops up, the lower Activity stops.. How can I implement the dialog Activity so that it doesn't influence lower activities? Jul 18 12:46:01 funktronic: i have no idea if this will do what you want, but you can try setting android:cacheColorHint="#00000000" on the ListView Jul 18 12:52:31 ricardjorg: is the dialog full screen? Jul 18 12:55:25 Can somebody please provide me with a sample code to read from a text file located in the res folder(and have a string variable hold the text)? When I try to do it the app crashes. Jul 18 12:56:19 wongk: nope. just a transparent floating activity Jul 18 12:56:49 ricardjorg: if any part of the underlying activity is visible, it should be paused, but not stopped Jul 18 12:57:34 dvorak_: you're doing it wrong Jul 18 12:57:37 wongk: so if I just not stop the drawing thread on the noPause, I shouldn't have any problem? Jul 18 12:57:45 onPause* Jul 18 12:58:21 ricardjorg: i have no clue, you haven't said what your problem is Jul 18 12:59:30 Ivru: What could I be doing wrong? I just want to read from a simple text file and I want the text file to be located in a folder tied up with the app. How can I move its content in a variable? Jul 18 12:59:45 wongk: on the bottom activity, when the onPause is executed, I stop the drawing thread.. maybe that's it. I'll try just stopping it on the onStop. Thanks :D Jul 18 13:00:11 Not sure onStop is guaranteed Jul 18 13:00:17 dvorak_: start reading computer programing book first. I think this is a requirement Jul 18 13:01:50 SimonVT: What would be the worst that could happen? The Activity continuing to draw in the bg even if not visible? Jul 18 13:02:02 Re, Should I create different activity for editing something (e.g. contact) and different for using it, or the better approach is to ha e one activity for both [screens]? Jul 18 13:02:10 Probably Jul 18 13:02:12 Maybe crashes Jul 18 13:03:04 Ivru: What is that supposed to mean? Is reading from a file such a strange concept from computer programming? Jul 18 13:03:08 dvorak_: use assets, http://developer.android.com/reference/android/content/res/AssetManager.html Jul 18 13:03:18 SimonVT: So what should be the correct way to do this, then? Aren't there any camera apps that show a dialog above the camera view without stopping the camera view? Jul 18 13:03:43 Hi everyone Jul 18 13:03:53 is there a way to make the images on tabs stretch? ive got an activity which is landscape with 3 tabs, but the images in use dont fill the tabs properly so theres gaps, and even worse on bigger screen phones Jul 18 13:04:00 wongk: Thanks! I'll look into it. Jul 18 13:04:28 does anyone know some methods to optimize a custom animation? Mine the first time it runs it's very slow...then after the first loop everything go smooth Jul 18 13:04:38 I mean bootanimation Jul 18 13:04:41 hmm, revisiting the camera preview thing again.. it seems on some devices not setting any preview size for the camera at all results in a camera preview that's smaller than the screen and it leaves some part of the surfaceview black,, Jul 18 13:06:41 SimonVT: Toasts for instance, don't pause the bottom activity. I would use one, but they can they receive input? Jul 18 13:07:01 I haven't seen any camera apps with dialogs, no Jul 18 13:07:09 Not during preview anyway Jul 18 13:10:01 hi, guys. Trying to implement my custom SyncAdapter and got several questions - can I ask it here? Jul 18 13:10:29 scanned whole Ggroup and stackoverflow - and still cannot resolve several issues... Jul 18 13:11:25 That is what this channel is here for :) No guarantees of an answer though Jul 18 13:11:41 ok, let's give it a try Jul 18 13:12:34 SyncAdapter in it's method onPerformSync has a parameter - SyncResult Jul 18 13:12:49 it contains field SyncResult.delayUntil Jul 18 13:13:19 I noticed that it has no effect on ContentResolver.requestSync Jul 18 13:13:52 is this a bug or it is used for something different? Jul 18 13:13:58 this is the first question Jul 18 13:14:32 Second question: what ContentResolver.setIsSyncable is used for? Even if I don;t call it - my SyncAdapter still works Jul 18 13:15:36 Third question: ContentResolver.setSyncAutomatically - in JavaDoc it is documented as "Set whether or not the provider is synced when it receives a network tickle". What is network tickle? Jul 18 13:18:27 and the most important question - in dedicated account screen inside "Accounts & Sync" we have a separate area called "Data and Synchronization", there my registered Sync Adapter with checkbox appears. But in some applications, like News application account - I see there also "Update Schedule" with appearing dialog. How ti add custom item there? Jul 18 13:18:46 any volunteer to answer? Jul 18 13:20:43 2) They are Syncable by default. You can change the parameters if you want. (e.g. to FALSE) Jul 18 13:22:14 Thank you, Jonathan - what will happen if I will set it to FALSE? Will my SyncAdapter respond to ContentResolver.requestSync? As I see looks like it doesn;'t affect SYncAdapter checkbox in preferences Jul 18 13:22:19 So now I have my transparent activity showing above the other activity.. Can I make the top activity not have focus? Jul 18 13:22:55 wongk: cachecolor hint helps a little but doesn't solve the proble Jul 18 13:23:09 i think the views may be too complex but not sure how to fix it Jul 18 13:23:21 there's a bunch of text with icons Jul 18 13:23:54 That I'm not sure about. However, you really ought to know about network tickle. It's pretty cool to sync your data across the cloud without being too much of a pain to the user. Jul 18 13:25:08 Jonathan: is network tickle related to network availability status change? or it is related to Clowd 2 Device messaging? Jul 18 13:25:28 More like the second one. Jul 18 13:25:57 In fact, AFAIK it has nothing to do with the first one at all. Jul 18 13:26:24 Ok, any ideas about first question or the last one? Jul 18 13:26:27 Solved it: this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); removes focus Jul 18 13:37:50 looks like nobody is familiar with SyncAdapter... Jul 18 13:37:53 Now that I'm pretty much sunk in Win7+eclipse+(cygwin for NDK) and I've invested so much time in getting the development environment set up properly that if anyone were to suggest a different IDE I would probably shoot them... I'm still curious what sort of development environment is prefered to the developers out there for Android? Jul 18 13:38:55 At the time, eclipse was recommended for windows Android development, but what sort of IDEs do you use? Jul 18 13:38:57 Jonathan, I heard that usually Android engineers do not use Win boxes Jul 18 13:39:24 IntelliJ or no IDE at all AFAIK Jul 18 13:40:38 AlCapwn: So you use IntelliJ+win7? Or do you use a linux box? Jul 18 13:41:09 I guess I could always run Ubuntu on a virtual machine on Win7... Jul 18 13:41:45 Jonathan_Eyre: I've also heard about IntelliJ as an (the?) alternative to Eclipse. Never used it meself though. Eclipse in both Win and Lubuntu. Jul 18 13:42:26 Jonathan_Eyre: I don't run Lubuntu in a Vbox though, I dual boot instead. Jul 18 13:42:45 Jonathan_Eyre: I use windows 7 + eclipse Jul 18 13:44:35 Jonathan_Eyre, ubuntu+eclipse working nicely for me Jul 18 13:46:18 Jonathan_Eyre: I guess a lot of this boils down to if you like to tinker with everything all the time or if you just want things to stay the way they are when you're finally done. :) Jul 18 13:47:14 intellij ftw Jul 18 13:47:57 SimonVT: Do you use community or commercial? Jul 18 13:48:47 And why do you like it? If you could break it down to a few sentences... Jul 18 13:48:54 community Jul 18 13:50:07 I think saying that The commercial version supports Visual SourceSafe version control is probably hurting JetBrains' sales... Jul 18 13:50:30 I'm particularly fond of the code completion Jul 18 13:51:11 Jonathan_Eyre: haha Jul 18 13:51:14 more java then android per se, but can someone tell me what the ... is in 'protected String doInBackground(String... url)'? Jul 18 13:51:55 mbrevda: look up java ellipsis Jul 18 13:52:47 "variable number of arguments" ah! Jul 18 13:52:49 thanks Jul 18 13:54:00 np Jul 18 13:55:07 Visual SourceSafe Jul 18 13:55:09 * lov shudders Jul 18 13:55:25 mbrevda: varargs Jul 18 13:57:15 github needs a branch cleanup feature Jul 18 13:57:22 "find all branches that HAVE been merged into branch X" Jul 18 13:57:43 ^ we have at least 20 branches right now just because of that Jul 18 13:57:56 I would appreciate that feature a bunch Jul 18 13:58:39 "at least 20" Jul 18 13:58:40 we have 163 Jul 18 13:58:46 and github will only show up to 50 i think Jul 18 13:58:53 dang Jul 18 13:59:02 we have two projects with over 100 Jul 18 13:59:04 at least* two Jul 18 13:59:34 we do a cleanup every so often, reason why we're only at 20 Jul 18 14:04:50 Anyone use the Android testing framework on their project? Opinions? Jul 18 14:08:34 I'm using Robolectric, in my opinion it is much better than than Android testing framework Jul 18 14:09:58 canadiancow|work: I hear that Zynga got over 25% more traffic from OMGPOP. grats Jul 18 14:12:59 vavirta: Yeah, I just came across that. Would you say that it is definitely useful for your project? My team/I have never been much of TDD group, but we're wondering if we should start. Jul 18 14:13:36 vavirta: Have you check out robotium as well by any chance? Jul 18 14:18:16 nope, never heard of robotium Jul 18 14:18:27 I first started to write tests with android testing framework Jul 18 14:18:55 but it was pretty slow, because when I wanted to run the tests, android needs to push them to phone/emulator Jul 18 14:19:25 also I didn't find any way to mockup http-requests Jul 18 14:19:40 that's how I stumbled to Robolectric Jul 18 14:19:54 vavirta: Yeah, that makes it not worth it in my opinion. Roboectric skips past that, but I am still not sure if its going to be worth it. Jul 18 14:20:10 well I'd give it a try Jul 18 14:20:21 ah roboectric was useful for testing your network code? Jul 18 14:20:22 but you should remember that it is still under the development Jul 18 14:20:34 yeah, it is pretty easy to mockup the request Jul 18 14:21:13 Cool. Yeah, I'll definitely look into that more. Thanks. Jul 18 14:21:16 but you should remember that it is still under development, every method isn't shadowed yet Jul 18 14:22:20 So I have cloned the sources from github and if I found that some method isn't shadowed yet I'll write implementation myself Jul 18 14:22:34 (and ofcourse make pull request for it so other people can use it) Jul 18 14:27:43 Jonathan_Eyre wat Jul 18 14:28:34 too vague for me to even know waht you mean, and i cant really comment anwyay Jul 18 14:28:38 so i'll leave it at "thanks" Jul 18 14:31:33 I thought you worked at Zynga... Jul 18 14:31:42 i do Jul 18 14:31:47 but it's still a very vague statement Jul 18 14:31:51 define "traffic" Jul 18 14:31:58 And I just read an article that your traffic bumped up 25% because of the doodle game OMGPOP. Jul 18 14:32:14 i still play that Jul 18 14:32:15 fwiw, i've read many articles with "facts" about zynga Jul 18 14:32:16 :) Jul 18 14:32:17 and most are wrong Jul 18 14:32:31 ha Jul 18 14:32:33 Ah, Users actively playing... Jul 18 14:32:38 daily active users? Jul 18 14:32:40 monthly active users? Jul 18 14:32:41 And how would they know...? Jul 18 14:32:45 daily unique users? Jul 18 14:32:49 now that sounds par for everything related to the game industry news :) Jul 18 14:32:50 Daily active. Jul 18 14:33:01 across zynga as a whole, or zynga mobile, or what? Jul 18 14:33:04 Has anyone done anything with declension/conjugation support with android? Is there something I should be using or am I SOL? Jul 18 14:33:11 lol, wow you're specific... Jul 18 14:33:38 wait, so it's not true that zynga has put in a secret bid to buy Facebook's entire gaming section? Jul 18 14:34:06 hehe Jul 18 14:34:18 Jonathan_Eyre i just dont know Jul 18 14:34:24 ok our website says we have 60 million DAU Jul 18 14:35:10 how do you check the expiry date of a shampoo product? Jul 18 14:35:34 excuse me Jul 18 14:35:37 what? Jul 18 14:35:40 lol Jul 18 14:36:03 I've never bought a Zynga game, but here's what I want... Make an android interface to WOW. It doesn't need hardly any graphics, I just want to see stick figures running around Azeroth getting XP. I'll play it on my phone on the tram. I'd pay for that. Jul 18 14:36:39 this random graph ( http://articles.businessinsider.com/2012-04-16/tech/31348481_1_zynga-appdata-users ) says DS peaked around 15 million Jul 18 14:36:43 so sure, i guess that's 25% Jul 18 14:36:55 based on publicly (and often wrong) information Jul 18 14:37:13 I probably should have just left it at "thanks". Jul 18 14:37:17 :D Jul 18 14:38:32 canadiancow: songpop isn't one of yours, is it? it just looks almost exactly like DS Jul 18 14:39:17 says it's made by Freshplanet Jul 18 14:39:39 it even has back buttons in the top left corner of the screen :D Jul 18 14:40:29 it's also promoting various X with friends for free coins Jul 18 14:42:44 twittergal: ask Siri Jul 18 15:06:22 ? Jul 18 15:07:08 How's every1 today? Jul 18 15:08:41 anyone in PST? Jul 18 15:08:44 Is there a way to define a circle (as opposed to an oval) in an xml ShapeDrawable? Jul 18 15:08:46 cant work out what time it is there Jul 18 15:08:54 8.08am here Jul 18 15:08:56 should be 8.08 Jul 18 15:09:00 aha Jul 18 15:09:15 thanks Jul 18 15:12:21 hi gaz` Jul 18 15:15:15 hi Jul 18 15:22:09 I'm trying to compile a rom, and everytime i do make -j5, it always says 'unable to find src' Jul 18 15:22:22 is there an easy way to get a dup of an sqlitedb? Jul 18 15:22:26 *ump Jul 18 15:22:29 *dump Jul 18 15:22:56 in which situations should i use android:textSize="16sp" vs. android:TextSize="16dp" Jul 18 15:22:58 hi guys Jul 18 15:23:10 you think it's easy to get a job in SF as an android dev? Jul 18 15:23:27 if you're really good Jul 18 15:23:37 like how good? Jul 18 15:23:37 @Rockmainoff the only difference between dp and sp is that sp takes the users accessablilty text size into consideration Jul 18 15:23:40 i still wouldn't call it easy, though Jul 18 15:23:46 freedomcaller: I've usually used .dump in the sqlite3 prompt Jul 18 15:23:46 oh? Jul 18 15:23:56 maaan.. Jul 18 15:24:01 how do i get an sqlite promps for my apps sqlite db? Jul 18 15:24:07 so wongk Jul 18 15:24:23 *a *prompt Jul 18 15:24:27 what country do you think is it best to pursue a mobile career? Jul 18 15:24:32 i gotta learn to type Jul 18 15:24:47 freedomcaller: you need the "sqlite3" application. If you're able to get a shell prompt on the device, it's usually already present. sqlite3 /path/to/my.db Jul 18 15:24:52 hell if i know Jul 18 15:25:05 ahh where is the default db location, do you know offhand? Jul 18 15:25:23 freedomcaller: so sp would be preferred in general? Jul 18 15:25:31 the apps usually go into /data/data/com.example.app -- and poke around inide there Jul 18 15:25:31 -.- Jul 18 15:26:08 yeah sp is the recommended for text sizes, tho if u have a layout that will explode if the text size gets enlarged, you can go with dip, an the hell with people with bad vision Jul 18 15:26:28 * kbs finds the android notion of dip to be rather, um. unusual Jul 18 15:26:31 @kbs thanks Jul 18 15:26:31 freedomcaller, just extract the damned .db file and then open it using firefox browser https://addons.mozilla.org/en-US/firefox/addon/sqlite-manager/ Jul 18 15:26:51 extract it using DDMS in eclipse (pull a file from sd card) Jul 18 15:27:02 although you won't be able to do it in an unrooted device Jul 18 15:27:07 i was kinda hoping there was an api function i could call and send it to logcant, guess not >.< Jul 18 15:27:10 firefox browser is the way to go Jul 18 15:27:12 Has anyone had issues with negative margins on a FrameLayout working on 3.0 and later but breaking in 2.3 and earlier? Jul 18 15:27:20 im on cyanogen is there any other OS? Jul 18 15:28:25 Where's a good resource for rom development? Jul 18 15:32:14 i think there is a rom dev irc room Jul 18 15:32:40 got the db by using terminal on the device, thanks guys :D Jul 18 15:32:46 i'm in android-root but it's deader than a door knob Jul 18 15:32:50 shiftkey: #android-root Jul 18 15:32:54 is there a way to get the file explorer in ddms to show all files? Jul 18 15:33:06 we don't do rom development here Jul 18 15:33:18 ah, ok :D Jul 18 15:33:19 we dont take cindly to you folks round here Jul 18 15:33:22 *kindly Jul 18 15:33:51 shiftkey: this is not the right channel for that, sorry. Jul 18 15:45:29 Ah, crap. I had a huge list of other dev channels all typed up for shiftkey. Jul 18 15:45:56 If you can't wait ten minutes for an answer, don't ask. Jul 18 15:49:35 do ABS necessarily need to use fragments ? Jul 18 15:49:49 nope Jul 18 15:49:49 no Jul 18 15:49:52 only if you want to put tabs in the action bar Jul 18 15:49:56 But it is used for tabs Jul 18 15:50:09 which brings me too my question Jul 18 15:50:19 ddreamer0: but any future proofed android app will probably have to use fragments Jul 18 15:50:23 yes i want to use tabs Jul 18 15:50:29 do i have to have fragment in my xml layout Jul 18 15:50:55 i'm using the deprecated tabactivitys Jul 18 15:50:57 ??? Jul 18 15:51:03 ddreamer0: ie, they're not going away, and you'll have to redo most of your app if you want to say, add tablet support later on Jul 18 15:51:05 do i ? Jul 18 15:51:10 ddreamer0: knock that off Jul 18 15:51:12 if you're not using fragments Jul 18 15:51:22 hi guys Jul 18 15:51:52 is it recommended that i execute a thread within asynctask? Jul 18 15:52:04 er Jul 18 15:52:12 chups: that makes no sense Jul 18 15:52:22 asynctask spawns a thread to do its work Jul 18 15:52:25 chups: it already is a thread, at least doInBackground is Jul 18 15:52:33 well Jul 18 15:52:37 MDijkstra: Do I have to have a fragment in my xml layout too use it in my fragment ?? Jul 18 15:52:39 i sort of wanted to Jul 18 15:52:57 parse a json string, display then cache it in the background Jul 18 15:53:33 so thread 1 parses the json string and displays data, thread 2 caches the json string Jul 18 15:53:39 Blade: no, not necessarily, you can simply add fragments to any container if you want Jul 18 15:53:53 Blade: using a fragment transaction Jul 18 15:54:33 See "Adding a fragment to an activity" at http://developer.android.com/guide/components/fragments.html Jul 18 15:54:44 Blade: do i have to have fragments in my xml ? Jul 18 15:54:49 it shows the various ways in which you can display a fragment in an app Jul 18 15:54:53 so in the middle of parsing, the thread modifies the activity so that the user will feel that the app is fast Jul 18 15:55:05 wongk what does knock that off mean ? (sorry bad english ) Jul 18 15:55:07 i dunno Jul 18 15:55:08 -.- Jul 18 15:55:26 ddreamer0: Why are you asking me.... Jul 18 15:55:29 knock that off means, please stop that kind sir Jul 18 15:55:35 chups: maybe you can use publishprogress... but how long is the caching going to take? Jul 18 15:55:36 ddreamer0 Jul 18 15:55:37 ddreamer0: stop using TabActivity Jul 18 15:55:59 chups: first of all, you can't interact with your UI from a background thread Jul 18 15:56:11 wongk haha ok i figured Jul 18 15:56:12 chuck norris can Jul 18 15:56:14 even if i use runOnUiThread? Jul 18 15:56:29 then you can, obviously Jul 18 15:56:30 Sure you can, but you need to use publishProgress, runOnUiThread or a handler. Jul 18 15:56:30 chups: Good. ASyncTask is exactly what you need. It is already a new thread, so just fire up ASyncTask and do your secondary action. You DO NOT need to spawn a thread in ASyncTask. Jul 18 15:56:32 hi JakeWharton, actually using your library for this one Jul 18 15:56:52 excellent Jul 18 15:57:03 chups: the point is that you'll have to worry about the thread safety of what you're doing Jul 18 15:57:05 chups: if it makes sense, I guess you could fire an asynctask for your caching from your parser's asynctask. Jul 18 15:57:18 hmmm.. right now i am currently parsing and caching on the background thread Jul 18 15:57:23 chups: ie, if you have multiple background threads adding stuff to your cache at the same time Jul 18 15:57:34 the cache'll need to be threadsafe Jul 18 15:57:38 and then after the long task of doing so, i display the data to the user Jul 18 15:57:44 I have a chunk of sequential code. In the middle of it I need to find the location of the user. I have a 'stillListening' function that returns false if I have found a solid location. This method is part of my locationlistener class. How can I make Java 'wait' until this method returns true checking it every few seconds? Jul 18 15:57:51 so i thought, why not parse it, display it then cache it Jul 18 15:57:54 which would make sense Jul 18 15:57:56 chups: Yo dawg. I heard you like threads, so now you can thread inside your threading while you thread! Jul 18 15:58:05 I'm trying to use vbox to emulate android....does any of you know where the .iso image for android 4.0.3 is at the following website: http://www.android-x86.org/download Jul 18 15:58:07 ? Jul 18 15:58:33 chups: you could, yes, but I suppose the caching step isn't that time consuming Jul 18 15:58:39 so i thought, is there any way to spawn the caching on another thread while the current thread is parsing and displaying? Jul 18 15:58:41 LOL Jul 18 15:58:44 -.- Jul 18 15:58:45 chups: depending on the use case, of course Jul 18 15:58:52 Lololol Jul 18 15:58:54 ok, good luck! Jul 18 15:58:57 well for caching i sort of used ORMLite Jul 18 15:59:07 and then a complex dao layer Jul 18 15:59:09 sa yaaah Jul 18 15:59:09 -.- Jul 18 15:59:14 it does take a bit of time Jul 18 15:59:16 oh god Jul 18 15:59:20 what have i done Jul 18 15:59:21 T_T Jul 18 15:59:54 :D Jul 18 16:01:19 i dunno Jul 18 16:01:26 maybe i'll just spawn another thread Jul 18 16:01:28 oh crap Jul 18 16:01:30 -.- Jul 18 16:01:39 spawn another thread after caching and displaying Jul 18 16:01:46 so that's two asynctasks Jul 18 16:01:50 i mean Jul 18 16:01:52 *nevermind* Jul 18 16:02:57 Jonathan_Eyre: I think android hates it if I make the main thread sleep. Jul 18 16:03:31 the UI thread? yeah, never do that Jul 18 16:04:28 anyways, thanks for the help, probably use runOnUiThread while inside doInBackground of asynctask Jul 18 16:04:36 It's okay to sleep the UI thread if you keep it under 5 seconds. Jul 18 16:04:40 IF that works Jul 18 16:04:41 T_T Jul 18 16:05:00 yeah, well users tend to notice lags at .4 seconds Jul 18 16:05:04 Jonathan_Eyre: no it isn't - you just don't get killed by that Jul 18 16:05:07 * SimonVT slaps Jonathan_Eyre Jul 18 16:05:17 Is there a good reason I'm missing for the id variable in a listview/listadapter being a long? Jul 18 16:05:18 wait Jul 18 16:05:36 I'm mean, to be as annoying as possible, you would sleep just before the Android Constable comes around. Jul 18 16:05:55 Wake up just before the PO arrives. Jul 18 16:06:12 What is better? Dumping the location stuff on a second thread and poll for location updates or write a custom callback so I know when the location is ready dynamically Jul 18 16:09:55 Hey JakeWharton I'm started trying out your library for my project I'm getting a stack trace, have shared it in abs google group Jul 18 16:10:40 java.lang.ClassNotFoundException: res/drawable-mdpi/ic_go_search_api_holo_light.png Jul 18 16:11:46 hemanshu: : libraries are like pets. You've got to give them the right environment, and feed them what they expect. you can't just shove a bunch of NULLs down your pet's throat and be all shocked when it gets indigestion and floats belly up in the fish tank. Jul 18 16:12:00 hi Jul 18 16:13:34 Jonathan_Eyre, now i know why my goldfishes kept dying! i was feeding them NULL Jul 18 16:15:17 The metaphor was somewhat lacking. But to be fair, there's just not a lot of substance to a NULL. Your goldfish probably suffered from malnutrition. Jul 18 16:15:35 is it possible to make it so people can cash out from my app, like if they reach a certain number of points, they can convert them into a payment to their google account? Jul 18 16:15:57 Jonathan_Eyre: :) that's wise and insightful, however doesn't tell me what I fed it wrong Jul 18 16:17:21 It depends on the library. Something from JakeWharton was probably expecting an essay on existentialism, while you seem to have fed it a lolcat. Jul 18 16:18:13 how to open a existing project in eclipse Jul 18 16:18:39 file->import Jul 18 16:18:54 CallumTaylor which file i shd import Jul 18 16:19:14 existing projects into workspace -> folder where the project is -> finish Jul 18 16:19:25 "select root directory" Jul 18 16:19:33 can anyone refer me to a good ABS4 tab example with fragments Jul 18 16:19:35 please ? Jul 18 16:19:46 i've got a widget layou http://pastebin.com/FHYwSntq that lets me resize the widget in ICS, it works horizontaly fine, i can resize the widge wider and narrower...and the height i can increase, but it never lets me decrease the height....any ideas what might be wrong? Jul 18 16:20:25 it says invalid project description Jul 18 16:21:19 eric256: well what size do you declare the widget in its XML configuration? Jul 18 16:21:47 wat Jul 18 16:21:47 72dpx72dp Jul 18 16:21:53 maybe the project is corrupt Jul 18 16:21:57 its allready build prohect i want to open it in eclipse Jul 18 16:22:11 and it starts there, but if i make it larger verticaly it wont ever go back...i can make it larger and smaller horizonatly though Jul 18 16:22:20 what shd be name of root folder when i unzip the code? Jul 18 16:22:39 is it possible to allow users to cash out their points in an app for real money? Jul 18 16:22:49 i have subfolders in workspace folders Jul 18 16:22:52 did you download someone else's code? you might have to create a new project from source Jul 18 16:23:23 yes its someone else code Jul 18 16:23:48 i think problem lies in the name of root folder Jul 18 16:23:52 hemanshu, to make sure that your pets are fed correctly, use MAVEN! Jul 18 16:23:56 yeah you'll have to create a new project from source then Jul 18 16:24:12 there are 6 java files in it Jul 18 16:24:23 just java files? Jul 18 16:24:25 anyway to directly use the project Jul 18 16:24:30 it has xml Jul 18 16:24:34 Maven is like the maid that keeps feeding your pet, she goes well with Jenkins, the butler Jul 18 16:24:34 and other files Jul 18 16:24:35 ugh idk then Jul 18 16:24:39 sounds like a weird structure Jul 18 16:25:11 bin,gen,src,assets Jul 18 16:25:18 res Jul 18 16:25:52 my question is what shd be the name of parent folder for these folders Jul 18 16:26:07 can it be anything? Jul 18 16:30:00 Does anyone else get a huge number of parser errors from the eclipse linter than disappear after a clean? Jul 18 16:30:27 Estel can u please try AIDE on android device its cool Jul 18 16:31:03 is it possible to allow users to cash out their points in an app for real money? Jul 18 16:31:16 Assuming I'm at my desk, I'm unsure why I'd use AIDE when I have eclipse :/ Jul 18 16:32:56 eStel then i recommend u to use eclipse indigo Jul 18 16:41:05 mysteronyx: Yes. Jul 18 16:42:35 mmm shawarma Jul 18 16:43:18 It's up to you to keep track of all of the points, both on the app and in your own cloud for backup reasons. Use the regular Google Merchant API for the monetary transaction, or use your own preferred vendor, like PayPal using HttpPost transactions and updating a cloud database that your app can then read from. Jul 18 16:43:55 Or were you looking for a more philosophical answer? Jul 18 16:44:11 Like, is anything really impossible? Jul 18 16:44:21 do I have any nullpointer eceptions? I keep getting that error http://pastebin.com/HeHXwv3G Jul 18 16:45:52 Estel yes, it is driving me crazy. Indigo is doing the same thing. Jul 18 16:46:22 hey guys, where can I find MediaPlayer progressive audio playback and caching implementation, like how it's done in SoundCloud app? I'm a very beginner, and I have no idea how to make it myself Jul 18 16:46:35 Blade: Try posting the stacktrace. It's infinitely more useful than hunting through code that may or may not run. Jul 18 16:48:31 is it possible to allow users to cash out their points in an app for real money? Jul 18 16:49:16 it runs but force closes Jul 18 16:50:03 yep Jul 18 16:51:04 mysteronyx: ?? Really!? Jul 18 16:51:12 Jonathan_Eyre what? Jul 18 16:51:16 lmao Jul 18 16:51:23 dude..... Jul 18 16:51:38 scroll up man Jul 18 16:52:04 Jonathan_Eyre lol I'm sorry I was on the phone and missed all of that Jul 18 16:52:08 How is it possible that you are still asking that? Jul 18 16:52:31 thats why man invited the scroll bar Jul 18 16:52:48 I thought I was watching the screen, didn't see the response, my bad Jul 18 16:53:16 invented even... Jul 18 16:53:37 i'm curious about paying people for points thought...would want to make sure your DB is rock solid...someone figures out how to game that and you can get in trouble in a hurrry Jul 18 16:53:58 Hi all Jul 18 16:54:24 eric256 true Jul 18 16:54:28 I need to set an onclick listener for the layout of the entire screen. How would I do that? I only found examples of buttons Jul 18 16:54:47 Jonathan_Eyre thanks for the response, isn't using paypal going around the google market? Jul 18 16:54:57 im trying to do something like Touch anywhere to Continue Jul 18 16:55:03 I thought they were pretty strict about using google billing for transactions Jul 18 16:55:19 if your payingout i don't think they care, cause they are only getting a cut on money comeing in not going out Jul 18 16:55:29 ThomQ: why not make it a big, screen-filling button? Jul 18 16:55:32 ok Jul 18 16:55:39 Only on Google Play apps. You can do whatever you want if you put your app on your own site and use your own resources to market it. Jul 18 16:55:50 Jonathan_Eyre this will be a google play app Jul 18 16:56:05 MDijkstra: don't know how, I've only been doing this for 3 days Jul 18 16:56:10 Well, then you've got to use the Goolge Merchant API. Jul 18 16:56:29 Jonathan_Eyre will google charge me 30% every time a user cashed out from my app? Jul 18 16:56:36 or only when users pay me? Jul 18 16:56:47 Chances are better than good that Google will get a cut.. Jul 18 16:56:52 ok Jul 18 16:57:04 perhaps I ought to avoid google play then.. hmm Jul 18 16:57:31 Only if you REALLY want to do a metric ton of marketing. Jul 18 16:57:52 Jonathan_Eyre would putting the app in google play significantly reduce my marketing needs? Jul 18 16:58:12 As in, does anyone go to Google Play? Yes, they do. Jul 18 16:58:28 without google play it's going to be extremely difficult to get the app on devices Jul 18 16:58:32 true, though how simple is it to find my app... putting it in google play is one thing, but having people find it is another Jul 18 16:58:42 MDijkstra ok Jul 18 16:59:54 mysteronyx: You're new too(or dont have a) android? Jul 18 17:00:31 blade I have an android phone, ya Jul 18 17:00:48 you're new? Jul 18 17:01:05 I suppose so Jul 18 17:01:16 new in the sense that I only began app development 1 week ago Jul 18 17:01:26 new in the sense that I purchased my first android phone 6 months ago Jul 18 17:01:41 .... Jul 18 17:01:45 do you use it a lot Jul 18 17:01:46 ? Jul 18 17:01:52 sure, why? Jul 18 17:02:08 can i use a 9patch image as an activity windowBackground Jul 18 17:02:52 most(95%) long term android use, only think about putting their apps on Google Play. Not until they become professional do they ever think about using their own site. Jul 18 17:03:05 russfrank, yes Jul 18 17:03:11 you can use any drawable as a drawable Jul 18 17:03:14 blade ok Jul 18 17:03:19 Blade: i disagree Jul 18 17:03:20 They grew up using google play(or market) so their first personal option is google play Jul 18 17:03:32 who distributes an app on their own site? Jul 18 17:03:46 Here comes canadiancow|work with his deductive reasoning skills..... Jul 18 17:03:53 um let me see.... Jul 18 17:03:55 Gameloft Jul 18 17:04:03 Only certain apps though Jul 18 17:04:18 any others? Jul 18 17:04:21 then there's others too but we aint going down the list though Jul 18 17:04:35 see i would actually say the opposite Jul 18 17:04:41 tiny devs are more likely to put it on their site Jul 18 17:04:52 i ahd my app on my site until i decided i wanted it only in the market Jul 18 17:04:58 little apks go up all over the place Jul 18 17:05:01 hi Jul 18 17:05:09 or companies that have gotten the boot from g play Jul 18 17:05:09 but big companies like distribution channels they can track and monetize Jul 18 17:05:38 tiny devs normally use the market because the market is more popular, they only make their own site when they have a big brand name Jul 18 17:05:48 or they use the site and the market Jul 18 17:05:58 this is like 90% of devs Jul 18 17:06:47 and big companies have the influence to get their apps featured on the google play front page Jul 18 17:07:06 so there's not too much of a point for them to invest in their own distribution channel, usually Jul 18 17:07:12 [13:06:47] and big companies have the influence to get their apps featured on the google play front page Jul 18 17:07:13 this Jul 18 17:07:21 i installed Eclipse ADT plugin. All worked great but I've updated (using "Check for updates" option within Eclipse) and the ADT plugins seems has hided or something. It is installed but i can't create android projects and there isn't any reference to android now. Someone can help me please? Thanks in advance Jul 18 17:07:56 but they have features apps on their site though Jul 18 17:07:58 (i'm using ubuntu 12) Jul 18 17:09:16 candi and mdi: They have features apps on their site, not all. 10% cut from google is a lot when you're a big company making big money Jul 18 17:09:38 30% * Jul 18 17:09:41 I suppose I just won.... Jul 18 17:09:51 but when a significant part of your revenue is from ads... Jul 18 17:10:14 Plus, with play store they can't really tell people they have to buy the app once per device Jul 18 17:10:25 and im not convincd the average user would download an app from a website Jul 18 17:10:30 becuase you have to uncheck the danger option Jul 18 17:10:32 or check it Jul 18 17:10:34 true Jul 18 17:10:46 they're big companies Jul 18 17:10:54 there is less danger Jul 18 17:11:08 *cough amazon marketplace cough* Jul 18 17:11:12 the only company ive seen do this successfully is amazon Jul 18 17:11:27 eBay? Jul 18 17:11:42 i dont have the ebay app Jul 18 17:11:47 craigslist? Jul 18 17:11:47 i dont know anyone who has the ebay app Jul 18 17:12:00 i didnt even know there was an ebay app Jul 18 17:12:00 i thought there was one Jul 18 17:12:02 craigslist has an app? Jul 18 17:12:06 i saw it somewhere Jul 18 17:12:07 yeah Jul 18 17:12:09 I have it, but I got it from google play Jul 18 17:12:18 if i dont know it exists, you cannot argue it was a success Jul 18 17:12:54 Cus canadiancow|work is THAT important Jul 18 17:13:07 exactly Jul 18 17:13:11 thanks SimonVT Jul 18 17:13:12 we typically refer to him as "the authority" Jul 18 17:13:23 canadiancow|work: Just because you dont know a certain porn movie. Doesnt mean it didn't make millions of dollars. And you dont google play search enough Jul 18 17:13:44 i thought we were talking about stuff that isnt on google play Jul 18 17:13:44 he is also "the authority" when it comes to porn Jul 18 17:13:48 +1 Jul 18 17:13:49 :D Jul 18 17:13:53 heh Jul 18 17:14:29 Im going to be the new "the authority" around here. I'lll start watching porn again just to become "the authority" Jul 18 17:14:45 Like you ever stopped Jul 18 17:14:51 I'm not sure I like the direction that this channel is going. Jul 18 17:14:55 or maybe I like it too much. Jul 18 17:14:59 uh huh, /that's/ why you're watching it Jul 18 17:15:01 Jul 18 17:17:49 hello Jul 18 17:18:10 Actual Android question: is it acceptable/possible to use both spinners and tabs in the action bar at the same time? Jul 18 17:19:28 what does this have to do with porn? Jul 18 17:19:36 ;) Jul 18 17:20:16 that doesn't sound incredibly user friendly Jul 18 17:20:35 No, it doesn't Jul 18 17:20:57 Estel: Eh, so you want to use both tabs and list navigation? Jul 18 17:20:59 I'm just hesistant to adopt full side navigation. Jul 18 17:21:10 SimonVT: I'm just considering which option I should take Jul 18 17:21:40 there is also the possibility for top and bottom action bars, i don't know if that simplifies things at all Jul 18 17:22:25 Isn't the bottom action bar usually reserved for actions? Jul 18 17:22:35 Well, the actionbar api doesn't let you do this.. Display both at the same time Jul 18 17:22:44 Fair, thanks. Jul 18 17:22:45 You'll have to do the tabs manually probably Jul 18 17:22:55 "the authority" is back Jul 18 17:22:56 But, yeah, it doesn't sound user friendly Jul 18 17:23:16 I'm looking if it is possible an image to be inserted on a editText and what classes should i look for this. Any ideas ? Jul 18 17:23:38 hold on... you're saying you can't have both the bottom and top bars at the same time? Jul 18 17:24:14 Are there any particular suggested UI patterns? The app is mostly just master-detail but I want a nice way to navigate to some less-related features (say, a map, or a 'more information' page) Jul 18 17:24:14 I'm not talking about split action bar Jul 18 17:24:23 wongk: I think he's talking about having a Spinner and Tabs on the same bar Jul 18 17:24:32 oh Jul 18 17:24:35 i was going to say :P Jul 18 17:24:45 And yeah, the bottom action bar is only for action items Jul 18 17:25:02 can you not stick a custom view in it> Jul 18 17:25:16 can someone please help me with my problem http://stackoverflow.com/questions/11546186/looking-for-mediaplayer-progressive-audio-playback-library-with-caching Jul 18 17:25:20 Nope, wongk Jul 18 17:25:29 ah Jul 18 17:25:38 That would still be stretching the boundaries of good practice if you could, I guess. Jul 18 17:25:50 yeah Jul 18 17:25:50 But, that doesn't really make sense anyway Jul 18 17:25:56 Just put the custom view in your layout instead Jul 18 17:26:32 To what extent can action items be used to navigate, then? Jul 18 17:26:51 It seems acceptable/expected to put stuff like "Help", "Settings" as an action. Jul 18 17:27:15 Even if semantically that's probably navigation Jul 18 17:28:08 it is very common for action to launch new screens Jul 18 17:28:26 Hm, well.. I guess that depends on the context Jul 18 17:29:28 I put IMarketBillingService.aidl in src/com/android/vending/billing, but it doesn't appear in Eclipse as a generated java file Jul 18 17:29:56 I refreshed, and Eclipse is set to auto build Jul 18 17:30:06 I think I might just use action bar tabs, I think I have few enough activities Jul 18 17:30:36 Generally I'd say action items are for actions related to what's on screen.. As well as e.g. help and settings, as you mentioned Jul 18 17:30:46 If there were more, the only options seem to be Dashboard / Side Nav Jul 18 17:33:56 I have in Eclipse click on Project > "Clean..." this have delite the Generated R.java file. Wath can I do? Jul 18 17:34:10 MarcAurelio: it should be regenerated when you next build Jul 18 17:34:12 MarcAurelio: build your project. The R.java file is autogenerated on build. Jul 18 17:34:18 ninja Jul 18 17:36:50 when using HttpClient and HttpPost i want to post some korean word to a script, is there something extra i must do in order to ncode the korean word? Jul 18 17:36:52 Is there an Activity layout suited to what I am trying to achieve here (http://ejclabs.com/device-2012-07-18-183230.png) - essentially a configuration form? (there is a button below the time picker scrolled off the screen). Jul 18 17:37:42 ejcweb: it might be worth exploring styling it like the other Android settings screens and using PreferenceActivity Jul 18 17:37:47 I click on Build then have I this message: "Your project contains error(s), please flix them before running your application" the R.java file would like not Generatet. Jul 18 17:38:47 brx_: you probably need to use Unicode or UTF8 Jul 18 17:39:34 yes lov, and apparently i use a byte array since strings dont have encoding. however how can i pass that byte array nameValuePairs.add() ? Jul 18 17:39:46 byte array to* Jul 18 17:39:47 the in-app billing tutorial mentions that I should put some code in my app's service.. was I supposed to create a service prior to beginning this tutorial? Jul 18 17:40:20 since nameValuePairs.add( takes a string :s Jul 18 17:40:54 brx_: strings in java are unicode, so that's fine. Jul 18 17:41:04 hey, i have a (hopefully) quick question, how would i make my application connect to the net via a proxy server? Jul 18 17:41:06 brx_: what you need to do is make sure that the server understands that what you're sending is unicode Jul 18 17:41:09 it's an HTTP header iirc Jul 18 17:41:14 though frankly it should be happening automatically Jul 18 17:41:16 the form entity will convert them to UTF8 Jul 18 17:42:38 It's 2012, and Unicode is still hard :( Jul 18 17:42:57 lets go shopping Jul 18 17:43:17 cool, a date! Jul 18 17:43:24 Estel: I just don't know if I can display something like a TimePicker directly in a PreferenceActivity? Jul 18 17:43:41 I think I'd just end up with a list of configuration options. Jul 18 17:44:02 can someone help me with my question? http://stackoverflow.com/questions/11546186 Jul 18 17:44:02 You would, but it could be argued that that's a layout that users are more used to. Jul 18 17:44:18 If you want to do that, you'll just have to use a relativelayout and do the whole thing manually. Jul 18 17:44:36 Estel: Which is more or less what I'm doing at the moment. Jul 18 17:46:48 is there a Android application that lets you see all Broadcast intents floating around in an Android system? Jul 18 17:47:40 armenb: it's possible, but I haven't seen one Jul 18 17:47:43 when I try to open the sample billing app in Eclipse, it tells me it can't open .project. ? Jul 18 17:47:44 ejcweb: then I doubt there are any shortcuts, sorry :( Jul 18 17:47:55 I'm having a problem where I have one app's Activity calling sendBroadcast(), and another app's Service dynamically setting up a BroadcastReceiver using registerReceiver(), but the intents are never showing up on the receive side. Jul 18 17:48:39 *within* an application, my sendBroadcast() in an activity to the service's BroadcastReceiver works fine. it's just when I try going between apps. any suggestions as to what could be wrong Jul 18 17:48:43 ? Jul 18 17:49:32 all my permissions are set to defaults (i.e. I'm calling the versions of methods that leave off that argument) Jul 18 17:50:10 not sure on SOP for re-asking questions, sorry if im spamming Jul 18 17:50:20 i want to have an application conenct to the net via a proxy Jul 18 17:50:30 i know you can set a proxy server for a wireless ap Jul 18 17:50:56 but i would like this to only affect one application (mostly for ease of switching and nto having to re-enter the server info each time) Jul 18 17:51:54 Is there an easy way to integrate maven into my project or do I have to create a entirely new project and move everything over? Jul 18 17:52:11 i tried System.getProperties().put("http.proxyHost", "server") but it did not seem to have any effect Jul 18 17:53:37 edit - i did make sure to set http.proxySet to true Jul 18 18:04:11 i'm doing it! Jonathan_Eyre> chups: Yo dawg. I heard you like threads, so now you can thread inside your threading while you thread! Jul 18 18:05:10 grats Jul 18 18:06:18 chups: ... sounds like L4 Jul 18 18:06:44 SWEET Jul 18 18:06:50 sony are sending me an android smart watch!! Jul 18 18:06:53 woooot Jul 18 18:07:59 http://www.theverge.com/2012/7/17/3165237/intellectual-properly-apple-patents-disappearing-vertical-scroll-bars Jul 18 18:08:39 ... Jul 18 18:09:09 Thank you for sharing your SmartWatch app proposal with Sony Mobile. Over the past few weeks, we have received nearly a thousand proposals for SmartWatch extensions, and we are happy to announce that your idea has been singled out as one of the winners and we would therefore like to send you a SmartWatch. We see great potential in your idea and look forward to seeing your SmartWatch-enabled Jul 18 18:09:09 app/service in Google Play store. Congratulations! Jul 18 18:09:12 is there prior art for that? Jul 18 18:09:13 weeeee :D Jul 18 18:09:23 sonu: don't just PM people at random Jul 18 18:09:41 Has anybody added maven to an existing project before? Jul 18 18:10:22 canadiancow|work: of course there is Jul 18 18:10:42 is it art Jul 18 18:10:46 gaz`: congrats Jul 18 18:10:47 "" Jul 18 18:10:55 thx dude.. love free goodies Jul 18 18:11:02 nice one gaz` Jul 18 18:11:42 they also say they can promote any cool android apps for me Jul 18 18:11:55 altho i dont yet have a proper killer android app that is on my account Jul 18 18:12:30 i wonder if the playbook thing is still on too, i qualified but there was a bug i had to fix and not had time, i guess the offer has expired now Jul 18 18:14:45 sonu: seriously, stop it Jul 18 18:15:18 thanks :) Jul 18 18:15:24 haha Jul 18 18:15:28 guys, any help with proxy? Jul 18 18:15:30 except that probably won't make them leave me alone Jul 18 18:15:37 :( Jul 18 18:15:40 I should be Zalan Jul 18 18:15:43 just /ignore him :P Jul 18 18:15:44 you know /ignore? Jul 18 18:15:47 then idiots won't click me Jul 18 18:15:48 what was he messaging you about Jul 18 18:15:51 haha, yes :P Jul 18 18:16:04 he picked me at random to help him with android stuff Jul 18 18:16:09 hehe Jul 18 18:16:14 entirely unsolicited Jul 18 18:16:23 it's like winning the lottery Jul 18 18:16:25 and then when i called him out on it he replied back to me in the PM Jul 18 18:16:46 haha Jul 18 18:16:48 the fail lottery Jul 18 18:17:19 thanks Jonathan_Eyre! Jul 18 18:17:24 thanks for the help guys Jul 18 18:17:25 xD Jul 18 18:17:38 posting this on facebook lol Jul 18 18:18:54 i don't believe in fascebook Jul 18 18:19:02 or facebook! Jul 18 18:19:06 and ive just got a new job, this has got to be my day Jul 18 18:19:28 and payday in 2 days.. my oh my Jul 18 18:19:32 where can i buy gaz stock? seems to be doing fairly well Jul 18 18:20:09 hahaha Jul 18 18:20:16 its been down for yrs dude :) Jul 18 18:20:20 but yeh! Jul 18 18:20:25 * gaz` is excited Jul 18 18:20:37 now all i need is for someone to fund my game heh Jul 18 18:20:49 i'll ive you $1 for 51% Jul 18 18:20:56 hehe Jul 18 18:21:08 http://www.facebook.com/groups/339892436056451/ Jul 18 18:21:19 Let's see... Gaz has a job, and needs someone else to fund his game... Jul 18 18:21:50 thats true, in 3 or 4 months ill have enough to fund it myself Jul 18 18:21:57 its only art that i need to fund really Jul 18 18:22:12 damn expensive Jul 18 18:22:29 dont get me started Jul 18 18:22:35 anyone want to design me a logo and some icons? :) Jul 18 18:22:35 Is there a way to determine button id without findViewByid()? Jul 18 18:22:35 Just do it yourself in stick figures. Jul 18 18:22:44 renxx: wat Jul 18 18:22:51 findviewbyid does not determine the id Jul 18 18:22:52 canadiancow|work: http://code.google.com/p/android-ui-utils/ :P Jul 18 18:22:58 wongk: lol Jul 18 18:23:04 Jonathan_Eyre, hehe i could i guess but its hard to visualise and do it right without rel gfx Jul 18 18:23:04 i need an image to upload for it to generate icons :P Jul 18 18:23:20 complain compail! Jul 18 18:23:28 er, yeah Jul 18 18:24:59 http://www.androidpolice.com/2012/07/18/uk-judge-orders-apple-to-publicly-state-on-its-website-that-samsung-didnt-copy-the-ipad/ Jul 18 18:25:00 lol Jul 18 18:25:24 <3 UK Jul 18 18:25:45 that is awesome Jul 18 18:27:56 I'm saving files in the internal memory of the android, but I can not visualize them by explorer windows ... anyone ever seen this? Jul 18 18:28:28 what explorer window? Jul 18 18:29:12 for example if i have button = (Button) findViewById(R.id.buttons); button.setOnClickListener(new ActionHandler()); -> is there a way to reference button to that button which was clicked on runtime Jul 18 18:29:12 I think he means that when he plugs it into his computer and mounts it, the file that's visible on-device is not visible from the PC Jul 18 18:29:25 wongk - yes... Jul 18 18:30:34 the PC mounts the device's external storage Jul 18 18:31:04 could you imagine it mounting the internal storage? android wouldn't have access to any storage Jul 18 18:33:04 is that I'm working with a tablet 16gb of memory, but if I get the file explorer by the android and save some other folder I can see the windows explorer Jul 18 18:33:41 only after I copy the file .... Jul 18 18:33:55 renxx: the onClick method passes a view Jul 18 18:34:03 cesarbastos: if your device supports MTP then it should map internal and external storage to windows Jul 18 18:34:04 from which you can call getId() Jul 18 18:36:20 Napam|afk: right, the more I find strange is that I can preview the file in windows explorer after I copy the android to another folder that I saved is not the first ... Jul 18 18:42:58 Whats the latests version of android sdk version 8? 2.2.? Jul 18 18:44:36 s/latests // HTH Jul 18 18:44:43 (yes, API 8 is Android 2.2) Jul 18 18:44:51 http://developer.android.com/about/dashboards/index.html Jul 18 18:45:11 and http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels for the full list Jul 18 18:45:28 Are there any good options if I don't wanna use the ActionBarSherlock for backward compatibility of the ActionBar API? Jul 18 18:45:39 for billing, there's this line: byte[] decodedKey = Base64.decode(encodedPublicKey) ... I get an error saying decode needs (String, Int).. is the error on my end? Jul 18 18:45:49 ctate: thanks. I knew it was 2.2, but just realized I dont need the patch version for what I am doing. Jul 18 18:51:20 for billing, there's this line: byte[] decodedKey = Base64.decode(encodedPublicKey) ... I get an error saying "The method decode(String, int) in the type Base64 is not applicable for the arguments (String)" ... any ideas? Jul 18 18:52:48 lyuyang: actionbarsherlock is the best Jul 18 18:53:08 mysteronyx: http://developer.android.com/reference/android/util/Base64.html#decode%28java.lang.String,%20int%29 Jul 18 18:53:14 mysteronyx: there is no decode(String) method Jul 18 18:53:22 mysteronyx: that method takes two args Jul 18 18:53:23 f2prateek: I understand that but I'd prefer not use extras Jul 18 18:54:03 extras? Jul 18 18:54:26 wongk nah my problem was I was importing android.base64 rather than the base64.java in my project Jul 18 18:54:47 oh, well the android version takes two args :P Jul 18 18:54:56 2args2furious Jul 18 18:55:04 heh Jul 18 18:56:03 Why did android change everything w/ this recent update of the SDK? Jul 18 18:56:13 is there anything preventing android apps from communicating over OSC on the same device? Jul 18 18:56:14 *SDK manager Jul 18 18:56:17 for fun? Jul 18 18:56:21 erm UDP Jul 18 18:56:36 (john_doe_jr: out of curiosity, what was changed?) Jul 18 18:57:21 luyang: well, I used to go into eclipse in the outline view and be able to add tablerows and tables etc..now it just shows that you can add element names...that is horrible Jul 18 18:57:23 john_doe_jr: which particular everything? Jul 18 18:57:37 wow new gimp really sucks Jul 18 18:57:38 oh, not android then; the layout design tool? Jul 18 18:57:45 ctate: yes Jul 18 18:57:50 xorgate: so, parity with previous releases Jul 18 18:57:58 john_doe_jr: I see Jul 18 18:57:59 add attribute and add elements are the only options now... Jul 18 18:58:20 that is horrible...any ideas why they did that? I was very effect w/ that outline view Jul 18 18:58:48 is there a way to integreate an application with the android system lock? so that the user heosnt have to rememebr a new pin for an app. Jul 18 18:58:56 *doesnt Jul 18 18:59:41 no, apps can't get at the lock pattern Jul 18 19:00:12 does anyone know how to tell if my phone has hsp/hfp/a2dp profiles available? Jul 18 19:00:28 is it running android? Jul 18 19:00:31 does it have bluetooth? Jul 18 19:00:33 then it does Jul 18 19:00:45 i dont actually want to know the pattern, basically something like trigger login>the andorid system authenticates the user> come back to app Jul 18 19:01:47 canadiancow|work: fun Jul 18 19:01:54 f2prateek: SharedPreferences? Jul 18 19:03:15 SharedPreferences? Jul 18 19:03:24 how would that work Jul 18 19:03:55 ctate previous one was somewhat ok.. Jul 18 19:15:29 hi all, n00bie here.. I'm trying to get a sound to play when the screen is pressed, and stop playing when the user releases the screen.. OnClick triggers the event upon releasing, and onTouch runs every frame.. Is there a onTouchDown feature or something alike? A function that is only triggered for the frame the touch begins Jul 18 19:15:50 hi.. what are best solutions for writing route on google maps? im using kml but its really heavy Jul 18 19:16:19 ThomQ: look at the touch event. Jul 18 19:16:25 see if it's a down event or an up event Jul 18 19:16:50 FrEaKmAn_: Roll your own? Jul 18 19:17:17 lov, i mean.. somebody probably already did it.. friend mentioned i should use json Jul 18 19:17:27 lov: I was.. http://developer.android.com/reference/android/view/View.OnTouchListener.html , not much there Jul 18 19:17:39 although its quite possible i'm looking in the wrong place :D Jul 18 19:17:56 see that MotionEvent you get as an arg? Jul 18 19:18:26 http://developer.android.com/reference/android/view/MotionEvent.html#getAction() Jul 18 19:18:42 There's a plethora of information in the documentation, if you're just willing to look. Jul 18 19:19:21 FrEaKmAn_: it's possible. the Google Maps apis are kind of neglected, however. Jul 18 19:19:22 ahh lov, thanks. That's what I was looking for Jul 18 19:25:26 ok, just to get it right: I use getActionMasked(ACTION_DOWN) to get an INT with the location pressed, and then check if INT > 0 to know when pressing has started? Jul 18 19:25:48 what is the terminology for when an app is put into the background by hitting the device's back button? Jul 18 19:25:51 and then getActionMasked(ACTION_CANCEL) to know when it stopped.. Jul 18 19:25:59 ThomQ: no Jul 18 19:26:03 you look at the link I gave you Jul 18 19:26:06 which was for getAction Jul 18 19:26:37 unless you're worried about multitouch, you can just look at the down/up flags Jul 18 19:26:42 anyone else have problems with outdated versions of APKs seeming to hang around super long on their development devices while debuggin? Jul 18 19:27:09 well, ok, that's probably a reasonable concern so yeah, feel free to use getActionMasked or something Jul 18 19:27:24 my graphic artist doesnt understand there's an "h" in "xhdpi" Jul 18 19:27:28 Chrome wasn't linking to getAction Jul 18 19:27:41 anyway getActionMasked doesn't take any arguments, but it'll give you DOWN or UP events Jul 18 19:30:34 So if(event.getAction()==MotionEvent.ACTION_DOWN) { //Do Work } right? Jul 18 19:31:23 no Jul 18 19:31:32 getActionMasked Jul 18 19:31:34 use getActionMasked if it's available, or manually & with the mask Jul 18 19:31:53 when did masked come in? Jul 18 19:32:01 :P lov was just telling me not too Jul 18 19:32:13 he did? Jul 18 19:33:13 yeah, unless I was worried about multitask (21:26) Jul 18 19:33:14 ok, so one last try... Anybody installed maven into their project with the android-maven-plugin? Struggling over here.. Jul 18 19:33:47 I made a mistake Jul 18 19:33:48 ThomQ: he said it would give you UP and DOWN events, which is the question canadiancow|work and SimonVT were responding to Jul 18 19:33:54 ThomQ: call getActionMasked(). Use those events. Jul 18 19:35:37 le split Jul 18 19:37:06 There was a split in every channel I was in. That's when it occured to me that the problem could be me. Jul 18 19:38:29 ahh so I should use getActionMasked Jul 18 19:39:34 What gave it away? Jul 18 19:40:11 lov mentioning it before the big exodus Jul 18 19:40:23 Hi. I'm beginning to develop my first app. It is correct, that you create an activity for every task (UI?)? How do you manage global data that is shared by multiple acitivities? Is there some global model/controller? Jul 18 19:40:45 soa2ii: http://developer.android.com/guide/topics/data/data-storage.html Jul 18 19:41:03 So, I'm almost there.. I'm having some problem with the ontouchlistener.. package qsim.tommygun; Jul 18 19:41:03 import android.app.Activity; Jul 18 19:41:03 import android.os.Bundle; Jul 18 19:41:03 import android.view.MotionEvent; Jul 18 19:41:04 import android.view.View; Jul 18 19:41:04 import android.view.View.OnClickListener; Jul 18 19:41:05 import android.widget.Button; Jul 18 19:41:05 public class MainActivity extends Activity { Jul 18 19:41:06 private SoundManager mSoundManager; Jul 18 19:41:06 /** Called when the activity is first created. */ Jul 18 19:41:09 soa2ii, yes each "Screen" is its own activity, i ngeneral Jul 18 19:41:11 ow shit.. I did Not mean to do that Jul 18 19:41:14 doin it wrong Jul 18 19:41:25 Hydra IRC automaticly sends anything I copy paste into here Jul 18 19:41:28 SimonVT: Will read that Jul 18 19:41:29 globals are generally a bad idea Jul 18 19:41:33 goddamnit Jul 18 19:41:54 ThomQ: use another IRC client then. Jul 18 19:42:01 hi Jul 18 19:42:04 soa2ii: You can use a variety of things. Jul 18 19:42:09 rootlicker-work: But my app is going to have data that is shared between activities. I'll read the data-storage stuff from SimonVT Jul 18 19:42:09 why doesn't the following work: Jul 18 19:42:09 to share data across activities, you can use storage as suggested by SimonVT , or you can look into static singletons, or implementing a subclass of the Application class Jul 18 19:42:17 db.query("entry", columns, "strftime('%Y-%m',date) = '?s-?s'", selectionArgs, null, null, null); Jul 18 19:42:22 Services, data storage (Shared Preferences, SQLite databases, files), static variables, etc Jul 18 19:42:29 where: String[] selectionArgs = new String[] { year.toString(), month.toString() }; Jul 18 19:42:32 lov: I just switched, 3 days ago :P Jul 18 19:42:33 also, look into Intent extras, to send values between activities Jul 18 19:42:36 evelyette: I don't know, why doesn't it? Jul 18 19:42:48 but I will check out some others.. Jul 18 19:42:50 lov, Caused by: android.database.sqlite.SQLiteException: bind or column index out of range: handle 0x82b2110 Jul 18 19:42:51 datastorage is not appropriate unless yuo need to store the data Jul 18 19:43:22 do I have to publish my app before I can create in-app purchasable items in the developer console? Jul 18 19:43:44 Anyway, im having trouble at line 20, setting up the ontouchlistener: http://pastebin.com/2X84t5be Jul 18 19:43:48 rootlicker-work: The problem is, that the acitivities will be "clients" to some global valid data-stuff … so maybe the SQLite thing is nice Jul 18 19:43:53 it can't be resolved to a type Jul 18 19:44:41 ThomQ, unfortunately my work blocks pastebin, try gist on github n i can look there Jul 18 19:44:44 lov, any idea ? Jul 18 19:45:25 Hm … looks like the goal of those storage APIs is persistent data … I don't need to store the data though … Jul 18 19:45:39 evelyette: nope. Ask on stackoverflow Jul 18 19:45:43 nod. what sort of data you talking about soa2ii ? Jul 18 19:45:47 soa2ii: use static variables? Jul 18 19:45:51 line 22: https://gist.github.com/3138398 Jul 18 19:45:54 tables? objects? small strings? Jul 18 19:45:58 soa2ii: make a class that's a global repository of data Jul 18 19:46:23 yeah if it's not big structured data i'd look at static singleton pattern, especially if yo udon't need to store or transmit it Jul 18 19:47:09 rootlicker-work: I'm going to tke pictures, do some openCV classification stuff and store those values to some global model. So other activities can edit those values and store thom on a server and so on … Jul 18 19:47:16 ThomQ: uh.... Jul 18 19:47:16 if it's just some small values, look at intent extras unless you have a need for centralizing it, like concurrency and such Jul 18 19:47:23 ThomQ: step 0 is to learn java :( Jul 18 19:47:57 ThomQ: I'm kind of guessing I know what you're trying to do on line 22, but you're doing it in a way that makes no sense, and implies that you don't really know java at all. Jul 18 19:49:58 All i did was change the onClicklistener to a onTouchlistener Jul 18 19:50:25 lol err yeah. findViewById returns a View object, and you set a listener with setOnTouchListener (OnTouchListener ) - it's a method, thus starts lowercase Jul 18 19:50:26 it works with an onClicklistener though Jul 18 19:50:44 generally starting with a capital implies it's a Class, not an object of that Class Jul 18 19:52:43 I have a strange problem, I'm updating an ImageView with new drawable, it's all good in activity, but when I do it in dialog, ImageView doesn't update until I close and show that dialog again. why is this happening? Jul 18 19:53:13 I'm updating the drawable from the UI thread in the onPrepareDialog() method Jul 18 19:53:53 does it automatically invalidate the Dialog? Jul 18 19:53:57 stiggpwnz: no idea. but maybe invalidate() is useful? Jul 18 19:54:12 so on line 22 you would want findViewById(...).setOnTouchListener( new OnTouchListener() { ... Jul 18 19:54:17 okok, so findViewById(android.R.id.content).setOnTouchListener (new OnTouchListener() is correct class/method wise? Jul 18 19:54:32 ha, you beat me to it Jul 18 19:54:37 I don't know what invalidate does, let me google it, thanks for pointing that out for me Jul 18 19:55:44 yeah, you're calling the method View.setOnTouchListener() which takes an object of type OnTouchListener as its parameter - in this case, you are providing an anonymous inline implementation of the OnTouchListener class, as the parameter Jul 18 19:56:15 on line 32, you have } Jul 18 19:56:19 needs to be } ); Jul 18 19:56:43 your missing one more curly brace } before it also Jul 18 19:57:23 the one on line 30 closes your if block. you need one to close the method block of public boolean onTouch(...) { Jul 18 19:57:45 and then the one on line 32 closes the new OnTouchListener() { ... block Jul 18 19:57:53 yeah I was struggling with them as well. I've only be doing android / real java stuff for 3 days Jul 18 19:57:56 then you need ); to close the call to setOnTouchListener(); Jul 18 19:58:31 http://docs.oracle.com/javase/tutorial/ Jul 18 19:58:39 is it possible to print a query that SQlitedatabase query() function call makes ? Jul 18 19:59:55 it's the listener that's messing me up:P I'm just used to { } 's Jul 18 20:01:13 do I have to publish my app before I can create in-app purchasable items in the developer console? Jul 18 20:01:18 danharibo, tapas calling problem is, when I first show the dialog, it call the function that takes the image from internet or cacheDir in another thread, and then sets the drawable to the imageView, but the imageView doesn't update until I dismiss and show the dialog again, but it updates properly in another dialog with listview, and in the activity itself Jul 18 20:01:45 yeah, but you have to see that you're effectively enclosing a { } block into a method call, ie. setOnTouchListener(); -> setOnTouchListener (new OnTouchListener() { } ); Jul 18 20:06:38 Yeah, I see the logic behind it, but I'm stuck with the last }.. https://gist.github.com/gists/3138521/edit Jul 18 20:07:16 before the }); and after, both give errors / trip up the listener Jul 18 20:07:20 What kind of accuracy does location.getAccuracy() return? I assume horizontal accuracy? Jul 18 20:07:26 here's what I don't get: if I can't add in-app products before uploading my app, how can I program in the product ids into the app if I haven't created the products yet? Jul 18 20:09:06 chiuki: yes, effectively Jul 18 20:09:46 technically if you have a 3d fix there'd be vertical accuracy as well but I'm assuming that the OEM will just be passing horizontal accuracy since that's all the user cares for Jul 18 20:10:02 lov: thx Jul 18 20:12:23 What's the difference between the stuff in the android.app namespace vs the stuff in the android.support.v4.app namespace? Jul 18 20:13:09 murz: things in android.support are compatibility library implementations. Jul 18 20:13:25 If you're using the compatibility library, you'd be using those classes, since the ones in android.app may not exist on the target device. Jul 18 20:13:46 is that recommended? Jul 18 20:13:47 murz, android.support.v4.app is code from android v4 compatibility library, while android.app is the actuall OS API Jul 18 20:13:48 s Jul 18 20:14:00 (using the compatibility library) Jul 18 20:14:08 those APIs probably aren't available in older Androids, hence the compatibility library Jul 18 20:14:13 murz: yes, absolutely, if you're going to be targeting api levels lower than what you want to use. Jul 18 20:14:13 my fragments onDestroyView is getting called as soon as onCreateView returns…cannot figure out why... Jul 18 20:14:25 e.g. if you want to use fragments, but you want to support devices older than 3.0, you must use the compat library Jul 18 20:14:36 got it. thanks Jul 18 20:14:42 note that you don't NEED to use the compat library to support devices older than your target, but it's generally a good idea. Jul 18 20:15:10 the compat libraries are just meant to backport things considered so important for a modern UX on android that a special effort was made to provide implementations for developers Jul 18 20:19:03 good afternoon Jul 18 20:19:18 I exported the tic tac toe example and uploaded to my web site Jul 18 20:19:31 then downloaded to my phone and installed, it worked great Jul 18 20:20:00 hmmm. Ive been over and over it again, and I don't have any syntax errors : https://gist.github.com/3138521 Jul 18 20:20:28 however, OnTouchListener can't be resolved to a type.. Jul 18 20:22:08 ThomQ, where are you importing it? Jul 18 20:22:13 can an android app support two screens such as in presentation mode, where one screen has notes and the other has the presentation? Jul 18 20:26:15 ThomQ, one sec Jul 18 20:26:20 boss called me in for a quick talk Jul 18 20:27:12 Mavrik: Thanks. Automaticly importing seems to fail for me, from time to time Jul 18 20:27:27 as does ctrl c / ctrl v.. Eclipse is a bit buggy Jul 18 20:28:10 caverdude: congrats Jul 18 20:28:23 ThomQ: that doesn't really happen for me. Jul 18 20:28:32 ThomQ: ctrl-shift-o in eclipse will automatically organize imports. Jul 18 20:28:33 lov, thanks Jul 18 20:28:46 Also, ctrl-space will auto-import Jul 18 20:29:02 also, you can highlight errors, and ctrl-1 for solutions Jul 18 20:30:08 ctrl+shift+o does auto import Jul 18 20:30:19 how do i setup a device in AVD manager for tablets, like the new nexus 7 Jul 18 20:30:26 ctrl-space is line completion/suggestion Jul 18 20:30:27 so I can test my 2pane setup Jul 18 20:30:29 yeah i restarted eclipse, it works for me too, now Jul 18 20:30:29 iirc Jul 18 20:30:44 I tried built-in: WXGA800x7in Jul 18 20:30:46 no luck Jul 18 20:30:52 joikus depends what you mean Jul 18 20:31:10 if you wan to mimic a particular device you need to download the skin files for it, assuming they are available somewhere Jul 18 20:31:13 lov: What dev environment do you have? IDEs,VC,OS... Jul 18 20:31:21 this guy told me how to get rid of the not being able to shortcut copy.. I had to clean the project, and then do some two or three more steps... Jul 18 20:31:27 Restarting is another way Jul 18 20:31:42 rootlicker-work: ok I guess what I really want for now is just a skin for 7inch+ tablets Jul 18 20:32:23 ThomQ: You can always just delete the eclipse database files in AppData and it will usually not need a restart. Jul 18 20:32:23 to test the 2 pane layout Jul 18 20:32:38 where can I find a template app that simply draws a few lines on a canvas? Jul 18 20:32:43 ok so you just want to generically have a 7inch emulator screen? choose the right resolution, and platform version Jul 18 20:33:08 * caverdude googles Jul 18 20:33:16 I see Jul 18 20:33:18 launch the emulator manually from avd, not from an eclipse run configuration, and you should have an option to "scale to actual size" or something like that Jul 18 20:33:27 hmm.. getActionMasked gives me this error, when trying to run: Call requires API level 8 (current min is 3): , but getAction works for me Jul 18 20:33:46 API level 8 corresponds to a certain version of android I presume? Jul 18 20:33:53 ThomQ, change your minsdk to 8 in your manifest Jul 18 20:34:16 OR, read up on compatibility library Jul 18 20:34:45 ThomQ: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels Jul 18 20:34:47 rootlicker-work, ok I see screen size 3in, monitor dpi 96 Jul 18 20:34:50 I should change those Jul 18 20:34:50 yeah, reading up now :) API 8 is 2.2., had min set to 1.5 Jul 18 20:35:02 yeah joikus, change screen size to 7 inch Jul 18 20:35:09 ahh thanks ryanm, even a more complete list Jul 18 20:35:13 dpi 96 is fine? Jul 18 20:35:44 joikus, should be, but you can go to your OS display settings (in control panel if your in windows) and go to monitor settings and verify your dpi Jul 18 20:36:10 i'm not sure if the number there is a default or if it's an auto detect, but 96 is common afaik Jul 18 20:37:31 Is this a good place to ask a dev question about audio? I am trying to obtain an InputStream for a song purchased on google play. Anyone know how to do that? Jul 18 20:38:16 I'm using getContentResolver().getInputStream(contenturi) but this results in a "FileNotFoundException". The "contenturi" I am using was obtained from a previous query to the content provider: com.google.android.music.MusicContent/audio. This query returned a row for each song I had purchased from google play, as well as songs that I had on my sdcard, which were not purchased from google play. Jul 18 20:38:42 hmm someone is portscanning this channel again :P Jul 18 20:39:14 anyone know audio well on Android? Jul 18 20:41:34 Voting, better to aks your question than to ask to ask. Although it relates to audio, it's more directly an issue of streaming content Jul 18 20:43:08 rootlicker-work: got any ideas? I am trying to obtain an InputStream for a song purchased on google play... Jul 18 20:43:16 my assumption is that google play requires some sort of authorization to access purchased material Jul 18 20:43:41 I'm having one issue with in-app billing. I've made it so people can purchase items, and it charges their account. It then takes me back to my app. Where in the code do I start from after the item has been purchased? Jul 18 20:44:14 Anyone know why my notification RemoteView ImageView isn't updating from the callback thread? Jul 18 20:44:52 hwrd|work, it may be required to do it on UI thread Jul 18 20:45:35 Sigh. I figured that may be the case. Which is ridiculous because I have a service that deals with posting the notification… Jul 18 20:46:41 by default a service runs in the same thread as the rest of the application Jul 18 20:53:26 after someone buys an in-app item, how do I tell them which item they bought? Jul 18 20:53:56 after they buy an item, I want it to say, "congratulations on buying x".. but how do figure out what x is? Jul 18 20:55:38 ... spying on people, are we? :) Jul 18 20:56:19 You really need to read up on the Google API. It has IDs for the transactions, that you need to keep track of. It's said all over the place that matching the user's purchase items to the items in your database is completely the developer's job. Jul 18 21:01:12 anyone using s2 here? Jul 18 21:02:16 twittergal: #android Jul 18 21:02:45 hello? Jul 18 21:02:50 Jonathan_Eyre I've read through some of it, but it gets really nuanced Jul 18 21:03:08 for showing cofnrimation Jul 18 21:03:18 Can anyone help with an issue SSL certificate that I have on the WebvIew? Jul 18 21:03:23 i think use CONFIRM_NOTIFICATION Jul 18 21:04:08 I'm using onReceivedSslError from WebViewClient but it seem doest work for self signed certificate Jul 18 21:04:09 me! Jul 18 21:04:16 i have an s2 twittergal Jul 18 21:04:48 I have no idea what is going on, the battery icon on the status bar just keep blinking NON STOP! I have full wipe and install different roms. but that didn't stop the battery from blinking, I tried to pull out the battery and place it back, it stopped blinking for a few minutes then it start off blinking again. Jul 18 21:04:49 Anyone have any idea if my device is damaged or it's due to a faulty battery? and does blinking battery at the status bar indicates? faulty battery? Jul 18 21:06:57 anyone? Jul 18 21:09:20 Can anyone help with an issue SSL certificate that I have on the WebvIew? Jul 18 21:11:02 what's the diff between minSdkVersion and targetSdkVersion? Jul 18 21:11:15 min is minmum requried to run the application Jul 18 21:11:19 err, I guess the meaning of minSdkVersion is pretty clear, so I guess my question is what is the point of targetSdkVersion? Jul 18 21:11:20 target is the one you;re desigin for Jul 18 21:11:26 *designing Jul 18 21:11:45 why does that need to be declared? Does it show up in the Play Store or something? Jul 18 21:12:02 no its used by he android platform Jul 18 21:12:13 like what happens if the user's device is > minSdkVersion but < targetSdkVersion? nothing? Jul 18 21:12:29 it will still work Jul 18 21:12:36 as long as >minSDK Jul 18 21:12:53 so what is the effect of setting targetSDK? Jul 18 21:12:59 target allows you to use newer APIs Jul 18 21:13:05 eg Jul 18 21:13:10 the new notification in jellybean Jul 18 21:13:17 you would target level 16 Jul 18 21:13:33 but keep a check in your code, that checks if the device is running jellybean Jul 18 21:13:48 if not, then the code should use the old notifcation Jul 18 21:13:55 hmm ok Jul 18 21:13:59 and if its runnig jellybean, use the hte new notification Jul 18 21:14:12 if you oinly set the minimum Jul 18 21:14:23 you cant use the new notification api Jul 18 21:15:16 is there a way to create array of (anotherActivity.class) Objects? Jul 18 21:15:45 an array of activites? Jul 18 21:15:46 renxx, all the same class? Jul 18 21:15:53 you want an array of ACTIVITY? Jul 18 21:15:56 yes Jul 18 21:15:56 the simplistic answer is "of course"; the longer answer is "oh my cthulhu that sounds like a horrific thing to do what on earth or under sea are you trying to accomplish?!" Jul 18 21:16:06 for a class it would just be ArrayList Jul 18 21:16:12 for example Jul 18 21:16:14 Intent intent = new Intent(context, anotherActivity.class); Jul 18 21:16:17 anotherAvitity.class[] array Jul 18 21:16:19 ? Jul 18 21:16:57 f2prateek: not of Activity; of Activity *Class* object instances. Jul 18 21:17:02 you could have a List> Jul 18 21:17:22 or i guess a Class[] Jul 18 21:17:24 anotherActivity.class[] myArray = new anotherAcitivty.class[size]; Jul 18 21:17:43 anotherActivity.class is an objcet, not a type Jul 18 21:17:49 the question "why" is still foremost in myh mind here. Jul 18 21:17:53 or ArrayList myArray = newArrayList(); Jul 18 21:18:07 oh yeah Jul 18 21:18:13 good point canadiancow Jul 18 21:18:46 ctate i was thinking it might hav eto do with http://developer.android.com/reference/android/app/Activity.html#startActivities(android.content.Intent[]) Jul 18 21:18:50 but that takes an array of Intents Jul 18 21:19:11 although if you want to build those itnents dynamically, you could reference the class objects of the activities you need in a static array Jul 18 21:19:15 all i can think of is a launcher app Jul 18 21:19:40 launch the Nth thing => startActivity(Intent.ACTION_MAIN, sGlobalTableOfActivityClasses[n]); Jul 18 21:19:50 I'm trying to load an url in a webView that has self-signed certificate but it doesn't load the url as I expected Jul 18 21:20:09 Does anyone can help me on this? Jul 18 21:21:54 ctate: oh my bad there Jul 18 21:23:26 yeah i can't think of too many cases for it Jul 18 21:23:37 ty canadiancow Jul 18 21:23:40 would an array of Class[] not work Jul 18 21:24:11 Class[] myClasses = new Class[size Jul 18 21:24:13 ]; Jul 18 21:24:28 :( Jul 18 21:25:07 err, damnit. any activity, or any class's .class object should be of type Class - the type of it the object/class it's from will be reflected i nthe value of the .class object, not the type Jul 18 21:25:36 anelrh26: It's pretty easy to take care of. Jul 18 21:26:30 i.e. (ActivityA.class.class == ActivityB.class.class ) always returns true, yeah? Jul 18 21:26:41 how? because I'm setting this onReceivedSslError in the WebViewClient Jul 18 21:26:49 but doesn't works Jul 18 21:26:52 rootlicker-work o_O Jul 18 21:26:57 anelrh26: Just override onReceivedSslError in your WebViewClient. Jul 18 21:26:59 it...quite likely does Jul 18 21:27:01 but... why Jul 18 21:27:12 Did you say handler.proceed()? Jul 18 21:27:21 yes Jul 18 21:27:37 and also with handler.cancel Jul 18 21:27:50 Do you log it, and you know your override fired? Jul 18 21:27:54 canadiancow|work, i'm just pointing out that, assuming such is true, renxx can simply use an array (or collection) of Class objects Jul 18 21:29:04 rather than Class, for whatever it is he/she is doing Jul 18 21:29:25 but the Intent constructor needs a Class Jul 18 21:29:25 I receive the ssl error in the method and I can see the error, but the handler.proceed doest do anything because then the webView says that the page is no available Jul 18 21:30:19 Class [] array worked fine Jul 18 21:30:31 hmm.. yeah i guess you get compile time "type safety" doing it that way, canadiancow|work Jul 18 21:31:46 i guess.. does a Class object encapsulate it's supertypes ? Jul 18 21:32:28 what happens if you give an intent a non-activity class, does it check ti compile time or does it blow up runtime? Jul 18 21:32:47 you cant give it a non-activity class Jul 18 21:32:57 it requires a Class Jul 18 21:33:02 so ti's checked compile time Jul 18 21:33:24 implying then that a Class object encapsulates super types Jul 18 21:33:30 :/ Jul 18 21:34:17 I testing app-billing, and it's saying signature verification failed. However, I put my publisher account public key, and I'm purchasing an android.test.purchased item... don't know why it would give me a sig verification error Jul 18 21:34:38 Jonathan_Eyre? Jul 18 21:39:51 I'm trying to play music from the google play store using audiotracks. I am trying to obtain an InputStream for a song purchased on google play, using `getContentResolver().getInputStream(contenturi)` but this results in a `"FileNotFoundException"`. The "contenturi" I am using was obtained from a previous query to the content provider: com.google.android.music.MusicContent/audio. This query returned a row for each song I had purchased Jul 18 21:39:51 `content://com.google.android.music.MusicContent/audio/10.` When this url refered to a file on my sdcard I was able to obtain an inputstream for it. However when it refers to a song purchased from google play, the request for an input stream fails with a FileNotFoundException. Jul 18 21:39:51 The standard android media player seems to call "openAssetFileDescriptor" on the content resolver, rather than "getInputStream", however when I tried that, it also failed with a FileNotFoundException Jul 18 21:39:51 for songs from google play - but worked for songs on my sdcard. Jul 18 21:47:38 sorry voting i wish i could help you but i just dont' have experience with that and i have to go. keep asking and look into the docs, i'm sure theres' a way Jul 18 21:48:06 thanks, rootlicker-work! Jul 18 21:51:04 is it possible to store data in a json format on the android sqlite? Jul 18 21:51:37 like any other string, JSON can be stored in sqlite Jul 18 21:51:39 andreluiz: just create a text column and dump the json in there? Jul 18 21:52:22 ahm, I dont know much about database Jul 18 21:52:25 the only one i've used is mongodb Jul 18 21:52:38 and thats something like json Jul 18 21:52:58 you won't have features in SQLite for dealing directly with JSON Jul 18 21:53:09 but there's nothing stopping you from _storing_ it there Jul 18 21:54:19 i see Jul 18 21:54:20 thanks Jul 18 21:57:49 yeah umm Jul 18 21:58:01 you could store your whole json object as a string in one sqlite field Jul 18 21:58:33 but if you want to MAP the data into meaningful fields, i don't know of a tool for that but there may be one, or you could right it and share to the community Jul 18 22:00:20 http://stackoverflow.com/questions/3616676/how-to-draw-a-line-in-android have they left out talk about some changes to the xml I need to do for this to work? Jul 18 22:00:28 or do I just added the classes and run? Jul 18 22:00:35 that may get tricky for nested objects of course Jul 18 22:01:07 I think they are assuming the reader knows to do more than merely add these two classes to the app Jul 18 22:01:25 well then u knwo what ou need to do Jul 18 22:02:20 I'm having trouble figuring out why my signature verification is failing. I put the correct public key into the base64EncodedPublicKey variable. I'm now testing the in-app billing by running via Eclipse. Jul 18 22:02:58 http://developer.android.com/training/custom-views/index.html Jul 18 22:03:03 i just turned on a g-slate that hasn't been turned on in a while and i am trying to update the system. it says the system is up to date and last checked on 12/31/2008. is there a way to force the tablet to check for an update again? Jul 18 22:03:07 Guess they are assuming the reader searches the dev site Jul 18 22:06:43 caverdude: it seems you don't need xml for it, the setContentView sets the custom view Jul 18 22:06:50 is it possible to test in-app billing by compiling via Eclipse, or do I have to send the apk to Google? Jul 18 22:07:23 and StartDraw is just your main activity that gets launched by laucher Jul 18 22:07:31 canvs2321, ok thanks Jul 18 22:09:35 nobody? on updating my gslate? Jul 18 22:12:46 how long did it take you guys to master android app programming? Jul 18 22:12:53 neekers: this isn't really the right channel for that, as it's not a development question. you can try going to settings > about tablet > System updates > check now, though. Jul 18 22:15:18 ryanmn: yes, i know. i hung out here for 2 years. there is no "check now". i'll go to #android. thanks Jul 18 22:15:39 renxx: you'll never be a "master", java is too vast Jul 18 22:15:56 renxx: but you can be building decent apps after a month or so Jul 18 22:16:07 renxx: if you follow the right tutorials/books Jul 18 22:18:00 ok well nothing I'm doing is making these lines show up Jul 18 22:18:02 okay :) Jul 18 22:18:03 great Jul 18 22:18:50 definely not as simple as throwinng those classes in the app and running it Jul 18 22:19:29 in order to display a couple of diagonal lines Jul 18 22:23:48 is it possible to test in-app billing by compiling via Eclipse, or do I have to send the apk to Google? Jul 18 22:24:31 dunno, never set it up Jul 18 22:24:59 it's giving me a signature verification failed error Jul 18 22:25:08 http://developer.android.com/guide/google/play/billing/billing_testing.html Jul 18 22:25:10 fwiw Jul 18 22:25:39 yea I've been reading that, still confused as to why I'm getting this error Jul 18 22:26:17 the only possible reason I can see is that when I go into google play to purchase my item, it's showing my other google email.. not my develope remail Jul 18 22:26:21 developer email* Jul 18 22:26:42 oh ha wait a sec Jul 18 22:26:44 the emulator? Jul 18 22:26:51 no on my actual phone Jul 18 22:26:52 or are you using eclipse with a phone? Jul 18 22:26:54 okay whew Jul 18 22:26:58 hah yea Jul 18 22:27:36 i'm started to avoid using the emulator Jul 18 22:27:38 starting* Jul 18 22:27:46 phone is just so much quicker Jul 18 22:27:48 it takes too long to load up anyway Jul 18 22:27:49 yeah Jul 18 22:28:00 mysteronyx: well, just don't ever *quit* the emulator Jul 18 22:28:17 why's that Jul 18 22:28:32 i'll need to try out the x86 emulator image Jul 18 22:28:46 mysteronyx: you just complained that it took too long to load up Jul 18 22:29:00 right Jul 18 22:29:02 if you don't quit the emulator, it doesn't have to "load up" agian the next time you want to test the app Jul 18 22:29:08 ahh Jul 18 22:29:11 I didn't realize this Jul 18 22:29:15 quitting the emulator == powering off your phone Jul 18 22:29:29 you don't power-cycle your phone every time you want to test a new version of the apk Jul 18 22:29:35 I didn't realize that keeping the emulator open would work for future instances of my app Jul 18 22:29:35 so don't do that to the emulator :) Jul 18 22:29:42 yep! Jul 18 22:29:46 cool Jul 18 22:30:20 and if you don't need to use google API's like maps etc then you should use the x86 emulator image Jul 18 22:30:43 it's apparently a lot faster Jul 18 22:31:03 oh sure, because it's not emulating a phone Jul 18 22:31:17 because it's not emulating arm Jul 18 22:31:20 right Jul 18 22:45:27 Hi.. a n00b at java here. What is the way to handle timed events -> run certain functions one frame per second ? Jul 18 22:45:51 im looking for the terminology Jul 18 22:46:15 A thread? Jul 18 22:46:55 ologn, I have no idea.. googling now Jul 18 22:47:55 ThomQ, you can have a Thread that performs a continual activity, and wakes up and sleeps according to how you wish... Jul 18 22:49:06 hmm okok, but it sounds a bit like a work around though. You could also use a formula and the timer function, right? Jul 18 22:50:01 I just want to play an audio file every second btw Jul 18 22:54:45 anyone here using the Flurry location library? I implemented it in my app and now it shows up as 22% usage throughout the day even when I go into the app just once. Jul 18 22:55:00 I am not initializing it with anything but the default getBaseContext() so I am not sending in my own update interval params Jul 18 22:55:16 not sure how to troubleshoot battery usage Jul 18 22:56:08 Ahh i found it: Handlers http://developer.android.com/reference/android/os/Handler.html Jul 18 22:56:41 Handler is yor frend Jul 18 22:57:28 do I have to upload my apk to google publisher in order to test in-app billing? Jul 18 22:57:47 or can I test via Eclipse Jul 18 22:58:52 you can use the test ids Jul 18 22:59:04 but you have to upload to test the fulle purchase Jul 18 22:59:07 *full Jul 18 23:02:21 #android-dev Jul 18 23:02:45 that's us. Jul 18 23:06:52 lol Jul 18 23:11:33 On the ICS "App Info" screen, what exactly does "Cache" correspond to? I can't seem to find any file or folder anywhere that corresponds to the app in question that takes up that much space. Jul 18 23:11:39 If I want to create my own app property how I can save it to build.prop or default.prop from my app or to any other prop file? Jul 18 23:12:42 and after that to read it? With standart read/write file operation or there is some other better way or maybe helper class? Jul 18 23:15:06 F1rstAid: does it really need to be a true property? can you use one of these methods instead? http://developer.android.com/guide/topics/data/data-storage.html# Jul 18 23:18:17 Hey dudes. I'm using a FragmentPagerAdapter, and it works great. Problem is, I need just 1 of the fragments in my collection to not respond to the swiping events left and right. Is there an easy way to do this? Can I override a method and ignore the swipe at a given position or something? Jul 18 23:18:50 Chronax: why would you do that? Wouldn't the user get stuck on a page? Jul 18 23:19:19 it's the "You have been eaten by a grue" view. Jul 18 23:20:58 Starbuckt: Yeah, it's a long story. It's the "You have been eaten by a grue." view. Jul 18 23:21:13 ctate: Is there any easy way to accomplish this? Jul 18 23:21:30 Basically, I've got a view in one of my fragments that IN ITSELF scrolls around left and right. Jul 18 23:21:40 So I don't want the pager adapter to respond to the scroll event for just that 1 fragment. Jul 18 23:21:43 Lame, I know. Jul 18 23:22:35 Chronax: I really think you should re-think your user interface. Sounds like a bad idea IMO. However, you could probably accomplish this by overriding the OnTouch method of your Fragment. Jul 18 23:22:44 Question: I got this simple activity: http://pastebin.com/48d3ckVh . Its set up to play a sound every 2 seconds, while the screen is touched. The run loop however runs forever. How can I tell it to stop after event.getAction()==MotionEvent.ACTION_UP) (line 47). Jul 18 23:27:11 But I really need the pager adapter to not respond... not the fragment. Jul 18 23:27:24 I just need the fragment pager adapter to ignore swipes for this 1 fragment in its collection. :( Jul 18 23:27:32 scootley I am going to read some device unique ids which will be given to specific group of devices ( don`t worry we have root access and etc) . The idea was to use unified way to read/write info. For now I only need to read the build.prop or default.prop but it may happen that I will need to alter these files from the app. So I was wondering if there is good practice for that or just open Jul 18 23:27:32 file for read/write and do what is required Jul 18 23:28:10 Chronax: you might have to subclass ViewPager to do that. I've done it before and it's a rats nest. Jul 18 23:32:33 Yeah, I have too. Jul 18 23:32:50 I just can't remember (and can't find) the 1 event that's fired on "swipe." Anybody know? Jul 18 23:34:09 what would be the best way to implement a sleep timer that returns time remaining for every second and can manipulate objects in the activity that created? Jul 18 23:34:50 I was thinking about trying to create my own thing that spawns a thread and has a few custom listeners, but I don't want to reinvent the wheel Jul 18 23:35:44 rogue780: Handler Jul 18 23:37:27 So in my app, users acquire points. When they have 1,000 points, I want them to be able to cash them out, some how crediting their google wallet. Has anyone seen examples of this kind of cash-out system in an app? Jul 18 23:37:50 You want to give them money? Jul 18 23:37:55 yea Jul 18 23:38:02 can I beta test your app? Jul 18 23:38:11 no Jul 18 23:38:15 only because you asked Jul 18 23:38:30 can I not beta test your app? Jul 18 23:38:40 haha i would use this app :p Jul 18 23:38:46 exactly Jul 18 23:39:02 so f2prateek, have you ever seen a cash-back system like this? it can't be that hard to do, right? Jul 18 23:39:08 i havent seen one Jul 18 23:39:13 if i had to do it myself Jul 18 23:39:57 i would implemnt a listener for the credits> which fires an intent Jul 18 23:40:24 i dont know what kind of api google wallet has though Jul 18 23:40:37 i think for customers, its only for making mpayments Jul 18 23:40:50 you have to be a merchant to receive payments as well Jul 18 23:41:13 yeah Jul 18 23:41:15 hmm Jul 18 23:41:25 perhaps I could do a different system where it credits a paypal account Jul 18 23:41:46 yeah that would work Jul 18 23:42:01 only thing is then users would have to input their paypal account information Jul 18 23:42:17 unless their email is good enough? Jul 18 23:42:35 i think to make a payment, only recivers email id is required Jul 18 23:42:41 *receivers Jul 18 23:42:49 yea, that might be a good idea then Jul 18 23:43:11 do you think google would be upset with me paying people via paypal in my app? Jul 18 23:43:22 no, lots of people do it Jul 18 23:43:25 ok Jul 18 23:43:33 two apps i know, rom manager and launcherpro Jul 18 23:44:02 cool thanks Jul 18 23:44:04 plus using paypal allows it to work on kindle fire and such as well Jul 18 23:44:09 hmm Jul 18 23:44:10 so its got a huge plus Jul 18 23:44:43 f2prateek my users will also be paying for the app via google play Jul 18 23:44:54 so I don't know how I'd convert that to kindle fire Jul 18 23:45:03 well they only download it form google play Jul 18 23:45:13 like theres no google play in app billing involved Jul 18 23:45:44 there is because users can pay to load up on credits Jul 18 23:45:47 hi Guys.. I got a problem using a handle.. I'm trying to play a sound every 2 seconds while the screen is being touched. http://pastebin.com/hVPxjbkV Jul 18 23:46:03 so I'd have to shift all forms of billing within my app to paypal, and I'm sure google won't like that Jul 18 23:46:44 I use a ScheduledExecutorService to loop.. I wanted to use the handle.cancel on MotionEvent.ACTION_UP, but the script isn't working Jul 18 23:46:56 I'm ok with receiving payments from users via in-app google billing and paying them via paypal... Jul 18 23:46:56 yeah i guess, maybe ask romainguy about that, he would know better Jul 18 23:47:00 ok thanks Jul 18 23:47:26 that model would work too, Jul 18 23:47:27 I think that's because the ACTION_UP if statement isn't being called (I think).. I had to place it inside the running loop, or the handle wouldnt be recognized Jul 18 23:47:40 what would be the correct way of setting this up? Jul 18 23:48:16 for clarification: the sound keeps playing after releasing the screen.. Jul 18 23:48:26 your second if is nested inside the first one Jul 18 23:48:29 it should be outside Jul 18 23:48:45 it wont be called if its inside as i understand it Jul 18 23:49:54 Yeah exactly, but, if I do that, I get beeperHandle cannot be resolved.. Jul 18 23:50:11 maybe initalise it outisde Jul 18 23:50:18 lmgtfy.com/?q=do+a+barrel+roll Jul 18 23:50:20 inside on Touch Jul 18 23:50:28 outisde the if Jul 18 23:51:02 yeah exactly. Was trying to figure out how, wat type of variable it is, etc... Jul 18 23:51:18 its my third day using java, it's kinda kicking my but over, and over :P Jul 18 23:51:57 you just have to extend the scope of the variable, as it is now, its only defined for inside the first if statement Jul 18 23:52:13 you might seriously want to find some core java language tutorials on the web and work through them Jul 18 23:52:16 it'll serve you pretty well Jul 18 23:52:27 :D that's what i'm doing Jul 18 23:52:54 good, good Jul 18 23:52:56 carry on. Jul 18 23:52:58 I do have other coding skills though, so I'm mainly trying to figure out the Why's, not the how's.. If that makes any sense :P Jul 18 23:53:19 sure Jul 18 23:53:30 wongk i understand your irc nick now Jul 18 23:53:31 :D Jul 18 23:53:32 if you're still looking, i like the newboston videos, coz its all code Jul 18 23:54:11 @prateek; That's where I go off, scopes of variables. Im guessing you're hinting at all that takes place between the () brackets? Jul 18 23:54:25 and yeah, ive plowed through a couple of those newboston videos already :D Jul 18 23:54:30 When my activity runs it starts an AsyncTask to check for new version of the app. If it finds there is a new version, I want to shows a dialog. How can I safely do this? (for example, what happens if the Activity ends while the AsyncTask is running?) Jul 18 23:55:07 post the act of displayign the dialog to the UI thread Jul 18 23:55:16 yeah, you want the scope to be for the entire onTouch method Jul 18 23:55:39 in the implementation of that, check whether the activity is resumed; if not, then either hold off on displayign the dialog or just eat it because your activity isn't the foreground UI Jul 18 23:55:55 now, that said Jul 18 23:55:57 romainguy, are you around? Jul 18 23:56:17 ejcweb: that said, why are you not just letting Play Store do the new-version stuff for you, and not have to worry about it? Jul 18 23:56:21 trying to do that now.. Copy pasting the line doesn't work ;) Jul 18 23:56:24 mysteronyx: he is not Jul 18 23:56:33 (i can see his desk from here) Jul 18 23:56:39 haha Jul 18 23:56:40 ok Jul 18 23:57:41 its probably because there are 3 new things going on for me, that I don't see how.. Could you perhaps edit this https://gist.github.com/3139793 so I can see how you did it? Jul 18 23:58:32 and no, I'm not just cheaply outsourcing my work :P Jul 18 23:58:59 ctate doesn't come cheap Jul 18 23:59:32 :P Jul 18 23:59:37 you would need somehting like thishttp://pastebin.com/1tMdzPS6 Jul 18 23:59:53 change the modifiers for beeperhandle Jul 19 00:00:03 GRrr hydraIRC doesnt let me copy paste that link Jul 19 00:00:32 ctate: How can I check if the activity is resumed/in the foreground (from my AsyncTask)? Jul 19 00:00:41 use irssi :P Jul 19 00:01:04 ctate: Can you see jsams or srhines desks? Jul 19 00:02:06 ahh ok, yeah, stupid I didnt just do that Jul 19 00:02:20 mysteronyx: maybe Jul 19 00:03:09 now I get the error that the handle may not have been initialized (logical). final ScheduledFuture beeperHandle = scheduler; or something? Jul 19 00:03:19 the blog has a typo "We are also releasing SDK Tools revision 20.1.1" but the download page says 20.0.1 Jul 19 00:04:01 * Gumboot resolves to try to sleep off his impatience. Jul 19 00:04:17 Hey dudes. I'm using a FragmentPagerAdapter, and it works great. Problem is, I need just 1 of the fragments in my collection to not respond to the swiping events left and right. Is there an easy way to do this? Can I override a method and ignore the swipe at a given position or something? Jul 19 00:05:00 do you really need the fragmentpageradapater then? just use tabbed mode? Jul 19 00:05:16 Gumboot: nope Jul 19 00:05:29 ejcweb: you get onResume() / onPause() callbacks, so you can keep track easily. Jul 19 00:06:22 ctate: Oh sure I see what you mean. Since my AsyncTask is a separate class from my activity I guess I can tell it when onResume/onPause are called then. Jul 19 00:07:57 you could also spin a service for this instead; it gets its own lifecycle and so the coordination isn't as wacky Jul 19 00:08:05 it's a case of whichever you're more comfortable with Jul 19 00:08:13 personally i would suggest posting a notification rather than showing a dialog anyway Jul 19 00:08:18 * Gumboot wants objects. Jul 19 00:09:35 I do need fragmenetpageradapter for all of the other views. It's just 1 that shouldn't page when swiped. Jul 19 00:10:01 so with my wifi teather giving me awesome DIALUP speeds i said fsckit and downloaded the entire android repo at work in 3 m inutes Jul 19 00:10:51 mark4: work >> wifi teather >> public library Jul 19 00:10:56 ScheduledFuture is almost ungoogle-able Jul 19 00:11:39 g00s my awesome 4g phone is giving me a max of 30k download per second Jul 19 00:11:45 i can upload at 2 megs a second tho Jul 19 00:11:56 vzw has the towers fubarred round here Jul 19 00:13:15 so i want to see how long it takes to build android with 4.7 Ghz Jul 19 00:13:16 ok, last thing of tonight guys. How do I initialize a ScheduledFuture ? Jul 19 00:13:16 it takes a lot of cycles to copy your data to the nsa Jul 19 00:13:43 i only have 16 gigs of ram but i prices drop a bit ill get the full 64 Jul 19 00:13:51 then i can compile it all out of a ram drive :) Jul 19 00:13:56 I know I'm supposed to give it some placeholder value, so that it'll pass the syntax check. I can't find what value though Jul 19 00:18:22 only 16gb ram lol Jul 19 00:18:31 i just recently upgraded to 8gb Jul 19 00:18:52 i think the first z80 system i built had 4k Jul 19 00:19:00 mark4: are you just compiling Android the way some people use SETI? To show off your computer? :) Jul 19 00:19:53 my first computer had 1KB of ram Jul 19 00:20:02 although i also had a 16KB expansion pack for it, oh the luxury Jul 19 00:20:17 also, get off my lawn. Jul 19 00:20:25 or i'll whack you with my cane Jul 19 00:20:45 romainguy no. well yes for NOW. i actually want to dig that deep into it eventuaully tho Jul 19 00:20:55 i dont like using a system i do not FULY understand Jul 19 00:21:12 which is why i always picked forth development over c Jul 19 00:21:12 there is a movie quote that is exactly apropos to that sentiment Jul 19 00:21:15 "Get used to disappointment." Jul 19 00:21:25 my first computer ran at 12,5 mhz Jul 19 00:21:40 but what better way to benchmark this box than to use it to compile android :) Jul 19 00:22:00 ThomQ, mine ran at 1mhz Jul 19 00:22:09 haha, Pre 286? Jul 19 00:22:43 mark4: good luck then if you want to FULLY understand Android Jul 19 00:22:45 it's a big code base Jul 19 00:22:54 I wonder when v2 of the Developer Console is rolling out Jul 19 00:22:55 wow, mine ran at 3.5 MHz Jul 19 00:23:10 (pre 286? dude, my first computer was pre-IBM PC) Jul 19 00:23:19 damn, that Does make you old ;) Jul 19 00:23:27 romainguy, yup. im more interested creating a native forth for android that can interface with the jni Jul 19 00:23:28 My first PC was a Commodore 64 Jul 19 00:23:35 C64 was my second Jul 19 00:23:39 awesome box Jul 19 00:23:57 ctate i learned 6502 in 2 weeks then bought my first computer. a c64 Jul 19 00:24:04 mark4: the hard part is writing the bindings to the public framework APIs and tooling, which is all in java. Jul 19 00:24:19 mark4: zero page REPRESENT Jul 19 00:24:36 i knew every single 6502 opcode by heart lol Jul 19 00:24:37 ctate: first computer I used was an 80386 running DOS + Win 3.1 (I think it was a 386 anyway, maybe a 486) Jul 19 00:24:42 including all the un supported ones Jul 19 00:24:49 i remember 2 or 3 still but thats it Jul 19 00:24:53 jreck: we've already established that you're a teenybopper Jul 19 00:25:09 <3 68K Jul 19 00:25:09 yung wipper-snapper Jul 19 00:25:09 :P Jul 19 00:25:23 pyjar: truth Jul 19 00:25:24 i upgraded to an amiga later too Jul 19 00:25:29 jreck: damn, mine was a 486 (but a laptop) Jul 19 00:25:30 intel... ugh Jul 19 00:25:46 i recently had to explain the NES' turbocontroller to someone.. That made me officialy old apparently Jul 19 00:26:24 lol romainguy, a 486 laptop? weighed about half your weight then? ;) Jul 19 00:26:33 it wasn't that bad Jul 19 00:26:43 but the screen… :)) Jul 19 00:26:50 PSA: everyone over 25 is officially an old person now Jul 19 00:27:02 <_Auron_> I turn 24 in two months, so I'm borderline old Jul 19 00:27:03 yjar how so Jul 19 00:27:09 <_Auron_> if that's the case Jul 19 00:27:50 _Auron_: 24? rugrat. Jul 19 00:27:54 * ctate is 42. Jul 19 00:28:58 ITT age is now uptime. Jul 19 00:29:03 hee hee Jul 19 00:29:13 maybe i should stop counting time in suspend Jul 19 00:30:48 romainguy, i dont think usnig a dynamic layout is going to help me with my chat bubble thing, i cannot find any examples of creating a dynamic layout at run time that can be positioned anywhere in a given view Jul 19 00:31:09 my NPC chat bubble has to be positionable over the heads of the npc thats talking. Jul 19 00:31:34 layout is what you want Jul 19 00:31:46 just translate() before you call layout.draw() Jul 19 00:32:28 romainguy, right now my tile engine cookie cuts each tile from the tile png into a bitmap... should i use a grid layout and make every tile its own view? Jul 19 00:33:11 no Jul 19 00:33:47 i basically construct the scene by layering one object over one ground tile and then cookie cutting that into a bitmap Jul 19 00:34:59 any chance you could direct me to some example code for doing the dynamic view i ned? Jul 19 00:35:02 need Jul 19 00:36:17 because the examples i looked at were not of much help to me :/ Jul 19 00:36:54 doing a dnamic layout for a "list view" doesnt seem like a good match for my use case Jul 19 00:38:09 why doesn't Android's built-in "move app to SD" functionality include the /data/data for that app? this seems insane to me Jul 19 00:38:25 a couple of reasons Jul 19 00:38:44 first, modern Android prefers a unified single-volume design Jul 19 00:38:57 where shared storage is just an overlay on top of the same underlying file space Jul 19 00:39:08 in that architecture, "move to sd" is just a waste of space Jul 19 00:39:23 second, because shared storage is world readable and FAT Jul 19 00:39:35 both fo which are nonstarters as far as putting app private data there Jul 19 00:40:01 well, i'm talking about he encrypted storage that is used for the .apk's (re: your second point) Jul 19 00:40:05 finally, it's extremely rare for an app's data to be as large as the app itself Jul 19 00:40:11 huh, i thought move to SD put it in a secure file inside the .FAT filesystem Jul 19 00:40:19 uhm, s/\.// Jul 19 00:40:19 the encryption containers that are used for apks are not resizeable Jul 19 00:40:28 ah Jul 19 00:41:32 re: this unified single-volume design and shared storage being an overlay. does any device actually implement this? Jul 19 00:41:46 xoom, Galaxy Nexus, Nexus 7 Jul 19 00:42:03 it was introduced in Android 3.0 Jul 19 00:42:23 but not Nexus S? Jul 19 00:42:40 [detail: the shared-storage FAT file system is implemented as a FUSE layer that sits on top of the ordinary /data filesystem] Jul 19 00:42:47 no, because the Nexus S predates 3.0 Jul 19 00:42:56 so it has a dedicated shared-storage partition Jul 19 00:43:05 I see. you mean that it wasn't originally a 3.0 device at release time Jul 19 00:43:07 which we totally wanted to get away from, for obvious reasons :) Jul 19 00:43:10 right Jul 19 00:43:21 if we'd been able to OTA it new hardware, we would have :) Jul 19 00:43:32 =) Jul 19 00:45:30 Is the Nexus S's /system & /data physical memory the exact same kind of memory as /sdcard ? Jul 19 00:46:26 or do 2 different kinds of actual flash storage underlie them? Jul 19 00:53:41 on android, is the home screen always the launcher as well? Jul 19 00:55:41 ctate: How often do you guys talk about hardfloat ABIs, by the way? Jul 19 00:56:29 I think I just swallowed a pretty transparent fob-off, and I feel a bit foolish, now. Jul 19 00:57:16 Gumboot: whats a fob-off? Jul 19 00:57:21 But in general, I've found the reasoning behind people's ABI transition anxiety to be kind of weak. Jul 19 00:57:45 pyjar: A feeble excuse or response to make someone go away. Jul 19 00:58:06 pigeon: yes Jul 19 00:58:13 ryanm: thanks Jul 19 00:58:37 Gumboot: ah. /me checks the scrollback Jul 19 00:59:23 You won't find anything. Jul 19 01:00:09 Gumboot: well, i personalliy don't ever talk about ABIs :) Jul 19 01:00:15 I want to detect when someone long clicks on an item in my ListView for 10 seconds. How can I achieve this? Jul 19 01:00:18 Everybody should talk about ABIs. Jul 19 01:00:28 i am not really involved in any of hte tools stuff, so i don't have any info to give you Jul 19 01:00:33 Gumboot: whats the questino then :D Jul 19 01:00:35 When you get to a certain age your father should take you aside and explain it all. Jul 19 01:00:40 ha ha ha Jul 19 01:00:46 "Ask your doctor about hardfloat ABIs" Jul 19 01:01:07 "If you have hard float ABIs lasting longer than four hours..." Jul 19 01:01:19 ejcweb: http://developer.android.com/reference/android/view/GestureDetector.OnGestureListener.html Jul 19 01:01:23 "are you suffering performance anxiety caused by soft float calling conventions?" Jul 19 01:01:35 look at onDown and onSingleTapUp Jul 19 01:01:35 lol time make -j13 on android sources..... 6 minutes Jul 19 01:01:41 }:) Jul 19 01:01:44 and time the delay between them Jul 19 01:02:36 There's always this whole "but what about legacy X?" response to talking about changes to ABIs. Jul 19 01:03:11 But most of the dangerous combinations that come up are impossible. Jul 19 01:03:29 obviously they need to add versioning numbers, and concurrently run separate ABI versions. to not break compatability. Jul 19 01:03:37 well, pretty much all the legit reasons to worry about that also go away when you target an API level later than, say, Donut. Jul 19 01:04:01 Thanks ryanm. Jul 19 01:04:03 Does donut lock you in to hardware floating-point support? Jul 19 01:04:09 no problem :-) Jul 19 01:04:15 Gumboot: i'm SWAGing there Jul 19 01:04:29 but at some point we stopped supporting SoCs old enough to require soft floats Jul 19 01:04:30 * Gumboot knows not the verb to SWAG. Jul 19 01:04:39 a WAG is a Wild-Assed Guess Jul 19 01:04:43 a SWAG is a Scientific WAG Jul 19 01:05:06 i think sony has a post-donut device with softfloat Jul 19 01:05:13 it doesnt use linux though x.x Jul 19 01:05:33 and thus doesn't use Android Jul 19 01:05:42 ? Jul 19 01:05:58 http://toc2rta.com/?q=node/59 Jul 19 01:06:25 * ctate | According to most blog/news sites (cough cough gdgt) this is an Android Froyo based device. That is not actually even close to being true. Jul 19 01:06:26 ha ha ha Jul 19 01:06:26 yep, not android Jul 19 01:06:28 wierdest thing i've ever seen. Froyo, running on an uC-OS2 kernel. Jul 19 01:06:50 oop :-X Jul 19 01:07:02 why do you think it's froyo? Jul 19 01:07:15 erm. said blogs. Jul 19 01:07:22 aha. yes, that. Jul 19 01:07:50 hardfloat is pretty broken as well, actually, but it's better than soft. Jul 19 01:08:30 floating point math is kinda dumb to begin with. int math is always way faster Jul 19 01:08:42 this is not true Jul 19 01:09:03 It's true if you don't have an FPU. Jul 19 01:09:03 has anyone had problems with the nexus 7 with adb on windows? Jul 19 01:09:07 one comptuer cant even see it Jul 19 01:09:10 the other says it's "offline" Jul 19 01:09:13 drivers are instaleld and working Jul 19 01:09:14 fixed point can be useful in some circumstances but has definite problem domains where it is a lot more trouble than it's worth Jul 19 01:09:16 And sometimes it's true if you have a crappy FPU. Jul 19 01:10:53 Hm... too much renderscript. I keep looking at "mark4" and wondering how big a four element vector of "mark" is. Jul 19 01:11:13 And whether LLVM generates good code for that data type. Jul 19 01:11:21 canadiancow: I can try it when I get home from work and report back :-) Jul 19 01:11:22 REAL*8 XCOORD Jul 19 01:11:44 I need an excuse to work on my stuff anyway. Jul 19 01:11:53 sure Jul 19 01:11:53 This whole it-being-2am thing might be a factor. Jul 19 01:12:02 im not finding many google results, just hte usual "HOW DO I ADB" Jul 19 01:12:03 And me sitting here wondering if maybe I might still get some responses to my emails. Jul 19 01:12:07 but ive tried two computers :S Jul 19 01:12:51 tried different cables? Jul 19 01:13:21 if an app installs but fails to startup is there a log somewhere which shows errors? Jul 19 01:13:32 caverdude: adb logcat Jul 19 01:13:33 on the phone I mean? Jul 19 01:13:38 logcat Jul 19 01:13:52 oh I don't have my phone connected yet to usb Jul 19 01:13:59 driver problem Jul 19 01:14:04 or cable problem Jul 19 01:14:04 oh, um. Jul 19 01:14:19 try to trigger a bugreport Jul 19 01:14:22 OK, it's definitely bedtime when you think someone's just said they tried using google on two different computers and that didn't help. Jul 19 01:14:30 hmm Jul 19 01:14:33 Goood morning Jul 19 01:14:40 Gumboot: heh. g'night. :) Jul 19 01:14:52 the exact key combo varies between devices. try holding power and both volume keys Jul 19 01:14:58 and make sure USB debugging is unabled. Jul 19 01:15:30 (doesn't matter if you can connect it, it just has to be enabled) Jul 19 01:15:46 does anyone know any sites to post examples? I made a neat hold-to-increase button Jul 19 01:21:49 List of devices attached Jul 19 01:21:49 offline Jul 19 01:21:52 wtfux Jul 19 01:22:06 canadiancow: is it chinese? Jul 19 01:22:11 no? Jul 19 01:22:38 (that was supposed to be a joke) Jul 19 01:22:50 with a dynamic tab, mySpec.setContent(new TabHost.TabContentFactory(){/// is there any way to add content to this tab after this line? Jul 19 01:36:13 ryanm: On the topic of detecting a longer than usual long press, it seems that onSingleTapUp isn't fired after the period of a standard long press. I'm not sure what other event to detect when the touch is released? Jul 19 01:45:03 guys Jul 19 01:45:34 Ive added a return statement, now where can i access this? take a look Jul 19 01:45:35 http://pastie.org/4281289 Jul 19 01:45:59 I want to assign a variable called 'parent' to the value of 'tabContent' Jul 19 01:46:31 whats a command I can run to see if the phone is connected to the laptop properly? Jul 19 01:46:41 ummm Jul 19 01:46:55 can you see it in myComputer? Jul 19 01:47:04 hmm Jul 19 01:47:09 my computer* Jul 19 01:47:25 caverdude, try adb devices Jul 19 01:47:37 Belacan, no Jul 19 01:47:40 mark4, ok thanks Jul 19 01:48:21 shows nothing Jul 19 01:48:32 I think there is something wrong with my cable Jul 19 01:48:57 I had a cable that came with the phone lol but it is a state away from right now lol Jul 19 01:49:00 I left it in the camper Jul 19 01:49:30 which state u leave it in lol Jul 19 01:50:12 I'm in texas right now, camper is in arkansas Jul 19 01:50:24 yeehaww Jul 19 01:50:37 texas, the dont mess with state Jul 19 01:50:44 i like tx. i prefer az tho Jul 19 01:50:59 texas is a beautiful place Jul 19 01:51:15 out in the ranches Jul 19 01:51:26 depends on where u are :) Jul 19 01:51:41 http://pastie.org/4281289 any ideas guys? Jul 19 01:52:21 I'm near Dallas Jul 19 01:52:26 thats a nice part Jul 19 01:52:32 i used to live in Houston Jul 19 01:52:35 i lived in san antoinio for a few yrs Jul 19 01:52:42 beautiful Jul 19 01:52:52 austin is my favorite place Jul 19 01:52:54 right now im in the one state i most wanto to be OUT of Jul 19 01:53:00 ill-ANNOY Jul 19 01:53:05 lol Jul 19 01:53:05 hhah Jul 19 01:53:19 southern IL is beautiful Jul 19 01:53:41 its still illannoy and im spelling it right Jul 19 01:53:49 indiana is better. specially southern Jul 19 01:54:41 http://www.droidnova.com/2d-tutorial-series-part-i,770.html well I did this app, it wouldn't startup on the phone Jul 19 01:55:19 I was starting with the sample app, SkeletonApp Jul 19 01:55:35 removed the activity source and xml file Jul 19 01:55:37 then added that file Jul 19 01:55:46 from the tutorial Jul 19 01:56:21 however the SkeltonApp does work Jul 19 01:56:27 if I don't alter it Jul 19 01:57:21 f2prateek: hey man sorry to ping you but do you know how to do this: http://pastie.org/4281328 ? Jul 19 02:02:03 The AVD seems bugging for me. After opening it from within eclipse and using the "start" button to launch the Emulator it doesn't always launch the one that's actually selected Jul 19 02:07:37 how to make an app built using jellybean to run on older versions e.g. Honeycomb? Jul 19 02:09:00 minSdkVersion="11" Jul 19 02:12:58 Belacan: sorry just saw it Jul 19 02:13:09 can you extend the scope of the variable? Jul 19 02:13:25 ive had some moderate success but still not working fully Jul 19 02:13:36 How do you extend the scope? Jul 19 02:14:10 declare the variable outisde Jul 19 02:14:27 so in this case, before specs.content Jul 19 02:14:39 use LinearLayout tabContent; Jul 19 02:14:44 you guys like http://anddev.org ? Jul 19 02:14:53 might have to be iniatlised with the context Jul 19 02:14:54 good looking forum there Jul 19 02:15:42 ummm yeah when i put it outside then its not detected inside Jul 19 02:15:48 its not 'connected' if you will Jul 19 02:16:06 caverdude: that looks nice Jul 19 02:16:12 did you make it? Jul 19 02:16:17 no Jul 19 02:16:23 I just found it Jul 19 02:17:13 ill show you something that worked a bit Jul 19 02:18:02 show who? Jul 19 02:18:15 http://pastie.org/4281413 Jul 19 02:18:25 whoevers interested i suppose haha Jul 19 02:18:31 its about a problem im having Jul 19 02:18:59 So in that example i could assign it a unique ID, but i cant use a variable to do it because the lack of 'connection' Jul 19 02:21:15 so in other words i can find view by id when its a constant like 666, but as soon as i try to make it dynamic my issues begin Jul 19 02:23:14 so wait Jul 19 02:23:29 you're setting the ID to 600+counter... Jul 19 02:23:39 and then trying to retrieve it with counter Jul 19 02:23:46 I think you Jul 19 02:23:54 I think you've got an off-by-600 error. Jul 19 02:24:23 oh Jul 19 02:24:24 umm Jul 19 02:24:29 i dont think thats what i actually did Jul 19 02:24:33 but ill give it a shot Jul 19 02:24:34 again Jul 19 02:25:40 yeah sorry i put it up wrong, it doesnt work Jul 19 02:25:52 lol @ 'off-by-600 error' Jul 19 02:26:27 is there a java equivalent to android's array adapter for using with array lists? Jul 19 02:26:30 i also tried, if(counter==0){tabContent.setId(666);} if(counter==1){tabContent.setId(667);} Jul 19 02:27:52 is counter getting changed? If it works with a constant there's no reason it wouldn't work with a variable, unless the variable changes. Jul 19 02:28:52 yeah it changes Jul 19 02:28:53 ryanm Jul 19 02:28:59 heres the root problem: Jul 19 02:29:08 http://pastie.org/4281289 Jul 19 02:29:27 i need to access 'tabContent' from outside of that little block Jul 19 02:29:43 there seems to be some kind of forcefield around it that prevents access Jul 19 02:30:05 you can't use the return value? Jul 19 02:30:08 what sorcery is this? Jul 19 02:30:14 testing Jul 19 02:30:15 umm i put the return value Jul 19 02:30:21 i mean i changed it from void Jul 19 02:30:26 but i dont know how to assign it Jul 19 02:30:53 i tried parent = createTabContent("tag") or whatever Jul 19 02:30:55 to no avail Jul 19 02:31:01 it wouldnt even compile like that Jul 19 02:31:21 what's the type of parent? Jul 19 02:33:02 its a ViewGroup Jul 19 02:33:03 I have a RelativeLAyout, and inside that there are 3 different LinearLayouts. I want to make a "background image", so I set the RelativeLayout's background to my image, but my linearlayous appear in front of my image. Jul 19 02:33:18 Is there any way to make all the other layouts transparent or another way to do what I want? Jul 19 02:33:18 One should be able to cast from View to ViewGroup Jul 19 02:33:50 T-Dub set the linearlayouts backgroudns to transparent? Jul 19 02:33:57 lol @ gaz Jul 19 02:34:06 ? Jul 19 02:34:11 won't that make every view inside that layout transparent too gaz`? Jul 19 02:34:19 no Jul 19 02:34:22 if you have a LinearLayout as the View, then yes, you can cast it to ViewGroup. Jul 19 02:34:39 However, you have to actually cast it. Jul 19 02:34:41 I can buttons inside my linearlayout Jul 19 02:34:54 T-Dub pretty sure yeh, try it Jul 19 02:35:04 Aight, give me a few. Thanks Jul 19 02:35:08 parent = (ViewGroup)createTabContent("..."); Jul 19 02:35:25 wow 1035am, dont think ive been up this early in decades.. Jul 19 02:35:29 neeeeed coffeee Jul 19 02:35:59 The method createTabContent(String) is undefined for the type mainActivity Jul 19 02:36:02 i was having nightmares that i have an exam and ive done no revision Jul 19 02:36:13 has anyone managed to get any nfc devices to emulate a tag? Jul 19 02:36:26 hmm Jul 19 02:36:30 nothing fancy, a non encrypted tag Jul 19 02:36:41 its gotta be something.createTabContent Jul 19 02:36:44 u know, so that phones can be used as key cards to condos and what-not Jul 19 02:37:08 I unfortunately don't have enough information to figure out your problem Jul 19 02:37:19 good idea ebernie, surely is possible Jul 19 02:37:31 I apoligize for not just trying it. Thanks gaz` that worked. Jul 19 02:37:42 :) Jul 19 02:37:55 its ok the xml stuff is well confusing at the start imho Jul 19 02:37:55 ok thanks anyway!! :) Jul 19 02:38:10 r u guys all from malaysia? odd hours for other countries Jul 19 02:38:14 haha gaz that has got to be answer of the day Jul 19 02:38:23 I actually am half malaysian Jul 19 02:38:24 and the name belacan sort of gives one away too ;-) Jul 19 02:38:31 only half? Jul 19 02:38:33 hahah very good Jul 19 02:38:36 half english Jul 19 02:38:50 nice Jul 19 02:39:00 for the curious onlookers Belacan means shrimp paste in malay Jul 19 02:39:01 Belacan i go to kota kinabalu sometimes in borneo Jul 19 02:39:25 not making sense, kk is in borneo always Jul 19 02:39:27 not just sometimes Jul 19 02:39:34 ;-) Jul 19 02:39:39 i had some malay food cant recall its name, some sort of glass noodles Jul 19 02:39:48 hey i will make sense when it hits lunch time ok :) Jul 19 02:39:59 im only awake because of exam nightmares Jul 19 02:40:05 and severe dehydration :) Jul 19 02:40:10 in taiwan :) Jul 19 02:40:23 ah a student Jul 19 02:40:30 enjoy it while it lasts Jul 19 02:40:34 haha nope, i wish Jul 19 02:40:43 gaz`: cool my village is on borneo Jul 19 02:40:48 im 32 now, the exam in question was when i was 18... still haunts me!!! Jul 19 02:40:53 Malay Roti canai is good Jul 19 02:40:55 Belacan awesome! Jul 19 02:41:06 so where are you guys from? Jul 19 02:41:16 i just figured you were all odd hour americans Jul 19 02:41:19 * gaz` is English Jul 19 02:41:33 * Leeds also British Jul 19 02:41:40 :) Jul 19 02:41:46 but don't confuse "where someone is from" with "where someone lives" :) Jul 19 02:41:55 <[SP]JESTER> hahaha Jul 19 02:41:56 ahh Jul 19 02:42:00 too true Jul 19 02:42:02 so where do you live Jul 19 02:42:03 i got good friends with another guy from leeds recently Jul 19 02:42:05 How do you align in a relative layout? I'm using android:layout_alignTop="@id/close" and it gives me an error. I have a button that has the id "close" Jul 19 02:42:05 i'm a malaysian and in my case it's where i'm living too lol Jul 19 02:42:09 gaz`: you saw my comment? Sony bastards said "thanks, but no thanks" to me Jul 19 02:42:13 turns out he is one of the dudes working on the java compiler.. Jul 19 02:42:21 android:id="@+id/close" Jul 19 02:42:26 your id/close view has to come before the declaration Jul 19 02:42:29 Leeds yeh i saw it, shame! i rarely get lucky :) Jul 19 02:42:31 otherwise add a + Jul 19 02:42:43 the id wouldn't have been created otherwise Jul 19 02:42:44 to be honest, I normally get lucky, so I can't complain too much :) Jul 19 02:43:03 Leeds hehe, yeh this is prob a cheaper gadget too Jul 19 02:43:17 T-Dub: can you pastebin the whole layout (or the whole relativelayout, at least)? Jul 19 02:44:05 congradulate me I just got a hello world app to run on my phone Jul 19 02:44:07 took 3 days Jul 19 02:44:08 http://pastebin.com/GbhW7Xuy leeds Jul 19 02:44:09 lol Jul 19 02:44:13 caverdude lol.. Jul 19 02:44:16 congrats! Jul 19 02:44:23 3 days? bloody hell :S Jul 19 02:44:28 hi, is there a way to make a filesystem rw by default on boot? theres no /etc/fstab, is the mount info the ramdisk? Jul 19 02:44:31 hi gaz` Jul 19 02:44:35 hey caver! Jul 19 02:44:36 i thought hello world is generated by default Jul 19 02:44:38 Leeds: line 20 and line 144 Jul 19 02:44:51 gaz`: was talking to a guy I know in the UK - younger brother of a very old friend - who has been talking to me on and off about expat stuff... he's looking at something in Taipei (or at least Taiwan) and I offered to put him in touch with you Jul 19 02:45:19 Leeds sure man thats no prob, computer guy? Jul 19 02:45:38 gaz`, check pm Jul 19 02:45:57 * _Auron_ has been waiting on hearing back from a potential job in cali Jul 19 02:46:06 Leeds nvm, I had to delete it and then clear project, then readd it Jul 19 02:46:08 calimantan? Jul 19 02:46:25 <_Auron_> california Jul 19 02:46:29 lol Jul 19 02:46:31 calimantan Jul 19 02:46:33 Nvm i didn't save, I still have a problem Leeds. Jul 19 02:46:59 gaz`: yeah, network ops sort of guy... I did tell him you were a pisshead, and not the best person to ask for visa advice :P Jul 19 02:47:15 should be "+@id/close" in the first occurance Jul 19 02:47:33 ryanm: http://kandroid.wordpress.com/2011/05/30/tabview-part4-create-dynamic-content-in-tab-at-run-time/ does that tell you anything? Jul 19 02:47:37 How do I find the samples when creating a new project? Jul 19 02:47:41 T-Dub: nexting linearlayouts two deep in a relativelayout? Jul 19 02:47:46 _Auron: nice, which company Jul 19 02:47:58 That is for my sum weight Jul 19 02:48:01 plenty of samples in the sdk folder Jul 19 02:48:05 So I have two Columbus Jul 19 02:48:22 otherwise, when you create a new empty project, there will be one activity with one layout file Jul 19 02:48:39 with the new format? Jul 19 02:48:53 <_Auron_> f2prateek: WayForward Jul 19 02:49:02 yeah the linear layout should be refactored Jul 19 02:49:04 I just wanted to create an "API demos" app to look at and run on my phone Jul 19 02:49:21 @FuturInnovations, take a peek in the sdk dir Jul 19 02:49:24 they're all there Jul 19 02:49:53 there's a table grid layout something in the 4.x sdks right? Jul 19 02:50:11 use that and a compat lib for it to work in earlier versions of android Jul 19 02:50:13 FuturInnovations: file>new>project>other>android>android sample project Jul 19 02:50:19 yup Jul 19 02:50:44 the eclipse wizard differs slightly depending on which version you're using Jul 19 02:50:48 so i'm guessing Jul 19 02:51:15 Leeds haha my visa knowledge here is second to none Jul 19 02:51:18 I'm on windows 8 and running the latest eclipse Jul 19 02:51:18 have you tried storing the created View somewhere? Jul 19 02:51:24 or the id? Jul 19 02:51:26 don't u guys use naming conventions for view ids? Jul 19 02:51:32 like buttonView_something Jul 19 02:51:38 thanks, Belacan I found it :D Jul 19 02:51:39 windows 8 has been released? Jul 19 02:51:45 Leeds how else could i survive without a job :) Jul 19 02:51:48 pretty hard to lookup stuff once you've got too many views Jul 19 02:51:56 yeah Jul 19 02:51:57 well....kinda devtekbeta Jul 19 02:51:58 i do Jul 19 02:52:01 Any idea Leeds? Jul 19 02:52:04 btn_ Jul 19 02:52:12 tv_, et_ Jul 19 02:52:36 you have some kind of beta release? Jul 19 02:53:01 I'm actually dual-booting windows 8 and Ubuntu 12.04 :D Jul 19 02:53:12 and it's the "Release Preview" Jul 19 02:53:20 ahh i see. cool Jul 19 02:53:24 is it any good Jul 19 02:53:42 but the full version is supposed to be released this fall. Sometime in november I think Jul 19 02:53:47 it's pretty good Jul 19 02:53:55 nice Jul 19 02:53:59 the new start menu took a little getting used to Jul 19 02:54:02 T-Dub: ebernie__ got it right, I think... Jul 19 02:54:15 i can't understand metro Jul 19 02:54:19 on tablet, looks cool Jul 19 02:54:22 on a desktop... meh Jul 19 02:54:33 but I kinda like it more...the live tiles are kinda nice and the contacts can sync with your google contacts (which is nice) Jul 19 02:54:50 I am usually in the standard desktop 99% of the time Jul 19 02:54:53 windows has been relegated to a gaming box :) Jul 19 02:55:14 [19:47:15] should be "+@id/close" in the first occurance Jul 19 02:55:28 I'm not declaring a new id, it's referencing a already set id Jul 19 02:55:29 I wouldn't try windows 8 on a computer with an integrated chipset for graphics Jul 19 02:55:46 yeh the tiles are much better. non square icons waste a lot of space it seems Jul 19 02:55:52 T-Dub the order of the ID in your layout matters Jul 19 02:55:57 It worked thogh Jul 19 02:56:00 So nvm, sorry Jul 19 02:56:01 finding the drivers for this thing was a pain Jul 19 02:56:06 I don't get that but thanks ebernie__ Jul 19 02:56:11 Oh it didn't work. Jul 19 02:56:12 hmm Jul 19 02:56:23 so who all is on Jelly Bean? Jul 19 02:56:25 I'll change the order though like you just said. Jul 19 02:56:44 as long as the first occurrence in your xml has the '+' it should work Jul 19 02:56:48 parent =(ViewGroup) myTabHost.getCurrentView(); Is there any way to 'set' the current view upon tab creation? Jul 19 02:56:54 i'm on jelly bean Jul 19 02:56:57 T-Dub i use eclipse gui editor :) Jul 19 02:57:05 Yeah I'm going to move the close button to above the layout Jul 19 02:57:09 That's for noobs :P Jul 19 02:57:13 haha Jul 19 02:57:15 use it then Jul 19 02:57:17 :P Jul 19 02:57:25 I just flashed Bugless Beast and it is awesome!! Jul 19 02:57:31 not really, does anyone still hand write html Jul 19 02:57:39 i only do it for basic layouts these days Jul 19 02:57:47 I do Jul 19 02:57:49 T-Dub: you can still have it *below* the rest in the layout, just put it above the rest in the xml Jul 19 02:57:51 Well I copy and paste :) Jul 19 02:57:55 i drag n drop ui till the editor goes crazy Jul 19 02:58:02 hehehe Jul 19 02:58:02 i like to hand write everything. i never liked wysiwyg Jul 19 02:58:02 then change the xml manually Jul 19 02:58:03 Stock Jelly Bean has almost everything I need/want Jul 19 02:58:18 anyways...thanks guys for the help :D Jul 19 02:58:25 yup stock is pretty good Jul 19 02:58:41 anyone sporting a Nexus 7? :D Jul 19 02:59:30 Guys, if you want to create image resources for generally all the buckets of android devices, what kind of measurement should the designer design for Jul 19 02:59:52 Maziz: i would say xhdpi and scale down **** ENDING LOGGING AT Thu Jul 19 02:59:58 2012