**** BEGIN LOGGING AT Tue Feb 23 02:59:58 2016 Feb 23 03:00:13 you can do task.cancel(true) and in the doInBackground if the cancel happened you let it fall through so it finishes Feb 23 03:01:00 these tasks https://developer.android.com/guide/components/tasks-and-back-stack.html Feb 23 03:02:30 "A task is a collection of activities that users interact with when performing a certain job. The activities are arranged in a stack (the back stack), in the order in which each activity is opened." Feb 23 03:03:24 so if you question is how to finish a task, you end your app Feb 23 03:03:56 you can have more than one task in an application Feb 23 03:04:24 you can have mutiple activities on the stack of the task Feb 23 03:11:41 Hello guys Feb 23 03:11:59 Any idea how can I allow secondary user on 5.0.1 to install apk from unknown sources? Feb 23 03:12:19 I know that is possible through adb, but with F-Droid as market it's pain Feb 23 03:15:31 and you can have multiple tasks Feb 23 03:15:37 I want to end the task on top Feb 23 03:21:20 Imported the Toast framework in Android studio, but it's telling me the makeText() method cannot be resolved? Feb 23 03:21:24 Anyone know what is going on? Feb 23 03:22:26 import the toast framework ? Feb 23 03:22:28 O.o Feb 23 03:22:56 I did lol Feb 23 03:23:00 Dunno what's going on Feb 23 03:25:07 Toast framework? Feb 23 03:25:29 import android.widget.Toast; Feb 23 03:25:50 Toast Feb 23 03:26:33 Toast.makeText().show(); Feb 23 03:28:05 The error message says "Cannot resolve symbol 'makeText' " Feb 23 03:28:30 I have it set up exactly the same way (AFIAK) in a different project, and it works fine Feb 23 03:29:21 what args are you passing Feb 23 03:29:33 or pastebin some code Feb 23 03:30:02 Toast.makeText(getApplicationContext(), "A random number has been generated!", Toast.LENGTH_LONG).show(); Feb 23 03:31:09 I can paste all the code if that would be helpful Feb 23 03:31:10 are you doing this in an activity? Feb 23 03:31:16 Yeah Feb 23 03:31:34 in an inner class or in scope of 'this' of your activity class? Feb 23 03:31:49 try Toast.makeText(this,....).show; if in scope of your activity Feb 23 03:32:11 or makeText(ActivityName.this,....).show(); Feb 23 03:34:02 I tried the first just now, and it's not happy with it Feb 23 03:34:14 What's confusing is in the other project, I can type Toast.makeText() Feb 23 03:34:14 are you in an innerclass? Feb 23 03:34:21 And it will recognize the method Feb 23 03:34:23 pastebin your code Feb 23 03:34:26 Ok Feb 23 03:34:40 try the ActivityName.this first then pastebin Feb 23 03:34:51 where ActivityName is the classname of your activity Feb 23 03:35:25 Ok Feb 23 03:37:15 http://pastebin.com/uhmDNZgP Feb 23 03:37:35 yeah that code is wrong Feb 23 03:37:56 put all that stuff in onCreate Feb 23 03:38:22 even then you'll have to add logic for the edittext Feb 23 03:42:08 Does the code need to be contained within a function? Feb 23 04:25:24 what are some of the highly recommended android develment books? that you guys have personally used? Feb 23 04:50:01 these libraries that use annotations heavily are like magic Feb 23 04:50:08 how the heck does this work? Feb 23 04:50:58 it's not magic Feb 23 04:51:02 it just generates code Feb 23 04:51:56 http://docs.oracle.com/javase/1.5.0/docs/guide/apt/GettingStarted.html Feb 23 04:53:33 yeah I noticed there was generated code in the build directory Feb 23 05:00:41 still banned Feb 23 05:00:46 fuck Feb 23 05:00:50 https://www.facebook.com/search/top/?q=jeff%20dennison%20posts Feb 23 05:00:55 opps Feb 23 05:05:19 :) Feb 23 05:07:07 gordon hey how are ya Feb 23 05:07:10 ? Feb 23 05:07:21 anything new Feb 23 05:07:29 no Feb 23 05:08:06 cyanogen mod , have you ever tried making one with kitchen? Feb 23 05:08:40 they built a tether for it which is cool for me! Feb 23 05:09:18 service tethering im trying to figure out how they are transporting traffic though Feb 23 05:09:56 i just wann know how att figures my shit out everytime i tether ! Feb 23 05:57:03 why facebook sdk suck so much Feb 23 05:57:08 *sucks Feb 23 06:09:04 gordon_: Why do you care about facebook in the first place? All of it sucks. Feb 23 06:09:25 facebook login.. Feb 23 06:20:00 Facebook and Google login are in a constant competition to see which one can suck more Feb 23 06:22:55 i was reading about those Fb drones that move to where people are lol Feb 23 06:24:11 I'm looking at dagger examples Feb 23 06:24:25 what is Component exactly? Feb 23 06:25:16 these examples sorta make sense. They also leave my head spinning Feb 23 06:25:33 i'm not getting the metaphor here Feb 23 06:46:23 RustyShackleford: not only yours ; Feb 23 06:46:25 ) Feb 23 06:46:27 ;) Feb 23 06:46:38 component is what will be generated by dagger Feb 23 06:47:26 lut4rp: dont know about google one, but facebook.. dman Feb 23 06:47:28 *damn Feb 23 06:47:51 always, when someone tell me to do something with facebook library Feb 23 06:47:53 it sucks Feb 23 06:48:00 gordon_: its too late for this Feb 23 06:48:09 i'll try again tomorrow hah Feb 23 06:48:35 dagger has some boilerplate Feb 23 06:49:15 but I'm still not getting the jobs of Module/Component Feb 23 06:49:38 and there are some empty interfaces that do something, apparantly Feb 23 06:49:46 no Feb 23 06:49:49 notthing is empty Feb 23 06:49:54 *nothing Feb 23 06:50:08 @Scope Feb 23 06:50:08 @Retention(RetentionPolicy.RUNTIME) Feb 23 06:50:08 public @interface PerActivity { Feb 23 06:50:11 } Feb 23 06:50:14 magic Feb 23 06:50:47 Component exposes what you want to 'give/produce' and Modules are places where you're creating those things Feb 23 06:51:06 and that what you pasted, is not Component or Module Feb 23 06:51:14 it's lifecycle scope Feb 23 06:51:21 component is where you expose your API then, sorta? Feb 23 06:51:30 so you module will be created per Activity Feb 23 06:51:47 if you annotate it with the @PerActivity Feb 23 06:52:15 RustyShackleford: yes, you can call it that. and it's the place when you specify class you want to inject into Feb 23 06:52:31 so there will be method void inject(MainActivity activiy); Feb 23 06:52:41 also Feb 23 06:53:14 you will probably end up with PerApp and PerActivity scopes Feb 23 06:53:41 right. I'm studying android-boilerplate right now Feb 23 06:54:13 is there a dev summit video on dagger? Feb 23 06:54:20 hmm Feb 23 06:54:25 there is some on youtube Feb 23 06:54:37 *there are Feb 23 06:55:17 https://www.youtube.com/watch?v=cA4iEmWuSB8 Feb 23 06:55:19 maybe this Feb 23 06:55:25 like its sorta obvious that something called @PerActivity would correspond to each activity Feb 23 06:55:38 I can't figure out how it all links together though Feb 23 06:56:03 oh awesome thanks Feb 23 06:56:09 it's not that hard Feb 23 06:56:23 you can ask me if you have some problem Feb 23 06:56:33 I'm here most of the time :P Feb 23 06:56:58 well I'm in Chicago CST Feb 23 06:57:09 I think I see you when I'm already sleepy lol Feb 23 06:57:21 biggest problem with dagger is that you have to write those components and modules.. Feb 23 06:57:43 and that boilerplate sucks my soul into the void Feb 23 06:58:06 is it that much easier than using dependency injection manually? Feb 23 06:58:20 no Feb 23 06:58:22 :D Feb 23 06:58:25 lol Jake Warton say yes earlier Feb 23 06:58:31 but of course he would say that Feb 23 06:58:46 well, for simple thing - it might be easier Feb 23 06:58:53 but dagger will pays off later Feb 23 07:00:24 I'm working on a project with dagger2 and it is still making my head spin. Still trying to wrap my head around it. Feb 23 07:01:02 okay its not just me hah Feb 23 07:01:08 seems useful if you can figure it out Feb 23 07:01:31 It is pretty useful because I can see how well separated and modularized this code base is Feb 23 07:01:44 thats mainly why I want to try it Feb 23 07:01:57 I saw android-boilerplate and its beautiful Feb 23 07:02:12 it also hits the dex limit while also doing nothing at all Feb 23 07:02:14 what's android-boilerplate ;P Feb 23 07:02:35 https://github.com/ribot/android-boilerplate Feb 23 07:02:58 its like a template for building an app using MVP Feb 23 07:03:04 looks nice Feb 23 07:03:17 dont know why they need otto when they're using rxjava Feb 23 07:03:50 I was wondering that too. I don't think its used Feb 23 07:03:59 Android studio tells me its not Feb 23 07:04:54 it looks like it would be used in the Event Bus part of that flow diagram Feb 23 07:05:45 RustyShackleford sounds like you're piling on the lard https://sandofsky.com/blog/third-party-libraries.html Feb 23 07:06:10 see 2nd point "Don’t stress out over boilerplate." Feb 23 07:08:54 I'm definitely going to strip some things out Feb 23 07:08:59 master one thing before adding another Feb 23 07:09:05 there is way too much magic going on Feb 23 07:09:11 g00s: well, it's more about reftoring everything to one class Feb 23 07:09:18 that usign 3rd party tools Feb 23 07:09:38 it's not magic Feb 23 07:09:48 or you havent used ruby on rails Feb 23 07:09:51 :D Feb 23 07:09:58 i've done a bit of that Feb 23 07:10:08 did pretty well for not actually knowing ruby Feb 23 07:10:26 and active record is not magic ? Feb 23 07:10:29 like i'd have to look up the hello world Feb 23 07:10:30 with dynamic methods ? :D Feb 23 07:37:58 ugh, plain dialogs don't support positive/negative buttons? wtf is the point of putting the constants in the dialoginterface if the only one that uses them is alertdialog... Feb 23 07:40:01 and of course, alertdialog eats shit if you don't setview before creating Feb 23 07:40:11 at least if using alertdialog.builder Feb 23 07:44:19 I think there's ok, cancel dialog Feb 23 07:44:46 damn Feb 23 07:44:53 too much state in app Feb 23 08:01:47 asked this awhile ago but didnt get an answer: When packaging by feature, do you still keep things like your Retrofit interfaces in a seperate "api" package? Or do you put the relevant api parts for that feature along with the rest of the features files? Feb 23 08:02:30 depends on you ? Feb 23 08:02:53 eh Feb 23 08:02:59 state is the source of evil Feb 23 08:28:44 Hi Feb 23 08:28:55 Any good open data for movie db around ? Feb 23 08:29:35 Rotten tomatoes dosen't access to apis upon registration any more Feb 23 08:40:12 doesnt imdb have an api? Feb 23 08:41:53 maybe not Feb 23 08:45:52 crawl :D Feb 23 08:46:21 why theres tons of movie db's Feb 23 08:46:55 i guess so Feb 23 08:56:57 imdb has an api im pretty sure Feb 23 08:57:08 either that or every movie themed website has a crawler Feb 23 09:32:09 jvrodrigues, you need to make some sort of agreement with imdb before you're allowed to use it though Feb 23 09:42:46 well why doesnt he make an agreement with them then? Feb 23 09:52:56 they are usually very laid back about it Feb 23 09:53:04 though it sometimes means you need to bullshit a bit Feb 23 09:57:37 hi, I'm trying to create a file observer for watching file creations on external storage. I couldn't find any documentation as to what permissions do I need for that though Feb 23 09:57:58 (obviously, It's not working at all atm) Feb 23 10:11:30 In a entities list->entity detail structure, how do you transmit back the changes made in the detail view to the list view. Do I send back the detail object back and replace the list view item? For eg: Open a post on reddit, upvote it in the detail view, go back to list view and post should be upvoted. Feb 23 10:15:49 well Feb 23 10:15:54 if its the same instance of the object Feb 23 10:16:02 you dont need to do much Feb 23 10:19:39 Its not the same instance. I convert to json and send to DetailActivity Feb 23 10:27:58 Hey Hey Feb 23 10:28:57 Anyone free that could help me with a small problem building a basic app ? Feb 23 10:30:10 ask your question(s) and wait patiently for an answer :) Feb 23 10:30:13 someone might pick it up Feb 23 10:30:16 not exactly free, but shoot Feb 23 10:30:45 WantToCode: then use the object instance in the listview Feb 23 10:31:54 well i didnt get that much of help on stackoverflow, still trying to keep up with them ... Feb 23 10:32:02 http://stackoverflow.com/questions/35548924/csv-to-listview-issue?noredirect=1#comment58830545_35548924 Feb 23 10:32:15 well basically i am having problem with a ListView Feb 23 10:32:34 trying to feed the ListView from a .CSV file but no response from the app Feb 23 10:33:17 not sure exactly what is wrong, since no error coming up Feb 23 10:35:46 how big is the csv file? Feb 23 10:36:30 254 bytes Feb 23 10:36:57 it consist of few entries which are mentioned in the post ... Feb 23 10:37:16 not sure if the construction of the entries not matching the conditoin in the loop or ... ? Feb 23 10:38:30 put a breakpoint in the loadarrayfromfile and make sure it's raed properly Feb 23 10:39:15 hmmm, what do you mean exactly by a breakpoint ? Feb 23 10:40:55 do you know how to use the debugger in your IDE? :) Feb 23 10:41:44 or add logs Feb 23 10:41:51 to see if the loop is infinite Feb 23 10:42:02 which shouldnt be Feb 23 10:42:05 you should learn how to use the debugger though Feb 23 10:42:18 at least basic breakpoints and stepping through code Feb 23 10:42:26 yeah just remembered how to do that .... Feb 23 10:42:57 well, ill check the debuger , but lost you there for a min. what did you mean by a proper breakpoint at the loadfromfile ? Feb 23 10:44:15 I mean that you should step through the code in loadarrayfromfile starting from a breakpoint and make sure that it works as intended Feb 23 10:44:21 I cant see where you are calling loadArrayFromFile Feb 23 10:44:41 jvrodrigues, csvadapter ctor Feb 23 10:46:02 found ity Feb 23 10:47:12 your asking me if i found it ? found what .. am still waiting for the debugger Feb 23 10:48:46 the getView is all sorts of fucked up though Feb 23 10:48:49 Hey guys, I bring up the keyboard for input inside a dialogfragment Feb 23 10:49:04 how can I make it so that the keyboard appearing doesn't change the size of the dialog? Feb 23 10:50:08 is it ? Feb 23 10:50:44 nothing on the debugger, i choose debugger and specified the the method loadArrayFromFile Feb 23 10:50:48 no out come ... Feb 23 10:51:06 i guess i did not call the method to be excuted ? Feb 23 10:53:47 you're probably failing at using the debugger correctly, the method is called when the activity is created Feb 23 10:54:36 probably ... Feb 23 10:56:44 add logs Feb 23 10:57:21 https://www.youtube.com/watch?v=Vo5PXWnKtQ4 Feb 23 10:58:19 lol watching it already Feb 23 10:59:02 hithere Feb 23 11:05:03 well at the debugger screen i get this : eglSurfaceAttrib not implemented Feb 23 11:05:30 02-23 06:04:24.952 7610-7610/net.testerapp.loger W/EGL_emulation: eglSurfaceAttrib not implemented Feb 23 11:05:36 don't worry about those Feb 23 11:05:40 not related Feb 23 11:07:35 Hey my Emulator seems to be corrupt.. it does not start up anymore . Is this a common problem? Feb 23 11:07:40 http://postimg.org/image/8faqbxn0f/ Feb 23 11:08:41 hi, I'll try again. What permissions do I need for FileObserver to observe external storage? It doesn't seem to work at all for me. Feb 23 11:09:21 probably just READ_EXTERNAL_STORAGE Feb 23 11:09:38 that's what I'm using in xmms2 anyway Feb 23 11:09:46 Hey guys.. I was wondering if it is possible to combine custom suggested search with recent search Feb 23 11:09:52 in searchbar Feb 23 11:10:00 well it does. This is what I have and I never reach onEvent: http://pastebin.com/8wsiPzfh Feb 23 11:10:04 use a cursor adapter Feb 23 11:10:12 save past searches in prefs (JSON) or list Feb 23 11:10:18 hi Feb 23 11:10:25 append cursor adapter to whatever else you get your results from Feb 23 11:10:45 yots, what are you doing to try to trigger it? Feb 23 11:11:10 I tried to manually create some files in the root directory of the external storage (/emulated/0) Feb 23 11:11:57 tx, that what I thought of at first, but since I'm still new to android dev I thought there are a more obvious way Feb 23 11:12:02 Thanks Feb 23 11:12:18 yots, are you sure that's the same directory Feb 23 11:12:46 Zharf: pretty sure, I watched what the method call returned Feb 23 11:13:32 I'm creating the file using adb shell and 'touch', is there a better way? Feb 23 11:15:00 I'm not sure if inotify triggers on just touching files Feb 23 11:15:30 It was a new file though, so CREATE should have been I guess Feb 23 11:16:11 I was more suspicious of me creating it as a root (emulator shell) Feb 23 11:16:45 I'm new to Android but not Linux, so excuse my ignorance Feb 23 11:20:45 on my device the directory doesn't seem to exist Feb 23 11:20:56 that was meant to be /storage/emulated/0 Feb 23 11:21:17 yes, I ran your code and checked what it gave me Feb 23 11:21:23 the directory doesn't actually exist Feb 23 11:22:20 though it's device specific but it's still curious that it would returns a directory that doesn't exist Feb 23 11:24:25 yots, possibly relevant: https://code.google.com/p/android/issues/detail?id=189231 Feb 23 11:24:44 hmm Feb 23 11:27:10 anyone have an android podcast and/or blog that's good? Been listening to android developer backstage and been loving it. Feb 23 11:27:37 Ping_2_Ur_Pong, Fragmented and Context Feb 23 11:28:04 Ping_2_Ur_Pong, Fragmented Feb 23 11:29:42 danijoo, interesting (though I doubt not actually related if running it on my device is any indication)... I copied fileobserver code from android and modified it in my project because it was lacking features that inotify provides... I wonder if that bug is in my code too, I should test it Feb 23 11:30:53 * Ping_2_Ur_Pong bows Feb 23 11:31:15 I have a webview acting very different than chrome browser itself, specifically with tracking finger movement. In the browser, this works fine and I can use JS to track finger position live and send coords over peer js, but in the webview, it only sends position when I let go of the screen Feb 23 11:31:55 any experience with this issue? Feb 23 11:34:06 kevdroid: not sure, but are you overwriting webchromeclient or just standard webview? Feb 23 11:34:17 overriding* Feb 23 11:35:16 Ping_2_Ur_Pong: using webchromeclient, enabling javascript, and all that jazz. No luck searching for the answer either Feb 23 11:36:30 I know after KitKat, chromewebview support works nicely, but this is my only issue. Is it acceptable to post a codeshare link here? I can show my webview settings if that helps Feb 23 11:36:34 yots, there's something wrong, my own FileObserver works fine when yours fails for some reason Feb 23 11:39:22 kevdroid: ya post the link to your code hard to debug an issue without code. Take a look at http://android-er.blogspot.com/2014/05/android-webview-detect-touch-events.html it might give you a little help debugging. Feb 23 11:39:29 Is there a simple way to set a time limit for a runnable submitted to an executorservice Feb 23 11:39:38 ? Feb 23 11:40:25 I'd end up just posting a second runnable to a second service which just waits for a specific time and then kills the first runnable, but that'd be not so ideal. Feb 23 11:40:45 justJanne: just add ,