**** BEGIN LOGGING AT Fri Feb 10 03:00:02 2017 Feb 10 03:18:00 "Arby's Probes Possible Data Breach Affecting 355,000 Credit Cards " ... were those curly fries worth it ?!?! Feb 10 03:34:33 http://arbys.com/our-menu/signature-sandwiches/reuben Feb 10 03:35:07 well i'm glad you posted a link, i was scared to ask what an arby was Feb 10 03:35:49 heh, US fast food... their reuben isn't well known but I love em Feb 10 03:41:19 orbyt_: oh i see the hand tool you're talking about. in Layout Design. unfortunately I'm looking for one in Text Design Feb 10 03:42:10 why do you want this? i don't get it ... Feb 10 03:42:22 i'm thinking more along the lines of the hand tool in Acrobat Feb 10 03:42:59 bankai_: because i often have the right edge of the editor window beyond the edge of my monitor and need to scroll up/down in the text Feb 10 03:43:37 bankai_: working on a 15.6" laptop display. often have to move the window around so I can e.g. read a document on the left while editing Feb 10 03:43:55 don't you have a scroll wheel (or similar)? Feb 10 03:44:07 bankai_: no i have a trackpoint Feb 10 03:44:22 that would fit under the 'or similar' Feb 10 03:44:39 scroll functionality is deliberately disabled because i use middle-click for a lot of other things Feb 10 03:45:01 you're too hard on yourself Feb 10 03:45:07 i don't even know if it supports middle-click scroll toggle under Linux anyway Feb 10 03:45:23 usually, shift+mouse wheel will scroll horizontally Feb 10 03:45:54 omg i just noticed! it does actually scroll. doh! Feb 10 03:46:08 -_-# Feb 10 03:46:12 if i hold middle button and move trackpoint it scrolls! Feb 10 03:46:15 Does AS override some colors from "AppTheme" on a default project template? Feb 10 03:46:17 LOL Feb 10 03:47:01 i don't think so snapfractalpop Feb 10 03:47:08 efloid: which DE do you use? Feb 10 03:47:19 bankai_: KDE Plasma Feb 10 03:48:02 adq: I used the Theme Editor to mess around with some colors, and I can't get back to the original (blue and darkblue primary).. there seems to be some kind of bug with hitting undo Feb 10 03:48:02 btw scroll is not really the same as panning, but i'll take it. Feb 10 03:48:24 adq: any idea how to reset it back to the original settings? Feb 10 03:48:28 some browsers also do not have hand tool extension so i can only scroll, not pan Feb 10 03:52:20 capella i didn't know they had reubens, i like those too. damn wish i didn't know :D Feb 10 03:54:07 yah g00s, my secret stash, only fast source for a hot one without going to a deli ☺️ Feb 10 03:54:27 'reuben with curly fries, plz' Feb 10 03:55:50 ....... so the localbroadcastmanager is working with my brdcastreceiver when onStop() but it doesn't work with onDestroy() ??? when it's swiped away ? Feb 10 03:56:15 is the context still saved in lifecycle in onStop() but not onDestroy() ?? what's this about Feb 10 03:57:15 "what's all this about Eagle rights?!" Feb 10 03:57:43 you voted for hillary didnt yuo Feb 10 03:58:06 and you're asian Feb 10 03:58:26 google developers Feb 10 03:58:39 making things harder and harder for new versions Feb 10 03:58:48 with stupid security mechanisms Feb 10 03:59:07 make sure you use Rxjava guys its awesome Feb 10 03:59:18 paint the world with observables Feb 10 03:59:23 and slide on dildos Feb 10 03:59:27 the only security mechanism we need is a Great Wall between USA and Mexico. Feb 10 03:59:30 just like you're painting the channel with carriage returns? Feb 10 03:59:38 And we'll make them pay for it Feb 10 03:59:59 well its the biggest key after space Feb 10 04:00:30 you voted trump didn't you Feb 10 04:00:38 i certainly did Feb 10 04:00:46 he knows, that was a rhetorical Feb 10 04:03:25 cut the shit you guys, or trump is going to send the feds Feb 10 04:03:32 even if you don' thave oid :) Feb 10 04:03:36 *oil Feb 10 04:03:43 ok Feb 10 04:04:30 capella i hear some in the trump admin are using Confide so they leave no paper trail :D Feb 10 04:04:35 i have olive oil in the pantry, you reckon he's interested in that? Feb 10 04:05:06 snapfractalpop, ah no idea sorry, i always edit styles.xml by hand Feb 10 04:05:10 pretty much everything trump accused hillary of, we know its projection and that he's guilt or will be of the same things Feb 10 04:05:29 bankai_ real olive oil? you know that stuff is rare ... Feb 10 04:05:48 why is it rare? Feb 10 04:05:49 when will anonymous get off their butts and hack his twitter accounts... humm maybe they already have Feb 10 04:05:55 evoo with rosemary on toast Feb 10 04:05:59 Melatonina because most olive oil is fake Feb 10 04:06:16 bankai_ if twitter is in business long enough lol Feb 10 04:06:26 is this /pol/? Feb 10 04:06:42 g00s: we are pretty strict about olive oil here Feb 10 04:06:46 no clue, but for sure ppl are extremely biased, on one side or the other Feb 10 04:07:09 Melatonina where is here ? Feb 10 04:07:16 g00s: Italy Feb 10 04:07:28 Melatonina oh, you guys have huge problems ... Feb 10 04:07:44 if fact, italy has the worst problems with olive oil. unless you know the guy pressing it for you Feb 10 04:07:51 adq: I'm trying out the theme editor for the first time.. it seems like a cool idea, but I'm just monkeying around pushing buttons Feb 10 04:08:05 I always assumed that I could go back with undo.. thought wrong, I guess Feb 10 04:08:12 ahah it's AS Feb 10 04:08:21 should have put this project in version control Feb 10 04:08:23 i can make undo/redo fails Feb 10 04:08:23 oh well Feb 10 04:08:32 it's... let's not start on that Feb 10 04:08:42 I know how to get it back though.. I have an idea Feb 10 04:09:02 I'm going to make a new project, and then diff the xml files Feb 10 04:09:51 that should work, or you could remove everything, except colorPrimary & co Feb 10 04:09:57 and keep the base theme maybe Feb 10 04:10:10 s/base/parent/ Feb 10 04:10:17 adq were we talking about tensorflow and rpi a few days / weeks ago ? Feb 10 04:10:28 tbh, i never use the sample project, so no clue what they put by default too Feb 10 04:10:30 g00s: companies here get busted for selling "virgin" oil labeled as "extra virgin" oil Feb 10 04:10:37 nope with me g00s but you did Feb 10 04:10:47 they release something for internet things Feb 10 04:10:50 released* Feb 10 04:10:53 Melatonina also dilluting it with cheaper oils Feb 10 04:11:28 ppl who knows olive oil would notice Feb 10 04:11:40 here in the south of france, it's also something important and over used Feb 10 04:11:53 (and healthy) Feb 10 04:12:03 yeah the real stuff is healthy Feb 10 04:12:03 g00s: we have problem with oil made with non-Italian olives. But if you buy olive oil you get olive oil here. Feb 10 04:12:48 of course there will always be people trying to sell fake products Feb 10 04:15:04 One of the good thing of EU are regulations and checks about foods Feb 10 04:16:53 Lots of people feared TTIP because EU would have to weaken its regulations and standards Feb 10 05:08:48 is there a way to restart the application after onDestroy() or a way to make the context statically stored like in sharedpreferences in a world readable way perhaps ?? Feb 10 05:10:03 http://logs.nslu2-linux.org/livelogs/android-dev/ Who's the one doing the logging? Feb 10 05:15:19 shaking all over Feb 10 05:15:53 Application#onDestroy()? Feb 10 05:16:08 yes Feb 10 05:16:43 I'm not sure I'd like to run an application that restarts itself Feb 10 05:17:09 You should state your X problem Feb 10 05:17:37 its a delivery on demand platform so you actually want it to restart itself when you terminate it while you're online Feb 10 05:17:47 it minimizes the online status to notification panel Feb 10 05:17:50 and terminates Feb 10 05:18:20 and I want this new small innocent feature Feb 10 05:18:23 to be included Feb 10 05:18:27 If I terminate it, I'm sure I want it terminated Feb 10 05:18:43 and most of the times Android terminates applications, not people Feb 10 05:19:07 I still don't understand why you want it to restart Feb 10 05:19:22 if you explain it maybe people can give you a meaningful suggestion Feb 10 05:19:46 it's an app full of surprises Feb 10 05:19:55 small things in life make you happy Feb 10 05:20:20 ok, I hope you will be happy without my help because I can't help you Feb 10 05:23:37 This year I learn to not trust two kinds of people on IRC: 1) people who contact you privately without asking permission first 2) people who use random character sequences as their nicknames Feb 10 05:24:18 /query Melatonina Feb 10 05:25:09 those are not healthy assumptions Feb 10 05:26:50 randomness brings hilarity and mirth Feb 10 05:27:35 and joy Feb 10 05:27:39 love of life Feb 10 05:28:00 isolating yourself and not helping people will not get you anywhere my friend Feb 10 05:28:31 but youre probably european, I understand your pain Feb 10 05:31:24 QED Feb 10 05:32:14 ok you got me Feb 10 05:34:06 ok so there is the option to enable "always online" so the users want to keep the notification which says "mate you're online" Feb 10 05:34:16 and as soon as they get a job they want the app to start itself Feb 10 05:34:19 even when they terminate it Feb 10 05:34:27 I think this is a legitimate case Feb 10 05:35:15 You should probably use a service and notifications Feb 10 05:35:31 there is a broadcastreceiver Feb 10 05:35:53 which can start from onStop but not onDestroy Feb 10 05:36:25 because it's a localbroadcastreceiver, and a global normal broadcastreceiver doesn't work at all because of the GcmIntentService running in background Feb 10 05:37:52 the one that handles the received and opened notifications Feb 10 05:38:13 https://www.youtube.com/watch?v=xWgxjc7kv3Q Feb 10 05:51:35 not to mention people who both have a random sequence of characters as nickname AND messages you privately without asking permission first Feb 10 05:57:49 CedricBeust: I'm still receiving this spam from sdfgsdfg http://imgur.com/a/iQn39 Feb 10 05:58:23 Just ignore him? Feb 10 05:59:36 No need. He stopped Feb 10 05:59:50 After almost ten minutes Feb 10 06:11:53 haha Feb 10 06:11:59 looks like relations to me Feb 10 06:16:54 squ: what do you mean? Feb 10 06:17:29 relations between you two Feb 10 06:17:41 because I don't receive private messages Feb 10 06:21:08 I just attempted to help him. He could not define your exact problem so I gave up and he started to write that stuff. It's not something I would call a "relation" Feb 10 06:21:09 squ forever alone ? :( Feb 10 06:21:20 Anyway, he's gone Feb 10 06:36:02 hey guys im looking at creating a background service/app that will get push notifications from an amazon SNS queue. would a background service be sufficient or do i need to creat a proper app that runs in the background? Feb 10 06:50:23 My app's UI thread does a ton of layout and blocks the render thread from running causing sloooow performance, any general ideas on how to improve the layouts? Feb 10 06:58:01 nukeu666: why is the layout so complex? Feb 10 06:58:16 nukeu666: does it fit on one screen? Feb 10 06:59:12 Melatonina: its a list of buttons and icons, will not fit a page Feb 10 07:01:31 nukeu666: use a recycler view, possibly with different kinds of item layouts Feb 10 07:01:39 Melatonina: trace looks like this - http://imgur.com/a/K79qO , it's stuck with lots of inflates, each button is a different view Feb 10 07:01:52 nukeu666: they will be inflated only when needed Feb 10 07:02:31 nukeu666: a recycler view of that kind is slightly more complex than your usual recycler view but it's not overly difficult Feb 10 07:03:27 Melatonina: ok thanks, ill take a look at recycler Feb 10 07:03:50 nukeu666: you are welcome Feb 10 07:04:14 nukeu666: can you post a screen shot? Feb 10 07:05:13 hey Melatonina :) Feb 10 07:05:58 nukeu666: if each item has the same layout, it's just your typical recycler view Feb 10 07:06:31 Melatonina: http://imgur.com/vLdnNku , each button is a view and it gets slow with fragments with many buttons Feb 10 07:07:44 nukeu666: yes, it will be more complex than a typical recycler view but you'll find tutorials on how to do it Feb 10 07:07:58 Melatonina: got a question for you i have a particular scenario where I want to send notifications to a particular batch of company mobiles through the amazon SNS service. what kind of app do i need on the phone to be able to subscribe for the notifications? Feb 10 07:08:12 a background app that interfaces with amazon's sns or would a service suffice? Feb 10 07:09:02 Melatonina: thanks, checking it out Feb 10 07:09:56 eagles0513875|2: probably an app with an activity to subscribe and a service to listen but I don't know Amazon's SNS. Sorry. I can't help. Feb 10 07:10:50 dont worry amazon sns is a simple notification service like push notifications etc. I have the SDK for that, but my issue is that the end users dont need to see the app its kind of like a forced requirement for them to be subscribed Feb 10 07:11:00 as i do not want them tampering with the app Feb 10 07:11:20 unless you advise i put some sort of password to be able to make changes to any of the app's settings? Feb 10 07:11:51 <_genuser_> hey guys, quick question: getString(R.string.value); I have on the top import static android.provider.Settings.Global.getString; Feb 10 07:11:54 <_genuser_> does it require something else? Feb 10 07:13:58 <_genuser_> nevermind, mistake. getString should be on a context, by directly as a static. Feb 10 07:14:09 <_genuser_> *not directly as a static. Feb 10 07:21:15 eagles0513875|2: I heard you can handle out a device with some applications locked Feb 10 07:21:33 eagles0513875|2: but I don't know anything more Feb 10 07:21:41 Melatonina: i have done so thing is we have some smart asses that manage to uninstall the application Feb 10 07:21:57 i have one other thing to try out, but still need to send it through my testing pipeline. Feb 10 07:22:14 might have to use a combo of a launcher (lightening launcher) and an app lock mechanism Feb 10 07:33:58 So I have this utility class that can perform some sort of operation and report back the result given a Callback. I'd like to give the user the option of having this callback run on either the UI/MainThread or a given thread. How should I do this? [...] Feb 10 07:34:36 ^ Feb 10 07:34:44 Err, wrong window. Feb 10 07:35:30 A) Should I use performAction ( Args args, Callback callback, Handler handler ) where the user can specific a handler so the performAction will do handler.post( () -> callback(result) ); Feb 10 07:36:10 1) Or should it rather be performAction ( Args args, Callback callback, Looper looper )? Feb 10 07:36:17 argh.. A/B Feb 10 07:37:37 And perhaps what confuses me the most right now: How do I create my own Handler instance or Looper instance that is capable of handling Runnables posted to it? Is there some default implementation that works out of the box? Feb 10 07:38:15 Maybe I've misunderstood the relationship and purpose of Looper/Handler Feb 10 07:38:57 Zta77: you could use a PublishSubject from RxJava to publish the result and use observeOn() to select the scheduler on which the event is received Feb 10 07:39:07 that's just one way to do it Feb 10 07:43:24 Zta77: you need to create a new thread and run the looper inside of it Feb 10 07:44:28 Zta77: here's how to create and run a Looper thread: https://developer.android.com/reference/android/os/Looper.html Feb 10 07:44:28 Melatonina: Out of the question. I'm not going to introduce a library and a completely new coding pattern just because of this. But it would be interesting to know how RxJava handles this, because obviously it has a background worker thread. Feb 10 07:46:30 Zta77: Handler (of a Looper) is the way to post runnable on a looper queue Feb 10 07:46:51 Melatonina: Yes, that implements the Handler's handleMessage(Message msg). But is all I want to do is: if (msg instanceof Runnable) { ((Runnable)msg).run(); }. So I was wondering of there was a default implementation that does this, and handles everything else I haven't thought of. Feb 10 07:48:27 Zta77: sincere I found little use case for a Looper-base thread Feb 10 07:48:45 I would review and/or state what the "other thread" is Feb 10 07:50:00 Hello, I'm having problem to encrypt a message from perl to a android app. https://gist.github.com/varazir/9fdafc85026553a9ac9cfc8afa19eda8 and the error the app gives me is error:1e000065:Cipher functions:OPENSSL internal:BAD DECRYPT. I'm not the dev of the android app and the dev has problem to TS the problem too. Could anyone give me a hint where I could start looking for a solution ? Feb 10 07:50:27 I mean, since there's post(Runnable r) it seems like a core feature of the Android Messaging system. So I thought it would be easy to just out of the air fetch a new Looper-thread that can run my runnables. Feb 10 07:51:03 Melatonina: I just want background thread to run Runnables =) Feb 10 07:51:48 Varazir: contact the dev that there is a bug Feb 10 07:51:57 Zta77: why don't start an AsyncTask for each? Feb 10 07:52:25 eagles0513875|2: dev don't know how he can help me trubleshoot the problem Feb 10 07:52:45 eagles0513875|2: is there a bug on android och perl side do you think ? Feb 10 07:52:53 i dont know to be honest Feb 10 07:53:12 eagles0513875|2: the decryption works fine from other platforms and between android apps Feb 10 07:53:27 eagles0513875|2: ok Feb 10 07:53:58 you say other platforms what devices? it could be a specific bug to your hardware though Feb 10 07:54:01 not sure to be ohnest Feb 10 07:54:03 honest Feb 10 07:54:48 works from the Chrome addon the dev have created. Devices I mean if I send a message from one phone to another it works Feb 10 07:55:09 ok Feb 10 07:55:15 im not going ot be much help here Varazir Feb 10 07:55:22 eagles0513875|2: np Feb 10 07:56:55 Zta77: otherwise create a Looper-base thread. Handler has a post(Runnable) method Feb 10 07:58:07 Zta77: what more do you need? Feb 10 08:03:05 Zta77 there is HandlerThread Feb 10 08:04:25 Good to know. Everything already wrapped up for you Feb 10 08:07:17 hi g00s, mela Feb 10 08:07:32 hey raoul11 Feb 10 08:07:56 the bliss of androiddev and memoryleaks Feb 10 08:08:07 splendid way to start the weekend Feb 10 08:09:54 raoul11 are you using leak canary ? Feb 10 08:10:06 yes Feb 10 08:10:34 like it? i haven't used it yet Feb 10 08:10:40 * g00s doesn't leak ahaha Feb 10 08:10:45 am not sure yet Feb 10 08:10:48 its google's shit that leaks :D Feb 10 08:10:52 indeed Feb 10 08:10:57 the maps object atm g00s Feb 10 08:11:09 oh yeah ... Feb 10 08:11:20 inflater.inflate also fucks shit up for me Feb 10 08:11:23 donno why yet Feb 10 08:11:34 its so random i can barely generate a crash Feb 10 08:15:56 ahh random bugs Feb 10 08:16:06 i have random bug for ya Feb 10 08:16:33 randoms but all related to inflater Feb 10 08:16:53 in various places on the app, when trigger switchin between activities Feb 10 08:17:36 my bug happens 99% for samsung, affects about 1% users, its Unknown authority blah when trying applyBatch to contentProvider Feb 10 08:17:53 but contentProvider has this authority and it works most of the time Feb 10 08:18:13 it seems like ContentProvider hasnt been initialized yet somehow Feb 10 08:18:29 what a suprise, mine happens on samsung as well Feb 10 08:18:53 the other 1% are some random low-end phones Feb 10 08:18:56 how do u deal with it? Feb 10 08:19:18 im dealing with it right now. i dont know where to start Feb 10 08:19:22 SO isnt helpful yet Feb 10 08:19:32 try/catch everything? Feb 10 08:19:51 retry again in n milliseconds? Feb 10 08:20:03 thats one things im considering... Feb 10 08:20:04 you have to be wise Ashiren Feb 10 08:20:37 but in this project we have so many random try catch i fear of using another one Feb 10 08:22:34 hi raoul11! Feb 10 08:24:21 Ashiren man you get the coolest bugs Feb 10 08:29:55 g00s: HandlerThread doesn't implement a handleMessage afaik Feb 10 09:09:53 leakcanary works great, 1 memoryleak gone, now 3000 more to follow Feb 10 09:11:17 guttenshabas Leeds Feb 10 09:19:24 and shabbat shalom to you... Feb 10 09:55:53 Hey, someone knows what that thing is called, when you have a 3x3 grid of items and you click on one, and it moves into a new layout, like item picker but animated. Feb 10 10:12:29 interesting, a lot of the leaks originate from anonymouse onClickListeners Feb 10 10:14:24 depends on what you do with those listeners... Feb 10 10:15:09 interfaces between a rv to the parent Feb 10 10:15:22 astroduck: shared transition Feb 10 10:15:48 but, registering the listener at the class level and setting it to null on the onDestroy seems to remove the leak Feb 10 10:18:45 "at class level" what? Feb 10 10:21:25 possible leaks with anonymous classes are caused by them living longer than the creating class and that only happens if you put them somewhere that's not owned by the creating class Feb 10 10:22:16 because anonymous classes implicitly contain a reference to their parent class Feb 10 10:42:46 squ: Shared transition is to a different activity, right? I just want it to move to different viewgroup Feb 10 10:44:01 astroduck: https://www.youtube.com/watch?v=4L4fLrWDvAU Feb 10 10:44:24 look if they mention what you need Feb 10 10:50:59 Is there any way to let rxjava retry (in case of an error) aslong as the max has not been reached? Like having a Thread for 30 Seconds which stops the retry/task as soon as it reaches sucessfull OR the time is over? Feb 10 10:54:22 squ: Okay, thanks :) Feb 10 11:06:36 Hi, when I’m using Context.getCacheDir() or Context.getExternalCacheDir() in my android app, it both returns the same path and it’s a path on an sdcard that isn’t in there. How can I resolve this? Feb 10 11:08:24 It’s Android Kitkat and it’s trying to access /storage/sdcard1 which is an empty readonly file system Feb 10 11:11:42 MadWasp, read the documentation: https://developer.android.com/reference/android/content/Context.html#getExternalCacheDir() Feb 10 11:12:26 i did Feb 10 11:13:26 have you check if isExternalStorageEmulated(File) is true? Feb 10 11:14:23 have you sufficient privilege to be sure the path isn't there instead of "not available to your user"? etc Feb 10 11:14:38 is it a weird cheap device with a custom rom? Feb 10 11:14:59 it is a weird expensive device with a custom rom :P Feb 10 11:45:22 e\\\ee Feb 10 11:45:29 lala Feb 10 11:45:42 my app got rejected when tryign to unpublish it Feb 10 11:45:44 sigh Feb 10 12:02:11 Can I use getApplication() or getActivity() from an AppWidgetProvider? Feb 10 12:16:32 My app has a list of job postings displayed in a widget. I want to update the list daily in the background (even if the app isn't running). Not sure if services, alarm manager, or job dispatcher would be appropriate. Tried using sync adapter but couldn't get it to work. Would appreciate some input. Feb 10 12:16:51 hi, I changed my project to use the Jack compiler, and it works but I've noticed that lambdas don't give trace file and line at all Feb 10 12:17:27 This makes debugging very difficult. Is there any way to use lambdas while also having full debugging information ? Feb 10 12:22:15 This stackoverflow answer suggests adding "-g:lines,source,vars" to javac compiling options, but I can't find where I should add them in Android Studio: http://stackoverflow.com/questions/30424735/how-to-locate-lambda-when-exception-happens Feb 10 12:58:14 or should I just stick with Java 7? Feb 10 13:16:10 Hi all, I hope you are dealing well with android development, Unfortunately I am having a problem with LinearLayout. Can I publish stackoverflow link here? Feb 10 13:17:19 yes Feb 10 13:17:57 http://stackoverflow.com/questions/42131488/android-layout-correct-in-designer-but-wrong-in-device Feb 10 13:18:34 I am going crazy because the xml looks ok Feb 10 13:18:55 in designer Feb 10 13:21:38 I'd think for that design you'd just give the list a weight and let the input layout on the bottom wrap its content Feb 10 13:21:57 yeah Feb 10 13:22:16 like you do in the inner linearlayout Feb 10 13:22:21 but I want it using layout_weight Feb 10 13:22:43 Why? Feb 10 13:22:48 where is the problem in above code Feb 10 13:23:05 because it scales better Feb 10 13:23:55 I don't understand the logic there, you want to give the input possibly more or less space than it needs to show the input and button? Feb 10 13:24:46 I am not saying it would necessarily fix this, but logically it feels more correct. Feb 10 13:25:03 but why is showing correctly in all designer devices Feb 10 13:25:39 Because they are showing outside of its eventual parent layout Feb 10 13:26:18 probably because the designer doesn't have the tabs Feb 10 13:26:40 you have the photos Feb 10 13:27:25 but i think when we say match parent, the layout will match parent Feb 10 13:27:50 On my side it looks logic Feb 10 13:28:06 but perhaps i am wrong Feb 10 13:29:46 to be honest, I'd just do it in a relative layout Feb 10 13:30:53 the relative layout is not scalable Feb 10 13:31:48 for me it is important to know whats wrong Feb 10 13:32:29 "not scalable"? what? Feb 10 13:32:33 how is it not scalable? Feb 10 13:32:55 http://4190f464c4eca0a5.paste.se/ here you go Feb 10 13:33:00 scales fine Feb 10 13:33:49 but to really figure out what's wrong, I'd need a codebase I can compile, run and debug Feb 10 13:33:55 i mean it doesnt scale well in different screen sizes. I am used to use percentages and layout_weight support this Feb 10 13:34:51 ok i will send it, thank you for trying to help me Feb 10 14:02:13 it is taking too long to upload Feb 10 14:02:27 heh Feb 10 14:03:06 http://imgur.com/a/Xog3L finally achieved perfect padding with the grid layout manager Feb 10 14:03:10 can you please use the given xml on a tabbed activity Feb 10 14:04:54 adq, cool Feb 10 14:05:47 My screen goes black when doing a finish on one Activity, even though neither the Activity that gets finished nor the one that gets resumed does anything on the UiThread. How can I fix this? Feb 10 14:06:01 that is pretty adq Feb 10 14:06:39 hows that emulator so fast /: Feb 10 14:07:07 it's the regular avd (API 25) Feb 10 14:07:14 not even using the newest beta one Feb 10 14:08:16 also i profiled a lot everything, almost no waste of cpu Feb 10 14:08:35 no unnecessary overdraw, etc Feb 10 14:09:04 teach me Feb 10 14:09:18 tell me yer dirty avd secrets Feb 10 14:09:31 i'm not using a macbookpro Feb 10 14:09:43 :)) Feb 10 14:09:56 lol Feb 10 14:10:00 neither do i Feb 10 14:10:08 though i am considering gettin one Feb 10 14:10:17 well, is your avd spiking your cpu? or is it your app which is slow in the emulator? Feb 10 14:10:54 in both case, you need to profile to understand where the bottlenecks are, and then fix those bottlenecks when possible Feb 10 14:10:56 AVD takes half a day to start here :T Feb 10 14:10:58 Though not laggy Feb 10 14:11:10 wow half a day, maybe you need to use an x86 one with virtualization Feb 10 14:11:14 utilizing about 6% of the cpu Feb 10 14:11:16 because only arm are damn slow Feb 10 14:11:28 then it's probably your app raoul11, i don't even have a decent gpu Feb 10 14:11:32 (it's a very old ati card) Feb 10 14:11:39 This is x86 with HAXM, but yeah Feb 10 14:11:41 u should do a blog about it adq Feb 10 14:11:43 It's cumbersome-ish Feb 10 14:11:49 my gpu is also old Feb 10 14:12:45 runs 10x faster on a sgs3 Feb 10 14:14:54 nice, another leak gone Feb 10 14:16:30 gotta say that leakcanary is damn useful Feb 10 14:16:58 almost everything made by square is pretty cool Feb 10 14:17:08 i said almost because i haven't use everything they do lol Feb 10 14:17:58 its amazing what impact they have on androiddev Feb 10 14:18:58 dagger <3 Feb 10 14:19:05 but yes, +1 Feb 10 14:22:47 zharf it is finishing upload Feb 10 14:24:45 where is it Feb 10 14:25:14 https://pavelfatin.com/typing-with-pleasure/#total-latency cool article Feb 10 14:25:17 poor AS Feb 10 14:25:33 (since AS can and is only slower than IDEA) Feb 10 14:26:52 https://drive.google.com/file/d/0BwPDaPRN_jldeW93allSbmtBN1U/view?usp=sharing Feb 10 14:27:31 thank you for the help Feb 10 14:27:59 next time you can remove the build directories to make it smaller :) Feb 10 14:28:42 What's idea (zero latency) Feb 10 14:29:24 https://blog.jetbrains.com/idea/2015/08/experimental-zero-latency-typing-in-intellij-idea-15-eap/ <-- Interesting, wasn't aware Feb 10 14:32:13 https://code.google.com/p/gmaps-api-issues/issues/detail?id=8596 Feb 10 14:32:24 zharf ok thank you Feb 10 14:33:48 edi_, did you notice that your actual list thing is on section 2? Feb 10 14:35:02 you mean in xml Feb 10 14:35:09 no, in the application Feb 10 14:35:33 you put the fragment on position 1 which is second page with 0 indexing Feb 10 14:36:19 Hello Feb 10 14:36:27 Did anybody can tell me where i should start to learn to connect to a server in android? Feb 10 14:36:29 i mean, from one app, where i should look or what should i search to learn how to connect to a server? Feb 10 14:36:32 thanks in advance Feb 10 14:36:48 yes i know this Feb 10 14:37:01 I'm learning programming but i haven't choose a language yet. I just learned the basics and can do simple flowcharts (object oriented) that solves easy problems. My goal is to be able to make android apps. I think im ready to start with an specific language. What language that should be? what software should i use to program in that chosen language -im guessing i should be programming in java, but i am not sure. I can use eithe Feb 10 14:37:18 my fault see at section 2 Feb 10 14:37:21 edi_, just wondering because your screenshot was from section 1, which is essentially useless Feb 10 14:37:53 the second linearlayout is not showed properly Feb 10 14:38:00 your problem is in activity_main.xml though Feb 10 14:38:03 go native wendico Feb 10 14:39:12 i just need a pair of basic concepts to start looking Feb 10 14:39:22 i make C# client-server apps in a daily basis Feb 10 14:39:25 but i'm new in android Feb 10 14:39:48 so, i want to know like an orientation of what should i start learning to actualy connect an android app with a server Feb 10 14:39:53 edi_, http://eclipser.xmms2.org/problem.png Feb 10 14:40:07 see how the viewpager goes below the device bounds Feb 10 14:40:17 raoul11: what do you mean with go native? thank you Feb 10 14:40:17 o sorry the image is wrong, visit section 2 and you will see the problem Feb 10 14:40:29 java Feb 10 14:40:46 (I just hate coordinatorlayout...) Feb 10 14:40:57 i did not modify view pager Feb 10 14:41:10 edi_, I know, the template you created it from is crap Feb 10 14:41:28 edi_, http://stackoverflow.com/questions/35358174/viewpager-is-being-pushed-out-of-the-screen-coordinatorlayout-design-library here's the same problem Feb 10 14:42:02 edi_, http://stackoverflow.com/a/40000060/857853 seems to fix the problem Feb 10 14:42:23 maybe Feb 10 14:44:05 have you tried it Feb 10 14:45:51 If the goal is Android, java is the way to go, wendico. Feb 10 14:52:43 zharf, thank yo very much Feb 10 14:52:57 it worked Feb 10 14:53:43 edi_, you should try to use the layout inspector Feb 10 14:56:23 t Feb 10 14:56:48 zharf, thank you for your time Feb 10 14:59:08 edi_, you can find the layout inspector in the android monitor tab on the right side buttons just above the question mark Feb 10 15:02:31 zharf, I found it. Feb 10 15:04:37 edi_, you should make some sort of answer for the stackoverflow question and close it so that it doesn't linger around unanswered Feb 10 15:07:59 ok i will put your name Feb 10 15:18:31 I get an exception when trying to access a raw resource. Here´s the code and crash https://gist.github.com/Syzygy2048/365eb238a06e3e3cca0522f4591a58e0 Feb 10 15:19:02 this happens since I started to use a raw-de folder. (I also have a regular raw folder) Feb 10 15:24:33 If I check that resource id from the exception in my R file, it´s valid Feb 10 15:40:32 What would the disadvantage be if proguard made private/protected/package level things public in order to cut down on method count? (Except that if you didn't have a method count problem, you may not be using proguard anyway) Feb 10 15:42:20 explodes, it also cuts down on app size, so why would you not use it for production? Feb 10 15:43:43 no disadvantage Feb 10 15:44:10 it's mainly for you and the compiler when you're developping, it's not a security enforcement at all Feb 10 15:44:31 and i doubt it would impact performance negatively to raise something private or protected into public Feb 10 15:44:52 but i'm no java expert, so take that with a grain of salt Feb 10 15:53:50 for some reason the debugger (watches) still sees R.raw.file_de even though now only R.raw.file exists... (But it doesn´t exist if I try to access it via watches) Feb 10 15:54:06 I did clean the project though Feb 10 15:55:06 Thank you for your answers: Wintereise, raoul11. I was in launch time, but i havent miss them :) Feb 10 15:55:16 lunch* Feb 10 15:55:38 wendico if yer into online tutorials, thenewboston on youtube Feb 10 15:55:43 Any software do you recommend to start learning Java right away Feb 10 15:55:57 raoul11: looking at it, ty Feb 10 16:05:03 http://imgur.com/a/c8trF why do I get a resource not found exception? it´s clearly there... Feb 10 16:06:26 Syzygy: Using Instant Run? It can fail like that sometimes Feb 10 16:06:42 instant ruin Feb 10 16:06:44 I already cleaned the project and restarted android studio Feb 10 16:07:45 he told you about instant ruin, not about cleaning and restarting AS Feb 10 16:07:57 while at it you could reinstall your OS too Feb 10 16:08:13 i hate those pseudo-fix when they say restart AS, invalidate cache & restart & stuff Feb 10 16:08:19 it's not even a fix Feb 10 16:08:44 either way, it´s clearly not doing an instant run after restarting AS Feb 10 16:09:03 but your bottom bar message says the contrary Feb 10 16:09:20 why don't you want to just try without? Feb 10 16:09:21 Why are you definining your own index numbers for the resources? Feb 10 16:09:32 This doesn't seem reasonable Feb 10 16:09:33 i don't think he is defining them, it's the R.* generated Feb 10 16:09:41 Dagmar, I´m not Feb 10 16:09:44 Ahhh Feb 10 16:09:51 or maybe, you're giving the wrong type of resource Feb 10 16:10:33 got it... seems like I didn´t have that one file in the default localization Feb 10 16:11:19 lesson learned then, always provide default resources and then localize them Feb 10 16:11:40 I thought I had... but I guess that one file was missing Feb 10 16:11:52 yeah, AS could warn about idk Feb 10 16:12:09 i do it manually, and sort it alphabetically to avoid mistake and triple check Feb 10 16:12:36 since it's not something i touch often, i can tolerate spending extra time on it Feb 10 16:20:51 I prefer to simply continue putting off paying GOogle to do the translations. ;) Feb 10 16:46:19 I just don't localize Feb 10 16:46:28 localization is evil Feb 10 16:47:26 hello what ide should i use in ubuntu to code java apps for android? is eclipse the right tool or it is just for web development? Feb 10 16:48:06 wendico: Android Studio is the preferred IDE Feb 10 16:48:14 it is based on IntelliJ Feb 10 16:48:15 IDEA or android studio Feb 10 16:48:24 thanks, googling on it Feb 10 16:48:25 https://developer.android.com/studio/index.html Feb 10 16:48:31 google dropped eclipse support Feb 10 16:49:30 downloading android studio, ty. Feb 10 16:49:58 AS will work just fine with Ubuntu Feb 10 16:50:14 You might have to bang a udev line into place to get the damn thing talking to your phone, but that's about it Feb 10 16:50:25 im downloading IDEA from repository Feb 10 16:50:33 serching for AS Feb 10 16:50:38 i dont know what is it Feb 10 16:50:42 wendico: https://developer.android.com/studio/index.html Feb 10 16:50:45 AS is android studio Feb 10 16:50:52 ahh Feb 10 16:51:07 them im downloading it allready, followed link first time, thank you Feb 10 16:51:15 if you aren't familiar with any of the tools, I highly recommend Android Studio. Feb 10 16:51:18 If the udev thing gets ugly, remember you can also make adb connect to your phone over the local wireless network (which sidesteps the issue neatly) Feb 10 16:51:41 -.- Feb 10 16:51:54 adb over wifi is really slow Feb 10 16:52:10 Well, if your'e streaming the video data back perhaps Feb 10 16:52:23 I'm not having any unusual slowness here Feb 10 16:52:23 copied to a notepad your suggestions in case i have problems connecting my phone, thank you again Feb 10 16:52:31 are udev issues still a thing? Feb 10 16:52:58 yes, you need to make it set the proper permissions for the device Feb 10 16:53:10 otherwise adb only works with it as root Feb 10 16:53:13 Yeah, but this isn't really a udev problem so much as a matter of there's not really any way to ship a file containing *all* the USB prod/vend identifiers phones might have Feb 10 16:53:24 haven't run into that issue in a long time. Feb 10 16:53:38 Also some people don't set it up correctly. Feb 10 16:53:41 i'm on a relatively new linux install and haven't had to configure anything for devices. Feb 10 16:54:03 The devices _should_ be defined just like thumbdrives are, with the handy little hints to udevd that it's console-associated hardware Feb 10 16:54:20 yea Feb 10 16:54:37 That makes the device be given read/write permissions so that the local console user automatically has full access to it Feb 10 16:55:27 What kills me is that I'm a _Slackware_ user and we caught crap for importing that very pam_console mechanism into Dropline, and I see other distros failing at it Feb 10 16:56:12 udev is simple as long as you don't have a few hundred devices Feb 10 16:56:42 Uh no one should have to manually define all of them Feb 10 16:56:58 It gets a _large_ amount of information from each kernel module Feb 10 16:57:09 s/each/all the/ Feb 10 16:57:44 sure but it's still really simple to manually define them Feb 10 16:57:54 I don't care any further than that :p Feb 10 16:58:03 I can agree to that Feb 10 16:58:25 Kinda a pain in the ass to figure out which things to put in the matcher rule sometimes tho Feb 10 16:58:47 google's documentation on the subject is easy enough to follow, I think Feb 10 16:59:30 michaelnovakjr, https://developer.android.com/studio/run/device.html#setting-up step 3 especially Feb 10 16:59:54 yea, definitely familiar with the process Feb 10 17:00:06 just haven't had to do that in a couple of years. Feb 10 17:00:08 Zharf: Case in point, they are fucking up Feb 10 17:00:31 Assigning something mode 666 is a quick way to have me telling middle managers "fuck you" to their faces Feb 10 17:01:00 that seems excessive Feb 10 17:01:13 no one really cares though, eh Feb 10 17:01:14 :p Feb 10 17:01:23 Set up _that way_, any asshole logged into the machine (even remotely through ssh, or illegitimately via some covert communication channel) can access the phone Feb 10 17:01:58 Modern linux machines are aware of the difference between a login session from a remote host, and a login session that was initiated at the local, physical hardware console. Feb 10 17:02:18 The user's session gets special rights when logged in _at the console_ Feb 10 17:02:34 you should bitch to google about it if you're so passionate about it, we just don't really care Feb 10 17:02:48 I've actually already sent an email to them about that, but I suspect they kind of ignore emails Feb 10 17:03:05 whining about it here won't change anything Feb 10 17:03:09 go knock on their doors Feb 10 17:03:10 Treating an OS that was designed to be multiuser from the ground up like a Windows workstation is an abominative practice Feb 10 17:04:28 ??? Feb 10 17:04:38 (also udev is easy to pown, FYI) Feb 10 17:04:53 Don't use systemd then. ;) Feb 10 17:05:10 what, i'm on slackware Feb 10 17:05:17 (for the linux part) Feb 10 17:05:24 Ah so then you'd know exactly why SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" is bad Feb 10 17:05:40 no clue tbh, there are so many wrong things Feb 10 17:05:44 'cuz Patrick still loves his audio & cdrom groups Feb 10 17:06:10 Well, plugdev group doesn't mean much, but mode 0666 is evil Feb 10 17:06:20 sounds too permissive Feb 10 17:06:24 World read-write on hardware access is a nono Feb 10 17:06:42 yeah but we cannot and should not dev (android stuff) on OpenBSD Feb 10 17:06:50 because problem solved then Feb 10 17:07:03 huh? AS should be able to run on OpenBSD Feb 10 17:07:08 ahahah Feb 10 17:07:14 * michaelnovakjr runs away from this conversation Feb 10 17:07:23 gradle maybe... with 2 weeks of work Feb 10 17:07:47 still it's a nope.jpeg, it would defeat too many things Feb 10 17:08:19 i'm wonder if even any one tried Feb 10 17:09:03 Teh emulator might be a giant PITA but I don't see much that would stand in the way of the rest working Feb 10 17:09:08 https://discuss.gradle.org/t/will-this-work-under-openbsd/5914/2 this did not went far Feb 10 17:09:52 anyway, back to android dev :))) Feb 10 17:11:13 That guy was trying to do something he shouldn't and was apparently underknowledgeable about diong Feb 10 17:39:56 Does anybody have experience with the Firebase hosting service? Feb 10 17:40:12 I attempted to host a simple web page but when I access the page I get the "Welcome to Firebase Hosting" page instead of my page Feb 10 17:53:22 "If the system kills the service after onStartCommand() returns," Feb 10 17:53:35 that doesn't mean services get killed immediately after, does that Feb 10 17:53:52 yo is there a good irc chan for rx questions Feb 10 17:54:26 oh #reactivex Feb 10 17:55:30 wow that channel is small Feb 10 17:55:42 hope it's not another #android-root lol Feb 10 18:01:14 I found the cause of the problem with Firebase hosting Feb 10 18:04:26 missingno: I guess several people can answer Rx questions here Feb 10 18:09:08 hey guys, not too familiar with android sdk here, but I have a guy trying to run a gradle job, and it seems to be trying to use the android sdk to reach out to https://dl.google.com/*, is there a cli variable or way I can force that to use https://dl-ssl.google.com/* instead or a config file I can set that in globally? Feb 10 18:13:45 hello, how do i get all of the broadcast receivers that i've registered Feb 10 18:15:34 aspire you don't Feb 10 18:15:42 i see Feb 10 18:15:51 in that case, what happens if you don't unregister your broadcast receivers Feb 10 18:16:25 you'll get an error in logcat for leaked receiver. don't do it Feb 10 18:16:50 will they get unregistered when the app exits though? Feb 10 18:17:49 the app doesn't exit, the process gets killed. then , yes Feb 10 18:18:19 if the activity goes away, i think they get unregistered (can't remember, because i don't let this happen :D ) Feb 10 18:18:53 mhmm, i'll just unregister them :) Feb 10 18:18:58 onDestroy is the safest place to unregister them? Feb 10 18:19:04 my app is meant to run in the background Feb 10 18:21:23 a good place (not specific to broacast receiver) is often the symetrical opposite on the lifecycle Feb 10 18:21:30 except specific scenarii Feb 10 18:21:41 like if you register in onStart, unregister in onStop Feb 10 18:21:58 or if you register in onResume, unregister in onPause Feb 10 18:22:54 well Feb 10 18:22:58 i'm registering them in onCreate Feb 10 18:23:04 so i guess reciprocal would be onDestroy Feb 10 18:24:38 if your app runs in the background, you should not be leaving your receiver registered in your activity Feb 10 18:24:45 you should have your receiver setup at an appropriate location Feb 10 18:24:49 either from a service, or manifest Feb 10 18:29:10 i see Feb 10 18:29:28 pfn my android app is a client Feb 10 18:33:56 hello Feb 10 18:34:31 Should someone be identified (registered & logged in) to be able to chat here? Feb 10 18:35:05 afaik you have to register with freenode Feb 10 18:35:36 this may be a better question, when i run ./android list sdk, it's trying to pull from https://dl.google.com, anyone know how to change that to dl-ssl.google.com? Feb 10 18:36:12 GM Supplier Discount PriceNot Eligible for Discount Feb 10 18:36:14 oh, damnit Feb 10 18:36:36 fiyawerx_, get a newer sdk? Feb 10 18:37:19 it looks like there is an increase of ppl wanting to download the sdk parts without the sdk manager, it looks like Feb 10 18:37:30 i mean, recently Feb 10 18:39:15 adq: i do see references to checkboxes and things in a lot of the articles i'm finding, but there's no gui environment available here, is there no way to configure like the 'force ssl' from CLI? Feb 10 18:40:02 i don't know but it should be, many ppl are using CI, and recently they added features to accept agreements Feb 10 18:40:12 previously a trick was needed to put "something" in a file Feb 10 18:40:33 force ssl should be default... Feb 10 18:40:34 * pfn shrugs Feb 10 18:40:37 be patient, if someone see your question and knows, you will have an answer Feb 10 18:41:01 but yeah i would imagine ssl would be default Feb 10 18:42:26 public static final String URL_GOOGLE_SDK_SITE = Feb 10 18:42:26 "https://dl.google.com/android/repository/"; //$N Feb 10 18:42:29 it is ssl by default Feb 10 18:42:31 it's just not dl-ssl Feb 10 18:42:38 why would you want to change it to dl-ssl Feb 10 18:42:57 I'm baffled by that as well Feb 10 18:43:05 because that's what our network admins are allowing via the outgoing proxy Feb 10 18:43:16 so have your network admins fix the rule so it's not stupid Feb 10 18:43:24 pfn++ Feb 10 18:43:40 either that or rename it in your /etc/hosts file Feb 10 18:43:57 That actually isn't likely to work Feb 10 18:44:13 When a proxy is involved it would simply be _wrong_ for the originating host to do DNS lookups Feb 10 18:44:20 Certificate chain Feb 10 18:44:20 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=*.google.com Feb 10 18:44:22 The proxy is supposed to resolve the hosenames Feb 10 18:44:35 and you're right, that won't work, proxy resolves Feb 10 18:44:46 anyway, have your network admins fix their stupid mistake Feb 10 18:44:56 there's no reason they should be blocking dl.google.com, are you in china or something Feb 10 18:45:07 That's pretty much the only option that doesn't involve just deliberately bypassing the firewall Feb 10 18:45:11 er proxy Feb 10 18:45:23 if your app uses notifications, should you cancel all of them in onDestroy Feb 10 18:45:32 ...while it's usually not that hard, it tends to make network security types get very shrill Feb 10 18:45:43 aspire, depends on what your app does, clearly Feb 10 18:46:12 i have an ongoing notification that represents when the app is connected to some endpoint Feb 10 18:46:19 i'm pretty sure if the process is killed, the notification disappears Feb 10 18:46:29 If it's a "You've got mail!" kind of thing, perhaps not. Feb 10 18:46:38 -dev Feb 10 18:46:39 but i think during early stages of testing, the ongoing notification was still there when the app exited properly Feb 10 18:46:44 oh hey here I am.. Hey all Feb 10 18:46:55 If you ever wanted to run ADB on a Raspberry Pi 3... Feb 10 18:46:56 If it's an ongoing status notification, then it should probably be disposed of if/when the app is killed Feb 10 18:46:57 Here's how Feb 10 18:46:57 http://pastebin.com/A34MNU7B Feb 10 18:47:07 i'm just really kind of guessing onDestroy gets called right before the activity life cycle ends? Feb 10 18:47:13 Really it comes down to whether or not the notification is actually _useful_ anymore once the app isn't running Feb 10 18:47:14 ^ not guaranteed Feb 10 18:47:24 Tricknology, how so Feb 10 18:47:32 Re: onDestroy(), aspire Feb 10 18:47:43 stated in the docs Feb 10 18:48:07 dangit you guys are going to make me have to go boot the laptop and look up the appropriate group Feb 10 18:48:32 Tricknology, oh Feb 10 18:49:22 aspire: https://developer.android.com/reference/android/app/Activity.html#onDestroy() Feb 10 18:49:33 We were just talking about why a+rw isn't safe Feb 10 18:49:38 aspire Feb 10 18:49:47 it's supposed to, but not guaranteed.. if that helps Feb 10 18:50:00 oh interesting Feb 10 18:50:04 so inside my onDestroy method Feb 10 18:50:14 when i cleanup my own resources i should just check if isFinishing() returns true Feb 10 18:50:16 onFinish() is probably a better place? idk what you're doing Feb 10 18:50:25 no onFinish() should be good enough Feb 10 18:50:30 just looking to unregister content and broadcast receivers Feb 10 18:50:33 onFinish is a better place for that? Feb 10 18:50:40 or onPause() Feb 10 18:50:47 and re-register them in onResume() Feb 10 18:50:53 err, unregister content observers and broadcast receivers* Feb 10 18:51:02 but onResume() is called when your activity starts, do don't register them twice bu registering it in onCreaate() too Feb 10 18:51:08 i don't think that fits my use case Feb 10 18:51:18 because i need those observers and receivers to be active when my app is in the background Feb 10 18:51:24 use a service Feb 10 18:51:31 or IntentService Feb 10 18:51:39 i was initially going to use an intent service Feb 10 18:51:45 but i found just a normal thread is better suited Feb 10 18:51:48 for what i'm doing at least Feb 10 18:51:49 nah Feb 10 18:51:58 trust me :) Feb 10 18:52:04 it started out as an intent service Feb 10 18:52:04 ok :) Feb 10 18:52:05 but then i removed it Feb 10 18:52:14 do you want it to persist across activities? Feb 10 18:52:14 Tricknology: I'm getting honeydewed but here's a strong poke in the right directiohn... TAG+="uaccess" Feb 10 18:52:28 wot? Feb 10 18:52:32 theres only 1 activity Feb 10 18:53:02 Tricknology: You're making the resulting device node readable to all users on the system. It should only be accessible by the user who is logged in at the console. Feb 10 18:53:43 Dagmar, then could add OWNER Feb 10 18:54:06 += OWNER:="pi" Feb 10 18:54:19 aspire oh I see Feb 10 18:54:27 but you want it to run in the background when the app is not visible? Feb 10 18:54:30 I would use a service Feb 10 18:54:32 yessir Feb 10 18:54:46 You can stop the service Feb 10 18:54:50 Tricknology: Well, on a pi that work as long as 1) someone is using Raspbian and 2) they didn't make another user account Feb 10 18:54:50 if the app exits Feb 10 18:54:57 i have a question about onDestroy docs Feb 10 18:54:59 Tricknology: This has more detail https://enotty.pipebreaker.pl/2012/05/23/linux-automatic-user-acl-management/ Feb 10 18:55:19 "system is temporarily destroying this instance of the activity to save space" Feb 10 18:55:36 this means that onCreate will be called again righ Feb 10 18:55:39 aspire: lifecycle fun! Feb 10 18:55:39 right* Feb 10 18:55:53 Dagmar, I'm new to UDEV rules.. can't I use a group? Feb 10 18:56:00 Evacutate everything to the lifeBundle Feb 10 18:56:02 even if my launchMode is singleInstance? Feb 10 18:56:12 aspire: if you go back to your activity yeah Feb 10 18:56:22 Tricknology: You can, but then if someone's logged in over ssh and has that group right... Feb 10 18:56:22 idk about singleInstance Feb 10 18:56:53 Dagmar this is interesting.. so far I'm the only one using this pi Feb 10 18:57:06 but my intention is to use it to run tests via Jenkins Feb 10 18:57:16 on a physical device Feb 10 18:58:00 Tricknology: Yeah but Linux machines were designed from the ground up to be multiuser... "baking in" a decidedly single-user or otherwise rigid mechanism overlooks the face that the system _can_ tell the difference between someone ssh'd in, and someone who is actually laying hands on hardware Feb 10 18:58:26 i.e., it's a sin that someone's going to eventually pay the price for Feb 10 18:58:32 aspire: I think the behavior woul dbe that it calls onSaveInstanceState() then destroys your activity.. if you didn't save it, next time you go to it, it will refresh (because onCreate() is called again) Feb 10 18:58:47 zactly Feb 10 18:59:23 Note this also appears to mean that weak references that made their way into Views will be gone Feb 10 18:59:44 A bit irksome, that Feb 10 19:00:23 mhmmmm interesting Feb 10 19:00:37 That's not the word I was using for it until I figured it out Feb 10 19:00:43 I was using a much shorter word Feb 10 19:01:31 Background app, come back to app, everything's fine. Background app, wait until GC runs amok, return to app... layout looks like someone shipped it overseas without padding Feb 10 19:03:32 HAHAHA Feb 10 19:16:14 wow, chevy spark is cheap, only 13k? Feb 10 19:16:33 oh, wait, I thought the spark is the cheap ev Feb 10 19:17:12 Hi. I need some clarification on Firebase Database. I have a list of players that I want to synchronize between clients. I've made an object observing the list on changes. If there is one, it updates the value on firebase. There's also an ValueEventListener that activates onDataChange when the data on firebase changes. So I've made it change the player list when the database changes. Won't it create an infinite loop? Or Firebase Feb 10 19:17:45 14,970 Feb 10 19:17:53 hmm, might just get a 2nd ev for shits and giggles Feb 10 19:17:56 so cheap Feb 10 19:46:47 Yeah, it makes a loop. Something happened that the app crashed. Feb 10 21:00:41 I want to make an app that connects to a website and basically re-displays it in a more mobile-friendly way. WebViews don't really do what I need (as that actually just displays what the website would look like if a mobile user opened it in a browser). Feb 10 21:01:03 What's the standard way for me to do this? My first instinct is to just use JSoup and grab the data from the website, but there might be a better way. Feb 10 21:02:30 Create an api for the data backing your website Feb 10 21:05:10 redsynapse: Pick a serializing method (json, xml, yaml, whatevs) that you're comfortable with on both the phone and the server end. Feb 10 21:05:40 Scribble up an API to check login creds (if needed) and spew the data in that format Feb 10 21:09:42 Dagmar: I'm not exactly too sure how the API part works. Does that require me to have access to the website's source code? (I don't have access to it) Feb 10 21:09:54 Yes. Feb 10 21:10:03 so this isnt your site? Feb 10 21:11:16 Unless you run the site you've basically got no business doing that Feb 10 21:15:17 redsynapse: If it's not your website then you're stealing content. Obviously this is not allowed on the play store, and not suited for this channel either. If you have an agreement with the websites owners that you're allowed to create an app for it, then it's in both your interests to create a proper api. Feb 10 21:16:00 Dunno about "stealing" but there'd be a violation of copyright happening Feb 10 21:16:41 The legal definition doesn't really matter, you get my point Feb 10 21:23:12 SimonVT: It's an agreement with the website owner, yes. Although, I don't actually have any web development experience. Feb 10 21:24:33 Is there any way for me to get it done (assuming I can access the source code) without actually knowing too much about web development? (eg; some sort of automated way to do it?) Feb 10 21:26:00 I don't know, don't have much experience with web development. Maybe try #php or something Feb 10 21:26:38 But scraping the website is the worst solution for both you as an app developer, the website and especially your users Feb 10 21:27:46 SimonVT: I don't really understand how scraping the website could be bad if the website owner consents to it. Are there some sort of particular drawbacks or somesort? Feb 10 21:28:40 SimonVT: how would it affect the users? Wouldn't the data be exactly the same as if they just accessed the website with a browser? Feb 10 21:30:44 It's slow, uses much more data than a simple api Feb 10 21:30:52 Is probably prone to breaking if the website changes Feb 10 21:32:21 I assume you're trying to create a great native experience.. Otherwise you might just update the website to look better on mobile devices and put it in a webview Feb 10 21:33:54 SimonVT: Okay. That makes sense. Guess I'll just have to actually learn it then. Feb 10 21:34:19 SimonVT: Although, what exactly is the point of using a webview as opposed to just making people open the website on their browser? Feb 10 21:34:49 It gives the exact same output, so it seems a bit redundant. Feb 10 21:35:18 I have a recyclerview with a list of cards and when the user clicks on one I want to animate to a detail view about that card. Feb 10 21:35:42 There's a javascript interface for calling native methods Feb 10 21:36:00 I’d like control over animating the transition. Should I the detail view be a new fragment, or will the fragment transition make it hard to control the animation? Feb 10 21:36:54 I’m new to animating transitions … I had a bit of trouble the one time I tried to animate a fragment transition. Feb 10 21:41:26 I think that condition is basically permanent Feb 10 21:41:57 The discomfort you are experiencing is normal. Just so long as it worked, you're good Feb 10 21:48:31 redsynapse, sometimes you might want the webpage to look "native" or have native elements (via interface) Feb 10 21:49:03 You can set up a webview fragment in your content panel and still have access to, say, your drawer Feb 10 21:50:11 Tricknology: How does the WebView make it look native? From my understanding, it just mimics how a website would look if you viewed it on a mobile browser. Feb 10 21:50:35 It depends on how the website is designed Feb 10 21:50:48 also, the necessity highly depends on your implementation Feb 10 21:51:18 but im talking about, you have some web component of your app that for some reason you dont want to do natively, so you have a team which makes a website with your same theme, etc. Feb 10 21:51:25 I've done it before Feb 10 21:51:49 Not saying you should, just explaining a reason for why someone would want that Feb 10 21:52:09 like.. go to the facebook website on your phone and log in Feb 10 21:52:14 looks just like an app Feb 10 21:53:30 maybe the web team has already designed a particular component and the CSS guy just has to skin it. so you throw up a webview to save some time because your team is in a crunch? Feb 10 22:02:35 Anyone ever gotten subtitles to work on chromecast? We have videos hosted on amazon (CORS-, Range- ready) and are spinning up a local http server (CORS,Range ready) to serve VTT files Feb 10 22:02:48 Anyone ever gotten subtitles to work on chromecast? We have videos hosted on amazon (CORS-, Range- ready) and are spinning up a local http server (CORS,Range ready) to serve VTT files Feb 10 22:03:00 Omg I was scrolled up sorry for the dup Feb 10 22:04:57 It may be that the end that runs on the Chromecast has to support subtitles Feb 10 22:05:36 The local server never seems to even get hit for the subs, although the "MediaPlayer" (chromecast) reports SUCCESS when setting the sub-track as active Feb 10 22:05:38 Actually, s/It may be that//; Feb 10 22:05:59 The end that runs on the chromecast? what end is that? Feb 10 22:06:12 Chromecast runs code. Feb 10 22:06:36 I've dug into it far enough to notice that much Feb 10 22:06:52 It's not just a simple media reciever Feb 10 22:07:11 The default receiver app supports subtitles Feb 10 22:09:23 Then poke around the docs until you find where it mentions how it gets them Feb 10 22:09:33 Oh thanks, I hadn't been doing that for 3 days Feb 10 22:11:14 Even displaying someone elses VTT track doesn't make it appear correctly Feb 10 22:11:20 http://vtt.dev.sope.io/ Feb 10 22:11:34 the chromecast does basic javascript Feb 10 22:11:46 pretty obvious when you write receiver apps Feb 10 22:12:20 What I'm looking at under "Chrome Sender Advanced" looks pretty straightforward Feb 10 22:12:40 ...then again, the docs for using Android Studio with Google Cloud Repositories also looks straightforward. Feb 10 22:12:46 It looks straight forward. Feb 10 22:13:03 The problem is not that I don't know how to do it, it is that what is documented just doesn't work Feb 10 22:13:16 Same with AS/GC Feb 10 22:13:29 I've been trying combinations of this and that and this and that and holy hell... Some things man Feb 10 22:13:38 gotten subtitles to work? yes, do I remember how it was done? nope Feb 10 22:13:51 Have code somehwere? Feb 10 22:14:41 Found it finally Feb 10 22:15:07 Someones "FORMAT_VTT" constant was ISO-8859-1, not text/vtt.. Feb 10 22:27:54 If you start activities in a tight loop, does Android impose some kind of throttle? Feb 10 22:29:58 no Feb 10 22:47:47 hello. I have a system health warning installing android studio, this is the link of the details: https://youtrack.jetbrains.com/issue/IDEA-78860 Feb 10 22:48:10 how can i solve this, i really dont understand what i should do in those details, thank you very much Feb 10 22:49:45 did you add export to ~/.profile then source ~/.profile? Feb 10 22:50:29 .bash_profile? Feb 10 22:50:42 .bashrc? Feb 10 22:53:38 nope Feb 10 22:54:00 do you mean " add "export IBUS_ENABLE_SYNC_MODE=1" to your ~/.profile, then restart a session" Feb 10 22:59:10 uhm.. android studio takes up 30 gigabytes? come on? Feb 10 23:00:26 irc2000: I suspect you could remove some of the sdk versions (although I’m far from familiar with it) Feb 10 23:02:01 I must have checked them all when I installed the studio or something Feb 10 23:02:20 I have more than one and I’ve only got 4.6G. Feb 10 23:04:08 what are system images? these are the one taking up the space Feb 10 23:04:14 android-22 Feb 10 23:05:27 okay, they are for the emulators. Feb 10 23:05:52 I tried android dev in windows and damn it sucked hard. Feb 10 23:31:36 Githubs new header is absolutely terrible looking. Feb 10 23:47:39 hrm. why does it stall at. Building 0% > :uninstallDebug Feb 10 23:47:56 its nnot waiting for device Feb 11 00:29:55 lol @irc2000 you must have checked every box in the SDK manager haha Feb 11 00:30:10 I'm only using 54gb on my entire HD Feb 11 00:30:44 but I did just get a OOM Exception in AS.. Feb 11 00:30:53 and now it's jacked up Feb 11 00:32:07 anyway, did I mention how much I love unit testing? Feb 11 00:32:23 Took a long time to get here (because all the docs on the internet are outdated AF) but it's nice Feb 11 01:28:53 * mrandroid is not liking Android Studio's need to constantly check the internet for the same library over and over again cause it's impossible to build while offline. Feb 11 01:31:33 uhh? I'd say I did build while offline. Though I don't think I've noticed since I do it online almost always. Feb 11 01:34:19 Hi Feb 11 01:34:51 do anyone know to work with Guidlines Feb 11 01:35:45 i need to set the percent but the ConstraintLayout is a child of a ViePager Feb 11 01:50:10 Updated gradle wrapper today and now none of my projects will build offline. And it's stopping up a whole project from being delivered. Adyrhan Feb 11 01:50:44 my friday rant; I wish Android Studio folks would just stop working on the product. It's getting worse. Feb 11 01:57:34 I'm getting this in Android Studio all of a sudden: Error:java.lang.OutOfMemoryError: GC overhead limit exceeded Feb 11 02:02:42 i added dexOptions to see if that helps ... arg Feb 11 02:17:01 mrandroid: what OS? Feb 11 02:17:25 irc2000: I'm building for SDK 8 Feb 11 02:17:41 mrandroid: I mean, what OS are you running android studio on? Feb 11 02:17:52 my bad. mac Feb 11 02:18:37 MacOS Sierra 10.12.3 Feb 11 02:19:36 adding dexOptions helped. Now the build is complaining because my app has 80000+ functions. So I'll back out one of the third party libraries I'm using and see if it builds. Feb 11 02:20:32 hm, was that error your host (mac) or from the program you're making? Feb 11 02:21:40 isn't there a limit to the number of classes you can have on a .dex? So you're supposed to do pack them as 1 class or something to get around that? Feb 11 02:21:47 I have a vague memory of that. I don't know. Feb 11 02:21:49 but good night :D Feb 11 02:22:25 it was the gradle build script running on the mac that complained. Feb 11 02:22:39 thanks irc2000. helpful as always. Feb 11 02:22:42 have a good weekend. Feb 11 02:39:34 https://arxiv.org/ftp/arxiv/papers/1702/1702.01715.pdf Feb 11 02:39:47 google software engineering practices Feb 11 02:48:09 lol , those ears are huge! https://www.theguardian.com/lifeandstyle/2017/feb/10/experience-i-accidentally-bought-a-giant-pig Feb 11 02:48:24 make a great pillow or something :) Feb 11 02:51:37 g00s ewwww... I mean, Feb 11 02:51:46 the guardian... lulz Feb 11 02:52:42 it was linked to some pet forum Feb 11 02:53:01 isn't the guardian like the Daily Mail or something, kinda tabloidy ? Feb 11 02:54:51 yah, yellow journalism... today they call it a "gossip rag"... or" fake " news Feb 11 02:55:22 Inquiring minds still use Twitter Feb 11 02:55:55 though they're planning to take it private it seems it can't make money Feb 11 02:58:13 capella that is off topic Feb 11 02:58:28 maybe join #twitter-discussion Feb 11 02:58:33 or #social-media Feb 11 02:59:49 sasser is sassy **** ENDING LOGGING AT Sat Feb 11 03:00:01 2017