**** BEGIN LOGGING AT Fri Mar 27 02:59:59 2015 Mar 27 03:10:30 TacticalJoke did you try gradle-plugin 1.2.x -- maybe they fixed your issue with AS 1.2 + unit tests Mar 27 03:11:02 "Performance improvements during project evaluation." Mar 27 03:11:47 plus Gradle 2.4 purports to be ~30% faster on confgiuration Mar 27 03:11:58 g00s: Good to know Mar 27 03:13:23 Yeah, I saw that release. Haven't tried just yet. Mar 27 03:13:37 Did you guys see this? Facebook has creating an image library: http://www.reddit.com/r/androiddev/comments/30fcfc/introducing_fresco_a_new_image_library_for/ Mar 27 03:13:40 created* Mar 27 03:13:59 there was a peculair comment about rxjava in that Mar 27 03:14:31 "Our system has interfaces similar to RxJava, but more appropriate for mobile and with built-in support for Closeables." Mar 27 03:15:02 wonder why they felt rxjava wasn't as appropriate as their thing for mobile Mar 27 03:15:13 beside closeable Mar 27 03:17:14 g00s: What system are you referring to? Mar 27 03:17:14 They support animations (GIF + WEBP): http://frescolib.org/docs/animations.html Mar 27 03:17:17 WebP* Mar 27 03:17:46 CedricBeust that facebook blog on fresco TacticalJoke linked to Mar 27 03:20:15 This might sound anti-progress, but I hate having to learn new libraries. Takes forever to evaluate them. :D Mar 27 03:20:47 Does it support X, Y, and Z? Tune in next week and find out! Mar 27 03:21:20 ugh yeah, i'm looking at 4 poorly documented graphing libraries :| Mar 27 03:22:10 guess 3 image libraries are too less Mar 27 03:22:15 better create a new one Mar 27 03:22:30 charting / graphing Mar 27 03:23:39 It's using NineOldAndroids. Mar 27 03:23:45 can't be good Mar 27 03:23:57 ok, that's better Mar 27 03:24:01 lol Mar 27 03:24:09 TacticalJoke: let me save you the trouble, don't use it Mar 27 03:24:21 Where I saw the NineOldAndroids reference: https://github.com/facebook/fresco/blob/847851a8de6d223c0a6634447bddee1252e01c64/imagepipeline/src/main/java/com/facebook/imagepipeline/animated/base/AnimatedDrawable.java Mar 27 03:24:47 JakeWharton: Is it no good? Or is that based on the fact that it uses NOA. :D Mar 27 03:24:53 anyone working remotely here ? Mar 27 03:24:58 gordon_: i do Mar 27 03:24:59 (I guess that's an inclusive 'or'.) Mar 27 03:25:21 TacticalJoke: the code is poor Mar 27 03:25:36 Okay. Thanks for the insight. :) Mar 27 03:25:54 is there any alternative? Mar 27 03:25:56 JakeWharton: oh! nice. guess I will look for new remote job. Are you still working for square? Mar 27 03:26:01 Maybe I can just take their animated-GIF stuff (though even that might not be good). Mar 27 03:26:10 gordon_: yep Mar 27 03:26:14 TacticalJoke: if you need GIFs, use Glide Mar 27 03:26:43 Ah, hadn't considered Glide, for some reason. I'll take a look. Mar 27 03:27:01 nice, though you quit Mar 27 03:48:58 so any ideas? Mar 27 03:49:16 With using ZXing with fragments that is Mar 27 04:03:39 Hey, is anyone on Windows and happens to have IDEA or Android Studio open? If so, could you try creating a class named "Con" (i.e. right click a directory in project view on left, and use "New -> Java Class") Mar 27 04:04:00 I'm curious what android studio does about reserved filenames on windows Mar 27 04:04:34 and you can (normally..) create a file named, e.g. Con.java Mar 27 04:04:39 can't* Mar 27 04:05:07 phix: what was the question? Mar 27 04:07:28 phix: nevermind i just took a look. i use zxscanlib and embed the scanner in a fragment. though i can't think why you wouldn't be able to do it using the external zx app and intents Mar 27 04:09:40 JesusFreke: It says "Failed to create child file at <...>\Con.java". Mar 27 04:12:46 TacticalJoke: great, thanks :) Mar 27 04:13:29 windows reserved names are such a PITA Mar 27 04:14:16 When I say "notepad Con.txt" at the command line, Notepad says "The handle is invalid". :D Mar 27 04:14:22 Awesome error message. Mar 27 04:14:27 heh Mar 27 04:14:50 Oh, you're probably not on windows 8.1 though, right? Mar 27 04:14:57 Yeah, Windows 7 here. Mar 27 04:15:01 Iirc, opening con.txt would actually work on 8.1 Mar 27 04:15:07 .. and it would be connected to the console Mar 27 04:15:45 I'm curious if you could type into notepad and see the text in the console. Mar 27 04:15:53 I had a weird smali bug related to that Mar 27 04:18:48 Ah, interesting. If say "copy con output.txt", I can start typing, and then ^Z to finish and create the file. Mar 27 04:19:25 And of course 'copy' is just the file-copying command. Mar 27 04:19:55 yea Mar 27 04:20:56 I think it is actually possible to create a file name con, but you have to use some extended file api or something Mar 27 04:21:13 but then, it's very hard to work with those files Mar 27 04:23:49 If I use Glide with OkHttp integration, since Glide refers to "com.squareup.okhttp.OkHttpClient", will Glide use my project's own OkHttp dependency? Mar 27 04:24:06 I'm guessing so, but I don't know much about how this kinda thing works. Mar 27 04:24:55 (Using Gradle.) Mar 27 04:27:30 TacticalJoke do gradle dependencies to find out Mar 27 04:27:45 you might have to override it Mar 27 04:47:48 whats the goto way to do an image pager / image carousel these days? Mar 27 04:52:38 scrollling horizontal through collections is a usability mistake Mar 27 04:52:40 Is there an annotation similar to @TargetApi to define classes / methods that should be run on version below the specific version code? Mar 27 04:57:51 g00s: what would you recommend for items that may have multiple images? Mar 27 04:58:07 btw i' Mar 27 04:58:10 d tend to agree Mar 27 04:59:23 Dammit, Gradle, y u so slow? Mar 27 04:59:56 Also, pro tip: do not click that - button on the Gradle tool window. ;o Mar 27 05:00:03 The minus button. Mar 27 05:00:52 why Mar 27 05:00:55 Daily reminder that Google Fiber is coming to my city and not yours Mar 27 05:01:07 do I care ? no ;) Mar 27 05:01:19 Daily reminder that you care Mar 27 05:01:29 i'm on 115mbps so i'm ok for now Mar 27 05:01:32 would love more though Mar 27 05:01:42 gordon_: It unlinks the project from Gradle. Mar 27 05:01:49 I thought it was gonna remove a recent task. Mar 27 05:04:25 explodes: regular reminder that I've had fibre for years - because I'm not in the US Mar 27 05:07:30 there was a story in the economist about 5G being faster than fibre; but they seem to block my vpn Mar 27 05:08:02 Leeds: :'( Mar 27 05:08:07 Where are you at, Leeds? Mar 27 05:08:38 http://www.speedtest.net/result/4239423132.png Mar 27 05:09:41 g00s: that actually seems a bit silly - consumer systems can't really use gigabit connections properly yet Mar 27 05:10:29 Leeds: http://www.speedtest.net/result/4244565811.png Mar 27 05:10:36 pre-fiber obviously Mar 27 05:10:51 Your upload is almost 2x my download Mar 27 05:11:16 How much does it cost? Mar 27 05:11:26 there's a choice of a couple of different speedtest servers - that one tends to give the highest download score, others give much higher - 500mbit+, sometimes - uploads Mar 27 05:11:30 about US$25 per month Mar 27 05:12:39 Even Google Fiber is going to be $70/mo Mar 27 05:13:05 Capitalism really did a number on our infrastructure Mar 27 05:14:10 explodes the best part about it, you pay to be part of the surveillance machine ! Mar 27 05:14:42 ugh. Mar 27 05:14:43 one of the benefits of living in the densest urban area in the developed world... they only have to lay one line to my 'medium-sized' building, covers about 100 flats Mar 27 05:15:44 Leeds it would be amazing if somebody did LiFi from the street lights Mar 27 05:16:52 its probably easily feasible within something like a library Mar 27 05:36:41 explodes talking about infrastructure http://digg.com/video/no-one-has-ever-been-as-mad-about-anything-as-this-guy-is-about-potholes Mar 27 05:37:26 HAHA Mar 27 05:38:22 g00s: roads like that around my parents place :( but man that's a funny vid Mar 27 05:38:58 hehe Mar 27 05:48:28 so i'm not crazy, the amazon app doesn't allow you to get digital downloads? Mar 27 05:48:30 Is it convention to namespace all xml ids? Mar 27 05:48:49 Leeds: your in HK right? Mar 27 05:49:20 i still dream about the HK internet. After being in the mainland for so long with <5mps then going into hong kong was like a dream Mar 27 05:58:52 Does butterknife not work with AdView? I wrote @InjectView(R.id.ad_view) AdView adView; and adView is null Mar 27 05:58:55 Where should I define my API URI and other config parameters ? Should I create a .properties file and read it from there or SharedPreferences is the way to go ? Mar 27 05:59:07 this is of course the google play services adview Mar 27 06:02:10 nvm I forgot to ButterKnife.inject(this). Not sure why my TextViews etc worked. Mar 27 06:08:00 shafox: typically *I* create a Constants interface with final variables Mar 27 06:08:25 shafox: then use Constants.API_URL or "implement" Constants Mar 27 06:09:52 If you want something that might vary depending on the flavor, put them in a res/xml file Mar 27 06:10:35 i want to learn flavors; what's a good resource Mar 27 06:12:10 I FINISHED MY APPPPP Mar 27 06:12:15 officially Mar 27 06:12:19 like 100% done Mar 27 06:12:25 Software is never finished. :D Mar 27 06:12:27 Link to Play Store Mar 27 06:12:46 explodes: i dont think im putting it on the play store Mar 27 06:13:02 my aswell Mar 27 06:13:17 i think i need some testers first Mar 27 06:13:18 anyone wanna help out :D Mar 27 06:13:26 Ugh, God, I hate Parcelable. It's so the opposite of neat. Mar 27 06:13:28 Are you using crashlytics? Mar 27 06:13:35 I've just remembered how much I hate it. Mar 27 06:13:37 DadFoundYourBugs Mar 27 06:13:40 explodes: nope should i? Mar 27 06:13:51 What did your dad find, anyway? Mar 27 06:13:57 my reddit account Mar 27 06:14:05 now you all know my secrete Mar 27 06:14:12 DadFoundMy: There are other options, but Crashlytics is really easy to integrated into your gradle build and Android Studio. They have a plugin Mar 27 06:14:18 Was it a shocking revelation? Mar 27 06:14:20 DadFoundMy: It's written by the Twitter dudes Mar 27 06:14:34 DadFoundMy: https://crashlytics.com Mar 27 06:14:40 can i just link the signed apk here? Mar 27 06:14:48 like from drive or something Mar 27 06:15:18 dcc send it ? Mar 27 06:15:26 It's even easier than that, if you run "gradle clean buildRelease crashlyticsReleaseDistribution" or something like that, it just does it Mar 27 06:15:45 https://drive.google.com/file/d/0B71NR7FwdIltdVV2c2JqWEZkYWM/view?usp=sharing Mar 27 06:15:49 DadFoundMy: Start by signing up, I'll help you through the procss Mar 27 06:15:57 explodes: yeah im doing all that now Mar 27 06:19:17 DadFoundMy: I like the material design, looks clean, i understood the whole app in like 2 minutes. the time selector could use some tweaks, like starting at the currently selected time, and the teachers name could use capitalization but other than that, slick as shit Mar 27 06:20:01 ahhh i forgot teachers name capitalzion! I've been meaning to do that Mar 27 06:20:14 and thanks :D Mar 27 06:21:16 ok, have to sideload amazon apps Mar 27 06:21:37 Eh this whole process is going to take a minute, DadFoundMy; we have to set up android studio which is easy, then set up release keys, which is also easy, but all of these tasks are time consuming Mar 27 06:21:48 DadFoundMy: Let me know when you've signed up Mar 27 06:22:41 and the google amazon app is entirely different from the amazon amazon app Mar 27 06:22:51 hmm its like 2:30am right now, and I have school tomorow. the responsible thing to do would to go to sleep Mar 27 06:23:04 DadFoundMy: Choice is yours, either wya Mar 27 06:23:12 DadFoundMy: I can help tomorrow if you happen to catch me Mar 27 06:23:29 yeah im going to do this all tomorow, ill highlight you if your on Mar 27 06:23:33 And since you're obviously pretty crafty, I don't think you'd have too much trouble figuring it out by yourself Mar 27 06:23:44 Cool man, good job on the Agenda App Mar 27 06:25:11 ya thanks again Mar 27 06:33:31 CedricBeust_: basically it will be all key:value pair constants only. like api_uri, config_setting etc. Mar 27 06:34:49 Do you need to put it somewhere special? I think there are times when string literals belong right in the code. Mar 27 06:35:10 Though these situations may be rare. Mar 27 06:35:31 i dont think so . Mar 27 06:39:00 and something like api_key, fb_key, fb_secret these kinds of values i want to store. Mar 27 06:46:41 DadFoundMy: yup, HK Mar 27 07:59:22 Hi! How can I convert a JSONObject to a JSON String Mar 27 07:59:57 I found JSONStringer but it doesn't look like it has a constructor that takes a JSONObject Mar 27 08:01:54 Any 3rd party library? Mar 27 08:05:52 astroduck: erm, JSONObject.toString? Mar 27 08:06:18 Leeds: I read somewhere it doesn't make a valid JSON in every case Mar 27 08:06:26 alertDialogBuilder.setView(layoutInflater.inflate(R.layout.fragment_to_go_in_alertdialog, null, false)) gives the warning: Avoid passing null as the view root. What is the view root for an AlertDialog? Mar 27 08:06:29 *JSON string Mar 27 08:07:00 it's not like JSON is particularly well-defined anyway... Mar 27 08:07:20 of course, alertDialogBuilder = AlertDialog.Builder(this) and layoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE) in the code above Mar 27 08:09:11 still, I'd like something a little more reliable Mar 27 08:09:39 is android + php + mysql fast? Mar 27 08:09:50 or does that depend on the efficiency of my code? Mar 27 08:13:09 efficiency of code, and you will probably have to consider android part and whatever server-side part separately Mar 27 08:13:34 (because network latency will probably trump application latency) Mar 27 08:14:04 hey gridView.setSelector(R.drawable.verify_tick); i put a verify tick clicked gridview item and tick image stretches(fits imageview), how can i put a green verify tick center of the image view ? Mar 27 08:17:05 is Gson depricated? Mar 27 08:17:45 p_l: ah, alright. do you suggest anything apart from android and php? are there some free api's that can be used to connect to mysql? Mar 27 08:18:35 supay: I'd suggest against PHP and MySQL :) Mar 27 08:19:06 but no, you'll need to make a 3-tier structure if you want any sensible behaviour Mar 27 08:22:11 Leeds: fyi http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf Mar 27 08:33:11 p_l: alright, thanks a ton! :) Mar 27 08:42:09 hallo Mar 27 08:42:24 i have a list of custome objects Mar 27 08:42:27 i want to display it in a list Mar 27 08:42:34 what's the proper way to put the objects into a listview? Mar 27 08:44:17 with a custom arrayadapter Mar 27 08:46:20 SimpleAdapter could also do, depending on your data Mar 27 08:54:16 i just want to use a simple name property Mar 27 08:56:08 got an example of simpleadapter Mar 27 08:56:42 i don't get the last two arguments in the SimpleAdapter Mar 27 08:57:23 like i can iterate over the list and just echo out the 'item.name' property Mar 27 08:57:30 is there a straightforward way to get this to my listview? Mar 27 08:59:11 I swear, samsung devices are the bane of my existence :I Mar 27 09:12:22 ProLoser, what should each list item contain? Just a line of text? Picture...? Complex UI? Mar 27 09:17:12 ProLoser: You can find some tutorials for ListView here: http://www.vogella.com/tutorials/AndroidListView/article.html Mar 27 09:17:39 iprime: any news about my dx not called on OSX problem? Mar 27 09:19:06 kukukk, I'll check in the afternoon sometime, there's a dev using the mac Mar 27 09:20:51 Ok. Mar 27 09:23:46 if you're in hurry why don't you exclude what's not necessary in the .gradle config? Mar 27 09:26:58 Hi all. I have a LinearLayout which orientation is horizontal. I have like 30 child views. How can I make sure that they are all visible on the screen, like: there can be 5 views next to each other, 0-5 must be on top, 6-10 under '0-5'. Its like continue below if there isn't enough space on the right. Possible stupid question (need more coffee) Mar 27 09:27:20 I added those libs because they were necessary :} Mar 27 09:28:16 FrancescoV: Using GridView instead of LinearLayout? Mar 27 09:28:36 http://developer.android.com/guide/topics/ui/layout/gridview.html Mar 27 09:29:15 kukukk: possible but is it possible with a LinearLayout too? Mar 27 09:31:33 I'm not a very experiencied Android developer, but I don't think that it is possible with one single LinearLayout. Mar 27 09:32:13 you mean like a table? Mar 27 09:32:31 But if I understand correctly your problem, GirdView is exactly what you need... Mar 27 09:33:11 i tried to make a scalable table with linearlayouts but it said i couldnt use nested layout weights... so i ended up just getting the screen size and calculating it all programmatically using percentages Mar 27 09:33:41 took ages but now it is pixel perfect and scales to any screen size Mar 27 09:35:23 FrancescoV:http://paste.ubuntu.com/10688209/ this is your row, and this is ur base adapter getview http://paste.ubuntu.com/10688222/ Mar 27 09:37:01 I can't put it in a GridView with an adapter. It's for a custom View which will be used in a ListViewAdapter ;) Mar 27 09:37:25 but Thanks for the tips. I can always use multipe TableRows in my LinearLayout Mar 27 09:39:15 kukukk, maybe I didn't explain properly... In you gradle config you can exclude modules of a dependency library/project, like so: Mar 27 09:39:19 compile('com.something.android:something:1.0.0'){ Mar 27 09:39:19 exclude module: 'unneeded-module' Mar 27 09:39:19 } Mar 27 09:39:43 if you know which modules are causing the problem you can just exclude them Mar 27 09:41:25 I'm afraid that most of them are needed, but I will try. Mar 27 09:41:34 FrancescoV, for such complicated use case, write your own ViewGroup Mar 27 09:41:43 aspecially since you know exactly which views are going to be in there and where. Mar 27 09:42:45 Mavrik, yes, maybe that's the best option, thanks Mar 27 09:43:30 kukukk, which class does AS complain about? Mar 27 09:44:00 Right now it complains about: Mar 27 09:44:01 trouble processing "javax/xml/bind/annotation/adapters/CollapsedStringAdapter.class": Mar 27 09:44:24 But I'm afraid that this is just the first in the list and it stops here without showing the rest :} Mar 27 09:45:34 (It's in jaxb-api-2.2.7.jar) Mar 27 09:54:12 do you need jaxb for basic xml processing? Mar 27 10:02:51 what do u think about dagger is it a good lib? Mar 27 10:03:05 and rxbus Mar 27 10:03:24 dagger is good a lib but it depends on implimentation Mar 27 10:03:43 lemonxah: thanks, what are the common faults? Mar 27 10:04:07 not common faults just is that really required Mar 27 10:04:12 sometimes ppl over engineer Mar 27 10:04:14 I'm trying to get Jersey running on Android. I won't use xml processing (I will use JSON), it depends on jaxb (and on some other libs). So, if I remove them, it will complain about missing dependencies. Mar 27 10:04:20 i see Mar 27 10:04:23 and rxbus? Mar 27 10:04:30 haven't used it yet sorry Mar 27 10:05:05 ok thanks anyway Mar 27 10:06:00 did you see this? https://code.facebook.com/posts/366199913563917/introducing-fresco-a-new-image-library-for-android/ Mar 27 10:06:30 kukukk, it won't complain if they're not used Mar 27 10:06:55 you can probably do "exclude module 'jaxb-api'" on your jersey dependency Mar 27 10:07:14 I will try to exclude them and see if it will complain or not. Mar 27 10:07:26 Basicly I'm trying to do this with Jersey2: https://github.com/giorgio-zamparelli/jersey-android Mar 27 10:09:26 which jersey are you using? Mar 27 10:09:34 is it on jcenter? Mar 27 10:10:56 snowkrash, do you use rxjava? Mar 27 10:11:03 I'm using Jersey 2.17 from here: https://github.com/jersey/jersey/releases/tag/2.17 Mar 27 10:11:10 iprime: yes Mar 27 10:11:15 (Out for lunch, will be back later) Mar 27 10:15:08 kukukk, you can find all of its dependencies in the pom file, e.g. jaxb-api, try the exclude module thing, should work Mar 27 10:17:24 you should also exclude stax, stax-api..etc Mar 27 10:18:42 iprime: why? Mar 27 10:20:32 snowkrash, why exclude those modules? they won't work with android Mar 27 10:21:19 I just tried Fresco Mar 27 10:21:23 rxandroid works? Mar 27 10:21:28 on a listview with images in every row. it is extremely slow to scroll Mar 27 10:21:31 wow! Mar 27 10:21:48 following only this http://frescolib.org/docs/index.html#_ and a humane implementation of a listview adapter with viewholder Mar 27 10:21:56 oh, snowkrash, misunderstood your question... why i'm asking about rxjava then.. because there only so many people using it or wanting to try/use it Mar 27 10:22:08 son, I am disappoint Mar 27 10:22:34 Odaym use Glide then ) Mar 27 10:22:43 I use Picasso thank you very much Mar 27 10:22:47 I tried Glide too Mar 27 10:23:09 Glide can be better in certain situations Mar 27 10:23:47 what about Glide's inability to understand that loading the image failed because there was no image path given and not because the image was not found? Mar 27 10:24:08 it uses the error image I give it and displays it in rows that were not given paths even Mar 27 10:24:31 Picasso correctly recognizes that if there is no image path given, then that's that..it has a separate case for when a path was given but could not be found Mar 27 10:25:19 hmm, never had that scenario, but given both are open (right?) you can always contribute Mar 27 10:25:45 I wouldn't know how to contribute, Im looking at them from a purely user perspective Mar 27 10:27:15 JW recommended Glide to me earlier (because I need animated-GIF support). I hadn't given it much thought before, but it looks neat. Mar 27 10:28:51 iprime: ok i see, well i try to update my java android skills, so maybe im going to ask questions a bit wrong :) Mar 27 10:29:11 tho i really like the reactive programming paradigm, thats why im asking about all of those libs Mar 27 10:29:25 is okhttp the way to go for http queries? Mar 27 10:29:39 that and retrofit Mar 27 10:30:09 snowkrash: Yeah. Mar 27 10:30:36 A good API, supports HTTP/2, etc. Mar 27 10:31:12 GitHub is down a lot for me today. Mar 27 10:31:45 being DDOSed, I think Mar 27 10:33:19 Ah. Mar 27 10:35:37 ok thanks Mar 27 10:38:16 hi, is there offline version of https://developer.android.com/guide/index.html ? Mar 27 10:39:00 yea you get Dash Mar 27 10:39:05 it has all the docs of the universe Mar 27 10:40:21 snowkrash, also check volley it's quite nice for some cases Mar 27 10:50:23 Property delegation in Kotlin is really powerful. Mar 27 11:01:01 btw whats the best animation lib on android? Mar 27 11:01:06 for views and stuff Mar 27 11:01:09 the best best best? Mar 27 11:01:15 yes! Mar 27 11:01:19 BESTESET BEST BEST ONE??? Mar 27 11:01:25 Oh god it's happening Mar 27 11:01:37 i think there is facebook pop for android as well Mar 27 11:01:38 I'm so hyped for this moment Mar 27 11:02:02 "animation lib"? Like, to do what? Mar 27 11:02:03 I use androidanimations by daimajia Mar 27 11:02:14 the lib should at last cover bezier curves and so on Mar 27 11:02:16 for easing Mar 27 11:02:23 that one has easing with it Mar 27 11:02:30 which are others? Mar 27 11:02:41 Lorenz9: What's happening? Mar 27 11:02:43 or is this the BEST BEST Mar 27 11:02:47 BEST Mar 27 11:02:51 the sdk apis are not enough? Mar 27 11:03:18 like i mentioned before im kinda updating my knowledge Mar 27 11:03:20 Nah sorry for hyping you haha I was just joking with Odaym because >BESTESET BEST BEST ONE??? Mar 27 11:03:43 usually the native libs are not the best Mar 27 11:04:06 ok but that's too vague :) Mar 27 11:04:13 depends on what you want to actually do Mar 27 11:04:18 dont know about BESTEST one Mar 27 11:04:21 at the moment i can be actually just vage sorry :D Mar 27 11:04:26 but what is best for you is different than what is best for others Mar 27 11:04:31 vague Mar 27 11:04:35 so that lib I mentioned gets the job done for me Mar 27 11:04:40 ok Mar 27 11:04:41 thanks Mar 27 11:05:11 best changelog item ever: "Fixed issues with annoying ads" Mar 27 11:05:20 lol Mar 27 11:05:21 heh Mar 27 11:05:43 at least there's a commit message Mar 27 11:06:30 guys, which point to start android development is the best? Mar 27 11:06:40 BEST BEST BEST???? Mar 27 11:06:44 THE ULTIMATE WAY??? Mar 27 11:06:50 Odaym: yap! :) Mar 27 11:06:59 hello world. Mar 27 11:07:09 Odaym: oh tnx :) Mar 27 11:07:22 Odaym: but some book or smth else? Mar 27 11:07:30 youre not gonna read a book :P Mar 27 11:07:47 :-D Mar 27 11:07:57 make a todo list Mar 27 11:07:59 no, i really want to use book :) Mar 27 11:08:09 then go find a book Mar 27 11:08:17 the one by Reto Meier is good Mar 27 11:08:19 dont know any good books for beginner Mar 27 11:08:25 (a bit old though) Mar 27 11:08:29 the book I got was way later when I understood many things Mar 27 11:08:36 hhee, been said already... this channel is not a good place for newbies/beginners Mar 27 11:08:44 Odaym: understand. nice first app @todo@ is nice way Mar 27 11:08:53 yea todo should be hard enough Mar 27 11:09:02 BoD: tnx bro Mar 27 11:09:27 if you're gonna pay, I would go to Coursera and take that Android course Mar 27 11:09:37 reto meier is lead instructor there Mar 27 11:09:46 ravilov: ok, but i talk here a little, believe that don't annoying somebody Mar 27 11:10:03 Odaym: tnx. go there right now Mar 27 11:11:01 hhee have you checked the android developers training? Mar 27 11:12:09 what is that Mar 27 11:12:52 https://developer.android.com/training/index.html Mar 27 11:13:12 Lorenz9: no, all i checked only docs on developer.android.com at this moment Mar 27 11:13:13 nice..I never noticed that tab Mar 27 11:13:35 yea usually they link to it from the docs Mar 27 11:13:48 Lorenz9: yep. checked this already, not full read. Mar 27 11:14:27 it is definitely all-encompassing and comprehensive.. Mar 27 11:14:36 its a very valid choice Mar 27 11:14:52 Lorenz9: but tnx for this Mar 27 11:15:05 dont try to eat everything at once, just start and do lazy learning Mar 27 11:15:44 well tnx guys. i think i can be android developer :) very love android platform / as user in this moment Mar 27 11:16:01 you can be anything you want! Mar 27 11:16:26 you guys seen Outfit7's Developers Story? https://www.youtube.com/watch?v=ekxABqJeRBc Mar 27 11:16:57 their accent gets on my nerves Mar 27 11:18:19 forst epp Mar 27 11:18:25 they built their forst epp Mar 27 11:18:26 haha Mar 27 11:20:27 yeah I saw the first few minutes Mar 27 11:20:40 then I realized it was marketing bullshit ;) Mar 27 11:20:50 I am using splash screen for my app. In my SplashScreen Activity I'm using a handler's postDelayed method to launch next activity. If I press back button on splash screen the app exits and I'm taken to home screen. But then the next activity i specified in handler launches. If user presses back on the splash screen I don't want to launch that activity again. How can I fix this? Mar 27 11:20:58 they're all marketing bullshit Mar 27 11:21:12 like big hollywood story of how some people made so much money Mar 27 11:21:34 staple: get rid of the splash screen ;) Mar 27 11:21:58 staple: You can cancel the call via Handler.removeCallbacks. Mar 27 11:22:09 BoD that's not an option ;-) Mar 27 11:22:13 i all, i am trying to make a game with andengine and TMXtiled extension, but my tiles in game ar diferent then what i created with tiled ... Mar 27 11:22:16 staple: But showing splash screens is pretty bad, in general. Mar 27 11:22:41 TacticalJoke should i remove callbacks in onBackPressed? Mar 27 11:23:12 Probably onDestroy. Mar 27 11:23:28 staple, best thing would really be to remove the splashscreen Mar 27 11:23:41 It'd usually be the opposite of where you post it (e.g., onCreate --> onDestroy). Mar 27 11:23:46 Yeah, splash screens are pretty awful, especially on Android. Mar 27 11:24:29 Ok Ok, can you explain why is it so bad? Mar 27 11:24:43 it has no benefit Mar 27 11:24:50 it must be an option, NO GAME == NO SPLASH SCREEN Mar 27 11:24:58 makes the user wait unnecessarily Mar 27 11:25:12 if your boss doesn't agree, QUIT! Mar 27 11:25:47 staple, if you really want to use an activity for your splash then just set android:noHistory=true for your splash activity Mar 27 11:26:37 Can somebody help me out with my tmxtiled problem and andengine ?? Mar 27 11:26:52 ok thanks guys! Mar 27 11:26:55 Erhanzz, define "diferent" Mar 27 11:27:40 EPG, well the tilemap loads fine in the program tiled Mar 27 11:27:43 staple, I didn't read you correctly... what TacticalJoke said Mar 27 11:28:04 EPG, but in the androidgame it only shows one tile over the entire map Mar 27 11:29:32 would openjdk-7-jdk be a wise choice over 6? Mar 27 11:30:10 for? Mar 27 11:30:55 If you're asking about JDK version, it should be at *least* 7. Mar 27 11:31:06 to do what though? Mar 27 11:31:18 For Android development. Mar 27 11:31:55 TacticalJoke: the new build tools kinda force JDK 8 Mar 27 11:32:03 not so new Mar 27 11:32:21 21.1.2 Mar 27 11:32:25 well then yeah, just take the latest... why not? Mar 27 11:32:54 because every decision has to become a debate? lol Mar 27 11:33:49 ravilov: just saw this 14:05 ravilov: best changelog item ever: "Fixed issues with annoying ads" Mar 27 11:34:06 obviously you never saw the bumblebee incident Mar 27 11:34:25 ? Mar 27 11:36:07 It seems too only load 1 tile ... Mar 27 11:36:08 BoD: just a sec Mar 27 11:38:21 ravilov: and BoD: https://github.com/MrMEEE/bumblebee-Old-and-abbandoned/commit/a047be85247755cdbe0acce6f1dafc8beb84f2ac#diff-3fbb47e318cd8802bd325e7da9aaabe8L351 Mar 27 11:38:23 this Mar 27 11:38:27 Anyone here ever use SDL2? Mar 27 11:38:36 TacticalJoke: if you don't know it, go on and read Mar 27 11:39:35 oh yeah I kind of remember seeing this Mar 27 11:40:09 best epic fail ever Mar 27 11:40:14 Haha. Mar 27 11:40:29 Significant whitespace FTL. Mar 27 11:40:36 hm, doesn't load for me Mar 27 11:40:57 GitHub is getting DOSed, apparently. Mar 27 11:41:44 thepoosh, lol Mar 27 11:41:58 i remember reading the comments for hours Mar 27 11:42:05 but my comment still stands, this is not the best changelog comment ever, it's the words Mar 27 11:42:10 er, worst* Mar 27 11:42:50 haha, "I didn't like that folder anyway." Mar 27 11:47:19 thepoosh, it's okay, people always keep backups of important stuff, right? Mar 27 11:47:27 yeah, sure Mar 27 11:47:33 keep telling yourself that Mar 27 11:48:28 well, *I* always keep backups Mar 27 11:48:32 (I actually do) Mar 27 11:48:57 i think a nas would be nice for that Mar 27 11:49:06 or some linux server with nas software Mar 27 11:49:24 at the moment i backup on a external Mar 27 11:49:28 but raid would be nice Mar 27 11:49:46 for the simple approach rsync does the job really well Mar 27 11:50:23 ravilov: i use only bitbucket and git Mar 27 11:50:42 thepoosh: github? Mar 27 11:50:48 bitbucket Mar 27 11:51:08 ah ok Mar 27 11:51:12 atlassian Mar 27 11:51:25 bitbucket + JIRA + confluence Mar 27 11:51:27 well dont want to put my code onoine Mar 27 11:51:28 imo Mar 27 11:51:34 online Mar 27 11:51:41 it was the decision of my bosss Mar 27 11:51:50 sure for companies Mar 27 11:51:52 i don't own even one line Mar 27 11:52:03 but especially there i would not do it Mar 27 11:52:06 but most do it Mar 27 11:52:12 but i'm sure that if i were a freelance i would pay the cash and use github Mar 27 11:52:14 most of my customers use github Mar 27 11:52:16 Bitbucket offers private repositories for free. Mar 27 11:52:42 i think its kinda strange that everyone is putting everything into the cloud Mar 27 11:53:06 but well why not its convenient anyway Mar 27 11:54:54 snowkrash: it's because fast internet coasts less than space Mar 27 11:57:19 what do you think about this: http://theuserisdrunk.com/ Mar 27 11:57:20 ? Mar 27 11:57:42 expensive. Mar 27 11:58:12 I saw that yesterday haha Mar 27 11:58:16 what a clown Mar 27 11:58:54 well no he isn Mar 27 11:58:59 the people who hire him are Mar 27 12:00:19 haha :D Mar 27 12:00:30 and how drunk? Mar 27 12:00:51 drunk has levels? Mar 27 12:00:58 you're either drunk or you're passed out Mar 27 12:01:00 of course :D Mar 27 12:01:07 or you're not drunk Mar 27 12:01:23 the binary approach Mar 27 12:01:58 what, no tipsy? Mar 27 12:02:06 yea that's the undrunk Mar 27 12:03:06 it is cheaper to get a regular person drunk than to get a professional drunk drunk. Mar 27 12:03:07 so something like undead Mar 27 12:03:55 anyone know where to find good icons? Mar 27 12:04:04 aside from icons4android and iconfinder Mar 27 12:04:11 thepoosh: lol Mar 27 12:04:15 having a lot of trouble Mar 27 12:04:44 iprime: if I exclude jaxb-api it claims about: Error:(13, 33) error: package javax.xml.bind.annotation does not exist Mar 27 12:05:23 http://game-icons.net/ if you are into game stuff. Mar 27 12:05:38 hmm well Im glad they offer them in pure white Mar 27 12:05:47 icons4android are all half-opacity white Mar 27 12:05:51 so annoying Mar 27 12:05:56 thepoosh: Where do I sign up? Mar 27 12:06:06 phix: for what? Mar 27 12:06:07 It would be easier to specify --core-library. Mar 27 12:06:14 thepoosh: to be a tester :) Mar 27 12:06:22 oh Mar 27 12:07:05 I dont mind the odd drink or seven every now and then, would be a good money earner :) Mar 27 12:08:44 Although I probably shouldn't mention I am doing that to my health insurance issuer Mar 27 12:09:25 Hey, can somebody tell me how to center ReCaptcha? It either sticks to the left side of the screen or gets actually near the center (with width:16% and margin: 0 auto;), but moves away from the center if I change the window size, what do? Yes I did google Mar 27 12:09:41 no you didn't Mar 27 12:09:48 you do not use % in layouts Mar 27 12:09:58 well that's what google told me to do Mar 27 12:10:05 no it wasn't Mar 27 12:10:10 Odaym, nothing some gimping/photoshopping can't fix Mar 27 12:10:12 you can use percentages in layout? Mar 27 12:10:18 (re: icons) Mar 27 12:10:35 I know ravilov but Im getting graining on some of the photos cause they're already layered in some way from the original pic Mar 27 12:10:53 so you have to follow the pixels and paint those white too, really should pay someone to do this Mar 27 12:12:00 kukukk, you probably have to remove whoever is depending on jaxb-api, maybe another module Mar 27 12:13:01 when I call animate() on a view, what is the default interpolator? Mar 27 12:13:12 Odaym, weird, sounds like someone is doing it wrong Mar 27 12:13:18 oh well Mar 27 12:13:23 it isnt with photoshop, its with Paint 2 Mar 27 12:13:35 ...well I'm no longer surprised Mar 27 12:13:46 I dont have space on this mac to download photoshop Mar 27 12:13:52 fucking apple sold me a 128GB laptop :P Mar 27 12:14:21 Bastards. Mar 27 12:14:25 No, I don't. If I can specify --core-library. This Jersey1 port also uses javax.xml.bind.* and those references are not removed: https://github.com/giorgio-zamparelli/jersey-android Mar 27 12:14:59 oh my god i posted a css question in android-dev Mar 27 12:15:09 sorry :S Mar 27 12:15:22 I don't endorse photoshop either, in fact I dislike it quite a lot Mar 27 12:15:26 I only ever use gimp Mar 27 12:15:32 Odaym maybe this is worth it? http://eu.minidrive.bynifty.com/ Mar 27 12:16:02 literallycat, I think it's the AccelerateDecelerateInterpolator Mar 27 12:16:09 thanks iprime Mar 27 12:16:26 also, I do my everything on a 64GB SSD (that includes everyday browsing and office work as well as photo editing and android etc. development) and still have room to spare... Mar 27 12:16:50 always thought apple stuff is pure crap, this convinced me even more Mar 27 12:17:00 i have a call to animate a view which is simple enough: currentLine.Animate().ScaleX(1).SetDuration(SCROLL_DURATION_MS); Mar 27 12:17:00 hey that's nice memorion Mar 27 12:17:04 why? there is a 256Gb option Mar 27 12:17:23 Odaym didn't buy one yet but I'm in the same situation Mar 27 12:17:34 memorion, throwing more disk space at it is not the solution Mar 27 12:17:46 the solution would be to make stuff not take up ridiculous amounts of disk space Mar 27 12:17:47 literallycat, is that xamarin? Mar 27 12:17:58 iprime yup :) Mar 27 12:18:00 ravilov it doesn't it's full with my own stuff Mar 27 12:18:12 iprime, uhh.. that's a toughie, i'll attack it on the mac later :) Mar 27 12:18:16 well but Im in Lebanon not the US Mar 27 12:18:20 well then delete all those torents and you're all set :p Mar 27 12:18:21 not sure if mac stores here got it Mar 27 12:18:24 kukukk, that is haha Mar 27 12:18:41 Odaym, vendor lock ahoy Mar 27 12:18:43 ravilov those are on my external drive, and that's full too :D Mar 27 12:18:51 i tried creating an animation resource to do the same thing as this animation but it doesn't seem to work Mar 27 12:19:03 android:toXScale="1.0" Mar 27 12:19:04 android:interpolator="@android:anim/accelerate_interpolator" Mar 27 12:19:04 android:duration="300" /> Mar 27 12:19:07 ...no Mar 27 12:19:09 sorry for the flooding Mar 27 12:19:09 stop that Mar 27 12:19:36 no excuse, especially because it's a single tag that could've fit in a single line Mar 27 12:20:00 no excuse Mar 27 12:21:20 if I call startanimation() on the view, I don't see any animation Mar 27 12:21:27 iprime: Even if I remove problematic references from the code, after all this I still would like to know how is possible to specify --core-library using Android Studio, and why dx is not called on OSX :} Mar 27 12:22:09 I need a way to stop the animation before I start it again Mar 27 12:23:18 what are you asking exactly.. Mar 27 12:23:41 odaym I think I just figured it out Mar 27 12:24:03 kukukk, me too Mar 27 12:24:10 odaym I need to call CancelAnimation() on the view Mar 27 12:24:23 sorry, you guys are my channel of rubber ducks Mar 27 12:24:26 why would you want to cancel an animation in mid animation Mar 27 12:25:09 Odaym I'm not sure. I am seeing weirdness and I think it is because I am animating on a view that is already animating. I want to make sure I only animate atomically on a view Mar 27 12:25:23 ahh that problem Mar 27 12:25:32 you have callbacks on every animation you know Mar 27 12:25:39 onAnimationEnd, onStart.. Mar 27 12:25:42 I mean ClearAnimation() Mar 27 12:25:48 use those to find out when an animation has finished Mar 27 12:25:53 ah thank you Mar 27 12:26:30 if you click many times on the button that is causing the animation to run on a view, the animation will run as fast as you've clicked and things will get messed up Mar 27 12:27:31 I think that is what I am seeing Mar 27 12:27:46 testing now Mar 27 12:27:49 you need to disable the button when the animation starts and re-enable it when the animation ends Mar 27 12:28:02 dumbest solution I could think of Mar 27 12:30:28 icons8 is the website I was looking for Mar 27 12:30:37 amazingness Mar 27 12:31:56 odaym i think that worked Mar 27 12:32:00 love u Mar 27 12:32:06 what do you mean you think Mar 27 12:32:09 it either worked or it didnt Mar 27 12:32:37 i have not reproduced the wierdness Mar 27 12:32:43 works :D Mar 27 12:32:44 haha Mar 27 12:32:44 so i assume its been fixed Mar 27 12:33:18 committing, pushing, starting my weekend Mar 27 12:33:30 you know I had a problem some time ago with hiding the Fab button whenever the listview is scrolled down and showing it whenever the listview is scrolled up Mar 27 12:33:57 I was doing add to the Y of the fab button 50 to hide and -50 to show, if I pressed it a lot the button would jump up and add 3 50's Mar 27 12:34:17 apparently you had to add/subtract the amount by which you've scrolled since the original position Mar 27 12:34:59 I didnt do that, I ended up using this guy's implementation https://github.com/makovkastar/FloatingActionButton Mar 27 12:35:10 in the source I couldn't even verify that he was doing what I thought was the solution Mar 27 12:35:14 feel bad for that Mar 27 12:35:36 haha Mar 27 12:35:42 still dont know how he's doing it Mar 27 12:35:44 buy him a beer Mar 27 12:36:00 https://twitter.com/readyState/status/581356729276989440 haha best tweet Mar 27 12:36:22 haha Mar 27 12:36:25 did you try it?? Mar 27 12:36:27 I tried it today Mar 27 12:36:40 no Mar 27 12:36:49 it stalled like hell upon scrolling Mar 27 12:36:59 instantly removed, didnt even bother to find out why Mar 27 12:37:10 I jsut saw this and didn't even want to try https://twitter.com/jessewilson/status/581235604740042752 Mar 27 12:37:28 wow Mar 27 12:37:59 jake person doesn't even try to defend lol people do it for him Mar 27 12:38:35 that guy works at square too I think Mar 27 12:38:52 indeed he does Mar 27 12:39:11 ah ok Mar 27 12:46:00 kukukk, how about you just disable pre dexing your libs? Mar 27 12:46:53 Now, I'm trying to creating an Eclipse project and see if --core-library can be used. I will also try disabling pre-dexing later. Mar 27 12:54:01 kukukk, I think I might have found another solution if you use build tools 21.1.2 Mar 27 12:54:17 Yes, I'm using 21 Mar 27 12:54:31 Yes, I'm using 21.1.2, but I also can install 22.0. If it helps... Mar 27 12:55:43 try adding this to your app's build gradle: http://pastebin.com/atN0pGmY Mar 27 12:57:29 no idea if it'd work, just stitched it up based on how multi dex is configured Mar 27 12:58:49 I am using Picasso and it's pretty nice. I hadn't heard of Fresco, but I guess it launch recently Mar 27 12:59:01 12 hours ago, yes Mar 27 12:59:46 I see. Mar 27 13:01:02 I've created a class that extends EditText. one of the arguments in the contructor is AttributeSet. I'm trying to get the string value of the "hint" attribute, but getValue returns @2131362062 how do I get my String value which i set in the XML? thanks Mar 27 13:02:25 context.getResources().getString(R.string.whatever) Mar 27 13:03:03 my buttons and edittext backgrounds are not rendering when I use drawables for them on my api 10 emulator when I use appcompatv7 version 22. anyone having similar issues? Mar 27 13:03:30 if I am to change to appcompat version 21.+ it renders. Mar 27 13:05:29 nevermind, found a report on the official channels for bug report. Mar 27 13:05:35 https://code.google.com/p/android/issues/detail?id=160591 Mar 27 13:09:55 anyone having a wallet account linked to his dev account and experiencing a "lack of data" ? http://i.imgur.com/Vyg9RrQ.png Mar 27 13:10:09 hi Mar 27 13:16:27 in android settinds->display->font size , can i specify in my app individual values for these Mar 27 13:17:03 or can i only rely on the platform scaing that is applied? Mar 27 13:17:11 scaling* Mar 27 13:18:21 how can i send variable from AsyncTas to the activity onCreate ? i created a set Method in the activity which i call in the asynctas. i call a get Method in the activity in the onCreate.But it doesnt work. How can i do so? Mar 27 13:18:22 rely on the scaling applied, use "sp" for text size Mar 27 13:18:35 thanks adq Mar 27 13:20:47 john67, depends on your object, you might be able to pass it in the intent and access it from the bundle Mar 27 13:21:23 iprime: Added the code to build.gradle, but I get the same error. Mar 27 13:23:04 is there a way to trace an activity from start to end (crash) in monitor/eclipse? Mar 27 13:23:25 iprime: an intent ? how? because according to the doc u have to do it between activities, how can that be done? Mar 27 13:23:29 john67, iprime I try to never use AsyncTask, but if I was and wanted to do what you are talking about, I'd probably set Extras on the Intent in the onPostExecute function Mar 27 13:23:34 or profile methods, or whatever the right terminology is Mar 27 13:23:36 john67 http://stackoverflow.com/a/1226907/1747491 Mar 27 13:24:47 Darkwater, use traceview profiler Mar 27 13:25:11 how? Mar 27 13:25:12 there is the old one in DDMS, and a new one (not very usable imho) just in CPU tabs of your AS Mar 27 13:25:32 http://developer.android.com/tools/debugging/debugging-tracing.html Mar 27 13:25:32 I'm using the standalone monitor Mar 27 13:25:40 which I think is really just the debugging part of eclipse Mar 27 13:25:58 see the link above (it's the old but functionning one) Mar 27 13:26:11 the new one lacks of too many things at the moment Mar 27 13:31:43 kukukk, didn't disabling predexing fix it? Mar 27 13:33:11 Ahh, sorry, forgot h Mar 27 13:33:19 Ahh, sorry, forgot that. i will try it now. Mar 27 13:34:15 if I create an object from IntentService/onHandleIntent, when this will get destroyed? Mar 27 13:34:42 depends on its scope Mar 27 13:34:53 i.e. on what would hold ref to it Mar 27 13:35:39 iprime: this is the correct syntax to disable preDexing? Mar 27 13:35:40 dexOptions { Mar 27 13:35:40 preDexLibraries = false Mar 27 13:35:40 } Mar 27 13:36:02 that's correct, put it in android {} Mar 27 13:37:31 Same error but for another class: trouble processing "javax/xml/stream/EventFilter.class": Mar 27 13:38:02 because I'm starting an AsyncTask (.get(), so synchronous), then this task returns some data and I wanted to send a notification from the IntentService, but I can't understand when it gets destroyed, I mean, maybe tha IntentService gets destroyed before and I'm not receveing the AsyncTask result Mar 27 13:38:11 And the advice to use "--core-library" in the error message. Mar 27 13:39:41 Hello, I'm trying to build "android-5.1.0_r3" for Nexus 5 but when trying to "make", I receive an error after some time: http://pastebin.com/78P5XaJj - what can I do? Mar 27 13:42:20 kukukk, with pre dexing off, try adding this: project.tasks.withType(com.android.build.gradle.tasks.Dex) { additionalParameters=['--core-library'] } Mar 27 13:42:24 adq: can't find an answer to my question there Mar 27 13:42:30 maybe after the dependencies section Mar 27 13:42:38 I want to profile from the start of the application until it crashes Mar 27 13:42:53 Darkwater, there's method profiling Mar 27 13:43:05 yeah I know Mar 27 13:43:10 not enough? Mar 27 13:43:10 but how do I profile from start till crash? Mar 27 13:43:33 there's some button to initiate the profiling Mar 27 13:43:42 yeah but I need to select a thread for that Mar 27 13:43:51 which doesn't exist before it starts Mar 27 13:43:57 i thought you need a process Mar 27 13:44:09 you can always start your activity from a dummy activity Mar 27 13:44:12 same thing in this case Mar 27 13:44:24 on a button click or something Mar 27 13:44:24 hm Mar 27 13:44:47 or have some delay prior to the code causing trouble Mar 27 13:45:17 Darkwater, you did no open the link above right? Mar 27 13:45:23 I did Mar 27 13:45:29 What is the heck with the #android-devel ? Mar 27 13:45:31 I'll see if I can use iprime's suggestion, thanks Mar 27 13:45:36 // start tracing to "/sdcard/calc.trace" Mar 27 13:45:36 Debug.startMethodTracing("calc"); Mar 27 13:45:37 kukukk, actually you can have similar config for PreDex types Mar 27 13:45:38 ... Mar 27 13:45:38 bluesm: some troll Mar 27 13:45:54 adq: that says to make sure to stop the tracing through Mar 27 13:46:03 bluesm, a clone chan initiated by darkPT which looks suspicious Mar 27 13:46:09 i think some ppl of freenode staff already look at it Mar 27 13:46:23 bluesm: Who invited you? I already banned one person that did that Mar 27 13:46:24 no other clue Mar 27 13:46:28 CedricBeust, darkPT Mar 27 13:46:34 he did a mass invite few days ago Mar 27 13:46:36 anyway Mar 27 13:46:48 JakeWharton: Is there any value in having own android channel (beside ability to SPAM without punishment?) Mar 27 13:46:48 That's the guy, at least he's no longer here Mar 27 13:47:16 bluesm: just the spam Mar 27 13:47:20 JakeWharton: CedricBeust Maybe some HR people thought it would be great thing to have it’s own channel xD So they could spam;) Mar 27 13:47:44 Hello, I'm trying to build "android-5.1.0_r3" for Nexus 5 but when trying to "make", I receive an error after some time: http://pastebin.com/78P5XaJj - what can I do? Mar 27 13:48:34 TheReduxPL: As stated in the topic: Root/custom ROMs, head to #android-root Mar 27 13:49:13 bluesm: you could trick new developers in putting malware in hun apps! Mar 27 13:49:17 think of the possibilities! Mar 27 13:49:31 FIrst I went to #android and they redirected me here, now #android-root lol. Thanks SimonVT, gonna ask there Mar 27 13:50:44 TheReduxPL: The same information is available in the topic of #android Mar 27 13:51:50 It says "root/custom ROM" but I'm trying to build pure AOSP (my first build ever), that might have confused me :) Sorry for trouble Mar 27 13:57:21 iprime: you are my hero :} Mar 27 13:57:42 I am using a NavigationDrawer, how can I load a new fragment from a previous one when a button is clicked? Mar 27 13:57:48 ie, how can a fragment replace itself with another one Mar 27 13:59:43 kukukk, great, glad it worked, you should thank this andoroid team guy here: https://code.google.com/p/android/issues/detail?id=79280 Mar 27 14:04:14 astroduck: http://developer.android.com/training/basics/fragments/communicating.html Mar 27 14:10:31 any idea how to create animations on a toolbar? Mar 27 14:10:49 after replacing my actionable with a toolbar the menu items don't have any click animation Mar 27 14:11:19 createScaledBitmap usually gives out of memory... is there any other method to scale bitmaps? Mar 27 14:14:13 scale up or scale down? Mar 27 14:14:48 down Mar 27 14:17:26 you can try resample the bitmap instead Mar 27 14:17:43 which is easy if you have an image file or stream Mar 27 14:18:07 android_sandwich: https://www.google.com/search?site=&source=hp&ei=NesUVerjFIyzogTrgYKADg&q=%2BcreateScaledBitmap+alternatives&oq=%2BcreateScaledBitmap+alternatives&gs_l=mobile-gws-hp.3...1479943.1494… Mar 27 14:18:08 …160.0.1495244.17.17.0.1.1.0.842.5384.2-3j9j6-2.14.0.msedr...0...1c.1j2.64.mobile-gws-hp..17.0.0.0.Fb2rW2w07Mg Mar 27 14:18:44 yea for now these images are always taken through a camera. Mar 27 14:18:50 will that even work Mar 27 14:19:42 You're simply using too much memory - use less Mar 27 14:19:48 Consider scaling bitmaps as you load them Mar 27 14:21:02 simon has the answer :) Mar 27 14:21:47 I see. Is there an example link that you can point to. I am looking for it in the Android Docs. thanks Mar 27 14:22:32 There's a chapter on it in the training docs: https://developer.android.com/training/displaying-bitmaps/index.html Mar 27 14:23:46 use FB's new lib ;) Mar 27 14:24:31 Yay.. change! Mar 27 14:24:33 android_sandwich: http://osdir.com/ml/Android-Developers/2009-12/msg00840.html Mar 27 14:26:37 if you're targeting API 19+ you can use reconfigure and related methods instead Mar 27 14:26:58 it's 11 and higher Mar 27 14:27:08 use reconfigure then Mar 27 14:27:24 or setWidth/setHeight.. of course depending on what you actually want to do with the bmp next Mar 27 14:27:33 that's probably better if you're reading from memory Mar 27 14:27:42 if you're loading a file/stream you can resample it upon loading Mar 27 14:27:51 http://developer.android.com/reference/android/graphics/Bitmap.html#reconfigure(int, int, android.graphics.Bitmap.Config) Mar 27 14:28:04 oh 11 ... then not :) Mar 27 14:28:30 didn't think anyone uses 11 Mar 27 14:28:50 or the lower 4 versions Mar 27 14:29:25 yea we need to raise the levels after making sure none of our users are using it. Mar 27 14:30:08 what are you building? Mar 27 14:30:21 iprime: theblang it doesnt work cant send String from AysncTask to activity http://pastebin.com/jVHXPaDj Mar 27 14:31:02 it's our enterprise app Mar 27 14:31:24 john67, is this async task in the same activity? Mar 27 14:31:30 mostly for survey taking. Mar 27 14:31:32 iprime: yeah Mar 27 14:31:37 john67, there's onNewINtent or something Mar 27 14:32:07 still... onCreate will not be called if the activity is already running Mar 27 14:32:09 what are you trying to do? Mar 27 14:32:44 i have want send data from Async task to activity Mar 27 14:33:15 Hey, when you're deploying an apk to multiple devices from AS is there a way to choose the order in which the devices are deployed to? Mar 27 14:33:51 u told me the other day to use Async task instead of a thread, so i used asyn task, for the database, Mar 27 14:33:58 I'm using my 360 and a G Watch and 360 deploys take ages but AS is deploying to it first Mar 27 14:34:51 john67: if you implement the asynctask in your actvity then you can use the result in onPostExecute on your activities main thread Mar 27 14:35:00 it's just there, by default Mar 27 14:35:05 john67, maybe it'd be easier if you shared your project :) Mar 27 14:35:35 john67 why is it that you need to restart the activity? what does the AsyncTask actually do, and what does your app need to do when it finishes? Mar 27 14:36:47 here's the code I'm using.. http://pastebin.com/HSSdSCQn Mar 27 14:37:36 i have a viewpager, and adapter, an asset database, and i have an application class for the selected the data. when i start the activity it has to load all the data into the viewpager Mar 27 14:37:42 it usually crashes on line # 39 Mar 27 14:39:00 john67: the observer pattern or an event bus (which is essentially the observer pattern) Mar 27 14:40:04 jvrodrigues: why an observer pattern? Mar 27 14:41:22 most efficient way to communicate between objects Mar 27 14:42:03 hey people Mar 27 14:42:03 or just implement an interface, there are so many options to return the result of an asynctask to an activity Mar 27 14:42:09 theblang: the async task select the content of the db. Mar 27 14:42:26 john67 then does what with that content? Mar 27 14:42:45 probably nothing, im guessing, he just wants to send the content back to the activity Mar 27 14:43:21 but in all honestly the best thing you can probably do at this point in time is show us some code. Mar 27 14:43:23 jvrodrigues: i just want to select the list back to the activity Mar 27 14:43:54 john67: as I said - several ways to go at this - depends on your implementation Mar 27 14:44:01 is it an anonymous class? Mar 27 14:44:06 inside the main activity? Mar 27 14:44:12 is it it's own class? Mar 27 14:44:36 is it an inner class? Mar 27 14:44:50 anyone familiar with unity dev for android? I need some help setting the launch mode for my app.. Mar 27 14:45:44 Unity is cheating :( Mar 27 14:45:55 jvrodrigues, haha Mar 27 14:46:04 but you should probably go ask in the unity channel Mar 27 14:46:09 I did Mar 27 14:46:17 they told you to come ask here? Mar 27 14:46:28 Got no answer there Mar 27 14:46:33 jvrodrigues: theblang iprime this is what i have http://pastebin.com/vPYLbctF Mar 27 14:46:40 How do i check the sdk version of my android sdk ? (I'm using a linux distro) Thanks ! Mar 27 14:47:03 john Mar 27 14:47:15 john67: you should read a thing or two about java Mar 27 14:47:25 jvrodrigues: what should i? Mar 27 14:48:23 ok so, the asynctask is inside the activity Mar 27 14:48:36 which means you are trying to start an intent to the same activity, totally unneeded Mar 27 14:49:29 john67 yeah, what jvrodrigues said. Just refresh your adapter with the new contents Mar 27 14:50:08 john67: what exactly are you trying to achieve? Mar 27 14:50:58 jvrodrigues: i need to send some of the content to the brocast receiver class Mar 27 14:52:05 hum... ok, why are you trying to read the contents of the intent in the onCreate method? Mar 27 14:54:07 in the first place bcos i wanted to get the content from the async task , Mar 27 14:54:37 but according to what theblang said i just need to get it from the adapter Mar 27 14:57:20 jvrodrigues: u get me? Mar 27 14:59:48 Ignore my question problem solved Mar 27 15:01:57 john67: http://pastebin.com/u2JcZAuU Mar 27 15:07:34 https://code.facebook.com/posts/366199913563917/introducing-fresco-a-new-image-library-for-android/ Mar 27 15:07:43 new stuff developers... new stuff Mar 27 15:09:13 that was new about 10 hours ago, now its just recent Mar 27 15:09:19 :p Mar 27 15:09:54 ha, its already been here? Sorry never mind :) Mar 27 15:10:14 questions are there any temp root apps ? Mar 27 15:10:26 jvrodrigues: i got u, Mar 27 15:10:58 question* :D Mar 27 15:11:41 wrong chan Mar 27 15:13:10 BTW, I found the solution Mar 27 15:13:12 =D Mar 27 15:16:54 is there any cool way to add to your app the public tweets of someone? Mar 27 15:17:17 apart from adding a WebView with the whole twitter page Mar 27 15:18:00 Have you checked the twitter API? Mar 27 15:20:53 napster, yes, but I was looking for a lib or something Mar 27 15:21:05 the problem is that it's not the main funcitonality, just a plus Mar 27 15:21:17 there are tons of twitter api libs Mar 27 15:21:18 so I was looking for something more install and use Mar 27 15:21:39 Checkout twitterkit, you wont be disappointed. Mar 27 15:21:47 great, thanks! Mar 27 15:22:19 yw Mar 27 15:25:47 any idea how to access getFragmentManager() from inside an Adapter? Mar 27 15:25:57 *any idea on... Mar 27 15:26:03 claint why would you want to do that? Mar 27 15:26:10 pass it to its constructor Mar 27 15:26:45 I don't know what you're thinking about doing, but its most surelly the wrong way to go at it Mar 27 15:27:25 because I want a clickable thing inside a list to open up a new fragment. Mar 27 15:27:29 You're probably setting a click listener to one of your views right? Mar 27 15:27:49 ok, so the best way is to create an interface Mar 27 15:27:54 implement it in yoru activity Mar 27 15:28:02 and call the listener whenever a user clicks that view Mar 27 15:28:22 oposed to making the fragment transaction in your adapter Mar 27 15:29:03 I have found that I can get it with (Activity(context)).getFragmentManager, but I think your way is cleaner... Mar 27 15:29:14 quick question, I am using an if statement to get device IMEI, and if it returns null then get the device mac address (wifi only devices). im getting the wifimanager to log the mac into my variable correctly, but when I pass the variable to a string it returns null instead of my mac address. why would it do that? ill pastebin my code snippet to see if someone can help me figure this out... Mar 27 15:29:35 claint if you need help with code feel free to pm me, waiting for testing results and dont have much work to do Mar 27 15:29:42 newkidd: why are you wanting to do this? Mar 27 15:30:57 I need to log either the IMEI or Mac address on our server to only allow form submissions that are linked to accounts Mar 27 15:31:45 http://pastebin.com/aS9idLKD Mar 27 15:32:05 newkidd: http://android-developers.blogspot.fr/2011/03/identifying-app-installations.html Mar 27 15:32:11 Hello! I am trying to apply foreground color span and maskfilter (blur) span on several block of text. Both spans on same blocks. Foreground color span works great, but blur span applied on wrong positions and letters. Mar 27 15:32:11 using the IMEI to identify accounts is a bad practice, as the IMEI is subject to change Mar 27 15:32:18 How to fix this? Mar 27 15:32:30 yeah but in my line of work, IMEI is supposed to change Mar 27 15:32:47 the users are identified by their cellphones/tablets Mar 27 15:32:52 jvrodrigues: Ok, I'll ask a bit if I get stuck with it. Mar 27 15:32:55 thanks. Mar 27 15:33:59 getting the IMEI works, but on a tablet it logs the mac address correctly, but the URL doesnt include the mac address. just null Mar 27 15:35:09 xgearx can you show us some code? Mar 27 15:35:54 newkidd: please use meaningful variable names Mar 27 15:36:33 newkidd: that code really compiles? Mar 27 15:36:37 yes Mar 27 15:36:41 newkidd, string is not mutable nor pass by reference Mar 27 15:36:49 and works on devices with IMEI Mar 27 15:37:02 sends the IMEI and registers it to the server via async task Mar 27 15:37:13 code which declares c in one branch of an if, and assigns to it in the other? Mar 27 15:37:15 newkidd: that code shouldnt even compile Mar 27 15:37:22 :/ Mar 27 15:37:29 just doesnt work on devices that are wifi only Mar 27 15:37:35 newkidd, and local variables are not members Mar 27 15:37:39 also the method name is ridiculous (which should be a compilation warning at least) Mar 27 15:37:56 a warning? no Mar 27 15:38:06 an error then Mar 27 15:38:10 no Mar 27 15:38:16 jvrodrigues: solved Mar 27 15:38:22 ok it should format your computer then (imho) Mar 27 15:38:27 BlurMaskFilter is not supported with hardware acceleration. Mar 27 15:39:07 so if u want to apply it correctly - enable layerMode - sofwtware for view Mar 27 15:39:12 its not finalized and cleaned up code. I am just trying to make it work. I can provide you my entire activity. Mar 27 15:39:53 newkidd: here's the thing: it's not compilable working code, at all Mar 27 15:40:05 Leeds: it can be compilable Mar 27 15:40:19 if String c is a global variable Mar 27 15:40:25 you say that, but it does compile and it does work. Mar 27 15:40:34 it is compilable Mar 27 15:40:36 why would you say it's not? Mar 27 15:40:41 c is obviously a member Mar 27 15:40:45 while he's shadowing it with a local c Mar 27 15:40:51 the problem is that newkidd is not assigning c in the if statement Mar 27 15:40:52 as its name implies Mar 27 15:41:01 hes creating a new variable that does nothing Mar 27 15:41:03 thats why its null Mar 27 15:41:09 yes, local != member Mar 27 15:41:32 this is one of those bugs that happen when you're very drunk Mar 27 15:41:33 http://pastebin.com/gaKDH8WA Mar 27 15:41:35 full activity Mar 27 15:41:54 newkidd: String c = wInfo.getMacAddress(); Mar 27 15:41:55 jvrodrigues: i did what u told me but cant send data to the broadcast receiver, look at this, http://pastebin.com/L9kHjxyJ Mar 27 15:41:57 remove the String part Mar 27 15:42:01 jeez Mar 27 15:42:11 newkidd: can you start by using meaningful names for your fields/variables/methods, etc. Mar 27 15:42:23 ide typically have shadowing and unused variable warnings Mar 27 15:42:25 just c = wInfo.getMacAddress(); I honestly do not know how to make this more clear Mar 27 15:42:40 of course you're gonna make stupid mistakes when the code is unreadable Mar 27 15:43:29 john67: that should work Mar 27 15:46:08 newkidd, heads up to use booleans instead of strings. dLogin == "true" is gonna burn you Mar 27 15:46:46 yeah the server is passing back a string "true" Mar 27 15:46:48 with the quotes Mar 27 15:47:30 newkidd: Boolean.valueOf(dLogin); Mar 27 15:47:34 Boolean.parseBoolean(serverResult) Mar 27 15:47:51 Anyone familiar with RxJava + Retrofit? I’m trying to do multiple api calls asynchronously and combine the result with combineLatest, however my combined Observable never emits anything Mar 27 15:48:15 add some .doOnNext's to the individual API calls Mar 27 15:48:23 see what's not working Mar 27 15:49:02 okay got it working. thanks everyone Mar 27 15:51:30 @JakeWharton so the individual calls never emit - I suspect this may be because nothing ever subscribes to them? I only pass those observables to combineLatest(List, Func) Mar 27 15:51:54 which I do subscribe to Mar 27 15:52:50 I don’t really understand what causes the Retrofit observable to perform the API call (and in turn emit the response) Mar 27 15:53:12 the act of subscribing triggers the request Mar 27 15:53:45 so I need to iterate over those Observables and call subscribe() (no parameters?) that feels… weird Mar 27 15:54:15 What style is causing this blue background http://cl.ly/image/2l2Q2L1G1V1B ? Mar 27 15:54:37 zambo passing an observable to combineLatest creates a subscription and triggers the request Mar 27 15:54:49 as long as you subscribe to the combineLatest observable Mar 27 15:55:35 pastebin some pseudocode Mar 27 15:56:14 http://pastebin.com/MALF8nai Mar 27 15:57:08 dont subscribe to retrofit observables with Action1's Mar 27 15:57:20 you need to handle onError Mar 27 15:58:13 jvrodrigues: this is what i have done, http://pastebin.com/DiF67rL6 and for the broadcast class http://pastebin.com/DiF67rL6 it doesnt send to the receiver class Mar 27 15:58:15 also if you're combining a finite number of observables I would not recommend using the list syntax Mar 27 15:58:21 for combineLatest Mar 27 15:58:46 john67: why are you using a broadcast receiver and not an intentservice? Mar 27 15:58:54 also, in your subscriber, you have `volumesResponse.items.toString()` - this doesn't do anything Mar 27 15:58:56 if all you want to do is trigger the pending intent Mar 27 15:58:59 hmm, well it’s basically splitting a String on spaces, then doing the API call on each word Mar 27 15:59:04 that’s just a line for me to break on Mar 27 15:59:48 jvrodrigues: i was told, to use broadcast receiver,i want to send a notification when its 8:00am and when phone is rebooted or started Mar 27 16:00:04 ah, ok. Mar 27 16:00:10 it’s just for learning/demo, so I mean I could do the API call with the full sentence, but then I really wouldn’t be using RxJava for anything Mar 27 16:00:17 is it working when the phone is rebooted or started, though? Mar 27 16:00:50 jvrodrigues: with the way you mentioned (communicating with adapters [that are trying to load up other fragments] and MainActivity), do you end up with many interfaces for each different sub-sub-child clickable thingie? Mar 27 16:02:02 claint: Not really, only one that passes the position - or some other relevant information, then the main activity decides which fragment to show. Mar 27 16:02:09 i've never used FuncN or combineLatest with a list, so can't help much more than that :) Mar 27 16:02:15 jvrodrigues: it doesnt send the data when the phone is rebooted or started, i have a content null when phone rebooted Mar 27 16:02:34 Okay thanks for your help! Mar 27 16:02:45 jvrodrigues: right, okay. Mar 27 16:02:47 jvrodrigues: so it isnt sent to the receiver Mar 27 16:03:30 john67, hum, the reciever can execute a piece of code when the phone is rebooted, or started, it wont receive any information Mar 27 16:03:42 you can, however, query the database on yoru broadcast receiver Mar 27 16:04:00 somebody using baoyongzhang/SwipeMenuListView component ? I try to close the swipe menu programmatically but I don't know how to do it Mar 27 16:06:24 jvrodrigues: but the data is being sent from the MainActivity to the Receiver,so no need to query the data base. so what should i use then? an intentService? Mar 27 16:06:40 well in the event of a reboot Mar 27 16:06:46 the main activity wont be receiving anything Mar 27 16:06:54 I mean sending anything Mar 27 16:07:15 so you will have to query the database on teh broadcast receiver if you want it to work Mar 27 16:07:39 which means you probably wont need to put any data in the pending intent, seeing how you will have to query the db anyway Mar 27 16:07:44 jvrodrigues: i mean after the phone is being rebooted or started Mar 27 16:10:03 <_cypha> does anyone know what to do to include some C source files in my Android.mk when building with ndk-build? The source files come from the android source tree but ndk can't find it Mar 27 16:10:13 <_cypha> even though I have set ANDROID_ROOT as an env variable Mar 27 16:14:20 I'm trying to load a resource from my code inside a library module. getResourceAsStream doesn't seem to be doing it... Mar 27 16:14:46 If I put a file in the library under raw/foo.txt, how would I get it from a static method? Mar 27 16:14:55 you don't Mar 27 16:15:10 make your Application context visible from static Mar 27 16:15:28 yech. Mar 27 16:15:54 If I was a plain JAR I assume this would work more easily? Mar 27 16:16:06 getResource as stream works fine, too Mar 27 16:16:11 you just have to give it the right path Mar 27 16:16:43 jvrodrigues: i mean after the phone is rebooted or restarted , Mar 27 16:16:55 oh, but not for resources Mar 27 16:17:00 trying to figure out how to know what the right path is... Mar 27 16:17:05 djMax, resources don't have paths Mar 27 16:17:26 hmm, they do.. Mar 27 16:17:34 weird, I thought they all got bundled up into resources.arsc Mar 27 16:18:14 yeah, I've tried most variants that it might me Mar 27 16:18:46 ^me^be Mar 27 16:18:49 res/raw/foo.txt should work fine Mar 27 16:18:57 use the correct classloader Mar 27 16:19:06 are long writes supported by the BLE stack? Mar 27 16:19:16 I was using MyClass.class.getClassLoader() Mar 27 16:20:07 yeesh, even passing Context isn't trivial because I'm trying to actually write a unit test. Mar 27 16:20:33 res/raw/foo.txt Mar 27 16:20:36 you already got your answer Mar 27 16:20:47 doesn't work Mar 27 16:20:57 any android BLE people around? Mar 27 16:21:22 should I expect there to be a jar in my project somewhere? THe one I find - classes.jar - doesn't have the resource in it Mar 27 16:21:48 * pfn shrugs Mar 27 16:21:53 in the apk Mar 27 16:22:18 no apk either. Mar 27 16:22:52 (not surprising, this is a project with just a library in it) Mar 27 16:24:52 ah - it's aar for android lib Mar 27 16:25:47 and the resource is in there as you say - res/raw/foo.txt Mar 27 16:33:03 hey all Mar 27 16:33:12 But now of course getting the Context from a JUnit test appears to be next to impossible. Mar 27 16:48:15 I think my best bet is going to be mocking android context. Can a JUnit test read from the fs? Mar 27 16:59:21 class A uses @Inject to inject foo, class B-which inherits from class A- injects the object graph. Does class B have a foo? Mar 27 16:59:25 (Dagger) Mar 27 16:59:30 button.setClickable(false); doesnt work any idea ? Mar 27 17:00:10 sci-fic: if you add a click listener after that call, it will become clickable- maybe you can do setEnabled(false) instead Mar 27 17:00:26 sci fi, you can also do setOnClickListener (dummy) Mar 27 17:00:31 and then switch it back Mar 27 17:00:32 explodes: what is "injects the object graph" Mar 27 17:00:46 explodes: yes you're right ty Mar 27 17:01:00 setEnabled(false) will work Mar 27 17:01:11 More accurately worded, class B gets the ObjectGraph and does myObjectGraph.inject(this) Mar 27 17:01:53 it will work, yes Mar 27 17:06:37 You can do anything you want Mar 27 17:06:55 If I just believe Mar 27 17:07:08 try Mar 27 17:07:10 try and try Mar 27 17:07:14 try and try Mar 27 17:07:18 and youll succeed at last. Mar 27 17:07:44 or die trying Mar 27 17:09:04 Whoever here recommended Gradle, Please to me a month (maybe two months) ago, you're a godsend. Mar 27 17:09:19 JakeWharton: If class A called myObjectGraph.inject(this) would class B's @Inject-ions be available? Mar 27 17:09:19 The 'android' command to install packages states that HAXM x86 emulation acceleration is not compatible with Linux. Why is this? I have heard otherwise. Mar 27 17:09:32 explodes: yes Mar 27 17:09:36 Oh my Mar 27 17:09:38 Awesome Mar 27 17:09:38 explodes: 'this' is of type B at runtime Mar 27 17:10:00 Kk, I remember it not working but it was definitely something else then :P Mar 27 17:10:11 (I haven't been able to get it work either way) Mar 27 17:14:31 Hi!, I have this: http://codepad.org/hsjb2Wmb <--- why? is valid to copy from external cache to external files folder like the code example ?? Mar 27 17:24:42 write external permision? Mar 27 17:24:48 write/read Mar 27 17:28:29 no Mar 27 17:28:36 slashes in filename param Mar 27 17:28:45 i'm very stupid :) Mar 27 17:29:32 Say I want to modify android.widget.VideoView and so I copy the VideoView.java across to my own app. Do I need to then copy across all the files that it depends on that are hidden from public API use? Mar 27 17:29:43 or is there a way to use the hidden API? Mar 27 17:31:56 johnflux, you could use reflection Mar 27 17:34:42 With Retrofit's callbacks, do you need to manually hold a reference to the callback? Mar 27 17:34:49 no Mar 27 17:36:02 explodes I'm curious as to what that means? Mar 27 17:36:38 Afzal: let me type it up Mar 27 17:40:01 Afzal: http://pastie.org/10057974 Mar 27 17:40:26 Afzal: actually, that paste service sucks, use this http://pastebin.com/uPvZAQ4W Mar 27 17:40:27 Oh okay I see, thanks! Mar 27 17:41:32 what is the largest image pixel amount bitmap that I can put in an image view? Mar 27 17:41:47 I assume it is different for different phones. but how can I find this # out for different phones? Mar 27 17:42:25 Does anyone know of some tutorials for the Android SDK -command line- that don't rely on the Studio for everything? Mar 27 17:42:41 in_deep_thought: look at picasso or Facebook's new library Fresco. trust me, doing this yourself is going to cause you a lot more pain than you can imagine Mar 27 17:42:49 in_deep_thought: *Picasso Mar 27 17:42:50 in_deep_thought: 4096x4096 Mar 27 17:42:57 explodes: you can probably skip Fresco Mar 27 17:43:11 JakeWharton: can you show me a source on 4096 x 4096? Mar 27 17:43:16 lol, the great JW speaks out about fresco! :P Mar 27 17:43:23 JakeWharton: Ha, I was wondering what you thought about it but I didn't want to ask. Why should I skip Fresco? Mar 27 17:43:27 it's the max GL texture size Mar 27 17:43:35 because it's poorly done Mar 27 17:43:56 thank goodness I wasn't the only one who thought that Mar 27 17:44:08 fb team keeps on finding weird ways to do shit on Android :/ Mar 27 17:44:11 JakeWharton: the API or the code-base? Mar 27 17:44:13 the library is 2.5MB in size, has a ridiculously verbose API, and there's code in there that looks like it was done by someone who just started Java Mar 27 17:44:51 JakeWharton what do you think about their use of ashmem? Mar 27 17:44:53 look at the *Util classes or OOMSoftReference if you want a high degree of "wat" Mar 27 17:45:02 wow 2.5MB- Mar 27 17:46:01 Hahaha - geniusOOMSoftReference Mar 27 17:46:42 I can’t find anything about the largest size a bitmap can have when loaded into an image view using Picasso. Is this something picasso would mention? or does everyone know that its 4096 x 4096? Mar 27 17:46:52 2048x2048 Mar 27 17:47:00 it's device-specific Mar 27 17:47:06 you can query the GL texture size Mar 27 17:47:10 haven't seen anything less than 2048 Mar 27 17:47:10 with some ridiculous OpenGL nonsense Mar 27 17:47:46 Wait, should I be using SoftReference instead of WeakReference? Mar 27 17:48:29 Oh nevermind, SoftReferences are released during memory pressure Mar 27 17:48:43 ok. so phones like the galaxy note 2 which have ridiculous back cams that provide huge images - bigger than 2048 x 2048. Is that just wasted because no one can display the images unless they are dowloaded to a computer? or can those phones actually display those resolutions that their cameras provide? Mar 27 17:48:54 I believe they behave pretty much the same on Android Mar 27 17:49:08 like ~4000px in some cases Mar 27 17:50:38 The pictures are most likely larger than the screen Mar 27 17:50:47 if you render in software you can do any size Mar 27 17:51:24 if I use picasso, I don’t have to worry about this right? I can just save it as whatever size, and picasso will display something which won’t break? Mar 27 17:51:31 like reducing the size, etc Mar 27 17:52:26 when you load an image into an ImageView, you can use the .fit() method to resize the image for the view Mar 27 17:52:46 that way you're not drawing 4096x4096 in a 44x44 Mar 27 17:54:02 It does a lot of other cool things, too Mar 27 17:55:12 JakeWharton: are you sure I can do this w/ retrofit? mFooAuthorizedService.getLikes(event.id, new LikesCallback(mTab, event)); Mar 27 17:55:18 yes Mar 27 17:55:23 kk Mar 27 17:55:25 Jake, is there an alternative method to 'createScaledBitmap' in picasso? Mar 27 17:55:34 why? Mar 27 17:56:07 my app usually crashes at that whenever I'm loading large pano images Mar 27 17:56:36 just because that method crashes doesn't make it the problem Mar 27 17:56:51 true... Mar 27 17:58:50 I'm using Picasso to display the images, I was wondering if I can use it to scaled images as well. The other thing is I haven't been able to use inSampleSize. As far as I know, I need to know the required images size to do that however I don't know what the whole image will be. I just know that the shorter side needs to be 800pixels Mar 27 17:59:02 it calculates inSampleSize automatically Mar 27 17:59:17 assuming you are using .fit() or .resize() Mar 27 18:00:27 hmmm, https://www.parleys.com/talk/53a7d2c3e4b0543940d9e538/ now to figure out how to apply it to android, heh Mar 27 18:00:27 hey, question about google play: do I need to publish my google play game services to be able to publish an alpha apk? Mar 27 18:01:39 I am using .resize() but I'm using BitmapFactory to decodeStream. Should I (Can I) use Picasso for decoding as well.. http://pastebin.com/pD4feWNa Mar 27 18:02:33 er, what is going on there Mar 27 18:02:50 i'm pretty sure you can replace that whole chunk with Picasso.with(context).resize(0, 800).centerCrop().into(imageView) Mar 27 18:02:54 or something along those lines Mar 27 18:04:16 yea this is our legacy code that I needed to add some functionality too. soon we'll rewrite the whole app probably. but thanks for the advice. Mar 27 18:09:53 Do many people develop using just the standalone SDK tools anymore? Mar 27 18:10:03 I can't find much docs Mar 27 18:11:57 anyone know if android preview shows text shadow? Mar 27 18:18:13 Any idea why I'm still get a NetworkOnMainThreadException with this code? http://pastebin.com/Mcw12ME4 Mar 27 18:19:12 because the callback is called on the main thread Mar 27 18:23:11 is possible to set a key->value pair in a Spinner ? Mar 27 18:23:24 JakeWharton: so the " origin.setAdapter(originAdapter) " ? I need to declare origin within the thread? Mar 27 18:27:08 Is there a run down of the API changes to 5.0 that werent in 4.x? Mar 27 18:27:50 Anthaas: https://developer.android.com/sdk/api_diff/21/changes.html Mar 27 18:27:53 I want to know, in particular, what view classes have been added, also, can I used Material Design in <5.x - i.e. is there anything 5.x specific that would make this difficult/a pain? Mar 27 18:29:40 JesusFreke: Oooh, thanks, I like this. Gives a decent amount of detail! Mar 27 18:35:55 Anybody got any idea about the 2nd question there then? Mar 27 18:37:25 Material Design and all that jazz? Mar 27 18:38:28 Toast you need to have afterTextChanged code be posted to ui thread Mar 27 18:38:43 and you definaltyshouldn't create a new thread everytime a character changes Mar 27 18:39:03 this is perfect use of rx java Mar 27 18:39:32 but anyways, you are much better off setting the textwatcher, then posting a runnable to an executor that uses a handler to post back to the ui thread the data to update the adapter Mar 27 18:54:01 Not sure if htis is the right place Mar 27 18:54:05 but I forked a module that was under the MIT Mar 27 18:54:17 can I add my MIT into the repo in order to signify my license to my changes? Mar 27 18:55:11 i have a ListView in a fragment, defined in XML. whats the best way to add an onItemClickListener for it in code? I tried doing it in onCreateView() but I got a null pointer exception and i suspect its because the layout hasnt reached the parent activity for getView() to work with ( https://gist.github.com/AbstractBeliefs/de75191f79afaaa682c4 ) Mar 27 18:56:29 kline: yeah, getView only works _after_ onCreateView returns. just use the fragmentLayout you inflated, it's the same thing. otherwise that's right. Mar 27 18:56:34 kline: maybe I'm wrong, but you haven't set oyur view yet Mar 27 18:56:39 use fragmentLayout instead of getView Mar 27 18:57:22 kline: it's a little odd that it's different than activity, where after setContentView() you have every view attached Mar 27 18:57:25 alright, that makes more sense. also, evening groxx. i spent about another 3 hours trying to get the map fragment to work, but ive canned it for now. when i have more skills ill come back to it i think :( Mar 27 18:58:55 kline: here's an example from a project of mine Mar 27 18:58:56 https://gist.github.com/ollien/c271ea7278a1c0b36acf Mar 27 18:59:23 im not sure how everyone else feels about it, but i find the behaviour of fragments quite difficult to come into. most of the documentation seems to be aimed at the v4 support lib, and the rest i guess assumes more knowledge of "normal" activity behaviours Mar 27 18:59:31 It is Mar 27 18:59:42 Honestly, I got it by fucking around and praying Mar 27 18:59:45 Does anyone know why I'm not getting Android 5.1 on my Nexus 5? Mar 27 18:59:48 heh Mar 27 18:59:52 Muchoz: Yeah, it's a gradual rollout Mar 27 18:59:55 I'm on 5.0.1 and there are no updates it says. Mar 27 18:59:58 Muchoz: Are you comftorable with ADB? Mar 27 19:00:00 kline: onActivityCreated Mar 27 19:00:02 You can update right now Mar 27 19:00:20 The OTA has been captured so you can flash it the same way your phone owuld Mar 27 19:00:27 ollien, yes I am. I guess I'll just download the image again. Thought I wouldn't have to go through the hassle again. Mar 27 19:00:32 Someone please help. Mar 27 19:00:32 Muchoz: don't even need to Mar 27 19:00:33 Unfortunate. Mar 27 19:00:38 ollien Mar 27 19:00:38 ? Mar 27 19:00:39 You can use the ota zip Mar 27 19:00:40 Nuchoz Mar 27 19:00:41 oncreateview -> find your view references onactivitycreated-> wire listeners, set up adapters, etc Mar 27 19:00:46 Muchoz: One sec Mar 27 19:00:46 lasserix Mar 27 19:00:48 Meh, I've already created a script Mar 27 19:01:00 Muchoz: or update from the official images: https://developers.google.com/android/nexus/images Mar 27 19:01:03 From some time ago that automatically flashes it and all. Mar 27 19:01:03 Rex Rex rex rex rex rex r e x r e x Mar 27 19:01:06 groxx, I know. Mar 27 19:01:08 What's up? Mar 27 19:01:10 I can't get anything but a black screen of death when I try to emulate an Android app Mar 27 19:01:15 groxx, already downloading. Mar 27 19:01:27 With low cpu use at that Mar 27 19:01:28 Rex, maybe your computer just does haven't the virility! Mar 27 19:01:34 ollien, worked perfectly, thanks. Mar 27 19:01:34 Muchoz: http://www.androidpolice.com/2015/03/25/flash-all-the-things-android-5-1-ota-roundup-for-nexus-devices/ Mar 27 19:01:36 kline: np Mar 27 19:01:37 did you try genymotion? Mar 27 19:01:54 Genymotion caused my system to crash hard, as in it froze my mouse Mar 27 19:02:04 That's literally just the OTA file that your phone would flash Mar 27 19:02:08 RexButler: maybe you computer just doesn't have enough power Mar 27 19:02:14 the wrap drive isn't going to warp Mar 27 19:02:24 ollien, no need. But thanks, you're too kind. Mar 27 19:02:30 HAXM is or is not compatible with Linux and either way haven't been able to get that to work either Mar 27 19:02:31 Muchoz: <3 Mar 27 19:02:35 I'm on an i7 Mar 27 19:02:37 RexButler: -> http://stackoverflow.com/questions/10022580/android-emulator-shows-nothing-except-black-screen-and-adb-devices-shows-device Mar 27 19:02:45 RexButler: is not. use kvm Mar 27 19:03:00 kvm okay Mar 27 19:03:10 what is kvm? Mar 27 19:03:15 Is that the old emulator? Mar 27 19:03:24 Does that work seemlessly with android studio emulation or is that separate Mar 27 19:03:24 ? Mar 27 19:03:35 RexButler: If you use the old emulator, it will Mar 27 19:03:42 but that's a POS Mar 27 19:03:50 RexButler: there's a link at the bottom of the official download page for "linux install instructions" https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Mar 27 19:04:01 I wish adb could set the IP of my Android device, would make my automatic script complete. Mar 27 19:04:07 it's not really haxm instructions because kvm isn't haxm, but it serves the same purpose Mar 27 19:04:26 which adb Mar 27 19:04:28 Woops Mar 27 19:06:53 hi Mar 27 19:09:02 iprime: problem solve Mar 27 19:09:10 iprime: thnks Mar 27 19:09:39 groxx: Installing kvm, as before Mar 27 19:09:58 groxx: We talked earlier, going through some steps since I'm on different hardware Mar 27 19:10:26 RexButler: heh. well, good luck :) I haven't tried android dev on linux, not sure i can help much beyond that link Mar 27 19:10:45 and sad to hear about genymotion. that's usually a good alternative :( Mar 27 19:10:55 s/good/more reliable/ Mar 27 19:10:56 kline: Dont get JakeWharton started about Fragments :P Mar 27 19:11:04 JAKE SMASH Mar 27 19:11:09 Anthaas, :> Mar 27 19:11:09 Hahaha Mar 27 19:12:27 RexButler i'm using linux with the emulator... may be a gpu issue? i know i had to install some additional 32bit ... you're just getting a black screen? Mar 27 19:12:48 additional 32bit libs* Mar 27 19:17:02 pmarino: I have a fuzzy memory of an sdl lib some (all?) need to install? Mar 27 19:17:15 maybe that's leaking over from something else though Mar 27 19:17:37 emulator: ERROR: Could not load OpenGLES emulation library: lib64OpenglRender.so: cannot open shared object file: No such file or directory Mar 27 19:17:37 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer. Mar 27 19:17:37 emulator: emulator window was out of view and was recentered Mar 27 19:17:49 Okay, I got this error before. Mar 27 19:17:54 Progress... KVM installed Mar 27 19:17:57 RexButler, please do not post multiline errors here. Paste them somewhere. Mar 27 19:18:01 ok Mar 27 19:18:07 RexButler, are you using the Nouveau drivers? what graphics card are you using? Mar 27 19:18:35 Nvidia GEFORCE GT 620M 1GB Mar 27 19:18:52 I turned of gpu in the KVM manager Mar 27 19:19:09 ... Mar 27 19:19:12 We are in business. Mar 27 19:19:16 Sorry to pester you folks. Mar 27 19:19:25 haha nice! Mar 27 19:19:37 Okay, now if I can get it to work in android studio Mar 27 19:19:42 I launched it in command line Mar 27 19:20:09 RexButler: \(^▽^)/ Mar 27 19:20:42 is there an “editing” intent that I can use which just opens the users preferred photo editor app? like a share intent opens sharing apps but this one for editing? Mar 27 19:21:05 I honestly don't know what I'd do without you folks. Just saying. Mar 27 19:21:32 Perhaps picking Nexus4 not 5 helped, but I think it may be hardware differences as well. Mar 27 19:22:31 in_deep_thought: good question. I don't know of any, but that's far from conclusive. "open" might be one that would work, though it's not really specific enough... Mar 27 19:24:12 <_genuser_> anybody here use conceal for encryption? Mar 27 19:24:34 <_genuser_> http://facebook.github.io/conceal/ Mar 27 19:24:47 I'm trying to make an AutoCompleteTextView that pulls results from a GooglePlaces API and then shows results from the API search as the user types. AutoCompleteTextView needs an ArrayAdapter. My API returns Place objects. How can I get my AutoCompleteTextView to show the name property of the Place objects? I'm looking at extending ArrayAdapter, but I'm not sure where to really go from there. I'm wanting to use android.R.layout.simple_list_item_1, if Mar 27 19:25:05 _genuser_: interesting. I haven't even heard of that one. will put it on my to-read list though :) Mar 27 19:25:44 <_genuser_> groxx: yeah, it claims to be so much faster than bouncycastle (and I assume spongycastle). but it doesn't mention what algos it uses and what key-length it uses. Mar 27 19:26:07 big speedups seem believable to me, since bouncycastle is so uber-generic Mar 27 19:26:22 <_genuser_> I have an app that does 4.5ms for encryption using AES/128-bit key with spongycastle. Mar 27 19:26:25 would be nice to find some solid third-party audits though Mar 27 19:26:29 groxx: It's working in Android studio as well. Thanks again everyone Mar 27 19:27:01 <_genuser_> groxx: I don't mind running some benchmarks on my two devices (galaxy4/noteII) however, this lib is missing info on key strength, etc. Mar 27 19:29:18 _genuser_: hrm. yeah, not encouraging that they seem to be pretty quiet about what it's doing. I'd think you'd want it to be super-specific, so you can replace it (and therefore independently verify that it's encrypting properly) Mar 27 19:29:59 <_genuser_> groxx: yeah, for example, I can encrypt data on my android with spongycastle and decrypt on desktop using java app with bouncycastle Mar 27 19:30:47 <_genuser_> the code is open, so I suppose one can run thru it themselves, but I don't think I have gone thru much open source code Mar 27 19:31:11 yeah. the answer is somewhere, but :'( that it's not documented. Mar 27 19:31:43 <_genuser_> :) and they're using openssl implementation. and only storing user pictures, which aren't safe anyway. Mar 27 19:31:52 <_genuser_> you can get them from user's facebook page, lol. Mar 27 19:32:13 yeah, though in principle you need to go through their api to do so, which means going through their permissions system Mar 27 19:32:49 <_genuser_> right right. I just meant most people don't have security setup, so you can just browse over to their page and view pictures Mar 27 19:32:58 ah. yeah Mar 27 19:33:16 _genuser_: fwiw they claim AES/GCM, and this lists key/iv byte size: https://github.com/facebook/conceal/blob/master/native/crypto/gcm_util.c Mar 27 19:34:10 but that's all I got so far, and I should do other things :) good luck, I'd be curious if you end up using it + opinions Mar 27 19:34:23 hey for thesnackbar is there a generic way to make it appaer at the top of the screen? Mar 27 19:34:37 <_genuser_> groxx: 16 bytes. so 128-bit. same as mine. if mine does it in 4.5 ms and this can do it faster, I might move to this. :) Mar 27 19:35:04 <_genuser_> groxx: for sure, I'll run some benchmarks and let you know how it goes. :) Mar 27 19:39:57 Hey all, quick question about using `setRequestProperty` on url connections. I'm using the "Range" header like so `conn.setRequestProperty("Range", "bytes=" + this.downloadedBytes + "-");` and after I set it the output of conn.getRequestProperties().toString() is "{Range=[bytes=3129-]}". And my server is responding with a 416, no range. But when I use `curl --header "Range: bytes=3129-` to that same file, it responds perfectly Mar 27 19:39:58 fine... what am I doing wrong? Mar 27 19:45:33 Android Studio not rendering, cannot find common_signin_btn_text_dark Mar 27 19:45:43 As part of the Google Play Services Lib Mar 27 19:48:56 Crap. Is there a way to get like a "test" key or api call or something for the google places API, similar to how Twilio lets you test their SMS service for free? I ran out of API calls just trying to implement the Google Places API, and now I can't test it anymore Mar 27 19:51:32 Hey all, quick question about using `setRequestProperty` on url connections. I'm using the "Range" header but in code it fails and through curl it works: http://stackoverflow.com/questions/29309063/urlconnection-setrequestproperty-range-header-getting-http-416-curl-works Mar 27 19:54:20 lasserix: u were talking to me about an asset library for database yesterday. can u give me the name please? Mar 27 19:55:44 Someone please put me out of my misery, why won't Google+ Sign in button render on AS? Mar 27 19:57:45 john67: https://github.com/jgilfelt/android-sqlite-asset-helper Mar 27 19:58:07 lasserix: thnx Mar 27 19:58:39 hmm did simonvt remove his schema library? Mar 27 19:58:51 john67: https://android-arsenal.com/ Mar 27 20:01:33 Anyone know of a list view / recycle view library that has both drag and drop and swipe (to dismiss) features? Mar 27 20:02:13 is there any backward compatibility w/ the mipmap resource folder? Mar 27 20:05:18 I haven't actually seen minimap or does android studio generate them for you from the images you put in that folder? Mar 27 20:05:59 if you create a new project the app icons are in a mipmap folder Mar 27 20:06:17 yeah but if you inspect them they aren't mipmapped Mar 27 20:10:57 the net connection is ugly Mar 27 20:11:33 what net connection? Mar 27 20:12:37 wrong password! imposter! Mar 27 20:13:59 the wifi Mar 27 20:14:17 at my work Mar 27 20:14:32 lasserix: there is nothing in https://android-arsenal.com/ Mar 27 20:15:52 maybe you should look again Mar 27 20:16:08 Anyone knows whether viewpagerindicater lib has an aar lib? I'm getting "Warning:Packaging for dependency com.viewpagerindicator:library:2.4.1 is 'apklib' and is not supported. Only 'aar' libraries are supported." when I updated to 1.2. Mar 27 20:17:12 Found an issue about it, nvm. https://github.com/JakeWharton/ViewPagerIndicator/issues/254 Mar 27 20:17:50 you did see when the last commit to that library was? Mar 27 20:18:17 i wasn't even born Mar 27 20:18:21 when the last commit was made Mar 27 20:18:35 memorion, I'm switching to PagerTitleStrip, this was from an old project that used ViewPagerIndicator. Mar 27 20:18:59 Mb. Mar 27 20:19:56 JakeWharton sorry, I can't interpret what you want to say by that Mar 27 20:23:11 memorion: it means he's from the future, and he went back in time to save the world from a future where all android dev was crappy. Mar 27 20:25:13 is there a way to add a shadow to the alpha of a bitmap at runtime? Mar 27 20:26:18 lasserix: not sure what you mean Mar 27 20:26:32 https://github.com/google/material-design-icons/blob/master/av/drawable-xxxhdpi/ic_play_arrow_white_36dp.png Mar 27 20:26:48 can I apply a border shadow to the edges of this ? Mar 27 20:26:52 ie around the opaque pixels Mar 27 20:26:58 in code at runtime Mar 27 20:28:23 hm. dunno of an easy way, aside from lollipop's elevation shadow with a clip path Mar 27 20:28:57 I mean, there should be one, I just don't know what it would be :) Mar 27 20:29:14 lasserix: just make a procedural shadow with a bitmap Mar 27 20:29:40 ? Mar 27 20:30:12 Hi! Mar 27 20:30:49 lasserix, bitmapdrawable by importing the original, scaledrawable, and a layer drawable Mar 27 20:31:03 hmm Mar 27 20:31:05 i see Mar 27 20:31:10 re-color the original drawable, scale it up, stack it up in layers and you put the larger one underneath the original Mar 27 20:31:11 for a fake shadow Mar 27 20:31:38 i thought doing such is bad at least with layered-list cause of overdraw? Mar 27 20:31:44 but i guess in a canvas it would no tbe Mar 27 20:32:05 you can use colorfilter to change the color Mar 27 20:34:45 making an own shadow in a generic way mostly looks better anyway Mar 27 20:36:23 is there a better/recommended way to get the user current lat and long position "quickly" ? Mar 27 20:36:38 *best, not better Mar 27 20:36:40 just do a single shot update Mar 27 20:37:36 tksko: there's LocationManager.getLastKnownLocation, but there's no telling how incorrect it is without getting a full location fix Mar 27 20:39:49 tksko: http://pastebin.com/3PCYCHn5 Mar 27 20:40:00 yes.. i will tryy with a listener and get the positions changes, but i need a quick way to get the current one Mar 27 20:40:09 also not while ive also seen that method to trigger the callback fast, it calls back on calling thread Mar 27 20:40:19 because my app need the lat and long to add a new entity to the system Mar 27 20:40:22 *for me this usually happens immediatly, never seen it long Mar 27 20:43:07 i think i need to use allways the gps location Mar 27 20:43:14 because i need the exact location Mar 27 20:43:23 my app is for registering trees in the street Mar 27 20:43:32 is it possible in any way to install an app as a system app without rooting the device ? Mar 27 20:43:44 tksko so just remove the IF and only use the else Mar 27 20:43:48 i need to get the "exact" position of the tree on the street Mar 27 20:44:22 i will try Mar 27 20:44:26 thanks lasserix Mar 27 20:44:57 i dont want to make the user to wait for so long but gps locations can take lot of times Mar 27 20:45:13 and it depends on the gps quality and signal Mar 27 20:45:18 :S Mar 27 20:45:57 tksko, have you checked out the FusedLocationProviderApi ? Uses some clever ways to get the user location quickly. Mar 27 20:46:16 How can I put a parcelable entity to a clipdata ? Mar 27 20:51:15 sweet talk it in there Mar 27 20:51:54 I love it when you talk parcelable to me Mar 27 20:55:17 i never used the googles location api Mar 27 20:55:25 but it seems to be best way Mar 27 20:55:30 JesusFreke: happy you love it Mar 27 20:55:35 I will worship anyone who can tell me why I can't get Google+ SignInButton to render on Android Studio Mar 27 20:55:43 Its doing my tits in. Mar 27 20:56:44 thanks for all Mar 27 20:56:48 have to go Mar 27 21:01:01 someone has tits? Mar 27 21:01:18 perhaps not any more, if I read that correctly Mar 27 21:01:29 I suspect the large majority of us do Mar 27 21:01:57 I wonder if men can be implanted with mammory gland stem cells Mar 27 21:02:11 I'd like to drink my own milk Mar 27 21:02:33 if i developed a controller for android devices that only works only inside the app itself(because of security reasons) how could i monetize it ? Mar 27 21:02:34 ಠ_ಠ Mar 27 21:03:33 kickstarter + awesome use case Mar 27 21:03:52 but your security concern seems flawed Mar 27 21:04:28 the problem lasserix is that i have to broadcast touch events Mar 27 21:04:36 so i cannot do that without rooting Mar 27 21:04:51 make an api Mar 27 21:04:54 Sekundes: bluetooth HID device Mar 27 21:05:04 so people can use your controller input in their games Mar 27 21:05:08 with AIDL or something Mar 27 21:05:59 controller has a service, the service listens for controller input, then rebroadcasts it to whoever is listening, or you can make an api that just creates direct connection Mar 27 21:06:47 hey all, im trying to add a dependancy to my Android Studio project in the build.gradle (compile 'com.loopj.android:android-async-http:1.4.6') and the gradle sync fails, even though thats exactly what maven central tells me to add... what gives?? Mar 27 21:06:56 but that means i would depend on people listening to that api right ? Mar 27 21:08:22 yeah JesusFreke that would mean i have to make my device work on bluetooth Mar 27 21:08:50 ? Mar 27 21:09:07 Sekundes: how does it work, if not bluetooth? usb? Mar 27 21:09:46 Sekundes: thats how api works, unless you want to be only developer of this controller Mar 27 21:10:13 that`s actually a really good ideea lasserix Mar 27 21:10:34 so i would make the controller and the software beeing sold to the users Mar 27 21:10:41 and developers just listen to my api Mar 27 21:10:56 or am i getting this wrong ?:) Mar 27 21:10:57 yeah Mar 27 21:11:02 thats the idea Mar 27 21:11:27 thx lasserix :D Mar 27 21:11:35 Can someone tell me how I can pass an entity class through a clipdata ? Mar 27 21:12:54 "Nuclear leak caused by 'wrong type of kitty litter,' ... damn cats just want to watch the world burn Mar 27 21:15:31 I am getting so flipping frustrated Mar 27 21:16:04 Anthaas: still the G+ button? Mar 27 21:16:10 Yep! Mar 27 21:16:24 I have had it render before. A long while back now. Mar 27 21:16:32 I have no idea why I can't get it to do it now. Mar 27 21:16:49 The class provided by AS which has everything near enough in place for G+ sign in doesnt even bloody work! Mar 27 21:16:56 Anthaas: any errors, mind showing the xml, are you hiding in code (since it runs your code), etc? Mar 27 21:17:35 If you create a new activity in AS, click Login Activity and tick the box for Google+, thats what I currently hafve. Mar 27 21:17:36 have* Mar 27 21:17:51 using Picasso for some reason the image is always 9.9/10's smaller than the imageview Mar 27 21:18:00 i am using resize(imageView.width, imageView.height) Mar 27 21:18:16 well i have tried all combinations but it is always not just scaling to image view size Mar 27 21:18:37 hmm interesting, public link to the image? Mar 27 21:20:16 groxx: Bearing all that I just said in mind, here is the exception being thrown http://pastebin.com/UR4e4jeu Mar 27 21:20:42 http://postimg.org/image/vea7w8qa3/ Mar 27 21:20:44 hey all, im trying to add a dependancy to my working Android Studio project in the build.gradle (compile 'com.loopj.android:android-async-http:1.4.6') and the gradle sync fails, even though thats exactly what maven central tells me to add... what gives?? Mar 27 21:21:16 jobelenus: right click goto Module Settings click on your module (probably app) click on dependencies tab Mar 27 21:21:22 click on add, click on Library Mar 27 21:21:26 search for android async Mar 27 21:21:31 and then dowlonad it via that dialog Mar 27 21:21:42 lol, this is awesome https://vine.co/v/O9EthpzguKL Mar 27 21:21:54 Anthaas: lol, doing that absolutely destroyed my build.gradle. I hate when "oh, we'll do that for you" stuff is so massively incorrect. Mar 27 21:23:00 *i am using 16:9 aspect ratio using screen width Mar 27 21:23:15 groxx: I tried creating the project myself, with an XML file that only had a root LinearLayout containing the SignInButton - still doesnt work. Mar 27 21:24:25 In fact, that is what I have now, same problem. Mar 27 21:24:28 lasserix: "and then download it" ?? there is no downloading.. i hit "OK" after searching, it adds the same line i removed from dependencies and then does a sync, and says it "Failed to find" Mar 27 21:26:40 Anthaas: dunno. for reasons, I downgraded from 7.0.0 to 6.5.something, but that version at least renders: http://cl.ly/image/2K3u03173g02 Mar 27 21:26:47 jobelenus: you should use retrofit but Mar 27 21:27:01 well ill use whatever gradle builds with ;) Mar 27 21:27:02 compile 'com.loopj.android:android-async-http:1.4.6' works for me Mar 27 21:28:08 so then what should i look at as to why this fails? b/c without this line everything works fine? am i missing some kind of other dependency or version? Mar 27 21:28:15 what's best way to achieve alpha fade in out animation for changing a view visibility? Mar 27 21:28:28 jobelenus: no idea, invalidate caches restart Mar 27 21:28:30 groxx: Hmm, doesn't seem like a great fix. Mar 27 21:28:32 pray to the great android robot Mar 27 21:28:41 i hate the great android robot Mar 27 21:28:42 ;) Mar 27 21:28:57 Anthaas: yeah :) but it might be a bug in 7.0.0. I can try it again later with 7.0 though. Mar 27 21:31:15 yea, invalidate/restart didnt do much. gdi Mar 27 21:33:32 groxx: That'd be cool, thanks Mar 27 21:34:27 Anthaas: in the meantime, maybe fake it with tools:background="#f00" + tools:layout_width/height to fill the appropriate space? Mar 27 21:34:58 or is it breaking the entire editor? that would suck Mar 27 21:42:25 lasserix: now it says "Failed to resolve" which is different.. Mar 27 21:43:34 finally fixed it.. woof... Mar 27 21:43:36 thank god its friday Mar 27 21:43:43 beers on me Mar 27 21:46:41 i have a Viewpager and adapter .When the app is launched the database load the database and feed the adapter. i want to make a notification which have the first content in the activity .the notification appear every time the phone is reboot or started how can i do that? i have created the notification, but its empty. Mar 27 21:46:46 im a bit confused Mar 27 21:47:12 groxx: Sorry, had to go fix something - well, I can replace it with a button and the like, but just not SignInButton Mar 27 21:50:11 "The floodgates are now open for UK users to sue Google over privacy violations tied to tracking cookies. " Mar 27 21:50:39 looks like they lost in the safari tracking case Mar 27 21:51:54 I've split my Android Studio vertically. When I select my fragment layout, the preview shows. But when I click another editor, it disappears whether in floating mode or not. This is ridiculously annoying, can I keep it open? Mar 27 21:52:01 hey capella didn't you start on a PDP-8 ? Mar 27 21:52:29 Yah - cool machine - octal based .... 3bit words Mar 27 21:52:33 er, bytes Mar 27 21:52:44 me too Mar 27 21:52:54 300 baud acoustic coupler Mar 27 21:52:55 good times Mar 27 21:53:09 Yep! papertape pgms rolled into little circles Mar 27 21:54:04 g00s: what prompted that inquiry :) Mar 27 21:54:18 capella check it out http://obsolescenceguaranteed.blogspot.ch/2015/01/new-project-pdp-8i-replica.html Mar 27 21:55:01 g00s: yah - worst case code entry could be done toggling front panel \o/ Mar 27 21:55:24 also bootstrapping,etc Mar 27 21:56:35 http://hackaday.io/project/4434-pidp-8i Mar 27 21:57:18 haha, the first comment here is hilarious https://news.ycombinator.com/item?id=9277905 Mar 27 21:57:38 heh - pdp 8/e was my guy Mar 27 22:01:22 oh dayam ... caught a crasher while testing my patches ... panic ensues until I realize it's in our release version :O Mar 27 22:01:28 groxx: Odd that yours was fine, I found this: https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=77241 Mar 27 22:01:36 Same problem for 6.1. Mar 27 22:01:39 not it ! Mar 27 22:03:24 if google code is shutting down where will AOSP live? or is that an exception? Mar 27 22:04:01 Thats a bug... Mar 27 22:04:25 AOSP doesn't live on googlecode, other than the issues Mar 27 22:04:39 when a mediaplayer goes into the background should it be released? Mar 27 22:05:50 myke they are going to put it in a Parcelable and move it somewhere else Mar 27 22:06:17 gah, can't understand why I get "cyclic reference" when using map in rxjava Mar 27 22:06:27 Doesn't seem like a cyclic reference to me Mar 27 22:06:29 just dropbox it Mar 27 22:06:32 Afzal wow thats cool, how did you do that ? Mar 27 22:06:40 do what? Mar 27 22:06:43 lasserix: in onDestroy set the MediaPlayer to null Mar 27 22:07:22 umm Mar 27 22:07:22 Line 73: http://hastebin.com/yajazabori.vhdl Mar 27 22:07:27 what about release? Mar 27 22:07:31 user presses home and resumes Mar 27 22:07:43 if I replace the map call in line 63 with concatMap, it's fine Mar 27 22:07:53 lasserix: it depends if you're playing video or audio, with audio you'd normally keep playing in the background with prepareAsync Mar 27 22:08:12 no audio video Mar 27 22:08:26 g00s, line above Mar 27 22:11:08 lasserix: onPause you'd videoView.pause(); and getCurrentPosition, and onResume seekTo(currentPosition) and start(); Mar 27 22:11:14 hmm Mar 27 22:11:45 shmooz i am deep Mar 27 22:11:52 no pause resume callbacks where it lives Mar 27 22:12:03 lasserix: or you could totally kill it with stopPlayback() and make videoView = null; if you think you should release it Mar 27 22:12:21 Afzal are you doing the coursera course with the scala guy? Mar 27 22:12:24 argh Mar 27 22:12:33 anyway to get pause/resume callbacks in a view via views methods? Mar 27 22:13:02 not sure what you are asking Mar 27 22:13:19 this is a very complicated view deep, very deep inside a view hierarchy Mar 27 22:13:34 there are no callbacks for onpause onresume in a view, or are there? Mar 27 22:13:42 i am going to have to propogate it somehow Mar 27 22:13:45 lasserix: you need to assign a mediaController to the videoView to get the pause play buttons going Mar 27 22:13:50 Anyone know a way of modifying network priority for wifi? Mar 27 22:13:51 haha Mar 27 22:13:53 g00s nope, I'm doing this https://github.com/jhusain/learnrxjava/ Mar 27 22:13:57 there is no videoview Mar 27 22:14:16 Afzal btw i love the homegrown DI :) Mar 27 22:14:19 this is a totally custom video playback view, modeled on youtube with autorotate and all that shit Mar 27 22:14:19 ok mediaplayer then Mar 27 22:14:25 you can use the defauls mediacontroller, or make a custom one Mar 27 22:14:32 homegrown dependency injection? wut where?! Mar 27 22:14:46 Afzal likes 1-50 O.o Mar 27 22:14:49 *lines Mar 27 22:14:49 you can also customize the default controller Mar 27 22:15:08 or just make one that doesn't inherit the default controller using layouts Mar 27 22:15:17 no its totally different Mar 27 22:15:20 lasserix, I used a fragment to hold my VideoView Mar 27 22:15:20 Is that DI, looks like straight up constructor calls, right? Mar 27 22:15:26 thats DI Mar 27 22:15:31 Well shit Mar 27 22:15:33 just no tool ;) Mar 27 22:15:33 but i have like 8 different tyes, streaming, vod, streaming with ads, vod with ads, Mar 27 22:15:38 vod with info Mar 27 22:15:38 I didn't write that part lol Mar 27 22:15:54 I'm more interested in the rx parts Mar 27 22:26:24 Hey can anyone help me? Mar 27 22:26:53 In a custom ViewGroup, what decides the order in which the child views are drawn? Mar 27 22:30:20 fuck Mar 27 22:30:30 mediaplayer releases buffer when surface is destroyed Mar 27 22:30:41 must be possible to retain buffer across on pause on resume!? Mar 27 22:31:38 copy the contents of surface in pause? Mar 27 22:32:19 that doesn't solve buffer Mar 27 22:32:22 *buffer loss Mar 27 22:32:23 Copy contents in a bundle, reload them from the savedInstancestate Mar 27 22:32:33 that doesn't solve anything, just a bandaid Mar 27 22:32:35 but yea Mar 27 22:33:24 I don't know much about surfaceView, but when it must be destroyed, there must be an OnDestroy() call to it that can be overriden Mar 27 22:33:47 well i need to see if themediaplayer is releasing its buffer or just it needs to have its surface reset Mar 27 22:36:15 ahh awsome Mar 27 22:36:17 that is just it Mar 27 22:36:25 one more d(mn variable but whatever Mar 27 22:41:13 Hey lasserix, can you tell me what are you making? Mar 27 22:41:39 an app for a company that does something like weather Mar 27 22:42:05 Hi all. I’m building an app that uses BLE and was wondering whether classes like the connectGatt() method and its BluetoothGattCallback, and the startLeScan() method run in the background (off the main thread). Do they? Or should I run these inside a new Thread? Mar 27 22:42:46 Woah cool stuff lasserix Mar 27 22:43:06 Nimyz they run on binder threads Mar 27 22:44:56 Nimyz oh reread - you call them on any thread, they are async - the callbacks are on binder threads Mar 27 22:45:31 but connectGatt should be called on main thread for Samsung 4.2.x devices - as you'll find out ;) Mar 27 22:45:40 the other ones, doesn't matter Mar 27 22:46:10 whats the best android phone out there? Mar 27 22:47:02 snowkrash the one that makes you happy i guess ;) Mar 27 22:47:10 next silly question :D Mar 27 22:47:28 g00s, so I have to put the callback in a service and bind this service (like in the BluetoothLeGatt example on android developers)? there's no way of doing this without services and with asynctask instead? Mar 27 22:47:40 snowKrash that depends on your budget. You're asking an awefully vague question Mar 27 22:47:51 i was rather joking :D Mar 27 22:48:12 eesh lol Mar 27 22:48:16 friday night bullshit question #1 Mar 27 22:48:30 sarcasm cannot be detected over chat Mar 27 22:48:52 btw there's the #android channel for all such discussions, if you don't know already that is :) Mar 27 22:48:53 Nimyz well startLeScan can be done in an activity/fragment. usually to ask the user a device to use. but the other stuff should all be in a service so the device can stay conencted when the UI is away, of course Mar 27 22:49:27 ashwink005: which discussions? Mar 27 22:49:39 for making jokes :D? Mar 27 22:49:48 everything related to android, but not development. Mar 27 22:49:52 lol no :P Mar 27 22:54:07 g00s, yes that makes sense. I was confused since my app also needs to communicate over TCP sockets and I'm using asynctasks for this. but I guess this wouldn't be too clever for BLE since then everytime a new connection needs to be made which is costly Mar 27 22:54:54 asynctask + tcp sockets - hmm. i'd rather do it in an IntentService Mar 27 22:56:02 I know I asked this a week ago, but is it possible to differentiate between different touch shapes? I am trying to build an app where a kiss registers differently from a finger touch. A kiss would be two lips and a bit softer than a finger press. also a different shape. Mar 27 22:56:41 I am new at android development. Is there a library I can look up that might be good at differentiating between different touch shapes and weights (harder vs softer press) Mar 27 22:57:29 yes I thought about that too but got encouraged to use asynctask after reading on stackoverflow. what would be the advantage of using intentservice over asynctask? Mar 27 22:57:40 so how can I put together a google apps for a custom aosp build? Mar 27 22:59:02 in_deep_thought you'll have to look at this http://developer.android.com/reference/android/content/pm/PackageManager.html#FEATURE_TOUCHSCREEN_MULTITOUCH Mar 27 22:59:27 Nimyz ideally networking should be done in a service also Mar 27 22:59:30 because the TCP connection only needs to happen once in maybe 5 minutes, so I thought it might be better to close the connection anyway. so I didn't really the advantage of using a service Mar 27 22:59:49 didn't see* Mar 27 23:02:37 Nimyz what type of device are you communicating with Mar 27 23:03:03 and are you really connecting, or just receiving broadcasts Mar 27 23:03:19 Bluegiga BLE113 (bluetooth) and a linux server for TCP sockets Mar 27 23:04:21 You asked me this yesterday (I had different username) but I was unsure what this meant. I connect to the GattServer, so this is connecting right? Mar 27 23:04:22 bluegiga should work fine Mar 27 23:04:45 in_deep_thought: did you get my response back then that the major/minor axis sizes in the touch event might be enough? beyond that I think you'll need to look at if OEMs provide more detailed APIs (e.g. Samsung has a bunch of different input APIs, because they're weird) Mar 27 23:05:14 groxx: yeah perfect. I was trying to remember what you had said Mar 27 23:05:17 Nimyz if you are using connectGatt then you have a connection, if you are just pulling data out of advertising packets you don't Mar 27 23:05:17 ill look into that, thanks Mar 27 23:05:19 np :) Mar 27 23:05:38 Oh ok, that's what I thought. Yes I do have a connection then Mar 27 23:05:50 they may have different touch apis because of the stylus Mar 27 23:06:08 but in general, touch screens are 1-6 points only afaik Mar 27 23:06:13 in_deep_thought: I'd be curious how well those work out for you btw, I haven't looked at them in depth. dunno if they're too flaky to be useful or something. Mar 27 23:06:26 Yes I already got it working by modifying the BluetoothLeGatt app but I was debating whether to use AsyncTask or a Threaded service. Because I thought services were for continually running "processes" Mar 27 23:06:36 groxx cool ill let you know Mar 27 23:06:38 g00s: there's a market "jazz hands" filter to require at least 10 points :) Mar 27 23:06:59 in the early days android only had support for 3 or so Mar 27 23:07:39 groxx you a musician ? Mar 27 23:08:05 Nimyz use service Mar 27 23:08:19 well, early days were probably resistive screens, yeah? those tend to cap out at 2 (reliably, at least. 3 works most of the time, but can't be guaranteed by most screens) Mar 27 23:08:36 g00s: not really. did piano when I was younger Mar 27 23:08:44 for both tcp and bluetooth? Mar 27 23:09:45 aww. "android.hardware.faketouch.multitouch.jazzhand" only covers 5. I guess it's not plural. Mar 27 23:09:49 Nimyz yes Mar 27 23:10:10 groxx ah ok, wasn't sure what you meant by jazzhand Mar 27 23:10:11 s/faketouch/touchscreen/ as appropriate Mar 27 23:10:15 saw this today looked pretty cool http://www.wired.com/2015/03/linnstrument/ Mar 27 23:10:56 g00s: I meant like this :) http://i.minus.com/i2ucSnLobwlLM.gif Mar 27 23:12:28 lol Mar 27 23:12:54 thanks, Ill look into it Mar 27 23:15:41 hey CedricBeust Mar 27 23:15:46 pounce ! Mar 27 23:16:11 Nimyz i have one service that has a list of BT clients, i have to connect to multiple at the same time Mar 27 23:16:17 g00s: Hey Mar 27 23:16:26 :) Mar 27 23:17:08 so you're using broadcasting then? Mar 27 23:17:23 no, i have direct connectiosn Mar 27 23:18:03 services are only a life cycle container Mar 27 23:18:06 Nimyz a few things to keep in mind (1) callbacks are on binder threads (2) connectGatt autoConnect=true usually does not work (race condition bug, never fixed) Mar 27 23:18:26 unless you have ipc, there's really no magic to having a service Mar 27 23:18:32 (3) service discovery is cached even if GAT service changed characteristic has notified Mar 27 23:18:49 (4) only one BLE operation can be going on at once Mar 27 23:18:57 so you have to queue them somehow Mar 27 23:20:02 Nimyz different versions of android have different #s of max (a) simultaneous connections and (b) characteristic notifications Mar 27 23:20:18 I'm not really familiar with binder threads (Ill definitely read up on it) but this means it needs to go in a service and I need to bind it from the UI thread right? Mar 27 23:20:27 Back Mar 27 23:20:36 Nimyz no this just means that the callback will not happen on one of your threads Mar 27 23:20:37 Oh man, what are you doing with binders? Mar 27 23:21:06 the binder threads are taken from a pool. so maybe once you get binder_1, another time you get binder_2, etc Mar 27 23:21:43 if you put something like Log.v(TAG, Thread.currentThread.netName()) or something in the callbacks you will see Mar 27 23:21:51 oh ok, and this has nothing to do with bound services? Mar 27 23:21:55 no Mar 27 23:22:00 kk Mar 27 23:22:07 this is the same also for startLeScan Mar 27 23:22:25 Nimyz definitely read the code for BluetoohGatt, its longish but mostly just IPC boilerplte Mar 27 23:24:41 yeah I already did multiple times :) but I was confused with on which thread the methods are run. the API doesnt seem to mention for isntance that the BluetoothGattCallback runs in binder threads Mar 27 23:25:07 google hasn't really updated the BLE docs since 4.3 Mar 27 23:25:52 CedricBeust any more adventures with kotlin on android ? Mar 27 23:25:53 is there another good source for BLE API info like this? (except IRC :)) Mar 27 23:26:07 Nimyz yeah there is one video Mar 27 23:26:29 https://www.youtube.com/watch?v=x1y4tEHDwk0 Mar 27 23:26:53 thanks! Mar 27 23:27:43 he did another video more recently Mar 27 23:28:21 cant find it atm Mar 27 23:28:48 https://www.youtube.com/watch?v=qx55Sa8UZAQ Mar 27 23:28:55 yeah I just found it :) Mar 27 23:29:13 he also has a great touch-handling video Mar 27 23:29:17 thanks, seems like they will be very helpful Mar 27 23:29:34 yeah whever he writes something i listen up. seems to know what he's doing Mar 27 23:30:12 Nimyz there are a # of bugs he does not mention though. oh well Mar 27 23:30:13 but he needs to learn to repeat questions asked during presentations, so they can be caught by the camera :) Mar 27 23:31:13 yeah better than nothing I guess. too bad they don't update their docs anymore Mar 27 23:31:30 groxx, the #1 thing all speakers need to learn. Or #2 anyhow. Mar 27 23:31:51 hey dragorn getting warmer but i see we're inf ro some snow again maybe :D :D Mar 27 23:31:56 g00s, yeah Mar 27 23:32:14 whatever; i've still got snows on the truck Mar 27 23:33:14 Nimyz next i'm going to make some kind of sleep monitoring app with my CC2650 Mar 27 23:33:28 Ive made an important design decision Mar 27 23:33:30 Google can burn in a fire. Mar 27 23:33:35 What do you think? Mar 27 23:33:53 Why won't their stupid Sign In With Google button RENDER?!?! Mar 27 23:34:48 that sounds awesome! does it work through motion detection or actually measuring brain waves? Mar 27 23:36:26 yeah it has a gyro. id like to measure temp and movement, because i seem to be very sensitive to temp being to hot - wake up easily Mar 27 23:36:43 also has a mike, so i giess i can record snoring :D :D Mar 27 23:37:19 haha Mar 27 23:37:36 cool project, and you wear it around your wrist? Mar 27 23:37:38 we have a friend's dog staying with us for a few days... her snoring sounds almost identical to my gf's snoring, so now I'm getting stereo... Mar 27 23:38:28 You should remix your girlfriends snoring and set it as your ringtone for when she calls. Mar 27 23:38:32 Seems like a fun thing to do. Mar 27 23:38:54 g00s, is there an "official" android BLE forum? Mar 27 23:51:06 Apparently someone was looking at the rendering thing last October. Mar 27 23:52:36 Anthaas still waiting on rendering a recyclerview in the preview Mar 27 23:53:19 memorion: It seems that with the Sign In button, they keep having rendering problems, fixing them, updating, and having rendering problems again. Mar 27 23:53:38 Anthaas https://code.google.com/p/android/issues/detail?id=72117 "should be fixed in the next version" mar 11 Mar 27 23:55:45 hello? Mar 27 23:56:02 i have a question about listview and recyclerview if someone could help Mar 27 23:58:35 tmidao: go ahead and ask, you might trigger keywords for someone, or anyone who recognizes the problem but doesn't self-identify as an uber-listview-expert could help Mar 27 23:59:11 awesome. so i'm trying to set the color of a button in my list item. Mar 27 23:59:27 however, when i set the color, every n button is automatically set to that color Mar 27 23:59:42 i get the recyclerview and listview recycle views but i don't get how to fix it Mar 27 23:59:49 memorion: Only took nearly a year. Mar 28 00:00:25 Are there specific cases where the button should a given colour? Mar 28 00:00:32 Anthaas and still not fixed Mar 28 00:00:34 tmidao: make sure you also set the "original" value in the other case. otherwise, when the row gets reused, it's already set to the other color, and nothing will clear it. Mar 28 00:00:45 it's like this. i set button a to a color, button b, c, and d are fine. but then button e is set to that color. Mar 28 00:00:54 memorion: Oh woops, I missed the date - has anyone updated that bug page? Mar 28 00:01:13 the button should be the color when the user taps on it or when the data is querying matches Mar 28 00:01:36 Anthaas closed on march 11 and status FutureRelease since then Mar 28 00:02:05 tmidao: You sound like you want to add listeners to your Buttons in the adapter? Mar 28 00:02:32 groxx: what do you mean "set the 'original' value? the value only changes when the button is clicked Mar 28 00:02:34 tmidao: I'm guessing that a,b,c are on screen, d and e are off-screen, and e gets a's color when it's scrolled into view? Mar 28 00:02:47 memorion: https://code.google.com/p/android/issues/detail?id=77241 Getting a bit further than mine, although I have starred it now, so at least there are two stars. Mar 28 00:02:51 Anthaas: yes. is that bad? Mar 28 00:03:12 tmidao: Not at all, just something you need to code in. Mar 28 00:03:26 groxx: precisely. both recyclerview and listview reuse the button which is why e get's a's color Mar 28 00:03:45 and i'm at a complete loss on how to go about fixing it. Mar 28 00:03:52 post some code Mar 28 00:04:10 tmidao: yep. so you need to keep track of which _positions_ need to get the alternate color, and set (or clear) the color for every view, because "a" could be reused for any other row. Mar 28 00:04:38 Anthaas: this is the code for the recyclerview. it's super messy though. https://gist.github.com/fadelakin/325926881d895298fb0e Mar 28 00:04:40 tmidao, what about setting a SparseIntArray or something that holds the position and color value for each item Mar 28 00:05:18 Is it possible to pause the mediaplayer buffering? Mar 28 00:05:30 pmarino, someone told me to do that with a SparseBooleanArray but I have no idea how to do it. Like I'm terrible to programming and this is my first big project Mar 28 00:07:03 Anthaas, this is the code for the listview. it's exactly the same as the recyclerview code with some caveats because i wasn't sure which one to use since they both kept giving me the problem. https://gist.github.com/fadelakin/d1841d0c8ad0f778fd2a Mar 28 00:07:55 groxx: how would i keep track of the position? Mar 28 00:08:46 tmidao, i'll see if i can find a link, but theres a pretty solid example in the Android Support V7 samples Mar 28 00:09:14 pmarino, thanks so much. any help i get right now is greatly appreciated Mar 28 00:10:14 tmidao: the reason someone suggested SparseBooleanArray is because it's an efficient "key => value" storage object. so you can .put(position, true), and later .get(position) will return "true". so you'd .put(position_a, true) when you change "a" to the alternate color, and in bindView you _always_ check "if ( .get(current_position)) { // set to other color Mar 28 00:10:14 } else { // set to normal color }" Mar 28 00:12:51 groxx: hmmm, i get what you're saying. i just can't think of a way to take what you're saying and implement it. Mar 28 00:13:26 the only part i'm passing in my position, is to get the corresponding item in my list of objects Mar 28 00:13:37 i don't know if i can pass in that same position Mar 28 00:16:50 so translucent status bar is only possible v19 + Mar 28 00:16:52 ? Mar 28 00:16:54 Is it possible to do this without a library? https://github.com/ongakuer/CircleIndicator Mar 28 00:17:00 tmidao, here is a sample i just found for you: Mar 28 00:17:03 tmidao, http://goo.gl/wrEZQA Mar 28 00:17:10 Muchoz: oh course, how do you think the library was made? Mar 28 00:17:17 tmidao, check down in the adapter section Mar 28 00:17:22 lasserix, I mean an easy built-in one. Mar 28 00:17:35 no then there would be no reason for a library Mar 28 00:17:51 pmarino, thanks. i'm looking through it right now Mar 28 00:18:43 tmidao, you should get the basic idea in there. they're using a hashmap in that scenario, and you could probably get away with a SparseBooleanArray or something Mar 28 00:23:33 Hey can anyone help me with ViewGroups? Mar 28 00:24:07 ashwink005: what about them? Mar 28 00:26:03 if I inflate a View with inflater and set the rootView as my custom ViewGroup, then should I add the View again to the viewGroup using addView(view)? Mar 28 00:26:31 will that cause a cyclic redundancy? Mar 28 00:27:47 Oh this is taking the piss Mar 28 00:27:53 The Google Sign In Button is showing. Mar 28 00:27:56 Guess when? Mar 28 00:28:58 never? Mar 28 00:29:01 always? Mar 28 00:29:04 when... you deleted `visibility="gone"` ? Mar 28 00:29:06 ifRoom? Mar 28 00:29:06 When I thought "Sod this..." and added the Facebook lib to my app build.gradle. Mar 28 00:29:11 Synced Mar 28 00:29:13 and voila Mar 28 00:29:56 i dont think i could possibly live without ideaVim in androidstudio Mar 28 00:30:05 workflow++;\ Mar 28 00:31:33 anyone knows about addView(View) in ViewGroup? please help :) Mar 28 00:37:12 don't make it a cycle Mar 28 00:37:14 duh Mar 28 00:37:47 lol I'm asking whether it is required or not Mar 28 00:37:55 nm.. solved it :) Mar 28 00:38:25 If only that shitty library would work. Mar 28 00:38:45 I'm literally copying their sample and nothing is showing. Mar 28 00:41:42 I'm trying to draw a cirrcle Mar 28 00:41:44 *circle Mar 28 00:41:50 and then put it into an imageview Mar 28 00:41:51 pfn are you referring to afzal's rx stuff? that conversation was 2 hours ago Mar 28 00:41:59 lol Mar 28 00:42:00 no, ashwink005 Mar 28 00:42:01 why is Mar 28 00:42:01 however, it always comes out with jagged edges Mar 28 00:42:21 pfn you meant a "circle"? Mar 28 00:42:22 I figuer this is because I convert my canvas to a bitmap. Is there a way to apply a canvas to an imageview without one? Mar 28 00:42:34 Afzal, no Mar 28 00:43:02 "The Facebook Login button that comes with our SDKs is very easy to integrate and includes built-in education...." - I dont think I've ever read something so pretentious since sitting in #Java Mar 28 00:43:40 oh boy, two kotlin updates in one day Mar 28 00:43:48 nvm Mar 28 00:43:48 ol Mar 28 00:43:49 Afzal what was that ? Mar 28 00:44:10 any android BLE devs around? Mar 28 00:44:11 I thought there were two updates for Kotlin, but the second one was just the Android Kotlin plugin update Mar 28 00:44:18 tralamazza could help a little Mar 28 00:44:40 Afzal: 2 words: long writes Mar 28 00:44:45 Afzal yeah i do see 0.11.91.1 is kinda new Mar 28 00:45:03 tralamazza don't know what that means, I guess it's outside the "little" scope :p Mar 28 00:45:09 tralamazza long, like time or long as in size :| Mar 28 00:45:22 g00s: more than 20 bytes Mar 28 00:45:25 or long as in integer Mar 28 00:45:39 groxx, pmarino, even with the sparsebooleanarray, every n item still gets set to the color. i don't know if i'm doing this right Mar 28 00:46:00 tralamazza come on, thats right on SO http://stackoverflow.com/questions/24135682/android-sending-data-20-bytes-by-ble Mar 28 00:46:22 * Afzal *thinks of Neo* I know RxJava Mar 28 00:46:39 tmidao, are you initializing array with false values to start? Mar 28 00:46:43 pfn: thanks! Mar 28 00:46:45 g00s: ? Mar 28 00:47:00 pmarino, nope. i should probably try that Mar 28 00:47:44 g00s: that is not a long write. Mar 28 00:48:32 g00s: the BLE spec has a builtin mechanism with 2bytes offset in it. In our tests android always sets this offset to zero Mar 28 00:49:08 oh i never saw that, so you are saying i have some new fun bug to explore :D Mar 28 00:49:55 What do y'all folks think of FB's new fresco library save for library size? Mar 28 00:50:28 g00s: you want to look at beginReliabeWrite Mar 28 00:50:53 JakeWharton thinks its a pile of shite Mar 28 00:50:58 or something along those lines Mar 28 00:50:59 why so? Mar 28 00:51:08 Poorly implemented I think he said Mar 28 00:51:21 i've been seeing a bunch of new libraries pop up like glide and im curious how they compare to picasso Mar 28 00:51:35 99% devs think code they didn't write is shit, news at 11 Mar 28 00:51:37 Eh, Picasso is as easy as piss to use. Mar 28 00:52:00 'water is wet' Mar 28 00:52:12 True, and I appreciate that Jake is likely to be biased, but without blowing unneeded smoke up his arse, his libraries are bloody useful and bloody easy to use. Mar 28 00:53:24 So now the Facebook Login button isn't showing - I wonder if I add the Twitter one it will work... Mar 28 00:53:25 g00s: that SO is right about the delay, we also found those magical 200ms between calls to work well Mar 28 00:53:55 tralamazza hmmm ... i queue them with 0 delay it works fine ... Mar 28 00:54:13 wow, Android Studio is so confused with RxJava Mar 28 00:54:13 are you saying you still needed delay between them even if queued ? Mar 28 00:54:24 thinks variables don't exist, goes slow etc Mar 28 00:55:20 g00s: yup, I've a nrf51 on gdb, checking the incoming events. Monday I'll have a sniffer and check the packets, but so far this delay is necessary Mar 28 00:55:21 perhaps you're having scope problems rather than AS problems. i've never seen this before Mar 28 00:56:06 Afzal i've noticed AS gets very confused / slow as you add anonymous inner classes to AICs Mar 28 00:56:38 g00s: also, different phone vendors, different results. We had some trouble with nexus 5 running CM12. this android ble stack is a nightmare Mar 28 00:56:59 tralamazza if you look through the code, i have to wonder if they even knew java Mar 28 00:57:07 Does Hugo have a gradle link? Mar 28 00:57:11 i mean, thats just the java crap which hardly even does anything Mar 28 00:57:12 compile* Mar 28 00:57:30 g00s I see, never noticed that before maybe because I don't usually write anonymous classes this deep Mar 28 00:57:54 Afzal but ... eclipse got goofy too ... one misplaced } and all shit broke loose Mar 28 00:58:37 tralamazza which were your worst phones, just curious Mar 28 00:58:42 heh Mar 28 00:58:59 g00s haha, yeah I've been noticing that quite a bit with AS, hopefully this stuff gets better. It's pretty annoying when the IDE keeps suggesting weird things and you're not done writing the instruction Mar 28 00:59:20 "oh, change your method return type to instead?" Mar 28 00:59:28 no jerk, wait, I'm not done yet Mar 28 01:00:02 g00s: we have only 3 phones, 1+1 and S4 (CM12) working perfectly, nexus 5 stock working, nexus 5 CM12 not Mar 28 01:00:21 i really need to figure this out ... when i type "foo(" ctrl-P i get a list of possible signatures, but unlike eclipse i can't select one and have it generate the skeleton Mar 28 01:00:44 tralamazza ah, ok. yeah CM ... dunno Mar 28 01:00:58 g00s: well CM12 on hammerhead, S4 works Mar 28 01:01:01 g00s code templates? Mar 28 01:01:14 Afzal do you know how to do it ? Mar 28 01:01:38 like when i press ctrl-p, i'd like to select one of the signatures, and just have it make the boilerplate Mar 28 01:01:41 g00s can you paste when you generate by writing that in Eclipse? Mar 28 01:02:03 How on Earth do I add JakeWharton's Hugo to my AS project? Mar 28 01:02:17 Anthaas probably like any other JakeWharton project :| Mar 28 01:02:22 gradle line ? Mar 28 01:02:27 Cant find the Gradle line >.< Mar 28 01:02:35 ugh Mar 28 01:02:46 Like last time, Im probably on the wrong bloody site haha Mar 28 01:02:49 One sec :( Mar 28 01:02:53 Anthaas https://github.com/JakeWharton/hugo Mar 28 01:02:58 classpath, apply plugin Mar 28 01:03:14 tralamazza one thing that got me in trouble was not realizing BluetoothgattCharacteristic is operated on by multiple threads without any kinds of synchronization Mar 28 01:03:27 specifically its value buffer Mar 28 01:03:33 g00s go to AS settings -> Editor -> Live Templates Mar 28 01:03:40 seems pretty easy to create one Mar 28 01:03:42 Afzal ok Mar 28 01:03:49 oh i see Mar 28 01:04:37 Ahhh, Im a knob, was adding to the wrong gradle file haha Mar 28 01:04:39 Thanks Mar 28 01:04:54 * g00s keeps in mind Anthaas is working on PhD Mar 28 01:05:01 :D Mar 28 01:05:09 g00s: one issue I'm seeing is simply certain events that don't bubble up, like onCharacteristicWrite Mar 28 01:05:26 Ive not slept haha Mar 28 01:05:30 g00s: you can see it in the logger, down there in the Gatt, but not in the GattCallback Mar 28 01:05:36 I have a mother of a tooth ache Mar 28 01:05:43 tralamazza that sucks badly, i haven't seen that yet Mar 28 01:05:44 No dentist can take me in. Mar 28 01:06:06 tralamazza i'm using a 2013 n7 which has been ... ok so far :| Mar 28 01:06:14 stock 4.4.4 Mar 28 01:06:38 did they change the ble stack for L? Mar 28 01:06:45 but if there is no compensating callback then my idea would need some fine tooning Mar 28 01:06:53 they made changes but ... same stack Mar 28 01:07:00 still bludroid Mar 28 01:07:19 but I can see a bluez folder in there too Mar 28 01:07:40 "Anthaas: Ahhh, Im a knob" Mar 28 01:07:44 Just to confirm guys, this Hugo thing goes into the Project build.gradle right? Mar 28 01:07:44 * JesusFreke turns Anthaas up to 11 Mar 28 01:07:45 tralamazza can you post any of your code somewhere, i'm curious still whether this is self inflicted or not :) Mar 28 01:08:08 * Anthaas goes more nuts than Ozzy Osborne on holiday in Columbia Mar 28 01:08:17 Crazy Train ! Mar 28 01:08:21 ozzay and trains man Mar 28 01:08:27 I might listen to Ozzy actually. Mar 28 01:09:10 g00s: I don't have the java code, I'm on the nrf51 side. Monday I can talk to the java dev and paste it Mar 28 01:09:36 g00s: if you are still interested that is Mar 28 01:09:56 tralamazza sure. i want my ble code to be as reliable as possible so, that includes learning what others had to do Mar 28 01:10:11 programming BLE is like empiral endeavor, you can't go by what the docs should say happens ... Mar 28 01:10:22 you have to try it and see what really happens :* Mar 28 01:10:35 g00s: so the standard BLE write does not have a confirmation Mar 28 01:10:51 hmm, i think by default it does Mar 28 01:11:04 g00s: you want to use the reliable write for that, which actually sends a different BLE packet called a request for read/write authorization Mar 28 01:11:14 g00s: that is also how you do long writes Mar 28 01:11:33 g00s: but android doesn't seem to do that, like I mentioned before, the offset is always zero. Mar 28 01:12:05 g00s: so I implemented a poor man's long write on top of single reliable calls, that means only 16 bytes of payload Mar 28 01:12:11 tralamazza when i tried, its not WRITE_NO_RESPONSE Mar 28 01:12:41 ok, now i'm getting confused. i have to look at this again Mar 28 01:13:09 tralamazza did you have problems with connectGatt autoconnect=true Mar 28 01:13:46 g00s: no idea about the connect. I can ask around Mar 28 01:14:20 ok no worries. well i have to look at the write thing this weekend, because the device i use tunnels a protocol through 2 chars which are 128 bytes Mar 28 01:14:34 one char is read buffer, the other write buffer Mar 28 01:14:46 g00s: do you know any sort of "disconnect all"? one that can be called with a connection object Mar 28 01:15:09 tralamazza disconnect all bt devices ? Mar 28 01:15:19 There we go Mar 28 01:15:20 Fixed Mar 28 01:15:23 I should sleep. Mar 28 01:15:23 g00s: yeah, it would be useful for debugging. Mar 28 01:15:56 tralamazza no i dont Mar 28 01:16:07 you can query the bt adapter for devices in a certain connection state Mar 28 01:16:20 but as for disconnecting them ... Mar 28 01:17:04 br/edr side you would close the socket, on ble side you would disconnect() and close() the gatt Mar 28 01:17:31 heh you could recycle the BT adapter XD Mar 28 01:18:46 So does anyone know about UnknownHostExceptions? Mar 28 01:18:47 huh. I wonder who decided `rand()` was a good decision for "what order should debugger variables be shown in" http://cl.ly/image/2l1D1w09120R Mar 28 01:18:59 tralamazza so are you writing formware on the nRF51822 then ? Mar 28 01:19:03 *firmware Mar 28 01:19:04 g00s: yup Mar 28 01:19:10 oh nice what tools ? Mar 28 01:19:18 gcc :) Mar 28 01:19:29 what's a 'modern' android stack nowadays? i have gradle, Android Studio, any other libs i should be aware of? Mar 28 01:19:31 heh, i think nordic has some that are free if its under a size Mar 28 01:19:48 puddy: probably OkHttp at a minimum? Mar 28 01:19:58 g00s: you mean editor? nope, nordic has a free SDK Mar 28 01:20:15 g00s: which recently got much easier to download and distribute Mar 28 01:20:26 i'm not too familiar with the peripheral side. nice Mar 28 01:20:30 groxx good point. I also think I need to use Genymotion for emulation. Mar 28 01:20:50 puddy: eh, personally I don't use it. the built-ins are good. Mar 28 01:20:55 I slightly dabbled into android dev a year ago but got no further than textbook examples Mar 28 01:21:01 g00s: I'm writing for both, periph and central. Mar 28 01:21:12 because I'm getting an unknown host on en.wikipedia.org Mar 28 01:21:27 tralamazza there are a lot of bugs on the android side :| i guess you're finding them though Mar 28 01:21:35 and I have internet permissions Mar 28 01:21:51 tralamazza stupid shit, like if you connect to 2 devices quickly / same time ... the wrong callbacks occur Mar 28 01:22:04 like onServicesDiscovered is called for the wrong device Mar 28 01:22:11 clearly stuff is very fucked up down there Mar 28 01:22:40 so yeah "put delays between all the things" sounds about right XD Mar 28 01:22:52 g00s: one problem is clearly the vendor blobs in android Mar 28 01:23:18 tralamazza did you already do this project on the iOS side ? Mar 28 01:23:34 g00s: I hope to test also this Monday Mar 28 01:23:57 the iOS stuff has a decent reputation comapred to android in this area Mar 28 01:24:29 nice of them to even have a peripheral design guidelines doc Mar 28 01:24:31 g00s: but it won't matter, if android cannot do long writes Mar 28 01:25:02 tralamazza ok, i'll have to take a look at it more this weekend. maybe we compare notes. Mar 28 01:25:48 g00s: this question pops up from time to time on the nordic forums, always the same answer "implement yourself" Mar 28 01:28:09 Damn Mar 28 01:28:13 I love this Butterknife library Mar 28 01:28:44 Anthaas: If you like ButterKnife, you're going to like Kotlin even more :) Mar 28 01:28:57 CedricBeust: You cannot tempt me, foul beast! Mar 28 01:28:58 :P Mar 28 01:29:19 It's like ButterKnife without the knife and all the butter Mar 28 01:30:14 problem is when the butter is hard, the ButterKnife doesn't work so well Mar 28 01:30:26 unless you have one of these http://www.businessinsider.com/butter-knife-is-wildly-popular-on-kickstarter-2014-8 Mar 28 01:30:28 :D Mar 28 01:30:36 ButterKnife 2: MicrowavedButter Mar 28 01:31:04 can anyone tell me how to make an attributeSet from an XML file in code? Mar 28 01:31:11 lol Mar 28 01:31:17 Isnt that essentially a lemon zester? Mar 28 01:32:31 I'll probably try Kotlin once its kicked off a bit more. Once a few more people have tried it and are singing its praises and actually using it and what not. Mar 28 01:36:21 Yeah, the life of early adopters is so hard Mar 28 01:36:48 tralamazza did you see https://code.google.com/p/android/issues/detail?id=158619 Mar 28 01:37:06 g00s: yup that's not the only one about long writes Mar 28 01:37:52 "The first issue we encountered is that the method "onCharacteristicWrite" of the callback is not called inside a reliable write as it is mentioned in the documentation (is it a bug ?)." Mar 28 01:38:18 i swear, this shit is just inches away from unworkable garbage Mar 28 01:39:31 g00s: that's partially true, we have it working inside a reliable write, but it needs the magical delay. I will ask the dev for a short version of the code and make a blog post Monday Mar 28 01:39:53 I'm tackling my own weird behavior :| because of an occasional behavior on rotation, where you get a layout pass with [portrait width, landscape height] dimensions, my gridview thinks its views need to be ~12x12 pixels, and allocates HUNDREDS of them in an instant. Mar 28 01:40:10 tralamazza oh nice, i'll be interested to see the blog post. do you have other blog posts about bt ? Mar 28 01:40:16 CedricBeust: I think that is pretty much it - I'd rather use a product/service/mechanism that works rather than having to iron bits out. Mar 28 01:40:35 g00s: nope but I should do one about the nrf, specially the bugs Mar 28 01:41:33 I really don't understand Mar 28 01:41:42 my views show up in hierarchy viewer, but on device, the views are invisible Mar 28 01:41:46 * pfn headscratches really fucking hard Mar 28 01:42:55 brings new meaning to "[mind if I] pick your brain?" Mar 28 01:43:04 tralamazza also funny, the BT sig group has an 'application accelerator' with some android samples / code, they dont handle any of these issues .. if they only knew :) Mar 28 01:43:39 oh, it's invisible Mar 28 01:43:43 lol Mar 28 01:43:59 xD Mar 28 01:44:10 g00s: what group is that? Mar 28 01:44:28 pfn thought you may have found a bug in scaloid (missing detail) Mar 28 01:44:38 tralamazza the BT sig group ? Mar 28 01:44:45 huh? no, and why would you even think this is related to scaloid? I don't use it at all Mar 28 01:44:58 i thought you did oh well Mar 28 01:45:32 tralamazza https://developer.bluetooth.org/Pages/bluetooth-smart-developers.aspx Mar 28 01:45:51 g00s: ah I thought that was some android ble specific group. Mar 28 01:46:01 don't bother, i looked through it to see if they did anything special to iron out the rough spots - nope Mar 28 01:50:58 I am switching to AS and I noticed it is complaining about my using openjdk vs the Oracle jdk, does anyone know if this is a "real" issue? Mar 28 01:51:29 it is not an issue Mar 28 01:51:42 thanks :) Mar 28 01:52:20 I hate 3rd party libraries... Mar 28 01:53:57 I hate how advertising is so random... Mar 28 01:57:34 random in terms of not being related to your app? Mar 28 01:58:31 pfn: I hate how 100g beef jerky is so expensive yet you can buy a decent steak that weighs a lot more for relatively cheap. Mar 28 02:00:23 because 100g of beef jerky takes like 1000g of beef to make Mar 28 02:00:46 Yeah, but I'd rather eat a steak :( Mar 28 02:00:56 then eat steak Mar 28 02:01:04 I did Mar 28 02:01:12 How bad are nested layout_weights for performance? Mar 28 02:01:22 Muchoz, they suck Mar 28 02:01:34 I hate the way some people use perfumed anti-static chemicals in their driers. Mar 28 02:02:09 alright, got my pile of bugs checked in Mar 28 02:02:12 * pfn go & Mar 28 02:02:17 Or how people think using e-cigarettes is fine because its not an actual cigarette... Mar 28 02:03:06 I dont care whether people smoke or not, just don't try justifying it to yourself as giving up smoking when the addiction is the same. Mar 28 02:03:17 Good night all! Mar 28 02:03:24 pfn, ar e Mar 28 02:03:37 pfn, is a depth of 2 bad? Mar 28 02:04:14 So with geofencing, the geofences I setup are only valid for the lifecycle of my application? Do I have to keep a persistent notification if I want to always know when a person is in or outside my geofence? Mar 28 02:07:12 pfn, I found an alternative solution. Thanks for the heads up though. Mar 28 02:07:57 Hello. I have most of my ListViews filled using URL -> AsyncTask -> JSON -> ListArray -> Adapter scheme. This is all inside onCreateView of my fragments. But I want to incapsulate this functionality and reuse it, as mostly it is only the request parameter that changes. Is there a way to include that scheme, say, into a class extending ListView or BaseAdapter so that I don't have to reimplement everything in each fragment? Maybe I should extend somethi Mar 28 02:16:00 Hey if I add views to a ViewGroup programmatically, how are the Views drawn? what governs the order? Mar 28 02:16:09 anyone please help :) Mar 28 02:17:40 Been struggling for a while.. noob here, if anyone can point to a nice link that'll be great Mar 28 02:21:24 creitve: Are you calling a a rest api or something similar for your json? Mar 28 02:22:04 desmin88: Yes, but I don't want to use libraries for that as I'm in the learning process Mar 28 02:22:23 thats ignorant, use http://square.github.io/retrofit/ Mar 28 02:22:58 anyone! someone! Mar 28 02:23:32 Carbonflux: Right? I use minimal detergent w/o optical brighteners and no fabric softener of any kind, hang dry everything. Mar 28 02:23:32 actually using api IS part of the learning process, it seems like most of the stuff people do now is leveraging various apis. Mar 28 02:23:49 ^ Mar 28 02:24:41 Theres no value IMO in learning how to use the PITA and long-winded apis such as asynctask for 'learning' purposes when there are libraries like retrofit or the whole sleuth of others that exist to make your life easier s Mar 28 02:25:32 there is always value in learning fundamentals Mar 28 02:25:46 ashwink005, you should just read the documentation :) Mar 28 02:25:46 async task isn't a fundamental though Mar 28 02:25:58 pfn: thats exactly what i was gonna say Mar 28 02:26:40 really asynctask is just bad and if you think you need one theres probably a better way to do it Mar 28 02:27:03 Carbonflux: there's nothing written there.. it just says they are added to the ViewGroup tree. No mention of how draws are handled Mar 28 02:27:15 Anyone have recommendations on a VM to use to test android apps besides the emulator built into android studio? Mar 28 02:27:22 if you want to learn properly for android, learn java well, read jcip, and learn about UI toolkit edt Mar 28 02:27:27 ps-aux, a device Mar 28 02:28:05 i have several devices, thats not my goal. This is for security testing and i'd rather test apks on a VM vs an emulator Mar 28 02:28:10 oh Mar 28 02:28:17 i misunderstood, my mistake Mar 28 02:28:22 and i'm trying to not use any security specific tools like droidbox Mar 28 02:30:09 what kind of security testing are you doing? Mar 28 02:30:17 Okay, thanks for the advice. Mar 28 02:30:33 ashwink005, I don't know that off the top of my head to be honest, my assumption is that is dependent on how the drawing function is defined, something you can overload as well, I doubt there is a simple answer to other than the obvious control flow for a view tree structure which would by default be dependent on the order things are added. Mar 28 02:31:06 its kind of a basic idea in GUI really. Mar 28 02:31:47 I find it hard to believe there is no documentation however, perhaps you need to look at the parent class or a general overview of view control flow. Mar 28 02:32:03 Yeah I thought so too. Mar 28 02:32:24 in the end its going to be a "virtual" draw function which is defined by default Mar 28 02:32:31 I mentioned the ViewGroup.addView method defined in the android reference pages Mar 28 02:32:32 testing what an apk does when ran Mar 28 02:32:39 yeah Mar 28 02:33:07 Thanks man.. I'll try permuting the add sequence of child views and see what happens Mar 28 02:33:48 did you try searching stack overflow? Mar 28 02:33:55 yup Mar 28 02:34:01 ya, thats what I would do, just try and see. Mar 28 02:34:43 ps-aux: you can install a x86 android on a virtualbox vm Mar 28 02:36:22 which is basically what genymotion is, fwiw Mar 28 02:36:49 yup Mar 28 02:36:51 plus their (very useful! though I don't use them) modifications Mar 28 02:37:05 except they got really weird with licensing Mar 28 02:37:27 yeah, which is part of why I just use the normal emulators :) Mar 28 02:38:28 for a while I had to juggle haxm and virtualbox's hv-t (ht-v? something? their kernel extension for virtualizing) things because they couldn't run at the same time, and genymotion was the only thing that would let me emulate android + run our server VM. but then haxm updated. Mar 28 02:51:44 So with geofencing, the geofences I setup are only valid for the lifecycle of my application? Do I have to keep a persistent notification if I want to always know when a person is in or outside my geofence? Mar 28 02:54:01 poutine: read some docs Mar 28 02:54:13 desmin88, I've read the pages on the geolocation Mar 28 02:54:17 err geofencing Mar 28 02:54:28 desmin88, that was a terribly unhelpful answer as well Mar 28 02:54:44 im reading the geofence docs right now Mar 28 02:54:53 i was gonna follow it up with the relevant information Mar 28 02:55:26 https://developer.android.com/training/location/geofencing.html Mar 28 02:55:35 There is absolutely nothing on that page that answers my questions Mar 28 02:55:35 im there Mar 28 02:56:52 I'm at the point where I have a working geofence setup in my application, and I get transition notifications, however this is not persisting beyond my application's lifecycle Mar 28 02:57:11 you need a service probs Mar 28 02:57:27 desmin88, You really shouldn't be trying to help people in here when it's obvious you don't know what you're talking about Mar 28 02:57:33 wow Mar 28 02:57:34 dick Mar 28 02:57:35 services do not magically have an unlimited lifecycle either Mar 28 02:58:12 well it's true, first you RTFMed me for something not explained in the page about the specific functionality I'm asking about, which I'm guessing is due to your inexperience in the subject matter as well, and not understanding my question Mar 28 02:58:20 then you go and give a solution that is just nonsensical Mar 28 02:58:33 heh Mar 28 02:59:24 tralamazza read longs work OK for you guys? **** ENDING LOGGING AT Sat Mar 28 02:59:58 2015