**** BEGIN LOGGING AT Fri Oct 18 02:59:58 2013 Oct 18 03:00:13 Until the thread is done and ready to be gc'd Oct 18 03:00:32 right Oct 18 03:00:36 coolness Oct 18 03:01:03 ive gotta hit the john :D brb Oct 18 03:15:19 any of you going to see The Fifth Estate tomorrow? Oct 18 03:15:25 Carrie comes out tomorrow as well Oct 18 03:19:42 carrie looks good Oct 18 03:20:02 45% rottentomatoes Oct 18 03:20:02 boo Oct 18 03:21:25 just did a new repo sync of the new android source code Oct 18 03:21:35 took me about 4 -5 days to FINALLY finish it. Oct 18 03:21:47 total filesize? about 22GB ! Oct 18 03:22:05 Good Lord! One of the earlier versions was only about 14GB. Oct 18 03:22:07 I should do a sync, just to see how fast I can grab it Oct 18 03:22:17 yeah the new carrie is definitely going to suck Oct 18 03:22:24 How big would the next one be? 50 ? This is getting a tad bit ridiculous... Oct 18 03:23:32 chronodekar, don't compare total file size, just the size of .repo Oct 18 03:23:43 because total file size isn't what's downloaded Oct 18 03:24:03 pfn: will check that, give me a moment... Oct 18 03:24:36 my .repo is about 15G. Oct 18 03:24:49 Still; this is expanding at a ridiculous rate. Oct 18 03:39:12 Hi! Any idea why an expandedlistview has the right size when all groups are unexpanded... Then I click to expand a group, and it expands, but the expanded list view has still the same size (so now it doesn't fit) Oct 18 03:39:23 BTW: Can you put an expanded list view in a scroll view? Oct 18 03:39:24 shmooz, genymotion works well Oct 18 03:39:41 for android video playback, when configured with eclipse Oct 18 03:39:52 BTW: I think not, now that I think about it xD Oct 18 03:42:26 hey romainguy you there? Oct 18 03:43:45 BTW: Any idea of how to test an activity or a view with a java test? Oct 18 03:43:52 run from JUnit? Oct 18 03:44:17 http://robolectric.org/ Oct 18 03:46:04 alex have you tried that? Oct 18 03:46:34 alex_PP: yes, but I want to test that the proper view is being rendered... how do I test that without going the robotium way? Oct 18 03:49:28 so how did github manage to upload an apk to play and then devices said it was signed with the wrong key? Oct 18 03:49:50 wabz i was wondering the same thing... saw that the other day Oct 18 03:51:25 it got a lot of 1 star reviews that day :p Oct 18 03:51:35 ;lol Oct 18 03:51:39 but yeah, dunno how that's remotely possible Oct 18 03:51:40 i was going to install Github right now Oct 18 03:51:50 they've fixed it now Oct 18 03:52:15 hm good point, I wonder what happened for the users who happened to install it while it was incorrectly signed (if htat's really what it was) Oct 18 03:55:28 i honestly don't use the app at all... i should just uninstall Oct 18 04:08:52 wabz: doesn't start or crash probably Oct 18 04:11:08 play lets you change signatures if you sign with 2 certs, I think Oct 18 04:14:51 what do you mean change? Oct 18 04:15:13 we have an app that gets signed with two certs, play even checks that the order is correct Oct 18 04:32:29 do you keep the stuff in gen/ in version control? Oct 18 04:34:31 no Oct 18 04:34:34 ok Oct 18 04:54:05 never Oct 18 04:54:24 wabz, if you sign it with 2 certs, you can eventually remove one Oct 18 04:59:28 I did not know that! Oct 18 04:59:33 we'd love to remove one of them heh Oct 18 05:02:08 Hello there ! Oct 18 05:02:28 Does anyone have a workaround for not being able to use adb on Windows 8.1 ? Oct 18 05:05:31 wabz, I don't recall the procedure, but I remember reading about it Oct 18 05:06:08 rahulrav: best workaround is probably not to use 8.1 Oct 18 05:06:34 I was afraid someone was going to say that. :) Oct 18 05:06:46 Thanks for the reply @Leeds Oct 18 05:07:05 or, y'know, don't use windows at all Oct 18 05:07:18 ever Oct 18 05:12:34 rahulrav: Why can't you use adb on win 8.1 Oct 18 05:12:35 ? Oct 18 05:17:14 rahulrav: perhaps you should run it in adminstrative mode? Oct 18 05:21:43 gavilan2: I see the device being detected, however adb devices does not list it. No idea why. Oct 18 05:22:14 rahulrav do you have the genuine driver installed ? Oct 18 05:22:20 not something generic that works for 342 devices Oct 18 05:22:46 tonyMontana9099: Yes, I have the original Google Driver. The device that I am talking about is a Nexus 4 Oct 18 05:22:59 oh, should work then Oct 18 05:23:12 are you using eclipse ? Oct 18 05:23:19 Intellij Oct 18 05:23:34 I am running adb devices from the command line, no dice Oct 18 05:23:40 not sure if I trust the download here but this guy claims to have it working: http://forums.team-nocturnal.com/index.php/topic/1362-how-to-adb-in-windows-81/ Oct 18 05:24:29 I read the article too. Don't know if I should trust an un-signed driver yet.. Oct 18 05:24:45 i dont want to sound anything, but, why on earth you would use intelli j ? Oct 18 05:25:01 I meant Android Studio Oct 18 05:25:10 Its based on Intellij Oct 18 05:25:43 ah okay Oct 18 05:26:15 should work fine, specially if its a nexus Oct 18 05:26:17 why wouldn't you use IntelliJ? Oct 18 05:26:41 I have no idea why its not working. Oct 18 05:26:48 Hi jake Oct 18 05:27:23 he can. (just tought he was using it as just a java tool and doing the android stuff via command line) Oct 18 05:27:53 I like Intellij otherwise. I just think its a superior IDE. IMHO i.e. Oct 18 05:28:20 Thats besides the point though, as I am running all the adb commands from the windows command line Oct 18 05:28:58 using anything that has the digit 0 before any number in its version doesnt appeal to me.. Oct 18 05:29:03 AS is now at 0.2 i guess. Oct 18 05:29:16 version numbers are arbitrary Oct 18 05:29:25 multiply by 10 or 100 or 1000 Oct 18 05:31:31 well you know what I mean... its a newly released thing.. Oct 18 05:32:03 i'll make a swich when its around version 1 or so Oct 18 05:32:31 and its kinda non sense after (somehow) mastering eclipse.... move to another IDE.. Oct 18 05:32:42 Im not saying the move will never happen.. just not now Oct 18 05:35:30 well, since we are having this convo.. im dling the 0.2 just to mingle tru it Oct 18 05:35:53 You can carry over your Eclipse skills, as you can use the same Keymap. Oct 18 05:36:03 So, that should not be too bad. Oct 18 05:36:18 oh yeah Oct 18 05:37:29 damn the dl is so slow.. Oct 18 05:41:32 Anyone here have any idea about using animation-lists for custom progress bars? Oct 18 05:42:28 Anthaas you still here hehehee Oct 18 05:42:38 Yeah haha Oct 18 05:42:44 I decided to use crouton for the alerts Oct 18 05:42:50 what, you dont sleep ? Oct 18 05:42:52 Did you see the app pic I put on here earlier? Oct 18 05:43:03 nop Oct 18 05:43:07 Easy to get carried away, but I fell asleep earlier Oct 18 05:43:12 can you reput? Oct 18 05:43:24 Sure Oct 18 05:43:28 You will see what my problem was. Oct 18 05:43:52 moderndayproblems... in the old days,, it was 'finding water' Oct 18 05:44:14 http://s23.postimg.org/qvdg51jnv/device_2013_10_17_195826.png Oct 18 05:44:18 Thats how it would have looked. Oct 18 05:45:08 what was ur problem ? Oct 18 05:45:19 Didnt like the red and black on the alert Oct 18 05:45:34 Its too aggressive and stands out awkwardly. Oct 18 05:45:53 holy crap Anthaas that looks fine Oct 18 05:45:56 Romain explained that it can't be changed or customised beyond what changes when you change the theme, so I am using Crouton. Oct 18 05:46:06 i can't believe you spent an entire day yesterday trying to change that Oct 18 05:46:06 Anthaas that is looking nice man Oct 18 05:46:09 I dont like it seand :/ Its too aggressive hahaha Oct 18 05:46:14 why dont you like it Oct 18 05:46:16 Im a perfectionist at times :/ Oct 18 05:46:21 seand 100%, i like it too Oct 18 05:46:27 btw, what is that called ? Oct 18 05:46:28 what is hivemind? Oct 18 05:46:35 i mean, the error message Oct 18 05:46:35 Its my final year project Oct 18 05:46:36 that intro page is pretty sweet Oct 18 05:46:43 it is indeed Oct 18 05:46:43 Its going to become a surveying platform. Oct 18 05:46:50 nicee ! Oct 18 05:46:51 surveying? Oct 18 05:46:57 Yeah, questionnaires and stuff Oct 18 05:47:02 and better version of SurveyMonkey basically Oct 18 05:47:03 oh, cool Oct 18 05:47:16 beat those monkeys Oct 18 05:47:18 Im so bad at graphic design though :/ Oct 18 05:47:18 more pics, more pics ! Oct 18 05:47:19 haha Oct 18 05:47:32 that icon is pretty sweet Oct 18 05:47:35 Anthaas if you need any help, lets us know.. Oct 18 05:47:37 Thats as far as I have gotten at the moment, shouldnt have even done that really - Im doing the project management stuff that goes with it. Oct 18 05:47:40 Will do :D Oct 18 05:47:46 Ill upload how I have implemented the alert now. Oct 18 05:47:47 lol wut Oct 18 05:48:06 why did you spend so much time on the error thing, you could have implemented another activity by now Oct 18 05:48:13 Anthaas if you wasted a whole day because of a red line... .how much you will base on the core of the project Oct 18 05:48:13 and we would have another pic Oct 18 05:48:19 hahahah Oct 18 05:48:21 haha i know Oct 18 05:48:31 although i'm not one to talk Oct 18 05:48:35 i'm the exact same way Oct 18 05:48:41 i demand perfection of myself Oct 18 05:48:52 Not much, like I said earlier, I am way ahead of schedule with the project management stuff etc, so this was just messing about with it in my spare time. Oct 18 05:48:53 come on guys, even the instagram gets bugs... Oct 18 05:49:00 ah ok Oct 18 05:49:07 who uses instagram Oct 18 05:49:07 Anthaas i have some technical questions may I ? Oct 18 05:49:14 Sure Oct 18 05:49:25 seand i do actually :D Oct 18 05:49:32 ugh Oct 18 05:49:46 Anthaas so whenever the user presses login and there is no username, this error message shows up ? Oct 18 05:49:55 Not just username Oct 18 05:50:00 password too Oct 18 05:50:04 okay Oct 18 05:50:11 But also when the entered email address is invalid according to a regex Oct 18 05:50:18 or when the server determines that the user does not exist Oct 18 05:50:21 right now I am implementing TOAST for these stuff Oct 18 05:50:25 NOOOO Oct 18 05:50:28 would like to upgrade to these Oct 18 05:50:31 Toast should be used for instant feedback! Oct 18 05:50:47 is EditText.setError("my error") works for your app use that, it looks great Oct 18 05:50:54 It just doesn't look great for my app. Oct 18 05:51:10 using instagram for pics instead of facebook is like putting an outhouse in your back yard. I don't get it Oct 18 05:51:10 so when I implement setError, it looks like this ? Oct 18 05:51:15 worth noting that setError belongs to TextView Oct 18 05:51:16 Yes! Oct 18 05:51:21 It looks like the image I just posted Oct 18 05:51:23 oh, so easy. Oct 18 05:51:27 Exactly! :-) Oct 18 05:51:51 I would definitely upgrade my code for this Oct 18 05:52:03 EditText has just too many methods !! Oct 18 05:52:31 Hahaha Oct 18 05:52:33 http://s13.postimg.org/wjsr6tg2v/device_2013_10_18_064934.png Oct 18 05:52:38 That is what my error looks like now. Oct 18 05:52:51 not a fan to be honest Oct 18 05:52:59 It doesnt stay there Oct 18 05:53:00 red is very standard in software to indicate error Oct 18 05:53:07 well the first one was better Oct 18 05:53:12 in my opinion that is.. Oct 18 05:53:15 It fades in and out like a toast Oct 18 05:53:17 red = errorrish Oct 18 05:53:19 It is Oct 18 05:53:27 But Red-Black is VERY harsh on White-Blue Oct 18 05:53:34 It doesn't go with the colour palette of the application Oct 18 05:53:46 What's good? Oct 18 05:53:48 well, if someone forget to put a username, some harsh stuff should happen :P Oct 18 05:53:57 you make it sound like it's commonplace Oct 18 05:54:03 Fenny in da house ! Oct 18 05:54:03 it will be rarely encountered Oct 18 05:54:04 People are idiots. Oct 18 05:54:15 as Dr. House, yes they are. Oct 18 05:54:52 I agree that whilst red is standard for most places for "Shit, something's gone wrong", in this case the error isn't HUGE, and can be rectified by the user, as well as the fact that blue goes with the application better. Oct 18 05:54:57 Hi Oct 18 05:55:10 hi iamhere2 Oct 18 05:55:14 I am in the house. :D Oct 18 05:55:20 Anthaas you are right.. Oct 18 05:55:23 any android programmer here? Oct 18 05:55:23 Anthaas what about a dark yellow? Oct 18 05:55:27 or orange color? Oct 18 05:55:35 For the bar at the top? Oct 18 05:55:41 and the icon Oct 18 05:55:51 Anthaas how do you make the upper error fade away like toast ? using animation in xml ? Oct 18 05:55:52 There might be a couple android programmers. Oct 18 05:56:00 complements the blue Oct 18 05:56:03 Hmm Oct 18 05:56:16 i think that's the right word. don't know much about color Oct 18 05:56:21 iamhere2: Chances are in the android-dev room you could find a few... Oct 18 05:56:23 who? Oct 18 05:56:35 seand: I know what you mean, I could implement red even, because it is less persistant Oct 18 05:56:39 I dont know the nicks Oct 18 05:56:45 the red for the icon I think I should have done anyway now Oct 18 05:56:54 My battery meter is in blue, and when it is low it turn orange Oct 18 05:57:01 I mgiht go for a red icon, but a blue toast. Oct 18 05:57:02 iamhere2 , well, we are butchers in real life, but hang out here. Oct 18 05:57:04 iamhere2 do you mean a developer who works at google on android? Oct 18 05:57:26 I also star in movies, like my nickname. Oct 18 05:57:31 no Oct 18 05:57:32 tonyMontana9099: You could do easily Oct 18 05:57:42 a android app programmer Oct 18 05:57:49 Wow, you guys are really intense into the color schemes. I wish I had more of an eye for UI. You leave it to me and you end up with "The Dialog" lol. Oct 18 05:57:50 iamhere2: Most people in this room are "Android App Programmers" Oct 18 05:57:56 Anthaas personally i would not make them different colors because you want to convey they're for the same message Oct 18 05:58:13 Fenny join my club hehehe, me too. Oct 18 05:58:20 thats why I pay a lot for designers.. Oct 18 05:58:21 Anthaas: even though that should be obvious because they appear at the same time, it still drives the point home Oct 18 05:58:22 Fenny: I used to be like that, but I am doing a big project and as such want to take everything into consideration. Loving the term "The dialog" though hahaha Oct 18 05:58:28 seand: Thats a very good point. Oct 18 05:58:36 half of the project fees go to design. Oct 18 05:58:38 I guess like I said, the lack of persistance on the red works Oct 18 05:58:50 tonyMontana9099: Depends what you consider "design" to encompass. Oct 18 05:59:16 implementation seems easy compared to designing how stuff should look Oct 18 05:59:16 well, everything, from the feel, into photoshoping the bits and pieces.. Oct 18 05:59:36 zmuser3: Agreed. Im awful as UI design. Oct 18 05:59:41 Also Oct 18 05:59:44 I dont use Photoshop Oct 18 05:59:46 That is my trick Oct 18 05:59:58 More complicated that it needs to be if you do that. Oct 18 06:00:01 good design is a combination of aesthetics and functionality... and probably some other points i'm forgetting Oct 18 06:00:09 Anthaas, when you set ET.setError("String");, when the user reclicks on the edittext and the edit text has the focus again, is the error message discarded automatically ? Oct 18 06:00:15 bes design tool = microsoft paint Oct 18 06:00:19 I have just been using built in widgets with default themes and my app looks like crap Oct 18 06:00:41 Paint.net is my favorite. Oct 18 06:00:57 what is the best software to use for making an android app? Oct 18 06:00:58 tonyMontana9099: You can get the message from the ET again. When EditText gets soft input the popupwindow disappears but the compound drawable stays there Oct 18 06:01:12 iamhere2: Whatever you are most comfortable with. Oct 18 06:01:18 so i need to take care of it manually ? Oct 18 06:01:19 I used Fireworks Oct 18 06:01:32 Anthaas they closed the fireworks project !!! :( :( Oct 18 06:01:47 actually i never used photoshop, for miner stuff i used to use fireworks.... and i loved it Oct 18 06:01:50 iamhere2: most people go with Eclipse, Android Studio, or IntelliJ Oct 18 06:01:51 tonyMontana9099: Basically you will have a function, for example : validate() Oct 18 06:01:56 prolly the only adobe thing i liked. Oct 18 06:02:06 Within validate, the very first thing you will do is setError(null) on all views that will be validated Oct 18 06:02:15 ok Oct 18 06:02:33 I want to make an app that is like a book library Oct 18 06:02:33 iamhere2 depends on what you want to use. Do you want to use an IDE, or are you comfortable with basic text editors and the command line? Oct 18 06:02:38 iamhere2: I use Eclipse - nice and quick, but I do plan on getting into AS at some point soon. AS and IntelliJ are very similar. Oct 18 06:02:39 where you can choose the books Oct 18 06:02:47 from a list Oct 18 06:02:52 iamhere2: start here: http://developer.android.com/training/basics/firstapp/index.html Oct 18 06:02:52 and read them Oct 18 06:03:00 why do they even bother putting these half assed widgets in there? CalendarView for example, useless. Oct 18 06:03:03 What seand said. Oct 18 06:03:12 zmuser3: Agreed Oct 18 06:03:15 I hate CalendarView Oct 18 06:03:29 Seems so pointless and unfinished. Oct 18 06:03:34 yep Oct 18 06:03:42 I would kill for a standardized file/directory picker. Oct 18 06:03:44 i feel like we need something like this in android http://semantic-ui.com/ Oct 18 06:03:53 This roll your own thing needs to go. Oct 18 06:04:02 well, they really should fix the xml gui thingy too Oct 18 06:04:03 ive been in love with that design concept ever since i firs tlaid eyes on it Oct 18 06:04:06 so crappy Oct 18 06:04:22 Love the fact XML is used for the layout Oct 18 06:04:37 I have no issues with it really Oct 18 06:04:46 do popular apps even use it? Oct 18 06:04:54 Admittedly there are times where I want to blow my head out because you cant show custom views without wrapping it all in an if statement Oct 18 06:05:38 well, once you make a layout, its really hard to reshuffle the places.. Oct 18 06:05:47 if you move something, everything takes the place of the other etc... Oct 18 06:05:50 I don't really find that :/ Oct 18 06:05:59 Depends how you do your UI I guess. Oct 18 06:06:19 given there are 345245 android devices... i almost always go with relative layou Oct 18 06:06:43 Not a great thing to do Oct 18 06:06:55 whats the best approach ? Oct 18 06:07:05 cant I make it without the android sdk? Oct 18 06:07:39 At Google I/O Romain (I think it was him, could be wrong) was talking about how, especially with ListView, using Relative slows down the UI processing. Relative updates all sibling views before traversing through the UI tree and updating views it meets. Things like Linear only traverse Oct 18 06:08:03 I know.. Oct 18 06:08:04 Use different linear layout orientations and weighting etc. Oct 18 06:08:16 listview is an exceptional case.. Oct 18 06:08:16 You realy need the SDK, that is unless you could make a web app, and access it through the browser, iamhere2. Oct 18 06:08:26 FrameLayouts for views with one child view. Such as Views holding a fragment. Oct 18 06:08:43 true Oct 18 06:09:02 iamhere2: why would you not want to use the android sdk? Oct 18 06:09:35 When I get back from Uni, I need to look into A) finishing up some documentation, then B) Getting this custom progress bar to work! Oct 18 06:09:48 It fails when trying to find the drawables within my animation-list XML file Oct 18 06:09:59 iamhere2 not using the android sdk to make an android app is like not using chicken to make a chicken salad Oct 18 06:10:11 Anthaas good to know you have a to do list and targetting it. Oct 18 06:10:26 custom progress bar should be easy to implement tho.. Oct 18 06:10:27 I have to haha Oct 18 06:10:34 Should be - something is going wrong though Oct 18 06:10:42 I read about it once... Oct 18 06:10:48 how many drawables you have ? Oct 18 06:10:51 4 Oct 18 06:10:57 The logo as it is now Oct 18 06:11:04 Anthaas: linearlayouts with weights are great Oct 18 06:11:04 Then the hexagons swap places Oct 18 06:11:10 untill you start nesting them Oct 18 06:11:18 Yeah Oct 18 06:11:25 But if you do that, then you need to reconsider your UI haha Oct 18 06:11:29 (and you often feel like you want to do that) Oct 18 06:11:40 lite_ yes you do hehehe Oct 18 06:11:52 could anyone here guess why my broadcast receiver onReceive function is being triggered multiple times? it is being triggered by an alarm manager Oct 18 06:12:22 is the alarm manager, triggering another alarm manager ? Oct 18 06:12:32 and what method you are calling ? Oct 18 06:13:48 the alarm manager is not triggering another one, when the alarm goes off once, the onRecieve function gets called multiple times Oct 18 06:14:19 tonyMontana9099: what do you mean by which method i'm calling? in the alarm manager? Oct 18 06:15:03 yes Oct 18 06:15:15 The last time I was getting mulitple calls to a function like that it was because each element on the screen was triggering it. Oct 18 06:15:17 Do I need to know programming? Oct 18 06:15:27 iamhere2 yes. Oct 18 06:15:32 ofcourse Oct 18 06:15:47 just like you need to know to play football to play it. Oct 18 06:16:01 alarmManager.set(AlarmManager.RTC_WAKEUP, timeCal.getTimeInMillis(), pendingIntent); Oct 18 06:16:02 what language? Oct 18 06:16:13 for android, you need to know java Oct 18 06:16:18 tonyMontana9099: I am calling alarmManager.setRepeating Oct 18 06:16:29 but it is set to go off once a day Oct 18 06:16:37 just? Oct 18 06:16:38 okay, it works too. Oct 18 06:16:45 yes. Oct 18 06:16:50 java isn't even the hard part. gui is the hard part, and that isn't even a language Oct 18 06:16:52 ok Oct 18 06:17:02 iamhere2 are you asking these questions on purpose or you really dont know ? Oct 18 06:17:12 can you give me a good guide on java for android? Oct 18 06:17:21 iamhere2: the internet can Oct 18 06:17:27 * Fenny suggests that the l in xml stands for language. Oct 18 06:17:27 navetz can you paste the setrepeatingcode ? Oct 18 06:17:34 i think the pendingIntent is being registered multiple times and going off all at once when the alarm manager triggers it Oct 18 06:17:37 hmm Oct 18 06:17:41 but what about the xml? Oct 18 06:17:48 navetz that is possible Oct 18 06:17:52 what about it ? Oct 18 06:17:56 GUI is not a language, but xml is Oct 18 06:18:01 heh Oct 18 06:18:08 iamhere2: http://developer.android.com/training/index.html Oct 18 06:18:10 read this Oct 18 06:18:14 then java and xml? or just java Oct 18 06:18:22 get back to us once youve completed each step or at the very least get stuck on one of them Oct 18 06:18:33 xml is easy, not much to learn unless you want to parse it Oct 18 06:18:36 * Anthaas laughed Oct 18 06:18:39 tonyMontana9099: sorry the code is very messy right now from debugging: http://pastebin.com/JJHkHbL4 Oct 18 06:19:02 lemme see Oct 18 06:19:18 *very messy* :D Oct 18 06:19:20 iamhere2: You should DEFINITELY follow the links that lite sent - and also if you get stuck, you aren't stuck until at least the first page of Google links are purple. Oct 18 06:19:24 how long does it take to learn java? Oct 18 06:19:35 tonyMontana9099: line 143 is where the alarm manager gets set Oct 18 06:19:45 iamhere2: Everybody is always learning. Youll never "know Java" Oct 18 06:19:46 given the type of questions your asking. not much. im sure you can do it in around 3 minutes. Oct 18 06:19:55 Anthaas well said. Oct 18 06:19:56 Just become more and more proficient. Oct 18 06:21:02 navetz sorry I could not 100% focus/trace on the code, as I am doing 45435 other things.. Oct 18 06:21:02 Really, you should know the programming fundamentals, and the different concepts, then applying that to a language is easier. Oct 18 06:21:16 but why do you have the pending intent formation inside a for ? Oct 18 06:21:17 Being able to program, and being able to write code in a language are two different things. Oct 18 06:22:16 Anthaas 100% Oct 18 06:22:24 you can be a software engineer, and plan the code, Oct 18 06:22:30 tonyMontana9099: it sets up to 5 alarms that go off between 10am and 10pm. The pending intent in the for is to set the requestCode to whichever alarm the pending intent is registering to Oct 18 06:22:45 Which is what my degree is in... Oct 18 06:22:49 Well Oct 18 06:22:51 I graduate twice Oct 18 06:22:56 java programmers love to put every line of code in its own file or method or class for some reason Oct 18 06:23:12 someother specific programmer die hard for an x language can do that in that language Oct 18 06:23:16 I'll have a BSc(hons) in Software Development, and a MEng in Software Engineering. Oct 18 06:23:31 tonyMontana9099: is there a way to see if your pendingIntent is being called twice? Oct 18 06:23:58 I would instrument your code around the call to pendingintent. Oct 18 06:24:05 see if there are multiple calls. Oct 18 06:24:08 zmuser3: Following OO design principles, fully utilising encapsulation from program design through implementation can make maintenance a LOT easier. Oct 18 06:24:18 navetz is it possible you're registering the receiver multiple times? Oct 18 06:24:26 ^^ Oct 18 06:24:35 Fenny what does "would instrument" mean in this situation ? Oct 18 06:24:45 log a log. :D Oct 18 06:25:03 navetz i would suggest a way. Oct 18 06:25:21 I am pretty sure, you just wrote the whole junk of code, and tested it the big chunk all in one. Oct 18 06:25:21 seand: ./adb shell dumpsys alarm > dump.txt shows only 5 alarms are being set. Which is exactly what I expect Oct 18 06:25:26 I imagine he means write outputs, etc. to see what is going on, and then refactor as necessary. Oct 18 06:25:27 well I am not trying to troll or argue but with the strong typing and strict compiler and everyone following those rules how come eclipse and pretty much everything is so buggy? Oct 18 06:26:04 zmuser3: Shit code / people not following them properly. Oct 18 06:26:31 well, eclipse can be buggy sometimes,, but its a huge IDE Oct 18 06:26:36 and makes life a lot a lot easier Oct 18 06:26:37 Yeah Oct 18 06:26:45 And Eclipse was originally created for C/C++ Oct 18 06:26:47 Not Java. Oct 18 06:27:02 Anthaas didnt know that Oct 18 06:27:05 tonyMontana9099: I have been modifying that code all day. I thought it was working until I noticed my onReceive method going off multiple times. Oct 18 06:27:21 it was an IDE for C/C++ made in java? Oct 18 06:27:35 well, you can do a cheap workaround.. Oct 18 06:27:50 create a variable...and use it as a flag.. Oct 18 06:27:55 seand: It was an IDE made for C/C++ - don't know what it was written in, but Java would seem unlikely? Oct 18 06:28:05 no way it was written in java Oct 18 06:28:13 pretty sure it's written in java Oct 18 06:28:17 it runs off the jre Oct 18 06:28:21 actually its a framework Oct 18 06:28:26 other things are built on it Oct 18 06:28:40 we're talking about the IDE Oct 18 06:28:42 like aptana (web developing) and wireframeSketcher Oct 18 06:30:08 If my xml UI-fu was better I would do all of my development using notepad++, and ANT. But that's just me. Oct 18 06:30:31 I like IDEs Oct 18 06:30:31 tonyMontana9099: looks like there is a flag to cancel the current pending intent if it exists, i'll try that Oct 18 06:30:49 Its fine saying they are buggy etc, but they make everything so much easier - and why wouldn't anybody want that? Oct 18 06:30:56 Anthaas exactly... Oct 18 06:31:16 no I am just saying... all that strictness and still problems Oct 18 06:31:22 Hmm, is the intent not getting handled? I can't remember if that intent is for a result or not. Oct 18 06:31:25 zmuser3 what problems are you referring to Oct 18 06:31:30 they make money using that thing, and claim its bugge when there is a small bug,,, where actually the software they write using it which is 1/10000 of its size, has more bugs. Oct 18 06:31:33 navetz yes there is. Oct 18 06:31:36 Anywho people, I have a lecture to get back to Oct 18 06:31:39 Will leave this thing on though Oct 18 06:31:57 Im sure Ill bug you all later with this progress bar thing hahaha Oct 18 06:32:09 See ya Oct 18 06:32:19 well I have only been using eclipse for a couple weeks and already the tabs act funny and copy/paste goes to the wrong tab and the egit import screwed up my package etc etc Oct 18 06:32:34 zmuser3 heheheh take it easy ;P Oct 18 06:32:39 Anthaas ok matey, enjoy,, Oct 18 06:32:41 I have NEVER had any issues with that. Oct 18 06:32:45 ima work a bit too... laterz.. Oct 18 06:32:46 zmuser3 some problems could be coming from eclipse plugins, not eclipse itself Oct 18 06:32:49 (Caught this before leaving hahaha) Oct 18 06:32:53 for example, git Oct 18 06:33:00 What os you on zmuser? Oct 18 06:33:01 Anthaas zmuser3 me too actually,, been using it without issues Oct 18 06:33:07 windows, sorry to say Oct 18 06:33:19 come on guys... dont be like this Oct 18 06:33:23 windows is gr8 too Oct 18 06:33:29 Windows 8 isn't. Oct 18 06:33:35 im on 7. Oct 18 06:33:35 win7 Oct 18 06:33:36 AHH Oct 18 06:33:39 never tried 8 Oct 18 06:33:42 was going to try tho Oct 18 06:33:43 I will say though Oct 18 06:33:50 they say its super fast Oct 18 06:33:52 As soon as better software is available for Linux Oct 18 06:33:53 Im gone. Oct 18 06:34:03 Mint came close for me... Oct 18 06:34:14 I do perl and shell for a living all on unix. but I don't use unix gui so I am trying to get used to this dev environment Oct 18 06:34:14 But it didn't quite hit that mark. Oct 18 06:34:40 zmuser3 so u are a die hard unix pro Oct 18 06:34:50 heh yeah I guess Oct 18 06:35:00 <_the_surfer_> anyone with experience developing android app with sencha touch framework? Oct 18 06:35:22 now i know a unix go to guy when im stuck :P Oct 18 06:35:34 What flavor, zmuser? Oct 18 06:35:44 redhat, solaris, hpux and aix Oct 18 06:35:58 zmuser3 my servers are centos Oct 18 06:36:08 so redhat basically Oct 18 06:36:17 We just replaced one of our AIX clusters with a linux based setup. Oct 18 06:36:21 oh, centos is based on redhad ? Oct 18 06:36:28 yep Oct 18 06:36:41 I can't tell you how happy I was to see cups. Oct 18 06:36:59 I can't imagine trying to print from aix, never dealt with that Oct 18 06:37:00 oh, didnt know that Oct 18 06:37:48 I like the debian flavors, personally. Oct 18 06:38:06 No love for Ubuntu? Oct 18 06:38:08 I hate all the distros, I use LFS at home. (linux from scratch) Oct 18 06:38:18 roll my own Oct 18 06:38:34 Package manager? Oct 18 06:38:42 wrote my own, pretty simple one Oct 18 06:38:49 Right Oct 18 06:38:51 Actually going now Oct 18 06:38:53 See ya Oct 18 06:38:55 late Oct 18 06:39:38 That is more work than I would go through I think. Oct 18 06:39:39 Anthaas what are u still doing herhehre Oct 18 06:39:48 zmuser3 you wrote ur own ?? Oct 18 06:40:10 it is really basic but yeah Oct 18 06:40:28 Is it mostly a build script? Or do you kand dependency trees from somewhere? Oct 18 06:40:33 *kang Oct 18 06:40:41 there is a BLFS (beyond LFS) project, it relies on that Oct 18 06:40:46 they have the deps Oct 18 06:40:47 nicee Oct 18 06:40:51 can we dl it ? Oct 18 06:41:00 tonyMontana9099: i think perhaps i have multiple instances of my alarm manager, all of which are registering new pendingintents causing them all to go off at the same itme Oct 18 06:41:02 heh umm it isn't really user friendly Oct 18 06:41:02 time Oct 18 06:41:28 ahh, cool. Oct 18 06:41:28 navetz a very possible Oct 18 06:41:34 trace it Oct 18 06:41:36 I hadn't seen that before. Oct 18 06:42:01 tonyMontana9099: i'm trying to but not sure how. I think i'm close Oct 18 06:42:32 navetz comment most things you dont need and start by removing comments after each test Oct 18 06:42:46 so they have the build instructions for each package along with deps, my thing just crawls their site making a dependency tree and using their build instructions Oct 18 06:43:37 luckily they do it in xhtml so parsing is simple Oct 18 06:43:39 Sounds like some curl and grep voodoo. Oct 18 06:44:05 yeah some is, but for parsing the xml I use XML::Twig in perl Oct 18 06:45:06 That makes too much sense. I'll admit, I am straying from the path of perl. The ruby has me. Oct 18 06:45:52 the lack of autovivication in ruby really bugs me Oct 18 06:46:20 I use hashes a lot, hashes of hashes Oct 18 06:48:03 Yeah, I can understand that then. Having to worry about instantiation in a scripting language is a bit of a pain. Oct 18 06:49:46 I do like that everything is a reference in ruby though. Oct 18 06:50:46 Not quite true, actually Oct 18 06:50:56 No? Oct 18 06:50:59 A few of the value types aren't. Oct 18 06:51:10 E.g., fixnums and some floats Oct 18 06:51:26 Good to know. :D Oct 18 06:51:59 Nilium: I like you, you taught me something new today. Oct 18 06:52:05 Also, fixnums automagically turn into bignums if you exceed the min/max values of a fixnum Oct 18 06:52:41 Floats, on the other hand, are sometimes heap-allocated, but I forget the rule for that Oct 18 06:53:12 Anyone like the Apache libraries that are included in android at all? Oct 18 06:53:15 Either way, they're both immutable (as is bignum), so it's not worth worrying about the ref/non-ref distinction Oct 18 06:53:38 It's still good not to have any illusions. Oct 18 06:54:22 You can probably figure out more about it by reading over Ruby's ruby.h and intern.h Oct 18 06:55:04 Both of which are almost completely undocumented because Ruby's C API is allergic to documentation. Oct 18 06:56:02 That is how I feel about the android internal classes. Oct 18 06:56:40 Trying to do anything with the SIP code that is built in is like pulling teeth. Oct 18 06:57:15 The amount of horrible teeth-related things I've seen has spiked ever since I had a filling replaced Oct 18 06:57:23 Fate is cruel. Oct 18 06:57:42 It's like pulling your own teeth, the alcohol you drank earlier to numb the pain a bit starts to wear off, and you realise that this may have been a bad idea. Oct 18 06:57:46 And ouch. Oct 18 06:58:25 Was completely painless to get it replaced, but anything dental-related makes me cringe Oct 18 06:59:19 Well, I say painless to mean physical pain. It still cost a fair chunk of money. Oct 18 06:59:37 I'm thinking I need something stronger for the task. If alcohol is the blissful unawareness of what I was getting into, what do you suppose that would make the programming equivilent of angel dust? Because that is the only way I can see to pull my own teeth. Oct 18 07:00:01 Perhaps I have taken the metaphor too far. Oct 18 07:00:27 What's angel dust? I'm unfortunately out of the loop on drug lingo. Oct 18 07:01:01 PCP. The stuff that people flip cars on. Oct 18 07:01:11 Cocaine comes to mind, but for some reason so does something else that I can't quite recall. Oct 18 07:02:01 That's the one I was trying to remember. Oct 18 07:02:20 I strongly think that the "Bath Salts Zombie" had less to do with the garbage they call bath salts, and more to do with pcp. Oct 18 07:02:44 Well, probably a combination. Oct 18 07:02:51 Though it was pretty funny watching the original broadcast where they tried to blame spice. Oct 18 07:03:05 Yeah, cannabinoids definitely do that. Oct 18 07:03:07 PCP and bath salts both have a history of producing some really fucked up people. Oct 18 07:04:02 Stuff like this: http://www.theweeklyvice.com/2009/05/man-high-on-pcp-eats-sons-eyeballs.html Oct 18 07:04:08 At any rate, to go with the metaphor, probably writing a bootloader in INTERCAL. Oct 18 07:04:25 I remember seeing that one a while back. Oct 18 07:05:00 Something Awful's GBS is my main news source, so I get all the weird stuff. Oct 18 07:05:11 Anyone here know much about the RIL and UICCs? Oct 18 07:05:18 Nice, I've got a customer complaining the three dot compatibility menu is not showing up on his device (HTC One). I've got the same device, same Android version and it appears for me. Oct 18 07:05:34 Tell him he needs to stop taking drugs. Oct 18 07:05:46 Or to send you a photo. Oct 18 07:06:17 Think he rooted and modified his phone software? Oct 18 07:06:18 I'm not sure about his drug use, but he did send me a screenshot, without the three dots Oct 18 07:06:23 is android studio easier or eclipse ? Oct 18 07:06:27 Huh. Oct 18 07:06:41 iamhere2: I'd say go with IntelliJ. Oct 18 07:07:01 for beginners id say eclipse Oct 18 07:07:07 Yeah, you will find moer doca bout eclipse. Oct 18 07:07:11 easier than eclipse and android studio? Oct 18 07:07:14 *more docs Oct 18 07:07:19 If you can't afford IntelliJ, consider then using Android Studio, though bear in mind that it's currently in development/unstable and you will have to work through that. Oct 18 07:07:37 ok Oct 18 07:07:40 Nilium exactly. still at v0.2 Oct 18 07:07:40 thank you Oct 18 07:07:48 JakeWharton would disagree with u tho :P Oct 18 07:07:56 If you have zero experience, start with Eclipse just because it's got docs, as Fenny said. Oct 18 07:08:04 IntelliJ is free Oct 18 07:08:18 IntelliJ is free for certain things. Oct 18 07:08:23 are there any open-source youtube viewers that list video search results Oct 18 07:08:29 where certain == all Oct 18 07:08:32 At any rate, switch to IntelliJ when you're comfortable 'cause Eclipse can eat a dick. Oct 18 07:08:44 :s Oct 18 07:08:51 Wow, I might actually have a day free this weekend Oct 18 07:09:06 Nilium take it east on eclipse. Oct 18 07:09:13 many people get their daily bread out of it. Oct 18 07:09:14 It has it coming. >:| Oct 18 07:09:16 I think I've been overloaded for the past 3 months or so Oct 18 07:09:24 stale, moldy bread Oct 18 07:09:29 Ologn thats nice. Oct 18 07:09:31 come on jake Oct 18 07:09:34 It's a tool, it has no feelings, I can call it out for being horrible as much as I want. Oct 18 07:09:35 +1 vote for IntelliJ Oct 18 07:09:42 Anyone here know grooveshark? Oct 18 07:09:53 I've been using Emacs for Android development Oct 18 07:10:05 The JDE is cool... Oct 18 07:10:20 I use IntelliJ for code editing and sometimes use Sublime. Oct 18 07:10:40 All the building/packaging/etc. is done via a shell. Oct 18 07:11:02 well, i agree eclipse is somehow not hard core.. but it does fine.. Oct 18 07:11:29 Eclipse takes around 1 second to open a context menu on my system. Oct 18 07:11:29 It does _not_ do fine. Oct 18 07:11:34 The one thing Eclipse has is Control/Shift/O or whatever to put the appropriate imports in....Emacs can do something similar, but I have not totally automated it yet Oct 18 07:11:50 IntelliJ will just do that automagically or ask you if it's ambiguous. Oct 18 07:12:29 Well that's one part of the automation I'd have to do, remove a lot of the ambiguity Oct 18 07:13:26 Could probably do something with ctags there. Oct 18 07:13:31 If I leave eclipse running for long enough, when I hold left or right on the keyboard for a second or so, the scrolling lasts 3x that. Oct 18 07:14:14 Eclipse is kind of like a reference implementation of an editor that would be good, but the reference implementation is slow and clunky Oct 18 07:14:55 I think my favorite oddity was when I decided to drag a tool window or whatever off into a new window, then moved the main window, the other window moved with it Oct 18 07:15:01 I have no idea why it did that Oct 18 07:17:08 I was going to start Android programming in 2009, but Android/Eclipse integration sucked so bad back then I didn't touch Android again until spring 2011 Oct 18 07:17:28 I wrote my first Android app using TextMate and a terminal. Oct 18 07:17:51 Nilium impressive Oct 18 07:18:13 Not really. Android generates ant build stuff, there's nothing you really need to do. Oct 18 07:18:31 It's very easy to skip using any IDE. Oct 18 07:19:20 true Oct 18 07:19:30 commons guy does two methods for each run Oct 18 07:19:38 1 with eclipse, 1 with command line Oct 18 07:20:29 Not familiar with his stuff. Oct 18 07:20:46 I know about him from SO, but never really paid any attention to it. Oct 18 07:21:02 i bot his book Oct 18 07:21:13 he's pretty solid in android, and knows how stuff work behind the scenes Oct 18 07:21:59 Good to know. Oct 18 07:22:26 iamhere2: You might want to check out Commons's stuff in that case. Oct 18 07:22:34 iamhere2 nop. Oct 18 07:22:44 his stuff are a bit advanced. Oct 18 07:22:51 Well, no harm in that. Oct 18 07:22:58 Jumping in at the deep end is more fun. Oct 18 07:23:09 Sure, you nearly die in the process, but you might get the hot lifeguard. Oct 18 07:23:25 Nilium the guy doesnt even know the diff between eclipse and intellij, how do you want him to get expert stuff :P Oct 18 07:23:29 nice example hehehehe Oct 18 07:23:41 can you run on an emulator on another box? Oct 18 07:24:58 Should work. You'll just have to adb connect. Oct 18 07:25:44 Was Stand By Me the movie with the lifeguard scene? Now I can't remember. Oct 18 07:26:13 junkyard scene and railroad bridge scene is all I remember Oct 18 07:26:18 pretty sure that was sandlot. :D Oct 18 07:26:23 Sandlot, that was it Oct 18 07:26:28 I always confuse those two movies. Oct 18 07:30:55 i have google adt installed on my system but can't seem to be able to import any projects that uses ndk, what could be possibly the problem? Oct 18 07:31:24 Import into what? What's the error? etc. Oct 18 07:32:03 tonyMontana9099: your advice to strip everything and start from scratch did the trick Oct 18 07:32:15 turns out i was doing everything all wrong lol Oct 18 07:32:25 in terms of registering a broadcast receiver to an alarm Oct 18 07:32:59 ohh, that was a generel tip matey. but im glad you got things sorted out :)) Oct 18 07:34:51 <_the_surfer_> anyone developing android apps in sencha touch framework? Oct 18 07:35:05 _the_surfer_ not m Oct 18 07:35:07 me* Oct 18 07:35:22 What is sencha touch? Oct 18 07:35:33 Oh god, more horrible web app crap Oct 18 07:35:34 What do y'all think of this: I make a thing: https://github.com/FennyFatal/android-grooveapi Oct 18 07:35:37 No. God no. Oct 18 07:35:55 :D Oct 18 07:36:13 Huh, if I had any use for a groovesharp library that'd probably be handy. Oct 18 07:36:47 I like music. Oct 18 07:36:48 Why does it need the support lib? Oct 18 07:37:21 I'm sure there was some reason.... Oct 18 07:37:34 Or a manifest or anything else. Seems like it'd be a candidate for a straight jar file. Oct 18 07:38:10 Fenny who doesnt mate Oct 18 07:38:12 lol Oct 18 07:38:14 how does build.xml get updated if you aren't using an ide? Oct 18 07:38:20 only inhumans Oct 18 07:38:41 zmuser3: When would you need to update it? Oct 18 07:38:52 if you add source files Oct 18 07:38:57 You ever looked at it? Oct 18 07:39:11 nope, just looking into what you said earlier about not using an ide Oct 18 07:39:34 Well, go look at it. Oct 18 07:39:54 For most projects, you will never touch it. Oct 18 07:40:48 android update project? Oct 18 07:41:02 I think he's just confused about what it is Oct 18 07:41:09 Not about how to update an old project Oct 18 07:41:11 I assumed it was like a makefile Oct 18 07:41:43 It sort of is, but it rocks the whole src folder by default iirc. Oct 18 07:42:26 I can't even find it anyway Oct 18 07:42:43 I use sbt now, so I don't touch ant in the first place anyway. Oct 18 07:43:32 Hello Oct 18 07:43:40 Scala folks get to have all the fun. Especially when they hit Dalvik's 16-bit method name limit. Oct 18 07:46:41 I want to paint inside a polygon a gradient with stroke. What i do is: first set a shader to my paint which has a gradient; i set the style to fill and later I draw the path to the canvas using the paint. Fnally i set the style to stroke of my paint and i set the stroke and border and i draw the path to the canvas using the paint Oct 18 07:46:56 However iam not able to have the gradient and the stroke simultaneously Oct 18 07:47:09 what i got is to see only the gradient, or to see the whole shape with the stroke color Oct 18 07:47:14 ok reading about scala. interesting Oct 18 07:47:25 i try changing fill to fill and stroke, and other combinatios Oct 18 07:47:43 Is there any problem to have a stroke on a shape with a shader with gradient inside ? Oct 18 07:48:13 Did you try using two separate paints? Oct 18 07:49:16 wait i try Oct 18 07:49:18 thanks Oct 18 07:51:22 should i set the style just before paintint the paint to the canvas ? Oct 18 07:51:29 painting* Oct 18 08:01:08 time to go for some gym. laterz Oct 18 08:17:34 hello Oct 18 08:17:39 should i try android studio? Oct 18 08:18:11 yes Oct 18 08:18:23 this is the first time someone tells me yes Oct 18 08:18:26 why not? Oct 18 08:18:43 when i asked before one month everyone told me that it is bogus and sucks as hell Oct 18 08:19:30 well, i couldnt get it to work with my project Oct 18 08:19:57 maybe intellij is more stable, but trying doesn't hurt Oct 18 08:19:59 well... i could, but not in time enough to justify switching, when eclipse is working Oct 18 08:21:50 i am planning to use it for a project to start almost from scratch Oct 18 08:22:03 well then yeah, why not Oct 18 08:22:05 Never used eclipse designer as it didnt work Oct 18 08:22:06 8.5% of traffic to Wikipedia last month was from Android Oct 18 08:22:23 49.5% was from Windows Oct 18 08:22:35 i have seen ios ide xcode and was amazing everthing seemed to work Oct 18 08:22:59 yes, xcode is magic, i love i Oct 18 08:23:21 which android had similar.. hope android studio to be Oct 18 08:23:31 whish* Oct 18 08:25:14 i wish android dev was more like iphone dev in lots of ways :D Oct 18 08:25:34 yeah, theres nothing like using drag and drop to set your data bindings.... Oct 18 08:27:43 does anyone know bpm suite from oracle? Oct 18 08:49:41 Hi Oct 18 08:50:14 I have a BroadcastReceiver catching BOOT_COMPLETE Oct 18 08:50:26 and it's starting an Alarm Oct 18 08:50:48 however, the alarm is only fired if after boot I open my app Oct 18 08:51:07 if after boot I don't start my app, the alarm is not fired Oct 18 08:51:16 any idea why? Oct 18 08:51:47 rcosta: is it possible that the alarm is started but not processed because you are missing a WakeLock? Oct 18 08:52:45 I'm setting the alarm this way Oct 18 08:52:45 alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pendingIntent); Oct 18 08:53:00 should I explicitly use Wakelocks or something? Oct 18 08:53:53 IIRC, a broadcastreceiver's onReceive() function is protected by a wakelock, but if you start a thread or some other task, it won't be Oct 18 08:55:36 what can I do to overcome this? Oct 18 08:56:21 rcosta: are you starting some background task? Oct 18 08:57:25 my app needs to alert user that some event is about to occur Oct 18 08:57:54 and my idea is, on boot, schedule an alarm to do that at a certain time in future Oct 18 08:58:07 hang on, step back Oct 18 08:58:28 are you sure that the alarm isn't being fired? there's nothing in your logs? Oct 18 08:59:07 I'm having some trouble checking logs after reboot device Oct 18 08:59:49 hang on, step back... get your logging working Oct 18 09:00:50 anyone in here from china? just want to ask something about payment gateways. T_T Oct 18 09:04:12 Baluse: AS can be in 10 years, or so Oct 18 09:04:33 not a very important question, but is it preferred to do Long.toString(long) or String.valueOf(long)? Oct 18 09:04:38 truly speaking, android dev will never be like ios dev Oct 18 09:05:29 for me, most of frustration is coming not from AS (compared to xcode), but from java Oct 18 09:06:18 indeed, i personally like obj-c more than java; although a lot of it could be this framework that i'm stuck with Oct 18 09:06:18 String.valueOf(long) Oct 18 09:06:31 broody: cool, how come? Oct 18 09:06:41 squ, what's an AS? Oct 18 09:06:47 android studio Oct 18 09:07:07 otiose: I just can not understand why they have chosen java to be the language for android Oct 18 09:07:36 that was a plan for failure :) Oct 18 09:07:56 for a 70% smartphone marketshare failure? Oct 18 09:07:58 long is a primitive type which just avoids confusion, but it's a pesonal preference.. Oct 18 09:08:12 Ge0rG: they should let java die together with symbian Oct 18 09:08:19 because you just want to get the string equiavlent anyways Oct 18 09:08:21 squ: symbian was c++ Oct 18 09:08:23 i wrote tons of java in college, and thought it was OK Oct 18 09:08:25 really? Oct 18 09:08:35 broody: good call, thanks Oct 18 09:08:45 symbian is not c++ Oct 18 09:08:46 squ: don't get me wrong, I am the first one to bash on java for its many shortcomings Oct 18 09:08:51 symbian is symbian c++ Oct 18 09:08:56 Symbian had a JVM... PalmOS had a JVM... Oct 18 09:09:13 Leeds: the point is: where are they now? Oct 18 09:09:17 they're different, PITA Oct 18 09:09:17 Leeds: almost every brick dumbphone out there has a JVM Oct 18 09:09:53 squ: on top of the world! Oct 18 09:10:01 yeah Oct 18 09:10:02 ) Oct 18 09:10:27 Can someone enlighten me what the ellipsizedWidth does in android.text.StaticLayout's constructor? (Ref: http://developer.android.com/reference/android/text/StaticLayout.html) Oct 18 09:10:29 never knew that AS, is that different from the eclipse IDE with android sdk in it? Oct 18 09:10:45 eclipse ide was another failure choice Oct 18 09:10:59 broody: AS is more like IntelliJ, as opposed to eclipse Oct 18 09:11:02 yeah eclipse is stupid Oct 18 09:11:02 Updated the IDE base to the IntelliJ EAP Oct 18 09:11:09 ya just read Oct 18 09:11:10 together with java choice they form nice couple Oct 18 09:11:36 im still working with eclipse , so far so good still have my teeth though lol Oct 18 09:13:24 Leeds: does java have a compiler other than from the corporation? Oct 18 09:13:34 sure, gcj Oct 18 09:13:46 is android using a that free java software? Oct 18 09:13:48 never used IntelliJ, just used netbeans and eclipse, is it really that good ? and this IntelliJ is commercial right? Oct 18 09:14:07 broody: It is that good. In love with IntelliJ. :D Oct 18 09:14:26 been using java for 12 years, never ever used it. ;( Oct 18 09:14:31 lol Oct 18 09:14:43 no, Android uses the SUN^WOracle JDK Oct 18 09:14:55 how could android be called free then Oct 18 09:14:58 broody: There is a Community edition, which I think is open source Oct 18 09:15:10 ah, a freetard... Oct 18 09:15:12 and be different in that sense to ios Oct 18 09:15:34 well, apart from the whole "you can download and use the source" thing... right, not free... I'm done Oct 18 09:15:36 squ: Java is almost fully open source. Oct 18 09:16:03 squ: and Android certainly is, too. Oct 18 09:17:47 Anyone have any in-depth info on android.text.StaticLayout. The code very unreadable and it's not much of a help. Oct 18 09:17:57 the code is* Oct 18 09:27:37 conferences - where you get to make complaints about software in person to vendor's employees :> Oct 18 09:28:09 * p_l|conference actually is in conference where one of the talks was by a JetBrains employee :D Oct 18 09:49:15 (beginner) question: when I rotate the display, my Activity gets recreated. how can I keep persistent data within my Activity? Oct 18 09:49:32 <_the_surfer_> anyone have experience with developing android app in sencha touch framework? Oct 18 09:49:39 is anyone using volly framework and managed doing multipart requests? Oct 18 09:49:58 mazzoo, see onSaveInstanceState Oct 18 09:50:11 alex_PP: thx, looking it up =) Oct 18 09:53:05 _the_surfer_: when you've been asking (essentially) the same question for days, and nobody is answering, you need to consider if you're asking the right question in the right place Oct 18 09:55:52 How can I draw multiline text that ellipsizes after 2 display lines? I can't get android.text.StaticLayout to work... Oct 18 09:56:23 And yes, it needs to be drawn onto a Canvas... Oct 18 09:56:52 (I could probably do with a TextView that I manually size and call draw on...) Oct 18 09:57:54 alex_PP: seems I can't keep a BufferedReader (on a TCP socket) that way - correct? Oct 18 10:31:33 http://pastebin.com/jAa4kLHY any idea why my multipartenetity does not work? the server does not receive any post/file vars. There are entrys (1 file, 2 posts for example) Oct 18 10:34:03 <_the_surfer_> Leeds thx but i am sure there will eventually be people who worked with sencha touch... i am pretty new myself in it... Oct 18 10:34:53 what is the minimum dp a square button should be? Oct 18 10:38:03 somewhere i read 48dp if anyone can confirm Oct 18 10:40:15 lasserix, https://developer.android.com/design/patterns/accessibility.html Oct 18 10:40:27 and this https://developer.android.com/design/style/metrics-grids.html Oct 18 10:48:15 mazzoo, onSaveInstanceState is good for data, but with sockets and things, you may want to read up on services and how they work Oct 18 10:53:39 thanks Alex Oct 18 10:54:52 I am trying to tak a pictur ebut is getting error: java.lang.RuntimeException: takePicture failed, can I save files to File externalRoot = Environment.getDownloadCacheDirectory(); File tempDir = new File(externalRoot, ".GetAHoldImage"); return tempDir; ?? Oct 18 11:55:46 Hi Oct 18 11:55:52 I am new on android Oct 18 11:56:14 I have some data that I put in a array Oct 18 11:56:32 that works fine, when I do it manualy Oct 18 11:57:27 but when I do it for automaticly then I get a NPE. Why? Oct 18 11:57:27 Here ich my Code: http://pastebin.com/GJLTQJjv Oct 18 11:57:55 when I do it with for, sorry Oct 18 12:04:39 you see, at line 3, that works fine. but not line 20, in the pastebin Oct 18 12:11:16 Figure out what it is that's null Oct 18 12:11:19 And make it not null Oct 18 12:14:54 I try it with out a array. when I put it in a map, that works fine. and it is not null. But when I change it to: new Standings(e.getString("team_name"),blbla Oct 18 12:15:05 then it is npe Oct 18 12:17:12 The stacktrace will tell you the line.. Then all you have to do is figure out what in that line is null Oct 18 12:17:16 That's very simple Oct 18 12:17:43 Then you figure out why it's null .. and fix your code Oct 18 12:23:27 Hello! Is there a way to recover files /data/data? One application called Quick Notes (https://play.google.com/store/apps/details?id=yong.app.notes)stores data at /data/data/young.app.notes. I lost my notes after performing a restore using Clockworkmod. It was an old backup. Oct 18 12:24:33 Try #android-root Oct 18 12:24:44 Okay Oct 18 12:35:43 SimonVT: Do you think 'Undelete for Root Users' app can help restore that? Oct 18 12:39:58 Can someone please explain why the constructor with maxLines is not in the docs, nor available in any API, but TextView uses that same constructor. Could it be ProGuard-ed? https://github.com/android/platform_frameworks_base/blob/ics-mr1-release/core/java/android/text/StaticLayout.java Oct 18 12:40:17 See line: 98 Oct 18 12:41:26 I.E. why is it documented as @hide? Oct 18 12:41:28 Anything marked @hide is not available in the public api Oct 18 12:41:37 OK, but why? Oct 18 12:42:11 Why methods are not available? Oct 18 12:42:19 When it is quite a needed feature, if you want to implement a TextView on your own... Oct 18 12:42:24 The API might not be final Oct 18 12:42:44 Once something is public, they can't change the signature or remove it Oct 18 12:43:11 I see, of course. Is there a way I can access that constructor, with introspection or otherwise? Oct 18 12:44:58 Sure, you can use reflection.. You just can't count on it being there in future releases Oct 18 12:45:05 So handle it gracefully if it fails Oct 18 12:46:26 Awesome! I don't like jumping through hoops to draw a TextView when a StaticLayout can be used. Oct 18 12:49:39 hello everyone! Iclicking run on eclipse made my app run once but not anymore Oct 18 12:49:55 I don't know what did different now? Oct 18 12:50:22 *clicking Oct 18 12:52:57 Right click your app in the project list to the left, and click Run As > Android Application Oct 18 12:53:11 Make sure when clicking the "Run" button at the top after that that you are in a .java file, not a .xml. Oct 18 12:54:34 hmm Oct 18 12:54:49 guys, what's the accepted pattern of adding a button to dismiss a dialog? Oct 18 12:55:00 Anthaas, thanks man! Oct 18 12:55:04 svector: np Oct 18 12:55:25 Mavrik: In what sense? Oct 18 12:56:06 I have a dialog of options a user can choose (or not) that shows up at the end of a file upload. Oct 18 12:56:16 The iOS version of that dialog has a "Done" button in upper left Oct 18 12:56:33 and I'm thinking of how to add a button (besides the back button press) to dismiss that dialog Oct 18 12:57:28 Ahhh Oct 18 12:57:36 Your Dialog object will have a function setButton Oct 18 12:57:42 I think its that Oct 18 12:57:42 One sec Oct 18 12:57:50 Anthaas, I'm not asking about an API Oct 18 12:57:56 (and no, my dialog won't have it) :) Oct 18 12:57:57 asking about UX Oct 18 12:58:05 Oh Oct 18 12:58:27 I guess its taking advantage of the fact that Android phones have a built in "Back" button. Oct 18 12:58:33 mhm Oct 18 12:58:37 iPhones don't. Oct 18 12:59:37 https://developer.android.com/guide/topics/ui/dialogs.html Oct 18 13:21:20 <_the_surfer_> anyone have experience with developing android app in sencha touch framework? Oct 18 13:23:32 I once wrote an app in Sencha and it got 100,000 downloads and is a 1.5 start app with the saddest reviews Oct 18 13:23:40 *star Oct 18 13:30:14 hey folks, a small question, is it possible/common in Android apps to change activity with a vertical swipe? Oct 18 13:30:20 or maybe this could be fragments? Oct 18 13:30:59 You could easily implement a simple gesture recognition to do so Oct 18 13:31:18 Or change the ViewPager such that fragments swipe vertically, but it isn't really fitting with the Android look and feel Oct 18 13:33:35 I see, thanks Anthaas Oct 18 13:46:33 android studio seems nice Oct 18 13:46:56 at least faster than eclipse Oct 18 13:47:04 It has some amazing features, but until I know the IDE enough, I can't help but feel that I wouldn't be anywhere near as constructive or efficient in it than I am in Eclipse. Oct 18 13:47:26 i never liked eclipsed though Oct 18 13:47:56 So many people say this, I personally don't have a problem with it, never have. I strongly suspect the reason a lot of people say that is because they have heard other people say it... Oct 18 13:48:39 i have used it for java at past but never liked it. Netbeans was better for me Oct 18 13:55:23 has anyone converted the guides at g.android.com to pdf Oct 18 13:55:24 ? Oct 18 13:55:36 Eclipse works fine, but it's not very impressive.. Just intellij's far superior autocompletion alone was enough to make me switch Oct 18 13:56:23 For me to use AS, I need time. Time to make the shortcuts work like Eclipse, etc. Time to get familiar etc, I just don't have time atm, but I do fully intend on making the switch Oct 18 13:57:06 x86 image doesnt seem to run Oct 18 14:12:31 SimonVT: Don't suppose you know anything about creating a custom progress bar? Oct 18 14:28:53 * hackkitten is too invested in Eclipse to switch to IntelliJ (rage!) or AS (32-bit Java only, really?) at this point... Oct 18 14:29:08 Yeah Oct 18 14:29:11 Eclipse is just....easy Oct 18 14:29:19 indeed Oct 18 14:29:34 everything just works, even if you have to whack it a few times on the side :) Oct 18 14:29:55 hey guys, I have a string that looks like this "Questionnaire.QuestionnaireA.Question1 Equal 'True' AND UserProfile.PropertyName Equal 'SomeThing'" <= are there any libs that could help me to evaluate this predicate against the associated datas ? Oct 18 14:30:08 Exactl Oct 18 14:30:36 1) Sounds like a project I am doing, so Im not gonna give too much away :P Oct 18 14:30:46 2) Structure it, then parse it. Oct 18 14:31:02 3) If you are doing all that in a string, you are doing it wrong. Oct 18 14:31:16 actually on iOS i just create a NSPredicate, and call one method with a NSDictionary, i would have loved something similar with an hashmap :) Oct 18 14:31:33 What are you wanting to do? Oct 18 14:31:40 Could you phrase it a little differently? Oct 18 14:31:49 I'll take an example it will be easier Oct 18 14:32:25 LiohAu, try an ognl library Oct 18 14:32:26 Hi all, does somebody know if there's an open source library for creating something like this? http://www.packexpress.nl/folder.gif Oct 18 14:32:58 LiohAu, otherwise, just use sql Oct 18 14:33:15 FrancescoV: Not even sure what the question is there, or what to make out of that gif. Oct 18 14:33:40 pfn: Had any experience with creating a custom progress bar? Oct 18 14:33:54 Anthaas, to do what exactly? Oct 18 14:33:56 Im following an example by Romain Guy online, but I can't get it to work, despite having fiddle about a bit. Oct 18 14:34:00 Anthaas: to create an advertising brochure Oct 18 14:34:12 I want to change the UI, so am creating using an Oct 18 14:34:27 and need to set that as the background of my image view when I want it to run Oct 18 14:35:27 let's say i have a User named "X", this guy answered a Questionnaire named "Q", at the question "Q1", he answered "1", i would like to be able to evaluate rules against these datas, so for example if I have the following rule : "Questionnaire.Q.Q1 Equal '1' AND UserProfile.FirstName = 'X' then i should be able to retrieve a True, but if the user answered "2" for Q1, it would return False Oct 18 14:35:34 FrancescoV: Can't say I do Oct 18 14:36:02 LiohAu: SQL Oct 18 14:36:03 LiohAu, ognl Oct 18 14:36:05 or sql Oct 18 14:36:14 or ognl Oct 18 14:37:08 Anthaas, dunno what you're doing or why it might not "work" then Oct 18 14:38:02 Hi, I really need help, Trying to integrate Expansion files for the first time (obb files). In My Nexus 4 the call to Environment.getExternalStorageDirectory() returns /storage/emulated/0 which does NOT exist in the device... how am I supposed to test obb files without releasing them? Oct 18 14:38:47 Anthaas you really need to get some sleep mate :P Oct 18 14:38:59 tonyMontana9099: I slept from 8pm - 3am Oct 18 14:39:04 Hahah :P Oct 18 14:39:22 pfn: UserProfile.FirstName is not related to my database columns Oct 18 14:39:30 so. espresso. thoughts? Oct 18 14:39:50 frankdoyle, it's yummy Oct 18 14:40:01 LiohAu, so map it so that it is Oct 18 14:40:03 frankdoyle send me some. Oct 18 14:40:15 Yeah, please. Oct 18 14:40:36 https://code.google.com/p/android-test-kit/ Oct 18 14:41:42 pfn: how ? do you suggest me to do something like "SELECT 1 as "Questionnaire.Q.Q1", X as "UserProfile.FirstName" WHERE `Questionnaire.Q.Q1` = '1' AND `UserProfile.FirstName` = 'X' ? Oct 18 14:42:33 maybe somebody knows how if there's an open source library to create an app like this: https://play.google.com/store/apps/details?id=com.flyersoft.moonreader&hl=nl I just need the page animation etc. and make it work with pdf documents Oct 18 14:42:43 damned if I know, your expression is so arbitrary, it's hard to know what exactly you want, or how you expect it to map to data Oct 18 14:42:56 if this is an ios nspredicate, then I would assume ognl would do basically what you want Oct 18 14:48:16 Why is it these past few days the only things Ive not been able to do on Android are UI things Oct 18 14:48:57 pfn: i think that SQL will do the job Oct 18 14:48:58 th Oct 18 14:49:00 thx* Oct 18 14:49:06 SQL always does the job Oct 18 14:49:08 if the existing UI components are not suitable, then just write your own components Oct 18 14:49:16 I dunno about not being able to do.... Oct 18 14:49:18 What iOS people don't realise is that CoreData is just a wrapper for SQL Oct 18 14:50:08 All you have to do is set the anim drawable file to be the background of the ImageView, cast the background to an AnimationDrawable, then call .start() on it Oct 18 14:50:10 BUT NOOOOO Oct 18 14:50:11 hahahaha Oct 18 14:50:48 why an imageview? why not just a plain view... Oct 18 14:51:03 It holds an image statically when not progressing Oct 18 14:51:07 I see Oct 18 14:51:11 But also Oct 18 14:51:15 and for that matter, do you have the dimensions correct for it Oct 18 14:51:17 This is how guides online all say how to do it Oct 18 14:51:19 Yes. Oct 18 14:51:24 if it's 0dp/0dp, it'll probably never show up Oct 18 14:51:48 http://permalink.gmane.org/gmane.comp.handhelds.android.devel/37 Oct 18 14:51:52 this example doesnt want to work Oct 18 14:52:14 I don't know what your definition of "working" and "not working" are Oct 18 14:52:17 so no help there Oct 18 14:52:52 I have a matching XML and Java (swapping out variable names) to which Romain says "This certainly works". Oct 18 14:52:56 For me, it certainly crashes. Oct 18 14:53:09 Which I would consider "not working" Oct 18 14:53:14 ok, now you're being stupid Oct 18 14:53:16 if it crashes Oct 18 14:53:19 stack trace or gtfo Oct 18 14:53:25 lol Oct 18 14:53:26 http://imgur.com/jacoj Oct 18 14:53:32 see topic Oct 18 14:54:13 The stack trace is saying Resources$NotFoundException saying the xml cannot be found from resource ID #0x7f020004 Oct 18 14:54:19 What's the standard way of declaring Roboto-Condensed-Light from xml? fontFamily="sans-serif-condensed" and fontFamily="sans-serif-light" work but I don't see any way to specify both Oct 18 14:54:22 please help someone? Oct 18 14:54:43 Anthaas, clean build Oct 18 14:54:46 mastro: Just ask - don't ask for help :-) Oct 18 14:54:48 pfn: Done :/ Oct 18 14:54:51 Anthaas, that's a basic resources problem Oct 18 14:54:55 Anthaas, already asked Oct 18 14:54:59 Hi, I really need help, Trying to integrate Expansion files for the first time (obb files). In My Nexus 4 the call to Environment.getExternalStorageDirectory() returns /storage/emulated/0 which does NOT exist in the device... how am I supposed to test obb files without releasing them? Oct 18 14:55:06 Anthaas, then you didn't put the xml in the res dir correctly Oct 18 14:55:22 I created it there like you would any other xml file Oct 18 14:55:27 and that is? Oct 18 14:55:37 I assume you do every single thing wrong, unless you spell it out Oct 18 14:55:43 so you created it in the wrong place Oct 18 14:55:54 Right click folder - new - xml Oct 18 14:56:04 if you say right click folder new xml Oct 18 14:56:06 you did it wrong Oct 18 14:56:18 new at the top? Oct 18 14:56:27 Also, this works for everything else I have ever done, bar this Oct 18 14:56:29 do you know how to use a computer? Oct 18 14:56:34 *where* did you create it Oct 18 14:56:50 Wow, are you always so condescending? Oct 18 14:56:59 oh, btw mastro, I decided to use reflection to get the attribute values in the end Oct 18 14:57:07 when you increasingly expect me to have ESP Oct 18 14:57:14 I increasingly become condescending Oct 18 14:58:14 Where as in where within the project file strucutre? Oct 18 14:58:19 res/drawable Oct 18 14:58:25 where geographically? At home Oct 18 14:58:34 res/drawable/what Oct 18 14:58:34 Semantic pedantry can be avoided. Oct 18 14:58:40 Just res/drawable Oct 18 14:58:44 see, there you go again, being obtuse Oct 18 14:58:46 Where I normally store selector files etc Oct 18 14:58:46 wtf is the file name Oct 18 14:58:54 login_progress_anim.xml Oct 18 14:58:57 grep resid from R.java Oct 18 14:59:02 look at what it signifies Oct 18 14:59:08 in the drawable class in R.java Oct 18 14:59:17 aapt d resources resources.ap_ Oct 18 14:59:23 grep that resource name Oct 18 14:59:26 see why you have a mismatch Oct 18 14:59:32 this is a build issue, not a code example issue Oct 18 14:59:35 ... Oct 18 14:59:39 aren't animations supposed to go in res/anim? Oct 18 14:59:51 leslie: not necessarily Oct 18 15:00:12 anyway, correlate the exception res ID to the ID in R.java Oct 18 15:00:19 then find that resource in the res.apk Oct 18 15:01:11 leslie, that's dangerous :) Oct 18 15:01:22 Ok, found the resource in R.java Oct 18 15:01:29 marginally. Oct 18 15:01:58 Am I to use Ant to run that command? Oct 18 15:02:03 no Oct 18 15:02:16 mastro basically if it fails, it just falls back to the default fonts Oct 18 15:02:19 Thanks Oct 18 15:11:14 Ok done Oct 18 15:11:23 Had to find out the Windows equivalent of grep. Oct 18 15:11:30 Im much better at Unix command line stuff Oct 18 15:12:38 pfn: Oct 18 15:30:30 im currently using an asynctask which post to an interface. Now i want to store the interface for later use. Is this possible to store/serialize this to a database? what is a better way doing this? Oct 18 15:34:30 object instances cannot be serialized Oct 18 15:39:30 hey guys .. I'm having an issue where once I start my database process I get a lot of D/dalvikvm(18072): GC_FOR_ALLOC freed 512K, 34% free 2807K/4200K, paused 3ms, total 3ms .. tracking allocations shows that it comes from: http://pastie.org/8412299 Oct 18 15:40:18 I don't understand what could be constantly throwing an exception, the process is started and works ok.. Oct 18 15:40:54 what exception Oct 18 15:41:00 see the pastie Oct 18 15:41:12 the gc line is nothing Oct 18 15:41:13 just idle gc Oct 18 15:41:24 and that's not a stack Oct 18 15:41:25 well there's hundreds in a 4 second span Oct 18 15:41:29 not a full stack Oct 18 15:41:37 no but it's all I can see from the alloc tracker Oct 18 15:44:16 at this point there's nothing happening on the process with the exception of the db engine that's running (but should be no activity there either) Oct 18 15:44:34 so I don't understand why it's GC'ing so much and what it's trying to alloc Oct 18 15:49:03 hi Oct 18 15:50:01 I'm attempting to make a TV guide/EPG type application, and would like to make not only the listing information but also the channel logo loading as efficient as possible. This information will be retrieved over http Oct 18 15:50:54 I have readup on RetroFit, Picasso, OkHttp, and Volley, however I would like ot hear from users who have experience, what solution they went with for a similar-ish app idea Oct 18 15:51:16 First three fo' sho', but i'm biased. Oct 18 15:51:24 what device is mmcblk0p2 Oct 18 15:51:29 Haha I had a feeling you'd say that! Oct 18 15:51:41 sabgenton: sounds like a sd card Oct 18 15:52:09 thats my guess but wasn't shure if it was that or the flash inside the phone Oct 18 15:52:16 I would like to have the images cached, as you know this would have big net latency if constantly downloading them Oct 18 15:52:39 sabgenton: you cant test if that's true Oct 18 15:52:49 Damo2k: I personally use universal image loader (https://github.com/nostra13/Android-Universal-Image-Loader) and it works well Oct 18 15:52:50 can* Oct 18 15:52:52 Damo2k: I have used Picasso, it's a really nice library. I've also used volley, it's okay. But nothing special really. Oct 18 15:52:54 not much fiddling needed Oct 18 15:53:56 digitroid: trying to find scripts to use sdcard as /data mount point instead of internal device Oct 18 15:54:11 SO many options! Oct 18 15:54:12 you can find out I would have thought Oct 18 15:54:13 hehe Oct 18 15:54:16 Anyone encountered this one: com.facebook.http.protocol.ApiException: The proxied app is not already installed. Oct 18 15:54:46 i have init.d so I could make a boot script to ls it's contents someware Oct 18 15:55:51 pfn: so I traced it down to Libcore.os.waitpid(0, status, 0); throwing a libcore.io.ErrnoException: waitpid failed: ECHILD (No child processes) .. filling in the stack trace is what's causing the GC calls because that runs in a while(true) loop.. Oct 18 15:55:52 nevermind, I think the problem is just a typo in the FB developer settings Oct 18 15:56:02 I am going to use a scroll view, both ways. As I'm very weak on UI stuff for Android, I will use http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/ Anyone ever used this before ? Oct 18 16:01:54 JakeWharton: How does okHttp fare out with Picasso from caching point of view? I'd have to disable caching in one of them? or does it not make sense to use both ? Oct 18 16:02:52 The HTTP client is what does disk caching. Oct 18 16:03:06 Picasso doesn't do any disk caching itself. Oct 18 16:03:18 Only memory Oct 18 16:03:19 closing a scanner also closes inputstream? Oct 18 16:03:19 Ah, annd it uses HttpUrlCOnnection doesn't it Oct 18 16:03:32 https://github.com/square/picasso/blob/master/pom.xml Oct 18 16:03:34 By default, yes. Oct 18 16:03:52 SO I can have Picasso use OkHttp, I just seen code for the constructor there Oct 18 16:04:16 Yes. Just drop OkHttp into your app and it will be automatically used. Oct 18 16:05:01 JakeWharton: okhttp is in the dependency list for Picasso. am i missing something? Oct 18 16:05:11 Yes. The scope. Oct 18 16:05:16 I think I will go for OkHttp/Picasso over Volley. I think I know what I want, and this should help eliminate the need for me to re-invent the wheel Oct 18 16:05:48 ahhh, I don't use maven. maybe I should look into how that works! haha Oct 18 16:06:11 I think I read a comment by you that OkHttp/Picasso does a similar job to Volley, but you don't necessarily agree with the way volley achieves this. Oct 18 16:06:39 OkHttp is compiled against but not required. We detect whether it's present and then invoke different code paths. Oct 18 16:07:31 Damo2k: I like a lot of Volley, just have different opinions on some things :) Oct 18 16:08:58 I guess if I was to do this the right way, I'd have to separate projects with the 2 different vendor libs and compare! Oct 18 16:10:11 brb, gotta head home, forgot to open irssi in tmux also Oct 18 16:22:55 deleet, what exactly are you doing Oct 18 16:24:47 pfft, irssi Oct 18 16:25:39 using irssi from android is painful Oct 18 16:26:19 there's an android client? Oct 18 16:26:31 i would say using irssi on desktop is painful Oct 18 16:27:14 no, connectbot -> tmux -> irssi Oct 18 16:27:19 irssi on desktop isn't painful Oct 18 16:27:22 works wonderfully Oct 18 16:27:43 why is it text only Oct 18 16:27:46 pfn: I'm launching a service on a dedicated process from my main application Oct 18 16:27:56 deleet, how precisely? Oct 18 16:28:16 sounds like your process never started, so process.wait() fails Oct 18 16:28:18 or something Oct 18 16:28:45 its slogan "the client of the future" must be a joke Oct 18 16:28:55 via the manifest, android:process= on a element .. and I see it in the process list, it's running / responding Oct 18 16:29:12 I bind it to the application context Oct 18 16:29:46 however it stopped happening now .. and I haven't really changed anything related to it.. OS bug? Oct 18 16:30:35 seand: how does it get better than this: http://cl.ly/image/1C2s0C0H1j2q :D Oct 18 16:31:08 deleet that's irssi? Oct 18 16:31:09 probably needed to clean up the app Oct 18 16:31:27 i.e. stop it, or reinstall Oct 18 16:31:33 deleet: how do i view the user list for the channel Oct 18 16:31:40 why do you ever need to view userlist? Oct 18 16:31:42 deleet: how do i switch to another channel Oct 18 16:31:44 pfn: I had done that a bunch of times heh. Oct 18 16:31:47 I never want to see who's on the channel Oct 18 16:31:54 you see userlist by typing /names Oct 18 16:31:55 seand: /names and alt + channel # Oct 18 16:31:59 switch channels by ALT-# Oct 18 16:32:06 exactly, painful Oct 18 16:32:12 heh Oct 18 16:32:16 hah absolutely not Oct 18 16:32:19 <3 irssi Oct 18 16:32:42 pfn: I'm chalking it up to device / OS quirk for now I guess... Oct 18 16:42:00 is there an easy way to listen for links click from email? I want it to go to my app when I click a link going to my site, such as https://mysite.com/emailLinkClicked.html Oct 18 16:47:38 is it possible to use a listview displaying different layouts for each row ? Oct 18 16:47:50 Tomasso: yes Oct 18 16:47:54 the Adapter class must have a constructor that receives Context, and the resource id for the layout to render.. the thing is that in my case the layout changes Oct 18 16:47:58 just return different views in your adapter Oct 18 16:48:18 make a custom adapter Oct 18 16:49:11 I extennded ArrayAdapter Oct 18 16:49:32 what are you doing in getView Oct 18 16:49:46 just return the view you need for the kind of data you have Oct 18 16:50:12 mm i did all in a class hierarchy, and getView is overriden in all subclasses Oct 18 16:50:57 you can return anything that extends from android.view.View in getView. just return whatever you want it to be Oct 18 16:52:10 I wll maybe need to make that single MyAbstractLayout to implement the getView to return the View. And not return the custom view in the class hierarchy.. thinking of composite Oct 18 16:55:13 You just need to extend BaseAdapter, implement getItemViewType and getViewTypeCount and return views based on view type in getView Oct 18 16:56:17 great,. I was extending from ArrayAdapter.. Oct 18 16:57:17 thankss Oct 18 16:57:50 you can also do the same thing from arrayadapter.... Oct 18 16:58:31 You could also do it by extending CursorAdapter, that doesn't mean it makes sense Oct 18 16:59:02 sure, but maybe ArrayAdapter makes sense for him. how would we know Oct 18 16:59:13 I just figured since he was already using ArrayAdapter, why not keep using it Oct 18 16:59:53 SearchView is clearing when I submit a search... is there a way to keep my search term visible? Oct 18 17:01:54 If you're overriding getView, ArrayAdapter doesn't make sense Oct 18 17:07:47 smit: just re-set the query? Oct 18 17:14:21 switching channels by a keystroke is not painful Oct 18 17:14:25 clicking is painful Oct 18 17:14:41 seand, sounds like your typing-fu is not up to snuff Oct 18 17:14:42 hello Oct 18 17:14:54 gdrc: hi! Oct 18 17:15:11 clicking and using the scrollbar is less effort than typing Oct 18 17:15:24 it's not that i'm not good at typing, it's that i don't want to do it for everything Oct 18 17:15:30 which is also why i don't use vim Oct 18 17:15:57 yeah, you're not good at typing Oct 18 17:16:14 clicking and scrollbar are far more effort than typing Oct 18 17:16:59 i could agree with you but then we'd both be wrong Oct 18 17:20:41 some android studio pros here? Oct 18 17:22:37 when inputting data, 99% of the time, your hands are over the keyboard Oct 18 17:22:46 if you need to move your hands to scroll around, you're destroying ergonomics Oct 18 17:23:05 arrow keys and mice are particularly bad at this, unless you use your pinky to stretch and hit arrow keys Oct 18 17:23:35 for (byte[] buf = new byte[1024]; (count = ins.read(buf)) > 0; os.write(buf, 0, count)); Oct 18 17:23:44 having the escape key so far away is something of an announce for vi Oct 18 17:24:38 you're not inputting text 100% of the time, which is why it shouldn't be 100% text driven Oct 18 17:25:37 changing channels in a graphical client is effortless; physically it may be less effort (maybe), but mentally is nothing compared to a text-driven client Oct 18 17:25:55 vi is great for editing over ssh from my phone, but other than that, I'll take nano. Oct 18 17:26:04 as well as anything else that isn't chatting: viewing user list, changing settings, etc Oct 18 17:26:38 s/less effort/more effort Oct 18 17:29:07 Seriously, though, do you have any preference as to an editor to use on the android phone via ssh or scp for that matter? Oct 18 17:30:37 The closest I have come is using total commander to scp a file to the phone, and then upload the changes back to my build box. Oct 18 17:33:48 vim or die ! Oct 18 17:34:42 I think I would have to attach a bt keyboard to my phone for vi or vim to really be practical. Oct 18 17:35:30 back Oct 18 17:35:54 I am thinking that it may be time to write a decent code-centric editor taht will run on android, and support loading files via ssh, localy, or even over smb. Oct 18 17:36:01 I think android should nearly be JakeWharDroid Oct 18 17:36:16 nearly and project has at least one of his libs, or CommonsWare Oct 18 17:37:50 Yeah, everything uses actionbarsherlock. Oct 18 17:38:14 yeah, even my grandma does :) Oct 18 17:38:22 :O ... hello Oct 18 17:38:23 hahah Oct 18 17:38:52 I prefer 14+ Oct 18 17:38:52 i have seen many closed source projects that aren't giving credit Oct 18 17:51:03 do you know if i use a ListAdapter and there is a change in the data it shows, how do I refresh? , should i setListAdapter again? Oct 18 17:51:41 Tomasso: If the listadapter in question is written correctly, the list will automatically refresh Oct 18 17:51:50 notifyDatasetChanged() Oct 18 17:52:15 thank youu xD Oct 18 17:54:00 seand, I'm inputting text 100% of the time, I dunno about you Oct 18 17:54:05 unless I'm playing games, I'm inputting text Oct 18 17:54:15 even reading, I'm inputting text, to navigate Oct 18 17:54:19 which is a single keystroke Oct 18 17:57:13 Fenny, if you're editing over ssh on a phone, nano is way easier... Oct 18 18:07:32 JakeWharton: weakreference in picasso makes me very sad. Oct 18 18:08:42 So I'm creating a custom view, overriding onDraw, and then adding that view in my main activity. I'm drawing a rectangle with 4 hard coded points. How can I do this so that the rectangle wraps to the content? Is there anyway of getting the amount of width a view requires? Oct 18 18:10:20 funkbox: There's methods that keep hard references if you need that Oct 18 18:10:53 SimonVT: nothing that's a target Oct 18 18:11:17 and the callback doesn't tell you what the bitmap is Oct 18 18:11:59 AND the callback does not get invoked if the ImageView target is cleaned up Oct 18 18:13:26 1.x had a .fetch(Target) that worked like a dream Oct 18 18:15:41 Oh, guess they removed that Oct 18 18:16:15 Can't you keep your own hard references? Oct 18 18:16:48 yeah, but then that gets messy and loses a lot of the value of picasso Oct 18 18:17:00 could that possibly introduce a mem leak on configuration changes? Oct 18 18:17:11 a hard reference? Oct 18 18:17:49 sure Oct 18 18:18:40 Well, Picasso's main purpose is to load bitmaps into views.. There are always hard references to the views that matter Oct 18 18:24:57 I am sorry, I am still at the same Problem. I can not find out, how to get it work Oct 18 18:25:21 here is my code: http://pastebin.com/JhLwDysz Oct 18 18:26:02 dot8: you never add the address to your array Oct 18 18:26:12 oh Oct 18 18:27:29 Adress.add(addressArray); Oct 18 18:27:31 ? Oct 18 18:27:47 addressArray[0] = new Address("Bayern","1", "11", "10", "88"); Oct 18 18:27:49 etc... Oct 18 18:30:25 thank you! thats it Oct 18 18:42:36 So I'm creating a custom view, overriding onDraw, and then adding that view in my main activity. I'm drawing a rectangle with 4 hard coded points. How can I do this so that the rectangle wraps to the content? Is there anyway of getting the amount of width a view requires? Oct 18 18:45:21 eghdk: I would help you, but I'm not sure what you're trying to do, you say hard coded. yet you ask about finding width? more explanation as to what you're doing might help. Oct 18 18:45:53 It's hard coded just because I wanted to learn how to code a onDraw. Oct 18 18:46:00 you can override onLayout to find out when the view changes Oct 18 18:47:40 Hmm… so overriding onLayout gives me 4 int coordinates? Oct 18 18:47:46 use getWidth, getHeight, etc. to figure out what you need Oct 18 18:48:17 Sounds like the rectangle IS the content Oct 18 18:48:20 Where would I use getWidth/getHeight? inside of onDraw? or onLayout? Oct 18 18:48:57 sounds like you need a viewgroup Oct 18 18:48:58 SimonVT: Well so essentially I said "rectangle" but I basically drew a "Chat bubble". But I hardcoded the values. Oct 18 18:49:03 although, what are you trying to achieve? eghdk Oct 18 18:49:04 you don't want to do calculations in on draw, compute the path in onLayout Oct 18 18:49:15 So you need to override onMeasure and give it a size Oct 18 18:50:02 I'm trying to make an extension of relativeLayout so that I can add two text views into a BubbleView. Oct 18 18:50:17 But I need it to resize correctly. Oct 18 18:50:26 yeah, SimonVT, you were right. Oct 18 18:50:34 Mkay, so do like you'd do any other relativelayout Oct 18 18:50:55 Make it wrap_content Oct 18 18:51:55 As jaynewstrom, you can get the size of the view by calling getWidth/Height (after onLayout has been called.. so onDraw should be good) Oct 18 18:52:19 Okay, so wait. Because I'm still very new to this whole custom view thing. Oct 18 18:52:34 I usually override onLayout, and check if it's changed, then recompute the path using getWidth/getHeight Oct 18 18:52:41 I have a BubbleLayout extends RelativeLayout class. Oct 18 18:52:58 jaynewstrom: onSizeChanged :p Oct 18 18:53:01 Same thing tho Oct 18 18:53:04 So then in my main, I just go BubbleLayout bub = new BubbleLayout();? Oct 18 18:53:23 SimonVT: damn, didn't know that existed :p Oct 18 18:53:33 so yeah, override onSizeChanged ;) :p Oct 18 18:53:40 If you only override onDraw, you just use the view like any other RelativeLayout Oct 18 18:54:22 I've never added layouts programatically though. So I just want to make sure I dont mess up. Oct 18 18:54:31 Then add it in xml? Oct 18 18:54:43 How do I do that! Oct 18 18:54:44 Oct 18 18:55:06 Make sure you have the Context, AttributeSet constructor defined Oct 18 18:55:16 what's the best way to give away free copies of your app? Oct 18 18:55:37 b = (Button) findViewById(R.id.my_Button); why the parenthesis around Button? Oct 18 18:56:07 SimonVT: Make sure you have the Context, AttributeSet constructor defined? Oct 18 18:56:14 Guys, in maven project Oct 18 18:56:40 Yes Oct 18 18:56:42 How do you's add the latest android jar and support jar? DO you use local repositries, or just drop the jar into your libs folders Oct 18 18:56:52 SimonVT: Why can't I just have the constructor with just context? Oct 18 18:56:53 as online repos have old-ish versions Oct 18 18:56:58 OfficeDepot0894: to cast it to a button Oct 18 18:57:00 Why does it need AttributeSet? Oct 18 18:57:05 Because when inflating from xml, the one with Context and AttributeSet is invoked Oct 18 18:57:26 Oh… but it's inherited right? Should I override it and add anything special? Oct 18 18:57:58 No, it's not inherited Oct 18 18:58:22 eghdk: constructors aren't inherited in java Oct 18 18:58:37 Hmm… didn't know that! Oct 18 18:58:37 Anthaas I tested the set error thing. works like a charm Oct 18 18:58:56 eghdk you can access them using super. Oct 18 18:59:25 which will call the constructor of the parent, which if contains another super, will call the parent of itself.. and up up Oct 18 18:59:47 Gotcha. Thanks Oct 18 19:00:18 there are 2 methods for errors, one with default X logo and text, and the other custom logo and text Oct 18 19:01:55 SimonVT: Okay, so I'm oficially using my first custom view in my app! Oct 18 19:02:28 My app runs, and it's doing it from the XML… but it doesn't show my lines that I paint in onDraw… =( Oct 18 19:03:03 eghdk: check the values you are drawing. they might all be 0 or something Oct 18 19:04:30 When I change my BubbleLayout extends RelativeLayout to BubbleLayout extends View… it works. Ideas? Oct 18 19:05:20 I need to remove it from my xml, but If I add it programatically, then it works. That's what I meant. Oct 18 19:05:25 Ah, right Oct 18 19:05:35 Call setWillNotDraw(false) in the constructor Oct 18 19:07:38 Aww man… how'd you know?! Oct 18 19:08:26 ViewGroups skip the drawing code by default, because they usually just layout views Oct 18 19:08:49 So you need to tell it that you're drawing stuff Oct 18 19:09:14 Oh! That makes sense. Oct 18 19:11:33 SimonVT: I'm so close to being done now. The last thing I need help with is when I define my points. They are all hard coded right now, but of course I want the Bubble to wrap content. Where can I call getWidth/getHeight? Oct 18 19:12:00 In onSizeChanged Oct 18 19:14:01 And just to be clear, getting the width will be the width of the actual content correct? Oct 18 19:14:57 The size of your view Oct 18 19:15:06 Which might be wrap_content Oct 18 19:15:32 Gotcha Oct 18 19:17:07 what is the purpose of making a button static inside activity ? Oct 18 19:17:31 Leaking activities? Oct 18 19:17:52 SimonVT i didnt get you. Oct 18 19:17:58 we should or should not make them static? Oct 18 19:18:01 haha! Oct 18 19:18:06 no! don't make them static!!! Oct 18 19:18:10 <|0xD34D|> do not Oct 18 19:18:11 exactly lol Oct 18 19:18:13 <|0xD34D|> ever Oct 18 19:18:15 <|0xD34D|> evah Oct 18 19:18:19 i thought the opposite for a second. Oct 18 19:18:35 SimonVT was being funny Oct 18 19:18:42 he is :) Oct 18 19:18:50 i read this article about memory leaks Oct 18 19:18:51 https://mail.google.com/mail/u/0/?shva=1#inbox/141c7b6f97c572d6 Oct 18 19:19:13 oops wrong link lol Oct 18 19:19:37 I too read your inbox on a regular basis Oct 18 19:19:57 lol Nilium 34234 tabs open in the browser , bad happens Oct 18 19:20:07 http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html Oct 18 19:20:24 Is this the one about people being stupid with contexts? Oct 18 19:20:31 yes it is.. have you seen it ? Oct 18 19:20:51 I saw it back when it was new. Oct 18 19:21:12 the author talks about the difference between activity context and application context and advices to use the application context... Oct 18 19:21:20 Still kind of amazed people continue to make this mistake. Oct 18 19:21:25 however, we almost always use the activity context Oct 18 19:21:35 Who said WeakReference in Picasso make you sad Oct 18 19:21:47 you have to use WeakReferences unless you like leaking shit Oct 18 19:22:20 jake who you talking to ? Oct 18 19:22:42 funkbox Oct 18 19:23:00 JakeWharton: i did Oct 18 19:23:29 funkbox: your in trouble now Oct 18 19:23:47 Random question, I always see "leaking" thrown around. What does that mean in JakeWharton context of Picasso? Why would it be bad to leak? Oct 18 19:23:49 having something similar to fetch from 1.x would be nice. Oct 18 19:24:01 * jjnye grabs some popcorn Oct 18 19:24:02 eghdk: it would be a gc root and it could keep objects around Oct 18 19:24:08 anyone have ads implemented in a listView that is in stackFromBottom mode ? Oct 18 19:24:13 ima get some scotch Oct 18 19:24:18 what's the best way to give away free copies of your app? Oct 18 19:24:54 if you give a refund, do they get to keep the apk or does it uninstall? Oct 18 19:25:22 Nilium can you explain the 6th grade way what does leaking actually mean ? and when can a leak happen other than screen orientation ? Oct 18 19:25:22 Some developers create 2 of the same application - a free-and-usually-ad-supported app and a paid app without ads. Why do majority of developers still request internet permissions on paid apps that do not need internet permissions? Oct 18 19:25:27 they keep it until they uninstall, iirc Oct 18 19:25:50 forgotmynick: probably too lazy to differ android manfest Oct 18 19:25:51 funkbox: That means that some objects may never be garbage collected? Oct 18 19:26:21 IIRC, the picasso request would be processed eventually and when it does it would get rid of the root Oct 18 19:26:25 StingRay_: booo ads Oct 18 19:26:32 forgotmynick: Might also be for analytics. Oct 18 19:26:36 hmm... so probably the best way is to reimburse them with a gift card for the play store? Oct 18 19:26:43 Damo2k: ? Oct 18 19:27:07 Why would you reimburse someone with a gift card? Oct 18 19:27:21 to give away a free copy of your paid app Oct 18 19:27:21 StingRay_: give your app away for free, be nice Oct 18 19:27:50 Or just sell it. Oct 18 19:27:53 Damo2k: erm…. I kinda need money :) Oct 18 19:28:02 to do various things, like eat etc Oct 18 19:28:12 StingRay_ i've heard ads don't provide a lot of income unless your app is crazy popular Oct 18 19:28:28 seand you're right. they dont. Oct 18 19:28:43 specially if you get money if people click on them. no one clicks these days. Oct 18 19:28:59 mainly because no one wants to leave the came he downloaded to play another one. lol Oct 18 19:29:13 At the moment, I'm not aware of a good way to give someone a free copy of an app that doesn't involve handing them an APK (meaning you get to assume they're not a horrible person) Oct 18 19:29:17 Just make the ads move your OK button at the bottom of the screen up when they pop. You'll get more clicks, and if they click it you can hide them and stop rotating for a bit. Oct 18 19:29:22 iOS app make a lot more money. just make iOS apps... Oct 18 19:29:24 seand: indeed, but I still need to figure out how / why the ads cause setStackFromBottom not to work Oct 18 19:29:38 Nilium giving them an apk is not an option because then it won't update Oct 18 19:29:46 i think the best way is probably gift card Oct 18 19:29:47 Guys I have eclipse project and I am confused about Android private libraries vs add just jar vs referencing library project. I am confused about when to use what Oct 18 19:30:13 StingRay_: why have ads at all? just do a free and then paid version Oct 18 19:30:16 Can you not gift apps to people? Oct 18 19:30:27 Nilium no, lol Oct 18 19:30:34 the play store is severely lacking in features Oct 18 19:30:46 you can create a wishlist but then you can't gift apps... Oct 18 19:30:48 Of course not. Silly of me to think the Play store could do something useful. Oct 18 19:30:49 seand: cause it would mean disabling features, and that not good Oct 18 19:31:19 Play also seems to routinely forget I have devices. Oct 18 19:31:24 StingRay_: not necessarily. the way i'm going to do it is have the "trial" be fully featured but be restricted in a couple minor ways Oct 18 19:31:39 yeah my lwp is pretty good example Oct 18 19:31:42 i'll develop an app to share video. the first question that comes to my mind is if I have to use some trick to improve performance. Oct 18 19:31:48 its free but you pay $1 for settings Oct 18 19:31:51 I tried that, it's not actually a worthwhile model. Oct 18 19:31:51 Most people will settle for the free app and never upgrade. Oct 18 19:31:55 Turns out you can very easily convince yourself you don't want something. Oct 18 19:32:02 settings make it pretty lot more fun, but defaults is oretty good too Oct 18 19:32:19 could you ive me some advice? Oct 18 19:32:22 SimonVT: I'm trying to draw a point "outside" of the view (-10,-10) for example, but it's not showing. It's because it's being clipped off. How do I turn off clipping? Or is that not possible? Oct 18 19:32:22 warpmobile: Well first you'd have to develop the app and profile it. Oct 18 19:32:26 *give Oct 18 19:32:30 Nilium what model are you referring to Oct 18 19:32:52 eghdk: Why would you do that Oct 18 19:32:54 seand: Free with restrictions. Oct 18 19:33:01 eghdk: drawn directly on view, outside its area? Oct 18 19:33:12 guys, i have a button that has a text and a variable attached to it.. for example - "inbox 20" where 20 is a variable Oct 18 19:33:18 eh, will mine is more of a tool for certain professions so i think people will upgrade Oct 18 19:33:21 well* Oct 18 19:33:25 after syncing with server, lets say the 20 is now 22 Oct 18 19:33:40 so what are the numbers that make ads worth it then ? Oct 18 19:33:46 1 million users ? Oct 18 19:33:50 yes Oct 18 19:33:54 Nilium, are you referring to the model of smartphone or users target Oct 18 19:33:55 ? Oct 18 19:33:58 I am using b.setText("inbox" + i); Oct 18 19:33:59 From what I've heard, in-app ads make you diddlysquat. Oct 18 19:34:01 SimonVT: For my bubble, they are basically rectangles, but I need them to have little "carets" off to the side. Oct 18 19:34:05 so I am rewriting the inbox everytime Oct 18 19:34:12 Nilium what model do you go with? Oct 18 19:34:19 is there a way to keep the fixed text fix, and just change the variable ? Oct 18 19:34:26 eghdk: And you can't draw that inside the view? Oct 18 19:34:28 warpmobile: I have no idea what you're referring to. Oct 18 19:34:31 Should I just push everything else "down" and keep the caret "inside" of the view SimonVT? Oct 18 19:34:35 Strictly paid. Oct 18 19:34:36 Yeah, I guess I can. Oct 18 19:34:55 I'll try that now. Heh. I'm getting too eager I guess. I'm so close to getting this done. Oct 18 19:34:56 Nilium: how many users do you have for your app(s) and what are your ratings like? Oct 18 19:35:18 Nilium: i would think strictly paid is a bad idea because you'll get people who try it, have something not work on their specific phone and they leave bad ratings Oct 18 19:35:19 problem with full paid is there is no free beta of it Oct 18 19:35:24 users create ideo with smartphone so they send to server, all friend of user show in timeline the video Oct 18 19:35:24 exactly Oct 18 19:35:42 I have 1250 beta testers Oct 18 19:36:01 wow Oct 18 19:36:03 Probably around 130 since I released it late last month. Oct 18 19:36:03 have to think about them … unless play develop a way to give my app away free to x users Oct 18 19:36:03 Ratings are all five stars. Oct 18 19:36:13 Nilium: link? Oct 18 19:36:16 Nilium: create video, show video in player and may be some edit video Oct 18 19:36:35 warpmobile: Stop talking to me. Oct 18 19:36:36 StingRay_: that's what i was thinking too; give app away to beta testers Oct 18 19:36:50 ok Oct 18 19:37:06 My testers paid for it, albeit at the lowest price I could make the app. Oct 18 19:37:07 https://play.google.com/store/apps/details?id=net.spifftastic.ascension2 ← App is there. Oct 18 19:37:08 sorry Oct 18 19:37:35 lol 6 ratings is no data at all Oct 18 19:37:38 interesting lwp Oct 18 19:37:38 I just told them they'd either get a refund whenever they wanted or I'd owe them a beer. Oct 18 19:37:57 No, but it beats none. Oct 18 19:37:57 StingRay_: what will your app do ? Oct 18 19:38:12 it's a messaging app Oct 18 19:38:17 sms/mms Oct 18 19:38:17 whats its permissons Oct 18 19:38:24 I think the only amazing thing is a user of version 1 somehow found version 2 and wasn't pissed off that I'm charging for the update. Oct 18 19:38:43 that is amazing. what did each of them cost? Oct 18 19:38:49 was v1 in java? Oct 18 19:39:13 v1 was $1.69, v2 was $1.49 initially and is now $2.49 (which you can probably see for yourself) Oct 18 19:39:38 Nilium: whats permissions for that lwp Oct 18 19:39:52 I miss old play website where you could find and read list of permissions Oct 18 19:39:57 Does the Play store not list them anymore? Oct 18 19:40:02 press install and it shows you Oct 18 19:40:07 Good god, they actually went backwards. Oct 18 19:40:09 before you purchase, iirc Oct 18 19:40:16 oh? lemme see Oct 18 19:40:18 anyone using android studio over intellij yet? Oct 18 19:40:36 lwp ahs set wallpaper permission? weird Oct 18 19:40:48 At any rate, I typically get about 3-5 sales per day, which is enough of a profit off a relatively expensive (compared to others) LWP to keep me happy about it. Oct 18 19:40:52 speaking of intellij, Nilium did you see that the sbt plugin for intellij is updated for 13? Oct 18 19:40:59 SimonVT: Yep, that's basically it. It works flawlessly now. Thanks! Oct 18 19:41:01 Not yet, though that's handy. Oct 18 19:41:16 nice. my only paid app I only got 4 buys at lowest price Oct 18 19:41:23 At this point, though, I just use my applescript utility to send commands to a terminal session running sbt Oct 18 19:41:32 sales on my latest app are so slow Oct 18 19:41:56 but I suppose it's pretty niche Oct 18 19:42:20 It's pretty hard to get niche-er than a live wallpaper Oct 18 19:42:25 this is currently broken (post-0gb dont render lines right) https://play.google.com/store/apps/details?id=rolf.livewallpaper.nodebattlefree&hl=en Oct 18 19:42:39 Nilium, well, anyone with a 2.1+ phone can use a live wall paper Oct 18 19:42:40 in y'all's opinions, is Volley worth trying to use in a production app, or should it be given a year to see if the project fizzles out first? Oct 18 19:42:53 Plus it's immensely hard with LWPs 'cause they've got a reputation from eons ago for being a security risk and draining batteries Oct 18 19:42:53 silly one I made https://play.google.com/store/apps/details?id=rolf.livewallpaper.windyflowers&hl=en_GB Oct 18 19:43:19 Nilium, then why write a lwp? I thought you don't even use android... Oct 18 19:43:31 Because I wanted to. Oct 18 19:44:09 I needed a project to re-familiarize myself with Android, so I decided to rebuild Ascension from the ground up in Scala. Oct 18 19:44:14 so live wallpapers don't drain the battery? i've never tried one but my battery drains pretty fast as it is Oct 18 19:44:26 How often do you stare at your home screen? Oct 18 19:44:35 Just like leave the screen on and really stare at it? Oct 18 19:45:07 heh those 2 lwps I made hardly use any battery even when leave in view Oct 18 19:45:08 so it does drain the battery? Oct 18 19:45:17 my newest one though... lol Oct 18 19:45:29 it drains relatively little battery Oct 18 19:45:31 its kinda heavy on cpu, my newest unreleased one Oct 18 19:45:32 Everything drains the battery, the point is that you have to realize that any battery drain by a LWP probably wouldn't register. Oct 18 19:45:36 depending on cpu heavy Oct 18 19:45:50 and yes, how often you look at your home scree Oct 18 19:45:58 me, I put a lot of widgets on my home screen Oct 18 19:46:02 so I spend a fair amount of time on it Oct 18 19:46:21 i usually turn my screen on, look around at my apps, then turn my screen off Oct 18 19:46:25 I have three home screens and one widget I don't even use. Oct 18 19:47:10 in android studio which file is respoible for the file hierarchy ? Oct 18 19:47:33 At any rate, a LWP will use the battery, one that's poorly designed will use it more, but overall you'll probably never notice it because you'll be in an app rather than somewhere where the LWP is running. Oct 18 19:47:35 when I import a repo from git the hierarchy is totally messed up Oct 18 19:48:00 eh, i like the regular nexus background Oct 18 19:48:14 The color globes one? Oct 18 19:48:28 no the one they show in ads for samsung galaxy nexus Oct 18 19:48:34 Never seen it. Oct 18 19:48:39 the rainbow-ish one Oct 18 19:48:43 eghdk: leaking means holding a reference to an object that would otherwise be garbage collected Oct 18 19:48:43 woop: I'm using volley in production. Not saying it should be done, or is good. I wrote another level of abstraction on top of it to use in the app Oct 18 19:48:55 a view holds a reference to its parent context which is the parent activity Oct 18 19:48:55 Also, I block people from installing my LWP on the Galaxy Nexus. Oct 18 19:49:08 It's kind of funny how strangely terrible that device is. Oct 18 19:49:18 are you sure? because it says i can install on google play Oct 18 19:49:24 eghdk: if you hold a strong reference to the view, you hold a string reference to the activity Oct 18 19:49:34 If you've rooted your device, it might not be recognized as a Galaxy Nexus. Oct 18 19:49:42 jaynewstrom: do you just copy the sources into your project directory as per the google io talk? Oct 18 19:49:56 wait just kidding, it says i can't install when i click the Buy button Oct 18 19:50:01 why do you block it? Oct 18 19:50:06 and why is it a terrible device Oct 18 19:50:20 woop: yes, I added it as a module in Android Studio Oct 18 19:50:20 For some reason, Ascension runs like garbage on the Galaxy Nexus and only the Galaxy Nexus. Oct 18 19:50:25 the galaxy nexus isn't so bad Oct 18 19:50:30 the nexus s.... is horrific Oct 18 19:50:31 i like it because pure android Oct 18 19:50:43 Does fine on older devices with worse hardware, but for some reason the Galaxy Nexus cannot handle it. Oct 18 19:50:51 i don't want the extra crap other phones put on top of android Oct 18 19:51:10 So, rather than let people buy it and go "this is horrible!", I just stop them Oct 18 19:51:22 yea good idea Oct 18 19:51:35 JakeWharton: Does this mean I should null out a lot of my objects when I'm done with them? Or does finish() on an activity kill those objects as well? Oct 18 19:51:40 Until I can get a Galaxy Nexus for myself, that's really all I can do Oct 18 19:51:55 do you have multiple phones for testing or do you rely on beta testers? Oct 18 19:51:56 eghdk: no, it's only an issue when you are holding a reference outside of the lifecycle of an activity Oct 18 19:52:15 eghdk: the Picasso instance lives on between activities so it can't keep a strong reference otherwise those activities won't go away Oct 18 19:52:38 I have a few phones I borrow from family members and a couple other devices of my own, but I had to rely on testers to find out about the Galaxy Nexus issue Oct 18 19:52:53 A few of them had the device and all of them had the problem, so I decided it was worth blocking Oct 18 19:53:24 i'm hoping to have a good userbase of testers to rely on because i have 1 phone, and don't want to buy others Oct 18 19:53:52 probably have to buy a tablet eventually Oct 18 19:54:10 All of my testers are also programmers, so it was easier to get logs and such out of them. Probably going to be harder if you have a lot of testers who are just in it because it's cool to test something. Oct 18 19:54:17 I'm waiting for the day when JakeWharton releases an IDE Oct 18 19:54:37 i could never write something better IntelliJ IDEA Oct 18 19:55:22 It'd be pretty hard to one-up JetBrains. Oct 18 19:55:23 well i'm planning on adding automatic logging in, i'm just debating to what extent because i don't want it to be noticeable for the user's data usage Oct 18 19:55:58 i have crash logging via crashlytics Oct 18 19:56:07 Maybe check for wifi and only send it when on that? Oct 18 19:56:12 I don't know if you can check for wifi. Oct 18 19:56:26 Never done anything networking-related on Android. Oct 18 19:57:05 I just wish bthere was a way for app on one phone to find other copy of app on other phone Oct 18 19:57:15 without in between Oct 18 19:57:17 yea you can check for wifi, i'll have to look into that Oct 18 19:58:40 Watching someone pet a friendly platypus.. this is way too cute. Oct 18 19:59:36 anyone familiar with taking pictures in the background? I am getting having ahard time try to take a picture from my camera Oct 18 20:00:23 So I'm just gonna repeat a question from yesterday. I'm drawing a custom View. My shape has 7 "points". I would like to round 4 out of 7 points. Is there any easy way to do that? I know with `paint.setPathEffect(new CornerPathEffect(15));` but that rounds all 7 points. Oct 18 20:03:00 here is my code: http://pastebin.com/tpZj3Vff, anyone familiar with taking a picture? Oct 18 20:03:33 eghdk: can't you just draw with more than one path? Oct 18 20:03:55 seand: What do you mean? Not sure I understand. Oct 18 20:04:14 JakeWharton: did you recieve your free license for the premium version ? Oct 18 20:04:27 for what? Oct 18 20:04:29 eghdk: if i recall correctly you create a path object and set points on it and then paint it Oct 18 20:04:50 Yeah. That's what I'm doing. Oct 18 20:04:51 eghdk: so just do that multiple times, setting rounded for only 1 of the paths Oct 18 20:05:20 hey, please take a look: http://stackoverflow.com/questions/19435801/android-custom-view-and-canvas-size-chicken-and-egg-prob - any suggestions? Oct 18 20:05:32 I don't know where that would go though…? Oct 18 20:05:33 IntelliJ give out licenses for the enterprise/premium or whatever its called version of IDEA if you actively contribute to the open source community Oct 18 20:05:38 eghdk: paste your code Oct 18 20:05:55 Okay, I'll pastebin it. Oct 18 20:05:59 viran: buffer in onSizeChanged Oct 18 20:06:18 Damo2k: oh, yeah. i got one once but i have no use for Ultimate. I just use the normal, free community edition Oct 18 20:06:43 I just grabbed the Ultimate edition back during the end of the world sale. Oct 18 20:06:54 Still amazed it was as cheap as it was for that. Oct 18 20:06:59 seand: Here ya go. I appreciate you taking a look at it. http://pastebin.com/itXy85pq Oct 18 20:07:04 Ah cool. I made a small webservice app to go along with an android app, but I just used Eclipse J EE edition for the webapp Oct 18 20:08:18 eghdk: so what you're doing there is creating a Path, creating lines within the Path and then drawing it with a Paint object Oct 18 20:08:18 You havent moved to android studio yet ? Oct 18 20:08:43 Why would someone move to AS if they already use IntelliJ? Oct 18 20:08:50 eghdk: so just split it up into 2 drawPath() calls, with 2 Path and 2 Paint objects Oct 18 20:09:02 1 Paint object has the ROUND effect, 1 Paint does not Oct 18 20:09:03 seand: Yeah, I understand that. But to target an individual point I would have to put some code into that for loop? Oct 18 20:09:06 Damo2k, are you are android studio pro? Oct 18 20:09:35 Interesting… I'm not entirely sure of what you're saying, but that makes sense. Oct 18 20:09:50 eghdk: from what i remember you're trying to draw a chat bubble like in whatsapp, right? Oct 18 20:09:57 seand: Can I canvas.drawPath, with multiple paint objects? Oct 18 20:09:59 Yeah Oct 18 20:10:11 eghdk: i'm assuming the rounded corners are in the bubble and the straight ones are in the triangle? Oct 18 20:10:33 eghdk: so use the points that the two shapes have in common twice Oct 18 20:10:46 Yeah Oct 18 20:11:11 The first 4 points are the ones that should be rounded, and the last three points in the array should be normal. Oct 18 20:11:53 seand: Not sure how I would do that Oct 18 20:12:15 jan1337z: I use IntelliJ 12 Oct 18 20:12:26 there are lots of ways... 1) you could duplicate the points in both Point[] arrays Oct 18 20:12:29 for android development/ Oct 18 20:12:37 ? Oct 18 20:12:37 jan1337z: yes Oct 18 20:16:46 seand: So I would call canvas.drawPath() twice? Each time with a seperate path? Oct 18 20:16:55 yes Oct 18 20:17:01 and different Paint obj Oct 18 20:17:18 well you could reuse the same one i guess, just change the stroke Oct 18 20:17:27 eghdk: I still don't understand why you're not using a 9patch Oct 18 20:17:45 SimonVT: Me neither! Oct 18 20:17:51 SimonVT: eghdk needs to be able to dynamically set the background color Oct 18 20:17:55 Well, I do. But it's out of my hands. Oct 18 20:18:10 Oh Oct 18 20:19:40 seand: So should I create 1 shape that's just a rounded rectangle, and then another shape thats JUST that little "triangle" carret thing? Oct 18 20:20:11 eghdk: yes exactly, except i'm assuming both shapes will share a gap so you don't want to complete the shape Oct 18 20:21:15 Well, the tough part is, that I want a different stroke color and a different fill color. If I do it the way that you are suggesting… will I be see one smooth border around the outside? Oct 18 20:26:29 SimonVT: would it be more efficient to use a 9-patch or use custom drawing code? Oct 18 20:26:34 eghdk: http://imgur.com/OhKEM54 Oct 18 20:27:43 Ah yes. I guess I could do that. Oh man. I really don't wanna do that. Seems like quite a bit of work on a dynamic height view. Oct 18 20:28:21 jaynewstrom: It's easier to use a 9patch Oct 18 20:28:25 what's the problem? those points are still a simple function of x, y, width and height Oct 18 20:28:37 Unless you do strange stuff like change colors and whatnot, I guess Oct 18 20:29:05 JSoup or HtmlCleaner? Oct 18 20:29:15 SimonVT: sure, 9-patches could definitely be easier. But what about performance wise? Oct 18 20:29:56 seand: I guess so. I will try that out now. The LAST thing I'm worried about is whether or not it will look right when they join at those points. But I will give it a try! Oct 18 20:30:17 weird Oct 18 20:30:22 eclipse crashed Oct 18 20:30:22 Damo2k, any idea where $PROJECT_DIR$ is defined? Oct 18 20:30:40 I guess I left it waiting to confirm workspace selection too long or something Oct 18 20:31:00 weird Oct 18 20:31:43 crash again Oct 18 20:31:50 I wonder if workspace is corrupt Oct 18 20:34:00 in soviet russia, eclipse corrupts you Oct 18 20:35:07 jaynewstrom: I don't know really, a 9patch is just a bunch of bitmaps Oct 18 20:35:34 Dunno how drawing bitmaps compares to drawing paths,e tc Oct 18 20:36:12 eclipse -clean fixed it Oct 18 20:38:55 jan1337z: huh Oct 18 20:39:06 Hello! I have a bunch of buttons with text inside, each with a string with a different length... I want to arrange the buttons in a kind of grid, so I want the buttons all to have the same size... So I need to find out what's the "widest" button from the bunch, and then check how many times it can fit on the screen... If it fits 4 times, I make 4 columns of buttons, if it only fits 3 times, 3 columns of buttons, etc... Any tip Oct 18 20:39:18 Damo2k, AS keeps telling me java.lang.NullPointerException: Project directory not specified: Project directory not specified Oct 18 20:39:35 googled it and nothing worked Oct 18 20:39:38 How do I figure out how much space is available in a layout and how much space does a button takes including padding? I'd prefer to do this without actually creating the buttons Oct 18 20:40:54 just a little question about building aosp from sources: how do i extract the proprietary binaries ? i have a galaxy s4. is it similar to http://wiki.cyanogenmod.org/w/Build_for_jfltexx#Extract_proprietary_blobs ? Oct 18 20:41:11 jan1337z: I have no idea what's happening there Oct 18 20:48:18 I'm guessing x86 atom images are faster in the emulator than the ARM ones considering my host OS is x86 ? Oct 18 20:48:49 probably? Oct 18 20:49:11 Damo2k you'll need to enable haxm at least, also gpu accel Oct 18 20:49:30 I just noticed the haxm entry in the android sdk manager alright Oct 18 20:49:39 I recently installed android x86 on my laptop Oct 18 20:49:48 very nice other than couple strange bugs Oct 18 20:49:51 but the android 4.0 ARM image is painful even on a 2.6 Ghz i5 Pro Oct 18 20:50:36 heh my oc barely can run froyo Oct 18 20:50:52 maybe try x86 Oct 18 20:50:57 I plan to Oct 18 20:51:20 Yeah downloading now Oct 18 20:52:11 with a LoginActivity how do you maintain the auth state throughout the app life? Oct 18 20:52:21 Damo2k if you have issues with haxm, try genymotion Oct 18 20:52:25 like keep them logged in I mean Oct 18 20:52:55 g00s: cheersd Oct 18 20:53:30 interesting the new google splash page for gmail isn't working with FF Oct 18 20:53:38 all links work except 'sign in' Oct 18 20:53:43 nice to see a MIPS image, wonder what MIPS devices run android yet Oct 18 20:53:59 hehe i only ever seen routers based on MIPS arch Oct 18 20:54:46 zmuser3 no one paying attention :( Oct 18 20:54:50 thats a nice question actually Oct 18 20:55:26 just thought I would throw it out there. I can probably figure something out Oct 18 20:56:12 zmuser3 couldn't you just use a singleton? Oct 18 20:56:21 well, there are couple of basic things you can try Oct 18 20:56:33 you mean you want it to act like facebook ? Oct 18 20:56:49 well I have to look up singleton hang on hehe Oct 18 20:57:18 wait, i dont think singleton is a good approach for this Oct 18 20:57:24 why not Oct 18 20:57:26 can you give more details what u are trying to accomplish ? Oct 18 20:57:35 it has the same lifecycle as the application Oct 18 20:57:54 Hi :) Oct 18 20:57:59 seand exactly.. but if he wants to keep the user logged even if he turns the app off Oct 18 20:58:01 hi hetii Oct 18 20:58:05 well if they want, my users can upload some data to a webserver (I haven't set up that end yet) and compare "scores" with other users Oct 18 20:58:34 probably want to use the accounts system then Oct 18 20:58:38 I wonder if my android laptop usb port would allow me to add apps to it by debug Oct 18 20:58:42 ok Oct 18 20:59:00 phones tablets I know is ok but laptop? Oct 18 20:59:21 well can always do wireless adb Oct 18 20:59:38 zmuser3 but you want the user to be logged in as long as the app is open ? Oct 18 20:59:59 zmuser3: You could look into using the google play games service. It has support for scoreboards like that, I believe Oct 18 21:00:09 well yeah I don't want them to ever have to deal with the login again once authenticated, like facebook or whatever Oct 18 21:00:39 well, there are 2 things you can do Oct 18 21:00:43 quite basic stuff Oct 18 21:00:53 I would assume that uses the same google account that they're already in with Oct 18 21:01:00 I play with FT311D USB host controler. When i connect it to my phone then the phone popup message about selecting proper application to handle it, or show message that there is no proper application for this accessory, so this is fine. In other hand i have a table with RK3066, when i plug there my device nothing happen but just see that new debugging module is attached. Oct 18 21:01:19 do a login, and save the user/pass (encrypted) to a local db... Oct 18 21:01:21 already logged in with* Oct 18 21:01:32 and if there is a user, put a flag, that the user is logged in. Oct 18 21:01:38 I see what you mean JF Oct 18 21:01:42 plus, you wouldn't have to worry about the server side Oct 18 21:01:45 if the user manually logs off, remove the flag.. Oct 18 21:01:55 Any clue how to force my tablet to recognize usb accessory kit ? Oct 18 21:02:36 tony, but how would the server know whether each connection is autheticated? Oct 18 21:02:47 authenticated oops Oct 18 21:03:05 I guess store a cookie Oct 18 21:03:18 i donno if cookies for work mobiles ? do they ? Oct 18 21:03:39 hmm Oct 18 21:04:59 Im baaaaaaaaaaaack Oct 18 21:05:27 wb ! Oct 18 21:05:37 Slept a lot haha Oct 18 21:06:38 indeed Oct 18 21:06:54 hehehehee much needed asleep Oct 18 21:07:11 its midnight in here, and i need to wake up around 6am tomorrow morning . but dont want to sleep Oct 18 21:07:20 hey, i've got a custom view that works fine. for some reason it's not visible when i put in inside a horizontal scroll view... i can't figure out why, any idea? Oct 18 21:07:31 pfn: Sorry about being grouchy earlier - lack of sleep I guess :/ Oct 18 21:07:41 what do you mean by custom view ? Oct 18 21:07:46 Its 10pm hee Oct 18 21:08:01 viran: Does the horizontal view make it such that it isnt visible? Oct 18 21:09:48 Right, time to fix this build issue...somehow Oct 18 21:10:15 Anthaas: i think so, if i remove the HSV and set layout_height i see the view, when i wrap it inside an HSV, and set it's height to match_parent, i see the HSV but the view is not inside it Oct 18 21:10:56 Thats it then, its an issue with your UI set up Oct 18 21:12:09 yes, that is obvious... cant seem to find the issue though.. Oct 18 21:12:59 mmm, HSV needs a linear layout inside it? Oct 18 21:13:14 That is dependant upon what your view looks like. Oct 18 21:13:23 scrollviews can only have 1 child Oct 18 21:13:42 ^ Also true, but surely his IDE of choice would scream that at him? Oct 18 21:14:08 there's nothing codified that says they may only have 1 child Oct 18 21:15:29 lint screams Oct 18 21:15:41 sure, lint probably does Oct 18 21:15:43 I don't run lint, though Oct 18 21:15:48 Ahhh thats what I meant. Oct 18 21:15:52 My bad. Oct 18 21:18:20 pfn: Could you give me a hand with this build thing? I have got the aapt d resources resources.ap_ open Oct 18 21:19:31 ok, the custom view is set with android:layout_width="wrap_content" when it's created it has not content so onMesure set it's width to 0 which makes the HSV ignore it even when it's size is changed Oct 18 21:19:34 so, cross-check everything and see what it thinks is missing Oct 18 21:19:36 then rectify Oct 18 21:19:51 viran, when the size changes, invalidate and request the hsv relayout Oct 18 21:19:54 Every resource, or just the one that is throwing the not found exception? Oct 18 21:20:00 just the error one Oct 18 21:20:13 you have the error, R.java and aapt d resources Oct 18 21:20:29 AHhh ok - what is the difference between spec resource and just resource? Oct 18 21:20:31 reconcile the 3 against each other, starting with the resid in the error Oct 18 21:20:35 ? Oct 18 21:20:48 I got two entries back in the aapt thing Oct 18 21:20:59 (Even thoguh I only have one entry for it in R.java.) Oct 18 21:22:19 dunno about the entries, just verify that the ids match up Oct 18 21:22:53 pfn: how do i make it relayout? Oct 18 21:23:11 viran, hsv.requestLayout... Oct 18 21:23:19 pfn: The ID and name in the aapt matches the R.java Oct 18 21:23:36 thanks Oct 18 21:23:46 Anthaas, and in the error? Oct 18 21:23:54 pfn: Indeed Oct 18 21:24:28 so the ID in the error is the same as in R.java and in the resources package? Oct 18 21:24:36 Yeah Oct 18 21:24:39 are you doing something funny with cross-context resources then? Oct 18 21:24:41 remote views, etc? Oct 18 21:24:52 Nope :/ literally setting a background :/ Oct 18 21:25:03 On a normal activity Oct 18 21:25:05 Nothing fancy Oct 18 21:25:12 pastebin aapt d resources, R.java and the exception Oct 18 21:26:51 http://pastebin.com/EPMdA2s3 this is aapt d resources after greping (findstr in Windows) the error code in the logcat Oct 18 21:28:24 http://pastebin.com/qqy53eUU This is the error in the logcat Oct 18 21:30:50 http://pastebin.com/UUa4nTDc R.java Oct 18 21:32:55 Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #2: invalid drawable tag set Oct 18 21:34:37 Odd, I removed that - thanks! :D Oct 18 21:34:46 Any reason why code might re-enter itself? Oct 18 21:34:54 why what code might re-enter itself Oct 18 21:35:14 I don't think you ever pastebinned your exception, otherwise this problem was a quickfix.... Oct 18 21:35:36 basically the tags in my anim.xml entered themselves after I deleted them :/ Oct 18 21:36:28 don't ask me, ask yourself, you did something :p Oct 18 21:36:34 like not saving your changes Oct 18 21:36:50 Hahaha I suppose :P - I always save changes, a habit, ctrl shift s Oct 18 21:38:13 Hmm, now my animation is "happening", but all the frames are being skipped. Even though I have threaded it. Oct 18 21:38:16 Argh hahaha Oct 18 21:40:50 threaded it? you shouldn't have to do it on a separate thread, unless you're doing the drawing yourself... Oct 18 21:41:33 I threaded it because the same issue occurred when I didn't. :/ Oct 18 21:41:36 Ive unthreaded it now Oct 18 21:42:04 Skips all frames, saying the app might be doing too much on its main thread... Oct 18 21:42:10 All it is doing is starting this animation Oct 18 21:43:08 sounds like you're doing something else wrong Oct 18 21:43:47 Yeah I was Oct 18 21:43:48 Hahaha Oct 18 21:44:20 I havent actually implemented the networking that happens to cause this animation to start, so for demo purposes, I slept the thread...which happens to be the thread the anim happens on... Oct 18 21:44:26 I am not a clever person. Oct 18 21:44:58 or too clever for your own good Oct 18 21:45:06 ^ often said Oct 18 21:47:20 This is quite a pain, now I can see the animation, but it isnt the animation I asked it to do. I gave 4 images to cycle through, it isnt doing any. Just....putting a tiny border around each part in turn, but only 2 parts :/ Oct 18 21:47:37 Oh, I don't bloody know.... Oct 18 21:48:25 Is it possible to have for eg some OnKeyListener where i can check if user press some key from real keyboard? Oct 18 21:50:37 Uh.. "thread the anim happens on"? Surely it happens on the ui thread Oct 18 21:51:09 Yeah, I wouldnt have thought so. Oct 18 21:51:15 But then again Oct 18 21:51:18 It seems obvious Oct 18 21:51:25 You cant access UI components outside of UI thread Oct 18 21:51:42 Either way now though, the anim isn't what I asked for :S Oct 18 21:55:10 According to everything (except me.) this should be working :/ Oct 18 21:55:22 maybe your animation is just plain wrong... Oct 18 21:55:51 The structure etc is exactly the same as the example given by Android (hover over AnimationDrawable class when its in code) Oct 18 21:56:13 sure, but the drawables you're using don't produce the effect you're looking for Oct 18 21:56:21 having not knowing what you've put in there Oct 18 21:56:47 Its a frame animation, so the drawables are slightly different, and there is just a list of 4 drawables. Oct 18 21:56:52 It has to swap between them Oct 18 21:57:57 imgur the drawables for us to see Oct 18 21:58:01 and your xml Oct 18 21:58:02 kk Oct 18 22:00:07 Ok - start: http://s18.postimg.org/ubcx6a44p/hivemind_logo_with_name.png Oct 18 22:00:16 http://s9.postimg.org/gh56kofpr/progress_bar_anim1.png Oct 18 22:00:21 http://s15.postimg.org/t2b2thz8r/progress_bar_anim2.png. Oct 18 22:00:32 http://s21.postimg.org/b54q6ov53/progress_bar_anim3.png Oct 18 22:01:07 cool Oct 18 22:01:29 ? Oct 18 22:01:52 a screenshot of what you're seeing would be good as well Oct 18 22:04:12 http://s23.postimg.org/pxdmg3ecr/device_2013_10_18_230259.png Oct 18 22:04:26 Notice the tiny border difference around the top left hexagon? Oct 18 22:06:21 I guess Oct 18 22:06:37 Thats all that is happening, is that that is moving from hexagon to hexagon. Oct 18 22:06:49 Border difference Oct 18 22:07:13 ? Oct 18 22:07:17 I dont see it Oct 18 22:07:23 It really is tiny Oct 18 22:07:30 Its on every hexagon? Oct 18 22:07:37 no, because you're using an ImageView Oct 18 22:07:37 But when it is changing often in front of you, you notice Oct 18 22:07:42 and you have a static Image in there already Oct 18 22:07:45 Nah, on that it is on the top left one Oct 18 22:07:46 and you're animating the *background* Oct 18 22:08:05 Yes, but in the java code, I am changing the background to be the animation drawable in the .xml file before animating Oct 18 22:08:21 static image with your image in the foreground Oct 18 22:08:22 mIVLogo.setBackgroundResource(R.drawable.login_progress_anim); Oct 18 22:08:24 animation in the background Oct 18 22:08:31 Ahhh source! Oct 18 22:08:34 why should the background ever appear on *top* of the foreground Oct 18 22:08:44 src! Oct 18 22:08:51 my gawd Oct 18 22:09:40 I know, I know... :/ Oct 18 22:09:49 basically why I asked why you used an ImageView in the first place Oct 18 22:10:00 Fixed. Oct 18 22:10:22 Because it does need to hold a static image when not loading. Oct 18 22:10:29 AS 0.3.0 is out (canary) Oct 18 22:10:51 I won't use it until it's a 1.0 Oct 18 22:11:05 ^ Same. Oct 18 22:11:17 ha Oct 18 22:11:22 Although I don't really have the time to invest to become familiar at the moment, I do fully intend on giving it a good shot. Oct 18 22:11:55 i definitely won't go back to it until it's 1.0 Oct 18 22:12:00 sticking with intellij for now Oct 18 22:12:04 Are there really that many problems with it? Oct 18 22:12:14 no Oct 18 22:12:20 I'm just waiting for intellij 13 Oct 18 22:12:29 why android studio when intellij 13 does everything it does and more Oct 18 22:12:31 Anthaas: the previous release was kind of buggy in my book. it's not awful. But risky Oct 18 22:12:37 Is it possible to measure the size of a button without adding it to a parent view? How to do it? Oct 18 22:12:38 because they're the same thing Oct 18 22:12:56 JakeWharton, almost, android studio removes features and disallows installation of certain plugins Oct 18 22:13:08 basically any non-android language is disabled, aside from groovy maybe Oct 18 22:13:19 well good. scala is bad for your health Oct 18 22:13:22 not at all Oct 18 22:13:27 scala is great, java is bad for your health Oct 18 22:13:52 I've seen clojure. That is bad for my health. Oct 18 22:13:55 irc is bad for your health Oct 18 22:14:02 android studio also uses gradle whereas intellij doesn't by default, right? Oct 18 22:14:04 I dont like how (+ 2 3) is a function or whatever. Oct 18 22:14:16 What is wrong with good old 2+3 Oct 18 22:14:30 because stack-based operations are pretty easy to grok Oct 18 22:14:50 2 3 + is faster I believe Oct 18 22:15:00 I dont even know hahahaha Oct 18 22:15:20 grok is a new word for me that I plan on using in a sentence to someone next week. Oct 18 22:15:22 * pfn misses using his old hp48 calculator Oct 18 22:15:33 Also love how grokking is a word. Oct 18 22:16:56 pfn i had a hp48; then a ti-92, i still have a voyage 200 sitting somewhere Oct 18 22:17:13 I once used a cassette player. Oct 18 22:17:29 i think now its an iPad app , unless you need to take a test :) Oct 18 22:17:37 I also remember life pre-internet where floppy disks were used hahaha Oct 18 22:18:29 SimonVT: Hey, so I took away the Paint.Style.FILL_AND_STROKE and just left it as Paint.Style.STROKE. But now some of my lines are "thicker" than others… doesn't make any sense. Oct 18 22:18:30 I've got a big exclamation mark next to my project in eclipse, and I can't build because it says I need to fix errors before building. But nothing besides those two things indicate an error. Anyone know where to look for it? Oct 18 22:18:59 heh, i hates that. console output from the tools might say more Oct 18 22:19:02 *hated Oct 18 22:19:03 eydaimon: Nothing in logcat or console? Oct 18 22:19:38 usually a malformed xml; of course it says something dumb like "you have a bad xml somewhere" Oct 18 22:20:57 eghdk: nothing that sticks out as an error Oct 18 22:21:19 so, AS says, for mac users, see the 'download' button for instructions (since patch is not available) but there is no download button in that dialog Oct 18 22:21:35 main AS page still has 0.2.0 or something Oct 18 22:22:19 If you have that .13 release just update Oct 18 22:22:26 usually some other little folder has an error but only the top level one does Oct 18 22:23:03 SimonVT seems you cant for mac Oct 18 22:23:11 g00s, hp48 better than ti-92 still Oct 18 22:23:12 Yes you can Oct 18 22:23:17 If you have 0.2.13 Oct 18 22:23:43 g00s, and yes, there are hp48 emulators on everything Oct 18 22:23:46 aw shit. i nuked it anyhow, SimonVT know where the 0.2.13 release was? i guess thats the one you had to get a fresh bundle Oct 18 22:23:50 just not the same Oct 18 22:24:08 the hp48 was tank :) Oct 18 22:24:18 it was so satisfying clicking those buttons Oct 18 22:24:54 damnit, google drive api is failing for this user and I have no clue why Oct 18 22:25:08 it's never prompting for permission to access their drive Oct 18 22:25:14 Hi. I'm using ActionBarSherlock. Question: how do I get current menu instance outside of 'onCreateOptionsMenu'? Oct 18 22:25:34 keep a reference to it Oct 18 22:25:37 What I want to do is to hide certain menu items. Oct 18 22:25:44 keep a reference to them Oct 18 22:26:10 JakeWharton, sure, could do that. But that's mutable. So... ugly. :> Oct 18 22:26:23 no choice, really Oct 18 22:26:27 Kay. :) Oct 18 22:26:29 Will do that. Oct 18 22:26:36 Thanks! Oct 18 22:26:36 oh, right, another scala user ;-) Oct 18 22:26:40 michalrus: call invalidateOptionsMenu then Oct 18 22:26:41 pfn, ^_^ Oct 18 22:27:01 invalidateOptionsMenu is also api11+ only Oct 18 22:27:05 in which case, I wouldn't be using ABS Oct 18 22:27:12 Huh. Oct 18 22:27:12 s/I/one Oct 18 22:27:13 so is the action bar Oct 18 22:27:21 he said actionbarsherlock Oct 18 22:27:43 then you can extrapolate and realize i can backport the invalidateOptionsMenu API Oct 18 22:27:43 ActionBarSherlock has invalidateOptionsMenu Oct 18 22:27:44 although... if you use appcompat-v7, instead of actionbarsherlock, there's a compatibility call for invalidateOptionMenu Oct 18 22:27:54 JakeWharton, indeed, is that so Oct 18 22:27:56 never realized Oct 18 22:28:05 FragmentActivity has supportInvalidateOptionsMenu Oct 18 22:28:08 * pfn used abs for 2 days before appcompat-v7 came out Oct 18 22:28:31 i used ABS for two years before i realized nobody uses old versions of android that i care about Oct 18 22:29:55 i guess gradle plugin 0.6.2 will be available in a few hours too Oct 18 22:31:01 "You can now edit your Gradle module dependencies (and add and remove modules) from the Project Structure dialog; you no longer need to edit your build.gradle file by hand." <-- i think everbody should just modify the file instead :| Oct 18 22:31:46 meh, and I just released a version that pulled in 0.6.1 a couple days ago Oct 18 22:32:36 michalrus, I forget, you're using my plugin, right? or the other one Oct 18 22:32:56 I'm drawing a custom view, and I'm drawing 5 lines to make a box, but the lines towards the left side of the view are about 50% larger. Oct 18 22:33:13 I agree, g00s Oct 18 22:33:29 g00s: these are android developers we're talking about Oct 18 22:33:35 have you been in this channel before? Oct 18 22:33:49 :) Oct 18 22:33:51 Uh, uh, I have! Oct 18 22:34:03 Do I get a badge? Oct 18 22:34:06 pfn, jberkel's, but I'm thinking of a switch. I don't really need support for local library projects, but that would be quite nice a feature. Oct 18 22:34:41 * pfn made library projects a no brainer in 1.1.x Oct 18 22:34:55 dl so slow; is tor's laptop serving these files up ? Oct 18 22:35:02 pfn, is your wiki updated to reflect this? Oct 18 22:35:26 Last time I saw it, you had to use Build.scala which looked a bit hairy! Oct 18 22:35:42 Like... more scary than hairy. Oct 18 22:35:45 Whatever. :B Oct 18 22:35:55 It would be nice to be able to do this in one line of build.sbt. Oct 18 22:36:06 Does anyone know how to paint a stoke inside/outside/middle on a custom view? Oct 18 22:36:17 outside ? Oct 18 22:36:30 michalrus, I haven't updated the wiki, I never even wrote a wiki page, but library projects are pretty much automatic from a localProjects key, or project.properties Oct 18 22:36:51 Oh, so a line in project.properties is all I need?! :O Oct 18 22:36:57 pfn, that's great. Oct 18 22:37:04 I'm switching tomorrow. Oct 18 22:37:12 michalrus, pretty much Oct 18 22:37:15 <3 Oct 18 22:37:29 g00s: Yeah, I have a stoke that's being painted in the "middle", so whenever it is "offset" it gets crazy. Oct 18 22:37:38 "advanced" projects still require a build.scala, like referencing a RootProject, or pulling in code directly from github Oct 18 22:38:10 JakeWharton, you probably have a lot of experience of this. Am I right in thinking it's not possible to access xml attribute values in versions of Android before it actually existed? for example, android:fontFamily in ICS Oct 18 22:38:22 correct Oct 18 22:38:26 bah Oct 18 22:38:40 well Oct 18 22:38:42 only on the theme Oct 18 22:38:43 http://stackoverflow.com/questions/8814109/read-newer-theme-attributes-on-older-platform Oct 18 22:38:55 if it's just on styles you can maybe get away with it Oct 18 22:39:03 pfn, ummm, what do you mean by `referencing a RootProject'? Referencing my main project in library project? ;o Oct 18 22:39:04 ah ok Oct 18 22:39:32 https://gist.github.com/pfn/7049299 Oct 18 22:39:37 michalrus, no, RootProject() Oct 18 22:39:51 SimonVT: Hey, so remember how I wanted to paint "outside" of the view, but then we decided to not do that? Well, it's giving me a problem now. Oct 18 22:39:52 if you need RootProject(), or my ArbitraryProject helper, then you need to do it in build.scala Oct 18 22:40:12 ^^ that's what my current project's build file looks like Oct 18 22:40:26 and it loads 5 library projects Oct 18 22:41:14 eghdk: How so Oct 18 22:42:38 So I'm putting the carret on the left side, so the box has to be moved over. Apparently when it paints, it paints right on the line of the view. So the left side (since it's been moved over) looks 50% bigger than all of the other sides. Oct 18 22:43:08 Hopefully that makes sense. Best way I can explain it is like in photoshop, when you stroke… you can stroke inside, outside, or middle. Oct 18 22:43:20 Paint apparently strokes on the "middle" Oct 18 22:43:59 It doesn't make sense Oct 18 22:43:59 michalrus, by RootProject, I mean something like this: https://gist.github.com/pfn/6238004 Oct 18 22:47:47 Ok. Oct 18 22:48:10 pfn, and what about preloaded scala library? Oct 18 22:48:20 I don't believe in preloaded scala Oct 18 22:48:51 pfn, okkk... so it doesn't make things build faster? Oct 18 22:49:14 not with my plugin, no Oct 18 22:49:15 Or rather things proguard faster? Oct 18 22:49:18 Ok. Oct 18 22:51:29 SimonVT: Aw man. This sucks. Basically I draw the left edge of the rectangle over 20 points, and since it's moved over it paints larger. Oct 18 22:51:32 What sorts of things is Scala used for in Android? Ive never used it or never thought Ive needed to.... Oct 18 22:51:41 Anthaas, for beauty <3 Oct 18 22:51:45 (of code) Oct 18 22:51:59 wow, google analytics library has 7k methods O.o Oct 18 22:52:03 michalrus, outside of first builds, my plugin builds stuff faster than the other Oct 18 22:52:14 I'd like to think my code looks fine as it is... Oct 18 22:52:15 I can see if my thoery is correct if I knew how to allow drawing over the boundaries of the view SimonVT Oct 18 22:52:22 then again, setting up a preload on every device/emulator you want to develop on is annoying Oct 18 22:52:41 Anthaas, then you surely haven't seen Scala! Oct 18 22:52:48 pfn, true. Faster, that's kewl. Oct 18 22:52:55 Yeah, I like the look of Java. Oct 18 22:53:03 like the look of java? Oct 18 22:53:04 Easy to read etc Oct 18 22:53:04 * pfn boggles Oct 18 22:53:21 One annoying thing with Android is... build times. :( Oct 18 22:53:32 Anthaas, wut! Oct 18 22:53:40 eghdk: Your theory doesn't make sense.. What you draw is x by y pixels no matter if you draw outside or inside the bounds of the view.. The only difference between the two is the size of the view itself Oct 18 22:54:01 And that you add some padding to make sure you don't draw on top of the child views Oct 18 22:54:05 outside of clean builds, most of my developing builds take 6-10 seconds Oct 18 22:54:14 Anthaas, MethodIdentifierModelParameterDecoratorStrategyBean? Oct 18 22:54:31 pfn, :O whoa. Oct 18 22:55:04 michalrus, http://pastie.org/8413176 Oct 18 22:55:08 michalrus: wtf is that? Oct 18 22:55:15 Anthaas, java ;=) Oct 18 22:55:31 Of what? Oct 18 22:55:37 pfn: why zipalign? Oct 18 22:55:52 JakeWharton, why not? it takes next to no time Oct 18 22:55:58 and it improves on-device performance Oct 18 22:56:14 * michalrus lieks teh last line Oct 18 22:56:17 takes non-zero time and isn't required Oct 18 22:56:57 SimonVT: It makes perfect sense (probably because I'm staring at it), but my points are offset from the left, and apparently its causing the lines to show up bigger. Oct 18 22:58:16 If I take all of the 20's and change the to zeros, then it looks perfect. But since I'm accounting for the offset for the little caret the lines look bigger than all of the others. Oct 18 22:58:19 Point[] myPath = { new Point(20, 20), new Point(20, 0), Oct 18 22:58:19 new Point(width, 0), new Point(width, height), Oct 18 22:58:20 new Point(20, height), new Point(20, 40) }; Oct 18 22:59:49 i'm thinking about singing up for google+ just to make an impassioned plea to android-tools to cut the shit with GUI editor for gradle DSL (its a fucking DSL, supposed to be humanly consumable) and focus on real problems like tooling help for apps > 64k methods. The crap they are adding is just bloat, more complexity, and will inevitable come with more bugs. Oct 18 23:00:32 the ADT manifest editor is such a piece of crap, just edit the xml - i hope this isn't whats going to happen Oct 18 23:00:35 Anthaas, or should I rather write ``MethodIdentifierModelParameterDecoratorStrategyBean bean = new MethodIdentifierModelParameterDecoratorStrategyBean();'' ^.~ Oct 18 23:00:49 g00s: adt-dev@ Oct 18 23:01:11 aha Oct 18 23:01:12 michalrus: Long class names can come in all languages - the essence of what you are doing is easy to read though... Oct 18 23:01:15 thanks Oct 18 23:03:58 SimonVT: Can't find anything in the API about setting the paint inside or about showing more space of a view. Should I try clipping bounds? Oct 18 23:03:59 Anthaas, one small part of the essence could be that you have to write ``SomeClass k = new SomeClass();'', a ton of unnecessary letters, to just create an object. Why repeat yourself? Etc. Oct 18 23:04:40 michalrus: It is still easy to read though - a few unnecessary letters doesn't make that statement any less true Oct 18 23:05:36 Anthaas, the less clutter, the easier it is to read! Oct 18 23:07:42 Anthaas, "public int one() { return 1; }" vs. "def one = 1"; I'd say the latter is way easier to maintain. (And both generate the same bytecode.) Oct 18 23:07:54 Sorry for interrupting, I'm populating a list view adapter using a cursor loader and a content provider. The content provider returns a cursor prepared through a rawQuery. the query retrieves data from TableA and TableB. Oct 18 23:08:18 at a later stage, I'm using a broadcast receiver to update Table B. Oct 18 23:08:40 michalrus: It is still easy to read. Oct 18 23:08:43 The listview does not got updated by itself, unless I restart the loader. Oct 18 23:09:15 sulaiman maybe your uri notification is broken Oct 18 23:09:39 I am using cursor.setNotificationUri and getContentResolver().notifyChange in the povider Oct 18 23:09:54 g00s, should it also work with raw queries? Oct 18 23:09:59 sure Oct 18 23:10:24 i use in one app; provider for queries, straight DB for inserts Oct 18 23:10:32 uh, CQRS in one app Oct 18 23:10:34 Anthaas, sure, consider one more example "runOnUiThread(new Runnable() { @Override public void run() { doSth(); } })" vs. "runOnUiThread { doSth }". ;-) Oct 18 23:11:02 Anthaas, especially if you nest various object that are used only because you can't freely pass functions. Oct 18 23:11:17 Anthaas, a nightmare, if you'd ask me. Oct 18 23:11:30 g00s, so when I am updating table B, i should notifyChange( ) ? Oct 18 23:12:27 sulaiman how you design the uris takes some consideration; i guess you have a join since table a and table b ? Oct 18 23:12:44 but no, there is nothing magical about notifying a uri for a table Oct 18 23:13:50 g00s, yes, it's a join between Table A and Table. It works for other list view adapters I have, but those don't use a rawQuery Oct 18 23:14:51 The uri you pass to setNotificationUri has to be the same as the one you notifyChange Oct 18 23:15:39 notify all the things Oct 18 23:15:44 \o/ Oct 18 23:15:58 You don't necessarily want to notifyChange on the uri for table a when you update table b.. But then you can make a new uri for use when joining them Oct 18 23:16:04 And notify that when updating either table Oct 18 23:16:25 gmail does strange things with notifications Oct 18 23:16:32 i still havent totally figured it all out Oct 18 23:16:36 (remember you can call notifyChange on multiple uri's.. a cursor can only listen to one) Oct 18 23:18:06 i find it challenging making the notification tree for complex data models Oct 18 23:18:50 thanks SimonVT, that gave me the insight to fix the issue. Oct 18 23:21:30 It isn't too bad.. Usually you have a base uri for each table that all other uri's build on.. Then just notify the base uri Oct 18 23:26:09 this was on HN today http://dannyroa.com/2013/10/17/why-its-time-to-support-only-android-4-0-and-above/ Oct 18 23:31:36 He lost me at holoeverywhere Oct 18 23:32:57 I wonder on percentages Oct 18 23:33:01 for example what Oct 18 23:33:07 % is still using froyo Oct 18 23:33:13 gingerbread and so on Oct 18 23:33:31 Like http://developer.android.com/about/dashboards/index.html ? Oct 18 23:34:18 i'm still waiting for dev console to give me a % breakdown based on screen size (of users of my app) Oct 18 23:34:19 oh nice Oct 18 23:34:30 wow Oct 18 23:34:35 XXCoder you never saw that ? Oct 18 23:34:46 surpising large users use gb still Oct 18 23:34:53 g00 nope Oct 18 23:35:30 g00 theres stats on small - xlarge Oct 18 23:35:43 gb is like the xp of the Android world Oct 18 23:36:09 looks like. I was on cleangb for quite a long while. Oct 18 23:36:38 g00 while its definitely not screen size it might help Oct 18 23:37:07 hey g00s Oct 18 23:37:20 hi zquad Oct 18 23:38:09 i like the aesthetics of the N5 more than any previous N phone Oct 18 23:38:14 very nice :) Oct 18 23:40:13 I wrote some code to take a picture in a background process http://pastebin.com/f9qvRcxi but getting an error takePicture failed Oct 18 23:43:11 There are big warnings in the docs that you must have a preview set Oct 18 23:43:50 Or well, same size just bold Oct 18 23:49:15 JNI UnsatisfiedLinkError driving me crazy. All the details: http://pastebin.com/ikenYQm3 . Help me release a FOSS live video streaming library for Android! Oct 18 23:51:31 ps put together an example of how to build NDK with Android Studio / Gradle: https://github.com/OnlyInAmerica/Android-JNI-Gradle Oct 18 23:51:58 with a little bash script wrapper around ndk-build that packages your shared libraries as a .jar in Gradle's build path Oct 18 23:59:16 Hi all, does anybody know the default launcher package name for the Verizon Galaxy S4? Or perhaps how I can find out what it is? I'm trying to launch the only CATEGORY_HOME package found on my device, com.sec.android.app.easylauncher, but the package manager can't seem to find a launching intent for it. Oct 18 23:59:18 Is there anything else than Paint.setAntiAlias() I can use to improve drawing quality Oct 18 23:59:35 I'm just testing things out, and this http://paste.strictfp.com/39430 is giving me http://imgur.com/qS1jGg0 Oct 18 23:59:40 and setting anti aliasing on gives a marginal improvement Oct 19 00:00:07 (while drawing on a Graphics using that code would give a very nice circle) Oct 19 00:00:14 yeah post-gingerbread drawing sucks Oct 19 00:00:24 expecially at thickness below 2 Oct 19 00:00:37 This is in the emulator though Oct 19 00:00:43 can i expect better quality on the actual device? Oct 19 00:01:05 dbro: sure it's loading the lib properly in the first place? Oct 19 00:01:22 dbro: and sure it's loading the version you think it's loading? Oct 19 00:01:52 dbro: for example, eclipse is stupid - if you only edit the jni side and don't make a change on the java side, it won't trigger a re-link of the new apk Oct 19 00:02:26 n3ss3s: example https://dl.dropboxusercontent.com/u/53432577/badrender.png Oct 19 00:02:35 left is old froyo, right is ICS Oct 19 00:02:37 dragorn: thanks immensely for the braincycles Oct 19 00:02:46 dragorn by any chance, hear anything about N7 / BLE ? my neighbor who was initially happy with his N7 had some data corruption and ongoing USB issues. not so sure any more. maybe thats why LG will do the 2014 N7 from what i've heard :) Oct 19 00:02:57 XXCoder: Holy hell Oct 19 00:02:59 g00s: i have not, i ended up being out of town this week Oct 19 00:03:03 yeah Oct 19 00:03:05 ;) Oct 19 00:03:13 g00s: plus side, I might not be unemployed anymore :) Oct 19 00:03:19 congats Oct 19 00:03:24 dragorn :D \o/ Oct 19 00:03:32 dragorn: FWIW I'm using AS + Gradle. I see dalvik: Added shared lib /data/.../libFFmpegWrapper.so and NDK: loaded library in Logcat before the unsatisfiedlink Oct 19 00:03:44 dbro: I didn't think AS worked w/ JNI at all. Oct 19 00:03:48 hard to imagine dragorn unemployed; you seem like a pretty smart cookie Oct 19 00:04:00 dbro: I haven't tried since my AS projects have been independent of my JNI projects Oct 19 00:04:11 dragorn: I wrote a simple wrapper around ndk-build that packages sos as jars and adds to gradle's build path Oct 19 00:04:18 dbro: ah Oct 19 00:04:41 dragorn: I've tested this rather jangly method works: https://github.com/OnlyInAmerica/Android-JNI-Gradle Oct 19 00:04:54 dbro: so nothing is leaping out at me in your code that makes me think you're doing something wrong... if your device is rooted, can you go into the installed app and pull the lib out and inspect it? Oct 19 00:05:55 dragorn: actually not rooted, but have the decompressed apk? How do I meaningfully inspect a binary .so? Oct 19 00:06:31 dbro: 'nm' is a good place to start, you'll want to use the ndk one (arm-none-eabi-nm or something, I forget the ndk name) Oct 19 00:06:54 dragorn: beautiful, thank you tons Oct 19 00:07:04 dbro: you could also try writing a preload function in the lib Oct 19 00:07:05 and logging Oct 19 00:07:16 ahh the JNI_ONLOAD? Oct 19 00:07:58 well, gradle 0.6.2 'clean' blows up with "> Failed to notify project evaluation listener. Oct 19 00:07:58 > java.lang.NoClassDefFoundError: com/android/ide/common/res2/MergingException" Oct 19 00:07:58 dbro: yeah; link in the android logging libs and make sure at least that it's loading what you think it's loading by logging in the ONLOAD Oct 19 00:09:06 good idea, trying that out Oct 19 00:10:33 dbro: you can also look at your class sigs with javap on your class files and make sure you're getting what you think Oct 19 00:11:22 looks like gradle-plugin 0.6.2 is pretty broken; someone already filed a bug :) that saves me the hassle at least. best to stick with 0.6.1 Oct 19 00:11:50 poor guys release stuff on friday evening ;) Oct 19 00:12:54 dragorn: got it Oct 19 00:12:58 dbro: http://kismetwireless.net/gitweb/?p=android-pcap.git;a=summary might help, but it's not the gradle stuff Oct 19 00:13:52 dbro: got it = fixed it? Oct 19 00:14:04 dragorn: not yet, I wish Oct 19 00:14:23 dragorn: would love to start this weekend with this fixed. Here's hoping Oct 19 00:15:17 dbro: $0.02? Make a quick project of just the test wrapper in eclipse Oct 19 00:15:26 dbro: satisfy yourself that it's not your JNI links Oct 19 00:15:58 b/c I don't see anything in your JNI that jumps out at me - other than like, capitalization. That'll get you, I didn't see any wrong tho Oct 19 00:19:07 I'm going to check on JNI_ONLOAD first. I sort of kind of dread returning to Eclipse :) Oct 19 00:21:56 Hmm, Google Chrome won't open. Oct 19 00:22:08 I click, it does some loading, and then stops. Oct 19 00:22:28 Wow Oct 19 00:22:44 One process of it is taking 56,128K and counting... Oct 19 00:23:27 Why when I click Chrome does it open 9 processes Oct 19 00:23:44 Odd Oct 19 00:23:51 every time chrome tried to update itself i would get Error -12 or something Oct 19 00:23:56 i just deleted it Oct 19 00:23:59 FF ftw ! Oct 19 00:24:06 Yeah thats what I normally use Oct 19 00:24:07 do you have chrome addons, anthaas? Oct 19 00:24:20 I do, but never caused an issue before Oct 19 00:24:29 a lot of the addons like to spawn their own process. Oct 19 00:24:46 At least the junkware toolbars seem to. Oct 19 00:25:05 Hmm, just won't open. Oct 19 00:25:05 "For now, the immediate workaround is to use 0.6.1 as shown above." Oct 19 00:25:45 snowinferno: there likely isn't a launch activity for it, that would cause it to show up in the app drawer, which would be kinda weird for a home screen app Oct 19 00:26:29 right but how would you programmatically invoke the home screen or a particular launcher (provided it is installed)? Oct 19 00:28:03 snowinferno: send an explicit intent to the CATEGORY_HOME activity Oct 19 00:31:27 I see, that launches the default home activity, if the device has a separate launcher installed and set as default home activity is there no way for me to launch Samsung's home activity instead? Oct 19 00:34:50 I want to do so much programming, but I need to do all the project management stff :( Oct 19 00:36:37 snowinferno: an explicit intent is one where you explicitely set the component to launch Oct 19 00:37:11 Background: I worked for a year at an app company that completely ignored all of the design guidelines (which are beautiful), did everything to 2.2, make everything match iOS, and it was just all awful. Oct 19 00:37:18 it doesn't go through the intent resolution stuff, it just launches what you tell it to Oct 19 00:37:26 I get developmental freedom on this app - and I am too excited about everything hahaha Oct 19 00:37:50 Anthaas a friend is working on a project like that; also AbsoluteLayout and crashes from 1 of 7 analytics / advertising libraries Oct 19 00:37:54 Im gonna send them the link on the play store once its done too because I argued for so long that it should be done this way Oct 19 00:38:03 snowinferno: see: http://developer.android.com/reference/android/content/Intent.html#setComponent(android.content.ComponentName) Oct 19 00:38:21 g00s: Ouch - I know the pain he is going through :/ Oct 19 00:38:35 there is no reason for the app to exist, really Oct 19 00:38:49 JesusFreke: So the intent with CATEGORY_HOME would in fact me implicit :p Oct 19 00:38:52 We often (I say often, nearly every project) had clients coming back to us too saying things don't do what they want, but thats because we had 0 documentation. There literally was not 1 document. Oct 19 00:39:04 g00s: Most of the apps I was involved in were like that too. No reason whatsoever. Oct 19 00:39:15 "we need a mobile app!" Oct 19 00:39:22 No you don't.] Oct 19 00:39:44 You are a small night club in a tiny town, in an insignificant area of your country. You do not need an app. Oct 19 00:40:17 this app has that weird iOS picker wheel faux copy Oct 19 00:40:24 JesusFreke: ahh, that sounds like what I want, I'll give that atry. Thanks! Oct 19 00:40:25 looks like such crap , heh :D Oct 19 00:40:31 The usual attitude of our company was: "If they are stupid enough to want one, we are happy enough to take their money" Oct 19 00:40:40 Fair enough, common sense in business really. Oct 19 00:40:50 Except because of the issues I stated before, we were always losing money from them. Oct 19 00:40:59 Yeah, iOS really shouldn't be emulated on Android. Oct 19 00:42:02 22nd is almost here, :) Oct 19 00:42:13 Is this when we expect KitKat and N5? Oct 19 00:42:20 (I hear they are being released together) Oct 19 00:42:26 so where is my kitkat !?!? Oct 19 00:42:27 oh, thats the apple event. i think kitkat is 24th Oct 19 00:42:31 Ahhh Oct 19 00:42:46 Apples Event: "Please don't forget that we are also relevant!" Oct 19 00:42:59 * shmoooz crosses arms and continues to tap feet Oct 19 00:43:07 Hahaha Oct 19 00:43:14 Theres a joke in England about Kitkat Oct 19 00:43:28 Man walks into a shop, "Hi, can you get me a KitKat Chunky?" Oct 19 00:43:45 Shop keeper walks off, comes back with a kitkat chunky Oct 19 00:43:51 "No, the regular one you fat twat." Oct 19 00:44:31 I've never heard of a kitkat chunky Oct 19 00:44:46 I love kitkat dark Oct 19 00:44:59 Google it Oct 19 00:45:03 Its like one massive finger Oct 19 00:45:08 Nice Oct 19 00:45:22 I like to eat 4 of them at once and pretend I stole it from a giant Oct 19 00:45:24 (Other confectionary providers are available) Oct 19 00:45:27 ^ Oct 19 00:45:30 love that :P Oct 19 00:45:46 I hate when it melts on to the paper and you gotta lick the paper Oct 19 00:46:32 the wrapper I mean Oct 19 00:46:47 I know a guy that melts is slightly just so it does that Oct 19 00:47:37 <^cheeky> yummmmmmmmmmm Oct 19 00:48:32 the only other chocolate I like is ferrero rocher, would have been better than froyo Oct 19 00:48:45 <^cheeky> yummmm again !!!!! Oct 19 00:48:49 <^cheeky> favs Oct 19 00:48:56 Cadbury's = best chocolate. Oct 19 00:50:02 cadbury makes cheap candies Oct 19 00:51:21 Fererro makes Kinder Bueno which is better imo Oct 19 00:52:26 yeah those are nice, I thought they were for kids at first Oct 19 00:52:50 it almost tastes the same Oct 19 00:54:14 SimonVT: I used "CATEGORY_HOME" as an adjective to the activity, not an intent Oct 19 00:54:49 JesusFreke: It seems I need to know the class name to launch inside the package to use an explicit intent, is there a way for me to find out what their class is? Oct 19 00:55:28 snowinferno: yes, construct an implicit CATEGORY_HOME activity like you would use to launch the default home app Oct 19 00:55:52 And then there's a method in package manager to get back all the activities that can match that intent Oct 19 00:56:03 err, construct an implicit CATEGORY_HOME intent, rather Oct 19 00:56:24 I don't recall the exact name of the method in PackageManager, but I'm sure you can find it :) Oct 19 00:56:32 ahh! thanks again JesusFreke! Oct 19 00:56:48 and then you just look through that list for the one in the package you want (assuming you know the package name) Oct 19 01:08:55 JesusFreke: I tried the explicit intent but it is unable to find the explicit class, I guess I'll have to do it the implicit way and mandate (since i'm in a position to do that) that the users not have an alternate launcher set as default Oct 19 01:13:17 snowinferno: define "unable to find the explicit class"? Oct 19 01:15:53 I get an illegal state exception, as part of the stacktrace i see "Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.sec.android.easylauncher/Launcher}; have you declared this activity in your AndroidManifest.xml?" Oct 19 01:18:15 this is the code I'm using, I put a breakpoint in after querying the intent activities to find the class name: http://pastie.org/8413387 Oct 19 01:38:07 I think I understand TDD more Oct 19 01:38:19 TDD is good when you have many developers Oct 19 01:38:30 It's more of a waste when it's just you Oct 19 01:39:24 TDD? Oct 19 01:39:30 i've never done TDD but i would agree with that Oct 19 01:39:41 Im not great with initialisms etc Oct 19 01:39:48 <|0xD34D|> test driven design Oct 19 01:39:52 Ahhh Oct 19 01:39:55 Yeah, makes sense. Oct 19 01:40:00 you're more likely to unknowingly break something that you need a test suite to catch when you have multiple devs working on a proj Oct 19 01:41:30 Might do my final year project using the Scrum methodology. Oct 19 01:41:33 1 man scrums. Oct 19 01:41:39 WOOO Oct 19 01:41:46 I'll have a hell of a time. Oct 19 01:42:17 If I have fragments that have to access a service how should I communicate? Can I pass the service connection from an activity to the fragment? Oct 19 01:42:56 Wouldnt you pass stuff to the activity holding the fragment, and have the activity deal with stuff? Oct 19 01:43:03 I don't think its a good idea to bind to the service from a fragment right? Oct 19 01:43:21 Anthaas, how would I pass the service connection in the activity to the fragment? Oct 19 01:43:34 Couldn't say, I was just speculating on how it would be done, sorry. Oct 19 02:22:19 Quiet in here tonight... Oct 19 02:32:11 Hello! How do I measure the size a button will have on screen? Oct 19 02:32:54 When it is already on there? Oct 19 02:33:07 Or before? Oct 19 02:55:24 Friday nights are always slow **** ENDING LOGGING AT Sat Oct 19 02:59:58 2013