**** BEGIN LOGGING AT Sat Jun 16 02:59:59 2012 Jun 16 03:41:19 How do you run something in a thread on the UI thread Jun 16 03:41:26 I don't remember how to set that up Jun 16 03:41:43 I have a thread, and that thread needs to update the UI, I know you have to put it in a different type of UI thread Jun 16 03:41:49 anyone remember how to set that part up Jun 16 03:42:14 found it runOnUiThread(new Runnable() { Jun 16 03:42:15 :P Jun 16 04:12:19 Anyone know how to do animation from inside a static method? Jun 16 04:33:37 static methods can do everything an instance method can do Jun 16 04:33:44 just pass an instance to it :) Jun 16 04:33:48 or return one from it. Jun 16 04:33:51 or both. Jun 16 04:34:39 obviously you can't access the instance from an inner static class and other things (that's not my point, though) Jun 16 05:00:05 [00:33:38] static methods can do everything an instance method can do Jun 16 05:00:09 this Jun 16 05:15:21 canadiancow2: not really Jun 16 05:15:34 static method can't access specific instance stuff Jun 16 05:16:32 this will cause error inside static function... this.somefunc(); Jun 16 05:27:05 XXCoder: just pass the instance as a parameter. Jun 16 05:27:18 yeah thats way to do it Jun 16 05:27:28 probably good memory savings Jun 16 05:28:01 what happens if 2 copies of object call it at once though? Jun 16 05:28:10 the advantage isn't really memory, but the ability to reuse methods across multiple classes that all inherit from a common ancestor without resorting to inheritance (composition) Jun 16 05:29:02 XXCoder: what do you think happens, and why? Jun 16 05:29:23 unsure actually (multithreading and thread-safe functions) Jun 16 05:29:39 do you understand the idea of a call stack? Jun 16 05:29:41 never used multithreading besides from that convertor Jun 16 05:30:03 hmm lemme recall a second Jun 16 05:31:02 I remember something about stack of program, as functions is called it is added into stack, with proper info such as pointers for return and stuff Jun 16 05:31:24 not sure how much applies to java, im thinking in C now Jun 16 05:31:25 inputs go in, the function produces output. unless the function accesses a global or you pass it a reference to some other resource that could be concurrently modified that function is going to be thread safe. Jun 16 05:31:53 a function that takes only primitives as parameters and accesses no globals is definitely thread safe, for example Jun 16 05:32:21 so even if I have int whatever; and use it inside that function, it is thread safe? Jun 16 05:32:29 obviously, it's a COPY Jun 16 05:32:33 assuming not static Jun 16 05:32:38 don't copy that floppy Jun 16 05:32:41 static vars that is Jun 16 05:32:51 XXCoder: primitive function params are copies. Jun 16 05:32:59 interesting. Jun 16 05:33:09 yep -- 3rd page of java book interesting Jun 16 05:33:25 well didnt learn much about java in college Jun 16 05:33:32 I learned rest outside Jun 16 05:33:37 i never went to college Jun 16 05:33:45 take responsibility for your own learning Jun 16 05:33:51 indeed Jun 16 05:33:59 thats why i have projects and such Jun 16 05:34:08 to keep my knowledge alive in some way in least Jun 16 05:34:10 you need to supplemnet them with more books Jun 16 05:34:14 because you're missing key shit Jun 16 05:34:35 *moar Jun 16 05:34:37 yeah bit of issue there. rent is well over 85% of my income lol Jun 16 05:34:45 86% Jun 16 05:34:46 ? Jun 16 05:34:58 ima stop trolling Jun 16 05:35:03 lol Jun 16 05:35:08 get the books then you can write code for money instead Jun 16 05:35:12 then you won't have this problem Jun 16 05:35:16 stay up late if you have to Jun 16 05:35:35 yeah im trying to solve couple other life problems, hopefully soon. Jun 16 05:35:36 go to the biblioteca Jun 16 05:35:43 looking now Jun 16 05:36:10 google results is strange Jun 16 05:36:22 you meant library? Jun 16 05:36:30 que? Jun 16 05:36:33 biblioteca: http://www.hulu.com/watch/97892 Jun 16 05:37:02 donde esta la biblioteca Jun 16 05:38:29 Me ilamo t-bone la arana discoteca Jun 16 05:38:47 libraries around here suck on programming stuff Jun 16 05:39:06 * readme points to the pirate bay Jun 16 05:39:12 * JakeWharton points to commonsware Jun 16 05:39:21 * readme has a safari membership but seriously, if you can't buy a book just download it. Jun 16 05:39:34 pay when you are out of hell Jun 16 05:39:45 hmm can do i guess Jun 16 05:40:07 I used to be pretty kickass programmer in college. im quite rusty now lol Jun 16 05:40:17 yeah i'd recommend buying from commonsware too Jun 16 05:40:28 commonsware++ Jun 16 05:40:28 if anything just because his answers on SO are more valuable than most books in themselves Jun 16 05:40:47 I let my safari sub lapse, even though I was grandfathered into a better plan than the current ones Jun 16 05:40:59 i let it expire once but I bought a new one Jun 16 05:41:11 waiting for some shelf space to clear.. accidentally filled that up Jun 16 05:41:17 http://commonsware.com/ looks nice Jun 16 05:41:36 I got a "please come back and resub" email from them, offering me a special deal which was worse than the plan I'd had... Jun 16 05:42:06 also 'thinking in java' is free Jun 16 05:42:16 and sun tutorials... errr oracle Jun 16 05:42:32 few years back I had access to a corporate account - unlimited books, no time restrictions... I do have access to a limited selection now through my local library system - might be worth checking if your local libraries have any group subscription Jun 16 05:42:44 oh nice Jun 16 05:42:56 digital is the only sane way to deliver a technical book Jun 16 05:43:00 I need some ereader so I can read ebooks effectively Jun 16 05:43:00 unless it's a classic Jun 16 05:43:15 main problem is, unless the regularly update the limited selection, it stagnates Jun 16 05:43:16 to be honest, the iPad is the only sane ebook reader Jun 16 05:43:20 man just go to the library and print the shit out Jun 16 05:43:25 I'll never give up my old C book Jun 16 05:43:32 i can't read tech shit on my Kindle Jun 16 05:43:38 when I was like 15 I used to go to the library and print entire ebooks Jun 16 05:43:39 JakeWharton: 10" tablet is *not* a sane prose reader... Jun 16 05:43:48 readme: not for me. I have touchpad. I can't read long term on any glowing screen Jun 16 05:43:53 thanks government :) Jun 16 05:44:02 websites sure but book? no Jun 16 05:44:13 huh? print it on paper man Jun 16 05:44:17 then put it in a binder Jun 16 05:44:23 Leeds: i just can't consume tech books on anything but a fully featured tablet. I don't read them linearly so it's difficult to jump around on other things Jun 16 05:44:30 and i just feel odd reading them on a computer Jun 16 05:44:31 just print the chapters you need or whatever Jun 16 05:44:50 JakeWharton: big screen for tech books, small screen for non-tech Jun 16 05:44:53 reading a couple chapters is better than not reading a book at all. ti's not all or nothing Jun 16 05:45:01 I'll just get eink something Jun 16 05:45:09 try to get a big one Jun 16 05:45:15 i usually buy tech books Jun 16 05:45:24 i'm done with that.. safari all the way Jun 16 05:45:36 i do buy classics though Jun 16 05:45:40 traditional books are easy to consume on the Kindle but I like having tech books to jump around and flip through randomly Jun 16 05:45:44 stuff that I don't need to be at the computer for anyway Jun 16 05:45:50 I bought the pragmatic programmer this month Jun 16 05:45:57 whats it about Jun 16 05:46:03 besides coding Jun 16 05:46:27 random aside: I highly recommend "Programming Concurrency on the JVM" Jun 16 05:46:49 I think searchability is important Jun 16 05:46:53 i don't want to perform a human search Jun 16 05:47:23 Hello guys. I am trying to follow the Hello world android tutorial Jun 16 05:47:31 nice, this book is pretty cool Jun 16 05:47:37 but running into trouble with creating and AVD Jun 16 05:47:38 i'm planning on learning clojure Jun 16 05:47:47 Shaba1: what happens Jun 16 05:47:53 readme: me too Jun 16 05:47:56 Hold on and I will try to paste in the error Jun 16 05:48:00 pastebin.com please Jun 16 05:49:41 It is only one line JakeWharton Jun 16 05:49:54 ok Jun 16 05:50:25 [2012-06-15 22:49:00 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder. Jun 16 05:50:46 that what happens when I press create avd Jun 16 05:53:59 http://stackoverflow.com/questions/7817044/how-to-create-an-avd-for-android-4-0 Jun 16 05:54:16 now, I'll share my secret: i pasted your line into google and that is the first result. Jun 16 05:54:33 let me know if it works Jun 16 05:56:21 i love being at work really late Jun 16 05:56:29 i can blast music and nobody is around to care Jun 16 05:56:29 are you there for work Jun 16 05:56:35 sort of Jun 16 05:56:40 i'm pretty drunk, but trying to work Jun 16 05:56:44 i'm going to work tonight as well Jun 16 05:56:46 and tomorrow Jun 16 05:56:49 monday deadline Jun 16 05:56:58 we had a social event in the office tonight Jun 16 05:57:04 so i wasn't working from 4pm to about 10pm Jun 16 05:57:18 and romainguy_ stood me up Jun 16 05:57:24 :( Jun 16 05:57:36 or he showed up and I couldn't find him in the crowd Jun 16 05:58:10 I am no longer drunk. my buzz wore off hours ago Jun 16 05:58:48 I went to one of those habachi places where the chef cooks in front of you Jun 16 05:58:58 then drank in my back yard a bunch Jun 16 05:59:04 nice, which one? Jun 16 05:59:16 i'm in love with Benihana Jun 16 05:59:16 Anyone have any ideas Jun 16 05:59:25 Shaba1: readme posted a link Jun 16 05:59:34 it was some place in the mall. i had to go to the mall because i stepped in a pile of dog shit so I threw away my converse Jun 16 05:59:42 that they offered while I was disconnected? Jun 16 05:59:42 :D Jun 16 05:59:59 oh I hide join/part Jun 16 06:00:00 was talking a nature walk with gf Jun 16 06:00:13 Shaba1: http://stackoverflow.com/questions/7817044/how-to-create-an-avd-for-android-4-0 Jun 16 06:00:20 readme: http://stackoverflow.com/questions/7817044/how-to-create-an-avd-for-android-4-0 Jun 16 06:00:21 [10:54pm] readme: now, I'll share my secret: i pasted your line into google and that is the first result. Jun 16 06:00:22 [10:54pm] readme: let me know if it works Jun 16 06:00:22 [10:55pm] Jun 16 06:00:34 I am sure SF has better places like that Jun 16 06:00:42 I've been to japan town and it was pretty awesome Jun 16 06:01:10 we met the acquaintance of some sushi chefs at some karaoke bar then went and got food there the next day Jun 16 06:02:51 Ok I did not download that ARM EABI v7 system image Jun 16 06:03:02 becasue it was 341 mb or so Jun 16 06:03:17 And I did not feel like waiting 4 hours for it to download Jun 16 06:04:21 yeah i recommend just downloading the whole sdk Jun 16 06:04:28 do it before bed or something Jun 16 06:04:45 hahaha Jun 16 06:04:53 341mb in 4 hoursd Jun 16 06:04:59 what is this , 1885? Jun 16 06:05:04 1995? Jun 16 06:05:56 On a shared wifi like yes Jun 16 06:06:35 i can download & mail you the sdk. only $9.99 Jun 16 06:06:51 per byte Jun 16 06:06:54 (plus shipping&handling) Jun 16 06:07:22 http://en.wikipedia.org/wiki/Sneakernet Jun 16 06:07:58 No nevermind Jun 16 06:13:51 JakeWharton: just pushed alpha2 with issue creation and commenting support Jun 16 06:13:59 woot Jun 16 06:14:08 but I suppose you want closing and reopening support as well? Jun 16 06:14:30 commenting and closing Jun 16 06:14:35 since I do that on 99% of new ABS issues Jun 16 06:14:36 :P Jun 16 06:14:42 at the same time? Jun 16 06:14:59 i abuse the "Comment and Close" button on GitHub Jun 16 06:15:21 the things I do to it are illegal in like 30 states Jun 16 06:15:23 but the new interface is so compact :( Jun 16 06:15:33 I'd have to add a checkbox or something Jun 16 06:15:41 nah i don't care about them being separate Jun 16 06:17:31 hah, a user sent a message along with their crash report Jun 16 06:17:34 "this sucks" Jun 16 06:17:50 we had a user send "force close all the way down" Jun 16 06:18:00 which I chuckled profusely at Jun 16 06:18:02 *at which Jun 16 06:18:11 it was a "Invalid index 5, size is 5" error Jun 16 06:18:19 don't even know what causes those Jun 16 06:18:22 so w/e Jun 16 06:18:33 off by one Jun 16 06:18:50 if size is fine you can only index 0-4 Jun 16 06:18:54 *five Jun 16 06:18:57 stupid colloquy Jun 16 06:19:02 impossible Jun 16 06:19:09 it's a static arraylist Jun 16 06:21:52 JakeWharton: nevermind, just noticed some odd behavior Jun 16 06:22:05 yeah, make that shit even Jun 16 06:22:06 the list items seem to disappear every time you move back to the fragment Jun 16 06:22:13 one at a time Jun 16 06:24:50 JakeWharton: can only reproduce on random repositories I find in the public timeline :\ Jun 16 07:49:29 EddieRingle: where's my update Jun 16 08:18:44 how do i remove all instances of a single backslash character from a string? Jun 16 08:19:16 tried org.apache.commons.lang.StringUtils.remove but that didn't remove it Jun 16 08:20:23 you need to escape it Jun 16 08:20:47 hopefully you didnt just load apache commons to remove a backslash Jun 16 08:21:39 i only loaded org.apache.commons.lang.StringUtils Jun 16 08:22:03 well i just meant including the entire in your project just for that Jun 16 08:22:31 str = str.replace("X", ""); Jun 16 08:23:50 commons isnt big, but just kind of silly to have it only for that Jun 16 08:23:50 String literal is not properly closed by a double-quote Jun 16 08:24:13 i dont know what you're talking about, that removes whatever from whatever Jun 16 08:24:17 try it Jun 16 08:24:21 instead of debating Jun 16 08:24:26 i did Jun 16 08:24:27 str = str.replace("\", ""); Jun 16 08:24:29 String literal is not properly closed by a double-quote Jun 16 08:25:01 ... Jun 16 08:25:03 \\ Jun 16 08:25:09 he told you to escape Jun 16 08:25:16 \\ doesn't do it Jun 16 08:26:50 check my stackoverflow question http://stackoverflow.com/questions/11058374/iphone-to-android-nsmutabledictionary-nsarray-to-hashmap-arraylist Jun 16 08:27:07 str = str.replace("\\", ""); still gives the same JSON output with the backslashes Jun 16 08:27:58 Jabo: are you using replace(char, char) or replaceAll()? Jun 16 08:28:23 i was using replace(char, char) Jun 16 08:28:29 i will try replaceAll() Jun 16 08:28:57 to use replace(char, char) you must use single quotes Jun 16 08:29:00 not double quoates Jun 16 08:29:50 there's a replace(CharSequence, CharSequence) though Jun 16 08:30:19 never knew that Jun 16 08:30:26 i've tried it with single quotes too Jun 16 08:30:29 oh yeah Jun 16 08:30:36 I have looking at the docs for Java 1.4 my bad Jun 16 08:30:38 replaceAll() caused a crash Jun 16 08:30:44 E/AndroidRuntime(2571): Caused by: java.util.regex.PatternSyntaxException: Syntax error U_REGEX_BAD_ESCAPE_SEQUENCE near index 1: Jun 16 08:30:57 yes, replaceAll takes regexes Jun 16 08:31:05 so you'd have to use "\\\\" Jun 16 08:31:07 you need four backslashes Jun 16 08:31:09 (yes, four \) Jun 16 08:31:11 ok Jun 16 08:32:23 nah, still has backslashes in the output Jun 16 08:33:03 .replace("\\", "") didn't work? Jun 16 08:33:17 can you paste what you're trying? Jun 16 08:34:36 http://stackoverflow.com/questions/11058374/iphone-to-android-nsmutabledictionary-nsarray-to-hashmap-arraylist Jun 16 08:34:58 Jabo: http://ideone.com/ikHV8 Jun 16 08:35:02 replace works just fine Jun 16 08:35:13 you'll see my jsonValue string on there Jun 16 08:35:15 i'm doing jsonValue = jsonValue.replaceAll("\\\\", ""); Jun 16 08:41:07 romainguy: read any good photography books lately ? Jun 16 08:41:50 g00s: no, I rarely read photo books anyway Jun 16 08:42:05 they either talk about the same stuff over and over again Jun 16 08:42:25 or go off on crazy tangents getting all philosophical Jun 16 08:42:39 hehe Jun 16 08:43:14 g00s: what's to read? they're pictures amirite! Jun 16 08:43:32 i'm about to read "Photography as Activism" Jun 16 08:44:31 i'm just a noob, but it seems you can break these books into a few categories : technique (exposure ) , technique (general) , technique (food/pets/people/wedding/etc) … color and perception, philosophy Jun 16 08:44:41 * Chainfire just finished Kelby's Digital Photography. Everything in all those books is explained at least 4 times Jun 16 08:44:49 Chainfire: yep Jun 16 08:44:51 yeah, it looked fluffy Jun 16 08:44:59 and if you've read a technique book you've pretty much read them all Jun 16 08:45:00 Kelby laughing his way to the bank, though :D Jun 16 08:45:21 the best books to me are just coffee table books Jun 16 08:45:24 you look at pretty pictures Jun 16 08:45:25 you get inspired Jun 16 08:45:28 done :) Jun 16 08:45:32 aye haha Jun 16 08:45:33 :) Jun 16 08:45:51 i have some of Bruce Percy's stuff, i find it inspiring Jun 16 08:46:40 he uses a medium frmat camera Jun 16 08:47:20 those are nice... out of my budget though Jun 16 08:47:22 ok I can remove all instances of \" which is what I want Jun 16 08:47:26 i need to replace it with " Jun 16 08:47:28 the friend I went on a road trip with last week was using a medium format too Jun 16 08:47:46 Chainfire: used digital backs are "affordable" Jun 16 08:47:47 jsonValue = jsonValue.replaceAll("\"", """); Jun 16 08:47:51 don't work Jun 16 08:47:56 my friend bought a P45 for ~9k Jun 16 08:48:05 My books are mostly silly cat books. Like "Cats with guns" Jun 16 08:48:11 Jabo: \\\\" Jun 16 08:48:18 actually Jun 16 08:48:27 no Jun 16 08:48:29 Percy uses a Mamiya 7 Jun 16 08:48:39 either 3 \ or 5 \ Jun 16 08:48:43 not 4 :) Jun 16 08:48:51 romainguy_> I can't declare those as company expense, like I do all my other gear.... Jun 16 08:48:54 Jabo: use replace Jun 16 08:49:04 .replace("\\\"", "\"") Jun 16 08:49:19 I do not understand Android's JNI work of locale at all. Jun 16 08:49:21 Oh well. Jun 16 08:49:30 Ologn: what do you mean? Jun 16 08:50:27 https://github.com/android/platform_bionic/blob/master/libc/stdlib/locale.c Jun 16 08:50:53 JakeWharton: that still gives me backslashes Jun 16 08:51:11 or i should say \" Jun 16 08:51:33 It does that...but then it actually has locale stuff within jni...or something...its odd Jun 16 08:52:25 Someone blogged they rolled their own hash tables to do locale in JNI...I started working on that Jun 16 08:52:58 Ologn: why not just pass the locale down from Java code? Jun 16 08:55:14 a Jun 16 08:55:22 mmm Jun 16 08:55:32 replaceAll("\"", ""); definitely removes all instances of \" Jun 16 08:55:39 i need to replace it with " Jun 16 08:56:19 then use "\"" as the replacement Jun 16 08:56:58 romainguy_: that's the easy part. Dealing with po and mo files and gettext is the hard part. There's unexpected behavior, like the function above. At least I can look at the source... Jun 16 08:57:07 that just puts \" back in to the string Jun 16 09:01:44 whatever you are printing with is inserting escape sequences Jun 16 09:01:55 they aren't there in the actual string Jun 16 09:02:15 it doesn't insert them if i do replaceAll("\"", ""); Jun 16 09:02:27 Jabo: no, it adds ", not \" Jun 16 09:02:28 because that removes quote characters only Jun 16 09:02:43 which do not need to be escaped in the output Jun 16 09:03:30 you're probably printing the JSON with something that is designed to parse a string value in order to be used as a JSON value string Jun 16 09:03:34 hence the escaping Jun 16 09:03:50 yeah Jun 16 09:03:51 String jsonValue = JSONValue.toJSONString(playersObject); Jun 16 09:03:57 playersObject is a hashmap Jun 16 09:04:03 or string, string Jun 16 09:04:05 of* Jun 16 09:04:56 try System.out.println(new JSONObject(playersObject)); Jun 16 09:05:31 i've been doing Log.d("Json", String.valueOf(jsonValue)); Jun 16 09:06:06 Log.d("Json", new JSONObject(playersObject).toString()); Jun 16 09:06:38 there's no JSONValue in Android Jun 16 09:06:42 are you using a third-party lib? Jun 16 09:07:42 yeah Jun 16 09:07:52 org.json.simple.JSONValue; Jun 16 09:41:12 Anybody know how to detect at runtime which languages I included in my APK ? Jun 16 09:43:19 http://stackoverflow.com/a/1495767/132047 maybe? Jun 16 09:52:34 JakeWharton> thanks, but it seems like that wont work ... :( Jun 16 09:56:22 for future reference: getAssets().getLocales() lists all the locales your app has included :) Jun 16 09:58:42 I've been recording some audio using my android app.. Now, I'd like to convert the PCM data to MP3. How would I go on about this? Jun 16 09:59:09 Been reading about Lame, the audio-thingy, but seems to be a bit of work to get it working? Jun 16 11:02:14 best way for adding prefilled sqlite-database to android app? i guess i could do it in classes with insert but i have like 100+ rows so i guess thats not the best way... Jun 16 11:04:10 if anybody was following my troubles earlier check here http://stackoverflow.com/questions/11058374/iphone-to-android-nsmutabledictionary-nsarray-to-hashmap-arraylist Jun 16 11:04:17 have got a bit further but still not finish Jun 16 11:04:21 finished* Jun 16 11:09:34 has anyone in here convergted PCM sound data to MP3 ? Jun 16 11:10:06 XeruX: man sox Jun 16 11:10:54 maraz: .. on android Jun 16 11:11:52 well, you won't be finding an encoder on google play Jun 16 11:12:05 suggest you use an online one Jun 16 11:12:10 actually, I did. but that's not what I want Jun 16 11:12:31 strange, mp3 is a patented technology Jun 16 11:12:38 I know Jun 16 11:12:39 lame or no lame Jun 16 11:13:16 I've been googling and searching all day long, and right after I asked in here, I found this: https://github.com/intervigilium/Lame4Android which might actually be exactly what I need Jun 16 11:13:20 :D Jun 16 11:23:56 in eclipse I had a project dissapear from the the projects list...how can I get it back? I right click and select import and it says the project already exists in workspace? Jun 16 11:25:32 refresh? Jun 16 11:28:11 yah I tried :( it's really weird Jun 16 11:54:09 Is this the best place to discuss NDK matters? Jun 16 11:54:22 as good a place as any Jun 16 11:55:15 OK .. I'll try to formulate my question carefully. It may take a little while. Jun 16 11:57:01 I'm trying to control the layout of code and constant data in a native library built for ARMv5. Jun 16 11:57:33 I'm using NDK 7b. Jun 16 11:59:16 I find that const char * const pointer variables cannot be put in the same section as e.g. a const char variable because the compiler thinkss the pointer should be in a writable section. Jun 16 12:00:28 Is this a fumdamental constraint of the Android loader (i.e. it needs the section to be writable to relocate the pointer) or is a compiler issue? Jun 16 12:01:02 Jun 16 12:03:00 guessed: it's not impossible, but you'll be quite lucky to find anyone around who knows the NDK to that level of detail - particularly at this time of week... you'd probably be better off asking on the appropriate mailing list Jun 16 12:03:39 OK .. could you point me at the appropriate list please? Jun 16 12:03:53 (and thanks for responding) Jun 16 12:04:05 should i be pasting my code at pastebin? Jun 16 12:06:00 guessed: https://groups.google.com/forum/?fromgroups#!forum/android-ndk I would think would be the place to start Jun 16 12:06:08 thanks Jun 16 12:06:19 nomi1988: only if you've got a question to ask... Jun 16 12:06:31 yes i do Jun 16 12:08:55 hello Jun 16 12:09:13 I am looking for android / java project :) Jun 16 12:09:45 http://pastebin.com/nnkTN178 http://pastebin.com/qwiZri7n in this file: http://pastebin.com/nnkTN178 i am removing the, line 72 when the method is called at line 60. But, the items are not getting removed Jun 16 12:10:16 they get added, line 70 works Jun 16 12:10:30 but line 72 does not Jun 16 12:11:43 best way for adding prefilled sqlite-database to android app? i guess i could do it in classes with insert but i have like 100+ rows so i guess thats not the best way... Jun 16 12:12:02 actually, the order does change, so the items ARE getting removed. But they come back :( Jun 16 12:15:20 nomi1988: without trying to understand your code - are you trying to modify a structure while iterating over it? Jun 16 12:19:04 no, i itterate first then i call notifyDataSetChanged Jun 16 12:19:37 hiya all, i've got a question about the opengl stuff in android. its quite opengl specific about glVertexAttribPointer().. is this the right channel to ask, or is there an #android-opengl or something? Jun 16 12:21:25 ok i found a ##opengl, ty anyway Jun 16 12:22:53 Younos: for what it's worth, people do discuss Android ogl stuff here sometimes - not too many active people around at this time of week though Jun 16 12:24:57 yea :o) opengl IS a part of android ^^ Jun 16 12:31:46 anything for me? Jun 16 12:42:48 the android emulator doesn't work well on the new retina macs Jun 16 12:49:00 bryanl: how not well? Jun 16 12:49:58 Leeds: it seems to not like to be pixel doubled Jun 16 12:50:41 ah, pity Jun 16 12:51:53 Leeds: http://smartic.us/doodads/5554_ics-x86-20120616-085135.jpg Jun 16 13:00:24 hey guys, can any of you help with this? http://stackoverflow.com/questions/11058374/iphone-to-android-nsmutabledictionary-nsarray-to-hashmap-arraylist Jun 16 13:21:18 is the admobs jar available anywhere? Jun 16 13:22:45 nebkat: https://developers.google.com/mobile-ads-sdk/download Jun 16 13:23:40 Leeds: thanks, have really shitty 3g internet now so cant search for it :P Jun 16 13:23:47 no worries Jun 16 13:55:03 best way for adding prefilled sqlite-database to android app? i guess i could do it in classes with insert but i have like 100+ rows so i guess thats not the best way... Jun 16 13:56:07 hi there, i can load a bitmap of 2000 * 1000 pixels in an image view, after that, if i call mImage.getDrawable().getIntrinsicWidth(); and mImage.getDrawable().getIntrinsicHeight(); i get the correct values (2000 * 1000), however if the default picture i display on application startup comes from a resource file defined in main.xml : android:src="@drawable/mypic" Jun 16 13:56:24 the image / bitmap is automatically resized, any idea how i can stop this ? Jun 16 14:06:26 hi, I have this test application that opens a socket and receives UDP packets which works great ( regular java app no android ) I then ported it over to android and there it only receives the first packet.. is there something special I should do for android? Jun 16 14:07:59 it's really very simple, just these 7 lines: http://pastebin.com/sJLsFdha Jun 16 14:10:17 dzan:just to make sure u enabled the network / internet permissions correctly in ur manifest file , right ? Jun 16 14:10:49 asterisk-Tester, but if that wasn't set up right I wouldn't receive the first one no? Jun 16 14:11:45 dzan: probably yes, but i never did any network programming in android... Jun 16 14:11:55 uhu k thx anyway Jun 16 14:12:51 dzan: ur java app and android app r running on the same machine ? is the server sending udp packets a local one or a remote one ? Jun 16 14:13:15 asterisk-Tester, the packets come from a remote server Jun 16 14:13:29 both apps here run on the same machine but it's not a port thing since i'm not running them together Jun 16 14:13:57 dzan: ok , and not a firewall issue since the java app receive the packets Jun 16 14:14:05 indeed Jun 16 14:14:19 windows machine ? Jun 16 14:14:19 I really can't figure it out it's the same code :s Jun 16 14:14:21 linux Jun 16 14:14:42 and it receives the first packet and then starts accepting again ( checked with debugger ) Jun 16 14:14:50 what is the udp packet made of ? binary data , text ... ? Jun 16 14:23:04 asterisk-Tester, text Jun 16 14:23:08 srr for late respons Jun 16 14:23:13 trying to debug it Jun 16 14:25:31 hey guys, does anyone know if your able to enable USB DEBUGGING, from build.prop? Jun 16 14:26:02 dzan: no worries, do u get any kind of error, or the receive function just time out ? Jun 16 14:26:30 asterisk-Tester, just timing out Jun 16 14:26:30 did u double check the permissions just to be 100% sure Jun 16 14:26:38 yes I did and also the first packet does come in.. Jun 16 14:26:47 check if the socket was closed or something afterwards but it's not Jun 16 14:26:48 dzan: ru sure it is not a server error ? Jun 16 14:27:09 yes, the android app does exactly the same as the java one and that works for the server Jun 16 14:30:04 whoever made it so that you can't change your nick w/o being identified while on #android-dev needs to fix that shit :P Jun 16 14:30:35 dzan: i didn't see any actual networking code in your paste Jun 16 14:30:42 dzan: what is the size of the recieved buffer ? Jun 16 14:31:01 asterisk-Tester, 1024bytes Jun 16 14:31:12 wongk-home, how do you mean? Jun 16 14:31:23 sending and receiving of data Jun 16 14:31:48 wongk-home, it's a heartbeat, I don't send anything it just comes in but I'll paste a part where some data is sent Jun 16 14:32:21 actually it's just socket.send(packet); Jun 16 14:32:27 ( not my code i'm continuing work on it ) Jun 16 14:32:39 dzan: a heartbeat of 1024 bytes ? Jun 16 14:32:58 well the buffer is that size :) the hearbeat isn't Jun 16 14:33:01 usually it is around 5 / 10 bytes Jun 16 14:33:04 1024 bytes is the buffer size Jun 16 14:33:26 ah yeah i can see that in ur paste, i meant the actual received data Jun 16 14:34:28 it's no 1024bytes :) Jun 16 14:34:59 ugh Jun 16 14:35:12 i really hate it when you get a 4star review where they ask a question Jun 16 14:35:16 and you have no way of answering Jun 16 14:35:17 and...wtf Jun 16 14:35:17 heh Jun 16 14:35:21 i Jun 16 14:35:24 er Jun 16 14:35:35 i've havent gotten a 4 star review yet :P Jun 16 14:35:50 like 1stars i dont think you could fix either way Jun 16 14:35:55 of course, i have like 15 ratings total for 3 apps :P Jun 16 14:36:00 but someone who gives you 4 obviously likes it and justs a little improvement Jun 16 14:39:24 dzan: is the sserver using a multi cast broadcast to send the udp packets Jun 16 14:39:24 ? Jun 16 14:39:36 i think it does Jun 16 14:42:45 dzan: then u have to use setReuseAddress(true); Jun 16 14:43:44 from the official documnetation : http://developer.android.com/reference/java/net/DatagramSocket.html#receive%28java.net.DatagramPacket%29 Jun 16 14:43:45 and : Jun 16 14:43:45 http://stackoverflow.com/questions/8167113/android-3-2-receive-udp-packets-does-not-work Jun 16 14:46:04 asterisk-Tester, thanks i'll check it out! hoping that's it Jun 16 14:46:11 and in java we shoulnd't set it? Jun 16 14:51:32 dzan: mmm donno, never worked on a multicast udp server / client architecture and never heard of this function before Jun 16 14:51:50 might be android specific, not sure Jun 16 14:52:30 dzan: it needs to be set on java as well, at least on top of linux Jun 16 14:52:41 could also just be differences in dalvik and oracle jvm Jun 16 14:52:45 dzan: a better design would just reuse the same socket instead of opening new ones all the time Jun 16 14:53:05 also, you can't receive anything if the socket is not open currently. Jun 16 14:57:30 dzan: did u try it ? it's just 1 function call.... Jun 16 15:06:53 asterisk-Tester, isn't that... server doesn't use that it seems Jun 16 15:07:24 Ge0rG, and i'm using the same one so that isn't it neither Jun 16 15:07:31 strange :s Jun 16 15:07:40 could it be that it's because of the emulator? Jun 16 15:09:29 How can I enable "snapshot" option in created device if I forgot to check that while creating it? Any option that I can add directly in XML config? Jun 16 15:09:55 best way for adding prefilled sqlite-database to android app? i guess i could do it in classes with insert but i have like 100+ rows so i guess thats not the best way... Jun 16 15:14:23 new Checkout Tracker released Jun 16 15:15:04 Angel07_: you can add it to assets Jun 16 15:15:18 i am not sure where it ends up on the device after installation in that case Jun 16 15:16:27 databases are typically in /data/data/your.package/databases Jun 16 15:25:04 wongk-home thx for reply... so you mean something like this... http://code.google.com/p/androidtutorial/source/browse/trunk/%20androidtutorial/EmployeeDirectory6/res/raw/sql.xml inside resources? Jun 16 15:26:00 Angel07_: not at all Jun 16 15:26:30 Angel07_: my suggestion was to put the database file in 'assets' Jun 16 15:26:52 with that caveat that you determine where the file is installed to Jun 16 15:30:42 wongk-home do you maybe have some example(link)... i am pretty new at this so i dont really understand what do you mean... Jun 16 15:32:38 is there an issue with actionbar sherlock using the shareactionprovider w/ submenus? Jun 16 15:32:52 i mean split action bar Jun 16 15:33:23 Angel07_: https://www.google.com/search?sugexp=chrome,mod=4&sourceid=chrome&ie=UTF-8&q=android+assets Jun 16 15:36:51 not sure why this is happening: http://i.imgur.com/lZpBK.png Jun 16 15:38:20 and when I uncomment those 3 lines of code Jun 16 15:38:20 http://i.imgur.com/fMick.png Jun 16 15:39:53 guess i'll just let JakeWharton know about that :) Jun 16 15:40:15 It's a framework bug Jun 16 15:40:30 Doesn't happen in the ABS implementation Jun 16 15:41:06 i'm using abs Jun 16 15:41:10 or at least i think so Jun 16 15:41:52 Your screenshot is from ICS Jun 16 15:41:57 On ICS the native implementation is used Jun 16 15:42:10 can i force it to abs? Jun 16 15:47:08 Sure, just unregister the implementation which proxies to the framework, as well as fix up the styles for ICS+ Jun 16 15:47:18 Hello, in the moment I am reading the Android Style Guide: http://android-developers.blogspot.de/2012/01/holo-everywhere.html Jun 16 15:48:24 sukramTM: that is goo Jun 16 15:48:26 d Jun 16 15:48:43 When I insert