**** BEGIN LOGGING AT Sat May 17 02:59:59 2014 May 17 03:02:27 anyone making something interesting? May 17 03:08:10 im making a time machine May 17 03:18:38 making a small app that visualizes sound as interference patterns. May 17 03:19:28 I was thinking about making it live wallpaper but its a battery hog May 17 03:21:05 sounds cool May 17 03:22:29 hello all May 17 03:24:23 I wanted something simple so I could go thru the whole process of realizing an app for the first time, it going to be a free one. May 17 03:24:39 releasing* May 17 03:24:47 hi QubeZ :) May 17 03:36:03 hi Carbonflux May 17 03:36:45 anyone familiar with the distanceBetween method for Location? I pass in the results float array but do I need to declare the array size upfront? i.e. float[] results = new float[3]; // like this? May 17 03:36:57 or do I need to allow it to grow dynamically then check the size? May 17 03:39:44 just use a geodistance algorithm from the web May 17 03:40:06 why not use the built-in method provided? May 17 03:41:09 i misread the docs and found better explanation on another site May 17 03:41:27 distanceBetween() will result distnace, intial bearing and final bearing if you pass in a 3 element array May 17 03:41:42 so I"ll use that, although im going short distances so I only need distance and initial bearing May 17 03:43:03 Heh, I would like to hear the answer for that too May 17 03:43:49 I would use the built in method, at least at first because of portability May 17 03:44:03 distanceBetween() source code appears to use a standard formula so it would be dumb for me to implement the same May 17 03:44:48 here's what I've done so far... I have my distance between my old and new GPS location every 5-10 secs and bearing. I'm trying to figure out how to make my AR Drone follow the same path I"m traveling when the AR Drone has no knowledge of GPS. May 17 03:45:01 I didn't buy the GPS flight recorder on purpose to make this a nice challenging project May 17 03:45:33 what about the compass May 17 03:45:34 ? May 17 03:45:38 I'll need to use my distance and bearing to provide the details of pitch/yaw/roll to the AR Drone so that it travels the same May 17 03:45:54 yes it has a compass so I can use that to give it the heading/bearing May 17 03:46:17 so you want it to hover near you and move with you? May 17 03:46:25 not sure how to get the same distance though -- I guess I could take how much I've traveled in meters then make sure the AR Drone based on speed and time covers the same amount of ground May 17 03:46:44 thats going to be fuzzy May 17 03:46:58 in a physics problem it would be easy May 17 03:46:59 Carbonflux: *nod*. If I buy the GPS flight recorder which is around $100 I could just pass it the GPS coordinates and call it a day but this might be fun to try out May 17 03:47:21 agreed May 17 03:47:32 besides GPS might have issues anyway May 17 03:47:49 in theory you might be able to use other sources of information also May 17 03:47:53 I think its a fun problem May 17 03:47:59 ya definitely May 17 03:48:23 so far I have it spinning left when I move Westward and spinning right when I move Eastward May 17 03:48:25 once you get it working you could mount a defensive weapons system on the drone also and market it as a body guard ;) May 17 03:49:08 thats great May 17 03:49:22 once I get that piece working, I'll tap into the video feed and deliver that to my Google Glass May 17 03:49:31 I think its going to have to be more of a dynamic update and feedback system than pure math May 17 03:49:44 imagine flying it around 100 ft up in the air, following your line of path and you're getting that birds eye view in Glass May 17 03:49:47 haha, thats great May 17 03:50:00 you may have found an actual use for those things ;) May 17 03:50:09 lol May 17 03:51:00 to be serious, the applications for this are vast, I think its a very good idea. May 17 03:51:44 one issue is security tho, I have read about people hacking camera drones, one case resulting in a crash and injury when it his an athlete at a sporting event. May 17 03:52:02 hit* May 17 03:53:20 ya for long-term thats true...I could only hope to secure it with WPA2 and hope someone doesn't hack it in the 15 minutes the battery lifecycles May 17 03:54:06 I think thats good enough, it seems like most of the drone-smart interfaces are unsecured right now. May 17 03:54:56 In the case I am referring too, someone in the crowd hacked the camera drone using a regular smart photo and was never caught. May 17 03:55:29 phone* sorry, having a bad typing day May 17 03:55:50 ok i was like wtf is a smart photo May 17 03:56:53 heh, its my fault for multi-tasking, the eproms in my fingers swap words around. May 17 03:57:13 lol May 17 03:57:15 np May 17 03:58:04 is a 15min battery life fairly standard for consumer level drones? May 17 03:58:14 yes May 17 03:58:49 there are some mods I can do to the AR Drone to lower the weight from 330g to around 290g that will increase it to over 25 mins of flight May 17 03:59:05 but haven't invested that yet, I've only done simple mods to keep it safe when landing hard May 17 03:59:20 using titAnium May 17 03:59:38 truthfully i've had it for a month now and only flew it through the app a few times -- im obsessed with coding for it right now May 17 04:00:24 Its early days yet, but its obviously going to get better, this is a huge market. May 17 04:00:38 try progress a neural network to learn tricks, so that you can just press a button and it will do the trick May 17 04:00:54 like a flip or whatever May 17 04:01:21 That kind of coding is a lot of fun, imo, controlling physical devices. May 17 04:01:26 the huge market is sporting events.. drones following athletes filming their extreme events in the mountains for snowboards for example May 17 04:01:54 Carbonflux: ya, i'm getting sick of just writing software that runs on smartphones. I want to use things like phones + Glass to interact with physical devices in a new way. May 17 04:02:02 figured this was a good lead into robotics as a hobby May 17 04:03:04 I reckon drones are awesome for drug dealing May 17 04:03:07 I think for other things too, for example working in forests, fire fighting, search and rescue, law enforcement, the military applications are obvious of course. But I actually think this could be very useful in land management and wild-life applications also May 17 04:03:18 that too viovu :) May 17 04:03:42 heh, thats a really good idea actually May 17 04:03:51 a search and rescue drone would be useful May 17 04:03:55 that can perform first aid May 17 04:04:02 their use in crime in general in fact could be huge. May 17 04:04:08 yup May 17 04:04:19 customer sends GPS location, dealer sends drone with drugs, customer give drone money, drone gives drugs, drone delivers back the money to dealer May 17 04:04:44 lol May 17 04:05:00 drones have shitt battery life and will never improve May 17 04:05:06 wait May 17 04:05:07 lol, someone is going to do that May 17 04:05:18 the drone also needs weapons to shoot the customer if he dosnt pay the drone May 17 04:05:23 they would need to rest to recharge more than a human walking May 17 04:05:34 viovu: thats an interesting comment -- never improve? You think that people in the 80s thought that of processors? May 17 04:05:46 we are always finding ways to improve things May 17 04:05:56 even if the battery life itself isn't improved, what about wireless charging? May 17 04:05:58 battery cells don't have the same law as transistors May 17 04:06:15 batteries are constantly improving May 17 04:06:20 I think wireless May 17 04:06:41 vehicles and aircraft performance are always improving too May 17 04:06:41 at some point room-temp superconducting is going to change all of this May 17 04:06:50 I think the watch battery is still the same size as the 80's and still now it hold the same charge May 17 04:08:07 unless wd get some special resource unknown to man from mars or the moon. don't think batteries will improve much May 17 04:08:17 sounds like we are going to have to resort to Tesla style wireless power May 17 04:08:49 I think the only WYoming to improve is to move away from electricity May 17 04:09:12 use ether or black matter or something May 17 04:09:13 you mean to use magic? May 17 04:09:22 the problem is if you make the drone too lite you will need to use more power to stabilize it in the wind etc May 17 04:09:25 black matter? May 17 04:09:44 so there is an issue of diminishing returns May 17 04:09:57 theoretic mass May 17 04:10:07 you mean antimatter? May 17 04:10:22 I always had this dream of a submarine drone May 17 04:10:41 Heh, ya thats just what we need, anti-matter powered drones flying around ;) May 17 04:11:13 thAt works on solar batteries, a GPS, and smugglers drugs across the ocean, but my engineering friend said it would be viable May 17 04:11:35 wouldn't May 17 04:12:26 you can deal drugs locally (on 25 min battery life) May 17 04:12:48 no one would smuggle drugs accross the ocean in a drone May 17 04:12:54 it doesnt make sense logistically May 17 04:13:57 if you are going to transport accross the ocean you are going to want at least a truck full.... much more than a drone can carry May 17 04:14:55 pfft, I don't deal drugs or anything, but I've been thinking for months now, what would be the best way to deal drugs without getting caught, but then I reAlised its the physical transaction that is the fault, if aerial could remove the physical then it would be impossible to get caught May 17 04:15:24 you are more likley to get caught with a drone anyway May 17 04:15:49 ya, following the drone back to you -- thats how you get caught dude May 17 04:16:08 just makes me sick that everything is so monitored, our SIM cards, our iP addresses, our GPS locations May 17 04:16:23 police will see a drone, think it is some russian spy, every spy agency will be all over it May 17 04:16:37 number plates May 17 04:16:54 or you find a way to get a ton of mini-drones that are cheap -- send a swarm, only one of them carries the cash and they split up and only the one with the money comes back to the real location while others self-destruct like mission impossible May 17 04:17:07 best way is to train lots of birds May 17 04:17:26 u basically cannot do anything secret May 17 04:17:28 viovu: what are your thoughts on the Google Glass privacy issue? May 17 04:17:28 birds fly around all the time..... and have been proven to be useful messenger for thousands of years May 17 04:17:46 they are fast, relaiable, and no one notices them May 17 04:17:48 now u talking tubes haha May 17 04:17:55 I wear mine out a lot, not really a picture taking type of person, I use it purely for coding and testing my code but I have yet to have someone confront me in a hostile manner. May 17 04:18:12 but those homing birds only have one dropoff point May 17 04:18:20 and home point May 17 04:18:40 thats all you need May 17 04:18:54 this is so off topic lol May 17 04:19:04 lol good point May 17 04:19:13 im glad my android location dilemma -> drone -> drug dealing May 17 04:19:21 its a very funny conversation tho May 17 04:19:25 lol May 17 04:19:25 hmmmm, maybe, unless the feds learn ur dropoff point and follow the bird back with a drone May 17 04:19:27 im enjoying it May 17 04:19:52 what you need is a drone that flies like a bird -- I saw it on a Ted Talk May 17 04:20:03 then you control it fully while it blends in with other birds May 17 04:20:06 I saw that on Ted May 17 04:20:16 big robot bird May 17 04:20:51 I had all the Ted talks on my terabyte, but took like 128 gig so I deleted it May 17 04:21:02 maybe other birds wont like to hang out with it because it doesnt smell like a bird but at least it 1) wont compete for mates and 2) wont compete for food -- thus I think other birds might like it and welcome it into their collective. May 17 04:21:03 they just tAlk crOp on there anyhow May 17 04:21:15 you leave it in their collective for awhile training it in the ways of the birds May 17 04:21:19 then you start selling drugs May 17 04:21:47 neural network adaption mechanism May 17 04:22:26 hey, please don't use the term drugs, I only take mushrooms :) May 17 04:22:51 I dont do drugs anymore but I couldn't imagine selling them May 17 04:23:32 I can imagine that drug dealers are very sophisticated these days and have figured out a way to get some developers involved if they were going to use robots to handle transactions May 17 04:23:42 but then again if it's not competing for anything, at wich point does it become a scarecrow? May 17 04:25:10 I actually know a few drug dealers and they basically told me they have never been caught and they basically get calls all day and deliver. maybe the police don't really care that much, they just pretend to May 17 04:25:43 well, we legalized pot here, that should help a bit May 17 04:25:44 anyhow enough on that topic May 17 04:25:48 :) May 17 04:26:04 viovu: law enforcement is focusing their resources on catching the distributors May 17 04:26:13 what 're you guys developing these days? May 17 04:26:30 its like bootleg movies, doesn't make sense to go after each and every tom dick and harry May 17 04:26:49 QubeZ, I really do hope you market this app you are working on a some point, I think you could make money on it, or just sell the technology. May 17 04:27:21 qubeZ, WHAT APP are you working on? May 17 04:27:29 heh May 17 04:27:32 sorry phone keyboard May 17 04:27:41 well I doube this little project will amount to much -- I'm sure people much smart than me have already begun long ago and progressed much further. May 17 04:27:54 viovu: here's what I'm doing... May 17 04:28:26 ah, but you have not done it, don't get fooled by that narrative :) May 17 04:29:03 AR Drone has WiFi and acts as an AP (this is default behavior). My Google Glass connects to it and so does my phone. Phone gets GPS coordinates (my location) and as I move, takes 5 - 10 sec samples I calculate distance and bearing to send to the AR Drone (it has no GPS capability right now). May 17 04:29:26 then video from the AR Drone flying 100ft up feeds to my glass so I get aerial view to my Glass May 17 04:29:57 why? May 17 04:30:04 for fun? May 17 04:31:02 how about you do all that, except he flys behind you, and carries your coffee? May 17 04:31:21 now you're mocking me May 17 04:31:30 well its just a fun little project to play and learn :) May 17 04:31:39 nah I'd do that May 17 04:33:15 ha I got an idea. an escape drone, so if your in the street with drugs....cops comMing from all direction, you just give the drugs to the drone and he escapes with it, May 17 04:33:32 escape goat May 17 04:33:49 or a drone that herds sheep May 17 04:36:02 does the drone have proximity sensors? May 17 04:36:12 Foolishly didnt May 17 04:36:14 woops May 17 04:36:44 Foolishly didn't have offsite backups for my app and now im reconstructing it from a decompiled apk :( May 17 04:36:51 viovu: it has ultrasonic sensors and pressure sensors for altitude detection, magenetometer May 17 04:37:07 desmin88: that sucks, no version control? May 17 04:37:22 not offsite version control May 17 04:37:42 sounds like an expensive drone May 17 04:37:54 $300, not too bad May 17 04:38:02 good entry level for me to play with May 17 04:38:08 Parrot AR Drone 2.0 May 17 04:38:22 those 4 fanned drones? May 17 04:38:30 yes, quadcopter May 17 04:39:26 u say 20 min battery power? May 17 04:39:48 about 15min out of the box but you can mod it to lower weight to get it to around 25 min May 17 04:39:58 but its not a big deal because I have 3 batteries May 17 04:41:12 and it has GPS? May 17 04:41:31 there is a $100 USB add-on that gies it GPS flight recorder features but I didn't buy it May 17 04:41:44 I could easily get that then solve my dilemma but I want to try and tackle this problem and learn May 17 04:42:11 good luck May 17 04:43:18 thank you May 17 04:43:57 have looked at other people's coding project for the same drone? May 17 04:44:13 like on github or SourceForge May 17 04:44:21 yup lots over the last month May 17 04:44:51 and what was rhetoric coolest thing you saw? May 17 04:45:01 most people do 'follow me' using OpenCV and some image detection on their shirt or something like that but I want follow me from greater distance without camera line of sight May 17 04:46:11 there was a project from I believe Univ of Munich which I think published the drone-autonomy module for Node.js -- it does some autonomous stuff like self correcting after the drone is pushed to some extreme circumstances May 17 04:46:54 seems very hobbiful to me May 17 04:47:01 another cool project I saw was panaroma where the drone would fly to a height of around 200ft, spin slowly 360 degrees taking pictures and then land again May 17 04:47:18 I would also do everything with opencv May 17 04:47:19 so you could sitch the pics together May 17 04:47:36 I like the panorama idea May 17 04:49:05 Android + Drone .. feels natural to me May 17 04:49:15 very cool potential May 17 04:49:40 still think it's very camera based May 17 04:49:52 what is very camera based? May 17 04:50:56 it would be cool if you could get exactly how much it moved in degrees May 17 04:51:18 as in a house May 17 04:51:42 teach it to learn rooms and navigate and get out of people's way May 17 04:52:19 ya that would be neat... i may go indoors after I've had fun outdoors :) May 17 04:52:48 there was some project about taking multiple drones that learn from each other and search an empty building in an optimal way (no room is searched twice) May 17 04:55:14 how about a drone that detects people on the street and begs them for money May 17 05:01:51 I took a break from android dev for while May 17 05:02:18 And im wondering if its been made so you can have subfolders in /res May 17 05:02:28 android dev is over crowded May 17 05:03:21 they should format Google play May 17 05:27:26 hello May 17 05:28:59 is there any standard way to upload image to server? I found numerous ways on the internet, tried a few..all work pretty well.. May 17 05:29:47 standard as in...recommended by android devs? May 17 05:43:57 probably with volley May 17 05:44:33 base64 is not good for large files and unreliable connections, right? May 17 05:45:36 uhh May 17 05:45:45 hmm, so i have compile 'com.android.support:appcompat-v7:+' in my build.gradle, but appcompat isn't appearing under External Libraries in Android Studio May 17 05:45:49 anyone else run into this problem? May 17 05:46:40 emotionull: i mean base64 is just a representation of data so May 17 05:47:56 desmin88: ya...but it increases the size by 37%...and I guess it is not suited for unreliable connection..compared to multipart May 17 05:48:13 *almost 37% May 17 05:49:09 Mango_Man: Yup...just checked..same case as urs...but app is working perfectly May 17 05:49:15 use a compressed format then May 17 05:50:07 could be that i'm missing a download in the sdk manager May 17 05:50:24 are there any build errors? May 17 05:51:12 yep: No resource found that matches the given name '@android:style/Theme.AppCompat'. May 17 05:51:52 appcompat isnt @android May 17 05:51:58 so of course you get a build error May 17 05:52:09 really? darn May 17 05:52:45 common problem May 17 05:53:09 thanks a bunch desmin88 May 17 05:53:14 np May 17 05:53:22 also, sleep deprivation is bad May 17 05:54:23 any irc room for android noobs ?? May 17 05:54:26 :P May 17 05:54:42 sadly this is the only one May 17 05:54:46 :9 May 17 05:54:48 :( May 17 05:55:41 I feel so tiny in front of members like JakeWharton in this room...I hv to think 100 times b4 asking / answering anything May 17 05:56:23 we all start somewhere May 17 05:56:35 maybe you need to null your emotions May 17 05:56:44 :D May 17 05:56:48 yeah May 17 05:57:02 :D May 17 05:58:03 trust me, there's a lot more noobs than experts in here May 17 05:58:35 oh how true that is May 17 06:36:08 ahh just figured out how to have sub folders in res/xxx/ May 17 06:40:12 Hey Guys, I’m planning build a betting app for mobile games which have Leaderboard integration. My question is that, can I use leaderboard API for sharing scores with other people? What I’m trying to achieve is, trying to find out if Google Leaderboard can be used as a trusted source for doing a bet between two gamers. May 17 06:44:07 look who it is May 17 07:11:58 Hey guys, if Ive uploaded an app onto Google Play and wish to replace first upload with a new one without keeping first one as version 1, how can I? May 17 07:12:04 why are motorolas such a pain <.< May 17 07:12:20 Trekka12: simple answer: you cant May 17 07:12:48 the version id if for andriod to determine if the new apk is a newer one or not. May 17 07:13:07 but you can still name version 2 "version 1" May 17 07:13:26 but to upload a new apk, the versioncode must always be higher then the old May 17 07:15:01 can someone suggest good html parser May 17 07:15:22 Soo, you mean that the old one cannot get ridden off from google play store? May 17 07:15:36 or does the new one replace the old one completely if I keep the version 1 name? May 17 07:16:08 the version name is saying nothing May 17 07:16:18 only thing that matters is version code, and this must increment May 17 07:16:36 but if version name is still 1.0, but version code is 2 instead of 1, will the version code 1 version still be available for people to access via google play? May 17 07:16:40 cuz I dont want that May 17 07:16:52 you can name your apk with versioncode 1 "version 999" and upload a versioncode 2 with name "version 1" and it still works May 17 07:17:20 as soon as you upload a new version, the old wont be shipped anymore May 17 07:17:25 meaning? May 17 07:17:26 and users get an update notification May 17 07:17:28 wont be accessible? May 17 07:17:42 yeah. if you download from google play, you cant choose May 17 07:17:46 you always get the newest May 17 07:17:47 ah nice May 17 07:17:51 neat feature May 17 07:17:53 likey likey May 17 07:17:56 thanks man May 17 07:17:57 ill try it May 17 07:18:00 yw May 17 07:18:24 although it usually takes about 1 h for google to commit the changes after your upload May 17 07:18:51 no probs May 17 07:18:57 I doubt any1 is downloading my app right now May 17 07:19:28 commited changes of content mostly - since I kinda screwed up and marketed my own firm a lot on the companys app which I developed... which I realize now was totally wrong and unprofessional :/ May 17 07:19:35 So had to correct, and get rid off old one May 17 07:19:39 rookie mistakes you know ;P May 17 07:21:49 i think theres nobody in this channel that didnt messed up a google play store upload once :p May 17 07:22:29 hehe xD May 17 07:22:34 comforting to hear my friend May 17 07:22:35 ^^ May 17 07:22:44 knowing im not the only one May 17 07:22:47 ;p May 17 07:22:55 seems to have worked tho, thx for help :) May 17 07:23:12 I once refractored parts on an app and uploaded it to google (50k users).. May 17 07:23:34 ? May 17 07:23:37 how u mean? May 17 07:23:42 what did the refactoring do then? May 17 07:23:55 5 hours later I realized I included a bug letting all devices under api 15 crash May 17 07:24:03 ahh May 17 07:24:04 ;/ May 17 07:24:04 at startup May 17 07:24:06 damn May 17 07:24:56 the lesson u take from something like that tho... knowing the bug for next time u develop, it might be useful to have such knowledge for future app devs May 17 07:25:04 but still, lame that it happens at all May 17 07:25:15 good advice in such a case: dont look at reviews the next few days after such a mistake :D May 17 07:25:21 xD May 17 07:26:57 how come my linebreaks only go to next row when doing 2 linebreaks in row on google play store description text content editor? May 17 07:27:14 I want airier between the paragraphs, dont seem to be getting any tho May 17 07:32:33 you mean the description in store listing? May 17 07:33:05 mhm May 17 07:33:20 if i write a 2 paragraph text the air between paragraph 1 and 2 is slim May 17 07:33:26 even tho i used two linebreaks in a row May 17 07:33:36 Napalm, bad news, the guys at #mysql say it's impossible to do that with triggera May 17 07:33:38 triggers* May 17 07:34:08 autrilla: cant you do it in yout java code? May 17 07:34:17 danijoo, yes May 17 07:36:25 Trekka12: works fine for me with normal formatting.. May 17 07:46:55 what the heck. Running Google play services on a 2.3 device witchout google play services installed throws a "Could not find method android.app.Activity.getFragmentManager" when trying to check if play services is installed May 17 07:47:11 well played google May 17 07:51:07 Is there an infinite loop that I can't see here? May 17 07:51:19 http://pastebin.com/2eQxCQWw May 17 07:52:23 yes May 17 07:52:42 you say "as long as cursor is NOT after last, do the stuff" May 17 07:53:01 what you want is while(!cursor.isLast()) May 17 07:53:13 not isAfterLast() May 17 07:54:50 danijoo, hmm.. there's still an infinite loop somewhere in my app May 17 07:55:53 danijoo, because that doesn't fix the infinite loop May 17 07:56:09 isAfterLast works fine May 17 07:57:11 Trekka12: You probably have to remove the app first. May 17 07:57:20 try to determine where the loop is May 17 07:59:04 danijoo, it's in the while loop, whether I use isAfterLast or isLast May 17 08:00:02 try this approach: while(cursor.moveToNext()) { // do your stuff } May 17 08:00:50 moveToNext will return false when the end of the cursor is reached May 17 08:01:21 Hey Guys, I’m planning build a betting app for mobile games which have Leaderboard integration. My question is that, can I use leaderboard API for sharing scores with other people? What I’m trying to achieve is, trying to find out if Google Leaderboard can be used as a trusted source for doing a bet between two gamers. May 17 08:01:50 danijoo, same deal May 17 08:01:57 It might be an error with the query May 17 08:02:28 you are sure the error isnt after the cursor? May 17 08:02:34 in the for loop? May 17 08:03:17 well shouldnt. so maybe its your query then May 17 08:03:21 I am sure it is before the for loop May 17 08:04:10 It is in the while loop May 17 08:17:28 Hi, How do I check if a textView is visible in a fragment (not View.VISIBLE flag but I can see it on screen). I have checked many questions on SO like this http://stackoverflow.com/q/4628800/3488870 but doesnt help. May 17 08:17:35 For eg: In the detail Fragment, I want to check whether the textview containing the article is shown or not. Like here it is shown http://puu.sh/8Pwsk.png, http://puu.sh/8PwyX.png , while here it isnt http://puu.sh/8PwtC.png .. May 17 08:17:43 The fragment contains FrameLayout with ScrollView in the back and "Scroll To Read" textview in front. http://pastebin.com/vECSDbL6 May 17 08:18:56 I would like to display "Scroll To Read" only if the article is not visible on screen. May 17 08:24:16 I seriously don't understand why the cursor doesn't move to the next item May 17 08:25:33 have you changed the code? May 17 08:26:10 Not a lot May 17 08:26:30 hey there! May 17 08:26:33 I'm logging this now: May 17 08:26:34 Log.d(getClass().getName(), shoppingList.getName() + " " + shoppingList.getPosition() + " " + cursor.moveToNext()); May 17 08:26:34 I use while(cursor.moveToNext()) and it works. May 17 08:28:16 is there anybody who could help me showing a Map in an application? I got the "failed to find style 'mapViewStyle' in current theme" error and my app crashes everytime i want to the maps screen May 17 08:33:04 http://pastebin.com/qAigKQtM still infinite loop May 17 08:36:11 * autrilla facepalms May 17 08:36:18 and you are sure it isnt in one of your other methods ike upadte() ? May 17 08:36:31 * autrilla was calling cursor.moveToFirst() on cursorToShoppingList May 17 08:36:45 ... ^^ May 17 08:37:34 danijoo: autrilla If you have time can you please solve my problem, please? May 17 08:38:03 i cant May 17 08:38:20 I don't know the answer, if I knew, I would have answered May 17 08:38:25 same May 17 08:38:28 hmm Ok. Thanks. :( May 17 09:16:47 hello everybody May 17 09:17:08 I have this test program for Android : http://pastebin.geany.org/PxMGS/, http://pastebin.geany.org/CzCuC/, http://pastebin.geany.org/Megi1/ , http://pastebin.geany.org/2sSj7/ . When I write the address web and click on the button in the main layout, the program is finished and it doesn't go to another layout to show the website. May 17 09:17:58 this is android kikat in eclipse kepler May 17 09:18:37 eclipse 4.3.1 May 17 09:20:15 you mean nothing happens on button click or the app closes? May 17 09:20:40 the app closes May 17 09:20:48 with or without an error/stacktrace? May 17 09:21:59 but the error is only that the app had to close but It doesn't show me why May 17 09:22:51 nothing in logcat> May 17 09:22:53 ? May 17 09:24:03 just a moment please that I see it because I'm noob in android May 17 09:24:11 ok May 17 09:28:01 dominuskernel: I think I found your problem May 17 09:28:15 this is the message in logcat http://pastebin.geany.org/ONrUj/ May 17 09:29:01 but I don't understand very well it May 17 09:29:14 Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.proyecto010/com.example.proyecto010.OpenWeb}; have you declared this activity in your AndroidManifest.xml? May 17 09:29:26 have you declared openWeb in your manifest file? May 17 09:29:50 I see that now May 17 09:29:53 :) May 17 09:30:00 you must add every new activity to it May 17 09:30:26 like this: May 17 09:31:16 lol I'm idiot :) May 17 09:31:27 i forgot that May 17 09:31:31 sorry May 17 09:31:34 also. for your OpenWeb activity, you have setContentView(R.layout.opeweb); while the file is named OpenWeb (if the title is the filename) May 17 09:31:48 looks like a typo ;) May 17 09:32:01 danijoo now it run May 17 09:32:06 :) May 17 09:32:08 thank you very much May 17 09:32:12 you are welcome May 17 09:32:37 sometime my brain is idiot :) May 17 09:35:26 danijoo now I have learn in see it when I have an error of this type May 17 09:41:01 ok ive created an sqlite database in an app on a device, whats the easiest way to get the database off so I can bundle it as a default database May 17 10:01:12 mathis98: you have to include the database into your app as an asset and on first start you must copy it to the data folde May 17 10:01:13 r May 17 10:09:42 Is there a callback mechanism for Picasso? Like `do something` after image has fully loaded? May 17 10:09:51 second argument to .inteo May 17 10:09:53 .into May 17 10:11:12 Thanks JakeWharton May 17 10:12:33 anybody got any experience in coding a maps application in android? May 17 10:22:16 define maps application Zaknefain May 17 10:22:28 using Google Maps API within an application? May 17 10:22:33 yes May 17 10:22:43 yes just finished app using that yday May 17 10:22:46 what u wonder? May 17 10:23:23 I got the "failed to find style 'mapViewStyle' in current theme" error and my app crashes everytime i want to the maps screen May 17 10:23:47 okay May 17 10:24:06 failed to find mapViewStyle usually means spelling error or un-existent style May 17 10:24:07 but i just discovered that I have to have a api key May 17 10:24:11 yes May 17 10:24:16 debug key if u test the app May 17 10:24:20 release key if u publish the app May 17 10:24:44 debug key can be found in eclipse in Window > Preferences > Android > Build > Debug or something like that May 17 10:24:55 hmm I am on a mac and a bit of an beginner to this whole android codin stuff May 17 10:25:01 ok May 17 10:25:04 where do I get such keys May 17 10:25:07 I am windows, no idea about Macs May 17 10:25:13 u code in eclipse? May 17 10:25:19 debug key is fairly simple to find there¨ May 17 10:25:30 release key is only required once you decide to publish ur application May 17 10:25:43 key must also be assigned to your application projects Android Manifest.xml file May 17 10:26:12 jep i'm using eclipse May 17 10:26:18 ok May 17 10:26:19 go Window May 17 10:26:21 Preferences May 17 10:26:26 then Android, Build May 17 10:26:31 and u should find a SHA1 key May 17 10:26:35 under debug May 17 10:27:02 then you go to google console on the web, make a new project for your maps api, and enter that SHA1 key May 17 10:27:08 a api key will be generated May 17 10:27:11 an api key** May 17 10:27:23 then a simple matter of copy-paste it into the manifest.xml file May 17 10:28:04 I got the SHA1 fingerprint May 17 10:28:14 yes May 17 10:28:18 go to google console on web May 17 10:28:43 JakeWharton: you have also suggested using Target (wiith strong reference) at many places. Is it a better method than simply using .into(view, new Callback() {...})? May 17 10:28:44 jep May 17 10:28:50 no May 17 10:28:55 worse May 17 10:29:02 well it depends on what you're doing May 17 10:29:16 when people try to use Target they're usually wrong May 17 10:29:33 Zaknefain, then u go create a new project in upper left corner of the google console interface, if not alrdy done this May 17 10:30:02 then name project, and scroll down until u find the maps api v2 May 17 10:30:08 enable it (on) May 17 10:30:09 JakeWharton: Um, I was just looking at the issues page on Github. I am just adding image from a url string to ImageView. I would just like to measure the height of the imageview after the image is loaded. May 17 10:30:19 then goto api access May 17 10:30:28 press create new android key May 17 10:30:30 WantToCode: yep. use the two-argument .into method with the callbac May 17 10:30:31 Trekka12: And then which is the right API there are so many May 17 10:30:32 k May 17 10:30:37 paste ur fingerprint (SHA1) May 17 10:30:46 JakeWharton: ok THanks May 17 10:31:11 dont forget to attach a semi-colon with ur app projects package name after the SHA1 key May 17 10:31:14 Very Important! May 17 10:31:27 then an API key will be generated for u to copy May 17 10:31:31 ok Zaknefain? May 17 10:31:57 Trekka12: I search for the Auth Ribbon May 17 10:33:15 ? May 17 10:33:20 I dont know what that is May 17 10:48:56 http://imgur.com/qD5jKZ2 May 17 10:49:09 anybody got an idea what i should do? May 17 10:50:35 Maybe compile it and see if it works fine May 17 10:51:34 Unfotunatelly it does not May 17 10:51:40 Would you use https://github.com/alter-ego/drag-sort-listview for a reorderable listview or something else? May 17 11:28:07 JakeWharton: How can I check for the imageview's height in the call back after the image is loaded? getHeight, getTop, getBottom on the imageView, all are retruning 0. May 17 11:37:43 I just want to display a small text when the image is too large than the screen. May 17 11:45:32 wow the glorious JakeWharton himself! May 17 11:47:13 Tony Stark of Android Community :P May 17 11:48:09 Hi, I have a string to a file of the form file:///storage/sdcard/1400326658493.jpg obtained dynamically and I am trying to add this to an image view, but I don't know how I can convert it to a uri so that I can put it in to an imageview using getBitmap May 17 11:48:18 Can someone guide me how to achieve this May 17 11:50:38 uri.getPath May 17 11:50:56 Just do that on tmy string? May 17 11:50:59 my* May 17 11:51:31 there's no getPath method May 17 11:52:25 how r u getting that file path? May 17 11:53:37 tried this? File file = new File(path); May 17 11:53:52 Bitmap bmp = BitmapFactory.decodeFile(file.getAbsolutePath()); May 17 11:54:08 myImage.setImageBitmap(bmp); May 17 11:54:49 I think u ll hv 2 romove that file:// from the path first May 17 12:16:40 Would you use https://github.com/alter-ego/drag-sort-listview for a reorderable listview or something else? May 17 12:22:31 I'm just getting in to Android Development, and I have a question: Once I am ready to release my devices on more than one device, is there a way to target multiple phone / tablet screens and ratios in one app? May 17 12:23:05 Yes May 17 12:23:22 Read the supporting multiple screens article on d.android.com May 17 12:23:26 usually, it just scales the GUI May 17 12:23:56 you don't have to define all ratios May 17 12:25:16 Right now, I don't need to worry too much about multiple screen sizes, because I'm just targeting the Amazon Kindle Fire Series, because: 1.) It's free to apply for the Amazon App Store, no $25 Fee. 2.) I have an Amazon Kindle Fire HDX 8.9", so I have a hard device to test my game on. 3.) Because cats. May 17 12:25:36 autrilla: why not May 17 12:29:24 I think the $25 Application Fee for the Google Play Store is a little bit stupid. I mean yeah, iOS charging $99 a year and Steam charging a one off Fee of $100 is fine, because they are closed source programs / environments. May 17 12:29:43 Whereas Android has always been Open Source. May 17 12:30:34 it's to stop spam May 17 12:31:14 Yeah, I understand that, but it's also a little stupid. May 17 12:31:34 Why can't an App go through a Review Process instead of that Fee. May 17 12:31:37 well, there's no reviewing before the app goes into the app store May 17 12:31:52 It saves employees! May 17 12:32:20 Also, there's some apps which only run in combination with another app, and require root, a Nexus 5, etc May 17 12:32:44 There's no way Google has every phone ever made May 17 12:34:47 Google services are closed source programs / environments May 17 12:42:38 gah May 17 12:42:53 anyone have an idea of how to create those small overflow menus on cards? May 17 12:43:29 Just overlay and imageview on the layout May 17 12:43:30 Mavrik, pic? May 17 12:43:40 Ah, I know what you mean May 17 12:43:46 I made a cutom View for that May 17 12:43:51 SimonVT, mmmm, figured May 17 12:43:56 *grumbl* May 17 12:44:11 I "copied" other overflow menus May 17 12:45:29 Mavrik: It's just wrapping your existing layout in a framelayout and putting the imageview in it May 17 12:45:55 yeah, that's not such an issue May 17 12:46:18 I was just overly optimistic May 17 12:46:31 hoping Google actually managed to add an API for that rather common pattern :P May 17 12:48:58 Is the card API public? From here: https://plus.google.com/u/0/+KirillGrouchnikov/posts/7DgbBnxDL4q May 17 12:49:09 I doubt it, but.. May 17 12:49:12 I made an imageview subclass that handles the popupmenu, etc, I can just drop in and add actions to May 17 12:50:43 autrilla, no, there's no card API May 17 12:50:48 it's just a 9patch anyway May 17 12:51:01 Or a simple drawable May 17 12:51:10 Mavrik, but some of the stuff they use for Google Play would be useful May 17 12:51:27 yeah May 17 12:51:31 For example, card overflow May 17 12:51:34 :P May 17 13:17:46 Hello! Can please someone tell me how can I add library project to another android project. I keep trying an d it does not work. May 17 13:22:25 Bonjour! S'il vous plaît quelqu'un peut me dire comment puis-je ajouter projet de bibliothèque à un autre projet Android. Je continue d'essayer mais il ne fonctionne pas. May 17 14:21:40 hello, are there any tutorials out there that teach how to implement my *own* push notification service? When I search, everything comes up as either google cloud messaging, or links to other web services that do the work for you. I am interested to learn how push notifications work behind the scenes though. May 17 14:23:53 zzxx: it's one of those things... if you need to ask a question like that, you don't know enough to be able to do it properly anyway May 17 14:25:21 While I appreciate your concern, perhaps you could point me in the right direction so that I can start to learn May 17 14:26:33 d.android.com May 17 14:27:05 dude, youre making some pretty big assumptions about my level of competency. May 17 14:27:23 yes, I am, based on your asking for a tutorial on how to create a complex network service May 17 14:33:04 Was my use of the word "tutorial" offputting? I realize that it is not a trivial task to implement such a service, I am a competent android programmer, and have some experience with network programming, but I am unsure of where to seek out resources to further grow my skill and knowlegde about implementing a push notification service. May 17 14:33:16 If anyone has a useful answer, I'd be happy to hear it May 17 14:38:05 hello devs..I m getting a weird error May 17 14:38:23 the HttpResponse header returns HTTP Ok May 17 14:38:36 but the content length is -1 May 17 14:39:01 although the server is returning some text in any case May 17 14:39:34 do I need to set the content length from the LAMMP Server explicitly May 17 14:39:35 ? May 17 14:45:05 how can i place the context in a bundle? May 17 14:46:45 I am starting an Intent to reorder an already running activity on top. How do I pass extra data to this activity that has not been started but reordered. Or rather: is there a handler that tells me when this activity has reordered so that I can get the extras I passed to the intent? May 17 14:49:07 Tobbi, you can use startActivityForResult instead of startActivity and then getting messages with overriding onActivityResult May 17 15:18:48 Can anyone help me with switching between two custom view class, ive tried inflating it but i might be not getting it :P May 17 15:27:58 hi all. Anyone having problems with last android-support-v4 lib? May 17 15:28:21 I'm getting NotificationCompat.BigTextStyle() cannto be resolved to a type May 17 15:39:16 what does this error mean May 17 15:39:19 http://codepad.org/drROibUs May 17 15:39:56 it's my code: http://codepad.org/0FygKcW4 May 17 15:40:43 mintux: Android has main threads May 17 15:41:06 http://developer.android.com/reference/android/os/NetworkOnMainThreadException.html May 17 15:41:12 The exception that is thrown when an application attempts to perform a networking operation on its main thread. May 17 15:41:18 it's a simple app to show source of webpage May 17 15:41:30 mintux, you have to do some (all) network operations in the background May 17 15:41:42 mintux, the main thread is the display/UI thread May 17 15:42:19 mintux, so any thread which could cause a delay of a few seconds, like a network request, has to be done on a background thread such as an asynctask May 17 15:42:34 Ologn: so my way is wrong May 17 15:42:48 Ologn: and if speed be too slow then it fail May 17 15:43:16 ah May 17 15:43:28 so this way is deprecated May 17 15:43:52 mintux, yes, deprecated since Honeycomb...and before Honeycomb it was a strong suggestion May 17 15:44:31 i just followed a video tutorial that is old too May 17 15:45:49 thanks May 17 15:53:37 did you guys know that the Play refund system changed ? May 17 15:53:43 http://www.androidpolice.com/2014/05/16/google-quietly-implemented-automated-refunds-apps-15-minute-window/ May 17 15:53:50 so before 15 minutes; the same May 17 15:54:23 15 minutes - 48hours; can still refund (developer loses sale) May 17 15:54:40 after 48 hours; google eats the refund May 17 15:55:27 i don't recall getting any information / email about this change from googlfe May 17 15:57:30 that's because officially nothing has changed May 17 16:00:49 officially is meaningless doublespeak :) May 17 16:07:44 I have an image view with an ontouch listener on it. On touch, Id like to retrieve the color of the pixel that my finger is on. How do I go about doing this? May 17 16:16:09 Do we have to remove OnEditorActionListener's onPause? May 17 16:16:44 i want the user to be able to add or remove ingredients in a list. do i simply use ListView and a bunch of TextViews or there a nicer approach ? May 17 16:18:14 ufk_ listview May 17 16:19:25 thanks :) May 17 16:34:44 ahm.. i want an image chooser, that the user will be able to choose from gallery or camera. is there an element for that? May 17 16:35:34 you can Intent out to the gallery/photos app to choose May 17 16:36:13 so there isn't a simple image chooser element.. ok :) thanks May 17 16:38:54 I am having some problems with ExpandableListView. I want to put a button in the group view but when I do, it makes the button unclickable and the group view unclickable so I can't see the children May 17 16:39:43 From googling, I think it has something to do with setting the focusable attribute on the button, but while that makes the button work, it doesn't let the group view be clicked still May 17 16:39:47 any advice? May 17 16:46:27 no? May 17 16:48:31 hi guys May 17 16:48:49 how can i get the process when my app is running? May 17 16:50:12 I have an image view with an ontouch listener on it. On touch, Id like to retrieve the color of the pixel that my finger is on. How do I go about doing this? May 17 16:55:58 got it! Had to set in XML focusable attr of the button to true and in the code to false May 17 16:56:02 strange but it works May 17 16:56:09 why doesn't it work if I set focusable in XML to fasle? May 17 16:56:21 Leeds i was reading http://www.androidpolice.com/2014/05/16/interview-link-bubble-and-action-launcher-developer-chris-lacy-shares-his-thoughts-on-android-app-development-and-more/ May 17 16:56:39 one statement ... May 17 16:56:45 " … my experience a great many of these apps not only can’t be uninstalled, but can’t be disabled either. … " May 17 16:57:00 i've never seen an app that could not be disabled; is this true ? May 17 16:57:36 perfectly possible for system apps to be undisableable, I think May 17 16:58:52 this is why i'm worried about the possibility nexus goes away; i don't really care much about HW / specs; i just want a clean image with no shit installed … especially stuff installed by oem / carrier that can't be disabled May 17 16:59:16 nexus is has been less clean recently anyway May 17 16:59:28 lots of googly things yeah .. but ... May 17 16:59:50 but assuming the rumoured Silver is basically a merger of GPE and Nexus, that should be okay - as long as you don't mind paying full price for a handset May 17 17:00:08 GPE? May 17 17:00:11 oh nm May 17 17:00:46 i just want a reference platform; don't care if its a bunch of wires & shit May 17 17:01:16 google play edition May 17 17:01:30 you might end up with something like a beagleboard at this rate May 17 17:01:39 yeah that is fine May 17 17:03:12 * capella hates when I reach that point in the patch analysis ... "Ok I know how to fix it, but is it worth the time, effort, and code crapification?" May 17 17:03:40 capella FF ? May 17 17:03:55 man, i had to go onto #firefox and get help … but nobody could help May 17 17:04:04 Yah ... small tweak to our remote tabs page ... got me working with the java again \o/ May 17 17:04:17 g00s: re: what? May 17 17:04:31 (got sick of javascript) May 17 17:04:33 i have about 10 windows; each maybe 5-10 tabs or so … and FF process is taking like 30% of my CPU, and i can't figure out which one May 17 17:04:54 has me baffled … because i have 'don't load tabs until selected' May 17 17:04:56 Ah, there's a bug for that ... didn't we talk? May 17 17:05:00 yeah May 17 17:05:06 so i stopped using FF atm May 17 17:05:16 electrolysis effort is implementing something May 17 17:05:20 i'm using Chrome, and looking at httpsb May 17 17:05:27 ohdear May 17 17:06:05 My annoyance (not just FF) is every dang page seems to want to start playing background music these days May 17 17:06:18 capella have you seen this ? https://github.com/gorhill/httpswitchboard May 17 17:06:24 I optn up 20 tabs for reading and one of them start singing @ me May 17 17:06:40 capella OH and I also added unloadtab but that didn't fix either May 17 17:06:45 hehe May 17 17:07:09 mmm ... May 17 17:07:15 capella did you see the recent article about ABP on HN ? May 17 17:07:32 chrome has a "this tab is making noise" indicator now... May 17 17:07:36 mmm ... saw something ... some back and forth with us and the author May 17 17:07:53 I worked a bug for them on our side once May 17 17:07:54 ABP is essential, but its getting out of hand bloated May 17 17:08:00 tell me ! May 17 17:08:36 * capella thought we were doing a "this tab is making noise" thingy May 17 17:09:12 On Win I can use the mixer to silence the app ... on mobile ...meh ... May 17 17:09:14 i think chromium has an updater now too May 17 17:09:45 * capella needs to write an addon- to just always switch to ReaderMode May 17 17:16:11 g00s: that looks good ... blacklist the stuff you commonly encounter vs. ABP which has a >huge< css script that it parses May 17 17:16:54 capella i also use http://someonewhocares.org/hosts/ May 17 17:17:09 i dont think you are allowed to change that on android w/o root May 17 17:17:23 yah hosts blocking ... I read some of that earlier too May 17 17:18:20 and I have root .... just haven't been intrepid enough to tweak around ... I have the Android Adblock but it doesn't help with browser ads afaict May 17 17:19:33 "AdAway" May 17 17:20:06 there is also bluehell May 17 17:20:57 yah, didnt try that one either yet May 17 17:21:47 always worth remembering that however bad things are on Android... they're worse on The Other Platform May 17 17:21:58 thats nonsense May 17 17:22:13 you have to do 'metro' styling there! May 17 17:23:03 obviously, FF don't do metro ;) May 17 17:25:15 i like metro, so thats fine ;) WP 8.1 was pretty fun when i played with it May 17 17:25:29 I did about 5 patches for Metro, converted the about:config screen to touch ... then they saw me working and cancelled the project May 17 17:25:37 I doubt I'll ever see my WP8 phone again May 17 17:25:57 Got a nice SurfacePro2 out of it though ;) May 17 17:26:59 ars technica gave it WP 8.1 awesome reviews http://arstechnica.com/gadgets/2014/04/windows-phone-8-1-review-a-magnificent-smartphone-platform/ May 17 17:27:20 MS new CEO is doing lots of interesting things too May 17 17:27:28 seems like a 18 from ballmer May 17 17:27:31 *180 May 17 17:28:48 http://www.businessinsider.com/nadella-builds-new-microsoft-in-3-months-2014-5 May 17 17:29:16 now i have a big trip and need to see if google maps will let me work offline OK May 17 17:29:29 calling it a new MS is probably hyperbole - from BI, really? - but yeah, he's definitely trying to turn the battleship May 17 17:29:48 yah ... MS turned into Mr. Corporate ... lost track of retail consumers ... when the decided they wanted their business, they told us what to buy vs. asking what we wanted May 17 17:29:50 hence Win8 / Metro ugly for desktop, Kinect whether you want it or not, etc May 17 17:30:35 hmm, I hadn't connected the new kinect-less xbone, but you're right, another example of MS being less pushy May 17 17:30:42 interesting part of that article is at the bottom "Next up, Nadella still has big problems to fix ..." May 17 17:30:44 But they are back-pedalling all the right ways May 17 17:31:22 seems like a more humble MS that realizes it has to work with others May 17 17:31:27 that, i think, is refreshing May 17 17:31:53 Why should I use okHttp instead of jsoup? May 17 17:32:12 are there any tutorials for developing an android app for someone who has never used java before? May 17 17:32:44 g00s: something which I heard a while ago, which seems to have slipped under a lot of people's radar, is that they've dropped the 'Windows' name from Azure May 17 17:33:04 maybe its running linux :) May 17 17:33:06 XD May 17 17:33:14 it does support Linux, and apparently pretty well May 17 17:33:51 Can somebody help me with this ? http://stackoverflow.com/q/23711150/3488870 I need to find if a textview can be seen on the display or not (not the view.Visible thing). May 17 17:33:59 that's my point - new open MS, less focus on everything-is-windows, etc. May 17 17:34:41 Leeds do you know if the moto E is pretty much stock or motoblur ? May 17 17:34:42 d0de: a) do you know other any languages, or are you starting by learning to code from nothing? b) start by learning the Java language, don't worry about things like UI, then start on Android May 17 17:35:06 g00s: I think motoblur is largely dead - from everything I've read, the new Moto phones are pretty much stock with a few Moto apps May 17 17:35:38 moto has some of their apps in Play, like the new emergency app May 17 17:35:46 thats awesome, i'd rather just add the stuff i wanted May 17 17:36:08 right, but they'll only install on Moto phones - I think it's more so they can push updates through Play, rather than any real unbundling... HTC are doing it as well May 17 17:36:23 makes sense May 17 17:36:29 ha ha sense :) May 17 17:39:28 d0de: a) do you know other any languages, or are you starting by learning to code from nothing? b) start by learning the Java language, don't worry about things like UI, then start on Android May 17 17:39:32 Leeds: I know some javascript. I was trying to port a webapp to Android to Phonegap / cordova. I realized it was going to suck in Phonegap vs. a native app. I'm trying to work out if it's realistic to write it from scratch in java May 17 17:39:58 moz has a graphics project called Azure ... I kept saying ,,, but MS??! May 17 17:40:11 well, you'd need to learn a new language, a new platform, and to a great extent a new application model May 17 17:40:20 so I/O 2014 schedule was out a few days ago ... May 17 17:40:29 but i think some things were added since May 17 17:40:39 did you guys see this about Polymer ? https://www.google.com/events/io/schedule/session/492aed57-d7b9-e311-b297-00155d5066d7 May 17 17:41:21 multiscreens confuse me May 17 17:41:48 Leeds, I figure it's worth experimenting with. What would you recommend I start with to try to pick up the basics of the language? May 17 17:41:59 d0de: SunOracle has a java tutorial... May 17 17:42:37 my main advice would be not to try to rush it - take it as it comes, and if it's taking too long, maybe now isn't the time May 17 17:45:13 Leeds, would you say it's harder to pick up the basics of java than the basics of javascript? May 17 17:45:29 yes, I would... Java is a more formal, more engineered language May 17 17:47:28 it certainly seems that way so far May 17 17:47:28 the result would probably be better than phonegap, but it'll take more work and time... if it's an existing webapp, you might want to try to build a quick phonegap version, then work on the 'real' native app May 17 17:48:59 the problem is that it plays media, and phonegap seems really lacking in this area. Something as simple as "pause all media when the phone rings or is off the hook" isn't possible without using a plugin with some java code, and there are no up to date plugins for that feature. There seem to be lots of basic features that aren't possible to implement in phonegap May 17 17:49:16 ah, yeah... May 17 17:50:06 and there are also *loads* of bugs May 17 17:50:13 surely not :) May 17 17:51:27 I'm trying to read a url from an xml (I can read all other data in the xml) but the urls are throwing an unexpected type error (before you ask there are no &) does anyone have any experience with this? May 17 17:51:44 I'm probably being silly and it probably isn't possible for me to write a java version from scratch without knowing any java, but I feel it's at least worth trying. I guess the advantage of not knowing anything is that you don't know how over-ambitious you're being May 17 17:52:53 I don't suppose anyone happens to know if it's possible for a background service to control more than one media player instance in Android? May 17 17:55:18 I've only done the one foreground video player May 17 18:09:20 g00s: are you little bit free? Can you please look at this ? http://stackoverflow.com/q/23711150/3488870 I need to find if a textview can be seen on the display or not (not the view.Visible thing). May 17 18:15:54 or a little but country? May 17 18:16:02 *bit ... :P May 17 18:16:40 capella: sorry? May 17 18:16:58 :) Joke ... g00s is a little bit country May 17 18:17:54 capella: can you help me with this? have spent all day now dealing with this weird thingy May 17 18:20:06 you want to find if an item in a listview is displayed vs. scrolled out of sight kinda thing? May 17 18:21:09 no, In the detail fragment, on the right. All the news things are in a scroll view. I want to know if the article body is visible on the screen or not. May 17 18:21:57 For eg in this http://puu.sh/8Pwsk.png the article is "After the landslide..." and in this it is not visible because the image is too large http://puu.sh/8PwtC.png May 17 18:22:14 In the later case I want to display a "Scroll TO Read" textview May 17 18:22:27 * capella (finds elegant solution to hack approach ... does a happy dance) May 17 18:22:28 which is right now visible (just for testing though) May 17 18:23:49 oic May 17 18:24:06 I first thought of getting the image height and comparing with Window size but image returns size 0. May 17 18:25:01 any clue? May 17 18:26:14 wondering if a visual clue is required ... won't most people know there's "stuff" offscreen / how-to-scroll? May 17 18:28:19 hmm I know it is weird to add this thing and thing is happening on 10inch Tabs mostly. On phones 1/20 times the images are large, for the case when there are infographics, on tab 7" too sometimes images are large. May 17 18:28:35 I wonder if there isnt any easier approach, I should scrap this idea. May 17 18:29:23 Weirdest thing being the getHeight on image view returning 0 May 17 18:31:03 i just installed the sdk, and when i try to build a 'hello world' app, it throws an error May 17 18:31:23 a super secret error? May 17 18:31:28 /android-sdk-linux/build-tools/19.1.0/aapt: File or directory not found May 17 18:31:46 double secret probation! May 17 18:31:56 but that file exists May 17 18:32:02 can you run it? May 17 18:32:08 let me try May 17 18:32:22 no, same error May 17 18:32:25 but it exists May 17 18:32:30 are you trying to run a 32-bit binary on a 64-bit only Linux install? May 17 18:32:48 i don't know if my distro is 64-bit only May 17 18:32:56 which distro? May 17 18:33:06 elementary OS, based on ubuntu May 17 18:33:07 actually, what does `uname -m` say? May 17 18:33:23 capella: scrap the idea then? no clue? May 17 18:33:37 puckipedia, that exact command? May 17 18:33:45 without ` of course May 17 18:33:46 wanttocode... That's entirely up to you as the UI designer :) May 17 18:34:00 If I only ever programatically broadcast an explicit intent to a receiver - can I simply register it as in the manifest file? May 17 18:34:01 x86_64 May 17 18:34:03 Time and experience will tell you that May 17 18:34:12 lucastt, so probably 64-bit only May 17 18:34:20 capella: ahh...! :( Thanks for your time May 17 18:34:30 is there a way to make it run a 32-bit binary? May 17 18:34:32 so, run `sudo apt-get install ia32-libs` May 17 18:34:42 which will install 32-bit libs May 17 18:34:48 Is ok :) I have people tell me how to design things ... I get to just make the code work May 17 18:34:50 huh, the last time i installed that i had to reinstall the system May 17 18:34:58 because it made my theme engine works weirdly May 17 18:35:00 hmm May 17 18:35:03 shouldn't happen May 17 18:35:05 If I designed things, we'd still be on command line May 17 18:35:25 it only make my theme engine works weirdly, i had to reinstall the system because i'm bad at fixing stuff, lol May 17 18:35:32 at some point soon, Google will probably have to start building the SDK for 64-bit - I think it's getting more common to have 64-bit only installs May 17 18:36:19 i tought 64bit systems could run 32bit files by default May 17 18:36:30 well, you need the 32-bit libs May 17 18:36:34 not without 32-bit libs installed May 17 18:36:34 which for some reason aren't installed May 17 18:36:39 i see May 17 18:36:43 i'll install it May 17 18:37:00 if you're only running software from your distro, it'll typically all be built for 64-bit nowadays May 17 18:37:14 we started the x86_64 transition a *long* time ago May 17 18:37:18 if it doesn't work, press ctrl+alt+f2 and log in, and `sudo apt-get remove ia32-libs` hopefully May 17 18:37:21 what do you mean Leeds / May 17 18:37:49 i'll make a restore-point just to be shure, lol May 17 18:37:51 lucastt: which bit? May 17 18:38:02 if you're only running software from your distro, it'll typically all be built for 64-bit nowadays May 17 18:38:23 erm, what needs explaining there? May 17 18:38:30 Well, software from your distro is installed via apt-get or the package manager, which only distributes 64-bit software May 17 18:38:37 "only running software from your distro"? May 17 18:38:39 (or 32-bit with the 32-bit libs as dependency) May 17 18:38:42 oh May 17 18:38:49 thanks May 17 18:40:17 I have the same problem with my home server - I can't run plex on it, because I can only get a 32-bit package May 17 18:40:31 Leeds, no 32-bit libs? May 17 18:40:42 also, can't you compile it yourself? May 17 18:40:48 puckipedia: as with lucastt, I haven't needed them - and no, plex isn't open source May 17 18:40:52 *sigh* May 17 18:41:02 lucastt, run ldd on aapt and other binaries that doesn't work May 17 18:41:07 run apt-cache search for that file May 17 18:41:18 run apt-get install lib:i386 May 17 18:41:34 IIRC you need to install 2 libs or so for the SDK to work on Elementary / Ubuntu 12.04 May 17 18:41:58 ia32-libs isn't really needed and can cause problems May 17 18:42:22 i'll need it for a lot of files May 17 18:42:24 Mavrik: it's good that people need to know that sort of thing to use the SDK, right? May 17 18:42:26 i'll need it for the sdk May 17 18:42:48 Leeds, indeed May 17 18:42:57 Leeds, I have no idea why they distribute it as x86 binaries May 17 18:42:58 -_- May 17 18:44:33 i tried to install 32libs May 17 18:44:48 it throws errors May 17 18:45:18 it says it was impossible to fix the problems, because i held broken packages May 17 18:45:58 and that the package has unmet dependencies May 17 18:46:42 should i get help for that on ##linux/ #ubuntu? May 17 19:00:00 conclusion: i might switch distros May 17 19:00:01 lel May 17 19:01:12 how will that help? May 17 19:01:22 you'll have the same issue everywhere May 17 19:04:24 The DevBytes video for listview reordering has an OnItemLongClickListener on the ListView to trigger the dragging. How could I make so that it only triggers when I press the drag handle / grip? May 17 19:04:30 Mavrik, not really May 17 19:04:39 Elementary OS has some really bad issues May 17 19:04:48 it's not just because of that android sdk thing May 17 19:04:53 i was already thinking about switching May 17 19:05:32 eOS is pretty much just Ubuntu 12.04 May 17 19:05:39 which is about as stable as it gets right now May 17 19:05:45 so... well... :) May 17 19:06:29 How does eOS perform on old laptops (off-topic here) May 17 19:06:49 And old computers for that matter May 17 19:07:51 it uses 3d desktop by default May 17 19:07:59 so depends on what do you mean "old" May 17 19:08:06 it performs about the same as 12.04 LTS :) May 17 19:08:19 A 3 year old vostro May 17 19:08:35 Worst computer I've ever had May 17 19:09:18 Mavrik, not really. May 17 19:09:34 the main difference is the support, lol May 17 19:10:03 anyway, as i said, i'm not switching distros just because of that May 17 19:10:06 autrilla, as long as it has like 4GB of RAM it should work just fine. May 17 19:11:36 I think it has 3GB May 17 19:11:47 Meh May 17 19:11:50 It's a very bad laptop May 17 19:12:04 yeah, that should be ok May 17 19:12:06 I upgraded my ultrabook from 3gb to 12gb :P May 17 19:12:15 Seriously, I don't ever have memory problems May 17 19:12:38 http://hothardware.com/newsimages/Item9295/dell-vostro-1320-notebook-1.jpg it migh as well be from the 90 May 17 19:12:41 90's May 17 19:13:25 I sometimes have memory problems on the PC I'm currently at, when you open large files in PS... 8GB just aren't enough May 17 19:13:44 puckipedia, hmm, that's a wierd combo May 17 19:13:55 what kind of ultrabook upgrades to only 12GB from 3GB? May 17 19:14:20 Mavrik, 3gb built-in (non-removable) May 17 19:14:26 added one 8gb ram stick May 17 19:14:47 you mean 4GB? May 17 19:14:54 That doesn't make 12GB May 17 19:14:59 wait May 17 19:15:00 what May 17 19:15:04 I know UX32VDs had 4GB soldered + one RAM slot that took 8GB to total of 12 May 17 19:15:15 but haven't seen anyone solder 3GB inside :) May 17 19:16:55 sorry, you're right May 17 19:16:56 4GB May 17 19:18:17 ah, just got confused :) May 17 19:18:25 yeah, alot of RAM helps for dev work May 17 19:18:41 Still, Goat Simulator took everything May 17 19:18:47 I have 2 more 4GB sticks somewhere, but I couldn't find it May 17 19:18:57 find them* May 17 19:19:06 puckipedia, hehe May 17 19:19:14 yeah, I have 16GB in all my machines May 17 19:19:22 that and SSD is pretty much must for proper dev work May 17 19:19:29 I do have an SSD May 17 19:19:35 128Gb only though May 17 19:20:03 Mine has a built-in 24GB ssd and a 500GB hdd May 17 19:20:35 24GB? Does Windows even fit there? May 17 19:20:47 it's a precache May 17 19:20:51 Mavrik, yep May 17 19:20:53 Oh wow, now that I remember, does Windows 8.1 use paging file on SSDs? May 17 19:20:54 not exposed to OS May 17 19:20:59 actually, it is May 17 19:21:03 Ah, it's a SSHD May 17 19:21:09 intel uses it for saving the hibernation partition and some other May 17 19:21:15 puckipedia, right, forgot that Intel shows it to you May 17 19:21:17 but I can use it to mirror my /lib folder :P May 17 19:21:18 Apple hides it May 17 19:21:21 SSHDs as well May 17 19:21:40 on Windows you get a tool to enable block-level caching on Ivy Bridges May 17 19:22:31 16GB + SSD, nice Mavrik ; so you wouldn't like my 4G + 5400 rpm machine :| May 17 19:22:43 g00s, well May 17 19:22:47 if you do something professionally May 17 19:22:51 you need proper tools May 17 19:22:53 no wonder ant is so fast for you ! hahaha May 17 19:22:59 and a developer really only needs a single machine May 17 19:23:12 puny 1000€ will buy you a huge lot of desktop hardware May 17 19:23:31 I'm considering getting a better computer for my workplace too May 17 19:23:42 I usually just code at home, most stuff I code is unrelated to my job May 17 19:24:54 For ~500€ I should be able to get something decent May 17 19:25:34 get another 300 or so to get something really good that'll last years May 17 19:25:46 800EUR will buy you 16G of RAM, 256SSD and a proper quad i7 May 17 19:26:22 Mavrik, as I said, I don't really code at work. At home I have a 4670, m4 SSD and an r9 280x May 17 19:26:31 and? May 17 19:26:33 Mavrik what brand machines do you like? are you using windows ? May 17 19:26:51 i should ask, laptop. i may need a new laptop soon May 17 19:27:02 no, I'm not using windows May 17 19:27:21 I'd love to use linux, but the Adobe Suite isn't supported May 17 19:27:26 autrilla, if your works can't afford to add 300EUR for a proper machine to you... you might wanna look somewhere else :P May 17 19:27:29 Just multiboot! May 17 19:27:34 yeah, I use adobe Lightroom; man i hate adobe May 17 19:27:35 Mavrik, of course we can May 17 19:27:43 g00s, as for brand... pretty much anything that gives me alot of power/quality for money May 17 19:27:56 g00s, right now we mostly use rMBPs at work May 17 19:28:06 rMBP ? May 17 19:28:12 macbooks May 17 19:28:13 retina, ok May 17 19:28:32 Lenovo Thinkpads are fine, Yogas as well, ASUS zenbooks, Sony Z series May 17 19:28:38 good laptops are rather expensive tho May 17 19:28:50 so... get a desktop if you don't really need portabilit May 17 19:28:51 y May 17 19:30:16 Mavrik, socket 1550, right? May 17 19:31:02 1155 or whats it? haswells May 17 19:31:21 There's 1150, 1155, 1156 and 2011 May 17 19:31:37 I'd go with a 3770 May 17 19:32:10 ah, it seems 1150 for haswells May 17 19:32:14 Yes May 17 19:32:21 I won't need a GPU, right? May 17 19:32:22 yay Intel. May 17 19:32:28 Integrated should be fine May 17 19:32:45 unless you want to game :P May 17 19:32:53 At work? No, not really May 17 19:33:19 or watch a wall of youtube videos about android, all at the same time May 17 19:34:17 Mavrik, oh, those are Ivy Bridges May 17 19:34:43 1150 for haswell May 17 19:34:59 mhm, haswells are 4xxx May 17 19:35:11 puckipedia, meh, HW decoder onboard :P May 17 19:35:11 Yes, 4790, for example May 17 19:36:02 I have a custom View that does its own onTouchEvent Listener inside of the custom views class. I want to add another onTouchListener in my activity to this custom view. What can I do to ensure that both Listeners get called? May 17 19:36:08 Case? Cooler Master K280 looks decent May 17 19:37:57 eghdk, override setOnTouchEventListener, keep reference and pass through events May 17 19:39:03 Mavrik: Erm.... what do you mean pass through events? May 17 19:39:14 eghdk, a view may have one listener. May 17 19:39:28 so if you set your own listener on a base class in your custom view May 17 19:39:42 your custom view will have to keep a reference from "outside" listener and pass over events to that one May 17 19:40:39 Mavrik, what RAM would you get? Brand and model May 17 19:40:46 the cheapest one May 17 19:40:48 :) May 17 19:40:58 1600 if it's cheap enough May 17 19:41:03 Well so my listener inside of my custom view works. I then create new CustomView and setOnTouchListener... where do I pass events? In my activity or in my customView class? May 17 19:41:09 22€/2GB May 17 19:41:12 That's 1333 May 17 19:41:26 And 1600 is 39€ 4GB May 17 19:41:29 But it's cl11 May 17 19:42:02 android.R.dimen.status_bar_height contains the height of "status bar". Is it ActionBar+notification bar height or just the actionbar? May 17 19:42:18 WantToCode, it's the size of the status bar May 17 19:42:24 Which is what you call notification bar May 17 19:43:02 ok. and how can I get the sizes of action bar at top and the navigation bar at bottom? May 17 19:43:19 Why would you want that? May 17 19:43:30 http://stackoverflow.com/questions/12301510/how-to-get-the-actionbar-height May 17 19:43:53 Mavrik, did your 800€ include peripherals? May 17 19:43:59 nop May 17 19:44:01 I want to get the height of the viewable area without all the bars. May 17 19:44:15 good monitor is another 400-1000 depending on what you want :P May 17 19:44:33 WantToCode, hmmm, grab the size of decorview? May 17 19:44:39 Mavrik, errr 4k or what May 17 19:44:49 My monitors cost 89€ and 132€ May 17 19:44:55 also I think one of the getScreenSize returns that value as well May 17 19:45:09 autrilla, well, 27" 2560x1440 or yes, 4K if you want :P May 17 19:45:21 dual fullHD maybe? :) May 17 19:45:53 There is a chance I will only use this computer for 3 months or so May 17 19:46:06 Mavrik: Well so my listener inside of my custom view works. I then create new CustomView and setOnTouchListener... where do I pass events? In my activity or in my customView class? May 17 19:46:42 hmm, don't understand your question really May 17 19:46:42 I'm running dual fullhd now, and it's good enough May 17 19:46:47 your customview should be opaque :) May 17 19:47:08 Mavrik, have you ever done reorderable listviews? May 17 19:47:16 autrilla, yes. May 17 19:47:19 it was a pain :) May 17 19:47:25 It is being a pain for me May 17 19:47:32 Mavrik, did you use any libs? May 17 19:47:41 Or did you just code everything yourself May 17 19:49:36 Sorry, got disconnected. I was saying that I am currently using getWindowManager().getDefaultDisplay(); to get Display and use getSize May 17 19:49:45 autrilla, I think I used dragsortlistview or some such May 17 19:50:09 Mavrik, yeah, discontinued. https://github.com/bauerca/drag-sort-listview May 17 19:50:19 Isn't there a devbytes on this? Should be fairly easy to implement then May 17 19:50:39 SimonVT, the devbytes thing goes prtty much against every design principle imo May 17 19:50:54 They just have a OnLongItemClickListener to trigger stuff May 17 19:51:05 So use something else "to trigger stuff" May 17 19:51:20 The entire drag, etc, logic would be the same May 17 19:51:32 Mavrik: is the above code I am using OK? May 17 19:52:06 autrilla, well, worked fine enough (it was some time ago tho :) ) May 17 19:52:08 SimonVT, yes, sure, but I would have to notify the ListView when I click the drag handle May 17 19:52:16 Is there a way to preload convertviews in a ListView with more than 1 view type? May 17 19:52:55 I don't see the issue May 17 19:53:09 aoeu: Nope May 17 19:53:09 I thought that would be bad May 17 19:53:10 What would be the best way to unicast a video stream from the camera? May 17 19:53:34 well then May 17 19:53:55 SimonVT: What do I do then? I just accept that the view lags/hang every time a new listitem is created? May 17 19:54:28 autrilla: OnItemLongClickListener doesn't "notify the listview" about anything that has to do with dragging items around May 17 19:54:34 SimonVT: All my pages are listviews. Some of these lists can have 4-5 different view types, each having different heights. May 17 19:54:41 hm. May 17 19:54:46 the lagging part is the problem May 17 19:54:51 not the preloading part. May 17 19:55:06 SimonVT, it tells the ListView subclass they made to start the dragging May 17 19:55:14 Mavrik: It lags because a view is created. What makes ListViews smooth is that Views are created once, and not created when you scroll. May 17 19:55:17 you need to fix your lag issues not just move delays somewhere else. May 17 19:55:29 autrilla: And that is completely impossible to do from anything but an OnItemLongClickListener? May 17 19:55:30 Creating a view when scrolling is what cause the issue. May 17 19:55:50 What makes it impossible? May 17 19:56:03 SimonVT, I could, in the adapter, set up a touch listener for the handle and send an Event via Otto May 17 19:56:10 To notify the ListView May 17 19:56:20 It's impossible not to have the lag. May 17 19:56:27 The view is big and complex. May 17 19:56:28 That's what I thought, but then I thought that was not the correct way to do it May 17 19:57:06 Or just call a method directly on the listview May 17 19:57:33 g00s: Heya, I finally managed to figure out all the gradle stuff to load Dex files during runtime May 17 19:57:49 g00s: Here is the github repo: https://github.com/creativepsyco/secondary-dex-gradle May 17 19:57:56 Why don't the ListView/adapter create views in advance? May 17 19:58:08 SimonVT, yeah, right. getView gives the ListView as a parent ViewGroup, right? May 17 19:58:56 aoeu, simplify the view. May 17 19:58:58 optimize drawing May 17 19:59:12 it HAS to be laid out somewhere May 17 19:59:22 you're app will still be slow, you just move waiting time somewhere else May 17 19:59:44 Mavrik: I can't. May 17 20:00:48 Either git or IDEA are really stubborn, idk how to tell it not to use the drag-sort-listview lib May 17 20:01:02 Removing the git submodule is not enough apprently May 17 20:01:09 aoeu: If you havent, you should watch these two videos from I/O http://www.youtube.com/watch?v=N6YdwzAvwOA, http://www.youtube.com/watch?v=wDBM6wVEO70, why different things happen in listviews. May 17 20:01:10 aoeu, find a better developer to do it for you. May 17 20:02:01 Mavrik: There's no simpler way to show the content. May 17 20:02:39 I need a way around this. Will I need to implement my own ListView? I hope not. May 17 20:02:42 MohitKanwal wow, nice ! May 17 20:03:40 Mavrik: each listitem is taller than the height of the screen May 17 20:03:55 Mavrik: it contains lots of things, spinners, viewpagers, etc. May 17 20:03:59 huh. May 17 20:04:08 g00s: it took me a while to figure out the entire gradle build pipeline and the tasks but once that is done, pretty much the rest is similar to the blogpost May 17 20:04:56 i'll have to study it May 17 20:04:59 :) May 17 20:06:25 Mavrik: what do you suggest? May 17 20:06:38 profiling, seriously rethinking your implementation May 17 20:06:41 Mavrik: I just need to ask the adapter to create 4 views at first. May 17 20:06:43 using custom viewgroups and views. May 17 20:06:53 Mavrik: I'm using custom viewgroups and views. May 17 20:06:54 aoeu, how does that help May 17 20:06:59 if you have stuttering May 17 20:07:14 what makes you think users will look at blank screen to wait for your views to lay out _ May 17 20:07:36 Mavrik: They're created at first, when the list is not scrolling. You don't notice this loading as much as the one that occurs when scrolling and revealing new views that are not created. May 17 20:07:57 Mavrik: There's a loading screen that hides the content of the page. May 17 20:09:35 hello May 17 20:10:09 something with the DevBytes' ListView is very wrong. In a ListView with 2 items it's requesting item 12 May 17 20:10:19 Mavrik: So you're saying that there is no way, not even a hack that let us do this? May 17 20:11:25 What the heck are you loading that takes so much, aoeu ? May 17 20:11:28 Not that I would know. May 17 20:11:57 I'm also saying you probably did something very wrong when designing / implementing the app which causes you the problem in the first place. May 17 20:12:05 It isn't usually creating the view hierarchy that takes time, but measuring/layout (which has to happen every time anyway) May 17 20:12:10 And that you're trying to patch the wrong issue. May 17 20:12:37 mhm, you can do alot to cut that time down by inserting custom viewgroups for complex parts May 17 20:12:44 Mavrik: Our main page has a ViewPager (with complex items inside), a list of offers, a list of category, and a footer. Since we can't seem to put 2+ lists inside a scrollview, we had to merge both lists into 2, to which we added the main section and bottom section as list items. But when the List is first displayed, only the main item is visible, so it doesn't create any convertview for listitems. When the first item is shown, it c May 17 20:13:05 Mavrik: Seem for all future list items. Then, once they're all created, scrolling up and down is very smooth. May 17 20:13:12 same* May 17 20:14:31 Huh. The OnItemLongClickListener is not triggering May 17 20:14:42 Mavrik: I have no control over the design. I'm a dev. PMs don't want to change design, designers don't want to change the design. The client, above all, don't want to change the design. The exact same design is present in the iOS app, and it works fine. They want the iOS and Android app to be identical when it comes to the content of pages, so we have to deal with these constraints. May 17 20:15:59 Rather than using a LinearLayout with bunch of stuff in it, each item that would be in a linearlayout (including lists) become an item is the list. May 17 20:16:33 How would you put 2 lists in the same page, one above the other? May 17 20:17:15 aoeu could you use one ListView and cwac-mergeadapter ? May 17 20:17:25 Or have one list that displays two datasets May 17 20:17:28 probably not the same effect May 17 20:17:34 i'm not really following the conversation that well :) May 17 20:17:53 Depends if both needs to be visible May 17 20:18:18 (List being list view) May 17 20:19:20 g00s: cwac-mergeadapter is similar to what we built May 17 20:19:34 g00s: but how does it solve the issue of creating new views? May 17 20:19:34 Hmmm... the ListView does get the touch events May 17 20:20:06 g00s: like, when you scroll and a view that was never created before has to be shown? doesn't the creation of the view cause a lag? May 17 20:20:20 wouldn't you lazy load that ? May 17 20:20:30 prefetch, cache, etc May 17 20:22:33 It should draw it :( May 17 20:25:14 g00s: that should work May 17 20:25:43 oh wow, you can't switch on a long in Java May 17 20:25:45 g00s: so i create them when the list is created, and hold them somewhere inside the adapter, and when I should create a new view, i actually just get the one that was already created May 17 20:25:54 g00s: use C# May 17 20:26:59 O.o May 17 20:27:07 aoeu, well, profile your slow points first May 17 20:27:13 find out what's taking so long May 17 20:27:25 act on that... use TraceView and HiearchyViewer May 17 20:27:26 Other question: Should I generate all assets in all resolutions, or can I just use XHDPI and let the device scale them? May 17 20:27:51 slow devices will take their time loading large images, decoding and scaling them May 17 20:28:05 Mavrik: It has to take long. The view has to be created, so I create it before it's visible. If I were using a ScrollView, the view would be created before I would reach it, wouldn't it? May 17 20:28:24 Mavrik: So it does affect performance? Good to know. May 17 20:28:31 yes, yes it does :) May 17 20:28:44 internal device flash can be rather unintuitevly slow May 17 20:28:46 Mavrik: I thougth it would just be done automatically and cached. May 17 20:29:09 When creating the package. May 17 20:29:25 nope. May 17 20:31:14 For what I've experienced the first time the image loads it takes long time. It should be cached at that time as the consequent uses of the same image are faster. May 17 20:32:20 Another question: All the data is bound asynchronously to my views. So when I scroll very fast, the views are white/empty, and then content is applied to it. Is there a way around it? May 17 20:32:38 Also if the image is too big it may overflow the heap memory of the device. May 17 20:33:13 And when views are recycled, I see the old content of the view before data gets bound. Is there a way to reset a view without reinflating it? May 17 20:33:47 autrilla: actually its not, because i have it working May 17 20:37:07 aoeu, I think for the first approach is the correct one. Synchronous loading is a bad experience in the user side. What you can do is showing the a ProgressBar in the image view during the load. I can't say anything about your second question as I don't know if there's other way. May 17 20:37:08 ok, now i see. somebody had this problem last week. if you select an item from the nav drawer, close the drawer and then start another activity, the animation is somewhat screwed up and very janky May 17 20:37:28 Napalm, huh. I used something else, triggers can't be used for that btw May 17 20:40:48 autrilla: what do you think the triggers are being used for? May 17 20:41:10 Napalm, you can't have a trigger affect the same table that triggered it May 17 20:41:17 yes they can May 17 20:41:27 remember its sqlite not mysql May 17 20:41:27 :P May 17 20:42:11 Napalm, oh. The guys at #mysql told me that wasn't possible, of course May 17 20:42:34 * autrilla reboots May 17 20:55:43 Napalm, do you have Hugo? May 17 20:55:56 no idea what that is? May 17 20:56:25 Napalm, for logging May 17 20:56:36 Just to know what methods were executing for you May 17 20:56:55 nope never used it May 17 20:58:38 Napalm, but you said the DevBytes' approach was working for you, right? May 17 20:58:50 approach to what? May 17 20:59:04 ListView May 17 20:59:13 you mean reorderng? May 17 20:59:16 yes May 17 20:59:18 yes May 17 20:59:37 Napalm did you see that I/O talk about Polymer ? May 17 20:59:53 i dont remember it being up when the schedule first went live May 17 21:00:06 * g00s hopes its not like volley :D May 17 21:00:17 Brb, my GPU fans are at 100%, I must have done something wrong with the thermal paste May 17 21:00:42 stop mining all those bitcoins May 17 21:01:16 ah! My VCR fans just kicked in ! May 17 21:01:36 capella FF makes my CPU fan run May 17 21:01:39 XD May 17 21:01:44 hahahahaha May 17 21:02:02 i closed the lid on the laptop and woke up : 0% battery May 17 21:02:12 and, stuff didn't shut down right May 17 21:02:18 well, that's how opensource projects get financing when ads on the newtab page are unavailable May 17 21:02:28 so not only did FF kill my battery with the lid closed, it wouldn't resume session when i started May 17 21:02:30 such a troll May 17 21:03:36 capella thats not such a bad idea; during idle times let mozilla mine bitcoin :) May 17 21:05:09 i bet people would even allow that given the options ... mmmm .... maybe I'll suggest it around :D May 17 21:07:21 back May 17 21:08:16 g00s: no not seen it, but i heard about it.. doesn't really interest me May 17 21:08:47 back later May 17 21:37:06 could somebody tell me please, what happens exactly when the bluetooth device is selected here? https://android.googlesource.com/platform/development/+/25b6aed7b2e01ce7bdc0dfa1a79eaf009ad178fe/samples/BluetoothChat/src/com/example/android/BluetoothChat/DeviceListActivity.java May 17 22:17:03 could somebody tell me please, what happens exactly when the bluetooth device is selected here? https://android.googlesource.com/platform/development/+/25b6aed7b2e01ce7bdc0dfa1a79eaf009ad178fe/samples/BluetoothChat/src/com/example/android/BluetoothChat/DeviceListActivity.java May 17 22:22:37 anybody see this anywhere in the docs? EXTRA_DEVICE_ADDRESS May 17 22:43:13 could somebody tell me please, what happens exactly when the bluetooth device is selected here? https://android.googlesource.com/platform/development/+/25b6aed7b2e01ce7bdc0dfa1a79eaf009ad178fe/samples/BluetoothChat/src/com/example/android/BluetoothChat/DeviceListActivity.java May 17 22:56:54 Why are there so many types of touch and gesture listeners? Is there any significant difference between them for an event like scrolling up? May 17 23:51:04 I notice that when I call startAnimation for a View, if the View is initially not visible (for example, it's parent View might be hidden), then the animation will only begin when the View becomes visible. May 17 23:51:13 Is this documented anywhere? May 18 00:01:22 How do I add the NDK directory as a PATH environment variable? May 18 00:05:27 I need to have Android's NDK as an environment variable, apparently. May 18 00:48:39 what news? May 18 00:49:44 Don't reinvent the wheel. May 18 00:50:58 but if I went back in time and inventescape the wheel before it was suppose to be invented, would it still be reinventing? we need new words for time travel May 18 00:51:27 unreventing I think is a good time travel word May 18 00:52:27 inventiscape = invent May 18 01:11:42 How do I add the NDK directory as a PATH environment variable? May 18 01:11:45 I need to have Android's NDK as an environment variable, apparently. May 18 01:13:22 export NDK_HOME yourPathToTheNDK May 18 01:14:34 for PATH: export PATH=${PATH}:/your/path/to/NDK May 18 01:16:03 Do I do that in Command Prompt? May 18 01:16:52 if you need it "Just now" yes May 18 01:17:05 if you need it more than once add it to your bash profile May 18 01:17:19 ~/.bash_profile probably May 18 01:17:41 I need to run ndk-build.cmd in my Program Folder. And it won't work, because it can't find the NDK. May 18 01:17:51 uh windoze? May 18 01:17:56 anyone that explain time me how to make an sqllite database on pc for android May 18 01:18:29 been reading about metadata and _id field May 18 01:18:50 heNNa-: Yes, it's Windows. May 18 01:19:24 http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/ May 18 01:21:20 my computer-] properties 》 system settings May 18 01:21:32 environment variables May 18 01:22:53 aw, windows... bless. May 18 01:27:04 I want to make just another bible app May 18 01:27:11 jaba May 18 01:27:25 heNNa-: Even though I've done that, it's still fails. May 18 02:56:36 @all is there a way to grab a snapshot of an RTSP stream? **** ENDING LOGGING AT Sun May 18 02:59:59 2014