**** BEGIN LOGGING AT Fri Nov 28 02:59:58 2014 Nov 28 03:00:10 Ok java master Nov 28 03:02:14 argue with the jls all you want Nov 28 03:11:42 gordon_: so does "studio" == gradle + intellij? Nov 28 03:16:07 ahhughes: I would said 'studio' = intellij with less options ;) Nov 28 03:16:44 pfn: well ... this scala stuff doesn't seem 'too' offensive... i could actually, perhaps, maybe, learn to tolerate it Nov 28 03:17:12 offensive? heh Nov 28 03:17:17 java is offensive Nov 28 03:17:50 can i mix java and scala in the some file or does it have to be a separate compiled class? Nov 28 03:18:06 must be separate files Nov 28 03:19:37 bankai_au: you can always try kotlin ;) Nov 28 03:19:37 use it for a while and there's little reason to drop back to using java Nov 28 03:19:47 gordon_: it's that or scala atm Nov 28 03:19:49 kotlin is barely more than a toy Nov 28 03:19:57 why ? Nov 28 03:20:05 gordon_: I have long been annoyed with eclipse's inability to deal with maven... I should just buckle up and switch to intellij Nov 28 03:20:13 it just does some things to address java faults Nov 28 03:20:34 well, I also like scala more Nov 28 03:20:36 just like svn tried to cover over cvs problems Nov 28 03:20:58 scala suffers in some ways from trying to maintain java interop Nov 28 03:21:00 but I always run into problems with scala Nov 28 03:21:20 but mainly due to intellij problems Nov 28 03:21:26 but keeping the vast majority of Java code usable is still good stuffs Nov 28 03:21:35 and damn, make slick default in play! already ;) Nov 28 03:21:54 but that's different talk Nov 28 03:22:14 slick is neat, haven't used it since it was still scalaquery Nov 28 03:22:15 pfn: make nice blog about scala on android and I will use it on my next project Nov 28 03:22:29 i don't spend much time blogging Nov 28 03:22:33 me either Nov 28 03:23:32 pretty easy though, just grab sbt, and add the plugin, run gen-android and get going Nov 28 03:24:16 pfn: so you just need to include scala-library.jar with your projects on android? Nov 28 03:24:34 bankai_au, it gets built into the app, yeah Nov 28 03:25:03 my plugin supports both proguard and multidex now Nov 28 03:25:14 Intellij supports my plugin, too Nov 28 03:25:49 still a little buggy, though Nov 28 03:26:08 pfn: if we can support scala test for tests... ;( Nov 28 03:26:10 ;) Nov 28 03:26:41 gordon_, yeah, not something I've followed since robolectric 1.x Nov 28 03:27:03 I guess google made the same mistake and see what we got? ;) Nov 28 03:27:56 instrumented tests are supported well at least Nov 28 03:29:17 * capella tacticaljoke made me look: https://pastebin.mozilla.org/7599056 Nov 28 03:29:23 how long does it take to run the suite ? Nov 28 03:29:36 if it's longer that 20 seconds I'm on my rss site already... Nov 28 03:30:00 anyway, I will try today ! Nov 28 03:30:02 run tests? it's not fast like pure jvm tests Nov 28 03:30:35 if I had motivation, I'd consider jvm tests again Nov 28 03:30:36 I run robolectric but not material is not available Nov 28 03:30:55 but no real reason to implement it Nov 28 03:30:57 and errors all the time Nov 28 03:31:09 pfn: http://developer.android.com/training/activity-testing/activity-unit-testing.html talking about this Nov 28 03:31:24 yeah, those are slow Nov 28 03:31:39 and available as android:test Nov 28 03:31:50 I tried them once Nov 28 03:31:56 just have to be written in junit 3 Nov 28 03:32:08 can be scala, but must be junit3 Nov 28 03:32:10 capella: Interesting that it called StringBuilder.append twice. I've always seen the constructor followed by a single StringBuilder.append. Nov 28 03:32:39 depends on how the statements are written Nov 28 03:33:03 the compiler optimizes to use only a single builder for simple statements Nov 28 03:34:05 Oh, 2 appends, seems natural Nov 28 03:34:21 one for the original string, and another for the arguments Nov 28 03:34:28 pfn: and scala test is? Nov 28 03:34:37 i forgot how it's working Nov 28 03:35:11 gordon_,? scalatest doesn't work in an instrumented setting Nov 28 03:35:35 :( Nov 28 03:35:53 could probably figure out a way to wrap it in the junit 3 runner Nov 28 03:36:09 but not a priority Nov 28 03:37:29 i will play with scala over the weekend Nov 28 03:37:52 I get a single append() with Eclipse's Java compiler: http://pastebin.com/wwKkec2Y Nov 28 03:38:10 eclipses java compiler isn't the standard compiler Nov 28 03:38:41 Of course not. Nov 28 03:38:57 and different compilers obviously don't produce the same results Nov 28 03:40:15 pfn: Is there some reason you're taking issue with everything I say tonight? Nov 28 03:42:43 you're imagining things Nov 28 03:42:48 pfn: and what scala lib are you using again ? Nov 28 03:43:09 gordon_, lib or version? Nov 28 03:43:19 lib Nov 28 03:43:27 you can tell me version too Nov 28 03:43:32 but I thinks it's 2.10.x Nov 28 03:43:32 I've been using macroid Nov 28 03:43:35 *think Nov 28 03:43:36 pretty nice Nov 28 03:43:43 ok, thanks Nov 28 03:43:44 2.11.4 works fine Nov 28 03:44:01 I had some problem with intellij and scala 2.11.4 Nov 28 03:44:07 and case classes Nov 28 03:44:19 it wanted me to implement some method ( guess it was due to macros ) Nov 28 03:44:22 https://github.com/pfn/android-common Nov 28 03:44:31 I use that across all my projects Nov 28 03:44:54 Intellij hasn't told me anything crazy Nov 28 03:45:03 maybe it's fixed Nov 28 03:45:07 Actually latest I've used is 2.11.2 Nov 28 03:45:19 thanks, will check it. eventbus looks nice in commons ! Nov 28 03:45:54 gordon_, you can look through qicr for some of my state of the art shit 😁 Nov 28 03:46:27 it's also like a 4 year old code base so it has some smelly shit Nov 28 03:46:32 too Nov 28 03:47:03 I will try to write something over the weekend Nov 28 03:47:10 something simple ;) Nov 28 03:48:43 Actually, my tvm calculator is a good example project Nov 28 03:49:09 https://github.com/pfn/android-tvm Nov 28 03:50:35 two activities Nov 28 03:50:38 that's good for start :) Nov 28 03:51:02 no xml views? :( Nov 28 03:52:18 no, macroid has its own dsl for layouts Nov 28 03:52:22 it's quite nice Nov 28 03:52:29 you can use xml if you want Nov 28 03:52:53 I write views in xml but I like the preview Nov 28 03:53:19 you can continue to do that Nov 28 03:53:28 xml views are well supported Nov 28 03:53:35 ok, I will try it out ! Nov 28 03:53:49 thank you Nov 28 03:54:42 look in the generated TR class to see what's available to you Nov 28 03:56:09 I was looking into macroid before Nov 28 03:56:22 snails + signals and slots with rx seems nice Nov 28 03:56:35 hope proguard wont explode if I'll all those jars Nov 28 03:57:06 * zinx smashes all the jars Nov 28 03:58:15 i'd probably try scala if it didnt force me to use proguard. thats a deal breaker though Nov 28 03:58:18 (on android) Nov 28 03:58:49 it does? how come ? Nov 28 03:59:02 oh maybe i'm mistaken Nov 28 03:59:17 now it's not needed I guess ? Nov 28 03:59:17 thought the scala runtime was pretty big Nov 28 03:59:38 http://i.imgur.com/aev5jsv.gif Nov 28 03:59:39 there is that multidex thing Nov 28 03:59:48 yeah, screw that Nov 28 03:59:53 :D Nov 28 03:59:55 multidex last resort Nov 28 04:00:00 I installed android studio from here (http://developer.android.com/sdk/installing/studio.html), and it claims it installs the android sdk, but the first thing it asks when you start it up is to point it to your local android sdk. what's up? Nov 28 04:00:01 it's still needed Nov 28 04:00:08 proguard takes little time Nov 28 04:00:09 pfn: :( Nov 28 04:00:20 gordon_, all automatic Nov 28 04:00:29 ok Nov 28 04:00:39 gordon_, there's nothing to concern yourself with when using my plugin Nov 28 04:00:53 I know, I know Nov 28 04:00:55 proguard take about 15 - 20 seconds on my machine. i only use it for releases though Nov 28 04:00:58 I just like to know 'how stuff works' Nov 28 04:00:59 get intellij 14,import project and run Nov 28 04:01:21 well, I still run sbt inside of intellij Nov 28 04:01:32 rather than have intellij run directly Nov 28 04:01:54 Trinity: probably just installsed the sdk manager Nov 28 04:02:15 pfn: like sbt ~ run ? Nov 28 04:02:18 g00s, proguard isn't executed for every single build Nov 28 04:02:28 gordon_, yeah, I often do that Nov 28 04:02:41 or just ~android:package Nov 28 04:02:53 and have intellij deploy to device on demand Nov 28 04:03:03 hope scala compiler has better performance now :) Nov 28 04:03:14 so "builds" are practically instantaneous Nov 28 04:05:11 it's slower than javac Nov 28 04:05:16 and for networking stuff you're using futures or something else / Nov 28 04:05:45 well it might be slower, but if you're running it always in background it might be actually nice Nov 28 04:06:05 I'd like to see something like sbt ~ test and have something like guard in rails Nov 28 04:06:51 gordon_, I use fute Nov 28 04:07:08 futures or my own simple async abstraction Nov 28 04:07:18 you can also use async await Nov 28 04:08:58 ok... I will just look on calc Nov 28 04:09:58 Oh, one caveat, I think intellij doesn't quite work so well with gradle style project layouts Nov 28 04:10:13 it keeps saying it can't find resources in my tvm project Nov 28 04:10:25 sbt-idea works better in that regard Nov 28 04:11:01 (it generates better project files than intellij 's import) Nov 28 04:11:53 yes I know sbt-idea Nov 28 04:16:18 ok, Im confused... this library I've gotta use... has x2 jar's and it also has ./libs/armeabi/*.so and ./libs/armeabi-v7a/*.so and ./libs/x86/*.so and when I only use the jar's I get exceptions... "couldnt load runtimecore_java". So Im 99% sure I needd to add native libs to my apk... however... which do I use? Nov 28 04:17:41 add both jars Nov 28 04:17:52 unless you only want arm or x86 Nov 28 04:26:44 hmm 359 for a new moto x is tempting Nov 28 04:27:01 so very, need to replace my broken SGS3 Nov 28 04:36:07 * gordon_ is waiting for nexus 6 Nov 28 04:41:14 got any good plans for the nexus? or you just stoked to use it? Nov 28 04:41:26 gonna do an AOSP build? Nov 28 04:42:18 cyanogen / omnirom Nov 28 04:45:04 why do you want to put a custom rom on a brand new phone ? Nov 28 04:45:30 not for now Nov 28 04:45:35 but in like 2 months maybe Nov 28 04:46:10 I'd like a Nexus 6, a bit big though Nov 28 04:46:23 it's fine Nov 28 04:46:34 I like that it's a single sku for all us carriers Nov 28 04:46:51 i'm looking at my n7 and can't comprehend a phone 1" smaller Nov 28 04:46:56 hello, is there a way to get the Kconfig which was used to compile the currently running kernel? i want to check whether CONFIG_OABI_COMPAT was enabled, related to this kernel patch: https://github.com/sigma-1/raw-android-patches/blob/master/0642-ARM-7888-1-seccomp-not-compatible-with-ARM-OABI.patch Nov 28 04:47:05 it's big so you can use it as shield to protect your family Nov 28 04:47:18 g00s, it's much smaller, Nexus 7 has a huge bezel Nov 28 04:47:30 it's the same size as iphone 6 plus Nov 28 04:47:38 which is 5.5" ;) Nov 28 04:47:41 but it won't bend :( Nov 28 04:48:03 bezel on Nexus 6 is really small Nov 28 04:48:30 it wont :( Nov 28 04:48:50 * gordon_ ring ring ring ring banana phone~ Nov 28 04:57:45 hello neo Nov 28 04:57:58 do you know who this is? Nov 28 05:01:56 is it normal to have inside my apk..... ./lib/armeabi/*.so ? because the errors seem to suggest they should be ./lib/*.so Nov 28 05:03:12 why is it we can have lambdas but not streams? :/ Nov 28 05:08:47 bankai_au we have streams ? Nov 28 05:10:09 man i hope google isn't developing jack & jill so they can stay in the stone age and distance themselves from dependency on oracle compilers that may change over time in ways that make things incompatible Nov 28 05:12:00 well, i guess the goal is going straight to jayce intermediate bytecode Nov 28 05:16:04 g00s, streams, lazy iterables Nov 28 05:16:28 Napalm is backporting java 8 streams to some degree Nov 28 05:30:10 ahhughes yes it is Nov 28 05:31:42 ahhughes you should try both but I know from past projects that when my target was an arm7 I had to have the native cod in that location Nov 28 05:31:56 sorry native library Nov 28 05:42:43 I updated AppCompat to v21 and now some of the things are not working on api21 device. Works fine on pre-5.0 devices. I am working through BNR. Should I try to find pre-21 version of AppCompat. Nov 28 05:48:18 pfn whats your strategy for doing db stuff, and notifying ContentObservers - i get the impression you don't use ContentProviders Nov 28 05:55:21 Hi. How do I download the standalone package for the android SDK tools? Nov 28 05:55:38 From the website, I get redirected to this page (http://developer.android.com/sdk/installing/index.html?pkg=tools) but download starts Nov 28 05:57:16 I'm currently using the sdk folder that comes with the ADT bundle. I hope that's alright. Nov 28 06:02:40 McJuicy: well, Im trying to build with maven... I can see it packs ./lib/asdf/*.so but the exception is looking for ./lib/*.so I read that the architecture get's copied into ./lib/ ... now Im confused :( Nov 28 06:27:54 ok Nov 28 06:28:14 now Nov 28 06:33:31 how do you work out the dpi for a screen? Nov 28 06:34:01 i want to have a dimens folder for a galaxy pocket so i need to know the sw dpi size Nov 28 07:05:37 i see lots of PendingIntent.getBroadcast() call where the last argument (flags) passed is 0 Nov 28 07:05:51 docs has no constant with that value, so what should it be doing ? or meant to do Nov 28 07:21:26 hi Nov 28 07:22:33 I have a non editable field. and when my app suddenly hangs.I get a message saying "app not responding.close: ok or wait" message.When I click on ok I see the non editable field looses the data Nov 28 07:22:44 how can I save the instance of the activity Nov 28 07:25:56 can you pastebin the logcat Nov 28 07:26:53 Ashiren: I cannot as the issue I face is on the field when I am out with the mobile Nov 28 07:27:59 lemonxah, http://developer.android.com/reference/android/util/DisplayMetrics.html Nov 28 07:28:08 It's programmatic though Nov 28 07:28:28 I assume you are looking for a solution for your resources? Nov 28 07:31:13 lemonxah, http://developer.android.com/guide/practices/screens_support.html#ConfigurationExamples Nov 28 07:34:57 oh lol Nov 28 08:00:59 JakeWharton, is there anything for a response interceptor in the works for retrofit? Nov 28 08:01:58 Or something that can intercept the ins and outs, so that if i have an auth call of some sort, and my token expires, I want to be able to renew my token and then re-call the original request Nov 28 08:02:58 i don't know. maybe. Nov 28 08:03:01 are you sure that isn't the responsibility of the HTTP client, not Retrofit? Nov 28 08:04:10 I would expect it to be the responsibility of retrofit Nov 28 08:04:15 why? Nov 28 08:04:45 http client handles the moving of data, whereas retrofit handles the manipulation of the data? Nov 28 08:05:07 retrofit maps data into your domain objects Nov 28 08:05:23 i'm not sure if something like that is a concern of retrofit or the http client's interceptors Nov 28 08:05:24 you have your ErrorHandler for errors, RequestInterceptors for intercepting requests Nov 28 08:05:40 I would expect using retrofit to do something with intercepting responses also Nov 28 08:06:15 One wouldn't want to handle error's and request interceptors on retrofit, then have to handle response interception and what not on the HTTP client? Nov 28 08:06:35 RequestInterceptor isn't really an interceptor, it's more like a request creation callback Nov 28 08:06:51 not sure how useful a response interceptor would be Nov 28 08:09:49 Or at least something that I can attach a callback which is fired and returns a request along with response ;_; Nov 28 08:10:53 * JakeWharton i'm not disagreeing with you, it's just not a simple thing to implement conceptually. if all you are doing is handling 401's then I think we'll serve that use case much better in OkHttp than Retrofit. Nov 28 08:11:22 wtf. why is that an emote. Nov 28 08:11:27 stupid client Nov 28 08:12:17 hahahaha, but ok i see Nov 28 08:12:30 Ill try come up with a different solution Nov 28 08:13:02 because ErrorHandler tells me, "yo, 401 here, renew your token" Nov 28 08:13:15 ErrorHandler was designed to allow throwing more specific errors Nov 28 08:13:23 domain-specific ones Nov 28 08:13:26 I can do a call to renew, but then not have much of a handle to the original call Nov 28 08:13:27 not really handling errors Nov 28 08:13:29 it's poorly named Nov 28 08:13:39 yeah i've gathered that during this discussion :p Nov 28 08:18:24 JakeWharton, I see there is an authenticator interface for okhttp, so ye my apologies :) Nov 28 08:20:46 JakeWharton what do you think of a custom Rx Scheduler, which scheduler work on a queue processed by an IntentService? not sure its a decent idea; it goes against the unsubscribing = cancel work ; when the ui unsubscribes the IntentService would process the tasks of course Nov 28 08:21:31 basically like a generic rx-ified version of AsyncQueryService Nov 28 08:26:08 hi guys, I got this error in Android Studio when editing "setOnItemClickListener in AdapterView cannot be applied". Nov 28 08:26:21 I follow exactly, letter to letter from youtube tutorial. Nov 28 08:26:47 So, I guess there must be API problem. Nov 28 08:28:30 error: incompatible types: cannot be converted to OnItemClickListener Nov 28 08:28:45 you are calling setOnItemClickListener instead of setOnItemSelectedListener Nov 28 08:30:22 JakeWharton: oh, i see. So, what's whats the difference between the two? Nov 28 08:33:21 i can't remember Nov 28 08:56:36 Hi, is there a way to dynamicly create TextBoxes in a layout? Nov 28 08:57:00 sure. just new them up and add them to a ViewGroup Nov 28 08:57:14 JakeWharton: is there a tutorial to do this? Nov 28 08:57:17 uh Nov 28 08:58:11 JakeWharton: I only follow tutorials so far. Nov 28 09:04:03 Cervantes, EditText edit1 = new EditText(this) Nov 28 09:04:18 assuming you are in an activity, use getActivity() if you are in a fragment Nov 28 09:04:39 then just add it to whichever ViewGroup you want Nov 28 09:05:46 kevel1: ok Nov 28 09:07:41 Cervantes, http://pastebin.com/8YE29620 Nov 28 09:07:45 very simple example Nov 28 09:09:28 you're probably going to want to give it layoutparams Nov 28 09:10:47 something like http://www.startandroid.ru/en/lessons/complete-list/220-lesson-16-creating-layout-programmatically-layoutparams.html Nov 28 09:11:14 kevel1: can i use this method to say.. , when I go to other activity, I want to generate random TextBox. Nov 28 09:13:02 g00s: oh, thats seems like what i want. Thanks. Bookmarked. Nov 28 09:36:47 Morning all Nov 28 09:51:31 Is anybody there :) Nov 28 09:52:19 nope nobody here Nov 28 09:52:53 any time I go near fragments something blows up in my face and I get fired or worse Nov 28 09:53:06 is anybody a linux driver engineer here? Nov 28 09:53:24 * regan worked on device drivers 20 years ago Nov 28 09:53:36 they are books on that now. Nov 28 09:53:57 - -" Nov 28 09:55:16 lalal Nov 28 09:55:42 stackoverflow led me down the wrong path today… I think I worked out the problem with the fragments code I was working on while on the train home… Nov 28 09:56:00 any good references on fragments… seems to be a hoo doo with me. Nov 28 09:57:16 @regan, I have no idea about this .. :( Nov 28 10:02:25 regan: what are you trying to do? Nov 28 10:05:15 I am at home and my code is at work but from memory<, messed up and I think I left out the the OnCreateView() and the code was crashing with an exception, maybe in fragment manager about “no view”… But I am working straight through the weekend and that is about only thing left to do in the app.. Nov 28 10:06:06 The boss is coming in on Saturday and Sunday and everyone is pissed off.. Nov 28 10:08:55 * regan needs reference material on fragments in case I decide to shoot myself in the foot again. Nov 28 10:28:45 why no use git? Nov 28 10:43:01 hi everyone Nov 28 10:43:12 i need some idea with an app im working Nov 28 10:43:33 i'm using the app to read mysql dbs from a php file Nov 28 10:43:57 all text data can be read/updated etc Nov 28 10:44:05 but i need to get an image too Nov 28 10:44:08 how would i do that? Nov 28 10:44:35 i know image can be saved as blob Nov 28 10:44:46 but how do i read it in an image box Nov 28 10:47:51 here is the code Nov 28 10:47:52 http://pastebin.com/yzNKiP2F Nov 28 10:47:55 to read the data Nov 28 10:48:02 stop pressing enter Nov 28 10:48:33 k Nov 28 10:50:44 ather: where you store your image binary (DB blob, or filesystem), isn't an android issue at all. whatever choice you make, you will have to be able to retrieve the binary with a simple http call. Then, it's just a "load image by url in android" search in google. Nov 28 11:11:43 I have an app on Google Play, which (of course) has a list of unsupported devices. Is it possible to see why a specific device is not supported? Nov 28 11:12:56 How do I set margins on a custom view with no children? ie, i need to translate it to justify the view ... Nov 28 11:16:45 Same way you set margins on any other View Nov 28 11:24:56 hi guys, im trying to understand something, I have an activity with two views, i click a button and i switch view. Then when i start a new activity and click the back button, my onCreate methods is called in the first activity and the activity is resetted to the default view. How can i persist the view on the first activity Nov 28 11:32:55 SimonVT: uh this is for a keyboard custom view (not using Keyboard) i had to do ViewGroup.MarginLayoutParams margins = ViewGroup.MarginLayoutParams.class.cast(getLayoutParams()); inside onLayout Nov 28 11:35:13 Just like any other View Nov 28 11:35:51 never had used this before ;p Nov 28 11:37:08 liefer, probably due to SDK version Nov 28 11:37:11 If your View has margins, its layoutparams are MarginLayoutParams (or a subclass) Nov 28 11:39:16 is there a good article on what are sticky broadcasts? Nov 28 11:42:13 hey guys Nov 28 11:42:28 Anyone who knows if a "Shared IP Project" can be a problem to anything at all? and what it even means? Nov 28 11:42:32 hey guys Nov 28 11:46:43 Hello! I am trying to draw image rectangle in opengl es gl10. http://pastebin.com/0W7CGxNk . But when i use glDrawArrays instead glDrawTexfOES - image are little smaller and width height ratio fails. Nov 28 11:47:21 What should i do to draw image as it is using glDrawArrays Nov 28 11:47:52 i use gl.glOrthof(.0f, mSurfaceWidth, .0f, mSurfaceHeight, -1.f, 1.f); gl.glMatrixMode(GL10.GL_PROJECTION); Nov 28 11:48:30 gl.glViewport(0, 0, mSurfaceWidth, mSurfaceHeight); Nov 28 11:49:01 do i need scale mSquareVerticesBuffer coordinates? Nov 28 11:59:37 kevel1: Its not the SDK version, thats why i want to know specifically. Besides, isnt the android version decoupled from the actual device? Would suck to have a custom rom of a high enough android version, but still be unable to install certain apps Nov 28 12:00:45 liefer, hmm, usually the store just gives you a list of parameters it's filtering on when you upload an APK Nov 28 12:00:53 I don't think there's a way to see why each specific device is filtered Nov 28 12:01:00 liefer, there are a few guys here at the office running kitkat Nov 28 12:01:06 but still cant download our app off the play store Nov 28 12:01:11 which is 4.0+ Nov 28 12:01:26 :S Nov 28 12:02:10 Mavrik, yeah i havent been able to find it at least. Would be nice to know though. Its difficult to know if its due to e.g. certain hardware Nov 28 12:02:44 Have to spend time searching for the data sheets if you need that info :/ Nov 28 12:05:35 can someone tell my why onReceive gets called automatically http://pastie.org/9748355 ? I am just registering not sending any broadcast Nov 28 12:06:02 thats how it works Nov 28 12:06:12 is it ? Nov 28 12:06:21 yeah if i remember correctly Nov 28 12:06:24 lookat the intent Nov 28 12:06:27 but why I wonder Nov 28 12:06:35 look at ? Nov 28 12:06:54 the intent Nov 28 12:08:52 i am not sure what that means, the thing is i never sent a broadcast intent to it, so why would it execute Nov 28 12:09:05 sorry i am not much experienced, so might be asking stupid questions Nov 28 12:09:40 i looked at intent.getAction Nov 28 12:11:33 shmoon: look at what intent you get in onReceive, might give you a clue. Nov 28 12:13:28 ya i saw its getAction, not sure how that'd help. I mean which value to exactly look for to understand Nov 28 12:16:42 shmoon: I guess the intent action, type, scheme and categories =) to start with Nov 28 12:16:55 ok Nov 28 12:21:14 http://imgur.com/MmkTzLP hop just received it! Nov 28 12:22:19 yay :) Nov 28 12:22:25 My 360 is still stuck in limbo Nov 28 12:22:26 :/ Nov 28 12:22:43 Mavrik: try raising the bar and making it go round again Nov 28 12:22:51 :) Nov 28 12:23:49 ahh sorry for you Mavrik Nov 28 12:24:09 It seems that Motorola didn't even start selling them in EU yet so foo Nov 28 12:24:10 what is the ssh tunnel/vpn source code, that i can use in my project? Nov 28 12:24:29 what is it adq ? Nov 28 12:25:11 Mavrik, yup and i got this one for 155€ ! Nov 28 12:25:28 mhm, I'll probably rather get ZenWatch if that's gonna be available sooner Nov 28 12:25:42 shmoon, an Android Wear watch (round display is challenging despite it's not much a big deal) Nov 28 12:26:09 Mavrik, i only dev for it, not really wear them, i've got also the square display ones too (lg g watch) Nov 28 12:39:09 adq: ya i have seen rectangles not round, first time round hence asked :) Nov 28 12:40:03 there are only the moto360 and the g watch r at this time which got a round displays Nov 28 12:40:48 and there are not many ppl with an android wear watch in total, you can see that with the android wear app number of install (it's required for these watches) Nov 28 12:41:12 100,000 - 500,000 Nov 28 12:41:19 probably in the middle Nov 28 12:57:03 Hi guys I have a problem with fragment overlapping, what is the best practice? Should I hide the old fragment and then add the new one, or should I set the background of the new fragment for hiding the old fragment behind? Nov 28 12:57:36 deadpoint: use .replace() instead of .add() in your FragmentTransaction Nov 28 12:57:54 I have the same effect with replace Nov 28 12:58:08 then you are doing something incorrectly Nov 28 12:59:02 It works fine without tabs... but If I have Tabs and replace one fragment of a tab with another fragment (Detailview) the animation doesnt work and also the overlapping problem is there Nov 28 13:02:00 Have anybody a good example with Tab Navigation a List in one Tab and Detailview of List Items? It would help me lot Nov 28 13:04:55 Napalm: Do you have any idea what I am doing wrong here? Nov 28 13:05:31 sounds like your container Ids are wrong Nov 28 13:11:49 which tool wouldf you recommend, ADT or Eclipse for beginner? Nov 28 13:12:22 I spent hours yesterday thinking about how I'm gonna get my ListView to detect that it's at the bottom so that it can auto-load more data. Then I realised today that I could just add a "Load More" footer view. A way neater solution in this case. :) Nov 28 13:12:37 Alina-malina: I like Android Studio.. its just a Beta but it works well for me Nov 28 13:16:47 Alina-malina, I've been using Android Studio for about two months now and I can't switch back to Eclipse Nov 28 13:18:19 Note that Android Studio doesn't support all that Eclipse supports. Two examples are JVM unit testing and NDK stuff (though the latter isn't relevant to beginners). Nov 28 13:27:20 Hi everyone! Nov 28 13:27:55 hi Nov 28 13:28:08 Hi, Dr. Nick. Nov 28 13:28:10 I bet you are going to ask a question. Nov 28 13:28:14 Wait, that's "everybody". Nov 28 13:28:16 :) Nov 28 13:28:27 :) Nov 28 13:29:00 I want to store some images and sounds for use in my app, in groups Nov 28 13:29:13 What's the standard way to go about doing this? Nov 28 13:30:41 I put them in resources usually. Nov 28 13:30:58 Unless they are sounds and images created by the app. Nov 28 13:31:14 and are to be accessed by an external program. Nov 28 13:31:20 What if the app downloads them? Nov 28 13:31:32 Should I make a db? Nov 28 13:31:50 Then probably in its local storage space. Nov 28 13:32:33 Can you point me to a resource to the same for beginners? Nov 28 13:33:43 You could of course use a db, if its not going to be more complex than just storing the stuff in dirs. Nov 28 13:33:57 Not sure, google has free courses these days :) Nov 28 13:34:00 okay Nov 28 13:34:13 what exactly should i search google for? Nov 28 13:34:52 sorry, i'm a beginner Nov 28 13:35:49 How badly a beginner ? Nov 28 13:35:52 wtiger: https://developer.android.com/guide/topics/data/data-storage.html Nov 28 13:36:22 There that looks like something for you wtiger. Nov 28 13:36:25 I am suppose to work. Nov 28 13:36:34 oh thank you very much Nov 28 13:36:36 :D Nov 28 13:36:37 So let me try that. Nov 28 13:50:47 i have tried window overlay but that does nothing Nov 28 13:59:59 anyone? Nov 28 14:01:14 eclipse is requiring some JRE must be available in order to run Eclipse, no java vm wa found after searching the following locations.......which java should i install to be minimalistic, but enough to run this eclipse thingie? Nov 28 14:01:29 pangelovski, well i am here, but i am expecting for help as well, so i doubt i can help ypu:) Nov 28 14:02:07 all right, gotta leave Nov 28 14:02:11 bbye everyone! Nov 28 14:05:27 what is the most comment android version out there? Nov 28 14:05:38 4.0.3 Nov 28 14:05:42 comment? Nov 28 14:09:40 Ashiren: I think what he/she meant to write was "Common" Nov 28 14:09:49 It could be current Nov 28 14:28:02 is this possible to mock robospice retrofit request for unit test? Nov 28 14:30:31 can I initiate a call to ask user to select their sim card to proceed with? Something like this http://i.imgur.com/YHmeO1s.png Nov 28 14:32:08 I have heard this is out of SDK scope and it's done by device manufacturers. is that right? Nov 28 15:00:41 If I set CustomAnimations with objectAnimators on the getChildFragmentManager Transaction there is no effect... Its just a replace of fragments without animations (The animator files should work).. What is going wrong here? Nov 28 15:07:54 morning - so I was trying to use this lib -> https://github.com/pavlospt/RoundedLetterView ( compile 'com.github.pavlospt:roundedletterview:1.0' ) but im getting 'no resource identifier found for attribute XXX' where XXX is all the resources in the app:* namespace Nov 28 15:08:44 How can I verify that the lib is downloaded and working ? Nov 28 15:10:41 plus I see on the github repo -> https://github.com/pavlospt/RoundedLetterView/blob/master/RoundedLetterView_SampleApp/app/src/main/java/gr/vanderbox/roundedletterview_sampleapp/view/RoundedLetterView.java he is using the code as a java class and not as a lib Nov 28 15:19:48 Hi everybody Nov 28 15:21:42 I have a problem with a custom Adapter set to a Spinner my elements are shown well when I click on the spinner but I cannot select any one of them here's my Adapter : http://pastebin.com/WBcNTwYU and then I'm using setAdapter on the spinner Nov 28 15:22:00 any help please ? Nov 28 15:36:41 How can I clear a previous instance of my app when it is started via the onNewIntent() method Nov 28 15:50:02 is there a button to share content on google+ (like google+ sign in button)? Nov 28 15:52:47 hi Nov 28 15:53:17 can we discuss about an idea for a new app? Nov 28 15:53:25 slani: why share specifically to google+? why not just use the default share functionality in android? Nov 28 15:54:56 can we? Nov 28 16:10:08 hmm, is there a constant which describes touch circle radius under finger? Nov 28 16:19:22 AXIS_SIZE ? Nov 28 16:32:36 Does android provide a settings gear icon? I feel like I've seen it in AppCompat or something similar Nov 28 16:35:02 MarkyC, there's an icon pack Nov 28 16:35:13 Mavrik: whereabouts? Nov 28 16:35:39 I think on android design pages Nov 28 16:40:26 Hello Nov 28 16:40:51 Anyone know a link to the order and list of view being added to view heiarchy? Nov 28 16:40:52 MarkyC: http://developer.android.com/design/downloads/index.html Nov 28 16:41:28 Napalm: thanks, I noticed it's in the Action Bar Icon Pack named ic_action_settings Nov 28 16:41:38 In specific, what's the equivalent call back for either onCreate/onResume in a custom view? Nov 28 16:53:56 lasserix: the constructor for onCreate and onAttachedToWindow for onResume Nov 28 16:54:31 lasserix: https://lh6.googleusercontent.com/-TTZ-LN41ygA/UIQt75DBSEI/AAAAAAAAFAY/v8jAR9WWg5w/w452-h799-no/android.png Nov 28 16:54:53 thanks! Nov 28 17:07:11 do layoutparams persist if I call removeView then addView sometime a short while later? Nov 28 17:07:41 they ALWAYS persist Nov 28 17:07:46 thanks Nov 28 17:07:47 they are attached to the view Nov 28 17:07:50 not the parent Nov 28 17:13:27 I'd lke to think I can just hold on to small viewcontainer types, like a dialog for instance, instead of releasing it--or should I always release views and then reinitialize them? Nov 28 17:16:54 hello everybody Nov 28 17:21:46 hi Nov 28 17:32:55 which is the best for managing demo/full flavors, different source sets or in-code tests disabling/enabling features? Nov 28 17:34:26 If only I knew what you were talking about. Nov 28 17:34:33 :) Nov 28 17:35:25 less code to manage ftw Nov 28 17:46:15 I'm getting a ClassCastException when trying to add a footer to a ListView. The footer is a RelativeLayout inflated from an XML file. Nov 28 17:46:16 http://pastebin.com/KF1wZ6c3 Nov 28 17:46:18 Any ideas? Nov 28 17:46:54 It seems that I shouldn't be getting this exception, as I'm specifying the ListView as the parent of the inflated layout. Nov 28 17:49:09 Oh. I've solved the exception. I was adding the TextView from the RelativeLayout and not the RelativeLayout itself. Nov 28 17:49:32 I guess that doesn't work because it doesn't set the ListView layout parameters properly or something. Nov 28 17:51:37 Does that sound right? Nov 28 17:51:40 Just making sure I understand. Nov 28 17:52:05 * Unknown0BC shrugs Nov 28 17:52:39 The LayoutInflater has OCD. Nov 28 17:57:27 hi Nov 28 18:01:32 what would be the best way to start programming in android for an old programmer? Nov 28 18:02:25 I guess mainly doing, and reading . Nov 28 18:02:39 What is your programming experience like? Just curious. Nov 28 18:02:58 QuickBasic, Java applets Nov 28 18:03:35 The latter will come in handy. :) Nov 28 18:03:36 Baurin big nerd ranch book is pretty good, but now all the books are out of date Nov 28 18:04:05 Theoretically developer.android.com should do the trick. Nov 28 18:04:22 For old Baurin . Nov 28 18:05:06 Google has some free dev courses. Nov 28 18:05:09 i guess reto's next edition will be mar 16, 2015 Nov 28 18:05:26 I have been thinking of doing some of them myself, although I think i'd probably fall asleep. Nov 28 18:05:39 looks like his daughter will be less frightened of the cover Nov 28 18:05:51 I don't know about others, but I learn way, way more quickly by simply *doing*. Nov 28 18:06:01 At least in Android. Nov 28 18:06:22 Thats exacly how I learn TacticalJoke . Nov 28 18:06:28 I feel that it's like reading about boxing versus getting in the ring. Nov 28 18:06:32 The latter is painful, but you learn to fight. :D Nov 28 18:06:34 On the fly. Nov 28 18:06:51 You get used to the black eyes after a while. Nov 28 18:06:55 Someting like that yes. Nov 28 18:07:05 I know what you mean. Nov 28 18:07:09 Only problem is that Android is an in-prime Mike Tyson. Nov 28 18:07:15 * Unknown0BC shows TacticalJoke his scars. Nov 28 18:07:22 lol Nov 28 18:07:26 :) Nov 28 18:07:46 Baurin: I'm exaggerating about the Mike Tyson thing. Nov 28 18:08:11 android will bite more than your ear off Nov 28 18:08:16 No it really hurts. Nov 28 18:08:18 More like that giant guy from Russia who can't fight but looks scary. Nov 28 18:08:31 lol shmooz Nov 28 18:09:41 the problem is starting, there shoud be an easy way to transform applets into android apps Nov 28 18:10:06 why, they aren't really the same at all Nov 28 18:10:27 nm, applets - anyone do that any more ? Nov 28 18:10:37 and who wants to see old 90's web applets on their phone Nov 28 18:10:56 because browsers don't support Java Applets anymore Nov 28 18:11:02 thats good Nov 28 18:11:23 one less security headache Nov 28 18:11:27 less vuln Nov 28 18:11:43 now all we need to do is get rid of the internet Nov 28 18:11:50 Things would be a lot less painful if eclipse would not go insane sometimes. Nov 28 18:11:52 Hmm. I wanna add a footer to a list view but only *after* it has items. Can't call addFooterView after setAdapter, though. If I make the footer view invisible, I still see a line above it (above nothing, basically). Any way around this? Nov 28 18:11:55 android wear is driving me crazy.... this simple option in the developer option 'stay awake when charging' is not working at all Nov 28 18:12:08 (works on the g watch, does not work on the g watch R... wtf) Nov 28 18:13:15 since ppl are reporting burn-in screen, i'm wondering if they forced something... cause in getprop they are #@! values like: Nov 28 18:13:16 ro.ambient.burn_in_protection=1 Nov 28 18:13:25 (protect hardware with software lol) Nov 28 18:13:27 applets are not a security headache, it's more a decision made by Google, Oracle and the like Nov 28 18:13:47 Baurin !!! it's not a headache Nov 28 18:13:53 You need to forget about applets. Nov 28 18:13:53 but it's clearly an open door Nov 28 18:13:55 They're old technology. Nov 28 18:14:00 Android is 2014. Nov 28 18:14:13 C is old, it's good Nov 28 18:14:19 this has nothing to do with time in fact Nov 28 18:14:28 On the comforting side, I'm sure there are various similarities between Java applets and Android apps. Nov 28 18:14:35 Though of course many differences. Nov 28 18:14:46 yeah not a big deal to port an applet on android Nov 28 18:15:18 i found recently that js canvas too is very similar to Canvas on android, making it also relatively easy to port from one side to the other Nov 28 18:15:23 I'm not saying that everything old is bad. I'm saying that Java applets are old in the "they're not relevant anymore" sense. :) Nov 28 18:15:41 ruin Nov 28 18:15:44 they are ruins Nov 28 18:16:00 and they can ruin your computer (and even more :)) Nov 28 18:16:03 adq, of course, if the creators stop providing support it is like XP, unsecure, but it has been a decision by a few big companies Nov 28 18:16:03 This is weird. I use an app that adds a footer view to a ListView and doesn't show this bottom line until it's ready to. Nov 28 18:16:10 I can't figure out how to do that. :-/ Nov 28 18:17:06 I guess I could make the entire ListView invisible. Nov 28 18:17:51 Hi! Nov 28 18:17:53 (Until it has items.) Though that feels like a hack. Nov 28 18:18:48 gotto go \0 Nov 28 18:18:51 TacticalJoke, Java is installed in billions of machines, more than any other programming language, what I regret is the tactics of deprecating it on browsers by Oracle and Google Nov 28 18:18:51 have fun. Nov 28 18:19:32 It sounds like you're emotionally invested in Java applets. Nov 28 18:19:41 Baurin right, but one of the first things any smart person does is uninstall java if they aren't a developer / using a desktop java app Nov 28 18:19:43 Maybe you'd be happier if you became emoationally invested in Android apps. Nov 28 18:19:44 a little bit, yes :) Nov 28 18:19:46 :D Nov 28 18:19:49 Baurin: if you want something that doesn't evolve and depricate stick with something else Nov 28 18:20:04 like C Nov 28 18:20:04 I understand that. Nov 28 18:20:06 Leaving C# was hard. Nov 28 18:20:10 * TacticalJoke wipes a tear. Nov 28 18:20:15 :) Nov 28 18:20:43 C# is not an evolution of C Nov 28 18:20:50 C# is Java++. Nov 28 18:21:03 correct Nov 28 18:21:19 it's microsoft by hook or by crook attempt to beat the pants off java ;) Nov 28 18:21:38 and its gonna be more open Nov 28 18:21:47 money buys success, more money buys more success Nov 28 18:21:50 as visual studio will be community and .net open source Nov 28 18:21:50 Baurin: You could keep making Java applets which nobody uses, or make Android apps which thousands use! Nov 28 18:22:06 Yeah, Ashiren. It's looking positive there. Nov 28 18:24:18 hmm http://digg.com/video/force-awakens-trailer-star-wars Nov 28 18:25:17 yep Nov 28 18:25:26 hi, have the following problem: for my fullscreen app with GLSurfaceView.Renderer the parameters passed to "onSurfaceChanged" differ significantly from the devices screen resolution (in the emulator). Any ideas why this is so? Nov 28 18:25:52 even the aspect ration seems to differ slightly Nov 28 18:26:41 well it takes width and height Nov 28 18:26:50 it would be different on different resolution :? Nov 28 18:26:57 TacticalJoke, yes, I have changed platforms before, i.e. from MSDOS to Java, however, changing into Android is being a bit steep Nov 28 18:27:22 Do you have an Android device yet? Nov 28 18:27:31 yep Nov 28 18:27:40 from MSDOS to java.. boy that escalated quickly Nov 28 18:28:04 yep, a big shift Nov 28 18:28:28 msdos is quite elegant compared to android Nov 28 18:28:39 lmao Nov 28 18:29:03 Baurin: to get the sdk and IDE installed and have a hello world app running shouldn't take you more than a day Nov 28 18:29:29 Ashiren, when I start the emulator ist says something like 480x856 Nov 28 18:29:35 If I add a footer/header to a ListView, the ListView doesn't bother me in ListAdapter.getView about the header/footer, right? Nov 28 18:29:45 It just bothers me about the actual data, I presume. Nov 28 18:30:01 BorgCuba: well Nov 28 18:30:02 and the paramaters passed to "onSurfaceChanged" are 320x569 Nov 28 18:30:45 in the activity I request the fullscreen and when I fill the background it fits the entire screen Nov 28 18:31:11 hmm that is weird Nov 28 18:31:22 funnily, I can run old MSDOS programs in Android under DOSBox emulator!! I can run MSDOS programs pretty well, but not Java Applets!! Nov 28 18:31:26 its as big as the glSurfaceView but if background fills.. then i dont know Nov 28 18:31:55 shadynastys, I will try that Nov 28 18:32:16 shmooz, I will see Nov 28 18:33:13 great, now I'm wondering if I can run MSDOS on android Nov 28 18:33:22 you can Nov 28 18:33:39 DOSBox makes it Nov 28 18:34:38 well, thanks Ashiren Nov 28 18:34:54 you can show a keyboard and interact with your MSDOS app Nov 28 18:35:05 yeah but that's not *MS* DOS Nov 28 18:35:16 but is VERY compatible Nov 28 18:35:45 I've run everything I've tried, including complex programs Nov 28 18:37:17 maybe a related issue: http://stackoverflow.com/questions/3032591/opengl-es-canvas-size Nov 28 18:39:30 Baurin: forget about the old stuff, eat some curry fish and other smart foods and get ready to learn Nov 28 18:40:24 Baurin also take some antidepressants, once you realize how little we've come in all that time Nov 28 18:41:11 Alan Kay would probably say we've gone backwards Nov 28 18:41:24 in time? Nov 28 18:41:28 g00s: yo Nov 28 18:41:29 does anyone have a good tutorial on how to implement an xmpp client in android (In a service i guess). There are a lot of half cooked solutions out there but I cant find a good blog post or something to get started Nov 28 18:41:57 hey Napalm lol, looking at that ActivityThread / QueuedWork thing again lol Nov 28 18:42:10 g00s: some idiot decided to package a Test Activity is the AppCompat library with a manifest.. so its getting merged into EVERYONES apps Nov 28 18:42:14 funny you just showed up, i think we were talking about that a while back :D Nov 28 18:42:14 fffff Nov 28 18:42:27 Whoa. If I use ListView.setEmptyView, the footer isn't shown until there is content. Nov 28 18:42:41 Napalm that would probably be Chris banes Nov 28 18:43:16 I'll give him a dig in the arm next time i see him Nov 28 18:43:16 lol Nov 28 18:43:37 TacticalJoke: its always been like that since v1 of Android Nov 28 18:44:05 Napalm did you already file a bug ? Nov 28 18:44:07 TacticalJoke: think about it.. all setEmptyView does is toggles the visibility of your EmptyView and the ListView Nov 28 18:44:16 g00s no Nov 28 18:44:27 but it looks like there might be one Nov 28 18:44:43 https://github.com/android/platform_frameworks_support/blob/master/v7/recyclerview/AndroidManifest.xml < says issue number 57819 Nov 28 18:45:01 but thats not exactly the reason Nov 28 18:45:13 they could update their gradle config in the platform Nov 28 18:45:25 so it only includes the manifest in the test version Nov 28 18:45:29 surely? Nov 28 18:46:19 aug 15, 2013. isn't looking good Nov 28 18:47:03 Napalm how did you stumble upon this ? Nov 28 18:47:26 oh looks like gradle 0.13 has that ability Nov 28 18:47:36 so i guess they should fix that Nov 28 18:48:39 Because i needed to check out my build is working, so look at the Manifest in APK to determine what is actually being included in the build process Nov 28 18:49:35 g00s: any idea how to exclude merging a things from a library? Nov 28 18:50:06 Napalm sorry, no. i haven't touched my gradle files in months. kinda lost my gradle chops Nov 28 18:50:08 g00s: check your own \build\intermediates\manifests\\release Nov 28 18:50:45 Is there a way for a ListView subclass to detect when a ListView has gone from empty to non-empty? Nov 28 18:51:04 TacticalJoke: what are you trying to do exactly? Nov 28 18:51:15 Napalm yeah its there Nov 28 18:51:23 * g00s facepalm Nov 28 18:51:31 I want a "Load More" footer to show only when there are items in my ListView. Nov 28 18:52:23 Prior to Kitkat, I can't call setFooterView after setAdapter. Nov 28 18:52:26 KitKat* Nov 28 18:56:09 Napalm have you given any thoughts about how to write a persistence layer around Rx Nov 28 18:56:14 sqlite, etc Nov 28 18:57:18 hang about Nov 28 18:59:01 hello all , i have this error , i dont understand it at all : FATAL EXCEPTION Nov 28 18:59:08 java.lang.NoSuchMethodError: com.studio.sm.cloud.CloudUploader.startUploading Nov 28 18:59:09 E/AndroidRuntime(31177): at com.studio.sm.helper.JsonUploader.run(JsonUploader.java:120) Nov 28 18:59:39 but it is ! Nov 28 19:00:08 JsonUploader is in the com.studio.sm.helper.JsonUploader.run Nov 28 19:00:18 and it call com.studio.sm.cloud.CloudUploader.startUploading Nov 28 19:00:51 CloudUploader.startUploading(this.context); Nov 28 19:01:12 in the JsonUploader page ! Nov 28 19:02:55 g00s: is it wrong that I can't remember what NP complete stands for unless I first remember the mneumonic "naked polynesians" ? Nov 28 19:05:21 capella if your interviewer is polynesian, yes Nov 28 19:06:03 hehehe Nov 28 19:07:47 minsdk 11 device is 15 and i get FAILED OLDER SDK why? Nov 28 19:07:50 maybe i should goto sleep Nov 28 19:08:10 1000 goto 1000 Nov 28 19:09:32 this cause compileSDkVersion is L? Nov 28 19:10:43 let sleep = 100 Nov 28 19:10:44 goto sleep Nov 28 19:11:05 meh ... nvm Nov 28 19:12:10 hmm Nov 28 19:12:15 android-L string is why Nov 28 19:13:14 no Nov 28 19:13:17 use 21 Nov 28 19:13:19 not L Nov 28 19:13:23 yeah Nov 28 19:13:26 weird Nov 28 19:13:27 L was only suppose to be used for priview Nov 28 19:13:29 preview Nov 28 19:21:59 any advice , Thank you ! Nov 28 19:26:44 use debugger? Nov 28 19:27:09 i did Nov 28 19:27:17 it say : Nov 28 19:27:38 E/AndroidRuntime( 7157): FATAL EXCEPTION: Thread-6962 Nov 28 19:27:38 E/AndroidRuntime( 7157): java.lang.NoSuchMethodError: com.studio.sm.cloud.CloudUploader.startUploading Nov 28 19:27:39 E/AndroidRuntime( 7157): at com.studio.sm.helper.JsonUploader.run(JsonUploader.java:120) Nov 28 19:29:13 what is that mean ! Nov 28 19:30:39 beshoo: CloudUploader has no method named .startUploading() Nov 28 19:30:51 beshoo: This is likely because the version you shipped with is not the same as the version you compiled against. Nov 28 19:31:44 hmmm how can i fix it ? Nov 28 19:32:01 but the CloudUploader has it ! Nov 28 19:32:55 public static Thread startUploading(Context paramContext) {try {.... Nov 28 19:33:10 in the CloudUploader Nov 28 19:33:11 ! Nov 28 19:34:21 please may you explaine ! Nov 28 19:34:37 i am newbe , so please explaine more Nov 28 19:35:25 beshoo: It does when you compile. It does not when you run. Nov 28 19:35:46 beshoo: This could be caused by an overeager application of proguard, or you missing libraries on your dex command. Nov 28 19:36:23 The documentation for ListView.addHeaderView states this: "Note: When first introduced, this method could only be called before setting the adapter with setAdapter(ListAdapter). Starting with KITKAT, this method may be called at any time." Nov 28 19:36:46 But it turns out that this isn't quite right. addHeaderView *can* be called after setAdapter, as long as addHeaderView was first called before setAdapter. Nov 28 19:36:54 Is it dangerous for me to rely on this knowledge? Nov 28 19:37:30 (In other words, "addHeaderView(); setAdapter(); addHeaderView();" is fine, while "setAdapter(); addHeaderView();" is not.) Nov 28 19:38:25 (And the documentation implies that the former is wrong.) Nov 28 19:40:11 God, Android makes everything so horribly complex. Nov 28 19:40:14 Why can't stuff just *work*. Nov 28 19:40:47 It's like it works perfectly, but you have to do 15 cartwheels followed by five head-spins. Nov 28 19:40:54 Unless they're on 4.0, in which case it has to be six head-spins. Nov 28 19:41:02 heh Nov 28 19:41:13 see, msdos was better Nov 28 19:42:24 Yeah, MS-DOS wouldn't leave me tearing my hair out this much. Nov 28 19:42:37 Fuck cooperative multithreading. Nov 28 19:42:39 TacticalJoke: nobody in their right mind uses addHeaderView and addfooterView Nov 28 19:42:45 Napalm: Why? Nov 28 19:42:53 TacticalJoke: because of the ordering and state issue Nov 28 19:43:07 What's that? Haven't read about that yet. :/ Nov 28 19:43:14 its just easier to implement it yourself and get the flexibility you need Nov 28 19:43:18 and not have such problems Nov 28 19:44:55 hello Nov 28 19:45:18 I'm using assets from lollipop iconography Nov 28 19:45:53 Napalm: Could you elaborate on that "ordering and state issue" thing? Not sure what you're referring to. :) Nov 28 19:45:58 I'm wondering how to copy files from multiple folders TO multiple folders Nov 28 19:46:00 I'm using addFooterView for a "Load More" thing. Nov 28 19:46:16 gobl: Copy from folder a to folder b, repeat for all a and all b? Nov 28 19:46:19 TacticalJoke just had to rearrange those .sys drivers so they didn't fight over IRQs :) Nov 28 19:46:34 there is no way way? Nov 28 19:46:37 easy* Nov 28 19:47:02 TacticalJoke: ordering of the callls. ie you must call setAdapter before calling addHeaderView Nov 28 19:47:10 or the other way around i forget Nov 28 19:47:31 will android studio include images that are never used? can i just bring in the entire directory? Nov 28 19:47:33 TacticalJoke: and any state issues you have. like you really want to control the header view better and blah blah.. Nov 28 19:48:09 I see. Nov 28 19:48:20 So would you recommend that my adapter take care of giving header views and stuff? Nov 28 19:50:59 Hi. I have a problem. I need to add android.support.v4 Library into my project. I don't user any IDE, and I'm compilling using Ant. Can anyone help me ? Nov 28 19:51:23 I'm using Linux Nov 28 19:51:34 don't use ant Nov 28 19:51:42 maven, gradle, sbt Nov 28 19:51:46 pick one Nov 28 19:52:48 TacticalJoke: you suppose to implement http://developer.android.com/reference/android/widget/WrapperListAdapter.html Nov 28 19:52:53 hey? does android studio include images in apk that are never used? Nov 28 19:53:10 yes Nov 28 19:53:31 Narzew: are you using Maven? Nov 28 19:53:52 TacticalJoke: when you can do windmills and air flares you feel like superman Nov 28 19:53:54 so i have to add these assets into x- xxxxhpi by hand? Nov 28 19:54:03 ugh... Nov 28 19:55:16 Napalm: not, only Ant. I'm downloading Gradle for test compiling Nov 28 19:55:31 anyone have a better way of moving assets around/? Nov 28 19:55:36 Napalm: I'm really confused by that. Nov 28 19:55:45 Narzew: your probably better off migrating your project to Gradle Nov 28 19:56:04 Napalm: it's IDE or command-line tool ? Nov 28 19:56:11 command line Nov 28 19:56:26 Napalm: Are you saying I should implement that interface *and* use addHeaderView? Or implement that interface instead of using addHeaderView? Nov 28 19:56:28 Narzew: its a build tool like ant.. where Android Studio is the IDE Nov 28 19:56:42 TacticalJoke: instead of Nov 28 19:57:45 I have too crappy PC to run IDE, this is why I ask Nov 28 19:58:14 Napalm: So my WrapperListAdapter class will deal with headers/footers/whatever and return my *actual* adapter via getWrapperAdapter? Nov 28 19:58:22 yes Nov 28 19:59:23 Napalm: Is this something that people do often? Google shows very little. lol Nov 28 19:59:33 yes Nov 28 19:59:47 its a standard composition pattern Nov 28 20:00:15 Does ListView call getWrappedAdapter at some point, then? Nov 28 20:00:26 In other words, I simply say "myListView.setAdapter(myWrapperAdapter);"? Nov 28 20:00:38 yes Nov 28 20:00:52 thats all the ListView does internally Nov 28 20:01:37 if you have already called addHeaderView then it wraps your adapter, and when you call getAdapter it calls getWrappedAdapter and returns that Nov 28 20:01:56 Okay. Nov 28 20:02:13 Is WrapperListAdapter really intended for our use, though? lol Nov 28 20:02:19 yes Nov 28 20:02:19 It's weird when Google doesn't know much about something. Freaks me out. Nov 28 20:02:45 the screen brightness levels in lollipop are so great Nov 28 20:02:56 I can actually set it to a dim level at night Nov 28 20:15:30 I wish developer options had a way to invoke stack dumps of debuggable apps at arbitrary times Nov 28 20:15:54 it would be so useful to see wtf my app is anr while I'm not connected to adb Nov 28 20:16:52 or if adb over wifi could be enabled via developer options, rather than root or adb-usb Nov 28 20:17:36 THANK YOU , i did solve it , you are the best Nov 28 20:17:45 (stock roms of course aware that 3rd party roms can enable adb-wifi via dev options) Nov 28 20:18:41 I always end up with like 200 Google Chrome tabs when I have an Android issue. Nov 28 20:21:04 pfn: Don't anrs create a traces.txt ? Nov 28 20:22:00 they seem to dump all processes and not indicative of what's wrong, at least by the time I can pull them from device Nov 28 20:24:10 I get gradle error with : "apply plugin: 'android'" Nov 28 20:38:29 Narzew: You porbably need 'com.android.application', if gradle didn't already tell you that :) Nov 28 20:56:40 question about structuring oop projects. Is it a good idea to create as much objects as possible in a main method like e.g. in MainActivity/ onCreate. ANd then pass the necessary data directly into each object? I got the feeling it ends up quite chaotic if I create objects within objects Nov 28 21:00:00 day: It depends. Nov 28 21:00:35 As they say, a class should do "one thing". Nov 28 21:00:44 If your class is doing two things, it's basically two classes in one. Nov 28 21:01:28 TacticalJoke: the question is, does a class do two things if it creates another object from another class within self? Nov 28 21:01:43 day maybe look at dagger Nov 28 21:01:48 I guess the issue is defining a 'thing'. Nov 28 21:02:00 A class doing one thing basically means a class operating at one level of abstraction. Nov 28 21:02:17 TacticalJoke: if class A has the job to print the output of class B. I can either pass that data during the object B creation. or i can create Object B within Object A :/ Nov 28 21:02:36 dujring the object A creation* Nov 28 21:03:13 now that I think about it, its quite stupid create object B within object A :/ Nov 28 21:03:21 day: Can you give an exact example? Nov 28 21:03:24 It all depends on the details. Nov 28 21:03:37 true Nov 28 21:03:42 Generally speaking, though, if B has some state then *B* should be the one operating on that state. Nov 28 21:03:52 A should simply ask B to do stuff to its own private state, in general. Nov 28 21:03:56 But it all depends on the details. Nov 28 21:05:01 I installed android studio on windows yesterday and I can't get passed the "building ... Gradle project info" - "Gradle Build" stage as it hangs indefenitely Nov 28 21:05:34 g00s: what is dagger? Nov 28 21:06:11 day: you know theres a thing called Google right? Nov 28 21:06:27 Napalm: please think... Nov 28 21:06:32 i can hardly google dagger Nov 28 21:06:39 yes you can Nov 28 21:06:45 i know what im going to find before i do it Nov 28 21:06:48 Add "android" or something. Nov 28 21:06:52 lol Nov 28 21:07:01 even then. i dont even know what it might be Nov 28 21:07:10 is it a book? Nov 28 21:07:11 Or "JakeWharton". :D Nov 28 21:07:14 :P Nov 28 21:07:15 lol Nov 28 21:07:18 It's not a weapon. Nov 28 21:07:27 If that helps. Nov 28 21:07:50 i figured that much Nov 28 21:08:35 Napalm: From 4.0 onwards, we can call addHeaderView after setAdapter as long as we've called addHeaderView at least once before setAdapter. Nov 28 21:08:51 But below 4.0 you can *never* call addHeaderView after setAdapter. Nov 28 21:09:08 Since my app supports 4.0.3+, I'm thinking of just taking the easy route and using addHeaderView. :D Nov 28 21:09:31 I checked the code for loads of Android versions, BTW. Nov 28 21:09:50 Seems to have been introduced in 4.0. Nov 28 21:10:28 i just realized that WP pull to refresh spinning graphic in skype ... looks exactly the same as support lib pull to refresh view Nov 28 21:11:09 On that topic, I'm not a huge fan of pull-to-refresh. I much prefer Refresh buttons. I wonder whether I'm the only one. Nov 28 21:11:20 (Though I do realise that Refresh buttons take spaces.) Nov 28 21:11:30 space* Nov 28 21:12:19 day: if you google "dagger -weapon" (without quotes) you'll get results that are not related to weapons :P Nov 28 21:12:37 day: and the first 2 results are what you want :) Nov 28 21:12:38 I think day is asking a basic OOP question. Nov 28 21:12:47 yes Nov 28 21:12:47 Because he or she was in here asking about the fundamentals of OOP the other day. Nov 28 21:12:58 ic Nov 28 21:13:00 day: Can you give an exact example? Nov 28 21:13:03 Of what you mean. Nov 28 21:15:26 i wouldn't worry to much about OOP. must minimize coupling, maximize cohesion, and you're 90% of the way there Nov 28 21:15:40 of course some coupling is required or you can't get any work done Nov 28 21:15:48 MainActivity oncreate creates the GridviewAdapter. The GridviewAdapter creates an Object Array. The Objects create further objects to do further stuff. Its a giant tree. Which looks and feels bad Nov 28 21:16:17 day and Android isn't to obsessed with OOP either; bad abstractions are everywhere Nov 28 21:16:30 I could instead create everything in the MainActivity and pass the necessary stuff directly to the objects Nov 28 21:16:34 day: It shouldn't feel bad. Nov 28 21:16:50 It's object-oriented programming. Objects are everywhere. Nov 28 21:16:56 Well maybe its just me being bad @thinking in oop terms Nov 28 21:17:32 Are you concerned about memory use or something? Nov 28 21:17:36 I think you said you were coming from C. Nov 28 21:17:36 TacticalJoke: the question boils down to: SHould i strive to keep the objects creation tree low or big? Nov 28 21:17:46 You should strive to match it to the problem domain. Nov 28 21:17:48 No bigger, no smaller. Nov 28 21:18:12 TacticalJoke: Memory isnt a concern atm Nov 28 21:19:23 What is the concern? Code complexity? Nov 28 21:19:35 TacticalJoke: yes Nov 28 21:19:57 The thing is, what is the alternative? A whole load of stuff in one object? That doesn't sound simple or maintainable. Nov 28 21:20:10 s/object/class/ Nov 28 21:26:30 day: Note that Android's view-related adapters are slightly complex. Nov 28 21:26:42 It's a powerful pattern, at the cost of some complexity. Nov 28 21:27:42 TacticalJoke: i just think that i should only pass the necessary data to the view-related adapter. Not letting it create objects etc.. Nov 28 21:27:47 Lets us do all kinds of crazy stuff with lists/grids/whatever. Nov 28 21:28:32 but the problem REALLY begins when i have to do parallel/background stuff. Because then im bound to use onPostExecute. Which forces me to intervene classes Nov 28 21:28:36 Which objects is it creating? Nov 28 21:28:55 wait intervene is the wrong word Nov 28 21:30:14 intertwine* Nov 28 21:31:10 TacticalJoke: in my case it creates the objects that it has to display. But these objects contain much more data then necessary to display them Nov 28 21:31:20 than* Nov 28 21:31:31 The views? Nov 28 21:31:50 bye Nov 28 21:33:03 TacticalJoke: the views yes. And the objects as well. (name,imagelink,....). It seems more sensible to simply pass the imagelink to the adapter, because thats all it needs Nov 28 21:34:22 If it only needs the "image link", why are you giving it anything else? Nov 28 21:35:05 well i had to create the object somewhere. And slowly the adapter object became the main object :P Nov 28 21:36:09 ah, fuck Nov 28 21:36:14 day: It might be that you should be creating the data elsewhere and giving it to the adapter. Though it's hard for me to say without seeing the actual code. Nov 28 21:36:27 half a day wasted over stupid concurrency issue Nov 28 21:36:29 blaahhhh Nov 28 21:36:48 TacticalJoke: well im just trying to get a better understanding of oop structuring Nov 28 21:36:50 I caught one of those couple weeks back ... thank got for HG / bisect Nov 28 21:37:17 but i guess, keeping everything on a need to know basis is the best 'general direction' Nov 28 21:59:01 fuck, i wish there was a way to disable system-wide that stupid behavior of hiding the actionbar when i scroll content. i absolutely fucking hate that Nov 28 22:00:06 the premise is stupid, if its takeing up space its taking up space from the get go before i scroll. after i scroll i guess they assume you suddenly aren't interested in any actions in the AB any more Nov 28 22:03:55 hello Nov 28 22:04:29 ohai Nov 28 22:04:50 does Google still offer direct access to youtube videos via their v3 api? Nov 28 22:04:59 I mean, access the video itself Nov 28 22:05:35 system wide? Nov 28 22:05:39 it's not system wide Nov 28 22:05:42 it's per app Nov 28 22:06:03 and I personally like it Nov 28 22:06:20 pfn, you talking to me? Nov 28 22:06:35 no Nov 28 22:06:53 I like it for web browsers. Not sure about other stuff. Nov 28 22:10:26 it's not used prolifically in other stuff Nov 28 22:11:09 I was thinking about using it for my app, but I'm not sure it's a great idea. Maybe it could be a user settings (off by default). Nov 28 22:11:45 its probably not worth polluting the settings UI for that. just choose one way and listen to feedback Nov 28 22:11:58 Yeah, true. Nov 28 22:13:25 man I just realized that sometimes, when you add a field to the database in database v3 (app v3 also), and some user let's say was still on version 1 of the app and did not update until version 3, they will skip the onUpgrade() call to the creation of that field in the database Nov 28 22:13:33 ff scrolls the url bar with content which I hate but it saves screen on small devices and has an override Nov 28 22:13:35 and they'll end up with queries that are asking for that field, therefore exception! Nov 28 22:14:05 Odaym schema upgrade , gotta handle every ver to every ver Nov 28 22:14:11 see how they do it in iosched Nov 28 22:14:17 didn't cross my mind Nov 28 22:14:40 just got an exception report that said no field, I said that's impossible; well not in this case it inst Nov 28 22:14:48 i'm kinda screwed, i have users on one version of my ap using a content provider + sqlite, and i want to migrate away from sqlite Nov 28 22:15:04 terrified of the migration code and fucking things up, losing data, pissing people off, etc Nov 28 22:15:18 database on the mobile should be gone with Nov 28 22:15:32 save everything on the cloud Nov 28 22:15:33 ------------- Nov 28 22:15:33 profit Nov 28 22:15:46 what will you do when not connected :| Nov 28 22:15:56 that's the ----------- part Nov 28 22:16:10 startup idea! Nov 28 22:16:22 well, thats firebase Nov 28 22:16:27 and google grabbed them Nov 28 22:17:57 cloud storage exposes too much stuff Nov 28 22:18:19 thats why google grabbed them :p Nov 28 22:18:31 any of you remember that test I posted here about 2 days ago, the one that had a time limit of 2 hours? Nov 28 22:18:32 lol Nov 28 22:18:36 not that things like amazon grabbing stuff iff your eevuc doesn't happen Nov 28 22:19:46 but local control is an important option was my point Nov 28 22:20:14 well they refused me based on what I submitted as an answer to that test Nov 28 22:21:37 who refused you what? should I ask? Nov 28 22:22:04 company abroad, they gave me a test to do in 2 hours Nov 28 22:22:26 I posted a question about it on SO, then realized that it wasn't the place for such a question. Went to programmers.stack and got downvoted for the question Nov 28 22:22:43 don't know where the place for it is, I wanted to know whether it was my shortcomings or the unreasonable time limit that got me refused Nov 28 22:23:03 you wanted others to do your homework? Nov 28 22:23:05 thought you said you nailed the test Nov 28 22:23:20 I know! right? Nov 28 22:23:29 :) Nov 28 22:23:41 it's not like I dont know the answers whether they were right or wrong, the app is working Nov 28 22:23:52 they said "key requirements missing" and stuff like that Nov 28 22:24:05 the HR talked to me, not the guy who reviewed it Nov 28 22:24:18 I feel like they screwed me on the time, what I did was very reasonable for 2 hours! Nov 28 22:25:00 I'm not a fucking robot, things like that need time man! Nov 28 22:25:03 where's the so link ? curious for unrelated reason Nov 28 22:25:13 well I didnt get to post it! if you read above Nov 28 22:25:18 I'll pastebin it Nov 28 22:25:43 said you posted in so but ok Nov 28 22:26:13 oh, on programmers.stack it got downvoted and put on hold for being too opinionated Nov 28 22:26:15 so I took it down Nov 28 22:26:37 android-studio is driving me mad, it won't finish the damn "Gradle: build" stage Nov 28 22:26:58 hahahaha :) might have been you on a bad hair day Nov 28 22:27:07 pastie is being stupid Nov 28 22:27:14 you Create Paste and it says page not found, lol Nov 28 22:27:50 http://pastebin.com/j3k5A9qu Nov 28 22:27:52 2hours for their requirement was a bit tight unless you already had some classes already in mind todo what they wanted. most of time would be on ui and sorting Nov 28 22:28:16 I think that because of the last question, they thought it was a post for attention whoring, like I want to hear people telling me "no man you did well! those are sons of bitches! you deserve the best!" Nov 28 22:28:20 I guess it's my wording Nov 28 22:28:37 because of the last setence* Nov 28 22:28:41 sentence* Nov 28 22:31:07 ehh, any idea about what is exposedbridge? Nov 28 22:31:22 XposedBridge* Nov 28 22:32:24 someone is trying to run my app in xposedbridge Nov 28 22:32:29 :O Nov 28 22:33:00 youre sneaky Nov 28 22:33:25 i am, i read all the error logs Nov 28 22:38:08 capella-s3, did you read? Nov 28 22:38:33 hey what do you do, whatitis ? Nov 28 22:39:17 How can I add the android global search activity as a widget inside my application.. Nov 28 22:39:26 nothing :) Nov 28 22:39:32 I read your description of what you did, sounds reasonable Nov 28 22:39:45 right? Nov 28 22:40:01 I mean it's easy when you look at it, just not 2 fucking hours! Nov 28 22:40:14 contracting, whatitis ? Nov 28 22:40:37 Odaym: Those were some steep requirements for 2 hours. Sounds like you did as well as could be expected. But it also looks like one of those "you're not expected to finish, we just want to see how you work" kind of tests. Nov 28 22:41:03 I sent him the source from my own accord, they just wanted the APK Nov 28 22:41:12 but I sent the source cause I was proud of how it was done! Nov 28 22:41:23 so someone is trying to mod my first and only app running it as module with a library? i feel flattered and sad for that guy Nov 28 22:41:26 Im SURE they didnt read anything of it, it might have crashed there that's all Nov 28 22:41:27 :^) Nov 28 22:41:34 and then not a second thought of it, after the crash Nov 28 22:41:38 often the idea as you wire frame it us more important than the deliverable... and the personal interactions with your reviewer... maybe you didnt come across comfortably Nov 28 22:41:49 just a hobby, been doing it forever. lastest project burned me out. sucks cause its use may become obsolete if no root with 5.0 spent way too many months on it Nov 28 22:42:05 so, android studio isn't supposed to really work, right? Nov 28 22:42:08 nah there's nothing that's wasted whatitis Nov 28 22:42:20 yea capella-s3, I know that Nov 28 22:42:29 android studio works just fine for most things Nov 28 22:42:32 Odaym: looking at that test. I wouldnt think too much about it. The people who got picked probably solved it with teamwork Nov 28 22:42:35 I guess if I know I did well, that's all that matters, doesnt need any more discussion after that Nov 28 22:42:51 yep Nov 28 22:43:14 it is if root isnt capable with 5.0, but I havent been keeping up for a bit. its a cool app for developers, but burned me on soooo much detail Nov 28 22:43:40 What is it, whatitis? Nov 28 22:43:52 I have tons of half written apps, just detail kills Nov 28 22:43:57 it is whatitis .... Nov 28 22:44:06 I bet having this: "[ERROR] [org.gradle.messaging.remote.internal.inet.TcpIncomingConnector] Could not accept remote connection" in my gradle deamon logs isn't good Nov 28 22:44:39 When I first saw his name, I thought it was "what-itis". As in "inflammation of the what". Nov 28 22:44:51 haha Nov 28 22:44:56 funny Nov 28 22:44:56 latest one is for logcat. tons of detail, my happiest feature is remote viewing from device to device over wifi Nov 28 22:45:00 im st ill not sure if it is wha tits. or what it is Nov 28 22:45:10 I have an app that burned my hopes for a while, right now I am chasing another cow Nov 28 22:45:54 my main problem is I quit smoking weed, killed my enthusiasm :) Nov 28 22:45:56 Odaym: is that app even remotely doable in 2h? Nov 28 22:46:15 move to portland! Nov 28 22:46:22 I've never tried weed. Nov 28 22:46:39 4:20 toke time. Nov 28 22:46:43 fire in the bowl! Nov 28 22:47:43 its great to a point for focus and creativity and drive, but then once you get stuck on relying on it to sit and code and you stop smoking. its a bit of a transition period. got burnt on coding tho. app is looking good, its just mundane details that I hate Nov 28 22:47:52 weed and recursive algorithms dont mix :/ Nov 28 22:49:23 I love mundane details. :D Nov 28 22:49:37 day, yea look at it Nov 28 22:49:39 Stuff to obsess over. Nov 28 22:49:51 Though it depends on the topic. Nov 28 22:49:53 I have like 8 system tool apps from disk io, network io, cpu usage, terminal emulator, logcat viewer, sql viewer and few more that I have to recode. just daunting as you write thousands of lines of code, then you learn a better way for something that involves tons of refactor Nov 28 22:49:58 you just call the API and get the stuff, load it into the DB and fetch it from the DB into a listview upon entry Nov 28 22:50:33 the sort I didnt really understand much though, that's why I just called the URL with different parameters, didnt even look at the 2nd page where the example of the sort were Nov 28 22:50:49 but they were all (the sorting options) in a menu and everything Nov 28 22:52:20 their C T O looked at the app Nov 28 22:52:21 haha Nov 28 22:52:28 C T O Nov 28 22:52:34 _________ CCCCCCCC TTTTTTTTT OOOOOOOOOOOOOOO___________ Nov 28 22:52:37 what a title Nov 28 22:52:58 just a title... ive direct reported to cio before Nov 28 22:53:12 Im going to call myself a P M Q Nov 28 22:53:26 really hard part is I dont follow convention of typical ab and nav and such, I just code my own, but then I rewrite and rewrite and rewrite all of it simply cause I learn to hate things easily. specially sucks deving for phone then working tab and the back and forth Nov 28 22:53:30 Professional Manager Querybuilder Nov 28 22:56:41 well, later Nov 28 22:59:11 can i specify the bitrate/frame rate/size in code when recording a video from my cam on my android? Nov 28 23:36:52 should app.iml be gitignored? when dealing with multiple flavors, it keeps changing according the selected variant Nov 28 23:37:04 yes Nov 28 23:37:57 I always ignore all IDE files, it should be easy to import a project just by its gradle definition Nov 28 23:39:46 I have a com.google.android.gms.maps.MapView that I'm dynamically swapping into a FrameLayout in my app when a certain state is reached. When the map first renders, it shows the two markers I added, but just a grey grid for the background. I'm getting no authorization errors in the log and the tiles will render if I leave the app and come back. Any idea why they won't render without leaving first? Nov 28 23:41:13 sonOfRa, i'm using the gitignore generated by AS, but it seems to be broken, regarding app.iml Nov 28 23:42:59 Hello all, I'm having a strange issue and I just can't figure it out. Basically, I'm starting an Activity from a class that implements BroadcastReceiver, but if the screen is turned off before this activity is started, then another activity is also started (why?) and the activity that I'm trying to start get's destroyed right away along with the other activity Nov 28 23:43:20 more detailed description can be found here http://stackoverflow.com/questions/27182871/im-starting-an-activity-from-a-broadcast-receiver-but-why-is-my-other-activity Nov 28 23:48:17 caseycrites, that seems like itd be related to network speed of downloading grid parts Nov 28 23:48:35 tpfaff, are you acquiring the wakelock? Nov 28 23:49:47 whatitis: yeah, that was my initial hope/thought, but the results are the same regardless of network speed Nov 28 23:50:30 bitkiller, yes I am acquiring a wakelock in my AlarmActivity Nov 28 23:50:32 I just know that if 0 network, the marker wil Nov 28 23:50:44 I'm thinking I'm maybe not hooking up one of the activity lifecycle callbacks correctly Nov 28 23:50:53 set with gps but if 0 network grid stays grey without image Nov 28 23:51:56 maybe try caching for offline and see how it works, and how are you testing network speed to google? Nov 28 23:53:05 just if marking without map images seems you arent getting those images in a timely manner, as eventually it loads Nov 29 00:01:01 no specific tests for network speed, but it's been happening for weeks Nov 29 00:01:21 and it's not really that it 'eventually' loads, it 'immediately' loads if I go away and come back Nov 29 00:02:13 maybe needing to invalidate the mapview, might get more assistance if can post some code Nov 29 00:02:55 yeah, tried invalidating the mapview, I've got one last thing I'm going to try and if htat doesn't fix it, I'll post some code Nov 29 00:04:23 seems you shouldnt need to manually invalidate views. maybe google mapview not refreshing til reload of activity or such Nov 29 00:05:29 yeah, that's what I'm thinking. I'm manually triggering the onCreate lifecycle callback since the mapview isn't inflated when the activity is initially created, but I'm thinking I may have to manually trigger the onResume as well Nov 29 00:05:35 could be in the way you say you are swapping Nov 29 00:06:03 manually triggering onCreate sounds bad Nov 29 00:06:20 so seems like your code could be culprit Nov 29 00:07:05 why are you manually doing that? Nov 29 00:07:07 you shouldnt ever manually call life cycle methods Nov 29 00:07:31 because the MapView needs to know about activity lifecycle methods Nov 29 00:07:44 and this particular mapview is not inflated when the activity is created Nov 29 00:08:05 you have to manually call those methods with the MapView Nov 29 00:08:15 so you are adding the mapview at runtime? Nov 29 00:08:22 yes Nov 29 00:08:31 no you never manually call those methods Nov 29 00:08:43 you can add to layout and refresh Nov 29 00:09:32 and if adding at time of onCreate, you do the adding there and return, you dont call onCreate twice Nov 29 00:09:35 you hook the MapView into the activity lifecycle methods, so when the activity's onCreate/onPause/onResume/etc is called, so is the MapViews Nov 29 00:09:59 you are better off pastebin' code Nov 29 00:10:04 I fixed it Nov 29 00:10:11 cause you are off track Nov 29 00:10:17 as I expected, it needed onResume Nov 29 00:10:17 how Nov 29 00:11:33 hi Nov 29 00:11:41 is anyone having issues with Google Play servers? Nov 29 00:11:56 my download time is 1/100th the normal time Nov 29 00:12:13 norma Nov 29 00:12:15 whatitis: https://developers.google.com/maps/documentation/android/map#mapview Nov 29 00:12:15 l? Nov 29 00:12:19 also i am having sporadic problems with authentication Nov 29 00:13:00 the 2nd paragraph talks about forwarding activity lifecycle methods, which is what I'm doing, however the initial creation of the mapview is after onCreate/onResume, so they need to be manually triggered Nov 29 00:13:51 casey so its not a view its a fragment? Nov 29 00:14:44 whatitis: it's a view Nov 29 00:14:45 Hi Nov 29 00:15:38 Why should I use fragments instead of setContentView() when I want to change my activity view? Nov 29 00:16:12 ah but it says its a view that needs a view container, seems whacky to need to pass all those lifecycles to it Nov 29 00:16:52 whatitis: yeah, it's a bit strange, and would probably have been very straightforward if I was creating a new activity with the mapview as it's only view, but that's just not the case Nov 29 00:17:04 MalekAlrwily: There are many reasons, one of which is that the fragmentManager handles animations between fragments for you automatically, and also adds/remvoes fragments from a backstack, so pressing the back button will take you back to your previous fragment on the stack, etc. Nov 29 00:17:26 mapfragment may have made more sense, but some hate fragments Nov 29 00:17:41 yeah, no fragments for me Nov 29 00:18:10 tpfaff: Thank you for explaining that :D Nov 29 00:18:20 chao chao! Nov 29 00:18:29 malekalrwily, youd still need setcontentview with fragments, youd just use containers to swap fragments while keeping it a single activity Nov 29 00:18:49 can anyone help me o Nov 29 00:18:51 or what Nov 29 00:19:47 agamemnus, you havent really described a problem with what you tried, how you tried and showed any code Nov 29 00:19:54 just you words of slow Nov 29 00:20:26 so Nov 29 00:20:31 some kind of shit is going on Nov 29 00:20:37 that i can't explain :| Nov 29 00:21:00 then no help, besides learn to turn shit to fertilizer Nov 29 00:21:45 so here's a line Nov 29 00:21:49 accessToken = GoogleAuthUtil.getToken (context, accountName, scope); Nov 29 00:22:16 My scope value is: 'String scope = "oauth2:" + Scopes.PROFILE + " " + "email";'.. is this not the right value for getting normal profile plus email? Nov 29 00:22:32 I'm beginning to suspect it isn't but i' Nov 29 00:22:38 I'm not sure what's going on Nov 29 00:23:18 damn you been at this for 3-4+ weeks? or someone else has had same issue Nov 29 00:23:32 what dles Nov 29 00:23:42 what does the api ask for? Nov 29 00:24:04 here is a link Nov 29 00:25:02 http://developer.android.com/reference/com/google/android/gms/auth/GoogleAuthUtil.html#getToken%28android.content.Context,%20java.lang.String,%20java.lang.String,%20android.os.Bundle%29 Nov 29 00:25:14 and yes have been at this for 3-4+ weeks Nov 29 00:26:01 I think I messed up with my settings SOMEWHERE.. Nov 29 00:26:15 I'm using Java for phone version, hello.js for Javascript web version. Nov 29 00:26:25 hello.js gets the authentication and access token just fine. Nov 29 00:26:37 and Java used to. Until today. It's sporadic Nov 29 00:27:14 I get an access token from the Java code and send it to my server Nov 29 00:27:28 When I try to use the access token, I get an authorization error Nov 29 00:28:11 I can log in just fine on the app part of it. Nov 29 00:28:31 It's just that the server can't seem to use the access token for some reason. Or, if I input it manually, I can't use it either. Nov 29 00:28:44 I was able to earlier, and then not, and so on. Nov 29 00:29:19 maybe it is my wireless connection. Nov 29 00:31:20 NB: the server can use the access token if it is coming from hello.js's method Nov 29 00:31:38 Possibly, String scope = "oauth2:" + Scopes.PROFILE + " " + "email"; Nov 29 00:31:44 never worked (sorry) Nov 29 00:33:47 i'm just very confused Nov 29 00:36:14 Hello all, I'm having a strange issue and I just can't figure it out. Basically, I'm starting an Activity from a class that implements BroadcastReceiver, but if the screen is turned off before this activity is started, then another activity is also started (why?) and the activity that I'm trying to start get's destroyed right away along with the other activity Nov 29 00:36:21 more detailed description can be found here http://stackoverflow.com/questions/27182871/im-starting-an-activity-from-a-broadcast-receiver-but-why-is-my-other-activity Nov 29 00:36:31 hi guys, my buttons does not work on emulator api 19, but works on amulator api 21. What causes this problem? Nov 29 00:36:51 Is it common to use retrofit.client.Request/Response? (I guess from square's code?) Nov 29 00:38:07 Napalm: There's one thing I don't understand about that code -- is getWrappedAdapter ever actually used? Nov 29 00:39:17 TacticalJoke: no, you would call it if you want to get the adapter you have wrapped Nov 29 00:39:21 Okay. Nov 29 00:39:25 agamemnus , your link says to see another method with an additional bundle arg, you scope seems it should just be scopes, nowhere does it show adding email to scope. maybe that should be passed with bundle? Nov 29 00:39:55 maybe that is the wrong function, let me look once more Nov 29 00:39:55 I still can't decide whether to use that or to simply rely on the new (4.0+) behaviour of allowing addHeaderView/addFooterView after setAdapter as long as one of the two is called before setAdapter. lol Nov 29 00:40:11 The latter is way simpler, but it's kinda annoying. Nov 29 00:40:18 scroll up a little Nov 29 00:40:23 On a side note, the code in question is just awful. Nov 29 00:40:25 public static String getToken (Context context, String accountName, String scope) Nov 29 00:40:36 the only problem is I don't know what a valid scope is Nov 29 00:40:46 There was no reason whatsoever they couldn't've simply allowed addHeaderView/addFooterView at any time all along. Nov 29 00:40:47 yea that method says see method with bundle Nov 29 00:41:14 anyone know why my simple button to switch activity works in android 21 but not android 19? No compilation error or anything. Nov 29 00:41:39 Before 4.0, you could never call addHeaderView/addFooterView after setAdapter. They semi-fixed this in 4.0: you could call it in some situations. They finally fixed it in 4.4. But the problem all along was simply that the code was written in a very specific way. Nov 29 00:41:46 There was never any technical reason for all this. Nov 29 00:42:13 no i think that should be in there Nov 29 00:42:21 not in bundle Nov 29 00:42:22 Cervantes: What does the code look like? Nov 29 00:42:35 supposedly, I'm doing it right: Nov 29 00:42:37 tacticaljoke, why dont you just override onscroll and doing math if lastvisible is end of adapters load show a clickable view or just load more if more is to be loaded Nov 29 00:42:40 'String representing the authentication scope. To specify multiple scopes, separate them with a space (for example, "oauth2:scope1 scope2 scope3").' Nov 29 00:43:06 is email a scope? Nov 29 00:43:09 whatitis: I was gonna do that at first, but it's much neater to have a "Load More" view in the list itself. Nov 29 00:43:34 I am not sure Nov 29 00:43:43 Also, using onScroll to do that is kinda messy. You can't figure out when the last item is fully in view: just when the last item has started to come into view. Nov 29 00:43:49 TacticalJoke: they should have never had addHeaderView/addFooterView on ListView Nov 29 00:43:51 To fix *that*, you have to do weird stuff with onTouchWhatever. Nov 29 00:43:59 I cannot find good information on this Nov 29 00:43:59 Napalm: Why? Nov 29 00:44:25 tactical how can you say its neater if you cant implement it? just keep control on scroll of position, and if adapter is near end but you have more data, append adapter and notify Nov 29 00:44:36 I can implement it. Nov 29 00:44:47 TacticalJoke: lots of reasons I cant be bothered explaining right this moment Nov 29 00:44:49 I just like the idea that the user gets to opt into downloading more. Nov 29 00:44:50 then whats with the questions Nov 29 00:44:55 Napalm: Does RecyclerView have anything like this? Nov 29 00:45:03 Or does RecyclerView require that we do it ourselves? Nov 29 00:45:35 this one doesn't mention email: http://developer.android.com/reference/com/google/android/gms/common/Scopes.html Nov 29 00:45:39 TacticalJoke: RecyclerView you do everything yourself.. thats the point Nov 29 00:46:01 Napalm: The one thing I don't like about the DIY approach is that you have to hard-code the headers/footers. Nov 29 00:46:07 if while scrolling you are at <=50 items to end of adapter data show view to add more or automatically do it Nov 29 00:46:07 TacticalJoke: think of RecyclerView as a replacement for ViewGroup that recycles views that go out of the viewport Nov 29 00:46:15 You can't just addHeaderView() whenever you want. Everything has to be fixed. Nov 29 00:46:43 The email scope is there in the web api Nov 29 00:47:27 Cervantes: Which file is it? Nov 29 00:49:01 TacticalJoke: the layouts in app/src/main/res/layout Nov 29 00:49:21 Cervantes: Which activity are you calling and from which activity? Nov 29 00:50:36 TacticalJoke: MainActivity call GameActivity or SettingsActivity Nov 29 00:51:14 You're using startActivityForResult without implementing onActivityResult. Seems a bit weird. Nov 29 00:51:27 Not sure whether that'd cause the problem or not. Nov 29 00:51:32 TacticalJoke: this works and runs well on Emulator 21 Nov 29 00:52:05 TacticalJoke: On Emulator 19, the apps run. But the buttons become unclickable. Nov 29 00:52:39 What do you mean by 'unclickable'? Nov 29 00:52:47 TacticalJoke: since when do you have to hard-code the headers and footers? Nov 29 00:52:54 TacticalJoke: its your code.. do what you like Nov 29 00:53:01 whatitis: Ok, so I went and looked at another half dozen stack overflow posts but I'm no closer to getting the answer. Nov 29 00:53:14 Napalm: What I mean is that we either hard-code them or recreate the whole addHeaderView/addFooterView thing. I think. Nov 29 00:53:17 Or am I wrong. Nov 29 00:53:48 If I want to be able to add headers at whim, it seems I have to implement some kind of addHeaderView method and a list of "headers". Nov 29 00:54:01 TacticalJoke: you can expose a Framelayout as item 0 and item count-1 then you can insert and change the contents whenever you like Nov 29 00:54:29 TacticalJoke: but now you see the limitations of the way ListView actually works.. this is why RecyclerView is better Nov 29 00:54:52 Hmm. What does RecyclerView do here that makes things simpler? Nov 29 00:56:27 TacticalJoke: it doesnt make things simpler it makes this more flexible Nov 29 00:56:34 tactical you should be less worried bout adding things to listview and more about changing visibility of a view overlayed based on scroll position Nov 29 00:56:58 whatitis: is that what he is trying to do? Nov 29 00:57:26 yea, he just wants to show a view on listview being at bottom to load more Nov 29 00:57:56 Yeah. Nov 29 00:58:17 I don't like the idea of setting the visibility to gone, though. Nov 29 00:58:23 Because you see lines for the missing items. Nov 29 00:58:32 Even if they're more or less 0dp in height. Nov 29 00:58:46 It's microscopic, but it'd drive me mad. :D Nov 29 00:58:56 lol Nov 29 00:59:09 TacticalJoke: you dont want to use addHeaderView and removeHeaderView then Nov 29 00:59:18 just override on onScrollListener and do the math onScroll to show a view to load more if you have more data than adapter has Nov 29 00:59:20 or footerview Nov 29 00:59:32 I can get things working with addHeaderView, but I have to set the list to invisible when it has no items. Nov 29 00:59:41 Or else the header/footer is showing when it shouldn't be. Nov 29 00:59:58 TacticalJoke: you only see lines for missing items because they are enabled.. list dividers are only for enabled items Nov 29 01:00:04 I would back up from that approach as well Nov 29 01:00:09 Ooh. Lemme try that. Nov 29 01:00:17 tpfaff: From the "load more" approach? Nov 29 01:00:29 I might do an example of this Nov 29 01:00:39 lazy load more and show/hide header Nov 29 01:00:46 its an interesting ux pattern Nov 29 01:01:06 TacticalJoke, i don't think you should try to add views when scrolling Nov 29 01:01:17 with addFooter Nov 29 01:01:21 Basically, I'm adding a footer at the very beginning. Nov 29 01:01:26 It's always there ("Load More"). Nov 29 01:02:37 TacticalJoke: ok, so i implemented onActivityResult for all of the activities. The app runs like this in emulator 21, http://tinypic.com/r/2v9f47s/8 Nov 29 01:02:39 tactical, I do a load more with app im doing, minus showing the more for now. just if scrolling and reach bottom I have data seperate from adapter to allow showing more. I only give adapter a small amount. if they want more scroll to get it. basically keep it small with large list, if needing more only load to adapter when requested Nov 29 01:03:23 so keep all data. but if hundreds of items or even thousands, no need to pollute adapter if not viewing Nov 29 01:05:10 Napalm: I'm guessing I can't disable these list items when using addHeaderView? Nov 29 01:05:16 whatitis: I'm tempted to do it that way. Nov 29 01:05:19 That was my initial plan, in fact. Nov 29 01:05:25 do it Nov 29 01:05:39 whatitis: Do you show a progress bar? Nov 29 01:05:44 have all data, but only give adapter what is needed Nov 29 01:06:46 The problem with this way is that I have to show a progress bar below/above the ListView. Nov 29 01:06:53 no, cause I keep a raw list, and parse when needing more, just gotta remember its fast to parse and load an extra 100 items Nov 29 01:07:00 That has some pluses (it's obvious what's going on) but it might look weird. Nov 29 01:07:17 even a 100 items is alot to view/read Nov 29 01:07:28 keep it sensible in the parsing Nov 29 01:07:42 This is more about downloading. Nov 29 01:08:08 but you are only showing 5-10 ofs Nov 29 01:08:17 of 1s Nov 29 01:08:18 ok Nov 29 01:08:20 100s Nov 29 01:08:23 damn Nov 29 01:08:26 it seems I needed to add ".addScope(Plus.SCOPE_PLUS_PROFILE)" Nov 29 01:08:45 It seems like no effort was spared to write the docs for this !@#$% Nov 29 01:08:59 keep the loading in background, and cache what you need, but visibility is the key based on your app Nov 29 01:09:33 I'm not sure whether or not it'd created a good UX to simply download data when we're N items above the end without showing a ProgressBar or anything. Hmm. Nov 29 01:09:35 so if needing to download 100s of items, but initia Nov 29 01:09:49 initial display is 5 items, its cake Nov 29 01:09:57 create* Nov 29 01:10:29 If their connection is slow, they could hit the bottom of the list and get confused about why there's no more data. Nov 29 01:10:46 This is why I like the footer-view thing. ;| Nov 29 01:10:48 tactical download whatever, display minimum, but also keep in mind of most users on contracts limits Nov 29 01:10:54 It could so easily change from "Load More" to a progress bar. Nov 29 01:11:30 tactical then if within a radius of 50 or whatever to end lazy load in background more Nov 29 01:11:57 just be smart about data usage and guessing how far theyll go Nov 29 01:11:58 And what if their connection is slow and they hit the bottom of the list? Nov 29 01:12:16 They'll think "This is weird; it usually just keeps loading data. Today it's suddenly stopped". Nov 29 01:12:26 then add a buffer to if 50 items from end then load Nov 29 01:12:39 It could still happen. lol Nov 29 01:12:40 find a good medium Nov 29 01:12:57 Hmm Nov 29 01:13:01 what about Nov 29 01:13:04 if they are just scrolling like on meth, then f them Nov 29 01:13:09 lol Nov 29 01:13:41 Morgan Freeman Nov 29 01:13:49 Toast.makeText(this, "Slow the fuck down.", Toast.LENGTH_LONG).show(); Nov 29 01:14:09 load as much as you can. if just text, you can buffer a bunch, lazy load images, but text is nothing to preload more than they can scro Nov 29 01:14:10 l Nov 29 01:14:11 l Nov 29 01:16:10 Is there a way to delete old APKs or expansion files on Google Play? Nov 29 01:17:17 unpublish, but no deleting Nov 29 01:17:34 tacticaljoke, how many items are visib Nov 29 01:17:41 I see Nov 29 01:17:47 visible at a time, and images? Nov 29 01:17:48 Around six at a time. Nov 29 01:17:53 I added about 500MB of data to Google's servers today Nov 29 01:18:00 Let them choke on it. ._. Nov 29 01:18:22 tacticaljoke, any images? Nov 29 01:18:29 Not yet, but there will be. Nov 29 01:18:36 Thumbnails for image posts. Nov 29 01:19:01 like recyclable avatars, or images related to post? Nov 29 01:19:50 The latter. Nov 29 01:23:28 well for the text, that should be super fast, if showing visibly around six at a time, you can buffer round 3-4 times that, and within 25% of end while scrolling maybe load in background another 3 times that. adding images will change things a bit, but if they are thumbnails say 20k or less in size shouldnt be too complicated. main thing would be to cache images to disk as much as possible to remove network latency. but also add a c Nov 29 01:23:35 So much of Android feels like a hack. Even the onScroll thing doesn't work in any sane way. Nov 29 01:23:48 It's impossible to detect when the final item is fully in view. All you can detect is when it starts to come into view. Nov 29 01:24:09 That is because Android is a mess of spaghetti code. Nov 29 01:24:18 Yeah, I'll be caching images a lot. Nov 29 01:24:19 just like java :d Nov 29 01:24:45 thats why you add the buffer of if in range of 10-20% of end check for more. dont wait til complete end Nov 29 01:24:50 Yeah. Nov 29 01:25:00 But even that calcuation has to take into account that we can't detect the complete end. lol Nov 29 01:25:26 TacticalJoke: it works fine.. its just ListView Nov 29 01:25:36 or even with text load hundreds, even if showing 6 items. text is cheap Nov 29 01:25:54 never expect an end Nov 29 01:26:01 Napalm: Just wondering, do you have any opinion about all this? Could I just load more data without showing a progress bar or anything? Not sure whether that'd be weird for the user. Nov 29 01:26:07 Like if they scroll to the end and nothing has downloaded yet. Nov 29 01:26:16 TacticalJoke: you can detect when it comes fully into view Nov 29 01:26:33 Napalm: Not with onScroll, though. Nov 29 01:26:43 yes Nov 29 01:26:45 then their network sucks, just give them visibility of complete end, or loading Nov 29 01:26:46 How? Nov 29 01:27:30 I'll do an example in a bit Nov 29 01:27:34 You can check if the bottom of the last view is > the bottom of the list view.. If not, its fully in view Nov 29 01:30:36 SimonVT: yes, but the question is when, if i remember correct the AbsListView.OnScrollListener can be called before layout has been completed.. so in which case you need to use the ListView's ViewTreeObserver Nov 29 01:31:48 ViewTreeObservers aren't specific to a view Nov 29 01:34:38 SimonVT: yes, bad wording but you would do it in the onScrollListener callback in which case you get a ListView view to get the ViewTreeObserver from :P Nov 29 01:35:36 Napalm: Does your solution involve measuring the height of the last list item? Nov 29 01:36:41 TacticalJoke: you dont need to measure it, its already been measured.. but yes you call getHeight() on the last child Nov 29 01:37:50 Not sure why you'd need a ViewTreeObserver Nov 29 01:38:50 SimonVT: as I said, I'm unsure if the you get the callback before Layout has finished.. in which case you would need to wait for layout to complete before testing the position and height of the views Nov 29 01:44:57 Hi all. Question: if i use Bitmap.createScaledBitmap(bitmapVar, width, height, false); I get a streched version of bitmapVar in the given width and height. How would I crop the existing image though, so that it doesnt strecht but cuts off a specified area Nov 29 01:46:02 I feel so much less embarassed for using a WebView after seeing that in one part of their app, Uber is using a WebView. (Just for viewing PDFs using Google's PDF viewer, but still. :) ) Nov 29 01:50:12 Hmm. Everyone on SO is saying that you can't detect that the last ListView item is on screen with onScroll. Nov 29 01:50:23 That's kinda why I gave up trying with that idea. lol Nov 29 01:52:09 if you know height of your listview row Nov 29 01:52:14 you can do something like Nov 29 01:52:34 pointToPosition(0, parent.bottom - 1/2 rowHeight); Nov 29 01:52:55 err probably want parent.bottom - 5 Nov 29 01:52:56 or something Nov 29 01:54:16 and you can use onScroll with a state if moving->stopped getLastPosition and push Nov 29 01:56:01 can't track its item view status as it recycles in getView()? Nov 29 01:56:39 Hmm, I'm trying to use getChildAt but it's giving me null every time. Nov 29 01:57:16 TacticalJoke: http://developer.android.com/reference/android/widget/AbsListView.html#pointToPosition(int, int) Nov 29 01:57:22 tactical, but you dont want end, you want scrolling towards end if more data. and yes you can get absolute end of data given, if so says otherwise they are idiots. just test it Nov 29 01:58:12 and do you want fully visible last row or partially visible? Nov 29 01:58:36 Yeah, fully visible. Partially visible is the really easy part. Nov 29 01:59:24 using pointToPosition you can do something like row.top < listview.bottom - row.height ? --position : position; Nov 29 01:59:48 <= Nov 29 01:59:56 But how do we get 'row' in onScroll? Nov 29 02:00:35 onScroll state changed -> idle , then do pointToPosition(0, listview.bottom - 5 or something) then figure out if that row is fully visible or not (9/10 it probably won't be)? Nov 29 02:03:29 TacticalJoke: view.getFirstVisiblePosition(); Nov 29 02:04:05 onScrollListener then onScroll you get firstVisible, visibleItemCount and totalItemCount, you just do math Nov 29 02:04:20 ^^ Nov 29 02:05:14 Isn't that just the firstVisibleItem paramter? Nov 29 02:05:22 I don't see how that helps us to determine whether the last item is *fully* visible. Nov 29 02:05:27 parameter* Nov 29 02:05:28 math Nov 29 02:05:37 first isnt equal to end Nov 29 02:05:59 first + visible = total then whatever Nov 29 02:06:15 whatitis: That takes us only to the *top* of the last item. Nov 29 02:06:17 I need the bottom. Nov 29 02:06:40 or first+ visible <=50 total then load more cause within range of last 50 Nov 29 02:06:43 if totalItemCount is greater than visibleItemCount, then the last row is partially visible Nov 29 02:07:48 firstvisible + total visible = what is on screen, if you take totalitems minus that you get where you are Nov 29 02:08:14 I have 50 items, first visible is 40 total visible is 10.... Nov 29 02:08:29 This answer looks complex: http://stackoverflow.com/a/6358818 Nov 29 02:09:38 Wait, maybe that's just direction. I'm too tired to think now. Nov 29 02:09:45 its pretty simple, but you dont seem to get it, just play around with it using Log.X with each of the 3 arguments Nov 29 02:09:49 In any case, what a horrible answer. Spawning a whole thread. Nov 29 02:10:15 whatitis: You're talking about detecting when the last item is partially visible. I'm asking about detecting when the last item is fully visible. Nov 29 02:10:28 no Nov 29 02:11:43 first visible plus visible added can equal total. There are no more passed it Nov 29 02:13:05 the fact that you want the overscroll of listview to show and def Nov 29 02:13:11 I'm using the nexus 10 tablet avd in eclipse and it won't recognize the string values I placed in values-w820dp Nov 29 02:13:16 late is.... Nov 29 02:13:36 it always takes the string set in values/strings.xml instead Nov 29 02:14:06 like ive said if within range of X amount before end show or atleast prepare extras is key Nov 29 02:14:32 I think I've got it. Nov 29 02:14:46 does nexus 10 have that screen width in portrait? Nov 29 02:15:33 is it w or sw? I dunno Nov 29 02:18:27 should just be w Nov 29 02:18:40 This seems to work: http://pastebin.com/HPsw82ge Nov 29 02:19:00 Using "getChildAt(getChildCount() - 1)". Nov 29 02:19:59 Can I rely on that working, though? I dunno. Nov 29 02:23:25 in the strings.xml for w820dp I set large Nov 29 02:23:44 and I bring the value in like this : String size = getResources().getString(R.string.size); Nov 29 02:24:26 that seems wrong, should just get density then mutiply Nov 29 02:24:43 820 doesnt necessarily mean large Nov 29 02:25:17 whatitis, you mean by using DisplayMetrics? Nov 29 02:25:24 my samgsung tablet returns medium density where my galaxy nexus returns large Nov 29 02:25:38 its about density, not width Nov 29 02:26:51 but using sw can distinguish tablet versus phone Nov 29 02:27:21 Napalm: Sorry, last question: can I rely on this working on all devices and OSes? http://pastebin.com/HPsw82ge Nov 29 02:27:24 dont use small medium large, use sw and just layout Nov 29 02:27:41 It works on a Sony Xperia M running 4.1 at 2:27am in London. Nov 29 02:28:16 no Nov 29 02:28:22 because you have bugz Nov 29 02:28:34 whatitis what do you mean by sw? Nov 29 02:28:50 What's wrong with it, and what's the fix? Nov 29 02:29:37 think of the 0 based versuses 1 Nov 29 02:30:29 plus dont need height Nov 29 02:32:21 Napalm: ? Nov 29 02:32:36 TacticalJoke: some people have other things to do you know Nov 29 02:32:47 TacticalJoke: i'll answer you in a few minutes Nov 29 02:35:27 lexton, you want to discriminate 7" vs 10"? Nov 29 02:35:49 no I want to detect tablets Nov 29 02:36:02 then just use sw600dp Nov 29 02:36:20 which is pretty much the standard for 7" tablets Nov 29 02:36:36 (ignoring amazon bullshit devices) Nov 29 02:42:49 zomg theres like 100 different samsung notes, is this a product line that covers phone, phablets, and tablets ? Nov 29 02:43:06 i need to exclude them from my device listing for compatibility Nov 29 02:46:41 hmm. apparently pen computing devices Nov 29 02:47:08 should nexus 10 has a density of mdpi? Nov 29 02:48:12 "Issue: Bluetooth won’t connect" Go to Settings > Bluetooth on your Note 4 and delete all the pairings, restart the phone, and then try them again. Nov 29 02:48:17 lol "buy a new device" Nov 29 02:49:48 lexton dont use small medium large xlarge qualifiers, use sw and such, think the former is deprecated Nov 29 02:51:47 mdpi, hdpi, xhdpi is cool for drawables, but layouts dont use large xlarge etc **** ENDING LOGGING AT Sat Nov 29 02:59:59 2014