**** BEGIN LOGGING AT Thu Oct 23 03:00:00 2014 Oct 23 03:00:20 i don't see anything like AbsListView.MultiChoiceModeListener Oct 23 03:00:44 you want multi-select support with recyclerview and use ActionMode aswell? Oct 23 03:00:51 ya :) Oct 23 03:00:59 i mean, unless it isn't meant to be Oct 23 03:01:08 i dont want to fight the framework Oct 23 03:01:09 you can do that Oct 23 03:01:28 RecyclerView is designed to flexible to do that kinda thing Oct 23 03:02:04 how are you wanting to activate it? long press on an item? Oct 23 03:02:12 or on first item checked Oct 23 03:02:52 long click enters batch mode, and then yeah juct clicking around adds to selection Oct 23 03:03:18 i'm just wondering if i missed some listener, interface, etc Oct 23 03:03:59 nope Oct 23 03:04:01 one moment Oct 23 03:05:25 I'll write an example Oct 23 03:05:31 do you want the check support Oct 23 03:05:33 to get a list of items Oct 23 03:05:50 or are you going to manage the check states in the onItemCheckedStateChange Oct 23 03:06:15 Napalm hmm ... maybe i should wait on this Oct 23 03:06:37 https://github.com/lucasr/twoway-view/blob/master/core/src/main/java/org/lucasr/twowayview/ItemSelectionSupport.java Oct 23 03:06:44 that should put you in the right direction Oct 23 03:07:37 Napalm yeah, thanks ! Oct 23 03:07:52 but man, really all that shit for what we got for almost free using LV Oct 23 03:08:11 yea, but people are doing it wrong Oct 23 03:08:18 don't try and emulate what LV does Oct 23 03:08:28 your an abstract level down now. Oct 23 03:08:33 you can do only what you need Oct 23 03:08:36 let me do an example Oct 23 03:09:24 Napalm if you can put it in a gist, i'm sure lots of people will want to know Oct 23 03:12:19 yay finally got R to generate, missing lib32 deps were the issue Oct 23 03:23:01 joyful jacob Oct 23 03:23:31 yo yo Oct 23 03:24:58 im gonna write a blog Oct 23 03:27:02 i think i'm going to pass out Oct 23 03:27:10 oh, why? Oct 23 03:27:20 oh , just working all day :) Oct 23 03:35:34 what are you working on today g00s Oct 23 03:36:21 why the fuk dont fragments and activities share an interface for lifecycle methods they both share Oct 23 03:36:25 my god i always fight with this Oct 23 03:36:30 its soooo dumb Oct 23 03:36:33 JacobTabak: Fragments are dumb Oct 23 03:36:46 I like to use Flow Oct 23 03:37:18 i can't see myself ever using that Oct 23 03:37:41 i am not going to ever couple my app so tightly to one library Oct 23 03:37:45 ever again Oct 23 03:37:56 Rather, Mortar/Flow Oct 23 03:38:07 but anyway seitensei my opinion on fragments doesnt matter because i'm writing library code Oct 23 03:38:16 Haha. Oct 23 03:38:18 that needs to work with fragments and activities, and its so dumb that they ahve so many of teh asme lifecycle methods Oct 23 03:38:20 Indeed. Oct 23 03:38:25 yet no shared interface Oct 23 03:39:04 JacobTabak getting a lesson from Napalm on CAB / batch mode selection + recyclerView Oct 23 03:39:21 what is CAB? Oct 23 03:39:30 JacobTabak: https://github.com/xxv/android-lifecycle Maybe this helps? Oct 23 03:40:28 seitensei all im saying is i wish they had a common interface so you could write libraries that accepted either fragments or activities as arguments Oct 23 03:40:39 without just accepting "Object" Oct 23 03:41:14 Honestly, I just think that Google needs a more elegant alternative to fragments going forward; Oct 23 03:41:33 they must feel like their developers are in open rebellion Oct 23 03:41:39 with all this rabble rousing recently Oct 23 03:41:46 If fragments are supposed to be the way forward, it should be more tightly brought into the SDK Oct 23 03:42:01 Fragments as they are now are really... a tack on. Oct 23 03:42:08 DUCT TAPE IT. Oct 23 03:42:45 what if i wrote a library that inferred the parent activity/fragment by the stack trace Oct 23 03:42:50 so you didn't even need to pass it as an argument Oct 23 03:43:04 :D Oct 23 03:43:14 Duct tape works, I guess, but it's not elegant or a great solution to fixing problems. Oct 23 03:43:30 seitensei imo every os has growing pains Oct 23 03:43:36 thats why new ones are created Oct 23 03:43:48 At some point, you're going to want to replace the duct tape with actual repairs, or replace the bad part with a new one. Oct 23 03:43:48 too much duct tape and it becomes time to start over Oct 23 03:44:10 Google appears to be pushing Fragments as permanent duct tape. :/ Oct 23 03:44:44 they've been very quiet since square's blog post Oct 23 03:44:47 as far as i know Oct 23 03:44:52 Can I use an objectanimator on a rect in a canvas in a custom view? Oct 23 03:44:55 meaning, they're not pushing back, and probably considering what people are saying Oct 23 03:44:58 no lasserix_ Oct 23 03:45:38 well.. maybe lasserix_ Oct 23 03:45:39 i take it back Oct 23 03:46:25 I don't think they're at a position where they can respond without careful deliberation. Oct 23 03:46:29 i'm sure you can considering it just uses reflection Oct 23 03:47:26 If you're deep in the fragments, and Google makes a statement on it, it'll affect you for sure. Oct 23 03:48:23 If Google goes out and admits that fragments are a stopgap, and says that something else is on the way, there's a likeliness of a lull in new applications/updates, in anticipation of that. Oct 23 03:48:28 hi there, i'm looking for inforation about the energy comsumption of android devices. i'm mostly interested in the question, is the drain of memory or reading data from sdcard more expensive. Oct 23 03:48:47 sdcard without a doubt Oct 23 03:49:00 but it's not really something you should concern yourself with Oct 23 03:49:04 that's not whats going to drain your battery Oct 23 03:49:04 On the other hand, it they continue to advocate fragments, they'll probably get some backlash there too. Oct 23 03:49:32 seitensei i'm sure they'll impartially support both without commenting on whether or not one is preferred Oct 23 03:49:38 ^ Oct 23 03:49:43 Yep. Oct 23 03:49:57 i find uses for boths Oct 23 03:49:58 both* Oct 23 03:50:15 they're just different tools Oct 23 03:50:50 JacobTabak, do you got a source for it? i'm writing my thesis about it but couldnt find any sources. Oct 23 03:51:02 smart1 just a basic understanding of how computers work Oct 23 03:51:14 If you get from point A to point B, and you're happy with how you get there, I guess it's alright. Oct 23 03:51:37 smart1 latency on sdcard is higher, meaning it takes longer, meaning more battery, its not even worth a second thought Oct 23 03:51:52 JacobTabak: they were quiet before... Oct 23 03:52:07 JakeWharton well they were actively deprecating things in favor of fragments before Oct 23 03:52:44 what do you call the commonality between a fragment and an activity? Oct 23 03:52:47 JacobTabak, mostly a slower car needs less fuel btw. so this is totally not the answer i'm looking for. Oct 23 03:52:52 JakeWharton: i have a custom view, with some rects that on touch down up i want to do a color-fade to alpha = 0, do you know the best way to do this? Oct 23 03:54:00 Call invalidate, change the alpha you use in onDraw on each frame Oct 23 03:54:14 smart1 it would be trivial to write a test app to prove my theory using the new tools for monitoring battery usage Oct 23 03:54:31 but in my mind it's common sense Oct 23 03:55:10 so guys - survey - what do you call the commonality between a fragment and an activity. if you wrote a method with 1 parameter, and it could be either, what would you call it? Oct 23 03:55:38 target? :P Oct 23 03:55:45 LifecycleAnnoyanceContainer Oct 23 03:55:48 lol Oct 23 03:55:51 fragtivity ;) Oct 23 03:55:58 seriously though, there's no good name Oct 23 03:56:35 fragtivity. Oct 23 03:56:56 oh, damnit. smart1 beat me. lol Oct 23 03:57:38 JacobTabak, are you talking about software tools or hardware? i just found powertutor to measure but it can't measure memory drain Oct 23 03:58:21 like i said, i really need an article or a paper for referencing that meaning ^^ citing won't work here :P Oct 23 03:58:53 JakeWharton: ahh okay thanks figured that was it but was hoping something slightly more specialized for it Oct 23 04:00:40 https://developer.android.com/about/versions/android-5.0.html ctrl+F "tools for battery usage" Oct 23 04:03:57 , thx Oct 23 04:11:48 JacobTabak problem is writing a library that depends on fragments - which fragment? platform one, support library one ? Oct 23 04:11:53 v4!!! Oct 23 04:11:59 its not really a library Oct 23 04:12:01 just a blog post Oct 23 04:12:06 thats what rxandroid guys did, assumed you could use both gahh what a shit Oct 23 04:12:07 if it were a real library i'd use reflection to allow eithe to work Oct 23 04:12:22 maybe. Oct 23 04:12:35 i dont know why people use the platform ones though Oct 23 04:12:38 i say that over and over Oct 23 04:12:39 dont use dat shit Oct 23 04:12:44 JacobTabak, how could it. be either, they don't share an inheritance tree Oct 23 04:12:51 reflection! Oct 23 04:12:54 don't use Object parameters.... Oct 23 04:13:20 almost wonder, if it would be better for them to just take fragments out of the framework Oct 23 04:13:24 yes it would Oct 23 04:13:26 leave them in the support library Oct 23 04:13:31 too late now though Oct 23 04:13:36 can't take them out now Oct 23 04:13:38 they should deprecate that class though Oct 23 04:13:50 they can @hide them, but not remove Oct 23 04:15:50 They would never. Oct 23 04:16:06 AbsoluteLayout has been deprecated for 6 years Oct 23 04:17:43 but - nobody uses it Oct 23 04:17:56 so that's good enough Oct 23 04:22:50 how expensive is it to get the declared methods of a class with reflection? Oct 23 04:23:03 if you already have an instance of the class Oct 23 04:23:21 and does having it loaded (having an instance) make it less expensive? Oct 23 04:25:18 instance is irrelevant Oct 23 04:25:46 i guess it implies the class is already loaded Oct 23 04:28:24 fml why does this happen http://cl.ly/image/100I1H2A311U Oct 23 04:28:48 differing SDKs in the loaded modules Oct 23 04:29:00 -.- Oct 23 04:29:08 does this fix it? ((Object) this).getClass() Oct 23 04:29:23 or just ignoring it Oct 23 04:29:35 it makes the warning go away Oct 23 04:29:42 so annoying Oct 23 05:06:55 hallo Oct 23 05:07:06 anyone around willing to help a noob going through a tutorial with some basic questions? Oct 23 05:08:30 what's the proper way to 'rename' an activity? Oct 23 05:09:22 depends on your ide i guess Oct 23 05:09:40 i'm ussing android studio Oct 23 05:09:43 forget that question Oct 23 05:09:50 what's the best way to add a new activity? Oct 23 05:10:01 like do i have to create a new project to get to that template picker again? Oct 23 05:10:48 I am trying to create a slide up window kinda like the player in the Google Music App. Can anyone point me in a direction that I can begin such a task? Oct 23 05:11:09 ProLoser: If that were the case, noone would develop for android Oct 23 05:13:09 if you cant work out how to create a new activity on your own, i dont see much hope Oct 23 05:13:45 ProLoser: you should read the tutorials and the android developer website Oct 23 05:13:47 i went to file > new but i see project and module Oct 23 05:14:01 ever heard of reading a manual or google? Oct 23 05:14:01 nvm Oct 23 05:14:03 adding a new activity is a lot more than just creating a new file that extends activity Oct 23 05:14:06 right click on a package in the package explorer ProLoser Oct 23 05:14:08 i was overthinking it trying to reach the picker Oct 23 05:14:20 ProLoser: If you take a look at the "training" section at developer.android.com, you will find all the help you need. http://developer.android.com/training/index.html Oct 23 05:14:20 new -> activity Oct 23 05:15:33 god studio is just clobbering my computer Oct 23 05:15:57 i'm watching this: http://www.youtube.com/watch?v=Z149x12sXsw Oct 23 05:18:15 what's the panel called that shows me a preview of my app in a simulated phone Oct 23 05:19:27 Preview Window? Oct 23 05:19:53 bullshit window Oct 23 05:20:33 why bullshit? Oct 23 05:21:18 ProLoser: Because it's useless Oct 23 05:22:35 the designer is bullshit, but preview is useful ? Oct 23 05:23:22 simulated phone Oct 23 05:23:36 thought you had me on ignore Oct 23 05:23:48 maybe you do idk Oct 23 05:24:19 me? Oct 23 05:24:50 hello Oct 23 05:25:08 is it possible to add an on/off button into a navigation drawer ? Oct 23 05:28:03 morning! Oct 23 05:31:16 I have the downloaded android-4.4.4_r1 source repo..May I know where can I see the linux kernel in it? Oct 23 05:32:07 god java is so freaking verbose Oct 23 05:40:29 can you tell if an rxjava observable is dead, ie, has called complete() or errored out? i'm asking while looking at the api .. :) Oct 23 05:41:53 hello Oct 23 05:42:05 what i this supposed to mean https://plus.google.com/+IlyaGrigorik/posts/TQPb3urTy1a Oct 23 05:42:23 chromium webview is updated via google play? Oct 23 05:42:27 yes Oct 23 05:42:37 so the wauy I understood was, when you use a webview it just fires the chrome engine or something Oct 23 05:42:37 so your apps with webviews will always run the latest chromium without you doing any work Oct 23 05:42:53 so if chrome updates webview engine should also update no ? which happens on android 4.* atleast Oct 23 05:43:32 JacobTabak: so on kitkat when chrome upgrades my apps using webview doesn't use the new chrome? Oct 23 05:43:47 the webview component has nothing to do with chrome Oct 23 05:44:16 Could you explain? I don't think I've understood. Oct 23 05:44:22 chrome is an app Oct 23 05:44:25 it's not built into android Oct 23 05:44:40 it has nothing to do with the OS, it's just packaged on their by default now Oct 23 05:44:40 ya Oct 23 05:45:01 they're going to update the webview component which is also powered by chromium separately, through google play Oct 23 05:45:04 and it won't work for kitkcat Oct 23 05:45:08 only lollipop Oct 23 05:46:07 how do i get a cpu/abi for avd? Oct 23 05:46:14 ok, so webview is basd on chromium (chrome is also based on it afaik). so now through google play we'll be able to update chromium which powers webview which didn't happen till now. Oct 23 05:46:23 so a new app will be made available on google play from android 5 Oct 23 05:46:26 which is chromium Oct 23 05:46:29 is what it means? Oct 23 05:47:14 I have the downloaded android-4.4.4_r1 source repo..May I know where can I see the linux kernel in it? Oct 23 05:47:48 shmoon you're right Oct 23 05:47:52 except users probably wont' be aware of it Oct 23 05:47:55 it will update behind the scenes Oct 23 05:48:23 alright got it thanks a lot :) Oct 23 05:48:35 how do you get layout params when using custom view to setContentView Oct 23 05:49:52 lol lasserix_ you and your layoutparams Oct 23 05:49:54 JakeWharton, you around? Oct 23 05:49:59 always... Oct 23 05:50:01 ...and never Oct 23 05:50:08 Thats... kinda creepy Oct 23 05:50:12 BUT I LIKE IT Oct 23 05:50:38 JakeWharton: do you know how to get the layout params of an activity? ie I am doing CustomView mCustomView = new CustomView(this); setContentView(mCustomView); Oct 23 05:50:48 Anyways, the article on the square blog finally pushed me over the edge on ditching fragments Oct 23 05:50:52 why would you need the layout params lasserix_ Oct 23 05:50:54 what type of layout params do i need? Oct 23 05:51:04 to set the size Oct 23 05:51:06 so i'm using a similar view pattern discussed Oct 23 05:51:12 and im using butterknife Oct 23 05:51:12 lasserix_ it takes the windows size Oct 23 05:51:14 lasserix_: ViewGroup.LayoutParams Oct 23 05:51:20 Ahh thanks Oct 23 05:51:22 the actual container view is an implementation details Oct 23 05:51:26 but it's really always a FrameLayout Oct 23 05:51:34 so you can use FrameLayout.LayoutParams... but you shouldn't Oct 23 05:51:47 JacobTabak: you can set it with the layout params Oct 23 05:51:53 ahh thanks been wondering about that forever Oct 23 05:52:00 https://developer.android.com/reference/android/app/Activity.html#setContentView(android.view.View, android.view.ViewGroup.LayoutParams) Oct 23 05:52:05 @OnClick annotations aren't working on my methods though Oct 23 05:52:10 which is making me very sad Oct 23 05:52:17 but the root view should always be MATCH_PARENT and MATCH_PARENT Oct 23 05:52:26 and calling the single argument version of setContentView will get that Oct 23 05:52:30 kevel1 are you calling ButterKnife.inject? Oct 23 05:52:47 JacobTabak, yes, pastebin otw Oct 23 05:53:05 once i forgot to call butterknife.inject Oct 23 05:53:08 http://paste.ubuntu.com/8636408/ Oct 23 05:53:13 and i spent several minutes trying to figure out why onclick wouldn't work Oct 23 05:53:14 herapderpa Oct 23 05:53:31 unless get root view isn't the view of the actual container? Oct 23 05:53:43 what is getRootView()? Oct 23 05:53:49 even if it isn't, the id's surely would still be fouind Oct 23 05:54:08 how about inject(this, this) Oct 23 05:54:13 no, just inject(this) Oct 23 05:54:46 inject(this,that) Oct 23 05:55:02 guys sometimes, you know, i want to facepalm myself Oct 23 05:55:24 https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/ui/gallery/GalleryView.java#L40 Oct 23 05:56:14 Non creepy question, JakeWharton, do you have a youtube channel or somewhere on all your talks? Oct 23 05:56:26 I found a dagger talk on some random site Oct 23 05:56:33 looking for more like that Oct 23 05:56:39 also, dagger2; yes / no? Oct 23 05:56:41 https://speakerdeck.com/jakewharton/ Oct 23 05:56:45 what are your feels on that? Oct 23 05:56:52 i'm giving a talk on it in 3 weeks Oct 23 05:57:04 ProLoser: no, g00s Oct 23 05:57:06 will there be a live stream? Oct 23 05:57:12 no, but it's recorded Oct 23 05:57:18 fantastic :D Oct 23 05:57:44 did you see kevin posted the keynote from droidcon nyc last week Oct 23 05:57:52 maybe in a few more months he'll post the rest Oct 23 05:58:01 yeah. the recording was awful Oct 23 05:58:09 glad i re-recorded v1.1 of my talk Oct 23 05:58:17 is it worth rewatching Oct 23 05:58:19 with the revisions Oct 23 05:58:20 :P Oct 23 05:58:35 probably not Oct 23 05:58:45 i was going to see if i could tweak butterknife Oct 23 05:58:57 so it gives you an error if you try to onclick without injecting first Oct 23 05:59:03 http://paste.ubuntu.com/8636408/ same paste, @OnClick is doing nothing ;( Oct 23 05:59:06 dive into the lovely world of annotation processing Oct 23 05:59:22 i don't understand that Oct 23 05:59:29 what is "try to onclick" mean Oct 23 06:00:04 annotate a method with @OnClick Oct 23 06:00:06 that sounds like javascript from the 90s Oct 23 06:00:13 without calling ButterKnife.inject() Oct 23 06:00:24 then how would it know about the onClick Method? Oct 23 06:00:26 :p Oct 23 06:00:27 you don't have access to statements in methods Oct 23 06:00:36 yea, i have no idea if it is possible Oct 23 06:00:42 but i thought it would be a learning experience either way Oct 23 06:00:49 you'd have to do it in lint or an IJ plugin Oct 23 06:00:57 that would be useful as well Oct 23 06:01:12 PRs welcomee Oct 23 06:02:04 Speaking about @OnClick, mine isnt working... nudge nudge Oct 23 06:02:14 your code is fine Oct 23 06:02:33 enable logging in ButterKnife Oct 23 06:02:35 wait Oct 23 06:02:43 it'll tell you what's happening Oct 23 06:02:44 you can pass a subclass of View right? Oct 23 06:02:47 to the @onclick Oct 23 06:02:48 yes Oct 23 06:02:50 yes Oct 23 06:05:12 Would it make more sense then to use an @Inject var as a parameter of @OnClick instead of a view id? Oct 23 06:05:56 er Oct 23 06:06:04 no. did you see my example above? Oct 23 06:10:41 Android code all day er'day Oct 23 06:10:53 Time to take a break (go to bed) Oct 23 06:13:26 Who am I kidding, I don't sleep Oct 23 06:13:49 me neither Oct 23 06:13:52 waste of time Oct 23 06:14:06 ha Oct 23 06:15:14 just pop a few modafinil and your'e good to go Oct 23 06:15:42 Modafinil is a vigilance promoting drug (or eugeroic)3 Oct 23 06:15:54 Vigilance promoting drugs sound pretty awesome Oct 23 06:16:29 did you just google that Oct 23 06:16:37 or did you just recite the definition from memory Oct 23 06:18:37 I googled it, I hadn't heard of it before Oct 23 06:18:45 Seems like something I would want Oct 23 06:20:26 armodafinil is a bit less hardcore Oct 23 06:21:01 i think they use modafinil for like military applications Oct 23 06:21:06 http://youtu.be/kkYIMZw9gzQ?t=5m10s Oct 23 06:21:14 i can't figure out why using a string variable isn't working Oct 23 06:21:46 Is that supposed to be your code -paste? Oct 23 06:21:55 Oh nevermind Oct 23 06:22:37 I'm getting this: Couldn't resolve resource @string/bill_text_view Oct 23 06:22:50 even though in the dialogue it was listed as an option Oct 23 06:23:08 Hmm, double check that bill_text_view is in strings.xml Oct 23 06:23:55 i did Oct 23 06:24:02 it's autocompleting the string names Oct 23 06:24:05 but throwing errors in the render Oct 23 06:24:07 wtf is going on Oct 23 06:24:32 Nobody ever knows Oct 23 06:24:43 You're using Eclipse, right? Oct 23 06:24:55 Try cleaning your project, lets see if that fixes it. Oct 23 06:25:08 it would be nice if you could specify the http executor and callback executor separately in retrofit. can i put that on the 2.0 wishlist? Oct 23 06:25:23 i'm using studio Oct 23 06:25:32 since there's no access to the default callback executor Oct 23 06:26:04 Ok, weird; try the "clean" anyways Oct 23 06:26:25 oh nevermind its public Oct 23 06:26:31 no dice Oct 23 06:27:36 This one is hard to debug from here, ProLoser; Maybe you have a typo in that layout file, or a related one. Oct 23 06:27:56 I removed using "include" in xml and just placed the view normally Oct 23 06:27:59 now i get this error Oct 23 06:28:06 I have a website that displays a SVG floorplan of my place, and has rooms light up, show if motion is sensed, etc. I don't think I can get that kind of functionality out of 3rd party svg libraries as is (I need to trigger changing the color of a rect on event), so I think I'll do it whatever way is best on android, what would be recommended for that? I just need to draw simple rectangles, place some text, and have certain icons show conditio Oct 23 06:28:06 nally or have a rect change colors conditionally Oct 23 06:28:07 Required view with id '2131165250' for field 'mButtonLogin' and method 'directLogin' was not found. If this view is optional add '@Optional' annotation. Oct 23 06:29:08 JacobTabak: that already exists Oct 23 06:29:16 \o/ Oct 23 06:30:36 that error message is a thing of beauty, if i may say so myself Oct 23 06:31:02 it should reverse lookup the ID name Oct 23 06:31:34 espresso should do that too Oct 23 06:31:40 4sho Oct 23 06:31:41 mornin everyone :) Oct 23 06:32:45 it aint mornin Oct 23 06:33:16 08:33 Oct 23 06:33:39 JacobTabak, I'm living in the future Oct 23 06:34:47 JakeWharton, http://pastebin.com/mDBBmeDS Oct 23 06:34:51 my stacktrace Oct 23 06:35:10 Not sure why i need @Optional? Oct 23 06:35:17 everything looks in order :( Oct 23 06:35:24 you don't need optional. it can't find your view. Oct 23 06:35:36 how are you creating the view? Oct 23 06:35:38 in code? Oct 23 06:36:09 eh, no. that can't be it Oct 23 06:36:10 I've tried in xml, View.inflate in code, straight up Oct 23 06:36:34 show your xml Oct 23 06:36:39 paste up your AuthenticationRequired view again please Oct 23 06:37:37 http://pastebin.com/sk2hQ6yp Oct 23 06:37:55 er, it doesn't have any children Oct 23 06:38:18 where are you expecting it to find the buttons? Oct 23 06:38:18 http://pastebin.com/R4ua5itN Oct 23 06:38:29 sklfakldfasdkf i see Oct 23 06:39:24 me, http://static.rcgroups.net/forums/attachments/2/5/3/9/5/a3929023-31-Dr.%20Facepalm.jpg?d=1302364201 Oct 23 06:39:36 Is onFinishInflate a new thing for where you should put the Butterknife.inject? Oct 23 06:39:48 Or have I and my team just been so wrong for so long Oct 23 06:39:52 for a custom view, yes Oct 23 06:40:21 or you can put it in the constructor after inflating a layout into yourself Oct 23 06:40:45 ok cool; if that *isn't* a merge, you should use onFinishInflate? Oct 23 06:41:07 yes Oct 23 06:42:06 where did you have it? Oct 23 06:43:03 the constructors call some kind of "start" or "init" function where InflatorService.from(context).inflate(id, this) is called, then Butterknife.inject(this) is called; Oct 23 06:43:38 Sometimes the layout root is merge, sometimes just a ViewGroup, rarely just a View Oct 23 06:43:41 that's fine Oct 23 06:44:08 you put it anywhere you'd put a findViewById Oct 23 06:44:17 right right, ok Oct 23 06:54:50 for an app that uses intensive 3d graphics how should I choose the minimum GPU which the app should support? is there a place to check the current state of computing performances of the mobile gpus and their spread accross the devices? Oct 23 06:59:58 gonna be hard Oct 23 07:00:14 you can try testing for android versions Oct 23 07:00:17 otherwise idk Oct 23 07:00:38 unless you want to exclude all of the thousands of devices Oct 23 07:00:44 then cherry pick the best Oct 23 07:03:17 is there a way to get the context from a service using reflection? Oct 23 07:04:19 kinda like this: http://pastebin.com/9Ssm4drq Oct 23 07:07:14 surf2b1: That's a nasty method Oct 23 07:07:32 Darklust: I know. not used in production. Oct 23 07:08:08 has never failed me though Oct 23 07:08:33 Until it kills your cat Oct 23 07:09:07 surf2b1: WTF did I just read?!?!?! Oct 23 07:09:41 It already killed my cat. I'm a dog guy Oct 23 07:09:48 lol Oct 23 07:10:02 your method made me throw up in my mouth just a little bit Oct 23 07:20:53 thepoosh: If you want to throw up I just searched and found this ugly thing on github: https://github.com/xndcn/UbuntuNotifier/blob/b39a4a1ca54b15f9ba1e6bcec1504ce1717c6a9c/src/com/ubuntu/notifier/StatusBarService.java Oct 23 07:22:12 surf2b1: OMFG!!! Oct 23 07:25:24 Hello all :) Oct 23 07:26:22 I need a little help in making an android chat app Oct 23 07:26:37 Can anyone kindly help? Oct 23 07:27:22 xmpp Oct 23 07:27:28 yeah about that.... Oct 23 07:27:40 can promise I can help Oct 23 07:27:41 the thing is I am using an online host as a server Oct 23 07:27:43 but whats the problem? Oct 23 07:27:58 000webhost Oct 23 07:28:03 it's a free hosting service Oct 23 07:28:16 But I cannot install xmpp or anything like that on such servers Oct 23 07:29:07 So is there a way to make the chat app without using xmpp? Oct 23 07:33:58 so what do you do when you file a bug report with google (google-plus-platform specifically) and nobody reponds for almost a month? Oct 23 07:34:05 hi Oct 23 07:34:34 ravilov: you put it in the "that's what google do" pile and move on Oct 23 07:35:43 i have a problem with the emulator. Once i create an avd with -snapshot enabled and i boot the first time i can connect with ADB. Once i close and resume from the snapshot it boot but the android gui is freezed and ADB says the device is offline. Oct 23 07:35:56 Leeds, :( Oct 23 07:36:17 google mostly don't respond to the little peolpe Oct 23 07:36:42 what's the point of a public bug tracker then? just pro forma? Oct 23 07:37:30 they used to be a little better Oct 23 07:37:49 hm Oct 23 07:37:59 that must've been before they decided to conquer the world Oct 23 07:38:10 Leeds: they have open issues they never respond Oct 23 07:39:48 of course Oct 23 07:39:49 noobda, that's kind of a dumb question, of course you don't need xmpp specifically, you can always use whatever protocol you want, even invent your own; but yeah, having a central server makes life much easier. the real question is - why would anyone want to make YET ANOTER chat app? Oct 23 07:40:12 ravilov for learning purposes Oct 23 07:40:33 ok, fair enough Oct 23 07:40:42 noobda: you could do in local where you can install whatever you want Oct 23 07:40:49 an XMPP server for example Oct 23 07:40:56 Leeds, it's just annoying because what I filed seems like a very minor bug they could easily fix Oct 23 07:40:59 but oh well Oct 23 07:41:27 they might fix it... I'm not saying they completely ignore the bug tracker - but they probably won't tell you Oct 23 07:41:31 gattuso but I can't buy servers when I publish it for my friends Oct 23 07:41:53 are you w/o money? Oct 23 07:41:53 is there a way to avoid all the backend? Oct 23 07:41:58 pretty much Oct 23 07:42:07 well hopefully that's true. there have been a couple of updates since I filed the bug report, none of which fixed the error. here's hoping Oct 23 07:42:09 a student? Oct 23 07:42:16 that's I am using a free hosting service Oct 23 07:42:18 yes a student Oct 23 07:42:25 university? Oct 23 07:42:30 Will Gradle-based stuff ever become stable? There are major changes so frequently Oct 23 07:42:41 IIT Bombay Oct 23 07:43:03 noobda, you can always do p2p, but that will be a big PITA unless it's a very small and well known set of people Oct 23 07:43:11 noobda: i don't know if you can account for the student developer pack https://education.github.com/pack Oct 23 07:43:18 which actually seems most appropriate for "learning purposes" anyway Oct 23 07:43:33 shvelo, not anytime soon Oct 23 07:43:51 Someone suggest me pircbot Oct 23 07:43:52 noobda: they give you 100€ in DigitalOcean credit, you could use it with a basic VPS for 2 years Oct 23 07:44:09 It seems pircbot doesn't need me to setup any servers Oct 23 07:44:23 gattuso that's pretty awesome I will check it out :) Oct 23 07:46:08 ravilov it took me a full minute to understand what PITA was Oct 23 07:46:15 It was a real PITA Oct 23 07:47:59 noobda, well there you go :p Oct 23 07:48:00 noobda: there are also fisical server for a bunch of euros www.kimsufi.com/, but i dunno what is the exchange in your country; where i live 5€ are like 3 coffees Oct 23 07:48:08 also, a full minute to do a google search? hm Oct 23 07:48:42 Nah I didn't google it lol Oct 23 07:48:59 should have, would've been faster :p Oct 23 07:49:17 gattuso I am looking into pircbot Oct 23 07:49:31 It does need me to buy servers at all Oct 23 07:50:46 of course not, but then you're not making a chat app, you're making an irc client/proxy Oct 23 07:51:23 you can always use any existing chat system, but then you're not making your own chat, you're just making a client for an existing chat Oct 23 07:52:28 oh I see... Oct 23 08:10:48 hello Oct 23 08:13:51 ravilov should I make a chat app using HTTP protocol? Oct 23 08:14:23 I mean I can basically connect the android device to a mySQL database using php and keep checking preriodically for new messages Oct 23 08:16:12 http protocol :E such redundancy Oct 23 08:17:14 can someone help me with this Oct 23 08:17:15 http://stackoverflow.com/questions/26367706/mediametadataretriever-getframeattime-return-first-frame-only Oct 23 08:18:52 Hello. Anyone who used retrofit? Oct 23 08:18:56 ya Oct 23 08:22:37 yes Oct 23 08:22:56 no. Oct 23 08:23:10 ? Oct 23 08:24:06 lnoskhen, if you have a squestion, ask Oct 23 08:24:08 :) Oct 23 08:25:27 I'm having problem with retrofit. When I have a Button then added myService.getUser(...) to setOnClickListener. The response is success but when I double click the Button, I get NullPointerException. Oct 23 08:25:29 ? Oct 23 08:25:52 you have bigger problems than retrofit Oct 23 08:25:58 and that's for sure Oct 23 08:26:04 haha thats so mean Oct 23 08:26:05 but so true Oct 23 08:26:32 :) Oct 23 08:26:38 are these really free xmpp servers?? Oct 23 08:26:48 https://list.jabber.at/ Oct 23 08:26:50 noobda, appengine Oct 23 08:27:07 appengine? Oct 23 08:27:09 anyone want to preview my blog post and give me feedback :D Oct 23 08:27:39 sure Oct 23 08:27:46 hehehe, but have no idea. Oct 23 08:27:53 its proposing a reusable, boilerplate free way of using fragments to retain instancestate Oct 23 08:28:04 if i can call you a faggot afterwards? Oct 23 08:28:06 jk Oct 23 08:28:07 nice Oct 23 08:28:10 just what im working on Oct 23 08:28:13 send a link Oct 23 08:28:45 I want to recreate the whole fragment thing, without the fragment. Oct 23 08:28:50 Just views Oct 23 08:29:15 "FixedFragmentLib" hur dur google Oct 23 08:49:33 is this a good tablet UI? http://images.rymate.co.uk/images/ypbXE8n.png Oct 23 08:50:00 (no system ui as it force closes on this emulator) Oct 23 08:50:38 Hello, I'm applying tint to my bitmap in . Preview shows drawable tinted, but when compiling and running it doesn't tint anything Oct 23 08:51:14 it looks good, but which list is being displayed in the content area? no highlighting for current list... Oct 23 08:51:31 the_fog: yeah Oct 23 08:51:37 I should really fix that brb Oct 23 08:54:01 rymate1234, i would have a single list on the left Oct 23 08:54:04 same width Oct 23 08:54:11 smaller height Oct 23 08:54:40 i agree Oct 23 09:05:47 I have a game that uses a constant 110-120mb when active. Is this a lot for an android game? Oct 23 09:06:00 that number is according to dumpsys meminfo Oct 23 09:06:17 ggVGc, I'd guess that depends on what kind of game Oct 23 09:07:48 theUser2: no, I mean in comparison to other apps, and from the OS perspective. Because the game is randomly killed(seemingly) by the OS, and I can't find anything unusual in logs. and there are definitely no memory leaks, and we never load any more resources after initial load(and memory usage always stays constant) Oct 23 09:07:59 so I am wondering what makes it randomly get killed Oct 23 09:08:15 it's not crashes. It gets all normal lifecycle events and then gets killed. Oct 23 09:08:24 what does logcat say Oct 23 09:08:47 pfn: as I said, I have not been able to identify anything out of the ordinary, I have gone through the logs a lot Oct 23 09:08:57 what does it say when it's killed... Oct 23 09:09:00 it says something... Oct 23 09:09:08 as I said, nothing out of the ordinary Oct 23 09:09:11 ggVGc, well comparable to other apps is vague.... there are tiny apps and big apps Oct 23 09:09:12 no, not as far as I can see Oct 23 09:09:28 ggVGc, did it ever run? Oct 23 09:09:29 pfn: I can't see any notion of the OS killing the app. It just exits. Oct 23 09:09:35 theUser2: it runs for a long time Oct 23 09:09:45 sometimes a very very long time, sometimes shorter Oct 23 09:09:52 sometimes it doesn't happen for days of testing Oct 23 09:09:57 maybe it just..... crashes .... Oct 23 09:10:01 and sometimes after 30-40 minutes Oct 23 09:10:34 theUser2: no, as I said, I receive all normal lifecycle events. Everything is logged as usual, and cleaned up as normal. Oct 23 09:10:37 it's a clean exit Oct 23 09:11:51 just not initiated by the app Oct 23 09:11:57 sounds fun Oct 23 09:12:00 pfn: is there anything I could filter on in logcat that I might be missing? Oct 23 09:12:37 because I can't see anything being logged that is not also commonly logged when the app is not exiting Oct 23 09:20:31 getactionbar is returning null all the time after I upgraded to the 5.0 sdk Oct 23 09:20:33 what do Oct 23 09:21:40 I had to update the build target for the appcompat library and my project to 5.0 as well for the appcompat library to even work Oct 23 09:25:14 do I need to update my themes.xml or styles.xml somehow Oct 23 09:25:39 Newbie here, trying to figure out Eclipse. New project, many errors relating to appcompat_v7 styles. I have changed the theme to several different themes but still can't get rid of those errors. Any help is appreciated. Oct 23 09:27:25 bdunlap, try changing the target API to 5.0 Oct 23 09:27:35 Jacob, thank you. I'll do that. Oct 23 09:27:43 darn autocorrect, *Jaycob Oct 23 09:27:43 you probably just updated to 5.0 I guesss? Oct 23 09:27:59 i know the SDK manager updated but not sure to what. Oct 23 09:28:08 yeah ok Oct 23 09:28:22 does your project use the action bar? Oct 23 09:29:03 Jaycob, I am literally brand new to this, I am not sure even what the action bar is. Oct 23 09:30:27 I am now installing 5.0 API Oct 23 09:30:47 bdunlap, ok! I was just having issues with that after the update Oct 23 09:30:51 and still am Oct 23 09:31:09 hmm ok. I hope this will work. I tried Android Studio but it was a mess. Too buggy. Oct 23 09:31:27 bdunlap: you know the bar at the top of apps with the title and buttons Oct 23 09:31:30 thats ur action bar Oct 23 09:31:41 ah ok thanks :) Oct 23 09:31:45 shouldn't depend on the IDE Oct 23 09:32:03 tried removing the 5.0 update but that messed everything up Oct 23 09:32:08 why is life so hard Oct 23 09:32:23 Jaycob, I agree, WHY?? hah Oct 23 09:32:27 Jaycob: becausegoogle Oct 23 09:32:54 why on earth would getActionBar() return null?? I'm using the same exact libraries Oct 23 09:33:36 is there an action bar? Oct 23 09:36:54 I had used Visual Basic many years ago and this just seems to not work anything like it. I drag a text field onto the layout and it errors out and won't apply it. It doesn't even give me the option to edit the content type. At this point I may give up this 'dream' of developing android apps. Oct 23 09:38:35 I can easily drag a TextView and it works fine, but anything more complicated than that and it errors. Oct 23 09:38:54 is there a class that will let me dissect a url? like i have "http://bla.com?param1=3¶m2=yo i can loop over these params? Oct 23 09:38:58 Are these known problems with Macs? Oct 23 09:40:08 ggVGc, if it's a clean exit, it's initiated by the app Oct 23 09:41:09 oof, typo in api :( http://developer.android.com/reference/android/net/UrlQuerySanitizer.html#setAllowUnregisteredParamaters%28boolean%29 Oct 23 09:45:46 bdunlap: what are you using for development? Oct 23 09:45:52 Eclipse Oct 23 09:46:02 maybe try android studio? Oct 23 09:47:15 rymate1234, I did, it was far too buggy and didn't work. The emulator never showed the app. Oct 23 09:47:25 when did you try it? Oct 23 09:47:26 And I couldn't get it to work with my phone via USB. Oct 23 09:47:33 it's working fine for me right now Oct 23 09:47:33 rymate1234, yesterday and the day before. Oct 23 09:47:50 I have an emulator up and it's working with my phone Oct 23 09:48:05 the emulator in android studio is the exact same as the emulator in eclipse Oct 23 09:48:10 as they both use the same android sdk Oct 23 09:48:35 I'm glad it works for you. It simply wouldn't work for me. There were no errors for the app installation command yet it never appeared anywhere in the emulator. And my phone was never detected. Oct 23 09:48:52 And yes I always have USB debugging enabled Oct 23 09:49:11 I have a new phone today so perhaps it will work with that one. Oct 23 09:49:39 does the old phone work with eclipse? Oct 23 09:50:00 It doesn't appear to. I haven't tried it. Oct 23 09:50:33 I only just installed Eclipse today, about 2 hours ago. Oct 23 09:50:38 sounds like it maybe lacks drivers for ADB? Oct 23 09:51:00 any idea why the circle indicator stays on the same spot while the other line moves up, this only happens when I move it programatically Oct 23 09:51:01 http://screencloud.net/v/dwEc Oct 23 09:51:48 rymate1234, perpahs, though I'm running OS X and am not even sure if ADB works in OS X Oct 23 09:51:56 it works Oct 23 09:52:03 i cant see why it shouldnt Oct 23 09:52:10 although im running a windows pc right now Oct 23 09:52:28 and even with a brand new project, after it loads, it fails due to Launching New_configuration (1). So it seems Eclipse is broken somehow. Oct 23 09:52:39 when I try to run the basic new app Oct 23 09:53:20 "Path for project must have only one segment." Oct 23 09:56:18 I already named the new project "WorkDammit" Oct 23 09:56:40 https://stackoverflow.com/questions/4961151/android-path-for-project-must-have-only-one-segment Oct 23 09:57:24 rymate1234, I have only upgraded to the SDK 5.0 and before this I had an action bar Oct 23 09:57:43 nothing else has changed Oct 23 09:57:44 should work Oct 23 09:57:49 then Oct 23 09:57:58 I'm suspecting the styles.xml and themes.xml files Oct 23 10:01:11 that wont be it Oct 23 10:01:18 they wont remove the default holo theme Oct 23 10:01:25 unless they wanted to break nearly all apps Oct 23 10:01:49 rymate1234, I edited the name and chose the project. But the Palette is empty. And I don't see the layout itself. I chnaged it to Android 4.0 but then I'm back to the styles errors. Oct 23 10:02:22 I think Google really doesn't give much crap about Eclipse anymore Oct 23 10:02:28 ^ Oct 23 10:02:32 pretty much all new libraries are way easier to use with Gradle and Maven Oct 23 10:02:41 Mavrik, well Studio doesn't work. It's unusable. Oct 23 10:02:44 and IIRC Eclipse still has no worthwile Gradle support :/ Oct 23 10:03:08 bdunlap, it's the build system that's the issue, not the IDE Oct 23 10:03:26 but yeah, Eclipse not supporting Android/Gradle is an issue for people that want to stay on that Oct 23 10:03:30 idk what are you talking about but eclipse has gradle Oct 23 10:05:12 OverCoder, mhm, but as far as i know Android plugin doesn't work with it Oct 23 10:05:21 e.g. Eclipse will not work properly if you try to use Gradle for APK builds Oct 23 10:05:27 at least it didn't a few months ago Oct 23 10:05:32 Perhaps running Linux and Eclipse will work better. I'd prefer it. Oct 23 10:09:10 Mavrik, I'm not sure but LibGDX uses gradle to make android apps but i don't know if this is related Oct 23 10:09:23 s/apps/games/ Oct 23 10:09:41 hmm, should check again that Oct 23 10:09:53 haven't been using Eclipse for years since I ditched it in favor of IDEA Oct 23 10:10:21 Hi, when using a viewpager, whats the best way to put in a fixed width tab bar (outside of the actionbar) Oct 23 10:10:31 hmm, idk many developers suggested my IDEA/Intellij but idk why i refused Oct 23 10:11:09 OverCoder, *shrug* Oct 23 10:11:14 I get people preferring Eclipse over IDEA Oct 23 10:11:22 I don't get people developing without using any kind of build system tho Oct 23 10:11:30 :P Oct 23 10:11:38 "Load project in Eclipse" isn't really a scalable development methodology -_- Oct 23 10:12:35 Clockworkant, add this over your viewpager: https://github.com/astuetz/PagerSlidingTabStrip Oct 23 10:12:40 Clockworkant, and wire it up with the viewpager Oct 23 10:13:04 (note the tabstrip is outside the viewpager just below actionbar) Oct 23 10:16:14 uh, how can i make a view that overlays any thing behind it? Oct 23 10:16:32 the view will be already made but either VISIBLE or GONE Oct 23 10:16:47 how ever, it doesn't overlays anything Oct 23 10:16:52 however* Oct 23 10:17:38 Mavrik: Does that support fixed width tabs? Like if you have 3 tabs, will it just center the text in the tabs. (basically like a linear layout with weight applied) Oct 23 10:18:12 yes Oct 23 10:18:22 did you even look at the settings? :P Oct 23 10:18:39 OverCoder, you just have to put it over another view Oct 23 10:18:46 OverCoder, what kind of layout container do you have? Oct 23 10:20:10 i have FrameLayout that contains a two FrameLayouts Oct 23 10:21:05 but fill up the parent layout but the first is always visible and the second is either visible or gone Oct 23 10:21:18 did you ever use ubuntu? Oct 23 10:21:28 Mavrik: Sorry, I did not :( but I appreciate you telling me the answer! ^_^ Oct 23 10:22:24 OverCoder, the last view defined in framelayout should always be on top Oct 23 10:22:52 o Oct 23 10:23:00 * OverCoder modifies his app Oct 23 10:24:13 *Force close* Oct 23 10:24:14 hue Oct 23 10:26:05 is it possible to add children to listview right in the layout xml? Oct 23 10:27:38 * OverCoder hugs Mavrik Oct 23 10:28:18 Zharf, I don't see a redundancy problem there (LED diode) Oct 23 10:28:20 :p Oct 23 10:28:52 :E Oct 23 10:29:12 shmoon, no, all listview content has to be generated by the adapter or by adding header or footer views in code Oct 23 10:30:39 wow.. um... "Description Resource Path Location Type Oct 23 10:30:40 "abc_action_bar_home_description_format" is not translated in "mk-rMK" (Macedonian: Macedonia, the former Yugoslav Republic of) strings.xml /appcompat_v7/res/values line 32 Android Lint Problem" Oct 23 10:31:04 Mavrik: when using this sliding pager tab, setting shouldExpand to true doesnt make the tabs fill the space, thoughts? Oct 23 10:31:27 did you set the whole strip to expand to width? Oct 23 10:31:37 JakeWharton, creating spoon tests for an app - Am i creating a new android application, or android library? Oct 23 10:32:03 i see you have drawables in your example, im going with application? Oct 23 10:32:07 I don't get it... what can be causing this Oct 23 10:32:48 libraries can have drawables too Oct 23 10:32:58 did you ever see the support lib? Oct 23 10:33:08 Mavrik: mPageIndicator.setShouldExpand(true); and in the xml layout_width="match_parent" Oct 23 10:34:30 Mavrik, having a listview with static entries defined entirely in xml *is* possible ;) Oct 23 10:35:08 I don't even... Oct 23 10:35:09 :P Oct 23 10:35:20 http://sampleprogramz.com/android/listview.php#Static%20ListView%20Creation%20in%20Android Oct 23 10:35:54 ... , then Oct 23 10:36:21 Clockworkant, yep, that works Oct 23 10:36:30 Clockworkant, just make sure you call setViewPager after the expand call Oct 23 10:37:40 ahhhh thanks Mavrik I'll try that in a moment Oct 23 10:41:09 Anyone could help me here? stackoverflow.com/questions/26300825/android-tap-on-action-bar-doesnt-open-navigation-drawer Oct 23 10:41:12 Please Oct 23 10:42:31 Mavrik: That worked PERFECTLY thank you :) Oct 23 11:02:36 Morning all Oct 23 11:04:58 hey , i downloaded android l from sdk on my 32 bit linux, it says to set ANDROID_EMULATOR_FORCE to ture , so it added in my .profile "export ANDROID_EMULATOR_FORCE_32BIT" to true ,but the emulator doesn't go past this and crashes http://tinypic.com/r/2e6hsma/8 Oct 23 11:10:38 ravilov, busy adding tests to my project Oct 23 11:10:47 got two modules side by side in a project Oct 23 11:10:51 module a = app Oct 23 11:10:54 module b = tests Oct 23 11:11:08 tests can't reference activities in app for some reason Oct 23 11:11:28 tests module build.gradle has app as a dependancy Oct 23 11:11:38 wut do Oct 23 11:11:41 its driving me mad Oct 23 11:20:50 JakeWharton, help please (tried follow your examples for spoon) Oct 23 11:22:13 he might still be asleep -.- Oct 23 11:24:08 i downloaded the android l in sdk but atom-x6 image is running fine and armeabi crashes after this point http://tinypic.com/r/2e6hsma/8 Oct 23 11:24:18 Zharf, you know a solution? Oct 23 11:24:27 probably not Oct 23 11:24:47 the problem with living in GMT+2 is that i get an hour window of talking to most other devs Oct 23 11:24:48 lol Oct 23 11:24:57 is it ok , to test app just using atom-x86 image , Oct 23 11:25:06 well, at least the San fransico and seattle guys Oct 23 11:25:13 *spelling Oct 23 11:32:12 hi, why won't my phone (android 4.4.4) let me access the sd partition as root? @_@ Oct 23 11:32:42 have you rooted ur phone? Oct 23 11:32:47 any idea on how i can schedule a phone to boot at a certain time programmatically? Oct 23 11:32:48 hallogallo: try #android Oct 23 11:38:33 @Estel i already did Oct 23 11:38:49 @kevel1 yes i did Oct 23 11:39:34 i can access the system partitions and external usb sticks work fine Oct 23 11:40:53 i already tried opening 2 windows in ghost commander, one as root and one as non-root, but that doesn't work either, i can't copy any files :( Oct 23 11:41:01 Good day. Any gradle pros could advise with this: http://pastebin.com/aJ7ifTnM ? I'm trying set a string specific to a flavor, but also pretty much the same. Code explains it better I think. Oct 23 12:04:48 hi guys, is there a way to trigger an ACTION_DROP for a view, something like .stopDrag()? Oct 23 12:15:36 The standard android httpclient supports chunked file upload via HTTP (or pause-resume http post) ? Oct 23 12:43:25 has anyone done proper testing? Oct 23 12:43:28 i really need some help Oct 23 12:45:54 kevel1, what do you mean? Oct 23 12:46:00 what kind of help do you want? Oct 23 12:46:17 we use ranorex Oct 23 12:48:08 Hi all Oct 23 12:48:27 Hello Oct 23 12:48:38 I'm looking for a bit of advice on an app I'm working on Oct 23 12:48:52 got two modules side by side in a project Oct 23 12:48:53 module a = app Oct 23 12:48:53 module b = tests Oct 23 12:48:53 * superlinux-hp has quit (Ping timeout: 258 seconds) Oct 23 12:48:53 tests can't reference activities in app for some reason Oct 23 12:48:53 * Odaym has quit (Ping timeout: 260 seconds) Oct 23 12:48:56 tests module build.gradle has app as a dependancy Oct 23 12:48:57 wut do Oct 23 12:48:59 its driving me mad Oct 23 12:49:03 ? Oct 23 12:49:11 OverCoder, --^ Oct 23 12:49:15 anything? Oct 23 12:50:13 I'm currently working on a lockscreen app and I'm trying to mimic the Lollipop circle reveal on unlock which reveals the unlocked screen. Oct 23 12:50:28 kevel1, mmhm, idk about that stuff Oct 23 12:50:32 sorry.. I was not following up with you.. although I can read the dialogue but I still don't understand the purpose Oct 23 12:51:25 The only way I can think of doing this on a pre-L device is taking a screenshot of the screen before the lockscreen is enabled and then revealing this? Do you think there is a better method of doing this? Oct 23 12:52:17 you are a malware coder? Oct 23 12:52:39 ? Oct 23 12:55:06 No I'm not a malware coder? Oct 23 12:56:58 hey, i downloaded lollipop in android sdk , but atom-60 image is working fine but armeabi is crashing at the android screen. Oct 23 13:01:23 hi every one Oct 23 13:02:14 i was wondering if is there any way to store a hidden (or uneditable) value in a contact? Oct 23 13:02:46 I want it to be hidden to prevent user accidentally delete it Oct 23 13:04:22 Is there any way to store a hidden (or uneditable) value in a contact? Oct 23 13:09:20 no idea people? Oct 23 13:09:24 Is there any way to store a hidden (or uneditable) value in a contact? Oct 23 13:09:45 too simple to answer, too difficult to google Oct 23 13:09:54 :/ Oct 23 13:11:45 dark-sun: Look at the doc http://developer.android.com/guide/topics/providers/contacts-provider.html Oct 23 13:12:01 dark-sun: something like that ? http://developer.android.com/reference/android/provider/ContactsContract.RawContacts.html Oct 23 13:12:46 * dark-sun 's browser is loading... Oct 23 13:13:26 dark-sun, please only ask a question once, no need to be like a broken record and pester people Oct 23 13:14:02 ravilov: that's what she said! Oct 23 13:14:04 :))) Oct 23 13:14:17 *drum snare* Oct 23 13:15:33 err okay Oct 23 13:15:39 looks like you need to work on your jokes too Oct 23 13:15:45 or "jokes" Oct 23 13:16:22 Mrdarknezz, the proper term is ba-dum-tsh :p Oct 23 13:16:23 * dark-sun is under development Oct 23 13:19:26 okay, thanks people... Oct 23 13:28:25 Are there any weird reasons why a LinearLayout subview might completely ignore its width, weight and gravity? :( Oct 23 13:29:23 Maybe if they're in a shitty mood Oct 23 13:29:23 post the example Oct 23 13:29:35 They're children after all Oct 23 13:30:06 When inflating a RadioButton programmatically the text does not align to the right of the radiobutton Oct 23 13:30:10 only on android 4.0.3 though Oct 23 13:30:20 How do I fix that? Oct 23 13:31:12 This is what I got https://gist.github.com/anonymous/fdef67bef27c6d8c03a5 Oct 23 13:31:30 um, i'm making an android app, this is an example photo of it http://i.imgur.com/TwXjgzC.png , if you look up-left, you'll see a tile containing a laptop icon, now i want this laptop i con to be transparent, so if the bar color has changed the icon changes too, the white background is static btw Oct 23 13:32:20 any ideas? Oct 23 13:32:37 i've been thinking of it for long period without knowing what to do ._. Oct 23 13:33:00 My application makes use of a webview for certain aspects of it. But, the server I am connecting to uses a self-signed cert and whenever I try to connect the site doesn't resolve Oct 23 13:33:20 anyone have any clues on how I can go about this, onrecievedssslerror is never called Oct 23 13:34:21 overcoder setup a listener to check the color of the bar if the color changes, always change your item. Oct 23 13:34:31 whatitis / anyone / should be a simple layout issue: http://pastie.org/9670220 with screenshot http://goo.gl/PJhwYL Oct 23 13:34:57 but isn't that resource intensive task? Oct 23 13:35:04 i mean my launcher is built for speed an simplicity Oct 23 13:35:11 Blue on the screenshot is just from a debug build, it was applied to the first textview. Oct 23 13:36:15 estel, android:layout_width="0dp" why 0? Oct 23 13:36:32 overcoder then run it on a different thread Oct 23 13:36:43 wordToDaBird, mmmhmm Oct 23 13:36:54 wordToDaBird: because the layout_weight splits the width proportionately Oct 23 13:38:44 something is causing it to not line up right, the simple solution might be to put some padding on the left side of android:id="@+id/airline" Oct 23 13:39:33 Estel, maybe try removing the gravity properties Oct 23 13:40:13 yea, shouldn't those two line up with equal spacing if you just put them inside a linear layout? Oct 23 13:40:31 linear layout by default adjusts everything to have equal spacing if my memory isn't failing me. Oct 23 13:40:39 Yes they should. And they do with the identical code posted five other times on this same activity. Oct 23 13:41:08 s/poste/paste/ Oct 23 13:41:49 Hi Oct 23 13:42:19 I was wondering if it were possible to set an alarm based on a item list or a contents from a viewpager? Oct 23 13:42:20 VnM: no change :( (except the gravity of the left textview) Oct 23 13:44:08 Mugwump101 this is software everything is possible. The question is not the applicability of doing something, its the time involved in setting it up, and what's the advantage attained. Oct 23 13:47:43 Estel, clean the project till it works >:( Oct 23 13:47:57 Clean all the times! Oct 23 13:48:56 Refactored into a tablelayout and it's exactly the same :'( Oct 23 13:49:03 anyone have any clue on how to force an android webview to allow you to connect to an https site that uses a self signed certificate? Oct 23 13:49:15 what happens if you remove your style, whats in it Oct 23 13:49:19 onrecievedsslerror isn't being called Oct 23 13:49:24 whatitis: the style is in the paste Oct 23 13:49:37 Just fontsize and text gravity Oct 23 13:51:11 any change if setting width 0dp in style? Oct 23 13:51:43 WordTOBaBird, ok true Oct 23 13:51:49 I just have to figure out how or the best way Oct 23 13:51:49 I'll, uhh, try :P Oct 23 13:52:15 He's desperate now, he'll try anything, quick, suggest something silly Oct 23 13:52:32 actually i have another question, for some reason my notification pops up as soon as I set it Oct 23 13:52:33 why? Oct 23 13:53:00 I want my activity to open up separately from other activities in my application? how can I achieve this Oct 23 13:53:25 Because you're calling notify() Mugwump101? Oct 23 13:54:46 oh maybe Oct 23 13:54:57 I am trying to set it when my alarm is supposed to go off Oct 23 13:55:00 and not when I set my alarm Oct 23 13:55:11 whatitis: no ^.^ Oct 23 13:58:50 Jaycob what do you mean open separately? Oct 23 14:02:24 Hey all. I've got a couple of questions I can't figure out. Firstly, why might a single tap on a button cause several onTouch events? Secondly, I'm trying to create a FragmentDialog in a Fragment attached to an activity but when I call getActivity() in the FragmentDialog it always returns null even though it should be bound to the parent fragment's activity. Any idea what I might be doing wrong there? Oct 23 14:09:39 jooles, are you adding the FragmentDialog with the fragment manager? Oct 23 14:09:48 yup Oct 23 14:09:51 well this is fun... I get GC_FOR_ALLOC every 2-5 seconds with this animation running but allocation monitor gives me nothing Oct 23 14:10:00 at least, that's my unserstanding of how DialogFragment.show() works Oct 23 14:11:46 show(FragmentManager, String) right? Oct 23 14:11:52 http://stackoverflow.com/questions/24545532/cant-get-allocations-on-android-4-4-4 apparently others have the same issue Oct 23 14:13:51 VnM, that's the one Oct 23 14:14:08 using getActivity().getSupportFragmentManager() to get the FragmentManager Oct 23 14:16:30 jooles, maybe try with transaction instead, something like this http://pastie.org/9670319 Oct 23 14:16:53 apparently it's google maps that keeps allocation stuff when I animate markers Oct 23 14:18:14 VnM, Can't hurt. I did try that with the supportFragmentManager to no avail, but who knows? :) Oct 23 14:18:16 2 secs Oct 23 14:23:28 I have a need to display simple HTML (

, , , and , mostly). The content is right now rendered using TextViews in a RecyclerView. I'm generating the content using Html.fromHtml(). However, this function is too simplistic. For example, it creates ridiculously large margins after the

element, and doesn't work at all. I'd also like to be able to apply some simple styling. What are the options, short of usin Oct 23 14:23:28 g a full WebView which is way too heavy? Oct 23 14:23:37 fixxxxeedddd Oct 23 14:23:45 What did you do wrong Estel Oct 23 14:24:27 No joy :/ Oct 23 14:24:43 VnM: the data had lots of invisible tab characters in it at the end Oct 23 14:26:28 Ah right, was thinking that for a moment but I didn't think it'd be that lol Oct 23 14:26:53 how does field_idx_diff work? Oct 23 14:27:23 loke, why is it in html? your doings? have you read about spannables Oct 23 14:27:41 whatitis: Because the content is pulled down from a server in HTML form Oct 23 14:29:20 whatitis: I have some degree of control of the stuff coming down the pipe, but if at all possible, I'd like to simply render the html as-is. Oct 23 14:29:38 Bascially, I need a Html.fromHtml that is slightly smarter than the existing version Oct 23 14:30:26 id suggest a different way if you are in control. look up fromHtml versus Spannables Oct 23 14:31:22 Are there any devices using xxhdpi action-bar icons? Oct 23 14:33:12 what kind of answer are you expecting? Oct 23 14:33:58 if you supply it, and the device is set to that density, id say yes Oct 23 14:34:39 So.. I am creating a new project.. I want to do this right.. I mean for it to be a library in the end but I need to create test cases. Should I create an activity in that project and should I check “Mark this project as library” ? Oct 23 14:35:58 wouldnt you create another project that includes the library? Oct 23 14:36:37 not sure, in Eclipse I would just create a library and use the andtoid test framework Oct 23 14:36:54 I would usually generate a dummy activity Oct 23 14:37:06 “hello world” if you will Oct 23 14:37:37 usually? so youve done it before? then stick with it Oct 23 14:38:35 in Eclipse, never Intellij Oct 23 14:38:56 Sorry, I didn’t state that earlier Oct 23 14:38:58 Anyone know what effect multidex.jar has on compile times? Oct 23 14:41:49 guys... this is driving me crazy already. So I have a listview which is showing the things from my database. Now if I longclick any item a ContextMenu shows up with the options of Delete and Edit... now the Edit is my problem. How the hell do I get the id from my database instead of the position my item is in the listview? I can't seem to make it work Oct 23 14:48:02 * OverCoder is stupid at designing ¯\_(ツ)_/¯ Oct 23 14:48:08 luci1093: What adapter are you using? Oct 23 14:53:55 is there an event to say when a button is un-clicked? Oct 23 14:54:27 yes Oct 23 14:54:59 http://developer.android.com/reference/android/view/KeyEvent.Callback.html Oct 23 14:55:05 ^gooles Oct 23 14:55:08 jooles Oct 23 14:55:08 loke_: SimpleCursorAdapter Oct 23 14:55:33 tricknology__ is that not for hardware buttons though? Oct 23 14:55:43 no yoiu can use it for soft Oct 23 14:55:51 Oh excellent. Cheers Oct 23 14:56:02 it behaves strangely ... now I see that after I "edit" something some items appear as duplicates for some reason but if I click them they show as they are in the db ... wth :| Oct 23 14:56:03 hardware enter is different though from software enter Oct 23 14:56:12 *hardkey Oct 23 14:56:13 This is what I found in Google: http://stackoverflow.com/questions/3784514/capture-button-release-in-android Oct 23 14:56:18 Because I found that not only am I getting multiple onClick events per press on my buttons, but pressing, holding and rolling my finger generates several hundred :P Oct 23 14:56:51 uuuh.. Oct 23 14:57:07 in regular onClick()? Oct 23 14:57:08 pieces029, it should be minor Oct 23 14:57:43 yup Oct 23 14:58:40 though now I wonder if several identical fragments are being created somehow instead of just one, which would also cause the multiple onClick events per tap Oct 23 14:59:16 if they are using the same OnClickListner() Oct 23 14:59:37 you’ve got some debugging to do Oct 23 14:59:52 Yeah.. seems that way Oct 23 15:00:05 best of luck :) Oct 23 15:00:31 remember that if you’re trying to catch keyup on a textedit or something, they have their own key listeners Oct 23 15:00:45 irritating thing is this was done wrong previously (One main activity with a fragment which then launches another fullscreen fragment) and I'm trying to change it so the first fragment launches an activity with the second fragment in it and it's all fallen apart Oct 23 15:01:04 copy paste? Oct 23 15:01:14 nope Oct 23 15:01:24 er... or did you mean to paste it so you can see Oct 23 15:02:52 Anyone know much about the new VAT changes? Since google say they are gonna handle it, does that mean they are going down the apple route of making the transaction Google->consumer instead of dev->consumer? Oct 23 15:02:59 Strange how the official Twitter client's app icon (non-clickable) is visually indistinguishable from its action-button icons (clickable). Oct 23 15:03:42 an ho i mean that’s sometimes a caveat of copy-paste when restructuring a project. shit breaks Oct 23 15:03:50 hmm, if I have a long, multiline text, and a textview that can show only, say, 10 lines, how can I make it show only the last 10 lines or something? Oct 23 15:05:25 whatever, back to eclipse now, loosing too much productivity. IntelliJ is now a home-based project lol Oct 23 15:05:48 yeah ;) Oct 23 15:07:05 this is painful because it's in a RemoteView... Oct 23 15:08:26 pfn ellispse start? Oct 23 15:08:41 whatitis, that's only for width, not for multiline text Oct 23 15:09:39 then if you are in control of data, only supply last X lines Oct 23 15:11:25 How do I call a toast from a regular java class? Oct 23 15:11:41 pass it a context Oct 23 15:11:49 I need a context, but by the time my regular class finishes what it is doing Oct 23 15:11:56 the activity could be gone Oct 23 15:12:05 ayy so if I want to add bytes, I want to use the | operator right? Oct 23 15:12:08 then dont show it Oct 23 15:12:38 tricknology__: nop Oct 23 15:12:50 tricknology, .... Oct 23 15:13:05 whatitis... how do I not show it? Oct 23 15:13:05 0x0f + 0x01 = 0x10 Oct 23 15:13:09 eghdk: You don't need an activity to show a toast. Just an application context. Oct 23 15:13:13 Does the context end up being nulled? Oct 23 15:13:31 yes Oct 23 15:13:33 I can use a activities context to call an application context Oct 23 15:13:34 ah i see, monsti. thanks Oct 23 15:13:40 I've got a problem getting the emulator to run when using the x86 abi for a device. It works when I use ARM. When I go to AVD, and start the device it comes up all black, and never boots. If I have the device monitor running, the device lists briefly shows the device as offline. There are no error messages. I use Android Studio 0.8.6 on OS X 10.9. The VD is set to use API 19 and hardware GPU. I have HAXM "IntelHAXM_1.1.0_for Oct 23 15:13:40 _10.10" installed (not the "below 10.10"). Any suggestions ? Oct 23 15:13:56 guys, when I quesrry a database with a Cursor ... and I move that cursor to a position ... the position is the _id collumn or something else? Oct 23 15:14:09 TacticalJoke: I can pass in an activity context, and use that to do getApplicationContext? Oct 23 15:14:17 I believe there is an issue with HAXM and 10.10 Oct 23 15:14:21 That way it will never get a null pointer? Oct 23 15:14:31 I’m still on 10.9 and that is one of those reasons Oct 23 15:14:51 http://stackoverflow.com/questions/26455759/installing-haxm-on-osx-yosemite Oct 23 15:14:59 ah, so that's what the 10.10 refers to Oct 23 15:15:04 Yosemite Oct 23 15:15:10 d'oh Oct 23 15:15:14 check that link though Oct 23 15:15:26 seems like there’s a workaround Oct 23 15:33:30 Hey all, trying to figure out how to return a JSONArray and how to use it. I can seem to declare it correctly http://pastie.org/9670492 Oct 23 15:36:27 sorry, back Oct 23 15:36:30 tricknology__ cheers for your help earlier. I'd screwed up the onTouch implementation for the button which was just causing heaps of trouble :P Oct 23 15:36:41 onClick even Oct 23 15:37:36 eh, really liking bitbucket Oct 23 15:38:28 yay jooles :) Oct 23 15:38:44 skrite: I think it'd help if you stated what the issue with that code was. (e.g., whether it compiles, etc.) Oct 23 15:39:15 BTW, a StringBuffer is just a thread-safe StringBuilder. You could use StringBuilder there. Oct 23 15:40:03 B0BBY: It's kinda lame compared to GitHub, unfortunately. Wish GitHub supported Mercurial. Oct 23 15:40:18 Oh, I misread. Thought you said "not really liking BitBucket". ;o Oct 23 15:40:28 TacticalJoke: yes, it compiles and runs if i just run the client.execute(url) however, i need the result back from that. Right now my error is type error cannot convert from AsyncTask to JSONArray Oct 23 15:40:36 I have a custom class that I extended, how do I call its super method when using it somewhere? http://pastebin.com/gEvL9dGm Oct 23 15:42:08 TacticalJoke: I'm using it with mercurial. tbh, github's got an overly busy / annoying stackoverflow type thing going on. bitbucket is cleana and do the point. Oct 23 15:42:54 TacticalJoke: mostly, I just like that I can have private repo that can be access from where I feel like working. :) stuff like my chrome extensions, etc. don't require a big framework setup so, it's cool to work on those wherever. Oct 23 15:44:38 skrite: Umm, I've never used AsyncTask, but aren't you supposed to override onPostExecute and do that stuff there? Oct 23 15:44:52 B0BBY: Yeah, it's cool for that. Oct 23 15:44:59 Tack Oct 23 15:45:45 TacticalJoke: maybe.. sorry, still very new to Java and Android dev. I thought that all requests to a network server had to be in their own thread and the tutorials all use AsyncTask Oct 23 15:46:34 doInBackground runs in a background thread. onPostExecute runs in the UI thread. Oct 23 15:48:15 eghdk: Can't you say "super.onFailure(<...>);"? Oct 23 15:51:30 heyyy, so I need some help - I never took this course in school. determinig int values of 0000h and 0436h Oct 23 15:51:38 0000h I know is 0, Oct 23 15:52:00 well. intuitively.. it seems like HEX but it’s only 5 elemnts long Oct 23 15:52:12 it is hex Oct 23 15:52:28 TacticalJoke: Yeah, I somehow botched something that intellij was complaning even though I did it correctly so I was second guessing myself. Thanks Oct 23 15:52:59 why no 6th character? Oct 23 15:53:24 or 8th even Oct 23 15:53:40 http://atlc.sourceforge.net/bmp.html talking about offsets Oct 23 15:53:56 tricknology: 1h is the same as 00001h Oct 23 15:54:06 lovely, thanks Oct 23 15:54:12 tricknology: just leading zeros are dropped Oct 23 15:54:23 same as 0001 vs 1 in decimal Oct 23 15:54:47 tricknology_: normally leading zero's are used to show the bit-width of the variable Oct 23 15:54:50 But 007 != 7. :D Oct 23 15:54:52 in your case thats 16bit Oct 23 15:54:54 (Kidding.) Oct 23 15:55:07 TacticalJoke: don't confuse him with octal Oct 23 15:55:08 lol Oct 23 15:55:28 heh Oct 23 15:55:48 I am understanding now I think.. but in hex the values come in pairs right? octal sounds fun (not) Oct 23 15:56:21 how do you know that it’s 16-bit? Oct 23 15:56:28 *Napalm Oct 23 15:56:37 tricknology not always Oct 23 15:56:40 hex does not come in pairs Oct 23 15:57:06 4bits per hex digit, so 0436h is 4 digits long = 16bit Oct 23 15:57:12 so 123h = 12bits Oct 23 15:57:57 still not much luck with getting an x86 VD to run. I tried installing the "below 10.10" which found the existing version of HAXM, and proceeded to replace it and reported success. This made no difference. The VD shows up briefly in the device monitor as "offline" and nothing happens. no errors. Then I uninstalled HAXM per the instructions on intels website, and restarted. Then I confirmed that HAXM was indeed gone with Oct 23 15:57:58 kextstat | grep intel - nothing. Then I installed "below 10.10" again. Now the kext shows up so the installation succeeded. Emulation of a x86 VD still doesn't work. ARM ones work fine. Any suggestions? Oct 23 15:58:19 Think decimal: 101 == 1 * 10^3 + 0 * 10^2 + 1* 10 ^ 1. Hex is the same only with 16s, so 123h is 1 * 16^3 + 2 * 16^2 + 3 * 16^1. Now your confusion is probably due to the fact that hex is often used to represent byte arrays and a byte, being 8 bits, takes 2 hex digits to represent Oct 23 15:58:41 kinch: open your command line and do: adb kill-server; adb devices Oct 23 15:58:52 kinch: that'll restart adb server and should resolve your issue Oct 23 15:59:37 yeah I understand base 16, jsut not the notation Oct 23 16:00:09 ok cool. Just making sure I've not missed anything, just in case :). Would rather overexplain than under, you know? Oct 23 16:00:26 thanks for your help, everyone.. I was going to try to ask #java thsi question but i already got shat on once today Oct 23 16:00:33 tricknology_: the h is just a suffix to show its hex, you can also use 0x as a prefix, as in, 0x1234 or 1234h Oct 23 16:00:46 I have seen 0x but not h Oct 23 16:00:52 ah, right Oct 23 16:00:58 so… do I include the h or leave it out? Oct 23 16:01:06 leave it out Oct 23 16:01:10 ^ Oct 23 16:01:15 it's only for humans Oct 23 16:01:21 haha gotcha Oct 23 16:01:22 "0x" is used for literals in C. Oct 23 16:01:29 Java too Oct 23 16:01:32 And other languages copied this. Oct 23 16:01:32 Yeah, Oct 23 16:01:34 .* Oct 23 16:01:54 though it assumes they're integer literals if > 0x9x ¬_¬ Oct 23 16:02:03 or something around there Oct 23 16:02:55 ok, I assume the adb command will be somewhere in the Android Studio package ? I'm looking but havent found it Oct 23 16:04:42 It's in ./sdk/platform-tools/ Oct 23 16:04:59 kinch: you'll find it in the sdk folder in platform-tools/ Oct 23 16:05:04 oh, sorry Estel Oct 23 16:05:35 thanks. Can't shake the feeling the problem has more to do with HAXM since I can run ARM VD's just fine. Oct 23 16:08:45 I ran those commands. services listed no attached devices. The emulator behaviour is unchanged. Oct 23 16:08:58 kinch: just read up, it's a known Yosemite problem Oct 23 16:09:01 X( Oct 23 16:09:07 Because they changed the security policy for kernel extensions Oct 23 16:09:07 sec Oct 23 16:09:33 kinch: solution here: https://www.reddit.com/r/androiddev/comments/2bujz2/using_intel_haxm_technology_on_mac_osx_1010/ Oct 23 16:09:51 Namely the nvram stuff. Though it obviously reduces your overall system security too Oct 23 16:10:47 well, I'm on 10.9. Originally I had installed the 10.10 HAXM by mistake. Now the "below 10.10" version of HAXM is installed Oct 23 16:11:21 kinch: have you considered just using Genymotion instead? Oct 23 16:13:01 * tricknology_ hates it when new incarnations come out because of the time taken to learn how to to the same things you did in the old incarnation. /rant Oct 23 16:14:35 not really. Working my way through the udacity google tutorial. I know I'm just being unreasonable when I expect such crucial tools to more or less work... Don't want to add even more variables with genymotion. Anyway, I'll stick to using ARM VDs Oct 23 16:15:00 ouch :( Oct 23 16:15:29 or just plug in a tablet. that works too Oct 23 16:15:54 kinch: it's not being unreasonable at all, but most of us here just end up trying to make the best of the tools they have, so I'd suggest Genymotion as a tool that will save you a huge amount of pain pretty much immediately vs. ARM VD. Oct 23 16:16:16 ok, I'll look into it Oct 23 16:23:38 “gottaGO left the chat room. (Quit: leaving)” heh Oct 23 16:28:34 Man, toasts are so ugly. Oct 23 16:28:41 And annoying. Oct 23 16:28:51 With a handful of exceptions. Oct 23 16:31:06 Crouton :) Oct 23 16:31:52 Estel, I was wondering about that last night. Is Genymotion really that much better? Oct 23 16:32:12 for an ARM based emulator Oct 23 16:33:08 Genymotion is not ARM based Oct 23 16:33:26 Lame. Ah well. Cheers :) Oct 23 16:35:20 Is there a reason you need ARM-based emulator on desktop? O.o Oct 23 16:36:30 Yeah. I don't have a tablet at home to test on yet Oct 23 16:36:50 hi. I have project that has a dependency for google play services in a certain version in my build.gradle.. i now set up the project on a new computer and it seems to not download this version but forces me to put the latest version as dep in it (6.1.11)... do I need to stick to this version right now or is there any way to tell gradle to download the version that is currently in the build.gradle? Oct 23 16:37:04 jooles: why does it need to be ARM based? Oct 23 16:37:12 Estel, because I'm using the NDK Oct 23 16:37:37 need to make sure it works on both ARM and x86 Oct 23 16:37:47 ah yes Oct 23 16:37:54 we just use the ARM emulator on CI server for that Oct 23 16:37:59 no alternative really -_- Oct 23 16:38:13 (and of course actual hardware, you can't test Android stuff with emulators) Oct 23 16:38:21 Yeah. Well, I will probably buy a refurbished nexus 7 or something soon Oct 23 16:40:03 Nothing beats actual hardware Oct 23 16:42:15 Does having a Toast in my model of my MVC break mvc rules? Because its a view right...? Oct 23 16:43:18 Android isn't an awesome fit for MVC Oct 23 16:43:35 jooles, any reason why you want the Nexus 7? Oct 23 16:43:40 the Tab 2 7 is pretty cheap now Oct 23 16:43:50 "Not being a Samsung" Oct 23 16:43:56 That's a pretty good reason Oct 23 16:44:30 eghdk, hmm... MVC really wasn't designed with Android in mind and Android wasn't designed with strict MVC definition in mind Oct 23 16:44:43 tricknology not particularly. Whatever's cheap and functional :) Oct 23 16:45:05 eghdk, so I'm not sure you should be worrying about that instead of worrying about good design :) Oct 23 16:45:23 Hi Oct 23 16:45:36 used < $100 refurb < 150 Oct 23 16:45:41 Where is the best place to learn android dev if I k ow some java Oct 23 16:45:48 Know Oct 23 16:45:53 used you can get one for about $65 Oct 23 16:46:01 Mavrik: I thought MVC was good design. Also big nerd ranch talks about mvc pretty heavily in Android. Are you saying that MVC still applies, it's just not so strict? Oct 23 16:46:14 tricknology The only issue with used is a potentially shortened lifespan Oct 23 16:46:30 Yeah battery-wise Oct 23 16:46:39 This guy has some pretty good ideas regarding android architecture and MVC http://www.therealjoshua.com/ Oct 23 16:46:39 eghdk, Android is MVC in a loose sense, but the strict MVC stuff you read in books is not really a totally good fit for mobile use Oct 23 16:46:41 but you’ll probably have it plugged in if you’re using it to dev Oct 23 16:46:48 true Oct 23 16:46:54 eghdk, my point is, yes, as a guideline MVC is ok. No, it's not a law. Oct 23 16:46:58 Anyone know of good tuts for android Oct 23 16:47:03 For app dev Oct 23 16:47:04 vogella is devent Oct 23 16:47:08 decent Oct 23 16:47:11 shaun413, traning on developer.android.com is pretty good Oct 23 16:47:17 Thanks Oct 23 16:47:18 also, it's your bible anyway :) Oct 23 16:47:23 ^ probably the bettwe way Oct 23 16:47:29 Yeah, I'm just using the developer.android.com stuff to feel my way around and learn :) Oct 23 16:47:31 it's not good Oct 23 16:47:47 best way is just to write stuff and figure it out by doing Oct 23 16:47:51 I don't advise it, it takes tons of things into consideration when explaining anything Oct 23 16:47:52 and then come here Oct 23 16:47:53 hahaha Oct 23 16:48:09 With OkHttpClient, how do you specify the same headers every time? i.e. always Accept: application/json Oct 23 16:48:24 Odaym, yeah, it expects you to know Java Oct 23 16:48:42 When I started on Androdi, I didn;t knwo either Oct 23 16:48:52 apparently I still can’t type.. :/ Oct 23 16:48:55 maybe Oct 23 16:49:06 explodes Oct 23 16:49:10 who needs typing. That's what IDE's are for :P Oct 23 16:49:11 you can you use a request interceptor Oct 23 16:49:19 not eclipse haha Oct 23 16:49:30 osipovas: isn't that for retrofit Oct 23 16:49:39 oops Oct 23 16:49:40 yes Oct 23 16:49:41 correct Oct 23 16:49:44 I wrote 1 method in intellij and it was beautiful. typed everything for me.. Oct 23 16:49:52 is there a way for just a pure okhttpclient? Oct 23 16:50:09 explodes: keep the client as a singleton? Oct 23 16:50:28 yea but, how do you assign those headers to that client to begin with? Oct 23 16:50:59 https://github.com/square/okhttp/wiki/Recipes Oct 23 16:51:00 ? Oct 23 16:51:19 negative, that requires you to set headers on the Request's that you create Oct 23 16:52:30 meh, I can make the code support this, in fact, it would be more effective to do it this way. Oct 23 16:52:48 for each request rather than the client you mean? Oct 23 16:54:42 tricknology: Eclipse is just as functional, with Ctrl+Space and Ctrl+1, from what I've seen. :) Oct 23 16:59:33 Right I'm off. Later all. Cheers again for the help :) Oct 23 17:01:43 explodes: we are adding interceptors in a future release that will allow you centralize headers Oct 23 17:01:57 for now you have to just add it to every Request manually Oct 23 17:16:40 hi.. i'm launching an activity from an other.. i tried to defined displayHomeAsUpEnabled() to true to return to the parent activity, but i go to the "home" activity.. any idea to fix this? Oct 23 17:24:29 anyone knwo how to get this file structure for a test in eclipse? http://developer.android.com/tools/testing/testing_android.html#TestProjectPaths Oct 23 17:25:00 new >> android JunitTest | makes the test project outside of the project to test Oct 23 17:26:39 rclsilver: How are you responding to the up-button press? Oct 23 17:26:39 please clarify: what MotionEvent.getX() return value of type dp or pixel? Oct 23 17:27:23 Hi guys.. I have a quick question (Android Studio).. I had this setup in Eclipse: I have a Library that has android-support-v4.jar inside its libs folder.. Whenever another app uses that library, android support v4 is available, so I don't have to include it again in the app's libs folder. Oct 23 17:27:49 when I tried the same thing in android studio, it didn't work.. that support v4 library is not available by default to any app using the library Oct 23 17:27:55 any ideas on how to accomplish this? Oct 23 17:28:01 don't use the jar Oct 23 17:28:08 specify a dependency in the library build.gradle Oct 23 17:28:11 jars are death Oct 23 17:28:43 but, I would have to add it to build.gradle on any app, right? Oct 23 17:29:08 no Oct 23 17:29:15 question about AARs; do all of them come without source? Oct 23 17:29:26 osipovas: yes, source is a separate artifact Oct 23 17:29:44 TacticalJoke: i'm talking about the "back" button in ActionBar Oct 23 17:30:16 how do I download that artifact? Oct 23 17:32:12 rclsilver: Yes, the Up button. It doesn't function until you add code, right? So I'm asking what code you added. Oct 23 17:32:33 Hello... Can anyone help-me with Audio Codecs? Oct 23 17:32:42 Calling setDisplayHomeAsUpEnabled doesn't make the button do anything, as far as I know. Oct 23 17:32:45 I am trying using dumpsys audio Oct 23 17:32:46 It just makes it appear. Oct 23 17:32:51 osipovas: http://search.maven.org/ search for the one you want then under the download column click what you want. Oct 23 17:33:19 osipovas: otherwise if you control click into a libarary function in Android Stuido up in the upper right corner you can click attach source. Oct 23 17:33:26 TacticalJoke: yes in my activity i've this code: http://pastebin.com/DzbRWbCm Oct 23 17:33:33 (lines 7-8) Oct 23 17:34:03 Hello Oct 23 17:34:18 I got the ADB drivers from http://www.droidacid.com/samsung-usb-drivers-for-mobile-phones-and-android-adb-drivers/ but idk how to install them .. Oct 23 17:35:03 any idea? :/ Oct 23 17:35:08 Windows 7, if it matters Oct 23 17:35:49 rclsilver: Since you're not reacting to "android.R.id.home" in onOptionsItemSelected, I'm surprised that clicking your Up button is doing anything. Oct 23 17:36:13 http://developer.android.com/training/implementing-navigation/ancestral.html Oct 23 17:36:29 i defined something in my AndroidManifest Oct 23 17:37:07 http://pastebin.com/hViSB4Fp Oct 23 17:37:17 Settings is the parent activity Oct 23 17:37:24 pieces029 that works for sure Oct 23 17:37:48 but it's not clear to me why some dependencies come with source and some don't Oct 23 17:39:24 I got rid of specifying aar and after a sync no sources were downloaded Oct 23 17:39:34 manually attaching works (but is a PITA) Oct 23 17:39:40 if I need something from /rex/raw/ I need to extend ActivityInstrumentationTestCase, right? Oct 23 17:40:32 I mean I don’t need it for the app itself but I need to write a test case that parses a png, so I’m getting the png from res/raw instead of capturing it in screenshot Oct 23 17:40:49 (in memory from within the app) Oct 23 17:45:51 osipovas: yeah I think AS forgets sometimes... Oct 23 17:46:33 people could be doing it wrong. Oct 23 17:51:25 Hello :) Oct 23 17:52:20 How accurate is the current install figure on google play developer console ? Oct 23 17:53:36 is the default text color in lollipop now white? Oct 23 17:55:42 If that figure is correct then only 10% of people who installed one of my apps actually kept it. Oct 23 17:56:28 Not sure what EXACTLY that figure inplies.. current installs. Surely if a user uninstall not via google play it will not be noticed ? or how does that work ? Oct 23 17:59:06 hmm… what if I want to load a resource from within the context of my test’s /res/raw? Oct 23 17:59:23 I know I can load resources from the tested activity. Oct 23 18:03:29 zambo, if your theme is dark, sure Oct 23 18:04:07 all the text of my PreferenceFragment is a muted grey using Theme.Appcompat O.o Oct 23 18:04:45 pfn: I’m using Theme.AppCompat.Light. It only happens on a device with the developer preview Oct 23 18:05:03 g00s, preferences cannot be light themed Oct 23 18:05:19 they used to be ? Oct 23 18:05:20 well, maybe there's a separate theme for it Oct 23 18:05:24 but the default light theme doesn't work Oct 23 18:05:32 on holo or appcompat ? Oct 23 18:05:48 on appcompat Oct 23 18:05:52 well it worked on on holo, mahmm Oct 23 18:05:56 ok Oct 23 18:06:01 The documentation seems to suggest that, if I'm supporting 4.0+, I need to specify both "android.support.PARENT_ACTIVITY" *and* parentActivityName. Do I really need both? Oct 23 18:06:55 pfn were the widgets / checkboxes aqua in your preferenceFragment after applying dark Theme.Appcompat ? Oct 23 18:07:06 maybe i forgot to do the widget tinting , still figuring this out Oct 23 18:07:08 g00s, yes Oct 23 18:08:18 so I'm screwing around with the notification for qicr, now it's totally non-platform looking Oct 23 18:08:30 Hello, I have a question about keeping a button state to pressed. Oct 23 18:08:38 pfn is that good or bad ? Oct 23 18:08:48 The button that has a drawable attachd to it Oct 23 18:09:00 g00s, a little bit of each? Oct 23 18:09:19 with a selector for state pressed = true Oct 23 18:09:34 on click, the button does change colors, etc.. Oct 23 18:09:42 i guess i have to learn how to tweak this theme, but out of the box my app is pretty ugly on holo with Theme.Appcompat Oct 23 18:10:19 https://lh4.googleusercontent.com/-wwY-QgD1HNg/VElEXYTFU8I/AAAAAAAAMZA/cnoUCp7bglU/w368-h589-no/14%2B-%2B1 Oct 23 18:10:21 but for some reason, it doesn't hold the state of pressed when I click on it. I want it to remain pressed until I toggle to another button. Oct 23 18:10:25 ^^ what I'm thinking about doing to my notification Oct 23 18:10:35 even when I do something crazy like this http://pastebin.com/y0XVv4p6 Oct 23 18:12:03 If anyone can give me a pointer on how to structure this I'd be grateful. I essentially have 5 main network calls that need an authenticator. You can call it a token, but if any of my 5 network calls fail with a token error, I try to regenerate a token with a regenearateToken method. But that method needs a way to restart the original network call. How would you do it? Pass in something into the tokenRegenerator()? Oct 23 18:14:33 is there a way to know if the data was changed on from the watch or from the phone for Android Wear? Oct 23 18:15:07 Afzal, you can set up an notification if the data changes Oct 23 18:16:07 Mugwump101, yeah, WearableListenerService.onDataChanged() executes but I want to differentiate for when the change is coming from the watch instead of the phone Oct 23 18:16:24 hmm, I could put a variable in the data map I guess Oct 23 18:16:48 different tone? Oct 23 18:16:50 for each alert? Oct 23 18:17:13 hmm? tone? Oct 23 18:17:20 Yeah like a notification sound? Oct 23 18:17:31 nope, I am changing data items. Oct 23 18:17:55 can you give me an example use case? Oct 23 18:19:39 yup, so you have a certain data item that as an on/off value. You can change that value from the phone or the watch Oct 23 18:20:05 in both instances, WearableListenerService.onDataChanged() executes on both, the phone and the watch. Oct 23 18:23:14 hello Oct 23 18:23:21 am I just too stupid or is this very outdated? Oct 23 18:23:22 http://www.androidpit.com/java-guide-2-program-your-own-rss-reader Oct 23 18:23:33 9 months ago Oct 23 18:23:45 the code snippets cause some errors.. Oct 23 18:24:04 cannot resolve symbol f.e Oct 23 18:24:33 what's faster for pulling files, adb-wifi or adb-usb? Oct 23 18:27:12 FTP Oct 23 18:29:20 Intent intent = new Intent(Intent.ACTION_VIEW, contact.getContactUri()); Oct 23 18:29:56 is there a way to use ACTION_PICK and send a specific contact to pick a number from that contact Oct 23 18:31:13 ntent intent = new Intent(ACTION_PICK, contact.getContactUri()); Oct 23 18:31:13 shows a list of all contacts and not the passed uri Oct 23 18:31:27 can ActionMenuView be used without Toolbar ? Oct 23 18:33:21 i wonder if I can use ActionMenuView as 'secondary action' in ListView items? or is that too heavyweight Oct 23 18:37:06 try it and let me know Oct 23 18:43:39 In order to use an ndk libarary as a third party lib for my anroid project, I place .a and .so files under jni folder. Oct 23 18:43:49 I wont do any change on this thirdparty lib. Oct 23 18:44:03 do I need .c files to run my app? Oct 23 18:44:26 or are compiled files enough to run? Oct 23 18:57:46 u should just be able to use LoadLibrary() method without the source Oct 23 18:58:05 hello, guys, someone may tell me what is android:ems? Oct 23 18:58:49 Yuri_Harrison this should help: http://stackoverflow.com/questions/7053738/what-is-meant-by-ems-android-textview Oct 23 18:59:40 thank you man...helps a lot Oct 23 18:59:51 gotta love when you read something completely answers a problem. "For most people this will work fine, but I can think of a few scenarios where this won’t work, including: Oct 23 18:59:51 You have your own custom version of the widget (i.e. you’ve extended EditText)" Oct 23 19:00:57 no android contact pros in here? Oct 23 19:11:04 what would be the easiest way to make an edittext inside of a white? There is no AppCompat dark theme, so it is black since it thinks the theme is Light. But really my Toolbar background is a darker color. Oct 23 19:19:35 use a ContextThemeWrapper with a different theme Oct 23 19:20:10 for only the inflation/instantiation of the EditText Oct 23 19:20:42 can you not pass a contact uri to ACTION_PICK? Oct 23 19:22:03 what would you expect it do if you did so? Oct 23 19:22:26 wanna pick a number from that contact Oct 23 19:22:38 not go through the entire list Oct 23 19:22:52 hey Oct 23 19:23:05 JakeWharton does it have to be a ContextThemeWrapper, or should I be able to use the theme attribute in XML? Oct 23 19:23:16 you guys think android dev is a decent way to maybe make a little extra money? Oct 23 19:23:59 not really Oct 23 19:24:06 unless you really mean 'little' Oct 23 19:24:15 well Oct 23 19:25:06 http://howmuchtomakeanapp.com/ Oct 23 19:25:30 JakeWharton with AppCompat 21, Chris is using "app:theme="@style/ThemeOverlay.AppCompat.ActionBar"" to style a Toolbar. I was thinking that if the "Dark" theme was used then the EditText inside would be white, or at least light Oct 23 19:25:31 im just trying to find some sort of dev work to do on the side while in college Oct 23 19:25:47 I enjoy learning about it, and if I can make some money thats even better Oct 23 19:26:02 mattblang_: that might be a bug then Oct 23 19:26:25 Jake do you know of a way to select a number from a specific contact URI Oct 23 19:27:00 TIL I'm basically working for free Oct 23 19:27:03 or override the selection of the phonenumber to use a custom method. Oct 23 19:27:14 stop working for free Oct 23 19:27:35 so is tht a yes then? Oct 23 19:27:45 andreyrd what do you mean? Oct 23 19:27:46 subsignal, those numbers seem high Oct 23 19:27:51 they work Oct 23 19:28:00 i send pages like that to clients Oct 23 19:28:02 went through that site subsignal linked :p Oct 23 19:28:06 and work with them within that range Oct 23 19:28:10 its a great tool Oct 23 19:28:25 there is also this one Oct 23 19:28:26 https://www.otreva.com/calculator/\ Oct 23 19:28:37 ifs a fancy way to make people pay extra money Oct 23 19:28:38 so you guys do make a decent amount then? Oct 23 19:28:58 ive made like 1200 in an app that took one hour Oct 23 19:28:58 i mean, i'm a student, so... i'd do it for 100% free just for the experience :P Oct 23 19:29:10 shaun413 im 59k / year full-time Android, though they are involving me with back-end stuff again lately. underpaid, but I am in Mississippi Oct 23 19:29:13 subsignal, thats decent Oct 23 19:29:30 well Im not in this field, MechE student Oct 23 19:29:36 but it interests me Oct 23 19:29:49 being a student people will not take your quotes as serious Oct 23 19:30:01 unless u have a good track record Oct 23 19:30:08 why not dev for myself then? Oct 23 19:30:34 subsignal: my first project :p Oct 23 19:30:35 if you dont mind doing all the work and focus on it more then 8 hours a day you can make a decent living Oct 23 19:30:47 Im not trying to make a living Oct 23 19:30:51 dealing with clients takes more time then developing on some projects Oct 23 19:30:54 just extra cash Oct 23 19:31:25 check craigslist and freelance websites then Oct 23 19:31:30 put in some quotes Oct 23 19:31:35 get some money Oct 23 19:31:38 well I need to learn first Oct 23 19:31:45 better get on it Oct 23 19:31:55 iphone pays well too Oct 23 19:32:20 I dont have full time hours available to work on this though Oct 23 19:32:32 most freelance stuff i see is shit like writing keyloggers :< Oct 23 19:32:32 less time less moneys Oct 23 19:32:54 yeah freelance seems crappy Oct 23 19:33:48 i made money doing it in college Oct 23 19:33:50 it works Oct 23 19:34:10 right Oct 23 19:34:16 do you have to be really good? Oct 23 19:34:18 only thing i can say is dont underbid on big projects Oct 23 19:34:38 i started on small shitty apps and worked up to bigger ones Oct 23 19:34:41 you can be shitty Oct 23 19:34:45 do basic ass apps Oct 23 19:34:53 example? Oct 23 19:35:14 the first app i did in college was basicly an intact for values from calculation Oct 23 19:35:19 all it did was have an input field Oct 23 19:35:22 and then log the numbers Oct 23 19:35:26 oh Oct 23 19:35:29 thats easy Oct 23 19:35:30 then they could run an equation Oct 23 19:35:31 yea Oct 23 19:35:45 paid like 2400 Oct 23 19:35:48 tooks me like 1 day Oct 23 19:35:49 damn! Oct 23 19:35:53 ez Oct 23 19:35:58 things like that all over Oct 23 19:36:01 just gotta huny Oct 23 19:36:03 hunt* Oct 23 19:36:03 thats good money Oct 23 19:36:13 I could pay for a whole semester doing that Oct 23 19:36:13 i mean there is also others Oct 23 19:36:19 that will pay like 500 to do way more Oct 23 19:36:26 so u gotta pick and choose whats best for u Oct 23 19:36:33 where do you find these? Oct 23 19:36:50 google, craigslist and freelance websites Oct 23 19:36:53 Do I have to specify parentActivityName when I already use "android.support.PARENT_ACTIVITY"? The documentation suggests that I do, but this gives me a warning (because my minSdkVersion is 21) and it doesn't even seem necessary. Oct 23 19:36:56 ok Oct 23 19:37:13 the android market is huge there will always be work Oct 23 19:37:27 so this is good to learn? Oct 23 19:37:41 java is good to learn not just for android yea Oct 23 19:37:48 and learn something like C or C++ Oct 23 19:37:56 u will be able to traslate to anything after really Oct 23 19:37:59 oh I know java Oct 23 19:38:00 Is there any easy way to disable scrolling inside a list view? Oct 23 19:38:27 yes Oct 23 19:38:34 http://stackoverflow.com/questions/7611085/disable-scrolling-in-listview Oct 23 19:41:06 subsignal: It almost works except I have other children inside the list view row that have on click listeners that that fails for. Oct 23 19:41:45 JakeWharton yeah, maybe so (bug). I dunno. I definitely can't seem to get it to change. I'm always hesistant to call bug, because I do stupid things so much. Oct 23 19:41:54 android:descendantFocusability="blocksDescendants" Oct 23 19:42:14 look into that jessie Oct 23 19:43:35 mattblang_: If you're just using the activity context to inflate the EditText, theme attributes on the Toolbar wouldn't be applied Oct 23 19:43:46 ActionBar had getThemedContext, don't know if Toolbar has an equivalent Oct 23 19:43:57 hi Oct 23 19:44:14 does ActionBarActivity require Fragment from support library? Oct 23 19:45:09 i believe ActionBarActivity extends FragmentActivity Oct 23 19:46:00 subsignal: so can I use normal Fragment or support.v4.app.Fragment ? Oct 23 19:46:06 yes, you can use either Oct 23 19:46:15 It doesn't require it, but it'd be stupid not to use them Oct 23 19:46:48 why? I am not interested in supporting android versions below 4.1 Oct 23 19:47:23 Because you already have them as a dependency. You get bugfixes and consistent behavior for free Oct 23 19:47:40 seems smart, thanks Oct 23 19:48:23 SimonVT I wasn't actually inflating in my Java, just had it declared in XML. I checked Toolbar, no ThemedContext Oct 23 19:50:57 ok, here is a simple question. in the line of code public class NetConnector extends AsyncTask what do the String, String, JSONArray referring to? Are they arguements passed into this class? Oct 23 19:51:28 I haven't looked at how Toolbar works, but somewhere a ContextThemeWrapper has to be passed to the EditText for the theme to be used Oct 23 19:52:02 skrite, generics: http://docs.oracle.com/javase/tutorial/java/generics/index.html Oct 23 19:52:05 SimonVT The widget tinting in appcompat works by intercepting any layout inflation and inserting a special tint-aware version of the widget in its place. For most people this will work fine but I can think of a few scenarios where this won’t work including: Oct 23 19:52:05 You have your own custom version of the widget (i.e. you’ve extended EditText) Oct 23 19:52:05 You are creating the EditText without a LayoutInflater (i.e. calling new EditText()). Oct 23 19:52:05 You are hooking up to the LayoutInflater’s Factory. Oct 23 19:52:40 SimonVT Not sure though what it means about LayoutInflater's factory Oct 23 19:53:20 SimonVT that previous bit was from Chris's blog post Oct 23 19:53:28 LayoutInflater#setFactory Oct 23 19:53:49 Activity is a LayoutInflater#Factory Oct 23 19:53:57 SimonVT: thanks ! Oct 23 19:54:16 He's talking about overriding Activity#onCreateView and handling inflating certain view tags manually Oct 23 19:54:19 SimonVT yeah, so I'm just declaring the EditText in XML then in onCreateView of my fragment calling inflater.inflate(). I don't believe this breaks any of those rules he mentioned Oct 23 19:54:20 That seems unrelated tho Oct 23 19:55:28 Can't really help you any further, haven't used Toolbar yet Oct 23 20:01:33 I'm confused by something. If "going up" is always gonna go to my main activity, why should I use "NavUtils.navigateUpFromSameTask"? Isn't "Activity.finish" (without having to specify a parent activity, etc.) just simpler? Oct 23 20:02:43 This may be more of a ##java question, but you guys are nicer. Since String is immutable, does that mean that substrings are lightweight? (they are just indices of the underlying char*) ? Oct 23 20:03:04 On SO, people are saying "don't use finish" because, I think, another process might've spawned that activity. But that doesn't seem to make sense. In that case, you can't use a simple navigateUpFromSaveTask call anyway. Oct 23 20:04:25 explodes: "The substring(int) method always returns a string that shares the backing array of its source string. Generally this is an optimization: fewer char[]s need to be allocated, and less copying is necessary. But this can also lead to unwanted heap retention." ( http://developer.android.com/reference/java/lang/String.html ) Oct 23 20:04:57 I wonder whether that also applies to the Substring(int, int) method. I'm looking at the code right now. Oct 23 20:05:45 TacticalJoke: i'm hoping the heap rention won't matter because the string will only be scoped in this small set of methods Oct 23 20:06:05 the string i'm substringing is created from two provided strings Oct 23 20:06:14 It's lightweight in the sense that it uses the same char array as the original string, it's not lightweight in the sense that it will retain the entire char array for the lifetime of the new String instance Oct 23 20:06:16 I'm not sure whether that documentation is correct. The code seems to be doing something else ("return new String(whatever);"). Oct 23 20:06:37 SimonVT: Perfect explanation, thank you Oct 23 20:06:41 TacticalJoke: Werd, thanks man Oct 23 20:07:53 do .substring(int, int).toString() - just to be safe :p Oct 23 20:08:29 Which just returns the same instance Oct 23 20:09:01 burst my bubble why don't you Oct 23 20:09:16 Here's the code: https://android.googlesource.com/platform/libcore/+/master/libart/src/main/java/java/lang/String.java Oct 23 20:09:16 I think I read somewhere that you can do new String(origString.substring(i)) Oct 23 20:09:43 But yeah, unless you have really large strings..:p Oct 23 20:10:25 To avoid this where necessary, call Oct 23 20:10:27 * {@code new String(longString.subString(...))}. Oct 23 20:10:31 says right there Oct 23 20:10:38 new ozone looks good: https://www.youtube.com/watch?v=Yv-5U71oms0 Oct 23 20:10:41 oh oops wrong room Oct 23 20:11:04 Hah, was probably the String docs then Oct 23 20:11:07 Oh, my mistake. The documentation is correct. String.substring calls a private constructor which does, indeed, just share the original char[]. Oct 23 20:12:20 subsignal: Thanks, got it working with the link you gave. Oct 23 20:12:28 ^_^ Oct 23 20:13:20 And both String.substring methods say "The returned string shares this string's backing array". Oct 23 20:15:37 For some reason my google fu failed me and I couldn't seem to find that page. Oct 23 20:15:38 SimonVT: thanks for that link on generics Oct 23 20:15:54 lol Oct 23 20:16:19 skrite: No problem :) Oct 23 20:16:39 need contact guru still cant figure out what i need Oct 23 20:19:44 ughhh Oct 23 20:19:50 swiperefreshlayout looks ugly now :( Oct 23 20:23:49 SimonVT: ok, i have been reading about generic programming . All the examples show something with one identifier like so what does something like or mean? Oct 23 20:24:29 It's like having just one, except there's 3 Oct 23 20:26:43 AsyncTask just have 3 type parameters, used for 3 different things Oct 23 20:27:28 why the fuck is this image cropper hitting onactivityresult right away Oct 23 20:27:46 * andreyrd is pissed that he's spending more time fixing shit that's not part of his code rather than working on his code Oct 23 20:28:16 <_Auron_> I can't seem to figure out why my CalendarView is not displaying dates at all, just the view and the month/year/day name header labels Oct 23 20:28:25 SimonVT: ok, i think i get it, thanks Oct 23 20:28:32 <_Auron_> even though the ADT graphical layout shows it, it won't on my devices. Oct 23 20:28:38 andreyrd, pottymouthing surely won't help though Oct 23 20:29:14 :| Oct 23 20:30:12 I believe you need to give it a fixed height Oct 23 20:34:46 <_Auron_> SimonVT: tried that, didn't change anything Oct 23 20:35:19 toolbar.setNavigationIcon() .. is there a standard thing i should be using for this ? Oct 23 20:35:37 bundled in appcompat ? Oct 23 20:39:09 So I have a network request that starts in activity A. I put a temp 10 second delay in the network request. So that gives me time to go into activity B. B loads up an ArrayList into a ListView. But after the 10 seconds the list isn't updated. If I leave activity B and then come back, the data shows. What's the best way to notify another activity of something? Oct 23 20:39:53 eghdk thats totally busted; it would be a good time to learn about Service, storing global state, etc Oct 23 20:40:51 4GB RAM - (100 Google Chrome tabs + the Android emulator) = not fun Oct 23 20:41:12 g00s: Well the data comes from the network, and I store it in a database. So it's persistent. But I would like to almost register activity B as a listener to this type of network request or something. Oct 23 20:42:00 g00s: That's why I'm asking for a pointer. I understand that a service would be userful in downloading the information in this case. Oct 23 20:42:08 do the network in a IntentService Oct 23 20:42:23 have your activity listen for changes when up, and poll it from onStart Oct 23 20:42:26 or use a loader Oct 23 20:42:56 Poll for changes? Oct 23 20:43:13 In the activity? Oct 23 20:43:22 oops. well if you are using a loader, you don't need to poll for anything Oct 23 20:43:29 just start the loader Oct 23 20:43:47 Any alternative to a loader?? Oct 23 20:44:01 sure, plenty Oct 23 20:44:08 all your own :) Oct 23 20:44:12 Anyone ever seen this error "Only one HTTP method is allowed. Found: GET and GET." w/ retrofit? I'm guessing it thinks I have two @GET but I do not have that. Oct 23 20:44:25 you are swallowing another error somewhere Oct 23 20:44:28 Can you name maybe one or two more alternatives. I'd like to try a few things out. Oct 23 20:44:35 Ty Oct 23 20:44:40 eghdk look at iosched code Oct 23 20:44:44 they do this Oct 23 20:48:22 The documentation is wrong here: http://developer.android.com/guide/topics/ui/actionbar.html#Home "Once the parent activity is specified in the manifest like this and you enable the Up button with setDisplayHomeAsUpEnabled(), your work is done and the action bar properly navigates up." Oct 23 20:48:35 That's false for < 16. Oct 23 20:49:44 For notifyDataSetChanged() to do anything, does it need the actual ArrayList object on the heap to change or if the ArrayList Reference changes (ie. arrayList = new ArrayList(list2);? Oct 23 20:51:27 JesusFreke in here? Oct 23 20:52:03 came across your SO post about switch/case and funny while loops on a decompiled .apk Oct 23 20:52:55 wondering if there was a method to its madness and if there is any dependable way to read it Oct 23 20:54:13 TacticalJoke: which is quoted in the very page you linked Oct 23 20:54:21 so the documentation isn't wrong Oct 23 20:58:15 JakeWharton: The documentation suggests that calling setDisplayHomeAsUpEnabled, setting "android:parentActivityName", and doing the "android.support.PARENT_ACTIVITY" thing is enough to get the Up button working on < 16 or >= 16. This is false: that's enough only to get stuff working on >= 16. (In fact, calling setDisplayHomeAsUpEnabled and setting "android:parentActivitnName" is enough.) Oct 23 20:58:40 On < 16, you also need to override onOptionsItemSelected to get the button working. Oct 23 20:59:02 JakeWharton: any suggestions on how to find where I am swallowing the error? Oct 23 20:59:23 on the first API call you are making Oct 23 20:59:43 It's also unclear why the documentation is suggesting we use "android:parentActivityName" at all on < 16. That's apparently totally unnecessary. Oct 23 21:00:00 That seems to be a convience thing for >= 16 only. Oct 23 21:00:03 convenience* Oct 23 21:00:37 <_Auron_> ugh, I'm probably going to have to write my own calendarview anyways Oct 23 21:00:49 God, I wish the documentation were clear and to the point. Figuring out the logic is like undergoing a Mensa test sometimes. You have to read page after page and notice tiny, little inconsistencies. Oct 23 21:01:37 <_Auron_> not only are the dates refusing to show or work, but reading through all the documentation you can't customize very much of the calendar without reflection and even then it's a bunch of hackery Oct 23 21:01:46 welcome to literally all software development ever Oct 23 21:02:04 <_Auron_> ^ Oct 23 21:02:05 I dunno; I've rarely encountered documentation this messy. Oct 23 21:02:20 For an OS's basic API. Oct 23 21:03:34 technically, the OS's basic API is the low-level kernel API; Android API is more like an application framework API Oct 23 21:12:54 With OkHttpClient what do I have to do to make concurrent requests for the same URL use the same response? Oct 23 21:16:07 I've heard people talk about some kind of queue, but idk where to start to implement that Oct 23 21:16:12 that's application-level logic Oct 23 21:16:12 Hi everybody Oct 23 21:16:19 nothing to do with what HTTP client you are using Oct 23 21:16:50 Hi, Dr. Nick! Oct 23 21:16:53 :) Oct 23 21:16:56 I'm using Volley lib but I wanted to know if there is any way to know if it did process all the tasks and there's no more tasks to run ? Oct 23 21:17:21 I want to know if the queue is empty or not Oct 23 21:17:45 anybody used recyclerView on the watch? Oct 23 21:21:24 JakeWharton: any tips on where to start? Oct 23 21:21:36 JakeWharton: or code that you've done that I can review Oct 23 21:22:10 hey guys - i have a quick question for those of you who have published an android app Oct 23 21:22:14 The documentation for Activity.onOptionsItemSelected says "Derived classes should call through to the base class for it to perform the default menu handling", and yet nobody seems to do this. Hmm. Or does that "for it to" mean "if users want it to"? Oct 23 21:22:32 fairly simple really - im trying to make a link work from a html site to google play Oct 23 21:22:51 the url is correct - but the page isnt being shown correctly Oct 23 21:23:52 TacticalJoke the people writing the javadoc, or whatever - have absolutely no skills at technical writing Oct 23 21:24:19 henning_, it isn't shown correctly, where? Oct 23 21:24:37 check out the google play link on: www.whiplashstemmer.dk Oct 23 21:25:42 if you click the button, it will say that the requested URL was not found on this server. But if you then click on the url field, and press enter - or refresh. it will show Oct 23 21:28:35 i have 2 activities; in once case i have to call setSupportActionBar() the other not. i don't understand why one works and the other doesn't. Oct 23 21:28:49 g00s: Wait can I just do this with a broadcast reciever? Oct 23 21:29:00 so setNavigationMode and setListNavigationCallbacks are depcrecated now. What is the proper way to set up a Spinner now then? Oct 23 21:29:16 The whole notify another activity of what a random java class is doing? Oct 23 21:29:31 both inherit from the theme Theme.AppCompat.NoActionBar; so maybe it depends on where the toolbar is in the view hierarchy ? Oct 23 21:30:24 eghdk no, what you are asking is standard Android Application Architecture. there are many ways to do this, but if unsure, like i said - familiarise yourself with iosched. but they do use ContentProvider Oct 23 21:30:27 "sending message to a Handler on a dead thread" Oct 23 21:30:28 :( Oct 23 21:30:34 y u do dis service :( Oct 23 21:31:10 mattblang_ also, in the iosched app. look at the welcome activity , its layout. they have 2 spinners there Oct 23 21:31:45 i think its the toolbar_*_header theme, don't quote me on that :) Oct 23 21:31:59 g00s: Interesting. Because I found an example online and they use a broadcast reciever and it seems to work. Oct 23 21:32:00 hmm Oct 23 21:32:09 its one way Oct 23 21:32:25 stuffing bundles for in-app comms is the suck Oct 23 21:32:57 Any thoughts on the google play link now able to be shown properly ? Oct 23 21:33:33 Should I override Handler.finalize() ? Oct 23 21:33:53 g00s it is actually the browse_sessions activity. Yeah, they have a custom Toolbar instead of using the ActionBar. But the ActionBar is still available from what I have read. In other words, it isn't necesarilly encouraged, I didn't think, to start using Toolbar instead of ActionBar. Oct 23 21:34:22 Should I override Handler.finalize() to clean up in event of a dead thread? Oct 23 21:35:30 * StingRay_ is so glad both action bar and toolbar are irrelevant to him :) Oct 23 21:36:08 Toolbar is Good Oct 23 21:36:26 Documents are Bad Oct 23 21:36:35 StingRay_: How I envy thee. Oct 23 21:36:47 g00s well I think I have had Toolbar, touch feedback, rounded images and drawable tinting just to name a few since I started Oct 23 21:36:54 don't envy StingRay_ ... just imagine when users say "hey i want material theme!" Oct 23 21:37:00 so thats what I mean …had them for 2 years Oct 23 21:37:04 I have material themes Oct 23 21:37:12 :D Oct 23 21:37:15 pastels and dropshadows with touch feedback Oct 23 21:37:19 :) Oct 23 21:37:23 for a year or so Oct 23 21:37:26 g00s So I am left wondering, should I make a Toolbar or just use the deprecated methods in my ActionBar :P Oct 23 21:37:51 mattblang_ i don't know, i'm getting odd results :( Oct 23 21:38:04 g00s with Toolbar? Oct 23 21:38:07 i'm sure i'm just doing something wrong Oct 23 21:38:36 yeah i am confused, between Theme.AppCompat and Theme.AppCompat.NoActionbar - and when I use either, what I have to do Oct 23 21:38:37 g00s well, I am too. I can't theme it like Chris did in his blog post. Oct 23 21:38:56 g00s no matter what the widgets stay dark gray, but I want them white Oct 23 21:39:45 I'm not even sure about the idea of using Material pre 21. Oct 23 21:40:10 TacticalJoke I like it. Will be a long time before 4.x is gone Oct 23 21:41:05 on pre 21 i like Holo > * Oct 23 21:41:20 I just like Holo. Oct 23 21:41:41 Holo was nice and did the job well. Oct 23 21:41:48 Material is really flashy Oct 23 21:42:32 can anyone tell me if this gnarly decompiled this is a for loop? the logic seems to fit but it’s nasty.. http://pastebin.com/ec9BYnHL Oct 23 21:42:49 one of the things google has historicallt (IMHO) been terrible at, is documenting the theme attributes, which one you need for what. They should have a visual dictionary of at least some of these Oct 23 21:43:17 Oh hey, Amazon updated their UI to resemble material Oct 23 21:43:20 for example, in the design guidelines, they often have a layout with measurements - x dp here, that dp there Oct 23 21:43:40 what they need is 2: one for space, one for color, and each has the attrs Oct 23 21:43:54 seitensei on Kindle ? Oct 23 21:44:10 The website Oct 23 21:44:43 their site doesn't look much different to me Oct 23 21:44:46 http://prntscr.com/4z2pix Oct 23 21:44:47 looks the same to me Oct 23 21:44:55 Didn't have the dark bar when I was on there a few days ago Oct 23 21:45:13 certainly a lot cleaner now Oct 23 21:45:20 * pfn tries qicr on an L emulator Oct 23 21:45:26 I'm getting the new moto x next week, I'm excited Oct 23 21:45:29 seitensei: yeah. still don't see it. Oct 23 21:45:34 That doesn't a lot look like "material design" to me. Oct 23 21:45:56 seitensei they have been doing a/b testing for a while; i get different amazon sites Oct 23 21:46:00 of course, the x86 L emulator is a piece of shit Oct 23 21:46:07 either that or the current haxm version Oct 23 21:46:09 Personally, I'd be happy to ship apps with a modified Holo only. Oct 23 21:46:20 But even then I have to worry about Toolbars and RecyclerViews and stuff. ;| Oct 23 21:46:33 that screenshot's color isn't that far off from the associates bar color. Oct 23 21:46:45 i'm not going to try RecyclerView until there is more info on it Oct 23 21:46:51 Not familiar with associates bar Oct 23 21:47:06 I'm still seeing the "old" Amazon design -- even after Ctrl+Shift+R. Oct 23 21:47:08 g00s I was about to start looking actually Oct 23 21:47:13 .com and .co.uk. Oct 23 21:47:26 g00s: Same. Oct 23 21:47:39 Ooo Oct 23 21:47:41 g00s see how it does with my 5000 item 80,000 sub item listvews Oct 23 21:47:50 Darkens when I hover over a menu Oct 23 21:48:00 I'm not looking forward to using v7, because I'm in Eclipse. :/ Oct 23 21:48:14 I guess I can hide the imported project from view using workspaces, or whatever they're called. Oct 23 21:48:16 http://prntscr.com/4z2qvq Oct 23 21:48:45 g00s though you were looking into reyc views a day or so ago ? you given up ? Oct 23 21:48:45 Definitely a lot faster and usable for me Oct 23 21:48:57 yeah i gave up Oct 23 21:49:00 recyclerview works? Oct 23 21:49:05 tricknology_: I don't understand the 'break;' in the loop. Oct 23 21:49:09 haha Oct 23 21:49:20 Error: unreachable code detected. Oct 23 21:49:34 Napalm was helping me through batch mode / contextual actions ... he pretty much wrote several hundred lines of code to get that working and i sai fuck it Oct 23 21:50:07 btw, Napalm is a fucking code ninja if i ever saw one Oct 23 21:50:15 I think my plan is to stick with Holo and ListView and ActionBar for a few months. Oct 23 21:50:17 Not sure, though. Oct 23 21:50:23 TacticalJoke, it’s switching on an enum Oct 23 21:50:26 By a few months, everything might magically work and be documented. Oct 23 21:50:57 tricknology_: Isn't the switch already finished at that point? Oct 23 21:51:10 http://ezscreens.appspot.com/view/9b5a/qicr+notification+on+L Oct 23 21:51:11 interesting Oct 23 21:51:21 * tricknology_ shrugs it seems so. it’s using a lazy switch_table Oct 23 21:52:17 I haven't been able to make RecyclerView work at all, so I'm sticking to ListView since I know it works. Oct 23 21:52:18 also, looks like ti else turns into do while? Oct 23 21:53:24 That code just seems largely useless. Oct 23 21:53:25 hey guys - i have a quick question for those of you who have published an android app Oct 23 21:53:26 in some Google applications NavDrawer is drawn over ActionBar and on other it is drawn under ActionBar. Why is that? (I am talking about material design) Oct 23 21:53:29 fairly simple really - im trying to make a link work from a html site to google play Oct 23 21:53:41 whenever i click the link from my site, google play with open and say that the requested URL was not found on this server Oct 23 21:53:54 yacek19 probably what mood they were in Oct 23 21:54:10 I'm about to start a new project, and now would be the perfect time to do all the Material Design stuff, and RecyclerView, and so on. But now is also not a great time because it's all so new. :/ Hard to know what to do. Oct 23 21:54:20 g00s: so how should it be properly and on what it depends? Oct 23 21:54:27 I don't want to create more work for myself down the road (by having to switch *then*), but I also want stuff to just work Oct 23 21:54:28 . Oct 23 21:54:32 yeah sometimes code decompiles into useless looking garbage but there is usually some underlying logic you can figure out.. returns and unreachable code sometimes need to be moved Oct 23 21:54:57 yacek19 see http://www.google.com/design/spec/layout/structure.html#structure-ui-regions-and-guidance Oct 23 21:55:09 tricknology_: Is it an issue with the "decompiler"? Oct 23 21:55:10 like if()else if() else if() turns to if() do{}while()do{}while().. Oct 23 21:55:24 using JD.. maybe? Oct 23 21:55:47 I used to decompile C# code a lot. A lot of it was weird, but I don't remember large amounts of no-ops. Oct 23 21:55:53 JD seems to always do this.. ususally it’s pretty easy to figure out.. but this one and it’s enum switches Oct 23 21:55:55 Unless they were specifically declared as no-ops. Oct 23 21:55:58

- why wont this work ? Oct 23 21:56:22 henning_, sorry about earlier, my box crashed :-/ Oct 23 21:56:37 MikeWallaceDev_ i noticed you pinged out mate :) no worries hehe Oct 23 21:56:42 just glad you replied ^^ Oct 23 21:57:42 The screen froze right after I posted, and I didn't know it. I was like "Why isn't he answer me??" Then I noticed that the cursor wasn't blinking... Oct 23 21:57:56 *answering Oct 23 21:58:04 hehe Oct 23 21:58:49 want me to send a link to the site again ? Oct 23 21:58:52 g00s: seems like it shoud be on top of the toolbar Oct 23 21:59:16 can't right now, I'm updating my system. I'm scare to even type this! Oct 23 21:59:22 *scared Oct 23 21:59:25 oh :) Oct 23 22:00:49 yacek19 also see http://stackoverflow.com/questions/26440879/how-do-i-use-drawerlayout-to-display-over-the-actionbar-toolbar-and-under-the-st Oct 23 22:01:58 that is my current behaviour Oct 23 22:01:59 I was just wondering Oct 23 22:04:05 guys, the addTextChangedListener() makes my app crash on screen rotation Oct 23 22:04:09 i get NPE Oct 23 22:05:29 catch the NPE Oct 23 22:05:49 heh jk you using fragments/ Oct 23 22:05:56 but, that would probably make my app slower Oct 23 22:06:06 no i don't use fragments Oct 23 22:07:02 o i 'think' i figured out Oct 23 22:10:25 idk why it feels like my launcher will be awesome, i mean no my very crap device it's ultra fast Oct 23 22:11:34 Hey guys Oct 23 22:12:54 hey WhoNeedszZz Oct 23 22:13:28 So i've been learning Android app dev for not too long and now trying to learn Material design. I'm trying to make a simple weather forecast app that displays the current conditions and the next 5 days. What would be the best suited design for how the data should be displayed with Material design? Oct 23 22:13:50 Layout design that is Oct 23 22:14:59 WhoNeedszZz that stuff is pretty new, i dont think anyone is an expert yet. just read the docs and watch the material i/o videos Oct 23 22:15:10 your guess will be as good as anyone elses :) Oct 23 22:15:18 Ha that's what i was afraid of Oct 23 22:15:45 I've been going through the docs, just confused Oct 23 22:15:55 they are great, aren't they ? Oct 23 22:16:42 i wonder if its because (1) they haven't had time to really clarify things yet or (2) the idea is nebulous, and hard to clarify because its vacuous Oct 23 22:16:56 I was going to go with the old style tab host and make tabs, but when coding that I noticed every method I was calling was marked as deprecated. So figured it was a radically different approach. Oct 23 22:17:08 one sec Oct 23 22:17:22 yeah i'm not looking at material at all until there's more phones with it and more design guidelines Oct 23 22:17:58 WhoNeedszZz you can look at http://developer.android.com/samples/SlidingTabsBasic/index.html Oct 23 22:18:29 Yeah I was hesitant, but figured since I'm just getting my feet wet to begin with it would be counter-productive to learn the old way and then learn the new way Oct 23 22:18:35 Thanks g00s Oct 23 22:19:00 i just got Play Store update, in 'My Apps' they use tabs that look nice Oct 23 22:19:14 those aren't TabHost, since the indicator is animating between swipes Oct 23 22:19:23 no idea what they are Oct 23 22:20:39 Yeah that's what i was trying to find out Oct 23 22:20:54 WhoNeedszZz if you learn it, let me know : Oct 23 22:21:36 Would it make sense to use cards and use the new RecyclerView? Oct 23 22:21:58 i have no experience at those Oct 23 22:23:24 g00s, the tabs are pretty similar in iosched2014... there were some custom widgets in there "SlidingTabLayout", and "SlidingTabStrip" Oct 23 22:23:52 pmarino oh thanks, i missed those in iosched Oct 23 22:25:22 I love how the spec sounds like you are listening to someone stoned out of their mind explain something Oct 23 22:25:22 List apps = getPackageManager().getInstalledApplications(PackageManager.GET_META_DATA); Oct 23 22:25:23 for (ApplicationInfo app : apps) { ... } Oct 23 22:25:28 app.name is always null Oct 23 22:25:32 hm? Oct 23 22:25:37 WhoNeedszZz lol ! Oct 23 22:25:49 You gotta think of it like paper dude! Oct 23 22:25:53 maybe thats what it requires for comprhension :) Oct 23 22:25:59 Just about to say that! Oct 23 22:26:15 Let me get back to you on that ;) Oct 23 22:26:40 like paper with gears and pulleys attached so when you move this pieve that way, the other pieces all run away in opposite directions ! Oct 23 22:26:56 ha Oct 23 22:28:10 Also all these white images on gray bg is hilarious Oct 23 22:28:24 Not even gray. Off-white Oct 23 22:30:02 "Don't. Never allow a sheet of paper to be split by another sheet of paper." Oct 23 22:32:31 WhoNeedszZz if you do that , it emits high energy particles Oct 23 22:32:47 paperons? Oct 23 22:33:01 :) Oct 23 22:33:13 what color are they? ;) Oct 23 22:33:44 they look like Nyan Cats Oct 23 22:38:38 it would be nice if the android docs had a 'last updated' date Oct 23 22:38:55 and some place that just had a changelog for the docs Oct 23 22:39:24 '2014/10/20' Added new ToolBar info to ActionBar API GUides (link ...) Oct 23 22:40:31 I'll try recyclerview when people have it down to a science that doesn't require a shitton of boilerplate Oct 23 22:40:33 yeah seriously Oct 23 22:40:50 To both of you Oct 23 22:41:08 oops Oct 23 22:41:44 I probably should back off and just make the app with old styles. Reading more and more it's becoming very clear the whole methodology is different Oct 23 22:41:58 The emphasis seems to be on z-space Oct 23 22:42:13 yeah Oct 23 22:42:18 Which is interesting having a flat design with z-space Oct 23 22:42:45 what they neee to explain is how to use sheets pre 21 Oct 23 22:42:49 I do think it looks a lot nice, but implementing looks difficult Oct 23 22:43:00 nicer* Oct 23 22:44:40 pfn, recyclerview is pretty powerful - best example app i can think of at this point is Inbox Oct 23 22:44:50 canadiancow, and I don't have it, heh Oct 23 22:44:52 but i agree it can take a lot of boilerplate to get it going Oct 23 22:44:59 do you want it? Oct 23 22:45:31 canadiancow, sure Oct 23 22:45:41 I've got an EditText that I'm trying to set a drawableStart on with centered text, but the drawable appears to the left area of the EditText. Oct 23 22:46:03 Any thoughts on how to set a drawable just left of the text? Oct 23 22:47:14 canadiancow i hope they plan on having much more in the guides about RecyclerView; the javadoc is almost useless Oct 23 22:47:56 i also hope so Oct 23 22:47:59 especially how to implement your own LayoutManager Oct 23 22:49:49 pfn, if i'm using Toolbar as an ActionBar in my layout , should I be using Theme.AppCompat.NoActionBar ? Oct 23 22:49:50 Cards with a span of 3 might work for my app Oct 23 22:50:06 g00s, no idea, I haven't tried Toolbar Oct 23 22:50:34 I think that is correct, g00s Oct 23 22:50:53 WhoNeedszZz thanks, seeing weird things Oct 23 22:51:34 if NavigationDrawer is recommended to be on top of the Toolbar, so why there exists animation from hamburger to arrow? Oct 23 22:53:19 Or possibly 2 views, one with one card for current weather and other view for 3 cards for next 3 days? Oct 23 22:53:23 ok, so can someone tell me why iosched can do this - toolbar shows, but they are not saying setSupportActionBar(toolbar) here : https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/SettingsActivity.java#L41 Oct 23 22:54:30 the layout has it here https://github.com/google/iosched/blob/master/android/src/main/res/layout/activity_settings.xml#L24 Oct 23 22:54:59 so is ActionBarActivity automagically looking for a Toolbar if its a child in the contentView ? Oct 23 22:55:04 g00s: in BaseActivity Oct 23 22:55:22 g00s: getActionBarToolbar Oct 23 22:55:41 yeah i saw that, one sec Oct 23 22:56:31 yacek19 ah motherfucker, their setContentView calls that Oct 23 22:56:55 i thought , well SettingsActivity isn't calling that so ... Oct 23 22:56:59 yacek19 thanks :) Oct 23 22:57:07 no prob Oct 23 22:59:26 I am just missing something: in IO sched they use old style moving-left hamburger, in Google music they use hamburger flipping to left arrow (NavigationDrawer not over Toolbar) and in Google Magazines- NavigationDrawer is on top of the Toolbar Oct 23 22:59:33 3 different approaches Oct 23 23:03:11 only 3? i'm sur ethere will be more :) Oct 23 23:04:01 new AS update 0.8.14 Oct 23 23:04:28 hopefully this one fixes the 300 bugs or so since .12 Oct 23 23:06:49 its frustrating that they are giving open sourced app that should be a guideline Oct 23 23:07:23 Yep, we need consistency in guidelines and in application. Oct 23 23:07:33 One baselines. Oct 23 23:07:35 baseline* Oct 23 23:07:55 and they create simple shadows or some details by inheritance and tons of code Oct 23 23:08:48 not everyone has factory of android applications and hire tons of overskilled people Oct 23 23:09:24 for 1 month I have been polishing UI, just to rewrite half of it because of appcompat 21 Oct 23 23:10:00 not only to mention, that app should do something, not only behave good in UI Oct 23 23:10:20 The documentation says "If your app supports Android 4.0 and lower, include the Support Library with your app and add a element inside the. Then specify the parent activity as the value for android.support.PARENT_ACTIVITY, matching the android:parentActivityName attribute." Oct 23 23:10:36 If we're using "android.support.PARENT_ACTIVITY", why would we want to specify "android:parentActivityName"? It's not needed at all in my testing. Oct 23 23:11:30 because of support supporting support Oct 23 23:12:58 better leave both values Oct 23 23:12:59 This is something that should be so simple, but the documentation leaves me confused and uncertain. Oct 23 23:13:08 leave both Oct 23 23:13:37 beacause you don't know if android version 4.1.1.23.1.3.4 requires this "android:parentActivityName" Oct 23 23:13:50 haha Oct 23 23:13:54 That's what most people do (including iosched), but it concerns me that on >= 16 this means that we're potentially calling the "go to parent activity" code twice. Oct 23 23:13:58 Right. lol Oct 23 23:15:26 I remember old days coding in Qt, after releasing version 4.0. That was so breeze Oct 23 23:15:47 everything was so obvious and consistent Oct 23 23:16:02 .NET was like that. Oct 23 23:16:19 .NET too Oct 23 23:16:20 The only time .NET's documentation let me down was with really-complex multithreading stuff. Oct 23 23:16:24 But that was almost expected. Oct 23 23:16:29 Everything else was clear, consistent, and neat. Oct 23 23:16:47 No questions were left in your mind after reading the documentation. Oct 23 23:16:54 yeah i learned Qt just from their docs Oct 23 23:17:28 Android's documentation is a confused mess at times. Quite often, one part will contradict another part. And of course no reason is given. It's very frustrating. Oct 23 23:17:38 I touched Qt one time, BTW. :) I liked it. Oct 23 23:17:46 I am just worrying every next SDK version, soon it will not be possible for 1 person to track all those changes Oct 23 23:18:20 I think all we can do is pray that our apps work. Oct 23 23:18:23 After testing as much as possible. Oct 23 23:18:35 I already spotted an inconsistency in a major concept in the Material spec. It said not to split app bar items with sheets, but then does exactly that later on Oct 23 23:18:50 soon it wouldn't be possible for 1 person to write an app by himself Oct 23 23:19:07 yacek19 twitter has dozens of android devs Oct 23 23:19:15 God, the Twitter client sucks. Oct 23 23:19:19 i was reading aboput their team in SD Times Oct 23 23:19:24 A great example of how not to design a UI. Oct 23 23:19:34 I hear that the iOS Twitter client is awesome. Oct 23 23:19:44 Their website's pretty cool. Oct 23 23:20:17 as g00s earlier said, it was completly possible to learn Qt just from the docs Oct 23 23:20:28 Yep. Oct 23 23:20:32 Good luck doing that with Android. lol Oct 23 23:21:05 I think large portions of their documentation just needs to be rewritten. Oct 23 23:21:07 Or simply deleted. Oct 23 23:21:51 so, i'm getting an exception but afaik doing things like iosched: (1) using Theme.AppCompat; (2) Layout has a Toolbar, (3) call setContenView() then setSupportActionBar() ... but then Oct 23 23:22:35 or some conceptions should be changed. I know that modularization is good, however when sometimes in iosched xml attribute depends on another and another and another and another.... Oct 23 23:22:58 java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead. Oct 23 23:23:22 iosched does NOT use Theme.Appcompat.NoActionBar Oct 23 23:23:33 g00s: in your main theme style: false Oct 23 23:23:53 Hmm. The blog post I read earlier said to use the NoActionBar thing, I think. Oct 23 23:24:03 That's what i read too Oct 23 23:24:33 its super ultra hidden feature for making an app work after 30 minutes of research Oct 23 23:24:35 i grepped iosched for noActionBar but did not find Oct 23 23:24:44 oh windowActionBar Oct 23 23:25:14 yacek19 you saved me again Oct 23 23:25:19 https://github.com/google/iosched/blob/dfaf8b83ad1b3e7c8d1af0b08d59caf4223e0b95/android/src/main/res/values/styles.xml line no 46 Oct 23 23:25:25 ya Oct 23 23:28:28 I'm tempted to just stick with Holo and ListView and ActionBar. Everything sounds so painful. :/ Oct 23 23:29:09 TacticalJoke i'm just an idiot Oct 23 23:29:17 Upgrading to Material Design and RecyclerView and Toolbar probably won't be very painful in future. Oct 23 23:29:37 Android makes us feel like idiots whether we are or not. :D So don't jump to that conclusion. Oct 23 23:30:57 Android makes me feel like a natural woman. Oct 23 23:31:02 It is very confusing. Oct 23 23:32:29 I wish Android made me feel like that. Oct 23 23:32:51 Though it would be kinda weird. Oct 23 23:38:12 can anyone confirm this is still a bug in AS: very easy, copy / paste snippet of XML and then auto-format Oct 23 23:38:14 https://code.google.com/p/android/issues/detail?id=69581 Oct 23 23:38:28 for me, the id appears over the xmlns, which is not correct Oct 23 23:39:12 has to be root element (not in anything else) Oct 23 23:48:32 I have an app that I am working on that needs to connect to a self-signed certificate using a webview. Its a testing environment, I have tried using the handler.proceed() in onrecievedsllerror and I can't get the method to get called. Anyone have any ideas, thoughts, comments? Oct 23 23:48:51 connect to a website that uses a self signed certificate Oct 24 00:21:56 Do any new Samsung phones have hardware menu keys? Oct 24 00:21:58 Just wondering. Oct 24 00:22:18 I came to the conclusion, when I looked a while ago, that they were moving towards ActionBar/whatever overflow menus. Oct 24 00:23:12 They seem to use "recent tasks", "home", and "back" hardware buttons now. Oct 24 00:23:18 With "back" still in the wrong place. Oct 24 00:38:17 Why do my LogCat messages disappear?! Oct 24 00:40:25 TacticalJoke: yes a new metal one they made recently has hardware menu keys Oct 24 00:42:57 I just read that, in KitKat, action-bar-overflow buttons are always displayed, regardless of the presence of hardware menu buttons. Oct 24 00:44:07 Fall: That's such a vague question. Oct 24 00:44:13 There are a million possible reasons. Oct 24 00:44:32 It's like asking "Why is my leg itchy tonight?". Oct 24 00:45:12 I just did it the old way that works on gingerbread and in kitkat 3 vertical dots show up on the right bottom corner of the soft menu buttons Oct 24 00:45:45 to get to the settings/preferences Oct 24 00:48:19 I find that way better than having it drop in from the top or whatever way google keeps changing their mind about Oct 24 00:48:52 The good thing about on-screen menu buttons is that it's clear when there is a menu and when there isn't. Oct 24 00:49:02 With hardware menu buttons, it's a guessing (or memory) game. Oct 24 00:55:00 hmmm MediaMonkey looks nice but it's not detecting the audio tracks on my gingerbread phone Oct 24 00:59:50 TacticalJoke: Why is my leg itchy today? Oct 24 01:00:39 Surely if you're going to output messages from the application, you don't go and involuntarily empty the LogCat on behalf of the user... counterintuitive Oct 24 01:01:10 Ok, maybe it was the filter going haywire. Oct 24 01:01:17 "Ever dance with the devil in the pale moonlight?" Oct 24 01:03:02 So, I found out that swiping an app out of the Recent Tasks screen destroys all its activities. Oct 24 01:03:19 I believe it's just like pressing Back until you get to the home screen. Oct 24 01:04:02 In fact, it seems to be more extreme than that. Oct 24 01:04:08 On my phone, it also kills my app's process. Oct 24 01:04:25 Whereas pressing Back down to the home screen doesn't kill the process. Oct 24 01:04:43 That makes sense. Oct 24 01:07:30 I at first assumed that swiping an app out of Recent Tasks was intended only for manual decluttering. Oct 24 01:07:34 But it makes sense that it kills the process. Oct 24 01:17:05 I worked out the LogCat issue. LogSvc was generating a huuuge number of entries. So it was purging anything that was old. Oct 24 01:17:14 I left it for 1 minute and generated 60,000 entries Oct 24 01:20:27 They're saying we should provide an xxxhdpi launcher icon: http://android-developers.blogspot.co.uk/2014/10/getting-your-apps-ready-for-nexus-6-and.html Oct 24 01:23:32 And actions should have keyboard shortcuts. Hmm Oct 24 01:23:32 . Oct 24 01:26:13 If I were to switch to Android Studio and run my unit tests on the command line, would that be difficult to set up? Oct 24 01:26:23 That'd solve the "no unit test support" thing. Oct 24 01:26:27 unit-test* Oct 24 01:26:45 Hmm. Then I wouldn't be able to debug. Never mind. Oct 24 01:28:37 hi anyone there? Oct 24 01:29:20 hi Oct 24 01:29:40 Bryan792: You're allowed to ask one question only. What is your one question? Oct 24 01:29:40 Wait. Oct 24 01:29:55 I want to find out which line of code allocates the largest number of objects Oct 24 01:30:19 the allocation tracker gives me all the allocations, but it's in a GUI tool and I can't do aggregation on it Oct 24 01:30:32 is it possible to get that output in a text file? Oct 24 01:31:16 My question is ready too Oct 24 01:32:54 I'm sorry, Bryan, but you've already asked your question. Oct 24 01:32:55 Just kidding. :D Oct 24 01:32:58 now THAT'S a tactical joke Oct 24 01:34:12 *boom tish* Oct 24 01:34:21 Bryan792: There's such a build-up to your question. I'm getting nervous. Oct 24 01:34:22 I imagine an orchestra playing a gentle crescendo. Oct 24 01:34:23 lol Oct 24 01:34:31 ok here goes Oct 24 01:34:47 If I have in the background, a task with activities A->B->C Oct 24 01:34:57 and the foreground activity D Oct 24 01:35:00 launches activity B Oct 24 01:35:15 how do i make it so that it just launches the A->B->C Oct 24 01:35:22 task Oct 24 01:35:40 confusing enough? Oct 24 01:36:10 I'm not sure how to answer your question. Does it relate to an Activity's launch mode? No idea. Oct 24 01:36:26 ya, think so Oct 24 01:36:29 or maybe an intent flag Oct 24 01:36:48 none of the descriptions seemed like it fit this scenario Oct 24 01:37:30 Is the activity D part of a different app? Oct 24 01:37:39 the memory tracker creates .alloc files, is it possible to read these? Oct 24 01:38:16 not sure if that matters, but it is the same app, different launcher Oct 24 01:38:31 I think you'd set C's launchmode to singleTop in the manifest, and then start C from D normally, no flags needed Oct 24 01:39:34 I want to display the A->B->C task, it could have been A->B->C or A->B->E->F Oct 24 01:39:38 or anything Oct 24 01:39:45 ah. that's a bit tricky Oct 24 01:40:04 if B exists in a task anywhere, I want to reload that task as is Oct 24 01:40:11 basically that ^ Oct 24 01:40:19 I'm guessing D could be launched from anywhere? Oct 24 01:41:26 sure Oct 24 01:41:27 yes Oct 24 01:41:48 cos I guess if you're just launching from that task stack, you could just back out of D and be back to that task, but I'm guessing it's not that simple! Oct 24 01:41:58 ya, they are separate tasks Oct 24 01:45:45 Whelp, on my Android 4.4 Nexus 5, the app runs great. On a 5.0 emulator, I get this: {unable to start activity FooActivity} Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. Oct 24 01:46:31 Which theme is that activity using? Oct 24 01:46:45 Theme.AppCompat.Light .__. Oct 24 01:47:00 Actually, is that the problem?! Oh tell me it is so simple Oct 24 01:52:27 Gonna recode this to not use appcompat, it is only in use because of one stupid 3rd party lib Oct 24 01:56:46 I dont think my thing is gonna work like this, gonna have to restructure Oct 24 01:57:13 thanks Oct 24 02:04:59 If I don't use the support library, how the hell am I supposed to use ActionBarActivity Oct 24 02:05:31 You just use Activity? Oct 24 02:05:55 Because you have access to native action bar Oct 24 02:07:06 Ah, ok, it says you just have to use Theme.Holo or a descendent Oct 24 02:09:37 But now getActionBar() returns null where it did not before Oct 24 02:11:35 getActionBar should not return null. Oct 24 02:14:08 getSupportActionBar() Oct 24 02:14:29 explodes: minSdk is? Oct 24 02:15:06 wait are you using the support library? Oct 24 02:15:10 appcompat is pretty awesome Oct 24 02:15:25 aahaha Oct 24 02:15:34 min is 15 Oct 24 02:15:38 i had this error Oct 24 02:15:43 Are you using setContentView in your activity? Oct 24 02:16:02 If I manually set the theme to my app's theme, it works Oct 24 02:16:14 setTheme(R.style.AppTheme); Oct 24 02:16:14 in onCreate... Oct 24 02:16:24 iirc you have to have setContentView() before calling getActionBar() Oct 24 02:16:39 ^ Oct 24 02:16:49 oh really now Oct 24 02:16:55 I call getActionBar before setContentView. Oct 24 02:17:26 _ Oct 24 02:17:44 TacticalJoke: I guess that still works, but it should return null iirc if you use something like fragmenttransaction Oct 24 02:18:35 as opposed to using setContentView in your onCreate Oct 24 02:18:52 ft will still work if you use setContentView though Oct 24 02:19:20 i might just be picking bullshit though Oct 24 02:19:24 i moved setContentView to be the first thing Oct 24 02:19:31 Still no bar Oct 24 02:19:39 Only works with a manual setTheme call Oct 24 02:20:18 Which themes are you setting? Oct 24 02:20:23 In XML. Oct 24 02:20:55 anyone found any good guides or libraries for navigation drawers using ActionBarActivity and Toolbar? Oct 24 02:21:00 AppTheme parent="android:Theme.Holo.Light" Oct 24 02:21:26 It probably doesn't matter, but I'm using "@android:style/Theme.Holo". Oct 24 02:22:02 And the ActionBar's style uses parent="@android:style/Widget.Holo.ActionBar". Oct 24 02:22:11 kk Oct 24 02:22:22 yea me too, except the "style/" part was missing Oct 24 02:22:30 And it doesn't make a difference. Oct 24 02:22:34 Okay. Oct 24 02:22:52 Would it be worth posting your themes.xml/styles.xml? Oct 24 02:22:54 Gonna go with what is working on 4.4 and 5.0. setTheme(foo) THEN setContentView(bar) Oct 24 02:22:59 i guess Oct 24 02:23:01 one sec Oct 24 02:23:28 I hate doing presentation stuff in code. ;| Oct 24 02:23:45 I hate that 4.0 has a bug whereby I have to call setHomeButtonEnabled manually, for example. Oct 24 02:24:08 "homeAsUp" in the XML file should suffice. Oct 24 02:24:43 I think 14 and 15 have that bug. Oct 24 02:24:53 http://pastie.org/9671566 Oct 24 02:25:16 My bro is flying in, I gotta go pick him up from the airport Oct 24 02:25:23 I'll be back eventually Oct 24 02:25:30 I've been trying to adapt the code from https://github.com/codepath/android_guides/wiki/Fragment-Navigation-Drawer, but it's not set up for material :/ lol Oct 24 02:25:30 Thanks for the help, all Oct 24 02:26:17 Oh nvm I need to leave in like 10 minutes not now Oct 24 02:27:06 explodes: Wait. Oct 24 02:27:19 Eh? Oct 24 02:27:37 Why "Widget.ActionBar"? Oct 24 02:28:04 Crap Oct 24 02:28:56 Didn't matter. Oct 24 02:29:02 That should be Widget.Holo.Light.ActionBar, right? Oct 24 02:29:08 Or I could be wrong. Oct 24 02:29:38 And why not '@' before "android:style2. Oct 24 02:29:43 s/2/"/ Oct 24 02:30:18 These fixes have proved to be ineffectual Oct 24 02:31:31 The other thing I wonder about is AppTheme inheriting from AppTheme.Base. I guess it works, but it's the opposite of the expected order. Oct 24 02:31:31 I'll try and fix it when I'm done with the bulk of the functionality Oct 24 02:32:07 True, lets test it Oct 24 02:32:28 No difference Oct 24 02:32:41 I'll table this. I have a working solution as it stands.. Oct 24 02:32:43 My powers. Zey do not work!11 Oct 24 02:32:45 heh Oct 24 02:32:52 Thanks though, I appreciate the tenacity Oct 24 02:33:37 :D Oct 24 02:33:53 I guess I'd suggest creating a new theme from scratch; trying that. Oct 24 02:33:57 When you're read. Oct 24 02:33:59 ready* Oct 24 02:34:09 Building up to the end result piece by piece. Oct 24 02:34:35 Yea, that would help a whole lot Oct 24 02:34:59 I already have yet another problem at my feet, my fragment "isn't working" Oct 24 02:35:18 The FragmentTransaction isn't putting the new fragment into view like i'd expect Oct 24 02:35:45 The code is the same as another time that I've successfully done this: http://pastie.org/9671583 Oct 24 02:37:08 fyi you never use the String id ? which I presume is a "tag" ? or supposed to be Oct 24 02:38:44 Yea, I removed it while I'm playing with it, originally it was there as the fragment tag Oct 24 02:40:01 I should go, he's gonna be standing around Oct 24 02:40:12 Thanks again, bbl Oct 24 02:57:38 flkajhsdf Oct 24 02:57:56 test project is not findunt buildconfid or r.? Oct 24 02:58:34 the root of the problem, i think is that there is a rogue package in /gen/ .. :/ **** ENDING LOGGING AT Fri Oct 24 03:00:00 2014