**** BEGIN LOGGING AT Mon Apr 27 02:59:59 2015 Apr 27 03:00:50 Because I don't have a pc right now and because I need to work Apr 27 03:01:08 So if you don't have a PC, how do you access your work in the cloud? Apr 27 03:01:17 (also, how are you typing this? :)) Apr 27 03:01:20 I'm on my Android Apr 27 03:01:49 I've been using things like aide Apr 27 03:02:22 Why not get a PC? Apr 27 03:02:32 Doing Android development without one can't be fun. Apr 27 03:03:14 But one of my old clients needs me too do work and there is a lot of Maven files that are not easy to sync Apr 27 03:04:29 And no one can tell me how to work on my phone with files hosted on drop box and make it act like it's on my device for quick editing Apr 27 03:05:21 Nope it's a pain Apr 27 03:07:26 I use Google Drive for that, but full development on Android is just not realistic (nor even possible) Apr 27 03:10:07 hi all I'm seeing a strange issue: my app installs and works on different devices. Now, on ASUS with Android 4.4.2, and some chinese tablets also, the app name isn't showing below the launcher icon (on the home screen/applications menus. Neither in the Applications section of Settings. Only the icon shows. Now, the same apk installed to different SAMSUNG and LG devices DO show the app name.) Suspecting manifest.xml? https://github.com/arnotixe/andro Apr 27 03:10:07 logcat doesn't show any errors or other interesting messages. Apr 27 03:17:24 Um yes it is possible Apr 27 03:17:38 Look up b aide Apr 27 03:18:59 Full service Android ide if you can run it on default factory Android it can be made in it with live trying Apr 27 03:19:04 Testing Apr 27 03:19:41 But it doesn't support remote Maven Apr 27 03:19:46 Only local Apr 27 03:20:08 ronkrt: Why not focus on getting a PC/laptop? I can't see how anyone could do programming without one. Apr 27 03:20:17 And this project is over 30+mavens Apr 27 03:21:36 atleast it isn't over 9000 Apr 27 03:21:57 TacticalJoke: my laptop took a dive. No is likely to donate to buy me a laptop fund and I can barely afford to live on what I make Apr 27 03:22:22 I mean I don't b even know we're I'm sleeping tomorrow night Apr 27 03:22:39 then android dev should be on back burner Apr 27 03:23:07 But at least I'm doing what I can rather then begging in front of a store Apr 27 03:23:32 whatitis: devs paying the atm Apr 27 03:23:42 Can't back burner income Apr 27 03:24:11 I've been using droid for work for a month now Apr 27 03:24:15 Which country do you live in? Apr 27 03:24:53 Got tools for cpanel, ftp, ssh, development with code completion terminal etc Apr 27 03:25:10 Tactical the United states of shit Apr 27 03:26:18 ronkrt: Isn't there some help you can get? If you're close to homelessness that's a pretty urgent situation. Apr 27 03:30:37 Long story short. I've exhausted All other options. Apr 27 03:31:24 It's make money or starve he'll I have not eaten more then a a sandwich or cheese burger a day for months Apr 27 03:31:25 Lol Apr 27 03:32:22 I'm also living in a motel paying half the normal price because me my are getting a small old storage room converted Apr 27 03:32:52 Ne who I've got work too do. Apr 27 03:34:01 Anyone know how to search a directory for files with a certain word in it's file name and if it finds it it replaces with another word while maintaining the rest of the ? Apr 27 03:38:58 And I can run most commands from Linux Apr 27 03:39:16 better to just dev on a remote shell Apr 27 03:39:28 setup an aws micro instance Apr 27 03:39:36 and code from vim Apr 27 03:44:18 TacticalJoke in the good ol usa of a, its pretty much a crime to be poor Apr 27 03:44:30 help, lol Apr 27 03:56:07 all, I'm having an issue implementing backupAgentHelper class Apr 27 03:56:11 the onCreate method is never called (at least from within debug view. I also added a log message which I never see Apr 27 03:56:14 Here is the backupAgentHelper class: http://pastie.org/10115428 Apr 27 03:56:19 I made the appropriate changes in my manifest: http://pastie.org/10115429 Apr 27 03:58:47 never did a backupagent, i guess because at the time it wasn't clear how to use it with database Apr 27 04:01:33 g00s: I kinda assumed the USA has help for people fearing homelessness. I guess it depends on the state, though. :\ Apr 27 04:01:39 " If you have an SQLite database that you want to restore when the user re-installs your application, you need to build a custom BackupAgent that reads the appropriate data during a backup operation" Apr 27 04:01:58 but they don't tell you how to go about doing that, and there is nothing in the samples Apr 27 04:02:42 TacticalJoke no, because if you are poor its assumed you didn't work hard enough Apr 27 04:03:10 very few social safety nets Apr 27 04:03:40 and if you follow our politics, you'll see that one group spends much of their time trying to undo anything left in that area Apr 27 04:17:29 How can I set up a free remote server? Apr 27 04:39:06 very few? Apr 27 04:42:35 g00s, welfare and housing subsidies are. exceedingly common Apr 27 04:43:53 g00s, as for backup agent, how seems obvious, read your database and serialize it into any form you want Apr 27 04:44:27 do a table dump to a flat file, etc Apr 27 04:45:03 read it out as entities and serialize to json, marshal in back into relational form as necessary, etc Apr 27 04:46:15 pfnQ have you actually tried this? i remember talking to ctate and he admitted its wasn't easy Apr 27 04:46:31 considering where the vast majority of us budget goes, I wouldn't say we have a lack of social welfare services Apr 27 04:47:00 g00s, there's 2 options, if you are OK with backups only to the same arch, just copy the dB file Apr 27 04:47:35 and at that time years ago, that would have been just fine with arm being the only game in town Apr 27 04:47:49 the sqlite file should be portable between arm / intel though right ? Apr 27 04:47:57 not sure, maybe Apr 27 04:48:41 should not be portable from 32 to 64 bit I think Apr 27 04:49:34 i've shared my db from pc->android->ios Apr 27 04:50:11 yeah, strangely, I recall reading the dB on pc Apr 27 04:50:23 so it shouldn't be the case that it's not portable Apr 27 04:50:40 meh, i wish ctate would stopy buy once in a while - i think he worked on that part. but copying the file didn't seen like a good option at the time, i wish i remember why Apr 27 04:51:41 * g00s wonders what ctate is up to these days Apr 27 04:55:30 Does OkHttp allow me to set which ThreadFactory it uses for its async model? Apr 27 04:56:41 I think it doesn't. Not certain, though. Apr 27 05:27:16 Hello, I need help taking a layout to tbe bottom Apr 27 05:27:47 I got three fragments with its layouts distributed with a LinearLayout Apr 27 05:29:12 the third one should be at bottom Apr 27 05:29:44 I know theres a RelativeLayour property which might fix it but I got whole stuff with Linear now, so I wouldnt like to break it Apr 27 05:30:02 this is what it's lookign like Apr 27 05:30:02 http://www.hastebin.com/ilecovoyic.xml Apr 27 05:30:10 the layouts text Apr 27 05:31:07 diegoaguilar: Did you try to give a layout_weight to the middle one? (and only that one) Apr 27 05:32:27 no I didnt Apr 27 05:32:34 what should I set it? Apr 27 05:33:09 1 Apr 27 05:33:27 at activity's? Apr 27 05:34:18 the middle fragment Apr 27 05:34:47 and with weightsum ? Apr 27 05:35:19 damn dude, remove weights from the other 2 fragments and just give weight to middle Apr 27 05:35:39 Don't know how much clearer I can say it Apr 27 05:36:40 I did that Apr 27 05:36:45 gj Apr 27 05:36:47 and breaks everything Apr 27 05:36:59 I mean only first fragment is displayed Apr 27 05:37:05 rest is visually gone Apr 27 05:37:37 post the updated layout Apr 27 05:38:47 http://www.hastebin.com/uqejeqofit.xml Apr 27 05:39:35 set the layout_height="0dp" to all three Apr 27 05:40:00 (doesn't explain why two are gone though) Apr 27 05:41:57 now its exactly the middle fragment the only visible Apr 27 05:55:19 hm, tried logging into dev console i get "An unexpected error occurred. Please try again later." Apr 27 05:56:41 hello Apr 27 05:59:32 I'm trying to get some dimension of my relative layout. But this I always get 0. why? http://paste.ubuntu.com/10906924/ Apr 27 06:16:05 slani, because it hasn't been laid out yet Apr 27 06:36:33 JakeWharton do you guys use wire to serialize android app's objects to disk (and what do you use for the container, flat file, sqlite + blob, something else) Apr 27 06:59:18 ls Apr 27 06:59:23 oops sorry Apr 27 07:00:53 lol I've done that before :) Apr 27 07:01:20 Ummm, I was creating a custom widget and I need to import my R.java file in it to use resources, now I read somewhere that if you have to import your R file then something is wrong, is something actualy wrong? (Studio 1.1) Apr 27 07:02:25 I don't think so. You'll need to do it once to access the resources Apr 27 07:02:38 best way to convert youtube to mp3 www.youtube.mp3.org :) Apr 27 07:03:13 I think what you might've read is that, if there was an issue generating the R.java resource file, the R will show up red in the IDE, since R.java wasn't generated Apr 27 07:03:27 but the IDE will tell you about what went wrong anyway Apr 27 07:04:42 barbs: Phew! I thought I had to check all my resources names as there was no error in studio build window. I am kinda lazy when it comes to reading logs :P Apr 27 07:04:42 oops sorry wrong link, http://www.youtube-mp3.org/ Apr 27 07:06:27 astroduck, where did you read that? Apr 27 07:12:07 Hello, Im trying this in order to create a dialog with a list Apr 27 07:12:12 adding some elements Apr 27 07:12:21 but list its not being rendered Apr 27 07:12:21 http://www.hastebin.com/akigejixad.avrasm Apr 27 07:12:29 what have I got wrong? Apr 27 07:17:29 diegoaguilar: just saying that line #4 should be if (which == 1) { Apr 27 07:21:05 diegoaguilar, I think you cant use both setMessage() and setItems(). a dialog can either show a message OR a list Apr 27 07:21:33 try using setTitle Apr 27 07:21:48 he has setTitle, setMessage and setItems ^^ Apr 27 07:22:16 i think once setMessage is called, dialog just ignores the setItems Apr 27 07:22:27 if you want a message AND a list, you need to create a custom view Apr 27 07:27:24 seems from the code that the items should write over the message Apr 27 07:27:25 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.0.1_r1/com/android/internal/app/AlertController.java#AlertController.AlertParams.apply%28com.android.internal.app.AlertController%29 Apr 27 07:28:08 line? Apr 27 07:28:58 #920 Apr 27 07:29:11 the check for items happens after the check for message Apr 27 07:30:32 thepoosh ! Apr 27 07:30:53 another glorious week in android land Apr 27 07:32:26 g00s: !!! Apr 27 07:32:58 thepoosh now i know what should have been in the nav drawer - advertisements ! :D Apr 27 07:33:21 g00s: oh god Apr 27 07:33:26 with escaping X Apr 27 07:34:08 g00s: wat?! Apr 27 07:34:56 Ugh Apr 27 07:35:13 Aide records 4446 errors in this project Apr 27 07:35:41 https://i.imgur.com/x8vdMEF.jpg Apr 27 07:35:42 ronkrt was the project written with AIDE ? Apr 27 07:36:35 No I'm trying to get all the repos in place Apr 27 07:36:45 ronkrt see, if you had a real tablet like a Surface you actually could do your development on it Apr 27 07:37:26 I woudnt use AIDE for anything else but maybe viewing code Apr 27 07:37:39 if the app wasn't written in AIDE, its probably hopeless Apr 27 07:37:50 Going to buy me know Apr 27 07:37:51 does AIDE even support gradle? Apr 27 07:38:01 Me one Apr 27 07:38:04 Yes Apr 27 07:38:11 Local repo only Apr 27 07:38:17 what is AIDE exactly ? Apr 27 07:39:03 quelqun_dautre, https://play.google.com/store/apps/details?id=com.aide.ui&hl=de Apr 27 07:39:23 quelqun_dautre: it's an IDE that runs on android Apr 27 07:39:33 ugh. With full compiler and all ? Apr 27 07:40:08 yeah, you can write Android apps with it Apr 27 07:40:22 can't be really confortable, though. Apr 27 07:41:29 well. you can use a real keyboard and mouse if you want Apr 27 07:41:44 but ofc its not the same as running AS. Apr 27 07:42:11 my n7 can barely show Calendar smoothly, i can't imagine compiling stuff Apr 27 07:42:39 g00s, you'll have a lot of time for coffee breaks :p Apr 27 07:42:56 g00s: 2012 N7? Apr 27 07:42:58 why glorius week? Apr 27 07:43:01 2013 Apr 27 07:43:31 huh, I thought the 2013 one was still pretty fast Apr 27 07:44:09 OmegaVesko have you used Calendar, just scrolling the main time view is pretty bad Apr 27 07:44:30 but , i just see these things as media consumption devices Apr 27 07:45:56 probably isn't as bad as writing hp48 code on the hp48 :D Apr 27 07:47:20 g00s: well, calendar is a bit laggy on my N5 too Apr 27 07:48:58 not laggy on my n5.. Apr 27 07:49:42 danijoo: the timelime definitely stutters a bit on mine Apr 27 07:49:49 not unusable, just a bit annoying Apr 27 07:51:16 my calender is half empty so this might be the reason :) Apr 27 07:54:54 How do I find out ${env.ANDROID_HOME} Apr 27 07:55:17 ronkrt, in what context? Apr 27 07:55:30 ronkrt: go to terminal echo $ANDROID_HOME Apr 27 07:55:50 file://${env.ANDROID_HOME}/extras/ Apr 27 07:56:33 ronkrt i dont think anyone here uses AIDE Apr 27 07:57:09 Hmmm echo returned noting Apr 27 07:57:23 anyone that chats regularly anyhow :) Apr 27 07:57:57 Hey Guys, what's up, just joined this channel, hoping to find some nice people to talk to :) Apr 27 07:58:22 hey KiLLyA_ Apr 27 07:58:41 why would you use AIDE Apr 27 07:58:52 that thing on the phone that lets you code? Apr 27 07:59:21 on a tablet it could make sense, maybe, other than that, I dont know Apr 27 07:59:29 no way man Apr 27 08:01:52 it just lacks to many features. Apr 27 08:02:19 i would only use it for re(viewing) some code while sitting in the train Apr 27 08:02:32 and even for that a git app might be better Apr 27 08:05:25 there is absolutely no use for it, when it first came out I thought that this guy is just doing it for the wow factor Apr 27 08:05:26 :P Apr 27 08:05:43 unless there are tablets which really work well with external keyboards Apr 27 08:05:52 or something, still, just use a laptop wth Apr 27 08:06:59 yeah. I see it more like a proof of concept too Apr 27 08:20:19 Has anyone already put the new Appcompat library in a production app? Apr 27 08:20:27 im scared :/ Apr 27 08:20:34 worked just fine for my production app Apr 27 08:20:46 danijoo lol Apr 27 08:21:05 danijoo you've had traumatic experiences i guess :D Apr 27 08:21:11 KiLLyA_, revision 22.1.0 Apr 27 08:21:17 21.1.1 Apr 27 08:21:32 g00s, I released the samsung toolbar crash to 300k users .. Apr 27 08:21:44 300k users? woah what is it Apr 27 08:21:46 thats a lot of users ! Apr 27 08:22:01 and half of them had crashing samsungs ^^ Apr 27 08:22:25 man imagine 150k crash logs in dev console Apr 27 08:22:30 meh samsung Apr 27 08:22:36 why do they do everything different Apr 27 08:22:52 just filter out all samsung devices from supported list... 95% of problems solved Apr 27 08:22:54 since that, i wait until others find the crashes before I update librarie Apr 27 08:23:16 Zharf i've tried filteringout just one model : Note 3, there were like 60 of them Apr 27 08:23:24 heh Apr 27 08:23:26 Zharf, yeah.. but thats like releasing only on amazon store Apr 27 08:23:35 you can as well dont write the app at all :p Apr 27 08:23:38 danijoo, samsung has it's own store! Apr 27 08:23:43 Samsung do this wrong, not different :P Apr 27 08:23:55 do things wrong* Apr 27 08:31:16 hey, how can i call a function in my main module from a dependency module? Apr 27 08:34:35 just import it Apr 27 08:35:29 tell gradle to inlcude the module in the main module. After that it should be able to call it like any method from a library Apr 27 08:40:58 sorry, i meant the other way Apr 27 08:41:58 im not sure if its possible to add the main module to the library module too because this would result in a circular dependency Apr 27 08:42:05 maybe you can use reflection Apr 27 08:43:52 not sure how Apr 27 08:44:07 just google java reflection Apr 27 08:44:28 it allows you to call methods at runtime that are not importable at compile time Apr 27 08:45:52 ok, i'll try, thanks Apr 27 08:47:05 yw Apr 27 09:00:09 Hi! Apr 27 09:00:49 good morning Apr 27 09:00:58 Anybody knows if there is some library to add a "Quick Return" pattern to my app? I am using a Toolbar + PagerSlidingTabStrip + RecyclerView fragments Apr 27 09:01:28 So I want that when the user scrolls down on the recycler view, the toolbar and tabs scroll up and hide, but when they scroll up again, they reappear Apr 27 09:02:18 Papipo, add an OnscrollListener to the recyclerview Apr 27 09:02:29 and.. well let me show you how I handle it. sec. Apr 27 09:02:49 is it possible to add more than one scrolllistener? Apr 27 09:03:02 no Apr 27 09:03:06 (I already have one for infinite scroll purposes) Apr 27 09:03:09 k Apr 27 09:03:15 you can use one for both. Apr 27 09:03:41 android isn't kind with observers =) you can have your own listener delegate to a set of listeners though Apr 27 09:04:21 its not java but you should get what im doing Apr 27 09:04:21 https://gist.github.com/danijoo/2d7170195d9589b80f14 Apr 27 09:04:30 thanks danijoo Apr 27 09:04:56 also its for a gridview but should be portable Apr 27 09:30:38 Is there a easy way to down load maven files and there dependancies Apr 27 09:32:15 thats what gradle does Apr 27 09:32:35 danijoo: he probably isn't using gradle Apr 27 09:33:45 so thats the problem :p Apr 27 09:34:23 ronkrt: why not just download the source? Apr 27 09:34:44 Hello. I am using retrofit (and rxJava) to handle network requests. In a response I am getting image URLs. What is the correct way to download and display images from URLs Apr 27 09:34:49 ? Apr 27 09:35:19 vedu: picasso Apr 27 09:35:20 ronkrt: mvn build will download dependencies, doesn't it ? Apr 27 09:35:39 I can't run maven Apr 27 09:35:42 i don't understand what build system you are using Apr 27 09:35:50 vedu, use another lib for images Apr 27 09:35:52 Android os Apr 27 09:35:54 ie picasso Apr 27 09:35:58 or glide Apr 27 09:36:17 danijoo: I got the tab hiding almost working: it flicks Apr 27 09:36:38 ronkrt: you're trying to build a maven project on android ? Apr 27 09:37:01 It probably has something to do with the relative heights of the list elements and the tabs themselves Apr 27 09:38:07 in fact, something is not quite right. When the tabs hide, the list jumps up. Something that now that I think of it is probably expected with this implementation, but from the UX perspective sucks quite a lot Apr 27 09:39:26 I'm using Androids aide local maven support Apr 27 09:39:34 thats because your view is matching parent Apr 27 09:39:57 when actionbar disappears it has more room, increases in size and this is the flickering you see Apr 27 09:40:22 ronkrt: if you're using maven as your build machine run mvn build Apr 27 09:40:28 you can fix this by making the list expand under the actionbar Apr 27 09:40:35 and set a top padding Apr 27 09:42:14 Stupid question: what if I set the alpha to 0 instead of hiding the bar? is it good performance-wise? will I be able to click elements "below" the invisible bar? Apr 27 09:42:37 your actionbar is invisible but you have an ugly space on top Apr 27 09:42:48 anyway, it doesn't work as expected Apr 27 09:42:54 Papipo: you won't be able to interact with stuff under it Apr 27 09:42:54 ah, you are right Apr 27 09:43:02 you would be if you set visibility to invisible Apr 27 09:43:06 what I see is the background of the layout Apr 27 09:43:16 gonna try with the padding approach, thanks Apr 27 09:46:57 I don't have maven commands Apr 27 09:47:31 ronkrt, still on AIDL? Apr 27 09:48:05 AIDE* Apr 27 09:48:35 Yea it's the best solution for working on a Android Apr 27 09:48:53 Is it considered bad practice to use a background image for apps? I mean I don't see a lot of the more popular apps doing it Apr 27 09:50:07 * icedp TILed: interstitials and adviews leak activities if created with this in constructor (or inflated from XML). Passing getApplicationContext() to constructor eliminates the leaks though Apr 27 09:50:35 icedp, depends on your ad library ;) Apr 27 09:51:00 jutsi: eh, it depends Apr 27 09:51:09 danijoo: default, AdMod Apr 27 09:51:13 it should be okay as long as it's subtle Apr 27 09:51:36 icedp, who declared that to be default? Apr 27 09:51:38 and `this` is how Google handles it in official tutorials Apr 27 09:52:08 danijoo: it is the de facto default unless you're targeting China or something.. Apr 27 09:52:19 no Apr 27 09:52:50 danijoo: just seems to be most popular Apr 27 09:54:03 you shoudnt depend on a single ad company Apr 27 09:55:30 danijoo: I'm not saying whether I like it or not. Anyway, what do you use? Apr 27 09:56:04 4 different networks with mopub as base (because admob seems to randomly ban people) Apr 27 09:56:46 admob being one of those 4. interesstingly its othe one paying the less Apr 27 09:58:40 Hey. Anyone here with a rooted normal/compact Sony Z1/Z2 that can check if they have the file /sys/devices/virtual/input/clearpad/glove ? Apr 27 09:59:27 Quacked, wrong channel. head to #android-root Apr 27 10:01:39 danijoo: did you do A/B testing or used different networks on different apps? Apr 27 10:02:28 whats A/B testing? Apr 27 10:03:19 danijoo: like enabling for part of users admob, for other part - perhaps just randomly. and see what's better Apr 27 10:03:33 s//for other part mopub/ Apr 27 10:03:49 mopub uses different networks and always serves the ad that gives you the biggest eCPM Apr 27 10:04:16 (if configured properly) Apr 27 10:05:14 and it shows me the worst eCPM for admob. But this might depend on the way you show ads and on the app Apr 27 10:05:27 right now, Im getting the best ecpm for chartboost interstitials Apr 27 10:07:06 ah I see Apr 27 10:08:51 OmegaVesko well what popular apps have backgrounds? I mean except for games Apr 27 10:10:13 hm Apr 27 10:10:22 Muzei? Though I guess that doesn't really count Apr 27 10:10:41 danijoo, yeah, I asked there but it's so quiet :) Apr 27 10:10:42 jutsi, whatsapp in chat ;) Apr 27 10:11:03 why is it that I can't take screenshots of my emulator? I can't inspect the UI with the device monitor either -_- Apr 27 10:11:08 oh, Strafe does too Apr 27 10:12:17 Quacked, no reason to ask in a random other channel ;) especially when its in the topic to NOT ask about such things :p Apr 27 10:12:48 danijoo i went traitor mode and got myself a windows phone recently, admittedly out of curiosity and i wanted to develop to it, but as a consequence i can't check out the whatsapp on android. Do you perhaps have any images? :) Apr 27 10:13:20 jutsi, http://www.chip.de/ii/597385835_ecbcc8fee2.jpg Apr 27 10:13:26 jutsi: https://play.google.com/store/apps/details?id=com.whatsapp :p Apr 27 10:13:42 thanks Apr 27 10:14:41 I'm making a nature app, and im using a nature image as background, i did blur it to not make it the center of attention, however the colors of nature are still very strong colors and i feel they do distract some Apr 27 10:15:10 maybe darken/desaturate it as well as blurring it? Apr 27 10:15:12 I think the key is to make/find a background that doesnt stick out too much Apr 27 10:15:26 real photos are most often a bad choice Apr 27 10:15:53 OmegaVesko i tried, but problem then is that it gets the look and feel of an artsy app instead. I might've not gotten the right ratio of darkening and desaturation though Apr 27 10:16:32 i suck at desgin though, so dont quote me Apr 27 10:16:38 ah right Apr 27 10:17:25 i mean other than real photos (heavily photoshopped of course), what are the choices? 3d images don't sound like such a clever idea either Apr 27 10:19:03 danijoo: regarding the hiden actionbar thing, I put both the bar and the list on a framelayout, so they are "stacked". There is top padding on the list so it doesn't slip below the tab. when I start scrolling, and hide the bar, the list doesn't expand because of the padding. Am I supposed to remove the padding while the bar is hidden or what Apr 27 10:20:34 Papipo, no. just set the adapter to not clip to its padding. If your Items are bigger than the actionbar, the user will never see the padding Apr 27 10:20:55 I guess i could also use a live feed from the users camera as background, since they're in nature they'd get a great view anyways, however i have a strong feeling that this is one of those things that is better in theory Apr 27 10:26:15 Android guides are either incomplete or I'm retarded. Just copypasting their sample code (http://developer.android.com/guide/topics/ui/drag-drop.html), the one starting with '// Create a string for', there's a "," lacking and my IDE gets a few 'cannot resolve errors', specifically with 'ClipData.Item(v.getTag());' and 'ClipData.MIMETYPE_TEXT_PLAIN'. What can I do to avoid these errors? Apr 27 10:26:24 danijoo: it almost worked ;D. Now the list starts slightly beneath the bar. I am doing something wrong here Apr 27 10:26:34 With "," I meant ")", sorry, typo. Apr 27 10:26:49 I am adding the padding programmatically, gonna check if it's actually adding padding at all Apr 27 10:27:06 Papipo, how do you get actionbar padding? maybe this is the error Apr 27 10:27:20 I am doing this list.setPadding(0, activity.getTabs().getHeight(), 0, 0); Apr 27 10:27:31 I am actually hiding tabs, not the bar, but anyway Apr 27 10:27:46 getTabs returns a PagerSlidingTabStrip Apr 27 10:27:55 hm ok. Apr 27 10:28:02 Gonna log a bit Apr 27 10:28:53 Padding 0 ^_^ Apr 27 10:29:06 I guess the views aren't laid out yet or something Apr 27 10:30:42 I could use the actionBarSize attribute, but it just seemed more solid to grab the actual size of the tabs Apr 27 10:31:00 Also is it very bad to make a LinearLayout variable final? Because it says 'Variable is accessed from within inner class, needs to be declared final.' Apr 27 10:38:37 Papipo, im using the attr way Apr 27 10:38:47 danijoo: should I be setting the padding on the onLayout method of the view? maybe onMeasure? Where am I supposed to be able to get the height of the tabs using getHeight() and not getting a zero? Apr 27 10:39:06 yeah, I guess I am too of a purist here Apr 27 10:39:07 i do it after views are instanciated. Apr 27 10:39:16 on the constructor? Apr 27 10:39:28 onCreate/onCreateView Apr 27 10:39:32 I would do that, I was just wondering if it was possible to do it on a callback Apr 27 10:43:46 Android guides are either incomplete or I'm retarded. Just copypasting their sample code (http://developer.android.com/guide/topics/ui/drag-drop.html), the one starting with '// Create a string for', there's a ')' lacking and my IDE gets a few 'cannot resolve errors', specifically with 'ClipData.Item(v.getTag());' and 'ClipData.MIMETYPE_TEXT_PLAIN'. What can I do to avoid these errors? Apr 27 10:48:07 Lorenz9, you are welcome to fix those bugs Apr 27 10:48:32 and make a pull request Apr 27 10:49:54 thepoosh, danijoo: sorry I missed your replies. But I found the same thing googling: use picasso Apr 27 10:50:00 Oh no I'm a total rookie, also I already sent a few bug reports to them (because this isn't the first time I find a { lacking and stuff like that) Apr 27 10:50:33 I really just want to be able to use this code for my own learning project Apr 27 10:50:47 I'm really confident about using picasso especially that it is also from square (like Retrofit), so they probably intended it to be used as such Apr 27 10:50:47 But I'm unable to understand these errors because of lack of experience Apr 27 10:50:55 Lorenz9, yeah the documentations are a bit incomplete and also lack behind a few years on some parts :p Apr 27 10:51:24 a lot of it is only useful as reference if you already know how to do it Apr 27 10:52:27 otherwise, ask danijoo, seems to know everything ;) Apr 27 10:52:51 lol ^^ Apr 27 10:52:56 i wish this to be true Apr 27 10:53:09 from my POV is kinda true Apr 27 10:53:26 the question is... is "kinda true" good enough? Apr 27 10:53:58 enough for the basics. But there are also topics I dont know anything about ;) Apr 27 10:54:10 for example custom rendering Apr 27 10:54:31 but the more you know, the easier it gets to pick up more knowledge Apr 27 10:55:54 +1 Apr 27 10:56:16 is it getting an attribute programatically full of boilerplate or is it just my impression? Apr 27 10:56:28 Papipo, you are right Apr 27 10:56:33 sigh Apr 27 10:57:06 R.string.something? Apr 27 10:57:24 Odaym, thats not working if you want to get R.attr.something Apr 27 10:57:38 .get(.get(.get(.get()))))) Apr 27 10:57:45 .get() Apr 27 10:58:16 getting a system atttr are 4 lines of code :/ Apr 27 10:58:43 maybe that's because it's not encouraged? Apr 27 10:58:52 I can't imagine any other reason Apr 27 10:58:58 Papipo, I can... :p Apr 27 10:59:12 enlighten me :P Apr 27 10:59:25 bad design :p Apr 27 10:59:28 how hacky is this? Apr 27 10:59:29 view.post(() -> view.setPadding(0, activity.getTabs().getHeight(), 0, 0)); Apr 27 10:59:46 at that point getHeight() does not return 0 anymore :P Apr 27 11:00:44 Papipo, https://gist.github.com/danijoo/5c30fd4fd241fae8a5aa Apr 27 11:01:14 I love the a.recycle() method Apr 27 11:01:19 it's so... intuitive Apr 27 11:01:22 ^^ Apr 27 11:01:30 danijoo, pretty sure you don't really want to know *everything* ;) Apr 27 11:01:55 ravilov, true :) Apr 27 11:02:29 I got the padding working, but when the bar is hidden, the list doesn't take its place Apr 27 11:02:47 half a morning wasted already, I love android development! ® Apr 27 11:03:02 * ravilov still thinks the new java8 syntax is just plain ugly :/ Apr 27 11:03:25 ravilov: what syntax specifically? Apr 27 11:03:47 lambda/anonymous classes or whatever it's called Apr 27 11:03:50 Any idea why getActivity().findViewById(...) would return null in a DialogFragment when using new MyDialogFragment.show(...), but not when doing getSupportFragmentManager().beingTransaction().replace(..., new MyDialogFragment(), ...).commit()) ? Apr 27 11:03:51 Hello! I have recyclerview. How to focus first item when recyclerview appear on ui? Apr 27 11:04:43 mmmm, I have an idea Apr 27 11:05:33 Syzygy, where do you call getActivity() Apr 27 11:05:40 view might not be attached already Apr 27 11:05:44 having an idea never ends well Apr 27 11:06:33 XD Apr 27 11:06:37 danijoo, essentially in onActivityCreated Apr 27 11:06:41 ok guys. this time I need help. How can I make my searchView not hide other toolbar icons when expanded Apr 27 11:06:51 haha, almost works Apr 27 11:06:53 Syzygy, than it should work. Apr 27 11:07:02 well, it doesn't. Apr 27 11:07:19 i want to send location data to my server every 5 minute what should i use 1) Service 2)IntentService 3) AlaramMAnager with recivers Apr 27 11:07:19 Syzygy, what is returning null? Apr 27 11:07:24 getActivity() or findViewById() ? Apr 27 11:07:49 findViewById Apr 27 11:07:57 danijoo, add all the icons to searchView as well? :p Apr 27 11:08:35 Syzygy, are you sure you are calling the right id? Apr 27 11:08:40 rathodvikas10, alarms Apr 27 11:09:02 yes, as i said it's working when I do replace, but not when I show. Apr 27 11:09:49 so no service to use ?? Apr 27 11:09:59 what if my screen goes off Apr 27 11:10:19 you can set it to exact timeouts, but that could have impact on the battery Apr 27 11:10:26 Syzygy, maybe you have some undesired side effect Apr 27 11:11:01 as in findViewById returning null? I think that's save to say. Apr 27 11:12:12 the question is ... what is that sideeffect :/ Apr 27 11:12:29 Sorry dani, was away, yeah, the documentation is horrible sometimes Apr 27 11:12:35 Syzygy, what you are doing is bad design anyways Apr 27 11:12:47 you should not need to call getActivity().findView... Apr 27 11:12:48 Got any other place where I could get sample code that actually works danijoo ? Apr 27 11:13:07 well the time interval is 5 min bt the stop time is dynamic Apr 27 11:13:07 your fragment should call a method on the activity and let the activity do the stuff Apr 27 11:13:15 danijoo, hwo else should I get the views I need in a fragment? Apr 27 11:13:16 ah Apr 27 11:14:08 like ((MainActivit) getActivit()).setTextOnMyTextView("my text") Apr 27 11:14:37 fragments are supposed to be self-contained, a fragment should never affect directly anything outside its own view Apr 27 11:15:34 I'm also going with the self contained idea. otherwise my mainActivity would need to contain almost the entire app code Apr 27 11:16:26 But that reminded me. the replace and the show are called from different activities, could that be related? Apr 27 11:16:39 -_- ofc. Apr 27 11:17:07 then its pretty obvious. the one where you get your null does not contain the id you are looking for Apr 27 11:17:09 ...lol Apr 27 11:17:25 danijoo, the fragment inflates its own layout which contains the ID though Apr 27 11:17:43 if the fragment contains the id, why you search the id in its activity?? Apr 27 11:18:30 danijoo: the hide-the-toolbar thing is finally working, except for a small detail. The list is actually inside a SwipeRefreshLayout, so the refresh indicator is positioned too high and thus is displayed slightly beneath the bar. Should I just add the same padding and false clipToPadding to the SwipeRefreshLayout as well? Apr 27 11:18:55 Papipo, i didnt use swipetorefresh yet so I cant tell Apr 27 11:19:03 see? one thing I dont know ;) Apr 27 11:19:04 good question... I actually thought findViewById was part of context... I'll look at where I went wrong. Apr 27 11:19:09 just imagine the list was inside any other container Apr 27 11:19:14 (and why it's working in that other case) Apr 27 11:19:22 what would you do Apr 27 11:19:41 Syzygy, because you where lucky in this case. Apr 27 11:19:52 :p Apr 27 11:21:19 assumption is the root of all screwups Apr 27 11:21:36 for fragments, use getView().findViewById(..). Apr 27 11:21:42 That's an assumption, ravilov Apr 27 11:21:46 doesnt matter if its part of an activity or if its a dialog Apr 27 11:22:00 nope Papipo, proven fact Apr 27 11:22:15 proven facts are the root of all evil Apr 27 11:22:42 no, root of all evil are trolls :p Apr 27 11:22:48 alright, thank you. Apr 27 11:28:26 Howdy Apr 27 11:30:56 ravilol Apr 27 11:31:48 ravilol - if a normal lol just isnt enough? :p Apr 27 11:36:46 er Apr 27 11:36:47 odalol? Apr 27 11:38:39 trying a new odameme? Apr 27 11:39:15 I danijol'ed so hard. Apr 27 11:41:05 why does my searchview disappear when I set searchViewStyle with appcompat --- Apr 27 11:41:08 -_- Apr 27 11:41:24 this doesnt make sense at all Apr 27 11:43:46 no man, it has to work along with the name Apr 27 11:45:43 nvm im stupid Apr 27 11:45:47 searchview with appcompat I remember has another approach to achieve it Apr 27 11:45:49 wrong parent in style Apr 27 11:46:01 mainly when getting results Apr 27 11:46:24 it does not work when you dont set Widget.AppCompat.SearchView as parent style for searchviewstyle Apr 27 11:46:39 funny fact: tutorial post from chris b. sets another one. Apr 27 11:53:47 danijoo, the follow-up question was dev related :) Apr 27 12:07:16 Quacked, ? Apr 27 12:11:55 is this a leak or is this a leak? http://prntscr.com/6yq30q Apr 27 12:13:26 danijoo: damn Apr 27 12:13:37 danijoo: welp Apr 27 12:13:58 stuff like that is why i upgraded to 8GB Apr 27 12:14:24 OmegaVesko, I have lots of other stuff running too, thats why its 90% Apr 27 12:14:36 ah Apr 27 12:14:37 but still. AS shoudnt do that Apr 27 12:15:15 it usually has arround 1gb, but I got an internal crash (message at top right) and since that, it slowly begins to eat my memory ^^ Apr 27 12:17:44 danijoo: what do you say on this code? Apr 27 12:17:45 http://pastebin.com/BTWAekKe Apr 27 12:17:48 i feel it's bad Apr 27 12:17:55 part of a code review I'm doing Apr 27 12:18:24 im wondering why one want to remove all fragments Apr 27 12:18:45 because it looks like a get-out-of-jail method to not need to track whats currently visible Apr 27 12:18:46 there was an issue due to trying to maintain configuration changes Apr 27 12:19:01 because we were forced to do it ourselfs Apr 27 12:19:05 *ourselves Apr 27 12:19:16 due to some technical issues with camera resources Apr 27 12:20:07 the name doesnt say what the method does though. Apr 27 12:20:15 detach().attach() Apr 27 12:20:32 divorce? Apr 27 12:20:38 yeah, it has a different name in our sources Apr 27 12:20:44 had to do some bad obfuscation Apr 27 12:20:46 :P Apr 27 12:20:48 :p Apr 27 12:21:02 it looks ugly, but if it works for you.. ;) Apr 27 12:21:20 but the commit in the loop instead of at the end?! Apr 27 12:21:23 i feel that's bad Apr 27 12:21:31 the actual name is "respondToConfigurationChange" Apr 27 12:21:52 yeah but from your description the reason to add this method already is a hacky one. Apr 27 12:22:07 so it doesnt matter if the method itself does the same ^^ Apr 27 12:22:29 yeah Apr 27 12:22:33 but about the commit Apr 27 12:22:37 what say you? Apr 27 12:22:58 dunno. My repos are full with stuff like that :'D Apr 27 12:23:30 for a team, I'd let that through but insist on a good documentation why this is there Apr 27 12:24:37 well, the answer i got was "if I'm not wrong each transaction should have it's own commit. anyway, this is the way it worked for me. I think the overhead (if it is possible at all ) is not a big deal. " Apr 27 12:25:12 ^^ Apr 27 12:25:28 that would make an awsome method comment Apr 27 12:25:44 "this is the way it worked for me although each should have its own commit" Apr 27 12:27:24 danijoo: looking at BackStackRecord.Java Apr 27 12:27:51 all it does is enqueue the action for later, so only the execution is time consuming Apr 27 12:28:01 so, I will allow Apr 27 12:41:31 danijoo, regarding rooted devices Apr 27 12:41:53 it was hrs ago :p Apr 27 12:45:59 Im at work ;) Apr 27 12:48:42 poor soul Apr 27 12:48:46 Hey Apr 27 12:49:16 I've recently started developing from android, and I'm wondering how games are usually created Apr 27 12:49:34 I come from an iOS background where 3rd party API's are used such as cocos2d Apr 27 12:49:51 AllTuna, if you want it really simple: Unity Apr 27 12:50:07 danijoo, well, I'm learning to ' Apr 27 12:50:19 develop so that I don't have to use an engine Apr 27 12:50:47 then you should have a look at libgdx :) Apr 27 12:51:02 its still cross platform but in java Apr 27 12:51:07 i love unity Apr 27 12:51:18 you really dont want to reinvent the wheel for games in android Apr 27 12:52:07 danijoo, is libgdx usually used for game development on android? Apr 27 12:52:11 as apposed to Unity Apr 27 12:52:16 yes Apr 27 12:52:16 there is no usually Apr 27 12:52:23 some use it, some use something else Apr 27 12:52:26 Are there other API's I should know about Apr 27 12:52:34 I've been to a libgdx tutorial Apr 27 12:52:37 workshop session* Apr 27 12:52:41 pretty easy stuff Apr 27 12:52:45 they made a lfa Apr 27 12:52:47 yes. every lib that is on the first page when you google "android game development" Apr 27 12:52:57 they made a flappy bird clone Apr 27 12:54:00 Is a 3rd party API required? Apr 27 12:54:18 AllTuna: for what? Apr 27 12:54:38 Game development on android Apr 27 12:55:01 I think you mean third party library Apr 27 12:55:04 well, you can write a framework from scratch using the NDK and OpenGL Apr 27 12:55:06 so not necessarily Apr 27 12:56:30 only do that if you want to learn whats going on though Apr 27 12:56:37 no point in reinventing the wheel Apr 27 12:57:03 I figured that was implied. :p Apr 27 12:57:26 AllTuna, sound like it isnt :p Apr 27 12:58:08 Naa, I'm just wondering if the android SDK has anything Apr 27 12:58:45 Yeah, it has native OpenGL ES support. http://developer.android.com/guide/topics/graphics/opengl.html Apr 27 12:58:47 yeah. it has. like assembler has everything to write games in it. Apr 27 12:58:48 Does Unity allow for a lot of customisation? Does having programming knowledge give an advantage? Apr 27 12:58:57 but you dont want to write GTA V in assemlber :) Apr 27 12:59:23 AllTuna: Uh, yeah. Unity uses C# for gameplay code. You'll need to know it to make games with it, unless you buy one of those visual scripting things. Apr 27 12:59:26 AllTuna, programming knowlege is a requirement, not an advantage Apr 27 12:59:51 <_genuser_> but having the knowledge is a _bit_ of an advantage, no? Apr 27 13:00:16 _genuser_, if advantage means "not doable without", then yes Apr 27 13:00:27 Oh good. Apr 27 13:00:40 But C#.. uch. I'm not into learning another C language.. Apr 27 13:01:04 AllTuna, you can also use javascript (and goo) in unity Apr 27 13:01:10 C++ Apr 27 13:01:10 <_genuser_> danijoo: I don't know, I just wanted to jump into a conversation with a light joke... Apr 27 13:01:10 ? Apr 27 13:01:34 AllTuna, javascript, goo or c#. Apr 27 13:01:35 <_genuser_> errr C# is pretty much like java, every java dev moving to c# says pretty much taht. Apr 27 13:01:54 I'm moving from C to java Apr 27 13:01:57 yeah. you can basically start c# with java skills + a 10 minute tutorial Apr 27 13:02:06 AllTuna: C# is basically Microsoft Java. It's not a low-level language like C/C++. Apr 27 13:02:25 AllTuna, if you dont know java, theres n point in starting anything on android Apr 27 13:02:30 just learn it and come back after that Apr 27 13:02:42 I just don't know whether to just use an API, or Unity Apr 27 13:02:59 I'll be doing a lot of other stuff like apps Apr 27 13:03:58 Well, if you want to stick with Java for everything then LibGDX is good Apr 27 13:04:22 yep Apr 27 13:04:40 I think its the most use one for android Apr 27 13:05:55 There are some pretty popular games in the Unity showcase Apr 27 13:06:06 Yeah. even blizzard uses it Apr 27 13:06:06 Games which are topping the charts.. hmm Apr 27 13:06:15 hearthstone is writting in unity for example Apr 27 13:06:23 written* Apr 27 13:06:40 not that many popular games in the libgdx showcase it seems Apr 27 13:06:48 I guess there are just as many chart topping games written in LibGDX though Apr 27 13:06:53 Oh, really/ Apr 27 13:07:17 its just hard to find them in libgdx Apr 27 13:07:28 because they list every game Apr 27 13:07:31 or most. Apr 27 13:07:38 ok Apr 27 13:07:50 I just looked at the showcase section at http://libgdx.badlogicgames.com/ Apr 27 13:08:14 I see those 8 games are updated for each refresh of the site Apr 27 13:08:16 http://www.appbrain.com/stats/libraries/details/libgdx/libgdx Apr 27 13:08:28 The games just seem far more trivial Apr 27 13:08:43 there are some 5mio+ games written in libgdx Apr 27 13:08:49 Hi all! I have an app that goes from Activity A on to Activity B on to Activity C. If a user presses the back button in activity C, I want the app to go back to activity B and on a button press I want activity C to jump back to activity A (without starting a new activity). How can I achieve this? Apr 27 13:09:11 Are there any good android game dev tutorials you guys can recommend? Apr 27 13:09:12 Are most people using Unity these days? It seems to be taking over Apr 27 13:09:21 AllTuna, you cant tell that Apr 27 13:09:31 Unity is a bit more professional Apr 27 13:09:44 Nimyz override the back button and set it to start activity A Apr 27 13:09:46 its a huge engine you can use for nearly everything Apr 27 13:10:05 and you have to pay for some features Apr 27 13:10:11 keep that in mind Apr 27 13:10:29 Can Android JAR libraries have minSdk/other manifest prefs in them, and will they affect the app's minSdk? Apr 27 13:10:31 jutsi, but I don't want activity A to be started again, I want to jump back to activity A as it was before Apr 27 13:11:00 is there a way I can destroy both activity B and C from activity C? Apr 27 13:11:03 What do you think would be more beneficial, learning C#, and Unity, alongside Java and the Android SDK, or using the API Apr 27 13:11:13 It seems like a lot to learn, but might be worth it Apr 27 13:11:32 I'm starting from scratch on the Android side Apr 27 13:11:33 Nimyz http://developer.android.com/training/basics/activity-lifecycle/recreating.html Apr 27 13:11:56 i don't remember how to save the states by heart, but that guide should help you, i think Apr 27 13:13:43 Hmm, deployment on both iOS and Android devices.. Apr 27 13:13:57 AllTuna, Unity deploys to everything Apr 27 13:14:05 Desktop, iOS, android, Mac OS Apr 27 13:14:23 Well considering I'm an iOS dev, that may prove handy, instead of developing on two different API's Apr 27 13:14:33 Probably would save a lot of time Apr 27 13:14:43 true. Apr 27 13:15:20 So C# is nothing like C++ or Obj-C? Apr 27 13:15:27 Assasins creed identity is writting in unity Apr 27 13:15:30 Deus Ex as well Apr 27 13:15:40 AllTuna: It shares some syntax, but generally it's quite different (and a lot easier) Apr 27 13:15:49 Damnit, another language.. Apr 27 13:15:53 ANOTHER Apr 27 13:16:20 Is there much of a learning curve for Unity? Apr 27 13:16:24 Eh, if you know the concepts you can have a grasp on it in like 3-4 hours Apr 27 13:16:31 Unity is pretty easy Apr 27 13:16:31 Sure Apr 27 13:16:35 jutsi, thanks ill have a look at it Apr 27 13:16:38 especially with the graphical editor Apr 27 13:16:52 no problem :) Apr 27 13:17:02 I'm a beginner at Android, Java, Unity, and C# Apr 27 13:17:19 What path should I take for least resistance? Apr 27 13:17:46 Will I need to learn how to develop apps to understand Unity? Apr 27 13:17:58 Not really. There isn't much overlap. Apr 27 13:18:20 Unity is probably your best option, especially if you're targeting multiple platforms. Apr 27 13:18:24 <_seb> /ignore -channels #mwsf * JOINS PARTS QUITS NICKS Apr 27 13:18:35 <_seb> sry :/ Apr 27 13:18:44 Does unity require any Android knowledge at all? Apr 27 13:18:53 AllTuna, not for the basics Apr 27 13:19:00 Hello, I jsut install android studio on my macbookpro latz 2009, my code compiles and works on my real nexus 5. However if I run my emulator I keep getting a black screen. It outputs: HAX is working and emulator runs. Apr 27 13:19:04 Damn, so it realy is completely seperate Apr 27 13:19:05 Nah. Unless you want to do something like implement Admob ads from scratch. Apr 27 13:19:13 Hmm Apr 27 13:19:20 I did some googling and discovered that it might be because my mbp has a intel core 2 duo Apr 27 13:19:27 Makes me wonder why I'm learning Android dev.. haha Apr 27 13:19:32 Quitta: Is Genymotion an option? Apr 27 13:19:37 * claint is thinking about removing all the listeners and making them all Otto events.... Apr 27 13:19:45 I have no idea what that is OmegaVesko :/ Apr 27 13:19:52 well. you cant expect to deploy to android if you dont want to learn something completly new Apr 27 13:19:57 2/20 Apr 27 13:19:59 Quitta: https://www.genymotion.com/ Apr 27 13:20:01 OmegaVesko, yes. its awesome Apr 27 13:20:13 a lot of people here use it Apr 27 13:20:32 hmm, does that integrate in android studio OmegaVesko ? :) Apr 27 13:20:37 It does Apr 27 13:20:47 I could give it a shot. Apr 27 13:20:56 yeah. it integrates the same way as the normal emulator Apr 27 13:21:01 yeah genymotion is pretty useful, despite some crazy caveats it saves you a lot of time Apr 27 13:21:02 but its 100 times faster Apr 27 13:21:12 Pretty dissapointed that the default didn't work, would've saved me some time. Apr 27 13:21:14 actually its faster than most real devices Apr 27 13:21:19 (one of the caveats to illustrate: http://i.imgur.com/vYCVWCA.png) Apr 27 13:21:41 adq: What am I looking at? Apr 27 13:21:44 (it alters the audio signal) Apr 27 13:21:46 ah Apr 27 13:22:09 and would that work with the old macbookpro I'm using? Apr 27 13:22:16 It should, yeah Apr 27 13:22:20 can't hurt to try Apr 27 13:22:26 true Apr 27 13:22:34 well thanks for the tip, let me fire that up! Apr 27 13:22:47 it works everywhere where the mormal emulator works Apr 27 13:23:01 just be sure that you don't plan to test an ARM lib on genymotion Apr 27 13:23:13 because it's x86 based Apr 27 13:23:18 despite there is arm translator Apr 27 13:23:28 adq, theres an on-the-fly translation tool Apr 27 13:23:32 the support however looks very limited for free users. :/ Apr 27 13:23:33 that makes arm libs working Apr 27 13:23:34 yup but there are issues too Apr 27 13:23:39 true Apr 27 13:24:06 Quitta, well. free emulation isnt that bad if you ask me. Apr 27 13:24:12 anyway i'm very happy with genymotion (bought the indy license last year, and renewed it this year) Apr 27 13:24:16 worth the price Apr 27 13:24:18 what part of the payed stuff do you miss? Apr 27 13:24:23 definitly worth the price Apr 27 13:25:55 Is there btw a way to turn of HAXM, to check if the HAXM is actually my initial problem? Can't seem to find documntation for that. Apr 27 13:26:11 maybe a commandline options Apr 27 13:26:18 or uninstall it :p Apr 27 13:26:41 It seems to came preinstalled :p Apr 27 13:26:47 oh ^^ Apr 27 13:27:28 at least I installed a clean version of android studio on this formatted mbp and it logs: HAX is working ^^ Apr 27 13:28:39 Quitta, Android SDK-Manager -> Extras -> Intel x86 Emulator Accelerator -> uninstall ;) Apr 27 13:28:49 ty :) Apr 27 13:41:45 Any working code for drag & dropping views? I'm a rookie and the official one is a big fat NOPE (lacking a '{', lacking a ');', my IDE cannot resolve like 3 things of that code, etc). Link for reference: developer.android.com/guide/topics/ui/drag-drop.html Apr 27 13:42:23 you arent able to resolve missing } )? Apr 27 13:42:52 nono, I am not able to resolve other things Apr 27 13:42:54 for example: Apr 27 13:43:00 yeah obvious: new View.OnLongClickListener() { Apr 27 13:43:05 it lacks } ); Apr 27 13:43:07 when it goes ClipData.Item item = new ClipData.Item(v.getTag());, my IDE gives an error Apr 27 13:43:14 View.DragShadowBuilder myShadow = new MyDragShadowBuilder(imageView); also gives an error Apr 27 13:43:17 not the first time their example got syntax error Apr 27 13:43:35 worst i saw was on developer blog post about migrating to lollipop Apr 27 13:43:43 Lorenz9, what error? Apr 27 13:43:47 yeah it's really embarrassing, can't learn shit like this Apr 27 13:43:58 http://android-developers.blogspot.fr/2014/10/appcompat-v21-material-design-for-pre.html HERE Apr 27 13:44:12 @color/my_awesome_red <--- " !!! Apr 27 13:44:28 again, i would submit an issue if this was taken seriously and fixed Apr 27 13:44:30 but it's not. Apr 27 13:44:30 v.getTag() gives me a 'Cannot resolve constructor' Apr 27 13:44:42 adq, what the error there? Apr 27 13:44:44 ClipData.MIMETYPE_TEXT_PLAIN gives me 'Cannot resolve symbol' Apr 27 13:44:49 " != ” Apr 27 13:44:52 it will not work Apr 27 13:45:31 well. thats the position where they want to remind you to not blindly copy and paste stuff :p Apr 27 13:45:44 this is not how it should be done lol Apr 27 13:46:10 I agree but I dont thing this is a problem. everyone reading this knows it must be "" Apr 27 13:46:18 I agree and I've been trying to solve this for days now, but if I get a "cannot resolve symnbol" there's fuck all I can do ;_; Apr 27 13:46:36 Lorenz9, I think you have to cast it to something Apr 27 13:46:42 but I dont worked with ClipData yet Apr 27 13:47:05 look at clipdata.item class what the constructor needs Apr 27 13:47:08 ah wait that might be possible danijoo Apr 27 13:47:21 alright so that's one problem fixed Apr 27 13:47:24 \o/ Apr 27 13:47:40 I think you need to add a toString() Apr 27 13:48:43 Alright that worked, awesome. Really thanks Apr 27 13:48:48 I agree it sucks they make mistakes like that in their docu. but you should be able to resolve probmels like that. just look at the documentation on used classes and your errors :) Apr 27 13:48:49 I'm off to keep tinkering then Apr 27 13:48:53 you're welcom Apr 27 13:49:03 and good luck :p Apr 27 13:49:06 Yeah I still have to learn to understand the documentation.. Apr 27 13:49:30 have fun :)) Apr 27 13:50:12 man man Apr 27 13:51:10 in Android Studio, what is the best way to take one app and make it the base for a new app, sharing common code but under a new package name? Apr 27 13:52:33 I imported my one project as a module to this new one, but that just seemed to copy all the code into the new projects directory, I want the base code to be shared Apr 27 13:55:05 MooGoo: yes that would be expected, in order to plan for sharing base code, the base code needs to be developed as modules, so a new project would only use a module, example> a module for account creation, a module for common utils, etc Apr 27 13:56:44 but how would you use those modules from a common source base...instead of copying the modules into new projects Apr 27 13:58:25 I just wanted to import the whole base project as a single module in the new one, but if it copies the code, any changes I make to the base project will get lost in the new one Apr 27 14:00:13 MooGoo: you can try setting the project as a library project by updating the manifest Apr 27 14:01:30 MooGoo: then import the module in a new project, and then import the classes-open activity via intents from the new project Apr 27 14:02:27 so if a project is set as a library project...then it wont be copied? Apr 27 14:03:55 the project imported needs to be in the same root folder as your new project in order to compile the overall project Apr 27 14:04:12 How can I pop a fragment from the backstack before a replace, without the fragment above to be called ? Apr 27 14:04:23 hm Apr 27 14:04:35 it is a better idea to maintain the version of the your base code with your new project Apr 27 14:04:46 I'm doing something like this https://www.irccloud.com/pastebin/c4ai8VH5 Apr 27 14:04:49 what's that mean Apr 27 14:05:03 if you want you can keep it separate, but then of you change somethings in the base code, your new project may not build if there is any issue Apr 27 14:05:40 well that's kinda what I want, since the base code is by no means done and I'll still make updates to it Apr 27 14:06:12 prajna: well that's kinda what I want, since the base code is by no means done and I'll still make updates to it Apr 27 14:13:16 In AS the logcat has stopped working and I can't seem to get it back even after a restart. Anyone else experienced this? Apr 27 14:14:18 logcat randomly stops/doesnt work in AS all the time for me Apr 27 14:14:29 sometimes adb kill-server/adb start-server helps Apr 27 14:14:32 theblang: adb kill-server; adb start-server; Apr 27 14:14:51 yiati, MooGoo Oh yeah, I've tried all that. It usually does fix it Apr 27 14:15:18 sometimes it doesn't, very annoying Apr 27 14:17:15 sometimes only a full restart seems to work :/ Apr 27 14:22:29 Is it possible to have json highlighting in Android Studio? Apr 27 14:22:29 Hello, does anyone of you can point to some sample on how to send a JSON object via Xamarin? Apr 27 14:22:48 yoavst, unfortunatly no i think Apr 27 14:23:10 I don't get why it is just ultimate feature Apr 27 14:23:10 i think its a premium feature of intellj and therfor wont be available Apr 27 14:23:19 because they wont allow plugins for it Apr 27 14:23:19 is it iilegal to create a plugin? Apr 27 14:23:48 OmegaVesko: wow, that Genymotion is blazingly fast, thanks again! Apr 27 14:23:49 you are not allowed to publish it Apr 27 14:23:57 you can create it for yourself of course Apr 27 14:24:14 if I'll set .js Apr 27 14:24:22 will it work? Apr 27 14:24:23 Quitta: no problem :) Apr 27 14:24:43 no :/ Apr 27 14:24:50 i've got a bunch for html/js content i need to access via native code (ideally via regular filesystem path). is there somewhere i can drop resources in my apk that will be accessible on the filesystem? Apr 27 14:24:58 res and assets don't seem right Apr 27 14:25:27 livtyler: Google a json C# library Apr 27 14:26:59 < danijoo> because they wont allow plugins for it Apr 27 14:27:05 that's my whole problem with intellij Apr 27 14:27:21 this is pretty much the whole reason rms created the gpl for emacs Apr 27 14:27:22 my mother got Intellij IDEA ultimate Apr 27 14:27:29 she works for HP :D Apr 27 14:27:31 myke: Who says they won't allow plugins? Apr 27 14:27:43 yiati: from what i just pasted, danijoo Apr 27 14:28:04 myke, your problem with it is they dont allow you to release features they have in premium (which actually finance their free tools) Apr 27 14:28:07 makes me a bit skittish about kotlin as well, since selling more intellij's is an explicit goal Apr 27 14:28:13 theys very selfish Apr 27 14:28:29 myke: Did you post this a while ago, I see no paste, and yes you can create plugins Apr 27 14:28:38 so is there any way to import a module into an AS project from a common code base, instead of copying that code into the project? Apr 27 14:29:08 myke, I also like all jetbrains employees to work for free, but I think they wont agree ;) Apr 27 14:29:15 danijoo: but if you make a plugin, which happens to implement something they're about to release as a paid feature, then your plugin is banned? Apr 27 14:29:31 myke, did this ever happend? I dont think so Apr 27 14:29:38 not yet Apr 27 14:30:25 not with intellij anyway...it's pretty much what happened with gosling emacs decades ago though Apr 27 14:30:40 danijoo: Did a full restart too, lol. Still no dice. Using logcat in a shell works, just not in AS Apr 27 14:30:54 theblang, weird Apr 27 14:31:14 huh? Apr 27 14:31:34 yeah its really a shame a company want to make money :) Apr 27 14:31:51 danijoo: you're missing the point, i guess Apr 27 14:31:52 even if jetbrains doesn't allow a plugin in their repo, their license doesn't block you from publishing it elsewhere and installing from disk Apr 27 14:32:11 pfnQ, didnt know that. Apr 27 14:32:21 myke, I do? Apr 27 14:32:31 the plugin dialog has an install from disk option Apr 27 14:33:01 pfnQ, yes. As I said, you are allowed to create it but maybe the TOS says that you cant distribute Apr 27 14:33:05 I didnt read it tbh Apr 27 14:33:15 personal use I guess Apr 27 14:33:15 how does that work with AS anyway? if you buy full intellij do you get everything AS has + for-pay stuff? Apr 27 14:33:27 no Apr 27 14:33:29 myke, thats a problem I cant understand :/ Apr 27 14:33:33 there is no AS premium Apr 27 14:33:36 you can't buy AS Apr 27 14:33:55 so how does AS make jetbrains any cash? Apr 27 14:34:11 myke, google paying them for support Apr 27 14:34:15 ok Apr 27 14:34:45 Idea community is free Apr 27 14:34:47 they fork it Apr 27 14:35:02 is it possible to get a file pointer to the assets folder for use in NDK code? Apr 27 14:35:18 thebishop, call into java Apr 27 14:35:45 anyway the whole point of this was...emacs does have a json mode...presumably if someone made a json plugin for intellij they would not be allowed to sell it? or even publicize it? Apr 27 14:35:46 pfnQ, how so? Apr 27 14:36:02 thebishop, http://stackoverflow.com/a/13317651/1373568 Apr 27 14:36:10 myke, read the license Apr 27 14:36:11 first link after typing: "android asset folder from ndk" Apr 27 14:36:32 (implicitly meaning: search and show some effort before asking) Apr 27 14:36:47 i dont get what emacs has to do with intellj right know. Apr 27 14:36:59 or are you referening to emacsIDEA plugin Apr 27 14:37:12 danijoo: the original point was someone asking about a json mode for intellij Apr 27 14:37:27 which does seem like it could be a very useful thing to have Apr 27 14:37:28 myke, yes and I set -> not allowed to publish because its premium feature Apr 27 14:37:37 s/set/said Apr 27 14:37:46 ok, so if someone codes such a thing for community edition from scratch? Apr 27 14:37:48 and then you came up with emacs Apr 27 14:37:58 myke, then he can use it for hisself Apr 27 14:38:00 i guess Apr 27 14:38:05 again: I didnt read the license Apr 27 14:38:06 because this has all happened before, and it is all happening again Apr 27 14:38:17 quick question : there is a image view,if user swipes right verify icon will overlap to img view (if u used tinder app before almost same thing) how can i do that ? imageview + imageswitcher ? Apr 27 14:38:18 But im pretty sure its in there because there is no such plugin :) Apr 27 14:38:37 adq, thanks. i've seen this solution before. i'm not sure this will work though, because i need native code to expose an entire /www dir, not specific files. i have the software working currently by pushing the www folder to /sdcard/myapp/www first Apr 27 14:38:40 and it would be stupid from jetbrains if it would not be in there Apr 27 14:38:52 there's a reason the successful open source projects are overwhelmingly dev/server/backend things Apr 27 14:39:24 myke, yes. but jetbrains wouldnt be that far if there wouldnt be devs being paid to write it Apr 27 14:39:39 s/jetbrains/intellij Apr 27 14:40:49 yes, that's a pro for that model Apr 27 14:41:42 seems like intellij uses a default apache 2 license. so you should even be allowed to publish said addon. Apr 27 14:42:04 they wont allow it on their repo ofc, but you can put it on github for example Apr 27 14:42:53 (dont quote me on that) Apr 27 14:43:18 why are we arguing this if we haven't read the license Apr 27 14:43:40 yes, the license is apache2, it does not block plugins Apr 27 14:44:04 yep. so you are free to do whatever they want Apr 27 14:44:14 and they are free to decide what plugin they want in their own repo Apr 27 14:44:31 all other ways of destribution are ok though Apr 27 14:45:07 of. course Apr 27 14:45:47 and intellij has always been free for open source developers Apr 27 14:47:07 How can I set the next focus for an editText to the editText left down from the first one? I tried android:nextFocusDown and nextFocusForward set to the id of the second editText, but it is not working. Apr 27 14:48:26 you have to set it on the first one Apr 27 14:48:44 nextFocusForward="@+id/secondEditText" Apr 27 14:49:04 Yes, I have that set and also nextFocusDown="@+id/secondEditText" Apr 27 14:49:19 But the focus jumps to the thid editText. Apr 27 14:49:35 show the xml Apr 27 14:57:50 I “randomly” get “Failed to resolve….” for certain dependencies in my gradle file. What are some things I should check? Apr 27 15:00:06 what does this msg mean? Assertion failed: The conflict not found for the file: [FILE PATH HERE] Full ls-files output Apr 27 15:00:08 BooeyOH, randomly when building or randomly when suncing Apr 27 15:00:49 danijoo, when syncing after adding repos (in this case, I was adding fabric/crashlytics using their plugin) Apr 27 15:02:12 hm. maybe some problems with the repo source Apr 27 15:02:23 you can try setting gradle to offline mode Apr 27 15:02:31 (after a successful sync) Apr 27 15:03:36 can I got buildType from PackageManager info? Apr 27 15:03:44 I mean is .apk debug or not Apr 27 15:03:57 woozly, you can get it in your code without using BuildManager Apr 27 15:04:06 if(BuildConfig.DEBUG) {....} Apr 27 15:04:30 danijoo: I want to get this from .apk file :) not from runtime Apr 27 15:04:34 Does anyone know the Androidify app? I want to implement something like their scrollable picker (the one for picking clothes) Apr 27 15:04:41 I created a new project in android studio and using Theme.AppCompat.Light theme in my app but it is not showing any ActionBar and optionsMenu items background is transparent by default whereas I want it white. Why is this happening? Apr 27 15:05:44 woozly, if its debuggable or not should be somehow available to the systme. Apr 27 15:06:23 danijoo: This is my xml: http://pastie.org/private/ybiil6bdjprxv2ngqcaqg 5 to 6 is working, 4 to 5 is not. Apr 27 15:06:50 woozly, PackageManager#getApplicationInfo Apr 27 15:07:06 danijoo: okay.. thank you, let's see Apr 27 15:07:30 ApplicationInfo has a FLAG_DEBUGGABLE Apr 27 15:08:05 danijoo: oh.. yeah! thank you! Apr 27 15:09:01 is there anyway to include a library or project into an AS project in such a way so that any changes to the library project source get included in the new project? Apr 27 15:09:38 MooGoo, include it as maven/gradle source or library project Apr 27 15:10:25 danijoo, that's done through build.gradle in /app correct? Apr 27 15:10:34 would including it as a library project mean compiling it to an AAR or something? Apr 27 15:10:47 BakerBCN, AS settings Apr 27 15:11:10 MooGoo, no. that would mean it gets recompiled everytime your app gets compiled Apr 27 15:11:36 Nikks: You are using a bad Activity class, that's why Apr 27 15:11:55 every time I try to import the base project as a module to this new project, it just copies the entire source directory into the new project, which is not want I want Apr 27 15:12:12 Nikks: Does your activity inherit ActionBarActivity? Apr 27 15:12:34 you're importing it wrong :p Apr 27 15:12:45 dimitrovskif No it is extending FragmentActivity Apr 27 15:13:37 Nikks: Try extending android.support.v7.app.ActionBarActivity Apr 27 15:14:12 how should I be importing it... Apr 27 15:14:57 Nikks: (if you are using support-v7, if minSdk is big enough you can just use Activity) Apr 27 15:15:01 MooGoo, oh wait, the library is not part of the main source folder? Apr 27 15:15:10 I have problems focusing the next EditText. This is my xml: http://pastie.org/private/ybiil6bdjprxv2ngqcaqg Navigation from 5 to 6 is working, 4 to 5 is not. How can I fix this? Apr 27 15:15:28 danijoo: no, it's a seperate regular AS project Apr 27 15:15:33 dimitrovskif Ok! now it is working!! Thanks a lot mate. But now the action bar color is dark grey not white. Apr 27 15:15:51 MooGoo, im not sure then. It might have to be in the same folder if you want it to be a library project Apr 27 15:16:36 I just want it to be able to somehow link to the external source instead of copying it in, so any changes I make to the external source get included in the new project Apr 27 15:17:31 MooGoo, if you dont want it in the same directory, you can still use the gradle way and make private gradle repository Apr 27 15:17:49 if you do changes to the repo, just publish it and your main project will download the changes for the next build Apr 27 15:18:05 you can even do this locally without publishing your repo to everyone Apr 27 15:18:13 hm Apr 27 15:18:17 can somebody point me to where i have to look at ? An imageview in center,if user swipes right a green tick will appear and overlap to image Apr 27 15:18:38 so I'd have to turn my main project into a gradle repo somehow Apr 27 15:19:55 it its already a gradle project that shoudnt be more than a few lines in your build.gradle Apr 27 15:21:05 how do I setup a private repo? Apr 27 15:21:28 google it Apr 27 15:22:07 Nikks: For some reason I have the same one... It's an ugly actionbar Apr 27 15:22:14 what do I even google, all I find is gradle dependency setup junk Apr 27 15:22:31 private maven Repository Apr 27 15:22:38 and gradle publish to maven Apr 27 15:23:22 dimitrovskif so there isnt any way to change the color of action bar? Apr 27 15:24:03 Nikks: #YOURcolor Apr 27 15:25:53 Nikks: I told you there is. Apr 27 15:26:07 Nikks: item name="colorPrimary">#YOURcolor Apr 27 15:26:21 dimitrovskif ok let me try Apr 27 15:29:11 dimitrovskif api level required for this attribute is 21 whereas mine is 11 :-( Apr 27 15:29:34 Nikks: Use the appcompat attribute then. Apr 27 15:30:20 dimitrovskif which is?? Apr 27 15:31:38 Nikks: I think it is colorPrimary too, do a style with parent Theme.AppCompat.Light and set colorPrimary Apr 27 15:32:22 dimitrovskif i am using the same Apr 27 15:34:05 Nikks: Are you using latest appcompat and Android SDK? Apr 27 15:34:11 nob question: after cloning a repo from github, AS ask me if I want to add some iml's files to Git. Should I do it? Apr 27 15:34:28 dimitrovskif yes Apr 27 15:35:07 Nikks: Hmm, replace the theme with android:Theme.Material then Apr 27 15:35:22 oh nvm that's not appcompat Apr 27 15:36:06 Nikks: It seems that Material theme is not available for Android < 5 Apr 27 15:36:43 dimitrovskif its also not available for 11 Apr 27 15:37:06 it is available above 21 Apr 27 15:38:04 guys is there a way to track variable value during program execution? like to breakpoint where the program changes its value Apr 27 15:38:41 gdrc: Logging Apr 27 15:39:13 yiati_: the variable is used in 3d part dll Apr 27 15:39:45 Nikks: Use the Toolbar then Apr 27 15:40:07 lol wrong channel sorry Apr 27 15:42:16 Nikks: Your best option would be to use AppCompat.Light for pre-5.0 devices and Material for > 5.0 devices; instead of actionbar I would suggest android.support.v7.widget.Toolbar Apr 27 15:43:16 dimitrovskif ok i should try that. Thank you very much for your help. Apr 27 15:46:53 wtf. Otto is broadcasting an event that I have never produced. Apr 27 15:47:10 doubtful Apr 27 15:47:33 you either sent the event or someone is producting it Apr 27 15:48:15 Nope. no one has sent the event. They are all commented. Apr 27 15:48:40 I'll chase it some more, of course. Apr 27 15:48:52 to make sure it is not my error. Apr 27 15:50:15 Wouldn't the call stack show where it's being broadcast? Apr 27 15:50:30 but the produceEvent functions are even grayed out in Android Studio at the moment. Apr 27 15:50:47 they're invoked reflectively Apr 27 15:54:57 I am baffled. Apr 27 15:57:47 there is nothing in the code that calls the bus to produce that event. nothing. and yet that event is getting produced. Apr 27 15:58:32 I have been using otto for a while, this is the first time that this kind of thing happened. Apr 27 15:59:14 Both posting and registering can produce an event Apr 27 16:00:02 hmmm. there we go. Apr 27 16:00:19 It is a fragment that registers to the bus. Apr 27 16:00:50 It registers for subscriptions. Apr 27 16:01:21 Yes, it is the first piece of code that I have tried to @Subscribe and @Produce at the same time. Apr 27 16:01:30 So how do you handle that? Apr 27 16:03:25 So I guess I am using Produce wrong? It is not even necessary to produce events? Apr 27 16:03:41 Has anyone used RecyclerView horizontally? I want to pick from a scrolling horizontal ist Apr 27 16:04:22 hello guys ! I am writing a report ( for school) and i need to write about the connectivity capabilities of mobile devices ( the GSM/CDMA, wifi,bluetoothh chips, what are the capabilities and limitations of the hardware, etc). So far, my research shows that the only architecture worth taking into consideration is ARM, with over 90% of the market. Is this true? if so, do you know where i could find some research about the connectivity capacities of ARM? Apr 27 16:04:22 I am looking specifically into wi-fi offloading, and if it possible to do software emulation for this. to be more speciffic, i would like to know whether it is possible to get some identification information from the GSM chip(SIM card) that could be used for connecting to a managed wi-fi Apr 27 16:04:33 dimitrovskif: Yes I did. You just pass a horizontal layout to it. Apr 27 16:04:54 the hardware has some drivers that are used by the OS in order to perform an operation. Depending on the architecture, they have some standards about what they should do Apr 27 16:05:00 claint: Any code example? There seems to be a lot of boilerplate, not sure if I should implement it. I want something like a horizontal picker, is it worth it? Apr 27 16:05:17 my task is to investigate this issue and summarize it in a few pages Apr 27 16:05:47 Ok, so I figured I was using @Produce wrong. Apparently you don't even need them to just post the events. Apr 27 16:06:02 SimonVT: thanks for the hint. Apr 27 16:06:06 (in theory) could some software running as a service on your mobile phone do the following steps: 1) start listening when it is on a specific(designated) wifi network 2) when a phone call is received AND you are on the WiFi , switch to VOIP Apr 27 16:06:23 soLucien: yes Apr 27 16:06:26 claint: To populate a RecyclerView it seems I need an Adapter, a LayoutManager, a ViewHolder and what not... Apr 27 16:06:36 dimitrovskif: https://github.com/devunwired/recyclerview-playground has a good example. Apr 27 16:07:23 prajna: Yes to All ? :) Apr 27 16:07:50 sorry about the wall of text, i copied it all from #android , since it was suggested ths is a better place to ask this Apr 27 16:08:43 soLucien: yes, to detect specific network, catch the phone event, and then trigger a new connection to voip by hangging up phone call, in order for a smooth transition to voip, this needs to be done in the low level as part of android ROM Apr 27 16:10:00 prajna do you know some resources i could use as a reference? Apr 27 16:10:33 soLucien: https://fi.google.com/about/experience/ Apr 27 16:10:56 ok great i have heard about this Apr 27 16:11:04 thanks Apr 27 16:16:19 my report is focusing on wi-fi offload , and this part is about convergence between the low-cost wifi networks and telecom providers into a single unified network, and i am trying to figure out if this would be possible using the current hardware that ARM architecture provides Apr 27 16:18:57 soLucien: one of my friend srinivas jay had a research done on that, if you could search his name, but not on android Apr 27 16:20:38 soLucien: for android, you can search developer.android.com for detect wifi state, how to run a service, filter wifi by expected network by id, name, then detect phone callback with phone number, and then using the built+in voip client or using some open source library to start a voip session Apr 27 16:21:19 would be great if i could refer to his research. I am not trying to create this software, just discuss whether it is possible Apr 27 16:21:47 this kind of approach requires consensus with the telecom providers as well Apr 27 16:22:09 i can't seem to find his research on Google :( Apr 27 16:23:39 soLucien: it would not need permission from the telecom provider as long as the pause in delay from switching from phone call to voip, approx 5 secs is tolerable Apr 27 16:23:51 http://sipdroid.org/ for voip lib soLucien Apr 27 16:24:14 soLucien: detect phone call http://stackoverflow.com/a/15564021 Apr 27 16:24:20 any idea when the first beta for AS 1.3 will come out? Apr 27 16:24:28 not sure if they post updates on it anywhere Apr 27 16:24:40 getResources().getString(R.string.count_text, position, size); %1$d/%1$d Apr 27 16:24:46 im getting this errror calls 1 argument but suplies 2 Apr 27 16:24:50 whats wrong with it ? Apr 27 16:24:54 soLucien: detect wifi https://stackoverflow.com/questions/5888502/how-to-detect-when-wifi-connection-has-been-established-in-android Apr 27 16:25:31 prajna would you think it is a cool thing to do? Apr 27 16:26:01 soLucien: you would also need to test internet connectivity, and ping before initiating the voip call, because a bad latency causes impossible voip call Apr 27 16:26:09 true Apr 27 16:26:48 soLucien: i worked for a project where we implemented voip calling for use within buildings using ios and android, but not detecting phone call Apr 27 16:27:24 soLucien: im not sure of the quality issues, this may be something a calling card provider company would want to do Apr 27 16:27:32 soLucien: like keku.com Apr 27 16:28:07 soLucien: keku has separate phone calling number, and another way to call using their app which uses voip Apr 27 16:29:46 prajna awesome help Apr 27 16:29:57 yw soLucien Apr 27 16:30:22 prajna about your friend, could you tell me where i can find his research? Apr 27 16:30:41 Sirinvas Jay yelds no relevant google results Apr 27 16:32:19 soLucien: not sure, https://www.linkedin.com/in/srinivasnjay Apr 27 16:32:58 gtg Apr 27 16:34:40 Is it possible in any version of android to get the current FPS and dump it to logcat without root and without a foreground running activity? Apr 27 16:39:54 anyone ? getResources().getString(R.string.count_text, position, size); %1$d/%1$d Apr 27 16:39:55 %1$d/%1$d Apr 27 16:40:09 im getting this errror calls 1 argument but suplies 2 Apr 27 16:40:29 why it doesnt see my second parameter Apr 27 16:41:29 that's because you didn't increment your %, string name="count_text">%1$d/%2$d Apr 27 16:41:57 omg Apr 27 16:42:01 :) Apr 27 16:42:02 do you know the formal name for %1$d Apr 27 16:42:06 just curious Apr 27 16:42:14 neg Apr 27 16:42:21 first time i use this Apr 27 16:42:52 "format argument" maybe? Apr 27 16:42:55 Hello, I have a issue. We a useing Google Maps Api on a school project. I get the error message "Failed to load map. Error contacting Google servers." In the mainActivity we are using a map. The strange thing it's only on my copy of the app. I have tried to clean, rebuild, og clear saved data in app-mananger on my Samsung S5. If i run the app on another pc it works - but not on mine. Apr 27 16:42:55 (We use the same code). Does anyone have any clue on how to fix this? Yes I have used Google, and StackOverFlow. (They are only mention my issue). Apr 27 16:43:04 anyone knows how to add a keyword to the google play store search? Apr 27 16:43:09 that's what I was thinking, looks slightly different than normal Java string format args Apr 27 16:43:15 i want the app to be listed when searching that keyword Apr 27 16:43:21 but it's not in the name of the app, it's in the description Apr 27 16:48:59 anyone? Apr 27 16:51:46 adv_, the store search engine is incredibly weird, not sure it's possible. I know sony used to do an horrible hack with "LiveWare™ extension for SmartWatch", they asked developers to put that in their description Apr 27 16:51:55 so their (sony) app could find your app Apr 27 16:53:24 a single keyword might not work, you could imagine using dfgFG5345DFLSfklsdf (manually generated) to search for, but few times I did search on an explicit title (not even related to the description), the result of the query was far from being relevant, not even giving the app with the exact title i searched Apr 27 16:54:04 nobody knows what is going under the hood, but i have the feeling this is intentional Apr 27 16:54:15 also you should be aware that keywords list is forbidden in the policy Apr 27 16:55:40 finally, you should also look at their protobuf structure to understand better how you could query Apr 27 16:56:16 despite you might not have an interface to query some specific parameters (country per example) with the regular play store client Apr 27 17:02:32 Hello. I have an app out on google playstore but for some reason the app isnt available on Samsung galaxy S6. Is there any special screen size i need to add in order to include the device? Apr 27 17:12:00 hey, anyone got genymotion to play video? Apr 27 17:15:30 viran, I can watch a videoview from genymotion if that is what you are asking. Apr 27 17:16:32 did you anything special to make it work? Apr 27 17:17:45 I get something like: /libc﹕ Fatal signal 11 (SIGSEGV) at 0xabde0000 (code=2), thread 1240 () Apr 27 17:18:11 not that i recall, try reboot the virtual device? Apr 27 17:18:24 I've noticed that the VD sometimes fails randomly Apr 27 17:19:23 adq: i actually want to match my legit description. i don't want to game the system with fake keywords Apr 27 17:19:42 Hey guys, I have this problem. On screen rotation onCreate of activity MainActivity is called, on that method I create a new PagerAdapter, and then onCreateView of InfoFragment is called Apr 27 17:19:56 I don't know how this is possible since the method getItem of the adapter is not called Apr 27 17:20:01 it's just that the most relevant keyword that is listed in the description doesn't get included and the app isn't returned when i search for it in google play search Apr 27 17:20:11 does android reuse fragments in some way? probably not calling the adapter? Apr 27 17:20:41 adq: what has protobuf to do with it? i am talking about searching like an end user with the regular search field Apr 27 17:21:14 im writing an app that uses peer to peer (so i dont have to host my own server) Apr 27 17:21:37 the way i think peer to peer works is that i include the server in my android app and then a client has the ability to start the server Apr 27 17:21:46 As far as I remember, the FragmentManager is persisted across rotations, and you have to avoid re-adding the Fragment if savedInstanceState is non-null. Apr 27 17:21:52 and other clients on te same network can connect to that server Apr 27 17:22:29 TacticalJoke, but I need a reference to the previously-created fragment. on screen rotation the adapter is null, that's why I create a new one Apr 27 17:22:36 what's the correct way to do this? Apr 27 17:23:12 I'm out right now so I can't help much. Sorry. Apr 27 17:23:14 interesting; i read that you need a ContentProvider to use ContentObserver - but that is /false/ Apr 27 17:23:27 all this time :D Apr 27 17:23:42 free event bus ftw Apr 27 17:24:06 any other idea guys? Apr 27 17:25:28 Hullo Apr 27 17:26:35 g00s: rxjava? Apr 27 17:26:45 yiati_ what is that? Apr 27 17:27:05 What's "free event bus" relative to? Apr 27 17:27:34 oh yeah, i could do it with rx too - but this is built in and gives you pattern matching through hierarchies for free Apr 27 17:27:59 well, poor mans because you aren't sending rich event objects Apr 27 17:28:32 <-- newbie. What are android games generally developed in? Java? How about HTML+JS? Apr 27 17:31:45 @Captain_Haddock: You can use a bunch of different languages, it just depends on whether you go android platform or a hybrid platform Apr 27 17:31:50 Java, C++, or Unity Apr 27 17:31:59 ^ Apr 27 17:32:22 yiati_ i'd actually like to see sqlbrite take uris over over those strings for rx events, that would be cool Apr 27 17:32:34 why? Apr 27 17:32:39 the original one was built on Uris Apr 27 17:32:41 we didn't like it Apr 27 17:32:49 crimsongold: I'd eventually want it to be cross platform, yes. Apr 27 17:33:09 Captain_Haddock: then checkout Unity Apr 27 17:33:13 g00s: morning Apr 27 17:33:25 JakeWharton yeah its more fuss, you have to make a Uri into a specific pattern. but you get more oprtions for notifying observers because of the pattern matching Apr 27 17:33:31 yiati_: Looking. Thanks :) Apr 27 17:33:31 good morning thepoosh ! Apr 27 17:33:32 @Captain_Haddock: Oh no, I meant like using a hybrid platform like Phonegap for Javascript Apr 27 17:33:45 aint no morning here boy! Apr 27 17:33:57 @Captain_Haddock: If you want to deploy on multiple OS's then Id go unity tbh, especially since youre a newbie :) Apr 27 17:34:01 if i was going to choose a more granular mechanism i'm not sure I would choose uris Apr 27 17:34:06 JakeWharton i was under the impression you needed a provider for the contentResolver to route changes to their observers, but this turns out to be false Apr 27 17:34:32 JakeWharton yeah that would be cool, looking forward to what you come up with Apr 27 17:34:57 crimsongold: I see. My requirements are actually limited. The idea is more of a word game without too much whiz-bangery. Apr 27 17:35:28 perhape @CountentObserver("/foo/bar") would have been cool Apr 27 17:36:42 @Captain_Haddock: Ah. Well... Either way, you probably want to look at a tut for both unity 2d development and javascript game development for mobile devices. A simple word game should be doable within a week. Apr 27 17:37:04 adq: what has protobuf to do with it? i am talking about searching like an end user with the regular search field <- told you already. concerning searching like an end user, it's not going to fly Apr 27 17:42:15 does anyone know a good replacemnt for CWAC camera library? Apr 27 17:42:22 crimsongold: Cool, thanks :) Apr 27 17:42:25 or not a replacement, but an alternative now that its depriciated Apr 27 17:42:33 basically a good camera library Apr 27 17:42:48 Is there a catch with Unity? /me is wary with all this free/pro stuff. Apr 27 17:43:05 in_deep_thought did you read why he discontinued it? Apr 27 17:43:05 is it possible to start a server on localhost (on an unused port of course) on an android device? Apr 27 17:43:06 read the license? Apr 27 17:43:12 aspire, of course Apr 27 17:43:17 g00s: cause camera became camera2 right? Apr 27 17:43:26 ok uhmm is there a way to list all of the devices on the same network as you Apr 27 17:43:30 Unity 5 makes pretty much all the engine features the same between free and pro. Apr 27 17:43:33 aspire, depends, yes Apr 27 17:43:37 hm - maybe i remember wrong, i thought it was problems with leaky abstraction Apr 27 17:43:38 because i'm trying to do what i believe is peer to peer and i want to avoid the user from typing out the ip Apr 27 17:43:52 g00s: oh well that may be the case too Apr 27 17:43:56 pfn: That for me? Reading the licence and experience it is a different matter :| Apr 27 17:43:57 I was looking at about 40 lines with a switch case for an algorithm for something I needed to do..came back today and explained it to my Zippo lighter, bam, 4 lines Apr 27 17:43:58 aspire, zeroconf Apr 27 17:44:00 I was reading this: http://commonsware.com/blog/2014/12/01/my-mistakes-cwac-camera.html Apr 27 17:44:02 pfn mhm? Apr 27 17:44:14 im trying to create a lobby system - when a player starts a lobby it starts a server on their device Apr 27 17:44:16 there's lots of ways of doing multicast discovery Apr 27 17:44:18 well aside from that, any good camera library recommendations? Apr 27 17:44:21 JakeWharton: Do you think it'd make sense for OkHttp to let the user specify the ThreadFactory to be used for Call.enqueue? (Then users could set the thread priority.) Apr 27 17:44:27 that work with camera2 as well Apr 27 17:44:29 players have the ability to join lobbies Apr 27 17:44:38 but they would need to enter the ip of the host's device Apr 27 17:44:57 too camplamacated Apr 27 17:45:01 is there a way i can avoid them from entering the ip? Apr 27 17:45:05 go back to drawing board Apr 27 17:45:21 JakeWharton also one more argument in favor of apis, is maybe you are mixing sqlbrite with existing content provider. the notification scheme stays the same Apr 27 17:45:28 in favor of Uris, ugh Apr 27 17:45:34 s73v3r: Any branding/publishing issues? Apr 27 17:45:58 TacticalJoke: no Apr 27 17:46:16 requests do not correlate to threads Apr 27 17:46:35 Hmm, no linux download Apr 27 17:46:43 :( Apr 27 17:46:53 aspire, told you, zeroconf Apr 27 17:47:04 bonjour, etc. any form of multicast discovery Apr 27 17:47:08 Okay. I meant the ThreadFactory for all requests. Apr 27 17:47:08 o Apr 27 17:47:18 i will look into it Apr 27 17:47:27 TacticalJoke: what happens when a low priority and high priority requests are running on the same thread over HTTP/2? Apr 27 17:47:35 pfn i think it would be a neat idea also if (well tell me if this is even possible) if both devices have nfc disabled Apr 27 17:47:42 maybe i can "beam join" the lobby Apr 27 17:48:00 enabled* not disabled Apr 27 17:48:31 of course Apr 27 17:49:00 Captain_Haddock, no linux download for unity? Apr 27 17:49:02 cool im going to try and do that Apr 27 17:49:19 maybe even generate one of those qr codes or whatever Apr 27 17:49:36 why not BLE Apr 27 17:49:38 ok alternate q: can anyone link me to good example code for limiting camera ratios from getSupportedPreviewSizes and getSupportedPictureSizes to only 4:3 for instance? Apr 27 17:49:44 if you're so close range Apr 27 17:49:51 Odaym ble? Apr 27 17:49:57 bluetooth low energy Apr 27 17:50:44 your best bet Apr 27 17:50:52 quinnjn: That's what it says here: http://unity3d.com/get-unity/download?ref=personal Apr 27 17:51:06 Windows / MacOS Apr 27 17:51:13 i must enable bluetooth in order to do this i presume? Apr 27 17:51:17 Captain_Haddock, huh. That's crappy. What about wine? Apr 27 17:51:20 The only reason I'm not using the async model is that it doesn't use a background thread priority (as far as I can tell, anyway). A solution might be for the user to be able to set the priority for all threads. Apr 27 17:51:21 AS 1.2 RC3 is out Apr 27 17:51:25 Captain_Haddock: yeah, there's no linux editor Apr 27 17:51:31 of course, aspire Apr 27 17:51:33 I'm seeing reports of running Unity under Wine and the Android SDK as well. Looks sketchy Apr 27 17:51:54 bluetooth enabled, your app starts listening, discovers, communicates, no pairing Apr 27 17:51:57 Captain_Haddock, good thing im planning on building a hackintosh :) Apr 27 17:52:05 :) Apr 27 17:52:06 why would you want to run the android sdk under wine? Apr 27 17:52:12 there is a native linux version Apr 27 17:52:38 njcomsec: That's what I read :) Apr 27 17:52:45 <--- newbie. Beware! Apr 27 17:52:54 I think this would be good for constant communication because you can drop out and jump back in at will, even if you want to test that by moving out of the range physically then walking back into it Apr 27 17:53:14 so there's real continuity there unless it requires a whole story of initialisation from your end to get users "back in" Apr 27 17:53:38 otherwise I dont see how BLE is not just a smarter UDP Apr 27 17:53:44 BAM you just heard that Apr 27 17:53:48 TacticalJoke: so pass your own executor Apr 27 17:55:21 Oh, didn't know I could do that. I'll check it out; thanks. Apr 27 17:56:11 ble is not in any way smarter :x Apr 27 17:56:16 at least not in android Apr 27 17:56:48 yea its just similar, no intelligence involved Apr 27 17:57:16 BLE: now you have another problem Apr 27 17:57:18 I really really think its a huge technological feat to create such a protocol Apr 27 17:58:24 mhmmm Apr 27 17:58:31 or at least work towards creating such a protocol :P Apr 27 17:58:34 it ain't workin yet! Apr 27 17:59:24 heyyyy did you do app indexing? Apr 27 17:59:39 cause its awesome and people will start paying you money for your app and downloading it and you will become a millionaire? Apr 27 18:00:43 it's true Apr 27 18:00:53 listen to this guy's story https://www.youtube.com/watch?t=74&v=aISUYHTkTOU Apr 27 18:01:25 Las Vegas, sounds like a faaan city Apr 27 18:14:19 Is there a way to do transition from fragment to activity? Apr 27 18:14:40 I have a shared toolbar, when you click on a fragment, it should change the toolbar's title with animation, and show the new fragment Apr 27 18:15:07 yoavst, make the activity do the transition thenm Apr 27 18:15:29 I've never done a transition before :/ Apr 27 18:15:36 Is there a good tutorial? Apr 27 18:16:47 i think there is Apr 27 18:16:51 but dont ask me for a link :) Apr 27 18:17:05 Have you done any transition? Apr 27 18:17:09 just google activity transition (only lollipop) or fragment transition (everything) Apr 27 18:17:18 yoavst, only basic stuff Apr 27 18:17:27 nothing between fragments/activities yet Apr 27 18:18:17 I think I'll do all this animations on the end Apr 27 18:18:23 I'll make everything work before Apr 27 18:18:24 hey, I am trying to force the camera to be in portrait mode by using camera.setDisplayOrientation(90). This works on regular devices like Samsung Galaxy S4\5 and Nexus 6. While testing it with the Android emulator (regular and genymotion) it seems like that the camera preview is set to landscape. When changing camera.setDisplayOrientation(90) to camera.setDisplayOrientation(0) the emulator works fine as in portrait but devices are set to landscape. What Apr 27 18:19:00 how would I turn my Android Studio project into a jar that I could use in a maven repo? Apr 27 18:19:37 TacticalJoke: yeah to Dispatcher Apr 27 18:20:27 I am working on someone else’s code, and they store variables on the application obect that cause some nullpointer errors at times. The problem is I can’t figure out the cases in which someone is getting the application object reset (and therefore lose the values needed to run the app). Is there a way to programatically cause the application object to “reset” so I can simulate this and put some safeguards in place? Apr 27 18:20:50 Thanks. Apr 27 18:21:24 MooGoo, not possible Apr 27 18:21:42 Boo: I think by swiping it out of recent tasks. Apr 27 18:21:46 you can only turn it into an aar Apr 27 18:22:02 BooeyOH: try "Don't Keep Activities" in Developer Options Apr 27 18:22:14 MooGoo, trying now! Apr 27 18:22:49 okay...you can use an aar for a maven repo yes? Apr 27 18:22:58 BooeyOH, oh gross. I am sorry for you having to maintain that haha Apr 27 18:23:24 quinnjn: thanks, I am working on a new version as we speak!! Apr 27 18:23:26 Don't keep activities probably isn't enough. Apr 27 18:24:22 It doesn’t seem to be working at first glance Apr 27 18:24:41 what normally forces a “running” app to recreate it’s application object? Apr 27 18:24:45 low memory? Apr 27 18:24:49 (new to android) Apr 27 18:25:44 huh Apr 27 18:25:54 BooeyOH: the system might kill an app at any given moment if it's in the background to get more resources Apr 27 18:26:42 ok, what is the biggest resource hog app that I can install on here to try to force that? Apr 27 18:26:46 in background, application may or may not be killed and you cant control when this happen Apr 27 18:27:09 bummer Apr 27 18:27:13 Swipe it out of recent tasks. Apr 27 18:27:37 what are the viariables? static? Apr 27 18:27:50 if they are initialized every application start, they should be fine Apr 27 18:27:59 they are not static Apr 27 18:28:09 phew Apr 27 18:28:10 they get set when the app is first opened and then saved with the object itself Apr 27 18:28:19 but only with the initial activity Apr 27 18:28:46 youre doing it on activity? not i.e. application's onCreate? Apr 27 18:28:59 not “me”, but yes Apr 27 18:29:08 there you go Apr 27 18:29:35 gotta love singletons pattern. i would put 6 of them Apr 27 18:30:39 how do you export your AS project to an AAR then Apr 27 18:32:27 nice http://stedolan.github.io/jq/ Apr 27 18:33:25 Ashiren: thanks! Apr 27 18:33:59 MooGoo, http://bit.ly/1OwqFAm Apr 27 18:36:46 you're better with google than I Apr 27 18:38:15 thats sad Apr 27 18:38:30 https://support.google.com/websearch/answer/134479?hl=en :) Apr 27 18:42:14 you're a very helpful person Apr 27 18:44:23 Hello everyone :) Apr 27 18:46:00 JakeWharton so in sqlbrite, insert/update/delete block but read is async ? Apr 27 18:46:08 yes Apr 27 18:46:15 thanks Apr 27 18:46:52 French bulldogs Apr 27 18:47:04 hehe Apr 27 18:49:17 DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host Apr 27 18:49:35 htc devices, intellij IDE Apr 27 18:54:44 abs25: Multiple devices? Apr 27 19:01:28 OmegaVesko, desire 500, or desire 510, booth not working Apr 27 19:01:33 its about adb, not devices Apr 27 19:01:59 abs25, os? Apr 27 19:02:13 win 8.1 64 bit enterprise Apr 27 19:02:43 do you have genymotion installed? Apr 27 19:05:05 danijoo, I dont even know what is genymotion Apr 27 19:05:54 so no. Apr 27 19:06:00 multiple versions of adb? Apr 27 19:06:12 like one of android studio + one at random Path Apr 27 19:06:43 because that can cause them to randomly disconnect when one is used in cmd and one by AS Apr 27 19:06:48 Have you tried restarting adb? Apr 27 19:06:54 adb kill-server, adb start-server Apr 27 19:08:11 danijoo, I have htc sync, it also has adb in it Apr 27 19:08:15 should i deinstall it? Apr 27 19:08:19 yes Apr 27 19:08:22 god damn Apr 27 19:08:24 htc sync often causes problems Apr 27 19:08:31 brb restart pc really fast Apr 27 19:08:34 or remove it from autostart and restart Apr 27 19:09:43 back Apr 27 19:12:36 aaaaand I uninstalled htc sync, still the same issue Apr 27 19:14:05 abd25, try reboot adb after uninstall sync? Apr 27 19:17:34 I would like to charge persons for making a listing on my app. How do I go about doing that? Apr 27 19:18:32 What do you mean by listing? Apr 27 19:19:08 TacticalJoke: Posting information about a rental Apr 27 19:20:16 TacticalJoke have you used GridLayoutManager ? Apr 27 19:20:25 Nah, never. Apr 27 19:20:53 Metal: I'm not sure, but I guess the in-app-purchasing thingy. Apr 27 19:21:08 yup look on IAP stuff Apr 27 19:21:24 TacticalJoke: I see. Apr 27 19:21:26 So does in app purchase link to your developer account's debit card or something? Apr 27 19:21:27 Hi, Can someone help with data transfer using RFCOMM bluetooth? The question is here http://stackoverflow.com/questions/29903551/android-bluetooth-transfer-to-glass-using-rfcomm Apr 27 19:21:40 MetalHead77, google wallet Apr 27 19:21:44 it's linked to your wallet account Apr 27 19:22:05 I see. Apr 27 19:22:09 Hmmm Apr 27 19:22:47 So your debit card links to your google wallet account? Apr 27 19:23:43 Sorry, just new to this stuff. Apr 27 19:24:37 you dont need a dc for google wallet Apr 27 19:24:41 they can use direct debit too Apr 27 19:25:30 danijoo: Alright so google wallet is kinda like paypal where you can withdraw money from it to your bank account and stuff? Apr 27 19:26:13 quinnjn, I rebooted pc Apr 27 19:26:51 MetalHead77, exactly Apr 27 19:27:16 but you can say "every month that I earn more than xx$, send that money to my real bank account" Apr 27 19:28:10 danijoo: Cool. So from a developer point of view, is in app purchases some kind library/interface that comes readily available for me to use? Apr 27 19:28:25 yep Apr 27 19:28:49 danijoo: So it's that easy? What's the trick? Apr 27 19:28:57 but to warn you: the library sucks.and all examples how to use it suck too. Apr 27 19:30:06 danijoo: So where can I go to learn how to use it? (and not having to suck) Apr 27 19:30:09 you basicallt cant implement it without hacks and ugly code :p Apr 27 19:30:15 Just to pop that again, does anyone have any ideas to establish a two way connection fro data transfer using Bluetooth? Apr 27 19:30:34 there is only your implementation sucks more or less than default one Apr 27 19:30:36 ^^ Apr 27 19:31:28 i think the docs from google has an implementation example - Its buggy and will give you exceptions from time to time Apr 27 19:31:38 but its a good point to start Apr 27 19:33:38 yeah, it's only for establishing connections, not so much about transferring data in outputstreams Apr 27 19:33:56 They have a Bluetooth Chat sample, but that's quite different in structure Apr 27 19:34:38 whats the difference between a two way data transfer and a two way chat? Apr 27 19:34:54 a chat message is only some random data Apr 27 19:35:01 danijoo: Are you familiar with phonegap? Apr 27 19:35:09 no Apr 27 19:35:40 im not a fan of cross platform solutions Apr 27 19:35:59 i'm curious about react native, will watch that one Apr 27 19:36:26 Hi all! I'm trying to do a "nav" app, that would receive its data through bluetooth, treat them and display in a gmaps. I'm stuck with the overall design of the "bluetooth" part ; could I have a clue of the best way to do ? (particularly receive BT data in background) Apr 27 19:36:54 @danijoo : Agreed, but I still couldn't figure out the modifications they are doing to the samples they have mentioned. The chat example isn't straightforward Apr 27 19:37:03 And integrating it would be tough Apr 27 19:38:31 stppnwlf too vague Apr 27 19:39:22 but your BT will have to be ain a service doing stuff in the background Apr 27 19:39:23 adq, is there a built-in/preferred way for assetmanager.list to list recursively? Apr 27 19:39:29 hmmm... I don't really know what to add :S Apr 27 19:39:38 no idea thebishop Apr 27 19:39:42 hey all. I have a WPS access point I want my app to connect to (API 19)... I guess this isn't too bad, but I don't see an API to retrieve the metadata associated with the WPS access point. Any clues? Apr 27 19:40:19 so it's indeed a _service_, g00s ? (I'm completely new to android dev, I was asked to do this aside my job) Apr 27 19:40:39 stppnwlf you picked a tough problem to start out with Apr 27 19:41:03 BLE or BR/EDR rfcomm ? Apr 27 19:41:20 unfortunately, it's the problem we are facing ^^ Apr 27 19:42:14 well, it is for a proof of concept, so "low energy" is not a must-have if it's more complicated Apr 27 19:42:37 the two protocols and APIs are totally different, so if you haven't chosen, do that first Apr 27 19:43:03 and their strengths / weaknesses are different Apr 27 19:43:42 it is the same for the other side of the channel ? Apr 27 19:44:06 not sure what that means Apr 27 19:45:06 is the choice transparent for the other device ? Apr 27 19:45:53 no, of course not Apr 27 19:45:54 Error:An existing connection was forcibly closed by the remote host can anyone help me with this Apr 27 19:46:00 htc device Apr 27 19:46:30 Basic Rate/Enhanced Data Rate > well, the rate of transmission is quite heavy, so it seems better to take this implementation Apr 27 19:47:25 if you go that route, you won't be able to port to iOS just FYI (without MFi license) Apr 27 19:47:57 it's all right, for now :) Apr 27 19:48:42 you have to think this through. because if you change your mind, after getting the MFi license, you will need to change the HW on the peripheral to include the apple authentication coprocessor Apr 27 19:48:51 i think you have a lot to think about :D Apr 27 19:48:58 (as said, it's for a quick and, unfortunately, dirty, solution for a proof of concept of the nav algorithm) Apr 27 19:49:09 g00s: you don't even imagine :( Apr 27 19:49:35 a real app would probably be developed by a _real_ developer :D Apr 27 19:49:56 what i recommend, is looking at the obtainable bandwidth of using BLE and see if you can get your data across with that. if not, then go br/edr Apr 27 19:50:33 that will depend on the peripheral, its connection interval, and what the central will allow Apr 27 19:51:18 ~ 150 kbps Apr 27 19:52:07 but we have problems reaching this limit Apr 27 19:53:24 BLE on a good day (7.5ms interval) with everything going optimally can do ~125kbit/s Apr 27 19:54:10 but there are no guarantees, the phone can have other limitations, so it might not be able to handle that Apr 27 19:54:28 you seem not to like BR/EDR ^^ Apr 27 19:54:47 so expect about 5-10KB per second Apr 27 19:55:01 stppnwlf i use both. my app talks both at the same time to multiple devices Apr 27 19:56:37 BR ~ 40-80 kbps ? Apr 27 19:57:04 don't remember. i have to get back to work .. good luck Apr 27 19:57:10 in fact, I need a high throughput, battery is not a problem Apr 27 19:57:13 ok, thanks Apr 27 20:02:47 I repeat in case anyone knows. On screen rotation onCreate of activity MainActivity is called, on that method I create a new PagerAdapter, and then onCreateView of InfoFragment is called Apr 27 20:03:03 How is this possible given that getItem of the adapter is not called? Apr 27 20:03:11 it is as if Android is reusing the fragment or something Apr 27 20:03:34 it is Apr 27 20:03:44 fragmentManager reuses the old fragment Apr 27 20:04:19 danijoo, how do you handle screen rotations then? Apr 27 20:04:28 I need an instance of the adapter, which is not kept Apr 27 20:04:41 but the fragments are reused Apr 27 20:04:43 it seems your design is bad Apr 27 20:04:48 probably Apr 27 20:04:57 adapters getItem() shouldnt do more than create a fragment instance Apr 27 20:04:59 nothing else Apr 27 20:05:19 danijoo, it does nothing else Apr 27 20:05:28 why you bother about it then? Apr 27 20:05:37 just let it reuse the old fragment Apr 27 20:05:47 but theeeen, when I need to get the current fragment in the pager, I call .getItem(currentPage) Apr 27 20:06:02 dont do that Apr 27 20:06:02 and there it is the problem, the adapter creates a whole new fragment Apr 27 20:06:07 getItem() must not be called by you Apr 27 20:06:12 danijoo, I understand now that Apr 27 20:06:12 its a callback for the system Apr 27 20:06:23 what would you do to get the current fragment? Apr 27 20:06:53 http://stackoverflow.com/questions/8785221/retrieve-a-fragment-from-a-viewpager Apr 27 20:07:03 firefox has turned into crap Apr 27 20:07:34 Mattx, basically you can get it by its TAG Apr 27 20:07:42 intersting Apr 27 20:07:51 I'll have a look, thanks Apr 27 20:07:56 viewpager will always use android:switcher:viewpagerid:fragmentId Apr 27 20:08:09 you can use that together with getFragmentByTag() which returns the fragment or null Apr 27 20:16:04 shmooz what happened Apr 27 20:17:22 it won't let me cancel loading a page Apr 27 20:17:45 when you hit the x to stop it from loading, it stops for a second, and then continues loading the page, even though I had typed another URL instead Apr 27 20:18:51 it erases the new URL you typed, and wants a reward for loading the page you wanted to cancel Apr 27 20:20:13 hehe Apr 27 20:24:34 anybody use ActivityTestRule yet Apr 27 20:24:38 https://code.google.com/p/android-test-kit/wiki/EspressoSetupInstructions Apr 27 20:24:45 yes Apr 27 20:24:55 apparently you are supposed to use it instead of ActivityInstrumentationTestCase2 Apr 27 20:25:03 but the example linked doesn't seem to want to run Apr 27 20:25:35 I get a junit.framework.AssertionFailedError: No tests found in com.what.ever.MainActivityTest Apr 27 20:25:52 put @Test on the method Apr 27 20:25:57 it's JUnit 4 Apr 27 20:27:25 heh I just removed @Test from the method, after having had it there Apr 27 20:30:45 maybe there's something up with my AS run config, since my @Before method is running either Apr 27 20:31:08 *isn't Apr 27 20:33:04 missingno i havent used ActivityTestRule, -- just plain Junit4 things in ATSL -- but I had to annotate the class containing the tests with something like @SmallTest to add it to the suite Apr 27 20:33:32 ah Apr 27 20:34:30 otherwise you might need something like @SuiteClasses({ MyClassTest.class, MySecondClassTest.class }) Apr 27 20:34:44 package de.schildbach.walIlet.util; unknown type or package what can I look at Apr 27 20:35:30 sounds like you didn't import your dependencies Apr 27 20:35:36 probably problem with AIDE Apr 27 20:35:43 oh sweet this article even has a neat chart about test suites http://googletesting.blogspot.com/2010/12/test-sizes.html Apr 27 20:38:21 missingno there is a google example for all this Apr 27 20:38:28 on githib somewhere Apr 27 20:38:48 I want to make a Button disabled/greyed out until the phone get location data. Neither setClickable(), setEnabled() or setFocusableInTouchMode() works (Android 4+). How to solve it? Apr 27 20:39:15 do you guys think Fragments should be responsible for replacing fragment container content or the Activity? Apr 27 20:39:28 mEck0, setEnabled(false) should work Apr 27 20:40:06 alexfu i'd have the fragment emit event, let the container decide Apr 27 20:40:42 Connection with adb was interrupted, and attempts to reconnect have failed. Apr 27 20:40:47 You may want to manually restart adb from the Devices view. Apr 27 20:41:12 mEck0, maybe you need to adjust the style to match what you need. Apr 27 20:41:13 I don't know what's wrong with eclipse since I installed Android studio Apr 27 20:41:30 any quick fixes please? Apr 27 20:41:41 anahumar, its easy - the more powerful wins Apr 27 20:42:03 g00s: found it https://github.com/googlesamples/android-testing/blob/master/espresso/BasicSample/app/src/androidTest/java/com/example/android/testing/espresso/BasicSample/ChangeTextBehaviorTest.java Apr 27 20:42:21 danijoo: Now it worked, it was required to rebuild the project. Apr 27 20:43:14 missingno yeah thats it Apr 27 20:44:25 anahumar: http://stackoverflow.com/questions/22667030/restart-adb-from-android-studio Apr 27 20:44:48 danijoo: I've homework to be submitted in an hour and need to fix very quickly Apr 27 20:45:10 I must get rid of the studio and make it work on eclipse asap Apr 27 20:45:21 shouldn't leave it to last minute Apr 27 20:45:27 anahumar, you are way to late then :p Apr 27 20:45:32 I shouldn't have tried studio before finishing the homework Apr 27 20:45:41 true that Apr 27 20:46:31 it might be conflicting adb versions Apr 27 20:46:40 why "Connection with adb was interrupted"? Apr 27 20:46:47 you can try uninstall AS or point it to your installed android-sdk Apr 27 20:47:55 anahumar: execute adb kill-server followed by adb start-server from a terminal. Apr 27 20:52:39 anahumar: Have you managed to restart the adb server? Apr 27 20:58:15 yes I restart it but I'm still getting error Apr 27 20:58:18 in meantime I'm trying to update the sdk manager Apr 27 20:58:36 What error do you get now? Apr 27 20:58:42 ok here's a gist of my still-not-running test https://gist.github.com/anonymous/e8778611ea73f7d4d279 Apr 27 20:59:40 it looks like nothing is missing, and I'm using the Android Test run config to run it Apr 27 20:59:48 same old "No Tests Found" Apr 27 20:59:51 this is the error .. http://snag.gy/k8TVM.jpg Apr 27 21:01:04 If you read the error in the console it says that the adb server failed to start Apr 27 21:01:19 Did you tried to restart it from the IDE or from the terminal? Apr 27 21:02:24 I made adb start-server and it gave me started successfully Apr 27 21:03:07 But below the dialog you have an error. When you’re getting adb errors you should stop the server first and then start it. Apr 27 21:03:51 missingno soon we'll have to test out tests Apr 27 21:04:05 Is there any way to intercept SMS messages that are sent from a device using another app? Apr 27 21:04:19 donguston: to block/alter, or just read? Apr 27 21:04:25 just to read Apr 27 21:04:29 are these two service related to sdk? http://snag.gy/DpUrd.jpg Apr 27 21:04:42 donguston: i have several sms apps on my phone and they all read the same messages, so yes Apr 27 21:05:47 mEck0: when I try to kill it, I get this message .. * server not running * Apr 27 21:06:04 anahumar: so now you start it Apr 27 21:06:12 when I strat it ... * daemon started successfully * Apr 27 21:06:16 most of my adb problems are solved by killing adb then running as root Apr 27 21:06:20 myke, are there any differences between SMS messages sent/recieved from apps without any user input and ones sent from messaging apps? Apr 27 21:06:22 esp when multiple devices are involved Apr 27 21:06:28 then I try to compile and get those errors Apr 27 21:06:36 donguston: not sure, i don't think i have any apps that generate their own sms Apr 27 21:06:48 ok Apr 27 21:06:55 anahumar: Sometimes the IDE don’t refresh the adb state so you can also try to restart it now when server is running. Apr 27 21:07:02 i use 3 apps that can send/receive sms typed by humans and they all operate on the same set of messages Apr 27 21:07:13 do you what are these? http://snag.gy/DpUrd.jpg Apr 27 21:07:31 adb is client server, so once you have the server part running, any client should work properly Apr 27 21:07:41 anahumar: I assume you’re running Eclipse / ADT? Since I’m using Android Studio I barely get any adb issues anymore. Apr 27 21:07:42 so you can run adb from the command line as root and AS, etc should work with it Apr 27 21:08:26 that is right mEck0 .. I was suggest studio here and since then I got eclipse screwed Apr 27 21:09:07 adb devices -lo Apr 27 21:09:10 adb devices -l Apr 27 21:09:19 should show your devices...if not, restart adb Apr 27 21:09:40 check for conflicting adb.exe Apr 27 21:09:57 yes that too Apr 27 21:10:17 i always use a separate sdk dir and have all my IDEs use that, not whatever they were bundled with, and have my paths set up for that dir's tools Apr 27 21:10:30 if there is one for eclipse and one that comes with something like genymotion, htc sync, AS they can disturb each other Apr 27 21:10:51 actually in my experience if you use one sdk dir for everything it all works Apr 27 21:11:03 whats the problem ? Apr 27 21:11:08 multiple sdk dirs are likely to cause grief, may be running adb from one but ide uses another, etc Apr 27 21:11:31 besides the many gigs of duplicate content you may end up with Apr 27 21:13:29 yeah but some applications like genymotion come with an own adb.exe by default and you have to explictly point them to yours Apr 27 21:26:38 interesting, haven't used genymotion Apr 27 21:26:44 genymotion emu does not work with stock adb? Apr 27 21:28:45 it does Apr 27 21:29:17 but by default it will use its own adb.exe and fucks up when you run it with AS because of this Apr 27 21:29:28 you have to go to options and tell it "use this one instead!" Apr 27 21:30:37 hm. dont recall ever doing that Apr 27 21:30:53 i had to do it on the latest install g00s Apr 27 21:31:13 maybe it depends on if it can find android-sdk on install Apr 27 21:31:22 actually, i haven't been able to run geny since AS 0.9 or something, seemed AS started taking up lots more ram Apr 27 21:31:37 Ughk. Apr 27 21:31:43 g00s, saw my screenshot from this morning on that? ^^ Apr 27 21:31:44 I have reached a disheartening stage of my life. Apr 27 21:31:54 danijoo no ... Apr 27 21:31:54 Installing Eclipse on my computer for compatibility with Uni -.- Apr 27 21:32:02 I have a paper deadline, so Android stuff goes on hold :( Apr 27 21:32:10 Ill still pop in though because I <3 you Apr 27 21:32:32 g00s, I got an internal error in AS and since that it started to leak memory.. I stopped it when it reached 1.2gb RAM + abnother 2GB for the attached java process Apr 27 21:33:06 yeah, sometime around AS 0.8 or 0.9 that damn external java process (which is the daemon) Apr 27 21:33:20 even if you have 'in process build' Apr 27 21:33:38 i'm constantly having to kill it Apr 27 21:34:00 yep. Apr 27 21:34:52 the funny thing is that you can do that and its not a problem Apr 27 21:34:58 so this cant be that hard to fix. Apr 27 21:35:17 when manually killing it doesnt cause AS to stop Apr 27 21:36:02 no AS just starts up another gradle daemon when you launch Apr 27 21:36:34 yes but why is this one eating up memory Apr 27 21:36:44 i wonder if there is a way to limit its alive time, say 2-3 minutes Apr 27 21:36:54 you can do that, but i think AS handles things different Apr 27 21:37:07 danijoo seems like each time i build, even from command line, the daemon gets bigger Apr 27 21:37:23 so thats not AS. I'm using 2.4RC1 and the same thing :( Apr 27 21:37:29 The OkHttp source is so easy to read. Apr 27 21:37:34 i think it starts gradle daemon with its own parameters. because setting options in userprofile/.gradle doesnt have an effect Apr 27 21:37:38 If the Android source were like this it'd be an entirely different product. :D Apr 27 21:38:34 TacticalJoke seems like most of the framework devs never read 'Code Complete' :D Apr 27 21:39:23 Ya. Apr 27 21:40:20 where the heck is groxx Apr 27 21:41:20 Hmm. Think the last time I saw him was Friday/Saturday. Apr 27 21:41:21 wow, code complete 2e is 10 years old :O Apr 27 21:41:35 I think I remember buying that when it was new. Apr 27 21:41:41 I never read all of it. So big. Apr 27 21:42:37 easy reading though Apr 27 21:45:00 Yeah, it's a great book. I learned so much from it. Apr 27 21:45:52 I think that and Clean Code are a great duo. Apr 27 21:46:33 I don't agree with everything in Clean Code, though. He goes really far at times. He also thinks checked exceptions are just a mistake, which I don't buy. Apr 27 21:46:43 are the sources of junit automatically downloaded when you add it to your build.gradle's as a testCompile Apr 27 21:46:55 "The daemon process automatically expires after 3 hours of idle time." ugh Apr 27 21:47:05 ^^ Apr 27 21:47:05 3 minutes would be better for me Apr 27 21:47:39 Daemon process? O.o Apr 27 21:47:56 gradle daemon I assume? Apr 27 21:48:04 does it consume that much resources? Apr 27 21:48:10 aaaah. Apr 27 21:49:25 oh shit I should probably have it under androidTestCompile Apr 27 21:49:30 missingno, got it to 2 gb memory this moring Apr 27 21:49:54 doesn't it just go into swap anyway? Apr 27 21:49:55 what does the process look like in "ps aux" danijoo Apr 27 21:50:09 if it's got a bunch of unused pages they should just be swapped out Apr 27 21:50:10 missingno: The sources for JUnit were downloaded here with just "testCompile ". Apr 27 21:50:21 it looks like a monster eating all your ram in ps aux Apr 27 21:50:26 On that basis, even though it's a sample size of one, I am going to conclude that they're always downloaded. Apr 27 21:50:43 allocating ram is fine, using it is the problem Apr 27 21:50:53 myke, ist using it Apr 27 21:51:23 with a 4 gb machine I have to manually kill it from time to time if I work the whole day Apr 27 21:51:49 and 3 hrs is rediculous. Apr 27 21:51:52 So... Apr 27 21:52:01 anyone know how to add a project to Eclipse via maven? Apr 27 21:52:07 And how the fuck to use maven? haha Apr 27 21:52:11 you import it Apr 27 21:52:18 if you have m2eclipse installed Apr 27 21:52:24 there's an entry in the import menu Apr 27 21:52:31 for importing maven projects Apr 27 21:52:37 then everything gets automagically configured Apr 27 21:52:57 Anthaas: Y u no use Android Studio? Apr 27 21:52:59 Import > Maven > what? Apr 27 21:53:09 TacticalJoke: PhD work :( Using Eclipse to be compatible with Uni Apr 27 21:53:26 TacticalJoke: Got a paper deadline set for publishing. Android has be paused :( Apr 27 21:53:52 well I don't remember what's in the import list Apr 27 21:54:02 g00s, found it: http://prntscr.com/6yq30q :) Apr 27 21:54:04 Anthaas there is #eclipse Apr 27 21:54:07 but I remember that the entries sounded straightforward Apr 27 21:54:13 especially if its not android tooling Apr 27 21:54:15 Doh! Apr 27 21:54:24 anyone here use `libiw` on android? Specifically for scanning? Apr 27 21:54:30 (and parsing beacons) Apr 27 21:54:39 (on a non-rooted device) Apr 27 21:54:52 missingno: Check out Maven Projects from SCM, Existing Maven Projects, Install or deploy an artifact to a Maven repository, Materialize Maven Projects from SCM Apr 27 21:54:59 danijoo oh boy :( Apr 27 21:56:08 is maven usable for android? Apr 27 21:56:10 looksl like its hard coded https://github.com/JetBrains/intellij-community/blob/master/platform/external-system-api/src/com/intellij/openapi/externalSystem/model/settings/ExternalSystemExecutionSettings.java Apr 27 21:56:16 missingno: Yes Apr 27 21:56:18 missingno not ... recommended Apr 27 21:56:31 The heck. java.exe isn't reported as running at all here. And yet AS is open. Apr 27 21:56:33 pfn can tell you all about maven plugin suckage Apr 27 21:56:43 TacticalJoke you have to do a build Apr 27 21:56:45 TacticalJoke, it gets started once you compile Apr 27 21:56:54 its the gradle daemon AS starts Apr 27 21:56:58 Oh. Thought it'd be running for the entire IDE? Apr 27 21:57:13 no Apr 27 21:57:21 no but once you start a build, it starts it. and it will get reused from that point on Apr 27 21:57:28 unless you let it time out (3 hours) Apr 27 21:57:30 How does the IDE run, then? I guess I assumed java.exe had to be running for Java apps. Apr 27 21:57:58 well thats the Android Studio Windows Launcher process Apr 27 21:58:23 it grows by about 50mb each time you build Apr 27 21:58:50 it also sometimes block my directory. Apr 27 21:58:53 So it basically has the Java VM in its own process? Apr 27 21:59:02 strangly enough that only happens for one projet Apr 27 21:59:02 yeah Apr 27 21:59:06 where I cant clean Apr 27 21:59:22 because it keeps references to some files in /build Apr 27 22:00:25 Well, #eclipse is nice and busy.... Apr 27 22:00:31 and ugly Apr 27 22:00:48 Wouldnt say they are that bad... Apr 27 22:01:11 nothing to argue about. thats personal preference Apr 27 22:01:40 They haven't even spoke yet though.... Apr 27 22:01:47 but since it becomes harder and harder to do stuff without gradle.. Apr 27 22:03:18 too bad you cant change gradle daemon params :S Apr 27 22:03:21 just try those options Anthaas Apr 27 22:03:32 you'll get it on the second try ;) Apr 27 22:03:45 The documentation for OkHttp's Dispatcher says "If you supply your own executor, it should be able to run the configured maximum number of calls concurrently". Apr 27 22:03:52 Does this mean that my executor only needs to be able to *tolerate* that number of calls (e.g., a single-thread executor that supports queuing)? Or does it mean that my executor has to have a maximum pool size which is at least as big? Apr 27 22:04:19 ok I figured out my issue, I was missing the ' testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"' Apr 27 22:04:26 in my build.gradle defaultConfig Apr 27 22:04:33 thank you google's BasicSample Apr 27 22:04:47 missingno doh :D Apr 27 22:06:56 is it possible to run a shell script after a build from gradle or AS? Apr 27 22:11:19 danijoo: if you make a shell script for it then yes Apr 27 22:13:43 i might do a shell script that checks the gradle daemon used memory and kill it it it exceeds a gig Apr 27 22:13:54 danijoo: "./gradlew clean assembleMyBuild; /path/to/script_to_run_after.sh > what_danijoo_wants.sh" Apr 27 22:14:32 with more quotes Apr 27 22:14:35 well thats from shell. I need AS to run it so it must somehow go into build.gradle Apr 27 22:14:56 with the shell I dont have this problem Apr 27 22:15:29 AS only wraps stuff up, are you saying you want to make a gradle task that runs a shell script? Apr 27 22:15:37 And have AS target that shell script Apr 27 22:15:45 danijoo https://code.google.com/p/android/issues/detail?id=170486 Apr 27 22:15:49 exactly Apr 27 22:15:51 Also AS has a terminal so you can technically just run your script from there Apr 27 22:15:51 star if you can Apr 27 22:16:04 yiati, yeah but that sucks :) Apr 27 22:16:13 Ughk Maven can suck an absolute fat one. Apr 27 22:16:13 danijoo: why Apr 27 22:16:30 As well as Maven-Eclipse integration. Apr 27 22:16:34 danijoo: read up on custom tasks in gradle Apr 27 22:16:35 And so on. Apr 27 22:16:36 I know I can do that but its not as easy as pressing the shortcut Apr 27 22:16:45 meh Apr 27 22:16:47 g00s, done Apr 27 22:16:56 later gyz Apr 27 22:19:16 Anthaas: Couldn't you use AS anyone? Apr 27 22:19:17 YOLO. Apr 27 22:19:20 anyway* Apr 27 22:20:11 Or do it all in AS and then at the last minute convert it to a basic Eclipse project that uses Eclipse's built-in build system. Apr 27 22:20:22 Okay, that might not work well. Apr 27 22:21:09 TacticalJoke: Haha, unfortunately not :( Apr 27 22:21:21 Maven really isn't simple to use, is it... haha Apr 27 22:21:55 please star if you would like dex count limit report in AS https://code.google.com/p/android/issues/detail?id=170488 Apr 27 22:22:40 that would really be useful Apr 27 22:23:07 maybe as part of the gradle build process Apr 27 22:23:16 not only in AS Apr 27 22:23:24 oh yeah, like ascii report :) Apr 27 22:24:48 Where is the best place to ask gradle related questions? Apr 27 22:24:58 you can try #gradle Apr 27 22:25:09 hey g00s how you doin Apr 27 22:25:14 hey gdrc Apr 27 22:25:30 eemgr the groovy and gradle guys were never much into IRC, so ymmv Apr 27 22:25:58 alright, i'll give it a shot anyway. thanks. Apr 27 22:26:21 i remember looking for #groovylang or something, and was shocked to find ... Apr 27 22:26:26 almost nothing Apr 27 22:26:52 Surely depending on the gradle question some people here could help? Apr 27 22:27:02 People ask Gradle related questions in here all the time. Apr 27 22:27:06 I'll post it in just a sec, formatting my pastebin now Apr 27 22:27:10 for android yeah Apr 27 22:27:29 Oh, I figured because he was in #android-dev it would be android related haha Apr 27 22:27:40 thats a safe assumption - it is. Apr 27 22:28:02 you are in luck, maybe :) Apr 27 22:28:08 JakeWharton: Sorry to ping again. Dispatcher says "If you supply your own executor, it should be able to run the configured maximum number of calls concurrently". That just means that my executor needs to be able to *tolerate* that number (even if that involves queuing), right? (Or does it mean that my thread pool needs to be able to create that tolerate that number of actual threads Apr 27 22:28:08 at one time?) Apr 27 22:28:37 A simple way of putting this is "If I were to pass Executors.singleThreadExecutor, would that be violating the contract?". Apr 27 22:28:52 new^ Apr 27 22:29:32 TacticalJoke what is your configured # of concurrent calls :P Apr 27 22:29:41 if its 2 then i would guess no :D Apr 27 22:29:46 okay - so i got this issue once i added in a url for jitpack.io repository: http://pastebin.com/RWXsnTWD Apr 27 22:29:57 and its needed for the creditCardEntry library Apr 27 22:30:03 OkHttp sets the default to 64, I think. Apr 27 22:30:32 64 concurrent calls ? wow Apr 27 22:30:38 I think they wrote that to protect themselves against executors that throw exceptions when more than N tasks are requested. Apr 27 22:30:56 Maximum, I mean. Apr 27 22:31:27 https://github.com/square/okhttp/blob/master/okhttp/src/main/java/com/squareup/okhttp/Dispatcher.java#L37 Apr 27 22:31:35 Overall method count: 63436 Apr 27 22:31:41 living on the edge :x Apr 27 22:32:01 g00s: As for my app, I haven't decided yet. Apr 27 22:32:09 I don't have to go very high, I think. Apr 27 22:33:06 Ideally, I think, I'd have few threads (and they'd stay alive as opposed to being created/collected over and over). Apr 27 22:35:33 fixed the gradle issue, i guess i needed to install a support lib manually Apr 27 22:37:37 danijoo triajed for AS 1.5 :) that will be, 2-3 years i think :D Apr 27 22:37:52 yeah just laughed about the mail :D Apr 27 22:40:21 just got bluetooth SPP audio working, suck it A2DP Apr 27 22:41:01 this is a fun one: https://code.google.com/p/android/issues/detail?id=170485&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Apr 27 22:41:22 they really use a while(i < 100) to iterate over files? :D Apr 27 22:42:35 when you fire an intent to open the Play Store, how do you set the 'referrer' parameter that you would normally set as a url param? Apr 27 22:42:38 lol Apr 27 22:43:59 g00s, https://code.google.com/p/android/issues/detail?id=170458&sort=-id&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Apr 27 22:44:39 i starred that one, is it yours ? Apr 27 22:44:47 no. just found it Apr 27 22:45:03 hehe, well its nice to know you arent the only one then :D Apr 27 22:45:07 *we Apr 27 22:45:21 yeah^^ Apr 27 22:47:30 http://pastebin.com/9DtDiHDK Apr 27 22:48:12 No resource ident comes out for alot of that any idea? Apr 27 22:48:34 where? Apr 27 22:55:17 Android manifest Apr 27 22:55:23 .xml Apr 27 22:55:35 what line in the file Apr 27 22:55:55 nobody will check your file line by line for you Apr 27 22:56:24 3,10,15-23 Apr 27 22:56:49 15 is an empty line ^^ Apr 27 22:58:27 16- Apr 27 23:00:25 ronkrt i have an idea, AIDE Apr 27 23:00:53 oh. the AIDE guy Apr 27 23:01:00 why do I even ask for details -_- Apr 27 23:01:26 ronkrt stop asking us why your project is broken when you are using a toy IDE Apr 27 23:01:36 ^ this Apr 27 23:02:11 I'm trying to work on something that was Apr 27 23:02:14 ronkrt: There must be some way for you to get a PC. Apr 27 23:02:49 I can't even Pay for my room for the night till this works Apr 27 23:03:03 i just read te description on AIDE Apr 27 23:03:07 Then get a PC and get it working. Apr 27 23:03:08 the project is probably just fine, its AIDE Apr 27 23:03:10 debugger is an iap :D Apr 27 23:03:31 ronkrt yeah go install portable vim on the lobby computer :) Apr 27 23:04:12 There is no lobby it's a crap motel Apr 27 23:05:04 sell the tablet and get the cheapest possible computer/laptop for it Apr 27 23:05:45 yeah if your situation is as you describe, its probably better to regroup after taking some other job to get you a working pc Apr 27 23:06:28 HP has $200 chromebook type things you can probably put linux on; and then at least use SublimeText + gradle Apr 27 23:06:28 g00s, https://code.google.com/p/android/issues/detail?id=170458 Apr 27 23:06:41 seems like you can limit gradle daemon from AS Apr 27 23:07:20 danijoo yeah i have that configuration, but it will still grow Apr 27 23:07:56 Im wondering what happens if you do it. I mean It obiously cant just say "nope! no more memory" at compile time Apr 27 23:08:03 i have -Xmx=500m Apr 27 23:08:18 danijoo, sure it can, why not? OOM, crash, done Apr 27 23:08:33 dragorn, yeah but thats not happening :) Apr 27 23:08:52 so its either AS ignoring that properties file or gradle daemon ignoring that setting Apr 27 23:11:55 yeah AS does configure certain things through the API which you can't control, i'm not sure which Apr 27 23:12:08 how can I set the carrier manually by using private APIs? Apr 27 23:13:17 like... the cell carrier? that's derived from the modem connection. There is no useful thing you can do with that other than lie to the user in the UI. Apr 27 23:14:43 I want to change my carrier operator on some basis Apr 27 23:14:47 yeah no Apr 27 23:14:56 yo. I'm trying to use Stetho, but I can't create the client. I'm getting an error that the client class does not have networkInterceptors() ? Apr 27 23:15:00 and then restore the "automatic selection" on some other basis Apr 27 23:15:10 also, hi guys :) Apr 27 23:16:04 network operator or it's called Apr 27 23:16:16 hah. yeah, no, there's no way you can do that. Look at dual-sim devices if you absolutely need something like that (but even then you'll be looking at custom roms, because I don't thikn you can arbitrarily change data carriers under dual sim models) Apr 27 23:17:09 why? manually I can do it Apr 27 23:17:20 I can choose the operator Apr 27 23:17:59 (from android settings) Apr 27 23:18:30 those settings are not accessible from an app Apr 27 23:18:37 i think it requires system permissions Apr 27 23:18:52 neither using reflection and private methods or something? Apr 27 23:19:26 no. you'd have to spin your own rom. Apr 27 23:27:28 dragorn: what about this? https://www.merlin.uzh.ch/contributionDocument/download/5322 Apr 27 23:29:31 nothing, still needs a custom rom Apr 27 23:32:35 Does anyone know if it would be possible to port gingerbread onto my nexus 4? Apr 27 23:32:46 I'm not trolling Apr 27 23:38:32 yeah its probably possible Apr 27 23:38:56 wouldnt you just compile it for your device the same way you would any other version? Apr 27 23:43:10 I'm trying to follow the testing tutorial on android tools site. "Our gradle plugin will compile source code found in src/test/java" So I put my junit4 tests in there, but I can only test the public methods though. So I want to test one of my utility classes but I have some private methods and such, but I'd still like basic junit cases for them. How would I go about it? Apr 27 23:43:58 Had to Change res to lib Apr 27 23:44:02 http://schemas.android.com/apk/lib/android Apr 27 23:44:05 Right there Apr 27 23:47:00 rrkpp: well yes, but there was no softkeys in gingerbread Apr 27 23:47:15 and I'm not sure if the kernel would support it. Apr 27 23:48:37 oh im an idiot Apr 27 23:48:42 n4 has no hard keys huh Apr 27 23:49:41 yea. I was thinking maybe installing a softkey app or something tho Apr 27 23:50:27 i dont think that exists Apr 27 23:50:58 although idk, i dont know what im talking about, i guess it might lol Apr 27 23:51:27 like xtended nav bar. but it n Apr 27 23:51:28 better option might be an app that interprets hardware buttons as softkey actions Apr 27 23:51:35 like using volume keys for navigation or something Apr 27 23:51:39 probably doesn't work in 2.3 Apr 27 23:51:48 why are you putting GB on your n4 anyway? Apr 27 23:51:53 that'd be cool. Apr 27 23:52:01 idk... why not Apr 27 23:52:11 oh its just for fun lol? Apr 27 23:52:20 yea basically lol Apr 27 23:52:47 hmm... did ICS have a nav bar? Apr 27 23:52:54 what about just replacing your theme files with GB stuff to make your phone look like GB without running like shit Apr 27 23:53:39 wouldn't it be faster anyways? more lightweight Apr 27 23:53:51 ehh Apr 27 23:53:59 like faster than 5.1 Apr 27 23:54:01 once again im entering "talking out of my ass" territory but i dont think so Apr 27 23:54:17 ah okay Apr 27 23:54:21 theres a lot of optimization that goes into each version of android Apr 27 23:54:38 yea like project butter Apr 27 23:54:41 like when.. was it lollipop or kitkat? when they came out with the android runtime or something Apr 27 23:54:44 ART Apr 27 23:54:50 that's L Apr 27 23:54:57 ahh Apr 27 23:54:59 Is there a code coverage utility in Intellij? Apr 27 23:55:01 well... it was experimental in KK Apr 27 23:55:05 yeah haha Apr 27 23:55:16 it wasn't on by default Apr 27 23:55:26 and broke lots of apps Apr 27 23:55:37 but either way i think newer versions are faster than old. they don't really get "bloated" like desktop OS's do because google has been designing new androids with third world chinaphones in mind Apr 27 23:56:11 that's not exactly true. jb runs faster than KK or L Apr 27 23:56:18 hm, they can only optimize to some dgree because of the lack of integration Apr 27 23:56:22 does it? Apr 27 23:56:38 on my nexus 4 and nexus 7 it does Apr 27 23:56:47 dunno then Apr 27 23:56:49 like waaaay faster Apr 27 23:56:54 really? weird Apr 27 23:57:15 oh you know Apr 27 23:57:21 well they were designed to run it. makes sense sorta Apr 27 23:57:26 you could probably just reassign other hardware keys to be your "back" and "home" buttons on the n4 Apr 27 23:57:41 i think build.prop literally assigns stuff in plaintext like VOL_UP=volume_up or something Apr 27 23:57:47 you could just change it to use volume rockers as navigation Apr 27 23:58:38 true. but I'd need 3 and I only have 2 rockers and a power button (which I sorta need lol) Apr 27 23:59:21 Starting a new application that will rely heavily on the network. Is it standard practice to put on HttpClient in the App class? I'm decisding whether or not to put it there. Apr 28 00:03:01 anyways. maybe I'll do something more... realistic Apr 28 00:03:52 why do you need 3? Apr 28 00:04:03 @eghdk: what do you mean? Apr 28 00:04:34 i'm no expert but usually i just use HttpClient in whatever method needs it. Apr 28 00:04:39 what are you trying to do? Apr 28 00:04:46 back, home, option (not recents, it's gingerbread) Apr 28 00:04:58 is option really needed? Apr 28 00:05:10 hmm... I guess not really Apr 28 00:05:40 eghdk: You can only test public methods or package-private methods from within the same package. Apr 28 00:06:22 So you could just leave off the 'private' keyword, put the unit tests into the same package (thought obviously different directories), and test those. Apr 28 00:06:51 Some people say you shouldn't test non-public methods. I agree to a degree, but I think there are exceptions. Apr 28 00:07:04 Is it common practice to have your Class and your class tests in the same package though? Apr 28 00:07:09 TacticalJoke: Apr 28 00:07:45 I think it is. However, the better question is of whether it's a good idea to do this. I don't see any downside, personally. Apr 28 00:07:56 And the huge benefit is that it allows you to test package-private stuff. Apr 28 00:08:31 http://stackoverflow.com/questions/2898512/include-unit-tests-in-the-same-package-as-the-source-code-in-java Apr 28 00:08:54 eghdk do you mean same physical dir or same package :D Apr 28 00:09:30 More here: https://www.google.com/search?q=java+unit+test+same+package Apr 28 00:09:58 same physical dir is not same package? Apr 28 00:12:06 g00s: and TacticalJoke I guess I'm just confused if creating a test directory means that I can't test anything but public methods. Apr 28 00:13:13 eghdk: Just see the link I posted: http://stackoverflow.com/questions/2898512/include-unit-tests-in-the-same-package-as-the-source-code-in-java Apr 28 00:13:14 Because this line had me confused from google: Our gradle plugin will compile source code found in src/test/java and execute it using the usual Gradle testing mechanisms. Apr 28 00:13:34 Alright TacticalJoke I'll look at it. Apr 28 00:16:08 TacticalJoke: okay. That makes sense. So I want to keep my tests separate, but my packages can still line up. That's basically what I'm getting from that SO answer. Correct me if Im wrong Apr 28 00:16:24 That's right. Apr 28 00:16:47 In some cases, the desire to test non-public methods is a code smell, so do consider that. Apr 28 00:16:52 Not in all cases, though. Apr 28 00:17:20 code smell? Apr 28 00:17:32 The general idea is that testing public behaviour should entail testing everything; that if testing all public methods doesn't test all private methods then the class isn't coherent. Apr 28 00:17:46 But I can think of a few exceptions. Apr 28 00:17:50 Makes sense. Apr 28 00:17:55 Actually that makes a lot of sense. Apr 28 00:18:26 I can't think of any exceptions. Feel free to throw one out here for me to ponder on if you're free Apr 28 00:19:31 A custom resizable array/buffer whose tests verify that the class is resizing the internal buffer correctly. Apr 28 00:19:48 The buffer shouldn't be exposed to the world but the tests might want to check it. Apr 28 00:20:04 how come code smells never smell like bacon ... Apr 28 00:20:28 Here's an SO question on this topic: http://stackoverflow.com/questions/105007/should-i-test-private-methods-or-only-public-ones Apr 28 00:20:44 Not sure whether it's good; watching TV while skim-reading. Apr 28 00:25:30 Starting a new application that will rely heavily on the network. Is it standard practice to put on HttpClient in the App class? I'm decisding whether or not to put it there as a static and keep it locket to only one. Apr 28 00:25:59 interesting http://www.wired.com/2015/04/google-faces-enormous-forces-fight-future-android/ Apr 28 00:26:39 "The trial revealed various contracts in which Google required phone makers to bundle certain Google services when using its Android operating system, such as Google Search, Google Maps, and the Google app store (a.k.a. Google Play)—and bundle them at the expense of other services from third parties." Apr 28 00:26:41 eghdk: A static field works. A lot of people prefer a DI framework (such as Dagger) for such things. Apr 28 00:26:47 this kinda sounds like microsoft :) Apr 28 00:28:51 eghdk: Note that "standard practice" doesn't always mean "good practice" -- especially in Android. Apr 28 00:29:14 I've never used Dagger. This seems like it could be a good reason to try it... no? Apr 28 00:29:55 eghdk: Also, OkHttp is better than the Apache thing. Apr 28 00:30:08 heh the apache things is kinda terrible Apr 28 00:30:16 like saying, this is better than turd Apr 28 00:30:55 TacticalJoke: Heh. I've come to realize that. But to me I just need a valid argument if someone asked me. "Why do you have one httpclient". I'd say because I want the connections to go through one client. That sounds reasonable right? Apr 28 00:32:51 This may be a silly question, but if I've added a library with gradle and I know that library contains resources (images), how can i access them programmatically? Apr 28 00:33:00 getResources().getDrawable() doesn't show me the option Apr 28 00:33:07 I can't imagine an Android app wanting more than one HTTP client (outside of fancy stuff relating to temporarily cloning instances to change their configurations). Apr 28 00:35:09 https://github.com/pfn/android-sdk-plugin/commit/a3cf0ce6170e8699336c5d60f10e86831ffdf8d5 Apr 28 00:35:12 now with integrated lint Apr 28 00:35:14 :) Apr 28 00:39:34 i wonder if google will ever host the 'google repository' with support lib & stuff using a proper online maven repo , not one downloaded by sdk manager Apr 28 00:40:23 eemgr: I guess the project would have to make them available as Android resources for that to be possible (as AppCompat does). Don't know much about this topic, though. Apr 28 00:42:51 Its strange, I can't add a file to my project drawable folder with the same name because it already exists, but I can't access it with R.id.my_drawable Apr 28 00:43:32 With the same name as what? Apr 28 00:43:53 as the one that exists in the library that was added via gradle Apr 28 00:45:03 https://github.com/dbachelder/CreditCardEntry/tree/master/CreditCardEntry/res/drawable-xhdpi Apr 28 00:45:04 those, basically Apr 28 00:45:29 R.drawable.whatever? Apr 28 00:46:23 actually maybe i can, one second Apr 28 00:48:09 got it, had to explicitly write it out though Apr 28 00:48:17 getDrawable(com.devmarvel.creditcardentry.R.drawable.amex) Apr 28 00:48:31 i tried important it but it didn't work Apr 28 00:48:34 importing* Apr 28 01:01:29 then you imported wrong Apr 28 01:01:33 time to go back to java 101 Apr 28 01:02:55 what would the import have been? Apr 28 01:03:11 com.devmarvel.creditcardentry.R and make sure you don't import another R Apr 28 01:03:19 thats what the error was... Apr 28 01:03:43 how should it be imported if there are multiple R's Apr 28 01:03:49 you don't Apr 28 01:03:57 you can only import 1 class with a given name Apr 28 01:04:09 right, which is why i typed out the full path Apr 28 01:04:33 just import the R for your project Apr 28 01:04:35 it includes all resources Apr 28 01:04:55 I have it, thats why I was confused as it why the drawables weren't accessible Apr 28 01:04:59 as to* Apr 28 01:05:09 but you don't Apr 28 01:08:03 Hi, on Android 4.4 in OnCreate there is a call new HttpAsyncTask().execute("...") . The issue is on one device it executed right away, on another device or it is delayed for ~10sec or more, or execute only after app restarted, i.e. there is "some issue with network connection". Any good workaround/proper solution for it? Apr 28 01:09:37 cylon512: Probably impossible to answer without more info (e.g., the code in question). Apr 28 01:11:14 Though we may have a psychic in the house. :D Apr 28 01:14:37 oh oh, looks like thepoosh has some competition. Fb messenger has video chat now Apr 28 01:16:13 (: it's just a call "HttpClient httpclient = new DefaultHttpClient(); HttpResponse httpResponse = httpclient.execute(new HttpGet(url)); inputStream = httpResponse.getEntity().getContent();" by some reason (presumable due to network not ready) with different results Apr 28 01:17:30 i.e. it's clear that I do miss some important part in understanding of proper network connection on Android, as result code was "skipped" as presumable incorrect (: Apr 28 01:30:45 if you're doing http stuff it's best to stuff it into a service... also note you can't assume a user has a network connection Apr 28 01:31:13 graceful degradation... Apr 28 01:35:03 hello Apr 28 01:35:04 bankai_: thank you Apr 28 01:35:27 is it possible to make an app by using only jquery mobile? Apr 28 01:35:40 without needing to connect to the internet? Apr 28 01:36:18 jquery? sounds like cordova nonsense Apr 28 01:36:27 hmm? Apr 28 01:36:44 what's cordova Apr 28 01:37:22 heh Apr 28 01:37:36 Lencl maybe take a look at react native Apr 28 01:37:50 jquery is kinda low level right, like assembly level for javascript Apr 28 01:37:54 :D Apr 28 01:38:02 so what's better then? Apr 28 01:38:17 most of us do native apps Apr 28 01:38:29 meaning using java? Apr 28 01:38:32 yes Apr 28 01:38:51 Ok guys Apr 28 01:38:51 jquery just seems a lot easier Apr 28 01:38:58 I did it' Apr 28 01:39:02 I mean, why is the select drop down called spinner Apr 28 01:39:11 I got a rmd to use Apr 28 01:39:19 rmd? Apr 28 01:39:27 Remote desktop Apr 28 01:39:35 g00s, but it *is* possible to build an app using html/jquery? Apr 28 01:39:44 Going to install Android studios Apr 28 01:39:59 Lencl: https://cordova.apache.org/ Apr 28 01:40:46 g00s, but it *is* possible to build an app using html/jquery? Apr 28 01:42:37 Lencl never tried it myself; don't use any i'm sure Apr 28 01:46:29 hello Apr 28 01:46:51 is there any specifics on how google reduced the memory footprint on kitkat? Apr 28 01:52:13 studying themes / styles in appcompat ... pretty complicated Apr 28 01:53:21 It reminds me of analysing complicated chess positions. Apr 28 01:53:25 You could devote your life to it. Apr 28 01:54:08 if you could quantify the complexity that goes into that, appcompat, the gradle build system, all just to put a toolbar from api8 to 5 its staggering Apr 28 01:54:31 i wonder if the google engineers secretly wish they could just nuke it all from orbit Apr 28 01:54:48 then again, they love cleverness it seems Apr 28 01:57:00 looks like support 22.1.1 is out Apr 28 01:57:12 no changelogs yet Apr 28 01:57:20 it was out last week Apr 28 01:57:32 22.1.0 was Apr 28 01:57:33 hahaha Apr 28 01:57:39 joshkovach 21.1.1 Apr 28 01:57:46 "all just to put a toolbar from api8 to 5" laughing so hard Apr 28 01:57:59 it is crazy all the work they put into such simple backcompat Apr 28 01:59:10 software has mass though, and so inertia - the more code that is needed - the harder it makes it to change. but i'm glad i dont have to have that in my code Apr 28 02:00:19 I would not be able to sleep. Apr 28 02:14:41 damn when stuff works the way it's supposed to its satisfying as hell Apr 28 02:16:32 Not sure if Satisfied Seal or Paranoid Parrot. Apr 28 02:19:23 I'm making a wizard with prev/next buttons. Fragments are currently rolled in via transaction.replace.commit. What is the correct way to save all fragments instances and not recreate them each time? Apr 28 02:20:04 creitve i think it would be easier to do with plain views in this case Apr 28 02:20:34 especially if data in one step depends on data in another Apr 28 02:22:14 And how do I animate left/right transition then? Apr 28 02:22:47 I think ViewPager would be simlest Apr 28 02:22:48 also, does it mean I will have to clutter every control from all the screens in the same oncreate? Apr 28 02:22:51 *simplest Apr 28 02:22:55 Ah Apr 28 02:23:18 Silly me, thanks. Apr 28 02:23:34 creitve also , i remember seeing at least one wizard library on androidarsenal - never used it, probably never would -- easy to do yourself Apr 28 02:26:20 is there a way to 'stack' view backgrounds ? for example, i'd like to use selectableItemBackground, but have the default state with a slightly different alpha Apr 28 02:26:32 Do y'all think Socket.close might block ever? Apr 28 02:26:44 I'd expect it to, but people on Google are saying it's "async". Apr 28 02:26:59 Although one guy calls it async and then points out a case where it's not. :| Apr 28 02:28:02 i doubt it, best practive interrupting a reading thread is to override interrupt() and close the socket Apr 28 02:28:22 you could also close the streams in advance but, at least the impl i use does that too Apr 28 02:28:39 i think though, localserversocket did hand heh Apr 28 02:28:43 *hang Apr 28 02:31:08 TacticalJoke do you have JCIP ? Apr 28 02:31:46 Nah. Apr 28 02:32:03 they talk about it :) Apr 28 02:33:23 g00s: LayerDrawable Apr 28 02:33:36 JakeWharton ah, thanks Apr 28 02:34:27 JakeWharton: Is there any issue with giving, say, Executors.newSingleThreadExecutor to an OkHttpClient? I ask because the documentation says "If you supply your own executor, it should be able to run the configured maximum number of calls concurrently" and I'm not sure how to interpret 'concurrently'. Apr 28 02:34:38 no idea Apr 28 02:35:21 Okay, no worries. It seems to work and the code seems fine. I'm guessing they wrote that to avoid people giving thread pools with a hard limit of N threads or whatever. Apr 28 02:35:32 why would you do such a thing? Apr 28 02:36:12 Well, I'm not wanting to give it a one-thread thread pool, but I do like the idea of having a tiny number of threads (maybe two) "always on". Apr 28 02:37:08 the default has a 60 second timeout on the core pool Apr 28 02:37:27 if the app hasn't made a request in 60 seconds, it doesn't need a thread Apr 28 02:37:30 JakeWharton oh well http://stackoverflow.com/questions/28432686/selectableitembackground-as-item-in-layer-list Apr 28 02:37:43 Ah, true. Apr 28 02:37:46 you gain nothing by doing what you described Apr 28 02:37:54 and i think you'll make things much worse, in actuality Apr 28 02:38:12 oh wait, seems like he must have screwed up Apr 28 02:41:42 Whoa. Apr 28 02:41:51 If I call Socket.close on the main thread I get a NetworkOnMainThreadException. Apr 28 02:41:56 Guess that answers that. Apr 28 02:42:18 is it possible to set override Google Maps' label of a location when launching via a "geo:" intent? Apr 28 02:42:35 I love that exception. No ambiguity. Apr 28 02:42:37 TacticalJoke interesting Apr 28 02:43:36 One thing I don't understand, though, is that if I call OkHttpClient.cancel(Object), which calls Socket.close, while one of my threads is sleeping, once it stops sleeping and starts downloading, it successfully downloads, as if the socket is still open. Apr 28 02:43:53 Surely I should be getting an IOException when I try to download at that point. Apr 28 02:44:09 hmm https://github.com/google/iosched/commit/dd7ed72a7eb2d223203db079bd99d31c6ef3061e Apr 28 02:44:49 so i guess that only works on lollipop then ... **** ENDING LOGGING AT Tue Apr 28 02:59:59 2015