**** BEGIN LOGGING AT Thu Jan 21 02:59:59 2016 Jan 21 03:06:52 anyone else having issues creating fragments in AS with the new->fragment menu option? Jan 21 03:07:12 gradle goes haywire if i do Jan 21 03:11:01 Nope. Try doing it manually. Jan 21 03:11:14 Create a plain class, extend Fragment Jan 21 03:12:45 well yea, just odd that the gradle build after it gets messed up. Adds a bunch of "compile" strings to my build.gradle Jan 21 03:14:27 yeah, i new file everything without wizards Jan 21 03:14:36 (plain file) Jan 21 03:22:28 shmoooz, no Jan 21 03:22:34 shmoooz, and no Jan 21 03:22:52 shmoooz, the user will do what I want them to do Jan 21 03:32:08 http://imgur.com/cPG9M43 antithesis, starting to "mix" material design and skeuomorphism :') Jan 21 03:52:10 and some 8bit chic Jan 21 03:54:46 http://i.imgur.com/uZfNA0j.png is there any way I can hide or move these buttons on the Android monitor in Android Studio? Jan 21 03:58:43 adq, what are you using to get the guidelines? Jan 21 03:58:50 or is that just photoshop Jan 21 04:03:37 adq is that your app ? Jan 21 04:04:39 yeah, a wip Jan 21 04:05:49 looks like you put a lot of love into it Jan 21 04:06:02 always Jan 21 04:07:00 still many details to fix and bigger to add (see some triangle in the disto routing algo are not centered vertically properly), there is a displacement which appeared among the routing node below the big knobs (it was centered before), etc Jan 21 04:07:54 adq how does it look on tablet? :D Jan 21 04:08:06 same, mainly, it's fully scalable Jan 21 04:08:14 zero bitmap except for the font of label Jan 21 04:08:45 and - + :p Jan 21 04:12:49 #kali-linux Jan 21 04:12:52 g00s, http://imgur.com/XsH4rZq that's on a cheap physical 7" tablet Jan 21 04:12:52 Whoops. Jan 21 04:13:18 Autopilot channel join typing, yay, Jan 21 04:13:45 zillion of things to fix... anywa Jan 21 04:15:42 adq nice. this is the processor i sold recently http://www.tcelectronic.com/g-force/ Jan 21 04:15:59 funny, how the real world equipment has LCD with digital building blocks Jan 21 04:15:59 woo rack Jan 21 04:16:12 and the digital apps have skeu UI :D Jan 21 04:16:18 eheh Jan 21 04:19:03 liuwenhao, i don't think so Jan 21 04:20:39 That's unfortunate. Maybe I should use pidcat Jan 21 04:21:30 yeah but then you lose the functionality of clicking an error in logcat to jump directly to the corresponding line Jan 21 04:22:09 i'm still waiting they add support to "multiple logcat"... Jan 21 04:22:28 it's a pain with multiple devices, android wear & stuff Jan 21 04:32:42 adq what would "multiple logcat" look like ? Jan 21 04:32:57 a merging of all the logcats into 1 stream ? Jan 21 04:32:57 ??? Jan 21 04:33:03 no, one window per device logcat Jan 21 04:33:08 oh Jan 21 04:33:09 with n-windows possibility Jan 21 04:33:23 and you could put them side by side or vertically stacked or whatever Jan 21 04:33:37 you canprobably do that with multitail if you were determined Jan 21 04:33:46 you can do that outside of android studio Jan 21 04:33:53 it has adb support highlighting, but nothing fancy like what pidcat does Jan 21 04:34:01 but the purpose of an ide is to integrate these things i guess :p Jan 21 04:34:49 yes, to integrate N things into one thing much slower than N separate things :D Jan 21 04:34:59 they better fix things anyway, instead of adding more stuff which breaks half of the previous ones Jan 21 04:42:11 i want to use this library to create a dialog that appears from bottom , when i click a FAB . I want that same FAB to move up as the dialog appears from the bottom of the screen . and as soon as user clicks the FAB , i want to do some stuff , and the FAB will close the dialog sliding down , and positioning it to same position , i want to know how to Jan 21 04:42:11 implement this Jan 21 04:46:08 anyone ? Jan 21 04:52:55 snackbar Jan 21 04:55:55 ^ yeah, look how the snackbar does it Jan 21 04:57:52 hehe , both of your username has random letters ,. pfn adq Jan 21 04:58:38 lol? Jan 21 04:59:30 adq : can i add a form inside snackbar? Jan 21 04:59:56 you should not, just look how the snackbar handle the moving of the fab Jan 21 05:10:43 I'm trying to add a feature to an app that interfaces with a specific line of NFC tags, and I'd love some pointers on how to approach this. I want to be able to send custom scripts to users that will be read and executed by the app. Ideally, users could even write these scripts themselves. Jan 21 05:13:36 feh_: damn Jan 21 05:13:37 that's too generic to be answered properly, but i guess you need to implement a wrapper around apdu commands which some inputs are being feed by the user Jan 21 05:13:40 oops Jan 21 05:13:44 not this window, sorry Jan 21 05:15:25 adq: Sorry, yeah, I should have been clearer. I'm mostly looking for advice on *how* the inputs should be fed by the user. Jan 21 05:15:53 edittext? :D Jan 21 05:16:32 Is it reasonable to just send a user a file in an email and have some intent-filter in the Android manifest that can accept that file? Jan 21 05:16:52 I've read that this seems to be poorly supported Jan 21 05:17:18 And that direct user interactions with files in general is discouraged Jan 21 05:17:56 well for that idk, but you should decompose your problems into subproblems in this case Jan 21 05:18:08 Okay, that's the main subproblem I'm worried about. Jan 21 05:18:12 like reading from file --> file comes from email --> etc Jan 21 05:18:22 Oh, I see Jan 21 05:18:36 so then you just have to focus first on reading the thing from a file, then you can attack the problem of fetching a file from an email, etc Jan 21 05:19:11 There's no generalized way for users to provide large amounts of external input to an activity? Jan 21 05:19:26 There are tons of easy ways for devs to do it Jan 21 05:19:34 Or anyone with adb Jan 21 05:19:39 But I'm looking for something simpler Jan 21 05:19:44 there is, from the simple file read() function to the contentprovider via other means Jan 21 05:48:30 love it when an issue was closed in 2014, status FutureRelease Jan 21 05:48:45 https://code.google.com/p/android/issues/detail?id=42601 Jan 21 05:51:26 Closing unfixed bugs is always the sign of a cruddy organization Jan 21 05:52:20 In the Android Dev Summit videos they said they closed a lot of old bugs "because we're not going to look at them" Jan 21 05:53:07 yeah, i remember that. so what happened was, a bunch of BT bugs never got looked at - and are still there Jan 21 05:53:17 http://tinyletter.com/programming-beyond-practices/letters/the-sad-graph-of-software-death Jan 21 05:58:36 which one is best tool to create app demo Jan 21 05:58:45 I actually like support work ... give me a bug backlog and a codebase and I'll kill Jan 21 05:59:05 i need to create video and gif of my android app Jan 21 05:59:48 adb shell screenrecord /sdcard/demo.mp4 Jan 21 06:15:19 thanks capella.. Jan 21 06:15:42 google is your friend :p Jan 21 06:17:46 :) Jan 21 06:19:35 any third party library for Videos list auto-play when scroll Jan 21 06:22:00 you autoplay them when you scroll into them. I don't see what's so hard about that that it needs it's own library Jan 21 06:24:01 actually i think lot of memory need to be release while doing this.. so i thaught.. Jan 21 06:25:01 As i supposed its quite a performance intensive task... Jan 21 06:31:01 is there any way to make TabLayout left justify the tabs into the smallest space ? Jan 21 06:31:11 rather than having it span the whole width Jan 21 06:31:40 yes Jan 21 06:32:59 aha, got it Jan 21 06:33:12 i had wrap_content but AS complained , meh left it and it worked ok Jan 21 06:34:08 never listen to the ide ... it thinks it's real people Jan 21 06:34:50 capella someday, AS will have a bot to ask questions ... Jan 21 06:34:54 * capella avoids a soylent green joke Jan 21 06:35:02 "AS, how do I do xxx" Jan 21 06:35:11 xhamster.com Jan 21 06:35:48 :P ban at my place Jan 21 06:36:07 lol min2 your IT guys just flagged you, security coming ! Jan 21 06:36:14 only VPN Jan 21 06:41:28 SlidingPaneLayout has setShadowResource() ... is there a canned android one , or do I have to make my own gradient? Jan 21 06:41:57 * g00s grepped ApiDemos for SlidingPaneLayout : 0 hits Jan 21 06:42:02 did they abandon ApiDemos ? Jan 21 06:48:49 g00s, having it in AS would make the IDE too bloated. Instead, Google setup this irc channel. You're the only actual human being inhere, the rest of us are bots Jan 21 06:52:05 g00s, I think they sort of include it in the samples Jan 21 06:52:11 Guys I need guidance Jan 21 06:52:31 g00s, for samples/android-23/ui/SwipeRefreshListFragment Jan 21 06:52:48 http://i.imgur.com/QNkbvbe.jpg How do achieve this kind of layout with RecyclerView? I never done such complex layout before. Jan 21 06:52:56 g00s, because I believe that uses SlidingPaneLayout...I have to check Jan 21 06:53:17 Ologn grep returned 0 results :( Jan 21 06:53:32 liefer ah ,i'm sure the actual query would go to google :D Jan 21 06:54:54 ah, it has the android-support-v4 library, but not source implementation for it...right, that does not have it... Jan 21 07:00:15 g00s, Mark Murphy I think might have some examples Jan 21 07:02:10 Murphy is decent about writing sample code for a the "newer" Android features Jan 21 07:04:29 i miss google code search Jan 21 07:04:56 br0mahn, in Recyclerview, the adapter will make those views and feed them to the layoutmanager Jan 21 07:08:15 Ologn: I'll refer to Codepath's on Heterogeneous recyclerview. But I'm still trying to wrap my head on the Viewpager inside Cardview. Seems like it has Expandable layout there. Jan 21 07:08:20 This gon' be gud Jan 21 07:08:50 I never used the cardview Jan 21 07:11:06 I want to recreate the time chooser from Timely app. Does anyone have a clue about how the went about it? Example: http://www.androidpolice.com/wp-content/uploads/2013/08/nexusae0_131.png Jan 21 07:14:43 ragone: Looks like it is heavy in animation.utils Jan 21 07:45:11 I really should stop being on the Android Studio canary channel. Jan 21 07:45:18 This stuff is so broken lately. Jan 21 07:50:47 jessie yeah, its OK if you want to submit bugs - not OK if you need to get stuff done ;) Jan 21 07:58:12 has anyone used Periscope? Jan 21 07:59:47 well anyway they have this feature where you tap a heart and the heart floats half way up the screen and fades away. What should i be googling if i wanted to do something similar? Jan 21 08:22:20 orbyt_, view animators probably. Jan 21 08:22:37 (I don't use Periscope so I don't know what you're talking about exactly.) Jan 21 08:23:50 Mavrik: short video shows what im talking about: https://www.youtube.com/watch?v=JsmQMUZXHk8 Jan 21 08:24:20 Yup, viewanimator. Jan 21 08:24:38 You create a heart imageview at original location then use the animators to make translate/alpha/scale animation. Jan 21 08:25:12 id think that animating that many views would cause some lag Jan 21 08:25:16 wouldnt it? Jan 21 08:25:44 Why? Jan 21 08:25:58 i have no idea, im just assuming the worst lol Jan 21 08:26:32 alright ill check it out, thanks! Jan 21 08:26:41 There's no more than 5 or 10 views there and they don't have to relayout for animation. Jan 21 08:28:11 at how many views could it start to be a problem? 20? 40? Jan 21 08:43:06 hi Jan 21 08:43:52 So just downloaded latest Android Studio + SDK for Ubuntu 15.10 x64. Created example login app. It's been saying "Gradle Build Running" for the past 51 minutes. Jan 21 09:16:13 hey guys, looking for some help on GCM reliability. Only 50-60% of our messages get through to users in any given day. Jan 21 09:16:43 We're sending them low priority with delay_while_idle false using HTTP Jan 21 09:17:39 Sent with collapse key daily for a news notification, but each day, 40-50% of these messages get collapsed Jan 21 09:18:02 anyone had any experience making this more reliable - does XMPP work better than HTTP? Jan 21 09:21:50 what are you trying to achieve with GCM? Their are other protocols, what is useful is all depending on your use case Jan 21 09:22:11 it's a ping to get the device to get a news notification Jan 21 09:23:06 so it's for just showing a notification? Jan 21 09:23:10 not trying to achieve a lot, just want to get a message through Jan 21 09:23:11 yes Jan 21 09:23:44 normally GCM should be fine for that. Jan 21 09:24:11 well, clearly messages aren't getting to our users Jan 21 09:24:45 I analysed a bunch of tokens using the play store GCM diagnostics tool to make sure our GA stats were correct Jan 21 09:26:07 are you sure its not just turned off devices? Jan 21 09:26:10 or doze mode? Jan 21 09:26:29 seems like a lot of devices to be turned off or in doze mode for a whole day Jan 21 09:26:43 but there's no way to tell for sure Jan 21 09:26:53 I'm already using google services... though i forgot for what (ill remember give me time). However, I am interested in adding analytics to my app which will involve getting a new google-services.json. Is there a way I can combine them to a single file? or do I need to get a new one from google that combines the features im using? Jan 21 09:27:49 oh right notifications. Jan 21 09:29:32 i think they are the same but im not sure Jan 21 09:29:38 also, very unlikely to be doze mode as most of our users are not android 6 Jan 21 09:31:25 danijoo: thanks for your input. im going through the one I currently have and the variables look pretty static. {"analytics_service":{"status":1} gonna google that though Jan 21 09:31:49 thought it might be connectivity issues, but numbers are not that different for our users in UK vs countries with worse connectivity Jan 21 10:32:19 updated to 2.0r6 -> everything broken -_-- Jan 21 11:12:23 So just downloaded latest Android Studio + SDK for Ubuntu 15.10 x64. Created example login app. It's been saying "Gradle Build Running" for the past 3 hours. Jan 21 11:13:48 restrart it.. Jan 21 11:22:36 daniele_athome: SUP Jan 21 11:23:00 danijoo: I meant to ping you Jan 21 11:23:02 HAI Jan 21 11:25:05 hey poosh Jan 21 11:25:19 currently fighting the new AS version -_- Jan 21 11:49:55 Hello everyone! I'm trying to build the full-eng target(Android 4.2) and I am unable to specify a custom size for /system. I added the following lines to device/generic/x86/BoardConfig.mk but they don't seem to be picked up: http://pastebin.com/N82iHdNN. Does anyone know how it's possible to specify a custom size for /system and other partitions? Jan 21 11:58:05 I want to build an app and website for something similiar to an event finder. someone told me I shoulöd use json files instead of a normal sql database. What would you prefer? Jan 21 12:00:31 not really an android question is it? Jan 21 12:00:42 since the app only consumes the data it gets through an api Jan 21 12:00:59 but a database will be better scaleable Jan 21 12:03:56 oh okay, I'm asking here, because I wanted to know how you build the backend for a good performance in the app Jan 21 12:11:28 why is my debugger never working in AS?? this is getting stupid Jan 21 12:11:57 I know how it works and I've used it plenty, but lately it just doesn't catch my breakpoints Jan 21 12:12:01 no idea. mine is always working :) Jan 21 12:12:03 fking annoying Jan 21 12:12:33 tried two different phones now too, thought it might be my S5 giving me trouble Jan 21 12:13:35 see, now it works.. just because I'm giving it grief it gets it act together Jan 21 12:14:55 thanks for listening Jan 21 12:15:04 you are welcome Jan 21 12:21:01 sk8dev check out firebase it might suit your needs Jan 21 12:21:38 JitanRo: okay, thanks :) Jan 21 12:30:53 <_3mpty> JitanRo: on my side it's sometimes don't like custom apk naming in gradle config, so when i'm switching branches it deploys bad package, it needs standard pray: clean, sync, run Jan 21 12:31:42 _3mpty hmm ok, I'm adding -debug suffix to debug builds in gradle maybe this is giving me trouble.. thanks Jan 21 12:32:18 the debugger shouldnt care at leas if you attach it after install Jan 21 12:32:26 because it only cares about application id Jan 21 12:34:33 <_3mpty> debugger will just attach but matching source is different story Jan 21 12:35:57 yes I have no problem attaching but it won't stop on breakpoints Jan 21 12:37:35 <_3mpty> it's showing those breakpoints with x sign? Jan 21 12:37:48 nope Jan 21 12:38:25 <_3mpty> so, with checkmark? Jan 21 12:38:34 <_3mpty> or it's not stoping on any breakpoint? Jan 21 12:38:56 not sure I haven't tried debugging for a while I would have to check again to make sure Jan 21 12:39:03 but I think checkmark could have been missing Jan 21 12:42:27 Hello! Jan 21 12:42:52 anyone there?? Jan 21 12:44:57 * JitanRo echo Jan 21 12:45:05 sometimes the run debugger button doesnt work for me too. but attaching it manually usually works Jan 21 12:47:25 mm Jan 21 12:52:45 did someone overcome this https://code.google.com/p/android/issues/detail?id=76094#makechanges issue - how? Jan 21 12:53:36 bolovanos, do you have a super high dpi monitor? 4k or retina? Jan 21 12:54:15 u may guess... Jan 21 12:54:52 i think those are not supported yet :s Jan 21 12:55:21 ok - I have thought that it might be better on higher res disp. Jan 21 12:55:38 so no - I do not have 4k disp Jan 21 12:55:48 just full HD Jan 21 13:47:00 Why won't AS recognise "src/androidTest/java" as my test source directory ? Jan 21 13:47:21 It is marked as "green", but can't make any class when right clicking Jan 21 13:47:30 Can't delete anything from there Jan 21 13:47:56 can you rightclick :p Jan 21 13:48:12 yes Jan 21 13:48:18 I have added sourceSets {androidTest {java.srcDirs = ['src/androidTest/java']}} Jan 21 13:48:50 androidTest is added by default Jan 21 13:48:54 you dont need that Jan 21 13:48:56 It shows me option to create Activity Fragment etc Jan 21 13:49:04 I'm trying to extend android.os.Binder to allow an activity launched with an intent to execute methods on my object 'remotely' how do I get the remote object from the Binder? Jan 21 13:49:15 I don't have it (my project is 4 y old) Jan 21 13:49:31 it? what is it Jan 21 13:50:02 "androidTest is added by default" - I don't have IT by default Jan 21 13:50:30 When populating an AutocomputereTextView from SQLite as seen here (https://www.codeofaninja.com/2013/11/android-autocompletetextview-example-sqlite-database.html) Is it good practice to do this as an asyncTask? Jan 21 13:50:32 i mean its part of the sourceSet by default. Even if the line is not there Jan 21 13:50:34 And it didn't configure it when I created folder Jan 21 13:51:14 yes that's what I thought, but it didn't show up as testSource, until I added gradle config Jan 21 13:51:28 vegetablesalad19, show your gradle file then Jan 21 13:52:19 and what do you mean you cant create/remove files there. THats not an error description to work with. Do you get an error? is the menu not there? Is your monitor going off if you try to do it? Jan 21 13:52:32 TECFALL, yes Jan 21 13:52:50 danijoo: I'm now making the transfer to AS Jan 21 13:52:56 what are you working with? Jan 21 13:52:57 TECFALL, and i suggest to use a cursor instead of a list of options Jan 21 13:53:17 thepoosh, at the moment with the lastest canary of AS Jan 21 13:53:33 danijoo: That's what I thought, but I don't think I have come accross 1 example yet that doesn't do this on the main thread. Jan 21 13:53:35 thepoosh, what have you used before? exclipse? Jan 21 13:53:54 yeah, for the past 3.5 years Jan 21 13:54:01 I'm starting to like InteliJ Jan 21 13:54:06 good luck with the migration :s Jan 21 13:54:25 it's taking it's toll but I think that in the long run it's for the best Jan 21 13:54:47 getting used to gradle is hard. but worth, yeah Jan 21 13:55:14 danijoo: http://pastebin.com/raw/8dS5WV1v I removed a lot of release texts Jan 21 13:55:17 oh, we've been building with gradle on our build machine for quite some time Jan 21 13:55:21 so I know it a bit Jan 21 13:55:27 and messed around with it Jan 21 13:55:37 but I still don't understand Groovy Jan 21 13:55:44 and closures Jan 21 13:56:04 vegetablesalad19, whats the gradle plugin and gradle version u are using? Jan 21 13:57:16 why it is so tough to embed vimeo video in full mode. Jan 21 13:57:40 no solution at all Jan 21 13:58:07 danijoo: http://i.imgur.com/AzbioGz.png and nothing is available under refactor Jan 21 13:58:42 danijoo: com.android.tools.build:gradle:1.5.0 Jan 21 13:59:38 with this version you shouldnt need to add the sourcesSet Jan 21 14:02:01 I had my test sources in my main package before, and it did work. I just want to make it cleaner Jan 21 14:06:31 wow, OK so it seems that it has broke everywhere I can't add files with menu and can't refactor Jan 21 14:06:38 It is completely broken Jan 21 14:07:37 vegetablesalad19, try to invalidate/restart then Jan 21 14:07:47 Did that 4 times :/ Jan 21 14:08:11 did you try reimporting the project? Jan 21 14:08:18 no idea.. :s Jan 21 14:10:46 And can't open any file x_x Jan 21 14:12:26 danijoo: since Cursor has a runqueryinbackground method, does that mean I don't need to do this as an asynctask? Jan 21 14:13:24 I never did this but I guess you dont reuse the cursor but swap it out Jan 21 14:15:31 im using gson how can i convert a string to object? Jan 21 14:16:50 thornekey, read the docs of the library? Jan 21 14:19:05 i couldnt find it in the docs Jan 21 14:21:17 its the very very first example of the gson user guide Jan 21 14:21:52 new Gson().fromJson(jsonString, YourObjectClass.class) Jan 21 14:26:21 oh i see, danijoo Jan 21 14:28:29 hey people.. can anyone tell me how to keep my task running using services even when my activity is being destroyed Jan 21 14:37:17 Why am I getting "'CursorAdapter(android.content.Context, android.database.Cursor)' is deprecated" on line 6? http://pastie.org/10696085 Jan 21 14:37:21 lets talk about localizing dynamically. Jan 21 14:37:49 is it correct that the R.strings is precompiled and thus i have to use a custom function instead of getstring? Jan 21 14:38:03 TECFALL, because its deprecated.. Jan 21 14:38:29 danijoo: what is the new standard now? I haven't found anything on this Jan 21 14:38:30 if so, what is the prefered method for this? i download and save to sharedpref and pull from there? Jan 21 14:38:33 TECFALL, read the docs of the classes you want to use. it tells you what alternatives you have Jan 21 14:39:24 jeremiedenoob, R.strings is precompiled, yes. Jan 21 14:41:37 danijoo: thats only the first part of my question :D Jan 21 14:41:48 (no pressure though) Jan 21 14:42:24 your question is vague and will not. be answered as is Jan 21 14:44:27 jeremiedenoob, i didnt understand what you want to do from the second part. beside that you want to dynamically localize. and something about shared prefs Jan 21 14:44:35 its not that vague. what is the best method to use to localize strings during runtime? is sharedprefs okay or should i use something else like db or something Jan 21 14:45:07 jeremiedenoob, why dont you create a string.xml of the second language and let the system localize.. Jan 21 14:45:14 still vague, that has nothing to do with localization... Jan 21 14:45:38 danijoo: because it has to be downloaded at runtime Jan 21 14:45:58 jeremiedenoob, check system language and download it in the correct language before using it Jan 21 14:45:58 then what you download is already the data you need Jan 21 14:46:43 danijoo: my question is more about the storing and retrieving of the strings, what format should i use ? XML? SQL? sharedpref? Jan 21 14:48:40 whatever you want Jan 21 14:48:58 sharedPrefss might be not so ideal Jan 21 14:50:20 danijoo: why not ideal? Jan 21 14:52:25 because its for storing small key value datasets and not dozens of strings Jan 21 14:58:59 If my compileSdkVersion is 23 but targetSdkVersion is 22 : will I still have the old permission system ? Jan 21 14:59:20 I am tracing methods. In trace "log" I can sort methods by their time. I would like to see this method in some kind of tree - to understand which part of my program did initiated it's calling Jan 21 15:00:59 how can get to those information? Jan 21 15:02:26 there were DDMS in earlier version of AS, but I cannot find it in 1.5.1 Jan 21 15:03:24 http://developer.android.com/tools/debugging/debugging-tracing.html#dmtracedump Jan 21 15:04:10 bolovanos, you just answered your own question Jan 21 15:04:22 where? Jan 21 15:04:33 the link Jan 21 15:05:14 ddms is still in android studio Jan 21 15:05:28 I see, I have foreseen that icon Jan 21 15:05:53 btw - isn't there another, better way to do what I need? Jan 21 15:21:24 vegetablesalad19, yes Jan 21 15:25:23 "Find" function in DDMS on *.trace does not work or am I doing something wrong? Jan 21 15:32:24 "Use the Find box at the bottom to filter your profile results. For example, if you are interested in finding the running time for a function, you can search for it, and the tool will highlight it in the timeline." - no I cant - why me? Jan 21 15:32:33 Hi folks, does anyone know how to reduce the width of the touch area for a fastscroll on a listview. Basically i am having this problem: http://bit.ly/1P89Jig Jan 21 15:43:27 pfn, hi, do you use that profiler in DDMS, or something else? ( I need to trace callings to some method (not mine) in form of visualised "calling dependency" tree) Jan 21 15:43:39 gasp Jan 21 15:43:46 stackoverflow not responding Jan 21 15:44:30 working again thank god Jan 21 15:45:40 how do you work without stackoverflow :p Jan 21 15:46:13 bolovanos, for android, traceview is all I use Jan 21 15:46:19 and it works perfectly well Jan 21 15:47:09 u mean that function in AM -> CPU|GPU -> Start/Stop method tracing? Jan 21 15:47:20 no Jan 21 15:47:33 I use ddms Jan 21 15:47:52 but. there's something in IDE. that does it as well, not as good as ddms though Jan 21 15:48:07 ok, and that Find function I am crying about is working for u? Jan 21 15:48:23 dunno, I don't find Jan 21 15:48:35 that's not the point of profiling for me Jan 21 15:49:29 I have traced some method, which is called few times, but I do not know what is calling Jan 21 15:49:40 it Jan 21 15:52:12 that's shown in traceview Jan 21 15:57:12 yes, kind of - what I see is method, by clicking on it it expands and shows parents and childer, clicking on Parent/Children scrools to Parent/Children and expand it. Jan 21 15:58:29 is it what should I see, or is there switch which changes view to Method -> Children -> children ... ? similar to allocation tracking in AM -> Memory -> Allocation tracking Jan 21 15:59:03 that's that the parent/children is Jan 21 16:02:55 ok, thx Jan 21 16:03:24 Anyone have a working example on how to use LoaderManager and CursorLoader to work with an AutoCompleteTextView from SQLite? I can't for the life of me wrap my head around doing this. I had it working with SimpleCursorAdapter, but I now see that is depreciated. Jan 21 16:03:54 Deprecated does not mean unsuseable Jan 21 16:04:33 danijoo: i know, but if I'm going to do it, I feel like i should learn the new way. Jan 21 16:04:44 I have found this, but i'm not sure how to impliment it: https://gist.github.com/casidiablo/1217628 Jan 21 16:05:12 and btw simplecursoradapter isnt deprecated Jan 21 16:05:24 only one of its 3 constructors is Jan 21 16:06:16 Ah, i do see that now. Jan 21 17:22:23 "The worst kept secret in Silicon Valley is that 90+% of the so called 'unicorns' are just donkeys with a plastic cone on their head." lol Jan 21 17:28:58 hasn’t that always been the case? Jan 21 17:37:03 s73v3r: no, unicorns are a new thing Jan 21 17:37:19 VC scammers always knew what they were doing. Jan 21 17:37:44 p_l north korea always had them Jan 21 17:38:22 the term unicorn is fairly new, but overhyped and overvalued startups have been around for a while Jan 21 17:40:25 unicorn is afaik (overhyped&overvalued)^2 Jan 21 17:40:57 and even bigger disconnect between founders and employees Jan 21 17:42:37 that's always been a thing Jan 21 17:42:53 Hi, Should I use fragments and keep putting them in backstack (to destroy their views and save memory) for switching to different pages or use separate Activity for different pages? Jan 21 17:43:10 I'm assuming, views of an Activity doesn't get destroyed when it's put in backstack? Jan 21 17:44:06 use fragments Jan 21 17:44:24 In Android 4.4.3 there is this little Pop that comes when one changes intents. Its an animation that looks like the intent is popping out towards you. It seems like it is on by default. Is there a way I can switch it off to just not do that? Jan 21 17:44:45 cart_man, overridePendingTransition Jan 21 17:45:03 cart_man, and it varies. by android version Jan 21 17:45:11 pfn, I can simply use multiple fragments and use a single activity. Will it have any sort of drawback or disadvantage? Jan 21 17:45:17 pfn: Yea I saw.. 5 just does nothing Jan 21 17:45:35 cart_man: you can always use a different launcher: ADW, NovaLauncher, ... Jan 21 17:45:56 arunlak, somewhat complicated logic is the only drawback Jan 21 17:46:02 cart_man, that's not true Jan 21 17:46:14 orbiting: Yea but It seems like they just want nothing really. Jan 21 17:46:17 cart_man, 5 definitely does something when moving between activities Jan 21 17:46:23 pfn: Well my LG does nothing Jan 21 17:46:37 it just goes there is no sliding to reappearing etc Jan 21 17:46:51 then that was something lg overrode Jan 21 17:47:20 because there is always a transition unless explicitly disabled Jan 21 17:48:00 pfn, I was observing other google apps like Play Store. After going deep by opening several product pages, dumpsys tool indicates that Play Store app still has one Activity in memory. Jan 21 17:48:27 I was wondering, if that's correct approach. Sigh, they're google. Jan 21 17:48:42 arunlak, the approach is whatever makes sense for your app Jan 21 17:48:59 you can emulate multi activity with fragments, you can't do vice versa Jan 21 17:49:20 pfn, got it Jan 21 17:49:57 speaking of, I wonder how to do scene transitions between fragments Jan 21 17:50:18 and why a transition behaves differently when used for an activity vs fragment Jan 21 17:50:26 silly bugs Jan 21 17:50:30 Yeah Jan 21 17:50:33 pfn: Ohh ok makes sense.. Hard to explain to the customer though Jan 21 17:50:44 I'll research on how they're making transition while switching fragments. Jan 21 17:51:07 cart_man, you can disable the transition, but depending on the app, it can look very bad Jan 21 17:51:52 pfn: Yea that is true. But I bet you I will implement it and they will come back telling me they want something to happen.. ! Jan 21 17:52:35 at some point you have to tell them that is how the platform is. you can spend more time and money trying to make magic happen, but it’s going to be at the expense of stuff that people are actually going to use the app for Jan 21 17:53:01 it’s like styling the app to look like iOS. If you really, really, really want it, it can be done, but it’s going to cost you Jan 21 17:53:28 s73v3r: Its fine if I am getting paid then its ok.. thing is if they keep on reffering back to the quote -.- Jan 21 17:53:44 s73v3r: Well that is exactly my dilemma! Jan 21 17:53:54 fkn Android IOS lookalike Jan 21 17:54:04 -.- Jan 21 17:57:15 arunlak i've been experimenting with one activity, multiple fragments - its doable with nested fragments, but really hard if you keep the fragment hierarchy as 'flat' Jan 21 17:57:49 for example, my main activity has a nav drawer, which just swaps out the content area - basically a fragment switcher Jan 21 17:58:03 but those root fragments, are parent fragment which have child fragments Jan 21 17:58:25 so when that root gets swapped out , a lot of stuff is changing. so far its working pretty well. Jan 21 17:59:05 one root for example, has a SlidingPaneLayout - which has master / detail so thats 3 fragments : root, 1 child for master, 1 child for detail Jan 21 17:59:51 but sometimes its easier to go with a separate activity, like when you need to make big changes to the action bar - or it behaves differently like collapsable action bar Jan 21 18:00:17 and with Api 21, the shared element transitions make things very nice when going between activities. but that is api 21+ only Jan 21 18:00:31 pfn: So lets say I use super.overridePendingTransition() ; What parameters do I feed for no animation? Apparently NO_ANIMATION does not work Jan 21 18:01:28 can you make a “no animation” animation? Jan 21 18:01:45 s73v3r: Possibly..I am not at all sure how though Jan 21 18:01:52 cart_man, 0 Jan 21 18:03:32 pfn: Thanks ! Jan 21 18:38:25 Hello, I am currently having trouble trying to add an image from a web URL to be the background image of a layout Jan 21 18:39:13 Picasso is the answer Jan 21 18:39:53 I am currently using Glide for my project, knowing the two are similar, do you think the same functionality could be replicated Jan 21 18:40:08 i think glide can do that too, yes Jan 21 18:40:23 as it would be a serious inconvenience to rework the parts of my code which already implement this Jan 21 18:41:50 Alright, I'll give this a go Jan 21 18:44:19 then use glide Jan 21 18:44:43 ugh, dynamic queue still not back up yet? Jan 21 18:44:45 oops Jan 21 18:45:52 yes :/ Jan 21 18:46:25 they are having serious problems there. Even their api is totally unstable right now\ Jan 21 18:47:13 just curious, this is glide that is unstable? Jan 21 18:47:20 no Jan 21 18:47:25 offtopic Jan 21 18:47:31 ok. nevermind Jan 21 18:48:12 Hmm, I can't seem to get Glide to load the image as the layout Jan 21 18:48:19 *layout's background image Jan 21 18:48:40 https://youtrack.jetbrains.com/issue/KT-10751 Jan 21 18:48:43 lets see if they fix it Jan 21 18:49:36 pfn, remember my TextView bug from yesterday? it was actually a bug in android 4.4 where ellipsize=¨start¨ causes the exception if you dont set the deprecated singleLine=¨true¨ with it.. Jan 21 18:49:51 danijoo .. Jan 21 18:50:16 such a bs.. https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=android%204.4%20ellipsize%3Dstart Jan 21 18:50:26 ups.. wrong link Jan 21 18:50:31 there https://code.google.com/p/android/issues/detail?id=33868 Jan 21 18:51:31 danijoo Status; obsolete :D Jan 21 18:51:42 g00s, ^^ Jan 21 18:51:52 danijoo, indeed Jan 21 18:51:56 so they fixed it :D Jan 21 18:52:01 it is obsolete, only happens in 4.4 Jan 21 18:52:09 yeah. theres no way they can fix it Jan 21 18:52:21 because no manufacturer will ever release a 4.4 patch Jan 21 18:52:43 pretty much Jan 21 18:52:53 * g00s wonder whats going to happen with that linux kernel exploit from this week Jan 21 18:52:54 * pfn still waits for accessibility to be fixed Jan 21 18:52:58 nothing Jan 21 18:54:16 Last time I checked, there was still a setting for rounded the NW rounded corner being the SE bounded corner and vice versa... never gonna get fixed. Jan 21 18:54:20 Having looked a little into the Picasso library, I couldn't seem to find any reference to loading into any different containers other than an imageView Jan 21 18:54:20 aiui, config_keys is not enabled on any version of android that ships Jan 21 18:54:55 Does anyone have any experience loading images from the web as a Background image for a LinearLayout? Jan 21 18:55:07 same concept applies Jan 21 18:55:23 just set your Target to be the view and set into background Jan 21 18:55:25 Artifex, whats your problem Jan 21 18:56:36 Forgive my lack of experience, but the problem I am encountering is that both Glide, and Picasso both only show how to set an imageView as the target, with no reference to any other containers, I have no idea how to load the image into the LinearLayour Jan 21 18:56:42 *LinearLayout Jan 21 18:57:48 The code to load an image into an imageView in Glide is: Jan 21 18:57:50 For picasso you can set a custom target interface Jan 21 18:57:54 im sure the same applies for glide Jan 21 18:57:59 or something similar Jan 21 18:58:59 Glide.with(getApplicationContext()).load(ImageUrl).asBitmap.into(new BitmapImageViewTarget(imageViewer) {..}. ) Jan 21 18:59:50 The piece of code "into(new BitmapImageViewTarget) Jan 21 18:59:54 is what confuses me Jan 21 19:00:02 why? Jan 21 19:00:49 Because I am not seeing what I need to replace it with so that I can load an image into my LinearLayout Jan 21 19:01:10 Because I am not trying to load it into an imageView, but a Layout Jan 21 19:01:17 Artifex, read the docs about that class Jan 21 19:01:35 Alright Jan 21 19:01:58 its an interface you can extend and it has a callback function that will receive the bitmap once its loaded Jan 21 19:02:03 then you set it manually from ther Jan 21 19:02:05 there Jan 21 19:03:16 Anyone mind taking a look on why I'm getting "The application may be doing too much work on its main thread." as soon as my app is launched? http://pastebin.com/jq0u7CNB Jan 21 19:04:57 TECFALL, you are running a database query in onCreate Jan 21 19:05:29 oh nvm, you dont Jan 21 19:07:01 danijoo: yeah, i didn't think that the adapter actually ran until you started typing in the contract textview. Besides, simplecursoradapter doesn't run on the main UI. Jan 21 19:08:29 take survey https://www.google.com/intl/en/usability/index.html Jan 21 19:10:38 danijoo: the only thing I can think of is that when I call new DBHelper my onCreate function does a create table... Jan 21 19:11:03 trace it Jan 21 19:14:02 danijoo: definitely what it is. Jan 21 19:21:33 its 2016 and /r/androiddev is talking about hungarian notation ... Jan 21 19:22:01 it’s cause it’s 2016 and a prominent member of the community decided to talk about hungarian notation Jan 21 19:28:29 g00s, I read it's easier to make transitions while switching between activities Jan 21 19:28:49 However, Play Store app when being monitored by dumpsys uses a single activity Jan 21 19:29:10 I love attacking Hungarian notation, braces on their own lines in C-like language, and so on. This is my kinda drama. :D Jan 21 19:29:11 And still has product images as shared element for transitions Jan 21 19:29:35 g00s, I'm just curious how they are doing it Jan 21 19:29:55 I hate hungarian notation, but not strongly enough to not do it when I join a project that is already doing it. At least in Java Jan 21 19:41:14 I'd expect ex-Win32 programmers to have traumatic memories of Hungarian notation. Jan 21 19:41:30 Those who used the Win32 API directly. Jan 21 19:41:49 it was useful for that ... :D Jan 21 19:42:03 Hungarian notation: not even m_nOnce. Jan 21 19:42:28 Yeah, it had uses. It was so horrible though. Jan 21 19:43:39 pretty much, too many people use mFoo just because aosp does it Jan 21 19:43:45 and they have no brain to come up with their own conventions Jan 21 19:45:14 I remember the debates on the Delphi newsgroups. People would get quite upset. :D In one, a guy wrote *every* message like this to make the point: adjHungarian nNotation vSucks; pronIt vMakes nCode adjHarder prepTo vRead. Jan 21 19:45:20 He put so much time and effort into that debate. Jan 21 19:49:24 hi guys. I have an app where one of my activities is using AppCompat-v7 to add the top ActionBar and add buttons to it. This works fine on my 5.0 Lolipop device. However none of the toolbar buttons work on my 4.4.2 device Jan 21 19:51:30 Hello, Does someone recommend some material about unit test on Android ? I really missing understand and using test, but all my tries on android was unsuccessful. Do you have something about test in android ? Jan 21 19:51:54 Hi. Jan 21 19:52:03 AbrarSyed: It should work in both places. Jan 21 19:52:21 wviana: Are you asking about local (JVM) tests or instrumentation (on-device) tests? Jan 21 19:52:26 well yeah./. should is the keyword.. except it doesnt. Jan 21 19:52:52 AbrarSyed: Based on the information you've given, I've come to the following conclusion: something is wrong. :D Jan 21 19:53:01 lol Jan 21 19:53:04 sec lemme get you a log Jan 21 19:53:46 I'm in App1 trying to start an activity App2 with startActivityForResult(). And my intent does reach App2 as it's supposed to, but I'm also getting my App1's onActivityResult() invoked immediately after startActivityForResult() is invoked, ie. I get the result before App2 returns a result. Jan 21 19:53:51 Anyone know what could be wrong? Jan 21 19:54:48 not without code.. Jan 21 19:55:18 Hm, I'll see if I can extract some snippets. Jan 21 20:00:04 has anyone ever created an abstract class to make sure all database methods are only accessible through an async task? Jan 21 20:00:37 I just thought that is something that would be used alot, i'm suprised i can't find anything about it... Jan 21 20:09:58 danijoo: I think I've got it all covered here: http://pastebin.ubuntu.com/14592382/ Jan 21 20:10:44 danijoo: Like I said, as soon as App1 executes line 19, I hit my breakpoint in line 26. Jan 21 20:11:29 danijoo: But what also happens is that App2 starts and starts waiting for me to connect my debugger in line 70. Jan 21 20:12:12 So I'm puzzled as to why App1's SourceActivity.onActivityResult() gets invoked. Jan 21 20:14:47 <_rd22_> Hi I was wondering what libraries can be used to build a real time android app, I have decided to go with tornado in the server Jan 21 20:16:28 real time how? Jan 21 20:17:09 <_rd22_> as the contents are pushed to the server they get updated in the client side Jan 21 20:17:27 <_rd22_> more like a stock market app Jan 21 20:17:42 firebase has some pretty good tech for that Jan 21 20:17:54 <_rd22_> I want to avoid polling and Comet Jan 21 20:18:01 _rd22_ also check out rethinkDb Jan 21 20:18:17 websockets, and rabbitMQ Jan 21 20:18:29 danijoo: intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); was the culprit. Jan 21 20:18:56 <_rd22_> s73v3r: yes isn't firebase paid ? Jan 21 20:19:06 they have a free tier Jan 21 20:19:19 <_rd22_> oh! okay, will see to it Jan 21 20:19:25 <_rd22_> Thanks s73v3r Jan 21 20:20:06 I have an image, 40MB size in TIFF format, I want it as a background in my game so obv 40MB will not work., Jan 21 20:20:14 what can i do? Jan 21 20:20:50 scale it down Jan 21 20:21:00 re-use tiles Jan 21 20:22:47 I have a CoordinatorLayout+AppBar+ViewPager in my activity and a CoordinatorLayout+AppBar in a fragment in one of the pages inside the viewpager. Is there a way to sync the scroll between 2 appbarlayouts? Jan 21 20:23:06 yeesh Jan 21 20:23:07 Zta77: Indeed. From : "This flag can not be used when the caller is requesting a result from the activity being launched." Jan 21 20:23:18 by writing your own behavior Jan 21 20:23:20 but wow, yuck Jan 21 20:23:22 On a side note, "can not" should be "cannot". Jan 21 20:23:37 pfn: me? Jan 21 20:23:39 <_rd22_> g00s: I want to use websockets, preferably, is there a good library for it in android? Jan 21 20:23:56 _rd22_ okhttp supports websockets afaik Jan 21 20:23:56 <_rd22_> g00s: I am using tornado in the application server Jan 21 20:24:20 your choice of application server really isn’t going to have anything to do with what you use on android Jan 21 20:24:25 pfn, how? with what tool? i tried some online converter tool that were uesless Jan 21 20:24:25 websockets themselves - seem semi - iffy technology Jan 21 20:24:34 it is also not very sharp, it looks sandy Jan 21 20:24:38 unless you go with a IaaS solution Jan 21 20:24:50 paint is very good for that Jan 21 20:25:33 imagemagic too Jan 21 20:25:39 photoshop/gimp would work too. Or ask the person who gave you the original image to give you a version condensed down to your needs Jan 21 20:26:30 basically any image program can do that this days Jan 21 20:27:52 i would highly suggest talking to the person who gave you the image, though. they’d be able to fix something if the compression made it ugly Jan 21 20:28:13 I'm looking for some direction on android equivalent of passbook and how to create them if such thing exist. any direction? Jan 21 20:46:39 s73v3r, how do I that with gimp? Jan 21 20:47:06 you’re gonna have to google it. there are several resources available Jan 21 20:49:24 anyone see anything obviously wrong with this: Jan 21 20:49:27 getActivity().getTheme().resolveAttribute(R.attr.homeAsUpIndicator, outValue, true) Jan 21 20:49:37 actionBar.setHomeAsUpIndicator(outValue.data); Jan 21 20:49:58 the exception is android.content.res.Resources$NotFoundException: Resource ID #0x4f6 Jan 21 20:50:34 but that confuses me, because i use ?attr/homeAsUpIndiciator in my xmls Jan 21 20:52:08 and resolveAttribute() is returning true Jan 21 20:52:57 outValue.resourceId Jan 21 20:53:54 indeed, thanks pfn Jan 21 21:17:01 so is putting a 100ms delay on your onClick listeners something ppl do to get the full glory of the ripple? Jan 21 21:18:15 no Jan 21 21:18:26 no Jan 21 21:19:02 but then u get no ripple Jan 21 21:19:06 pretty much Jan 21 21:19:21 for dialogs at least Jan 21 21:20:22 nipple even Jan 21 21:25:03 Could someone please give me a little advice. I am trying to write a unit test for an activity that I have. Here is a stripped version of the activity and controller. I am trying to test the onClick action of the continue button. But I am not sure how to approach this since the controller sets the onClickListener. https://gist.github.com/px-amaac/acd9813d68319c0c8a90 Jan 21 21:26:53 the only solution I could think of was to write a test that clicks on the button and then waits to check the view for the new activity to launch. The wait could be anywhere between 0-5 min. This makes an indeterministic test. :/ Jan 21 21:42:23 MooGoo: What ripple are you talking about? Jan 21 21:43:50 shadynastys, 1.) You use Espresso library to click on a button and verify that makeApiCall was called with proper data. Jan 21 21:44:01 2.) You write another test that verifies if makeApiCall does the right thing. Jan 21 21:44:14 Unit tests, not "half of my app" tests ;) Jan 21 21:46:26 Are the fonts created by Hiero free to use in commercial games? Jan 21 21:46:48 What's the license_ Jan 21 21:46:49 ? Jan 21 21:49:40 holy crap I'm so stupid Jan 21 21:49:59 I spent hours trying to figure out why my recyclerview was not showing my cardview items Jan 21 21:50:25 and the actual problem was that I was setting the cardview scales to 0 Jan 21 21:53:01 shadynastys: Why are you starting the activity in response to the API call? Jan 21 21:53:11 you should be starting the activity and then making the api call Jan 21 21:57:23 wow is this true? http://stackoverflow.com/a/15017771/375394 Jan 21 21:57:26 Android is shit Jan 21 21:59:02 yeah. the people responsible for child fragments really should never be allowed near a computer again Jan 21 22:00:28 Yeah, and people actually using them should be shot :P Jan 21 22:01:16 im begining to slowly think this might be the way Jan 21 22:01:21 but at this point im too entrenched Jan 21 22:01:31 to end the pain and suffering that they’ve had to endure? Jan 21 22:01:43 i haven't had any problems yet with nested fragments, i wonder if there is a good list of the current issues Jan 21 22:01:49 Also for showing poor judgement :P Jan 21 22:02:31 they work great, except they don't get a proper response for onActivityResult, and apparently they cannot transition animation for shit Jan 21 22:02:38 Why? Google originally sold us fragments as being building blocks for reusable functionality. is it really that strange that people would want to nest them? Jan 21 22:03:09 MooGoo yea, onActivityResult is issue Jan 21 22:03:14 Just because Google told you something it doesn't mean you need to blindly go do something stupid :P Jan 21 22:03:19 MooGoo i noticed that bug was assigned recently Jan 21 22:03:20 Mavrik: I understand that I need to break the tests up. Test the button click and then test the api call. I was just putting my entire situation up as a problem. I am concerned about the api call still. If I write a test that makes the api call with correct data I still need to wait to check if the activity fired. Jan 21 22:03:28 Nested fragments don't work. Using them will cause you endless pain and suffering and maintenance issues. Jan 21 22:03:31 s73v3r pretty much everyone had the same question when fragments first came out Jan 21 22:03:33 lol Jan 21 22:03:42 Mavrik: Wanting to nest fragments isn’t stupid. and Google is the only one at fault for them being so bad Jan 21 22:03:51 the answer is, fragments are not quite as useful as they're supposed to be Jan 21 22:03:56 And if you choose to use them even after you sir should be flogged with a Samsung phone :P Jan 21 22:04:00 Mavrik could you be more specific? i could still go either way with my project, if you have a good case against them i'll ditch the idea for now Jan 21 22:04:05 Yeah, and they're also a horrible hack Google had to make in a year :P Jan 21 22:04:16 no, this blame the victim crap needs to stop Jan 21 22:04:44 JakeWharton you remember what your duktape octane results were, more or less? Jan 21 22:04:47 s73v3r: That is not my concern. The Api call is verifying that an instance exists. If the instance exists then an activity needs to be launched. Jan 21 22:05:11 g00s, undeterministic lifecycle, issues with animations when transitioning between them, different bugs on different APIs, bad behaviour for some transparency/animation effects Jan 21 22:05:16 depends on how lucky you are :) Jan 21 22:05:26 But then again I've had people stuff child fragments in recyclerviews so... Jan 21 22:05:36 undeterministic lifeycle ? Jan 21 22:06:16 i dont care much about animations, so i'm ok there Jan 21 22:06:26 How do I setup a project to be used as an android library and also compile as a normal project/app? Jan 21 22:06:32 lol fragments in RV Jan 21 22:06:35 g00s, yeah, the ordering of what happens when is sometimes a bit funny when you have multiple fragments Jan 21 22:06:44 and try to do config changes etc. Jan 21 22:07:12 shadynastys, you need to check if `startActivity` was called Jan 21 22:08:06 I guess you could use uiautomator tests or whatnot but that's silly and hard to maintain in most cases. Jan 21 22:08:34 Mavrik: hmm fair enough. I simplified my code a little to much. there is no startActivity method although now that I am thinking about it maybe there should be Jan 21 22:08:39 hm, ok. i have a knack for staying out of trouble ;) i typically use APIs in the most straightforward / documented way as possible to avoid those edge cases we all know exist ;) Jan 21 22:08:56 g00s, smart man. Jan 21 22:08:58 :) Jan 21 22:09:23 The sad reality is that most frameworks and APIs have really shitty parts. Jan 21 22:10:15 Mavrik: if I am checking if startActivity was called does that mean it will wait until it is called or timeout if I set it? Jan 21 22:10:32 nvm Ill just try it. Thankyou Mavrik Jan 21 22:10:59 "The lifecycle of a nested fragment within a parent fragment is broken if the parent fragment has setRetainInstance set to true." Jan 21 22:11:27 i hate when these things have status 'needsinfo' Jan 21 22:11:35 its like, some peon read over it and was meh fuck it Jan 21 22:11:43 g00s, yep. in this case fragmentA is retained, but its childs are recreated Jan 21 22:11:48 what do they need more info on, for fuck sake Jan 21 22:12:23 i dont think i ever use retained anyhow, ok there again Jan 21 22:12:31 * g00s skating on thin ice Jan 21 22:12:45 with mines underneath ... Jan 21 22:13:01 retained is just a trap Jan 21 22:13:05 android doesnt care Jan 21 22:13:11 it'll destroy it anyway eventually Jan 21 22:21:49 only time i used retained, was doing BT scan that could survive rotation changes - so the recivers stayed active. Jan 21 22:22:08 i just design everything to assume the worst with being killed at any time Jan 21 22:22:15 http://lpaste.net/150415 why is my bitmap scaling Jan 21 22:42:15 i wonder if Nick B's Plaid ElastciDragDismissFrameLayout can still be made passable on pre-21 without shared element transitions Jan 21 22:57:56 android.content.pm.PackageParser$PackageParserException: /data/app/vmdl36773529.tmp/base.apk (at Binary XML file line #58): does not include authorities attribute Jan 21 22:58:01 ugh, why is my build doing this to me Jan 21 23:06:56 weird, everything matches up... Jan 21 23:09:55 Hello. I am writing an Android app in Unity3D, and using this plugin to connect to bluetooth devices. https://www.assetstore.unity3d.com/en/#!/content/16467 Works great, but I need to connect to three separate bluetooth devices simultanously, and the plugin only seems to support 1. Any suggestions? Jan 21 23:10:41 nebby, i doubt there are lots of unity guys here Jan 21 23:10:53 you better ask in their forum/irc/whatever Jan 21 23:11:39 https://gist.github.com/pfn/679e7e381f4fcb31462d Jan 21 23:11:44 wtf package instgaller Jan 21 23:11:50 why you say it not set, but the apk clearly has it... Jan 21 23:17:16 Okay - are there any pure android packages for acessing bluetooth? Jan 21 23:19:05 everything you can do w/ bluetooth has an android api, if that's what you mean d.android.com should list it all. It might not be most fun of APIs, but it exists. Jan 21 23:19:15 there's some example SPP/rfcomm stuff on the dev site as well Jan 21 23:20:39 * pfn headscratches Jan 21 23:20:50 Okay - and there's no limitation in Android itself that would allow only 1 device connected to an app at a time? Jan 21 23:24:08 nebby for BLE, different versions of android allow different #s of concurrent connections and notifications per device Jan 21 23:24:30 for ble / rfcomm, what you actually get though kinda depends on the device Jan 21 23:25:22 https://code.google.com/p/android/issues/detail?id=40455 Jan 21 23:36:35 hey guys, when creating a custom adapter view i'm wondering what is correct behaviour for handling the adapter: when a user adds an item to the adapters data and lets me know it's changed do i start fresh? and only really consider keeping things consistent if it has stable id's? or do i do what i'm currently doing and just pull in new data? Jan 21 23:37:27 currently i only refresh the view when a new adapter is set... that might be wrong. Jan 21 23:38:57 Who's the user_ Jan 21 23:38:58 ? Jan 21 23:39:37 And what do you mean by start fresh? Jan 21 23:39:57 whoevers using the view. Jan 21 23:40:41 what i mean is say you're displaying items 3 - 6 in an adapter with 10 items, and they add an 11th and call datasetchanged.... Jan 21 23:40:59 if those don't have stable ID's what is the correct behaviour? Jan 21 23:41:20 You add it to internal datastructure and carry on. Jan 21 23:41:30 Return false to the "hasStableIds" and that's it. Jan 21 23:42:37 having a vzw s5 with blown lcd (dead screen) and usb - hdmi not possible (no cable) anyway to still get usb trsut prompt selected Jan 21 23:42:48 adb devices returns unauthorized Jan 21 23:43:08 not with stock rom Jan 21 23:43:28 this is stock 5.1.1 Jan 21 23:43:38 Nop. Jan 21 23:43:45 so the answer is no Jan 21 23:43:57 danijoo, to whom me or Mavrik ? Jan 21 23:43:59 linuxmodder: Is the touch dead as well as the display? Jan 21 23:44:03 linuxmodder, u Jan 21 23:44:20 it seems possible to jab at it and hope to hit the right spot … not fun. Jan 21 23:44:21 not sure sudio still works but no way of yet to confirm Jan 21 23:44:39 not kidding trying to avoid that if possible Jan 21 23:44:44 Also if you're not developing an app, you're in the wrong channel. Jan 21 23:45:09 I still get connection vibrations Jan 21 23:45:22 so usb controller seems still good Jan 21 23:45:30 it doesnt matter - if you cant confirm the dialog, you are fucked Jan 21 23:45:43 appium! Jan 21 23:45:47 using chrome adb in chrome ( fedora ) Jan 21 23:46:07 s73v3r, appium needs working debug connection, which he cant do because he cant confirm :p Jan 21 23:46:15 oh Jan 21 23:47:00 all the other screen mirroring options I can think of require some kind of setup on the devices Jan 21 23:47:14 everything requires at least adb Jan 21 23:51:17 this is in connection with another device theft this phone has logs etc and rerware made empty cache files backups ( before lcd blew out) Jan 21 23:51:51 s73v3r, its the initial 'do you trust this pc' that I'm not able to get with the dead screen Jan 21 23:52:01 yeah, i gathered Jan 21 23:52:09 adb is running tho and installed on my Fedora box Jan 21 23:53:27 https://paste.fedoraproject.org/313481/42038614/ Jan 21 23:54:02 and otg mhl is not available :( Jan 21 23:54:15 only mhl i have is mini to full hdmi Jan 21 23:54:57 I wonder if there's any harm in sharing exploded aars directories Jan 21 23:54:59 and i’m guessing random touches isn’t working Jan 21 23:56:07 pfn, in what way? Jan 21 23:56:16 Mavrik, between projects Jan 21 23:56:32 I'm sharing pre-dexes between projects now, heh Jan 21 23:56:59 if I share exploded-aars then I can share pre-dexes from aars as well Jan 21 23:57:04 that would make my build times even shorter Jan 21 23:57:22 as well as fix issues I have with aars being multiply included by dependencies Jan 21 23:57:35 (which are worked around, but not optimally) Jan 21 23:59:19 hmm, that's a pretty good idea Jan 21 23:59:23 * pfn throws that on the todo list for plugin Jan 22 00:31:52 cannot see method params when debugging, somebody knows why? Jan 22 00:33:23 how safe is it to use MemoryFile aka ashmem with android? Jan 22 00:33:38 as far as I've read ashmem isn't officially supported? Jan 22 00:33:46 (the JNI API) Jan 22 00:34:16 I need a way to transfer 160mbit from one process to another one Jan 22 00:34:24 best way would be shared memory... Jan 22 00:45:41 i have a SlidingPaneLayout [master][detail] .. detail has a FragmentPagerAdapter. When SPL is open, i need to show action bar entries from [master] (easy) and hide them from [detail] .. but I don't know which is the active tab in the FragPagerAdapter - and doesn't seem like there is any decent way to find out Jan 22 00:46:05 (and then when SPL is closed, i need to re-enable AB items from the active FragPageAdapter) Jan 22 00:48:04 sweet, that was easy Jan 22 00:48:21 why would you need to transfer data interprocess like that? Jan 22 00:49:49 https://github.com/pfn/android-sdk-plugin/commit/e502bf07f24c6ea920ae46fe1d60f727f205f102 Jan 22 00:49:52 sweet, easy change Jan 22 00:49:58 and I said that... meh Jan 22 00:53:50 pfn: transferring video data Jan 22 00:54:25 mrec, yeah, yuck :P Jan 22 00:54:43 unofficially it works fine though :P Jan 22 00:55:56 Fragment#getHost() -- Return the host object of this fragment. Interesting. Jan 22 00:56:45 "any object may host a fragment" this is new, i missed it i guess Jan 22 00:58:03 support lib has it too, wonder why i haven't seen more about this Jan 22 01:14:40 pfn: are you sure it works fine everywhere? Jan 22 01:14:43 did you use it? Jan 22 01:14:55 mrec, nope Jan 22 01:15:26 I'm cobbling the frames together in one process and would like to send it over to the other one Jan 22 01:16:17 keeping the frames in the same process is no problem of course Jan 22 01:29:29 anyone have any experience with Pusher.com and/or PubNub? Jan 22 01:38:15 oh god, who comes up with public List> getItems as an interface... (not in android code, but in app code) Jan 22 01:39:19 Hey, quick question: Does anyone know of a version of dex2jar that works with multiDex? Jan 22 01:39:32 How can I hide the keyboard onPostExecute? I'm getting the error "can't resove method getCurrentFocus()" http://pastebin.com/ApHqGT3F (line 3) Jan 22 01:40:02 dex2jar is pretty weak ... Jan 22 01:40:40 well, then I’ll run pnf’s JEB2 demo in another VM Jan 22 01:43:03 guess i have to write my own FragmentPagerAdapter impl if I want to be able to access fragments my tag later on ... Jan 22 01:43:15 s/my/by Jan 22 01:43:57 using fragments in viewpager sucks Jan 22 01:44:05 yeah :( Jan 22 01:44:16 only reason I would put fragments in viewpager is if I need to modify menu Jan 22 01:44:29 otherwise absolutely no reason to use fragment there Jan 22 01:44:46 since it has some easy facilities for changing menu items Jan 22 01:45:36 when my SlidingPaneLayout opens up, i need a way to tell whatever fragment is being shown in PagerAdapter to hide its options meny (setMenuVisibilityHint) Jan 22 01:46:07 pretty dumb implementation Jan 22 01:46:47 at least, they could have made that static method which synthesizes tag names for added fragments public, so I could get a tag name for a position Jan 22 01:46:51 boneheads Jan 22 01:47:19 oh well, small class, easy to rewrite. Jan 22 01:53:29 interesting, even Chris Banes makes this mistake in cheese square ... Jan 22 01:53:51 in Activity#onCreate(), he news the fragments and adds then to the Adapter Jan 22 01:54:14 unconditionally. if the activity is rotated, he news() a whole new bunch Jan 22 01:54:27 even though the fragment manager would have had those in memory Jan 22 02:27:33 howdy Jan 22 02:34:25 hey alex_PP Jan 22 02:37:43 what's going on in here today? Jan 22 02:38:10 grumbling about AS & questions about handling rotation no doubt Jan 22 02:39:20 lol Jan 22 02:46:45 haha, things don't change much round here it seems Jan 22 02:47:00 except a few years ago we were grumbling about Eclipse instead Jan 22 02:49:33 http://i.imgur.com/YWB3CKv.png amidoinitrite? Jan 22 02:50:33 hey, I'm trying to figure out at what point android stopped sending exif data when you click an upload button & selected 'Camera' to take a picture Jan 22 02:50:56 do you folks mind trying this demo and letting me know if it shows your exif data? I know it doesn't work in marshmallow's camera app Jan 22 02:50:59 https://blueimp.github.io/JavaScript-Load-Image/ Jan 22 02:51:37 any help at all would be super useful! Jan 22 02:51:55 br0mahn recyclerviews in your recyclerviews ? Jan 22 02:52:59 g00s: not sure if it helps. My premature optimization is getting stronger with this layout. Jan 22 02:53:11 Any suggestions? I'm just theorizing Jan 22 02:53:44 I'm afraid if I do it halfway, i would end up getting nothing. Jan 22 02:54:15 br0mahn Beacon ? Jan 22 02:54:25 a new kind of meat :) Jan 22 02:54:45 Well, im just gonna do it anyways and learn along the way Jan 22 02:55:03 i don't think its going to end well, RV in RV Jan 22 02:55:04 Its the designer Jan 22 02:55:57 good luck, pretty tough layout :) Jan 22 02:56:04 Thank :| Jan 22 02:56:07 Lol Jan 22 02:59:06 Haven;t search for any production apps that does this though Jan 22 02:59:56 br0mahn: is this a vertical scroll inside a vertical scroll??? **** ENDING LOGGING AT Fri Jan 22 02:59:58 2016