**** BEGIN LOGGING AT Wed Oct 09 02:59:58 2013 Oct 09 03:01:11 so guys, recommend me to use java, right? Oct 09 03:01:25 yes. Oct 09 03:01:29 ok Oct 09 03:01:44 and what about GUI? eclipse are OK? or recommend me another? Oct 09 03:01:55 IJ Oct 09 03:03:15 eclipse is fine... AS is okay, but it's still a preview release... you don't actually have to use an IDE at all... Oct 09 03:04:15 oh, ok Oct 09 03:04:55 just looking some apps to start my first app,so will use eclipse or sublimetext Oct 09 03:11:11 latest question, need to use jave 7 right? Oct 09 03:11:17 s/jave/java Oct 09 03:11:25 java 6 Oct 09 03:11:32 oh, ok Oct 09 03:20:59 java5 through 7 all work fine for building android apps Oct 09 03:24:29 for free tier, appengine is hard to beat Oct 09 03:25:24 usually not a problem until you hit hundreds of thousands of users Oct 09 03:25:46 I have like 70k users attacking my appengine setup Oct 09 03:26:06 but it's a pretty trivial app Oct 09 03:26:54 * pfn should check out the metrics for req/s again Oct 09 04:05:27 all right then. i was a sucker and went for the canary 0.2.13. probably a simple thing; the mac version doesn't bundle the sdk. fine with me; i always deleted that anyhow and pointed my local.properties sdk,dir to my install. Oct 09 04:05:42 now, it doesnt seem to be finding my sdk,dir regardless though - anybody see this ? Oct 09 04:05:49 ello all Oct 09 04:06:28 allo ello Oct 09 04:06:41 hey QubeZ Oct 09 04:07:03 hey g00s Oct 09 04:13:27 huh, weird. it is actually picking up sdk.dir in local.properties, just not finding the SDK (it says i have it set to -1 , how adorable ) Oct 09 04:29:16 evening all Oct 09 04:29:23 i'm pretty sure http://demotivators.despair.com/demotivational/mistakesdemotivator.jpg Oct 09 04:30:17 im a complete nood and trying to debug a crash in my unity game on my tablet......and good resources out there for going throgh the process step by step? what i have found isnt very noob friendly Oct 09 04:30:25 noob that is...lol Oct 09 04:30:54 hi, i have this TextView https://www.dropbox.com/s/ypfuwzm2ecnmfp3/720.png , hd display is perfect but for display 480x800 i see two lines https://www.dropbox.com/s/a8vkmtxtfi2gx0h/480.png Oct 09 04:31:00 you've written a game and don't know about logcat ? Oct 09 04:31:26 g00s: logwhat? Oct 09 04:31:30 how can i create a textview with different textSize for different display? Oct 09 04:31:51 newinandroid: Do you know about small and large layouts? Oct 09 04:32:02 yes Oct 09 04:32:12 it's like logdog, but more feline in nature Oct 09 04:32:17 newinandroid: you can do the same with dimensions... Oct 09 04:32:27 i don't understand Oct 09 04:32:28 g00s: His game is made in Unity, he probably doesn't actually know anything about Android. Oct 09 04:32:49 you can set the textsize to "@dimen/my_text_size" Oct 09 04:32:57 and make my_text_size be different numbers for different layout sizes Oct 09 04:34:47 ok where can i put file of dimension Oct 09 04:34:58 this is what i get from DDMS Oct 09 04:35:00 10-08 21:34:26.508: A/libc(5373): Fatal signal 11 (SIGSEGV) at 0x81d40000 (code=1), thread 5400 (UnityGfxDeviceW) Oct 09 04:35:16 SEGV basically means "shit happened" Oct 09 04:35:16 10-08 21:34:26.748: I/DEBUG(176): #00 pc 0001ce04 /system/lib/libc.so (memcpy+124) Oct 09 04:35:33 gavilan2, dimensions attribute are in "values" folder Oct 09 04:35:55 i don't understand how can i change my_text_size Oct 09 04:35:58 i realize there is something internal to unity going on, but how do i take this stuff, and decipher it? Oct 09 04:36:07 Nilium what are you up to this fine evening Oct 09 04:36:54 HaroldBalls probably have to ask the unity people Oct 09 04:37:24 since we're discordant Oct 09 04:38:16 if one wanted to debug that....how would you do it? Oct 09 04:38:41 because it works fine on the PC, thereis something specific to android happening.... Oct 09 04:39:02 newinandroid: create values/dimen.xml and values-large/dimen.xml Oct 09 04:39:28 HaroldBalls: to be honest, you probably need to speak to unity people more than android people Oct 09 04:40:00 ah i did'nt know values-large Oct 09 04:40:34 they pointed me here! Oct 09 04:40:46 thanks anyway fellas, looks like its back to google for me Oct 09 04:40:52 newinandroid what will you do with your nick wnen you are not newinandroid Oct 09 04:41:05 anymore ? Oct 09 04:41:09 HaroldBalls: problem is, it's not a crash in Android, and it's not a crash in your code - probably Oct 09 04:41:14 newinandroid is now known as oldinandroid Oct 09 04:41:22 :) Oct 09 04:42:04 ok, thanks fellas! ill pop back if i have more info :) Oct 09 04:42:22 newinandroid you realize once you're an expert, somebody will ask a q , you will answer, and they will discount you saying, nah, you're newinandroid ! Oct 09 04:42:42 g00s, thanks :) Oct 09 04:43:30 there's a guy on one of my other channels who has been new2unix for something like 10 years now Oct 09 04:43:59 allright then. 0.2.13 did not fix that bug where it tried to create .idea/ in your build.gradle file (and failed, of course). Oct 09 04:44:12 even though that was the point of the release, with the signing thing Oct 09 04:44:15 :) Oct 09 04:44:20 always 0.2.14 Oct 09 04:45:04 i tried to update the bug but i guess nobody saw it Oct 09 04:45:16 whatever Oct 09 04:45:45 i love how Ed Burnette is sitting there in the tools G+ saying, eclipse still rules ! Oct 09 04:45:48 go ed, go !!! Oct 09 04:55:27 wow, Adobe is still working on Air. i thought they stopped that a while back Oct 09 04:58:20 I believe they only deprecated Flex or something Oct 09 04:59:09 In other unrelated news, A Machine for Pigs is a very interesting sort-of-game Oct 09 05:02:45 I used this oop thing for the first time today. void foo(View v) {foo();} void foo() { ... } why does a regular button send a view to the handler but not an actionbar button? Oct 09 05:03:18 O.o Oct 09 05:06:33 zmuser3 maybe you need to throw a bar in with the foo Oct 09 05:06:43 hi, I am trying to send a LocalBroadcast to my service from my activity, but it is not getting there, the doc say this "Helper to register for and send broadcasts of Intents to local objects within your process.", I am running my service on another process (manifest android:process=":service"), so I will never get the LocalBroadcast to work, right ? Oct 09 05:06:47 equal usage of foo and bar, especially for the actionbar Oct 09 05:07:14 daivyk that won't work Oct 09 05:08:22 but, do you really need to use another process for the service? Oct 09 05:08:28 its not very common Oct 09 05:08:55 g00s: what can I do about it. I have 2 services and 1 activity. the first service is a connection service and the second is the IOIO service Oct 09 05:09:24 why can't they all be in the same process ? Oct 09 05:09:44 g00s: the main thread will not freeze ? Oct 09 05:10:01 well of course it will, but the solution is not to use another process just for that Oct 09 05:10:26 i dont know squat about IOIO, except that, you're probably doing IO :P Oct 09 05:10:37 so maybe you need a read thread and a write thread Oct 09 05:11:28 hummm... let me try to run everything from the process Oct 09 05:11:40 because the connection service I am creating a new Thread for it Oct 09 05:11:49 and the IOIO i think it creates one too Oct 09 05:12:31 g00s: now I get it, I need threads, not new processes Oct 09 05:12:38 correct Oct 09 05:14:05 g00s: thanks, i am going to test it now. Oct 09 05:29:59 i can't seem to get as 0.2.13 to work. oh well Oct 09 05:30:46 back to vim for now ;) Oct 09 05:35:33 g00s: perfect, its working. Oct 09 05:35:41 JakeWharton: here? Oct 09 05:35:45 hehehe.. all running on the same process Oct 09 05:35:48 always Oct 09 05:35:50 and never Oct 09 05:35:51 daivyk awesome :) Oct 09 05:36:28 JakeWharton: check this out: http://pastie.org/private/sgvhellpbsdushwwnhea Oct 09 05:43:14 heh, nice Oct 09 05:43:30 i'll admit, i forgot all about that problem immediately Oct 09 05:45:40 thepoosh your method isUnderLimit is a predicate yet seems to have a side effect ;) Oct 09 05:45:54 g00s: this is Android code Oct 09 05:45:57 while () { sent.remove(0); } Oct 09 05:46:03 oh, lol Oct 09 05:46:20 me and my friend from work went on a scavenger hunt Oct 09 05:47:08 g00s: http://goo.gl/TmF7XE Oct 09 05:47:21 this is what he came up with Oct 09 05:47:51 oh my Oct 09 05:48:24 yeah, SmsManager is a piece of undocumented shit pile Oct 09 05:48:50 I think I'll write a blog post when I'm finished with this Oct 09 05:53:35 hi everyone Oct 09 05:54:25 i have a problem with some applications, like A-IDE and TestFlight. At some point, I get a dialog box asking me if I want to install the APK ( on my device ) and I cannot click on it. Do you know why? Oct 09 05:56:22 push harder Oct 09 06:53:05 wut Oct 09 06:53:24 Damn freenode Oct 09 06:54:36 anyone see in AS 'Class requires Api level 1 (current min is -1)' ??? Oct 09 06:55:13 my minSdk is actually 8, target 18 Oct 09 06:55:58 g00s: LOL Oct 09 06:57:55 command line build is fine Oct 09 06:58:27 thepoosh you using eclipse or plain intellij ? Oct 09 06:58:49 I'm staying with Eclipse until Android Studio 1.0 Oct 09 06:59:03 very smart move Oct 09 06:59:04 once we have a proper release I'll consider the move Oct 09 06:59:31 what are you using? Oct 09 06:59:33 vim? Oct 09 07:00:16 my mistake entirely; not even caring about AS - i was impressed with some of the gradle stuff, so i refactored my projects to take advantage. using variants, etc. but now i'm in quite a jam if AS does not cooperate Oct 09 07:00:28 so its basically - yeah - use vim Oct 09 07:10:02 uh oh, now i got an "Ide internal error" Oct 09 07:10:16 lol g00s i get that alot :/ Oct 09 07:10:34 ArrayIndexOutOFBounds :D Oct 09 07:10:56 not using AS for my personal stuff though just for work stuff Oct 09 07:11:12 cause my personal projects are in scala and AS doesn't play nice .. cause of gradle Oct 09 07:11:25 so intelliJ 12 for me .. it crashes less :) Oct 09 07:14:21 lemonxah i'd go back to IJ 12 if i could use the android gradle plugin Oct 09 07:16:02 lemonxah i got 0.2.13 because they said it was a bugfix release, its much worse than the previous one heh Oct 09 07:19:16 what's the method of testing if a device has cellular service or not? Oct 09 07:23:56 g00s, :/ i just updated to 0.2.13 :/ Oct 09 07:24:10 you're crazy Oct 09 07:24:15 g00s, the android gradle plugin is the reason i cant use scala for android Oct 09 07:24:41 i like the gradle for android thing but it doesn't gel with sbt Oct 09 07:36:29 filed bug report ;) Oct 09 07:45:01 interesting, this last version of Chrome is squirreling stuff away in /private/var/folders/tg/... Oct 09 07:59:26 Hi there, I'm a noob in android app dev and need some help. I added a library some time ago to my project and want to remove it now, because it is no longer needed and I get the error "Project xxx is missing required library: /home/...". However, there are so much buttons in eclipse that I cannot find out which one to click to see the dependencies, could you point me in the right direction? Oct 09 08:02:12 *many buttons Oct 09 08:03:59 Oh, found it: right click libs-> Build path -> configure build path Oct 09 08:06:57 hey guys - is there any way to get the actual x,y coordinates of a view ? Oct 09 08:07:46 in SDK 10, i know there was a method introduced in SDK 14, however that is not what i am looking for Oct 09 08:17:13 anyhow, if i wish to use SDK with an old project, and have added the android-14 jar file and changed the build properties, is there anything else i should do in order to use a more recent sdk ? Oct 09 08:33:43 hello Oct 09 08:33:50 One question, i have a gridview with 5 elements. I don't know why, GetView of position 0 is called 3 or 4 times. It causes a view problem in the item. Any idea please? Oct 09 08:33:56 Thanks Oct 09 08:34:19 when developing for android Oct 09 08:34:23 should I follow the Java idiom Oct 09 08:34:46 Cadmi: why does it cause a problem? Oct 09 08:36:45 i am using oxyplot, and the internal plot is getting resized bad. I think it is for this reason, but i am not sure Oct 09 08:36:54 don't understand why it has to be called multiple times for position 0 Oct 09 08:36:56 maybe it is normal Oct 09 08:47:31 Cadmi, all the adapter type views call getView all over the place to help with layout and measuring Oct 09 10:34:47 I have a project whichs layout.xml file uses @string/variables that doesnt exist and eclipse is not complaining.. I copied the project to another machine and their eclipse complains... whats wrong on the first machine? Oct 09 10:36:19 ohcibi, do a clean on your eclipse Oct 09 10:36:32 its likely that the generated R class is cached Oct 09 10:37:26 lemonxah: thanks Oct 09 10:37:30 no worries Oct 09 10:37:34 working? Oct 09 10:39:55 yep, but it seems that I have to do it pretty often.. Oct 09 10:40:10 if thats the case your eclipse is broken :) Oct 09 10:40:16 why not switch to AS? Oct 09 10:40:40 have to discuss it with the project lead Oct 09 10:41:11 also I find the inclusion of library projects pretty ugly with AS, which is a key feature we need Oct 09 10:41:57 its not that bad ohcibi we have the same thing .. easy solution is create a local maven repo that has your libs in and have your CI server publish to it Oct 09 10:42:33 and then just use the compile 'com.google.youtube:youtube_android_player_api:1.0.0@jar' pattern in the dependencies { } section of your gradle file Oct 09 10:42:43 very clean Oct 09 10:43:10 you could also deploy to public maven repos if you dont mind your libraries be publically available Oct 09 10:43:14 hm... but again, I'd have to discuss it with the lead Oct 09 10:43:22 yeah just saying :) Oct 09 10:43:36 its not that hard to do :) switched over a month ago Oct 09 10:43:48 some hicups Oct 09 10:44:02 i'm already looking forward into it.. Oct 09 10:44:12 but over all its very good switch Oct 09 10:44:13 is there any decent vim-integration or plugin for AS/IntelliJ? Oct 09 10:44:18 intelliJ is >>>> eclipse Oct 09 10:44:27 yes there is Oct 09 10:45:00 its called IdeaVim Oct 09 10:45:29 found it.... weekends gone now Oct 09 10:45:33 lol Oct 09 10:46:18 i cant just say lets switch... I need to come up with a fully detailed instrunction on how to do it... Oct 09 10:46:28 so i need to do it myself once 8-) Oct 09 10:50:02 yeah Oct 09 11:04:13 ohcibi: any way you can pull the library projects out into jars? Oct 09 11:05:40 Desarun: actually yes, but there is another issue with a resource we are using.. the lib uses a png file which we provide in res/ of another project that only includes our jar file else Oct 09 11:05:58 Desarun: so actually it would be possible to just include the jar and maybe include the png file by hand.. but again, I'm not the lead 8-)) Oct 09 11:07:28 Do I need to use a ContentProvider to fill a listview with data from a SQLite database? Oct 09 11:09:07 ohcibi, if you need a jar that uses a /res then it becomes an .aar Oct 09 11:09:17 that is a library file with a .jar and resources Oct 09 11:09:50 flexd, yes you have to make a contentProvider and then use a ContentResolver Oct 09 11:10:04 or you could do it manually but that isn't a good idea Oct 09 11:10:55 Just a SimpleCursorAdapter maybe? Oct 09 11:11:00 It's not a very advanced application Oct 09 11:12:57 Google translated, but basically this is what I am doing: https://gist.github.com/flexd/856c3561effd2242c72a so it does not need to be super-robust. Oct 09 11:15:17 lemonxah: how would I export it? Oct 09 11:15:44 ohcibi you can use gradle to generate it Oct 09 11:15:45 So what's the benefit of using an actual library over an .aar file? Oct 09 11:15:54 you need to setup a gradle.build file Oct 09 11:16:00 lemonxah: 8-) thought it was possible with eclipse... Oct 09 11:16:11 ohcibi, i haven't tried with eclipse sry Oct 09 11:16:37 lemonxah: the important thing is if the .aar works the same within eclipse... so we can create a release from it Oct 09 11:16:41 Desarun, .aar is only beneficial if you use a library like ActionBarSherlock where you need the library but also resources that the library uses Oct 09 11:17:00 but for the most part you just want a code library in that cause just use a .jar lib Oct 09 11:18:08 ohcibi, unfortunately i have left eclipse in the dust a while ago Oct 09 11:18:26 so its hard for me to comment on the functionalities of eclipse Oct 09 11:18:39 but gradle is deffinately worth using when doing android dev Oct 09 11:18:41 no problem... i'll try it out Oct 09 11:18:51 lemonxah: sure, but we cant force our clients to do so.. Oct 09 11:18:58 you dont even need to do anything special in eclipse if you setup a gradle.build file Oct 09 11:19:00 except I think that the lead dont want to force 8)) Oct 09 11:19:03 download gradle and build Oct 09 11:19:09 with ./gradle compile Oct 09 11:19:12 or package Oct 09 11:19:14 or what ever Oct 09 11:19:35 i dont think that its compatible... eclipse compiles the files in its own way Oct 09 11:19:41 right when loading the project Oct 09 11:20:16 you can have multiple things building the code :) Oct 09 11:20:21 if you delete the bin/ and refresh the projects contents in eclipse, bin/ gets regenerated right away in a way as ant and I believe also gradle wont do it... Oct 09 11:20:22 like eclipse uses ant i think? Oct 09 11:20:26 no Oct 09 11:20:31 eclipse uses eclipse 8-)) Oct 09 11:20:43 its been discussed and one of the big reasons to switch to AS Oct 09 11:21:01 you can also export a gradle file from eclipse Oct 09 11:21:26 hm, yes, I guess eclipse can be tweaked to use gradle Oct 09 11:21:34 no i mean Oct 09 11:21:39 adt Oct 09 11:21:42 Eclipse can be configured to build using ant or maven too. Not sure about Gradle. Oct 09 11:21:48 can generate the gradle file for your project Oct 09 11:21:50 from eclipse Oct 09 11:21:59 not gradle as far as i know Oct 09 11:22:09 but that is a win from intelliJ (one of the many) Oct 09 11:22:13 1 build process Oct 09 11:22:24 from command line or from within the ide it builds the same Oct 09 11:22:52 yep thats what I mean.. eclipse dont has this out of the box.. Oct 09 11:24:42 the advantages of eclipse over android are very slim Oct 09 11:25:01 the advantages of eclipse are very slim Oct 09 11:25:05 Eclipse Normally has Ant. The EE edition I think has Maven. Oct 09 11:26:24 is it possible to use Camera Intent such that it returns a smaller size picture? Oct 09 11:27:19 ADT is wonderfully buggy :/ Oct 09 11:31:25 hello, what different with Settings.Global, Settings.System and Settings.Secure??? Oct 09 11:34:18 there are no advantages of eclipse Oct 09 11:34:22 intelliJ is just better Oct 09 11:35:10 plemora smaller size meaning in dimensions or diskspace? Oct 09 11:35:15 either way its a no Oct 09 11:44:54 anyone familiar with having mobile transactions show up on user's phone bill? Oct 09 11:46:34 Does anyone know what Cardhu, Dalmore, Ceres, Pluto are? in the NVIDIA Tegra DevKit ? Oct 09 11:46:55 Its asking me if "Would you like to flash your Tegra Devkit with your installed OS image" Oct 09 11:47:06 and the next screen is the options I listed above Oct 09 11:47:21 I don't understand what this means Oct 09 11:47:35 How do I know what is "my installed OS image" ? Oct 09 11:47:39 installed where? Oct 09 11:47:42 what image? Oct 09 11:48:57 What's the difference between al those devkits? Oct 09 11:54:36 hello, is it possible for a webpage to set the homepage of the browser? Oct 09 11:54:42 it shouldn't be, right? Oct 09 11:57:08 maybe I should ask this in #android Oct 09 12:04:00 how would one go on about making a firewall for android? Oct 09 12:17:55 vpnservice Oct 09 12:17:57 :D Oct 09 12:47:11 can anyone help me into importing fw/base into eclipse? Oct 09 12:47:17 (the whole source code) Oct 09 13:31:35 When I was a child, I spoke as a child, I understood as a child, I thought as a child, but when I became a man, I put away childish things. What? It's Corinthians one, chapter thirteen verse eleven. Oct 09 13:33:34 meh, growing up is overrated Oct 09 13:33:55 but so is being childish Oct 09 13:34:10 Zero Cool? Crashed fifteen hundred and seven computers in one day? Biggest crash in history, front page New York Times August 10th, 1988. I thought you was black man. YO THIS IS ZERO COOL! Oct 09 13:34:39 lol Oct 09 13:35:31 FYI man, alright. You could sit at home, and do like absolutely nothing, and your name goes through like 17 computers a day. 1984? Yeah right, man. That's a typo. Orwell is here now. He's livin' large. We have no names, man. No names. We are nameless! Oct 09 13:35:44 :D Oct 09 13:36:58 Erica Albright's a bitch. Do you think that's because her family changed their name from Albrecht, or do you think that's because all BU girls are bitches? For the record, she may look like a 34C, but she's getting all kinds of help from our friends at Victoria's Secret. She's a 34B as in barely anything there. False Advertising. Oct 09 13:37:38 [to Mark] You are probably going to be a very successful computer person. But you're going to go through life thinking that girls don't like you because you're a nerd. And I want you to know, from the bottom of my heart, that that won't be true. It'll be because you're an asshole. Oct 09 13:39:22 This business is binary, you're a one or a zero. Alive or dead. Oct 09 13:41:04 woo, social network Oct 09 13:41:13 and is that other from 50 shades of gray? Oct 09 13:43:39 Voicu what Oct 09 13:43:41 :P Oct 09 13:44:12 what what? Oct 09 13:44:46 and is that other from 50 shades of gray? Oct 09 13:44:49 what u mean Oct 09 13:45:03 I was guessing, I dunno Oct 09 13:45:55 Wait a minute, Doc. Ah... Are you telling me that you built a time machine... out of a DeLorean? Oct 09 13:46:06 The way I see it, if you're gonna build a time machine into a car, why not do it with some style? Oct 09 13:47:27 If my calculations are correct, when this baby hits eighty-eight miles per hour, you're going to see some serious shit. Oct 09 14:01:15 Anyone knows why I get when using NVIDIA PerfHUD "could not fetch apk name" ? Oct 09 14:36:13 Hi Oct 09 14:36:21 how can i update a view inside a viewpager ? Oct 09 14:36:30 i invalidate it, but it doesn't get repainted Oct 09 14:39:40 hi Oct 09 14:40:12 when i make a google play dev account, i must pay 25$ Oct 09 14:40:15 right? Oct 09 14:40:35 but if i make 2 apps i must pay for both? Oct 09 14:40:41 or only for account? Oct 09 14:42:12 ? Oct 09 14:42:23 Shoud I be able to send a notification from a background thread? Oct 09 14:42:29 so i pay 25$ for account or for every app Oct 09 14:42:41 for account Oct 09 14:44:25 per account Oct 09 14:50:37 aried3r: you can publish multiple apps on the same account (which costs a one-time $25) Oct 09 14:54:16 I have an old android device (HTC Evo 3D) and I want to just remove everything off it and use it as a storage device is that possible? Oct 09 14:59:22 Eirick, just remove the SD card and use that. Oct 09 14:59:47 not cool enough Oct 09 15:01:07 Eirick: install linux and install an ftp or samba server Oct 09 15:01:17 hmm Oct 09 15:01:24 sound interesting Oct 09 15:01:36 how can I do that on the droid? Oct 09 15:01:48 using the linux installer app in the play store Oct 09 15:03:01 hello, how do i set padding for a GoogleMap map fragment? as in the https://developers.google.com/maps/documentation/android/map#map_padding Oct 09 15:03:20 myMap.setPadding() doesnt work for some reason Oct 09 15:04:49 should I use sherlockbar for implement swipe view with viewpager for api14+ devices? Oct 09 15:07:27 I mean tab navigation Oct 09 15:08:06 Ankhwatcher: it only has USB and the default files I havent had this thing on in a long time lol Oct 09 15:12:06 evanc: Did you mean artur99? Oct 09 15:12:22 lol Oct 09 15:12:59 did GoogleMap.setPadding get deprecated or smth? :S Oct 09 15:15:33 aried3r: yeah, probably. I shoot first and ask questions later. Oct 09 15:16:12 pish Oct 09 15:35:12 i try to capture my emulators screen with pixel perfect in eclipse. but i just get a black screen, the view hierachy is shown properly. Some hints? Oct 09 15:37:10 http://1.bp.blogspot.com/-3M29kckx66U/UQMr1UU2JXI/AAAAAAAAUiQ/ktMEn4s0rZ8/s1600/if+at+first+you+don't+succeed+change+the+rules.jpg Oct 09 15:38:32 i recognized now that taking screenshots from the ddms view results also with a black screen. I have absolut no idea how. Oct 09 15:38:58 Hi. I am having some trouble reading about AsyncTask and Handlers... I am not sure if these will solve my problem. Basically I would like to have a method of my Activity to be called every second. How can I do this? Oct 09 15:39:13 Just need some guidance, no need for code Oct 09 15:39:23 using activity context you pass into the async Oct 09 15:39:37 don't forget to use a handler to post from the correct thread Oct 09 15:39:44 handler.postDelayed(somethingEverySecond, 1000); somethingEverySecond() { handler.postDelayed(this, 1000); } Oct 09 15:39:46 and don't forget to check that the context isn't null Oct 09 15:42:29 gmag, with a TimerTask Oct 09 15:42:46 Ok great. pfn even shares some code. Let me see if I understand, I need a Handler defined with a postDelayed() method belonging to the handler class. I wonder if this handler class has to be static, and if it has access to attributes of my Activity class Oct 09 15:43:13 gmag, you want a TimerTask and control it via onStart onStop maybe Oct 09 15:43:39 not a timertask Oct 09 15:43:58 gmag, dosn't want frequently called a method? Oct 09 15:44:03 my concern is that the method I need to run every second needs access to members in my Activity Oct 09 15:44:16 drindt, I do Oct 09 15:44:46 and I think that handler must be static Oct 09 15:45:00 and being static it wont have access to activity non static members Oct 09 15:45:33 gmag: use a handler and post a runnable Oct 09 15:46:02 I like self calling post delayed runnables Oct 09 15:46:45 I'm not sure if the handler needs to be static, but isn't the runnable what needs access to the activity? Oct 09 15:47:24 the handler posts to the thread that created it Oct 09 15:47:38 so create a handler with new Handler(Looper.getMainLooper()); Oct 09 15:47:50 then you have a handler to the main thread from any non ui related thread Oct 09 15:48:09 the runnable is posted to a handler to run on a thread Oct 09 15:48:15 why do you even need a thread in this case Oct 09 15:48:21 if it's a non-blocking/fast call Oct 09 15:48:23 like <2ms Oct 09 15:48:34 yea, self calling post delayed runnables Oct 09 15:48:40 sounds more appropriate Oct 09 15:48:42 don't use a TimerTask Oct 09 15:48:44 don't use a Thread Oct 09 15:48:48 don't use an AsyncTask Oct 09 15:49:09 I wish TimerTask had not been ported over from Java (or it had been rewritten to just wrap Handler or something) Oct 09 15:49:15 evanc, ditto Oct 09 15:49:16 * gmag is reading and digesting (gmag is a noob with android) Oct 09 15:49:17 runnable = new Runnable() { public void run() { ... ; handler.postDelatyed(runnable, 1000); } }; Oct 09 15:49:22 frankly, never use asynctask, my pet peev Oct 09 15:49:23 someone can confirm that the latest adt plugin can not take screenshots from emulator avds? Oct 09 15:49:24 TimerTask is wrong because people use that because it came from java Oct 09 15:50:10 and it creates a thread, and executes on that thread Oct 09 15:50:24 yeah Oct 09 15:50:29 pfui Oct 09 15:51:38 nseidm1, I don't use asynctask, either Oct 09 15:51:51 I just do async { code to be async, post { stuff to run on ui } } ;-) Oct 09 15:52:10 rather, ui.post { } Oct 09 15:52:13 or ui.run { } Oct 09 15:52:21 indeed, my favorite structure is a CachedThreadPoolExecutor Oct 09 15:52:46 or I could use Futures and map over them Oct 09 15:54:25 the javadoc is like a warm cup of coco on a cold winter day: Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue. At any point, at most nThreads threads will be active processing tasks. If additional tasks are submitted when all threads are active, they will wait in the queue until a thread is available. If any thread terminates due to a failure during execution prior to shutdown, a new one wil Oct 09 15:54:25 l take its place if needed to execute subsequent tasks. The threads in the pool will exist until it is explicitly shutdown. Oct 09 15:54:38 I got issues Oct 09 15:56:17 meh, that's for a fixed thread pool executor. Heck everything in Executors useful at times. Oct 09 15:59:11 I think imma get the motox next month Oct 09 15:59:21 when motomaker comes to vzw, and the nexus 5 is shown not to run on vzw Oct 09 16:01:24 pfn: I bought a motox recently, but I couldn't wait for motomaker so I just got the developer edition, haha Oct 09 16:01:32 it's a pretty nice phone Oct 09 16:01:43 it seems very nice Oct 09 16:01:50 I want white + mint + red Oct 09 16:01:53 I'm tempted for the One Max Oct 09 16:02:49 just say no to finger readers Oct 09 16:05:48 evanc, dev edition seems cool and all, but I can't justify the non-subsidize price Oct 09 16:06:22 especially when someone always inevitably figures out how to unlock these things Oct 09 16:07:04 pfn: well it was a gift, and you can't buy a non-dev one outright without signing up for a plan, so ... Oct 09 16:07:38 indeed, nice gift Oct 09 16:08:27 actually, white + turquoise + purple Oct 09 16:08:30 can't go wrong, that's hot Oct 09 16:11:32 but yeah, when motomaker comes to vzw, it's at the top of my list if the nexus5 isn't (which it probably won't) Oct 09 16:12:05 just say no to monopolies Oct 09 16:13:25 just say yes to snakes and ladders Oct 09 16:13:51 shots and ladders Oct 09 16:21:17 ok, still trying to understand the idea. So, nseidm1 when you say "the runnable is posted to a handler to run on a thread", what does that mean? You mentioned before, to create an instance of the handler, I am doing that (in my MainActivity). So, now I need the Runnable to have access to attributes of main Activity, where should I instantiate the Runnable for that? (sorry for newbie questions) Oct 09 16:21:28 Anyone else read up on Amazon Developer Select? Seems like an awesome deal Oct 09 16:22:16 How do you guys deal with separate app versions in separate markets, especially when the difference between them might be the ad network. Would you create your own view that holds either a google ads or amazon ads view? Oct 09 16:24:56 I thought the runnable would have access to Activity somehow throught the handler. So I would have to pass the handler object to the runnable upon instantiation, and inside the runnable it would use the handler methods that would eventually have access to Activity Oct 09 16:25:56 I am actually doing this in another application, but the Handler needs to be static, and will have access to static variables in Activity only Oct 09 16:26:20 I am probably missing something fundamental here Oct 09 16:36:40 http://stackoverflow.com/questions/19254934/android-fragments-with-lists-and-autocompletetextview ...... I need some tips on how to get the list fragment to show up fine ... Oct 09 16:40:13 ok, I think I am in th right path now, I am using Handler mActivityHandler = new Handler(Looper.getMainLooper()); as nseidm1 suggested, and created am instantiating a runnable as shmoooz suggested. The problem now is that I can't start the runnable as the IDE claims: "The method start() is undefined for the type Runnable". Any idea how to start this runnable? Oct 09 16:45:43 I guess I have it running well, I just call run() Oct 09 16:55:40 any idea how to force same size for all cells in a tablelayout? Oct 09 17:27:45 Hello, is a plattform independet app, which works on android, ios and other systems? Or what means "Plattform independent" Oct 09 17:28:59 Platform independent would be like a web app, I think Oct 09 17:29:57 okay, thank you :) Oct 09 17:30:10 Hi Oct 09 17:30:19 whats the best way to do graphics for android? Oct 09 17:30:32 Im trying to prepare for a hackathon Oct 09 17:30:58 "do graphics"? Oct 09 17:31:00 shaun413 - depends on what you're trying to accomplish. there are a couple of options. Oct 09 17:31:15 like game physics Oct 09 17:31:17 want to control frame rate? Oct 09 17:31:26 opengl? Oct 09 17:36:35 Hey all, I'm opening an activity from another, and the back stack works fine, but when I background the app, bring it back to the foreground, and press back, it goes back to my home screen instead of the previous activity. Why would that be? I haven't set any flags, I just called startActivity on this Intent: new Intent(this, AppSettingsActivity.class); Oct 09 17:37:17 If you're just drawing lines and stuff you might look at creating a View class. Oct 09 17:37:50 See AccessibilityNodeProviderActivity in the API Sample project. Oct 09 17:38:03 OpenGL is good to learn though. Oct 09 17:47:05 with fragmenttransaction can i keep a fragment's view around so it doesn't get destroyed since it's expensive to recretea it Oct 09 17:49:17 I should mention I launched my first activity via NFC. I assume that's why this is messing up. Oct 09 17:58:59 Listen, I love android, and dev for it professionally. But god damn... TextView's ellipsize property is a perfect microcosm for the larger problems that pervade the Android SDK. It doesn't just work. And it's a simple property that really should. And no one seems to know quite how to get it to work, even the StackOverflow threads are confused. Oct 09 18:00:48 Wavesonics: you have to do android:singleLine="true" as well as android:ellipsize="end" Oct 09 18:02:38 there's also a lot of confusion as to whether or not singleLine is deprecated Oct 09 18:02:47 b/c sin some places it says it is, others it doesn't Oct 09 18:03:02 check the code. where it actually matters Oct 09 18:03:06 http://developer.android.com/reference/android/R.attr.html#singleLine Oct 09 18:03:39 but in the TextView docs, it doesn't say it's deprecated Oct 09 18:03:48 maxLines works also. Oct 09 18:03:51 maxLines 1 Oct 09 18:03:59 doesn't seem to actually Oct 09 18:04:01 i did Oct 09 18:04:04 lines="1" Oct 09 18:04:06 and maxLines Oct 09 18:04:17 and ellipsize doesn't work Oct 09 18:04:17 does singleLine work? Oct 09 18:04:20 yes Oct 09 18:04:37 not for the marquee value though Oct 09 18:04:40 so singleLine and ellipsize work together? Oct 09 18:04:44 yes Oct 09 18:04:53 but singleLine is deprecated... Oct 09 18:04:54 brb Oct 09 18:05:23 To be honest. I used singleLine and ellipsize as a proof of concept and then wrote my own ellipsize in code. Oct 09 18:13:00 jaynewstrom, ya but thats a problem w\ the SDK if you have to do that. Oct 09 18:14:17 it's only like 20 lines of code. probably less. Oct 09 18:14:20 hi Oct 09 18:14:27 I agree, they could have done a better job. But still, it's not that difficult Oct 09 18:17:17 I successfully buit android from source for grouper and when I ran fastboot -w flashall I got following error message error: neither -p product specified nor ANDROID_PRODUCT_OUT set Oct 09 18:17:50 I ran export ANDROID_PRODUCT_OUT=/source/WORKING_DIRECTORY/out/target/product/grouper and got follow error message when running fastboot -w flashall error: could not load android-info.txt: No such file or directory Oct 09 18:18:22 <^cheeky> i am so slow .. as slow as my dev machine with AS !!!!!!! Oct 09 18:20:50 guys I would like to record video and upload it somewhere right aeway so video it self shouldnt be saved on user phone for long. should i just create some and delete it right awy? Oct 09 18:21:34 anyone using Roboguice and the MVP pattern? Oct 09 18:22:25 /msg NickServ VERIFY REGISTER cpatrick08 pnykecmyqbmd Oct 09 18:23:00 hahahahahahaha Oct 09 18:23:09 fail cpatrick08 Oct 09 18:23:15 x_x Oct 09 18:25:33 :D Oct 09 18:25:37 this happened to me also Oct 09 18:26:15 oh super fail Oct 09 18:26:21 that sucks :P Oct 09 18:26:37 <^cheeky> ummm so i have to use some sort of facial recognition stuff to get the center of images .. because .. center crop is fail , or its just user error ... like me Oct 09 18:26:45 all lower alpha, bad pw. hard to remember, and easy to break. Oct 09 18:27:08 ^cheeky, ya, we really need way more control over image crop types IMO Oct 09 18:27:38 both iOS and Android have the barest minimum avalible. And on Android specifically, crop types are super useful for multi-resolution design Oct 09 18:28:15 <^cheeky> i am a nooblet ... and i ventured into making my first app .. and sheesh its so much to do :( Oct 09 18:29:36 <^cheeky> Wavesonics: so i need to use the face recog .. api to solve this issue ? Oct 09 18:29:52 g'morning - can anyone tell me, simply, how to install the Android plugin for Gradle? Oct 09 18:30:05 there are docs — I don't quite understand them Oct 09 18:31:25 ^cheeky, well wrose than that, is once you do find where you want the focal point to be, you'll have to subclass ImageView and write your own cropping function to actually accomplish the ffect Oct 09 18:31:57 tensory: I believe you just specify it in your build.gradle file Oct 09 18:32:00 not really sure, though Oct 09 18:32:06 I just use the plugin with AS, currently Oct 09 18:32:24 Trufax: in build.gradle you do specify it, but it has to be installed first Oct 09 18:32:36 well, dang Oct 09 18:32:52 there is a project on github that distributes the plugin, but totally glosses over *how* to install it Oct 09 18:32:56 <^cheeky> Wavesonics: : :( ... coz these images are random .. of anything ... i grab from the interwebs .. so user can search anything ... Oct 09 18:33:19 ^cheeky, ya thats tough, i've had to deal w\ this a bit, and theres no good built in solution Oct 09 18:33:21 like, as soon as i figure this bizness out I plan to send them a pull request with whatever I end up having to do Oct 09 18:33:32 for a really bullet proof solution, you're gonna be writing a lot of code Oct 09 18:33:40 <^cheeky> Wavesonics: is there a read or link i could use, i am going to put this on my back stack to accomplish ... coz i guess ill wrap up the apps other functionality Oct 09 18:33:57 in my cases i cheated a bit Oct 09 18:34:11 <^cheeky> Wavesonics: how Oct 09 18:34:16 Trufax: good choice using AS. there's not as much automated support for Eclipse, I am finding. Oct 09 18:34:16 I displayed them actualy size, or heavily cropped, and allowed toap to expand Oct 09 18:34:30 <^cheeky> toap ? Oct 09 18:34:34 I didn't have any problems w/eclipse as long as I just built with gradle on the command line Oct 09 18:34:45 https://github.com/jvoegele/gradle-android-plugin < doesn't seem to outline an installation process Oct 09 18:34:52 neither does the 1-page wiki Oct 09 18:35:04 but there's a "USAGE" section Oct 09 18:35:31 nod. wondering how you got it to understand "apply plugin: 'android'" Oct 09 18:35:31 Trufax, ya AS is finially getting pretty usable Oct 09 18:35:44 yeah, tell me about it. :/ that's exactly the README I am looking at. Oct 09 18:36:04 has anybody gotten the Apache libraries to work on android, btw? I've got this issue: http://hastebin.com/tereyifeke.avrasm Oct 09 18:36:08 and what i intend to… help with.. if I ever get that far Oct 09 18:36:26 I'm trying to use MultipartEntityBuilder, but for some reason the methods in the class aren't being found Oct 09 18:37:24 my build.gradle - http://hastebin.com/woyufijilo.coffee Oct 09 18:37:46 I'm finding the misbehaving classes, intact, in the APK with apktool Oct 09 18:39:00 ahh fiiiinally. at least vogella's got our back: http://www.vogella.com/articles/AndroidBuild/article.html#building_overview Oct 09 18:39:36 mani got this huge listview w/ all different kinds of items.. using getViewTypeCount and getItemViewType .. really hard to figure out how to organize this code Oct 09 18:40:23 Hi. I'm doing some light dev, and I would like a tablet in the $100-$200 range. Anyone have advice on this(proc, brand, etc)? Oct 09 18:40:40 tensory: so you didn't have to install the android gradle plugin? Oct 09 18:40:53 Trufax: no, I don't think that will be the case; I think I will have to Oct 09 18:41:06 but this article seems like it might help Oct 09 18:41:08 I still see no instructions to install android plugin Oct 09 18:41:27 I have a theory involving sticking the compiled files from the plugin into my sdk path Oct 09 18:41:36 What's that gradle-android-plugin .. Seems like some deprecated 3rd party library Oct 09 18:41:37 which I am now figuring out where that is Oct 09 18:41:44 (since there's official support now) Oct 09 18:42:05 SimonVT: the official docs refer to the 3rd party library, I think Oct 09 18:42:18 at least from my reading of them Oct 09 18:42:21 I doubt it Oct 09 18:42:50 tcb^ll3r, I got a refurb Galaxy Tab 2 on Amazon for 80 bucks. Oct 09 18:43:21 Anyway, there's nothing to install.. Whatever is needed is in the sdk or pulled from maven central Oct 09 18:43:31 There's even samples that shows you how to make a build.gradle Oct 09 18:43:35 nobody on the "VFY: unable to resolve static method" thing? Oct 09 18:43:55 SimonVT: I'm following those examples, and when I run the build file I am writing, it dies on "> Plugin with id 'android' not found." Oct 09 18:44:16 tensory: cool, how do you like it? what is the processor? Oct 09 18:45:20 tcb^ll3r, honestly it's cheap and the soft keyboard is lousy. I end up using voice recognition a lot because typing on it is so slow. Oct 09 18:45:35 tensory: Then you did it wrong.. Probably didn't set up the buildscript dependency or something Oct 09 18:45:38 but, for something that I bought so I could glue velcro to it and stick it to my fridge while cooking, it's not bad. Oct 09 18:45:39 <^cheeky> face recog would be cool tho !!!! Oct 09 18:46:03 (that was the original plan, before i started using it as a guitar songbook / android test device ^_^ ) Oct 09 18:46:11 tensory: thanks for the tip. Oct 09 18:46:45 tensory: have you posted a build.gradle file yet? Oct 09 18:46:48 SimonVT: um, I think that dependency is precisely what I am asking about Oct 09 18:46:51 kinda hard to see if you're doing anythign at all Oct 09 18:46:56 nope, gonna go paste it Oct 09 18:47:03 does anyone else have any advice regarding favorite tablet for droid dev? I'm thinking about asus w Arm... Oct 09 18:47:23 <^cheeky> tcb^ll3r: grab a Pipo tablet like 75 bucks .. thats what i did Oct 09 18:47:27 does it really matter what tablet you get? Oct 09 18:48:11 https://dpaste.de/Z7jP is my build script under construction. Oct 09 18:48:37 line 10 is where it dies when I run 'gradle assemble' in my project directory. Oct 09 18:49:33 "> Plugin with id 'android' not found." is the error, which seems quite reasonable as I can't figure out how to install such a plugin. Oct 09 18:50:39 ^cheeky: how do you like it? Oct 09 18:50:59 Trufax: I dunno, thats why I'm asking what everyone likes. Oct 09 18:51:38 <^cheeky> i use my nexus for actual testing but yeah i just about it coz i rooted it and dev seems to work .. sometimes .. with ubuntu .. but thats to do with my fault .. user error Oct 09 18:51:39 <^cheeky> heh Oct 09 18:51:45 tensory: apply plugin 'android' doesn't go in buildscript Oct 09 18:51:52 tensory: everything after line 8 Oct 09 18:51:58 is not supposed to be in buildscript, actually Oct 09 18:52:02 <^cheeky> you can get them cheaper .. if you converse with the seller using google translate, heh :P Oct 09 18:52:30 SimonVT: it doesn't? i'm following http://tools.android.com/tech-docs/new-build-system/user-guide Oct 09 18:52:46 does Gradle/AS support render script yet? Oct 09 18:52:51 under where it says "Basic Project" and has a very short build file Oct 09 18:53:10 A simple build file where it's not inside buildscript Oct 09 18:53:21 it's not. Oct 09 18:53:35 the "apply plugin" part is after the closing brace of buildscript {} Oct 09 18:53:39 tensory: go read over the "simple build script" again Oct 09 18:54:14 on that link you gave us, the plugin declaration and the android section are not nested in buildscript Oct 09 18:54:41 oh, look at that. Oct 09 18:54:42 DUH. Oct 09 18:54:45 Wow, thanks, guys Oct 09 18:54:50 * people Oct 09 18:54:54 <— not a guy but whatever Oct 09 18:55:36 well, shoot Oct 09 18:56:01 nobody on what the weird errors I'm getting with regards to apache libs are? Oct 09 18:56:27 sorry :/ Oct 09 18:56:39 along the lines of "W/dalvikvm﹕ VFY: unable to find class referenced in signature..." Oct 09 18:56:46 tensory: don't worry... you're not quite there yet Oct 09 18:56:52 hahaha indeed I am not. Oct 09 19:03:24 arrriiiight, just got the build off baby's first gradle buildfile to work. thanks, all. Oct 09 19:08:04 Calling setSelection() on a Spinner causes the Spinner to select the item at that index, correct? Oct 09 19:09:46 saiarcot895 - does its signature call for an index? Oct 09 19:10:21 tensory: yes Oct 09 19:10:39 <^cheeky> is saving the search result entered by the user in the searchView ... in Preferencemanger a good idea ? Oct 09 19:11:35 <^cheeky> the reason i ask this is because ..even though in my destroy function of my activitys fragment i set it to null, and then in Emulator i restart the app the saved query gets populated. Oct 09 19:23:25 lemonxah i filed a bug last night before bed and woke up; tor fixed it already for as 0.3.0 :O Oct 09 19:30:16 <^cheeky> :) nice Oct 09 19:33:54 workaround is specify minSdk in gradle Oct 09 19:34:07 at least there is a workaround ;) Oct 09 19:39:32 ? Oct 09 19:39:42 * pfn shrugs Oct 09 19:40:17 so I updated to a random aosp rom on my GN, hope it doesn't burn and die Oct 09 19:40:32 it's already spontaneously rebooted twice, but it's been doing that irregularly recently anyway Oct 09 19:40:44 like half the time I start yelp, it reboots itself Oct 09 19:40:53 https://github.com/snooplsm/happyschedule/blob/master/library/src/us/wmwm/happyschedule/fragment/FragmentHistory.java java.lang.IllegalArgumentException: No view found for id 0x7f08002d (com.lirr:id/fragment_history_ad) for fragment Oct 09 19:40:59 anyone ever get this exception? Oct 09 19:41:01 I asked to have lint pick up minSdkVersion from build.gradle, Tor delivered and broke for those who define it in manifest Oct 09 19:41:17 tl;dr I got my issue fixed =) Oct 09 19:41:19 https://github.com/snooplsm/happyschedule/blob/master/library/src/us/wmwm/happyschedule/fragment/FragmentHistory.java#L273-L287 Oct 09 19:41:42 sorry, I have a case where i swap fragments out (i'm inside a viewpager) and every so often I get this exception No view found for id... https://github.com/snooplsm/happyschedule/blob/master/library/src/us/wmwm/happyschedule/fragment/FragmentHistory.java#L273-L287 Oct 09 19:41:44 How would you calculate this: If you tilt your phone both sideways and upwards, how would you calculate the angle with which move your ball on the screen in that direction? Oct 09 19:42:00 S_J, by learning some math? Oct 09 19:42:25 yea, trigonometry is a good start Oct 09 19:42:59 some trig and basic kinematics Oct 09 19:44:09 corresponding gist of exception https://gist.github.com/snooplsm/bed4f278117ccb62621f Oct 09 19:44:19 snooplsm: Well, if no view with the id fragment_history_ad exists in the view hierarchy, you'll get that exception Oct 09 19:44:47 SimonVT: this exception only occurs occasionaly, I can't reproduce on my own devices. Oct 09 19:45:00 I assume ads are loaded asynchronously, so whatever view has that id could have been removed between you making an ad request and it failing Oct 09 19:45:15 vectors, man Oct 09 19:45:23 S_J: using vectors. Oct 09 19:45:24 perhaps, but I don't think the exception is happening in onAdFailed Oct 09 19:45:36 I think it is happening in setPrimaryItem, which is when the viewpager sets the current item. Oct 09 19:45:39 linear algebra is fun. Oct 09 19:46:17 maybe I should do handler.post() Oct 09 19:46:26 I guess checking to see if the view exists will work too Oct 09 19:50:45 Basically you're telling it to do a fragmenttransaction sometime in the future.. You don't know if the viewgroup you add the fragment into exists in the future, and you don't check if it exists either Oct 09 19:52:03 ok, i'll add in checks Oct 09 19:54:41 you could also remove the task in the case that the viewgroup that it's acting on is invalid Oct 09 20:00:24 found a similar issue to mine - http://stackoverflow.com/questions/18850357/adnroid-gradle-noclassdeffounderror-org-apache-http-entity-mime-multipartentity Oct 09 20:05:16 Hey guys..! I am facing issues installing an Android via an external apk while its running fine via adb.. I am using Ubuntu 13.04 updates with 'OpenJDK'.. Is OpenJDK to blame..? Shall I get Oracle JDK..? Thanks..!! Oct 09 20:07:49 purezen: what? Oct 09 20:08:48 woop, Hey..! I mean to ask that if using OpenJDK to compile your Android app.. (done in Eclipse) is known to create issues..? Oct 09 20:09:28 do you have jdk or jre installed? Oct 09 20:09:36 dpkg -l | grep openjdk Oct 09 20:10:28 and I really doubt that you're going to run into problems with openjdk vs oracle official Oct 09 20:12:13 woop, I installed the JDK.. Oct 09 20:12:53 send a paste of what you get from that command I gave you Oct 09 20:12:56 woop maybe ' compile 'org.apache.httpcomponents:httpmime:4.3'' conflicts with some built in apache stuff ? Oct 09 20:12:57 that is what you need? Oct 09 20:13:52 purezen: "dpkg -l | grep openjdk" Oct 09 20:14:00 also, I doubt that the issues are with openjdk vs oracle jdk Oct 09 20:14:26 g00s: I've read that this is the case for httpclient Oct 09 20:16:30 woop use jarjar Oct 09 20:16:30 purezen: android apps are compiled into dalvik code in the end, not java bytecodes Oct 09 20:16:53 use jarjar and put the jars into my libs directory? Oct 09 20:17:09 you probably have to rename the package of the httpclient you are grabbing yourself Oct 09 20:17:56 yeah - from gradle - hm, not sure how to do it, but thats where gradle rocks and makes it easy without writing a plugin ;) Oct 09 20:18:11 Httpmime depends on httpclient.. Maybe exclude that if there's a conflict Oct 09 20:18:21 purezen, why don't you be specific about what issues you are encountering? Oct 09 20:18:45 but if you're going to have Httpmime depend on a different version you'll probably have to test that :( Oct 09 20:19:09 just don't use apache commons, nothing of value is in there ;-) Oct 09 20:19:11 tl;dr don't use apache httpclient :p Oct 09 20:19:47 sigh Oct 09 20:20:00 I just wanted MultipartEntityBuilder Oct 09 20:20:35 since it allows uploading files to be done without having to implement the protocol oneself Oct 09 20:22:37 trying the exclude, first Oct 09 20:23:19 pfn, Well.. I developed an app. and it installed fine via adb (device connected through usb) through USB).. but using the apk I got from 'export signed apk..'.. it refuses to even install.. Oct 09 20:23:37 purezen, java7 needs additional flags to jarsigner correctly Oct 09 20:23:42 it's not an openjdk issue, per se Oct 09 20:24:06 pfn, Oh..! So what should I do..? Oct 09 20:24:19 google android java7 jarsigner Oct 09 20:24:27 apply those flags, live happily ever after Oct 09 20:25:22 pfn, well.. where..? Oct 09 20:25:38 wherever you jarsigner Oct 09 20:25:45 and if you use an IDE to publish a release build, shame on you Oct 09 20:26:55 pfn, Oh.. get it.. Didn't know if I shalln't use Eclipse for that.. Oct 09 20:27:12 pfn, though, I would love to ask why..? Oct 09 20:28:01 because IDE builds are not automated, and not repeatable Oct 09 20:28:02 setColor( int ) ; <- what is the 32 bit int value for red? Oct 09 20:28:09 0xffff0000 Oct 09 20:28:14 aarrggbb Oct 09 20:28:58 pfn, Thanks so much..:-) Shall see to it.. Oct 09 20:35:47 umm, dont secColor(aarrggbb) Oct 09 20:36:01 setColor(resources.getColor(R.color.mycolorid)) Oct 09 20:36:21 it expects a resource id, not a color value Oct 09 20:36:51 birbeck: er, your snippet there does the opposite of what you just suggested Oct 09 20:37:00 your snippet feeds it a color, not a resource ID Oct 09 20:37:11 err :) Oct 09 20:37:21 setColor(android.R.color.RED) :-) Oct 09 20:38:34 http://stackoverflow.com/questions/4602902/how-to-set-text-color-of-textview-in-code Oct 09 20:38:42 it actually is taking a Color Oct 09 20:39:47 setTextColor(Color.RED), setTextColor(getResources().getColor(android.R.color.RED)), setTextColor(Color.parseColor('#ff0000')) Oct 09 20:41:35 well, I tried just excluding httpclient - it either pushed the error further down the road Oct 09 20:41:41 or took out the foundation to where I was Oct 09 20:41:43 http://hastebin.com/yejavubiyi.m < new errors Oct 09 20:41:47 You missed Color.parseColor("red") Oct 09 20:42:11 I'll try some more google Oct 09 20:44:34 ok, way to many ways to set color to red Oct 09 20:48:15 There's just enough Oct 09 20:50:06 SimonVT do you use gradle for most of your stuff ? Oct 09 20:50:34 Anything I'm actively working on Oct 09 20:50:52 ;) Oct 09 20:51:37 is it possible to change an ImageView's alpha on pressed? or do you have to use a different drawable? Oct 09 20:51:55 gnu make 4.0 O.O, thats like bash 5.0 Oct 09 20:54:57 yes i managed to toll a ball over the screen with the sensors!!!! now just have to add soem filtering and speed depending on how much tilt Oct 09 20:55:52 I guess youd use some sort of HIGH-PASS filter to remove small changes right? Oct 09 20:56:11 low pass filter Oct 09 20:57:07 what's the least painful way you guys could suggest for http multipart uploads (file + api data) Oct 09 20:58:03 tnzr: have you heard of ? Oct 09 20:58:20 you can define a drawable xml with selectors to define different states Oct 09 20:58:44 though wait... doesn't necessarily help you Oct 09 21:00:06 oh, tnzr: http://stackoverflow.com/questions/9087676/how-can-i-change-the-transparency-alpha-of-a-view-on-pre-sdk-11-on-android Oct 09 21:06:52 is it possible to any way set listeners in a staitc method? Oct 09 21:07:14 playstop.setOnClickListener(new playstopListener()); <- how do i do in a static method? Oct 09 21:09:34 make playstopListener static Oct 09 21:10:21 so is the apache commons stuff out of reach if I want to keep my project free of jar files? Oct 09 21:10:33 (ie, using just gradle to handle dependencies) Oct 09 21:10:36 apache commons stuff is decent Oct 09 21:10:47 I'm still looking for how jarjar works Oct 09 21:10:57 what's the matter with jar files? Oct 09 21:11:08 nseidm1: i can do that implementing a View.onClickListener? Oct 09 21:11:25 it'd be nice to keep all dependencies in gradle Oct 09 21:11:30 using the maven repos Oct 09 21:12:17 acidjazz: sure, just don't reference anything outside of the onClickListener and you'll be fine Oct 09 21:12:48 hence you'll have no context Oct 09 21:13:33 there is definitely some cool stuff in apache commons, like commons-pool - thats a kick ass library Oct 09 21:20:18 apache commons is ok but imo quickly becoming outdated Oct 09 21:21:40 woop, commons is fine, just make sure to exclude transitives on stuff that conflicts Oct 09 21:21:41 pretty easy Oct 09 21:21:49 Hey guys, any idea on why MenuItem.setActionView(null) would cause my refresh button to disapear entirely? Everywhere I read they setActionView(progressBarLayout) then setActionView(null), but in my case it just deletes the button entirely :/ Oct 09 21:22:13 read the documentation on setItemView? Oct 09 21:22:18 setActionView Oct 09 21:24:45 actually Oct 09 21:24:55 dang - I forgot to do a clean after doing the exclude on httpclient Oct 09 21:27:57 pfn, I've read it many times, it's not really clear. And actually it works once, but never twice. setActionView(myProgressBar) sets it to a progressbar, setActionView(null) puts it back to refresh icon. Doing the cycle again fails and the icon disappears entirely Oct 09 21:28:43 Max-P, read the source then Oct 09 21:30:31 weird Oct 09 21:30:45 ok... using the latest jar vs the latest from gradle is now the same, so at least there's that Oct 09 21:30:56 but now I've got this error - http://hastebin.com/yejavubiyi.m Oct 09 21:31:04 I'll try decrementing versions in gradle slowly Oct 09 21:33:02 Out of curiosity now that I read you woop. Can gradle be used without androidstudio? Oct 09 21:33:22 DwordKnight sure, if you want to use vim :) Oct 09 21:33:28 yes - I use it with the command line Oct 09 21:33:37 or at least, I use the gradle wrapper from the command line at times Oct 09 21:33:56 like... when I want to sign a build to throw up for testing or install said signed builds to all the devices I have plugged in Oct 09 21:35:01 g00s I want to do just that :D to be able to experiment with gradle builds but also to use it with any editor I want Oct 09 21:35:30 woop great :) Oct 09 21:35:32 another possible use case - having a server that actually pulls code and makes signed apk's for you automagically Oct 09 21:43:31 hi guys, what would be the best way to dynamically add a icon to the top right of on of your views? Oct 09 21:44:05 I've only done things through xml and I don't know how to do it programitcally Oct 09 21:48:30 navetz: dunno what you are trying to do but why not add it in xml and show/hide it dynamically? Oct 09 21:49:18 mmarklar: this view comes from a fragment in a viewpager. The majority of the fragments will not have this icon, only the first couple Oct 09 21:49:31 "Top BlackBerry 10 developers quit to form a new design company" , things are looking so bad for those guys :( Oct 09 21:50:27 lol Oct 09 21:50:33 poor blackberry Oct 09 21:50:52 navetz: you can get the parent viewgroup and call addView/removeView with the layout parameters you want Oct 09 21:51:08 mmarklar: alright thanks ill give it a shot Oct 09 21:51:18 np Oct 09 21:56:53 no more jobs with RIM Oct 09 22:00:36 still haven't found a way to get this MultipartEntityBuilder class to work :\ Oct 09 22:00:53 reminds me of the time I tried using the apache commons classes for doing sha hashes Oct 09 22:01:11 and gave up and went with something uglier instead Oct 09 22:02:14 hi Oct 09 22:02:30 do you guys think that an adroid app is a good hackathon project? Oct 09 22:03:30 what is hackathon? Oct 09 22:03:43 shaun413: sure Oct 09 22:04:02 ok Oct 09 22:04:14 hmm Oct 09 22:04:25 can you think of anything intersting to do with it perhaps? Oct 09 22:04:48 well thats part of the fun of a hackathon Oct 09 22:05:05 i guess Oct 09 22:05:05 coming up with a novel idea and attempting to implement it in the time alloted Oct 09 22:05:09 Im not that good though Oct 09 22:05:19 how many ppl will you be working with? Oct 09 22:05:41 well Oct 09 22:05:46 maybe 2 others Oct 09 22:05:49 less experineced.... Oct 09 22:06:29 try to think of something that's reasonable in scope for 2-3 ppl with you guys' skill level(s)? Probably not that easy to do but if you bounce ideas around for a week or so prior, you'll probably think of something Oct 09 22:06:37 does android always use xml? Oct 09 22:06:44 looking at these tutorials, it seems too Oct 09 22:06:46 to Oct 09 22:06:54 and all the hackathons i've participated in, the end result was just the beginning, and those apps grew into nice, polished finished products Oct 09 22:07:14 see if you can get the main core of the idea implemented, then spend time after adding stuff, polishing, etc Oct 09 22:07:21 android uses xml for it's layout files Oct 09 22:07:33 and the Manifest and some other things like values (colors, strings, dimensions, etc) Oct 09 22:07:35 ahh Oct 09 22:07:43 do I really need to Know xml? Oct 09 22:08:06 there's really not that much to know.. eclipse or android studio will tell you when you've effed something up Oct 09 22:08:12 ok Oct 09 22:08:52 start simple, take baby steps at first Oct 09 22:08:58 it will become clear faster than you think Oct 09 22:09:16 and, worst-case scenario, use the graphical layout tool :) Oct 09 22:09:57 ok Oct 09 22:17:31 how can I get started? Oct 09 22:19:17 anyone know why eclipse is giving me this error: Error executing aidl: Return code 1 Oct 09 22:20:19 posted my question on SO - http://stackoverflow.com/questions/19283691/problems-including-apache-httpcomponents-in-android-gradle-project Oct 09 22:20:20 I need a developer name :/ Oct 09 22:21:36 anthaas Oct 09 22:21:40 Yeah? Oct 09 22:22:01 Anthaas: [nsfw: language] http://www.youtube.com/watch?v=TwJX3PrI4pc Oct 09 22:22:49 thats your name Oct 09 22:22:59 Might go for Bitch Pudding....haha Oct 09 22:23:03 oh Oct 09 22:23:20 Or the other one.... Oct 09 22:23:24 ok Oct 09 22:23:30 With the "DU DUH DUH DUUUUHHHH" too Oct 09 22:23:34 where can I start leanring how to make android apps? Oct 09 22:23:54 I could name it the same name as the project Im about to start Oct 09 22:24:06 But thats surely not a good idea if I want to develop other applications under the same name? Oct 09 22:24:30 I have F5. as the dev. name atm, but that is a bit naff Oct 09 22:25:43 frequently in eclipse I will hit the "run" button and absolutely nothing happens. What's the deal with that? Oct 09 22:25:52 keep in mind that you could always change the dev name and release with a different packagename Oct 09 22:26:07 eydaimon: nothing, apparently. Oct 09 22:26:18 woop: it is when I expect something to happen Oct 09 22:26:51 Do I have to use the support library to have a PagerAdapter Oct 09 22:26:52 eydaimon: I'd check whatever logs eclipse creates Oct 09 22:27:06 Oops, forgot the question mark. Oct 09 22:27:06 not necessarily Oct 09 22:27:35 I personally do because I'm trying to target 2.2+ Oct 09 22:28:08 woop: then I wait a little, try a few more times, and suddenly it will work. So this is not a commn issue? Oct 09 22:28:31 not sure; I'm on Android Studio, currently Oct 09 22:28:46 woop: But, if we're not targetting 2.2 anymore - how do we do to skip the support lib? Oct 09 22:29:07 refactoring, I guess Oct 09 22:29:15 or by having two side-by-side sets of classes and some clever code Oct 09 22:29:46 woop: Because, I reckon I won't be finding the PagerAdapter in the regular SDK? Oct 09 22:30:01 more because you can't quite use them interchangably Oct 09 22:30:49 woop: The Fragment vs support.v4.app.Fragment is a bit yowza Oct 09 22:31:18 yeah - different activities, different fragment classes to type hint, etc Oct 09 22:31:34 I cant currently get to grips with Android Studio. The shortcuts are too dissimilar. Oct 09 22:31:46 Anthaas: You can swap to the Eclipse ones in the Settings Oct 09 22:31:52 Really?!?! Oct 09 22:32:03 Where? lol Oct 09 22:32:05 Anthaas: Well, a lot of the key bindings are applicable Oct 09 22:32:06 Hang on Oct 09 22:33:22 Anthaas: http://puu.sh/4M0fA.png Oct 09 22:33:56 Where is "Settings"? haha Oct 09 22:34:02 Im not used to AS yet :/ Oct 09 22:34:57 Anthaas: File > *second section* Oct 09 22:35:08 Sweet, cheers Oct 09 22:35:35 Anthaas: At first I was a bit... against AS, but it's grown quite a bit on me. Now I don't open Eclipse anymore Oct 09 22:35:54 I think that is kind of how I am. Except Ive not used it enough to let it grow on me. Oct 09 22:36:28 Anthaas: You'll get there soon enough. It's only getting better and better. ;-) Oct 09 22:36:46 it's kinda amusing that the IDE doesn't just grow on you in the sense that you get to like it more Oct 09 22:36:58 but it's also growing on you in the sense that it's totally not mature, still Oct 09 22:37:33 Yeah - I hear about the features being added to AS and Im like "That is so cool..." Oct 09 22:37:45 I'm mostly just happy to use not-eclipse Oct 09 22:37:45 Like the Layout Preview Text Oct 09 22:37:51 I dont mind Eclipse see Oct 09 22:37:56 I don't get the issues people have with it. Oct 09 22:38:04 I've used it for... too many years. Oct 09 22:38:11 that, and R.java stopped disappearing Oct 09 22:38:21 when I started using AS, that is Oct 09 22:38:24 Ive had many-a-Rfile issue. Oct 09 22:38:43 layout preview text? Oct 09 22:39:05 Didnt word it very well Oct 09 22:39:19 word it again then Oct 09 22:39:19 But lets your textviews etc hold a String for preview purposes only Oct 09 22:39:25 When you load the app, it isn't there. Oct 09 22:39:36 and I was - give me a chance! lol Oct 09 22:40:06 there's similar thing for fragments too, which is nice Oct 09 22:40:18 Thats going to be useful Oct 09 22:40:33 Ive done a fair bit of development for a company which completely ignored normal design guidelines Oct 09 22:40:34 Is that guy who i was talking with yesterday about ui design on? Oct 09 22:40:46 This project is one Im undertaking on my own - and its going to look glorious Oct 09 22:41:00 Anthaas, I hate those companies, most are like that it seems Oct 09 22:41:09 g00s: I got some analytics! Oct 09 22:41:14 I had to spend my entire placement year there at Uni. Oct 09 22:41:25 Zharf: Which one is the one for fragments? Oct 09 22:41:31 It was absolutely awful - they followed no common software engineering processes Oct 09 22:41:34 Neglected documentation Oct 09 22:41:40 Gave ridiculous deadlines Oct 09 22:41:46 and always tried to screw over their clients Oct 09 22:41:59 So yeah, this is going to be my attempt to undo all that I did before :-) Oct 09 22:42:22 kakazza, in IDEA 13 at least it asks which fragment to display for design purposes... frankly I never used AS Oct 09 22:42:38 What if you are planning on showing 2 fragments? Oct 09 22:42:46 Hello folks, I'm trying to use android.speech.tts.TextToSpeech in a robust way but Google speech synthesis engine is making it hard... When the device is set with my language, portuguese, and connected to the internet, it is able to synthetize (remotely, I suppose). However, when the device is unconnected, TextToSpeech still reports that it supports portuguese, but now only silence comes out. This only happens in my Samsung but not my Nexus 7, Oct 09 22:42:50 well, dynamically anyway Oct 09 22:43:04 i.e. 1 on handset, 2 on tablet Oct 09 22:43:29 btw, according to where I worked, a tablet app is a handset app with bigger graphics lol Oct 09 22:44:14 Anthaas thats a good joke lol Oct 09 22:44:51 Looked quite stupid when you have MASSIVE amounts of empty space, and buttons which stretch along the entire width of the screen with "OK" in the middle. Oct 09 22:45:21 that's what my app looks like right now because I never bothered to design for tablets ;) Oct 09 22:45:39 Yeah, thats fine. Because you havent designed for tablets. Oct 09 22:45:47 But the point is, this is their design for tablets.... lol Oct 09 22:45:52 http://eclipser.xmms2.org/xmmsclient-android/device-2013-04-22-143638.png I tried it once Oct 09 22:46:34 You could easily make that work Oct 09 22:46:41 Have a Master/Detail layout Oct 09 22:46:48 List all the songs in the playlist on the left Oct 09 22:46:52 I could, but I'm not really interested in tablets at the moment Oct 09 22:46:53 and have the right update with the details Oct 09 22:46:57 Ahhh fair enough Oct 09 22:47:00 I'll never ever buy one myself Oct 09 22:47:05 useless junk Oct 09 22:47:48 but for tablet I'd just put more views visible at the same time... Oct 09 22:49:25 For my final year project at Uni, I'll need to justify why I should use AS over Eclipse - any ideas on where to start? Oct 09 22:49:44 Anthaas: from what I understand, those practices you bemoan are more common than not Oct 09 22:50:02 The main point being raised by a coursemate who is doing it in Eclipse is: "Im not using a beta program on my final year project" Oct 09 22:50:29 Anthaas, start with eclipse is shit Oct 09 22:50:38 zharf++ Oct 09 22:50:46 I'd need to justify that statement though Oct 09 22:50:54 an AS is built on intelliJ which is awesomness Oct 09 22:51:07 how about this one: the final binaries produced are the same Oct 09 22:51:16 god I am not understanding these android tutorials on the wensite Oct 09 22:51:20 any other options? Oct 09 22:51:25 it's not like the IDE is going to crash and erase the project or something Oct 09 22:51:45 intellij has superior refactoring, is much faster (in my experience) and provides really nice shortcuts (like creating string resources from hardcoded strings in xml and java, etc) Oct 09 22:51:46 Anyone having issues with the Nexus 10 or devices in general disconnecting the moment you try and say, run logcat? Oct 09 22:51:50 though with enough dilligence, you can use AS while the coursemate uses Eclpise Oct 09 22:52:01 intellij has no CLEAN button... Oct 09 22:52:02 Anthaas getting grip with a technology in its early stages is better, and knowing that google seems to want to replace eclipse adt with it, seems more than reasonable to be updated Oct 09 22:52:03 I've never used AS though... Oct 09 22:52:05 any advice on better tutorials? Oct 09 22:52:05 Works fine on my nexus 7, my nexus 10 disconnects immediatlely Oct 09 22:52:18 capella: best part of IJ, huh? ;) Oct 09 22:52:20 Anthaas: I find it weird you have to justify your IDE choice. It should be about the project, not the tools you use. (Although I'm sure you have no control over that aspect of it) Oct 09 22:52:51 JesusFreke: We have to justify EVERY decision we make from the IDE, to the project, the colour scheme, everything. Oct 09 22:53:04 bankai_ yah - that was a "good thing" Oct 09 22:53:07 JesusFreke: Software used was specifically noted as one of those examples. Oct 09 22:53:44 Anthaas: you should add in a snarky justification for which keyboard you choose to use to type the code :) Oct 09 22:53:48 capella, what's clean button? Oct 09 22:53:49 Anthaas, AS is designed for Android developers, so one expects it to provide better support for anything an Android developer might expect, as well as more tools to ease and accelerate the development and deployment of an app, another thing is that Google can have better control of the ecosystem, and also provide IDE updates more frequently, keeping everyone up to date. Oct 09 22:54:13 dont know - something heard Eclipses forces it users to find Oct 09 22:54:13 AnimeCYC: over TCP or USB ? Oct 09 22:54:27 Anthaas, etc, etc, think a little bit about what else can grow from what I've said Oct 09 22:54:36 bankai_: USB Oct 09 22:54:45 xsr: Yeah - that was the avenue I was planning on going down to justify it. Oct 09 22:55:00 I think the CLEAN button is like a short cut "turn off eclipse and turn it back on again" button Oct 09 22:55:09 Thanks for the points guys Oct 09 22:55:36 bankai_: Quiet literally, the moment i try to do any type of debugging it disconnects Oct 09 22:56:16 AnimeCYC: i have issues with my samsung device, but that's coz of TCP ( and it's samsung lol ). never used a nexus 10, but i hear nothing but complaints from my boss about them :( Oct 09 22:56:18 For testing - something I realise I should learn more about - how would you go about doing this? Using Monkey? JUnit tests? Oct 09 22:56:57 bankai_: Havent tried connecting via tcp, is there a doc i can look at ? Oct 09 22:57:06 you gotta root to do that Oct 09 22:57:13 Anthaas, Monkey is interesting, but nothing beats giving the device to your friends and let them humiliate your app :p Oct 09 22:57:33 xsr: I will do both then :D God knows there are a few that'd enjoy that. Oct 09 23:00:32 When I am designing a background (at MDPI by default, and then scale up, right?) what size in pixels should I create the file at? Oct 09 23:02:38 Im so bad at graphic design :/ Oct 09 23:02:38 i usually pick xxhdpi Oct 09 23:02:40 and scale down Oct 09 23:02:43 and then scale down? Oct 09 23:02:44 ahhh ok Oct 09 23:02:46 makes sense Oct 09 23:02:58 What size in pixels is xxhdpi? Oct 09 23:03:13 Guys, when I use an Alarm to schedule some work, that Alarm has anything to do with the lifecycle of my app? Oct 09 23:04:46 http://developer.android.com/design/style/iconography.html Oct 09 23:05:09 Anthaas, recommend you to aim to xxxhdpi at least... we never know what's gonna happen tomorrow... Oct 09 23:05:26 DwordKnight, iirc you give alarms an intent... it'll start the app if it's not running Oct 09 23:05:43 Good idea. Oct 09 23:06:01 Anthaas, xxhdpi is 3 times a pixel Oct 09 23:06:12 Anthaas, for each side Oct 09 23:06:37 xsr: I dont understand what that means Oct 09 23:06:48 Oh, you mean in terms of scaling? Oct 09 23:06:54 Where MDPI = 1x Oct 09 23:06:58 XXHDPI = 3x Oct 09 23:07:04 HDPI = 1.5x etc? Oct 09 23:07:23 Zharf even if the intent is intended to be caught by a broadcastreceiver? Oct 09 23:07:39 Anthaas: Click on desmin88's link Oct 09 23:07:45 Anthaas, yeah... mdpi 160ppi, hdpi 240, xhdpi 320, xxhdpi 480, xxxhdpi 640, ldpi 120 Oct 09 23:07:51 kakazza: Yeah Im on it already Oct 09 23:08:38 xsr: Yeah, what I mean was, say I am using my favourite graphics software, when I create a canvas, what size should the canvas be? 640 for xxxhdpi? Oct 09 23:08:56 ohh ok, I think youre right Zharf, the intent gets resolved, not caught. Oct 09 23:08:58 Anthaas, it depeds where you wanna fit your canvas in the final app... Oct 09 23:09:25 xsr: This will be a background that is constant Oct 09 23:10:01 But then I'll have to declare it in the manifest I guess. Actually I was thinking in registering it at runtime by code Oct 09 23:10:46 Anthaas, okay, say you wanna make a background for a 16:9 phone... say it's a 720x1280 one (xhdpi) Oct 09 23:11:55 I've got a Gradle project with an Android App and a Java library. The Java library has commons-io as a dependency, but the commons-io stuff isn't being packaged with the APK, so I'm getting ClassNotFoundExceptions. Any idea why? Oct 09 23:12:02 Anyway, do you guys think is a good idea to use an alarm to schedule work in long time frames? Like to do something each 3 days or so Oct 09 23:12:11 Just to be clear, 720x1280 does not mean it's xhdpi. xsr is, hopefully, just saying in this case, it's 720x1280 for the sake of the argument. Oct 09 23:12:20 Anthaas, yeah, because it's a background that's supposed to cover the whole screen, then the 720x1280 canvas is the one Oct 09 23:12:32 Ahhh I see Oct 09 23:13:01 Anthaas but if you want an image that should cover half of the screen width in any phone, then you must start playing with the densities Oct 09 23:13:11 Oh god... hahaha Oct 09 23:13:33 xsr: Thank you so much for the help. Oct 09 23:14:09 for instance, in the 720x1280 phone, an image that covers half the screen width can be 360x360 Oct 09 23:14:38 but if you try the same image in a 1080x1920 phone, it will be to small and will actually only cover 1/3 of the screen width Oct 09 23:15:26 And as my app will go on 7 inch tablets, its a good idea to aim for a 7inch size? Oct 09 23:15:30 the canvas must be different for this phone, not because of the resolution, but the density, which is now xxhdpi instead of xhppi (assuming the screens have the same physical dimensions) Oct 09 23:16:51 360x360 image was for xhdpi (2x), the xxhdpi one will be (3/2 * 360 => 540x540), because 3 is the density of the xxhdpi and 2 ix the xhdpi one, so the ratio is 3/2. Oct 09 23:17:40 kakazza, yes, I said "for instance" somewhere some lines above Oct 09 23:18:27 I hate all the different density things... the APKs can get so big so fast Oct 09 23:18:57 kakazza, Anthaas, also I said to assume both phones had the same physical screen dimensions, which might also not be true, because the devices might be normal,large,xlarge, but for the sake of argument we can also assume everything is normal here Oct 09 23:19:03 Yeah, Im keeping the graphics count down if I can for that reason Oct 09 23:19:38 Anthaas, just create mega graphics, or better, scalable graphics, and then export depending on your needs Oct 09 23:20:21 I will create many graphics for different DPI levels. The application will be available on the store for all, was just wondering what sizes to create them at. Now I realise the question isnt that simple... lol Oct 09 23:21:40 whats up my n-words... so i got this view/etc that im hiding and displaying via setVsibility and i want to animate its action.. how i do? Oct 09 23:22:04 myView.animate() ? Oct 09 23:22:58 Anthaas, I usually imagine the dimensions my images should have at MDPI (because it's 1:1) and then just multiple for each density. Oct 09 23:23:36 Anthaas: you can tone down the detail here Oct 09 23:23:47 Anthaas, or at hdpi but that's only because my main phone is hdpi, so I can have a better perception. Oct 09 23:23:58 Makes sense, but thats my problem - I dont know what dimensions a full screen image should have at MDPI? lol Oct 09 23:25:23 Also, what is the AS (Eclipse Settings) equivalent of Eclipses alt+shift+s ? Oct 09 23:25:51 what's that do ? Oct 09 23:26:28 Bring up a contexual menu with "Override/Implement Methods, Generate Getters/Setters" etc Oct 09 23:26:54 alt+insert Oct 09 23:26:56 probably Oct 09 23:27:15 Thats the one Oct 09 23:27:22 I was promised Eclipse settings by the settings page! Oct 09 23:27:35 alt and insert requires 2 hands, I dont like :( Oct 09 23:27:46 yeah well, there's some things that are just better the way they are in idea ;) Oct 09 23:27:52 you can change it, I'm sure Oct 09 23:28:03 alt shift s is so much easier than alt ins Oct 09 23:28:35 where can i find a sweet sample of animatinog a view off the screen Oct 09 23:29:03 Anthaas, at MDPI a fullscreen image may have many dimensions too, it's different being a phone and being a tablet for example Oct 09 23:29:16 Bugger hahaha Oct 09 23:31:29 Anthaas, in settings under keymap, type 'generate' in the search box and you can change it Oct 09 23:31:43 Yeah - just found it. Thanks Oct 09 23:31:53 Hi all Oct 09 23:32:04 Is there a way to call getActivity() from the Application class? Oct 09 23:32:12 it'll also tell you if it conflicts with something Oct 09 23:32:20 which is likely in this case, I think Oct 09 23:32:23 Yeah, removed them. Oct 09 23:32:31 It brings up exactly the same as a right click. Oct 09 23:33:34 Hey guys, having a problem with the ActionBar menu items. I have a refresh button that turns into an indeterminate ProgressBar spinner when clicked using setActionView() like everyone seems to do on every damn blog in the first 5 pages of Google. But when I setActionView(null) the second time, the button completely disappears, no spinner, no refresh icon. What can I be doing wrong? Oct 09 23:33:58 Anthaas, you can also override stuff by just typing the first couple of letters of a method name and it'll give you options to choose from Oct 09 23:34:52 Anthaas, and generate getter/setter for a variable by pressing alt+enter when it's under the input cursor (and do a lot of other things too with alt+enter in various contexts) Oct 09 23:35:34 when I have a collection I want to iterate I just type its name, press alt enter and select iterate -.- Oct 09 23:35:37 I'm lazy like that Oct 09 23:35:50 I want to programmatically trigger onBackPressed() from the Application class Oct 09 23:35:53 hmmm sounds quite cool Oct 09 23:35:56 Ill check that out now Oct 09 23:36:37 code generation and refactoring in IDEA are just awesome Oct 09 23:37:24 'refactor this' shortcut is also one of my favourites Oct 09 23:37:36 Wow, that is cool Oct 09 23:37:42 Just tried the iterate part lol Oct 09 23:37:52 savant the application class doesn't know anything about you activity implementation, so I'll say its the other way around. You need to pass the activity to your application class Oct 09 23:38:09 hmm okay Oct 09 23:38:36 Anthaas, also in almost any context where there's some list of names you can select you can just start typing the name you're looking for and it'll search and highlight them for you and up/down keys jump between matches Oct 09 23:39:02 Anthaas, like when overriding a method and there's a lot of methods in the list, it can be useful to type the name Oct 09 23:39:29 oh, that also works in the alt+insert menu (and probably a lot of other places) Oct 09 23:39:43 I usually just press alt+insert and type ove to override stuff Oct 09 23:39:46 Soooo coool Oct 09 23:39:54 DwordKnight: thanks I guess. Was hoping to not have to do that, but oh well. Oct 09 23:40:20 Anthaas, these little things makes the IDE so fast to use :) Oct 09 23:40:31 Anthaas, but it does take a little while to get used to Oct 09 23:40:33 Any more cool tips? Oct 09 23:40:49 Love the iterate one, and the quick insert of functions Oct 09 23:41:55 it's hard to think of tips when they're so common in my daily use that I don't really even think about them much Oct 09 23:41:58 -.- Oct 09 23:42:05 haha I know what you mean Oct 09 23:42:11 explore the refactor menu Oct 09 23:42:16 I love alt shift s for Eclipse thoguh Oct 09 23:42:23 Which keymap was that? Oct 09 23:42:36 generate Oct 09 23:42:49 oh, I mapped that to alt shift s Oct 09 23:42:57 yeah that's what I meant Oct 09 23:43:01 savant no problem, its the way its designed, it only knows common information about the app, not about the instances of the components you have in it. Oct 09 23:43:02 that's what you wanted to make to that -.- Oct 09 23:43:19 yeah Oct 09 23:43:24 DwordKnight: makes sense. Oct 09 23:43:39 im doing some geolocation of users and have the logic for that centralized in the Application class Oct 09 23:43:45 its becoming a mess Oct 09 23:43:56 i'll have to refactor it later Oct 09 23:43:56 Anthaas, in the menu bar there's "refactor", explore that one, it also displays what things are mapped to and you can search for them in the keymap settings if you want to change the mapping Oct 09 23:44:32 ahhh cool - cheers man - Im gonna learn a fair few of these during my project Oct 09 23:44:52 the bit I love most about AS is the layout stuff, seeing multiple screens, multiple languages etc Oct 09 23:45:47 yeah it's improved a lot Oct 09 23:46:02 what I don't like is the stupid rounded corners in the ADB logcat filter textbox Oct 09 23:46:06 it just feels out of place :p Oct 09 23:46:22 If thats the worst you can say about it after using it for a while, I guess they are doing something right :P Oct 09 23:48:54 Zharf i wonder if that is some SWT popping through from DDMS or something Oct 09 23:49:02 g00s, it probably is Oct 09 23:49:20 they'll probably fix it sooner or later Oct 09 23:49:58 Anthaas, oh, oh Oct 09 23:50:32 Anthaas, IDEA/AS can complete words based on seemingly random letters Oct 09 23:51:12 say for example in the layout xml editor, if you have a view in relativelayout for example, you can just type lab and you'll get android:layout_above="" Oct 09 23:51:16 yeah, seems to have a nice levenshtein edit distance filter Oct 09 23:51:19 and stuff like that Oct 09 23:51:20 Zharf: Explain? Also, how do I switch between getString(R.string.helloword) and "Hello, World!" ? Oct 09 23:51:35 Oh cool! :D Oct 09 23:52:05 as much fun as AS is, i dont recommend it for projects with deadlines unless you really know what you're doing ;) Oct 09 23:52:21 One of my favorite git-related features in IJ (I'm assuming it's there in AS too) is selecting several lines of text, and viewing the history of only the changes that affected those lines Oct 09 23:52:22 I have a project of 30 weeks... Oct 09 23:52:32 g00s: I agree Oct 09 23:52:37 deadline* Oct 09 23:52:46 but what about IDEA ? Oct 09 23:52:54 yeah, thats fine Oct 09 23:53:01 IDEA is fine, AS has problems with gradle I guess? Oct 09 23:53:15 I never tried IDEA yet Oct 09 23:53:17 IDEA 13 EAP has worked fine for me Oct 09 23:53:37 I feel too safe and lazy with eclipse Oct 09 23:53:58 Anthaas, how do you mean change between those two? Oct 09 23:54:12 Yeah - I love Eclipse. People hate me for saying that. Its so quick and easy to do things - just not great in terms of the cool things that AS can do Oct 09 23:54:20 Zharf: When looking at a .java class. Oct 09 23:54:21 don't fiddle around something might break ! Oct 09 23:54:51 Anthaas i like eclipse too ;) I'd be productive with either. i think too much hoopla is made about intellij Oct 09 23:55:18 but hopefully the competition will make eclipse stronger Oct 09 23:55:21 <^cheeky> hi, how would i achieve RequestWindow Feature) in a fragment ? Oct 09 23:55:24 I'll get around to IDEA some time Oct 09 23:55:30 I have personal reasons for hating eclipse Oct 09 23:55:44 but I don't impose them on others Oct 09 23:55:56 g00s: I hope to get to the point where I'd be particularly productive with AS, but with this project, if I start to think Im not being productive enough, I'll just copy paste the java class and xml files across to Eclipse and pick up from there. Oct 09 23:56:05 Anthaas, what do you want to do exactly Oct 09 23:56:30 Zharf: Apparently with AS, you can change from seeing the R.string.helloworld to "Hello, World!" Oct 09 23:56:34 I never copy paste Oct 09 23:56:45 Anthaas i would not use AS unless you need gradle Oct 09 23:57:00 if you don't need AS, but want intellij, use plain intellij Oct 09 23:57:03 g00s: I don't need gradle at all... Oct 09 23:57:06 ugh, need gradle Oct 09 23:57:14 yeah , use plain intellij or eclipse then Oct 09 23:57:18 g00s: I need it so little I dont even know wtf it is hahaha Oct 09 23:57:35 intellij idea 13 eap is closest to android studio right now Oct 09 23:57:38 I read from another screen and then I type it slowly while trying to ignore the autocomplete options Oct 09 23:57:49 to make it go into my brain Oct 09 23:58:19 One thing that would be good, would be an interactive graphical layout screen, so if you have a scroll view and things are off of the screen, you could drag the screen to see below it. Oct 09 23:58:20 anyone know of a good android dev tut? Im having trouble understanding the android.com ones Oct 09 23:58:23 Anthaas, visually seeing it but the code would still be the getString... thing? Oct 09 23:58:39 Anthaas, I know it does it in xml... not sure about code Oct 09 23:59:19 I should sleep Oct 09 23:59:33 Zharf: Let me reword. In Eclipse, if I am in a .java class, I can do, for example, String string = getString(R.string.helloworld); In AS, I can do the same, but I can also toggle so it says String string = getString("Hello, World!"); Oct 10 00:00:30 anyone? Oct 10 00:00:48 shaun413: on what ? Oct 10 00:00:53 shaun413: vigella is normally quite good Oct 10 00:00:54 Anthaas, I think it just shows whatever the string is set to in xml, no? it's a different colour string too? like dark greyish or something Oct 10 00:01:15 Zharf: Haha dont worry :D Oct 10 00:01:15 Anthaas, I can't verify right now... plus I'm getting too tired ... Oct 10 00:01:43 I just dont understnad all the intent stuff and some other things Oct 10 00:02:26 shaun413, maybe ask specific questions of things you don't understand and you might find them explained better Oct 10 00:02:37 well Oct 10 00:02:38 Idk Oct 10 00:02:42 Shaun Oct 10 00:02:58 When explaining intents and activities to people, I use this analogy Oct 10 00:03:04 Imagine a group of islands. Oct 10 00:03:09 ok Oct 10 00:03:14 We will call each island an activity Oct 10 00:03:37 If I want to go from one island (activity) to another, I need a bridge of some sort. We will call these bridges Intents Oct 10 00:03:58 Each intent needs to know the activity which I want to get to Oct 10 00:04:39 Hense the line Intent myIntent = new Intent(myContext, MyNewActivity.class); Oct 10 00:04:49 The context is something that you can read up on Oct 10 00:04:52 ok Oct 10 00:04:58 If I want to go across the bridge with some information Oct 10 00:05:06 i see Oct 10 00:05:16 if I want to take information across Oct 10 00:05:32 I can tie a bucket with a pulley system to the bridge Oct 10 00:05:38 I put the information in the bucket Oct 10 00:05:40 cross the bridge Oct 10 00:05:44 and get the bucket the other side Oct 10 00:05:56 So into the intent, we add extras (these go into the bucket) Oct 10 00:06:10 then I cross the bridge (launch the new activity) Oct 10 00:06:16 ok Oct 10 00:06:19 then I can get the bridge, and then get the bucket from the bridge Oct 10 00:06:26 getIntent().getExtras() Oct 10 00:06:56 hahaha this is the best explanation ever! Oct 10 00:07:04 I see Oct 10 00:07:14 bankai_: I made it up when someone else I know couldnt understand them - quite proud of it really Oct 10 00:07:41 bankai_, is it? it feels weird, though it might be that all this stuff just seemed obvious to me from the beginning Oct 10 00:07:47 shaun413: Make sense now? Oct 10 00:07:55 i'm just wondering how filters are going to fit into this analogy Oct 10 00:08:36 bankai_: Can be done a number of ways, for example Customs Offices hhahaha Oct 10 00:09:13 I would've gone with a post office analogy probably Oct 10 00:09:24 Anthaas: The other one I used was an airport, but the bridge/island one seems more obvious to people Oct 10 00:09:35 Plus, by the time they get to filters, they'd understand the process enough with analogy Oct 10 00:09:38 sort of Anthaas Oct 10 00:09:49 shaun413: What don't you understand? Oct 10 00:09:51 I just dont understna d the tutorial in general Oct 10 00:09:58 shaun413: Send me the tutorial link Oct 10 00:10:01 which part of it Oct 10 00:10:02 its ok, I am pretty stupid Oct 10 00:10:10 http://developer.android.com/training/basics/firstapp/building-ui.html Oct 10 00:10:40 im just trying to undertand it Oct 10 00:10:59 and im having issues getting some of it to work Oct 10 00:11:03 Yeah - the android developer tutorials aren't as simplistic as they could be, especially at that level. Oct 10 00:11:14 shaun413: you need to get that there was a need for programs/activities to be able to be asked to opened by other programs with parameters Oct 10 00:11:18 its not recognizing my strings, when they are in the strings.xml Oct 10 00:11:30 Copy me one string that is failing in xml Oct 10 00:11:32 Anthaas, oh right, I'm not sure how fancy this feature is but when you give something an onClick in xml you can alt+enter to automatically insert the method in the related activity Oct 10 00:12:51 Zharf: Thats pretty cool! Oct 10 00:13:05 Zharf: Loving the uses of alt and enter hahaha Oct 10 00:13:13 shaun413: and the opening program can expect return parameters back, input output between components while calling each other Oct 10 00:13:17 yeah, it has a lot of uses Oct 10 00:13:21 hmm Oct 10 00:13:31 shaun413: Do you have one of the failing strings to hand? Oct 10 00:13:39 no Oct 10 00:13:43 I dont :( Oct 10 00:13:51 should be of the format Hello, World! Oct 10 00:13:54 I deleted it because it didnt work Oct 10 00:13:57 yes Oct 10 00:13:58 Anthaas, whenever there's text in red or with a yellowish background you can be almost sure to find some useful refactorings in alt+enter Oct 10 00:14:00 that is what it is Oct 10 00:14:28 shaun413: Then in java call String string = getString(R.string.helloworld); Oct 10 00:14:37 yes Oct 10 00:14:39 and it doesnt work Oct 10 00:14:50 shaun413: You have a red underline anywhere? Oct 10 00:14:55 no im trying to make it appear on a button Oct 10 00:15:02 well, I'm off, good night Oct 10 00:15:06 shaun413: Ok so you've gotten the button by its ID? Oct 10 00:15:08 Cya, Zharf Oct 10 00:15:12 android:text="@string/button_send" Oct 10 00:15:18 doenst work Oct 10 00:15:22 and I have Oct 10 00:15:30 Send Oct 10 00:15:45 hey guys, how do you access a fragment view after it's been created? Oct 10 00:16:52 Are there any errors anywhere? Oct 10 00:16:57 Red underlines or Red Xs? Oct 10 00:17:04 yes both Oct 10 00:17:09 Saying what? Oct 10 00:17:30 no resource found that matches the given name Oct 10 00:17:42 What about in the strings.xml? Oct 10 00:17:52 fine Oct 10 00:18:04 You using Eclipse or AS? Oct 10 00:18:20 eclipse Oct 10 00:18:30 Click Project > Clean Oct 10 00:18:31 at the top Oct 10 00:18:38 and make sure the box to automatically rebuild is clicked Oct 10 00:18:39 then click ok Oct 10 00:19:02 didnt do anything Oct 10 00:19:45 ctrl shift s? Oct 10 00:20:30 what does tat do? Oct 10 00:20:35 did it fix? Oct 10 00:20:39 sort of Oct 10 00:20:45 lol it saves all edited files Oct 10 00:21:29 Couldn't resolve resource @string/edit_message Oct 10 00:21:30 Couldn't resolve resource @string/button_send Oct 10 00:21:31 Basically, you edited the strings file so that a new string was in there, but didnt save the change. So when you went to set the string on the button, the string didnt exist in the version of the strings file it could view Oct 10 00:21:39 hmmm Oct 10 00:21:46 Do you have edit_message string to hand? Oct 10 00:21:54 yes Oct 10 00:22:03 Enter a Message Oct 10 00:22:46 this is odd :/ Oct 10 00:22:52 yes Oct 10 00:23:17 can you put pastebins up of your java file, xml layout file, and strings file for me? Oct 10 00:23:24 easier when I can see everything lol Oct 10 00:23:26 ok Oct 10 00:23:28 well Oct 10 00:23:32 java file does nothing Oct 10 00:23:37 so just the xmls Oct 10 00:23:42 It does Oct 10 00:23:51 all 3 please :D Oct 10 00:23:56 brb Oct 10 00:24:28 http://pastebin.com/0nAdTLu8 Oct 10 00:28:19 Anybody care to take a look at this? http://goo.gl/tuyk6o Oct 10 00:31:24 Hmm, there is nothing wrong with those Shaun Oct 10 00:31:58 On the right hand side, on your file list, what files have a red X on them? Oct 10 00:33:50 sorry for a repeat question - has someone here managed to compile/run libsodium using the ndk? Would be great if you have working configurations/etc - the default scripts on github don't seem to be correct Oct 10 00:33:59 none Oct 10 00:34:43 Ahh, in that case can you copy me your manifest file? Oct 10 00:34:53 Also, do you have a file in any of the folders called "R.java"? Oct 10 00:35:02 whats that? Oct 10 00:35:46 Its an automatically generated (DO NOT TOUCH IT) file which manages your resources Oct 10 00:35:53 ok Oct 10 00:35:53 the manifest is the apps config file Oct 10 00:38:02 Anyone know how to find the source for a given revision of the support library? Oct 10 00:39:00 RyanM: isn't it present in the standard sources? It seems to be present in my android-17 source dist at least. Oct 10 00:39:34 ie - I just add the source package from the android package manager tool and looks like it's there. Oct 10 00:39:46 RyanM i would think you need to get it from repo Oct 10 00:43:42 g00s / kbs : I have the sources checked out, but I don't see tags for the individual versions Oct 10 00:43:54 well, there's android-sdk-support_r11 Oct 10 00:43:56 but that's it Oct 10 00:45:33 RyanM: fwiw - I didn't checkout the sources - I used the "android" tool to download the source for a specific sdk version (eg: android-17.) Within that source, I see the support sources as well. Oct 10 00:46:44 definitely some acerbic stuff on in google+ / Tools about gradle Oct 10 00:47:16 hehe, somehow even though i manage to break almost everything i've been relatively unscathed :) Oct 10 01:04:50 more dumb questions - what's the difference between the arm-linux-androideabi-4.6 and arm-linux-androideabi-4.8 toolchains in the NDK, and which one should I choose for a new project? Oct 10 01:06:50 .2 Oct 10 01:06:59 :-) Oct 10 01:07:44 Sorry - I have no sensible answer. Oct 10 01:08:57 well; I'm finally apparently able to compile libsodium; so that's progress of a kind I suppose, though I've no idea what the heck I've compiled. Oct 10 01:12:08 kbs: good job, now make a multiprotocol chat app with it Oct 10 01:12:20 with file transfer built in Oct 10 01:13:30 kbs try putting it in water Oct 10 01:13:43 * kbs runs away Oct 10 01:15:13 somehow, compiling a bunch of djb's code using poorly understood cross-compiler settings seems like a path straight into hellfire and damnation Oct 10 01:21:57 and so, the answer to the problem was to add httpcore Oct 10 01:22:36 apache httpmime doesn't work without httpcore but does not auto-include it when specified in gradle Oct 10 01:23:17 maybe the pom was broken? hm, anyhow, be careful ;) Oct 10 01:25:40 so far, surviving without having to include any jarfiles :) Oct 10 01:49:41 whats the cheapest you can set an IAP to ? $0.99 ? if so anyway around that ? Oct 10 01:50:19 StingRay_: depends on currency, I think - I suspect I've seen 0.79 in GBP Oct 10 01:50:31 yeah well I can do 50p Oct 10 01:50:44 but that translates to $0.99 Oct 10 01:51:02 well not through normal exchange and math, but using googles it does Oct 10 01:51:19 I wanted more like 15p/20p etc Oct 10 01:51:35 dont seem possible, from what I read and try… Oct 10 01:51:39 I don't think that will work Oct 10 01:51:51 someone needs to sort that Oct 10 01:51:52 15p etc. is starting to get into murky grounds with CC processors, AFAIK Oct 10 01:52:24 16p then ;) Oct 10 01:52:29 that would do Oct 10 01:53:04 well that fk's me a bit and my motetization plans Oct 10 02:09:04 hi Oct 10 02:10:31 can anyone recommend some good android tutorials videos? Oct 10 02:11:11 shaun413: I would think there will be 100,000 + on youtube Oct 10 02:11:16 well Oct 10 02:11:19 ok maybe not that many, but lots Oct 10 02:11:19 which are good? Oct 10 02:11:29 the one that has most views Oct 10 02:11:35 good = subjective Oct 10 02:11:50 hmm Oct 10 02:11:55 i need basic ones Oct 10 02:12:04 im not smart Oct 10 02:12:08 do you know java ? Oct 10 02:12:10 didn't you just ask this ? Oct 10 02:12:12 yes Oct 10 02:12:13 I do Oct 10 02:12:35 shaun413: well just do the tutorials in the dev section on android.com then Oct 10 02:12:41 they are good Oct 10 02:12:42 thoise confuse me Oct 10 02:12:49 in what way ? Oct 10 02:13:04 i just dont understand them Oct 10 02:13:13 lol Oct 10 02:13:19 then you maybe in trouble Oct 10 02:13:28 cause they do start really basic Oct 10 02:13:39 hmm Oct 10 02:13:40 (most of them give you the code) Oct 10 02:13:43 what "exactly" confuses you ? Oct 10 02:13:48 they do Oct 10 02:13:50 well Oct 10 02:14:00 what confuses me is the methods they write Oct 10 02:14:37 eg.? Oct 10 02:15:36 intent.putExtra(EXTRA_MESSAGE, message); Oct 10 02:15:38 like this Oct 10 02:15:44 what does this do Oct 10 02:15:53 do you know what an intent is ? Oct 10 02:16:16 then do the learning bits about intents ! Oct 10 02:16:35 not sure you are putting the effort in thats required :) Oct 10 02:16:48 dont know something, learn what it is… then carry on Oct 10 02:17:26 so I should read it? Oct 10 02:17:29 again? Oct 10 02:17:44 I think thats a strange question Oct 10 02:17:49 Anthaas explained intents for about 20 minutes Oct 10 02:17:52 yes Oct 10 02:17:58 I know it now Oct 10 02:21:02 this is driving me nuts, RelativeLayout inside a linear layout, its wrap content works fine in the IDE, works fine on a nexus 4. On my Droid Maxx the relative layout's height is 0. Can't figure out whats wrong Oct 10 02:32:22 jayd16: maybe the content is the thing thats the problem ? Oct 10 02:33:44 I have a bit of a question about how the setStreamVolume audiomanager method works on android 2.x. I'm trying to make a simple volume app but it only works on 4.x. The volume doesn't get changed on 2.x. I'm following this tutorial: http://android.programmerguru.com/android-seekbar-example/ Oct 10 02:34:23 I think I tracked it down, I have a few negative margins and it might be screwing up the height calculation Oct 10 02:49:10 wat….its combination of negative margin in the top element, and the background being set? Sounds ridiculous but I can reproduce this without issue Oct 10 02:51:47 hey guys, how can you get a fragment to return it's view? Oct 10 02:51:53 I want to add something to it Oct 10 02:52:33 fragment.getView()? Oct 10 02:52:53 jayd16 from what i gather, negative margins are kind of undocumented Oct 10 02:53:03 but you'll see them for certain Layouts in aosp Oct 10 02:53:16 maybe Linear - dunno if they are valid for the rest Oct 10 02:54:31 jayd16: inside my fragment xml I have: getView().findViewById(R.id.newIcon).setVisibility(View.VISIBLE); Oct 10 02:54:52 but it crashes everytime with a runtime exception Oct 10 02:55:13 seems to be a null pointer exception. Oct 10 02:55:23 navetz: so separate the oneliner and find out which call is the one actually failing Oct 10 02:56:37 navetz besides the obvious possibility that the you didn't find that view because of id or wrong layout or something, you're probably calling it from a bad point in the lifecycle. Are you sure its attached to the view Oct 10 02:57:00 jayd16: ahh i think it hasn't loaded yet, it's in an async task Oct 10 02:57:06 ill play with it thanks for the suggestions guys **** ENDING LOGGING AT Thu Oct 10 02:59:58 2013