**** BEGIN LOGGING AT Tue Dec 27 03:00:02 2016 Dec 27 03:56:11 hi can someone help me figure out why my SharedPreferences don't seem to be saving Dec 27 03:58:37 Are you committing? Dec 27 03:59:28 uhhh I dunno I read that from a PreferenceFragment it should save automatically Dec 27 04:09:16 argh I was confusing "id" with "key" in my XML file. got it. Dec 27 04:13:31 hey, anyone here familiar with floating action buttons? I'm a bit confused on how to use them with fragments/activity and which should own it Dec 27 04:31:27 wait, can I include a layout in my activity xml that has two separate parent views? Dec 27 04:33:15 when I replace a FrameLayout (i.e. supportFragmentManager.replace(r.id.whatever)) can the XML I replace it with have two parents? does that make sense? Dec 27 05:24:07 Hi, is there a example app for the Google Play Music app, I really like the UI and how seamless the downloads functionality works. I'm thinking about making a Subsonic client that looks and feels like Google Play Music Dec 27 05:55:22 hi Dec 27 06:01:04 guys, I wonder when is best time to update main class from a fragment normally. Currently I'm updating my main app configuration whenever any changes in fragment appears, but I thought maybe updating all changes together when onDestroyView() of fragment called is not a bad idea too. My fragment is something like settings view. Dec 27 06:10:13 Hi Dec 27 06:13:31 SmsManager.sendTextMessage(); calling this mulitple times seems that all messages are pushed to phones message inbox/sent messages but those are actually sent in a a long time. The problem here, any way is, first 3 messages are sent fine and the later get a red triangle error mark in inbox. Why i sthat? Dec 27 06:18:13 Because they're throttled Dec 27 06:23:26 Dagmar: throttled? Dec 27 06:23:31 Dagmar: any solution to that? Dec 27 06:32:36 morning Dec 27 06:34:33 Dagmar: what do you mean by throttled? Whats a possible solution here? Dec 27 06:43:11 anyone? Dec 27 06:52:52 Hey guys I searching for a library that supports floating button with menu like this https://forum.ionicframework.com/uploads/default/original/1/3/130fe3336b32906959f2ab00e71c276c5acc9ca4.jpg but I want also to be able to drag them and reorder plus when you hold the button I want to show a little x to delete it. Is there any library like this or I Dec 27 06:52:53 need to implemented it myself? Dec 27 06:55:37 Almis90: https://github.com/Clans/FloatingActionButton Dec 27 06:56:24 hey boomber, I found that library too but I can't find any mention about deleting or reordering menu, did you try it? Dec 27 06:57:15 no, I don't think it supports deleting buttons by swiping or recordering by dragging if thats what you mean Dec 27 06:57:39 sounds like a very specific behavior you want, you'll probably have to implement it yourself Dec 27 07:22:08 Dagmar: since when was sms max sending limit was introduced? Dec 27 07:30:50 * raoul11 thepooshes thepoosh Dec 27 07:32:41 ohithere Dec 27 07:32:44 what's news? Dec 27 07:34:32 slept late today Dec 27 07:34:39 so cold outisde **** ENDING LOGGING AT Tue Dec 27 07:36:18 2016 **** BEGIN LOGGING AT Wed Dec 28 21:15:17 2016 Dec 28 21:15:18 for simple applications it's fun Dec 28 21:16:06 The thing is, I've already implemented the database part in a ContentProvider. Thanks for the tip, though, I'll have a look at it Dec 28 21:16:50 Hey peeps, anyone know whats causing this weird effect? https://vid.me/LkSz Dec 28 21:17:14 code is here https://github.com/atbe/AndroidMovieBrowser/tree/recyclers_and_fragments/app/src/main/java/com/atbe/abe/topmovieslist Dec 28 21:20:24 atbe: no idea. The audio of the video clip added a touch of realism to it. Next time add some gasping sounds to emphasize the action of scrolling Dec 28 21:20:53 atbe: I guess views are changing size as you scroll down. Try Tools > Android > Layout Inspector before and after it happens. Dec 28 21:22:28 TacticalJoke: do you like thriller/horror movies? I don't. I didn't like that movie to be honest. I just suggested it for the subject. But maybe it's me. I don't even like Star Wars Dec 28 21:22:39 I like horror movies a lot. Dec 28 21:23:07 Though I like things not to stray too far from reality, I guess. Dec 28 21:24:44 then you may like it. The non-real part of the movie is more like science fiction than like fantasy. Dec 28 21:25:24 Dagmar: hard to maintain Dec 28 21:25:31 200 packages for 2-3 apps? Dec 28 21:26:03 my question is, which parts are 64 bit ready? Dec 28 21:26:06 its 2016 Dec 28 21:26:32 hey guys, I have an application that creates savegames as xml files and now I want it to be able to send those via bluetooth to another phone that is running the app. how can I do this? Dec 28 21:26:45 ShalokShalom: It's also not my problem. If you were competent and qualified to sit in judgment on this, you'd no longer have a problem. Dec 28 21:27:20 ShalokShalom: But you aren't and you aren't, which is why you get to simply wait until smarter people figure out the non-problem for you. Dec 28 21:28:02 omarramo: https://www.youtube.com/watch?v=6hQ87u9v7SY Dec 28 21:28:02 Dagmar: i asked a simply question, simply be silent, if you cant/wont answer Dec 28 21:28:46 omarramo: http://stackoverflow.com/a/21221034 Dec 28 21:29:08 omarramo: https://developer.android.com/guide/topics/connectivity/bluetooth.html Dec 28 21:30:22 Is it possible to display a Jpeg that is stored in a ByteArrayOutputStream directly into a ImageView ? Dec 28 21:31:02 Melatonina: thanks for the links! is bluetooth the best option for this? I want the process to be as simple for the user as possible and with bluetooth you have to pair first (or do you?) Dec 28 21:31:12 can you somehow do this via wifi? Dec 28 21:34:51 TacticalJoke nice! I used the layout inspector to see the view before->after and it seems like my relative layout which gets inflated just blows right up to full size Dec 28 21:35:52 that could be a really useful tool in the future, thanks for the tip Dec 28 21:36:48 then simple change in my layout from match_parent to wrap content fixes the bug :D Dec 28 21:40:05 The layout inspector is really handy. It used to be a pain to get it to work, but now it's integrated into Android Studio. Dec 28 21:44:12 ShalokShalom: I'm not attempting to "shame" you. I'm telling you that you're so wrong you don't even correctly understand the problem. Dec 28 21:44:31 i ask a simple question Dec 28 21:44:34 answer it or not Dec 28 21:45:06 ShalokShalom: The sensible answer is to use a distribution that has multilib support. Dec 28 21:46:30 ShalokShalom: That is assuming you even _have_ a problem. I sincerely doubt the problem has anything to do with the arch the few native tools are compiled for. Dec 28 21:46:50 i have no problem Dec 28 21:46:54 i state a question Dec 28 21:47:20 i see the depends and some of them are compiled in lib32 Dec 28 21:47:25 at other distros, like Arch Dec 28 21:48:17 i hope that here in the group is at least one person, who can clearly state, which parts of the SDK depend still on 32 Bit Dec 28 21:48:19 thanks Dec 28 21:48:57 That was made clear earlier. _Java_ is the primary dependency. Java doesn't _care_ about which arch you're on. Dec 28 21:50:51 You reading dependency information from some other distro when you don't understand it is the main problem I see here Dec 28 21:52:02 Actually attempt to install AS as your _normal user account_ and find out if you actually have a problem. Dec 28 21:57:09 SparFux-tab: Anywhere they'll know to look for them. Dec 28 22:00:07 evenin' Dec 28 22:06:56 Mavrik: hi Dec 28 22:12:09 Melatonina: hi Dec 28 22:12:28 How fast/slow should I expect lookups to a SQLite database through a ContentProvider to be? I know they are slow enough that I should use a separate thread, but are we talking a few ms, or over 50ms? Dec 28 22:12:58 wyoung: hi! Dec 28 22:12:59 totokaka: what query are you givingbit? Dec 28 22:13:09 Where 50 ms is a random threshold for noticeable delay for the user. Dec 28 22:13:13 s/b/ / Dec 28 22:13:31 wyoung, Updating a single row in a table with a few thousand rows. Dec 28 22:13:36 totokaka, depends on size of the query Dec 28 22:13:42 ^ Dec 28 22:13:43 anything between 20 and 1500 Dec 28 22:13:52 or more if you're unlucky :P Dec 28 22:13:56 totokaka: you should use an AsyncTask anyway Dec 28 22:14:07 Yeah, I don't doubt that Dec 28 22:14:10 totokaka: no that is how many records you have, what are you asking it to do in your query? Dec 28 22:14:11 totokaka: I think Carmack was working with 70 most of the time Dec 28 22:14:26 totokaka, it's usually < 300ms, but don't run it on UI thread Dec 28 22:14:33 since you may get a performance hiccup Dec 28 22:14:40 and the user will get the "app is not responding dialog" Dec 28 22:15:01 I'm just wondering if I should cache everything, or use the database all the time. If the user will notice if I use DB for most things. Dec 28 22:16:00 hrmf Dec 28 22:16:12 hard to say in general Dec 28 22:16:21 totokaka: again, it depenfs what you are doing Dec 28 22:16:25 but writes / updates directly to DB on a background thread usually are ok Dec 28 22:16:25 Take a delete button for instance - Would the user notice it if I waited for the DB stuff to finish before removing the element from the UI Dec 28 22:16:32 totokaka: do you have example code? Dec 28 22:16:38 totokaka, yeah, that'll feel laggy Dec 28 22:16:45 totokaka, remove from UI and run query on background Dec 28 22:16:55 totokaka: They might get upset if they press it twice by accident and get an error message Dec 28 22:17:06 Yeah... Dec 28 22:17:33 Hey peeps, whats the best way to preserve fragments on a ViewPager activity imbedded in a TabLayout? I don't want the fragments to get recreated every time Dec 28 22:17:37 just once Dec 28 22:18:09 Thanks for the input, wyoung, Mavrik, Melatonina and Dagmar Dec 28 22:19:32 atbe: Can you use ViewPager.setOffscreenPageLimit for that? Dec 28 22:19:35 Hi all, I don't understand why my EditText is always picking up the value from the first EditText in the list. Any ideas how to fix this? I have a list of products that displays productname, price, and quantity. The quantity information is in EditText. When I do: String qtyEnteredStr = quantityEnteredEditText.getText().toString().trim() it always gives me the value of the first EditText in the list.Here's my snippet: http://pas Dec 28 22:20:04 droidace: Your snippet URL didn't paste correctly. Dec 28 22:20:29 thanks. here http://pastebin.com/rbg0aQhY Dec 28 22:24:51 Hard to tell from that snippet. What kind of list is this? Dec 28 22:25:49 RecyclerView Dec 28 22:25:58 I populate the list using RecyclerView Dec 28 22:26:59 shall I paste the whole class? Dec 28 22:27:03 Yeah. Dec 28 22:27:50 I'm most interesting in what `this` is in `findViewById(R.id.cart_item_qty)`. Dec 28 22:29:19 http://pastebin.com/qHVGkvXQ Dec 28 22:29:21 here Dec 28 22:31:11 Is there a better way to do the following? http://pastebin.com/LdVA1CqF Dec 28 22:31:21 droidace: You're saying `findViewById(R.id.cart_item_qty)`, which calls Activity.findViewById, which should return the first view with that ID. Dec 28 22:31:48 You shouldn't be calling Activity.findViewById here. You should be finding it within a RecyclerView child, not within the entire Activity's layout. Dec 28 22:32:27 nope I am saying when I call String qtyEnteredStr = quantityEnteredEditText.getText().toString().trim() it always gives me the value of the first EditText in the List even if I click on the second or third EditText Dec 28 22:32:42 I want it to give me the value of the right edittext and not just the first edittext Dec 28 22:33:17 thanks @tacticalJoke. is there any example of how i can do that please? Dec 28 22:35:50 droidace: `onItemUpdateBtnPressed` should probably provide the input text as a parameter. The way to do this is just the standard RecyclerView.ViewHolder code. Dec 28 22:36:13 Query the EditText from the ViewHolder. Dec 28 22:36:58 My application is downloading data from the server but Android Monitor is not showing any network activity. Why is it so? Dec 28 22:37:04 okay that makes sense I think let me try that Dec 28 22:44:56 TacticalJoke so you are saying I should add a new parameter in onItemUpdateBtnPressed? Dec 28 22:45:12 a string parameter for the input text Dec 28 22:45:24 Yeah. Dec 28 22:45:42 It's not the only way to achieve this, but it might be the simplest. Dec 28 22:46:10 The other way involves the model being updated as they type into the EditText, followed by the model being queried by the Activity/whatever. Dec 28 22:49:21 Or perhaps the model could be updated on button press. Dec 28 22:51:08 okay im confuse, I wonder which solution is best. i think I like the first solution but not sure how to implement it. here is my cartadadatper: http://pastebin.com/qUT6Hnnw Dec 28 22:53:15 mOnItemClickListener.onItemUpdateBtnPressed(..., fooEditText.getText().toString()); Dec 28 22:54:13 okay Dec 28 22:55:07 I mean `holder.fooEditText`. Dec 28 22:56:20 ya I got that thanks. but now in my CartActivity in this method public void updateItem(boolean active, int position, String edittext) how do I get a reference to myedittext Dec 28 22:56:29 to get the text I want? Dec 28 22:57:46 The String *is* the text you want. Dec 28 22:58:02 You don't want a reference to an EditText in your Activity. Dec 28 22:58:16 And it's more like `String quantity`. Dec 28 22:58:47 Or whatever it is. Dec 28 22:58:50 was* Dec 28 22:59:16 okay i think im getting it Dec 28 23:02:15 okay I got it. Thanks @TacticalJoke much appreciated Dec 28 23:02:28 been stuck on this for more than 3 hrs Dec 28 23:04:08 No worries. Glad it's working. Dec 28 23:04:28 its late here. im off. thanks again Dec 28 23:20:37 I have a list of items being emitted by Observable.from(). Is there a way to force onNext() to get to the next item from Observable.from()? Dec 28 23:20:59 I want to be able to click a button and continue to the next item to be emitted Dec 28 23:39:53 For some reason 'com.android.tools.build:gradle:2.3.0-alpha2' stopped working somewhere in the last two days: "the android gradle plugin is too old". Am I the only one experiencing this? Dec 28 23:42:50 sounds unsurprising Joozey, I assume you applied an android studio update? Dec 28 23:43:18 not to my knowledge Dec 28 23:43:39 not that my memory is very reliable Dec 28 23:43:41 there's an alpha 3 and beta 1 out now Dec 28 23:43:48 what version do you have Dec 28 23:43:58 the AS version needs to match the gradle plugin version Dec 28 23:44:09 2.3 canary 2 Dec 28 23:44:24 yeah there is a new update, will updating help or make things worse? Dec 28 23:44:38 dunno, I would go for it tho Dec 28 23:44:44 ok Dec 28 23:44:46 update and change your gradle too Dec 28 23:52:22 gives me a nice dialog now with the option to update the plugin to 2.3.0-alpha2. I don't know how I could have done this manually though. Dec 28 23:53:23 Anyhow, thanks :) Dec 28 23:56:22 Joozey you are brave using the beta stuff ;) Dec 28 23:56:51 Living on the edge Dec 29 00:01:00 's probably why missingno replied :P https://upload.wikimedia.org/wikipedia/en/c/cf/Cinnabar_Island_Coast.png Dec 29 00:01:29 https://www.youtube.com/watch?v=7nqcL0mjMjw Dec 29 00:32:49 whats the best way for me to perform an action on all active fragments when using a viewpager? Dec 29 00:33:08 I tried recording the tag of each fragment but the viewpager is constantly changing the tags for some reason Dec 29 00:33:36 I record the tags in my FragmentPagerAdapter::getItem method Dec 29 00:37:39 Rephrase, whats the best way to tell a fragment to do something when it is handled by the ViewPager? Dec 29 00:38:25 You supposedly have a reference to the fragment as you have to add it to the ViewPagers adapter, so use that? Dec 29 00:38:44 Could also use an Event Bus to publish and subscribe to events. Dec 29 00:38:50 Lots of ways. Dec 29 00:39:01 sharedPreferences listeners even Dec 29 00:39:43 event bus, sharePreferences listeners. Cool, will look into both of those. My goal is to have the fragments know when network state changes and act when it does Dec 29 00:40:41 Check this out: https://github.com/pwittchen/ReactiveNetwork Dec 29 00:41:04 Would provide a reactive way to know network state. Dec 29 00:41:54 nice! orbyt_ thanks for that. Dec 29 00:42:46 Can anything protect an ASyncEvent from connectivity changes? Dec 29 00:43:29 as in halt gracefully? Dec 29 00:43:52 orbyt_: I think you should create a PublishSubject and call its onNext() method when the button is clicked Dec 29 00:46:53 Wow, has the android developer fee always been $25 dollars? I always though it was $50 Dec 29 00:46:56 usd Dec 29 00:48:09 it depends on the developer, I guess Dec 29 00:54:58 atbe: You are probably talking about the "Google Play publishing fee" not a "developer fee". You don't need to pay to be a developer. And there is a free market for developers Dec 29 00:55:18 yes, the "Google Plat publishing fee" Dec 29 00:55:58 Melatonina Heres the current code: http://stackoverflow.com/questions/41371320/forcing-onnext-upon-button-click Dec 29 00:56:27 Looking at a PublishSubject, it looks like to pass in a Subscription into its subscribe method Dec 29 00:56:46 But I am not sure that it will work how you think it will with my setup. Dec 29 00:59:07 your original question here was not as clear as your StackOverflow question. My suggestion doesn't fit your actual problem and I just started to use RxJava so I don't have experience of this kind of usage, thus no proper suggestions. Sorry Dec 29 01:00:45 but unless there is something in RxJava that allows you to interrupt computations, I don't think what you want to do, as you are trying to do it, fits the reactive model of computations Dec 29 01:01:42 you may want to use a mix of reactive programming and explicit threading or something like that Dec 29 01:02:49 There should be a way to use some type of merge(), compose() or some type of flatMap() to combine them, I am just not sure what it would look like at the moment. Dec 29 01:03:06 after all "reactive" and "computations so long that you may want to interrupt them" aren't concepts that mix well Dec 29 01:10:21 Melatonina Not really. There are many scenarios where you would want to interrupt something, I dont think it is a reactive anti-pattern. Hence why operators like timeout() and more exists. Dec 29 01:17:43 orbyt_: ok. Thanks. I just added RxJava to my project 3 days ago. I just scratched the surface of it. **** ENDING LOGGING AT Thu Dec 29 03:00:00 2016