**** BEGIN LOGGING AT Fri Jul 26 02:59:57 2013 Jul 26 03:04:38 https://play.google.com/store/apps/details?id=com.hanhuy.android.bluetooth.keyguard Jul 26 03:04:40 yay, it's updated Jul 26 03:07:10 is there a chill list/url of android devices and the width/height in pixels of the space an app can generally take up Jul 26 03:07:26 i need like width and height excluding teh top bar and or built in menu bars Jul 26 03:07:34 acidjazz: there are specs, just go to gsm arena Jul 26 03:07:53 thats csreen size Jul 26 03:07:54 screen* Jul 26 03:07:57 but the fact your asking for exact numbers, should ring "design" alarm bells Jul 26 03:07:59 i need exact app size Jul 26 03:08:26 cause it's vairable and open to change Jul 26 03:08:40 change from android version to version, change from device to device etc Jul 26 03:09:15 hell, even the user can play with it too I think Jul 26 03:09:23 if rooted, or changes fonts Jul 26 03:12:55 so acidjazz, I would re-think or design around the "need exact app size" requirement :) Jul 26 03:13:33 is there a way in a webview to set the "HTTP_REFERER" value? Jul 26 03:15:20 pfn what did you use to draw the icon ? Jul 26 03:15:23 (play icon) Jul 26 03:19:45 g00s, inkscape Jul 26 03:19:50 \o/ Jul 26 03:33:40 hey I was wondering if someone could explain to me.. when you create a bound service.. and have the binder return an instance of the service.. when you subsequently call the service using that instance is there any cross process or thread communication happening? Jul 26 03:34:45 hello? Jul 26 03:38:23 On the example here: http://developer.android.com/guide/components/bound-services.html Jul 26 03:38:47 does the call mService.getRandomNumber(); involve any interprocess communication? Jul 26 03:38:59 i.e. is mService actually a proxy? Or is it just a memory address? Jul 26 03:41:00 afaik same process and thread Jul 26 03:41:08 unless you say otherwise Jul 26 03:41:19 so no IPC needed Jul 26 03:42:20 but if you set the mode in the manifest for the service to be on a diff process, then obviously it is/will be Jul 26 03:44:09 hmm.. so why all the fancy binder stuff for just a reference? Just so you know that startService was called? Jul 26 03:47:38 is there a way to get logcat logs older than the ones ouput with 'adb logcat -v time' just like that? Jul 26 03:47:44 and dealing with bind/unbind counts for a dynamic service to come up/down I would think Jul 26 03:48:24 pfn Jul 26 03:51:22 So whats the best application architecture if have something like an IRC client that runs in the background and would normally just stick its text in a UI window.. Jul 26 03:51:42 on android you can't just feed into a text control right.. because your activity could get killed Jul 26 03:52:28 can do you something to get the text control alive through all the activity life cycles.. or is there a better way? Jul 26 03:52:41 data > service > bind > activity > ui I would think Jul 26 03:53:31 I created an helloworld application that uses the "full-screen activity that shows and hides the system UI with user interaction". I would like to disable the hide/show based on a flag but i cannot figure out where to do this. Anyone done this? Jul 26 03:54:46 picoguy2: there not a FULL_SCREEN flag set in onCreate or something ? Jul 26 03:55:42 I'm actually working on a map app that constantly receives data points in the background and updates a map fragment with markers.. however I've run into the problem that sometimes my activity can get whacked and therefore I can no longer access the activity and map fragment Jul 26 03:56:18 would it be kosher to store a reference to the fragment in the service.. and would that save it from dying when the activity dies? Jul 26 03:56:40 hey guys,how to add caption on to image...like what "picsay" app does. Jul 26 03:56:48 StingRay_: I dont see one, no Jul 26 03:56:51 I'm a little unclear on the whole separation from activity/service/fragments Jul 26 03:57:46 picoguy2: pastebin your activity Jul 26 03:57:54 nexus 7 would have been better if the dual speakers were front facing like htc one Jul 26 03:58:12 they have enough top and bottom padding to do it Jul 26 03:58:48 Guest64892: with another bitmap/canvas I would think Jul 26 03:59:04 z4ce: service , not bound to activity lifecycle Jul 26 03:59:20 activity bound to it, and fragments in turn bound to activity Jul 26 03:59:59 StingRay_: http://pastebin.com/Pb3hFEPN Jul 26 04:00:08 so even if I have a reference to the fragment.. if the activity dies I would no longer be able to access the map to update the markers? Jul 26 04:00:37 picoguy2: private static final int HIDER_FLAGS = SystemUiHider.FLAG_HIDE_NAVIGATION; Jul 26 04:00:38 a reference to the fragment from the service I should say Jul 26 04:01:06 z4ce: there would be nothing to update ??? Jul 26 04:01:12 no view, no nothing Jul 26 04:01:29 but you store the updated info in a service Jul 26 04:01:36 your act and frags come back Jul 26 04:01:42 and get new data from service Jul 26 04:02:14 StingRay_: I was looking for a place I could put a flag "bool enabled;" and enable/disable the Uihider feature Jul 26 04:02:47 picoguy2: anywhere in onCreate then Jul 26 04:03:01 so you'd have to store all of your marker information in a collection of some kind and then when the activity is resumed have it check the service for updates? Jul 26 04:03:03 before mSystemUiHander.setup() Jul 26 04:03:16 z4ce: I would Jul 26 04:03:25 StingRay_: If I toggled enabled with a 1 minute timer, would it still work? Jul 26 04:03:38 hi everyone. I'm having a weird issue where DNS resolution works near-instant if I call it normally but from a FutureTask it fails with a timeout? Jul 26 04:04:06 picoguy2: your loosing me, I really have little idea what your asking now :) Jul 26 04:04:46 StingRay_: the flag "enabled" i will toggle every minute between true and false. When enabled is false, I dont want the button to appear. Jul 26 04:05:34 so whats your question ? Jul 26 04:05:44 your state an intention Jul 26 04:05:48 you* Jul 26 04:05:52 this is my current code: http://pastie.org/private/e2kb5ysediz3qv4f0qbhqa Jul 26 04:06:09 picoguy2: how to hide a view ? Jul 26 04:06:18 Where can I put the enabled flag so i can enable/disable the button? Jul 26 04:06:33 View.setVisability(View.GONE/INVISIBLE/VISIBLE) Jul 26 04:07:28 picoguy2: anywhere before you need it Jul 26 04:07:35 as a member var ? Jul 26 04:08:44 StingRay_: ok I'll give it a try Jul 26 04:08:45 you probably want to toggle between setVisisibity(VISIBLE/INVISIBLE) so that the lack of the button doesn't affect your layout Jul 26 04:10:04 maybe I am not using the right view for this Jul 26 04:10:35 How run adb shell on Linux? :( Jul 26 04:10:43 adb devices is empty Jul 26 04:11:02 Gordio|w: fix that 1st then :) Jul 26 04:11:15 or there is no shell to the device :) Jul 26 04:12:06 StingRay_, what need fix? =\ Jul 26 04:12:31 i am trying to use a webview to look at google Jul 26 04:12:35 What need compile in kernel? Jul 26 04:12:44 and if the user goes to google.com/images, I want a share button to appear Jul 26 04:12:58 if the user goes to google.com (no "images") then I want the button to disappear Jul 26 04:13:02 I have a question, how would I pass context from a class that doesn't extend anything (including activity)? Jul 26 04:13:26 ive spent maybe 5 hours on this haha Jul 26 04:13:45 picoguy2, you can't have full-screen and user interaction Jul 26 04:14:12 pfn: not sure thats what he wants Jul 26 04:14:27 pfn: i would be ok with having a blank menu bar that only shows the share button when im at "images" Jul 26 04:14:33 i just don't know how to do it... Jul 26 04:14:40 picoguy2: set a url listener on the webview Jul 26 04:15:15 have the webview reference and call a method on the activity/fragment it's in when the correct url loads Jul 26 04:15:18 (or unloads) Jul 26 04:15:34 ^ Jul 26 04:27:24 sting_ray_: if I "setRetainInstance" on a fragment.. in what case would it ever be destroyed? Jul 26 04:27:48 I mean StingRay_ :) Jul 26 04:28:12 when the activity dies/killed Jul 26 04:29:08 so anytime really :) Jul 26 04:30:55 I am trying to use this share intent, http://developer.android.com/training/sharing/shareaction.html the share button is visible but it is not clickable. How do I activate it? Jul 26 04:33:20 hmm.. so right now I have a mapfragment.. have the setretaininstance set.. and it survives the activity some times Jul 26 04:33:25 like.. rotation doesn't kill the map Jul 26 04:33:34 but it does destroy the activity Jul 26 04:34:04 but if you do a "swipe away" from the recent apps menu.. the map does die Jul 26 04:34:14 z4ce: http://stackoverflow.com/questions/15066075/is-using-fragments-setretaininstancetrue-really-a-good-practice-to-handle-rot Jul 26 04:34:16 nice read Jul 26 04:42:42 Anyone know? Jul 26 04:44:01 s do we need local.properties any more for gradle? this guy on g+ says we're not, but if he gets rid of it, there is an error Jul 26 04:44:51 gradle does not use local.properties, that's for ant to find the location of your SDK and any submodules Jul 26 04:44:54 g00s: yes Jul 26 04:45:01 picoguy2: pastebin your code Jul 26 04:45:13 it's for gradle to find your sdk as well Jul 26 04:45:32 interesting.. I know the behavior is MUCH smoother on rotate if you use the setretain flag.. if you kill the fragment and readd the markers its choppy Jul 26 04:45:39 oh, I thought that was done differently Jul 26 04:46:07 if only there were variables that were global to your environment they could use Jul 26 04:46:11 we could call them environment variables too! Jul 26 04:46:16 I'd have to assume google wrote supportmapfragment in such a way to avoid leaking contects Jul 26 04:46:19 er contexts Jul 26 04:46:24 z4ce: possibly because you're doing too much work on the onCreate/onResume methods Jul 26 04:46:32 (onActivityCreated etc) Jul 26 04:46:57 yea.. but how do you get around doing a bunch of work if you have to add a bunch of markers? Jul 26 04:47:07 JakeWharton: yeah really. no one's ever thought of that .. I guess having garbage in your source is better *facepalm* Jul 26 04:47:09 async it? Jul 26 04:47:25 deleet: that's the beauty, they tell you not to check it in Jul 26 04:47:31 but you can't use a project without having one Jul 26 04:48:11 i taught an Android class this week and had to have 30 people manually create a local.properties and type in sdk.dir=... because I made the mistake of trusting that it would Just Work Jul 26 04:48:12 silly. Jul 26 04:48:20 haha Jul 26 04:48:37 I didn't know gradle is still based on it, that's sorta dumb. but ant sucks too :D Jul 26 04:48:52 JakeWharton, android update project Jul 26 04:49:12 pfn: that requires android be on the PATH :( Jul 26 04:49:17 StingRay_: http://pastebin.com/nWga9akQ Jul 26 04:49:22 bummer Jul 26 04:49:22 and then sdk is buried inside Android Studio Jul 26 04:49:29 * pfn & Jul 26 04:49:58 StingRay_: I have the button enabled when I go to "images" but it can't disable it when I go to a url without "images" Jul 26 04:50:03 I see the advantage of the SDK being self-contained, you cna have multiple.. but how many people actually do that Jul 26 04:50:09 jakeWarton:you have been an inspiration for me...any advice for someone who is just starting android to become like you? Jul 26 04:50:26 tell your family good bye Jul 26 04:50:40 cause you will be up until 12am working on this bs :( Jul 26 04:50:41 why not just make a system-level shortcut on win/sys32/android /usr/local/bin/android and look it up when running gradle? Jul 26 04:51:26 I wanted to check the entire SDK and Android Studio into the repo with the local.properties for instant setup but relative paths aren't supported either Jul 26 04:52:28 JakeWharton.. have you ever used the google-play-services with the android studio? Jul 26 04:52:37 z4ce: yes Jul 26 04:52:52 JakeWharton:please advice me....that means a lot to me.. Jul 26 04:52:59 bah, just one more in the endless list of 'gotchas' with Android Jul 26 04:53:22 I tried to play around with importing a project from eclipse to android studio.. spent like an hour trying to get the google-play-services library to actually play nice with the imported project and eventually gave up Jul 26 04:53:51 JakeWharton: is viewpagerindicator still being actively developed or no? I saw an issue the other day where the spacing between the text and the bar on some widgets is too large on a 7" screen (nexus 7) Jul 26 04:53:57 Guest64892: be opinionated. don't support everyone. Jul 26 04:54:21 deleet: that spacing is configurable Jul 26 04:54:25 but no, i'm not "actively" working on it Jul 26 04:54:50 yeah but I have it set to the default and it varies only on the 7", everything else looks ok. not a big deal though. Jul 26 04:54:51 JakeWharton:Any books, resources to get started would be much appreciated... Jul 26 04:55:30 the commonsware stuff is constantly updated and available online. plus he has a few of our libs included so it's hard not to recommend them. Jul 26 04:55:42 deleet: i have no idea, sorry. i don't use it Jul 26 04:56:11 no biggie. Jul 26 04:56:19 JakeWharton: Thank you.. Jul 26 04:58:04 StingRay_: I got it!!! yay!!!!!!!!!!!! Jul 26 04:59:37 z4ce: dunno. it was one line in the build.gradle Jul 26 05:06:45 Kevin Mitnick on Coast to Coat Am in a moment Jul 26 05:06:52 you can listen online Jul 26 05:09:32 g'night all Jul 26 05:09:53 hm, I think having 8 threadpools in an Android app is becoming a tad too much Jul 26 05:10:05 Thanks for the input StingRay_ Jul 26 05:13:37 8 pools is a tad much Jul 26 05:13:45 unless they're single-thread executors Jul 26 05:14:02 nein :D Jul 26 05:14:11 stupid libs that make their own thread pools kill me Jul 26 05:19:24 lol, gotta love invoking varargs with ( Jul 26 05:19:33 func((Type) null); Jul 26 05:22:16 is there something that deletes webview cookies when the app crashes? Jul 26 05:27:06 otiose: afaik, cookies are not deleted automatically but you can do so by setting an uncaught exception handler on your main thread Jul 26 05:30:47 hey fellas Jul 26 05:31:22 let's say my phone is on mute Jul 26 05:31:46 and I am listening to PHONE_STATE intent Jul 26 05:32:06 and I want to set audio settings to ring and set the volume Jul 26 05:33:08 I do setStreamVolume for AudioManager.STREAM_RING and setRingerMode to RINGER_MODE_NORMAL Jul 26 05:33:14 yet sometimes it is still silent Jul 26 05:33:21 do I need to set audiomanager mode to something? Jul 26 05:33:25 manager.setMode Jul 26 05:47:25 hey guys, any pointers on PagerAdapter that works w/ Cursor Jul 26 05:47:35 Heyo Jul 26 05:47:57 So I'm uploading an image to a subreddit via upload_sr_image (praw), which is fine and dandy Jul 26 05:48:14 but it doesnt actually change the image for the subreddit until i manually go into the stylesheet edit page and click "save" Jul 26 05:48:39 is there a way to "save" via praw so the image is updated throughout the subreddit? Jul 26 05:48:47 oh shit wrong irc channel Jul 26 05:48:48 hagha Jul 26 05:48:51 ignore me im an idiot Jul 26 05:49:11 Xiphirx: I was reading that thinking, wtf Jul 26 05:49:28 you made me feel insecure ;) Jul 26 05:49:40 yeah, #reddit-dev and #android-dev, pretty similar names :| Jul 26 05:49:53 shipit can't you just use a cursor in it? Jul 26 05:50:04 and i probably shouldn't be programming this late, after work Jul 26 05:50:05 lol Jul 26 05:51:21 StingRay_: that's what I'm going to do but wanted to see if this has been already done -- is it just overriding instantiateItem(), destroyItem()? Jul 26 06:05:13 hm, I'm going through CursorAdapter code, and since Cursor.requery() is deprecated -- I'm going to guess that for Cursor backed PagerAdapter, I don't have to setup ContentObserver? Jul 26 06:05:35 since I'm using CursorLoader, so simply implement swapCursor()? Jul 26 06:28:50 anybody know why command line android sdk update does not work anymore? filters never find anything. Jul 26 06:29:14 example: android update sdk --filter build-tools-18.0.0 --no-ui > Ignoring unknown package filter 'build-tools-17.0.0' Jul 26 06:29:27 (on headless linux) Jul 26 07:24:16 heya folks, quick question Jul 26 07:24:32 Is there a simple camera intent that simply saves the taken photo into the default DCIM folder? Jul 26 07:26:21 is that not just firing the camera and taking a photo ? Jul 26 07:26:34 Tee_Pee, not as such, but starting ACTION_CAMERA_TAKE_PICTURE intent and passing it directory from getExternalPublicStorageDirectory with DIRECTORY_PICTURES as parameter should work :) Jul 26 07:27:00 I didnt even think you need to pass it a dir Jul 26 07:27:08 * StingRay_ runs off to try Jul 26 07:27:15 lol my eclipse is gone for good this time .. lost all my workspace changes Jul 26 07:27:24 StingRay_, if you don't pass a dir you get image back as a bitmap Jul 26 07:28:15 you get a thumbnail blob not the image right ? Jul 26 07:28:24 Yeah, you get a small bitmap if you don't pass in the path, but I could have sworn that there was another intent that saves to DCIM by default Jul 26 07:28:29 mhm Jul 26 07:28:32 Guess I was wrong Jul 26 07:29:27 * StingRay_ now offically hates emoji + emoticons Jul 26 07:29:34 ;) Jul 26 07:29:42 StingRay_, did you figure out how to render them yet? :) Jul 26 07:30:00 oh yeah Jul 26 07:30:00 no prob at all Jul 26 07:30:20 confirmity is the issue, along with "I'm not a 12 year old girl into my little pony" Jul 26 07:30:32 :) Jul 26 07:30:42 so I dont like them neways Jul 26 07:30:42 and implementing something you dont like or use, never a good thing Jul 26 07:31:08 come on... who doesn't love my little pony? Jul 26 07:31:21 twilight sparkle is the bomb!! Jul 26 07:32:00 my g/f looks like rainbow dash sometimes Jul 26 07:32:04 and now I'm worried that you're not being sarcastic Jul 26 07:32:26 * StingRay_ now shuts up, as this demonstration of mlp knowledge is not good Jul 26 07:32:44 along with abbreviating to mlp, also not good :) Jul 26 07:33:05 yeah... Jul 26 07:35:38 too many choices, why would I want to depict 3 different types of sushi ? Jul 26 07:36:06 or any of the numbers thinking about it Jul 26 07:36:17 * StingRay_ is starting to feel old Jul 26 07:41:13 what's the popupmenu equivalent in api level 8? Jul 26 07:41:31 <\0x90\> is it possible to have an app.. or a service/process do stuff in background ? without being visible / having activities or showing an icon in notification area ? Jul 26 07:42:13 sure. you're not guaranteed it will be alive forever though Jul 26 07:42:17 <\0x90\> as far as i read.. it's not, but line/whatapp types of app are doing it (i think). i see service process running when i go to settings - applications - running services Jul 26 07:42:23 context menu! Jul 26 07:42:58 \0x90\, yes it is. Jul 26 07:43:02 \0x90\: if you need to guarantee that your app's service will stay alive, you must show a notification Jul 26 07:43:08 \0x90\, it's called "service" :) Jul 26 07:43:11 however, you can schedule your service to re-start itself after a time Jul 26 07:43:23 START_STICKY will restart the service if it gets killed Jul 26 07:43:33 yup Jul 26 07:44:04 <\0x90\> hmh.. yeah, but as far as i remember you must provide an icon.. or am i wrong ? i kinda forgot didn't code android apps for a while Jul 26 07:44:26 \0x90\, only if you want foreground priority Jul 26 07:44:29 which you probably don't Jul 26 07:44:38 unless you're playing music or something Jul 26 07:44:44 <\0x90\> ah Jul 26 07:44:50 <\0x90\> ok Jul 26 07:46:31 <\0x90\> the service should be running all the time, when the phone boots.. if the app gets killed, it should be restarted.. etc. any tips or keywords for doc about this ? Jul 26 07:47:19 \0x90\, yes, "services" ;) Jul 26 07:47:47 <\0x90\> ah, so service starts at boot time ? Jul 26 07:47:52 nope. Jul 26 07:47:55 can I ContentResolver.update() in Service.onDestroy()? Jul 26 07:47:56 http://developer.android.com/guide/components/services.html Jul 26 07:48:06 <\0x90\> ok, just opened it. thanks Jul 26 08:20:45 so, we're having a "special friday" at work Jul 26 08:20:50 it's a medium sized software dev company Jul 26 08:20:56 long story short, everyone is wearing funny hats. Jul 26 08:21:08 There's this guy on the other side of the room with a sombrero Jul 26 08:29:54 Tee_Pee: we have "Pyjama Monday" sometimes, its a bit freaky Jul 26 08:30:15 then we all rock down the street to goto lunch in Pyjama like garments Jul 26 08:31:42 this crazy hat friday is the first in many of such events... every friday will have something, with the employees being able to vote on what that something is Jul 26 08:31:49 I can't wait for lingerie friday next week. Jul 26 08:35:53 Tee_Pee: dont be in too much of a rush to wear lingerie, looking is good, wearning, not so much :) Jul 26 08:36:35 :P Jul 26 08:55:16 Hey all. Jul 26 08:55:34 Do you know if Chromecast is an Android HDMI Dongle, or something unrelated? Jul 26 08:57:21 small math problem - I have a number with X digits, say 1234567. I want to turn it into 12.34567, i.e. insert a comma after the second digit Jul 26 08:57:26 no matter what the original number was Jul 26 08:58:24 nevermind, got it Jul 26 09:21:01 Lachezar: it's a cut-down chromeos device Jul 26 09:24:15 p_l: Thanks. Not that I've seen any ChromeOS devices, but if it's not Android it's not my target, though I could possibly use it... Jul 26 09:24:52 * Lachezar mumbles something obscene about inability to purchasing Google products directly... Jul 26 09:26:30 Lachezar: there's an SDK to target it, but essentially it's HTML+JS environment Jul 26 09:26:35 um, guys Jul 26 09:26:47 should listview footers act as items and invoke onClick? O.o Jul 26 09:28:54 I think so, iirc from an old IO talk Jul 26 09:29:03 I/O* Jul 26 09:29:36 the implementation just showed them as items, when you get down to it Jul 26 09:31:48 when will we get the following message: I/InputDispatcher: Dropped event because input dispatch is disabled. Jul 26 09:34:10 What tools are there for making Android user interfaces? Jul 26 09:34:17 I'm looking for something outside of the IDE. Jul 26 09:35:27 what do you mean "making" Jul 26 09:35:56 producting assets/layouts that can be used directly ? Jul 26 10:01:40 StingRay_: yup, just focusing on building the interface and not so much on the code. Jul 26 10:02:17 then no there is nothing Jul 26 10:02:32 used to be a few tools, but I think they all became a little, outdated Jul 26 10:02:36 Photoshop plus a bunch of stencils? :> Jul 26 10:03:00 Gimp can be good too, though I wonder if it still has Scheme-Fu and such Jul 26 10:03:02 p_l: and how does that output directly usable assets ? Jul 26 10:03:12 assets/layouts Jul 26 10:03:46 when will we get the following message: I/InputDispatcher: Dropped event because input dispatch is disabled. Jul 26 10:03:49 any idea? Jul 26 10:03:54 why we get this error message Jul 26 10:03:57 StingRay_, plugins :) Jul 26 10:03:58 and skill Jul 26 10:04:03 StingRay_: not layouts (though it is possible to do so, but that requires some programming to be done), but you can cut up based on areas defined in PSD into assets then push them through your asset-handling pipeline Jul 26 10:04:39 There's a plugin (written in Common Lisp XD) for Photoshop that turns guidelines and such into basic HTML+CSS, iirc Jul 26 10:05:23 p_l: that sounds awesome! Jul 26 10:06:20 weird... I am using MediaPlayer object, and it is jumping to onError callback. The problem is that extra has a weird value: -2147483648 This is not in the list of extra here: http://developer.android.com/reference/android/media/MediaPlayer.OnErrorListener.html Jul 26 10:06:24 any idea what it means Jul 26 10:06:58 gmag, anything. Jul 26 10:07:10 check logcat if stagefright or driver barfed anything useful Jul 26 10:09:11 Hey. I've problem with using AppCompat actionBar. I set activity theme and no ActionBar appears. I think that I'm adding supportlibrary wrong way but I have no errors in project. Do you have any idea what may be the reason? Jul 26 10:10:30 p_1: if there was, it'd have to be written in Java or something that could source Java libraries. Jul 26 10:10:36 sucks, imho. Jul 26 10:10:48 jalcine: not really Jul 26 10:11:13 the sucking part or the Java part? Jul 26 10:11:15 lol Jul 26 10:11:22 jalcine: both Jul 26 10:12:00 jalcine: JVM would only be needed for when you want to *render* widgets directly (i.e. with some data etc.) Jul 26 10:12:18 b 87 Jul 26 10:12:25 for just making graphic assets to be used with them + placement, you can get away with defining styles + some stencils Jul 26 10:15:10 I just got the android silver badge on stackoverflow ;) http://stackoverflow.com/help/badges/151/android Jul 26 10:16:34 * p_l likes his "necromancer" badge Jul 26 10:20:06 Thats pretty good Jul 26 10:29:10 Mavrik, thanks mate Jul 26 10:35:36 is it safe to always open a new thread for services and other processes even if its a small task? Jul 26 10:36:40 you actually should create a thread for services. Jul 26 10:36:41 I don't see why not, except when you need to modify the UI Jul 26 10:37:53 well I read that the UI thread does all the work and its best not to use it for other processing Jul 26 10:38:41 what Linkandzelda said is true Jul 26 10:38:52 and it prevents the UI from being non-responsive. Jul 26 10:40:10 yes, but when you need to modify the UI, you will need to run that code on the UI thread, that's what I meant… otherwise, i don't see why it's not safe to run your code in other thread / services Jul 26 10:41:50 so, I guess in other words, even if it's a really small task, if it doesn't affect the UI, you should run it on other threads, so that the UI can be kept responsive Jul 26 10:42:04 you do know we're all saying the same thing right? Jul 26 10:42:44 yea.. haha.. getting tired… end of week. Jul 26 10:48:42 ola ola Jul 26 10:49:30 still not solved my problem, i got a problem with supportmapfragment. When i push the home button on my device i get a fatal exception error Jul 26 10:55:10 Dont push the home button, problem solved! Next please Jul 26 10:55:20 Dominee: Exceptions have stack traces. Pastebin. Jul 26 10:55:57 http://stackoverflow.com/questions/17869765/supportmapfragment-fatal-exception-onsaveinstancestateunknown-source-press-hom Jul 26 10:56:02 posted it on stackoverflow Jul 26 10:56:29 i don't know what i am doing wrong or i missed something Jul 26 10:58:01 still need to refactor my code Jul 26 10:58:07 but first want to make it work :) Jul 26 10:58:51 Dominee: Looks like you're trying to use newer api on older device. Jul 26 10:59:00 haha Jul 26 10:59:09 that could be true :) Jul 26 10:59:13 2.3.3 device Jul 26 10:59:15 Hence suppressing it Jul 26 10:59:15 Dominee: Remove the @SuppressLint('NewApi'), check what are the problems. Jul 26 10:59:49 BAH! Suppressing *MUST* be combined with code to not call the code on older API. Jul 26 11:00:32 Suppressing Lint warnings does *not* fix them automagically :) Jul 26 11:00:55 Doing it for the entire activity is bad practice as well Dominee, if you do need to geet round things do it as inline as possible Jul 26 11:01:19 nothing changed Jul 26 11:01:23 same error Jul 26 11:01:50 Just removing that line won't fix the problem Dominee Jul 26 11:01:58 yes i understand Jul 26 11:02:25 Dominee: After removing the @SuppressLint you _should_ have a bunch of warnings/errors. Jul 26 11:03:06 http://pastebin.com/ZHvike3i Jul 26 11:03:19 same errors as before Jul 26 11:04:44 Dominee: errors in eclipse/whatever you're using to build Jul 26 11:04:52 do a clean of the project and see what shows up Jul 26 11:06:09 Although... The stack trace does point out, that a Support V4 class uses something that is not available... Jul 26 11:06:23 aha ok Jul 26 11:06:31 maybe i should use mapview? Jul 26 11:06:47 Are you importing the right things? Jul 26 11:07:36 for supportmapfragment? Jul 26 11:08:38 Offffff... That SupportMapFragment has no source available... Jul 26 11:08:43 It's hard to say what is and isn't correct just looking at it Jul 26 11:09:15 http://pastebin.com/9TnAxZWV Jul 26 11:09:17 Dominee: You might want to try an older version of the support library... Jul 26 11:09:18 my imports Jul 26 11:09:24 ok Jul 26 11:09:39 and the newer versions are supporting that? Jul 26 11:10:56 but supportmapfragment is for older versions right Jul 26 11:17:21 i want 4.3 now! Jul 26 11:19:11 Many thanks for taking the time to interview for the IOS position. Unfortunately we will not be progressing to interview at this time. Jul 26 11:19:52 Should I email back and tell her I applied for an Android position? Jul 26 11:22:38 so it's not the same thing? Jul 26 11:22:40 ;) Jul 26 11:23:16 I wouldn't hire me for an IOS position either Jul 26 12:04:24 Ankhwatcher, That sentence is terribly worded, "progressing to interview" ? You already interviewed right"? Jul 26 12:04:59 poutine: they mean progressing to an in-person interview Jul 26 12:05:41 Did they ask about ios during your interview at all? Jul 26 12:07:06 I'd just send a "Your records are mistaken, I never applied for any IOS developer position, but thank you for the notice" Jul 26 12:07:34 poutine: no but they have a kind of generic job-spec for mobile devs so I don't think the HR department know who's applied for which Jul 26 12:10:09 I'm kinda bummed out because I thought the phone interview went really well. Jul 26 12:10:36 When I do m_Object = null; does it automatically call the destructor immediately ? Jul 26 12:11:52 hey does anyone know how to solve "cannot resolve constructor" when using startService? http://cl.ly/image/2U2t0S1y2N0L Jul 26 12:12:40 jwalker60: The garbage collector works at its own pace, you don't know when it will run. Jul 26 12:13:29 eisbehr, that's what I thought, thanks. Jul 26 12:13:57 Linkandzelda: try changing it to CLASSNAME.this insstead Jul 26 12:14:12 s/instead Jul 26 12:14:25 Ankhwatcher, I believe the problem is the first parameter Jul 26 12:14:37 yup, your "this" refers to the OnClickListener Jul 26 12:14:38 jwalker60: that's what i siad Jul 26 12:15:11 Linkandzelda: like this: http://pastebin.com/e1QzJcck Jul 26 12:15:55 I like to set the context in a member, and use it afterwards. Jul 26 12:15:58 oh I get it Jul 26 12:16:06 the anoymous class doesnt take it lol Jul 26 12:16:15 thanks Ankhwatcher Jul 26 12:17:18 Linkandzelda: glad to help Jul 26 12:17:41 Ankhwatcher, if you feel it went well, it wouldn't hurt to say, "I understand if this is still the case, but I did not interview for an IOS developer position, was this email meant for me?" Jul 26 12:18:32 poutine: don't worry I emailed back asking for feedback and made a point of mentioning I interviewed for an Android Dev role Jul 26 12:19:21 is it rude to ask what kind of salary range you were looking at? Jul 26 12:19:39 poutine: whatever I could get Jul 26 12:20:03 I do web dev, would like to do android dev for a living, but not sure if that'd be an upgrade or downgrade Jul 26 12:20:06 if they email back and say that I don't have enough experience I'm going to ask if I could get a job as an intern Jul 26 12:20:30 poutine: I keep meeting people who wont both Jul 26 12:27:08 any of you guys here indie devs? Jul 26 12:27:48 Linkandzelda: I'm unemployed does that count? Jul 26 12:28:01 hehe well do you make apps and sell them on the store? Jul 26 12:28:14 I have an app I made available for free on the store Jul 26 12:28:27 i see Jul 26 12:28:37 what's the app Jul 26 12:28:43 ^ Jul 26 12:29:15 Linkandzelda: https://play.google.com/store/apps/details?id=ie.appz.popupplaces&hl=en Jul 26 12:29:38 I don't know why I said that to Linkandzelda Jul 26 12:30:21 seems the cover image is broke Jul 26 12:30:27 is there an automatic tool to get all the verbatim strings out of res/layout/* into res/values/strings.xml? Jul 26 12:30:43 Linkandzelda: nah I replaced it and the new image hasn't propegated yet Jul 26 12:31:02 the play store entry will fix itself in a few hours Jul 26 12:31:13 i see Jul 26 12:31:56 looks pretty cool Jul 26 12:32:19 thanks Jul 26 12:32:37 i wonder if its possible to make a living from indie dev on android Jul 26 12:33:17 Linkandzelda: it is for some people, I think you need to have great UX skills or a really really really great idea Jul 26 12:33:33 right Jul 26 12:36:43 Or you make fake x-ray scanners and wallpaper collections >.> Jul 26 12:37:16 oh yeah or an app with pictures of women in lingerie Jul 26 12:37:19 sound boards and fart machines lol Jul 26 12:37:34 nah, nobody pays for that Jul 26 12:37:53 which model do you think is the most effective Jul 26 12:38:05 ads, price, in-app unlock? Jul 26 12:38:39 they all suit different kinds of applications and users Jul 26 12:39:49 hmm Jul 26 12:40:17 for ads to make any significant amount of money you need a lot of users Jul 26 12:40:38 thats true Jul 26 12:41:01 subscription model with in app purchases and virtual currency, the only way to go Jul 26 12:41:10 yep, but if you have a huge number of users seeing your app consistently then it's a more steady revenue flow Jul 26 12:41:14 I was thinking of offering a free app with ads and then a premium feature available as an in-app purchase, which also removes the ads Jul 26 12:41:56 nseidm1: yeah I like to make users learn an exchange rate Jul 26 12:42:23 Linkandzelda: that sounds like a good way to go, Android users are notoriously tight Jul 26 12:42:39 Don't forget to include a leaderboard Jul 26 12:42:44 subscription to remove the ads Jul 26 12:42:48 and let people pay extra just to get a higher score on ot Jul 26 12:42:55 *it Jul 26 12:43:11 I'm currently building a twitter based app no-one will want Jul 26 12:43:14 depends if its a game or not, this is just a simple utility and it can be used 100% without buying the premium feature Jul 26 12:43:23 The leaderboard doesn't even have to make sense, as long as their "score" is visible everywhere in the app :P Jul 26 12:43:27 the premium feature will just be, well, convinient lol Jul 26 12:44:02 fake leaderboard? xD Jul 26 12:44:11 F2P games made me so cynical :D Jul 26 12:44:13 make a widget to show the leaderboard Jul 26 12:45:12 give people notifications every hour to remind them that their friends have a higher score Jul 26 12:46:03 and you should be able to record videos in which you taunt people with lower rank Jul 26 12:46:16 ... you know what, this might actually work :P Jul 26 12:47:25 "pay XX to raise your score now!" Jul 26 12:47:41 raise your score or we will spam you further! Jul 26 12:48:24 if they uninstall the app send them an email every two days asking if they "want to come back to you" Jul 26 12:48:49 also spam them on twitter, facebook, myspace and via snail-mail Jul 26 12:49:59 Now I want to make that app, just to see how much that could make. Jul 26 12:50:05 +money Jul 26 12:50:21 how easy is it to make a global leaderboard? Jul 26 12:52:32 shouldn't be hard. Jul 26 12:53:31 i guess you'd need a server to keep the scores Jul 26 12:54:48 Isn't that what that new Google Play GameSoemthingsomething is for? Jul 26 12:54:56 That they showed on Wednesday Jul 26 12:55:22 https://developer.android.com/google/play-services/games.html Jul 26 12:57:02 oh my Jul 26 12:57:23 was just thinking how nice it would be for google to handle that Jul 26 13:04:42 What's the best way to add one of those "get more stuff" buttons to the bottom of my ListView? Jul 26 13:05:31 Think that's a footer? Jul 26 13:08:12 kakazza: ah cool, I had no idea that was a thing Jul 26 13:08:14 thanks Jul 26 13:13:11 np Jul 26 13:29:55 I tried adding a share button to the ActionBar of my application. The button appears, but when I click on it, there is no dropdown, anyone know why? Jul 26 13:32:19 do you know if it's possible to pass command line arguments to an Android (NDK) app I start via adb? Jul 26 13:44:37 Florida woman reportedly crushed to death by homemade elevator Jul 26 13:46:03 I just added @FoxNews to my twitter test timelines Jul 26 13:46:20 apparently they are the worlds most active twitter user: http://www.sysomos.com/insidetwitter/mostactiveusers/ Jul 26 13:46:44 hello. Maybe you could help me with a problem with my app. I had an activity with two gesture detectors but after add a navigation drawer events are not detected. Is this normal? Jul 26 13:46:50 It sucks, latest Android have like kernel 3.2 or something, instead of 3.10 Jul 26 13:48:21 this is the activity http://pastebin.com/b6wDKBZF Jul 26 13:48:58 and this is the layout http://pastebin.com/0WLTEVsK Jul 26 14:08:08 smallfoot-: unless there are specific advances for the specific platform there's no benefit in chasing the latest kernel revs Jul 26 14:08:23 smallfoot-: most of the changes have to do with drivers which have nothing to do with android devices Jul 26 14:08:30 and security Jul 26 14:09:23 p_l: assuming specific fixes aren't backported. I'd expect a modern build to have done that. Of course it'd pay to doublecheck. Jul 26 14:10:10 dragorn: the usual reason behind older versions of kernel on mobiles is that embedded vendors tend to make it hard, anyway. Jul 26 14:10:24 The Android platform side of things probably has more holes anyway :P Jul 26 14:10:51 p_l: there's lots of reasons, sure, it just doesn't pay to chase the latest release on product usually, especially when embedded stuff has a pretty small driver subset Jul 26 14:10:54 eisbehr: like the recent "all kernels till 3.8.10" root bug? :> Jul 26 14:11:05 amusingly 3.3 has the official android merge Jul 26 14:11:39 dragorn: quite usually the actual issue is that the embedded drivers are among the worst pile of shit ever, sometimes also a binary blob pile of shit, and do... fun stuff when you try porting them into future Jul 26 14:13:47 not much else that applies to android. similarly 3.4 doesn't seem to have any major features that apply to android, 3.5 has some TCP fixes it might have been nice to see, 3.6 and 3.7 have some more minor tcp fast open stuff it might be nice to see, 3.9 brings KVM to arm but no android vendors use it. So nothing too exciting. Jul 26 14:14:03 p_l: oh, I know. Well, that usualyl means "you need to pay for a better relationship with your vendor" Jul 26 14:14:31 p_l: and "hope you enjoy manually porting stuff in-company" Jul 26 14:14:33 dragorn: or "someone go and shoot up Samsung's driver writing dept" Jul 26 14:15:09 (Samung drivers are ... of questionable quality, from what I have seen) Jul 26 14:15:12 p_l: when I worked for a wireless company we just licensed full driver and firmware code from all the vendors Jul 26 14:15:26 isn't latest kernel much faster too? Jul 26 14:15:31 p_l: so we didn't have any mgic blobs. We had some shit code we had to deal with, but no magic blobs Jul 26 14:16:08 also I suppose latest kernel have more Android-specific code mainlined, so there is a smaller diff Jul 26 14:16:55 Only if whatever code is mainlined is what the android stuff actually uses. There's a reason it was pulled out before - no-one was taking care of it in mainline as I recall Jul 26 14:17:15 Hello, i am attempting to save images from my application in a folder of Gallery, but seems that i am doing something wrong because myapp saves images in the folder, but i see them only after a reboot of the phone. What should i do to correct this? Jul 26 14:17:29 smallfoot-: the android parts are small and tend not to be that problematic. The problem is usually with proprietary (and often insane) drivers from SoC vendor Jul 26 14:19:48 yeah direct android fondling was mostly in the suspend and whatnot Jul 26 14:21:00 dragorn: iirc more in the "here's a driver to interface with suspend code because we want to suspend very often" Jul 26 14:21:22 I tried adding a share button to the ActionBar of my application. The button appears, but when I click on it, there is no dropdown, anyone know why? Jul 26 14:21:41 I use ShareActionProvider on ActionBar Jul 26 14:22:08 any idea on what can be my problem? are navigation drawers and ontouchevent incompatibles? Jul 26 14:22:59 07-26 07:13:13.469: W/KeyguardDisableHandler(377): cleaning up leaked reference: KeyguardService Jul 26 14:23:00 lies Jul 26 14:23:08 unless it's because my service crashed... Jul 26 14:23:19 (process killed) Jul 26 14:38:18 I use a ShareActionProvider on the ActionBar. The button appears, but when I click on it, there is no dropdown, anyone know why? Jul 26 14:45:45 hi :) Jul 26 14:46:03 Hola Jul 26 14:46:06 evening :) Jul 26 14:46:38 would you recommend Android Studio or Eclipse for people who are new to Android programming? Jul 26 14:46:42 Scumbag Android, can't fit text to size Jul 26 14:46:48 jasabella: Eclipse Jul 26 14:46:49 Hands down Jul 26 14:47:04 I'd go with Android Studio Jul 26 14:47:05 only if you're new to programming period Jul 26 14:47:14 Until the Android Studio side of things has equal or better documentation and guides, it doesnt make sense for android studio usage :S Jul 26 14:47:16 i'm not new to programming per se Jul 26 14:47:31 any idea why a call to getSystemService(BLUETOOTH_SERVICE) would be force-enabling bluetooth? Jul 26 14:47:37 voltagex, it doesn't Jul 26 14:47:49 pfn: it is. At least in the debugger. Jul 26 14:48:13 can android studio and eclipse exist side-by-side? sharing the SDK? Jul 26 14:48:23 yup Jul 26 14:48:24 yes Jul 26 14:48:42 just don't open the same project in both IDEs at the same time =) Jul 26 14:49:50 :D Jul 26 14:51:57 is Android Studio going to replace Eclipse eventually? Jul 26 14:52:27 no announced roadmap Jul 26 14:52:33 wont be a while though im guessing since AS is still in testing Jul 26 14:52:36 ok Jul 26 14:54:01 which Eclipse do i want? standard? :) Jul 26 14:54:06 voltagex, oh, api18 service... maybe that's what it implicitly does Jul 26 14:54:10 jasabella, download the ADT bundle from google Jul 26 14:54:18 does it include Eclipse? Jul 26 14:54:25 yes Jul 26 14:54:28 oh Jul 26 14:54:39 that wasnt immediately clear when i read :) Jul 26 14:54:46 voltagex, use Bluetooth.getDefaultAdapter instead Jul 26 14:54:54 ahhhh Eclipse + ADT plugin Jul 26 14:54:55 der! Jul 26 14:55:21 pfn: seemed to be an odd side-effect of the low-energy scan stuff Jul 26 14:55:30 pfn: isn't getDefaultAdapter deprecated? Jul 26 14:55:32 I want to make an Android client for a website, but this website uses custom CSS, JS/AJAX to do some things that I am not sure are possible with Android. Jul 26 14:55:38 voltagex, I don't know, is it? Jul 26 14:55:59 in particular, some divs on that website that have curved edges, and have a nice slide-in with fade in, fade out effect Jul 26 14:56:43 any books you can recommend? i saw an ORA book and some other one that was like 2" thick Jul 26 14:56:46 at the bookstore Jul 26 14:57:25 i would like a book that is somewhat akin to Petzold's ones for Windows Programming if you are familiar with what i mean :) Jul 26 14:57:46 diki: when you build Android apps, they're supposed to look like Android apps, not exactly like the web site Jul 26 14:58:03 normally the web site would expose a service with XML or JSON and the app would consume that Jul 26 14:58:03 yeah, but I want to style it as close as possible to the website Jul 26 14:58:16 then do so, all the animations exist on android Jul 26 15:00:07 jasabella the nerd ranch book has good reviews Jul 26 15:00:55 * g00s is cranky; asics discontinues awesome trail running sneaker and doesn't provide successor Jul 26 15:02:12 Android has been built to re-initialize the main activity on any screen orientation change, what is the recommended way to mainting the same program state throughout screen rotations? I mean, displaying a new layout when the screen is rotated, but not re-initialize the activities. Jul 26 15:02:51 diki, use the correct state callbacks Jul 26 15:04:01 google music needs a popout app like hangouts has (in chrome) Jul 26 15:04:06 I want media keys to work, damnit Jul 26 15:04:13 dammit! Jul 26 15:05:50 hmm, I guess I'll be converting qicr over to appcompat, too Jul 26 15:06:01 no sense in having dual UIs anymore Jul 26 15:06:20 thanks :D Jul 26 15:07:02 hrm, how do I configure windows explorer to show image previews on a dark background; pita browsing android drawables that are all white Jul 26 15:08:49 pfn: http://social.technet.microsoft.com/Forums/windows/en-US/68f5d7e8-13b0-4f09-bee5-9938175b2547/windows-background-color-could-not-be-changed Jul 26 15:09:04 basically, they removed the feature. Jul 26 15:09:53 indeed, suck Jul 26 15:09:58 yeah, sucks on mac too Jul 26 15:10:18 maybe romainguy knows a trick on os x Jul 26 15:10:23 http://www.thewindowsclub.com/windows-7-folder-background-changer-released no idea if it will sell your cat to Russia though. Jul 26 15:10:53 g00s, pfn: didn't you used to be able to change those kind of colours on Mac with HaxE? Jul 26 15:11:01 Hi Jul 26 15:11:05 What is an bitmap? Jul 26 15:11:20 I google it and I just see the programming def. but i dont get it Jul 26 15:11:33 it's a two-dimensional array of color elements Jul 26 15:11:45 so Jul 26 15:11:48 when do I use it? Jul 26 15:11:52 to store images Jul 26 15:11:56 okej okej Jul 26 15:12:09 thanks.. my teacher just defined it like we already know what that is Jul 26 15:12:11 thank you Jul 26 15:12:26 np Jul 26 15:13:55 clb, If I want to make a application like Kik Jul 26 15:14:02 what do I have to know? Jul 26 15:14:09 database and java,xml right? Jul 26 15:14:24 and android, obviously Jul 26 15:14:31 yes and that Jul 26 15:14:36 there's not much to know about xml Jul 26 15:14:44 you and tags Jul 26 15:14:45 so what do I need to know Jul 26 15:14:51 and that's about it Jul 26 15:14:57 peyam: sorry, no idea, I don't know what Kik is Jul 26 15:15:30 pfn, what do I need to learn. I know basic data but I know c++ and not a big difference. I m learning android now! and know xml Jul 26 15:15:35 What more do I need to know? Jul 26 15:15:46 oh there's no install program?! Jul 26 15:15:49 for ADT Jul 26 15:15:51 jasabella, you unzip it Jul 26 15:15:54 and run it in place Jul 26 15:16:03 just realised :D Jul 26 15:16:16 peyam: client/server communication, probably serialization, some kind of network protocol Jul 26 15:16:43 voltagex, yes...no database? Jul 26 15:17:05 peyam: well, your client should probably store the contact list in a database (SQLite) Jul 26 15:17:22 very good Jul 26 15:17:23 peyam: probably not a good program to try to start Android development with Jul 26 15:17:53 peyam: or, I think, your teacher has given you a list of requirements that you must include... Jul 26 15:18:11 in other news, Android has driven me to the whisky bottle. Jul 26 15:18:19 voltagex, no the course is anly about basic android Jul 26 15:18:41 peyam: I wouldn't call a chat program like that basic, but it's worth a try Jul 26 15:19:59 hmm Jul 26 15:20:02 does anybody knows how to create an insecure connection on android prior 2.3 Jul 26 15:20:11 I just want to make it. The teacher doesnt require that Jul 26 15:20:12 in bluetooth connections Jul 26 15:20:45 peyam: cool! So maybe start with simple text between two devices (maybe over bluetooth?) Jul 26 15:20:57 yeah Jul 26 15:21:01 that sounds good Jul 26 15:37:40 if you have a Cursor object, is there a way to look at the actual sql statement? Jul 26 15:39:46 iirc you can with a debugger Jul 26 15:42:34 hiho. What is the best way to develope on different platforms without (re)coding the app for all platforms? i could see that there are several Frameworks http://mobiledevices.about.com/od/mobileappbasics/tp/Top-5-Tools-Multi-Platform-Mobile-App-Development.htm but they mostly seems to convert only HTML/Webbased Apps to the different platforms Jul 26 15:43:10 willing to spend money ? Jul 26 15:43:35 Depends on the price :) Jul 26 15:43:51 misterli: well, a lot depends on just what your app is doing Jul 26 15:43:57 misterli http://xamarin.com/ Jul 26 15:44:05 It uses lots of native functions and some external libs like GCM for Push Jul 26 15:44:27 hmm, is there any way to have two drawable left images next to each other? Jul 26 15:44:34 I guess I need to compose them myself Jul 26 15:44:56 I wonder if there's a simple composing api Jul 26 15:45:30 With those frameworks there is still the UI issue Jul 26 15:45:53 The UI is not that important. Jul 26 15:45:53 Different platforms use different UI metaphors Jul 26 15:46:19 holy crap, the 2013 N7 got a 9.0 score from the verge Jul 26 15:46:20 afaik there's a Framework which can convert existing android-code to different plattforms too, isnt it? Jul 26 15:46:33 it's an awesome tablet, why not Jul 26 15:46:38 so tempted since best buy is selling them early Jul 26 15:46:42 I kinda want to go and pick one up Jul 26 15:46:53 also, http://www.theverge.com/2013/7/26/4558998/android-4-3-hidden-features-app-permissions-4k-support-konami-code Jul 26 15:48:20 even the verge mentions this: THE FIRST NEXUS 7 WAS FAST, TOO — FOR A WHILE Jul 26 15:48:29 still not sure if it was faulty flash, etc Jul 26 15:48:45 people said they emptied their caches to no effect Jul 26 15:49:49 XXXHDPI \o/ Jul 26 15:51:07 g00s: cleaning caches doesn't help with untrimmed flash Jul 26 15:51:21 was that the definitive answer tho ? Jul 26 15:51:50 then there are others who say they had no problems at all Jul 26 15:52:10 g00s: apparently it dependend on exact model (as in "which chips you got") Jul 26 15:52:42 was that a timing issue? (early ones = these chips) Jul 26 15:53:18 g00s: no, "doesn't use TRIM" issue ;) Jul 26 15:53:57 at the very least, some people appear to have had success running fstrim Jul 26 16:10:05 * Leeds has pre-ordered a new N7, *hopefully* will have it around a week from now Jul 26 16:11:30 Leeds: where can you pre-order it? Jul 26 16:12:06 codebutler: B&H - and Best Buy, I think, but they don't ship internationally Jul 26 16:12:15 Is there any "standard(?)" set of intents to interact with the Picasa app, if present? I'd like to upload an image to Picasa specifically, with some associated meta-data -- but without having to ask for yet another OAuth permission within my app. Jul 26 16:12:17 ah Jul 26 16:17:35 Anyone else using Android cmake with Android NDK r9? Jul 26 16:19:13 Woot Jul 26 16:19:16 my friendis going to best buy Jul 26 16:19:22 and if tyhey have n7 in stock he is getting me one Jul 26 16:19:23 :D Jul 26 16:20:06 Is the googlecast thing purely a library-style API? I can't seem to see any network-protocol documentation -- what am I missing? Jul 26 16:37:09 how can I compose 2 drawables side-by-side without drawing manually myself? Jul 26 16:39:48 hmm, looks like layer list drawable will work for me Jul 26 16:40:29 My Nexus is on the way!!!! wooohhhhh Jul 26 16:41:05 hesperaux there ? Jul 26 16:44:29 while in DataSource DAO class. (say comment is the represent the table. why do we do "cursor.moveToFirst(); Comment newComment = cursorToComment(cursor);" even after "long insertId = database.insert(MySQLiteHelper.TABLE_COMMENTS, null, values);" in the "public Comment createComment(String comment)" ? Jul 26 16:48:31 ok, simple code snippet is here: http://pastebin.com/bmAmeTVk Jul 26 16:48:56 why are they taking the newly inserted cursor and moving it to 1st. does it mean they are inserting the new row in the 1st position ? Jul 26 16:49:21 Because the cursor is initialized at position -1 Jul 26 16:53:05 weird that there is no android.R.strings.cancel or .save Jul 26 16:55:26 WOOOH Jul 26 16:55:29 GOT MAH NEXUS Jul 26 16:55:49 awesome Jul 26 16:57:12 Wait what? wasn't it "on the way" just a few minutes ago? What kind of mail-service do you have over there? 24/7 Mailmen with jetpacks? Jul 26 16:59:21 delivered by drones Jul 26 16:59:56 Maybe he bought it in a store and they had to get one from out back Jul 26 17:00:07 It was very well hidden Jul 26 17:00:25 Brian|CB its not the 2012 N7 spray painted black is it ? Jul 26 17:00:48 maybe a new hardware feature - they got little wings like the microdrones Jul 26 17:01:07 his friend went to best buy Jul 26 17:01:10 it's one the way back Jul 26 17:01:12 and now it's in his hands Jul 26 17:01:24 makes sense Jul 26 17:01:39 g00s: It's so good Jul 26 17:01:40 sooo good Jul 26 17:02:49 pfn: where can I purchase this "friend"-thing? It sounds useful Jul 26 17:03:25 They put up the video for the MAKEwithMOTO event I went to. https://www.youtube.com/watch?v=7l4aKM8nIog Jul 26 17:08:17 Thorbear, ikr?! Jul 26 17:14:01 if there a way to show how much LinearAlloc is taken by dalvik for a process ? Jul 26 17:18:45 Hey. I have my database on the sdcard now. I want it to be on internal memory now. What path do I need to specify for that? Just no path at all? Jul 26 17:18:59 hello. is it possible to know for the ContentResolver what application it was called by? Jul 26 17:21:49 woosim: you didn't see my question but I'm sure you know the answer to it since you are using a ContentResolver Jul 26 17:21:53 Hey. I have my database on the sdcard now. I want it to be on internal memory now. What path do I need to specify for that? Just no path at all? Jul 26 17:23:42 Anyone have any good resource how to populate a GridView with images from MediaStore.Images on a Fragment? Jul 26 17:28:53 ok, just 1 question. Does the cursor points the end of the "say resultset" after query ? Jul 26 17:29:07 please guide! Jul 26 17:33:52 So, the only way to store data between screen orientation changes is through the Bundle? http://stackoverflow.com/questions/151777/saving-activity-state-in-android?rq=1 Jul 26 17:34:23 Name-value pairs sounds nice, but how would it help me say preserve an http connection open between activities? Jul 26 17:34:27 you can create a retained fragment and basically store whatever you want to in that Jul 26 17:37:18 I need to keep the HTTP connection open to the server, instead of re-initializing it everytime the user changes the orientation by accident or otherwise and hammering the website Jul 26 17:37:54 I'm having a problem getting a 4.3 emulator working. The emulator window appears but It just sits on a black screen. Jul 26 17:39:11 sega_dude: how long does it sit? The emulator can be *quite* slow to boot up Jul 26 17:39:27 sega_dude: I've had the emulator take 10+ minutes to boot on my laptop Jul 26 17:39:42 I let it sit for a good 10 - 15 minutes Jul 26 17:39:49 Wait, If I'm using a NativeActivity in my program, does the entire program have to be a NativeActivity? Jul 26 17:40:12 sega_dude: Do you have the same problem with other versions of Android? (4.2, 4.1)? Jul 26 17:40:41 Is the 4.3 emulator image actually out? Jul 26 17:40:59 Or can I just not use fragments with a nativeactivity in my manifest? :/ Jul 26 17:42:48 They've worked fine in the past Jul 26 17:43:52 sega_dude: Have you tried any of the alternative system images? Jul 26 17:44:12 What do you mean? Jul 26 17:45:49 Well like the ARM system image Jul 26 17:46:02 vs the x86 system image Jul 26 17:46:03 etc. Jul 26 17:46:34 No. Didn't think of that Jul 26 17:46:36 sega_dude: Check the SDK Manager. Some people have told me they get better performance with different system images (if performance is the actual issue) Jul 26 17:47:40 ok. I'll try them. Thanks Jul 26 17:48:48 If I want to convert my project over to a Gradle build, and it uses an external Android Library Project should I also convert the external Android Library Project to build with gradle? Jul 26 17:50:27 yiati: If it's only a jar dependency it's probably not worth it. Otherwise, yes, you probably should. Jul 26 17:52:00 I am trying to switch over to Android Studio now, and I have gotten so use to Eclipse that the Intellij flow of things is completely throwing me off Jul 26 17:57:52 hey everyone! would love to hear feedback on my new app: https://play.google.com/store/apps/details?id=io.omw.android Jul 26 17:58:34 did the android team ever release the io 2013 app? Jul 26 17:58:48 app source* Jul 26 17:58:55 also, why is my old Nexus 7 horrendously slow? Jul 26 17:59:15 why is a one yaer old extremely cheap device slow? Jul 26 18:00:27 canadiancow p_l and i were discussing above - seems to be a problem with some 2012 N7 flash Jul 26 18:00:37 move to first is done... because it is positioned before the first entry like it used to be in jdbc. anyway, thanks guys :P Jul 26 18:00:46 there has been a LOT of discussion about it, over various forums, boards, etc Jul 26 18:01:40 i think even the 2013 n7 verge review touched on it Jul 26 18:04:23 i will get my n7 tonight! Jul 26 18:04:34 ty best buy for selling early :) Jul 26 18:05:08 still waiting for the chromecast though Jul 26 18:07:27 how long usually does it take for the x86 images to pop up ? Jul 26 18:07:51 still using api 16 because api 17 x86 emu was kinda messed up Jul 26 18:08:22 (missing email, spammy logging, etc) Jul 26 18:10:56 Hey guys. Here's a pastebin os my code. Can anybody tell me why this crashes? I'm very new so please be gentle. http://pastebin.com/9c4g8VJ5 Jul 26 18:12:19 Corporalist: A stack trace saying which line crashed would help Jul 26 18:13:45 RyanM, it says an ass ton in the console. But the only thing I can pick out of my code is line 90 in there. It's this line: HttpResponse response = httpclient.execute(httppost); Jul 26 18:16:06 RyanM, http://pastebin.com/8XediLkP Jul 26 18:16:30 RyanM, That's what adb is outputting Jul 26 18:16:55 Why would my fragment's getActivity() return null? Activity A contains fragments E and F. Something is clicked in fragment E, it communicates with activity to notify of selection, activity calls startActivityForResult to Activity B. Then, Activity B calls setResult and calls finish, and then in Activity A's onActvityResult, I communicate back with the fragment (fragments E and F). Fragments E and F fire off an AsyncTask w Jul 26 18:16:55 hich takes a context, but again getActivity() returns null. PLEASE HELP Jul 26 18:17:23 god, I hate windows' exclusive locks, fucks up everything all the time Jul 26 18:21:06 Corporalist: you're doing network activity on the main thread. don't do that. use an asynctask instead. Jul 26 18:22:39 yiati: FWIW, Gradle is more or less independent from the Intellij thingy; just make sure you understand which system is actually doing the building parts... Jul 26 18:22:50 hehe Jul 26 18:22:59 i set up my system so they fight Jul 26 18:23:35 RyanM, Ok. Is it possible to do all of the other stuff first and start an async task later in the same activity? Jul 26 18:23:45 kjeldahl: Yes I understand that Gradles is independent, but I was just saying that the UI for setting up projects in the workspace is considerably different Jul 26 18:24:01 Gradle* Jul 26 18:24:06 lol Gradles Jul 26 18:24:34 Why is the fragment not attached to the activity in onActivityResult?! Jul 26 18:25:12 Fragment F was attached to activty A, activity A starts Activity B, then in Activity A onActivityResult, when I communicate with my fragment, my fragment's getActivity call returns null Jul 26 18:25:16 Unheard of! Jul 26 18:25:26 "And the cats in the gradle and the silver spoon.." Jul 26 18:26:13 Corporalist: in general, yes, though you should be careful about doing too much work on the main thread. Jul 26 18:27:37 RyanM, Awesome. Thanks a lot man. Jul 26 18:27:42 achuinard onActivityResult() timing is actually pretty peculiar. at one time, it was very different than what the docs said Jul 26 18:27:59 i doubt it has changed. i think it gets called before onStart() Jul 26 18:28:11 but still, dunno why you see that Jul 26 18:28:30 yiati: I gave up on the gui part of project settings in AS a long time ago; I understand AS can sync from Gradle, but have they added a GUI in AS for settings the other way now (from AS GUI into build.gradle file)? Jul 26 18:28:32 gotta love all that BS with state management ! Jul 26 18:30:45 No problem Jul 26 18:30:45 kjeldahl: No there is still the dialog that pops up when you try to enter the gui project setup stating that "no changes made in this window will do anything to your project. this will be enabled later..." Jul 26 18:42:27 what am i doing wrong if i create a New Topic in the android-ndk google group and it doesn't show up, while ALSO saying "Recently posted to: android-ndk"? Jul 26 18:59:27 yiati: Ah, so that confirms that sync is one way only; any changes to your project need to be put into the build.gradle file, and then press the "gradle sync" button in the AS gui. Jul 26 19:02:52 Hello all! Is there anyway to get the LOOKUP_KEY of the currently connected phone call in the contact list? Jul 26 19:05:25 http://imgur.com/a/JvcXt Jul 26 19:05:28 Who i sjelly? Jul 26 19:05:29 Who?? Jul 26 19:05:37 been having this strange issue with fragments. I have one activity and 6 fragments which I switch out base don what item the user picks, issue is when coming back to the app from the app being in the background sometimes the app will show all the fragments, so it unhides some. what my fix is in the onResume of the activity I have a reference to the last fragment, Im saying to null out and remove all the other fragments except for the last reference Jul 26 19:05:38 is this the correct way to do it? Jul 26 19:10:33 anyone? any advice? it seems to be working but not sure if this is a retarded way to do it Jul 26 19:11:46 To use the CursorLoader from the Support Library, do I import both the normal CursorLoader and the CursorLoader from the support library? This would be so I could support pre-CursorLoader versions as well as current versions. Jul 26 19:19:19 cheese1756 probably better to use the support lib version only Jul 26 19:19:31 g00s: That sounds good, thanks Jul 26 19:25:04 Hmm? AdapterView.setEmptyView() works kind of dumb Jul 26 19:28:58 hi, i installed the 32bit sdk on win8 64bit, i have 32 bit jdk, i added the environment variable JAVA_HOME to my jdk dir, SDK manager still wont open Jul 26 19:29:00 any ideas? Jul 26 19:44:49 hello Jul 26 19:45:25 i'm an experienced server side developer and architect, used to do a lot of desktop 4 years ago. i've also played a bit with android when it wasn't Google's Jul 26 19:45:43 i've decided now is the time to get hard-core development on Android for myself Jul 26 19:46:22 I'm compiling a list of resources so that I make a quick transition from completely clueless to very experienced.. including books, webcasts, courses etc.. Jul 26 19:46:31 anyone knows a notable resource? Jul 26 19:47:06 something that's worth the effort Jul 26 19:47:45 the new boston has an android series i liked Jul 26 19:50:23 Greetings, I'm looking to create an interface that's hidden in the Android API (https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/DataSource.java) . Can someone advise me on how this can be done? Jul 26 19:50:57 kaiba, the new boston? Jul 26 19:51:07 yeah, some dude on youtube. hes pretty funny Jul 26 19:51:29 is youtube down?! Jul 26 19:51:38 Oh wait, just found out how. Neverminds! Jul 26 19:51:38 holy crap Jul 26 19:51:44 if he already knows an oo language he might as well just start writing apps, pick a project and do it Jul 26 19:52:07 you guys get 500 out of youtube? Jul 26 19:52:17 nope Jul 26 19:52:32 i'm getting a consistent 500 internal server error from youtube Jul 26 19:52:35 nope Jul 26 19:53:35 ok works now Jul 26 19:53:39 that was strange Jul 26 19:53:42 pellis you're experience with google tech starts now Jul 26 19:53:50 get used to it :D Jul 26 19:54:03 kaiba, so that series looks nice, i'll add it. Jul 26 19:54:15 maybe i'll compile a list of resources i can share with you guys when its done Jul 26 19:54:27 pellis, what are you used to developing? Jul 26 19:54:30 also non-free (but good) content is good Jul 26 19:54:45 seems tautological :) Jul 26 19:54:56 brx_, ruby, node.js, C#/.Net, Java in my far past, C/C++ Jul 26 19:55:43 i won't be happy just 'making an app'.. i'll be happy when i'll do everything properly, and know how everything works behind the scenes :) Jul 26 19:56:01 i remember there was an android internals book.. that's the sort of stuff i like to dig into Jul 26 19:56:02 you already know java, just look at some sample code from the sdk Jul 26 19:56:37 look at the activity lifecycle and the guides on d.android.com Jul 26 19:56:41 brx_, sure.. but again i'm not looking into making an app.. i'm looking into getting years of experience in the shortest amount of time :) Jul 26 19:56:51 pellis i don't remember an android internals book; there is a WP 8 internals book Jul 26 19:57:07 g00s, there is one. i think it was called embedded android Jul 26 19:57:10 let me see.. Jul 26 19:57:53 there http://www.amazon.com/Embedded-Android-Porting-Extending-Customizing/dp/1449308295 Jul 26 19:58:06 pellis: while not great for general learning, when there's a specific thing you want to dig deep into, keep in mind you can dig into android's source itself :) Jul 26 19:58:26 JesusFreke, yup. might be overkill for start though Jul 26 19:58:53 everything that i learn, i usually put in what ever i can to get the best material i can learn from. and often that kind of thing exists Jul 26 19:59:14 i do this even prior to getting hands-on, and it gives you the kind of self-confidence you need while doing it. Jul 26 19:59:43 * pfn adds tablet layouts to his silly keyguard app Jul 26 19:59:49 I'm more the opposite, but different people learn different ways :) Jul 26 19:59:56 Can I import a cursor into a CursorLoader without using URIs or the CursorLoader Constructor? I'm using raw queries that go beyond what Android offers, so those aren't exactly options Jul 26 20:00:32 JesusFreke, yep. though i must say i've learnt anything from programming to playing music that way. it proved itself again and again, this is the shortest way to become an expert in any subject - getting the right and proper education (that might cost a lot) Jul 26 20:01:33 so if there's an android training course i can pay for that isn't crap - i would Jul 26 20:02:42 cheese1756 you'll have to make your own Loader ; i think there are a few on github Jul 26 20:03:09 you must have a great mind. you are expert in ruby and node.js .net java c and c++, and now you will become an android guru too? Jul 26 20:03:17 a great example is a high quality software shop releasing their training material.. thoughtbot did this and the stuff there is really valuable https://learn.thoughtbot.com/prime Jul 26 20:03:18 fascinating :) Jul 26 20:03:25 brx_, that is my intention :) Jul 26 20:04:33 brx_, it is not without drawbacks.. i know it might sound funny. Jul 26 20:06:19 does NDK not include sys/*.h or am i missing something Jul 26 20:06:55 pelis cool cool, sounds like you have a plan Jul 26 20:07:42 when i read books on programming i tend to drift off, or forget it, unless I rehears it straight away and use what i learnt in a context Jul 26 20:08:06 you shouldn't read books on programming Jul 26 20:08:16 indeed, i use them as reference Jul 26 20:08:16 pellis: my experience is opposite. I've learned java/dalvik bytecode/unicycling/didgeridoo mostly from a "jump in and start playing around" approach :). Although for tabla, I did take more of your style of approach. Jul 26 20:08:18 you should program Jul 26 20:08:22 brx_, over the years i found that videos are more effective than books. Jul 26 20:08:23 readin books as you go Jul 26 20:08:28 mniip exactly Jul 26 20:08:58 It depends on the subject matter, and how you personally learn best Jul 26 20:09:01 pellis, cool ye, more visual, more anchors Jul 26 20:09:10 brx_, mniip reading books looks useless for programming, and often after i finish one i feel that i remember nothing and that it was a waste of time Jul 26 20:09:25 but in practice, there's a lot your brain absorbed that you have no idea that it did Jul 26 20:09:25 exactly Jul 26 20:09:40 yep, you embody it Jul 26 20:09:46 i think that if you can retain 30% of the information in the first read - that's also very valuable Jul 26 20:10:03 because this 30% will save you so much time, that in total it will equal the time you reading the book Jul 26 20:10:04 i don't like books nor videos though Jul 26 20:10:13 i use references, manuals, etc Jul 26 20:10:19 and g***le Jul 26 20:10:30 a lot of newbies will waste a lot of time that you won't - because the book gave you 10 small tips that helped you overcome the common pitfalls Jul 26 20:10:38 google's a curse word now? Jul 26 20:10:41 * JesusFreke scratches his head Jul 26 20:10:59 you know how the saying goes Jul 26 20:11:09 if you want to become better, go work with a person that's 10 times better than you Jul 26 20:11:20 but if you think about it. why? Jul 26 20:11:44 so they can woop your arse into shape Jul 26 20:11:45 because you'll be watching him (video), and you'll be absorbing his tips and how he works (books - but *good* books) Jul 26 20:11:57 Ugh Android studio Jul 26 20:12:00 I"m stick with INtellij Jul 26 20:12:06 99% of the tech books out there are crap Jul 26 20:12:20 but the 1% that's good - is invaluable Jul 26 20:12:34 i'm guessing most chances there isn't such material for android yet Jul 26 20:12:34 pellis, err, i seem to have missed the topic, videos about what Jul 26 20:12:44 programming in general? Jul 26 20:12:44 mniip, android training Jul 26 20:12:48 oh Jul 26 20:12:49 android Jul 26 20:12:50 eh Jul 26 20:12:51 uh Jul 26 20:13:26 i see that marakana has a good series of training Jul 26 20:13:29 pellis, new boston someone already said, and theres another on YT "my bring back" or something if you are into videos Jul 26 20:13:33 any ideas? Jul 26 20:13:34 hi, i installed the 32bit sdk on win8 64bit, i have 32 bit jdk, i added the environment variable JAVA_HOME to my jdk dir, SDK manager still wont open Jul 26 20:13:37 take java, take google's style of code Jul 26 20:13:42 go ahead and copulate Jul 26 20:14:43 SillyTalker, is java in your path Jul 26 20:15:08 mniip: i don't know, how do i add it? Jul 26 20:15:34 the same place you added JAVA_HOME Jul 26 20:15:38 find PATH and edit Jul 26 20:15:46 see if there is java in it Jul 26 20:15:49 and if not, add it Jul 26 20:15:50 mniip: just add the dir? Jul 26 20:16:04 dir where java.exe and such are Jul 26 20:16:22 PATH is a semicolon-separated list Jul 26 20:16:52 yeah i had to add something to it before but i forgot how but i'll try hold on Jul 26 20:18:17 mniip: added it, still wont run Jul 26 20:18:44 i wish they didn't use java i can't even ghet the sdk to work properly Jul 26 20:18:47 then no idea Jul 26 20:18:55 i don't use windows a lot Jul 26 20:19:01 not at all, actually Jul 26 20:19:02 what exactly have you added to path, and what exactly is in your java_home ? Jul 26 20:19:15 i need windows for a bunch of other stuff but i can use a virtual machine Jul 26 20:19:28 C:\Program Files (x86)\Java\jdk1.7.0_25 Jul 26 20:19:33 @ Thorbear Jul 26 20:19:44 that's in path and set to JAVA_HOME Jul 26 20:20:25 add \bin for the path one Jul 26 20:20:31 yeah i just read that loli just read it needs Jul 26 20:20:43 loli? >_> Jul 26 20:20:48 lol + I Jul 26 20:20:58 lol that was the part i already typed and i thought i deleted it.. Jul 26 20:21:31 still wont work Jul 26 20:22:01 SillyTalker: Did you try saying please? Jul 26 20:22:23 Brian|CB: no i'd rather hit it with a hammer Jul 26 20:22:42 how do i pinpoint the problem, is there a log somewhere? Jul 26 20:22:51 it's frustrating that i do not even get an error Jul 26 20:23:04 well, you can open cmd and try to run java Jul 26 20:23:13 that way you'll know if the path works Jul 26 20:23:20 yep java runs Jul 26 20:23:45 you can run java -version in cmd without navigating to the correct folder? Jul 26 20:23:48 and the version it reports is correct too Jul 26 20:23:58 yep i can Jul 26 20:24:26 what about javac? Jul 26 20:24:33 yep Jul 26 20:24:47 and its teh same correct version Jul 26 20:24:48 then the path certainly works Jul 26 20:25:06 what exactly was it that doesn't run? Jul 26 20:25:20 SDK Manager.exe Jul 26 20:25:22 that's all Jul 26 20:25:39 i can only use 4.2 now and i want to use other android versions as well Jul 26 20:26:25 hmm, run as admin? Jul 26 20:26:41 same result Jul 26 20:26:48 cmd window pops up and closes Jul 26 20:27:02 why does this thing not give an error if it does not start Jul 26 20:27:04 ah, then there IS a log Jul 26 20:27:12 where please? Jul 26 20:27:28 navigate to wherever the sdk manager exe is, open cmd, run the program from cmd Jul 26 20:27:43 tried, no oputput Jul 26 20:27:44 the log is in cmd, but the window closes instantly if you didn't open it manually Jul 26 20:27:48 ah Jul 26 20:27:48 nope Jul 26 20:27:51 no output whatsoever Jul 26 20:28:46 B:\Program Files (x86)\Android SDK>"SDK Manager.exe" B:\Program Files (x86)\Android SDK> Jul 26 20:28:54 B:\Program Files (x86)\Android SDK>"SDK Manager.exe" B:\Program Files (x86)\Android SDK> Jul 26 20:29:16 sorry accidentally pasted twice Jul 26 20:29:17 right, opening the sdk manager here too there is a cmd-window that flashes open before it actually runs Jul 26 20:29:30 wait, B: ? you had C: in the other ones... ? Jul 26 20:29:32 yeah only it does not run here lol Jul 26 20:29:44 yes Java is installed on my C partition Jul 26 20:29:49 android SDK on B Jul 26 20:29:57 B... Jul 26 20:30:01 lol Jul 26 20:30:02 isn't that second floppy Jul 26 20:30:09 I thought so too Jul 26 20:30:11 in the 90s yes Jul 26 20:30:18 i can make it D if you want :p Jul 26 20:30:19 man it's windows Jul 26 20:30:20 I only have C D F here for disks Jul 26 20:30:21 nothing changes Jul 26 20:30:41 lol it does not matter you can assign any letter you want Jul 26 20:31:04 Of course it doesn't matter, its just odd Jul 26 20:31:08 A and B are floppies, C and D are hard drives, F-K are usb devices, W-Z are network devices Jul 26 20:31:56 Not entirely true Jul 26 20:32:21 well, it's a convention Jul 26 20:32:29 A and B are floppies, C is main hard drive, D-K CD/DVD or hard disks Jul 26 20:32:33 but i thought A and B were fixed to those meaning Jul 26 20:32:43 s Jul 26 20:32:44 they are not Jul 26 20:32:45 A and B are probably fixed to that Jul 26 20:32:47 it does not matter at all Jul 26 20:32:56 but C-Z aren't for sure Jul 26 20:33:04 i'll just move the SDK to C and see Jul 26 20:33:11 zinx, C-} in fact :P Jul 26 20:33:32 er, C-] Jul 26 20:33:36 } is the lowercase Jul 26 20:34:15 roflol Jul 26 20:34:22 in C it works... Jul 26 20:34:29 * SillyTalker changes his drive letter Jul 26 20:34:53 So then it DOES matter :) Jul 26 20:35:21 yep Jul 26 20:35:29 first time it causes trouble for me though Jul 26 20:35:38 just don't try to open B:\CON\CON Jul 26 20:36:09 * Thorbear don't get the joke Jul 26 20:36:19 Thorbear: used to cause windows to bluescreen Jul 26 20:36:37 I seriously doubt that's still the case Jul 26 20:36:41 let me try Jul 26 20:36:45 the fun part was windows IRC clients often had auto-get turned on Jul 26 20:36:57 you could send them CON\CON and it would bluescreen :P Jul 26 20:37:15 not the case anymore =) Jul 26 20:37:25 could not find the path specified Jul 26 20:37:27 yeah, they fixed it a few times (they didn't completely fix it the first few) Jul 26 20:38:04 lol i hope all my other crap keeps running Jul 26 20:38:10 you can probably still forkbomb by doing %|% or w/e though Jul 26 20:45:25 well thanks for the help Jul 26 20:57:08 zinx, file:/// Jul 26 21:03:33 so, again Jul 26 21:03:49 why are sys/*.h missing from NDK Jul 26 21:04:50 probably not considered part of the native API Jul 26 21:05:27 how bout sys/stat.h Jul 26 21:05:32 So I have my new N7, but my CHromecast doesn't get in till tomorrow Jul 26 21:05:35 and it is shipped to my office Jul 26 21:05:38 so I have to wait till Monday to play with it Jul 26 21:05:39 D: Jul 26 21:05:47 mniip: seems silly to me, maybe you're missing an include path somehow? Jul 26 21:06:23 no i checked Jul 26 21:06:30 i `find`ed all headers Jul 26 21:06:35 there isn't much of them Jul 26 21:10:25 zinx, http://bpaste.net/raw/OW8UwbyzLsDlCgjsU2iV/ Jul 26 21:12:47 mniip: what header are you looking for? I just grabbed the r9 ndk, and it seems to have a large selection of header files in various sys directories for various architectures :) Jul 26 21:13:01 sys/stat.h is there Jul 26 21:13:49 http://pastebin.com/2iWuTb5t Jul 26 21:14:11 oh right Jul 26 21:14:14 platforms/ Jul 26 21:27:15 crtbegin_dynamic.o: No such file: No such file or directory Jul 26 21:28:52 it's there in usr/lib, but it doesn't see that Jul 26 21:36:04 oh, just got notification for the 4.3 update Jul 26 21:36:07 neat Jul 26 21:36:40 D: Jul 26 21:36:49 When is nt eold N7 gonna get 3.2 mang Jul 26 21:36:51 4.3* Jul 26 21:37:11 don't know, this is on my Galaxy Nexus Jul 26 21:51:24 hello. does anyone do android development on windows 8? im considering moving from ubuntu(linux) to windows for hardware compatibility reasons... but i need to know actually using the os once it is setup will be ok Jul 26 21:56:57 https://lh4.ggpht.com/2sqEPAwsDv_oEdtaFp5pEVviatBWaOgsyonidIFscNVAXpdbAX9576t7xclVIqyPQA=h900-rw Jul 26 21:56:59 heh Jul 26 21:58:00 Up until now, I've always just started writing code when I wanted to write a program. With android, I'm finding it a very difficult and time consuming process. My entire background in programming consists of a few college classes in java, VB, and C++, and everything else is self-taught. I would like to learn a better way to design a program before I just start coding so that the coding will go fas Jul 26 21:58:00 ter and easier. Is there such a way, and if so, does anyone know where I could find it on google? Perhaps some search terms to try. I keep finding tutorials on how to do one specific thing. Jul 26 21:58:56 experience Jul 26 21:59:03 experience helps you build larger applications quickly Jul 26 21:59:12 otherwise, good planning Jul 26 22:03:42 Your Production APK needs to meet the following criteria: Jul 26 22:03:43 Uses available screen space on 10-inch tablets Jul 26 22:03:44 but it does, damnit Jul 26 22:04:30 damccull_, go to the library and real Code Complete. A little planning up from can save a lot of time. Jul 26 22:04:51 that's a book? Code Complete? Jul 26 22:04:58 damccull_, yes Jul 26 22:05:04 i shall. Jul 26 22:05:06 thank you Jul 26 22:05:51 Unless I'm just doing a quick, throwaway program, I generally have a vague idea of what all my classes will be before I start Jul 26 22:06:17 Ologn: is this a good price for the value of this book if I were to purchase it? http://www.amazon.com/Code-Complete-ebook/dp/B004OR1XGK/ref=tmm_kin_title_0 Jul 26 22:07:16 Then again, not only did I not really understand the Service class or ContentProvider class, I didn't really understand the Activity class. So preparation might be a little hard if you are very new to the Android API. Jul 26 22:08:28 damccull, I don't know if it's the absolute cheapest but it looks good enough Jul 26 22:09:16 Code Complete is a general programming book, not specific to Android Jul 26 22:09:25 Ologn: I'm familiar with the android API. I just don't weld the peices together right. So then I have to go add new parts or slice some off to make them fit right. Jul 26 22:09:30 damccull: best thing you can do is gain experience in the Android API by sitting down and playing around with them and understanding the interaction between the OS sub-systems and their components Jul 26 22:10:33 Reading the open source Android application example code can be helpful too Jul 26 22:10:36 Napalm: *nod* Yes. It's true. However, my programmin' skills suck at large, even outside android :D Therefore I'd like to learn a better process than just "sit down and code" Jul 26 22:10:56 Not the system code but the example apps code Google put out Jul 26 22:11:24 damccull: you say you are familiar, but in what way.. you can read the interfaces for classes and see how they are suppose to interact but do you know Why they were built that way in the first place.. what prblems are solved by their use in the prescribed manner Jul 26 22:13:42 Napalm: I understand the basic parts of android that way. There are a lot of classes i've not even seen yet. I've been tinkering since they first released ADT for eclipse, however long ago that was. Jul 26 22:14:05 damccull: go here https://android.googlesource.com/ and search the page for platform/packages/apps .. these are the in-built apps that come preinstalled on your device. Clone the repo's and examine the source code. While examining the code.. try to think about the reasoning behind the class interactions. Jul 26 22:14:39 right, back to my dinner Jul 26 22:16:18 Napalm, what's up with that icon you made? it's downright ... beautiful ;-) Jul 26 22:18:11 pfn: its the start of a better icon for your app Jul 26 22:18:23 not really, heh Jul 26 22:18:33 yes really, i said "start" Jul 26 22:18:34 :P Jul 26 22:18:44 I just need to add some texture to the existing icon Jul 26 22:20:07 too bad it's such a niche app Jul 26 22:25:05 is there no easy way to add all elements of an array to an arraylist? Jul 26 22:25:23 addAll(Arrays.asList(...)) Jul 26 22:25:26 noob Jul 26 22:25:26 :) Jul 26 22:25:31 that creates a list though Jul 26 22:25:35 which has a lot of overhead Jul 26 22:25:37 then no Jul 26 22:25:41 and it doesn't create a list Jul 26 22:25:44 it creates a wrapper Jul 26 22:25:55 oh really :) Jul 26 22:26:05 unless the harmony impl does differently Jul 26 22:26:43 It's still annoying to have to create a temporary wrapper object Jul 26 22:26:44 return new ArrayList(array); Jul 26 22:26:49 * JesusFreke shakes his fist at java Jul 26 22:26:50 thats what it does Jul 26 22:27:00 canadiancow, look at the ArrayList it's creating, not java.util Jul 26 22:27:09 theres no reason a new method cuoldnt be added that just iterates through the array and adds each element Jul 26 22:27:34 private static class ArrayList extends AbstractList Jul 26 22:27:34 implements RandomAccess, java.io.Serializable Jul 26 22:27:46 hey i know, we should make an interface IIterateThroughElementsForAddAll Jul 26 22:27:58 zinx: my thoughts exactly Jul 26 22:28:09 then you can have factories that instastiate an object that implements that interface! Jul 26 22:28:20 gooooo Enterprise Jul 26 22:28:50 i cant even find that arraylist constructor in ArrayList.java ~_~ Jul 26 22:29:26 canadiancow, it's not Jul 26 22:29:31 canadiancow, in Arrays.java Jul 26 22:29:35 I said it's not java.util.ArrayList Jul 26 22:29:41 on an onSharedPreferenceChangedListener, how would I get the sharedPreference as a variable for using in an if/else block? I want to test whether the sharedPreference that's been changed has the key 'pref_devicelocation' Jul 26 22:29:51 canadiancow, unless harmony did it differently Jul 26 22:29:51 canadiancow: it's the first constructor (which is package-private) Jul 26 22:29:59 hey guys, if I want to make games and apps, do you think it should be sold under the same or different name? Jul 26 22:30:08 which accepts an array and directly uses that as its backing storage Jul 26 22:30:18 public class Arrays { Jul 26 22:30:19 private static class ArrayList extends AbstractList implements Jul 26 22:30:23 ^^ in luni Arrays.java Jul 26 22:30:48 pfn: oh, I didn't even notice it wasn't the "standard" ArrayList Jul 26 22:30:54 but yeah, you're right Jul 26 22:31:24 yes, slightly confusing Jul 26 22:31:31 and harmony did it the same as jdk Jul 26 22:31:46 How do I add my app to the "share" menu found in browsers? Jul 26 22:32:44 Or any share menu for that matter, but I assume you can specify the type of data to be shared Jul 26 22:33:16 cheese1756: lemme see how I did it for penroser. I forget now Jul 26 22:33:22 OH Jul 26 22:33:25 Arrays.ArrayList Jul 26 22:33:25 wtf Jul 26 22:33:33 canadiancow: ha, yeah. exactly Jul 26 22:33:42 dat java Jul 26 22:33:55 JesusFreke: Thanks Jul 26 22:34:22 cheese1756: oh, nevermind. I didn't implement a share "receiver" Jul 26 22:34:37 just something that shares to existing receivers Jul 26 22:35:05 JesusFreke: Not a problem. I might have found a few links. Thanks for looking Jul 26 22:38:32 anyone familiar with how to just get the key of a sharedpreference in an onSharedPreferenceChangeListener? Jul 26 22:57:23 <|0xD34D|> csterling123: isn't the key one of the parameters passed in to onSharedPreferenceChanged() ? Jul 26 22:57:48 canadiancow, that's what I said Jul 26 23:51:29 I want my app to display information. The information will come in modules that can be added, removed, or filtered at any time. Is a database the best way to do this, and just read the data into it, then delete it from? Or would it be better to do it some other way, like xml or json files or even an archive containing many individual data files? Jul 26 23:54:07 damccull what is a module ? Jul 26 23:54:25 Does Android Studio not yet allow you to change font sizes for the editor? Jul 26 23:54:56 danl, sure it does, copy the theme first Jul 26 23:55:40 pfn ah Jul 26 23:56:29 g00s: a collection of items to be read into the app and displayed to the user. All modules will contain items conforming to a standard. But I want entire modules to be able to be added, removed, or filtered out in the app. Jul 26 23:56:29 much better Jul 26 23:56:52 pfn thanks, now I can see my code while leaning back in my chair Jul 26 23:56:55 g00s: text and images Jul 26 23:57:02 for the data items Jul 27 00:11:42 I use Maps V2 and want to support API8-API17. In API8-API10, Activity inherits FragmentActivity, and in API > 10, inherits Activity. How do I solve it so I won't be needing 2 acitivities? Jul 27 00:26:28 jwalker60: you can just use fragmentactivity on everything. The newer systems will use it fine too. I think it might just pass code to the native APIs if it detects them anyways. Jul 27 00:29:13 Hey guys, if I have a UI element, (specifically a progressbar/activitycircle) how can I have it keep showing the element until a boolean is set to false without freezing up the whole app with a while (!var){} progressbar.hide() etc Jul 27 00:30:52 with thread communication Jul 27 00:31:18 you wait for a lock, and instead of setting a boolean to false, you release the lock Jul 27 00:31:32 What do you mean "wait for a lock" Jul 27 00:32:04 all objects have a .wait() method and notify and notifyAll Jul 27 00:32:14 that's because they contain an intrinsic lock Jul 27 00:32:35 Object o = new Object(); // can be any type, but we just need the lock Jul 27 00:32:42 I'm sorry, ,I'm not familiar with this concept, care to explain? Jul 27 00:33:05 synchronized (o) { o.wait(); // will stay until someone calls .notify (if we're lucky or noone else is waiting) or .notifyAll } Jul 27 00:33:53 before you do the .wait() though, you need to make sure that whoever normally set a boolean to false, has access to this object o, so they can call notifyAll on it Jul 27 00:33:54 so I tell it .notify when I want to show the element Jul 27 00:34:06 ? Jul 27 00:34:10 yes, that would cause the .wait(); to stop blocking and continue Jul 27 00:34:26 and what type is synchronized? Jul 27 00:34:30 you need to remember synchronized (o) { //code here } notation Jul 27 00:34:33 or does it not need one? Jul 27 00:34:37 it's not a type, it's a keyword Jul 27 00:34:40 ah ok Jul 27 00:34:55 and is o my UI element? Jul 27 00:35:29 no, as i wrote in the comment it can be any element you want to lock on, normally you just create new Object(); for it Jul 27 00:35:36 and call it "lock" Jul 27 00:36:01 ok, and then when I want to hide it I do..? Jul 27 00:37:29 is there a reLock or something? Jul 27 00:38:01 what would that do? Jul 27 00:38:06 use callbacks to indicate status changes Jul 27 00:38:29 using explicit locking isn't encouraged Jul 27 00:38:32 hide the UI element once the process is finished Jul 27 00:38:46 use asynctask Jul 27 00:39:06 Whats the advantage of asynctask vs a plain Java thread? Jul 27 00:39:18 show progress spinner in pre-execute hide in post Jul 27 00:39:38 the fact that you don't understand threads makes them superior Jul 27 00:40:28 I understand threads, but I wasn't able to get it to work Jul 27 00:40:37 I actually tried to use a thread and have it keep checking within that thread Jul 27 00:40:43 but the program still froze all the same Jul 27 00:41:26 I'm not sure about the real issue here Jul 27 00:41:26 right, because you don't understand threads Jul 27 00:41:38 show UI; do stuff; hide the element; Jul 27 00:41:54 it seems to be a single thread that should do that (well, the show/hide UI is a call to the UI thread) Jul 27 00:42:13 I do understand threads, create a Thread as extending thread, create void run, put code, new ThreadName().start() Jul 27 00:42:25 wrong Jul 27 00:42:27 that runs it off seperatley to allow other threads to do other things Jul 27 00:42:32 really? Jul 27 00:42:34 care to explain then? Jul 27 00:43:02 the fact that you think you have to extend thread shows that you shouldn't be using threads Jul 27 00:43:12 runnable Jul 27 00:43:13 he didn't say that Jul 27 00:43:18 since when do you not create a new class and extend thread? Jul 27 00:43:32 That's how I was taught to use threads Jul 27 00:43:35 since java 1.0 Jul 27 00:44:04 ollienx, the reason why you don't extend thread and do it that way, is because you're not extending threaded behaviour in general Jul 27 00:44:19 instead, you want a thread, and want the thread to have a piece of code to execute and that's with: Jul 27 00:44:37 Runnable r = new RunnableClass(); Thread t = new Thread(r); t.start(); Jul 27 00:44:45 it's a design thing, they result in the same running code Jul 27 00:44:51 but it's misuse of inheritance Jul 27 00:44:59 does that make sense? Jul 27 00:45:02 better yet, use a thread pool instead Jul 27 00:45:43 you're also limiting your class from extending from other classes once you extend Thread Jul 27 00:46:43 and as pfn says, ExecutorService is really the way in java 5+ to handle stuff Jul 27 00:46:46 well that's new to me Xabster Jul 27 00:46:54 thanks Jul 27 00:46:59 no worries Jul 27 00:47:40 ok so, should I do an ASyncTask instead? Jul 27 00:50:42 that's the Android way, yes Jul 27 00:51:37 i don't know of any advantages of ASyncTask over a custom thread other than ease of use and following the standard android approach (easier to read for future android devs) Jul 27 00:53:45 ollienx, read this: http://developer.android.com/reference/android/os/AsyncTask.html Jul 27 00:54:15 onPreExecute and onPostExecute are both invoked on the UI thread and appear to be exactly what you need Jul 27 00:54:19 I'll take a look thankgs Jul 27 00:55:35 anyone from South Africa here Jul 27 01:26:02 fyi, it's AsyncTask, not ASyncTask Jul 27 01:26:19 ASyncTask sounds like it would be a task that synchronizes something :P Jul 27 01:32:17 how to fix build/core/base_rules.mk:130: *** prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/lib: MODULE.HOST.STATIC_LIBRARIES.libbfd already defined by prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/lib32. Stop. when build android 4.3 Jul 27 01:52:31 if i wanted an persistant tcp connection...what would i use? Jul 27 01:52:40 java thread? Jul 27 01:56:34 service Jul 27 01:57:24 ok, and next thing...Peer2Peer chatrooms....with a tracking server....Good Idea? Jul 27 01:58:15 to what end Jul 27 01:58:18 for what purpose Jul 27 01:59:48 because irc is dead Jul 27 02:00:01 and theres no good chatroom apps in the world Jul 27 02:05:38 Joseph|Armstrong why not make a IRC client (and not call it IRC, just "chat")? Jul 27 02:08:34 i dont have the resources for servers Jul 27 02:08:38 and bandwidth Jul 27 02:08:54 P2P requires a minimal server setup for a tracker Jul 27 02:12:13 but use an existing server Jul 27 02:13:00 I'm sure theres open source code for an irc client so you can base your code on Jul 27 02:13:58 i want to use json as a tracker Jul 27 02:14:17 irc spec are outdated and work with nodes Jul 27 02:14:28 i know the rfc Jul 27 02:14:44 it will be a modern irc Jul 27 02:15:01 using a web service as a tracker Jul 27 02:28:58 I think the fact that your here shows irc isn't dead. It's all a matter of use cases. Jul 27 02:32:37 it would be best if the server could be backwards compatible with irc and allow the irc clients to communicate with the newer protocoled clients Jul 27 02:46:21 a gateway Jul 27 02:46:35 if i did make an app as such would ppl in irc be willing to support it? Jul 27 02:53:56 i don't Jul 27 02:58:36 well I might use, why not, as long as there's people Jul 27 02:58:51 and interesting channels, etc **** ENDING LOGGING AT Sat Jul 27 02:59:58 2013