**** BEGIN LOGGING AT Fri Mar 04 02:59:58 2016 Mar 04 03:16:45 TIL Widgets with AlarmManagers don't possess state outside the view, so I'm going to save state via Bitmaps in the view instead of serializable messages. Mar 04 03:20:10 Hold on, I could just serialize a one-dimensional squished array. Mar 04 03:30:40 how can I mock out a REST service that my app depends on? Mar 04 03:31:59 I'm using retrofit and rxjava for all network calls Mar 04 03:32:27 there must be a way to swap a network call with my own response Mar 04 03:33:31 RustyShackleford: probably mockito but I'm not sure if there's something better for android Mar 04 03:33:53 Napalm|afk: used a custom view class and a custom arg since tint can't take a ColorStateList below API 21 Mar 04 03:34:16 like a module I can drop in so I can dev complete offline, or if the server goes down Mar 04 03:35:11 mockito is more for unit testing Mar 04 03:39:12 oh, i thought that's what you wanted? Mar 04 03:39:33 you could use an interface for the calls then have a concrete class that fakes out the server calls Mar 04 03:39:40 that's basically what mockito does anyway Mar 04 03:42:53 you can also probably use something like fiddler to record a bunch of requests/responses Mar 04 03:43:56 its a huge API Mar 04 03:48:21 So if each of my fragments has its own toolbar in xml. What happens if I decide to show the fragments side by side in a tablet layout? Mar 04 03:48:43 Do the toolbars merge? Mar 04 03:48:48 did we all read this? http://www.theverge.com/2016/3/2/11140928/app-store-economy-apple-android-pixite-bankruptcy Mar 04 03:48:54 * Leeds afk Mar 04 03:58:24 hello Mar 04 04:05:03 hey guys, quick question Mar 04 04:06:09 Not very quick Mar 04 04:07:07 How are you guys handling infinite scroll views? Mar 04 04:07:28 an infinite recycler view that's pulling from a data source Mar 04 04:08:22 You load data when you cross a certain threshold of items left in your data set Mar 04 04:08:49 Plenty of google results Mar 04 04:14:00 is setvisibility(View.GONE) meant to remove the background drawable too? Mar 04 04:14:12 because it isn't here, please tell me I'm not going insane Mar 04 04:14:47 wow I can't even get bitmap data from a remoteview Mar 04 04:14:48 ok this is harder than i thought Mar 04 04:19:08 any devs in here? Mar 04 04:19:44 josecalles, pick like 3x positions times fills the screen the mod it Mar 04 04:19:53 and you keep display position and data index Mar 04 04:21:47 JavaLover: I'd say about 364 devs here right now Mar 04 04:21:53 JavaLover, we are are kotlin aficianods. no java. Mar 04 04:22:08 I'm looking to set up a volley for a jsoup parse, could somebody help me with setting up the volley itself? Mar 04 04:22:19 well maybe you guys can help me idk...i'm not sure what kind of an issue this actually is. Mar 04 04:22:33 Basically i'm trying to open a new tab using google chrome mobile via Javascript. Mar 04 04:23:08 If I use window.open('http://www.google.com'); everything is fine YAYYY. But if I put in a google map link..it overwrites my window. I've tried like 15 versions of window.open() and it fails everytime. Mar 04 04:23:32 I just want a new tab and yes I have tried window.open("link","_blank"); Mar 04 04:30:36 no rx channels? ='( Mar 04 04:39:44 does anybody know how to turn on mylocaiton on google maps by default? Mar 04 04:40:07 so the map shows my locations upon loading without clicking mylocation button Mar 04 04:40:26 orbyt_: Ask your rx questions here Mar 04 04:41:01 I may or may not have just solved my issue, will report back Mar 04 04:41:57 CedricBeust: do you have any experience with jsoup? Mar 04 04:42:16 Limited Mar 04 04:43:22 I can't get the part before the document.select() set up correctly Mar 04 04:49:17 CedricBeust: Does Rx have an equivalant to Java Streams .collect()? Mar 04 04:49:28 I'm basically trying to convert this into Rx: https://paste.ee/p/hHpVT Mar 04 04:49:50 Rx doesn't really work like collect() does Mar 04 04:50:01 Transform streams, subscribe to the final values Mar 04 04:51:21 CedricBeust: mind if I pm you a few things? Want to give you a bit more context and see what you suggest Mar 04 04:51:32 Rather not Mar 04 04:51:32 just small code snippets Mar 04 04:51:47 write here Mar 04 04:51:54 well is it alright to post a few Rx and java 8 snippets? Mar 04 04:52:02 didnt want to clutter since its #android-dev Mar 04 04:52:09 Then post to ##java Mar 04 04:52:11 so paste them in pastebin please Mar 04 04:52:18 or in ##java Mar 04 04:52:19 Either way, pastebin Mar 04 04:52:21 Yea was just in java Mar 04 04:52:26 alright 1 sec Mar 04 04:52:36 just in case you dont know Mar 04 04:52:43 you can use streams on android Mar 04 04:52:49 with some 3rd party lib Mar 04 04:53:22 Yes you can. I suggest using Rx instead Mar 04 04:53:30 but whatever you're more comfortable with Mar 04 04:54:34 eh Mar 04 04:54:41 i wish gitter would use just websockets.. Mar 04 04:57:24 Yea im just doing this as proof of concept sorta thing. Anyway, im basically trying to convert this java8 snippet into Rx: http://pastebin.com/ksgf5QFs Mar 04 04:57:33 Here is my current Rx code: http://pastebin.com/YsyZJghz Mar 04 04:58:13 and when subscribing im just getting the 2 elements in the original array, instead of 6 like using the Java8 Stream Mar 04 04:58:25 any kind of insight would be cool Mar 04 05:00:47 If its not apparent, I was using the same mNestedArray variable with the Java8 stream methods Mar 04 05:04:01 are any of your companies hiring junior android developers? Mar 04 05:04:01 CedricBeust from /r/programming https://medium.com/@elviraw/kotlin-and-ceylon-3ee011125b7d#.i6uzhol8c Mar 04 05:04:10 I'm only half joking Mar 04 05:05:37 What, no takers on that code then? Shame. Mar 04 05:10:17 apparent theres a .collect() for rx.. Mar 04 05:10:22 g00s: Ceylon is very interesting but right now, it's gotten zero traction compared to Kotlin. I wish the language good luck though, lots of itneresting concepts in there Mar 04 05:11:03 scala :> Mar 04 05:11:09 lolno Mar 04 05:11:15 Nah Scala is the past Mar 04 05:11:26 nope Mar 04 05:13:46 "I think you really want one of the many "better Java" languages: Ceylon, Kotlin, Xtend, Fantom. I'll stick with Scala because it pushes me to learn genuinely new things instead of doing old things slightly better." Mar 04 05:13:52 sums it up pretty well Mar 04 05:14:16 I like reading about Scala to push my boundaries. It's just not suitable to be productive. Mar 04 05:14:20 Two different things Mar 04 05:14:24 I have the same feeling toward Ceylon Mar 04 05:15:13 Is there anything more in depth for learning android than the official getting started tutorials? Mar 04 05:15:23 *learning android dev Mar 04 05:15:32 belak there are some udacity courses Mar 04 05:16:36 Maybe not that in depth Mar 04 05:16:39 CedricBeust: everyone thinnk that kotlin is some kind of 'silver bullet' and write the same code as they do in java Mar 04 05:16:53 Nobody thinks a language is a silver bullet Mar 04 05:17:03 so they have the same kind of spaghetti with less strokes Mar 04 05:17:08 Lot of people jump on Kotlin because it fixes most of the complaints they have about Java but nothing more. Simple as that. Mar 04 05:17:23 yeah, I wish you were right ;) Mar 04 05:17:41 I guess, recommended books? Or would you really just recommend going through the official tutorial? Mar 04 05:18:48 I've been studying programming languages for more than 30 years, I think I have a pretty good sense of what makes or breaks a language but ultimately, if you're happy using a language, good for you, keep using it Mar 04 05:20:13 CedricBeust: I'm not saying that you dont have good sense Mar 04 05:20:45 I'm just telling you what I think after last conference ;) Mar 04 05:21:25 Conferences have zero indicative power. Selection bias, etc... There are regular COBOL and Lisp conferences. Doesn't mean a thing. Mar 04 05:22:29 marketing does Mar 04 05:22:42 I'm not forcing anyone to use anything Mar 04 05:22:57 dont have power, and will to do so ;) Mar 04 05:23:10 I mean even Typesafe is moving away from Scala, surely that should give people pause, even the most ardent fanatics Mar 04 05:23:45 they are not moving away Mar 04 05:24:05 Their latest new product is Java only Mar 04 05:24:23 for now Mar 04 05:24:33 and what about other products ? Mar 04 05:24:45 akka is doing pretty well Mar 04 05:25:33 There's only so much I can do to fight the delusion. Like I said, enjoy your language, I have no dog in this race. Mar 04 05:26:37 basically, kotlin is svn Mar 04 05:28:10 good for the people who want a better cvs Mar 04 05:29:13 So which language is git :) Mar 04 05:31:25 we wont believe even if we tell you ;) Mar 04 05:32:18 Probably doesn't exist yet Mar 04 05:34:21 jSwift :) Mar 04 05:34:25 * g00s ducks Mar 04 05:36:31 so um, is google planning on putting the newer support lib javadoc on d.android.com :P Mar 04 05:36:53 such a uncoordinated company Mar 04 05:37:06 *agile* Mar 04 05:41:42 CedricBeust have you used AOP on android ? Mar 04 05:41:51 No Mar 04 05:44:56 Interesting fact connecting AOP and Typesafe: a long time ago, I liked AOP a lot and I liked one of its frameworks even more. I wrote a few posts about it. That framework was Aspectwerkz and it was written by.. .Jonas Boner, CTO of Typesafe. I ended up getting him hired to BEA. Mar 04 05:46:13 CedricBeust can AOP solve any practical problems on android, or is it better suited for jse/jee Mar 04 05:46:29 I don't think it's suited to anything any more Mar 04 05:46:31 its been a long time since i looked at aspectJ Mar 04 05:46:40 interesting Mar 04 05:47:30 i remember grady booch saying something like, the AOP community was focusing too much on syntax and not enough on how to apply AOP at the architectureal level Mar 04 05:47:38 or something like that, like they were caught in the weeds Mar 04 05:58:44 oh wow, navigation drawer got addDrawerListener , setDrawerListener is deprecated Mar 04 05:59:06 this is one of those areas, the API / framework guys should settle on some consistency ... Mar 04 05:59:15 make all the things that take listeners, take multiple ones Mar 04 05:59:41 some things take 1, some things take many, very inconsistent Mar 04 06:00:47 in practical terms, what this means now, is that a fragment can listen to the drawer too, in addition to the activity - so now i don't have to forward the event on Mar 04 06:03:36 omg bernie is doing town hall on fox Mar 04 06:30:56 who wants to abolish the fragment in favor a something extensible from you but with tighter interface to activities and other such widget hosts Mar 04 06:31:35 Not easy to come up with something better Mar 04 06:32:39 it seems there should be something though, maybe not easier to build but to use Mar 04 06:32:56 could someone explain the concept of closure, using an example from android ? Mar 04 06:35:27 can a deque be double transvered? Mar 04 06:38:09 CedricBeust, if the rxJava bindings could become more intrisnic to the Android SDK API calls, would it concievable Android would absorb rx into it's code base? Mar 04 06:38:28 (or is that whats becoming koitlin?) Mar 04 06:40:57 The Android team (and Google in general) doesn't have a good track record using, let alone adopting, external stuff Mar 04 06:41:33 What kind of (or are there many used) of tree searching algorithms does the measure / and layout pass(es) use? Mar 04 06:41:58 breadth first? Mar 04 06:43:37 hmp this is curious http://11011110.livejournal.com/279880.html Mar 04 06:45:46 freenode ain't a school, right? Mar 04 06:46:50 as leisure emplyed in learning ithink it could qualify Mar 04 07:02:06 dun dun dun! Mar 04 07:07:17 what aspect of fragments give them their unique or indispensable qualities? Mar 04 07:08:26 they are transistionable view hosts, they have accessible contiguity, and they can run invisibly, what else? Mar 04 07:25:34 these BLU pure XL phones look good http://www.amazon.com/dp/B01612PVV8 Mar 04 08:03:13 I have the following code http://pastie.org/private/7ryjt3yaffzcpfkjoclqnq and get this Exception http://pastie.org/private/teemhgpr6m0dpgos8aezdg I thought the cause could be that the Fragment has a reference to the destroyed Activity, however, the Fragment was just created, since it was null before. Any ideas why this Exception could be happening or how to Mar 04 08:03:13 fix it? Mar 04 08:04:59 maybe post the whole class Mar 04 08:06:31 because the problem lies not in myFragment Mar 04 08:16:32 http://pastie.org/private/ge4ofxe1lcqpa00fg4qryw Mar 04 08:41:36 hi everyone! Mar 04 08:43:05 I have a SurfaceView inside a fragment. When I hide this fragment, I can notice a black rectangle blinking for less than 1s, due to the SurfaceView. Any idea how I can fix this issue? I already tried many things found on stackoverflow without success. Mar 04 08:44:18 try to destroy your surfaceview before hiding the fragment maybe Mar 04 08:44:36 surfaceview is a very special view drilling a hole to bypass views hierarchy & stuff Mar 04 08:45:35 maybe try setZOrderOnTop to see if it helps but i doubt it Mar 04 08:48:54 I will try that, thx for your reply! Mar 04 08:51:44 hey,im trying to find scrollview is scrollable but the result always false,i tried viewtreeobserver and some another ways. any help would be great. Mar 04 08:54:08 shibakaneki, i think the way to do it is add a 0x0px surfaceview near the root of your view Mar 04 08:54:24 lasserix, I tried that without success Mar 04 08:55:01 sci-fic, getScrollAmount compared to right/left/top/bottom? Mar 04 08:55:12 people say to put this 0x0px SurfaceView in the Activity that contains the fragment container Mar 04 08:57:14 let me try Mar 04 08:58:59 I will try to destroy the view or to resize it to 0x0px before switching to the other fragment, as a workaround Mar 04 09:04:14 did you try this? Mar 04 09:04:15 http://stackoverflow.com/a/12636285/3865761 Mar 04 09:04:22 key is in activity root, not fragment Mar 04 09:05:23 I did Mar 04 09:21:08 lasserix, the solution of stackoverflow that you point on is fixing a flicker happening when the fragment appears Mar 04 09:21:39 but there is another flicker happening when the fragment containing the SurfaceView disappear Mar 04 09:21:48 this second flicker is more tricky Mar 04 09:22:41 changing the visibility of the SurfaceView to GONE creates this flicker ( I try to hide the surfaceview before leaving the fragment ), so it is not a solution neither Mar 04 09:39:43 lasserix: i did something, it works but im not sure it is ok http://paste.ubuntu.com/15279523/ :D Mar 04 09:41:21 on my side I just found a workaround to my issue, not really happy as it is a bit a hack but at least it works Mar 04 09:45:02 what's your workaround shibakaneki? Mar 04 09:46:44 I put a View on top of the surface view just before hiding the fragment, in order to hide the flicker Mar 04 09:47:01 It's dirty, I know, but I didn't find another solution Mar 04 09:50:53 but at least it's working like a charm Mar 04 09:53:08 Hi. I'd still like a response to http://stackoverflow.com/questions/35747852/result-not-returned-across-apps-if-background-instance-exists ;) Mar 04 10:10:30 Hello guys, I want to post data from a webview. But before I concatenate key/value and code it to BASE64 to build, I was wondering if there is a smart builtin/smart function to do that for us. Mar 04 10:17:35 hithere Mar 04 10:26:14 bolovanos, hi :) I want to use EncodingUtils, AndroidStudio doesn't recognise the class. But it also seems to be deprecated. What alternatives do we have? Mar 04 11:26:54 I am writing an application which allows people to chat with other people connected to the same network without the need of a server (P2P). I looked into the client server model and am not able to fathom a way of doing this. Will all devices have to be a server and a client? Mar 04 11:28:11 yes that is what p2p means Mar 04 11:31:13 squ: So how do I go about doing that? Do I start the server and client on different threads in the chat activity? Mar 04 11:32:08 Or could you point me to some tutorial with a similar aim? Mar 04 11:32:47 I have searched and searched but have only found tutorials which make different applications for the server and the client Mar 04 11:35:39 haven't done this for android, unfortunately can't help you Mar 04 11:57:13 JakeWharton: Short question, can I use Retrofit with any JVM language – say, Groovy on Grails - just normally? Mar 04 12:03:04 according to google Mar 04 12:03:07 If you have a device running Android 4.4 Kitkat or above, use the adb shell command screenrecord to capture video directly from your device Mar 04 12:03:48 my device is below 4.4 Mar 04 12:03:59 what is the best (native) way to achieve the same? Mar 04 12:14:41 hi Mar 04 12:14:46 i need help Mar 04 12:31:04 Hey guys... If I use this code -> http://pastebin.com/VH3GNPiX it does what I want it to do which is to open the default EMAIL client with my Email address.. Problem is anything after the " @ " sign is gone including the @ sign Mar 04 12:37:38 Hey guys... If I use this code -> http://pastebin.com/VH3GNPiX it does what I want it to do which is to open the default EMAIL client with my Email address.. Problem is anything after the " @ " sign is gone including the @ sign Mar 04 12:39:58 hey, can someone look at http://stackoverflow.com/questions/35409222/gson-nested-deserialization-doesnt-work ? I'm trying to deserialize inner generic type with gson, however it's not working. Mar 04 12:43:51 is it me or was drawable tinting broken in some versions? Mar 04 12:46:43 how can i do accepting cookie for webview? Mar 04 12:47:08 I set android:indeterminateTint="#f00" on a progress bar and on nexus5 (android 6.0.1) it's red as expected, on xperia z5 compact (android 5.1.1), on sgs4 (5.0.1) it's blueish green... Mar 04 12:55:48 hey, can someone look at http://stackoverflow.com/questions/35409222/gson-nested-deserialization-doesnt-work ? I'm trying to deserialize inner generic type with gson, however it's not working. Mar 04 13:05:15 Heya. I just noticed that my ANDROID_HOME variable is empty but that seems to have caused no problems at all. I'm also having trouble finding any info about ANDROID_HOME on d.android.com, is that env variable still a thing? Mar 04 13:06:10 Is that variable only used to add the tools to your path or does it have other uses? Mar 04 13:35:23 Hello everyone! does someone had implemented andftp on your app? i cant figure out how i start the ativity from intent. http://www.lysesoft.com/products/andftp/intent.html Mar 04 13:35:35 i want to start it from service Mar 04 13:35:54 does someone has any cue for this? Mar 04 13:36:20 i've got andftp installed on my android already Mar 04 13:37:54 what's the problem Mar 04 13:39:48 Hi Zharf Mar 04 13:39:50 the problem is i dont know how i should do this to call it from a background service Mar 04 13:43:28 error: method startActivityForResult in class ActivityCompat cannot be applied to given types; Mar 04 13:43:28 startActivityForResult(intent, DOWNLOAD_FILES_REQUEST); Mar 04 13:43:28 ^ Mar 04 13:43:28 required: Activity,Intent,int,Bundle Mar 04 13:45:46 Anyone familiar with too fast ViewPropertyAnimations inside suppor.design CoordinatorLayout? Mar 04 13:46:12 Despite >300 ms durations the animations seem to finish in around 20ms. Mar 04 13:49:33 Hi there, does someone uses GoogleMap ? Mar 04 13:50:36 I'm looking for an object that has the camera zoom and the bound. Right now I just found the bound on Projection and the zoom on CameraPosition Mar 04 13:50:40 how do i add to my service a way to download a ftp folder to my sd card? Mar 04 13:50:54 what is the most simple way? Mar 04 13:53:21 user__, if I really had to use ftp, Iwould probably find some library to do it for me, but really if there's any way of avoiding ftp, go for that instead :p Mar 04 13:53:38 user__, I don't think you can start an activity for result from a service though Mar 04 13:55:01 Zharf, want im trying to accomplish with my service is scan for wifi networks and if a specific ssid hardcoded is in range, connect to it and then make a download with ftp Mar 04 13:55:05 the first part is done Mar 04 13:56:38 if you don't want to do anything after the download is done, andftp would probably work if you just didn't use startActivityForResult, instead use startActivity... also when starting from a service you'll need Intent.FLAG_ACTIVITY_NEW_TASK in the internet Mar 04 13:56:42 ... Mar 04 13:56:44 intent, not internet... Mar 04 13:56:48 silly fingers Mar 04 13:57:41 otherwise, you'll need to implement the ftp part yourself, probably using some library that already implements the protocol Mar 04 13:57:41 Zharf, you mean here? Intent intent = new Intent(); Mar 04 13:58:01 Zharf, also, do i need to add something to manifest? Mar 04 13:58:27 to start an activity from a different application? no Mar 04 14:02:37 maybe its better to use a lib Mar 04 14:02:43 Zharf, dont you think? Mar 04 14:02:50 I do Mar 04 14:03:07 do you know something about this? any good lib? Mar 04 14:04:22 apache commons has an ftp library... never used it (or any other ftp library since like late 90s...) Mar 04 14:12:47 Zharf, i want to transfer files from one smartphone to all connected to the network so i think its the best way to do it Mar 04 14:13:21 install a ftp server on my hotspot android Mar 04 14:13:24 ftp is a terrible piece of history :p Mar 04 14:14:04 it wold be cool if i could use a solution like P2P Mar 04 14:18:23 Shadow gradients look so ugly below white/gray =/ Mar 04 14:29:57 What do you think is better. make a method that returns the asyncTask, for example a getRequestDataAndPresent().doInBackground(mapBoundZoom); , create a attribute AsyncTask requestDataAndPresentTask = new AsyncTask {....} or create a inner class: Class RequestDataAndPresent extends AsyncTask<>() {...} than using as new RequestDataAndPresent().doInBackground(...); ? What do you think is better in code clean and performa Mar 04 14:29:57 nce ? Mar 04 14:32:12 don't use an inner class is a good guideline for avoiding activity leaks Mar 04 14:33:39 missingno: Never thought about it before. Do you know to explain why or some material (webpage) that explains ? Mar 04 14:36:22 not using asynctasks is a better way of avoiding activity leaks ;) Mar 04 14:36:45 (also if you have inner classes, make them static) Mar 04 14:40:26 I'm designing this Layer class. By doubt is about the plotLayer method. Should I keep the AsyncTask inline just as it's, or refactor it in some of the ways that I explained before ? Mar 04 14:40:37 Sorry, forgot the link https://gist.github.com/wviana/dc6cecc74d4b8e08cee3 Mar 04 15:01:55 So, not using inner class ok. And by using as field/attribute I'll depend from GoogleMap instance, that won't be there when layer is created. Mar 04 15:02:42 I'm thinking or keep as it is with the anonymous inner class, or to create a method that returns the AsynkTask instance. Mar 04 15:18:39 How can I make an Exception copy its contents into a string? Mar 04 15:19:20 String s = e; as I recall. It's real simple. Mar 04 15:19:47 dragorn: Really? hmm I do not think its that simple though ? Mar 04 15:19:56 neither do I Mar 04 15:20:23 try e.toString() Mar 04 15:20:28 and see what info is missing Mar 04 15:20:32 missingno: Gives me the address Mar 04 15:20:48 iirc stack trace info is usually difficult to get Mar 04 15:21:03 why do you want to do this? Mar 04 15:21:15 why not Log.e Mar 04 15:21:23 or anything else that does this hard work for you Mar 04 15:21:33 you should be able to toString them if the exception was implemented properly, yeah. Mar 04 15:21:34 (also see e.getMessage()) Mar 04 15:22:11 yeah Throwable#toString() already does getMessage() Mar 04 15:54:07 it's 2016 Mar 04 15:54:24 why do we still need to exclude LICENSE.txt in packagingOptions Mar 04 15:54:46 does replacing a fragment in a container not clear my backstack? Mar 04 15:54:50 if not: why not? Mar 04 15:55:15 and if I dont add that fragment to backstack why is it removed on pressing back Mar 04 15:55:20 this is some seriously funky stuff Mar 04 16:10:29 jvrodrigues: welcome to fragments Mar 04 16:11:12 Napalm! How are you man? Mar 04 16:11:23 ok thanks Mar 04 16:11:28 long week Mar 04 16:11:38 hows you buddy? Mar 04 16:12:10 pretty good, fairly well installed in germany at this point. coding my days away Mar 04 16:15:49 What is the system variable name for controlling the settings full screen mode? Mar 04 16:42:09 does someone has used apache common net (Ftp) ? Mar 04 16:44:30 android ftp apache connect failed: ENETUNREACH (Network is unreachable) Mar 04 16:45:22 hey all Mar 04 16:45:27 which SDK should i chose: http://i.imgur.com/CFnIMOi.png Mar 04 16:50:07 django_: If it asks for SDK you want to pick the Android one. If it asks for JDK you want to pick the java one. Mar 04 16:50:25 Do you use IRC on computer or does someone use it on mobile ? Mar 04 16:52:02 IRC on mobile is a pain Mar 04 16:57:55 irc on mobile is how I do 90% of my irc Mar 04 16:58:20 pfn: Really ? Which app do u use ? Mar 04 16:58:51 pfn: So this is why you're always on Mar 04 16:58:55 probably his own one Mar 04 16:59:16 wviana no, I'm always on because I use a bnc Mar 04 16:59:24 or a bouncer Mar 04 16:59:27 heh, that. Mar 04 16:59:29 * lut4rp uses znc Mar 04 16:59:31 bnc ? Mar 04 16:59:41 use the google Mar 04 17:00:25 i dont use irc Mar 04 17:00:34 just session on vps ;) Mar 04 17:00:43 and run weechat in tmux Mar 04 17:02:36 I have a hard enough time typing on a regular keyboard, let alone a mobile one. ha. I must just be derpy Mar 04 17:03:11 please star https://code.google.com/p/android/issues/detail?id=202485 Mar 04 17:03:16 I use voice recognition a lot Mar 04 17:03:19 (docs on 23.2 not upaded) Mar 04 17:04:15 pfn, huh. not a bad idea Mar 04 17:11:29 good thing intellij has such a great decompiler heh Mar 04 17:12:16 I want to make sure that my app’s videos still play sound when the app is in the background. I’m finding resources for this very scarce. I understand I need to split audio and video with the MediaPlayer and use a service, but I really am having trouble figuring out the right approach. Mar 04 17:12:52 Does anybody know where I should look for guidance/tutorial/help? Mar 04 17:13:37 Unsure how you'd do that with MediaPlayer but if you want to use something else, using gstreamer might help Mar 04 17:14:02 what? Mar 04 17:14:15 where did you pull that gstreamer bs from? :P Mar 04 17:14:36 ghostmoth, http://www.androidhive.info/2012/03/android-building-audio-player-tutorial/ Mar 04 17:15:00 ghostmoth, essentially you'll have to start a (preferrably) foreground service that will use mediaplayer (or other sound APIs) to play Mar 04 17:15:36 I have a friend who does some very funky stuff with gstreamer on android devices. I'm not sure, that's why the "might help" :) Mar 04 17:17:33 Yeah it would be a foreground service so the user has controls Mar 04 17:18:03 Mavrik I’ve sseen this tutorial, haven’t read all the way through though because it doesn’t address video Mar 04 17:18:15 It could probably get me started anyway Mar 04 17:22:55 is incremental dexing on be default? Mar 04 17:23:03 yes Mar 04 17:29:19 ghostmoth, ah, I overlooked the video part Mar 04 17:29:35 I very much doubt your issue is something you'll find a one click tutorial for. Mar 04 17:29:49 I know how to use the mediaplayer, but not how to split video and audio on a service and UI thread Mar 04 17:30:41 Mavrik: I’ve learned how to start and manage services, but now I’m trying to figure out how to make that split. Seems just starting a video URI in the service doesn’t do anything Mar 04 17:31:18 hmm I will explicitly enable it since gradle plugin 2.0.0 disables it for some reason Mar 04 17:31:25 it being incremental dexing Mar 04 17:32:03 incremental dexing doesn't work with multidex Mar 04 17:32:23 and doesn't work with instant run Mar 04 17:49:59 instant run [*] Mar 04 17:50:22 heh Mar 04 17:50:36 so wait does incremental work with api21+ multidex? Mar 04 17:50:41 no Mar 04 17:50:48 aww man Mar 04 17:51:03 doesn't really matter Mar 04 17:51:22 because every library is an individual dex, it makes no difference Mar 04 17:51:27 there's nothing really to incremental Mar 04 17:52:06 pfn: i have it working Mar 04 17:52:12 I will settle for preDexLibraries on api21+ Mar 04 17:52:17 oh? Mar 04 17:52:24 Napalm, maybe, but it makes no difference in build speed Mar 04 17:52:59 Studio 1.5.1, Plugin 1.5.0 Mar 04 17:53:09 seems to make a difference in build speed Mar 04 17:53:39 dexOptions { incremental true; preDexLibraries false } Mar 04 17:54:07 and that's with multidex on? incremental is ignored when multidex is turned on Mar 04 17:54:09 yes Mar 04 17:54:22 it does make a difference Mar 04 17:54:23 http://stackoverflow.com/questions/32755001/incremental-is-not-supported-with-multi-dex Mar 04 17:54:27 unless they recently fixed it Mar 04 17:54:28 but that might be other optinos Mar 04 17:54:35 plus they released 1.0.1 of multidex Mar 04 17:54:52 i'll disable it and see Mar 04 17:55:38 build-tools\23.0.2> dx --dex --incremental --multi-dex jack.jar Mar 04 17:55:38 --incremental is not supported with --multi-dex Mar 04 17:55:59 i dont get an error when using the options in android studio Mar 04 17:56:07 let me disable it and try things out Mar 04 17:56:10 gradle plugin will prevent both being set Mar 04 17:56:22 yea, no change Mar 04 17:56:28 its siliently ignores them Mar 04 17:57:02 yep Mar 04 17:58:09 weaksauce Mar 04 17:58:27 it doesn't really matter Mar 04 17:58:54 with multidex, the dex files are so small that the incremental algorithm takes more time than you would save from being incremental Mar 04 18:01:56 support multidex is a different story, but enabling incremental on that doesn't work due to the nature of the problem Mar 04 18:06:14 is it correct that android NDK 21 removed this call? error: undefined reference to '__srget' Mar 04 18:22:41 how would you guys go about making something like the microsoft next lockscreen? Mar 04 18:23:57 they seem to have gotten past most of the issues a lot of lockscreens Mar 04 18:29:05 Hey, I am getting some ARNs from my android app. But I don't know how to read and analyse the "error log" Mar 04 18:35:11 well, first step to getting help would be to post it somewhere and link it here Mar 04 18:37:23 s73v3r: No problem: http://pastebin.com/LQ7rz6g6 Mar 04 18:37:41 this is the full logcat dump? Mar 04 18:38:42 Its the content from Google Play Developer Console (ANR report) Mar 04 18:40:59 ok, it looks like there are multiple apps included in this. Which app id is yours? Mar 04 18:44:54 s73v3r: de.madebym.cvjmkreisverbandluebbeckeev is the package. Or what do you mean? Mar 04 18:45:10 that’s what i meant Mar 04 18:45:15 couldn’t think of the term Mar 04 18:51:19 unfortunately there’s nothing that shouts out at me, there Mar 04 18:51:40 it’s likely there was something taking too long on the main thread Mar 04 18:52:11 that was blocking the main thread from responding to other messages, causing the ANR Mar 04 18:52:40 de.madebym.cvjmkreisverbandluebbeckeev Mar 04 18:52:44 seriously, that's your package name? Mar 04 18:53:02 it’s german. crazy names Mar 04 18:53:21 yes and yes :D Mar 04 18:53:40 CVJM is the german version of YMCA Mar 04 18:53:46 ahh Mar 04 18:53:54 still have to lol at the fucking package name Mar 04 18:54:04 and luebbecke is a city in germany :D Mar 04 18:54:38 you know your package name doesn’t have to exactly match your app name, right? :p Mar 04 18:54:55 Yes, I know, but I like it :D Mar 04 18:55:29 looks like a system anr Mar 04 18:56:12 pfn: I get it from several devices and I can reproduce it in the android studio emulator Mar 04 18:56:14 has this happened a lot? Mar 04 18:56:21 then pull another anr trace Mar 04 18:56:26 because that trace is worthless Mar 04 18:56:50 there's no anr in that trace Mar 04 18:57:12 can someone help me understand what is the prebuilt folder within the ndk? Mar 04 18:57:25 pfn: Here http://pastebin.com/H3TB8YUJ Mar 04 18:58:02 still nothing useful Mar 04 18:58:20 unless you're spamming the handler Mar 04 18:58:26 there's nothing of interest in the trace Mar 04 18:58:33 you might want to look at logcat around the time where the ANR is happening, to get an idea of what the app is doing Mar 04 18:59:36 s73v3r: 03-04 17:39:13.731 10221-10425/de.madebym.cvjmkreisverbandluebbeckeev D/CACHE_HANDLER: Searching for image ac7e8b471eb82b86f598ee55986fc703 03-04 17:39:32.841 10221-10227/de.madebym.cvjmkreisverbandluebbeckeev I/art: Wrote stack traces to '/data/anr/traces.txt' Mar 04 18:59:51 i mean logcat from your app Mar 04 18:59:58 what your log statements say the app is doing Mar 04 19:00:26 Ouh, ok. You mean Log.d(..) for example? Mar 04 19:03:19 yeah Mar 04 19:03:31 that should point you to where in your app it’s happening Mar 04 19:03:46 ok, thanks, I try adding some loggin Mar 04 19:03:51 *logging Mar 04 19:04:58 you didn’t have it before? Mar 04 19:05:10 Just a little bit Mar 04 19:07:10 Would anyone know how to force Android SDK to refresh and update the device designs that appear in the layout editor? Mar 04 19:23:09 Change anything in the XML Mar 04 19:23:17 And it rerenders Mar 04 19:48:30 they automatically appear in the layout editor Mar 04 19:48:35 layout editor is also most useless thing ever Mar 04 19:49:04 they really need to go back and fix that Mar 04 19:49:16 should just remove it Mar 04 19:49:25 when their own support libraries can easily break it, you know they have a problem Mar 04 19:49:45 they still need something like it, a way to preview the result of the layout files Mar 04 19:54:30 instant run takes care of that Mar 04 19:57:03 [un]instant run, i ended up disabling like many Mar 04 19:58:38 I've got a hopefully quick question, but first, is this the appropriate place to ask about Android Studio? Mar 04 19:58:58 yes [solved] Mar 04 19:59:53 instant run isn’t a solution for that Mar 04 20:00:05 I don’t have every form factor, and every language set up on my desk Mar 04 20:04:55 I'm trying to import the google java style guide (intellij-java-google-style.xml) to a project in Android Studio 1.5 by coping into the codestyles folder, but it doesn't appear to be affecting the indent settings in Android studio's preferences Mar 04 20:05:21 Are there any other places that Android Studio looks for style settings on osx? Mar 04 20:05:45 style settings? Mar 04 20:06:15 so Mar 04 20:06:18 pfn++ Mar 04 20:06:25 I hate the layout editor Mar 04 20:06:35 I never used it Mar 04 20:06:50 (I mean I tried it but meh) Mar 04 20:06:54 Ashiren: things like code indent sizes, spaces between brackets, etc Mar 04 20:06:58 onAttach(Activity) is deprecated, but is it still okay to attempt to cast the context in onActivity(Context) to a fragment listener ? Is it ever possible for context to be something else? Do I even need to care? Mar 04 20:08:17 cdarling: on linux it would be ~/.AndroidStudio/config Mar 04 20:08:32 Can anybody help me get my application compiling? I am getting "/path/to/java" finished with non-zero exit value 1 and I dont' know why. I've tried several different things online, such as multidex support (which creates a lot of duplicate packages errors) Mar 04 20:09:00 cdarling: https://www.jetbrains.com/idea/help/project-and-ide-settings.html IntellijIdea -> AndroidStudio Mar 04 20:10:26 The error is in the stage: app:transformClassesWithDexForDebug Mar 04 20:10:32 Ashiren: Yeah, I'm able to drop the google style guide into the config folder under codestyles, and it appears in the editor, but it doesn't seem to actually effect any of the settings within Intellij/Android Studio's preferences Mar 04 20:12:18 When running Espress/AndroidInstrumentation tests, is there a way to clear the memory between each one? It seems that when we run the full test suite, it craps out towards the end with OOM ?? Mar 04 20:33:57 fix your memory leaks Mar 04 20:35:12 take some lecithin Mar 04 20:38:34 "Fastboot Gains Networking Capabilities, Wireless Flashing Isn't Far Off" Mar 04 20:50:17 lol, pfn, that what I was about to type. Found it, someone start up google services for location with a reference to the activity and did not close it Mar 04 20:50:20 off with their head Mar 04 20:50:21 thank you Mar 04 20:58:17 gah, after i get this user story done i need to refactor everything to organize by feature rather than layer ... can't find damn thing any more Mar 04 20:58:51 just wish i could bundle resources by feature too, because thats a mess also Mar 04 21:11:59 hi! running android 5.1.1 on a galaxy W, didn't have a smartphone for a while. tried to install an old modification to an open source app I wrote. (disclaimer: I know nothing about development and my attempts at ad-libbing Java weren't more than guesswork.) this app interacts with another one from the original dev and it needs permission to access it. as it appears, my modified app is prohibited from doing so due to mismatched certs since lollipop, so Mar 04 21:11:59 I get INSTALL_FAILED_DUPLICATE_PERMISSION when installing with adb. is there some way to force the system to ignore the cert? Mar 04 21:13:00 Are there any recommended books for learning android? Mar 04 21:13:10 Any resources other than the official tutorial Mar 04 21:13:17 belak big nerd ranch is good Mar 04 21:13:20 Hi, can someone please tell me what advantages i have if my app has root? Mar 04 21:13:28 is the app using the custom permissions in the Mar 04 21:13:32 AndroidManifest.xmk Mar 04 21:13:33 xml Mar 04 21:14:23 so I am making a library that shows a list of files. I would like the user to be able to customize click action based on file type by setting a callback map when setting up the list. My library launches a brand new Activity... is there any way to pass the Callback actions to this new Activity instead of using like a global singleton map? Mar 04 21:14:30 hello Mar 04 21:14:30 Ashiren, yes Mar 04 21:15:25 Hi all. any suggestions on how to get a ppp connection as a "system connection" on android? Mar 04 21:15:35 It looks like I might have to make changes to the RIL to do this correctly. Mar 04 21:16:06 pikaro: you could remove the (not but app might stop working the some points Mar 04 21:16:38 and i go to sleep :v Mar 04 21:17:22 Ashiren, well, but then I wouldn't have access any more would I? accessing those permissions is pretty much the only things it does, it's a mod to OpenTask which pulls its tasks from CalDAVSync's task storage Mar 04 21:18:35 Ashiren, alright, gn8 Mar 04 21:33:38 Hi all Mar 04 21:35:01 new android developer policies seems to ban donations. is that true? Mar 04 21:35:21 tostis afaik donations only for 501(c) Mar 04 21:35:37 so if you are a registered nonprofit Mar 04 21:39:01 oh is that so? Mar 04 21:39:02 i haven't seen anything new - and thats the way its been since GMS got donations Mar 04 21:39:10 before GMS donations were banned Mar 04 21:39:21 i was thinking to accept donations for my app Mar 04 21:39:27 but I don't want to force people to buy it Mar 04 21:39:35 haha, don't think so Mar 04 21:39:50 grekkos, so? then just add an IAP where people can buy and give you money Mar 04 21:40:00 good point Mar 04 21:40:04 sorry g00s, i can't understand Mar 04 21:40:06 I was thinking that as well Mar 04 21:40:25 can IAPs be for a variable amount ? Mar 04 21:40:36 or is their price set in developer console Mar 04 21:40:36 i can make more than one Mar 04 21:40:43 it's set in console afaik Mar 04 21:40:47 last time I did it Mar 04 21:41:39 can an app expose a donation link or in app billing? Mar 04 21:50:54 is there a way to accept donations for an app? Mar 04 21:54:55 tostis was already explained, what is confusing ? Mar 04 21:55:33 maybe i was disconnected in the meantime Mar 04 21:55:36 sorry Mar 04 21:56:01 tostis are you a registered nonprofit ? Mar 04 21:56:10 no Mar 04 21:57:03 then you can't use GMS Google Wallet "Donate with google" button. You can try in app purchase for some amount Mar 04 21:57:23 grekkos: Don’t be ashamed to charge money for your hard work Mar 04 21:57:27 so in app purchase is legit? Mar 04 21:58:19 i read "Here are some examples of products not currently supported by Google Play In-app Billing: One time-payments, including peer-to-peer payments, online auctions, and donations" Mar 04 21:58:20 if it’s just for the purpose of donation? I don’t think so. I think you have to actually receive something for it Mar 04 21:59:14 yeah i'd go with the pessimistic interpretation Mar 04 21:59:24 on the other hand it couldn't hurt to give them something for donating Mar 04 21:59:27 "donating" Mar 04 21:59:52 ok, then i'll give some premium feature in return Mar 04 22:00:02 you could put ads in the app and then use an IAP to remove them Mar 04 22:01:14 i see Mar 04 22:01:25 yeah I might consider doing that too Mar 04 22:01:44 thoughts? http://kopy.io/ZrfxJ or am I coo coo in the brains Mar 04 22:08:59 been a while since new GMS, maybe Magnus is on vacation Mar 04 22:09:45 Magnus got a prescription for medical marijuana, so he’s been markedly more chill and low key Mar 04 22:14:59 it should go without saying that nothing in that statement was true, and I wish no disrespect toward Magnus or the enthusiasm he shows in his developer advocacy position Mar 04 22:20:00 shall I conclude I am cuckoo in the brains then? ^ Mar 04 22:20:03 :P Mar 04 22:20:33 i started reading it, but stopped after the first couple of lines Mar 04 22:20:43 i didn’t feel like reading the whole thing, sorry Mar 04 22:21:30 gah i should have shortened it... it's really all about the 1st 9 lines (or less) Mar 04 22:21:50 just distill it down to a couple sentences Mar 04 22:22:24 lines 26-28 then Mar 04 22:22:30 I think this is what the world is missing: Mar 04 22:22:36 1) a widget/service/ongoing button somewhere that can listen to voice commands always within 2 taps or less Mar 04 22:22:46 2) a framework/API where apps can integrate with this voice command service and Mar 04 22:22:46 perform tasks upon hearing documented (and even customized) commands Mar 04 22:23:08 it’d have to be built into the OS Mar 04 22:23:22 and it kinda is: Google Now Mar 04 22:23:31 well, i cant interface with google now Mar 04 22:23:32 can i? Mar 04 22:23:39 there are ways Mar 04 22:23:42 really Mar 04 22:24:00 i’m not sure it works exactly as you’d like it, but I think you can Mar 04 22:24:15 can google now exist on lock screen? Mar 04 22:24:22 i don’t think so Mar 04 22:24:26 drat... Mar 04 22:24:41 i don’t think many things can without rooting Mar 04 22:24:58 what about triggering speech recognition from a button in a persistent notification, which it seems does show even on lock screen Mar 04 22:25:32 that might work Mar 04 22:25:39 interesting Mar 04 22:26:01 try it Mar 04 22:26:01 hello guys ! I would like to know if it's possible to move the camera with the android YouTubePlayer API when playing a 360 videos ? Mar 04 22:26:17 so now we just need apps to implement intent receivers from custom voice commands Mar 04 22:26:35 that’s the bigger problem Mar 04 22:26:57 maybe if someone makes a compelling framework, it'll catch on?... Mar 04 22:27:15 anyone solve the tinting a vector drawable for a selector problem without including a ton of different vector drawables just to change colors? Mar 04 22:27:53 regedit: probably not. either every app would have to have it built in, or you’d have the problem where it’s not always available Mar 04 22:28:17 and then say I’ve got two or three apps with the framework: Do they all have separate notifications? Mar 04 22:28:48 herriojr did you look at how NavigationView does it ? Mar 04 22:29:01 s73v3r: no there should be 1 central command listening interface/button, and from there it can reach any app implementing custom commands Mar 04 22:29:10 g00s: no, I haven't, I didn't even think of that Mar 04 22:29:26 i was just looking at the method last night Mar 04 22:29:34 so that would be it’s own app, which I, as an app developer, couldn’t guarantee was there Mar 04 22:29:34 and i though, who was asking about this ... Mar 04 22:30:05 s73v3r: right, good point... so your app would only be usable in the traditional interactive manner, not with voice commands Mar 04 22:30:16 g00s: it's kind of a pain in the ass, I literally just want to use the same vector drawable but tinted for each item in the selector Mar 04 22:30:34 s73v3r: those who want voice commands would need to install that voice commanding central "driver" Mar 04 22:30:48 it’s not a bad idea, it’s just that, unless the platform itself provides it, it’s not going to see much traction Mar 04 22:31:07 and if you do get somewhat popular, you always have the risk of the platform sherlocking you Mar 04 22:31:07 s73v3r: unless maybe google now can be it?.. Mar 04 22:31:15 sherlocking? Mar 04 22:32:11 http://www.urbandictionary.com/define.php?term=sherlocked i see Mar 04 22:32:17 back a while ago, someone made a search bar or something like it for OS X. after a couple of years, Apple came out with their own version that was baked into the OS Mar 04 22:32:39 yeah you don't want your app to be a missing feature Mar 04 22:32:50 Apple’s not the only one who does it, but they seem to be the most visible at it Mar 04 22:33:17 so i'll patent it :trollface: Mar 04 22:33:39 if anything, the process of translating voice commands into actions is already patented Mar 04 22:34:22 whoops gotta run, interesting chat, will be back to necromance the conversation another time :D Mar 04 22:34:27 k Mar 04 22:34:36 thanks for thoughts/input! Mar 04 22:34:46 i think dragon had that for like 15 years now Mar 04 22:34:58 like I said, i think it’s a decent idea, just too much risk in the implementation Mar 04 22:35:06 OS/2 Warp came bundled with that in ~1995 Mar 04 22:38:02 oh, I’m almost positive other platforms have done something like it, but I don’t think very many have done it with success Mar 04 22:40:26 I'm trying to fire off a PendingIntent (BroadcastReceiver) from a gps tracker I'm creating Mar 04 22:40:44 however the BroadcastReceiver class never gets executed Mar 04 22:41:18 this is how I do the PendingIntent -> PendingIntent pendingIntent = PendingIntent.getBroadcast(mContext, 34433, theIntent, PendingIntent.FLAG_UPDATE_CURRENT); Mar 04 22:41:18 Mar 04 22:46:20 So I'm testing out a recyclerview with gridlayout manager. Each of the items is a cardview with an image in it. I load is via picasso. When I scroll its very jumpy. On tablet emulator it doesn't even let me scroll. On a physical device its pretty smooth. Mar 04 22:46:58 On the emulator it keeps jumping to the top as the images load. Mar 04 22:47:58 Should I be trusting my emulator or my physical device? Mar 04 22:54:42 god, I hate stack traces with "unknown source" Mar 04 22:58:28 Ah my issue was GC. Images I was pulling in were too large. Mar 04 22:59:54 Hello. I am setting up build.gradle for my project in Android Studio. I am working on a task inside build.gradle. How can I get current package name of the project? Mar 04 23:06:22 where should ANDROID_HOME point to? just the base/root folder of the zip I downloaded? I downloaded android-sdk_r24.4.1-linux.tgz and unzipped it to ~/android-sdk-linux so should ANDROID_HOME just point to ~/android-sdk-linux ? Mar 04 23:08:03 flappynerd: that’s probably right, the directory should contain folders like tools, extras at the root of that path Mar 04 23:08:37 is there a way to get the spinner dropdown to show inside a view? Mar 04 23:11:52 I got the same problem any idea ? --> http://stackoverflow.com/questions/35078307/unable-to-play-360-degrees-video-just-like-youtube-player-app Mar 04 23:14:06 "New Legislation Would Ban US Government From Purchasing Apple Products" Mar 04 23:14:17 idiots Mar 04 23:19:08 i saw that. It’s just some guy pandering to his base Mar 04 23:21:50 Lerg: you gotta be able to access it as a variable of the project Mar 04 23:21:58 ${project.applicationId} or something? Mar 04 23:22:08 missingno: I'll try Mar 04 23:23:26 missingno: nope, property not found. I was digging inside project variable, but couldn't find what I need. Mar 04 23:23:30 you know gradle, this tab complete of groovy dsls is cool but this extremely tangled groovy dsl is not cool Mar 04 23:23:34 neither could I Mar 04 23:23:43 but I am pretty sure it is there somewhere Mar 04 23:24:23 probably inside some inner big object. Mar 04 23:35:32 man, it's been a while since I've done this, and I sort of remember some of this, but I have a few questions on creating an AVD: Mar 04 23:35:47 should I use the host GPU? Mar 04 23:36:07 I can't remember, I think I remember that that was either explicitly encouraged or explicitly a bad idea, but I can't remember which, lol Mar 04 23:36:42 also, should I bother "using" an "SD card", iirc there was some kind of command line tool that it was best to use to make the SD card file and then point to that file, does it really matter though? Mar 04 23:36:55 also, what is the purpose of the "snapshot" option? Mar 04 23:37:34 also, I got this message: "HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver" Mar 04 23:37:46 what/where is the HAXM driver and or how do I set it up and or install etc Mar 04 23:39:01 flappynerd: you download the haxm stuff from the extras section of the android download manager Mar 04 23:40:48 ahh... not compatible with linux... bummer :/ Mar 04 23:44:16 bleh, error when trying to create an AVD Mar 04 23:44:18 https://bpaste.net/show/ce557e85ef60 Mar 04 23:44:39 has anyone seen this? is this common? any ideas what the problem might be? Mar 04 23:45:17 I had my BroadCastReceiver declaration outside of the tag! in the Manifest Mar 04 23:45:21 godamn... Mar 04 23:46:21 doesn't the editor mark it as a warning/error? Mar 04 23:56:26 no it didn't Mar 04 23:56:29 evil Mar 05 00:13:33 how long should the emulator require to boot? Mar 05 00:14:18 I'm on an i5 3.4Ghz with 16G of RAM, SSDs Mar 05 00:14:37 the emulator log seems to have hung at "skipped version check" Mar 05 00:14:52 and I just get a slightly/slowly shimmering android logo that seems to never go away, and no further log messages etc Mar 05 00:14:58 it's been like this for at least 5-10 minutes Mar 05 00:15:58 hmm, ok lol finally it's doing something else, nm... still... this is kinda crazy Mar 05 00:16:13 I mean, I remember the emulator being slow before, but this is different than I remember Mar 05 00:16:18 will it be faster on subsequent boots? Mar 05 00:21:33 don't emulate arm Mar 05 00:24:56 k, I'll try intel then Mar 05 00:27:19 pfn, is there a limit to the size I should reasonably consider making my VM heap? Mar 05 00:27:45 the default 512M of RAM apparently is not enough, I got a console/log message saying that RAM had automatically been increased to 1GB Mar 05 00:28:08 limit on what, upper bound? lower bound? Mar 05 00:28:14 pfn, upper bound Mar 05 00:28:24 depends on whether you have 32bit or 64bit Mar 05 00:29:00 well, I'm using a 64 bit system, i5 with 64-bit Ubuntu 14.04 Mar 05 00:30:33 then whatever you want Mar 05 00:30:38 k Mar 05 00:42:15 pfn, btw why should people not emulate ARM? Mar 05 00:42:25 because it's useless Mar 05 00:42:28 use a device Mar 05 00:46:58 hmm, this is... odd... I can't seem to select a device... I thought I had chosen 10.1" WXGA Tablet Mar 05 00:47:05 but when I go back in to "edit", device is blank Mar 05 00:49:09 pfn, what should I choose for CPU/ABI if not arm? intel atom? Mar 05 00:49:22 cintel Mar 05 00:49:56 I don't have a cintel option, only Intel Atom and Intel Atom (x86_64) Mar 05 00:50:47 obviously a typo Mar 05 00:50:47 intel Mar 05 01:01:15 hi can someone help me figure this? http://stackoverflow.com/questions/35808585/cant-run-the-sample-project-tango-app-in-android-studio Mar 05 01:05:35 pfn, well, intel doesn't work, but ARM does Mar 05 01:05:43 so, I'm not sure why you say don't emulate ARM Mar 05 01:06:52 of course intel works Mar 05 01:06:55 stop doing it wrong Mar 05 01:07:03 pfn, ok what am I doing wrong Mar 05 01:07:11 saying it doesn't work Mar 05 01:07:22 I have identical settings to when I chose ARM, but when I boot the emulator the screen never changes from black Mar 05 01:07:34 with ARM I get the android logo after about 2 minutes and the actual OS after about 5 minutes Mar 05 01:07:40 flappynerd: Do you have the HAXM driver installed? Mar 05 01:07:42 with intel, the screen stays black Mar 05 01:07:47 read the console Mar 05 01:07:48 s73v3r, no, I'm on linux Mar 05 01:07:54 pfn, there's nothing further in the console Mar 05 01:07:57 suckass linux Mar 05 01:08:05 the console stops at "emulator: UpdateChecker: skipped version check" Mar 05 01:08:07 i’m pretty sure you still need the HAXM driver Mar 05 01:08:17 linux uses kvm and does some other weird shit Mar 05 01:08:21 but i have not used it on linux, so I cannot say Mar 05 01:08:28 s73v3r, the SDK says HAXM is not compatible with linux Mar 05 01:10:35 dont linux guys use kvm Mar 05 01:11:11 g00s, what does "KVM" stand for in this context? Mar 05 01:11:16 is that something kernel related? Mar 05 01:11:58 search for KVM here http://developer.android.com/tools/devices/emulator.html Mar 05 01:17:53 g00s, ok I see Mar 05 01:18:03 so is HAXM strictly required to use intel? Mar 05 01:18:34 no, it will just be slow Mar 05 01:18:58 g00s, ok, so any idea then, why my screen just seems to stay blank when I try to use intel for my AVD? Mar 05 01:19:11 no idea, the emus suc Mar 05 01:19:39 g00s, ok I mean, I do have a regular device actually, so you think I should probably just use that instead? Mar 05 01:19:45 new emus are coming out soon, i haven't tried those yet Mar 05 01:19:53 yeah use the device Mar 05 01:39:19 god emus were such an upgrade from rubber duckeys Mar 05 01:54:23 ok, so I enabled USB Debugging on my android and got a success message, something about "now you're a developer!" etc Mar 05 01:54:36 how do I check whether my device is actually registered with my OS? Mar 05 01:54:42 I've got it plugged in via USB Mar 05 01:55:03 flappynerd the docs explain all of this Mar 05 01:55:24 g00s, ok sorry, which part of them? Mar 05 01:55:41 the part about adb ;) Mar 05 01:57:57 g00s, yep that does it, thanks Mar 05 02:01:27 hey guys.. so it's possible to create a library with android studio.. but is it possible to have it in the same workspace so I can work on it and see the outcome? I know about module dependencies, but what if I want to publish it separately later? Mar 05 02:01:59 you have to open another AS window Mar 05 02:02:17 one of those areas i liked eclipse workspace better Mar 05 02:02:49 ahh.. hm.. okay.. yeah - eclipse is nice in this regard.. you could have several unrelated projects in there - same for Visual Studio Mar 05 02:03:08 Aoi probably easiest to make it a module at first, let it grow until time to spin it out Mar 05 02:03:34 okay - got it.. so I just let it be part of the project first.. and then once it's complete, I turn it into a separate module? Mar 05 02:04:01 i'd make it a module first, and then when time comes make it a separate project Mar 05 02:04:04 (I am still building a way to properly read icon files and progressing there and thought about making it a lib for people, who need it) Mar 05 02:04:23 alright :) thanks! Mar 05 02:04:35 if /you/ only have one project that uses it, i think you can just publish that module ... Mar 05 02:04:58 to jcenter or whatever Mar 05 02:05:13 yeah I personally will only have one project using it, but it's definitely something that could be reused later once it's ready Mar 05 02:22:50 anyone hiring near chicago? Mar 05 02:23:15 shit if you're in the lower 48, I'm down Mar 05 02:34:47 man fixing the existing library while not having IndexColorTable, BufferedImage, ImageReader and the likes is a pain D: Mar 05 02:36:15 IndexColorModel* Mar 05 02:38:56 #join unity3d Mar 05 02:39:02 Whoops **** ENDING LOGGING AT Sat Mar 05 02:59:58 2016