**** BEGIN LOGGING AT Sun May 22 02:59:59 2016 May 22 03:00:08 Leeds i was kinda bummed that questions were not shown in any of the live sessions ... May 22 03:00:28 they just cut some some other random live bs May 22 03:00:38 s/to some May 22 03:02:02 Leeds its kinda weird, they have been doing these for a while now - would think they have it nailed May 22 03:03:03 seems pretty obvious that they did things quite differently this year - the why is less obvious... could just have been different people in charge, could have been trying to change the atmosphere (no swag!), could have been because Moscone was booked up... May 22 03:03:58 Leeds its was kinda funny, when Sundar said this year was pivotal for google and they new venue was chosen to reflect that ... May 22 03:04:09 but one of the first things they showed were 2 lame ass chat apps May 22 03:04:30 Allo May 22 03:06:19 'allo yourself May 22 03:08:25 http://www.dailymotion.com/video/x16xwpw_allo-allo-s01e01_fun May 22 03:12:41 Might be the evil empires app, but it works on phone, tabs, pc, no matter if on cell or wifi. Is the only app ive ever found that does and doesnt require the reciever be using the same app May 22 03:13:08 trtle: did you miss a line? May 22 03:13:38 Possibly, why did i mistake the context? May 22 03:13:54 you said Allo, then quit and rejoined, then "Might be the evil empires app..." May 22 03:14:56 Im at the edge of my routers range. In between i said ill stick to msg+ May 22 03:15:34 Sorry bout that. May 22 03:15:44 msg+ seems to be an American sports TV channel... I'm not sure how it's relevant :D May 22 03:16:12 Its verizons messaging app May 22 03:17:19 ah... also not particularly relevant then May 22 03:17:21 Nvm, was meant as a funny haha, but obviously fell flat on my face May 22 03:18:17 Isnt Allo googles new sms app? May 22 03:19:19 not SMS, just messaging May 22 03:19:44 Thought that was what you two were discussing. My bad if not. May 22 03:20:10 yes, g00s mentioned it :) May 22 03:32:28 Leeds it could be i missed stuff - but thought i don't recall Sundar saying /anything/ about google+ / May 22 03:32:44 he mentioned Photos has a lot of users ... May 22 03:33:06 Spaces looks neat though, I have to try that one May 22 03:34:40 i only disliked google+ when it seemed they were forcing it on us ... May 22 04:15:45 so this migh tbe a little silly, but how do I get a human readable log of a HttpURLConnection request before I connect? May 22 04:16:19 like the full message thats being sent to the host, headers too if possible. May 22 04:17:00 connection.getRequestProperties(); returns a Map> May 22 04:53:49 #join #java-websocket May 22 04:54:09 oops May 22 05:53:05 I am inflating a view using getLayoutInflater().inflate(R.layout.tab_product_detail_layout, (ViewGroup) container); this line but it gives me view here is same class si it possible to create a new class keep this inflated view in seperate class May 22 05:54:29 I want to keep inflated view and its component in seperate class May 22 06:29:33 Anyone familiar with Samsung Galaxy S3 here? The Camera app seems to put "random" bytes in the EXIF_TAG_USER_COMMENT field. My Sony device does not do that. Any idea how I can find out what's going on? May 22 06:30:06 I'm testing (developing) my app on different devices, and I notice this (enormously annoying) difference :) May 22 06:30:47 there are phones and theres samsung s3 May 22 06:38:03 Ashiren: yeah? May 22 06:38:31 my interest is whether this indicates something I'm not handling properly in my code May 22 06:38:54 but if S3 is known to be different, then I'm not so concerned :) May 22 06:39:47 do you put somethings in that field? May 22 06:40:09 If I do (using Apache Commons Imaging = Sanselan library) then that works fine May 22 06:40:23 but point is, a *new* photo comes with garbled data from the camera May 22 06:40:29 well when i worked with camera, S3 handled settings slightly differently May 22 06:40:44 small but annoying since it didnt meet the boss' requirement May 22 06:41:06 the picture is garbled? May 22 06:41:29 the picture is fine, but the UserComment field/tag (EXIF) contains junk May 22 06:42:19 oh, i didnt play with that tag May 22 06:59:28 s3 is a great phone, if you root it May 22 07:02:59 and flash a sane rom on it May 22 07:15:45 ChrisWarrick: yeah. I've just borrowed it as an alternative testing device May 22 07:37:36 I have a tcp listener on my host computer. How do I connect to it using a tcp socket from the android emulator? May 22 07:38:04 using my computers local ip is not working. May 22 07:43:10 connecting to 10.0.2.2 doesn't work either May 22 07:51:49 nug700, open a shell and type 'ipconfig' May 22 07:51:54 connect to the ip listed there May 22 07:52:14 I've tried using my computers local ip address May 22 07:52:34 https://developer.android.com/studio/run/emulator-commandline.html#emulatornetworking May 22 07:53:01 yeah no idea why its not working for you :/ May 22 07:53:07 10.0.2.2 should. May 22 08:19:56 Any idea how to fix clicking in android emulator? May 22 08:20:16 It registers first click as a beginning of a swipe, and then the second as the end May 22 09:09:57 Guys anyone did use Java 8 libraries on android? I cannot backport the entire library, but I must use it on android. May 22 09:10:16 I tried retrolambda, but it is not transforming the dependency classes May 22 09:12:33 you'll probably be out of luck there May 22 09:13:15 but check streamsupport and threeten for some java8 backports May 22 09:44:08 hi guys... i want to add some vocal commands to mi android wear app but the log show "The context com.google.android.clockwork.home.speech.SpeechIntentApiActivity does not support TTS" May 22 09:44:21 why???? May 22 10:15:32 hey all, what's the state of touch force sensitivity in android these days? are there standardised APIs for it yet? May 22 10:15:49 porting a force touch game to android from iOS here May 22 10:23:02 shingshang: I recall encountering touch force data back in ~2010 or so? May 22 10:26:20 hmm, so it's somewhere in the API huh May 22 10:28:58 hi May 22 10:29:21 is it possible to develop Jetbrains plugins with just Android Studio, but without IDEA? May 22 10:29:41 amcsi: why wouldn't it be? May 22 10:30:19 would be great if someone can explain me this: E/tts: The context com.google.android.clockwork.home.speech.SpeechIntentApiActivity does not support TTS. May 22 10:30:25 on android wear device May 22 10:30:46 thepoosh, i dunno, maybe Android Studio doesn't support desktop Java development, only Android development, is what I was worried about May 22 10:32:03 have you tried anything? May 22 10:32:14 if not, this is a weird question May 22 10:32:25 all you need to do is a hello world and see if it runs May 22 10:32:48 thepoosh, for example these "import com.intellij.*" statements seem to not find the intellij library May 22 10:33:00 so install it May 22 10:33:06 or link it in your build.gradle May 22 10:33:41 there is no way that you can link sources that are not declared as part of the project May 22 10:37:48 thepoosh, how would I install it? I'm not too familiar with Java package management and I don't seem to see any gradle file in the project https://github.com/durkiewicz/elm-plugin May 22 10:49:49 thepoosh, oh silly me, IntelliJ IDEA (Community) is actually free! May 22 10:50:11 I could just use that May 22 10:52:06 thepoosh: can u help me with my issue with android wear? May 22 10:52:42 05-22 12:50:15.923 869-869/? W/VoicePlateFragment: Error during speech rec: 1 May 22 10:52:42 05-22 12:50:15.923 869-869/? W/VoicePlateFragment: Retrying due to network error May 22 10:52:42 05-22 12:50:15.923 869-869/? W/VoicePlateFragment: Retry scheduled May 22 10:52:44 05-22 12:50:15.936 869-869/? E/tts: The context com.google.android.clockwork.home.speech.SpeechIntentApiActivity does not support TTS. May 22 10:53:28 normal "Ok google" works BTW May 22 11:42:51 Ashiren: here? May 22 11:43:08 did you watch through the videos from io? May 22 11:43:17 what should I be looking out for? May 22 12:05:05 how to make a href to a local pdf file on android. thanks. May 22 12:05:12 like on windows chrome we open html and there are links to download the pdfs. from there i downloaded all the pdfs May 22 12:05:56 now i have all the pdfs. i want to make so app kind of thing or whatever so that i can see all the list of pdfs, and open the one required. thanks May 22 12:10:18 smgs: you can show an underline text with Spannable May 22 12:10:21 hey, quick question.. sorry for not knowing this.. as long as I’ve been coding.. May 22 12:10:28 if I have a CustomBaseException class, and I cast it to Exception (when I pass it to a function, function signature takes Exception parameter) will I lose the members of the CustomBaseException? May 22 12:10:39 CustomBaseException extends Exception May 22 12:10:42 thepoosh thanks. googling. May 22 12:11:34 smgs: http://stackoverflow.com/a/11115929/1056359 May 22 12:11:42 thanks again May 22 12:11:47 hi i have some problem when get notification, i need get one notification and save in a file. problem is when there are old notification. when i receive only one whatsapp message i receive 2 notification May 22 12:11:49 http://pastebin.com/fiaJVkMs May 22 12:12:28 how can i select exact notification ? May 22 12:12:43 thepoosh any ready made app ? so that i can edit and move ahead May 22 12:13:09 smgs: ? May 22 12:13:23 with some smart programming can virtual reality on phones (ie gear vr) compete with htc vive as far as precision positioning in the room goes? or are more specialized sensors needed May 22 12:13:30 there is code http://pastebin.com/FASHi6hV May 22 12:13:34 vr is gayyyy May 22 12:17:58 thepoosh is there any ready made apk or something to begin with ? for the thing i asked. i May 22 12:19:07 there is code in the link i added for this May 22 12:20:29 alright, figured it out.. the answer is no, you will not lose the members May 22 12:20:30 https://ideone.com/gLGKOZ May 22 12:24:41 thepoosh http://stackoverflow.com/a/11115929/1056359 ? does it have all the codes for src drawable xml etc etc ? May 22 12:33:06 Any android wear expert? May 22 12:52:26 Is there an easy way to build a menu like the one in the instagram app? At the bottom, with the icons May 22 12:55:45 p0ff3: I'm assuming the next release of the design support library will have something for this May 22 12:56:03 bottom navigation as can be seen in the material guidelines May 22 12:56:08 p0ff3: ^ May 22 12:56:26 p0ff3: https://www.google.com/design/spec/components/bottom-navigation.html May 22 12:57:34 p0ff3 Define easy May 22 13:12:16 thepoosh: Thanks! May 22 13:12:18 I have got success with compiling with retrolambda, but now a new error occurred. It compiles the APK successfully, but at runtime it can't find the engine classes. May 22 13:12:23 Any ideas? May 22 13:12:33 cyource: Well copypasty that I can understand and is easy to use May 22 13:12:55 SHC: use proguard rules better May 22 13:13:11 thepoosh: I have disabled proguard May 22 13:13:26 yet you get a ClassNotFoundException? May 22 13:13:35 yes I get it. May 22 13:13:37 p0ff3 It isn't that hard to code one yourself. May 22 13:13:47 Wait, I'll post you the log in pastebin May 22 13:16:32 * thepoosh is waiting for SHC May 22 13:16:49 hithere May 22 13:18:26 bolovanos: HARRO May 22 13:18:52 thepoosh: Here is the complete log (link to exception): https://gist.github.com/sriharshachilakapati/f066969f5d2a67cd896727641fb0fe3e#file-error-log-L3176 May 22 13:19:53 thepoosh, HARRO - it was new to me http://goo.gl/tjyTAl May 22 13:19:59 SHC: at com.shc.silenceengine.tests.android.MainActivity.onCreate(MainActivity.java:39) May 22 13:20:24 I have this problem - I was talking about earlier - few days ago May 22 13:20:35 That line is this: AndroidRuntime.start(this, new TestRunner(new DynamicRendererTest())); May 22 13:20:41 And it resolves well in the IDE May 22 13:21:00 bolovanos: it comes from the movie team america world police May 22 13:21:01 http://s241.photobucket.com/user/gfn209/media/herro2.jpg.html May 22 13:21:23 SHC: TestRunner is not a thing May 22 13:21:45 It is one of the classes in my library, and it is working in the IDE May 22 13:21:57 I am writing some serialized data to internal storage May 22 13:22:07 using this outputStream = new ObjectOutputStream(new FileOutputStream(file)); May 22 13:22:13 it's not in your scope and test shouldn't be running from your main src May 22 13:22:15 outputStream.writeObject(data) May 22 13:22:28 where File file = new File(context.getDir("directoryName", Context.MODE_PRIVATE), May 22 13:22:32 thepoosh, hav not seen it :) May 22 13:22:39 you should May 22 13:22:49 kim yong :) May 22 13:23:22 I have that saving code surrounded with try cat block May 22 13:23:28 and catching IOException in catch part May 22 13:23:57 The package name is tests, but it is indeed a normal application May 22 13:24:04 problem is that app crashed (just once) and from the nauter of FileOutputStream - all data were wiped out May 22 13:24:38 be more specific finally part of the block wiped it out May 22 13:25:27 I was thinking about some more secure way of saving data like - having some sort of by temporary file and mergin those to together on some more rare occasions May 22 13:25:43 but always what it becomes seems to me like bit of overkill May 22 13:25:52 how do you solve this problem guys? May 22 13:26:08 do you somehow secure your data when using FileOutputStream? May 22 13:27:14 by flush() everytime? May 22 13:29:39 Ashiren, if it is for me - can you be please bit more specific - when something happen in try block - I am flushing outputStream object in finally block May 22 13:30:13 ahh May 22 13:30:47 well flushing save and syncs the data in outputstream May 22 13:31:31 doing write() will mostly just put the contents on the internal buffer and only after a while (when buffer is full or after some time) itll save to file May 22 13:32:21 so if your app crashed during write() the data most probably where just sitting in RAM, not in file yet May 22 13:34:26 Ashiren, http://pastebin.com/5jTi3P9M May 22 13:34:35 that is the way I am saving data now May 22 13:34:50 real quick info, I have onItemClickListener, however on Item, which is connected with my listView and adapter, I have text and button, inside one list May 22 13:35:02 I am shooting app right before "outputStream.writeObject" as you can see May 22 13:35:07 clicking on button does not call item, only outside of it, button is set to not focusable May 22 13:35:18 this way - it will wipe out file "saveFileName" May 22 13:35:28 Is there a default structure of what directories should be included for GitHub Android projects? Seems to be any time I pull updates which I've done on my PC to my laptop, gradle says packages are missing and that makes me think I'm not pushing everything I have to, which is why I'm asking this question :D May 22 13:37:22 markyosullivan: well if you used the git gui built-in android studio for pull and push in the first place, you'd get it right May 22 13:38:39 bolovanos: oh, you could then use temporary file, then after the operation rename it May 22 13:39:40 bolovanos: also there's FileOutputStream(file,append) if you want to append instead of overwrite May 22 13:40:20 Ashiren, good idea with the renaming - will check how fast that is May 22 13:40:47 Ashiren, when it comes to appending - I am aware of that - but it does not apply to my case May 22 13:40:55 Ashiren, thanks for now May 22 13:48:25 Ashiren, btw if may I ask - you know how to rename it in my case? :) May 22 13:48:45 if it is even possible to rename resource file which is saved in internal storage May 22 13:49:08 File file2 = ...; file.renameTo(file2) May 22 13:49:45 nice and smooth :) May 22 13:49:49 thank you May 22 13:53:42 hi! May 22 13:54:23 how to upgrade to the latest stable android studio. just now i downloaded it. how to upgrade etc. i am unable to see the install.exe file or something like that. thanks May 22 13:55:09 question about getCacheDir() vs getExternalStorageDir().. for sensitive stuff is getExternalStorageDir() a bad place to store data because it’s accessible by anyone? and getCacheDir() is only accessible by your app? Also.. if the device is in USBHost mode via OTG Cable, would getExternalStorageDir() point to that? May 22 13:55:47 smgs: are there any other .exe or .bat files? May 22 13:56:04 the zip file contents are extracted to android-studio folder having ...... a lot of files May 22 13:56:10 Ashiren a second May 22 13:56:30 https://gyazo.com/f80b28dd6fe947cc04cd40253d6a2784 May 22 13:56:33 Ashiren no.. May 22 13:57:34 tricknology: afair getCacheDir is per app May 22 13:57:46 tricknology: but is unreliable to store persistent data May 22 13:58:07 why is that? it can be cleared by the system? May 22 13:58:17 or the user can jsut delete the cache.. May 22 13:58:45 actually both May 22 13:58:52 Damn, I might be using SharedPreferences here haha May 22 13:58:57 and this is the child folder of android-studio. https://gyazo.com/ffe902d47e486d0265c5be4182a2a555 May 22 13:59:33 tricknology: or use internal storage for app May 22 13:59:56 context.getDir() May 22 14:01:50 hm.. any space constraints? Besides available disk space.. I can just do context.getDir().getFreeSpace() May 22 14:01:58 like up to 30MB May 22 14:02:24 im not sure, i think the space will be over 30MB May 22 14:02:26 I read somewhere that some devices don’t have a cache dir > 30MB or so which affects large apps from downloading on that device May 22 14:02:47 Interesting.. I think I’m going to try to research that. Thanks May 22 14:02:48 yeah and it depends on device May 22 14:02:57 but cache and data dir are quite different May 22 14:03:03 yeah, obviously depends on device May 22 14:03:08 I’m starting to realize that.. May 22 14:03:30 Ashiren thanks. i searched and found the studio64.exe, running it as Admin May 22 14:03:45 Ashiren: u mean context.getFilesDir()? May 22 14:04:21 cache dir != cache partition May 22 14:04:23 no, getDir May 22 14:06:29 gotcha May 22 14:07:03 now.. I’ve created a library and someone has implemented it. since the context is of their application, would it be stored within reach of their application? May 22 14:07:53 uhh yes? May 22 14:08:34 getCacheDir() returns /data/data/app/cache, getFilesDir() returns /data/data/app/files, getDir(name) returns /data/data/app/name.. There's no space constraints other than available space May 22 14:10:24 Ashiren: ty May 22 14:10:35 SimonVT: what about context.getDir() ? May 22 14:10:49 (space constraints other than available space?) May 22 14:11:03 They're all in the same folder May 22 14:11:08 data/data/app/ May 22 14:11:31 Ashiren. i have downloaded 1000s of pdf and want to make them viewable on clicks ( clicks on text suggesting what pdf contains, behind it there is hyperlink to open the pdf) how to do it ? thanks May 22 14:11:46 local href or whatever they call it. May 22 14:11:54 possible ? all the pdfs are on the device. May 22 14:12:37 yeah open it in a pdf viewer with an intent.. May 22 14:12:38 http://stackoverflow.com/questions/10530416/how-to-open-a-pdf-via-intent-from-sd-card May 22 14:12:56 Check the accepted answer, pretty simple May 22 14:13:01 uhuh May 22 14:13:40 Thanks, SimonVT May 22 14:25:09 Yeah... either show the PDF in an external, 3rd party app, or pay thousands of dollars for a library that lets you embed a PDF viewer in your app May 22 14:25:14 god i hate pdf files May 22 14:25:37 i can only imagine how many man-hours have been wasted on that stupid format May 22 14:25:48 sorry, end of rant May 22 14:35:55 tricknology can i pm you ? regarding the same. i am a total noooob. May 22 14:38:38 damm. can i use html viewer for the same ? May 22 14:40:35 smgs May 22 14:40:42 tricknology May 22 14:40:50 better to keep it in the chat, in case anyone would like to add their input or learn May 22 14:41:04 or correct me because I’m wildly wrong ;-) May 22 14:41:24 What is your issue? That code should open the default PDF viewer May 22 14:41:24 hehe. no it might offend the serious ones. my noobish questoins i mean May 22 14:41:33 there are like 1000s of pdfs May 22 14:41:43 no it’s ok, I was afraid of doing the same like.. 5 years ago in here May 22 14:42:04 so i want to view the links to all at one go.. ( instead of link what the pdf holds ) May 22 14:42:05 ok May 22 14:42:12 then choose one which i want to open.. May 22 14:42:19 kind of a lot of href etc etc May 22 14:42:25 ok i see where you’re going May 22 14:42:27 local href May 22 14:42:38 how noobish are you? heh May 22 14:42:42 scale of 1-5 May 22 14:43:04 2 May 22 14:43:07 it determines how I explain it and what questions I ask. May 22 14:43:24 my yarstick is different than yours. lol May 22 14:43:30 ok, so how do you plan on getting the text for the links into your app? Do you have the text for the links? May 22 14:43:37 yes. May 22 14:43:43 im probably a 3, admittedly May 22 14:43:45 or 3.5 May 22 14:43:50 hehe. May 22 14:44:01 ok so where are they in the app? database, text file, hard coded? May 22 14:44:05 please mention my nick.. so that i can keep this chat minimized etc.etc May 22 14:44:11 on my desktop May 22 14:44:26 at present there is no app at all May 22 14:44:29 on your PC desktop you have a list of files May 22 14:44:30 ok May 22 14:44:35 yes. May 22 14:44:39 heh do you knwo how to implement a ListView? May 22 14:44:54 no. May 22 14:45:00 is there any apk to start with ? May 22 14:45:09 is the list of link text a .txt file or CSV or something? May 22 14:45:19 .html May 22 14:45:29 it opens pretty good on chrome. May 22 14:45:30 no, let me make sure you’re trying to do what I think you are.. May 22 14:45:37 um does it go to a link? May 22 14:45:41 or is it a local .html file May 22 14:45:51 no. the pdfs i ahve already downloaed on the system May 22 14:46:04 onto your computer? May 22 14:46:15 PC? May 22 14:46:20 it goes to the link. but since i have alredy dpownload all on PC May 22 14:46:27 i want it to be on my mobile May 22 14:46:31 are you getting it ? May 22 14:46:38 ok so your .html file links to a path on your hard drive May 22 14:46:54 no no. that also i haven't figured yet.. May 22 14:46:55 a href =“c:/pdfs/somepdf.pdf: May 22 14:46:58 local hard dirve path. May 22 14:47:03 just that ^ ? wow!!! May 22 14:47:16 no, just a short example May 22 14:47:22 can you pastebin your .html file? May 22 14:47:24 the contents of it May 22 14:47:31 ~pastebin May 22 14:47:39 ok i shall paste a demo. May 22 14:47:40 oops, I’m not in ##java May 22 14:47:42 not in the chat May 22 14:47:48 wait for 5 minutes.. May 22 14:47:49 http://pastebin.com/ May 22 14:47:55 i want to see the HTML source May 22 14:48:02 you might be able to use that. May 22 14:48:29 Do you want the .pfds to live on your PC where they are or on the Android device? May 22 14:49:20 From what I have gathered, this is what you want to do: 1) Make an activity with a ListView May 22 14:49:41 2) Parse the HTML file to get the text you want, maybe even the .pdf filename or path May 22 14:49:45

1

  • details of the pdf so that http://somesite.pdf.. that PDF is hosted somewhere? May 22 14:50:16 there are like 1000s May 22 14:50:20 yes May 22 14:50:24 those i ahve already downloaed May 22 14:50:25 yeah but just links right, you havent downloaded them May 22 14:50:43 no i have downloaded them May 22 14:50:51 all of them downloaded on the system May 22 14:50:58 and you want them to be on your phone physically? or just readable from your phone? May 22 14:51:10 yes. May 22 14:51:12 both May 22 14:51:27 with MTP i can transfer them all. May 22 14:51:56 ok like to an SD car? May 22 14:52:01 SD card May 22 14:52:13 i want the app etc to look similar to the html on desktop ( and when the user clicks the hyperlink it opens the pdf from the sd card ) May 22 14:52:22 nexus 5 May 22 14:52:30 folks how come when i click on logout item in this drawer menu, it just collapse without showing the message ? http://paste.ofcode.org/nQCSgEG9xHYwSyrf2ShsCA May 22 14:52:32 I’m going ot have to tell you high level because you havent even started so it’s useless to try to tell you to build it line by line, i hope you understand.. May 22 14:53:10 ok, you will have to change the links in ahref May 22 14:53:19 ok. May 22 14:53:21 then ? May 22 14:53:37 to my sd card pdf s that i can do.. May 22 14:53:39 change them to something like smgsdeeplink.somefile.pdf May 22 14:53:46 or better yet May 22 14:53:59 smgsdeeplink://somefile.pdf May 22 14:54:06 yes that i can do.. May 22 14:54:38 then read about “Deep Linking” May 22 14:54:39 http://docs.urbanairship.com/topic-guides/android-deep-linking.html May 22 14:54:43 checking May 22 14:55:30 Your activity will have a WebView, open the HTML in your WebView to display your links just like it is on the desktop (almost) May 22 14:55:54 then ? May 22 14:56:12 can i pm.. people might get pissed. i am asking so much. May 22 14:56:27 It’s ok May 22 14:56:34 ok then in here only May 22 14:56:36 I’m also curious if anyone has a better way May 22 14:56:57 … then check this to load your WebView with the .HTML file you have http://stackoverflow.com/questions/3152422/webview-load-html-from-assets-directory May 22 14:57:06 please give me some time. i have smoothen all the stuff already done. some utf issue or whatever. May 22 14:57:08 that one does it form assets directory but you can use external storage May 22 14:57:18 just copy paste this cuz i have to get back to work hah, sry May 22 14:58:00 .. then you have your webview, you’ve hopefully hooked up your DeebLinking scheme and Intent Filter for your app May 22 14:58:23 okies. thanks. i shall try. May 22 14:58:29 tricknology when will you get bakc ? May 22 14:58:37 idk if i will soon May 22 14:58:57 okies. thanks a MILLIONS for the time and knowledge and patience May 22 14:59:08 …then change openDeepLink() method to that link I sent earlier May 22 14:59:22 http://stackoverflow.com/questions/10530416/how-to-open-a-pdf-via-intent-from-sd-card May 22 14:59:24 okies. i shall try May 22 14:59:25 that one ^ May 22 14:59:30 but 1 thing is missing May 22 14:59:44 ? May 22 15:00:27 You have to parse the filename from that ahref in the that results from: String path = deepLink.getPath(); May 22 15:00:41 example ? May 22 15:00:43 then you take that filename and use it to navigate to wherever you put the files in your External storage May 22 15:01:35 check this out: http://tech.just-eat.com/2015/06/29/deep-linking-in-android-the-easy-way/ May 22 15:01:39 k May 22 15:01:52 search final String scheme = uri.getScheme() May 22 15:02:17 taht will get what you put instead of http:// May 22 15:02:43 final String host = uri.getHost() will get you the filename May 22 15:02:55 hmm May 22 15:02:59 use that filename to get from the external strorage dir May 22 15:03:13 (you will need to play with it, these implementations are a little diff, but you’ll see) May 22 15:03:19 ok. May 22 15:03:51 you get the file from the external storeage liek this: final File file = new File(Environment.getExternalStorageDirectory() May 22 15:03:52 .getAbsolutePath(), filename); May 22 15:04:01 final File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath(), filename); May 22 15:04:45 If you create folders for the file, you might have to add something: …getAbsolutePath()+”/path/you/made” May 22 15:05:03 *a folder for the pdfs May 22 15:05:53 now you have a WebView that displays a .html file from your assets and deeplinks back to your app to open the file and display it in the default PDF Viewing app using Intent. May 22 15:05:55 hmm May 22 15:06:13 i have download the gihub deeplink May 22 15:06:14 If you use the default viewer you can get fancy and add page numbers so taht it will open to a page number May 22 15:06:24 you dont have to.. May 22 15:06:32 use the same logic they did to create the deep link May 22 15:06:48 man it surely is difficult for me. May 22 15:06:50 but this is kind of advanced stuff.. wouldn’t be a bad Android project but you’re going to have a loooot of questions. May 22 15:06:57 Have you made an app before? May 22 15:07:02 never. May 22 15:07:04 lol May 22 15:07:05 heh May 22 15:07:25 this would be first, if it does. May 22 15:07:26 Links on how I learned: May 22 15:07:27 http://www.vogella.com/tutorials/android.html May 22 15:07:46 https://developer.android.com/training/index.html May 22 15:08:00 bookmarked May 22 15:09:15 https://developer.android.com/reference/classes.html May 22 15:09:53 ^ that one most importantly. not meant for you to read through on your first app and memorie it.. it’s liek a dictionary. May 22 15:10:06 once you’re more familiar with it, then you’ll use it to read up on the changes May 22 15:10:16 (Android Vesion Changes) May 22 15:10:18 k May 22 15:10:22 good luck! May 22 15:10:32 thanks. really means a lot to me May 22 15:10:55 oh and http://stackoverflow.com May 22 15:11:06 no problem, I hope you enjoy Android :) May 22 15:11:49 oh you might also want to get a book: https://www.bignerdranch.com/we-write/android-programming/?gclid=CjwKEAjwsYW6BRCTzvu5y8DPhi0SJABnGLlHbQyKrksr8eSN69BZHtoG1wCwgaCgq9zwKQjoa9X71RoCDfvw_wcB May 22 15:11:59 available on amazon and.. other places May 22 15:12:47 lol May 22 15:12:50 more than i can chew May 22 15:15:15 start with the tutorials and work your way up May 22 15:15:47 okies May 22 15:15:53 I started with an Evo 4G and heard anyone could write apps. Didn’t know Java, barely knew HTML. May 22 15:16:02 Vogella was the tutorial I followed first May 22 15:16:14 Like you I had a specific app idea, was pretty complex May 22 15:16:37 It wasn’t quick.. but stick with it May 22 15:16:45 got me a pretty good job :) May 22 15:17:30 Hello all! May 22 15:18:18 Question... what's the best way to pass an arraylist of bitmaps to a new activity? I'm thinking serialization, but wanted some thoughts from the community May 22 15:19:58 Bitmap is parcelable I think? May 22 15:20:27 Yeah, so you can just do .putParcelableArrayListExtra() May 22 15:21:16 On the intent May 22 15:21:24 jsav yeah, don't do that ... May 22 15:21:49 jsav put those some place, and just tell the second activity where to put them up May 22 15:22:01 there is a limit to size of bundle passed to activity May 22 15:22:15 can't remember off the top of my head, and its probably changed with android devices May 22 15:22:28 android versions rather May 22 15:22:46 I'm thinking a static variable in the previous Activity class May 22 15:22:56 a singleton or whatever May 22 15:22:59 Because these Bitmaps can be huge May 22 15:23:15 yep g00s May 22 15:23:19 also make sure you are using something like glide or picasso to manage those things May 22 15:23:26 * g00s sees ooms ahead May 22 15:24:09 You reccomend storing them in a singleton g00s ? May 22 15:24:59 i change my mind on that, whatever people do when using glide / icasso May 22 15:25:14 They use a LRU cache IIRC. May 22 15:25:17 but generally, not a good idea to pass large bundles to activities May 22 15:25:39 Serializing a bitmap is a horrible idea (you're copying around several MB large chunks of data) May 22 15:25:53 Even a single bitmap will probably make your activity transition miss several frames May 22 15:25:58 Isnt it Parcelable though May 22 15:26:12 What does that matter? May 22 15:26:13 just because it is, doesn't mean you should ;) May 22 15:26:13 I'm just gonna have a 'public static ArrayList imageList' that gets set before starting the new Intent, and gets set to null in onDestroy in the new activity May 22 15:26:45 These bitmaps can be quite large... serialization isn't practical, and Parcelable is out of the question May 22 15:26:58 jsav and see duhroach's (colt's) perf matter videos, i'm sure he covers this May 22 15:27:08 maybe even i/o session May 22 15:27:09 What do you mean out of the question May 22 15:27:37 from my experience, parcelable limits bitmaps to 1MB. that's not close to the limit I need May 22 15:27:50 Ah ok May 22 15:27:54 bitmap is few MB, whether serialized or parceled May 22 15:27:59 Otherwise it would be perfect! May 22 15:28:16 but bitmap already implements parcelable May 22 15:28:22 is there a good, recommended, android book that's been updated for 6, android studio, etc.? May 22 15:28:26 what is the max size of bundle, i thiought around 1mb right ? May 22 15:28:36 yes May 22 15:30:47 I've decided to go with the static variable route May 22 15:30:53 Let's see how this works! May 22 15:31:16 and g00s, I'll check out the videos today on my break at work May 22 15:38:11 Hi folks. Kind of torn which design pattern to choose. I've got a service and want to expose some functionality to a third party app on the device. The functionality returns a value. I'm not sure whether to let the 3rd party app bind to the service, use AIDL to let it make direct method calls, or offer data via a content provider. May 22 15:38:13 Key info: The service will likely already be running. I would like to find a way to limit which 3rd party apps can use the functionality. The functionality may block for several seconds before returning a value. May 22 15:42:21 I suppose also the reason I can't choose which design pattern is I'm trying to be mindful to make it as easy for the 3rd party app as possible to use the functionality whilst doing as little work their end May 22 15:44:45 What kind of value is it? May 22 15:44:53 Something that changes, database retrieval, ? May 22 15:45:24 It'll be a string, it will ultimately come from the net but the service will probably implement an internal cache May 22 15:45:51 Im trying to set and image view as bitmap from an Async task however im getting an error saying that i cant apply async task to imageivew.. http://ideone.com/ePMScX this is my code so far May 22 15:45:57 would someone please take a look May 22 15:47:17 Mavrik if you haven't already, have you migrated stuff like GA to firebase analytics, firebase crash reporting, etc ? May 22 15:48:11 nop May 22 15:48:40 Probably won't until google figures out what goes where. May 22 15:48:48 lol May 22 15:49:01 yeah i'm a little confused, but thats normal ;) May 22 15:51:41 Also never really used GA since it was rather shit for Android May 22 15:55:46 Does anyone know why i cant set an imageview bitmap with this async? http://ideone.com/ePMScX May 22 15:57:29 thornekey: You probably want a BufferedReader around your input stream May 22 15:58:24 An_a_coda, noted, but im getting this error "'setImageBitmap(android.graphics.Bitmap)' in 'android.widget.ImageView' cannot be applied to '(android.os.AsyncTask)'" May 22 15:58:36 like a mismatch error May 22 15:58:54 thornekey: If you really want to handle it yourself, see https://developer.android.com/training/displaying-bitmaps/index.html May 22 15:59:18 But you should use an image loading library like picasso or universal image loader May 22 15:59:55 Ah, ive heard of picasso, does that do similar to what i am trying to achieve? image from url May 22 15:59:55 thornekey: And depending your application you might want to consider using Volley May 22 16:00:11 An_a_coda, whats volley do May 22 16:00:24 What's google do? May 22 16:00:36 :3 May 22 16:00:37 touche May 22 16:00:43 https://developer.android.com/training/volley/index.html xxx May 22 16:00:50 As for your paste, yes, the execute method does not return the result of doInBackground.. Read https://developer.android.com/reference/android/os/AsyncTask.html May 22 16:01:40 Volley is ideal for doing things like loading lots of images and things in to a listview etc., it handles all the nasty for you May 22 16:03:08 thornekey: There's a good quick intro to it here https://www.youtube.com/watch?v=yhv8l9F44qo May 22 16:03:25 thanks i will check these links out :) May 22 16:03:46 No probs May 22 16:05:33 thornekey: An ASyncTask is a thread wrapper to make it easier but you still have to do lots of boilerplate stuff for net. Volley takes care of threads and net and more for you too, so you can do big parallel requests for all sorts of content to fill your UI May 22 16:07:19 Ahh sweet, am watching that video now May 22 16:07:40 Note that both AsyncTask and Volley are kind of being phased out these days May 22 16:07:58 CedricBeust: Source? :S May 22 16:08:03 nobody in here can recommend a good android programming book? :/ May 22 16:08:03 :O May 22 16:08:18 The source is modern practices in Android development :) May 22 16:08:29 so what do you suggest? May 22 16:08:29 dcope: ++ May 22 16:08:32 would also like to know May 22 16:08:36 Look at OkHttp / Retrofit for Volley alternative May 22 16:08:40 practice based if pos May 22 16:08:48 and RxJava to avoid AsyncTask May 22 16:08:50 tooltip: i spent some time browsing on amazon and it looks like most were from last fall May 22 16:09:00 worst case scenario, i buy one of those and read it. May 22 16:09:05 amazon shmamazon May 22 16:09:06 Google were never really committed to pushing volley to the masses, not even in maven central May 22 16:09:06 although RxJava only addresses partially the problems with AsyncTask (configuration changes), there's still some extra work required May 22 16:09:08 just wondering if theres a good, recent one from this year :) May 22 16:09:11 >buying May 22 16:09:43 Android development evolves so fast it's hard to recommend books for it May 22 16:09:45 CedricBeust: Volley is one of the core topics in Android training under connected apps, I think you're wrong May 22 16:09:51 so Guiz, whats your fv book? May 22 16:10:09 An_a_coda: Because Google is moving slowly adopting new practices, e.g. RxJava May 22 16:10:13 all the tech evolves fast, yet there are still actual books based on alghorithms that you can learn from May 22 16:10:31 is there like an android cookbook? May 22 16:10:40 >inb4 google.com May 22 16:12:10 An_a_coda, Volley wasn't even touched in ages. May 22 16:12:13 Why would you use that -_- May 22 16:12:14 An_a_coda: You won't see any training from Google using RxJava (as far as I know), yet it's pretty much adopted everywhere for modern development these days May 22 16:12:42 Bottom line, stay away from Volley May 22 16:12:49 CedricBeust: In fairness Android is hardly standard Java May 22 16:13:04 What do you mean? It's pretty standard Java May 22 16:13:08 That's a bad bottom line suggestion it's still good practice recommended Android pattern May 22 16:13:15 I see Android as just one framework written in Java, like Spring is May 22 16:13:29 I actually like the new 'Task' that firebase introduces May 22 16:13:35 An_a_coda: Really, no. Don't use Volley. May 22 16:13:47 CedricBeust: Google disagrees with you May 22 16:13:52 kind of May 22 16:14:12 What the heck? Why did compile 'com.android.support:appcompat-v7:24.0.0-beta1' end up in my build.gradle? May 22 16:14:14 You mean you found articles on the web that recommend Volley? May 22 16:14:21 i thought Volley was kinda like Ficus side project May 22 16:14:21 Why did AS change it? May 22 16:14:22 This hardly means anything May 22 16:14:25 Google also produces bunch of crap code :P May 22 16:14:34 I wouldn't follow in that direction too much. May 22 16:14:35 CedricBeust: If by "the web" you mean official Android training, sure lol I think you're kind of detached from reality May 22 16:14:48 An_a_coda: I am detached from Android reality? Seriously? May 22 16:15:09 CedricBeust: You're asking us to believe a nobody vs official Android training materials, seriously? May 22 16:15:20 Nobody? That hurts my feelings. May 22 16:15:21 a "nobody" May 22 16:15:22 lol May 22 16:15:31 CedricBeust, you're a nobody May 22 16:15:38 confirmed May 22 16:15:38 pfn don't make me cry May 22 16:15:40 I'm not saying RxJava might not be good, but Android training section has a little more credibility that you May 22 16:15:41 The @ makes me think they're somehow important May 22 16:15:51 Haha May 22 16:15:51 pfn link to the task thing? May 22 16:16:15 why y'all fighting just wanted to know about async oml May 22 16:16:18 If you link us to your online training library I'll be delighted to retract all my comments ¬_¬ May 22 16:16:44 I'm just linking you to doing some homework and understand what modern practices are May 22 16:16:52 * Mavrik hugs CedricBeust. May 22 16:16:57 Oh ok May 22 16:17:02 * CedricBeust hugs back Mavrik May 22 16:17:10 g00s, no idea, it was in the firebase deep dive talk May 22 16:17:46 An_a_coda: Read some sources of popular Android frameworks/libraries, read a few articles. May 22 16:17:46 An_a_coda from what i recall, Volley was started by Ficus K in maybe 2013, but it was 'beta'. it never made it to any repo, so you had to get it from AOSP. then i think Ficus left Google. not sure what happened between there, but other libs like Glide became defacto standard May 22 16:17:58 We also have a special offer for you from the Google Cloud team: a $500 Cloud Platform credit May 22 16:17:59 No Ficus is still at Google May 22 16:18:00 meh May 22 16:18:11 not enough damnit May 22 16:18:12 he was on stage a I/O actually, but yes, he's no longer working on that. Hasn't in a while May 22 16:18:15 CedricBeust didn't he rejoin though ? May 22 16:18:27 ah maybe May 22 16:18:41 yeah i saw him on stage too May 22 16:19:00 * An_a_coda is watching the clock until CedricBeust tells us that Activities are also outdated practice... May 22 16:19:00 g00s: Checking, no he's been at Google since I was there, 2005 May 22 16:19:01 or on youtube i should say :D May 22 16:19:20 oh ok, my mistake. read a blog from him a while back sounded like he was taking a break to travel May 22 16:19:24 bearded Ficus... May 22 16:19:27 An_a_coda: Now why would I do that? May 22 16:19:43 Actually I probably shouldn't do that after the latest I/O, they kind of are with instant apps ¬_¬ May 22 16:19:51 Absolutely not May 22 16:20:01 Instant apps are a totally different things May 22 16:20:12 Still regular Java tho? ;) May 22 16:20:18 Sure May 22 16:21:01 Let's ignore Dalvik, JIT, instant apps, OpenJDK, etc. May 22 16:21:26 that's not the point] May 22 16:21:37 and openjdk is not relevant to thjis discussion May 22 16:21:59 Very relevant to Android May 22 16:22:06 not really, not at all May 22 16:22:07 Sure May 22 16:22:18 just not this discussion May 22 16:22:20 using harmony or openjdk isn't very relevant, doesn't matter much at all May 22 16:22:30 we'll all be using Kotlin by this time next year, I guess May 22 16:22:34 or swift... May 22 16:22:38 lol May 22 16:22:38 or scala May 22 16:22:38 I am already May 22 16:22:39 :P May 22 16:22:42 scala is also good May 22 16:22:58 * CedricBeust steps back slowly May 22 16:23:14 tbh I have a hard time accepting Java as seriously because lambdas. Version 8. EIGHT. May 22 16:23:29 I have no idea what that means May 22 16:23:33 CedricBeust have you learned any more about the gradle / kotlin thing - are they going to rewrite the innards using kotlin, or are they just exposing some kotlin stuff to people that want to use that for DSL ? May 22 16:23:33 You're not accepting Java seriously? May 22 16:23:33 no idea May 22 16:23:34 QED May 22 16:23:52 g00s: Yes I'm in touch with both JB and Gradle about it May 22 16:24:05 I have a hard time accepting it took version 8 to introduce something that basic May 22 16:24:10 g00s, the second May 22 16:24:16 hm, ok May 22 16:24:22 It probably wouldn't be bad if Android was to switch to Swift May 22 16:24:23 An_a_coda: Probably because you don't understand what it takes to add features to such a popular language May 22 16:24:34 An_a_coda: haha, yeah, no May 22 16:24:36 CedricBeust: Popular != Good May 22 16:24:43 I never made that connection May 22 16:24:50 Nobody does. Ever. May 22 16:24:59 I think Java is a pretty decent language and Kotlin is far superior to it May 22 16:25:02 and lambda syntax wasn't very important, IDE did most of the work for you on that front May 22 16:25:05 CedricBeust: there's other languages that have had features from the very beginning, and have added more later on. Python 2, for example. May 22 16:25:10 Or python 3 :) May 22 16:25:25 pfn: it's very boilerplatey May 22 16:25:36 autrilla: Python is a good example of what happens when you break backward compatibility... Chaos. May 22 16:25:36 Java is like the Kardashian of languages tbh May 22 16:25:38 CedricBeust: java is pretty terrible imo May 22 16:25:39 autrilla, absolutely, it's java, it's all boilerplatey May 22 16:25:51 CedricBeust: Python didn't break backwards compatibility within the same major revision May 22 16:25:56 True May 22 16:26:07 And each minor version keeps adding features May 22 16:26:14 well thats good to know, if i ever want to reassure myself if android-dev is still alive, i just ask if android java is java - if we get a response there is still life :D May 22 16:26:21 Like, 3.6 has another way to format strings :) May 22 16:26:23 You do have to admit the whole Java / Lambda thing was pretty botched. May 22 16:26:26 At any rate, Python is dynamically typed so I have zero interest in it (well, 0.5 interest in it since it's necessary for Tensor Flow, sadly) May 22 16:26:27 (we need more of those) May 22 16:26:30 lol @ g00s May 22 16:26:36 Java 7 was a terrible release due to panel infighting May 22 16:26:50 Python is teh rock May 22 16:26:51 CedricBeust: google is pretty python heavy May 22 16:27:13 autrilla: Not really. It's an officially sanctioned language but Java is dominant at Google May 22 16:27:27 CedricBeust: entire products use Python as the main languages, like YouTube May 22 16:27:28 Python is convenient for Tensor Flow and other scientific projects, though May 22 16:27:37 Of course it's sanctioned, it runs in App Engine May 22 16:27:38 autrilla: Nope, YouTube is mostly Java May 22 16:27:44 Surely if you worked on Android, Java was the thing you saw the most? May 22 16:27:48 Mavrik i remember Josh Bloch talking a little about adding those feature to the language, now this was at least 5 years ago - he said something like "well, we don't want it to be like your grandma getting a belly button piercing" or something like that May 22 16:28:06 CedricBeust: googler friends tell me otherwise May 22 16:28:31 For some definition of "is used" May 22 16:28:41 It serves the favicon? May 22 16:28:44 Trust me, the back end couldn't remotely scale if it was in Python May 22 16:28:58 CedricBeust: erm, that friends work on the backend :) May 22 16:29:05 those May 22 16:29:28 Everyone knows if you want a backend scripting language that scales you should use PHP May 22 16:29:37 Hack ! May 22 16:29:55 Tcl or bust May 22 16:30:04 Rexx ! May 22 16:30:18 Arexx May 22 16:31:01 Anyway thornekey that should have answered all of your questions May 22 16:31:13 The answer is: don't use Volley :) May 22 16:31:33 I thought the answer was don't use Android May 22 16:31:52 well ill take both answers with a pinch of salt and do some reading/watching about it all May 22 16:32:01 Sensible decision May 22 16:32:41 thornekey: Use a real image loading library, like picasso or UIL :) May 22 16:32:52 I can't see the entirety of the backend of youtube using python, doesn't make sense May 22 16:32:53 Or Glide May 22 16:32:58 im looking at picasso right now May 22 16:32:59 I think we call all agree with don't use Volley May 22 16:33:00 but yes, don't reinvent your own image loading at this point May 22 16:33:09 Leeds: We don't all agree with that May 22 16:33:17 I don't agree with it, official Android training doesn't agree with it? May 22 16:33:20 An_a_coda: yeah... we do May 22 16:33:24 everyone agrees with don't use volley May 22 16:33:26 Well there's one person who disagrees, everybody agrees Volley is out May 22 16:33:33 volley is a shitty library that is absolutely unsuitable for image loading May 22 16:33:33 3 nobodies vs Google, ok May 22 16:33:43 It was designed for image loading :-| May 22 16:33:47 Who cares who we are? May 22 16:33:51 Jesus? May 22 16:33:53 Volley is indeed shitty :) May 22 16:34:03 * Leeds tried to use Volley, years ago... May 22 16:34:04 FSM? May 22 16:34:19 Leeds what do you suggest May 22 16:34:44 everyone's already given good suggestions for image loading May 22 16:34:45 thornekey: for images? picasso May 22 16:34:47 leave the Flying Spaghetti Monster out of this! May 22 16:34:48 glide, picasso, uil, etc. May 22 16:34:50 picasso or glide is common May 22 16:34:54 Glide > Picasso > UIL May 22 16:35:04 thornekey: You kind of have more suggestions than there are people making suggestions May 22 16:35:25 haha May 22 16:35:33 well I am reading about picasso right now May 22 16:35:35 seems simple enough May 22 16:35:37 anyway, if anyone ever suggests using volley, proceed to ignore any further advice from that person May 22 16:35:49 Always wipe from front to back May 22 16:35:52 but I want to read up on everything everyone suggested May 22 16:36:27 An_a_coda here is another data point. a while back RxJava was created. And Eric Meijer, the guy who invented this kind of thing was involved in ReactiveX and tangentially with that library. about a month ago, google created some half assed thing that did something similar - why, we do not know May 22 16:36:47 does that mean rxjava < google library? no May 22 16:36:53 Hmm, Firebase doesn't look all that cheap >( May 22 16:36:56 Glide beats Picasso? May 22 16:37:32 Long time since I looked into image loading.. Picasso looks kind of abandoned May 22 16:37:33 SimonVT, unless something changed in last 4 months or so, Glide was a bit smarter and had a bit better API May 22 16:37:36 Obviously doing it in C with NJI beats all of these things. It's so obvious it didn't even NEED mentioning. May 22 16:37:41 JNI* May 22 16:37:56 An_a_coda, yeah, of course May 22 16:37:58 i thought Glide 4 was almost out ... May 22 16:38:22 Well in terms of memory consumption and speed only, it probably is better. In terms of ease of development, not so much May 22 16:38:35 I suppose none of us really asked what thornekey's priorities were May 22 16:38:43 no, doing it in jni would be worse May 22 16:38:48 just loading a simple damn image ahahah May 22 16:38:48 idiotic suggestion May 22 16:38:57 I'm being facetious you mug May 22 16:39:02 hahaha XD May 22 16:39:12 like you guys said i dont wanna be reinventing the wheel and all May 22 16:39:19 Good plan May 22 16:39:21 but i dont wanna do it a silly way either May 22 16:39:39 Whats wrong w Picasso or Glide libs? May 22 16:39:42 I dont get it May 22 16:39:55 i dunno May 22 16:39:57 Nothing May 22 16:40:14 i tried picasso and it was simple enough and works fine for my project May 22 16:40:20 I guess though thornekey do you even need a third party library? You're almost there as it is, except a few edge cases to work on May 22 16:40:47 True, i guess not, but saves work tbh May 22 16:40:56 The "few edge cases" are why you should use a library May 22 16:41:04 Which I am now May 22 16:41:07 ^_^ May 22 16:41:54 I think we would all make very bad doctors tbh. The dispensary would be ransacked before we'd really found out what your priorities are May 22 16:43:11 Oxycontin for everyone ... May 22 16:46:12 CedricBeust: So in your opinion what should I do for my own questions? (04:39:34) May 22 16:46:25 Can you repeat them? May 22 16:46:57 Sure 1 mo May 22 16:47:00 Hi folks. Kind of torn which design pattern to choose. I've got a service and want to expose some functionality to a third party app on the device. The functionality returns a value. I'm not sure whether to let the 3rd party app bind to the service, use AIDL to let it make direct method calls, or offer data via a content provider. May 22 16:47:03 Key info: The service will likely already be running. I would like to find a way to limit which 3rd party apps can use the functionality. The functionality may block for several seconds before returning a value. May 22 16:47:09 I suppose also the reason I can't choose which design pattern is I'm trying to be mindful to make it as easy for the 3rd party app as possible to use the functionality whilst doing as little work their end May 22 16:47:32 are you sending structured or unstructured data back ? May 22 16:47:34 Huh, "e: java.lang.NoSuchFieldError: TO_STRING" when trying to compile after making some changes May 22 16:47:48 I would probably start by exposing a few intents but if you want really structured data, binding is probably the way togo May 22 16:47:51 g00s: It will probably end up being a string array May 22 16:48:18 I guess fairly structured May 22 16:49:25 if you were sending tables with lots of entries i'd go provider May 22 16:49:27 I think my biggest worry is ANR, and I don't want my blocking net activity to cause the 3rd party app any nightmares or get them to have to implement loads of boilerplate to deal with threads etc May 22 16:49:43 ANR of the calling side is not your concern May 22 16:49:48 ContentProviders are usually the simplest if you just want to expose data May 22 16:49:49 An_a_coda its cross process, you can't ANR that way May 22 16:49:53 (For the users) May 22 16:49:56 As for yourself, just don't do your operations on the main thread and you're fine May 22 16:49:58 binder threads come from a pool May 22 16:49:58 But they're not really realtime. May 22 16:50:24 yeah i wouldn't use a provider for say, like a feed or something May 22 16:50:29 I mean ANR more that I don't want their UI to block but I don't want them to have to do much fancy work to deal with the delay May 22 16:50:34 more batch stuff, lots of entries May 22 16:50:43 They will have to call you on a background thread anyway so don't worry about that May 22 16:50:54 Of course, you should still do your best to respond as fast as possible May 22 16:50:58 I'd like to avoid that tbh May 22 16:51:06 Avoid what? May 22 16:51:13 Them having to deal with threads at all May 22 16:51:23 They will have to May 22 16:53:16 That makes me think I'd rather use AIDL and let them call methods directly and I'll take care of the thread work for them May 22 16:54:07 Again, you can't control how they call you. If they try to call you on the main thread, the system will probably yell at them for doing I/O on the main thread May 22 16:54:29 I'd probably end up writing a looper for them ¬_¬ May 22 16:55:14 My priorities are basically to make it as simple as possible for them to us with the least amount of code writing involved May 22 16:55:31 I don't care what weird contortions I must perform behind the scenes tbh May 22 16:55:43 s/us/use May 22 17:15:07 Ok for some reason whenever i put a webview inside my listview cell view item, I cannot receive the list items clicks May 22 17:15:43 so you put clickable element in row May 22 17:16:12 I want the entire cell to be clickable May 22 17:16:38 make listView focusable false and focusableInTouchMode false May 22 17:16:56 i just put a onclick listener on the layout elements for the listview May 22 17:17:18 What would that do? And why does this only happen with WebView? If I put any other element there it works fine with listView.setOnItemClickListener(...) May 22 17:17:49 even with other clickable element with set ClickListener? May 22 17:17:58 unless you wanted easy multi-mode selection, i'd use recyclerview nowadays May 22 17:18:46 I asked if I should switch to recyclerView a few weeks ago, and someone said if I already have ListView implemented and working, theres really no rush to switch May 22 17:19:28 it wasnt me May 22 17:19:30 with RV click handling is more like plain views in a layout May 22 17:19:55 All I normally do is .setOnItemClickListener and it works May 22 17:20:02 Not sure why its not working with WebView in the cell May 22 17:20:08 oh lol May 22 17:20:11 afair there were some problems if you put clickable/focusable/checkable elements in row May 22 17:20:22 that sounds like recipe for disaster drose379 May 22 17:20:53 Which part? Putting webview in a listview May 22 17:20:56 ? May 22 17:20:59 yeah May 22 17:21:05 Yeah.. not my idea :/ May 22 17:21:20 i almost had to do that in my work May 22 17:21:30 putting webview to element in RV May 22 17:21:30 Did you convince otherwise? May 22 17:21:50 i think webview might actually behave better in RecyclerView, just hunch May 22 17:21:54 fortunately i made backend pull and parse twitter/facebook things into readable format May 22 17:22:53 I see May 22 17:23:07 Maybe if I set focus on the webview to false May 22 17:23:12 The cell will become clickable again May 22 17:24:24 That does work, yeah May 22 17:24:37 oh didnt rememver if it was listview or elements May 22 17:24:57 I guess I see what was happening, the webview was consuming the click instead of the listview item behind it May 22 17:25:38 * kbs is wondering about using webviews just for rendering ... layout that complicated? May 22 17:25:52 youre gonna have bad time May 22 17:25:55 Me? May 22 17:26:01 kbs May 22 17:26:42 drose379: yes, was kinda wondering about the use of webviews in the first place - I'm sure there were good reasons, just curious May 22 17:26:54 huh, string autocomplete still doesn't work in AS 2.1 May 22 17:26:59 in preference.xml files May 22 17:29:21 Like this? http://cl.ly/0K3l3p043H2W May 22 17:29:24 WebViews are annoying May 22 17:33:18 Clicking on the cell works before I load a url in, but after, click does not work.. May 22 17:36:03 works fine May 22 17:36:12 the string autocomplete May 22 17:40:58 Hey guys, so it looks like webview has an onTouchListener, would it be bad practice to have the adapter listen to the webviews touch, then call a method in whatever created the adapter, via an interface? May 22 17:41:14 _listener.webViewClick(); May 22 17:49:39 is it bettter to limit the number of activities and have more menus and other crap instead of an activity May 22 17:49:44 or does it not really matter May 22 17:50:07 huh May 22 17:54:26 SimonVT yeah, i don't get that, so weird May 22 17:54:52 i wonder if there is something special about my preferences.xml file. i'm sure if this was more universal people would be filing bugs May 22 17:55:52 i type @str .. and its just dead. no help at all May 22 17:57:14 you probably gimped it by disabling something to optimize to your old pc May 22 17:57:24 its almost as if AS is treating that as some dumb xml file - not android related May 22 17:57:46 pfn and no, i don't have 'power save mode' on May 22 17:59:14 g00s: what's new in ADT is amazing May 22 17:59:25 assuming this is not gonna be a broken system May 22 18:00:16 oh hey thepoosh ! May 22 18:00:30 :( May 22 18:00:32 :) May 22 18:01:59 pfn i remember one time , by mistake hitting ;mark as plain text' from context menu of a file, happened so quick i didn't even realize it. like i pressed the wrong item. and snd stuff broke May 22 18:02:35 how do figure out how AS handles a particular file in my tree. its treating it as XML, the attributes themselves are autocompleting, just not their content May 22 18:03:53 thepoosh did you like i/o ? i watched most of the vids that interested me May 22 18:04:09 still in the secondday May 22 18:04:12 got to ADT May 22 18:04:16 which is very good May 22 18:04:26 when you say ADT i think eclipse ... so what did you mean ? :P May 22 18:04:49 what's new in Android Development Tools May 22 18:04:53 ah May 22 18:04:58 https://youtu.be/csaXml4xtN8 May 22 18:05:16 'whats beta^H^H^H^Halpha in android development tools' May 22 18:05:41 or, what we're working on that might work by next i/o May 22 18:05:45 :D May 22 18:05:58 :D May 22 18:06:19 20:59 thepoosh: g00s: what's new in ADT is amazing May 22 18:06:19 20:59 thepoosh: assuming this is not gonna be a broken system May 22 18:10:31 some tests here with bluetooth low energy writeCharacteristic and got a very low transfer rate May 22 18:11:36 bitkiller yeah, that can be tough to track down. if on android 5+ you can set parameters on the connection to set bandwidth May 22 18:11:55 g00s: anything worth while in AW? May 22 18:11:59 but it would be weird if reads were quick and writes were slow May 22 18:12:24 thepoosh uh, no. welli'll read this https://medium.com/@gabri.mariotti/the-new-firebase-crash-reporting-fa411c6cf05b#.gli45dpqt May 22 18:13:43 g00s: butch, I've been crash reporting for the past month May 22 18:13:49 *bitch May 22 18:14:02 i hate it when my smacktalk doesn't work because keyboard May 22 18:14:31 already found a fatal crash in my code May 22 18:16:15 thepoosh any pivot at Glide based on Allo / Duo ? May 22 18:16:32 Allo and Duo are not competing with glide May 22 18:16:40 but with whatsapp and facetime May 22 18:16:42 i can't remember how many attempts google has made at instant messaging May 22 18:16:52 ah ok May 22 18:18:07 i'm going to try this TransitionManager trick nick b talked about, to expand items in recyclerview May 22 18:18:13 anyone here use realm.io and like it? May 22 18:18:23 g00s: i found a bug today May 22 18:18:35 in which i call my recyclerview adapter notifydatasetchanged May 22 18:18:41 and nothing happens May 22 18:18:45 lol May 22 18:18:54 sucks balls May 22 18:19:01 thepoosh did you see the yigit talk on RV ? May 22 18:19:02 have you seen or heard anything like this? May 22 18:19:11 nope May 22 18:19:16 yeah i'd watch that May 22 18:19:36 lots of things to avoid, seems once again an API that is easy to misuse May 22 18:19:51 which is basically bad API design May 22 18:34:35 so ... support lib 24-alpha 3; what exactly is alpha about this? there are no release notes. Is the naming just to keep sync with API preview name ? May 22 18:37:19 g00s, i've seen that (ble params). i'll test it now May 22 18:39:27 bitkiller also depends on the device. sometimes, a device will connect and the refresh rate will be high to allow speedy service discovery, and then throttle down by itself for 'stead state' operation May 22 18:40:08 so the API we discuss is also a suggestion for the devices, lots of things can impact May 22 18:48:32 Hi. I have followed the native AD tutorial in admob (https://developers.google.com/mobile-ads-sdk/docs/dfp/android/native) but "onFailedToLoadAd" is called with error code 0. May 22 19:01:45 interesting comments on 'what the fragment' https://www.reddit.com/r/androiddev/comments/4khtld/what_the_fragment_google_io_2016/ May 22 19:03:17 Yes, the usual bullshit without alternatives :P May 22 19:03:34 https://github.com/bluelinelabs/Conductor May 22 19:03:40 alternative in the comments May 22 19:04:22 Mavrik i think adding another onAttached() thing is going to be confusing though May 22 19:05:21 g00s, yep. May 22 19:05:42 since there is already an unfortunate naming (even according to DH) between Fragment.onAttach() and FragmentTransaction.attach() May 22 19:05:47 I'm not saying Fragments are an especially good API ;) May 22 19:05:54 understood :D May 22 19:06:05 This is my activity: (https://gist.github.com/anonymous/e85f9faf46d43b7a296d35e2dd250574), and this is the animator file: (https://gist.github.com/anonymous/73677e95fdf2a30910e140db28705d89). I'm trying to loop the timeProgressBar with the timeAnimator, and every time it finishes I want to update te layout in the nextQuestion method. The looping should stop when generator.isDone() returns true, wich is after about 10 May 22 19:06:05 calls to generator.nextQuestion(). When I run the app the animation only runs twice (as the nextQuestion() method is only called once), does someone know why? May 22 19:06:08 Half of those people in there are just parroting crap heard elsewhere tho :P May 22 19:06:13 Which kinda annoys me :) May 22 19:06:53 Mavrik somehow, jackhexen managed to not get downvoted into oblivion ! May 22 19:06:58 But then again, there's this funny thing about software devs which makes them go around telling people they're wrong ;) May 22 19:07:03 * Mavrik goes to tell people they're wrong. :P May 22 19:07:11 Mavrik you are wrong about that May 22 19:07:16 :D May 22 19:08:20 if there is one thing i agree on, is that the engineers should make things simpler May 22 19:08:42 Yeah May 22 19:09:07 I wonder if Google actually considered getting rid of Activities for a more standard like view controller approach May 22 19:09:26 just adding another lifeycle method between X and Y, because the timing wasn't right for you to do operation A in either, is crap May 22 19:09:38 Mavrik i agree May 22 19:10:01 thats why when DH says, 'we're architecture agnostic' most of us are like uhhhuhhhhhhh ... May 22 19:10:03 Hmm, yeah a bit of pain in Fragments comes from their async nature May 22 19:10:18 I wonder why they did fragment transations in that way May 22 19:10:35 even commitNow() can't be used if you are using backstack May 22 19:11:38 gotta say that in general, I'm fairly ok with fragments May 22 19:12:11 meaning, as smaller parts of UI management May 22 19:12:14 they are ok May 22 19:12:24 and much better than 3K LOC activities May 22 19:12:38 i think in your fragment, if you don't make any assumptions about whats outside of it, you arte generally OK May 22 19:12:48 The bigger issue atm I think is that building tablet UIs is rather hard May 22 19:12:49 like what adam said about 'fishing for fragments' May 22 19:13:23 Would be nice if there would be a bit more effort put into documenting how to build those well and perhaps add any helpers May 22 19:13:32 Mavrik yeah ... not as simple as dividing your UI in 1/2 and putting master / detail in seperate fragments :P May 22 19:13:32 there is an issue with connections to sibling fragments May 22 19:13:38 but it's not that bad May 22 19:13:54 g00s and Mavrik: I rather like what whatsapp are doing on this May 22 19:14:00 and we are doing the same actually May 22 19:14:05 thepoosh what is that ? May 22 19:14:10 Yeah, handling UI modes and communication between fragments is pretty hard May 22 19:14:29 I wonder if anyone attempted a library that would try to transparently handle the cases when you have twopane vs. onepane view May 22 19:14:37 And properly propagate events / parameters / etc. May 22 19:15:02 the other hard thing, is when your master / detail have different actionbar needs ; i always gave to decide whether to put the CoordinatorLayout / AB in the fragment itself, or share it between fragments and configure it depending on what frag is showing, etc May 22 19:15:09 g00s: http://www.techspot.com/fileshost/newspics3/2014/whatsapp-web.jpg May 22 19:15:31 Mavrik commonsguy did have some library like that at one point. May 22 19:15:35 Mavrik: a wonder if using Eventbus or RxAndroid will help May 22 19:15:38 i dunno if he maintains it though May 22 19:15:45 since the notification mechanism is not via the activity May 22 19:15:56 I've used EventBus and it's okish May 22 19:16:08 i use greendao and i feel the same May 22 19:16:12 But the fact that you need to use activity on phones sometimes throws a bit of a wrench in things May 22 19:16:33 how? May 22 19:16:46 thepoosh Mavrik one thing i thought was cool, in google Keep, is that a fragment is actually 2 parts: the content itself, and its decorator. The decorator has chrome like ActionBar, etc, and the content is a child fragment - which usually has like a recyclerview or something May 22 19:17:10 hmm May 22 19:17:18 Do you know how google does the popups in their apps? May 22 19:17:22 just that, i see them using nested tags in XML and its pretty convenient for that ... but still, docs aren't clear if that is OK May 22 19:17:32 Mavrik usually floating activities May 22 19:17:35 The views that are fullscreen on phones and centered material "paper" leaves on tablets? May 22 19:17:38 Transparent activities? May 22 19:17:41 yeah May 22 19:18:01 did you guys see the slowmo N device? May 22 19:18:13 i do that too, on phone show activity full screen, on tablet its a bit like dialog May 22 19:18:27 that's how everyone does quick reply May 22 19:18:31 except facebook May 22 19:18:33 the cheat May 22 19:18:38 *that May 22 19:18:53 thepoosh ok cool, so in that case looks like each fragment has its own ActionBar ... May 22 19:18:59 (looking at the link ^^^) May 22 19:19:07 for us as well May 22 19:19:13 That actually makes sense kinda May 22 19:19:19 each fragment has an actionbar which is set when it starts May 22 19:19:27 as part of onCreateView May 22 19:19:35 or onViewCreated if you like it May 22 19:20:07 by splitting a fragment into decorator and content, you can reuse the content part. if you didn't, it wouldn't be reusable with actionbar May 22 19:20:49 sometimes, i have to decide whether the level of reuse should be the fragment or the adapter often backing it. but damn, i hate adapters that take a shitton of callbacks too May 22 19:21:49 thepoosh so your actionbar is in the fragment's xml then right ? May 22 19:21:55 yep May 22 19:22:31 some of the Keep fragments are literally : May 22 19:23:00 if you safely embed child fragments using the XML tag like that, it can be pretty nifty ... May 22 19:23:14 just not sure if Keep guys know what they are doing, or what :) May 22 19:45:08 as someone who can't use x86 avd because they're on an amd system, is avd as good as genymotion now? May 22 19:47:40 not sure how good genymotion runs on amd but avd will suck May 22 19:54:16 g00s: http://youtu.be/dxbL37IFVRo May 22 19:59:56 nick talked about TransitionManager in his talk, i have to take a closer look at that May 22 20:00:07 its API 19+ though May 22 20:00:36 no support? May 22 20:03:27 Ashiren no May 22 20:05:01 g00s, I've seen a backport somewhere May 22 20:05:11 Even though that looks like an API that might not be easy to backport May 22 20:17:42 i want to talke about how send messages via whatsapp but by adding the message to sqlite , is it ok to talke about that here ? May 22 20:19:03 well , there is no NO word.. assume it is Ok ? May 22 20:24:02 well you can talk May 22 20:27:26 beshoo: everyone here is a bot May 22 20:27:40 lol May 22 20:28:06 lol May 22 20:28:23 1o1 May 22 20:28:25 ok , i want to send a whatsapp message but without open the app , but by sending the message to database sqlite May 22 20:29:06 the porblem , ther is a id_key which is some thing like enc key ! May 22 20:30:04 any one try to send message via insert to whatsapp sqlite May 22 21:00:45 all i need is a persistent cookiestore May 22 21:00:58 all you need is love May 22 21:01:01 but its not so easy so it seems, online examples are not respecting the expiry date May 22 21:01:32 okhttp which is said to have that option or something like that is way too heavy for such a "small" but so necessary feature May 22 21:01:49 Ashiren: what is love? May 22 21:02:18 .... May 22 21:02:56 baby don't hurt me May 22 21:03:15 ashiren: are you from persia? May 22 21:03:40 no May 22 21:06:41 anyhow May 22 21:06:52 anyone has a direction for a working example code for persisting the cookies? May 22 21:07:47 did somebody say cookies ? May 22 21:09:26 Yes May 22 21:09:28 They did May 22 21:09:39 Nick-S_ did May 22 21:09:51 i did May 22 21:10:07 CCOOKKIIEESS.. May 22 21:10:07 gotta save(persist) those cookies May 22 21:10:21 spudowiar where !?!?! May 22 21:10:39 g00s: in my finge- mouth May 22 21:14:19 in MVP architecture, how do you handle user input? May 22 21:14:37 so you guys aren't really going to help me with the cookies, right? May 22 21:16:32 How can I tell the WifiManager to reconnect to wherever the user would usually connect? May 22 21:16:50 RustyShackleford: the view tells the presenter about it May 22 21:17:52 presenter handle saving your data/querying/whatever then updates the view May 22 21:17:54 okay May 22 21:20:08 architecting an android app is hard May 22 21:20:26 ok i'll go to sleep then, goodnight May 22 21:20:28 the other thing I struggle with is callbacks between Fragments and Activities May 22 21:20:58 like if you wanted to pass a message from a Fragment to it's parent Activity May 22 21:22:06 I wish https://design.google.com/icons/ allowed picking more colors May 22 21:30:24 anyone know what usb_device_control_transfer does? May 22 21:30:34 https://github.com/android/platform_frameworks_base/blob/master/core/jni/android_hardware_UsbDeviceConnection.cpp May 22 21:33:11 looks like an wrapper for accessing the usbhost library through JNI May 22 21:37:24 tricknology it executes a control transfer by issueing a USBDEVFS_CONTROL ioctl May 22 21:37:38 see http://www.beyondlogic.org/usbnutshell/usb4.shtml for what a control transfer is May 22 21:37:47 saweeet thanks May 22 21:39:22 tricknology I know this because I googled your question. May 22 21:39:35 oh my goodness. May 22 21:39:52 I was looking just for “usb_device_control_transfer android" May 22 21:40:09 got a bunch of source that used it but not the source of that function May 22 21:40:54 http://androidxref.com/6.0.1_r10/xref/system/core/libusbhost/usbhost.c#574 May 22 21:41:15 Didn't notice it was the famous Chainfire May 22 21:41:16 that is a good site to find things on May 22 21:41:24 especially things like this May 22 21:44:20 Wonder how my NTLM library works nowadays May 22 21:44:51 Hmm... it's shocking to think I was 11 when I wrote that beautiful code May 22 21:45:01 * spudowiar scoffs w4ffles_ May 22 21:45:11 :) May 22 21:45:15 * spudowiar scoffs w4ffles May 22 21:45:27 I scoffed the wrong w4ffles :/ May 22 21:45:33 But I got there in the end May 22 21:46:15 It's odd when you see famous hackers speak in these rooms May 22 21:46:58 Chainfire were you serious the other day about moving to iOS May 22 21:48:21 bought some land there already May 22 21:48:55 Chainfire what kind of things grow well there ? May 22 21:49:23 corn, wheat, etc .. May 22 21:49:23 polished turds May 22 21:49:26 lol May 22 21:49:33 turd blossoms ! May 22 21:50:11 well actually what I meant was, I am considering doing something else as primary than Android dev. Not necessarily iOS dev. May 22 21:50:39 mobile is getting , well not as exciting May 22 21:50:47 exactly May 22 21:50:54 I have some fingers in some VR stuff May 22 21:51:18 but I'm not sure I care about that much either. But its hip. May 22 21:51:26 Maybe take some time and brush up on AI May 22 21:51:29 Chainfire: how old are you? May 22 21:51:33 I'm just curious May 22 21:51:43 35 May 22 21:51:49 Ok May 22 21:52:15 Helps me talk to people better when I know their age May 22 21:52:28 spudowiar don't worry , Chainfire managed to do awesome stuff after 30 - you can too ! :D May 22 21:52:30 Or rough age at least May 22 21:52:41 g00s: 😭 May 22 21:52:42 35 is not that rough an age May 22 21:52:52 Chainfire: I'm not saying it is May 22 21:53:07 Chainfire: I'm saying if you see someone IRL you can guess a rough age May 22 21:53:17 I know what you meant May 22 21:53:18 He rebooted into Linux... May 22 21:53:26 Oh May 22 21:53:52 g00s the question is, can I do awesome stuff after 35 ;) May 22 21:54:06 I want to be truly awesome one day May 22 21:54:19 I cracked a bootloader and it was anticlimactic May 22 21:54:39 that's because accomplishment means nothing May 22 21:54:51 How does one feel good then? May 22 21:54:54 (other than to your potential employer) May 22 21:54:58 Other than stuff like luv May 22 21:55:03 spudowiar life is like tetris, accomplishments get washed away, only the mistakes remain May 22 21:55:16 it's getting there that makes you feel good May 22 21:55:23 g00s: is that why you still remain??? :P May 22 21:55:32 spudowiar lol yeah May 22 21:55:58 Chainfire: it took an hour to get there from sitting down with code to a full exploit, so it was like.. oh - I cracked it :/ May 22 21:56:02 unless you actually enjoy the process of cracking a bootloader, I wouldn't take up bootloader cracking ;) May 22 21:56:11 That's my unsigned code.. oh May 22 21:56:59 and you expected fulfillment from getting lucky after an hour of fiddling? May 22 21:57:08 what were you going to do with the rest of your 80 years? May 22 21:57:53 No, I just expected to feel something really May 22 21:58:00 I dunno what to do with my life May 22 21:58:20 I've just realised... I've never run an application of yours, Chainfire May 22 21:58:24 spudowiar well, in 20 years we're all probably going to be in max mad movie May 22 21:58:31 Ok May 22 21:58:32 you can think about it then May 22 21:58:38 *mad max May 22 21:58:40 * spudowiar sets alarm clock for 20 years time May 22 21:58:55 g00s: don't worry, I read it as *d*x May 22 21:59:32 I wish I could feel... happy May 22 21:59:35 or some cross between mad max / elysium haha May 22 21:59:47 elon musk will have a space station out there if you can make it :) May 22 21:59:55 get some therapy then May 22 22:00:08 :/ May 22 22:00:59 Wait... there are two OPs in here :O May 22 22:01:02 I didn't notice May 22 22:01:23 3 but 1 is hiding May 22 22:01:40 See, in rooms like this I prefer then to OP up May 22 22:01:46 Cos it's company backed May 22 22:02:02 And I like to know who works there from here May 22 22:02:09 I haven't seen an @ do anything here in years May 22 22:02:29 Chainfire: kroot speaks and bans May 22 22:02:48 Wait, maybe that's just #android May 22 22:02:51 I dunno May 22 22:04:32 I wonder what my life will be like in 10 years tkme May 22 22:04:35 *time May 22 22:04:52 https://github.com/remind101/android-arch-sample May 22 22:04:54 Will I be married? What job will I have? Will I have kids? May 22 22:05:02 found this very nice example of MVP architecture May 22 22:05:13 I should go to #android-offtopic, actually May 22 22:05:37 RustyShackleford: nice May 22 22:06:17 its difficult to architect everything so it's nice and neat May 22 22:06:30 going to give this a try May 22 22:06:37 RustyShackleford singletons solve everything on android ... :P May 22 22:07:04 so i dub it "MVS' for Model View Singleton May 22 22:07:32 or SVC Singleton View Controller :D May 22 22:08:30 lol you're onto something May 22 22:08:40 Wow, Chainfire has exactly zero I have or would use :/ May 22 22:08:46 *zero apps May 22 22:19:54 hello, im having an issue May 22 22:20:21 i downloaded the google play services from the sdk manager, but when i look at the directory there is only a docs and sample folder May 22 22:22:29 the library folder doesnt exist May 22 22:39:08 https://i.imgur.com/J2W2la0.png May 22 22:39:15 i have google play services download, but there's no library folder May 22 22:39:36 why does this happen? “Returns: May 22 22:39:36 length of data transferred (or zero) for success, or negative value for failure" May 22 22:39:51 the “or Zero” part bugs me.. is that because some device may not return anything? May 22 22:40:17 derp.. no, that’s not 2 way May 22 22:41:27 can someone just give me their play services lib folder? May 22 22:42:18 ive redownloaded it like 5 times and it only downloads the docs and sample May 22 22:56:14 use the aar May 22 22:56:50 aar? May 22 23:05:15 I have ~10 private libraries I personally use. Right now, I just add the library project in build.gradle. Has anyone used artifactory (or something similar)? I'm looking for ways to better manage my private libs. May 22 23:06:15 dos any on worked on seding whataspp message via insert to sqlite ? May 22 23:20:55 dos any on worked on seding whataspp message via insert to whatsapp sqlite db in order to schedule message sending?? May 22 23:22:42 CedricBeust: im still not very familiar with IRC, is there a reason this channel does not have any useful bots? May 22 23:22:50 are they not allowed or something May 22 23:23:10 ive been getting into nodejs and alot of tuts are building irc bots, so thats why I ask May 22 23:37:31 orbyt_: I'm not against it, it would be useful to have javabot here and add Android factoids to it May 22 23:39:21 anyone who use drozer? May 22 23:40:13 CedricBeust: Oh cool, ill look into making something May 22 23:59:50 CedricBeust wondering what your opinion is on this ... my fragments do the usual in onAttach() cast content to listener; but this makes the parent fragment or parent activity quite a mess of all these listeners. Do you do anything different ? May 23 00:00:05 s/content/context May 23 00:01:42 g00s: pastebin some code? May 23 00:02:27 CedricBeust i've always done it the way the Fragment guide says to do it ... i think most of us do tthe same thing. May 23 00:02:40 cast the activity to a listener class, etc ... May 23 00:03:10 just wondering if you found a better way, maybe using dagger, or whatever. May 23 00:03:39 Why would you do this cast? Have your fragment take a listener in parameter, not an activity May 23 00:04:22 CedricBeust this https://developer.android.com/guide/components/fragments.html#EventCallbacks May 23 00:04:54 ah May 23 00:05:11 Yes not much choice there May 23 00:05:42 ah , ok. just wondered if the cool cats figured something shnazzy out May 23 00:06:06 Would be nice if you could parameterize fragments with activities, Fragment May 23 00:06:19 or even something much more narrow than Activity May 23 00:18:47 oh man, nick menza died on stage May 23 00:22:32 who is that? May 23 00:22:48 old megadeth drummer May 23 00:28:22 CedricBeust i think it would have been cool, if there was not 2 different abstractions for activity /fragment .. just one, which could be the int main() of the outside world and have the nestable / ruesable characteristics of fragments May 23 00:28:46 Unfortunately when we designed activities, tables were still six years out May 23 00:28:50 tablets* May 23 00:30:50 CedricBeust have you used the new ConstraintLayout yet ? May 23 00:31:26 No May 23 00:54:33 considering it was only just revealed on Wednesday May 23 00:54:53 and in canary, no less May 23 01:09:20 http://arstechnica.com/information-technology/2016/05/onecore-to-rule-them-all-how-windows-everywhere-finally-happened/ May 23 01:09:31 "Apple and Google will probably do something similar with their various operating systems, but Microsoft has managed it first." May 23 01:17:32 Sqlite with android requires so much boilerplate May 23 01:17:36 Is there a lib for it? May 23 01:19:47 drose379, Realm is very nice so far May 23 01:21:06 Hm, looks cool May 23 01:21:09 Thanks RustyShackleford May 23 01:21:46 and definitely less work than sqlite May 23 01:22:06 Hows it work under the hood? May 23 01:22:08 SQLite? May 23 01:24:24 Looks awesome really May 23 01:25:24 no idea May 23 01:25:27 not sqlite May 23 01:25:39 i dunno I just started using it myself May 23 01:26:44 And of course there's Firebase, although you trade a few things for a few others May 23 01:27:02 Im just talking about local storage CedricBeust May 23 01:27:28 Yes, FB can also be used as local storage, except that it's remote on top of it. But you lose a few things in the process May 23 01:27:49 sqlite is safest bet; there was, is, and always will be sqlite :D May 23 01:27:55 I would also like play around with firebase May 23 01:28:01 I found it sorta tricky to use May 23 01:28:02 Ever seen Realm g00s ? May 23 01:28:16 I wouldnt say tricky, just tons of boilerplate May 23 01:28:20 Blegh May 23 01:28:20 seen yet , yes - looked at it, no May 23 01:28:41 I'll let you know how it works out May 23 01:28:50 what happens if realm does a robovm ? :D May 23 01:29:01 Firebase seemed awesome at first until I worked with it for a while and struggled May 23 01:29:11 Isnt robovm the company that does java for ios and android? May 23 01:29:19 *was* May 23 01:29:32 Gone now? May 23 01:30:15 I was looking into them when I almoast had to write an iOS app, think I was better off doing some swift May 23 01:30:23 acquired, then hung out to dry May 23 01:30:43 Acquirede for how much? May 23 01:31:29 first by xamarin, then MS gobbled xamarin May 23 01:32:01 Whats the deal with xamarin? May 23 01:32:10 Heard the word a few times, not quite sure what its about May 23 01:32:24 you can google it drose379 :D May 23 01:32:43 Yeah, true May 23 01:33:16 Ah C# May 23 01:34:23 aww poor robovm :( May 23 01:45:29 hi all May 23 01:45:54 anyone about that cam help me with json ? May 23 01:53:45 Probably May 23 02:00:15 is there anything like ?attr/homeAsUpIndicator but instead of <- , an X ? May 23 02:22:36 how much do you use fragments? May 23 02:23:01 you could make an app entirely with fragments and one main activity May 23 02:23:09 or several activities and no fragments May 23 02:32:51 RustyShackleford thats a big question, like 'is there free will' May 23 02:33:13 what is the meaning of life? May 23 02:33:22 well thats just 42 May 23 02:33:39 anyway, I understand everyone probably does it differently May 23 02:33:58 RustyShackleford did you see the 'what the fragment' talk? May 23 02:34:17 actually he doesn't talk much about that Q specifically , but May 23 02:34:20 wouldn't it be easier to use all fragments if you have a nav drawer, toolbar, etc? May 23 02:34:40 yeah, its easier to use fragments with nav drawer (i think) May 23 02:35:10 b May 23 02:35:21 no I haven't seen that talk, but if its about activities vs fragments I'll check it out May 23 02:35:55 i could save you the trouble: he says fragments are mini activities :D May 23 02:40:17 somehow, i'm not excited about multi-window at all May 23 02:41:07 because you only have a Nexus 7 May 23 02:41:18 I don't see the appeal of that either May 23 02:41:34 there's things thing calls windows that does multi windows way better May 23 02:45:38 RustyShackleford they have to stop trying to make android more than a phone OS May 23 02:46:36 maybe its in response to the idea that android is not good on tablets, I can see perhaps using them on my tablet actually. May 23 02:47:13 has anyone implemented play services? May 23 02:47:27 Atai you could be the first one ! May 23 02:47:30 im having trouble doing it May 23 02:47:40 google play services May 23 02:48:37 I use a tablet because I want a bigger screen, not multiple apps on one screen May 23 02:49:20 although to be fair, I do use *two* tablets at times to run multiple apps at once :) May 23 02:49:41 google changed the play services and now nothing works May 23 02:50:09 i wonder how far off we are, when we experience all our device UI through AR goggles. maybe 5 years ? May 23 02:50:32 then screens could go away completely, laptop, phone, ipads ... May 23 02:50:43 there are serious things standing in the way of that May 23 02:50:53 the age of the rectangle, and the UIs for rectangles, will come to an end May 23 02:51:24 Leeds well the $3000 pricetag for hololens is one for sure haha May 23 02:51:28 we've been using rectangles for many thousands of years May 23 02:51:55 and they are orbiting around europa too ... May 23 02:52:42 anyway, I must away to office May 23 02:52:57 Leeds get your boss on trello ! May 23 02:53:14 I think we might get him on Jira May 23 02:53:19 maybe May 23 02:53:29 good luck ;) May 23 02:53:50 would be better than nothing... **** ENDING LOGGING AT Mon May 23 02:59:58 2016