**** BEGIN LOGGING AT Wed Jun 20 02:59:59 2012 Jun 20 03:00:04 ah Jun 20 03:01:16 Not that it should matter.. thats just the kernel (and modem since I believe they need to be pared right) you can throw an i9000 kernel onto an Americas phone (like the SGH-i897 (captivate)) but thats not chatter for here :D Jun 20 03:01:54 xorgate r u able to new File("/mnt/sdcard/.myfolder","something.jpg").isFile(); and return true? Jun 20 03:02:17 i'm having these nice issues where the app crashes on the customer's phone.. customer is half a country away Jun 20 03:02:24 silly ? but do you have permissions to access sdcard Jun 20 03:02:27 granted the country isn't that big Jun 20 03:02:49 as far as i know i'm doing things by the book Jun 20 03:03:06 one issue is that after taking a pic, the activity handling the return-intent crashes Jun 20 03:03:11 not on my phone of course Jun 20 03:03:23 i thought it might be that on the samsung, the activity gets recreated Jun 20 03:03:32 well a stack trace should narrow it down for u if they send it Jun 20 03:03:58 right, i hoped they would, made them install 'log collector', sadly it only sends irrelevant parts of the log Jun 20 03:04:01 if an activity is recreated you should b able to detect in your app no? Jun 20 03:04:28 is it a market app? Jun 20 03:04:32 yeah, one possible issue (which doesnt happen on my phone) is that it forgets what URI to put the picture in, after camera intent Jun 20 03:04:37 not yet, i can upload it Jun 20 03:04:44 to my own server that is Jun 20 03:04:45 hold on Jun 20 03:05:00 i'm just saying they can send u the stack trace if dl'd from market Jun 20 03:05:18 i have a samsung galaxy nexus i can give it a whirl Jun 20 03:05:56 great hold on, uploading Jun 20 03:06:26 barely any devs on the maret puts up their source code anymore... Jun 20 03:06:30 it's not in market yet, because it crashes :) Jun 20 03:08:19 http://www.codestare.com/Wadwaaier.apk (8mb) Jun 20 03:08:55 also, in dutch :) Jun 20 03:09:43 try 'foto' Jun 20 03:10:40 holy shit 8mb it should b one helluva an app :) Jun 20 03:10:57 it's got bitmaps for about 100 animals living on the beach ^_^ Jun 20 03:11:26 thats what i'm thinking... Jun 20 03:11:40 actually it's a digital version of http://waddenvereniging.nl/winkel/artikel.php?id=64 Jun 20 03:11:46 canvs2321: Thats something that makes me reaaaaaaaaaally laugh.. is when people rate apps low because of how "big" they are, when I bet most people who download apps on the play store have no concept of a byte Jun 20 03:11:58 why kinda app is that?! Jun 20 03:14:17 apktool isnt that good for4 getting source code... Jun 20 03:14:20 most of the java files or in smali Jun 20 03:14:24 xorgate: crashes on my A100 tablet Jun 20 03:14:29 t.t Jun 20 03:14:34 can you grab a log maybe? Jun 20 03:14:43 yup, 1 min Jun 20 03:14:43 i do not wish to learn smali's fucked up lanquage... Jun 20 03:15:23 my app is close to 2mB w assets, i'm just saying most of my size is 50% and assets the other 50, so 8mB if w extras i can see,but if strictly code then GD :) Jun 20 03:15:50 50% code * Jun 20 03:16:08 xorgate: http://pastebin.com/eVerYECt Jun 20 03:16:11 so xorgate where do they get the fc? Jun 20 03:16:31 canvs2321 somewhere after taking pic Jun 20 03:17:10 yeah i got the FC after accepting the pic Jun 20 03:17:29 jnewt great.. onActivityResult -> Intent data = null Jun 20 03:17:57 http://pastebin.com/6Ggu9enJ Jun 20 03:18:02 i thought that intent was not supposed to ever be null Jun 20 03:18:39 java.lang.NullPointerException Jun 20 03:18:40 i'd start here at nl.webiq.wadwaaier.HomeActivity.onActivityResult(HomeActivity.java:273) Jun 20 03:18:49 E/AndroidRuntime(28485): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=123, result=-1, data=null} to activity Jun 20 03:18:52 line 273 Jun 20 03:18:54 not quite sure what that means Jun 20 03:19:03 of HomeActivity Jun 20 03:19:09 yeah that line is : Uri unexpected = data.getData(); Jun 20 03:19:24 well what is data? it's returning null Jun 20 03:19:27 not expecting data to be null :) Jun 20 03:19:33 well expect it Jun 20 03:19:37 public void onActivityResult(int requestCode, int resultCode, Intent data) { Jun 20 03:19:38 or find out why Jun 20 03:20:08 yaeh i guess Jun 20 03:20:40 what is data? Jun 20 03:20:55 whatever the camera intent decides it to be Jun 20 03:20:57 oh nm Jun 20 03:21:16 well you should see why Intenet * .getData() would return null Jun 20 03:21:19 but this is good, now at least i know where it sometimes crashes :0 Jun 20 03:21:40 yeh the camera app on some phones just doesn't fill it Jun 20 03:21:43 on my phone it does Jun 20 03:22:04 well find out why, because you r using it for the pic, so if it returns null it's a crapshoot Jun 20 03:22:32 actually it was supposed to be a failsafe Jun 20 03:22:33 (lol) Jun 20 03:22:43 i tell the camera where to store the pic (uri) Jun 20 03:22:56 if i don't do that, it returns its own uri (in data) Jun 20 03:23:06 i should just get rid of that Jun 20 03:23:27 but thanks jnewt and canvs2321 this helps me quite a bit. more than the customer helped me :0 Jun 20 03:25:21 :) Jun 20 03:26:13 yw Jun 20 03:26:23 it's something i dont like particularly much about android Jun 20 03:27:08 what happens if you just hit back without taking a picture? Jun 20 03:27:35 then resultCode != RESULT_OK and nothing happens Jun 20 03:28:30 i'm pretty certain my mistake was to assume onActivityResult's 3rd param to be not null Jun 20 03:28:42 Has anyone run into any issues with eclipse/android caching your app and not updating it when you run it after changing some code? Jun 20 03:28:56 CheckSum yes.. project->clean Jun 20 03:29:00 also, don't use eclipse :) Jun 20 03:29:08 What do you use? Jun 20 03:29:30 I've tried cleaning...but it's not working. It's the 2nd time this is happening and don't know how I got rid of it last time. Jun 20 03:29:52 i use intellij IDEA, never looked back Jun 20 03:30:20 Do you just run everything from terminal then or is there a connector for emulators and what not? Jun 20 03:30:33 it's built in to the IDE Jun 20 03:30:53 it comes with Android support out of the box Jun 20 03:30:58 Awesome. Jun 20 03:31:00 I'll try that then. Jun 20 03:31:39 I'm not really understanding this whole caching thing. I've been having problems like an image not changing (when I debug) even though I've changed the image in the drawables folder and such. Jun 20 03:32:08 looks like this http://i.imgur.com/PDaYU.png Jun 20 03:33:18 Am I good to go with just the Community Edition? Jun 20 03:33:24 yep thats what i use Jun 20 03:36:09 hello guys Jun 20 03:36:10 it's even got little color selector buttons in your colors xml Jun 20 03:36:49 was wondering if it is possible to change the first 1024 bytes of a file without writing the whole file in android? Jun 20 03:37:12 say just to modify the first 1024 bytes and leave the rest intact Jun 20 03:38:06 heh if i didnt have unlimited data my wifi teather would be limited to 2G per month. im at 74G so far :/ Jun 20 03:38:13 THAT would be expensive! Jun 20 03:39:26 https://lh3.googleusercontent.com/-vOMBRn9S070/T-DXcQnGiKI/AAAAAAAAG0Y/Aqn664-5V5Q/s500/laptopMSsurface.png Jun 20 03:39:40 will google update android to using java 7? Jun 20 03:45:01 unlikely anytime soon Jun 20 03:45:22 why ? Jun 20 03:46:36 no benefit Jun 20 03:46:58 there's only one byte code-level change Jun 20 03:47:24 so if you avoid it, you may be able to use it right now Jun 20 03:49:25 Migrating from Eclipse to IntelliJ, do I just move all files there and it'll import them? Jun 20 03:49:49 ya make a project and in it a module from your sources Jun 20 03:50:03 it will import an eclipse project quite easily Jun 20 03:50:28 and then you hit alt-1 to enter project view and select the module and hit f4 Jun 20 03:51:15 they can live sidebyside on the same sources, also Jun 20 03:51:29 in case you need the gui builder Jun 20 03:53:07 Ah, IntelliJ doesn't have the GUI builder? Jun 20 03:53:28 no Jun 20 03:53:33 it has live preview though Jun 20 03:53:36 infinitely more useful Jun 20 03:54:05 i find that it often doesn't work, though Jun 20 03:54:16 yeah i never use it Jun 20 03:54:29 always just straight XML Jun 20 03:54:49 it would be nice if it did Jun 20 03:55:34 I use straight XML too but it's pretty hard to imagine what'll happen on a larger screen, no? Jun 20 03:55:59 it does have preview, you just can't edit from it Jun 20 03:56:16 it puts xml/preview side by side Jun 20 03:56:46 the only reason I like the eclipse one is that you don't have to remember all the attribute names Jun 20 03:56:57 and they way they've sorted them out now is fairly convenient Jun 20 03:57:22 "Link created Idea modules to Eclipse project files" Jun 20 03:57:25 Should I select this? Jun 20 03:59:47 I'm trying to set it up, as you said, so I can keep the same source and work with both IDEs Jun 20 04:00:19 it wont matter much i think Jun 20 04:00:26 also you'll ditch eclipse soon :) Jun 20 04:02:39 i already ditched eclipse Jun 20 04:02:48 intelij is about 384653764587368475638746573845 times saner Jun 20 04:02:56 Awesome, I'm set up. Jun 20 04:03:01 Now let's give this a try... Jun 20 04:03:08 1 thing that sucks about idea is that if i remove the toolbars at the side (which i never use), it screws up windows Jun 20 04:03:17 heh Jun 20 04:03:34 alt-tabbing to say a browser sends the alt key to that browser, opening the menu Jun 20 04:03:45 the one gripe i have is if im viewing a 2d array it displayes the data oriented wrong. ie it scans along x then down y. not down y and along x Jun 20 04:03:55 unless! i enable aero in windows which i just wont do Jun 20 04:03:58 and when i single step it collapses all views on all arrays Jun 20 04:06:53 "Module not specified"... Jun 20 04:07:06 * Leeds sings the "vim and ant" song Jun 20 04:07:06 Do you mind me asking what module you've specified in your run configurations? Jun 20 04:08:33 Nvm found a resource Jun 20 04:12:26 watch out fot a guy called theblogger Jun 20 04:12:31 spamming adsense irc network Jun 20 04:12:43 just got booted from #gentoo Jun 20 04:14:47 xorgate: i just installed intellij for the first time. am i correct that it's possible that a java sdk was not installed with eclipse and needed to be added for intellij? seems strange, but that's what seemed to have happened, unless i just couldn't find it Jun 20 04:15:26 jnewt so what you do is enter module settings Jun 20 04:15:34 then hit dependencies Jun 20 04:15:42 and find module sdk Jun 20 04:17:19 Er, I hate to be a hassle, but if this room is for app development, where ought I go to ask questions about rom development? Jun 20 04:17:44 JustAnotherNewbi: you could ask in #android-root but you'll probably get no answer... otherwise, xda is probably the best place Jun 20 04:18:10 Alright, I imagine there is not so much overlap between app and rom development? Jun 20 04:18:36 JustAnotherNewbi; if its for a specific rom, they have their own channels as well, #cyanognemod, #teamkang Jun 20 04:19:19 Ah, those might work. :P It is not for any particular rom. I was just curious to figure out how to make roms. Like, I know absolutely nothing, but I have time and interest. So, I wanted to see what it takes. Jun 20 04:19:31 xorgate: it's running fine, but i downloaded the latest sdk from oracle, JDK7, because i couldn't seem to find any jsdk on my system. i was using eclipse prior to trying this. it just seems like eclipse would need a jsdk Jun 20 04:19:32 Thank you for your help you two. It is much appreciated. Jun 20 04:19:42 JustAnotherNewbi: i would say adding features is based on app development, other aspects such as kernel are different Jun 20 04:20:18 Well, if I move to app development, any suggestions on where a non-programmer should start? Short of tackling java? Jun 20 04:20:26 JustAnotherNewbi: there's a link for compiling ics from source on xda, compiling aokp on rootzwiki, and cyanognemod on their wiki, any of those would get you started Jun 20 04:20:36 JustAnotherNewbi: yes, start by learning java Jun 20 04:21:14 Java it is, then! And compiling is one thing, I'm looking at, for the lack of a better word, tinkering. Jun 20 04:21:16 isnt IO one of these days? Jun 20 04:21:41 ah in a week Jun 20 04:21:43 anyone going? Jun 20 04:23:57 scumbag apple won't let me watch videos unless i have a mac :( Jun 20 04:24:35 Sorry for being dense.., but it won't let me debug because I haven't specified a module. Isn't my Android SDK a module? Jun 20 04:24:52 a module is for example an app you're making Jun 20 04:25:16 maybe you have a project 'android apps' and a module 'my kewl app' Jun 20 04:26:00 Right Jun 20 04:26:06 So I imported all my projects from Eclipse Jun 20 04:26:25 But they didn't automatically get made into modules? Jun 20 04:26:29 Do I have to compile first? Jun 20 04:27:39 CheckSum hit alt-1 to go to project view, and select a module then hit module settings (f4 probably) Jun 20 04:28:34 k Jun 20 04:28:35 done Jun 20 04:28:54 then you prolly need a run config for a module Jun 20 04:29:28 I made one Jun 20 04:29:39 But there's nothing displayed in the dropdown for modules Jun 20 04:29:40 find this guy http://i.imgur.com/LrC3f.png Jun 20 04:29:41 aj Jun 20 04:30:27 Let me send you a screenshot Jun 20 04:30:30 yes Jun 20 04:31:47 http://i.imgur.com/ffX7O.png Jun 20 04:32:35 lets see Jun 20 04:32:45 has nothing in it? Jun 20 04:33:12 No Jun 20 04:33:17 This is my module settings for the current project Jun 20 04:33:21 in the dependencies view Jun 20 04:33:22 http://i.imgur.com/6ktOH.png Jun 20 04:33:28 Tell me if you need anything else Jun 20 04:33:39 how about project structure -> modules Jun 20 04:34:29 im guessing the module-generation didnt work Jun 20 04:35:07 hi my phone is running eaglesblood 4.0.4. is there any way at all to restore usb mass storage functionality to it ? Jun 20 04:36:16 http://i.imgur.com/b0a1g.png Jun 20 04:38:24 i think the modules dont know they're android projects Jun 20 04:38:48 mine look like this http://i.imgur.com/0sKwY.png Jun 20 04:39:30 how about you make a new android module, over existing source? Jun 20 04:42:11 i'll admit this part is always confusing to me Jun 20 04:42:26 No problem. You've been great. Jun 20 04:42:39 I'm trying to find where eclipse stores the android-sdk Jun 20 04:42:43 I think I have two versions of it Jun 20 04:43:30 its not eclipse that does that, but the sdk manager Jun 20 04:47:45 Did you import each SDK seperately into IntelliJ (SDK 4.0, SDK 2.2, etc.) Jun 20 04:48:37 yeah in the dependencies tab make a new module sdk Jun 20 04:48:45 on an android sdk you downloaded Jun 20 04:50:32 And do that for each version? Jun 20 04:50:51 the ones you need Jun 20 04:51:05 if you target 4.0 you just need that one Jun 20 04:51:15 how beneficial would it be to compile AOSP on an SSD? Jun 20 04:51:35 versus compiling ios? Jun 20 04:51:45 heya Jun 20 04:51:53 no, vs compiling on HDD :s Jun 20 04:52:06 how would you even go about compiling iOS without its source :S Jun 20 04:52:07 so i lost my development keystore Jun 20 04:52:10 all i know is that i dont want to use hdd for anything anymore Jun 20 04:52:16 and now i havbe to re-create a new one Jun 20 04:52:27 havent done this in a while.. Jun 20 04:52:31 xorgate got bad sectors yet? Jun 20 04:52:36 Assid, google it Jun 20 04:52:37 so why is it asking me for a password for an alias ? Jun 20 04:52:50 Afzal nope, 2+ years, 2 ssd in raid0 Jun 20 04:52:51 Afzal: google said re-create a new one.. re-publish Jun 20 04:53:22 actually i have 2 hdds in here for media Jun 20 04:53:53 xorgate I have exactly 1 bad sector on my OCZ Vertex 4, should I return it? Bought it last week and haven't used it at all Jun 20 04:54:16 Assid: even development keystore has a password (yes the one created by android) Jun 20 04:54:16 im not comfortable giving advice like that Jun 20 04:54:40 pboos: no.. it asked for a password for a keystore.. now its asking for the alias Jun 20 04:54:42 Assid: the debug keystore (that is the one you are talking about, right?) Jun 20 04:55:09 Assid: A keystore can have many aliases inside, so one password for the keystore, one for the alias. all normal Jun 20 04:55:31 what i dont understand why would you need an alias Jun 20 04:55:34 Assid: http://developer.android.com/guide/publishing/app-signing.html Jun 20 04:55:58 Assid: because that is how the keystore works.. you could have a keystore that you use to sign different apps. Jun 20 04:56:38 xorgate: Actually, then I should be fine. It won't let me import individual platforms anyways :S Jun 20 04:57:19 Assid: well let us say it that way: a keystore = a store for multiple keys. an alias = alias of one of the keys stored in the keystore. Jun 20 04:57:31 hmm ok Jun 20 04:57:35 Assid: keystore has a password to unlock the keystore. and each key again has a password Jun 20 04:57:54 but in general people use a single key right Jun 20 04:58:28 Assid: for one app one key, yes. but if you have multiple apps, you might be better off using a different key for each app. but i think you could use the same for each app. not sure though Jun 20 04:59:17 lol why does the us hate iran so much Jun 20 04:59:22 okaym, so in eclipse, i asked it to create a signed apk.. i created my keystore and alias.. does this mean the apk is the release ready ? Jun 20 05:00:20 xorgate: Why do you say that? Jun 20 05:00:55 Assid: in eclipse you need o right click the project -> Export -> Android -> Android application Jun 20 05:00:57 CheckSum cause i read here that it's official the us made Flame Jun 20 05:01:09 'here' being the internets Jun 20 05:01:26 Assid: there you as well specify which key to use and where to save the signed apk. Jun 20 05:01:54 doesnt right click > android tools > export signed application package do the same thing Jun 20 05:07:42 im trying to set an empty view for my listview by first setting the adapter when an empty arraylist before my asynchronous data fetching is complete, but instead of showing my empty view, it just shows black. any ideas? Jun 20 05:07:53 adapter with an empty arraylist* Jun 20 05:08:32 the views have nothing in them -> size = 0 Jun 20 05:08:41 so you see whats behind the listview Jun 20 05:09:10 Anyways, thanks xorgate for your help! Jun 20 05:09:22 CheckSum got it working? Jun 20 05:09:33 No, but I'll try again tomorrow Jun 20 05:09:38 Might just manually import each project Jun 20 05:10:09 xorgate, huh? im calling listview.setEmptyView which should display when the adapter is null or the data that backs it is empty Jun 20 05:10:31 oh, right Jun 20 05:11:08 well how about some code Jun 20 05:13:30 pretty straightforward, this is in onCreateView of my fragment, at the end: https://gist.github.com/2958241 Jun 20 05:13:48 Assid: sorry.. was quickly gone.. yes, that does the same. Jun 20 05:13:48 right before this i make an async call, which when completed sets the adapter again with actual data Jun 20 05:13:49 hmm the screenshot button doesnt work in my avd Jun 20 05:14:05 stupid emulator Jun 20 05:14:24 pboos: anhy clue why the screenshot button doesnt work on the emulator? Jun 20 05:14:50 luxurymode: about that empty view.. you are doing it wrong. but it is hard to notice how it is meant to be... Jun 20 05:15:03 luxurymode: put the view in the XML where you as well have the ListView Jun 20 05:15:08 pboos, im doing it wrong? care to explain why? Jun 20 05:15:14 and make it occupy the space.. and show it :) Jun 20 05:15:19 hmm getting out of memory errors, anyone got any amazing tips :) Jun 20 05:15:23 y Jun 20 05:15:27 pboos, why should i have to do that? theres an API that has a setEmptyView method... Jun 20 05:15:30 than set it with setEmptyView(findViewById(R.id.view); Jun 20 05:15:58 pboos, but i cant find the view by id because it doesnt exist anywhere in my view hierarchy currently... Jun 20 05:15:58 luxurymode: because how i noticed, all the adapter does is: set the view visible or gone depending on if the adapter is null or empty. Jun 20 05:16:10 oh interesting Jun 20 05:16:15 fair point Jun 20 05:16:33 luxurymode: i tried it your way once and noticed it did not work. did it the way i told you know, which seems to work in my app :) Jun 20 05:16:47 you can also set it in xml Jun 20 05:16:49 so i'll just wrap my listview in a framelayout and try that Jun 20 05:16:55 luxurymode: so i am guessing it only does setVisibility GONE or VISIBLE.. Jun 20 05:17:05 luxurymode: let me confirm that by checking android source :) Jun 20 05:17:35 luxurymode: that is exactly what i did :) should work Jun 20 05:18:22 luxurymode: i was right. code in android does EXTACTLY what i said :) Jun 20 05:18:40 This is the function from ListView: https://gist.github.com/52ccdb7bd6b6209b53cf Jun 20 05:18:52 okay seriously why isnt my screenshot button working? Jun 20 05:19:02 lemme give this a shot Jun 20 05:19:27 luxurymode: and it as well sets the lists own visibility mode :) Jun 20 05:19:30 pboos, right so it doesnt add the view and swap it but just changes the visibility Jun 20 05:19:41 assid try ddms.bat Jun 20 05:19:49 luxurymode: exactly. i as well thought it would do that at first.. Jun 20 05:19:52 pboos, that worked Jun 20 05:20:24 why do my damn indeterminate progressbars always spin like crap Jun 20 05:20:30 theyre so choppy Jun 20 05:21:26 Assid, what is a screenshot button? Jun 20 05:21:40 do you talk of a self-created one? Jun 20 05:22:00 but there s a button for it Jun 20 05:23:04 you mean a hotkey-combination on hardware? Jun 20 05:23:10 emulator Jun 20 05:23:16 ah Jun 20 05:23:19 which did you try? Jun 20 05:23:52 http://qdevarena.blogspot.de/2009/04/how-to-take-screenshot-in-android.html Jun 20 05:24:26 however, i've to go to work. bye. Jun 20 05:26:21 i hope they do a good job again of prompty posting the i/o vids; tere are a lot of interesting ones i would like to see this year Jun 20 05:27:23 last year it was live, no? Jun 20 05:27:39 i guess wed-thurs is the ms dev conference? outlining what will be in wp8 - i'm sure timimg is not a coincidence. Jun 20 05:27:45 at least over here there's a viewing 'party', at google though Jun 20 05:38:13 can i create an array of user defined classes in array.xml? Jun 20 05:38:21 or just basic data types Jun 20 05:38:53 hmm seem to have a memory leak Jun 20 05:42:14 gaz`: still :) Jun 20 05:43:00 yeh Jun 20 05:43:03 dont get it really Jun 20 05:43:07 how do u free up memory Jun 20 05:43:56 I440r: sure Jun 20 05:44:06 put the names of the classes in the xml file Jun 20 05:44:17 then do this http://www.javapractices.com/topic/TopicAction.do?Id=113 Jun 20 05:44:55 its easier if you have a no-arg ctor Jun 20 05:45:14 gaz`: have you analyzed your problem with MAT yet ? Jun 20 05:45:42 i honestly haven't used the tool; but others say it works very well Jun 20 05:46:58 damnit, i got mosquito bites on my mosquito bites Jun 20 05:47:13 stop feedin the skeeters Jun 20 05:47:24 eat something that makes u taste bad :) Jun 20 05:47:40 tho i seem to be a skeeter magnet too :/ Jun 20 05:47:40 i thought they go for co2 Jun 20 05:47:51 thtas how they detect you yes Jun 20 05:47:59 i tried holding my breath Jun 20 05:48:05 that didn't work though :/ Jun 20 05:48:23 maybe i can use some sort of o2 tank Jun 20 05:49:04 where u at goos? Jun 20 05:49:09 az Jun 20 05:49:18 damn thats where i want to be Jun 20 05:49:24 im stuck in illANNOY Jun 20 05:49:25 wat !? Jun 20 05:49:27 Where in AZ? :D Jun 20 05:49:27 i loved az Jun 20 05:49:48 i lived in phoenix for 3 years Jun 20 05:49:52 samosa: in snottsdale Jun 20 05:50:00 * samosa used to be in AZ aswell Jun 20 05:50:04 heh well i lived in tempe Jun 20 05:50:20 Gilbert , 5 years Jun 20 05:50:37 i'd probably rather be in gilbert. i lived there and went to usery state park a lot Jun 20 05:51:08 when i applied for my az permit they required an SSN on the form. i refused to put it ont there and mailed the dps asking if they would reject it. they said they would Jun 20 05:51:24 i told the i would then sue them for violation of the 1975 privacy act Jun 20 05:51:53 got a mail weeks later from "Renee. S. Wilson" supervisor in charge of the Arizone DPS, handgun licensing division Jun 20 05:52:05 "the state of arizona will no longer be requiring SSNs....." Jun 20 05:52:13 they made the ssn optional on their forms Jun 20 05:52:20 handgun what? Jun 20 05:52:27 you americans are WEIRD Jun 20 05:52:33 yes. az no longer requires a permit either Jun 20 05:52:38 unless you want to carry in a bar Jun 20 05:53:14 hmm, i don't recall having to give my ssn when i got my gun. but i didn't get a ccv Jun 20 05:53:37 g00s you never needed a permit to carry open which i always did Jun 20 05:53:45 but an az permit is useful in OTHER states too Jun 20 05:54:05 i went through many years of running, biking, hiking, and backpacking in the wilderness w/o any cares, no gun - and then i had an incident Jun 20 05:54:07 now you can carry both open and conealed with no ccw. Jun 20 05:54:16 and then i got a gun :| Jun 20 05:54:28 good. you survived your first lesson Jun 20 05:55:04 when i was living in indiana the guy at the bottom of the hill bread wolves Jun 20 05:55:18 he had a FUCKING HUGE alpha male wolf chained to a spike in hs back yard Jun 20 05:55:19 cool! i want one! can you hook us up ? Jun 20 05:55:24 just kidding ;) Jun 20 05:55:28 i was waling my dog and he came charging at me Jun 20 05:55:29 anyone running 2.3 on a device with front cam willing to test an app? Jun 20 05:55:46 i thought it was going to do the foghorn leghorn thing and yank to a halt at the end of the chain Jun 20 05:55:47 it didnt Jun 20 05:56:04 it ripped 3 foot of coil spike right out of the ground and came charging at me trailing it behind Jun 20 05:56:12 i was on the opposite side of the road Jun 20 05:56:35 i fired one round into the ground and it halted just shy of the road and went back to the back yard Jun 20 05:56:41 JakeWharton: did you say i can change the options menu panel bg color? did i misunderstand you ? Jun 20 05:56:45 the owner came out with a baseball bat and asked if i had just shot his wolf Jun 20 05:57:09 i told him 'NO but if it had taken ONE FUCKING STEP further i would have and if you had come out of the house with a baseball bat i would have shot you next" Jun 20 05:57:13 I440r: you also need to shoot "a video" and sue his ass Jun 20 05:57:33 he called thec cops on me and i told the cop that exact story, the full truth Jun 20 05:57:36 somebody else is going to get screwed by that idiot Jun 20 05:57:42 he laughed and said yea thats whta i would have done Jun 20 05:57:43 and left Jun 20 05:57:48 the guy never talked to me again Jun 20 05:57:57 he used to have 40 wolves Jun 20 05:58:19 the authorities came by and told him it was 400 dollars per wolf over 10 for the breeders license Jun 20 05:58:30 he let all but 10 go free Jun 20 05:58:39 shoo. shoo... go away im not feeding you any more... Jun 20 05:58:51 honestly, i wonder if they survived Jun 20 05:58:59 some of them maybe Jun 20 05:59:05 wolved in captivity have to be retaught how to hunt Jun 20 05:59:14 there are alot of wild dog packs in indiana, and wild wolves and coy dogs and cyote Jun 20 05:59:30 probably lots of Fox News fans too Jun 20 05:59:34 haha, could not resist Jun 20 05:59:37 XD Jun 20 05:59:39 the wild dogs will send 2 dogs into your back yard, bait yoru dogs, get them to chase them. and then the pack will kill them and have a snack Jun 20 05:59:53 :| Jun 20 06:02:30 I440r: you need to install these http://www.youtube.com/watch?v=8FQR-JgqAwU Jun 20 06:03:51 those would work nice for home defense :) Jun 20 06:04:28 tho i do like my 1911 Jun 20 06:04:58 i like my glock 20 :) Jun 20 06:05:06 glocks go kaboom Jun 20 06:05:12 polagonal rifling for the LOSE Jun 20 06:05:24 I don't know anyone who has a gun Jun 20 06:05:27 also. they do not support the brass adaquatly at the base and you cannot reload anything fired in a glock Jun 20 06:05:49 next time you go shooting pick up a piece of spent brass and inspect the casing at its base Jun 20 06:06:04 you will find an ugly bulge in it making it impossible to resie it for reloading Jun 20 06:06:11 unsafe to reload Jun 20 06:06:22 and that polagonal rifling is a horrendously BAD idea Jun 20 06:06:31 honestly, this stuff is in storage and i haven't used it in a while. i really only take mine when i go backpacking now Jun 20 06:06:35 glocks are also fugly as hell Jun 20 06:06:52 tuppaware :) Jun 20 06:07:13 i would get it out of storage and wear it all the time. but upgrade to a 1911 ftw Jun 20 06:07:15 yeah, they are fugly, but someone i knew (dillon precision) said they work great in dirty disty shit like az Jun 20 06:07:45 the best defensive handgun ever devised by man is the 1911. get a nice kimber or springfield Jun 20 06:08:15 * jnewt 's 1911 is a kimber Jun 20 06:08:26 can i define items in hex in my arrays.xml? Jun 20 06:08:33 0x1234 ? Jun 20 06:08:37 so, there were really 2 incidents that led me to get one. first, was my own camping incident. second, a friend was with a pty traveling my horse on the north rim of the grand canyon and a bear attacked them all, and killed the horse - rider fell off, it was crazy Jun 20 06:08:40 jnewt which kimber? Jun 20 06:08:50 i have a kimber classic custom and a aegis ultra II Jun 20 06:09:03 Pro CDP II Jun 20 06:09:09 nice Jun 20 06:09:17 kimber is getting expensive now tho Jun 20 06:09:32 anyone running 2.3 on a device with front cam willing to test an app? Jun 20 06:09:48 is there no way to pass data to / from activities after start and before finish? like a continuous data transfer without a background service? Jun 20 06:09:56 can array items be expressed in hex? Jun 20 06:11:10 yes? no? Jun 20 06:11:16 in arrays.xml i mean Jun 20 06:11:25 I440r: but from what i read, bear spray may be more effective than guns so i may just go with bear spray more often Jun 20 06:11:54 g00s depending on gun and shot placement you might just piss it off Jun 20 06:12:02 yeah Jun 20 06:12:04 a 45 in the eye would work. Jun 20 06:12:17 yeah, i would imagine :| Jun 20 06:12:18 anywhere else and you might want a 30-06 Jun 20 06:12:43 0x218a <-- is that legal in arrays.xml? Jun 20 06:13:02 i cant test. gentoo upgraded my java and i have to reconfig my idea Jun 20 06:13:08 and i ferget how lol Jun 20 06:13:11 I440r: it'll probably come up as text Jun 20 06:13:19 I440r: just convert it back in java Jun 20 06:13:19 its an integer array Jun 20 06:13:27 and text would not be acceptable Jun 20 06:14:00 decimal woujld be a MAJOR pain in the FUCKING ass. why is google so fucking stupid sometimes Jun 20 06:14:04 real coders use HEX for everything Jun 20 06:14:53 I440r: what are you trying to achieve exactly? Jun 20 06:14:59 what do the values represent? Jun 20 06:15:45 i have a tile map. coordinates in the tile map are broken down into block/tile each block is 16x16. i have 32 blocks wide and 16 high. so i might have a coordinate of 0x218a Jun 20 06:16:06 second grid from the left. one grid down. within that grid im at x = 8, y = 10 Jun 20 06:17:03 so far im pretty damned pleased with my tile engine considering this is my first ever java/android whatsit. Jun 20 06:17:17 i got line of site shading perfect :) Jun 20 06:17:33 is there a question coming Jun 20 06:17:49 yes. wy cant i express integers in HEX in arrays.xml Jun 20 06:17:49 mmmhhh does nobody have gb device with front cam ? Jun 20 06:17:49 I440r: i don't see a way of putting a hex # in resources Jun 20 06:17:58 I need someone to test an app Jun 20 06:18:03 g00s blargh Jun 20 06:18:14 yeah, it does seem pretty lame Jun 20 06:19:21 hex makes a man out of you, it puts hairs on your chest. i know, i have one now Jun 20 06:19:40 google mustbe full of decimal weeners Jun 20 06:20:57 ok so my intelij idea is configured to use jdk-1.6.0.31 but i just emerge updated to 1.6.0.33 Jun 20 06:21:02 and i cant make it use that Jun 20 06:21:14 I440r: did you try 0x ? Jun 20 06:21:19 i see you can use 0x with ids Jun 20 06:21:26 yes i use 0x Jun 20 06:21:41 i did 0x1234 and i cant tell if it will work or not, i cant compile shit right now Jun 20 06:21:57 intelij idea cant find 1.6.0.31 because i updated to .33 Jun 20 06:23:32 ok fixed it and with 0x1234 in my arrays it seemed to compile just fine Jun 20 06:23:43 but... is the compiled value what i expect Jun 20 06:23:49 have to add some debug code to test Jun 20 06:26:13 i am starting to like this intelij idea alot Jun 20 06:26:32 and i have a tradition for being violently alergic to all IDE's Jun 20 06:26:53 *twitch* Jun 20 06:27:21 google should adopt this as their standard ide and totally dump all support for that eclipse abomination Jun 20 06:27:27 eclipse is worse than emacs Jun 20 06:28:07 yea phew. 0x1234 works in the arrays.xml Jun 20 06:28:13 lol i would have been a pita had it failed Jun 20 06:41:18 seems i has coding skillz! i can skillfully code myself into a hole i cant get out of! Jun 20 06:41:20 ftw Jun 20 06:41:39 stop digging Jun 20 06:42:00 never! Jun 20 06:44:51 iOS version of my game is waiting for review on iTunes! Jun 20 06:46:16 mobilegamelabs: will be interested to hear how it goes, how long it takes, if you get any feedback from them Jun 20 06:46:28 :) Jun 20 06:46:35 mobilegamelabs: nobody cares about ios Jun 20 06:46:40 lol Jun 20 06:46:40 anyone running 2.3 on a device with front cam willing to test an app? Jun 20 06:47:16 Leeds: surely will report again here :P Jun 20 06:47:29 also, have you sold anything yet? ;) Jun 20 06:47:48 nebkat: the sale on Google Play is not good :( Jun 20 06:47:53 Leeds: no :( Jun 20 06:48:00 :( Jun 20 06:48:01 mobilegamelabs: what game have you released? Jun 20 06:48:10 this sucks Jun 20 06:48:22 I have asked in 3 channels with 300+ people and nobody has a gb phone with ffc xD Jun 20 06:48:43 probably most of the phones with ffc have ICS now :p Jun 20 06:48:47 nebkat: I did, but I upgraded it to ICS Jun 20 06:48:48 There are 2 versions: Free and Premium. No downloads for premium. For the Free version: Day1:4 downloads Day2: 8 downloads Day3: waiting for stats Jun 20 06:48:53 yeah same Jun 20 06:49:04 nebkat: Angry Polygon http://www.MGGGGG.com/ap Jun 20 06:49:10 FFC ? Jun 20 06:49:11 mobilegamelabs: link? Jun 20 06:49:16 please leave me a rating or comment if you have time thanks…!!!!!! Jun 20 06:49:22 Assid: front facing cam Jun 20 06:49:30 mobilegamelabs: have you checked for cracked versions? Jun 20 06:49:36 my bro has a sony xperia s Jun 20 06:49:38 they seem to be a huge issue these days :/ Jun 20 06:49:45 Assid: YES Jun 20 06:49:49 Assid: GIEF ME NAO Jun 20 06:49:58 mobilegamelabs: you probably need to work on some marketing. Apps on google play are not very discoverable Jun 20 06:49:58 Assid: #th-s? Jun 20 06:50:03 the best thing you can do is get it featured Jun 20 06:50:16 nebkat: if mean people would download a cracked version instead of buying my game? Jun 20 06:50:16 but that isnt easy... Jun 20 06:50:16 nebkat: ? Jun 20 06:50:35 wabz: exactly my situation!!! Jun 20 06:50:37 Assid: want to go #teahhacksung-support? Jun 20 06:51:02 wabz: i am still think of a good marketing plan.... Jun 20 06:51:06 mobilegamelabs: don't worry about pirates until you're popular enough that people care about you Jun 20 06:51:06 *thinking Jun 20 06:51:08 mobilegamelabs: it happens all the time, sadly Jun 20 06:51:28 Leeds: i would be happy if there is a pirate version :P Jun 20 06:51:35 exactly Jun 20 06:52:05 how can i get my game featured? Jun 20 06:52:22 try things like getting +Android Developers on g+ to review it Jun 20 06:52:33 make friends with those people :p Jun 20 06:52:52 oh! never thought of this way! Jun 20 06:52:56 what's + Android? Jun 20 06:52:56 Leeds: I remember seeing on xda, some app had been bought like 10 times and the dev saw over 4000 installs in ganalytics Jun 20 06:53:07 mobilegamelabs: https://plus.google.com/108967384991768947849/posts Jun 20 06:53:34 ah...! Jun 20 06:53:42 nebkat: such is life Jun 20 06:54:39 there are certain things you can do to make it very tricky to pirate your app.. combination of cert checks from play/your server Jun 20 06:54:50 wabz: nah Jun 20 06:54:53 wabz: they crack it in the end Jun 20 06:54:55 with online content if your app works like that Jun 20 06:54:57 just takes 2 days longer Jun 20 06:55:01 xD Jun 20 06:55:02 sure Jun 20 06:55:13 but they might pick lower hanging fruit :p Jun 20 06:55:30 do these pirated sites take DMCA requests? Jun 20 06:55:42 I think google must recognise it as a legit problem because they've been offering advice on how to deal with it Jun 20 06:56:31 mobilegamelabs: testing your app ;) Jun 20 06:56:39 I've come to the conclusion that this listview animation problem I've bene having is definitely an android bug Jun 20 06:57:06 mobilegamelabs: just share it with your friends, keep high ratings, and hopefully you get it featured somewhere Jun 20 06:57:17 nebkat: thanks!!! Jun 20 06:58:24 and, would you happen to have a gb device with ffc? xD Jun 20 06:59:12 heeey, first time here, wanted to say hi Jun 20 06:59:21 wabz: if i promote my game in their g+, i may be banned :P Jun 20 06:59:44 they do these friday review things Jun 20 06:59:48 nebkat: what do you mean? Jun 20 06:59:53 not atm because of google IO Jun 20 07:00:01 but there's a way to get them to review your app in that Jun 20 07:00:01 mobilegamelabs: do you have a device on gingerbread with a front facing camera? Jun 20 07:00:04 that might be a good start Jun 20 07:00:19 obviously don't go spamming yoru app everywhere Jun 20 07:00:28 nebkat: sorry no... Jun 20 07:00:29 wabz: you seen the 4.1 rumors? :D Jun 20 07:00:50 which ones? ;p Jun 20 07:00:58 wabz: ah, interesting.. Jun 20 07:01:17 wabz: so… what part in their g+ is best to advert m game? Jun 20 07:01:21 *advertise Jun 20 07:02:05 mobilegamelabs: iirc you can just write in the comments Jun 20 07:02:11 I just started using a sliding-menu library, but want to use action bar sherlock as well -- ABS requires that my activity extend one of its classes, but so does the sliding menu.. I've tried to extend the sliding menu, and then the sliding menu extend ABS but it doesn't work.. looking for suggestions as to how I can get ABS to love me Jun 20 07:02:41 mobilegamelabs: just dont always expect much, the luckiest many people get is seing their app in the drawer on a friday review. at least it means it has been tested :) Jun 20 07:03:06 nebkat: thanks! Jun 20 07:03:44 not every game is going to be a fruit ninja or angry birds Jun 20 07:17:40 I440r: my current target is to get 1000 downloads each month.. Jun 20 07:18:33 mobilegamelabs: finally downloaded your app on this shitty 3g lol Jun 20 07:19:24 mobilegamelabs: nice app, but you probably need to polish it slightly more... Jun 20 07:19:59 nebkat: thanks!! Jun 20 07:20:09 any specific one? Jun 20 07:20:39 mobilegamelabs: well first of all, make it work in 16:9 Jun 20 07:20:48 its annoying having padding on the side of the screen Jun 20 07:21:09 then also, make all the transitions be smoother Jun 20 07:21:10 for example Jun 20 07:21:20 the win text should not go under the circle in the top left Jun 20 07:22:24 is the padding black in color in your device? some people told me the padding repeats the game scene in their devices... Jun 20 07:22:40 nebkat: yup! i will try to correct the position of the win ! Jun 20 07:22:40 mobilegamelabs: its black on s3 Jun 20 07:22:52 mobilegamelabs: but its very possible that it repeats it Jun 20 07:22:54 anyway im off Jun 20 07:22:58 ttyl and good luck ;) Jun 20 07:23:04 nebkat: thanks! Jun 20 07:38:25 is there any other android related channels? Jun 20 07:40:46 mobilegamelabs: many depending on WHAT you want #android #cyanogenmod #cyanogenmod-dev and for sure many more Jun 20 07:41:47 pboos: thanks!!! Jun 20 07:42:11 mobilegamelabs: #android-firehose (realtime commits) Jun 20 07:42:36 mobilegamelabs: and #android-root :) Jun 20 07:44:12 pboos: thanks!! Jun 20 07:50:52 yeowza ! http://www.appleinsider.com/articles/12/06/20/pc_makers_hint_at_feelings_of_betrayal_over_microsofts_surface_tablet.html Jun 20 07:51:17 well, the oems all suck anyhow Jun 20 07:54:29 anyone running 2.3 on a device with front cam willing to test an app? Jun 20 08:00:00 Ovum's Dawson said Microsoft was giving its OEM partners "a huge vote of no confidence" … haha, no shit Jun 20 08:52:39 hi guys Jun 20 08:53:19 Hello, I have a file with gps coords in every line (9.34669876098644,48.2405319213867), now I want to parse the file and make geo points. First I open the file and read the line, than I split the line and want to make the string to an int. But than i got an NullPointerException after the Log in line 11: http://pastebin.com/snX4iWW8 Jun 20 08:53:54 i found BlueStack app, which allows to run Android app on Windows. this is pretty interesting, but i am wondering how BlueStack works internally. any idea? Jun 20 08:54:20 im guessing it doesnt Jun 20 08:54:42 i suppose BlueStack works like Wine (Windows emulator for *nix), or they have an emulator inside like Qemu... Jun 20 08:55:37 but BlueStack seems fast, so it doesnt seem to use the same emulator method as Qemu... Jun 20 08:56:16 I think bluestack is a dalvik VM on windows Jun 20 08:57:33 i guess the technique of BlueStack must be discussed or documented somewhere, but i cannot find that Jun 20 09:01:16 hi all. Jun 20 09:01:59 i've one general question about developping an android app.. is there a built-in handling for connection interrupts (wifi and/or 3g loss e.g. during a download) that manages this situation, or is it my concern as developer to handle this situation - and if it's my concern, is there maybe a guide or how-to available on android developers? Jun 20 09:03:36 TabActivity is deprecated. is there a replacement for single activity tab switching (non-fragment)? Jun 20 09:03:54 capcom: if you use the downloadmanager, it's done for you - otherwise, I guess not Jun 20 09:04:26 capcom: that's Gingerbread+, if it matters to you Jun 20 09:06:14 Leeds: ok thanks.. so with 2.3+ and download manager (dm) should be no problem for me, with 2.1, 2.2 and anything that's not done by dm i have to care for it Jun 20 09:06:24 I think so, yes Jun 20 09:06:55 is there a guide how to handle this as best-practice? Jun 20 09:07:14 might be a common situation Jun 20 09:10:59 none that I know of - feel free to write one Jun 20 09:13:36 ok.. i'll try out some ideas and if one works best i'll work out a (possible) how-to. thanks Jun 20 09:14:20 Hello, I have a file with gps coords in every line (9.34669876098644,48.2405319213867), now I want to parse the file and make geo points. First I open the file and read the line, than I split the line and want to make the string to an int. But than i got an NullPointerException after the Log in line 11: http://pastebin.com/snX4iWW8 Jun 20 09:17:37 is it possible to take an image from a surfaceview? Jun 20 09:17:49 i.e. to take a cam pic without making click noise lol Jun 20 09:23:03 jnewt: but you can still use tabActivity Jun 20 09:23:39 I had a looked @ BlueStack, it is not possible to install an own apk file in this emulator? Jun 20 09:25:09 edwinkcw: yeah, I'm using it now, and it works. but it shows deprecated, and all the docs do so as well, to be replaced with fragments, which really aren't that good for what i'm doing. Jun 20 09:25:38 sukramTM: a serious point to consider: don't parseInt floating point values Jun 20 09:26:12 jnewt: yep, I think there are only two solutions for your problem... either framgent or tabactivity Jun 20 09:27:14 sukramTM: try something like Double.valueOf("12.2342342") Jun 20 09:27:17 yeah, that's what i gathered. I don't know why they would deprecated that functionality, it's altogether different than fragments (other than what the user sees) Jun 20 09:27:43 alankila: i will try Jun 20 09:28:07 sukramTM: after that you shuld have the precision of the values intact and you can do the (int)(x*1e6) thing Jun 20 09:33:28 alankila: seems lik i dont understnad what you mean. I changed to Double x = Double.valueOf(point_t[0]); but the same error Jun 20 09:33:51 well it's still improvement Jun 20 09:33:58 maybe your point_t[1] or something is null Jun 20 09:35:04 I mean, if Double.valueOf is what fails, throwing NPE, I can only guess that is why Jun 20 09:35:32 I dont understand why I got an nullpoint, because Log.d("4:",point_t[0] + " - " + point_t[1]); give me back 9.34669876098644 - 48.2405319213867 Jun 20 09:39:15 hm Jun 20 09:41:02 Is there another way to parse the file? Jun 20 09:48:45 hello. have someone any example how to connect to bluetooth printer and send print commands esc/pos? tnx Jun 20 09:49:53 hello Jun 20 09:50:04 sukramTM: can you post the bib.txt as well? Jun 20 09:50:51 hmm, is there a way to force the vm to throw an exception in the Out of Memory case? Jun 20 09:50:58 i'd like to debug that :D Jun 20 09:53:50 hmm, interesting.. i didn't see a stacktrace in the log specific to our app.. Jun 20 09:53:58 in the general log, this pops up though: Jun 20 09:54:45 06-20 11:50:14.704: I/DEBUG(64): d18 0707070703030303 d19 0000000000000000 Jun 20 09:55:01 06-20 11:50:14.754: I/DEBUG(64): ab14b0d4 e1500001 e92d4070 e1a05001 e1a04000 Jun 20 09:55:14 ah, damn you eclipse for copying the wrong line in the log.. Jun 20 09:55:14 meh Jun 20 10:16:58 lut4rp: http://www.newgrounds.com/portal/view/511754/group/1/play/3078 Jun 20 10:30:20 does anyone have any idea why a program works when run inside Eclipse, but explodes when exported to an .apk and then installed with adb install package.apk ??? Jun 20 10:30:57 'explodes' is a new technical term meaning "here's my error message, please help me understand it"? Jun 20 10:31:24 uhuh Jun 20 10:31:26 xroberx: is there any log message after install the apk? Jun 20 10:31:40 ExplodeException Jun 20 10:31:43 install successfull Jun 20 10:31:53 xroberx: I mean runinng the app Jun 20 10:32:04 oh, a nullPointerException Jun 20 10:32:17 but it's the exact same program, it shouldn't happen Jun 20 10:32:44 xroberx: ummm...where does it throw? Jun 20 10:34:17 edwinkcw: 06-20 12:34:34.627: W/System.err(26280): java.lang.ClassNotFoundException: SerializedObject3D Jun 20 10:34:39 but the class is there, otherwise it wouldn't work when run from within Eclipse Jun 20 10:34:59 oh, I'm using JDK7, maybe it has something to do with it ? Jun 20 10:35:05 when you say "from within Eclipse" do you mean in the emulator? Jun 20 10:35:25 xroberx: are you using external lib? Jun 20 10:35:27 Leeds: no, on a real device, I don't use the emulator for GL ES 2 programs Jun 20 10:35:38 edwinkcw: yes Jun 20 10:35:48 edwinkcw: an Android Library project Jun 20 10:35:49 xroberx: do you put it in the lib folder? Jun 20 10:36:01 xroberx: it needs to package it into apk file as well Jun 20 10:36:50 edwinkcw: so, how come it's not done automatically ? The application has been previously uploaded to the market and it works Jun 20 10:37:03 xroberx: not sure.. Jun 20 10:37:47 xroberx: but you can try first Jun 20 10:37:49 the only thing I can think of is a minor upgrade of openjdk 7 Jun 20 10:38:08 xroberx: I don't think it is related to openjdk Jun 20 10:38:08 I recall there are some open bugs regarding signatures with JD7 Jun 20 10:38:31 then change the compile in the property of your project Jun 20 10:38:56 compiler Jun 20 10:41:15 edwinkcw: it's already changed, otherwise it wouldn't work from the beggining Jun 20 10:42:07 edwinkcw: I really suspect it has something to do with JDK7, because if I export the program as an unsigned package, it refuses to install with a FAILED_CERTIFICATE Jun 20 10:42:24 I believe you're meant to use sun^Woracle jdk, rather than openjdk... for what it's worth Jun 20 10:42:34 edwinkcw: OTOH if I export the program as a signed package, it installs but then explodes Jun 20 10:42:57 stop saying explodes Jun 20 10:43:43 xroberx: for sure, it can install. It throws exception only when you launch the program and find that there is no such class Jun 20 10:44:24 edwinkcw: I'm really puzzled, everything was working a week ago, and as I said, the only change has been a minor upgrade of OpenJDK 7 Jun 20 10:44:39 xroberx: that's why I think Android cannot find your lib/jar. Thus, please try add it in your project as well http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project Jun 20 10:45:32 xroberx: read post 3 Jun 20 10:45:41 xroberx: btw, did you update adt as well?? Jun 20 10:46:52 edwinkcw: yeah, I already know that, but I'm not using .jars, I'm using an Android Library project, which is correctly compiled in, otherwise it wouldn't run from within Eclipse Jun 20 10:47:09 edwinkcw: and yes, I'm using latest versions of everything Jun 20 10:47:42 xroberx: umm..then I don't know, but usually, I will do clean all and build it again.. Jun 20 10:47:50 I really rhink the problem lies somewhere in the packaging process Jun 20 10:48:33 I have never been able to get android working correctly with JDK7 Jun 20 10:48:55 locallycompact: usually, for android project, eclipse will set java 1.6 for the compiler Jun 20 10:49:25 edwinkcw: Yup, *pats eclipse* Jun 20 10:49:28 some fixes are coming in ADT r20, but it's taking ages... Jun 20 10:50:29 for example: http://code.google.com/p/android/issues/detail?id=19567 is going to be fixed in r20 Jun 20 10:52:37 what api level are y'all targeting? we're doing 2.3.3+ and was wondering if that should be higher Jun 20 10:54:05 funktronic: I usually target api level 10 too Jun 20 10:54:55 funktronic: and I'm not going to switch until > 25% of devices are running Android 4 Jun 20 10:55:26 funktronic: which at this pace may never happen :) Jun 20 10:56:02 xroberx: have hope Jun 20 10:56:24 well soon there'll be jelly bean, and ics is considered legacy Jun 20 10:56:47 although 2.3 -> 4.0 is probably a lot bigger jump than ics -> jelly bean will be Jun 20 10:56:57 sure Jun 20 10:57:36 hm, don't really see the point of refusing to target 14 Jun 20 10:57:47 ics is really nice.. making me rethink my iphone Jun 20 10:57:57 considering you can use the support library and ABS to futureproof your apps Jun 20 10:58:02 i have 3 droids on my desk and i can't use any of them since i have sprint :( Jun 20 10:58:13 and not have to do a lot of extra work Jun 20 10:58:47 if you target 10 now, you know for sure you'll have to rewrite/update it 3 years from now Jun 20 10:59:11 my biggest wish for droid right now is java 8 Jun 20 11:00:04 i've been thinking about monodroid or whatever it's called Jun 20 11:00:17 I mean, targeting api level 14 is not the same as setting your minimum api level to 14 Jun 20 11:00:35 funktronic: java 8 ? do you want closures ? Jun 20 11:01:12 xroberx: yes and lambas Jun 20 11:01:17 ideally, i want C# Jun 20 11:01:38 I don't really care that much, but it would be nice yes Jun 20 11:01:52 funktronic: but we target 2.2+, 2.3+ is still not possible for us Jun 20 11:01:53 when you get used to it, it's very hard to do without Jun 20 11:02:10 i wrote a ton of C# and F# and C++ before this and damn Jun 20 11:02:27 meh, I'm not really that attached to a language, IDE or whatever Jun 20 11:02:36 I think the improvements are marginal Jun 20 11:03:15 MDijkstra: yeah, i'll write anything Jun 20 11:03:19 (and I've done substantial amounts of coding in C, C++, Python, Ruby, Objective C and Java) Jun 20 11:03:29 oh, and PHP, but I try to forget about that :p Jun 20 11:03:30 i went from doing virtualization stuff in C/C++ to node.js and now this Jun 20 11:03:44 i also did "web scale" services in C# Jun 20 11:04:10 I mean, lambda's and closures are nice, but their use is kind of situational Jun 20 11:04:25 MDijkstra: the code is much cleaner and of higher quality Jun 20 11:04:33 I disagree Jun 20 11:05:11 that's fair, cleanliness and quality are subjective Jun 20 11:05:17 there's obviously some advantage to having them, but I don't think the difference is that big Jun 20 11:05:26 i did just start doing java this week so i haven't picked up all the idiomatic ways to do things Jun 20 11:05:36 just like I don't think having iterators makes code that much more readable Jun 20 11:05:54 it's a combination of a lot of things Jun 20 11:06:40 linq + type inference + closures + lambas - type erasure make it more pleasant Jun 20 11:06:46 i would love to have first class functions Jun 20 11:06:57 and especially now with async/await Jun 20 11:07:06 yeah, who knows what version java android will have when. Jun 20 11:07:09 but i digress, java isn't bad. it's strongly typed which i like Jun 20 11:07:35 android still uses the same javac just runs on dalvik right? Jun 20 11:07:38 ,oO( java isn't bad, it's horrible! ) Jun 20 11:08:12 i guess it depends on how it's implemented. closures and lambas can all be done in the compiler Jun 20 11:08:28 funktronic: yeah, android does javac -> java bytecode -> dalvik conversion -> dalvik bytecode Jun 20 11:08:31 essentially Jun 20 11:08:49 and this all happens offline Jun 20 11:09:05 funktronic: also, remember the relationship between the runtime library and the language. the former takes advantage of the latter. in order to really benefit from java 8, you need the java 8 runtime classes, to use lambdas for example. i'm not sure how google will accomplish that Jun 20 11:09:14 g00s: that's true Jun 20 11:09:27 but closures and lambas are just syntax sugar (kinda) Jun 20 11:09:48 well, you do have anonymous inner classes Jun 20 11:10:03 i know Leeds hates those :) Jun 20 11:10:11 and private inner classes Jun 20 11:10:19 MDijkstra: that kind of makes it not as horrible since you can kinda sorta achieve almost the same thing Jun 20 11:10:22 which can access the outer class' private variables Jun 20 11:10:52 most c# devs don't know how closures actually work, which can be a big problem when working at scale Jun 20 11:11:39 ie, you can do something like: mView.setHandler(new MagicHandler() {void onMagicEvent() { operateOn(mViewDefinedinOuterClass); }}); Jun 20 11:12:18 the only problem I have with this is that it makes the flow of the code very hard to read sometimes Jun 20 11:12:35 and it would be easy to get rid of the nonessentials Jun 20 11:12:48 mView.setHandler(() => operateOn(mFoo)) Jun 20 11:12:54 easily achievable by any reasonable inferring compiler Jun 20 11:13:27 if you hate () => then by all means make it () -> or even just () {... } Jun 20 11:13:48 heh, trying to remember the haskell syntax Jun 20 11:14:43 MDijkstra: it's nto bad Jun 20 11:15:15 but maybe java wants first-class methods rather than single-abstract-method classes that would cement the current design for all perpetuity Jun 20 11:15:33 MDijkstra: haskell is \a -> ... Jun 20 11:15:37 eclipse will also generate these anonymous inner classes for you with tab completion Jun 20 11:15:42 which is kind of nice Jun 20 11:15:51 sure it's nice to *write* but it's still bitch to read Jun 20 11:15:53 but you still have to read them :| Jun 20 11:15:59 hehe, yeah Jun 20 11:16:03 haskell can be difficult to read at times Jun 20 11:16:36 on the other hand I personally don't care if java never gets methods as first-class things. Jun 20 11:17:02 alankila: i think on C# you could even do mView.setHandler(operateOn); Jun 20 11:17:05 the idea that compiler just whips up some class to contain it so that it can work with it doesn't seem too bad to me Jun 20 11:17:21 hrnt: yes if the signatures match Jun 20 11:17:23 not really a good example of a lambda though :) Jun 20 11:17:25 same as in any functional language Jun 20 11:18:00 when you throw linq into the mix.. then things get very interesting Jun 20 11:18:38 the good thing at least is that c#/scala/clojure etc have really put some urgency into making java better Jun 20 11:19:00 and dalvik has freed java from its corporate overlord, it looks like Jun 20 11:19:15 it's now possible to just make any implementation of java-like language and evolve it whatever way you want Jun 20 11:19:17 i initially absolutely hated the java way of doing this stuff (new WhateverHandler() { public void handle() { ... } }) Jun 20 11:19:30 nowadays i just dislike it, mainly because it is so damn verbose Jun 20 11:20:02 the other stuff (the "final" requirement etc.) do not bother me that much anymore Jun 20 11:20:19 java's great asset, imho, is its simplicity in its runtime Jun 20 11:20:26 C# can boast all the features it wants but it's complex and ugly Jun 20 11:20:51 i guess microsoft completely gutted wp Jun 20 11:20:54 alankila: eh Jun 20 11:20:57 i do love C# Jun 20 11:21:02 but then i did work at msft Jun 20 11:21:05 the keyword list alone is much larger, and it has all that stuff like out and ref and structs and classes both and blah blah. Most of the time, you can do with just the more general strategies, you don't have to have all that shit Jun 20 11:21:08 alankila: Please elaborate :) Jun 20 11:21:30 i like C# too, a lot more than java Jun 20 11:21:35 java's problem is that it's a bit insufficient Jun 20 11:21:36 the complexity does not bother me that much but then again i am used to C++ :P Jun 20 11:21:41 C#'s problem, imho, is that it's maximalist Jun 20 11:21:43 which is exactly how I feel about C# and even Python Jun 20 11:21:51 there are too many ways to solve the same problem Jun 20 11:22:02 *problems Jun 20 11:22:20 hrnt: c++ becomes much more pleasurable if you disallow exceptions in your codebase Jun 20 11:22:27 C# has every imaginable way crammed into it, and imho simplicity tends to bring clarity to design Jun 20 11:22:35 C++ is obviously also a mess Jun 20 11:22:46 alankila: it's not crammed in. i find C# very reasonably designed Jun 20 11:22:51 you don't get simplicity if you have too many ways to do the same thing, you get everyone doing things in some different way Jun 20 11:23:01 simplicity is subjective though Jun 20 11:23:27 funktronic: heh, i am completely disagree with that statement :) Jun 20 11:23:31 so anyway for me personally java is too simple but C# too complex. I think the complexity is one-way street though, once you get it you can never get rid of it Jun 20 11:24:00 i think java has gotten complex. generics can have its own book Jun 20 11:24:03 funktronic: disabling exceptions breaks a lot of things in C++ Jun 20 11:24:08 oh wait, it does now. several Jun 20 11:24:10 nobody agrees on removing features because somewhere, someone uses it, loves it, and is very vocal about it Jun 20 11:24:10 funktronic: and to manage that you need to do a lot of stupid hacks Jun 20 11:24:14 hrnt: true. worth it Jun 20 11:24:16 two-phase initialization and stuff like that Jun 20 11:24:22 It may be complex, but most of the things you just said have their own function (e.g. structs and classes) Jun 20 11:24:25 hrnt: i am okay with two-phase inialization Jun 20 11:24:27 funktronic: what do you gain by disabling exceptions? Jun 20 11:24:30 g00s: yep. IMHO generics do not really pull their weight Jun 20 11:24:47 g00s: I mean, I like the fact that they bring new things into compile-time checkability, that is hugely nice Jun 20 11:25:00 but at the same time, java's conception of generics largely replaced (Foo) with that is moved elsewhere Jun 20 11:25:07 hrnt: error handling is much more explicit and you have a better idea of what gets cleaned up when Jun 20 11:25:23 funktronic: i don't usually worry about cleanup in C++ Jun 20 11:25:24 and you have to repeat that hell of a lot more, so things became less readable at the same time Jun 20 11:25:25 i do think generics were going to be fixed, and primitives removed , with java 9 Jun 20 11:25:29 funktronic: (because of RAII) Jun 20 11:25:40 yeah RAII is a must with exceptions Jun 20 11:25:48 hm? generics fixed? Jun 20 11:25:57 hrnt: it's a personal preference thing Jun 20 11:26:02 MDijkstra: no erasure Jun 20 11:26:13 I do know they want to remove primitive types (and with it autoboxing) in a future version Jun 20 11:26:18 which imo is reasonable Jun 20 11:26:23 funktronic: anyways, i would say that the problem is larger in java regarding cleanup Jun 20 11:26:26 hrnt: exceptions were prohibited at the employer where i last worked so meh Jun 20 11:26:29 funktronic: because you don't have RAII or anything similar Jun 20 11:26:29 i think they were also going to redo JNI Jun 20 11:26:50 hrnt: we pretty much followed this: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Exceptions Jun 20 11:26:59 yeah, i know that style guide :( Jun 20 11:27:04 If java could just directly bind to libraries without any non-java code needed, taht would be great Jun 20 11:27:07 hrnt: oh we had tons of RAII Jun 20 11:27:18 I wonder if C objects have enough metadata to make that possible... Jun 20 11:27:27 hrnt: we also had a decent chunk of c-style c++ that ran as a driver Jun 20 11:27:31 probably not... headers still needed Jun 20 11:27:40 alankila: C objects? Jun 20 11:27:48 funktronic: I meant things like shared objects Jun 20 11:27:51 funktronic: aka DLLs Jun 20 11:28:00 alankila: oh that's not a C object :) Jun 20 11:28:08 funktronic: anyways, like the rationale of that guide says: "on a new project the benefits outweight the costs of using exceptions, however we at google deal with a lot of legacy stuff that do not understand exceptions..." Jun 20 11:28:15 C object is reasonable, albeit confusing term, for construct defined in C style Jun 20 11:28:15 (not a direct quote) Jun 20 11:28:15 a dll/so is just a bunch of code.. well dlls are differnet but it's just code Jun 20 11:28:55 hrnt: we also took an extremely conservative approach. any change was considered major pretty much. virtualization stuff Jun 20 11:29:08 anyway I often find myself having to call native code and it'd be lovely to be able to just load a .so into java without anything more being to it. If the .so has to have a symbol to describe it to java, that would be okay to me Jun 20 11:29:21 i had a 20 line change reviewed by like 6 super-senior people once Jun 20 11:29:41 a bit like how in python you write C extensions as .so you can just import, there's a symbol python looks up and reads description on how things are called in the .so Jun 20 11:29:50 funktronic: yeah, that sounds conservative all right :) Jun 20 11:30:22 hrnt: it was a change to the disassembler though :) .. those 20 lines took three weeks to write Jun 20 11:30:47 anyways, the cleanup argument / make error handling explicit etc. works on most languages, not just C++. on other languages we use exceptions so why not in C++? Jun 20 11:30:51 i seriously hope google has some amazing shit to announce at i/o for android Jun 20 11:31:05 because i think they need to announce some seriously amazing shit Jun 20 11:31:07 or else Jun 20 11:31:14 hrnt: garbage collection makes exceptions less painful, I guess. Or proper finalizers. Jun 20 11:31:46 alankila: C++ has smart pointers for the first part and destructors for the later Jun 20 11:32:11 for dummy/mock gps location i can send the location via telnet like "geo fix xxxxxx yyyyyy". is it also possible to send mock location to emulator for network provider? Jun 20 11:32:25 Yes, yes. It's always possible to get by but a lot of the time you can just throw exception in java and not worry how the things get cleaned up because eventually they get cleaned up anyway Jun 20 11:33:00 same with python, perl, or any other language that provides guarantees that objects are freed automatically. Jun 20 11:33:22 well, i disagree at least partly Jun 20 11:33:39 on C++, if you open a file: std::ifstream ifs("whatever.txt"); you do not need to worry about closing it Jun 20 11:33:47 anyway imho automatic memory management goes hand in hand with comfortable exceptions. Jun 20 11:33:49 on java / C# / ruby etc. you do Jun 20 11:34:02 C++ does a lot to make this just happen without having a GC or even refcount Jun 20 11:34:06 hrnt: exceptions in c++ have much more unpredictable interactions Jun 20 11:34:16 on C# and ruby you can do using (...) or File.open("whatever.txt") { |fn| ... } Jun 20 11:34:20 but on C++ that is automatic Jun 20 11:34:22 smart pointers are very handy Jun 20 11:34:27 they are slower though Jun 20 11:34:36 hrnt: a small victory for C++, yet in practice it's a pain point. Jun 20 11:34:57 another detail to keep in mind while you program. Jun 20 11:35:27 but I agree that resource leaks from objects that hold external resources are a serious issue that can't be ignored, and java only got the dispose pattern in 7 Jun 20 11:35:54 the dispose pattern looks pretty wonderful though, so using it will clean up utter shit code Jun 20 11:36:04 alankila: so basically in C++ you have to do something similar to "using" for pointers but you don't need to do it for other resources Jun 20 11:36:20 alankila: on C#/ruby you don't need to do anything for pointers but you do need for other resources Jun 20 11:36:31 on java you have the horror that is try { ... } finally { ... } :( Jun 20 11:36:34 hrnt: realistically, stack-based resources can be handled properly, but you run out of stack eventually. Jun 20 11:36:37 alankila: that's form C# :) Jun 20 11:36:48 alankila: in my opinion it balances out, depending on the application Jun 20 11:36:51 hrnt: which is why 7 does 'try (Foo someobjectThatMustBeCleaned = ...) Jun 20 11:36:55 now i miss c++ :( Jun 20 11:37:16 i don't think i will ever miss c++ :) Jun 20 11:37:18 alankila: i know. finally :) Jun 20 11:37:25 this bike reminds me of c++ for some reason http://www.gizmag.com/electric-six-prop-flying-bike/23015/ Jun 20 11:37:53 but I would rather see compiler insert explicit frees for objects it can prove that don't escape the scope Jun 20 11:38:01 that way we could get the dispose without having to write anything Jun 20 11:38:11 g00s: there's something many about implementing your own locks and stuff Jun 20 11:38:19 and imho that's a win, but java's designers disagreed Jun 20 11:38:21 alankila: yeah, however i don't really trust that kind of automatic stuff Jun 20 11:38:25 this idea did occur to them Jun 20 11:38:27 alankila: problem is, the halting problem Jun 20 11:38:35 alankila: the compiler can't really prove much Jun 20 11:38:36 but automatics are always fallible and surprising Jun 20 11:38:45 alankila: it usually breaks when closures are brought in, for example Jun 20 11:38:49 funktronic: it could perfectly handle the case you currently would use 'try (...)' for Jun 20 11:39:19 alankila: then you create expectations, the semantics become less clear etc Jun 20 11:39:23 hrnt: compiler can easily see that it doesn't have the single reference for something here & deal with it. But anyway, it's all moot. Java's model is not suitable for this, I guess. Jun 20 11:39:42 for dummy/mock gps location i can send the location via telnet like "geo fix xxxxxx yyyyyy". is it also possible to send mock location to emulator for network provider? Jun 20 11:40:08 alankila: obj-c has something like that nowadays (ARC or automatic reference collection) Jun 20 11:40:09 but java already does escape analysis for objects -- it wants to reuse memory for objects if it can prove that the object never leaves the context of a for loop Jun 20 11:41:22 of course there are some problems with that feature when using it in a language based on C, for example: http://weblog.bignerdranch.com/296-arc-gotcha-unexpectedly-short-lifetimes/ Jun 20 11:41:25 hrnt: I sort of know, the ARC imho sucks, but it's just a way to fake gc without having a gc. Jun 20 11:44:14 in general you run into bunch of gotchas when working with ARC because you need to know all the rules -- the compiler requires you to, now. In the past you might have just leaked memory, or got by by dumb luck Jun 20 11:44:37 on the other hand, no more -dealloc methods, I guess. Jun 20 11:45:09 yeah, i don't use ARC either at the moment. i probably will in the future, but i do think that people claim it is easier to use than it really is. Jun 20 11:45:57 I would tentatively agree. I tried turning ARC on and it posed me questions I did not know how to answer. Jun 20 11:46:01 it looks simple at first, but then you start dealing with bridged casts and all sorts of attributes (like objc_returns_inner_pointer) Jun 20 11:47:04 the beauty of actual GC is that you are allowed to not care about memory, truly. And if you have the free-at-end-of-scope-if-you-can behavior also, like python and perl, then you can ignore resource leaks for 99 % of common programs too because they won't happen Jun 20 11:47:10 I don't use ARC because I find its added benefit negligible Jun 20 11:47:28 yeah, i can appreciate that people like it because they don't have to manually free memory anymore Jun 20 11:47:48 however, i've been doing C and C++ for a long time so i don't really have problems with manual memory management Jun 20 11:48:03 I find C-style manual memory management annoying Jun 20 11:48:12 the ObjC manual refcounting not so much Jun 20 11:48:48 if you know the obj-c rules and conventions, its not so bad Jun 20 11:48:49 and ARC isn't good enough that you can skip the leak profiling step in instruments Jun 20 11:48:57 hrnt: good man :) Jun 20 11:48:59 and if you have to do that anyway, why bother with ARC at all? Jun 20 11:49:00 you have to follow their rules though :) Jun 20 11:49:03 /lady Jun 20 11:49:05 THE RULES Jun 20 11:49:26 yeah, i can deal with it in C++ and Obj-C because in C++ most of the crap is stack allocated and the other stuff i can put behind smart pointers/pointer containers/whatever and in Obj-C most of the crap is dealt by autorelease pools Jun 20 11:49:34 in C however... *shudder* Jun 20 11:49:34 hm, the lumis 900 isn't getting wp8. poor fuckers. ms screwed that one up Jun 20 11:50:02 hrnt: dealing with raw pointers isn't that bad Jun 20 11:50:13 just valgrind a lot Jun 20 11:51:10 funktronic: my problem with that kind of memory management is that it promotes inconsistency in allocating memory Jun 20 11:51:28 funktronic: ie, if you get a pointer from somewhere you never know quite how you should handle it Jun 20 11:51:29 MDijkstra: in what sense Jun 20 11:51:34 ah that's fair Jun 20 11:52:04 maybe I should free() it myself, or maybe the code passes it around to some other object so I should not do that Jun 20 11:52:11 have someone experience with bluetooth printing? Jun 20 11:52:24 or maybe it's allocating it in a threadlocal buffer Jun 20 11:52:31 MDijkstra: yeah smart pointers/raii make that much better Jun 20 11:52:34 libc does all of these to some degree Jun 20 11:52:37 g00s: in ARC you need special handling for even the basic patterns such as NSError ** (which should be NSError * __autoreleasing * or something like that) Jun 20 11:53:02 well, to be fair, i think that is the only exception i can think of but still Jun 20 11:53:35 also one of my favorite gripes about C programming in general is that you get pointers but you don't know their lifetimes Jun 20 11:53:45 so everybody ends up making defensive copies to ensure that things work Jun 20 11:54:21 yeah, that's exactly my problem with them, everytime you add a component that interacts with a certain variable Jun 20 11:54:31 you have to check whether the lifecycle of that variable is still correct Jun 20 11:54:40 you can't just retain it and be done with it Jun 20 11:56:31 yeah, well, it is not just the lifetime that is problematic when passing a pointer to somebody Jun 20 11:56:34 there is the mutability as well Jun 20 11:56:43 of course, obj-c deals this by having NSString and NSMutableString and C++ has const. Jun 20 11:56:50 +with Jun 20 11:56:57 NSMutable* ;) Jun 20 11:57:29 Hello, ((SSLSocket)socket).getSession().isValid() returns true even session should not be valid and I get javax.net.ssl.SSLException: Not trusted server certificate in the logcat, but how do I catch that when it is printed? Jun 20 11:58:04 +1 for obj-c for figuring out that the mutable version inherits the immutable version, btw Jun 20 11:58:19 i think i saw a java class somewhere which had a immutable version inherit from a mutable version :P Jun 20 11:58:35 (and subsequently threw "unsupported operation" exceptions all the time) Jun 20 11:58:42 I mean my app is not crashing it is just printing the exception Jun 20 12:02:44 MDijkstra: alankila: quick q, since you know ios at some level it seems. knowing what you know now, if you only knew android, and you were to pick up another mobile platform now, including some js contraption / mobile web, what would it be ? Jun 20 12:03:10 how could you not choose iOS? Jun 20 12:03:25 its a completely open question Jun 20 12:03:33 they can choose ios again :) Jun 20 12:03:49 I'd choose iOS again simply because I think native apps always win and that's where the market its :p Jun 20 12:03:58 is Jun 20 12:04:10 I don't mind objective c at all Jun 20 12:04:13 iOS, but I learned iOS first and then picked up Android Jun 20 12:04:24 blocks are a bit odd though Jun 20 12:04:28 blocks or delegates, pick one Jun 20 12:04:31 iOS+Android covers the majority of smartphones on the market Jun 20 12:04:47 i like the iOS framework a lot more Jun 20 12:04:55 I prefer android Jun 20 12:04:55 a friend of mine codes in smalltalk for a living Jun 20 12:05:00 it does not have the Activity lifecycle, for starters :P Jun 20 12:05:03 he gets really angry at objective c :p Jun 20 12:05:04 wabz: :O Jun 20 12:06:25 i'm thinking there is going to be a big shift soon; i have to decide whether to pick up mobile web, ios (again, after a bunch of false starts), or wp8 Jun 20 12:06:40 hrnt: I think most of the people who get frustrated with Android's way of doing things are trying to apply their iOS concepts to Android Jun 20 12:06:48 ie, thinking UIViewController==Activity Jun 20 12:06:52 and that kind of stuff Jun 20 12:07:07 luckily i didin't know ios enought to do that :) Jun 20 12:07:15 MDijkstra: or actually generally applying their previous knowledge to Android Jun 20 12:07:20 android just frustrates me regardless Jun 20 12:07:22 i learnt Android before iOS Jun 20 12:07:37 the reason I don't like mobile web stuff is because it's a really bad solution for mobile devices Jun 20 12:07:47 still, i don't like the activity lifecycle even though i am familiar with it nowadays Jun 20 12:08:05 (and I come from a web background) Jun 20 12:08:21 wabz: i did see a good presentation today about mobile web http://martinfowler.com/articles/multiMobile/ Jun 20 12:08:23 for example, the idea that it is possible that your "screen" is rebuilt in the middle of user interaction is not new Jun 20 12:08:30 i highly recommend it for everyone, actually Jun 20 12:08:31 here is how ASP.NET deals with it, for example: Jun 20 12:08:37 ViewState["variable"] = 1234; Jun 20 12:08:53 but the reason you're right and that it could become popular is because it's easy for web people to pick up html/js solutions Jun 20 12:09:12 the Android version is "store variable in the Activity instance. save it manually on onSaveInstanceState and restore it in onCreate/onRestoreInstanceState Jun 20 12:09:15 yeah, i'm not enamored with js, but whatevs Jun 20 12:09:15 " Jun 20 12:10:05 hrnt: usually I don't have to store anything in onSaveInstanceState because my intent extras are all I need to requery the state Jun 20 12:10:07 on ASP.NET the "default" controls can save their state automatically - you do not need to set their ID, and the ID does not need to be unique for the page. Jun 20 12:10:39 on android if you have a duplicate ID on a page it breaks down on restore Jun 20 12:10:45 (page => activity) Jun 20 12:10:59 hrnt: maybe some convenience stuff like which element is selected or text entered into a box, but it's generally not necessary in my apps Jun 20 12:11:38 MDijkstra: yeah, it depends on the app Jun 20 12:11:44 and on iOS when the system kills your app, you have to recreate everything Jun 20 12:11:50 and don't get any state saving mechanisms either Jun 20 12:12:07 MDijkstra: my pet peeve is the AsyncTask. the documentation ("painless threading") basically ignores completely the fact that your Activity can be restarted on the middle of task Jun 20 12:12:07 not even a 'restore stack of viewcontrollers' convenience method Jun 20 12:12:28 basically mentions on a side point "oh, if you rotate your screen then the file transfer is restarted from the beginning" :P Jun 20 12:12:39 hmm. i guess i could pick up ios again. its either that or wp7/8 Jun 20 12:12:49 just seems like ios is kinda saturated now Jun 20 12:12:55 store, apps, etc Jun 20 12:13:00 hrnt: I have been fighting with rotation behavior a fair bit Jun 20 12:13:12 MDijkstra: yeah, on the other hand on iOS your activity is not killed as often as in Android Jun 20 12:13:20 hrnt: they should just offer a 'rotate the UI and leave the rest well enough alone' Jun 20 12:13:31 default Jun 20 12:13:47 the activity restarting is nice, but not necessary 90% of the time Jun 20 12:13:52 indeed Jun 20 12:14:27 that reminds me, how should you do this manually? Jun 20 12:14:33 do you have to call setContentView() again? Jun 20 12:14:39 or is there a better way Jun 20 12:15:13 i think that is the normal way. never done it myself though. Jun 20 12:15:53 i don't actually mind the fact that the activities are restarted all the time that much Jun 20 12:16:03 but i do think that android should provide _much_ better support for that case Jun 20 12:16:15 easy way to store objects for the duration of the restart, for starters Jun 20 12:16:25 well, I had a ton of issues with fragment rotation Jun 20 12:16:39 the documentation of what will happen exactly is also poor Jun 20 12:17:13 a 'rotation activity recreate' is much different from normal activity recreation Jun 20 12:17:17 *creation Jun 20 12:18:32 and also how the setRetainInstance on the fragment interacts with this Jun 20 12:18:57 yeah, IMHO android does not really follow the "making easy things easy & hard things possible" Jun 20 12:19:46 well, iOS's philosophy in some areas is "making easy things incredibly easy & hard things completely impossible" Jun 20 12:19:51 orientation changes are redonkulous Jun 20 12:19:55 yeah i can definitely agree on that :D Jun 20 12:20:33 stuff that sounds initially easy like "i would like to change the color of this button" might be really easy or insanely hard Jun 20 12:20:37 i'd love to hear the reasons behind the decision to just destroy and recreate everything Jun 20 12:21:01 well, the reason is because they might have to select a different qualifier Jun 20 12:21:29 yeah, you can have a different layout for every configuration Jun 20 12:21:31 for example Jun 20 12:21:44 not a good enough reason Jun 20 12:21:54 ie, if you currently have the contentView from layout-port set and you rotate to layout-land, then you have to run onCreate again Jun 20 12:22:13 you can't magically do a setContentView(sameResId) and hope everything is ok Jun 20 12:22:34 the thing could be relayed out with destroying/recreating Jun 20 12:23:07 what they should've done is separated UI creation from activity creation in the callbacks Jun 20 12:23:16 so they can just call onCreateView again on the activity Jun 20 12:23:37 (btw, my second pet peeve of android is the fact that your heap size is ridiculously small compared to the competition and the available resources of the phone. this combined with a noncompacting garbage collector and a language that loves to allocate a lot of small objects...) Jun 20 12:25:30 does android automatically letterbox videos to fit the aspect ratio of each device? Jun 20 12:32:25 i'm sending commands into a bluetooth device (which reads measurements with sensors attached to different channels) via BlueToothSocket. Device responds with 0-8 values (separated by \n). it seems that it's response is split into multiple messages when read from sockets InputStream Jun 20 12:33:08 i'm just reading the response into byte[1024] array in a loop (bytes = mmInStream.read(buffer)) Jun 20 12:57:28 any nice app on the market to monitor app cpu usage? Jun 20 12:57:39 and memory maybe Jun 20 13:00:29 Zharf: I like Samsung task manager for that, no idea if it's in the market though Jun 20 13:00:55 hello everyone Jun 20 13:03:09 i read about an [android-ndk] google group, but i can't find it. Someone can please point me to that? Thanks! Jun 20 13:04:32 drindt: http://groups.google.com/group/android-ndk ? Jun 20 13:05:39 i have an extremely frustrating problem trying to parse 1 simple json object in android. every time i try to use a method that gets a json object from a url, and convert it to a string and show it as a message i get an error :( Jun 20 13:06:29 Utopiah, thank you Jun 20 13:06:33 Put some example JSON, the line that you get the error, and the stacktrace in a pastebin Jun 20 13:06:36 the error is as following: W/System.err(1950): org.json.JSONException: Value Jun 20 13:06:42 alright knossos Jun 20 13:12:02 alright i pasted this, i dont know if it is of much help to you :( http://pastebin.com/mV0zZ3Et Jun 20 13:12:10 Hey fellas! Jun 20 13:12:35 How can I create a theme that is like the light theme, but where the tabs (not the tab content) are in dark theme? Jun 20 13:12:55 (The problem is that tabs look horrible on some devices when using the light theme) Jun 20 13:14:13 vancha: dump what give u readAll(rd) Jun 20 13:15:05 and ur json is a array, not a object Jun 20 13:16:06 so u should parse with JSONArray not with JSONObject :) Jun 20 13:16:53 alright ill try parsing an array ixc, :O thanks, ill tell you what that gets me ;) Jun 20 13:19:21 nonono, that wouldn't work for me.. i actually need an object.. because if i change it to an array that would break the functionality of my program -.- , do you know how to return a json object in php by any chance? its probably better for me to change it there.. Jun 20 13:20:51 put ur data into a object :) sorry i dont work with php Jun 20 13:21:32 php has json_encode and json_decode Jun 20 13:21:42 for _only_ try not for use later Jun 20 13:21:53 u can add { prefix and } suffix to ur string Jun 20 13:22:10 the one that ur buffer reader give u Jun 20 13:22:33 and a name for array :) Jun 20 13:22:55 {"myarray": ...ur string... } Jun 20 13:23:10 but is only for test now ur function, not for use later Jun 20 13:24:53 btw my bet: associative arrays (dictionaries) will be object after json encode Jun 20 13:30:52 I'm getting the error, "Unable to instantiate fragment com.my.package.MyFragment: make sure class name exists, is public, and has an empty constructor that is public." I get this when my activity resumes after a long period of time. Any suggestions? Jun 20 13:31:10 im sorry guys, this is too hard for me, thanks for the help, but i give up. Jun 20 13:34:26 giving up is for the weak Jun 20 13:35:53 so i update my hosts file and reboot and my network data wont connect, i reboot again and my hosts file reverts to a blank file? Jun 20 13:36:48 chmod? Jun 20 13:36:50 whats the dealio Jun 20 13:37:01 hmm Jun 20 13:37:57 I'm not sure how the system handles it but if the permissions are wrong, it might override any existing file with a new one. Jun 20 13:38:15 lemme check it out Jun 20 13:38:36 Just a shot in the dark. Jun 20 13:38:41 Worth taking a quick look though. Jun 20 13:39:32 Any other root apps doing things on boot? Jun 20 13:39:44 also is there a command to flush dns and clear the cache Jun 20 13:40:13 http://www.techiecorner.com/35/how-to-flush-dns-cache-in-linux-windows-mac/ Jun 20 13:40:38 this is a question for #android. maybe #android-root Jun 20 13:40:50 thanks joe Jun 20 13:40:56 this won't show anything, any ideas? http://pastie.org/4120448 Jun 20 13:41:02 just a blank page when the activity is entered Jun 20 13:42:53 Sicp all your adds are commented out. Jun 20 13:43:50 the first one isn't, man Jun 20 13:43:54 we need to see the adapter Jun 20 13:43:57 this is after debugging efforts Jun 20 13:43:58 ok wait Jun 20 13:44:10 Oh, didn't see the AboutClass("Author", "TTCO Development Team"); Jun 20 13:44:17 there, http://pastie.org/4120462 Jun 20 13:44:19 I thought you added 1 in but with nothing set for that object. Jun 20 13:44:34 I typically use base adapter. Jun 20 13:44:42 Same thing really. Jun 20 13:46:16 wongk, adapter is above Jun 20 13:46:23 so like 10 reboots later i have both service and a working hosts file Jun 20 13:46:24 you don't override getCount Jun 20 13:46:40 so? Jun 20 13:46:46 It's returning 0. Jun 20 13:46:50 you also dont pass the array to the subclass Jun 20 13:47:00 er Jun 20 13:47:02 superclass Jun 20 13:47:16 pick one Jun 20 13:47:24 why even subclass ArrayAdapter? Jun 20 13:48:04 Sicp can I suggest using something like this? http://pastebin.com/T44FD8ce Jun 20 13:48:26 it was just the superclass issue Jun 20 13:48:29 thank you Jun 20 13:49:04 I got tired of having like 5 different adapters for different classes so I just wrote a super adapter class that has a getView interface and handles the data respectively. Jun 20 13:49:52 isnt that what the adapter does anyways xD Jun 20 13:50:16 Jug6ernaut ? I just made it even lazier. Jun 20 13:50:28 I have 1 adapter and I just handle the getView in the activity that uses it. Jun 20 13:50:42 someone know if "OpenSL ES" on api level 9 can record raw pcm? Jun 20 13:50:44 oo Jun 20 13:50:58 pcm? Jun 20 13:51:01 SomeClass extends Activity implements OnGetView Jun 20 13:51:16 And I pass in this as the reference to OnGetView into the adapter constructor. Jun 20 13:51:18 Jug6ernaut, raw waveform stuff like Jun 20 13:51:58 ah Jun 20 13:53:55 hello Jun 20 13:54:51 why is android:fillViewport="true" not making a scrollview fill the screen? Jun 20 13:56:39 i've set height to fill_parent, but its not working :( Jun 20 13:56:56 let's see the layout Jun 20 13:57:29 any idea (before i search anything) how to make an item of this listadapter be clickable? Jun 20 13:57:40 count, yea? Jun 20 13:57:46 wongk, 1 moment Jun 20 13:57:56 there's a listener you can set for that on the listview Jun 20 13:58:15 but how to know which item it is Jun 20 13:58:35 it passes in an argument with that information Jun 20 14:00:48 wongk, here it is... http://pastebin.com/yrmg56cw Jun 20 14:01:40 TheFred: why is your root element not a layout? Jun 20 14:01:54 eh? i missed that Jun 20 14:02:19 http://www.thestreet.com/story/11586384/1/android-users-dont-know-enough-to-matter.html Jun 20 14:02:30 i guess it doesn't need to be, but you have this set on the SrollView: android:layout_height="wrap_content" Jun 20 14:02:59 i will change the root layout and the height Jun 20 14:03:53 wongk, i thought the root of that layout was scrollview? Jun 20 14:03:59 TheFred: you don't need to change the root layout Jun 20 14:04:03 it is Jun 20 14:04:10 ah ok Jun 20 14:05:26 "more than 80% of Apple's iOS users were running the latest version of iOS. However, only 7% of Google Android users are running the latest version of their software" Jun 20 14:05:32 that's fantastic Jun 20 14:05:35 go android Jun 20 14:07:15 why? Jun 20 14:07:22 thanks for your help wongk , it was the height of the scroll view that was the offender... :) Jun 20 14:10:07 "However, if you don't use WiFi, why would you even care about Drive?" Jun 20 14:10:25 er, is wifi now the only way to access the internet Jun 20 14:10:29 maybe i missed something Jun 20 14:12:03 "However, if you've never gone swimming in the ocean, why would you drive a car" Jun 20 14:15:29 SL_RECORDEVENT_HEADATLIMIT someone can tell me which record mode it is? Jun 20 14:34:36 hey guys i'm rotating the view matrix but after rotation I want my setLookAt values to be updated. for example i have a 3 3d vectors with x y and z components for the eye, the look, and the up. after i rotate the matrix i want the look 3d vector to be updated. is there a way to do this? Jun 20 14:35:24 is there a particular parameter I can use on a text field where the keyboard will come up for an email address (i.e. the @ sign directly visible)? Jun 20 14:35:47 inputType Jun 20 14:36:58 oh, TYPE_TEXT_VARIATION_EMAIL_ADDRESS? Jun 20 14:37:20 Has anyone had any luck with saving events to the Android calendar pre ICS? I'm using an intent, and the calendar activity opens, but for some reason the starttime and endtime are just an hour from the current time Jun 20 14:38:23 GMT -/+ 1 ? Jun 20 14:39:37 EST here Jun 20 14:40:18 The starttime is always the next half-hour point (11, 11:30, 12, 12:30, etc.) and the endtime always an hour from then Jun 20 14:47:27 Is the fact that Android 4.0+ only makes up ~7% of the market indicative of some underlying problem or is it actually normal as compared to adoption of previous versions? Jun 20 14:48:27 it's normal Jun 20 14:49:42 manufacturers, rasafrassa, etc. Jun 20 14:49:48 yeah the adoption rate lookd pretty comparable... it takes around 1 year after release for new android version to begin dominating Jun 20 14:50:56 http://developer.android.com/resources/dashboard/platform-versions.html shows that adoption properly began around 15th of March Jun 20 14:51:03 does anyone have a Maven project with both ActionBarSherlock and ViewPagerIndicator dependencies? Jun 20 14:51:23 Hi everyone Jun 20 14:51:23 ABS was working great Jun 20 14:51:35 I got on question please Jun 20 14:51:35 now added the VPI dependency and it complains "package android.support.v4.view does not exist" Jun 20 14:51:43 adding the support dependency then screws up ABS though... Jun 20 14:52:36 Could someone give me the complete lifecycle of a view group in order please :) Jun 20 14:52:40 is there a possibility connect to a bluetooth device with his macaddress and pin? Jun 20 14:56:03 fd: view groups don't have lifecycles Jun 20 14:56:10 wongk: orly Jun 20 14:56:42 evancharlton: do they have their lifecycle independent of an activity? Jun 20 14:56:43 wongk: what do you think onFinishInflate(), onAttachedToWindow(), onDetachedFromWindow() etc are? Jun 20 14:56:59 wongk: of course Jun 20 14:57:10 im not familiar with those Jun 20 14:57:18 guess i learned something today ;) Jun 20 14:57:19 by lifeCycle i means Jun 20 14:57:23 all callbacks Jun 20 14:57:24 like Jun 20 14:57:32 views don't even have to be tied to activities, wongk Jun 20 14:57:33 onLayout - onMeasure Jun 20 14:57:52 fd: either look at the docs or override the methods and look at the order Jun 20 14:57:56 but I would like to have them all in order Jun 20 14:58:36 The doc don't really show them in order :( Jun 20 14:59:08 And when I try to work on it, I lost myselt a bit Jun 20 14:59:11 :) Jun 20 14:59:20 so override the methods and figure out the order Jun 20 14:59:43 Ok I'll try. Thanks Jun 20 15:03:55 yeah, the docs don't really present the information as a "lifecycle", but obviously certain handlers have a deterministic order Jun 20 15:05:06 wrongk: Yes! but i'ld like to have a complete order ;) Jun 20 15:05:26 sure Jun 20 15:06:23 I've already succeeded in order this part : Jun 20 15:10:16 wongk: wait ... log is running ;) Jun 20 15:15:11 wongk: constructors -> onFinishInflate -> OnMeasure -> MeasureChild -> OnsizeChanged -> Onlayout -> DispatchDraw -> DrawChild -> … (lost) Jun 20 15:15:33 fd: thanks, but i don't really need the info :P Jun 20 15:15:51 I need the info Jun 20 15:16:03 sure Jun 20 15:16:05 wongk: do you know the rest ? Jun 20 15:16:11 not at all Jun 20 15:16:31 ha ok thanks anyway :) Jun 20 15:16:32 im the guy that incorrectly told you views don't have a lifecycle to begin with :P Jun 20 15:17:08 ha k ;) it doesn't matter dude :) Jun 20 15:19:25 Why some example use Runnable to do view animations ? Jun 20 15:30:09 is anyone here a matrix expert? Jun 20 15:30:27 bakis, what is matrix? Jun 20 15:30:27 too... easy... joke... Jun 20 15:30:30 bakis: why not just ask your question instead of taking a survey? Jun 20 15:30:43 -insert Neo/Morpheus joke- Jun 20 15:31:01 i have seen it at least 30 times, so i'll claim to be an expert Jun 20 15:31:08 Having some problems with TouchDelgate, anyone able to help? http://stackoverflow.com/questions/11091145/touchdelegate-not-receiving-tap-events-correctly Jun 20 15:32:16 haha i dunno. sorry. i was just wondering how you update the setLookAt values based on rotation. so basically i'm rotating the view matrix, but the look values aren't being updated. is there a way to do this or a good way to update the look values manually as you change the rotation values? Jun 20 15:34:05 wongk, I didn't really pay attention when you answered me about having the ArrayAdapter items be clickable (some of them having ActionListener on them), can you repeat your tip please? Jun 20 15:34:36 heh Jun 20 15:34:41 scroll up Jun 20 15:35:34 there's a listener you can set for that on the listview Jun 20 15:35:55 after that I think I asked about how I can find out which one is being clicked Jun 20 15:36:21 to which i replied the information is passed as an argument Jun 20 15:36:39 ah, so I can set the clicklistener on the whole of the adapter Jun 20 15:37:22 no, adapters aren't clicked, view are Jun 20 15:39:17 Hi, is there an app framework for when you need to login a user and manage a session? Jun 20 15:40:55 there's an account manager, but that's not really what you're asking Jun 20 15:41:07 what tpye of framework would you be looking for for "session" management? Jun 20 15:43:36 ahoy Jun 20 15:44:14 does anyone know whether the GSM/... (modem) layer is controlled by the android core? or is that totally proprietary? Jun 20 15:44:20 i mean, when communication takes place, registering to cells, roaming etc.... can it be influenced by the OS? Jun 20 15:44:27 does it solely interface via the API? or also the hayes commandset? Jun 20 15:46:27 the RIL is controlled by the device manufacturer Jun 20 15:46:44 since I observe that my android is doing MUCH more radio TX than my other GT-E1080W phone Jun 20 15:46:50 wongk: Radio Interface Layer? Jun 20 15:46:55 yes Jun 20 15:47:01 what is controlled by android/open software? Jun 20 15:47:08 the API Jun 20 15:47:13 wongk: does RIL include all the cell management etc.? Jun 20 15:47:27 i need some sort of block diagram :) Jun 20 15:47:30 i dont know all the details Jun 20 15:47:40 #android-root might have better answers Jun 20 15:47:50 this is an app dev channel Jun 20 15:48:40 wongk: ah... i thought it's also android OS dev :) many thanks anyway Jun 20 15:53:25 hi everyone, what do u recommand between file exists or opendatabase(try/catch) to test if Database exists ? ( 1st use or not ) Jun 20 15:54:22 we recommend SQLiteOpenHelper Jun 20 16:03:24 done, wongk Jun 20 16:04:07 hey, I am trying to get the nmea lines with a NmeaListener but onNmeaReceived is never triggerd. I am using android 2.3.7, does anyone know if there is a bug or something in this version? Jun 20 16:14:02 Intent search = new Intent(Intent.ACTION_) for just opening a page? Jun 20 16:14:42 VIEW Jun 20 16:14:51 oh oh Jun 20 16:15:45 hehe Jun 20 16:17:02 and there you have it; a beautiful About activity Jun 20 16:17:33 is there such thing Jun 20 16:17:40 but of course Jun 20 16:17:48 all is left now is putting sections in the arrayadapter Jun 20 16:17:58 dialog > activity Jun 20 16:18:17 the License will be in a dialog, yea Jun 20 16:18:23 fragment > activity Jun 20 16:18:34 dialogfragment > * Jun 20 16:18:45 Jug6ernaut > MDijkstra Jun 20 16:18:47 :P Jun 20 16:18:49 :( Jun 20 16:20:46 Sicp: the best way to implement that is to proxy to a list of adapters for the different sections Jun 20 16:20:51 someone know how to send esc/pos command to bluetooth printer? Jun 20 16:21:06 ie, translate the indexes for them Jun 20 16:53:06 no svg for pictures? Jun 20 16:53:07 .. Jun 20 16:54:20 Sicp: yeah seriously right Jun 20 16:54:25 boggling Jun 20 16:54:28 what? Jun 20 16:54:35 no svg builtin Jun 20 16:54:41 alright Jun 20 16:54:58 i've been facepalming about that one for awhile Jun 20 16:55:17 seriously Jun 20 16:55:28 maybe webview renders it .. you could use webview and take a screenshot ... Jun 20 16:55:29 * oGMo runs Jun 20 16:55:34 lol Jun 20 16:56:24 i dunno, thinking about the lack of inclusion of like tinysvg or something makes me want to rant, so i'll go back to coding ;) Jun 20 16:56:54 fucking hell, now I have a white background image on a black background Jun 20 16:56:56 wtf.. Jun 20 17:03:13 is there a channel for skia Jun 20 17:03:34 doubt it - too small a community Jun 20 17:03:45 is there a channel for suicide advice Jun 20 17:03:47 I need one of two Jun 20 17:07:03 There used to be.. Jun 20 17:08:19 suicide or skia? Jun 20 17:08:20 lol Jun 20 17:09:05 I made a joke referring to the last one ;d Jun 20 17:09:17 or first one Jun 20 17:09:24 The suicide one Jun 20 17:09:54 SimonVT: what, nobody has seen any of the ops of that one for a while? Jun 20 17:11:31 Nobody has seen anyone in that channel for a while Jun 20 17:11:46 they gave good advice tho Jun 20 17:12:31 the unfunny thing is that there are documented cases of kids actually killing themselves after going to emo-type suicide messages boards and being encouraged Jun 20 17:14:40 if they're hanging on to life by such a small thread it's only a matter of time Jun 20 17:14:49 Yeah, that's the internet for ya Jun 20 17:15:31 InanTop: as opposed to ending up somewhere where people will help them - in a lot of cases, even a few positive words at the right moment can be enough to stop someone going over the edge Jun 20 17:16:15 fair enough Jun 20 17:18:25 Well... what is going on if none of my editors show any mistakes but everytime I run my app it says "Sorry (link.to.file.file) has closed unexpectedly Jun 20 17:19:14 cythes: check the last link in the topic of this channel Jun 20 17:19:51 k Jun 20 17:20:52 Anyone else found the longer you use Eclipse+Android SDK the less reliable it gets? Jun 20 17:21:35 At first it was fine, now the apk fails to install/run half the time; sounds just gone on the AVD etc. lol Jun 20 17:23:46 is there a straight forward way to make a view pass a click down through to a child view? Jun 20 17:24:40 Does anyone have a lead on a good emulator package for Android/ Jun 20 17:24:42 *? Jun 20 17:24:56 I was looking for something that had emulator images for many types of phones. Jun 20 17:25:23 Yeah, no Jun 20 17:25:27 That's not how it works Jun 20 17:26:45 SimonVT: Really? I thought a file with a whole bunch of property defs was created when you defined an emulator, and then to launch it just uses that props file. Jun 20 17:26:53 How does it do it now? What makes it so complicated? Jun 20 17:31:58 To emulate a phone, you'd have to emulate its exact hardware Jun 20 17:32:20 When I say "that's not how it works", that's what I refer to Jun 20 17:32:31 You can change screen size and density to math a certain device, sure Jun 20 17:32:43 But there's no point in that, since it gives you no idea of how it runs on that device Jun 20 17:32:54 Just how it looks with devices with that screen Jun 20 17:33:25 (also, most phones in the market run vendor-proprietary builds of Android, so even if you get an emulator with the same spec as, say, an SGSIII, you still can't really use it to test compatibility) Jun 20 17:33:39 And that Jun 20 17:35:34 (plus performance) Jun 20 17:35:59 Hi, I need a way to download Android SDK packages without using the Android SDK Manager. Can it be done? Jun 20 17:36:02 And that Jun 20 17:36:27 JakeWharton: have you ever encountered anyone not being able to inflate CirclePageIndicator from XML but still being able to create/add it programmatically? Jun 20 17:36:30 guessed: let's start with why? Jun 20 17:36:39 no Jun 20 17:36:49 OK: because the system I am developing on doesn't have internet access. Jun 20 17:37:09 is your theme correct? Jun 20 17:37:12 stacktrace? Jun 20 17:37:16 guessed: let's continue with why? Jun 20 17:37:26 Business policy. Jun 20 17:37:35 JakeWharton: one sec, gotta reproduce Jun 20 17:37:39 there's the bug that needs fixing then... Jun 20 17:38:14 Beyond my control, I'm afraid. Jun 20 17:38:16 SimonVT: I see what you mean. I wanted to test layouts and such. As such, I wanted a package of like every resolution combination and what not. Whatevs. Probably not that big a deal. Jun 20 17:38:27 Hence - can it be done by other means? Jun 20 17:38:47 JakeWharton: VPI requires a certain theme? Jun 20 17:39:10 hwrd|work: Just make up resolutions/densities to match each configuration, if that's what you want Jun 20 17:39:27 normal-mdpi, normal-hdpi, large-mdpi, etc Jun 20 17:40:04 I *can* download files to another system and then transfer them to the workstation. Jun 20 17:40:17 Rockmaninoff: i don't remember Jun 20 17:40:22 :P Jun 20 17:40:25 Check the sample Jun 20 17:40:30 SimonVT: Right, but I figured someone else had done that already and I just wanted to git clone the repo with all the pre-made emulators haha Jun 20 17:40:40 laziness more than anything else. Jun 20 17:40:41 So you're lazy :p Jun 20 17:40:46 ^ Jun 20 17:41:01 Well there's an idea for a open source project you can make Jun 20 17:41:12 Yep, doing it right now acutally Jun 20 17:41:16 Just made the repo Jun 20 17:41:44 hwrd|work: don't forget to test all the resolutions your app will run at in the future Jun 20 17:43:09 guessed: If I were in that situation, I'd just transfer the entire SDK folder after updating it how I want it, rather than worrying about syncing the subfolders somehow. Jun 20 17:44:18 Leeds: hmmm. ok Jun 20 17:45:02 or to put it another way: you don't know what resolutions your app is going to run it - pick some common ones, make it work well, mark it incompatible with tiny screens if necessary, and try to avoid doing things which rely on an exact screen size Jun 20 17:45:12 billjings: that won't work for me. I only have browser access on the machine I do have internet access from. I cannot use repo or rely on files staying long-term. Jun 20 17:45:47 guessed: That is extremely irritating. I'm sorry you have to deal with that. Jun 20 17:45:54 guessed: time to a) escalate the problem through your management, and b) escalate the problem through your local employment agency Jun 20 17:46:36 Leeds: I noticed on really big screens (i.e. tablets) there is a lot of empty space any solutions to this? Jun 20 17:46:39 seriously, if you're actively being blocked from using the tools necessary to do your work... Jun 20 17:46:50 Leeds: the management have only recently imposed the policy, for reasons I reluctantly accept. They're not going to relax them any time soon. Jun 20 17:47:02 I mean, heaven forbid you need to get at a github repo, right? Jun 20 17:47:38 code1: big screens need to have more stuff on them :) sounds a bit silly, I know - but if you use fragments, you can normally put more stuff on the big screen, stop it looking empty Jun 20 17:47:38 ...JakeWharton: apparently talking to you fixes the issue Jun 20 17:47:42 thank you for your assistance. Jun 20 17:47:44 I know. It's a big pain. Jun 20 17:47:52 srsly, my head is full of fuck right now but whatever. Jun 20 17:47:54 it works Jun 20 17:48:27 at my last regular desk job - a few years back, now - I realised within about 2 days that the company web filter was going to get in my way, after it had stopped me loading blogs with answers to problems... so I stopped using the company web proxy. Jun 20 17:48:47 * guessed considers reverse engineering the SDK manager Jun 20 17:49:16 Leeds: separate virtual network; I can only do what the admins let me do. Jun 20 17:49:23 Leeds: I meant if you have a single screen designed for a mobile device, I guess I could just tile repeat the screen to fill up the space! ;) Jun 20 17:49:34 guessed: at this point they're paying you to waste your time trying to get around their dumb limitations... their loss Jun 20 17:49:36 Doesn't the sdk manager pull stuff over http anyway? Jun 20 17:49:53 billjings: yes. Jun 20 17:50:02 Still filtered? Jun 20 17:50:31 Is it checking your user-agent or something? Jun 20 17:50:40 oh yes .. 'dl-ssl.google.com' access denied - site primarily used for software downloads ... !!! Jun 20 17:51:09 Oh, it's just blocking that host. Jun 20 17:51:11 guessed: fucking complain Jun 20 17:51:13 seriously Jun 20 17:51:22 I have. Seriously. Jun 20 17:51:44 tell your manager that you need to be able to fucking download software from google to do your fucking work, and you'll happily sit at your desk and play minesweeper until they unblock it Jun 20 17:51:53 There is no solution to your problem, guessed. It is not possible to download things from anywhere other than the place where they are hosted. Jun 20 17:52:18 and let your manager tell his fucking manager, until the CEO gets told that his staff can't work because company policy is to stop them getting to their tools Jun 20 17:52:42 also, start looking - on company time, say while you're waiting for them to fix this - for a new job Jun 20 17:52:55 Tell them that specific hostname, too. Jun 20 17:53:11 "I need this software to develop Android applications. This is the only place to get it." Jun 20 17:53:11 billjings: I know that side of it is an issue. Gaining browser access to dl-ssl.google.com can be achieved, but not using SDK Manager. Jun 20 17:53:30 hahaha Jun 20 17:53:33 it can be achieved if they want you to be able to do any work Jun 20 17:54:05 Is there much difference between using Handler to Timer to delay execution of a function? Jun 20 17:54:05 Apart from its user-agent, SDK Manager is accessing dl-ssl.google.com in exactly the same manner as SDK manager. Jun 20 17:54:06 Leeds: that particular horse might take 6 months to resurrect. I need a solution now. Jun 20 17:54:24 no, you don't - your manager needs a solution now Jun 20 17:54:47 Sorry, SDK manager is accessing it in the same way as your browser. Jun 20 17:54:58 and his manager, and her manager, and all the way up Jun 20 17:55:16 billjings: yes, but the browser is on a virtual desktop, not the workstation. Jun 20 17:55:29 unless you're in a serious government/military situation - in which case you shouldn't be asking here anyway - it's just company policy and can easily be changed Jun 20 17:55:47 guessed: And you can't run the SDK manager on the virtual desktop? Jun 20 17:55:51 meh Jun 20 17:56:07 billjings: no; I effectively only have a browser. Jun 20 17:56:24 no shell access or similar. Jun 20 17:56:44 Handler and Timer both create a new thread is that right? Jun 20 17:56:45 seriously, quit. Jun 20 17:57:04 walk out of there, and tell them that you've got to give someone the right fucking tools for their job Jun 20 17:57:34 they obviously don't want you to do your work Jun 20 17:58:07 Also play Gloria Gaynor - I Will Survive on loud speaker as you walk out for extra effect. Jun 20 17:58:14 :) Jun 20 17:59:25 I'm serious... there's 'inconvenient' and there's 'someone is running a tax scam and wants your project to fail' Jun 20 17:59:38 Does upping the VM Heap Size on AVD make the damn thing run any faster? Jun 20 17:59:53 No, it's not a tax scam. It's just seriously paranoid security. Jun 20 18:00:35 and they're willing to take the overhead in massively decreased productivity it causes? Jun 20 18:00:42 apparently. Jun 20 18:00:55 every download has to be approved by a manager. Jun 20 18:01:23 before it can be transferred to a workstation. Jun 20 18:01:27 put in a request for every individual file in the source tree, just to see how long it takes them to approve it Jun 20 18:01:29 So here's what you do: go to a coffee shop. Download the Android SDK to your laptop and get all the libs you need. Zip it up and throw it in a dropbox pub folder. Write the link down on a napkin. Jun 20 18:01:53 seriously, how paranoid is your company that they think this crap is appropriate? what are you doing that they're so scared? Jun 20 18:02:09 I have the SDK. What I don't have are the platforms. Jun 20 18:02:40 crypto Jun 20 18:02:51 meh Jun 20 18:06:57 Well, I got the zxing code39Reader to compile into my project, for barcode creating purposes. However, now that I have a BitMatrix, it wants to load it into a BufferedImage, which is something that comes with java.awt Jun 20 18:08:05 Does anyone have any tips on the best way to go from a BitMatrix holding bitmap data to showing an honest image in my app? I don't care if I have to make an image first, but I'd like to just feed the data from BitMatrix directly to an ImageView.... Jun 20 18:08:48 wasn't? the bitmatrix a basically a matrix of ones and zeroes? Jun 20 18:17:50 If I create a Handler with a postDelayed from a service and the service is destroyed the handler still happens. Is this expected behaviour? Jun 20 18:18:41 yes Jun 20 18:19:02 * guessed has an idea .. Jun 20 18:19:16 wongk: is it because it's created in a seperate thread? Jun 20 18:19:44 no Jun 20 18:20:02 wongk: ok can you explain why? Jun 20 18:20:23 the interesting part is, what happens if the handler has a runnable with an implied reference to the service Jun 20 18:20:57 Ah I see, which means the service can't be destroyed! Jun 20 18:21:05 I can create a local webserver and tell the SDK manager to go there. Then I can satisfy the SDK Manager's requests by downloading the files it wants and putting them somewhere suitable in the webserver space. Jun 20 18:21:08 how is it possible for one user to pay multiple times for the same app? Jun 20 18:21:26 code1: what does the handler have to do with the service? Jun 20 18:21:46 code1: that doesn't mean it's onDestroy can't be called Jun 20 18:22:23 wongk: the handler just delays the execution of a method of the service Jun 20 18:22:48 so the onDestory is called but the service isn't deallocated? Jun 20 18:22:58 through a Runnable? Jun 20 18:23:06 yes Jun 20 18:23:16 Ge0rG: if they use a different account Jun 20 18:23:29 birbeck: it is the same gmail address. Jun 20 18:23:48 then your service state may be invalid when the method is called... depending on how you are accessig the service Jun 20 18:23:48 user asked for a refund for multiple payments, and I wondered how he got there Jun 20 18:23:50 you can see the gmail address in your orders? Jun 20 18:23:51 The name is magic: https://github.com/hwrdprkns/AVDSherlock Jun 20 18:24:19 code1: are you seeing an error? Jun 20 18:24:22 birbeck: sure? google checkout shows customer personal data Jun 20 18:24:54 purchases are tied to a google account Jun 20 18:25:01 Ge0rG: i havent looked at orders in months, but last i saw the users gmail was not in the order details Jun 20 18:25:05 i have two, i can puschase the same app twice Jun 20 18:25:25 wongk: I need to go now but will be back later, appreciate the help. Jun 20 18:25:26 wongk: but how can you purchase twice with the same account? Jun 20 18:25:35 you can't Jun 20 18:26:35 wongk: I have a user who was charged twice. Jun 20 18:26:52 so there was an error Jun 20 18:26:53 Ge0rG: perhaps one is an auth? Jun 20 18:27:46 I suppose he had some trouble with the CC data or so Jun 20 18:28:31 lets not pretend the process is bug free :P Jun 20 18:28:37 yeah Jun 20 18:29:04 fortunately for all of us, google has fast and reliable customer support. Jun 20 18:29:10 lol, google wallet, bug free? Jun 20 18:29:16 Ge0rG: hah Jun 20 18:29:18 they do? Jun 20 18:30:02 Ge0rG: if a user is complaining they were charged mutliple times, and you see 2 completed orders for the same user, then cancel one Jun 20 18:30:15 birbeck: thats what I did, yeah Jun 20 18:30:18 Ge0rG: just be sure you dont cancel the wrong one, though i dont know how you can tell Jun 20 18:30:25 birbeck: you can't. Jun 20 18:30:34 yeah, or it will uninstall the app :P Jun 20 18:30:43 Ge0rG: if you cancel the wrong one, then the order is canceled and they cant update or reinstall Jun 20 18:30:46 birbeck: worst thing is, with the next update the user will complain, I'll have to refund the other order and he'll have to buy again Jun 20 18:30:54 wongk, it wont uninstall the app Jun 20 18:30:56 but it won't get uninstalled? Jun 20 18:31:04 well, they can't get updates n what not Jun 20 18:31:08 "i would like to support you with 100$ if you can add to options to your program." Jun 20 18:31:11 " if you interest replay to my email. i will send you the full details." Jun 20 18:31:14 funny thing Jun 20 18:31:36 is that option an ad banner? Jun 20 18:31:53 I got that mail some time ago. is that a scam or is some filthy rich guy genuinely interested in my app? Jun 20 18:32:09 thats up to you to decide Jun 20 18:32:23 it walks like spam and quacks like spam Jun 20 18:32:29 ive had people genuinely want to invest in my apps Jun 20 18:32:39 ducktyping FTW Jun 20 18:32:53 you can't ducktype emails... or can you? Jun 20 18:32:56 hey jake Jun 20 18:38:49 Any way to configure ActionBarSherlock to omit putting the app name in the ActionBar? Besides something stupid like getSupportActionBar().setTitle("") ? Jun 20 18:42:36 Chronax: probably by overriding the theme, which i can't help you with at all Jun 20 18:42:59 ActionBar.DISPLAY_SHOW_TITLE Jun 20 18:43:35 and use setDisplayOptions() Jun 20 18:43:47 oo, mush better Jun 20 18:43:49 much Jun 20 18:44:08 Wait. Jun 20 18:44:20 But what I really want is DISPLAY_PLEASE_DO_NOT_SHOW_TITLE. Jun 20 18:44:25 Which doesn't appear to be an option. Jun 20 18:44:30 http://developer.android.com/reference/android/app/ActionBar.html#DISPLAY_SHOW_TITLE Jun 20 18:44:53 huh ? Jun 20 18:45:18 Finally found an android dev room with people in it! :D Jun 20 18:45:23 Chronax: do you know how to remove that bitflag? Jun 20 18:45:30 No? Jun 20 18:45:50 getSupportActionBar().setDisplayOptions(0, ActionBar.DISPLAY_SHOW_TITLE); Jun 20 18:46:01 setDisplayOptions(getDisplayOptions & ~DISPLAY_SHOW_TITLE) Jun 20 18:46:06 oh Jun 20 18:46:11 Does anyone know if there are a IRC room for App Inventor users? (Please don't flame me, I'm new here.) Jun 20 18:46:30 i default to C++ style :P Jun 20 18:46:31 MaCKaN: yeah, #app-inventor-users (hint: it's empty) Jun 20 18:47:12 :/ So there are no official one then? Every room that almighty Google has provided me with is empty. Jun 20 18:47:51 MaCKaN: no one uses really uses app inventor Jun 20 18:48:13 i don't even know what app inventor is Jun 20 18:48:19 Damn, it works great for my purpose. :/ Jun 20 18:58:13 Quite a run-on here, but does anyone know of an example of creating a Bitmap manually, by setting pixels through for loops, created by reading the bits in a bitmatrix? Jun 20 18:59:42 something like using setPixel? Jun 20 19:00:11 JoeTheGuest: bitmapfactory with bytes Jun 20 19:00:22 Hmm? Jun 20 19:00:35 nebkat Jun 20 19:00:42 sorry Jun 20 19:00:44 Jonathan_Eyre: * Jun 20 19:05:41 isn't setting single pixels, like, the slowest possible way to do any drawing? Jun 20 19:05:57 especially if you have a GPU trying to hw accelerate thigns Jun 20 19:06:02 It looks like BitmapFactory requires that I write the Bitmatrix to a file first. Jun 20 19:06:21 BitmapFactory can load from a byte array Jun 20 19:06:51 ctate: Well, getting a function to do it for you is the same thing. It's likes hiring peanut shellers becuase you don't like shelling peanuts. Jun 20 19:06:53 there's also Bitmap.createBitmap() variants that take a pixel data array as an argument Jun 20 19:07:11 what is the best way to implement a file picker in an android app? Jun 20 19:07:20 Ge0rG: "Don't." Jun 20 19:07:30 why does your app need one? Jun 20 19:07:59 see the dropbox app if you really need that Jun 20 19:08:25 (i ask because it's actually pretty rare for an app to really need to deal with user selection of arbitrary files from shared storage) Jun 20 19:09:18 i can think of 2 use cases Jun 20 19:09:24 readily Jun 20 19:09:42 that doesn't mean it isn't rare. not everybody writes email clients, for example. :) Jun 20 19:09:48 =] Jun 20 19:10:13 ctate: I'm looking for a better way for users to supply an offline map file than "store it as /sdcard/appname.map" Jun 20 19:11:44 well, not being able to open a file you select is imo one of the most limiting things on the iPhone Jun 20 19:11:53 makes simple things incredibly complex Jun 20 19:12:30 it ble wmy mind when i couldn't open an mp3 file on my sd card in any media players :P Jun 20 19:12:46 (sadly, /sdcard on android is a mess) Jun 20 19:12:50 because, you know, files are too complicated for users Jun 20 19:12:50 i tried several Jun 20 19:12:54 MDijkstra: yeah :( Jun 20 19:14:00 but even regular users will want to do stuff such as download a pdf and attach it to a mail Jun 20 19:14:15 even when the e-mail app isn't designed with that exact use case in mind Jun 20 19:14:25 wongk: wait what? re mp3 files Jun 20 19:14:34 because i've never had trouble with that on Android Jun 20 19:14:42 mp3 files show up automagically in the media provider Jun 20 19:14:45 I think he meant iOS Jun 20 19:14:47 not sure Jun 20 19:14:57 oh ah, he said sd card Jun 20 19:15:02 oh Jun 20 19:15:03 which i didn't think iOS devices did Jun 20 19:15:08 they don't Jun 20 19:15:10 so I'm wrong Jun 20 19:15:36 iOS, psh Jun 20 19:15:39 never touched it Jun 20 19:15:45 ctate: note until the media scanner runs Jun 20 19:15:56 but i didn't even know there was a media scanner Jun 20 19:16:13 the media scanner runs immediately iirc Jun 20 19:16:16 so i was all "how the fsck do i play my mp3s?!" Jun 20 19:16:22 it doens't Jun 20 19:16:27 it runs on boot Jun 20 19:16:33 no, certainly not Jun 20 19:16:33 there are apps to make it run Jun 20 19:16:38 at least Jun 20 19:16:45 I've uploaded media to my android device Jun 20 19:16:51 to have it show up automatically Jun 20 19:16:59 it probably runs when the sd card is mounted Jun 20 19:17:01 is there a straightforward way to drill down the z-axis to a specific view (that's stacked on the z with several other view layers) so that you can click it? Jun 20 19:17:26 wongk: yeah, but also using mtp transfers on my phone or tablet Jun 20 19:17:43 so I'm guessing it watches the filesystem since 3.0 Jun 20 19:18:01 maybe, this was on gingerbread Jun 20 19:19:06 Let's assume that I have created a bitmap out of thin air. How do I display it in an ImageView? Do I need to save it to the device first? Jun 20 19:19:23 you have a bitmap object? Jun 20 19:19:54 i wonder what setImageBitmnap might do Jun 20 19:20:08 wongk: it calls finish() on your activity Jun 20 19:20:10 of course Jun 20 19:20:30 of course Jun 20 19:22:16 wongk: Thanks for that help earlier. Jun 20 19:25:52 hello. anybody know of an open-source View subclass that would be a bit like Jason Polites's GestureImageView, except that in addition to showing the initial image passed to it, when zooming in it would ask for a higher precision image corresponding to the now visible part, and that would be provided to it asynchronously Jun 20 19:30:11 tml_: that's quite a specialized use case you've got there... :P Jun 20 19:31:08 well, it corresponds quite closely to how map apps typically work Jun 20 19:31:15 ... also i would like a pony? Jun 20 19:31:35 except that it isn't a map that I am showing, but a word processing document Jun 20 19:31:44 i mean, i can see wanting it, but i think the odds of there being such a detailed beast in opensource for you to adopt are pretty slim Jun 20 19:31:49 who is developing with Scala or something else on Android? Jun 20 19:32:12 is it p_l who i the scala dude, or pfn? i forget. Jun 20 19:32:29 well, one can always hope;) it would be sad to write it yourself only to hear afterwards "why didn't you use FooView, it does all this and is open source" Jun 20 19:32:33 ctate, me Jun 20 19:33:11 pfn: cool… how much of a pain in the ass is it? :) Jun 20 19:33:23 jcromartie, depends on your defn of pita Jun 20 19:33:25 is it possible to make a child view that is below (on the z axis) other view(s) come to the very top for the purpose of handling a click? Jun 20 19:33:50 jcromartie, the negative is always having to proguard, or alternatively installing scala libs on-device Jun 20 19:34:00 pfn: what does proguard mean? Jun 20 19:34:06 I am a 100% Anrdoid n00b Jun 20 19:34:18 jcromartie, proguard is a general java thing, it's an obfuscation/optimization tool Jun 20 19:34:22 have done a lot of iOS, some Java, but more of other JVM languages Jun 20 19:34:46 I see, it cleans up the class files Jun 20 19:34:51 more or less Jun 20 19:35:37 Quick question, is Android a good way to learn Java or is Java a good way to learn Android? Jun 20 19:35:40 irc noob question, what does !s do in a sentence? Jun 20 19:35:46 magnumXopus, the latter Jun 20 19:35:58 Thanks, I suspected. Jun 20 19:37:18 pfn: does Scala have any noticeable impact on app startup time or performance? (I'd hope not but I know Clojure does) Jun 20 19:37:21 I have an ImageView inside a LinearLayout, which is inside a RelativeLayout, but I want to click on the area over the ImageView and have that handle the click...is this possible? Jun 20 19:37:41 jcromartie, it has a negligible impact Jun 20 19:38:03 like basically I want to use the linear and Relative layouts to control where the ImageView is (padding, center, etc) but I want the ImageView to be on top Jun 20 19:38:16 jcromartie, a slightly higher memory footprint, but otherwise nothing Jun 20 19:38:34 pfn: and how about code savings? writing Java is pretty low on my list of things to do Jun 20 19:38:44 so much cruft Jun 20 19:38:52 jcromartie, scala is terse, relatively speaking Jun 20 19:39:02 about the same as say ruby, in terms of terseness Jun 20 19:39:09 tnzr: it's not completely clear what you mean Jun 20 19:39:19 tnzr: what do you want to handle the click/ Jun 20 19:39:31 MDijkstra: well basically if you can imagine several layers of Views, I want the bottom layer to be the one to get the click Jun 20 19:39:42 so the relativelayout Jun 20 19:39:52 pfn: yeah, I like Scala, but I mean like RubyMotion for iOS leaves you writing about the same amount of code Jun 20 19:40:11 well the RelativeLayout holds a LinearLayout which holds more Views, and I want one down in the LinearLayout to get the click Jun 20 19:40:21 jcromartie, well, scala doesn't provide any libs to make android itself any easier Jun 20 19:40:27 hm yeah Jun 20 19:40:31 tnzr: if it's not within the surface of the imageview it will not get the click Jun 20 19:40:34 and shouldn't Jun 20 19:40:34 jcromartie, if you want libs to reduce any necessary boilerplate, then you'll have to find those 3rd party Jun 20 19:40:41 tnzr: but views shouldn't handle logic at all Jun 20 19:40:58 tnzr: why not simply pass the click onto the controlling fragment/activity Jun 20 19:41:11 and have it handle the repositioning as is usually the case Jun 20 19:41:16 hmm Jun 20 19:41:23 I dont think I'm describing what I want to do accurately Jun 20 19:41:24 jcromartie, but the language is considerably more compact Jun 20 19:42:24 pfn: and I guess that any JVM language results in "native" apps unlike the PhoneGap garbage Jun 20 19:42:43 jcromartie, well, not all jvm languages compile down to bytecode well Jun 20 19:42:47 MDijkstra: i want to basically make a View that is several layers deep in a layout be able to stay down there for the purposes of positioning and layout, but I want it to "be on top of everything" in terms of who gets the click when I click on that part of the layout Jun 20 19:42:50 yeah, I guess so Jun 20 19:42:57 MDijkstra: not sure if that makes any more sense than what I said previously :) Jun 20 19:43:05 pfn: I think I'll have to start in Java to get the hang of the classes involved in Android apps and then add Scala when I am comfortable with the general app structure Jun 20 19:43:06 jcromartie, for android, there is no alternative that beats scala Jun 20 19:43:15 I considered using jruby, rhino, jython, clojure, etc. Jun 20 19:43:21 none fit the criteria that works well on android Jun 20 19:43:22 pfn: I assume that Scala classes can stand in for Java classes in any place you need one Jun 20 19:43:40 pfn: i.e. activities, intents, or whatever (I really don't know my vocab yet) Jun 20 19:43:40 yes Jun 20 19:43:46 OK cool Jun 20 19:43:57 tnzr: right, well, if the click falls outside the bounds, it won't get processed by that view Jun 20 19:44:10 tnzr: but you can simulate such an effect Jun 20 19:44:36 or wait, let me have a look Jun 20 19:44:49 MDijkstra: I'm not sure waht you mean by outside the bounds? I'm thinking vertically here, like looking down the Z through a bunch of transparent layers and wanting the bottom most layer to receive the click Jun 20 19:45:12 tnzr: if that layer fills the screen it'll catch it Jun 20 19:45:35 or fills the container Jun 20 19:45:35 I guess I could give that bottom layer an id, in code get that view by id and get its dimensions, and then add a transparent view of the same size on the very top of the parent view holding it, and make THAT get the click Jun 20 19:46:11 seems kinda hacky to me (if even possible) but not only that, this layout is already pretty complex and that'd just be another layer of complexity on top of it all (no pun intended) Jun 20 19:46:13 hrm, you might be able to just get this to work Jun 20 19:47:06 it would be cool if you could just set some property of a view to be "on top of everything else" Jun 20 19:47:30 well, that'd break everything about the event handling, but there's definitely another way Jun 20 19:47:59 tnzr: but I can't find the appropriate api Jun 20 19:48:26 http://developer.android.com/reference/android/view/ViewGroup.html#onInterceptTouchEvent(android.view.MotionEvent) Jun 20 19:49:54 pfn: do you use anything special to include scala in your projects, or do you just set up the build manually? Jun 20 19:50:58 is it possible to use spdy for http requests outside of chrome? I'm looking to do a webservice based app. Jun 20 19:51:52 jcromartie, setup the build manually, I have my own sbt plugin for building Jun 20 19:52:02 jcromartie, there's a couple sbt plugins for building android apps Jun 20 19:52:12 tnzr: ie, that allows the container, which wouldn't normally process the view (the lowest in the hierarchy would) to take charge of the touchevents Jun 20 19:52:26 yay https://github.com/jberkel/android-plugin Jun 20 19:52:49 tnzr: that's most likely what you want Jun 20 19:53:25 tnzr: what might also work is simply disabling touch input for the top layers Jun 20 19:53:34 jcromartie, that's one of them Jun 20 19:53:41 iirc android will then automatically relay the event to the next candidate Jun 20 19:54:55 MDijkstra: ohhh awesome Jun 20 19:54:57 I will try that Jun 20 19:55:01 that would make it very straightforward Jun 20 20:00:24 tnzr: don't know whether the order in which touches are presented to siblings within a container is defined though Jun 20 20:00:39 so you might have to define the onInterceptTouchEvent on the container Jun 20 20:00:54 MDijkstra: ok Jun 20 20:06:48 what part of this sample code is API-level-11-and-up? http://developer.android.com/resources/samples/WeatherListWidget/index.html Jun 20 20:07:07 it looks like ListView and ContentProvider were in level 1 Jun 20 20:07:57 * ctate | If you are writing collection-based widgets, remember that the feature is supported only on Android 3.0 (API level 11) and higher versions of the platform. Jun 20 20:07:59 so, presumably that? Jun 20 20:08:22 Is it possible to develop in sublime? as your "ide" ? Jun 20 20:08:32 ctate: what is "the feature" Jun 20 20:08:32 knxville: sure Jun 20 20:08:47 MDijkstra: got any docs on setting it up? Jun 20 20:08:50 MDijkstra: How about layouts, xml etc? Jun 20 20:08:52 knxville: you can build from the command line and as such can use anything as your IDE Jun 20 20:08:58 knxville: hand editing Jun 20 20:09:11 jcromartie: collection-based widgets Jun 20 20:09:13 Like ListView Jun 20 20:09:18 Thats what i was worrying about.. Its more difficuelt i could imagine? Jun 20 20:09:27 knxville: yes, certainly Jun 20 20:09:27 SimonVT: lol wit… ListView is Android 3.0? Jun 20 20:09:29 no way Jun 20 20:09:37 No, listview in appwidgets is Jun 20 20:09:44 jcromartie: no, listview in widgets is android 3.0 Jun 20 20:09:54 I recon I will use eclipse for the full experience, and sublime when i'm editing single files etc.. Jun 20 20:09:59 Thanks anyway.. Have a good day.. Jun 20 20:10:01 oh OK and a widget is… a home screen thing? Jun 20 20:10:05 yep Jun 20 20:10:07 appwidget is Jun 20 20:10:19 A widget is an ui element Jun 20 20:11:25 whenever i try to push files to ics emulators, i get out of memory Jun 20 20:11:37 but it works for froyo and gingerbread with the same settings Jun 20 20:20:02 How can I display a bitmap in the ICS notification dropdown? I've done it before but can't remember how now... Jun 20 20:23:32 luxurymode: Notification notification = new Notification(R.drawable.asterisk_sign, text, System.currentTimeMillis()); Jun 20 20:23:46 thats a drawable resource not a bitmap Jun 20 20:23:49 I can see a png I created in the adb shell. How can I get it to my PC filesystem? Jun 20 20:24:00 I'm trying to create a custom keyboard. I've put the layout for the keyboard in an xml file. When I try to inflate I get the following error, any suggestions?Error inflating class android.inputmethodservice.Keyboard.Row Jun 20 20:24:09 im talking about something new in ICS that allows you to show a bitmap on the left hand-side in the dropdown by the notification Jun 20 20:25:14 kinda like how Google Music will show the album art in the notification drawer next to what is playing Jun 20 20:27:07 that's also what i'm talking about. Jun 20 20:27:19 except it's been available long before ICS. Jun 20 20:27:23 Ah, just found adb pull. Jun 20 20:27:43 luxurymode: http://developer.android.com/guide/topics/ui/notifiers/notifications.html Jun 20 20:27:53 seen it, doesnt help me Jun 20 20:27:53 see 'Creating a Custom Notification Layout' Jun 20 20:28:09 that's not even necessary lol. Jun 20 20:28:10 luxurymode: it's in there. Jun 20 20:28:15 but nice to know i guess. Jun 20 20:28:56 luxurymode: the example is even your exact use case Jun 20 20:28:58 in my statusbar notification, when it first rolls over i the icon appears perfect in android 2.1, but in ICS its over sized. Once it's done the scroll effect and its just stationary up there, it looks fine. Jun 20 20:29:18 LOL straight from the example: Notification notification = new Notification(icon, tickerText, when); Jun 20 20:29:22 looks familiar. Jun 20 20:30:15 tnzr exactly Jun 20 20:30:26 i've done it before with a custom notification layout Jun 20 20:30:27 Does someone have an idea why I get the following error? Caused by: java.lang.ClassNotFoundException: android.inputmethodservice.Keyboard.Row in loader dalvik.system.PathClassLoader[/data/app/com.mykeyboard-2.apk] Jun 20 20:30:41 Hello, I am new with java and android. In the moment I am working with the googlemaps api. Until now I load a map in my view and draw a Overlay with paths wich i fill with a color, so that it draw a red area on my map. But I dont understand how I can apply a onTap event, so that a toast pop up when I click on the area. This is my main activity: http://pastebin.com/EKx02Zkv and this is the Jun 20 20:30:41 class wich draw the overlay: http://pastebin.com/WuE4Haz6 (points is a ArrayList with GeoPoints) Jun 20 20:30:49 moonlightcheese: the advantage a custom layout has is that you can swap the bitmap easily Jun 20 20:30:59 don't think you can do that with a normal notification with an icon Jun 20 20:31:07 oh that's true, there's no way to do that with the Notification class. Jun 20 20:31:11 moonlightcheese: plus I think the icon has to be a resource Jun 20 20:31:11 good point. Jun 20 20:31:16 it does. Jun 20 20:32:39 i meant ive done it before WITHOUT a custom notification layout* Jun 20 20:32:52 then you did it my way. Jun 20 20:33:07 because, afaik, there's no other way to do it without a custom layout. Jun 20 20:33:15 I don't think there is, no Jun 20 20:33:24 and if the custom layout way works, why bother? Jun 20 20:34:22 bother with what? Jun 20 20:34:35 with finding a magic third way to do it Jun 20 20:34:40 oh. Jun 20 20:34:43 that probably doesn't exist :) Jun 20 20:34:54 he wants it to write itself? Jun 20 20:37:16 So I have this command in my onStartCommand() portion of my service: "this.selectedItem = intent.getStringExtra("selectedItem");". Not all the time, but sometimes when it's running in the background I get a NPE with that. Doesn't onStartCommand() only run _once_? When the service is started? Why would I get a NPE? Jun 20 20:37:25 yep Jun 20 20:38:02 ninjai: so getIntent() returns null? Jun 20 20:38:16 yeah Jun 20 20:38:57 ah, the intent is passed as a param Jun 20 20:39:45 yeah, but it _works_ when I start it. Randomly I get a FC because of that being null. But I thought it only ran when the service was started. Jun 20 20:40:00 ninjai: "The Intent supplied to startService(Intent), as given. This may be null if the service is being restarted after its process has gone away, and it had previously returned anything except START_STICKY_COMPATIBILITY." Jun 20 20:40:28 wish some file formats were better standardised, rather than relying on the subtleties of a small number of specific implementations, and a rough description of the file structure Jun 20 20:41:20 MDijkstra, so it's normal? What should I do about it? I can't see making a try/catch block for that being the right thing to do Jun 20 20:42:12 shouldnt you just be doing if intent.getAction().equals bla bla Jun 20 20:42:14 ninjai: I think you can simply do "if(intent==null) return Service.START_STICKY; Jun 20 20:42:24 else return START_STICKY Jun 20 20:42:25 ninjai: oh whatever you normally return Jun 20 20:42:39 I had this really complicated problem but then I got awesome and fixed it. Bam. Jun 20 20:43:14 ninjai: ie, when it's null it means that no startrequest has actually been delivered Jun 20 20:43:26 *startService intent Jun 20 20:43:35 it's just being restarted after an OOM cleanup or something Jun 20 20:43:43 so you have no work to do Jun 20 20:44:10 ninjai: I dunno what this service does? Jun 20 20:45:58 I just created a Bitmap with a custom Barcode on the fly passing data rendered from classes derived from zxing without linking to any external library, and fed it all into an ImageView without storing any residual data on the device. I don't know if I should congratulate myself or get reprimanded somehow. Jun 20 20:45:58 MDijkstra, the service just starts up a location manager with a value passed from an activity Jun 20 20:46:19 ninjai: right, is it bound to the lifecycle of the activity? Jun 20 20:46:34 Hello, I am new with java and android. In the moment I am working with the googlemaps api. Until now I load a map in my view and draw a Overlay with paths wich i fill with a color, so that it draw a red area on my map. But I dont understand how I can apply a onTap event, so that a toast pop up when I click on the area. This is my main activity: http://pastebin.com/EKx02Zkv and this is the Jun 20 20:46:34 class wich draw the overlay: http://pastebin.com/WuE4Haz6 (points is a ArrayList with GeoPoints) Jun 20 20:46:56 ninjai: of one or more of your activities, I mean Jun 20 20:47:07 sukramTM: onTouchEvent Jun 20 20:49:40 moonlightcheese: Short buzz phrase dont help me, the examples wich I found dont help me to work with my draw Jun 20 20:49:42 MDijkstra, I use startService() to start it, so it shouldn't be bound to the activity, right? Jun 20 20:50:17 ninjai: right, the point is that if it's recreated you lose the parameter passed in the intent Jun 20 20:50:39 sukramTM: that phrase will give you all the help you need. Jun 20 20:51:05 ninjai: if you're restarted by the system you could simply wait quietly until the activity provides the param again Jun 20 20:51:06 here, i'll even get you started: http://lmgtfy.com/?q=onTouchEvent Jun 20 20:51:07 MDijkstra, ah that makes sense. But it would have already been set in my variable passed to the service, so it's ok to do a if(intent != null), assign it. right? Jun 20 20:51:23 ninjai: well no, the service object is recreated Jun 20 20:51:29 so the original param is gone Jun 20 20:51:33 oh Jun 20 20:51:38 ninjai: you can either leave the service running Jun 20 20:51:45 until the activity tries to restart it Jun 20 20:51:49 MDijkstra, that's what my intentions were Jun 20 20:51:56 to leave it running Jun 20 20:52:04 I mean, once the activity attempts to start it again Jun 20 20:52:09 even if it's still running Jun 20 20:52:14 indefinitely, until the user stops it Jun 20 20:52:16 onStartCommand will be called again Jun 20 20:52:25 this time with the intent Jun 20 20:52:44 ninjai: this only happens on OOM conditions Jun 20 20:52:46 It's like someone ask me: Explain me diabetes And I say: metabolic diseases Jun 20 20:53:30 moonlightcheese: and why dont use ontap? Jun 20 20:53:59 and my first reaction would be to google both "diabetes" and "metabolic diseases" and get enough information to work with, because i'm a normal human being with an acceptable level of curiousity and ambition. Jun 20 20:54:12 ninjai: ie, when this happens it's okay to turn off the locationmanager Jun 20 20:54:28 stop talking to me. google is way nicer than i am. Jun 20 20:55:50 Hope the next person say the same to you Jun 20 20:56:14 lov will handle that. Jun 20 20:56:23 ninjai: ahhhh Jun 20 20:56:25 he tells me how stupid i am on a regular basis. Jun 20 20:56:25 MDijkstra, this is where I'm confused. My app is just something I'm messing around with, I want to be able to walk and have it tell me how far I've walked. It's all working except the FC issue that we've been discussing. Wouldn't I want it to never run onStartCommand again? I don't want it to kill my location manager Jun 20 20:56:34 ninjai: it's simply as easy as returning START_REDELIVER_INTENT Jun 20 20:56:39 nothing else needed Jun 20 20:56:42 =\ Jun 20 20:56:43 really? Jun 20 20:56:46 yeah Jun 20 20:56:51 I'm using return START_STICKY; Jun 20 20:56:56 I'll give that a shot then Jun 20 20:57:18 yeah: "if this service's process is killed while it is started (after returning from onStartCommand(Intent, int, int)), then it will be scheduled for a restart and the last delivered Intent re-delivered to it again" Jun 20 20:57:58 aw that's awesome! thanks a lot MDijkstra, I thought START_STICKY was definitely waht I wanted, lol Jun 20 20:58:40 ninjai: although you might be better off just writing this variable into shared storage Jun 20 20:59:03 ninjai: the onStartCommand intent is kind of meant for job parameters Jun 20 20:59:04 MDijkstra, you could be correct, and I might end up doing that. Jun 20 20:59:43 if it is, where is the appropriate place to create the things I only want to create once? I've tested before and onStart() seems to be the wrong place Jun 20 20:59:58 onStart is legacy Jun 20 21:00:08 you shouldn't override that on modern API versions Jun 20 21:00:14 everything >4 afaik Jun 20 21:00:57 ninjai: onCreate I guess Jun 20 21:02:45 Hi Jun 20 21:02:46 MDijkstra, that's what I meant, not onStart() haha. Jun 20 21:07:19 why on earth would my ADV all of a sudden be launching instead of using my phone? USB debugging is on. Just restarted eclipse, my phone, and adb, same result Jun 20 21:08:23 Checked Run, Run Configurations:Target? Jun 20 21:08:34 ninjai: this happens to me so often that I've turned off auto launching Jun 20 21:08:38 PITA really Jun 20 21:09:12 just randomly happens, pulling out the USB cable and reconnecting it fixes it Jun 20 21:12:26 MDijkstra, wow that did the trick... thanks. Jun 20 21:12:29 hmm, are non-escaped scapes not allowed in URI paths? Jun 20 21:12:54 ninjai: is it the accuracy? Jun 20 21:13:00 the param Jun 20 21:13:44 MDijkstra, accuracy? Jun 20 21:13:51 the intent param Jun 20 21:13:54 oh Jun 20 21:13:54 not sure Jun 20 21:13:59 I need to take a walk to test it haha Jun 20 21:14:08 I mean, what's the param for? Jun 20 21:14:16 I was just enraged when I couldn't test it because eclipse kept trying to launch the bloody ADV Jun 20 21:14:31 MDijkstra, it's to pass a selection value on the previous screen to the service Jun 20 21:14:39 a profile Jun 20 21:14:48 ah Jun 20 21:16:15 on that note, I'm going for a walk to test this out. Can't get GPS in my building :( lol Jun 20 21:16:45 yep, hadnt encoded the URI correctly, no surprise there @ spaces not allowed Jun 20 21:17:10 Does anybody actually use the static field naming convention? Like 'public static boolean sBoolean = true;' ? Jun 20 21:17:25 not I Jun 20 21:17:26 gowie: no Jun 20 21:17:37 I didn't know that existed... Jun 20 21:17:45 Do you guys use the member naming convention? Jun 20 21:17:51 yep Jun 20 21:18:00 member? Jun 20 21:18:00 like private boolean mBoolean = false; Jun 20 21:18:01 m? Jun 20 21:18:04 no Jun 20 21:18:06 I just started using java and I don't know all the conventions yet Jun 20 21:18:08 I do Jun 20 21:18:16 bit of a pain that eclipse doesn't strip that Jun 20 21:18:21 i heavily dislike that member naming convention Jun 20 21:18:21 this.field is clear enough Jun 20 21:18:24 when generating getters and setters Jun 20 21:18:25 why do you guys always put 'm' in the front? :\ Jun 20 21:18:35 because the android guys do it Jun 20 21:18:40 Dangit, because people dont like to follow javas naming conventions :/ Jun 20 21:18:41 mainly Jun 20 21:18:52 They're both encouraged by Android code style guide Jun 20 21:18:54 :\ java is our father Jun 20 21:18:57 Netbeans developers use I for interfaces a lot, its non-standard Jun 20 21:19:07 I use I Jun 20 21:19:07 all the tuts I've used so far use that convention Jun 20 21:19:12 I don't really see the point either Jun 20 21:19:13 but oh well Jun 20 21:19:21 not such a big deal Jun 20 21:19:29 and it avoids some scope confusion Jun 20 21:19:34 gowie: the Android code base uses some of these naming conventions Jun 20 21:19:37 My tuts use 'In' at the end of the variable... Jun 20 21:19:40 the first rule of conventions is to stick to one and use it consistently Jun 20 21:19:41 sVariableName => class statics Jun 20 21:19:41 hm.. I think I will use the member naming convention, but skip on the static one. Just seems like too much Jun 20 21:19:44 i can see its use, but i dislike it because its non-standard for java Jun 20 21:19:51 mVarName => nonstatic class member Jun 20 21:19:53 the second rule is "when in rome" Jun 20 21:20:00 but no Hungarian notation for types Jun 20 21:20:15 and constants IN_CAPS_WITH_UNDERSCORES Jun 20 21:20:18 cstate I know, i know. I am just checking if they are actually used. Jun 20 21:20:29 gowie: i use them in my own code, too Jun 20 21:20:31 MDijkstra, do you mean static finals? :P Jun 20 21:20:32 I see the mMember naming convention all the time, but never the static. Jun 20 21:20:34 Well I was writing the '99 Bottles Of Beer Song" In java Jun 20 21:20:38 IMO it helps future readability a lot Jun 20 21:20:45 http://www.mediafire.com/download.php?6pwq3ysys92aa81 Jun 20 21:20:46 robb_www: I meant unicorn ponies Jun 20 21:20:48 but thanks Jun 20 21:20:50 tell me if you can make it better Jun 20 21:20:55 to know implicitly what the scope & lifetime of a variable are Jun 20 21:20:58 I finished it though Jun 20 21:21:07 MDijkstra, im also glad we got that cleared up Jun 20 21:21:24 I don't use the m/s naming conventions and I don't miss them Jun 20 21:21:30 the statement are shown in println statements.... Jun 20 21:21:30 like, I never feel that I need them Jun 20 21:21:40 i've had to read other poeples' code that didn't use them, and i seriously missed them :) Jun 20 21:21:51 alright good discussion guys. I'm skipping on the static, but keeping the memeber. Jun 20 21:22:01 it's personal preference Jun 20 21:22:06 hayolie I'm working on a fairly large project, so I think it is useful. Jun 20 21:22:08 a good IDE can tell you what a variable is Jun 20 21:22:11 oh and in C/C++ i use a leading 'g' for globals Jun 20 21:22:35 i would say that if more than just you are going to be looking at the code, adopting some of these conventions will pay off Jun 20 21:22:44 Anybody looking at the Bottles of beer song? Jun 20 21:23:06 with a layout designed from the ui what class is a new view added to in oncreate? Jun 20 21:23:27 ctate: a good idea uses different colors :) Jun 20 21:23:34 IDE Jun 20 21:23:39 oh that too Jun 20 21:23:44 cstate Yeah, makes sense. Alright, have a good one everybody. Jun 20 21:23:55 but you can't standardise everybody's IDEs as readily Jun 20 21:23:57 scope prefixes ;p Jun 20 21:24:01 mister intelliJ :) Jun 20 21:24:04 Ok, actual question time. When I press the hardware back key to go back to the home screen then return to the app, it seems like the Activity.onCreate() method gets called again, but other data from the last time the program was running still exists (like static members) and its causing duplicate ID errors. Jun 20 21:24:12 I'm okay with these conventions, better than my coworker's preceding everything that's not built in with "obj" Jun 20 21:24:20 MDijkstra: could be worse. i have worked on a project where the "class member" scope decoration was a trailing _ Jun 20 21:24:25 but I don't think they add much either Jun 20 21:24:25 field_ Jun 20 21:24:30 but it was C/C++ Jun 20 21:24:32 like I said, the IDE already knows what a variable is Jun 20 21:24:43 so there was a lot of code like foo_->doSomething() Jun 20 21:24:48 with a layout designed from the ui what class is a new view added to in oncreate? Jun 20 21:24:48 which is like instant carpal tunnel Jun 20 21:24:52 TheMusicGuy: you have to add the finish method to end i believe Jun 20 21:25:03 Anybody looking at the Bottles of beer song? Jun 20 21:25:03 http://www.mediafire.com/download.php?6pwq3ysys92aa81 Jun 20 21:25:05 ctate: well, coding Java without an IDE is as well Jun 20 21:25:15 I want to know if anybody can make it better Jun 20 21:25:16 heh Jun 20 21:25:38 ViewGroupFactorySingletonAntiPattern Jun 20 21:26:15 hi Jun 20 21:26:22 I have no trouble coding python or C without an IDE Jun 20 21:26:26 but Java Jun 20 21:26:48 well of course, especially with C, you can memorize the entire API. Jun 20 21:26:50 Dangit: is that Activity.finish(), and which event handler do I put it in? Jun 20 21:26:56 ctate: it could be _foo_->_doSomething_() looks most aesthetically pleasing to me Jun 20 21:26:58 i mean it like fits on what, 30 pages? :) Jun 20 21:26:58 here's something that further alleviates the need for these conventions: keep functions short Jun 20 21:27:05 is there a class name for the default layout from the gui. ???.setorientation Jun 20 21:27:07 :) Jun 20 21:27:15 TheMusicGuy: its something like that Jun 20 21:27:17 then you can easily tell whether a variable is local or not Jun 20 21:29:04 the more _'s you use , the easier it is to read Jun 20 21:29:23 I agree, that's also why python is so readable Jun 20 21:29:29 hehe Jun 20 21:29:37 __they__ __love__ __them__ __underscores__ Jun 20 21:30:02 i demand a programming langauge the swaps the function of _ and space. Jun 20 21:30:06 __slots__ = ['you', 'mad'] Jun 20 21:30:17 that* Jun 20 21:31:06 hi, can you guys answer http://stackoverflow.com/q/11127326/1068546 ? Jun 20 21:33:41 hi, can you guys answer http://stackoverflow.com/q/11127326/1068546 ? Jun 20 21:34:27 Dangit: I tried @Override protected void onStop() { super.onStop(); finish(); } Jun 20 21:34:40 it didn't make a difference, I still get the ID errors Jun 20 21:35:06 I'm trying to debug an android app for 2.1. How do I get the android source code so I can link it into my debugger? Jun 20 21:35:09 royale1223: you mean like MergeCursor ? Jun 20 21:35:24 i didn't follow … but i haven't use the Contacts provider yet Jun 20 21:35:46 I have the eclipse plugin, but it doesn't give me an option to get source code for versions older than 4.0. I have also seen this page http://source.android.com/source/downloading.html but I don't understand how to get 2.1 from it Jun 20 21:35:59 TheMusicGuy: (a) what errors [pastebin!], and (b) why the heck are you trying to exit the activity just because it got stopped? Jun 20 21:36:17 g00s, nah. It's just that RawContacts.NAME_VERIFIED is not in public API. Jun 20 21:36:50 hm, sorry Jun 20 21:37:21 ctate: Jun 20 21:37:44 ctate: It's a custom exception. If an instance of a Texture object gets created that uses the same ID an existing instance, InvalidArgumentException is raised. It uses a static HashMap to keep track of textures and their IDs. Note: These IDs are NOT the same as OpenGL texture names. Jun 20 21:38:27 * ctate | other data from the last time the program was running still exists (like static members) and its causing duplicate ID errors. Jun 20 21:38:31 ctate: Also, I can't get a useful stack trace so I have nothing to pastebin. Jun 20 21:38:40 so, uh, don't initialize your statics more than once? Jun 20 21:38:52 ctate: I'm not. Jun 20 21:39:01 you are if you're seeing duplicate IDs Jun 20 21:39:54 Like I said, the onCreate method is getting called while the statics are still initialized from the last time, which is what's causing the ID errors. Jun 20 21:40:12 right Jun 20 21:40:37 because statics are at application scope & lifetime; Activity.onCreate() is for one particular Activity object instance's lifetime Jun 20 21:40:40 I don't know why that's happening, I thought that the app was completely destructed before onCreate could be called again Jun 20 21:40:50 TheMusicGuy, What is the problem? Jun 20 21:40:58 which onCreate() method? application? activity? contentprovider? service? Jun 20 21:41:06 they all have different lifecycles Jun 20 21:41:07 ctate: Activity Jun 20 21:41:26 statics have the lifetime *of the VM instance* Jun 20 21:41:32 not of any particular object, like an Activity Jun 20 21:41:45 and the VM instance is not torn down every time some other app shows up on top of yours Jun 20 21:42:07 I need to leave in a few minutes. will you be here like 20min from now? Jun 20 21:43:09 i'm following windows phone 8 technical features announcement with great interest. there is a lot to digest, they have made great progress in this amount of time. i hope somebody with deep knowledge of android can do a comparison as far as development experience / features between the 2 platforms (apis in common, etc). its seems like they have gone for great win here. Jun 20 21:43:17 How is that different than what happens when you hit the home key and then return to the app Jun 20 21:43:36 because that doesn't cause the ID errors (although it clears OpenGL textures) Jun 20 21:43:54 TheMusicGuy: that backgrounds it Jun 20 21:44:01 won't cause onCreate to be called again Jun 20 21:44:01 What do you guys think of using code from Android source in applications? Jun 20 21:44:32 royale1223: i do it sometimes, like provate internal stuff that doesn't depend on anything else Jun 20 21:44:33 TheMusicGuy: unless the app gets killed while you're doing other stuff on the phone due to memory requirements Jun 20 21:45:15 TheMusicGuy: when you hit 'Home' your activity instance isn't even torn down, let alone the whole app Jun 20 21:45:29 g00s, hmm, that other thing is killing me. Jun 20 21:45:49 Ah...sorry, I'd like to ask more about this but I need to go Jun 20 21:46:01 thank you, I'll be back in a bit Jun 20 21:47:30 ctate: any difference between using Handler vs Timer for a simple method delay execution? Jun 20 21:48:25 ctate, do you know about RawContacts.NAME_VERIFIED? Jun 20 21:48:43 hello there Jun 20 21:49:03 please, could someone give me com.sec.badge application? Jun 20 21:49:14 Korigan: here you go Jun 20 21:49:24 * g00s gives Korigan a com.sec.badge Jun 20 21:49:31 1) #____ 2) #_____ Jun 20 21:49:31 token economy. Jun 20 21:49:32 thank's ;) Jun 20 21:49:48 hi Jun 20 21:49:49 hi Jun 20 21:49:49 hi Jun 20 21:50:03 i remove this service, and now i can't run messaging application anymore :S Jun 20 21:50:35 factory reset works a treat Jun 20 21:50:55 i searched on many place...but my last hope is to ask someone Jun 20 21:51:12 yes robb_www, will be my last task Jun 20 21:51:26 (if i don't find this app somewhere) Jun 20 21:51:33 Korigan, is it the mail app? Jun 20 21:51:38 yes royale1223 Jun 20 21:51:46 Korigan: I'm probably going to regret this, but why are you removing random services? Jun 20 21:51:52 logcat show me a dependencies Jun 20 21:52:24 Korigan, do you have firmware files with you? Jun 20 21:52:34 MDijkstra, i had some popup for sexy meeting that i wanted to drop...so i begin to clean my services...and i drop the wrong one :S Jun 20 21:53:15 guess yes royale1223, i can find that Jun 20 21:53:39 but do you think firmware contains some app's? Jun 20 21:54:09 Korigan, download em, unpack em, and com.sec.app.apk must be in system/app/ . Jun 20 21:54:32 many thank's! i test it right now! thank's Jun 20 21:55:09 lol @ sexy meeting Jun 20 21:55:18 wongk: you there? Jun 20 21:55:19 Korigan., It's okay for now but plese ask similer questions in #android-root the next time. Jun 20 21:55:45 I want (every couple of minutes) to send a command to a server and depending upon what I receive as output, I want to notify the user; the command just checks whether any new users have logged in to the server or not Jun 20 21:55:58 I feel that a Service for this is overkill? Jun 20 21:56:10 allright royale1223, will do! Jun 20 21:56:25 Sicp: do you want this to happen even if the app is not the foreground UI? do you want it to happen while the screen is off? Jun 20 21:56:27 * Korigan the newbies Jun 20 21:56:48 Sicp: a service is the only way to do this properly if you also want to do it while the app isn't open Jun 20 21:57:00 yes ctate, and the time interval (or even the notifications themselves) depend on the choice of the user (they can opt out of it if they choose) Jun 20 21:57:13 (ie, while no activity is in the foreground) Jun 20 21:57:15 yea I felt so Jun 20 21:57:24 Sicp: possibly c2dm is also an option Jun 20 21:57:28 if you want it to happen whiel the app is in the background, that is the sort of thing that Service is *for* Jun 20 21:57:42 and yes, c2dm to push updates from the server can be much better than polling from the app Jun 20 21:59:02 it's a sysadmining application, so maybe I can fetch more than just who has logged in recently; maybe it can be a full report Jun 20 21:59:16 heh Jun 20 21:59:26 and I already have a Connection service, so it shouldn't be difficult to implement Jun 20 21:59:37 FWIW doing network access every couple of minutes, even in the background, is approximately the worst possible thing you can do for battery life Jun 20 21:59:38 Anybody looking at the Bottles of beer song? Jun 20 21:59:42 cause..c2dm seems like it needs to have the server doing things Jun 20 21:59:42 http://www.mediafire.com/download.php?6pwq3ysys92aa81 Jun 20 21:59:45 I want to know if anybody can make it better Jun 20 21:59:54 Dangit: i think it's safe to say nobody is, especially since you haven't metnioned any specifics about your issue Jun 20 22:00:05 I want to know if anybody can make it better Jun 20 22:00:20 also pastebin is typically a lot handier than downloads for this sort of thing Jun 20 22:00:31 "better" in what way? and what's it for? Jun 20 22:00:33 I thought it was an actual song.. Jun 20 22:00:38 ok, pastebin, since you guys don't trust me Jun 20 22:00:40 i mean, are you asking people to do your homework for you? because that's what it sounds like. Jun 20 22:00:57 "just improve it, let's see what you come up with", haha Jun 20 22:01:26 this is not an android app Jun 20 22:01:35 i just sold my copy of sicp Jun 20 22:01:37 nah Jun 20 22:01:44 just witten in java Jun 20 22:01:51 you sold the book? how? Jun 20 22:01:55 http://pastebin.com/0NhgrXh7 Jun 20 22:02:01 Sicp: amazon Jun 20 22:02:07 I mean, HOW could you :P Jun 20 22:02:10 the free pdf is available anyhow :) Jun 20 22:02:17 I used the book to do a presentation for a job interview a couple of days..they asked for "what inspires you" Jun 20 22:02:26 I'm in Lebanon, we don't find that stuff easily here Jun 20 22:02:28 I just wanted to make the 99 bottles song in java; I was wonder is this the best I can do with the song... Jun 20 22:02:32 Sicp: http://sicpebook.wordpress.com/ Jun 20 22:03:17 nice Jun 20 22:03:27 Sicp: i find it actually easier to have a pdf reader and mzsceme open at the same time Jun 20 22:03:28 Dangit: wtf it has nothing to do with android, just arguably the most simple java code ever Jun 20 22:03:38 CSS changes from one Page to another :P Jun 20 22:03:44 lol Jun 20 22:05:22 "1 Bottles Of Beer" Jun 20 22:05:24 tsk tsk :) Jun 20 22:05:35 Do you guys know about RawContacts.NAME_VERIFIED? Jun 20 22:05:35 FizzBuzz Jun 20 22:05:48 Buzz Killington Jun 20 22:05:49 i said it was written in java. I said nothing about android, even though this is a android chat. I just wanted to see what I can to do the BOB song in java Jun 20 22:06:03 Is there any real world difference/advantages between these two bits of code: http://pastebin.com/hT4u7699 Jun 20 22:06:09 well then Jun 20 22:06:10 MDijkstra: by a friend of mine: http://www.plover.net/~ctate/FizzBuzz/ Jun 20 22:06:18 i like turtles Jun 20 22:06:24 MDijkstra: read the "source text" :) Jun 20 22:06:30 [which literally is the source code file] Jun 20 22:06:38 * g00s still doesn't know what the hell Dangit is talking about Jun 20 22:06:44 Dangit: try doing something without system.out since that isn't useful on Android Jun 20 22:06:44 ctate that's bad grammer, tou agree? '1 bottles of beer' Jun 20 22:06:53 ok Jun 20 22:06:54 yes, that is incorrect Jun 20 22:07:12 and "Toke" is a verb meaning to inhale, as smoke Jun 20 22:07:32 Dangit: and you don't have to say anything about andorid, this is #android-dev so it is a fundamental assumption that you are talking about Android Jun 20 22:07:48 and yeah, you really want ##java or some channel like that. this has nothing to do with android. Jun 20 22:08:00 i still say it looks like a homework assignment. Jun 20 22:08:02 and then paste Java 'Hello World' and waste everyone's time Jun 20 22:08:04 ctate i'll just fix that with a if statement Jun 20 22:08:07 ctate: haha Jun 20 22:08:15 * MDijkstra installs zoom Jun 20 22:08:31 java homework on summer break - what a way to spoil things x2 Jun 20 22:08:42 MDijkstra: is that not a rad language? :) designed specifically for interactive fiction authoring Jun 20 22:08:42 ctate: looks exactly like that Jun 20 22:08:50 * royale1223 is being murdered!!! Jun 20 22:09:02 (though this is a pretty egregious abuse of the language) Jun 20 22:09:50 before I can get better at android, i need to get better at java Jun 20 22:10:14 Dangit, thats not true.. Jun 20 22:10:17 find some decent tutorials Jun 20 22:10:22 Dangit: good luck and best wishes Jun 20 22:10:43 royale1223: ? Jun 20 22:11:16 Dangit, you can learn android first. But you need to be super smart. Jun 20 22:12:10 Dangit, you'll learn java eventually along with android. Jun 20 22:13:40 so dont keep on reading 600+ paged books about java just to have to read a 600+ paged book on android? Most android bookss expect you too know java except one book on android Jun 20 22:13:50 Is TimerTask discouraged on android? Jun 20 22:14:19 code1: depends what you are doing Jun 20 22:14:37 code1: AlarmManager is a good option in many cases Jun 20 22:14:40 Dangit, just start coding for android. You'll learn it without reading books. Jun 20 22:14:42 it's fine, it just doesn't necessarily result in running when you want to because it isn't aware of e.g. the device going to sleep, wakelocks, etc. Jun 20 22:14:56 Delaying execution of a method within a service for a few seconds Jun 20 22:15:03 royale1223: i disagree. having some actual facility with the programming language will help enormously. Jun 20 22:15:23 if you're already expert in some vaguely similar language then that's fine; you'll pick up java quickliy Jun 20 22:15:28 ctate, but this is faster. Jun 20 22:15:35 ctate: was the wakelock comment in response to me? Jun 20 22:15:36 not if you aren't already accomplished Jun 20 22:15:39 code1: yes Jun 20 22:15:47 too may convos at once :) Jun 20 22:15:52 code1: I would use either AlarmManager or Handler depending on your needs Jun 20 22:16:00 would a Handler make any difference in that case? Jun 20 22:16:00 ==mr6 Jun 20 22:16:01 ctate, accomplised? Jun 20 22:16:11 * g00s == ctate ; learn java first, then get Reto's android book Jun 20 22:16:15 AlarmManager.set() and Handler.postAtTime() Jun 20 22:16:17 royale1223: better than "beginner"; not necessarily expert Jun 20 22:16:33 code1: as he said, it depends on what behavior you are actually trying to achieve Jun 20 22:16:43 code1: if you have an async runnable than i would use Handler for sure Jun 20 22:16:57 posting messages to your Handler, to be delivered/processed at the desired tiem in the future, is a great way to schedule future activity Jun 20 22:17:00 ctate: I learned java while coding android. Jun 20 22:17:07 ctate: (23:14:55) code1: Delaying execution of a method within a service for a few seconds Jun 20 22:17:08 and not be intrusive on the device's going to sleep Jun 20 22:17:24 oh for that, totally do it on a handler Jun 20 22:17:36 agree Jun 20 22:17:45 http://pastebin.com/hT4u7699 Jun 20 22:17:50 unless you absolutely positively need to *wake the device up* and run the code *at that moment* even if it went to sleep in the meantime Jun 20 22:18:07 [if you just post it to a handler and that happens, it will run as soon as the device next wakes up] Jun 20 22:18:21 yes it is possible your service would suspend right after you post it Jun 20 22:18:31 the "run as soon as possible after this time" behavior is very often all you really need Jun 20 22:18:44 e.g. that's how most stuff on Android is implemented Jun 20 22:18:45 ctate: what's the difference between the Timer and Handler code - are they essentially exactly the same? Jun 20 22:18:56 Handler/Looper is a message queue architecture Jun 20 22:19:20 the Looper is the thread that services messages/Runnables Jun 20 22:19:35 a Handler is an interface to being able to enqueue work for processing on its associated Looper Jun 20 22:19:38 essentially the event loop android uses, right? Jun 20 22:19:40 more than one Handler can point to the same Looper Jun 20 22:19:48 royale1223: have you released any android apps yet? Jun 20 22:20:00 yes, basically everything in Android is built on top of the Handler/Looper method Jun 20 22:20:38 Dangit, yes Jun 20 22:20:43 all those lovely Activity callbacks, like onCreate() / onResume() etc? those are scheduled and executed on a Looper thread via a Handler maintained within the framework code Jun 20 22:20:45 So it's more efficient to use Handler than Timer? Jun 20 22:20:47 what apps? Jun 20 22:20:51 code1: yes Jun 20 22:21:02 which* Jun 20 22:21:03 especially because you get them for free Jun 20 22:21:18 Even in that simple example I posted? Jun 20 22:21:23 (your activity and service etc all have a Looper thread running their lifecycle events and so on already) Jun 20 22:21:25 Dangit, http://www.xda-developers.com/android/multi-boot-manager-for-motorola-defy/ Jun 20 22:21:44 code1: "Unknown Paste ID!" Jun 20 22:22:05 Dangit, I learned while coding this. Jun 20 22:22:38 ctate: http://pastebin.com/2riUxPaQ Jun 20 22:22:48 That's essentially all I need it for Jun 20 22:22:57 simple call to a method within the service Jun 20 22:22:58 learnt* Jun 20 22:23:42 is it possible to change the background of the options menu panel on froyo+ ? Jun 20 22:23:43 has anyone gotten file uploads from a webview to work? Jun 20 22:23:49 nice Jun 20 22:24:03 the main thing im worried about is the graphics/gui of my app... Jun 20 22:24:33 code1: in general it's safer to let things run on your main thread [as happens in your Handler implementation] than to have them run on some random thread maintained by Timer Jun 20 22:24:44 Dangit, are you inenting to make a game or something? Jun 20 22:24:51 *especially* if you're calling methods within your Service, which is using that same main thread for its lifecycle and other events. Jun 20 22:25:23 In the future yes, but I meant most of my apps in general Jun 20 22:25:29 the .java file was not generated when I built the project with the .aidl file written Jun 20 22:25:53 ctate: so if I understand correctly, the 1st implementation in that example (Handler) runs in the same thread as the service, whereas the second example creates a separate thread? Jun 20 22:26:10 correct Jun 20 22:26:13 Dangit, good luck then. Jun 20 22:26:20 Timer runs all scheduled tasks on some random thread it has lying around for that purpose Jun 20 22:26:36 lol Jun 20 22:26:58 but a Handler in your Service's implementation points (by default) to the main looper thread that's widely used for Service callbacks etc Jun 20 22:27:11 ok I assumed the "new Runnable()" meant it also created a separate thread Jun 20 22:27:24 oh, not at all Jun 20 22:27:24 nein Jun 20 22:27:29 Runnable is just an interface that defines a run() method Jun 20 22:27:30 that's *all* Jun 20 22:27:39 [speaking of lessons in Java... :) ] Jun 20 22:27:41 if you put that Runnable into Thread by doing new Thread(runnable); Jun 20 22:27:46 then it runs in a thread Jun 20 22:27:54 ah yes of course Jun 20 22:28:35 but Runnable is kind of java's to define a block of code you can pass around Jun 20 22:28:42 *java's way Jun 20 22:28:58 ctate: the other problem is that it NEEDS to run after the specified time so I guess it will have to maintain a wakelock? Jun 20 22:30:53 is it okay if it runs whenever the user next pushes the power button to unsleep the phone? Jun 20 22:31:07 or does it *have* to run at that exact moment, even if the phone is in someone's pocket? Jun 20 22:32:13 yes it has to run at that particular time Jun 20 22:33:03 okay, that's the important thing to recognize. that means you need to use the alarm manager and do all the work to wake up the device and keep it live (in someone's pocket) while you finish the work. Jun 20 22:33:49 and it's a lot more work :) Jun 20 22:34:49 yes I attempted using alarm manager at first but it isn't really suitable because it would mean the service calling itself. The delay is usually only a matter of seconds (e.g < 10) Jun 20 22:35:13 So maybe just holding a wakelock would be a better approach Jun 20 22:35:22 "the service calling itself" is not really ... um, sensical? Jun 20 22:35:29 the way you wire this is Jun 20 22:35:33 if it needs to happen, and the interval is so small Jun 20 22:35:33 you use a broadcast alarm Jun 20 22:35:36 why not do it right away? Jun 20 22:35:57 MDijkstra: wakelock management Jun 20 22:36:08 but yeah, why schedule it 5 seconds in the future? Jun 20 22:36:10 instead of immediately? Jun 20 22:36:26 [unless that was just for example purposes] Jun 20 22:36:50 it's a user setting to delay sound playback Jun 20 22:37:11 delay is user specified (in seconds) Jun 20 22:37:48 sounds like an alarm clock to me :) Jun 20 22:38:04 ctate: :) Jun 20 22:38:05 so yeah, you need to do the full-on alarm -> wakelock dance, i'm afraid Jun 20 22:38:16 which is more irritating than it should be Jun 20 22:38:50 *if* you use a broadcast alarm, then the alarm manager will hold a wakelock for you, for the duration of your alarm broadcast receiver's onReceive() method Jun 20 22:38:53 Would obtaining and holding a wakelock not work then? Jun 20 22:39:07 it will, but the catch is that you can't juste use a service broadcast Jun 20 22:39:22 you only get that wakelock from the alarm manager if it's a broadcast Jun 20 22:39:37 so that means you need to write the broadcast receiver, and in its implementation you acquire your own wakelock Jun 20 22:39:58 then call into your service to set the ball rolling on whatever work you need to do with that lock held Jun 20 22:40:07 and then return from onReceive *with the wakelock still held* Jun 20 22:40:22 oh yeah, i remember that Jun 20 22:40:22 your service is still rolling at this point, because the device is being held awake by your wakelock Jun 20 22:40:35 then when you finish playing the sound or whatever, finally your *Service* releases that wakelock Jun 20 22:40:38 and all is well. Jun 20 22:40:50 that handoff is kind of irritating Jun 20 22:40:56 and i want to make it unnecessary int he future Jun 20 22:41:02 but it hasn't happened yet :) Jun 20 22:41:03 i think there is something like cwac wekefulIntentService or something Jun 20 22:41:27 I always use the aquire(timeout) version just to be safe Jun 20 22:41:40 but if timeout cant be determined Jun 20 22:41:43 ctate: realistically, at this point, can you say it will ever happen? Jun 20 22:41:43 The Facebook fans page of my new Android game... http://www.facebook.com/pages/Angry-Polygon/257098537727933 Jun 20 22:41:45 Is there a gesture-bases refresh design pattern like iOS' pull-to-refresh on Android? Jun 20 22:41:46 than ctate's method is best Jun 20 22:41:51 inb4 Refresh Button Jun 20 22:42:02 g00s: well, "ever" is a long time Jun 20 22:42:05 ctate: ops lost connection there Jun 20 22:42:12 but i can say it's on my short list Jun 20 22:42:20 code1: where'd you lose me? Jun 20 22:42:25 https://github.com/commonsguy/cwac-wakeful Jun 20 22:42:33 (23:40:07) ctate: and then return from onReceive *with the wakelock still held* Jun 20 22:43:00 your service is still rolling at this point, because the device is being held awake by your wakelock Jun 20 22:43:06 then when you finish playing the sound or whatever, finally your *Service* releases that wakelock Jun 20 22:43:11 and all is well. Jun 20 22:43:15 ... is how i went on Jun 20 22:43:24 Where should i release wakelock? Jun 20 22:43:39 in your Service code when you're done with whatever it is that is requring that you keep the device awake Jun 20 22:43:52 acquire in yoru broadcast receiver; release later in your service Jun 20 22:44:12 obviously this means the receiver and the service need to exist in the same process / VM instance, and that the wakelock be a static that they can share access to Jun 20 22:44:31 Do I need to pass any kind of reference wakelock? Jun 20 22:44:44 ok Jun 20 22:44:44 err, you've lost me Jun 20 22:44:56 or did i answer you already :) Jun 20 22:45:05 sale of Day 3: 6 downloads Jun 20 22:45:26 mobilegamelabs: that was better then i did; congrats ! Jun 20 22:45:27 make the wakelock a public static member of your Service class or something, just so your broadcast receiver class can access it Jun 20 22:47:03 ctate: yes I think so, I was refering to how I could reference the wakelock between service and receiver, but I think your static response answered it. (must apologise for my flacky connection) Jun 20 22:47:25 np Jun 20 22:47:46 also the thing g00s mentioned may be useful to you if its license matches your needs Jun 20 22:47:47 ctate: why is it the service can't obtain the wakelock itself? Jun 20 22:47:53 anyone here familiar with TouchDelegate, stuck with a problem Jun 20 22:48:05 code1: lemme try to explain Jun 20 22:48:09 http://stackoverflow.com/questions/11091145/touchdelegate-not-receiving-tap-events-correctly if someone could kindly help Jun 20 22:48:14 the device is asleep. that means nothing is actually running. Jun 20 22:48:22 not until something wakes it up. Jun 20 22:48:40 the *alarm* is what wakes it up, at which point all that is running is the broadcast receiver that it's calling into. Jun 20 22:48:53 the service isn't being given any cpu time here Jun 20 22:48:59 g00s: how was yours? Jun 20 22:49:08 only after the broadcast receiver returns will the service have an opportunity to get at the cpu Jun 20 22:49:11 however Jun 20 22:49:25 mobilegamelabs: abysmal. after 6 mos i sold, i think 14 copies :) Jun 20 22:49:26 once the broadcast receiver returns, the alarm manager will *immediately* allow the device to go back to sleep Jun 20 22:50:02 ctate: right, makes perfect sense now. Jun 20 22:50:06 \o/ Jun 20 22:50:23 ctate: thanks for help, appreciate it. :) Jun 20 22:50:48 g00s: mine are free downloads... Jun 20 22:50:55 important underlying android principles: the device goes to sleep at every opportunity Jun 20 22:50:58 g00s: i got no download for the paid version Jun 20 22:51:00 always always always Jun 20 22:51:15 because every millisecond that it stays "running" is power consumption Jun 20 22:51:20 ctate: what's why I just grab a full wakelock Jun 20 22:51:24 it makes programming easier Jun 20 22:51:24 ha ha ha Jun 20 22:51:39 I also disable orientation changes Jun 20 22:53:26 evancharlton: cool, glad to see we do the same thing Jun 20 22:54:10 is it possible to disable one single key on the android keyboard? Jun 20 22:54:32 ok, so if I have implemented a ContentProvider in the usual way with an SQLiteOpenHelper, what would be the cause of a SQLiteDiskIOException? Jun 20 22:54:47 ouch Jun 20 22:55:05 all the things I can find are issues where people open multiple instances of of the SQLiteDatabase Jun 20 22:55:11 evancharlton: come on over here; i think i need to restart your runtime. Jun 20 22:55:40 herriojr: nothing in the message text or preceding logs about WHY it's throwing one? Jun 20 22:56:01 also, did you delete the db while it was open? Jun 20 22:56:05 g00s: do you ever sleep? Jun 20 22:56:10 no, there's nothing there to delete the db Jun 20 22:56:17 or do you just stuck to .au timezone or something Jun 20 22:57:15 herriojr: hmmmmmm. is this reproducible on multiple physical devices? Jun 20 22:57:26 hey guys i released an app that checks if its the first run or not and displays hints, and it saves a boolean to say yes its first run or no its not, now client wants it to show hints firtst 3x so i changed that to an int, but now when people with the old app upgrade it starts and they get a class cast exception from bool to int, is there any way to specify that their prefs are wiped upon Jun 20 22:57:26 new install ? Jun 20 22:57:27 because disk corruption is also something that can cause this Jun 20 22:58:37 gaz`: err, don't try to change your data formats on the fly in incompatible ways? Jun 20 22:58:49 add a new piece of data, and interpret the old data correctly Jun 20 22:58:52 ctate: I've not experienced the issue myself Jun 20 22:58:53 so u mean im stuck with a bool for life if i want to keep them original users happy? Jun 20 22:59:09 no... why did you use the same key? Jun 20 22:59:11 ah ok grab it anyway and use something else Jun 20 22:59:16 yes Jun 20 22:59:23 well i didnt even think of it at the time til someone says "it wont load" Jun 20 22:59:24 is this a sharedpref or something? Jun 20 22:59:28 yes Jun 20 22:59:45 then it's easy-peasy; you define a *new* key for the new semantics Jun 20 22:59:46 idhave thought u could force odl prefs to wipe on new install orsomething Jun 20 22:59:52 goodcall Jun 20 23:00:01 ctate: I'm assuming it might be an issue with not enough room on the data partition, but I can't get the full logs at the moment Jun 20 23:00:08 and just ignore the old one, or parse it in once to see how to continue but never write it Jun 20 23:00:15 herriojr: conceivably Jun 20 23:00:20 cheers mna Jun 20 23:00:21 man Jun 20 23:00:27 herriojr: it's pretty hard to induce and tends to involve "hard" errors Jun 20 23:00:41 or deleting the db out from under the live open code :) Jun 20 23:00:55 oh yeah, no, there's no place I delete the db Jun 20 23:01:21 the only way that could possibly happen is if someone is using a task killer or something I guess Jun 20 23:01:32 rrr, not task killer Jun 20 23:01:33 sorry tired Jun 20 23:01:41 herriojr: its seems a corrupted db Jun 20 23:01:54 from code i have seen, the recovery is to delete the db file Jun 20 23:02:05 (if it exists, of course) Jun 20 23:03:34 hmm Jun 20 23:03:51 I guess I need to jump in the sqlite code to see where this error gets thrown and in what case Jun 20 23:03:55 its kinda strange, i don't actually find it thrown anywhere in the framework Jun 20 23:07:05 it's passed through a Parcel to DatabaseHelper, which then actually throws it Jun 20 23:07:34 yeah Jun 20 23:09:12 alright, yeah, I'm going to muck around in the code Jun 20 23:09:16 thanks for the help Jun 20 23:09:20 sure Jun 20 23:09:26 hi Jun 20 23:09:27 i want to implement a synchronization notes application, is a good idea? Jun 20 23:11:50 anyone is here? Jun 20 23:11:55 joker_89: are you joking ? Jun 20 23:12:03 ..no why? Jun 20 23:12:05 [g00s] Jun 20 23:12:23 joker_89: 614 users Jun 20 23:12:40 500 zombies of 614 users Jun 20 23:12:53 k Jun 20 23:13:04 k? Jun 20 23:14:40 whats the problem? Jun 20 23:17:24 If someone walked into a room in "real life" that had hundreds of people in it and asked "Anyone here?", people might think they were "nuts". Jun 20 23:39:14 Hello again. I rebuild my activity. I drawing a overlay over my googlemap (that works fine) and add a onTouchEvent. Now I want that the onTouchEvent only work, when I touch the overlay: http://pastebin.com/S97R6bZU Jun 20 23:40:20 In the moment it starts whereever i touch the map Jun 20 23:47:53 Guys, how to set layout_alignWithParentIfMissing in runtime? Jun 20 23:51:12 found it: alignWithParent field. So intuitive. Jun 20 23:54:04 sukramTM: try ItemizedOverlay.onTouchEvent() Jun 20 23:55:23 just an idea though, I had been looking at that recently but not tried to implement yet Jun 20 23:57:58 oi Jun 20 23:58:03 I'm completely lost as to why my touch delegate code isn't triggering my imageview's onClick, I stepped through the Android code also, and the imageview definitely gets the click events on the extended area Jun 20 23:58:15 we need to invent something like kickstarter to pay money to cancel shitty tv shows Jun 20 23:58:30 I am sick of having to watch pretty little liars because my wife likes that show Jun 20 23:58:47 well, touch events rather Jun 20 23:59:59 mr6: dont work Jun 21 00:02:19 mr6: but i have also problems to understand the documentation of ItemizedOverlay Jun 21 00:06:38 adb Jun 21 00:06:44 oops Jun 21 00:26:57 I can't seem to get my GL textures to refresh after the app regains focus. I just get the white squares, even though I've watched the debugger walk through the whole texture load procedure after each time onSurfaceChanged is called. Jun 21 00:27:56 Also I need a new pastebin, the one I was using stopped the service Jun 21 00:30:24 What happened? this place was bustling just a couple hours ago. :D Jun 21 00:31:07 dinner time happened, f00 Jun 21 00:31:42 I didn't know we got a dinner time. I don't Jun 21 00:32:01 Hey guys I'm making a disclaimer, anyone have any suggestions on what to add to this http://pastebin.com/R5UGhLQE Jun 21 00:33:48 client has delayed my pay a month because of an mistake in their HTML that made a webview not work... Jun 21 00:34:01 i swear im going to firebomb these guys Jun 21 00:36:34 certainly wont work for them again ;/ Jun 21 00:37:38 I was taught that, as a designer-developer, just because I didn't make the mistake doesn't mean I'm not responsible for it Jun 21 00:38:15 hah Jun 21 00:38:30 well does it mean i lose my home because of their mistake Jun 21 00:38:39 hm interesting Jun 21 00:38:39 i toldthem for 3 weeks to fix it Jun 21 00:38:43 * ctate | There are total pieces of crap that sell for $60, but players become outraged when the “wrong” thing is sold for a dollar or two in free-to-play games. “There is an inverse correlation between the amount someone pays for a product and the amount of support they expect. Which is interesting,” Willoughby said. Jun 21 00:38:47 every day i said YOU GOT TO CHANGE THAT HTML!!!! Jun 21 00:38:49 from http://penny-arcade.com/report/editorial-article/facebook-social-and-game-jams-how-popcap-created-and-is-still-perfecting-so Jun 21 00:38:51 and they didnt Jun 21 00:39:37 well in that case... Jun 21 00:40:00 im basically screwed Jun 21 00:40:05 that project took me 348 hrs Jun 21 00:40:15 one before was 370 Jun 21 00:40:19 and still not got pay form first one Jun 21 00:40:38 are they explicitly blaming you or is this just a side-effect of their blunder Jun 21 00:40:49 theyre just doign anyhtign to avoid paying me Jun 21 00:40:53 ctate: I agree. When you look at reviews for free apps, for some reason the users feel extremely entitled Jun 21 00:41:00 but you don't see that with paid apps Jun 21 00:41:06 the app is perfect Jun 21 00:41:32 also I've heard that australians are particularly bad with reviews Jun 21 00:41:37 wabz: some interesting comments in there on the subject from popcap folks Jun 21 00:41:43 will read Jun 21 00:41:47 austrials are very crude Jun 21 00:41:52 australians Jun 21 00:41:57 worse than the engine i think lol Jun 21 00:41:59 woah Jun 21 00:42:03 worse than the English Jun 21 00:42:04 i meant Jun 21 00:42:09 anger is not letting me type, Jun 21 00:42:15 we get reviews like "Excellent app. I will give it 5 stars if u make it tablet compatible. Folks u need to do this soon." .. 1-star Jun 21 00:42:19 I generally assume the average employer does everything they can to avoid paying their employees. but that's just cynical me. Jun 21 00:42:35 TheMusicGuy yeh, but i basically cant live Jun 21 00:42:44 til i get paid, they promised it would be here by wed Jun 21 00:42:48 holy.... Jun 21 00:42:50 then their excuse isthat one webview was messed up Jun 21 00:43:11 Is there any higher office you can appeal to Jun 21 00:43:12 been battling this 'bug' for 2 days, only to realize I've been passing the wrong view to the touch delegate >.< Jun 21 00:43:27 unfortunately the main one im arguing with is the ceo Jun 21 00:43:39 i do know who their client is but thatwould be a bit unprofessional i guess Jun 21 00:43:53 yeah, I wouldn't go to the client Jun 21 00:44:12 freelancing is such a mugs game Jun 21 00:44:16 especiallyremote freelancing Jun 21 00:44:17 I was thinking some kind of legal authority...I mean, this almost sounds like a breach of contract Jun 21 00:44:26 well yeh theres the small claims court Jun 21 00:44:31 but it take smonths and costs alot Jun 21 00:44:39 true Jun 21 00:44:48 theyd prob win somehow anyway Jun 21 00:44:54 judge wouldbel iek urr webview not working.. Jun 21 00:50:53 what if you told them that you'd use this in a case against them if they did it to you again in the future Jun 21 00:51:07 this is the secondtime Jun 21 00:51:16 i wont speak to them ever again apart from to claim money Jun 21 00:51:19 if they ever pay Jun 21 00:51:25 oh. Jun 21 00:51:52 is this like some small start-up company or have they been doing this for a while Jun 21 00:52:19 hard to know ive never beenthere but i gues sits a small start up Jun 21 00:52:27 theyre getting high profile licenses tho Jun 21 00:53:43 really tough to find goodwork if u dont work in house Jun 21 00:53:49 if u work in house very easy to find good contracts Jun 21 00:54:00 I see Jun 21 00:54:17 main issue is im in taiwan Jun 21 00:54:19 with my gf Jun 21 00:54:48 anywaytoday im starting with a new company here Jun 21 00:54:48 is this a taiwanese company? Jun 21 00:54:51 lets see how thiswill end Jun 21 00:54:54 no their UK Jun 21 00:54:56 theyre Jun 21 00:56:31 gaz: dirPath = getFilesDir().getAbsolutePath(); Jun 21 00:56:45 ? Jun 21 00:57:07 oh my cachign stuff? Jun 21 00:57:10 all seems to work fine now Jun 21 00:57:17 thats how u get the local path Jun 21 00:57:23 cheers Jun 21 00:57:51 cacheDir=context.getCacheDir(); Jun 21 00:57:53 is what i did Jun 21 00:57:58 k Jun 21 00:58:09 and if that fails Jun 21 00:58:09 cacheDir= new File(Environment.getDownloadCacheDirectory(),"LazyList"); Jun 21 00:58:31 and if that fails :) cacheDir=new File(android.os.Environment.getExternalStorageDirectory(),"LazyList"); Jun 21 00:58:41 then i just assume its nto happening Jun 21 00:59:19 ok, correct me if I'm wrong, but onSurfaceChanged() is the place to put calls to GLUtils.texImage2D() if I want to reload textures after the app loses focus, correct?' Jun 21 01:02:22 i think im gonnaspend my day mastering MAT Jun 21 01:04:15 Wait a sec. Are bitmaps generated by the BitmapFactory.decodeResource() method still fresh after the app loses focus? Jun 21 01:04:38 hey all... Jun 21 01:04:41 question for designers ... what's the best free software out there for designing UI elements such as icons, widget elements( or mockups if needed ) etc... I know about Inkscape and Paint.net, Gimp but haven't found many others Jun 21 01:04:55 "best" subjective I know, but what do ya'll use to design UI elements and screens Jun 21 01:05:17 "best free software" is unfortunately setting the bar fairly low Jun 21 01:05:36 photoshop isfine but not free ;) Jun 21 01:05:41 ok, take the 'free' off ... what about paid, is that an auto photoshop Jun 21 01:05:46 yes Jun 21 01:05:47 lol, yea I figured Jun 21 01:06:14 main problem with android is making pixel perfect UIs Jun 21 01:06:16 seems like overkill for mobile ui design Jun 21 01:06:21 if you want something that isn't absurdly expensive you can try CorelDRAW. Jun 21 01:06:29 without any stretching or whatever on millions of devices Jun 21 01:06:30 the main problem with android developers is thinking that they want to make pixel-perfect UIs :) Jun 21 01:06:46 ^^ this Jun 21 01:06:47 lol Jun 21 01:06:53 ctate yeh i dont want to but all my clients are basically iOS fanatics who go oh we can get an android port Jun 21 01:07:02 and supply images designed for an iphone 4 Jun 21 01:07:04 that isn't an Android problem; that's a client problem! Jun 21 01:07:09 yeh true Jun 21 01:07:21 i have to do al ot of hackignin photoshop to get it working Jun 21 01:07:36 I come from a very strong web design background( now I'm a java dev though ) so I'm used to creating fluid UIs for different screens Jun 21 01:07:37 once there are a lot more android devices in the field than iOS devices maybe some of the clients will wake up. sigh. Jun 21 01:07:38 if i wasnt very good with photoshop the app wouldnt even get done Jun 21 01:08:48 so you photoshop guys ... what features do you use in photoshop that gimp doesn't have... and don't quote gimps UI as being a downside( well you can, but I'm used to gimp ) Jun 21 01:09:04 rarely used gimp Jun 21 01:09:07 name is too silly Jun 21 01:09:18 if you're comfortable with gimp's UI that's a lot of the battle Jun 21 01:09:28 really, the name is why you don't use it? Jun 21 01:09:35 hehe Jun 21 01:09:39 not really but it does annoy me Jun 21 01:09:43 same as "ubuntu" Jun 21 01:09:52 ctate, well I'm used to it, I wouldn't say comfortable ... although Gimphoto and gimpshop used to be good, been awhile since I tried em Jun 21 01:09:54 ice cream sandwich is prob the worst Jun 21 01:10:04 gimpshop lol Jun 21 01:10:05 ^ this Jun 21 01:10:18 gimp's ui improved a lot with 2.8 Jun 21 01:10:20 ofc "ice cream sandwich" was just the internal nickname Jun 21 01:10:23 oh wow i feel human again after finishes this Jun 21 01:10:35 it's android 4. Jun 21 01:10:36 ICS sounds kinda cool Jun 21 01:10:43 aha Jun 21 01:10:54 whats next? Jellybean? Jun 21 01:10:56 not like ubuntu with its official crazynames Jun 21 01:11:01 yeah, jellybean is next Jun 21 01:11:03 no idea what's up with K Jun 21 01:11:07 jellybean sounds cool Jun 21 01:11:27 so shall i commit my final src Jun 21 01:11:30 I was thinking maybe Fireworks, used that like 5 years ago and remember liking it a lot Jun 21 01:11:35 or shall i wait forthem to come running at me angry threatening me Jun 21 01:11:36 much more UI driven than photosohp Jun 21 01:12:31 orshall i dropbox it and paaw protect hehe Jun 21 01:12:34 passw Jun 21 01:12:50 I've found that if I can find a way to do something in one of the standard softwares (ie. adobe stuff) I can do it the alternatives with slightly more effort. But then, I'm like, waaay smarter than everyone else, so maybe that won't work for you. Jun 21 01:13:01 hehe Jun 21 01:13:09 i use photoshop and aftereffects for all my designs Jun 21 01:13:24 TheMusicGuy, lol ... nice Jun 21 01:13:26 im awesome at after effects so i can actually use it for making ordinary 2d guis and flyers etc Jun 21 01:13:42 gaz`, I'll have to check that out, never used it Jun 21 01:13:48 its amazing Jun 21 01:13:53 huge learnign curve tho Jun 21 01:13:58 and not designed for photoshop type things Jun 21 01:14:31 gotcha Jun 21 01:14:34 but for example i can make things explode Jun 21 01:14:54 if im making a flyer / poster these days i make a sort of 15 sec animation of it then i apply simulations and pick the best frames Jun 21 01:14:57 is that the one everybody uses for [usually bad] kinetic typography? Jun 21 01:15:06 ever design a video game? Jun 21 01:15:16 prob not Jun 21 01:15:20 Mintoris im a games designer Jun 21 01:15:25 design one? i'm LIVING one! *pew pew pew* Jun 21 01:15:30 lol ctate Jun 21 01:15:35 ive made over 20 games Jun 21 01:15:36 trying to be Jun 21 01:15:51 some you WILL have played ;) Jun 21 01:15:55 most u wont have Jun 21 01:16:15 but im trying ot make games alone now, its virtually impossible Jun 21 01:16:20 without the funding Jun 21 01:16:47 (hm there are surprisingly few videogames i have played, given how much i play videogames... :) ) Jun 21 01:16:55 GTA Vice City Jun 21 01:16:56 gaz`: maybe that's my problem Jun 21 01:16:58 ya i have a great game engine for android, but im not that good with the graphics and storyline Jun 21 01:16:58 i worked on that Jun 21 01:16:59 :) Jun 21 01:17:00 I need a team Jun 21 01:17:10 rule of thumb: console game => ctate hasn't played it Jun 21 01:17:35 i need money thats all i need i got coders, artists, musicians, and we were workign hard for a year til my wallet ran dry Jun 21 01:17:36 a mate and I are making a mobile game atm in our spare time, this is an old vid for it: http://www.youtube.com/watch?v=EQzP3TcuzAU (lighting is all fixed now, much better graphics) Jun 21 01:17:48 I'm doing the programming/music, he's doing all the artwork/animations Jun 21 01:17:54 it's not impossible to do without funding :) Jun 21 01:18:05 30 looks like the 3d paperboy Jun 21 01:18:08 that elite released Jun 21 01:18:18 very nice Jun 21 01:18:28 i did paperboy for j2me Jun 21 01:18:35 it's a fun little project Jun 21 01:18:39 I tried making a Starfox clone for a final project using Corona. After the semester was over, I tried rebooting the project using Android SDK and OpenGL. Jun 21 01:18:47 you can guess how that's going... Jun 21 01:18:50 pretty steep learning curve Jun 21 01:19:17 it was pretty tricky to get the kid on the bike + moving properly :p Jun 21 01:19:19 i got a couple of vids here of my unfinished zombie game - http://www.youtube.com/watch?v=-rcwOUMSbKE http://www.youtube.com/watch?v=OhByEk5SDZ8 main bottleneck is getting the graphics done :-/ Jun 21 01:19:53 wabz its not impossible but very hard, ive released commercial games on the amiga that were made with 0 funding Jun 21 01:20:08 I had an artist (he's amazing) but now he wants to be an animator. Jun 21 01:20:17 it's certainly easier now with these publishing platforms Jun 21 01:21:10 i wish i was an artist myself Jun 21 01:21:13 would beamazing Jun 21 01:21:37 the artist I'm workign with spends so much time screwing around with different tools/getting them all to work nicely Jun 21 01:21:58 it sounds really strange, for example really simple things like which out of X/Y/Z axis means "up" Jun 21 01:22:01 you can be a programmer and an artist at the same time, but its...dangerous Jun 21 01:22:27 all i want to do is get back to my zombie game and develop it into an epic Jun 21 01:22:37 hence why i just took a 6 month job with someone but it hasnt helped Jun 21 01:22:41 still waiting for cash Jun 21 01:23:48 did anyone use Facebook ads to promote your game's Facebook fans page? Jun 21 01:24:01 back on topic: Do bitmaps get destroyed when the app loses focus (like with GL textures)? Jun 21 01:24:03 nope Jun 21 01:24:10 did anyone check out my zombie game vids? :) Jun 21 01:24:22 yeah, I remember watching it a few months ago too :p Jun 21 01:24:27 :-) Jun 21 01:24:30 are you using some game engine for that? Jun 21 01:24:42 got a bit of a fgollowing now 500 on fb and 220 on g+ for the game Jun 21 01:24:47 an engine i wrote myself Jun 21 01:24:59 and a drag n drop games designer tool i wrote Jun 21 01:25:15 its all summued up into this nice program i call dead++, the game can play out live as you edit it etc Jun 21 01:25:19 and drop in enemies i nrealtime etc Jun 21 01:25:30 gaz`: wow! Jun 21 01:25:34 500 on fb! Jun 21 01:25:38 how did you manage that? Jun 21 01:25:40 on the group yeh Jun 21 01:25:56 i put out these 2 videos and HEAVILY promoted them as best i could with links to the fb/g+ pages underneath Jun 21 01:26:12 every single day tweeting, releasing screnshots etc Jun 21 01:26:26 the main aim is to have a few thousand ppl who will spread the word when i do my kickstarter campaign pretty soon Jun 21 01:26:38 what does a return do in a void method inside of a if statement Like if(boolean){ code; return; } Jun 21 01:26:54 gaz`: cool! but how did you get your first few thousands..? Jun 21 01:26:59 by randomly adding people? Jun 21 01:27:02 nothing just returns Jun 21 01:27:07 T-Dub|DlolPics: I think it just ends the function early Jun 21 01:27:22 T-Dub|DlolPics : in a void method, you return nothing, all the return does is it moves the pc back to where it was before the function call Jun 21 01:27:24 gaz`: can you share about how you did HEAVILY? Jun 21 01:27:24 mobilegamelabs, yes i added as many of my friends as i could too Jun 21 01:28:08 mobilegamelabs, submitted videos and news to indiegamedb.com and similar sites, 10 to 12 tweets a day worded about zombies etc, all during the time of the walking deads game coming out too Jun 21 01:28:20 blog entries, sharing the videos everywhere Jun 21 01:28:39 constant news screenshots on the site etc Jun 21 01:28:58 i dont know i didnt do that well really still only got liek 12k views and less than 1000 followers.. but its better than 0 Jun 21 01:28:59 How do you destroy an instance? Jun 21 01:29:10 I create a instance of the class, and it does it's methods and what not Jun 21 01:29:18 assign it null Jun 21 01:29:20 How would I create a destroy method from inside that class? Jun 21 01:29:26 Does that actually stop the instance? Jun 21 01:29:27 myobject = null; Jun 21 01:29:29 yes Jun 21 01:29:34 Ok Jun 21 01:29:37 thanks Jun 21 01:29:42 should be GC'd nexttime theres one Jun 21 01:29:44 Doesnt myobject = null just orphan the reference ot the data and the GC will come by and take it? Jun 21 01:29:55 and thats assuming you only have 1 reference to myobject Jun 21 01:30:02 well if its done its work Jun 21 01:30:06 then its ready to die Jun 21 01:30:21 only if there are no other "root references" Jun 21 01:30:26 well yeh Jun 21 01:30:38 like what tho Jun 21 01:30:54 System.gc() if you want to trigger gc right there. Jun 21 01:31:06 im not sure u should trigger gc urself Jun 21 01:31:22 System.gc() just suggests to teh system to gc, it doesnt mean it will. Jun 21 01:32:40 gaz`: awesome!!!! Jun 21 01:32:55 :-)) Jun 21 01:33:04 i got no follower in twitter so it's useless to twit for me so far... Jun 21 01:33:17 yeh i wasted some time getting followers Jun 21 01:33:39 http://twitter.com/MGGGGG_com Jun 21 01:33:59 maybe some people can follow me here :P Jun 21 01:34:03 i tried Jun 21 01:34:04 gaz`: cool! Jun 21 01:34:09 Something is technically wrong. Jun 21 01:34:09 Thanks for noticing—we're going to fix it up and have things back to normal soon. Jun 21 01:34:21 ah! Jun 21 01:34:58 don't know why... Jun 21 01:35:06 i sent an email to twitter already previoulsy Jun 21 01:35:18 gaz`: by the way, what's your game? Jun 21 01:35:27 http://www.radiantsilverlabs.com/tdw Jun 21 01:37:30 gaz`: your game is awesome!! Jun 21 01:37:37 thanks dude! Jun 21 01:37:41 appreciate that Jun 21 01:37:50 still a long way to go Jun 21 01:37:54 but it will be ajoy to play Jun 21 01:37:55 the graphics is also very sophisticated Jun 21 01:38:04 yeh my artist is damn good Jun 21 01:39:19 its the 3rd installment in my trilogy :) Jun 21 01:39:21 * Jug6ernaut wishes he had an artist Jun 21 01:39:25 gaz` game? Jun 21 01:39:31 Ultimate Gloom -> Zombie Massacre -> The Dead Walk Jun 21 01:39:38 http://www.radiantsilverlabs.com/tdw Jun 21 01:40:21 1997-> 1998 -> 2015? lol Jun 21 01:40:53 what are the controls like? Jun 21 01:41:13 right now it uses a usb joy pad with 2 8 directional controls, eaxctly liek ps3 controller Jun 21 01:41:17 kickstarter that shit Jun 21 01:41:24 yeh thats my plan this month Jun 21 01:41:29 getting the video made and get it on there Jun 21 01:41:29 awesoem :D Jun 21 01:41:36 Does anyone else's notification bar disappear when doing install stuff from eclipse over adb? Jun 21 01:41:42 let me know when you do, ill throw a few bones ur way Jun 21 01:41:49 sweet!! Jun 21 01:41:52 i will :) Jun 21 01:41:57 Mine disappeared and still hasn't come back Jun 21 01:42:02 by the way, http://www.MGGGGG.com/ap :P Jun 21 01:42:09 not sure what to ask for, its all or nothing, Jun 21 01:42:27 on kicker starter? Jun 21 01:42:34 looks sweet mobilegamelabs Jun 21 01:42:36 yes Jug6ernaut Jun 21 01:42:42 lol Jun 21 01:42:50 maybe got for 20k us Jun 21 01:42:57 that would keep me and artist going for a while Jun 21 01:43:05 idk just be reasonable to your needs Jun 21 01:43:16 if u ask to much ppl will be discuraged, if u ask to less ppl one take you seriously Jun 21 01:43:22 game is too ambitous really, kinda need like 60k us lol Jun 21 01:43:25 look at what other successful bids have asked for Jun 21 01:43:29 yep Jun 21 01:43:33 i been studying it like crazy Jun 21 01:43:37 so that when i do start one it works Jun 21 01:43:54 indiegogo support spaypal so id liekto use them but its much smaller Jun 21 01:44:12 r u sole programmer? Jun 21 01:44:18 yes Jun 21 01:44:25 damn Jun 21 01:44:38 thats a lot of work for one person lol Jun 21 01:44:43 dont really know any coders in real life Jun 21 01:44:45 yeh it is Jun 21 01:44:51 especially the tools ive built Jun 21 01:45:11 but in the long run a non coder will be able to piece together a sequel Jun 21 01:45:17 so maybe i can use a few ppl then hehe Jun 21 01:45:19 i want to make games but the sheer amount of code required has kept me from doing any Jun 21 01:45:36 yeh its a bloody nightmare Jun 21 01:45:39 but its fun when it works Jun 21 01:45:44 You can look into Quest3D and maybe Unity3D. Jun 21 01:45:46 much more fun than making apps Jun 21 01:45:57 yea i bet, that and its where the $$$ is at Jun 21 01:46:12 Bryden game engines? Jun 21 01:46:17 this game could easily flop tho, most ppl are like pffffff its 2D! Jun 21 01:46:32 not me Jun 21 01:46:35 Yes, Jug6ernaut. Jun 21 01:46:38 2d games are where its at imo Jun 21 01:46:43 * Jug6ernaut is not a fan of game engines Jun 21 01:46:47 opengl or nothing imo Jun 21 01:46:50 Unity3D can do 2D. Jun 21 01:47:04 this is a desktop java game right now, porting iwll come when its perfect Jun 21 01:47:22 I also have a license for HeroEngine. Jun 21 01:47:24 what are you rendering with Jun 21 01:47:36 its all just standard 2d drawing to a canvas currently Jun 21 01:48:30 i have 70+ development videos of it online ;) Jun 21 01:48:37 form nothing to where its at Jun 21 01:48:42 o wow lol Jun 21 01:50:06 u can see my tools here http://www.youtube.com/watch?v=C3zkLsEjNis&list=PL2BD636870C14C389&index=56&feature=plpp_video Jun 21 01:50:28 gaz`: whats wrong with 2D? Jun 21 01:50:29 * Jug6ernaut looks Jun 21 01:50:30 I love 2D games Jun 21 01:50:35 2d ftw Jun 21 01:50:41 i agree i love 2d Jun 21 01:50:46 I love the old style 16bit 2d Games Jun 21 01:50:50 or even 8 bit, like we had on nes and snes Jun 21 01:50:53 but i show my mates and they would prob love to see a 3d game instead Jun 21 01:51:03 i have a great 2d game engine and a demo game i wrote with it. Jun 21 01:52:10 Mintoris link Jun 21 01:52:15 I very much prefer Everquest 2 in 3D. :) Jun 21 01:52:21 by the way… http://www.facebook.com/pages/Angry-Polygon/257098537727933 Jun 21 01:52:29 dont have a good video Jun 21 01:52:41 could send u the app tho Jun 21 01:53:30 I was looking into porting some of these plumbing games, where you decide which pipes to connect for plumbing... Jun 21 01:53:53 ...but I figured no one would play those games. Then I looked into it. Millions of people play these games. Jun 21 01:53:57 im actually trying to find an artist to put a game together Jun 21 01:54:03 And I have a couple of options for which ones to port. Jun 21 01:54:06 hehe Ologn i started porting one called "frisky tom" Jun 21 01:54:27 well re-writing Jun 21 01:54:50 wow gaz` you made all these tools? Jun 21 01:55:10 yes Jun 21 01:55:18 over the course of a few years Jun 21 01:55:24 ic very nice Jun 21 01:55:29 gaz`, I never knew plumber games were so popular. I have one decent code base, maybe I'll give it a second look. Jun 21 01:55:46 Ologn i thnk they were popular, but i can imagine them being again with web/mobile Jun 21 01:56:25 so frustrating Jug6ernaut not being bale to work on it now, need money, im working on yet another game now to get out fast to fund this one Jun 21 01:56:49 gaz`, Over 5 million downloads https://play.google.com/store/apps/details?id=com.monstergame.plumber Jun 21 01:57:13 wowza Jun 21 01:57:17 best get back to mine soonish Jun 21 01:57:18 lol Jun 21 02:05:51 did anyone get a playbook for porting their android app Jun 21 02:06:12 mine got rejected as it had some issue, wondering if its too late to fix and see if they still send one Jun 21 02:08:37 Speaking of playbooks, and I am not quite sure how relevant this question is here, but, besides Alien, are there any other 3rd party (and perhaps opensource) Dalvik Virtual machines out there? Ive been playin with the idea of running android apps on my linux box Jun 21 02:09:00 I just got an e-mail from Nook about how they want kid's games and how they're doing various specials for developers who do them Jun 21 02:14:19 nice Ologn id be interested in that Jun 21 02:17:46 gaz`, I just looked, it's on the web Jun 21 02:17:48 https://nookdeveloper.barnesandnoble.com/ban-advantage/developer-promotions.html Jun 21 02:17:58 hmmanyone know how i pass this to the vm in android -XX:+HeapDumpOnOutOfMemoryError Jun 21 02:18:24 thanks i have an app perfect for this but its nto finished Jun 21 02:20:07 I have an app that does exactly what they want, it's educational for kids. I guess I'll try, if there's not a whole rigmarole. Jun 21 02:20:31 uh, the androidplot website is still down? what a bunch of incompetent fucktards Jun 21 02:20:44 I remember reading that RIM is now slowly getting out of phone biz Jun 21 02:20:51 closing operations and stuff Jun 21 02:20:54 gaz`: um, you don't Jun 21 02:20:55 Ologn hehe less of a rigmorole than actuallyfinishing an app Jun 21 02:21:02 g00s trying to use MAT Jun 21 02:21:07 must be lookign at an old tutorial Jun 21 02:32:15 Anyone played with DexClassLoader? I'm interested in loading a jar from a url. Jun 21 02:32:42 Hey JakeWharton, you there? Jun 21 02:32:50 somewhat Jun 21 02:33:10 Hmm, then nevermind, this is probably oging to require more attention than you currently can spare Jun 21 02:39:53 JakeWharton: ahh I see what was going on, nevermind, thanks for responding though Jun 21 02:42:56 Has anyone been able to load a class dynamically with URLClassLoader, or are we forced to use DexClassLoader? Jun 21 02:50:43 reflection? Jun 21 02:52:07 Philosoraptor moment: Does reflection work with a "Vampire" class? Jun 21 02:52:38 drpenguin: sure, because it inherits from Object Jun 21 02:52:40 :) Jun 21 02:53:14 g00s: Right, but you could say if I became a vampire, I was once of type human, and now I am of type vampire, and through the casting I lost my reflection attrib Jun 21 02:56:20 @Override public boolean hasReflection() { return false; } Jun 21 02:57:27 Well done Jun 21 02:58:29 in DDMS my heap shows 10.5 with 6.2 allocated and 4.3 free, but then in logcat isee - GC_FOR_MALLOC freed 0K, 41% free 6487K/10823K, external 21928K/22593K, paused 50ms - whats the external bit? then weirdly i see Clamp target GC heap from 32.139meg to 32.000, then it says vm wont let us allocate 16800 bytes and crashes with out of memory error Jun 21 02:58:53 so why its it talking about 32 meg if i have only used 6.2 Jun 21 02:59:03 @Override public void drawRelection() {return;} :P Jun 21 02:59:50 XXCoder: ohnoes! Jun 21 02:59:57 XXCoder: WAIT! That explains it **** ENDING LOGGING AT Thu Jun 21 02:59:58 2012