**** BEGIN LOGGING AT Tue May 05 02:59:59 2015 May 05 03:01:26 Ferdroid: paste the xml May 05 03:02:17 it's a default xml layout May 05 03:02:25 with a relativelayout and a textview May 05 03:02:31 nothing more May 05 03:03:10 idk if is a bug of android studio May 05 03:03:53 it doesnt render the design view May 05 03:06:26 it's using the api 22 to rendering May 05 03:09:13 Ferdroid: most likely a dependency issue. http://stackoverflow.com/questions/29887722 https://code.google.com/p/android/issues/detail?id=171417 May 05 03:13:54 anyone know why this would crash the inflater I love how my client renders the android:Drawable with a big :D icon in the middle May 05 03:19:18 I want to have a 'toggleable' action menu item in my toolbar. What's the best way to do this? A single menu item but changing icon and title, or should I have two menu items and alternating visibility? Or is there a better alternative? May 05 03:19:39 I mean, in the sense that when I press it, it changes appearance May 05 03:20:28 hi :) May 05 03:23:44 I have to develop a little app that showes post. every post has image, video and a little text. the request is that videos are behavior similar facebook app. when user stop scroll and video is visible it start automatically without audio May 05 03:24:05 how can i know when video is inside screen device May 05 04:10:14 phablets http://flurrymobile.tumblr.com/post/117769261810/the-phablet-revolution May 05 04:14:36 "The UK government is looking to give prospective buyers of electric two-wheelers a helping hand in the form of a subsidy that would cut the purchase price of such vehicles" May 05 04:14:45 JesusFreke i think they are discriminating against one-wheelers ! May 05 04:17:39 JesusFreke you around amigo? May 05 04:24:14 oh man, so you can't use ?attr/ in wtf May 05 04:25:28 NetworkingPro: eh? May 05 04:25:44 g00s: no fair. I want a subsidized solowheel May 05 04:28:19 JesusFreke maybe if you bought two unicycles at the same time they would give subsidy :) May 05 04:28:28 haha May 05 04:33:02 also, stability May 05 04:39:05 Leeds yeah https://www.youtube.com/watch?v=UxcLH-OdMKQ May 05 04:39:35 ok, so you can't use theme attributes references in selectors, drawables, whatever until 5.0 May 05 04:41:25 Hey guys, coming back after a lot of digging regarding the Android camera orientation. So I am using this code: https://github.com/pocmo/Instant-Mustache/ while forcing displayOrientation to be 90 as I want the camera to always work in a portrait mode. It seems like that on real devices this works fine but on the emulator it looks like this: landscape: http://take.ms/lExH2 portrait: http://take.ms/QjXQ6. What I want to a May 05 04:46:28 Hello May 05 04:47:40 I have a problem, my sticky IntentService is being recreated everytime i swipe it in the tasklist/last apps list. May 05 04:48:23 How can i make it still work after that without restarting it? May 05 04:49:04 surf2b1: thanks to you I already fixed my problem May 05 04:49:35 Ferdroid: glad to head :) May 05 04:49:38 It is possible since there are many IRC apps that don't have to close their connections 'on swipe' May 05 04:50:05 can somebody help? :) May 05 04:51:38 hTmlDP if you swipe away an IRC app, i would expect 'killed' May 05 04:52:04 g00s: yeah May 05 04:52:20 g00s: you're right =p May 05 04:55:03 g00s: but the IRC connection never closes May 05 04:55:33 don't make it sticky :) May 05 04:57:01 g00s: but it'll stop then May 05 04:57:45 g00s: how can i make it work independently? May 05 04:57:53 ugh May 05 04:58:25 you can make it foreground, non-sticky May 05 04:58:33 if it gets killed, thats the end ! May 05 04:58:53 g00s: oh ok May 05 04:59:19 i dont see why sticky would make sense here ... you have no idea when (if) android would restart it May 05 05:01:06 hTmlDP so foreground, cpu wakelock maybe May 05 05:03:22 hTmlDP: are you using an IntentService for long lasting action? May 05 05:03:30 yes May 05 05:03:36 That is incorrect May 05 05:03:48 what should i use then? May 05 05:03:54 A service service May 05 05:04:01 to start with May 05 05:04:19 IntentService is for shooting off actions similiar to AsyncTask May 05 05:23:51 Hi all, again. I'm still running into some issues debugging my android app. My issues come on line 29/30. I believe the issue is the fact that I'm not giving createFromResource a second argument; however, I'm not sure what to give it. Can anyone please point me in the right direction? Despite research, I am still a bit stumped. Thank you! Note that this is just one file, ResultsActivity.java. http://pastebin.com/bvYUVV7k May 05 05:26:53 You need a new ArrayAdapter(....); May 05 05:28:55 line #30 you are referencing adapter variable while you are creating adapter line #29. are you following a tutorial? May 05 05:29:31 or is line #29 incomplete, and just left open? May 05 05:29:41 canvs2321: This is code I wrote a couple months ago, but I believe I followed a tutorial from my teacher May 05 05:29:57 if incomplete you need to give an array to use for your adapter in line #29 to finish it May 05 05:40:24 i have a trouble with camera activity May 05 05:41:39 the parent activity which call android native camera activity gets destroyed twice May 05 05:44:01 the lifeCycle http://pastebin.com/rAUN3Dbw May 05 05:46:00 Do you use the same Tag for all debug logging? or is it unique to activities? May 05 05:49:12 yes see the above text have the life cycle captured in debug log May 05 05:51:23 yes you use the same tag no matter where you are logging therefore no unique identifier, or it is unique and that tag is only used in one place? May 05 05:56:45 yes the tag is unique and debug in only one activity, so i am sure it is coming from the same activity May 05 05:58:54 ok thanks for your time i fount the answer :=> http://stackoverflow.com/questions/16014930/android-activity-getting-destroyed-after-calling-camera-intent May 05 06:00:35 rathodvikas10, that all just leads to your activity isn't being destroyed twice without a purpose, another activity/app is coming foreground making your app go through some lifecycle changes May 05 06:07:36 yup but it works normal for the other cells but it had the problem for samsung devices, the orientation was changes by the samsung device camera activity May 05 06:20:26 What is the difference between the "decode()" and "parseInt()" from the Integer class? I was trying to convert text from an EditText to an int and found the "decode" method but later discovered the "parseInt" method. May 05 06:21:57 One of them return an "int" and the other returns an "Integer". I am new to Java/Android dev. so I don't understand the difference. Can somebody point me in the right direction? May 05 06:24:27 I am looking for a simple camera app that writes the timestamp inside the picture rather than writing it on the picture file name. so name me please such app. thanks May 05 06:25:38 superlinux-hp why ask that in development channel ? May 05 06:26:25 Xeeshu: I'm not an expert... but one of the oddities of Java is that a few types are in-built, primate, outside the object hierarchy - like int, for example. Integer is an object, int isn't May 05 06:26:53 g00s, I am just enlarging circle of my search. that's all May 05 06:28:33 Xeeshu: read the javadocs for both methods :) May 05 06:28:40 Hmm, makes sense. As the famous quote goes "Everything is object in Java" but using any of the two won't make much of a difference right, Leeds? May 05 06:29:11 JesusFreke: I did, there's nothing much there. May 05 06:29:16 everything is an object, except those things that aren't :P May 05 06:29:26 Xeeshu: sure there is May 05 06:29:54 they both describe in detail the formats they accept May 05 06:30:08 and those formats are different May 05 06:30:25 although, I do find it a bit strange that decode returns an Integer, instead of an int. May 05 06:30:47 True, but they both return an int/Integer. I am not sure which one I should be using. That's the confusion, JesusFreke May 05 06:31:06 Xeeshu: which one matches the type of integer that you will be decoding? May 05 06:31:16 Do you need to be able to parse something like "0x12345678"? May 05 06:31:29 or something like 1234ABCD? May 05 06:31:36 or just a decimal integer? May 05 06:31:37 etc. etc. May 05 06:32:26 I would tend to prefer parseInt, because it returns an int, instead of an Integer May 05 06:32:44 Nah, I am asking the user to enter a time, which would be a number. And then I am converting it to an int so I can pass it to another method. May 05 06:33:09 Or is there any other way I can read an int directly from the EditText field without parsing/decoding? May 05 06:33:16 time is a number? May 05 06:33:43 I'd go with parseInt too but decode came first in the list... So I used that May 05 06:34:04 Time isn't a number? O.o May 05 06:34:08 hm, wouldn't you use a TimePicker ot something ? May 05 06:34:16 Like the start time and end time. May 05 06:35:06 Err, I haven't looked into that yet, g00s May 05 06:35:23 you aren't asking the user to type this in i hope :D May 05 06:35:43 I am fairly new to Android, first week to be precise. So.. May 05 06:36:56 Haha I am, for now. But I was playing with AlarmManager class. May 05 06:37:15 anyone knows why the android plugin in android studio would always use a linearlayoutmanager for custom views with custom managers? May 05 06:37:44 and how to work around that? May 05 06:56:47 <_genuser_> guys, design question: would you rather implement your own user registration, management? Or use existing user logins such as: facebook, google account, openid, twitter, instragram, etc. May 05 06:57:16 the latter May 05 06:57:28 <_genuser_> context: would like to retain as much user control as possible. I guess logging in with one of the existing ones, you justget a userid, that you can then use to create access control lists. May 05 06:57:29 much more convenient as a user as well May 05 06:58:08 <_genuser_> are there any security repurcussions? other than the user getting hacked one of those platforms or having a weaker password that you'd like. May 05 06:58:22 <_genuser_> s/that/than/ May 05 06:58:38 does depend a bit on the context though May 05 06:59:07 yeah, if i neededfacebook account to log into my oreilly books, i'd be pissed May 05 06:59:16 <_genuser_> context: would like to retain as much user control as possible. would like to keep user as secure as possible. have stricter login policies vs. the existing ones. May 05 06:59:45 <_genuser_> g00s: agreed. I have been playing fifa2015 ultimate team, and they did away with their own login and now require facebook login. May 05 07:00:11 <_genuser_> I couldn't play for weeks until I figured out they quietly changed the ACLs and their own accounts can't access the market anymore./ May 05 07:00:37 <_genuser_> for example, would require TFA. May 05 07:01:03 <_genuser_> but I suppose, I could implement the second layer myself even if I re-use existing logins. May 05 07:01:28 but otoh you have to be pretty knowledgeable to implement accounts, loggin in, etc May 05 07:02:19 <_genuser_> I'd outsource that, instead of scratching my head. I think getting sr. web dev and paying him/her enough should be reasonable investment. May 05 07:03:50 <_genuser_> I see g00s sleep now. thepoosh work. May 05 07:04:27 thepoosh notifications May 05 07:04:28 * g00s hands off to thepoosh May 05 07:05:41 <_genuser_> g00s: so you'd vote for apps own user registration as long as it was done properly? May 05 07:06:02 i'd give a choice : own + Fn / google / twitter May 05 07:06:18 <_genuser_> waht thinketh you about implementing TFA with all of that. May 05 07:06:27 <_genuser_> one of the requirements is TFA is mandatory. May 05 07:06:42 oh bot, not my area May 05 07:06:49 lol, *boy May 05 07:07:17 <_genuser_> yeah, not mine either. I think I am just spit balling before making my recommendations and then looking into hiring devs to do it. May 05 07:07:28 <_genuser_> would need to hire devs for the web portal anyway, user registration or not. May 05 07:07:41 <_genuser_> google time! May 05 07:09:02 g00s: ! May 05 07:10:42 thepoosh ! May 05 07:11:27 thepoosh did you guys use recyclerview anywhere ? May 05 07:11:55 with action modes ? May 05 07:15:37 I've got something baffling May 05 07:15:51 do you know how to zoom in on a Google map without losing center? May 05 07:16:23 meaning whether I press on the top left of the map or whether I press on bottom right, the zoom is always into the center and not where my finger pressed May 05 07:16:27 do you know how to do that?\ May 05 07:17:01 seems easy; isn't May 05 07:17:11 isn't there double tab for zoom ? May 05 07:17:15 *tap May 05 07:17:30 <_genuser_> this might help. I have no direct experience. May 05 07:17:31 yes, but that goes to zoom on wherever you double-tapped May 05 07:17:32 <_genuser_> http://stackoverflow.com/questions/5054515/zoom-in-to-marker-google-maps May 05 07:18:07 <_genuser_> the double tab, I'd expect to zoom in on double tap area. that's pretty much how most of the stuff works. May 05 07:18:29 true, but Uber have it the way I'm talking about and I'm trying to figure out how on earth... May 05 07:18:35 try their app and see, it's really strange May 05 07:18:36 g00s: nah May 05 07:18:50 its not normal behavior, but regardless, how do you do that May 05 07:20:35 <_genuser_> I see. I don't user uber. But I guess I'd gotten used to tapping on an area and zooming in on that. May 05 07:20:52 <_genuser_> on my surface pro, in android in gallery view, etc. etc. So as a user I'd vote for that behavior. May 05 07:21:04 <_genuser_> otherwise, I'd have to double tap, and then pan to get where I want it to be. May 05 07:21:26 <_genuser_> otherwise, in the SO link, it shows something like map.panTo(), that should help. May 05 07:21:40 there's nothing TO panTot May 05 07:21:42 -t May 05 07:21:46 _genuser_ how do you like your surface pro ? May 05 07:21:52 surface bro May 05 07:22:30 <_genuser_> Odaym: sure there is. since it's moving away from your center point, you have to pan back to there. May 05 07:23:03 <_genuser_> g00s: I use it mainly for drawing and I think I overpaid for the i7 version. $1600. I've hread that the i5 version for $900 handles drawing just as well. May 05 07:23:25 <_genuser_> g00s: I thought the i7 would have more throughput and ability to handle graphics and video stuff. May 05 07:23:40 hmm i'll need a new machiine soon, probab;y can't get another mac (too expensive) May 05 07:23:50 <_genuser_> g00s: if I use as a laptop/desktop with dual monitor, then I'd still go for i7. May 05 07:24:31 <_genuser_> if you just want, streaming, web surfing, drawing (I use manga studio), you'd be fine with i5. Or the new surface 3 (which is just i5, I think) is like 500 or something. May 05 07:25:05 <_genuser_> the pro has a stand that an adjust to lot of different levels. If you dock it and work on it primarily, I'd definitely go for it. May 05 07:25:23 <_genuser_> otherwise, beware of heating in surface pro3. It will heat and then throttle to 700MHz. May 05 07:25:48 <_genuser_> can't use chrome with youtube. heats up like crazy, spins fan, eats battery like candy. May 05 07:25:54 <_genuser_> using IE, just fine. May 05 07:26:04 buying stuff to use IE... May 05 07:26:44 now Spartan or Edge May 05 07:26:45 <_genuser_> to be fair, I bought to drawing on screen with manga studio and that only. so it has paid off well. otherwise, I'd be kinda ticket being stuck with one browser May 05 07:27:45 probably just some param to switch chrome from html player to flash player or vice versa May 05 07:28:53 <_genuser_> probably. I google found people with chrome issues. switched to IE for downloading reference images. otherwise, I only use it for drawing and netflix. May 05 07:29:00 poor darth vader http://digg.com/video/watch-a-lego-star-destroyer-explode-at-1-000-fps May 05 07:37:39 <_genuser_> so I suppose: own login and facebook login. then use the userid, to create ACLs within the app. May 05 07:43:39 Does anyone have a tool/script for converting images (e.g. svg) into all needed resources (mdpi, hdpi e.t.c.?)? I've made a small script to handle it my self, but it's not exactly perfect... May 05 07:44:18 oiZo there is something valled Victor May 05 07:45:55 g00s: looks nice, thanks :-) May 05 07:59:03 oiZo: can you give me the link please May 05 08:14:35 Hi does anyone here have experience creating custom routes using google maps API? I would like to create an off-road hiking route, but im unsure of how much work it would be and what would be involved May 05 08:15:12 afaik you can just draw the route using an arraylist of LongLat May 05 08:15:30 a simple task, in other words? May 05 08:15:33 er May 05 08:15:34 latlng* May 05 08:15:37 Not too hard, no. May 05 08:15:42 ok cool May 05 08:16:05 do you by chance know if google maps api is free to use or do i need to dish out a couple of bucks? May 05 08:16:19 Has anyone here got experience with making gridviews (with a lot of items, that go off the screen) use pages instead of just allowing the user to free scroll. May 05 08:16:33 It's free just draw on, yes. May 05 08:16:48 I recently did an app that recorded your location, stored it in a database May 05 08:16:53 and then could display that route on a map May 05 08:18:59 ok cool May 05 08:20:21 tx you mean you dont want the normal scrolling behaviour but pages instead? May 05 08:31:25 tx if you want multiple pages you could use a viewpager combined with gridviews? May 05 08:31:48 or change the gridviews default scroll behaviour May 05 08:35:14 jutsi: gridviews? May 05 08:35:19 as in May 05 08:35:21 multiple? May 05 08:35:36 tx do you want horizontal or vertical paging? May 05 08:35:39 tx yes, you could spread them across the fragments of the viewpager May 05 08:35:43 vertical paging May 05 08:35:50 if there are so many items that it constitutes scrolling May 05 08:36:01 I don't want free scrolling May 05 08:36:06 oh then maybe not viewpager May 05 08:36:08 I want the items to be viewed as pages instead May 05 08:36:13 tx, then just catch the swipe event of the user May 05 08:36:24 and scroll by x items manually instead of letting the user do it May 05 08:37:00 aw, but will that let me have the animation that the items are being quickly moved through? May 05 08:37:20 that would be the default animation yeah May 05 08:37:26 you might be able to change it May 05 08:37:50 interesting May 05 08:37:57 would I be able to implement some sort of pagination indicator May 05 08:38:01 in the form of those circles May 05 08:38:24 sure May 05 08:39:13 you can use any indicator and change it depending on how far the grid is scrolled May 05 08:39:18 hello. I am using Theme.AppCompact.Light but no action bar is being shown in my activities. I am using it as