**** BEGIN LOGGING AT Sun Sep 15 02:59:59 2013 Sep 15 03:00:07 gridlayout Sep 15 03:00:11 I haven't done Android dev since 2.2 and I have no idea what I'm doing Sep 15 03:00:39 GridLayout was introduced in 4.1 or so, but there is a version as a extra part of the support lib to let you use it on earlier versions of android Sep 15 03:01:39 * pfn hasn't ever used grid layout o... Sep 15 03:02:10 kevinb: Is it typical to use other layouts nested inside the gridlayout? Sep 15 03:02:30 Or just allow gridlayout to handle all elements inside it? Sep 15 03:02:46 probably other layouts, but if you get really complex with nesting then performance can suffer Sep 15 03:05:19 kevinb: Cheers Sep 15 03:19:31 I'll ask a last time, maybe some people did not see.. Sep 15 03:19:31 .... I followed these steps: http://stackoverflow.com/questions/6678665/add-jar-file-in-android-sdk to add a library to my project. Now, I'm getting an error with the imported library, the .jar file, but its files do not show up in my project!... How do I make them show up there in order to pinpoint the cause of the error? Sep 15 03:19:31 I have a service and a receiver for receiving SMS events. Sep 15 03:19:38 oh and that's the error: https://gist.github.com/kovek/6567432 Sep 15 03:22:29 viereses? lol Sep 15 03:23:24 I have a service and a broadcast receiver for receiving SMS events. How can I get the fields from the service in the broadcast receiver? Sep 15 04:24:21 I have a service and a broadcast receiver for receiving SMS events. How can I get the fields from the service in the broadcast receiver? Sep 15 04:31:30 Are BroadcastReceiver's only instantiated once? Sep 15 04:38:36 depends Sep 15 04:38:48 manifest receivers are created on demand Sep 15 04:39:17 registered receivers are only created as many times since you create them Sep 15 04:39:44 speaking of registered receivers, can they be targeted by an intent component? Sep 15 04:39:51 pff I just put in placeholders Sep 15 04:40:31 until I can get real ones Sep 15 04:47:04 why am I getting this roboguice message when I run the app ? "To support reclaiming this class loader, either resolve the underlying issue, or move Google Collections to your system class path." Sep 15 04:47:33 When I send a message with SmsManager.getDefault().sendTextMessage(to, null, response, null, null); it doesn't show up in the messaging app. How can I make it show up in the messaging app? Sep 15 04:58:44 Does anyone here have a good solution for keeping your eclipse workspace synced between two computers (local network) Sep 15 04:59:24 phil_bw, Make your workspace in your Dropbox folder or use a git/svn repository Sep 15 04:59:39 good night Sep 15 04:59:59 Byee! Sep 15 05:00:08 Bitwise, I tried just syncing the workspace folder over my network to my laptop (using SyncToy) and it would not load Sep 15 05:00:17 gave a metadata error Sep 15 05:00:33 Just use a git repo haha Sep 15 05:01:25 I really don't need version control, I'm the only developer. I've used git on other projects and it's nice to have a history, I just don't really need it for this Sep 15 05:01:49 I guess I'm confused as to why git or dropbox would work for keeping my projects synchronized but simply copying over the network wont Sep 15 05:02:15 phil_bw, Just use Dropbox haha Sep 15 05:02:40 A quick update to the guy who was helping me yesterday, I got everything working with the NDK and STL. I ended up having to do a fresh install of my whole OS in a VM to do it, but it was worth it XD Sep 15 05:03:14 Using dropbox for syncing code has never worked well for me. git only takes a few minutes to setup, and the versioning comes in handy Sep 15 05:08:47 awesome its almost where I want to be now. Sep 15 05:08:58 just need opitizions, setting features so on Sep 15 05:09:05 kevinb: thanks a lot Sep 15 05:12:26 no problem, glad you're making progress Sep 15 05:13:17 Has anyone else had problems with the webview's performance? I was using it with a jquery based graphing api, and the frame rate for animations was terrible. And I couldn't control scrolling inside of it. (I tried all the cache tweaks for speed, and the various scrolling "hacks" all over the internet) Sep 15 05:13:19 I would love to use alpha_8 to do stuff but it works well Sep 15 05:14:44 Hi, I was making a Custom SimpleCursorAdapter which has a TextView+Some buttons including a delete button. Sep 15 05:15:45 Now when I press the delete button I am able to delete that data from the database, but I am not able to refresh the list, I also called notifydatasetchanged() Sep 15 05:37:04 I'm trying to figure out what open ports and files an app has open… how do you folks do this efficiently? I'm obviously missing something painfully obvious here… Sep 15 05:46:32 FYI I'm trying to get debug output but Android seems to eclipse this in various ways Sep 15 05:47:07 For example standard lsof doesn't give me anything I can grep… "com.sec.a" instead of "com.sec.android…" Sep 15 06:01:54 yawn Sep 15 06:02:47 Just waking up canadiancow? Sep 15 06:02:49 :P Sep 15 06:02:52 no Sep 15 06:02:57 im waiting for a flight Sep 15 06:03:03 upon which i intend to pass out Sep 15 06:13:19 a flight? going to? Sep 15 06:15:33 Hm, is there any way to buy older Nexus phones for testing? Sep 15 06:15:43 ebay Sep 15 06:15:48 Figured. Sep 15 06:15:53 heh Sep 15 06:16:00 just get an older factory image Sep 15 06:16:07 Need to get a Galaxy Nexus 'cause it's showing weird performance behavior Sep 15 06:16:23 darn thing is slow as shit Sep 15 06:16:55 I can't wait for something worth buying on vzw Sep 15 06:17:08 damn asshole network Sep 15 06:17:09 That is, it's really freaking slow despite a Galaxy S2 running the same thing fine, which doesn't make sense to me. Sep 15 06:17:55 get the user to send you a traceview Sep 15 06:18:08 if you shipped it in debug mode Sep 15 06:18:35 I'll have to throw a debug build up on Play for testing. Sep 15 06:18:49 I'm going to have so much fun walking them through doing that. Sep 15 06:19:38 It's going to be like training a cat to do shadow puppets. Sep 15 06:19:59 Which I assume is incredibly difficult. Sep 15 06:23:20 free app? Sep 15 06:31:49 No, it's just still in testing, so I've been trying to get people to test it despite Google being horrible and making me charge testers for the app Sep 15 06:33:02 How do you call an app that works really fast? I'd say responsive, but that will be confused with the web design thing Sep 15 06:38:31 Performant, responsive, fast, etc. Sep 15 06:38:39 I'd say "fast" works. Sep 15 06:38:43 People know what "fast" means. Sep 15 06:38:50 Even though it's really vague. Sep 15 06:39:17 responsive and fast aren't technically the same thing Sep 15 06:39:58 thanks Sep 15 06:40:06 I'd guess it depends on where the fast is. Sep 15 06:40:17 Responsive strictly means something responds Sep 15 06:40:21 Performant vs Swiftness... Which one do you think it's clear? Sep 15 06:40:28 It doesn't indicate how fast Sep 15 06:40:53 Orbitrix: I'm okay with being "not 100% clear" Sep 15 06:41:09 you can also mean thorughuput vs latency... speed can mean tons of things Sep 15 06:41:28 Especially with people's names it seems Sep 15 06:42:03 how would you refer to an app that doesn't have bugs or errors? as an adjevtive? Sep 15 06:42:08 other than bug-free Sep 15 06:42:21 sorry, I meant as a noun Sep 15 06:42:56 an app which is drawing 2500 sprites on screen and maintaining 60fps is fast... if it takes a second to notice a tap on the screen, it's not very responsive Sep 15 06:43:32 gavilan2: what are you actually doing? Sep 15 06:44:45 Leeds: writing a doc Sep 15 06:58:29 how do I check whether an int is null? Sep 15 06:59:02 rymate1234, an integer is a number that'll never be null ? Sep 15 07:00:18 oh Sep 15 07:00:31 rymate1234: Integer may be null, int will not Sep 15 07:00:48 http://stackoverflow.com/questions/18809561/issue-with-building-app-engine-endpoint-module-on-android-studio-maven Sep 15 07:01:10 Someone check it out please? This app engine endpoints module is driving me insane! Sep 15 07:55:39 im good with sql guys Sep 15 07:55:49 android.database.sqlite.SQLiteException: near "where": syntax error (code 1): , while compiling: SELECT _id, title, body FROM notes WHERE where cat_id = 0 Sep 15 07:55:49 cool Sep 15 07:56:02 where where, awesome :P Sep 15 07:57:13 hello how can I fix this error: No private recovery resources for TARGET_DEVICE haida No recovery.fstab for TARGET_DEVICE haida Sep 15 07:57:34 i'm trying to build otapackage Sep 15 08:34:54 Grrr, why must you be deprecated, Display.getPixelFormat Sep 15 08:58:15 http://pastebin.com/THLdBxTr -- on mQuestionTextView.setText(question); how does it know what index/array to use? Sep 15 09:01:59 xrazybud: um, because you did getQuestion() in the previous line? Sep 15 09:02:14 getQuestion returns an int though Sep 15 09:02:23 that's all it is? Sep 15 09:02:58 so you're trying to setText an int? that won't work well... Sep 15 09:03:08 it does work Sep 15 09:03:16 Resource id's are ints Sep 15 09:03:27 ah... yes Sep 15 09:03:27 ooh.... Sep 15 09:03:55 meh, /me goes back to not answering questions badly Sep 15 09:04:03 ah ok i get it now thanks Sep 15 09:44:01 What is "LoaderCallback" For ? Sep 15 09:45:20 https://developer.android.com/guide/components/loaders.html#callback Sep 15 09:50:21 can anyone point me in the right direction, i need the user to upload a photo to the app and be able to move it around Sep 15 09:50:35 no idea what to google for Sep 15 10:08:33 Why do you keep disappearing from my APK, ViewPager? What did I do to anger you? Sep 15 10:09:10 pardon my newbness, but, is pure google, vanilla, and stock rom all stating the same thing? Sep 15 10:10:35 screwsss: no, imho. You have to try hard to discern what is implied. Sep 15 10:10:59 "vanilla" and "stock" are probably synonymous, but google? That could mean AOSP or presence of the google apps suite Sep 15 10:11:20 or perhaps stock rom if it's a google-branded phone. Who knows. Sep 15 10:13:19 Or might refer to using only libraries from Google but not strictly what comes on Android Sep 15 10:15:50 Heya folks, quick question - I've got a seek bar inside of a fragment that's inside a drawerlayout Sep 15 10:15:53 i have a galaxy note 2 n7105 Sep 15 10:16:08 i dont like, u know the rom it came with, came with a lot of bloatware Sep 15 10:16:09 unfortunately, I can't scroll it since the drawer layout is zealous about its focus Sep 15 10:16:15 and won't let the seek bar get it Sep 15 10:16:16 and im not a massive fan of touchwiz either for that matter Sep 15 10:16:22 but i cant find a pure google for it Sep 15 10:16:35 I've tried overriding the drawerlayouts requestChildFocus but to no avail, it doesn't even get called Sep 15 10:16:41 anyone got any idea? Sep 15 10:17:08 screwsss: my suggestion would be to check if cyanogenmod supports it, and install that Sep 15 10:17:37 10.1 is pretty good nowadays, and they usually have per-device wiki instructions for how to install Sep 15 10:17:47 having said that tho..... Sep 15 10:17:51 i dont wana lose s pen functionality Sep 15 10:31:36 alankila Sep 15 10:39:55 in case anyone's interested I solved the seekbar issue by overriding its onTouchEvent and requesting the drawers requestDisallowInterceptTouchEvent Sep 15 11:04:40 theres no cyanogenmod avilable for me phone neway Sep 15 11:04:44 screwsss: #android-root Sep 15 11:05:19 p_l: are you selling any galaxy s4's Sep 15 11:10:04 screwsss, I am :P Sep 15 11:10:26 ATT no contract, no service, 16GB SGS4, $450 Sep 15 11:10:32 White Sep 15 11:10:41 NUTS, i really wanna black Sep 15 11:10:44 any scratches? Sep 15 11:10:47 Zero Sep 15 11:10:53 I don't use it as a regular phone Sep 15 11:10:57 $430 inc postage to austrlaia? Sep 15 11:11:06 did samsung give it to u as a dev? Sep 15 11:11:13 I use it for software development only, so it has never left my bed room Sep 15 11:11:30 No. I bought it from ATT Sep 15 11:11:40 is it i9505 Sep 15 11:11:46 Yes, the i9505 Sep 15 11:12:18 can you paint it black :P Sep 15 11:12:50 Sure, lemme get a sharpie :P Sep 15 11:13:37 I bought it because it was the first phone to have the drivers for OpenGL ES 3, but now I don't need it because my DNA has the same drivers Sep 15 11:14:49 :P ur dna? Sep 15 11:14:55 screwsss, HTC DNA Sep 15 11:15:25 screwsss, If you want, I can slap it up on a ebay auction for $430 with buy it now so neither one of us get screwed Sep 15 11:23:31 hrmmmmmmmmmmmmmmmmmmmm Sep 15 11:23:34 why so cheapious Sep 15 11:24:50 screwsss, cheapious? Sep 15 11:25:16 I don't understand your word Sep 15 11:26:17 cheap Sep 15 11:26:19 i meant to say Sep 15 11:26:30 it was a play on words Sep 15 11:26:33 i meant to say serious Sep 15 11:26:53 Oh Sep 15 11:27:23 screwsss, That's about the price I seen them going for on Ebay, in USD of course Sep 15 11:29:05 im just thinking if it would be worth it for me to buy from u Sep 15 11:29:08 then sell her down under Sep 15 11:29:13 i think i could make a profit Sep 15 11:29:55 haha, go for it. You know if the ATT version is locked to their network or not? Sep 15 11:30:25 I don't have a GSM carrier around where I live to test it Sep 15 11:30:35 wouldnt have a clue brother youll hav to go to the att website and go to wherever u unlock ur phone and punch in the imei Sep 15 11:31:37 if you haven't unlocked it, you can assume any phone you buy from a US carrier is locked Sep 15 11:31:43 ah Sep 15 11:31:54 oh, ATT does let you do it online, fancty Sep 15 11:31:55 and even if you unlocked it, you can expect frequency issues? ;) Sep 15 11:33:04 particularly with Oz - don't they use some funky frequencies down there? Sep 15 11:33:18 if its i9505 it at least has the potential to be unlocked Sep 15 11:33:52 Ah. I'm going to have to call them to get it unlocked since I never activated it with them Sep 15 11:35:14 ahk all good then Sep 15 11:35:30 The corporate stores were /very/ adament about selling me a device without service and no contract :P Sep 15 11:35:40 might be a poor idea to buy a phone from america when i live in australia considering you guys have all sorts of crazy locked down rules Sep 15 11:37:01 screwsss, I can call them in about a half hour to get it unlocked if you really want it Sep 15 11:37:18 do u think theyll let you unlock it Sep 15 11:37:30 Yea, if it isn't on a contract then they let you do it Sep 15 11:38:19 can you actually buy an unbranded, no-carrier phone in the US? Sep 15 11:38:27 Leeds, Sprint Sep 15 11:38:36 um, no - Sprint is a carrier Sep 15 11:38:40 Sonicadvance1: isn't Sprint a carrier? Sep 15 11:38:41 I think their SGS4 is unbranded though Sep 15 11:38:46 also, they're bloody CDMA Sep 15 11:38:56 :P Sep 15 11:39:12 CDMA? how can that be called "non-carrier"? Sep 15 11:39:35 if it was black Sonicadvance1 i would seriously consider it. Sep 15 11:39:36 I was going more towards the word unbranded Sep 15 11:40:22 okay then Sep 15 11:40:42 so all phones in US are essentially carrier-branded? Sep 15 11:40:54 screwsss, aw, here I almost had a sale. Trying to get rid of this bloody thing Sep 15 11:41:00 I have seen images with branded phones but is it really that mainstream? Sep 15 11:41:02 sigv, Yea Sep 15 11:41:07 whoa. Sep 15 11:41:08 nearly every phone is Sep 15 11:41:11 Sonicadvance1: does it come in original box and accessories Sep 15 11:41:21 screwsss, Yea, I've got everything for it Sep 15 11:46:32 screwsss, https://docs.google.com/file/d/0B2mTNE31f5JTRFl5QU5ZM1hQS2c/edit?usp=sharing Image Sep 15 11:52:21 wow Sep 15 11:52:22 yeh Sep 15 11:52:25 its the real deal Sep 15 11:52:35 man i was pretty deadset on a black one Sep 15 11:52:47 :P Sep 15 11:54:29 screwsss, You did you homework to make sure ATT signals work with AU? Sep 15 11:56:00 this is as asopy as the note 2 n7105 gets btw: http://forum.xda-developers.com/showthread.php?t=2331916 Sep 15 11:56:13 Sonicadvance1: its the international version of the handset? Sep 15 11:56:19 i just slot my sim card in and good to go Sep 15 11:56:35 screwsss, AT&T version, whichever one that is Sep 15 11:57:07 i9505 of course, but I don't know the frequencies Sep 15 11:59:46 GSM: 850/900/1800/1900MHz, 3G: 850/1900/2100MHz, 4g:HSPA+, 4G LTE: Band 2, 4, 5 and 17 Sep 15 11:59:59 screwsss, Check with your GSM provider to see if they are compatible Sep 15 12:01:51 screwsss, Differences between the Interational and ATT model are here http://en.wikipedia.org/wiki/Samsung_Galaxy_S4#Model_variants Sep 15 12:03:21 Ah, I always forget ATT model number is stupid SGH-I337 instead of i9505 Sep 15 12:03:34 still Snapdragon 600, don't care :P Sep 15 12:39:07 Sonicadvance1: $250 Sep 15 12:39:39 screwsss, lol, what Sep 15 12:39:43 Hello Sep 15 12:40:16 When I try to run my Android application it gives me the following error: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Sep 15 12:40:55 java.lang.Object not found? is your JDK sane? Sep 15 12:41:39 sigv: hmm something happening now, I think it run it as an Java Application instead.... strange Sep 15 12:41:54 wait, you say that happens during VM initialization? can try launching the app on a real device? Sep 15 12:42:45 isn't it supposed to run as a "Java Application"? Sep 15 12:43:41 sigv: No not really it should run as a Android Application :) Sep 15 12:46:38 hmm, yeah. just checked. android manifest, Run As > Android Application. Sep 15 12:47:47 unless you have a class that defines main() I don't see how it could launch as a Java Application then since there would be no entry point... Sep 15 13:02:38 hi, I'm develop an app about chemistry, the problem is: I want to find the way to write the "chimacal formula" with text Sep 15 13:03:08 is there any predefined-ways for writting subtext? Sep 15 13:03:39 I mean: C2H5OH, but the number 2, and 5 should be under the others Sep 15 13:26:05 Hi, trying to add some library code to a test project i started but can't seem to get my project to find it. added a folder lib-src in root of project. Using android studio Sep 15 13:45:51 I'm creating an application that has to represent a database, so what I want to do is make a ListView with all the item and the items should have a drop down which shows the property's of the item, also would like to make a search bar on the top and being able to sort by value of the property's. What kind of "view" do I need for that? Sep 15 13:51:25 The most basic would be a ListFragment with a Search View in the Action Bar. Sep 15 13:51:40 The adapters and adapterviews was created to make simple presenting dynamic data? Sep 15 13:53:40 How do I include code which I've put in the root under libs-src Sep 15 13:54:11 Since it's not my code I want it outside as a dependency Sep 15 13:56:49 ? Sep 15 13:58:27 maxflax: Use 'libs' Sep 15 13:59:43 kakazza, So I can put source code in libs and it will work right of the bat? I am trying to get this in https://github.com/FasterXML/jackson-core/tree/master/src/main/java/com/fasterxml/jackson/core Sep 15 14:00:22 So you're not using .jar files Sep 15 14:00:27 kakazza, nope Sep 15 14:01:22 Do you want to use the whole library or just parts? Sep 15 14:01:27 Because it's available as a .jar file Sep 15 14:02:19 kakazza, I know.. but I like having the source when available in my projects.. so It gets compiled with all of the other code. Sep 15 14:02:37 The add the sources .jar file. Sep 15 14:03:04 Wait, you want to compile the library all the time? Why Sep 15 14:03:05 kakazza, ? Sep 15 14:03:42 kakazza, I wan't to have the source in my project - maybe if I don't like something in the jackson or add stuff.. Sep 15 14:04:51 kakazza, something like this should be easy to just link into a project.. but, it isn't Sep 15 14:06:05 It is. Sep 15 14:06:14 You put the src code into /src Sep 15 14:06:59 Let me make a suggestion. You seem to have problems to add foreign code to your project. Hence while it is possible, I find it unlikely that you will need to change something in the library source code. Sep 15 14:07:28 So, add the .jar file to your project, put it into /libs. _IF_ you don't like something, clone the project, apply your changes and build a new .jar file using 'mvn package' Sep 15 14:16:03 kakazza, It's more the need of beeing able to do rather needing it. It's like owning a car but not beeing able to fill up the gas without someone else doing it Sep 15 14:17:43 kakazza, And maybe im confused by the folder structure aswell.. where does the lib go I wonder.. there are many folder to choose from... like.. I have MyTestAppProject/MyTestApp/src Sep 15 14:18:08 does the libs go to MyTestAppProject or the MyTestApp Sep 15 14:19:21 I have added my libs-src into the MyTestApp folder today.. but maybe that's the wrong folder - I don't know and havn't found much on the topic from android studio either Sep 15 14:19:29 Your analogy sucks, imo. And I told you how you can still use .jar files rather than copy pasting the source code into your App while still being able to modify the source code. Sep 15 14:19:35 Jar files go into /libs Sep 15 14:20:35 I'm not sure if this still applies to the current version of Android Studio, but here http://stackoverflow.com/a/16628496 Sep 15 14:21:04 And since Jackson is available from Maven, you could just add a Maven Dependency to your build.gradle file. Sep 15 14:21:19 In case you _really_ need to modify the library, go for building your own .jar file. Sep 15 14:22:13 Android Studio changes quickly, so it might just be enough to drop the .jar into /libs Sep 15 14:22:30 I use IntelliJ, not Android Studio itself. Sep 15 14:23:08 kakazza, folder /libs straight under the project? Sep 15 14:23:52 When creating a new project in android studio you get.. first the MyappProject folder and beneath the Myapp folder Sep 15 14:27:29 I don't know, I never used Android Studio. Sep 15 14:27:34 hello Sep 15 14:27:39 Try both ;) Sep 15 14:28:10 I'm new to android development and wanted to know if theres a way I can remain the dark action bar with white background, but remove the menu button where the settings item is? Sep 15 14:28:20 I'm using Android Studio btw. Sep 15 14:30:13 Does recycler =convert view? Sep 15 14:34:55 hello Sep 15 14:43:50 kakazza, Mark folder as sources root worked aswell as it seems Sep 15 14:50:56 kakazza, Thanks for the help btw :) Sep 15 14:59:42 Making a working search bar seems impossible :P Sep 15 15:00:40 Did you follow the official guide on it? Sep 15 15:00:52 https://developer.android.com/training/search/setup.html Sep 15 15:02:40 kakazza: So much to read :-( Sep 15 15:03:13 Reading and understanding is an essential part of programming. Sep 15 15:05:07 yeah or they just deliver something that is easier to implement. Sep 15 15:05:29 * lord4163 mumbles something about jquery mobile.... Sep 15 15:12:54 man this channel requiring login first is annoying Sep 15 15:13:03 I can't auto join this channel Sep 15 15:13:27 #android-dev :Cannot join channel (+r) - you need to be identified with services Sep 15 15:13:44 XXCoder: So why won't you do that? Sep 15 15:15:38 well its automated register Sep 15 15:15:53 XXCoder: automated register? Sep 15 15:16:07 are you registered XXCoder Sep 15 15:16:12 identify I mean. just woke up heh Sep 15 15:16:18 because i had to set Sep 15 15:16:24 for xchat Sep 15 15:16:33 irc_join_delay 9 Sep 15 15:16:44 so it gives it time to identify Sep 15 15:16:46 oh tthat setting exist nice Sep 15 15:16:59 should exist for hexchat since its from xchat anyway Sep 15 15:17:05 so type /set irc_join_delay 9 Sep 15 15:17:13 or some number that works Sep 15 15:17:16 for you Sep 15 15:17:20 9 is what worked for me Sep 15 15:17:22 already did Sep 15 15:17:23 6 was to low Sep 15 15:17:35 mine was set to 3 lol Sep 15 15:17:37 oh Sep 15 15:17:46 3 would be to low i think Sep 15 15:17:57 thanks man Sep 15 15:18:00 wouldnt give it enough time most likely Sep 15 15:18:02 your welcome Sep 15 15:18:16 XXCoder: I put it to 20 or something :P Sep 15 15:18:40 dunno but I don't think I own welcome Sep 15 15:19:07 ? Sep 15 15:19:23 XXCoder: get some coffee XD Sep 15 15:19:27 your vs you're ;) Sep 15 15:19:28 lol Sep 15 15:19:50 oh right Sep 15 15:19:55 now i got ya Sep 15 15:20:00 :) Sep 15 15:20:04 i been chating so long on here for years Sep 15 15:20:10 its messed up my spelling Sep 15 15:20:19 so it should be you're Sep 15 15:20:30 maybe in 20 years your will be proper form Sep 15 15:20:36 lol Sep 15 15:20:40 living language do change Sep 15 15:20:40 well i am in australia Sep 15 15:20:51 i don't know if i got it right or wrong Sep 15 15:21:14 you're (your? ;) ) doing just fine Sep 15 15:21:24 ok great Sep 15 15:29:27 Hi. I would like to create a table with variable number of SurfaceViews, each cell with a SurfaceView. I am able to create this with a previously defined layout.xml. But I would like to set this programmatically. Any tips or references on how to do this? Google is not helping much this time, everything I find is about adding other widgets like buttons on top of surfaceviews and so on... Sep 15 15:30:27 XXCoder: You can just connect to freenode using SASL and not delay it. Sep 15 15:30:46 http://freenode.net/sasl/sasl-xchat.shtml Sep 15 15:30:55 gmag, I very much doubt you can do that without crashing half of existing devices Sep 15 15:31:04 looking Sep 15 15:31:09 Or use server passwords. Sep 15 15:31:31 /connect chat.freenode.net 6667 XXCoder:mycoolpassword Sep 15 15:31:45 http://freenode.net/faq.shtml#nicksetup Sep 15 15:31:48 7.) Sep 15 15:31:50 hey thats my password! Sep 15 15:31:52 jk Sep 15 15:31:59 Mavrik, what exactly do you doubt? Sep 15 15:32:15 gmag, using multiple surfaceviews. Sep 15 15:32:25 Mavrik, yes I can! Sep 15 15:32:32 Mavrik, yes you can :) Sep 15 15:32:50 Mavrik, my problem is on how to add it programmatically Sep 15 15:33:47 don't say I (or people here: http://stackoverflow.com/a/7661664 ) didn't warn you. Sep 15 15:33:59 go check the camera examples, they inflate it programatically there. Sep 15 15:35:43 okay it should work Sep 15 15:36:04 Mavrik, so, how multistreaming (video) is usually accomplished in android? Sep 15 15:36:23 it isn't. Sep 15 15:36:42 nice it worked Sep 15 15:36:50 most devices aren't even equipped with multi-stream capable video decoder Sep 15 15:37:02 XXCoder: :) Sep 15 15:37:07 if you'll check devices like HTC One you'll see that they're very careful not to initialize multiple video streams Sep 15 15:38:15 Mavrik, interesting Sep 15 15:38:46 IIRC you can use multiple TextureViews without issues instead of SurfaceView Sep 15 15:40:56 Mavrik, ah ok Sep 15 15:41:16 Mavrik, that's how it is done then Sep 15 15:41:22 I believe Sep 15 15:57:49 When to use "getBaseContext method" over the reference to the actual Activity Object ? Sep 15 16:03:37 whats the diff between adding a module vs a package? Sep 15 16:05:48 i know packages are a standard thing in java, not sure what modules are Sep 15 16:06:51 SuD, standard as what? Sep 15 16:07:42 commonly used in java, not only in android, http://en.wikipedia.org/wiki/Java_package Sep 15 16:09:11 ? Sep 15 16:09:51 SuD, cause in my project I have a couple of folders markt as packges and wondering what it means in pure practical meaning Sep 15 16:10:40 they're like libraries, a bunch of code that is packed together maybe in a standalone JAR file Sep 15 16:10:56 SuD, should have read the wiki before asking my last question.. :D Sep 15 16:10:57 they could be called modules of code Sep 15 16:13:24 in the end it all goes into the APK anyway Sep 15 16:15:17 Why does it work for him and not for me ? ArrayAdapter adapter = new ArrayAdapter(this, R.layout.list_items, items); Sep 15 16:15:53 does it compile at least? Sep 15 16:16:40 Why " Calling LayoutInflater without specifying root leads to inflate call ignoring the layout parameters from the xml" ? Sep 15 16:17:11 SuD: list_items cannot be resolved or is not a field Sep 15 16:19:11 sorry, i don't know Sep 15 16:21:23 SuD: hmm I don't really understand but I recreated the file and now it works, and yes the filename was the same o.0 Sep 15 16:26:43 Hmm now I got a silly looking listview :/ Sep 15 16:44:50 Screw this shit. Sep 15 17:24:02 anybody here/ Sep 15 17:24:03 ?* Sep 15 17:25:11 desmin88: don't ask to ask, just ask Sep 15 17:25:17 fair enough. Sep 15 17:25:21 now that you've asked your one question Sep 15 17:25:25 here is your one answer: yes. Sep 15 17:25:26 lol Sep 15 17:25:42 come back tomorrow for your next freew question ;) Sep 15 17:25:43 what's going on? Sep 15 17:25:54 desmin88? Sep 15 17:26:21 Is it worth it to use Android Studio now? Why do you use it instead of Eclipse? Sep 15 17:26:29 well, sorta new to android development. What do you guys think is a good intermediate app to make for practice and learning android design patterns? Sep 15 17:27:05 maybe some basic game Sep 15 17:27:09 browser for free streaming porn sites Sep 15 17:27:41 RedNifre: I'm enjoying android studio Sep 15 17:27:57 I made a small app to keep track of assignments in classes, but thats a bit too easy. Sep 15 17:27:58 I'm using it instead of eclipse because eclipse stopped working when I updated my sdk's once Sep 15 17:28:34 RedNifre, I also use android studio and find it to work well Sep 15 17:28:40 How much time would you guess did you have to spend until you could use Android Studio okayish? Sep 15 17:28:48 45min? Sep 15 17:29:19 that's about how long I took before I realized I wasn't going to see if eclipse's android plugins fixed themselves in a week Sep 15 17:29:36 I wonder what features that have? Sep 15 17:29:42 Okay, sounds convincing. I'll give it a try. Sep 15 17:29:44 like svn or auto complete Sep 15 17:30:00 If you've ever used IntelliJ, its quite easy to use Sep 15 17:30:03 using Android studio is easy Sep 15 17:30:06 I haven't. Sep 15 17:30:21 still quite easy to use Sep 15 17:30:35 it's just getting used to project management and keybindings is the pain Sep 15 17:30:41 the biggest thing about android studio/intellij for me is that it doesn't remind me of being 12 and wondering why someone would ever build an IDE in java Sep 15 17:30:52 Well, given that it has Google's blessing I'll have to change to it eventually anyway (probably), so why not now... Sep 15 17:30:59 not bad Sep 15 17:31:11 adt has Google blessing... Sep 15 17:31:24 the main reason for "why not" Sep 15 17:31:36 is that they haven't even reached a whole-number release yet Sep 15 17:32:00 I don't use android studio because I have no interest in programming only android Sep 15 17:32:02 have google ever reached whole numbers? ;) (jk, I know they did) Sep 15 17:32:09 My understanding is that it works and just lacks a lot of convenient features. Is that right? Sep 15 17:32:26 RedNifre, no, features are all there Sep 15 17:32:33 it's annoying to learn another set of hotkeys Sep 15 17:32:41 but that's the only complaint I've got Sep 15 17:33:02 you can Match up keys yourself though Sep 15 17:33:17 The long term plan is that studio replaces eclipse completely, right? Sep 15 17:33:29 no Sep 15 17:33:34 coexist Sep 15 17:33:57 eclipse isnt for only java Sep 15 17:34:42 Right. I meant in the sense "If you want to develop for Android, use Android Studio, unless you are already used to another IDE, those work, too". Sep 15 17:36:04 hey, was here before but my internet disconnected. My question is really simple I think for you guys, would be awesome if somebody could help. I'm new to android developing and done my first app - but can't remove in the black/white color theme the settings menu in the actionbar, does somebody know how I can remain the actionbar but remove this menu button? Sep 15 17:36:37 What button exactly? Settings as in an entry in the overflow? Sep 15 17:37:03 that menu button where the settings menu pops up if I click that Sep 15 17:37:14 You mean the 3 dots? Sep 15 17:37:18 hi all! Sep 15 17:37:18 yes Sep 15 17:37:27 good night first of all Sep 15 17:37:32 and secondly.. Sep 15 17:37:51 Those show only if there's something in it. So you don't want the stuff that is in the menu at all? Sep 15 17:38:10 yes Sep 15 17:38:12 does anybody of you used string.split succesfully? Sep 15 17:38:12 Either remove those from the menusomething.xml file, or don't inflate the menu at all, if you want no action items in the action bar. Sep 15 17:38:28 what does inflate the menu mean? Sep 15 17:39:00 In your activity, theres something like "onOptionsCreate" (not sure of the exact name). That method inflates a menu*.xml that you don't like. Sep 15 17:39:05 I wrote String []fields=mystring.split("|") Sep 15 17:39:13 I don't know why that would be there if you don't want to have a menu though :) Sep 15 17:39:31 <^cheeky> cnox: inflates the view ... instantiates it .. so you can wire up the textview and buttons to listeners and what not Sep 15 17:39:36 but instead of getting the fields I get one char per each position of fields Sep 15 17:39:41 public boolean onCreateOptionsMenu(Menu menu) { found it Sep 15 17:39:56 thanks rednifre and cheeky. ;) Sep 15 17:40:08 You're welcome! :) Sep 15 17:41:21 Now, someone tell me if I should use GreenDao now and curse when I want to add sync and import/export later, or Couchbase Lite and curse because I have to do more boilerplate code to read/write stuff? Sep 15 17:41:23 did anyone have this issue before? is it a platform isue? Sep 15 17:42:30 TheNightTrain how does the input string look like again? Sep 15 17:44:24 RedNifre the input string is: 1|nanana||kakka|ksksks|ksks|kak Sep 15 17:45:04 I use string split instead of stringtokenizer cause I have some cases where there are two delimiters together (empty fields) Sep 15 17:45:55 <^cheeky> afternoon :), if anyone could discuss or bring me to the light regarding this, i have managed to pre-load images fetched via http, in a grid-view, but i am stumped with using it for a list view along side a list fragment, i know that list fragment has its own view and hence not needing to implement or wire up a layout(listview) Sep 15 17:48:33 TheNightTrain I haven't used split in Java before, so I looked it up. They give your case as an example for what to take care of when using it. It's based on regex so you have to split at "\\|" instead. Sep 15 17:49:00 uhmm Sep 15 17:49:02 let me check Sep 15 17:50:23 :O Sep 15 17:50:28 it seems it works fine Sep 15 17:50:33 thanks a lot RedNifre Sep 15 17:51:43 No worries. Sep 15 17:51:45 <^cheeky> when filling up, a arraylist .. with a asynTask .. in java, one must instantiate the arraylist to new ? and then add it .. giving passing the memory address of it like in C++ ? Sep 15 17:52:16 I don't understand the question. Sep 15 17:52:37 What do you want to do? Sep 15 17:53:22 RedNifre, it almos works hehe Sep 15 17:53:26 <^cheeky> ok my app fetches .. images via async task .. and i wanna display it in a listview .. using a list fragment Sep 15 17:54:17 now the | is recognized as a delimiter, however the problem still the same as stringtokenizer, with 2 or mor delimiters consecutive it doesn't identify them Sep 15 17:54:24 Is the list short enough that all images can be in memory at the same time? Sep 15 17:54:51 <^cheeky> RedNifre: but the view never gets filled, if i set a generic arrayadapter with test values .. my list view displays the list, but when i use my custom arrayadapter, it doesnt display anything even though debug statments show the items being created and added to the array list. Sep 15 17:55:23 <^cheeky> RedNifre: i know java , passes everything by value, kinda .. so i just got a little confused with c++ Sep 15 17:55:42 TheNightTrain this sounds unpleasant, isn't there something in Guava that just works? Sep 15 17:56:33 If you load something to the array adapter I think you have to call something called "notify dataset changed" or similar. Sep 15 17:57:06 <^cheeky> yes i did that right on postExecute of the async derived class i created .. Sep 15 17:57:14 <^cheeky> and also on onResume() Sep 15 17:57:21 why on onResume? Sep 15 17:57:47 afk Sep 15 17:57:58 <^cheeky> well i just set-it up so it might reload the images on .. congiguration chnage such as orientations Sep 15 17:58:37 how do i test GCM? tried sending one from app but never receive it. using emulator targeting google APIs Sep 15 17:59:16 I tend to use String.split() instead of StringTokenizer Sep 15 17:59:23 I believe that deals with repeated tokens well Sep 15 18:00:44 tried sending to both project ID and reg ID Sep 15 18:05:52 are you watching the logs? adapter.notifyDatasetChanged() has to be run on the ui thread Sep 15 18:06:23 <^cheeky> Bourbon: me ? Sep 15 18:07:42 what's your custom adapter's code look like? Sep 15 18:09:21 <^cheeky> please gimme a min , ThankAsync(you); Sep 15 18:11:01 <^cheeky> Bourbon: http://pastebin.com/FXRZBbRM Sep 15 18:11:16 specified uses-permission yet: 296-313/system_process W/BroadcastQueue: Permission Denial: broadcasting Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10 pkg=com.example.stockmonitor (has extras) } from com.google.android.gsf (pid=544, uid=10018) requires com.google.android.c2dm.SEND due to receiver com.example.stockmonitor/.GCMReceiver Sep 15 18:12:45 try making the arraylist you feed into the listadapter final Sep 15 18:13:29 what are you trying to do - add items to the list or replace the list? Sep 15 18:14:15 <^cheeky> Bourbon: ok i can try that .. but i am sorry this is a newbi question if you make it final . . doesnt it mean that it wont change .. (memory allocation wouldnt change) .. but still let the values that the memory holds be able to change Sep 15 18:14:31 <^cheeky> add items to it Sep 15 18:14:58 it means you can't change which instance of ArrayList that the variable points to Sep 15 18:15:31 but that the ArrayList instance, itself, is mutable within the bounds of its definition Sep 15 18:15:44 <^cheeky> ahh ok Sep 15 18:16:04 are you trying to replace a list of items or add to it? Sep 15 18:16:20 <^cheeky> adding to it Sep 15 18:18:26 then add the data to the underlying array Sep 15 18:18:29 arraylist* Sep 15 18:19:24 either .add() them to the things individually as you get them Sep 15 18:19:24 or Sep 15 18:19:25 http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html#addAll%28java.util.Collection%29 Sep 15 18:20:01 <^cheeky> Bourbon: i did add them Sep 15 18:20:02 <^cheeky> http://pastebin.com/index/FXRZBbRM Sep 15 18:20:46 it looks like you're assigning the variable to a different arraylist Sep 15 18:21:22 not adding anythingn to it Sep 15 18:21:40 you never call Collection.add even once Sep 15 18:21:55 <^cheeky> items = mGalleryItems; Sep 15 18:22:01 you're reassigning a variable to a different array than the adapter is holding a reference to Sep 15 18:22:14 that is why you declare the arraylist that backs your adapter as final Sep 15 18:22:18 <^cheeky> oh i feel retarded .. Sep 15 18:22:47 <^cheeky> but eclipse asks me to make the final variable a static one Sep 15 18:22:50 but I prefer to stream items into listadapters Sep 15 18:23:03 I'm not 100% on best practices, here Sep 15 18:23:26 final instance variables aren't a bad thing Sep 15 18:23:29 imo Sep 15 18:23:43 <^cheeky> yeah but to make it final you have to make it static right Sep 15 18:23:45 <^cheeky> items = mGalleryItems; .. Sep 15 18:23:46 no Sep 15 18:23:54 <^cheeky> items is a class variable i have Sep 15 18:24:18 declare items as final Sep 15 18:24:21 in the class definition Sep 15 18:24:42 items is what you passed to the listadapter's constructor, right? Sep 15 18:25:33 <^cheeky> yup Sep 15 18:26:24 <^cheeky> .. i think this disscussion made see something else as well .. in my fetchItems task .. i am actually creating a new array Sep 15 18:26:30 I personally declare them up at the top of the class definition and initialize it Sep 15 18:26:32 <^cheeky> let me try something Sep 15 18:27:02 when I fetch items, I pass an object that can consume the objects one-by-one so that there isn't as much waiting time to populate a view Sep 15 18:29:09 "error: package com.google.android.gms.gcm does not exist" google play services lib added as module and dependency. what gives? Sep 15 18:31:13 good question - I'm still figuring out that nonsense, myself Sep 15 18:31:22 fortunately, I have a working app to base my work on Sep 15 18:31:38 <^cheeky> Bourbon: wat about pre-loading images and what not, ok but ill try to figure it out thank you Sep 15 18:35:07 getting error package and classes do not exist when the library jar is clearly added Sep 15 18:35:13 I use AndroidBitmapCache for that Sep 15 18:35:17 and it post-loads them Sep 15 18:35:20 but has a cache Sep 15 18:35:50 <^cheeky> Bourbon: its helper class .. ? Sep 15 18:37:09 <^cheeky> coz in my grid view implementation of my practice app . i was able to use LRU cache and cache an image .. and load it .. but i havent implemented scaling it down, and i wanna preload. 10 images at a time Sep 15 18:37:30 what does it mean to export a dependency? Sep 15 18:47:25 RedNifre I was checking guava (something new forme since I started with android less than one week ago) Sep 15 18:47:44 I found one method interesting that seems will do exactly what I want :) Sep 15 18:50:01 Yeah, Guava is a bag full of things that do exactly what a developer wants :) Sep 15 18:50:15 but I dunno why this error happens Sep 15 18:50:21 09-16 02:49:27.890: I/System.out(16458): Error en MainActivity: 2java.lang.NoClassDefFoundError:com.google.common.base.Splitter Sep 15 18:50:58 phpwner: in android studio? I believe that means that it provides the libs that it depends on to things that depend on it Sep 15 18:55:52 I have checked again, actually I have removed and reimported the jar again Sep 15 18:56:08 but the error still happens Sep 15 18:56:29 ok Sep 15 19:14:36 is migrating my project to gradle as simple as adding a build.gradle file? nothing else? Sep 15 19:15:35 build.gradle with the correct settings Sep 15 19:19:43 phpwner: the default project layout for gradle is a bit different than for ant Sep 15 19:19:57 but you can configure it however you like Sep 15 19:20:13 actually, scratch that Sep 15 19:20:17 for android, I don't think it changes Sep 15 19:20:29 not positive :) Sep 15 19:20:31 is there any tool that can scan my build.gradle and tell me of any outdated dependencies Sep 15 19:20:35 ? Sep 15 19:21:31 ok, yeah. it still uses the default gradle src/main/java style of structure Sep 15 19:21:46 which is different than what you would typically use for, e.g. the old ant style build Sep 15 19:30:33 ^cheeky: https://github.com/chrisbanes/Android-BitmapCache Sep 15 19:34:09 <^cheeky> Bourbon: thank you ill take a look @ it Sep 15 19:34:13 So I got Android Studio but it's not working correctly. I managed to create a new project in it, but the AVD button is disabled. What can I do? Sep 15 19:35:09 <^cheeky> Bourbon: could i ping you .. Sep 15 19:39:35 hi Sep 15 19:54:44 after an eclipse update, it seems that i have lost my android plugin, when trying to install it again the development tools and native development tools, i get this message http://pastebin.com/hTkqxwUp Sep 15 19:54:54 the other packages i am able to install Sep 15 20:09:02 has anyone had any success in setting up tests to run from within Android Studio? Sep 15 20:29:55 Has anyone been having issues with the Adreno 320 devices (galaxy s4, htc one), i'm getting alot of users who are crashing with that device with this error , libsc-a3xx.__link_shaders(__link_shaders: Sep 15 20:33:26 tripknotix, Yes Sep 15 20:36:02 ^cheeky: https://github.com/square/picasso Sep 15 20:36:20 It does what you want. Also take a look at the sample app. Sep 15 20:36:39 (I didn't read the whole backlog, but from what I've got, picasso does all you need) Sep 15 20:37:16 <^cheeky> kakazza: thank you , i wisll .. started a new project now using .. android studio :(.. i guess i am missing som fundamental stuff .. i am going to start slow i spose Sep 15 20:41:37 <^cheeky> kakazza: hmm looking at the classes you seem to have, using Content providers as well Sep 15 21:02:55 Sonicadvance1: did you manage to fix the issue? Sep 15 21:03:26 tripknotix, Nope. Still having huge issues Sep 15 21:04:05 tripknotix, Nope. Still having huge issues Sep 15 21:04:47 Seems to be due to using GLES3 features mostly? I've got so many issues with the Adreno 3xx drivers that its hard to remember them all :( Sep 15 21:09:40 help! http://android.stackexchange.com/questions/53244/why-is-android-thinking-the-intent-was-already-sent Sep 15 21:16:40 anyone know if any free / open tools came out since sloccount which improved on that ? Sep 15 21:24:54 g00s: ever done that remote control thing with the emulator.. using a real device to control the emu Sep 15 21:27:06 Napalm i was working on remote control of a regular app … not done with that; its pretty limited : just sending ;commands' to it Sep 15 21:27:35 but yeah, i pondered a while back … if i could use something like a panda Sep 15 21:28:00 and then just use something like xpra to bring the screen back to the desktop Sep 15 21:28:37 Napalm have you found anything along those lines ? Sep 15 21:29:21 well it looks like its already done, but im having a hard time getting it to work Sep 15 21:29:34 http://tools.android.com/tips/hardware-emulation Sep 15 21:34:15 oh … i was thinking more along the lines of your dev environment being a small arm-board with android on it. seems panda has official support in aosp; something like that but without a panel. and then just have the 'window' for the screenbuffer on your desktop Sep 15 21:34:22 but genymotion has been really good Sep 15 21:34:36 so far Sep 15 21:37:20 would be great i think if you're coming just from a perspective of android as embedded linux Sep 15 21:37:33 not so much a phone-centric dev view Sep 15 21:38:01 yea www.apc.io i got me one of these to dev against Sep 15 21:38:04 its good fun Sep 15 21:42:16 Napalm that looks really neat - but seems like 'bring your own keyboard / mouse'. could i run a window on my dev machine that is a client for this ? Sep 15 21:43:01 not sure what you mean.. the geneal idea of the SdkController is to control an emulator with input from a real device Sep 15 21:49:17 helo helo Sep 15 21:50:04 anyone know why the nexus 7 is vomeing up as supported devices with this tag? Sep 15 21:50:07 Sep 15 21:50:34 vomeing = comeing Sep 15 21:51:00 Napalm SdkController == ? https://play.google.com/store/apps/details?id=com.esemobilesoftware.android.tools.sdkcontroller Sep 15 21:51:22 g00s: its part of the sdk Sep 15 21:51:50 g00s: SDK\tools\apps\SdkController Sep 15 21:52:02 ooh, never noticed this Sep 15 21:52:25 why am i not pulling up much in google search Sep 15 21:52:55 its on the page i sent you to < http://tools.android.com/tips/hardware-emulation Sep 15 21:53:02 brb, food time Sep 15 21:53:53 * g00s headdesk Sep 15 21:54:00 oh, thats what we're talking about Sep 15 21:54:05 * g00s headdesk Sep 15 21:54:07 * g00s headdesk Sep 15 21:54:10 * g00s headdesk Sep 15 21:54:38 woops Sep 15 21:54:42 got bumped off Sep 15 21:54:46 soo Sep 15 21:55:17 does anyone know wy devices like the nexus7 are showing up when ive stated in my manifest this supports screen tag Sep 15 21:55:25 Sep 15 21:55:27 can 'intents' perform some action or just show some ui? Sep 15 21:55:44 Has anyone in here used something like the IOIO board. I am trying to use the libaries and follow the examples, however, I need to pass a command from the UIThread (Main Activity) to the Looper thread that the IOIO creates. I can't seem to get it working using handlers like I have done with other situations. This is due to the fact that I do not know where to create the Handler (no run function in the looper class)??? Sep 15 21:59:28 woops got bumped off Sep 15 21:59:30 again Sep 15 22:00:07 soo any1 have any idea how to seperate mulyple apks by there screen sizes in the manifest file with the supports-screens tag Sep 15 22:03:16 wow seems like nobody knows Sep 15 22:05:31 Napalm this SdkController would be cool if it could also do bluetooth :( Sep 15 22:19:32 wow nobodY? Sep 15 22:19:44 javaDon, Patience is a virtue. Sep 15 22:20:10 where can i get some patience right this very moment? Sep 15 22:20:13 i need it now Sep 15 22:20:21 rep++ funkbox Sep 15 22:21:51 rep+++ Sep 15 22:22:01 stfu++ Sep 15 22:22:12 ustfu++++ Sep 15 22:22:18 yourmom-- Sep 15 22:22:25 hismom Sep 15 22:22:32 && Sep 15 22:22:33 I have a ProgressDialog; while showing, if I tap elsewhere, this dismisses also if I set setCanceledOnTouchOutside(false) . why? Sep 15 22:22:37 yourmom Sep 15 22:22:50 != mymom Sep 15 22:24:39 but if(hismom + yourdad == :* ) hisMom == yourMom; Sep 15 22:24:59 syntax error Sep 15 22:25:03 lol Sep 15 22:26:16 i do code under the syntax rules Sep 15 22:26:18 i make my own Sep 15 22:26:29 B) Sep 15 22:26:47 do == dont Sep 15 22:27:53 so anyone got any ideas as to propper tagging of the manifest by screen size? Sep 15 22:29:28 what is that supposed to mean? Sep 15 22:32:09 pfn: Any idea why every second package-debug/install would wipe out ViewPager? Sep 15 22:32:30 Nilium, eh? Sep 15 22:33:16 For some reason, every second time I install a debug build via sbt, it seems like the v13 support library gets culled. Sep 15 22:33:42 O.o Sep 15 22:33:45 It's in libs and explicitly cached, so I'm kind of not sure what's up there. Sep 15 22:33:53 Nilium use gradle :D Sep 15 22:33:55 * g00s runs Sep 15 22:33:58 is it an aar? and do you clean in between Sep 15 22:34:07 go fuck yourself Sep 15 22:34:19 I have to clean in order to get the support library back. Sep 15 22:34:49 pfn was that to me ? Sep 15 22:34:52 what's the error you're seeing? Sep 15 22:34:54 yeah Sep 15 22:35:01 wow, it was in good fun Sep 15 22:35:02 And I'm not entirely sure what you're asking by whether it's an aar, which is probably stupid of me. Sep 15 22:35:19 gradle is for hipsters who think they are programmers, while real programmers just laugh at them. Sep 15 22:35:36 The error only happens at runtime, fails to inflate android.support.v4.view.ViewPager Sep 15 22:36:07 Doing a clean and install magically fixes it. Sep 15 22:36:08 Nilium, on Windows, clean often leaves the directory behind so the aar doesn't get restored correctly Sep 15 22:36:14 Not on Windows. Sep 15 22:36:14 How can I start an activity from an AsyncTask? Sep 15 22:36:36 Using OS X, if that helps any. Sep 15 22:36:37 support-v4 isn't an aar, v13 probably isn't either Sep 15 22:36:40 pragma- out of curiosity, what do you use? Sep 15 22:36:55 Nilium, what's the exception you get? Sep 15 22:36:55 Well, they're just jars jammed in the libs folder, so probably not. Sep 15 22:36:56 I can't seem to pass a Context to it. Sep 15 22:37:08 noclassdeffound? Sep 15 22:37:14 ant hasn't failed me or left me wanting. Sep 15 22:37:19 Bitwise, pass a context to it Sep 15 22:37:22 * pragma- is perfectly content. Sep 15 22:37:26 use eclipse Sep 15 22:37:27 Bitwise: to asynctask? why? Sep 15 22:37:53 Nilium use eclipse Sep 15 22:37:57 java.lang.ClassNotFoundException: Didn't find class "a...ViewPager" on path: DexPathList[[zip, etc.], nativeLibEtc.] Sep 15 22:38:10 Nilium Sep 15 22:38:14 eclipse is a horrible mess of bloat. I don't need any of its features. I do like the MAT tool, and it is available as a stand-alone. Sep 15 22:38:16 No, shut up. Sep 15 22:38:23 gdrc, Because I'm trying to send a text message with the default text messaging app without opening it. Sep 15 22:38:41 make sure the external jars are all on the exported build path Sep 15 22:38:47 eclipse is 1 sturdy beast Sep 15 22:39:01 plus you can edit how much cpu and ram it uses Sep 15 22:39:04 Nilium, when it fails, can you do $ANDROID_HOME/build-tools/18.0.1/dexdump classes.dex | grep ViewPager? Sep 15 22:39:05 Ok, can we not discuss Eclipse when it's irrelevant here? Sep 15 22:39:14 Will do, hang on. Sep 15 22:39:25 eclipse is irrelevant everywehre. Sep 15 22:39:48 there should be a class decl line in the output Sep 15 22:39:59 I'm kind of glad this is easy to reproduce on my end, at least. Sep 15 22:40:36 Bitwise: my question is: why cant you pass context to asynctask? Sep 15 22:40:50 It says it's from the wrong thread or something. Sep 15 22:40:53 if there isn't, can you pastebin sbt "last android:dex" Sep 15 22:41:16 Nilium, which version of the plug in are you on? Sep 15 22:41:20 Bitwise: just pass it from asynctask constructor Sep 15 22:42:05 g00s, I'm sorry, but even if it's in good fun, it (gradle) can't even come remotely close to solving the problem Sep 15 22:42:31 pfn thats ok, i might even agree, but it was rude Sep 15 22:42:40 it was just a joke Sep 15 22:42:52 gdrc, That's what I did, it says it's from the wrong thread or something. Sep 15 22:43:21 Bitwise: paste the whole error Sep 15 22:43:25 indeed, I don't have time for silly jokes right now and I took it out on you Sep 15 22:43:27 pfn: Here you go: https://gist.github.com/nilium/873f65c0f6f69157a4a4 Sep 15 22:43:44 g00s: go fuck yourself Sep 15 22:44:11 * pfn headscratches Sep 15 22:44:31 Nilium, do you have any custom proguard cache rules? Sep 15 22:44:50 Just -keep class scala.math.package.** { *; } Sep 15 22:44:55 jesus, i guess i forgot to add pragma to ignore list when i re-installed textual Sep 15 22:44:57 Oh wait, cache, not options Sep 15 22:45:07 jesus, I guess you can't take a joke. Sep 15 22:45:53 Nilium, that dex input list is way too sparse considering you said you have stuff in libs Sep 15 22:46:18 I'll just throw up my build.sbt and let you sort of stare in horror at it Sep 15 22:46:26 it's possible I fuck ed up the proguard cache hit inputs with respect to local libs Sep 15 22:46:33 gdrc, android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? Sep 15 22:46:37 It's also possible I fucked up. Sep 15 22:46:45 since that's a variant I haven't tested much lately Sep 15 22:46:51 I've learned at this point to assume that I fucked up instead of assuming there's a bug. Sep 15 22:47:02 Nilium, what all do you have in libs? Sep 15 22:47:09 Anyway, gist is updated with the build.sbt, cache option is on line 18 Sep 15 22:47:23 libs consists entirely of android-support-v13.jar Sep 15 22:47:28 Bitwise: myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Sep 15 22:47:59 Thanks gdrc :-) Sep 15 22:48:03 Nilium, indeed, turn the package in that list to Android.support without v13 Sep 15 22:48:04 Maybe if I explicitly add it as a library dependency it might work Sep 15 22:48:13 Bitwise: next time google :) Sep 15 22:48:26 Done. Sep 15 22:48:35 Nilium, it's because you set it as android.support.v13 Sep 15 22:48:43 You might want to update the readme then Sep 15 22:48:52 the package decl must match all packages in the jar Sep 15 22:49:02 Ah Sep 15 22:49:09 Bitwise, Needs more bytewise operations Sep 15 22:49:12 I'll look at updating it if I didn't say that Sep 15 22:49:24 Well, I'm an idiot, sorry. Sep 15 22:49:38 Nilium, otherwise it thinks it got a cache hit but doesn't check whether you use the other classes Sep 15 22:50:26 also, my recommendation with a custom cache rule is if it's a multimegabyte library, not much advantage in cachingnsmallfry Sep 15 22:50:49 like if you want scalaz and scaloid and shapeless Sep 15 22:54:35 gdrc, Here is something I have Googled for. Is there a universal way to send a text message and have it show up in the messaging app? All without opening the messaging app and having the user press send? Sep 15 22:54:54 anyway, I just noted that in the readme, thanks Nilium Sep 15 22:55:32 Bitwise: I don't think so Sep 15 22:55:58 Bitwise: maybe with root Sep 15 22:56:09 Hm, still getting the crash. Weird. Sep 15 22:56:18 gdrc, I have root. Is there a universal way to do that with root? Sep 15 22:56:25 Where is sensitive information from an application, like passwords, stored? Sep 15 22:57:11 Nilium, you'll need to clean Sep 15 22:57:23 all proguard caches are invalid now Sep 15 22:57:29 Bitwise: you should send message with your own app and then edit the file/database of messaging app Sep 15 22:57:35 I did. >_> Sep 15 22:57:54 reload if you're in an sbt shell? Sep 15 22:58:00 * konr finds the answer after taking 3s to dduck it Sep 15 22:58:03 Did that too. Sep 15 22:58:06 Hang on, trying something. Sep 15 22:58:27 gdrc, Would this work for editing it? values.put("address", "0123456789"); values.put("body", "Hello World!"); getContentResolver().insert(Uri.parse("content://sms/sent"), values); Sep 15 22:59:23 Bitwise: can't really tell you sorry Sep 15 22:59:34 Ahh, darn. Sep 15 22:59:43 Yeah, reload, clean, and wiping out target entirely don't seem to help. Sep 15 23:00:20 What horrible things did I do to anger this library Sep 15 23:00:43 last android:dex again? Sep 15 23:01:10 and all else fails, kill and restart sbt Sep 15 23:01:17 Did that too, btw. Sep 15 23:02:17 https://gist.github.com/nilium/d69b096a932685c5fccf And again. Sep 15 23:02:28 weird, Nilium btw, for library dependencies you don't have to specify scala version in name if you use %% before name Sep 15 23:02:35 instead of % Sep 15 23:02:38 Oh, handy. Sep 15 23:03:06 Still sort of working my way through figuring out how sbt works. Sep 15 23:03:32 that's still a cache hit in proguard, this first run after clean? Sep 15 23:03:46 No, this is the crashing run. Sep 15 23:04:04 I'll clean and add the results of that. Sep 15 23:04:18 nuke this directory again , /Users/ncower/ascension2/target/scala-2.10/cache Sep 15 23:04:54 oh, what you change the proguard cache rule to? Sep 15 23:05:04 Just removed the .v13 Sep 15 23:05:07 paste that, and try with it removed completely Sep 15 23:05:25 since support takes little time to dex Sep 15 23:05:45 So do you want results with and without the cache option? Sep 15 23:06:05 well, I know it'll work without the cache option Sep 15 23:06:20 I'll just do both. Sep 15 23:06:22 you can skip to that if you just want to get it working Sep 15 23:06:50 hmm, do I log the cache rules, let me see Sep 15 23:06:55 Neighbor's dog is driving me insane, so that's not helping. Sep 15 23:08:15 bah i have three neighbours around me, each have a dog and as soon as one goes they all get going ... barking collars, people! Sep 15 23:08:45 I have a ProgressDialog; while showing, if I tap elsewhere, this dismisses also if I set setCanceledOnTouchOutside(false) . why? Sep 15 23:09:09 bankai_ some places have barking laws; i think its a $300 USD fine in parts of LA Sep 15 23:09:29 damnit, I don't log the rules Sep 15 23:09:43 Nilium, which version of plug in again? Sep 15 23:10:31 bankai_ "$250 for a first offense, $500 for a second and $1,000 for a third" Sep 15 23:10:40 holy shit, they setious Sep 15 23:10:43 *serious Sep 15 23:10:45 we have them too, but it's hard to get people done for it Sep 15 23:10:51 1.0.0 Sep 15 23:12:40 Nilium, current is 1.0.3 if I might have fixed a bug affecting you Sep 15 23:13:42 https://gist.github.com/nilium/d69b096a932685c5fccf ← Updated with first runs both with and without the cache option. Sep 15 23:13:48 I think I did fix something related to proguard cache misbehaving in 1.0.1 Sep 15 23:13:59 I'll check that in a second Sep 15 23:14:37 Without the cache option works, so that's fine at least. Sep 15 23:14:42 mostly dex needs to be wiped out (full-dex) on the first cache hit run after proguarding Sep 15 23:14:46 so I couldn't find an answer, at all. Where do apps store sensitive information, like login credentials? Sep 15 23:15:37 I think that depends on the app and whether it uses KeyStore or what and how the OEM handles that. Sep 15 23:15:44 Do you have a non-generic question? Sep 15 23:16:48 yes, the Kindle application generates a 'device pid', which is used to encrypt its books. I want to find it out Sep 15 23:17:01 not the place to ask Sep 15 23:17:04 for touch events what library is the 'lowest' level that will give me the most raw data? Sep 15 23:17:16 What pfn said. Sep 15 23:17:32 If you had a question about implementing security stuff, then someone might be able to help. Sep 15 23:17:54 Probably a bit late to rephrase the question for that though.. Sep 15 23:17:58 awesome Google now thinks time to work is my home address Sep 15 23:18:35 Just wait, it'll eventually get a card that just says "work, slave" Sep 15 23:21:13 Moving up to 1.0.3 doesn't fix it, so yeah, I'm just going to remove the cache option entirely since it's pointless. Sep 15 23:21:14 anyone have android annotations, actionbarcompat, and maven working? Sep 15 23:21:39 Pointless for the support lib, anyway Sep 15 23:22:37 In the meantime, I'm just going to continue being amazed that my applescript for running stuff in SBT from IntelliJ hasn't somehow exploded in my face. Sep 15 23:22:45 yeah, sorry, dunno what's happening with that Sep 15 23:23:09 I'll drop in a test case to replicate what you're doing sometime later this week Sep 15 23:23:27 I'll do more tests later and try to put together a small test project to reproduce it Sep 15 23:23:33 Nilium applescript :P Sep 15 23:23:36 applescript to run sbt from intellij? you crazy Sep 15 23:23:50 Well, the sbt plugin broke in the latest EAP Sep 15 23:24:00 So I wrote a script to send commands to sbt via iTerm Sep 15 23:24:33 https://gist.github.com/nilium/6567598 ← The abomination is over there, if anyone wants to just be amazed at how awful AppleScript is. Sep 15 23:24:55 omg Sep 15 23:25:10 i thought maybe you gen'd it using Automator or something Sep 15 23:25:16 did you actually write that ? Sep 15 23:25:21 Oh hell no. I wrote the thing. Sep 15 23:26:07 from scala to applescript … a journey Sep 15 23:26:09 I didn't know AppleScript before I did this. I'm frankly amazed it works. Sep 15 23:26:41 gtg ttyl Sep 15 23:26:46 Ciao Sep 15 23:31:20 i am practicing android development and i am trying to make an Alarm application with a cool UI, is there a way that i can get a clock widget into my application?? Sep 15 23:32:06 Which kind of widget do you mean? Sep 15 23:32:31 Widget is such a fun word to say. Sep 15 23:32:48 Has anyone in here used something like the IOIO board. I am trying to use the libaries and follow the examples, however, I need to pass a command from the UIThread (Main Activity) to the Looper thread that the IOIO creates. I can't seem to get it working using handlers like I have done with other situations. This is due to the fact that I do not know where to create the Handler (no run function in the looper class)??? Sep 15 23:33:44 i can only find the default analog clock in the android pallete, but i want a clock like a cool one that you want to have on your homescreen Sep 15 23:36:59 TextClock ? Sep 15 23:38:30 bankai_, analogclock Sep 15 23:38:57 i think textclock is cool :P Sep 15 23:39:05 i want another one Sep 15 23:39:46 Then I think you'll have to make one. Sep 15 23:40:25 do you mean draw one? Sep 15 23:40:44 like drawing a circle and two lines Sep 15 23:40:46 ? Sep 15 23:41:07 Do you want a circle and two lines? Sep 15 23:41:45 https://play.google.com/store/apps/details?id=com.chilisapps.android.icsClockFree&hl=en Sep 15 23:41:49 something like that Sep 15 23:43:24 Well, get to work then. Sep 15 23:44:41 <^cheeky> kakazza: I got it to work .... I think :) Sep 15 23:46:00 ok Sep 15 23:51:46 <^cheeky> so .. i mamaged to download xml from a remote site, using the AsyncTask, so the xml that i got, has a image link as well should i then create another async class to download the images and load them on a seperate thread as well ? Sep 16 00:33:02 YAY! My app works! Sep 16 00:33:26 Wait, what's a segmentation fault? Sep 16 00:33:35 Bitwise, Sigsegv Sep 16 00:33:39 means your in bad, bad, do-do Sep 16 00:33:50 Can be a bunch of issues :P Sep 16 00:34:03 (I'm just kidding) Sep 16 00:49:26 Funny how no one saw through that. Sep 16 00:51:15 not really. there are very few experienced programmers in here. Sep 16 00:53:31 inexperienced people are usually the loudest since they often want to show off something they've learned, or to appear to be experienced. Sep 16 00:55:10 pragma-, I'm pretty loud as well :D Sep 16 01:01:55 ditto. Sep 16 01:01:57 well, actually, i used to be :) Sep 16 01:02:48 actually i'm still noisy, just at my coworkers now instead of you guys. i have more coworkers than are in this channel. Sep 16 01:03:27 o/ jasta Sep 16 01:03:48 JesusFreke! ltns :) Sep 16 01:04:03 indeed :) Sep 16 01:04:30 how've you been? any interesting side projects? Sep 16 01:04:38 <^cheeky> hi, i am implementing a listFragment .. and it has its onwn listview .. it holds ..but i cant seemt o access it .. using the getListView() in my creatView() in my list Fragment .. class .. it says its not been created.. i am trying to load more data at the end of the list Sep 16 01:04:41 perhaps you've decided to take pity on Dalvik and fix all the things? :) Sep 16 01:04:51 mostly just hacking away on smali still :) Sep 16 01:05:13 I briefly played around with writing a smali plugin for IDEA. didn't get very far, but still something I want to tackle Sep 16 01:05:24 that would be nice Sep 16 01:05:28 oh, and my penrose tiling live wallpaper, if you hadn't seen that. Sep 16 01:05:35 i have not Sep 16 01:05:37 that's been around for a little bit though Sep 16 01:05:39 jasta: Who are you working for? Sep 16 01:05:41 penroser.com Sep 16 01:05:46 kakazza: facebook Sep 16 01:05:57 jasta: oh, nice! didn't know that Sep 16 01:06:09 Ah, were you the one who wanted to fix/benchmark dagger, compared to other Dependency Injection frameworks? Sep 16 01:06:18 i may have been. Sep 16 01:06:22 i have worked on that Sep 16 01:06:28 Did you ever get to it? Sep 16 01:06:29 brb 1s, my pizza is done Sep 16 01:06:58 Dagger is effectively free at runtime. Sep 16 01:08:08 <^cheeky> hungry :( Sep 16 01:08:17 eat. :) Sep 16 01:08:28 <^cheeky> i dont want to leave heh .. but i should Sep 16 01:09:13 JakeWharton: I know there was something that jasta or someone else from FB didn't like. Sep 16 01:10:32 kakazza: as it turns out, Dalvik imposes a very curious penalty on class load and verification when the classes are in different dex files Sep 16 01:12:06 but my research isnt conclusive in that area yet so i dont want to comment much further :) Sep 16 01:12:50 suffice it to say that it would seem based on evidence so far that Dagger pays a very expensive class loading penalty on all classes in the DI graph when multiple dex files are involved, which is the case for Facebook (as per our public post) Sep 16 01:13:39 kakazza: I am considering submitting patches to Dagger to make the necessary design tweaks to implement this feature. Sep 16 01:13:41 Frome June Sep 16 01:14:10 indeed, i did not :) Sep 16 01:14:40 You were talking about how DI frameworks, like Dagger might end up loading all classes up front. Sep 16 01:14:49 that's what i just mentioned. Sep 16 01:14:51 And that you would solve it by Class.forName() etc, depending on the case Sep 16 01:15:08 the penalty being paid is not what i expected at that time Sep 16 01:15:29 Dagger pays a silly penalty of class loading the provider up front, but that's not a big deal in practice Sep 16 01:15:55 Dagger, when spreading across multiple dexes, pays a much higher price due to Dalvik's lack of preverification Sep 16 01:16:28 but this isnt Dagger's fault, it's Dalvik's. Dalvik should offer first class support for multiple dex files in the same APK and preverify them as one big set Sep 16 01:16:53 how google has avoided fixing the 64k method limit up to this point is truly baffling. this is going to screw us all soon Sep 16 01:16:56 afaik, dalvik verifies and odexes a dex file the first time it is loaded Sep 16 01:17:24 actually.. hmm. Sep 16 01:17:31 JesusFreke: it does, but preverification doesn't work across dex boundaries. So, it has to do an extra imperative verify if A.dex had something in B.dex directly referenced Sep 16 01:17:38 oh, right. you have to specify the location for the optimized dex file, when you load the dex files yourself. Sep 16 01:17:46 ah, gotcha Sep 16 01:17:49 this normally isnt an issue because the only things ever present are framework and classes.dex, and framework is imperatively verified by Zygote Sep 16 01:18:18 yeah, that makes sense Sep 16 01:18:32 i believe there is a way to work around this, but i haven't researched further. Sep 16 01:18:52 my attention meanwhile has turned to Dalvik. this 64k method limit needs a first class solution. Sep 16 01:19:06 if you look at apps like Google's I/O sched app, an arguably very straight forward, simple app, it uses 25k methods. Sep 16 01:19:15 i think we are all much closer to this limit than we realize. Sep 16 01:19:29 Google+ and Maps are, IIRC, both at > 50% of that limit Sep 16 01:19:34 and that's after proguard, mind you Sep 16 01:20:02 and once this is fixed, because it cannot be fixed without perf implications backwards compatibly, it will take the years for that fix to be available for everyone as is standard with Android rollouts Sep 16 01:20:07 so Google needs to work on this _NOW_. Sep 16 01:20:20 Nah, just make your app entirely in JNI :P Sep 16 01:20:43 It's so easy for them to do. For the framework, this is hardly even a hack. It's just saying ok sure, here you go multiple dex files in your classpath and we'll go ahead and assume any dex files that came from the same apk are preverified as a unit Sep 16 01:21:26 Then dx and apkbuilder need some simple glue to divide into multiple dex files when things overflow Sep 16 01:22:13 But just to go back to dagger, so, it turned out for small apps with only one .dex file, the penalty is marginal, correct? Sep 16 01:22:22 Yes. Sep 16 01:22:29 There is still a penalty though, but its a different one. Sep 16 01:22:35 Still worth a pull request? Sep 16 01:22:45 Different? Sep 16 01:23:01 The penalty is that lets say your graph had 1000 classes in it. There will be 1000 extra class files gnerated as automatic providers, and those classes will _all_ be class loaded up front. Sep 16 01:23:27 Yeah it's worth fixing. The larger your app the larger that penalty. It's not so bad that the classes exist, but it is bad that they are not loaded on demand. Sep 16 01:23:46 Reflection would work around this. Sep 16 01:23:48 Is the penalty start up time or is it memory? Sep 16 01:24:10 Right now Dagger basically says map.put("com.foo.ThingYouNeed", new ThingYouNeedProvider()); <-- that line class loads ThingYouNeedProvider Sep 16 01:24:17 it's startup time and memory Sep 16 01:24:25 but its more about time and memory not being amortorized. Sep 16 01:24:40 err, amortized. apparently i have no idea what that word is. Sep 16 01:24:45 Are you sure those aren't lazy? I find that really, really hard to believe. Sep 16 01:25:13 JakeWharton: why would it be hard to believe? you are newing the class on demand to put the entry into the map. Of course Dlavik has to load the class when you new an instance of it. Sep 16 01:25:44 Also, Dalvik has easy instrumentation you can enable that prints out each class being loaded and verified. It shows clearly that all providers are loaded up front Sep 16 01:26:10 I find Dagger not being lazy hard to believe, not Dalvik Sep 16 01:26:36 JakeWharton: think about it, the first time I say, hey Dagger, I need com.foo.ThingYouNeed. Sep 16 01:26:48 How will it know how to make a ThingYouNeed unless it has a mapping of classes => providers Sep 16 01:27:06 Also, if you don't like my thought experiment, you can just compile the sample code and look at the autogenerated result and see plainly what it does :) Sep 16 01:27:33 there are two ways around this, neither of which dagger takes: you could make a mapping of classes => modules => providers Sep 16 01:27:51 so when i need com.foo.ThingYouNeed, it can figure out which module could have provided that, then configure them all, and finally look at the provider Sep 16 01:28:06 but this is a weak optimization since a sufficiently complex graph will just end up loading a significant portion of the world anyway Sep 16 01:28:40 the second is to convert that map to map.put("com.foo.ThingYouNeed", "com.foo.ThingYouNeedProvider"); <-- then on demand, do Class.forName("com.foo.ThingYouNeedProvider"); and get a new instance of it Sep 16 01:29:00 That way you amortize the cost; providers are class loaded only when the thing they provide is requested. Sep 16 01:29:27 this second approach is easy and works within the current architecture of Dagger. It's an easy optimization. Sep 16 01:29:47 but, the providers are all very small classes and they do class load a hell of a lot faster than the things they provide Sep 16 01:30:05 so the optimization, while being easy to implement, is also a pretty minor gain for just about everyone using Dagger Sep 16 01:30:28 Your graph would have to be pretty damn big for this to be 200ms+ Sep 16 01:31:01 kakazza: should i successfully convince Facebook to switch to Dagger, I will be providing this patch :P Sep 16 01:33:39 Looking forward to it. Same as in June ;) Sep 16 01:33:42 JakeWharton: didnt you write dagger, btw? shouldn't you know off-hand? :) Sep 16 01:33:55 well, let's just say things are not looking good to switch internally to Dagger. Sep 16 01:34:12 Do you use something homebrew internally? Sep 16 01:34:22 no comment Sep 16 01:34:27 heh Sep 16 01:34:56 I'd still love to see you providing a patch, or at least an Issue/PullRequest they can work with. Take one for the team! :p Sep 16 01:35:12 *anyhoo*, my real rage is toward Dalvik here. this 64k method limit thing has been ignored long enough. Sep 16 01:35:47 that's what i should be patching. Sep 16 01:36:00 so at least for the love of god Android 5.x or whatever the hell can have a fix Sep 16 01:36:24 maybe in, oh i dont know, 2020 we can have apks that don't have arbitrary code size limits. Sep 16 01:37:33 jasta: I've worked on it. Didn't write it. And I still think you're wrong about loading. Sep 16 01:37:45 To the github! Sep 16 01:37:53 you go right ahead and try to prove me wrong. i let dalvik do the instrumentation for me. Sep 16 01:38:00 in fact... Sep 16 01:38:03 i may have a sample i can send you Sep 16 01:38:58 indeed i do Sep 16 01:39:07 i'll write a proper issue and attach this Sep 16 01:39:28 \o/ Sep 16 01:39:31 You're talking about ModuleAdapter and InjectAdapter loading right? Sep 16 01:39:41 hang on, its been a while Sep 16 01:41:17 i ma talking about ModuleAdapter's getBindings() method, which is invoked imperatively for all declared modules. Sep 16 01:42:45 this is because the modules and the classes they provide aren't mapped anywhere. The system has no idea that ModuleA satisfies com.foo.ThingYouNeed. It just loads them all, building a huge ass map, and then consults that map Sep 16 01:43:02 So, to that effect, your "effectively free" statement is false -- it generates a huge ass HashMap :) Sep 16 01:43:37 which is cheap, mind you, but not free. Sep 16 01:43:51 a huge AssHashMap Sep 16 01:43:53 (http://xkcd.com/37/) Sep 16 01:45:02 <^cheeky> yay gas station food :( Sep 16 01:45:12 How do I make a button at the top? Sep 16 01:45:30 Like in AnrdoIRC Sep 16 01:45:32 Bitwise: i assume you mean im the action bar Sep 16 01:45:40 There is a little icon at the top Sep 16 01:45:43 Bitwise: add an options-menu Sep 16 01:45:57 and if I tap it, it does whatever. Sep 16 01:46:08 Bitwise: i just told you Sep 16 01:46:19 I know, I was typing. xD Sep 16 01:46:33 Bitwise: http://developer.android.com/guide/topics/ui/menus.html Sep 16 01:49:32 jasta: If you happen to write the actual issue, ping me, if you would, please. Sep 16 01:50:07 <^cheeky> kakazza: hey man i got it to work btw :) Sep 16 01:50:15 kakazza: working on it now Sep 16 01:50:22 making sense of my debug stuff i left behind Sep 16 01:51:40 ^cheeky: Nice! What did you end up using? Sep 16 01:53:51 jasta: If that's true I don't see why you wouldn't file that when you found it out. Sep 16 01:54:08 <^cheeky> kakazza: honestly.. i didnt get that far i am still working on it .. buuuut . the problem i had was that i was using a list fragment .. and on create i was setting listadapter .. but the list adapter at the time during on create was empty so in my async task i just set up list adapter on my post execute() and it worked hehe .. i started from scratch heh .. and its all working .. i am hoping thats the right place to set the list adapt Sep 16 01:54:08 <^cheeky> blowing up on the AVD :) Sep 16 01:54:13 JakeWharton: i thought it was by design, actually Sep 16 01:54:26 all the other DI systems ive looked at, including the one fb is using, had the same behaviour Sep 16 01:54:43 interesting Sep 16 01:54:58 its also practically speaking a pretty dang small optimization to make, and may even be slower in the end because Class.forName(...) could have very slightly greater overhead. We're talking razer thing margins per class, here. Sep 16 01:55:08 that said, i do think it deserves experimentation and benchmarking. Sep 16 01:55:22 caliper would make short work of this, as you know. Sep 16 01:56:52 Caliper? Sep 16 01:56:57 razor thin* Sep 16 01:57:21 kakazza: microbenchmarking tool that is designed to work with Dalvik, written by one of the original Dalvik team members. Sep 16 01:57:32 and, I believe, is a current colleague of JakeWharton's :) Sep 16 01:58:05 since the original author left google, hwoever, they have screwed it up and dropped Dalvik support making it a real pain to use for Dalvik. Sep 16 01:58:10 but it still does technically work Sep 16 01:58:41 if you hack around all the issues, that is Sep 16 02:00:01 ugh Sep 16 02:03:09 jasta: using vogar? Sep 16 02:03:20 I'm happy to punch Jesse to fix stuff. Sep 16 02:07:48 JakeWharton: actually both vogar and caliper are broken. Sep 16 02:08:06 vogar is broken because it misunderstands some trivial changes with the shell layout and basic mechanics of dalvikvm Sep 16 02:08:12 easy fixes, but they need to happen anyway Sep 16 02:08:16 and caliper is broken in far more serious ways Sep 16 02:08:48 caliper 1.x explicitly dropped Dalvik/Android support and imported a ton of new dependencies, many of which appear not to work properly with a non-Sun VM. Sep 16 02:09:03 i tried it, fruitlessly, and was scared off by library after library failing to verify. Sep 16 02:09:22 it also added so much jar bloat that adb push was noticably slowed down as well. Sep 16 02:10:05 failing to verify and/or failing to init. Sep 16 02:12:10 kakazza / JakeWharton: https://github.com/square/dagger/issues/315 -- i'm working right now on forking dagger so i can upload my modified samples and debug logs for you to look at Sep 16 02:22:51 JakeWharton: updated with a link here: https://github.com/jasta/dagger/commits/master Sep 16 02:39:31 so i'm running an asynctask. i have this in a separate class from my MainActivity class. how can i set the text on a TextView that's in my MainActivity class? Sep 16 02:40:49 http://stackoverflow.com/questions/9963691/android-asynctask-sending-callbacks-to-ui Sep 16 02:40:54 ie, the TextView belongs to my MainActivity class, and i can't access it from my AsyncTask class. make sense? Sep 16 02:41:15 use an interface. the first response should help you get started Sep 16 02:41:29 there are more complex things you could do. But that's probably the easiest to get setup Sep 16 02:42:05 cool thx. its been quite the learning curve to write an app. probably has to do with i'm new to programming/oop Sep 16 02:42:05 billybobjoe: AsyncTaskLoader is probably what you want. Sep 16 02:43:22 while jaynewstrom's suggestion will work, and is otherwise correct, it is side-stepping a more robust approach which integrates with the Loader framework. Sep 16 02:43:53 you would then just send the result of loadInBackground to your Activity or Fragment from onLoadFinished as per the example in AsyncTaskLoader's documentation Sep 16 02:44:25 it probably seems like a fair amount of boiler plate (and perhaps it is), but it offers a lot of advantages that you can't see like automagically letting you recover from rotating the screen and many other oddities Sep 16 02:44:40 that's why Loader is awesome. Sep 16 02:44:47 hmm i'll have to take a look... Sep 16 02:45:06 it feels like i could hack it and get it done quicker.. Sep 16 02:45:22 but might as well learn it the correct way, right? Sep 16 02:45:28 well sure, and by all means if you want to ignore the edge cases that will happen, go for it :) Sep 16 02:45:53 its always worth your time to learn to be a better programmer :) Sep 16 02:46:15 I generally just use normal threads and use something like EventBus Sep 16 02:46:46 also an option, though i hope you don't mean Guava's EventBus because that thing performs like garbage :) Sep 16 02:47:00 Square, I think, built a performant event bus for Android though. Sep 16 02:47:10 https://github.com/greenrobot/EventBus is what I normally use Sep 16 02:47:17 Yeah, square has otto Sep 16 02:47:26 http://square.github.io/otto/ Sep 16 02:50:46 Oh Square, you're so sexy. Sep 16 02:51:14 Rolling your own, like a boss. :) Sep 16 02:51:34 haha! doesn't facebook do a lot of that too ;) Sep 16 02:52:14 Not like a boss we don't. Sep 16 02:52:22 fair enough! **** ENDING LOGGING AT Mon Sep 16 02:59:58 2013