**** BEGIN LOGGING AT Sun Oct 16 02:59:58 2016 Oct 16 05:23:17 hello all sorry to pester again (and did fix the other problem before) but how would i be able to have my app keep running even if the screen goes off, what would i need to be looking in to do this? Oct 16 05:23:53 i noticed if i lock the screen it carries on but if it locks on its own it stops? Oct 16 05:25:37 ok looking over the docs its a wake_lock i need and partial one at that Oct 16 05:50:27 Hello, is it possible to create a direct download link to an app on google play ? (Not first leading to the details page) Oct 16 05:53:06 Or that not really liked by google ? Oct 16 06:13:29 NeoFrontier: i dont think google likes that Oct 16 06:14:35 yeah Oct 16 06:14:38 can't it possible through script.. Oct 16 06:14:59 good morning Oct 16 06:15:19 velus: did you fix your bug? Oct 16 06:15:25 good moning Melatonina and i fixed my problem Oct 16 06:15:43 yes now im just having a little problem with sleep on the phone Oct 16 06:17:25 Melatonina: do you know much about wakelock? Oct 16 06:17:52 velus: no, sorry. Apparently I'm not very useful Oct 16 06:18:13 its ok, im just wondering if im doing it right atm, it took me a lot to get it to where i am now lol Oct 16 06:20:33 and i cant get it to work now hmmmm i will figgure this out Oct 16 06:27:00 i might do some reading on something while i wait for more people to come on Oct 16 06:29:46 Melatonina: a quick question, are you any good at https calls and then getting data from the response? Oct 16 06:29:58 the repsonce would be in json Oct 16 06:31:02 I made few. I should do more in future. I used both Volley and Retrofit in very simple interaction with a server Oct 16 06:31:40 There is people much more competent than me here. You can try and ask, anyway Oct 16 06:32:13 ok, well will you be able to help me with this then please? i need to send a query in https format i.e http://musicbrainz.org/ws/2/release-group/?query=%22man%20who%20sold%20the%20world%22+AND+artist:%22david%20bowie%22&fmt=json and then retrive a bit of data if its there Oct 16 06:33:54 would you be able to point me in the right direction for this Oct 16 06:34:41 Did you try to express this query with the Retrofit API? https://square.github.io/retrofit/ Oct 16 06:35:28 that page talks about query parameters too Oct 16 06:38:21 velus: https://futurestud.io/tutorials/retrofit-optional-query-parameters Oct 16 06:48:05 not yet i am thinking of creating a crude class for it instead of having a full libary for it. something simple like a get method then read the json then get the info to then send to another service to then get another sting to get the image i know its a long way but i also need to do some checking in it between strings Oct 16 06:48:40 but im going to go for a long deserverd sleep right now lol Oct 16 07:50:47 hi my friends Oct 16 07:51:03 i have a question Oct 16 07:52:56 when i want create image for gui , i should attention to size of device of dpi of device Oct 16 07:53:29 when i want create image for gui , i should attention to size of device or, dpi of device Oct 16 07:55:45 nolash, Oct 16 07:55:49 hi , nolash Oct 16 07:56:29 are there every body here? Oct 16 07:59:12 AKK9, hi Oct 16 07:59:20 AKK9, can you help me? Oct 16 07:59:27 homa_: Umm, hi Oct 16 07:59:37 What's the problem? Oct 16 07:59:53 when i want create image for gui , i should attention to size of device or, dpi of device , AKK9 Oct 16 08:00:15 Screen density Oct 16 08:00:31 Look at some guides on screen density and drawable resources Oct 16 08:00:42 where? Oct 16 08:01:09 dpi of device , AKK9 Oct 16 08:01:30 https://developer.android.com/training/multiscreen/screendensities.html#TaskProvideAltBmp Oct 16 08:06:50 AKK9, i want create back ground for device , example i created 768*1280 and 320 dpi and 480 dpi but in simulator 1080*1920 and 480 dpi don't match Oct 16 08:07:17 What do you mean? Oct 16 08:08:03 760*1280 is size of device in semulator , AKK9 Oct 16 08:08:34 So it looks different in two different emulator? Oct 16 08:08:40 And both emulators have 480 dpi? Oct 16 08:09:13 Becaue of the different resolutions or screen sies probably Oct 16 08:09:55 no one is 320 dpi with 760*1024 and another is 480 dpi with 1080*1920 , AKK9 Oct 16 08:10:14 Ok, so what is the problem you are seeing? Oct 16 08:10:18 With your image? Oct 16 08:10:37 yes Oct 16 08:11:18 i created on size with 480 and 320 dpi image , AKK9 Oct 16 08:11:26 i created one size with 480 and 320 dpi image , AKK9 Oct 16 08:11:47 Send screenshots, will be easier for me to understand Oct 16 08:12:00 ok Oct 16 08:34:29 AKK9, i solved that Oct 16 08:34:37 AKK9, thank you Oct 16 09:31:40 Android TV device (5.1.1) returning "-01:00GMT-02:00,J086/02:00,J303/03:00" as zone offset Oct 16 09:32:01 I'm wondering, is it valid format? Oct 16 09:32:45 because 310-backport doesn't like it Oct 16 09:33:43 actually, when I'm trying LocalDate.now() on that device I'm getting crash with ' Invalid ID for ZoneOffset, invalid format: -01:00GMT-02:00,J086/02:00,J303/03:00' Oct 16 09:40:26 Hey Oct 16 09:41:07 I've just gotten into Android dev, and I'm working on my first app, and I've run into some difficulty implementing styles Oct 16 09:42:35 Lets say I have multiple InputText and Button views with rounded edges, but with different background colors, edges, etc Oct 16 09:43:15 How best should I go about styling these? So far I've got a rect_rounded drawable with a rectangle shape with rounded edges Oct 16 09:43:58 But I realize that I might just have to create an entirely new drawable for every different background color or edge difference? Oct 16 09:48:02 that might be it Oct 16 09:48:11 or you can set their color programmatically Oct 16 09:48:28 the view's rounded drawable's color Oct 16 09:51:41 Does anyone use Constraint Layout? Oct 16 09:51:49 I come from a web dev background, and I'm kind of thinking in terms of CSS. Is there no way to simply have one drawable and change its color from the layout or style? Oct 16 09:51:50 Android Studio is telling me it's obsolete Oct 16 09:51:53 I can't figure out why Oct 16 10:03:35 Ashiren, it seems I can avoid setting a solid color in the drawable, and simply set android:backgroundTint for each element in the xml Oct 16 10:14:07 ConstraintLayout is way too buggy to use right now Oct 16 10:14:15 Anyone else successfully using it? Oct 16 10:47:36 bye my friends Oct 16 11:24:06 can i build AOSP in an emulator and fuzz using it? Oct 16 12:17:51 How to recover deleted photos from non rooted phone? Oct 16 12:33:55 imla: from your cloud backup Oct 16 12:38:31 Android Studio tells I can't use play-services:9.6.1, because I already use 8.1.0. If I search for 8.1.0, I can't find it anywhere in my entire project! Oct 16 12:38:31 https://www.dropbox.com/s/8c4pm4nlq2ebsm5/Captura%20de%20pantalla%202016-10-16%2014.37.34.png?dl=0 Oct 16 12:38:35 any clue about this? Oct 16 12:38:54 I don't even know what play-services-measurement is (and also found this string not a single time in my project) Oct 16 12:39:59 Leeds: no backup from cloud, I only found non free software that can do that! Oct 16 12:40:27 imla: Please use #android for help with your device Oct 16 12:41:34 unsigned_long: You can use gradlew dependencies for a dependency tree Oct 16 12:41:49 kk, will check that SimonVT! Oct 16 12:42:14 SimonVT: I do in #android, but thinking I can use manual methode with adb and test disk but the root is the problem! Oct 16 12:44:19 If you need help developing an app, then you're in the right place. If not, #android :) Oct 16 13:11:22 Why me situation on board. Oct 16 13:12:12 SimonVT, as a more experienced - can you pls? Oct 16 13:14:01 I don't think I can pls Oct 16 13:14:51 I have app verA/VerB, by building signed apk - with minifyEnabled true verA ends up with differently obfuscated class Oct 16 13:15:07 verA com.example.utils.Items -> com.example.a.g: vs verB Oct 16 13:15:07 com.example.utils.Items -> com.example.a.c: Oct 16 13:15:30 as long as it is data class - data saved with verA - cannot be read with verB Oct 16 13:15:38 Sounds about right Oct 16 13:15:56 how can I prevent this behaviour? Oct 16 13:16:04 Don't obfuscate that class Oct 16 13:18:11 it did not happen when verA (gradle 2.1.3, 2.2.0) -upgrade> verB (gradle 2.2.0, 2.2.1) Oct 16 13:18:41 is it some general rule to not to obfuscate data structures ? Oct 16 13:19:49 Don't obfuscate classes/fields where you expect a certain name Oct 16 13:20:09 Sounds like you don't expect the Items class to ever change name Oct 16 13:20:48 yes I do not expect that Oct 16 13:21:21 it never change Oct 16 13:27:31 SimonVT, as I asked about general rule - is this described here https://developer.android.com/studio/build/shrink-code.html#shrink-code or somewhere else in docs? Oct 16 13:27:50 No, there's no general rule Oct 16 13:27:56 It depends entirely on your implementation Oct 16 13:28:40 ok - than there must be other way how to prevent this behaviour when class obfuscates, but data structure is same - am I right? Oct 16 13:29:09 Sure Oct 16 13:36:36 hello Oct 16 13:45:49 hi my friends Oct 16 13:56:07 homa_: Hi, my friend. Can you lend me 5000€? Oct 16 13:57:31 hi Meanirelli , if i had that money i had one company Oct 16 13:59:32 homa_: Everybody uses the word "friend" easily. Then, when it's time to actually show their friendship, they find excuses. Oct 16 14:00:09 i can love you , Melatonina Oct 16 14:01:20 2500€ will be fine Oct 16 14:07:10 sametsisartenep: are you a hacker? "sametsisartenep" <-> "penetra sistemas" Oct 16 14:35:14 lol Oct 16 14:35:49 Meanirelli, less than Oct 16 14:36:04 Melatonina, less than Oct 16 14:36:26 ????????? Oct 16 14:36:42 Meanirelli, sorry Oct 16 14:39:19 Hello! Is there a way to use @string/string_id - style identifiers from JSON files? I'm thinking along the lines of some preprocessor that should run at build time, but I'm scared of Graddle. Oct 16 14:40:34 I want to use localized strings from my JSON file, e.g. something like [ "Name": @string/my_stuff_name, "Desc": @string/my_stuff_desc ] Oct 16 14:43:41 zap: Gradle eats babies Oct 16 14:44:08 zap: watch out Oct 16 14:45:29 you can't scare me more than I am :-P Oct 16 14:45:44 can i send broadcast from mainactivy to fragment ? Oct 16 14:48:55 goodbye my friends Oct 16 15:00:57 ???? Oct 16 15:03:22 Meanirelli: homa_ used nick completion on "Me" and addressed you instead of me. That's all Oct 16 15:03:31 ? Oct 16 15:03:47 Meanirelli: having fun with the "?" key? Oct 16 15:04:23 Good Oct 16 15:07:37 Is here somebody who is using serialized data structures with code obfuscation (minifyEnabled true)? Example: MainActivity.java http://pastebin.com/vC95TTht, DataItems.Java http://pastebin.com/2kBya0W5 Oct 16 15:23:31 is implementing a in-app billing subscription any different from implementing a managed product? Oct 16 15:43:01 hello is there anyone here that can helpo with wakelock mainly the partial wakelock and how i can get my app to work properly Oct 16 15:54:58 Hello everyone, does anyone know how I can configure Intellij to recognize .groovy file and not display it as text file? Oct 16 16:03:20 spykins: https://www.jetbrains.com/help/idea/2016.2/groovy.html and https://www.jetbrains.com/help/idea/2016.2/getting-started-with-groovy.html hopefully will help you, Oct 16 16:03:37 Thanks velus Oct 16 16:08:40 hope it helps spykins Oct 16 16:09:34 Thanks for checking on me velus . There is no information on how to change .groovy file from opening with text editor Oct 16 16:09:48 sorry i dont know then Oct 16 16:18:55 spykins: do you know much about wakelock and how to use it properly Oct 16 16:19:31 No velus Oct 16 16:19:42 ok Oct 16 16:43:18 a newB here. i did a clipboard listener in my app. my app crash when a word was copied from "chrome" and "Opera" , any idea? Oct 16 16:43:48 i have searched it , no good solution .. :| Oct 16 16:44:13 TheRightCorner what did the exception say ? Oct 16 16:45:03 just a min bro Oct 16 16:47:15 unfortunately deleted chrome . Oct 16 16:47:27 will send bro Oct 16 16:47:38 not a bro Oct 16 16:47:52 not a girl either btw...but not a bro.....braaa Oct 16 16:48:00 cool. Oct 16 16:48:08 its been a habit for me. Oct 16 16:48:34 StingRay_: are you any good with wakelock and how to use it properly? Oct 16 16:48:47 i though the crash will something unique or well known, since it occcurs only in chrome and opera Oct 16 16:49:00 thought* Oct 16 16:49:29 velus... I guess sparingly and releaseable Oct 16 16:49:59 also is it not harshly ignored if needed in new N ? Oct 16 16:53:23 Hello. I am trying to find an easy example which can convert curl -u CLIENT_ID:CLIENT_SECRET myurl.com -d "data stuff here" to something i can use in my project. Any ideas or recommended sites to check? Oct 16 16:54:39 i have this http://pastebin.com/R6t5uiii and if it the screen goes off it still works but when you bring the screen back the music stops if you click stop then play it goes funny and i keep gettign this in the debugger D/MainActivity: java.lang.RuntimeException: WakeLock under-locked Radio Beacon Online when i press stop then play or just play again Oct 16 17:00:14 https://code.google.com/p/android/issues/detail?id=35732 Oct 16 17:00:15 StingRay_: are you able to have a little look over the code and see what is caursing that(probs something simple Oct 16 17:00:47 my device is rooted. i should have everything ready before asking for the help. Oct 16 17:01:00 will ping with the log soon Oct 16 17:01:32 TheRightCorner wait this is not an app dev question Oct 16 17:01:54 you are in the wrong channel Oct 16 17:02:44 And whats the right channel for that? Oct 16 17:03:11 Anyone? Oct 16 17:03:13 dunno... #android i guess Oct 16 17:03:23 yes #andoid Oct 16 17:04:42 Maybe. But in practice asking in #android-dev makes more sense, even though this channel is about application development. Oct 16 17:05:16 Nothing can beat mailing lists for reaching core devs, though. Oct 16 17:05:54 unless the dev is here for what you want not sure it does make sense Oct 16 17:06:01 you are on about support...not development Oct 16 17:06:07 2 very diff things :) Oct 16 17:06:43 not really bomb asking in android will get you a better response than in here, this is for people creating things, it wont help with things that cant be touched. its like going into tesco and asking for some petrol, you cant get petrol from tesco but you can from tesco garadge Oct 16 17:07:18 velus kinda but more like going to BP headquaters and asking them to fill your tank :) Oct 16 17:07:37 Never mind. I read his question incorrectly. Oct 16 17:07:39 i guess in a way Oct 16 17:07:56 I thought he was asking about development of Android itself. Oct 16 17:08:09 bomb do you know about wakelock and my problem Oct 16 17:10:03 hi I am getting the following error http://paste.debian.net/880937/ i am trying to figure out what lines its having the failure in and in what file ...how do i tell? Oct 16 17:12:21 transhuman_ is it not there in the exception ? Oct 16 17:12:41 transhuman_: do you recognize your package name anywhere in the stacktrace? Oct 16 17:12:50 at com.wordpress.priyankvex.easyocrscannerdemo.ImageProcessingThread.scanImage(ImageProcessingThread.java:142) at com.wordpress.priyankvex.easyocrscannerdemo.ImageProcessingThread.doInBackground(ImageProcessingThread.java:58) at com.wordpress.priyankvex.easyocrscannerdemo.ImageProcessingThread.doInBackground(ImageProcessingThread.java:26) Oct 16 17:12:50 velus: In stop() method in line 213, try replacing wl.release() with if(wl.isHeld()) wl.release(); Oct 16 17:13:31 ok bomb and i assume the same with the play on reset Oct 16 17:13:49 Yeah. Oct 16 17:14:13 trying now Oct 16 17:15:41 thanks velus Oct 16 17:15:42 transhuman_: the post i did above is what you need to look at it is in the pastbine readte through all the info you will see the answers Oct 16 17:17:14 transhuman_: for future where is has the FATAL EXCEPTION in red (asuming on the ide your using) the info will always be in there it will give you the file and line numbers, and by the looks of it the process too Oct 16 17:18:29 and bomb i could kiss you right now thank you so much it works like a treat thanks it had kept me up all night and all day now i can get some sleep thanks once again Oct 16 17:18:42 yes the package name is EasyOcrScanner... but I am trying to figure out how I tell what file the error occurs in ...unfortunately so far my experience with programming has only been with perl so I am probably missing something straight forward Oct 16 17:19:21 @StingRay_ i developed the app by the way. my app has clipboard listener and its crashing. Oct 16 17:20:40 I would almost bet the error would be in AsyncTask.java but I do a grep -r "AsyncTask.java" or a find and it doesnt find the file Oct 16 17:20:49 velus: Heh. Good night, then. Oct 16 17:21:37 I assume it must be a generated file Oct 16 17:21:51 in the project directory and not in the original source Oct 16 17:24:58 you error is in your coding read the fatel erxception and look for you code packages, it will tell you the problems and the lines like some is in scanimage one is in doinbackgound in the file ImageProcessingThread.java file on lines 142 58 and 26 Oct 16 17:25:05 transhuman_: Oct 16 17:29:45 out of curitity is it best practise for relase of the app to remove the Log...... sections Oct 16 17:44:08 http://www.hastebin.com/orarejasey.sql while app crash. happens only when copying a word from chrome browser web page contents Oct 16 17:45:27 it tells you what is wrong Oct 16 17:45:53 null pointer execp there. which means nothing in the clipboard Oct 16 17:46:06 but thats what i need to know. Oct 16 17:46:17 why its not working only with chrome and opera Oct 16 17:46:27 different clipboard Oct 16 17:46:35 dunno...but exception is pretty clear Oct 16 17:46:41 debug it if you want to know more Oct 16 17:47:08 okay. i ll Oct 16 17:47:26 thanks for the time Oct 16 17:49:48 fontfeaturesettings in 21+...is there an alternative for lower apis? Oct 16 18:09:17 reading through this, did i miss something? where is the code https://medium.com/startup-grind/bye-bye-burger-5bd963806015 Oct 16 18:15:43 That they chose to write about how they implemented a certain pattern doesn't mean they have to open source their implementation Oct 16 18:16:33 If you think it'd be useful to you, and others, you're free to implement and maintain Oct 16 18:17:24 That's exactly how my old drawer implementation came into existence Oct 16 18:18:42 SimonVT thankyou very much for drawer btw Oct 16 18:19:15 I hope you're not using it anymore :p Oct 16 18:19:21 no lol Oct 16 18:19:23 but I did Oct 16 18:19:29 hence the thanks Oct 16 18:20:08 just implemented a nice grid menu from central nav button in the app at work Oct 16 18:20:25 looks ok and can flatten navigation for older demographics Oct 16 18:20:32 i know this is a noob question but how would i be able to remove something from a string on my feed im getting text i want [i] i want to remove the [i] well its [(could be anything number or leter)] its only 3 caracters long Oct 16 18:21:56 Navigation is annoying, so many things to consider Oct 16 18:22:08 Someone else should just figure it out, then I can implement Oct 16 18:22:21 well, when your user has an average age of 65....no....there are very few things :) Oct 16 18:22:34 can you get lost....nope....well thats done then :) Oct 16 18:24:44 hard to do something for the masses that works well if you have a complex app I guess Oct 16 18:36:46 velus thanks for the pointers its funny i searched for that file but did not find it maybe my search was incorrect let me try again Oct 16 18:37:29 that file will be there somewhere that line give you everything you need to know Oct 16 18:38:10 hi guys this channel is only for apps? Regarding building a ROM? Oct 16 18:40:47 Hacker432: go to #android-root Oct 16 18:40:59 thanks Oct 16 18:41:50 Root/custom ROMs, head to #android-root Oct 16 18:42:35 yes I read it but I wasn't sure of it Oct 16 18:44:06 Hello, I want to create ListView that will contain list of horizontally positioned textviews. How to do it? I think, that I need to create custom adapter, but I do not understand how. I have layout file with textviews. And I have class, that have elements to fill the list. Oct 16 18:44:40 infact they said me to ask here Oct 16 18:44:42 wtf? Oct 16 18:45:09 huh Oct 16 18:45:15 whats the question then Oct 16 18:46:52 im taking a big gamble on getting rid of what i think is bloatware and usless processing Oct 16 18:47:44 DoITCreative: well you extends some BaseAdapter like ArrayAdapter, inflate the layout with getView(), fill the adapter with the object and voila Oct 16 18:47:49 example https://www.codeofaninja.com/2013/09/android-listview-with-adapter-example.html Oct 16 18:48:16 also, RecyclerView is the thing now, ListView is passe Oct 16 18:48:35 yes it has worked now i just need to figgure out to check if the string that im removing the last three charatcers from has certain info in it? the last char is always ] if it has i need to remove the last three Oct 16 18:48:51 well I need help, clarifications regarding Android build system. I successfully ported CyanogenMod for my device, now I would like to port AOSP ROMs. The build system is a bit different....seems like AOSP is missing something. For example, my device tree depends on android_device_qcom_common because that project contains dtbTool and cryptfs_hw. So I added the project (and others needed) in the manifest like I did for CM and Oct 16 18:49:19 it fails because the dt.img can't be generated and infact dtbTool binary is not compiled Oct 16 18:49:20 ok ok, it is definitely #android-root Oct 16 18:49:32 eventually #android Oct 16 18:49:39 Hacker432: Is your camera working fine? Oct 16 18:50:00 Ashiren: Thanks, I will try that :) Oct 16 18:50:01 Ashiren: why is that?7 Oct 16 18:50:07 camera? Oct 16 18:50:09 build system is build system Oct 16 18:50:15 yeah of course Oct 16 18:50:21 doesn't matter if you want to compile a rom or an application Oct 16 18:50:23 same software Oct 16 18:50:36 Hacker432: Yep, my has been broken by CGM Oct 16 18:50:49 just because I compile a linux kernel with the same software as I compile some applications doesn't mean I have to use different channel for make suppoer Oct 16 18:50:52 *support Oct 16 18:50:53 seriously Oct 16 18:50:53 yes but...Makefiles....how the build system decide the priority of other makefiles to be included? Oct 16 18:50:55 The topic of this channel is application development. Roms are off topic Oct 16 18:51:08 it isn't about roms Oct 16 18:51:09 .... Oct 16 18:51:15 Please use #android or #android-root Oct 16 18:51:16 but about the build system Oct 16 18:51:50 so hes talking about some app Oct 16 18:51:57 maybe if the build system is a CM thing, then a cm related channel would make sense Oct 16 18:52:13 but if it's plain old makefiles, then #android and #android-root are the wrong channels Oct 16 18:52:15 W/DisplayListCanvas: DisplayListCanvas is started on unbinded RenderNode (without mOwningView) out of curitity what does this mean? Oct 16 18:52:19 Ashiren: doesn't matter Oct 16 18:52:20 nono....I'm on AOSP build system now Oct 16 18:53:24 Ashiren: maybe he wants to customize cm for deployment for a new product, what now? Oct 16 18:53:35 Please continue any further aosp/rom (and their build system) discussion in #android or #android-root Oct 16 18:53:37 im dead Oct 16 18:53:55 ok....I ask on #android Oct 16 18:58:12 and dont fooled by redirecting here Oct 16 18:59:00 Can someone tell me, please, what is inflator and how to use it? Oct 16 18:59:08 Ashiren: is there a reason why AOSP build systems isn't discussed here? Just curious. Oct 16 18:59:20 due to the topic Oct 16 18:59:36 the thing most ppl don't read Oct 16 18:59:39 and which channels covers AOSP build system then? Oct 16 18:59:41 well Oct 16 18:59:45 it links to the android source code Oct 16 18:59:49 the topic I mean Oct 16 18:59:50 sometimes there are no channels Oct 16 18:59:58 what do you mean by AOSP build system? its not the build tools from android sdk Oct 16 19:00:10 the build system on how to build android maybe? Oct 16 19:00:30 i heard they use jack :') Oct 16 19:00:35 maybe you want to compile your own OpenGL library, that you would do with this I guess Oct 16 19:00:35 is there a way to use an android as a bluetooth playback device? Oct 16 19:00:37 and the ndk Oct 16 19:01:11 this is the build system https://android.googlesource.com/platform/build/ Oct 16 19:01:24 every open source ROM has it Oct 16 19:02:20 SimonVT no, thats google's job Oct 16 19:02:54 Seems like AOSP doesn't have a support channel dedicated exclusively on source code.....like cyanogenmod-dev channel Oct 16 19:03:12 Hacker432 of course not, google doesn't care about that stuff haha Oct 16 19:03:34 even this channel isnt official Oct 16 19:03:45 Ashiren it was at one time :P Oct 16 19:04:06 i remember on fridays when google used to have office hours Oct 16 19:04:26 It's so sad watch the terminal that continue to build the ROM....and you know it will fail :D Oct 16 19:04:28 g00s: they do, cause somebody actually needs this, like samsung :p Oct 16 19:04:29 was kinda pandemonium though Oct 16 19:04:48 karolherbst samsung engineers have direct access to google Oct 16 19:04:53 true Oct 16 19:05:15 google just makes this open so retards think they have freedom Oct 16 19:06:14 get some street credit, geeks fawning Oct 16 19:06:41 g00s: Is it googles job to provide libraries for every variation of the various patterns? Oct 16 19:07:07 SimonVT ones that are low level and implemented by a specific widget, yes Oct 16 19:07:20 high level ones that don't lend to any specific implementation, no Oct 16 19:07:34 g00s: I don't think it is just for that though, at least if you know the future plans Oct 16 19:08:20 they seems kind of pro open source overall anyway Oct 16 19:08:33 and I am sure they would like to open it more if they actually could Oct 16 19:08:59 karolherbst but the trend is the other way, if you've been following things the past few years Oct 16 19:09:01 but they started with competing with apple, so they had to cut down some ideas otherwise nobody would have use android Oct 16 19:09:22 g00s: what do you mean in specific? Oct 16 19:10:09 karolherbst AOSP used to include a bunch of apps like calendar, etc - that have been swapped out by closed source implementations. and more stuff winds up in play services Oct 16 19:10:53 ohh right, that thing... mhh Oct 16 19:10:59 yeah, that is somewhat stupid Oct 16 19:11:17 stuff related to android wear are still closed, and i have no idea why or what they don't want to show/disclose in it Oct 16 19:11:18 but I was more talking about general rom creation Oct 16 19:11:30 afaik google didn't make it any harder to write your own rom Oct 16 19:11:30 since it's a very little part, maybe too intricated with playservices or something Oct 16 19:11:33 adq and Android Auto also Oct 16 19:11:38 that too Oct 16 19:12:01 you still have the possibility to remove those things Oct 16 19:12:09 so at least for me this isn't as critical Oct 16 19:12:30 also all those root apps are still in the play store, if they wanted to, they could remove them (or at least try it) Oct 16 19:12:41 totally unrelated Oct 16 19:12:57 trying the hard method...comparing files Oct 16 19:14:11 adq: the point was, that they don't really force you to use their stuff, except maybe google play store+services, but even that you don't actually have to use Oct 16 19:14:36 and you can still create a rom without those things Oct 16 19:14:43 AH! found the big difference Oct 16 19:19:48 SimonVT i think everything listed in material / components - should be a component Oct 16 19:19:51 https://material.google.com/components/bottom-navigation.html Oct 16 19:20:35 pretty much everything in that list is Oct 16 19:23:46 reading android weekly, like most sundays, is it me or the quality of what they reshare is seriously going down? Oct 16 19:24:38 adq yeah, maybe they should make it android monthly Oct 16 19:24:49 i think there isn't much going on in one week Oct 16 19:25:39 an example: https://medium.com/@p.tournaris/recyclerview-how-we-achieved-60-fps-tips-in-workables-android-app-recyclerviews-c646c796473c#.6723neln2 Oct 16 19:26:17 not even mentionning stableid, using a linearlayout instead of a tablelayout and calling it a perf improvement, etc.. Oct 16 19:26:52 i expected the classic tips + some new or not so talked about stuff, nope.jpeg Oct 16 19:27:09 so for sure, if you cripple your RV and remove the cripple, it will go smoother.... Oct 16 19:27:20 reminds me, there were a bunch of blogs about ConstraintLayout when it came out 6mos ago, but they are all stale and out of date. i need to get caught up on that Oct 16 19:27:41 they shared one art about constraintlayout but haven't readit yet Oct 16 19:27:56 http://blog.sqisland.com/2016/10/constraint-layout-icon-label-text.html omg Oct 16 19:28:31 close to looks like those clickbait blogspot post copying stackoverflow Oct 16 19:31:16 adq Chiu-Ki Chan is legit Oct 16 19:31:40 hi g00s! hi adq! Oct 16 19:31:44 hi Oct 16 19:31:49 hi Oct 16 19:31:57 g00s, this was shit article, close to a hello world Oct 16 19:32:21 seems more like a certain technique she wanted to share Oct 16 19:32:33 i bet you could write a book about CL now :D Oct 16 19:37:52 I managed to host an autenticated web api and a web application on a web hosting service and access it from an Android application where the user can log-in with Auth0 Oct 16 19:38:03 Melatonina congrats Oct 16 19:38:08 Thanks Oct 16 19:38:20 now take some melatonin and go to sleep Oct 16 19:38:39 Now I have to add SignalR for real-time updates Oct 16 19:39:15 "The width and the height of the ImageView is 0dp. " hm, lots of new tricks to learn here Oct 16 19:39:58 trying to getHeight() on onCreate() :? Oct 16 19:42:30 he is referring to the blog post above Oct 16 19:42:57 oh Oct 16 20:02:00 hello i have an app, when i run it though the android studio it works fine and no problems, but when i run it on a phone with out connecting to android system, it crashes but at different times. would anyone be able to look over the code and tell me where i have gone wrong? Oct 16 20:04:07 so i bet no logs for that eh? Oct 16 20:04:13 stacktrace Oct 16 20:04:33 and how would i do that? Oct 16 20:04:53 connect phone after it crashes and see the logs Oct 16 20:04:58 you can see past logs duh Oct 16 20:07:06 and how would i do that, i know who to connect my phone but where owuld the logs be Oct 16 20:07:47 in android studio on the right there would be filters, so choose no filters and you can see all the logs Oct 16 20:07:53 or the good old terminal: adb logcat Oct 16 20:08:15 adb logcat -v time | grep E/ Oct 16 20:09:00 sorry i had a minor pc crash Oct 16 20:10:08 wow that wouldnt be in android logs :v Oct 16 20:10:12 in android studio on the right there would be filters, so choose no filters and you can see all the logs Oct 16 20:10:16 or the good old terminal: adb logcat Oct 16 20:10:44 "adb logcat" is underrated Oct 16 20:18:10 om im in android studio how do i retrive the loggs now Oct 16 20:23:03 Hi, apologies if this is the wrong place but im having an issue with adb. I'm trying to push my adb_keys file onto an unauthorized device (it had a cracked screen). The phone itself has debugging enabled but there is an extra confirmation screen that pops up which I cannot accept. Oct 16 20:23:58 I guess im asking if there is any way to push a file into the keys folder or change the system path for the adb keys without having the device authorized Oct 16 20:24:13 metafield wrong place Oct 16 21:21:52 i have a textView which is a calculated value, it goes away with screen rotation, whereas EditText stays. what is the best practice? should i be saving to the bundle, or, using android:freezes, or something else? Oct 16 21:31:39 winegoddess: where does the value of the textView come from? Oct 16 21:32:00 hi Melatonina - it is calculated based upon user input. Oct 16 21:33:59 I was not sure when android:freezesText="true" is applied. I see the setFreezes as well. and people asking questions about this, but havent found answers on that approach Oct 16 21:34:20 winegoddess: you could do something like this: http://stackoverflow.com/questions/5123407/losing-data-when-rotate-screen Oct 16 21:34:57 Hi. Why would android.media.AudioTrack.write get stuck, very often near the beginning of execution of the app, never later in the execution, but sometimes not at all ? It seems that something is pausing it indefinitely, for an unknown reason. Oct 16 21:35:36 winegoddess: or persist a backing model object in some other way. Like in a singleton or in shared preferences, depending on the nature of the data Oct 16 21:36:58 thanks Melatonina . I realize i can put into the Bundle. but how is freezesText supposed to be used? it seems this should work but perhaps i am using it worng. brb my son is hungry :) Oct 16 21:40:02 winegoddess: sorry, I never used freezesText. It should help you but other will have to comment. I never used it. Oct 16 21:47:38 thanks Melatonina - yeah i cant see any good examples yet by searching. Oct 16 21:51:04 my freeze in AudioTrack.write happens while still in PLAYSTATE_PLAYING... therefore there is nothing calling .pause() on it. Oct 16 21:57:56 and it may be related to running "new TextToSpeech(this,this)" at about the same time as the freeze. The log usually says at the same time "Choreographer: Skipped %d frames" and some lines about MaliEGL, though that's very unrelated in theory. Oct 16 22:04:29 matju: never heard people discussing these topics here. That said, I hope someone can help you Oct 16 22:24:53 new TextToSpeech() reqs two context references to instantiate? Oct 16 22:40:09 capella-5x: TextToSpeech(Context,TextToSpeech.OnInitListener) Oct 16 22:40:22 ah Oct 16 22:56:31 the usual a capella Oct 16 22:59:57 Why in a solution I have to add "@using System.Web.Optimization" for Razor to understand "@Scripts" and in another solution I don't have to do it? Oct 16 23:00:28 wrong channel Oct 16 23:01:13 You're seeing ASP.NET on the side? Oct 16 23:02:36 the server side of my Android application is .NET Oct 16 23:04:02 Mostly Web API 2 and SignalR Oct 16 23:06:34 A/AudioTrackShared: Assertion failed: !(stepCount <= mUnreleased && mUnreleased <= mFrameCount) Oct 16 23:06:46 A/libc: Fatal signal 6 (SIGABRT) at 0x0000717d (code=-6), thread 29053 Oct 16 23:08:54 so, AudioTrack (or its backend) just crashed my process in a native lib with abort(), and I don't know why. This will be a fun evening. Oct 16 23:09:26 whatever it is, it is most likely related to my problem of hanging during write. Oct 16 23:25:15 has anyone used a site like this to get colors for your theme? Oct 16 23:25:15 https://www.materialpalette.com/green/light-green Oct 16 23:25:36 im trying to see if there is a way to get out the entries for Android. or, if there is another siet that does that Oct 16 23:27:41 the XML version has color name="primary" insted of "colorPrimary" Oct 16 23:46:04 winegoddess: There're only a couple of attributes: https://developer.android.com/training/material/theme.html#StatusBar Oct 16 23:46:58 Oh, there's `colorAccent` too. Oct 17 00:11:40 g00s: you around? Oct 17 00:11:49 hey bankai_ Oct 17 00:12:00 got time to answer some BLE questions? Oct 17 00:12:38 maybe ... Oct 17 00:13:25 haven't done anything with it in about a year so Oct 17 00:13:30 will try to remember Oct 17 00:14:32 i'm trying to interface with a BLE thermometer device and i'm semi-convinced it has some services/characteristics that exist, but isn't advertising. I'm still learning BLE stuff, so likely i'm missing something... Oct 17 00:16:00 bankai_ get the nRF Connect app from Play store Oct 17 00:16:30 g00s, would you be willing to take a look at a Java 8 optional question? Oct 17 00:16:45 jellycode i don't know java 8 , sorry Oct 17 00:17:09 ok, well, i'll post the link here for anyone who might be familiar: https://codeshare.io/gHGTz Oct 17 00:17:22 I'm having trouble safely collapsing my optional Oct 17 00:17:32 I can do it, but i think it's not the right way Oct 17 00:17:33 jellycode also try #java Oct 17 00:17:53 g00s: ok thanks. i did have a play with another app like that, but will give this a go Oct 17 00:18:25 bankai_ that one is probably the best Oct 17 00:18:54 the people who were there in ##java largely rejected the use of Optional and began being very mean and negative Oct 17 00:19:04 lol Oct 17 00:19:17 java turns everyone into crankmeisters Oct 17 00:19:20 ##java does have a fine reputation, doesn't it Oct 17 00:19:24 Hello, is there a way to see sqlite database with a frontend on android devices? Oct 17 00:24:19 jellycode: There are some horrible people there. Oct 17 00:26:07 Yes TacticalJoke, it seems that way. Unfortunately, there aren't any other open chat rooms for Java dev Oct 17 00:29:23 bankai_ nrf one will parse known sig defined characteristics too ... Oct 17 00:29:42 if you find what you think is temp, and you don't know how to parse it that could be a problem Oct 17 00:30:04 like the data from the TI sensortag is raw from the sensor, you have to apply some transformations to it Oct 17 00:31:01 the only thing i can get is the manufacturer and device name. I have registered for all updates, but only receive one for manufacturer. I've decompiled some code from an app that i know works and it references a UUID that isn't advertised, hence my previous comment about me thinking there's a hidden service or something Oct 17 00:31:38 i mean, i can see 5 services and about 20 characteristics, but none fire updates Oct 17 00:32:28 you have to enable updates yourself ... Oct 17 00:32:34 i did, for everything Oct 17 00:32:47 no, that won't work - there is a limit Oct 17 00:32:55 each version of android has a different limit Oct 17 00:33:20 bugger, ok that's fine, now i know that Oct 17 00:33:23 you would be safe with maybe 7, later versions give you 15 i think Oct 17 00:36:18 bankai_ don't forget you have to write into the descriptor, as well as enable that on the android side Oct 17 00:39:52 Hello, I have this question, but doesn't understand the answer: http://stackoverflow.com/questions/14674579/appendqueryparameter-vs-selection-arguments Oct 17 00:41:57 bankai_ one of the nastier things i learned about BLE on my android device: doing a scan always disabled the internet; depending on what router it was connected to determined if it regained connection after scan. thats my n7 Oct 17 00:42:29 so i'd basically have to go back into wifi settings each time and re-enable wifi Oct 17 00:42:43 can't imagine what other devices do, so much fun ! Oct 17 00:43:17 haha it's funny you mention that coz i've seen a lot of people reporting similar issues Oct 17 00:44:01 on that topic, been having sooooo many issues with nougat and wireless. Even after teh third update it's still not right Oct 17 00:44:14 i'm probably going to build in some logic to send those events to firebase for cohort analysis Oct 17 00:44:47 bankai_ x.0 releases are betas for nexus users :D Oct 17 00:46:50 i'd believe that Oct 17 00:52:22 Is there a way to pause TextToSpeech, OR a callback for knowing how many chars were played so far, OR a way to query the number of chars played so far ? (iOS has the 2nd one only, but Android seems to have none of them). Oct 17 00:59:13 Anyone up to answer a few questions I had regarding MVC best practice? Oct 17 01:03:55 MVC? I thought it was all MVP these days. Oct 17 01:06:16 Well... I'm not exactly sure... I read a bunch of articles, and it seems like they are VERY similar. It all comes down to if you consider Activity/Fragment a view or controller. Oct 17 01:25:40 Exerosis: Ask or ask not; there is no "Can I ask?". Oct 17 01:28:51 TacticalJoke: So would a RecyclerView.Adapter normally be created in the View, or passed in via the controller? Oct 17 01:33:30 I think in traditional MVC the controller would have to create it and give it to the (dumb) view. Oct 17 01:34:18 BTW, I wasn't volunteering to answer. Just pointing out that asking to ask doesn't work well on IRC. Oct 17 01:34:54 Nobody knows in advance whether they're going to be able to answer an undefined question. They are effectively being set up to humiliate themselvse. Oct 17 01:34:58 themselves* Oct 17 01:36:51 I guess one exception is when the potential knows everything there is to know on this subject (e.g., "I have a question involving a digit from 1 to 10, the plus operator, and another digit from 1 to 10. Any takers?"). :D Oct 17 01:36:57 potential answerer* Oct 17 01:39:49 I still feel my fingers itch to type 'helper ex ask to noob' Oct 17 01:41:31 _Someday_, Google will give us a bot that can just intercept those questions Oct 17 01:42:09 Yea, I should have thought that one through. Been awhile since I have used IRC(or any dev chat for that matter). xD Thanks. Oct 17 01:49:06 It is tricky, though, because the asker doesn't know whether asking will be a waste of time. Oct 17 01:52:43 We need a deadlock-resolution protocol: "I might ask a question about ." --> "I might or might not answer. Consider asking." Oct 17 01:58:41 After all that, Exerosis, are you gonna ask any more questions? :D Oct 17 02:00:30 This Git tutorial is fantastic: http://rypress.com/tutorials/git/index Oct 17 02:00:39 Best VCS tutorial I've read. Oct 17 02:01:52 :P Nope you scared me away hahaha JK. Sure I have one other, is there a standard place to perform fragment transactions for a nav drawer? Again, it seems like a controller thing, but it needs to reference R.id a view thing. Oct 17 02:02:27 Fragments are the controller, but it's not a "pure" MVC system Oct 17 02:02:55 You can do fragments pretty much anywhere in the activity you like Oct 17 02:03:13 ...including other fragments Oct 17 02:04:31 Dagmar: Ok, so you don't think references to R are 'bad' in another controller? Oct 17 02:04:48 References to R items are just indexes to a table of resources. Nothing more. Oct 17 02:05:25 All those get bundled into a bit long list, assigned an integer reference, and the compiler makes sure the right numbers land in the right places at compile time Oct 17 02:05:29 s/bit/big/ Oct 17 02:08:22 I don't see how an int that points to a single resource in a group of resources (which are all basically just static data) can be bad or good Oct 17 02:08:30 Are enums bad? Oct 17 02:10:53 Are floats filled with cheese Oct 17 02:12:56 Well no... not in that way :P Just a matter of keeping things separated. http://www.techyourchance.com/activities-in-android-are-not-ui-elements/ Being somewhat new to android I was roughly following some of guidelines pointed out here. Oct 17 02:13:38 Exerosis: Another point I'd add is that, even if we *are* discussing view things, why can't the activity (the controller) access it? Oct 17 02:13:55 An activity might need to say `editText.getText()` and pass that somewhere. Oct 17 02:14:18 But, yeah, I'm not sure these ID things qualify as view things. Oct 17 02:16:28 Oh yea, for sure! The controller for sure does things like 'editText.getText()'. It's really a question of if you have a replaceFragment(Fragment newFrag) method in the view or not. Oct 17 02:17:18 I think views need to be dumb in MVC. Having a view interacting with the fragment manager sounds like a huge no-no. Oct 17 02:18:16 Yep that's what I thought too, but directly referencing an android view also seemed like a no-no, so I was unsure. Oct 17 02:18:47 Why would accessing a View be a no-no? In MVC, an Android View is an MVC view. Oct 17 02:18:55 You can reference any view object you like at any time. Whether or not you can actually _access_ it requires you have a common context with it Oct 17 02:20:04 I think the ideal setup in MVC on Android is one where the Activity interacts with a single view: an Android ViewGroup, an Android View, or a class that wraps one of these. Oct 17 02:20:31 The View[Group] [wrapper] can then handle all the view-y stuff. Oct 17 02:21:11 It can also do `findViewById` stuff. Oct 17 02:22:52 in my case it's a wrapper class, and the activity interacts with it as an interface Oct 17 02:23:35 Then if, like you said, all the findViewById stuff is in the wrapper, it makes it super easy to modify the view without touching the controller at all. Oct 17 02:24:05 Right. I don't think R.id.fragment_container is a problem here. That's something only the activity needs to know about. Oct 17 02:24:24 Even the fragments don't need to know about that. Oct 17 02:24:42 But it then ties the Activity to the layout.xml, which is kinda unfortunate. Oct 17 02:24:44 And the views certainly don't. Oct 17 02:27:31 Well the view(wrapper) certainly doesn't do anything with it. But it also doesn't do anything with... IDK LinearLayout, it's still part of that view(wrappers) root though. Oct 17 02:28:50 TacticalJoke no way mvvm, viper, and redux ! Oct 17 02:28:56 I see what you mean -- it feels like a violation. But I can't see any way around it. It's just how Fragments work. Oct 17 02:29:04 MVVM FTW! Oct 17 02:30:13 Exerosis: You could consider that layout a pseudo-layout. You could even instantiate the FrameLayout/whatever in Java code in the Activity (though I haven't tried this; I actually haven't used Fragments in forever). Oct 17 02:30:36 My Fragment knowledge is becoming... fragmented. Oct 17 02:31:09 I think the problem here is you're trying to force an actual functioning system into an abstract model of operation Oct 17 02:31:27 TacticalJoke: lol, wait what do you mean? Oct 17 02:31:47 Exerosis: I mean that could avoid the XML layout file entirely (for the Activity). Oct 17 02:32:07 I'm assuming that this layout *only* contains the Fragment container. Oct 17 02:32:11 Dagmar: I agree it does work, however that doesn't mean that there isn't a solution that completely decouples the root view and the controller. Oct 17 02:32:26 The root view is relative Oct 17 02:32:38 "Virus stole poison genes from black widow spider" Oct 17 02:32:45 TacticalJoke: It contains the nav layout and toolbar as well in this case. Oct 17 02:32:46 If you like, you can go talk to the windowmanager directly and make your own new windows Oct 17 02:32:57 imagine it stole stupid genes from humans :( Oct 17 02:33:13 Exerosis: Ahh, okay. Ignore that, then. Oct 17 02:34:03 g00s_: As long as it's actual stealing and not "You wouldn't download a car" 'stealing'. Oct 17 02:34:50 Dagmar: Often there is a reasonable solution, just takes some thinking to figure it out. Oct 17 02:35:16 Exerosis: I think you're gonna need to see R.id.fragment_container as some special thing that the Activity needs to know about. Oct 17 02:35:32 I start coding in the 80's and was exceptionally fluent in 6502 assembly before I got out of high school. Oct 17 02:35:37 TacticalJoke: Well, I guess I could make a getFragmentContainerId method in the View. Oct 17 02:35:48 Ya'll overthink this model stuff Oct 17 02:35:58 Exerosis: Haha, I was just typing that Oct 17 02:35:59 ! Oct 17 02:36:09 s/start/started/ Oct 17 02:36:51 Dagmar: maybe your style is just old xD I would like to think I'm fluent in 2016, before I got out of highschool... Oct 17 02:37:04 TacticalJoke: I think it might be a nice way. Oct 17 02:37:04 No, my style isn't "old". Oct 17 02:37:08 HAHAH Oct 17 02:37:13 I was JK Oct 17 02:37:17 Exerosis: I think that's the most sensible solution. Then it's just a case of the controller querying the view. Oct 17 02:37:19 I just see through all these abstractions into what's actually going on Oct 17 02:37:46 TacticalJoke: yep, and if I need to swap out the XML I can just update the view... I like it :P Oct 17 02:38:07 Dagmar 6502 woohoo \o/ Oct 17 02:38:15 those were better days imho Oct 17 02:38:18 Models are great for keeping people from winding up doing absurd things, but pure models are seldom found in real applications Oct 17 02:38:23 Dagmar: That's the idea, you can see through them, but yet they let you modify the code modularly. Oct 17 02:38:34 Ya might as well be expecting strict adherence to the OSI model, all the way to layer 7,. Oct 17 02:38:49 I totally get where Exerosis is coming from. Stuff like this keeps me awake at night. :S Oct 17 02:39:02 TacticalJoke: Yep... ALL night... Oct 17 02:39:19 One thing I'd say, though, is that a lot of Android is so messy. Oct 17 02:39:27 I would agree with that Oct 17 02:39:47 You'll probably respond to that by abstracting stuff away. But there's a limit to what you can do. Oct 17 02:39:50 Yea, I was surprised by that. Normally google is pretty reasonable. Oct 17 02:40:12 The lifecycle is WAY too complex, especially with fragments. Oct 17 02:40:22 Yeah. It's awful, really. Oct 17 02:40:34 Say that and then turn your phone ninety degrees Oct 17 02:41:25 If you want the UI to still function, this complexity is as simple as I think it can get Oct 17 02:43:35 I think it's an insane system. There's really no technical reason the Activity/whatever should be recreated just because the orientation has changed. Activities/whatevers could instead be consistent things that stay alive until process death. Oct 17 02:43:41 TacticalJoke: I'm glad they introduced the whole databinding thing. Oct 17 02:44:02 I haven't tried that yet. :S Oct 17 02:44:20 TacticalJoke: Yea I agree, just force everything to respond in an orientationChange method or something... Oct 17 02:44:30 TacticalJoke: :O It's amazing! Oct 17 02:44:32 You can put your logic into a Service and have it drive the Activity and views via AIDL or something like it's running a fancy marionette Oct 17 02:45:06 AIDL? Oct 17 02:45:20 Exerosis: FWIW, you can happily disable recreation-on-rotation if you use the same resources for both orientations. Oct 17 02:45:32 shit is pretty confusing now with multi window Oct 17 02:45:38 If you don't, I guess it's debatable. Oct 17 02:45:39 even more undocumented corner cases Oct 17 02:45:39 ...but the way I see it is that without all these somewhat squirrely hooks, you could have incidents where things will go off the rails terribly from something as simple as an app swapped away from, the display is rotated, and then the app is brought back up Oct 17 02:45:57 I break my UI stuff all the damn time from trying to avoid this, that, or the other hook Oct 17 02:46:30 ...and for things like widgets, you can barely trust that the instance fields will still be there in your same freakin' class from one invocation to the next Oct 17 02:46:54 It's all the smoke and mirrors that go into making the interface presented to the user consistent and flexible that make this a PITA Oct 17 02:47:38 I think JavaFX has the right idea TBH Oct 17 02:47:44 I kinda wish they'd start over. Create something simpler. Oct 17 02:47:44 IK it's not as complicated Oct 17 02:47:48 but still Oct 17 02:47:51 yes I agree Oct 17 02:47:55 Exerosis: Seriously. A guy I know who's an instructor introduced me to that mess a few weeks ago. Best way I can describe it is "speaking native views" Oct 17 02:48:02 Let's just have a Screen. This doesn't get destroyed. Oct 17 02:48:08 It was completely 180 degrees from what I needed lol Oct 17 02:48:43 However, if you just put all yout stuff into a service and have that service communicate with an activity, so many problems go away Oct 17 02:48:55 Give us the option of whether a particular Screen's views get destroyed when navigating between Screens. Oct 17 02:48:57 Well yea... to be fair I agree... but you could at least just go: main method -> new view -> more views -> lots of events Oct 17 02:49:15 ...but your app-as-a-Service will no longer be magically quiescent when the user doesn't need it Oct 17 02:49:21 ...and you might as well just start coding in C. Oct 17 02:49:21 Allow us to create Screens directly without the use of goddamn reflection. Oct 17 02:49:23 Dagmar: have a link to a description to how that works? Oct 17 02:49:35 TacticalJoke: IKR Oct 17 02:50:01 Exerosis: It's like IPC for talking to the UI. If that makes your hair stand on end, then good. Oct 17 02:50:05 Exerosis: https://developer.android.com/guide/components/aidl.html Oct 17 02:51:20 Dagmar: WTF? Weird... why is it even a thing! Oct 17 02:51:29 because Java coders are weird Oct 17 02:51:34 I must not understand it? or? Oct 17 02:52:15 For some things, multi-threading is very, _very_ important Oct 17 02:52:46 When that starts happening, you can either come up with a broker to wrangle all those threads, or throw your hands into the air and just use AIDL and let those threads talk to the UI when they damn well please. ;) Oct 17 02:53:06 Seems like it could cause a shit of complication Oct 17 02:53:13 shit ton* Oct 17 02:53:25 If you're to the point where you have to do AIDL, you already _have_ a crapton of complexity Oct 17 02:53:39 Hummm Oct 17 02:54:09 I could, if I wanted to, take all this data I've pushed into my PDART app and create a psuedo-realtime theorycraft simulator for the battles Oct 17 02:54:17 AIDL would actually make that a tiny bit easier Oct 17 02:54:38 However, no. Oct 17 02:55:06 I'm totes fine with building a queue of actions as a simple sparse list and working out the problems that way Oct 17 02:56:02 If I wanted to do a simulation of multiple players of Ingress on a somewhat randomized map vying for control of the playfield, AIDL would make _that_ easier, but again. Nooooo... Life's too short Oct 17 02:56:04 ^ sounds nicer... I will have to poke around with AIDL sometime Oct 17 02:56:25 xD Oct 17 02:57:51 Frankly I think Mike was trolling me by suggesting it, since I'm doing jack and squat with multiple threads on this current project Oct 17 02:59:42 I'm doing a bunch of stuff with AsyncTasks tomorrow, so technically I'm doing multiple threads, and still... NO I will not be using AIDL. lol **** ENDING LOGGING AT Mon Oct 17 02:59:58 2016