**** BEGIN LOGGING AT Tue Sep 09 02:59:59 2014 Sep 09 03:01:46 I will say that the iBEACONS are very very cool.... I can read one from 30 feet away... including the distance.. approx... also playing with some BT tech from TI... also very cool I can pair with an iPHONE, and send it messages, like temp and contacts. Sep 09 03:02:17 Its possible to use an actionbar with an unique fragment and send a value/data trought bundle or any other method to be available in the fragment onCreateView? Sep 09 03:04:12 oh wait its possible Sep 09 03:04:16 :^) Sep 09 03:05:57 IrishGringo don't ibeacons change their addresses several times per second? (like gimbals, etc) what is the reason for that ? Sep 09 03:06:57 no idea... still learning myself Sep 09 03:11:49 So I managed to implement my ArrayAdapter to the NavigationDrawer, but it seems to overlap another fragment or something. Ie I need to click a section to get my ArrayAdapter view, until then it uses another formatting. How can I fix this? Sep 09 03:24:01 i was wondering if there is any more articles like this? http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/ Sep 09 03:25:05 i'm interested to learn about how others do their project in terms of architecture Sep 09 03:25:19 and patterns Sep 09 03:27:17 ladies Sep 09 03:30:54 g00s: i know i should probably start moving my app towards a structure similar to that blog post you linked me, but it just seems like so much 'connective tissue' code before you actually do anything Sep 09 03:31:33 talking about connective tissue, xrays are back and my foot isn't broken but maybe ... ligaments :| Sep 09 03:31:48 I ended up making a semi-repository class with indexed collections so i can retrieve objects on their fields at o(1) Sep 09 03:31:53 you too? Sep 09 03:32:13 hey ron_frown Sep 09 03:32:27 sup player Sep 09 03:32:47 broke the distal end of my tibia and tore my ligaments apart Sep 09 03:33:27 ron_frown reading http://www.amazon.com/Great-Fragmentation-Future-Business-Small-ebook/dp/B00LCXK3R4 Sep 09 03:34:32 g00s: cool Sep 09 03:34:56 might be heading up to atheer in the next week or so Sep 09 03:34:57 ron_frown you ever hear of a social network called nextdoor ? Sep 09 03:35:03 actually first bit of android tech Sep 09 03:35:07 I"m actually excited about Sep 09 03:35:12 that and god damn googles tablet Sep 09 03:35:16 that they arent taking my money for Sep 09 03:35:29 nextdoor... no Sep 09 03:35:31 ron_frown oh there was an article about a whole slew of glass-like projects going on, but you weren't around i lost the link Sep 09 03:35:44 bah Sep 09 03:35:47 beleive me Sep 09 03:36:01 Ive talked to probably 80% of those guys Sep 09 03:36:10 got invited to meta Sep 09 03:36:27 but their hardware seems not so fantastic Sep 09 03:36:33 wouldnt impress our customers all that much Sep 09 03:37:14 atheer is what we really wanted to roll with Sep 09 03:38:00 glass is a big fucking joke Sep 09 03:38:15 google should just quit Sep 09 03:38:24 the butchered the os, and barely any support going o nthere Sep 09 03:42:07 How can a NavigationDrawer have both a listview and and ArrayAdater? I don't get it. Which is used when? http://pastie.org/9537910#4,13 Sep 09 03:44:22 ron_frown the glass stuff is the company you work at, or your own thing ? Sep 09 03:44:57 work Sep 09 03:45:16 one of the few places a wearable glass setup makes a hell of a lot of sense Sep 09 03:45:27 but google completely fucked glass Sep 09 03:45:41 only thing I think they did ok is being the first real competitor to the game Sep 09 03:45:54 anybody knows what this doesnt work? http://paste.ubuntu.com/8296112/ Sep 09 03:46:20 ron_frown what is work's application for it ? Sep 09 03:46:27 what mayth are you attempting there Sep 09 03:46:58 ron_frown: in my opinion that's all they really need to do. Take a look at every first ever built, first "smartphones", first "computers", etc.. They just need to have people realize it it technically feasable, and something good will ensue in the next 2-5 years Sep 09 03:47:31 But obviously Glass is by no means fot the masses Sep 09 03:49:01 nobody? Sep 09 03:49:10 http://paste.ubuntu.com/8296112/ why doesnt it work :( Sep 09 03:49:57 peyam: I have no clue what doesn't work, but maybe your variables need to be statis (or so we call it in C) Sep 09 03:50:03 static* Sep 09 03:50:56 https://www.atheerlabs.com/ Sep 09 03:51:03 I was very impressed with their tech demos Sep 09 03:51:07 blind leading the blind? Sep 09 03:51:24 its not glass concept sucks Sep 09 03:51:28 its that glass itself sucks Sep 09 03:51:44 camera sucks, screen sucks, its low performance, and try to do anything remotely complex it gets super hot Sep 09 03:51:48 google neutered android Sep 09 03:52:08 I couldnt in good concious recommend it for much Sep 09 03:53:35 It's ahead of it's time, but when batteries etc get tiny and performant enough, google will have laid the path for a great product. And I think that's what it's all about Sep 09 03:54:09 battery tech definitely isnt advancing fast enough Sep 09 03:54:25 a great product for a few geeks in SF Sep 09 03:54:31 But we're getting there Sep 09 03:57:47 atheer is already there Sep 09 03:57:53 honestly meta is close Sep 09 03:58:00 it was slow and kinda clunky Sep 09 04:00:21 ron_frown i think this is what i saw http://venturebeat.com/2014/03/30/which-smart-glasses-will-be-right-for-you/ Sep 09 04:00:37 but glass is consumer; atheer and epson are for professional use Sep 09 04:00:45 seemingly ;) Sep 09 04:02:21 for professional / industrial, probably matters less what it looks like ;) Sep 09 04:03:02 glass has been recently marketed more towards professional Sep 09 04:03:17 I mean I've been fucking with ours maybe an hour a day for a few weeks Sep 09 04:03:22 its murder on the eyes Sep 09 04:03:41 otoh, what does google mean by professionals - not sure but anyhow Sep 09 04:03:54 the epson unit was being used by firefighters and search / rescue Sep 09 04:04:17 haha Sep 09 04:04:22 all of them were meh specs Sep 09 04:04:31 for us it was glass/meta space glasses/atheer Sep 09 04:04:51 but meta space glasses in real life vs what they showed in their concept videos Sep 09 04:04:56 was huge diff Sep 09 04:05:19 does anybody know how I can Show a text in a textview and erase it using one button? Sep 09 04:05:35 come on now Sep 09 04:05:40 thats pretty elementary shit Sep 09 04:06:22 I dont know why my code doesnt work Sep 09 04:06:29 http://paste.ubuntu.com/8296112/ ron_frown Sep 09 04:06:58 wtf Sep 09 04:07:04 whats with all the modulous shit Sep 09 04:07:59 you mean you want to flip between a resource string and an empty string Sep 09 04:08:08 well. first time i click the button it shows the text, next time I click it it hide the text .. and so on. so everytime x is odd it shows the text Sep 09 04:08:17 yes Sep 09 04:08:24 i wana hide the text Sep 09 04:08:40 setText("") should do that I would think Sep 09 04:09:05 I tried it. didnt work Sep 09 04:09:08 nothing happens Sep 09 04:09:54 http://paste.ubuntu.com/8296226/ Sep 09 04:11:22 now I know Sep 09 04:11:27 y doesnt have to be a int Sep 09 04:11:32 it might be a decimal Sep 09 04:12:19 no.. still not working Sep 09 04:15:00 ron_frown: do you have any idea? Sep 09 04:15:32 ron_frown: my whole code: http://paste.ubuntu.com/8296258/ Sep 09 04:15:50 what Sep 09 04:15:54 what has to be an int Sep 09 04:16:28 nothing. I though for a seconde that the module should be a double. but I was wroong Sep 09 04:20:36 peyam: is this your first app ? Sep 09 04:20:43 yes Sep 09 04:20:56 peyam instead of using an int and a modulus, it would be clearer to simply do "shouldShowText = !shouldShowText; if (shouldShowText) { ... }" Sep 09 04:21:22 peyam: you should find simple examples to clarify stuff for you Sep 09 04:21:43 yes. but it should be very simple Sep 09 04:21:53 I really wana know what is wrong Sep 09 04:24:14 shmooz: can you help me? Sep 09 04:24:17 It a assignment Sep 09 04:25:13 peyam: you said x = +1; I think you meant x += 1; Sep 09 04:26:26 or x++; Sep 09 04:26:53 you are right. actualy i did some apps for android for some years ago. but I forgot all of it Sep 09 04:27:12 I use only Matlab on my school projects. Now im gonna test it again Sep 09 04:27:31 now it works Sep 09 04:27:34 thank you very much Sep 09 04:27:37 peyam: yes, replace x = +1; with x += 1; Sep 09 04:27:37 * g00s never used matlab Sep 09 04:27:54 you need to increment x for that to work Sep 09 04:28:14 peyam using for signal processing / dsp ? Sep 09 04:28:18 expensive as shit Sep 09 04:28:23 shmooz: thank you very much. g00s its a engineering program. Sep 09 04:28:42 g00s: automatic control and system theory Sep 09 04:28:56 peyam cool, what kind of control? Sep 09 04:29:08 Automatic control it's called Sep 09 04:29:24 ah, k - i only had basic control theory Sep 09 04:30:29 http://en.wikipedia.org/wiki/Systems_theory AND http://en.wikipedia.org/wiki/Automatic_control Sep 09 04:30:36 i did some fuzzy logic based control, pid, etc Sep 09 04:30:37 sorry about offtopics Sep 09 04:32:29 and one more thing Sep 09 04:33:54 http://pastebin.com/j7scaTrE i tried to make the text more beautiful and save time. it doesnt show as i wanted it. Sep 09 04:34:03 how do i change default navigation drawer icon Sep 09 04:34:26 peyam but what systems are you working with, ecological, economic, both, others, etc ? Sep 09 04:35:02 g00s: i dont have a job. just finished my education. I want to work with aeroplanes and stabilities but Economi is of intreset too **** ENDING LOGGING AT Tue Sep 09 18:02:05 2014 **** BEGIN LOGGING AT Tue Sep 09 18:04:19 2014 Sep 09 18:04:50 try it Sep 09 18:05:32 https://code.google.com/p/maven-android-plugin/issues/detail?id=424 Sep 09 18:05:34 how lame Sep 09 18:05:50 the property being set is textSize, I did anim.getPropertyName(). Sep 09 18:08:11 I doubt your issue is with the ObjectAnimator. It does not reset the value when done Sep 09 18:09:35 well its just one line Sep 09 18:09:49 where could the problem come from if not from that line? Sep 09 18:10:06 Some other line Sep 09 18:10:11 :) Sep 09 18:10:11 there's no other line Sep 09 18:10:21 its a button that does that line Sep 09 18:10:52 Log the values set by the ObjectAnimator, very that it is indeed the issue Sep 09 18:10:57 verify* Sep 09 18:11:20 Sicp, err did you step through with a debugger and set a conditiona break ion when the value is reset? Might help. Cos that code you posted is only enough for a psychic ... Sep 09 18:11:36 "conditional break when the value is reset" Sep 09 18:12:29 I just verified that it's not: http://pastebin.com/TshFUVPY Sep 09 18:12:40 how, did you put a button and did that to a textview? Sep 09 18:14:27 Why would I need to? You're saying the issue is ObjectAnimator, so I cut out anything unrelated (like how it's started, and where the setter is) Sep 09 18:14:47 ok, here's the other mischevous lines that were at play without you knowing it! Sep 09 18:14:50 http://pastie.org/9539673 Sep 09 18:16:09 you know I have this animation running elsewhere in the code, yea..they dont reset Sep 09 18:16:38 but those are inside an animatorSet which I do playTogether() on and then start Sep 09 18:17:35 i have it moving textviews right and left Sep 09 18:18:36 well thanks anyways Sep 09 18:22:46 do you have to set oneshot = true? Sep 09 18:22:46 on your animationdrawable Sep 09 18:22:46 loll Sep 09 18:22:46 there aint no such thing Sep 09 18:22:46 yeah there is Sep 09 18:22:46 what are you talking about? Sep 09 18:22:46 it sounds funny, sorry Sep 09 18:22:46 tho i dont know if applies to objectanimator can't remember Sep 09 18:22:47 well im not using that, im using objectanimator Sep 09 18:23:04 come on, where's the new statue!! Sep 09 18:23:22 tore it down Sep 09 18:23:50 Sicp what's your code that updates? Sep 09 18:24:14 updates what? Sep 09 18:24:28 its just this http://pastie.org/9539673 Sep 09 18:24:56 maybe it shouldnt have a beginning value Sep 09 18:25:17 then it wont know where to go back! Sep 09 18:25:18 HA! Sep 09 18:28:13 ok, here's what's going on : it starts off with textSize as nothing, so it sets to the default textSize. I press the button it animates to 30 and stops Sep 09 18:28:23 every button after that is a jump like the one I was talking about Sep 09 18:29:00 where it increases by a number which I have not given it anywhere, then goes back to 30 Sep 09 18:29:39 if I manage to get more then two clicks on that button, it doubles in size before going back to 30 Sep 09 18:32:01 And you are you aware that getTextSize returns text size in pixels, and setTextSize sets the font size in sp? Sep 09 18:32:42 I dont use getTextSize anywhere, but I do setTextSize(30f) Sep 09 18:32:55 I mean that ofFloat thing, it takes 30f Sep 09 18:33:10 constructor not thing Sep 09 18:33:20 not even a constructor actually, haha Sep 09 18:33:27 static method Sep 09 18:33:52 You're only passing it one value, so it uses the getter to get the initial value Sep 09 18:34:11 I see, ok Sep 09 18:34:22 is that what's causing this? Sep 09 18:34:32 I don't know Sep 09 18:34:54 how would I give it in XML a starting value that will still make sense with the value its going to change to? Sep 09 18:34:58 cause XML I use sp Sep 09 18:35:00 You haven't been able to clearly state your issue yet. Just that ObjectAnimator is resetting the value, and that it's jumping around Sep 09 18:36:01 textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 65); Sep 09 18:36:01 gonna use that Sep 09 18:36:18 I don't even know what your expected result is. But either way, the setter and getter of text size is in two different.. formats, or whatever Sep 09 18:36:24 scaled pixels and pixels Sep 09 18:37:15 well the final result is here http://roadietuner.com/wp-content/uploads/2013/10/animation_small_with_iphone_black2.gif Sep 09 18:37:33 the textviews moving around and changing their sizes to the value I calculate as long as I am hearing audio Sep 09 18:37:57 not going back to their original values or anything, i give them the values they're going to move into next Sep 09 18:39:48 can I do this with something other than an objectAnimator if I want to have the size always be changing? Sep 09 18:39:57 cause Ive seen all the other solutions they all have a constant size in XML Sep 09 18:40:29 i want to constantly be changing the sizes Sep 09 18:41:32 thank you apple!!! we will get the better watch in 3-6 months ;) Sep 09 18:41:59 units was the word I was searching for Sep 09 18:42:14 You should probably make sure the start and end values are in the same units Sep 09 18:42:59 the start will never be visited again though Sep 09 18:43:11 as that method ofFloat is only taking destination animation size, doesnt go from x to y Sep 09 18:43:22 just from whatever it currently was (dont care what it was) to what I want it Sep 09 18:43:31 gonna use this to turn the float into sp http://stackoverflow.com/questions/5012840/android-specifying-pixel-units-like-sp-px-dp-without-using-xml Sep 09 18:43:41 So you still don't understand the issue.. Sep 09 18:44:22 no I do, just want to make sure that I am talking about a case whose start is the initial size of the textview, not hte start that you can pass into ofFloat() Sep 09 18:44:37 cause its gonna do getSize on it, is that in Px or Sp? Sep 09 18:44:39 Anyone familiar with this error message (from the Android Studio debugger): "Target VM is not paused by breakpoint request. Evaluation of methods is not possible in this mode" Sep 09 18:44:52 I can't find any online mentions of it besides in the source code of DebuggerBundle: https://github.com/jexp/idea2/blob/master/resources-en/src/messages/DebuggerBundle.properties Sep 09 18:44:59 (question previously asked in #android) Sep 09 18:45:04 actually i can see that Sep 09 18:45:19 pixels Sep 09 18:46:08 Sicp have you got some cerebral translation device coupled to irc ? Cause I'm sure I'm getting all your thoughts Sep 09 18:46:24 its disgusting isnt it Sep 09 18:46:26 haha Sep 09 18:47:13 not disgusting at all if your a 12-16 year old socialite girl … otherwise … yeah Sep 09 18:48:37 It's obvious he is suffering from the coder bending Sep 09 18:48:54 aka the bitwise madness Sep 09 18:49:16 who cares, when this is done the feeling is priceless Sep 09 18:49:20 lol, thats why i do it Sep 09 18:49:21 or the obsfucated delerium Sep 09 18:49:48 Sicp no need to make us all feel that way too Sep 09 18:49:50 ;) Sep 09 18:50:03 ok Sep 09 18:51:09 is there some other way to evaluate methods when debugging through Android Studio? Sep 09 18:52:13 Sicp; you want to feel like http://i.imgur.com/kvUU7.gif but instead you are http://wrozka.github.io/ppppp-pair-programming/img/frustration.gif Sep 09 18:52:38 lel Sep 09 18:52:56 JesseW_zonar: looks like your JDK version is too low? Sep 09 18:53:38 seems other people had same problem relating to their jdk version Sep 09 18:53:42 mgiht try switching it Sep 09 18:53:43 lasserix: hm. I can look into that, thanks. Sep 09 18:53:45 and seeing what happens Sep 09 18:54:39 hey Sicp is your translation thing fucking with your scaling thing? Sep 09 18:55:00 dont know what translation means but there is no translation going on Sep 09 18:55:18 just setting size to 30f while primary size is coming back in pixels Sep 09 18:55:21 that's the issue Sep 09 18:55:21 i am loooking at that link of the musical toner thing and Sep 09 18:55:26 it translates left to right Sep 09 18:55:36 that's done Sep 09 18:55:45 yeah i know, is it possible itnerfering with this? Sep 09 18:55:53 no Sep 09 18:55:56 lasserix: suggestion on a particular version to try? Sep 09 18:55:58 im doing it on a button elsewhere now Sep 09 18:56:06 JesseW_zonar: no idea sorry Sep 09 18:56:13 lasserix: no worries Sep 09 18:57:17 I'm so disappointed that the new moto x is so big... Sep 09 18:57:22 wider than the htc one? wtf Sep 09 19:01:10 translation is normally a move on an axis. or multiple. ie re-position as opposed to scale or rotate. Sep 09 19:01:31 well Sep 09 19:01:35 nothing Sep 09 19:01:50 sicp can you just post some code instead of totally unhelpful snippets? Sep 09 19:02:31 suuuuuuuure Sep 09 19:02:31 its probably some weird thing that is overriding something which is some minor detail in a line you fail to see that might help if you post like the entire operation for this scaling reset fluke Sep 09 19:02:41 mmmmmmmm yeaaaa Sep 09 19:02:43 lol Sep 09 19:03:26 http://pastie.org/9539765 Sep 09 19:04:29 it couldnt be something as dumbarse as the anim going out of scope? Sep 09 19:05:16 there's that pixelsToSp method too http://pastie.org/9539774 Sep 09 19:05:31 now it starts with 30sp, and is fed 30sp Sep 09 19:05:47 which is and can not be anything to do with it being reset. Sep 09 19:07:47 If you're on an xxhdpi device, that line would animate from 90sp to 10sp (assuming scaled density == density) Sep 09 19:08:43 yea it's wrong i know Sep 09 19:08:54 just all mud now, trying something else. Sep 09 19:09:02 Hi Sep 09 19:09:22 I'm trying to add InMobi as a network for AdMob Sep 09 19:09:36 AdMob ads play fine, but I get this error: Sep 09 19:09:46 E/EnterpriseContainerManager( 2471): ContainerPolicy Service is not yet ready!!! Sep 09 19:09:55 I tried googling, couldn't find anything useful. Sep 09 19:09:57 Any ideas? Sep 09 19:10:14 I get that error when InMobi ads are requested Sep 09 19:10:34 My issue turned out to be as simple as: use a breakpoint, not the pause button Sep 09 19:11:00 You're animating from getTextSize to whatever value you pass (lets say 30). If the current text size is 30sp, getTextSize would return 90 on an xxhdpi device.. Sep 09 19:11:08 So you animate from 90sp to 30sp Sep 09 19:12:06 Since the setter parameter is a text size in sp Sep 09 19:12:18 then how do you make it be equal regardless Sep 09 19:12:24 i got that method so that both would be sp Sep 09 19:12:27 btw. is there a way to measure a string in pixels? Sep 09 19:12:30 but the getter is in px Sep 09 19:12:47 do i put everything in px?? Sep 09 19:12:48 You'd have to convert the getter value to sp Sep 09 19:12:51 e.g. int pixels = Measure(view, textfoo, "my cool string"); Sep 09 19:13:00 So you're actually animating between two sp values Sep 09 19:13:12 monsi yeah its a paint method Sep 09 19:13:28 measureText for width, or getTextBounds (orsomethign like that) with for width and height Sep 09 19:13:31 both paint methods Sep 09 19:13:37 but I dont see where getTextSize is accessible Sep 09 19:13:44 isnt it automatically called?? Sep 09 19:13:49 Yes Sep 09 19:13:57 lasserix: thx - i'll check this Sep 09 19:14:20 and how do you plan to convert the getter value to sp Sep 09 19:14:23 lasserix: i'd like to switch a layout to 2 or 3 lines depending on the text and that would rock ;) Sep 09 19:14:24 does anyone know what "ContainerPolicy Service is not yet ready!!!" might mean? Sep 09 19:14:25 But you do know what you can pass multiple values to ofFloat Sep 09 19:14:30 yea Sep 09 19:14:31 And if you do, it'll animate between those values Sep 09 19:14:32 aah Sep 09 19:14:56 monsti yeah just use a static paint object remember to set text size on the paint object (and typeface /style if you change it) before Sep 09 19:15:28 so from pixelsToSp(textView.getSize()) to pixelsToSp(textView.getSize() + addedValue) Sep 09 19:15:39 lasserix: yeah i unified my UI element styles ;) Sep 09 19:19:35 Anyone here experimented with GeoLocations and calling PendingIntents to BroadcastReciever? geofences are successfully added but reciever is never called. the only time it is called is when i open my map inside my app. Sep 09 19:21:30 ok Im getting the size in SP to be 90 and the size without the SP method to be 30, seems legit Sep 09 19:21:44 I add 10 to it,becomes 40; legit Sep 09 19:23:49 ownageeeeeee Sep 09 19:24:30 http://hydra-media.cursecdn.com/dota2.gamepedia.com/7/74/Announcer_ownage_01.mp3 Sep 09 19:27:16 thanks SimonVT Sep 09 19:37:55 I am working on an app that runs a background thread that it is doing io processing through bluetooth, HID, etc. We have a couple of Activities and Fragments that receive these events and update the UI. If I am on an Activity or Fragment and make the connection I do not get UI updates until I go back to main menu then reload the view. Sep 09 19:38:53 is there a way to reload the activity or fragment while a user is viewing it? Sep 09 19:39:58 you should probably address "If I am on an Activity or Fragment and make the connection I do not get UI updates until I go back to main menu then reload the view." instead of reloading the activity just to refresh it Sep 09 19:41:47 if your connection in living inside the main activity why not just push down to whatever hosting the data viewed to invalidate Sep 09 19:42:02 eg find the listview in your list fragment and call notifyDataSetChanged on its adapter Sep 09 19:43:18 runOnUiThread plx Sep 09 19:43:25 we have a bunch of custom views Sep 09 19:43:50 that are loaded in a Fragment Sep 09 19:44:00 i think you can call invalidate on the parent viewgrop and it'll have all the children (your custom views) redraw themselves... Sep 09 19:44:32 do these events on activity/fragment.. do they come from bluetooth thread? Sep 09 19:44:42 here is one of them https://github.com/MAVProxyUser/NoTauLabsNag/blob/gridview/androidgcs/src/org/openpilot_nonag/androidgcs/fragments/Map.java Sep 09 19:44:56 you need to call notifyDatasetChanged on the main thread: not your bg thread. Post a message back to the main activity which should then know how to invalidate the datasets of its fragments. Sep 09 19:45:15 (via an implemented interface declared by the fragment maybe) Sep 09 19:46:22 how to fix this error please ? ***cannot resolve method 'schedule(java.util.timertask)'*** Sep 09 19:47:11 TimerTask ? Sep 09 19:48:04 StingRay_ i'm reading bits of apple news as it percolates to some places, seems pretty boring Sep 09 19:48:41 viperZ28: try calling getView() in your activity and calling invalidate on that view (that's the root of the fragment) which should force all the children views to redraw Sep 09 19:48:43 ugh, and that watch... Sep 09 19:49:01 then you can add an interface onDataInvalidated as rgr said and call it from your main / hosting activity when updates occur Sep 09 19:49:37 ok I will check into that, thanks Sep 09 19:50:31 g00s they innovated so much with the new iphone that the design is back to the 1st gen :) Sep 09 19:50:44 Your custom views should invalidate themselves when their data changes.. There's pretty much never any reason to invalidate views from outside of a View Sep 09 19:55:55 well i guess its cool the camera sensor uses phase detection for autofocus Sep 09 19:56:47 * g00s wonders if sony supplies any sensors with that to android oems, or if this is a first on a phone Sep 09 19:58:15 g00s not totally sure it's needed tbh Sep 09 19:59:45 how to fix this error please ? ***cannot resolve method 'schedule(java.util.timertask)'*** Sep 09 20:00:37 xar__ ugh, scheduleExecutionTime ? Sep 09 20:00:56 g00s, yup Sep 09 20:24:38 Hi guys, How do I allow only the native gallery app to be open when i want to pick an image Sep 09 20:24:39 is there a way to check whether the data you get back from photolibrary is a video or an image? Sep 09 20:24:44 in the function OnActivityResult Sep 09 20:25:56 meadhikari: you don't Sep 09 20:25:57 meadhikari: you use an intent to start up the photolibrary Sep 09 20:26:09 then implement onactivityresult to get the data back Sep 09 20:26:16 Sixmsj: if they have it and haven't disabled it, or switched to photos, etc, etc Sep 09 20:26:28 hardcoding to your flavor of gallery is a good way to get a broken app on different phones Sep 09 20:26:47 i misread his question dragorn ;] Sep 09 20:26:50 Sixmsj, i want to limit the photo selection to just the images present in the sd card, how would i do that Sep 09 20:27:07 they might not have an sd card Sep 09 20:27:38 meadhikari: write your own image browser then. But why would you want to do that? You're going out of your way to break standard user interaction & do things the user isn't expecting Sep 09 20:29:10 dragorn, all i wanted was compress the bitmap before sending to web service, to compress i needed the real path of the image which i was not able to get when image from google+ photo app was selected Sep 09 20:29:29 use mediastore Sep 09 20:29:35 meadhikari: you'll have to write your own image browser using mediastore then Sep 09 20:29:36 how would you compress a bitmap without causing out of memory error Sep 09 20:29:53 I'm having troubles making a generic white square in the eclipses activity editor Sep 09 20:30:12 i'm curious how you end up with bitmaps in the first place considering almost anything the user does to generate an image is liekly to make a jpeg Sep 09 20:30:19 and jpeg doesn't compress so well beyond what it already offers Sep 09 20:30:49 Tried using a textureView, but it's black by default and I can't figure out how to change it's color Sep 09 20:31:18 Glitches: make a generic view and set backgroundcolor in the properties Sep 09 20:31:22 Glitches: might do it Sep 09 20:31:32 dragorn, what my app does is get an image from either gallery or camera and sends it to web server Sep 09 20:31:50 meadhikari: kay. Sep 09 20:31:58 dragorn, so i get the bitmap, compress it, encode it and send it to web server Sep 09 20:32:04 meadhikari: You keep saying bitmap. Sep 09 20:32:11 dragorn, which part am i doing wrong Sep 09 20:32:22 dragorn: Sweet, worked Sep 09 20:32:48 dragorn, the image object is of type Bitmap what should i be saying? Sep 09 20:32:48 You take a compressed image, loadit as a Bitmap, compress it, then send it to a web server Sep 09 20:35:16 SimonVT, how would i display imageReturnedIntent in a imageview encode it and send it to the web service than? please help Sep 09 20:39:15 Write the file/inputstream directly to the OutputStream or whatever you're using to send data to the server Sep 09 20:39:26 Display it separately Sep 09 20:42:14 I'm sure there's a way to get a handle to any source the gallery passes to you, it shouldn't necessarily have to be a file Sep 09 20:48:59 I installed the new Eclipse and ADT now I get errors on all lines that has to do with the Android API. Any ideas? Sep 09 20:51:02 install the Android SDK properly? Sep 09 20:51:13 Yeah Sep 09 20:51:19 Well, I think so :) Sep 09 20:52:28 I suspect that some android library did not get imported properly. But how do I know if I installed the SDK properly? Sep 09 20:54:13 Looks like Android Dependencies doesn't contain any jars Sep 09 20:54:53 is there any way to copy & paste from desktop web browser into Keep ? Sep 09 20:55:08 in other words, can I access Keep from Play or something ? Sep 09 20:55:59 ah, keep.google.com Sep 09 20:56:03 nice ! Sep 09 21:03:40 how to add some buttons to the top bar, please ? Sep 09 21:04:16 hy all Sep 09 21:04:29 xar__: http://developer.android.com/guide/topics/ui/actionbar.html#ActionItems Sep 09 21:04:30 can you advice me a good audio library for android applications? Sep 09 21:08:41 dragorn, thank you so much ! Sep 09 21:09:30 meadhikari you can get local file/stream from things like picasso/gallery etc or photo app backed of g+ or drive etc Sep 09 21:09:52 though there are api variances for how to get it from JB to KK Sep 09 21:11:51 just a quick check, if I have a few fully overlapping layouts, a framelayout would be more efficient than relativelayout, correct? Sep 09 21:12:00 StingRay_, thanks for the help, i am displaying it directly from the uri and using getDrawingCache() from imageview to upload to the server, is it a good way? Sep 09 21:12:41 erm…is the drawingCache not optimised for the view and size ? Sep 09 21:13:04 as in almost nothing at all (other than visual) to do with the actual resource file Sep 09 21:13:49 so unless some1 corrects me, no… thats about the worst way you could do it :) Sep 09 21:14:42 so are yall still going by the back button guidelines, or treating it like the up button? I keep seeing apps that do it like the up button Sep 09 21:16:24 anyone know if you can tell AS/IJ to show the decoded strings in a string resource auto completion drop down? Sep 09 21:19:33 My project fails to import compat_v7 Sep 09 21:25:15 g00s: following the iphone launch ? Sep 09 21:25:49 game over! iphone 6 is out! Sep 09 21:26:28 trying to find a non-fanboy site with details... all i'm reading is how awesome apple are :/ Sep 09 21:27:47 All I read is android geeks saying its rubbish and the Samsung is better and "freeer" ;) Sep 09 21:30:11 NFC on the watch isn't quite what i thought it'd be :( Sep 09 21:30:47 NFC still seems like a great idea, but hasn't really taken off... well not in AU anyway Sep 09 21:31:44 StingRay_, what could be the best way, please help Sep 09 21:33:54 meadhikari using Content provider queries to get the path Sep 09 21:34:28 whats NFC? Sep 09 21:34:37 so ExternalStorageProvider and DownloadsProvider and MediaProvider Sep 09 21:34:48 StingRay_, i mean for uploading Sep 09 21:35:01 meadhikari what ? Sep 09 21:35:29 need to send the image to web services Sep 09 21:35:43 k Sep 09 21:35:58 i have the fileuri and using that to display in imageview now Sep 09 21:37:24 meadhikari you know those are 2 statements right ? Sep 09 21:37:49 yes, separating two things as you said Sep 09 21:38:11 I mean is there a question ? Sep 09 21:38:46 Loading this in my webview, or in chrome, I get a blank screen and it fails to load: http://pastie.org/9540048 But, I go to http://www.onlinehtmleditor.net/ and paste it in, and it works fine. Sep 09 21:38:54 What is wrong with that Sep 09 21:39:44 Been pulling my hair out for 2 days now Sep 09 21:39:56 Is it possible to write JUnit tests for classes that only use android.util.Log? Robolectric is too slow to use just for a no-op implementation of Log Sep 09 21:41:15 sorry for my English, I mean I get image from gallery and need to display in image view and upload it to the web service, i did the displaying part, so my question is what is the best way to upload it? I had use base64 encoding but it really slow, please help thanks Sep 09 21:42:00 StingRay_, ^ please help if you can Sep 09 21:42:11 rgr, NFC is near field communications so you can pay with your apple iphone, unlike android which doesnt do anything useful. Sep 09 21:42:39 im kidding Sep 09 21:43:39 meadhikari sorry I thought you wanted to get he physical file location from a uri … thats what I was answering Sep 09 21:52:16 Can someone help me figure out why neither webview, nor chrome will load this: http://pastie.org/9540067 Sep 09 21:52:23 The script src is perfectly valid Sep 09 21:57:29 what's the specific error? right away i see that there's a biblia namespace but i dont' see an entry defining it Sep 09 21:57:44 i don't know if WV or Chrome will poop on that tho Sep 09 22:04:55 desmin88 there is no body tag, so i don’t think it will display anything Sep 09 22:07:06 ive tried every stupid combination Sep 09 22:08:13 Here: http://pastie.org/9540098 Sep 09 22:08:22 still doesnt wnt to load Sep 09 22:08:44 Is there a way to set default schedulers for RxJava? Specifically I want to subscribe on Schedulers.io() and observe on AndroidSchedulers.mainThread() unless I specify otehrwise Sep 09 22:09:31 Chrome gives me "file or directory could not found" Sep 09 22:10:56 JacobTabak: no way to specify a 'default', no Sep 09 22:11:17 bankai_au: i noticed that when I chained together two retrofit methods i need to specify the scheduler and observer on each call, is that correct? Sep 09 22:11:38 desmin88: did you see what sarbs said before you timed out? what's the specific error? right away i see that there's a biblia namespace but i dont' see an entry defining it Sep 09 22:11:38 chained how Sep 09 22:11:54 with a flatmap Sep 09 22:12:18 canvs2321: no i didntr Sep 09 22:12:19 the scheduleOn is already set Sep 09 22:12:53 canvs2321: I get the embed code from http://biblia.com/plugins/EmbeddedBible Sep 09 22:13:01 JakeWharton: I assumed I only needed to set it once but I encountered some threading issues, I’ll dig a bit deeper Sep 09 22:13:29 it seemed like when the 2nd retrofit call returned i wasn’t on the ui thread even though I set observeOn(AndroidSchedulers.mainThread()) Sep 09 22:13:49 and when i say returned, i mean when my observer’s onNext() was called Sep 09 22:14:30 service.foo().flatMap(r -> service.bar(r)).observeOn(mainThread()).subscribe(v -> println(v)); Sep 09 22:14:33 is that basically what you have? Sep 09 22:14:52 i had the observeOn() before the flatMap() Sep 09 22:15:05 that’s the problem then? Sep 09 22:15:51 desmin88 it's a bug (or feature) in biblia's javascript. it's trying to access file://biblia.com/api/plugins/embeddedbible?resourceName=douayrheims&layout=normal&startingreference=Ge1.1 Sep 09 22:16:07 JacobTabak: yes Sep 09 22:16:12 there must be a work around for not tripping over android.util.Log in JUnit tests if that’s the only android thing a class is using Sep 09 22:16:13 put it as late as possible Sep 09 22:16:34 ah Sep 09 22:16:36 that file: should be an http: (really, https:) but since you and i are loading it from local disk, it's a file: - their javascript code is creating a path via "//biblia.com/..." Sep 09 22:16:57 so i’ll call subscribeOn() early (before the first network call) and then only call observeOn() when i’m ready to actually observe on the main thread Sep 09 22:17:34 doubleo2 write a wrapper that checks if Log exists on first use, and no-ops subsequently if that check fails Sep 09 22:17:47 and use that wrapper errwhere Sep 09 22:18:10 Hi, i'm trying to access to the user download folder in this way: "List files = getListFiles(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS));", but in some devices, specially in 2.3.6 version the list is empty, is it possible to get the files in another way? Thanks a lot. Sep 09 22:19:06 sarbs, i like the way you think Sep 09 22:19:46 JacobTabak: subscribeOn is set for you Sep 09 22:19:54 but you can override if you want Sep 09 22:19:54 sarbs: So now go to here: http://www.ucatholic.com/bible same embed code, and it works Sep 09 22:20:04 JakeWharton: good to know Sep 09 22:20:15 desmin88 right. that's loaded via http:, not file: Sep 09 22:20:25 oh shiet Sep 09 22:20:25 its working perfectly now, thanks Sep 09 22:20:54 so when biblia's JS tries to compose a URL by doing { location = "//biblia.com/......."; }, it gets set to http://biblia.com/....... Sep 09 22:20:57 instead of file://biblia.com Sep 09 22:21:30 on one hand it's a feature of theirs, since if you load your code via http, it will do it via http, and if you use https, it will use https Sep 09 22:21:35 but it breaks local development Sep 09 22:21:49 ahh Sep 09 22:22:23 so then how could i load that into a webview? Sep 09 22:22:46 i think personally that they should have hardcoded to https://biblia.com/, and if people complained that they got https-in-non-https-setting warnings, biblia should tell them "wtf are you doing not using https" Sep 09 22:23:21 there's a method to spoof the load protocol.. hold on Sep 09 22:25:16 https://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) Sep 09 22:25:42 bah, the url fragment borked Sep 09 22:26:08 you want WebView.loadDataWithBaseUrl. specify the baseUrl to be https://something and it *should* work Sep 09 22:28:43 Can someone help me on this, please ? http://android.stackexchange.com/questions/82283/how-to-properly-display-a-menuitem Sep 09 22:32:43 Can someone help me on this, please ? http://android.stackexchange.com/questions/82283/how-to-properly-display-a-menuitem Sep 09 22:33:22 ask again, that's not annoying at all Sep 09 22:44:37 hi people, quick question: Is there something like in css would be a a div with position:absolute that I can use to slide under some text without moving the text position? I want to do this to be able to change the background on a piece of my app Sep 09 22:45:19 Basically my app has a background color, and text on screen. I want starting from bottom, 1/3 of the screen to have another background color without moving text position, thats why I referenced the position:absolute thing on css. Sep 09 22:45:47 Webflashing thats based on the layout ability of the parent viewGroup Sep 09 22:46:04 have a look at the various viewGroups to see what works as a parent and fits what you want Sep 09 22:46:30 frameLayout and relativeLayout come to mind Sep 09 22:46:41 StingRay_, I see, so far I tried this ysing Linearlayout and another view http://www.hastebin.com/nedaxuwifo.xml Sep 09 22:46:53 But it moved the content up Sep 09 22:47:00 Ill check those then Sep 09 22:47:11 Can someone help me on this, please ? http://android.stackexchange.com/questions/82283/how-to-properly-display-a-menuitem Sep 09 22:47:14 linear stacks Sep 09 22:47:25 the other two I mentioned layer Sep 09 22:47:43 ill try them now then, thanks! Sep 09 22:49:02 Can relativelayout be z ordered though? Sep 09 22:49:17 ProjectN: not in oooh ok Sep 09 22:49:38 z order determined by order defined in xml or added Sep 09 22:50:07 this is part of material design? Sep 09 22:50:14 nothing to do with it Sep 09 22:50:28 well, the api will be released at the same time, so not exactly nothing Sep 09 22:50:39 oh, timing then :) Sep 09 22:50:40 if you’re using a material theme, you can use z-order in your xml Sep 09 22:51:06 is there a list of backported support functionality yet ? Sep 09 22:51:13 for the support libs ? Sep 09 22:51:34 * StingRay_ has not looked at android L yet Sep 09 22:51:35 hm they’ve talked about it briefly, cardlayout and recylcerview Sep 09 22:51:44 cardlayout will have emulated shadows Sep 09 22:51:53 I have shadows now Sep 09 22:52:15 with what can be seen as Z height, but is just a distance type thing in my drawable Sep 09 22:52:19 …well android l has real shadows powered by opengl Sep 09 22:52:27 has it though ? Sep 09 22:52:32 there would be no point Sep 09 22:52:37 why not? Sep 09 22:52:43 cause they are static Sep 09 22:52:46 if you’re dynamically rainsg or lowering UI elements Sep 09 22:52:50 you’d want the shadows to reflect the changing height Sep 09 22:53:07 the thats just and offset / size Sep 09 22:53:11 nothing to do with 3d Sep 09 22:53:47 sarbs: you beautiful bastard Sep 09 22:53:55 desmin88 ;) Sep 09 22:54:33 I have a problem with L actually, when I try to compile and run it on 19 devices it says its for a lesser api? Sep 09 22:55:11 StingRay_: https://www.youtube.com/watch?v=lSH9aKXjgt8#t=661 Sep 09 22:55:16 my device is 4.4.2 and it wont run on it? Sep 09 22:55:22 ProjectN: you need to use an L preview image Sep 09 22:56:01 JacobTabak thats crazy Sep 09 22:57:42 JacobTabak I would think that is crazy sill to do it like that, unless they are just doing that for show Sep 09 22:58:27 i don’t understand why you say that Sep 09 22:58:50 devices have the power to do this stuff these days, why not? Sep 09 22:58:52 cause doing area light calculations on something that shows no benefit from simply faking it Sep 09 22:58:58 is to me just crazy Sep 09 22:59:13 well they do all the work, all we have to do is use it and benefit from it Sep 09 22:59:23 in that video there are some side by sides of emulated shadows vs real shadows Sep 09 22:59:30 and the cases in which it really makes a difference Sep 09 22:59:50 still watching Sep 09 23:00:18 sarbs: now i just have to get this to takeup the whole webview Sep 09 23:00:35 does anyone know how to integrate the inmobi extension with admob? I don Sep 09 23:00:56 I don't think I am adding the ID correctly Sep 09 23:02:38 iPhone 6 (Not Plus) in Black 32GB plz Sep 09 23:02:44 JacobTabak yep… watched enough now, and thats just the silliest thing ever Sep 09 23:03:06 desmin88 take those width and height attributes in the biblia tag and either replace them with string tokens that you then replace @ runtime (if you're loading into a String and then loading into webview), or write a JS function that runs before the init() code and changes those attributes to window.innerWidth/innerHeight Sep 09 23:03:23 I keep getting "NoClassDefFoundError" Sep 09 23:03:35 if you're pointing the webview directly at a file Sep 09 23:03:39 I've already add my libraries to the lib folder Sep 09 23:03:45 Glitches: which class can’t be found? Sep 09 23:04:02 JacobTabak: org.apache.http.util.Args Sep 09 23:04:19 gradle or ant? Sep 09 23:04:36 maybe one of your libraries has another dependency that you’re not including? Sep 09 23:05:43 do you have compile 'httpcomponents-httpcore:httpcore:4.0-alpha6' in your dependencies? Sep 09 23:06:29 JacobTabak: I'm using ant I think (just stock eclipse) Sep 09 23:08:24 anybody used RemoteViews before? is it really true there is no way to use a layout through RemoteViews if it contains a custom view? Sep 09 23:08:41 sarbs: What i tried before was setting the width/height to the webviews width/height but it remains a weird size Sep 09 23:09:04 ravilov: i believe unless they changed it, you cannot Sep 09 23:09:09 ravilov yeah, RemoteViews are pretty limited Sep 09 23:09:32 ravilov: what's custom? Sep 09 23:09:43 couldnt NoClassDefFound could also be that your using newer api stuff on an older device. Sep 09 23:10:06 if you're in control of both ends (producer and consumer) of the RemoteView then i have a workaround i'm tinkering with but it won't help with widgets. Sep 09 23:12:14 apparently the width and height of the webview is -1 Sep 09 23:12:22 JacobTabak: Now I'm getting "NoSuchFieldError" Sep 09 23:12:40 Sorry, dced Sep 09 23:12:45 JacobTabak: Now I'm getting "NoSuchFieldError" Sep 09 23:12:54 desmin88 innerHeight in javascript or webView.getHeight() in java? Sep 09 23:13:04 webview.getheight Sep 09 23:13:19 i think i know why Sep 09 23:13:22 well that sucks; I'm pretty much stuck with having to use RemoteViews (not my app so can't change it), having a custom view would have been a nice and clean way to do what I want but now this ruins that idea Sep 09 23:13:35 gotcha. that prob just means it hasn't been laid out yet Sep 09 23:13:58 canvs2321, er, class MyView extends View ? Sep 09 23:14:04 Yeah i was pulling the width/height in oncreateview Sep 09 23:14:58 Glitches, like if you are using newer RenderScript api things it will build maybe but not run on a device running 4.1 Sep 09 23:14:59 ravilov: what does your custom view display? Sep 09 23:15:21 oh, it just manipulates its background drawable Sep 09 23:15:57 yeah I'm still dealing with the rounded corners situation Sep 09 23:16:00 well don't need custom view for that if need widget Sep 09 23:16:38 I don't need it but this would've been a nice and ellegant way to deal with it Sep 09 23:17:03 tbh I'm not sure why the guy chose to use remoteviews anyway Sep 09 23:17:10 :) Sep 09 23:17:27 sarbs: When exactly is it laid out and I can get the width,height? I tried onactivitycreated, but im getting 0,0 Sep 09 23:18:05 onStart Sep 09 23:18:37 oh well, will have to come up with some workaround I guess Sep 09 23:18:40 thanks Sep 09 23:19:04 ravilov, why not place a bitmap with round square missing in view and place it on top in a framelayout Sep 09 23:19:05 it can potentially be laid out many different times. https://developer.android.com/reference/android/view/View.OnLayoutChangeListener.html Sep 09 23:19:06 Glitches: its probably a dependecy version thing, sry was away Sep 09 23:19:51 well this is a bitch Sep 09 23:19:59 ProjectN, because the background the layout is supposed to sit on is not opaque solid color Sep 09 23:20:18 desmin88 i'd go with writing a simple JS block inside the html first - that way, you get the drawable area the webview is reporting, not the outer bounds of the webview as seen by the framework Sep 09 23:20:33 probably a better idea Sep 09 23:20:45 there are onresize events in JS you can hook into as well - not sure precisely what they're called Sep 09 23:29:22 i am attempting to diagnose a memory leak in someone elses code base. i have taken a heap dump of the application with the offending workflow being executed once and another once the workflow had been executed many times. i then compared the two hprof files in MAT however i am unsure what i am looking at. is there any way to see the difference in the references?? Sep 09 23:30:14 JacobTabak do you know much about 3d shadowing etc ? Sep 09 23:30:42 cause you really have just shocked me … maybe I should watch more of the vids Sep 09 23:41:43 teasp00n: for the record, are you using chromium? Sep 09 23:43:15 ravilov, is this what you mean? http://imagebin.org/319229 shouldnt matter if your layout background is not opague Sep 09 23:46:46 how to redirect the user to another layout onclick on button from the MenuItem, please ? Sep 09 23:47:26 xar please go through the tutorials Sep 09 23:47:29 xar you’d probably want to show the user a new fragment or activity Sep 09 23:48:00 JacobTabak, yes but how I'm trying to deal with this using "onOptionsItemSelected" Sep 09 23:48:02 sarbs, so i set the height and width to the windows height and width but theres still a bit of scroll play Sep 09 23:48:05 xar you will get to what you want quicker if you do Sep 09 23:48:48 StingRay_, I wasn't able to find a good tutorial about this. All what I've found are using the OnClick event Sep 09 23:49:23 xar you are asking questions without a clear understanding of basics, the basics are covered in the getting started guides on d.android.com Sep 09 23:50:05 xar: http://developer.android.com/reference/android/app/Activity.html#onOptionsItemSelected(android.view.MenuItem), compare the id of the selected menu item with the id of the your menu item that you defined Sep 09 23:50:30 hi there, I have 4 fragment and each has it's own PopupMenu. Is this consider bad UX? Sep 09 23:50:56 (and excuse the bad grammur) Sep 09 23:51:02 grammar Sep 09 23:51:05 JacobTabak, yup that's what I've done, after that I've used this line "startActivity(new Intent(MainActivity.this, DrugAdd.class));", but it wouldn't redirect me to DrugAdd Sep 09 23:51:42 tanks for correcten me ;) Sep 09 23:51:46 xar: does DrugAdd extend activity and is it defined in the manifest? and have you checked your logcat? Sep 09 23:54:06 JacobTabak, thank you! Sep 09 23:55:06 rburgosnavas: to answer your question. it's hard to know without seeing it and without context... could be good, could be bad Sep 09 23:56:14 i’ve never used a popupmenu in my life so it can’t be good UX :P Sep 09 23:56:57 Hi guys. I test my app in emulator and I noticed that after I Run my app for the second time from my IDE in emulator there are 2 instances of my app appear in recent apps screen, any ideas on why such thing might happen? Sep 09 23:57:34 AlexBerdnikov: http://developer.android.com/guide/components/tasks-and-back-stack.html Sep 09 23:57:39 I mean for the second (and more) time after emulator is started Sep 09 23:57:40 either that or you changed your package name Sep 10 00:00:18 Yes, I changed package name in the past but why does it make such effect? Sorry, I'm pretty noob at android dev so it's certainly that I miss somthing... Sep 10 00:00:35 if you change your package name (app id) then you can have two versions of the app installed at the same time Sep 10 00:00:48 since it would be considered two apps Sep 10 00:01:11 AlexBerdnikov: i thikn your problem is probably related to the app entry point or run configuration Sep 10 00:01:35 are you launching the default activity, or specifying the activity manually in teh run configuration? Sep 10 00:02:04 I launch default activity which is marked as such in the manifest file Sep 10 00:02:53 have you made sure you don’t have multiple versions of your app installed on the emulator Sep 10 00:04:40 rburgosnavas: do the popmenus do the same thing? yes bad design, no? depends on how differnet they are Sep 10 00:05:08 Damn it you're right there are 2 apps installed (the older one is on another page of menu and I didn't notice that at all) Sep 10 00:05:15 Feel so dumb now Sep 10 00:05:23 ;) Sep 10 00:05:27 Thank you very much mate! Sep 10 00:06:37 lasserix: yes they do the same thing Sep 10 00:06:55 I guess ActionBar actions would be better... Sep 10 00:07:35 well what i mean is if they do the same thing, then callback to hosting activity and tell activity to show pop up then activity only has popup Sep 10 00:07:53 since they are common to the fragments... Sep 10 00:08:39 yeah, I think that would be better Sep 10 00:08:45 ok, thanks! Sep 10 00:12:14 desmin88 maybe try outerWidth/Height instead of inner.. if that doesn't work, from this point on i'd be experimenting alongside you, we've reached the limit of my knowledge Sep 10 00:12:36 ##javascript might be a big help regarding sizing things to window dimensions Sep 10 00:42:54 I want to ping a url in my app: www.website.com/?id=2 the id parameter will be filled by the app actions. but it should just ping it, not load the page or any content. I am not sure even where to look on the developer config. Where should I do look for this? any keywords I should google? Sep 10 00:47:22 in_deep_thought: use an httpurlconnection Sep 10 00:47:39 wrapped in an async task Sep 10 00:50:45 or in a service. but an async will at least get you there until you start seeing problems. Sep 10 00:51:04 i'd also suggest using OKHTTP from square since it handles a lot of nonsense for you and simplifies things Sep 10 00:51:12 nonsense sucks! Sep 10 00:51:20 in_deep_thought: http://pastebin.com/d5KuHpHi Sep 10 00:51:24 make libraries handle it for you Sep 10 00:51:39 if he is just doing a ping Sep 10 00:51:43 with no other reason Sep 10 00:51:55 JakeWharton: I agree. I was trying to figure out if I wanted to rewrite for mortar but now I'm on my way to a migraine so i stopped :P Sep 10 00:51:57 but to ping, what's the point of incorporating an entire library? Sep 10 00:52:10 lasserix: holy moly. 1) did you just write all of this? 2) do I really need all of this just to ping a url? Sep 10 00:52:15 so? He still has to deal with timeouts, redirections, etc. Sep 10 00:52:47 in_deep_thought: yeah, more or less. you could add an entire library to do it for you like these two advocate ;p Sep 10 00:53:03 dragorn: i had the same experience with experimenting with mortar Sep 10 00:53:22 desmin88: heh. in this case i mean literally, i'm getting a migraine :P Sep 10 00:53:30 i wish i had known about okhttp before i started my current project, alas i did not. but if you are NOT doing anything more than "pinging" this will suffice (you may have to alter some stuff for redirects as dragorn said) Sep 10 00:53:33 so i'm abotu done and should probably head home before it kicks in Sep 10 00:53:49 Do you HAVE to use okhttp? no. Will it make your life simpler? yes. Sep 10 00:53:56 i also tried to restructure my app according to that neat blog post g00s pasted Sep 10 00:54:15 but it was so connective tissuey Sep 10 00:54:17 oh JakeWharton thanks for that talk on dagger / dependency injection it was very clear Sep 10 00:54:24 cool. i'm glad Sep 10 00:54:27 if you include okhttp it's about 4 lines of code after that. Sep 10 00:54:28 complex topic Sep 10 00:54:34 JakeWharton: was this a recorded talk? Sep 10 00:54:36 especially when dealing with Android's nonsense Sep 10 00:54:50 yeah i like how you point out how we use DI all the time with constructors Sep 10 00:55:01 dragorn yeah one sec Sep 10 00:55:10 dragorn: yeah, see https://speakerdeck.com/jakewharton/android-apps-with-dagger-devoxx-2013 Sep 10 00:55:16 link to video is in the description Sep 10 00:55:22 awesome thanks Sep 10 00:57:15 I want to implement a simple ADB CLIENT to install APK. But I didn't find the 'install' request in SERVICE.txt of ADB. What message should I send to ADB SERVER to install APK Sep 10 00:57:21 dragorn yeah be sure to look at the sample project U2020 or something Sep 10 00:57:52 yep. i should throw that link in the description Sep 10 00:59:50 im interested to see if i can use dager in game development to make getting a handle on resources / components of the game framework easier :) Sep 10 01:00:43 i want dagger2 to come out Sep 10 01:00:48 Agamemnus: yes, im using chromium. why? Sep 10 01:02:24 Any idea about how to implement 'adb install .apk' ? Sep 10 01:03:56 is there some way to count lines of code in intellij? Sep 10 01:06:19 Hey, I am on a MacBook Pro and I don't an Android either, I want to develop Android apps though and I know I am converting from iPhone to Android when the Nexus 6 comes out, question is... can I still learn and write code for Android without an actual android for now? Sep 10 01:06:25 probably a weird question :/ Sep 10 01:06:42 yeah of course Sep 10 01:06:46 there is the emulator Sep 10 01:07:12 there's the stock one and then another one that runs faster but i can't recall the name Sep 10 01:07:29 genymotino Sep 10 01:07:33 Alright, so the emulator is good enough to rely on? I wasn't sure because I do some iOS dev and the emulator has some quirks and I had to buy the $99/year apple developer program just to get my app on my phone to test. Sep 10 01:07:35 also walmart sells an android 4.0 device for 20$ without contract Sep 10 01:08:04 tdelam: enough to get started, definatly, esp if you are going to get the n6 later Sep 10 01:08:24 http://www.amazon.ca/Android-Programming-Nerd-Ranch-Guide/dp/0321804333/ref=sr_1_1?s=books&ie=UTF8&qid=1410310913&sr=1-1&keywords=android+programming this is what I was thinking of doing while I wait for the n6 Sep 10 01:08:25 ^^genymotino is the other emulator you should get Sep 10 01:08:34 lasserix: oh yea, 110% I am getting the n6, I can't wait. Sep 10 01:08:40 yeah that's highly recomended Sep 10 01:08:46 ok noted, thanks a ton! Sep 10 01:08:50 music to my ears. Sep 10 01:08:51 tho you might just start with the developer tutorial docs Sep 10 01:09:03 http://developer.android.com/training/index.html Sep 10 01:09:10 Ok Sep 10 01:09:16 desmin88: don't we all Sep 10 01:09:17 theoretically you don't need that book for now, just do everything on that website Sep 10 01:09:43 I like the learn from example style. I have always liked the big nerd ranch stuff. Sep 10 01:11:45 dagger2 lack of reflection is pretty neat Sep 10 01:12:24 tdelam: yeah but if i remember going through that book it assumes you know a lot of stuff, that would be exactly covered in the training guide Sep 10 01:12:40 *know a lot of stuff = understand the basics Sep 10 01:16:20 lasserix: ok thanks, I'll do that guide first then. Sep 10 01:42:09 hi, I'm trying to do setMinimumWidth in a TextView constructor, but I'm not sure how to access the measureText function since I have no Paint object Sep 10 01:42:31 something like: setMinimumWidth((int)???.measureText(widestString)); Sep 10 01:45:30 who exactly is that mysterious op Sep 10 01:46:17 he is kroot Sep 10 01:46:35 oh well that explains things Sep 10 01:48:07 coax75ohm, getPaint() of your textview? Sep 10 01:48:53 hey all, I am trying to change listSelector's highlighted entry color. I have tried creating a listview_selector.xml in res/layout, but I believe that is not the correct place for it. At least Android Studio complains that it can't find the "shape" class. Any ideas? Sep 10 01:49:13 it goes in drawable Sep 10 01:49:21 that was easily google-able Sep 10 01:49:52 Ok I google and found that answer as well, but I have three drawable folders, I though only images went there Sep 10 01:50:01 googled* Sep 10 01:50:15 canvs2321, hmm, I swear I tried that before, seems to work this time though Sep 10 01:50:26 that was also easily googable Sep 10 01:50:27 http://stackoverflow.com/questions/12709480/android-where-to-store-selector-xml-file-for-customed-design-controls Sep 10 01:50:50 Ok my bad, thanks Sep 10 01:50:59 coax75ohm: cool Sep 10 01:52:02 thanks for making me try it again Sep 10 01:56:46 what i just realized ... not sure i'd want a rechargeable lithium battery strapped to my wrist Sep 10 01:57:43 Apparently moto's watch advertises 320mah, but only delivers 300, sounds kind of scammy. Sep 10 01:57:58 yeah and a 4 yr old soc Sep 10 01:58:36 Still have to hear from Apple as to what battery their Apple Watch'll have Sep 10 01:58:36 meh, nobody would notice 300 vs 320mah. the whole idea of mah is more complicated than one expects ;) Sep 10 01:58:54 Still, false advertising Sep 10 01:59:01 current discharge curves are a function of load and temperature, age of the battery, etc Sep 10 01:59:28 Which is basically illegal for that matter Sep 10 01:59:34 not really Sep 10 01:59:42 20 mah is nothing Sep 10 01:59:46 SASDOE that sounds like a mistake to me; it could be 1000mAH but have a crappy ass design leaving it poor in battery life Sep 10 02:00:05 its a useless number Sep 10 02:01:00 not even sure why anybody advertises, i mean 3000mah vs 6000mah battery - that may be one thing Sep 10 02:01:29 but still, it all depends on the efficiency of the circuits, lcd - and fucking OS ;) Sep 10 02:01:30 I agree that the difference would be impossible to notice on a daily basis Sep 10 02:01:47 its impossible to notice without some very nice equipment Sep 10 02:03:00 Which probably isn't the case here Sep 10 02:03:04 also, lithium battery mfgs tend to give nominal and typical mAh values which are optimized for a certain current draw - whatever current draw that tends to be that gives them the highes number bwhahaha Sep 10 02:05:10 they would have to say 300mAh @ 50mAh load @ 70'C or something Sep 10 02:05:27 at 70 mAh load it might be 280mAh Sep 10 02:05:57 its kinda like comparing machine based on MHz ;) Sep 10 02:06:10 lessons by g00s_ Sep 10 02:06:14 oh but how many instructions per clock cycle :) ? Sep 10 02:06:41 intel vs amd Sep 10 02:08:45 something is seriously wrong with my system; randomly it fails to play any time of video Sep 10 02:08:49 until a restart Sep 10 02:24:34 who says mAh load... Sep 10 02:40:04 On google I see two ways to define a ListView layout, one uses ListView the other LinearLayout, which is the proper way? Or am I missing something? Sep 10 02:44:58 SASDOE: bit confused, where are you reading this? Sep 10 02:46:19 poor dude! http://i.imgur.com/hz1Jwh0.gif Sep 10 02:46:29 hahaha Sep 10 02:46:49 i like the way he shakes his head when he gets backup again hehe Sep 10 02:47:57 bankai_au did you watch the apple stuff? is their watch any different than the android ones ? Sep 10 02:48:06 in what its supposed to accomplish, etc Sep 10 02:48:37 ummm .... it has NFC and a spinny wheel on the side instead of a touch screen. looks like it takes your pulse too Sep 10 02:48:50 read some people bitching in #iphonedev that you have to re-auth to it every time you put it on. not sure what that's all about Sep 10 02:49:11 Also has a touch screen actually Sep 10 02:49:16 new iphone is ugly, watch looks good, but meh i expected more lol Sep 10 02:49:24 But no pinch to zoom on it Sep 10 02:49:58 bankai_au: I'm feel the opposite, not convinced by the watch, like the phone Sep 10 02:50:03 yeah, this is when investors panic hehe Sep 10 02:50:17 "omg jobs is gone where is the cool stfff" Sep 10 02:50:42 SASDOE: where'd you see the touch screen thing? it's difficult to find good information that isn't blowing smoke up apple's arse Sep 10 02:50:48 People keep expecting Apple to reinvent the wheel Sep 10 02:50:54 French website: igen.fr Sep 10 02:51:55 It's pressure sensitive supposedly Sep 10 02:53:22 i don't know if it's people expecting apple to reinvent the wheel. There's just huge hype and mass expectations from them and it seems so far, since cook took over, they haven't delivered. Not that it matters, the cult following will buy regardless Sep 10 02:53:47 i think it will matter Sep 10 02:54:08 its fun when the apple people say "its not who is first, but the timing that is important" Sep 10 02:54:18 http://www.theverge.com/2014/9/9/6127525/heres-how-you-use-the-apple-watch they talk explicitely of the screen Sep 10 02:54:21 i mea, there is something to it if you are first but half baked Sep 10 02:55:37 bankai_au: in that case Apple have only ever done two products worth their name: first iPhone and colored iMac or whatever it was called Sep 10 02:56:35 Oh and iPod **** ENDING LOGGING AT Wed Sep 10 02:59:58 2014