**** BEGIN LOGGING AT Fri Dec 20 03:00:00 2013 Dec 20 03:00:54 I440r: played with it a bit, yes. Not in any production situation Dec 20 03:02:15 how do I get a GridView to refresh its contents after I update the adapter? Dec 20 03:03:16 notifyDataSetChanged? Dec 20 03:04:18 So there are no android instant messaging tutorials out there? Dec 20 03:04:54 CocoStorm: that is so broad. maybe make ask your question after researching protocols? Dec 20 03:04:57 canvs2321: I did that. but it doesn't seem to update Dec 20 03:05:22 durka42: then you did something wrong Dec 20 03:05:26 dunno what to research Dec 20 03:05:42 ohhh I think maybe it's being hidden because the view is too small Dec 20 03:05:47 let's see Dec 20 03:05:49 CocoStorm: then maybe try being a plummer? Dec 20 03:06:20 canvs2321, *plumber Dec 20 03:06:25 CocoStorm: instant messaging can be sooooooo many things Dec 20 03:06:40 wifi, mobile, nfc, etc.... Dec 20 03:06:49 CocoStorm: be an editor! Dec 20 03:07:01 canvs2321: yep that was it :p Dec 20 03:07:16 durka42: cool Dec 20 03:08:37 +CocoStorm: you have a central server, direct connect, two cans with string connection etc... Dec 20 03:09:41 canvs2321, oh really Dec 20 03:10:15 CocoStorm: what are you trying to achieve? Dec 20 03:10:19 basically you need to decide how the connections will be made. Then resolve sending messages to the users Dec 20 03:27:14 why does 16712965 + 0xFF000000 give me a negative number? Dec 20 03:28:06 is there nice library function to find what is lowest number, if there is more than one lowest number, tell me which ones? Dec 20 03:28:48 for example I have those, 2,4,1,1,45 and I want it to return #3 and #4 since they are lowest Dec 20 03:28:52 *those Dec 20 03:29:30 i'm not sure if there's a library, but that's a pretty straightforward algorithm Dec 20 03:29:32 i think my process is being executed but being instantly killed Dec 20 03:29:42 java is missing a nice map/reduce abstraction in the standard libraries. Dec 20 03:31:16 ultra-: what does 0xFF000000 equate to as an integer or long Dec 20 03:31:36 maybe you are exceeding some kind of limit Dec 20 03:31:37 integer, but i thought they're 32 bits in java Dec 20 03:32:01 no what is the value as an integer not hex Dec 20 03:32:19 ff000000 _is_ 32 bits :-) Dec 20 03:32:29 yeah exactly... 4 bits per character in that Dec 20 03:32:40 then add that extra 16712965 than you exceed? Dec 20 03:32:54 with a leading bit of 1 at the high-bit :-) Dec 20 03:33:02 ultra-: yeah theres Math but it only gives me lowest number, not which one Dec 20 03:33:05 * kbs wonders whether teh art of 2's complement has been forgotten Dec 20 03:33:13 well i'm adding two numbers and end up with a negative, adding it back will still end up less than that number Dec 20 03:34:08 well signed and unsigned are different, so you are borking something Dec 20 03:34:15 i dont get it. i run to my Runtime.getRuntime().exec(...) and stop before executing it. i hit F8, click on an adb shell and hit enter (executing a ps). less than a second between the exec and the ps... the proc is gone before i can see it Dec 20 03:34:19 there's no unsigned in java Dec 20 03:34:24 * kbs still doesn't see the mystery Dec 20 03:34:31 the third opcode in that executable is a stop: b stop Dec 20 03:34:36 i.e. a halt Dec 20 03:34:51 oh there's the damn problem, there's no unsigned Dec 20 03:34:53 ultra-: basically if you are adding two #'s and expecting a positive #, but your results are -, then guess what Dec 20 03:34:55 i know the process is being executed. but its being instantly killed Dec 20 03:34:58 why? Dec 20 03:35:04 so that first bit is the sign Dec 20 03:35:17 " with a leading bit of 1 at the high-bit :-)" Dec 20 03:35:43 i should have known this :P Dec 20 03:37:37 XXCoder: bubble sort? Dec 20 03:38:25 that seems like an excessively complicated way to do it :) Dec 20 03:38:48 AND I'm back. This cruft is still not-a-workin Dec 20 03:39:04 all i'm really trying to do is take this 6 big RGB value and add the alpha Dec 20 03:39:08 http://stackoverflow.com/questions/4703131/is-it-possible-to-run-a-native-arm-binary-on-a-non-rooted-android-phone Dec 20 03:39:10 maybe there's another way Dec 20 03:39:21 im basically doing exactly this.. but android is KILLING my app Dec 20 03:39:23 why? Dec 20 03:39:23 big/bit Dec 20 03:39:37 killing my native process even Dec 20 03:39:49 ultra-: oh, you probably to just work on the high 8-bits alone then Dec 20 03:39:53 I440r, without much needed code, your questions are just getting redundant Dec 20 03:40:01 yeah I dont want to sort, but I do have idea for simple method Dec 20 03:40:19 what code would you like to see Dec 20 03:41:00 just loop through your values&if less than add to an array if you want multiples of the same low value. and upon looping check your lowest value if a i440r: all of it Dec 20 03:41:10 http://bpaste.net/show/160381/ Dec 20 03:41:24 you certainly do not want to see ALL of my code Dec 20 03:41:32 kbs: isn't that what i was doing though? Dec 20 03:41:41 canvas yeah always 8 entries so find lowest and set int array of all same entries as low value Dec 20 03:41:47 thats O(16) Dec 20 03:41:55 in other words, O(1) Dec 20 03:42:07 i swear i've done this before... haven't touched java for a year and starting again Dec 20 03:42:12 well techinically o(n) lol Dec 20 03:42:18 ultra-: your code [as it stands] would do funny things if the rgb value had its own alpha; but maybe that's not your situation. Dec 20 03:42:27 ultra-: do you simply want to set the high 8 bits to ff? Dec 20 03:42:34 yeah Dec 20 03:42:47 0xff000000 | x; Dec 20 03:42:48 ultra-: why not just or it? That would be simplest and least complicated Dec 20 03:42:49 num | 0xFF000000 or num + 0xFF000000 should do the trick Dec 20 03:43:17 + would not do the trick if the high 8 bits had anything in them at all Dec 20 03:43:18 the latter would be tricky if num had alpha itself; but the former would always be safe Dec 20 03:43:20 use or Dec 20 03:43:33 yeah + does not Dec 20 03:43:51 or and is very damn fast op too Dec 20 03:44:05 it should if there's no bits set to high on the variable Dec 20 03:44:10 in the first 8 Dec 20 03:44:22 canvs2321, any other code you want to see? Dec 20 03:44:25 but yeah OR is the way to go Dec 20 03:45:01 System.out.println shows me a negative number, i don't get it Dec 20 03:45:14 well its signed Dec 20 03:45:22 if first bit is 1 it will be negative Dec 20 03:45:25 i440r: does stdout.write() do the flushing for you? Dec 20 03:45:48 i put a break point on the forthProc= line Dec 20 03:45:53 &you shouldn't block UI waiting on read Dec 20 03:45:54 runto the break. hit F8. Dec 20 03:46:01 switch to the adb shell and do ps Dec 20 03:46:06 the forth proc has already been killed Dec 20 03:46:06 ok so i should still be able to pass this number and it'll work Dec 20 03:46:11 THATS the problem Dec 20 03:46:19 is this just straight java, or you programming for a device? Dec 20 03:46:25 i know the process is being executed becus the exec does not throw Dec 20 03:46:39 but before i can write anything the process is already gone Dec 20 03:47:01 is what straight java? Dec 20 03:47:06 I440r: out of curiosity - without the debugger, does it appear to correctly process your "bye" command? Dec 20 03:47:06 i don't know the process life cycle, does it just stay alive til you send a command to bye? Dec 20 03:47:29 kbs no the third opcode in that executable is a JMP to itself Dec 20 03:47:43 i do this to prevent the executable from erroring out. Dec 20 03:48:04 so if i do ./a4 it just sits there. i can then see it in ps x Dec 20 03:48:06 and then kill it Dec 20 03:48:24 when i Runtime().exec() it it is being killed before i can even ps x Dec 20 03:48:33 I440r: I see. Well - I wonder if you also need to grab the error stream and dump it out as well. Dec 20 03:48:57 Dunno about android - but generally, I've found that I almost always need to grab stdout and stdin from different threads; and have a way to "drain" stderr; otherwise it eventually blocks the process if it writes enough data onto that file descriptor Dec 20 03:48:59 the process sits and reads input from stdin, process it. writes output to stdout till the input is a bye command Dec 20 03:49:14 the error stream is not written to by that process Dec 20 03:49:21 I440r: ^^ just to be safe, you might want to track that output Dec 20 03:49:25 is f.setExecutable(true, true); working? and setting it? Dec 20 03:49:32 i would be MORE than happy to send the source to that process to anyone that wants a pre-release peak Dec 20 03:49:34 perhaps the shell doesn't like it; and the error might come from a different place Dec 20 03:49:42 yes. tht works Dec 20 03:49:49 because i can ./a4 in adb shell Dec 20 03:50:41 want to see the sources to the a4 process? Dec 20 03:50:44 dump errorstream :-) if nothing, to eliminate that from the list of possiblly helpful output Dec 20 03:50:48 this stupid thing was working the whole time, i just had setting the drawable's color commented out elsewhere Dec 20 03:50:49 arrrrgh Dec 20 03:50:58 kbs stderr is not being written to by that process at all Dec 20 03:51:06 I440r: I completely understand Dec 20 03:51:07 i know because i wrote it :P Dec 20 03:51:10 i440r: what is the value of private static final String FORTH_PATH = retrorpg.DATA_PATH + "a4"; Dec 20 03:51:12 I believe you :-) Dec 20 03:51:19 its 100% pure assembler and i dont write to stderr Dec 20 03:51:51 DATA_PATH = context.getFilesDir().getPath() + "/"; Dec 20 03:52:09 so it will be /data/data/com.blah.blah/files/a4 Dec 20 03:52:25 I still suggest - dump errorstream; and in general you'll want to track the file descriptors in different threads Dec 20 03:52:44 I understand that you aren't writing anything to errorstream, and that you are able to run a4 in an adb shell Dec 20 03:53:57 it's a tiny bit of effort to make sure there isn't some unexpected interaction with the shell [which ish how Runtime().exec*() really works] that's not obvious Dec 20 03:54:01 kbs the exec happns. it does not throw. so theres a structure allocated for the process with all the info. when i call getInputStream it just reads that structure. by the time i do that the process is ALREADY DEAD Dec 20 03:54:24 ah well Dec 20 03:55:35 making a custom interface so starting with a black background... using my old galaxy nexus and i'm amazed by how bad the screen burn is Dec 20 03:55:50 really shows up Dec 20 03:56:53 ultra- I've got the same Dec 20 03:57:28 lock screen icon shows right up Dec 20 03:58:11 is there a limit on how much memory a single user/process(s) can use? Dec 20 03:58:15 if so.. what is it? Dec 20 03:59:33 not jet black, but a little lighter than that Dec 20 04:00:33 I440r: AFAIK it depends on the RAM of the device Dec 20 04:01:25 k my forth has a process size of 1 meg. i divided that in 4 to see if that fixed the problem Dec 20 04:01:32 dont think it will but Dec 20 04:01:47 nope. didnt fix Dec 20 04:01:57 the process is being executed and INSTANTLY killed Dec 20 04:02:17 u0_a51 2251 50 21358u0_a51 2251 50 213588 20612 ffffffff b6f08798 S com.reality.retrorpgg Dec 20 04:02:37 thats the only process owned by u0_a51 Dec 20 04:03:11 why would android instantly kill a process spawned by an app? Dec 20 04:03:43 probably because Google hates you Dec 20 04:04:13 is the process actually starting? Dec 20 04:04:51 explodes, the getRuntime().exec() is not throwing Dec 20 04:05:15 if i exec("blah") where blah does not exist it throws Dec 20 04:05:32 hm Dec 20 04:05:40 leeds google doesnt hate me. google hates everyone except the dollar bill Dec 20 04:07:40 are you a dollar bill? Dec 20 04:08:15 obviously not Dec 20 04:08:22 then google hates you Dec 20 04:08:59 not specifically Dec 20 04:09:07 just generally Dec 20 04:09:20 agreed Dec 20 04:11:40 I440r: have you tried running it manually, from adb? Dec 20 04:11:49 to make sure it runs on the device, etc. Dec 20 04:12:35 yes Dec 20 04:12:36 it runs fine Dec 20 04:12:47 anything interesting in logcat? Dec 20 04:13:35 and the binary is set as executable after you extract it? Dec 20 04:13:37 no Dec 20 04:13:57 the binary is set to executable after setting it to executable Dec 20 04:14:01 and nothing in logcat Dec 20 04:14:21 after extracting it it is not executable but i chmod Dec 20 04:14:32 f.setExecutable(true, true); Dec 20 04:14:43 and we know that works because i can Dec 20 04:14:50 cd /data/data/com.blahblah/files Dec 20 04:14:51 ./a4 Dec 20 04:15:13 can you pastebin the method where you're trying to execute it? Dec 20 04:15:31 i pastebinned the entire file heh Dec 20 04:15:47 thanks, I see it Dec 20 04:15:57 I came in in the middle of the convo, obviously :) Dec 20 04:15:59 i was scrolling back thry my cmd history heh Dec 20 04:16:04 When I draw with DST_OUT, do I need to draw BOTH things with DST_OUT, or just the DST? Dec 20 04:16:04 ya Dec 20 04:16:48 I440r: um, well. You are catching IOException... and doing nothing with it. Dec 20 04:16:56 -rwx------ u0_a51 u0_a51 42814 2013-12-19 23:00 a4 Dec 20 04:17:01 You might want to at least log it :) Dec 20 04:17:04 its not throwing IOException Dec 20 04:17:11 i have lots of stubb catches Dec 20 04:17:27 You might want to at least log it :) Dec 20 04:17:39 yes if it were throwing it Dec 20 04:17:45 but i know its not, Dec 20 04:18:16 the catches ill be packfilled later Dec 20 04:18:38 if only to get rid of the silly yello warning syntax highlighting in intellij idea lol Dec 20 04:18:58 Are you manually stepping through the code to verify they're not throwing? Dec 20 04:19:02 yes Dec 20 04:19:12 i put a breakpoint on the exec. Dec 20 04:19:16 i F8 the exec Dec 20 04:19:20 it does not go to the catch Dec 20 04:19:57 well, it still seems *really* sloppy to not be logging the exceptions :). But I don't see anything wrong offhand. Dec 20 04:20:13 it is sloppy but i forgive myself FOR NOW Dec 20 04:20:23 i dont leave gaping holes like that in "production" code Dec 20 04:21:41 I'm not even talking about production code. logging the exception is much more useful during development, so you know if something happens, without always having to have the debugger attached. Dec 20 04:22:00 but nevermind :) Dec 20 04:22:15 yea i understand that too Dec 20 04:22:28 yes, I've had a similar 0.02 with tracking stderr :-) *gives up* Dec 20 04:22:29 12-19 23:13:27.259 378-392/system_process E/WindowManager? Starting window AppWindowToken{b323b8e0 token=Token{b2f7eff8 ActivityRecord{b3200380 u0 com.reality.retrorpg/.retrorpg t22}}} timed out Dec 20 04:22:54 I440r: at this point, I would probably say try a simple "hello world" binary or something Dec 20 04:24:32 hmm. You might try using run-as to run your forth binary from the app's data directory, as the app's uid. Dec 20 04:25:12 run as? Dec 20 04:25:16 It might be trying to access something that you have access to as the shell user (the user adb runs as), but the application's uid doesn't Dec 20 04:25:33 run-as Dec 20 04:25:36 /system/bin/run-as Dec 20 04:25:44 errr Dec 20 04:25:45 ooooh Dec 20 04:25:48 let's you run something as an application's uid, if that application is set to debuggable Dec 20 04:25:59 whats the syntax exactly? Dec 20 04:26:05 don't know offhand :) Dec 20 04:26:16 run-as org.your.package Dec 20 04:26:20 I know it exists, but i don't think I've ever actually used it Dec 20 04:28:27 run-as: exec failed for a4 Error:Permission denied Dec 20 04:28:52 and, if you _now_ log stderr, you'll probably see it as well Dec 20 04:29:21 Hello Dec 20 04:29:30 why is it permission denied? Dec 20 04:29:41 -rwxrwxrwx u0_a51 u0_a51 42814 2013-12-19 23:00 a4 Dec 20 04:29:54 u0_a51 is my package Dec 20 04:29:59 Anybody familiar with this error http://pastebin.com/1xrRjU2N Dec 20 04:30:05 I440r: no, that's not your package Dec 20 04:30:15 that's the friendly name of the package's UID Dec 20 04:30:34 your package is the org.java.blah.app that you specify in the AndroidManifest.xml for the application Dec 20 04:31:13 run-as com.reality.retrorpg a4 gives permission denied Dec 20 04:31:25 run-as com.reality.retrorpg ./a4 gives no such file or directory Dec 20 04:31:51 i know what a UID is lol Dec 20 04:32:02 yeah, sorry. I think I had misunderstood your statement :) Dec 20 04:32:40 JesusFreke would you help me here please Dec 20 04:32:52 http://pastebin.com/1xrRjU2N Dec 20 04:33:03 quechon: no idea :) Dec 20 04:33:13 Ok lol Dec 20 04:33:25 run-as com.reality.retrorpg /data/data/com.reality.retrorpg/files/a4 Dec 20 04:33:27 KILLED Dec 20 04:33:31 not perm denied Dec 20 04:33:34 KILLED Dec 20 04:33:36 ah ha. that's interesting Dec 20 04:33:57 Ive bothered every posie human being with this and nobody can help Dec 20 04:34:50 but still, I can't think of any reason offhand it would be getting killed. Dec 20 04:34:56 is there anything in dmesg? Dec 20 04:35:05 doubtful.. but worth checking. Dec 20 04:39:35 <5>type=1400 audit(1387513953.936:10): avc: denied { execute } for pid=1080 comm="run-as" name="a4" dev="mtdblock1" ino=6989 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:app_data_file:s0 tclass=file Dec 20 04:39:42 JesusFreke: FYI and because you're not in -root, it looks like... yeah, it's an selinux thing Dec 20 04:40:22 Leeds: ah, ok, I saw there was a parallel conversation going on it there, but wasn't really following it Dec 20 04:40:39 sorry, you're there but away :) Dec 20 04:41:00 or silent, whatever... anyway, that would appear to be the problem Dec 20 04:41:42 anyone here have an unrooted android? Dec 20 04:42:30 http://stackoverflow.com/questions/5711084/java-runtime-getruntime-getting-output-from-executing-a-command-line-program Dec 20 04:42:34 interesting Dec 20 04:42:44 has anyone here used androidvncserver? Dec 20 04:42:47 that suggests you do NOT need root to spawn an executable in /data Dec 20 04:43:17 I440r: SELinux is a relatively new feature in android Dec 20 04:43:28 how do i make selinux happy? Dec 20 04:44:01 no idea :) Dec 20 04:47:38 I440r you make selinux happy by staying in your java sandbox ! now get back in ! Dec 20 04:48:05 ok. how do i put this spawned executable in my sandbox Dec 20 04:48:34 I440r: what OS version are you running on? Dec 20 04:48:55 the avd is 4.4 Dec 20 04:49:43 http://developer.android.com/reference/java/lang/Process.html Dec 20 04:49:56 the method there is different to what im doing Dec 20 04:50:02 ill change my code to that Dec 20 04:51:10 what are YOU doing?" Dec 20 04:54:27 i pasted the entire sources Dec 20 04:55:48 Hm. Dec 20 05:01:26 If I draw a color, 0, will that clear where I'm drawing or bleh, no, its additive. Dec 20 05:02:32 if you draw a color, how does it clear? just don't use super.onDraw and draw what you want Dec 20 05:04:16 yea; Dec 20 05:04:34 what I'm drawing is color but the text is "punched out" Dec 20 05:05:54 for some reason I get BLACK where it should be punched out Dec 20 05:05:58 black instead of clear. Dec 20 05:06:53 can you show screenshots&code? Dec 20 05:07:40 Yea let me prep that Dec 20 05:08:56 okay a quick stupid question Dec 20 05:09:15 &to let you know, i had of recently started creating my own custom views&that PorterDuff clear caused problems Dec 20 05:09:52 does int variables in function have to be garbage collected by java or is it part of stack that will be just popped off? Dec 20 05:12:04 canvs2321: http://pastie.org/8564761%20http://i.imgur.com/Ao62TxI.png (and XXCoder since you were helping me before) Dec 20 05:12:15 not found Dec 20 05:12:23 THe result should be a yellow surface with "Text" see-through (white-background) Dec 20 05:12:26 http://i.imgur.com/Ao62TxI.png Dec 20 05:12:41 so it worked Dec 20 05:12:43 congats Dec 20 05:12:50 oh shit my mistake Dec 20 05:13:05 XXCoder no, the crop is still solid black, not transparent Dec 20 05:13:16 ahh Dec 20 05:13:23 so whats under it Dec 20 05:13:33 http://i.imgur.com/Ao62TxI.png Dec 20 05:13:38 http://pastie.org/8564761 Dec 20 05:13:40 fix'd Dec 20 05:13:45 A white background is under it. Dec 20 05:13:58 ahh Dec 20 05:14:56 hi everyone. I'd like to learn about the Android software stack in general, from apps down to device drivers. Is there a resource for that you would recommend? Dec 20 05:15:19 probably making your first app Dec 20 05:15:20 so text is supposed to be clip Dec 20 05:15:23 yea Dec 20 05:15:24 shit Dec 20 05:15:31 is there a textClip in android? There is one in IOS Dec 20 05:15:58 well dunno if text exists but clip does for circles and shapes Dec 20 05:16:06 explodes: just edit it as needed? Dec 20 05:16:22 canvs2321: What do you mean? Dec 20 05:16:31 paint has a method to measure length of text and you can do with it as you please Dec 20 05:16:40 or you can use xml etc... Dec 20 05:16:48 :I Dec 20 05:16:54 explodes: I'm not interested in app development right now, just in the stack in general Dec 20 05:17:05 I have to custom draw the text because I need to handle kerning and linespacing, android support for this is the suck. Dec 20 05:17:07 you eating a bone? Dec 20 05:17:25 Here's something curious though, when I take a screenshot of the view, the text is cropped. Dec 20 05:17:37 It looks like it isn't rendering properly here, is all. Dec 20 05:17:38 explodes: you can measure text length before drawing&edit accordingly based on layout size Dec 20 05:17:49 canvs2321: I am aware Dec 20 05:17:53 I did it Dec 20 05:17:54 http://pastebin.com/4ZVT0ktj Dec 20 05:17:55 Would you like to see my text drawing code Dec 20 05:17:57 works well Dec 20 05:18:24 what it does is find lowest color direction, if more than one direction is same, it selects randomly Dec 20 05:18:38 what is that, XXCoder? Dec 20 05:18:40 oh Dec 20 05:19:28 explodes: also with drawing your own canvas. set anti alias and such to get smooth text Dec 20 05:19:49 .___. Dec 20 05:19:53 calc2DTo1D function does exactly that lol turns x, y coord to 1d array position Dec 20 05:20:06 canvs2321: I'm doing things a bit more advanced that using textviews and enabling anti alias Dec 20 05:20:21 advanced how? Dec 20 05:20:46 i'm saying using custom views&overriding onDraw, you have to get shit right Dec 20 05:21:01 which in my case, took trial&error :) Dec 20 05:21:31 Here is the TextData class, given a string and a Paint, it calculates information on to draw text in the correct positions. Dec 20 05:21:31 http://pastie.org/8564783 Dec 20 05:22:38 And this is how to render text on a canvas character by character taking kerning, linespacing, and justification into account. http://pastie.org/8564785 Dec 20 05:23:45 with that code, seems you are getting to complicated for your own good :) Don't make it complicated, shit if you know the variables, it isn't hard to get it working Dec 20 05:23:59 how many fonts are you using? Dec 20 05:24:06 Uhhhh Dec 20 05:24:16 if just the default, seems you are making it crazy Dec 20 05:24:21 Nothing in android does kerning Dec 20 05:24:39 I'm making a photoshop for your phone. Dec 20 05:24:46 I'm not going to use textview Dec 20 05:25:07 this segment is 'over engineered' out of necessity Dec 20 05:25:22 ANYWAY Dec 20 05:25:25 well seems you are out of my scope :) Dec 20 05:26:09 XXCoder, what is odd here is that if I rasterize the stuff I am doing, it works just fine. Dec 20 05:26:23 is there a massive cost to raster Dec 20 05:26:32 not Terribly. Dec 20 05:26:38 keep staying with a custom view, jsut don't think that it's gonna stop you. Anything can be done, it's just testing&using that to get your shit on point :) Dec 20 05:26:39 not on this device, at least. Dec 20 05:26:47 do it have to be dynimatic? Dec 20 05:26:54 But the cost is that the text is rendered pixellated (that is the bug I am trying to fix) Dec 20 05:26:56 could pre-do lot of stuff Dec 20 05:27:02 This whole thing works WONDERFUL using this code: Dec 20 05:27:26 http://pastie.org/8564798 Dec 20 05:27:43 But the text is drawn pixellated. Dec 20 05:28:08 So I'm trying to make a higher-quality crop function Dec 20 05:28:47 anti-alias? Dec 20 05:28:53 please! Dec 20 05:29:16 dunno how do anti-alas on chop Dec 20 05:29:20 XXCoder: i already suggested that Dec 20 05:29:32 well if text is always same Dec 20 05:29:37 I'm using these flags: Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG | Paint.HINTING_ON | Paint.LINEAR_TEXT_FLAG Dec 20 05:29:52 can make bitmap anti-alased in alpha channel Dec 20 05:30:19 and rastBmp and cropBmp have same sizes? Dec 20 05:30:27 other way is just use red channel anti-aliased then colotmatrix it to alpha Dec 20 05:34:28 hmm Dec 20 05:36:03 explodes: this is my circle clip http://pastebin.com/UYzmujTu Dec 20 05:36:07 I havent used it yet Dec 20 05:36:28 drawn is canvas Dec 20 05:36:59 kk Dec 20 05:37:03 path is olviously Path Dec 20 05:37:03 maybe i can set clip with text? Dec 20 05:37:06 maybe Dec 20 05:37:11 Wheres the best place to create QR codes? Dec 20 05:38:45 washington Dec 20 05:40:04 interesting, i can clip the path if i can get the path, but first i have to write all of the text paths to a path… http://developer.android.com/reference/android/graphics/Paint.html#getTextPath(java.lang.String, int, int, float, float, android.graphics.Path) Dec 20 05:45:07 *****FIXT!!**** Dec 20 05:45:25 the trick is to move the executable you want to spawn OUT of assets Dec 20 05:45:28 and into libs Dec 20 05:45:33 rename it libblah.so Dec 20 05:45:47 NOW you can .exec() libblah.so just fine Dec 20 05:45:56 somehow i doubt the rename was needed Dec 20 05:46:59 if its not libxxx.so it wont get copied out Dec 20 05:47:08 it copies lib*.so out i think Dec 20 05:47:13 huh? Dec 20 05:47:43 i think the stuff in libs gets copied out. i had a4 in ther not renamed and it wasnt copied out Dec 20 05:47:49 renamed it to liba4.so and it was copied out Dec 20 05:47:57 to data/data/...../lib/ Dec 20 05:48:18 can you ls -l liba4.so and paste here? Dec 20 05:48:32 -rwxr-xr-x system system 42814 2014-01-20 03:59 liba4.so Dec 20 05:48:45 hmm, wonder if it has to be owned by system Dec 20 05:49:00 hmmm i wonder Dec 20 05:49:25 unfortunately every time the apk is executed the contents of lib is receated Dec 20 05:49:34 so chowning it to test wont work Dec 20 05:57:50 Hello Dec 20 05:58:43 since weeks I search for my error. I get some data from json, select some and want to sort them. Dec 20 05:59:28 http://stackoverflow.com/questions/20401533/android-jsonarray-parsing-with-array-sort Dec 20 06:00:28 GOt IT Dec 20 06:00:30 IT WORKS Dec 20 06:00:48 I drew the characters as paths into a path, I got a complex path. Dec 20 06:01:18 setting that path's fill type to inverse_even_odd means it draws in the opposite regions it normally would Dec 20 06:01:25 the Arrays.sort always put the latest team at first. all other teams are sorted correct Dec 20 06:01:33 any idea? Dec 20 06:01:34 and the rest is pretty obvious Dec 20 06:01:56 what does your comparator look like? Dec 20 06:02:25 explodes: way to go Dec 20 06:02:35 thank you for your help and ideas man Dec 20 06:02:39 np Dec 20 06:02:43 46 hours later, this bug is donezo Dec 20 06:03:58 here is the comparator http://pastebin.com/GRHFiZ4j Dec 20 06:05:49 but the Code works fine when I switch to a complete saison, where all matches are finished. the error is just in a unfinished season Dec 20 06:06:12 which comparator are you using? Dec 20 06:06:20 all of them are bugged? Dec 20 06:06:44 explodes: http://pastebin.com/GRHFiZ4j Dec 20 06:06:53 and again Dec 20 06:06:59 which Comparator are you using? Dec 20 06:07:07 there are 4 there. Dec 20 06:07:30 Arrays.sort(addressArray, StandingsSort.ORDER_BY_RULES); Dec 20 06:10:25 aloha people Dec 20 06:11:01 I want that if someone clicks on a YouTube video link, he gets to see the complete action using menu or thereof Dec 20 06:11:09 what intent should I be using Dec 20 06:11:47 ACTION_VIEW Dec 20 06:11:52 wait, one sec Dec 20 06:11:54 let me double check Dec 20 06:12:26 yea I think that's the one Dec 20 06:12:33 just like any link. Dec 20 06:12:55 I should open up their list of browsers &/or the youtube app to pick from Dec 20 06:14:46 explodes: did I respond to your question Dec 20 06:16:00 dot8: Everything in that comparator LOOK correct, I can't imagine why it wouldn't be working Dec 20 06:16:09 is the data you're sorting always in the same order? Dec 20 06:16:13 hello developers Dec 20 06:16:18 if you shuffle it, do you still get the same result? Dec 20 06:16:37 also, what is the actual line you're calling Arrays.sort with? Dec 20 06:16:48 hey so what is the best way to store images Dec 20 06:16:49 hello mygreymatter Dec 20 06:16:55 store them where Dec 20 06:17:08 hi Dec 20 06:17:08 like I want to display profile pictures for people Dec 20 06:17:23 ok, Iet me see my manifest explodes Dec 20 06:17:35 and they will be able to upload it and then should be able to POST it, I am actually unsure of the uploading process still Dec 20 06:18:15 Looney: Do you want to RECEIVE this intent? Dec 20 06:18:23 explodes: yes always in the same order Dec 20 06:18:39 how many seconds wifi.setWifiEnabled(true); will take to turn on the wifi.? Dec 20 06:18:49 dot8: try shuffling the data and see what happens? Dec 20 06:19:22 any idea.? Dec 20 06:19:39 doesn't it happen, from settings, in about 10 seconds? Dec 20 06:19:43 (nexus 7) Dec 20 06:19:53 yup Dec 20 06:19:53 that's from off->on->connected Dec 20 06:20:10 looney: ok let me get a copy of what your manifest should look like Dec 20 06:20:36 only i want the time of turning on the wifi.. its 10 seconds ah.?? just for confirmation Dec 20 06:21:06 Looney: https://groups.google.com/forum/#!topic/android-developers/C6qNOBULpCc Dec 20 06:21:44 so set pathPrefix to http://youtube.com Dec 20 06:22:01 or pathPattern to http://(m\.)?youtube.com or whatever Dec 20 06:41:41 how do i adb shell in as not root Dec 20 06:46:44 will this receive intent ? ? Dec 20 06:47:02 ? Dec 20 06:48:41 explodes: I try some shuffeling, the sorting is alwayas the same. is it possible, that the json data is the problem? Dec 20 06:51:02 explodes: the json data includes unfinished matches: if (e.getBoolean("match_is_finished") == true) Dec 20 06:51:50 but the sorting work fine for the year 2012, there are no unfinished matches.... Dec 20 06:51:57 how do i pull stuff from my server in android, and will it b slow Dec 20 06:52:19 specifically trying to pull out a user's info from the db (do I do a get request through http)? Dec 20 07:41:04 How do I scroll a text view without scrolling it? Dec 20 07:42:04 I want to scroll it so it doesn't fire the scroll event to accessibility services, just updates its position Dec 20 07:42:14 get samsung galaxy 4 and use ur eyes Dec 20 07:43:55 Galaxy wouldn't help, and eyes don't work. Otherwise I wouldn't need this Dec 20 07:45:47 so i have a custom image view im creating. Im adding GIF support currently via the Movie method (app supports old android versions) and everything is going well. I noticed that larger GIFs jank up the UI, so i offloaded the .decodeStream method to a separate thread, but now the gif only displays like every third time Dec 20 07:46:02 my onDraw holds off the gif drawing until the movie is not null Dec 20 07:46:13 dragorn there by any chance ? Dec 20 07:46:31 is there something i should know about the movie class and loading it in a background thread? Dec 20 07:46:57 or perhaps reasons why loading the gif in the background isnt drawing anything when the movie is created? Dec 20 07:49:49 g00s! Dec 20 07:49:59 hey capella :) Dec 20 07:50:16 Still living in a library? ;) Dec 20 07:51:23 yeah , mostly :D Dec 20 07:51:33 library and couch Dec 20 07:52:08 I get bored with mozilla I come slumming here in google world :) Dec 20 07:53:14 i asked in #firefox why there is no padding between the top of the tab and the menu activation zone (Mac OS, full screen mode) … Dec 20 07:53:25 they just point me to a bunch of worthless plugins Dec 20 07:53:34 meanwhile, chrome does it right Dec 20 07:53:40 We love those things :) Dec 20 07:54:11 I haven't acutally used chrome much except to compare features from time to time Dec 20 07:54:29 i try to keep my plugins to a minimum. but man Adblock Plus us huge Dec 20 07:54:39 i was going to try bluehell Dec 20 07:54:40 Yah I hate that too !! Dec 20 07:55:20 I fixed their icon in the mobile version btw :) It was a generic icon in our menu due to a bug Dec 20 07:56:07 i think their 6 week release cycles are screwing the project over; i can never tell the difference between one release and the next Dec 20 07:56:14 all because of chrome's release schedule Dec 20 07:56:51 I think changing the release pattern affect us, but we're adjusting .... like jet lag Dec 20 07:57:08 that is, the change of the release cycle Dec 20 07:57:14 oh its called bluhell Dec 20 07:57:45 it's .... something! Dec 20 07:58:50 capella what are you up to :) Dec 20 07:59:01 Javascript is sucking me in fulltime .... they're stealing my JAVA from me !!!! Dec 20 08:00:32 capella you like js eh ? Dec 20 08:01:10 I've actually gotten quite a bit better Dec 20 08:02:13 capella working for mozilla full time or on the side ? Dec 20 08:02:29 Available. Dec 20 08:03:44 Hi, somebody experience with Google Glass development? Dec 20 08:04:16 is glass already open for development? Dec 20 08:04:42 sidequestion - can you wear glass together with regular, optical glasses? Dec 20 08:04:59 gdk is available Dec 20 08:05:22 pretty awesome Dec 20 08:05:47 about regular glass, Google made it possible to attach sunglasses on the Google Glass so I think in the future it must be possible ;) Dec 20 08:06:21 didn't know they had gotten so far Dec 20 08:13:56 so, if i would like to have tab navigation in my action bar, but don't want to use fragments, does it make sense to put the tab contents in a ViewPager ? Dec 20 08:14:18 somehow dont feel like calling setContentView multiple times is a good idea Dec 20 08:17:21 g00s: use fragments :-p Dec 20 08:17:33 better yet Dec 20 08:17:37 use a FragmentViewPager Dec 20 08:18:07 otherwise, you're into writing PagerAdapters and that can be… tricky Dec 20 08:18:09 iirc Dec 20 08:19:04 the 3 tabs are settings for server information (Basic / Security / Advanced). i just want to query sqlite once, show the relevant controls in each tab, and then cancel / save that row Dec 20 08:19:24 dont really want to split this into a bunch of fragments Dec 20 08:19:42 its your app, can't make you do anything Dec 20 08:19:56 old style tabhost doesn't fit your bill? Dec 20 08:20:54 have to check if thats depreciated Dec 20 08:21:23 hm, apparently not … Dec 20 08:21:32 doesn't seem to be Dec 20 08:21:48 but i'd like the tabs in the actionbar id there is space Dec 20 08:22:00 anyway, you can also just build a PagerAdapter, but you'll be responsible for saving / restoring state & lifecycles yourself Dec 20 08:22:10 I want my app to be shown in complete action using list for following Dec 20 08:22:12 Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.youtube.com/watch?v=uq5PGak6xBY&feature=youtu.be cmp=com.android.browser/.BrowserActivity } Dec 20 08:22:39 also, you won't be able to simply rearrange your fragments for a 'large' layout Dec 20 08:22:50 in a nutshell, if someone clicks a youtube video, he/she should see option to complete action using Dec 20 08:22:57 but it is not showing Dec 20 08:23:08 wrong action looney Dec 20 08:23:13 pasting activity manifest in a jiffy Dec 20 08:23:31 http://developer.android.com/reference/android/content/Intent.html#ACTION_PICK_ACTIVITY Dec 20 08:23:33 ok, whats the correct option for this type of intents Dec 20 08:23:40 ok, let me see the doc Dec 20 08:23:43 :-) Dec 20 08:24:47 so, you telling me that my activity should have an intent filter to ACTION_PICK_ACTIVITY Dec 20 08:25:08 hmmm Dec 20 08:25:09 no Dec 20 08:25:14 i misunderstood, i think Dec 20 08:25:18 so, that it can intercept web browser's intent and be listed in complete action using list Dec 20 08:25:25 ok, no worries Dec 20 08:26:26 do you have the paste for your intent-filter? Dec 20 08:26:49 (i thought you wanted to show a list of activities to open a youtube video :-)) Dec 20 08:27:15 somebody know how I can make the camera at it best with focus mode infinity? Dec 20 08:27:42 no, I want to be part of list Dec 20 08:27:57 I think that ACTION_MAIN in my manifest is culprit Dec 20 08:28:07 as it hinders activity from receiving data Dec 20 08:42:59 nah, did not do any good Dec 20 08:43:55 hi guys. I'm trying to highlight all occurrence of a substring in a certain string. I'm doing it in this way http://pastebin.com/kMExKbbf but it highlight just the last occurence. Does the setSpan method ovverride the other spans? Dec 20 08:48:33 rciovati, um, it seems you're using the same span object for each occurience Dec 20 08:48:59 setSpan doesn't override other spans, but you do need a new Span object for each occurience Dec 20 08:50:27 that span stuff drove me nuts :) Dec 20 08:52:06 spans suck.. Dec 20 08:53:41 O.o Dec 20 08:53:49 well, I guess you can just chain textviews. Dec 20 08:54:44 http://pastie.org/8565125 Dec 20 09:07:56 Hey Dec 20 09:09:04 I'm looking for a free alternative to work on my projects from two different computers. Does putting the workspace in a dropbox folder work nicely? Dec 20 09:09:34 I don't want to have it open source so I cannot use google code Dec 20 09:11:36 would a free git host be better? I see there is one called bitbucket and another called assembla Dec 20 09:14:58 Hmm , I started a new project and its not finding the default MainActivity Dec 20 09:15:13 I renamed the app package tho Dec 20 09:15:23 and I moved the .java file to a new package also Dec 20 09:15:29 the Manifest reflects this change Dec 20 09:15:35 I cleaned my project, Dec 20 09:15:40 but its still not finding it Dec 20 09:18:29 Mavrik, thanks Dec 20 09:19:31 even converting the .apk to a .jar and reverse engineering it, i see the class right there: io.explod.save4later.activity.MainActivity! Dec 20 09:28:17 what does this line mean: a = (localSocketImpl = SocketImpl.class).getDeclaredField("address");" Dec 20 09:28:34 i.e. there is an = inside a object cast Dec 20 09:35:56 Works the same as: b = (a = 1) + 1. b will be assigned the value 2 and a the value 1. Dec 20 09:37:20 cool shorthand Dec 20 09:37:50 but the contexting is less clear Dec 20 09:39:18 Why doesn't Android Studio render stuff properly? :( I'm using another color for my elements, but they are shown stock Dec 20 09:55:18 Bonjour Dec 20 09:55:52 être développeur android a son compte ca peut etre viable ? Dec 20 09:56:00 English Dec 20 09:56:08 oops sry wrong channel Dec 20 09:58:12 Ah, my ActionBar doesn't get themed :( Dec 20 09:59:10 Hello. Is this a general android app dev related channel? Dec 20 10:01:07 CaptainFarrell, mostly Dec 20 10:12:25 In such case, I'd be glad to get a second opinion on a design aspect: I need to work with sqlite db which contains several tables. I'll most likely need to access said db from several acivities. Is it ok to store several Cursors in a Singleton or it'd be better to have dedicated Singletons, or something different at all? Dec 20 10:13:48 CaptainFarrell safest to use loaders; otherwise you have to be careful about managing their lifecycle. in any case, no - no singletons Dec 20 10:18:11 I'm not a real programmer, I read about Loaders but decided that it'd be an extra abstraction layer to absorb. Thanks for your advice. Dec 20 10:18:44 I'm looking for a free alternative to work on my projects from two different computers. Does putting the workspace in a dropbox folder work nicely? Dec 20 10:18:50 I don't want to have it open source so I cannot use google code Dec 20 10:18:52 would a free git host be better? I see there is one called bitbucket and another called assembla Dec 20 10:19:48 Some people use Drobox folder as a remote repo Dec 20 10:20:01 do not use dropbox with git Dec 20 10:20:19 use bitbucket if you want free private git repos Dec 20 10:22:49 Since its just two computers I was thinking it would suffice to just put workspace in dropbox Dec 20 10:22:57 and let dropbox sync Dec 20 10:23:41 everyone on SO is trying to reverse solve my problem Dec 20 10:24:07 Would it be better to use bitbucket and git you think? Dec 20 10:24:11 Quacked: dropbox will sync files, not code Dec 20 10:24:22 why cannot a man show complete action using dialogue for a click on browser hyperlink :-( Dec 20 10:24:50 vedu: what do you mean? when I save a file, it would sync immediately Dec 20 10:25:04 The only issue of git+dropbox I know of is it's not suitable for projects with more than 1 developer Dec 20 10:25:22 CaptainFarrell: I was thinking dropbox only, without git :) Dec 20 10:25:36 Quacked: that means that if both your computers change the file it wont be able to resolve a conflict. rather it will lead to data loss Dec 20 10:25:46 I wont be working on them at the same time Dec 20 10:25:51 no CaptainFarrell Dec 20 10:26:00 so I think it could work Dec 20 10:26:02 putting git in dropbox WILL fuck up your git config Dec 20 10:26:04 if its only you, then its fine Dec 20 10:26:08 it will corrupt your tree Dec 20 10:26:18 i've had it happen to me so many times Dec 20 10:26:25 i hear you Dec 20 10:26:36 oh yes. didn't think about this. CallumTaylor must be right Dec 20 10:26:55 just bite the bullet, learn git and use bitbucket, in the long run it is infinitely better Dec 20 10:27:12 I think I'll give dropox (without git) a go firsat Dec 20 10:27:14 first* Dec 20 10:27:28 I use git locally Dec 20 10:27:32 trust me, you'll look back and say shit i wish i used git Dec 20 10:27:48 git is worth it. learn it Dec 20 10:27:53 i use git even for projects only I work on Dec 20 10:27:58 The only alternative os mercurial, but since everybody else uses git, yes, use git. Dec 20 10:28:03 I like branching Dec 20 10:28:05 s/os/is/ Dec 20 10:28:06 don't even have to learn it all at once. learn as you code Dec 20 10:28:11 it makes me free. I can easily experiment Dec 20 10:28:36 want to figure out what that feature you coded ages ago but deleted it was? its just another commit in your tree you can checkout Dec 20 10:28:59 why cannot I show complete action using dialog for the following click Dec 20 10:29:10 Starting: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http://www.youtube.com/watch?v=uq5PGak6xBY&feature=youtu.be cmp=com.android.browser/.BrowserActivity } from pid 28089 Dec 20 10:29:15 yeah, I might do it eventually Dec 20 10:29:21 I've used SVN years ago Dec 20 10:29:32 btw, I didn't know bitbucked offered free private repos. thanks heaps! Dec 20 10:29:39 CaptainFarrell: hah Dec 20 10:29:51 but is bitbucket trustworthy etc etc? Dec 20 10:29:52 yes Dec 20 10:29:59 i've been using them over over 18 months Dec 20 10:30:12 they make their money from additional accounts if you have a team Dec 20 10:30:20 where as github make their money from private repo packages Dec 20 10:30:23 Ok... maybe I'll give it a go instead of trying to use dropbox Dec 20 10:30:47 For free software, I would advise to use http://gitorious.ORG instead of http://github.COM Dec 20 10:31:14 with the advantage that gitorious is a Polish-Norvegian company, hosted in Norway, so there are less NSA interferences. Dec 20 10:31:31 hmm.. I'm Norwegian Dec 20 10:31:35 CallumTaylor, is their bug tracking free as well? Dec 20 10:31:43 Why doesn't my actionbar get themed if I have @style/BlueActionBar and @style/BlueActionBar in my theme? Dec 20 10:31:57 not sure, never used it Dec 20 10:36:12 autrilla: are you actually using that theme for that activity? Dec 20 10:36:19 Estel, yes Dec 20 10:36:38 That theme colorizes buttons etc, and they get colorized, but Action Bar doesn't Dec 20 10:38:50 Is it appcompat or abs? Dec 20 10:46:42 Estel, appcompat Dec 20 10:53:00 Does anyone know, how do trigger IntelliJ IDEA to display hint/help/manual of some method? In Eclipse it is displayed as hint on mouseover. I mean I want to see this not just in Auto-complete: https://db.tt/tGHrtib1 Dec 20 10:53:34 i click on the method and ctrl+space Dec 20 10:53:37 it'll bring up the javadoc Dec 20 10:54:17 i don't know if there's another way Dec 20 10:54:35 that's a work-around... I wonder if it is possible to see doc like a hint as in Eclipse, without auto-complete... Dec 20 10:55:22 it's so hard to switch IDE =_= Dec 20 10:57:06 yeah although it doesn't take long to get used to AS Dec 20 10:57:17 I've only been using it for about 4 weeks after using eclipse for 2 years Dec 20 10:57:37 theres still some niceties in eclipse i miss, but generally the benefits of AS outweigh those Dec 20 11:03:43 I never worked with gradle.... Couldn't understand how to migrate all my projects into AS... Dec 20 11:05:20 IDEA is simpler to open projects made from Eclipse Dec 20 11:08:29 you can export project to gradle from ADT Dec 20 11:08:34 not sure how well it works though Dec 20 11:08:46 I've only started new projects on gradle, not converted existing projects Dec 20 11:13:59 This Action Bar thing is driving me craaaazy Dec 20 11:16:39 @style/BlueActionBar Dec 20 11:16:40 @style/BlueActionBar Dec 20 11:16:51 And BlueActionBar is Dec 20 11:17:02 Dec 20 11:17:17 It should be blue! Dec 20 11:17:39 pastebin Dec 20 11:17:43 done paste code here Dec 20 11:18:09 CallumTaylor, that applies when the channel is active Dec 20 11:18:12 paste your whole theme/style xml Dec 20 11:18:15 no it applies all the time Dec 20 11:18:25 CallumTaylor, did it interrupt something? Dec 20 11:18:28 I'll pastebin it Dec 20 11:18:37 it doesn't matter you're spamming the channel with code Dec 20 11:18:48 http://pastebin.com/mE2XWw75 Dec 20 11:19:11 http://pastebin.com/GjQsfRWL Dec 20 11:20:06 which folder is this in? Dec 20 11:20:19 values or values-cxx? Dec 20 11:20:22 vxx* Dec 20 11:21:56 values Dec 20 11:22:52 I have a SearchView element in my layout. The user enters some text, and while typing a little "X"-button to the right appears. Clicking this button clears the input field. But where is the button that lets the user remove focus from the searchview, and dismiss the keyboard? Right now im dismissing the keyboard when all text is removed from the input field, but this is not really ideal Dec 20 11:23:18 is there a Size object that holds height/width, like Point has X/Y? Dec 20 11:23:44 Uh.. Just use Point? Dec 20 11:23:59 lol Dec 20 11:24:03 or use rect? Dec 20 11:24:03 yeah i can, it's just nicer to differentiate Dec 20 11:24:08 Do I need to root device when I am developing simple app like game or user tool? Is there any profit of rooting/unlocking bootloader on the device? Dec 20 11:24:16 coming from iOS programming where there's a size object Dec 20 11:24:49 autrilla: what version OS are you testing it on? Dec 20 11:24:59 CallumTaylor, kitkat Dec 20 11:26:03 i think it may be an issue with the drawable rather than the style Dec 20 11:26:19 i can't see anything wrong with the style references/parent references Dec 20 11:26:27 Maybe you're just not using the theme Dec 20 11:26:54 can you paste your manifest? Dec 20 11:28:34 CallumTaylor, sure Dec 20 11:28:52 http://pastebin.com/9tkh8pbT Dec 20 11:29:14 Drawable is just #33b5e5 Dec 20 11:29:31 try moving the theme from application to activity Dec 20 11:31:08 what is the best scene mode for a camera to detect qr codes? or other 'tricks'? Dec 20 11:31:48 CallumTaylor, You need to use a Theme.AppCompat theme (or descendant) with this activity. Dec 20 11:32:08 Make blue a color, set the color as the background Dec 20 11:32:40 SimonVT, that's what I've done Dec 20 11:32:57 Does it make a difference? Dec 20 11:34:08 I don't know, does it? Dec 20 11:34:15 Oh, yes, that you cant use a color as a drawable on XML Dec 20 11:35:00 I'd imagine your issue is that drawable definition Dec 20 11:35:43 It should throw an error... Dec 20 11:37:36 How can I do this: camera zoom and keep focus with focus mode infinity? Dec 20 11:38:09 Maybe it's parsing the alpha as 00 Dec 20 11:38:19 It makes no sense that it tells me to use AppCompat theme when I'm using AppCompat Dec 20 11:38:38 try using @style/_Groups and see if it still throws the error Dec 20 11:38:53 seeing as _Groups extends Theme.AppCompat.Light.ActionBar Dec 20 11:40:15 CallumTaylor, now it works. However, actionbar is black Dec 20 11:40:27 ok Dec 20 11:40:33 strange Groups doesn't work though Dec 20 11:40:44 as a test, move the actionBarStyle into _Groups Dec 20 11:41:28 Same deal Dec 20 11:41:40 k paste bin your drawable Dec 20 11:42:20 http://pastebin.com/GeSmuumy Dec 20 11:43:15 guys, I want to fire some action, when Activity is created (but! when is returned to activity, but If I onResume() it popups every time. Because my 'action()' asks to Install application, and when 'Cancel' is touched, Activity's onResume fired up again )) Dec 20 11:43:21 and it is infinity Dec 20 11:44:22 and beyond Dec 20 11:45:14 way too many confusing conjunctions in that sentence... no idea what you're asking :S Dec 20 11:46:33 the good news is, it works fine for me Dec 20 11:46:40 the bad news is, i have no idea why its not workin Dec 20 11:46:44 do you have a values-v11 folder? Dec 20 11:47:37 or any other values-xx folder Dec 20 11:48:05 CallumTaylor, yes Dec 20 11:48:13 values-v11 and v9 Dec 20 11:48:19 do they have a styles and/or themes.xml file Dec 20 11:49:20 Yes Dec 20 11:49:31 remove them and try Dec 20 11:49:33 v11 has both, v9 just themes Dec 20 11:50:08 Error Dec 20 11:50:20 @style/_Groups not found Dec 20 11:50:50 Looks like the v9 and v11 themes are linked to the main ons Dec 20 11:51:00 the 2 files you linked in paste bin, were they in values/ folder? Dec 20 11:52:19 Yes Dec 20 11:52:35 …did you delete those ones as well Dec 20 11:54:34 No Dec 20 11:55:37 Now it works Dec 20 11:56:33 so you had some style in one of the other values folders overriding your style Dec 20 11:56:42 which was stopping it from being blue Dec 20 11:56:49 remove that override and it'll be fine Dec 20 11:58:18 Where can I find icons? I remember for another project I found a really nice project with loads of Holo icons Dec 20 11:58:51 http://developer.android.com/design/downloads/index.html Dec 20 11:59:09 CallumTaylor, no, not that. More of them Dec 20 11:59:22 There were like 300 or so Dec 20 11:59:43 AFAIK those are the only official holo icons Dec 20 12:00:25 CallumTaylor, oh, yeah it was unofficial Dec 20 12:01:15 Heh http://www.androidicons.com/ Dec 20 12:01:25 oh cool Dec 20 12:01:33 25$ not bad Dec 20 12:03:24 Still doesn't have what I need... I guess I'll have to make them myself... I wanted icons for running, walking, skiing... etc Dec 20 12:03:47 autrilla well, you could try the noun project - but those are verbs :| Dec 20 12:04:13 hm Dec 20 12:04:16 Wow g00s Dec 20 12:04:16 thats a bit misleading Dec 20 12:04:17 Works Dec 20 12:04:20 its not 250 icons Dec 20 12:04:22 http://thenounproject.com/search/?q=run Dec 20 12:04:44 unless they're not showing all of them Dec 20 12:05:00 guys, if you use sqlite, do you typically store everything there or do you store some session-related data somewhere else, for example shared prefs? Dec 20 12:05:38 i just use shared prefs for … settings Dec 20 12:06:24 i wish there was a way to bind the preferences framework to sqlite instead of the xml stuff Dec 20 12:07:38 in java, can you iterate over an array like obj-c or python like (for Object in ObjectArray) or must you use indicies? Dec 20 12:08:03 nm i'm gonna google Dec 20 12:08:12 yes Dec 20 12:08:18 for (Object object : objects) Dec 20 12:09:07 thanks, just found that :) Dec 20 12:14:13 Hey can someone help me, my DialogFragment will not dismiss Dec 20 12:14:58 I have tried getDialog().dismiss(), dismiss() and this.dismiss() it calls onDestroyView() but continues to display Dec 20 12:15:22 I'm using Support v4 Dec 20 12:28:07 I am trying to add a new CommonDataKind to Android's ContactsContract. Is simply adding another static class that implements DataColumnsWithJoins and defines a data column alias for e.g. DATA1 enough to achieve this? Dec 20 12:29:20 How can I run my apps on the tablet I've just plugged into USB through Eclipse? Dec 20 12:29:41 I've got the Android Device Chooser window open but no Galaxy Tab 3? Dec 20 12:29:56 Bacta: is USB debugging enabled? Dec 20 12:37:22 My Camera properties contains this: mode-values=high-quality,video-mode,high-performance,high-quality-zsl,cp-cam,zoom-bracketing. But how can I set it on the parameters? Dec 20 12:38:17 Do I need to manually set a ListPreference for it to select the one in the shared preferences? Dec 20 12:44:12 has anyone had a problem with a spinner preventing a dialogfragment from closing? Dec 20 12:56:56 Nevermind: I did not commit the changes I made to the shared preferences. Doh! Dec 20 13:03:34 i add lib in libs dir can't commet to git Dec 20 13:03:52 It is android project Dec 20 13:04:51 I want referrent the lib use relative path, but i don't know how to do Dec 20 13:05:11 It is jar file Dec 20 13:05:28 there is somebody can't help me Dec 20 13:08:33 Way in over my head yet: If I'm doing a text adventure like ZORK should I worry about previous pages/activities eating memory? Just for giggles: how would I go about closing previous paths out if they're no longer accessable and thus no need to remember anything about them? Dec 20 13:09:32 you can finist it Dec 20 13:09:54 the save the file use shareReferrent Dec 20 13:13:11 why i ask , nobody answer me Dec 20 13:14:01 I have connected my real arkanoid device but eclipse DDMS doesn't show any information except that nexus is connected and logcat is working. How to gather more information like it's in case of connecting emulator? Dec 20 13:14:01 mabe not time to talk ? Dec 20 13:14:37 you sure have connect to your device Dec 20 13:14:48 yes, adb works fine Dec 20 13:15:15 it is brand new nexus7 vanilla, not rooted. Still a virgo ;) Dec 20 13:15:31 meby you need drive Dec 20 13:16:21 I use linux. But afaik when adb works nice that means drivers are ok Dec 20 13:17:47 can you drect connect to your computer? Dec 20 13:18:26 I am trying to add a new CommonDataKind to Android's ContactsContract. Is simply adding another static class that implements DataColumnsWithJoins and defines a data column alias for e.g. DATA1 enough to achieve this? Dec 20 13:22:35 RiGuang: yes I did. DDMS status is device online, logcat works but threads and heap is inactive. File Explorer works and system information as well. Dec 20 13:22:52 *works as well Dec 20 13:24:48 I mean I can see only my app installed and working. There are no other data like it does on emulator. Is it normal behaviour? Dec 20 13:25:29 this dialogfragment will only close if the spinner has not had any items to display Dec 20 13:27:45 RiGuang: Do I need root privilages on my device to see all system processes through DDMS? Dec 20 13:28:30 karab44: your device is normal Dec 20 13:28:53 in lagcat you will see much log Dec 20 13:29:01 yes, I do Dec 20 13:30:03 my device is root, but threads and heap is inactive Dec 20 13:32:34 i want to create a new view and slide it in from the left of the screen. I'm using an ObjectAnimator.ofFloat() on "translationX". In order to have a proper animation i want it to start at -width and move to 0. But the view returns 0 as its width, how can i find out the width of this view? Dec 20 13:34:50 Has Android Studio become mature enough to switch from Eclipse you think? Dec 20 13:36:31 i use eclipse Dec 20 13:36:48 android sdk is bund eclipse Dec 20 13:37:44 i see a android studio is beatufll in http://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library Dec 20 13:40:23 I'm gonna try Android Studio this time. I just have to install Eclipse first so I can export and import my projects to Android Studio. Dec 20 13:40:32 I had a SSD failure :P Dec 20 13:41:02 its too early to try studio, it just born recently Dec 20 13:41:50 i wont use studio untill end of 2014 Dec 20 13:42:39 android project jar library file is add in libs dir? Dec 20 13:42:57 i add in , but can't push to git Dec 20 13:43:59 how do I jump to method implementationin IDEA? In Eclipse it was Ctrl+Left Click Dec 20 13:44:21 i want to set description under every listview item, do i need sub listview item for description? Dec 20 13:47:27 how do I jump to method implementationin if method is in library-project IDEA? In Eclipse it was Ctrl+Left Click... In IDEA it doesn't work for classes from library project Dec 20 13:47:38 product should go under some quality test and must display level of quality test it go through successfully. otherwise its justvwaste of my time really. Dec 20 13:48:21 jaami-win: why you don't want to put description into listview item itself? Dec 20 13:49:41 OOOOHHHH! I have to click on class itself... So many differences between IDEA and Eclipse -_- I'm starting to miss Eclipse... Dec 20 13:52:30 Any advantages with AS over Eclipse? Dec 20 13:53:02 Its purty Dec 20 13:53:39 Looks like it has a neater preview mode for the xmls Dec 20 14:06:52 Ahoy Dec 20 14:07:08 This channel is always dead Dec 20 14:07:11 Is android dead Dec 20 14:07:40 yes only zombies here, no not dead but undead Dec 20 14:11:29 hey all! Dec 20 14:11:40 its not allllways dead in here mikedg X) Dec 20 14:12:49 Ive just updated my S3 to stock 4.3 and now have a transparent notification bar?! anyone else seen this? Dec 20 14:13:03 Is there an option to enable/disable it?? Dec 20 14:14:47 Quacked: In my opinion debugging is better in AS/IDEA. Dec 20 14:17:06 but in general I find Eclipse at this point better than AS/IDEA for me, although Eclipse simply stopped working for me =( Dec 20 14:17:10 is AS free osmij_ ? Dec 20 14:17:23 lacx: yes Dec 20 14:17:25 ive been using Eclipse/ADT Dec 20 14:17:32 cool might check it out then Dec 20 14:17:48 I have had some issues with the AVD emulator in Eclipse.. Dec 20 14:18:33 sooner or later all developers will switch to AS I guess, since Google is going to make it primary IDE Dec 20 14:19:05 hi everybody, I just picked up a galaxy tab 3, and learning android development. for the life of me I can't get this thing to show up in "adb devices", even though I've turned on developer mode on the device and enabled usb debugging Dec 20 14:19:13 does anybody have any ideas or have heard this? I'm on a mac btw Dec 20 14:19:20 Is AS usable at all at this point? the interwebs are scattered with issue reports. Dec 20 14:19:28 I've been searching on google for the last hour to no avail Dec 20 14:19:44 malkomalko: search in google for "USB driver" for your device Dec 20 14:19:52 malkomalko, have you installed the driver? Dec 20 14:20:25 malkomalko: install USB driver and enable USB debugging on your device in Settings -> Developer options Dec 20 14:20:26 How to implement a navigation drawer hide a button on the screen if the drawer is drawn out? Dec 20 14:20:50 I downloaded and installed Kies from samsung Dec 20 14:21:01 let me see if there's another driver for the mac Dec 20 14:21:16 hey anyone here worked with Vitamio lib? Really need an advise Dec 20 14:21:42 well this is fun Dec 20 14:21:52 Zharf: what? Dec 20 14:22:13 on samsung devices I get NPE on portrait->landscape change pointing to some internal onRestoreInstanceState Dec 20 14:22:22 no references to my code at all Dec 20 14:24:14 yeah... come to think of it, I had some errors in app on Samsung device only, too. Google said that error message had something to do with Soft Keyboard (device's default)... But since app didn't crash I ignored them ) Dec 20 14:24:54 althoug other older device didn't have any errors )) Dec 20 14:25:08 * other older Samsung device Dec 20 14:25:32 I had those errors on newest Samsung S4... Dec 20 14:26:24 i had issues with non-working italics. samsung has some messed up styles as well Dec 20 14:28:31 How to implement a navigation drawer hide a button on the screen if the drawer is drawn out? Dec 20 14:28:38 How to implement a navigation drawer hide a button on the screen if the drawer is drawn out? Dec 20 14:30:12 i want to display some discrption of each litsview item unter title text. what property i need to set? Dec 20 14:30:31 http://aae46e8a506f7b63.paste.se/ ... Dec 20 14:30:36 I hate samsung Dec 20 14:30:50 ok, Zharf Dec 20 14:31:30 i dont have samsung Zharf Dec 20 14:32:18 how to display description of one line with every litview item? do i need too create sub items? Dec 20 14:34:33 jaami-win: custom list view, set whatever you want to set in your list adapter. The default list views may have something, in which case it's the same mechanism - get the view to change in your list row, set it in your adapter Dec 20 14:35:35 Here's a question to those who use AS/IDEA: open Activity class (Android ver 4.3). Does AS/IDEA finds and highlights an error in it?.. Dec 20 14:35:36 uhhuh, well I figured out what's crashing it Dec 20 14:36:12 my landscape mode has no actionbar, portrait does... changing orientation from portrait to landscape causes npe on these samsung devices I have, but none of the others Dec 20 14:36:35 http://code.google.com/p/android/issues/detail?id=26383 this basically Dec 20 14:37:31 Improper Host Mask. (ex: *!ident@host.host [Mask Type: 0]) Dec 20 14:38:18 Improper Host Mask. (ex: *!ident@host.host [Mask Type: 0]) Dec 20 14:38:38 .... Dec 20 14:39:08 mr. dragorn custom listview means a different listview than the one i already have? can you give me link? or is it that i can use my same listview and change item row to add descrption? Dec 20 14:40:25 i am completely new to listviews that is why i am asking for link to read more detail how to add description, Mr. dragorn Dec 20 14:44:13 Hi there. Can anyone tell me if it is valid for a fragment to change its own bundle? Dec 20 14:45:24 my bad everyone , my client froze while coding something, and had an open loop in it so when it unfroze it auto saved my shit and started looping Dec 20 14:45:24 [06:44:56am] c0ded: i killed it and fixed it Dec 20 14:45:24 [06:44:59am] c0ded: sry everyone Dec 20 14:49:31 got disconnected. chat client crashed Dec 20 14:54:00 is it possible to answer calls invisibly Dec 20 14:54:02 ? Dec 20 15:14:52 anyone worked with Vitamio lib? Dec 20 15:32:28 issue: app crash on samsung devices when switching orientation to landscape; cause: landscape had defined actionbar to be hidden (using .NoActionBar style or requestWindowFeature made no difference); workaround: defined a landscape style where the actionbar height was set to 0dp Dec 20 15:32:33 * Zharf sighs Dec 20 15:35:07 Zharf: I'm new to android but it kind of sucks sometimes doesn't it.. I'm seeting kwirks like this as well of claims of poor documentation all over the place. Dec 20 15:35:49 meh, it's not very common in my cases, but it's almost always samsung :p Dec 20 15:36:04 I decided 3 years ago to never buy another samsung device Dec 20 15:36:18 they just make utter crap all around Dec 20 15:37:03 Zharf: Yeah I bought a galaxy s3, admittedly due to being a sucker for advertising.. it was my first smartphone. Won't go galaxy again. Dec 20 15:37:37 I know a few guys happy with Samsung Dec 20 15:37:55 I'm fine with a galaxy s1 Dec 20 15:37:55 I've been pleased with both s1 and s2, though I can't much comment the software as I've always run cyanogenmod Dec 20 15:37:56 they're just blissfully ignorant ;) Dec 20 15:37:56 they've all had to either replace the battery or take the phone for repairs though Dec 20 15:37:59 My main beef is that the camera is terrible. Dec 20 15:38:11 but yeah, not using stock software either Dec 20 15:38:12 I remember seeing that s1 shipped withs ome godawful sharpening algorithm that made everything horrible to look at, but CM could disable it Dec 20 15:38:13 i found the screen on my s2 to be absolutely horrendous Dec 20 15:38:23 colours are terrible compared to the n5 screen Dec 20 15:38:28 malibu, Samsung is convinced that we all play golf Dec 20 15:38:33 now s3 is pretty fast phone and I haven't seen any reason yet to hate it as a CM device Dec 20 15:38:49 CallumTaylor, Sorry... but i disagree Dec 20 15:39:00 Lg screens tend to be horrible Dec 20 15:39:00 Yeah my batterly life sucks too. I'm not sure if that is Android or the device.. My media scanner and video player uses up a lot of CPU when idle. Dec 20 15:39:03 i found the screen to be too dark Dec 20 15:39:04 on the s2 Dec 20 15:39:07 Nothing close to accurate Dec 20 15:39:19 N4 and N5 screen is washed out Dec 20 15:39:29 white N4 yellow tint Dec 20 15:39:34 washed out? those are supposed to be oversaturated Dec 20 15:39:48 pfn, Not in my experience Dec 20 15:39:56 i've had 2 N4s Dec 20 15:40:07 3 if you count my SO Dec 20 15:40:17 Washed out compared to the olds Dec 20 15:40:22 oleds Dec 20 15:40:28 Does anyone know what is up with the media scanning in Android? I have watchdog and I have to kill it all the time. Is that normal? Dec 20 15:40:31 I thought they were oled, my bad then Dec 20 15:40:36 i found my s2 got screen burnt far quicker as well Dec 20 15:40:43 malibu, you should need to kill it all the time Dec 20 15:40:49 s/should/shouldn't Dec 20 15:41:18 my s1's screen has peculiar burn-ins, but then, it's old Dec 20 15:41:51 pfn: well watchdog reports it using 30% CPU constantly... I'm not going to leave it running if that is the case. I can practically see my battery get sucked down. Dec 20 15:41:55 my G1's screen has no burnin Dec 20 15:42:16 just say no to OLED :P Dec 20 15:42:17 zinx: keep it well it's going to be worth a lot someday Dec 20 15:42:17 30% cpu constantly? sounds like something's wrong with your sdcard Dec 20 15:42:25 yeah, oled burns in badly Dec 20 15:42:29 I fear for my moto x Dec 20 15:42:37 pfn: I don't have an sdcard. INternal memory only Dec 20 15:42:37 zinx, yeah, well Dec 20 15:45:21 malibu, dunno, sounds overly high, something wrong with your storage then Dec 20 15:45:42 pfn: Perhaps.. that did not occur to me Dec 20 15:46:31 is it possible to answer calls invisibly? Dec 20 15:50:00 ice9 i don't think we've figured out how to make people invisible yet Dec 20 15:50:35 DarkSlay3r, I think this is irrelevant! Dec 20 15:51:14 I agree Dec 20 16:02:37 meh, intellij 13 is laggy for me, now it hangs for a couple seconds when opening new buffers :( Dec 20 16:07:53 pfn: my IntelliJ 13 shows error in Android 4.3 Activity.java class Dec 20 16:08:34 *shows=highlights Dec 20 16:09:28 so? Dec 20 16:11:43 pfn: so my IntelliJ is COOLER than yours! Dec 20 16:12:06 :-) Dec 20 16:12:21 How can I set the width of a View to 50% and height to 1/6? Dec 20 16:12:43 Hi guys, so I'm trying to make an app for my exercise bike. I put my phone between the frame of the bike and the pedal, and then check the proximity sensor to see when my foot/the pedal passes in front of it to calculate the rate at which I'm pedaling. Dec 20 16:13:02 I'm having trouble understanding how to get a speed measurement between dips from the sensor change event Dec 20 16:13:39 I don't know if that's too vague Dec 20 16:13:54 I'm trying to make sense of how the structure of the program needs to be Dec 20 16:14:00 dammit. Guys, how to make ImageView antialiased? ImageView rotate Dec 20 16:14:02 hi Dec 20 16:14:15 I have ugly borders when trying to rotate ImageView (not animation) Dec 20 16:14:55 osmij_, that is blamed on incorrect project configuration Dec 20 16:15:32 oh... any tutorial on that?.. Or manual?.. Dec 20 16:15:57 cause that is really annoying... Dec 20 16:17:08 any one have any idea why this dialog won't dismiss if it has any items in it's spinner? http://pastebin.com/buaDECF1 Dec 20 16:17:56 hey guys Dec 20 16:18:41 is there any way to do reverse Geocoding (i.e. lat/long -> Address) WITHOUT network connectivity..? Dec 20 16:19:12 lacx: how would that work? Dec 20 16:20:11 like an offline db of lat/long boundaries linked to Country/regions..? Dec 20 16:20:17 at a guess X) Ankhwatcher Dec 20 16:20:25 lacx: these guys maybe? http://www.gaia-gis.it/gaia-sins/ Dec 20 16:21:51 I've been banging my head against this dialog fragment for two days now and I still don't have a clue why it behaves like it does Dec 20 16:22:05 has anyone else ever put a spinner in a dialog fragment? Dec 20 16:23:10 thanks Ankhwatcher, something like that yea Dec 20 16:23:58 I used my first DialogFragment the other day Ankhwatcher, but not with spinners Dec 20 16:24:07 whats the issue? Dec 20 16:24:20 yea where is romain guy? Dec 20 16:24:29 HE woudl know how to solve my problem lol Dec 20 16:24:39 lolz X) Dec 20 16:24:52 the dialog fragment wont close if there are or have been any items shown in it's spinner Dec 20 16:25:25 just nothing happens when close is pressed? Dec 20 16:25:48 (the close button is submit) Dec 20 16:26:23 the onClick runs it's course, in fact I think it even call onDestroyView on the fragment, but it stays on screen Dec 20 16:27:09 tried disabling the spinner before it closes? Dec 20 16:27:26 i.e. spinner.setEnabled(false)? Dec 20 16:27:50 I had an issue when dialogfragment didn't dismiss after rotation because on rotation a new one was created (and the new one did not dismiss after asynctask complete) Dec 20 16:28:11 sounds like its still *busy*, or thinks it is Dec 20 16:28:34 lacx: I have not tried that, I will Dec 20 16:29:46 is romainguy on vacation or something> Dec 20 16:30:42 nope, still not dismissing Dec 20 16:31:12 I added compile blahblah to the build.gradle (it is on the maven repo), but it doesn't seem to download it. What could be the issue? Dec 20 16:31:40 autrilla: I had that yesterday, I never found away around it Dec 20 16:32:03 autrilla: try running ./gradlew -i Dec 20 16:32:19 (that is run the gradle wrapper in information mode) Dec 20 16:33:26 oh! romain guy has left android dev no wonder he isnt here Dec 20 16:33:26 Ankhwatcher, no mention to my lib Dec 20 16:33:46 lol guys Dec 20 16:35:13 oh yeah, it tries to do somethingç Dec 20 16:37:03 hmm, if an application has multiple foreground services, they each have to have a notification even if they are running simultaneously? that's annoying Dec 20 16:37:49 I'm trying to install this: https://github.com/johnkil/Android-RobotoTextView/tree/master No jar provided, only gradle-maven... Dec 20 16:38:44 hmm, using PRIORITY_MIN is good enough for this situation Dec 20 16:39:02 autrilla, build the aar and publish it to a local maven repo Dec 20 16:39:14 pfn, maybe Dec 20 16:39:17 A hassle anyway Dec 20 16:39:27 pfn: yea, PRIORITY_MIN will at least push it into the list and not have an icon always visible. Dec 20 16:39:28 It should work with the central repor! Dec 20 16:39:51 michaelnovakjr, yeah, I'm kinda tempted to just use a service aggregator and manage my object lifecycles depending on what the user does with the notification Dec 20 16:40:52 pfn, do I need to change anything on local.properties? Dec 20 16:41:39 ok so how many phones are there out there that still use 2.3.3 because my forth process is not being killed when i run in a 2.3.3 avd Dec 20 16:41:43 it is when i run in a 4.4. avd Dec 20 16:41:58 actualy this is kind of moot. it will probably be 3 or 4 years before this app is ever finished :/ Dec 20 16:45:39 So to set Roboto font for a textview, I think I can only do it programatically Dec 20 16:45:42 A shame Dec 20 16:50:36 An imageview set to wrap content with an src of 1200x1200 occupies like 8 dp... Dec 20 17:07:17 anyone else having Play services not-connected issues although from onConnected() ? happens only sporadic and only on older devices though Dec 20 17:08:23 "older" as in HTC Desire S with android 2.3.5 Dec 20 17:11:13 I am using listSelector in my listview Dec 20 17:11:37 but when I highlight, the whole list's color changes Dec 20 17:12:03 instead of one row Dec 20 17:15:22 I found a way around my problem Dec 20 17:15:49 I scraped the strings out of my custom object and placed them in a List and displayed that in the spinner instead Dec 20 17:15:58 so now it closes Dec 20 17:24:40 I'm hainv igguses with the adt-bundle on opensuse 13.1 with the latest oracle's jdk: http://dpaste.com/1515157/ Dec 20 17:25:10 I experience random crashes, just creating a project crashes it Dec 20 17:34:08 what is the right way to reference /data/data/com.foo.bar.bam/lib/ directory? Dec 20 17:34:21 intellij idea tells me its bad to hard code paths into /data like that Dec 20 17:38:56 I440r, Context has methods for that Dec 20 17:41:19 yea i found it Dec 20 17:41:41 is there a way to copy all fines in assets/blah into files/blah ? Dec 20 17:41:53 i mean assets/blah/* to files/blah/* Dec 20 17:42:28 How can I do it so each item occupies 33%? I tried setting gravity to 33% and it works, but if I place items inside it, it breaks Dec 20 17:44:42 autrilla: use weight Dec 20 17:45:17 Sorry, weight not gravity Dec 20 17:45:20 shmooz, android:layout_weight="0.33" Dec 20 17:46:55 As I have to set the width to wrap_content, when I put something in it, it breaks Dec 20 17:47:51 Same issues with openjdk mm Dec 20 17:48:55 Can someone tell me how to get ADB running on the rasperry pi? I'd like to get the debug on my raspberry pi. Dec 20 17:48:56 has onyone worked with Vitamio library? Dec 20 17:49:18 I found this article: http://forum.xda-developers.com/showthread.php?t=1924492 but since I'm not the best with Linux and stuff I really have no idea what to do Dec 20 17:49:51 has anyone worked with HLS on Android? Dec 20 17:51:50 osmij_: not extensively Dec 20 17:51:57 but somewhat Dec 20 17:53:55 did you have any issues with OnInfoListener? Specifically with MediaPlayer.MEDIA_INFO_BUFFERING_START and MEDIA_INFO_BUFFERING_END events? Dec 20 17:54:16 why not use VideoView Dec 20 17:54:26 I think it is simpler and easy to use Dec 20 17:54:44 Looney: VideoView does not have OnInfoListener in 11 API Dec 20 17:56:13 Looney: if not to track buffering start/end - your video will freeze from time to time. I want to show a progressbar on those events Dec 20 17:56:50 it is like a wrapper of mediaplyer Dec 20 17:57:02 I think it will take care of this Dec 20 17:57:37 it doesn't show any progressbar when video freezes Dec 20 17:58:20 oh, bummer I was thinking of using it :'( Dec 20 17:59:29 Looney: I started learning from it. Try it anyway, it saves dozens lines of code Dec 20 17:59:45 It sure does Dec 20 18:00:54 looks like, I will also be using MediaPlayer Dec 20 18:02:19 I hope it will work for you... The library I use doesn't have a community or documentation... Or I can't find it Dec 20 18:02:58 Okay, does anyone know how to connect an Android 4.4.2 device to ADB 1.0.29 (cannot upgrade to 1.1.31 because it's on an ARM processor) Dec 20 18:03:19 Dreeass: did you add udev rules for adb? Dec 20 18:03:51 Ankhwatcher, I'll give it a try. Dec 20 18:04:39 livinskull, I had similar issues in my onConnected() method the other day, the workaround I used was to just call connect() from onConnected (if !isConnected()) Dec 20 18:04:56 Dreeass: well that's something you need to do for ubuntu to debug to devices through adb Dec 20 18:05:13 you probably need it for raspbian as well Dec 20 18:05:59 Ankhwatcher, still the device appears offline. Dec 20 18:06:26 you restarted adb after making that change right? Dec 20 18:06:45 they have implemented the standard MediaPlayer Dec 20 18:06:51 using "adb kill-server" and "adb start-server"? If so, then yes. Dec 20 18:07:02 refer to android api reference osmij_ Dec 20 18:09:26 Dreeass: you did all the steps right: http://stackoverflow.com/questions/8530922/how-to-debug-my-application-in-linux-with-my-android-mobile Dec 20 18:10:05 Looney: what do you mean? Dec 20 18:10:17 Hello, I was wondering if someone could explain ?android:textAppearanceMedium. Mainly what the ? mark denotes and why that is used over referencing @android:style/TextAppearance.Medium Dec 20 18:10:20 https://github.com/yixia/VitamioBundle/blob/master/vitamio-sample/src/io/vov/vitamio/demo/MediaPlayerDemo.java Dec 20 18:11:33 Dreeass: if so have a look at this one http://stackoverflow.com/questions/3127539/ubuntu-android-device-debug Dec 20 18:11:45 and check if lsusb shows the device Dec 20 18:11:53 Looney: what do I do with it?.. Dec 20 18:12:15 this is a demo/sample code Dec 20 18:12:23 you may find it helpful Dec 20 18:14:34 Can anyone help? I want the three images (and the three panels) to be the same size, but they look like this: http://i.imgur.com/F2qwden.png Dec 20 18:15:46 osmij_: you are supposed to detect when the video stops playing and display progressbar Dec 20 18:16:07 it doesn't tell how to resolve issue when video starts to buffer and then finishes buffering, which results to very quick progress bar blink (VISIBLE/GONE)... Changing vieo buffer doesn't change anything... Dec 20 18:16:48 Ankwatcher, still appears offline. Dec 20 18:16:51 autrilla: could you pastebin the code that generates that page Dec 20 18:16:52 yes, in general everything works. Just different small bugs left... In general video plays fine... Dec 20 18:17:01 Ankhwatcher, sure! The layout, right? Dec 20 18:17:17 Dreeass: can you see it with lsusb? Dec 20 18:17:23 Ankhwatcher, http://pastebin.com/1xMhDEi2 Dec 20 18:17:24 osmij_: there is a method to detect the buffer percentage Dec 20 18:17:45 Ankhwatcher, yes: Bus 001 Device 011: ID 18d1:4ee2 Google Inc. Dec 20 18:17:46 shmooz: yes, onBufferingUpdate Dec 20 18:17:50 I use it Dec 20 18:18:51 autrilla: so that shows a weightsum which is less than the sum of the weights, which are not equal Dec 20 18:19:19 also if you are setting a size by weight then the size should be set to 0dp Dec 20 18:20:19 and RelativeLayout doesn't have orientation Dec 20 18:20:46 Ankhwatcher, 0.33*3 = 0.99 Dec 20 18:21:01 it's not a meaningful tag in RelativeLayout because the locations are relative Dec 20 18:21:45 autrilla: oh I see, I didn't spot the nested linearlayouts right off the bat Dec 20 18:22:13 I got progress! Dec 20 18:22:18 Now it says no permissions Dec 20 18:22:31 that's not a good idea because linerlayouts have to be sized at runtime so nesting weighted layouts can slow down the app Dec 20 18:22:56 Ankhwatcher, so relativeLayouts? Dec 20 18:23:30 well maybe you should try to get this working first Dec 20 18:23:38 brb Dec 20 18:23:44 Ankhwatcher, now they are all the same size, but top margin is too big Dec 20 18:24:18 autrilla: you have a textcolor set to a drawable, I surprised that works Dec 20 18:25:14 Ankhwatcher, the drawable is a color Dec 20 18:25:30 #ffffff Dec 20 18:25:37 autrilla: that's what @color is for Dec 20 18:25:51 you should use match_parent instead of fill_parent Dec 20 18:26:02 Ankhwatcher, the themes.xml doesn't allow usage of @color Dec 20 18:26:07 So I can use the same for both Dec 20 18:26:31 wha? Dec 20 18:26:44 you know white is actually defined at the system level Dec 20 18:26:58 so you could set it to @android:color/white Dec 20 18:28:21 Ankhwatcher, done Dec 20 18:29:03 so how does it look now? Dec 20 18:29:16 and could you update your pastebin? Dec 20 18:30:48 Ankhwatcher, one sec Dec 20 18:31:06 http://pastebin.com/x0AT018d Dec 20 18:31:37 Ankhwatcher, http://i.imgur.com/b5jWNx8.png Dec 20 18:32:55 so now you want to change the padding? Dec 20 18:34:06 Ankhwatcher, I guess Dec 20 18:34:10 The top and bottom only Dec 20 18:34:12 sides are fine Dec 20 18:34:25 (google play ripoff, by the way) Dec 20 18:34:40 do you want the padding even or just less? Dec 20 18:34:49 Ankhwatcher, even Dec 20 18:35:15 because the padding it coming from your weighting on the top-level linear layout Dec 20 18:35:31 Is the circular time picker in the jellybean clock app a UI widget? Dec 20 18:35:40 In the SDK? Dec 20 18:35:59 No Dec 20 18:36:05 goddamnit Dec 20 18:36:32 There are libraries that try to copy it Dec 20 18:36:35 Ankhwatcher, I dont understand Dec 20 18:38:12 autrilla: switch from android:layout_centerHorizontal="true" to android:layout_center="true" Dec 20 18:39:00 my bad Dec 20 18:39:24 android:layout_centerInParent="true" Dec 20 18:39:35 will center both horizontally and vertically Dec 20 18:40:06 what size should Media Player buffer be if I want it to be larger than everage?.. And how do I check if it is really changed? Dec 20 18:41:17 What's the average? Dec 20 18:41:22 Ankhwatcher, which should have that? Dec 20 18:41:32 SimonVT: I don't know ) Dec 20 18:41:34 SimonVT: how are you Dec 20 18:41:44 Find out, and add 1 Dec 20 18:42:04 autrilla: your three ImageViews Dec 20 18:42:27 Ankhwatcher, that didn't change anything Dec 20 18:43:05 autrilla: also take out the alignParent attributes from them Dec 20 18:43:28 Ankhwatcher, but the parent top? Dec 20 18:43:42 all Dec 20 18:43:59 you want them centered on the white tiles, correct? Dec 20 18:44:00 Alright, now the image is obviously in the exact middle Dec 20 18:44:15 Yes, but on the top of them Dec 20 18:44:55 oooh now I get you Dec 20 18:45:01 just a sec Dec 20 18:45:44 Ankhwatcher, just like on Google Play's app Dec 20 18:46:21 tbh Google Play is probably a GridView Dec 20 18:47:24 Ankhwatcher, I can use it with appcompat Dec 20 18:48:18 autrilla: try this: http://pastebin.com/iSycjRNY Dec 20 18:48:32 GridView? yes Dec 20 18:48:56 Top and bottom padding is still big Dec 20 18:49:34 hmm well try taking the padding off the imageview Dec 20 18:49:57 I think the background applied to the RelativeLayouts might have padding Dec 20 18:55:43 Ankhwatcher, I'm back and the device is still offline. Dec 20 18:56:26 what does it say on the device? Dec 20 18:57:42 hi. does anyone know if there is a standard telephone adapter for android? Dec 20 18:58:27 Crimson_Rogue: ... a what? Dec 20 18:59:18 okay... I'm needing my android phone to essentially be compatible with landline equipment Dec 20 19:04:07 Crimson_Rogue: this is not related to #android-dev; please don't cross-post questions between here and #android Dec 20 19:04:47 Ankhwatcher, I don't think it's the background... Also, taking the padding does what is expected Dec 20 19:09:31 Alright, now in the right channel. Is anybody using retrofit? Or any other REST client library? Dec 20 19:09:40 I'm using it Dec 20 19:10:30 You are making it! Dec 20 19:10:50 I am confused about it's dependencies. Dec 20 19:10:52 its Dec 20 19:11:05 it depends only on Gson by default Dec 20 19:11:21 you can omit Gson if you supply a different converter Dec 20 19:11:33 SBT complains about things like this: Warning: retrofit.RestAdapter$RxSupport$1: can't find superclass or interface rx.Observable$OnSubscribeFunc Dec 20 19:11:49 RxJava is an optional dependency Dec 20 19:12:05 meaning, we compile against it but it's not required at runtime Dec 20 19:12:45 So this is probably more of an SBT question on how to make it ignore this dependency. Dec 20 19:13:16 dunno. the fact that it doesn't correctly honor what's declared in the pom is disturbing Dec 20 19:14:08 hmm, ant is trying to be funny Dec 20 19:14:20 I copied the basic sample but it does not look like this is using any fancy libraries. Dec 20 19:15:29 Ankhwatcher, may god have stood beside me! I got it working! Dec 20 19:17:03 is it possible to answer calls invisibly and receive invisibly, without showing the call activity? Dec 20 19:17:04 Maybe it's actually Proguard that is complaining. Dec 20 19:17:24 ice9: I would certainly hope not :) Dec 20 19:17:48 JesusFreke, me too, but this is for security reasons! Dec 20 19:17:55 not evil ones Dec 20 19:17:58 exactly. :) Dec 20 19:18:26 JesusFreke, but a bugged phone with malware will be able to do that Dec 20 19:18:57 not unless it can get root access. and sometimes not even then. Dec 20 19:19:18 is there an android book with common patterns? Dec 20 19:19:32 iirc, in some cases the application processor never even "sees" the audio stream from the phone call Dec 20 19:19:55 but I might be wrong about that. I barely know anything about the telephony side of things. Dec 20 19:21:02 JesusFreke, but there are spy apps actually can do that, and they are commercial apps Dec 20 19:21:47 ice9: and do the require root access? Dec 20 19:21:49 they* Dec 20 19:21:59 JesusFreke, I'm not sure Dec 20 19:22:06 Can someone tell my why the following code is giving me the following parse exception: http://hastebin.com/suduqijiko.vbs Dec 20 19:22:30 JesusFreke, but if the phone is rooted and they are installed as system apps then it will work right? Dec 20 19:23:00 ice9: if you can modify the system, you can do "anything" Dec 20 19:23:25 JesusFreke, so a malware on rooted system can do anything Dec 20 19:23:38 ice9: you know what root access is, yes? :) Dec 20 19:23:47 can anyone point me to a custom kernel for the galaxy s3 that allows you to undervolt the cpu? Dec 20 19:24:29 yes JesusFreke Dec 20 19:24:50 If you're question is "can I do this on a rooted device, with root access", then the answer is yes, of course Dec 20 19:24:55 your* Dec 20 19:25:26 But that's a conversation more suited to #android-root :) Dec 20 19:29:11 So I'm checking out the docs for GCM and I'm like k I can do this if I put in the effort and then I see the example code for implementing the 3rd party server and I'm like o.O Dec 20 19:29:59 Do I really need to do my own server? Dec 20 19:31:53 CocoStorm: where else would you send the messages from? Dec 20 19:32:15 You have to have *something* that's generating the messages, right? Dec 20 19:32:16 JesusFreke, but how does one even go about implementing a server I gots no idea about it Dec 20 19:33:47 I just want to create a simple IM Dec 20 19:34:06 CocoStorm: then you'll just need to create a simple server Dec 20 19:34:17 evanc, Oh Dec 20 19:34:46 there is no tutorial on that on the android docs i'm assuming? Dec 20 19:35:11 in the android docs? unlikely. There might be one in the GCM docs, though. Dec 20 19:36:04 Oh there's a seperate docs for gcm? cool Dec 20 19:36:47 http://developer.android.com/google/gcm/gs.html <- it's not this one is it Dec 20 19:36:48 lol Dec 20 19:38:16 is pfn hereß Dec 20 19:38:24 Oh, I revealed my secret identity! Dec 20 19:44:39 evanc, Is the demo server suitable for IM right off the bat? http://developer.android.com/google/gcm/ccs.html Dec 20 19:47:08 Can someone tell my why the following code is giving me the following parse exception: http://hastebin.com/suduqijiko.vbs Dec 20 19:52:44 Dreeass: have you tried "dd" instead of "d"? Dec 20 19:53:11 JesusFreke, it works fine on an emulator. That error only appears on my Nexus 5 running 4.4.2. Dec 20 19:53:17 anyone? Dec 20 19:53:42 is there some trick to send HTML content via intent passed into stock Email app? Dec 20 19:54:01 other than standard EXTRA_TEXT / EXTRA_HTML_TEXT extras Dec 20 19:54:52 Dreeass: try new SimpleDateFormat("d MMM yyyy", Locale.US); Dec 20 19:55:49 JesusFreke, could it be because my emulator is English and my phone is Dutch? Dec 20 19:56:06 JesusFreke, I'll try it in a second, after I finished my game. Dec 20 19:56:08 Dreeass: yes. that's exactly why I suggested passing the locale :) Dec 20 19:56:26 JesusFreke, thanks man. I'll tell you what happened after my LoL game ;) Dec 20 20:05:00 marrrk, try asking questions instead of is XXX here Dec 20 20:05:07 yeah, sorry Dec 20 20:05:50 does the stock Email app simply not support sending HTML content? Dec 20 20:09:16 do any of you guys reverse engineer apps off the market? Dec 20 20:10:00 i was wondering about the proguard cache, what can/should go in there and what shouldn't. Everything that's in a library can go in there, I suppose? Anything I don't modify? Dec 20 20:10:52 running an avd and every 20 seconds or so i get an FC on acore Dec 20 20:10:55 wth? Dec 20 20:25:38 Why does my image have a lot of padding on the top and bottom? I want it to look like Google play http://i.imgur.com/CXqlwaw.png Layout: http://pastebin.com/cbxRN56p Dec 20 20:31:18 I'm trying to setup a test environment from an app sent to me by someone else... and I was referred to use jdeveloper, so I set that up, however when I try to compile the app I get this error: Error(17,25): package java.util.logging does not exist , although I can't seem to find out how to add this package Dec 20 20:31:48 there was another package I had to add... oracle.adfmf.framework.api although I was able to do this through Help > Updates Dec 20 20:32:50 JesusFreke, do you know how to use ADB on Linux to install an APK file to the connected Android phone via USB? Dec 20 20:33:03 adb install blah.apk Dec 20 20:33:12 autrilla: not counting @dimen/activity_vertical_margin it seems you have a padding of 12dp so far. what is the size of that dimension? Dec 20 20:33:29 it's probably something super basic, but if someone could point me in the right direction... Dec 20 20:33:47 canvs2321, why would the margin take effect on the image? Dec 20 20:34:08 16dp Dec 20 20:34:14 scratch that :) there are just soo many layouts, i added that one in Dec 20 20:59:38 Ankhwatcher, I think I know why it is Dec 20 20:59:44 Image size Dec 20 21:01:12 is there a limit to how many files i can have in assets? Dec 20 21:01:27 like if i had say 4 or 5 THOUSAND files in there woud it bitch? Dec 20 21:01:33 like tiny files :) Dec 20 21:01:36 I440r: try it and see? :) Dec 20 21:01:39 I440r, tias Dec 20 21:01:51 ya Dec 20 21:05:29 I440r: should be fine Dec 20 21:06:42 Duh... Dec 20 21:06:51 Image size shouldn't affect this... Dec 20 21:07:48 http://i.imgur.com/BoeYdJk.png Dec 20 21:07:55 Second image has higher resolution than first Dec 20 21:10:29 Anyone had problems with Loaders on the Nexus 5 suddenly not working right? Dec 20 21:10:50 About 4 out of 5 times the AsyncTaskLoaders are not running. Dec 20 21:11:19 But on the Galaxy Nexus (and other earlier models) it's working flawlessly. Dec 20 21:14:15 Nevermind... database issue. Dec 20 21:15:06 nevermind the nevermind... not working again. Dec 20 21:21:01 i440r: if uploading to playstore i'd think your limit would be whatever they say Dec 20 21:22:08 canvs2321, i mean within my apk's assets directory, is there a limit thats been set. im POSITIVE theres a memory limit :) Dec 20 21:23:16 yeah as long as you don't exceed any file size limitations imposed by any place you may upload, there shouldn't be a limit of the amount of files Dec 20 21:23:38 Hey, I'm trying to get my head around fragments. Is a fragment basically another layout for an activity that the activity can switch too? Basically making an activity more dynamic with multiple layouts? Dec 20 21:23:42 Do you guys use Android Studio or IDEA with Android plugin? Dec 20 21:24:12 thers an android plugin? Dec 20 21:24:13 I'm using Android Studio right now. I'm tempted to try IDEA though Dec 20 21:24:24 <-- uses IDEA Dec 20 21:24:43 I440r: there's an android 'plugin', but IDEA ships with it by default Dec 20 21:25:13 kk lol Dec 20 21:25:21 thats how come i didnt know it existed lol Dec 20 21:25:35 gulli: a fragment is like plug and play for your activities. kinda an abstraction from just creating one huge layout and hiding/showing what is needed. can keep code seperate and cleaner also Dec 20 21:25:51 i might just go pay for the full blown version if i get a job soon Dec 20 21:26:10 do my little bit to help great people to continue to develop awesome software Dec 20 21:26:21 which was one of the resons i register sublime text Dec 20 21:26:23 Correction on the previous statement -- the loader manager is either kicking off all loaders on init() or it's kicking off none. Dec 20 21:26:38 canvs2321, yup. So if im getting this correctly, its like using javascript to make divs dynamic on a webpage? Dec 20 21:26:48 gulli: if size of a device is a certain size, you can pop in any fragments to fill the space needed and keep data flow, and if on a smaller device, you can choose which fragments to show based upon any limitations Dec 20 21:26:52 in some sence Dec 20 21:26:53 GNex running 4.2, Nex5 running 4.4 -- but 4.4 will load only one of every 5 times the app is started. Dec 20 21:27:38 canvs2321, ahh, and an activity can change fragments based on user input also, right? Dec 20 21:28:13 gulli: i dunno bout javascript. But it's just a way to keep your logic interchangeable based on what you want displayed. And like i said you can keep from having one huge as Activity. Dec 20 21:28:24 gulli: you can pull/push any fragment you want based on anything Dec 20 21:29:30 canvs2321, thanks dude :) Dec 20 21:30:17 gulli: and in your different layouts based on size, you can layout how you want fragments to appear. if big device, show more fragments to keep flow(tapping to navigate) to a minimum. if small device have the layout with less fragments, and apply loading new based on navigation Dec 20 21:47:10 Awesome changes to Android security Dec 20 21:47:10 https://code.google.com/p/android/issues/detail?id=61085 Dec 20 21:51:08 Is there any way to offset the DragShadowBuilder used when dragging views? Dec 20 21:53:03 Loaders not triggering after a while -- acts like a memory leak (gets progressively worse) but only happens on Nexus 5... anyone else having trouble with Nexus5? Dec 20 22:13:03 nice, when I try to use android.net.nsd on the emulator it reboots Dec 20 22:20:06 looks like a cool api, if it works Dec 20 22:24:02 A question about how to do it the right way: I have an application that helps people to learn new stuff and keep it in long term memory and for each item to learn, there can be a lot of records of statistical data like when this item was last time repeated, how many times and when the user gave a correct or wrong answer etc. Is there a more efficent way than storing this data in the SQLite database? Dec 20 22:26:47 you could always have them download additional data (in-app) to their internal/external storage memoryleak... Dec 20 22:30:43 found the problem... Dec 20 22:30:59 Failed loading too many bitmaps, suddenly, the loaders all decide not to load. Dec 20 23:07:52 hello. Is there a work around for the android-sdk mess below? Dec 20 23:07:57 ironm@wheezy:~/adt-bundle-linux-x86_64-20131030$ file ./sdk/build-tools/android-4.4/aapt Dec 20 23:07:57 ./sdk/build-tools/android-4.4/aapt: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped Dec 20 23:09:53 I don't want to install ia32-libs Dec 20 23:10:27 ugh, how do you set a ttl on nsdserviceinfo in nsdmanager? Dec 20 23:10:32 ironm, you have no option Dec 20 23:10:38 32bit userspace is required for android sdk Dec 20 23:10:54 thank you pfn Dec 20 23:11:06 I use 64bit Dec 20 23:11:31 then use ia32-libs Dec 20 23:11:37 I can't install it Dec 20 23:11:44 then create a 32bit vm Dec 20 23:11:49 why can't you install it? Dec 20 23:12:54 JesusFreke, because: Dec 20 23:12:58 ia32-libs : Depends: ia32-libs-i386 but it is not installable Dec 20 23:12:58 E: Unable to correct problems, you have held broken packages. Dec 20 23:13:09 hmm, nsdmanager sucks, maybe I should switch back to using jmdns Dec 20 23:13:20 apt-get update Dec 20 23:13:25 then apt-get install ia32-libs Dec 20 23:13:51 pfn, I did apt-get update before .. I can repeat it however Dec 20 23:14:04 then go to #ubuntu and ask for help Dec 20 23:14:08 if it still does not work Dec 20 23:14:29 pfn, the same error message Dec 20 23:14:53 I use linux live image (wheezy) Dec 20 23:15:27 pfn, thank you for your try to help :) Dec 20 23:16:32 if I download adt for 64bits I would expect that it will work in 64bits environment Dec 20 23:16:42 s/if/when/ Dec 20 23:18:19 ironm: it does, if you have the correct packages installed. This isn't a problem with the ADT, it's a problem with your ubuntu VM. Dec 20 23:19:11 never had any problem with ADT on amd64 debian Dec 20 23:19:17 JesusFreke, aapt requires 32 bit libraries .. it is wrong on the android site Dec 20 23:19:30 whe I run 64bit Dec 20 23:19:32 ironm: I've never had any problems on my 64-bit ubuntu machines Dec 20 23:19:34 https://www.google.com/search?q=you+have+held+broken+packages&rlz=1C1CHKZ_enUS436US436&oq=%22you+have+held+broken+pac&aqs=chrome.1.69i57j0l5.3662j0j7&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8 Dec 20 23:19:36 ^^ Dec 20 23:20:17 thank you pfn Dec 20 23:20:26 not so hard to google for error messages... Dec 20 23:20:34 * pfn doesn't understand android.net.nsd at all Dec 20 23:20:43 services that are completely dead still show up in dns-sd -B Dec 20 23:20:47 friggin' crappy Dec 20 23:24:41 pfn, I did (googled) before .. but didn't find right answers Dec 20 23:26:14 from my point it is a bug in the 64bit package of adt .. when I have 64bit system I don't want to use 32bit libs Dec 20 23:26:22 my point of view .. Dec 20 23:26:39 the 64bit package of adt isn't 64bit for everything Dec 20 23:26:48 it's only for adt itself Dec 20 23:26:50 not the android sdk Dec 20 23:27:13 and adt is only eclipse Dec 20 23:29:24 I mean aapt .. I gues it belongs to android, right? Dec 20 23:29:34 aapt is part of the android sdk, not adt Dec 20 23:29:49 aapt requires 32bit libs Dec 20 23:30:59 who cares what libraries it requires? The only reason it matters for you is that your ubuntu installation has some issue that prevents installation, and it just happens to be a problem with the ia32-libs package Dec 20 23:32:22 that's right, fix your computer Dec 20 23:34:06 pfn, why should I fix my computer? There is no reason. I use self created linux live image .. 64bits Dec 20 23:34:42 android greenhorns should take care about the stuff they produce and offer to download as 64bit version Dec 20 23:35:22 "android greenhorns" = google Dec 20 23:35:43 uh, you should fix your computer because it is not to the spec required for android development Dec 20 23:35:51 android requirements = ia32-libs Dec 20 23:35:55 if you cannot provide that, you cannot do it Dec 20 23:36:13 if you want a 64bit sdk, make it yourself Dec 20 23:36:20 the sources are available Dec 20 23:36:57 use the source, luke Dec 20 23:40:44 thank you pfn .. it will cost me a lot of time Dec 20 23:41:16 good for you Dec 20 23:41:23 next time, maintain your computer better Dec 20 23:50:29 pfn, do you know what linux live image is ? Dec 20 23:51:23 example: http://rsync.it-infrastrukturen.org/developer-live/server-live-developer-openJDK7.iso Dec 20 23:51:42 I'm having a bit trouble with image resources; I have added logo.png (in different sizes) to /res/drawable-hdpi, /res/drawable-mdpi, /res/drawable-xhdpi, /res/drawable-xxhdpi - but when I try to set this as the application icon in the AndroidManifest.xml-file with android:icon="@drawable/logo" , I get an error saying "Error: No resource found that matches the given name (at 'icon' with Dec 20 23:51:42 value '@drawable/logo')." Dec 20 23:52:27 I dont see whats wrong Dec 20 23:52:57 http://rsync.it-infrastrukturen.org/developer-live/README.txt Dec 20 23:54:17 borgizzle, run "grep -R ./ -name logo.png" in workspace Dec 20 23:54:47 or just search for this file there Dec 20 23:55:21 sorry .. "grep -R logo.png ./" in workspace Dec 20 23:55:34 or find ./ -name logo.png Dec 20 23:59:24 is the android studio xml formatter (ctrl+shift+L) bugged or what? Dec 21 00:06:16 http://i.imgur.com/BoeYdJk.png Why does this happen? Second image has higher res than first Dec 21 00:22:16 Is there someway to drop an incoming call? Dec 21 00:22:28 [without user interaction] Dec 21 00:23:20 What is this! Failure [INSTALL_FAILED_UID_CHANGED] Dec 21 00:23:28 I restarted the device and everything... Dec 21 00:26:14 explodes, uninstall the old app Dec 21 00:26:15 uninstall the old ap Dec 21 00:26:23 explodes, also happens if you have a malformed dex file Dec 21 00:26:26 in which case, you're fucked Dec 21 00:26:32 unless you have root Dec 21 00:27:44 i already uninstalled the old app Dec 21 00:28:22 https://code.google.com/p/android/issues/detail?id=58748&q=is%3Astarred&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Dec 21 00:28:28 dunno if your conditions are the same Dec 21 00:28:32 but that above requires root to resolve Dec 21 00:32:05 :| Dec 21 00:36:14 * autrilla implodes Dec 21 00:36:25 Oh, explodes is here. Nice timing Dec 21 00:38:05 :U Dec 21 00:38:28 ugh; i find it very annoying that at least for the bugs i'm interested in, i can never tell if they were actually /fixed/. so am i supposed to just cross my fingers and test KeyChain on every version of android to find out myself? Dec 21 00:40:56 its (not) amusing when its actually assigned to a person, a year ago, and then … nothing Dec 21 00:41:11 What the fuuuuuuuuck Dec 21 00:41:45 I uninstalled the app. Dec 21 00:41:55 Reinstalling it gives me the same damn error Dec 21 00:42:09 explodes out of curiosity, what phone / rom / version of android ? Dec 21 00:42:23 stock kitkat nexus 7 2013 wifi Dec 21 00:42:30 d'OH! Dec 21 00:42:35 yerp Dec 21 00:42:56 i think google should just stop adding features and make shit work Dec 21 00:43:00 take a year off Dec 21 00:43:02 or maybe 2 Dec 21 00:44:10 Got a recommendation for rooting nexus 7? Dec 21 00:44:54 explodes, go to #android-root :P Dec 21 00:46:24 All I think I need to do is delete /data/data/com.explodes.app Dec 21 00:51:11 can I have the same ID for different fragment containers (that ofcourse have a different name)? Dec 21 00:51:14 android:id="@+id/fragment_container" Dec 21 00:51:27 in all fragment containers Dec 21 00:52:29 hehe, Tim Draper wants to break up california into 6 states Dec 21 00:55:06 Ah... this is so weird Dec 21 00:55:32 Why does Android make the height of my ImageView relative to the actual resolution of the file, leaving the top and bottom transparent? Dec 21 00:57:44 autrilla maybe a wrong scaling mode ? Dec 21 00:57:56 with wrong layour params :) Dec 21 00:58:02 Most likely Dec 21 00:58:08 I don't see what's wrong though Dec 21 00:58:20 http://i.imgur.com/BoeYdJk.png Dec 21 00:59:37 And XML: http://pastebin.com/pz9YbvE1 Dec 21 02:19:03 Hello, for a listview in single selection mode with a select color highlight, is there a way to use seperate colors for the selection highlight (depending on position or something?) Dec 21 02:19:14 or is that something i have to do manually with ontouch up/down ? Dec 21 02:20:16 lasserix: thinking about it.. Dec 21 02:20:40 lasserix: It will be random colors? Dec 21 02:21:40 lasserix: What I would do in this case is set different drawables (with different state-pressed colors) in the getView method of the adapter. Dec 21 02:21:59 Yeah thought so! thanks Dec 21 02:22:18 lasserix: This way the color will be defined once per view draw and not on every touch. Dec 21 02:37:55 Is it "battery-heavy" to keep a UDP socket open for an app at all times? Dec 21 02:38:20 It would be used for push messaging, the phone needs to be in a VPN for the app to work, so direct connections are generally always possible Dec 21 02:48:22 is there sample code somewhere to show how to use the camera? perhaps upload the image to a REST service? Dec 21 02:51:04 IrishGringo: I have a sample of how to use the camera and gallery and grab a image. Dec 21 02:51:16 IrishGringo: But I don't have the upload part. Dec 21 02:51:21 sonOfRa: you're not going to maintain a UDP connection on most networks Dec 21 02:51:35 sonOfRa: since the IP will change on you.. Dec 21 02:52:04 IrishGringo: Want it? Dec 21 02:52:30 Sambarboz: sure... Dec 21 02:52:45 Doing that would for me Dec 21 02:53:19 IrishGringo: https://github.com/sambarboza/AndroidCameraIntentPhotoGallery Dec 21 02:53:20 so you app would take a picture.. I assume I would be naming it as well. then store it in the galery? Dec 21 02:54:16 IrishGringo: In my example I only use the camera intent and show the photo. I'm not sure if I save it. But you can save and rename it for sure. Dec 21 02:55:30 Sambarboz: what is a cursorloader.. is that an android thing? Dec 21 02:55:46 IrishGringo: Yep. Dec 21 02:56:12 IrishGringo: It's used to load a lot of native resources like Photos, audio, contacts… **** ENDING LOGGING AT Sat Dec 21 02:59:59 2013