**** BEGIN LOGGING AT Mon Feb 18 02:59:58 2013 Feb 18 03:00:14 http://www.youtube.com/watch?v=ENNZ5QNrHNQ Feb 18 03:02:16 mfranz: ok, at first it sounded like something a license PE would work on Feb 18 03:02:38 anyhow, just build a service for your mysql database, maybe REST or something Feb 18 03:02:41 g00s: no I think the best would be a nice java / web developer. But somehow those people are hard to find Feb 18 03:02:45 --> at least good ones Feb 18 03:03:45 the biggest problem, is that I am having to learn to do this since I can't find anyone that can do it, and I also have to be in the operating room, and obviously I can't code in there Feb 18 03:04:13 mfranz: androids can sleep too ;) Feb 18 03:04:33 mfranz: so are you the anesthesiologist ? Feb 18 03:04:41 yes Feb 18 03:04:45 oh wow Feb 18 03:05:14 i would test it all out before bringing it in Feb 18 03:05:34 so my time is some what limited, and I learned everything I know so far just from google. It makes learning very slow Feb 18 03:06:35 Yeah, obviously it will be tested... here is a question about security, if I want to make it so people don't have to authenticate to the app every time, but I want to php / ajax secured I can send an embedded API key via ajax with the request, and check that it is valid on the server Feb 18 03:07:00 but if I embed a key like that in the ipk can it be read out if someone gets the compiled java package? Feb 18 03:07:05 or the app Feb 18 03:07:08 of the app Feb 18 03:07:28 the calls would be sent over ssl Feb 18 03:07:35 mfranz: i would run the whole thing over https Feb 18 03:07:44 and embed your ssl cert into the code Feb 18 03:08:13 how do you mean? Like so that each device has it's own cert or that the app has a global cert? Feb 18 03:08:25 one cert for the server Feb 18 03:08:38 and the public half of that cert is in every device, so they can validate the server Feb 18 03:08:54 isn't the public half of the ssl cert on the apache server anyway Feb 18 03:09:11 yes, but you need it in the device, so you have something to compare to Feb 18 03:09:18 to make sure your not connecting to a fake server Feb 18 03:09:25 mfranz: you're working on an interesting project, i would think it should be pretty easy for you to find a full stack developer with android experience that can help you out Feb 18 03:09:35 devs love interesting stuff like this Feb 18 03:09:52 well, i shouldn't speak for developers in general, but … its sure beats another cat picture project Feb 18 03:10:19 Did I hear someone say cats? Feb 18 03:10:24 hahaha Feb 18 03:10:24 Count me in! Feb 18 03:10:38 :3 Feb 18 03:10:46 'cat picture project' is from a Steve Yegge video Feb 18 03:11:12 It isn't that I can't find people but it seems like everyone I find are like, I am a front end person, or I am a dba, I can't seem to find anyone that can write PHP and SQL statements or develop a web app but also develop the relational tables Feb 18 03:11:16 which to me seems crazy Feb 18 03:11:24 i would also think there would be unique usability requirements for the app in that setting Feb 18 03:11:25 as I thought that was basically the whole internet Feb 18 03:11:39 g00s: what do you mean? Feb 18 03:12:04 oh wait, this isn't the operating room ? Feb 18 03:12:09 What I would love to find is a college student that wants to volunteer some time, and get some experience on thier resume Feb 18 03:12:17 well it would be used in the OR Feb 18 03:12:25 but only as a data collection device Feb 18 03:12:35 yeah, so that is a high stress environment that has unique usability requirements Feb 18 03:13:03 But that is quite interesting and also something I'd think devs would want to put into their CV. Feb 18 03:13:25 yeah, not sure where the PHP comes in, i dont see where that fits into the equation. Feb 18 03:13:41 sounds like you need android / rest / mysql experience Feb 18 03:14:09 well I use php for the ajax calls Feb 18 03:14:13 need someone to throw together the glue Feb 18 03:14:14 rest could be used as well Feb 18 03:14:17 mfranz: it's not ajax Feb 18 03:14:18 exactly Feb 18 03:14:30 so stop saying it is :P Feb 18 03:14:49 it's just http Feb 18 03:14:55 I thought that you sent ajax requrest from java to something receiving it in my case PHP which grabs the json values and executes some sql Feb 18 03:15:03 then return json to java Feb 18 03:15:07 haha Ok Feb 18 03:15:17 is everyone else here a CS major? Feb 18 03:15:25 is PHP an existing part of the current environemnt ? Feb 18 03:15:26 no, you send http queries... unless you are planning to embed a javascript engine in your app Feb 18 03:15:37 mfranz: i'm creating a game that originaly did ajax request just like that Feb 18 03:15:41 sending bare JSON in the post body Feb 18 03:15:57 ive created a java lib to handle the entire rpc layer Feb 18 03:16:40 reverse engineering the js code, and creating a java client Feb 18 03:17:39 g00s: PHP runs on the apache server that handles some other research projects I run but those are written in PHP Feb 18 03:17:58 I administer the server, so I am pretty free to use whatever works Feb 18 03:18:08 ok, so PHP isn't coming from nowhere then. sigh, well can't help with that Feb 18 03:18:16 mfranz: i would just use php, json, and gson Feb 18 03:18:28 if you want to use something that works, PHP should not be on that list Feb 18 03:19:16 haha Feb 18 03:19:50 only kidding (partially). use whatever allows you to Get It Done(tm). Feb 18 03:20:24 most of my experience is in PHP but I am not married to it, though I do find that php mysql interaction is super easy Feb 18 03:20:35 if it's just for your simple DB front-end, and for private use of your app with suitable access control, PHP may not be as bad as, say, a planetoid hitting the earth Feb 18 03:20:37 yeah, use what you already know Feb 18 03:21:18 Like someone said earlier about embedding the ssl cert in the app, is that safe, can someone read that cert if they had access to the app? Feb 18 03:21:37 mfranz: yes, but its the public half, they can read it just by connecting to your server Feb 18 03:21:40 its harmless Feb 18 03:22:54 but then how is that a safe way to verify that the thing requesting a json call is the app so that someone doesn't just connect to the server and script http headers to get data back? Feb 18 03:22:58 that is what I need to prevent Feb 18 03:23:14 but I don't want to have to send login creditials on the app every time, as that slows down the operating room Feb 18 03:23:17 ah, you want to verify the clients Feb 18 03:23:22 yes Feb 18 03:23:30 then you want client ssl certs Feb 18 03:23:51 which can still be copied out, but each device can have its own cert, you can revoke the access when a device is stolen/lost Feb 18 03:24:11 how does that get verify on the call, like where does the server store the 'good certs' does apache manage that if setup correctly? Feb 18 03:24:24 like 'require one of these certs' to connect to apache Feb 18 03:24:26 when i did it, the server has the CA cert Feb 18 03:24:28 from the client side Feb 18 03:24:32 and all of the client certs are signed with the ca cert Feb 18 03:24:46 and then you can restrict only signed clients? Feb 18 03:24:51 ca private + client public == client cert Feb 18 03:24:54 yeah Feb 18 03:25:05 only somebody with access to the ca private can make new certs Feb 18 03:25:12 and you can manage the revoked certs list at the server Feb 18 03:25:26 I saee Feb 18 03:25:28 http://www.garex.net/apache/ Feb 18 03:25:32 I mean reading this now Feb 18 03:26:11 in my case, i was using node.js as the server end, worked perfectly Feb 18 03:26:25 but the client end was a firefox extension, and firefox would ask you which client cert to use at startup Feb 18 03:26:31 not user friendly, so i changed my design Feb 18 03:26:40 in android, you have more control and can prevent that Feb 18 03:26:41 but in android you can define a cert to use Feb 18 03:26:43 yeah Feb 18 03:26:48 as a part of the app Feb 18 03:26:51 yep Feb 18 03:26:57 and each app has its own certs Feb 18 03:26:59 that's probably the best way Feb 18 03:27:08 you can probly store the cert in a SharedPreference Feb 18 03:27:24 and to get it, you enter a name/pw, and it contacts the server and downloads a new cert Feb 18 03:27:28 or something similar Feb 18 03:27:45 hum that would be pretty clean Feb 18 03:27:51 you could have it setup so you click a button in the admin pannel, and a 20 digit code comes up Feb 18 03:27:56 then you type that on the device, and it downloads the cert Feb 18 03:28:00 one time pairing process Feb 18 03:28:44 simply need to configure apache so it can access the pairing page without a client cert Feb 18 03:28:47 I'm using the simple NotificationCompat.Builder class to build and post a notification (from an AsyncTask in my Service), but on this 2.3 device I've got there is no notification being posted to the notif drawer. There is on my 4.2 device though. Feb 18 03:29:30 i'm hoping that this apache/php box doesn't have patient info on it Feb 18 03:30:16 better not violate HIPAA ;) Feb 18 03:30:17 Or maybe I'm starting the service wrong. Can I finish() the activity if I use the activity's context to start the service? (new Intent(this, MyService.class)); Feb 18 03:30:33 no Feb 18 03:30:36 the mysql server does Feb 18 03:30:39 it is encrypted Feb 18 03:32:06 angry birds in the or is just what we need Feb 18 03:32:49 I have that app Feb 18 03:32:51 :) Feb 18 03:33:02 well, its not just the usage of the app, but the app itself could be a distraction to the doctors and increase their rate of error Feb 18 03:33:25 I'm thinking Plague Inc. in the OR Feb 18 03:33:30 g00s: and as i said, they may drop the phone in the patient :P Feb 18 03:33:37 It is more like Feb 18 03:33:46 after the procedure is done, you need to record these say 25 data points Feb 18 03:33:47 clever: that would be awkward if somebody called the phone Feb 18 03:33:59 you were like, some place and something in you started ringing Feb 18 03:34:02 :) Feb 18 03:34:14 since I don't want to have nullable columns I don't want multiple writes to the same patient instance so you would just fill out the form at the end or the case Feb 18 03:34:51 mfranz: if you plan to fill out a large form over a long time, you def want to make onSaveInstanceState work right Feb 18 03:34:55 forms are tricky too. there is a whole book on form design Feb 18 03:34:56 so it doesnt loose data when paused Feb 18 03:35:09 I see Feb 18 03:35:39 mfranz: if android is low on ram and wants to kill your app, it calls onSaveInstanceState and gives you a Bundle to save things to Feb 18 03:35:51 mfranz: then when the user re-opens the app, it passes that in, so you can restore things Feb 18 03:36:02 making it appear like the app was never stopped Feb 18 03:36:14 oh, and it does that every time it rotates Feb 18 03:36:16 huh that's nice Feb 18 03:36:24 so if you turn it sideways and dont have that code, everything is lost :P Feb 18 03:37:00 really Feb 18 03:37:15 wow the rotated / re-render wipes the form Feb 18 03:37:19 yep Feb 18 03:37:25 why would that even be an option Feb 18 03:37:27 at baseline Feb 18 03:37:35 its due to how rotation works Feb 18 03:37:51 it saves all state (your code to do that is missing) Feb 18 03:37:53 destroys the entire thing Feb 18 03:37:58 then recreates it with the new screen size/orientation Feb 18 03:38:43 when the app is writen properly, that wont be an issue Feb 18 03:38:44 any ideas on how you could make sure that the apk thats talking to my server is indeed the app I created and not some 3rd party app? Feb 18 03:38:59 using checksums on the apk would work but its not officially supported in SDK Feb 18 03:39:10 i guess assymetric encryption with signature verification would work? Feb 18 03:39:39 we were just talking about that, server signed client ssl certs Feb 18 03:39:58 well my communication is SSL based atm Feb 18 03:40:22 but wouldn't it still be possible for a 3rd party to decompile recompile with the keystore that stores the SSL certs/ Feb 18 03:40:28 yeah Feb 18 03:41:35 mfranz: http://privatepaste.com/ba5a56a3d6 Feb 18 03:41:41 perhaps changing the assymetric keys every version change Feb 18 03:41:47 Trinity: but if you used a checksum, what's to stop a malicious app just faking a correct checksum? Feb 18 03:42:03 Trinity: that will just force them to decompile and extract the keys on each version Feb 18 03:42:22 if you're worried about that sort of thing, and 'they' are sufficiently motivated, there's essentially no way to stop 'them' Feb 18 03:42:28 and like Leeds said, if they RE the code (proguard it), they can just modify it to always give the 'right' crc Feb 18 03:43:54 mfranz: the code in the pastebin saves which tab i have open in chat, and restores it Feb 18 03:43:55 right well checksum wouldnt have worked regardless, it doenst work sometimes and that would disturb the legit users Feb 18 03:45:56 clever: thanks! Feb 18 03:46:21 gah, its always a pain when it comes to security Feb 18 03:46:35 jQuery mobile would probably make it easier, but I think the native app would just be so much cleaner Feb 18 03:46:42 and more versitile Feb 18 03:47:43 mfranz: indeed, if its just a form, jQuery mobile could be sufficient :/ Feb 18 03:48:09 mfranz: what about just a webpage? Feb 18 03:48:21 clever: well that's what jquery would render Feb 18 03:48:37 It would be nice to have the user experience just encapsulated in a stand alone app Feb 18 03:48:38 you could just have a normal webpage in a normal browser Feb 18 03:48:51 with a session cookie so they dont have to login mid way thru an op Feb 18 03:49:22 Well I am working with google on this to test nexus in a research environemtn so it needs to be on the nexus Feb 18 03:49:44 i'd ask for some of the engineers for dev too :) Feb 18 03:50:08 I had considered that I bet a google engineer could bang out what I need in about a day Feb 18 03:54:44 Anyone know of a heavy duty android device, something hard and durable like http://www.talkbackradiohire.co.uk/images/talkback_3models.gif, especifically something car mechanics can use in a daily basis... Feb 18 03:57:24 :? android + otterbox? Feb 18 03:58:19 i need something harder Feb 18 03:58:32 oo-er? Feb 18 03:58:33 otterbox + ducttape Feb 18 04:00:27 + 3 second glue Feb 18 04:02:20 something that can resist greasy hands for long periods of time Feb 18 04:02:32 experia z Feb 18 04:05:16 and random wrench drops? Feb 18 04:06:32 google glasses ? hud? Feb 18 04:09:51 capella, yep Feb 18 04:15:49 Not sure there's an android one ... I worked in a wareghouse and we had these industrial PC / communicator thingys ... like a brick cell-phone size for inventory management etc... padded could fall 30 feet onto hardened concrete and usually survive ... waterproof ... bar scanners, etc. Cost around $3k US each Feb 18 04:18:27 capella: my dad was given a cn-50 phone for his tethering a few months ago Feb 18 04:18:36 capella: it ran wince and it sucked, they recalled it within a month :P Feb 18 04:20:00 Intermec !!! Yah, they made the one I had :D Feb 18 04:20:20 eventualy, they replaced it with a galaxy S3 Feb 18 04:23:34 Intermecs aren't phones ... just smart terminals ... very rugged for long term rought handling ... and I dropped a couple riding up 30-40 feet in a cherry picker (destroyed a couple too :D ) Feb 18 04:23:59 capella: the one my dad had included a sim card and was capable of phone calls Feb 18 04:24:14 but yeah, it was horid as a phone, so they also gave dad an HD7 windows phone Feb 18 04:24:24 silly noobs :P Feb 18 04:24:27 Get out ! It was 5 years ago ... I suppose they can do that now Feb 18 04:25:58 for anyone watching http://www.intermec.com/products/cmptrdxx/index.aspx Feb 18 04:27:37 it also included a barcode scanner in the top, using actual lasers Feb 18 04:27:51 not a camera based one that most smartphones have Feb 18 04:28:39 yah - the barcoder is the warehouse essential part ... as mentioned inventory management is the main app Feb 18 04:28:52 Symbol - apparently part of Motorola now - used to be big on that sort of thing Feb 18 04:30:46 meh - 3 years in a Pep Boys warehouse .... AAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHGGGGGGGGGGGGGGG Feb 18 04:58:56 any experience with using DashO? Feb 18 05:09:44 Lion-O maybe :) Feb 18 05:37:34 Thanks!! Feb 18 05:59:13 gatopan: ah ... did some of that help? :) Feb 18 06:01:38 alright guys Feb 18 06:01:47 another great day of development Feb 18 06:02:04 i have litterly been on my pc for the past 12 hours Feb 18 06:02:06 thanks for your hlep Feb 18 06:02:08 night Feb 18 06:09:01 dam... I want a "great day of development" how is this even achievable ? Feb 18 06:09:21 So I have a group of three checkboxes in an android application. I'm currently storing their values in a 1 byte integer in three columns, respective to their location on the screen. Would it be a better idea to store them in a single column with a single 3 byte integer? Feb 18 06:10:09 StingRay_: speed Feb 18 06:10:20 hmmm Feb 18 06:10:31 I have a problem Feb 18 06:10:42 I seem to learn something new Feb 18 06:10:48 and decide to re-write lots Feb 18 06:11:00 it's like a never ending cycle Feb 18 06:11:06 and this channel is not helping Feb 18 06:11:08 !! Feb 18 06:12:38 We're very good at assisting in procrastination. Feb 18 06:12:49 Additionally, news.ycombinator.com is also a great way to procrastinate. Feb 18 06:21:48 crynix: but HN is down :( Feb 18 06:22:16 i can't meet my SEO quota when HN is down :/ Feb 18 06:22:25 anyone tried bluestacks? cant seem to work out how to make it run in portrait Feb 18 06:23:20 g00s: Whaaaaaaaaatttt. I'll have to actually do work now." Feb 18 06:23:34 we're so screwed :( Feb 18 06:24:06 Gaz`: Is this for Android development? Or just to run Android apps on your computer? Feb 18 06:24:30 basically so i can test apps quick n easy Feb 18 06:24:34 so yeh for dev Feb 18 06:24:50 not had much luck with x86 emus Feb 18 06:24:54 so this seems nice Feb 18 06:24:58 Gaz`: does it seem to be worth it so far ? Feb 18 06:25:09 it does yes it installed and ran my apk very nicely Feb 18 06:25:16 but its stuck in landscape which is silly Feb 18 06:25:20 i wonder if it has BlueTooth Feb 18 06:25:27 androvm wouldnt load the app at all weirdly Feb 18 06:25:37 is it possible to put 2 tablelayout's in 1 xml file? Feb 18 06:25:40 id say this would be an ok way to test stuff for sure Feb 18 06:25:42 Have you tried Android x86? Feb 18 06:25:56 http://www.android-x86.org/download Feb 18 06:25:58 isnt that AndroVM crynix? Feb 18 06:26:39 ah yeh this but i want it to run in a window on win7 Feb 18 06:26:55 You could run it in VirtualBox. Feb 18 06:27:06 yeh thats a point Feb 18 06:27:12 Oh. Feb 18 06:27:18 Duh. I misread your initial statements. Feb 18 06:27:32 guess i could put my old eeepc to use with it too :) Feb 18 06:27:56 insane theres no portrait mode on this bluestacks thing Feb 18 06:30:16 oh wait its started working now Feb 18 06:30:17 weird! Feb 18 06:32:11 Everyday of development is a good day of development :D Feb 18 06:32:20 haha Feb 18 06:32:33 50/50 :) Feb 18 06:47:34 um, is the mail app no longer in newer images? Feb 18 06:57:38 Hey all, I'm trying to convert a 2-tab app (using actionbar tabs) to use a viewpager, and am not sure how to write the adapter. I have 2 fragment subclasses with their own getInstance() static method. I'm about to instantiate them explicitly and pass to to a new FragmentPagerAdapter, where I'll keep them in an array. is that OK? Feb 18 07:13:03 wth, when I start an emu (api 17) - google apis - it barely starts and then i get nonstop dialogs saying 'unfortunately, the process x has stopped' Feb 18 07:47:51 welp, how to get email/gmail on sdk 17 emu Feb 18 07:48:50 g00s: thought the only way to get basic google apps was google api avd and that mail, sync, play store was a no no ? Feb 18 07:49:16 gmail has never been in the sdk images Feb 18 07:49:32 the older emus used to have a basic email client. if you had the google APIs installed, it could also talk to gmail Feb 18 07:52:29 the 4.1.2 AVD I have to hand still has an email app... Feb 18 07:52:52 so you're saying it's gone in 4.2? Feb 18 07:53:00 yeah , i can't find it Feb 18 07:58:16 would anyone happen to know of frameworks for displaying charts? Feb 18 07:58:47 ive been rummaging around but so far the native ones are pretty low quality and the html5 solutions are of abysmal performance Feb 18 07:59:06 the ones i have tried all suck Feb 18 07:59:22 your best bet is to take the jjoe64 chart lib and adopt it if you can Feb 18 08:00:11 ive got an extra constraint. its supposed to be developed for iPhone as well. and ideally shold look approximately the same Feb 18 08:00:37 good luck with that Feb 18 08:00:39 :D Feb 18 08:00:43 Morning to all Feb 18 08:00:45 roll your own opengl charter :) Feb 18 08:00:59 Small question about tegra driver source code.Are the driver sourcecode for every tegra3 T30 the same? Feb 18 08:01:09 Meen, could i take the newest source code for example from asus and put it inside the nexus 7? Feb 18 08:01:22 lol i already suggested to do it from scratch but the project has a tight time limit Feb 18 08:02:00 not enough to create a robust charting engine with the plethora of features they demand Feb 18 08:02:10 balls2thewall: thats fine, de-scope then Feb 18 08:03:54 Gaz`: yup, seems to be gone in 4.2 Feb 18 08:04:36 Very important question please, could transfer to all kernel source code. Feb 18 08:09:41 ;_; when will android stop trailing the iPhone in everything Feb 18 08:09:49 next Tuesday Feb 18 08:09:59 whats next tuesday :o Feb 18 08:10:07 a random date in the future Feb 18 08:10:40 balls2thewall: I'm using achartengine for this one: https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-snc6/c0.34.403.403/p403x403/184340_10151519990006804_1366045101_n.jpg Feb 18 08:12:30 i tried it but i need fancy features. zooming, panning, selecting regions, selecting vertices, comparisons Feb 18 08:13:15 you'll definitely have to do that yourself Feb 18 08:13:25 :/ Feb 18 08:13:33 selecting regions, etc Feb 18 08:13:38 zooming, panning can be done my achartengine. But, yes, region selection, vertices, and comparisons are not supported Feb 18 08:13:44 *by Feb 18 08:14:00 achartengine was worse than aweful Feb 18 08:15:06 if fits my needs and it still maintained (also, free!). So, I can't complain :) Feb 18 08:15:17 is it still maintained ? Feb 18 08:16:27 layout-long is not started on my 480x854 emulator, why? Feb 18 08:18:42 g00s: yes, latest commit was few days ago http://code.google.com/p/achartengine/source/list Feb 18 08:20:27 looks like that poor dude needs some help Feb 18 08:20:50 No help ?Please, small question only :-( Feb 18 08:21:18 switchgott: maybe nobody knows Feb 18 08:23:45 Not realy?I guess here are realy good kernel devs here :-( Feb 18 08:24:00 Sorry dobble here Feb 18 08:24:24 double here Feb 18 08:24:55 Any idea where i can asked such kernel dev questions? Feb 18 08:24:59 double ? vodka ? whiskey ? Feb 18 08:25:00 switchgott: see in the channel topic where it says this is a channel for kernel and system dev? Feb 18 08:25:46 Oh sorry, i see it !Wrong section.App dev.My fault.Does someone know, where i can ask such question?IRC Channel? Feb 18 08:26:43 android-platform mailing list, probably Feb 18 08:27:37 and yes, that means you don't get an instant response Feb 18 08:28:48 Thanks Leeds!Is see it :-( Feb 18 08:30:51 good luck... Feb 18 08:31:14 but found no irc channel for now Feb 18 09:50:36 Any way to reference a variable using the value of a String? Like String whichVar = "category"... and I want to access the variable category... ? Feb 18 09:50:58 yes (with some limitations), but you really really really shouldnt Feb 18 09:51:27 yeah... I didn't think so... :/ Feb 18 09:51:31 if you are considering this, your design is almost certainly wrong Feb 18 09:51:47 pierpark: why do you think you need this? Feb 18 09:52:28 because it was the easiest solution to my temporary insanity. I don't suppose I will. I never have.. I'm just so damn frustrated with this fragment crap its making me want to scream. Feb 18 09:52:46 For days, I've been stuck trying to figure out/or get an answer on: Feb 18 09:53:12 1. I've got ActionBarSherlock + ViewPageIndicator set up... Feb 18 09:53:20 2. I've got four pages I can 'slide' between... Feb 18 09:53:36 3. All pages are main_activity.xml ... being inflated ... Feb 18 09:53:48 4. so all pages have a ListView... Feb 18 09:54:17 and finally, I'm accessing the net to grab JSON that then uses an adapter and loads content into the lists, depending on what 'page' it is on.. or what 'tab' rather... Feb 18 09:55:02 Problem is... its calling the net back up every five seconds because it re-inflates that XML file and phone's home for the JSON all over again, when it gets paged more than like..1 page away from itself and then paged back... Feb 18 09:56:18 Now, I've set in there.... "if(myList == null){" then populate the content... otherwise, just reference the already-downloaded JSON content... my problem is... doing it that way, each page ends up having the same list content because it's remembering whatever was loaded LAST into "myList" array. Feb 18 09:57:23 and I needed to figure out how to store that crap and then identify it again .. so I was gonna take the cheap way out and make 4 arrays.. named "myList" + content of another variable, and just access THAT myList.. make sense? Feb 18 09:57:23 pierpark: use the tab/page name as key for your cache Feb 18 09:57:49 pierpark: why not use a map then? Feb 18 09:58:10 appel1: one sec let me look I'll clarify Feb 18 09:58:27 private static ArrayList < HashMap < String, String >> tubeListTRENDING = null; private static ArrayList < HashMap < String, String >> tubeListNEWEWST = null; Feb 18 09:58:55 that's what I stuck at the top, in an attempt to not phone home again, if those were not null. Feb 18 09:59:07 wow :D Feb 18 09:59:11 problem is... figuring out which 'one' I'm needing to look at. Feb 18 09:59:19 I have no effing clue what I'm trying to do Feb 18 09:59:21 pierpark: what? a list of maps? Feb 18 09:59:24 I've done fried my brain Feb 18 09:59:41 pierpark: private (static) Map>> :D Feb 18 09:59:58 would be what you need (if you really want to keep that arraylist of hashmaps, what sounds ... eh not right) Feb 18 09:59:59 pierpark: why do you need more than one map? Feb 18 09:59:59 basically, one map per page... when I end up phoning home, I know what 'page' i'm looking for because I do String URL = "serverUrl?category=" + category Feb 18 10:00:16 pierpark: so you have multiple views in each page? Feb 18 10:00:30 let me pastebin, if you don't mind Feb 18 10:01:47 pierpark: don't you just need a category -> content map? HashMap categories; ? Feb 18 10:02:22 http://pastebin.com/GMjmFsiD Feb 18 10:02:28 yeah, that sounds like what I'm needing Feb 18 10:02:43 pierpark: why static? Feb 18 10:02:49 good question. Feb 18 10:03:07 because ofc you will always have the "lates" catched data in that if all fragments share one list :) Feb 18 10:03:16 that was what I was toying with a minute ago... made it static because I thought maybe it'd remember the values and not try to phone home again Feb 18 10:03:41 what I'm looking for, is the RIGHT way to do what I'm doing Feb 18 10:04:43 it sounds like appel1 is suggesting like an associative array MAP, and that doesn't sound bad... but I'm just confused on whether I should have 4 different XML for the 4 'pages' I'm loading, or if I should keep it how I've got it, or what. Feb 18 10:04:45 I'm dying here Feb 18 10:06:52 timroes: I don't know if you remember, but I was in here about 4 nights ago with the same crap ha ha Feb 18 10:07:07 i remeber your name, not your problem :) Feb 18 10:07:57 :p yeah.... same stuff... because I'm trying to refuse to do this wrong, and I sure can't figure out how to do it RIGHT Feb 18 10:08:26 I would go with appel1's approach :) Feb 18 10:08:42 over inflating trending.xml, newest.xml, etc.. ? Feb 18 10:09:33 also some other small code suggestions: line 85f. make that else if and not just if, unfortunately java doesn't recognize (at least not to compile time) that only one of these cases can become true, so it checks all the other ones too, even when it found the matching case Feb 18 10:09:34 pierpark: if you only have one layout I see no reason to copy it :) but I might be missing something about what you're trying to do Feb 18 10:10:24 appel1: I'm trying to save the JSON data that I grab so that when the view is inflated again (by paging/sliding back to it), that I don't make the internet call again to get the JSON all over again.. right now, its basically auto-refreshing itself Feb 18 10:11:07 I'd much prefer to save that JSON, and say "if I've already phoned home for the JSON, dont do it again.. just load it back into the list".. because it seems like these freaking views are 'DEflating' and then re-inflating when they are paged. Feb 18 10:11:14 pierpark: yes, so you need to cache your data. but what has that got to do with your question about multiple xml layout files? trending.xml, newest.xml ? Feb 18 10:11:18 that, or stop the de-flating Feb 18 10:11:43 i was asking if I should be doing it that way, rather than using the one layout I'm needing which is all in main_activity.xml Feb 18 10:12:02 the R.id.listView1 is inside main_activity.xml (or whatever I'm calling up..I think thats it), and I'm using that on every 'page' Feb 18 10:12:25 pierpark: if you have on every page the very same layout, I would use the same xml file on every page Feb 18 10:12:29 i didnt know if I was in the wrong on that one, or not. Feb 18 10:12:37 don't make copy and paste orgies if not necessary Feb 18 10:12:40 okay then at least I'm okay thus far Feb 18 10:12:48 rofl Feb 18 10:13:18 alright, so now the question is... either how do I stop the de-flating/re-inflating, OR, how do I cache this data Feb 18 10:13:19 as appel1 already said, use the tab to identify what content to load, and the caching seems to be another problem so far :) Feb 18 10:13:52 pierpark: if you are sure you wont into memory issues you could raise the page limit in view pager Feb 18 10:13:54 what happens if you just remove the static from your tubeList? Feb 18 10:14:11 pierpark: but I wouldn't go that route =) Feb 18 10:14:36 timroes: I only added that a few minutes ago, as well as the if(tubeList == null){ perform JSON question } so it makes no difference. Feb 18 10:14:52 if you remove static but leave your tubeList == null Feb 18 10:15:00 each fragment has this tubeList "cache" Feb 18 10:15:09 and it will only b loaded if it's null Feb 18 10:15:16 appel1: alright, then what would the best practice be, according to what I've already got 'working' to cache this data .. you mentioned like.. an associative array type thing Feb 18 10:15:18 what soudns pretty much like I understoof what you want :D Feb 18 10:15:31 let me see real quick Feb 18 10:16:05 as of > 5 minutes ago, I had the tubeList reference being created inside getTube(), and only recently moved it to the top of the file Feb 18 10:16:11 so I'll try changing it Feb 18 10:16:17 pierpark: also make line 165 - 168 (paste) into an own method and call this, since you use the exact code twice Feb 18 10:16:46 that's e.g. an example of unnecessary copy/paste :) Feb 18 10:17:15 holy crap... that ... didn't cause it to re-load. Feb 18 10:17:29 surprise surpriose :D Feb 18 10:17:52 WTF o_O .. was so close and didn't even know it Feb 18 10:18:19 let me check out 165-168 Feb 18 10:18:21 so now make that above lines an own method (e.g. reloadAdapter) and please remove the return statement L179 :) Feb 18 10:18:37 alrighty one sec let me try that Feb 18 10:18:57 oh and thanks to both of yo... I was drowning in this Feb 18 10:19:03 you* brb Feb 18 10:21:04 works! I made public void reloadAdapter(View view){ // those lines } and call it from the two places; reloadAdapter(view); Feb 18 10:21:22 One final question... Feb 18 10:21:30 and remove the return :D Feb 18 10:21:35 yeah! that too Feb 18 10:21:39 :) haha Feb 18 10:22:02 a return at the end of a void method is for me like while(true) { // do shit; break; } Feb 18 10:22:03 Any idea how I'd go about hitting that refresh icon in the action bar, and .. refreshing ? Feb 18 10:22:39 ah... right... yeah, I was just trying anything and everything, hoping to provoke a change in behavior so I could try to get where I was ... fairly close to getting... Feb 18 10:23:09 pretty easy, just put the inside of your if(tubeList == null) { ... } into an own method, call that (a) from inside your if(tubeList == null) and the other time when hitting the refresh icon Feb 18 10:24:04 and you should move the aq = new AQuery(view) also to that method :) Feb 18 10:24:35 so it'd be something like... find-fragment-this-stuff-is-in.method-that-gets-json() ? Feb 18 10:24:50 eh yeah :) Feb 18 10:25:26 now it kind of makes sense. :) in my butchered way, but hey...it at least clicks a little. Feb 18 10:25:28 or you just create the menu inside your fragment instead of your activity, (since afaik you can have fragment specific menus) so the call gets directly to your fragment and not your activity Feb 18 10:26:45 cool :) dude, you rock. thanks for the input... you saved me from the asylum Feb 18 10:27:15 for now :D Feb 18 10:27:38 ha ha ... yeah.. but now is good enough for now! Feb 18 10:27:56 going to go get lost somewhere else and come back whining again later. Feb 18 10:27:58 thanks man! Feb 18 10:28:02 and thanks, appel1 Feb 18 10:28:37 you're welcome :) Feb 18 10:41:56 Is it possible to write CustomCameraClass(using SurfaceView) with AsyncTask ? Feb 18 10:42:39 If yes, please share some pointers...I've learned how to use SurfaceView and also AsyncTask...but I'm unable to combine both. Feb 18 10:44:37 Does I'm expecting something wrong? Feb 18 10:46:46 anyone using maven with the maps api? If so how can I add this as a dependency? Some online posts are old or contradict others... Feb 18 10:47:04 is there some official place to grab stuff like play/gmail from CM ? Feb 18 10:47:25 is it possible to register the same app (with the same appId) twice to GCM? Feb 18 10:47:31 * g00s doesn't know anything about CM, but figures all those guys get it too Feb 18 10:47:42 CM= Feb 18 10:47:42 ? Feb 18 10:47:50 cyanogenMod Feb 18 10:47:59 aha Feb 18 10:48:03 g00s: there are "packages" called "gapps" usually which are applied from recovery Feb 18 10:48:15 oh, so you grab it from your own phone Feb 18 10:48:27 g00s: they have download for it Feb 18 10:48:31 nah, there are distributed packages Feb 18 10:48:34 (i assume grapped from phones) Feb 18 10:48:38 please guide on AsyncTask and Camera topic. Feb 18 10:48:41 it's all a bit wink-wink Feb 18 10:49:29 ;) Feb 18 10:51:14 though the wiki page where they had the download links earlier doesn't exist anymore Feb 18 10:51:28 because the links are on forums Feb 18 10:51:43 they are updated pretty often, and extracted from OS images, afaik Feb 18 10:52:10 anyway, ROMs can't include them due to license, but you can host them separately, afaik Feb 18 10:52:13 haven't installed CM for a long time :D only use their google packages to isntall in emulator if i need play services :) Feb 18 10:54:06 I'm trying to rephrase my statement, hoping if I was unclear earlier... Feb 18 10:54:06 Is it possible to run Camera in different thread(other than Main UI thread) using SurfaceView/SurfaceHolder mechanism?? Feb 18 10:54:42 Is anyone aware of a way to remove applications from the users device? Feb 18 10:54:55 Do I as an app developer have that kind of control? Feb 18 10:55:04 bobsapp: from what point of view? Feb 18 10:55:20 another application (with required permissions) can Feb 18 10:55:33 and you can remove an entire app form the market iirc Feb 18 10:55:40 I don;t think you can target it Feb 18 10:55:45 essentially I want to be able to beta test an android app then have it uninstall itself once the period is over. Feb 18 10:56:07 I dont want stale/old versions of the app to still exist on users phones. Feb 18 10:56:14 I think so, if you request the manage applications permission Feb 18 10:56:25 cool, ill look into it Feb 18 10:56:26 or just tiem limit it Feb 18 10:56:57 timroes: yeah, thats what i need to do - install gmail in the emu Feb 18 10:57:43 bobsapp: I think removing apps from players devices won't make users too happy to use ur app again, I would just push an updated if your beta phase is over, that telsl the user the link to your final app, when he opens the beta one. So no sudden disappearing of an app, that the user might wonder about Feb 18 10:59:51 timroes: currently its only beta users who are aware that its a tempoary trial. due to the nature of the app (security is important) its actually a secret beta test. so its actually being released under a different developer account. Feb 18 11:00:14 When the final app is released into the public i want users only to download it from the official developer account. Feb 18 11:00:55 still I would update the app that time, showing a dialog "beta ended, download final version now" click button to bring them to the market page of the final app Feb 18 11:00:55 so if the app dissapears in beta its not an issue. but I do want things to be kept secret otherwise it will raise confusion over where users should actually get the app from. Feb 18 11:01:39 have the release version broadcast an intent to tell the beta to shut itself down Feb 18 11:02:23 * bobsapp nod Feb 18 11:02:26 sounds good Feb 18 11:02:35 okay then i missunderstoof your problem sorry :D Feb 18 11:02:39 <[maTa]> i am trying to sing xml file using javax.xml.crypto.dsig.XMLSignatureFactory but when i run progy i got warning in logcat Could not find method javax.xml.crypto.dsig.XMLSignatureFactory.getInstance, referenced from method bla bla bla.... what i need to do? repackage jrs with jarjar? any other option? Feb 18 11:02:41 i thought your problem is to bring the user to the final version Feb 18 11:02:51 and not on how to delete the beta, once they installed the final one Feb 18 11:04:32 Thanks guys you have been very helpful. Feb 18 11:05:47 [maTa]: I don't see javax.xml.crypto in the reference docs index... Feb 18 11:08:53 <[maTa]> Leeds: i am using jsr-api like external jar in my project Feb 18 11:28:21 is it possible to register the same app (with the same appId) twice to GCM? Feb 18 11:28:36 and to get 2 regIds Feb 18 11:28:38 ? Feb 18 11:29:35 I didnt think you could even have the sam Feb 18 11:29:41 disregard that Feb 18 11:29:43 :) Feb 18 11:30:59 the package name and signer have to be unique Feb 18 11:35:42 shinobi charts are available for android :o Feb 18 11:36:03 oh man, i cant believe im so close to buying a license :s Feb 18 11:38:48 license? Feb 18 11:38:56 oh, I see, ignore me Feb 18 11:39:23 Isn't the processor the central component that does the work when compiling? Feb 18 11:40:00 that does work, yes Feb 18 11:40:30 hey timroes, you around? Feb 18 11:41:41 Can someone take a look at line 50 of this http://pastebin.com/NUfm4nyu and give me a hand? Feb 18 11:42:52 pierpark: why static? :D Feb 18 11:43:20 or better what should that method do at all? Feb 18 11:43:42 <_kud> Hello. I've got a html question. I've got a form so the keyboard is deployed. But when the form is ok, I change the page of the user and the keyboard is still here, which is boring Feb 18 11:43:51 <_kud> do you have any idea on how to undeploy the keyboard? Feb 18 11:43:53 timroes: well I was listening for the refresh icon being clicked... Feb 18 11:44:12 why static :D Feb 18 11:44:28 hehehe... because I'm a confused person. Feb 18 11:45:15 http://pastebin.com/djE4GXEY Feb 18 11:45:25 okay, so that's the MainActivity and... yeah :/ Feb 18 11:46:09 you would want to call that method on the currently shown fragment Feb 18 11:46:16 not the fragment class Feb 18 11:46:20 so don't make it static in the beginning Feb 18 11:47:38 okay I removed static, but now from MainActivity, I can't 'find' a way to reference my method.. Feb 18 11:47:57 yeah because you need to get a reference to the currently shown fragment Feb 18 11:48:27 so you're saying in MainActivity... findRefToFragment.myMethod ? Feb 18 11:48:53 yeah, but ... P) Feb 18 11:48:57 instead of TestFragment.refreshIt() hmm Feb 18 11:49:22 it would be cleaner if you just move your onCreateOptionsMenu and onOptionsItemSelected to the fragment instead of the activity Feb 18 11:49:38 if you load a fragment and it implements that method, these menu items are added to the actionbar Feb 18 11:49:59 but now the fragment will receive the item call and you don't need all the "finding currenlty shown fragment" stuff Feb 18 11:50:09 oooh. Feb 18 11:50:25 lemme see if I can... not screw that part up... that'd make sense Feb 18 11:52:37 so add "implements ... " to fragment... and move methods.. what am I implementing? Feb 18 11:52:47 I don't succeed placing a textview in a imageview... I have a relativelayout containing both, and I set the edges from the textview to the imageview, but when I apply alignBottom to the id of the image, it doesn't aligns the bottom of my text to the bottom of the image /: Feb 18 11:53:26 pierpark: you have in your mainactivity a onCreateOptionsMenu and onOptionItemSelected method Feb 18 11:53:34 to create the menu and handle the refresh click Feb 18 11:53:41 just move these methods to the fragment :) Feb 18 11:54:10 and then you can just call the refreshShit method in the onOptionsItemSelected method, since it is in the very same method your onOptionsitemselected method is Feb 18 11:55:34 It's got a ... error on: return super.onCreateOptionsMenu Feb 18 11:55:50 and made me remove the @Override Feb 18 11:56:47 pierpark: public void onCreateOptionsMenu(Menu menu, MenuInflater inflater); Feb 18 11:57:19 can I just borrow your brain for about a day? lol Feb 18 11:57:38 slightly different signature Feb 18 11:58:17 :) Feb 18 11:59:22 was I supposed to implement something? I'm still having trouble Feb 18 12:00:00 nope not really Feb 18 12:00:07 in what way do you have trouble Feb 18 12:00:30 "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){ ", and "return super.onCreateOptionsMenu(menu, inflater);" Feb 18 12:00:48 lets guess "you cannot override final method"? Feb 18 12:00:54 ehh ah no :D Feb 18 12:00:59 yeah return type 'void' Feb 18 12:01:04 to nothing you need to return :) Feb 18 12:01:08 to=so Feb 18 12:01:14 It's telling me...type Menu,MenuInflater not applicable to type Menu,MenuInflater O_o Feb 18 12:01:42 yeah just remove the return :) Feb 18 12:01:57 method signature has 'void' so no data returned Feb 18 12:02:31 that will also solve your problem (just for information: its not applicable, since there are too different MenuInflater, the one from actionbarsherlock and the one from android) Feb 18 12:02:35 ah..right... doh. compiles but no refresh icon now Feb 18 12:02:52 ohh, makes sense Feb 18 12:03:18 bet I imported the wrong MenuInflater Feb 18 12:03:48 if you did so, you shouldn't be able to override the methos, since the "wrong" method is made final in ABS Feb 18 12:04:28 pierpark: you need to call setHasOptionsMenu() during the onCreate of your fragment Feb 18 12:04:31 (sorry forgot that) Feb 18 12:04:50 to tell the activity your fragment has some menu items to add Feb 18 12:05:01 awesome Feb 18 12:05:02 setHasOptionsMenu(true) ofc :) Feb 18 12:06:22 and BAM (like Emeril).. you've saved me again Feb 18 12:07:23 at least, by getting told, I'm making the 'connection' somewhat..that'll get me at least thinking in terms of talking back and fourth... and I appreciate it. I've made about a dozen apps, and am trying to learn the 'better way'... which is why my brain is twisted Feb 18 12:07:40 I sure do appreciate it man... again. :) Feb 18 12:08:07 I'm going to buy you a t-shirt that says "why static?" Feb 18 12:08:33 would be something new i guess :) Feb 18 12:08:47 see, I'm paying attention... :) haha Feb 18 12:09:26 just remeber: static is evil, except in the cases you want to have somethign static, then static is good :) Feb 18 12:09:31 pretty easy to remebver :) Feb 18 12:09:51 haha Feb 18 12:10:18 I'll commit that to memory.... the best I can. Feb 18 12:10:34 using static is like stone throwing in glass houses :) Feb 18 12:11:25 so we want brick houses with few windows Feb 18 12:11:33 nah Feb 18 12:11:40 in fact stone throwing is always crappy behavior Feb 18 12:11:50 okay no windows Feb 18 12:11:50 so actually: no stone throwing regardless of housing situation Feb 18 12:11:55 ah Feb 18 12:11:55 haha Feb 18 12:12:01 [quote: demitri martin] Feb 18 12:12:54 maybe I'll get that t-shirt for myself. Feb 18 12:13:00 :p Feb 18 12:13:20 pierpark: http://www.funnyordie.com/videos/62f250455c/demetri-martin-stand-up-presentation-from-demetri-martin skipt o 2:29 Feb 18 12:13:56 now to figure out how to call phoneHome() with the right 'view'. maybe what I tried before will work, since it's in the same 'room' now. Feb 18 12:14:20 ooh a video break. brb in 6:20 ;) Feb 18 12:14:26 have fun :) Feb 18 12:16:39 lmfao.... this is brilliant Feb 18 12:16:56 yeah it is, i like him a lot :D Feb 18 12:17:15 though as a non native speaker i had problems in the beginning understanding him :) Feb 18 12:17:36 hello, am looking for voice recognition api other than the default google service, any help? Feb 18 12:21:26 voice recognition api?? Feb 18 12:21:51 ahaha. I'm sharing that video.... especially about being more specific of the contents of the glass. Feb 18 12:22:03 :D Feb 18 12:22:13 which is the easiest way to convert from an imput stream to a string? Feb 18 12:22:43 I tried to use IOUtils until discovered doesn t exist in android... Feb 18 12:22:46 jejeje Feb 18 12:57:12 Hi! I have a list and a detail activites using food object. what is the best way to pass a chosen food object to the detail activity? Feb 18 12:59:41 i'm trying to fetch pages from wikipedia with the following code https://gist.github.com/anonymous/670cdda4847f68fbc4cf it works for say http://en.wikipedia.org/wiki/Scotland but /Sweden returns a bunch of garble.. what am i missing? Feb 18 13:00:34 I have spent hours trying to find out how to instantiate a CdmaCellLocation object and until now i could. I want to get my BaseStationId on my device. how to do so ? Feb 18 13:01:25 osxorgate: you will get what server give to you Feb 18 13:01:33 the code seems fine Feb 18 13:02:31 but it's systematically garble when using /sweden Feb 18 13:02:35 in the browser it's fine Feb 18 13:03:01 is there any way to know what size artwork RemoteControlClient interface expects? so that it wouldn't be scaled up Feb 18 13:03:04 osxorgate: what it is returning exactly Feb 18 13:03:29 digging the source code I found that it's 256x256 but does that ever change by device.. Feb 18 13:03:40 an error or unrelated content Feb 18 13:04:17 vudu a ton of this ���������������ێ�X�&�]O=�K11c�nGw��L<< Feb 18 13:04:28 osxorgate: thanks for screwing up my client. Feb 18 13:04:36 maybe next time you can not post binary data? Feb 18 13:04:37 dont use shitty software ;) Feb 18 13:04:46 sorry it's a string here Feb 18 13:04:53 �H����������������X�&�]O=E�K1Y1c�nGw��LN<< Feb 18 13:07:04 osxorgate: you can try to use StreamReader Feb 18 13:07:19 instead of getting btye array Feb 18 13:10:01 So, fun fact: If you don't use -U as an argument to screen, unicode fails. Feb 18 13:10:09 now I can see characters like oÍ¡o Feb 18 13:10:14 hooray! Feb 18 13:12:41 I want to instantiate an object from CdmaCellLocation, i can instatiate GsmCellLocation but i cant do the same with CdmaCellLocation, please help Feb 18 13:13:10 devsherif: why are you trying to create your own instance? Are you trying to use this for unit testing or something? Feb 18 13:13:19 generally you want the device to give you instances Feb 18 13:13:57 In particular, you should be programming against the CellLocation interface Feb 18 13:13:58 Hi. Feb 18 13:14:08 I just want to getBaseStationId() which is a method of CdmaCellLocation object Feb 18 13:14:24 * lov shrugs Feb 18 13:14:26 Is my app on "autostart" could check "id" of simcard ? Feb 18 13:14:29 http://developer.android.com/reference/android/telephony/cdma/CdmaCellLocation.html#CdmaCellLocation(android.os.Bundle) Feb 18 13:14:38 look at the source to see what arguments you need to pass Feb 18 13:14:51 bluesm: probably. Feb 18 13:15:39 maybe i didn't phrase my question well. I have requested the CellLocation object from TelephonyManager Feb 18 13:16:07 but a cast exception is thrown when i try to cast it to CdmaCellLocation object Feb 18 13:16:22 however it could be casted to GsmCellLocation object ? Feb 18 13:16:23 probably because you have a GSM device and you're getting a GsmCellLocation? Feb 18 13:16:26 How can I convert image captured by Camera, returned in ByteArray to BitMap? Feb 18 13:16:38 devsherif: you're getting a GsmCellLocation back. That's NOT a CdmaCellLocation. Feb 18 13:16:48 devsherif: what are you using for testing Feb 18 13:16:57 If you don't understand why that would cause a class cast exception, you may want to read up on OO in general. Feb 18 13:16:58 I have changed my device to work only on Cdma not gsm Feb 18 13:17:04 er... Feb 18 13:17:12 i am using a real htc device Feb 18 13:17:16 lov: How can I write app that run on Autostart ? And check something in background ? Feb 18 13:17:26 I'm googling and found something YUV....not having enough knowledge what that is. Feb 18 13:17:32 bluesm: use a broadcast reciever for the device boot. Have it start a service. Feb 18 13:18:01 bluesm: a service Feb 18 13:18:26 devsherif: you should test it with another cdma only device and see Feb 18 13:18:54 r Feb 18 13:21:12 abhinavmehta: let me see if I have some code to do that Feb 18 13:21:52 vudu, I got the code to do that....found here: http://stackoverflow.com/questions/5272388/extract-black-and-white-image-from-android-cameras-nv21-format/12702836#12702836 Feb 18 13:22:19 but the concern is, is there some better or easy way doing this ? Feb 18 13:22:46 Bitmap bitmap = BitmapFactory.decodeByteArray(bitmapdata , 0, bitmapdata .length); Feb 18 13:22:48 not essentially easy but better or best if provided by platform itself Feb 18 13:23:08 vudu, lemme try this...thank you in between Feb 18 13:24:20 back to my question Feb 18 13:24:29 I have a list and a detail activites using food object. what is the best way to pass a chosen food object to the detail activity? Feb 18 13:26:52 no one? Feb 18 13:27:07 vudu, elaborate little more\ Feb 18 13:28:09 I want to pass an object to an activity Feb 18 13:28:38 what I am currently doing is serializing the object and passing with bundle Feb 18 13:30:57 vudu, so what's the issue, I'm not very good with Android...but AFAIK you are doing good..coz that's how you have to pass objects around Feb 18 13:31:41 I'm not sure, what you mean by serializing...coz adding with bundle is just fine...hope you not uisng NDK Feb 18 13:32:46 abhinavmehta: there is no problem I just wanted to learn how people doing this Feb 18 13:34:14 vudu, okay..go ahead, but to me it seems just good enough. Feb 18 13:34:38 vudu: if it's something simple that you can serialize, that's a good (and probably the most appropriate) way to do this. Feb 18 13:34:52 Have an object that's parcelable or serializable and just pass it in the bundle. Feb 18 13:35:02 If your object isn't bundleable/serializable, things get more tricky Feb 18 13:35:34 Anoia , lov: Thanks :) Feb 18 13:59:56 Hi, i have two nexus4 for development. i can run apps from ADT on one device, unfortunately, the 2nd nexus is not detected. Any ideas what might cause this? Feb 18 14:03:20 freiform: how are they connected? Feb 18 14:03:27 via usb or wifi? Feb 18 14:03:41 bobsapp: usb Feb 18 14:04:04 I've experienced a situation where some usb ports dont have enough power to support the connection to the device. Feb 18 14:04:29 bobsapp: it is the same port the other device was connected to Feb 18 14:04:38 Ah. Feb 18 14:04:56 I assume you have enabled usb debugging? Feb 18 14:05:13 jiggle the wire Feb 18 14:05:23 Yes. window's device manager shows android composite ADB interface Feb 18 14:05:23 yeah would be worth double checking that debugging is enabled Feb 18 14:05:43 right click on my computer and see the device manager to ensure that it installed properly Feb 18 14:05:47 some of the best usb cables sometimes need jiggling. Feb 18 14:05:53 make sure nothing has a red cross Feb 18 14:06:18 like i said, it shows up in the device manager Feb 18 14:06:30 does it show up in log cat? Feb 18 14:07:05 "Failed to find an AVD compatible with target 'Android 4.2'." Feb 18 14:07:20 sorry didnt see that freiform Feb 18 14:07:50 is it possible that i need to connect the device to a google account for development to work properly? Feb 18 14:08:09 freiform: no Feb 18 14:08:10 freiform: not necessary Feb 18 14:08:20 what devices though? Feb 18 14:08:38 2x nexus4 Feb 18 14:08:41 go to the console and do "adb devices" Feb 18 14:08:45 one is working properly Feb 18 14:09:20 the one that isn't... if you disconnect the working device, does it work then? Feb 18 14:10:52 i only have one attached at a time, so they cannot interfere. "adb devices" does not show the 'faulty' device. Feb 18 14:11:53 morning Feb 18 14:11:57 so its only one specific device that refuses to work? Feb 18 14:12:27 bobsapp: yes, one is, the other is not. i'm confused. Feb 18 14:12:47 ok try debugging the one that doesnt work over usb via wifi Feb 18 14:13:11 connect it to the same wireless network as your computer and then on your development computer type: Feb 18 14:13:14 freiform: developer mode and USB debugging are both enabled? Feb 18 14:13:23 on the device, that is? Feb 18 14:14:00 madis: yes, even the status bar says 'USB-Debugging' Feb 18 14:14:14 adb connect [IP_ADDRESS_OF_PHONE]:555 Feb 18 14:14:21 whoops it should be 5555 Feb 18 14:14:26 random question: im using ffmpeg-arm from the terminal on a htc desire. ffmpeg -i always says "No such file or directory". When i do the same command on a nexus 7 it works fine, any suggestions? Feb 18 14:14:36 then type adb devices you should see somethin then Feb 18 14:14:48 bobsapp: i have to setup a ad-hoc network first. uiversity network rejects all kinds of connections. Feb 18 14:14:52 brx_, write permissions enabled onthe other phone? Feb 18 14:15:22 kaneda^, im running the process as root Feb 18 14:15:34 yeah i guess you would have to do that first. you can also try connecting it to another computer with adb and forwarding the connection but thats pretty complex Feb 18 14:15:38 i can copy/read files from the sdcard at terminal Feb 18 14:15:44 ok Feb 18 14:15:52 have you checked the paths are the same? Feb 18 14:16:29 ive tried: ffmpeg -i /sdcard/a.pg Feb 18 14:16:41 and: ffmpeg -i /mnt/sdcard/a.png Feb 18 14:17:47 cat /sdcard/a.pg outputs the file as expected Feb 18 14:22:13 Is there a library which provides a breadcrumb widget? Feb 18 14:23:20 I'm showing a list view that shows hierarchical data (like browsing a filesystem) and I would like to provide a breadcrumb instead of a back button Feb 18 14:23:58 tabs/tabhost? Feb 18 14:36:43 does anyone know how i can display a MapFragment from google maps v2 inside a fragment? Feb 18 14:37:00 i know, that nested fragments are not allowed Feb 18 14:38:47 i think you just answered your own question Feb 18 14:39:28 neh... but there must be some way to be able to show google maps not in "full screen" like usualy with activities Feb 18 14:40:24 my app has a two col layout. left is the "logic" right the "view" part. i would like to show maps on the right side only... Feb 18 14:42:59 make users of your app aware of the fact to run your app they'll need two phones and some ducttape :) Feb 18 14:43:51 usually when i select something on the left side, i inflate a fragment and display it in a FrameLayout that represents the right side. this is working fine, until now... now i would like to show a freakin google map and i'm too stupid to do it :/ Feb 18 14:43:54 anyone here used mystictreegames boost libs? Feb 18 14:44:26 @lasserix not sure if this solution is sufficient... Feb 18 14:47:02 bobsapp: i just set up my linux-box, both devices are detected.. seems to be a windows/drievr issue. Feb 18 14:47:31 blegh Feb 18 14:48:52 imho linux is probably the platform of choice for android development. I only use osx for iOS stuff. Feb 18 14:49:02 windows is just too senile nowadays Feb 18 14:49:41 bobsapp, GET OFF MY LAWN Feb 18 14:50:09 :) Feb 18 14:50:27 bobsapp: until now, i never had any problems. have been running htc buzz, a samsung and motorola tablet, and _one_ nexus. anyway. i suspect that windows gets confused by two devices using the same drivers. Feb 18 14:50:30 bobsapp, iOS doesnt give you a choice: develop on mac or dont develop at all Feb 18 14:50:39 android gives you a choice, but linux is obviously the superior option Feb 18 14:50:44 older windows is actually less senile than recent windows. how does that work? Feb 18 14:50:57 kaneda^: yeah. Im trying to see if i can get osx working under a vm. Feb 18 14:50:58 bobsapp, win7 isnt more senile than winme Feb 18 14:51:05 prions Feb 18 14:51:09 bobsapp, you should be able to, i've seen plenty of hackintoshes Feb 18 14:51:10 true, but way more senile than win2k Feb 18 14:51:19 lasserix: mad horse disease? Feb 18 14:51:22 winme doesn not exist. never did. oh boy.. Feb 18 14:51:23 to be fair it's basically a dressed up version of win2k with better domain options Feb 18 14:51:25 you realize that Aero is a skin you can turn off, right? Feb 18 14:51:35 lov, +1 Feb 18 14:51:41 you aren't FORCED to use a pretty UI Feb 18 14:51:47 you can always make it look like xfce somehow Feb 18 14:51:49 true, but what else did windows add? Feb 18 14:51:52 if that's what floats your boat Feb 18 14:52:10 I realise this. What I can not deal with is windows server having a maximum number of tcp connections. Feb 18 14:52:11 ms devving with older source code, bingo virtual prions causing newer versions to be more senile Feb 18 14:52:18 mhh.. like win95. exchaneg explorer.exe with emacs.exe. Feb 18 14:52:28 they are actually reducing the feature set. Feb 18 14:52:29 win98 2nd edition, best windows ever Feb 18 14:52:40 basically dos. ;) Feb 18 14:52:51 ive had programs run better on win95 then on win xp Feb 18 14:53:07 even though the hardware was 100x better Feb 18 14:53:26 win95, 100mhz, 20mb ram better then winxp, 1.6ghz, 512mb ram Feb 18 14:53:48 memory protection has some overhead =] Feb 18 14:54:11 part of it is silly xp thinking an app has stopped responding Feb 18 14:54:20 so it replaces the window with a virtual identical looking one Feb 18 14:54:27 causing more load when it does start responding Feb 18 15:05:27 hi Feb 18 15:05:43 Can you take a look at my question please? (and try to answer or upvote if you don't) :D Feb 18 15:05:43 http://stackoverflow.com/questions/14923919/dont-weighted-linearlayouts-support-round-rect-backgrounds Feb 18 15:08:13 spobat: why not post summary_title_horizontal_last as well Feb 18 15:10:12 lov, #added Feb 18 15:14:17 i don't entirely understand touch events. they carry a history but only one "action"? surely that action doesn't apply to all datapoints in the history? Feb 18 15:17:17 lov: got an idea on that? Feb 18 15:18:14 Because, see. What I really want to do is animating a TextView (fade text out, reassing it, fade in). But I don't want the background to "fade out" - the background should stay stolid whilst the "text" fades out. Feb 18 15:18:24 hi, i need an android emulator to test web (responsive) development in. in the AVD Manager, what target can I best choose? Feb 18 15:18:43 If anyone is interested I've done a quick write up of an experiment in using Adwords / Google+ and NFC tags with AAR's to drive downloads; http://blog.networksaremadeofstring.co.uk/2013/02/18/getting-people-interested-in-your-app-with-nfc-android-application-records/ Feb 18 15:18:51 does anyone know if it's possible to have some kind of fragment visibility listener? Feb 18 15:19:10 I have a fragment that becomes hidden where I would like to turn off a background processing task Feb 18 15:19:38 but it would be too rigorous to immediately detach it from the layout so its onPause gets called Feb 18 15:20:24 err, when the fragment becomes hidden I'd like to stop background processing Feb 18 15:21:20 lov, are you "Delyan" @ SO? Feb 18 15:21:50 spobat: no Feb 18 15:22:01 NetworkString: "Create NFC stickers bearing the brand of well known coffee establishments and place them on tables and existing marketing material..." - Enjoy your lawsuit. Feb 18 15:24:09 NetworkString: that aside, neat article and writeup. Feb 18 15:36:38 Hi all i am looking in to AtomicReference to create thread safty in a layout where i may need it. (just playing around with it atm) i am not realy undetstanding how it works yet, but my main question is if i am using it from a UI thread, will it "stall" the ui thread while it is waiting to access the info ? Feb 18 15:38:23 has anyone ran in to issues with library project inclusions suddenly breaking and without reason? Feb 18 15:38:23 yes Feb 18 15:39:28 pwizard1015 if using Eclipse, make sure all those library projects are opened, and clean/build them one by one in the correct order, that takes care of at least some issues Feb 18 15:39:55 bobsapp: found the problem.. for windows, the device has to register via PTP, not MTP. go figure.. Feb 18 15:40:21 ah ok yea that makes sense Feb 18 15:40:31 Im making an app that pulls in the latest news from my website and I was wondering about best practives. The app checks for news on the webserver then stores it locally. If the article exists it updates it. Should I bother storing it locally or download it every time? Also as a side not can someone recommend a decent example/reading od dealing with data like this from a website. Feb 18 15:40:37 in MTP profile the android phone is similar to a usb media thingy Feb 18 15:40:51 Chainfire: I had. I'm using the CirclePageIndicator, it builds fine. When I go to properties->Android and include the project it seems ok, if I close the properties and re-open it, it's got the red x and a question mark on the name. Feb 18 15:40:54 on linux every time you connect a device you can see in the log it treats it differently. Feb 18 15:41:12 freiform: so you just had to delete the device in device manager and plug it in again? Feb 18 15:42:03 pwizard1015 doesn't ring a bell for me, sorry Feb 18 15:42:09 bobsapp: i set the device-connection within the device to PTP Feb 18 15:42:16 bobsapp: that did the trick Feb 18 15:42:31 three hours of my life.. Feb 18 15:43:16 matt1982, as for news I'd recommend GCM to 'push' updates to phones as updates happen rather than waste CPU / battery / data on polling. Plus you can include 4kb of payload so a title and synopsis for the list view and then they can download the full thing if they are interested Feb 18 15:43:52 freiform: that you will never have to waste again :) Feb 18 15:43:53 ahh nice one GCM will google that now :D Feb 18 15:43:58 sounds interesting. Feb 18 15:44:11 bobsapp: there's a lemon for you ;) Feb 18 15:44:28 I'd managed to get it working using a AsyncTask but it seemed costly in terms of network usage etc. Feb 18 15:44:38 in the great words of Cave Johnson... Feb 18 15:44:38 thats NetworkString Feb 18 15:47:16 bobsapp, i dont want your damn lemon, i'm the man who's gona burn your house down, WITH THE LEMONS Feb 18 15:47:21 this package depends on missing sdk platform android api 17 Feb 18 15:47:25 anyone knows where I can find this? Feb 18 15:47:33 :) Feb 18 15:47:34 mobile8, use the sdk manager Feb 18 15:47:43 kaneda^: yea, i cannot find it there Feb 18 15:47:47 if it doesnt appear try unclicking "force https" Feb 18 15:47:53 just read it, that'S the spirit! Feb 18 15:48:06 where can i select force https? Feb 18 15:48:16 in the preferences of the sdk manager mobile8 Feb 18 15:48:35 ok Feb 18 15:49:05 seems to work now Feb 18 15:49:07 thanks Feb 18 15:49:09 np Feb 18 15:49:27 someone should probably report that the https has been failing for about a month Feb 18 15:50:26 can I set a specific system keyboard on my application? Feb 18 15:51:21 An easy one: the SDK trells me that it needs ADT > 21.1.0. Do i have to install manually? The updater does not seem to work Feb 18 15:53:10 hey Feb 18 15:54:13 what is the name of default bootloader? Feb 18 15:54:13 there is a bootloader for each kind of device? (samsung sx, samsung galaxy... etc) Feb 18 15:55:54 i have a general question, which is faster, an O(1) lookup (eg, in a hashmap) or math Feb 18 15:56:05 i assume math is faster, regardless of the implementation of the map Feb 18 15:57:39 kaneda^: actually i think o(1) lookups are faster, though im talking about a compiled c++ application Feb 18 15:57:49 depends on the complexity of the math of course Feb 18 15:58:07 bobsapp, that's the context, so that's exactly what i'm wondering Feb 18 15:58:15 and this math is generally a couple multiplications and an addition Feb 18 15:58:30 many gamedevelopers pre-compute dot a matrices dot products to save that since memory is cheaper than cpu cycles Feb 18 15:58:48 someone? :) Feb 18 15:58:50 bobsapp, that's what i've done, but now im' wondering if a little bit of math wouldnt be faster Feb 18 15:59:03 O(1) is faster Feb 18 15:59:13 ok, cool Feb 18 15:59:22 kaneda^: I have updated, I also can choose device definitions now Feb 18 15:59:28 there is nothing faster than O(1) Feb 18 15:59:29 mobile8, nice Feb 18 15:59:32 Any idea how I can add devices? Feb 18 15:59:34 kaneda^: where are you precomputing it though? for example, the example I have in mind does it at compile time and stores the values in the executable :) Feb 18 15:59:40 Like xPeria Arc Feb 18 15:59:49 bobsapp, i compute it at the run of the application and then never again Feb 18 16:00:03 well, not again until its next run Feb 18 16:00:07 yeah so you can save loading / startup time but puting it in the executable :) Feb 18 16:00:21 yah but that's very minimal Feb 18 16:00:27 it's a speed up on every frame that i'm interested Feb 18 16:00:28 well, so what is the bootloader's name on a default device? Feb 18 16:00:35 and on cynogenmod? Feb 18 16:00:46 virtx: #android-root Feb 18 16:00:54 ah, ok thanks Feb 18 16:00:56 (and-or #cyanogenmod) Feb 18 16:01:01 you'll get better answers there Feb 18 16:01:38 kaneda^: game programming gems 2 has a good example. Feb 18 16:01:39 10:56:21 < kaneda^> i have a general question, which is faster, an O(1) lookup (eg, in a hashmap) or math Feb 18 16:02:01 in this case you're comparing the time taken for your "math" vs the time taken to compute the hash and perform the memory lookup. Feb 18 16:02:10 lov, exactly, and i'm not doing much math Feb 18 16:02:23 in that case it probably makes sense to just compute it each time. Feb 18 16:02:29 it really does depend on how much work you're doing Feb 18 16:02:47 it's just the decoding of an index to a i,j location, so index/width and index%width Feb 18 16:02:57 hahaha Feb 18 16:02:59 do you think that's faster than computing it and looking it up? Feb 18 16:03:00 yeah, just compute that shit Feb 18 16:03:06 lov, k, thanks Feb 18 16:03:07 * bobsapp nods Feb 18 16:03:14 don't bother using a map for that Feb 18 16:03:16 code will make more sense too Feb 18 16:03:21 ^^ Feb 18 16:03:26 lov, NOW, what if it's an array? Feb 18 16:03:36 what if what's an array Feb 18 16:03:40 instead of a map Feb 18 16:03:45 it's an array lookup in O(1) Feb 18 16:03:56 well, ok, but you're still devoting memory for an array for this. Feb 18 16:04:00 it's a time/space tradeoff Feb 18 16:04:05 lov, let's assume that memory isnt an issue Feb 18 16:04:11 but unless your loops be mad tight yo it's not really worth it. Feb 18 16:04:19 my loops are mad tight Feb 18 16:04:21 oh. Feb 18 16:04:23 tizite to the power of tizite Feb 18 16:04:27 word. Feb 18 16:04:32 well Feb 18 16:04:37 kaneda^: is this for a NDK app or what? Feb 18 16:04:40 Does a TextView has a default bottom margin? ._. Feb 18 16:04:41 bobsapp, ofc Feb 18 16:04:44 ndk is the way to go Feb 18 16:04:44 ah Feb 18 16:05:11 There's a bit of space between the text and the bottom of the background color... Feb 18 16:05:12 if you literally cannot afford the time to do this, AND the hit of the memory lookup is less than the hit of computing this, then it makes sense to store it in an array Feb 18 16:05:16 scattering stuff in memory has also the side effect of cache thrashing Feb 18 16:05:34 but frankly I'm hard pressed to believe that your use case meets this criteria Feb 18 16:05:40 lov, that's my real question, is a memory lookup faster than a few math operations? Feb 18 16:05:44 generally no. Feb 18 16:05:47 well Feb 18 16:05:49 "no" Feb 18 16:05:59 depends on the definition of "a few" and whether your array is cached in L0 Feb 18 16:06:14 the array is on the heap Feb 18 16:06:19 and a few = 3-5 max Feb 18 16:06:23 ... Feb 18 16:06:30 ok, gonna assume you don't know what L0 is then Feb 18 16:06:38 L0/L1 cache on the chip Feb 18 16:06:42 but i dont know how to request something be in there Feb 18 16:06:43 right. Feb 18 16:06:46 well, you can't. Feb 18 16:06:54 ah Feb 18 16:06:59 you can kind of implicitly assume it though depending on your code Feb 18 16:07:04 i can? Feb 18 16:07:36 well, you have to know how your processor handles its strategy to put things into the cache; it's possible that it just uses straight up LRU or something Feb 18 16:07:46 in which case every time you access memory it ends up in L0 Feb 18 16:07:46 right, LRU is common i beleive Feb 18 16:08:00 still Feb 18 16:08:08 register memory is by far the fastest Feb 18 16:08:10 ADDITIONALLY Feb 18 16:08:16 i COULD just benchmark both ways of doing this Feb 18 16:08:17 pipelining means that multiple operations can be performed simultaniously Feb 18 16:08:23 so you could end up having all of your computations occur at once Feb 18 16:08:30 hmm Feb 18 16:08:38 wellll, not 'at once' Feb 18 16:08:42 well Feb 18 16:08:46 'at once'. Feb 18 16:08:51 quote unquote Feb 18 16:08:54 hmm Feb 18 16:08:58 point is that you can have several things happening concurrently Feb 18 16:09:05 so, at the end of the day, should i try implementing this as math? Feb 18 16:09:12 I really, really would recommend that you do that. Feb 18 16:09:20 sure, would only take a second honestly Feb 18 16:11:19 fifteen minutes and one second, as it seems Feb 18 16:12:46 which is the best way to create on-the-fly a ui from a downloaded json data that describes the ui, but without using webkit ? Feb 18 16:12:59 Ge0rG: zing! Feb 18 16:13:35 nothing is more funny than to see premature optimization at work Feb 18 16:14:44 Profiling is overrated Feb 18 16:16:46 which reminds me: it takes 30 seconds to change 500 entries in sqlite on my galaxy nexus... Feb 18 16:18:08 Using a transaction Ge0rG ? Feb 18 16:20:01 yeah, those 500 changes are almost certainly happening as 500 separate atomic transactions. Feb 18 16:20:20 use begin/end and it'll happen way, way faster. Feb 18 16:21:34 the problem is, the app is implementing a content provider, and the changes come in over the network, so they are not trivial to aggregate Feb 18 16:21:56 Hello Feb 18 16:22:02 hello, how can i load the items of a dropdown on a webpage into a spinner? Feb 18 16:22:30 Ge0rG: no way to batch everything up? Feb 18 16:22:34 I find that hard to believe. Feb 18 16:22:41 I have problems using File.renameTo. I want to move a file from one directory into another by moving the conatining folder into the other already exisitng folder but i am getting false everytzime, any idea? Feb 18 16:23:05 Is there a way to speed up the emulator ? Feb 18 16:23:12 (AVD Manager on Windows) Feb 18 16:23:14 It's like so slow Feb 18 16:23:14 mobile8: look androVM Feb 18 16:23:16 mobile8, get more RAM Feb 18 16:23:21 kaneda^: i do have enough Feb 18 16:23:24 2048 Feb 18 16:23:26 androVM is great Feb 18 16:23:27 for 1 VM Feb 18 16:23:31 Styler2go: ok Feb 18 16:23:44 lov: I suppose I'll have to go with some Handler.postDelayed() mechanism and a list of ContentValues, or some such Feb 18 16:23:46 2048 ain't much Feb 18 16:23:59 lov: it is not impossible, just not trivial either Feb 18 16:24:03 i have 6gb total Feb 18 16:24:07 Leeds: for 1 phone? Feb 18 16:24:10 * lov shrugs Feb 18 16:24:10 640k is enough for everyone!! Feb 18 16:24:11 fair point Feb 18 16:24:22 oh, 6GB is fine Feb 18 16:24:32 so, any idea about my problem? Feb 18 16:24:35 well, as long as you're not running eclipse as well Feb 18 16:24:50 and a browser Feb 18 16:25:29 Ge0rG: that said, depending on what you're doing and whether you need exclusivity, you might be able to just hit http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#beginTransaction%28%29 before you do your bulk networking, and endTransaction at the end. Feb 18 16:25:31 i want to move a dir into another dir. is this possible with renameTo? Feb 18 16:25:45 Styler2go: yes, it should be. Feb 18 16:25:52 mobile8: install HAXM Feb 18 16:25:56 better: i want to merge those Feb 18 16:26:02 lov, it seems slightly faster to use the array than do the math Feb 18 16:26:05 and in your emulator, select the Atom x86 cpu Feb 18 16:26:06 i want to move /temp/dir to /live/dir Feb 18 16:26:24 kaneda^: up to you. Feb 18 16:26:33 Styler2go: ok, great, wonderful. Feb 18 16:26:35 is this possible with renameTo? :-/ Feb 18 16:26:44 11:26:12 < lov> Styler2go: yes, it should be. Feb 18 16:26:45 because i get false everytime Feb 18 16:26:59 it's possible that the files under the directory are still open Feb 18 16:27:03 lov: any idea why its failing? Feb 18 16:27:23 there cant be any file open... Feb 18 16:27:45 I don't know why it's failing. Feb 18 16:27:50 Try doing it from outside of the application. Feb 18 16:28:04 will work Feb 18 16:28:13 it will also work if i would vcreate a custom mvoe function Feb 18 16:28:57 ok i will look if i can find something.. thanks Feb 18 16:31:17 Please how can I set time interval in traceview so I will see relative times from that interval in bottom table view? Do you know any tool that can do that (like Instruments on iOS)? Feb 18 16:31:57 lov, ok, official benchmark reveals that it is very slighly faster to do the math Feb 18 16:32:02 i had one extra lookup before and now i dont Feb 18 16:32:14 so now i'm fairly sure the math is ever so slightly faster Feb 18 16:32:28 11.17FPS vs 11.25FPS Feb 18 16:36:20 Are there standard methods for paginating a large amount of content? Feb 18 16:36:27 lov, gonna keep looking for improvements, large or small Feb 18 16:36:37 (as in, breaking up a single article into multiple pages) Feb 18 16:36:40 if anyone has any optimization recommendations i'm all ears Feb 18 16:40:53 Estel: ViewPager + ViewPagerAdapter Feb 18 16:41:32 blackhex: given a source document, is there a standard way to determine what's in each view? Feb 18 16:42:28 Estel: I'm not sure what do you mean by "source document"? Feb 18 16:45:18 kaneda^: premature optimization, etc. Feb 18 16:45:24 use a profiler to figure out what you actually need to improve. Feb 18 16:46:31 mehh Feb 18 16:46:46 Say, a book. When it's opened in the app, it's split into multiple pages depending on font size etc. I'm not sure if there's a standard method of doing that (calculating when to clip the end of a paragraph, when to add an image, how to count the number of pages at the start) Feb 18 16:46:56 lov, already done Feb 18 16:47:11 looking for more generic optimization steps for android ndk Feb 18 16:47:37 lov, i'm very aware of where the algorithm spends its time ;) Feb 18 16:49:30 kaneda^: it may make sense to change your algorithm altogether. Without knowing more, I don't know what to say. Feb 18 16:51:23 lov, oh i'm sure that's true, and we plan on going over the whole thing Feb 18 16:51:43 lov, right now i'm looking at optimization steps for the ndk in general, for instance i've replaced std::tr1::unordered_map with boost:unordered_map Feb 18 16:51:50 Estel: if the content is static you can inflate view layoust with page data, if the content is dynamic you need to use some kind of rendering library for your data format Feb 18 16:53:46 lov, lol, i ran it for longer and the math now seems slower Feb 18 16:54:02 lov, so, i'm concluding they are roughly equivalent Feb 18 16:55:55 i'm doing a hybrid version now Feb 18 16:56:02 a couple look ups and hold some stuff on the stack instead Feb 18 16:58:41 how does android handle wiping userdata on an encrypted devices? Feb 18 16:59:44 i believe on an unencrypted device it just wipes the file information, but doesn't zero the file Feb 18 16:59:55 but it can't really do that on an encrypted device.. Feb 18 17:00:08 and when i talk about wiping im refering to like, the bootloader being unlocked or something Feb 18 17:00:47 im pretty sure after the encrypted partition is mounted that any wipe action acts just as it would if it were not encrypted Feb 18 17:24:24 who can help me with an asynctask and the downloading of a webpage? :) Feb 18 17:24:59 i want a progressbar in the actionbar.. :) Feb 18 17:29:42 I updated some of the AVD SDK Manager packages, and now all my AVD's are gone Feb 18 17:29:45 any idea how come? Feb 18 17:50:17 is there a way to add two Spanned instances? Feb 18 17:51:55 Create public void add(Spanned spanned) and call it twice Feb 18 17:52:13 zing Feb 18 17:56:27 hehe Feb 18 18:09:06 Should the following flags be enough to wake screen and dissmiss keyguard? FLAG_KEEP_SCREEN_ON FLAG_DISMISS_KEYGUARD FLAG_SHOW_WHEN_LOCKED FLAG_TURN_SCREEN_ON Feb 18 18:09:11 hello there, has anyone worked with the QuickContactBadge? Feb 18 18:09:33 Cause it only wakes the screen. Yes, I have set permissions in manifest :P Feb 18 18:10:48 trying to get started with a html5 mobile app, really confused as to where to start from Feb 18 18:11:22 newbie69: it depends on what you mean by html5 mobile app Feb 18 18:11:27 i'm uncomfortable with that Feb 18 18:11:29 :D Feb 18 18:11:54 newbie69: doesn't matter where to start, won't anyway be a good result :P Feb 18 18:12:07 lolol Feb 18 18:12:20 html5 is for the web, i dont think an app comprising only html5 will work well Feb 18 18:12:32 say you want to target a single device, should filtering out every device in the dev console acheive this? Feb 18 18:12:42 brx_, i would assume yes Feb 18 18:12:54 oO Feb 18 18:13:02 every phone that looks in the store anyways... Feb 18 18:13:33 my favorit quote on that:" If I was giving this presentation [building hybrid apps with phone gab] it would very short: Feb 18 18:13:34 "Don't waste your time with PhoneGap it is impossible to build apps that don't suck with it. Learn native."" Feb 18 18:13:39 - juhani lehtimäki Feb 18 18:13:49 i need to do this for now since ive only tested on 1 device, the app is using budled bnaries that might ot work here and there Feb 18 18:14:05 i want to add devices as I have tested/made provisions in the code for them Feb 18 18:14:22 That sounds like a horrible approach Feb 18 18:14:32 Kind of a lot of devices to be buying Feb 18 18:14:38 yah... Feb 18 18:14:38 yep Feb 18 18:14:51 and if you only EXPECT it to work on one device maybe you should rethink the architecture Feb 18 18:14:57 i need to rebuild some binaries so that they dot have NEON flags i the build scripts Feb 18 18:15:13 * kaneda^ woosh over my head Feb 18 18:15:22 timroes: although one might consider building a mobile frontend to an existing website not using phonegap but using html5 and lets say jQuery mobile in which case it would not always be a bad result. Feb 18 18:15:33 jquery mobile is TERRIBLE Feb 18 18:15:41 it's really, really bad for mobile Feb 18 18:15:59 karlsve: agree with that. I would consider jquermobile + html5 good for making a web frontend for better mobile access to youtr web serice Feb 18 18:16:00 kaneda^: i meant it as an example Feb 18 18:16:04 kaneda^: why not? Feb 18 18:16:07 anyway, i uchecked every device in the dev console(lol) and its still saying my app supports like 10000 devices Feb 18 18:16:13 hmmmj Feb 18 18:16:21 karlsve, there ARE js frameworks that work better Feb 18 18:16:22 but thinking you can build "good mobile apps" with it, i must agree with juhani, its not made for Feb 18 18:16:41 kaneda^: couldn't think of any in that moment but i agree Feb 18 18:16:56 and from my experience tehre are quite a lot of ppl out there thinking "oh html5 +js + css is professional app programming" Feb 18 18:16:59 kaneda^: its supposed to be a simple app with 3 steps for every process/module. Show a list of Buttons. Users click button 1, he is asks to provide input, and then gets a message as a dialog box from server Feb 18 18:17:04 timroes: never said that statement was not correct ;) Feb 18 18:17:21 timroes, which it is NOT Feb 18 18:17:39 yeah thats my point :D Feb 18 18:17:57 newbie69, build it natively is the only advice you're going to get here Feb 18 18:17:58 timroes: shouldnt that work? Feb 18 18:18:04 newbie69: Well although you only do that it will be by far easier to do it natively Feb 18 18:18:05 SimonVT, any idea why the dev console says im supported 10000 devices when i selected 1 in the filtering options? Feb 18 18:18:10 web frontend to give a bit better mobile experiencE = OK, professional app = no way Feb 18 18:18:18 brx_, i dont think it's immediate.. Feb 18 18:18:20 I have no idea Feb 18 18:18:27 ahh i see kaneda^ Feb 18 18:18:28 but even if it were i doubt you could ACTUALLY limit EVERY device Feb 18 18:18:43 the list was pretty big, my index finger is pumped up Feb 18 18:18:45 You should rethink your approach anyway Feb 18 18:18:51 yah...i mean i have over 1200 on my list Feb 18 18:18:57 SimonVT, i know its gooa work on lots of ewer devices Feb 18 18:19:02 newbie69: ofc it is possible in both, but really depends on what you are doing. if its that easy and you make this for an existing web service I would consider html5, if you are creating something completely new, I wouldn't waste time with html5 Feb 18 18:19:19 if you are using html5 fora nice gui, you should rethink Feb 18 18:20:43 So to anyone who can answer it: Is there a way to implement the QuickContactBadge to call internal functions of my app, lets say I wanted to have an app for a website/forum that offers PN and Jabber support and I wanted to be able to easily contact a person using one of those two methods Feb 18 18:20:47 ? Feb 18 18:20:48 SimonVT, do you reckon its too dirty to temporarily let the app install and then check at first run if all features are going to work, if not i close the app with a polite message Feb 18 18:21:11 brx_, that's far more informative Feb 18 18:21:15 "if all features are going to work"? Feb 18 18:21:31 i.e if the asset binaries execute properly Feb 18 18:22:04 if you can issue a nice message instead of having to selectively choose 1000 phones then this is the obvious solution Feb 18 18:22:17 i suppose its better Feb 18 18:22:46 What binaries.. From the ndk? Feb 18 18:22:51 brx_, my main question though is why you arent providing all the necessary libs Feb 18 18:22:53 its ffmpeg for arm Feb 18 18:23:02 so yah, why not just package the ffmpeg libs? Feb 18 18:23:29 If you provide them in the proper ndk fashion, it should filter devices for you Feb 18 18:23:30 they are packaged, its working, but on the odd device it doesnt work, ie htc desire Feb 18 18:23:32 SimonVT: did you see the message I left for you about a typo in NumberPicker.java? Feb 18 18:23:38 SimonVT, it does? Feb 18 18:23:43 brx_: Consider giving a polite notice to the user and sending a report including the device type to yourself. But in this case it would be polite to ask the user if he is willing to do so Feb 18 18:23:48 kaneda^: It does Feb 18 18:23:52 Quacked: Nope Feb 18 18:24:04 SimonVT, so it actually reads the .mk files as well and filters for those libs if they arent static or whatnot? Feb 18 18:24:07 Quacked: I don't really support it anymore tho, and typos are most likely AOSP's fault Feb 18 18:24:20 Ok Feb 18 18:24:23 It's just int[] selectorIdices = mSelectorIndices; Feb 18 18:24:31 lol Feb 18 18:24:32 missing an n Feb 18 18:25:38 It's actually never used in the method at line 1454 there :P Feb 18 18:28:28 But yeah, I see it's the AOSP Feb 18 18:29:54 kaneda^: You put your binaries in libs/armeabi/, etc, and it filters based on that Feb 18 18:30:47 There are very few differences between aosp and my backport, the point was to make it easier to merge in changes Feb 18 18:31:43 But then they went and rewrote 90% of the code in either 4.0.3 or JB Feb 18 18:31:59 And since I never got around to using it anyway, I don't maintain it Feb 18 18:34:18 SimonVT, oh, i didnt realize that Feb 18 18:34:40 SimonVT, so i have my custom .so packaged in there, and gnustl whatevs Feb 18 18:35:46 that means it's just going to filter by gnustl right? Feb 18 18:35:54 lm2jb007 Feb 18 18:36:02 wrong window, sorry Feb 18 18:37:41 You have to provide all the .so's for each architecture you support afaik Feb 18 18:39:03 So again asking the same question, does anyone know a usefull approach to using the contact badge to call pn/jabber within an app? Feb 18 18:39:51 karlsve: there is the imto://jabber/user@host url scheme Feb 18 18:41:17 Hmm. Why is newKeyguardLock() deprecated in API 13 but is the only thing that works for newer than Froyo? Javadoc says to use flags instead but they don't seem to work. This fellow has got the same issue: http://stackoverflow.com/questions/12979709/android-activity-not-showing-when-screen-is-woken-up-and-lock-screen-not-disabli Feb 18 18:42:01 Quacked: b.android.com Feb 18 18:43:02 lov: there's probably a larger chance that I'm doing something wrong than that it is a bug :P Feb 18 18:45:40 any idea why this has absolutely no effect? Feb 18 18:45:40 getListView().setSelection(5); Feb 18 18:45:45 within ListActivity Feb 18 18:45:54 (doing it in onStart) Feb 18 18:46:54 spobat: are you newly starting that activity or resuming? Feb 18 18:46:54 SimonVT, i've compiled for arm, i wasnt aware i should/could compile for other arches on android Feb 18 18:47:16 karlsve, it doesn't matter, it doesn't scroll either way Feb 18 18:49:04 is it possible to define additional entry types for contacts, like for jabber or icq? Feb 18 18:51:34 spobat: Are you using an array adapter or how did you define the content of the list Feb 18 18:51:49 yeah I'm using an arrayadapter Feb 18 18:51:59 I just want the list to be scrolled to the 5th item or so Feb 18 18:52:19 because is is very annoying if you select item 31235, press the back button and then have to scroll down a minute :D Feb 18 18:53:17 karlsve, ^ Feb 18 18:53:50 spobat: weird Feb 18 18:54:18 well anyways, I have to go now, see you! Feb 18 18:54:27 spobat: not trying to make you use an other way but just out of interest does smoothScrollToPosition work? Feb 18 19:05:30 lov, i just removed an alloc in a seriously large loop and it increased by 2FPS Feb 18 19:05:33 allocs are BAD Feb 18 19:05:39 well yes. Feb 18 19:05:49 well, allocs aren't bad, but consider what you're doing behind the scenes. Feb 18 19:06:23 allocs are seriously slow Feb 18 19:06:27 is what i should say Feb 18 19:06:51 lov, ofc i was doing this alloc like 1200x per frame :D Feb 18 19:06:54 so, yah... Feb 18 19:06:56 * kaneda^ hangs head Feb 18 19:14:09 yeah, that's kind of the thing. You really want to minimize allocations, both in javaland and in C Feb 18 19:15:55 lov: any general tips on minmizing allocations when dealing with list adapters? Feb 18 19:17:30 yes, think about what you're doing before you do it. Feb 18 19:17:50 adapter already has the concept of recycling/reusing views. Feb 18 19:19:10 I did some research and utilized these tools as best I could when it came to lazy-loading images and caching views, but I still get gitter here and there.. Feb 18 19:19:55 there's an excellent I/O talk by Romain Guy about this, look it up. Feb 18 19:20:20 You can have your views actually contain a reference to the relevant items that back them, for example. Feb 18 19:21:33 That was exactly the main source I used. I worked from there and improved performance by a lot, but I think I am just cramming to much at this point Feb 18 19:22:06 yeah, it's possible you'll hit diminishing returns. Unless you really, really need to work on performance, you can always stop at a certain point. Feb 18 19:26:04 anyone developing on linux w/ Emacs? Feb 18 19:27:01 AeroNotix, yes Feb 18 19:27:17 Ologn: could you explain what your set up looks like? Feb 18 19:28:29 AeroNotix, I code that way maybe 10% of the time, I don't have that much going on in terms of fancy macros...when I do it, the Java build tends to be ant Feb 18 19:29:10 AeroNotix, so I have a build.xml and so forth for ant Feb 18 19:29:11 Right, so I'm building w/ ant at the moment, it seems the android sdk generates the ant (makefiles?) well enough Feb 18 19:29:37 AeroNotix, sure, lots of big projects use ant. Feb 18 19:30:05 Ologn: what about creating the gui's? Feb 18 19:30:48 AeroNotix, well I started programming in the old days when the Eclipse GUI piece was junk, so I got used to doing GUIs without it Feb 18 19:31:06 AeroNotix, the other thing about GUIs.... Feb 18 19:31:08 So you're writing the layouts and things manually? Feb 18 19:31:33 I'm coming from Qt where that kind of thing is practically suicidal - am I to assume the android way of writing the layout xml files is not that bad? Feb 18 19:31:59 AeroNotix, is this - http://developer.android.com/about/dashboards Feb 18 19:32:47 Ologn: interesting link but not sure why you're giving it to me Feb 18 19:32:53 50% of devices are normal hdpi, 25% are normal xhdpi...and even within normal hdpi there can be screen size and dpi variances which are important Feb 18 19:33:08 AeroNotix, because there's not a one size fits all gui Feb 18 19:33:23 for sure, actually I'm just interested in making it for my one device. Feb 18 19:33:36 hi there Feb 18 19:33:37 not interested in trying to 'make it big' or anything Feb 18 19:34:02 There is a little bit of a learning curve with xml, but then it works well Feb 18 19:34:46 Just seems a bit... verbose Feb 18 19:34:48 json > xml Feb 18 19:35:02 objects+attrs > json Feb 18 19:35:03 imho Feb 18 19:35:20 but i'm not familiar with android so I won't say for that Feb 18 19:35:21 There's a visual editor for Android with the Eclipse ADT plugin...I don't know if it works outside of Eclipse Feb 18 19:35:46 AeroNotix, that only makes sense when serialization makes sense Feb 18 19:36:03 json is javascript object notation, in other words, if you're transmitting data as keys/values, json is the fastest Feb 18 19:36:11 You mentioned json Feb 18 19:36:23 There's also free 3rd party graphic gui designers like DroidDraw Feb 18 19:36:29 Oh cool, linux? Feb 18 19:36:36 AeroNotix, yes Feb 18 19:36:43 yeahhhh it's in my repo, too Feb 18 19:37:18 Writing layouts in json sounds horrible Feb 18 19:37:31 SimonVT, writing them in XML is no pleasure either Feb 18 19:37:55 It's pretty simple Feb 18 19:37:59 The hierarchy is very clear Feb 18 19:38:03 it would be just as simple/hierarchical in json? Feb 18 19:38:41 I can only say for Qt but Qt5 is moving to JSON-like configuration for the UI Feb 18 19:38:57 XML is nasty to be editing by hand, anything which makes it easier is good imho Feb 18 19:39:18 meh, android needs something like netbeans, but better than netbeans Feb 18 19:39:21 using an IDE with auto completion makes it easier ;) Feb 18 19:39:42 kaneda^: i am pretty fine with coding in NetBeans for android :) Feb 18 19:39:51 it produces hideous code timroes Feb 18 19:39:53 its in your fkn repo??? which distro youre running? Feb 18 19:40:00 timroes, i write all my layouts by hand for this reason Feb 18 19:40:22 kaneda^: since when does netbeans have a gui builder for android? Feb 18 19:40:45 timroes, for java, generally Feb 18 19:40:54 okay Feb 18 19:40:59 haven't done that for a long long time Feb 18 19:41:01 and it generates horrible code Feb 18 19:41:12 i tend to generate something, copy the structure they made, and then write the rest Feb 18 19:41:23 with android i tried using the gui builder in eclipse adt, but it's garbage Feb 18 19:41:33 it's barely changed in the last 3 years Feb 18 19:41:46 i usualy want to use relative layouts (as long as they are available in the gui toolkit) and most Gui builders suck in relative layotus Feb 18 19:41:48 how do I observe a file descriptor (receive read/write readiness notifications)? Feb 18 19:41:59 timroes, and grid layouts, and other layouts Feb 18 19:42:10 or in general you have to do a lot by hand when telling what to align where Feb 18 19:42:46 cari: arch Feb 18 19:42:54 gui building in android is PROBABLY the biggest obstacle to actually writing android apps Feb 18 19:42:54 mhm Feb 18 19:42:55 cari: well, it's in the AUR Feb 18 19:43:10 i just dled it, its just a .jar file Feb 18 19:43:19 prefer it in my package manager Feb 18 19:43:23 a bit anal like that Feb 18 19:43:34 it's a swing app - feelsbadman Feb 18 19:43:36 yeah im impressed Feb 18 19:43:41 kaneda^: why? i think xml layouting is way nicer then doing it in code (like for swing) Feb 18 19:43:47 ambro718: the usual Java NIO features should work for that Feb 18 19:43:56 I've written this small 20 lines snippet, and facing "java.lang.OutOfMemoryError"; No errors if I comment line 15..not understanding what could go wrong with that. (ref link: http://bpaste.net/show/qJot63q1LQTZs2nWnlZW/) Feb 18 19:43:58 though ofc a shorter descriptive language (e.g. json (what I wouldn't use for layouting) or YAML) would be nice Feb 18 19:44:00 timroes, it's a big improvement over using swing components, probably Feb 18 19:44:14 tm604: thanks, will take a look Feb 18 19:44:15 but more importantly, it should have a gui builder so i dont even have to think about relative layout sizes Feb 18 19:44:37 if you don't think about your layout it will anyway be bad :P Feb 18 19:44:40 no matter how you create it Feb 18 19:45:12 meh, even if they just provided a bunch of templates, but they only provide a few Feb 18 19:45:22 i just wondering why there is still no relative "layouting" for web.. Feb 18 19:45:29 css sucks for sooo many cases Feb 18 19:45:35 Hey guys anywhere useful that I could find how to load a mp3 via a html file in the assets folder ? Feb 18 19:45:39 what? css is perfect Feb 18 19:45:47 there's nothing i cant do with css in far less time than in an android layout Feb 18 19:45:52 :D Feb 18 19:45:53 HTML+CSS Feb 18 19:46:05 wonder if you are trolling, or never tried to do anything real in css? Feb 18 19:46:14 timroes, i've written everything there is to write with css Feb 18 19:46:29 okay, i can give you a very simple layout and you tell me how to do it :) Feb 18 19:46:41 its really really simple Feb 18 19:46:51 timroes, are you familiar with position: absolute and position: relative tags? Feb 18 19:46:55 yeah Feb 18 19:46:59 all you need Feb 18 19:47:00 then i'm sure you can manage Feb 18 19:47:08 couldn't in fact Feb 18 19:47:11 I've also tried doing bitmap.recycle() but no luck :( Feb 18 19:47:20 abhinavmehta, are you trying to re-recycle a bitmap? Feb 18 19:47:26 or are you just OOM? Feb 18 19:47:32 its a cmomon problem and tehre are several hacks for it (what already shows how good css is, that you need hacks for everything) Feb 18 19:47:41 but non of the hacks fit my requirements Feb 18 19:47:46 timroes, as i said, i've never had an issue Feb 18 19:47:48 kaneda^, I'm not sure...what you meant.. Feb 18 19:47:59 abhinavmehta, out of memory exception? or null reference exception? Feb 18 19:48:12 its out of memory exception. Feb 18 19:48:29 make fewer bitmaps, or optimize them Feb 18 19:48:41 recycle is usually a last ditch effort because of a logic error Feb 18 19:49:03 I'm making some 10+ bitmaps per second.. Feb 18 19:49:11 thats the need.. Feb 18 19:49:27 abhinavmehta, whatever you're doing, it's not going to work like that Feb 18 19:49:31 why do you need to make 10 bitmaps/second? Feb 18 19:49:56 clever, I'm writing Augmented Reality app Feb 18 19:50:04 where I need to proces live cam stream.. Feb 18 19:50:13 funny, i'm doing the same thing Feb 18 19:50:15 and you cant reuse the bitmaps internaly? Feb 18 19:50:20 and I'm getting 10+ fps for sure..thats how I said Feb 18 19:50:22 and i dont use any bitmaps ;p Feb 18 19:50:28 just keep a ring of 10 or 20 and reuse them after processing Feb 18 19:50:47 kaneda^, than how you are processing? Feb 18 19:50:58 abhinavmehta, you know i'm not gonna share that ;p Feb 18 19:51:25 abhinavmehta: when your done with a Bitmap object, can you just put it into a list, and re-use it for the next captured frame? Feb 18 19:52:02 cant you just use only 2 bitmaps? one thats on screen and the 2nd thats prepared? Feb 18 19:52:03 kaneda^: http://s1.directupload.net/images/130218/oglndh9a.png should be filling the whole window height both together, and my special requirements: the both containers below must be (due to backgruond and touching issues) separated divs Feb 18 19:52:20 cari: that would be the most optimized form of the idea Feb 18 19:52:28 clever, I process the image(current one) and discard it. Feb 18 19:52:31 done withing 5 mins in relative layout, took me 8 hours trying in css till I decided NONE of the existing hacks is able to do it Feb 18 19:52:49 cari, thats a different view to solve the problem Feb 18 19:52:59 (since its pretty close to the left mebnu - right content problem there are a lot of hacks, but most of them using margin for right container so it actually overlapps the left one) Feb 18 19:53:04 timroes, easy Feb 18 19:53:13 cari, and that carries different quality costs Feb 18 19:53:21 timroes, i'd use css and one table Feb 18 19:53:23 vertical alignment? with css? life's too short for that Feb 18 19:53:36 a vertical align doesnt work so well in all browsers Feb 18 19:53:42 tm604: there wasn't even vertical alignment in that at all :D Feb 18 19:53:54 but 100% height is same horrible :D Feb 18 19:54:15 kaneda^: oh okay if we use table ofc everythign gets easy :D Feb 18 19:54:20 but thats too 90's like imho Feb 18 19:54:35 so sorry, 3rd requirement: div layouting, no su*** tables :D Feb 18 19:54:39 kaneda^, :) hmm..well asking you something, answer if you like...broadly how you are processing byte[] array ? Hope you got which byte[] I'm talking about Feb 18 19:54:57 timroes, tables are an available element to you, if you refuse to use them where they're useful you'll trap yourself in stupid logic Feb 18 19:55:26 abhinavmehta, in NV21 mode, is the short answer, and natively, is the second short answer Feb 18 19:55:35 where does adb shell get env variables for? I want to change the default shell without changing the /system/bin/sh or moving it Feb 18 19:55:42 abhinavmehta, are you following the sobel example? Feb 18 19:55:52 just use tables Feb 18 19:55:54 * AeroNotix ducks Feb 18 19:55:56 kaneda^, got you. :) Feb 18 19:56:00 can't seem to find a /etc/passwd. i'm admittedly a bit lost Feb 18 19:56:06 kaneda^, nope..not heard yet Feb 18 19:56:28 abhinavmehta, yes, processing will go much faster in native code, check out http://imrannazar.com/Augmented-Reality-with-the-Android-NDK%3a-Part-1 and part 2 Feb 18 19:56:55 i just like to keep semantic within a structural language, and tables weren't meant to used for layout but .. yeah to make tables. but i agree with a table that could be done, though again with css table layouting (display: table) it wasn't Feb 18 19:57:22 timroes, in this case a table just make sense because you want two columns and it's very obvious Feb 18 19:57:39 kaneda^, I'm doing couple of things natively...but because I'm getting this byte array in Java, and right now I'm testing how to use Android-Camera....I'm trying how to get bitmaps Feb 18 19:57:40 sometimes it's not as clear, and i agree there are always 5 or more ways to do everything, but one of them works and it works fast Feb 18 19:57:57 abhinavmehta, look at the example from imran, he goes over this in some detail Feb 18 19:58:04 okay I've looked java.nio and found Channels and Selector, but I still don't see how I could integrate the selection into the application's event loop? Feb 18 19:58:09 tm604: ^^ Feb 18 19:58:13 markovh, you need to set the login shell? Feb 18 19:58:13 he doesnt do much processing natively though, and be careful because he only uses the Y values from the YUV byte array Feb 18 19:58:29 stil would have been way easier if i could just say: div at the top-right-left anchored wrap content, 2 divs below (one left bottom one right bottom anchored) both with same weight Feb 18 19:58:31 cari: preferably yeah Feb 18 19:58:45 all I seem to have is the Selector class with a blocking select() method. Feb 18 19:58:49 timroes, as i said, it should have been easy to build this in html/css with the correct structure Feb 18 19:58:55 doesn't have to be the login shell per say. i'd settle for automatically running the shell ontop of /system/bin/sh Feb 18 19:59:34 i guess we just disagree on what "correct" structure is, since for me correct structe is the structue semanticly meant to use, and not the one you need to use due to lack of using what was actually meant to be used Feb 18 19:59:57 kaneda^, thank you so much...certainly I'll go thru this. Feb 18 19:59:57 timroes, that's funny, because tables were widely in use way before CSS Feb 18 20:00:03 abhinavmehta, no worries Feb 18 20:00:07 kaneda^, thanks once again... :) Feb 18 20:00:26 http://giveupandusetables.com/ Feb 18 20:00:30 markovh, something like export SHELL=/system/bin/bash does not work? Feb 18 20:00:56 AeroNotix: :D Feb 18 20:01:05 ambro718: not sure. I normally use a single thread+selector for any file/network I/O rather than putting it in the main UI thread/event loop. Feb 18 20:01:13 the default shell to spawn in adb shell. sure i could just do /system/bin/bash by itself and that would work Feb 18 20:01:34 hi, i try to browse on my emu;lated nexus on AVD, but for some reason after visiting a few pages, the connection is stuck Feb 18 20:01:36 tm604: that's just good gui practice Feb 18 20:01:48 env variables is perhaps the wrong thing to ask about, technically it's set by the shell, the env variable set by you doesn't affect your shell (if you can even set it) Feb 18 20:01:50 tm604: for anything Feb 18 20:01:53 any ideas what can be wrong Feb 18 20:02:02 tm604: the original problem is that I have native code running its own event loop in its own thread, and I want it to send events to the application event loop Feb 18 20:02:49 ambro718: http://developer.android.com/reference/android/os/Looper.html ? Feb 18 20:02:52 as a guess Feb 18 20:03:09 I taught I could use a pipe, but that would only work if there was a way to monitor the read end of the pipe from the application event loop Feb 18 20:03:18 what sort of events? would something like handler.post/intents or maybe otto work for that? Feb 18 20:05:06 tm604: nothing special, stuff like "there was an error with the service I'm providing", "this stage of the service has completed, next stage begins" Feb 18 20:06:58 I've looked at Handler, and it seems to be the right way. But how do I send a message from native code? Feb 18 20:07:09 (C) Feb 18 20:08:11 use JNI functions to call Handler.post() I suppose? This seems dirty, is there no way to do it with less JNI? Feb 18 20:09:55 you could try the wrappers from https://code.google.com/p/himmele/source/browse/trunk/Google%20Android Feb 18 20:10:20 they were under the "Android Messaging" section, I think. Feb 18 20:10:31 where do I get the Handler object corresponding to the application's event loop? Feb 18 20:10:51 ambro718: you can create a new Handler, calling the constructor on the main thread Feb 18 20:11:02 ambro718: it will automaticaly find the right event loop for the current thread Feb 18 20:11:30 clever: I see, thanks, looks like it'll work Feb 18 20:13:15 i create a Handler within onCreate() and just keep it for the whole activity Feb 18 20:19:49 markovh, On android there are no passwd/group files at all. passwd and group structs are created on the fly from hardcoded values (for system ids) or from file uids/gids for installed apps Feb 18 20:20:20 http://lists.busybox.net/pipermail/busybox/2011-March/075112.html Feb 18 20:20:45 is "if (object)" equivalent to "if (object != null)" ? Feb 18 20:20:57 no Feb 18 20:21:08 what does the former to then? Feb 18 20:21:14 compile error Feb 18 20:21:19 lol Feb 18 20:21:29 lol Feb 18 20:21:40 it works all right in C :P Feb 18 20:21:52 ambro718, NULL is a macro in C that usually is 0x00 Feb 18 20:21:56 that's why this works Feb 18 20:22:01 this might come as a shock to you but java is not C Feb 18 20:22:08 maraz, NOOOOOOOOOOOOOOOOOOOOOOO Feb 18 20:22:12 * kaneda^ assplodes Feb 18 20:24:49 kaneda^: yes it works in "if (expression)" the test "expression != 0" is made (per standard), and 0 is a null pointer constant. Something like that :) Feb 18 20:25:03 yes Feb 18 20:25:20 something like that Feb 18 20:27:10 exactly like that Feb 18 20:27:58 ambro718: you have to explicitly check for null with Java. Another thing to note is that == WILL NOT call the .equals method, but will instead compare reference values. Feb 18 20:28:18 thus, you must always use .equals on objects, unless you're actually trying to see if they're the exact same instance. Feb 18 20:28:32 yes I know that already :) Feb 18 20:28:33 unless you're checking against NULL Feb 18 20:28:40 in which case all unintialized objects will be NULL Feb 18 20:28:46 and ofc anything you explicitly set to NULL Feb 18 20:29:07 its getting nerdy.. Feb 18 20:29:20 unitialized primitives have default values too in java! Feb 18 20:29:23 * cari hides Feb 18 20:29:28 * kaneda^ nerds all over cari Feb 18 20:29:33 * cari runs Feb 18 20:30:03 * kaneda^ nerd-traps cari Feb 18 20:30:03 so if I get a file descriptor by calling detachFd() on a ParcelFileDescriptor, how do I close it from Java? The only thing that I've taught of is: ParcelFileDescriptor parcel_fd = new ParcelFileDescriptor(); parcel_fd.adoptFd(fd); parcel_fd.close(); Feb 18 20:30:18 what's wrong with that ambro718? Feb 18 20:30:36 it's 3 lines to essentially call close(fd) :) Feb 18 20:30:45 welcome to java. Feb 18 20:30:49 ^^ Feb 18 20:30:53 Also, FDs tend to be a last resort Feb 18 20:30:59 you generally won't actually use them Feb 18 20:31:04 you'll use streams instead Feb 18 20:31:18 this is the fd from a VpnService, and my native code only works with fds Feb 18 20:31:29 well, there's no real way around it then. Feb 18 20:31:32 Just man up and write 3 lines. Feb 18 20:32:10 lol Feb 18 20:34:54 Is there any way I can clear the browser cache of the stock android browser? Feb 18 20:35:09 In my own application ofcourse.. :D Feb 18 20:35:33 if I have a class A and a non-static nested class B, then given an instance of B, how do I get its parent instance A? Feb 18 20:36:19 b.parent(); Feb 18 20:36:26 nice, thanks :) Feb 18 20:36:29 jk Feb 18 20:36:43 ;p Feb 18 20:36:51 ambro718: A.this Feb 18 20:36:53 ambro718, with a nested inner class you can reference the parent like A.this Feb 18 20:37:16 and any non-private members of the parent class Feb 18 20:37:19 kaneda^: b.parent() doesn't work Feb 18 20:37:28 ambro718, i'm aware, read lov/my after-post Feb 18 20:37:30 yo need to access A from B? Feb 18 20:38:41 what about super. ? Feb 18 20:38:57 super is for the class that this class EXTENDS Feb 18 20:39:18 oh well i didnt read careful enough Feb 18 20:39:20 e.g., class Foo { foo() {} } <-- new Foo().super() <-- is of type object Feb 18 20:40:28 I still don't get it, if "b" is an instance of B, how do I do it? I tried "b.A.this", no go. Feb 18 20:40:59 is it even possible? Feb 18 20:40:59 it thinks that b is a package or something Feb 18 20:41:38 if it isn't possible, what use do non-static nested classes have? Feb 18 20:42:03 just A.this Feb 18 20:42:07 this is a static reference Feb 18 20:42:34 b.A has no meaning, as there is no member A in b Feb 18 20:42:39 kaneda^: but I need to do it from 'a', I have multiple 'a's Feb 18 20:42:54 I'm not in the scope of B Feb 18 20:42:59 then what you said makes little sense Feb 18 20:43:06 it sounds like you've created a diamond architecture, a big nono Feb 18 20:44:35 I keep a list of Bs, from possibly different As, then I need to iterate this list and call a function() on the associated As Feb 18 20:45:05 you can of course store a reference to a in b with a function of b Feb 18 20:45:12 if i understand correctly Feb 18 20:45:15 yes, ofc this most liekly means you're doing it wrong Feb 18 20:45:39 inner classes are rarely useful, btw Feb 18 20:45:54 now ANONYMOUS inner classes are used all the time Feb 18 20:46:03 but I was using nested classes to that I wouldn't have to do that, my understanding is that nested classes keep an implicit reference to a parent class, which I find rather convenient Feb 18 20:46:22 ambro718, they do, and in the function of b you can say "A.this.aFunction()" Feb 18 20:46:37 agai, this is a STATIC reference Feb 18 20:46:40 i'll let you work that out Feb 18 20:47:03 but there is no way to do it if you're not in the scope of B? Feb 18 20:47:10 other then writing a helper function inside B Feb 18 20:47:16 wha? Feb 18 20:47:34 ambro718, it sounds ilke you havent thought this through properly Feb 18 20:48:26 you've created a list of B (a nested inner class of A) and what you really want is A to begin with Feb 18 20:50:41 events/delegates are the only reason to have an inner class i think Feb 18 20:50:46 however that plays out in your specific context Feb 18 20:52:58 okay I've explain my problems here http://ideone.com/v1fmqI Feb 18 20:53:22 I just want to know if it's possible, please don't question my design. Feb 18 20:55:35 ambro718, that's like asking if a single hinge on a door of your house is good but asking us to ignore the electricals dangling out from the doorbell Feb 18 20:55:47 exactly Feb 18 20:56:05 ambro718, and your electricals are shit, you need to read the oracle java 6 course work again Feb 18 20:56:16 my question is about how the language works and what I can do with it Feb 18 20:56:27 ambro718, buy a book? Feb 18 20:57:34 okay I found this http://stackoverflow.com/questions/339245/two-questions-on-inner-classes-in-java-class-a-class-b Feb 18 20:58:22 lol, (A)b.getClass().getDeclaredField("this$0").get(b); Feb 18 20:58:27 ambro718, seriously, this is all stuff you can find in any java5+ text book Feb 18 20:59:04 I don't read text books on languages, lol. Feb 18 20:59:19 ambro718, which is why you are a substandard programmer Feb 18 20:59:41 you cannot possibly know how good of a programmer I am Feb 18 20:59:52 it's very, very clear from your lack of understanding of java Feb 18 21:00:13 anyway sorry about this, it's kind of off-topic, should have Googled more first :) Feb 18 21:00:34 Is there any way I can clear the browser cache of the stock android browser? Feb 18 21:01:53 who in here has experience with simple_list_item2 and parsing web data with jsoup (link name, link description) ? Feb 18 21:06:12 okay back to that file descriptor closing problem, turns out I can't do it via ParcelFileDescriptor because there is no constructor for ParcelFileDescriptor Feb 18 21:06:46 oh wait there's a static fromFd() Feb 18 21:06:48 which means that it's part of some factory class taht should instantiate you one Feb 18 21:07:03 or grab you an instantiated one, depending Feb 18 21:12:37 So I got to here:http://developer.android.com/training/basics/firstapp/running-app.html .. and I am a bit lost.. I had to copy the .android to my user profile just to get the AVD running though so if the ADT is supposed to publish my app to the currently running AVD then it might be a path issue? Feb 18 21:13:10 Er.. Sorry I should add I see nothing when I "Run As" -> "Android Application" Feb 18 21:13:51 JFranks: have you installed all the eclipse plugins? Feb 18 21:14:21 Everything in the list was marked as 'installed' but I had two 'failed to connect' errors during the install Feb 18 21:17:22 bankai_: oh man... yeah when I installed the firewall blocked some updates.. working it.. Feb 18 21:18:08 lol Feb 18 21:18:23 JFranks, you could use eclipse adt from google Feb 18 21:18:35 Yeah, just download the ADT bundle Feb 18 21:18:46 i actually had eclipse installed before with CDT and all that Feb 18 21:18:52 and it was MUCH less work just to grab the ADT bundle Feb 18 21:21:28 Yeah.. sure is a slow goat. Feb 18 21:21:42 There's a bundle with everything included? Feb 18 21:22:25 Ooops I checked off the documentation.. :p Feb 18 21:23:24 JFranks: note that the SDK Manager will NOT download the ADT. You have to install the ADT from within eclipse's "install new software" dialog. Feb 18 21:24:33 anyone know the best way to test sending an email with attachment on the 4.2 emu? Seems like they don't bundle the old email app any more. Feb 18 21:25:55 FINE Feb 18 21:26:04 I'll install the damned Eclipse Feb 18 21:26:06 jesus Feb 18 21:26:52 adt-bundle-windows-x86_64 was what I started with .. but during the install it couldn't get updates so it did the default install and seemed to be all good, other than the AVD running far too slow and no response to the 'run as' selection.. ;) Feb 18 21:27:08 and you have 64-bit windows? Feb 18 21:27:16 Yeah? Feb 18 21:28:06 and your networking/host file isn't f-e dup? Feb 18 21:28:08 I shouldn't seem curious about that question.. Where I live it's odd not to have 64bit.. RAM prices are so low in my country. ;) Feb 18 21:28:31 JFranks, you'd be surprised how many people ignore the 64-bit portion and just assume their machine is capable Feb 18 21:29:10 Well I had a software firewall silently stop the update when I loaded the SDK, I since noticed that and now I've got the updates/extras installed. ;) Feb 18 21:29:24 which country are you from? Feb 18 21:29:29 why nobody asks?? Feb 18 21:29:32 AeroNotix: twisted your arm I see. Feb 18 21:29:33 KANADA :) Feb 18 21:29:37 yeah! Feb 18 21:29:37 Because nobody cares Feb 18 21:29:39 JFranks, yah, you'll probably need to allow it in your firewall settings Feb 18 21:29:42 about what? Feb 18 21:29:44 No Feb 18 21:29:50 and how much is 4GB ram there? Feb 18 21:30:14 lov: no you didn't but trying to get a decent environment for making android apps without the bloated POS systems you bloatmeisters use is an excercise in pain Feb 18 21:30:39 us bloatmeisters you say Feb 18 21:30:43 YOU Feb 18 21:30:46 specifically YOU Feb 18 21:30:49 oh Feb 18 21:30:50 cari: $30 for 4GB DDR3 Feb 18 21:30:53 well its true, I do use eclipse. Feb 18 21:30:57 lov: SEE Feb 18 21:31:03 lov: you use eclipse :O Feb 18 21:31:05 thats ok. its 20¤ here in germany Feb 18 21:31:06 anyway, what's wrong with your current setup? Feb 18 21:31:13 hi, i'm kaneda, and i use eclipse Feb 18 21:31:17 hi kaneda^. Feb 18 21:31:20 i'm a PC Feb 18 21:31:29 and I'm out of memory. Feb 18 21:31:32 How many ¤ in a $ ? :) Feb 18 21:31:33 how much is ram in kaneda^ ? Feb 18 21:31:34 and I'm out of beer Feb 18 21:31:41 cari, cheap cheap cheap, hot hot hot Feb 18 21:31:53 AeroNotix: seriously, though, I'm the defacto build engineer for my team. What's wrong with your setup? Feb 18 21:32:02 20 ¤ = 26.7854372 Canadian dollars Feb 18 21:32:35 well but who needs more than 8gb ram, if he doesnt render movies Feb 18 21:32:41 lov: there's nothing out of the box for creating ui's. DroidDraw literally doesn't work, no debug output but I can't click shit. All tutorials/guides/exercises are geared towards IDE-based workflows Feb 18 21:32:42 i have 4GB, plenty for now Feb 18 21:32:52 or use cubase with a ridiculous bitrate Feb 18 21:34:01 hm i think 4gb would be too few for me.. i dont want to close my firefox/chrome and my development shit when i play team fortress in a break Feb 18 21:34:12 wow, even Bill G thinks MS is screwing up Feb 18 21:34:20 cari, if you run a good OS you shouldnt have to Feb 18 21:34:46 i have ff, photoshop, thunderbird, xchat, skype, vmware workstation (with a nix VM running, with eclipse, firefox, inside) Feb 18 21:34:51 i run ubuntu 64bit, but steam has its own mini-distro running inside it when you play steam games:D Feb 18 21:34:57 hi Feb 18 21:35:02 kaneda^: and what os? Feb 18 21:35:05 i'm at 70% RAM Feb 18 21:35:25 AeroNotix, win7, and debian (well, ubuntu, but heavily stripped with the same libs as debian squeeze) Feb 18 21:35:34 yeah and now try starting starcraft 2, that uses 1,5gb alone Feb 18 21:35:34 kaneda^: which one is the host.......... Feb 18 21:35:45 AeroNotix, win7, i just said i'm running vmware workstation Feb 18 21:35:46 vmware tech is mostly windows Feb 18 21:36:12 oracle somes shipped running on win in a vmware installed on linux Feb 18 21:36:26 *comes Feb 18 21:36:28 cari, good look using vsphere... Feb 18 21:36:33 s/look/luck Feb 18 21:37:15 i think these people that run windows in a vmware to run a database in it are completely nuts Feb 18 21:37:32 but but.... but... Java but but..... CORPORATE? Feb 18 21:37:35 it sounds...insane Feb 18 21:38:12 i have a win7 host, but most of my servers are headless debian installs, and my two vms are my ubuntu dev machine and my bt5 hack attack Feb 18 21:38:39 its called oracle virtualbox and they really sell this shit Feb 18 21:38:44 http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html#vbox Feb 18 21:39:01 or wait, perhaps im messing things up Feb 18 21:39:05 * AeroNotix yawns Feb 18 21:39:13 no i dont Feb 18 21:39:31 its really that sad Feb 18 21:39:45 vitualbox is pretty nice though cari Feb 18 21:39:55 i prefer vmware because i have an ESXi server at work Feb 18 21:40:17 yeah it has nearly the performance as a native os Feb 18 21:40:35 *cough* gpu *cough* Feb 18 21:40:39 excuse me Feb 18 21:41:00 I am developping an Android app, and i have a problem with a listview Feb 18 21:41:13 i have searched through the web but I found nothing Feb 18 21:41:17 i like letting other people buy things that are nearly as good as mine;-) Feb 18 21:41:37 you have come to the right place Worlor Feb 18 21:41:53 cari, vmware esxi is probably the BEST solution i've ever used Feb 18 21:41:53 When I scroll into the listview, when i release my finger, the list didn't scroll himself Feb 18 21:42:02 lets add to your list of no results:D Feb 18 21:42:11 haha cari ^^ Feb 18 21:42:18 it allows you a ton of flexibility, virtualized hardware, passthrough, specific core virtualization, specific memory usage Feb 18 21:42:21 yeah kaneda^ you're right Feb 18 21:42:27 (it's hard to me to explain, my english is not very good, i'm french) Feb 18 21:43:17 AeroNotix: yeah, the layout GUI editor lives within eclipse. Apparently, there's a version of it in IDEA as well, you might want to pick up IDEA if you're not keen on Eclipse due to BLOAT and ZOMG. Feb 18 21:43:18 but does it really make sense to run a virtual machine just for 1 server-application that even exists native on the host os? Feb 18 21:43:50 you know this effect in a list, when you scroll rapidly and release finger, the list continue scrolling Feb 18 21:43:51 lov: I just downloaded 500 gajillion gigabits to use Eclipse so I'll stick with my choice Feb 18 21:43:59 in my app, this not happen Feb 18 21:44:11 is there a xml attribute to put ? Feb 18 21:44:13 fair enough. Feb 18 21:44:37 oh i get what you mean Worlor Feb 18 21:44:56 but i cant help you, im not a genius like others here Feb 18 21:45:21 haha Feb 18 21:45:35 * Worlor go take a rope Feb 18 21:45:51 you want the scroll velocity to be preserved when you release the finger Feb 18 21:45:56 yeah Feb 18 21:46:06 like in settings for example Feb 18 21:46:12 cari, definitely not Feb 18 21:46:28 virtualization is only for machines that need to run more than one OS for whatever reason Feb 18 21:46:44 it's not there to put a bandaid on the fingers of windows users Feb 18 21:46:48 yes for this its unbeatable Feb 18 21:47:22 for a vserver provider its heaven Feb 18 21:48:12 Well I finally have ADT launching the AVD! Feb 18 21:48:29 jesus I need a drink Feb 18 21:48:45 Brother is it SLOW.. What happened to all those performance plugins I just updated/installed?! ;) Feb 18 21:48:47 this wine is my blood Feb 18 21:49:26 worlor try this: http://stackoverflow.com/questions/14457697/android-listview-scroll-behavior-scroll-on-fast-fling-move-otherwise-not Feb 18 21:50:01 thanks cari Feb 18 21:50:20 or perhaps this: http://stackoverflow.com/questions/7895504/how-to-get-the-scroll-speed-on-a-listview Feb 18 21:50:28 1st was the wrong link Feb 18 21:50:45 hum Feb 18 21:50:58 i need to set a scrolllistener for this Feb 18 21:51:10 it's not included in the listview widget ? Feb 18 21:51:56 i guess not, but thats only for reading the scrollspeed Feb 18 21:52:39 ffs - I already installed the damned AVD's in the android-sdk and now Eclipse needs them.... Feb 18 21:52:43 you can also try this approach: http://developer.android.com/training/improving-layouts/smooth-scrolling.html Feb 18 21:52:56 yeah i see that Feb 18 21:53:18 I have already see this article Feb 18 21:53:35 But it's for dynamic list Feb 18 21:54:30 my list is just an array of string Feb 18 21:55:24 Eclipse's butt-plugin service Feb 18 21:56:17 Worlor, does this help you? http://stackoverflow.com/questions/9802221/how-to-add-ontouchlistener-to-listview-items Feb 18 21:56:34 Hi friends Feb 18 21:56:43 what funny things does android to while manipulating numbers Feb 18 21:57:03 Belacan: they don't think it be like it is but it do Feb 18 21:57:15 what funny things does android to whale manipulating numbers Feb 18 21:57:18 fyp Feb 18 21:57:53 well Feb 18 21:57:58 cari : I use an ArrayList adapter for my listview so it's not helping me Feb 18 21:58:00 heres an example of something funny it did Feb 18 21:58:08 but I think i have found what i need Feb 18 21:58:22 Hmmm ... Why does the ADT keep restricting my window space to roughly QVGA resolution.. Editing .xml in a little tiny window SUCKS! Feb 18 21:58:24 what did you find? im curious Feb 18 21:58:28 http://developer.android.com/reference/android/widget/ScrollView.html#setSmoothScrollingEnabled%28boolean%29 Feb 18 21:58:51 JFranks: did you just insult The One True Java Way? Feb 18 21:59:01 i put in, 80*1000/3600 and it returned 22.0 when the answer should be 22.2222222222.. i immediately realised this was because i was using integers on the right even though the data type was double, when i converted them to double the value came out right Feb 18 21:59:06 im wondering if theres anything else like this Feb 18 21:59:07 gl then^^ Feb 18 21:59:38 AeroNotix: Not really.. I'm just wondering how I buggered up this application's window view-port sizes. ;) Feb 18 22:00:07 I think my listview don't have the smoothscroll enabled cause I use an other class extended from listview Feb 18 22:00:28 I need to implement this in it Feb 18 22:01:08 ok i will work on it Feb 18 22:01:14 Thanks for your help cari Feb 18 22:01:47 well i guess it wasnt very helpful, glad you found it out on your own^^ Feb 18 22:02:08 still im hungry now Feb 18 22:02:17 I was not searching with the good word Feb 18 22:02:32 i have see scroll inertia in one of your link Feb 18 22:02:50 and the search was more efficient ^^ Feb 18 22:03:15 -was +become Feb 18 22:03:57 :-) Feb 18 22:04:00 Seriously.. I can't seem to fix this.. tempted to nuke some .ini files? http://i.imgur.com/pdxQkKH.jpg Feb 18 22:04:07 3 eyes see more than 2 Feb 18 22:04:56 ah i see the problem Feb 18 22:05:01 you're using eclipse Feb 18 22:05:11 osxorgate: exactly Feb 18 22:05:12 where can I find the styles used for the holo theme of AlertDialog? Feb 18 22:06:01 Me? There's something far better than what Google has foisted on me? Feb 18 22:07:02 Holo requires build 11 and I need build 10, so I want to style my AlertDialog to look like Holo. But I don't want to bother with the HoloEverywhere library Feb 18 22:07:50 what do people do when they need to test their app on lots of devices? just ask about? Feb 18 22:08:28 do any of you guys have a board which works with AOA or bluetooth? Feb 18 22:09:23 Notepad++ is doing a good job of the .xml editing.. but what a hinkey fix. ;) Feb 18 22:09:42 I was taking a look at the IOIO board Feb 18 22:10:48 hi Feb 18 22:11:01 Can anyone help me with gridview/image recycling pleae? Feb 18 22:11:36 lol Feb 18 22:11:56 deja vu Feb 18 22:13:14 rgvneil, try to be a bit more precise with your questions Feb 18 22:13:23 Of course Feb 18 22:13:30 meta questions wont get answered in the net Feb 18 22:13:35 my apologies Feb 18 22:13:43 whats the practical difference between a double and a Double? Feb 18 22:13:51 I'm just giving an intro and searching for the url, and a "sure, i'm mildly interested in that" type response, my bad Feb 18 22:16:04 OK http://pastebin.com/G46X9Z03 Feb 18 22:18:10 @cari - http://pastebin.com/G46X9Z03 - Here is my situation: i have 3 pictures in my gallery. When I load the app it loads 3 as expected, when i click select it creates a 4th image view a copy of one of them - then plays nice after that Feb 18 22:18:43 hm Feb 18 22:20:13 trying to understand, 1 sec Feb 18 22:20:23 but im not too good with this Feb 18 22:21:35 On a separate but related note - http://pastebin.com/cnjsppQ3 lets me, from the galley click on a pic and click "share" and share to my app - but it doe snot let me click on multiple pics and share to my app (the option simply doesn't show up anymore) Feb 18 22:21:47 Does anyone know how to add your app to choices from multiple image share? Feb 18 22:22:33 Heh heh snot Feb 18 22:22:44 Hello, is it true that to install an apk on a device via usb that the apk must be signed? Feb 18 22:23:34 @spuz - in my experience, installing an api to a device "just works" with eclipse, although yes, it's with a development certificate/signature that eclipse comes with, but when you have a device plugged in, right click run as on your device plugged in with usb should work Feb 18 22:23:52 although it is not best practice of course to leave it like that in production Feb 18 22:23:56 Belacan, a Double can have no value, a double must have a value Feb 18 22:24:09 indeed Feb 18 22:24:16 rgvneil, unfortunately, I'm not using Eclipse Feb 18 22:24:18 @cari - ok, thanks, I appreciate the attempt. Feb 18 22:24:30 Double = object, objects are null until initialized, double = primitive, primitives have default values until unitialized (0.0 in the case of double) Feb 18 22:24:33 im still eating and trying to understand Feb 18 22:24:47 but im not as gifted as others here Feb 18 22:25:21 @spuz - what are you using? why not use eclipse? the fine folks at Google just recently packaged up ADT as an eclipse bundle that "just works" immediately in a 5 minute or less download, I would highly recommend it Feb 18 22:25:36 rgvneil, I'm using IntelliJ Feb 18 22:25:52 intellij is nice Feb 18 22:26:05 with a download link on the right Feb 18 22:26:06 http://developer.android.com/sdk/index.html Feb 18 22:26:09 it's VERY easy to grab the ADT bundle though Feb 18 22:26:23 I can't say I've tried it, but it seems unlikely... I know it doesn't have to be signed by an "official" key if you install from an sd card or even mail it through the gmail app. Feb 18 22:26:37 So I don't really see why direct usb install would be an exception. Feb 18 22:26:40 maybe you have 4 images from the start and the select-click just updates the view? Feb 18 22:26:40 I ask the question because I used to deploy my app over USB using adb install and it would just work - I can't remember how I built the apk though or whether or not it was signed Feb 18 22:27:01 that's why I'm wondering whether there is a new requirement of adb that your apks are always signed or not Feb 18 22:27:05 spuz, ./adb install /path/to/apk Feb 18 22:27:07 @spuz/@kaneda - I thought seriously about checking out intellij, i think it even has features i think i might care about - but I figure it's always going to be a bit behind in terms of plugin/latest adt compatibility, etc Feb 18 22:27:17 spuz, ./adb uninstall com.example.furtherpackage Feb 18 22:27:38 rgvneil, ive used it and it's nice, but you cant beat grabbing ADT and having it work right away Feb 18 22:27:39 no wat that cant be Feb 18 22:27:50 so does anyone have any idea how i can share multiple pics to my app? Feb 18 22:28:11 rgvneil, yes you are probably right but I already switched from Eclipse to IntelliJ for my normal Java dev (which is well worth it IMO) so I figured I would try it out with Andriod dev too Feb 18 22:28:25 @kaneda - I agree, I just setup a new box for android development at a new job, and boy was i happy to do that, the only thing that would've been cooler was if it had mylyn/svn/git already installed Feb 18 22:28:41 kaneda^, that is the command I'm running but I get "Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]" Feb 18 22:28:57 rgvneil, you can have it installed if you do a net install and select the right packages ;p Feb 18 22:29:16 spuz, did you export to apk with a valid key signer? Feb 18 22:29:30 kaneda^, I don't know Feb 18 22:29:37 I just ran ant release Feb 18 22:29:40 spuz, it's telling you you didnt sign the APK Feb 18 22:29:51 rgvneil, http://stackoverflow.com/questions/3058922/select-multiple-images-using-galleryview Feb 18 22:29:54 I can't remember ever having to sign apks are not Feb 18 22:29:58 that's why I'm asking the question Feb 18 22:30:11 spuz, i've always had to sign APKs unless running through ecilpse directly, in which case it gives it a dummy signature i believe Feb 18 22:30:21 hehe. yeah, it wasn't too bad Feb 18 22:30:28 ok interesting Feb 18 22:30:37 rgvneil, and another solution: http://stackoverflow.com/questions/9379579/select-multiple-images-in-android-gallery Feb 18 22:31:56 and back to the first problem: Feb 18 22:32:01 line 14 Feb 18 22:32:02 Actually I remember now the apk was always built whenever running in the emulator - whenever I deployed to my phone I would first run the app in the emulator and then run adb install - I guess Eclipse must have signed the apk for me Feb 18 22:32:12 MediaStore.Images.Thumbnails.IMAGE_ID Feb 18 22:32:25 spuz, i believe it signs it for you Feb 18 22:32:48 when you do an actual export it asks for a keystore and the keystore pass, signing it properly Feb 18 22:33:48 kaneda^, ant complains with "No key.store and key.alias properties found in build.properties" Feb 18 22:34:01 do you know what I should enter for those properties? Feb 18 22:34:18 odds are the location of the keystore and the alias you used :D Feb 18 22:34:30 e.g., a keystore may contian multiple keys under various aliases Feb 18 22:40:43 kaneda^, why do I have to enter three different passwords... it's crazy Feb 18 22:41:06 spuz, one is the keystore password, the other is the alias password, that's it Feb 18 22:41:46 When I try to import ActionbarSherlock and find the directory of the library in Eclipse, the Next and Finish buttons are greyed out. Any ideas? Feb 18 22:43:15 kaneda^, there's also a master password that IntelliJ asks for - maybe that's so that it can store my password in its own key store... :/ Feb 18 22:44:19 anyway my app is deployed and working - woo :) Feb 18 22:45:15 thanks for your help kaneda^ and rgvneil Feb 18 22:48:11 @cari - what is your nick short for? Feb 18 22:48:19 @spuz - cool Feb 18 22:48:41 @cari - thanks for the links, i'll check those out, i had to listen to my boss awhile Feb 18 22:51:49 I have a string in strings.xml which ends with a space, but at runtime, when I retrieve the string, the space is removed Feb 18 22:52:00 what's the proper way to leave the space at the end? Feb 18 22:53:11 heh, I should seriously invest in a rubber duck, the answer dawned on me while asking the question Feb 18 22:53:45 rgvneil, carinio Feb 18 22:54:04 a former gf used to call me that:-/ Feb 18 23:00:16 what's really bizarre is that my wife is "carina" and sometimes that's her nickname Feb 18 23:00:20 Feb 18 23:01:19 @AlCapwn - how about define it hardcoded and then extract it with android-refactoring to a string in strings.xml Feb 18 23:01:35 e.g. it's something similar to > for greater than,   for space, etc probably Feb 18 23:02:49 @alCapwn- oops, didn't' see your 'my bad ' response Feb 18 23:03:05 rgvneil: the solution was to use \u0020 - the unicode for space Feb 18 23:08:48 @cari - thanks for the links, not sure how i missed them Feb 18 23:10:13 So really.. They tried to make Android app dev so easy that the default tools make it hard for a programmer to learn things? (If you're using Eclipse this was probably already done for you, so you probably have no clue what happened or why..) Feb 18 23:15:51 @cari - i think this is going to save me big time, my boss didn't' like my estimates or my suggestion to go one pic at a time Feb 18 23:17:22 ^^ yc Feb 18 23:17:26 *yw Feb 18 23:17:31 Hi Feb 18 23:17:33 glad i was of some help Feb 18 23:18:44 omg Feb 18 23:19:04 and i missed your comment about your wifes name Feb 18 23:19:13 t Feb 18 23:19:29 well many (mostly young) people tend to address me as female Feb 18 23:20:02 some funny things happened in the past because of that Feb 18 23:20:41 people talked to me for hours and hours, i really wondered why they're so talkatve Feb 18 23:21:24 only to notice later they were thinking that im a hot babe Feb 18 23:21:39 and im surely _no_ hot babe^^ Feb 18 23:22:02 no barbie, no ken Feb 18 23:28:06 test Feb 18 23:29:09 hello! anyone here with a rooted older Android phone (ARMv6)? Feb 18 23:31:46 I'm looking for some Android libs compiled for ARMv6 Feb 18 23:35:46 So, if I nees to fill a char array but I dont know the end size what do I use? Feb 18 23:35:52 *need Feb 18 23:36:55 Use a string builder and textutils#getChars Feb 18 23:37:08 Cant Feb 18 23:37:15 Can only use char Feb 18 23:38:03 Do you need to convert a char sequence to a char array, you need to explain a bit more Feb 18 23:38:23 InputStream->Reader->char buffer Feb 18 23:38:40 Fetching a webpage Feb 18 23:39:56 Yup. Feb 18 23:40:44 Why not do a read loop, append the contents to a string builder and then use textutils#getChars? Feb 18 23:41:18 I am doing a loop. Feb 18 23:41:45 Looping reader.read(charbuffer) Feb 18 23:43:02 But the charbuffer has a predefined size Feb 18 23:43:10 Any ideas why my HoloEverywhere library says: Could not find artifact org.holoeverywhere:resbuilder:pom:1.4.3-SNAPSHOT Feb 18 23:43:35 hi, i try to browse on my emu;lated nexus on AVD, but for some reason after visiting a few pages, the connection is stuck Feb 18 23:43:38 any ideas what can be wrong Feb 18 23:44:33 diki: The buffer has. Just write the contents of the buffer into something else, like AlCapwn suggested. Feb 18 23:45:48 I do suppose that a packet cant be more than 65k bytes Feb 18 23:46:39 So then read some data in that buffer, then from there write to stringbuilder and empty the char buffer? Feb 18 23:47:15 Can you pastebin your current code? Feb 18 23:47:47 Sure, but as I am coding on my phone and dont have tabs it will be ugly Feb 18 23:49:12 pastebin.com/S88EWyqJ Feb 18 23:51:25 Any ideas how come after visting a few sites in the AVD Manager emulator the internet connection breaks? Feb 18 23:51:33 "Webpage not available" Feb 18 23:51:40 There is nothing wrong with my internet DSL Feb 18 23:51:52 It's just in the VM Feb 18 23:53:28 diki: You can write it to an OutputStream or anything, really. You know the read size, so you can do something like "myStringBuilder.append(buffer, 0, n);" Feb 18 23:54:39 Right, but I'd still need to reset the char buffer Feb 18 23:55:59 Not really, no Feb 18 23:56:26 Well, the reader appends to the char buffer Feb 18 23:56:44 So in the end it will write into unallocated space Feb 18 23:57:19 Read the doc for .read() Feb 18 23:58:27 https://developer.android.com/reference/java/io/Reader.html#read%28char[]%29 Feb 18 23:58:33 Since you're on your mobile Feb 18 23:59:56 Hmm, at offset 0. I see. Feb 19 00:00:58 There should be plenty examples available online. Feb 19 00:03:58 Depending on what you want to do, there are very convenient libraries to do these kind of things, though. Feb 19 00:04:15 If you ever get tired of doing that manually :) Feb 19 00:04:45 hey y'all Feb 19 00:05:42 I have an imageview that has a background made up of a element Feb 19 00:05:49 how do I invoke that animation? Feb 19 00:06:47 kakazza: yeah, but libraries equal larger code Feb 19 00:07:12 In C for example I had an app using 3-4 libraries Feb 19 00:07:30 Libxml2, pthreads,curl,htmltidy Feb 19 00:08:01 wow this androvm works pretty good Feb 19 00:08:26 In another it is pthreads,pdcurses and the amd adl library Feb 19 00:10:26 diki: Sometimes, 20KB more in your apk (less when using proguard) are worth the saved work. Feb 19 00:10:47 so I copied a lot of the Camera app's code into my app Feb 19 00:11:09 I currently have an Activity that launces the VideoCamera, and shows the controls plus a black screen Feb 19 00:11:19 if I minimize the app, the screen is transparent Feb 19 00:11:34 indicating that GLSurfaceView is there, but not drawing anything... my guess at least Feb 19 00:11:40 kakazza: I am going to parse html with jsoup Feb 19 00:11:47 however, logs show that the Camera is open and working Feb 19 00:11:50 It alone made my app 400kb bigger Feb 19 00:11:56 in fact, if I hit the record button, it actually records video Feb 19 00:12:00 but I can't see the preview Feb 19 00:12:10 I see. If you ever want to give it a shot, here: https://github.com/kevinsawicki/http-request#examples Feb 19 00:12:45 And it probably won't be 400KB after proguard. Feb 19 00:14:08 Looks convenient. Feb 19 00:14:32 What would the difference between urlconnection amd httpclient be? Feb 19 00:14:36 *and Feb 19 00:16:24 iirc, URLConnection is from the standard Java API and HTTPClient from Apache Commons Feb 19 00:16:33 function wise, I don't remember exactly. Feb 19 00:17:36 Well, I overcame one hurdle but now... Feb 19 00:18:03 Since I am using a reader I cannot use gzipinpustream for gzip pages Feb 19 00:18:50 Although...with some ugly if/else statements..it can work probably Feb 19 00:18:54 I only recently threw away a lot of code in my own app, took the http-requests.jar from one of the Maven servers and was happy ever after. It might work for you ;) Feb 19 00:19:09 And the code is a lot cleaner now and only one kind of exception to catch. Feb 19 00:19:31 Heh, I also catch only one Feb 19 00:19:51 But good luck on your journey. I'm not saying doing manually is a bad thing, but others have done it before etc. Feb 19 00:20:06 I am fairly new to android Feb 19 00:20:24 So..more experience now Feb 19 00:20:51 Yeah, worth the experience. Feb 19 00:21:01 I hope so. Feb 19 00:21:53 But one thing I hate about httpclient is that you cant see what headers YOU are sending to the server Feb 19 00:24:25 For instance I was unsure if my client was sending a Transfer-Encoding header Feb 19 00:27:11 I wanted to make a progressbar for download progress of the page Feb 19 00:27:20 diki: something like "Charles Proxy" helps for debugging that Feb 19 00:27:45 But apparently chunked transfer which is from http 1.1 does not report content length on a get request Feb 19 00:29:42 For instance here is one of my questions on stack overflos Feb 19 00:29:43 stackoverflow.com/questions/14903404/why-is-the-content-length-header-omitted-from-server-response-when-using-httpcli Feb 19 00:40:39 can anyone confirm if a stock 4.2 device comes with the plain vanilla email client (not gmail) ? Feb 19 00:41:27 have both on 4.2.2 Feb 19 00:41:42 Onixs: you mean, stock and gmail ? Feb 19 00:41:54 err, vanilla email & gmail ? Feb 19 00:41:55 g00s it does Feb 19 00:42:12 how come the 4.2 emu doesn't have the vanilla email client any more ? Feb 19 00:42:34 it doesn't? Feb 19 00:44:48 Is there any way to use onActivityResult after opening the web browser? Feb 19 00:46:02 I'm seeing an issue with onActivityResult occurring immediately after I have my app open the browser, instead of after returning. I started using OnWindowFocusChanged instead, but that's not possible in a fragment Feb 19 00:46:40 Onixs: thanks Feb 19 00:51:48 * g00s tries to pull a mail client from a factory image; has no idea what he's doing Feb 19 01:03:04 hi Feb 19 01:03:11 do you need a tablet forandroid dev? Feb 19 01:03:23 it doesn't hurt Feb 19 01:03:33 i bought a nexus 10 Feb 19 01:03:39 but the screen has some issues Feb 19 01:03:45 dark splotches on it Feb 19 01:06:07 warranty Feb 19 01:06:18 well Feb 19 01:06:22 should i get a new one? Feb 19 01:06:30 or just return it for money back? Feb 19 01:06:41 i'd get a new one Feb 19 01:06:45 why? Feb 19 01:07:04 you can play some tricks with the tablets that makes them really nice for dev Feb 19 01:07:30 https://plus.google.com/107708120842840792570/posts/cz5TxuoNDfG Feb 19 01:07:45 well im not allowed to get a new one... Feb 19 01:07:52 will i even make money doing dev? Feb 19 01:08:01 allowed ? Feb 19 01:08:24 is it out of warranty or something? Feb 19 01:08:27 yes my mother Feb 19 01:08:34 said im not allowed to exchange it Feb 19 01:10:51 ... Feb 19 01:11:14 there is no comeback to that Feb 19 01:11:16 :) Feb 19 01:11:16 either you tell you mother you're not happy with a defective screen and want to get it replaced for free under warranty, or you live with it. not much we can do about it Feb 19 01:11:37 i tried that... Feb 19 01:11:46 she is willing to refund it Feb 19 01:11:54 not exchange Feb 19 01:11:59 she didnt even pay for it... Feb 19 01:12:20 shaun413: this is not really a parental advice thing, and not sure you should discuss consumer or person things here... Feb 19 01:12:28 just my advice Feb 19 01:12:39 shaun413: maybe this is better suited for Judge Judy :) Feb 19 01:12:44 ... Feb 19 01:12:57 well do i really need it for dev? Feb 19 01:13:04 g00s: 2 days now ? Feb 19 01:13:10 i really wanted to get into dev and bought it for that Feb 19 01:13:13 or was it 22nd ? Feb 19 01:13:28 ubuntu :) Feb 19 01:13:41 StingRay_: oh, announcement tomorrow maybe on the ubuntu tablet ? Feb 19 01:14:18 shaun413: well, try out the emulator and see if you can get by with i Feb 19 01:14:21 *with it Feb 19 01:14:44 i cant justify a 500 dollar tablet unless i can make some money doing dev Feb 19 01:15:26 good luck on the money part... Feb 19 01:15:41 yeah, not a good plan Feb 19 01:16:07 think of it as a personal investment to develop skill, which you can then go and do freelancing or something Feb 19 01:16:22 or work for a mobile app dev company Feb 19 01:16:31 * Zharf nods Feb 19 01:16:34 or startup that has a mobile product Feb 19 01:19:03 ok so just return it? Feb 19 01:19:17 ive heard so many horror stories about the screen anyway Feb 19 01:20:29 You seem to be pretty tight on money. If you can afford it, try to get it exchanged. We cannot guarantee that you'll make the money back by selling your own Apps. That g00s said applies more-ish. Feb 19 01:21:46 shaun413: i dont understand why you are asking, honestly. if the device is usable, and your mom wont exchange it .. just use it. if its so busted you cant see stuff, just get your money back. Feb 19 01:21:46 Yes, you can develop with the emulator. No, it's not going to replace the actual device as far as actually using your app goes. Maybe you can borrow a device from friends when you're ready. Also let them try it, since they had no prior contact with it. Devs always now what to press, longpress, swipe etc. Feb 19 01:22:37 can you move around the sdk folder? Feb 19 01:23:05 shaun413: try the emu, and set it up like here http://developer.android.com/tools/devices/emulator.html … see "Using Hardware Acceleration". Maybe you can get by with just that Feb 19 01:24:28 that said, i think designing a mobile app when you are sitting at a desktop is almost always suboptimal. the mobile context requires careful consideration and influences the design. its hard to appreciate that without a physical device Feb 19 01:24:59 when when there is a will, you can live with almost any how Feb 19 01:25:05 -- Victor Frankl Feb 19 01:25:13 (roughly speaking:) Feb 19 01:27:51 * g00s is nervous about installing these intel haxm kexts on mac; another thing to destabilize the machine Feb 19 01:32:59 g00s: it's fine Feb 19 01:33:22 not as if you cant disable easy Feb 19 01:33:29 and it's on-demand neways I think Feb 19 01:33:51 ok, i hope they work ok with lion. i'm still using 10.7 Feb 19 01:34:05 well both my macs are 10.8 Feb 19 01:34:21 can you move around the sdk folder? Feb 19 01:34:29 linuxuz3r_: try it Feb 19 01:34:37 what makes you think you cant ? Feb 19 01:34:42 i don't wanna break my installation Feb 19 01:34:48 it's a folder Feb 19 01:34:52 linuxuz3r_: you may have to point the ADT to the new location Feb 19 01:34:53 with stuff Feb 19 01:34:56 when i moved it to fat32 it doesn't work anymore Feb 19 01:35:25 g00s: I have the kexts installed on my 10.8.2 machine. It was stable before, it is now. Feb 19 01:35:35 you have settings pointed to new location and/or PATH var updated in os ? Feb 19 01:35:43 thx kakazza Feb 19 01:35:52 StingRay_ no Feb 19 01:36:02 i was just starting back then Feb 19 01:48:38 i guess ill just return it then Feb 19 01:48:42 goodbye tablet... Feb 19 02:03:19 how can i check if exist a directory in sd card and to create a directoty ? Feb 19 02:03:40 Look at what a File object can do Feb 19 02:03:47 http://developer.android.com/reference/java/io/File.html Feb 19 02:03:55 This Feb 19 02:29:02 StingRay_: what did you set your haxm memory limit to when installing ? Feb 19 02:29:03 Stupid question, is the code for the core apps (i.e. alarm and all) open and publicly available somewhere? Feb 19 02:29:25 BadHorsie: yes, through repo and on github Feb 19 02:29:37 the default android stuff, yes, the default probably not Feb 19 02:30:48 g00s: Awesome, checking source.android.com Feb 19 02:32:53 Damn I've never programming in java/eclipse before, even if it's for services (which I usually work around with bash/perl/python) should/must everything be done in java? Feb 19 02:33:58 must? no. should? usually / mostly Feb 19 02:34:44 the nice thing about eclipse is that you don't need to know java really :D Feb 19 02:35:13 you just write stuff in a "C ish syntax" and use the keyword "class" a lot and then hit quick fix :D Feb 19 02:35:22 Hehe Feb 19 02:36:20 g00s: sorry was taking a shower and attempting to wake up Feb 19 02:36:24 Yeah that will help a lot, otherwise if I worked as usually with vim that would take ages Feb 19 02:36:28 g00s: erm ... no did not set anything Feb 19 02:39:43 Neither did I Feb 19 02:40:20 quite upset that I dont get the option to use intel/google api though Feb 19 02:40:30 not sure if thats just me **** ENDING LOGGING AT Tue Feb 19 02:59:58 2013