**** BEGIN LOGGING AT Sun May 10 02:59:59 2015 May 10 03:02:39 can anyone see why this listener wont work? im stuck https://gist.github.com/DylanRedfield/a224154c18ae5c861eed May 10 03:02:48 heres the layout xml https://gist.github.com/DylanRedfield/460b2a8a7aa2af640212 May 10 03:03:02 its not the focusable:false May 10 03:03:06 not sure about rust... I still suck at the languages I know May 10 03:06:33 capella-s3 seems pretty up and coming May 10 03:07:14 Is it marketable? ;) May 10 03:07:39 I'd like to stop working for free May 10 03:07:45 anyone know if there is a good way to convert a drawn path which was saved with Path.lineTo() to a Path.quadTo() (provide bezier quadratic smoothing to the path)? May 10 03:12:41 capella-s3 if you want to work on an open source project & get scooped up by a company, try the linux kernel May 10 03:12:44 Though Samsung is involved in Servo... be cool to meet some of those guy May 10 03:13:02 i hear there are few unemployed linux kernel devs May 10 03:13:09 I thought about that! May 10 03:13:11 (they tend to get josb quickly) May 10 03:13:24 too bad its C :D May 10 03:13:58 C is ok.... I like working close to the OS May 10 03:14:12 started out with asm May 10 03:14:53 system programming vs app May 10 03:36:44 g00s, so what's the analog for a single item observable in rx? May 10 03:38:14 Just("a")? May 10 03:38:47 that still gives you a whole observable though? May 10 03:39:16 Sure, what do you expect? May 10 03:40:32 an equivalent to future May 10 03:41:56 Isn't this what an Observable fundamentally is? A cold Observable will only emit once you subscribe, so it's akin to a future May 10 04:00:33 hello guys ! Does anyone know where i could find some articlesa bout how a mobile phone is constructed? May 10 04:01:57 CedricBeust, I suppose, the api just feels more unwieldy as its geared toward multiple values May 10 04:02:08 I am writing a report for my university about WiFi offload. I need to asses how easy or difficult it is for a mobile device to switch between the WiFi antenna and the broadband antenna May 10 04:02:46 so i would like to find some data about how a mobile device is constructed May 10 04:03:05 pfn: The number of values doesn't matter much, does it? May 10 04:03:30 I believe it's a multitude of parts coming from different vendors, which are put together on the same "motherboard", just like a typical PC May 10 04:04:02 however, i would like to know if this is the case May 10 04:04:13 CedricBeust, not really, I just don't like using a multi container when something else is possible with a single container May 10 04:04:27 CedricBeust, like I prefer to use a maybe vs a list May 10 04:04:51 maybe this is not an android dev question, but i am guessing you guys would be the people to know these kind of things May 10 04:05:00 pfn: But a container is what enables monadic composition. It's better to have an API that returns a List of one or a List of n, rather than either a single value or a List of n May 10 04:05:01 soLucien, so would googling May 10 04:05:07 i tried May 10 04:05:22 don't know how to ask google May 10 04:06:32 soLucien: this channel is more for higher-level android app development, not so much about mobile phone hardware :) May 10 04:06:43 i understand. May 10 04:08:12 CedricBeust, sure but semantics May 10 04:08:23 I have an Android phone, maybe I can help ? May 10 04:09:30 i'm a programmer myself, but i mostly do c#/java/c++. I can put a PC together, take it apart, know what all the components do, and i can debug a driver, and go to the lower leve, to see what the hardware is doing. I don't know anything about mobile devices, since i have never worked with them . I figured android/mobile devs would be as knowledgeable in this area. May 10 04:09:44 I'd like to play with scalaz-stream actually, but I can't think of any way it could apply in android May 10 04:10:38 it seems like the mobile world is shrowded in mystery as far as parts go May 10 04:11:07 it's either i don't know what to look for, or the data is patented and proprietary May 10 04:13:30 pfn: As a general rule, I don't trust any library written by someone who has zero experience about mobile development May 10 04:13:39 let alone a library that wasn't written specifically for a mobile OS May 10 04:14:13 isn't android ~ Java? May 10 04:14:18 That's what I heard :) May 10 04:14:28 Android is Java minus a few libraries May 10 04:15:32 Then whatever works for Java should on android .. right ? :) May 10 04:15:37 CedricBeust, not the point I'm making, but sure, it's pretty unsuitable for android given the rampant side effects May 10 04:15:55 soLucien: For the most part, it's true May 10 04:16:14 why would a library need to be written "specifically for a mobile OS" May 10 04:16:33 soLucien: The constraints are very different on a mobile OS vs/ a desktop May 10 04:16:50 power? May 10 04:17:08 it seems like that's the only constraint May 10 04:17:08 Things used to be a lot worse (JavaME) and the two worlds have started converging, but there are still marked differences May 10 04:17:21 Which are especially acute for libraries, a bit less for application code May 10 04:17:36 looking at the specs of phones in the last few years, they could easily compete with PCs 5 years ago May 10 04:17:59 soLucien: only on paper May 10 04:18:19 yeah, maybe it's marketing May 10 04:18:35 it's not marketing, it's the meaning and context of the specs May 10 04:18:36 but some of these phones seem to be beasts May 10 04:18:52 GBs of ram, dual core processors May 10 04:20:34 does this seem like a reasonable source for data about architecture of smartphones? http://www.natmo.gov.in/auth/natmo_manage/writereaddata/upload/seminar/Smart_Phone_Arch_.pdf May 10 04:21:20 CedricBeust, and yeah, libraries that aren't specifically written for mobile still have a place on android May 10 04:21:33 Or is this outdated/wrong? May 10 04:21:42 I need to base my report around something May 10 04:21:42 pfn: As long as they don't have a mobile counterpart, possibly May 10 04:21:56 I used to use Guice, Guava and Joda on Android in the good old days. No longer. May 10 04:22:14 guava is about the only thing that makes java on android bearable May 10 04:22:24 soLucien: beasts go through battery in a couple of hours, if they're being beastly May 10 04:22:31 CedricBeust, I presume because of kotlin May 10 04:22:33 pfn: I haven't used it on Android in 2+ years May 10 04:22:44 I pick and choose useful classes but I don't use the library any more May 10 04:23:06 No, nothing to do with Kotlin, I'm talking about Java on Android May 10 04:23:10 it's large ish, but not bad May 10 04:23:17 it can be pretty terrible May 10 04:23:18 Leeds as i said, battery seems to be the only constraint. Other than that, it seems they're doing a good job at miniaturization May 10 04:23:28 high on short-lived allocations May 10 04:23:33 so you can have some pretty powerful hw in them May 10 04:23:49 battery is a *major* constraint - network and storage are also constraints May 10 04:25:07 JakeWharton, as android versions march forward, I care less and less about such minutiae May 10 04:25:16 btw, from the link i posted May 10 04:25:31 it seems like there are a LOT of CPUs inside a smartphone May 10 04:25:41 well you use scala May 10 04:25:45 so that's pretty obvious May 10 04:26:07 it seems like evrything runs on its own processor May 10 04:27:30 soLucien: it seems that way till you get OutOfMemoryExceptions for no good reason May 10 04:28:32 so they have 10 CPUs sharing the same memory May 10 04:28:48 seems like a pretty bd idea May 10 04:33:16 https://onedrive.live.com/redir?resid=d7d70beec040c834!1595&authkey=!AEPlA8tswqDjpnE&v=3&ithint=photo%2cPNG May 10 04:38:36 yeah specs for smartphones keep approaching whats necessary to run desktop apps, even if they need to be plugged in to do that - thats why ubuntu and MS are going that route May 10 04:39:14 Android guys squeezed java to run on what existed, MS and ubuntu are planning for whats ahead May 10 04:39:56 I've actually always hated MS, but it seems that now they're the only ones that "get it" May 10 04:40:13 except ubuntu , which has always been there May 10 04:40:32 except ubuntu isn't actually anywhere May 10 04:40:55 open source evrything, respect the devs May 10 04:41:03 yeah i wish shuttleworth could get ubuntu on phones but - there are so many politics, other players May 10 04:41:14 carriers screw everything up May 10 04:41:51 amen. telcos have too much of a saying on the mobile market May 10 04:42:13 the research i'm doing now points to that :) May 10 04:42:18 one of the reason windows phone didn't take off was because MS wasn't going to give carriers the level of customiations that google did May 10 04:42:33 the window of opportunity for new mobile platforms closed a year or two back... windows and bb10 are just about hanging on with their fingers in the door, there's no space for anyone else to get in May 10 04:42:33 they had strict reuqirements on what could be instelled, what could run in the background, etc May 10 04:42:58 well windows is trying to enable people to run android/ios apps on their os May 10 04:43:45 soLucien: at the moment, they're talking about *compiling* android/ios apps for their OS, which is quite different May 10 04:44:03 yes May 10 04:44:08 that is what i also meant May 10 04:44:09 ultimately shuttleworth would probably have the same problem google had; they needed 'one ring to rule them all' (aka Play Services) May 10 04:44:39 you , as a dev, have to compile the android/ios app for windows May 10 04:44:41 open source the commodity / uninteresting bits, but some special sauce to keep everyone in line May 10 04:44:47 but there's no porting involved May 10 04:45:17 allowing users to run android apps on a windows phone would be illegal May 10 04:45:26 (i think) May 10 04:45:49 why on earth would it be illegal? May 10 04:46:36 because they are sold on the play store or whatever it's called May 10 04:46:59 i am pretty sure there's a clause on the terms and conditions thing that no one reads May 10 04:48:10 oh, sure, they couldn't redistribute apps - although nobody seemed to care very much when that happened with blackberry May 10 04:49:03 i mean take the apple store for example. Let's say MS is able to run objective-c tomorrow , and they can run "native" iOS apps. May 10 04:49:20 how would they enable users to install them? May 10 04:49:41 would they "steal" them from the apple store? Create their own Cydia thing? May 10 04:50:19 once you go with apple, you are married to apple. May 10 04:50:22 in the end, blackberry compromised, did a deal with Amazon to carry their app store - much smaller and less up-to-date than the Play Store, but above-board May 10 04:50:38 there is no way in hell Apple would allow MS access to the iOS app store May 10 04:51:08 that's why they made a compiler. May 10 04:51:18 you, as the dev, can compile it and publish it to ms store May 10 04:51:27 easily May 10 04:51:30 but I, as a dev, won't May 10 04:51:49 why wouldn't you? It's another source of income May 10 04:52:02 the idea behind it is there's no porting involved May 10 04:52:43 i dont want to get bug reports from people running my app on some Lumia device :) May 10 04:52:50 my Android app ;) May 10 04:53:11 i dont even want bug reports from people running my app on custom android roms May 10 04:53:28 that's cool. Ignore them . They still paid for it. May 10 04:54:02 well if they paid for it that means i submitted it to Windows store, but i wouldn't do that May 10 04:54:07 right, it's overhead, it almost certainly won't be a 100% clean rebuild, I still don't want to support MS for what they've done to the industry in the past, and frankly... why bother for a few users who are almost all using windows because the phones are cheap? May 10 04:55:05 I think the plan is to be able to run them on windows 10. May 10 04:55:35 which, based on recent history, means new phones only May 10 04:56:48 but i'm not convinced google is a 'better behaved' company than MS - maybe in a narrow respect about open source techs, but come on May 10 04:56:50 tat means you can run them on any device running windows 10 May 10 04:56:55 including PCs May 10 04:56:59 laptops and all that May 10 04:57:16 hi May 10 04:58:35 i'm not saying it's a good thing.. I'm saying that the market is huge May 10 04:59:42 considering that all windows 7/8 users get a free update to windows 10, that's going to be alot of people May 10 05:12:14 oh man, kindle put an advertisement in my notifications May 10 05:12:25 that means 1-star review is coming :) May 10 05:12:43 not sure I follow May 10 05:13:08 do you have a book published or something? May 10 05:14:09 i want to has anyone been able to install android studio on linux system... so that it runs using a user account instead of root May 10 05:14:19 oh, i need to create google+ account to review, shit May 10 05:14:34 Carbonflux no, the kindle reader for android May 10 05:14:55 I use that on my tablet but I have never seen an add, yet ;) May 10 05:15:02 ad* May 10 05:15:06 * Carbonflux worries May 10 05:15:09 this was the first one, a few minutes ago May 10 05:15:29 maybe you can turn it off May 10 05:15:56 I guess if you turn off notifications in the settings. May 10 05:16:11 I have installed AS on Ubuntu Kingnolo May 10 05:16:14 yeah i just did that May 10 05:16:18 using a normal user account May 10 05:16:21 not root May 10 05:23:53 Carbonflux ah, somebody already caught it "Recent update == Spammy Notifications" May 10 05:24:27 can an app know if its notifications have been disabled by the user ? May 10 05:27:36 'Used Pizza Hut app to escape hostage situation' -- well that app gets 5 stars for sure :) May 10 05:27:57 ah ok, I will watch out for it May 10 05:28:39 I am not sure, there should be a way to query it thru some api May 10 05:32:44 I hope not but if there is, what then? What will you do with the information that your notifications are not being displayed? May 10 05:35:43 CedricBeust i would think analytics May 10 05:35:57 (90% of our users turned off notifications) - hmm May 10 05:36:32 Fair enough May 10 05:36:42 Somehow I doubt you can query this but it's just a guess May 10 05:37:26 well, one could check it and decide not to post them, just for the sake of completeness. May 10 05:39:30 disabled notification has nothing to query May 10 05:39:53 so i'm still wondering what the deal is with 'swiped away from recents' and apps' services. i'm reading that even foreground services get killed. but in my case, i'm worried the files i am writing too might get corrupted May 10 05:40:22 i guess this was fixed in 4.4.3, and then is showing upa again in 5.0 May 10 05:40:46 unless its deliberate, but still - seems very harsh - you should have a few seconds to cleanly shut down May 10 05:42:22 hey guys May 10 05:42:36 g00s: Swiping away has zero impact on the process May 10 05:42:49 how do I import new images into android studio (that are say in my res/drawable folder) May 10 05:43:48 CedricBeust i wonder then if some oems are changing this to be more agressive ? but its definitely happening in the wild May 10 05:44:10 let me see if i can find bug report May 10 05:44:19 g00s: Never knew about that but it's a possibility, of course May 10 05:44:30 it doesnt automatically add into the project May 10 05:44:31 :/ May 10 05:45:29 CedricBeust https://groups.google.com/forum/#!topic/android-developers/mRDeMHVVS3Q May 10 05:46:28 Odd, but I'm a bit skeptical if it's just two people reporting this May 10 05:46:52 fuckin christ May 10 05:46:58 At least on Stock, I definitely don't see this: you swipe away, the app is still running, you're just removing it from the recent apps May 10 05:47:21 i'm trying to find the 4.4.3 bug report, if i recall its still alive May 10 05:47:33 CedricBeust hm, ok May 10 05:47:54 well, that is good news. i'm using an experimental k/v store but its not quite as robust as sqlite yet May 10 05:48:08 how the fuck do i import images into android studio? why is this so hard May 10 05:48:16 they are in my res drawable folder already but thtye odnt show up May 10 05:48:46 liftedbronco do you mean you can't see their R entry IDs ? May 10 05:49:01 res/drawable/foo -> R.drawable.foo ? May 10 05:51:00 Any idea what algorithm is used in apps like CamScanner to transform a polygon to a rectangle? May 10 05:52:24 I mean, quadrilateral to rectangle transformation May 10 05:59:02 CedricBeust, huh? swiping away finishes and kills apps May 10 05:59:17 CedricBeust, been this way since like ics May 10 05:59:46 CedricBeust, not anything with a running life cycle component though May 10 05:59:59 g00s, and no, I do not see that behavior on 5.0 May 10 06:00:12 pfn seems 5.1 May 10 06:00:40 i'll have to look into it more, i can't even find the 4.4.3 bug May 10 06:02:29 * pfn hasn't had 5.1 to tell May 10 06:02:38 I should update my nexus 7 May 10 06:04:21 mine is still at 4.4.4 May 10 06:04:36 shmooz me too May 10 06:05:05 we don't need stinkin' lollipop! May 10 06:06:22 omg JakeWharton is taking over the fragmentedpodcast show May 10 06:06:57 they shoud put CedricBeust on to talk about tokin and rxjava :) May 10 06:07:03 *kotlin lol May 10 06:07:16 i got some of the letters right :D May 10 06:07:39 so you're tokin' huh ? and had a freudian slip May 10 06:07:43 g00s: I'd be happy to May 10 06:09:44 I like to say May 10 06:09:49 kotlin shmotlin! May 10 06:39:02 would be nice if there was an alternative to RecyclerView.notifiyDatasetChanged - that just rebinded the items rather then recreating new views and view holders May 10 06:39:28 i guess you could iterate through all of them and call notifyItemChanged, that doesn't recreate the viewholders May 10 06:40:06 seems kinda lame though May 10 06:56:22 hm, i guess i could use notifyItemRangeChanged(0, stuff.length() ) May 10 06:59:37 crap, that causes everything to flicker ... ffff May 10 07:30:00 If I decompile an apk, will the files in the assets folder be visible? May 10 07:36:48 Is there a theme like Wombat for Android Studio? http://eclipsecolorthemes.org/?view=theme&id=118 May 10 07:38:59 RishabhTatiraju: You don't need to decompile an APK to see the assets. To answer your question though, yes May 10 07:39:23 You can just open the APK like a ZIP file and the assets folder should be at the root of the ZIP/APK May 10 07:40:26 well, the trouble is, i run a javascript inside an html file located in assets May 10 07:41:07 so there sure is a possibility for a hacker to modify the script and make it destructive, right? May 10 07:43:18 RishabhTatiraju: They would have to uninstall and re-sign the APK to change your script. I wouldn't worry too much about it. May 10 07:43:56 ohkay May 10 07:43:58 thanks May 10 07:44:11 RishabhTatiraju: Also, they'd have to distribute the hacked APK.. May 10 07:45:06 But yes, any part of your app can be modified May 10 07:48:42 i'm not concerned about the source. Its all public KML map data i use in the app May 10 08:18:51 guys ! What is the level of customization WiFi chips allow on a smartphone? May 10 08:19:13 let me rephrase: is there a limit as to what you can do with WiFi? May 10 08:20:12 let's say i want to send a wiFi probe request from my android phone. Does Android allow me to do it? May 10 08:33:39 soLucien: "wifi scanner" apps are rather common on google play, I guess most of them use active probes too... May 10 08:35:32 i found the android.net.wifi package. It seems to be able to do most of the stuff WiFi network cards allow for. May 10 08:35:37 thanks ! May 10 08:48:01 Damn guys! May 10 08:48:45 I have a few apps on google play with 12k new installs every month and growing, and I can't sell anything, not even upload paid apps because my country is not allowed to do so! May 10 08:49:01 What can I do? I think I could be getting a lot more money, what do you think? May 10 08:53:03 hire someone in the US store to do it for you May 10 08:53:45 Wixy: If your country is not allowed to upload paid apps to the Play Store, there's very likely a legal reason for that. May 10 08:54:24 Chamooze, there is likely no reason for me to care about any legal reason May 10 08:54:56 really guys? there should be a way to register an account May 10 08:55:07 do you know about payoneer? I'm not sure it works on google play May 10 09:20:51 so, something weird just happened, I passed a view that was most definitely not null to a method where it was declared final and got a NullPointerException May 10 09:20:55 @_@ May 10 09:21:00 daniel3: ! May 10 09:21:09 danijoo: I meant you May 10 09:21:10 !!! May 10 09:21:27 good morning May 10 09:22:04 12:20 thepoosh: so, something weird just happened, I passed a view that was most definitely not null to a method where it was declared final and got a NullPointerException May 10 09:22:31 actually, I passed View.getParent May 10 09:22:44 any thoughts? May 10 09:23:39 http://goo.gl/f2WrZ8 May 10 09:23:50 Can I only close a Realm once in a thread? May 10 09:24:09 thepoosh, is it reproduceable and did you check what happend with a debugger ? May 10 09:24:14 no May 10 09:24:26 I'll end up wrapping with if(view != null) May 10 09:24:27 :S May 10 09:24:33 show the code :) May 10 09:24:43 it's a large animation method May 10 09:24:59 maybe getParent() is null? May 10 09:25:14 how is that possible?! May 10 09:25:18 hard to tell when its not reproduceable :/ May 10 09:25:28 thepoosh, for example if its not attached to contentview May 10 09:25:43 new TextView(this) would return null for parent May 10 09:27:23 danijoo: https://gist.github.com/yishai-glide/0cfd22eb486b6a74b27c May 10 09:27:36 no, it's called from an listview adapter May 10 09:27:43 after getView May 10 09:28:23 source is a listview item? May 10 09:29:31 yes May 10 09:30:00 ok. I have a theory May 10 09:30:11 ? May 10 09:30:30 I already added a null check and pushed May 10 09:31:06 if getView() gives you an already inflated convertView (recycled), this one will have a parent May 10 09:31:26 but if this isnt the case and you create it by hand, it wont have a parent until getView returns May 10 09:33:19 that is some weird scenario in which this already happens but I'll give you that May 10 09:33:22 it is possible May 10 09:33:50 that would happen for all views that are visible before the first scroll May 10 09:33:56 when theres nothing to recycle yet May 10 10:01:18 hi all May 10 10:01:30 hi May 10 10:02:36 I have a samsung galaxy s4, my wife has the same phone model except that hers was bought half of year later; she already automatically received the update to lollipop May 10 10:02:59 I don't have that update and when I search for a software update it tells me there is no update available May 10 10:03:10 is there a way to also receive that update? May 10 10:09:37 star_prone, download the update and flash it May 10 10:13:18 I have ubuntu on my laptop :( May 10 10:13:23 cannot install kies May 10 10:13:42 and I'm afraid to do it with odin May 10 10:13:47 the ROM is russian May 10 10:21:20 in oneplus/nexus that is an easy task May 10 10:23:59 ... May 10 10:24:11 doesn't really help me, does it? May 10 10:25:01 star_prone: just so you know, this channel is for android app development May 10 10:25:51 ohh... sorry! though is for android's developers May 10 10:27:07 Leeds, a question: I've discovered I can't put a ToggleButton into an Appwidget because Appwidgets support only some widgets May 10 10:27:24 Got a project with 2 activities, each with fragment. So, how can DetailFragment call a method in MainFragment...? May 10 10:27:36 cristian_c: sorry, never used Appwidget May 10 10:27:42 but google uses a set of power control widgets for homescreen, and I don't understand how they do May 10 10:27:46 Leeds, ok May 10 10:28:16 Do I go via Fragment Manager? MainFragment df = (MainFragment) getSupportFragmentManager().findFragmentByTag(MAINFRAGMENT_TAG); May 10 10:28:32 Has anyone any ideas how transform Buttons or Imagebuttons into ToggleButtons? May 10 10:28:32 or something like this? May 10 10:47:47 hi May 10 10:48:06 kernel developers here? i have a question May 10 10:48:13 when a phone is setup as a wifi-hotspot, could devices connected to the phone talk to the phone? May 10 10:48:32 we have two questions May 10 10:49:42 If I "switch" from main activity to detail activity, does the "mainfragment" still exist/run? I mean, can detailfragment invoke a (public) method in mainfragment, via getSupportFragmentManager().findFragmentByTag(MAINFRAGMENT_TAG); May 10 10:52:28 On a phone, I only see one of the activities at a time. It seems I'm getting df == null... Maybe this would work differently on a tablet screen, with a two-pane layout (i.e., where both activities are active/visible at the same time May 10 11:13:15 _genuser_: http://imgur.com/gKxGGR3 May 10 11:33:23 Hi! I am showing a camera preview on a TextureView and I'd like to draw some elements on top of it (guide-lines). The docs says that TextureView can only have one producer and thus, cannot be locked for drawing while the camera preview is active, how would I go about solving this? Here's what I have so far: https://gist.github.com/anonymous/d9520267b23ac8a83ae0 May 10 11:36:16 onto: What I've done in one of my apps is to use a SurfaceView inside a FrameLayout for the camera preview itself and overlaid that with another FrameLayout+SurfaceView May 10 11:37:34 and on the overlay SurfaceView I call setZOrderOnTop(true) and getHolder().setFormat(PixelFormat.TRANSPARENT) May 10 11:37:44 Chamooze: I am applying some transformations to the image so I'd really like to use TextureView (also, it is simpler). Would it also work with TextureView? May 10 11:37:58 No idea, haven't tried that. :) May 10 11:38:11 Chamooze: I'll try it then! Thanks! :) May 10 11:38:24 Hmmm, though whatever is underneath the "overlay" doesn't matter May 10 11:38:55 as my app can have either camera preview or a bitmap (ImageView) underneath May 10 11:39:01 Chamooze: So your layout looks something like: FrameLayout>(SurfaceView+(FrameLayout>Surfaceview)) ? May 10 11:39:26 Where ">" represents child and "+" represents sibling May 10 11:39:38 no, (FrameLayout>SurfaceView) + (FrameLayout>SurfaceView) May 10 11:40:02 Chamooze: Ah, I see. Thank you. Will try this approach. May 10 11:40:22 (first one being the "underlay" and the second the "overlay" frames) May 10 11:41:22 there's also a setZOrderMediaOverlay() on SurfaceView that might be what you want May 10 11:42:28 I had various issues with getting that layout to work, can't remember why exactly I ended up using setZOrderOnTop instead. heh May 10 11:44:33 Oh yeah, it was related to using AlertDialog and "sticky immersive" mode, so probably not something you need to worry about. :) May 10 11:45:01 Chamooze: Ah ok, thanks for the heads-up! May 10 11:49:17 Hey guys, I am trying to implement a chat functionality in my application where users will be able to communicate with many different users May 10 11:50:05 Would it be wise to use XMPP or implement a basic TCP service, and have a TCP server where all the clients connect to? May 10 13:06:57 How do I get resources (regular java resources) in junit test? May 10 13:07:16 this.getClass().getResource("") return file:/home/yoavst/Documents/AndroidStudioProjects/OhelShem/app/build/intermediates/classes/test/debug/com/yoavst/ohelshem/ May 10 13:08:40 yoavst: It might not be possible yet (depending on how you're running the unit tests). See . May 10 13:08:50 In AS 1.3, it should be possible regardless of how you're running them. May 10 13:09:03 thanks May 10 13:09:10 Are you running them from within AS? May 10 13:09:23 I think that, in AS 1.2, it's possible when running them as a Gradle task only. May 10 13:27:29 Hey folks, could you tell me from you own experience the advantages and disadvantages of the android video player (programmer wise) May 10 13:27:54 what you like about it, what you hate about it... what area it excells and when it sucks May 10 13:38:08 is it just me or the resource system sometime fails to detect the changes and to help it, you have to do a clean? May 10 13:38:12 (in the build system) May 10 13:38:31 i might be using an old version of the sdk but it seems rather flaky May 10 13:38:49 picking error on files where the error has been fixed May 10 13:38:57 Are you using Android Studio? May 10 13:39:29 nah im on eclipse May 10 13:39:33 probably using ant May 10 13:39:44 (can't use android studio right now) May 10 13:40:23 is there a hacky way to nuke all your intermediate files? May 10 13:40:32 like "nuke folder x" May 10 13:41:04 I guess cleaning does that. May 10 13:41:15 i meant something more radical May 10 13:41:25 cleaning probably still leave some files behind May 10 13:42:12 * DrBenway facepalms himself May 10 13:42:27 the error came from previous run and eclipse doesn't flush the buffer before building again May 10 13:42:39 all good brb May 10 13:49:52 Hi May 10 13:50:14 Compile android ROMs is like to develop for android? May 10 13:50:47 ajxier: no May 10 13:51:10 What is compile Android ROMs? May 10 13:53:28 Hello? May 10 13:55:55 ajxier: what exactly are you asking? May 10 13:56:17 What is compile Android ROMs mean? May 10 13:56:51 why are you asking, because this is like asking what is the color blue May 10 13:57:19 ajxier: are you interested in building apps for Android? May 10 13:57:35 Leeds: Yes May 10 13:57:46 then you're in the right place May 10 13:57:57 so compiling ROMs is not what you should be asking about May 10 13:58:00 Someone gave me this: http://nathanpfry.com/builduntu-virtual-machine-android-rom-compiling/ May 10 13:58:25 that has nothing to do with android application development May 10 13:59:36 Anyone is developing in Windows? May 10 14:00:12 do you have a specific question? May 10 14:00:32 Does anyone do? May 10 14:00:50 I want to know what is the difference between in windows or linux May 10 14:01:03 nothing, effectively May 10 14:02:22 Anyone is with dual boot? May 10 14:05:00 Because people told me is not recommended May 10 14:05:40 meh, pick an OS, write some code. May 10 14:07:19 I don't know how to write this so i can find tutorial. I read it better to compile android project from command line also is it bad im with jdk 8? May 10 14:07:47 ajxier: So you want a beginner's tutorial for app development? May 10 14:08:05 I read this: May 10 14:08:18 www.xaviertobin.com May 10 14:08:22 No more than this.. May 10 14:09:39 https://developer.android.com/training/basics/firstapp/index.html May 10 14:10:41 What is required to read this? May 10 14:11:05 Uh? A browser? May 10 14:11:24 Do I need to rule Java programming? May 10 14:12:29 Android apps are written in Java, so yeah you need to know some Java. May 10 14:13:26 I read the part on Java oracle just OOP start May 10 14:14:28 well, then you have the resources needed May 10 14:15:00 i read people read the android docs without learn java May 10 14:16:05 you can try I guess May 10 14:16:29 we won't stop you May 10 14:16:36 wouldn't exactly recommend jumping into Android dev without pretty solid understanding of Java though. May 10 14:18:02 Hi, I'm having a bit of bother still May 10 14:18:16 I'm trying to make a navigation drawer, following the instructions on d.android.com May 10 14:18:22 : https://developer.android.com/training/implementing-navigation/nav-drawer.html May 10 14:18:29 But so far, no progress May 10 14:18:36 https://serve.empy.org/e6yiVpdnbQ.txt May 10 14:18:42 Stuff like this stops me May 10 14:34:18 Anyone is developing under windows? May 10 14:34:40 Anyone developed with Linux and windows and what you like better? May 10 14:35:19 Sorry for asking much. Is it bad if I have jdk8 and not jdk7 for android development? May 10 14:36:03 It says: Java Development Kit (JDK) 7 May 10 14:36:05 so many irrelevant questions May 10 14:36:05 I have understood that you can develop with jdk8 only on android 5.0+, maybe May 10 14:36:20 ajxier: install the highest jdk May 10 14:36:31 it said jdk 7 in their website May 10 14:36:32 what exactly is the question May 10 14:36:36 :S May 10 14:36:41 is it not working for you? May 10 14:36:47 ajxier, you're making it more complicated than it needs to be May 10 14:36:55 im sorry :( May 10 14:37:09 ajxier, I prefer linux over windows mostly because you can do so much in the terminal. May 10 14:37:09 it worked the app of the guy May 10 14:37:23 ... um okay May 10 14:37:29 no idea what that means May 10 14:37:29 saapas: and which JDK. Also are you in dual boot? May 10 14:37:38 :S :S May 10 14:37:45 this: www.xaviertobin.com it worked with jdk8 May 10 14:37:47 ajxier: what did you try that didn't work? May 10 14:38:02 this is somewhat easy May 10 14:38:20 ajxier, nope I'm using os x for 9 years and loving it :) no dual boot. I *have* had ubuntu at work on couple occasions. using jdk7. May 10 14:38:30 ajxier, use what works and use whatever you prefer, no point in so many needless questions May 10 14:38:58 People said it not recommend to do partition for dual boot. because i read in some questions website they use more linux May 10 14:39:13 this has nothing to do with android or development May 10 14:39:27 I know :/ May 10 14:39:35 I don't know where you're getting this (incorrect) information though May 10 14:39:53 you should know better than to believe everything you see on the internet May 10 14:39:58 In #linux and #windows i I will do dual boot i will lose some windows bootloader May 10 14:40:07 ...sigh May 10 14:40:12 if* May 10 14:40:22 clearly you don't actually know what you're doing here... May 10 14:40:35 read up on how dual booting works May 10 14:40:40 still offtopic here May 10 14:40:41 I didn't do because they said i might lost something May 10 14:40:48 sorry May 10 14:41:41 make a backup and have a try. you never learn unless you try and make mistakes May 10 14:42:05 also quit with "but they said" May 10 14:42:25 hi May 10 14:42:29 connection lost May 10 14:42:47 16:40 < saapas> make a backup and have a try. you never learn unless you try and make mistakes May 10 14:42:51 16:40 < ravilov> also quit with "but they said" May 10 14:42:59 end of discussion May 10 14:43:14 thanks im going ask in #ubuntu and #hardware May 10 14:43:22 i google and found something looks good May 10 14:43:41 wow he's just not getting it May 10 14:43:49 sorry :( May 10 14:43:57 No idiea what you are trying to say May 10 14:44:07 so your solution to asking too many questions is to go ask more questions in other places May 10 14:44:30 Is there a way to get the height of a view before it renders? May 10 14:44:43 you can get the height after it is measured May 10 14:44:50 that happens before rendering May 10 14:44:53 I assume when creating a preference in xml, the android:key="" is just like the table where that setting is stored in sharedpreferences? May 10 14:44:56 I'm trying to move a view from center to top BUT below a new element May 10 14:45:19 Bolto, no idea what you mean by "table" here May 10 14:45:39 ravilov: I tried calling measuer() and giving it widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(ViewGroup.LayoutParams.WRAP_CONTENT, View.MeasureSpec.EXACTLY) but that gave an absurd value to myview.getMeasuredHeight May 10 14:45:54 ravilov: I don't know the exact word for it May 10 14:45:57 but in this case: val settings = getSharedPreferences("BOOT_PREF", 0) May 10 14:46:01 it would be BOOT_PREF May 10 14:46:08 yes, that is the key May 10 14:46:30 Petazz, not sure if that's how you use it May 10 14:46:31 ok, so within the key you can have values like isFirstRun in which case is a boolean? May 10 14:46:47 did you chekc the docs, Petazz? May 10 14:47:12 Bolto, the name of the key has nothing to do with the type May 10 14:47:22 ravilov: I did try to, but the spec says little about the usage May 10 14:48:10 Petazz, I'm pretty sure you can't use special dimensions such as WRAP_CONTENT outside of the layout phase May 10 14:48:54 ravilov: Got any idea what I should put in there then? Can't put the actual height coz that's exactly what I'm trying to get :D May 10 14:49:50 I would probably just make a custom view and override onMeasure() May 10 14:50:06 but that would probably get the value for you at the wrong time, hm May 10 14:50:14 ravilov: Actually the problem might be the EXACTLY, the doc does say to use that only when parent is setting the limits, which actually is not my case May 10 14:50:32 I tried to put it to UNSPECIFIED and that seems more like it May 10 14:50:40 maybe override onMeasure and then later call layout() May 10 14:50:50 Petazz, ok, then use that May 10 14:51:04 yea thx :D May 10 14:51:20 ravilov: I know, I didn't say it was May 10 14:51:36 I mentioned boolean because my next line is val firstRun = settings.getBoolean("firstRun", true) May 10 14:52:50 ok May 10 14:56:46 Anyone is with jdk8 and have problem? May 10 14:57:42 please stop asking questions. it serves no purpose and it looks it is only making you more confused May 10 14:58:35 plus, you already asked this and got answers May 10 15:00:32 Maybe May 10 15:02:37 ajxier_, why are you asking about jdk8 ? May 10 15:03:31 saapas: in android developers it said jdk7 May 10 15:04:43 ajxier_, we have been over this already. once more, please stop May 10 15:08:41 ajxier_, ok, so, why would you ask about jdk8 ? May 10 15:09:15 saapas: ravilov doesn't let met talk May 10 15:09:39 there is no point in going over one single thing over and over and over again May 10 15:10:04 you just need to stop obsessing over what it says on the internet and what over what other people say May 10 15:10:07 aww doesn't let you talk :D May 10 15:10:17 is ravilov an operator? May 10 15:10:18 yes :/ May 10 15:10:20 if jdk8 works for you then keep using that May 10 15:10:30 Don't know but they taking over the channel. May 10 15:10:43 This is the answer wasn't come out. Thanks May 10 15:12:26 just use jdk7 unless you know that you can use jdk8 AND you seriously need its features that are not in jdk7. May 10 15:16:25 oh ok then im going download jdk7 May 10 15:30:16 Hey! I am trying to implement a chat functionality in my application where users will be able to communicate with many different users. Would it be wise to use XMPP or implement a basic TCP service, and have a TCP server where all the clients connect to? May 10 15:33:05 depends on many things May 10 15:33:14 how many is "many users" May 10 15:33:21 how important is the chat stuff May 10 15:33:28 do you need custom features? May 10 15:33:37 and how long do you wanna spend working on this May 10 15:34:16 Well, the chat functionality is the main functionality May 10 15:34:41 What kind of custom features? May 10 15:34:53 is android:key necessary for PreferenceCategory ? May 10 15:35:04 I will have people looking for random other people for a conversation May 10 15:36:04 I was reading about Smack and ejabber, and it interested me. At first I wanted to make a Node.js TCP backend where as the android client connects to that. May 10 15:37:39 faintful, So, an Omegle clone? or like, just a big IRC room? May 10 15:38:24 PixelPerfect: let's keep it at a Omegle clone idea yeah, but chats would be saved, so you can get back to the same person May 10 15:39:07 It's a bit like the Fling chat, but I'm not sure if Fling uses XMPP May 10 15:39:17 ZMPP seems like an easy way to address each person to come back to them later, actually May 10 15:39:26 *XM May 10 15:40:23 How so? May 10 15:40:34 XMPP is pretty huge! May 10 15:43:44 How does focusing work on scrollview? I want to be able to give my webview (inside the scrollview) focus but disable the automatic scrolling to the webview May 10 15:49:28 So can I just disable scrolling to the element that gets focus? May 10 16:13:13 I'm in a sticky situation May 10 16:13:28 I'm launching a settings fragment May 10 16:13:35 buyt when I hit back, it exits the app May 10 16:13:54 how do I make it so that it goes back to the main screen? May 10 16:15:06 by main screen I mean the parent activity from which the fragment is called May 10 16:15:34 faintful, because XMPP is easy to add usernames to, and you could serialize them, and store them in a nice SQLite database, or serverside in MySQL or something May 10 16:16:08 Bolto, I suggest looking into your back stack, and ANdroid's tutorial on preserving back navigation May 10 16:16:29 Lot's to do with contexts and intents, which I personally hate May 10 16:17:39 I hope to god it's not as simple as just adding ".addToBackStack()" to the getFragmentManager May 10 16:19:14 I wish May 10 16:19:24 Contexts are never that easy May 10 16:19:34 Also, fragments are just a pain in the ass to me May 10 16:24:36 Also quick question: is 8MB big for a one file app? May 10 16:25:55 no May 10 16:26:02 maybe May 10 16:26:20 ndepends what it does May 10 16:26:32 are you using proguard ? May 10 16:26:38 No May 10 16:26:43 I maybe should May 10 16:27:03 also right now all it does it check if it's the first run and displays a settings fragmen May 10 16:27:28 yes, you should May 10 16:27:47 then size will drop to 2mb May 10 16:27:50 8 MB for just that is wayyyy too much May 10 16:29:41 is it because of the android sdk or because I'm using scala? May 10 16:30:05 how are you not using proguard. May 10 16:31:31 Bolto: 8Mb for a single file app? Yeah, it's huge. Run dex-method-count on it, I'm curious to see how much of that is the Scala runtime May 10 16:31:35 (I'm betting 99%) May 10 16:32:16 I'm curious to see how big that file would be with Kotlin May 10 16:32:33 i would like to see a number of the percent of apps using a non java jvm langague for apps May 10 16:32:37 or even the ndk May 10 16:33:30 i just dont see the point to using other langagues on android yet. It seems to just cause issues because java can handle almost all things May 10 16:33:49 DadFoundMy: Probably vanishingly small May 10 16:34:08 like whats the point of porpusely limiting the ammount of support and help you can get May 10 16:34:09 ndk might be higher, though, lot of games May 10 16:34:24 that makes sense, but why cant they be made in java? May 10 16:34:31 better performance in c? May 10 16:36:18 More direct access to GPU and graphic memory in general May 10 16:36:30 Every ms counts for games, not so for the majority of apps May 10 16:37:51 all of my scala android apps are about 2mb including assets and many 3rd party libraries May 10 16:38:07 s-shut up May 10 16:38:09 ;_; May 10 16:38:23 interesting. I have a hard time wrapping my head around that just because i havent really learned any langagues other then java and tbh havent really seen a need to May 10 16:38:28 CedricBeust, and scala on Android isn't completely non existent, android-sdk-plugin gets over 1000 monthly downloads May 10 16:38:40 pfn: do you primarily develop in scala? May 10 16:38:50 pfn: But that's meaningless, for all we know, these 1000 downloads give up quickly and never produce an app :) May 10 16:38:55 DadFoundMy, I develop in a large number of languages May 10 16:39:31 CedricBeust, from the interest I get, it's not really the case May 10 16:39:45 DadFoundMy, scala happens to be my favorite at the moment May 10 16:39:54 pfn: Then a few github and play store links would help make your case better than download counts May 10 16:40:13 pfn: 900 of those is me redownloading it because I rage quite and effed it up May 10 16:40:15 :^) May 10 16:40:24 For what it's worth, I'm only aware of two Kotlin apps available on the Play Store May 10 16:40:29 Bolto, it only counts as 1 download May 10 16:40:33 pfn: do those skills transfer over that much from langague to langague? Like i think it would be somewhat more benificial to become a complete expert in a sdk rather than use a couple of each May 10 16:40:53 DadFoundMy, certain language skills transfer May 10 16:41:00 BWAHAHAHAHA May 10 16:41:02 >Overall method count: 26717 May 10 16:41:06 concurrency, oo, fp, etc May 10 16:41:13 > scala: 4447 May 10 16:41:25 Bolto: pastebin the result May 10 16:41:28 kk May 10 16:41:33 CedricBeust, scaladays app May 10 16:41:34 pfn: and how about in terms of the android sdk. are their similiar methods? im pretty intrigued in this now May 10 16:41:49 CedricBeust, translate bubble May 10 16:41:51 https://paste.empy.org/GcMv2yDQSO May 10 16:42:03 CedricBeust, basically anything by 47deg May 10 16:42:23 Bolto: com.google.ads is huge May 10 16:42:24 i'm looking to learn a second langague and was thinking python but i dont know if python is different enough for the C family langagues i know May 10 16:42:28 DadFoundMy, sure May 10 16:42:43 python us completelybdifferen May 10 16:42:49 stupid SwiftKey May 10 16:42:59 DadFoundMy: Python is trivial and uninteresting, you'll learn it in a few hours, I wouldn't really count that as learning a new languiage May 10 16:43:09 I like python a lot May 10 16:43:17 i've heard learning your second langague is always the hardest because you are so used to the habits you learned in the first langague so much May 10 16:43:20 Probably why I went with scala because I feel the two are kinda similar May 10 16:43:27 DadFoundMy: it si May 10 16:43:29 s May 10 16:43:31 is May 10 16:43:33 ffs May 10 16:43:34 CedricBeust: what do you suggest than? May 10 16:43:36 Haskell/ML is good to learn just to learn crazy recursive coding. ;) May 10 16:43:47 Bolto: Rewrite your app in Kotlin, it's pretty small, it should take you a few hours, I'd be curious to see the results May 10 16:43:48 Chamooze: eww recursion May 10 16:43:54 moving from linear programming to functional is also quite a challenge :D May 10 16:43:55 Chamooze, functional, not crazy recursive May 10 16:44:25 pfn, both tbh. recursion is fun though. :) May 10 16:44:35 all i know about recursion is the annoyying problems on the AP computer science exam to print shit from a method over and overf May 10 16:44:37 if you do it right May 10 16:44:45 CedricBeust: I'm just gonna set up my proguard May 10 16:44:50 Chamooze, no more while loops May 10 16:44:51 I cbf messing with it again May 10 16:45:15 python is good since it forces you to learn proper indentation. heh May 10 16:45:20 Bolto: Also be aware that the next version of Scala moves to Java 8, which is not supported on Android May 10 16:45:38 I've heard May 10 16:46:13 that's why I can define which version of scala to use in my build.sbt May 10 16:46:38 Bolto: Well, that's not going to be of much use since you are basically stuck to one version for the years to come May 10 16:46:48 Might as well hardcode it :) May 10 16:46:54 CedricBeust, that may be addressable, May 10 16:47:36 what about things like qt for andorid. do peoople actually use that? May 10 16:47:43 No May 10 16:47:56 That would be a very stupid thing to do. May 10 16:48:20 i find java android difficult enough i couldnt do this hard shit May 10 16:48:34 CedricBeust, much like how there's scala.js now, that work can be applied to creating a scala.dx backend May 10 16:48:37 oh, another pro for python - it's getting more and more traction for writing scripts in the *Nix world May 10 16:48:51 i mean it seems like qt for android is supported so i guess someone must use it May 10 16:48:53 DadFoundMy: It's not difficult, it's just a big API that requires time to master May 10 16:49:11 Chamooze: I'd challenge that, feels like Go is gaining traction in that area May 10 16:49:29 In my opinion, Go is slowly replacing Pythong May 10 16:49:39 CedricBeust, need to get sponsorship from typesafe somehow May 10 16:49:54 id say most linux scripts i see are in python May 10 16:50:00 CedricBeust, I don't see it outside of google May 10 16:50:01 i dont do tooo much in linux tho May 10 16:50:52 appengine is about the extent I see it used outside of google proper, and that's a Google platform May 10 16:50:53 TIL google developed go May 10 16:51:05 Hmm, interesting. The companies around here are still mostly running python... or KSH, for some. *cough* May 10 16:51:32 pfn: I'm using a build.sbt based on one of your own. do I just add my own proguard options to the proguardOptions seq() ? May 10 16:51:41 Bolto, yes May 10 16:52:57 I think I'll make a keepshare lite, need more users May 10 16:53:07 and up the price on the paid version May 10 16:54:13 pfn: Typesafe has made it very clear they have zero interest in Android May 10 16:55:08 CedricBeust, the backchannel has me thinking otherwise May 10 16:56:37 pfn: I'll believe it when I start seeing Android code coming out of Typesafe... May 10 16:56:50 but honestly, why would they do that with their imminent switch to Java 8? May 10 17:07:06 g00s: !!! May 10 17:07:22 thepoosh ! May 10 17:07:25 http://imgur.com/gKxGGR3 May 10 17:07:29 this is me now May 10 17:08:08 thepoosh wait - what happened ? May 10 17:08:45 we've been having spam issues on our public profile feature for quite some time May 10 17:09:06 spam bots were mass sending messages to all users displayed publicly May 10 17:09:09 we blocked them May 10 17:09:18 you mean the contact address on the Play store page ? May 10 17:09:25 no May 10 17:09:32 we have a feature called Discover May 10 17:09:50 which allows users to display their profile publicly and allow strangers to contact them May 10 17:09:56 spam target supreme May 10 17:10:25 ah. i get some of that in skype May 10 17:10:38 Wait, what app? May 10 17:10:50 PixelPerfect: glide May 10 17:11:15 yes, that was the thing our product team was thinking about May 10 17:11:23 also public searches from facebook May 10 17:12:05 thepoosh, looks slick May 10 17:12:11 thanks! May 10 17:12:18 we just got featured by the play store May 10 17:12:33 link to it ? May 10 17:12:35 pls May 10 17:13:29 Darpanet: https://play.google.com/store/apps/details?id=com.glidetalk.glideapp May 10 17:17:52 g00s: have you seen this? May 10 17:17:53 https://sriramramani.wordpress.com/2015/05/06/custom-viewgroups May 10 17:18:25 thepoosh yeah ... its kinda weak May 10 17:18:30 oh May 10 17:18:33 didn't read yet May 10 17:18:47 i think romain guy gave a talk about custom view groups on parleys May 10 17:18:52 but I felt superior for knowing about leakCanary before reading it there May 10 17:18:57 kinda fun how there is so little information about it May 10 17:19:04 yeah May 10 17:19:09 i miss him working android May 10 17:19:27 androidweekly.net is kinda like weekly roundup of /r/androiddev May 10 17:19:42 if you follow that, there are no surprises May 10 17:20:14 I see it but there is too much to screen out May 10 17:21:14 also /r/programming is decent May 10 17:21:28 yeah May 10 17:21:32 i have them both May 10 17:21:32 i think better than HN, since tey mix all kinds of bs May 10 17:21:59 so this app is an exact copy of kakaotalk ? May 10 17:22:46 Darpanet: what is kakaotalk? May 10 17:23:05 text/calls/video/picture messenger. May 10 17:23:07 google it May 10 17:23:09 :D May 10 17:23:24 but i guess we live in a competitive world. May 10 17:23:42 no, different concept May 10 17:40:23 thepoosh do you still have that google consultant on board ? May 10 17:42:33 nah May 10 17:42:41 the guy got canned May 10 17:42:54 he was too theoretical May 10 17:43:34 he's still a nice guy May 10 17:43:41 but not suited for us May 10 17:43:49 also, was a GDC May 10 17:43:54 not official google May 10 17:44:24 thepoosh hmm, what kind of things did he recommend ? May 10 17:44:27 not bad, i managed to live with the app on my phone for 5 mins, then when i noticed it spammed all my friends, and non-friends. i immediatly voted one star, and deleted the sucker. May 10 17:44:47 i am sorry but if your goal to populate the app is by spamming your friends in a sneaky way. i completely hate it. May 10 17:44:51 Darpanet: are you talking about glide? May 10 17:44:55 yes, i am. May 10 17:44:57 why did you click invite all? May 10 17:45:05 that's n00b all over May 10 17:45:43 say what you want. there is a difference between inviting the entire contact list, and inviting your friends with phone numbers. Glide's admins shoud know better. May 10 17:46:34 most apps i use like kakaotalk will only invite potential users, not the entire email contact list. this is completely ignoratn and stupid to do. May 10 17:46:50 i just spammed my old bosses, and some old mailing lists because the devs are assholes... May 10 17:46:53 why would you do that May 10 17:46:55 -.- May 10 17:47:08 because you clicked fucking "invite all" May 10 17:47:14 what's wrong with you?! May 10 17:47:20 WHY WOULD IT BE THERE IN THE FIRST PLACE May 10 17:47:23 this is not how you do things May 10 17:47:34 wat?! May 10 17:47:34 (lol) May 10 17:47:49 uninstall made the invites stop May 10 17:47:58 i guess it was the easy way for you INVITE ALL, instead of INVITE ALL POTENTIAL USERS> May 10 17:48:06 wat?! May 10 17:48:11 oh fukoff May 10 17:48:12 which app do you think does that? May 10 17:48:28 kakaotalk does that, perfecylt too (obviouselt written by koreans) May 10 17:48:29 thepoosh when you click invite all, does the UI say its about to contact everyone in your address book ? May 10 17:48:31 show me one app that "invite all" invites some people? May 10 17:48:31 (u mad bro?) May 10 17:48:40 yes, im mad bro k May 10 17:48:50 g00s: it fucking writes how many people were selected May 10 17:48:55 this app is stupid, and a complete copy of kakaotalk+whatsapp. May 10 17:49:01 i gave my review accordingly. May 10 17:49:01 and asks for confirmation May 10 17:49:08 Darpanet: oh noez May 10 17:49:44 so the app said it was going to invite 200 users, with a chance to abort and Darpanet clicked yes ? May 10 17:50:04 make that 970ish users May 10 17:50:06 we do that May 10 17:50:50 that's why i'm pissed May 10 17:50:50 suprised selecting 970 users from the Contacts ContentProvider didn't OOM :D May 10 17:51:08 g00s: that's not how it works behind the scenes May 10 17:54:51 g00s: btw, did you know that sqlite has a limit of 990 arguments per query? May 10 17:55:03 thepoosh lol, no :D May 10 17:55:26 we had a query with IN clause passing an array from a response May 10 17:55:35 long story short, crash in production May 10 18:11:22 why would it oom May 10 18:11:27 it's a cursor May 10 18:11:51 https://www.sqlite.org/limits.html May 10 18:12:12 "SQLite allocates space to hold all host parameters between 1 and the largest host parameter number used. Hence, an SQL statement that contains a host parameter like ?1000000000 would require gigabytes of storage. This could easily overwhelm the resources of the host machine. To prevent excessive memory allocations, the maximum value of a host parameter number is SQLITE_MAX_VARIABLE_NUMBER, which May 10 18:12:12 defaults to 999." May 10 18:12:21 bOOM May 10 18:12:48 interesting May 10 18:14:49 How on earth do I make proguard work... May 10 18:17:52 it just works, May 10 18:19:17 I'm trying to add one from the first attempt at this app May 10 18:19:26 https://paste.empy.org/u0VrUB7GZK May 10 18:19:28 here May 10 18:20:04 use default config provided May 10 18:20:18 add rules as necessary May 10 18:20:48 It's still 10.14MB for a one classfile application May 10 18:21:07 Bolto: that happens May 10 18:21:18 proguard is not for code shrinking May 10 18:21:43 plus, if you save resources you don't use, they don't get optimized with proguard May 10 18:23:18 i think those are removed if you use minify enabled May 10 18:23:38 Bolto, clean build? May 10 18:24:14 g00s, nope May 10 18:24:43 http://tools.android.com/tech-docs/new-build-system/resource-shrinking May 10 18:24:52 "The Gradle build system for Android supports "resource shrinking": the automatic removal of resources that are unused, at build time, in the packaged app. " May 10 18:24:54 yep May 10 18:25:16 shrinkResources true May 10 18:25:58 interesting, yet unused resources lint is AST based May 10 18:26:01 Hello everyone. I am tryign to release an update for my APK but it keeps telling me the package name is different. Any idea what i could do? May 10 18:26:22 g00s, thanks for pointer I can make use of that May 10 18:26:45 ok, clean build took it down to 3.87MB May 10 18:26:47 good enough for me May 10 18:26:51 Ripmind, don't change package name May 10 18:27:06 I did not... May 10 18:27:11 well i wanted to change it May 10 18:27:14 but then changed it back May 10 18:27:21 Bolto, proguard cache, love it and don't be dumb :p May 10 18:27:26 ;_; May 10 18:27:28 Ripmind, clean build May 10 18:27:40 Clean Project? May 10 18:43:41 woah i hate this android studio.. May 10 18:44:16 can't even fiind where i can add an external lib... May 10 18:45:11 probably because Android Studio doesn't control that. May 10 18:45:31 I guess you hate learning how your project works as well. May 10 18:45:31 was easier with eclipse imo... May 10 18:45:42 i hate anything of course. May 10 18:46:15 Right, I suggest you unhate Google search. May 10 18:46:41 Well, can't i hate something but still use it? May 10 18:47:33 Not as long as the reason for hating it is ignorance. May 10 18:48:06 Adding a lib with Gradle build system means adding a single line in a single file which will then automatically be downloaded and pulled in May 10 18:48:18 That line is practically always written in the README of a library you're including. May 10 18:48:28 I just wanted to add googie api v4 and maps.jar May 10 18:48:33 Now suggest you lookup Gradle and what it does, it's a very useful and powerful tool. May 10 18:48:41 Ripmind, don't add JARs. May 10 18:48:43 i just copied the jar into the project java path and added it as reference May 10 18:48:57 Add dependencies like on the V4 and maps documentation tells you to. May 10 18:49:00 Yeah, don't do that. May 10 18:49:08 uhm May 10 18:50:05 it still tells me wrong package name May 10 18:56:51 Android Studio helps the user add dependencies (File -> Project Structure -> Dependences -> Add -> Search) {or something; going by memory}. May 10 18:57:22 You can type stuff like "gson" and it'll add (to build.gradle) a dependency on the latest version. May 10 18:58:32 TacticalJoke: yeah, i am already using that :) but i have difficulties adding it without using the JAR now May 10 18:58:40 do i import it as new module? May 10 18:59:29 As said above, you shouldn't be adding JARs for those libraries. May 10 18:59:49 fun Android puzzles http://www.slideshare.net/NLJUG/android-code-puzzlers-johan-pelgrim-and-hugo-visser May 10 18:59:53 that's why i am trying to add the project, not the jar :) May 10 19:00:15 but i am not sure how so i asked if i should add it as "import module"? May 10 19:02:36 I don't know. It should be a Gradle N-liner for each (where N is less than four and probably one). May 10 19:02:47 Actually, less than five. May 10 19:03:53 icedp android dev is all puzzle, all the time. don't need to add puzzles to our puzzles May 10 19:06:39 Q1. Why doesn't this style work correctly on some 4.1 Samsung devices? May 10 19:06:43 A1. We don't actually know. If you know the answer, please write in. May 10 19:08:58 :D May 10 19:09:23 this gradle annoys me slightly.. May 10 19:10:16 TacticalJoke do you remember this one ? http://stackoverflow.com/questions/7245923/listview-background-is-grey-on-droid-3 May 10 19:12:12 icedp: cool thanks May 10 19:12:34 Ah, hadn't seen that. Annoying. May 10 19:16:43 ok i destroyed my android studio i guess.. :D May 10 19:18:22 congrats May 10 19:18:31 1.2.1.1 (canary channel), just noticed it May 10 19:18:32 thank you May 10 19:18:57 no release notes lol May 10 19:19:17 what exactly does notifyDataSetChang() do? recall getView on each object? May 10 19:19:32 Error:(1, 0) Plugin with id 'com.android.application' not found. Any idea what i can do? May 10 19:20:11 DadFoundMy, it reflects to the ui that your adapter content changed, so if getView is called it makes sense May 10 19:21:15 DadFoundMy: depends. ultimately it just calls onChanged(). in adapterviews, iirc it just flags "has changes" and triggers layout, where it recalculates everything. May 10 19:22:19 FragmentTransaction ft; ft.replace(...); ft.add(...); ft.addToBackstack(); ft.commit(); as far as I can tell, only one addition to the backstack is being done here... can how do I add another one? May 10 19:23:38 my friend is making me work with the Parse framework for our network calls, there is sooo much wrong with it May 10 19:23:39 Ripmind: Obvsly nobody can help with such little info. May 10 19:24:18 I think i somehow installed gradle 2.2.1 but i need 1.2.2 May 10 19:24:28 1.12 i need i guess May 10 19:24:35 Installed Gradle? What. May 10 19:25:24 jellybee: each "transaction" is a single thing that can be added to the back stack. if you have two conceptual steps happening at once, do it in two transactions. May 10 19:25:37 Isn't it just a case of adding two lines to build.gradle? I don't know why you're talking about installing anything. May 10 19:25:55 thanks, just wondering if to calls to addToBackstack will have an effect? May 10 19:26:10 Oh well i have no idea May 10 19:26:32 jellybee: like, calling addToBackStack multiple times on the same transaction? probably does nothing. May 10 19:26:43 yeah.. testing it now May 10 19:26:45 I'd say "check the source", I suspect it's just setting a boolean to true May 10 19:27:32 is it still possible to use eclipse? May 10 19:27:53 I don't get what the problem is, Ripmind. May 10 19:27:58 Your task is to add two lines to a file. May 10 19:29:16 to do whatz? May 10 19:29:21 -z May 10 19:30:06 Ripmind: What are you trying to achieve? ELI5. May 10 19:31:32 i just want to build my apk file again... May 10 19:32:09 It's hard to keep a five-year-old's attention, Ripmind. May 10 19:32:46 the fizzgig is here ! May 10 19:33:13 it tells me about some dependencie but i can't eben find it May 10 19:33:24 gradle makes me sick :D May 10 19:34:23 Error:The SDK Build Tools revision (17.0.0) is too low for project ':actionbarsherlock'. Minimum required is 19.1.0# May 10 19:35:44 ABS is deprecated. May 10 19:36:27 ok let's remove it May 10 19:36:36 won't be too hard right? hah. hah. May 10 19:36:48 Also, build tools 17.0.0 sounds ancient. May 10 19:37:44 i don't know what i messed up today.. but i think i missclicked one thing and suddenly everythign broke... May 10 19:39:00 i would like to use material theem but i know that almost noone has 5.0.. so.. i can't use it if i want to publish my app to the mass right? May 10 19:45:03 You can use it all the way down to API 7. May 10 19:45:34 it tells me i cannot May 10 19:45:55 Well, it depends on how you're defining "it". May 10 19:46:12 android:style Theme.Material May 10 19:47:29 That's 21+. May 10 19:47:57 that's what i said. May 10 19:48:36 "use material theem" May 10 19:49:40 Ok, so, TacticalJoke: How do i correctly include a helper library from google? as "module"? May 10 19:49:47 Where can I find properties to use in the defaultConfig ? May 10 19:51:52 http://stackoverflow.com/questions/16782298/how-to-import-google-api-in-android-studio they also say to use the .jar file May 10 19:56:12 Ripmind: Look above. This was answered by me and someone else. I have to go now; good luck. May 10 19:56:44 so the answer is "add n-lines of code in some file" wow. thanks for the help! yay!..goddamn May 10 20:00:34 g00s: somewhat :) creating some code, because obviously the world doesn't have enough already. May 10 20:03:38 I delete a row from an sqlite database, return to the previous Activity, have it redrawn .. yet the row is still loaded and displayed. how can this be? if I return to the home screen using the back button and reopen the app, the row isn't there anymore. May 10 20:06:55 should I close and reopen the database after the delete? May 10 20:09:47 saapas: you probably need to .notifyDataSetChanged() on the previous activity. or reload the data some other way. the database won't inform your views that something has changed, that's your job May 10 20:11:44 groxx, thanks, I'll try that. and well, I *have* written my views to do that job I guess.. damnit :) May 10 20:12:18 Hi. Long story short I have a MyDatabase extends SQLiteOpenHelper and a class Foo that offers high level methods to MyDatabase. I want to test it; I suppose I would need a database fixture with known data, but how do you do database fixtures in Android/JUnit/Robolectric? May 10 20:12:38 groxx, notifyDataSetChanged() has to do with Adapters? I'm not using those.. May 10 20:12:58 saapas: yeah. how are you showing the data? May 10 20:14:50 groxx, in a Table. I load the data using my own classes and insert the rows also with my own code May 10 20:15:07 must use a ContentProvider at some point May 10 20:15:35 saapas: you're probably best off just reloading all that when you return from the other activity. it's likely to be fast. May 10 20:16:17 so however you load the data the first time, just redo it and swap out the table's data. May 10 20:16:22 groxx, that's what I think I'm doing. I call recreate() and now invalidate() but neither of them have the effect I wish. May 10 20:16:58 I call them in the parent Activity's onActivityResult(). May 10 20:17:43 seems like the right place. I'd have to see code though, not sure what recreate() does :) also: how are you deleting? if it's async and you just call `deleteRow(id)` and immediately `finish()`, it may not have happened yet. May 10 20:18:33 I have rooted my device and running this command from adb shell su from terminal "service call activity 42 s16 com.android.systemui" hides the system bar , but when i run this same command from my app it says root access denied May 10 20:18:37 also if invalidate() is on the view, it's probably not right. invalidate() tells it to redraw its contents, which is assuming the layout hasn't changed. adding / removing rows is a layout change, that'll trigger re-drawing on its own. May 10 20:18:47 how can i solve this issue , struggling from 3 days now May 10 20:18:51 chinu_: #android-root probably May 10 20:19:10 groxx, no async code in this app yet. May 10 20:21:34 I don't have the time to provide the code atm :) after db.delete(), the transaction is commited, Intent created, Toast called and then finish(). May 10 20:22:21 Where can I find properties to use in the defaultConfig ? such as applicationId and such? May 10 20:23:27 saapas: sounds fine. could recreate() be just adding the rows to the bottom, instead of rebuilding it all? e.g. do you have `table.removeAllViews()`? May 10 20:24:05 eghdk: This is the best I'm seeing: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Manifest-entries May 10 20:24:17 Scroll down a little. May 10 20:24:49 groxx, let's see. recreate() launches onCreate(), so I have figured the whole view of the Activity must, and is created from scratch. even setContentView() is called in the onCreate(). May 10 20:25:11 Thanks TacticalJoke May 10 20:25:31 hm. is there anything I need to do to include an .aar file in my project? I've got `compile fileTree(dir:etc, include:etc)` but it's not finding the library's xml attributes May 10 20:26:07 Honestly... thought thered be more available. Where do I find all of those suffix properties that I can add? May 10 20:26:22 saapas: I assume you call super.onCreate in there - I'm not really sure what happens when you trigger that at an inappropriate time :| but setContentView can be re-called and it should work, yes May 10 20:26:40 TacticalJoke: Ah. Thats there as well. Thanks May 10 20:28:20 groxx, yes, super.onCreate() is called in the parent Activity's onCreate(). May 10 20:28:38 I reckon an Exception is thrown otherwise ;) May 10 20:39:09 groxx, invalidate() actually seems to _not_ launch onCreate(). May 10 20:39:33 groxx, http://developer.android.com/reference/android/app/Activity.html#recreate%28%29 May 10 20:40:31 ah, right, I always forget that recreate() exists. I've never used it, tbh May 10 20:40:39 dunno if there are any surprises. May 10 20:41:32 maybe I should call invalidate() first and then recreate() :O May 10 20:41:53 It calls ActivityThread.requestRelaunchActivity. May 10 20:43:22 recreate() calls that? May 10 20:43:41 Yeah. May 10 20:45:21 nope, there are no rows in the Table after call to recreate() and before the loop that loads and adds the TableRows. May 10 20:45:40 that's it for me today. May 10 21:16:58 anyone used MVP pattern with Fragments or otherwise? May 10 21:20:24 Hello everyone, i'm trying to post data to a PHP file which accepts three POST values ( Username, Password, Databank ). I should be able to use OKHTTP with that, right? Suggestions are appreciated May 10 21:21:17 Not having success at the moment, trying to use requestBody but that isn't working due to me not having any fields on my webhost, the script just accepts post values and that's it. May 10 21:22:15 android-dev429 Okhttp works perfectly for this May 10 21:22:19 Where are you having issues? May 10 21:23:50 I'm not receiving any response from the call. Using response.isSuccessful() to generate a log message and/or toast but that isn't showing either. Not getting any other info from the logs because i'm getting bombshelled with information May 10 21:24:20 You need to use Log.i to ween out what you want to see in logcat May 10 21:24:35 Also, can I see the code your using to make the request? Make a pastie May 10 21:24:50 The php script may not even be recieving the data May 10 21:25:28 I see, and sure thing. Yes, that's what i was thinking. I googled around on how to post data using OKHTTP but the information is somewhat scare ( posting using textedits ) May 10 21:25:32 one second, creating the paste May 10 21:25:52 EditTexts ? May 10 21:26:18 User input May 10 21:27:23 Ok, lemme see the pastie May 10 21:27:31 How are you sending the POST data? JSON? May 10 21:27:41 Yes May 10 21:27:42 Json May 10 21:27:49 Ok, could be a json syntax error May 10 21:27:56 You got the pastie? May 10 21:28:42 there you go May 10 21:28:43 http://pastebin.com/kmacn9R6 May 10 21:29:03 i think that i'm using a wrong way of doing this, still a beginner May 10 21:29:11 Dont worry about it May 10 21:29:16 So am I :) May 10 21:29:25 :)) May 10 21:30:06 k May 10 21:30:07 Ok May 10 21:30:17 So I dont think your using JSON like you said May 10 21:30:28 my bad May 10 21:30:37 I'm sending string data to the php document May 10 21:30:47 in return, i'm receiving json data May 10 21:30:52 Is the request ever making it to the PHP? May 10 21:30:58 Do you have any way of testing that? May 10 21:31:10 Nope :S May 10 21:31:39 Can I see your script May 10 21:31:46 BTW what kind of app you building? :D May 10 21:31:56 Or just messing around? May 10 21:32:22 I did the whole weather app thing and i was freaking pumped to do something else, perhaps play around with other api's you know, then i tried to make a simple login script and it has crushed me May 10 21:32:38 Dont worry about it, easy easy fix May 10 21:32:43 Is the weather app on the play store? May 10 21:33:38 obviously its making it if he's receiving a json string back. May 10 21:33:49 He wants to recieve it back, but he is not rgr May 10 21:33:54 That is the goal, to recieve it back May 10 21:33:57 http://pastebin.com/DQ4gU0fZ May 10 21:34:00 yeah, i'm not getting anything May 10 21:34:32 Btw, the weather app just gives me data for my current city. Have to figure out to append latitude etc to different locations May 10 21:34:33 "Im receiving json databack". Not 4exactly clear. Well its the simplest thing in the world to debug. stick a log in the php page that processes the call. May 10 21:34:54 hmnn May 10 21:34:59 I just do file_put_contents() and havve it write a little file which will tell me that it was called May 10 21:35:25 do i put that in the php file? May 10 21:35:31 You can, yeah May 10 21:35:49 If I have more time I would tell you to delete the entire PHP file and walk you through May 10 21:35:55 But idk how much time I've got May 10 21:36:17 Try the simple file_put_contents("fileName.txt","test"); May 10 21:36:21 And comment out everything else May 10 21:36:23 /* May 10 21:36:25 code May 10 21:36:27 */ May 10 21:36:36 oh man that's brilliant May 10 21:36:46 hahah what May 10 21:37:14 well, if it receives something from my app, it should create the textfile right? May 10 21:37:14 "{ May 10 21:37:16 :P* May 10 21:37:52 Yes May 10 21:37:56 Test it out May 10 21:38:00 sec May 10 21:38:19 If it doesnt even get the request, then we can start from the java code, if it does, then we work from there May 10 21:38:29 sweet May 10 21:38:53 got like 8 android studios open, beyond confused LOL May 10 21:40:07 yeah, it's not even receiving the request :/ May 10 21:40:12 not generating a file May 10 21:40:36 Ok May 10 21:40:42 so lets look back to your andorid code May 10 21:40:54 okay May 10 21:41:11 Comment everything out inside runLogin May 10 21:41:18 Same way /* .... */ May 10 21:41:32 done May 10 21:42:49 Ok May 10 21:42:55 Now May 10 21:43:00 one sec May 10 21:43:05 okay May 10 21:43:27 go here May 10 21:43:30 live code editor May 10 21:44:50 i have to google it? May 10 21:45:36 oh ooops May 10 21:45:39 haha meant to send link May 10 21:45:44 lmao May 10 21:45:45 http://collabedit.com/7dte9 May 10 21:49:42 android-dev429 that should make the request May 10 21:49:53 As long as you put the corrct url into the .url() May 10 21:50:11 Dude, like magic May 10 21:50:16 trying it out, oeno momento May 10 21:52:33 groxx, just remembered, I deleting the row in the parent Activity is possible and that deletes not just the row in the database but also the TableRow. May 10 21:53:18 android-dev429 there is an error in thast code May 10 21:53:29 yeah, i see it now May 10 21:53:37 Do you know how to fix it May 10 21:53:53 lme check May 10 21:54:16 Since I dont have much time, ill just tel you May 10 21:54:22 Or, ill change it in the editor May 10 21:54:29 oh okay May 10 21:54:47 Line 17 May 10 21:54:49 Fixed May 10 21:55:05 i wouldn't have figured that out i think May 10 21:55:07 q_q May 10 21:55:22 did it work? there may still be syntax error May 10 21:55:39 I changed it again May 10 21:55:43 Just removed one parenthasi May 10 21:56:08 After you fix that, make sure that: May 10 21:56:22 You have everything in the PHP script commented out besides the file_put_contents May 10 21:56:34 yeah May 10 21:56:35 And that the method that is creating this request is being called May 10 21:56:56 should httpClient be HttpClient? May 10 21:56:58 http://gyazo.com/0f8555081be87939d7aea0cf32bdfdcf May 10 21:57:04 yeah May 10 21:58:06 Is the @Overrides still underlined? May 10 21:58:17 yeah, asks me to import a class May 10 21:58:22 one of the 200 May 10 21:58:24 Import it May 10 21:58:29 It may be the bottom one May 10 21:58:32 But send another screenshot May 10 21:58:38 yeah got it May 10 21:58:45 All good? May 10 21:58:47 Does fabric or twitter have a .gitignore sample to use when I use crashlytics? May 10 21:58:48 2 more errors May 10 21:58:53 Ok, where? May 10 21:59:08 http://gyazo.com/fcce003ddcdc3b3c8bf76e20a4b841dc May 10 21:59:15 cast the var before instantiating it? May 10 21:59:25 jsonStrng May 10 21:59:51 Which error are we looking at? Hover your mouse over it so the dialog shows and take screenshot May 10 21:59:56 Or just type what it says and tell me where May 10 22:00:59 line 15 in the editor May 10 22:01:13 the cannot resolve symbol May 10 22:01:14 and May 10 22:01:28 dude May 10 22:01:32 cause jsonStrng May 10 22:01:36 It should be jsonString May 10 22:01:40 yeah ignore that one May 10 22:01:52 i mean line 25 May 10 22:02:03 HttpClient.newCall May 10 22:02:16 whats the error say May 10 22:02:39 http://gyazo.com/9fe9fa01e1ad9c4223047236af183252 May 10 22:03:11 is it saying it cannot resolve the symbol httpClient ? May 10 22:03:33 cannot resolve the method " newCall " May 10 22:03:52 Its OkHttpClient May 10 22:03:55 Not HttpClient May 10 22:04:05 Oh :( sorry May 10 22:04:05 Sorry, messed that up when you asked earlier May 10 22:04:10 No, my fault man May 10 22:04:28 nah i should've spotted it too, working with okhtt afterall :P May 10 22:04:38 I gues May 10 22:04:41 any other errors? May 10 22:04:52 one more May 10 22:05:23 http://gyazo.com/53ca573bc2d98892c0139494676adc0f May 10 22:06:44 Is the method you are calling this from "static" ? May 10 22:07:11 no it's not May 10 22:07:39 You sure? May 10 22:07:46 Can I see the declaration of the method May 10 22:07:50 Whats it say May 10 22:08:55 this part? http://pastebin.com/1uGYarDJ May 10 22:09:41 Where you declate the runLogin method May 10 22:09:44 Whats that line May 10 22:09:50 Like public void runLogin() May 10 22:09:55 Or public static void? May 10 22:10:04 public void runLogin May 10 22:10:11 Hmmm May 10 22:10:37 Is that the only error your getting May 10 22:10:53 yeah May 10 22:10:58 http://pastebin.com/SWSPUyN6 full code May 10 22:11:42 Oh.. May 10 22:11:46 Ok so at the top of the method do May 10 22:11:55 OKHttpClient httpClient = new OKHttpClient(); May 10 22:11:58 Then do May 10 22:12:08 Call call = httpClient.newCall() May 10 22:12:24 Its because you were trying to call the method statically from the OkhttpClient class May 10 22:12:28 Cant do tht May 10 22:13:11 yeah that did it xD Going to test it out May 10 22:13:17 Have fun May 10 22:13:20 :D May 10 22:13:27 haha thanks dude May 10 22:13:29 i appreciate it May 10 22:13:49 I'm trying to create an overridden application component in a test class, but I can't seem to get Android Studio to generate the Dagger* component inside the test class. I've tried rebuilding it, but no luck. Pretty much doing what chiuki is doing here: https://github.com/chiuki/android-test-demo/blob/master/app/src/androidTest/java/com/sqisland/android/test_demo/MainActivityTest.java May 10 22:15:14 drose379 , still not generating the file, uhhm sec May 10 22:17:53 You may be supplying an incorrect url May 10 22:18:13 try putting the url in your browser and see if the file is generated May 10 22:18:17 If not ,bad url May 10 22:18:19 I gotta run tho May 10 22:18:21 be back later May 10 22:18:24 okay, cya dude May 10 22:19:56 groxx, I found a clue to why the row _seems_ to persist a delete. an object that is created to represent the db row likely still persists in the app's memory.. May 10 22:20:09 do you guys put your onClickListeners in your RecyclerView adapters, or the view holders themselves? May 10 22:21:14 saapas: if you have a cache, yeah, you'll have to invalidate it / make the same change to it. May 10 22:21:27 saapas: if it's just pulling from the database directly though, there's no cache May 10 22:22:43 yeap yeap May 10 23:53:47 huh. apparently gingerbread has issues with vertical-centering text? May 10 23:54:47 not for me May 10 23:56:42 properly centered heart on every other version :| http://cl.ly/image/0G0Y3V031E1H May 10 23:57:19 not that there aren't other problems on gingerbread. but this is a new one :) May 10 23:58:42 are you using "center|center_vertical" ? May 10 23:59:34 shmooz: just center. I did try "center_horizontal|center_vertical" though, same thing. May 11 00:00:16 try "center|center_vertical" . it's working on my gingerbread phone May 11 00:01:52 shmooz: nope. May 11 00:02:23 maybe it's the emulator May 11 00:02:38 it's possible the parent view is doing something weird with layout that's messing it up :S it's not quite "good" code, though it works reasonably well compared to others I've tried. May 11 00:03:19 eh, I don't think I've ever had layout differences with the emulator. and this is 100% unaccelerated, so there shouldn't be any GPU glitches / etc. May 11 00:04:05 ok, well it works for me, so it's gotta be something fixable for you May 11 00:04:37 yeah. I just said (╯°□°)╯︵ ┻━┻ and wrapped it in a framelayout that centers wrap_content/wrap_content and it's happy. May 11 00:05:05 cool :) May 11 00:05:56 the weird part (well, the primary one) is that all the white there is from the textview, so it _does_ use up the space as it should. it's just something with where it's drawing the text :/ annoying. May 11 00:34:50 anyone know why a dagger 2 component defined in an espresso test might not get generated by the compiler? Not getting any errors or warnings or anything May 11 00:41:37 context: https://gist.github.com/shekibobo/b0bc0b3f8a53bf685d63 May 11 00:43:41 Other Dagger classes get built just fine May 11 00:43:44 just not that one... May 11 00:58:40 oh man :( google just marked 'obsolete' a very real BLE bug; the fix was pointed out, the bug is still in AOSP head :( this is proof Google is obsoleting legit bugs May 11 00:59:13 in happier news, I finally finished a long-delayed-but-not-actually-that-complicated feature: http://cl.ly/0X2C1u3n0m1B May 11 01:00:01 joshkovach: https://github.com/JakeWharton/u2020/pull/151 May 11 01:00:41 joshkovach: that's the test infrastructure for forcing mock mode May 11 01:00:56 sweet, thanks! May 11 01:06:22 Tests and stuff will follow, but hopefully that shows enough of what I was talking about. May 11 01:06:31 groxx did you use a library for that ? i saw one the other day that did this May 11 01:06:49 but it did a bunch of other stuff too May 11 01:06:54 g00s: yeah: https://github.com/daimajia/AndroidSwipeLayout May 11 01:07:16 yeah i did see that one too May 11 01:07:25 it's pretty reasonable. there are a couple oddities and a couple probably-bugs, but so far MUCH more reliable than others I've tried. May 11 01:07:32 which is not all that many, but yeah May 11 01:07:34 lol, Aline <3 Predator ? May 11 01:07:39 *Alien May 11 01:07:53 g00s: http://alienlovespredator.com/ May 11 01:08:21 g00s: I'm hoping you have audio turned on? May 11 01:08:45 nooo :( May 11 01:08:57 well, you may be able to guess from the timing alone :) May 11 01:09:35 JakeWharton: cool, I think that makes sense. AppContainer is for the debug drawer, right? May 11 01:09:36 "The standards body for the microelectronics industry has found that Solid State Drives (SSD) can start to lose their data and become corrupted if they are left without power for as little as a week. " May 11 01:09:37 that video is part of my changelog now May 11 01:14:04 joshkovach: yes May 11 01:21:46 JakeWharton: I'm wondering if you might have some input if you have the time or interest. I'm trying out a technique demoed by chiuki using Dagger 2, but I'm not really sure why my version doesn't work. Any thoughts why my test component doesn't get generated by the compiler? chiuki's demo: https://github.com/chiuki/android-test-demo/blob/master/app/src/androidTest/java/com/sqisland/android/test_demo/M May 11 01:21:46 ainActivityTest.java, my gist: https://gist.github.com/shekibobo/b0bc0b3f8a53bf685d63 May 11 01:21:51 g00s: reading a report now. it's not actually a week for reasonable conditions, but it's quite interesting May 11 01:22:28 fixed link: https://github.com/chiuki/android-test-demo/blob/master/app/src/androidTest/java/com/sqisland/android/test_demo/MainActivityTest.java May 11 01:23:40 Do you have an androidTestCompile dependency on the dagger-compiler as well? May 11 01:23:51 I'm mobile, hard to look closely. May 11 01:24:28 You seem to May 11 01:24:35 hmmm, I don't think I do May 11 01:24:40 I'll try that out May 11 01:24:55 It's androidTestApt dependency May 11 01:25:13 groxx i dont think alien or predator could take on a fizzgig May 11 01:26:10 groxx and i'm sure the fizzgig is closely related to the Rabbit of Caerbannog May 11 01:28:20 JakeWharton: doesn't seem to make a difference. tried adding the compiler alone and compiler+dagger May 11 01:31:07 still messing with it, though, I have a feeling something else might be going wrong May 11 01:32:15 g00s: even more teeth, yeah May 11 01:32:52 fizzgig? May 11 01:32:53 groxx that would have been great if the chest bursters were actually fizzgigs May 11 01:39:24 groxx this is the one i was looking at https://github.com/h6ah4i/android-advancedrecyclerview May 11 01:39:52 its ... complicated May 11 01:41:08 g00s: yeah, that's the kind of thing I've been avoiding. e.g. SwipeLayout has what I'd consider to be a bug, where "swipe closed, and release after fully closed" causes a click if you're fast. took me like 10 minutes to track down the reason _and fix it_. that seems unlikely with anything called "Advanced X" :| May 11 01:41:46 lol i'm sure AbstractDraggableSwipeableItemViewHolder is easy to debug :D May 11 01:48:33 so now that I've added the dagger compiler to the androidTest group, it's complaining that the resources that are supposed to be provided by the ApplicationComponent graph aren't being provided, even though they are in my mock module May 11 01:54:07 hmm, too bad google doesn't have an equivalent to access in docs May 11 01:54:36 I want a really primitive shareable database that's somewhat human readable May 11 01:56:18 What should mArrayAdapter be in: http://developer.android.com/guide/topics/connectivity/bluetooth.html#DiscoveringDevices I tried: http://pastebin.com/iFmYrZbn May 11 02:00:30 does it matter? May 11 02:00:46 just add it to the data structure of your choice for later rendering May 11 02:01:03 "ApiHeaders cannot be provided without an @Inject constructor or from an @Provides-annotated method." but they are in the module that's in the `modules` set for the component interface May 11 02:01:19 codygman, I see you went back to java May 11 02:04:38 pfn: Only for learning resources. I don't feel like I understand everything so I'm going lower on the abstraction ladder. May 11 02:05:12 Java is closer to other languages I know and I'm not so great at translating Java -> Scala and being able to reuse Java resources with Scala. May 11 02:06:35 pfn: "a really primitive shareable database that's somewhat human readable" <- xml? May 11 02:07:10 groxx: Or s expressions ;) May 11 02:07:38 codygman: they specified "somewhat", so I assume they meant _less_ readable than that May 11 02:08:49 groxx, that's not much of a database, just a simple file and not really human readable May 11 02:17:51 I updated my gist to show the ApiModule and the MockApiModule, and for whatever reason, using the ApiModule.class works fine, but using the MockApiModule.class doesn't, even though both have @Provides for the resources required for the graph May 11 02:18:04 https://gist.github.com/shekibobo/b0bc0b3f8a53bf685d63 May 11 02:18:31 pfn i guess Google Cloud SQL ? May 11 02:19:23 https://cloud.google.com/sql/docs/introduction May 11 02:23:50 groxx: I actually find sexpr's readable tbh and they can obviously be pretty efficient ;) May 11 02:26:46 motherf********** May 11 02:26:52 wrong @Provides import May 11 02:27:08 there goes 2 hours of my life May 11 02:27:36 2 hours is nothing, i wasted a week with recyclerview May 11 02:27:46 but it is kinda interesting :) May 11 02:28:32 was it the int argument on the onCreateViewHolder? May 11 02:28:37 I did that once May 11 02:28:49 code generated just called it `i`, not `viewType` May 11 02:30:40 i added ActionMode and some other stuff May 11 02:31:39 g00s: dang, that's gotta be borderline masochism May 11 02:32:03 i'm stubborn, yeah. i dont like being defeated by api :) May 11 02:32:20 how can i scrolldown automatically in recyclerview? May 11 02:33:01 and i want to handle the velocity slow down. May 11 02:33:23 we have another masochist ! May 11 02:35:20 crazy_rudy_ layoutmanager has a bunch of scrolling stuff May 11 02:36:22 i wish Android had somebody like Erica Sadun, she'd write a whole awesome book on RecyclerView May 11 02:36:29 can mockito mock an interface? May 11 02:37:20 getting java.lang.ExceptionInInitializerError when trying to mock my retrofit service: Mockito.mock(MyService.class) May 11 02:37:53 g00s: which would be out-of-date by the time it was published May 11 02:38:23 true, but i'd understand it for a few hours anyhow May 11 02:38:24 joshkovach: yes, what's the exception cause? May 11 02:39:04 JakeWharton: initial cause is org.mockito.internal.creation.cglib.ClassImposterizer.createProxyClass(ClassImposterizer.java:99) May 11 02:39:49 but also seeing a lot of java.lang.NoClassDefFoundError: org.mockito.internal.creation.cglib.ClassImposterizer$3 May 11 02:41:58 aaand that might be why she uses dexmaker May 11 02:43:17 never used Mockito on the device May 11 02:45:04 g00s, she hung out here for a while May 11 02:45:31 and yes, you can't use cglib on android May 11 02:47:40 yup, dexmaker seems to fix the mocking... JakeWharton do you mock on the device? Is it because I'm mocking in espresso tests that that's a problem? May 11 02:48:05 no, only mock unit tests May 11 02:48:10 we use fakes for instrumentation tests May 11 02:48:51 what's the difference between mocks and fakes? May 11 02:52:09 http://stackoverflow.com/a/346440/132047 May 11 02:52:37 maybe we use stubs not fakes in instrumentation tests... May 11 02:52:53 the point is, we don't script mock interaction for those tests May 11 02:54:27 is there any particular reason for that? **** ENDING LOGGING AT Mon May 11 02:59:58 2015