**** BEGIN LOGGING AT Sat Nov 16 02:59:59 2013 Nov 16 03:00:47 worked last time I tested it Nov 16 03:00:52 a year ago :) Nov 16 03:03:38 Does anyone on here know of a way of exporting a Gantt chart from MS Project to a JPEG or any other image format? Nov 16 03:03:50 MS Project seems good for creating Project Management documents etc Nov 16 03:03:54 But absolutely dire for exporting them Nov 16 03:13:55 pdf ? Nov 16 03:41:59 does intellij support building against java 7 for android? Nov 16 03:49:25 greetings, anybody awake? Nov 16 03:50:03 just ask Nov 16 03:50:36 dont need the preamble if you're here to ask a question Nov 16 03:51:15 Long story short, I've loaded my android 2.2 project, which uses the android v4 support library, from my git repo into the windows android development bundle (as released by google) Nov 16 03:51:25 after the project is opened, Nov 16 03:52:27 eclipse shows an error like this: Nov 16 03:52:33 (in the console) Nov 16 03:52:39 and it's actually a warning: Nov 16 03:52:55 "Warning when loading the SDK:" Nov 16 03:53:07 "Warning: Ignoring build-tool 'android-4.4': missing file source.properties" Nov 16 03:53:49 and google shows me nothing Nov 16 03:53:59 or tells me nothing, about what this means Nov 16 03:54:03 like what is a source.properties? Nov 16 03:56:45 jug6ernaut_, Android build tools do not support java7 class filea Nov 16 03:57:09 pfn just the syntax? Nov 16 03:57:23 all the stuff I just mentioned isn't actually what I need help with, but I think it might be related Nov 16 03:57:47 jug6ernaut_, I have not been able to do -source 1.7 -target 1.6 Nov 16 03:57:49 I need to attempt to run the app, the Dex translator fails... Nov 16 03:57:55 so,no,not the syntax Nov 16 03:58:04 hmm k Nov 16 03:58:28 maybe you can, I just haven't figured it out Nov 16 03:58:52 I'm trying lol Nov 16 04:04:46 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Using-sourceCompatibility-1.7 Nov 16 04:05:00 build tools 19 supports it Nov 16 04:05:20 i wonder if its only through gradle Nov 16 04:05:27 * jug6ernaut_ isn't using gradle yet... Nov 16 04:08:36 works in sbt, too Nov 16 04:08:58 should be fine in intellij, as well Nov 16 04:20:34 sbt? Nov 16 04:22:06 scala Nov 16 04:22:16 I'm guessing :) Nov 16 04:35:05 you can use sbt to build java apps, too Nov 16 04:35:22 I use it to build all Android apps Nov 16 05:28:35 hi Nov 16 05:28:44 is it ok to pass big objects like bitmaps from java to ndk trough jni? Nov 16 05:28:54 passing big objects will affect performance? Nov 16 06:25:21 but you aren't passing anything, it's just a memory address... Nov 16 06:44:21 also when it returns? Nov 16 06:44:47 where can I read more on how to do multithreading on the ndk? Nov 16 06:46:48 probably pthreads Nov 16 06:47:33 thx Nov 16 06:49:41 from : http://vitiy.info/stackblur-algorithm-multi-threaded-blur-for-cpp/ I want to implement: http://pastebin.com/GKq84hEC on the NDK Nov 16 06:49:54 I get errors at: workers[i]->start(); Nov 16 06:50:01 no 'start' found Nov 16 06:50:11 where does that 'start' comes from? Nov 16 06:50:25 *compile errors Nov 16 06:52:21 Did you read the comment header on the thing you pasted? Nov 16 06:52:26 Did you look at where start is used? What type it applies to? Where it might reasonably be found? Nov 16 06:52:55 You could also probably make a pretty good guess about what it does, too. Nov 16 06:56:42 how can I use pthread? Nov 16 06:58:12 By using it like normal. Nov 16 06:58:43 Could also probably use std::thread in libc++ since it's implemented using pthreads as well. Nov 16 06:59:13 Aside from that, read the docs/manpages Nov 16 06:59:48 gaaahh Nov 16 06:59:56 okay so I am using this SeekBarPreference class http://robobunny.com/wp/2013/08/24/android-seekbar-preference-v2/ Nov 16 07:00:04 but, the seekbar disappears when the activity starts! Nov 16 07:00:08 I can see it flash and disappear Nov 16 07:00:23 it reappears and stays when I toggle any other CheckBoxPreference in the activity Nov 16 07:00:38 I think it's something to do with onBindView but I really have no idea what's going on Nov 16 07:16:53 do you have any recommendations on OpenGL frameworks / libraries / engines to be used from the ndk? Nov 16 07:24:40 Zgary: Probably not a lot of anything specific without knowing what you're trying to do. Nov 16 07:28:42 loading 3d models and develop shaders for them Nov 16 07:33:15 Well, there's assimp for loading models, though it's probably not going to provide them in a format that's immediately renderable. Nov 16 07:33:50 You'd probably want to write a tool to convert models to any easily deserialized format (i.e., one you can just buffer immediately). Nov 16 07:34:21 As for shaders, those're already so easy to use in GL that I'm not sure what else you'd do. Nov 16 07:36:18 oh hey, there's a built in SeekBarPreference Nov 16 07:36:22 but it's undocumented, wtf? Nov 16 07:37:01 Meaning don't use it. Nov 16 07:38:25 so instead, I should use one of the twelve slightly different buggy ones that people have posted on the web Nov 16 07:38:27 or write my own Nov 16 07:38:28 :/ Nov 16 07:38:43 I wrote my own. Nov 16 07:39:06 Seems to work fine. Nov 16 07:39:31 any gotchas I should watch out for? Nov 16 07:40:01 you aren't robobunny are you? :) Nov 16 07:41:16 considerring I dont trigger any GC on my java code, for a simple 3d game that drives a spaceship in 3d environment will using the ndk have a big speed increase compared to java? Nov 16 07:41:23 Who's a robobunny? Nov 16 07:41:46 I'm more of a viscacha person. Nov 16 07:42:08 this: http://www.w3c.es/Presentaciones/pics/bunny_ip.jpg Nov 16 07:42:26 I have one of those. Nov 16 07:42:51 It's honestly the creepiest thing ever at times. Nov 16 07:44:22 And I can't think of any gotchas with a SeekPreference. Nov 16 07:44:23 It's not a very interesting thing to implement. Nov 16 07:46:58 That said, mine uses the layout/widgetLayout stuff for preferences rather than keeping the SeekBar as a member of the preference. Nov 16 07:47:12 well, I found a good one implemented as a DialogPreference Nov 16 07:47:16 I will customize it a bit Nov 16 07:47:30 as a side note, is this really the answer to this http://stackoverflow.com/questions/10120579/android-custom-xml-parser-fails-to-resolve-android-namespace Nov 16 07:47:37 seems like such a hack Nov 16 07:47:59 The DialogPreference thing is usually a hack Nov 16 07:48:30 Plus it's kind of unpleasant from a user standpoint Nov 16 07:48:30 You have to go into a dialog, set something, go out, and then if it's not right after you set it, you have to go back in and repeat. Nov 16 07:49:26 whats that with Nilium ? Nov 16 07:49:31 as in what field type ? Nov 16 07:49:35 That said, I'm speaking as someone who wrote a live wallpaper where being able to see the wallpaper change as you tweak the settings is a feature. Nov 16 07:49:50 Not sure what you're asking about Nov 16 07:49:57 heh Nov 16 07:50:00 preferences element Nov 16 07:50:06 well I can polish it later also Nov 16 07:50:09 that opens a dialog to change values Nov 16 07:50:22 sick of fighting with the layout that doesn't seem to like oddly sized preferences Nov 16 07:50:41 I'm not sure what you're asking then Nov 16 07:51:49 me or StingRay? Nov 16 07:51:57 StingRay_. Nov 16 07:52:16 "You have to go into a dialog, set something, go out, and then if it's not right after you set it, you have to go back in and repeat." Nov 16 07:52:25 I'm not actually sure what question he's trying to ask.. Nov 16 07:52:36 to what preferences element are you refering that makes the user do that Nov 16 07:52:45 hi all Nov 16 07:52:55 What about that? Nov 16 07:53:05 Any DialogPreference implementation. Nov 16 07:53:56 The only time where it really seems to make sense is with selection something in a list. Nov 16 07:54:30 *selecting Nov 16 07:55:00 My connection seems to be really crummy right now.. haven't a hard time watching any video. Nov 16 07:55:09 I think my ISP hates it when I stream video. Nov 16 08:37:40 Why could I be getting this: Caused by: java.util.MissingResourceException: Failed to load the specified resource bundle "Element: 524.99" ? Nov 16 08:39:49 hmm Nov 16 08:39:55 zyngawow, when are you getting that? Nov 16 08:41:50 Mavrik, can I paste 3 lines? Nov 16 08:42:30 well you can throw them in pastebin :) Nov 16 08:42:34 with full stacktrace if possible Nov 16 08:45:30 Document doc = Jsoup.connect("https://www.google.com/finance?q=AAPL").get(); Nov 16 08:45:36 Its with JSoup Nov 16 08:46:10 And http://pastebin.com/UYRquzS2 Nov 16 08:51:31 zyngawow, hmm Nov 16 08:51:39 that looks like you're using a logging framework not built for Android Nov 16 08:51:50 it's trying to load some resource from .jar file which probably isn't there in Android APK Nov 16 08:52:25 * zyngawow is dumb Nov 16 08:52:42 I was using the Logger from java.util Nov 16 08:53:30 Alright, that was it Nov 16 08:53:41 Easy to scrape it Nov 16 08:53:43 And its fast1 Nov 16 09:02:45 What am I doing wrong here http://pastebin.com/E8dHpRrS for it to tell me: Skipped 203 frames! The application may be doing too much work on its main thread. ? Nov 16 09:10:05 um, accessing the internet on the UI thread? Nov 16 09:10:30 What he said. Nov 16 09:10:58 durka42, umm? It's on an AsyncTask Nov 16 09:11:23 well yeah, but you called get() Nov 16 09:11:28 which defeats the purpose of an AsyncTask Nov 16 09:11:34 What should I call then? Nov 16 09:11:41 you need to have it call you back somehow Nov 16 09:11:51 give it a reference to whatever needs to know the result Nov 16 09:11:59 in this case, you could just give it a reference to the TextView I guess Nov 16 09:12:18 Just do it in onPostExecute. Nov 16 09:12:45 right Nov 16 09:12:50 make TextView final and close over it Nov 16 09:12:52 Or pass the result to the thingy in onPostExecute, assuming it's successful Nov 16 09:41:55 am I correct in assuming that an Intent Service's onDestroy method is called immediately following the completion of onHandleIntent? Nov 16 09:49:41 Algorithm: did you check the docs? Should report when listeners are called. Nov 16 09:54:42 I'm using a MediaPlayer Object to render to multiple surfaceTextures. However, setVideoSurface() seems to be quite slow when looking at the profiling logs. Does anyone know what exactly is going on in here (without having to dig in the sources) and how to speed it up? Nov 16 09:57:55 Miklas: I believe I looked in the correct place: http://developer.android.com/reference/android/app/IntentService.html. It doesn't say that the element is destroyed, just that it stops itself. Nov 16 10:04:46 Algorithm: I'm wondering. I don't think stop is equal to destroy. Nov 16 10:05:36 Miklas: okay thanks! I'll experiment a bit. Nov 16 10:16:14 Activity.performDestroy calls FragmentManager's dispatchDestroy() *before* it calls Activity.onDestroy(). This causes problems for me because in onDestroy() I call ViewPager.setAdapter(null), which tries to perform a fragment transaction. The transaction fails because performDestroy has already marked the activity as destroyed Nov 16 10:17:06 I need the ViewPager.setAdapter(null) because otherwise there is a lingering observer reference that, again, causes calls to my destroyed activity Nov 16 10:18:06 am I doing this in the wrong place or is this some kind of bug in the framework? It seems to me that Activity.performDestroy should call onDestroy() first, before the FragmentManager marks the activity as destroyed Nov 16 11:46:40 Hello! Nov 16 11:46:57 Should I be loading data within my fragment or the containing activity? Nov 16 11:47:09 (Loading as in downloading) Nov 16 11:47:49 Say that I want to display an RSS feed in a ListFragment. Should the ListFragment be responsible for fetching that data, or should its parent activity do that? Nov 16 11:49:19 Any takers on that question? :) Nov 16 11:50:30 n20: So you're suggesting (re)creating fragments would need to reload data? That probably answers your question. Nov 16 11:53:29 kjeldahl: I think a yes would be an appropriate answer (unless state-saving and so on is used?) :) Nov 16 11:54:27 So, I'm trying to set up a new copy of the SDK after a long absence, and I'm running into Java dependency issues: https://gist.github.com/Two9A/298cb987d2cd78c456a9 Nov 16 11:54:33 (Morning, by the way) Nov 16 11:54:55 n20: Personally, I would keep the loading stuff out of the fragment, so that I could (re)create fragments when needed without penalty. Nov 16 11:55:08 Specifically, ant seems to think I want to run the jre instead of the jdk Nov 16 11:56:25 kjeldahl: Doesn't that go against the "fragments living their own lives" thinking (right way to see it?)? Nov 16 11:56:52 kjeldahl: I'd imagine that you can't just hotswap fragments if your activity is responsible for all data fetching Nov 16 11:57:23 kjeldahl: (I phrased myself a bit poorly, but hopefully you get the core point :)) Nov 16 11:58:10 n20: I thinking the opposite. If the activity owns the fragments, the activity can load data whenever necessary, and the fragments can query the activity for data when needed. If the activity has loaded data ready, just pass it. Nov 16 11:58:19 *I'm Nov 16 11:59:32 kjeldahl: Yeah, gotcha on that one. Nov 16 11:59:39 kjeldahl: Thanks for your input :) Nov 16 12:01:35 So, that answers the first question (where does ant get java.home from): http://stackoverflow.com/questions/16533256 Nov 16 12:01:51 Now, the second question: how can I get ant to point to the jdk instead? Nov 16 12:23:34 hey when i rotate a view, even though its properties are to fill_parent, it doesn't do the size right, for some reason it goes from 480x800 to 480x480, this has got me stumped, any thoughts? Nov 16 12:26:54 erdos_: which layout ? Nov 16 12:27:06 it's an extension of ImageView Nov 16 12:27:36 this: https://github.com/davemorrissey/subsampling-scale-image-view but i don't think the extension has anything to do with it Nov 16 12:28:06 i call getWidth and getHeight from within their implementation of onDraw... Nov 16 12:36:09 erdos_: try DisplayMetrics display; and width = display.widthPixels; Nov 16 12:36:49 and then force scaling the image to it or something when it rotates Nov 16 12:37:10 so force the width and height after a rotate? Nov 16 12:37:39 does is have fill_parents ? Nov 16 12:37:43 yeah Nov 16 12:37:56 i've done this already but for some reason it still comes back to the wrong size, i'm actually starting to think maybe it's something in the SubsampledScaleImageView Nov 16 12:37:57 >_< Nov 16 12:38:52 ... if the size of the view is defined by its contents first, then it's fill_parent attribute second Nov 16 12:38:57 i'm still new to all this stuff :P Nov 16 12:43:01 i think the easiest way is going to be to preprocess the image into 4 separate rotated images beforehand... Nov 16 12:43:42 but that's going to be so slow... laaaaaammmmeee Nov 16 12:44:59 a person could render an image into a gl view, where rotating it takes no additional time Nov 16 12:47:25 my problem is that i need the subscaled caching functionality in the above link, which works great, the main problem (before rotation) is dealing with large images from the sdcard Nov 16 12:48:33 loading the whole image into memory (at full size) makes my app crash :( Nov 16 13:05:31 when I use sharedprefs, do I first have to put something in there to get a value? Nov 16 13:05:40 what if I wrote the value in the .xml file? Nov 16 13:36:35 hello, i have a question about Java performance. I'm using libgdx and if I render 1000 textures on screen i have 60 fps. It's fine. But if i do a for loop to 1000 and in this loop i call 3 empty methods, then i get 25 fps. What the...? could anyone explain this? Nov 16 13:38:04 I just finished cross-compiling glibc for my phone. `make install` (with the prefix set under my homedir) gave me bin,etc,include,lib,libexec,sbin,share,var dirs; what should I install where? Nov 16 13:51:15 hey all Nov 16 13:51:25 i need to ask a question Nov 16 13:51:43 if i am making a multiple choice question app Nov 16 13:51:50 Generally, you shouldn't ask to ask. Just as your question and be patient. :) Nov 16 13:52:05 but I want to use an image instead of a question Nov 16 13:52:12 how to make the database Nov 16 13:52:38 for correct answers Nov 16 13:53:23 any help Nov 16 13:56:30 ison__, calling functions in Java is rather expensive Nov 16 13:56:46 ison__, especially if tere's boxing involved and other things... since I don't see your code it's hard to tell why that loop is so slow Nov 16 13:56:55 it's also possible you're not hitting JIT due to simple code Nov 16 13:57:17 i have for(int i=0; i<1000; ++i) App.getInstance().getWorld().foo(); Nov 16 13:57:21 2 getters, and foo is empty Nov 16 13:58:05 yeah, calling Java functions and retuning stuff can be expensive Nov 16 13:58:14 you're also probably not hitting JIT because foo is empty Nov 16 13:58:14 no way to inline them? Nov 16 13:58:27 not really... just use direct access to properties Nov 16 13:58:33 or cache getInstance calls Nov 16 13:58:42 strange, i thought java was more object-oriented than c++ Nov 16 13:58:49 but if i want to write code like this i get 20 fps Nov 16 13:58:53 if you'll check out Android API, you'll see they use direct field access instead of getters Nov 16 13:58:58 ison__, exactly :) Nov 16 13:59:08 if you want C speed you need to write C... in Java :) Nov 16 13:59:27 i tried Qt, they introduced android support recently Nov 16 13:59:30 also... beware of allocations, those destroy your performance Nov 16 13:59:40 but Qt is rather gui oriented, not really good for games Nov 16 14:00:02 ok then, i thought i did something wrong, like copying objects when calling methods, common pitfall in c++ Nov 16 14:00:09 but if it's normal, i'll just continue coding Nov 16 14:00:12 nah, it's always references in java Nov 16 14:00:18 where should i place the data_model for a quiz android app Nov 16 14:00:19 ??? Nov 16 14:00:23 just remember, Java classes are always "virtual" :) Nov 16 14:01:02 also, Android's Dalvik is significantly less sophisticated than desktop JVMs Nov 16 14:01:04 also, android sdk rendering is so slow, i had to switch to libgdx, it's like 100 times faster than android.graphics Nov 16 14:01:10 xyz87, what is your data model? Nov 16 14:01:28 ison__, what rendering in Android SDK? Nov 16 14:01:32 i wish there was something like 'optimization' for dalvik Nov 16 14:01:36 there are several ways of rendering things on screen Nov 16 14:01:45 ison__, "ART" ;) Nov 16 14:01:53 just standard rendering technique from android sdk, like import android.graphics.Bitmap; Nov 16 14:02:18 um Nov 16 14:02:26 describe this "standard" way :) Nov 16 14:02:35 as I said, there's several way which wildly differ in performance :) Nov 16 14:02:44 its the questions with anwers Nov 16 14:02:55 import android.graphics.Canvas; import android.graphics.Bitmap; and then Canvas canvas; canvas.drawBitmap(something); Nov 16 14:03:02 but i already switched to libgdx, it's nice Nov 16 14:03:45 xyz87, I mean... do you have a database, text file, etc? Nov 16 14:04:10 ison__, mhm, libgdx renders with OpenGL which is faster due to obvious reasons Nov 16 14:04:26 there's also direct rendering to surfaceview and other techniques Nov 16 14:05:04 i have questions and multiple answers Nov 16 14:05:41 actually i a trying to impliment this http://stackoverflow.com/questions/11972835/android-random-multiple-choice-quiz-how-to-identify-correct-answer Nov 16 14:19:21 Marvik, what would be the best approach to do shadows like these? http://images2.wikia.nocookie.net/__cb20130410105909/pixeldungeon/images/thumb/e/e6/Pixel_dungeon.jpg/640px-Pixel_dungeon.jpg Nov 16 14:19:44 any help Nov 16 14:20:16 size would be too big if i wanted to create shadow-map as huge as whole map, so should i render each tile shadow seperately in each frame? Nov 16 14:22:58 oups Mavrik not Marvik, sry Nov 16 14:25:17 xyz87, basically if you don't know how you want your data stored it's hard to give you concrete advice Nov 16 14:25:26 ison__, you'll have to implement a tiling engine for that anyway Nov 16 14:25:33 ison__, so just do blending when rendering Nov 16 14:25:42 if you're using OGL it's just a matter of shader Nov 16 14:25:51 so each frame i should iterate through all tiles and render shadow on each tile? Nov 16 14:26:04 no you should render shadowed tile :) Nov 16 14:26:05 the same way as the link i have gave you Nov 16 14:26:25 hmm, so i should iterate through all tiles each frame anyway, to render them Nov 16 14:26:38 because now i'm at startup rendering all tiles to 1 FBO, and then just display 1 texture with all tiles Nov 16 14:26:39 so it's faster Nov 16 14:27:10 hmm Nov 16 14:27:26 ison__, well you could do another FBO with shadow overlay Nov 16 14:27:35 and then render that over the original one Nov 16 14:27:39 but all my tiles are 16x16, it's a pixel-game Nov 16 14:27:45 so i can create FBO with all tiles Nov 16 14:27:52 but shadows must be better quality than 16x16 Nov 16 14:28:02 because 16x16 shadows dont look good Nov 16 14:28:15 like in pixel dungeon, they have 16x16 tiles but shadows are good quality Nov 16 14:30:13 marvik can i private you Nov 16 14:30:28 Mavrik can i private you Nov 16 14:30:43 xyz87, dude, I'm not your java programming instructor Nov 16 14:30:52 ison__, I see the issue :/ Nov 16 14:31:10 i just wanna need a little bit of help :( Nov 16 14:31:18 tough problem, but they somehow managed to do it fast in pixel dungeon, it renders fast even on slow devices Nov 16 14:31:19 ison__, honestly I think that's something that could be solved by low-res shadow map of the same size as tiles Nov 16 14:31:25 but they have huge maps, like 30x30 tiles Nov 16 14:31:35 ison__, and then by creative use of fragment shaders to do soft edges Nov 16 14:31:45 blur? Nov 16 14:31:48 I'm sure you could find something like that if you look around game dev sites for tiling edges Nov 16 14:31:53 just gradient Nov 16 14:31:53 it's not too slow for mobile devices? Nov 16 14:32:02 ison__, fragment shaders are very fast :) Nov 16 14:32:53 k, thanks Nov 16 14:33:05 i'll try to look for it Nov 16 14:33:14 or maybe 16x16 shadows won't be that bad Nov 16 14:33:39 i can't tell what resolution shadows are in pixel dungeon, my eye tells me that it's better than 16x16 but im not sure Nov 16 14:34:14 yeah, it's certanly a smooth gradient Nov 16 14:34:47 Hi, how long does it roughly take for a mobile gpu to upload a texture? I'm getting hundreds of milliseconds, is that normal? Nov 16 14:35:00 on a 2012 nexus 7 Nov 16 14:35:47 uh Nov 16 14:35:56 is it a 5000x5000 texture? Nov 16 14:36:18 no, it;s screenresX x screenresY Nov 16 14:36:29 maybe because it's not npot? Nov 16 14:42:33 hey guys Nov 16 14:43:06 hey is there anyone contributing to android open source ? Nov 16 14:45:01 i want to contribute to android open source. Nov 16 14:47:57 it's funny, cos it's faster on my xperia mini Nov 16 14:48:14 whih is strange, given the hw configuration Nov 16 14:51:59 then contribute Nov 16 15:11:11 why cant I get value from my sharedprefs file? can it be because I haven't put anything in it? but I've set that value in my .xml file Nov 16 15:11:33 why are you setting it in the xml file directly? Nov 16 15:13:15 it's used in several places and I want to be able to change it's value once, because I might forget to change it somewhere else Nov 16 15:13:24 huh, wtf Nov 16 15:13:52 I should be getting my moto x today, yay Nov 16 15:19:07 pfn: i want a nexus 5 Nov 16 15:19:12 Someone sponsor me Nov 16 15:19:50 go buy one Nov 16 15:19:59 i tried... Nov 16 15:20:04 as for sponsor... well, write some trinket app and you'll eventually make enough to afford it Nov 16 15:20:10 Google said no Nov 16 15:20:22 I don't have enough money Nov 16 15:20:38 then make money Nov 16 15:20:42 write an app and put it up for sale Nov 16 15:20:48 I'm not a good dev Nov 16 15:21:33 practice makes perfect Nov 16 15:21:43 yeah Nov 16 15:21:51 Eventually i'll get there Nov 16 15:28:21 goddamn gradle Nov 16 15:28:33 is there a friggin decent documentation on how to get an AAR into your local m2 repo Nov 16 15:29:30 should be plenty by now... Nov 16 15:29:57 well... Nov 16 15:30:19 i'd love to see a single piece of it Nov 16 15:50:36 gah, debugging this POS build system is worse than using WinMe Nov 16 15:51:44 * pfn is happy he doesn't ever have to use gradle Nov 16 15:52:06 pfn, well Nov 16 15:52:21 alot of 3rd party people now build their stuff only with gradle Nov 16 15:52:32 I was recently suprised Nov 16 15:52:37 I'm actually trying to include one of those libs in my project Nov 16 15:52:49 Apparently Windows 98 is still in high demand Nov 16 15:52:50 Mavrik, if they build it with gradle, they should be putting those aars into a maven repo Nov 16 15:52:51 the fact that gradle keeps ignoring the plugin that would let me insert it into local cache is... frustrating. Nov 16 15:52:56 well... they didn't. Nov 16 15:53:01 I remembered this when you mentioned WinME Nov 16 15:53:06 Mavrik, aholes Nov 16 15:53:07 and a task that is basically "git clone; mvn install" in maven... Nov 16 15:53:19 Mavrik, as for aars not being in maven; my plugin supports local aar files Nov 16 15:53:19 is not even documented properly for Gradle. Nov 16 15:53:20 * pfn shrugs Nov 16 15:53:37 so those kinds of projects don't affect me Nov 16 15:53:40 they just work Nov 16 15:53:43 hmm Nov 16 15:54:04 so instead of using dependencies you just check them into VCS? Nov 16 15:54:23 ? Nov 16 15:54:25 who said that Nov 16 15:54:36 if it's an aar that isn't published to maven and is only distributed as a file, then yes Nov 16 15:57:17 https://github.com/pfn/keepshare Nov 16 15:57:19 as an example Nov 16 15:57:22 no local library files Nov 16 15:57:30 https://github.com/pfn/keepshare/blob/master/project/build.scala Nov 16 15:57:40 and as an example, it even uses another android app published on github as a dependency Nov 16 15:57:43 without manual retrieval Nov 16 15:58:57 you're just showing a use-case that isn't problematic Nov 16 15:59:03 I can build a lib that uses standard google stuff just fine Nov 16 15:59:26 I said local aars are the same Nov 16 15:59:31 just drop it into source, and reference it Nov 16 15:59:38 okay Nov 16 15:59:43 otherwise, publish it to maven yourself Nov 16 15:59:57 wrong window, nevermind Nov 16 16:00:45 the latter isn't so useful unless you have a central repo that a whole team is sharing Nov 16 16:01:49 Mavrik, and how is the use case I just illustrated not problematic, it's pulling an entire android app out of github Nov 16 16:01:52 and using it as a library Nov 16 16:02:12 and even building it using sbt, mostly transparently Nov 16 16:03:04 Where can i find free animation resources Nov 16 16:14:48 dark what kind of animation Nov 16 16:17:17 dark what kind of animation Nov 16 16:30:03 i basically want a template for frame by frame animation Nov 16 16:30:13 image resources Nov 16 16:31:27 ahh cool hope someone knows. Nov 16 16:52:44 hi all Nov 16 16:57:53 come on fedex truck, hurry up Nov 16 17:07:10 Am trying to use a DatePicker fragment from HoloEverywhere. I'm getting an error saying that my fragment didn't create a view. Nov 16 17:14:00 Create a view then Nov 16 17:18:05 SimonVT: Well, I called on super.createview and returned it.. tthe DatePickerDialog am extending is pretty much complete. Nov 16 17:21:03 Hey dudes, I want to make a button react to a normal click and a continuous press which will a value build up effect in the app. What's the common way to handle the long press? Nov 16 17:21:20 will create* Nov 16 17:22:23 OnLongClickListener Nov 16 17:22:28 SimonVT: Never mind. I think I was thinking Java. DialogFragment doesn't mean I can show it inside a FragmentActivity, yes? Nov 16 17:23:21 DialogFragment can be both a dialog and a normal fragment Nov 16 17:23:26 Providing it returns a view Nov 16 17:23:41 MarkyC: Yes, but who do I hand continues press? I need to keep do stuff as long as the button is pressed Nov 16 17:23:46 handle* Nov 16 17:24:27 The long press listener tells me when a long press has been started but I need to react as long as it's pressed, not sure how to do the react part Nov 16 17:24:54 Use a touch listener, listen for down and up events Nov 16 17:25:24 SimonVT: But, I suppose am supposed to call setShowsDialog(false), first? Nov 16 17:26:06 If you add it to a container, it's used as a regular fragment.. If you call show, then it's shown as a dialog Nov 16 17:27:04 SimonVT: Ok but I keep getting the same error. Nov 16 17:27:17 That's because your onCreateView is not returning a view Nov 16 17:27:21 As the error says Nov 16 17:28:14 SimonVT: But, super.onCreateView code is there? And, am doing return super.onCreateView? Nov 16 17:28:34 SimonVT: onCreate is simply a call to parent as well? Nov 16 17:28:36 Does the super class return a view? Nov 16 17:29:33 SimonVT: Yes. I checked the code. Nov 16 17:30:51 Show me Nov 16 17:31:16 SimonVT: https://github.com/Prototik/HoloEverywhere/blob/master/library/src/org/holoeverywhere/widget/datetimepicker/date/DatePickerDialog.java Nov 16 17:33:29 SimonVT: Line 167-241 Nov 16 17:36:13 That code would crash if it's not shown as a dialog Nov 16 17:36:19 Since getDialog() would return null Nov 16 17:39:31 SimonVT: You might as well linked to your github.Thank you. :) Nov 16 17:39:56 I don't maintain/provide support for that :p Nov 16 17:40:07 Also, holoeverywhere sucks btw .. don't use it Nov 16 17:40:13 SimonVT: As long as it works. Nov 16 17:40:34 SimonVT: Suggestions? That's what came across to me on Google? Nov 16 17:41:12 You need to pull very few resources to get a holo-style look on pre-hc Nov 16 17:41:30 Depending on an entire framework for that is pointless Nov 16 17:41:49 Also, if you're new, you can learn about styling that way Nov 16 17:42:03 why is the symbol '$' used in this line: include $(CLEAR_VARS) Nov 16 17:42:08 *from Android.mk Nov 16 17:43:45 SimonVT: It's not exactly my code. I had to backport from 4.0 to 2.3.3. Nov 16 17:55:01 Zgary: it's a variable Nov 16 17:55:26 what $ does to a variable? Nov 16 17:56:25 Zgary: please read some basics on Makefiles Nov 16 18:01:26 wow Nov 16 18:01:27 ... Nov 16 18:01:38 learn some programming basics, even Nov 16 18:02:20 just use appcompat-v7 Nov 16 18:02:24 why even want a holo look Nov 16 18:02:27 it's terrible if the rest of the OS isn't Nov 16 18:06:00 i found a nice little 'project box' at the comtainer store that fit my N7 + sleeve for $3.50. with room for usb cord and charger Nov 16 18:06:06 perfect fit :) Nov 16 18:08:10 now i can throw it in my pack, no worries of getting smashed Nov 16 18:22:15 can i just make a new class in android if i want to specialize something? Nov 16 18:22:44 you know, and then extend that class? Nov 16 18:30:09 it's just Java... Nov 16 18:34:33 come on fedex truck, hurry up and get here Nov 16 18:35:01 * g00s waits for fedex truck to deliver ti sensortag ;) Nov 16 18:35:11 pfn what did you order Nov 16 18:35:16 moto x Nov 16 18:38:26 i might grab a moto g when its out; i'm guessing they will sell like hotcakes - and its good to have a test device thats popular; i don't want to buy a samsung though Nov 16 18:45:25 do hotcakes actually sell like hotcakes ? Nov 16 19:04:23 come on fedex truck, you're supposed to be here by 12 Nov 16 19:04:28 it's 11 Nov 16 19:04:46 hello all Nov 16 19:05:25 pfn: if you are watching, it's going slower. heisenberg effect! Nov 16 19:05:27 i need to ask when I am inserting an image for future used into y android project the R.java file is gone what should I do Nov 16 19:07:09 fix the image name Nov 16 19:07:29 how Nov 16 19:07:39 what should it be named liked Nov 16 19:09:50 a-z 0-9 _ only Nov 16 19:13:17 I've got a question about the preferencefragment, if i insert it into my app i.e. a content framelayout, but then press on a PreferenceScreen item, a new preference view opens, but this time fullscreen, escaping the previous content framelayout. What happens there? How is that done? Nov 16 19:14:04 what is the point of the package name in a library project ? Nov 16 19:14:13 g00s, for R Nov 16 19:14:20 of course Nov 16 19:16:06 "Each library has its own R class, named according to the library's package name" ok, ... Nov 16 19:16:06 weird. I had to change AS to dev channel, update to 0.3.2, then change to canary and then it would let me update to 0.3.6 Nov 16 19:16:47 pfn what are the semantics if a app / library have same or different package names, and they both define some common resource name ? Nov 16 19:17:00 i think the app would override Nov 16 19:17:02 fail to build maybe? Nov 16 19:17:30 http://developer.android.com/tools/projects/index.html doesn't say all that much beyond what i pasted ... Nov 16 19:18:03 desmin88 AS won't let me change to dev channel; it stays on canary Nov 16 19:18:08 really? Nov 16 19:18:23 i just went to settings > updates and changed the channel Nov 16 19:18:37 yeah, but then if i quit and come back its at the default agaib Nov 16 19:18:45 hmmph Nov 16 19:19:05 i think tor has me targeted as a canary :| Nov 16 19:19:16 yeah i have that too Nov 16 19:19:30 never bothered to go back to updates after i updated :/ Nov 16 19:19:52 now gradle wont work Nov 16 19:19:53 wat. Nov 16 19:21:47 "There is no requirement for the package name of a library to be the same as that of applications that use it." Nov 16 19:21:59 so it doesn't sound like package naming impacts resource merging Nov 16 19:22:17 if i didn't want something to collide, i guess i should use a prefix? Nov 16 19:22:24 (thats what they suggest) … Nov 16 19:22:33 g00s, you're boned Nov 16 19:24:17 some of the stuff here is out of date though with the gradle stuff http://developer.android.com/tools/projects/index.html Nov 16 19:24:39 "Library projects cannot include raw assets" <-- i dont think this is true any more Nov 16 19:25:40 * LuisLeite good evening :3 Nov 16 19:38:10 pfn only 20 minutes left ! Nov 16 19:38:21 if they are late, maybe you get free mizza Nov 16 19:38:26 *pizza Nov 16 19:58:08 yeah, it arived already Nov 16 20:06:42 so Nov 16 20:06:49 I put default values for the prefs in preferences.xml Nov 16 20:07:03 but I have to specify the defaults again when calling getDefaultSharedPreferences().getInt() etc Nov 16 20:07:12 that seems like unnecessary duplication Nov 16 20:07:19 is there a way to say "use the default in the XML"? Nov 16 20:14:12 I guess as long as I've called setDefaultValues then it will never matter what I pass to getInt Nov 16 20:14:22 so I don't have to worry about it getting out of sync with the xml Nov 16 20:16:37 i usually have my default as a sentinal value meaning "not set" Nov 16 20:16:49 null / -1, etc Nov 16 20:17:54 If I want to port custom ROMs to an unpopular device, where should I start? Nov 16 20:20:09 g00s_: you mean in the xml, or when you retrieve from sharedprefs? Nov 16 20:20:15 and there's no such value for a boolean pref :) Nov 16 20:20:20 durka42 retrieving Nov 16 20:20:32 fair enough Nov 16 20:25:30 what room do I need to join RE: roms? Nov 16 20:25:36 hey there. Nov 16 20:26:09 Is there something like onFinishInflate that I can use in an activity? Nov 16 20:26:14 Crimson_Rogue try xda forums Nov 16 20:26:42 I need live help with a rom... I know there is a channel... Nov 16 20:27:10 I want to get the width and the height of a view, but is 0 when I check it in onResume... is there a method that gets called in the activity after everything finished inflating? Nov 16 20:27:19 nvm, I found it Nov 16 20:28:48 why does my app crash when I pass some extras via the intent? this is what I have: Intent viktorina = new Intent(this, Viktorina.class); viktorina.putExtra("com.dainius.viktorina.kategorija", 1); startActivity(viktorina); Nov 16 20:28:51 trying to build cm; where would I pull boot.img and recovery.img from? Nov 16 20:29:42 because the I in intent is capitalized and the V in viktorina is capitalized?? just a guess... Nov 16 20:29:45 and is another class: int kategorija = getIntent().getExtras().getInt("com.dainius.viktorina.kategorija"); Nov 16 20:30:05 RedNifre, http://stackoverflow.com/questions/16925317/getwidth-and-getheight-always-returning-0-custom-view Nov 16 20:30:22 it's how they're spelled Nov 16 20:30:27 it cant be that Nov 16 20:31:10 Denel, stacktrace or gtfo? Nov 16 20:31:15 oh god, that's just horrible. Nov 16 20:31:41 Is it just me or is Android more complicated than necessary, in MANY places? Nov 16 20:32:00 RedNifre, try the last .measure(... answer in that stackoverflow, it worked for me in my case :) Nov 16 20:32:33 darken, what? Nov 16 20:33:12 Denel, don't you think it would be beneficial to post the actual error ? Nov 16 20:33:23 it's more complicated in Many Places RedNifre -- but that's google for ya... Nov 16 20:34:50 https://www.dropbox.com/s/as8rmyullgr88qb/Screenshot%202013-11-16%2022.34.36.png Nov 16 20:39:10 w/o this line kategorija = getIntent().getExtras().getInt("com.dainius.viktorina.kategorija"); everything is extra smooth Nov 16 20:39:16 maybe Im doing anything wrong? Nov 16 20:40:59 How do i create a listview that adds a new row everytime a button is clicked? Nov 16 20:41:47 datandroiddude, just add a new entry to the adapter? Nov 16 20:42:03 Example? Nov 16 20:42:10 Google? Nov 16 20:42:33 mAdapter.add(new DataEntry()); mAdapter.notifyDataSsetChanged(); Nov 16 20:42:34 Denel: there seems to be an NPE, find out what in that chain of calls is coming up null Nov 16 20:42:37 pfn whats the verdict ? Nov 16 20:43:01 still setting it up, and it's nice Nov 16 20:43:06 for $100 (32gb) it's a steal Nov 16 20:43:11 awkay....Ill see if that works Nov 16 20:45:36 hello Nov 16 20:46:14 is it possible to rewrite the rubber effect? Nov 16 20:46:25 damn stupid me. forgot to change random generator Nov 16 20:46:35 *rubberband Nov 16 20:52:09 g00s_, it feels so nice and compact Nov 16 20:52:18 g00s_, same exact screen size as galaxy nexus, but much smaller bezels Nov 16 20:54:47 pfn the "feature" … what i understand of it anyhow … where its always listening for voice commands … can you completely disable that ? Nov 16 20:55:03 g00s_, sure, but why would you want to Nov 16 20:56:39 privacy of course Nov 16 20:56:41 or battery maybe Nov 16 20:57:22 battery not much of a big deal since it's on an optimized processor Nov 16 21:00:22 well yeah but the microphone doesn't have much to do with the processor Nov 16 21:00:26 that's probably minimal though Nov 16 21:00:44 mic doesn't need to be powered... Nov 16 21:02:38 its been out long enough, i guess if there were any battery life concerns we'd here about it by now Nov 16 21:05:49 g00s_, talking about the n5 ? Nov 16 21:05:59 moto x Nov 16 21:06:18 i thought the 'always listening' thing is special to the moto x atm Nov 16 21:06:40 pfn, where is that for 100$ ? Nov 16 21:06:40 it is Nov 16 21:06:44 darken, motomaker Nov 16 21:06:52 link? Nov 16 21:06:54 g00s_, nexus 5 has "always listening" home screen Nov 16 21:07:02 shit Nov 16 21:07:05 https://www.motorola.com/us/motomaker?pid=FLEXR1#exterior/backplate Nov 16 21:07:34 pfn, US only or ? Nov 16 21:09:05 pfn did you get a customized one ? Nov 16 21:09:22 yes Nov 16 21:09:27 how :) Nov 16 21:09:36 like, what did you order? Nov 16 21:09:45 white + turq + black Nov 16 21:09:51 32gb + pfn on back Nov 16 21:10:07 if that has internal shipping I'm getting one now Nov 16 21:11:10 no green keys =( Nov 16 21:15:14 is it possible to put a list of sr Nov 16 21:15:22 err, of String in shared prefs? Nov 16 21:19:47 viran possible, sure. elegant, no Nov 16 21:20:07 Does it have to be ordered? Nov 16 21:20:20 There is get/putStringSet for API >= 11. Nov 16 21:20:29 orly Nov 16 21:20:42 So if you don't need an ordered list of strings, you could use that. Nov 16 21:22:05 hmm, i need to support api 8 and above, I'll figure somethign out :) Nov 16 21:22:05 In that case, you could also join the array by some sequence of characters that wouldn't reasonably occur in the strings in the list. Nov 16 21:22:22 Then split it later. Nov 16 21:22:52 thanks Nov 16 21:23:09 Not pretty or very nice, but at least you can do it without a ton of allocations. Nov 16 21:23:33 Well, without a ton of allocations to build the stored string. Nov 16 21:23:33 Getting it back out: yes, tons of allocations. Nov 16 21:24:05 Unless string slices just refer back to the original string's memory. I don't know how all that's implemented on Android. Nov 16 21:25:04 If you're not loading it back frequently, it's probably not a concern. Nov 16 21:26:48 where do I get started with android page scraping? Nov 16 21:27:15 "Execution failed for task ':dexDebug'. > Could not call IncrementalTask.taskAction() on task ':dexDebug'" … oh great Nov 16 21:28:22 What is Android page scraping O_o Nov 16 21:29:51 <|0xD34D|> I never knew android had it's own type of page scraping Nov 16 21:29:54 <|0xD34D|> interesting Nov 16 21:29:55 <|0xD34D|> :P Nov 16 21:32:06 I want to copy images from manga pages to my app...that page scraping rite? Nov 16 21:32:50 <|0xD34D|> sounds like it, but you said "android page scraping" as if there is a difference ;P Nov 16 21:32:53 You scrape pages like you scrape anything else. Nov 16 21:33:11 OK but where do I get started ?? Nov 16 21:33:19 Assuming you already know how to do page scraping. Nov 16 21:33:31 Google, probably. Nov 16 21:33:54 Maybe bing if you're one of thooooose people. Nov 16 21:34:01 And Yahoo if you're 70 and miss Altavista. Nov 16 21:34:04 which is like...I have no experience with this Nov 16 21:48:36 quick question, how do you specialize classes in android? Is it like java where you just make a new class and extend it or do you need to include activities / intents somehow? Nov 16 21:49:48 Dragonya: it's just plain old Java Nov 16 21:50:05 ah cool, thanks Nov 16 21:50:23 so i dont need to include activities / intents in any way? Nov 16 21:50:24 activities are normal classes. Intents are afaik sealed classes, because they essentially represent IPC Nov 16 21:51:08 Activity is a component of an application, just like servlet might be in certain other environments Nov 16 21:52:12 Dragonya: http://developer.android.com/guide/components/fundamentals.html <--- I recommend you go through this first :) Nov 16 21:52:35 it describes various *high* level components of an Android Application Nov 16 21:54:53 i want to extract images from a server in my android app what do i do? Nov 16 21:56:27 .. Nov 16 21:56:47 ... write something that uses whatever protocol the server exposes to download the images? Nov 16 21:59:23 #Confused Nov 16 22:00:56 For example, if it is a web server (and thus talks HTTP), use a HTTP library to download the images from it? Nov 16 22:02:47 Example like a Sample App? Nov 16 22:07:27 I don't think anyone wants to write your app for you in the guise of a sample app Nov 16 22:07:54 Bah, left. Nov 16 22:07:55 also, I have troubles explaining without having to going back to first principles Nov 16 22:07:58 heh Nov 16 22:08:00 That's it, unhiding part/quit messages Nov 16 22:13:16 Hiding join/part messages makes freenode look a lot more lively! Nov 16 22:14:29 and readable Nov 16 22:15:15 i like to leave them; gives a feel for the pace of thinfs Nov 16 22:15:58 I only see joins/quits from select group of people that I care about joining or parting a channel :P Nov 16 22:31:43 upon attempting to unpack recovery.img I get the following error: File recovery.img not a plain boot image, seeking for embedded image... not found Nov 16 22:31:54 could someone help me with this issue? Nov 16 22:32:17 Is this a rooting question? Nov 16 22:32:30 no, just a general question Nov 16 22:32:52 Then you'll probably need to provide way more context. Nov 16 22:33:23 i.e., what're you trying to do and such Nov 16 22:34:22 I'm trying to extract and modify my recovery.img file; which I pulled from the device using dd and adb pull. I need to examine the recovery.img file. Nov 16 22:34:29 and make some changes Nilium. Nov 16 22:34:43 Crimson_Rogue i think i mentioned, xda or #android-root Nov 16 22:35:02 So what's that got to do with android development? Nov 16 22:35:33 Ugh, xda Nov 16 22:35:33 The scum of the scum Nov 16 22:35:47 because I'm modifying the recovery.img file to make a better recovery .img Nov 16 22:36:07 But yeah, I think you're looking for #android-root. Nov 16 22:36:07 This is not the general-I'm-doing-root-related-shite-and-have-questions channel. Nov 16 22:36:48 Crimson_Rogue see topic ;) Nov 16 22:37:02 !topic Nov 16 22:37:05 :| Nov 16 22:37:16 Funnily enough, almost everyone doing these weird tweaks to their shite on Android makes Android worse Nov 16 22:37:35 yes, but I'm making mine better, slowly but surely... Nov 16 22:37:42 'Cause, y'know, Android "enthusiasts" usually haven't got the first clue about what 'better' actually is. Nov 16 22:38:17 I do... quick, reliable, and clean. Nov 16 22:38:17 They usually just pull crap out and go "hey look it's faster (let's just ignore the tons of problems I just created)" Nov 16 22:38:23 Also it's typically not actually measurably faster. Nov 16 22:38:48 Anyway, go bother android-root. Your question isn't related to development. Nov 16 22:39:07 not loaded with bloatware, increasing the swap so the hdd isn't working so hard, Nov 16 22:39:09 etc Nov 16 22:39:53 Hard drive? Nov 16 22:40:06 Also, you realize swap is part of the internal storage, right? So it's obviously going to work harder anyway. Nov 16 22:40:35 unless I partition the sd card and make a swap partition on it... Nov 16 22:40:58 That would be slower than putting it on internal storage. Nov 16 22:41:10 maybe... Nov 16 22:41:32 Not maybe, it _is_ Nov 16 22:42:13 but I would still have a swap partition on the internal storage too, so, between the 2, it would actually be faster Nov 16 22:42:16 would it not? Nov 16 22:42:17 Paging to a swap partition on an SD card is just slow. Nov 16 22:43:12 How would it be faster? Nov 16 22:44:01 2 swap partitions with decreased workload for the internal storage... and more swap space Nov 16 22:44:17 No. Nov 16 22:44:19 Just no. Nov 16 22:44:47 Did you just arbitrarily decide bigger numbers are better? Nov 16 22:45:57 no Nilium Nov 16 22:46:22 Anyway, I suggest you do a lot of profiling. Nov 16 22:46:41 oh, I profile all the time Nilium Nov 16 22:50:22 Hello I am using eclipse for developing in Android and my Eclipse keeps crashing every time I launch an AVd Nov 16 22:50:26 This is what the console says Nov 16 22:50:27 http://pastebin.com/15cCBCLq Nov 16 22:56:30 so i have an image at @drawable/button_profile_selector and im trying to upload it to parse, so im using this code to convert it to type: byte[] image = "@drawable/button_profile_selector".getBytes(); but doesnt work Nov 16 22:56:35 how would it go? Nov 16 22:58:34 actually the picture is at /test/res/drawable-hdpi/button_profile.png Nov 16 22:58:48 upload it to parse? Nov 16 22:59:07 what you're doing makes zero sense in any case :) Nov 16 22:59:31 Mavrik: im just trying to convert /Workout Buddy/res/drawable-hdpi/button_profile.png to byte[] Nov 16 23:00:30 so why are you calling getBytes() on the string containing "@drawable/button_profile_selector" O.o ? Nov 16 23:00:37 you'll just get raw bytes of that string Nov 16 23:01:58 Mavrik: forget about my initial question, so under my res folder i have a png file how can i convert it to byte [] Nov 16 23:03:45 first of all, there's no res folder anymore when the app is packaged Nov 16 23:03:50 you have to load it Nov 16 23:04:00 I have two TextViews in a RelativeLayout. I want to be on the right of the other. They have different font sizes. How can I align these two TextFields along the same baseline? Nov 16 23:04:01 go read on how resource system works and how do you load resource Nov 16 23:04:20 MarkyC, layout_alignBaseline? Nov 16 23:05:55 Mavrik: Do I set layout_alignBaseline to the TextView I want to align with? Nov 16 23:06:33 MarkyC, yes Nov 16 23:06:34 ie ? Nov 16 23:06:42 it means "align baseline of this textview with that textview over there" Nov 16 23:06:56 no, only set it on one textview. Nov 16 23:07:07 referencing them like that makes no sense Nov 16 23:07:41 Mavrik: I was going to say, it seems circular. So I just set maybe the smaller TextView to alignBaseline with the larger Nov 16 23:07:46 Thank you for your help Nov 16 23:08:37 MarkyC, yeah, with relativelayout you usually have a view that's positioned according to borders Nov 16 23:08:41 and then you reference it in other views Nov 16 23:08:52 e.g. lay out other views accordingly Nov 16 23:10:18 i doubt AS will reach 1.0 by the time Intellij 13 is out; so what happens then … do they (1) merge and base things of 13 and simply add stuff to the android plugin or (2) do they continue merging EAP (13.x or 14 presumably) and keep fiddling with everything Nov 16 23:11:27 g00s_: I think AS will be essentially a dedicated subset of IntelliJ by then Nov 16 23:11:28 now that's a good question. Nov 16 23:13:22 Mavrik is a known Brit and should be treated as such. Nov 16 23:13:32 nop. Nov 16 23:13:32 Maybe both. Nov 16 23:14:08 Something's wrong with the Bri'ish? Nov 16 23:14:44 weather and food. Nov 16 23:15:11 g00s_, or... they'll freeze IntelliJ on whatever state is in Nov 16 23:15:12 That ain't a problem with the people though. Nov 16 23:15:12 Now queuing, on the other hand... Nov 16 23:15:22 g00s_, as long as you're not using Gradle the Beta works rather well Nov 16 23:15:42 I'm not looking forward to having to actually pay for IntelliJ 13. Nov 16 23:15:42 Maybe I'll go to the community edition once it's out. Nov 16 23:15:43 Nilium, also left driving :P Nov 16 23:15:56 I'm hoping for another newyears sale Nov 16 23:16:23 Mavrik i'm using gradle :P gradle itself is OK, but through AS its kinda flaky still - like some things don't get recompiled when changed / stuff gets stale Nov 16 23:16:37 (errors should appear but they don't, some builder is not kicking off) Nov 16 23:16:41 yep... also still noticably slower than mvn compile Nov 16 23:16:47 I'd love for one to happen, but I wouldn't count on it Nov 16 23:18:13 Nilium, you can get UE for free as a regular OSS contributor Nov 16 23:18:32 it's only supposed to be for that particular OSS project, but whatever, use it for any project; at least that's what my cheap ass does Nov 16 23:18:52 Eh, I'm not regular enough for it to count and I don't fancy breaking their trust on that Nov 16 23:19:06 * pfn has too many oss projects Nov 16 23:19:08 * pfn shrugs Nov 16 23:19:23 Chances are I'd get by fine without UE anyway. Nov 16 23:19:26 pfn what part of UE do you use thats not in CE ? Nov 16 23:19:42 g00s_, more languages Nov 16 23:19:46 like javascript and python Nov 16 23:20:20 don't they have a python ide now, pycharm? Nov 16 23:20:28 UE includes python language stuff Nov 16 23:20:29 obviously haven't tried it :P Nov 16 23:21:03 I don't want 1 ide per language Nov 16 23:21:07 I want 1 to rule them all Nov 16 23:21:09 and that's what UE gets me Nov 16 23:21:17 Pretty much. Nov 16 23:21:29 that's why the thought of android studio is pretty much anathema Nov 16 23:21:37 Though I still won't use IntelliJ for stuff like Ruby. Nov 16 23:23:08 yeah, that's my annoyance with pycharm CE... no javascript support Nov 16 23:24:02 and yeah, my projects span many many languages Nov 16 23:24:08 c#, javascript, python, java, scala, etc. Nov 16 23:24:22 i think i eventually need to learn js :( Nov 16 23:24:49 g00s_, madness and frustration lies down that road Nov 16 23:24:53 I'm surprised you don't know it. Nov 16 23:24:53 I hate web dev crap and I know it. O_o Nov 16 23:24:54 wouldn't you rather learn how to knit_ Nov 16 23:24:57 _ Nov 16 23:25:23 its so funny, my friends tell my i'm definitely not going to like it, heh Nov 16 23:25:40 you'll like the speed Nov 16 23:25:43 if you like dynamic typing, there's really nothing wrong with javascript Nov 16 23:25:57 Used to be in favor of CoffeeScript, but using it seems sort of untenable now. Nov 16 23:25:58 but I despise dynamic typing Nov 16 23:26:04 i guess the first step to learning js, coming from 'regular' languages, is just forget about what you think is normal Nov 16 23:26:12 Dart. Nov 16 23:26:13 or so i am told Nov 16 23:26:21 Hi! Nov 16 23:26:22 javascript is completely normal Nov 16 23:26:29 their OO mechanism is the only weird thing Nov 16 23:26:32 There's nothing really wrong with Javascript as a scripting language. The problem mostly lies in the tons of horrifying legacy baggage that comes with the DOM and browsers and so on. Nov 16 23:26:33 pfn, there's hellowa lot wrong with JavaScript which has little to do with its wierd type system. Nov 16 23:26:37 prototypical OO vs. class-based OO Nov 16 23:26:41 g00s_: iirc you have experience with a bit of lisp, JS will be easy :P Nov 16 23:26:43 Mavrik, I disagree Nov 16 23:26:51 otoh, i hear its lisp-y so i find that part intriguing Nov 16 23:26:59 javascript is not lisp-y Nov 16 23:27:00 p_l :D Nov 16 23:27:02 Hello I am using eclipse for developing in Android and my Eclipse keeps crashing every time I launch an AVd Nov 16 23:27:03 Javascript OO just reminds me of Lua. Nov 16 23:27:05 not in the least Nov 16 23:27:05 g00s_: think of it as deranged Scheme with M-expressions Nov 16 23:27:14 This is what the console says Nov 16 23:27:14 http://pastebin.com/15cCBCLq Nov 16 23:27:18 pfn, stuff like non-consistent parsing semantics, comma injection, non-intuitive and downright stupid type coercion rules, etc. etc. etc. Nov 16 23:27:24 Guys is this the right place to start with noob questions or you have a better place for me? Nov 16 23:27:29 Mavrik, semi-colon injection, not comma Nov 16 23:27:33 Yatekii, d.android.com is by far the best place Nov 16 23:27:42 and type coercion is a side-effect of dynamic typing Nov 16 23:27:53 and ASI is extremely consistent Nov 16 23:28:02 the rules for ASI in javascript are extremely well defined Nov 16 23:28:08 Nov 16 23:28:16 wat video indeed. Nov 16 23:28:18 the question is why history made javascript the defacto VM is a web browser instead of a JVM Nov 16 23:28:27 that's a nice demonstration of great JS type coercion rules Nov 16 23:28:28 bubbleguuum, jvm too heavy, of course Nov 16 23:28:35 Mavrik: well I have some specific question about accessing Files outside my Apps resource folder... Nov 16 23:28:37 bubbleguuum: because JVM was heavyweight, and various licensing etc. Nov 16 23:28:42 bubbleguuum: Because the JVM is controlled by a specific company. Nov 16 23:28:44 it's type coercion, that's what you get :p Nov 16 23:28:50 Yatekii, ok... where is that file? :) Nov 16 23:28:53 pfn: I'm not so sure it is too heavy, maybe 10 years ago it was Nov 16 23:29:06 pfn, you still don't get what we're saying Nov 16 23:29:07 bubbleguuum, js has been in use well over 10 years, though Nov 16 23:29:12 "we're" ? Nov 16 23:29:14 pfn, it's not type coercion per-se Nov 16 23:29:17 It's still pretty damn heavyweight. Nov 16 23:29:18 Also, the startup time is horrifying enough to justify not using it. Nov 16 23:29:19 bubbleguuum: it was too heavy in the aspect that you had to compile stuff :) Nov 16 23:29:20 it's that it's badly designed. Nov 16 23:29:26 * pfn shrugs Nov 16 23:29:54 I'd be a happy, happy person to have something like Lua in a browser. Nov 16 23:29:58 everything is badly designed at some point Nov 16 23:30:07 well I am trying to build a simple MusicPlayer so I wanna access /Music/ I tried to do so trough: library.listFiles() where library is of type File("/Music") maybe it's anooby mistake but I really can't see it atm :S Nov 16 23:30:10 I dislike working in javascript in any case Nov 16 23:30:12 bubbleguuum, also note that Java Applets appeared later than Javascript Nov 16 23:30:20 and Java wasn't really widely deployed at all Nov 16 23:30:22 bubbleguuum, I don't think that's true Nov 16 23:30:26 er Nov 16 23:30:27 It would have been better if the standard was a JVM in all web browsers, rather than a Javascript VM Nov 16 23:30:27 mavrik Nov 16 23:30:34 applets started showing up in 1996 Nov 16 23:30:39 pfn, just verified it. Nov 16 23:30:42 I don't recall javascript becoming present until 1998ish Nov 16 23:30:49 JS is 1995 tech Nov 16 23:30:53 Though the global-by-default variables in Lua could lead to a worse state of the union considering how horrifying some JS already is. Nov 16 23:31:06 then again, I was also using applets in about 1995 or so Nov 16 23:31:10 bubbleguuum, or any bytecode VM really Nov 16 23:31:28 i guess the latest chrome has PNaCl in it ? Nov 16 23:31:32 Either way, kind of a pointless alternate history discussion Nov 16 23:31:40 and Marvik it shows me some NullPointerException, which means that object doesn't really exist :S Nov 16 23:32:52 Yatekii, okeeeeey... SLOWWWLY Nov 16 23:33:01 Yatekii, there is no "/Music" on Android device Nov 16 23:33:08 WHERE is that Music folder? :) Nov 16 23:34:00 Mavrik: I figured that one out yet but I cannot find the right path ... even through google (maybe I am too dumb to use it) Nov 16 23:34:07 well just the defaulty Music folder :) Nov 16 23:34:23 Yatekii, ah, that's the one on SDcard? :) Nov 16 23:34:33 Yatekii, that's called "External storage" Nov 16 23:34:39 well I have a nexus5, so there is no SDCard :) Nov 16 23:34:42 here's the doc on how to open files from there: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Nov 16 23:34:54 remember, if you hardcode path to files instead of using external storage APIs puppies will die Nov 16 23:35:00 and we'll strangle you in your sleep. Nov 16 23:35:06 hmk :D Nov 16 23:35:09 seems fair to me Nov 16 23:35:22 but I have no external Storage Nov 16 23:35:23 I will also hire someone to beat you with said dead puppies Nov 16 23:35:23 I guess Nov 16 23:35:30 so I will search after internal one Nov 16 23:35:30 ty Nov 16 23:36:01 Yatekii, basically getExternalFilesDir(Environment.DIRECTORY_MUSIC) should give you right path Nov 16 23:36:06 the method is on any context Nov 16 23:36:16 Yatekii, no, that IS external storage Nov 16 23:36:21 ah k Nov 16 23:36:24 I'm dumb then :D Nov 16 23:36:28 Yatekii, it's called like that for historical reasons... Nov 16 23:36:34 just read it Nov 16 23:36:44 basically, external storage is everything you see when you plug the phone into the computer :) Nov 16 23:36:48 yeah Nov 16 23:36:50 shared one Nov 16 23:36:54 *public Nov 16 23:37:55 um, what's that silly site that tells you the name of gradle package for popiular libraries? Nov 16 23:38:20 gradlesay or some such? Nov 16 23:39:17 thanks for the fast and proper help :) Nov 16 23:39:23 I will read the rest myself now :) Nov 16 23:41:35 hi Nov 16 23:44:35 wow I'm sucha java noob Nov 16 23:44:41 I don't understand shit :P Nov 16 23:44:44 i did something so utterly, absolutely bad with my app that both genymotion and the official emulator crashes so badly that every single service dies and zygote gets restarted, i wish there was a medal for that Nov 16 23:46:05 eh Nov 16 23:46:22 garrus, you should start testing apps on Samsungs :P Nov 16 23:46:54 meh, LGs and Huaweis were worse for me Nov 16 23:47:17 they managed to release a phone that was unable to tell in what state the sim was Nov 16 23:47:55 LG P880 has a very nice bug where if you say "setRotation" on camera... the Tegra driver just crashes Nov 16 23:48:05 no landscape pictures for those people :P Nov 16 23:48:10 although Acer has some nice stuff too Nov 16 23:48:12 er, portrait pictures Nov 16 23:48:26 the RIL constantly crashed on the first iconia Nov 16 23:48:46 If I am going to try and build AOSP on a device, where do I pull the drivers off of the phone from? Nov 16 23:51:29 Can nobody try to help me? Nov 16 23:51:37 library = Context.getExternalFilesDir(Environment.DIRECTORY_MUSIC); // This tells me that I try to reference non-static method whilst having a static Class? how do I resolve that problem? Nov 16 23:52:34 winsoff, not the place to ask Nov 16 23:52:41 pfn: Better place? Nov 16 23:52:55 see topic Nov 16 23:53:21 Under the custom-roms, then? Nov 16 23:53:30 winsoff: google tells you that pretty fast :) Nov 16 23:57:39 shawn, maybe you could try using an oracle jdk not openjdk Nov 16 23:58:17 garrus, Okay Nov 16 23:58:30 some native stuff crashed, dereferenced a null pointer perhaps. really hard to troubleshoot Nov 16 23:59:21 garrus, I found a fix online go to Window > Preferences > General > Websites and disable that but as soon as I click on the webpage tab Enclipse crashes Nov 16 23:59:24 With the same error Nov 17 00:01:31 Mavrik: according to taht article http://stackoverflow.com/questions/10123812/diff-between-getexternalfilesdir-and-getexternalstoragedirectory/10124040#10124040 neednt I rather use the first method? Nov 17 00:01:46 shawn, please try an oracle jdk first, i know it is rather unpleasant but i wouldn't bother with openjdk if it crashes for you that badly Nov 17 00:02:50 ah well no :) Nov 17 00:13:32 File library = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC); why does this still give me NullPointerException? :S Nov 17 00:15:46 garrus, How do I switch? Nov 17 00:17:58 shawn: What kind of distribution are you using? Nov 17 00:18:04 Fedora Nov 17 00:18:15 YES Nov 17 00:18:17 I DID IT Nov 17 00:18:22 First App running Nov 17 00:18:41 step 2: world domination? Nov 17 00:18:54 garrus: world is not enough Nov 17 00:19:00 so Proud now Nov 17 00:19:04 shawn: well I cannot help you with fedora Nov 17 00:19:05 even tho a lot was copy pasterion Nov 17 00:19:10 *pasterino Nov 17 00:19:17 gotta read through the rest of the code Nov 17 00:19:24 and then start doing it my way :) Nov 17 00:19:29 shawn: a quick search turns up this http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/ Nov 17 00:19:31 thanks for the help folks Nov 17 00:19:36 and sry for spammerino Nov 17 00:19:51 i'm using ubuntu myself, not so familiar with fedora Nov 17 00:21:13 garrus, Seems like a lot of work if I'm not even SURE that openJDK is the problem Nov 17 00:25:03 shawn, i believe this is the exact problem you are having: https://bugzilla.redhat.com/show_bug.cgi?id=986683 Nov 17 00:26:06 Hi, might anyone be familiar with the android 4.4 SDK? It seems to have enabled NFC card emulation, but I have googled everywhere and still couldn't figure out if it emulates MIFARE cards? Nov 17 00:27:24 garrus, "Just replaced the swt.jar with Fedora's, and it works fine now. Thanks!" What does that mean Nov 17 00:29:57 perhaps fedora has its own swt package Nov 17 00:30:08 garrus, yes Nov 17 00:30:19 I need to replace the swt from this eclipse that I downloaded from google Nov 17 00:30:24 WIth theone from the fedora eclipse Nov 17 00:30:29 I think that's what it's saying Nov 17 00:30:42 most likely, worth a try Nov 17 00:30:43 Where is swt.jar located Nov 17 00:31:11 just search for it :) Nov 17 00:31:20 i cannot really help as i dont use eclipse at all Nov 17 00:32:09 but anyway, IDEA complains when I run it with openjdk saying that it has serious compatibility issues with it Nov 17 00:32:38 garrus I ran find swt.jar on my eclipse directory and it is saying it can't find one Nov 17 00:33:37 is there an API for active display on the moto x, that'd be nice to have Nov 17 00:42:20 maybe you could search for *swt.jar Nov 17 00:42:27 and that would turn up something Nov 17 00:43:10 i'm not familiar with eclipse or swt so that is all the help i could give Nov 17 00:43:40 i would say your best bet is to use an oracle jvm Nov 17 00:43:55 gotta go, it is way too late here Nov 17 00:43:57 bye Nov 17 02:38:47 ugh, genymotion 2 player is annoying as hell for 'free / personal use' constantly changing the window title, o i fucking get it already ! **** ENDING LOGGING AT Sun Nov 17 02:59:59 2013