**** BEGIN LOGGING AT Sun May 08 02:59:58 2016 May 08 03:05:15 uh what are some popular location apps May 08 03:05:23 Google Maps? May 08 03:05:33 no like foursquare type stuff May 08 03:05:37 not actualls maps May 08 03:05:41 actual* May 08 03:30:46 if you dynamically add a fragment, and that fragment must find a view in the activity (getActivity().findViewById()) ... to register a listener , what would be the best places to register / deregister? May 08 03:31:15 there is a weird asymmetry with onActivityCreated May 08 03:31:41 my guess is onViewCreated/onViewDestroyed May 08 03:34:17 if the fragment was embedded in the host activity's layout, this would have to happen on / after onActivityCreated May 08 04:24:27 your activity should register your fragment as a listener as it goes through the motions May 08 04:24:44 reaching out to the activity is just ugly May 08 04:26:30 no doubt this is ugly. but then the fragment has to go through /its/ motions before the activity registered listener could poke it May 08 04:27:49 i've never had a reason to do this until now May 08 04:27:57 hope i never have to do it again :D May 08 05:48:46 is there a localized string available from the android package that describes the internet connection being down? May 08 05:49:03 For example, android.R.string.ok will return "Ok" May 08 05:49:41 uh what May 08 05:49:48 Is there something like android.R.string.internet_connection_offline that returns "Your internet connection is offline" or something along those lines? May 08 05:50:08 Not sure, but just make one urself? May 08 05:50:49 orbyt_: I am hoping to use a built in string that is already translated May 08 05:51:11 vbresults: It doesn't exsist May 08 05:51:38 D: May 08 05:51:56 vbresults: Make one, just have it ping Google or something May 08 05:52:01 how about in the support libraries or something like that May 08 05:53:57 Having to do and maintain translations for just one string seems overkill May 08 05:54:16 On something so common May 08 06:25:36 Hi everyone, i'm building a little c++ command line app for android. Code is fine, compilation is all fine - but when I try to run the file on my device via the terminal emulator I get system/bin/sh .my-file not found. May 08 06:26:37 cyource: Uhh, /system is read only unless you have root May 08 06:26:57 yea, I have root May 08 06:27:22 cyource: Did you have the code run "su"? What is the script name? May 08 06:27:41 It's a C++ file - name is main.cpp May 08 06:28:14 cyource: Android doesn't run C++ without the NDK I believe May 08 06:28:22 got that May 08 06:28:35 That's how I compiled it successfully - May 08 06:28:38 cyource: I don't think you can just run a file and have it work as a script. What is the purpose? May 08 06:29:04 cyource: Where is it stored? May 08 06:29:27 LunarEclipse120 It's possible and has been done many times - stored in data/c++ May 08 06:29:46 cyource: Did it run "su"? May 08 06:30:35 yes May 08 06:30:50 cyource: No errors in file name? May 08 06:31:04 cyource: What is the line? May 08 06:31:27 if I do su first and then CD the directory, i get sh ./myfile not found May 08 06:32:35 root@thea:/ # cd /data/c++ May 08 06:32:45 cyource: sh? May 08 06:32:50 .sh is a script file May 08 06:33:00 I know May 08 06:33:21 What command are you running? May 08 06:34:09 root@thea:/data/c++ # ./main May 08 06:34:38 cyource: try just "main.cpp" May 08 06:35:42 that fives :not found2] and "syntax error: ) unexpected." May 08 06:35:53 *gives May 08 06:36:37 cyource: /data/c++/main.cpp May 08 06:37:19 ./main.cpp[3] syntax error: ) unexpected and :not found2] May 08 06:41:48 LunarEclipse120 recompile? May 08 06:42:24 I gues May 08 06:42:40 cyource: I think line 3 of your code is bad May 08 06:43:57 LunarEclipse120 It's really not May 08 06:46:52 LunarEclipse120 thanks for helping. Anyone else got any ideas? May 08 07:23:06 I'm working on an app, and suddenly there are tons of warnings in LogCat: "dalvikvm: VFY: unable to find class referenced in signature" May 08 07:23:31 these refer to java/awt/image/BufferedImage and java/awt/color/ICC_Profile May 08 07:24:49 Btw, I recently tried to mend this by "upgrading" to API 23, in my build.gradle file (btw, I'm using Android Studio): compileSdkVersion 23 and targetSdkVersion 23 May 08 07:25:04 in the dependencies block: compile 'com.android.support:appcompat-v7:23.2.0' May 08 07:26:09 if these are just warnings to be ignored, I guess I can alter my Log Level, but it seems to me maybe AS is trying to tell me something... ;) May 08 07:33:16 You or one of your dependencies have classes that use those two classes.. Since neither BufferedImage or ICC_Profile exists on Android, dalvik logs warnings May 08 07:33:39 And will crash if you actually try to do anything involving those classes May 08 07:46:55 SimonVT: Thanks. It seems, BufferedImage is part of a library I'm using: Apache Sanselan May 08 07:48:15 so, since this is part of a library that seems to be included fine (it's doing what it should), then maybe these warnings are not so critical? May 08 07:53:40 If your app used parts of Apache Sanselan that referenced those classes, your app would crash with a ClassNotFoundException, or something like that. Those warnings would hint at what the issue is May 08 07:54:46 can i use socketServer inside of MapsActivity? May 08 07:55:28 I'm almost newbie in android, if yes , just tell me how? May 08 07:56:35 just do it? :D May 08 07:57:14 i want to get coodination from my client, and show it on map. May 08 07:57:38 i think i need to class, one of them is for map activity, and the other is for tcp socket server. May 08 07:58:15 now i dunno how to get data from tcp socket server and pass it to map activtiy! May 08 07:58:36 and also i dunno how to move marker. May 08 07:58:58 is there exist any other option for marker to change it dynamically? May 08 07:59:06 something exactly like GPS May 08 08:02:53 hi, I ran my own native app with gdbserver on an arm emulator instance. When trying to step through it, I eventually get a SIGILL. Not right away, but usually after a few steps or at fixed places in the code. Is there a way to troubleshoot this? I'm pretty sure the architectures match. May 08 08:51:40 I am trying to understand the memory visilbity constraint in AsyncTask (http://developer.android.com/reference/android/os/AsyncTask.html). It says the following "Set member fields in the constructor or onPreExecute(), and refer to them in doInBackground(Params...)." May 08 08:52:13 what does this mean exactly? May 08 08:52:35 I have my outer class that defines an asynctask as an inner class May 08 08:52:48 if I access the fields from my outer class in my non-static inner class May 08 08:52:54 from doBackground May 08 08:52:59 is this guaranteed to be safe? May 08 09:01:34 sleepster: is outer class an activity/fragment? May 08 09:01:45 Hi Ashiren, it's a service May 08 09:01:59 so my service creates an asynctask May 08 09:02:07 because nonstatic inner class has implicit refernce to outer class and that might cause memory leak May 08 09:02:10 I am just wondering about "memory visilbity" May 08 09:02:16 but hmm service is singleton by nature it wont be that bad May 08 09:02:33 ah yes, so I store a reference to the tasks and put them in a list May 08 09:02:45 when the service shuts down, I go through the tasks and cancel them May 08 09:02:49 and wait for their completion May 08 09:03:07 I guess what I am curious about is whether me accessing my fields from "doBackground" May 08 09:03:15 and "onPostExecute" is safe May 08 09:03:25 meaning, am I going to see the correct values May 08 09:04:28 i service is shutting down my do you need its fields May 08 09:05:23 nope May 08 09:06:13 hi. im trying to call viewPager.setCurrentItem from within a fragment, but gettin null exception (The ViewPager is defined on a higher up xml than the fragment). is there any way to call that parent id? May 08 09:07:31 nvm, solved (: May 08 09:09:49 How do I jump to a method in Android Studio editor ? May 08 09:10:10 ( apart from standing up and jumping on my laptop ) May 08 09:10:33 NeoFrontier: control + click May 08 09:11:43 Cool,but thats to jum to usages, i'm looking for a list of methods present to select one to jump to. May 08 09:11:55 :) @ sleepster May 08 09:12:12 extend the structure tab May 08 09:13:22 I see the navigation menu has all these nifty things I'm looking for. May 08 09:14:23 ctrl-alt-shift-n gives a list of all symbols including methods. May 08 09:14:31 I suppose thats good enough :D May 08 09:14:41 Thanks ducks. May 08 09:56:16 can anyone shed some light how to parse this file: https://gist.github.com/anonymous/6e8c029719fc7b1f7a2b3ace01ce6948 into a hasmap? May 08 10:37:19 Hey, is it possible to save some aux data in an activity? something like setTag() for a view ? May 08 10:59:07 guys could someone tell me why this ArrayList and ListAddapter conflicting ? http://postimg.org/image/iyz5xmv7l/ May 08 10:59:27 sorry ArrayAdapter May 08 11:19:51 I've installed sudo apt-get install android-emulator and I'm wondering if it's possible now to run Android emulator without having to download anything else? P.S. I've asked into #Android and I've very agressive unfriendly none related reponse. May 08 11:20:05 it would be great if someone can help here May 08 11:20:47 these are the directory contents after the installation http://pastebin.com/nXKz7xc1 May 08 11:44:22 is it possible to set a ringtone/notification as a raw resource from my app? May 08 11:44:53 I know you can set a raw resource as a ringtone/notification by copying it to the appropriate directory on external storage, but I'd like to avoid that if possible May 08 12:43:20 hi May 08 13:45:20 I have a webview which has both javascript click handler for a specific image and also touch handler in Android. When clicked on specific image I want javascript code to take preference over Android touch event. Can someone let me know how to achieve this? May 08 14:38:29 good morning gents, grunts and gals. May 08 14:38:56 To the one woman that's hidden here somewhere among the raging boners and bone head statements happy mothers day. May 08 14:40:15 ty May 08 14:50:24 Hi. I'm using AlarmManager with Broadcast receiver. When the device boots, I schedule something with the AlarmManager, which is never fired. http://pastebin.com/3bJ0KJT8 May 08 15:06:54 aside from java, what PL can you use for android? May 08 15:07:39 kotlin May 08 15:08:24 hmm not familiar with it. is that a superset of a PL or a different one? May 08 15:08:32 what May 08 15:08:49 i mean like, C++ ... that was a superset of C May 08 15:10:27 I was hoping python can be used :v May 08 15:14:25 in theory you can use any language that can compiled to be run on a jvm May 08 15:14:46 nicee May 08 15:15:18 tried learning java last 2 weeks ago especially android... lol, I think I spent 2x brain power learning it May 08 15:15:24 some deal with it faster or slower, though May 08 15:22:35 all jvm languages work on android May 08 15:22:39 you could jython May 08 15:48:19 plz help me ,I have a button, I want to click it change to another drawable,when I click again it change back to first drawable how can I archieve this ? May 08 16:00:52 facing some problems with shared element transitions in fragments May 08 16:00:56 http://stackoverflow.com/questions/37100341/shared-item-transition-not-working-in-fragment-on-back May 08 16:01:34 the transition works on starting a new fragment May 08 16:01:45 but doesn't work when going "back" May 08 16:09:46 what do you want when you hit "back" May 08 16:16:59 i want the same transition to happen in reverse May 08 16:17:25 i was able to make it work with the same code at another place in the app May 08 16:38:12 syk is it a nested fragment ? May 08 16:38:44 yeah, a viewpager with fragments within a fragment May 08 16:40:53 syk i think there are issues with animations of nested fragments May 08 16:41:42 hmmm, any workaround/hack? i'm using the support lib May 08 16:41:43 which is sad, i'm incredulous that google hasn't gotten this stuff working after how many years May 08 16:42:03 i think the bug was posted when 4.2 came out May 08 16:42:18 and that's weird, because it works at another place in the app (which is also a nested fragment) May 08 16:42:33 and i'm using the same code May 08 16:42:48 infact the same method May 08 16:43:12 hmmm, i'll dig around a bit more, thanks for the help though g00s May 08 16:49:23 hm, this looks pretty cool https://github.com/cachapa/ExpandableLayout May 08 16:54:17 cute May 08 16:54:20 but meh May 08 16:54:59 thepoosh ! May 08 16:55:19 i'm going to try accordion with 2 recyclerviews :D May 08 16:55:50 thepoosh oh its sunday i forgot to check androidmeh-ly May 08 16:56:40 in my inbox for later May 08 16:57:01 "Senior Android Engineer at Hillary for America" hmm May 08 16:57:08 i'd work for Bernie :D May 08 16:57:13 for free even haha May 08 16:57:35 maybe if i donate to the clinton foundation i'll have a better chance of getting the job May 08 16:58:06 maybe i can even just rdp into the mail server port 3389 and put my resume on the filesystem May 08 16:58:59 g00s: you never work "for" bernie, always "with" May 08 16:59:11 thepoosh yes comrade ! May 08 16:59:18 DA! May 08 16:59:26 XD May 08 17:00:35 thepoosh lol, how the hell did this make it onto AW http://code.tutsplus.com/tutorials/android-from-scratch-understanding-views-and-view-groups--cms-26043 May 08 17:01:10 wow May 08 17:01:15 that was a nothing article May 08 17:01:18 O_O May 08 17:02:07 yeah lol May 08 17:02:11 thepoosh did you see this ? https://github.com/google/flexbox-layout May 08 17:02:20 i played around with it a bit May 08 17:02:27 and? May 08 17:02:34 g00s, how is it performance wise? I want to use this too May 08 17:02:34 in the end i went back to gridlayout May 08 17:02:43 ah :( May 08 17:02:47 danijoo__ oh i didn't check performance May 08 17:03:05 whats the cons ? May 08 17:03:40 i didn't see any, but i couldn't get it to do exactly what i achieved with gridlayout May 08 17:04:44 i'll probably use it for something else May 08 17:04:52 i had a problem with one of the attributes May 08 17:05:24 couldn't get layout_flexBasisPercent to work May 08 17:05:58 with that attr i shouldn't need width, but it still complained about missing width May 08 17:06:38 its only at 0.1.1 so , probably get better May 08 17:08:40 ah shit, my AS hung again pos May 08 17:09:00 aww May 08 17:09:43 good ol 2009 pc May 08 17:09:57 pfn please explain why 2009 PC hangs AS May 08 17:10:02 love to hear this one May 08 17:10:19 low ram? May 08 17:10:26 Ashiren no ... May 08 17:10:50 google fucked up their adb integration. when adb hangs it hangs the whole IDE's event loop May 08 17:11:39 this just started with 2.0 + instant run. i think the IDE maintains a constant connection to the app May 08 17:11:58 then disable instant run May 08 17:12:07 all my problems were gone May 08 17:12:39 yeah i have to remember to either (1) disable instant run or (2) disable ADB before letting the machine go to sleep May 08 17:12:49 but sometimes i forget, and then this is what happens :D May 08 17:13:46 How to change the color of menu text in Toolbar so it'll be black when it folded but white when unfolded? May 08 17:14:56 g00s, disable instant run permanently. solved :) May 08 17:15:42 Have yet to have AS freeze May 08 17:15:52 2009 pc May 08 17:16:00 g00s is the God of it May 08 17:16:20 SimonVT what platform ? May 08 17:16:30 Both osx and windows May 08 17:16:46 SimonVT do you use adb over wifi or usb ? May 08 17:17:03 Mostly emulator, but usb May 08 17:17:08 interesting May 08 17:17:22 this only happens when using USB, never adb over wifi May 08 17:17:37 crappy 2009 hardware May 08 17:17:40 i had AS take over 100% cpu last week May 08 17:38:36 is rxandroid 1.2.0 a drop in replacement May 08 17:40:11 * g00s tries May 08 17:55:13 weird i get all these in my build log Cannot delete /Users/.../Projects/kestrelcrumbs/android/app/build/intermediates/incremental-verifier/debug/com/google/android/flexbox file May 08 18:03:45 pretty interesting https://www.technologyreview.com/s/601369/your-brain-limits-you-to-just-five-bffs/ May 08 18:04:01 thepoosh bet social networking apps could tweak behavior based on that info May 08 18:17:01 irc is itself an interesting social network :-) I sort of wonder if the clients could auto-guesstimate the "value" of comments made by any given person from past history, rather than making me manually curate ignore lists May 08 18:19:09 kbs yeah, for example on IRC, it would be cool if the nick list was restricted to the top 100 people you comment to May 08 18:19:32 mine has 400 people but probably only interact with a few May 08 18:19:42 oh, that's an interesting idea May 08 18:19:55 anybody to use crosswalk for making android app ? how is it in performance and ram/cpu usage compare to native code? May 08 18:24:27 messaging apps on the phone do a decent job of ways to prioritize the importance of messages; wonder how closely irc maps. http://dangrover.com/blog/2016/04/20/bots-wont-replace-apps.html#the-inbox-is-the-new-home-screen is an interesting perspective on tools to manage communicating online. May 08 18:27:26 kbs yeah i saw that article ... May 08 18:28:52 nice. (I glossed over the bots-are-silly rant; and glommed onto the inbox-as-home-screen idea, it was intriguing. Something like blackberry hub maybe, though I've never used it.) May 08 19:34:56 Anyone know of a sms app that supports sending like code snippets May 08 19:46:05 hi, is it a good idea to use Runnable for continuous process? May 08 19:46:26 depends but usually no May 08 19:47:05 how can I navigate to an application's cache dir on my phone? May 08 19:47:09 tushigushi look at IntentService May 08 19:49:06 Whats the continuous process though May 08 19:49:38 well decoding a bitstream. I want to have control over it. May 08 19:50:03 and run few simultaniously and being able to control each one May 08 19:50:26 Now I have threadpool, and it works ok, but i have no control of it whatsouver May 08 19:54:50 xrandr: context.getCacheDir() May 08 19:56:03 Ashiren, that is inside my app. I want to navigate to it on my phone through a file explorer or something May 08 19:58:44 tushigushi, Runnable is just a dumb interface May 08 19:58:55 What will you be using to actually execute code inside run() ? May 08 19:59:12 I have few threads running at the same time. Different instances of the same process. I want to be able to access each and control it. IntentService doesn't seem to fit very well. May 08 19:59:27 xrandr: youd need root mostly. it depends but mostly it would be in /data/data/app.package/ May 08 19:59:38 tushigushi, do they have to run while your app is not in foreground? May 08 19:59:58 And what do you mean by control? May 08 19:59:59 No May 08 20:01:02 yes May 08 20:01:09 I have Audiotrack playing. I want to control its volume and switch it on and off. May 08 20:01:56 Manually spawn threads and start them. May 08 20:01:59 (Thread class) May 08 20:02:01 Actually just control the volume. May 08 20:28:14 Yep, it seems I misunderstood the purpose of a threadpool, should try to spawn Threads manually May 08 20:47:07 a thread pool is useful for a worker pool May 08 20:47:36 what do you mean? what is worker pool? May 08 20:48:12 I found something called HandlerThread which seems to be closer to what i need May 08 20:50:23 Not sure how handler thread would help you. May 08 20:56:42 Bit off topic but anyone know any well known companies built with Rails before twitter? May 08 21:14:35 What's a good way to check if Doze works? May 08 21:15:43 set a setExact and a setExactAndAllowWhileIdle at the same time, check through the allowWhileIdle if the setExact one fired? May 08 22:11:30 Quite quiet in here today :P May 08 22:11:51 If anyone is able to provide some insight here on my question it would be appreciated: https://stackoverflow.com/questions/37105372/trying-to-implement-mvp-using-dagger-2-how-can-i-get-a-reference-to-the-activi May 08 22:35:59 Why would a leak only happen on an emulator and not on an actual device? May 08 22:41:12 drose379: leak where exactly? May 08 22:44:00 Nevermind, its actually happening on a device now too May 08 22:44:07 Its leaking a dialog May 08 22:44:21 I guess im not dismissing it before exiting like I thought I was May 08 22:45:31 What is this: DisplayListCanvas is started on unbinded RenderNode (without mOwningView) May 08 22:45:40 Gets logged out whenever I touch the screen May 08 23:46:33 Leeds emacs got a new website, time to switch ! May 08 23:46:42 yay! May 08 23:46:45 lol May 08 23:49:42 wow May 09 00:29:14 coming in july http://www.informit.com/store/android-database-best-practices-9780134438085 May 09 01:28:06 Anyone do games with surfaceview? May 09 01:34:01 in an asynctask, if I make changes to objects (mutate state) in the "doInBackground", are those changes going to be visibile in "onPostExecute" ? May 09 01:34:48 I know that the values I return from doInBackground is visible, but how about the other objects? May 09 01:41:45 yeah they would be May 09 01:43:18 I'm trying to build a jar file in android studio. When I click build I get errors saying all the 'android.*' packages don't exist. local.properties has my sdk location correctly. Does anyone know what I might be missing? May 09 01:43:25 since the memory of objects is shared by threads, you just have to be careful to keep it thread safe (ie multiple async tasks mutating it might cause problems) May 09 01:44:04 anxiety are you making a library for android? i think there is a different export function you want to use--aar May 09 01:44:36 aar generates a non-jar binary right? May 09 01:45:42 its a jar with android resources May 09 01:47:18 so I'm installing the NDK in AS and it's been stuck on unzipping reverse.iter.ops for an inordinately long time. Should I be concerned? May 09 01:48:00 thinking of going for a walk and seeing if it's done when I get bck May 09 01:48:03 *back May 09 01:48:53 lasserix: from my understanding though, the doInBackground is executed in a separate thread than the one in "onPostExecute" May 09 01:49:36 lasserix: and so since they are two different threads, they can run on two different processes and therefore possible use stale values May 09 01:49:45 *processors May 09 01:49:54 if you are updating something frequently, sure May 09 01:50:04 but async task probably is not best for that kind of thing May 09 01:50:34 and that's what i said--if you are doing this, you can produce corrupt state so you'd want to sync it somehow or use an alternative means May 09 01:50:54 I see. alrighty thanks lasserix May 09 01:51:42 lasserix: so I should be able to remove the extra resources and rename to .jar? May 09 01:55:28 i'm creating a marmalade extension. The example I have has META-INF/MANIFEST.MF and org/pjsip/pjsua/*.class in the jar file (nothing else). May 09 01:55:56 hey lasserix May 09 01:57:48 sleepster: here's a way to 'emulate' how async task works http://pastebin.com/PJFSSZUv May 09 01:57:52 g00s hey long time May 09 01:57:58 yeah :) May 09 01:58:45 how are you / have been? May 09 01:59:46 lasserix ok i guess; taking care of an old dog (literally). reading a book about blockchain. what are you up to ? May 09 02:03:53 just got burned out so took a break, revisited c / c++ now trying to make some games before i start working again May 09 02:04:11 ah good 'ol c / c++ May 09 02:04:35 yeah, and some other web side stuff: have a friend (grad student) who teaches at local uni so been auditing his class coming up with projects with him May 09 02:05:11 oh man, i would think web would be area to stay away from if worried about burn out :) May 09 02:05:50 so much churn in that area May 09 02:05:54 just wanted to know about java web dev stuff he's going to handle anything we need on that end ;p May 09 02:06:19 Have you found anything good / worth reading on blockchains? fascinating stuff May 09 02:08:04 lasserix i was just reading this , can't recommend yet http://www.amazon.com/dp/1119300312 May 09 02:08:14 but tapscott's book is out on tuesday May 09 02:08:48 which is this one http://www.amazon.com/Blockchain-Revolution-Technology-Changing-Business/dp/1101980133 May 09 02:12:16 oh cool May 09 02:13:45 I'm still iffy on what is revolutionary in blockchain, tbh... May 09 02:15:43 i guess the idea of a distributed ledger making central authorities obsolete May 09 02:15:57 in theory anyhow, not like they are just going to let that happen :) May 09 02:17:41 g00s: real world banking used distributed ledgers for longer than internet exists, though, just used different confirmation system than factoring sha256 numbers May 09 02:18:22 yeah but they control them May 09 02:18:25 lol May 09 02:19:05 i'll have a better idea once i get done reading this; just wondering if the practical use of the tech leads to any new ideas for me May 09 02:20:23 not really interested in fintec per-se May 09 02:21:41 more like 'what specific problems can be solved one you solve the byzantine general's problem' May 09 02:23:29 g00s: well, you can use blockchain to solve the problem of dropping profits of coal mining industry, I guess **** ENDING LOGGING AT Mon May 09 02:59:59 2016