**** BEGIN LOGGING AT Thu Feb 02 03:00:02 2017 Feb 02 03:00:07 Hey guys, anyone used fragmentpageradapters here Feb 02 03:00:17 I have a suuuuuper annoying issue on the newer support libraries (>23) Feb 02 03:00:29 where the fragment will only show up every second time. Feb 02 03:00:41 * tx makes a video to demonstrate. Feb 02 03:02:33 https://bt.is/pager.mp4 Feb 02 03:02:50 are there naked girls? Feb 02 03:03:06 there can be Feb 02 03:03:45 * Melatonina watches Feb 02 03:04:24 never had that problem Feb 02 03:05:23 there is "Butt street"! Feb 02 03:05:32 close enough right Feb 02 03:06:26 https://hastebin.com/oyotusuwan.erl Feb 02 03:06:36 it looks like getItem just isn't called every second time in the pager adapter. Feb 02 03:06:41 totally weird. Feb 02 03:06:57 it should be called only one time a all Feb 02 03:06:58 at Feb 02 03:07:15 nah Feb 02 03:07:22 one time to get the new fragment (sub-menu)\ Feb 02 03:07:28 every time a menu item is pressed Feb 02 03:07:46 I'm trying to use Drag and Drop in my application with the minSdkVersion = 19, AndroidStudio complains that startDrag is depreciated and complains if I use startDragAndDrop instead Feb 02 03:07:58 when you hit back to go back to the previous menu, the fragment in position 1 is destroyed Feb 02 03:08:08 what should I do? Feb 02 03:08:32 getItem() is called only when a fragment is created. When a fragment is displayed, the two adjacent fragment are kept alive. Thus with only two fragments that method should be called two times in total Feb 02 03:10:06 ah, I am only logging these when I press a button Feb 02 03:10:08 not the whole thing Feb 02 03:14:12 Melatonina: found the fix! Feb 02 03:14:24 removing the fragment at pos1, I was using commit() Feb 02 03:14:26 which is async Feb 02 03:14:44 does anyone know if androids can write ISO/IEC 15693 Feb 02 03:14:53 its NFC-V standard, it uses the same frequency Feb 02 03:15:05 mikeymop: yes Feb 02 03:15:15 https://developer.android.com/reference/android/nfc/tech/NfcV.html Feb 02 03:15:20 i tried using nfc tools to clone a card and it fialed Feb 02 03:15:22 also thanks Feb 02 03:15:49 not all cards may be able to written to Feb 02 03:15:56 are you familiar with the Ndefformtable? Feb 02 03:15:57 and not all NFC chips will support all the same operations either Feb 02 03:16:12 i'm not trying to write the card, i want to dump the info on it so i can study the tech Feb 02 03:16:22 ok Feb 02 03:16:32 trying to make my own Feb 02 03:17:17 just make sure you have NFC permissions Feb 02 03:17:26 you implement the relevant lifecycle calls to the NFC service Feb 02 03:17:34 and then do something with the received NFC intent Feb 02 03:17:39 probably just print it out for now Feb 02 03:18:37 not too bad Feb 02 03:22:26 There's a number of rather basic apps that will let you get all the info you need about them Feb 02 03:22:50 NFC Tools had issues Feb 02 03:22:54 Really? Feb 02 03:23:01 That one's been my go-to for awhile now Feb 02 03:23:12 * mikeymop is imguring Feb 02 03:23:17 I wound up ringing up a local security firm after playing with it Feb 02 03:23:33 They've got their guys doing rounds and tapping an NFC tag on a wall Feb 02 03:23:36 plain text phone number? Feb 02 03:23:42 They _failed_ to pop the efuse on them Feb 02 03:24:15 Their guys won't have a proper record of doing their rounds if someone alters the still writeable tags Feb 02 03:24:19 m.imgur.com/YgBlcmy Feb 02 03:24:33 whoops Feb 02 03:25:22 http://imgur.com/YgBIcmy Feb 02 03:25:59 when googleing em microelectric i cound a spec, however it says it's multi frequency so I think reads are on the other freq Feb 02 03:26:15 Quite possibly Feb 02 03:26:29 unfortunately, i damaged this tag when exposing the coil so i'll need to get another Feb 02 03:26:41 so fragile Feb 02 03:28:23 Dagmar: are you able to elaborate on any of the values this app picked up? Feb 02 03:33:39 Not really. If there was a payload on the tag it's not seeing it Feb 02 03:34:13 thanks, that was the answer I was looking for but didn't want to hear Feb 02 03:34:16 With less, well, _hostile_ tags it's all quite straightforward Feb 02 03:34:47 Hey on the bright side there's Blackhat talks about this Feb 02 03:34:50 is it too much of a bother to screenshot the output from a tag you might have? Feb 02 03:34:59 defcon videos? Feb 02 03:36:09 Even Schnier has written a bit abou tit Feb 02 03:36:27 I'd have mentioned this stuff the other night but I figured you'd already have found it by now Feb 02 03:36:49 I do think I misspoke earlier about it being similar to sdcard crypto wall Feb 02 03:37:43 i had a paper to write so I had to put it aside Feb 02 04:03:33 that protocol is so simple Feb 02 04:03:55 even with the crypto they reverse engineered Feb 02 04:07:55 Simple is easily testable and easily provable Feb 02 04:08:09 That much at least they got right Feb 02 04:27:22 "Snake Is Rescued After Getting Stuck In Woman's Earlobe" dafuq ! Feb 02 04:28:49 hey , by default android studio recommends minimum version of sdk to be 15 , then why in sample codes, it includes support v4 or v7 Feb 02 04:29:44 Because those support libs were designed to go back that far Feb 02 04:30:06 v4 goes for android 1.6 , i guess Feb 02 04:30:26 It doesn't really impact whether or not they work on newer versions of Android Feb 02 04:30:42 it seems like there is new version of android coming out every year :< Feb 02 04:30:49 If i am using toolbar , i dont need to use support libarary to use supportedtoolbar , if my min sdk is 15 Feb 02 04:31:10 ? Feb 02 04:34:46 If a feature you're using is actually supported in the oldest versions of Android you're targeting, then it should be a no-brainer that you don't need a support library Feb 02 04:50:09 killer the support lib can offer bugfixes, for things like fragments i would use support Feb 02 05:06:13 in debug mode, studio can only show variable values when it's stopped on a breakpoint right? Feb 02 05:07:53 so , there is no downside n using support libraries , considering less And less people are using earlier versions of android Feb 02 05:08:01 less than 3 % Feb 02 06:44:18 It's not a good idea to save valuesin Static because the values may get discarded when application is sleeping, what is the preferred alternative to save these values? Feb 02 06:50:32 SharedPreferences Feb 02 06:53:26 why no doublez in sharefpred /: Feb 02 07:03:01 for handling a server socket connection from .accept() call can i still use asyncTask? Feb 02 07:05:12 yes but i dont think its right tool for that Feb 02 07:08:52 thats a pretty vague question, but then again i just had a lot of beer Feb 02 07:09:11 beer usually clarifies Feb 02 07:09:20 if you AsyncTask the result of an accept(), why not just do it in a regular thread lol. Feb 02 07:09:21 actually asyncTask isnt right tool at all Feb 02 07:09:34 beer definitely clarifies. you know what else clarifies? butter. Feb 02 07:09:47 the one who made it had a lot of beer Feb 02 07:10:01 i love when people are great contributions to society Feb 02 07:10:20 even though alcohol was an accident. it makes you wonder what would happen if it never was discovered. except it wouldve been eventually Feb 02 07:11:06 the question is how (cow) milk was discovered Feb 02 07:11:14 i dont even wanna know..... Feb 02 07:11:23 ive always wondered that lmfao Feb 02 07:11:56 what a world we live in. its more acceptable to drink the milk of animals and coconuts before we drink our own Feb 02 07:12:09 but it would be pretty weird if we hard lactating women farms Feb 02 07:12:19 yes i think i need new Thread Feb 02 07:12:23 thanks Feb 02 07:12:33 "have you ever had shirleys milk? ooooooo boy yes, but its nothing compared to marshas!" Feb 02 07:12:56 we would go from vitamin D to vitamin double d Feb 02 07:13:00 i thought Threads were messy and i should use AsyncTask.. thats why Feb 02 07:13:24 what would you async task constantly though other than sending/receiving? just use a thread or two. you could actually do both in one thread Feb 02 07:13:34 youd just have to prioritize the two at that point Feb 02 07:13:47 or else youd potentially starve one or the other Feb 02 07:14:02 youy dont think an async task is ran in another thread? Feb 02 07:14:39 nope how can it because its either serial or parallel? Feb 02 07:15:39 so what exactly is it going to run in besides another thread, thin air? Feb 02 07:15:53 lol Feb 02 07:16:12 maybe there are magical asynchronous task fairies Feb 02 07:16:59 "AsyncTask is designed to be a helper class around Thread and Handler and does not constitute a generic threading framework." Feb 02 07:17:23 thats from the docs Feb 02 07:17:38 ok but will i use handler for posting ui message from my thread? Feb 02 07:17:53 well you should post the result somewhere id hope Feb 02 07:18:08 it sucks how android/linux's IO model is cancer. unlike windows Feb 02 07:18:35 too bad there isnt an IO completion port equivalent *bsd has kqueue though which is very close and nice. i have respect for unix. linux on the other hand is cancer Feb 02 07:19:12 the os knows when data comes in from the network adapter. its sad how there isnt an efficient notification mechanism Feb 02 07:20:17 sending and receiving is a duplex operation too, so it blows my mind how nothing exists for that Feb 02 07:21:00 bless windows heart Feb 02 08:28:22 when do you consider using a library like Retrofit? all i need right now is to just make simple http get request to retreive data in form of string and its working just fine. is it still good idea of pull in library? Feb 02 08:30:50 when you need to deal with rest apis Feb 02 08:31:52 i don't even need okhttp i suppose Feb 02 09:15:36 hey guys Feb 02 09:15:42 anyone know a library to flip a dialogfragment Feb 02 09:15:44 and give it two sides? Feb 02 09:49:20 I've been really struggling to get my unit testing working right. It's the first time I've used it, i'm writting some instrumentation tests, the documentations just confuse me, when I debug my tests, 9/10 times I get a little "Test framework quit unexpectedly" (Even if i break on the first instruction), I struggle to find the correct documentations too. anyone has any pro-tips for me? Feb 02 11:56:50 an unremovable notification "mobile data limit exceeded" is irritating me. i am using galaxy core GT-I8262 . i did everything to remove this notification but with no success. plz help me to remove it Feb 02 12:10:08 * thepoosh raoul11's the shit out of raatiniemi Feb 02 12:10:14 *raoul11 Feb 02 12:28:23 hey guys Feb 02 12:28:39 I am flipping a framelayout using an animator / objectAnimator Feb 02 12:28:58 when I flip it nothing on the layout that is now visible is clickable. instead, what is on the other side is clickable Feb 02 12:32:55 tx: wtf are you trying to do?! Feb 02 12:33:03 thepoosh: I'll give you a video lol Feb 02 12:33:07 I figured it out though Feb 02 12:33:36 :) Feb 02 12:35:05 noo it didnt work Feb 02 12:36:27 * raoul11 thepooshes thepoosh Feb 02 12:36:41 srsly thepoosh, 2pm? Feb 02 12:36:45 lazy fucker Feb 02 12:37:07 raoul11: been here since 8:15 Feb 02 12:37:11 it's a rough day Feb 02 12:37:26 thepoosh: I am heading home now Feb 02 12:37:29 it's 11:30PM Feb 02 12:37:34 I went in to the office at 8:30AM Feb 02 12:37:43 tx: I am on raoul11's time zone Feb 02 12:38:09 haha it works! Feb 02 12:39:22 where is android frame buffer file is located? should be in /dev/fb0 Feb 02 12:39:56 you can't directly write to it though Feb 02 12:39:57 any of you guys use this wordpress xmlrpc client? https://github.com/canbican/wordpress-java Feb 02 12:40:19 tx: but i have root Feb 02 12:40:33 it doesn't matter Feb 02 12:40:40 the display manager owns it Feb 02 12:40:51 sending stuff to it will likely break things Feb 02 12:40:57 or have no effect as the display manager draws over it Feb 02 12:41:09 tx: i dont mind breaking things. i just want to check this Feb 02 12:41:53 and with root i can overwrite all system files, imo Feb 02 12:42:31 it's a device file Feb 02 12:43:33 most of the time video cards on linux don't even use the device file lol Feb 02 12:43:37 it's legacy Feb 02 12:46:02 but they do store current screen image somewherr Feb 02 12:46:29 heh, 15 hour work day rookie mistakes are starting to happen Feb 02 12:46:37 if number >=50 or number <=50 :P Feb 02 12:46:40 54* Feb 02 12:58:47 actually its not legacy for android, its located at /dev/graphics/fb0 and apparently contain current screen but writing to it has no effect Feb 02 12:59:20 garit2, care to help me ? Feb 02 12:59:45 ibn-batot: but i don't know your problem Feb 02 13:00:18 garit2 an unremovable notification "mobile data limit exceeded" is irritating me. i am using galaxy core GT-I8262 . i did everything to remove this notification but with no success. plz help me to remove it Feb 02 13:00:33 it is nugging notification appears all the time Feb 02 13:00:50 wrong channel Feb 02 13:00:57 settings - data - top right part - limits or something - change it to 100 GB Feb 02 13:01:12 i cannt... Feb 02 13:01:18 ibn-batot, if you're not developing an app you're on the wrong channel. Feb 02 13:01:25 well, where r these setting as files ? Feb 02 13:01:41 or the location fo the folder ? Feb 02 13:02:56 you could drop them by using rom loader like thcw or something and drop data, it will reset settings, it also list a folder that it erases Feb 02 13:03:23 ah, recovery its called Feb 02 13:28:34 oh, thepoosh Feb 02 13:28:37 I didn't send you a video Feb 02 13:28:50 well, I am home now and my upload is like 20k/s Feb 02 13:28:51 :( Feb 02 13:32:10 tx: it's ok, it's late Feb 02 15:02:17 is it possible to fetch a list of the activities of my app's backstack? in the app itself, not via adb Feb 02 15:06:49 Hi Feb 02 15:07:16 we have to pay once to launch apps at store? Feb 02 15:16:10 hello, is there someone who is experienced with drag & drop in android who would like to explain some stuff Feb 02 15:19:53 inferno_scorpion, yes, one time payment to get your apps on the store Feb 02 15:20:07 I think it's like 25$? Feb 02 15:20:33 yep Feb 02 15:20:42 https://developer.android.com/distribute/googleplay/start.html Feb 02 15:28:18 cool Feb 02 15:34:06 Hi! Feb 02 15:34:21 How I can get inside my computer the log of apache cordova? Feb 02 15:34:33 (sent with javascript console.log command or whatever is available) Feb 02 15:51:05 should spit put to log at... filter on the tag Feb 02 15:51:26 *out to logcat Feb 02 16:01:18 I'd like to include support for a USB dongle in my app, but I don't think most, if any, ROMs have the driver for this hardware. How can I include the driver in my APK? Feb 02 16:02:32 dougquaid what do you mean, inclue support for a usb dongle? You want to be able to read from a usb port? can you elaborate please? Feb 02 16:06:12 dougquaid, you can't include a kernel driver Feb 02 16:06:18 dougquaid, but you can bitbang the device via the userspace api Feb 02 16:06:51 dougquaid, this means you either have to port the driver to java, or find a libusb-style driver and then shim libusb into the android userspace usb API via JNI; there's a few projects which do it Feb 02 16:07:21 heh, cool stuff 👍 Feb 02 16:07:38 I ported the RTL8187 wifi drivers to java and got packet capture working that way Feb 02 16:08:03 it's a bit of a crapshow but it works; things to watch out for, per-usb-command latency is pretty high, but once you get into bulk io it perks up Feb 02 16:08:58 dragorn: Thanks Feb 02 16:10:20 dougquaid, there's some libraries which expose serial ports that way, too (ftdi and pl2302) Feb 02 16:10:39 I've also written similar drivers for some spectrum analyzers doing the same trick Feb 02 16:11:12 dougquaid, what device are you trying to drive? Feb 02 16:14:02 heh what's the use case? Feb 02 16:15:14 capella, for me? raw packet capture on android; i actually had kismet ported over running inside a JNI lib getting packets funneled to it; it wasn't ultimately stable enough to really continue with, mostly because USB host in early 4.x was crap Feb 02 16:15:23 capella, and now i've got other hw which can do it better Feb 02 16:16:40 dragorn: What other hardware? Something besides and android device? Feb 02 16:16:59 capella, the spec-an stuff was when I was working for the wi-spy people and writing an android app to run their wifi discovery stuff; they ended up not launching the android app tho Feb 02 16:17:31 dougquaid, yeah; it's easier to run an embedded linux platform and serve up kismet via a webui than it is to port 20+ drivers and another 10 or 15 firmware loaders to java, it turns out :) Feb 02 16:18:05 dougquaid, and similarly if I really wanted pcap capture on the android, i'd just pipe packets over a usb stream from the embedded device Feb 02 16:18:16 cool dragorn! JNI is the fun side Feb 02 16:19:36 capella, http://kismetwireless.net/gitweb/?p=android-pcap.git;a=summary is the wifi driver and jni pcap code Feb 02 16:35:56 odd.. my whole layout is set to click-able. however in testing I have an image in the layout the image is not click-able ? Feb 02 16:39:57 do we have to override these three methods after inheriting broadcast receiver class: onReceive(),setAlarm(),cancelAlarm()?? Feb 02 16:40:11 just onReceive Feb 02 16:40:21 onReceive is the whole point of broadcast receivers Feb 02 16:40:50 ok so what about the other two? Feb 02 16:40:55 what they are for? Feb 02 16:41:08 no such thing in broadcastreceiver Feb 02 16:41:50 there is only onReceive in BroadcastReceiver Feb 02 16:41:51 ok Feb 02 16:42:04 ok ok Feb 02 16:42:06 you probably read tutorial about AlarmManager Feb 02 16:42:20 which they added those alarms to their broadcastreceiver Feb 02 16:43:12 pfn ashiren is there anything i should take care about using them? Feb 02 16:43:25 about using what Feb 02 16:43:27 be specific Feb 02 16:43:33 using alarm manager Feb 02 16:44:35 its behavior in deep sleep or doze mode Feb 02 16:45:06 ok Feb 02 16:45:16 for scheduling its better to use some library like https://github.com/firebase/firebase-jobdispatcher-android Feb 02 16:45:30 AlarmManager edge cases became complex Feb 02 16:45:36 like many other things in android Feb 02 16:47:32 ashiren i tried using one library for calendar but it was hell using it,all buggy , so i am avoiding using it Feb 02 16:47:43 mhm Feb 02 16:47:43 using these libraries Feb 02 17:04:34 hi, I'm having an issue with showing a very long text inside an EditText, it generates an ANR Feb 02 17:05:27 I tried adding it piece by piece from another thread (with a loader displayed), but towards the end it gets slower and slower and still ANR's. Feb 02 17:06:00 even tried adding it 1 character at a time, and it goes extremely fast at first, but towards the end it's again slow and ANR's Feb 02 17:06:55 the text loads fine on newer devices, it's just on the lower end ones where it almost always ANR's Feb 02 17:07:08 what can I do to load big files in an EditText ? Feb 02 17:08:29 for starters, are you doing the loading in your UI thread? If not, try loading it in another thread then doing a runonuithread to put the value in the edit text Feb 02 17:09:17 dragorn: yes, the loading from filesystem into memory is done on secondary thread, then the result is applied on UI thread from memory Feb 02 17:09:23 ah Feb 02 17:10:12 the content may also be a SpannableCharSequence instead of a simple String Feb 02 17:11:09 is there any alternative to EditText that works well with large texts or spannable-texts ? Feb 02 17:13:13 kinda Feb 02 17:13:21 you could put an edittext in a scrollview Feb 02 17:13:22 :P Feb 02 17:13:44 dragorn... mips lib for... powerPC? Feb 02 17:14:01 tx: how would that help with the ANR? Feb 02 17:15:22 is there any more output Feb 02 17:15:23 than ANR Feb 02 17:15:27 ANR is pretty unhelpful :P Feb 02 17:16:12 I think if your content is so enormous that it causes issues loading on the UI thread (into an edittext) Feb 02 17:16:17 you need to __stream__ the data in Feb 02 17:16:20 so when you scroll Feb 02 17:16:28 it loads / unloads the content Feb 02 17:18:19 tx: streaming spaned text sounds so painful to do. I'd have to take care of the spans, the line wrapping, the scrolling (which may be animated), etc. Feb 02 17:19:34 Hello, any alternativo to this library? https://github.com/davemorrissey/subsampling-scale-image-view Feb 02 17:19:41 *alternative Feb 02 17:23:59 tx: here's the ANR trace for the UI thread - http://pastebin.com/raw/GfDP4phV Feb 02 17:26:10 I use editText.replace(0, editor.getText().length(), contents); insead of setText() because it places the cursor at the end Feb 02 17:26:20 but it's the same with setText() Feb 02 18:23:19 ive a question.. Ive a custom arrayadapter which requires to do a http request and update the item with the result. Now if i try to do that, it seems to work. But if i try to use another SDK which do almost the same i get an error that it must be run on the ui thread if i try to update widgets within the listener in an arrayadapter. What is the proper way updating widgets in a listener? Feb 02 18:25:06 It's not updating the widgets. Feb 02 18:25:12 It's running network requests on main thread. Feb 02 18:25:16 That hangs the application. Feb 02 18:28:56 nono. The SDK uses a background thread for the network request. Which means that i need to change the widgets value within the listeners onSuccess(). could use runOnUiThread() with the context from the fragment which calls the adapter, but is this the proper way doing that? Feb 02 18:29:21 which SDK is it? Feb 02 18:29:27 philips huesdk Feb 02 18:29:36 are you able to pre-fetch the data? Feb 02 18:29:43 instead of doing it when you’re trying to draw the cell? Feb 02 18:30:00 The value (may) change when i click a button within the list item Feb 02 18:30:13 then runOnUiThread is probably what you want Feb 02 18:30:37 i’m guessing it doesn’t Push changes to you, you have to poll for them? Feb 02 18:30:41 Yes Feb 02 18:39:04 great, moves a few classes, changed a few packages, CHAOS Feb 02 19:07:57 is there a way to get command line access to a android kernel? not just a busybox Feb 02 19:08:23 ummm, that is command line access? Feb 02 19:08:39 yes Feb 02 19:08:56 i don't knowhow to call it =) Feb 02 19:09:11 what you’re asking for doesn’t exist Feb 02 19:09:29 but android does use kernel similar to a linux one Feb 02 19:09:51 yes. and busybox is the shell the developers chose Feb 02 19:11:02 so, android runs somehow without bash at all? i thought its so important part of linux that it cant be taken out Feb 02 19:11:08 no Feb 02 19:11:12 bash is just a shell Feb 02 19:11:23 just like KSH, ZSH, or Busybox Feb 02 19:12:01 kernel and process running a commandline program are two different things garit2 Feb 02 19:12:06 what do you want over busybox Feb 02 19:12:17 lsmod and such things Feb 02 19:12:21 (also do you actually have busybox, it's pretty useful when you have a full featured one) Feb 02 19:12:49 i have kali linux, its bigger than any busybox i guess. and some small busybox too Feb 02 19:13:20 but i want to have access to video drivers Feb 02 19:13:46 i don’t know if embedded linux uses lsmod Feb 02 19:14:19 things like glxinfo exist, but says that it cant open display Feb 02 19:14:20 the way embedded linux does things is different than the way desktop linux does things Feb 02 19:14:52 usually there is no x11 on android... Feb 02 19:15:02 i have x11 as an app Feb 02 19:15:12 Irritatingly it doesn't use lsmod Feb 02 19:15:14 android has it’s own graphics debugging tools Feb 02 19:15:36 ...becuse only seldom is it appropriate to use modules on an embedded system Feb 02 19:15:37 https://android.googlesource.com/platform/frameworks/base/+/master/core/jni/android_util_AssetManager.cpp#353 -- https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/content/res/AssetManager.java#439 Feb 02 19:15:45 wut, how is this not a stackoverflow when cookie == 0 Feb 02 19:16:22 and i prefer to avoid java ) Feb 02 19:17:18 that’s just plain not going to happen Feb 02 19:17:23 assuming there are no modules, how can i know whatever name for a video driver is? Feb 02 19:17:43 bite the bullet, and do java. you will have your thing done so much faster and with so much less headache Feb 02 19:18:40 i can write, compile and execute c programs Feb 02 19:19:11 and there is a library that can work on mobile Feb 02 19:19:18 then you should have no problem picking up java Feb 02 19:19:46 Why do you need to know which video driver is being used? Feb 02 19:20:11 Dagmar: to select a right one in a library, i guess Feb 02 19:20:20 They're all supposed to present a common interface to begin with Feb 02 19:20:27 mesa, GLES. im not sure how it wotks Feb 02 19:20:28 garit2, then use an alternative language that compiles to the jvm Feb 02 19:20:39 clojure, groovy, kotlin, scala, etc. Feb 02 19:20:41 That's going to be incompatible with Android Feb 02 19:20:59 hi there Feb 02 19:20:59 C programs don't run on android, not anything non-trivial Feb 02 19:21:02 gles is done for android Feb 02 19:21:16 You don't need to know the driver to access GL Feb 02 19:21:21 I need an advice. I am building an app and it has a service. the service updates a local sqlite DB from time to time. I would like to know which is the best way do send data from that local db to update online sql db (on a private server)...any suggestions?? Feb 02 19:21:50 oh, the implementation of AssetManager is not just a reacharound bridge back into java, it's a separate class... Feb 02 19:22:00 Dagmar: okay, i will try Feb 02 19:26:17 shoud I use rest api? Feb 02 19:52:29 Hey, I made a custom view that does some drawing but the problem is that if I try adding for example a TextView under it in my xml it won't show. To resolve this I tried putting my view in a custom linear layout with onMeasure overwritten but the TextView still doesn't show up. Anyone knows how I can resolve this? Feb 02 19:53:38 gist of xml (only the BoardView shows and it fills up the entire screen) Feb 02 19:53:44 https://gist.github.com/anonymous/f1f21a7b5ac17effae06c21aa3322ba4 Feb 02 20:09:59 Henrykvdb, what class your BoardView is extending? Feb 02 20:10:13 a surfaceview? Feb 02 20:10:19 View sir Feb 02 20:10:38 hmm then idk Feb 02 20:11:49 what you can do is be sure the issue comes from boardview or boardlayout by replacing them with a temporary view with some background colors to help you differentiate, hierarchy viewer etc Feb 02 20:12:30 also I don't thinkyou need to disable hardware acceleration except if you use unsupported draw calls insde your customviews Feb 02 20:13:04 Holy crap that is frustrating. How do I make sure the "Preview" panel doesn't auto-close when I click out of it???!! Feb 02 20:14:22 explodes, in settings, uncheck hide preview windows when not editing blablab Feb 02 20:14:30 always search for settings Feb 02 20:15:22 adq: I made boardview fill red in it's ondraw and then my entire android screen turns red, also removed the hardware acceleration line. Feb 02 20:16:26 well that's weird Henrykvdb, i would expect the latest textview in your gist would show up above it Feb 02 20:16:36 the first one might be below, it's expected Feb 02 20:16:36 adq thank you Feb 02 20:18:05 It it still hiding automatically! Holy fuck Feb 02 20:18:26 works for me explodes, so you might have screwed something, or it's just another AS bug Feb 02 20:18:38 Gonna restart AS Feb 02 20:18:46 Henrykvdb, if you talk about the first textview in your gist it's under your board views Feb 02 20:18:56 if you draw a solid background without transparency above it, you won't see it Feb 02 20:19:11 maybe show us a pic, because i said all i had to say Feb 02 20:21:01 adq: Okay I'll send a screenshot with the ondraw back to the normal (otherwhise it's just a red screen) Feb 02 20:23:17 adq: http://i.imgur.com/wdtZR24.png Feb 02 20:24:31 My settings are messed up I think. .idea/workspace.xml should be DOCKED Feb 02 20:25:55 no idea Henrykvdb :/ as already said i would expect the first textview to not be visible because under your board, but the second should definitely on top of your board Feb 02 20:26:10 or maybe your textcolor is white by default Feb 02 20:26:24 and you don't see it, but you would see the boundaries Feb 02 20:28:44 adq: Textcolor isn't the issue as buttons aren't displaying either. Feb 02 20:28:54 adq: thanks anyways I guess Feb 02 20:29:11 you did not use zorder or something programmatically? Feb 02 20:29:31 that would force it to on top of everything, thus hiding your views, i'm out of ideas anyway Feb 02 20:30:42 adq: never touched zorder Feb 02 20:31:38 adq - the other day you directed me to disable sharedpreference because our app was saving the username/pass. This is also annoying to us with it keeping status of App permissions. Is that possible? I see my GPS is not allowed Feb 02 20:32:26 permissions are handled at runtime on api 23 and above Feb 02 20:32:57 idk how you clear your app data, but you might clear too much of it (that resets permissions granted at runtime) Feb 02 20:33:26 and i only directed you to disable sharedpref because your backup/restore issue Feb 02 20:40:14 adq - the other day you directed me to disable sharedpreference because our app was saving the username/pass. This is also annoying to us with it keeping status of App permissions. Is that possible? I see my GPS is not allowed. is it possible it's also recording that? Feb 02 20:44:58 permissions are stored by the android system, not your app Feb 02 20:47:19 yep dragorn but when you clear data of your app, it resets the permissions you granted at runtime, idk what he is doing anyway Feb 02 20:49:27 adq, i'm not sure that's true? Feb 02 20:49:37 i do it all the time to test the permission i request Feb 02 20:49:59 adq, hm; i thought it was explicitly supposed to retain those if you cleared / uninstalled Feb 02 20:50:23 well, recently i only worked on a wear project and i can assure you if i clear data, it requests perm Feb 02 20:50:32 it will promp for perm request again* Feb 02 20:50:43 adq, you're probably right, I thought it was supposed to store them to prevent shenanigans Feb 02 20:50:46 i don't think it's specific to the android wear platform but i will check on a regular android tho Feb 02 20:51:58 it's not stored in /data/data/packagename/ for sure Feb 02 20:56:35 * mrandroid has been away for a while, but now is back. Feb 02 21:00:43 dragorn, ok i just tester on a regular AVD emu API 25 with a random apk asking for perm at runtime Feb 02 21:00:50 and i can confirm Feb 02 21:01:02 (just in case, it is indeed not specific to the wear platform) Feb 02 21:01:07 tested* Feb 02 21:01:11 adq, cool. i thought it preserved them; i must have misremembered Feb 02 21:01:15 no worry Feb 02 21:01:19 Either way, they're not in the app preferences :) Feb 02 21:01:36 yep stored somewhere else for sure, did not investigate tho Feb 02 21:40:24 should i worry about a .gitignore file if im just testing android development? or are there files with sensitive information anywhere? im just learning basic apis and such, nothing personal in the app at all Feb 02 21:40:24 ugh, I can't abuse LoadedApk mSplitResDirs or mOverlayDirs Feb 02 21:40:31 I was hoping I could use it to shard resources :( Feb 02 21:41:02 i mean i see posts like this indicating certain files shouldnt be versioned, im wondering if thats for security or what https://gist.github.com/iainconnor/8605514 Feb 02 21:41:48 because they're a waste of space Feb 02 21:42:25 you should never commit local configuration nor build artifacts into scm Feb 02 21:44:08 what do you think about Virgil Dobjanschi rest client pattern ? Feb 02 21:44:18 is it outdated ? Feb 02 21:44:20 ah okay, someone in that thread says .idea/vcs.xml should be versioned, im only doing it because yesterday i had put an hour or so into a project, and had the bright idea of creating a new activity and went about it wrong, i was trying to manually edit a ton of fails and kept getting build errs until ij ust deleted the project Feb 02 21:44:48 I wish ALOGX in android framework source weren't a compile-time define Feb 02 21:44:51 I want to see wtf it says :( Feb 02 21:50:58 ech0s7: woah i didnt know it had a name Feb 02 21:51:21 in my company most apps download stuff to database, then it is read from database to UI Feb 02 21:51:26 Ashiren: just because it presented it ... Feb 02 21:51:27 never directly from rest Feb 02 21:51:43 Ashiren: i think is the best pattern, i have studied a lot about it Feb 02 21:51:58 I’ve seen his presentation. It’s kind of old, and it had a lot of moving parts Feb 02 21:52:29 the only think i don't like is how to notify the UI with "binder callback" that does means with a broadcast receiver Feb 02 21:53:06 s73v3r: why do you think is old ? Feb 02 21:53:52 i mean, it kinda is. it’s from 2011. that’s not to say the ideas aren’t good or we can’t learn anything from it Feb 02 21:54:12 but i have a feeling that if he were working on this now, he’d be using something like Rx Feb 02 21:54:32 s73v3r: yes, the presentation is old, but the basic concepts are right Feb 02 21:54:51 i’m even saying some of the stuff used is outdated Feb 02 21:55:10 for example ? Feb 02 21:55:11 what ? Feb 02 21:55:28 well its about the idea, nowadays it would be done with retrofit and rxjava Feb 02 21:55:37 pretty much Feb 02 21:55:50 but it’s also kinda complex Feb 02 21:56:11 i think that’s why it didn’t really take off, despite covering something that just about every app out there would need Feb 02 22:18:09 anyway s73v3r and Ashiren i think that presentation is very useful also if you are using retrofit or rxjava Feb 02 22:18:31 you should never call rest method (retrofit service) from your activity or fragments Feb 02 22:20:00 that much is true, yes Feb 02 22:20:01 but instead is better to create a android.Service and from it make the retrofit calls, update the DB, and notify the content observer Feb 02 22:20:30 that add complexity to your code, but it's the best way Feb 02 22:20:35 (in my opinion) Feb 02 22:23:12 My app requires geolocation permissions, and I have clarified that in the android manifest. Feb 02 22:23:46 And on continuous app install/reinstall, it sometimes asks for geolocation permissions, and sometimes it doesn't. Feb 02 22:24:02 When it doesn't, app can't use geolocation Feb 02 22:24:09 why doesn't it always ask? Feb 02 22:31:47 CrowX-, as adq just educated me earlier today, you probably need to do a clear data or a full uninstall to reset the permissions state Feb 02 22:32:06 CrowX-, integrate that into your test cycle first and see if it's still being wonky Feb 02 22:33:55 do you use any library for i18n or just the traditional way? Feb 02 22:34:36 CrowX-, or handle better your runtime permission, looks you have no idea what is happening. There is only one annoying case which is when users select never ask again, in this specific scenario you have to explain to the user that they have to manually enable the permission in the app settings Feb 02 22:35:27 and maybe your install/"reinstall?" flushed the data somehow, which is similar to clearing the data and users need to approve permissions again Feb 02 22:39:21 dragorn, full uninstall is what I'm doing Feb 02 22:42:18 i'd try clearing data instead then; I think permissions are backed up as part of the google app data backup - but I could be wrong Feb 02 22:42:39 and as adq said, do more logging around your runtime perms query and see if you can better determine your state Feb 02 22:42:54 unless you pick 'never ask again' it should give you some sort of feedback Feb 02 22:47:21 dragorn, I set android:allowBackup to false Feb 02 22:47:26 in the android manifest Feb 02 22:47:32 hoping that issues like this would be prevented Feb 02 22:47:32 fair enough Feb 02 22:47:37 good move Feb 02 22:47:53 so i'd start putting more logging around your runtime permissions, or consider one of the helper libs that handles most of them for you Feb 02 22:49:30 adq - " and i only directed you to disable sharedpref because your backup/restore issue" - correct, and that has fixed the password cache issue in backup (thanks). I want to reset whatever permissions were granted at runtime. If I uninstall the app I want EVERYTHING to be reset and refreshed. How can I do that? Feb 02 22:53:22 -_- Feb 02 22:53:41 you clear the data i told, several times. Are you a markov chain bot? Feb 02 22:54:33 the issue is usually not with having permissions... but the contrary Feb 02 22:57:21 I cleared the data and it does NOT work. The only way it works is if I manually go into Android Settings > App > Permissions and enable GPS Feb 02 22:59:50 isn’t that what’s supposed to happen? Feb 02 22:59:58 you cleared data. That means you cleared the permission Feb 02 23:12:19 s73v3r - that is EXACTLY my problem. It is NOT doing that. Feb 02 23:12:26 seems like there is another storage or cache for this Feb 02 23:12:50 so you went into Android Settings -> App -> and cleared cache? Feb 02 23:12:54 for password it was sharedpreferences backup and I disabled that and it's good but now GPS Permission seems to be saved somewhere Feb 02 23:13:03 s73v3r - exactly what i did Feb 02 23:13:19 and this is Android 6+? Feb 02 23:13:39 7.1.1 Feb 02 23:14:10 under storage, have you tried clearing all deleted data? Feb 02 23:14:22 and, is your app targeting 6+? Feb 02 23:16:28 s73v3r - Unders Storage I see Clear Cache and Clear Data and both I did Feb 02 23:16:32 but this has nothing to do with Permissions Feb 02 23:16:45 both of those will erase the file that stores the permissions Feb 02 23:16:48 Permissions is under another tap on Android Settings anyways Feb 02 23:17:13 if you do those on an app that targets 6+, you’ll see that any permissions that the app had been granted go away Feb 02 23:17:26 s73v3r - it doesn't erase all first of all because things like sharedpreferences are still storing (thanks to adq that is is set to false now so it's not happening) Feb 02 23:17:44 what do you mean target 6+? Feb 02 23:17:47 what is your MinSDK, TargetSDK, and CompileSDK Feb 02 23:18:24 more importantly, why do you need to clear those permission Feb 02 23:18:30 ppl usually want the contrary Feb 02 23:18:42 sounds like they want to test code that asks for permissions Feb 02 23:18:50 then you can script it Feb 02 23:19:20 we want the app to be FULLY uninstalled Feb 02 23:19:29 and if REINSTALLED we want it to be as if this was a brand new app Feb 02 23:19:37 don’t worry about that Feb 02 23:19:56 on the list of things you should be caring about while making your app, that is really low on the list Feb 02 23:20:06 but I have to because it is causing us issues now; permissions are NOT working unless user manually allows it which is BAD Feb 02 23:20:06 use `pm' if it's for debugging/testing (pm clear somethingpackage) Feb 02 23:20:09 below making good screenshots for the Play Store page Feb 02 23:20:16 lol wat Feb 02 23:20:20 no it's not bad, it's intended Feb 02 23:20:29 We use: MinSDK: 14 Feb 02 23:20:29 TargetSDK: 25 Feb 02 23:20:32 i'm sick of those tictactoe game requesting contact permissions Feb 02 23:20:41 (tbh i don't play tictactoe nor install that) Feb 02 23:20:58 we are testing our app Feb 02 23:21:00 well since you target >= 23 Feb 02 23:21:00 maybe they request to play with ur freinds Feb 02 23:21:07 request permission at runtime is mandatory Feb 02 23:21:08 monsterco: so what’s the problem the users are seeing? They don’t want to see the dialog asking for permission? Feb 02 23:21:18 request permission at install Feb 02 23:21:20 is better Feb 02 23:21:26 NOOOOOOOO Feb 02 23:21:29 dont install crap you cant auth Feb 02 23:21:32 request permission when you’re about to use Feb 02 23:21:36 wait plz Feb 02 23:21:39 yeah consumers love tha Feb 02 23:21:40 t Feb 02 23:21:41 i am getting confused Feb 02 23:21:45 you are for sure Feb 02 23:21:48 there are two types of request permissions? Feb 02 23:21:51 no Feb 02 23:21:53 read the documentation about runtime permission Feb 02 23:21:57 no Feb 02 23:22:01 your wrong with time Feb 02 23:22:06 this Feb 02 23:22:15 tedious Feb 02 23:22:16 wrong Feb 02 23:22:19 I thought at runtime is now mandatory Feb 02 23:22:24 and at install was always there Feb 02 23:22:24 please write horizontally lol Feb 02 23:22:27 you ask for the permission when you are about to use it. That way the user is clear what it’s for Feb 02 23:22:39 lol Feb 02 23:22:51 twitter and facebook do that all the time Feb 02 23:22:52 s73v3r - can this be at both times? install and run time? Feb 02 23:22:54 its cool..? Feb 02 23:22:59 monsterco: i wouldn't Feb 02 23:23:12 sasser: facebook doesn’t ask for a permission until they need it Feb 02 23:23:17 wrong Feb 02 23:23:19 I don't care if my user was told 100 times; we have a clear policy and nothing to hide; they either use our app or not; we want to be crystal clear Feb 02 23:23:20 right Feb 02 23:23:27 proof? Feb 02 23:23:32 using it Feb 02 23:23:35 it's not at install, it's when you run the app which request the perm, there are specific calls you have to implement Feb 02 23:23:36 show screen Feb 02 23:23:38 read the doc, again Feb 02 23:23:43 it's more than an hour we talk about that now Feb 02 23:23:58 adq - it's not asking me at run time Feb 02 23:24:04 but you target 25 Feb 02 23:24:06 you have no choice Feb 02 23:24:09 boss leaders wrong Feb 02 23:24:32 except on device under 23 ofc, this will be granted auto, obviously Feb 02 23:24:52 it's not at install, it's when you run the app which request the perm, there are specific calls you have to implement Feb 02 23:27:23 sasser: http://imgur.com/a/vpFqA Feb 02 23:27:42 the pictures are backwards, but it shows that Facebook doesn’t ask for permissions until it uses it Feb 02 23:28:02 in this case, it doesn’t have permission for pictures. and it doesn’t ask until I go to upload a picture Feb 02 23:28:27 monsterco: so once again, what’s the actual problem your users are reporting? Feb 02 23:28:40 not your problem, but your user’s problem Feb 02 23:29:30 s73v3r - we collect gps location data when user clocks into a job. Alert from our app comes up to enable GPS. User enables GPS and still no work. I check Settings > Apps > XXX-app > Permissions and surely enough GPS is NOT enabled Feb 02 23:29:49 the permission to allow GPS was never presented to user and it's not enabled Feb 02 23:30:08 is it possible they denied it before? Feb 02 23:30:23 s73v3r - they did NOT because they are I Feb 02 23:30:24 me Feb 02 23:30:25 myself Feb 02 23:30:49 so this isn’t a released app that people are using Feb 02 23:31:01 it is on playstore Feb 02 23:31:30 but it's use by 3 whole ppl Feb 02 23:31:31 lol Feb 02 23:32:00 and you’re trying to test, but you’re unable to repro Feb 02 23:32:17 adq, if we lower SDK version to 22 we'll have install time permissions to work fine? Feb 02 23:32:59 CrowX-: perhaps, but it’s unsure how long that’ll work on newer versions of android. Plus, anyone on a newer version can still go in and deny the permissions Feb 02 23:33:08 if your target sdk is below 23, thus 22, you won't have to deal with runtime permission Feb 02 23:33:12 but you should not circumvent that Feb 02 23:33:24 it's something very important Feb 02 23:33:25 adq, our problem is app doesn't ask for the permissions most of the time on install Feb 02 23:33:29 sometimes it does, but sometimes it doesnt Feb 02 23:33:33 it's not at install Feb 02 23:33:33 and when it doesn't, we have problems. Feb 02 23:33:37 it's at runtime, and you have to implement it Feb 02 23:33:43 i'm tired of this conversation now lol, so good luck Feb 02 23:33:58 CrowX-: you have to explicitly check to see if you have the permission before you use it Feb 02 23:35:14 but why does it sometimes ask though? Feb 02 23:35:27 on install Feb 02 23:35:34 it shouldn’t Feb 02 23:35:47 unless you put the code that explicitly asks right at the front of your app Feb 02 23:40:01 s73v3r - what should we put in code to explicitly ask for rights? Feb 02 23:40:09 we want to do that to be full proof Feb 02 23:40:22 it’s in the permissions doc Feb 02 23:40:30 we want to ask everytime app launches so that if user has manually turned the permissions off then they can't use the app Feb 02 23:40:43 https://developer.android.com/training/permissions/requesting.html Feb 02 23:41:04 note that if the permission has been granted, it’s not going to pop the dialog, because the system knows that the permission is granted Feb 02 23:44:14 s73v3r - that's beautiful if it works that way. We don't care about android version and want ALL version sdk14-25 supported but we want users explicitly asked at each step to enable GPS or don't use the app Feb 02 23:44:49 they’ll only see the dialog on M and above. for other versions, it should be automatically granted Feb 02 23:46:23 Also, https://developer.android.com/training/permissions/usage-notes.html shows how you can use ADB to set permissions for your own testing Feb 02 23:46:29 or revoke Feb 02 23:57:00 in android, GPU is solely given to a android process? if i will run x, will it get access to GPU resources? Feb 02 23:57:58 unless i run something that knows how to 'ask' android for gpu resources, like opengl. right? Feb 03 00:02:15 s73v3r - i am able to reporduce :) hence I am complaining Feb 03 00:05:57 garit2: all of the UI of Android is done using OpenGL under the hood Feb 03 00:06:57 thats interesting. so i have to use it too if i want some piece of gpu Feb 03 00:18:21 <_genuser_> hello people of the interwebs! Feb 03 00:23:44 what exactly are you asking... Feb 03 00:23:49 surfaceflinger is all opengl? hmm Feb 03 00:48:55 getItemViewType and getViewTypeCount are beasts Feb 03 00:50:06 if that’s the case, then you might want to look at doing some refactoring Feb 03 01:13:59 hmm shrinkResources at true despite minifyEnabled at false, create crazy error with multiple variants and flavordimensions :') Feb 03 01:14:24 no issue when both disabled Feb 03 01:14:44 Mmm flavored dimensions, delicious. Feb 03 01:15:27 31 flavored dimensions id hope Feb 03 01:15:33 looks like proguard is not happy Feb 03 01:15:52 without flavordimensions but few flavors, no issue too Feb 03 01:15:56 damnit Feb 03 01:16:42 where can i find a empty java app that can work as a wrapper to launch my c program? Feb 03 01:17:08 (i dont want to make a full up on c, i prefer to use a wrapper, since its easier) Feb 03 01:18:09 i guarantee you it’s not easier Feb 03 01:18:13 something that i dont need to rebuild or compile Feb 03 01:18:50 https://twitter.com/blipinsk/status/818388317326680064 that's the one i hit with minify false & shrink true Feb 03 01:19:12 still that's weird, shrink shoulkd be ignore if minify is not enabled Feb 03 01:20:34 s73v3r: all i want is a java program that launches one file, thats it :P Feb 03 01:24:32 and now proguard cannot find his own rules in intermediates -_- Feb 03 01:26:04 s73v3r: what about terminal app, can i use it? Feb 03 01:26:12 no Feb 03 01:27:27 why no? Feb 03 01:28:25 probably because its sort of chroot with limited abilities.. Feb 03 01:28:57 but there should be a way to launch a program within android main user Feb 03 01:29:00 then search some source code example using exec, or go NDK Feb 03 01:29:22 you should not use exec anyway Feb 03 01:29:56 garit2: there really isn’t. mainly because Android was not set up to do that Feb 03 01:30:27 honestly, if you had started reimplementing in Java as we told you a few days ago, you’d probably be done by now. and you wouldn’t have to try and get X11 running on Android Feb 03 01:30:50 yeah, that was stupid idea Feb 03 01:31:38 problem with java is that i cant build java code on a phone Feb 03 01:31:50 you kinda can, using AIDE Feb 03 01:33:33 is it a full thing? with possibility to use things like opengl es? Feb 03 01:33:39 Why do UI layouts have to be filled with caprice and hatred? Feb 03 01:35:40 s73v3r: if more than 5 files it cost 20 bucks Feb 03 01:36:20 everything is failing lol, proguard stuck at transformclassesandressource now, canceling gradle task never did anything, trying to close the IDE gracefully and now AS UI is frozen :') Feb 03 01:36:35 and i give them a huuuggge amount of ram Feb 03 01:40:13 how can i send a message from the Activity to a Fragment into a ViewPager ? Feb 03 01:41:35 so, a question: what toolset has a bootstrap ability on android? anything that can compile and launch itself. is there any? Feb 03 01:42:16 c cant launch, but can compile. java can launch but cant compile. what else is there Feb 03 01:43:22 ech0s7, you can use a listener callback, an evenbus, sending some intent, etc it's up to you to choose Feb 03 01:44:03 You can launch compiled binaries Feb 03 01:44:03 adq: a listener callback it's possible only from the fragment to the activity Feb 03 01:44:09 It's not like the entire thing's written in java Feb 03 01:47:40 Dagmar: so far i was able to launch things only in chroot Feb 03 01:47:53 Not sure why you're bothering with a chroot Feb 03 01:48:27 ...but if you look around the filesystem, you'll see there's lots and lots of compiled binaries. Feb 03 01:48:38 what should i do? there is even no real console Feb 03 01:48:49 ech0s7: Does the Fragment already exist at the time you want to send the message, or are you creating the Fragment at that time? Feb 03 01:48:58 What you're probably missing (if you're on Android 4.4 or better) is that you need to grant your resulting binary _an executable context_ Feb 03 01:49:30 garit2: There's a terminal you can enable under developer options, and adb gets you a shell just fine Feb 03 01:49:40 There's also Terminal IDE Feb 03 01:49:57 TacticalJoke: in the Activity.onCreate() i set the adapter for the viewpager that contains two fragments, on the user click event i would send a message to the fragments into the viewpager... Feb 03 01:53:51 this is extremely weird, i had to kill AS multiple times after multiple fails, and redo the same thing (usually i don't like redoing the same thing because it often leads to the same path..) and now.. it has builded correctly Feb 03 01:54:03 Dagmar: thanks, that may be handy Feb 03 01:54:21 with proguard & minify with flavordimensions + additional embedded projects Feb 03 01:54:31 Dagmar: sdxard is moubted as noexec. any idea where to out stuff to launch it? Feb 03 01:55:08 where to put* Feb 03 02:00:42 ech0s7: It doesn't look very easy to me. Feb 03 02:00:49 See, for example, http://stackoverflow.com/questions/14035090/how-to-get-existing-fragments-when-using-fragmentpageradapter. Feb 03 02:00:57 Without the period: http://stackoverflow.com/questions/14035090/how-to-get-existing-fragments-when-using-fragmentpageradapter Feb 03 02:01:27 Or google `fragmentpageradapter get fragment` for similar questions (many of which have *wrong* answers). Feb 03 02:03:01 ech0s7: Though maybe I misread your question. If you want to send the message to *all* the fragments, it might be quite easy. Feb 03 02:03:09 What's not easy is selecting one fragment. Feb 03 02:03:51 yes i see Feb 03 02:03:55 instantiateItem() make the jobs Feb 03 02:06:11 thanks TacticalJoke Feb 03 02:06:22 Yeah, that seems to be the right method (though I've never tried this myself). Feb 03 02:07:40 anyway TacticalJoke, i'm moving the logic into the fragments instead of the activity Feb 03 02:08:09 That sounds easier. :) Feb 03 02:11:30 the way i talk to fragments in my activity, i have a retained fragment, and inside the retained fragment i have references to the fragments i create in my viewpager, so when theyre recreated, in the onCreate override of my fragments, i reset these references in the retained fragment, then theyre all fair game and back in action Feb 03 02:11:50 i keep wanting to use the word pointer, but know stupid java doesnt use that word Feb 03 02:11:58 damn toy languages Feb 03 02:15:05 works out really nicely too. i can work inside my app as if im working with a regular decent language/api Feb 03 02:15:34 I think you can say pointer. From the JLS: "The reference values (often just references) are pointers to these objects [...]" Feb 03 02:15:44 https://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.3.1 Feb 03 02:16:08 i have a heavy win32/c/c++ background as you know, but i just feel like id offend these java people lol. Feb 03 02:16:22 i mean technically everything is a pointer it seems Feb 03 02:16:35 I used C++ for a long time. I wouldn't call Java a toy language. Feb 03 02:16:53 i dont like it Feb 03 02:17:03 the collections make me wanna puke. i already made my own linked list Feb 03 02:17:11 iterators made me wanna slice my throat Feb 03 02:18:01 its a very common pattern to store an interator inside the object that you have inside an std::list for example in c++ Feb 03 02:18:09 i cant do that in java Feb 03 02:19:59 now say i have 5000 items in a ListView, and when scrolled through the items in view are set inside of the ViewHolders. if i want to select and delete an item, i have to find it in the list. thats pretty much cancer lol. Feb 03 02:23:07 anway, beer time Feb 03 02:29:42 emceelovin: In case you're still here -- what do you mean by "if i want to select and delete an item, i have to find it in the list"? Feb 03 02:32:28 yeah im still here. i keep procrastinating Feb 03 02:33:05 if i use a LinkedList. i have to use remove by object or instance. pretty inefficient to me Feb 03 02:33:14 if i use iterators, theyre invalidated if the list is modified from what i read Feb 03 02:33:25 index* not instance Feb 03 02:33:43 just defeats the purpose of a linked list really Feb 03 02:38:03 TacticalJoke im actaully out now. ill get back to you later Feb 03 02:54:51 TacticalJoke thought this was actually pretty good Feb 03 02:54:53 http://www.bbc.com/future/story/20170131-the-secret-to-living-a-meaningful-life Feb 03 02:55:09 so everybody needs meaningful android projects :D Feb 03 02:59:30 That definitely rings true.f Feb 03 02:59:32 -f Feb 03 02:59:42 Would you say your project was meaningful, g00s? :D Feb 03 02:59:56 hmm **** ENDING LOGGING AT Fri Feb 03 03:00:00 2017