**** BEGIN LOGGING AT Fri Jan 17 02:59:58 2014 Jan 17 03:00:08 ok, anyone, Eclipse is a good place to start for android dev, right? Jan 17 03:00:15 once I get the hang of it I may change? Jan 17 03:00:25 or I might as well start with something that's newer/better? Jan 17 03:00:33 *anyone = anyway Jan 17 03:00:48 sure. That's what majority of tutorials will mention, too. Personally I'd go with IntelliJ, though Jan 17 03:01:15 p_l, I wouldn't be interested in paying for an IDE Jan 17 03:01:23 not at this stage, at least Jan 17 03:01:24 raj: IntelliJ Community Edition is free Jan 17 03:01:32 and includes android support Jan 17 03:01:37 I like the clean interface Jan 17 03:01:52 p_l: yea; should also say that emacs is only "shell" for all practical purposes [email/irc/jabber/coding/etc] so it's pretty handy to switch around with the same keystrokes/macros everywhere. Works for me, anyway... Jan 17 03:01:54 the virtual phone is possible in IJ too? Jan 17 03:01:59 sure is Jan 17 03:02:39 kbs: looks like there's an older version i can roll back to. I'm trying that Jan 17 03:02:42 raj: it's a separate program (based on qemu) Jan 17 03:02:47 (er, 'emacs is my only "shell"' - don't mean to inflict my love of lisp as a general rule...) Jan 17 03:03:16 does anyone know why I would get exceptions for java classes like this? http://cl.ly/image/3O0C2l3z0v0y Jan 17 03:03:28 i think i'll stick with eclipse for now. Jan 17 03:03:40 makes my life easier haha Jan 17 03:03:53 nvm - looks like a bad target Jan 17 03:03:54 SirLagz, how so? Jan 17 03:04:00 bankai_: yeah I launched the dialog fragment from activity Jan 17 03:04:02 you know the reason Jan 17 03:04:03 ? Jan 17 03:04:06 I was reading this to get an idea of what to use http://slashdot.org/topic/bi/battle-of-the-java-ides-eclipse-vs-netbeans-vs-intellij-idea/ Jan 17 03:04:22 raj: has the popup function completion thingo, i forget what it's called Jan 17 03:04:22 what about AS? Jan 17 03:04:27 is there a good comparison discussion someone can recommend? Jan 17 03:04:32 and i started off on eclipse Jan 17 03:04:41 raj: just try them, you're going to have to make a decision for yourself Jan 17 03:05:12 maybe when i'm more advanced with android then i'll change Jan 17 03:05:39 bankai_, I like to do my research and choose something I'll stick with, so I can invest/immerse myself fully in learning Jan 17 03:05:42 it Jan 17 03:05:44 since i'm doing it on the side at the moment, and learning ont he fly, i need all the help i cn get haha Jan 17 03:05:55 like politics and religion, editors are mostly a subjective decision - whatever makes you productive is what works for you; and if it's gedit, I might simply stick with it until you find something else that makes you more productive Jan 17 03:06:06 check it out, i got my fracments to work! http://imgur.com/a/5jRXO Jan 17 03:06:10 kbs: bingo. Jan 17 03:06:11 fragments* Jan 17 03:06:16 kbs, I don't think I can do android dev in there, no? Jan 17 03:06:18 g00s: did you end up reading that book? what raj is doing right now is explained in great detail... quite interesting Jan 17 03:06:28 I'm pretty happy with emacs Jan 17 03:06:39 or the Eclipse for android Jan 17 03:06:45 still busy with the UI design though Jan 17 03:07:11 i'm using Android Studio now, i never want to go back to eclipse o.o" Jan 17 03:07:39 hmm, okay Jan 17 03:07:40 raj: it's not necessary to use any particular IDE to develop android; most coders seem to settle around intellij/eclipse/androidstudio and some wackos like cubahero and me find emacs to work for us I guess Jan 17 03:08:37 the android bundle got eclipse or studio in it? Jan 17 03:09:08 i see android splash screen when eclipse starts Jan 17 03:09:15 bankai_, a whole book written to compare the IDEs? Jan 17 03:09:25 kbs, no mention of netbeans? Jan 17 03:09:29 kbs: I was just kidding =) I use eclipse Jan 17 03:10:07 cubahero: *sigh* ah well - guess I get to be the lone wacko then :-) Jan 17 03:10:37 lol kbs Jan 17 03:11:14 raj: i'm sure some people are probably using netbeans - whatever you're productive in is what makes sense for you - wouldn't get OCD over it; or if you don't really have a strong opinion - pick eclipse and be done with it Jan 17 03:11:26 raj: to put it simply - eclipse is great to start with, but the more you learn the more it's going to annoy you. AS will probably likely confuse you to start with, but once you learn the 'fun' of gradle you'll probably enjoy it. IJ is going to be great if you wanna do android and 'anything' else and netbeans... well... yeah good luck Jan 17 03:11:55 what's gradle ? Jan 17 03:12:15 kbs: I use vim quite a bit if that makes you feel any better Jan 17 03:12:24 ok, IJ it is Jan 17 03:12:28 thank you for the discussion! Jan 17 03:12:34 SirLagz: http://bit.ly/1j5mhFe Jan 17 03:12:38 ta Jan 17 03:12:52 neve mind, the android bundle got •Eclipse + ADT plugin in it Jan 17 03:13:01 bankai_: dammit. i'm on a terminal lol Jan 17 03:13:21 Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based DSL instead of the more traditional XML form of declaring the project configuration. ... Jan 17 03:13:23 bankai_: i'll google it for myself later :P Jan 17 03:13:30 ah i see Jan 17 03:13:34 i sent you a lmgtfy link anyway Jan 17 03:13:39 haha Jan 17 03:13:42 if i was at home i'd google Jan 17 03:14:30 i should really do some work. Jan 17 03:14:52 nuh... what kinda job you got ? Jan 17 03:15:02 IT SysAdmin of sorts Jan 17 03:15:11 winders? Jan 17 03:15:18 sort of. Jan 17 03:15:32 I maintain IT Infrastructure Monitoring stuff where i'm at Jan 17 03:15:42 Monitoring Nix/Wintel Jan 17 03:15:50 govt? Jan 17 03:16:00 NSA? Jan 17 03:16:05 lol cubahero Jan 17 03:16:22 bankai_: I'm outsourced to a govt department lol Jan 17 03:16:28 but i work for a outsourcing company Jan 17 03:16:42 learning android on the side at the moment :D Jan 17 03:16:42 aww nice i'll be doing that soon if things keep going the way they're going Jan 17 03:17:18 bankai_: how bout you ? you workin as an App monkey at the moment ? Jan 17 03:17:24 it's nice to see people trying to learn more. I see people here that barely even want to learn their current job, let alone something new Jan 17 03:17:33 solaris admin, monkey on the side Jan 17 03:17:39 i love learning new things Jan 17 03:17:42 solaris. oldschool. Jan 17 03:18:05 i think we have one solaris box here lol Jan 17 03:18:12 we have a few hundred Jan 17 03:18:14 * pfn runs a solaris vm for his nas... Jan 17 03:18:22 bankai_: don't work for a bank do you ? lol Jan 17 03:18:23 iscsi, nfs, cifs Jan 17 03:18:28 zfs yum Jan 17 03:18:36 not a bank, govt Jan 17 03:18:41 bankai_: eh close lol. Jan 17 03:18:55 pfn: why not just freenas it ? Jan 17 03:19:01 bankai_: you said you were in Qld ? Jan 17 03:19:09 Guys, my understanding if you setRetainInstance of DialogFragment to true, changing orientation will not call onCreateDialog correct? Jan 17 03:19:11 SirLagz: yep, that's all you're getting from me :P Jan 17 03:19:14 pfn: are you just randomly naming technologies? :) Jan 17 03:19:14 haha Jan 17 03:19:20 no Jan 17 03:19:23 bankai_: I'm nowhere near you so it doesn't matter :P Jan 17 03:19:25 it's what I use off my nas Jan 17 03:19:30 Can I mount a usb drive without root. And install apps to it Jan 17 03:19:31 Leeds: I think he mentioned what he runs off hist storage server Jan 17 03:19:34 Leeds: i saw a job ad the other day where i thought that hahah Jan 17 03:19:34 Pr070cal: no Jan 17 03:19:40 bankai_, maybe in the future, yeah, since zfs is about as far as it's gonna go on solaris, publically Jan 17 03:19:44 Even with ndk ? Jan 17 03:19:55 bankai_: we're both in a governement organisation :P Jan 17 03:20:33 i think my company is starting to get it's feelers into QLD too Jan 17 03:21:04 p_l is there no way even with ndk ? Jan 17 03:21:15 question to all, i'm making a application to plan a appointment to pick up scrap (recycling company), how would you call the description field? Jan 17 03:21:16 Or system app Jan 17 03:21:37 where you can fill in what you want to have picked up Jan 17 03:21:55 sysV yikes. I never really was happy after sunos4 Jan 17 03:21:59 protomouse: with modified system, yes. with root... maybe with some aggressive symlinking Jan 17 03:22:48 I cant use root :( Jan 17 03:23:02 It auto mounts but in the wrong place Jan 17 03:23:28 2gb internal storage mounted as emulated sdcard Jan 17 03:23:59 Then usb drive mounted as /mnt/media/usbdrive Jan 17 03:24:24 nobody? Jan 17 03:24:46 ISDP: don't understand the question ... "how do you call the description field" Jan 17 03:25:02 yeah, i'm dutch, so there's a language barrier. Jan 17 03:25:07 Also im looking to get usb webcam working but have no v4l kernel mod no root only ndk and usbhost Jan 17 03:25:21 ISDP: call it whatever you want... Jan 17 03:25:39 how would you call field where you describe what stuff you want to have picked up by the recycle company Jan 17 03:26:53 I don't think there's any succinct description of something like that - it'd probably just be something descriptive like "describe item to be recycled" or something inelegant Jan 17 03:27:08 hmpf Jan 17 03:27:28 i'm having a hard time thinking of something that's preferably one word to describe that. Jan 17 03:28:33 bankai_ one more question, even though i assigned the NetActivity object to ((NetActivity)getActivity()), i still can't use the variable directly without a null pointer error. However explicitly casting getActivity works fine. Is there no way to store this to make the code easier to read and type? Jan 17 03:29:22 Has anyone got usb webcam working without root Jan 17 03:29:35 kamui: can you show me the code Jan 17 03:29:41 yep Jan 17 03:29:46 one sec Jan 17 03:31:48 bankai_ http://pastebin.com/hNAGKNuR Jan 17 03:32:00 basically the sign in callback will crash with a null pointer Jan 17 03:32:02 ill post the stack Jan 17 03:32:50 http://pastebin.com/0wX2CFGQ Jan 17 03:33:15 that happens when i press sign in on the fragment Jan 17 03:33:38 I dont see what the issue is, why it would be an NPE, when i initialize it in the constructor Jan 17 03:33:51 !!! oh schnapps Jan 17 03:33:58 you're using your fragment wrong Jan 17 03:34:10 its probably not being called with that constructor when its initialized Jan 17 03:34:15 remove the constructor -- we don't use those for fragments and set your var in onStart Jan 17 03:34:38 i will do this :) Jan 17 03:34:38 or onCreate or something Jan 17 03:35:01 onCreateView. Jan 17 03:35:58 bam Jan 17 03:36:00 and you saved me again Jan 17 03:36:13 goddammit, still can't think of anything Jan 17 03:36:14 im learning bud :) Jan 17 03:36:21 well i'm out of beer ... so .... Jan 17 03:36:45 ISDP: Recyclables ? what was the question ? Jan 17 03:36:54 how would you call field where you describe what stuff you want to have picked up by the recycle company Jan 17 03:37:16 the proper english description for that in 1 word Jan 17 03:37:22 or two Jan 17 03:37:46 Recylable Material ? Jan 17 03:38:17 Recyclable Items ? Jan 17 03:38:20 is that proper english, and exactly describes what i mean? (i'm dutch) Jan 17 03:38:53 Items to be Recycled would probably be a bit better Jan 17 03:38:55 what's the most clear description that exactly tells what i mean Jan 17 03:39:09 good enough, if it fits, it sits. Jan 17 03:39:20 haha "if it fits, it sits" i like that Jan 17 03:43:12 "Items to Recycle" Jan 17 03:43:17 don't need be Jan 17 03:44:04 or Recyclables, yeah Jan 17 03:44:29 A Description Of The Things That Shall Be Recycled Jan 17 03:45:42 Items to be recycled works apparently, do Recyclables describe the exact same thing in a clear manner? Jan 17 03:46:27 ISDP: it's clear enough for me Jan 17 03:46:38 I would use Recyclables if you need one word Jan 17 03:46:44 but would it be for anyone? Jan 17 03:46:46 Items to Recycle if you want to be extra clear Jan 17 03:46:54 does anyone know why a process would keep respawning? Jan 17 03:47:03 I'm suing this library called libstreaming for streaming video Jan 17 03:47:11 and it looks like it maybe created a new process and i can't kill it Jan 17 03:47:16 (maybe it's still thinks it's using the camera or something) Jan 17 03:47:44 SirLagz, what sounds better "Plan a Pickup" or "Plan Appointment" ? Jan 17 03:48:00 pickup Jan 17 03:48:04 ISDP: I'd use pickup Jan 17 03:48:53 what's it mean to "install" the Java JDK on linux? Jan 17 03:49:02 and then Plan Pickup or Plan a Pickup? Jan 17 03:49:10 raj: unpack the archive? Jan 17 03:49:12 I downloaded http://www.oracle.com/technetwork/java/javase/downloads/index.html then what? Jan 17 03:49:18 raj, what distro are you running? Jan 17 03:49:21 arch Jan 17 03:49:24 set your path to point to java commands? Jan 17 03:49:26 ISDP: plan a pickup Jan 17 03:49:49 Leeds, what do you mean? Jan 17 03:50:02 raj: unpack it, set your path to point at it Jan 17 03:50:14 or unpack it, make links to /usr/bin et al Jan 17 03:50:43 raj: or use your package manager to install openjdk Jan 17 03:50:47 raj, run this in a terminal: pacman -S jdk7-openjdk Jan 17 03:51:29 or use the SUN^WOracle JDK, because that's what's supported Jan 17 03:52:55 ISDP maybe you need one of those translation services listed on Play Dev Console Jan 17 03:59:30 http://pastebin.com/6vAfavqE I am recieving this error from maven when attempting to compile if anyone could shade some light on the problem or provide a solution would be great. FYI I am on a windows machine with netbeans 7 Jan 17 04:00:35 g00s, why's he need translation? Jan 17 04:00:42 hi all Jan 17 04:01:00 ProjectBarks the exception seems pretty self evident. you need to set up project sdk Jan 17 04:01:00 is there a way to put an arbitrary view inside of the contextual action bar? Jan 17 04:01:50 g00s, I am fairly new to maven. If you mean have the Android SDK installed and pointed to in netbeans thats done Jan 17 04:02:24 ProjectBarks apparently maven wants you to also tell /it/ Jan 17 04:03:06 Well. Would you mind pointing me into the right direction to do so. Or provide instructions in the irc how to Jan 17 04:04:31 the exception says right there Jan 17 04:04:39 ISDP, 404 not found :T Jan 17 04:04:59 raj, where did you paste it? Jan 17 04:05:14 all the sources say error: failed retrieving file 'ca-certificates-java-20121112+nmu2-2-any.pkg.tar.xz' from mirror.its.dal.ca : The requested URL returned error: 404 Not Found Jan 17 04:05:21 regardless of the mirror Jan 17 04:05:28 ProjectBarks try running mvn from the command line using -Dandroid.sdk.path=... Jan 17 04:05:54 would I be silly for setting the enviorment label Jan 17 04:06:06 raj, then i don't know Jan 17 04:07:36 you could do that too, although depending on how you started netbeans it may not see it Jan 17 04:07:59 oh, you are on windows. yeah you could set it there Jan 17 04:09:48 Ugh lovely, http://gyazo.com/8d1979b089edf606f03b2d1c3cc26790 Jan 17 04:10:59 g00s, would I need to restart or reopen netbeans Jan 17 04:11:09 If I set the enviorment variable Jan 17 04:11:15 not sure with windows. probably safe to Jan 17 04:11:32 i would Jan 17 04:12:27 i have an action bar item with an expandable action view. When it expands, it shows my app icon with the "up" arrow next to it. How can I hide the app icon & up arrow when in this state? Jan 17 04:13:05 13 hours until the deadline. Jan 17 04:13:07 damn. Jan 17 04:15:04 g00s, is this correct "mvn -Dandroid.sdk.path="C:\Program Files (x86)\Android\android-sdk"" Jan 17 04:16:05 i'm not sure if you need file:// … not familiar with the windows path expansion stuff. it looks sane, but you'll have to try Jan 17 04:16:39 it trys to build Jan 17 04:16:47 it says nogoals specfic to the build Jan 17 04:17:13 maven does Jan 17 04:19:58 Ok g00s so I got the enviorment stuff setup but now I am given this error http://pastebin.com/csErJh1w Jan 17 04:21:09 ProjectBarks i can't help with this because i don't use maven for android. most people use the IDE's build system, the legacy ANT system, or the new gradle one. the maven android plugin is not from google Jan 17 04:21:35 Thanks g00s Jan 17 04:21:52 if you are a beginner, i think eclipse / adt still has the best instructions Jan 17 04:22:03 although android studio is the new hot Jan 17 04:22:29 as Jan 17 04:25:13 does it piss anyone else off that companies will happy advertise their iOS app and there'll be nothing for android/windows etc.? Jan 17 04:25:40 "give me the f'ing money! I'll do it for you" hehehe Jan 17 04:26:21 bah i'm having a bad day :( Jan 17 04:28:37 i see lots of iOS only goodies, especially in music area Jan 17 04:29:24 i don't really care about music, i find it frustrating when large companies have an app and it's ONLY iOS Jan 17 04:29:52 bankai_: you were mentioning that " interesting.... i guess you're launching the dialog straight from an activity, not a fragment, right ?" Jan 17 04:29:55 welcome to society Jan 17 04:30:10 you have any idea for this? Jan 17 04:30:19 bankai_ the startup may have decided thats the best ROI, or where the demographics suit them Jan 17 04:30:25 Maziz: well i have a dialog that doesn't get dismissed when i rotate Jan 17 04:30:26 or maybe the platform is easier to deal with Jan 17 04:30:43 bankai_: im using support library Jan 17 04:30:49 so what Jan 17 04:31:00 if i was doing BLE, android is still pretty fucked there Jan 17 04:31:16 i mean compatibility library Jan 17 04:31:16 https://code.google.com/p/android/issues/detail?id=17423 Jan 17 04:31:19 if you see the bug Jan 17 04:31:20 so if you want to use BLE, maybe a wearable computing application, ios makes perfect sense Jan 17 04:31:27 it only effect compatibility library Jan 17 04:31:36 maybe in your case you werent using compatibility library? Jan 17 04:34:38 g00s: which is ironic, because BT on iOS is still gimped from a user POV Jan 17 04:34:47 AFAIK, anyway Jan 17 04:35:02 Leeds no, BT SMart works perfectly fine. the old RFCOMM stuff requires mfi Jan 17 04:35:14 can you do a simple file transfer? Jan 17 04:35:23 send a photo between two iphones? Jan 17 04:37:00 yeah, since 2009 http://appadvice.com/appnn/2009/11/how-to-transfer-photos-videos-between-iphones Jan 17 04:39:24 BLE isn't well suited for that application though, not sure how they did it Jan 17 04:39:31 without installing a third-party app, and possibly needing internet access? Jan 17 04:40:15 meh, this isn't the right place to bash iOS Jan 17 04:42:26 Leeds maybe you can investigate ;) https://developer.apple.com/library/ios/samplecode/BTLE_Transfer/Introduction/Intro.html Jan 17 04:42:38 "from a user POV" Jan 17 04:43:09 so anyhow, i'm mostly interested in BLE because i work with streaming data Jan 17 04:43:27 in other words, if I have an iPhone and you have an iPhone, can I just send you an image over BT? Jan 17 04:49:21 i dunno; like i said i'm more interested in streaming data. iOS BLE stack is much more mature for that. the point was, as bankai_ started, we were discussing why one would write an app for iOS but not android. if its a wearable computing or application using BLE, it makes perfect sense Jan 17 04:49:53 yes, except I asserted that BT was gimped for users, and I haven't heard otherwise, so I'm going to stop now Jan 17 04:50:32 RFCOMM is gimped, if you don't have mFI. and i guess they don't give you a built in app. so yeah, i wonder what a lot of photographers do in that case Jan 17 04:51:01 g00s: photographers don't use BT? :P Jan 17 04:51:22 but seriously, I think BT for filesharing seriously lost in popularity to cloud services and wifi Jan 17 04:51:51 i've never used it for file sharing , yeah Jan 17 04:53:22 g00s: the most I have used BT for transferring photos was through Android Beam Jan 17 04:55:00 I tried to use it a couple of years ago when on holiday with family - we were all roaming, so no 'net, and we were at a restaurant so we weren't even on a shared wifi connection... I wanted to send photos to people, and I just couldn't send to iPhones Jan 17 04:55:58 Leeds: when I first got my hands on iPhone 3G, my reaction was "holy fuck this is crippled" Jan 17 04:56:47 this is the cool kind of stuff that gets me excited http://www.indiegogo.com/projects/tellspec-what-s-in-your-food Jan 17 04:56:56 so many applications for BLE Jan 17 04:57:12 they could have used rfcomm Jan 17 04:57:17 * g00s shrugs Jan 17 04:57:36 this is android and ios Jan 17 04:58:55 i'm sure like any startup, they asked themselves - what platform should we support ? Jan 17 04:59:05 iOS is pretty much a given in the US Jan 17 04:59:21 android? they would have to decide how much testing they would need to do Jan 17 04:59:23 and especially when you're in bay area, I guess :P Jan 17 04:59:48 it's pretty clear that the NoCal bubble has been supporting iOS for a while Jan 17 04:59:55 as in "propping up" Jan 17 04:59:57 i guess nowadays you could probably grab the samsungs, LG, a few motos, and a few nexi and be done Jan 17 05:01:04 g00s: it would also depend on how you design Jan 17 05:01:50 well, when the android bluetooth service crashes ... Jan 17 05:01:54 g00s: iOS did some... interesting tricks to keep it simple (till iPhone 5, there was no change to screen dimensions other than iPad) Jan 17 05:01:57 and the only remedy is restart the phone :) Jan 17 05:02:25 the newer android Apis still need ironing out Jan 17 05:02:35 (for bluetooth) Jan 17 05:02:45 i mean, this story was recent http://www.androidpolice.com/2013/12/28/bug-watch-many-nexus-devices-still-suffer-from-assorted-bluetooth-issues/ Jan 17 05:03:31 im amazed what 'duse' managed to say and only get upvotes on an android fan site, but i agree Jan 17 05:10:24 hey Jan 17 05:14:59 kroot are you around? Jan 17 05:17:17 do i have to get a new fragment transaction every time i want to replace a fragment? Jan 17 05:17:31 or can i store and reuse the same fragman and fragtran Jan 17 05:20:44 p_l what do you think of the announced blackphone ? Jan 17 05:21:28 eh? Jan 17 05:21:32 first time I heard of it Jan 17 05:21:37 kamui: why? what is the real question Jan 17 05:21:45 https://www.blackphone.ch/ Jan 17 05:22:13 well, im using fragments for the first time, got an error when trying to replace the fragment - commit already called Jan 17 05:22:24 "PrivatOS, an Androidâ„¢ based operating system without the usual compromises." Jan 17 05:22:29 i worked around it by creating a new manager and transaction Jan 17 05:22:39 new manager?!? Jan 17 05:22:45 but it seems counterproductive Jan 17 05:22:56 so i wanted to know if that was legit, or if there was a proper way and i was doing it wrong Jan 17 05:22:57 but what i'm asking is why would you keep a reference, are you seeing a lag or something Jan 17 05:23:24 Fragmentsâ„¢: Destroying developer productivity since 2012. Jan 17 05:23:47 if you are doing a 1000 transactions per second, yeah it'd make since, but if just trivial navigation, what's the hiccup Jan 17 05:24:24 Can anyone drop some insight as to what loads dalvik? Jan 17 05:24:31 zygote Jan 17 05:24:35 its not, i always just try and reuse objects rather than destroy and recreate them, especially if its a reference to an object thats in use Jan 17 05:24:38 I'm interested in the process Jan 17 05:24:51 so you suggest i dont waste my time storing those two Jan 17 05:25:03 kamui: what i'm saying is how often do you need to load a new fragment? Jan 17 05:25:04 ZettaBlade: this might shed some light: http://corner.squareup.com/2013/10/android-main-thread-1.html Jan 17 05:25:10 yes Jan 17 05:25:12 and just call getfragmentmanager().getfragmenttransaction directly? Jan 17 05:25:31 canvs2321 not too often, i have about 5, and they don't swap in and out very often Jan 17 05:25:32 kamui: do a speed test if it's so neccesary(sp?) Jan 17 05:25:38 its definitely not a speed issue Jan 17 05:25:42 then don't worry if you Jan 17 05:25:45 im just wrapping my head around it Jan 17 05:25:49 are having issues reusing Jan 17 05:26:07 i understand your idea, but it's not an issue to call those methods Jan 17 05:26:37 just random question, any faster method to altering pixels in bitmap than using getpixels and setpixels? Jan 17 05:26:53 XXCoder1: wrap it in a Canvas Jan 17 05:27:11 and go nuts Jan 17 05:27:15 wouldn't keeping references of slightly/underused variables, be more of a memory issue, then just calling as needed, if no speed improvements Jan 17 05:27:15 problem I need to also read pixels Jan 17 05:27:59 Interesting stuff, thanks! Jan 17 05:28:28 ok canvs2321 i wont worry about it then, i may remove the shortcut vars as well, they are obsolete at this point then :) Jan 17 05:28:30 Jake, canvas has fast access to specific pixel data? Jan 17 05:28:33 XXCoder1: if you have the image in a byte array you can read&alter at will. Otherwise give more detail of what your complete goal is Jan 17 05:29:01 oh basically read pixe, alter it with rules then set it again Jan 17 05:29:02 XXCoder1: you can still access the underlying bitmap for pixels. what are you trying to do? Jan 17 05:29:10 en-mass Jan 17 05:29:39 so far setpixels with array is decent speed but free frees 700 kb per few seconds Jan 17 05:29:42 kamui: ultimately, just code for less kept reference objects, and decide when you occur slow ups, how to optimize Jan 17 05:30:16 canvs2321: fragments are expensive objects, you should re-use them when they exist Jan 17 05:30:27 kamui: you can query the fragment manager for fragment instances that it already knows about Jan 17 05:30:38 he is talking about keeping reference to the fragment manager and transactions Jan 17 05:30:59 but it isn't used exstensively Jan 17 05:31:03 ohh Jan 17 05:31:07 yeah. don't keep references to those Jan 17 05:31:16 is paint pixel on canvas very fast? Jan 17 05:31:24 a single pixel? Jan 17 05:31:28 I got bit of an idea Jan 17 05:31:29 yeah Jan 17 05:32:13 what are you trying to do? Jan 17 05:32:23 tell us your goal, not what you think you want Jan 17 05:32:29 ^^ Jan 17 05:32:40 like I said, alter pixels based on rules. there is 300 roaming objects modifing specific pixel its on Jan 17 05:33:33 yeah but if you generalize every Android app every made they are just altering pixels based on rules Jan 17 05:33:43 lol guess so Jan 17 05:34:15 picture machine that uses pixel color data to do stuff to that specific pixel, then move according Jan 17 05:34:40 so I want to quickly modify 300 pixels per frame Jan 17 05:34:54 with not quite that much GC Jan 17 05:35:32 per frame? that's not a picture/bitmap, that's a moving animation. Are you just trying to add filters to a video,mulitple image format? Jan 17 05:35:55 lol well bit hard to explain but yeah I use Bitmap object Jan 17 05:35:59 or bulk filter Jan 17 05:36:46 if it's per frame you need to be at the GL level Jan 17 05:36:57 best bet is using a thread if doing multiple images, keep it off main UI, and keep a running status of action Jan 17 05:37:02 HMM I do need to learn that. Thanks! Jan 17 05:37:12 if it's not real-time, something like renderscript might help you a lot Jan 17 05:39:03 its realtime unfortunately but thanks :) Jan 17 05:39:17 I use low fps to keep cpu low Jan 17 05:40:17 think its at 10 fps now Jan 17 05:40:40 how do I profile cpu usage and how long specific function takes anyway? Jan 17 05:41:03 traceview Jan 17 05:41:20 thanks Jan 17 05:41:25 http://developer.android.com/tools/debugging/debugging-tracing.html Jan 17 05:42:47 Will check into that tomorrow - favorited. Jan 17 06:11:37 Greetings, folks. I've read tons of google links on to how fix black background / holes while sliding screen with map fragment inside. I've added transparent view behind map fragment, put it into transparent view and gave itself transparent background as well. Finally, on most devices it's fixed. But on some, like samsung galaxy ace / samsung galaxy ace 2 with android version of 2.3.6 I still experience this weird thing. Can't find any complete solution Jan 17 06:11:38 Couldn't anyone point me to such? Jan 17 06:16:10 well, who's still awake? :) Jan 17 06:16:52 i see dead people Jan 17 06:17:04 I see Asian people Jan 17 06:17:36 nice Jan 17 06:17:52 (because of timezones and stuff, obviously) Jan 17 06:18:25 do you think stoned asians see ? Jan 17 06:19:08 you mean, do Asians go blind when they get high? Jan 17 06:19:30 my nickname is actually iSeeDeadPixels. Jan 17 06:19:31 yes, what do you think? Jan 17 06:19:58 no, I don't think that Jan 17 06:20:01 wtf? Jan 17 06:26:29 why would you think that nick9998 ??? Jan 17 06:27:05 ISDP: I'm still awake. Jan 17 06:27:16 seeing as how it's 2:30 PM here lol Jan 17 06:27:35 well, i have a ViewPager and i have a button on page 1, how can i change to page 2 when the button is clicked? Jan 17 06:27:37 i could do with a nice nap though Jan 17 06:27:55 SirLagz, i've nearly finished the UI design, and it's multilingual. Jan 17 06:28:16 http://imgur.com/a/XqAhU Jan 17 06:28:22 ISDP: unfortunately I haven't used ViewPager before so i have no idea lol Jan 17 06:28:23 sorry Jan 17 06:28:32 because of their eyes Jan 17 06:29:16 nick9998: are you american ? Jan 17 06:29:38 no canada Jan 17 06:29:40 SirLagz, check the imgur Jan 17 06:29:51 nick9998: right. Jan 17 06:29:59 ISDP: sorry, I'm on a terminal at the moment. no browser Jan 17 06:30:14 SirLagz, that sucks. Jan 17 06:30:43 my girlfriend is from canada too Jan 17 06:30:48 ISDP: that's what I get for SSHing in from work :D Jan 17 06:32:26 findviewbyid doesn't work because my classes are static, any workaround? Jan 17 06:32:46 i guess through the xml file.. Jan 17 06:32:53 but that won't do what i want i guess. Jan 17 06:33:12 SirLagz: u are using a terminal? Jan 17 06:34:52 nick9998: yes Jan 17 06:38:05 hey, i keep getting this error while running my project: IllegalAccessException: D/dalvikvm(15964): newInstance failed: Lbook/SolarSystem/SolarSystemRenderer; not accessible to Lbook/SolarSystem/SolarSystemActivity; Jan 17 06:38:35 any ideas? Jan 17 06:40:54 SirLagz: pager.setCurrentItem Jan 17 06:41:08 f2prateek: wasn't me. was ISDP :) Jan 17 06:41:19 oh sorry Jan 17 06:41:46 f2prateek, how to set that in a static class at the press of a button? Jan 17 06:42:03 SirLagz: can you use the browser on your work PC? Jan 17 06:42:41 or is it blocked Jan 17 06:43:03 set an click listener for the button, call pager.setCurrentItem(index) in that method Jan 17 06:43:14 nick9998: is it a public class? Jan 17 06:43:36 nick9998: I could, but it's all logged etc etc Jan 17 06:43:37 nick9998: and is your package called 'book.SolarSystem'. This should be lowercase. Jan 17 06:44:33 alankila: thanks for the suggestion i will try 'public class' Jan 17 06:49:36 alankila: worked. u are the man! Jan 17 06:49:57 alex_PP check it out http://phandroid.com/2014/01/16/google-prepares-for-the-age-of-wearable-tech-begins-work-on-android-fitness-api/ Jan 17 06:50:04 There's always "the man". Why not zoidberg. Jan 17 06:50:17 g00s, awesome! Jan 17 06:51:07 now, if only i had some spare time... Jan 17 06:51:53 alankila: i miss futurama Jan 17 06:52:12 what does (status 7) on ClockworkMod mean? Jan 17 06:52:54 Cha1n3d see topic ;) Jan 17 06:53:36 my apologies, everyone Jan 17 06:58:23 f2prateek, static class, can't use findViewById(); Jan 17 07:15:21 brb, gotta reboot Jan 17 07:25:19 back =] Jan 17 07:28:01 wassap Jan 17 07:30:54 stuck on a possibly simple issue Jan 17 07:31:13 i have a button, i want to add a onclicklistener to it, but the fragment is a static class. Jan 17 07:33:36 http://pastie.org/private/wgtkctbqjqbbkpwean1tw here's the class in question, welcome_button_next is the button ID Jan 17 07:34:52 ISDP: everything is fine with your paste Jan 17 07:35:25 yeah, except that there's no onClickListener in there, as i can't use findViewById(); there. Jan 17 07:35:40 ISDP: view != fragment Jan 17 07:35:52 ISDP: while view can be clickable, fragment cannot Jan 17 07:36:35 ISDP: either use setClickable and onClickListener on your dataView inside onCreateView of fragment, either use Button / any other view instead of fragment Jan 17 07:36:57 horizontalscrollview inside viewpager .. good idea? bad idea? Jan 17 07:36:59 nonono Jan 17 07:37:47 posplaw, read up a little, right before robbyoconnor changed his nick Jan 17 07:37:55 lemonxah: good idea Jan 17 07:39:04 ISDP: well, fragment contains all your buttons inside its view? Jan 17 07:39:12 i had it like that but the touch events go all crazy its not smooth Jan 17 07:39:25 lemonxah: well, it's okay for android Jan 17 08:06:23 My app uses a TCP socket for much of its functionality. Of course, this means that multiple activities need access to the same socket connection, and that i need to pass the socket object between the activities somehow. Initially, i thought this was a great usecase for a (bound) service. The service could maintain a socket object for as long as at least 1 activity is bound Jan 17 08:06:57 liefer: sounds about right, service running in separate thread, possibly in separate process Jan 17 08:07:37 However, after reading Diane Hackborns response to a similar scenario ( https://groups.google.com/forum/#!topic/android-developers/yxOzuMGlcSo ) , im thinking about the pros and cons of using a singleton instead Jan 17 08:08:37 Im scared that with a singleton, i risk leaving a socket open if the app is forcefully closed by the system Jan 17 08:08:56 DH is like famous and all, but "You don't need a service. And please please don't use startService() unless you really want to use up the user's resources with your app trying to run when they are not in it. Way too many apps I see abuse resources and keep themselves running in the background and thus just sucks." Jan 17 08:09:00 wtf is she talking about Jan 17 08:10:09 yes, i think your socket should be abstracted into a service Jan 17 08:10:13 liefer: Why don't you encapsulate your TCP socket communication with simpler methods, and leave all the setup/reconnect logic and similar in one place? Jan 17 08:10:36 g00s: She is talking about idiotically unmanaged always-running services that are the scourge of android apps Jan 17 08:10:45 liefer: So use a reference to an app or service instead of the TCP socket, and keep references to that instead. Jan 17 08:11:38 kjeldahl: Right, that was what i was planning to do (keeping it in a service) Jan 17 08:11:57 Im probably reading too much into DH's response. Thanks, all of you Jan 17 08:11:59 liefer: DH has a good reason, related to certain very, very bad patterns that show up like pests in android apps Jan 17 08:12:27 liefer is it a stateful / long lived TCP connection, or do you open up sockets on command Jan 17 08:12:38 liefer: it's more about "think what you're doing and clean up after yourself" rather than "do not use services" Jan 17 08:13:00 I see Jan 17 08:13:31 g00s: i expect a socket connection to be open as long as the app is in the foreground Jan 17 08:13:58 so then as soon as it in the bg, the socket gets closed ? Jan 17 08:14:23 because then, yeah - you don't need a service ;) Jan 17 08:14:25 g00s: that might not be the best idea Jan 17 08:14:39 but a timed close might make sense Jan 17 08:14:46 i'm just trying to understand the requirements Jan 17 08:15:16 hehe Jan 17 08:15:58 well, it's just that I'd be pretty pissed if there was huge slowdown everytime I switched back after brief jump into another application (had to deal with networks that would drop packets like crazy) Jan 17 08:16:14 liefer: And depending on your requirements; if the reason for keeping that socket open is to be able to push to the device (aka "longpoll"), you might want to consider GCM instead. Your app will be less battery hungry then, and less issues to deal with regarding the phone moving around on networks. Jan 17 08:16:42 kjeldahl: Its not. Good advice though Jan 17 08:16:56 * p_l ponders how to deal with confidential data over GCM Jan 17 08:17:19 p_l: use GCM for signaling, then use regular https (or whatever) do to the exchange. Jan 17 08:17:58 kjeldahl: figured that + encrypted messages, though if you need to avoid timing leaks GCM is out Jan 17 08:19:31 p_l: GCM allows small payloads (<4k or something), so you could pass some crypted data there if needs be. Whether that solves anything for your usecase, I have no idea. Jan 17 08:20:04 kjeldahl: just woolgathering Jan 17 08:22:47 kjeldahl you like scribd right ? Jan 17 08:23:49 oh wait, a direct link Jan 17 08:23:57 https://noggin.intel.com/sites/default/files/Intel-Recommended-Reading-List_1H14_0.pdf Jan 17 08:24:05 interesting list Jan 17 08:26:55 hm, some things here seem a bit crazy Jan 17 08:27:34 * p_l forces himself to contain snark at seeing a book on OpenGL 4.3 on the list Jan 17 08:27:39 Wow, that's a big list. Makes my todolist marginally longer. ;-) Jan 17 08:32:30 i think i might stop working on this project until they fix the gradle performance regression in 0.7, its too damn slow Jan 17 08:33:53 probably worse because my machine is pretty old Jan 17 08:41:15 hello. Are fragments required to have a public constructor that takes no argumens? Jan 17 08:41:19 arguments* Jan 17 08:42:39 zzxx either a no arg ctor or no ctor Jan 17 08:46:19 ok is it ill advised to have a no arg ctor, but also a ctor with args, and primarily use the ctor with args because that is what you really want? Jan 17 08:48:34 i mean, android has to be able to instantiate your class directly - so there must be a default ctor Jan 17 08:49:05 the fragment style is .newInstance() Jan 17 08:49:21 http://www.androiddesignpatterns.com/2012/05/using-newinstance-to-instantiate.html Jan 17 09:00:07 g00s, i need some help with calling stuff inside a fragment Jan 17 09:00:22 like Button btn = (Button) findViewById(); Jan 17 09:00:41 that can't be done because i'm using static classes Jan 17 09:00:47 for a ViewPager Jan 17 09:01:43 <_genuser_> hmmm tablelayout each row has two labels. so android is lining up the right edges of all the first labels in each row. Jan 17 09:02:32 ISDP: you can do it when you're inflating your fragments view Jan 17 09:03:06 liefer, how? http://pastie.org/private/wgtkctbqjqbbkpwean1tw Jan 17 09:03:27 dataview.findViewById() Jan 17 09:05:28 Non-Static View pager can't be accessed from a static class Jan 17 09:06:33 trying to use pager.setCurrentItem(); Jan 17 09:07:36 liefer, how can i fix this? Jan 17 09:20:14 hi Jan 17 09:21:31 i have some imageviews that i call setOnTouchListener on. But this method behaves like onClick. any ideas on how to allow multiple imagviews to be selected using a swipe motion? Jan 17 09:26:20 <_genuser_> can you not center items in a relativelayout or set them to fill_parent/match_parent? Jan 17 09:49:55 ISDP: sorry, i dont know why your fragment is static in the first place so im not sure i can help you Jan 17 09:58:39 liefer, because this happens when they're not static: http://pastie.org/private/wokzr5afjvettt1mmywra Jan 17 10:02:47 liefer, https://www.google.nl/search?q=make+sure+class+name+exists%2C+is+public%2C+and+has+an+empty+constructor+that+is+public&oq=make+sure+class+name+exists%2C+is+public%2C+and+has+an+empty+constructor+that+is+public&aqs=chrome..69i57&sourceid=chrome&espv=210&es_sm=93&ie=UTF-8 Jan 17 10:05:27 Hello. I'm looking at various java image processing libs. I would like to find one that supports image circle cropping. Anything like that out there? Jan 17 10:05:53 I used my own code for this, but would like to have it in some standart lib Jan 17 10:06:31 hmm Jan 17 10:06:54 vegetablesalad19, using Android image methods will be by far the best for performance Jan 17 10:06:57 ugh. Jan 17 10:07:00 using porterduff or shader modes for that. Jan 17 10:07:01 google isn't any help Jan 17 10:07:14 especially after pulling a allnighter Jan 17 10:07:51 Mavrik, that makes sense. I just thought there would be something close to that Jan 17 10:08:25 remember that Android libs will use OpenGL or DSPs if available Jan 17 10:08:33 so that's hard to beat with pure-Java libs Jan 17 10:20:14 Mavrik, you have any experience with fragments etc? Jan 17 10:21:36 are ad payments typically for numbers of clicks or number views? Jan 17 10:33:05 anyone? Jan 17 10:41:58 arcode: both are possible. Jan 17 10:43:20 arcode: google for ad broker Jan 17 10:43:56 having a look now thanks Jan 17 10:57:32 Hi, i'm running an android emulator but i'm not able to connect to my network Jan 17 10:58:06 when running netcfg in adb shell on my host windows machine i'm seeing a correct DHCP lease but i'm unable to ping any device on the network Jan 17 10:59:36 is it just me or using webview in a dialog fragment is really broken. Jan 17 10:59:49 with setRetainInstance = true. Jan 17 11:05:21 Hi, does anyone know how they share their phone screen on TV/Projectors in Android Presentations like Google IO? Jan 17 11:05:46 is some hardware needed? witch one? has the phone to be rooted? Jan 17 11:06:00 thanks Jan 17 11:08:50 heyo =] i'm back Jan 17 11:13:02 mastro there are cables that does that Jan 17 11:13:15 special hdmi cables Jan 17 11:13:30 lemonxah, ok, how are those cables called? Jan 17 11:13:38 lemonxah, and where I can buy them? Jan 17 11:13:45 can I Jan 17 11:14:00 hey Chainfire! :) Jan 17 11:15:53 hey :) Jan 17 11:17:42 mastro some devices use "mhl" others use "slimport" others even have a microHDMI port ... just search for your deivce + HDMI on Google Jan 17 11:20:36 hey so I am trying to figure out how to send an image along as json Jan 17 11:20:45 to the server Jan 17 11:21:41 LoneSoldier728: compress it, convert it to base64 into a string in the JSON structure. Jan 17 11:22:11 right http://stackoverflow.com/questions/21176530/how-to-take-a-picture-selected-on-android-and-send-it-as-json-with-information-f/21178501?noredirect=1#21178501 Jan 17 11:22:17 Chainfire, thanks Jan 17 11:22:21 in my code there what am i compressing? Jan 17 11:22:27 b? Jan 17 11:22:54 You could also send the image data directly in the POST or PUT request. Jan 17 11:23:06 LoneSoldier728: the image bytes. Jan 17 11:23:21 http://pastebin.com/UsjrpYDn Jan 17 11:23:23 in this section Jan 17 11:23:40 this was my attempt I am not sure if it is correct line 34 Jan 17 11:24:04 Chainfire, can i pm you for some questions? Jan 17 11:24:05 LoneSoldier728: no, not in this section. This is not COBOL! Jan 17 11:24:16 LoneSoldier728: write small methods that do one single thing. Jan 17 11:24:40 kk Jan 17 11:24:52 so i should just make a compressor method Jan 17 11:25:06 Or use an existing library to compress the image. Jan 17 11:25:08 but is that the right way to compress? Jan 17 11:25:26 The first question, concerning the image, is whether you want to compress it losslessly or losely. Jan 17 11:26:04 Converting it to JPEG will compress it with loss. Then you can just send the JPEG bytes. Jan 17 11:26:05 well essentially it is the user's profile picture and I want to send it to the server which is taking the rest of the profile information at json Jan 17 11:26:38 Usually, profile pictures are reduced to thumbnails. Perhaps the device could reduce the resolution itself. Jan 17 11:26:48 So you'd have much less data to transmit. Jan 17 11:26:48 i am reducing it on the server side Jan 17 11:26:58 when storing it Jan 17 11:27:06 Some devices take 5Gpixel pictures… Jan 17 11:27:41 Err, 5 Mpixels, sorry. Jan 17 11:27:59 That's still big. Jan 17 11:28:01 I am relatively new to this whole android development to be honest so willling to try what is more efficient Jan 17 11:29:19 see http://xmodulo.com/2013/04/how-to-resize-image-captured-by-camera-in-android.html Jan 17 11:30:02 Once you have the byte[], you could send them in a POST or PUT request, instead of wrapping them in a JSON. (you could send the JSON in a separate request). Jan 17 11:30:39 The API of the server being better if designed in REST style. Jan 17 11:31:22 so essentially on the POST would i be sending both at once Jan 17 11:31:29 or I would have to do 2 POSTs? Jan 17 11:31:38 I wanted to send them both in 1 POST ultimately Jan 17 11:32:59 and the part that is confusing to me is where to include this exactly Jan 17 11:33:08 on the POST - preExecute? Jan 17 11:33:31 http://pastebin.com/XdRtiWqf Jan 17 11:33:35 hi, when running my apk, I get a noclassdeffounderror on a line where I instantiate a class from a jar-library.. the name of the class that cannot be found is "MyActivity$1", thus it seems to be considered as an inner class.... I didn't have this problem before... was it only coincidentally that it worked before? Jan 17 11:33:41 LoneSoldier728: I would send two POST. Jan 17 11:34:19 the problem with two POST is that I am storing all this info at once in the db Jan 17 11:34:24 LoneSoldier728: you could send a single POST, where you'd concatenate the JSON and the binary picture. But it would be simplier and better for forture evolutions to use two POST. Jan 17 11:34:55 so two POST will make it hard to identify what the image pertains too Jan 17 11:35:01 What data do you send in the JSON? Jan 17 11:35:08 Perhaps you could attach it as JPEG comments? Jan 17 11:35:09 like the name, Jan 17 11:35:18 etc Jan 17 11:35:33 Not at all, using the REST principle, the url would clearly indicate what object is modified. Jan 17 11:35:35 and on the server side (JSON wise) i am picking off the key value pair Jan 17 11:35:53 http://api/user/4242/picture http://api/user/4242/info Jan 17 11:36:18 that doesnt work? Jan 17 11:36:35 You have to program you server so it respects the REST principle. Jan 17 11:36:55 http://fr.wikipedia.org/wiki/Representational_State_Transfer Jan 17 11:36:55 actually i have a req.body and a req.files Jan 17 11:37:12 but on submit both get POST-ed at the same time I guess Jan 17 11:37:15 on my server side Jan 17 11:39:17 so then would I make a second postImage and do the same exact thing but just send the image Jan 17 11:39:24 and before sending the image compress it Jan 17 11:40:04 who in here has experience with static fragments? Jan 17 11:41:01 because when i remove "static" from the fragment classes, this happens: http://pastie.org/private/wokzr5afjvettt1mmywra Jan 17 11:41:51 i think they need to be static.. Jan 17 11:42:03 thought i barely have any experience Jan 17 11:42:06 -t Jan 17 11:42:40 well, when they're static, you can't use things like pager.setCurrentItem Jan 17 11:43:09 pager = (ViewPager)findViewById( R.id.pager ); Jan 17 11:43:52 lemonxah, Chainfire do I need to do something after connecting the HDMI cable to the device? or will the screen be automatically shared? Will the audio also be shared? Jan 17 11:43:55 and i have a question about how to collect all edittext values in one fragment and sending them to a server. :( Jan 17 11:44:20 can't you get the pager through the activity? Jan 17 11:44:33 set it as a property and then getActivity() in the fragment? Jan 17 11:45:03 mastro, its auto .. dont know about the audio only ever used it on projectors without sound Jan 17 11:47:34 lemonxah, I don't actually need the audio *now* but I may need it in the feature.. so I'm asking to be prepared Jan 17 11:49:25 WesleyL, what do you mean? Jan 17 11:50:34 in your activity the fragment belongs to, set the pager as a property of that activity Jan 17 11:50:52 then in your fragment, use getActivity() and then get the property you want Jan 17 11:51:06 im unsure itll work tho, no experience really Jan 17 11:53:41 i have no clue as to what you just told me Jan 17 12:03:36 WesleyL, care to elaborate? Jan 17 12:06:01 my android emulator is unable to ping the rest of the network Jan 17 12:06:19 it did get an ip from dhcp as netcfg is showing Jan 17 12:10:01 ughhhh Jan 17 12:10:09 ping in adb shell shows an 100% packet loss Jan 17 12:21:29 ISDP, activity / fragment communication should respect their lifecycle Jan 17 12:21:41 ehhhh...? Jan 17 12:22:15 ISDP, from the fragment you can use onAttach() onDetach() method to know when the fragment is attached to an activity or removed from it. and at that time you may cast the activity to some interface and store it in the fragment for use Jan 17 12:22:23 for example to delegate the on click on some button Jan 17 12:22:44 ummm... i don't quite understand, i've been up for over 24 hours now Jan 17 12:22:46 ISDP, on the opposite direction the activity should use FragmentManager to find a fragment Jan 17 12:22:53 could you dumb it down for me? Jan 17 12:23:22 is it possible for an activity to run on a lower resolution?? I have created a new activity and it looks a bit blurry.. oO Jan 17 12:23:26 ISDP, I can't it dumb it down more then that. how long have you been developing Android? Jan 17 12:23:48 i've developed for gingerbread :| Jan 17 12:24:08 so basically, i'm starting from scratch, but in this night i've already learned a lot. Jan 17 12:24:42 ISDP, so this is the first time you work with fragments? Jan 17 12:24:58 basically, yes. Jan 17 12:25:02 ISDP, you should really read http://developer.android.com/guide/components/fragments.html Jan 17 12:25:14 ISDP, and by "read" I mean to the end, with attention :) Jan 17 12:25:29 tried reading it but it's too much info for my autistic brain >_< Jan 17 12:25:49 that's why i ask so many questions ._. Jan 17 12:25:50 ISDP, you should also learn about loaders Jan 17 12:25:55 loaders? Jan 17 12:26:13 http://developer.android.com/guide/components/loaders.html Jan 17 12:26:42 ISDP, did you understood the activity lifecycle? Jan 17 12:28:55 and anyway, the whole point of using fragments is to have reusable modules you can combine together, so trying to do so with an inner class just makes no sense Jan 17 12:29:06 together with others Jan 17 12:31:37 TMI Jan 17 12:32:10 ISDP take your time Jan 17 12:32:20 mastro, the only thing i'm trying to do is create some code to click a button and then move to page 2 Jan 17 12:32:29 that's it, nothing more, nothing less. Jan 17 12:32:44 on page 2, i want to collect all form data and submit it to a webserver. Jan 17 12:34:48 eyo danijoo :P Jan 17 12:35:35 hi Jan 17 12:36:10 sup? Jan 17 12:36:29 what? Jan 17 12:38:27 ISDP, the point is not what you want to do. That's easy as hell if you know your tools. The problem is that you do not know how to use your tools and you should take your time to learn that Jan 17 12:38:52 ISDP, if you couldn't read that documentation and understand it then you should take more time to read it, try it and try to understand Jan 17 12:38:56 danijoo, what's up == sup Jan 17 12:39:01 then ask more specific questions on what you didn't get Jan 17 12:39:06 mastro, it's too much to process at the moment. Jan 17 12:39:20 and i have a deadline in about... 4 hours and 20 minutes. Jan 17 12:40:00 ISDP, harsh to say, but that's not my problem :) and I can't help you more then what I did. This is basic stuff, just do it without fragment if you know how to do it Jan 17 12:40:51 ugh. Jan 17 12:40:56 its funny that you're telling people to RTFM when you were asking questions easily Google'd and off-topic for the channel half an hour ago. Jan 17 12:42:36 Chainfire, how's the supersu app coming along? :P Jan 17 12:53:38 nobody that can help with the network issue in the android simulator? Jan 17 12:53:42 *emulator Jan 17 12:58:23 Ontani, Android emulator is NAT-ed so that's why ICMP probably doesn't go through Jan 17 12:58:39 hmm Jan 17 13:10:00 hmmm the browser app keeps crashing in the emulator Jan 17 13:22:53 What is the principle of android 4.2.2 behaviour when you clicking on the tab in ActionBar - usually loaded fragment or other activity? Jan 17 13:23:00 For example, click on the tab "About" displays a new screen with information about the developers. This screen - fragment or other activity? Jan 17 13:25:17 ContextWrapper : Proxying implementation of Context that simply delegates all of its calls to another Context. Can be subclassed to modify behavior without changing the original Context. Jan 17 13:25:17 Could anybody explain it to me ? Why this class is needed ? Jan 17 13:27:55 might be a workaround for lack of multiple inheritance. Jan 17 13:30:07 anyone want to create an alarm clock for me? Jan 17 13:33:42 it would get progressively louder, would be temporarily silenced by detecting motion abover a certaint threshold and would be turned off by scanning a QR code (place for example in the bathroom) Jan 17 13:33:57 hey folks ltns, anyone know the reason for "cannot open file" when someone tries to open an apk? works on all my devices but tester says on his s3 with android 4.1.2 he gets that message Jan 17 13:34:17 (the above text can also be provided without typos if requested) Jan 17 13:34:36 dont worry i dont think many coders can type anymore :) i know i cant Jan 17 13:34:57 is android studio developed by google folks or jetbrains and if the former how come they got to develop a "free" product based on the commercial licensed intellij editor? Jan 17 13:35:10 * Gaz` just made an app in codename one - very impressive! (apart from this weird error but i bet the tester is being a fool) Jan 17 13:36:21 rgr, android studio is based on the open source version of intellij Jan 17 13:37:01 rgr, Android Studio is developed by Google folks, but they basically merge opensource IDEA parts and IntelliJ merges Google patches back to IDEA as well Jan 17 13:37:26 they're usually no more than two weeks behind one another on features Jan 17 13:37:41 have to say I like it. Damn it. Spent ages getting familiar with eclipse too. gradle lights my fire too. Very nice. Jan 17 13:37:53 i think my NDK build is doing something suqirly, when i run the code it crashes but not in any of the sections i defined... i my JNI_OnLoad() does some data manipulation in buffers that were defined both at compile time and run time.. it complets its job and returns to where the onload was called and then segfaults Jan 17 13:38:17 i think the linker merged some libc sections with MY sections and im overwriting data that libc thinks it owns Jan 17 13:40:47 zeroXten: There is such an app already (at least with the qr code) Jan 17 13:44:33 bluesm: sweet Jan 17 13:44:35 * zeroXten googles Jan 17 13:46:29 so no one has seen "cannot open file"? Jan 17 13:48:15 Leeds, hows the chrome book :) Jan 17 13:48:21 zeroXten, pm me Jan 17 13:57:02 bah i wish there was someone here with some expertise at ndk dev Jan 17 13:58:12 hey so I was trying to use thMultipartEntity Jan 17 13:58:22 and it is depreciated and it says to use MultipartEntityBuilder Jan 17 13:58:37 but when I switch it out for that it does not recognize it as an import still? Jan 17 13:58:42 http://hc.apache.org/httpcomponents-client-ga/httpmime/apidocs/org/apache/http/entity/mime/MultipartEntityBuilder.html Jan 17 13:58:50 anyone understand what I am suppose to be doing? Jan 17 13:59:58 * Flank_Y320-U30 solved his problem by this topic http://stackoverflow.com/questions/5325002/activities-loading-xml-layout-dynamically-in-android Jan 17 14:08:30 as a programmer just coming to android dev, whats your advice (not wanting to get into the pros and cons of the respective phone OSen) for me regarding use CodeName One. Is it advisable to *start* with that or concentrate on Android APIs and then migrate to CodeName One? Jan 17 14:08:54 i don't even know hat CodeName One is Jan 17 14:08:59 ditto Jan 17 14:10:02 Good to know.. Jan 17 14:10:51 it's obviously not something widespread and well-known Jan 17 14:11:23 ive just finished an app in it Jan 17 14:11:48 i have a chan for it btw rgr #codenameone but what is your background? J2ME? Jan 17 14:12:32 * Leeds goes to t'other room to play with t'chromebook Jan 17 14:12:40 rgr - codenameone is so unandroid it wont help you learn android but it will let u make android apps, in a j2me/android style, Jan 17 14:12:44 Leeds: it seems to be. well reviewed. Plugins for all the main editors. cross platform. Jan 17 14:12:47 rgr: i would expect CodeName One development to be different from Android development Jan 17 14:12:57 well, of course it will be. Jan 17 14:13:07 it lacks the bells and whistles of "true" android apis tho, like even today i found you cant add a cc to an email yet for example Jan 17 14:13:22 rgr: well, that is to say... learn the one you want to use, because it probably won't have anything to do with the other. Jan 17 14:13:24 Gaz`: most cross platform stuff tends to be. Jan 17 14:13:28 urrrrk Jan 17 14:13:37 yes, but its native which is good, i mean compared to say phone gap Jan 17 14:13:42 zinx: its a cross platoform quite. Jan 17 14:13:47 so i fixed the button issue Jan 17 14:13:52 finally Jan 17 14:14:11 rgr: right, but learning Android won't help you learn CodeName One, and learning CodeName One won't help you learn Android. Jan 17 14:14:16 what's a good resource to find stuff about forms in fragments and how to send them to a server? Jan 17 14:14:27 rgr what other coding did u do before this? and what sort of apps you making? Ive just done 700 hrs of codenameone for this project so im pretyt good :) Jan 17 14:14:57 i mean avoid cn1 altogether if u dont intend to target anything outside android Jan 17 14:15:21 if u do itll save u infinite time on porting, i cant write obj-c well so i use cn1 for that, and some clients also want winphone/bb ;-/ Jan 17 14:15:31 Chainfire, I tried to help ISDP, that wan't a RTFM alone Jan 17 14:15:48 Chainfire, and I couldn't find that information on the internet Jan 17 14:15:54 Chainfire, that's why I asked here Jan 17 14:16:01 err, correct. However if you have any experience of cross platform you know that its sometimes better to be familiar with the native APIs in order to better understand and utilise the cross platform aspects since they frequently provide hooks into platform specific libraries via the target specific build process. Jan 17 14:16:12 cheers anyway. Jan 17 14:16:48 Morning Jan 17 14:17:39 sure, i did android for a good many years before cn1 Jan 17 14:17:49 well i still do.. also did j2me for 10 yrs Jan 17 14:17:50 ISDP, first on submit clicked grab all the data (and validate) from the form that you want to send over the network Jan 17 14:18:06 Chainfire, if you google about sharing android screen to TV or screencasting you find lot of stuff about rooted apps, not much about HDMI, and I wanted to know the method used in official conferences Jan 17 14:18:32 and then it depends on how you want to submit the data to the server, as an actual form submission (like html forms), or as a json post Jan 17 14:19:08 cn1 can fire off intents etc so that side is covered, you can even fir eup native webview and communicate with the java using js etc Jan 17 14:19:23 hdmi is a relatively well known one, alot of devices can do video out through the usb out Jan 17 14:19:26 jonc, the point is, the form is baked into a static fragment class Jan 17 14:20:26 and? in the createView function of the fragment, pull out all of the edit texts / other views you need data from (view.findViewById()), and with the submit button add an on click listener Jan 17 14:20:38 hey guys. I have to Calendar Objects. How can i get the difference between those two? Jan 17 14:21:02 In month. Jan 17 14:21:03 jonc, good idea, how do i convert the data to proper json though? Jan 17 14:21:18 any special functions for that, or do i have to use a library Jan 17 14:21:19 ? Jan 17 14:21:25 Put the data into a class and run it through GSON Jan 17 14:22:57 jonc, thank you :) Jan 17 14:23:18 you could also put it into a Map I believe, but having a seperate class will make things more maintainable Jan 17 14:23:39 a seperate class in a different file? Jan 17 14:23:43 or in the same file? Jan 17 14:25:01 doesn't really matter for now, but if this will eventually be used elsewhere in the app it'd be best to seperate it out Jan 17 14:25:25 is there anyone here with any exp developing custom NDK libs? Jan 17 14:25:50 i think the linker is overlapping some of my sections with the ones being used by libc Jan 17 14:26:15 im getting a segfault outside of my code but within my lib Jan 17 14:35:39 hey can someone help me out with this Jan 17 14:35:40 http://pastebin.com/5LmWmKXh Jan 17 14:35:53 FileBody and StringBody is depreciated Jan 17 14:36:03 and so was MultipartEntity Jan 17 14:36:25 so I added Builder like it said but it still has a red line underneath and says create a class etc... Jan 17 14:36:34 i say embrace depreciated methods! Jan 17 14:36:36 * Gaz` ducks Jan 17 14:36:44 haha Jan 17 14:36:46 I am basically trying to upload a picture and do not understand that part! Jan 17 14:36:47 haha Jan 17 14:37:33 http://stackoverflow.com/questions/19029268/how-to-upload-image-using-multipartentity-in-andorid-httppost Jan 17 14:39:05 ya he is using a depreciated thinga majig Jan 17 14:39:37 ah, sure i done this somewhere but cant find Jan 17 14:40:49 Do you know if I am calling it right anyways Jan 17 14:40:52 the way i have it all setup Jan 17 14:41:30 When we did this at my last job we were using an app engine which didn't allow for binary data to be sent, so we took the image, and base64 encoded it and just sent it as the post body Jan 17 14:41:49 a game engine* Jan 17 14:42:00 im not even sure, filebody doesnt ring any bells maybe i didnt do it in android Jan 17 14:42:11 so jonc Jan 17 14:42:18 how did you go about that Jan 17 14:42:24 I am fine with doing it that way Jan 17 14:42:33 is there a diff between it being binary Jan 17 14:42:37 or base64? Jan 17 14:42:50 base 64 is like 33% larger than it's binary Jan 17 14:42:54 Hi guys, i wanted to ask you that i want to have registration form with user's information on ftp server, is it secure to store all his personal information (not credit card just the adress , name, tel number) to .txt on ftp server , and then just let android grab it from ftp server if user is logged in ? Jan 17 14:43:32 dosp, i think only wih ftps Jan 17 14:43:36 and then you have to turn it back to to a byte array on your server Jan 17 14:43:48 oh so no point then Jan 17 14:43:49 ordinary ftp isnt massively secure but secure enough ,but its unencrypte di think so u could sniff stuff Jan 17 14:44:31 aha alright, and how it goes with ftps ? does the login from androdi side is coded differently ? I am using Oracle commons library for ftp netvorking Jan 17 14:44:33 do you know what i am doing wrong in my setup? Jan 17 14:44:52 i havent tried ftps but maybe its all nice, :) Jan 17 14:45:04 implementation is probably almost identical Jan 17 14:45:14 http://stackoverflow.com/questions/6360207/android-sending-a-byte-array-via-http-post Jan 17 14:46:02 well because the guy i'm doing it for has his own website hosted, and he have ftp server on it . But if its just some extra setup on server, or he need to switch hosting because its like different service , i dont know this hosting / server stuff Jan 17 14:46:27 that has answers for sending binary data to a server, which I believe images are the same, just with a different content-type Jan 17 14:47:26 the link Gaz gave will give you an entity that can be sent to the server Jan 17 14:47:57 DOSP might be much nicer to write a php script to return the info you need, that is secure Jan 17 14:48:08 and store the login details on a DB Jan 17 14:48:20 Mornin'! Jan 17 14:48:44 DOSP i have actually used the fps approach like you are, when it wasnt life or death :) Jan 17 14:48:55 Is everyone ready for an action-packed day of Android development?! Jan 17 14:49:15 ironmarx not really i just done 19 hrs of it :( Jan 17 14:49:32 LoneSoldier728, you can use MultipartEntityBuilder Jan 17 14:49:38 http://hc.apache.org/httpcomponents-client-ga/httpmime/apidocs/org/apache/http/entity/mime/MultipartEntityBuilder.html Jan 17 14:49:59 ironmarx, at 4pm? Not really :P Jan 17 14:50:20 3 day weekend <3 Jan 17 14:50:25 hey Jan 17 14:50:44 android doesnt have a udev, then how things work out? Jan 17 14:50:56 udev? Jan 17 14:51:05 Gaz, can you point me in tutorial or maybe how is the topic called , retrieving info through php android ? Also, so if it was secured ftp it shoyld work just fine , right ? Jan 17 14:51:09 Going to run to radio shack tomorrow morning and buy some things to make a bass controll circuit, my home pc speakers are too bassy and can only be controlled by a remote (which I lost years ago) Jan 17 14:51:20 why would android need a udev ? Jan 17 14:51:56 Gaz`: http://lwn.net/Articles/331818/ Jan 17 14:52:06 DOSP, if you ever plan on doing anything more I suggest a database + php server (can write a web server in java, but if you haven't done it before, don't do it right now) Jan 17 14:52:07 DOSP i believe secure ftp would probably be ok, but the usual thing is to do it like this, http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ Jan 17 14:52:09 there's a quote with it Jan 17 14:52:32 DOSP: how is the user logging in? Jan 17 14:52:33 PackageInfo.lastUpdateTime - The time at which the app was last updated. Jan 17 14:52:44 Is this the build time or the time on the device? Jan 17 14:52:58 the time the app was installed/updated on the device Jan 17 14:53:14 youll get a lovely warm fuzzy feeling once all the php is working and it logs in, not like that semi unsatisfying feeling of knowing u used ftp to cheat :) but it depends on circumstances Jan 17 14:53:31 haha Jan 17 14:53:51 jackneill ah this is way beyond me :) Jan 17 14:54:36 also use some form of session management, the place I am at currently doesn't use session management, you login, but every web call past the login page you just send a userid and then get their data back (we still have 8 months to fix it but the server lead is fighting me on it) Jan 17 14:54:50 mikedg The user is logging in by filling the form in android, and that is sent to ftp server for verification and if verified server lets him in and THEN the .txt with information is readed to android back so it can be used later in another activities Jan 17 14:55:17 so every user has their own ftp account? Jan 17 14:55:42 :) Jan 17 14:55:55 DOSP, how does a user register? Jan 17 14:56:30 on website or in android, didnt make a choice yet, please advise me for best approach Jan 17 14:56:42 if on a website you will already be using PHP Jan 17 14:56:49 most likely php* Jan 17 14:57:16 well php its not my part , that thing is doing another guy Jan 17 14:57:26 what is this rube goldberg machine being built here Jan 17 14:57:46 lol... alankila Jan 17 14:58:06 by the time you get the php registration working that creates an ftp user you could have already setup a set of commands with mysql + php to register a user Jan 17 14:58:10 blind leading the blind :) Jan 17 14:58:32 mikedg well i considered that best approach would be to sign in every user since the application is dedicated to transfer images from your phone over ftps to server where it goes to the photo machine to print them . Jan 17 14:58:37 especially since mysql + php for login / registration is a relatively common thing and there are shit tons of tutorials Jan 17 14:59:27 jonc, i know how to do it, but its not my part, this will be soon done by guy who is doing php , my part is just to make ftp connection, login , and trasnfer, Jan 17 14:59:42 too much coding for one day, good bye people Jan 17 14:59:53 later Gaz Jan 17 15:00:08 then why store address and other user information through ftp? Jan 17 15:00:09 i know i could do that and that in php i done it few times, but i am not really willing to do it.. (you wouldn't too , trust me .. ) Jan 17 15:00:38 i need a good image upload-er tutorial Jan 17 15:00:48 jonc, because i was considering a android registration., but lets say it wont be sending them ,, but rather retrieving this information Jan 17 15:00:56 LoneSoldier728, use the code you already have but use MultiPartEntityBuilder Jan 17 15:01:07 i tried that Jan 17 15:01:17 but it still red lines me Jan 17 15:01:21 saying to create a class Jan 17 15:01:25 LoneSoldier728 stackoverflow and google are your friends Jan 17 15:01:29 if it is retreiving the information have it stored in the database, make a call to a webserver (a php page) that sends the address back as json data Jan 17 15:01:38 LoneSoldier728 maybe u didnt inport the right thing or something Jan 17 15:03:58 hey guys, I'm looking for advice on how to structure an app that will be compile to numerous versions. In iOS there is a something called "deployment target" so each "target" can load separate settings, assets etc. Is there anything similar in android? If not how should I approach this problem? Jan 17 15:04:29 MultipartEntityBuilder I believe is part of org.apache.httpcompents (can get it through maven) Jan 17 15:05:04 http://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore/4.3.1 Jan 17 15:05:07 try that Jan 17 15:05:17 jonc, propably will not do it through database, because the owner and the guy who asked for app , is not willing to pay for that . So i can do it really secure-crapped , because i dont really care about those "experts " Jan 17 15:05:52 mysql is free Jan 17 15:05:58 php is free Jan 17 15:06:22 the only thing they MAY have to do is pay for hosting, but if they have a website most hosting companies give free mysql databases Jan 17 15:06:28 upto 1-2gb Jan 17 15:06:46 jonc, dont say that to me , say it to him, he dont want to pay his programmer for setting things up Jan 17 15:06:50 php guy Jan 17 15:07:14 tell him that it will be more expensive for you to do the workaround with ftp Jan 17 15:08:03 because in all reality, you'd have to write a script that gets run to create a new ftp user and sets permissions for that user on specific folders anytime someone registers through the app Jan 17 15:08:05 or even through the website Jan 17 15:17:30 ok jonc how do i use that exactly... Jan 17 15:17:48 like what is through maven exactly Jan 17 15:17:54 im pretty new to this android dev Jan 17 15:18:06 have you used GSON at all? Jan 17 15:18:12 nope Jan 17 15:18:21 fffffffffffffffffffff- Jan 17 15:18:50 file->project structure Jan 17 15:18:55 jimmyff, em Jan 17 15:18:55 then dependencies top right Jan 17 15:19:07 jimmyff, I think you're looking a little bit too much through iOS glasses Jan 17 15:19:10 hit the green + Jan 17 15:19:22 jimmyff, you set target to 19 and just make sure you don't call things that aren't available on older OS on device that has older OS. Jan 17 15:19:38 in eclipse jonc Jan 17 15:19:50 gotcha Jan 17 15:20:02 then I don't remember :P Jan 17 15:20:05 because in file i dont see project structure Jan 17 15:20:55 Variable 'dataView' is accessed from within inner class. Needs to be declared final. :| Jan 17 15:21:06 Mavrik: sorry, bad explanation, I have a white-label app, it needs to be compiled in to various differently branded apps. Each one communicates with a different API so the app is functionally different, but the code is the same, just a different settings file & resources (logos etc) Jan 17 15:21:11 what does that mean and is AS right about making it a final? Jan 17 15:21:25 jimmyff, oooohh... hrm Jan 17 15:21:29 jimmyff, Gradle has build profiles Jan 17 15:21:40 so check those, they're made for this use case Jan 17 15:21:43 oh okay, i'll have a look Jan 17 15:21:44 I wouldn't know about maven though Jan 17 15:21:49 or ant :) Jan 17 15:21:55 yeah, grade is good Jan 17 15:21:56 thanks Jan 17 15:22:10 or make a library of common functionality and just assemble it into each final app using thin shims that leave flexibility to develop the applications to any direction that need may arise... Jan 17 15:22:43 Mavrik: you sure grade supports profiles? Jan 17 15:22:50 yes Jan 17 15:22:59 I'm very sure they were touting that support on I/O :) Jan 17 15:23:56 kk, just hunting down the docs Jan 17 15:24:12 they might not be named profiles :P Jan 17 15:24:24 jimmyff, http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants Jan 17 15:24:38 Is there any way I can overload DigitalClock or TextClock for more control? For example, our designer insists on lower case am/pm. Jan 17 15:24:53 thanks Mavrik :D Jan 17 15:24:55 I'm already using format strings with TextClock. Jan 17 15:25:00 If I have an ImageView, what can I use to animate zooming into a sub-rectangle part of the image? Jan 17 15:26:35 in the name of god, what's a simple way to do a reliable and stable network request to a REST api? Jan 17 15:26:43 retrofit Jan 17 15:26:51 retrofit. Jan 17 15:26:54 seriously, i'm sifting through retrofit, robospice, okhttp, and more Jan 17 15:26:56 pellis: why isn't URLConnection working out for you? Jan 17 15:27:02 all these concepts… i'm going crazy Jan 17 15:27:05 retrofit with okhttp actually :) Jan 17 15:27:11 retrofit with okhttp. Jan 17 15:27:23 (okhttp is a http client wrapper, not a library for doing requests for you) Jan 17 15:27:25 Android keeps showing me it has a miserably broken developer experience. so many concepts for a simple thing to do. Jan 17 15:27:34 pellis: welcome to the suck. Jan 17 15:27:42 you cool kids and your tools. I've never even heard of retrofit... Jan 17 15:28:07 storkme, i'm honestly stomped. didn't expect this, and now i'm neck deep. Jan 17 15:28:19 what exactly did you expect? Jan 17 15:28:23 the gradle generation Jan 17 15:28:38 yes, I use retrofit with okhttp right nwo Jan 17 15:29:10 LoneSoldier728 see pm :) Jan 17 15:29:23 Mavrik, i would expect such a common use case to come in a fluffy, ribbon wrapped box. ready for the developer to consume, from Google themselves. instead, i'm looking at a toolbox packed with a ton of tools and manuals. Jan 17 15:29:26 LoneSoldier728 http://pastebin.com/vJ32DM6s Jan 17 15:29:43 pellis, the thing is Jan 17 15:29:48 we don't want this in a fluffy box. Jan 17 15:30:03 fluffy monolithic boxes are evil. Jan 17 15:30:07 :-) Jan 17 15:30:27 Mavrik, no one said lock in. open to extension, closed to modification. Jan 17 15:30:28 Google created Volley and threw it over the wall without manuals or Android API integration... the community built Retrofit as a better option Jan 17 15:30:43 Well, Square being the community Jan 17 15:30:47 ok, Volley was a joke :) Jan 17 15:30:59 also Volley doesn't do what retrofit does ;) Jan 17 15:31:05 (you can actually use both) :P Jan 17 15:31:05 i'm talking about this: https://raw.github.com/octo-online/robospice/master/gfx/RoboSpice-InfoGraphics.png Jan 17 15:31:06 agreed Jan 17 15:31:17 pellis, there's tons of very good libraries you have to just add dependency to Jan 17 15:31:26 there's a freaking info graphic to making a simple REST request. Jan 17 15:31:32 the only other thing that seems to compete with Retrofit is Ion... I haven't used it Jan 17 15:31:46 also AndroidAnnotations and some other new lib do the same Jan 17 15:31:51 RoboSpice yea Jan 17 15:31:53 pellis: yeah, asynchronous stuff with android is a bit of a mess. Jan 17 15:32:35 storkme, I'm just wondering if in iOS its the same. i don't have the mental capacity to dare to check :( Jan 17 15:32:35 robospice sounds like it might, if carelessly implemented, also spice up application memory usage. Jan 17 15:32:58 last I checked you had to use external library to get a sane JSON parser on iOS Jan 17 15:33:07 ios has a lot of issues too. Jan 17 15:33:09 pellis: nah, iOS is way more focused overall, but the tools can be pretty basic Jan 17 15:33:10 then again, you have storyboards Jan 17 15:33:27 last time I wrote some SOAP shit on iOS -- literally my only iOS application -- I just concatenated strings and used the default async http client provided Jan 17 15:33:54 do iOS also have this async mess? Jan 17 15:34:06 everything has an async mess Jan 17 15:34:13 I don't think I can answer that question with either yes or no. Jan 17 15:34:44 and that image is mostly a joke... Jan 17 15:34:47 It's great if you design everything perfectly from start though. Lord knows Android could have used some more of that. Jan 17 15:34:54 especially as what is perfect changes over time Jan 17 15:37:07 and imho android could have been more opinionated. I tend to like that kind of software where you have only one way to do things and everyone either does that or shuts up. But plurality is definitely android's style. Jan 17 15:37:24 so, to make a REST request, reliably - retrofit, volley, robospice, or okhttp? Jan 17 15:37:33 pellis, that's like asking Jan 17 15:37:34 retrofit + okhttp Jan 17 15:37:43 pellis, "I need to drive somewhere, so wheels, engine or chairs?" Jan 17 15:37:52 storkme, doesn't retrofit use okhttp internally? Jan 17 15:37:58 I'd just do it by URLConnection. It's usually not the making of the request that's hard, it's handling the response if all the platform objects meant to handle it are now suddenly gone Jan 17 15:38:12 pellis: i'm not sure, it may do Jan 17 15:38:34 jonc, how do i fix this properly? Jan 17 15:38:35 Variable 'dataView' is accessed from within inner class. Needs to be declared final. Jan 17 15:38:43 pellis, yes, retrofit will use okhttp if it's available. Jan 17 15:38:50 tried using dataview in the onclicklistener Jan 17 15:38:54 and Android's Http client if it isn't Jan 17 15:39:07 ISDP: so make it final so that stupid java can safely copy the variable into that inner class Jan 17 15:39:19 or... you might even have to setup it to use OkHttp manually, don't remember exactly Jan 17 15:39:28 Mavrik, so i need to use robospice to handle all these edge cases where my request will die between activities, etc? Jan 17 15:39:31 ISDP, make dataview final when you pull it out Jan 17 15:39:42 pellis, if that's how you want to use it Jan 17 15:39:48 pellis: no, it's more like vice versa. Where your activities die between requests Jan 17 15:39:51 or you can just structure your app better Jan 17 15:39:52 or make a temporary variable: final finalDataView = dataView; Jan 17 15:39:52 Hello guys, I have a quick question. I have a peace of code : "if(pager.getAdapter() instanceof IconTabProvider)", it looks for if pager has implemented IconTabProvider? Jan 17 15:40:05 and then access it inside the onClickListener Jan 17 15:40:14 vegetablesalad19, yes. Jan 17 15:40:38 pellis: the requests in general succeed. All these libraries are based on doing some tcp transaction with some http server anyway. Their reliability is the same. Jan 17 15:40:59 it is what you do when the request is done where android presents a difficulty because the lifecycles of all platform objects are controlled by android and not you Jan 17 15:41:19 Mavrik: hmm ok I thought so, but for some reason it doesn't work. Must be something on my part. Thanks Jan 17 15:41:26 a simple answer is to post an intent that states 'here's the new data' and provide a method to get that new data if activity or whatever doesn't happen to exist at that precise moment the intent is broadcast Jan 17 15:41:43 so not everyone uses robospice? Jan 17 15:41:50 these loaders might do the trick as well. I've not spent any time on that. Jan 17 15:42:02 Mavrik, just to make sure, it should implement, not extend ? Jan 17 15:42:16 you extend classes and implement interfaces. Jan 17 15:42:21 you get compile error if you do the wrong thing Jan 17 15:42:27 ISDP, a final variable means it can only be assigned to a single time, this way inside of the inner class you can't change the reference or create a new instance and assign it to that variable Jan 17 15:43:26 it also means that when the inner class finally is called (onClick) you are sure that what you are acting upon is what it was initially set to Jan 17 15:44:42 in what scenarios will an instance of an activity be destroyed, the views and saved instance state will be present? Jan 17 15:44:59 mainly, what can cause something like this: http://stackoverflow.com/questions/18873204/android-custom-view-is-recreated-twice-on-orientation-change-the-second-time-wi Jan 17 15:45:43 Mavrik, thank you. I implemented it to wrong class, works now! Jan 17 15:48:53 can i use just HttpURLConnection and gson to make a REST call, and get the result as a dictionary? Jan 17 15:49:21 pellis, yes Jan 17 15:49:54 i find that easier than including the array of objects, managers, services, requests, etc. to make a simple API request. am I horribly wrong here? Jan 17 15:49:57 to be more explicit though I would suggest making a class that is representative of the result Jan 17 15:50:11 pellis: no, all that stuff is generally just fancy way to do the same thing Jan 17 15:50:44 I prefer not utilizing libraries if possible, and writing the simplest possible thing that can work Jan 17 15:50:59 aka. wasting time. Jan 17 15:51:04 so I'm very much not touching any of that stuff like retrofit unless I can see a good reason to. Jan 17 15:52:01 i'd like something like json.get("path.to.nested.field") - is there such a thing? Jan 17 15:52:26 simple-json comes closest I guess, though you have to access every level of element by one call Jan 17 15:52:33 I've made a wrapper around loopj's library (made awhile ago), for every network call I will want to make I just make a class that implements an interface that returns data needed for the call (Post, uri, any uri parameters, jsonbody) Jan 17 15:52:51 I have used that sometimes but it's kind a painful, I suppose. Jan 17 15:52:55 and I tell it the class I expect back as a response from the server and it will parse the json Jan 17 15:53:38 iirc android has something like simple-json built in. JSONObject or something. Jan 17 15:54:17 so to make a network call it is: networkCall(callObject, responseListener) Jan 17 15:55:19 but I also set header information and shit like that for all of my calls, so having a wrapper around the networking that does that automatically everytime is nice Jan 17 15:57:49 Mavrik: I think the general answer is that for someone who feels overwhelmed by the apparent complexity of a task is to first learn to do it simply and then add complexity on top of that based on experienced level of pain of the chosen solution. Now, there's much to be said for an expert type of person just handing out the best possible solution in silver platter, but even if you try there's still a chance that the person receiving that advice is not r Jan 17 15:58:42 there's learning Jan 17 15:58:49 and then there's actually building something. Jan 17 15:59:26 wasting time writing out full JSON parsing routines with HTTP error handling and Async thread handling for 10th time when a community can build something like that tested and reliable is... waste of time. Jan 17 15:59:28 but imho doing a http request and getting it parsed as json is about 3 line task Jan 17 15:59:29 android has org.json built in Jan 17 15:59:30 it sucks Jan 17 15:59:52 so I can't see a whole lot of effort going into this. Jan 17 16:00:54 now if asynctask must be created and executed, that adds to it. And if you have to have a static method or something to serve as facade for the machine and to fire intents and so on, that adds lines. This is the difficult part when it comes to android, truly. Jan 17 16:01:06 alankila, it depends if you want to deal with sending post data also and possibly gzipping all data and expecting gzipped data back Jan 17 16:01:36 setting header information for all calls that will be made etc. Jan 17 16:02:03 if your entire app only needs 1 call, then just use an httpurlconnection, anything else is overkill Jan 17 16:02:06 jonc: eh, yeah there's that sort of stuff. If you have to handle gzip encoding, you'll be wrapping the URLConnections inputstream into a gzipinputstream Jan 17 16:02:27 but it's not *very* interesting to most use cases Jan 17 16:02:32 I believe httpurlconnection is blocking, which is something I avoid at all costs Jan 17 16:02:49 especially if this would be run on the main thread Jan 17 16:02:57 do you have an event-driven channels core that doesn't use streams? Jan 17 16:03:14 if not, you're probably blocking somewhere anyway, just in a thread that's hidden from view Jan 17 16:03:20 and that's fine Jan 17 16:03:35 but I don't want to make a call that I know is blocking on my main thread Jan 17 16:03:47 you actually can't Jan 17 16:03:53 you get an exception if you try :P Jan 17 16:04:02 NetworkOnMainThreadException ;) Jan 17 16:04:15 anyone know if you can add animations to FragmentTabHost? for switching tabs Jan 17 16:04:28 did not know that Mavrik, never tried :P Jan 17 16:05:13 networkonmainthreadexception can be disabled Jan 17 16:05:19 but yeah, probably not a good idea to Jan 17 16:07:36 Hi, I have a MainActivity that has a ListView that will load data from an API. But if there is no current user, the LoginActivity is launched. After successfully logging in, I want to the MainActivity to "reload" so that the check for a current user is executed again (in onCreate) and the list will get populated. Jan 17 16:08:28 ejb, call finish() when you call login activity_ Jan 17 16:08:29 ? Jan 17 16:11:23 Mavrik: I am doing that in an asynchtask Jan 17 16:11:44 and the MainActivity appears but the code that checks for a current user (in onCreate) isn't executed again Jan 17 16:12:22 Is there some other method that I should do the check in? Jan 17 16:12:59 ejb, onResume Jan 17 16:13:08 http://developer.android.com/reference/android/app/Activity.html Jan 17 16:13:28 check if they are logged in in the onResume function of the activity Jan 17 16:13:48 ok Jan 17 16:15:55 juste a little question please : is it possible to make an android lib, based on an external lib, to be used in an android app ? Jan 17 16:16:21 HELLO Jan 17 16:16:33 I cant figure out for the life of me the difference between Jan 17 16:16:39 channels with ## and # Jan 17 16:16:42 what gives. Jan 17 16:17:27 we could tell you but we'd have to kill you Jan 17 16:25:35 this is pretty cool - finally! https://github.com/kevinsawicki/http-request Jan 17 16:29:41 I am trying to use ObjectAnimator, but I am not sure how to get the right target. I am using ObjectAnimator.ofFloat(mImageView, View.SCALE_X, startScale, 1f), but I keep getting errors that this version of ofFloat doesn't exist Jan 17 16:37:16 https://github.com/emilsjolander/sprinkles/ this is a great library Jan 17 16:40:11 that *does* look nice, yes :) Jan 17 16:40:53 So I'm a noob Jan 17 16:40:55 So bear with me Jan 17 16:40:57 But Jan 17 16:41:03 Here's an interesting question: Jan 17 16:42:07 Suppose I want to merge three APKs so that when one is installed, it actually installs three (almost) seperate apps. Jan 17 16:42:12 bear with a wolf? I put my money on the bear Jan 17 16:42:43 Now, these other two apps are actually xposed modules for one of the apps. Jan 17 16:42:44 Is this possible? Jan 17 16:42:48 Trying to use progurad, but it looks like people are getting a proguard-project.txt that has some function in it already. Mine came up blank. Any ideas on what to put in a proguard-project.txt. I understand its different for every application, but there is probably something that EVERY android app needs to have in their proguard0project.txt? I'm thinking something along the lines of: -keep public class * extends android.app.Activity Jan 17 16:43:15 eghdk, stuff that every android app needs to have is already in a base proguard file Jan 17 16:43:22 eghdk, proguard-project is stuff specifically for your project only Jan 17 16:43:37 jonc: wolf on a sandworm? bet on the worm Jan 17 16:43:50 Because, if I understand correctly, xposed modules just change the apk before it loads, right? Jan 17 16:43:50 or er Jan 17 16:43:52 how do I say thios Jan 17 16:43:54 *this Jan 17 16:44:18 exposed modules, what? Jan 17 16:44:26 I fucking hate having to use xposed Jan 17 16:44:34 a single app can have multiple launcher icons Jan 17 16:44:36 wtf is xposed Jan 17 16:44:46 It feels like some sort of cancer is taking over my phone Jan 17 16:44:55 pfn: Is it!!! Where do I find that base proguard file? Jan 17 16:45:02 eghdk, in the sdk Jan 17 16:45:07 I've created a custom view which uses ShapeDrawables and BitmapDrawables. OnDraw(), I draw them on the canvas. Later I'm trying to addView(customView) into an otherwise blank HorizontalScrollView. Nothing is showing up, and LayoutParams are null. Am I missing something? Jan 17 16:45:13 Leeds, beetlejuice, beetlejuice, beetlejuice Jan 17 16:45:51 pfn: xposed is a framework for injecting (may be the wrong term) stuff into the system at runtime to modify/override system behaviour Jan 17 16:45:55 Hmm…. pfn So why do people post examples of their project-properties with something like ` -keep public class * extends android.app.Activity`. Are they basically just including it for no reason? Jan 17 16:46:04 doesn't have to be system Jan 17 16:46:05 eghdk, it's unnecessary Jan 17 16:46:07 I mean Jan 17 16:46:09 aapt does that automatically Jan 17 16:46:26 people post their examples incorrectly Jan 17 16:46:28 most commonly used to modify system behaviour... Jan 17 16:46:29 what does okhttp give me actually? i can't understand why its so good? Jan 17 16:46:55 it just does connection pooling, keepalives, spdy, automatically Jan 17 16:47:02 without having to use a strangely different api Jan 17 16:47:03 "I extended the /system/bin/app_process executable to load a JAR file on startup. The classes of this file will sit in every process (including the one for system services) and can act with their powers. And even more: I have implemented something that allows developers to replace any method in any class (may it be in the framework, systemui or a custom app)." Jan 17 16:47:03 Hmm… it has struck my curiosity. Do you know of the top of your head where in the sdk it is located (the base proguard) Jan 17 16:47:15 eghdk, learn to use the find/grep command Jan 17 16:47:36 pfn: Time to use linux/osx…? Jan 17 16:47:37 Wolfdune, #android-root Jan 17 16:47:38 lol Jan 17 16:47:44 you can do it in windows Jan 17 16:47:50 or just install a grep command Jan 17 16:47:50 really? Jan 17 16:48:17 dir /s Jan 17 16:48:25 find "foo" Jan 17 16:48:29 Interesting. Well thanks again pfn. Proguard is becoming a pain in the ass. Mostly because all of the Android documentation is incorrect/outdated Jan 17 16:48:43 * pfn uses proguard on a daily basis Jan 17 16:48:44 * pfn shrugs Jan 17 16:49:46 pfn: Really? Great. I will definitely let you know if I have any more questions. I consider myself pretty new to Android/Java/OOP/ and programming as a whole, so all of this stuff is very difficult for me. But I appreciate the help. Jan 17 16:50:24 if you're new, why even bother with proguard Jan 17 16:50:39 as if obfuscation will add value to your code... Jan 17 16:50:48 or protect its value Jan 17 16:52:44 so Jan 17 16:52:51 nobody has any idea? Jan 17 16:53:23 Wolfdune, #android-root Jan 17 16:53:31 already asked there Jan 17 16:53:31 don't know, don't care what xposed is Jan 17 16:53:33 no response Jan 17 16:53:36 yeah, this isn't the place to ask Jan 17 16:53:42 ask whomever supports xposed Jan 17 16:53:44 I'm sorry, jesus Jan 17 16:54:03 I would, but he generally doesn't answer xda pms and I don't know where he hangs out on IRC Jan 17 16:54:35 what's your problem with xposed ? Jan 17 16:54:36 pfn: I'm working through all of the android tools, to learn them for possibly finding a job. Jan 17 16:55:03 bubbleguuum: I want to merge three apks. Two of the three apks actually contain xposed modules for the first apk. I want to be able to install ONE app and make it have the features that the two modules give. Jan 17 16:55:24 pfn: I searched for progurad and in the sdk, I get a ton of files… which one would is the "base" proguard that you mentioned before? Jan 17 16:55:50 a ton? there's only a few Jan 17 16:55:56 Wolfdune: I haven't tried but from what I understand on how xposed modules are loaded, you can have your main app apk also contain your xposed modules. All within a single APK Jan 17 16:56:28 that's what I'm trying to achieve. I tried decompiling the apks and.. er... "merging" them, but I have no idea what I'm doing Jan 17 16:56:30 pfn: I get 13 files that begin with "proguard" Jan 17 16:56:31 To be completely honest. Jan 17 16:58:12 that's a ton? Jan 17 16:58:32 I thought they're be proguard-base or something =/ sorry Jan 17 16:58:45 Woldune: I don't think you can have several xposed module declared in a single APK though Jan 17 16:58:46 there'd* Jan 17 16:59:07 * Wolfdune waves at Chainfire_ Jan 17 17:00:03 otherwise you can bundle your module apk as raw resource (or asset) and have your main app trigger install Jan 17 17:00:18 hm Jan 17 17:00:19 interesting Jan 17 17:01:39 What is the best way to handle dependencies if using Eclipse ADT in a multi developer environment? Jan 17 17:02:44 pfn: How do I tell proguard how many rounds to make to obfuscate it? Jan 17 17:02:59 eghdk, by reading the proguard docs Jan 17 17:03:21 heh. touche. But seriously. Can you point me to the base file? Jan 17 17:03:30 it's 13 files Jan 17 17:03:34 identify it yourself Jan 17 17:03:43 if you ever updated the other APK's you'd have to set up a download system in the apps to try and download an updated version and install it Jan 17 17:04:21 Im catching a strange error with surfaceview. Unlock canvas object must be the same instance as was previously returned by unlock. Jan 17 17:04:24 http://pastebin.com/uvnn6Q0H Jan 17 17:05:42 yet, i use holderr = getHolder(); then Canvas c = holder.lockCanvas(); and finally holder.unlockCanvasAndPost(c); Jan 17 17:05:53 where am i going wrong? Jan 17 17:08:27 a fragment's getActivity() function, is that useable in the constructor of the fragment? Jan 17 17:11:42 *sigh* canvas was null on the first itteration. Please disregard my question, tnx Jan 17 17:12:05 jonc: you can't do *anything* where you don't get Context as argument in constructor that involves android objects Jan 17 17:12:48 getActivity specifically is available after activity has been attached. That is in the onAttach. See fragment lifecycle. Jan 17 17:13:57 anyone know why the demo of FragmentTabHost uses a dummy content view? Jan 17 17:18:27 Is there a way to play music via a WebView and keep it playing while the WebView is in background? Jan 17 17:19:36 say I would want to open up a youtube page within my app and play just the music of a certain video. Jan 17 17:23:23 I am sure there is a way, but it probably wouldn't be simple Jan 17 17:24:02 you can go through the html of the page find the link to the actual video, start downloading that and pulling out just the audio and run that on a background thread Jan 17 17:31:46 Hey Jan 17 17:37:07 How would I go from a RectF with coordinates on an image, and zoom into those coordinates and make that sub-image fit to screen Jan 17 17:40:43 <_emmanuel_> TGMCians ping Jan 17 17:41:30 <_emmanuel_> hello all Jan 17 17:41:56 jonc: hm yea that does sound indeed complicated. if not impossible, because I would need to do this with a flash web player Jan 17 17:47:37 MrMaffen, there are some services that allow you to send the link of a youtube video to them and then get an mp3 back Jan 17 17:47:48 Heya, Somebody sleeping here ? Jan 17 17:48:05 I believe you are hitting gray territory though Jan 17 17:50:15 hey should i be doing the image upload as an Async Tas Jan 17 17:50:16 Task Jan 17 17:50:39 Yes it would be better Jan 17 17:51:23 http://pastebin.com/YyzTNG87 Jan 17 17:51:41 when calling this class I am having an issue with async then when changing it from String to Int Jan 17 17:51:43 Let me check Jan 17 17:51:46 as the return's are Ints Jan 17 17:51:53 thanks Jan 17 17:52:48 what do you mean ? Jan 17 17:53:13 private class doFileUpload extends AsyncTask { Jan 17 17:53:19 I'm trying to replace all instances of an import statement in Eclipse. I do a search and replace with **blank** and it give me an error. I just want to "erase", not really replace. Any way to do this? Jan 17 17:53:36 that line expects an Int but at the same time I am calling Jan 17 17:53:49 doFileUpload with the imagePath which is a string Jan 17 17:54:11 as you see all my return's they return a response code that is an int Jan 17 17:56:45 any clue Jan 17 17:57:22 AsyncTask ? Jan 17 17:57:35 protected Int doInBackground(Int... arg0) { Jan 17 17:57:43 how can it work Jan 17 17:58:20 the doinbackground function will accept String variable as its parameter Jan 17 17:58:33 as you set already Jan 17 18:01:48 TGM is here! Jan 17 18:02:22 Yeah Jan 17 18:02:30 Me too Jan 17 18:02:33 here Jan 17 18:02:45 ya Jan 17 18:03:16 right i understand so I am not sure since a String is passed in Jan 17 18:03:50 and an Int is being returned as I am passing back a response code... : / Jan 17 18:03:53 http://stackoverflow.com/questions/21192778/trying-to-use-async-with-image-upload-to-webserver-android Jan 17 18:06:11 it has been two days now that I have been working on this image Jan 17 18:06:18 I must say i learned a bunch but still Jan 17 18:07:34 Is there something like google web master tools for android apps? I would like to see what my users are clicking, and if they are going to certian parts of the application. Jan 17 18:08:15 Yeah Jan 17 18:08:29 You can use the Google Analytics SDK for Android app Jan 17 18:39:49 Alright Jan 17 18:39:51 I'm done Jan 17 18:39:59 I'm fucking done with IntelliJ's Gradle bull shit Jan 17 18:40:13 It's total 100% shit Jan 17 18:40:40 you should just quit development altogether Jan 17 18:40:44 One week of Googling and still no answer, no answer on the YouTrack. More errors and all of the other shit Jan 17 18:40:50 pfn, explain this to me then: Jan 17 18:41:07 Dreeass, that was pretty much the sentiment I had when I dealt with gradle :) Jan 17 18:41:08 I started Gradle and stuff. It asks me to install 1.8 instead of 1.10 which I had running Jan 17 18:41:17 So I install 1.8 instead Jan 17 18:41:20 What does it ask? Jan 17 18:41:29 It requires 1.9 suddenly Jan 17 18:41:45 Alright, installing 1.9. What does it ask? Please install 1.8.... Jan 17 18:42:02 just use gradlew, why are you installing Jan 17 18:42:16 pfn, I mean downloading. Jan 17 18:42:30 pfn, the IntelliJ gradle implementation is horrible totally horrible! Jan 17 18:42:53 It doesn't even make sense of my code anymore: it says the AndroidManifest isn't in the right root thing Jan 17 18:42:59 It was yesterday, I didn't change anything Jan 17 18:42:59 dunno, either way, I don't use gradle Jan 17 18:44:01 I have never had problems in Eclipse Jan 17 18:44:21 Never ever, I could use libraries fine. Since I started using IntelliJ I started getting problems. Jan 17 18:44:34 Dreeass, stop blaming IntelliJ for broken build system. Jan 17 18:44:40 This is literally the worst IDE I've used and I'm getting 0 support Jan 17 18:44:44 using IntelliJ build system works just fine Jan 17 18:45:01 learn to find causes for your issues and fix them Jan 17 18:45:03 Mavrik, I have been waiting exactly 24 days for a response on multiple bugs and questions Jan 17 18:45:07 blaming wrong things doesn't help. Jan 17 18:45:28 24 days? you only switched to gradle like a couple days ago Jan 17 18:45:30 Mavrik, I'm paying half a gran for a program that doesn't even do what I want? Jan 17 18:45:41 pfn, I'm talking about IntelliJ in general Jan 17 18:45:58 * pfn gets intellij for free... Jan 17 18:46:03 Dreeass, which part of "IntelliJ" IS NOT "Gradle" don't you understand? Jan 17 18:46:28 if you can't even separate two TOOLS.... how do you expect to write software? O.o Jan 17 18:46:42 in any case, it imports gradle fine as far as I've ever seen Jan 17 18:46:48 I can seperate gradle and INtelliJ Jan 17 18:46:54 I'm talking about IntelliJ now, not Gradle Jan 17 18:47:01 pfn, meh, it has bunch of wierd issues Jan 17 18:47:28 but works for most use-cases yeah Jan 17 18:47:29 good thing I don't use gradle to encounter them Jan 17 18:47:31 pfn, I'm getting tons and tons of errors that don't make sense. All with the automatically generated files. Jan 17 18:47:39 for some reason compiling stuff with Gradle takes ages tho Jan 17 18:47:44 Even with a totally new project. Jan 17 18:47:45 I wrote my own gradle build script (not using Android Studio). It's working fine and generating the proper APKs. I can install it and run it on my device. But now I am wondering how I can debug + attach like I used to do with eclipse. When I import my gradle script into android studio, it doesn't seem to recognize anything Jan 17 18:48:04 Mavrik, it spins up a fresh vm everytime Jan 17 18:48:43 I'm gonna switch back to Eclipse because this IntelliJ is killing me and I'm gonna send an email to get my money back. Jan 17 18:48:53 palithius, just attach to an already running app Jan 17 18:48:53 Horrible piece of software Jan 17 18:49:04 Dreeass, we're gonna ridicule you now. Jan 17 18:49:15 horrible piece of coder Jan 17 18:49:21 pfn: is there a way I can automate the process? Is there a gradle task that will install + run my app? Jan 17 18:49:23 horrible horrible piece of coder Jan 17 18:49:26 pfn, what has coding to do with an IDE? Jan 17 18:49:32 I want my bandwidth money back for transmitting your crap Jan 17 18:49:53 Good Jan 17 18:50:54 i'm stuck with the Google Play Services thingy in AS Jan 17 18:51:01 it can't find anything Jan 17 18:51:12 what's the current version? Jan 17 18:51:18 I just wanted more from something that cost me €179, sorry for outting it here Jan 17 18:51:21 4.0.30? Jan 17 18:51:32 palithius, dunno, edit your run config to call the gradle package task Jan 17 18:51:51 you realise android studio is free, right? Jan 17 18:51:54 why did you even buy it... Jan 17 18:51:56 i'm trying to do https://developer.android.com/training/location/retrieve-current.html Jan 17 18:52:03 sound moronic already Jan 17 18:52:24 ISDP, yes. Jan 17 18:52:29 pfn, you're right. Jan 17 18:52:39 Mavrik, it can't find it :( Jan 17 18:52:55 Anyone using intellij for android instead of android studio? Jan 17 18:53:07 compac, mhm Jan 17 18:53:11 anyone that matters Jan 17 18:53:12 ISDP, you need to bring a library into your project, if you used the SDK manager to download it, then you can find it in your sdk directory somewhere Jan 17 18:53:15 There seem to be a lot of bugs in AS and I'm thinking of switching to intellij. Jan 17 18:53:26 uh, aren't they the same thing? Jan 17 18:53:34 almost but not quite Jan 17 18:53:34 the android functionality is just a plugin for IDEA Jan 17 18:53:43 storkme, they're not 100% in-sync Jan 17 18:53:47 jonc, i'm using ANdroid Studio, i've added it to gradle and my manifest Jan 17 18:53:52 storkme, quite a few parts of UI are different as well Jan 17 18:53:57 oh. Jan 17 18:53:58 mostly gradle related stuff Jan 17 18:54:04 no, AS is a modified Intellij with plugins Jan 17 18:54:04 I use both and I've never noticed a difference. Jan 17 18:54:19 compac, basically, if you're using Gradle the bugs are mostly the same, works perfectly well for other build systems tho Jan 17 18:54:36 compac: well, I used IJ for an app before AS was available. It worked fine for me Jan 17 18:54:40 i'm so screwed >_< Jan 17 18:54:47 http://stackoverflow.com/questions/21192778/trying-to-use-async-with-image-upload-to-webserver-android Jan 17 18:54:50 just avoid EAP versions for proper experience :P Jan 17 18:54:51 Mavrik, yes, works perfectly well with other build systems Jan 17 18:54:54 damn async giving me issues now Jan 17 18:55:15 my return type is int but i am calling it with a String how am I suppose to resolve this Jan 17 18:55:48 What? Jan 17 18:55:53 Yeah, I basically manage my IJ project and gradle build completely independently. Jan 17 18:56:12 frankdrey the SO question i posted Jan 17 18:56:24 Hm Jan 17 18:56:25 ISDP, post your build.gradle Jan 17 18:56:29 jonc, http://pastie.org/private/zktn8zq4ex479y26zjekla Jan 17 18:58:06 LoneSoldier728: you can define what types you need in "..extends AsyncTask" and if you want "int" somewhere set it to "Integer" Jan 17 18:58:45 ISDP, http://developer.android.com/google/play-services/setup.html did you follow the install google play services part? Jan 17 18:58:54 jonc, i installed it Jan 17 18:59:05 tried syncing with gradle? Jan 17 18:59:40 yes Jan 17 19:00:48 well when i say int Jan 17 19:00:50 i mean integer? Jan 17 19:00:56 <_emmanuel_> LoneSoldier I beg you, do not call runOnUIThread() inside of doInBackground in AsyncTask... Jan 17 19:01:00 ... are you referring to something else Jan 17 19:01:27 thhank u see that is good feedback Jan 17 19:01:48 i am actually was looking at something that was not in async and applying it to async Jan 17 19:01:52 do i not need async then Jan 17 19:01:57 if it has that already on it Jan 17 19:02:42 Chainfire: I really like mODIN. Really useful. Jan 17 19:03:26 although not being able to buy the pro version really sucks... Jan 17 19:06:05 jonc, could it be that .aar files aren't properly registered? Jan 17 19:06:51 latest play services are 4.1.32 Jan 17 19:08:53 jonc, what are your maven repo's ? Jan 17 19:09:14 LoneSoldier728: AsyncTask is generic and Java's generics don't work with primitives like 'int', you have to use the Objectified version thereof which is 'Integer' with capital i Jan 17 19:14:38 aaaargh i'm going insane :| Jan 17 19:17:19 ISDP: Me also :/ Jan 17 19:17:36 I try build custom kernel but its stop on arch/arm/mm/dma-mapping.c:244:25: warning: array subscript is above array bounds [-Warray-bounds] I even update my gcc to 4.8 but its still occure. Jan 17 19:17:53 hetii, same problem? Jan 17 19:18:32 yes Jan 17 19:20:28 any idea what i can do ? Jan 17 19:20:33 IFDP, not sure sorry, when I used it I believe I just downloaded the jar through the sdk manager (older version of google play), and then moved it to my projects /libs folder Jan 17 19:21:47 jonc, i can't see the library..... Jan 17 19:22:15 in A_ Jan 17 19:22:15 AS * Jan 17 19:22:24 when looking at External Libraries Jan 17 19:25:15 hello Jan 17 19:25:44 hi Jan 17 19:25:51 i've created a view pager that can auto-load with pulltorefresh more pages. i'd like to make a proper android View component out of this, so that people can provide a URL to it in XML and reuse it easily Jan 17 19:25:56 how could this be done? Jan 17 19:28:13 ISDP, %APPDATA%\..\Local\Android\android-studio\sdk\extras\google\google_play_services\libproject\google-play-services_lib Jan 17 19:28:13 if you are on windows go to that path in an explorer window Jan 17 19:28:14 there should be a play services jar Jan 17 19:28:16 (in libs) Jan 17 19:28:59 jonc, the libs are in my android-studio sdk :o Jan 17 19:29:00 copy it, go to your projects root directory (has your build.gradle), create a folder named "libs", paste the jar into it Jan 17 19:29:29 then in your build.gradle, just add something like: compile files('libs/android-support-v13.jar') (example, different jar name for mine) Jan 17 19:29:48 and remove the old include (used maven), and try syncing and building Jan 17 19:30:26 jonc, where? http://vvcap.net/db/kiklvejBneRz5Gf68Cwo.png Jan 17 19:32:00 right click "app" and create a new folder named libs Jan 17 19:33:06 jonc, it's buggy as hell, how can i create a new project with the right file structure etc? Jan 17 19:33:56 Do you ever suffix your versionName, like 1.0.5.RELEASE. Or do you just keep it 1.0.5? Jan 17 19:37:30 I've had to do that a few times, it gets pretty gnarly. I just created a blank project and copy and pasted files to where they should be, fixed any issues once I was done Jan 17 19:37:33 what's the right file structure? Jan 17 19:48:36 IDSP, overall yours isn't that screwed up, it has an extra iml, but other than that Jan 17 19:48:39 now i have a Class 'Home' must either be declared abstract or implement abstract method 'onLocationChanged(Location)' in 'LocationListener' error :C Jan 17 19:48:40 that's because you passed "this" as the listener Jan 17 19:48:41 you can either create a class that implements whatever listener type they are looking for, or have your homeactivity implement the listener Jan 17 19:48:52 jonc, i'm stealing from https://developer.android.com/training/location/retrieve-current.html Jan 17 19:48:53 the sample Jan 17 19:59:29 i modified an elf library that an apk included, then repackaged and resigned the apk Jan 17 19:59:45 but the new apk failed to install Jan 17 20:01:15 ISDP, http://pastebin.com/acb44G13 that part is where they tell the fragment to implement the listeners Jan 17 20:01:44 yeah i'm error free now Jan 17 20:02:40 copied everything, now going to work through the code Jan 17 20:07:04 jonc, 622 lines of code, prabbly 50% crap Jan 17 20:12:16 FFFFFFFFFFFFFFFF- Jan 17 20:12:27 jonc, i hate my static fragments! Jan 17 20:14:26 could anyone spit through my code and fix my mistakes? :( Jan 17 20:19:58 spit? Jan 17 20:19:58 that's gross :P Jan 17 20:26:55 Hi, am I supposed to encode a string (using URLEncoder.encode()) before parsing it with Uri.parser()? Jan 17 20:27:18 is there a way to start up android studio and skip the intro "quick start" interface? Jan 17 20:28:11 infogulch_, by opening up a project Jan 17 20:28:31 i just installed it on this computer, and don't have any projects yet Jan 17 20:28:46 then what do you expect to see Jan 17 20:28:49 infogulch_: open a project, next time you open android studio it'll automatically open the project Jan 17 20:28:49 Why do you want to do that? Jan 17 20:28:53 it goes away as soon as you open a project Jan 17 20:28:57 otherwise, what are you gonna get... Jan 17 20:29:59 i'm getting errors when trying to start a new project that tell me to open the log in the help menu, which conveniently doesn't exist because i can't get past the screen. Jan 17 20:30:55 any libraries out there that can calculate a subset of LatLng locations based on radius from a central location? Jan 17 20:33:09 hello Jan 17 20:36:44 can I use navigation drawer and tabs? Jan 17 20:36:49 why not? Jan 17 20:37:21 maybe google doesnt allow it Jan 17 20:38:26 what? Jan 17 20:38:40 anyway... Jan 17 20:39:03 kidding man ;) Jan 17 20:39:14 so I'm trying to use a PlusClient for sign in with a regular Google account, I set the scope to "profile" yet it still asks for the user to upgrade to Google+ Jan 17 20:39:17 lol Jan 17 20:39:27 I even did clearScopes before setScopes, just in case.. Jan 17 20:47:39 I'm trying to get the Skeleton demo app working and I'm getting an error associated with multiplayer not being enabled when on the developers console it is. I did notice though that the only option pertains specifically to real-time and not turn-based. Is there a multiplayer option missing from my console or is this a different issue? Jan 17 20:54:14 ISDP, how's the app coming? Jan 17 20:55:13 Has anyone else had issues with the turn based demo app? Jan 17 20:59:40 howdy guys, quick question. I'm trying to get my app on full CI and I'm using travis-ci. The only problem I'm having is I don't know how to install the 'Android Support Repository' via android update sdk --filter xxx Jan 17 20:59:55 what is the filter name of that repo? It needs to be installed via the commandline Jan 17 21:02:01 can anyone point me in the right direction regarding properly scaling bitmaps for use on any phone in code for use with a surfaceview? Jan 17 21:02:17 eg, if i use createscaledbitmap with the two ints, are those in dips or pixels Jan 17 21:02:34 and will one size fit all, or do i have to calculate the screen size to desired ratio manually Jan 17 21:04:06 Hahaving issues with bitmapFactory Jan 17 21:04:15 well, i just started Jan 17 21:04:17 always saying unable to decode stream any clue guys? Jan 17 21:04:25 oh, you also are Jan 17 21:04:26 haha Jan 17 21:04:27 :) Jan 17 21:05:49 http://pastebin.com/JeJGqPdB Jan 17 21:05:53 this is my code : / Jan 17 21:06:57 emulator lag as shit Jan 17 21:06:58 wtf Jan 17 21:07:18 always worked pretty good Jan 17 21:08:14 http://stackoverflow.com/questions/21195899/bitmapfactory-unable-to-decode-stream Jan 17 21:08:25 just connect ur device to eclipse gd Jan 17 21:08:32 or if u dont have one ya it sucks Jan 17 21:11:37 jonc, it's hard :C Jan 17 21:12:05 Open HAX device failed I see :D Jan 17 21:14:21 is there a way to scale a SurfaceView Jan 17 21:14:29 it seems easier than trying to rescale my gfx at runtime Jan 17 21:14:55 and gameplay calculations Jan 17 21:15:05 anyone ever used ogre for android? Jan 17 21:18:25 ok, you know what, using the AccountManager will probably be simpler than PlusClient Jan 17 21:18:28 well Jan 17 21:18:30 not simpler Jan 17 21:18:33 but it'll actually work Jan 17 21:50:25 Is setting boundaries via Drawable.setBounds(int int int int) in pixels? Jan 17 21:54:48 ironmarx, i believe so Jan 17 22:00:13 jonc, can i ask you a huge favor? Jan 17 22:00:24 i believe his rate is $200/hr Jan 17 22:00:52 i need someone to clean up and fix my project Jan 17 22:01:17 I'm at work currently, leaving in a few minutes Jan 17 22:04:53 i deleted the google samples from my sauce. Jan 17 22:05:35 weaksauce Jan 17 22:08:54 Hey everyone! Curious if someone could help me understand how to interact with declared receivers for an application? Specifically, I'm starting to understand how intents work, but I can't figure out how to send an intent to the podcast app AntennaPod. It looks like its relevant receiver is at https://github.com/danieloeh/AntennaPod/blob/master/AndroidManifest.xml#L182 Jan 17 22:09:50 I've been playing with the android shell trying to get the equivalent of a media button press sent to it, but I keep getting non-existent class errors. I feel like I'm missing something obvious :( Jan 17 22:10:10 FragmentManger.popBackStack is supposed to reverse all the transactions that have been added to the back stack right? Jan 17 22:11:13 (for reference, I 'm trying to send an intent specifically to that app so only it starts media playback. For some reason, if I send a broadcast media intent, every other music app on my phone always picks it up instead no matter what I do) Jan 17 22:26:56 ISDP, what is it that you needed? Jan 17 22:27:24 is there an easy way to pull something from an imageView? Jan 17 22:27:31 like it's uri specifically Jan 17 22:27:53 jonc-1, i removed all the code and cleaned up Jan 17 22:27:54 like if i call .getText() I can get text from an Edit text is there something similar for an imageView Jan 17 22:28:15 alllright, everything working as intended? Jan 17 22:28:28 LoneSoldier728, you can get the drawable, and then get the bitmap from it Jan 17 22:29:00 like I have the bitmap loaded on the imageview Jan 17 22:29:14 but when a submit button gets clicked now I want to access that image and send it to the server Jan 17 22:29:22 so it is that same step then Jan 17 22:29:47 then http://developer.android.com/reference/android/widget/ImageView.html#getDrawable() Jan 17 22:30:16 getDrawable, cast to a BitmapDrawable, and then do getBitmap() Jan 17 22:31:09 what is a drawable exactly is it considered a file, a path or? Jan 17 22:31:40 for an ImageView it will be a bitmapdrawable I believe Jan 17 22:32:12 not sure if all the time, but any time I have used it it has been Jan 17 22:32:29 because I am actually trying to get the path if that makes sense Jan 17 22:32:42 jonc-1, almost, nearly done. Jan 17 22:33:28 let me show you code that I am trying to work with maybe it will make more sense Jan 17 22:34:56 LoneSoldier728, I am pretty sure you can't do that, you could possibly Extend ImageView and make it UriImageView, and override the setImageUri(Uri uri) function to store the Uri (and call super.setImageUri(uri)) and then add a getImageUri function Jan 17 22:37:22 http://pastebin.com/ct1G6kZE Jan 17 22:37:39 that is my code and on the top u can see what I am trying to do Jan 17 22:37:55 LoneSoldier728, http://pastebin.com/9HLigLY7 something like that Jan 17 22:38:03 then you'd use that in your layout Jan 17 22:39:53 http://developer.android.com/reference/android/accounts/AccountManager.html#newChooseAccountIntent%28android.accounts.Account,%20java.util.ArrayList%3Candroid.accounts.Account%3E,%20java.lang.String%5B%5D,%20boolean,%20java.lang.String,%20java.lang.String,%20java.lang.String%5B%5D,%20android.os.Bundle%29 Jan 17 22:40:15 If I use that, do I get the account name with getBundleExtras(KEY_ACCOUNT_NAME) Jan 17 22:40:16 or what? Jan 17 22:41:56 https://gist.github.com/anonymous/8483037 Jan 17 22:42:00 there so file 1 Jan 17 22:42:12 is all the code took out what was unnecessary Jan 17 22:42:20 file 2 is the Async Task part I am trying to get work Jan 17 22:42:52 is there a different way jonc beside having to make another class Jan 17 22:43:13 you could keep track of the Uri of the last loaded image Jan 17 22:43:47 how so? or how can I share it exactly? by passing it through execute? Jan 17 22:44:43 nvm figured it out Jan 17 22:45:03 the easiest way (if you are already using the imageView.setImageUri() function) would probably be my suggestion Jan 17 22:47:42 and then can I call getImageUri after? Jan 17 22:48:33 if I want to implement tabs in fragment. What should I use? FragmentStatePagerAdapter or FragmentTabHost ? Jan 17 22:52:12 never use tabhost... Jan 17 22:52:39 don't even know why they bothered making a fragment tabhost Jan 17 22:57:41 pfn: so you raccomend using classic viewpager? Jan 17 22:58:00 jonc-1, how do i create a seperate handler for http communication with the server (another class file?)? Jan 17 22:58:23 i have made a new class to contain some functions Jan 17 22:58:37 gdrc, you can implement tabs with simple radio buttons and a viewflipper Jan 17 22:58:48 I recommend anything but tabhost Jan 17 22:58:55 damn broke thing Jan 17 22:59:04 that thing was built with a shitton of hacks to make work Jan 17 22:59:25 i'm having issues with tabhost and searchview Jan 17 23:01:37 Hey guys, so I'm working with webviews of different sizes. It seems like w're having trouble getting the right window.innerwidth from javascript. We have to reload the page on a resize event. Is there a better way to go about this? Jan 17 23:02:02 im so confused this should be easy Jan 17 23:02:08 but how is there not getImageUri Jan 17 23:02:17 but there is a setImageUri Jan 17 23:06:21 I'm noticing a really strange issue re: Loaders & ViewPager Jan 17 23:06:35 Or probably the adapter for the viewpager. Jan 17 23:07:40 If I have three fragments, and load data in each onResume()... if I let the data load completely, it works fine. If I, for some reason, change tabs while the data is still loading, then the Loaders spazz out and one Fragment seemingly doesn't get the data it requested Jan 17 23:08:28 Different loader ID's, the viewpager has an elevated offscreen limit and... well, what else? Jan 17 23:09:35 pfn: I followed this https://developer.android.com/training/implementing-navigation/lateral.html to implement tabs Jan 17 23:12:08 anyone here know selinux well? I have an app that is failing to access a certain library. its context in untrusted_app, so I am wondering what determine's a process's context Jan 17 23:12:28 goddamn asynctask Jan 17 23:12:52 has anyone here contributed to the Android framework? Jan 17 23:13:18 Hey I just purchased a Sony Xperia Z, but it's not showing up in adb devices on my mac os x. 4.3 jelly bean. I have no problems with any other devices. Jan 17 23:13:46 Is there a specific driver I need to install? I cannot find anything about it? Jan 17 23:13:51 eckesicle: #android / #android-root Jan 17 23:15:38 This is for development Jan 17 23:16:03 eckesicle: you're not asking dev stuff Jan 17 23:16:40 it shows up as a regular device, so it works for everything but development. Jan 17 23:16:59 ... Jan 17 23:17:12 you need to install the adb driver, what OS are you using? Jan 17 23:18:14 It's already done Jan 17 23:18:22 Mac OS X 10.9 Jan 17 23:18:24 and Jelly bean Jan 17 23:18:38 I will try to reinstall Jan 17 23:18:46 is debug mode on the device enabled. ? Jan 17 23:18:53 Yes Jan 17 23:20:00 hopefully this is it Jan 17 23:20:02 http://stackoverflow.com/questions/21197802/how-to-pass-android-image-uri-to-async-task Jan 17 23:20:11 : / anyone know how to make that work Jan 17 23:20:33 eckesicle: did you allow your mac access to your phone? once you plug it in, you have to accept the security thing. Jan 17 23:22:08 it would still appear in the device list then Jan 17 23:23:50 eckesicle: Make sure it's "Connected as a camera" and not media device. :) Jan 17 23:24:47 eckesicle: Make sure it's "Connected as a camera" and not media device. :) Jan 17 23:25:10 eckesicle: I had similar issues with my Z, before it broke in my pocket :-) Jan 17 23:36:29 pfn: how manage navigation drawer hidden by actionbar+tabs? :S Jan 17 23:38:06 so, an acitivity's original intent is saved during onsaveinstancesatte not the one received from onNewIntent? Jan 17 23:38:41 getIntent is not updated. if you wanted it updated you need to call setIntent from onNewIntent Jan 17 23:39:06 i do call it but it still seems to restore to the original intent Jan 17 23:40:49 yep Jan 17 23:44:59 Hey guys, I have a little problem, I have a frontend class for HTTP requests, a frontend class for general communication between an app and a server, a class that polls for stuff on the server and the current activity. The current activity creates the communicator, the communicator creates the poller and the poller uses the http handler. However, when I get a working network connection again after a network failure, I want to call the activity to report t Jan 18 00:03:52 so in order for my new app to work properly on several different devices over wan, i need to sync coordinate data between them for graphical objects on the screen. What do i need to look up to work with bitmaps and a surfaceview using a device independent coordinate system? Jan 18 00:04:11 http://stackoverflow.com/questions/21197802/how-to-pass-android-image-uri-to-the-execute-call-for-the-async-task Jan 18 00:04:13 i vaguely recall hearing that android used dips which are supposed to be device independent, but all my calls appear to just be in pixels Jan 18 00:04:25 what is the easy answer that I cannot find anywhere Jan 18 00:04:46 how do I get an imageviews uri or something that I can pass on to be put into an http post Jan 18 00:11:54 why would an imageview have a uri... Jan 18 00:11:57 and imageview has an image Jan 18 00:13:08 kamui: depends Jan 18 00:17:24 how can i get the context into a static class? Jan 18 00:17:37 public static class PickupFragment extends Fragment Jan 18 00:19:34 you don't Jan 18 00:19:37 that's why you make it static Jan 18 00:19:44 pass it in via a method Jan 18 00:19:48 and for that matter Jan 18 00:19:52 a Fragment can getActivity() Jan 18 00:19:56 after onAttach Jan 18 00:20:36 funkbox: care to elaborate a little? im still researching ways to handle this programatically, i was hoping i was wasting my time though Jan 18 00:21:06 seems that displaymetrics returned density is my only way out at this point Jan 18 00:21:18 n20 thanks for your input. I updated it to 4.3, and reinstall Sony Bridge and now it works Jan 18 00:26:13 kamui: general rule of thumb is if it's in XML it's dp and if it's in code it's px Jan 18 00:26:25 damn Jan 18 00:26:41 so, end of the day, im coding my own px to dp conversion basically Jan 18 00:26:58 not the end of the world, i just need to write a function to handle it and then go around replacing a lot of code :) Jan 18 00:35:33 android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an applicatio :| Jan 18 00:37:00 pfn, why do i get that error on this code? http://pastie.org/private/heolaroofgbvy4pjcjqurq http://pastie.org/private/sdlcsyj2w7g10sthdfaxbw Jan 18 00:45:09 I don't care Jan 18 00:45:16 because you did it wrong Jan 18 00:45:19 google for what that error means Jan 18 00:47:15 i fixed it by commenting out the dialog. Jan 18 00:48:08 pfn: how manage navigation drawer hidden by actionbar+tabs? you did it in qicr Jan 18 00:48:19 "fixed" it Jan 18 00:48:21 manage what? Jan 18 00:48:38 if you have nav drawer Jan 18 00:48:41 and tabs Jan 18 00:49:04 read the source Jan 18 00:49:07 :p Jan 18 00:49:09 if you open nav drawer, it's covered from actionbar - tabs Jan 18 00:49:18 what source? Jan 18 00:49:27 for qicr Jan 18 00:50:21 I have no idea what you mean or what you're asking or what you want Jan 18 00:51:03 qicr... Jan 18 00:51:16 How do you force redraw something again? Jan 18 00:51:17 wtf is scala lol Jan 18 00:51:42 from the screenshots, i don't remember trying this (and i thought i tried all the android irc clients) Jan 18 00:52:02 it's a pfn creature Jan 18 00:52:03 I have a custom RelativeLayout, and then dynamically I remove a view from it, it readjusts the size of the relativeLayout but it doesn't redraw =/ Jan 18 00:52:10 I use it daily Jan 18 00:54:25 hmmm Jan 18 00:54:32 trying to say something in this channel with it :P Jan 18 00:54:34 not working Jan 18 00:54:59 ? Jan 18 00:55:17 i just installed it and connected to my ZNC Jan 18 00:55:26 yes Jan 18 00:55:29 was trying to say stuff in here, but it won't send Jan 18 00:55:48 it's a bug Jan 18 00:55:53 try again Jan 18 00:56:14 (restart the app) Jan 18 00:56:39 tesy Jan 18 00:56:43 ahh yup Jan 18 01:00:09 :0 notifications widget Jan 18 01:02:54 i forgot to call setContentView(), what a dummy i am Jan 18 01:04:39 i installed android studio, but the SDK manager won't run Jan 18 01:05:01 i click and it says Starting... but then nothing happens Jan 18 01:56:31 what exactly is com.google.ccc.abuse.droidguard.DroidGuard ? My device is downloading some apk file containing some native code over from https://www.gstatic.com/droidguard/ Jan 18 01:57:20 I assume it's the apk scanner which has been included in Android for a while Jan 18 01:57:34 ah Jan 18 01:58:14 thanks Jan 18 02:42:37 hi, I'm a newbie trying to learn Android Studio Jan 18 02:43:03 can anybody point me to some good tutorials to learn the basics? Jan 18 02:43:17 like HelloWorld and other better stuff **** ENDING LOGGING AT Sat Jan 18 02:59:59 2014