**** BEGIN LOGGING AT Fri Sep 26 03:00:00 2014 Sep 26 03:02:29 You have AN application class though. It is generated from your application tag in the manifest. Sep 26 03:02:46 You may not be making it in java code, but the compiler is doing it for you. Sep 26 03:03:36 You can either make your own that extends his or just use the one he has made in the manifest. Sep 26 03:04:16 Make sense, peska? Sep 26 03:05:09 Fenny, sorry for sound an idiot, but how can i make my own? Sep 26 03:06:12 You would create a new class with whatever name you like and have it extend his class. Sep 26 03:06:33 Either way you need to use one of them in the application tag in the manifest. Sep 26 03:06:57 ok... lemme try Sep 26 03:07:14 I think i will extend his Sep 26 03:10:16 Fenny, I created a class and then extended his class Sep 26 03:10:25 Does it have to implement any special methods? Sep 26 03:10:39 or should i just put it's name in my manifest? Sep 26 03:11:07 You can put the name. Sep 26 03:11:13 It will complain if you are missing methods Sep 26 03:13:56 Fenny, ok it works now. You have been of great help mate. I don't know how i would have found that NPE :D Sep 26 03:14:23 Yeah, it is a tricky one, those service calls. Sep 26 03:27:56 hello all Sep 26 03:28:11 is there a way to dump the user prefs or view them as I"m developing the app if I dont have root on the phone? Sep 26 03:30:15 QubeZ: you can using Android Device Monitor on an emulator Sep 26 03:30:29 my phone over usb Sep 26 03:30:42 is your phone an emulator Sep 26 03:30:53 because you can only do it on an emulator or a rooted device Sep 26 03:30:55 no, its a real phone Sep 26 03:30:59 ok figured Sep 26 03:31:07 are you doing something that cant be tested on an emulator? Sep 26 03:31:09 i can't root my phone because I use it for work (corp email etc..) Sep 26 03:31:17 it can but I hate the emulators Sep 26 03:31:22 ok you’re doing it wrong then Sep 26 03:31:23 too slow, slows down my development Sep 26 03:31:35 wrong how? Sep 26 03:31:42 if you think emulator slows your development Sep 26 03:31:57 then you are missing something really big Sep 26 03:32:09 <_flip> you can get the intel image Sep 26 03:32:12 big? Sep 26 03:32:29 QubeZ: how long does it take to launch your app on your device after doing a clean? Sep 26 03:32:41 couple secs Sep 26 03:32:45 time it Sep 26 03:33:02 will do Sep 26 03:34:10 well that’s not really an accurate test because building takes so long after a clean Sep 26 03:35:19 ok i just timed it - 11 seconds to deploy to nexus 5, 4.5 seconds to deploy to genymotion emulator Sep 26 03:35:21 ok guess i better install some images then Sep 26 03:35:42 just get genymotion Sep 26 03:36:01 is thqt in the avd manager? Sep 26 03:36:03 or 3rd party? Sep 26 03:36:07 lmgtfy Sep 26 03:36:31 <_flip> 3rd party Sep 26 03:36:32 Fenny, Sorry for disturbing u again Sep 26 03:36:34 <_flip> i havent used it though Sep 26 03:36:56 QubeZ: its faster because it runs in its own virtualbox instance Sep 26 03:37:05 ((ServiceADKApplication) getApplication()).getInputStream() nul Sep 26 03:37:07 null Sep 26 03:37:11 what can cause this? Sep 26 03:37:22 peska: seems like you got some nasty code Sep 26 03:37:39 input stream is == null? Sep 26 03:37:43 why does your application class have a method called getinputstream ??? Sep 26 03:37:44 yes Sep 26 03:38:01 You probably need to initialize it somehow -_- Sep 26 03:38:04 look at his class Sep 26 03:39:59 Fenny, This is how it is initialized there Sep 26 03:40:00 public FileInputStream getInputStream() { Sep 26 03:40:00 return mInputStream; Sep 26 03:40:00 } Sep 26 03:40:24 https://github.com/slightfoot/android-painter-example < just updated.. if anyone is interested Sep 26 03:40:37 peska: it appears you need to RTFM Sep 26 03:40:53 night all Sep 26 03:46:26 mInputStream... Sep 26 03:46:33 You need to see what creates it. Sep 26 03:47:12 look for something that assigns to it, I.E mInputStream = Sep 26 03:47:32 I'm thinking about making a universal remote app Sep 26 03:47:56 I kind of doubt it, but I wonder if we can learn codes? Sep 26 03:48:09 RustyShackleford: You can learn IR Sep 26 03:48:10 I'm guessing the IR diode only transmits though Sep 26 03:48:14 But you need a sensor Sep 26 03:48:16 yeah Sep 26 03:48:26 well shit Sep 26 03:48:29 you could kief a database Sep 26 03:48:51 the databases look kinda messy. And I don't know if we can trust them to be accurate Sep 26 03:49:08 Do you have an IR sensor? Sep 26 03:49:17 I know my phone had one. Sep 26 03:49:21 I.E. for beaming Sep 26 03:49:27 "beaming" lol Sep 26 03:49:36 right, well a transmitter you mean Sep 26 03:49:41 Ahh, reminds me of the good old palm days. Sep 26 03:49:55 yeah my S4 and S5's have one Sep 26 03:50:00 it had a light sensitive diode. Sep 26 03:50:04 htc one has an IR transmitter Sep 26 03:50:42 got a dev board, RustyShackleford? Sep 26 03:50:45 https://www.sparkfun.com/products/241 Sep 26 03:50:55 simple serial device. :D Sep 26 03:53:21 I am fairly certain you could hook up USBOTG, a usb -> uart serial device, and use that as a serial controller. Sep 26 03:54:31 I have like three of these kicking around, http://www.ebay.com/itm/like/231224022360?lpid=82 Sep 26 03:58:02 Yeah, looks like it would work, but you would get the exact opposite bits as you would with normal rs232 Sep 26 03:58:14 and it is only up to 5v. Sep 26 04:47:50 I want a networked ir blaster Sep 26 05:13:34 new DDA ? Sep 26 05:22:18 I run my unit tests on the JVM. If I wanna unit-test Android code such as the Apache HTTP stuff, can I do that by just adding the Apache thing to my project? Sep 26 05:22:30 Though I'm not sure how Android would choose which library to use: the one I added or the one in Android. Sep 26 05:26:37 ergh...I just ran into that 655 36 methods limit Sep 26 05:39:37 Hi all Sep 26 05:39:47 <_flip> hi Sep 26 05:40:11 I want to have my edittext take a minval as 10 and max as 20 Sep 26 05:40:24 I have found some code in the stackoverflow Sep 26 05:41:14 http://pastebin.com/g8Vjm0Dq Sep 26 05:41:37 But I dont know why its only working for the range specified in the site and nothing else is accepted Sep 26 05:42:11 could some one explain the filter part in the code so that I can make it work for my range Sep 26 05:44:19 hi. Sep 26 05:44:42 does anybody know if I can use views inside a live wallpaper? Sep 26 05:45:03 for example, an ImageView or a TextView? Sep 26 05:52:53 i want to place two ListView inside a nav drawer(both has different work -- but user should see them as one big list) and want to show scrollbar when height become insufficient. drawer: http://pastebin.ca/2846697 expected: both ListView grow to full height and if space become scare, scrollView comes in to action Result: both the ListView height = only 1 entry height. now they are seperately scrolled (instead of looking like Sep 26 05:52:54 one big list) Sep 26 05:55:25 ex: something like GMail has INBOX , ALL LABELS, and third a unamed category Sep 26 06:07:27 also, if space is larger than required the 2nd list will be bottom Sep 26 06:07:41 *be at Sep 26 06:14:30 barbs have a lot of libraries ? Sep 26 06:16:19 yup :( Sep 26 06:16:31 managed to strip out a lot of unused stuff from the google libraries though Sep 26 06:16:39 so we're still good for now Sep 26 06:17:09 the good news is, butterknife and dagger don't have that many methods, so I didn't have to go through and take them out :) Sep 26 06:18:36 barbs which libs had the most methods ? Sep 26 06:19:04 did you use play services ? Sep 26 06:19:21 yeah I did, that had heaps Sep 26 06:21:44 Ok so i'm connecting to a socket server using an android.app.Service Sep 26 06:21:55 I do my normal mumbo jumbo Sep 26 06:22:11 problem comes in with when the device needs to sleep Sep 26 06:22:26 the socket connection needs to message a ping signal to the server every 8 seconds Sep 26 06:22:43 this leaves me with not being able to close the socket connection and sleep the device Sep 26 06:23:04 problem #1; the server doesn't have any implementation of GCM Sep 26 06:23:31 problem #2; I need to still get information from the socket connection Sep 26 06:23:51 (while the device is awake/asleep/fapping) Sep 26 06:38:32 :? Sep 26 06:42:56 in u2020 how to refresh the list? Sep 26 07:17:43 is there any iphone-dev on freenode ? ? Sep 26 07:18:34 Looney, its a secret channel, you have to pay for subscription Sep 26 07:21:22 hehehe, let me guess Sep 26 07:21:29 payment via iTunes Sep 26 07:22:47 And then they'll reject your questions! Sep 26 07:25:54 Looney, how good are you with android? Sep 26 07:26:03 No-one wants to answer my questions :( Sep 26 07:27:38 what is your question Sep 26 07:27:40 I can try Sep 26 07:27:50 http://pastebin.com/rjtr18Sp Sep 26 07:28:09 but you should visit church of Google at times to get the Gods in good spirits Sep 26 07:28:16 Basically I'm writing a steam chat app for android, using a reverse engineered steam socket connection Sep 26 07:28:21 but there's no GCM support Sep 26 07:28:29 so when the device sleeps, im in a bit of a pickle Sep 26 07:28:49 church of google says use GCM, or poll Sep 26 07:28:56 but steam servers don't support such functionality Sep 26 07:29:05 number uno Sep 26 07:29:08 why socket Sep 26 07:29:20 when os gives you high level functionalities Sep 26 07:30:07 Steam uses a tcp connection Sep 26 07:30:17 for its core functionality Sep 26 07:30:18 ;o Sep 26 07:30:54 There is a web API also Sep 26 07:31:01 which has very limitted spec Sep 26 07:31:12 so that hardl'y helps Sep 26 07:31:13 ;( Sep 26 07:35:52 there is an option to not let the phone's network interface sleep Sep 26 07:36:26 you will have to include permission in manifest for it as well Sep 26 07:36:56 holy shit Sep 26 07:36:59 really? link please Sep 26 07:38:05 as I said, you have to visit the Elders of Church of Google Sep 26 07:38:23 google preventing network from sleeping android Sep 26 07:38:39 or some similar keyword you can think of Sep 26 07:39:15 Theres a wifi manager lock Sep 26 07:39:22 but if the user is on mobile data Sep 26 07:39:32 kinda makes this redundant Sep 26 07:41:17 wow would you lock mobile data. users wont appreciate that Sep 26 07:41:17 heh Sep 26 07:42:41 im glad i have free mobile data Sep 26 07:43:21 cliffreich, i don't want to lock a data type Sep 26 07:43:24 or connection Sep 26 07:43:33 i just don't want my connection terminate while the device sleeps Sep 26 07:43:52 pity android doesnt have a shallow sleep or something Sep 26 07:43:52 like spend unlimited mobile data Sep 26 07:43:57 that allows for cpu trickling :( Sep 26 07:44:40 oh well, who knows Sep 26 07:45:01 hopefully someone Sep 26 08:02:23 kevel1: you do not let the device sleep basically Sep 26 08:02:49 hi, can a wakelock be active although no services/activities of my application are running? Sep 26 08:02:59 a wakelock started by my application that is Sep 26 08:03:28 if say, the release was for some reason unsuccessful Sep 26 08:03:50 Looney, but then battery drainage :( Sep 26 08:03:55 absolutely no winning in this case Sep 26 08:03:57 -_- Sep 26 08:04:03 yup, this is what you want Sep 26 08:04:16 phone to not sleep and keep working on your pinging sysyem Sep 26 08:12:37 then artificial sleep after predefined time heh Sep 26 08:13:26 or root permissions... Sep 26 08:13:39 anyone any advice on using datePicker fragment from within a fragment... Sep 26 08:14:21 so you can mod the systems behavior Sep 26 08:14:24 :O Sep 26 08:15:11 i use the datePicker fragment fine from one activity, but when i use it from another fragment i get a classcast exception.. Sep 26 08:15:46 trying to avoid having listeners and callbacks everywhere Sep 26 08:17:03 do you use eventbus or otto Sep 26 08:17:51 cliffreich, if you are referring to me, I am using an eventbus type mechanic Sep 26 08:18:35 Im just going to give the user an option in settings Sep 26 08:18:46 to keep the device awake, or log them off when it goes into a deep sleep Sep 26 08:19:04 was to thefog. that sounds reasonable Sep 26 08:27:44 cliffreich: not using an eventbus Sep 26 08:40:21 the_fog whats your issue ? Sep 26 08:45:21 im using a datepicker dialog fragment from an activity(which is fine) and a fragment(which is giving me a class cast exception) Sep 26 08:48:07 ok Sep 26 08:48:20 and the problem is you dont understand what the exception is ? Sep 26 08:50:28 the_fog not sure what you are asking… ? Sep 26 08:50:40 no no, i suppose the problem is i need advice on ther best way to handle datepicker fragment usage from inside other fragments... Sep 26 08:50:51 sorry for the ambiguity Sep 26 08:50:58 oh, just same as activity Sep 26 08:51:11 fragment dialog ? Sep 26 08:51:21 dialog yes Sep 26 08:51:36 yeah just same as activity I guess Sep 26 08:51:44 Hello. How to use View.isInEditMode()? Sep 26 08:52:55 interface in the caller? Sep 26 08:53:04 @ me? Sep 26 08:53:22 sorry StingRay_ Sep 26 08:56:22 erm yes Sep 26 08:56:30 again not sure what the question is Sep 26 08:56:44 the caller is the fragment so yeah, I guess if thats where you want the data Sep 26 09:06:57 Hi. Anyone ever experienced the Dev Console thinking your apk has been translated into a language that you've not added any resources for? :) Sep 26 09:09:48 Chamooze, Play store console? Sep 26 09:09:57 Yeah Sep 26 09:10:12 yes, it's usually when another dependent library drags in language support files Sep 26 09:10:28 e.g. like Google Play Services having values- Sep 26 09:11:45 that's what I figure as well. I just find it odd that there's only one language and it happens to be my native language. :) Sep 26 09:12:18 I'm guessing it's some locale setting when building the APK or some such maybe? Sep 26 09:12:24 um, no Sep 26 09:12:29 it's pretty much just resources :) Sep 26 09:12:36 or your translation of description on play store Sep 26 09:13:41 It's specifically telling me to translate store listing because APK has that language Sep 26 09:15:06 I see there are tons of language codes mentioned in resources.arsc, so there's definitely some localization info being pulled in by a lib Sep 26 09:15:43 Just trying to grasp what it's actually looking at, since it's finding swedish but none of all the other languages in there Sep 26 09:18:43 lasserix: could you see the link? Sep 26 09:27:36 hi there, I have an old app (minSDK=7) that I've upgraded to Android Studio 0.8.9 and Build Tools 20. My problem is that the textAppearance in TextView elements doesn't change anything. My theme is based on Theme.Light and it's very simple just changing background colors. Sep 26 09:28:37 I'm testing with an Android 4.2.2 ral device Sep 26 09:28:42 real* Sep 26 09:35:17 the textAppearance value is "?android:attr/textAppearanceLarge" Sep 26 09:37:32 I dont think that was even in SDK7 Sep 26 09:37:37 could be wrong Sep 26 09:37:39 probably am Sep 26 09:40:18 I've tried with "@android:style/TextAppearance.DeviceDefault.Large" and it's the same Sep 26 09:45:43 do you know how to keep non-classes files in JAR file generated by gradle android build, if source directory contains them? Sep 26 09:47:35 blues-man, I guess they should go in the assets directory Sep 26 09:48:56 berarma, but then I should access by AssetManager, while those source access files by FileUtils.getStreamForUrl("classpath:org.packages.foo/file", null))); Sep 26 09:49:14 I wonder why with eclipse I get the correct Jar and with gradle not Sep 26 09:50:49 because you havent told gradle where your jar is one would assume. Sep 26 09:57:26 rgr, sorry I didn't understood. I'm using using classes.jar with a task just to rename it and place elsewhere, but how to get the jar with files without making another task that just add them to the jar/zip file? Sep 26 10:04:37 I'm confused, does google actually require me to publish my address even if I don't have any payment options or advertisement in my apps or not? Sep 26 10:04:57 I don't have anywhere in my settings to put my actual address (and I wouldn't either -.-) Sep 26 10:05:03 sh*t just got real (re: recent bash bug) - https://gist.github.com/anonymous/929d622f3b36b00c0be1 Sep 26 10:32:27 hi Sep 26 10:32:49 is there any advantage to using a FragmentPagerAdapter rather than just replacing the fragment of a UI view? Sep 26 10:38:11 yes Sep 26 10:40:05 ravilov, maybe patches aren't enough :S Sep 26 10:42:42 StingRay_: was that for me? Sep 26 10:42:54 yes Sep 26 10:43:10 alright, which? Sep 26 10:43:22 lots, learn and you will see Sep 26 10:43:34 it's a pretty odd and lapse question tbh Sep 26 10:44:02 so gave a very simplistic answer :) Sep 26 10:54:16 hi, can I use the same layout for viewpager's fragments? Sep 26 11:07:10 MyWay yes Sep 26 11:07:56 because they are different instances Sep 26 11:09:49 the inflated view is unique, unlike a drawable where you would have to mutate() if there were differences Sep 26 11:10:41 the layout file is only a "blueprint" from which the view is created. So you can use it multiple times Sep 26 11:13:44 danijoo_ by that def you could say the same about a drawable xml Sep 26 11:13:50 but not the case Sep 26 11:14:06 oh wait…it is the case Sep 26 11:14:11 * StingRay_ is confused now Sep 26 11:14:16 sure :) its a blueprint to create drawabled Sep 26 11:14:35 not sure it is the case, I think it caches based of id Sep 26 11:14:43 maybe… cant remember now Sep 26 11:14:53 me neither. But never had to bother about that anyways Sep 26 11:15:04 thank you Sep 26 11:15:38 danijoo_ I'm filter crazy so I do bother :) Sep 26 11:15:53 :) Sep 26 11:17:42 inside viewpager's fragments (onActivityCreated), I'm setting the adapter, but when I switch fragments, the content disappear, am I missing something? Sep 26 11:18:37 MyWay did you get the order of that question wrong ? Sep 26 11:18:49 you set it in fragment A, switch to B and its gone when you go back to A or what> Sep 26 11:18:58 maybe my brain needs more coffee Sep 26 11:19:26 when I switch to B, B content is empty and if I switch back to A, it's empty too Sep 26 11:21:42 show the viewpager adapter code and fragment coee Sep 26 11:21:44 code Sep 26 11:28:34 fragment code: http://pastebin.com/PbeRA1bK Sep 26 11:29:53 adapter's code: http://pastebin.com/U1HPHRP0 Sep 26 11:29:55 what do you think when onActivityCreated is called? Sep 26 11:30:13 when it's firstly displayed Sep 26 11:30:24 from the name. Sep 26 11:30:35 on ACTIVITY created Sep 26 11:30:49 its called ONCE, when the activity is created. Sep 26 11:31:07 so if you switch from one frag to another and then switch back, it will not be called again Sep 26 11:31:34 which is why the view is empty in your case ;) Sep 26 11:31:38 yes, but didn't think I would need to call it again, as I set adapter Sep 26 11:31:45 why should I set the adapter again, if this is the case? Sep 26 11:32:21 because when you switch back from the fragment, the view gets destroyed Sep 26 11:32:35 if oyu switch back, only onCreateView is called, but not onActivityCreated Sep 26 11:32:50 so you have to move all those code vom onActivityCreated to onCreateView Sep 26 11:32:59 from* Sep 26 11:33:00 so I have to associate it again, with the adapter Sep 26 11:33:05 yep Sep 26 11:33:17 blues-man, patches are plenty enough, it's now a matter of patching all the systems out there... which just won't happen Sep 26 11:35:05 danijoo_: so there is no need to hold mOutputAdapter as a class member, because even if it don't gets destroyed, I don't need it anymore and I have to re-instantiate the adapter? Sep 26 11:36:06 well you could check in onCreateView if mAdapter is already created, if it is, just add it to the view Sep 26 11:36:15 if it isnt, create it and then add it to the view Sep 26 11:37:15 this would give you a better performance because its not recreated on switching fragments. Sep 26 11:38:20 yes Sep 26 11:45:09 thank you, danijoo_; I have another question, I never understand when notifyDataSetChanged() should be called and when not Sep 26 11:46:01 MyWay the clue really is in the names of these things Sep 26 11:46:13 ^^^ Sep 26 11:46:16 I dont mean to insult but it is quite funny :) Sep 26 11:46:22 what is gradle info? Sep 26 11:46:29 no problem :P Sep 26 11:46:35 it notifies the adapter that the data set has changed :p Sep 26 11:46:35 so apologies if there is any offence, it's not intended Sep 26 11:46:53 so if you change the data (ie the list the adapter holds), you have to call it to reset the views Sep 26 11:47:08 yes, but if I have to call it everytime I do I simply "add", why not "automatically" call it, on adapter method add? Sep 26 11:47:54 I mean, shouldn't the adapter automatically call it everytime? Sep 26 11:48:01 doesn't it? Sep 26 11:48:06 because you dont always want to do that. If I add 100 items to my adapter, i dont want to reset the views everytime but after the last one Sep 26 11:48:30 so, i donwloaded android studio and also qt creator... If i sometimes would made a mutiplataform, and sometimes i would made just a android app, should i learn and use both? Sep 26 11:48:30 oh, so the reason is the developer should call it, when he thinks it's time to Sep 26 11:48:40 also you can simply override add() and add that functionality if you want it Sep 26 11:48:44 I know ArrayAdapter does indeed notify of data changes when I modify the underlying array, but *only* if I do it through the adapter and do not modify the array directly Sep 26 11:49:04 also what danijoo_ said Sep 26 11:49:32 MyWay, yes, the idea is that you use common sense when figuring out when to call it ;) Sep 26 11:49:34 yes ravilov Sep 26 11:49:51 sorry for the stupid question :P Sep 26 11:49:55 not really common sense Sep 26 11:50:03 if backing data changed, call Sep 26 11:50:06 if not dont Sep 26 11:50:19 ravilov, servers at least should been able to update patched bash package as well, then embedded..who knows :) Sep 26 11:50:38 so if I'm using arrayadapter or extending it and I'm using the adapter to add, I don't need to call Sep 26 11:50:46 if I access the data directly, I need to Sep 26 11:50:57 MyWay "external" to adapter call Sep 26 11:51:08 yes Sep 26 11:51:15 if internal the adapter kind of already knows :) Sep 26 11:51:42 MyWay, is your app the "MyWay" App? Sep 26 11:51:49 no :P Sep 26 11:52:12 ahh Sep 26 11:52:29 but nice to know somebody did this app :O Sep 26 11:52:45 never heard of, before Sep 26 12:06:02 hi Sep 26 12:06:35 check out my game: http://goo.gl/5Vid9b Sep 26 12:08:04 Buoy172 you know this is not really a place (not even a good one) to advertise right ? :) Sep 26 12:08:35 I know it's not a good one Sep 26 12:08:58 but it's a place, and I'd like to call it "sharing" instead of "advertising" Sep 26 12:10:18 pff. no privacy policy no download Sep 26 12:10:51 danijoo_ no permissions thats why :) Sep 26 12:10:57 hmm, good point Sep 26 12:11:16 I checked off privacy policy in the developer console Sep 26 12:11:31 perhaps I should include some privacy policy Sep 26 12:12:56 thank you StingRay_ and danijoo_ Sep 26 12:15:45 well, since this is android-dev, I might as well ask here: how do I create a privacy policy? Sep 26 12:15:54 is there some tool or something? Sep 26 12:16:09 Buoy172 well what info does your app have access to ? Sep 26 12:16:17 cause thats a driving factor Sep 26 12:16:24 well, none Sep 26 12:16:31 that's why no permissions Sep 26 12:16:33 there you go Sep 26 12:16:57 in the developer console there's an option to provide a link to a privacy policy Sep 26 12:17:15 I thought people feel more secure if there were one Sep 26 12:17:21 as danijoo_ pointed out Sep 26 12:18:58 in the android studio, i can later add a pre build google maps activity? Sep 26 12:19:15 or i can just do it on the project build screen? Sep 26 12:21:21 Buoy172, nobody asked for any sharing, therefore it is "forced pushing" also known as advertising Sep 26 12:21:54 ravilov, I don't agree Sep 26 12:22:14 of course you don't Sep 26 12:22:38 what's "forsed pushing" :) Sep 26 12:22:44 some term you just made up Sep 26 12:23:08 it is the explanation of advertising, that's why it's quoted Sep 26 12:23:17 draxdeveloper: it should be possible to do it later on from the contextual menu in the project view (the one on the left) Sep 26 12:23:18 it means pushing content on someone without them asking for it Sep 26 12:23:35 I didn't push anything on you Sep 26 12:23:41 I just shared on android-dev Sep 26 12:24:06 yeah therefore pushing it on everybody in here, including me :p Sep 26 12:24:30 I don't want to argue, we're just spamming the channel now Sep 26 12:24:31 there really needs to be a channel for promoting your own creations Sep 26 12:24:45 if you want to help answer draxdeveloper's question Sep 26 12:24:59 wow really? Sep 26 12:25:35 TY Sep 26 12:26:25 need to leave, will come back later Sep 26 12:26:50 i tought that i was invisible lol, TY jush and Buoy172 Sep 26 12:41:17 hi i am using WIFIDirect Technology to make an app, i want to decide the group owner myself, can someone tell me how to do it?? Sep 26 12:51:41 hi i am using WIFIDirect Technology to make an app, i want to decide the group owner myself, can someone tell me how to do it?? Sep 26 13:06:24 good morning question, what would cause my qiery's in onupgrade not work but when i call them when the application starts they work? Sep 26 13:08:35 "not work" is a great problem definition Sep 26 13:08:41 :) Sep 26 13:08:48 ^^^ Sep 26 13:08:49 user term… I hear that lots Sep 26 13:09:01 getting more popular too Sep 26 13:09:27 try going to a mechanic with your car. leave them the keys and say "this does not work" Sep 26 13:18:14 He kinda didn't bring his car Sep 26 13:18:36 true.. he just hinted there might be one ^^' Sep 26 13:18:44 hahaha Sep 26 13:20:24 the onupgrade function is failing and not throwing anything in try catch Sep 26 13:20:50 so you're sure it's being called? Sep 26 13:21:33 did you increment database version ? Sep 26 13:21:48 also not the safest use of try/catch Sep 26 13:22:03 in that particular place Sep 26 13:22:37 DB reads blank by the application when this happens, but i can read it if i download the file to my computer locally Sep 26 13:22:44 yes i have confirmed that Sep 26 13:23:14 but seems like after the first try catch if the first query fails (and it will cause technically yhe DB is already up to date partly the rest of it fails Sep 26 13:23:15 and im fucked Sep 26 13:23:54 in the way you are designing and implementing this…. I would guess…yes Sep 26 13:24:02 overall no, not even close Sep 26 13:24:07 :) Sep 26 13:25:38 think i got it guys Sep 26 13:26:12 hmmm wondering if this is worth is https://play.google.com/store/apps/details?id=com.iwobanas.screenrecorder.pro to do tutorial vids… think it maybe over priced Sep 26 13:26:36 do apps like this just use internal commands like adb interfaces with ? Sep 26 13:27:33 no idea.. but it requires root Sep 26 13:27:49 id just go for a free desktop recording tool + emulator Sep 26 13:28:55 just use screenrecord Sep 26 13:29:09 danijoo_ can't Sep 26 13:29:28 pfn yeah but like the option to sync audio since it's a tutorial Sep 26 13:29:48 audio from device, matched to mic recording is quite easy Sep 26 13:30:03 you can always dub audio later with another tool Sep 26 13:30:29 Hi guy.. good morning (to anyone in the East Coast). I have a problem. I have an activity with a list fragment, when I click on an item form that list, it uses FragmentTransaction replace to open a detail fragment. that's all good, but when I rotate the device, it re-creates the activity, loading the list again Sep 26 13:30:30 not really, the timing is too important Sep 26 13:30:52 have anyone had to handle that again? to recreate the activity keeping the last fragment shown on top? Sep 26 13:31:19 fmontano you are just describing the default behaviour of android Sep 26 13:32:07 StingRay_: so, I shouldn't try to keep the detail fragment shown after orientation change? Sep 26 13:32:23 fmontano: onSaveInstanceState -> store the information that you are in a detail activity and which one Sep 26 13:32:33 you should do what you want, how is the main factor Sep 26 13:32:43 on activity creation, check that create your activity in the correct state Sep 26 13:33:21 if user is 3 fragments deep in the navigation, I should use onsaveinstancestate to store the "path" and try to re-create it later? Sep 26 13:33:34 is that a good/valid solution? Sep 26 13:33:38 no :D Sep 26 13:33:43 but a working one :p Sep 26 13:33:46 lol Sep 26 13:33:53 what would be a clean solution? Sep 26 13:33:57 any hints? Sep 26 13:33:57 never did that but isnt there something like a fragment backstack that can be saved? Sep 26 13:34:11 I am indeed using backstack Sep 26 13:34:13 let me check on that Sep 26 13:36:02 fmontano, yes a good practice is to make sure the rotation is seamless Sep 26 13:36:32 I never understand comments like that :) ravilov Sep 26 13:36:35 anyone physically in japan? if so please msg me, I need a quick favor Sep 26 13:36:43 if your activity state gets reset just because of rotation... don't you think that would confuse the users? Sep 26 13:36:59 StingRay_, which part is confusing? :) Sep 26 13:37:17 like saying, "an app will always be better if you design it well" Sep 26 13:37:29 my mind is in japan, but physically, no :( Sep 26 13:37:33 "implementing wrong solutions is a bad idea" Sep 26 13:37:36 :) Sep 26 13:38:08 lol Sep 26 13:38:11 StingRay_, you'd think things like that would be obvious to everyone but they're not :p Sep 26 13:38:33 I would think its better for users to stay in the same place after rotating the device Sep 26 13:38:42 My app keeps crashing while debugging :( Sep 26 13:38:49 ravilov to the type of individual they are not obvious to, no amount of mentioning it will help :) Sep 26 13:38:52 Syzygy_: at least theres something to debug then :D Sep 26 13:38:55 um, isn't that the point, fmontano? that's what you're trying to achieve, right? Sep 26 13:39:00 yah Sep 26 13:39:08 StingRay_, rephrasing sometimes helps ;) Sep 26 13:39:23 I think this may be the key? getFragmentManager().putFragment Sep 26 13:39:50 ok good, then we are on the same page Sep 26 13:40:04 now how to achieve that, I don't know, since I've never worked with fragments before Sep 26 13:40:42 I just know how I would expect an app to behave from an user perspective :) Sep 26 13:41:35 StingRay_, message of the day, just for you: strive for the good and avoid the bad Sep 26 13:41:38 :p Sep 26 13:42:03 * StingRay_ is amazed Sep 26 13:42:24 you're welcome Sep 26 13:43:42 he posess great skills (American Ninja) Sep 26 13:46:57 Hello guys Sep 26 13:47:12 I'm dealing with yet another NPE in the codes I want to use Sep 26 13:47:44 I have the Stack Trace and have manually mapped all the calls right to the begining to find where it is thrown Sep 26 13:48:05 peska: share the stack trace to see if we can help Sep 26 13:48:06 But the two traces are different and can't seem to connect the dots at the mment Sep 26 13:48:11 peska so the next step would be fix it… now you know the cuase Sep 26 13:48:47 peska whats a NPE ? I dont mean what it stands for Sep 26 13:48:58 null pointer exception Sep 26 13:49:02 ugh Sep 26 13:49:07 not what it stands for Sep 26 13:49:13 and not you either Sep 26 13:49:31 peska do you know what it "is" ? and how it is caused ? Sep 26 13:49:50 it is Null Pointer Exception Sep 26 13:49:53 http://pastebin.com/GhJ6FgSb Sep 26 13:50:01 * Buoy172 is just trolling Sep 26 13:50:09 No, I want to find know where it is thrown Sep 26 13:50:12 so i can resolve it Sep 26 13:50:16 yeah stop, attempting to do some good here Sep 26 13:50:29 Should i post the source files? Sep 26 13:50:35 peska ok so that is not a full trace Sep 26 13:50:49 the exception is many lines, not 3 Sep 26 13:51:00 StingRay_: Indeed it is pretty short but this is what is eclipse giving me Sep 26 13:51:01 what's in ADKService.java:138 though? Sep 26 13:51:09 also tried with adb logcat Sep 26 13:51:43 fmontano: Let me pastebin the source files, perhaps will be more clear this way. Sep 26 13:51:55 peska: that will definitely help :) Sep 26 13:52:09 It's called from a thread, StingRay_, that's all you get Sep 26 13:52:15 just realised Sep 26 13:52:32 Either way, the stacktrace tells you exactly where the exception is thrown Sep 26 13:52:53 ADKService:http://pastebin.com/kgqV6t6R Sep 26 13:53:31 MainActivity:http://pastebin.com/WSAN3zs6 Sep 26 13:54:15 peska, I pretty much see the error Sep 26 13:54:28 http://pastebin.com/cEM0mZ6s can someone help me guess what might cause my app to crash during debugging? Sep 26 13:54:41 ServiceADKApplication:http://pastebin.com/VdvRu7WF Sep 26 13:54:41 you use getOutputStream in line 138 and then in line 139 you check if it's null Sep 26 13:55:08 Syzygy_: java.io.FileNotFoundException Sep 26 13:55:18 Buoy172: Indeed they are null, but can't understand why Sep 26 13:55:35 fmontano, yeah, but why would it not find the trace file it uses during debuggingß Sep 26 13:55:37 ? Sep 26 13:55:43 why can't you understand Sep 26 13:55:58 if you didn't make it non null, then it will be null Sep 26 13:56:10 Hello. Aspiring app dev here. Got a problem with the filesystem. Calling getExternalCacheDir().getPath() I get the path "/storage/emulated/0/Android/data/appname/cache". So far, so good. However, when I try to write to that path, files are written to the full path on the external storage (not from file system root), so that the path written becomes something like "/storage/emulated/0/storage/emulated/0/Android/data/appname/cache". What Sep 26 13:56:13 peska, just put "Log.e" inside the 'if' Sep 26 13:56:13 if you do initialize them, then you did it too late Sep 26 13:56:23 The trace from Eclipse is pretty unhelpfull in this case, giving only three lines Sep 26 13:56:38 peska, i.e. put line 138 where line 140 is Sep 26 13:56:51 peska: It tells you the exact line and cause. It's all the help you need Sep 26 13:56:58 the trace is fully helpful Sep 26 13:56:59 Now it's up to you to figure out why one of those methods are returning null Sep 26 13:57:16 it's null because you haven't initialized them... Sep 26 13:58:05 Syzygy_: are you trying to debug on the emulator, or on a device? Sep 26 13:58:12 device Sep 26 13:58:23 what device? Sep 26 13:58:25 SimonVT: Thats why I'm here, I have been drawing Traces since this morning. It is just a long chain of calls with the last one being a USB broadcaster Sep 26 13:58:33 galaxy s 2 with cyanogen mod Sep 26 13:58:37 android 4.4.4 Sep 26 13:59:25 if you think it's device/OS dependant, i can get another phone Sep 26 13:59:40 Syzygy_, anr always occur during breakpoints, don't force close on anr... Sep 26 14:00:10 pfn, I'm not sure how to forceclose an anr... or what an anr is Sep 26 14:00:20 pfn: but the problem is that its not finding traces.txt Sep 26 14:00:22 FileNotFoundException: /data/anr/traces.txt Sep 26 14:00:49 fmontano thats the result of anr wanting to write to it Sep 26 14:00:57 anr catcher * Sep 26 14:00:58 peska: If you know what method returns null, that's what you want to look at Sep 26 14:01:01 fmontano, pretty irrelevant Sep 26 14:01:20 pfn: But it is initialized with setInputStream in the ServiceADKApplication.java Sep 26 14:01:29 peska, you haven't set stream prior to send commanf Sep 26 14:01:36 setInputStream() Sep 26 14:01:42 think about your order of operations, fix them Sep 26 14:02:44 Syzygy_, perhaps you have dev options that close on anr automatically Sep 26 14:02:53 pfn: Unfortunatly another person has written this spaghetti code and I have no other option but to sort it :D Sep 26 14:03:06 pfn, where would I find those so I can change it? Sep 26 14:03:52 Syzygy_, alternatively, fix permissions on /data/anr Sep 26 14:04:03 so traces.txt is writable Sep 26 14:04:22 I feel kind of silly for even trying out the iPhone 6 Sep 26 14:04:33 its a nice phone, but then you see the rumored specs for the Droid Turbo Sep 26 14:04:36 :/ Sep 26 14:05:47 I just want a new moto x Sep 26 14:06:13 not really, though, I still love my old moto x Sep 26 14:06:38 pfn: most news outlets seem to be of the opinion that the MotoX is going to get upstaged by the Turbo :O Sep 26 14:06:39 Hey guys, would you say it's worthwhile to integrate Crashlytics, Google Universal Analytics, and New Relic into a project? Is that too much? Do some of these services offer the same features? Sep 26 14:06:50 New Relic is more web based Sep 26 14:06:51 * danijoo_ kindly waits for the Nexus X Sep 26 14:06:55 excellent tool Sep 26 14:06:55 I can't stand that it's gotten bigger, and no pure model on vzw Sep 26 14:07:07 xximjasonxx: So, not worth it for mobile? Sep 26 14:07:22 I dont know if it can provide any value for mobile. We use it mostly for our web stuff Sep 26 14:07:25 xximjasonxx, I'm not a spec junky, so I don't care Sep 26 14:07:28 others here may know though Sep 26 14:07:49 pfn: I just love a solid battery that I cannot kill regardless of how hard i try Sep 26 14:07:51 newrelic is great for backend Sep 26 14:07:57 nothing in any "droid" model I've wanted Sep 26 14:08:05 MarkyC: we use google analytics for our apps Sep 26 14:08:23 xximjasonxx: Thanks for your input, I feel more comfortable only added 2 more libs to the project instead of 3! Sep 26 14:08:28 pfn: to each their own, I was only lamenting that I used my upgrade for the iPhone6 Sep 26 14:08:36 havent been disappointed, but I miss my Android Sep 26 14:08:49 xximjasonxx, easy to sell on ebay Sep 26 14:08:52 true Sep 26 14:08:52 xximjasonxx: just be sure to not put it in your backpocket :D Sep 26 14:09:04 danijoo_: thats the 6_+ :) I am not one of the 9 Sep 26 14:09:19 and recoup most of the full price Sep 26 14:09:28 pfn: naw, too many people at the office who want one and are willing to pay full price Sep 26 14:09:35 i can charge $600 and easily sell it Sep 26 14:09:40 since I only paid $200 for it Sep 26 14:09:41 xximjasonxx: What insight does it provide? Goal tracking? Does it catch crashes? If so, I'd do away with Crashlytics altogether, but I'm thinking it provides insight I might not be able to find elsewhere Sep 26 14:10:04 MarkyC, analytics doesn't track crashes Sep 26 14:10:17 MarkyC: i think google tracks crashes for you Sep 26 14:10:21 on the developer console Sep 26 14:10:38 you can't set a default crash handler and send an analytics event, though Sep 26 14:10:42 you can Sep 26 14:10:44 Hello guys. Can some to advise me implementation of GridView which supports Header and Footer Features? Sep 26 14:10:57 and play store crash tracking is useless Sep 26 14:11:05 what I love is my iPhone friends cant understand how I could consider going back to Android. Yet, they tried Windows Phone and went back to iOS for the same reason, they jsut like it better Sep 26 14:11:08 Yauhen90: https://github.com/TonicArtos/StickyGridHeaders Sep 26 14:11:10 its a frustrating conversation Sep 26 14:11:20 Yauhen90, easy, just lay it out how you want Sep 26 14:11:35 are these the libraries you are looking for? Sep 26 14:11:43 vertical linear layout or a relative layout Sep 26 14:11:58 don't need a library to do it... Sep 26 14:12:13 wasnt sure if he meant section headers. Sep 26 14:12:24 pfn is right, RelativeLayout with a GridView in the middle, and whatever you want pinned to the top/bottom Sep 26 14:12:30 if he just wants a topic line and a footer, just use a layout Oo Sep 26 14:12:50 MarkyC: we mostly use Google Analytics to track where users spend their time in the app, less about the diagnostic side Sep 26 14:12:56 but yeah, scrolling sticky headers are a different matter Sep 26 14:12:58 StickyGridHeaders is good when you need only header Sep 26 14:13:00 pfn: I see that Crashlytics advertises the ability to pinpoint the line of code that causes the crash, so that sounds enticing. Sep 26 14:13:06 and i need header and footer Sep 26 14:13:18 I think added both GUA and Crashlytics is the winning option here. I don't mind doing the work twice Sep 26 14:13:19 MarkyC, any crash reporting system does that Sep 26 14:13:35 * StingRay_ just sent crashlytics some suggestions today :) Sep 26 14:13:36 I don't like crashlytics for a multitude of reasons Sep 26 14:13:49 i need behaviour as in listview Sep 26 14:13:53 MarkyC: what would be the point of reporting a crash without that line? "hello there is a crash but i dont tell you why?" Sep 26 14:13:55 just addHeader addFooter Sep 26 14:14:04 If it's crash reporting that you want, I'm a big fan of ACRA Sep 26 14:14:09 I was lazy with versions so had to disable 20 or so, and it took 10 minutes … not fun Sep 26 14:14:28 pfn: Do tell, and if there are alternatives I'm all ears. I know you guys know your stuff so I value your opinion! Sep 26 14:14:39 MikeWallaceDev: I'll check that out! Sep 26 14:14:54 ACRA is free and has great reporting Sep 26 14:15:07 and you can add your own information to the bug report Sep 26 14:15:16 i found implementation of gridview with header support by google and tuned for footer support but its have issues Sep 26 14:15:16 MikeWallaceDev: I need iOS support as well unfortunately :/ Sep 26 14:15:29 oh. I didn't see that part. Sep 26 14:15:58 only thing I like about crashlytics is that it includes basic analytics like active users and monthly active Sep 26 14:16:03 Yauhen90: An SSCCE would help here Sep 26 14:16:18 wut? Sep 26 14:16:25 pfn odd that my crashlytics stats dont match ga stats Sep 26 14:16:29 Yauhen90: http://sscce.org/ Sep 26 14:16:52 Basically, you want to narrow the problem down in a way we can help you without you posting your entire app for us to look at Sep 26 14:17:26 MarkyC: you want to see HeaderGridView implementation? Sep 26 14:18:08 Yauhen90: Well, you did say the header worked, but not the footer. Without seeing the code you wrote for the footer, it's hard to pinpoint what the problem may be Sep 26 14:18:38 Ok Sep 26 14:18:46 wiat a sec Sep 26 14:20:24 i used this implementation http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.3_r2.1/com/android/photos/views/HeaderGridView.java Sep 26 14:20:34 this is my http://pastebin.com/iKP9ERx8 Sep 26 14:21:20 i just watched on ListView footer implementation and tried to tune this HeaderGridView Sep 26 14:22:54 So for example i have 3 columns. If i have 3 items and footer - everything ok. if i have 1 or 2 items - footer overlap them Sep 26 14:23:12 partially Sep 26 14:23:57 so if i have full row - everything ok, not full - problems Sep 26 14:25:13 StingRay_, they calculate differently or something Sep 26 14:26:13 anyone see a reason why this class wont run doInbackground Sep 26 14:26:13 acra looks nice Sep 26 14:26:20 http://pastebin.com/Qb1Yu6f4 Sep 26 14:27:09 So I got a crash report for my app on google play. It was a nullpointer exception from getting the value of a spinner menu. I guess I could either try to change some values/settings and click that menu here and there trying to replicate the error so i can see what's up... or... well I'm asking here if there is some other easy/better way to track down things like this? are there some tool I can run my code through to find out how that nullpoint Sep 26 14:27:09 er exception could happen even if I cant figure it out myself? Sep 26 14:27:10 PinkSpecs: might help to post the code using it. Sep 26 14:27:26 did you set a breakpoint in it to confirm? (logcat can be laggy) Sep 26 14:27:49 (and of course set a breakpoint in the catch clause) Sep 26 14:29:20 jesperj, easy, null check... Sep 26 14:33:18 pfn: could you give a little more information about what/how you mean Sep 26 14:36:02 rgr: i have updated the paste with how I am using is Sep 26 14:36:47 i have tried on couple of phone that log on line 17 is being called but thats the end of it Sep 26 14:41:38 Hi. Sep 26 14:42:43 I have a ViewPager with a FragmentStatePagerAdapter set. The FragmentStatePagerAdapter by defaults loads the next Fragment to display, but since I modify the fragments runtime, I caches and returns the wrong Fragment. Sep 26 14:42:54 Anyway to disable caching? Sep 26 14:43:04 Or flush its cache? Sep 26 14:44:34 jesperj, if you get a null, handle it... not much easier than that Sep 26 14:44:37 I do change my model and invoke notifyDataSetChanged() but it doens't help. Sep 26 14:44:38 don't need to repro... Sep 26 14:48:56 pfn: I'm trying to reproduce how the value would be null in the first place. your comments are really lacking any useful advice. "handle it" is pretty vague. Sep 26 14:48:57 then step through it. It IS called. Sep 26 14:49:12 PinkSpecs: ^^ Sep 26 14:49:13 if (null) don't do shit Sep 26 14:49:27 how it can be null is just a matter of understanding your code Sep 26 14:49:35 pfn: right... and im not interested in handling it if it is null, im interested in finding out why it became null Sep 26 14:49:45 then read your code and understand why Sep 26 14:49:55 pfn: and i was asking for if there was a tool that could help me with that Sep 26 14:49:56 null pointers are just about always the easiest to figure out Sep 26 14:50:06 pfn: looking at my own code to try to figure it out is of course obvious Sep 26 14:50:12 jesperj: use the debugger for crying out loud. set a watch on the var or step through watching its value yourself. Sep 26 14:50:44 its what the debugger is for. staring at he printout or display is a waste of time in most cases. Sep 26 14:50:59 will take you about 30s. Sep 26 14:51:46 rgr: ok. I don't know how to use the debugger properly so I guess googling on some tutorials on how to use it is my next step. Sep 26 14:52:08 I've been doing my "debugging" without the debugger so far Sep 26 14:52:12 its so easy and idiot could use it in ten seconds. set breakpoint. debug. done. Sep 26 14:52:23 not using it is ridiculous. Sep 26 14:52:58 there now, take it easy with the easy and idiot remarks. everything is easy once you've learnt it and it won't be that easy for everyone to learn. and you know that Sep 26 14:53:00 but thanks Sep 26 14:53:04 sorry. but Im a bit sick of people asking the obvious when there s a great debugger built int. Dont use logat etc either unless you really think you need to store the errors. Sep 26 14:53:38 a breakpoint means no ned to change th code or remove log cvalls or "printfs" etc. It really IS easy. You will sav yourself a LOT of time. Sep 26 14:53:44 rgr: that's ok. i don't know how many times you get to hear things. however i don't ask for trolling. my questions are sincere. Sep 26 14:54:06 I wasnt calling you an idiot btw. I said n idiot CAN use it. Sep 26 14:54:15 rgr: heh, well it felt that way ;) Sep 26 14:54:22 I know you're not trolling. But the debugger is there for a reason. Sep 26 14:54:33 rgr: debugger here I come. Sep 26 14:54:33 * StingRay_ is an idiot and also uses the debugger Sep 26 14:54:38 ;) Sep 26 14:54:48 *sigh* Sep 26 14:54:50 see : confirmation... Sep 26 14:54:51 vim/emacs people. Sep 26 14:54:58 StingRay_: then there might be hope for me too Sep 26 14:55:16 jesperj: you wont regret it. Which IDE? Sep 26 14:55:23 rgr: eclipse Sep 26 14:55:46 ok . I dont know that. But I suspectz te debugger is great too. I use intellij. Its indespensable in developing Java/Androi. Sep 26 14:56:32 You'll find ouodles of tutorials but you really probably dont need one. Set a breakpoint in onCreate and go from there.... Sep 26 14:56:49 spaeter. Sep 26 15:01:54 Is there a way to see the control flow of an Android app Sep 26 15:02:19 in eclipse? something like debugging but without markers row by row execution? Sep 26 15:02:32 no Sep 26 15:03:03 Ugliest code I have ever seen Sep 26 15:03:09 sure there is Sep 26 15:03:18 you turn to the paper it was designed on and look Sep 26 15:03:33 yeah, but that's not 'android' specific Sep 26 15:04:41 StingRay_: I'm dealing with code written by a student, nothing standard Sep 26 15:04:58 nothing wrong with that Sep 26 15:05:06 standard is boring :) Sep 26 15:05:27 nothing amazing ever came from being standard :) Sep 26 15:05:47 StingRay_: Unless you don't know where the code starts :( Sep 26 15:05:51 peska, theres something like that in AS Sep 26 15:06:38 peska, this is Android, how can you not know where the code starts?? Sep 26 15:06:44 no matter how revolutionary the code is, it usually always starts at the beginning :p Sep 26 15:06:51 and have a project which i worked on for a month and is stalled because of it Sep 26 15:06:54 * ravilov is just all kinds of philosophical today Sep 26 15:07:19 MikeWallaceDev: Wish you were right, take a look yourself Sep 26 15:07:44 where? Sep 26 15:07:47 Don't know if you can still see the files I have posted... I can't figure out an NPE Sep 26 15:08:12 link Sep 26 15:08:23 peska is this that thread NPE that everyone helped you with ? Sep 26 15:08:26 MikeWallaceDev: Should I send you the links in pvt? Sep 26 15:08:32 don't want to spam the channel Sep 26 15:08:53 you already "spammed" it with your story, might as well follow up ; Sep 26 15:08:54 ;) Sep 26 15:09:04 already spammed :) Sep 26 15:09:14 StingRay_: Yes! and yet I can't figure it out, even If i have put logs all over the place Sep 26 15:09:29 peska then "debug" it like everyone said Sep 26 15:09:34 that's one pretty clever student right there... Sep 26 15:10:12 wait, you have students, but you don't know how to use a debugger?? Sep 26 15:10:18 anyway... let me see it Sep 26 15:10:39 StingRay_: I did, it just throws an error at a method but I cant figure out what caused it as the method is dependent on a long chain of calls with no consistency even i logged them individually. Sep 26 15:11:28 peska cause the method is called on null Sep 26 15:11:59 peska, I find that very hard to believe, NPEs are one of the most common, most simple, and most easily fixable errors Sep 26 15:12:39 can I see the code?? Sep 26 15:12:54 MikeWallaceDev: Here are the links: StackTrace: http://pastebin.com/GhJ6FgSb, ADKService.java: http://pastebin.com/kgqV6t6R, MainActivity.java: http://pastebin.com/WSAN3zs6, ServiceADKApplication.java : http://pastebin.com/VdvRu7WF Sep 26 15:13:50 not enough info in your stacktrace. Give me the whole error Sep 26 15:13:53 ravilov: That is what I have also experienced, until now :D Sep 26 15:14:19 MikeWallaceDev: that is the only three lines, eclipse and logcat gives me Sep 26 15:14:22 MikeWallaceDev tis a thread, I forgot that too Sep 26 15:14:32 but it's there and simple Sep 26 15:14:42 false. there's more. Sep 26 15:14:45 tis 1 object and two methods Sep 26 15:14:57 and not hard to figure out Sep 26 15:15:09 remove the filter from your logcat viewer Sep 26 15:15:49 peska so what is null ? the app object ? the return stream ? tell me you figured that much out Sep 26 15:16:30 there should be a part that has "caused by" in it Sep 26 15:16:45 MikeWallaceDev: http://pastebin.com/Jpd2MrZ2 Sep 26 15:17:13 StingRay_: getInputStream and getOutputstream return null Sep 26 15:17:45 ok how do they acquire the stream to return ? Sep 26 15:17:46 which means that the variable mInpuStream in ServeADKApplication COULD be null Sep 26 15:19:00 why don't you wrap your Log.e("my get application is:"...) in a try/catch block, where you Log.e("exception") inside catch Sep 26 15:19:57 also, having the same tag for two log messages is inconvenient at best Sep 26 15:20:34 StingRay_: mInputStream could be null because the value passed to it through the call in enableControl of MainActivity.java Sep 26 15:21:12 where's mInputStream? Sep 26 15:21:51 MikeWallaceDev: It is declared in ServiceADKApplication.java Sep 26 15:22:26 I think you gave me an incorrect link Sep 26 15:22:37 yeah, I don't have the application Sep 26 15:23:50 MikeWallaceDev: Sorry, here it is: http://pastebin.com/GtGBJgXg Sep 26 15:24:52 StingRay_: Do you agree with my rudimentary stack trace? Sep 26 15:25:03 agree with it ? Sep 26 15:25:10 I mean the way the value could be null along the chain? Sep 26 15:25:17 it's an absolute how can I not Sep 26 15:25:45 erm well like I said, I dont have a debugger attached, if the var returned is simply null, then you have a flow issue Sep 26 15:25:47 simple Sep 26 15:26:38 * ravilov wonders if peska ever tried his suggestion Sep 26 15:29:05 I can't find where waitAck is being created ? Sep 26 15:29:48 you have two variables named mInputStream.... Sep 26 15:30:09 one in the app, one in the service Sep 26 15:32:30 too much mutable state => fail Sep 26 15:32:39 and in the Activity! Sep 26 15:32:51 MikeWallaceDev: It is created on line 348 of MainActivity Sep 26 15:34:07 I see it, thanks. Chrome's search is fucking up on me. Sep 26 15:34:20 messy code is messy Sep 26 15:34:26 (as in it showed me occurence -6 of 20 !) Sep 26 15:34:56 ok, this is a joke though : callAdk(int alpha, int bravo) Sep 26 15:35:38 you do know it's students, right? Sep 26 15:37:08 I don't care if it's your kid sister's ! Sep 26 15:37:25 ok, I think I found the problem Sep 26 15:37:39 The student doesn't understand Service Sep 26 15:37:51 this is not how you call a Service ADKService.self.sendCommand(parameter); Sep 26 15:38:22 Tell him/her to look up "started service" and binding Sep 26 15:38:42 MikeWallaceDev: Where is the problem? Sep 26 15:38:55 I just told you :) Sep 26 15:39:27 Peska, are you the student? or the teacher? Sep 26 15:39:39 are you on the phone, peska? in that case you might want to wait until you can switch to a real computer, you seem to be missing a lot of messages here Sep 26 15:40:08 MikeWallaceDev: I'm a colleague who has to use his messy code because he had written the code before me. Sep 26 15:40:23 rewrite it Sep 26 15:40:25 easy Sep 26 15:40:29 rewrite it!!!!!!!!!!!!!1 Sep 26 15:40:35 fuck, it's 4 files. Sep 26 15:41:07 but I'm guessing that you don't know how a Service works either :D Sep 26 15:41:26 I wish i had the time left of my deadline, I would have preferred using something better... Sep 26 15:41:46 his NPE hunting skills seem poor too :p Sep 26 15:41:48 unless your deadline is in the next 30 minutes, rewrite it. Sep 26 15:42:10 MikeWallaceDev: Well I'm new to Android, I have actually started a service in MainActivity itself Sep 26 15:42:40 Then get your company to hire me as a Contractor, I'll do this for you in a day. Sep 26 15:42:53 a day? Sep 26 15:43:13 a day. Sep 26 15:43:15 as a contractor, you have to stretch your hours :p Sep 26 15:43:48 as an engineering, you have to know that there are always problems. And that they will change their mind as to what they need. Sep 26 15:44:08 *engineer :) Sep 26 15:44:16 MikeWallaceDev: Wish I had a job. Being so desperate I would pay you to correct it Sep 26 15:44:53 you're a colleague without a job? Sep 26 15:44:56 Hi, any chance you can help me with AndEngine ? http://stackoverflow.com/questions/26058802/andengine-gles2-correct-way-to-setblendfunction Sep 26 15:45:09 How much would you charge me? :) to just make the code work? Sep 26 15:45:21 one day $500 Cdn. Sep 26 15:45:37 is this not breaking rules of chan ? Sep 26 15:45:39 :) Sep 26 15:45:45 And I wouldn't "just make it work" , I would rewrite it. Sep 26 15:45:49 MikeWallaceDev: colleague in the sense that we are both students not friends :) Sep 26 15:45:50 oh. Maybe. Sep 26 15:46:06 very much so Sep 26 15:46:23 I didn't think of that. Sorry. Sep 26 15:46:40 -> #android-hiring Sep 26 15:46:40 :p Sep 26 15:46:49 d.android is down ? Sep 26 15:46:58 is that a real channel ravilov ? Sep 26 15:47:12 csst0111 seems so (UK) Sep 26 15:47:30 MikeWallaceDev, it will be as soon as you join ;) Sep 26 15:47:57 Bah! You schnook! I added it to my auto-joins! :D Sep 26 15:48:05 csst0111, http://www.downforeveryoneorjustme.com/d.android.com Sep 26 15:48:14 no need to ask even ;) Sep 26 15:48:43 MikeWallaceDev, careful there or people might now think you're hiring :p Sep 26 15:48:44 btw, videos by Chet Haas and Romain Guy : http://graphics-geek.blogspot.ca/2014/09/devoxx-2013-presentations.html Sep 26 15:48:46 thx ravilov :) Sep 26 15:48:47 * StingRay_ just claimed #android-hiring :) Sep 26 15:48:59 hehe Sep 26 15:50:14 well now we know who's hiring Sep 26 15:50:28 oh gosh... he was on webchat Sep 26 15:50:29 no wonder Sep 26 15:53:25 Was? He's gone? Sep 26 15:53:29 No thank you? Sep 26 15:53:32 Bastard! Sep 26 15:53:42 :p Sep 26 15:54:08 Meh, I was through helping out anyway... Was just wasting our time. Sep 26 15:54:29 I think he was the teacher Sep 26 15:54:30 :) Sep 26 15:54:35 d.android.com is down. Sep 26 15:55:19 Can't be. I've had bad teachers. NOBODY is that bad. Sep 26 15:55:30 no, he said he was a student Sep 26 15:55:36 I think the gardener did it Sep 26 15:55:41 yeah it's down.. Sep 26 15:56:23 which serious dev doesn't have a backup offline copy of the docs anyway, right? Sep 26 15:56:27 your "down thingy" doesn't work ravilov , says the site is up for me. It's not Sep 26 15:56:39 I don't :D Sep 26 15:56:45 ravilov, you miss the point lol Sep 26 15:56:48 anyway Sep 26 15:57:06 yeah apparently it works just from downforeveryoneorjustme.com Sep 26 15:57:08 (the doc is in the sdk obviously) Sep 26 15:57:36 (it's not up for me either) Sep 26 16:11:22 <_3mpty> hmm developer.android.com is dead? Sep 26 16:12:43 AS can't even fetch the docs right now Sep 26 16:20:53 a google play crash report says android version "Android 4.4". I was going to create an AVD with that android version for debugging, but in the SDK manager I can only find images for 4.4.2 and 4.4W... Sep 26 16:21:28 There isn't an official way yet to do the cool material design tile stuff yet right? Sep 26 16:22:30 mattblang erm, color and drop shadow… no impossible to get at the moment Sep 26 16:22:36 lol Sep 26 16:23:12 StingRay_ sorry, meant an API that facilitates it. I know it is of course possible to get the look Sep 26 16:23:14 material design is not a feature …although there are some supported api functions, none that are required to get the look though Sep 26 16:23:22 StingRay_ I'm guessing there is stuff in the 5000 APIs or whatever? Sep 26 16:23:34 not anything special really Sep 26 16:23:39 StingRay_ ah, okay Sep 26 16:23:54 there is the style format, but visually it's just a "design" Sep 26 16:24:05 for programmers who cant design to follow Sep 26 16:24:11 so they dont produce crap looking apps Sep 26 16:24:15 :) Sep 26 16:24:28 StingRay_ that is nice Sep 26 16:24:36 things like the view/object activity transition stuff are features Sep 26 16:24:38 it is also a feature... There's the Z factor Sep 26 16:24:45 thats a shadow Sep 26 16:24:46 is there ever a time where facts won't be loaded? i'm querying hostvars and it's missing a bunch of stuff Sep 26 16:24:53 MikeWallaceDev I have that now Sep 26 16:25:07 StingRay_ you ever seen this? http://www.amazon.com/The-Non-Designers-Design-Book-Edition/dp/0321534042 Sep 26 16:25:36 mattblang cant say I have Sep 26 16:25:54 there's the fab button - that's a button!! :p Sep 26 16:26:19 StingRay_ coworker swears by it. keep meaning to check it out. talks about stuff that makes a big difference but that non-designers might not think about. simple example, padding. Sep 26 16:26:49 mattblang there are 1000's of things that a non-designer/art person will miss Sep 26 16:27:12 ok well maybe I could name 100's but sure there are 1000's Sep 26 16:27:44 As a dev, the one important lesson that I learned a long time ago is that I'm not a graphic designer. Sep 26 16:28:14 very good lesson… while being a vfx artist the lesson I learned was, I'm not a programmer :) Sep 26 16:28:25 :) Sep 26 16:28:51 dam python node dag systems in Nuke/Maya etc Sep 26 16:28:55 very annoying Sep 26 16:29:54 I can do little things, but for anything important I leave it to the pros Sep 26 16:54:01 TooManyErrorsException: Too many IDE fatal errors. Monitoring stopped. Sep 26 16:54:02 nice Sep 26 17:22:16 Hello Sep 26 17:22:36 Do any of you know if there are any good libraries for picking profile pictures? Sep 26 17:23:02 pictures ? as in just the pictures ? Sep 26 17:23:14 I modified my own crop image solution last time and it wasn't perfectly elegant. Sep 26 17:23:42 Yeah, unless there's a whole suite for making profiles, that'd be great too. ;) Sep 26 17:24:06 picking or croping? Sep 26 17:24:07 Basically, the intent that gets brought up when you click the image icon for picking a profile picture. Sep 26 17:24:24 Both. Sep 26 17:24:27 picking/slash loading I use UIL, others use Picasso Sep 26 17:25:25 Ah, by picking I mean local/take a picture. Sep 26 17:25:39 I've done something like it before. I was just curious if there was something I could use out of the box. Sep 26 17:25:47 for the purpose of uploading Sep 26 17:25:51 this is the user creating their profile Sep 26 17:27:18 use the build in intent for choosing a picture, that's what I would do. Sep 26 17:27:30 then edit whatever is chosen Sep 26 17:27:48 so just look for a cropping lib Sep 26 17:27:56 alright Sep 26 17:28:05 dont need to look for a lib Sep 26 17:28:13 both gallery and new photo thingy do it fine Sep 26 17:28:26 photos* app Sep 26 17:28:28 I did that last time and one of the galaxy S phones basically exported broken vertical images Sep 26 17:28:28 you're not garanteed that they will be there Sep 26 17:28:40 you are that the intent will be handled by default Sep 26 17:28:45 I have generated an apk file using Android Studio, but when I try to install it on my phone, it does not let me click on the "Install" button, why is that? Sep 26 17:28:46 by appX from manufY Sep 26 17:29:01 there is no default crop intent Sep 26 17:29:31 There isn't. Sep 26 17:29:40 I know :D Sep 26 17:29:41 And also the default camera and image picker can produce erroneous content. Sep 26 17:30:02 I was sure there was somewhere Sep 26 17:30:05 nope Sep 26 17:30:09 ACTION_CROP or something Sep 26 17:30:12 I used it Sep 26 17:30:39 it's not an official intent, I think that it's OI? Sep 26 17:30:56 but yeah, definitely not recommended Sep 26 17:31:19 no thats right you call it through the camera app so yeah, not great Sep 26 17:31:56 Exactly. Sep 26 17:32:05 Is there just no good general solution to this problem? Sep 26 17:32:15 Because it seems like it would be relevant to quite a few developers. Sep 26 17:32:24 we didn't say there isn't :D Sep 26 17:32:37 lmgtfy :) Sep 26 17:33:37 If you can find it, I'd be happy. I haven't been able to though. ;) Sep 26 17:34:00 My usual workflow is -> google -> search stackoverflow -> ask the magic 8 ball -> #android-dev Sep 26 17:34:06 erm Sep 26 17:34:09 search github* Sep 26 17:37:26 https://github.com/biokys/cropimage Sep 26 17:39:47 hmm Sep 26 17:40:34 It presents the same issues I have with my current one I think. This is one of those things where a semi-custom solution is necessary and I've got a slightly modified library very much like this one. Sep 26 17:41:15 Thank you though, StingRay_. Sep 26 17:41:34 semi-custom != something you find on google Sep 26 17:41:46 more like a DIY job Sep 26 17:42:26 Yup. Sep 26 17:42:28 I know. Sep 26 17:42:52 See, I was hoping for something fairly specific, since uploading a square, specifically sized image is usually part of a registration process. Sep 26 17:43:07 But I'll need general image uploading and cropping later. Sep 26 17:43:11 So DIY it is. ;) Sep 26 17:44:57 ok people, its almost weekend Sep 26 17:45:11 I hope that I get a good team in DOTA Sep 26 17:46:35 <_CalLightman_> Hi Sep 26 17:47:52 <_CalLightman_> I have a custom listItem with edittext in it... the problem I am facing is that when I ddrag and drop an item on the edittext, the contained intent is coped on the edittext. If i drop anywhere around it then it works fine Sep 26 17:48:09 <_CalLightman_> is anyone familiar with similar issue Sep 26 17:50:49 _CalLightman_ I dont even understand the sentence… but that could be me…bit tired Sep 26 17:51:14 _CalLightman_: what is "contained intent"? Sep 26 17:51:34 <_CalLightman_> the ClipData had an intent Sep 26 17:53:25 you'll have to rephrase your question, i am not sure how an edit text picks up an intent Sep 26 17:53:26 <_CalLightman_> StringRay_ : i will try to be more descriptive. I have an expandable list which uses custom layout for its groups and child items. They contain EditText fields Sep 26 17:54:01 <_CalLightman_> Now I have implemented drag and drop so that i can transfer child from one section to another Sep 26 17:54:51 <_CalLightman_> The data needed to complete operation is passed as an intent within ClipData and startDrag is called Sep 26 17:55:15 <_CalLightman_> the listeners of different views see if they can process the drop or not. Sep 26 17:55:31 <_CalLightman_> this works fine if i am not dropping on any edittext field Sep 26 17:56:02 <_CalLightman_> if i do so, then the content that I stored in the intent is copied to the edittext field as text Sep 26 17:56:53 <_CalLightman_> This is something I dont want, i want that i should be able to drop anywhere within the view boundries and not just area other than the editText Sep 26 17:59:48 <_CalLightman_> how to go about this? Sep 26 18:08:24 should be easy Sep 26 18:08:29 http://www.techrepublic.com/blog/software-engineer/try-androids-useful-drag-and-drop-api/ Sep 26 18:08:45 and i dont know about the clip intent, but i am assuming the clip intent starts the activity? Sep 26 18:08:54 so can't you just set the clip data as some field in your activity, Sep 26 18:08:58 so it available to all views, Sep 26 18:09:13 when yoiu do the drag, on drag stop grab it for the right view/edit text? Sep 26 18:09:27 sorry i guessi don't understand what you are trying to do Sep 26 18:18:22 where would I finde valid cipher transformation strings? Sep 26 18:18:30 <_CalLightman_> lasserix, no, the intent does not start any activity, it is used because it is the only way to transfer multiple values Sep 26 18:23:39 its not the only way... Sep 26 18:35:27 i am drawing on an HW accerlated canvas using the OVERLAY PorterDuff mode; however, when I try to save the canvas as a bitmap, the PorterDuff mode doesn't work -- it either is ignored or produces undefined behavior. Is there someway to save the view canvas to a bitmap without having to rerender it on a software canvas first, which ignores fails to implement the porterduff mode? In particular, I don't think the software canvas ca Sep 26 18:36:02 virgilivs: probably not send HW is working on the GPU Sep 26 18:36:23 so the frame buffer is not available directly to CPU hence has to be pushed over Sep 26 18:36:26 but maybe Sep 26 18:36:34 can you get the cache? Sep 26 18:37:33 did you see http://stackoverflow.com/questions/26053166/save-hardware-accelerated-android-canvas-as-bitmap > Sep 26 18:37:33 I've tried, but the docs say that the building the drawing cache for an accelerated view results in the view being rendered once in *software* Sep 26 18:38:03 or this ... http://stackoverflow.com/questions/9767010/get-views-bitmap-when-hardware-acceleration-is-on bad news :/ Sep 26 18:38:20 lasserix: I made the first of those SO posts last night in frustration :) Sep 26 18:38:29 hehehe Sep 26 18:38:30 haven't seen the second one thogh Sep 26 18:38:32 well Sep 26 18:38:35 look at the second says Sep 26 18:38:38 it is a known bug Sep 26 18:38:45 argh Sep 26 18:39:43 Android Wear doesn’t play nice with homophones. :-( Sep 26 18:39:49 my whole app is built around the assumption that this works. very frustrating. now I either have to settle for something must worse or figure out how to do the same thing on a glsurface Sep 26 18:40:02 I can’t start an app called “Hello Wear” because it turns into “start hello where” and isn’t recognized... Sep 26 18:40:43 could you use renderscript? Sep 26 18:40:57 Is there a way to have multiple voice labels, or even a voice label distinct from the label that shows up in the menu? Sep 26 18:41:56 lasserix: I suppose, but I haven't delved into that before. I will have to do more learning I suppose. Sep 26 18:48:00 virgil what if you hW the view, but put into a viewgroup that is SW, then get the SW canvas bitmap? Sep 26 18:48:50 lasserix: I'll give it a whirl Sep 26 18:54:25 let me know if it works ;p Sep 26 18:54:37 Is there a default debug key for a project or will every computer that compiles use a different key for signing a debug build? Sep 26 18:54:52 How would you make an application that can keep stats about your call records, how long are your calls, how data you used in a certain period, which apps you use most frequently Sep 26 18:56:19 Syzygy_: there is a default that is not unique per user but you can customize it if you want Sep 26 18:56:42 Bubo contactscontract has all the data for contacts Sep 26 18:56:48 packagemanager has all app information Sep 26 18:56:56 "data used in a certain time" is to vague to answer Sep 26 18:57:14 lasserix, so all people running my app from the same repository will have the same key? as long as no one changed it? Sep 26 18:57:41 a debug keystore is automatically generated by the sdk tools when building in debug mode Sep 26 18:57:47 it has same username/password Sep 26 18:57:58 you can modify this, if you wish Sep 26 18:58:21 http://stackoverflow.com/questions/9019833/how-can-i-specify-location-of-debug-keystore-for-android-ant-debug-builds/10747511 Sep 26 18:58:57 lasserix, the question is if it's normally shared over stuff like github. basically if it's part of the project files or part of the local SDK/IDE install Sep 26 18:59:01 lasserix, data as in wifi traffic/mobile data traffic Sep 26 18:59:26 Bubo that is harder, you probably can't sniff the wireless data Sep 26 18:59:29 *without root Sep 26 18:59:40 I just want to see how much the user used Sep 26 18:59:43 like 5GB today Sep 26 18:59:45 3GB yesterday Sep 26 18:59:47 Syzygy_: it's globally the same so it doesn't matter Sep 26 18:59:54 like "data usage" from the settings menu Sep 26 18:59:55 everyone's computer will generate the same debug keystore Sep 26 19:00:01 and it's not part of the project files Sep 26 19:00:16 its generated in user/.android/debug Sep 26 19:00:34 Bubo you could probably get megabyte count but that's it Sep 26 19:00:58 yeah thats what I needed Sep 26 19:01:02 how would I do it, any ideas? Sep 26 19:01:10 i dont know Sep 26 19:01:12 google Sep 26 19:01:14 ok, thanks. does it use something like the package name as a seed for creating they key or why is it the same? Sep 26 19:01:18 i told you how to do everything else Sep 26 19:01:27 i told you it uses the same user/password Sep 26 19:01:30 look at that link Sep 26 19:01:35 its like android/android-debug Sep 26 19:03:16 ok, thanks for the help Sep 26 19:03:44 hey guys, Sep 26 19:03:56 how do I install other apks without poping up the unknown source permission screen? Sep 26 19:04:03 amazon store apparently is able to do that. Sep 26 19:04:50 i m really stuck on this lol Sep 26 19:08:25 Does anyone have a new updated book on android? not from <2012 Sep 26 19:09:29 hello i have the nexus 7 2013, does anybody know anything about writing assembler for the Qualcomm SoC? know of any resources for learning what i would need to know :)? Sep 26 19:10:40 xdaimon, that's standard ARMv7 ASM Sep 26 19:10:57 so I'm afraid you'll have to dig in to ARM's v7 reference (which is rather horribly fragmented :P ) Sep 26 19:11:12 ok, i'll look for a intro to that. Sep 26 19:11:24 i'll check it out :) Sep 26 19:11:43 have you written any armv7 asm? Sep 26 19:12:30 awhile ago Sep 26 19:12:33 not really worth it anymore Sep 26 19:13:48 ok Sep 26 19:13:53 thanks for your help. Sep 26 19:14:12 Bubo. the Android docs at android. and "creating dynamic ui with Android fragments" is easily the best fragment primer. Sep 26 19:14:45 ty Sep 26 19:16:20 there is also a 4.4 book but don't bother. as soon as you step through a few older samples in the debugger and understand fragments you will easily move up to latest. use the proven resources. use stavkoverflow. Sep 26 19:16:48 stackoverflow Sep 26 19:17:40 rgr|android, I see Sep 26 19:17:49 i am already halfway through d.android.com Sep 26 19:19:36 rgr|android, I guess I should just go into a project and learn that way Sep 26 19:19:38 probably the best Sep 26 19:36:13 I added a dependency in Android Studio from maven repo, I have javadoc jar, i added jar to module dependency, but it is not showing up--is there something i have to add the build.gradle? Sep 26 19:46:59 lasserix: didn't work. making the parent viewgroup render in software just causes the child view to render in software Sep 26 19:47:05 ahh Sep 26 19:47:06 sorry Sep 26 19:47:21 so opengl is the way to go Sep 26 19:47:27 render into a framebuffer Sep 26 19:47:36 then grab the bytes and make a bitmap Sep 26 19:49:03 it seems silly that I have to do this but oh well. Sep 26 19:50:05 it should be noted more clearly in their docs that you can't actually use the canvas to make art that can be saved, even though it is HW accelerated Sep 26 19:50:50 http://developer.android.com/guide/topics/graphics/hardware-accel.html#unsupported Sep 26 19:52:01 ravilov: you here? Sep 26 19:52:09 were you asking me to make a library out of the async cache bitmap loader? Sep 26 19:57:16 lasserix: thanks for the help. looks like OpenGL it is Sep 26 20:08:00 Programmer humor : http://goo.gl/ftmUnB Sep 26 20:08:17 no, wrong link :D Sep 26 20:08:41 http://goo.gl/0pYg8y Sep 26 20:35:43 when using flavors, can I define a layout and drawable only in the free source tree? Or does it have to be defined in the main source tree and overridden in the free tree? Sep 26 20:40:16 I have a drawable that is only needed in the free version. Sep 26 20:42:04 WTF? I copied the drawable to the paid version to test, and it was found. So I deleted it from the paid version, and now it finds it in the free version! Sep 26 20:53:41 sqrrl: Yeah, you'll want to concatenate the tags and use a regex-based filter. Sep 26 20:55:08 freeone3000: no way it's better than a buch of constants >_< Sep 26 20:55:58 perhaps there's anoter, more versatile logging system? Sep 26 20:56:53 sqrrl: Not one that dumps to logcat, which is what you'll want to be reading. Sep 26 20:57:47 maybe i should write my own logging system. Sep 26 21:00:54 just what the world needs, yet another logging system :) Sep 26 21:01:02 might I suggest yals as the name ;) Sep 26 21:02:28 Yeah, that’s the problem I have. I picked up code where someone tried to implement a logging system using tape from many threads. Tape isn’t thread-safe, so now we’re looking at an SqlLite logging system instead. There’s got to be a better way. Sep 26 21:04:54 Has anyone use droid test before? Sep 26 21:10:23 I take no one use it. Sep 26 21:23:10 Huh. This is a first. Shift-F10, compile, install, says my app is running, but it's not. Sep 26 21:26:29 SharedPreferences doesn't get updated unless I rotate the screen of my device. Any ideas? Sep 26 21:27:32 The first thing that comes to mind is that you're wrong Sep 26 21:28:05 SharedPreferences are updated when you call apply/commit Sep 26 21:29:22 are you committing in onPause? Sep 26 21:29:36 The first thing that comes to mind is that you're wrong <----- new favorite answer, ever Sep 26 21:30:03 is it bad to use a spinner for a dropdown in a registration form? Sep 26 21:30:13 a spinner is a drop down... Sep 26 21:30:15 I call it (in my Settings activity in onActivityResult ) then I go back to my Preview activity and it doesn't get updates. If I rotate the screen of my device - it does Sep 26 21:30:30 pfn yeah, just always seen it for nav and never in a form, so was curious haha Sep 26 21:31:56 ..and my update method gets called in both cases.. Sep 26 21:33:24 Hello, there is a application for showcasing lots of open source ui elements and libraries, i cant remember the name of it. Anyone knows? Sep 26 21:36:31 hi, when calling mFragmentManager.beginTransaction().add(newFrag) I'd like to "hide" the fragment under newFrag and then restore it, when pressing "back", how can I achieve it? Sep 26 21:38:56 MyWay, you have to add to the backstack Sep 26 21:39:33 I'm adding to the backstack, but the result is that I can see the old fragment under the new (like if it is transparent) Sep 26 21:40:29 then it probably is Sep 26 21:41:20 no way to hide the one under it? Sep 26 21:46:55 oh, it seems that my problem is this: http://tech.shazam.com/android/how-to-reference-the-default-background-colour-of-an-android-theme/ Sep 26 22:06:50 Hi guys Sep 26 22:06:58 I'm trying to implement a magnetic effect in a listview Sep 26 22:07:15 lasserix, yeah I (semi-jokingly) suggested you make it into a lib, since you said you couldn't find one like it Sep 26 22:07:21 lasserix, and no, I'm not here ;) Sep 26 22:07:29 so I attached a listener and onScroll when the list is SCROLL_STATE_IDLE I execute list.smoothScrollToPosition(position) Sep 26 22:07:38 it works, but it's not smooth at all Sep 26 22:08:00 is there any better way or any way to make this smoother? Sep 26 22:12:51 Mattx: is it smooth if you fast scroll through it by hand? Sep 26 22:13:14 might be a performance problem in your adapter. (viewholder? ) Sep 26 22:14:04 actually it is smooth Sep 26 22:14:07 the problem is that it's fast Sep 26 22:14:20 smoothScrollToPosition is too fast for what I'm looking for Sep 26 22:14:31 it doesn't look like a magnetic effect Sep 26 22:14:56 I suppose it has something to do with the items being not so tall, so there's no much space to scroll and it finish quickly, I don't know... Sep 26 22:18:02 Hi, I have multiple edittexts. I want to copy all their texts and put it in a intent and start an activity. is it possible? how do I know which text belongs to which textEdit later? Sep 26 22:18:24 everything is possible :) Sep 26 22:18:42 put them in a bundle, pass them in with the Intent Sep 26 22:19:36 so first bundle, then an intent then put extras? Sep 26 22:20:03 you pass the bundle in the Intent Sep 26 22:20:56 its becouse i have multiple stuff to pass? Sep 26 22:20:58 right? Sep 26 22:21:37 yes Sep 26 22:21:44 thank you Sep 26 22:23:12 this isn't happenning... Sep 26 22:23:19 im not here woo wooo Sep 26 22:23:20 hehe Sep 26 22:23:27 oh well should i? i completed it Sep 26 22:23:37 its pretty simple, you can customize the background task Sep 26 22:23:42 and pause and resume the queue of tasks Sep 26 22:24:23 seems like kind of too standard to make a lib out of Sep 26 22:43:03 Anyone know of a way to delay sensor updates to something like half a second pre api 11? Sep 26 22:43:11 outside of a manual limit Sep 26 23:00:24 how do i do this? Sep 26 23:00:26 http://i.imgur.com/WT4Z5Zl.png Sep 26 23:01:31 http://i.imgur.com/WT4Z5Zl.png << what is this called? Sep 26 23:01:45 like a semi transparent overlay over a webview or activity Sep 26 23:04:31 is there a panel UI object? Sep 26 23:06:32 panel? Sep 26 23:09:49 yeah, i want to add a RelativeLayout to another RelativeLayout Sep 26 23:10:05 but whenever i do .AddView().. it just ends up completely black Sep 26 23:10:40 so i want to make multiple panels, populate them and control their visibility Sep 26 23:11:19 its been a big time sink Sep 26 23:11:21 :> Sep 26 23:11:54 _canvas = screenMain.canvas; works fine Sep 26 23:12:00 Hi Sep 26 23:12:09 but doing something like screenMain.canvas.AddView(muscreenProfile.canvas); wreaks havoc Sep 26 23:12:10 Has anyone done pay-per-click advertising? Sep 26 23:12:24 If so, what are your click to install ratios? Sep 26 23:12:50 I've been consistently getting 5.5 to 1. Today it's 4.75 to 1 Sep 26 23:12:55 I'm wondering if that's normal Sep 26 23:13:38 (I'm using appbrain for this) Sep 27 00:18:56 Hi Sep 27 00:19:00 I was here earlier Sep 27 00:19:22 I didnt quite understand the answer I got here. Sep 27 00:19:56 peyam, https://stackoverflow.com/questions/14876273/simple-example-for-intent-and-bundle Sep 27 00:19:57 I have 4 edittexs. I wana take the text inside them and pass them to an other activity Sep 27 00:19:58 have you seen this Sep 27 00:20:12 yes Sep 27 00:20:26 but the bundle is just used in Other activity Sep 27 00:20:56 what do you mean Sep 27 00:21:13 I mean Sep 27 00:21:56 can't you just use .putExtra("id1", "text1") and .putExtra("id2", "text2") Sep 27 00:21:56 now there are these edittext,.. right? I should put them in a bundle and put the bundle in a intent. and then pass it to the second activity and open the bundle Sep 27 00:21:59 right? Sep 27 00:22:09 Can I ? Sep 27 00:22:19 then Bundle extras = getIntent().getExtras(); --> text1 = extras.getString("id1") Sep 27 00:23:01 but I need to put the stuff in the bundle first right? Sep 27 00:23:05 I think you just create an intent and use .putExtra to put your text from the EditText Sep 27 00:23:07 no Sep 27 00:23:07 I need to have a bundle in both sides? Sep 27 00:23:08 is there a way to fire a method after a delay, other than using a timer? Sep 27 00:23:40 just in the other activity I think peyam Sep 27 00:23:52 you use a Bundle to get the passed values in the other activity Sep 27 00:24:01 you just need intent in the activity from where you need to send the text Sep 27 00:24:23 ahaaa.. thanks Sep 27 00:24:27 let's say you want to send from MainActivity to NotMainActivity Sep 27 00:24:58 you just make an Intent, putExtra a few times for your strins and in NotMainActivity you use a bundle to get the different texts by their id Sep 27 00:25:37 but I think you can also do Bundle bundle = new Bundle(); --> bundle .putString("PLAYER1NAME",player1name); --> undle .putString("PLAYER2NAME",player2name); --> intent1.putExtras(bundle); Sep 27 00:25:47 and then in NotMainActivity: Bundle b = getArguments(); Sep 27 00:25:48 String player1name = b.getString("PLAYER1NAME"); Sep 27 00:26:10 peyam, tell me which works Sep 27 00:26:28 I will .. thanks :) Sep 27 00:27:05 both should work I think Sep 27 00:28:22 folks, i'm at loss, sorry for asking in the wrong channel. but everyone everywhere else is mute/asleep/etc.. http://youtu.be/qwIgMOqL0gk <<< any idea what could be causing youtube to missbehave like that ? phone is galaxy S4 Sep 27 00:28:46 rhapsody`, it's just with youtube? Sep 27 00:28:51 yep Sep 27 00:28:57 see the vid bro Sep 27 00:29:04 yeah I saw it Sep 27 00:29:07 Bubo: so I can use putExtras multiple times to a intent? Sep 27 00:29:13 peyam, yeah I think so Sep 27 00:29:29 peyam, I'm a beginner :) But I think you can do it in those both ways, test it Sep 27 00:29:42 rhapsody`, I assume you tried reinstalling, clearing data/cache ? Sep 27 00:29:47 I did Sep 27 00:29:52 no help Sep 27 00:30:02 can you play videos from any video player? Sep 27 00:30:06 yep Sep 27 00:30:12 so it's not the video part Sep 27 00:30:17 all players will play anything with no issue Sep 27 00:30:22 weird Sep 27 00:30:26 do you have a custom rom? Sep 27 00:30:40 stock 4.4.2 Sep 27 00:31:47 could it be hardware ? Sep 27 00:32:20 rhapsody`, does clearing the app data and cache fix it for awhile ? Sep 27 00:32:35 it doesn't bubo Sep 27 00:32:39 i did many times over Sep 27 00:32:44 oh Sep 27 00:32:46 wait Sep 27 00:32:50 it happens randomly Sep 27 00:33:03 sometimes works sometimes it start going cray Sep 27 00:33:05 crazy Sep 27 00:33:25 clearing cache/data doest fix.. Sep 27 00:33:32 reboot fixes it for a while Sep 27 00:33:36 always Sep 27 00:33:41 do you have a firmware update maybe/ Sep 27 00:33:42 ? Sep 27 00:33:59 no Sep 27 00:34:03 i got latest stock Sep 27 00:34:46 rhapsody`, delete one youtube app? do you have two? Sep 27 00:34:53 yes 2 Sep 27 00:35:16 the third party had the same issue Sep 27 00:35:52 yeah I see Sep 27 00:37:08 could it be something with hardware ? Sep 27 00:37:11 rhapsody`, go into developer options Sep 27 00:37:25 find the Hardware acceleration option Sep 27 00:37:30 see if its checked or not? Sep 27 00:38:40 you mean force GPU rendering ? Sep 27 00:38:42 it's unchecked Sep 27 00:38:52 try checking it and see if it works? maybe? Sep 27 00:39:37 yeah, will try Sep 27 00:39:50 thanks Bubo Sep 27 00:42:00 rhapsody`, does it work? Sep 27 00:43:00 Bubo i can't tell if it helps because i did a reboot 30min earlier... and i'm not experiencing the issue right now Sep 27 00:43:17 ah Sep 27 00:43:19 well test it later Sep 27 00:43:23 a reboot clears the problem for a day or two Sep 27 00:43:29 it's probably a kernel issue Sep 27 00:43:41 because it worked before updating right? Sep 27 00:43:42 that's an intersting assumption Sep 27 00:43:44 when did it start doing that Sep 27 00:44:02 it started recently out of the blue Sep 27 00:44:11 it's probably lupus, not the kernel Sep 27 00:44:22 it's never lupus! Sep 27 00:44:34 then how is it the kernel? Sep 27 00:44:39 anyway found the problem on xda, it says the kernel Sep 27 00:44:46 interesting Sep 27 00:45:13 maybe it's hardware Sep 27 00:45:42 rhapsody`, try a custom rom and see if it gets fixed there Sep 27 00:45:56 but if it's hardware it should happen anytime not just in the youtube app and not anywhere else? Sep 27 00:46:08 doesn't happen anywhere else Sep 27 00:46:20 i stream hd vids using mxplayer with no issue Sep 27 00:48:14 maybe ill try a custom rom when i have time... ty Bubo, i appreciate it man Sep 27 00:48:27 rhapsody`, dont forget to disable gpu rendering if that doesnt work Sep 27 00:48:34 can't wait for android l to come also Sep 27 00:48:35 :) Sep 27 00:48:42 yeah sure Sep 27 00:48:48 also try toggling Disable Hardware Overlay Sep 27 00:48:59 rhapsody`, i wanna buy the nexus 6 when it comes out Sep 27 00:49:02 gonna be sweeeet Sep 27 00:49:20 yeah nexus is awesome Sep 27 00:49:24 i got the nexus 10 Sep 27 00:49:30 love it Sep 27 00:49:43 i have an Xperia Tablet Z Sep 27 00:49:50 amazing Sep 27 00:54:30 peyam, did it work? Sep 27 01:05:10 Bubo: sorry im very slow writting Sep 27 01:05:16 ill try in a minute Sep 27 01:12:21 Is Phonnumber a INT? Sep 27 01:12:47 I have a edittext with Number as inputtype Sep 27 01:13:05 Should I take it out from the intent with string number = intent.getNumber? Sep 27 01:14:16 you can do toString i think? Sep 27 01:14:41 I have done it Sep 27 01:14:46 im so stupid Sep 27 01:28:31 was wondering, whats the best example for qr code reader ? found some in google, maybe you guys have better experience on this Sep 27 01:29:13 http://thorbek.net/online/2013/10/11/an-integrated-qr-scanner-in-android-activity/ ? Sep 27 01:29:43 zebra crossing Sep 27 01:30:26 https://github.com/zxing/zxing/ Sep 27 01:38:33 One more question Sep 27 01:38:59 If I wana make a call from a number given in a EditText. do I need uses-permission or uses-features? Sep 27 02:02:43 Anybody here Sep 27 02:03:38 anybody knows whats wrong with my manifest? Sep 27 02:03:40 http://pastebin.com/RtTkMwDa Sep 27 02:06:45 peyam: what error is it giving? I'd probably have to look at it in an IDE to properly diagnose it I think Sep 27 02:07:16 barbs: Default activity not found Sep 27 02:09:13 odd. looks ok to me. maybe do a clean or something? Sep 27 02:09:52 I did Sep 27 02:09:55 same error Sep 27 02:10:09 im not sure about line 27 and 29 Sep 27 02:13:10 peyam, i don't think you need user-permission to call a number Sep 27 02:15:18 are you sure? Sep 27 02:16:40 this emulator is so damn slow Sep 27 02:18:33 why not just connect your device and test it on it Sep 27 02:28:00 yes you are right. It's late here. I donno where my usb cable is :P Sep 27 02:30:45 Hi all. I have a question, how would I convert a String to a Polyline? Sep 27 02:31:17 I can't cast it, and the doc's dont seem to mention any conversion methods: http://developer.android.com/reference/com/google/android/gms/maps/model/Polyline.html Sep 27 02:35:14 ThomQ, maybe you will need to parse it yourself? Sep 27 02:35:53 yeah, i'm already looking into that Sep 27 02:36:10 Thanks Google API's.. Sep 27 02:36:16 :D Sep 27 02:38:08 ThomQ: Yeah, looks like you will have to parse it yourself. Sep 27 02:38:18 What does your string input looks like? Sep 27 02:39:50 Fenny: Script input? Sep 27 02:40:15 You have a string to represent a polyline, correct? Sep 27 02:40:18 Yeah, basically I get directions from the Directions API, which gives me back a string which is the Polyline Sep 27 02:40:20 A series of points? Sep 27 02:40:24 ahh Sep 27 02:40:44 No, just the string. I'd wish google would give me points, but that would be too logically ofcourse :D Sep 27 02:41:04 Is it json? Sep 27 02:41:05 I parsed it just now, looks correct (haven't drawn it yet), but I get a big list with LatLng's Sep 27 02:41:50 Yeah json, and i'm parsing it with the GSON lib, which can also be the reason I can't parse it directly to a Polyline Sep 27 02:42:05 ahh, okay. Sep 27 02:42:45 You are plotting the legs into a polyline then? Sep 27 02:43:10 er, steps rather Sep 27 02:44:49 Interesting, if you add waypoints, there is a collection of legs that contains all the steps. Sep 27 02:44:49 Yeah, I'm now building the loop which should go through the List with LatLngs and add those to PolylineOptions, which I then use with the GoogleMap's .addPolyLine function :D Sep 27 02:45:11 I would kill for the ruby .flatten function in this use case. Sep 27 02:45:22 Arrgh, I've spent the last 3 weeks coding in C#, all my syntaxes are all messed up :D Sep 27 02:45:35 hehe Sep 27 02:45:48 bool instead of Boolean? Sep 27 02:46:19 among others :D Sep 27 02:46:20 .Length instead of getCount() Sep 27 02:46:24 :P Sep 27 02:46:35 Trying to build a For In loop just took me 3 minutes :D Sep 27 02:46:47 ThomQ from c# to this, is like going back to the stone age :) Sep 27 02:46:56 No kidding. Sep 27 02:47:22 Lol Sep 27 02:47:24 hehehe Sep 27 02:47:34 the Android SDK isn't helping either :P Sep 27 02:47:39 Going from ruby to anything and trying to do regex feels like staring at the screen and grunting. Sep 27 02:50:55 regex is always like that Sep 27 02:51:15 Watch me define a regex that extracts values in ruby syntax: /^!add (https?[:].+?) (.*)/i.match(string).captures do |url, tags| Sep 27 02:51:17 gradle plugin 0.13.2 Sep 27 02:55:25 That would be like 12 lines of code in c# Sep 27 02:57:01 Now do it in Java Sep 27 02:57:10 no Sep 27 02:57:12 lol Sep 27 02:57:37 hehehe Sep 27 02:58:16 well, I'm still waiting for when I arrive to that special kind of hell.. The moment I have to port projects to iOS :( Sep 27 02:59:37 Practice in the meantime porting them to BBOS Sep 27 02:59:44 "Pipeline to carry beer under Belgian city" :O **** ENDING LOGGING AT Sat Sep 27 02:59:59 2014