**** BEGIN LOGGING AT Sat Jul 12 02:59:59 2014 Jul 12 03:02:16 g00s: well, I am getting the right efect by using px instead of dp... but will I have some issues latter? Jul 12 03:03:27 IrishGringo you could technically let android scale them but ... Jul 12 03:04:01 but????? there is always a but.... Jul 12 03:04:08 i'm not 100% on what you're trying to do with the scaling; all i understand is you get some assets from somewhere else and want to keep them separate from other assets Jul 12 03:04:33 yeah, the but … part is android has to work to scale those :) Jul 12 03:05:53 g00s: I just want to set the width, but I dont want the images to deform.. I want them to just shrink with out looking strange Jul 12 03:06:54 i'm willing to bet IM can do that Jul 12 03:07:05 its very capable, look at the docs Jul 12 03:07:32 I suppose ugliness is possible in any language. Jul 12 03:07:52 yes, devs can make a mess in everything Jul 12 03:07:54 ok Jul 12 03:07:57 maybe except logo :) Jul 12 03:10:19 ill put the IM on bucket list, but I think I am going to focus on menu navigation... this project is really complicated... Jul 12 03:10:56 There are some nasty things you can do with decorators in python. Jul 12 03:30:45 can anyone confirm that in kitkat the webview handles window.reload() differently (does not ever load from cache) Jul 12 04:07:59 finally my bnc is back up Jul 12 04:08:15 hate it when it goes down Jul 12 04:23:24 g00s: misc silly http://www.theguardian.com/business/2014/jul/11/down-the-cynk-hole-what-lies-behind-the-mystery-tech-company Jul 12 04:27:34 capella-s3 i think we are in a bubble of everything Jul 12 04:29:59 ninsel get your shit together Jul 12 04:44:13 capella but really, is that company much different than 190% of the crap out there :) Jul 12 04:44:57 heh dont ask me... I wouldn't have bought Facebook Jul 12 04:47:18 I come from the assumption that they're all bad investments... I like established track records vs. IPO gambles Jul 12 04:47:45 but then I'm not a VC :-) Jul 12 04:47:56 i'm in the mood for some chomsky Jul 12 04:48:06 noam? Jul 12 04:48:13 yeah Jul 12 04:49:59 anarchist! Jul 12 04:50:42 lol Jul 12 04:50:54 his book on neoliberalism is kinda old though Jul 12 04:50:59 maybe this is better i was thinking either http://www.amazon.com/gp/product/019936026X Jul 12 04:51:15 or http://www.amazon.com/Profit-Over-People-Neoliberalism-Global-ebook/dp/B004J4X74Y Jul 12 04:51:30 harvey is a tough read though Jul 12 04:53:45 * capella-s3 is a Libertarian capitalist Jul 12 04:54:04 this looks good too http://www.amazon.com/The-Fragility-Things-Self-Organizing-Neoliberal/dp/0822355841 Jul 12 04:54:17 which confuses some people :-D Jul 12 04:54:17 capella-s3 yeah, i'm not normally interested in this stuff Jul 12 04:55:01 but i'm researching (for my own) climate change ethics, politics, and you can't really get far in climate change without talking about the commons, etc Jul 12 04:55:59 Do youul guys ever leave easter eggs in your app? Jul 12 04:56:21 Not for 7 years Jul 12 04:56:59 i can barely get the important shit to work, nm easter eggs :) Jul 12 04:57:44 although - i wonder if an easter egg to open up a free IAP can replace google's laziness in offering Play coupon codes Jul 12 04:57:55 gotta trust the people not to spill it out :) Jul 12 04:58:14 err, open up a non-free IAP Jul 12 04:58:55 did that make any sense? no, didn't think so Jul 12 04:59:01 * g00s sighs Jul 12 05:01:18 Assumed we were talking about Halo 3 Jul 12 05:05:22 http://arstechnica.com/gadgets/2014/07/samsungs-first-tizen-phone-delayed-again/ Jul 12 05:05:47 "Depending on how you count, this is the third or fourth delay." hahahaha Jul 12 05:06:11 they all suck at sw Jul 12 05:07:36 samsung realizes, android is by google and for google :) Jul 12 05:08:20 capella-s3 "The best part of Android is the ecosystem, which is headlined by Google's killer apps like Maps, Gmail, and Google Now" Jul 12 05:08:28 i'm not really sure how killer these are Jul 12 05:09:36 but they do need a good catalog; need fb, twitter, weather.com, some mapping, maybe make sure fastmail workes nicely in their browser, etc Jul 12 05:09:58 i have kinda left the google orbit Jul 12 05:10:34 its like taking off your space helmet and realizing you can still breathe :) Jul 12 05:10:35 I've been noticing.... Mr. Windows Phone!!! Jul 12 05:10:51 i needed something a step up from a dumb phone Jul 12 05:11:04 yeah, its a bit behind android in many ways - including apps Jul 12 05:11:15 but its such a good dumb++ phone ! Jul 12 05:11:23 and i like really simple stuff Jul 12 05:12:20 i used the offline maps to drive across the country, worked very well. i still can't quite figure out if i can do that with google maps or not. apparently its possible, but i haven't figured it out Jul 12 05:12:37 heh... Ive been using OpenOffice Calc and I *really* miss Excel Jul 12 05:13:12 glad i can dual boot when desperate Jul 12 05:13:34 i think i learned some basic principles of functional programming with excel macros Jul 12 05:14:08 But marriage to any OS isn't recommended by me... use the best Jul 12 05:14:30 capella-s3 so when FFOS have spreadhsheet :D Jul 12 05:15:03 capella-s3 actually … office 365 is free right? maybe it works in FFOS Jul 12 05:15:03 lord they only got cut n paste in v1.2 iirc Jul 12 05:16:27 I'm barely involved with that project... we share some common code base... I played with a device once Jul 12 05:17:26 It's hard to be professional level with mostly volunteer open-source Jul 12 05:17:59 google has revenue stream support Jul 12 05:18:23 i'm still of the mindset html & css aren't good for many applications Jul 12 05:19:03 web apps... vs native compiled confuses me also Jul 12 05:21:51 browsers do their thing well but extending the concept to an OS ecosystem makes my Computer Systems Science degree cringe Jul 12 05:23:48 interpretive javascript? so the one char i misspelled in 8000 LOC will mysteriously fail my app? Jul 12 05:23:56 catering to the lowest common denominator Jul 12 05:24:04 what's old is new again Jul 12 05:24:08 correct Jul 12 05:24:46 interpreted isn't the bad part Jul 12 05:25:02 it's the fact that it's fully dynamic without type safety Jul 12 05:25:28 makes for garbage Jul 12 05:25:33 last interpreted language I used was Basic... but my beef there is speed also Jul 12 05:25:46 Java is interpreted... Jul 12 05:26:12 yah they way its implenented Jul 12 05:27:04 Source -> Java bytecode -> Dalvik bytecode -> JIT / Odex Jul 12 05:28:06 more like |re-interpreted| ? Jul 12 05:29:19 Art will help but that's a diff story Jul 12 05:39:28 i'm finding in quite a few apps, even google ones, the back button isn't taking me anywhere at all; even out of the app Jul 12 05:39:42 is this normal, or possibly a framework bug ? Jul 12 05:40:03 it doesn't always happen it seems. but it just happened in gmail again Jul 12 05:40:50 stacktrace .... or gtfo Jul 12 05:41:01 :p Jul 12 05:41:13 its possible i don't know how to use android hahaha Jul 12 05:41:32 pebkac Jul 12 05:41:44 well the action bar 'back' worked Jul 12 05:42:35 someones got a keylogger on your device and it's accidentally consuming events Jul 12 05:42:56 yep Jul 12 05:43:10 anarchists gotta be watched ;) Jul 12 05:43:55 ok, here it goes again. i think this is fucked. so i was in a message, back didn't work. pressed action bar '<' caret, now at the list of messages Jul 12 05:44:06 again, however, back does not work, so i can't leave the app that way Jul 12 05:44:19 all i can do is press home Jul 12 05:44:47 swipe gmail away from recents ... Jul 12 05:45:04 restart gmail, back works as expected Jul 12 05:45:09 man this shit is so buggy Jul 12 05:45:36 odd... no logcat? Jul 12 05:45:44 from gmail ? Jul 12 05:45:53 sure Jul 12 05:45:58 hmm, didn't check Jul 12 05:46:21 i'll have to look next time it acts up. but it hasn't been just gmail Jul 12 06:08:32 well /logcat/ from a terminal might tell you something Jul 12 06:09:01 or across adb of course Jul 12 06:17:02 Y2K Strikes!!! http://arstechnica.com/tech-policy/2014/07/14000-dead-men-receive-draft-registration-notices-after-data-snafu/ Jul 12 07:44:26 i’m getting IndexOutOfBoundsException when I try to select a menu item in onCreateOptionsMenu Jul 12 07:44:51 after inflating the menu xml Jul 12 08:10:25 what things should I worry about for battery use? Jul 12 08:10:43 I'm evaluating plans for making a sensor monitoring system Jul 12 08:10:46 all of them? :) Jul 12 08:11:22 I want to do some quantified self stuff, and intend to be... rather abusive... with at least movement/velocity sensors, and audio Jul 12 08:11:40 if my instinct is right, those are some of the worst things I could be doing for battery life Jul 12 08:12:02 well you could be running GPS, screen at full brightness and 3D graphics Jul 12 08:12:03 short of keeping gps, camera, and gpu on (in order of what I'd guess is most draining) Jul 12 08:12:07 ha Jul 12 08:12:09 not far off Jul 12 08:12:22 I do intend to do gps, but I won't poll that as aggressively Jul 12 08:12:26 lahwran, basically, anything that will keep main ARM core online will have serious effect on power Jul 12 08:12:33 ah Jul 12 08:12:45 test Jul 12 08:12:48 greetings Jul 12 08:12:50 now, IIRC new Snapdragons do have some DSPs that give them ability to read gyro sensors without running the main core Jul 12 08:13:00 interesting. this will be running on a nex5 Jul 12 08:13:03 but I have no idea just how well those work Jul 12 08:13:09 (only one, I don't intend to share it) Jul 12 08:13:36 the audio recording probably can't go through that, though, can it? Jul 12 08:13:38 but if you want to read sensors and audio there's really no good way around it... you'll have to keep wakelock online Jul 12 08:13:59 this is for some experimentation I want to do with machine learning; I'm hoping to be able to classify activities I'm doing in real life with a fair amount of accuracy Jul 12 08:14:19 mhm Jul 12 08:14:24 something like Moves app? Jul 12 08:14:57 mmm, maybe. Jul 12 08:15:16 that doesn't look as detailed as I was hoping Jul 12 08:15:27 yeah, because it uses low-power pedometer APIs Jul 12 08:15:36 it's not really that granular Jul 12 08:15:37 I want to pull out the big guns with deep learning and see how accurate I can get it Jul 12 08:16:18 I'll have to experiment with leaving an audio recorder on all day, I guess Jul 12 08:16:37 sounds like I'm going to end up needing a large battery pack to do this, though :p Jul 12 08:17:57 Guys I tried to set up libGDX but now eclipse is saying my project has errors but the errors aren't showing up in my sources.. Jul 12 08:18:21 eclipse does things like that to me all the time Jul 12 08:18:26 my solution has been to not use eclipse Jul 12 08:18:37 not a very good solution for less experienced folk Jul 12 08:50:29 whoa i have really bad. internet Jul 12 08:50:48 lahwran thanks.. Jul 12 08:53:48 i figured it ut Jul 12 08:53:57 it's becuase my project is targetting an api I don't have as part of my sdk Jul 12 08:55:48 A newbie developer here in need of help; is anyone around? Jul 12 08:55:56 It's not a coding question though. Jul 12 08:56:15 the IRC etiquette says to not ask to ask Jul 12 08:56:20 because you're not gonna get an answer. Jul 12 08:56:27 I see, thank you. Jul 12 08:56:55 I wrote my first chrome extension a month ago and it's become somewhat popular (in my low standards) Jul 12 08:57:16 I'd like to port it to Android and wanted to ask here if anyone would find it interesting. Jul 12 08:57:58 If you have some spare time, check https://chrome.google.com/webstore/detail/instant-music/ehebnoicojclpjjblbacdjmpjpkocmml and see if it'd be a good idea. Jul 12 08:59:52 maxsong1002: where do you get that songs from? Jul 12 09:00:07 from YouTube Jul 12 09:00:14 http://pastebin.com/zMzfveTq Jul 12 09:00:20 danijoo: thanks for trying it ) Jul 12 09:00:21 :) Jul 12 09:00:31 I'm getting these errors guys with libgdx when I import into eclipse from the launcher jar that's supposed to create my project file for me so it works in eclipse. Jul 12 09:00:47 maxsong1002, be careful because you might get kicked off Play Store due to YouTube ToS violation Jul 12 09:00:54 RedEyedGirl: You have to download android-15 api in the androidsdk manager in order to use it Jul 12 09:01:04 can I just target a lower API Jul 12 09:01:07 RedEyedGirl, download SDK for Android API 15 Jul 12 09:01:12 Mavrik: I see. Thanks for the heads up Jul 12 09:01:31 maxsong1002, namely, (at least for official Android YouTube API) you're not allowed to play YouTube videos with audio only Jul 12 09:03:31 RedEyedGirl: It doesnt matter what api you are targeting. But it has to be available on your machine :) Jul 12 09:03:40 Mavrik: You're right. If I ported into a mobile app, I would show the videos too Jul 12 09:03:48 just download the one you are specifing in your build Jul 12 09:04:02 Mavrik: For chrome extension, I am kind of waiting for Google to contact me Jul 12 09:04:48 it uses a targets file which is automatically modified by ANT apparently.. Jul 12 09:04:56 so I can't set it in that file i'd have to set it in an override file Jul 12 09:04:58 i'll just try 15 Jul 12 09:21:03 Hi Jul 12 09:26:30 Hi! I'm trying to use AsyncHttpClient with HTTPS but it is telling me about problems with certificates. Jul 12 09:26:46 Is there any other lib that uses Android's system certificate store? Jul 12 09:27:18 The certificate is signed by globally trusted certificate issuer. Jul 12 09:35:46 can installing the L preview system image cause irrecoverable damage to my device? or can I always factory reset it? Jul 12 09:37:11 sulaiman, absolutely no damage Jul 12 09:37:24 just reflash latest factory images once you want to go back to 4.4 Jul 12 09:50:36 does anyone has an idea where the "waterfall" clipping of a paper toolbar should be used ( http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-paper-craft )? Jul 12 10:05:21 How can i have a custom view be set to some value based on screen size? Jul 12 10:06:00 I calculate this size based on display metrics in the constructor, then override onMeasure and pass that to setMeasuredDimension Jul 12 10:06:13 but how does this relate to layoutparams etc? Jul 12 10:07:42 um Jul 12 10:08:23 layoutparams are just information from the XML of how you should lay out Jul 12 10:08:36 if you use the view on one position only you can ignore them or do what you like Jul 12 10:08:59 but the thing it, the container viewgroup WILL pass you sizes for layout based on your measure results and layoutparams Jul 12 10:45:15 No I didn't. Jul 12 10:45:21 wrong channel x.x Jul 12 10:48:13 yeah i got it thanks though -- forgot to set the orientation of the parent linear layout ;p Jul 12 10:48:57 hows your game making going? Jul 12 10:57:50 opinions? https://code.google.com/p/android/issues/detail?id=73498 Jul 12 11:02:03 useful but very low priority Jul 12 11:06:31 kinda good kinda bad. issues setting up libgdx. Jul 12 11:06:34 i'll get it done though Jul 12 11:15:13 aren't the the material design system icons available for download yet? Jul 12 11:16:16 EPG: https://plus.google.com/u/0/+ShreyasAchar/posts/JnEhwgtUSs9 Jul 12 11:16:37 gdrc, thanks :) Jul 12 11:22:49 <_3mpty> I need confirmation: It's not possible to share html based email with images linked in it? Jul 12 11:22:59 <_3mpty> (linked by tag) Jul 12 11:24:27 hi,everyone. I'm using adb on Ubuntu. But when my deivce is in download mode, adb can't find the device. I search the internet and modify the udev rule.d, but it didn't work.. Jul 12 11:26:18 <_3mpty> zhsj: install windows ( ͡° ͜ʖ ͡°) Jul 12 11:26:27 <_3mpty> also check: https://github.com/snowdream/51-android Jul 12 11:26:30 zhsj, "download mode" isn't something that's part of Android standard Jul 12 11:26:36 so, of course, adb won't recognise it. Jul 12 11:27:56 but fastboot also didn't recognize Jul 12 11:28:18 again. Jul 12 11:28:31 (am I talking french or something by mistake?) Jul 12 11:29:09 =.= Jul 12 11:29:45 so is there any way to figure it out? Jul 12 11:30:38 what are you trying to do? sounds like #android-root is more appropriate than here Jul 12 11:30:41 fastboot is fastboot, adb is adb, download mode is a Samsung thing, and this is the wrong channel anyway Jul 12 11:31:48 ok:( Jul 12 11:53:23 _3mpty: good advice, zhsj kindly follow Jul 12 11:54:53 <_3mpty> In this case it was a joke, but sometimes for playing with adb, flashing there is more tools, guides build for windows, unfortunately Jul 12 11:56:24 mhm, on the other hand Windows is pain in the ass because it needs drivers for fastboot/adb Jul 12 11:57:20 <_3mpty> Mavrik: true, one of many causes why I'm using ubuntu/osx Jul 12 11:59:50 but I don't like it Jul 12 12:00:22 my office had it installed on my first day/visit Jul 12 12:00:33 complimented IT for the job Jul 12 12:00:43 and installed some real Linux Jul 12 12:01:45 <_3mpty> what do you mean by real ? :D Jul 12 12:01:52 boy writing itemised quotes is a pain Jul 12 12:08:39 Hi. Is there a way to increase font sizes proportionally? I have a shared integer setting and want text sizes to (de)increase proportionally to it. Is it possible or do i need separate settings for each text size? Jul 12 12:13:34 just wrote that will convert 22 PSDs to html/css/js for 500 Jul 12 12:13:43 I should charge more Jul 12 12:20:04 Looney, yes, yes you should :P Jul 12 12:20:50 I mean backends are not built in thin air Jul 12 12:20:55 or using terminal Jul 12 12:21:02 they have to have UI etc. Jul 12 12:59:33 is it possible to get strings.xml on the fly Jul 12 12:59:52 or it has to come with app Jul 12 13:00:11 all resources are fixed and read-only in the APK Jul 12 13:01:05 and we can't even have xml from /sdcard/ :-( Jul 12 13:01:25 you can open an xml file from anywhere, of course Jul 12 13:10:38 <_3mpty> should I display info about push notifications (dialog with cancel option) in registration process or just allow user disable it from preferences activity? Jul 12 13:11:00 <_3mpty> Is any guideline related to it on google side? Jul 12 13:38:28 i so want an app to be able to modify its own assets. :( Jul 12 13:39:08 _3mpty: if it's questionable whether something should be notified about, don't notify about it - that's my guideline Jul 12 13:39:33 _3mpty: but modular preferences in the settings screen would be good. Jul 12 13:39:49 _3mpty: you want to make the registration as simple and streamlined as possible. Jul 12 13:40:23 <_3mpty> sigv: it's not my choice, rather client :P but still in my opinion registrations should display popups, dialogs etc. Jul 12 13:41:12 _3mpty: ah, not your own project... how many screens (including external popups/dialog boxes) is the registration consisting of right now? Jul 12 13:41:28 hi, I'd like to update ui textview from another class, can I do it without passing the context? If yes, do you have an example? Jul 12 13:42:07 <_3mpty> around 6 + 4 splash screens with awful 'tutorial' and iphone like asking 'I want your location' -.- Jul 12 13:42:23 <_3mpty> even on-click facebook register is forced to configure account Jul 12 13:42:35 MyWay: you will be better off in #android-dev, i think. Jul 12 13:42:53 _3mpty: oh god. Jul 12 13:43:15 _3mpty: first of all, why do you need to ask for location permission?! Jul 12 13:43:27 _3mpty: the user agrees to that during installation. Jul 12 13:43:35 sigv: ? Jul 12 13:43:37 _3mpty: how casual are your conversations with the client? Jul 12 13:43:52 MyWay: oh, sorry. thought this was the regular channel. :s Jul 12 13:43:53 <_3mpty> because shitty client is ios user and none know why but android have display same screens as ios version Jul 12 13:44:11 sigv: no problem Jul 12 13:44:29 <_3mpty> I forced out few things but still 'it's not good for business logic etc.' Jul 12 13:44:47 MyWay: i suppose you could pass along the textview, but if you are trying to avoid possible memory leakage, that won't be much help. Jul 12 13:44:58 MyWay: why do you want to skip passing the context anyway? Jul 12 13:45:09 hi o/ Jul 12 13:45:24 I don't like the idea to pass the context between many classes Jul 12 13:45:25 _3mpty: as a developer, i feel it's my responsibility to point the client in the right direction. Jul 12 13:45:29 m1dnight_: heya Jul 12 13:45:43 I tought there is a better way to achieve the ui update Jul 12 13:46:07 <_3mpty> sigv: true, but sometimes client is ignoring advices, and I'm not on that level in my company to argue with him Jul 12 13:46:16 _3mpty: i see. Jul 12 13:46:37 MyWay: callbacks? Jul 12 13:47:22 <_3mpty> sigv: but still it's pretty frustrating, I don't have anything against ios apps but mixing designs of different platforms is shit -.-. Jul 12 13:47:38 _3mpty: iOS is cool - it just works. Jul 12 13:47:48 _3mpty: but different systems have different design decisions. Jul 12 13:47:55 _3mpty: so yeah. Jul 12 13:48:59 _3mpty: are you forced to make everything to match _exactly_ how everything works in the iOS app? Jul 12 13:49:35 _3mpty: basically: are you forced to make a clone? Jul 12 13:49:49 <_3mpty> almost 1:1 -.- Jul 12 13:50:12 _3mpty: anybody there who uses android and is a higher-up? Jul 12 13:50:45 _3mpty: you use testing servers for this, right? (weird user data is allowed to be added, right?) Jul 12 13:50:55 <_3mpty> sigv: on client company none, 100% iOS users Jul 12 13:51:10 <_3mpty> sigv: yeah Jul 12 13:51:21 _3mpty: okay. lemme formulate my suggestion to you. Jul 12 13:51:54 You're working with designers I take it, they should deal with this. Jul 12 13:52:52 sigv: you mean, using a callback and let the main activity update the ui? Jul 12 13:53:06 when I am on activity, and I turn off my screen, and turn it on again, which event happens? onResume? Jul 12 13:53:32 _3mpty: so, i would suggest you to make a two-screen registration. first screen with account choice (fb/g+/regular email/whatever you have) + second screen with additional user details that are necessary. you grab all the little details that are available and ask only for the essentials. Jul 12 13:53:51 kakazza: if nobody there is on android, that won't help. Jul 12 13:54:03 L8: Why don't you try it, write something to logcat. Trust, but verify. Jul 12 13:54:24 _3mpty: you make your own registration flow for the app. make it simple. and display it to the client. Jul 12 13:54:29 kakazza, yep, resume Jul 12 13:54:32 <_3mpty> sigv: thanks, I will try to redesign their work Jul 12 13:54:33 just tried while asked Jul 12 13:54:39 _3mpty: show the client that it can actually be done in a simple way. Jul 12 13:54:57 _3mpty: they should be impressed by how simple the new thing is, if you do it right. :) Jul 12 13:55:21 sigv: Maybe he should tell them he's going to theme the iOS App like Android, because since it has the higher (global) market share, surely users will appreciate it. Once the shitstorm is about to happen, abort it and say "See, that's what Android users are going to feel like with an iOS design". Jul 12 13:55:46 <_3mpty> xD Jul 12 13:55:49 _3mpty: and if they still want you to make it "like the iOS version", explain that this is how it works on android and that the users would be more familiar with this. Jul 12 13:56:04 _3mpty: next step if that doesn't work is abandoning the client as a lost cause. Jul 12 13:56:20 kakazza: too much work, too little benefit. Jul 12 13:56:30 kakazza: it would be easier to abandon the project and move on. Jul 12 13:56:57 kakazza: emulating all the android elements in iOS... *shivers* Jul 12 13:57:30 <_3mpty> sigv: this little frankenstein need a lot of redesign, but registration is just monster, I will follow your idea. Jul 12 13:58:03 _3mpty: seriously, it shouldn't require that many steps. the details about the user are available when you register using a social network. Jul 12 13:58:18 _3mpty: don't need to confirm those or whatever. Jul 12 13:59:17 <_3mpty> sigv: it's rather related to choosing stores related to user etc. but still we can do it automatically on our side by location, and after that allow user to change it if he wants Jul 12 13:59:46 _3mpty: you can also use this argument: "users on android are used to simple sign-in, often one-click using g+. by using this simpler sign-up process, they will feel more at home, as the old one could scare the user away with too many questions being asked before reaching the actual content." Jul 12 14:00:19 _3mpty: basically, make them understand that android users will try to avoid apps that make them do a lot of things to get the task done. :) Jul 12 14:01:04 <_3mpty> sigv: Your ideas as good material for article :P Jul 12 14:01:28 _3mpty: about the store choice - on the app's screens, put a "selected store: green street" and put a "touch to switch." subtitle under it. Jul 12 14:01:43 _3mpty: do not ask for that during registration, but make it real simple to switch. Jul 12 14:01:46 <_3mpty> there is a lot of info how dev should work on tech side, but relations with client is still not covered very well in my opinion :P Jul 12 14:03:46 _3mpty: can i /query you? Jul 12 14:04:01 <_3mpty> sure Jul 12 14:17:49 heya, i have a large graph, too big for android memory, should i use a file as a linked list kind of graph or sqlite as a graph? Jul 12 14:19:01 can i get help with "Error:(1, 0) Plugin with id 'com.android.application' not found." on android studio? Jul 12 14:27:30 Guys, keep trying to build Shared Library with NDK. Problem is, My Library has 5 functions/Variables that are defined as : extern void Function(); Jul 12 14:27:45 and it suppose to be declared in .cpp file, that includes this lib Jul 12 14:28:01 like so: void function { ... } Jul 12 14:28:32 Cant build the lib with 'extern' functions, keep getting undefined reference for all 'extern' funcs Jul 12 14:28:40 any idea what flag I need in my Android.mk ? Jul 12 14:28:51 searched for 2 days - nothing Jul 12 15:15:04 any interesting apps being made? Jul 12 15:19:41 when I'm calling startActivity, onDestroy event is called on the original activity that called the startActivity Jul 12 15:19:45 why does it happens? Jul 12 15:20:00 I'm not doing finish, so seems strange that onDestroy is being called Jul 12 15:20:57 <_3mpty> L8: on what device did you observed this issue Jul 12 15:20:58 <_3mpty> ? Jul 12 15:21:06 nexus 4 Jul 12 15:21:09 <_3mpty> observe* Jul 12 15:21:33 <_3mpty> strange, I hand once something like that but only on samsung devices Jul 12 15:22:28 <_3mpty> theoretically it can be destroyed by OS Jul 12 15:22:33 <_3mpty> to retrieve space Jul 12 15:22:56 <_3mpty> but I think that it shouldn't occur to often Jul 12 15:23:18 hmm I'll try to restart my phone, maybe some strange bug Jul 12 15:23:24 or something wrong with my code Jul 12 15:23:37 <_3mpty> usually 2nd is the cause :P Jul 12 15:25:44 didn't helped Jul 12 15:27:09 L8, that's entirely normal. Jul 12 15:27:55 L8: https://developer.android.com/guide/components/tasks-and-back-stack.html#ActivityState Jul 12 15:28:12 keyword: destroy Jul 12 15:29:23 I see Jul 12 15:30:08 The problem is my main activity contains an bool that says if the app is running or not, so background service will read this bool Jul 12 15:30:16 and onDestroy I do running = false Jul 12 15:30:34 so when I do startActivity, the app still running but the service thinks that not Jul 12 15:30:58 where should I keep then such boolean or identifier that will tell me if the user is in the ui thread or not Jul 12 15:39:41 nvm, thanks for the links! Jul 12 16:10:37 Can anyone tell me how I can use enumerators to map an int to an int? So i could call the enumerator with an integer and get an integer in return? Jul 12 16:11:36 you'll probably need to use Integer rather than int Jul 12 16:13:29 do you just want a k/v pair? Jul 12 16:14:01 i'm wanting this: i get an int from shared preferences and i want to transform it into a corresponding int through a enum Jul 12 16:14:27 Perhaps i'm thinking about enums wrong at all? Jul 12 16:16:08 what is the relation to the int from shared preference and the int you are wanting? how are they related in terms of having to take the sharedpreference and turn it into another value Jul 12 16:17:07 Shared pref is displayed to the user like numbers 20-30 which is a font size, i thought i could use enums to assign res id's to those ints Jul 12 16:19:53 so you are just trying to assign view fontsize to a sharedpreference? seems the approach would be to save your setting based on view/viewgroup as key and value as the font you need them to be Jul 12 16:20:50 but without seeing a layout, i don't know how dynamic or static it is, that'd change some ideas Jul 12 16:21:09 What i'm assigning is just an int that represents a specific resource, which contains different font sizes for parts of my projects. Jul 12 16:24:21 I'd say post some code/xml, maybe someone else can chime in with assistance. I can't go any further with just words :) Jul 12 16:27:34 Well i don't see how I can give any more information with code, but here are 3 lines in which i get the preference, and then am stuck in converting that int to ResID: http://pastebin.com/2HEmFjhh Jul 12 16:27:44 my issue is i can't follow what you are writing/reading from sharedpreference. just a value from 20-30 that'll later be mapped to a view and then that view fontsize being set to value Jul 12 16:30:54 hello, im developing a site for a app where im using webview to show it. "bibleway.us". and when i open this in the webview, it doesnt show backgrounds in the checkboxes. but it does with the android browser. the useragent gives exactly the same information on both. but why does it differ? Jul 12 16:30:58 canvs2321, oh. This might make thing clearer: http://pastebin.com/6qqqStDX Jul 12 16:31:23 krizoek, perhaps javascript is not enabled? Jul 12 16:31:35 they are enabled on both Jul 12 16:31:39 *it is Jul 12 16:32:37 <[R]> i have android studio and the sdk manager open side by side... why do the fonts in android studio look so stupid? linux btw... Jul 12 16:33:24 krizoek, it works the same for me on chrome and inside a webview Jul 12 16:33:27 skulltower: i can't find much info on getTheme().applyStyle(), but what i have seen is they pass a R.style.* id to applyStyle Jul 12 16:33:42 very odd skulltower Jul 12 16:34:00 is there a way to know if the device is a tablet or a phone? Jul 12 16:34:33 canvs2321, yes i know m8 :) i'm trying to assign those R.style.*'s to my integers inside of sharedPrefs Jul 12 16:34:39 :o Jul 12 16:35:33 :D soz m8 Jul 12 16:35:34 so if fontSize == 24 then applyStyle(R.style.R.style.FontStyle_Small,true), right? Jul 12 16:35:43 canvs2321, exactly Jul 12 16:35:48 so what's the problem Jul 12 16:35:49 :) Jul 12 16:35:54 just do a swithc on fontSize Jul 12 16:36:14 canvs2321, :( hoped i could use enums just this once xD Jul 12 16:36:54 nevermind, i got things working now. ty Jul 12 16:37:07 can use a sparsearray or map to return what style you want Jul 12 16:38:39 meh i guess i'll just go with a switch then, which will be super ugly :( Jul 12 16:39:10 thanks for the help canvs2321 Jul 12 16:39:14 use a map then Jul 12 16:39:38 if i received strings instead of ints could i then use enums? Jul 12 16:42:48 i'd say just pick however you want to proceed, and proceed :) Jul 12 16:42:50 http://javarevisited.blogspot.com/2011/08/enum-in-java-example-tutorial.html Jul 12 16:57:01 Hi everyone! I'm new to Android Studio and I'm getting the following error: "Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer". What does this mean? Thanks in advance! Jul 12 17:00:12 canvs2321, thanks for your help. I've resolved the issue now. If you're interested: http://pastebin.com/xkbqtGaV Jul 12 17:26:12 hey all Jul 12 17:26:33 is there something like android-bootstrap just with RoboGuice instead of the Dagger and ButterKnife combo? Jul 12 17:35:56 Hi Jul 12 17:36:10 how do you add buttons to a wear application ? (like the "reply" button) Jul 12 17:41:20 Estragon: Is it not the same as adding a button to any other layout? Jul 12 17:41:42 I mean the "special buttons" Jul 12 17:41:49 the one you get by swiping to the right Jul 12 17:41:58 I suppose its a special API Jul 12 17:42:21 but I can't find anything on docs Jul 12 17:43:39 this : https://developer.android.com/preview/images/notifications/ReplyAction.png Jul 12 17:43:50 but not for a notification, for a wearable app Jul 12 18:31:28 hi Jul 12 18:31:33 anybody home? Jul 12 18:31:34 pellis: bootstrap.was original based on roboguice, so you should be able to pull it from its history Jul 12 18:33:17 http://pastebin.com/wXNksaYZ have this code and some html index.html with links to css and js, trying to link it with file:/// - not linking, what have to do? and 4.3 Jul 12 18:44:02 so Jul 12 18:54:42 How can I get a log of wifi events, of what triggers wifi state on/off? Jul 12 19:06:17 Hey, I'm having some problems with the GoogleApiClient for android... when i create the client using the builder and then use the client.connect() method, the onConnect callback is never called and the client is never connecting, however there is no error message or anything in logcat to move forward with. Any advice? Jul 12 19:17:11 I have a few activities and from each, preferences activity can be called. I'm looking for ways to recreate the activities from which the preference activity was called. Are there any ways apart from overriding the back button? Jul 12 19:18:51 I'm not sure you CAN override the back button. That's one of the few things the system always keeps for itself, isn't it? Like Ctrl-Alt-Del on a Windows machine. Jul 12 19:19:32 OmniQ, nah i believe you can with onBackPressed() Jul 12 19:19:53 Lemme try it out Jul 12 19:21:06 Yes it seems to be working. But i want to return to the previous activity rather than going to a specific one :/ Jul 12 19:22:01 Well, shows how much I know, then. With that in mind: Isn't it the case that if the user backs out of your preferences activity, it defaults to the previous activity? Jul 12 19:22:59 Yea, but i want to go to the previous activity & recreate it. Normally it just gets resumed Jul 12 19:23:09 Ah. Jul 12 19:23:20 Based on possibly-new preferences, I'm guessing. Jul 12 19:24:03 skulltower, not possible to use onResume()? Jul 12 19:24:31 Dextorion, then i would need to know that i'm returning specifically from the preferences activity Jul 12 19:24:37 I think your best bet would be to perform some kind of check for updated preferences in onResume(), and then relaunch the activity based on that. Jul 12 19:24:57 Or that Jul 12 19:25:19 That a great idea actually Jul 12 19:26:38 Store a copy of your preferences in each activity, then compare them to the current ones when they resume. Jul 12 19:29:34 I came in a bit late, so might be wrong. But, store a copy of your preferences when entering PrefereneActivity, and check against those in onBackPressed(). Jul 12 19:31:08 Hey, I'm having some problems with the GoogleApiClient for android... when i create the client using the builder and then use the client.connect() method, the onConnect callback is never called and the client is never connecting, however there is no error message or anything in logcat to move forward with. Any advice? Jul 12 19:32:04 Works great. I first use the preference onCreate() so i set a global var there, then onRestart() if it changed i re-create the activity. Jul 12 19:32:27 Thanks Dextorion, OmniQ this works much better than overriding back button or re-creating everytime when returning from prefs Jul 12 19:35:12 skulltower: I'm just glad I could be of help to someone. I don't actually have any experience in android development. Jul 12 19:36:26 OmniQ, Two heads are better than one :) Jul 12 19:36:52 Doesj ava 8 work with andorid? Jul 12 19:37:50 I just asking becuase it fix my prob with java 7 and with java 8 it work with android L i shicked:) Jul 12 19:38:09 there are no java 8 features you can use on android, afaik Jul 12 19:38:34 not 100% sure about android l though Jul 12 19:39:34 odd part is java 8 work with the android L but in java 7 is just said android l not loading. that odd. Jul 12 19:39:46 :) Jul 12 19:40:05 Do you guys prefer scrollbars that are visible or invisible? Jul 12 19:40:10 But i have to do some search. Jul 12 19:43:34 huh? Jul 12 19:43:46 java8 doesn't work with Android yet, period Jul 12 19:44:04 you can force it to produce earlier byte code, and that will work Jul 12 19:44:15 the sdk build tools should do it automatically Jul 12 19:44:43 ie, you can use jdk8, just no features from java8 Jul 12 19:50:19 I have a .dat extension database , that is used by a dictionary application , is there any way by which i can read the data in my pc? Jul 12 19:59:38 i see i try to get java 7 to work then:D Jul 12 19:59:58 maybe i have to change to compile 1.7 in the eclipse:) Jul 12 20:00:22 i try that. Jul 12 20:09:47 I'm programmatically adding Buttons to my FrameLayout I have a problem tho each is put on top of another instead of bellow the last one added. Is there a way to set vertical orientation or make it insert each Button in new row. I looked for a way to set margin but no go. Jul 12 20:11:32 is there a way I can add a second String.xml file? Jul 12 20:15:16 neredsenvy, that's the definition of a frame layout Jul 12 20:15:27 neredsenvy, use a linear layout instead Jul 12 20:15:30 neredsenvy, use linear Jul 12 20:15:32 A ok Jul 12 20:15:41 Frame Layout was created by default Jul 12 20:15:45 IrishGringo, add as many as you like, the name is not important Jul 12 20:15:49 when I created a drawer layout Jul 12 20:17:04 hi all Jul 12 20:18:30 i don't know why my Asus Memopad ME102A refuse to boot (or charging) after a "fastboot oem log" and "fastboot reboot-bootloader", any reason ? (the battery was @15 percent just before, maybe the issue) Jul 12 20:21:12 pfn: that simple Jul 12 20:22:51 what's a good upper limit for screen pixel width on decent android phones these days? Jul 12 20:23:07 guys, help please with webView Jul 12 20:24:03 is there a way to transition a fragment as a slider right to left?... kind of like an iPHONE uinavigation Jul 12 20:25:23 viewpager? Jul 12 20:26:03 WebView for showing html pages Jul 12 20:26:12 IrishGringo, like this? http://developer.android.com/training/animation/screen-slide.html Jul 12 20:27:13 webView.loadDataWithBaseURL("file:///android_raw/", readTextFromResource(R.raw.index), "text/html", "utf-8", ""); trying this and... no one of js and css files loading Jul 12 20:27:15 frankdrey: no... I was planning on doing a tree decision system... each page has a question, with multiple answers... you navigate to the next question based on responce. Jul 12 20:27:20 so its like a btree Jul 12 20:27:48 the web page has some potential. Jul 12 20:37:50 Gah. Where is the documentation on creating a new test project (with gradle) for an existing application? Jul 12 20:44:20 can I include constants in the string.xml file... I need to add some extra data to buttons. Jul 12 20:45:14 aren't they already constants in string.xml? Jul 12 20:49:02 I have about 50 fragments... each fragment has about 4 buttons that will transition to a new fragment. I figure it would make more sense to include the text on the buttons with an extra field to open up the next fragment. Jul 12 20:49:48 but I would like to make it a separate file... that jsut gets imported when it compiles Jul 12 20:51:09 does each fragment have the same layout? Jul 12 20:51:49 actually, never mind Jul 12 20:51:57 frankdrey: No... they are close, but there is about a 30% collection of screwy frags Jul 12 20:52:45 so you just want the text from the button to be passed to the next fragment? Jul 12 20:52:46 I figured I would just make 40 frags for each node, but update the text and links base don a single file. Jul 12 20:53:22 not just the text... I also need to send instructions of the next fragment to go to. Jul 12 20:53:50 so a button will have two values... the text for the button and the next node to goto Jul 12 20:54:32 and there are a couple of nodes that have some checkboxes I have to deal with for a calculator before going to the next node Jul 12 20:54:51 it looks like a coplicated tree Jul 12 20:58:43 can you paste a bit of code, or logic, based on getting your data/displaying/then reacting to user action. or a screen shot of some type. i just can't grasp your question of passing button text, when you already have that data before you set any text. Jul 12 20:58:57 or a image mockup flow Jul 12 20:59:21 I can do better.. how about a functioning web site Jul 12 20:59:35 http://acs01.scai-qit.org Jul 12 20:59:45 that maybe helpful :) i may not be able to help, but with the more data you give the more others may chime in Jul 12 20:59:57 Does CheckBox have a label attribute or do I need to add them separate ? Jul 12 21:00:35 well... this first page is node100 Jul 12 21:00:50 the question is "which best descibes the patient... Jul 12 21:01:13 the first button will be STEMI, initial presentaiton... which will link to a new fragment. Jul 12 21:01:50 so there is the problem I am thinking... the buttons need two fields... a test field and a url for the next fragment Jul 12 21:02:16 the fragments are not consistent, so I may as well just have a separate frag for each node Jul 12 21:03:09 the button doesn't need the fields, the button is an action based of answer, you have your data, youjust have to navigate based on answers. so i have question 1, if answer 2 then load X, if answer 3 load Y etc... you know all possible paths based on your data. you shouldn't worry as much about the button as the data you've set to it Jul 12 21:04:32 canvs2321: this is true.. but I have done 3 iPHONE apps like this, and a couple of web versions... same concept... and my experience has been that having one file for labels and paths is really helpful Jul 12 21:06:23 what i'm saying is make more of a map based off your data, don't rely as much on a button,as much as for that button just to be relative to your data, your button isn't your data, it's just a visual reaction to your data. i may not be coming off clearly :) Jul 12 21:06:36 frankdoyle, a common cutoff is 533 or 600dp Jul 12 21:06:47 533 for stupid kindles Jul 12 21:07:43 canvs2321: I think you are... I agree... I wanted to hardcode refer to the xml values into each frag button... Jul 12 21:08:11 canvs2321: I am thinking that I could create somekind of standard template for the frags this way. Jul 12 21:10:37 think commandline apps, Q) What is your favorite color 1) Red 2) Blue 3) press 1 2 or 3, pressing 2 leads to Q) Why Red you some kinda hotshot? 1) Yes 2) No 3) Maybe, by pressing 1 2 or 3, you aren't passing as much that 2 was pressed, but that 2 should be mapped to Q) What is your favorite color, then after checking data 2 returns Red, you pass 2 to your next question and the next question Jul 12 21:10:37 doesn't care that 2 was pressed as much as that 2 is Red Jul 12 21:12:08 i'm starting to confuse myself tho haha, so i think i should stop typing :) hopefully someone else can chime in Jul 12 21:13:24 hmm, not frankdoyle, other dude left, I guess Jul 12 21:13:26 canvs2321: you have the right idea.... Jul 12 21:14:00 but the buttons have two fields... the Label, and the destination. Jul 12 21:14:09 canvs2321, it's just a graph or tree Jul 12 21:14:14 yes Jul 12 21:14:15 easy to express... Jul 12 21:14:42 I understand it as a tree, but i'm not following how he is trying to go about it Jul 12 21:14:49 code wise Jul 12 21:15:36 pfn: the button labels will be strings in a string.xml file Jul 12 21:16:02 IrishGringo, but i'm saying the button shouldn't have the destination, it should be a key to the destination from your data Jul 12 21:16:06 but I need to include another resource line for the next node Jul 12 21:17:01 canvs2321: so the buttonID should go throw a switch statemtn to goto the next node? Jul 12 21:19:12 IrishGringo, think in terms of data structures and the answer presents itself rasily Jul 12 21:19:12 i think that if 4 buttons are on layout, you have your data, you get your question from data based on location, you set your 4 buttons text based on position, so in my data i goto question A, i know that A has 4 answers, upon pressing button 3 i read my data based on Question A locate answer 2, then load my new fragment based off question A answer 2 Jul 12 21:19:16 easily Jul 12 21:19:42 shit button 3 answer 3* Jul 12 21:21:09 ahhh... the questions are not that consistent. there is a calculator on this version... and the other stuff I am doing is also kind of strange. Jul 12 21:21:44 I think I get you... if I am on node 1040, then answer b should take me to node1060... Jul 12 21:23:05 yea just follow your data structure like pfn was mentioning Jul 12 21:23:45 you know all the paths in your data, you just have to display the choices to all the possible paths Jul 12 21:24:53 Hi all. Beginner Java developer here. How can I pass an object using an Intent? Jul 12 21:25:29 (Well not specifically using an Intent if there is another way to do it) Jul 12 21:25:37 what type of object? can put it in a bundle, is it a serializable or parcable object Jul 12 21:25:55 should ask your real question Jul 12 21:26:25 fragment to activity, activity to service, fragment to fragment Jul 12 21:27:25 I'm doing Activity to Activity. I don't know what serializable means. Jul 12 21:27:59 Does margin and padding behave identically wrt to a TextView? Jul 12 21:29:26 akk9: are you going activity a -> activity b from a startActivity(Intent)? Jul 12 21:29:36 canvs2321, Yeah Jul 12 21:29:50 pass a Bundle in your intent Jul 12 21:30:19 what kind of object? Jul 12 21:31:22 any jackpal Android Terminal Emulator fans in here? Jul 12 21:31:47 i wrote a script so i can start new terminal windows from the command shell Jul 12 21:32:15 i tried the other intent listed in the manifest SWITCH_WINDOW but it doesnt resolve Jul 12 21:32:28 i was curious if anyone had tried something like this Jul 12 21:32:34 canvs2321, It's a very simple object. It just holds lots of String values e.g. code, name, imageURL, etc Jul 12 21:32:45 custom object? Jul 12 21:32:57 canvs2321, Yeah custom object. Jul 12 21:33:13 I could pass all strings seperately but for the sakes of learning I want to do this properly. Jul 12 21:33:36 does it implement the Parcelable interface? Jul 12 21:33:57 No. Jul 12 21:34:15 Implementing Parcelable will allow me to put it in Intent? Jul 12 21:34:23 yea Jul 12 21:35:20 canvs2321, Thanks mate. Jul 12 21:35:48 http://stackoverflow.com/a/7181792 Jul 12 21:35:54 read up there Jul 12 21:36:54 god damn it google had to go fuck up switching to offline mode in a webview in kitkat .. worked fine in 4.3 … they need to stop changing shit like that unannocunced Jul 12 21:37:09 akk9: http://mobile.dzone.com/articles/using-android-parcel this one is a good read too Jul 12 21:37:47 wait could it be im compiling for android 16 and the phone is using 19? .. could that caught problems? Jul 12 21:44:29 <[twisti]> JakeWharton, are you up by any chance ? Jul 12 21:50:58 Alwaya Jul 12 21:51:00 Always Jul 12 21:51:26 <[twisti]> i was looking at dagger, and i saw a version 2 mentioned, but no release date, or beta repo or anything like that Jul 12 21:51:59 Because there's no timeline and it's not usable yet. Jul 12 21:52:09 <[twisti]> is there some place where i can read about that ? im concerned about the non-compile-time-injection because i do heavy proguarding, and it seems like in the current version im stuck with reflection Jul 12 21:52:29 <[twisti]> ah, thats a shame, i was hoping a release was right around the corner Jul 12 21:52:33 The reflection is just a Class.forName lookup Jul 12 21:52:49 Everything else is generated code. Jul 12 21:52:51 <[twisti]> yeah, class names dont tend to survive obfuscation ;) Jul 12 21:53:51 Dagger 1 isn't ProGuard safe at all really Jul 12 21:54:21 why doesn’t System.out.println seem to work in android studio? Jul 12 21:54:25 <[twisti]> yeah i noticed, most CDI things arent, thats why i got so excited reading about dagger 2 Jul 12 21:54:43 What's CDI? Jul 12 21:55:17 <[twisti]> and we are just starting the project, so if it had been off a month or so we would just hardcoded a few things now and then switched later, or started with a beta build and worked around bugs for the time being Jul 12 21:55:33 <[twisti]> dagger ? Jul 12 21:56:06 Is that a question? Jul 12 21:56:38 Anyway, version 2 is a few months off Jul 12 21:57:47 Off to the park with the puppy Jul 12 21:57:48 <[twisti]> ill certainly keep it on my list for the next project then, compile time cdi would be nice to have Jul 12 22:00:45 canvs2321, thanks it works. Jul 12 22:07:12 Is it possible for EditText element to have a border because default look is not that good ? Jul 12 22:07:24 And if so how because the class has no setBorder/addBorder Jul 12 22:28:25 anyone ? Jul 12 22:28:27 neredsenvy: its a background Jul 12 22:28:51 neredsenvy: just replace the background with a shape-drawable of a rectangle with a border Jul 12 22:29:14 Napalm: I changed the background but that's not the border it changes entire thing I want black border white background Jul 12 22:30:04 Napalm: Is there any tutorial how to do this I found some SO sources but nothing that can help me out Jul 12 22:30:52 it is the background Jul 12 22:34:03 Makes me angry this can't be done programmatically : P Jul 12 22:34:09 it can Jul 12 22:34:44 How ? Jul 12 22:35:18 http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Jul 12 22:35:26 see it links to GradientDrawable class Jul 12 22:36:23 but why? Jul 12 22:36:43 its sub-optimal Jul 12 22:37:34 anyone have an idea what this might mean from a logcat.. Jul 12 22:37:36 F/ActivityManager( 886): Service ServiceRecord{429b9520 u0 com.estrongs.android.pop/com.estrongs.android.ui.notification.ESTaskService} in process ProcessRecord{429e3dc8 2108:com.estrongs.android.pop/u0a191} not same as in map: null Jul 12 22:39:43 Akkord93: its this app https://play.google.com/store/apps/details?id=com.estrongs.android.pop Jul 12 22:39:46 bug in it Jul 12 23:07:49 I added a rectangle shape https://gist.github.com/anonymous/712642b49bd5d5a7d9c9 In my ui.xml file. I'm trying to use it as background for EditText edittext.setBackground(R.drawable.ui); does not work. Jul 12 23:32:22 Hey guys, I'm a total newbie to both Android development and Java. Hitting a wall and I'm wondering why setting up SoundPool like this causes a crash on app launch: https://gist.github.com/anonymous/d0e801a91e96d3eae881 Jul 12 23:32:29 Any help is appreciated! Jul 12 23:33:32 is there a way to get a ProgressDialog (or something similar) to show only the circle and no background/text? Jul 12 23:33:36 without subclassing Jul 12 23:33:52 i simply want to show and hide that animation Jul 12 23:40:13 Can someone help me out with this https://gist.github.com/anonymous/ed5fdfda1cbf3b860a63 I want to turn TextView into URL It shows up as blue underlined link but when I click on it nothing happens even tho I have .setClickable(true): Jul 12 23:50:10 hm Jul 13 00:02:43 ultra-, just use a progress bar Jul 13 00:03:42 neredsenvy, look at attributes on TextView, there is something to set Jul 13 00:41:19 pfn: yeah i’m trying that now.. not getting it to show up, though Jul 13 01:18:11 hi guys Jul 13 01:18:32 can we develop games with android sdk (without ndk)? Jul 13 01:19:06 yes Jul 13 01:20:16 zinx: even 3d games? Jul 13 01:23:47 Sure. Jul 13 01:28:19 Look into libgdx for example Jul 13 01:30:23 I thought this 3d-like breakout game that Im playing was made with ndk Jul 13 01:32:20 is it possible to publish local aar projects to your local maven repository Jul 13 01:33:51 jug6-away sure Jul 13 01:34:07 g00s any pointers lol Jul 13 01:34:31 jug6-away first, seems like everybody has a different idea of what 'local maven repository' means Jul 13 01:34:42 -_- Jul 13 01:34:45 ~/.m2 Jul 13 01:34:53 ok Jul 13 01:34:56 one sec Jul 13 01:35:30 cool, thx. Jul 13 01:37:45 kakazza: libgdx seems cool (the code is portable and I dont have to do it in C++) Jul 13 01:38:17 jug6-away download the gradle samples, and look at the 'mavenLocal' example Jul 13 01:38:53 http://tools.android.com/tech-docs/new-build-system Jul 13 01:39:10 gradle-samples-0.11.zip Jul 13 01:39:11 g00s will do, thanks Jul 13 01:39:27 you will use 'mavenInstaller' Jul 13 01:40:51 g00s ic, awesome Jul 13 01:51:58 who’s got a ProgressBar example? the spinning kind Jul 13 01:52:03 and i need to do it dynamically Jul 13 02:02:50 Alright. Time for my first newbie question: I have a SurfaceView that's being drawn upon by a separate thread. The thread has a couple of bitmaps and a RectF defining which pixels need to be drawn to the canvas. I'd like to have drag gestures change the RectF, so the view scrolls. What's the best way to do it, though? http://developer.android.com/training/gestures/scale.html seems to handle everything on the UI thread. Jul 13 02:04:15 I have thread A that performs an operation and then sleeps for X seconds. I want another thread B to be able to change X of thread A. A handler won't work as it requires a looper. What's the best/safest way to change X in A from B? Jul 13 02:04:38 Neither of these threads are in hte main UI thread Jul 13 02:04:59 OmniQ the only thing you care about, is changing the UI only on the UI thread, you can do all your background processing just make sure whenever you touch the UI you do it from the UI thread Jul 13 02:05:20 Why won't a handler work? Jul 13 02:06:01 lasserix: mentally I can't think of how to have two loops, one for the operation and X time sleep, another for the looper. Right? Jul 13 02:06:09 synfin you can do Object mObjectLock; synchronized (mObjectLock) { /change value / read value } Jul 13 02:06:32 the looper uses a message queue, different from a while loop in your thread run { } Jul 13 02:07:20 why cant you create a handler in thread A and use post delayed to change the variable some time later and avoid having to use thread B at all? Jul 13 02:07:23 lasserix: oh, you might be right. Sorry I'm still getting used to how handlers/loopers/threads work in android. Jul 13 02:07:59 post delayed? Jul 13 02:08:28 yeah handler.postDelayed(new Runnable() { void run() { do something } }, 1000) Jul 13 02:08:42 1000-> delay executable of runnable run for 1000 seconds Jul 13 02:08:45 *ms Jul 13 02:10:29 Lasserix: The UI thread isn't the one drawing to the canvas, though. If I store and change the RectF from the UI thread, how does the drawing thread know which area to render? The drawing thread calls a getter when it needs to update? Post messages to a handler with new RectF's whenever a scroll gesture occurs? Jul 13 02:12:15 OmniQ you get user input from your UI thread, then put it into a queue that your drawing thread reads from, does its operations (update and draw) then does unlockCanvasAndPost Jul 13 02:12:55 OmniQ you can set up a concurrent input quueue from reading this article: http://www.rbgrn.net/content/342-using-input-pipelines-your-android-game Jul 13 02:13:39 when you call unlockAndPost this pushes whatever you've drawn to your UI thread so while the "drawing" might not be done, actually pushing the canvas to the UI thread and "rendering" _is_ done by the UI thread Jul 13 02:14:11 Okay. Makes a bit more sense. Jul 13 02:15:49 Using a message queue, though, wouldn't that mean that the "drawing" thread could potentially find multiple scrolling updates in between frames? The drawing thread doesn't necessarily care about every little MotionEvent, just the vector sum at the time of rendering. Jul 13 02:16:43 you throw from UI thread onto the queue, then in your run{ while (isRunning) { processInput() updateState() doDraw() unlockAndPost() } Jul 13 02:17:11 processInput grab it all from your queue, do whatever operations, then update your state (ie update your rects and such) and then in draw actually draw to canvas then etc etc Jul 13 02:17:36 if you find there is something wrong, you can, for instance, only grab so many events off the queue at a time Jul 13 02:17:38 or whatever Jul 13 02:18:16 So the best practice in this case IS to post multiple updates, and just make the processInput() section capable of handling multiple inputs per frame. Jul 13 02:18:37 I'm doing this mainly as a learning experience, and I'm trying to avoid developing bad habits. Jul 13 02:19:10 sure, just grab everything off the queue, since it is concurrent, it won't grab a new one (since it'll cause pushing onto the quque to block)) Jul 13 02:19:20 until it loops again Jul 13 02:19:49 Gotcha. Thanks for the advice. Jul 13 02:19:51 OmniQ hehe game stuff can get very very complicated Jul 13 02:41:00 "Apple won a legal victory yesterday when the European Court of Justice ruled it could trademark the layout of its stores" Jul 13 02:41:06 man, what the hell Jul 13 02:41:29 do they have rounded corners ? Jul 13 02:42:32 g00s: link? Jul 13 02:42:53 ASneakyFox http://qz.com/232971/wait-you-can-trademark-the-layout-of-a-store/ Jul 13 02:45:00 I dunno - I guess it's something like Coke trademarking the shape of their bottle - it's a recognisable symbol of the company, enough to make it worth competitors while to try to copy it to 'confuse' consumers Jul 13 02:45:52 turns out apple’s not the only ones Jul 13 02:46:06 I know that before Apple opened stores here, one of the carriers had at least one shop which was absolutely an Apple store clone Jul 13 02:46:24 ok issue (tested issue 4.4 only) - staging.jjlprocess.com/ts/manifest.php webview tries to cache -> "Application Cache Error event: Resource fetch failed (404) http://staging.jjlprocess.com/cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.min.js", source: ….. its not realizing that it should be caching from the CDN … anyone have any input on this Jul 13 02:47:23 Leeds ok i see but - what if they decide to rearrange tha tables, do they have to keep applying for trademarks :| Jul 13 02:47:26 i think i am just missing some kind of w3c rule.. Jul 13 02:47:39 that’s their problem :) Jul 13 02:47:47 jaspertheghost: that doesn't particularly sound like an android problem? Jul 13 02:47:53 i think all this stuff is funny Jul 13 02:47:58 jaspertheghost i see the problem Jul 13 02:48:06 there are 3 letters there 'php' Jul 13 02:48:22 header('Content-Type: text/cache-manifest'); Jul 13 02:48:24 :) Jul 13 02:48:33 they already have it trademarked in the US? what the fuck Jul 13 02:48:45 the cahce manifest works on 2.2 - 4.3 (w3c says cached file must not violate same origin policy) Jul 13 02:48:52 i’m going to trademark having two arms and two legs Jul 13 02:51:56 i tried to look up to see if any other companies have done this, but all the search results are flooded with the apple trademark Jul 13 02:52:38 well the article lists a few Jul 13 02:52:39 ultra-: I suspect the Lord God Almighty would have a prior claim, since we are of course made in His image :) Jul 13 02:53:54 dunno, some pharma company probably patented the appendage gene Jul 13 02:54:45 wasn’t profitable so we’ll have to cut off our limbs **** ENDING LOGGING AT Sun Jul 13 02:59:59 2014