**** BEGIN LOGGING AT Sat Feb 21 02:59:59 2015 Feb 21 03:00:16 Why the ****... can't we collapse comments on HN?! Feb 21 03:01:19 hmm, looking at these usb cables Feb 21 03:01:21 http://www.monoprice.com/Category?c_id=102&cp_id=10303&cs_id=1030302 Feb 21 03:01:30 really need ferrite beads for < 3ft ? Feb 21 03:03:42 I have some on 12 inchers! Feb 21 03:03:58 not saying they are needed though... Feb 21 03:05:19 Big day... Just released beta 9 of Coloroos... I'm dead. Feb 21 03:05:57 If you guys want to try it out, here's the beta group : http://goo.gl/BNepZE Feb 21 03:06:00 MikeWallaceDev link ? Feb 21 03:06:05 HA! Feb 21 03:06:05 It's not a hostile release. It's benign. Feb 21 03:06:05 if i have my own app and server, does it make sense to have the app do the oauth flow to a 3rd party and then pass the received token to my server to let the server act on the 3rd party, or is that just dumb? Feb 21 03:08:24 beta 9 was just published minutes ago, it might take a while to get to you... Feb 21 03:08:45 And I will be posting links to coloring books in the community Feb 21 03:09:56 *spits out Crayolas* Colouring books? Feb 21 03:10:14 huh. Just figured out that middle clicking the new tab icon in Chrome will automatically launch a search for the selected text. Cool Feb 21 03:10:51 TacticalJoke, yeah, Coloroos is a drawing program for kids. And you can add coloring books as separate APKs Feb 21 03:14:29 Can you draw just by touching the screen (i.e., without dragging)? Every drawing app I've used requires dragging, which kinda puts me off. Feb 21 03:17:55 actually, yes, you can :D Feb 21 03:18:06 Oh, that's cool. Feb 21 03:18:20 When in coloring book mode, you just tap the screen and the region flood fills Feb 21 03:19:35 Ah. Was thinking of freeform stuff. Feb 21 03:21:53 like squiggly lines? Feb 21 03:22:00 that's the normal mode. Feb 21 03:22:17 Yeah. Feb 21 03:22:32 you can draw freeform lines, straight lines, ovals, rectangles, stamps, repeated stamps Feb 21 03:22:38 I'd like to be able to draw on a tablet by tapping here, there, etc., and never dragging. But I've never seen an app that lets me do that. Feb 21 03:23:26 I don't see how you can freeform without dragging? Feb 21 03:23:35 Just drawing a dot. :D Feb 21 03:23:46 or do you want me to detect hovering? :D Feb 21 03:23:53 You can do dots too!! Feb 21 03:24:09 (I actually had to code a special case for that!) Feb 21 03:24:24 What I mean is this: every drawing app I've used on Android requires me to press down and *move*. I've never seen one that simply lets me press down. Feb 21 03:27:19 do any of you want to join the beta group? Please do it now, I'll have to accept you, and I want to go eat :) Feb 21 03:27:37 what beta group Feb 21 03:29:42 TheKarlBrown, http://goo.gl/BNepZE Feb 21 03:29:54 beta group for Coloroos, my latest app Feb 21 03:30:39 hmmm Feb 21 03:30:49 app doesnt exist Feb 21 03:30:54 what is role Feb 21 03:30:56 for me Feb 21 03:31:15 I think it takes a while for it to accept you Feb 21 03:31:49 actually, you have to be in the group first... Feb 21 03:32:05 Join the community and you will have access to the app Feb 21 03:37:14 This is awesome: during a live Eastenders episode, the actress accidentally refers to an actor by his real name: http://youtu.be/gqrLxcO28zE Feb 21 03:38:27 MikeWallaceDev: I'm so lazy about joining stuff. ;| Feb 21 03:40:43 Nobody is forcing you mate Feb 21 03:40:52 :) Feb 21 03:41:48 groxx, it was definitely AsymmetricGridView Feb 21 03:49:35 what would be the best way to store a list of what a user has selected? Feb 21 03:49:43 right now I have a file with a set Feb 21 03:50:32 What is the user selecting? Feb 21 03:50:37 Do you need the items to be ordered? Feb 21 03:51:55 MikeWallaceDev: i think im getting whats the problem Feb 21 03:51:59 ok in this app you can submit and view ideas (which will be dealt with using a mysql server) Feb 21 03:52:04 MikeWallaceDev: i will tell u what the problem is Feb 21 03:52:09 and data containers on the app to process them Feb 21 03:52:18 and sorting algorithms Feb 21 03:52:36 then after lists of items are seen, the user will need to be able to view a specific idea Feb 21 03:52:50 and I need to know if it has been favorited or up/down rated by the user before Feb 21 03:53:22 so im either going to develop the list of known ideas locally then push updates once the page is closed Feb 21 03:53:27 or pull from the server each time Feb 21 03:56:55 last weekend I had just started to approach the problem, and I created a "setsaver" class for favorites that saves a local file that is a set which lists if an item is present Feb 21 03:57:05 in set format Feb 21 03:57:40 but i'm going to want to know if the items are liked or not, and im not sure if i should have 3 diff files or do a purely online implementation Feb 21 04:00:52 TacticalJoke have any ideas Feb 21 04:06:35 haha http://i.imgur.com/qF10M2q.jpg Feb 21 04:22:17 can i mix PreferenceFragment and support Fragments in a ViewPager ? Feb 21 04:22:50 alright I decided to check mysql database for favorites and likes/dislikes and not cache locally at all Feb 21 04:23:20 I just created an empty app and clicked Run in Android Studio Feb 21 04:23:30 emulator64-x86 has been using CPU for 3 minutes and I still see no window appear Feb 21 04:23:32 g00s: of course Feb 21 04:25:38 the emulator process didn't even respond to killing, I had to send SIGKILL :/ Feb 21 04:26:39 i'd need to use native FragmentPagerAdapter or support one, each returns their respective kind of Fragment Feb 21 04:27:03 PreferenceFargment inherits from native Fragment, the others would be support-Fragment Feb 21 04:27:28 PovAddict: try genymotion Feb 21 04:28:06 TacticalJoke: did you see the bloopers at the end of Rush Hour 2 ? Chris Tucker can't stop calling Jackie Chan by his real name Feb 21 04:36:06 Nah. lol Feb 21 04:37:50 I'd better go. Kthxbai. Feb 21 04:42:42 the emulator is definitely getting stuck somewhere starting up Feb 21 04:42:44 :/ Feb 21 04:43:46 g00s: lol @ picture Feb 21 04:44:29 also: statemachine is an interesting class. didn't really expect it to be hierarchical, but it seems practical. Feb 21 04:44:46 groxx yeah. if you need parallel state machines, that works fine too Feb 21 04:45:07 forgot which android service did that Feb 21 04:46:23 How does parallel fit in there? or just that the class is useful for that? Feb 21 04:46:39 2 statemachine instances send messages to each other Feb 21 04:47:21 2 statemachine instances walk into a bar... Feb 21 04:47:32 and they curl with each other Feb 21 04:49:18 "it is possible to use the android.app.Fragment and the android.support.v4.view.ViewPager together... If you use the android.support.v13.app.FragmentPagerAdapter." Feb 21 04:49:42 uh okay Feb 21 04:50:46 anyone here but books from apress? do they ever have sales? i'd like to buy dave smith's because everything he's written has been impressive so far. but $35 hmmm Feb 21 04:51:12 at least oreilly does 50% pretty much all the time if you order more than 1 Feb 21 04:52:38 groxx are you looking at kotlin at all ? Feb 21 04:56:38 can someone help me get the emulator to work on Linux? Feb 21 04:56:54 https://paste.kde.org/psx5ei7xv Feb 21 04:57:11 it didn't output anything else after that, it has been 15 minutes Feb 21 05:02:13 PovAddict: try adding -show-kernel Feb 21 05:02:25 and possibly -logcat *:V Feb 21 05:03:48 I added -show-kernel, it's stuck at the same place and not outputting more Feb 21 05:04:02 I attached gdb to the emulator and it seems to be stuck in __libc_fork() Feb 21 05:04:04 ?! Feb 21 05:04:46 ah hah! Feb 21 05:05:33 the stack trace showed pulseaudio functions too Feb 21 05:05:45 I added -noaudio and now I get a window Feb 21 05:06:01 heh Feb 21 05:07:06 there's now several messages like "init: untracked pid 1079 killed by signal 9" Feb 21 05:08:57 I'll recreate the avd... Feb 21 05:12:38 what is the best way to save objects locally Feb 21 05:12:47 is it objectstream? for saving and loading? Feb 21 05:13:20 UGH Feb 21 05:13:38 I tried to create a new avd and *the JVM crashed* Feb 21 05:14:30 TheKarlBrown: define "locally" Feb 21 05:14:44 saved in the external memoryt Feb 21 05:14:58 Im under the impression you cannot save in the internal memory Feb 21 05:15:12 TheKarlBrown: Not exactly "locally" then, but there are plenty of options. File? SharedPreferences? sqlite? Feb 21 05:15:32 could I save my custom data container locally? Feb 21 05:15:40 Im gonna use file I think Feb 21 05:15:45 Stop saying "locally", it's meaningless Feb 21 05:16:01 can I save my custom data container internally Feb 21 05:16:06 You can save your data in memory, on the file system or in the cloud. Pick one. Feb 21 05:16:06 sorry for my incorrect verbiage Feb 21 05:16:47 can I make Android Studio run the emulator with -noaudio? Feb 21 05:17:08 memory as in ram or as in hidden (not accessible like the sdcard) Feb 21 05:17:39 TheKarlBrown: Again, not sure what "hidden" means. In memory means.. in memory: if your process gets killed, your data goes poof Feb 21 05:18:10 I mean the area that is not the SD card that files are stored to (like the hidden area where preferences area) Feb 21 05:18:38 where apps are installed Feb 21 05:18:53 TheKarlBrown: Hence the importance of being specific. If out of the 3 options I proposed you picked "File", you now have two choices: in the app's file system space or /sdcard Feb 21 05:19:04 can I save an object in the file system space Feb 21 05:19:12 Sure you can Feb 21 05:19:20 how would you recommend doing that Feb 21 05:19:20 definitely the safest from a privacy standpoint Feb 21 05:19:58 TheKarlBrown: http://developer.android.com/training/basics/data-storage/files.html Feb 21 05:25:19 cbeust cbeust_ you deep copied yourself ! Feb 21 05:26:35 g00s: Indeed, I implement Cloneable Feb 21 05:32:25 g00s: kotlin: nope. I quite like the look of it and its approach (from the little I've seen), but no current projects I'd consider it for. and no annotations. Feb 21 05:33:05 much more likely if they add annotations, but I'd have to finish a few intermediate things first Feb 21 05:33:32 groxx: I agree the lack of annotations is annoying but since it's so easy to have Kotlin and Java coexist in a project, writing the @interface file is trivial Feb 21 05:35:39 cbeust: my interest is in large part code generation. though I see your point :) Feb 21 05:36:18 groxx: Hopefully code generation through annotation processors, which are the One and Only True Way. At Least As Of Early 2015. Feb 21 05:36:19 also java 8's annotation-based type system is interesting, and kotlin can't benefit from that. does it have anything similar? Feb 21 05:36:40 cbeust: definitely via annotation processor Feb 21 05:36:51 * cbeust highfives groxx Feb 21 05:38:41 Hi Feb 21 05:39:00 is there any good software for remotely viewing my android phone Feb 21 05:39:09 or remotely controlling phone Feb 21 05:39:20 I googled and found teamviewer quicksupport Feb 21 05:39:43 I installed it but it never showed up the phone window on the pc Feb 21 05:39:52 I can see only the chat window Feb 21 05:42:48 Anyone here use GreenDAO? Feb 21 05:52:11 if I want to do network I/O, I should do it in a separate thread? Feb 21 05:52:22 Always. Feb 21 05:53:10 so there's no asynchronous I/O API that ties into the main thread's event loop? Feb 21 05:53:25 There are plenty, starting with AsyncEventTask Feb 21 06:00:52 samsamsam: yep. problems, or questions? I unfortunately don't have much time tonight. Feb 21 06:03:22 PovAddict: I'm guessing they meant AsyncTask, unless ..Event.. is a class I just haven't noticed yet. Feb 21 06:06:12 samsamsam: in case you come back: if you're using it off the main thread, like you should, I'd recommend turning off its cache entirely. it's not threadsafe. cache externally. Feb 21 06:07:19 samsamsam: and I find its code generation weird and slightly disturbing. otherwise I mostly like it - reasonably straightforward code, excellent performance, fairly rich feature set. Feb 21 06:07:34 groxx: Sorry, Event is superfluous. AsyncTask, of course Feb 21 06:08:04 cbeust: yeah, just didn't want to mention you in case busy :) Feb 21 06:09:31 Hey I say something stupid, it's fair to correct me Feb 21 06:11:11 hey groxx Feb 21 06:11:41 i was wondering if you managed to usefts using GreenDAO since it is not yet supported Feb 21 06:11:50 * use fts Feb 21 06:11:56 samsamsam: ah. haven't tried. Feb 21 06:13:03 Thats sad. Google suggests to use fts for searching and no ORM yet support sit. Feb 21 06:13:30 samsamsam: seems like you should be able to add to the sqliteopenhelper, and just add the table. no convenience classes to use, but I don't see why it would conflict. Feb 21 06:15:41 samsamsam: yeah. FTS is great, but it's just a table of strings. should be relatively easy to handle by hand. Feb 21 06:18:23 how do I add images such that they will show up in a separate folder in the user's gallery? Feb 21 06:19:12 samsamsam: it does seem like something an orm could simplify though, yeah. I'll add it to my (long, busy) to-do list, it seems like it should be doable. Feb 21 06:19:57 zero guarantees of speed or even completion, but it sounds fun. watch it on github or something, it might happen. Feb 21 06:24:18 haha Thanks :D Feb 21 06:24:21 orm doesn't make fts any easier... Feb 21 06:28:21 I found other apps saving their pictures to the public directory, but one of them is not, yet all have their own folder in the gallery Feb 21 06:28:30 so there's something going on with the mediastore? Feb 21 06:32:36 pfn: no, but it lets you avoid interacting directly with Cursor. Feb 21 06:34:04 or, I can see some benefits. relations based on rowid, convenience methods for 'optimize' or 'match', etc. nothing significant, but about on par with anything most orms do. Feb 21 06:41:19 When an app wraps a WebView, is the name of the native, parent app sent to the web server as part of the HTTP headers sent by the WebView? Feb 21 06:41:36 no. Feb 21 06:42:22 pfn: If you own the server, is there any way to find out which app(s) open your site in a WebView? Grepping through HTTP request headers hasn't turned up anything. Feb 21 06:43:26 no Feb 21 06:46:41 pfn: Any clever ideas to figure out which mobile app(s) access a site in a WebView? Feb 21 06:47:09 if user agent is android, show a popup asking the user what app he's using Feb 21 06:47:10 :> Feb 21 06:56:32 PovAddict: I like how you think. or I hate it. probably one of those two. Feb 21 07:00:39 heisenberg says you can do both Feb 21 07:03:03 heh - but pauli says you can't so go figure Feb 21 07:15:06 Is there an IRC channel to get help for bricked phones? Feb 21 07:26:52 How do I trigger automatic conversion of hard-coded strings to strings xml? Feb 21 07:27:09 I did it a few times accidentally but that menu doesn't seem to pop up anymore Feb 21 07:35:22 knapper_tech: cmd shift a, "run inspection by name", " hardcoded strings ", maybe an "apply auto fix" exists? Feb 21 07:36:57 cool Feb 21 07:37:08 gonna have to make a run to pizza school Feb 21 07:37:20 we're going from shitty mockup to MVP in one week =D Feb 21 07:38:32 what's the quickest way to pop somethign over in a thread without abusing Rx? Feb 21 07:38:47 I do need some post action Feb 21 07:39:23 knapper_tech: not quite sure what you mean there, but I think subscribeOn controls the observable's thread? Feb 21 07:39:50 maybe I have that backwards though. Feb 21 07:46:24 <_genuser_> hey ppl. Feb 21 08:16:46 Can anyone give me a rough outline of what I need to look into in order to send a 'broadcast' to my app from, say, a chrome extension? I'm thinking something to do with Network Service Discovery (I only care about communicating from the same Wi-Fi network), so GCM is a bit heavy (I think) Feb 21 09:15:39 Hi, id like to understand something, if an API for Android refers to a native method. How do i find out where the native method is in the kernel sources? Feb 21 09:19:18 it doesnt have to be in kernel sources ? Feb 21 09:21:29 Anyone has an idea why recyclerview take full screen in dialog? Feb 21 09:21:45 val adapter = TogglesListAdapter(items) val recyclerView = RecyclerView(getActivity()) recyclerView.setHasFixedSize(true) recyclerView.setLayoutManager(LinearLayoutManager(getActivity())) recyclerView.setAdapter(adapter) Feb 21 09:21:49 because it doesn't implement wrap_content Feb 21 09:22:07 so what can I do in this case? Feb 21 09:22:19 you can work around it by overriding measure in layout manager Feb 21 09:23:07 has someone already done that? Feb 21 09:23:13 gordon_, this is the example: https://github.com/shorelinedev/aosp_frameworks_base/blob/master/services/java/com/android/server/ConsumerIrService.java there it says "native halTransmit" Feb 21 09:23:38 so my assumption was this must be somewhere in the kernel tarball for each specific device Feb 21 09:24:11 https://github.com/shorelinedev/aosp_frameworks_base/tree/master/services/jni Feb 21 09:26:21 JakeWharton: thanks, I've found that http://stackoverflow.com/a/28510031/3807749 Feb 21 09:26:26 ktwo: best is to download sources and look for hasSystemFeature Feb 21 09:26:53 or whatever method you want to check Feb 21 09:27:41 i just showed where it is Feb 21 09:27:46 https://github.com/shorelinedev/aosp_frameworks_base/blob/master/services/jni/com_android_server_ConsumerIrService.cpp Feb 21 09:27:59 gordon_, yea thanks will do, im downloading right now at 17K/s htc server seems to be a pain Feb 21 09:28:23 so, JakeWharton even showed you the jni method Feb 21 09:52:42 Hello Feb 21 09:52:47 Anyone with rx exp here? Feb 21 09:53:19 in rx java a subscriber observes on an observable, and the obserable is subscribed to the subsciber? Feb 21 09:57:19 rx 1.0.7 just came out :D Feb 21 09:57:41 lasserix a subscriber subscribes to an observable, and an observable can be subscribed my n subscribers Feb 21 09:57:48 s/my/by Feb 21 09:57:52 the subscriber acts on the observable call? Feb 21 09:58:17 acts on ? Feb 21 09:58:25 Action1 Feb 21 09:58:34 for cold observables, there is a side effect - hot, no side effect Feb 21 09:58:35 that's the whole reactive part? Feb 21 09:58:46 side effect? Feb 21 09:59:14 reactive = observables pushing probably Feb 21 09:59:51 so a bunch of views would be the subscribers for some observable data structure? Feb 21 09:59:57 lasserix a few bookmarks for you to read Feb 21 09:59:59 http://www.grahamlea.com/2014/07/rxjava-threading-examples/ Feb 21 10:00:09 and the stream in the transformations of the data structure? Feb 21 10:00:22 *is the Feb 21 10:00:53 its ahrd to explain over irc Feb 21 10:00:55 *hard Feb 21 10:00:58 hehe Feb 21 10:02:25 also see http://stackoverflow.com/questions/27147179/rxjava-why-same-transformations-are-recomputed-for-each-observables-branch Feb 21 10:02:32 so i have this app, i need to get data from the web. however, everytime i get new data that data must be serialized so it is always avaialble if new data isn't available via the web. so i am thinking i can make that data the observable, and have serialized and put into a buffer. the buffer will also be observable, for the views that show the transformed data, those views being the subscribers, does that sound about right? Feb 21 10:02:36 lasserix did you watch any of the presentations ? Feb 21 10:02:48 which ones? Feb 21 10:02:58 any from ben christensen ? Feb 21 10:03:01 kinda saw jake warton about retrofit, but didn't go into detail Feb 21 10:03:04 like the goto conference one ? Feb 21 10:03:15 probably not ? Feb 21 10:03:27 i'd start there Feb 21 10:04:36 thanks Feb 21 10:05:09 can i observe on files? Feb 21 10:08:06 you can observe on anything that can be modeled as a stream Feb 21 10:08:13 there's nothing magic about observables Feb 21 10:09:16 right so i want to populate a buffer, the buffer being the stream, so some views can react to changes in buffer as subscribers, is that kind of the idea? Feb 21 10:10:14 well i have no idea what you mean by buffer, but sure. you basically have the idea Feb 21 10:10:22 i want to use a service to download some web stuff, with the primary function being to serialize it. however i want to emit it also to this buffer, so that any views that are subscribed (eg attached to the view hierarchy) will react to changes in the buffer and display the latest Feb 21 10:10:45 just a hashmap for housing view models for sets of views Feb 21 10:12:44 Also can I turn off all disk caching done by picasso? Feb 21 10:14:36 picasso does no disk caching Feb 21 10:14:49 the http client is responsible for disk caching Feb 21 10:14:52 oh ok Feb 21 10:15:06 i just have to manually download the images anyways so.. Feb 21 10:15:19 if you pass in an http client without disk caching enabled then there won't be any disk caching Feb 21 10:15:34 Gotcha Feb 21 10:20:01 Retrolambda is safe to use in production code? Feb 21 10:24:05 hi everyone Feb 21 10:26:39 wuddup playboi Feb 21 10:27:40 If I had a viewpager, would it be a bad idea to consider the pages the stream? Feb 21 10:31:14 no Feb 21 10:31:19 I think view pagers are just like listviews put sideways Feb 21 10:31:34 yeah Feb 21 10:31:37 cool Feb 21 10:31:52 that would make loading an rss feed easier Feb 21 10:34:04 how the DrawerLayout in main activity organized, do I create a new Activity instance when user click on menu item in DrawerLayout? Feb 21 10:34:58 you can do whatever you want? Feb 21 10:35:57 I do not know. Just trying to understand. Google Guide has simple example where just main activity layout background picture is changing in menu click handler. Feb 21 10:36:08 yeah Feb 21 10:36:28 This is how I do : load different fragments in the activity view when drawer items are selected. Then start new activity if any fragments require one. Feb 21 10:36:28 you can dump a listview inside the drawer, then whatever you want on the listview item clicks Feb 21 10:36:29 there is a Fragment instance Feb 21 10:36:53 ah.. so I have to dig into "Fragment" understanding. Thanks Feb 21 10:37:46 oh the sad never() observable Feb 21 10:38:21 why ? if null references were a billion dollar mistake do we live in an era when never() can be used to create an obserable! Feb 21 10:38:46 for testing i guess? Feb 21 10:43:36 I wonder if one should use okhttp or retrofit for json handling? Feb 21 10:43:46 why not retrofit on top of okhttp? Feb 21 10:44:30 I'm not sure. My app already works with json using okhttp Feb 21 10:44:32 lasserix: for flatMap-ing with based on a conditional Feb 21 10:44:42 ah Feb 21 10:44:44 thanks Feb 21 10:45:01 you can also use empty() for that Feb 21 10:45:52 you are about 100% ahead of me but it helps me understand flatmap ;p Feb 21 10:50:09 What is Bundle ? It seems like data structure Feb 21 10:50:58 mapping from string values to various types Feb 21 10:51:29 eeyup Feb 21 10:51:53 mostly something to send between activities and fragments Feb 21 10:52:36 mostly seems improper seeing as Bundle existed long before fragments were around Feb 21 10:53:14 yes I see this in context for sending arguments to fragment Feb 21 10:53:23 But there could be more use-cases for this Feb 21 11:02:45 what is the easiest way to compile ApiDemos from sdk/samples/android-21/legacy/ApiDemos/ ? Feb 21 11:03:04 just found that sdk has samples, but there is no any instructions how to run Feb 21 11:07:43 Dang, using retrofit does not seem easy Feb 21 11:10:21 hey there Feb 21 11:11:37 hey gdrc Feb 21 11:17:28 Can I ask about kernel development? Feb 21 11:17:52 Exacly compilation. Feb 21 11:37:50 Moter8: then you are doing it wrong Feb 21 11:40:40 can I call anything in onConfigurationChanged like supers to tell the app I decided I dont' care about config change? Feb 21 11:40:57 I'd like to handle rotation, but just in one fragmetn Feb 21 11:46:09 lasserix, I read the documentation but I dont get much of it Feb 21 11:49:43 Can I decide in Java whether or not to handle a configuration change? Feb 21 12:22:48 I can't wrap my head around this Feb 21 12:23:15 okhttp was easy to use, retrofit seems to be the opposite Feb 21 12:24:39 Moter8, whats the prob? Feb 21 12:26:06 restAdapters, interfaces, callbacks, I just dont get what these even do Feb 21 12:26:12 ill try reading more about it... Feb 21 12:28:11 then you need OOP training Feb 21 12:28:52 the interface defines the urls and return values for each rest call Feb 21 12:29:02 <_genuser_> anybody use office 365? Feb 21 12:29:08 callback is... well a callback. its run after the call has finished Feb 21 12:29:12 _genuser_, yes Feb 21 12:29:39 <_genuser_> danijoo: what the heck is it? I can't make heads or tails of it. Feb 21 12:29:49 whata the prob? Feb 21 12:29:52 whats Feb 21 12:30:20 <_genuser_> so it's a subscription service that you pay for monthly/yearly? Feb 21 12:30:21 Moter8: it's easy Feb 21 12:30:50 _genuser_, yeah. you dont buy the license to use office for your lifetime, but monthly/yearly Feb 21 12:30:59 if you stop paying, you cant use it anymore Feb 21 12:31:33 <_genuser_> danijoo: so if you're paying, you use the office on your deskto... which means it would install it first and then require a login, eh? Feb 21 12:31:45 yeah kinda Feb 21 12:32:17 i dont remember what it was. you either have to login and it calls home to check if you are allowed to use it once or you get a key Feb 21 12:32:20 i think the first one Feb 21 12:32:33 <_genuser_> what if you dont care for this online onedrive storage (which I dont understand why companies are shoving it down ppl's throats) or for any other stuff. Feb 21 12:32:47 <_genuser_> and you just want to use office on your desktop and just pay for it oneshot? Feb 21 12:33:06 what are some decent ways to save a bundle that I might want to reuse later, not just the provided savedInstanceState bundles? Feb 21 12:33:10 _genuser_, then you obviously dont buy office 365 Feb 21 12:33:34 and get a full office version for the cost of your soul Feb 21 12:33:46 <_genuser_> so then it's this optional "better" thing that is separate from the desktop version. nice. Feb 21 12:34:05 you can choose for a lifetime or 365days license basically Feb 21 12:34:08 thats all its about Feb 21 12:34:14 <_genuser_> well, the office version cost me nothing other than my school tuition. since microsoft has that program with school where students can get lot of stuff for free. Feb 21 12:34:40 _genuser_, lucky you. my university has deals with everyone except microsoft. Feb 21 12:35:13 <_genuser_> danijoo: so win7/8 license, sql servers, win2008 server, visio, prroject, etc... Feb 21 12:35:38 yeah I can have lots of cool stuff, but not that ^^ Feb 21 12:35:42 <_genuser_> oh wait, I remember that my school didn't have office suite in the list. but my brother's school did. $30 at bookstore. Feb 21 12:35:55 yeah exactly. Feb 21 12:36:02 office is often exluded Feb 21 12:36:20 <_genuser_> I like the full paid version, you pay once if you can afford and leave it running for as long as the hardware and software are useful. Feb 21 12:36:34 <_genuser_> this monthly business keeps you just tied in. Feb 21 12:37:09 <_genuser_> with old model you can delay upgrades and move all your files into a different format and then upgrade. but with constant paying model, geez, very annoying. Feb 21 12:37:11 _genuser_, i didnt get the full version because its office 2013 Feb 21 12:37:18 and there will be a new version soon (TM) Feb 21 12:37:18 <_genuser_> adobe moved to that format too with photoshop/flash Feb 21 12:37:49 and i didnt want to pay twice Feb 21 12:37:49 <_genuser_> I wonder if like adobe, microsoft will stop making a non-subscription version for the desktop Feb 21 12:37:56 i dont think so Feb 21 12:38:16 <_genuser_> you can't buy photoshop anymore. it's only subscription based. so are all adobe products Feb 21 12:38:23 yep Feb 21 12:39:06 I have some serializeable data I want to save somewhere Feb 21 12:39:12 they dont want companies to use old versions without paying :p Feb 21 12:39:55 <_genuser_> danijoo: well, if microsoft does move that way, not much ppl can do. it would suck. and I guess we'd all start paying. Feb 21 12:40:16 <_genuser_> and few ppl would move to ubuntu and claim it's so much better but secretly cry in the middle of the night. Feb 21 12:41:00 im fine with the monthly thing Feb 21 12:41:24 <_genuser_> oh u judas! Feb 21 12:41:47 ;) Feb 21 12:41:47 <_genuser_> suppose lot of ppl are ok with it, especially younger generation. Feb 21 12:41:56 why shoudnt I? Feb 21 12:42:11 <_genuser_> I just dislike having to pay monthly bills. whether paid one shot yearly or not is irrelevant. Feb 21 12:42:13 ok. I cant pay once and use my office 2013 in 2054 Feb 21 12:42:38 And I dislike paying huge amounts once :p Feb 21 12:42:47 its just a matter of opinion i guess Feb 21 12:43:11 <_genuser_> but small amount will make you just buy more services. that's how general population thinking works. Feb 21 12:43:28 <_genuser_> because it's only 9.99/mo. Feb 21 12:43:51 <_genuser_> hey my FLStudio 8 producers edition cost $150.00 because it was on sale. Feb 21 12:43:57 <_genuser_> and it's got free lifetime updates. Feb 21 12:44:04 <_genuser_> latest one is 11.5 Feb 21 12:46:18 <_genuser_> i've had win7 since at least 2011. at 9.99/mo it would have cost me $479.52 and still cost me more for this year. but I paid once $250 for OEM edition and can drive the hardware into the ground. Feb 21 12:47:05 <_genuser_> same goes for all software. small monthly fee would add up to a lot more whereas one time and making it last would end being cheaper. Feb 21 12:47:31 <_genuser_> anyway, just my thoughts. I was originally curious about what office 365 is, since I haven't used it. Feb 21 12:48:05 _genuser_, but what if the monthly fee lets u update to win8 for free (which is the case for office 365). Then you are at 500$ at win8 release while the 9.99$ guy is at 479 ;) Feb 21 12:48:45 <_genuser_> win8 was like 99.00. so 350 max. but also what if I didn't want to upgrade. Feb 21 12:49:21 then you disable updates ^^ Feb 21 12:49:25 <_genuser_> I like to leave my main desktop stable for long time. besides I got 2 free license for win8 due to the school/microsoft partnership. Feb 21 12:49:49 free licenses dont count :) of course they are cheaper than fees lol Feb 21 12:50:11 <_genuser_> sure disable updates, but still paying for the monthly bill. whereas paid once, dont care for new, no new payment. Feb 21 12:50:39 the thing is for stuff like office for example, I atm only have it because of university Feb 21 12:50:51 there are macro based docs to write papers that wont work without it Feb 21 12:51:04 and in a year or two -> who cares about win office? Feb 21 12:51:29 <_genuser_> for me it's nice to have word for home use (mostly excel) because it's really teh best office suite (for my tastes). and I paid the $30 once and done. Feb 21 12:51:31 thats why a full license is in no way rentable for me Feb 21 12:51:51 <_genuser_> now think about it, 9.99/mo for OS, 9.99/mo for office, it's gonna add up like cable bill eventually. Feb 21 12:52:22 nobody said its an option for everyone :) Feb 21 12:52:26 <_genuser_> I can also see how paying full price one time could be prohibitive for many ppl Feb 21 12:53:24 <_genuser_> I think as long as there's the option to maintain old style pay once and use as long as h/w and s/w allow, then I don't mind the new model. Feb 21 12:54:08 <_genuser_> because companies are going to make way more for monthly rental, if every one decides to move that way then it would kinda suck. Feb 21 12:54:09 And thats in the hand of the customers. Feb 21 12:54:16 the options that bring enough $ will stay Feb 21 12:55:04 <_genuser_> yes and no, I think. if they just go ahead and move to monthly model, most ppl wont just up and install linux. they'll pony up the cash. Feb 21 12:55:36 <_genuser_> some might move to mac, others will just have to pay. and increasingly every company will think hey we need to make money too. they'll all move. Feb 21 12:55:56 and they would only go ahead because it brings them more $ (because people stick with old versions otherwise) Feb 21 12:55:58 <_genuser_> in the end a monthly bill of 50-100 for regular computer usage would become normal. Feb 21 12:56:15 <_genuser_> and ppl would think oh hey it's just nothing. Feb 21 12:56:19 if everybody would always buy the newest versions, they woudnt care about adding all those infrastructure thats needed for monthly stuff Feb 21 12:56:34 How do I share bluetoothsocket between two activities? Are singletons good? Feb 21 12:56:57 <_genuser_> danijoo: I do think most ppl won't care. they'll just pay and get on with it. Feb 21 12:57:46 <_genuser_> danijoo: I think they might complain but eventually will just pay. I mean we have people who are completely broke but have 99/mo data plans for cell phones. Feb 21 13:09:36 _genuser_, the difference between software substcriptions and cell phones is that i dont have to pay it in the future without a chance to cancel it Feb 21 13:10:15 I can decide each month if I want it or cancel. With cell phones I "subscribe" for 2 years (germany) Feb 21 13:11:29 <_genuser_> I think more than that the point it customer's willingness to pay and lack of care. most people won't unsubscribe for months where they wouldn't use the service and then re-sub again when needed. Feb 21 13:11:37 <_genuser_> they'll keep paying. Feb 21 13:11:57 why can't I see Google API's under Compile SDK version in Module Settings of my project? I only see a prepopulated list of all Android versions, nothing to do with the ones I've installed or left out Feb 21 13:12:29 Im trying to target Google APIs v21, its causing my app to crash on startup with Main Activity class not found exception Feb 21 13:14:03 Ive set this in the app's build.gradle compileSdkVersion "Google Inc.:Google APIs:21" Feb 21 13:17:21 where does 30mb stand in the world of consuming-too-much-memory on Android? Feb 21 13:17:39 <_genuser_> alright, finally some sense of the Imagecache thing. it's finally coming along nicely. Feb 21 13:21:04 knapper_tech, low end Android phones have 512MB - 1GB while higher end phones have 2GB - $GB of RAM. Feb 21 13:22:53 I have no idea where some of my memory is getting allocated. Even if I load zero fragments, app consumes 16MB. It's up quite a bit from its former sveltness, but I can't account for it. Feb 21 13:25:48 knapper_tech, if a phone has 2Gb of ram, that doesnt mean your app can use 2Gb Feb 21 13:25:52 well, new use case for git bisect Feb 21 13:25:57 probably the standard libs Feb 21 13:25:58 lol, yes of course Feb 21 13:26:02 every app has a dedicated amount of ram that can be used Feb 21 13:26:06 and thats much much lower Feb 21 13:26:12 sometimes only 32 mb Feb 21 13:26:30 I'm curious as to where a naked app that doesn't instantiate any fragments can go up so much in memory consumption Feb 21 13:26:42 knapper_tech, images? Feb 21 13:26:59 images are much bigger once they are in memory Feb 21 13:27:08 danijoo, the UI doesn't ever load. Literally it's main activity inflating an image-less root layout Feb 21 13:27:14 a 100 kb image can easily take 500kb or more in memory Feb 21 13:27:24 yes. i know. Feb 21 13:27:26 hm. thats weird Feb 21 13:27:26 there are none Feb 21 13:27:31 what's baseline? Feb 21 13:27:43 I used to be at around 6MB Feb 21 13:27:49 Hi! How does AsyncResult work? E.g. in "mSomeRegistrantsList.notifyRegistrants((AsyncResult) msg.obj);", will notifyRegistrants only be called after msg.obj has gotten its value? (i assume that in Java, the parameters will be calculated before the method is called, thus we will block until msg.obj has gotten a value) Feb 21 13:28:14 But, i can also imagine that since we cast msg.obj to an AsyncResult, receiving a value can be done in the called function.. it is unclear to me how this works.. Feb 21 13:29:13 wow, I really understand nothing of what's going on Feb 21 13:29:36 cant I say I want to use Google API's as a target? like I used to in Eclipse? Feb 21 13:29:47 Seems like Eclipse has the best memory use investigation tools? Feb 21 13:37:40 so this is what I want to do http://stackoverflow.com/questions/11745314/why-retrieving-google-directions-for-android-using-kml-data-is-not-working-anymo/11745316#11745316 Feb 21 13:38:20 if you set compileSDKversion to be "Google,Inc:Google APIs:21" you get to use MapActivity, if you don't, you don't Feb 21 13:38:31 and I thought Maps were part of GPS now Feb 21 13:38:46 the wat is strong with this one Feb 21 13:45:34 Hello Feb 21 13:46:06 How have I to change the manifest in I use libsuperuser calls in java code? Feb 21 13:46:08 Any ideas? Feb 21 13:46:18 *if I use Feb 21 13:46:38 huh Feb 21 13:47:19 http://su.chainfire.eu/#how Feb 21 13:47:36 List Shell.SU.run(String command) Feb 21 13:54:50 Ashiren, any ideas? Feb 21 13:55:55 sorreh, not today Feb 21 13:56:01 lol Feb 21 13:56:03 ok Feb 21 13:56:29 i mean i never used su in programs :v Feb 21 13:56:36 ok Feb 21 14:27:11 im trying to learn to develop for android but I was told that I should use Android Studio rather than eclipse because it is the new standard and is set to replace eclipse however all the online learning course I have found all point to eclsipse is this going to be a problem for me learning or are the difference minor enough that it wont matter much Feb 21 14:35:40 hi ! is Realm.io a good lib. or a hipster thing ? Feb 21 14:36:06 I've had very good experience with it. Feb 21 14:36:22 Significantly more elegant and easier to use than most SQLite stuff Feb 21 14:36:34 there is two thing I'm afraid of: migrations and notification Feb 21 14:36:35 Only migration support is currently a bit wierd. Feb 21 14:36:41 Notification? Feb 21 14:36:47 "ChangeListeners" Feb 21 14:36:58 donavan01, most new tutorials are done with AS Feb 21 14:38:07 blusky, hmm, I don't rely on DB API for that, so I dunno. Feb 21 14:39:20 moter8 ... I have found some that are but most of them are higher level stuff I know nothing about adroid development so I need something that goes from square one... I have had experience with C, VB, javascript and some others in the past but everything about developing for android is pretty much forigien to me at this point Feb 21 14:40:44 donavan01: best advise, do some Java 101 before starting with android Feb 21 14:40:49 for instance after I get AS step up do I have to download all the possible API's I might want a program to work with or just the newest ... what tools should I install and what ones arent needed ... Feb 21 14:42:08 donavan01: there are tons of tutorial even on youtube Feb 21 14:42:23 blusky I have some java knowledge so im not completely starting from scratch there but im not good at it and need to constantly reference things I didnt want to have to learn another java environmnet before I started learning this one Feb 21 14:44:41 gordon_ like I said I found some good one and im sucking up as much as I can but I seem to find that the beginers stuff all points towards eclipse and the stuff dealing with AS all assume you should know at least a certain amount about how to program I did want to have to learn eclipse only to toss the knowledge and relearn for AS Feb 21 14:45:15 https://www.youtube.com/watch?v=f3-QM5--FNU Feb 21 14:45:32 I found what look like good ones from some colleges that let you just do the classes for free which is nice but its the same deal Feb 21 14:45:46 gordon_ thatnks Feb 21 14:45:53 donavan01, http://i.imgur.com/XX9Rsv7.png http://i.imgur.com/djKewPr.png is what you need Feb 21 14:46:00 you only need the newest build tools though Feb 21 14:46:53 moter8 thanks that helps a lot and saves me hours of downloading im sure Feb 21 14:47:12 you can only download 1 of the system images, thats enough Feb 21 14:47:29 each of those is some 400MB or so iirc Feb 21 14:51:25 gordon_ I started watching the video but it seems like it is a how to setup and install AS which is helpful but my main question still goes back to once its install and running how do I start creating app... like i said I found some classes/tutorials but the low level ones all use eclipse is this going to mess me up or are they similar enough... I get that the underlying language is the same and I should be able to mo Feb 21 14:51:25 ve code from one to the other without issue but am I going to be constantly confused as to what is going on if im using AS and the video is using eclipse Feb 21 14:59:05 watch his channel Feb 21 14:59:08 he has tons of tutorials Feb 21 14:59:27 will do thanks Feb 21 15:05:08 I have a listview with a switch in each listview item. The switch onCheckedChangedListener is working but the setOnItemClickListener on listview item is not working. Feb 21 15:07:32 i wanna pick a good stock rom to test my apps on Feb 21 15:08:00 samsamsam: If a child of the ListView consumes a click event then the ListView itself won't see the click event. Feb 21 15:09:59 Ok apparently setting android:focusable="false" as a property for the child element that consumes click event allows the listview item itself to be clickable. Feb 21 15:18:29 I'm planning to spend some money on buying an Android book. What would you guys suggest? Feb 21 15:22:16 The thing about books is they go out of date pretty quickly. Feb 21 15:36:15 napster, I had a good time with the big nerd ranch guide. it's a little outdated (uses eclipse instead of android studio) but it gave me a good introduction to most android sdk features Feb 21 15:55:55 ok Feb 21 15:56:44 TacticalJoke yep, they go outdated quickly, but usable for atleast one year I think (till next major version comes) Feb 21 15:58:43 big nerd ranch guide has help forums, and there are plenty of threads that cover errata or outdated information too Feb 21 15:59:08 there is supposed to be a second edition coming out later in the year though that should be more up to date Feb 21 16:00:13 Hey, I wanted to code a TextView that would automatically display whatever is written in an EditText above, how can I do that? I googled but all that came up was javascript Feb 21 16:00:43 threenuc: I don't understand that because your question has nothing to do with JavaScript. :) Feb 21 16:01:10 register an ontextchangedlistener with the edittext that changes the text of the textview Feb 21 16:01:20 Will try, thanks Feb 21 16:01:30 TacticalJoke, are you living up to your nickname or are you srs :| Feb 21 16:05:09 Given that I don't play chess anymore: no, I'm not living up to my username. Feb 21 16:09:24 damien5134, I only found TextWatcher. Do I just override beforeTextChanged then? Feb 21 16:11:35 i'd say afterTextChanged since that gives you the updated Editable Feb 21 16:12:43 and yes you pass the TextWatcher to EditText.addTextChangedListener Feb 21 16:19:23 so I posted a question of my problem http://stackoverflow.com/questions/28646866/android-studio-googleapis-classnotfoundexception?noredirect=1#comment45591499_28646866 Feb 21 16:19:29 it's still very much a problem Feb 21 16:23:59 TacticalJoke you there? Feb 21 16:24:46 yeah, Feb 21 16:24:49 Yeah.* Feb 21 16:24:55 Hey Feb 21 16:25:03 Hay. Feb 21 16:25:08 So ive been working on the tags feature, and I have a question Feb 21 16:25:24 Do you think each tag the user creates should just be for that specific subject? Feb 21 16:25:35 Or should each tag be able to be used in any subject Feb 21 16:26:28 Like if a person creates a "important" tag inside subject "X", should they be able to use that "important" tag on a lesson in subject "Y" Feb 21 16:27:25 If you forget what Im using tags for this prob wont make sense Feb 21 16:27:53 I think I remember. It sounds like a question of tag identity. Feb 21 16:28:08 Like, is biology's "important" the same thing as chemistry's "important". Feb 21 16:28:39 I'm tempted to say that "important" should be an independent notion. Feb 21 16:28:50 Right, the lessons from different subjects with the same tags wont be mixed together, but the "important" tag could be used in alot of situations Feb 21 16:29:11 Im thinking of making it an option when a person is creating a new tag, "Global" or "Only this subject" Feb 21 16:29:31 Ah, I see. Feb 21 16:29:55 Just dont want the user to get confused Feb 21 16:30:15 make it simple enough for a monkey to use :p Feb 21 16:30:19 thats rule #1 Feb 21 16:30:23 Can you think of an example of the user creating a subject-specific tag? Feb 21 16:30:24 Really? Feb 21 16:30:31 No I really cant Feb 21 16:30:36 I can't either. Feb 21 16:30:39 Well Feb 21 16:30:42 It sounds like these tags are "importance" categories. Feb 21 16:30:58 Well Ill list my example tags right now Feb 21 16:31:22 Important, For later, Basics, Advanced, Syntax Feb 21 16:31:37 i would do them globally Feb 21 16:31:45 Ah, "Syntax" is subject-specific. Feb 21 16:31:55 Yes, I was gonna say that one Feb 21 16:32:12 I think im gonna make them global though Feb 21 16:32:29 if its only a really rare event to use them subject-specific, the user can still decide to only use it like that Feb 21 16:32:37 Yeah, even if I were to use "Syntax" I'd probably want the ability to show "Syntax" items from *all* subjects. Feb 21 16:32:43 As the user uses the app more and more, they will have a growing list of possible tags, some just wont be used for certain situatiions Feb 21 16:32:46 i mean.. you wont have a list of 500 tags so its easy to keep them sorted as a user Feb 21 16:33:14 Ok, im going global. Feb 21 16:33:23 lol Feb 21 16:33:25 just give them options to do that. like a list of tags that are searchable Feb 21 16:33:39 Might want to show a screen demo in a little bit, the lesson creating process is about done Feb 21 16:34:05 It does sound simpler in terms of the UI and in terms of implementation to make them global. Feb 21 16:34:20 Yes Feb 21 16:34:24 Im gonna do that now Feb 21 16:34:56 If users *really* wanted them local they could namespace them (e.g., "foo-bar"). Feb 21 16:35:25 Can a dialog be inflated on top of a dialog Feb 21 16:37:06 I'm not sure you can visually stack them. Feb 21 16:37:14 Though even if you could it doesn't sound like a great UI. Feb 21 16:37:34 Hi Feb 21 16:37:44 How can I replace a fragment that lives within a ViewPager? Feb 21 16:37:46 I get a blank screen Feb 21 16:38:03 If I do it directly, without being in a ViewPager, it works Feb 21 16:38:23 basically it's a Master-detail view, within a ViewPager Feb 21 16:40:09 papipo, there are like 100 stackoverfow pages about that if you google it Feb 21 16:40:20 I am googling that Feb 21 16:40:34 but many are about nested fragments, and I think that's not the case Feb 21 16:41:30 I guess it has something to do with how I add or replace the second fragment Feb 21 16:41:55 and to which container I add it Feb 21 16:42:04 drose379: Are you over-relying on dialogs? Feb 21 16:47:36 TacticalJoke mayve Feb 21 16:47:42 maybe* I dont know Feb 21 16:49:34 How can I tell? Feb 21 16:55:23 opening intent where uri was added as dat Feb 21 16:55:24 data Feb 21 16:55:53 how do I check that the type of intent.getData will match the type, Uri, which I'm expecting Feb 21 17:00:33 I'm using DatagramSockets to send messages to a server like this: http://pastebin.com/ZAyhnecK But only every N-1th packet is sent. Meaning if I send 1 packet, nothing is sent. If I send the second, the first one gets send. If I send the third, the second one gets sent etc... Any ideas? Feb 21 17:01:16 TacticalJoke do you think creating a new lesson inside a dialog is bad? And I should be using a new activity to create the lesson? Feb 21 17:08:28 *grumble* Feb 21 17:08:35 anyone had issues with AutoCompleteTextView.Validator? Feb 21 17:11:52 hello Feb 21 17:13:17 drose379: Hmm, I guess it boils down to opinion. Feb 21 17:13:23 In Android Studio, how do I change my RelativeLayout to a LinearLayout (vertical)? Documentation states there should be a 'morph' option in the context menu but there isn't.. Feb 21 17:13:39 Of course I am referring to changing it in the Designer. Feb 21 17:17:32 TactialJoke would you look at another screen demo? Feb 21 17:17:38 TacticalJoke * Feb 21 17:17:52 Sure. Feb 21 17:18:24 Thanks man, Ill let you know Feb 21 17:23:29 inside intent-filter, android:host= can I use wildcards? it seems that some works and some doesn't Feb 21 17:23:38 or regex Feb 21 17:27:54 What the hell is wrong with this code? There are so many errors I don't even know how to paste it here http://i.imgur.com/dFz4pAR.png Feb 21 17:28:32 You're not inside a method. Feb 21 17:28:43 Can I use a method inside an activity inside another activity? Feb 21 17:28:46 Just like any other class? Feb 21 17:29:14 drose379: If it's an instance method, you'll need an instance of that activity. Feb 21 17:29:38 Right, I just create an instance of the activity like it is a class, and use the method Feb 21 17:30:05 We can't create instances of activities ourselves. Feb 21 17:30:29 Ah ok, my code here is bad anyways, the method I need to use should not be in an activity anyway Feb 21 17:30:33 Should be in a class Feb 21 17:30:35 I was about to say. :D Feb 21 17:30:42 :D Feb 21 17:30:50 What is the method? Just curious. Feb 21 17:31:00 Uploads a string to DB Feb 21 17:31:10 Well, a few strings Feb 21 17:31:19 In some cases you can create utility methods (static methods in a class), but they're not always the best idea. Feb 21 17:31:41 Right, I was told a while ago to stay away from static Feb 21 17:32:07 saving to DB would likely require db instance Feb 21 17:32:08 Static methods aren't always bad. Sometimes they're really appropriate. Depends on the case. Feb 21 17:32:12 so static is a no-no Feb 21 17:32:21 drr I wanna open URL intents Feb 21 17:32:27 Ashiren Im not saving to local DB Feb 21 17:32:35 Just making HTTP request to web server Feb 21 17:32:43 what's the most permissive intent filter? Feb 21 17:34:14 Do I always need to override every single function in a class even if I use eg. just one out of three? Feb 21 17:34:21 method* Feb 21 17:34:29 if interface yes Feb 21 17:34:29 Depends Feb 21 17:34:45 If Library no Feb 21 17:34:47 if abstract class with methods with no body - yes Feb 21 17:37:19 In the case of something like TextWatcher, if I'm not using one particular override I usually say "// not used" or something. Makes the intention clear. Feb 21 17:37:40 Though I hate comments in general. :D Feb 21 17:38:16 Uh by the way, I never learned Java properly, do I need to use the @Override thing when overriding or ... ? Feb 21 17:39:08 not required, just helps the compiler ensure the method is correctly defined i think Feb 21 17:39:17 Okay, thanks guys c: Feb 21 17:40:56 It's better to google this stuff. Feb 21 17:41:03 Google gives way better answers than people on IRC. Feb 21 17:41:11 For basic stuff like this. Feb 21 17:41:30 Yeah I google most of my questions, I just ask when I don't get something, but yeah, I could google the @override thing, sorry ;| Feb 21 17:42:13 Always use @Override (your IDE should add it automatically anyway) Feb 21 17:42:23 I guess I meant it more for your sake. :D I learned Java mainly from StackOverflow, and that made it really quick and easy (though I was coming from C#). Feb 21 17:42:33 same Feb 21 17:42:45 afaik override works like virtual in c++ Feb 21 17:43:16 no Feb 21 17:43:23 all methods are virtual in Java Feb 21 17:43:24 Ashiren: Absolutely not Feb 21 17:43:25 On a side note, I wish Java had an 'override' keyword. Feb 21 17:43:37 no? Feb 21 17:44:13 @Override is advised but not needed... you can remove it, code will still work the same Feb 21 17:44:51 I like @Override because I can see right away if I didn't write my signature correctly Feb 21 17:45:19 or if I forgot to add the implements interface Feb 21 17:45:39 Right. And it warns you when the parent class signature changes as well. Feb 21 17:45:58 exactly. Feb 21 17:46:33 what I don't like is that it starts with a Capital O. :P Feb 21 17:46:54 It's a type, that's the Java convention Feb 21 17:47:09 still don't like it. Feb 21 17:47:18 MikeWallaceDev: Would you prefer it to be a keyword? Feb 21 17:47:27 It might be a type, but it feels like a keyword Feb 21 17:47:35 seconded Feb 21 17:47:43 public override void onCreate(Bundle icicle) Feb 21 17:48:31 huh... I don't know. As a C++ guy I should like that better. But I kind of like the @ Feb 21 17:48:35 in C++11 they made it a 'contextual keyword' so that you can still have eg. a variable called 'override' Feb 21 17:48:41 @override would look wrong. Feb 21 17:48:45 I think it's because it's separate, out of the way Feb 21 17:48:52 It's either an annotation or a keyword; it can't be both. Feb 21 17:49:07 BOTH ALL THE THINGS! Feb 21 17:49:53 I've never really worked with annotations... I mean, creating them. so, I just 'see it' as a keyword Feb 21 17:50:02 I don't see the class behind it Feb 21 17:50:14 it's just semantics, really Feb 21 17:50:28 Some people put it on the same line: @Override public void onCreate Feb 21 17:50:50 You could even say "public @Override void onCreate", but that looks so weird. Feb 21 17:51:37 so unnatural Feb 21 17:51:46 we dont need that kind of people Feb 21 17:51:51 Apparently talking about annotations crashed my system... Feb 21 17:53:57 It's funny how we get used to things. When I first moved to Java, I hated that "@Override" was an annotation and not a keyword, and I found it so ugly. But now I kinda like it. Feb 21 17:54:44 This phenomenon explains the continued existence of certain programming languages. :D Feb 21 17:54:51 Hate is such a strong word. Can't we all just get along? Feb 21 17:54:58 The reality is that Java is extremely unlikely to gain new keywords, so whatever additions are made will most likely come in the form of annotations Feb 21 17:56:06 aaaaaand... I'm back Feb 21 17:57:41 the only "problem" with annotations is that they stack up (visually) Feb 21 17:57:41 Hi is it possible to start both an IntentService and an Activity from an Activity? Feb 21 17:57:44 just one is cool Feb 21 17:57:50 but 3-4 look weird Feb 21 17:58:00 jlund_, yep Feb 21 17:58:05 why not? Feb 21 17:58:08 startService(intentServiceIntent); startActivity(activityIntent); Feb 21 17:58:10 ok Feb 21 17:58:18 sounds good, because my IntentService is never invoked Feb 21 17:58:20 i always put all of my annotations on one line and the method signature on the next Feb 21 17:58:25 nothing happens Feb 21 17:58:39 if I have no menu, do I have to override onCreateOptionsMenu and return false? Feb 21 17:58:42 or can I just not override it? Feb 21 17:58:47 MikeWallaceDev: salut Feb 21 17:58:51 damien5314, ah see, I didn't know that you could do that Feb 21 17:58:59 salut john67 :) Feb 21 17:59:01 Could it be that it just ignores my Service if I've forgotten to declare it in the ApplicationManifest.xml? Feb 21 17:59:24 yep Feb 21 17:59:25 PovAddict, you don't need to override it and you won't get an action menu Feb 21 17:59:28 I mean AndroidManifest.xml Feb 21 17:59:36 unless you override and inflate one Feb 21 17:59:39 we got it ;) Feb 21 18:00:11 damien5314: I created a new project with an empty activity in Android Studio and it had the method overridden and inflating a menu Feb 21 18:00:23 but i don't want a menu Feb 21 18:00:29 so remove the override? Feb 21 18:00:41 yep Feb 21 18:00:55 Can I somehow view the available icons in "drawable"? I mean how they look and their ids Feb 21 18:01:02 Removing the annotation will not change how your code works Feb 21 18:03:50 wait, so I need to download the icons, right Feb 21 18:04:28 MikeWallaceDev: u understood what i said? i make mixtake just wanted to say hi, but it seems it when on french Feb 21 18:05:10 Sorry John my system crashed again, it didn't see what you wrote Feb 21 18:05:40 Or do you just mean "salut"? Feb 21 18:05:50 Cause... I'm french Feb 21 18:05:56 :D Feb 21 18:06:01 So am I! Feb 21 18:06:28 I'm better French than you!! So there!! :P Feb 21 18:07:08 (really? I never would have guessed that Cedric was French ;) ) Feb 21 18:07:32 I'm 50/50 Montréal, Canada Feb 21 18:07:50 MikeClassic: I figured you were Canadian for the same reason :) Feb 21 18:08:03 "On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times." lolwut Feb 21 18:08:03 MikeWallaceDev_: meant that for you ^ Feb 21 18:08:06 Hahaha :D Feb 21 18:08:28 I know, he gets notified often because of me :) Feb 21 18:09:26 wow PovAddict welcome to 2012 :D Feb 21 18:09:51 My system is mad at me, crashed twice in a row. Feb 21 18:09:55 MikeWallaceDev: I'm just starting Android dev, and my only real device is an LG p500 Feb 21 18:10:00 2012? :P Feb 21 18:10:09 welcome! :) Feb 21 18:10:10 MikeWallaceDev: desoler, je savais pas, cool Feb 21 18:10:17 pas de trouble Feb 21 18:10:37 where are you from john67 ? Feb 21 18:10:47 MikeWallaceDev: from strasbourg Feb 21 18:11:01 ah! We're international today :D Feb 21 18:11:14 argentina here Feb 21 18:11:15 :P Feb 21 18:11:37 MikeWallaceDev: yeap, Feb 21 18:11:49 Argentina always makes me think of Moulin Rough :) Feb 21 18:12:01 ok, 3rd try, let's hope that AS doesn't crash on me... Feb 21 18:12:09 MikeWallaceDev: Moulin Rough? Feb 21 18:12:18 ooops! :D Feb 21 18:12:24 auto correct? Feb 21 18:12:31 moulin gouge Feb 21 18:12:37 nope. Just can't spell Feb 21 18:13:17 rouge = red Feb 21 18:13:42 I added a copyright and some live templates and now AS is flaking out on me Feb 21 18:13:51 Damn! I mispelled it again!! Feb 21 18:14:02 M O U L I N R O U G E Feb 21 18:14:13 rogue? Feb 21 18:14:23 MikeWallaceDev: thanks for notifying me again ;) Feb 21 18:14:37 dude, don't play with my mind. ( Ashiren ) Feb 21 18:14:46 hahaha hi MikeClassic ! Feb 21 18:18:20 how do I make a ListView that fills the screen? Feb 21 18:18:42 or is that by default? Feb 21 18:18:58 height + width = match_parent Feb 21 18:19:03 make it match_parent Feb 21 18:19:17 of course, it's container has to fill the screen too... Feb 21 18:19:49 Match all the parents. Feb 21 18:20:07 MATCH ALL THE THINGS!! Feb 21 18:20:18 I guess I won't notice if this is working properly until I add some content to the list -.- Feb 21 18:20:19 MikeWallaceDev: i gonna use viewPager instead of a simple view, it seems more interesting Feb 21 18:20:28 oki doki :) Feb 21 18:20:33 PovAddict: You could set a background colour. Feb 21 18:20:51 It's transparent by default. Feb 21 18:21:04 an app for kids with divorced parents Feb 21 18:21:34 TacticalJoke: oh good idea - and yeah it seems to be working :) Feb 21 18:25:01 Does WebView (regardless of Android version) use a limited cache for the DOM Storage API thing? Feb 21 18:25:16 I'd rather not enable it, but then some sites break. :\ Feb 21 18:33:41 Any idea why this don't work? @android:drawable/emo_im_smile Feb 21 18:34:39 Kake_Fisk: Where is emo_im_smile? The above requires it to be in Android's own resources. Feb 21 18:35:05 I thought that was included in the SDK. The emoji smile Feb 21 18:49:26 I'm at an early stage with an app and Fragments just seem like an unnecessary complexity. Sqlite as well. I want in memory lists and activities... Is there any replacement for loaders and sqlite on android? Feb 21 18:49:56 well Feb 21 18:50:14 well?? Feb 21 18:50:20 retrofiting that stuff in is going to give you way more problems that properly desigining it in the first place Feb 21 18:50:31 ^^ Feb 21 18:50:37 but... there's bunch of database helpers around Feb 21 18:50:52 yeah I saw something like myentity.save() somwhere Feb 21 18:50:54 lost the link :P Feb 21 18:50:59 Look at Realm or OrmLite or GreenDao or any other DB implementations around Feb 21 18:51:08 Depending on what you need. Feb 21 18:51:19 As for loaders... for someones sake, use Retrofit :P Feb 21 18:52:00 ohkay Feb 21 18:52:38 I am considering to use SugarORM https://guides.codepath.com/android/Clean-Persistence-with-Sugar-ORM is that a bad idea? Feb 21 18:53:01 never used it. Feb 21 18:53:06 hello! an easy question. to run a script from terminal i can place it in /system/bin and chmod it 555, on every android version? (is /system/bin in each version of android?) Feb 21 18:53:25 DoctorD90, there is absolutely no guarantee about that. Feb 21 18:53:41 OEM can modify filesystem as it likes Feb 21 18:53:48 Hey. I have a custom view that needs to increase in height at runtime. what's the best way to animate these changes? Feb 21 18:54:06 until now, it is always /system/bin ? Feb 21 18:54:22 probably not Feb 21 18:54:28 what do you mean Mavrik ? Feb 21 18:54:33 DoctorD90, and that of course will only work on rooted phones Feb 21 18:54:49 MikeWallaceDev, yes, i want this :) Feb 21 18:54:54 DoctorD90, that it's highly unlikely all devices have /system/bin. Feb 21 18:55:12 uhm.....this isnt very good news... Feb 21 18:55:55 well Feb 21 18:56:00 you'll just gonna have to check for it Feb 21 18:56:13 how? Feb 21 18:56:17 you ARE doing unsupported stuff that can change randomly Feb 21 18:56:18 it's not that bad... You're only working with rooted phones. Feb 21 18:56:25 how can i check the real /system/bin folder? 0o Feb 21 18:56:28 and that can fuck up users phone. Feb 21 18:56:39 so you should check if the phone works like you expect it to. Feb 21 18:57:12 DoctorD90: Do you really need 100% support? Feb 21 18:58:21 Mavrik, MikeWallaceDev i would add tcl interpreter in command terminal, and to do that i have add it in my /system/bin folder. to help other future tcl user, i have make a little script, that checks mount pont of /system Feb 21 18:58:50 oki doki :) Feb 21 18:59:27 my little script is this: Feb 21 18:59:41 how do I let a bunch of fragments die? Feb 21 19:00:14 TacticalJoke you there? Feb 21 19:00:45 http://pastebin.com/hvKeJ5A0 Feb 21 19:01:06 MikeWallaceDev, Mavrik may you check it and tell me if i wrong something? Feb 21 19:01:40 my main issue ( i think ) is my secure in "/system/" folder existing.... Feb 21 19:02:04 reddit is fun has this: android:minSdkVersion="4" android:targetSdkVersion="11" Feb 21 19:02:06 wat Feb 21 19:02:06 i would make it much more secure as possible to help my tcl+android community :) Feb 21 19:02:08 Yeah, drose379. Feb 21 19:02:33 Hey, that screen demo should be ready in a few mins. You wanna check it out? Feb 21 19:02:39 Sure. :) Feb 21 19:04:49 TacticalJoke https://vid.me/frZt Feb 21 19:05:04 Basically were looking to see how the UI is, and if im relying to heavily on dialogs Feb 21 19:09:35 That's so neat looking. :) Feb 21 19:09:38 Im trying to setup gradle flavors, I have the 'main' directory, I've created 2 new directories at the same level one called 'free' and the other 'premium' I added a MainActivity.java file to both directories, I get an error about a duplicate class... any idea why? Feb 21 19:09:46 Personally, I would use activities instead of dialogs for most of that. Feb 21 19:09:50 But it's just my view of the world. Feb 21 19:10:29 Ok, so you think its neat (organized?) looking, but you would personally use a seperate activity? Feb 21 19:11:44 Yeah. Feb 21 19:12:08 Wbere you have text fields and 'Next', I would either put the whole thing on an activity or use fragments (or views) to make it all be on one activity. Feb 21 19:12:19 Though that's just my view. Others might disagree. Feb 21 19:12:35 viran, you'll have to remove that class from "main" Feb 21 19:12:38 Hm, ok Feb 21 19:12:57 Thanks for looking! Any part that stands out to you as confusing or just bad UI Feb 21 19:12:58 Mavrik: I have.... that class is not in main Feb 21 19:13:13 also make sure that your flavours are configured properly. Feb 21 19:13:13 Hm, wasn't there an eraser icon in the default action bar icons? I swear I've seen it on some apps Feb 21 19:13:45 Can I just ask something before I forget -- how comes your menu-overflow buttons (in the Toolbar/ActionBar) have a lot of space on the left and right? Are you using AppCompat? Just curious. Feb 21 19:14:30 The 3 dots icon? Feb 21 19:14:34 Yeah. Feb 21 19:15:29 I have no idea, the parent of the theme is AppCompat.ActionBar Feb 21 19:16:13 viran: Make sure of that, do a find of that class in your src/ directory Feb 21 19:16:33 Okay, I was hoping to replicate that look because the Google apps seem to use it, but the only way I found was to manually set the spacing. Feb 21 19:16:44 I guess it's because I'm using Toolbar with AppCompat.NoActionBar. Feb 21 19:16:54 Mavrik, sorry, have you seen my little script? Feb 21 19:17:05 Yes. Feb 21 19:17:15 Why NoActionBar? Feb 21 19:17:18 I don't have time to debug it for you however. Feb 21 19:17:27 some suggestion to solve "/system/bin" ? Feb 21 19:17:35 nono, i have tried it :) it works :) Feb 21 19:17:41 I have some memory consumption that I can't seem to track down. Does AS have anything useful here? Feb 21 19:18:02 i'd like just to ask you if you have some idea to know how retrieve where /system/bin is :) Feb 21 19:18:39 drose379: You have to do that if using a Toolbar instead of an ActionBar. Feb 21 19:18:42 knapper_tech, make a heap dump, open it in Eclipse MAT Feb 21 19:18:56 Oh, wait. I have that too TacticalJoke Feb 21 19:19:08 Ah, okay. Feb 21 19:19:28 Are you using Toolbar? Feb 21 19:19:31 Wanna just see the XML? Feb 21 19:19:35 Sure. Feb 21 19:19:38 CedricBeust:, Mavrik: For some reason the 'free' directory isn't recognized as a new flavor........ there's an entry for it in the gradle.build file... Feb 21 19:20:37 Double check your build.gradle, see if you have a bunch of build tasks in gradle Feb 21 19:20:46 e.g. assembleFreeDebug, etc... Feb 21 19:21:02 drose379: I don't see any bad UI there, to answer your question. It's looking great, actually. Feb 21 19:21:15 Mavrick, just diagnosed at least something. I commented my config changes attribute in manifest, suddenly all the memory can be GC'd. Removing fragments in frag transactions doesn't let them die? Feb 21 19:21:20 Thank you! Feb 21 19:22:02 knapper_tech, stop guessing, start measuring. Feb 21 19:22:05 Make a heap dump. Feb 21 19:22:06 right Feb 21 19:22:15 Open it in Eclipse MAT, see which objects are retained that shouldn't be. Feb 21 19:22:22 Check where the reference comes from. Feb 21 19:22:34 You might be leaking references somewhere in anonymous classes. Feb 21 19:22:41 I prefer activities to dialogs here because dialogs take up only a small portion of the screen and dialogs feel more cluttered beause there is something underneath them. But it looks like you have your own personal style going, and it's nice. Feb 21 19:23:07 Mavrik, likely I am. I'm using a lot of retrolambda for the sake of dev speed atm Feb 21 19:23:19 Thank you, its only looking nice because im using a few MaterialDesign librarys Feb 21 19:23:55 Heres the toolbar stuff http://pastie.org/9969599 Feb 21 19:24:06 Hello. Has anyone had any experience in using the camera with a SurfaceView? It seems that the android camera provides better image quality (lighting, scaling...) Would it be a pain in the ass to implement that myself? Feb 21 19:25:06 Yup. Feb 21 19:26:36 Mavrik, Is it possible though? I'd like to at least know what needs to be done. Lighting was the first thing I noticed, and I guess the light sensor can be used there. Feb 21 19:27:06 Uhm, no, that's not how it works. Feb 21 19:27:17 The camera app just configures the camera DSP to do that automatically. Feb 21 19:27:23 You're just probably not using the same settings. Feb 21 19:27:41 knapper_tech: so why not use kotlin ? Feb 21 19:27:48 Also if you're not on a Nexus, then that app probably uses private APIs and settings that aren't exposed in Android. Feb 21 19:27:59 There's also the new Camera2 API which gives you much more control. Feb 21 19:28:00 gordon_, one more thing to f*@& up? Feb 21 19:28:18 gordon_, how much of an experiment is it? Feb 21 19:28:22 better than retrolambda maybe Feb 21 19:28:22 haven't evaluated it yet Feb 21 19:28:33 well it works :) Feb 21 19:28:45 I have my ugly code somewhere Feb 21 19:28:50 Mavrik, aha, it does say that I'm using a deprecated class. I am using nexus table though. Feb 21 19:28:51 TacticalJoke any screenshots or demos of your app yet? Feb 21 19:29:16 or maybe not Feb 21 19:29:19 gordon_, requires build steps? magics? Feb 21 19:29:28 gradle plugin Feb 21 19:29:39 and that's it Feb 21 19:30:07 but some annotation processing libraries wont work Feb 21 19:30:23 anyway, dont know why you need retrolambda anyway Feb 21 19:30:40 where does it help you ? Feb 21 19:32:09 Mavrik, I'm not sure I understood you correctly, but you did seem to imply that a proper use of camera is doable via a SurfaceView. Have you had any practice on that? Feb 21 19:35:04 CedricBeust, you still keep up with android? Feb 21 19:35:10 CedricBeust, I thought you left it completely behind Feb 21 19:35:29 pfn: I've always done both back end and Android Feb 21 19:35:55 Sorry, drose. mIRC crashed. Feb 21 19:36:03 And client programming. And language studying. And graphics. And... Feb 21 19:36:12 No prob Feb 21 19:36:16 Brb. Feb 21 19:36:41 CedricBeust, indeed, so, what's your favorite language these days Feb 21 19:37:13 pfn: Enjoying Kotlin for Android, keeping an eye on Ceylon which is progressing nicely Feb 21 19:37:46 Indeed Feb 21 19:37:56 * pfn still chugs along on the scala train Feb 21 19:38:33 pfn: I know, I admire your courage to put Scala on Android Feb 21 19:38:54 lots of people do, just not quite publicly Feb 21 19:39:04 not lots vs java of. course Feb 21 19:39:59 my plugin gets 20-40 daily downloads, so there's quite a bit of interest Feb 21 19:40:12 Any awesome articles for using Eclipse AMT out there?' Feb 21 19:40:16 Wonder how many of these end up in real applications :) Feb 21 19:40:38 scala on Android appears to be. popular outside of the US Feb 21 19:40:39 Eclipse AMT? Not MAT? Feb 21 19:40:42 Looks like 6.5MB of res.Resources Feb 21 19:40:46 MAT sorry Feb 21 19:40:56 14MB of Bitmap Feb 21 19:40:56 pfn: I'm a bit skeptical about that but well Feb 21 19:41:02 there's a 50kloc learning application in South Africa Feb 21 19:41:33 These days, I only follow Scala for the theoretical aspect, not much interest to actually get things done for me Feb 21 19:41:37 800kb of java.lang.String. totally normal Feb 21 19:42:56 drose379: Your XML file looks just like mine. Hmm. Feb 21 19:43:06 CedricBeust, I'm contemplate writing a straight to dex compiler in the vein of scala.js Feb 21 19:43:09 What does your menu button look like? Feb 21 19:43:34 The same as yours but with less space on the left and right (I think). Feb 21 19:44:20 Is there a way you could test my app on your phone? Maybe its just the phone im that is making it have padding Feb 21 19:44:56 CedricBeust, fixes library size issues, proguard, build time and future jvm compatibility problems Feb 21 19:45:01 Am I doing something wrong? http://postimg.org/image/5aum90uh3/ the bottom java directory should be blue... Android studio does not allow more than one flavor for some reason Feb 21 19:45:13 viran, of course it does. Feb 21 19:45:15 pfn: That's quite an undertaking, on both sides of the tool Feb 21 19:45:25 viran, it will compile only one flavour at the time of course. Feb 21 19:45:31 (1) plugging into the scalac back and end 2) generating dex) Feb 21 19:45:36 viran, use the gradle window to switch. Feb 21 19:46:22 Mavrik: I see, thank you Feb 21 19:46:42 I'm doing MenuItem.setEnabled(false) when EditText is empty, but when I click the menuitem the app crashes + the icon isn't greyed out. Any ideas? Feb 21 19:47:56 CedricBeust, we'll, scala.js laid a lot of the ground work Feb 21 19:49:06 CedricBeust, mostly apply the same. concepts, but instead of translating to js, should be practically a direct translation to dex Feb 21 19:49:15 well Feb 21 19:50:05 Alright, can someone walk me through installing this (https://github.com/jjobes/SlideDateTimePicker) the right way? Yesterday when I tried to install it I ended up destroying my project. From what I understand, you copy his library to your project folder and then add in the gradle compile to your build.gradle? Only problem is when I did that it also installed his sample app in my project. Feb 21 19:50:32 t0astt, use the aar dependency Feb 21 19:51:00 You can send the APK out, and then people can side-load it. Feb 21 19:51:10 pfn: aar dependency? Feb 21 19:51:54 CedricBeust, and it's only something I'm really considering after the release of 2.12 and if I can't figure out a way of making it compatible through bytecode manipulation Feb 21 19:51:59 Hi. In Android Studio I'm doing a search for resources. AndroidManifest.xml for example... and it's bringing back copies in the intermediates folder. Is there any way to filter this out? Feb 21 19:52:21 Brb. Feb 21 19:54:39 pfn: Not worried that Typesafe doesn't seem to care at all about Android? Feb 21 19:55:44 hi Feb 21 19:56:00 pfn: Where do I find the aar dependency? I've never heard that term before Feb 21 19:56:15 whats the problem? Feb 21 19:56:23 can anyone link me to a good tutorial on loading and reading offline xml files? the only ones i can find download the xml off the net Feb 21 19:56:44 I'm super new at android development, also Feb 21 19:56:49 gdrc: who are you talking to? Feb 21 19:57:08 Quatroking, what? you mean local xml file? Feb 21 19:57:13 Yes Feb 21 19:57:26 t0astt, you Feb 21 19:57:33 How could I share the APK TacticalJoke Feb 21 19:57:43 gdrc: Oh ok. Where do I find the aar dependency for this library? https://github.com/jjobes/SlideDateTimePicker Feb 21 19:57:49 Quatroking, what do you nave to do? Feb 21 19:58:00 t0astt, it doesnt exist Feb 21 19:58:00 read values, pretty much Feb 21 19:58:06 drose379: You can host it somewhere or e-mail it. Feb 21 19:58:18 The entire app folder? Feb 21 19:58:27 gdrc: Oh. pfn mentioned it. So what is the proper way to install this library then? Last time I tried I ended up wrecking my project. Feb 21 19:59:00 gdrc, the last time I worked with loading xml files was in 2012, on a crappy windows mobile 4 device using .net 2 Feb 21 19:59:17 CedricBeust, Josh suereth has asked me about scala on Android Feb 21 19:59:29 TacticalJoke I have it on github could you just download it and run it? Feb 21 19:59:35 t0astt, search on google how to add a module in android studio Feb 21 19:59:37 CedricBeust, he does have some interest, though not an official stance from typesafe Feb 21 19:59:42 Quatroking, search on goog Feb 21 19:59:54 on google how to parse xml file in java Feb 21 20:00:03 pfn: Considering they can barely keep their compiler together, I have little faith they could accomplish that, even if they wanted (which they don't) Feb 21 20:00:34 Is that the APK or the project files? Feb 21 20:00:34 gdrc, oh jeez, didn't realize I could just use java implementations Feb 21 20:00:36 thanks Feb 21 20:00:46 no problem Feb 21 20:00:48 TacitalJoke what is the apk? :/ Feb 21 20:00:55 TacticalJoke* Feb 21 20:01:22 It's the installable file for an Android app. Feb 21 20:01:54 Ok, where would that be located? Feb 21 20:02:48 I think it's in app/build/outputs/apk/. Feb 21 20:02:55 find -iname "*.apk" ;) Feb 21 20:03:40 So if I give you the apk file you can download the app? Dont I have to host the files online? Or no? Feb 21 20:04:18 It doesn't have to be hosted on a server, no. Feb 21 20:04:29 The APK is an installable thing. Feb 21 20:04:32 I only have two files in my apk folder Feb 21 20:04:45 I think it's not the "aligned" one. Feb 21 20:04:52 app-debug? Feb 21 20:04:54 I mean "not the 'unaligned' one". Feb 21 20:04:57 Yeah. Feb 21 20:05:10 So if I give you that you can use my app? :D Feb 21 20:05:16 Yeah. Feb 21 20:05:22 Do you have an android device? Feb 21 20:05:32 CedricBeust, in any case, I'm not particularly concerned yet Feb 21 20:05:40 drose379: Isn't that almost 100% likely? :D Feb 21 20:05:50 haha yes Feb 21 20:05:56 So do you wanna try it out? Feb 21 20:06:01 Okay. Feb 21 20:06:07 Do you want to e-mail me or host it? Feb 21 20:06:28 Ill email it to you Feb 21 20:06:39 Or whatever works for you Feb 21 20:07:36 I’m trying to generate a new project on the command line using gradle for the first time and it won’t build with the generated build.gradle until I change “runProguard” to “minifyEnabled”. Am I doing something wrong or is that expected? Feb 21 20:10:42 'runProguard' was renamed to 'minifyEnabled' Feb 21 20:11:10 yes I’m just wondering why it would generate a new build file with the old name Feb 21 20:11:15 seems like I have something configured wrong Feb 21 20:14:11 Hello everybody. Does anyone knows how to maven install an android library? Feb 21 20:16:11 mmarklar: you are using an old version of something Feb 21 20:16:13 e.g., AS Feb 21 20:17:26 JakeWharton: Any ideas what it could be specifically? Its command line so not AS, I updated both the SDK and the SDK tools to the latest before running ‘android create project’ Feb 21 20:17:47 no. file a bug. Feb 21 20:18:02 ok Feb 21 20:22:04 do you guys suggest any android books Feb 21 20:27:01 i dont suggest any programming books :v Feb 21 20:27:59 I personally really like Big Java, it's written well, provides examples and also has excersises Feb 21 20:29:04 Quatroking go to the Android website. Their documentation is really good Feb 21 20:29:13 And obviously updated ;) Feb 21 20:29:34 Well yeah but if there's any good books out there I could read during public transit that'd be great Feb 21 20:29:46 I travel 90 minutes a day, bus metro and train Feb 21 20:30:13 Tablet? Feb 21 20:30:22 5" phone which works well enough for me Feb 21 20:30:35 I already read a lot of comics on it Feb 21 20:31:16 Give it a try. I suggest their website because of design suggestions, and get to know the terms they use like spinner and actionBar Feb 21 20:31:17 Android Feb 21 20:31:17 Programming Feb 21 20:31:17 TM Feb 21 20:31:24 oops Feb 21 20:31:37 linoman, oh, and I don't have an internet plan :D Feb 21 20:31:49 hi Feb 21 20:32:03 That's why I'm asking for literature as well, I don't mind using online resources but it's not like I can access them out of WiFi range Feb 21 20:32:04 Hi, i am trying to make an app using this : https://github.com/neokree/MaterialNavigationDrawer But i have a few questions if anyone is up to answer them. 1. Do i need to create Android Navigation Drawer poject in the Android Studio or do this in the blank project ? 2. I don't understand the part about creating an init, can anyone explain that to me ? Feb 21 20:32:06 Quatroking: I like Android Programming: Pusing the Limits by Erik Hellman. Feb 21 20:32:16 xdaimon, thanks, will look it up Feb 21 20:32:18 Good to reference now and again. Feb 21 20:32:31 please answer my neewb question : can i send -debug.apk like email to smb and they can run? Feb 21 20:32:41 TacticalJoke ^ Feb 21 20:32:42 haha Feb 21 20:32:45 quasist: yes Feb 21 20:33:25 quasist: smb? Feb 21 20:33:26 lol Feb 21 20:33:28 quasist: if they've installed the release signed version of your app before, they'll have to uninstall it first Feb 21 20:34:04 quasist: depends if the recipent knows how to install it Feb 21 20:34:45 I just tested my app on my <100$ devices... and friend can't install it on galaxy note 3... Feb 21 20:34:50 they can if they checked to allow to install from other sources than google play Feb 21 20:35:00 they have it on Feb 21 20:35:17 any errors? Feb 21 20:35:46 Why they can't? Feb 21 20:35:48 error unpacking or something Feb 21 20:36:15 Can aynone help me ? Feb 21 20:36:22 Can you provide more input? Feb 21 20:36:31 quasist: look at logcat for the actual installation error Feb 21 20:36:50 i have no logcat to thaaat phone... it is like 500km from me Feb 21 20:37:10 oh! it seems fixed... Feb 21 20:37:23 seems i forgot to compile for his CPU Feb 21 20:37:28 :P Feb 21 20:37:31 #NDK-problems Feb 21 20:37:34 ^_^ Feb 21 20:37:40 ty for morale support Feb 21 20:37:52 heh. no armv5? :) Feb 21 20:38:08 huh Feb 21 20:38:23 There are armv5 phones out there? Feb 21 20:39:16 Can anyone shed some light on how to maven instal android libraries? Feb 21 20:42:56 if anyone 'bored' you can check my little game (port of my ludum dare entry) https://www.dropbox.com/s/zovi1e7mfis9shy/llpc_android_app-debug.apk?dl=0 Feb 21 20:43:46 Hi, i am trying to make an app using this : https://github.com/neokree/MaterialNavigationDrawer But i have a few questions if anyone is up to answer them. 1. Do i need to create Android Navigation Drawer poject in the Android Studio or do this in the blank project ? 2. I don't understand the part about creating an init, can anyone explain that to me ? Feb 21 20:45:31 is there any way to add a "guard" around a piece of code that registers it with strictmode to ensure its not getting called on the UI thread? i could just check the current thread myself and log a warning Feb 21 20:46:44 hm i need to think about this more Feb 21 20:47:28 nightwalkerkg 1. I don't think so, you must import it via gradle 2. According to the wiki (and my low knowledge) you must create that class with just the init, follow the rules and all your activities must extend from that Feb 21 20:48:08 can anyone here do me a big favor and look at two update scripts and see if whats what Feb 21 20:48:52 https://gist.github.com/LeonardoXavier/c91024a1e6f101e82fb1 Feb 21 20:49:07 I need to make the top one work Feb 21 20:51:02 XDS2010_ #android-root Feb 21 20:51:40 how can you launch an intent that will allow setting a default? Feb 21 20:51:51 the chooser I just made doesn't seem to do that Feb 21 20:52:56 linoman: So i just add this : https://github.com/neokree/MaterialNavigationDrawer/wiki/Set-Up-a-Navigation-Drawer-Activity#step-1-create-the-activity-class to my mainActivity ? Feb 21 20:54:02 Mmmmm not exactly Feb 21 20:54:02 drose379: Do you get to use an XML layout file for that dialog thing? Feb 21 20:54:14 You can Feb 21 20:54:29 there is a customView() method where you can put a layout in Feb 21 20:54:40 nightwalkerkg create that class. Then extend MainActivity to said class. Feb 21 20:54:46 You should be able to reproduce that issue by making one of those buttons have really long text. Feb 21 20:54:49 Perhaps the left-most one. Feb 21 20:55:11 leftmost* Feb 21 20:55:18 Do you think I should just make it "New" instead of "New Objective" ? Feb 21 20:55:31 Yeah. Feb 21 20:55:36 Because the dialog title is Lesson Objectives. Feb 21 20:55:51 Then again, I guess it doesn't hurt to be precise. Feb 21 20:56:00 Right, you wanna try the update on your device or are we gonna assume it is a fix Feb 21 20:56:04 linoman: So instead of public class MainActivity extends ActionBarActivity it should be public class MainActivity extends MyNavigationDrawer . And MyNavigationDrawer should extend MaterialNavigationDrawer ? Feb 21 20:56:06 And there's NEXT and CANCEL (in another namespace, essentially). Feb 21 20:56:22 It should be fixed since that's the only dialog where I had that issue. Feb 21 20:56:33 nightwalkerkg that's what I understand from the docs Feb 21 20:56:37 Ok, cool. You still mesisng with your theme? Feb 21 20:56:55 Yeah. It's a long process. lol Feb 21 20:57:24 Definitely Feb 21 21:01:08 AS created this folder structure: AndroidStudioProjects/MyApp/app/src/main/java/ Feb 21 21:01:18 what should I put in my version control? MyApp or app? Feb 21 21:02:49 Your .git directory should be inside MyApp. Feb 21 21:03:04 Looking at that directory and its children. Feb 21 21:03:35 so I should stuff like gradlew.bat in version control? Feb 21 21:04:28 The Gradle people say it should be. Feb 21 21:05:45 * PovAddict realizes he accidentally a verb in that question Feb 21 21:06:04 TacticalJoke do you by any chance have that screen demo I showed earlier still open? Feb 21 21:06:44 It's this: https://vid.me/frZt Feb 21 21:07:30 Thank you Feb 21 21:07:57 PovAddict: It's up to you whether you check it in, though. Feb 21 21:08:04 And you could always check it in later if you so decided. Feb 21 21:08:39 I saw in other projects' gitignore that local.properties should NOT be committed, right? Feb 21 21:08:57 Yeah, I put that in my .hgignore. Feb 21 21:12:11 linoman: http://pastebin.com/VmyXXqkK Now i am getting this when i try to run my app. Feb 21 21:14:20 nightwalkerkg have you added the theme and changed the manifest? Feb 21 21:16:08 linoman: Ah, forgot to change the theme name in the manifest. :P Feb 21 21:17:14 linoman: One more question and i will stop bugging you. :P I have this to add new section : MaterialSection section = newSection("Section 1", new FragmentIndex()); But it's reporting an error that i am missing the FragmentIndex, is that basicly an activity that is activating when i press the section in the drawer ? Feb 21 21:19:39 nigthwalkerkg where is the info to add new esections? Feb 21 21:21:20 nightwalkerkg ok seems like it's missing the library. Did you gradle-download it correctly? Feb 21 21:21:38 linoman: Yep. Feb 21 21:21:54 IDE? Feb 21 21:22:10 linoman: Android Studio. Feb 21 21:23:38 nightwalkerkg (is there an easier way to send you a msg? I'm getting tired of typing it) what's the import for FragmentIndex? Feb 21 21:24:22 linoman: This is all i have : https://github.com/neokree/MaterialNavigationDrawer/wiki/Sections Feb 21 21:24:34 I need to add a section, but i don't really understand this. Feb 21 21:25:45 nightwalkerkg: Where are you adding it? And what's the improt for FragmentActivity ? Feb 21 21:26:14 nightwalkerkg *import Feb 21 21:26:43 linoman: https://github.com/neokree/MaterialNavigationDrawer/blob/master/MaterialNavigationDrawer/app/src/main/java/it/neokree/example/mockedFragments/FragmentIndex.java Feb 21 21:27:32 nightwalker no no, import as in your code -> import it.neokree.example.mockedFragments.FragmentIndex; Feb 21 21:37:43 suddenly, AS is giving me an error on import android.support.v7.app.ActionBarActivity; saying it can't resolve the symbol Feb 21 21:38:45 try gradle sync Feb 21 21:38:55 ah I recompiled and now it works Feb 21 21:52:26 huh, I just thought of this, some Android classes have A LOT of javadoc, and it's not always easy to read. Is there a way in AS to "view this class' javadoc" from the editor? Feb 21 21:53:33 Qtrl-Q! Feb 21 21:53:48 though not exactly... Feb 21 21:55:06 Yeah something like Eclipse's Javadoc view would be nice Feb 21 21:55:24 on OS X you configure Dash with Alfred Feb 21 21:55:53 yeah, Ctrl-Q didn't exactly give what I wanted... Feb 21 21:57:33 dammit! I tried "presentation mode" now I can't get out of it! Feb 21 21:58:49 good thing that I have two screens... Feb 21 21:59:02 If I had only one screen I would have been screwed Feb 21 22:01:09 how can I use a custom layout for a ListView footer? Feb 21 22:01:24 just read this article about docker containers on the desktop. i wonder if eventually it makes sense to do this on mobile too Feb 21 22:34:43 o/ Feb 21 22:36:49 trying to figure out a kind of "keypad" type layout, like a phone dialpad, but specifically for typing specific sets of characters into an edittext. it would be something like one key would add "ABC", and backspace would clear each buttons input (clearing "ABC", for example) Feb 21 22:36:58 do I have to code a new IME? Feb 21 22:38:27 so the machine im trying to develop on is being pushed to the limits as far as ram goes is there a way to off load the emulator to another machine and if not how well does Android Studio run when its being used over an RDP or VNC connection? Feb 21 22:39:21 don't it simlier to test builds on real device? Feb 21 22:40:15 I dont have any decent device to test on except for my phone and I dont want to use it as my test bed Feb 21 22:40:23 I've created an Android Project with mvn but how do I compule it? Feb 21 22:40:51 I have a couple of old ginger bread phones but thats about it Feb 21 22:43:48 donavan01 interesting, i ihaven't tried adb over wifi in the emu / genymotion Feb 21 22:44:16 i think its worth exploring Feb 21 22:49:45 Hey peeps Feb 21 22:51:28 is this still relevant? http://www.fampennings.nl/maarten/android/09keyboard/index.htm Feb 21 22:51:34 I have a love/hate relationship with maven Feb 21 22:51:50 why use maven ? use gradle Feb 21 22:52:03 Because of the company's framework Feb 21 22:52:08 Is built around maven Feb 21 22:52:15 O.o Feb 21 22:52:18 If I can make it work, it's gonna rock Feb 21 22:52:30 We have something similar to grails, but with maven Feb 21 22:52:36 what framework do they have , custom plugins ? Feb 21 22:52:48 yeah Feb 21 22:52:50 LOTS Feb 21 22:53:28 there is so much going on in the android gradle build system at this point, its crazy not using it Feb 21 22:53:54 I might do that Feb 21 22:54:06 Because I'm hating mvn right now Feb 21 23:00:59 g00s wheres is the android gradle docs? Feb 21 23:05:59 linoman: I am back again, and i have another quesion, https://github.com/neokree/MaterialNavigationDrawer/wiki/Set-Up-a-Navigation-Drawer-Activity#init-method it's said here that init method is called into the ActioBarActivity with the onCreate method. So i am not sure if we should replace the ActionBarActivity with MyNavigationDrawer. Feb 21 23:06:46 That's what the plugin said. I'm just rephrasing the wiki back to you Feb 21 23:07:34 I've asked you where are you adding the sections Feb 21 23:08:45 Nightwalkerkg, extend MaterialNavigationDrawer Feb 21 23:09:30 drinfernoo: When i extend that i get unable to resolve. Feb 21 23:09:43 then you're doing something wrong Feb 21 23:09:59 linoman http://tools.android.com/tech-docs/new-build-system/user-guide Feb 21 23:10:22 Thanks g00s ! Feb 21 23:10:24 pretty crazy that the docs are still half-arsed Feb 21 23:10:31 i mean, being that its past 1.0 Feb 21 23:11:09 i think google is running out of things to say at I/O so they basically wait until then to do anything at all :) Feb 21 23:11:13 drinfernoo: As far as i can read, the new class : MyNavigationDrawer should extend MaterialNavigationDrawer, and the MainActivity should extend the MyNavigationDrawer or extend ActionBarActivity and some how call the MyNavigationDrawer with onCreate method. Feb 21 23:12:47 In my years as programmer their docs are the best. I have a hate/hate relationshipt with DynamicJasper Feb 21 23:13:05 linoman google docs are the best ? Feb 21 23:15:00 g00s in contrast with everything else Feb 21 23:15:04 ...I've used Feb 21 23:15:30 I have a scroll view on my home screen that no one can ever figure out how to use. Is there any scroll indicator button thing that I can have point in the direction of the scroll with a little "scroll here!" message? Feb 21 23:16:28 bilb_one I've seen some apps use the open->close animation on the scroll bar when you first enter the Activity, as a hint to the user to use it Feb 21 23:16:37 Nightwalkerg, just have your MainActivity extends MaterialNavigationDrawer, and do what you would normally do in onCreate() in init() instead. MaterialNavigationDrawer does stuff in its onCreate() and then calls init() Feb 21 23:16:47 Nightwalkerkg, whoops Feb 21 23:19:36 drinfernoo: Now i am even more confused. Feb 21 23:20:19 Nightwalkerkg MainActivity extends MyNew Feb 21 23:20:29 why? Feb 21 23:20:30 Mynew extends MaterialNavigationDrawer Feb 21 23:20:42 I mean, yeah you can do that, but you don't really need to Feb 21 23:20:49 Inside MyNew the init must be empty... at first Feb 21 23:21:42 linoman: Yeah, but the app won't work unless i add the Section. I do it with this MaterialSection section = newSection("Section 1", new FragmentIndex()); but i can't import FragmentIndex from anywhere. Feb 21 23:22:10 First things first Feb 21 23:22:11 is FragmentIndex your class? Feb 21 23:22:17 It's in it.neokree.example.*; But i don't have the example i just have it.neokree.materialnavigation.drawer. Feb 21 23:22:22 DrIngernoo nope Feb 21 23:22:26 drinfernoo: https://github.com/neokree/MaterialNavigationDrawer/wiki/Sections Feb 21 23:22:31 I've used it Feb 21 23:22:48 In what class are you adding the section? Feb 21 23:23:01 linoman: MyNavigationDrawer. Feb 21 23:23:18 FragmentIndex is an example fragment. you populate the sections with your own custom fragments. you should add sections from your init() method, which is apparently in MyNavigationDrawer Feb 21 23:23:51 Cool. Replace the import for import it.neokree.example.mockedFragments.FragmentIndex; Feb 21 23:24:02 Does it compiles? Feb 21 23:24:34 linoman: That package dosen't exist. Feb 21 23:24:44 drinfernoo: Can you explane to me how to make a fragment and what it is ? Feb 21 23:24:56 This is my first app, so i don't understand all of this. Feb 21 23:25:03 Then it;s not loading the library with gradle Feb 21 23:26:01 linoman: This is the library i am using : 'it.neokree:MaterialNavigationDrawer:1.3.1' Feb 21 23:26:09 And the FragmentIndex is not a part of it. Feb 21 23:26:17 But this lib is provided in the guide. Feb 21 23:26:34 are there multiple layers for canvas? Feb 21 23:29:55 Nightwalkerkg, http://developer.android.com/guide/components/fragments.html Feb 21 23:30:30 FragmentIndex, in the MaterialNavigationDrawer project, isn't part of the library itself, but rather a part of his examples. Feb 21 23:31:15 you basically make a new class, MyFragment (or whatever) extends Fragment, and pass that to your Section constructor Feb 21 23:31:48 then you basically do the same stuff with your Fragment, UI-wise, that you would with a typical activity Feb 21 23:32:23 drinfernoo: I "link" the activity to a fragment, right ? Feb 21 23:35:05 erm... usually, sort of? in most cases, a Fragment is started via a FragmentTransaction (more about that in the android docs, I linked them), but in your case MaterialNavigationDrawer will be doing most of the work for you. you simply create a Section, pass it your fragment, and it inflates and attaches it. Feb 21 23:35:18 I think I might have overwritten source.properties from the SDK Feb 21 23:35:24 Can someone share them? Feb 21 23:37:41 drinfernoo: I am getting this error : You must add at least one Section to top list. Feb 21 23:38:05 But i am not sure what to do with this : public void addSection(MaterialSection section) Do i just put it inside the onInit() ? Feb 21 23:40:16 drinfernoo: Nevermind, i got it working. It was a typo. Feb 21 23:40:17 :D Feb 21 23:40:36 I need a copy of source.properties Feb 21 23:40:41 Can somebody help me? Feb 21 23:47:01 linoman: http://pastebin.com/a0DjUWKk This ? Feb 21 23:47:33 I really hope is that Feb 21 23:48:48 Lenovo is getting it bad: http://www.reddit.com/r/technology/comments/2wo0ie/lenovo_committed_one_of_the_worst_consumer/ Feb 21 23:49:51 good Feb 21 23:53:11 haha OK Nightwalkerkg, glad you got it Feb 21 23:53:30 my worst bug I ever had back in the day was "pubic" instead of "public" Feb 21 23:53:37 that one took me forever lmao Feb 21 23:53:48 drinfernoo: Yeah, now i am messing around with themeing. :D Feb 21 23:53:55 Thank you and linoman for the help. Feb 21 23:54:07 glad I could be of service Feb 21 23:54:57 NightWalkerKG no problem. Just take one step at a time Feb 21 23:55:05 What was your typo? Feb 21 23:55:10 drinfernoo: At least Java has an interpreter. Feb 21 23:55:24 for sure Feb 21 23:55:52 I was working with C# before, it only had a compiler. Feb 21 23:56:02 I may switch back to MatwrialNavigationDrawer. I like it, but when I had used it, it had some breaking bugs on xxhdpi, which I am on Feb 21 23:56:03 Fixing a typo was a pain in the ass. Feb 21 23:57:01 linoman: When i added a section this.addSection(newSection("Section 1", new MyFragment())); i used added two n to the word Section. Feb 21 23:57:38 is android studio graphics intensive assuming im not doing game development ... im just wondering if its a possibility to run it on my server and access it remotely Feb 21 23:57:49 Damn Feb 21 23:58:17 donavan01: should work Feb 21 23:59:25 haha Sectionn Feb 22 00:00:04 xD Feb 22 00:00:54 C-Sectionn Feb 22 00:02:10 I need to add some ram to the server its only got 7gb in it now how much would I realistically need to not feel any crunch ... the server is a dual quad core xeon 2.8 setup with a 4x 250gb drive in raid 1+0 I managed to hack a pcie graphics card into one of its 4x slots ... do you think this is enough to not want to bang my head of the machine I was trying to get it to work on an older imac but the ram is limited Feb 22 00:02:10 to 4gbs on this machine and the processor is only a core2duo Feb 22 00:03:31 That's gonna be awful Feb 22 00:03:37 take those things, throw them in the recycle bin Feb 22 00:03:44 and buy cheapest i3 with 16G of ram and SSD Feb 22 00:05:31 Hate to say it but Mavrik's right Feb 22 00:06:04 Java apps (Eclipse/IntelliJ/AS) run pretty bad over most remoting software Feb 22 00:06:25 Since they usually don't use optimized native OS drawing... the performance over NoMachine NX / VNC / RDP was pretty bad when I used them Feb 22 00:06:38 Also, that i3 is going to kick the crap out of the Xeon server desktop-performance wise. Feb 22 00:06:40 that kinda what I figured but I had the hardware not doing anything and figure it was worth a try Feb 22 00:08:13 Anyone know the color palete for Google Play Music ? Feb 22 00:08:44 Nevermind, got it. Feb 22 00:13:28 The ripple effect is so nice on this drawer. :3 Feb 22 00:26:59 Anyone know how can i set an image from drawable/ to the header using this.setDrawerHeaderImage(myBitmap) ? Like here : https://github.com/neokree/MaterialNavigationDrawer/wiki/Theming#image Feb 22 00:27:50 Nevermind, i am a moron. Feb 22 00:31:20 NightWalkerKG you need to extend your question threshold :P Feb 22 00:31:31 xD Feb 22 00:31:58 I am too tired to read, but i need to finish this app for Monday. xD Feb 22 00:33:13 hello Feb 22 00:33:30 i'm new to irc and this channel. Feb 22 00:33:32 hola Feb 22 00:33:35 welcome Feb 22 00:33:47 bienvenido Feb 22 00:33:55 (^_^) Feb 22 00:33:55 hallo Feb 22 00:34:03 Hey! Feb 22 00:34:08 ho! Feb 22 00:34:21 Let's go! Feb 22 00:34:27 can someone answer a question for me? is there really a difference between using toolbar and actionbar? Feb 22 00:34:37 it should be or not and Feb 22 00:34:44 idk. not really good at english Feb 22 00:34:49 It's "and". Feb 22 00:34:52 What are you good at? Feb 22 00:34:54 A difference between X and Y. Feb 22 00:35:07 Yes, there are differences between Toolbar and ActionBar. Feb 22 00:35:29 Toolbar is a View. ActionBar is kinda magical voodoo. Feb 22 00:36:01 magical voodoo Feb 22 00:36:10 isn't voodoo already magical Feb 22 00:36:35 Isn't all magic voodoo? Feb 22 00:36:37 interesting. i'm working with tabs and i had to switch to using a toolbar because the methods i was told to use were deprecated Feb 22 00:36:40 Ok, I think I need to get some sleep Feb 22 00:37:05 but i've only been learning android for about a week now Feb 22 00:38:21 linoman: I just need to figure out how to make the text on the drawer bold. xD Feb 22 00:38:31 easy Feb 22 00:38:59 lmgtfy.com?q=android+text+bold Feb 22 00:44:22 "Beginning May 1, 2015, new Mac apps and app updates submitted to the Mac App Store may no longer use garbage collection, which was deprecated in OS X Mountain Lion. Instead, migrate your apps to Automatic Reference Counting [...]" Feb 22 00:44:27 http://www.reddit.com/r/programming/comments/2wo18p/mac_apps_that_use_garbage_collection_must_move_to/ Feb 22 01:06:10 If Kotlin got annotation processing and multiple constructors, would there be any real drawback to using it for Android programming? Feb 22 01:10:26 im out Feb 22 01:25:04 kinda annoying kotlin doesn't have overloaded function support Feb 22 01:26:00 I'm trying to chance the theme of my app to Theme.Black Feb 22 01:26:03 Yeah, I do find it handy sometimes. Feb 22 01:26:30 but when I tried doing that I got an error saying I need to have the AppCompat Theme Feb 22 01:26:57 so I made my activity extent Activity instead of ActionBarActivity that depended on that theme Feb 22 01:27:29 but now I'm getting an error in my OnCreate in my activity saying it cant find "getSupportFragmentManager()" Feb 22 01:27:53 I'm in quite the pickle... I just want to change themes Feb 22 01:28:26 I think you have to use an AppCompat theme if you're using Toolbar or something. Feb 22 01:28:47 TacticalJoke: I don't want the toolbar though Feb 22 01:29:24 The error message that said you have to use an AppCompat theme: what did it say? Feb 22 01:29:41 TacticalJoke: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. Feb 22 01:30:21 Okay. Have to use AppCompat themes with ActionBarActivity. Feb 22 01:30:28 And have to use ActionBarActivity for getSupportFragmentManager. Feb 22 01:31:01 TacticalJoke: is there no way around this? Feb 22 01:31:43 As far as I know, there isn't. Feb 22 01:31:50 Unless you can drop getSupportFragmentManager and co. Feb 22 01:32:26 TacticalJoke: nvm, fixed it Feb 22 01:32:35 just needed to extend FragmentActivity Feb 22 01:33:16 ok, I need help with a couple of more things though Feb 22 01:33:21 Damn, yeah. Forgot about that class. ;o Feb 22 01:33:34 Everything is AppCompat in 2015. Feb 22 01:33:52 I have this really large text field and the cursor goes in the middle of it instead of the top Feb 22 01:34:00 how can I make it go to the top? Feb 22 01:34:53 The text-insertion caret starts in the middle of a large EditText? Feb 22 01:35:01 TacticalJoke: yea Feb 22 01:35:11 Even when it's empty? Feb 22 01:35:18 yea Feb 22 01:36:08 TacticalJoke: I can't seem to find an attribute for it either Feb 22 01:36:18 I'm trying to reproduce this. Feb 22 01:36:45 TacticalJoke: the EditText is like 70% of my screen Feb 22 01:37:58 android:gravity="top" fixes it, but I need to google to understand this more. Feb 22 01:38:07 ah, thanks Feb 22 01:38:36 and one more thing... Feb 22 01:39:06 I'm trying to make a counter that tells you how many characters you have left of the 140 available Feb 22 01:39:18 (like the twitter thing) Feb 22 01:39:51 hang on, I'll give you cod Feb 22 01:39:52 code* Feb 22 01:39:57 I guess you could use a TextWatcher and keep track of how many there are. Feb 22 01:40:07 TacticalJoke: Yea, that's what I'm doing Feb 22 01:40:19 but it just is stuck at 126 for some reason... Feb 22 01:40:53 TacticalJoke: http://pastie.org/9970203 Feb 22 01:40:59 this is my OnCreateView Feb 22 01:41:36 in the afterTextChanged I try and update the text amount... but it just keeps saying "126" Feb 22 01:42:19 either "re.getText().toString().length()" isn't working or the trigger isn't going off Feb 22 01:42:44 then again... if the counter would be working it would'nt say 126 when the field is empty... Feb 22 01:43:03 You're querying 're', not 'inp'. Feb 22 01:43:19 ... dang it!!! Feb 22 01:43:40 Also, you can just say '(140 - inp.length())'. Feb 22 01:43:48 oh, good Feb 22 01:44:12 You might even be able to use onTextChanged and use charSequence.length(). Feb 22 01:44:17 wait what's this mipmap folder now Feb 22 01:44:56 TacticalJoke: hmm... that seems more intuitive Feb 22 01:45:18 looks pretty useless Feb 22 01:47:04 Afzal: This looks good: http://stackoverflow.com/questions/23935810/mipmap-drawables-for-icons Feb 22 01:48:01 I still maintain that it seems like an unnecessary implementation Feb 22 01:48:12 a whole other resource folder to keep images Feb 22 01:49:16 so it's resolution-specific drawables that won't get resized? Feb 22 01:49:54 "It’s best practice to place your app icons in mipmap- folders (not the drawable- folders) because they are used at resolutions different from the device’s current density. For example, an xxxhdpi app icon can be used on the launcher for an xxhdpi device." Feb 22 01:49:56 http://android-developers.blogspot.co.uk/2014/10/getting-your-apps-ready-for-nexus-6-and.html Feb 22 01:50:20 Yup, I read that article befor eI posted here Feb 22 01:53:50 TacticalJoke somebody should write google "getting appcompat ready for nexus 6" Feb 22 02:14:03 I really like the look of Rust. Feb 22 02:39:46 how long does it take to get comfortable with dagger? Feb 22 02:48:09 my app isn't running Feb 22 02:48:10 halp Feb 22 02:51:07 anyone have experience setting up emulators for a CI system? we've been using genymotion for a while but we're not super happy with it's reliability. considering trying AVDs again (it's been years), wondering if they've improved enough to be usable now, and if they're more stable than genymotion Feb 22 02:54:57 lasserix: Not very, do you have questions about Dagger? **** ENDING LOGGING AT Sun Feb 22 02:59:59 2015