**** BEGIN LOGGING AT Mon Jun 10 02:59:58 2013 Jun 10 03:00:00 surely you can just do a user install? Jun 10 03:01:03 you either install an apk or you root the device to put stuff into executable filesystem Jun 10 03:02:06 you can't put executable files in the user section? Jun 10 03:02:19 like, over android transfer or whatever the crap that app is called Jun 10 03:02:27 you can't put it on the usb storage Jun 10 03:02:33 I see :/ Jun 10 03:02:39 external storage is mounted noexec Jun 10 03:02:46 but you could put it in an app, presumably including a terminal app, /data/data/ directory Jun 10 03:02:47 I have a nexus 4 Jun 10 03:02:48 and chmod 755 it there Jun 10 03:03:05 there is no external storage, just "can be used over usb" storage Jun 10 03:03:29 lahwran, it's called external storage, even if it's really not :p Jun 10 03:03:34 I see :p Jun 10 03:03:43 it's a separate partition, I take it? Jun 10 03:03:46 yeah Jun 10 03:04:19 i think it might be the same partition these days, but like a directory mount, and indeed noexec Jun 10 03:04:21 I think it might be an ext3 or something when it's not an actual external storage one, but it's mounted through some fuse thing to look like a fat32 Jun 10 03:04:25 I think I read something liek that somewhere Jun 10 03:04:45 uh the nexus devices use this whacky ntp thing Jun 10 03:04:56 it requires a special interface app on the host computer you're using it from Jun 10 03:05:04 mtp Jun 10 03:05:04 err, mtp Jun 10 03:05:14 ntp is another thing I've been messing with a lot lately :p Jun 10 03:05:50 so I guess I have to get python from an app Jun 10 03:05:53 my phone has msc mode too but it automatically mounts the sdcard when I plug it in, I hate that :p Jun 10 03:06:43 I can't think of any way they could prevent python from executing python code from external storage, except for preventing read access to said external storage :p Jun 10 03:06:58 someone is confusing Android with GNU/Linux... Jun 10 03:07:11 lahwran, sure, if the python executable can be run, then you can run code from exteranl storage Jun 10 03:07:15 no problem Jun 10 03:07:15 Leeds: >:| Jun 10 03:07:30 Leeds: I'm not familiar with anything called gnu/linux? Jun 10 03:07:53 just linux - stallman does _wish_ it was called that, but fortunately it's not Jun 10 03:08:17 and I'm aware that android has a rather different setup, but as far as I know the android kernel hasn't branched _that_ much from linux Jun 10 03:08:36 except that this is actually the one case where it makes sense to call it that, since Android is explicitly Linux *without* the GNUish userspace... effectively the same kernel, effectively an entirely different userspace Jun 10 03:08:47 so yeah, kernel stuff works the same - but python ain't kernel stuff Jun 10 03:09:05 does android use a libc? Jun 10 03:09:09 and if so, which one? Jun 10 03:09:12 bionic Jun 10 03:09:14 yes, but not glibc - it's called bionic Jun 10 03:09:50 as a simple example of a fundamental difference, Android uses uids to enforce separation between apps - it almost never has a concept of users Jun 10 03:09:56 huh. I'll bet that's where the main issues are with porting python to android Jun 10 03:10:16 Leeds: "it almost never has a concept of users" directly conflicts with "each app gets its own user" Jun 10 03:10:17 :p Jun 10 03:10:41 no, it doesn't - and if you're going to say silly things like that, I'm going to get some lunch before the coming thunderstorm hits Jun 10 03:11:24 I'm just annoyed that you're trying to define away the things that contradict your assertion that "android isn't linux" - I understand they're diverged, but it's not like using UIDs differently makes them magically not users Jun 10 03:12:23 user is an english word to mean a person using a machine Jun 10 03:12:26 I understand that it's different. I'm attempting to minimize my assumptions Jun 10 03:12:32 apps are not people Jun 10 03:12:54 he used uid to mean the *nix concept of user, and the word user to mean the english. i think it's clear Jun 10 03:13:32 can gnu stuff be compiled to run on bionic? Jun 10 03:13:40 it seems unlikely Jun 10 03:13:50 depending, and with pain Jun 10 03:13:58 alternately, can you package glibc with an app? Jun 10 03:14:30 I compiled glib and various other libs for android for my project Jun 10 03:14:35 so, yeah... Jun 10 03:14:54 glib is a bit different, isn't it? my worry is that glibc will conflict somehow Jun 10 03:14:55 glib or glibc? Jun 10 03:15:00 glib Jun 10 03:15:20 i've seen it done with a chroot Jun 10 03:15:31 which requires rooting, right? Jun 10 03:15:32 I don't know what gnu stuff you'd want though :p Jun 10 03:15:38 like Motorola's old webtop, and there's some ubuntu chroots for android on XDA and other root oriented sites Jun 10 03:15:39 mainly I want to use git Jun 10 03:15:41 :p Jun 10 03:15:48 which I suppose isn't gnu but depends on a lot of it Jun 10 03:16:02 there's git clients for android Jun 10 03:16:12 right. Jun 10 03:16:14 I compiled this with bionic: https://play.google.com/store/apps/details?id=com.panaceasupplies.android.games.math Jun 10 03:16:16 of course someone's already solved this Jun 10 03:16:18 * lahwran is stupid Jun 10 03:16:20 The one big problem I had... Jun 10 03:16:36 ...was bionic did not have the locale stuff Jun 10 03:16:53 yeah, I had to disable the locale stuff in glib for my build -.- Jun 10 03:17:10 out of curiosity, why not use parts of the gnu systems for android? I mean, why didn't they Jun 10 03:17:18 I understand not installing coreutils on an embedded device Jun 10 03:17:31 I don't know enough about glibc to know why not to use it in such an environment though Jun 10 03:17:51 i think part of it was licensing, they wanted as much as possible apache to make it easier for manufactures Jun 10 03:18:18 wikipedia says because GPL Jun 10 03:18:21 kinda what I expected. once again, bitten by the GPL Jun 10 03:18:30 hello. I have a lengthy but important question. anyone wants to participate? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 10 03:19:15 Sircle: off the top of my head, a hack solution: always run the service, but allow the user to tell the service to stop doing anything Jun 10 03:19:30 the service stays running but doing nothing but waiting to be reactivated Jun 10 03:19:39 lahwran: thats what the question is. exactly Jun 10 03:19:52 ah. 's what I get for skimming :p Jun 10 03:20:15 ;) Jun 10 03:28:02 so… anyone else having troubles with the maps imports after the update? Jun 10 03:28:21 i swear, google… you've gotta stop making so many radical changes Jun 10 03:52:36 mornin' all Jun 10 04:01:49 hey everyone, I'm having troubles with DecimalFormat. Jun 10 04:02:02 I want the user to enter a bunch of numbers that sum to 1 Jun 10 04:02:10 either like 23.5 or .235 Jun 10 04:02:25 orm if its just one item: 1 Jun 10 04:02:43 any ideas about how to do this? Jun 10 04:19:55 :( Jun 10 04:33:30 I would like to change 23.6 to 0.236, how do I do this? I'm trying decimal format but it's giving 23.6 back Jun 10 04:33:57 divide by 100 Jun 10 04:35:03 but it's not always assured the the number will be 23.6, the user might input 0.236 Jun 10 04:35:38 and.. as an added bonous, i'd like to make 1 = 1.0 Jun 10 06:32:08 Where should I go if I wanna compile android kernels and I'm completely failing at following simple instructions? :D Jun 10 06:32:32 to school. Jun 10 06:32:44 That takes too long Jun 10 06:32:51 There's gotta be a channel in which I can bug people about it. Jun 10 06:34:09 #android-dev-dev (not really) Jun 10 06:36:09 Probably could ask in xda-developer's channel Jun 10 06:36:22 if it exists. Jun 10 06:57:37 or the mailing lists Jun 10 07:09:05 Hi everyone Jun 10 07:09:23 I need help understanding LVL Jun 10 07:09:40 I've always signed my app using a custom signature in eclipse Jun 10 07:10:12 must this apk signature be checked with LVL or it's something totally different? Jun 10 07:29:34 hi all, can i setStreamVolume with decimals? Jun 10 07:29:35 like 1.1 Jun 10 07:29:38 instead of index 1? Jun 10 07:29:53 this app: https://play.google.com/store/apps/details?id=opotech.finevolumev2 Jun 10 07:29:55 can do it Jun 10 07:30:04 sort of, they allow more volume steps Jun 10 07:30:11 so how do they do it? Jun 10 07:30:32 if i try setStreamVolume to 1.1 … it gets rounded to 1; Jun 10 07:36:08 hy all Jun 10 07:43:46 hi Jun 10 07:44:04 why aren't dev replies not shown at the front page? Jun 10 07:44:18 example: https://play.google.com/store/apps/details?id=com.troubi.kingofmath Jun 10 07:45:04 the review from user "n1kosspec" hasn't a reply at the front page, but it has in the tab "user reviews" Jun 10 07:50:29 how do i increase the amount of volume steps without rooting? i tried setting the getStreamVolume index in decimals.. 1.1, but they get rounded Jun 10 07:50:54 what is the way to go? i know it is possible, cause they use it in this project too https://play.google.com/store/apps/details?id=opotech.finevolumev2 Jun 10 07:51:14 is there a way to overwrite public static final int[] MAX_STREAM_VOLUME = new int[] { Jun 10 07:51:29 or should decimal indexes be possible for setStreamVolume? Jun 10 07:51:55 e.g. if you only have 5 indexes in a stream volume, i would like to make the current volume for instance: 0.75 Jun 10 07:52:08 thats like 15% volume Jun 10 07:58:33 Im getting out of memory error! Im capturing photos by calling camera api and then saving them on the sdcard. then in another activity i have a gridview to load those photos from the Uri path on sdcard. Jun 10 07:58:49 so now this is where i get out of memory error. each photo is 1080p! Jun 10 07:59:09 can i reduce their size on the fly when i try to load them into second activity? Jun 10 08:10:42 omid8bimo: If you mean load the images into ImageViews in layouts, that's one of the thing image loaders will do for you (reduce the size to fit the ImageView). Jun 10 08:13:43 how do i increase the amount of volume steps without rooting? i tried setting the getStreamVolume index in decimals.. 1.1, but they get rounded Jun 10 08:13:50 what is the way to go? i know it is possible, cause they use it in this project too https://play.google.com/store/apps/details?id=opotech.finevolumev2 Jun 10 08:13:51 kjeldahl: well i know that. i wanna if i can reduce their size on the fly before loading into ImageView? Jun 10 08:13:55 or should decimal indexes be possible for setStreamVolume? Jun 10 08:14:07 *i wanna know if.. Jun 10 08:15:46 omid8bimo: Check the link I gave you yesterday (https://github.com/nostra13/Android-Universal-Image-Loader). Search for OutOfMemoryError. It gives you a few suggestions. Jun 10 08:16:15 If you load the images one by one, then scale it, and then put it into your ImageView's, you should not be getting out of memory errors. Jun 10 08:16:26 If you do X images in parallell, you may run out of memory. Jun 10 08:16:50 If your scaler attempts to keep the original image, then you will most definitively get out of memory errors when populating a listbox or similar. Jun 10 08:17:06 kjeldahl: oh right. i think since i used a cursor to load paths from db, it happens in parallel Jun 10 08:17:35 Yes, probably. Jun 10 08:27:22 Could someone please help me out here? Jun 10 08:27:42 how do i increase the amount of volume steps without rooting? i tried setting the getStreamVolume index in decimals.. 1.1, but they get rounded (i think because int only allows whole numbers) Jun 10 08:28:28 so what is the way to go? can i extend / overwrite : " public static final int[] MAX_STREAM_VOLUME = new int[]" for a certain Stream? Jun 10 08:28:39 it is possible without rooting, there are apps which do this Jun 10 08:29:10 ? Jun 10 08:29:20 https://play.google.com/store/apps/details?id=opotech.finevolumev2 Jun 10 08:29:23 has 100 volume steps Jun 10 08:29:31 instead of 7 Jun 10 08:29:35 for all streams Jun 10 08:29:39 how do they do this? Jun 10 08:30:34 do they capture all streams and put it through there own renderer? and change the volume there? Jun 10 08:30:55 or do they change getStreamVolume Jun 10 08:31:07 or did they change the max_stream_volume ? Jun 10 08:45:24 Could someone please help me out here? ... how do i increase the amount of volume steps without rooting? i tried setting the getStreamVolume index in decimals.. 1.1, but they get rounded (i think because int only allows whole numbers) ... so what is the way to go? can i extend / overwrite : " public static final int[] MAX_STREAM_VOLUME = new int[]" for a certain Stream? ... There are apps which do this: Jun 10 08:45:25 https://play.google.com/store/apps/details?id=opotech.finevolumev2 ...has 100 volume steps... instead of 7 ..for all streams... how do they do this? ... do they capture all streams and put it through there own renderer? and change the volume there? ... or do they change getStreamVolume... or did they change the max_stream_volume ? Jun 10 08:51:20 I'm brand new to droid/java development; and I have installed android-studio on Linux. I've loaded up a default full screen application just to start learning on. However activity_fullscreen.xml and the GUI preview seem to have some errors: Rendering Problems Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style refere Jun 10 08:52:52 hey, anyone use Parse Push for delivering notifications? Jun 10 08:53:11 Hi. Do I need a SIM card to receive a GCM push on an HTC device ? Jun 10 08:53:41 Also any recommended beginners guides? Jun 10 08:55:02 My question is I can take a list of already obtained installationIds and add them to Parse, and have pushes be delivered without including the parse SDK in my app Jun 10 08:56:10 otiose: you probably want to ask that somewhere Parse-specific Jun 10 08:56:17 thats a good point Jun 10 08:56:46 agbeladem: I guess you didn't see my answer earlier, when you asked in #android Jun 10 09:00:50 So anybody else observed that DefaultHttpClient() caches response from last successful request if server goes down? :/ Jun 10 09:32:15 No, DefaultHTTPClient does not cache by itself. AsyncTask silently failing (W/System.Err instead of exceptions...) WILL trigger bad logic in client code that does not initialize responses on each request however... :-) Jun 10 09:32:20 hi, getSupportActionBar().setSelectedNavigationItem(someIndex) does select the item internally (calling getSupportActionBar().getSelectedNavigationIndex() afterwards returns the correct selection) but the visual representation does not change (old item is still selected in the UI). is there a workaround for this issue (running on android 4.2.1). I have tried removing / readding the tab, changing navigation mode, etc. it seems to help if the actionbar is inv Jun 10 09:32:58 s/onstructing/obstructing/ Jun 10 09:33:26 even removing all tabs and recreating them does not solve the issue Jun 10 09:46:53 I need to use the EGLImageKHR extension for my app which uses GL ES 2. All samples seem to be for NDK. Is it that this cannot be done from java? Jun 10 09:47:22 anyone done multithreaded game loop using independent frame/logic threads? Jun 10 09:47:41 I cannot find the required files to include, NDK uses glext2.h Jun 10 10:03:01 Could someone please help me out here? ... how do i increase the amount of volume steps without rooting? i tried setting the getStreamVolume index in decimals.. 1.1, but they get rounded (i think because int only allows whole numbers) ... so what is the way to go? can i extend / overwrite : " public static final int[] MAX_STREAM_VOLUME = new int[]" for a certain Stream? ... There are apps which do this: Jun 10 10:03:02 https://play.google.com/store/apps/details?id=opotech.finevolumev2 ...has 100 volume steps... instead of 7 ..for all streams... how do they do this? ... do they capture all streams and put it through there own renderer? and change the volume there? ... or do they change getStreamVolume... or did they change the max_stream_volume ? Jun 10 10:11:51 How can I accuratly determine how long the call to a glsurfaceview's requestRenderer took for the view to actually complete onDraw? Jun 10 10:38:59 hi, can you call setContentView() twice in one activity? Jun 10 10:39:34 in the time it took you to ask that…..guess what you could have done :) Jun 10 10:40:54 ok i'll google it Jun 10 10:41:00 no Jun 10 10:41:04 try it Jun 10 10:41:11 1 line of code to test it Jun 10 10:41:16 and pushing run Jun 10 10:42:04 yea i see, only the last view is displayed then Jun 10 10:42:15 i might have to rethink my layouts Jun 10 10:44:25 What instance would you need that? Jun 10 10:44:43 You can nest layouts Jun 10 10:45:21 what has nesting got to do with "complete change" ? Jun 10 10:45:35 Ah true Jun 10 10:45:40 i read the initial thing incorrectly Jun 10 10:46:27 well, i am making a simple calendar ... month view ... i have a linearlayout and a gridview inside this .... now i added another linear layout with 7 textviewes for day names header row ..... but in my activity i already setContentView(gridView) and now i need to somehow get these 7 text views and setText with month names. yes i am a noob, my first real android project. Jun 10 10:47:18 setText with day names* of course Jun 10 10:47:35 how about, setContent(R.layouts.ALayoutContainingAllTHatINeex) Jun 10 10:48:17 Yeah, in that case nesting layouts would be fine, just writing all the layout code into one file in fact Jun 10 10:48:55 yea i have it like that, except for DayView which represents one grid cell, this is in separate file and only a TextView for now, will add some images later Jun 10 10:49:29 you know you can addView() and removeView() right ? Jun 10 11:08:35 Could someone please help me out here? ... how do i increase the amount of volume steps without rooting? i tried setting the getStreamVolume index in decimals.. 1.1, but they get rounded (i think because int only allows whole numbers) ... so what is the way to go? can i extend / overwrite : " public static final int[] MAX_STREAM_VOLUME = new int[]" for a certain Stream? ... There are apps which do this: Jun 10 11:08:35 https://play.google.com/store/apps/details?id=opotech.finevolumev2 ...has 100 volume steps... instead of 7 ..for all streams... how do they do this? ... do they capture all streams and put it through there own renderer? and change the volume there? ... or do they change getStreamVolume... or did they change the max_stream_volume ? Jun 10 11:13:03 just so you know rved I think you asked that question like "everyone" knows what you doing and how, and what your on about Jun 10 11:13:11 and I dont think thats quite right :) Jun 10 11:13:30 what do you mean? Jun 10 11:13:35 every body may know, Jun 10 11:13:46 lol Jun 10 11:13:49 ok Jun 10 11:13:50 gl Jun 10 11:14:04 i don't understand your question Jun 10 11:14:10 what is funny about it? Jun 10 11:14:23 do you know how this can be done? Jun 10 11:14:24 you assume too many things in your question Jun 10 11:14:31 what stream ? Jun 10 11:14:36 max volume of what ? Jun 10 11:14:39 current stream Jun 10 11:14:44 of current stream Jun 10 11:14:48 err and int whole number ? really ? Jun 10 11:14:52 current stream ? Jun 10 11:14:53 wtf Jun 10 11:14:55 of what ? Jun 10 11:14:58 Have a look at the app he's linked, it makes it pretty obvious what rved is trying to acheive Jun 10 11:14:59 doing what Jun 10 11:15:01 what type ? Jun 10 11:15:10 there are many stream types Jun 10 11:15:19 Hi Jun 10 11:15:32 How do I make Eclipse compile NDK code for all 3 CPU architectures? Jun 10 11:15:32 its not that hard, just the current stream you're using, say your calling.. stream voice Jun 10 11:15:50 rved, volume is staked between a min and max you can retrieve Jun 10 11:15:57 it's float value based Jun 10 11:16:02 so you can have more than 100 steps Jun 10 11:16:05 between the min and the max Jun 10 11:16:23 it all depends on how many number after the decimal Jun 10 11:17:04 so how do i define 'test\'?': mgr.setStreamVolume(AudioManager.STREAM_RING, test, AudioManager.FLAG_PLAY_SOUND); Jun 10 11:17:21 cause the API says i need to put int Jun 10 11:17:42 why do you escape [ and 0? Jun 10 11:17:53 \0 becomes null, \[ is incorrect Jun 10 11:18:21 test must be betwwin getStreamMin Jun 10 11:18:25 and getStreamMaxVolume Jun 10 11:18:29 you have getters for that Jun 10 11:18:33 between* Jun 10 11:19:51 adq: can i do 0.1f ? Jun 10 11:20:05 oops sorry about float, it looks like it's int Jun 10 11:20:07 index The volume index to set. See getStreamMaxVolume(int) for the largest valid value. Jun 10 11:20:19 but still, it's a range Jun 10 11:20:22 between min and max Jun 10 11:20:33 yes i know, but the range has only 5 steps for instance Jun 10 11:20:41 and i want to create 30 steps Jun 10 11:20:54 so i thought, maybe if i could create decimals... Jun 10 11:21:06 but this is not allowed, you have to use int for setStreamVolume Jun 10 11:21:11 yup Jun 10 11:21:18 so how do you create 30 steps? Jun 10 11:21:27 you can't use decimal numbers Jun 10 11:21:56 maybe setStreamValue is 0-255? Jun 10 11:22:05 so 0.1 is 25 or 26 Jun 10 11:22:10 Volume * Jun 10 11:22:28 if you set 255, the value will go to the max that is allowed for each stream, for instance voice stream max = 7 Jun 10 11:22:33 so it will become 7 Jun 10 11:22:38 i think i was confused with audiotrack ;( Jun 10 11:22:38 wait Jun 10 11:22:45 it's not even (int) Jun 10 11:22:49 it's (int, int, int) Jun 10 11:23:00 (int streamType, int index, int flags) Jun 10 11:23:08 http://developer.android.com/reference/android/media/AudioManager.html#setStreamVolume%28int,%20int,%20int%29 Jun 10 11:23:18 you need to create volume object Jun 10 11:25:43 ok it is object, but still, how do i fine-tune the volume? Jun 10 11:26:30 dod you ever think that a steam type of RING may only have 7 steps ? Jun 10 11:26:34 did* Jun 10 11:27:33 what do you mean? Jun 10 11:27:43 erm Jun 10 11:27:50 that the volume control Jun 10 11:27:59 only has 7 steps Jun 10 11:28:47 yes i want more steps Jun 10 11:28:55 maybe for stream ring it is not that relevant Jun 10 11:28:59 but for others it is Jun 10 11:29:18 if i have a range of 0-7 indexes, how do i fine-tune it, so i have 100 steps? Jun 10 11:29:46 you dont Jun 10 11:29:50 that a system thing Jun 10 11:30:05 the master volume will have more Jun 10 11:30:13 audio playback much more Jun 10 11:30:16 etc Jun 10 11:30:22 get the min and max and use it Jun 10 11:30:25 and be done Jun 10 11:30:27 :) Jun 10 11:31:47 but how does another app do it? https://play.google.com/store/apps/details?id=opotech.finevolume.unlocker&feature=search_result#?t=W251bGwsMSwyLDEsIm9wb3RlY2guZmluZXZvbHVtZS51bmxvY2tlciJd Jun 10 11:31:56 they can set it for each stream Jun 10 11:32:36 ask the devs Jun 10 11:33:00 I dont know what values it sets Jun 10 11:33:04 and cant see either Jun 10 11:33:15 it may just have 7 vals for that stream type Jun 10 11:36:14 nope, tested it Jun 10 11:36:17 they have more Jun 10 11:36:23 I'm trying to make an edit text that can tell the difference between 26.5, 1.0, .1, and .265. DecimalFormat is screwing me. I'd like all the numbers to be of the format .265, but allow the her to enter 26.5 or .265. or 1 if 100%. any ideas? Jun 10 11:36:37 rved: for ringer the have more ???? Jun 10 11:36:43 *her = uers Jun 10 11:36:46 user Jun 10 11:36:52 are you sure you dont mean thier slider moves smooth ?????? Jun 10 11:36:55 Did not really focus on ringer Jun 10 11:37:10 oh then what Jun 10 11:37:18 music has more yeah Jun 10 11:37:34 you were complaining about ringer or something having 7 ??? Jun 10 11:38:55 I dont think you quite know what you want or have tbh Jun 10 11:39:07 are you sure your not talking about the smoothness of a seekbar ? Jun 10 11:39:21 rather than actual stream volume ints ? Jun 10 11:40:40 How can I accuratly determine how long the call to a glsurfaceview's requestRenderer took for the view to actually complete onDraw? Jun 10 11:41:09 StringRay, no not smoothness :P lol i just want precise control (not on the ringer of course) but on other streams Jun 10 11:41:24 well you have between the min and max Jun 10 11:41:32 as do we all Jun 10 11:41:36 so say we all Jun 10 11:41:46 :) Jun 10 11:43:11 rved: so what are you actually complaining about then ? Jun 10 11:43:14 which stream ? Jun 10 11:43:20 having 7 steps ? Jun 10 11:43:26 just so I know :) Jun 10 11:44:25 or you not sure / Jun 10 11:44:26 ? Jun 10 11:45:01 does anyone here have experience with ORM frameworks for android? any recommendations? Jun 10 11:49:10 what am i doing wrong here?!! http://pastebin.com/16eeLqs4 - im still getting out of memory error. its like the BitmapFactory part is not working/applying Jun 10 11:51:04 i know this is a simple problem for you guys. but im still in the learning process and some concepts are hard to catch for me yet. so i'm looing for a simple solution for this problem. if my code is wrong, please tell me which part should i change. i read all about "Loading Large Bitmaps Efficiently" and i tried to follow its guideline Jun 10 11:53:43 you havent changed anything Jun 10 11:54:00 your still sticking to the top 10 lines of that page Jun 10 11:54:03 why???? Jun 10 11:54:15 when it specifically mentions oom errors Jun 10 11:54:38 read the whole thing Jun 10 11:54:44 do what it says Jun 10 11:54:53 beyond the top few paragraphs Jun 10 11:55:24 StingRay_: please! tell me what should i do! i did wrote the BitmapFactory part to apply to the photos. does this mean i should define a method for BitmapFactory to work? Jun 10 11:56:46 how about reading the next bit "Load a Scaled Down Version into Memory" Jun 10 11:57:23 actually work out the sample size Jun 10 11:57:49 I'm not sure what it does if you say in sample 32 and it is not divisable by 32 Jun 10 12:01:17 pduin, I've had most success with GreenDAO Jun 10 12:01:39 pduin, lots of people also use ormlite, but I've found its reliance on reflection annoying for performance and proguard :) Jun 10 12:03:38 StingRay_: in "Load a Scaled Down Version into Memory" section, first its calculating the isSampleSize params which i've provided manually. thus, so far im in the right direction; right? Jun 10 12:04:52 Mavrik: yeah I was looking at those two as well. Performance will be really important, the app will handle databases with tens of tables and 10s of thousands of items. Jun 10 12:05:13 omid8bimo: and how did you work out 32 ? Jun 10 12:06:12 StingRay_: my photos are 1080p. around 4000x4000. so 32 should give me a 100KB photo almost. right? Jun 10 12:06:13 I'll check them both out, see which one works for me. Thanks Jun 10 12:06:37 omid8bimo: no no and errr maybe Jun 10 12:06:45 1080p != 4k Jun 10 12:07:02 1080p = 1920x1080 Jun 10 12:07:07 hence 1080 Jun 10 12:07:22 around 4000x4000 "around" ??? Jun 10 12:07:35 you see the problems here ? Jun 10 12:08:11 32 is not a make it small figure, is a division with pixel binning Jun 10 12:08:31 you actually need care in this, not guess work Jun 10 12:09:25 all you need to do, is read the rest of that page Jun 10 12:09:59 StingRay_: ohom, i understand. so based on the document page, i try to calculate the dimensions first Jun 10 12:10:13 you dont try Jun 10 12:11:36 neways, dont know what it is that makes you run away from the 2nd half of that page I linked, but you need to get over it Jun 10 12:11:38 :) Jun 10 12:11:57 and then learn that 1080 != 4000 Jun 10 12:12:29 and that mayby ish, maybe cant be divided by 32 Jun 10 12:14:41 StingRay_: ok i will now focus on the second part more to see what i can understand. but just tell me this, http://pastebin.com/16eeLqs4 is wrong and BitmapFactory is actually not applying to the photos before being loaded into the imageview, right? (regardless of isSampleSize) Jun 10 12:16:33 well yeah, not sure I would load images on the main UI thread Jun 10 12:16:35 but yes Jun 10 12:16:45 why dont you try with just 1 ??? Jun 10 12:16:48 test it Jun 10 12:17:03 also log output of bm.getWidth/Height Jun 10 12:17:04 etc Jun 10 12:17:19 btw, 1 image Jun 10 12:17:25 not sampleSize 1 Jun 10 12:20:21 StingRay_: ok i'll do that. Jun 10 12:57:33 <_abc_> Hello. Assuming I need to code a simple single screen gui for both devices with touch screen and with just keys/joystick, how would you recommend the visual button focus model to be coded? Jun 10 12:58:04 <_abc_> The keyboard or joystick only device should be able to maneuver some focus indicating frame, so it indicates what button or element is current. Jun 10 12:58:28 <_abc_> The touch screen control does not need such a device and I might want to make the focus indicator vanish on a timer in that case Jun 10 12:58:58 <_abc_> What's a clean and portable way to decide if pointer events come from keys or from a touchscreen which pretends to be a pointer controller? Jun 10 12:59:28 'Are you using a touchscreen y/n' Jun 10 12:59:36 <_abc_> hehe too complex >;) Jun 10 13:02:14 <_abc_> Assume this device can be a public terminal or kiosk, there is no way to ask people every time it reboots or is upgraded remotely Jun 10 13:07:27 <_abc_> Technically I think one can guess from pointer select event / pointer motion event sequences which one it is Jun 10 13:07:54 <_abc_> the stick/keyboard will always slide a lot before reaching a button, then a select event follows (or not) Jun 10 13:08:13 <_abc_> The touchscreen will typically not slide a lot and drop on select and generate an event there Jun 10 13:08:39 <_abc_> In particular the touchscreen version might never pass focus to the bacground 'between' the buttons, under normal conditions. Jun 10 13:08:44 <_abc_> +k Jun 10 13:08:59 <_abc_> Since most people will simply tap the buttons and not slide between them and tap Jun 10 13:09:08 <_abc_> But this is just a heuristic, there may be others Jun 10 13:09:12 <_abc_> I am open to suggestions? Jun 10 13:09:31 <_abc_> Also, how many % of droids have a midp/java emulator preinstalled? I'd say a lot of them, no? Jun 10 13:10:22 _abc_: not many Jun 10 13:10:29 _abc_: mainly old Samsungs Jun 10 13:10:30 <_abc_> Hmm Jun 10 13:10:38 (1.5 era) Jun 10 13:10:46 <_abc_> I saw that on Sonys Samsungs LGs and most Chinese things Jun 10 13:10:49 <_abc_> So far Jun 10 13:10:59 <_abc_> Also I assume it is available as a 3rd party app? Jun 10 13:11:07 <_abc_> Free perhaps? What should I look for? Jun 10 13:11:46 not free, commercial B2B for vendors Jun 10 13:14:08 <_abc_> search for "j2me midp emulator for android" yields lots of results, some free Jun 10 13:14:30 <_abc_> http://www.javaemulator.com/android-java-emulator.html 1st hit Jun 10 13:14:31 hello im having trouble writing to the sd card. i alreadyd added android.permission.WRITE_EXTERNAL_STORAGE. is there anything more i can do? Jun 10 13:15:09 error in andoroid studio java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.stupid_folks/.Foo } from null (pid=-1, uid=-1) requires android.permission.WRITE_EXTERNAL_STORAGE Jun 10 13:15:12 binary please, are you hardcodeing the path? Jun 10 13:15:35 binaryplease^ Jun 10 13:15:50 brx no File path = Environment.getExternalStorageDirectory(); Jun 10 13:16:35 i should say it doesnt happen when using the emulator, only with my motorola milestone Jun 10 13:16:46 its not connected as external storage though Jun 10 13:17:13 ahh Jun 10 13:17:25 mayb you have the device storage mounted Jun 10 13:17:38 how do i check that? Jun 10 13:17:40 run the app and then disconnect the device see if it still happens Jun 10 13:18:05 just d/c the device prior to the execution of the Environment.getEtcetc() code Jun 10 13:18:47 hi. how can is check the following expression is a polynomial of one variable? Jun 10 13:18:59 hi. how can is check that the following expression is a polynomial of one variable? Jun 10 13:19:22 i cant run it, it doesnt start the error comes rigth away Jun 10 13:19:46 what OS are you running on your computer? Jun 10 13:20:01 linux Jun 10 13:20:03 arch Jun 10 13:20:36 open nautilus and check that there isnt a mass storage device(that might be your android device) Jun 10 13:20:56 none present Jun 10 13:21:16 <_abc_> binaryplease: you need to unplug the cable from the host on some devices to gain access to the media card from the device Jun 10 13:21:31 okay and how do i start the app then? Jun 10 13:21:37 <_abc_> binaryplease: if you have such a setting on the device, uncheck 'media card always mountable' or such Jun 10 13:21:46 <_abc_> binaryplease: you install it on the device or on the sd card first Jun 10 13:22:22 <_abc_> Basically when the cable is plugged in there is a priority decision which decides who "owns" the sd card, the USB storage driver or the device Jun 10 13:22:35 <_abc_> Find that setting and make it manual or such Jun 10 13:22:52 hm im looking for it but i cant find anythink alike Jun 10 13:23:57 <_abc_> http://www.companionlink.com/support/kb/Android_USB_Device_Specific_Notes there are many ways Jun 10 13:24:05 <_abc_> Sometimes the device driver which decides this resides on the pc Jun 10 13:24:08 <_abc_> look hard Jun 10 13:24:21 <_abc_> see the example in the link, they are for a syncing program but related to what you need to find Jun 10 13:25:24 <_abc_> unfortunately I see no sign that the relevant flag (SD device not accesible due to host mode access by pc) has not made its way into the android api Jun 10 13:25:43 binaryplease, if i was you i would establish first whether or not the code will run when the cable is d/c form the PC...just knock an app together that has a button and then access sdcard on click Jun 10 13:25:55 d/c the cable before you make the click on the button orsuch Jun 10 13:26:31 then if it works do what _abc_ says Jun 10 13:26:40 is there a install option in android studio or do i have to copy and install it manually? Jun 10 13:28:10 <_abc_> You can configure install by copy Jun 10 13:28:24 <_abc_> To some destination (on the sd card) Jun 10 13:28:28 <_abc_> There are also other ways Jun 10 13:28:52 <_abc_> Usually in the emulator you define a fake storage media volume and that is used for testing Jun 10 13:29:06 <_abc_> I do not understand what you are doing now exactly so I am just procrastinating. Jun 10 13:30:15 <_abc_> binaryplease: also read this http://androidforums.com/droid-all-things-root/122777-turning-usb-storage-removes-few-my-apps.html 3rd answer Jun 10 13:31:12 <_abc_> sounds like you want to install SD Share app Jun 10 13:31:25 binaryplease: by default Run or Debug in Android studio will deploy to either usb device or emulator instance. Jun 10 13:31:26 <_abc_> aka "Dual Mount SD Widget" Jun 10 13:32:49 <_abc_> I wonder if the people who implemented that did the right thing wrt locking and sharing privileges. /me shudders Jun 10 13:33:03 <_abc_> oh look my important data files were scrambled ;/ Jun 10 13:34:00 <_abc_> $0.99 omg this is going to bankrupt us ! ;) Jun 10 13:34:43 _abc_, whats that for? Jun 10 13:35:00 <_abc_> brx_: allows simultaneous SD card access from PC and from device Jun 10 13:35:17 ahh i see Jun 10 13:35:23 <_abc_> which is a hairy thing to do but if it works it works Jun 10 13:35:37 ye Jun 10 13:35:40 <_abc_> for safety I'd suggest NEVER trying to write the same file or directory from both sides at the same time Jun 10 13:38:46 Is it possible to attach some data to a Google Maps Marker? such as a URI of an image or something like that? Jun 10 13:38:56 hm i think it works when not connected via usb Jun 10 13:39:45 i just testet it with another mobile, nexus, which works fine Jun 10 13:40:01 i selected "charge only" in the motorola Jun 10 13:40:25 How do I go about reporting a developer who is stealing applications? Jun 10 13:43:29 report to who ? Jun 10 13:43:38 hello Jun 10 13:53:17 okay itds definitly a usbconnection issue. i cant even see the sd card in the android filemanager if the usb is connected Jun 10 13:53:32 even if the usbmode "charge only" is selected Jun 10 13:53:58 binaryplease: android filemanager? Jun 10 13:54:19 i installed a filemanager ap so i can browse the sd card Jun 10 13:55:03 i think its just called "filemanager" Jun 10 13:55:07 binaryplease: perhaps your device unmounts the sdcard anyways to make it available for the usb host? Jun 10 13:55:31 yeah but i dont know how to prevent that Jun 10 13:56:07 you usually can't Jun 10 13:56:10 and you really shouldn't Jun 10 13:56:18 unless you want to corrupt your SD card. Jun 10 13:56:20 binaryplease: get a device that doesn't do that =) Jun 10 13:57:15 do you guys know where i can get information on the file system (such as directory hireachy) for samsung galaxy s2 ? Jun 10 13:57:25 i dont want to have to connect the device, copy the apk, unplug, open filemanager on the phone, uninstall old package, install old package jsut to test the changes i made Jun 10 13:57:35 kind of a pain in the ass :D Jun 10 13:59:36 binaryplease: why not just let your IDE update the app on your device? Jun 10 14:00:01 binaryplease: or do you need the apk on the sdcard for some reason? Jun 10 14:00:15 how do i do that i android studio Jun 10 14:00:43 binaryplease: it does it by default if you have usb debugging enabled on your device and the correct adb drivers installed on your computer Jun 10 14:00:58 binaryplease: to find out, connect the device and run: adb devices Jun 10 14:01:11 ok but i cant see any errors then in the console if its not connected Jun 10 14:01:13 binaryplease: if your device shows up all is ok, if not you've missed something Jun 10 14:01:41 its there Jun 10 14:02:05 but i cant see any output in the console on the pc that way Jun 10 14:02:08 hm Jun 10 14:02:09 i'm getting NullPointException error when i try to Log.d("orange", bm.getHeight()+""); and Log.d("orange", bm.getWidth()+""); after Bitmap bm = BitmapFactory.decodeFile(cursor.getColumnName(4), options); Jun 10 14:02:20 binaryplease: does adb logcat work? Jun 10 14:03:21 binaryplease: in Android Studio, what have you set as target device in Run -> Edit Configurations ? And is Deploy application enabled there? Jun 10 14:03:48 yep it is Jun 10 14:04:52 binaryplease: is your device visible in Tools -> Android -> Minitor ? Jun 10 14:04:53 logcat shows events when connected to the device obviously not when the cable is not pluged in Jun 10 14:05:42 binaryplease: you want to debug your app without connecting the phone via usb? Jun 10 14:06:21 yeah it shows up in the monitor Jun 10 14:06:24 yes Jun 10 14:06:40 if thats possible somehow Jun 10 14:06:47 beacuse i cant run the ap if it is connected Jun 10 14:07:20 appel1: Jun 10 14:08:43 binaryplease: you don't happen to have Double Twist installed? Jun 10 14:09:18 no Jun 10 14:09:27 what is that Jun 10 14:09:39 binaryplease: also, have you checked Settings -> Auto usb mounting ? did a quick google search that said some motorola device has that option. Jun 10 14:09:55 binaryplease: music app that forced auto usb mount in some version Jun 10 14:11:04 Hello, How can I prevent the application from caching the activity after calling finish() ? because when I call finish() and relaunch the application from the home screen I see this.getIntent() contains the same extras Jun 10 14:12:28 you can just null that field using setIntent(null) Jun 10 14:12:44 after you've finished using it of course Jun 10 14:13:36 Kegsay: Actually I tried Intent i = this.getIntent(); i.setAction(null); setIntent(i); but it didnt work. I'll try your solution Jun 10 14:15:29 appel1: i dont have that option i looked in every cathegory of the settings Jun 10 14:16:49 binaryplease: stock rom? Jun 10 14:17:08 jap Jun 10 14:17:20 yes Jun 10 14:17:24 stock rom Jun 10 14:17:46 anyone know a straight-forward way to get the little line under the text in an EditText not to be padding on the left/right? Jun 10 14:17:51 binaryplease: when connected, are there any more options in the usb notification other than auto-mount or charge only? Jun 10 14:18:01 i'm assuming it's not possible since it's an asset Jun 10 14:18:10 binaryplease: hmm, seems Winamp might try to force auto mount as well, you don't have that app installed by any chance? Jun 10 14:18:52 yes "portal + tools" , "sync win media", "external storage" , "charge only" Jun 10 14:19:16 binaryplease: tried any of the other options there to see if it makes any difference? Jun 10 14:19:26 no difference tried them all Jun 10 14:19:51 binaryplease: so the sync win media option doesn't work at all then? Jun 10 14:20:50 same problem Jun 10 14:23:53 binaryplease: so in Windows Media Sync mode you can't access the sdcard from the device at the same time as you access it from your computer over MTP? Jun 10 14:23:58 something is very wrong with your device :) Jun 10 14:25:02 sorry i can acces the card from the filemanager i installed in media sync mode Jun 10 14:25:12 but it dowsnt show up in nautilus Jun 10 14:25:40 binaryplease: nautilus probably doesn't understand MTP Jun 10 14:26:05 binaryplease: the question is, when in this mode, can you deploy and debug your app while the device is connected over usb Jun 10 14:26:42 i can click on run in the android studio but it gives me the write external storage error jsut like before Jun 10 14:27:04 it intalls fine , just like before Jun 10 14:27:15 binaryplease: and it runs just fine if you don't have usb connected? Jun 10 14:27:21 Kegsay: Unfortunately it didn't work. As it crashes in the onDestroy method due to an NullPointerException Jun 10 14:27:35 yes Jun 10 14:28:12 binaryplease: checked if there are any updates available for your device ? =) Jun 10 14:28:26 i will look Jun 10 14:28:33 binaryplease: otherwise I'm out of ideas Jun 10 14:28:36 in the marked Jun 10 14:28:58 okay, thanks a ton anyway appel1 for trying, very kind :) Jun 10 14:28:58 binaryplease: no in Settings -> About or however you check with your specific device Jun 10 14:29:12 I can't figure out where to change the target platfrom from intelliJ, like I usd to do with Eclipse (Right click project settings > Android > change target) Jun 10 14:29:20 any idea? Android Studio specifically Jun 10 14:30:12 R4md4c, you're using getIntent in onDestroy perhaps? Jun 10 14:31:35 Sicp, module settings -> -> Dependencies -> Module SDK Jun 10 14:31:35 appel1: strange it searches and then says it cant connect to server, the internet is workinig just fine with the browser for example Jun 10 14:31:58 binaryplease: old device that they've stopped supporting perhaps Jun 10 14:32:05 that's specifiying the whole Android SDK, I want to say that this project will use API 14 not 17, for example, Mavrik Jun 10 14:32:19 :( Jun 10 14:32:45 okay then probably theres no point i keeping trying Jun 10 14:32:48 binaryplease: try a google search for your device Jun 10 14:32:53 Sicp, yes. that's it. Jun 10 14:34:00 yea, you're right Jun 10 14:34:04 thanks Jun 10 14:36:04 Kegsay: No I use it inside onCreate method Jun 10 14:37:45 R4md4c, then I don't see how what I suggested can cause the NPE in your onDestroy. It should work. Jun 10 14:38:09 This might be a trivial question but I dont know the answer to it. Looking for android gurus. My task is to compile android kernel and run on a pandaboard. I cannot just take the uImages there are drivers which I need to modify.. Now one way is to download every thing from AOSP by repo init... and downloading 3-4 Gb of git from day 1 of android git init. Is there a way to just get the source files for ICS. I Jun 10 14:38:40 It is easy for linux just go to git.kernel.org and get the snapshot of the tag like 3.0 , is there a same git snapshot available in android ? Jun 10 14:52:09 Hey guys...my S3 is running 4.0.4 and I have a external SD Card inserted. But when I connect my S3 to the computer, I don't see my External SD Card being shown as a Removable Storage. Jun 10 14:52:49 that's not really a dev problem :) Jun 10 14:53:22 user error, knowledge prob, or eye sight Jun 10 15:12:07 Anyone do multithreading game coding using android opengl and a distinct simulation/logic thread? Jun 10 15:15:21 how does one disable the animation on a DatePickerDialog? Jun 10 15:18:59 what do you mean tnzr? Jun 10 15:25:25 minioim: I have an EditText that shows a DatePickerDialog when clicked, and that dialog kinda comes in with an animation Jun 10 15:26:23 it kinda bounces up and back down... kinda seems janky so I hope its the actual animation and not some bug or bad implementation Jun 10 15:36:45 can you describe the animation, Jun 10 15:36:45 ? Jun 10 15:37:11 i think he just means the standard popup animation for that widget Jun 10 15:37:17 if it's the standard one Jun 10 15:37:26 tis just a center scale up Jun 10 15:37:45 if it's the system default Jun 10 15:37:58 there can also be variances with manuf. Jun 10 15:39:17 Would this be a good place to ask advice on the best way to go about something? Jun 10 15:39:38 minioim, either you change windowEnter/windowExit animations in your dialog style, or you call "overridePendingTransition" right after calling show on dialog Jun 10 15:39:58 BenOrnstin: fishing ? nope, buying a phone ? nope…. you know you just basically asked a null question right ? Jun 10 15:40:17 BenOrnstin, yes, I suggest you just skip to the matter at hand next time. Jun 10 15:40:36 * StingRay_ now secretly it's fishing Jun 10 15:40:44 all yours Mavrik :) Jun 10 15:41:15 yeah its just the standard one Jun 10 15:41:19 StingRay_, sorry, just didn't want to ask and find out I was bothering a more specific channel, it's dev related. Her goes: Jun 10 15:41:25 minioim: it kinda bounces up and back down Jun 10 15:41:40 tnzr: standard dont do that Jun 10 15:41:54 there is no overshoot interpolation Jun 10 15:41:57 StingRay_: well I haven't modified it at all Jun 10 15:42:02 you sure your not using a custom rom ? Jun 10 15:42:12 or a non-stock android at all ? Jun 10 15:42:12 StingRay_, you're forgetting all the crap manufacturers do to their roms ;) Jun 10 15:42:29 I know at least HTC and Samsung did change those animations in their versions Jun 10 15:42:31 nope, standard 4.2.2 on a galaxy nexus Jun 10 15:42:31 Mavrik: I didn't read up Jun 10 15:42:48 * StingRay_ grabs gnex 4.2.2 Jun 10 15:42:51 StingRay_: interestingly, it only happens when you first do it.. if you hit it again to change the date, it pops in just fine Jun 10 15:43:09 actually that's not true, its happening over and over Jun 10 15:43:45 * StingRay_ is creation a dialog call on same phone same version Jun 10 15:43:56 nope Jun 10 15:43:59 all fine here Jun 10 15:44:04 well thanks for doing that Jun 10 15:44:08 using fragmentDialog Jun 10 15:44:18 housing standard datePicker Jun 10 15:44:32 bout 400ms scale and dims background Jun 10 15:44:44 no bounce/interpolator that overshoots Jun 10 15:44:56 Im doing: new DatePickerDialog(context, DatePickerDialog.OnDateSetListener, int year, int month, int day).show() Jun 10 15:44:59 I'm working on a project which is controlled by two fragments: One is a list of images that need to be taken, and the other either displays the camera or the image if it has been already taken. It seems like the dumb way to do it would be to hide and show an imageview (loading in bitmaps), and using camera.startPreview/camera.stopPreview on the hidden/unhidden surfaceview. On the other hand, I'm not sure how else to Jun 10 15:44:59 accomplish this. Jun 10 15:45:34 BenOrnstin, any reason not to use two distinct fragments Jun 10 15:45:45 one with camera surface and camera code and another with image display Jun 10 15:45:51 StingRay_: could it be that its happening inside a ScrollView? it seems like it bounces around trying to find where it belongs or something Jun 10 15:45:56 and then choose which to display depending if image is taken or not? Jun 10 15:46:04 That sounds like it could work Jun 10 15:46:08 Would that run well? Jun 10 15:46:29 tnzr: oh I thought you ment the window Jun 10 15:46:31 housing it Jun 10 15:46:33 BenOrnstin, I believe that's the whole point of Fragments ;) Jun 10 15:46:36 not the content Jun 10 15:46:40 Hahaha, alright, thanks Jun 10 15:46:44 Is there a way to make an XML layout that's used as a template for all other ones? like a "header" and a "footer" in html / php maybe? Jun 10 15:46:45 no just the actual dialog itself Jun 10 15:46:49 And I assume I'd be attaching and detaching the fragments? Jun 10 15:47:05 (I'm new to android, sorry if my questions are obvious :) ) Jun 10 15:47:11 well, I created a dialogFragment, returned datePicker view from it Jun 10 15:47:22 the window/dialog is just a scale animation Jun 10 15:47:32 there is no animation inside the dialog Jun 10 15:48:08 yeah I mean like..from a normal LinearLayout inside a ScrollView, when you click an EditText, a DatePickerDialog is constructed and .show()n Jun 10 15:48:17 .show()'d ... whatever Jun 10 15:48:42 ahh a clue! Jun 10 15:48:56 when you scroll the ScrollView all the way down and click the EditText, the behavior is different Jun 10 15:49:19 wait a second Jun 10 15:49:40 tnzr: I think you lost me, are you taking about animation on the dialog frame/window ??? Jun 10 15:49:40 you know what.. I think what's happening is that the softkeyboard attempts to show but is then overridden by the dialog Jun 10 15:49:50 oh Jun 10 15:49:55 StingRay_: yeah, the dialog itself moves.. I think its because of the keyboard Jun 10 15:49:56 yeah good catch Jun 10 15:50:00 keyboard Jun 10 15:50:03 i will try to disable that Jun 10 15:50:14 why an edit text ? Jun 10 15:50:20 stupid client Jun 10 15:50:24 with stupid demands :) Jun 10 15:50:31 nice Jun 10 15:51:27 thanks for your help Jun 10 15:52:17 An edittext that's a button? Jun 10 15:52:57 not a button so much.. basically it has a hint that says "Date of birth" Jun 10 15:53:14 you click, date picker pops up, when you're done it shows "Jun 6, 2013" or whatever date you picked Jun 10 15:54:09 probably better with a textView that is a button, or just a button, or a textView with a button :) Jun 10 15:54:20 rather than an editText that is a button Jun 10 15:54:21 :) Jun 10 15:54:37 well i thought the same thing but the screen comp has the little EditText line under it Jun 10 15:54:59 So just set that on your textview Jun 10 15:55:05 yeah, style Jun 10 15:55:14 or even just background Jun 10 15:55:26 say I did that Jun 10 15:55:35 should I worry about the selection state while editing the date? Jun 10 15:55:42 I guess not Jun 10 15:55:48 irrelevant I would think Jun 10 15:55:50 because it wont be an EditText and thus won't get "focus" Jun 10 15:55:53 since the dialog is over it Jun 10 15:55:56 yah that too Jun 10 15:56:00 and no focus or state change Jun 10 15:56:01 It's just a textview with a background Jun 10 15:56:05 other than clicked Jun 10 15:56:08 good call Jun 10 15:56:13 * tnzr fixes Jun 10 15:56:17 On api11+ you even get an editTextBackground attribute so you wont have to provide your own Jun 10 15:56:37 oh wow Jun 10 15:56:41 * StingRay_ looks Jun 10 15:56:44 SimonVT: yeah I've used that before.. in a real custom EditText and the selection state was a hassle because it didn't turn blue when it had focus Jun 10 15:56:55 turns out I didnt need that component so I never fleshed that problem out Jun 10 15:57:05 but I was trying to avoid it here (but it turns out it's unnecessary) Jun 10 15:57:21 * StingRay_ stops looking, since all stateDrawables are generated in code Jun 10 15:57:34 well in my app Jun 10 15:58:49 hi. i am trying to apply a style to a button programmatically but it doesnt get applied. if i apply editing xml it is ok. i am doing this Button b = new Button(getActivity(), null, R.style.button_day); is this right? Jun 10 16:02:31 barad: dont think that works Jun 10 16:03:01 also there are some style/xml properties that dont take iirc Jun 10 16:04:55 StingRay_ so what is the best way to apply a style programmatically? Jun 10 16:05:09 depends on whats in the style i think Jun 10 16:05:20 if you check S/O there are many posts about this Jun 10 16:05:55 already did that but didnt find anything useful Jun 10 16:06:43 neither did I months ago Jun 10 16:06:58 i think that it is not possible to apply styles dynamically Jun 10 16:07:08 well yes and no Jun 10 16:07:17 there are dirty workarounds Jun 10 16:07:27 and then there are long winded ways i think Jun 10 16:07:39 cause a style is an attrib set Jun 10 16:07:58 and yes you can set each of those dynamically Jun 10 16:08:07 perhaps i will try just changing the button background (because that what i really want) Jun 10 16:08:23 oh thats easy, dont even need a style for that really Jun 10 16:08:29 just a stateDrawable Jun 10 16:08:36 which can be an xml Jun 10 16:08:43 and you can apply easy enough Jun 10 16:11:29 done. thanks StingRay_ Jun 10 16:41:27 style= can't be applied in code Jun 10 16:42:12 so many things can't Jun 10 16:42:31 simple answer is to inflate an xml with the style you want Jun 10 16:42:33 while i think ui-in-code is a bad idea, changing things in code is often nice Jun 10 16:42:56 oGMo: you think that ? Jun 10 16:43:07 my god you would think my app is the spawn of the devil then Jun 10 16:43:09 :) Jun 10 16:43:27 "so many things can't" -- styles are the main thing, what else are you thinking of Jun 10 16:43:36 StingRay_: ui in code is stupid. it seems neat at first to throw in a few loops and stuff and build your UI .. then later you're like "hey i need to change it to X ..." and it becomes hell Jun 10 16:43:52 oGMo: well that depends Jun 10 16:44:00 not the case by far in my use Jun 10 16:44:09 styles and use of them in xml would be hell Jun 10 16:44:11 UI from a designer is great .. you whip it out, add a few methods to handle things, and bam .. regardless of your UI tweaks your code works Jun 10 16:44:13 in my case Jun 10 16:44:26 oGMo: I am a designer dont forge Jun 10 16:44:27 t **** BEGIN LOGGING AT Mon Jun 10 16:51:49 2013 Jun 10 16:56:13 on a related tangent Jun 10 16:56:55 could i solicit some UI data binding framework recommendations and/or experiences? Jun 10 16:58:38 maybe my noobness, but isn't that what android framework essentially is ? Jun 10 17:00:00 well most of it Jun 10 17:00:06 well, i mean something like Android-Binding, Bindroid, or RoboBinding Jun 10 17:00:54 hmm added guava to android studio but when i deploy it looks like its not getting package Jun 10 17:01:00 since im getting class not found errors Jun 10 17:01:27 gradle ? Jun 10 17:01:31 yeah Jun 10 17:01:42 libarary project structure ? Jun 10 17:01:47 or jar ? Jun 10 17:01:49 jar Jun 10 17:02:04 oh well if it;s there and in the path and added in gradle config Jun 10 17:02:06 should be fine Jun 10 17:02:27 in build.gradle as compile files('libs/android-support-v4.jar') dependencies is right? Jun 10 17:03:27 i'm looking for something that works well with Loaders / CursorLoaders, specifically Jun 10 17:03:43 mikedg: yeah thats it Jun 10 17:04:03 nothing more really to do, thats how I include gson otto support etc Jun 10 17:04:12 and it's not entirely obvious at a glance how those libraries deal with them Jun 10 17:04:16 well thats how i did, before I ditched gradle :) Jun 10 17:04:16 what are some ways i could have my activity react to state changes in a service? Jun 10 17:05:09 beastmanrage: some sort of event bus, content resolvers Jun 10 17:05:10 I could broadcast a STATE_CHANGE action from the service, but is that reliable? Jun 10 17:05:33 sticky broadcasts maybe Jun 10 17:05:45 if you want to make sure you dont miss anything Jun 10 17:05:45 using localBroadcastManager Jun 10 17:06:12 that might be overkill, both service and activity will be on main thread Jun 10 17:08:06 let me ask it this way, i would like to have it so the service does it's own thing without any knowledge of an activity, with the exception of binding Jun 10 17:08:35 nad the activity will handle all that it needs to by polling the service, but this causes me to use a loop Jun 10 17:08:38 and* Jun 10 17:09:04 which works fine, but probably drains the battery Jun 10 17:13:15 And x64, I'm having some trouble with the prebuilt binaries. I can't run them: http://pastebin.com/L3QBfRXw . execve is failling in the weirdest way with ENOENT even though the file exists with proper permissions. Jun 10 17:13:24 *On x64 Jun 10 17:14:03 does anyone using game services, know how to circumvent this error (easy to reproduce, just press back while you're in the sign-in activity): stack & proof: http://pastebin.com/PM71y8vE Jun 10 17:14:05 ? Jun 10 17:14:22 beastmanrage: a broadcast is probably appropriate Jun 10 17:14:25 what state is it? Jun 10 17:17:03 in fact, i just realized it's not easy at all to reproduce it Jun 10 17:17:07 but i hit it, anyway. Jun 10 17:23:38 pjdelport: its just simple state changes that the activity needs to be aware of Jun 10 17:23:53 the activity is like the front end interface Jun 10 17:24:33 i'm going to first try to pass the singleton of the activity to the service when it becomes bound Jun 10 17:24:50 than from the service call something like updateActivity() Jun 10 17:30:27 mikedg: pull those from maven central Jun 10 17:30:35 you should have as few jars as possible in your libs folder Jun 10 17:30:40 I tried that and fuck maven central :/ Jun 10 17:30:45 I couldn't figure that out either Jun 10 17:31:03 at least using the guava help guide withno prior gradle experience Jun 10 17:31:08 can you just make a library for this? Jun 10 17:31:14 i'll help Jun 10 17:31:17 local jars are the devil Jun 10 17:32:05 ok Jun 10 17:32:10 so i have a build.gradle Jun 10 17:32:14 hmm, wonder why okhttp makes all my headers lowercase Jun 10 17:32:33 Mavrik: something else is Jun 10 17:33:04 mikedg: dependencies { repositories { mavenCentral() } compile 'com.squareup:otto:133' } Jun 10 17:35:05 oh i think i put it in the wrong dependencies spot Jun 10 17:38:14 i have AMPE A76 tablet that shows me error on boot. Too many pattern attempts. ask me for user id/pass but do not accept it . i know id pass is correct. how do i get rid of the error msg Jun 10 17:38:51 hmmm maybe not Jun 10 17:39:07 hmm, Jun 10 17:39:32 reset should do the trick. Jun 10 17:39:48 not sure though Jun 10 17:45:17 is it possible to use ProgressDialog's setProgressDrawable to show/load a gif ? ? Jun 10 17:47:58 Looney, you could make an AnimationDrawable Jun 10 17:48:28 but the function take Drawable only, would typecasting work ? ? Jun 10 17:48:52 Looney, ? AnimationDrawble is a type of Drawable Jun 10 17:49:43 Looney, setProgressDrawable will accept any kind of Drawables, including AnimationDrawable. Jun 10 17:50:23 ok, kool Jun 10 17:50:27 thankx Jun 10 17:59:06 hi Jun 10 17:59:15 what solutions should I consider to check that data were properly transfered between android device and server ? Jun 10 18:00:40 send the data back? Jun 10 18:25:42 asdf Jun 10 18:26:06 whoops. sorry, lag. Jun 10 18:47:07 Romain Guy ‏@romainguy 9m Jun 10 18:47:07 The new Safari for iOS has a lot of stuff straight from Chrome for Android Jun 10 18:47:10 sooooo true Jun 10 18:48:08 I wouldn't use either of those browsers. Jun 10 18:48:44 Unless you don't mind massive privacy invasions. Jun 10 18:48:55 After all, you have nothing to hide, right? Jun 10 18:50:59 irrelevant Jun 10 18:51:04 :) Jun 10 18:51:55 if anyone has or has not, something to hide I mean Jun 10 18:53:00 ios users dont really have many options do they ? Jun 10 18:53:10 like safari and crippled chrome …. thats it ? Jun 10 18:53:49 With all this recent talk of the NSA data-mining, it occurred to me that even though I'm connecting to freenode with an encrypted connection over 90% of the other people in the channel are not using encryption, so the NSA can eavesdrop on my communication through their connections. Jun 10 18:55:00 if they (bomb) want to waste (attack) their time on (terrorist) tracking what I (US) say, so be it Jun 10 18:55:34 if I were that concerned I doubt I would use a public communication medium Jun 10 18:55:48 pragma-: what about US-hosted freenode servers? Jun 10 18:56:21 * Ge0rG is currently alpha-testing a germany-based free xmpp service. not readable by NSA; readable by Ge0rG Jun 10 18:57:13 anyone know if its possible to get the "show layout bounds" developer option to work on a jellybean galaxy nexus? Jun 10 18:57:17 I enable it but it does nothing Jun 10 18:57:57 Works fine here Jun 10 18:58:04 4.2.2? Jun 10 18:58:13 yep Jun 10 18:58:16 hmm Jun 10 18:58:17 same here Jun 10 18:58:26 did you "restart" the app in question ? Jun 10 18:58:49 no but..I check the box, leave settings, come back to settings, box is unchecked :( Jun 10 18:58:49 not just recall it from the stack Jun 10 18:59:08 its a verizon galaxy nexus, I wonder if they broke it somehow Jun 10 18:59:09 you have some odd stuff on your apparent stock gnex Jun 10 18:59:12 haha Jun 10 18:59:19 that last problem was the keyboard! Jun 10 18:59:24 and is fixed! Jun 10 18:59:28 still Jun 10 18:59:34 your odd Jun 10 18:59:39 you're* Jun 10 18:59:41 and thanks Jun 10 19:00:07 we invented engrish , that gives me some small freedom to change it when I want :) Jun 10 19:00:11 haha Jun 10 19:00:14 fair enough Jun 10 19:11:10 SimonVT: out of the blue (after implementing user prefs left right position) for you menu, I get an NPE not traced to any of my code, to do with ActionBarHelperNative, but I dont use actionBar, never have Jun 10 19:11:35 Does it crash your app? Jun 10 19:11:39 ya Jun 10 19:11:49 :/ Jun 10 19:11:54 Do you use the newest version? Jun 10 19:11:56 http://pastebin.com/pb4z5sBv Jun 10 19:12:15 Ah, use the newest version Jun 10 19:12:28 k Jun 10 19:13:13 hang on Jun 10 19:13:15 * StingRay_ remembers Jun 10 19:13:30 isn't the newer version even more up actionbars ass ? Jun 10 19:13:46 by that I mean even more dependant/integrated with Jun 10 19:13:48 :) Jun 10 19:14:15 No, not at all Jun 10 19:14:19 k Jun 10 19:14:37 It does some initialization for you when you use the left drawer Jun 10 19:14:58 oh Jun 10 19:15:01 But unless you set a drawable for the up indicator (via setSlideDrawable), it doesn't do anything Jun 10 19:15:11 are you sure ?? Jun 10 19:15:16 Yeah Jun 10 19:15:22 cause the pref i just changed/checked is poistion.left Jun 10 19:15:23 If not, let me know and I'll fix it Jun 10 19:15:33 and thats when it just died Jun 10 19:15:46 and it's in the onAttach that it deading it Jun 10 19:15:56 Yeah, that's cus a few commits ago I always enabled the up indicator when using the left drawer Jun 10 19:16:38 I realised that I shouldn't touch the action bar unless I'm told to (when the user sets a slide drawable) Jun 10 19:17:07 I still do the initialization tho, so when it's a debug build you'll probably get a stack trace in logcat Jun 10 19:17:39 yeah just commented out and works fine now Jun 10 19:18:40 Are (aka qualified boolean resources) supported in AndroidManifest.xml? Jun 10 19:19:03 Yep Jun 10 19:20:13 Not all qualifiers are supported tho afaik, but those you actually need are (version, swdp) Jun 10 19:31:40 SimonVT: Then is the documentation just wrong? They don't explicitly say its supported, whereas usually they would otherwise. Is it just a coincidence that it works or is it legit supported? Jun 10 19:31:49 aka https://developer.android.com/guide/topics/manifest/receiver-element.html Jun 10 19:31:58 vs something like: https://developer.android.com/reference/android/widget/TextView.html#attr_android:singleLine Jun 10 19:33:36 It's not wrong, they're just leaving out information Jun 10 19:33:49 It's how it's supposed to work Jun 10 19:34:03 i really think the little 1-2dp padding inside an EditText is annoying Jun 10 19:34:12 on the left/right sides Jun 10 19:36:41 I don't like having to jump through all these extra hoops and bloat out an XML so that I can get a TextView on top of an EditText to line up properly with the EditText background line thing Jun 10 19:37:00 what ? Jun 10 19:37:15 oh Jun 10 19:37:45 you mean the TextView text overlaps the background EditText line ? Jun 10 19:37:55 I think if they just let that line extend from one side to the other in the EditText, it would be much easier to work with Jun 10 19:38:16 no like if you have a vertical LinearLayout with paddingLeft = paddingRight = 20dip for example Jun 10 19:38:25 the EditTexts look like they have a padding of 22dip Jun 10 19:38:32 and all the text looks like 20dip... and designers hate that Jun 10 19:38:35 (apparently) Jun 10 19:38:47 you know since your not using any states, you could just use a the drawable line ? Jun 10 19:39:01 " Why are these builds crashing?" Jun 10 19:39:01 or better yet Jun 10 19:39:09 becuase they haven't been qa'ed Jun 10 19:39:10 duh Jun 10 19:39:12 do one yourself, like in 10 seconds Jun 10 19:39:19 with content areas where you want Jun 10 19:39:51 mikedg: you get that Gradle shit working? Jun 10 19:39:58 JakeWharton: yup Jun 10 19:40:07 perhaps...but I shouldn't have to! if I didn't want things to line up, I should just add an extra 2dip to my EditTexts rather than have to set my parent's left/right padding to like 18dip and make everything but the EditTexts have an extra 2dip :) Jun 10 19:40:09 * tnzr brb Jun 10 19:40:13 cool. i pasted that and left for a meeting Jun 10 19:46:04 Hello all :). m a new android bee :) Jun 10 19:46:16 i have added my very 1st android app at google play. am finding lots of uninstalls. well, there are similar apps in market even better then mine. Jun 10 19:46:36 but I want to know if someone is removing, why they doing so. what strategy or technique i should follow or implement to get a response from an user who is unistalling the app? Jun 10 19:46:46 nickbp: hi2u Jun 10 19:46:54 buttsecks? lolol Jun 10 19:47:16 same Jun 10 19:47:22 t2mkn: ignore them Jun 10 19:47:28 you will get bad ratings by trying to follow it up Jun 10 19:47:33 t2mkn: you cannot hook into uninstall process and get some feedback there. In general listen to your comments if you get any. If not and you say in fact there are a lot of better apps, make your app beter Jun 10 19:48:00 did iOS just kang roboto!? Jun 10 19:48:34 mikedg: ignoring is not a good idea Jun 10 19:49:10 timroes: i have got only 3 comments till now, 73 installs out of which only 37 as active Jun 10 19:49:40 t2mkn: show an obnoxious dialog when the app starts asking people to leave feedback. You'll get more comments :> Jun 10 19:50:07 t2mkn: 50% for an app yourself say there are a lot ofbetter alternatives sound not that bad? Jun 10 19:50:17 make the app crash non-stop. Then you'll know why you're getting uninstalled Jun 10 19:50:49 another good idea. Jun 10 19:50:58 have sex with the user's mother and leave your app under the pillow. Then you'll know why you're getting uninstalled Jun 10 19:51:08 my app dont crash :D does what it says. in all devices starting from api8 to new ones Jun 10 19:51:23 lov: showing a dialog seems ok Jun 10 19:51:29 maybe people dont need what it does Jun 10 19:51:36 [12:48:01] did iOS just kang roboto!? Jun 10 19:51:39 hilarious Jun 10 19:52:21 TOP 50 Jun 10 19:52:25 t2mkn: maybe it's not well designed and presented, or not as good as others Jun 10 19:52:49 t2mkn: just a slight warning, that with the dialog was a joke Jun 10 19:53:14 you will get a lot of comments then ofc, like the hell get rid of that damn dialogs Jun 10 19:53:43 t2mkn, it is typical for a free app's install rate to be about 30-50% Jun 10 19:53:58 unless your app is particularly compelling, lots of people install stuff, try it out for a minute or two and uninstall Jun 10 19:54:04 no rhyme, no reason Jun 10 19:54:12 50% is pretty high Jun 10 19:54:16 much lower is common Jun 10 19:55:05 and with 73 downloads in general there isn't a solid groud you could take any statistic from, so you will need to wait a bit to see where the trend will be in your app, and till then you can continue improving it :) Jun 10 20:00:21 sory i was disconnected Jun 10 20:01:10 mikedg: yap that can be a reason but small one. but why they installed. even the name is reasonable and all descriptions are their. so if they don't need, they should not install also. Jun 10 20:01:27 t2mkn: whats the app ? Jun 10 20:02:25 StingRay_: its just a screen lock app. very simple one. just locks the device with a shortcut/widget/notification button Jun 10 20:03:05 so you wrote an app to replace the power button? Jun 10 20:04:18 lov: not the power button. its just handy for easy locking. i have xperia neo l. here power button is not easily accessible to me. so i made it as i was learning android development myself. Jun 10 20:04:56 well, it might be why no one is downloading it. Jun 10 20:05:03 +1 Jun 10 20:05:22 most devices place the power button directly underneath of your thumb. Jun 10 20:05:30 i have a gs3 whose power button is inevitably accidentally pressed whenever i look at it Jun 10 20:06:33 nickbp: i would try to make an app for u too :D stop locking :) well there might be 1000s of apps also in this Jun 10 20:06:47 hi android dev, i think i've got an easy one here. for some reason, ant isn't recognizing what's in strings.xml. any suggestions? Jun 10 20:07:37 I suggest you elaborate on what you mean by it doesn't recognize what's in strings.xml Jun 10 20:07:48 i'm running "ant clean && ant debug" and for some reason "@strings/welcome" isn't found in layout/strings.xml Jun 10 20:08:24 strings.xml is pretty simple, there are only 5 strings in there. i'm sure something simple is the matter, but i'm not getting any message about any other errors. Jun 10 20:08:38 You mean @string/welcome? Jun 10 20:08:53 oh, i shouldn't have the s on @strings ? Jun 10 20:08:56 that's probably it! Jun 10 20:09:11 jcrowgey: put inside values/ not layout/ if thats just string values Jun 10 20:09:40 actually, it is inside values/, i apologize for the miscommunication. Jun 10 20:10:29 so i have 'values/strings.xml' and that file has a element with 5 or so elements, there's one with @name="welcome". Jun 10 20:11:13 jjcrowgey: i some time face this issue. what i do is. just clean it. restart eclipse. and then rebuild it. that fixes my problem. Jun 10 20:11:32 changing the xml in the layout to android:text="@string/welcome" didn't help, i guess it should be "@strings/welcome" since the resource file is called "strings.xml". Jun 10 20:11:36 no idea why that happens Jun 10 20:12:05 No, it should be @string/welcome Jun 10 20:12:08 t2mkn, i'm not using eclipse, just vim and ant. i'm running 'ant clean' before compiling, sl. Jun 10 20:12:25 jcrowgey: R file is getting created properly ? Jun 10 20:12:29 jcrowgey: you can call it anythingyoudamwellplease.xml Jun 10 20:12:32 And uh, @name="welcome" ? What's with the @? Jun 10 20:12:35 tis still string/ Jun 10 20:13:18 I just wrote the @ to show it was an attribute, the file has "sometext Jun 10 20:13:20 jcrowgey, strings. Jun 10 20:13:21 Dodge Arena Jun 10 20:13:26 strings.xml* Jun 10 20:13:51 the @string refers to the string tag in the <> Jun 10 20:15:15 got it, i now have the value in the layout as "@string/welcome" and the file is res/values/strings.xml, with the structure i described above. i get 'build failed, no resource found that matches the given name (at 'text' with the value @string/welcome.xml'). Jun 10 20:15:26 * lov sighs Jun 10 20:15:28 @string/welcome Jun 10 20:15:31 not @string/welcome.xml Jun 10 20:15:49 oh shit, well believe me, the file doesn't say welcome.xml Jun 10 20:15:58 lol Jun 10 20:16:02 oh god, wait, it does. Jun 10 20:16:07 welp Jun 10 20:16:14 facepalm! Jun 10 20:16:19 glad I can help. Jun 10 20:16:29 sometimes i am a blind man. Jun 10 20:16:37 thanks for the eyes! Jun 10 20:16:39 jcrowgey: check your R file. its not created. something is wrong in your code. its compilation error. Jun 10 20:17:12 * StingRay_ thinks t2mkn is a bit lagged Jun 10 20:17:45 all is well now, before i had "@strings/whatever" so it wasn't working at all. when i fixed that problem, apparently i added another, which lov just helped me see. i'm good to go. Jun 10 20:18:38 bye and thanks. Jun 10 20:20:25 ok - let's face it! Jun 10 20:20:46 intel created new CPUs - and apple made expensive cases around the CPU Jun 10 20:21:00 that's WWDC Jun 10 20:21:15 Not the right place. Jun 10 20:21:16 and iOS7 is like an android samsung skin Jun 10 20:24:10 guys whats your choice for android dev ide. eclipse, vim or something else? Jun 10 20:24:37 Can I have shared menu ? Jun 10 20:24:52 For different activities somehow ? Jun 10 20:25:05 the code? Jun 10 20:25:08 or the xml? Jun 10 20:26:45 bluesm: if xml its already shared, and if code then make it "public static" :p Jun 10 20:28:01 In maps api v2, is there a way to calculate distance from one marker to the next? Jun 10 20:28:12 monsti: xml I could share right away. Jun 10 20:28:28 you can share the code e.g. by creating a base class Jun 10 20:28:34 monsti: Just get menu inflater. Jun 10 20:28:49 monsti: But I mean rather code... Jun 10 20:29:00 yeah so put your code in a class Jun 10 20:29:07 or create a base class for the activity Jun 10 20:29:14 t2mkn: And in every standalone class with one method ? Jun 10 20:29:41 apple just killed the mac pro :( Jun 10 20:29:41 t2mkn: Just for calling that in every activity, in onCreateOptionsMenu ? Jun 10 20:29:49 StingRay_: yes :( Jun 10 20:29:49 I hate them Jun 10 20:30:12 StingRay_: it's the G4 cube revival Jun 10 20:30:17 yeah Jun 10 20:30:17 StingRay_: http://www.apple.com/mac-pro/ ? Jun 10 20:30:34 useless bit of crap close workstation Jun 10 20:30:36 stupid Jun 10 20:30:49 I sold mine a year or so ago, waiting for this new one Jun 10 20:30:51 fk that Jun 10 20:31:00 well get a xeon server board Jun 10 20:31:14 then you don't have to even think about TB Jun 10 20:31:21 which is as good as firewire Jun 10 20:31:28 StingRay_: What's wrong with that machine ? Jun 10 20:31:39 t2mkn: ? Jun 10 20:31:41 monsti: what ??? Jun 10 20:32:04 bluesm: just that menu part, which you want to access in a different Activity Jun 10 20:32:08 StingRay_: well .... Darwin HackBookPro.local 12.4.0 Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64 x86_64 Jun 10 20:32:11 TB != FW, anyways I operate raided ESATA things Jun 10 20:32:32 StingRay_: TB = stupid crazy system Jun 10 20:32:35 bluesm: i.e public static Menu = .......; Jun 10 20:32:59 wtf. make electrons to photons to electrons to gfx ram to dvi to a screen Jun 10 20:33:57 you know if apple has release a x > imac and a x < mac pro (what it should be) they would have rules Jun 10 20:34:03 monsti: Ah. You mean to create class that would inherit from activity, Then I will inherit from that class ? Jun 10 20:34:10 t2mkn: ^ Jun 10 20:34:18 bluesm: yeah Jun 10 20:34:18 but no, I get a vacume cleaner, just like my sgi o2 Jun 10 20:34:27 StingRay_: still an iMac retina is missing Jun 10 20:34:35 the o2 was sooo nice Jun 10 20:34:40 bluesm: yap thats also an option Jun 10 20:34:54 monsti: too heavy, and vacumeish Jun 10 20:35:10 anyone here familiar with android-studio on linux? specifically arch Jun 10 20:35:16 StingRay_: and my voodoo 2 beat the shit out of the o2 ;) Jun 10 20:35:27 can't seem to launch android-studio anymore after a package update Jun 10 20:35:43 octane was the master vac though Jun 10 20:35:43 hi, i have created a thread inside the service (because I am using network), how can I stop the thread created? t.stop() is deprecated. Jun 10 20:35:54 StingRay_: what happened to SGI? Jun 10 20:36:08 they sold the best part of themselfs to alias Jun 10 20:36:11 'tools.jar' is not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE Jun 10 20:36:14 wavefront software Jun 10 20:36:24 then they failed at an intel workstation Jun 10 20:36:25 seems like a common problem according to google, but only solutions for windows... Jun 10 20:36:29 then the went away Jun 10 20:36:45 oh, the helped with N64 a bit Jun 10 20:36:50 yeah Jun 10 20:36:50 then they went away Jun 10 20:36:51 cd /etc Jun 10 20:36:51 ls Jun 10 20:36:55 daivyk: have a boolean value in that thread, as boolean alive = true; so if true thread should continue. make it false when you want to break it. Jun 10 20:37:55 StingRay_: the apple innovation has gone :( Jun 10 20:38:17 daivyk: use a volitile boolean variable. is a better choice Jun 10 20:38:34 volatile Jun 10 20:41:52 t2mkn: ok, but with this boolean I am going to call what? Thread.stop ? Jun 10 20:43:15 daivyk: the idea is that your thread's run method has while(alive) { .... } Jun 10 20:43:26 changing the variable of alive breaks out of the loop. Jun 10 20:43:41 you may wish to read up on java multithreading in general Jun 10 20:43:49 take a read through http://docs.oracle.com/javase/tutorial/essential/concurrency/ Jun 10 20:43:53 daivyk: lov is right. Jun 10 20:44:09 hello, can anyone help me on implementing other screen unlockers? i want to have sometime like the IOS unlocked, but just the bar mechanism Jun 10 20:44:18 i jsut want something simple that fits on the bottom easily Jun 10 20:44:52 Ok, but now I have a thread running on my android device, how do I stop it ? I already stopped the service... hehehe Jun 10 20:45:21 If i send a msg from the network i receive.. so the thread is running.. ;) Jun 10 20:46:22 daivyk: I'm glad you're not listening to anything we're saying :D Jun 10 20:46:27 good luck with your app :D Jun 10 20:46:49 lov: lol Jun 10 20:47:29 hello. I have a lengthy but important question. anyone wants to participate? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 10 20:47:44 nope Jun 10 20:48:10 * StingRay_ is in mourning Jun 10 20:48:21 Sircle: I'm not really sure what the question is, but I'm guessing you're ESL. Jun 10 20:48:34 just call startForeground in onCreate of your service or something Jun 10 20:48:35 lov: ESL? Jun 10 20:48:40 english as a second language Jun 10 20:48:43 i.e. you're not a native speaker Jun 10 20:48:50 lov: I am listening, but before I made the question I already tested the code, so now I have a thread running... Jun 10 20:48:54 lov: correct for both things. but that i know Jun 10 20:49:00 daivyk: and so you must give it a reason to stop. Jun 10 20:49:09 if you do not understand what I am saying, perhaps you should read the link that I gave you? Jun 10 20:49:32 Sircle: anyway, if you set the service as being in the foreground, it's at the highest priority it feasibly can be. Jun 10 20:49:58 lov: I am reading Jun 10 20:50:04 ;) Jun 10 20:50:31 lov: that i wrote in my scenario point 3. Jun 10 20:51:05 brb Jun 10 20:52:14 Sircle: just track it in a public static boolean sIsRunning in the Service Jun 10 20:52:30 if it's running, it'll be populated. If not, it won't. Jun 10 20:53:06 any one using "openintents". its not working in my emulator which is using API 8. force close while lunching it in emulator. Jun 10 20:53:25 any idea Jun 10 20:53:35 t2mkn: idea: check adb logcat Jun 10 20:54:02 evanc: oops, yap i should have done that. same on me :P thanks :) Jun 10 20:54:16 evanc: lov thnaks Jun 10 20:55:15 * Sircle points evanc to Research and Code:--- strategy section of question, that he has mentioned it and a small question about it Jun 10 21:03:41 Hello everyone, Jun 10 21:03:41 Im working on an android app that reads a lot of variables from the strings.xml file. Is there a way to instead receive variables from and external file such as JSON or XML? Thanks in advance. Jun 10 21:06:06 strings".xml" is erm…xml Jun 10 21:06:16 Hello Guys. Quick problem: AlertDialog.show() does trigger a reload of the current activity or something. Jun 10 21:06:26 but yeah you can also just read a file, and parse it as json Jun 10 21:06:58 at least the activity reloads and pushing "back" will go to the AlertDialog Jun 10 21:08:03 StingRay_, whats the the best rout to go when pulling in external files? Jun 10 21:08:11 read it Jun 10 21:08:14 bencbond_com: do u have a long time loading issue from xml? Jun 10 21:08:58 I would not think it quicker than the defined list in strings.xml though Jun 10 21:09:05 could be wrong Jun 10 21:10:22 t2mkn, no the local xml loads file but I'm updating my app to display content dynamiclly based on a json feed. with the current app i would have to push an app update with the new xml info. Jun 10 21:11:49 How fast my beta would be updated ? Jun 10 21:12:06 same as playstore Jun 10 21:12:08 I mean when I can tell others, hey Download new update... Jun 10 21:12:09 12-24h Jun 10 21:12:21 or whatever it says Jun 10 21:12:26 StingRay_: Shouldn't "That" be quicker ? Jun 10 21:12:28 usually 5-8 ish Jun 10 21:12:33 yes it should Jun 10 21:12:34 bencbond_com: u can use some json parser for that Jun 10 21:12:37 but it isn't Jun 10 21:13:03 it "should" be couple of minutes Jun 10 21:13:11 but it takes 5-8 hours Jun 10 21:13:22 StingRay_: I mean I could interchange apk, but it is stupid... ( I understand release when maybe they want to make "super optimization") ... Jun 10 21:13:30 StingRay_: Ok . Thanks for informations :) Jun 10 21:13:41 t2mkn, thanks. I'll look into that Jun 10 21:13:54 if you want to write a strong letter to google, put my name on it too bluesm Jun 10 21:13:56 :) Jun 10 21:14:10 How can I create an array in an app that an activity in its Library Project can loop through? Jun 10 21:16:04 benlieb: extend that lib class and overwrite that method. Jun 10 21:16:31 or just pass it into a method on that class Jun 10 21:17:47 StingRay_: i thought a bit of hacking kind of requirement :P Jun 10 21:17:53 The activity displays a list of images. The images are different for every app. I want the activity to be able to refer to some data structure and loop through it. Does that make sense? Jun 10 21:18:20 The app itself isn't calling a method, it just loads the activity. Jun 10 21:18:44 and its path data ? Jun 10 21:18:51 rather that binary image data ? Jun 10 21:18:59 as in a String[] Jun 10 21:19:09 For example, can the activity ready through the available drawable resources and grep for a specific string, then sort them, then display them? Jun 10 21:19:28 i feel like your not seeing my questions Jun 10 21:19:33 oh well Jun 10 21:20:24 if data instanceof Sting[] || int[] pass as a bundle when you start the activity Jun 10 21:20:29 quite easy Jun 10 21:21:33 SimonVT: upgraded to latest master on android-menudrawer and it doesn't seem to be working. Known issues right now? Jun 10 21:21:34 The activity is called from a button in another activity that is also part of the Library Project, and has no app-specific information. Jun 10 21:22:07 I would like to be able to have some kind of config file that the activity can read, and will find it in the app Jun 10 21:22:08 I sense a flaw in the design :) Jun 10 21:22:26 sounds like the libaray should be the app :) Jun 10 21:23:08 nope Jun 10 21:23:20 I guess I could write to shared prefereces Jun 10 21:24:04 marcab, worked when I went through the samples Jun 10 21:24:36 hmm. Kk. Jun 10 21:37:57 Has anyone used the Presentation class successfully to display different content on an attached monitor? Jun 10 21:38:33 didnt even know there was a standard api for such things Jun 10 21:38:41 throught it was manuf. specific Jun 10 21:38:45 Hi All Jun 10 21:38:45 It's in 4.2.2 Jun 10 21:39:39 I have an issue with ndk build. I am getting error like "error: expected template-name before '<' token". Anyone help me? what could be wrong with that? Jun 10 21:39:54 I had lots of fun realising that an old sub par chineese tablet could control and allow user control of hdmi output and latest gratest sammy, asus could not Jun 10 21:41:32 need help on ndk compilation Jun 10 21:43:06 anyone can help me on android native code compilation? Jun 10 21:43:27 I think people got the question Jun 10 21:43:36 asking 3 times wont help ya much Jun 10 21:43:50 yah ... you gotta ask 4 times Jun 10 21:44:31 a little patience helps ;) Jun 10 21:46:51 ideas on why this failed? https://gist.github.com/heath/ece10236b343a1572e5d Jun 10 21:46:58 /home/heath/Local/adt-bundle-linux-x86_64/sdk/tools/ant/build.xml:691: Execute failed: java.io.IOException: Cannot run program "/home/heath/Local/adt-bundle-linux-x86_64/sdk/build-tools/android-4.2.2/aapt": java.io.IOException: error=2, No such file or directory Jun 10 21:47:02 aapt is present in that directory... Jun 10 21:53:56 heath: jw, why aren't you using gradle? Jun 10 21:55:21 fk sake, apple should just die ! Jun 10 21:55:26 as a company Jun 10 21:55:53 I feel like they just murdered a family member Jun 10 21:56:06 ...why? Jun 10 21:56:21 StingRay_: What? Jun 10 21:56:30 hello, i have problems with kernel building, can anybody help me? Jun 10 21:56:32 During every one of their iOS and design videos I'm pretty sure I shed a tear Jun 10 21:56:36 glukosio: try android-root Jun 10 21:56:37 cause they just turned one of the best general purpose workstations into an air filter that follows next to nothing of it's created purpose Jun 10 21:56:46 ok thank you Jun 10 21:57:29 the flattened ios to be a android looking (although slightly better) thing, that is not creative at all, just sligh evolution Jun 10 21:57:33 they* Jun 10 21:57:47 slight* Jun 10 21:57:54 that pissed off I cant type Jun 10 21:58:24 what annoys me even more, is clueless fk tards clapping and cheering at the presentations Jun 10 21:58:32 ugh Jun 10 22:00:20 wouldn't care, but if you want to do serious vfx work on a mac pro, you always needed to throw the ati's in the "fire" Jun 10 22:00:41 and get something real, so what do apple do ? burn them in so you cant Jun 10 22:00:48 Jun 10 22:01:39 they sent me from here again from android-root :( Jun 10 22:02:11 what has kernel stuff got to do with app development ? Jun 10 22:02:15 ask them that Jun 10 22:02:16 yah kernal building isnt either of those channels Jun 10 22:02:36 try cy's channel or something Jun 10 22:03:50 or type /msg alis list *android* for options Jun 10 22:41:23 SimonVT: fwiw, I'm going to roll back. Can't get master HEAD working. Git bisect blames this commit 50c6afeaa7eb9a21c7a25a3d668f782d1542e886 Jun 10 22:41:24 <[conrad]> Hello everyone. Can someone point me to a reference that could help guide me on how to collect information about a connected Android device through a C++ desktop application? Also, does the device have to be in debug mode to collect certain basic pieces of information? At this point, I'm only interested in the model number. Jun 10 22:42:23 SimonVT: (of android-menudrawer -- should have mentioned) Jun 10 22:45:34 marcab: not an action bar init prob Jun 10 22:45:46 ? Jun 10 22:46:02 StingRay_: pardon? Jun 10 22:46:23 you got some prob with vts menu drawer ? Jun 10 22:46:36 Yeah Jun 10 22:46:46 whats the prob, out of interest Jun 10 22:48:30 StingRay_: As of that commit, my content view is loaded empty Jun 10 22:48:50 oh, totally diff to my prob then Jun 10 22:48:50 And I can't get a menu view to appear Jun 10 22:49:16 Though 'opening' the menudrawer DOES cause my content view to shift ever-so-slightly Jun 10 22:49:53 Saw same behavior in 2.3 and 4.1 :/ Jun 10 22:55:51 [conrad]: https://android.googlesource.com/platform/system/core/+/master/adb/ Jun 10 22:56:15 [conrad]: you might be able to get limited info from the "adb devices" command but I doubt it will be useful Jun 10 22:58:06 <[conrad]> evanc: That's currently what I'm using ( adb devices -l to be exact ) , but it has a issue I'm trying to work around of not needing the device to be in USB debug mode. I've also used adb shell cat /system/build.prop | grep "ro.product.model", but they both rely on adb. Jun 10 22:58:57 <[conrad]> My biggest concern is that any solution relies on the USB debug mode, which would make what I have the best solution as it's already in place and working. It just becomes a pain sometimes getting certain people to properly enable the debug mode. Jun 10 22:59:42 [conrad]: right, don't tell people to enable debug mode unless you hate your users Jun 10 23:00:21 some devices will list very basic info without debug being enabled, IIRC Jun 10 23:01:06 pair that with lsusb and you can maybe figure out the model. (I hope not, though (from a security standpoint, heh)) Jun 10 23:01:55 hey, I'm having issues using binaries from my project since I started using Android Studio Jun 10 23:02:10 <[conrad]> I haven't been able to get a model number of any device that didn't have the debugging enabled, and on newer devices, connected via the RSA key. Jun 10 23:02:24 instead of Eclipse - the JNI stuff doesn't seem to work any more, and it seems like the interfaces expected aren't in the .so files any more Jun 10 23:02:56 <[conrad]> Thing that bothers me is that, at least on my Galaxy Nexus, when I first plug the device in on my desktop ( which runs Ubuntu ), it notifies me I inserted a digital audio player, which isn't that big a deal, but it does say in that notification "Galaxy Nexus" Jun 10 23:03:22 <[conrad]> And at that point, adb lists the device as offline, as I haven't accepted the key. Jun 10 23:04:58 <[conrad]> Anyway, thanks for the help. Jun 10 23:09:02 [conrad]: you likely have to get into the USB stack to get that. I doubt it's exposed via adb Jun 10 23:19:55 any target date on iosched 2013 code ? Jun 10 23:20:03 or their appcompat stuff Jun 10 23:20:14 i should know better than to ask probably Jun 10 23:24:57 lol g00s Jun 10 23:25:50 they did say really soon :) Jun 10 23:30:13 g00s: well, it's all relative Jun 10 23:30:31 it's really soon compared to the release of Half-Life 3 Jun 10 23:31:11 indeed :) they did say i should use their stuff for new projects tho, do they expect us to wait for months ? Jun 10 23:31:23 years? Jun 10 23:31:26 :) Jun 10 23:31:28 wb g00s Jun 10 23:31:40 hey StingRay_ :D Jun 10 23:31:48 * StingRay_ cried today, after all the apple stuff Jun 10 23:33:08 StingRay_ yeah, mixed feelings.i like some new features iOS got like webOS style multitasking; i even like the flatness or lack of chrome, but their color scheme seems really hard to read Jun 10 23:33:36 i just want to shoot them all over the mac pro Jun 10 23:33:46 it looks like a toilet Jun 10 23:33:50 actually no, shooting is too easy Jun 10 23:33:58 and too quick Jun 10 23:34:20 actually a wash machine or upright spin dryer Jun 10 23:34:45 maybe thats the hidden feature that will be revealed at the last minute. the water is part of the whole cooling scheme Jun 10 23:35:48 http://www.dlink.com/uk/en/home-solutions/connect/routers/dir-645-wireless-n-home-router-1000 Jun 10 23:36:11 some sh*t happening when you take design cues from dlink Jun 10 23:36:30 i can excuse dlink, maybe the antenna design Jun 10 23:38:11 StingRay_ do you know if keychain must be in iCloud ? Jun 10 23:38:31 no i do not, but I REALLY REALLY doubt it Jun 10 23:39:43 i always wait for the verge's "everything you need to know about …" ; i have no patience to watch these keynotes Jun 10 23:40:41 Is it stupid to use a WebView to render vector graphics (i.e. svg embedded in a simple html page)? Jun 10 23:41:00 should write a special video ripper, that takes the self absorbed self complement and pointless statement out of it, it would be like… 10 minutes long if that Jun 10 23:41:18 cincinnatus: more like ill-advised Jun 10 23:41:34 JakeWharton: What would be a better approach? Jun 10 23:41:44 that depends on what you actually are trying to accomplish Jun 10 23:41:48 yawn Jun 10 23:42:52 JakeWharton: Simple (yet custom) maps / floor plans, not requiring advanced topographical technology Jun 10 23:43:16 JakeWharton: I might also need to create an iphone version at some point... Jun 10 23:43:25 JakeWharton: but I was also considering this: http://code.google.com/p/svg-android/ Jun 10 23:44:19 cincinnatus: svg-android is pretty sweet, but please note that you don't want to use the main repo linked to there. Jun 10 23:44:25 i forked it and provided a bucnh of really useful patches Jun 10 23:44:29 but those schmucks still won't merge Jun 10 23:44:40 they basically fell off the earth and have done nothing at all since releasing that Jun 10 23:45:25 cincinnatus: doesn't google maps have custom layers to support exactly this? Jun 10 23:45:28 https://github.com/michaelnovakjr/svg-android -- use that one. Jun 10 23:45:50 evanc: The map needs to be rendered in the app, not online Jun 10 23:46:51 evanc: I've used mapsforge but it's too limited Jun 10 23:47:01 (e.g. it won't even let you rotate the map) Jun 10 23:47:59 cincinnatus: looks like you can probably use a custom TileProvider Jun 10 23:51:58 evanc: but then it's up to me to render vector maps to raster images at different zoom levels. Jun 10 23:52:42 evanc: that's way more involved than svg Jun 10 23:55:01 jasta: rebrand and re-release Jun 10 23:57:04 meh Jun 10 23:57:13 too lazy Jun 11 00:01:13 man apples IOS announcements today are really pulling me to the darkside Jun 11 00:01:36 enjoy. Jun 11 00:01:49 haha I'm being sarcastic Jun 11 00:02:00 Yo guys, so I'm making an app that parses a streaming URL from a website but it's a rather lengthy process (I have a playlist). It normally executes the parsing when the user first selects a song, but I want to make a way to parse future URLs in the background Jun 11 00:02:05 Right now, the music is playing from a service and the parsing is done in the service as well. Jun 11 00:02:12 But is there any way to just loop through using an AsyncTask and parse all of the URLs and keeping my program thread safe? Jun 11 00:02:16 looks like a halfassed version of light jellybean with some bits from windows phone 8 Jun 11 00:02:37 ron_frown: Talking about iOS 7? Lol. Jun 11 00:03:07 way TOO flat imo Jun 11 00:03:13 Too flat. Jun 11 00:03:18 Windows 8 does it well. Jun 11 00:03:24 iOS 7, not so much. Jun 11 00:03:33 Why would they want to make that their design standard? Jun 11 00:03:55 From a designer's point of view, that's not the type of style I'd want to be constantly doing. Might as well make an icon set for that. Jun 11 00:03:56 flat is the current UX fad Jun 11 00:05:08 Meh. Jun 11 00:05:44 Also, I wrote an Android app with zero comments . . . Jesus Christ, I made the noobiest mistakes and I'm trying to do bug fixes now and I'm hitting myself in the head for it. Jun 11 00:06:46 UX is the current fad Jun 11 00:06:53 ugh Jun 11 00:07:31 I think ux matters Jun 11 00:07:42 my day job has no ux experience whatsoever and it shows Jun 11 00:07:45 shit is not intuitive Jun 11 00:07:52 ux dont matter at all Jun 11 00:07:55 unnecessarily complex Jun 11 00:08:00 And this is why Jun 11 00:08:02 I'm a Graphic Design major Jun 11 00:08:05 And Computer Science major, lol. Jun 11 00:08:14 ux is a made up thing Jun 11 00:08:26 for producers and the ill informed Jun 11 00:08:35 like the words workflow and pipeline Jun 11 00:08:38 There are psychology studies on UX though. Jun 11 00:08:45 yes there can be Jun 11 00:08:53 but you cannot design or create UX Jun 11 00:09:02 http://www.google.com/about/jobs/teams/engineering/ux/ Jun 11 00:09:03 Yes you can Jun 11 00:09:09 no you really cant Jun 11 00:09:09 Because there are trends that the mind follows. Jun 11 00:09:15 it's just "UI DESIGN" Jun 11 00:09:26 indeed Jun 11 00:09:30 there are Jun 11 00:09:43 UX is not outside just standard UI Design Jun 11 00:09:49 and relates more to an experience Jun 11 00:09:57 of which you cannot design or create Jun 11 00:09:59 but influence Jun 11 00:10:35 you think that for 20 years no1 thought, ooo, we dont care about how the user "experiences" our UI and Interface Jun 11 00:10:52 hence why I call it a pointless word/desc Jun 11 00:11:17 if anything it should be a mark tick box, 0-10 on a demographic test Jun 11 00:11:18 ui design imo could be looks Jun 11 00:11:20 not usability Jun 11 00:11:25 not something bounded in the world of design Jun 11 00:11:52 ron_frown: ui design is what the User Experiences Jun 11 00:12:09 ui design and flow, static or motion, is just design Jun 11 00:12:23 I guess we can agree to disagree Jun 11 00:12:25 and you have always accounted for probably experience from the user Jun 11 00:12:33 I think there are a lot of fads that are just total bullshit Jun 11 00:12:42 I do think ux and ui design are diff Jun 11 00:12:58 they are Jun 11 00:13:02 I agree Jun 11 00:13:09 one you design Jun 11 00:13:18 the other is the influence of that design Jun 11 00:13:19 lol Jun 11 00:14:32 I've contributed to countelss look/feel/flow of console game menus in my time Jun 11 00:14:46 never did I think, ooo, I'm creating a User Experience Jun 11 00:15:10 I thought , in this design I hope the user has a posative experience Jun 11 00:15:19 through my design influence Jun 11 00:15:29 each to his own i guess Jun 11 00:16:06 maybe if I hadn't not had a cig for god knows how many weeks, I would agree, but right now I dont Jun 11 00:16:27 StingRay_ still cig free ? Jun 11 00:16:42 dam those little firey pleasure rods of glowing goodness Jun 11 00:16:48 YES! Jun 11 00:16:51 cancer sticks? Jun 11 00:16:54 I am still cig free Jun 11 00:16:57 \o/ Jun 11 00:17:05 congrats, woohoo Jun 11 00:17:37 * capella alcohol free 3 years ... woohoo Jun 11 00:17:52 never really dunk alch Jun 11 00:17:56 maybe i should start Jun 11 00:18:01 :| Jun 11 00:18:04 is that less damaging that cigs ? Jun 11 00:20:50 StingRay_ i think android dev is more damaging than both Jun 11 00:20:54 StingRay_, it is to your lungs Jun 11 00:22:47 intellij update; 12.1.4 Jun 11 00:23:32 yeah and now for some strange reason my relativeLayout rows seem to ignore the relationships Jun 11 00:23:47 well not in a build only in the xml viewer Jun 11 00:41:10 p_l http://clojure-android.blogspot.co.uk/2013/06/state-of-clojure-on-android-2013.html Jun 11 00:45:59 Got sidetracked .. so The Apple news is in and its a *yawn* ? Jun 11 00:46:24 more like a little anger Jun 11 00:46:39 capella i think they made the color scheme harder to read, so you'll have to buy iGlasses to help with that Jun 11 00:46:43 although that could be the cigs Jun 11 00:46:52 no, wait…. no it's apple Jun 11 00:47:37 meh ... iGlasses without virtual porn realtime overlays ... what's left for it? Jun 11 00:48:33 Leprechauns and enchanted bunnies? Jun 11 00:49:50 http://goo.gl/RVpoH Jun 11 00:52:05 if you distill a phone to a slab of glass, and content is the UI, there is little to differentiate except function Jun 11 00:54:23 "apple741 has left #android-dev" Jun 11 01:00:44 how in the world does this cause classcastexception? spinner_press = (Spinner) findViewById(R.id.spinner_press); Jun 11 01:00:59 spinner_press is not a spinner Jun 11 01:01:02 private Spinner spinner_temp, spinner_press; Jun 11 01:01:23 or, the view you are getting with the id spinner_press is not a spinner Jun 11 01:01:41 it's declared in xml as a spinner Jun 11 01:02:15 http://pastebin.com/kGTQpU1p Jun 11 01:02:26 last one Jun 11 01:02:56 you sure your loading that layout Jun 11 01:02:59 Tricknology: are you sure that's the layout you're inflating? Jun 11 01:03:04 :) Jun 11 01:03:08 are you sure that's the layout you're searching? Jun 11 01:03:14 haha, i'm pretty sure Jun 11 01:03:20 check again Jun 11 01:03:21 :) Jun 11 01:03:22 pastebin that Jun 11 01:04:33 http://pastebin.com/vFi9tRu0 Jun 11 01:05:01 spe = prefs.edit(); Jun 11 01:05:03 what is spe Jun 11 01:05:14 private SharedPreferences.Editor spe; Jun 11 01:05:31 i suppose that makes sense Jun 11 01:05:38 Tricknology: is http://pastebin.com/kGTQpU1p activity_get_tp.xml ? Jun 11 01:05:47 yes, sorry Jun 11 01:06:01 cant you do Log.e("f*ck","This is a f*kin :" + ((View)findViewById(R.id.spinner_press).getClass()); Jun 11 01:06:02 if so, try doing a clean on your project because everything _seems_ on the level Jun 11 01:06:11 at least, at first glance it does Jun 11 01:06:24 StingRay_, logcat will tell you what it is Jun 11 01:06:35 StingRay_: you're allowed to fuckin' swear on the internet :P Jun 11 01:06:40 no Jun 11 01:06:43 no your not Jun 11 01:06:47 in england your not!!! Jun 11 01:06:58 whaaat? Jun 11 01:07:00 .oO(or use grammar) Jun 11 01:07:01 i can sure try Jun 11 01:07:01 you're Jun 11 01:07:15 shuddup Jun 11 01:07:18 you left Jun 11 01:07:22 you dont count no more Jun 11 01:07:29 I never left Jun 11 01:07:44 @leeds that Jun 11 01:09:13 actually yeah I have had id's messed up in eclipse, pointing to things they shouldn't Jun 11 01:09:21 not had that yet with intelliJ Jun 11 01:09:49 sometimes cleaning didn't help Jun 11 01:10:02 had to create another view/layout or something with an id Jun 11 01:10:23 anyone use logback-android? i just noticed it; i only used slf4j-android once Jun 11 01:18:35 compiler error on that vulcar code StingRay_ Jun 11 01:18:40 vulgar* Jun 11 01:19:03 have you cleaned ? Jun 11 01:19:10 and it still dont work ? Jun 11 01:19:14 Cannot cast from Class to View Jun 11 01:19:41 like molly maids Jun 11 01:19:48 oooooo ... that sweet feeling on the hunt when you first spot the bug .... Jun 11 01:20:10 ooh, the (View) vast no working Jun 11 01:20:15 cars* Jun 11 01:20:19 … cast* Jun 11 01:20:48 aaand now it works.. Jun 11 01:21:06 This is a f*kin :class android.widget.Spinner Jun 11 01:21:10 lol Jun 11 01:21:22 I suspect you just needed to do a build and force R to be generated Jun 11 01:21:25 i'm going to have to use that more in my debugs :P Jun 11 01:21:31 you imported a wrong spinner ? Jun 11 01:21:37 as in your imports Jun 11 01:21:44 i don't think so Jun 11 01:21:45 you got some other ui framework Jun 11 01:21:50 swing Jun 11 01:22:05 after putting that line in and cleaning it worked Jun 11 01:22:25 possibly, i did copy pasta from a swing project once or twice Jun 11 01:25:17 Thanks :) Jun 11 02:21:16 well this probably isn't the place but.. Jun 11 02:21:27 java.lang.ClassNotFoundException: org.codehaus.jettison.json.JSONException Jun 11 02:21:35 jettison.jar is in the lob and build path Jun 11 02:21:37 lib Jun 11 02:27:51 Tricknology make sure its exported Jun 11 02:28:14 exported? it is because I'm trying to run this through eclipse? Jun 11 02:28:43 hi Jun 11 02:29:02 can you intercept packets Jun 11 02:29:35 g00s I'm running the test through eclipse first just to see if I'm getting data. if i export it to .WAR things become difficult Jun 11 02:42:44 anyone know how to add headers to a request in volley off the top of their head? Jun 11 02:44:02 Override getHeaders Jun 11 02:44:12 ahh Jun 11 02:44:15 thanks Jun 11 02:44:42 so i guess there is no 'setHeaders' method? Jun 11 02:56:09 No **** ENDING LOGGING AT Tue Jun 11 02:59:58 2013