**** BEGIN LOGGING AT Thu Sep 11 02:59:58 2014 Sep 11 03:00:13 JacobTabak: default theme Sep 11 03:00:29 check out resolveDialogTheme in AlertDialog.java Sep 11 03:01:17 for example, in holo light alert dialog theme, windowMinWidthMajor and windowMinWidthMinor are set Sep 11 03:02:11 MinWidthMinor = Sep 11 03:02:19 JacobTabak: ah Sep 11 03:02:24 MinWidthMajor: Sep 11 03:02:27 oops bad paste sorry Sep 11 03:03:12 so, in short, if you’re not using a dialog theme, then those values aren’t set Sep 11 03:03:33 and btw i had no idea until i just dug into the source code so black box theory is out ;) Sep 11 03:04:08 JacobTabak want a problem ? Sep 11 03:04:16 i got enough of those Sep 11 03:04:33 JacobTabak: thanks. I looked over that spot multiple times. guess i just didnt think it'd be defined in a theme Sep 11 03:04:50 well fragmentDialog + immersive sticky is just a mess Sep 11 03:05:11 i believe you Sep 11 03:05:47 dam, where is your inquisitive side that I observed earlier ? Sep 11 03:05:57 lol i just have no experience with that Sep 11 03:06:04 i can’t imagine why you’d want to show a dialog in immersive mode Sep 11 03:06:08 doesnt that defeat hte purpose Sep 11 03:06:38 not at all Sep 11 03:07:04 and app in immersive stick doesnt need to "alert" "warn" or "ask to confirm" something of the user ? Sep 11 03:07:23 hi can i find any german devs around here? Sep 11 03:07:29 and in doing so should it not leave the status and nav bars alone ? Sep 11 03:07:31 :) Sep 11 03:07:55 dunno, maybe… whats the problem though? why dont they work together well Sep 11 03:08:33 well you can hack it not to show them… but then cancelableOnOutsideTouch doesn't work Sep 11 03:08:48 hack it to not show what Sep 11 03:09:04 hack it not to force the statusbar and nav bars on Sep 11 03:09:11 as in maintain immersive Sep 11 03:09:30 why not just not show a dialog Sep 11 03:09:34 and make it a view Sep 11 03:09:39 like fake a dialog? Sep 11 03:10:21 could do, could also introduce a catch click view on top of other content Sep 11 03:10:29 but it's just like…..dirty Sep 11 03:10:33 yea gotta do that sometimes Sep 11 03:10:45 like if you want a split actionbar with buttons on the tp and bottom :P Sep 11 03:10:49 hack away Sep 11 03:11:24 can I use EventBus for Service and Activity communication? Sep 11 03:11:32 sure, I use otto personally Sep 11 03:12:16 JacobTabak: it the best practise? Compare BroadcastReciver and Messengers? Sep 11 03:12:41 StingRay_: can you make your dialog inline w/ the layout? seems like that would fix your issue. Sep 11 03:13:26 kamol: if your service is in another process, you’ll need to use braodcast receivers, otherwise otto is better because it’s type safe, less boilerplate code Sep 11 03:13:41 not sure about any other event bus libs Sep 11 03:13:47 alexfu I suppose I could hack round it many ways really…. but my issue was more that android is feeling more and more unfinished :) Sep 11 03:14:01 well you are trying to go against the guidelines for immersive mode Sep 11 03:14:03 guys i really need to find a competent dev. im trying to find one for weeks now :( i dont know where to look. can anyone help? it really pays off.. Sep 11 03:14:20 go look on odesk Sep 11 03:14:23 this is not the place to hire ppl Sep 11 03:14:46 dimens can accept percentages? Sep 11 03:15:00 alexfu: not unless the documentation explicitly says so Sep 11 03:15:30 awesome consistency Sep 11 03:15:32 that doc says ‘can be either a fraction or a dimension' Sep 11 03:15:38 im not trying to hire one. im trying to share a project with someone lucky who is suitable Sep 11 03:15:53 now my fragment content is overlapping the drawer. There is any way to fix this? Sep 11 03:16:09 cliffreich: can you elaborate or screenshot Sep 11 03:16:24 ok sec Sep 11 03:18:14 http://imgur.com/yMMyucP Sep 11 03:18:35 oh the good old drawer+tabs issue Sep 11 03:18:47 or wait Sep 11 03:18:49 is that not tabs? Sep 11 03:19:14 cliffreich: what does your layout look like? Sep 11 03:19:15 yes, just 1 tab right now as example Sep 11 03:19:27 you must have the drawerlayout on the bottom Sep 11 03:19:38 of the hierarchy Sep 11 03:19:41 ^ Sep 11 03:19:45 one second Sep 11 03:22:01 JacobTabak: I think it is another process, thus it is for push notification Sep 11 03:22:30 kamol: if it’s in another process there would be a manifest attribute in androidmanifest.xml Sep 11 03:22:44 http://pastebin.com/PFtHgXuP Sep 11 03:22:51 android:process="string" Sep 11 03:22:53 there is the code Sep 11 03:24:58 StingRay_ waiting for some stimulating discussion here https://news.ycombinator.com/item?id=8300432 Sep 11 03:25:42 JacobTabak: there service without android:process=“string” http://pastie.org/9543738 . and it is the same androidmanifest.xml… so it is the same process right? And can use otto? Sep 11 03:26:05 g00s it's always a pointless debate Sep 11 03:26:05 unless it specifically says android:process in the tag, it’s in the same process Sep 11 03:26:32 which means you can use otto Sep 11 03:26:33 worth and value are constructs that are only relevant in a moment to an individual Sep 11 03:26:38 StingRay_ this is developer economics, i find it interesting Sep 11 03:27:05 its not about worth of a phone, like resail value ;) Sep 11 03:27:28 JacobTabak: thank you! Sep 11 03:27:43 alexfu JacobTabak is the code ok? Sep 11 03:28:38 sail away, sail away O.o Sep 11 03:28:45 dont see any outward problems cliffreich Sep 11 03:29:52 weird problem, so the drawer is in main activity and the images are part of the fragment. so they have a different xml file Sep 11 03:30:55 i even tried getFragmentManager().popBackStackImmediate(); Sep 11 03:31:24 here public void onDrawerOpened(View drawerView) Sep 11 03:31:26 no luck Sep 11 03:31:42 cliffreich: is each image part of the hoverview? Sep 11 03:32:32 yes hoverview.xml Sep 11 03:40:36 g00s had java turned off Sep 11 03:40:39 no z-index for android? Sep 11 03:40:40 heh Sep 11 03:40:53 g00s reading that article attached to the link and it depresses me Sep 11 03:41:27 the article linked in the article linked is more depressing Sep 11 03:41:41 well I just know all this stuff anwyas Sep 11 03:41:46 anyways* Sep 11 03:41:48 heh, not like its been unknown - yeah Sep 11 03:41:50 cliff there is a z index in L and above, but you obviously have a bug unrelated to z indices, lets not turn android into html where you jsut start changing other random properties to cover your mistakes :) Sep 11 03:42:00 cliffreich: TabListener.. where is the implementation for this? Sep 11 03:42:21 g00s only thing I would change is to make this more public so you dont get everyone wanting to make an app cause they want lots of money :) Sep 11 03:42:41 hete is tablistener http://pastebin.com/4NstGwMt Sep 11 03:43:29 yes i was joking, but when there is no visible mistake... Sep 11 03:43:31 here’s your bug cliffreich ft.add(android.R.id.content, mFragment, mTag); Sep 11 03:43:54 thats teh wrong container Sep 11 03:43:59 you’re putting it over your drawer Sep 11 03:44:58 cliffreich: yeah. the perils of copy and paste. luckily there was actually a layout w/ that id. the worst bugs are these kinds of bugs where nothing crashes Sep 11 03:45:11 i should say, unluckily Sep 11 03:46:24 oh Sep 11 03:47:17 is it me or does the font in L look different compared to KitKat? Sep 11 03:47:25 yeah i think they changed it Sep 11 03:47:48 subtle differences Sep 11 03:47:51 Another version of Roboto?? Sep 11 03:47:57 yeah Sep 11 03:48:01 ffs Sep 11 03:48:11 oh well Sep 11 04:02:12 Cancelling my Bluehost account... Sep 11 04:02:50 oh yeah thanks JacobTabak Sep 11 04:03:04 npnp Sep 11 04:03:05 damnt attractive content layer Sep 11 04:16:36 i cant believe i spent the whole day with dumb bugs. one week learning android and still 2slow Sep 11 04:17:06 cliffreich lol 1 week ? Sep 11 04:19:06 yeah, i know some python and php so the code its not that hard to understand. the main problem is with clean ways to code and understand environment Sep 11 04:19:45 well there you go, unlearn php thats the problem Sep 11 04:20:54 yes you can code any mutant ready to explode any time with php Sep 11 04:21:43 you feel dirty Sep 11 04:21:44 heh Sep 11 04:24:53 the devil is in the details cliff Sep 11 04:26:10 feel like the vast majority of my time is spent on UI these days Sep 11 04:26:28 UI is the hard bit to get right Sep 11 04:26:38 and dealing with activity lifecycle, instance state, keeping data fresh etc Sep 11 04:28:24 yeah Jacob ill check twice the next time Sep 11 04:31:18 if you use the same fragment for 2 tabs (content added dynamically ) would be slower? detaching, adding content again... Sep 11 04:31:47 from an architecture perspective it’s best to keep them separate if they do different things Sep 11 04:31:54 oh ok Sep 11 04:32:07 that way if you need to change something … you know all the logic related to that tab is in one fragment Sep 11 04:33:02 speed really shouldn’t be an issue Sep 11 04:33:11 but i bet you haven’t thought about maintaining instance state on those fragments, etc Sep 11 04:33:20 like scroll position, loaded data.. yadda yadda Sep 11 04:33:23 those are the details im referring to Sep 11 04:33:34 nope, barely selected tab heh Sep 11 04:35:02 ugh, i just had to make about 15 xml files to style this one widget Sep 11 04:35:17 http://cl.ly/image/400z0i3h0g1E Sep 11 04:35:38 turned out alright though Sep 11 04:35:40 nice Sep 11 04:36:11 unfortunately i’m porting an ios design… so it doesnt look very android :| Sep 11 04:42:10 Id learn objective C but osx on virtual machine is too slow for my laptop Sep 11 04:42:21 well im done Sep 11 04:42:23 night Sep 11 04:42:31 Hi Sep 11 04:45:45 does retrofit return an rxjava hot or cold observable? does the request wait for a subscriber before executing? Sep 11 04:45:50 cold Sep 11 04:46:02 yes Sep 11 04:46:05 hm Sep 11 04:46:17 I have an interface that returns observable that only cares about response code Sep 11 04:46:33 retrofiterrors Sep 11 04:46:33 don't do that Sep 11 04:46:37 use Response Sep 11 04:46:51 reasonable Sep 11 04:47:06 i'll add Void support in a future version Sep 11 04:47:14 it seems to work right now Sep 11 04:47:25 the reason why I ask is because i want to have a method with an optional subscriber Sep 11 04:47:40 you can pass in a subscriber if you want, but if you don’t, then thats fine too Sep 11 04:47:47 hi Sep 11 04:47:56 do i have to use a publisher ? Sep 11 04:48:31 i don't understand what you mean Sep 11 04:48:34 ha Sep 11 04:48:36 sorry Sep 11 04:48:58 i have a problem where android doesnt return all sdp records on a device Sep 11 04:49:32 JakeWharton: in u2020, gallerydatabase, you create a publishsubject and allow the client to pass in an observer Sep 11 04:50:09 If anyone's interested in an iOS/Android catfight, you can join in here... https://news.ycombinator.com/item?id=8300432 Sep 11 04:50:19 basically i want to do something similar, except the library code doesn’t care at all about the response Sep 11 04:52:14 <[SP]JESTER> hey guys, i need some help before i go crazy, right now im working on a cspire deodexed stock rom, and nothing i do seems to get google play working. The rom runs great, no problems anywhere else other than google play, hangouts, books keep crashing. All is fine until you login to your account and accept the terms. Idk what the problem is, i have the latest play store and google services in right now and it is still doing it Sep 11 04:52:27 <[SP]JESTER> Just those 3 crash once you login over and over. Play store will open, but once you go to the my apps screen or try to search, it kills out, hangouts gets to signing in then crashes as well Sep 11 04:52:30 [SP]JESTER: topic.... Sep 11 04:52:43 <[SP]JESTER> what u mean topic Sep 11 04:52:48 read it Sep 11 04:52:55 hes saying go to #android-root Sep 11 04:52:55 Hey all, tried to remove ic_launcher icon from actionbar, but that also removes my ic_drawer icon. How can I simply remove the ic_launcher icon (or move it to far right)? Sep 11 04:52:56 <[SP]JESTER> dang yall moved agian lol Sep 11 04:53:02 <[SP]JESTER> been a while since i been in here Sep 11 04:53:12 again? Sep 11 04:53:26 <[SP]JESTER> its literally been 2-3 years since i been on freenode Sep 11 04:53:31 http://stackoverflow.com/q/25658426/150851 can anyone help with my bt question? Sep 11 04:53:38 <[SP]JESTER> this used to be the only channel could get help on lol Sep 11 04:53:45 it hasn't been rom chat for at least 5 years now Sep 11 04:53:59 <[SP]JESTER> well idk then guess no one ever responded Sep 11 04:54:13 For list fragments (with spin loader) whose content is loaded from the internet, how do I provide content from different sources? I.e., pass in a observable> or pass a url to load from, etc. Sep 11 04:56:38 JacobTabak: just call .observe() Sep 11 04:56:46 or .subscribe(), rather Sep 11 04:56:48 one of those Sep 11 04:56:48 gotcha, thanks, new to this Sep 11 04:57:11 <[SP]JESTER> so since this is dev, is logcat questions acceptable Sep 11 04:57:36 yes Sep 11 04:57:48 <[SP]JESTER> any way to logcat just google services Sep 11 04:57:56 <[SP]JESTER> like play store Sep 11 04:58:08 set a filter jn ddms Sep 11 04:58:13 [SP]JESTER: most people don’t log on release builds Sep 11 04:58:30 <[SP]JESTER> im just trying to see why play store is crashing Sep 11 05:01:06 how do iget the sdp records of the local device? Sep 11 05:01:24 ive ied sdptool but thats only for rooted devicest Sep 11 05:01:29 logcat -s AndroidRuntime Sep 11 05:16:34 so no one knows anything about sdp? Sep 11 05:17:15 the finnish democractic party? Sep 11 05:19:48 no, service discovery protocol Sep 11 05:20:37 Jonno_FTW: all i know is that its poorly documented and unreliable Sep 11 05:20:57 every time I try to fetch sdp records, my phone doesn't show my app which is listening Sep 11 05:21:25 http://stackoverflow.com/q/25658426/150851 Sep 11 05:23:08 it doesn't matter if I use insecure or secure listening either Sep 11 05:33:29 <[SP]JESTER> what does signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr mean Sep 11 05:34:33 <[SP]JESTER> ive spent a week trying to fix this Sep 11 05:34:36 <[SP]JESTER> im bout to go insane lol Sep 11 05:45:06 idk Sep 11 05:45:51 <[SP]JESTER> its weird af Sep 11 05:46:22 <[SP]JESTER> took original system.img and cache, doedexed, flashed, everything works but google play, hangouts, and books Sep 11 05:47:01 [SP]JESTER: it means there’s a native c crash… have you tried going to #android-root ? Sep 11 05:47:18 <[SP]JESTER> im there now Sep 11 05:48:40 http://android-developers.blogspot.jp/2014/09/conference-data-sync-gcm-google-io.html Sep 11 05:48:44 found it interesing Sep 11 05:51:51 <|\|19hTVV0|F> any have an idea how to extract the bootlogo from kernel? Sep 11 05:53:13 <[SP]JESTER> decompile kernel lol Sep 11 06:00:26 <|\|19hTVV0|F> [SP]JESTER :D Sep 11 06:00:45 <[SP]JESTER> i hate this rom man Sep 11 06:00:56 <[SP]JESTER> leave it to google to screw me Sep 11 06:01:15 <|\|19hTVV0|F> I know it's a binary..but I have read that the bootlogo can be built-in with the kernel Sep 11 06:01:23 <|\|19hTVV0|F> lol JES Sep 11 06:02:05 <|\|19hTVV0|F> I have no idea how chinese people developing the software of their tablets Sep 11 06:02:13 <[SP]JESTER> lol Sep 11 06:04:40 |\|19hTVV0|F: try #android-root or #android, this channel is for app dev Sep 11 06:07:17 Hey all, I know I've probably asked this on this channel once before, but how does one debug native code if I'm using Android Studio? I tried following SO articles, but the ones I came across require I manually install gdb-server onto the device under /data/local which I can't b/c I am not rooted. Sep 11 06:08:04 My native code is crashing on returning to the java calling method for no apparent reason. I need to be able to be able to get the stack trace to figure this out Sep 11 06:11:10 [SP]JESTER of course sees that too ;) Sep 11 06:13:09 <[SP]JESTER> dont feel bad valder, play store doesnt wnna work for me lol Sep 11 06:14:19 i dunno, i've not coded c in a long time, so i'm unaware of what i'm doing wrong. any help would be appreciated. Here's the pastebin of the code: http://pastebin.com/NeYE41hP Sep 11 06:21:08 Can someone tell me how to remove ic_launcher icon from navigation drawer without removing ic_navigation icon? (third parameter of ActionBarDrawerToggle's constructor Sep 11 06:31:27 SASDOE: that doesnt really make sense what you just asked Sep 11 06:31:28 clarify Sep 11 06:31:49 valder i dont think it is supported yet Sep 11 06:31:56 g00s: in da house? Sep 11 06:32:10 SASDOE: may need to provide a custom actionbar layout Sep 11 06:33:08 SASDOE: http://developer.android.com/reference/android/app/ActionBar.html#setCustomView(int) Sep 11 06:33:24 I realize that. how does one debugging it normally. isn't there a way to do it with gdb? Sep 11 06:33:32 Just this second found the same link JacobTabak, thanks Sep 11 06:33:46 hello Sep 11 06:33:55 hope all is well guys Sep 11 06:34:19 what callback is called whenever I scroll up and down a calendarview ? Sep 11 06:34:43 androidee3: all views have an onscroll method you can override Sep 11 06:35:07 http://developer.android.com/reference/android/view/View.html#onScrollChanged(int, int, int, int) Sep 11 06:35:23 JacobTabak: lemme check Sep 11 06:36:47 JacobTabak: i need to extend the calendarView first no ? Sep 11 06:36:56 no Sep 11 06:37:00 add an onscrolllistener Sep 11 06:37:19 desmin88: there is no option to do that, he’ll need to extend it Sep 11 06:37:37 SASDOE: you can set your ICON and LOGO to @android:drawable/transparent Sep 11 06:37:47 er Sep 11 06:37:48 you got me there Sep 11 06:37:50 @android:color/transparent Sep 11 06:38:13 SASDOE: so i retract what i said about custom actionbar layout (you really never want to do that) Sep 11 06:38:16 i need to extend eh ? Sep 11 06:38:22 androidee3: yes Sep 11 06:38:35 ok lemme try Sep 11 06:41:21 anyone here using robolectric with gradle ? Sep 11 06:41:44 JacobTabak: i need to override onScrollChanged ? Sep 11 06:42:01 that’s what i would do if i were you and needed to solve that problem Sep 11 06:42:06 i haven’t tried to do it for a calendarview Sep 11 06:42:12 but it’s a good place to start Sep 11 06:42:30 okay, look, forget this method,,, is there anyother way to change the names of the months in the calendarview above ? Sep 11 06:47:11 JacobTabak: Why not ? I'd like the icon to be on the far right of the action bar, and title in the middle, is a custom actionbar layout not the way to acheive this? Sep 11 06:47:34 yes, you would need a custom action bar to do that Sep 11 06:47:36 as well as the drawer icon on the left Sep 11 06:47:47 dont’ do that, it violates android design guidleines Sep 11 06:48:03 JacobTabak: insights :)))) Sep 11 06:48:33 But it's ugly as is..! And it's what i've been ask to do Sep 11 06:51:05 On top of it, if I leave things as they are, the ic_launcher oversteps the ic_drawer Sep 11 06:56:08 how should I indicate that changes have been made to the inputs and that data needs to be resent? Sep 11 06:56:26 I've got a big send button in the menu, but apparently that isn't indicative enough Sep 11 06:59:40 Jonno_FTW: maybe name the button "Send changes" Sep 11 06:59:52 the text is hidden on small devices Sep 11 07:00:23 I was thinking of coloring the icon Sep 11 07:00:35 So there's just a button w/ no label? Why would anyone ever click a button without a label? Sep 11 07:00:55 Sounds like an android fragmentation issue! Sep 11 07:00:55 good point Sep 11 07:01:41 well Sep 11 07:01:52 how do I tell the user to click the button after they may changes to the form? Sep 11 07:02:28 Have a popup saying "You have unsent changes, do you wish to continue" before they can leave the page? Sep 11 07:02:43 yeah but they might be on the page for a while Sep 11 07:03:53 Have a small banner saying "unsaved modifications" somewhere Sep 11 07:04:10 might use the contextual actionbar Sep 11 07:05:04 create a notification every 5 seconds until the user presses save Sep 11 07:05:13 remeber to ask for a rating on the market too Sep 11 07:05:28 can't exit the app without rating it, sure to get good ratings Sep 11 07:05:44 Is that possible on droid? Sep 11 07:05:55 i've seen it done Sep 11 07:06:38 On ios the last rating popup said "Like the App? Rate it/Send feedback" Drove me crazy Sep 11 07:07:30 Oh had remind me later as well, still, who doe they think they are? :) Sep 11 07:07:58 Actually it wasn't even send feedback. Was "I don't like it" Sep 11 07:08:11 which would popup a feedback mail template... Sep 11 07:08:45 wow Sep 11 07:10:16 also Sep 11 07:10:44 I solved the sdp problem by just attempting to connect to the device using the GUID of my app and making sure it didn't throw an exception Sep 11 07:12:13 after checking local sdp records, then fetching fresh sdp records, even if the uuid isn't returned, we can still connect to it Sep 11 07:13:02 how can I extende calendarview ? Sep 11 07:13:08 should I create a new XML ? Sep 11 07:14:05 you'd create a new class that extends it Sep 11 07:14:40 only ? Sep 11 07:14:57 and i just use it in my activity ? Sep 11 07:15:10 lets say i did myCal extends CalendarView Sep 11 07:15:31 i do myCal mycal = (CalendarView) findviewbyid(xxxx) ? Sep 11 07:16:08 that isn't extending, that's just creating a CalendarView object Sep 11 07:16:33 i know Sep 11 07:16:46 assume i extended the class in a seperate .java file Sep 11 07:16:49 how do i use it ? Sep 11 07:16:56 class MyCalendar extends CalendarView{.....} MyCalendar myCalendar = (MyCalendar) findViewById(R.id.XXX); Sep 11 07:17:17 you have to implement the methods of view etc in your new class Sep 11 07:17:28 ok lemme test Sep 11 07:18:01 i am getting classcast exception Sep 11 07:18:14 look up extending a view Sep 11 07:18:18 telling calendarview cannot be cast to myCal Sep 11 07:18:32 you should read first Sep 11 07:18:40 no time mate :( Sep 11 07:18:49 i really appreciate if u give me some heads up here :/ Sep 11 07:18:53 just did Sep 11 07:19:06 insufficient :) Sep 11 07:19:13 yes your work is Sep 11 07:19:36 im sure ur parents are proud. Sep 11 07:19:38 why are you extending it? Sep 11 07:19:44 they are dead Sep 11 07:19:47 mine too. Sep 11 07:20:01 This got gloom Sep 11 07:20:12 i need to change the name of the months appearing at the above of the calendar Sep 11 07:20:42 i am able to change them oncreate using reflect Sep 11 07:21:03 but once i scroll up down it gets back to normal month names in english.. Sep 11 07:21:14 SASDOE: we dont need a commentator. get back to cooking. Sep 11 07:22:54 androidee3: maybe post some code&screenshots of what you are doing/wanting Sep 11 07:23:06 canvs2321-: i shall Sep 11 07:27:51 canvs2321-: http://stackoverflow.com/questions/25780469/calendarview-scroll Sep 11 07:34:21 canvs2321-: did u check mate ? Sep 11 07:35:41 yeah, so you just wanna do some updating when you scroll the CalendarView? have you tried setting an onScrollChangeListener? Sep 11 07:39:07 yes i wanna do that Sep 11 07:39:22 you mean on the activity ? Sep 11 07:39:45 no on your calendarView object http://pastebin.com/qSviAbEb Sep 11 07:40:58 calendarView does not have setOnScrollChangeListener Sep 11 07:41:23 :/ Sep 11 07:44:10 not sure then :) Sep 11 07:44:28 damn :/ Sep 11 07:48:56 Hi everyone Sep 11 07:49:20 /nick vimter Sep 11 07:50:46 is there a downside to setting in the project.properties "dex.force.jumbo=true"? Sep 11 07:52:04 So i'm collaborating on an app with my friend Sep 11 07:52:26 for me the app is running fine, which i pushed to the repos Sep 11 07:53:09 emacster: before you continue, check your git.ignore Sep 11 07:53:28 thepoosh: sure Sep 11 07:57:55 I got a question, I got some build flavors Sep 11 07:58:28 but when I want to test one of them I invoke for example ./gradlew testDevelopmentDebug but it also compiles other 3 flavors Sep 11 07:58:34 is it possible to skip that ? Sep 11 07:59:53 yes Sep 11 08:00:07 do ./gradlew tasks Sep 11 08:00:08 or w/e Sep 11 08:00:12 and find the more specific task Sep 11 08:01:38 JacobTabak: but it's the most specific one I guess Sep 11 08:01:44 thepoosh: everything seems to be okay with the gitignore Sep 11 08:01:46 flavour is called 'development' Sep 11 08:02:06 my friend is getting an id not defined error Sep 11 08:11:22 it takes like 3 minutes to run unit tests Sep 11 08:11:33 robolectric doesnt make sense in this case :) Sep 11 08:13:59 I have a long navigation drawer icon in the actionbar, and the app icon oversteps it, how can I have the icon further to the right? Sep 11 08:17:41 how can i get android studio to not return search results from R.java (or in general, generated code) ? Sep 11 08:29:04 Ok I solved my problem by setting a blank icon, and putting another to the far right of the actionBar, however it dissapears whenever I open the drawer. How can I fix this? Sep 11 08:55:29 yo!§ Sep 11 09:03:15 design question.. got like an onClick method... when someone hits it.. I want my program to do a few certain things, and while its doing those thing, the onClick method should be unavailable to the user Sep 11 09:03:20 how is that possible? Sep 11 09:10:36 P3nnyw1se: set whatever triggered the onClick to disabled til done Sep 11 09:10:50 I'm trying to customize colour of my actionBar, however following this https://developer.android.com/training/basics/actionbar/styling.html I can't seem to set the parent properly, says it doesn't exist Sep 11 09:11:11 so the views I set onClickListener on Sep 11 09:11:21 I set them to null or something` Sep 11 09:11:26 ? Sep 11 09:11:28 @style/Theme.Holo doesn't exist here Sep 11 09:12:20 p3nnyw1se: no just set their state to disabled Sep 11 09:13:23 Ok nm Sep 11 09:14:12 canvs2321 think I need just a bit more assistance Sep 11 09:14:13 ImageView imageView_blue = (ImageView) findViewById(R.id.imageView_blue); Sep 11 09:14:32 imageView_blue.setOnClickListener(this); Sep 11 09:14:40 how would I disable that Sep 11 09:15:00 setEnabled(false)? Sep 11 09:15:04 in your OnClick get the id of the view that triggered it, then set that view enabled==false Sep 11 09:18:13 actually I want to set all the views to unabled so I have to do that I suppose to each one? Sep 11 09:18:29 I got 6 buttons.. I can't just somehow make the onClick method unavialba Sep 11 09:18:52 P3nnyw1se: what are you exactly trying to achieve Sep 11 09:19:17 not respond to click? disable click? Sep 11 09:19:23 I got 6 buttons.. switch case, when one of them is clicked, it starts quite a few things, and I want the user unable to click any buttons while I do those things Sep 11 09:20:02 ok you make a method 'setButtonsEnabled(boolean x)' and you set them all enabled or disabled Sep 11 09:20:08 when clicked, disable them all Sep 11 09:20:13 when done, enable them all Sep 11 09:22:22 ok so user hits a button.. first thing I do is fire the method set Buttonstate { != } Sep 11 09:22:29 when done same method Sep 11 09:23:16 != / !boolean ofc Sep 11 09:23:21 yup Sep 11 09:23:24 is it possible to create a fragment on top of another fragment that dims the first fragment while the other one is in focus? Sep 11 09:23:47 MartialLaw: if you want to dim, you can just place a View on top of it Sep 11 09:24:25 MartialLaw: does the second fragment have content? if so just set the background of your second fragment to a alpha value to bleed the one below through Sep 11 09:24:47 osxorgate: okay so i could just add a videoview on top? Sep 11 09:25:20 canvs2321: yes it will be a videoview. when a user clicks a button on the first fragment i want a videoview to open on top of the "clicked" fragment Sep 11 09:27:29 MartialLaw: is the second fragment's size the same as the one below, or are you just wanting the VideoView to have no supporting background, and appear ontop? i'd go with osxorgate&just place it ontop if the videoview is smaller size&have no background for the actual second fragment Sep 11 09:27:35 anyone ever have the issue where inside a textview, inserting unicode character next to a letter increases space between them dramatically? Sep 11 09:27:49 the unicode character takes up like 1 letter's size to its left and right Sep 11 09:29:28 hi. how can i programmatically identify that WebView has received a redirect? Sep 11 09:30:25 krad try http://stackoverflow.com/questions/19831645/android-catch-webview-redirection-url Sep 11 09:34:12 Sicp, that is not surprising, unicode chars can be pretty much anything and take up any amount of space, it depends on the actual character Sep 11 09:34:36 I just set a different span for that letter, space is fine now Sep 11 09:34:45 its the Sharp note Sep 11 09:34:49 \u266F Sep 11 09:35:24 weird, that one is not supposed to be a wide char Sep 11 09:35:25 oh well Sep 11 09:40:44 why do urls loaded by webview load differently than the ones loaded on chrome browser? Sep 11 09:40:53 hello, any way to turn on monochrome in your app? Sep 11 09:40:55 i'm not getting the same content in both Sep 11 09:48:26 krad, if you´re running your app on an Android version thats below 4.4 the WebView uses the stockbrowser way to render things Sep 11 09:48:59 Only from 4.4 and higher the WebView uses Chromium Sep 11 10:06:34 Hey guys, can anyone help me fix a problem where the ImageView is completely white after the fragment is brought back to the front? Sep 11 10:07:35 When the fragment is created, the ImageView has its drawables loaded good and displays well, but it fails when the fragment is resumed. Sep 11 10:08:30 I don't think its taking time to load up the bitmap or anything because the whiteness only goes away when the user interacts with the UI, eg. touches the EditText. Sep 11 10:12:20 razzledazzle: you probably aren't following lifecycle pattern correctly in loading/setting things up Sep 11 10:12:57 I was able to set the date and time using simpledateformat which is pretty straight forward. But if I want to select the date and time myself from the app I have to use DatePickerDialog and TimePickerDialog Sep 11 10:13:27 I used them and was able to get the Calendar to display the required details. Sep 11 10:13:49 how can I get seconds with the time,I present the calendar only shows HOUR and MINUTES Sep 11 10:14:19 I have an AsyncTask that loads up, if necessary, and sets the image on the onStart() canvs2321- Sep 11 10:14:59 I am anxious as to why the image appears only if the user interacts with the UI Sep 11 10:15:08 razzledazzle: it all comes down to noone can help you unless you paste some code Sep 11 10:15:18 oh sure, I will Sep 11 10:18:36 Hello guys, I created a test-app with AppCompat library. My main activity has an ActionBar but my splashscreen (which is an Activity) has not an actionbar. However, when I start my app, I always see an ActionBar first! How can I get rid of the initial screen with actionbar after startup?? Sep 11 10:18:46 canvs2321-, please take a look http://pastebin.com/XaffwZNL Sep 11 10:18:48 Hi everyone Sep 11 10:21:12 Number5, what theme have you set for the splashscreen activity in your application manifest? Sep 11 10:22:39 A theme with not actionbar Sep 11 10:22:41 razzledazzle: i'm only seeing mBmpBlurred getting set if in your async the file doesn't exists, and in your method updateBlurBitmap but only if screen width changes Sep 11 10:22:44 I'll post a pastebin Sep 11 10:23:23 razzledazzle, http://pastebin.com/f4m7syYW Sep 11 10:23:48 razzledazzle: so if file exists, and screen width hasn't changed you get an empty bitmap Sep 11 10:24:12 I used this theme for the whole application, but still see that stupid actionbar during layout view loading. Sep 11 10:24:48 *null bitmap if you haven't already created it before those methods Sep 11 10:25:43 Number5, so its not working with those? you could try the ones listed on the second here: http://stackoverflow.com/questions/20653305/full-screen-theme-for-appcompact Sep 11 10:26:59 canvs2321-, I'm not sure if the bitmap is null, I shall remove the width-check to test Sep 11 10:27:00 razzledazzle, ok thnx Sep 11 10:27:52 my friend is not able to run an android studio app which is working fine on my system after pulling it from git hub Sep 11 10:29:10 there are some errors in the project but everything works for me Sep 11 10:32:21 canvs2321-, something to do with this? http://pastebin.com/LC1K4brq Sep 11 10:34:34 this is rendered as "s" on pc and as filled "8" on android. why? https://dl.dropboxusercontent.com/u/21637985/s.svg Sep 11 10:35:39 any advice? Sep 11 10:35:54 razzledazzle: in your code you only set the Bitmap mBmpBlurred to a Bitmap in your AysncTask only if file doesn't exists, then in your method updateBlurBitmap if width has changed. So your mBmpBlurred is null if conditions aren't met, meaning you are setting a null bitmap in updateView() method. So fix that Sep 11 10:37:23 okay canvs2321-, I'll try harder with that Sep 11 10:37:32 thanks! Sep 11 10:52:47 is there any other library that can get a string between two strings because StringUtils in apache isn't being seen by eclipse anymore Sep 11 10:53:13 'get a string' ? Sep 11 10:53:45 string = "aaa bc bbb" i would love to get string bc Sep 11 10:53:51 out of string Sep 11 10:54:23 how can i sniff the requests/responses that WebView sends/receives? Sep 11 10:54:30 semantics Sep 11 10:55:00 krad you can try a proxy like Charles Sep 11 10:56:45 alright i'll give it a try tyvm Sep 11 10:57:13 string.contains("bc") MartialLaw ? Sep 11 10:59:44 Hi every1. I have a problem with geometry and google maps android api. I have a picture about this: https://www.dropbox.com/s/6s68y3om9d8m6h4/arc_problem.jpg?dl=0 Sep 11 11:00:05 Does any1 have any idea how to do this? Sep 11 11:01:59 point B won't change, point A and point C change. Sep 11 11:03:41 If it was possible to draw just a part of the circle it would be ok. Sep 11 11:04:04 Another possibility is to generate some amount of points and draw a polyline Sep 11 11:05:49 i know i can do lots of geometry stuff with pure java but it needs to be placed on the map in the right place Sep 11 11:12:09 osxorgate, i launched charles proxy.. then WebView.. proxy didnt log the request Sep 11 11:16:40 what is the rule of this channel regarding soliciting paid work ? ? Sep 11 11:17:45 topic? Sep 11 11:27:36 canvs2321-: it suggests not to advertise jobs Sep 11 11:27:49 soliciting work is another story IMHO Sep 11 11:28:43 Still not allowed Sep 11 11:30:47 thanks for clarification SimonVT Sep 11 11:35:01 StringUtils won't work. I keep getting a classnotfoundexception Sep 11 11:42:21 how can i print the requests/responses that WebView sends/receives? Sep 11 11:48:41 krad, you gotta let the device use your computer as proxy Sep 11 11:48:52 wifi settings -> enter ip of device and port Sep 11 11:53:52 when I try to use StringUtils I get a ClassNotFoundException....but what does this mean? PathClassLoader(BaseDexClassLoader).findClass(String) line: 65 Sep 11 11:55:02 That StringUtils doesn't exist in your apk Sep 11 11:55:31 how can I change that? it's in my buildpath Sep 11 11:55:42 Probably set up your dependencies wrong Sep 11 12:01:53 Hello guys, I use ActionBar with AppCompat library. Problem is, when app starts up, the first thing I see is an empty screen with an ActionBar. I want to hide the ActionBar for a splashscreen, but I'm not able to. How can I hide the ActionBar before loading my main Activity? Sep 11 12:02:32 I start the splasscreen in the onCreate() method of my MainActivity. Sep 11 12:05:28 Hi Sep 11 12:14:54 Hi :) Sep 11 12:14:59 It feels to me like I'm asking something that no one wants to share, a secret? Sep 11 12:15:24 Is it possible to detect some movement on the front camera and if yes then wakeup screen ? Sep 11 12:16:23 osxorgate, i'm running the app in bluestacks Sep 11 12:17:51 What's app? Sep 11 12:19:21 android app Sep 11 12:19:42 : ) Sep 11 12:19:44 hetii, camera is powered down while phone is sleeping, so I doubt it's going to be easy Sep 11 12:20:05 what do you mean? Sep 11 12:20:13 hmm Sep 11 12:20:31 hetii what's your purpose? Sep 11 12:20:51 ok is then possible to just by software sleep just screen not phone ? Sep 11 12:21:37 Well i plan to extend life time of my screen in project where i will detect movement on the front of my camera Sep 11 12:22:36 thats why I want to turn on my screen for some period of time when my application detect some movement. Sep 11 12:23:25 It will be a part of my house control system Sep 11 12:23:25 so, camera is working during screen shutdown? Sep 11 12:23:42 so i don`t need to display control menu 24h per day. Sep 11 12:23:44 yes Sep 11 12:25:19 I have no idea... Sep 11 12:25:21 Also it would be nice to have information about some sort of kiosk mode where just my application will be displayed on the screen without possibility to jump into other one or system Sep 11 12:26:26 I can root my phone or even rewrite something on existing image system but need to know where search. Sep 11 12:28:16 hetii: sounds like you want the new task locking feature in Android L whenever that is released =) Sep 11 12:28:59 neptune1225: there's a proximity sensor, no need to use the camera Sep 11 12:29:16 sounds great Sep 11 12:29:49 But have no clue if its on my hardware Sep 11 12:30:36 well my application can act as a screen locker then maybe buy this way it can be possible to have it all the time on the first plan Sep 11 12:30:50 I know it was possible in old android to wrote own one Sep 11 12:30:59 no clue how it looks now in 4.2 Sep 11 12:36:54 Here i found useful information about kiosk mode: http://thebitplague.wordpress.com/2013/04/05/kiosk-mode-on-the-nexus-7/ Sep 11 12:40:10 Yep Sep 11 12:40:14 sounds great Sep 11 12:49:15 Number5: Whats the purpose of the splash screen? I've never used the ActionBar, but there's gotta be a way to hide it once your activity has been inflated, or possibly before Sep 11 12:49:47 Number5: Please. Don't. Use. Splashscreens. Thank you. Sep 11 12:50:03 * flan3002 should save that link somewhere... Sep 11 12:50:39 Number5: Please read http://cyrilmottier.com/2012/05/03/splash-screens-are-evil-dont-use-them/ . Sep 11 12:51:46 canvs2321-, well I googled a whole day to find a solution, but with no success. When the app starts, it fires another activity with a splashscreen, that stays 2 sec. and than goes back. The splash screen is ok, but before the splashscreen it shows the actionbar for the normal activity (mainactivity) Sep 11 12:52:56 You can't have read the article yet. Sep 11 12:53:46 that article is food for thought, by no means the ultimate authority on splash screens in Android Sep 11 12:54:22 flan3002, I don't agree with the author. Sep 11 12:54:37 No, but it gives highly important input. And, as a user, I consider splash-screens annoying... Sep 11 12:54:46 Number5: What not specifically? Sep 11 12:54:58 flan3002, you're a developer not an ordinary user. Sep 11 12:55:10 Number5: http://stackoverflow.com/questions/8500283/how-to-hide-action-bar-before-activity-is-created-and-then-show-it-again Sep 11 12:55:29 all i searched was "hide actionbar" Sep 11 12:55:37 I do develop apps and use apps. Maybe my viewpoint is a little different, admitted... Sep 11 12:56:12 Number5: What not specifically? Sep 11 12:57:14 canvs2321-, thnx I've already tried that, this stupid ActionBar still stays on the screen when the app starts. It dissapears after the onStart() call. Sep 11 12:58:10 Number5 check out user Abdullah's answer, using the NoActionBar theme is worth checking out Sep 11 12:58:50 http://stackoverflow.com/a/16887770 Sep 11 12:58:56 flan3002, "A splash screen prevents the user from using the application" I don't know where he get that. Maybe the apps were louzy Sep 11 12:59:15 well here are 2 kinds of splash screens Sep 11 12:59:27 Number5: I find it hard to believe the top answer doesn't hide the action bar, it hides it even before setContentView Sep 11 12:59:47 those that appear and take up time the user could be doing other things, and those that appear while some init process is running and the user couldn't do other stuff anyhow Sep 11 12:59:51 Number5: If you block the UI the user wants with a big image, the splash-screen does prevent the user from using the part of the application that he wants to use. Sep 11 13:00:09 Hi, i read somewhere that a hardware keyboard state change (like if the user revealed the phone's keyboard) recreates the activity. Is it the same when an external keyboard is connected? I can't test as i don't own any that fits in my phone Sep 11 13:00:11 flan3002: this is assuming the app was usuable at that moment Sep 11 13:00:34 sabton, I already use NoActionBarTheme for SplashScreen, the thing is, how to get the ActionBar back, it makes things complex. My solution for now is, when the app starts, the SplashScreen activity will start first, and than after 2 sec. I fire my MainActivity Intent. Sep 11 13:00:46 sabton: Yes, and he should invest his time to make it get to that state faster, instead of implementing a splash-screen. Sep 11 13:01:05 Depending on the app, of course... Sep 11 13:01:15 For games, a splash-screen is okay, I think. Sep 11 13:01:32 i think for any app that has mandatory long-running init, splash is OK Sep 11 13:01:56 but forcing a user to look at a splash screen for branding purposes only... lame? perhaps Sep 11 13:02:00 but ads in apps are lame anyhow Sep 11 13:02:07 *shrug* Sep 11 13:02:21 flan3002, my solution was to show the splashcreen once every day. Sep 11 13:02:25 sabton: Well, what apps really /require/ a long-running unit at the start? Sep 11 13:02:27 sabton: what is a long running init? Sep 11 13:02:36 flan3002: mine Sep 11 13:02:36 Number5: That sounds arbritary. Sep 11 13:02:41 sabton: Why? Sep 11 13:03:33 flan3002: because when starting from cold process, it must locate certain network resource and try to reconnect, then load data from that network resource, and only then is the app availble to user Sep 11 13:03:34 I have a serious problem with some fragments: I have an activity that has a tree sturcture with fragments, using addBackStack, etc. At the leaves of the tree, the user chooses an action that loads a different activity, which changes the screen orientation. Thus, my old activity is newly created and the backstack is lost... how can I prevent that? Sep 11 13:03:48 flan3002, no, I mean first time use every day Sep 11 13:04:06 Number5: But why daily? Sep 11 13:04:11 flan3002: nonetheless, i do not use a "splash screen" but fragments have a "loading" view mode... Sep 11 13:04:37 a "loading..." fragment is essentially a splash screen anyhow tho Sep 11 13:04:42 flan3002, well, if the user starts the app like 10 times a day, than it would be annoying :) Sep 11 13:04:43 sabton: And you couldn't load that transparently, while the user already sees the UI, just without the relevant data? Sep 11 13:05:06 flan3002: you mean with absolutely no indication why the user is waiting? Sep 11 13:05:11 sabton: No, it isn't. Not by the definition of the article at least. Sep 11 13:05:24 sabton: No, I didn't say that. Sep 11 13:05:43 well the Facebook "splash screen" cited in article is just a "loading" screen with a logo on it Sep 11 13:05:47 so what is the difference? Sep 11 13:05:53 the logo? Sep 11 13:05:57 the lack of actionbar? Sep 11 13:06:18 flan3002, whatever reason I want a splashscreen, there will be a splashscreen, time will learn if it's a wrong decision Sep 11 13:06:56 sabton: That, and the ability to navigate around, while the data is loading. Sep 11 13:07:33 flan3002: navigte to where? the back button is enabled. there is nowhere else to go Sep 11 13:08:16 flan3002: this is grey area obviously depends highly on the app and the quality of the developer/implementation Sep 11 13:08:36 i am all about usability, UX, and not annoying users in general Sep 11 13:10:26 sabton: For the facebook app, specifically, with a slow connection, I'd like to navigate to what I want to load, instead of blocking for it to load something I don't want to load. Sep 11 13:10:54 Not a major use case, but this kind of loading it asynchronically. Sep 11 13:11:39 So basically it is not possible to keep the Fragments and their BackStack when I leave the activity? Sep 11 13:13:19 LambdaDusk: depends on what you mean by "leave the activity" Sep 11 13:13:40 sabton: start an intent to another activity Sep 11 13:14:08 sabton: When it returns by pressing back, I get "onCreate" again, recreating my entire activity Sep 11 13:14:48 LambdaDusk: Android is only trying to recreate your Activity's views, presumably it's your code that is re-initting the activity Sep 11 13:15:14 LambdaDusk, recreating an activity doesnt mean it losts the fragments. You should check whether the Fragments are still in cache, by fm.findFragmentByTag() I think. Sep 11 13:16:17 sabton, Number5: I have a single container FrameLayout where I put the fragments and kinda rely on the backstack Sep 11 13:16:42 LambdaDusk: it is still there when you return to the activity Sep 11 13:17:12 LambdaDusk: you are responsible for restoring your activity and fragment views to the proper state when this happens Sep 11 13:17:45 LambdaDusk, you can test it, another possibility is to have the control on the back button yourself. This means you need some additional logic to keep track of the back-state. Sep 11 13:17:49 LambdaDusk: you need to look up how activities and fragments save and restore state. it is a huge topic. Sep 11 13:18:14 can I place a textview TV1 right next to TV2 in relative layout with marginRight and not with toRightOf? Sep 11 13:18:25 yes, and a lot of testing and practising Sep 11 13:18:47 Sicp, that makes no sense Sep 11 13:18:55 I know Sep 11 13:18:57 margin is just margin, it does not tell relativelayout anything about positioning Sep 11 13:19:05 can you explain more what you're trying to do? Sep 11 13:19:07 but shouldnt marginRight push things out an amount of that margin? Sep 11 13:19:08 Sicp, it's relative :P Sep 11 13:19:38 ah, nvm, if I add marginRight property, that property and all of its other properties sit inside the same place where relative placed them Sep 11 13:20:00 if relative were to place something next to that TV, that's when the margin would appear to be pushing out that next element Sep 11 13:20:05 Sicp, margin is something that the textview has... if you set right margin then your view has to be anchored somewhere on the right side to push view left Sep 11 13:20:10 if you understand what you mean :) Sep 11 13:20:13 I'll just put by tree structure into their own activities, even though it clashes horribly with the navigation drawer Sep 11 13:20:14 yea Sep 11 13:20:37 mannn, using some guy's layout calculations to change TV's X positions Sep 11 13:20:40 its like a black box to me Sep 11 13:21:16 the thing runs fine only if all elements are right ontop of one another with relativelayout and no rightof leftof Sep 11 13:21:28 so it starts off as a big clunk of things ontop of each other Sep 11 13:21:33 but then when it runs, it runs Sep 11 13:22:09 linearlayout with horizontal orientation fixed the starting position, but screws up when its calculation time Sep 11 13:29:01 ugh, my phone connected with my computer just fine last night, and now I keep getting code 43 Sep 11 14:01:43 Hi guys. I have an app where I have a primitive gallery of pictures taken with Camera. Gallery activity uses CursorLoader to load the images to the GridView selecting them from MediaStore.Images.Media.EXTERNAL_CONTENT_URI. It works ok when the application starts - images are loaded and displayed ok. But I want the Grid to be updated with the new image after camera takes a picture (after startActivityForResult() is called) and Sep 11 14:01:43 I'm returned to my gallery. I'm not sure on how should I notify my Loader to update the data. How should I notify the adapter that underlying data (images in app's pictures directory) has changed? Sep 11 14:02:50 have you looked into notifyOnDataSetChanged? Sep 11 14:03:08 obviosuly not Sep 11 14:03:23 easy dude Sep 11 14:04:28 AlexBerdnikov, look up MediaScannerConnection Sep 11 14:05:40 Thank you, I'll check that. Sep 11 14:09:37 should requestlayout on the view hierarchy help as well? Sep 11 14:11:36 what is the difference between Stand-alone SDK tools and Eclipse ADT? Sep 11 14:14:28 sandman13, i think the sdk tools are the tools which are needed for developement. Whereas the eclipse adt is eclipse and the developement tools for it Sep 11 14:14:36 command line tools only and the ide Sep 11 14:14:46 is what those are, respectively Sep 11 14:16:08 thanks btw has anyone tried using Android SDK in Linux other than Ubuntu Sep 11 14:16:36 sandman13: yes Sep 11 14:16:54 its the same for all lnx versions. Sep 11 14:17:00 danijoo: what do I need to do? I am using Debian Sep 11 14:17:15 the same that you need to do for ubuntu Sep 11 14:17:25 basically only download the sdk and you're done. Sep 11 14:17:28 yes like you can use those sdk tools on the command line on their own. but you can also specify to use them in intellij idea or other ides Sep 11 14:17:45 t h e s a m e Sep 11 14:18:10 download sdk, download ide, point ide to sdk Sep 11 14:18:49 danijoo: hmm thanks I was asking because my internet connection is terrible and downloading and trying would take rougly 3 hours or so Sep 11 14:18:56 ubuntu and debian are the same anyways. they only differ in their repro Sep 11 14:19:02 s/rougly/roughly Sep 11 14:20:18 packaged sdk is not such a good idea. I store the sdk in the home directory Sep 11 14:21:13 ProjectN: does packaged sdk mean Eclipse ADT? Sep 11 14:21:49 ProjectN: its neither a good nor a bad idea. Sep 11 14:21:56 why should it be? Sep 11 14:22:33 the bundle is nothing more than both directories in one archive Sep 11 14:22:38 danijoo, ya it depends Sep 11 14:22:49 no. its just a matter of taste.. Sep 11 14:25:55 need ia32 libs these days, but that's it Sep 11 14:26:20 it's surprising there aren't 64bit builds of the sdk yet... Sep 11 14:26:44 Considering just about no one runs a 32 bit os anymore Sep 11 14:26:57 hello i want to ask somthing about synchronization Sep 11 14:27:19 and what's funnier is than when building aosp, it builds the sdk anyway, and that is 64bit... Sep 11 14:28:09 resu01, read the jcip book Sep 11 14:28:30 i have an activity which makes a volley request and when it gets the result it sets the result via a setter synchronized method and it informs the fragment via a callback that the data are ready Sep 11 14:28:45 the fragments get the data via a synchronized getter method Sep 11 14:29:31 is this necessary? Is it safe to remove synchronized from these setters and getters? Do activity and fragment use the same thread? Sep 11 14:29:48 resu01: do you know what synchronized is for? Sep 11 14:29:56 sounds like no.. Sep 11 14:30:06 i suppose i know Sep 11 14:30:19 we use it for thread safety Sep 11 14:30:41 still sounds like no :) Sep 11 14:30:44 for example when to async tasks access the same data in parallel Sep 11 14:30:44 how do I spread 12 elements horizontally across the screen and let them be set outside the boundaries of the screen? Sep 11 14:31:18 probably i am wrong Sep 11 14:31:19 I'll make them scroll back to be viewable later, but I want them to start spread out across regardless of the width of the screen, I want them to take up as much space as they need Sep 11 14:31:31 you should follow pfn's suggestion :> Sep 11 14:32:16 ok i din't see that. I was writting my question Sep 11 14:32:36 linear with horizontal orienation doesnt work, it eats up the layout after the second element. the elements are quite large Sep 11 14:32:59 pfn thanks for the response Sep 11 14:33:03 i will read it Sep 11 14:33:13 Sicp: do you mean outside = scrollable? Sep 11 14:33:26 I scroll them with X variable, not manually Sep 11 14:33:36 as for the other part of the question do activity and fragment use the same thread? Sep 11 14:33:38 so not scrollview no Sep 11 14:33:50 you can disable manuall scrolling in scrollview.. Sep 11 14:34:11 and place them in a scrollview? Sep 11 14:34:32 but that scrollview has to have 1 child, same problem Sep 11 14:34:56 Sicp, You could try like this. Framelayout>ListView=horizontal Sep 11 14:35:19 listview, yea that's an idea Sep 11 14:35:32 nahhhh no Sep 11 14:35:33 lol Sep 11 14:36:50 use scrollview. Sep 11 14:36:57 and the child? Sep 11 14:37:02 BjorneSven, I tried to call notifyOnDataSetChanged() for my adapter in onActivityResult() when i'm back in the app after picture is successuly taken in camera activity, but with no result, it didn't help. Sep 11 14:37:07 I'm having an issue with my gradle build aber I merged another branch. It says "Error: Configuration with name 'default' not found", gradle --info narrows it down to a the build.gradle of a library (Caldroid). Sep 11 14:37:14 A problem occurred evaluating root project 'library'. Sep 11 14:37:14 > Plugin with id 'com.android.library' not found. Sep 11 14:37:41 ill set the child to be linear with matchparent and matchparent Sep 11 14:37:54 thing is, nothing related to that was changed. only the build.gradle of the main project had some changes that shouldn't affect Caldroid. Sep 11 14:38:09 child must be wrap content Sep 11 14:38:35 oh Sep 11 14:38:43 we'll see about that! Sep 11 14:39:26 Hi Sep 11 14:40:04 Is there a web driver for android to open pages and control html elements? Sep 11 14:40:37 ok, it placed them all I can scroll through them Sep 11 14:41:21 you cant disable scrolling like that Sep 11 14:41:27 need to override scrollview man Sep 11 14:41:48 yeah Sep 11 14:42:02 lol Sep 11 14:42:03 no Sep 11 14:42:35 god damn sadism Sep 11 14:43:17 is it better to use a votallite? Sep 11 14:43:39 i mean volatile Sep 11 14:44:56 you disable it by setting its onTouchListener to return true Sep 11 14:45:08 like with expandablelistview opening or not opening Sep 11 14:45:27 the groups inside it, that is Sep 11 14:48:15 well that worked out alright Sep 11 14:48:23 thanks me Sep 11 14:49:13 ravilov, thank you man. mediascanner seems to be exactly what I need. thanks a lot. Sep 11 14:57:18 Is it possible to decompile assets folder Sep 11 14:57:48 I want to encrypt the files in this folder Sep 11 14:57:58 weird, when did I get banned from #handbrake Sep 11 14:58:01 not sure what you mean with decompile.. Sep 11 14:58:06 can someone help me on this, please ? http://stackoverflow.com/questions/25790654/error-java-lang-runtimeexception-how-to-preperly-get-extras-from-an-intent Sep 11 14:58:14 well, that's annoying Sep 11 14:59:11 hmm, my irc logs don't go back that far, oh well Sep 11 14:59:39 danijoo: decompile my app Sep 11 14:59:53 MalekAlrwily: reverse engineering or what? Sep 11 14:59:54 so you can see the source Sep 11 14:59:59 assets are stored plain Sep 11 15:00:07 what :( Sep 11 15:00:12 i think assets are just zipped, arent they? Sep 11 15:00:17 encrypt it yourself if you want Sep 11 15:00:54 How to make the decrypt key private Sep 11 15:00:58 pfn: do you want me to join and ask? :p Sep 11 15:01:26 nah, no big Sep 11 15:03:38 MalekAlrwily: theres no such thing like decrypt key.. Sep 11 15:04:00 everyone can reverse engineer your stuff Sep 11 15:04:25 I want to save some javascript txt's Sep 11 15:04:48 MalekAlrwily, 99% of the time, your code is not valuable enough to hide Sep 11 15:06:05 is it better to put javascript txt's in a class instead of assets Sep 11 15:06:15 at least, it is not plain Sep 11 15:06:51 MalekAlrwily: ultimately if something is on a client device, there's basically no way to prevent a determined user to get to it Sep 11 15:09:07 so it is a waste of time Sep 11 15:09:43 Thanks guys Sep 11 15:09:45 complete waste of time Sep 11 15:09:47 yw Sep 11 15:09:50 your app is not valuable enough to reverse engineer Sep 11 15:10:11 oh, just got a nice idea Sep 11 15:10:13 and your code is typically not clever enough Sep 11 15:10:35 make my app work on a server Sep 11 15:10:49 and the client connect to server to request something Sep 11 15:10:56 yaaaaaa Sep 11 15:11:57 question on FragmentActivity..should it still use onCreateView() with a return of View? It doesn't seem to be Override-able. I am trying to get a child FragmentActivity to appear and change, but I'm not finding the "Right" tutorials.. Sep 11 15:12:44 it has onCreate Sep 11 15:12:48 and setContent Sep 11 15:13:03 fragments have onCreateView Sep 11 15:14:10 so, fragmentActivities.."are" activities but can be added to fragment tags on a layout? maybe I worded that wrong. Sep 11 15:14:40 fragmentActivity is not a fragment Sep 11 15:14:57 it's and activity Sep 11 15:15:05 thats all you really need to know Sep 11 15:15:34 that may be my issue. Thanks. Sep 11 15:17:24 good day! Sep 11 15:18:17 I would like to ask one question about android sip stack. Does anybody knows how to activate the echo cancelation and noise cancelation for the anroid.net.sip? Sep 11 15:22:44 what can I do to make my seekbar look like this? http://4.bp.blogspot.com/-q9nR43y-M_k/UDw1rFsD4kI/AAAAAAAACL8/enskoIyjUTk/s320/Seekbar-1.png instead of this http://3.bp.blogspot.com/_C5a2qH8Y_jk/TUkTetUde3I/AAAAAAAABfI/Ha2wvGn8XQQ/s400/AndroidScreenBrightness_01.png Sep 11 15:23:34 Syzygy_ what is your min api ? Sep 11 15:23:47 cause thats like GB looking :) Sep 11 15:23:57 15 Sep 11 15:24:03 set your theme to holo Sep 11 15:24:34 JacobTabak should it not do that by default at 15 Sep 11 15:24:36 :) Sep 11 15:24:47 StingRay_ not unless you set a theme Sep 11 15:25:06 wow, thats crazy Sep 11 15:25:19 though it would at least default to system style Sep 11 15:25:20 the IDE *should* do it Sep 11 15:25:22 shouldn't need to explicitly set theme to holo Sep 11 15:25:55 if you explictly set the wrong theme, well, yeah, you gone done it wrong Sep 11 15:26:27 I didn't set a theme but setting it to holo seems to have helped. thanks a lot Sep 11 15:26:35 you shouldn't have to set it to holo... Sep 11 15:26:51 that's the default on any >=api11 devices Sep 11 15:27:00 it was on android:Theme.Light.NoTitleBar Sep 11 15:27:07 yeah, you set th wrong theme Sep 11 15:27:21 not to mention, Theme.Light wasn't what you uploaded a picture of Sep 11 15:27:39 he said he wants it to look like that, meaning it didn’t already look like that Sep 11 15:28:01 * xximjasonxx is watching Webinar on iOS8 in Xamarin Sep 11 15:28:25 pfn, I never said it was mine, all I said is that mine looked like this. Sep 11 15:28:30 btw Syzygy_ pfn is right, the default theme is based on your target API level i believe? someone can confirm Sep 11 15:28:59 my wording my be off, but I am trying to understand Fragments and FragmentActivit combination. I have a layout containing 2 Fragments(one won't change), starting a FragmentActivity extended class. That class is then adding one Fragment to the "Child fragment" on the activity. is that how it works? Sep 11 15:29:00 Really is amazing how many "new" features already exist in Androud Sep 11 15:29:17 my target is 15 and I don't think I messed with that since creating the project. Sep 11 15:29:43 your theme is PROBABLY default Holo Dark Sep 11 15:30:00 Chris_W: your wording is a bit off Sep 11 15:30:17 when you say “child fragment” you probably mean “child fragment manager” which would be hosted by the fragment, not the activity Sep 11 15:30:32 so an activity has a fragment manager, and a fragment has a child fragment manager Sep 11 15:30:44 the fragment can also access the parent activity’s fragment manager Sep 11 15:31:11 the only reason you’d use a child fragment manager is if you wanted a fragment to have its own fragments that are completely contained within it Sep 11 15:32:00 yeah my wording is off. the FragmentActivity that is connected to the Layout, I think I have setup to use getSupportFragmentManager() and stuff to add the...I am confused. It adds an instanced Fragment to the xml tags..my wording still off. Sep 11 15:32:04 http://developer.android.com/images/ui/actionbar-item-withtext.png Sep 11 15:32:13 how to I get hold of this arrow button in the top left? Sep 11 15:34:20 platzhirsch: did you trying Googling? Sep 11 15:34:25 cause I found the answer within 3s Sep 11 15:35:11 xximjasonxx: yes, but apparently, not the right terms? ;) Sep 11 15:35:16 it's not R.id.home is it? Sep 11 15:35:42 http://bit.ly/1xOuLLC Sep 11 15:35:51 first result Sep 11 15:36:22 Chris_W: if you have a fragment defined in XML, the layout inflater will automatically create/attach your fragment, you don’t need to do anything Sep 11 15:40:00 why is there padding to the left of my layout! Sep 11 15:40:17 where does HorizontalScrollView come off adding space on its onw! Sep 11 15:40:42 Hi all. I recently released my first app, and I was wondering if there's a place where I could compare my usage and install stats against other apps. Does any one have any websites they'd might wish to share? Sep 11 15:40:47 maybe it just doesnt like you Sicp :) Sep 11 15:41:07 I'm mostly curious about Returning user - rate and uninstall rate Sep 11 15:41:16 JacobTabak only one Fragment is "Defined" in the Layout. THats the navigation pane. I am working on "updating the child fragment(container?)" depending on the navigation pane selection. Sep 11 15:41:16 wait to show you danijoo, you'll get time to help me, be patient Sep 11 15:41:28 ThomQ: https://sensortower.com/ Sep 11 15:41:40 Chris_W: yes, you’ll probably want to use the child fragment manager then Sep 11 15:41:59 Chris_W: what exactly are you having trouble with? Sep 11 15:43:46 think it's fadingEdge property? Sep 11 15:43:58 Just understanding it all, putting it all together. I am waiting on my emu to boot. I am using getSupportFragmentManager().beginTransaction().add(int of tag, Fragment exended instance).commit();...that might wor Sep 11 15:44:01 xximjasonxx: thanks, yeah,.. I thought this is something else, so I overread it all the same :) Sep 11 15:44:05 nope Sep 11 15:44:15 danijoo, are you suggesting their App Intelligence feature? Sep 11 15:44:29 platzhirsch: no worries, happy to help :) Sep 11 15:45:07 ThomQ: basically you can add your app and competitors and track their/your install rates/reviews/keywords usage etc Sep 11 15:45:15 and compare them Sep 11 15:45:23 yeah exactly, sweet Sep 11 15:45:26 nope that's not working. I'll chase the error. Thank the IDE programmers for printStackTrace(); methods, eh? Sep 11 15:46:00 Do you think returning user rate and uninstall rate would be in there as well? I'm bookmarking the page none the less though, so thanks already :) Sep 11 15:46:03 I dont use it much, though. only to get the reviews mailed :p Sep 11 15:47:07 damn, it pads the left at first, then when the scrolling starts everything is fine Sep 11 15:47:41 I cannot work with lates linuxmint and SDK: http://pastebin.com/YCmLcJ9n Sep 11 15:47:47 after a while it crash Sep 11 15:48:06 check it out danijoo https://www.dropbox.com/s/cne29t1hwypw80c/Screenshot_2014-09-11-18-40-56.png?dl=0 Sep 11 15:48:19 My main problem, what I need to determine, is that we've gotten quite a decent amount of downloads, about 1250 the first week. About 50% of those uninstalled already, and about 15% of current installs uses the app daily (which is more then we estimated). Sep 11 15:48:20 Sicp: Im not your personal debugger.. Sep 11 15:48:29 that was harsh brah Sep 11 15:48:41 hetii: what is crashing? Sep 11 15:48:42 Sicp so are your expectations ;) Sep 11 15:48:42 sorry brah Sep 11 15:48:48 we're just talking Sep 11 15:48:54 not "DEBUGGING" Sep 11 15:48:55 lol Sep 11 15:48:55 Mrdarknezz: eclipse Sep 11 15:48:57 you are just talking ^^' Sep 11 15:48:58 I think the high uninstall rate comes from running the small ad campaign we used. Is that normal / something to be expected when advertising a free app? Sep 11 15:49:12 ok brah Sep 11 15:49:24 hetii: http://wiki.eclipse.org/IRC Sep 11 15:49:34 Sorry but i dont even know what you are talking about. not reading every line here. Sep 11 15:50:02 and out of knowwhere theres a highlight with "check it out!" Sep 11 15:50:05 hetii: Queries stated in this channel is regarding android application development Sep 11 15:50:07 nowhere* Sep 11 15:50:47 danijoo, I also got some stack traces you need to take a look at Sep 11 15:50:55 dude it's over Sep 11 15:50:56 *snaps fingers* Get to work man! ;) Sep 11 15:50:58 it passed Sep 11 15:51:16 no worries brahhh Sep 11 15:52:29 Sicp: please stop using "brah" lol Sep 11 15:52:39 just wanted to make sure you got it :P Sep 11 15:52:45 I'm creating a game in Android, but I require my own timer. I need it because grabbing the system time can be modified by the user. I need it to start at the time I get back from my server. How would you guys go about this? The way I'm implementing it now, I seem to be getting some drift from my timer, Anyone up to discuss this with me? Sep 11 15:53:13 Mrdarknezz: so im not the only one with bleeding eyes because of that? :D Sep 11 15:53:18 eghdk: request server time by php, perhaps Sep 11 15:54:03 if it's not connecting to the internet, I'm not completely certain. I dont know if there is a reliable way to calculate milliseconds, short of grabbing device's time Sep 11 15:54:09 eghdk: this is tricky because when you query your server, theres also a time difference until the response arrives at your phone.. and that delay depends on connection.. Sep 11 15:54:29 how exact do you need the time? Sep 11 15:54:35 danijoo: add a difference, within a limited range, of a time to the request sent and request received. Sep 11 15:54:53 Chris_W: yeah thats why I ask how exact it must be Sep 11 15:55:03 it its milliseconds, you gonna have a bad time. Sep 11 15:55:08 eghdk: I'd use and NTP server Sep 11 15:55:11 literally, lol Sep 11 15:55:15 an* Sep 11 15:55:25 I confused myself. I am using a slidingPaneLayout, where the main/parent is a defined . That one will not changed..but also, I need one that can change. What container should I use for the changeable one? Sep 11 15:55:52 Chris_W: Well that's what I'm doing, and that works fine, when the user enters the app I take a timestamp of the current time from server and start my internal app timer at that time. When they leave, I take the timestamp of my app timer as the "time_the_user_left" and when they come back I get the server time. If its larger than 30 seconds, then I do an action Sep 11 15:55:55 Chris_W: All fragments -> framelayout Sep 11 15:56:36 Mrdarknezz: I'm getting the time correctly, its when I compare the time from server to my apps internal timer it gets out of whack. Sep 11 15:57:07 eghdk, you sure the problem isn't in the app's internal timer then? How did you build it? Sep 11 15:57:20 ThomQ: That's what I think it is. Sep 11 15:57:38 pastebin your timer code :) Sep 11 15:58:29 but also, just to enlighten me, why does it matter What the start time is? Sep 11 15:58:39 eghdk: why do you even need a timer? you can do the whole thing by comparing timestamps without counting seconds Sep 11 15:58:48 ThomQ: Basically when you enter the app it gets the timestamp, then it's basically Timer timer = new Timer(); timer.scheduleAtFixedRate(); Sep 11 15:59:12 The timer is for the actual game itself. It needs timers for certain events to happen. Sep 11 15:59:14 danijoo thank you there. Problem is, it crashes. Apparently the FrameLayout doesn't like being a child of android.support.v4.SlidingPaneLayout..actually this printStackTrace is misleading and non-informative, so I am confused. Sep 11 15:59:20 oh ok Sep 11 15:59:56 ThomQ: The start time matters because the end time matters. Sep 11 16:00:18 When they elave the activity I take a timestamp of the app timer, and save it as "time_user_left" Sep 11 16:00:23 ahh so you want users to prevent changing time During the game to fiddle with it Sep 11 16:00:37 eghdk: is it for something like "user can do action XYZ every 30 seconds, and not more"? Sep 11 16:01:17 ThomQ: More or less Sep 11 16:01:56 The iOS developer building this has it working perfectly, so thats why theres pressure on me to do it this way exactly. Sep 11 16:02:32 eghdk: why dont you check system time when user pauses the app and compare that to the time the user resumes. If your check reveils that they try to cheat, tell them with a badass "dont cheat" dialogue Sep 11 16:02:51 1. Enter App. Get timestamp from server and start app clock. 2. Leave app grab timestamp from appclock 3. Reenter app grab server time and compare it to time you left. Sep 11 16:02:53 and do .. "something" Sep 11 16:03:34 eghdk: your approeach seems ok (although i'd hae that being bound to being online). so it seems like you have a bug in your code Sep 11 16:03:42 If its greater than a preset range of numbers doThis() Sep 11 16:03:47 danijoo: Exactly. Sep 11 16:04:04 I'm logging the server times and it works perfectly. Sep 11 16:04:16 The time i left the app is whats off. Sep 11 16:04:34 The log shows up at the correct time to take the timestamp, just the timestamp is wrong. Sep 11 16:04:48 Yeah, i'd personally would check the difference between System.currentTimeMillis() upon leaving and returning. The timer should work though. Sep 11 16:05:07 ThomQ: Yeah, the timer should work, and thats the issue. Sep 11 16:05:36 eghdk: what about storing the difference between servertime and local time on start of the app. then when the app closes you only need to add that difference to system time and dont need to count seconds Sep 11 16:05:39 ThomQ: Sometimes the timestamp will be exactly the same when I leave or enter the app quickly. Sep 11 16:05:40 You could check System.currentTimeMillis() to see where and when your timer goes off. Sep 11 16:05:46 should be more battery/cpu friendly and more exact Sep 11 16:08:03 Also, I'd be curious to know if the timer is going off immediately, or after returning Sep 11 16:08:12 ThomQ: Yeah, my biggest frusteration is when I take the timestamp when you leave, and if I do it really fast, the first time will be "from the future". So the second timestamp is behind the first. Which is impossible. Sep 11 16:09:02 is it possible to modify handler ?processes, interrupts? (not sure what they are) after they are spawned? http://dpaste.com/1JKV0MX Sep 11 16:09:05 lol what? Sep 11 16:09:15 thats strange eghdk :D Sep 11 16:09:16 in case i want to change the delay Sep 11 16:09:46 ThomQ: What can I use for epoch time in Android? Sep 11 16:09:53 System.currentTimeMillis() Sep 11 16:09:57 SystemClock or System? Sep 11 16:10:02 System Sep 11 16:10:02 Okay System Sep 11 16:10:12 still had it on my clipboard Sep 11 16:10:26 there's no tutorial on Filters ? Sep 11 16:10:34 this is what i am talking about http://developer.android.com/reference/android/widget/Filter.html Sep 11 16:10:42 tut on android documentation i mean Sep 11 16:10:50 yeah, final advice I can give you is to Exactly pinpoint when it's going wrong, so you'll know exactly what the culprit is. Sep 11 16:12:50 are filters meant to use in conjunction with adapters only ? trying to understand what all usecases can it have Sep 11 16:17:28 shmoon_: you can filter anything Sep 11 16:17:34 :) Sep 11 16:18:12 ThomQ: danijoo any thing glaringly wrong with this? http://pastebin.com/LmG0CLEN Sep 11 16:18:28 is it possible to delete created handler.postDelayed instances? Sep 11 16:18:58 eghdk: i still not like the idea of counting seconds instead of measure differences .. :/ Sep 11 16:19:13 would make it a lot easier to do the latter one Sep 11 16:19:19 danijoo: Neither do I. Sep 11 16:19:27 doesnt he need it though to trigger events? Sep 11 16:19:39 The original idea was just for differences, but when I'm in the app I expect the timer to be flawless.. Sep 11 16:19:47 When is stop called? in OnPause or OnStop? Sep 11 16:19:57 ThomQ: Yeah I need it. Sep 11 16:20:17 uhh OnStop... Lol :D Sep 11 16:20:19 so bad Sep 11 16:20:46 Do you have to destroy/make a new timer every time? Sep 11 16:21:03 Can you reuse a single instance? Sep 11 16:21:28 ThomQ: onStio Sep 11 16:21:42 Ironthighs: I don't "need" to. Sep 11 16:21:55 I just did it... because? Sep 11 16:22:09 And when exactly is the first time it goes wrong? AFter returning to the app the first time? Sep 11 16:22:38 Hard to tell, I'm testing this by going in, getting the time, then pressing home, then going back in Sep 11 16:22:43 eghdk: You asked if there was anything glaringly wrong ;P Sep 11 16:22:48 Then I take the difference and log it Sep 11 16:23:10 I'll get good logs like 1 second, 1, 1, then Ill get like 6, 11, -8 Sep 11 16:23:45 anyone recommend a good way to cache large bitmaps to disk? Sep 11 16:23:46 Ironthighs: Im not sure how to do it, thats why I'm asking. Maybe I shouldnt create a new timer? I dont know Sep 11 16:24:16 it shouldn't matter too much Sep 11 16:24:27 Yeah, it's not a huge deal Sep 11 16:24:38 wheter you restart the timer on instance a new one, that should not accoutn for the differences Sep 11 16:24:48 I'll run a little test project for ya, hold up Sep 11 16:24:57 ProjectN write them to it :) Sep 11 16:25:17 thats a fair persistent way to keep them around :) Sep 11 16:26:10 Good morning :) Sep 11 16:27:33 ThomQ: Thats what I was hoping. That it shouldn't really have too much effect. It seems that it just sometimes starts at the wrong time. Sep 11 16:28:04 scheduleAtFixedRate doesn't seem right. Sep 11 16:29:16 as I recall from the docs, schedule at fixed rate also uses variable rates now unless you specify something explicit Sep 11 16:29:19 thats all I remember. Sep 11 16:29:30 hi guys Sep 11 16:29:43 or maybe it's the normal schedule at rate uses variable timing by default and you have to call fixed rate explicitly. Check the docs anyhow, there was a recent-ish change Sep 11 16:31:47 scheduleAtFixedRate(new AppClockTask(), 0, 1000); fires good for me. Once every second, and not too much of a difference in mseconds, all around .040 on average for me over a period of a minute Sep 11 16:32:11 this.period is fixed, right?> Sep 11 16:32:54 also, how do you get this.increment? Sep 11 16:35:47 the increment? Sep 11 16:36:00 strange. app works fine on emulator..won't start on my phone though :/ any ideas on debugging this? Sep 11 16:36:08 buy a new phone Sep 11 16:36:17 Chris_W yes, "to" debug it :) Sep 11 16:36:21 Chris_W: logcat. Sep 11 16:36:26 do you have adb started? Sep 11 16:37:16 can't buy a new phone. and no, I'm just running the app on my phone. I can't find my cable to do dev mode. Sep 11 16:37:26 well, not much you can do then Sep 11 16:37:29 the you cant debug. Sep 11 16:37:32 go get a usb cable :P Sep 11 16:38:01 if its rooted, you can debug over tcp Sep 11 16:38:17 doesn't have to be rooted, but you generally need to be able to adb shell to turn it on Sep 11 16:38:26 it's a microusb cable. they probably sell them at your local gas station at this point. :P Sep 11 16:41:38 if anyone has time maybe he can look into this question on stackoverflow. would be nice if someone can help http://stackoverflow.com/questions/25753718/steam-web-api-how-to-get-a-working-httpsurlconnection-with-steam-web-api Sep 11 16:42:21 defuex: i honor you.. Sep 11 16:42:43 ThomQ: Thanks for looking into this for me. I'm sure its a logical error somewhere, Ill find it. Hahaha thanks! Sep 11 16:43:45 Hello, i have a user who gets a message saying "No activity found" when he tries to open my app. He can however open it by the task manager. This happened right after an upgrade, but i don't have this issue on my devices. Any idea what could cause this? Sep 11 16:44:47 why do you honor me danijoo? ^^ Sep 11 16:44:56 endurance :) Sep 11 16:45:08 you are posting that for 3? days now Sep 11 16:45:19 since yesterday XD Sep 11 16:45:27 yeah ^^' Sep 11 16:45:47 time doesnt seem to matter in this channel anyway Sep 11 16:46:04 think I found one. not sure if it's power-only tho. Sep 11 16:46:32 Chris_W: power only usb? I dont think this exists Sep 11 16:46:44 danijoo they do Sep 11 16:46:49 it's a power only splitter. it goes to an AC adapter or car charger Sep 11 16:46:55 crazy stuff. Sep 11 16:47:16 but more important, not sure anyone wants up to the minute event updates on the search for a cable Sep 11 16:47:18 :) Sep 11 16:47:44 understood. Sep 11 16:55:08 save me some time! I could google, but slap me down quickly - whats wrong with this to create a URL for a web browser? The browser seems to only see the .encode() part and not the root url. i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com/" + URLEncoder.encode(m.getKey() + " " + m.getValue(), "utf-8"))); Sep 11 16:56:23 does encode provide a / ? Sep 11 16:56:29 then you'd have two Sep 11 16:56:32 .com// Sep 11 16:57:02 MikeWallaceDev should that make a difference ? Sep 11 16:57:28 you don't want two :D Sep 11 16:57:44 well you can have 20 and it would still work though right ? Sep 11 16:57:45 www.google.com//foo.html is an error :) Sep 11 16:57:52 I don't think so... Sep 11 16:57:58 I'm trying to run chronometer in backthread, but onChronometerTick method is called only once http://paste.ubuntu.com/8320322/ Sep 11 16:58:06 I REALLY don't think so. Sep 11 16:58:09 where is a problem Sep 11 17:00:49 I've never worked with Chonometre slani, but that just looks weird to me. That thread will die immediately... Sep 11 17:02:20 OkHttp + Oauth2 anyone? Sep 11 17:04:04 slani: do you have to call setBase on that widget, or does just calling start default to current time? Sep 11 17:04:48 marrrk: who’s oauth implementation are you using Sep 11 17:04:54 None yet. Sep 11 17:05:20 well i think you need to figure out what your end goal is Sep 11 17:05:26 canvs2321: I just called start Sep 11 17:06:00 My end goal is to sign my http requests with an oauth token. Sep 11 17:06:11 but the approach is right? Sep 11 17:07:22 I can use Otto to communicate between a Service and Activity, right? Sep 11 17:07:30 Afzal: yes as long as htey’re in the same process Sep 11 17:07:30 yes, if they are in process Sep 11 17:07:41 JacobTabak: I think I’m not getting what you mean. Sep 11 17:07:54 Cool, they are. Thanks JakeWharton and JacobTabak Sep 11 17:08:07 marrrk: so you’re talking about signing http requests with an oauth token, not acquiring an oauth token? Sep 11 17:08:32 slani: plus, that is a view, are you adding it to a layout? if not, does that break the workings of it Sep 11 17:08:38 I will need to do both but I was thinking about the signing bit first. Sep 11 17:08:45 Is there an easy way for a user to get and send an error log by mail or something like that? One is getting an "activity not found" error and i can't reproduce the issue.. Sep 11 17:09:19 slani: plus, if not using it as a view, why are you using it? Sep 11 17:09:50 JacobTabak: The signing seems to me to be the harder part. Sep 11 17:10:26 marrrk: what’s hard about it? Sep 11 17:11:25 which service are you talking to that requires requests to be signed? Sep 11 17:11:49 To me right now, it is finding a library that integrates with okhttp and does it is hard. I could of course try to do it by hand but I’d be surprised if there wasn’t anything. The service is our own. Sep 11 17:11:49 canvs2321: I will update wiew from backthread (is this OK?) Sep 11 17:12:06 marrrk: does what? Sep 11 17:12:30 marrrk: isn’t it just an issue of attaching a signature as a header? Sep 11 17:12:56 Maybe you’re right. I think I remembered this whole thing wrong. Sep 11 17:13:34 generally in the past when i’ve had to sign requests i’ve done stuff like alphabetize all of the fields in the request, and sign it using a hash algorithm with the key Sep 11 17:13:52 and then send that signature in a header Sep 11 17:14:20 hey all. is there a download manager OSS library / project that can be used instead of DownloadManager? Sep 11 17:14:28 So you think just doing it by hand is a good idea? Sep 11 17:14:31 dcope: i was actually jsut working on one Sep 11 17:14:37 dcope: i can send you waht i’ve got Sep 11 17:14:48 i was going to publish it to maven central in a bit but ive been busy Sep 11 17:14:54 JacobTabak: sure, i'd love to see it. I'm using DownloadManager now but a lot of users are reporting problems with it :/ Sep 11 17:15:05 marrrk: maybe i’m ignorant but i didn’t realize there was a standard way to sign requests Sep 11 17:15:16 dcope: what issues are they reporting? Sep 11 17:15:24 dcope: my lib actually is a downloadmanager wrapper so maybe it won’t help you Sep 11 17:15:40 JacobTabak: i assume the callbacks aren't getting called on certain devices because the downloads "dont work" or "never complete" for them Sep 11 17:15:55 i've tested on may 4.X variants but i cannot repro. Sep 11 17:16:22 dcope: you are familiar with querying the downloadmanager to get the status of a download, right? and you can see the reason why its paused or failed Sep 11 17:16:40 slani: if touching a ui element from seperate thread, you need todo it view.post*(Runnable), or use a handler that's on ui thread. But i'm not too sure you are going about this the correct way Sep 11 17:17:00 yes Sep 11 17:17:09 dcope: and that’s not giving you enough info? Sep 11 17:17:31 JacobTabak: well it never happens for me. and i just have it fail silently. Sep 11 17:17:39 ah you should use crashlytics Sep 11 17:17:46 log that stuff Sep 11 17:18:32 <_CalLightman_> Hi.. can someone help me out with the pointToPosition function and expandable list Sep 11 17:19:04 canvs2321: i will use handler. I aleady doing this from other backthread (where I'm running a countdowntimer) Sep 11 17:19:35 <_CalLightman_> i need to find out which child/group was at given scrren coordinates x and y Sep 11 17:19:37 slani: i just don't get why you are doing what you are doing inside of a runnable, as it isn't needed Sep 11 17:20:21 slani: plus creating the meter in the runnable, also never calling .stop, etc...i just don't understand the logic Sep 11 17:24:06 canvs2321: I will call a stop, but first I need to find out how run chronmet. in backthread. I will do a lot of work (countdowntimer, chronometer, gps) and I don't want to do this in main thread? Sep 11 17:27:31 slani: the Chronometer is a UI Widget, i don't get why you are just try to use the timer of it Sep 11 17:33:30 i am new to android ,can you please tell me how do i start using adb in GUI mode in ubuntu linux ? Sep 11 17:37:21 samba35 what do you think adb is ? Sep 11 17:39:47 yes , i am trying to understand android and its overall file system and while reading many thing it say adb and i start using adb to get into actual file system of mobile phone but i want to know how much memory is consume by which application ,which are the application are started from bootup and so on Sep 11 17:40:02 please ...please correct me Sep 11 17:40:17 samba35 it would seem you are in the wrong channel Sep 11 17:40:24 this is for app development Sep 11 17:40:47 not really user/android help Sep 11 17:41:29 ic Sep 11 17:42:21 can you please tell me which is right door for me :) Sep 11 17:42:50 alas, this is not a hub for directing people either, this is for app development :) Sure you have a search function Sep 11 17:42:52 :) Sep 11 17:45:45 I would have expected Intent.ACTION_WEB_SEARCH to be defaulted in Android 4.4. Its not : no activities are registered to service this intent. Sep 11 17:51:46 I am trying to create HCE service. I have a problem with the XML file that defines my AID - Where do I put that xml file in my project? Can't find any documentation on that. Sep 11 17:56:40 so what do I need to do at the "user level" to register an app to handle intent.ACTION_WEB_SEARCH? I'm really perplexed as to why it isnt already handled. Sep 11 18:03:06 How do I configure a view to try to be x number of pixels wide, but fallback to FILL_PARENT behaviour if being x pixels wide would cause it to overflow and be wider than its parent? Sep 11 18:03:49 Or maybe I mean MATCH_PARENT instead of FILL_PARENT Sep 11 18:04:01 sqwishy not sure it can be wider than parent unless you do something to allow that Sep 11 18:04:03 http://chrome.blogspot.com/2014/09/first-set-of-android-apps-coming-to.html Sep 11 18:06:42 StingRay_: If you call setLayoutParams you can give it pixel sizes that are larger than its parent. That seems to make it larger than its parent. I could be wrong though. Sep 11 18:07:02 when i just read Google was buying Polar, I thought they meant the company making heart rate monitors :| Sep 11 18:07:07 It's going off-screen and I assumed the parent was the width of the screen Sep 11 18:07:16 sqwishy yes but sure the view is restricted by parent Sep 11 18:07:39 unless the parent view doesn't clip and/or has negative margins or something like that Sep 11 18:09:41 g00s: is polar the guy who did all the wrappers around the maps api? Sep 11 18:10:14 dragorn not sure http://blogs.wsj.com/digits/2014/09/11/googles-deal-for-polar-shows-it-has-not-given-up-on-google/ Sep 11 18:10:16 what wrappers? Sep 11 18:10:16 StingRay_: The parent view is a ListView. It seems like if the items are too wide they go offscreen Sep 11 18:10:32 g00s: oh, nope. Sep 11 18:12:04 sqwishy you mean they get clipped, they wont be offscreen like I said Sep 11 18:12:09 or I dont think so :) Sep 11 18:12:16 StingRay_: That's probably what I mean Sep 11 18:13:41 Hi! Is it reasonable to believe that the hamburger icon works, not because of the icon itself, but because the user intuitively expects such a function to appear in the upper left corner? Sep 11 18:14:20 Hence, you can really put anything there, strange hippie signs to well-thought-out geometrical shapes Sep 11 18:14:20 sarbs: some guy did a bunch of improvements to the google maps v1 api which largely got rolled into the v2 (either through parallel development or something else) Sep 11 18:14:21 frank_o: it’s a pattern that users are used to Sep 11 18:14:26 frank_o: yes. Sep 11 18:14:40 Cool Sep 11 18:14:41 frank_o yes, at this point, it's a UX pattern that's common and expected Sep 11 18:14:42 and the more implement it, the more you can expect the user to expect it Sep 11 18:14:45 dammit ninjas Sep 11 18:15:00 frank_o: on the othe rhand, if you go changing the icon, expect a lot of whining. Sep 11 18:15:07 since android, ios, and web all use the hamburger now Sep 11 18:15:09 in the beginning it was a weird button that people probably touched out of curiousity Sep 11 18:15:19 Really I thought they all stopped using it?! Sep 11 18:15:29 define "they" Sep 11 18:15:48 g00s: I was thinking 'polaris' Sep 11 18:16:03 http://weknowmemes.com/wp-content/uploads/2011/11/bitch-please-its-a-save-button.jpg Sep 11 18:16:31 Well. Not an iOS user but from the screenshots I haven't been able to spot the hamburger icon Sep 11 18:16:42 dragorn ic cool Sep 11 18:17:07 Been seeing a lot of hate against the hamburger icon as well, ie. http://www.subtraction.com/2014/07/08/the-case-against-the-hamburger-menu/ Sep 11 18:17:38 ok guys, anyone want to talk through a problem with me? i have a listview with several view types, one of which is video, and the videos need to auto play when they’re in the center of the screen. problem 1) the preview from mediastore is in the center of the video, not the beginning. so i tried to solve this by seeking to the first frame. problem is preparing the media player (even async) cause listview scrolling lag. 2) havin Sep 11 18:17:38 multiple mediaplayers in adapterviews causes some nasty code because i need to stop them in onPause/resume in onResume 3) getting weird crashes like “Fatal Exception: java.lang.RuntimeException Error during detachFromGLContext” Sep 11 18:17:58 is there a tl;dr version? Sep 11 18:18:01 that was it Sep 11 18:18:05 :D Sep 11 18:18:06 multiple videos in listview Sep 11 18:18:11 = problems, anyone have ideas? Sep 11 18:18:19 subtraction dude i think he holds a lot of weight Sep 11 18:18:20 IMHO UI conventions exist to help users who aren't power users. And most users are not power users. The more you get away from accepted conventions for a problem, the weirder you're going to look and the more issues you'll have with confused users. Sep 11 18:18:31 former nytimes designer and author of the infamous grids_are_good.pdf Sep 11 18:18:55 You're welcome to do whatever you want, but you'll always be better off using the conventions of the platform you're on Sep 11 18:19:02 i dont know though. desperate for an alternative to those 3 lines stacked on top of each other -- feel they aren't as exciting as some other shapes Sep 11 18:19:12 dragorn: thanks Sep 11 18:19:28 dragorn the only problem is the same arguement happens in movie and television industry which is why most of all television really sucks and most movies that come out today really suck ;p Sep 11 18:19:30 ofcourse i could just stick to the way i'm doing it right now which is just plain text saying "Menu" -- nothing is more self-explanatory than that Sep 11 18:19:47 JacobTabak: I have no actual answer, but have you considered not instantiating the video player until the user clicks on it? You can have a static preview image w/out making a video player, and then when the user clicks swap the views Sep 11 18:20:00 JacobTabak: then keep track so you never instantiate more than one, you kill the existing and remove it and then make a new one? Sep 11 18:20:03 but im afraid the hip young folks might find it too boring. im probably overthinking it though Sep 11 18:20:04 dragorn: thanks for your response… unfortunately its a requirement for it to auto play when it reaches the center of the screen Sep 11 18:20:13 lasserix: except movies aren't functional objects :P Sep 11 18:20:18 JacobTabak: how many items? Sep 11 18:20:22 N Sep 11 18:20:27 dammit Sep 11 18:20:29 frank_o: I can also promise no-one will spend as much time looking at your UI as you will :P Sep 11 18:20:48 dragorn: also, i need to prepare the video to get the first frame to show the preview, otherwise the preview i get is from the middle of the video Sep 11 18:20:52 drawer menu is a necessity on low-screen real estate Sep 11 18:21:00 so it doens’t look good when the video auto starts because it jumps from the frame in the middle of the video to the beginning Sep 11 18:21:17 JacobTabak: does it only have to play one? can you do the same pattern but auto-disable the other ones? Sep 11 18:21:25 dragorn: except i mean generally you are correct, but i've come up with a few UI ideas that are better than convention yet my boss was not willing to implement even a "advanced feature" mode for these because they were not convention, you know it just sucks when fear iswhat keeps convention from innovating Sep 11 18:21:52 yes, only one plays at a time (if the video bounds encompass the vertical center of the screen), but unfortunately the prepares are whats causing most of hte issues Sep 11 18:21:52 lasserix: Nothing is / should be absolute Sep 11 18:21:57 and i need to prepare to get the first frame Sep 11 18:22:10 lasserix: But I think it's fair to say "stick to the guidelines of the platform" is a pretty good rule of thumb :P Sep 11 18:22:26 yeah definatly Sep 11 18:22:34 lasserix: and most apps don't need something new - the ui is there to present information, not to be the focus. *usually*. Surely not always. Sep 11 18:23:24 JacobTabak: I don't do video stuff, but I'm sure there's got to be a way to get the first frame otherwise. Sep 11 18:23:32 dragorn: haha good point :-) Sep 11 18:23:38 pfn: yep Sep 11 18:23:48 dragorn: you’d think, right? Sep 11 18:23:54 discoverability is an issue, agreed Sep 11 18:24:03 JacobTabak: also are you handling row recycling correctly? You maybe need to detect that a row has a video player in it already and then disable it properly? Sep 11 18:24:04 the nicklist in my irc client, everyone doesn't know that it's a right drawer Sep 11 18:24:23 JacobTabak: of course remember I don't do video stuff, so I might be way off, just sort of spitballing Sep 11 18:24:34 i dont just look at my UI. but i try to simulate how people will look at it from now until 10 years from now. so in a sense i've been staring at my UI non-stop for 10 years =/ Sep 11 18:24:39 pfn: should make a button in the actionbar that opens the drawer to make user learn it Sep 11 18:24:52 frank_o: if it helps any, no-one is going to be looking at your ui in 10 years on android :P Sep 11 18:25:03 danijoo, yeah, I was thinking a side hamburger like in google maps Sep 11 18:25:06 frank_o: all the mobile devices are evolving too quickly Sep 11 18:25:07 danijoo: there is a button like that right? Sep 11 18:25:09 dragorn: good thinking, these are al issues i’ve been battling with Sep 11 18:25:13 danijoo, action bar icons take up too much space Sep 11 18:25:20 dragorn: oh indeed =) Sep 11 18:25:21 frank_o: I mean since 2010, we've had at least 3 major UI design shifts on android Sep 11 18:25:24 pfn: true Sep 11 18:25:32 scary how fast things evolve Sep 11 18:25:37 action bar fundementally flawed tho Sep 11 18:25:46 dragorn, only 1 major, which was holo Sep 11 18:25:47 cant really bet on making a successful app and then retire anymore.. Sep 11 18:25:51 paper isn't that major Sep 11 18:26:00 frank_o that's a lot of ui analysis Sep 11 18:26:05 most people hold the phone from the button, not the top. hence why are you forcing users to reach across the screen for the menu? Sep 11 18:26:06 textured => flat and vice versa isn't a major shit Sep 11 18:26:07 i... make sure my ui compiles Sep 11 18:26:08 shift Sep 11 18:26:10 imo Sep 11 18:26:18 * sarbs does not fight for the user Sep 11 18:26:36 lasserix: true Sep 11 18:26:37 lasserix, well, nav buttons and actionbar in close proximity are ripe for wrongclicks Sep 11 18:26:43 that's my major complaint with the phone dialer apps Sep 11 18:26:54 mute/bt/keypad buttons are immediately adjacent to hang up Sep 11 18:27:00 which is fucking annoying Sep 11 18:27:06 because I've disconnected from so many conference calls Sep 11 18:27:15 i'm not saying put it on the bottom, but seriousily reaching across the screen to use the navigation was a bad design call Sep 11 18:27:39 espicailly since most thumbs can't reach across some of the screen sizes Sep 11 18:27:43 hi, to storage a Date value into a SQLite database, which datatype do I need, please ? Sep 11 18:27:45 lasserix: i like the way https://github.com/jakiestfu/Snap.js lets you open the menu by swiping from left to right as well as right to left (in addition to the menu icon).. this way the user can just make a lazy thumb movement from where he or she would normally hold the phone Sep 11 18:27:58 xar String ? Sep 11 18:28:01 :) Sep 11 18:28:14 I think they are all Strings in SQLite anyways Sep 11 18:28:17 StingRay_, isn't INTEGER ? Sep 11 18:28:37 you can call it that, but you can also store a word in a field that has INTEGER type Sep 11 18:28:39 in sql Sep 11 18:28:44 ooops, in sqlite Sep 11 18:28:49 franko yeah that is nice Sep 11 18:29:02 but if you want to do ordering then yeah, integer Sep 11 18:29:33 xar: i believe you can pass int to a constructor of Date (epoch time or something) to get a data value from millisecond long Sep 11 18:29:47 so you can store it as a long and as a string Sep 11 18:29:54 or just one Sep 11 18:30:06 but i think it is harder to go from string -> int for ordering Sep 11 18:30:47 is there any official / unofficial affordance for right hand side nav drawer ? Sep 11 18:31:08 g00s my app has left/right handed setups Sep 11 18:31:10 violators will be electrocuted to death! Sep 11 18:31:20 that among many other things switches the drawer Sep 11 18:31:59 well, i mean i'm already using left and that has a hamburger, but what about the right Sep 11 18:32:11 seems hanburgers should be everywhere Sep 11 18:32:26 *hamburgers (preferably with cheddar & bacon) Sep 11 18:32:53 is hamburger a code word for idiot-proof-UI-button? Sep 11 18:32:57 *UI-menu-button Sep 11 18:33:13 what’s the best way to create an rx observable for an anonymous function? Sep 11 18:33:34 designing a UI is difficult Sep 11 18:33:44 g00s I think like most people that are programmers, you look for convention to follow, thats not designing out of a problem, thats just not wanting to Sep 11 18:34:01 on one hand I want to try out the fancy app drawer on the left Sep 11 18:34:13 but I don't think this app really requires one Sep 11 18:34:35 UI's should not look the same, should not function the same and should not be sytled the say and have the same conventions, they should be "designed" Sep 11 18:34:45 RustyShackleford: "you don't think" I think is the keyword here Sep 11 18:34:53 style'd* Sep 11 18:35:14 StingRay_ you disagree with every seminal book / work i've read in UI / HCI over the past 20 years Sep 11 18:35:22 sorry, but .. no Sep 11 18:35:26 gut feeling is very important as in 99% of the cases it's the first design that is the most correct -- despite any iterations that may follow, it always tends to reflect back on the very first decision made -- the gut feeling Sep 11 18:35:42 no, I just think that a primary focus of an app ui is not system conformity Sep 11 18:35:49 is the nav drawer supposed to be used in place of a menu key? Sep 11 18:36:02 sorry i dont mean to be preachy Sep 11 18:36:15 well, similar anyway Sep 11 18:36:18 as a designer, I feel it's about the use/user g00s Sep 11 18:36:31 StingRay_ if your UI looks differently than anything else, people have to think Sep 11 18:36:32 StingRay_: as an engineer I almost completely disagree :P Sep 11 18:36:39 people don't like to think Sep 11 18:36:42 like bob marley said, it's a natural mystic blowing through the air! Sep 11 18:36:45 i’ll weigh in on this conversation… i don’t like drawer menus, but if you have to use one, use a hamburger icon Sep 11 18:36:54 g00s think ? you are assuming that Sep 11 18:36:56 StingRay_: but there's lots of wants to do a thing Sep 11 18:37:06 StingRay_: wow, autotype. lots of WAYS to do a thing. Sep 11 18:37:08 also, i don't trust designers for UI unless they specifically have training / education in UI , usability, HCI Sep 11 18:37:10 g00s the point would be to make them think less, and need less effort Sep 11 18:37:13 and information architecture Sep 11 18:37:27 most designers know more about color theory, grids than designing interactions Sep 11 18:37:31 g00s: i dont trust them unless they've made an app with more than 10 million users :P Sep 11 18:37:34 g00s: i think people don't like to think because designers have made them that way as a result of follow-the-flock convention Sep 11 18:37:35 so i don't list to them much ;) Sep 11 18:37:49 I can tell you on our products I care about clarity and consistency. If the apps don't all behave and look the same, it ain't gonna fly. Sep 11 18:38:40 That doesn't mean some third party app can't do something innovative Sep 11 18:38:40 exactly Sep 11 18:38:42 why am i seeing Google Play services out of date. Requires 5208000 but found 5089038 in the logs but the SDK Manager says my Google Play Services is up to date? Sep 11 18:39:15 i mean - timely is an awesome alarm clock with a whole new UX design. But it also hasn't really gone anywhere beyond timely, and most people don't care about it just because of the UI Sep 11 18:39:23 dcope you need to use less version Sep 11 18:39:38 is it possible to remove created postDelayed handler? Sep 11 18:39:46 yeah Sep 11 18:39:49 g00s better to look at any other industry and what is done there… you can see what works and what doesn't Sep 11 18:39:53 removeCallback(runnable) Sep 11 18:40:03 day: handler.removeCallback(whatever you made) Sep 11 18:40:11 ty Sep 11 18:40:35 day: Won't work w/ nameless instantiations (whatever java calls them, it's not quite lambda), so you'll need to keep your runnable object somewhere as a reference to cancel it Sep 11 18:40:36 StingRay_ yeah, works great when dahsboards across cars are all different Sep 11 18:40:55 one guy puts the steering wheel on the top, the other on the bottom Sep 11 18:41:07 lets switch brakes and gas JUST FOR STYLE Sep 11 18:41:16 g00s now you are being sarcastic and unrealistic :) Sep 11 18:41:22 day: ie, postDelayed(new Runnable(..)), you won't know the object reference to your new runnable so you can't cancel it, but Runnable r = new Runnable(...){...}; postDelayed(r) Sep 11 18:41:34 StingRay_ well you did say, other industry ;) Sep 11 18:42:11 yeah not a sub product of a product and then go all bat sh*t crazy on the example ;) Sep 11 18:42:37 cars are fine to use as an example, or applications on a PC etc antyhing like that Sep 11 18:47:32 can you use picasso’s fit() and centercrop() methods if you already have a bitmap? Sep 11 18:47:40 no Sep 11 18:47:54 i think i’ll make a PR Sep 11 18:48:01 for loading a frame of a video Sep 11 18:48:08 because the thumbnail generation right now built into picasso takes it from the middle Sep 11 18:48:42 how would that even work Sep 11 18:49:05 Bitmap frameAtTime = mediaMetadataRetriever.getFrameAtTime(time, MediaMetadataRetriever.OPTION_NEXT_SYNC); Sep 11 18:49:43 not techincally, the API Sep 11 18:49:47 right now it uses MediaStore.Video.Thumbnails Sep 11 18:49:57 http://developer.android.com/reference/android/provider/MediaStore.Video.Thumbnails.html#getThumbnail(android.content.ContentResolver, long, long, int, android.graphics.BitmapFactory.Options) Sep 11 18:50:45 https://github.com/square/picasso/pull/413 Sep 11 18:51:26 JacobTabak: you could also consider subclassing listview and handling row-recycling there to prevent it from nuking a row out from under a video surface Sep 11 18:51:39 JacobTabak: I'm not 100% on the mechanisms it uses to do so, but that might get you where you need to be Sep 11 18:51:52 dragorn: thanks to your suggestion i found this api Sep 11 18:51:57 to load a frame from a video w/o preparing it Sep 11 18:52:00 so i think that will help a lot Sep 11 18:55:07 but to answer your question JakeWharton about how it would work, Picasso.load(uri, position) Sep 11 18:56:13 i realize it would be ambiguous because you could specify a position for a non-video URI Sep 11 18:59:35 is there a reason you can’t load a bitmap with picasso? i mean i understand its already loaded, but i want to leverage the resizing/fading and make it consistent with my other images Sep 11 18:59:52 it wouldn't fade if it's already loaded Sep 11 19:00:11 oh interesting Sep 11 19:00:21 i guess really the only solution to get this to work the way i want is to fork Sep 11 19:00:48 i’ll take the time to write the tests and stuff if it’s something you’d consider merging the video position PR Sep 11 19:04:06 hiya Sep 11 19:04:21 i need to dicuss a design pattern about using viewpagers Sep 11 19:04:25 can someone help please? Sep 11 19:04:49 i don't like the API Sep 11 19:05:06 are you talking to me JakeWharton? Sep 11 19:07:15 JakeWharton: the proposed load(uri, position) API? or the underlying android API? Sep 11 19:07:47 hey all X) Sep 11 19:07:52 o/ Sep 11 19:08:07 I'm dying here. Still on this ViewPager with a FrameLayout thing. I made a new project. I dynamically create a ViewPager, I create a FrameLayout and add a Button to the frame. I add the frame to the pager. Run. The frame has a size of 0, 0. Sep 11 19:08:17 i am loading http content from a serviceintent, how do ensure that the fragments in the view pager get it? the servicei s being called from the mainactivity Sep 11 19:08:33 i am dying here too :( Sep 11 19:08:36 practically dead Sep 11 19:10:03 MikeWallaceDev: when are you getting the size? Sep 11 19:10:12 the size doesn't immediatly return the correct value, it has to layout first Sep 11 19:10:16 JacobTabak: proposed API Sep 11 19:10:25 I'm getting the size in HierarchyViewer Sep 11 19:10:47 MikeWallaceDev: does the button have any text? Sep 11 19:10:52 yep Sep 11 19:10:56 JakeWharton: any ideas on how to improve? Sep 11 19:10:57 "Text" :D Sep 11 19:11:36 MikeWallaceDev: can i see your instantiateitem method in viewpager? Sep 11 19:11:45 No Sep 11 19:11:45 :D Sep 11 19:11:53 yeah, I was just going to paste bin it Sep 11 19:12:09 and by viewpager i mean pageradapter of course Sep 11 19:12:32 http://pastebin.com/q2j4xE67 Sep 11 19:12:35 androidji: usually you can use a singelton , dump the values in the singleton from the intentservice, then call some function that callbacks into the fragment/activity that causes the fragment viewpager to invalidate Sep 11 19:13:01 androidji: or you can use a handler from your intentservice to do the callback passing the data as an obj in the message you send through the handler Sep 11 19:14:07 JacobTabak, of course I tried a few things before banging my head on the desk, the code might look a little weird... Sep 11 19:14:22 (like the 200, 200) Sep 11 19:14:38 MikeWallaceDev: what about the pageradapter instantiateitem method? Sep 11 19:15:36 Ok, that's just dumb. I didn't use an adapter (facepalm), I just added them to the pager. Sep 11 19:15:52 amateur question: what is the "thing"..view or whatever, called that appears usually at the bottom of the screen, gives a dialog, and is normally gray? MessageDialog or something? Sep 11 19:15:53 yea you need an adapter :P Sep 11 19:16:06 well... that being said, are you sure JacobTabak ? Sep 11 19:16:17 would you use a listview without an adapter? Sep 11 19:16:21 the views are there, and doing exactly the same thing... Sep 11 19:16:29 it's a test .... Sep 11 19:16:40 fine. I'll write an adapter. Sep 11 19:16:42 you’re using an adapterview as a viewgroup? lol Sep 11 19:16:44 Fine! :D Sep 11 19:16:51 it is a viewgroup Sep 11 19:16:56 so is a listview Sep 11 19:17:10 lasserix, thanks for replying Sep 11 19:17:10 so is an absolutelayout, but you don’t call absolutelayout.addView() lol Sep 11 19:17:34 i am using eventbus, but then there is an event when the download completes, but then the fragments gets created at a different time Sep 11 19:17:48 i am sure this is the not the first time someone has had a problem Sep 11 19:17:48 to change the name of the main layout is it suffisant to only change its label placed into the AndroidManifest ? Because when I did that the app name has changed which was not expected. How to deal with this, please ? Sep 11 19:18:18 androidji: either make sure the fragment is created when the event buss callback occurs, or in the event callback start the fragment creation process, either way passing the data into it Sep 11 19:18:26 xar, go to d.android.com, read from start to finish Sep 11 19:18:35 hey there Sep 11 19:18:35 is it possible to fuk your rom chip Sep 11 19:18:35 by flashing the os to many times Sep 11 19:18:35 in your android phone Sep 11 19:18:35 for example my lg g2 Sep 11 19:18:36 some guy told me if i keep updating cyanogenmod basically on my lg g2 its gonna fuk my rom chip Sep 11 19:18:41 bannnn Sep 11 19:18:50 if you do it the first way, you can just have a field in your fragment - isReady that you set to true in onActivityCreated or something Sep 11 19:19:14 or you can check your viewpager (inside the fragment) is not null or something Sep 11 19:19:14 no ban Sep 11 19:19:15 Zeppelin, #android-root Sep 11 19:19:17 Zeppelin: :D Sep 11 19:19:20 Zeppelin, read topic, gtfo Sep 11 19:19:22 thanks Sep 11 19:19:23 ok Sep 11 19:19:33 pfn you gtfo Sep 11 19:19:38 although probably better to dump the data inside the activity, and have a callback fromthe fragment request the data Sep 11 19:19:38 um Sep 11 19:19:38 no Sep 11 19:19:45 um yes Sep 11 19:19:49 lol Sep 11 19:19:52 if the data is not available, do nothing, then have the vent bus callback push the data Sep 11 19:20:03 need more +o Sep 11 19:20:35 androidji: i say don't put the data inside the fragment (at least not where it resides) because the fragment should simply handle UI not your data backing the UI Sep 11 19:22:09 LOL to gtfo :D Sep 11 19:23:08 Shocker, adapter didn't work. Sep 11 19:25:05 MikeWallaceDev at least now it's a proper test Sep 11 19:25:07 man Sep 11 19:25:16 i want to upgrade my rom chip Sep 11 19:25:23 all i've ever done is write new data to my nvram Sep 11 19:25:27 can someone help me with android studio? i just installed it, created a Hello World app Sep 11 19:25:34 but it says "cannot resolve R" Sep 11 19:25:48 prohobo google can help you if you use the search Sep 11 19:25:49 i tried a few things, like installing some lib packages Sep 11 19:25:50 i wonder if that's how you enable the transmogrifier Sep 11 19:26:02 press alt-enter on tbe problem. Sep 11 19:26:09 stingray_ i tried google a few days ago Sep 11 19:26:12 alt-enter fixes everything Sep 11 19:26:24 sarbs: maybe its the flux compensator Sep 11 19:26:25 prohobo try again Sep 11 19:26:27 prohobo: this is a common issue. See what I said above. The use google. Sep 11 19:26:27 :) Sep 11 19:26:27 check it Sep 11 19:26:51 cleaning and building doesn't work Sep 11 19:26:58 I didnt saay clean and build Sep 11 19:27:11 StingRay_, an Adapter is just a decoupling pattern. You still call addView in instantiateItem... Sep 11 19:27:30 that's what 99% of the answers are Sep 11 19:27:40 on google, stackoverflow Sep 11 19:28:17 post your code to pastebin. Sep 11 19:28:20 prohobo do you know what R is ? Sep 11 19:28:32 nope Sep 11 19:28:35 also ensure you import R. Also do a gradle sync. Sep 11 19:28:37 cause if the answer is no, you should learn, then keep doing that…then eventually you will know stuff Sep 11 19:28:39 something to do with gradle Sep 11 19:29:02 isn't importing R a bad thing? Sep 11 19:29:05 i mean i CAN do that Sep 11 19:29:06 no. Its a sysem created resources file. You dont need to worry about. Its constructed generally from your XML definitions. Sep 11 19:29:18 s/file/class Sep 11 19:29:19 prohobo go learn what R is, and how it works/gen Sep 11 19:29:31 alright Sep 11 19:29:33 then you will have a good understanding of the problem Sep 11 19:29:35 stupid learning Sep 11 19:29:41 also try : "Tools" -> "Android" -> "Sync Project with Gradle Files" Sep 11 19:29:49 yeh that doesn't work either Sep 11 19:29:52 absolute answers at the stage you are at do more harm than good Sep 11 19:30:11 haxe is so much easier Sep 11 19:30:26 in fairness as a noob it is really frustrating when R gets "unsynced". And it is common. Sep 11 19:30:50 prohobo: no it isnt. You just need to do the ground work. We all had to. In no time at all you will love AS. Trust me. Sep 11 19:31:12 yeah i will Sep 11 19:31:19 but you gotta admit, haxe gets rid of all the bloat Sep 11 19:31:25 what bloat? Sep 11 19:31:47 my hello world app has about 50 files Sep 11 19:32:00 what's a haxe? Sep 11 19:32:12 since when does android studio allow you to build with ant? Sep 11 19:32:33 did they add that when it moved to beta? Sep 11 19:32:33 haxe is a multiplatform language Sep 11 19:32:47 comes with libs for android/flash/ios/etc Sep 11 19:32:49 then youve done it wron ;) manifest, a values file for strings, a main class and a layout is about it. Sep 11 19:32:56 obviously project support files. Sep 11 19:32:57 prohobo use that then Sep 11 19:33:19 rgr, im using the automagically generated that android studio made for me Sep 11 19:33:26 generated project* Sep 11 19:33:34 but comparing apples to oranges wont help. There IS a leanring curve but I guarentee you wont want to go back to any other Java editor/IDE when you get fluent in IntelliJ/AS. Sep 11 19:33:39 StingRay_: no you! Sep 11 19:33:45 cool Sep 11 19:33:49 you said it was better Sep 11 19:33:52 prohobo: but the ONLY files you need to worry about are limited. Just get stuck in. Sep 11 19:33:58 alright Sep 11 19:34:14 and use the debugged ;) Sep 11 19:34:17 debugger Sep 11 19:39:16 why is it so difficult to open a simple text file in java, compared to python :/ Sep 11 19:39:39 day: Just reading all of it? Sep 11 19:39:50 for example Sep 11 19:40:01 day: just use Xamarin, .NET makes it awesomesly simple File.ReadAllText Sep 11 19:40:03 * xximjasonxx ducks Sep 11 19:40:15 in python i open the file read it and save the content to a variable Sep 11 19:40:20 day: Just write those functions once and forget about them. Sep 11 19:40:39 * xximjasonxx wonders if something like Swift is coming for Android Sep 11 19:40:51 now that people cant complain about Objective-C, I wager Java is next Sep 11 19:40:52 xximjasonxx: Someone spoke about Dart or Kotlin... Sep 11 19:40:59 Dart would be fun Sep 11 19:41:16 maybe theyll use Go just to go all WebOS on us :) Sep 11 19:41:20 day: You can use these for reference: https://gist.github.com/anonymous/2bb593f5254d2b05211f Sep 11 19:41:22 hey guys, anyone face issues w/ proguard and rx-java in release apk? Sep 11 19:41:33 dart wouldn't be fun Sep 11 19:41:42 xximjasonxx: Go is awful. For app-dev anyways... Sep 11 19:41:45 im installing zlib Sep 11 19:41:49 i wonder wha that is Sep 11 19:41:55 Compression. Sep 11 19:41:58 Compression Sep 11 19:42:00 :) Sep 11 19:42:03 :D Sep 11 19:42:29 and problem fixed Sep 11 19:42:31 flan3002: on a serious note, if I could, I would use ONLY Xamarin Sep 11 19:42:41 xximjasonxx: Never tried that. Sep 11 19:42:49 you should :) Sep 11 19:43:34 Dart looks decent... Sep 11 19:43:40 android studio is really resource intensive Sep 11 19:43:44 hey, anyone able to reach the bouncycastle site? particularly anyone outside the US, I'm curious if they're blocking the US due to export laws Sep 11 19:43:46 but i like what it does Sep 11 19:43:51 You don't say, prohobo... Sep 11 19:43:55 prohobo: that is pretty much true for any IDE though Sep 11 19:44:01 no way man Sep 11 19:44:09 Depends on if you consider Vim an IDE. Sep 11 19:44:13 I dont :) Sep 11 19:44:19 It's not. Sep 11 19:44:21 It certainly can be one. Sep 11 19:44:22 its like saying Sublime is an IDE Sep 11 19:44:30 pycharm is very light, flashdevelop, visual studio is even light compared to this Sep 11 19:44:38 vim is great Sep 11 19:44:39 it is a beta :) Sep 11 19:44:41 developing in vim is great, too Sep 11 19:44:52 im not saying it's bad, i mean it's doing a lot like embedding the virtual android Sep 11 19:45:30 some guy on reddit posted saying he wanted to do all his development from the terminal Sep 11 19:45:33 also i love jetbrains <3 Sep 11 19:45:39 android development Sep 11 19:45:41 flan3002: if I gave a talk on Android and I showed a picture of a deceased kitten with the message "this is what happens when you use Eclipse or the Android emulator" would you be more or less inclined to listen :) Sep 11 19:45:44 it depends on what you mean by "IDE", too Sep 11 19:45:50 JetBrains is, right now, my favorite company Sep 11 19:45:51 many people developer from the command line Sep 11 19:45:55 xximjasonxx, sounds dumb Sep 11 19:45:59 MikeWallaceDev_, not for android Sep 11 19:46:04 most people don't know how to develop from the commandline Sep 11 19:46:05 some folks I know say "IDE" means "integrated with the compiler such that it's basically an AST editor" Sep 11 19:46:05 they really know how to make IDE's Sep 11 19:46:06 sure pfn Sep 11 19:46:14 MikeWallaceDev_: i’m sure it would be fun to regenerate resource files manually, lol Sep 11 19:46:20 pfn: what if i dropped the inclusion of Eclipse :) Sep 11 19:46:24 xximjasonxx, doesn't matter Sep 11 19:46:33 pfn: is it the kitten pictures? Sep 11 19:46:54 every thing in Android can be done on the command line Sep 11 19:46:57 eclipse is a monster that needs to be put down Sep 11 19:47:15 its got like 10 heads Sep 11 19:47:28 Especially now with Gradle, it's a snap. Sep 11 19:47:37 I question the sanity of any person who enjoys developing Android with the default Android Emulator and Eclipse Sep 11 19:47:44 haven't you ever had an integration server? Sep 11 19:47:47 what does gradle do in simple terms? Sep 11 19:47:57 package resolution Sep 11 19:48:00 build android projects Sep 11 19:48:03 like nuget or cocoa pods Sep 11 19:48:11 hmm Sep 11 19:48:24 so it's a linker and packager? Sep 11 19:48:32 JacobTabak: which I like, they just need to iron out some of the bugs and get a GUI in front of it Sep 11 19:48:44 though, the newer drops are a lot smoother Sep 11 19:48:54 used to be like 2hr to upgrade while you figure out what was broken with Gradle Sep 11 19:49:27 * xximjasonxx gently pets Genymotion Sep 11 19:49:41 where can you submit bugs for google client-facing apps, in a place where they’ll actually be looked at? Sep 11 19:50:03 android wear crashes non stop when the date is wrong on your phone which unfortunately i have to do a lot for testing Sep 11 19:50:07 annoying! Sep 11 19:50:27 oh wow, android studio does have some bugs Sep 11 19:50:49 i literally clicked on a different tab and tried to edit some text, and it was still editing the previous tab Sep 11 19:50:59 prohobo: its beta.. Sep 11 19:51:09 yep Sep 11 19:51:10 feel free to report them (help -> submit feedback), they will often triage and comment within a few hours Sep 11 19:51:15 if you can reproduce it Sep 11 19:51:17 k Sep 11 19:51:42 why did Twitter bury the link to create apps on the developer portal Sep 11 19:52:20 beta schmeta, it's been out for over a year. You can't hide behind the word 'beta' for ever. Sep 11 19:52:40 they did it with Maps Sep 11 19:52:43 and Mail Sep 11 19:53:01 ohh Sep 11 19:53:13 but it's still bullshit. Sep 11 19:53:15 * xximjasonxx eyes the Windows Azure Active Directory identify support in his Azure Mobile Service Sep 11 19:53:22 i got something to do this weekend Sep 11 19:53:32 its nice how AS tells you how many keystrokes it has saved you Sep 11 19:53:45 it does? I never saw that Sep 11 19:53:54 yea, help->productivity guide Sep 11 19:53:57 ha! I guess it didn't save me keystrokes :D Sep 11 19:54:04 186,400 for me since 6/28/14 Sep 11 19:54:15 JacobTabak: where does it get that number from? Sep 11 19:54:21 saved if i was using Eclipse? Sep 11 19:54:24 or notepad :) Sep 11 19:54:25 no Sep 11 19:54:27 lol Sep 11 19:54:28 oh wow, what a weird place to put that. I never would have clicked on that. Sep 11 19:54:32 and also not saved when you do a major version upgrade Sep 11 19:54:50 there was a blog post about it a while back Sep 11 19:57:22 got a link? i would be curious how they are coming up with that number Sep 11 19:57:35 cause clearly, they are saying you saving keystrokes compared if you were using something eklse Sep 11 19:57:41 i am curious what that something else is Sep 11 19:58:20 anyone know of a good library to do some common animations, like in the DuoLingo and Yahoo News Digest welcome screens Sep 11 19:59:03 theblang: you dont need a library for that Sep 11 19:59:15 they should create a "Hours Wasted" metric for the emulator Sep 11 19:59:33 JacobTabak yeah, I know Android has animation API. Just thought maybe there was a library that had some of the more commons ones already done Sep 11 19:59:41 xximjasonxx have you tried Genymotion? Sep 11 19:59:44 are you talking about the clouds? Sep 11 19:59:46 theblang: yes, i adore it Sep 11 20:00:21 theblang: I am just saying, if they are tracking keystrokes saved in AS, I think they should track hours wasted compared to Genymotion with the Emulator :) Sep 11 20:00:25 JacobTabak I just noticed the clouds, haha. I was actually talking about the enlarge / shrink of the circles at the bottom when sliding through the View Pager Sep 11 20:00:32 xximjasonxx hahaha Sep 11 20:01:12 oh i see theblang Sep 11 20:01:19 might be a cool lib to make Sep 11 20:01:24 viewpagerindicator with animations Sep 11 20:01:28 JacobTabak yeah Sep 11 20:01:38 JacobTabak Ive noticed it in a couple apps, which is what made me think there might be one Sep 11 20:03:12 xximjasonxx get this, my desktop is already virtualized, so I use physical devices for development. sometimes, when a weird issue pops up on a particular OS version I have to use the emulator. You haven't seen pain until you try to use an emulator in an already virtualized environment Sep 11 20:03:33 theblang: funny you should say that Sep 11 20:03:46 I have a fully loaded Mac for work with Parallels for Windows Sep 11 20:04:05 I TRY to do most of my Android dev on the Mac side, but sometimes i have to go to Windows for it (long story) Sep 11 20:04:25 Linux :) Sep 11 20:04:29 Even genymotion has a hard time with it, but its not totally bad Sep 11 20:04:49 MikeWallaceDev_: I went through my Linux phase, I decided to move away from it some years ago Sep 11 20:05:27 You'll never get me back on Windows. God it sucks. I find Linux much easier. Sep 11 20:05:38 MikeWallaceDev_: whatever works for you :) Sep 11 20:05:42 yep :) Sep 11 20:05:55 I've been pure Linux for 7 years now Sep 11 20:05:57 is there a built in way to get notified about DownloadManager updates instead of manually querying it ? Sep 11 20:06:04 actually, we were out at a client site doing some mobile dev work and they had a network problem Sep 11 20:06:09 linux really is easier Sep 11 20:06:09 no more bs Sep 11 20:06:16 just pure self-fail Sep 11 20:06:33 i busted out my Linux skills and helped fix the problem, was pretty simple route tables Sep 11 20:06:54 prohobo: my biggest reason for leaving was time. Back in the day, Linux required a significant time investment compared to Windows Sep 11 20:06:56 MikeWallaceDev_: hows your pageradapter Sep 11 20:07:08 oh wow, have yall seen this? https://github.com/Trinea/android-open-project/tree/master/English%20Version Sep 11 20:07:19 i have windows on dual boot SSD loaded with games and adobe products Sep 11 20:07:34 prohobo: you couldnt certainly get an amazing environment up in Linux, but it required a certain amount of time Sep 11 20:07:34 hi Sep 11 20:07:36 i rarely log on Sep 11 20:07:37 How do apps, like Reddit Sync, enable a translucent navigation bar and still keep the content above the navigation bar? When enabling a translucent navigation bar it pushes the content down. Sep 11 20:07:53 and, well, i got sick of spending my time doing Linux maint and what not, so I went back to windows Sep 11 20:07:54 JacobTabak, I am backing off for a while, before I whip my monitors through the window Sep 11 20:07:56 its much easier now I hear Sep 11 20:08:00 how should I set ImageView to show animating drawable? Sep 11 20:08:04 yar i understand xximjasonxx Sep 11 20:08:08 but I am too invested in Windows and Mac to go back Sep 11 20:08:11 im using noob linux, ubuntu Sep 11 20:08:12 JacobTabak, oh, you didn't hear I guess. Didn't work. Sep 11 20:08:17 oh Sep 11 20:08:28 surf2b1: navigation bar, you mean at the bottom right? Sep 11 20:08:35 JacobTabak: yeah Sep 11 20:08:39 ubuntu makes a nice trade-off imo Sep 11 20:08:46 its even nicer looking than windows Sep 11 20:08:52 prohobo try mint Sep 11 20:08:58 and is there a way to make downloadmanager not show files in the Downloads app? Sep 11 20:09:02 prohobo: i downloaded it a few years ago, really has made Linux easier Sep 11 20:09:03 I'm just installed Fedora, I'm loving it. It's my new go to distro Sep 11 20:09:04 im fine with ubuntu for now:P Sep 11 20:09:18 surf2b1: are you running L? Sep 11 20:09:23 I work as developer for a company. Asked for a git server to sys admin. Called me 'Come here, I've installed git!'. MFW I saw GitHub client on Windows desktop. Sep 11 20:09:23 surf2b1: on reddit sync my navigation bar is back Sep 11 20:09:26 Fedora is the sshiznit Sep 11 20:09:28 black* Sep 11 20:09:30 The app shows the content below the nav bar and when you scroll to the bottom it hits the top of the nav bar. Sep 11 20:09:30 but, like I said, I am so invested in Windows and Mac that I dont even consider going back, plus, I have it working incredibly well for me Sep 11 20:09:37 JacobTabak: No, KitKat Sep 11 20:09:55 well, navigation bar is black for me Sep 11 20:10:05 or are you referring to a certain screen? Sep 11 20:11:06 why does my mole have a scab Sep 11 20:11:10 surf2b1, this is documented... Sep 11 20:11:40 gdrc: thats moderately funny Sep 11 20:12:10 JacobTabak: let me take a screenshot. hold Sep 11 20:12:13 JacobTabak: I'd say sadly Sep 11 20:12:47 surf2b1, set the themes Sep 11 20:12:53 true Sep 11 20:12:53 true Sep 11 20:13:17 he didn’t ask how to make it translucent… hear him out Sep 11 20:13:37 https://lh4.googleusercontent.com/-KnWkr4Wgz1Q/U-LF36bMcwI/AAAAAAAALUU/a-c0VBcJgMM/w334-h593-no/14%2B-%2B1 Sep 11 20:13:38 you mean like that? Sep 11 20:13:41 pfn: I know how to do that. Just when doing so you usually set fitsSystemWindow to true, but that pushes your content above and below the nav and status bar Sep 11 20:13:48 don't set fitsSystemWindow Sep 11 20:13:52 ... Sep 11 20:13:56 sounds easy enough Sep 11 20:15:16 http://i.imgur.com/Ko0XUL4.png Sep 11 20:15:28 http://i.imgur.com/F85ERug.png Sep 11 20:16:07 so... what's the problem Sep 11 20:16:12 pfn: If I don't set fitsSystemWindow="true" then the content is above the navbar. I want it below. And then when scrolling to the bottom (see second screenshot) it comes right above the navbar Sep 11 20:16:30 surf2b1, again, this is documented Sep 11 20:16:34 * if I do set fitsSystemWindow="true" Sep 11 20:16:35 set padding top and padding bottom Sep 11 20:16:38 JacobTabak this is neat https://github.com/daimajia/AndroidViewAnimations Sep 11 20:16:44 if in a listview, setClipToPadding(false) Sep 11 20:16:46 done Sep 11 20:16:47 how would I know how much padding to set Sep 11 20:16:53 hey, anyone ever had success playing an rtsp uri thru a VideoView? Sep 11 20:16:53 again, this is documented Sep 11 20:17:05 xximjasonxx i think lots of people go through that phase (linux). i had redhat, gentoo, ubuntu but spent too much time with it. in some ways, Mac is liberating in that there isn't much to customize; don't like the font? tough shit (live with it) so there is no use :) Sep 11 20:17:12 google "detect action bar size" "detect status bar size" "detect nav bar size" Sep 11 20:17:33 actually, any scrolling view, setClipToPadding(false) Sep 11 20:17:43 xximjasonxx but i'm curious why you had to split your development between mac and vm ? Sep 11 20:18:04 pfn: Just tested, it didn't work Sep 11 20:18:21 g00s: its a bit of a story Sep 11 20:18:28 but it does work Sep 11 20:18:33 but if you insists that it doesn't, have fun Sep 11 20:18:41 g00s: Or, just use ArchLinux Sep 11 20:18:56 what it really comes down to is, you cannot run genymotion and parallels at the same time Sep 11 20:19:01 i tried that, sabayon, suse, etc Sep 11 20:19:03 Yay, for Arch! Sep 11 20:19:29 xximjasonxx orly, thats interesting Sep 11 20:19:52 theblang: those animations looks trivial enough to define in XML, not sure i’d want a lib for that Sep 11 20:19:57 so, the case arises that if I am focusing on the Windows Phone portion of a cross platform Xamarin app, I may want to run Android for comparison Sep 11 20:20:11 so I might run genymotion on the windows side (within parallels) Sep 11 20:20:26 JacobTabak yeah, I think im going to try to do the circle pulse on ViewPager change myself Sep 11 20:20:28 since I can do Xamarin Android dev (or any Android dev) independant of the platform Sep 11 20:20:34 xximjasonxx so is it more that you can't run parallels with another vm like virtualbox or vmware ? Sep 11 20:20:39 yes Sep 11 20:21:05 does it work with the official x86 + haxm + qemu ? Sep 11 20:21:14 xximjasonxx: Lack of memory? Processing power? Sep 11 20:21:21 tensa_zangetsu: absolutely not Sep 11 20:21:30 this is probably the top of line MBP you can buy Sep 11 20:21:31 xximjasonxx: Or some conflict between them? Sep 11 20:21:34 conflict Sep 11 20:21:43 if I start parallels, Geny just shuts down Sep 11 20:22:04 Well, MBP is still a laptop - doesn't compare to desktop CPU power Sep 11 20:22:15 I see Sep 11 20:22:16 tensa_zangetsu sounds more like a kext conflict or something Sep 11 20:22:16 this is pretty high end Sep 11 20:22:29 Any logs you can check? Sep 11 20:22:32 Error messages? Sep 11 20:22:38 give me a second Sep 11 20:22:48 xximjasonxx and what version of virtualbox ? Sep 11 20:22:52 latest Sep 11 20:22:59 4.3.16 ? Sep 11 20:23:02 4.6.12 i think Sep 11 20:23:14 yeah, i just redownloaded the other day Sep 11 20:23:24 wow :( Sep 11 20:23:25 ok so i just started up genymotion Sep 11 20:23:54 guys - naming convention question - do you think this name is ridiculous for a method or do you have other suggestions? startVideoIfNecessary() Sep 11 20:23:58 "An incompatible virtualization application is running" (from genymotion) Sep 11 20:24:15 it looks at a bunch of factors and decides if it should start the video, and its called from multiple places Sep 11 20:24:17 "Dont use you parallels virtual machines until you quit that environment" Sep 11 20:24:47 JacobTabak i don't like it because it violated CQRS Sep 11 20:24:51 g00s: I am on .14 Sep 11 20:24:54 this is a new thing to me Sep 11 20:24:57 but i doubt .16 fixes it Sep 11 20:24:59 cqrs Sep 11 20:25:14 JacobTabak you have a query (if necessary) and a command (start the player) Sep 11 20:25:22 aye, thats why i dont like it Sep 11 20:25:29 so whats the alternative Sep 11 20:25:49 i have several preconditions: checking if its prepared, checking if it’s in the right place on the screen (it scrolls), checking if its not already started Sep 11 20:25:50 split it into if (shouldStartPlater) startPlayar() Sep 11 20:26:10 which will be easier to test Sep 11 20:26:12 yea i guess, but it makes it easy to call startPlayer() without checking htthe preconditions Sep 11 20:26:22 which will cause bugs if other devs dont check the documentation Sep 11 20:26:22 lol if i start genymotion after parallels, it shuts down the parallels environment in favor of itself Sep 11 20:26:23 nice Sep 11 20:26:38 hehe Sep 11 20:27:02 can one put a static ViewPager inside of a dynamic ViewPager? Sep 11 20:27:16 theblang: what do you mean by static in this context Sep 11 20:27:25 JacobTabak set number of tabs / fragments Sep 11 20:27:29 is it possible to access to the sqlite database of an android phone? how, please? Sep 11 20:27:45 theblang: if it’s a fragment viewpager, then yes, you can use the childfragment manager Sep 11 20:27:52 JacobTabak: nevermind, I got it working with setClipToPadding(false). Thank you!! Sep 11 20:27:54 if it’s not… not sure Sep 11 20:27:56 JacobTabak essentially, I have a details page with tabs and a view pager. I would love to be able to implemetn a dynamic view pager to keep the user from pogo sticking Sep 11 20:27:58 xar: there is no "the" sqlite database Sep 11 20:28:00 xar: Each app can store data in an sqlite database, and access it Sep 11 20:28:09 there are likely many databases Sep 11 20:28:10 JacobTabak it is, yeah Sep 11 20:28:15 xar: I don't know if you can access any other app's sqlite data from your own app Sep 11 20:28:30 you can't, unless the app does something stupid :) Sep 11 20:28:38 like make their database world-readable Sep 11 20:28:40 Unless you have root... Sep 11 20:28:42 theblang: you are using tabs with a viewpager? Sep 11 20:28:59 sliding tabs? Sep 11 20:29:16 JacobTabak yeah Sep 11 20:29:33 obviously the tab swiping wont work if your touchevents are absorbed by the child viewpager.. Sep 11 20:30:16 i think that would be a confusing UI Sep 11 20:30:21 theblang: Well, if the child viewpager is like a child view - it won't absorb touch events right? Sep 11 20:31:01 JacobTabak, tensa_zangetsu so my child ViewPager is Custom, and I return false onIntercept and onTouch already. so I think that means it should work okay if I put that inside of another view pager right? Sep 11 20:31:21 JacobTabak, tensa_zangetsu well, it sucks because I think tabs are perfect for what I'm doing on this details page, but I hate that the user has to pogo stick Sep 11 20:31:25 theblang: so it’s a viewpager with swiping disabled? Sep 11 20:31:33 JacobTabak yeah, essentially Sep 11 20:31:38 don’t use a viewpager Sep 11 20:31:40 JacobTabak or not esentially, definitely lol Sep 11 20:31:57 i’ve been meaning to write fragment managing container Sep 11 20:31:58 JacobTabak well, I'm using a library for the tabs which uses a ViewPager Sep 11 20:32:09 sure - but for your other one Sep 11 20:32:12 the child one Sep 11 20:32:16 JacobTabak https://github.com/astuetz/PagerSlidingTabStrip Sep 11 20:32:19 tensa_zangetsu: btw, did they end the manga yet? Sep 11 20:32:25 i heard it was on its last chapter Sep 11 20:32:35 this is insane Sep 11 20:32:40 xximjasonxx: Not last chapter, last story arc Sep 11 20:32:46 xximjasonxx: Not yet ended Sep 11 20:32:53 xximjasonxx: But, things are looking grim Sep 11 20:32:53 yeah thats what i meant Sep 11 20:32:54 close? Sep 11 20:33:00 xximjasonxx: Nope Sep 11 20:33:09 xximjasonxx: Atleast 1.5 years Sep 11 20:33:14 If not 2 Sep 11 20:33:15 honestly wish Naruto had gotten the chop instead Sep 11 20:33:22 so uh... anyone have a cool idea for an app they wanna talk about? Sep 11 20:33:23 Well, Naruto is ending soon Sep 11 20:33:25 I think Sep 11 20:33:34 Let me go dig up this old text document..... Sep 11 20:33:34 tensa_zangetsu: I dont know where else they could go Sep 11 20:33:36 pretty sure there’s a channel for this discussion, but its not here Sep 11 20:33:38 i'd love to provide feedback and won't steal the idea at all Sep 11 20:33:51 JacobTabak here is a picture of the details page (https://lh5.ggpht.com/LoqrSLgfd1FOT-fWZDsTl_541kHNqJ5XjWf9vSd64r2YHUAp4zMWDnnC-ft888kKSWg=h900-rw) Sep 11 20:34:12 JacobTabak on one hand, I see how it might be a bad idea to implement a parent ViewPager since swiping often changes between tabs. on the other hand, I' Sep 11 20:34:19 theblang: so i see the tabs, where’s the 2nd viewpager? Sep 11 20:34:22 JacobTabak I'd love for the user to be able to not have to pogo stick Sep 11 20:34:26 JacobTabak not implemented yet Sep 11 20:34:31 what do you mean by pogo stick Sep 11 20:34:44 JacobTabak go back to list page, then forward to details, back to list page, then forward to details Sep 11 20:34:54 JacobTabak so swipe would take you to the next details page instead of changing tabs Sep 11 20:35:00 maybe you should just use reglar tabs Sep 11 20:35:07 regular Sep 11 20:35:16 you don’t want to confuse your user with 2 swipe animations that do different things Sep 11 20:35:25 tensa_zangetsu, can i see consult the database related to the app that i'm currently developping, please ? Sep 11 20:35:29 JacobTabak right, so currently the user can't swipe between the tabs. that is already done Sep 11 20:35:35 so why are you using this library? Sep 11 20:35:52 does it animate the views when you click a tab? Sep 11 20:36:03 if so, that will confuse the user because the animation suggests they can do it themselves by swiping Sep 11 20:36:23 JacobTabak hmmm, it does. good point Sep 11 20:36:25 theblang: Perhaps, the swipe gesture for switching to next job post can be on the title (where 'Details' and 'Map' are present) Sep 11 20:36:38 tensa_zangetsu: thats what he wants i believe Sep 11 20:36:39 That way, it's clear that you're changing the job post as a whole Sep 11 20:36:55 my official recommendation is drop the sliding tabs and just use normal ones :) Sep 11 20:37:21 tensa_zangetsu, JacobTabak so a TabHost? Sep 11 20:37:28 no!! Sep 11 20:37:29 lol Sep 11 20:37:31 who uses those Sep 11 20:37:43 those are so 2008 Sep 11 20:38:14 use actionbar tabs Sep 11 20:38:23 or custom buttons that just swap fragments Sep 11 20:38:59 JacobTabak ahh, yes. Now I remember. I had originally done action bar tabs, but I wanted them to be below the action bar, so that is why I switched to that library Sep 11 20:39:19 they would be below the action bar except in landscape/tablets Sep 11 20:39:27 but that design exists for a reason… saves space! Sep 11 20:39:31 and users are familiar with it Sep 11 20:39:34 xar: What are you developing? Sep 11 20:40:46 yeah generally dont go against the ui conventions Sep 11 20:41:04 it breaks user familiarity Sep 11 20:41:05 tensa_zangetsu, i'm learning android, a little app for managing data. Sep 11 20:41:14 JacobTabak You know, now I think I'm remember not doing that because I wanted to have a SearchView there, but that idea was scrapped, so I can probably revisit and do the action bar tabs Sep 11 20:41:24 cool Sep 11 20:41:26 is it bad design to create a listview item that has a reference to its parent listview? Sep 11 20:41:43 why does it need the reference? Sep 11 20:41:47 whats the use case Sep 11 20:42:13 it needs to know whether or not it’s in the exact center Sep 11 20:42:31 oh, idea -> i’ll just add it as a paremeter to onScroll Sep 11 20:42:33 thats interesting Sep 11 20:42:46 tensa_zangetsu, so ? Sep 11 20:43:06 hm, actually it needs to know in other places too Sep 11 20:43:16 i dont like this architecture Sep 11 20:43:21 lol Sep 11 20:43:32 why does the listview item need to know if its in the center? Sep 11 20:43:43 auto plays a videoview in the listview item lol Sep 11 20:43:54 uh Sep 11 20:43:55 which means it also needs to know about activity onpause, onresume Sep 11 20:44:24 you have videoviews in a listview? or when you click on the item and say open its detail Sep 11 20:44:33 its in the listview Sep 11 20:44:35 like instagram/facebook Sep 11 20:44:37 ah Sep 11 20:44:39 auto plays videos in your feed Sep 11 20:44:52 its a mess Sep 11 20:44:55 has anyone gotten Picasso to load an image from an expansion file? Sep 11 20:44:56 welcome tol android Sep 11 20:44:59 to* Sep 11 20:45:06 xar: I don't really have 'innovative' app ideas - more like a wish list of apps that I want Sep 11 20:45:11 been here a long long time, but never have had to do anything like this Sep 11 20:45:31 Mostly desktop programs/utilities/tools that might be useful for mobile devices Sep 11 20:45:34 http://pastebin.com/pK1xDGu5 Sep 11 20:46:11 zambo: it can load files by URI, so it shouldn’t be an issue, but i haven’t tried it Sep 11 20:47:01 oh i lied https://github.com/square/picasso/issues/447 Sep 11 20:52:59 Already 133 views on that list Sep 11 20:53:09 How many people use pastebin?! Sep 11 20:54:45 correct me if i’m wrong, but it looks like you can’t override a requesthandler in picasso. the bitmaphunter iterates over the collection of requesthandlers in order, starting with the default ones, and once it finds a requesthandler that can handle the request, it disregards all user supplied requesthandlers? cc JakeWharton Sep 11 20:54:56 yes Sep 11 20:55:06 bummer Sep 11 20:55:12 i was going to just make a custom request handler Sep 11 20:55:29 is that intended or just a case that was never considered? Sep 11 20:57:32 what are you trying to do Sep 11 20:57:48 Wow, didn't know about Picasso before today Sep 11 20:57:51 Nice! Sep 11 20:58:05 lol Sep 11 20:58:41 I did mean the Android library that JacobTabak was talking about, not the artist Sep 11 20:59:05 JakeWharton: I’m trying to make a custom request handler to load the first frame of a video for the preview Sep 11 20:59:23 but i can’t override the default MediaStoreRequestHandler Sep 11 20:59:38 yeah ours shoudl be last Sep 11 20:59:47 send a PR, or file an issue Sep 11 20:59:51 on it Sep 11 21:07:47 any reason why picasso.ContentStreamRequestHandler and and picasso.MediaStoreRequestHandler aren’t public? Sep 11 21:07:54 because they are implementation details Sep 11 21:08:07 want to extend them :| Sep 11 21:12:35 If I implement a downloader that reads from the expansion file stream, will picasso handle image caching? Sep 11 21:12:43 yes Sep 11 21:12:59 i’m kind of irked that htis is so hard Sep 11 21:13:13 i have to copy/paste all this stuff from the 2 base classes Sep 11 21:13:20 should a nexus 7 be able to use immersive mode? i set the flag but the buttons are still there as dots Sep 11 21:13:35 looks like low profile Sep 11 21:14:01 oh, sorry nevermind Sep 11 21:14:06 i didn’t read the whole article Sep 11 21:17:16 JakeWharton, do you accept bug reports for robolectric? :) Sep 11 21:17:24 i don't Sep 11 21:17:27 the GitHub repo does Sep 11 21:17:28 :( Sep 11 21:17:37 * canadiancow needs to learn how to use github Sep 11 21:18:52 im going to submit an issue about the visibility of these classes, even the helper methods in the public class RequestHandler aren’t public, like requiresInSampleSize,calculateInSampleSize Sep 11 21:19:20 so basically you have to reinvent the wheel if you try to implement your own requesthandler Sep 11 21:19:38 no, you don't. you just return an InputStream and we'll take care of everything Sep 11 21:20:11 but look how much code is required to do that in mediastorerequesthandler Sep 11 21:20:26 don't have the time Sep 11 21:20:42 making everything public is the worst thing we could do Sep 11 21:21:18 hardly the worst, but i’ll take your word for it Sep 11 21:22:09 as the person who has to deal with API stability, it would be Sep 11 21:22:24 we care deeply about why you want to do something Sep 11 21:22:28 not the how you want to do it Sep 11 21:22:31 indeed Sep 11 21:22:48 i'm confident we can fix this for you, but i'm not going to jump to the how just yet Sep 11 21:23:08 the RequestHandler feature is very new and not well exercised Sep 11 21:23:17 i think i can implement requesthandler without these base classes, Sep 11 21:23:19 i was just thrown off Sep 11 21:23:22 that i couldn’t just extend it Sep 11 21:24:11 the whole point of RequestHandler was to let us do less Sep 11 21:24:22 so file an issue with what you want to do and include at least one sentence of why you are trying to do it Sep 11 21:25:23 yeah, my bad, i was trying to take a shortcut and copy the implementation and just override 1 method, but it shouldn’t be much more work to just do it myself given the interface Sep 11 21:27:09 i see android app development. is this the right place for cwm dev help? Sep 11 21:27:13 do people generally unpack everything from an apk expansion file and put it in the application storage directory? Sep 11 21:27:18 lgrootnoob: no Sep 11 21:27:39 bankai_au: Ok thank you, can you please guide me to where i ned to be? Sep 11 21:27:50 #android-root or something... no idea Sep 11 21:28:21 better forums or email them Sep 11 21:28:21 ok, i will try that. Sep 11 21:29:36 I've written an application, with the main interface in the MainActivity Sep 11 21:29:50 I now want to add a welcoming screen that the user has to swipe away first Sep 11 21:29:56 how should I do this? Sep 11 21:30:01 lgrootnoob #cyanogenmod-dev would be closer, but CWM isn't directly related to CM Sep 11 21:30:15 I would make the welcoming screen.. another activity? Sep 11 21:30:20 a fragment? Sep 11 21:30:52 welcome screen? why ? :( Sep 11 21:31:17 bankai_au: hey I agree with you. but the client resquests it.. Sep 11 21:31:21 requests also Sep 11 21:31:24 you poor thing :( Sep 11 21:32:00 If I translate an ImageView to 50%p ( android:toXDelta = "50%p" ) the new position is 50% width *plus* the width of the view Sep 11 21:32:58 so I have to take programatically the width of the view and remove it from the 50% Sep 11 21:33:18 or there is another way so I don't have to delete my translate xml file ? Sep 11 21:33:46 JohnFlux: you could make a full screen 'main' activity as your splash, then have that start the 'real' activity after x seconds Sep 11 21:33:50 thems' fightin' words ;p Sep 11 21:33:55 oops Sep 11 21:34:12 bankai_au: thanks Sep 11 21:34:55 JohnFlux: just be mindful of screen rotation during that timeout period Sep 11 21:35:16 bankai_au: hmm, what could go wrong? Sep 11 21:35:27 bankai_au: oh, because the timeout would restart? Sep 11 21:35:29 hi guys, I am looking for some tool which would help me with market research of existing apps. Ideally something which pulls eixisting revies of app and do some analysis Sep 11 21:35:34 JohnFlux: yeah Sep 11 21:35:37 bankai_au: got ya Sep 11 21:36:01 Trudko: I found a few different APIs to query the google play store Sep 11 21:36:06 Trudko: and get app review data Sep 11 21:36:09 hey all, AsyncTaskLoader, if I have it loading a cursor and register a content observer and it changes before the initial load, whats a good practice for handling that? Sep 11 21:36:15 Trudko: include number of downloads etc Sep 11 21:36:34 can you think about any in particular which you had good experience? Sep 11 21:37:02 Trudko: I didn't test them out Sep 11 21:37:12 Ou I see ok :) Sep 11 21:37:38 Is there a way to subtract the view's width from the xml ? Sep 11 21:39:27 gottaGO: what are you trying to achieve? Sep 11 21:39:41 gottaGO: usually you just need to shift your thoughts arounds :) Sep 11 21:39:45 around Sep 11 21:40:57 anyone have a favorite book on android development? Sep 11 21:41:19 android-root guy told me to go back here Sep 11 21:41:20 JohnFlux, hmmm..just move an imageview so the center of the imageview will be at 50% layout width Sep 11 21:41:32 Vogella tutorials are pretty good Sep 11 21:41:42 not a book but online free - DadFoundMy Sep 11 21:42:13 tricknology: thanks ill check it out. my CS teacher gave me one from samsTeach Yourself. anyone hear of it Sep 11 21:42:51 Nah I never used any books Sep 11 21:42:56 just online tuts Sep 11 21:43:32 gottaGO isn't that just centring it ? based on parent, using gravity or something ? Sep 11 21:43:52 gravity center Sep 11 21:44:09 well that depends on parent but yeah Sep 11 21:44:15 android:layout_centerHorizontal Sep 11 21:44:15 let me check with gravity Sep 11 21:44:22 in manifest Sep 11 21:44:40 err layout.xml Sep 11 21:45:06 gottaGO ok well if it's in a linearLayout, gravity will work on the unconstrained axis… so if it's vertical yes you can center horizontal Sep 11 21:45:28 but obviously if the layout orientation is horizontal, you cant Sep 11 21:46:02 gottaGO: the way I do it would be like: Sep 11 21:46:06 you sure you didn’t specify some padding in there somewhere? Sep 11 21:46:14 gottaGO? Sep 11 21:46:29 gottaGO: and all three have a layout_width="0dp" Sep 11 21:46:31 JohnFlux you would really use 2 padding views ? Sep 11 21:46:33 no padding Sep 11 21:46:38 StingRay_: I don't know of a better way Sep 11 21:46:43 course not.. too easy Sep 11 21:46:45 StingRay_: I'm happy to be informed :) Sep 11 21:46:48 that seems wastey Sep 11 21:46:56 StingRay_: compared to what? Sep 11 21:47:12 well… depends on parent like I said Sep 11 21:47:31 but there would be no need to use extra views on any of them Sep 11 21:47:36 oh Sep 11 21:47:39 I misread what he wanted Sep 11 21:47:43 he just wants it centered? Sep 11 21:47:49 I thought he wanted the width to be 50% wide Sep 11 21:47:58 yeah but its inside another view Sep 11 21:48:00 then yeah, use gravity Sep 11 21:48:09 if it's a vertical layout Sep 11 21:48:20 what StingRay_ said :) Sep 11 21:48:49 If I translate an ImageView to 50%p ( android:toXDelta = "50%p" ) the new position is 50% width *plus* the width of the view Sep 11 21:49:00 was his question Sep 11 21:49:17 you sure thats not a statement ? Sep 11 21:49:19 :) Sep 11 21:49:26 lol Sep 11 21:50:02 It's from 0% to 50% ( android:fromXDelta="0%p" android:toXDelta="50%p" ) if I use gravity then it starts from the center and ends to 100% Sep 11 21:50:43 I need somehting like 50% - ( views_width /2 ) to be the end Sep 11 21:51:28 now I understand Sep 11 21:51:33 so I better delete the xml file and do it programmatically so I can get the width value Sep 11 21:51:49 you want to animate the view from 0,0 so that the center of the image is in the center of the screen Sep 11 21:51:50 yeap - I was just saying if the width/2 can have it on the xml Sep 11 21:52:00 exactly StingRay_ :) Sep 11 21:52:01 so yeah, I would do that in code Sep 11 21:52:29 if code is the answer then .. code :p Sep 11 21:52:38 thank you all Sep 11 21:52:50 well, not a fan of any xml stuff personally… so I maybe bias Sep 11 21:52:52 :) Sep 11 21:53:21 StingRay_: wat Sep 11 21:53:27 StingRay_: you dont like declarative layouts? Sep 11 21:53:44 i wish everything was declarative Sep 11 21:53:59 JacobTabak: amen :) Sep 11 21:54:06 why would people do this Sep 11 21:54:07 ffs Sep 11 21:54:13 boolean is 0 or 1 Sep 11 21:54:20 boolean mainVersion = this.getIntent().getIntExtra("mainVersion", 1) > 0 ? true : false; Sep 11 21:55:16 I have some references that are static and may hold a reference to a context. I cannot remove these static references: I cannot remove these static references. I thought I could clear them in onDestroy, but since that's no always gaurenteed to be called what can i do? Sep 11 21:55:48 Remove the static references Sep 11 21:56:05 Remove them twice Sep 11 21:56:09 and dont ever let them come back Sep 11 21:56:57 lasserix: but really, you must do all your cleanup in onpause Sep 11 21:57:05 but ffs dont hold static references Sep 11 21:58:02 can we talk about why you need a static reference Sep 11 21:58:43 Instead, just inject a StaticReferenceDereferencerFactoryBuilder Sep 11 22:01:55 hello all Sep 11 22:01:57 FFS I am going to start kicking github people into the goddamn well Sep 11 22:02:00 hi esulu Sep 11 22:02:09 in android studio i have this problem Sep 11 22:02:10 http://pastebin.com/mX4UCKcz Sep 11 22:02:13 and generally everyone Sep 11 22:02:39 i can't run it on emulator , my program is very easy but can't undrestand why not work Sep 11 22:02:52 suggestion read the error Sep 11 22:03:28 esulu: what's your target sdk version? Sep 11 22:03:45 I mean, targetSdkVersion in android manifest and gradle file Sep 11 22:04:13 Also esulu I'm not helping over pm Sep 11 22:04:32 I give up. Sep 11 22:04:35 it's perfectly ok here Sep 11 22:04:48 Agamemnus: why are you going to kick them? Sep 11 22:06:12 Well Sep 11 22:06:14 One reason: Sep 11 22:06:53 It's totally broken and doesn't support versionCodes above 1. Sep 11 22:06:57 FFS Sep 11 22:07:02 ? Sep 11 22:07:04 github? Sep 11 22:07:16 https://github.com/moust/phonegap-xapkreader/edit/master/src/android/XAPKDownloaderActivity.java Sep 11 22:07:26 but it's not totally his fault Sep 11 22:07:35 priate? Sep 11 22:07:37 private? Sep 11 22:07:45 it's not private Sep 11 22:07:46 private phonegap repo Sep 11 22:07:49 you pasted an edit link Sep 11 22:07:54 ah Sep 11 22:07:55 did i Sep 11 22:08:00 <3 phonegap Sep 11 22:08:00 yeah i just realised Sep 11 22:08:02 would use again Sep 11 22:08:04 yeah I was going to do a patch Sep 11 22:08:07 https://github.com/moust/phonegap-xapkreader/blob/master/src/android/XAPKDownloaderActivity.java Sep 11 22:08:14 but then I realized how broken everything was Sep 11 22:08:32 explain? Sep 11 22:09:04 also, "mayday" nice error Sep 11 22:12:20 i did Sep 11 22:12:27 actually there is a thread about it in issues Sep 11 22:12:29 true mvc on android is a pain to do :( Sep 11 22:12:35 and i am using a version that is supposed to be fixed Sep 11 22:12:44 how do I change the default activity? Sep 11 22:12:58 JohnFlux: you mean the launch one? Sep 11 22:13:02 Moony22: yes Sep 11 22:13:09 starting* Sep 11 22:13:25 Moony22: ah, using action MAIN ? Sep 11 22:13:31 JohnFlux: you see in your android manifest the activity Sep 11 22:13:34 yes Sep 11 22:13:50 you could either rename that or create a new one with action MAIN and category LAUNCHER Sep 11 22:16:53 is there a way to have av_dump_format print out to logcat? I'm trying to debug an issue I'm having. I was hoping to avoid having to write many logging statements to get this info if I can just redirect the output Sep 11 22:19:23 Moony22: thanks - works nicely :) Sep 11 22:19:34 JohnFlux: your welcome but you answered your own question Sep 11 22:19:43 you're* Sep 11 22:20:24 :) Sep 11 22:21:49 Moony22: can you help me for my problem please Sep 11 22:22:38 esulu: sure what's your problem Sep 11 22:22:59 i write my first program using android studio Sep 11 22:23:18 i have ubuntu Sep 11 22:23:54 did you try googling? Sep 11 22:23:59 when i run my project i can't see my app on my emulator and i see the flowing error pkg: /data/local/tmp/EE.primoappee Sep 11 22:24:01 http://stackoverflow.com/questions/9093709/installation-error-install-failed-older-sdk Sep 11 22:24:03 Failure [INSTALL_FAILED_OLDER_SDK] Sep 11 22:27:33 esulu: refer to ravilovs link Sep 11 22:27:42 also try googling first Sep 11 22:28:04 Moony22: my welcome screen works.. but when I press the back button it goes back to the welcome screen Sep 11 22:28:31 I'm using startActivity to switch from the welcome screen to the main activity Sep 11 22:28:35 JohnFlux: did you create a new activity or just rename it? Sep 11 22:28:41 created a new activity Sep 11 22:28:45 i mean in the manifest? Sep 11 22:29:10 Moony22: I had both activities in the manifest. So I moved the intent-filter from mainactivity to the welcomescreen Sep 11 22:29:16 so I wrote a Downloader for Picasso that reads from the expansion file, but it’s definitely not using any of Picasso’s caching on its own. Sep 11 22:29:19 ok great Sep 11 22:29:33 JohnFlux: so when you click back it goes to mainactivity? Sep 11 22:29:39 zambo: it uses the memory cache Sep 11 22:29:48 request an image twice with the same Uri and parameters and we'll use the cached version Sep 11 22:30:09 I am, the performance is abysmal Sep 11 22:30:52 maybe the image has some do-not-cache headers Sep 11 22:31:01 is this method depercated "Date date = new Date("MMM dd, yyyy");" ? Sep 11 22:31:12 (http headers that is) Sep 11 22:31:13 Moony22: no sorry. It starts with the welcome screen. I click, and it then goes to the main acitivity Sep 11 22:31:31 so what's wrong JohnFlux? Sep 11 22:31:32 it’s a PNG in the expansion file, there are no headers in my request. I’m returning an InputStream. Could the issue be that I haven’t specified the size of the Response object? Sep 11 22:31:50 xar, what does the documentation say? Sep 11 22:32:06 Moony22: then when I'm in the main activity and press back, it goes back to the welcome screen :) Sep 11 22:32:06 ravilov, yes sorry :) Sep 11 22:32:17 Moony22: I think I need to close the welcome screen activity or something Sep 11 22:32:39 JohnFlux: oh i understand you want a splash screen? Sep 11 22:33:01 JohnFlux, have you looked at various intent flags? they're all listed nicely in the docs Sep 11 22:33:12 JohnFlux: it's simple use android:noHistory="true" Sep 11 22:33:22 in your tags for the welcome screen Sep 11 22:34:19 Moony22: thanks :) Sep 11 22:34:30 no problem Sep 11 22:39:17 FUCK ME!!!! Sep 11 22:39:23 I got it. Sep 11 22:39:31 I finally fucking got it. Sep 11 22:39:34 got what Sep 11 22:39:41 MikeWallaceDev_: is it 42? Sep 11 22:39:47 false! Sep 11 22:40:33 I just pushed out a test app w/ retrofit, okhttp, rx-java, give it a spin, leave feedback - thx! https://play.google.com/store/apps/details?id=com.shipit.nextgig Sep 11 22:40:51 JacobTabak, pfn, StingRay_ This was the FUCKING culprit : isViewFromObject() Sep 11 22:41:05 pageradapter power Sep 11 22:41:18 It returned false for my VideoViews Sep 11 22:41:22 MikeWallaceDev_: you're in FragmentStatePagerAdapter? Sep 11 22:41:36 hes in a custom pageradapter implementation Sep 11 22:41:36 no, ViewPager Sep 11 22:42:03 I can't fucking believe this. 2 days. For a true/false. Sep 11 22:42:34 welp Sep 11 22:42:47 i hope my suggestion to implement pageradapter helped P: Sep 11 22:42:50 If I would have just removed all that checking, and simply returned true always, I would have been finished days ago Sep 11 22:43:49 actually, no. Sorry :) The first answer to this did the trick : http://stackoverflow.com/questions/10908041/some-confusion-on-the-method-instantiateitemviewgroup-container-int-position Sep 11 22:44:22 ok well if you looked at the documentation for pageradapter, you’d see the 4 methods you need to implement Sep 11 22:44:30 one of them being isViewFromObject(View, Object) Sep 11 22:44:39 Hi, I'm trying to figure out when the "private-api-stubs" module in platform/frameworks/base/+/master/Android.mk would ever be built. Any ideas? Sep 11 22:45:06 just sayin the answer was in front of you for quite some time :) Sep 11 22:45:20 right, cause I didn't look at that doc in the last 3 days.... Sep 11 22:45:37 is that sarcasm? Sep 11 22:45:59 oops, sorry, I forgot to use the sarcasm font! Sep 11 22:46:40 i’m not being snarky, i just wouldn’t be surprised if you didnt considering you were adding views directly to the viewpager without an adapter… Sep 11 22:47:04 you don't need an adapter... Sep 11 22:48:25 if you say so Sep 11 22:48:45 I do. And you don't. Sep 11 22:48:55 It's just an abstraction. Sep 11 22:49:09 that takes care of things like isViewFromObject Sep 11 22:49:20 that you spent 3 days trying to figure out because you feel like you don’t need an adapter lol Sep 11 22:49:20 What's the last thing that you do in your adapter? AddView. Sep 11 22:49:44 You're new at this, eh? Sep 11 22:49:50 MikeWallaceDev_ listen to JacobTabak Sep 11 22:50:03 new at arguing on the internet? Sep 11 22:50:06 i guess so Sep 11 22:50:09 have fun Sep 11 22:50:21 Who's arguing? Sep 11 22:51:07 i believe we are, about whether or not you should use a pageradapter with a viewpager, and you kind of made it into a hostile argument when you made this comment about being new Sep 11 22:52:01 but it’s not really an argument - there’s a right way to do things Sep 11 22:52:13 i’d like to prevent you from experiencing this grief in the future Sep 11 22:52:39 you can just make your app a canvas and draw everything yourself if you want Sep 11 22:53:16 hey guys, I got streaming an mp4 over http/s to work but not over RTSP (which is supposedly supported), anyone know why that might be? Sep 11 22:53:32 in a videoview on aSamsung S£ Sep 11 22:53:39 S3 X) Sep 11 22:53:51 For video content that is streamed over HTTP or RTSP, there are additional requirements:For 3GPP and MPEG-4 containers, the moov atom must precede any mdat atoms, but must succeed the ftyp atom. For 3GPP, MPEG-4, and WebM containers, audio and video samples corresponding to the same time offset may be no more than 500 KB apart. To minimize this audio/video drift, consider interleaving audio and video in smaller chunk sizes. Sep 11 22:54:13 yea I see that page thankyou JacobTabak X) Sep 11 22:54:36 what is the underlying content type Sep 11 22:54:58 mp4 encoded with h.264 and aac Sep 11 22:55:33 im not an expert with mov's or mdat's unfortunately.. Sep 11 22:55:53 but if theres a way to easily diagnose the source file that would be awesome Sep 11 22:56:29 not an expert either but the doc says h.264 AVC … advanced video codec or something Sep 11 22:56:40 are you sure your video is ‘AVC' Sep 11 22:56:47 ah that may be it Sep 11 22:57:33 it plays over http tho so that suggests encoding is good, no? JacobTabak Sep 11 22:57:42 in the videoview Sep 11 22:58:02 when using rtsp: url it borks a t setVideoURI() Sep 11 22:58:11 uri even Sep 11 22:58:16 Hey all. When I run my app with proguard, it crashes with an AssertionError when it does: Gson myVar = new Gson(); myVar.toJson(someArrayList); I have included -keepclasseswithmembers class com.google.gson.** { *; } in my proguard config. Anyone have any ideas as to why this is happening? Sep 11 23:02:19 you have to -keep class packagecontaininggsonmodlshere** { *; } Sep 11 23:02:53 Aha Sep 11 23:02:56 duh Sep 11 23:03:09 Let me check to make sure that works Sep 11 23:04:56 Hm, doesn't seem to. Sep 11 23:05:04 stacktrace Sep 11 23:06:16 alright, one second. I am trying one more thing. Sep 11 23:08:10 https://code.google.com/p/google-gson/source/browse/trunk/examples/android-proguard-example/proguard.cfg#75 Sep 11 23:08:31 Yeah, I have that Sep 11 23:09:07 then its something else Sep 11 23:09:55 Yeah, what I just tried didn't work Sep 11 23:10:10 Here's the stacktrace: http://pastebin.com/78K4Ef0L Sep 11 23:11:12 and your proguard? Sep 11 23:11:51 yup, I saw something like that with retrofit today, had to disable proguard Sep 11 23:12:04 curious what's the correct proguard config here? Sep 11 23:12:25 this is what i use with retrofit Sep 11 23:12:25 http://pastie.org/9546512 Sep 11 23:13:27 http://pastebin.com/WBDKirk3 Sep 11 23:13:29 proguard Sep 11 23:13:49 top cluster before all the commented out gson lines is gson related stuff Sep 11 23:14:19 so have you added your model files used by hson? Sep 11 23:14:33 gson Sep 11 23:14:35 .util** line Sep 11 23:14:47 fourth line from the bottom Sep 11 23:14:50 should take care of it Sep 11 23:14:54 just do it like this -keep class com.google.gson.examples.android.model.** { *; } Sep 11 23:16:28 wow Sep 11 23:16:29 got it Sep 11 23:16:50 needed to add { *; } after .util** Sep 11 23:17:14 Thanks for the help Sep 11 23:17:37 np Sep 11 23:18:15 Proguard is so easy yet...so hard... Sep 11 23:18:25 lol Sep 11 23:18:59 its pretty magical Sep 11 23:19:02 went from 5mb to <1mb Sep 11 23:20:12 desmin88 does than not just mean a fk tonne of your code was doing nothing ? Sep 11 23:21:02 No Sep 11 23:21:30 yeah it doesnt mean that at all Sep 11 23:21:49 I took out some assets which contributed but overall it cut my app in half Sep 11 23:22:12 so what does it actually do ? Sep 11 23:22:18 to gain that much space Sep 11 23:22:25 removes unused methods and classes and obfuscates code w Sep 11 23:22:30 every variable will be 1 or 2 letters Sep 11 23:22:31 gain, erm…. loose that much size Sep 11 23:22:34 reduces all methods and classes to like a single letter or two Sep 11 23:22:46 and members Sep 11 23:23:01 anyway i don’t really use proguard for the size reduction… Sep 11 23:23:07 oh so really the bigger the code structure and complexity the better the saving Sep 11 23:23:10 just obfuscation is nice Sep 11 23:23:14 ^ Sep 11 23:23:21 so its harder to find security flaws Sep 11 23:23:32 And there are competitors who may love to have our code Sep 11 23:23:54 isn't ART going to do anything for security of an app ? Sep 11 23:23:55 i dnot think ive ever written a line of code that i woudln’t be comfortable sharing Sep 11 23:24:05 Ironthighs: can I have your code? Sep 11 23:24:19 Sorry, I didn't mean MINE Sep 11 23:24:20 ulness you’re doing like enterprise encryption algorithms Sep 11 23:24:38 I meant it's another reason for wanting to use proguard Sep 11 23:24:52 it also makes some optimizations Sep 11 23:24:55 our as in you, me, us as developers. Sep 11 23:25:01 indeed, i’m just chortling about the fact that all the code i write is boilerplate code to get the ui working the way i want Sep 11 23:25:08 ah Sep 11 23:25:34 http://proguard.sourceforge.net/manual/optimizations.html Sep 11 23:25:37 i was doing some freelance work and some guy wanted me to sign a 3 year non compete just to give an estimate Sep 11 23:25:43 to see their source code Sep 11 23:25:45 i said bai Sep 11 23:25:48 kek Sep 11 23:25:49 lol Sep 11 23:26:13 it amazing me that people think thats acceptable Sep 11 23:26:17 my old boss/ceo made everyone that walked into the studio sign an NDA Sep 11 23:26:21 amazes* Sep 11 23:26:34 lol i guess it depends on teh type of work Sep 11 23:26:42 this was for a pet app, like finding pet stores etc Sep 11 23:26:46 We made mobile games. Sep 11 23:27:01 my favorite is when its essentially "come up with the idea for an app, make it for us, and well give you a (small) percentage of the profits it makes" Sep 11 23:27:05 i can see why that might be a little more secretive Sep 11 23:27:15 for mobile game? Sep 11 23:27:31 I mean, I guess if they didn't want it leaked that a new character was coming Sep 11 23:27:49 well it’s artistic stuff too right? Sep 11 23:27:54 like stealing concepts Sep 11 23:27:56 for upcoming games Sep 11 23:27:57 in my industry NDA and 50 miles none-comp. are pretty standard Sep 11 23:28:09 I suppose. Sorry, we just never had anything worth stealing Sep 11 23:28:16 50 miles? location based non compete? Sep 11 23:28:22 what about THE INTERNET Sep 11 23:28:25 yes very much so Sep 11 23:29:07 imagine if the jeff bezos (who founded amazon) had a location-based non compete with a seattle bookstore Sep 11 23:29:12 the jeff Sep 11 23:29:13 That same ex-boss/CEO wanted to make me sign a non-compete where I couldn't work anywhere in the world on anything related to computers for two years after I left the company Sep 11 23:29:13 lol Sep 11 23:29:42 Pretty sure he grabbed a template "contract" from online and just filled in blanks Sep 11 23:29:43 Ironthighs: How ridiculous. what did you do? just not sign it? Sep 11 23:29:49 I laughed at him. Sep 11 23:29:57 xD Sep 11 23:30:03 This is the kind of guy he is too. He tries to get everything for nothing Sep 11 23:30:19 only hired people in college and complained when people had college things to do Sep 11 23:30:28 i dont understand assholes like that. Sep 11 23:30:34 Well his company is dying Sep 11 23:30:44 good, those kinds of people are scum Sep 11 23:30:55 SkyVu Entertainment. We made Battle Bears. Sep 11 23:31:09 Look it up if you want. The cutscenes are hilarious at least Sep 11 23:31:47 where can i watch the cutscenes? it looks like i have to buy it Sep 11 23:31:52 youtube Sep 11 23:31:53 lol Sep 11 23:32:02 ahh Sep 11 23:33:23 xD wtf Sep 11 23:33:28 im watching... Sep 11 23:33:31 http://www.youtube.com/watch?v=DLJCYp2OAx8 Sep 11 23:33:32 lol Sep 11 23:34:27 LEL Sep 11 23:34:30 The games sucked, for the most part. We had no designers, just artists that played video games a lot and thought they knew things. Sep 11 23:35:02 "cheese to meet you" Sep 11 23:35:20 I'm the bear with the pink bear on its head Sep 11 23:35:21 btw Sep 11 23:35:39 haha, sounds like a good setup for success. Sep 11 23:36:04 Yeah. I did a lot of coding there, gained tons of experience, and I was a voice actor. Sep 11 23:36:19 I was the favorite of the characters too. Sep 11 23:36:47 the voices are just so wrong in that. Sep 11 23:36:49 are you still working there? Sep 11 23:36:52 No Sep 11 23:37:01 oops Sep 11 23:37:01 I left when I realized the ceo had zero direction Sep 11 23:37:04 yea, the mouths dont even have animation Sep 11 23:37:44 After I left, things steadily declined. Then he fired the entire 2d art department Sep 11 23:37:47 Ironthighs: Makes sense. sounds like a lot of startups. just hire whoever. have no real goals. just be a "game" or whatever, Sep 11 23:37:49 and all but one 3d artist Sep 11 23:37:58 damn Sep 11 23:38:10 that's the least of it. the voices are really bad . mismatched to the characters and overly forced. Sep 11 23:38:11 Well the CEO originally just wanted to make a Battle Bears movie Sep 11 23:38:20 You don't like Wil? Sep 11 23:38:38 ok, i have to go eat dinner. cya later Sep 11 23:38:43 see ya Sep 11 23:39:31 I'm trying to convert an activity into a fragment Sep 11 23:39:41 but now it crashes it expanding the xml file Sep 11 23:39:49 any thoughts on what I could have done wrong? Sep 11 23:40:04 JohnFlux "crashes" ? Sep 11 23:40:10 thats a user talking there Sep 11 23:40:14 I save a picture without sdcard. I want to access that file. how is it done? Sep 11 23:40:14 ;) Sep 11 23:40:19 lol Sep 11 23:40:28 There's little to no documentation about the android file system structure Sep 11 23:40:40 is it stored in /home/someUser? Sep 11 23:40:54 http://developer.android.com/training/basics/data-storage/files.html Sep 11 23:41:16 That seems to explain a lot Sep 11 23:41:37 seems to Sep 11 23:41:47 seems is the keyword here. they use undefined variables like context and crap Sep 11 23:42:05 What the hell type is context? Sep 11 23:42:19 no one knows Sep 11 23:42:25 the documentation is harmful Sep 11 23:42:40 Yeah, it's pretty terrible Sep 11 23:42:50 you guys are joking right ? Sep 11 23:42:57 I am, I dunno about dogarrhea Sep 11 23:43:04 thought so Sep 11 23:43:06 :) Sep 11 23:43:24 context is of type Context, dogarrhea Sep 11 23:43:28 i see a folder when my phone is mounted to the OS: /media/7B0C-07B2/Download Sep 11 23:43:37 how does this translate from within the android app? Sep 11 23:43:47 that page doesn't really say where you should even look or access Sep 11 23:43:53 context is useless without a base to start from Sep 11 23:44:09 So look up what Context is, I'd guess. Sep 11 23:44:19 http://developer.android.com/reference/android/content/Context.html Sep 11 23:44:45 that is also pretty useless Sep 11 23:44:55 http://stackoverflow.com/questions/3572463/what-is-context-in-android Sep 11 23:45:02 docs and explanations always are Sep 11 23:45:07 useless :) Sep 11 23:45:25 none of this explains how to access a local file Sep 11 23:45:34 a file local to the device Sep 11 23:45:40 or the underlying android file structure Sep 11 23:45:43 no but the other link did Sep 11 23:45:50 Then you'll not find the caliber of person you're looking for in here, I'd wager. Sep 11 23:46:27 Jesus himself could draw you a map to the promised land and I don't think it'd be good enough Sep 11 23:46:34 more trolling. k thanks Sep 11 23:46:38 hehe Sep 11 23:46:41 I'm sorry, dogarrhea Sep 11 23:46:48 http://developer.android.com/guide/topics/data/data-storage.html Sep 11 23:47:01 I just feel like *I* helped you, but I mean, clearly I didn't, and it's frustrating. Sep 11 23:47:02 See 'Internal Storage' and 'External Storage' Sep 11 23:47:38 none of this explains the file directory structure Sep 11 23:47:39 I think you can also just use Java's IO APIs if you know the right file paths Sep 11 23:47:49 dogarrhea: Do you know how linux works? Sep 11 23:47:53 it's like that Sep 11 23:48:00 on regular linux there are things like /opt and /lib64 and /dev and /usr and what not Sep 11 23:48:05 no it's not Sep 11 23:48:11 android is fucked up Sep 11 23:48:14 Well, it's sort of similar but not the same Sep 11 23:48:22 there's no /home Sep 11 23:48:26 I DID say "like" Sep 11 23:48:29 there's no setting up permissions to use /home Sep 11 23:48:41 No, no /home Sep 11 23:48:44 "similar" and "different" are the same in this context Sep 11 23:48:53 there's nothing that documents the clusterfuck that the android file system is Sep 11 23:49:05 where do i look for a download? not in /home/user/Downloads Sep 11 23:49:11 dogarrhea I think you are trolling now right ? Sep 11 23:49:12 It's weird, dogarrhea, because I used this exact same documentation to learn this stuff. Sep 11 23:49:22 This looks nice: http://www.all-things-android.com/content/understanding-android-file-hierarchy Sep 11 23:49:24 so where do you find your download? Sep 11 23:49:29 if you've done it Sep 11 23:49:35 I find it where I saved it Sep 11 23:49:36 dogarrhea where i saved it to Sep 11 23:49:38 :) Sep 11 23:49:42 yea. trolling Sep 11 23:49:45 hold on, let me reference the page I linked you Sep 11 23:50:13 File file = new File(context.getFilesDir(), filename); Sep 11 23:50:16 There's no fixed 'Downloads' directory and an API to access it Sep 11 23:50:21 I think Sep 11 23:50:26 where would you find an image that the native camera app saves? Sep 11 23:50:34 what's the absolute path to that picture? Sep 11 23:50:37 in their gallery intent Sep 11 23:50:46 absolute path? Sep 11 23:50:47 You can grab the Uri from what the user selects Sep 11 23:50:49 dogarrhea or in the Media ContentProvider Sep 11 23:51:00 the user doesn't select anything with the native camera app Sep 11 23:51:08 The gallery intent Sep 11 23:51:14 or whatever photo viewer they user Sep 11 23:51:15 use* Sep 11 23:51:31 Whatever content provider they decide to use that returns an image Sep 11 23:53:14 there is no default gallery intent Sep 11 23:53:24 you open the camera application and your photos are there Sep 11 23:53:31 this must be intenral Sep 11 23:53:31 Yeah, sorry, that was bad phrasing, I guess. Sep 11 23:54:22 So someone correct me if I'm using words wrong, but you can essentially put out a call to any app that can list images, and the user will select one. Lets use Gallery as an example. Sep 11 23:54:44 The person selects Gallery from the plethora of image viewers out there. Then they select the image they want to use. Sep 11 23:54:58 That will return information such as the Uri to access the image. Sep 11 23:55:15 It will be returned to your activity that made the call. Sep 11 23:55:44 Ironthighs yeah, pretty much the way I use and understand it…also in the docs Sep 11 23:55:46 :) Sep 11 23:57:55 how have you used it? Sep 11 23:58:49 well i guess this is beyond anyone's knowledge here Sep 11 23:58:55 snapchat's fundamental business model is doing this lol Sep 11 23:59:03 i shouldn't be asking people who don't know how Sep 11 23:59:08 Now the technical jargon that I'm shaky about: You call out to a ContentProvider for image viewing. Gallery is registered as a ContentProvider for viewing images. So that starts up from wherever you told the app to start the Intent, the user selects the image, and then that image information is passed back to your activity in the method "onActivityResult" Sep 11 23:59:28 Oh, yeah I'm sorry. What I said just now is all wrong Sep 11 23:59:34 Forget all of it Sep 11 23:59:42 yeah Ironthighs your trolling! Sep 11 23:59:46 stop it ! Sep 11 23:59:47 lel Sep 11 23:59:55 dogarrhea is such a n00b Sep 12 00:00:19 Next time you want someone to write your app for you, hire someone. Sep 12 00:00:25 oh. android wants to be dumb and use NO directory Sep 12 00:00:36 Hey everyone Sep 12 00:00:36 now i know what's going on. Sep 12 00:00:48 no sharing with you noobs either. Sep 12 00:00:50 There you go. It stores everything in a cloud that it farts out Sep 12 00:00:51 has anyone here worked on NFC? Sep 12 00:00:57 "it's like linux" fail Sep 12 00:01:18 er.. 'with' Sep 12 00:01:51 Yeah, sorry that you don't understand, dogarrhea. Sep 12 00:01:57 You'll get it some time. Sep 12 00:02:16 Can anyone explain to me, a little better than the docs, how an NFC transaction takes place? Sep 12 00:02:28 hrm. time to add people to filtures Sep 12 00:02:35 filters Sep 12 00:02:35 The phone is constantly searching for a signal Sep 12 00:02:37 I haven't worked on that, Tricknology, so I can't help you there. Sep 12 00:02:46 it finds it and then what Sep 12 00:02:48 Sorry :/ Sep 12 00:02:48 Tricknology: it's best to ignore ironthighs Sep 12 00:02:54 ;-) Sep 12 00:02:58 all he does is query google and paste links without knowing anything Sep 12 00:03:17 and say "i don't know how" instead of staying quiet when he doesn't know anything lol Sep 12 00:03:30 they are supposed to stamp this stupid behavior out in elementary school Sep 12 00:03:33 if he creates stackoverflow questions and gets us answers that wouuld pretty impressive Sep 12 00:03:35 raising your hand and saying "I don't know" Sep 12 00:03:42 lol Sep 12 00:03:45 anyway Sep 12 00:03:50 phone 1 sees phone 2 Sep 12 00:03:57 apparently they discover eachother Sep 12 00:04:23 "what's the answer to 5+5" [hand raises] "I DONT KNOW" "don't raise your fucking hand and waste everyone elses time if you don't know the answer you little bratty twat" Sep 12 00:04:38 yada yada tags get sent to the intent Sep 12 00:04:53 dogarrhea stop being aggressive now, not the place for it Sep 12 00:05:12 StingRay_: then have people stop scrolling the room with useless things like "i don't know" Sep 12 00:05:22 you create Ndef object Sep 12 00:05:33 lol @ dogarrhea. If I'm clueless, he's more clueless than me. Sep 12 00:05:36 but what if you don't have an Ndef object in there? Sep 12 00:06:22 android dev gets people so riled up Sep 12 00:06:36 pointlessly so sometimes Sep 12 00:06:41 It's probably my fault. Sep 12 00:06:47 mostly because it's > 90% trolls Sep 12 00:06:49 Ironthighs it is not Sep 12 00:06:58 who don't know jack shit but scroll the screen anyways Sep 12 00:07:09 dogarrhea honestly stop with this Sep 12 00:07:17 dont attempt to start arguments Sep 12 00:07:21 pointless and not the place Sep 12 00:07:45 Oh, now he's pming me. Sep 12 00:07:47 StingRay_: someone needs to enforce chat scrolling then Sep 12 00:08:00 ladies please calm yourselves Sep 12 00:08:25 scrolling chat with "i don't know" is basically spamming Sep 12 00:08:40 dogarrhea please stop now Sep 12 00:08:43 no one asked him specifically Sep 12 00:08:46 you are spamming the channel Sep 12 00:08:54 * desmin88 gets a bowl of popcorn Sep 12 00:09:24 I am not. and i don't even know why he said i'm private messaging him lol Sep 12 00:09:32 i'm obviously getting trolled Sep 12 00:10:08 canadiancow Sep 12 00:10:16 you know Sep 12 00:10:22 just once Sep 12 00:10:25 :) Sep 12 00:10:29 i'd like to be summoned for a "hey, what's up, how's it going" Sep 12 00:10:38 what exactly is the issue? Sep 12 00:10:54 who is exactly kroot, some mysterious op? Sep 12 00:11:09 so Ironthighs is giving out false information and then spamming with usless info some more Sep 12 00:11:14 i dont think he's mysterious Sep 12 00:11:24 and now is saying i'm pm-ing him when i'm not Sep 12 00:11:30 ive never seen him say a weird Sep 12 00:11:30 word* Sep 12 00:11:38 StingRay_, can you describe the issue to me please Sep 12 00:11:39 canadiancow: Hey, what's up? How's it going? Sep 12 00:11:44 oh hey its canadiancow ; how is it going Sep 12 00:11:50 sigh Sep 12 00:11:52 hi g00s Sep 12 00:11:54 OMG ITS canadiancow hi!!! Sep 12 00:11:58 * canadiancow leaves Sep 12 00:12:05 dogarrhea is very frustrated, and not at all helping Sep 12 00:12:10 im your favorite fan Sep 12 00:12:13 spamming a bit and wont take advice Sep 12 00:12:16 :( Sep 12 00:12:26 What have I been spamming exactly? Sep 12 00:12:30 ok so how about this: stop annoying people enough that they ping me Sep 12 00:12:39 because if someone pings me about you, you're probably being annoying Sep 12 00:12:42 kthxbai Sep 12 00:12:42 I've asked Ironthighs to stop giving out false information and scrolling text Sep 12 00:12:53 and somehow this is being annoying? Sep 12 00:12:58 Ironthighs has been nothing but helpful to you Sep 12 00:13:05 as have others Sep 12 00:13:07 what's annoying is to have to come here to moderate stuff Sep 12 00:13:08 :P Sep 12 00:13:09 dogarrhea, this is #android-dev not #superseriousnofundev Sep 12 00:13:17 lighten up Sep 12 00:13:40 don't scroll text with "I don't know" ok? this is below middle school behavior Sep 12 00:13:55 turn off autoscroll Sep 12 00:13:55 and if you're going to give out false information like "Android filesystem is like Linux" when it's not at all Sep 12 00:14:06 you're going to get called out on it Sep 12 00:14:25 I'M the one being helpful Sep 12 00:14:41 yeah. android has nothing to do with linux. geez! Sep 12 00:15:09 Can I be more helpful please? http://en.wikipedia.org/wiki/Android_(operating_system) Sep 12 00:15:15 "Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google. " Sep 12 00:15:21 i vote we lynch Ironthighs for even fucking mentioning the word linux and android in the same sentence Sep 12 00:15:23 that BASTARD Sep 12 00:15:28 How dare I Sep 12 00:15:31 :) Sep 12 00:15:44 * canadiancow closes his eyes Sep 12 00:15:58 desmin88: next someone will tell us to run uname -s Sep 12 00:16:09 * desmin88 gasps Sep 12 00:16:52 canadiancow what you are witnessing is the result of all the experts leaving :( Sep 12 00:16:56 [16:47] dogarrhea: Do you know how linux works? <---- this is inciteful behavior Sep 12 00:16:57 heh Sep 12 00:17:01 yeah i've been kinda inactive lately Sep 12 00:17:06 JakeWharton was here earlier Sep 12 00:17:08 bating should be a ban-able offense Sep 12 00:17:11 evan's gone Sep 12 00:17:14 mikedg is gone Sep 12 00:17:35 canadiancow is ctate still doing android ? Sep 12 00:17:45 not gone, just don't ever chat, you aholes :p Sep 12 00:17:49 yes g00s Sep 12 00:17:52 it's like that google money just makes you all clam up Sep 12 00:17:56 dogarrhea: android filesystem nothing at all like linux? You're referring mainly to the folder structure then, right? Not the actual filesystem? Sep 12 00:18:07 it's more like i can only do so much android stuff a day :P Sep 12 00:18:16 sure sure Sep 12 00:18:17 folder structure. not the FAT filesystem that android apparently uses Sep 12 00:18:18 :p Sep 12 00:18:32 android doesn't use fat Sep 12 00:18:42 only if you have an external sd card Sep 12 00:18:46 #wrekt Sep 12 00:18:49 #rekt Sep 12 00:19:19 dogarrhea why are you spreading false info about the android filesystem Sep 12 00:19:20 dogarrhea, please try to keep things on topic for android app development Sep 12 00:19:26 * desmin88 snicker Sep 12 00:19:30 so even more is the case that linux filesystem and android are not the same thing Sep 12 00:19:43 they are Sep 12 00:19:45 that is both true (android is not a filesystem), and irrelevant Sep 12 00:19:47 #WREKT Sep 12 00:19:51 * desmin88 will stop now Sep 12 00:19:54 Am I absolved yet? Sep 12 00:20:03 no Sep 12 00:20:06 darn. Sep 12 00:20:06 don't bait the trolls Sep 12 00:20:32 what a useless channel this is Sep 12 00:20:40 Alright. Sep 12 00:20:49 canadiancow: The trolls are so bad. Sep 12 00:21:11 he's been fed the past 2 days, grown strong he has Sep 12 00:21:18 * lewellyn skimms trollback and wonders if dogarrhea is still using yaffs. Sep 12 00:21:25 * lewellyn wanders off to a more useful channel :P Sep 12 00:21:58 lucky bastard. he has fios Sep 12 00:25:34 * Tricknology has been kicked Sep 12 00:27:47 Later all! Sep 12 00:27:56 seeya :) Sep 12 00:28:25 bye Ironthighs Sep 12 00:29:12 so... Sep 12 00:29:27 anyone know how the initial NFC discovery works? Sep 12 00:30:29 Tricknology does it not just listen and fire an intent ? with the id ? Sep 12 00:30:44 im not familiar with the technology. but.... - ^ Sep 12 00:30:47 I know not cause never done it, but seem to remember people discussins it Sep 12 00:31:09 actually that intent may have the total message+ident in it also Sep 12 00:31:18 i remember a phone was rootable with nfc. Sep 12 00:31:23 well yes. but there is an NDEF object Sep 12 00:31:23 but again, remembering from chat… having never touched it myself Sep 12 00:31:31 what if the object is not Ndef? Sep 12 00:31:33 dogarrhea: how are you saving it? Sep 12 00:31:44 wow no autoscroll Sep 12 00:31:46 Tricknology parcel in the intent I think so Sep 12 00:31:51 welp, im clueless at this point. have fun geniuses Sep 12 00:32:07 do any of you compile cyanogenmod or aosp? Sep 12 00:32:17 i have a build error Sep 12 00:32:23 you also have the wrong channel Sep 12 00:32:26 StringRay_ im not sure if the Android device will listen to a non Ndef signal Sep 12 00:32:36 wee tag Sep 12 00:32:40 err tag Sep 12 00:32:45 thanks for telling me that. android-root likes to tell me the same thing. Sep 12 00:33:31 Tricknology again sorry, never used .. Sep 12 00:33:58 kk Sep 12 00:35:05 lasserix: take a photo with stock camera app Sep 12 00:35:24 there's a way to do it with media store Sep 12 00:35:28 or activity for result Sep 12 00:35:34 and then return some info about the picture i think Sep 12 00:35:47 been a while since i did that but you can definatly return activity for result Sep 12 00:36:11 to get some info and then either look it up in mediastore or directly use the info Sep 12 00:36:55 Here, dogarrhea: http://pastebin.com/SisXv86m Sep 12 00:36:58 My code to you Sep 12 00:37:17 Good luck. Sep 12 00:50:25 does anyone actually use regex search replace in AS for doing things on mass ? Sep 12 00:50:37 I have a feeling it's something I should really learn :) Sep 12 00:50:46 i do Sep 12 00:51:20 bet it's really handy Sep 12 00:51:29 quite Sep 12 01:01:21 Tricknology: android devices "listen" for to non ndef tags, and the intent gets broadcasted. Not all chips will be capable of reading all tags though. Sep 12 01:13:08 How do clear the logcat in ddms with intellij? Sep 12 01:13:24 when i press the traschcan or do clear it clears it but as soon as a new message the backlog that was cleared reappears Sep 12 01:15:25 what are symptoms of a AsyncTaskHandler returning a delayed deliverResult? Sep 12 01:15:30 or possible causes Sep 12 01:18:05 the ForceLoadContentObserver keeps calling force load on it, and the result is delayed Sep 12 01:23:35 <_CalLightman_> Hi... i am having issues with EditText and focusability ... I have an expandable list and its group contains an EditText and an ImageView. Now i am unable to edit the text on long click and still keep the expand/collapse operations of list intact. Furthermore when i am doing drag and drop, it works if I am dropping anywhere other than the EditText of group, else it just modifies the text of the group. Can you help me with this? What am i doin Sep 12 01:23:35 <_CalLightman_> g wrong? Sep 12 01:29:09 <_CalLightman_> Hi... i am having issues with EditText and focusability ... I have an expandable list and its group contains an EditText and an ImageView. Now i am unable to edit the text on long click and still keep the expand/collapse operations of list intact. Furthermore when i am doing drag and drop, it works if I am dropping anywhere other than the EditText of group, else it just modifies the text of the group. Can you help me with this? Sep 12 01:33:49 Thorbear: are those proprietary tags or just due to technology creep? Sep 12 01:35:13 _CalLightman_ can you post your code? Sep 12 01:35:18 www.pastebin.com Sep 12 01:37:02 <_CalLightman_> Tricjnology: Okay, will snippets be fine? Sep 12 01:37:44 sd long as we can see the parts that are doing the work Sep 12 01:37:53 as far as your views are concerned Sep 12 01:38:59 <_CalLightman_> Okay Sep 12 01:43:26 <_CalLightman_> Tricknology : http://pastebin.com/Je3eNByt Sep 12 01:48:19 <_CalLightman_> Tricknology, things that i am trying to achieve : 1) normal expandable list functioning but when I longClick the group, i should be able to edit the label and then revert to normal functioning Sep 12 01:48:49 <_CalLightman_> 2) drop the dragged item even when it is dropped over the edittext Sep 12 01:53:44 Tricknology: a little of both? There is a lot of proprietary solutions out there, partly caused by the same companies making both tags and readers/writers. There is also the problem of readers having to support too many standards, because nobody wants to wait for some official golden standard. Sep 12 01:56:58 Most of the problems arise only when doing very special stuff though, unless you want to, for example, communicate with DESFire-tags through an app backed by a webserver, or communicate with old tags like Mifare Classic, you should be fine. Sep 12 01:58:13 ok, so side question: forgive me for being naieve. my access card at work works with NFC, no? Shouldnt I be able to read that with the phone? I haven't dug into the different techs on the list Sep 12 01:58:22 in the Avanced NFC section Sep 12 01:58:36 Thorbear Sep 12 01:59:14 _CalLightman_ so you want to be able to edittext onlongclick of the expandable list? Sep 12 02:00:41 <_CalLightman_> Tricknology, no, it is not able to get the focus properly, even though the function is called because i have put a toast on it Sep 12 02:00:54 Tricknology: It doesn't have to be NFC, it could be plain old RFID, and while most NFC readers will handle most RFID just fine, there are a bunch of different frequencies for RFID, and only some of them are supported by most NFC readers. There could also be encrypted tags, which will only respond when presented with the correct handshake. Sep 12 02:01:49 aaaah thank you so much Thorbear Sep 12 02:02:20 Tricknology: If you want to check if a tag is readable though, there's an app called "NFC TagInfo", which will read anything your chip can handle as far as I know. Sep 12 02:02:37 beautiful, thank you Sep 12 02:02:46 even if it's encrypted? Sep 12 02:04:40 _CalLightman_, I don't see the problem here.. it's probably a minor one but I don't do advanced UI manipulation so i'm probably not the best one to handle this. My guess though is that it may have something to do with lblListHeader.FocusChanged() Sep 12 02:04:41 Depends on the type of encryption. I haven't been able to read my passport yet, and I haven't tried any creditcards :) Then there's DESFire, which has "open access" to the tag itself, but can encrypt "applications" and "files" on the tag. Sep 12 02:05:10 you are setting focusable as false. maybe try setting a flag that sets it to true when that is your intention Sep 12 02:05:50 cerditcards are easy Sep 12 02:05:55 they use IsoDef Sep 12 02:06:11 the card info inside the payload is encrypted Sep 12 02:06:24 Same as DESFire then Sep 12 02:06:27 no idea about passports but that would be a neat project Sep 12 02:07:32 Last time I tried to read one the phone just gave off some weird sound and gave up :P Sep 12 02:07:39 haha Sep 12 02:07:42 im going to try now Sep 12 02:08:26 I'm from Norway though, our passports may be different from whatever they use in whatever country you're from :) Sep 12 02:10:43 maybe RF Sep 12 02:11:39 oops, dont have it installed Sep 12 02:47:44 any robolectric experts here? Sep 12 02:49:59 try #engineering Sep 12 02:50:19 if that’s not sarcasm, i’m referring to the unit testing framework Sep 12 02:50:39 I SEE Sep 12 02:52:08 lol Sep 12 02:52:49 i’m havimg a problem instantiating a shadow of this class - MediaMetadataRetriever Sep 12 02:53:03 no such method - MediaMetadataRetriever.() Sep 12 02:53:14 Lethalfrag said he thinks the game is really complete Sep 12 02:53:27 I think there's room for improvement Sep 12 02:53:29 Hey Guys, I am having a problem with kitkat, I just saw that i had a big wjen I am trying to dowload a file http://pastebin.com/qMe7Qhi0 Sep 12 02:53:40 Omg, I'm sorry. I'm in the wrong window. Sep 12 02:53:53 I have a Null pointer exepction and java.lang.IllegalArgumentException: position=0 count=9223372036854775807 Sep 12 02:54:38 one of those variables is null. Sep 12 02:55:21 JacobTabak: I know a little Sep 12 02:55:46 gordon_: http://cl.ly/image/2e0i3b192539 Sep 12 02:56:01 someone can help how to build android and php web service communication using cookies? Sep 12 02:56:36 Agamemnus: will check Sep 12 02:56:44 adr_dev: that type of question is way to general for this chat Sep 12 02:56:49 too* Sep 12 02:57:08 haveny used MediaMetadataRetriever Sep 12 02:57:09 but... Sep 12 02:57:42 that's picasso class ? Sep 12 02:57:43 i don't understand why its always PHP devs who ask how to have android and their web service communicating :| Sep 12 02:57:50 no, its part of the android framework Sep 12 02:58:00 i dont think my issue has anything to do with mediametadataretriever, i can’t even construct the shadow object Sep 12 02:58:03 why not mockit with mockito then ? Sep 12 02:58:10 aaa Sep 12 02:58:16 let me see if I have one :) Sep 12 02:58:27 gordon_: i’m creating more unit tests in a suite thats already using robolectric shadows Sep 12 02:58:40 but theyr’e static shadows Sep 12 02:58:46 implementing static methods Sep 12 02:58:46 HAHA @ g00s Sep 12 02:58:51 every. fucking. day. Sep 12 02:58:59 @g00s ( _ _) Sep 12 02:59:16 g00s: do you know the shortest IT joke ? Sep 12 02:59:23 JacobTabak: I have some shadows Sep 12 02:59:27 PHP Sep 12 02:59:43 gordon_: do you see anything wrong with mine? **** ENDING LOGGING AT Fri Sep 12 02:59:58 2014