**** BEGIN LOGGING AT Wed Sep 03 02:59:59 2014 Sep 03 03:01:25 bankai_au https://www.youtube.com/watch?v=UowkIRSDHfs Sep 03 03:01:53 is this dogs eating shit? i see enough of that Sep 03 03:02:12 is this jake? Sep 03 03:05:33 bankai_au not jake, but could have been a few years ago (he was like that) Sep 03 03:41:45 hello Sep 03 03:42:37 does anyone have some ideas how i could do a preorder in app purchase for a future android dev, then be able to deliver effectively once i am ready to fulfill the preorders? Sep 03 03:43:03 future android app* Sep 03 03:44:56 with an iap yeah Sep 03 03:45:02 yeah Sep 03 03:45:21 yeah Sep 03 03:45:22 basically purchase a preorder copy, inapp. then i need to be able to deliver Sep 03 03:45:49 well you would just publish a placeholder with iap attached ? Sep 03 03:45:56 or a license apk Sep 03 03:46:04 I think you have a few options Sep 03 03:47:06 well i mean, i will publish an app with a purchase button in there. they can purchase a preorder of a different app. how would i store their data, then how would i deliver to that person Sep 03 03:47:39 well, for what you want you just want a license apk Sep 03 03:47:51 so you would get the user to purchase the license apk Sep 03 03:48:28 http://developer.android.com/google/play/licensing/index.html have a read Sep 03 03:49:20 interesting. im wondering practically how does it work for them Sep 03 03:49:32 they get some sort of key they can activate later? Sep 03 03:49:40 no Sep 03 03:49:42 read it Sep 03 03:49:44 or i get a mailing list i can send? Sep 03 03:52:54 i understand i can use that to check if they have got a valid license Sep 03 03:53:05 how would i get the app to them Sep 03 03:53:24 they would download it Sep 03 03:53:28 from play ??? Sep 03 03:53:53 i see Sep 03 03:54:09 but you can just publish a paid placeholder if you want Sep 03 03:54:18 no1 will buy it :) but will be there :) Sep 03 03:54:29 i see Sep 03 03:54:34 thats easier Sep 03 03:54:57 i like your style Sep 03 03:55:13 u got skype? Sep 03 03:55:42 yes…why? Sep 03 03:56:10 saves me coming here >.< Sep 03 03:56:22 huh? Sep 03 03:56:30 when i need tech support Sep 03 03:56:36 haha Sep 03 03:56:39 StingRay_: you selling yourself ? Sep 03 03:56:45 erm…no…no I dont think so Sep 03 03:56:51 ;) Sep 03 03:57:07 thanks lot for your ideas Sep 03 03:57:13 take care Sep 03 03:57:19 derp derp derp herp derp Sep 03 03:58:07 bankai_au wow… presumptions of some people Sep 03 04:11:05 does anyone know if the bank account associated with your merchant acct has to be a business banking acct or can you just use your own personal acct? Sep 03 04:11:51 personal is fine Sep 03 04:12:32 Cubez if you just send me your routing number and login credentials, in fact, might as well send them to the channel so everyone can help, we can get to the bottom of it in no time Sep 03 04:32:04 who's using gradle with robolectric ? Sep 03 04:32:19 any good solution (plugin) for running tests from IDE Sep 03 04:32:19 ? Sep 03 04:33:29 bwahaha Sep 03 04:33:42 man, just run the tests on genymotion , forget about that crap Sep 03 04:36:25 I got a lot of tests now Sep 03 04:37:11 dont really want to rewrite them Sep 03 04:38:52 but maybe I will have to... Sep 03 04:50:33 is it just me or does polymer seem really cool Sep 03 04:53:27 pfn as a web tech ? Sep 03 04:53:38 what else is it ? Sep 03 04:53:55 guy yesterday wanted to use in webview to be a mobile app Sep 03 04:54:01 pfn: seems cool to me Sep 03 04:54:21 StingRay_: I wanted to use it ;) Sep 03 04:54:27 he wanted to use bootstrap ;) Sep 03 04:54:38 also you cannot really use it in normal webview Sep 03 04:55:25 http://blog.gouline.net/2014/08/31/kotlin-the-swift-of-android/ Sep 03 04:55:55 I'm excited to try it out, polymer Sep 03 04:56:10 can use in kitkat webview Sep 03 04:56:15 not before though Sep 03 04:56:23 and who cares about kotlin Sep 03 04:58:27 why not ? Sep 03 04:58:33 seems small runtime Sep 03 04:58:39 got nice features Sep 03 04:59:00 but annotations dont work Sep 03 04:59:02 so out... Sep 03 04:59:12 eh Sep 03 04:59:25 it will be the same with robolectric ;/ Sep 03 04:59:41 I will probably need to rewrite those tests... Sep 03 05:04:32 because it's no good in the face of scala Sep 03 05:06:06 really no advantage in an incremental language improvement Sep 03 05:09:03 anybody here familiar with working with video? I'm trying to find some equivalent libraries to AVFoundation on iOS. I've found MediaMuxer, MediaCodec. However MediaMuxer seems to be limited to a single video and audio source. I need something like AVMutableComposition on iOS where i can compose videos by layering different vid clips, audio segments and images as needed. Are there any 3rd party libs ava Sep 03 05:09:03 ilable on Android that can do this? I don't want to reinvent the wheel if a solution already exists. Thanks in advance! Sep 03 05:09:34 omg scala is terribru Sep 03 05:09:43 kotlin 4 life Sep 03 05:10:41 damn this IAB is killing me, querying for purchases keeps spitting out IllegalStateException even though StackOverFlow shows the solution (i implemented it) and looked through the sample code 20 times over Sep 03 05:12:03 hey JakeWharton -- is the proper way to hide a menu item from the overflow in ABS this way: menu.removeItem(R.id.dashboard_menu_removeads); in onPrepareOptionsMenu? Sep 03 05:13:30 QubeZ whats the prob with IAB ? Sep 03 05:14:02 StingRay_: I keep getting IllegalStateException error stating that IAB is not setup when I run this: mHelper.queryInventoryAsync(mGotInventoryListener); Sep 03 05:14:22 you need to call setup Sep 03 05:14:32 thats it Sep 03 05:14:51 ya I called startSetup but that line within it crashes the app Sep 03 05:14:55 does anyone know where i can read more about using /cache/recovery/command for scripting actions for the recovery? (such as loading a ROM, which i have working up to the point where it signature fails even though if i load it manually in cwm there is no issue) Sep 03 05:15:13 StingRay_: http://hastebin.com/roweziheyi.coffee Sep 03 05:15:16 snippet Sep 03 05:15:19 QubeZ well setup is Async…so Sep 03 05:15:41 or does my question belong in #android-root? Sep 03 05:15:48 crashes the app is not very descriptive either Sep 03 05:15:55 that comented out section queryInvenstory crashes it -- I call it within the setupfinished method so its in the callback Sep 03 05:16:09 StingRay_: IllegalStateException IAB is not setup is the error Sep 03 05:16:22 JakeWharton: lol Sep 03 05:16:53 pfn: i was talking about size of the apk and method limit Sep 03 05:18:01 QubeZ well did it complete the setup with success ? Sep 03 05:18:18 StingRay_: it must have because otherwise my first if should have returned Sep 03 05:19:11 gordon_, not a problem Sep 03 05:20:18 does dexing take forever like with gradle ? ;) Sep 03 05:20:23 damn it's just slo Sep 03 05:20:23 w Sep 03 05:20:53 StingRay_: I heard it was a bug in IAB but those posts are old and I just pulled a copy of the Billing Services via my SDK manager Sep 03 05:21:10 QubeZ let me look at what I do Sep 03 05:21:17 k Sep 03 05:21:57 QubeZ ah, I dont use that helper Sep 03 05:22:01 I bind to the service Sep 03 05:22:09 like the helper does Sep 03 05:22:25 oh Sep 03 05:30:20 QubeZ: that will remove it completely. you can just call setVisible(false) Sep 03 05:31:25 JakeWharton: in onPrepareOptionsMenu? Sep 03 05:31:42 yes Sep 03 05:32:08 menu.findItem(R.id.dashboard_menu_removeads).setVisible(false); Sep 03 05:32:09 thats what I did Sep 03 05:32:52 if you're removing it permanently you can call invalidateOptionsMenu and just not add it to the menu in onCreateOptionsMenu Sep 03 05:33:35 in onCreateOptionsMenu I inflat it from an XML and not building it myself Sep 03 05:33:51 so this is sufficient I think to set visibility to false... thank you. Sep 03 05:34:13 im using android studio..in there there is this designer.. is there better designer than that? Sep 03 05:34:34 narutimateum xml editor is great Sep 03 05:36:01 got the dreaded high-risk transaction when trying to purchase an item from my test acct Sep 03 05:36:11 waiting for that issue to clar Sep 03 05:36:12 clear Sep 03 05:36:27 you got it working then ? Sep 03 05:37:05 I have IAB working for purchases, that issue I've been dealing with is when I try to check what the user has purchased. Right now I save that they purchased it in a preference but if they unintall the app then reinstall I lose that info. Sep 03 05:37:24 Im trying to do a check when the app first launches to re-add the pref back in after the queryInventory Sep 03 05:37:31 for now I've set debugging mode on and going to test further Sep 03 05:49:12 darn, findPreference always returns null Sep 03 05:49:18 a moment ago it worked perfectly Sep 03 05:51:20 meh Sep 03 05:51:38 i had custom preference in xml. i moved it to another package but eclipse didnt update Sep 03 05:57:57 oh yeah next week is apple Sep 03 05:58:21 tech stuff has been so boring lately, i hope they do something interesting Sep 03 05:58:30 wonder what they will "invent" this time :) Sep 03 05:58:54 only 2 things I would be interested in Sep 03 05:59:17 1. a ATX platform based on expandable i7 + designs Sep 03 05:59:24 2. an OSX tablet :) Sep 03 05:59:38 yeah, an OSX tablet would be awesome Sep 03 06:00:31 i hope its not a stupid watch Sep 03 06:01:11 no, they just (through suggestions) got everyone else to waste millions doing them :) Sep 03 06:02:09 or even an 'iPhone Air' that is not just a phone, but your computer which plugs into a monitor + keyboard Sep 03 06:03:01 no, you are thinking too big and expensive… if it can be done on the cheap and sold for lots… it's not an apple thing ;) Sep 03 06:05:18 it would be cool - when the phone was plugged into power source and was running as a normal computer, the device itself was a trackpad next to the keyboard Sep 03 06:05:40 Probably a white iRift. Because people were paying too much attention to where they were going with just a phone. Sep 03 06:06:15 :) Sep 03 06:06:16 might as well block out vision entirely :) Sep 03 06:06:59 there's no word 'expensive' in apple's dictionary Sep 03 06:07:06 fanboys will buy anything Sep 03 06:10:21 i amdissapointed that their newer laptops have soldered ram, if i recall, thats so lamesauce Sep 03 06:18:34 I think the macbook airs still have their SSDs soldered in Sep 03 06:18:41 nothing new Sep 03 06:18:49 good my ultrabook doenst :D Sep 03 06:19:21 my workmate keeps running out of SSD space, and keeps restarting his computer to clear some sort of OS X cache Sep 03 06:19:24 I laugh at him every time Sep 03 06:19:25 seems like people who buys apple like pain Sep 03 06:19:38 *buy Sep 03 06:19:59 i can think of no greater pain than buying a windows machine Sep 03 06:20:13 sorry I use linux ;) Sep 03 06:20:19 oh god thats even worse Sep 03 06:20:23 and mac at work Sep 03 06:20:29 same here Sep 03 06:20:31 which is slow Sep 03 06:20:37 i think these days i would go to a MS store and get one of their certified machines Sep 03 06:20:45 with no shit loaded Sep 03 06:20:58 I'd just get thinkpad and install linux on it Sep 03 06:21:09 like I always do Sep 03 06:21:14 there was an article on HN today ... Sep 03 06:21:21 yeah, I think next time I get a laptop I'll get a thinkpad with linux Sep 03 06:22:18 http://jc00ke.com/2014/09/02/linux-laptop-recommendations/ Sep 03 06:22:52 i got x1 carbon Sep 03 06:22:58 but without touch Sep 03 06:29:21 lolwut http://mashable.com/2014/08/18/tom-hanks-typewriter-app/ Sep 03 06:30:22 did he actually write it? Sep 03 06:31:54 no, he funded the app development Sep 03 06:38:08 wonder how many people will be leaving apple and icould now :) Sep 03 06:38:14 thats just funny though Sep 03 06:38:26 cloud* Sep 03 06:52:31 StingRay_, more like iCouldn't :p Sep 03 06:52:53 I find the whole thing really funny though Sep 03 06:55:54 can you see variables while debugging with gradle ? Sep 03 06:56:28 good day fellow pioneers Sep 03 06:56:30 heh :) Sep 03 06:59:07 pioneer? nah Sep 03 06:59:14 * ravilov prefers blaupunkt Sep 03 07:03:30 * JesusFreke prefers daftpunkt Sep 03 07:04:33 that's not even a color! Sep 03 07:05:18 but they make a mean tron soundtrack Sep 03 07:06:35 Honestly, I think that was one of the best movie soundtracks I've heard. Not in terms of listening to it by itself (although I do enjoy that), but in terms of actually being a part of, and enhancing the movie. Sep 03 07:08:13 What are the major changes in dealing with external storage in 4.4? Sep 03 07:08:41 I have an app that creates image files for camera capture, and used to delete files after use. Sep 03 07:09:05 Hi all, Somebody experience with osmdroid or creating tiles (with mobile atlas creator or something else) ? Sep 03 07:09:20 what should I take care of when porting my app from targetSDK 14 to 4.4? Sep 03 07:10:09 napster depreciated things ? :) Sep 03 07:10:40 :) Sep 03 07:10:50 Actually, I don't see deprecation warnings in my current code. but I see SOF posts regarding some changes in 4.4. Sep 03 07:11:48 For example this : http://stackoverflow.com/questions/1248292/how-to-delete-a-file-from-sd-card StingRay_ Sep 03 07:14:21 napster never run into that Sep 03 07:14:24 all fine here Sep 03 07:14:26 :) Sep 03 07:14:47 okey! :) Sep 03 07:21:02 napster, google no work? Sep 03 07:21:42 yeah, google worked, thats why I'm here! :D Sep 03 07:24:15 haha Sep 03 07:25:09 well, external storage is one of the more common (and controversial) things about 4.4, I'm pretty sure it is well documented by now Sep 03 07:33:07 napster: paths in 4.4 are different Sep 03 07:33:22 ok Sep 03 07:33:46 it doesnt point to the file itself but uses content storage ? Sep 03 07:33:54 that was it's name I guess Sep 03 07:33:57 might be wrong Sep 03 07:34:08 but we had an issue with it and photos from gallery Sep 03 07:35:25 has anyone used the content apk thing? Sep 03 07:35:37 like splitting the code and the drawables into 2 files Sep 03 07:35:49 and then the apk is smaller and installs the drawables only once Sep 03 07:36:07 and it makes the updates to the app smaller as it doesn't need to download the drawables again? Sep 03 07:36:28 i kind of know the "process" but if someone knows of a good tutorial that i might go thru Sep 03 07:41:26 sorry, didnt know it's even possible Sep 03 07:41:38 its ok :) Sep 03 07:41:39 do you have any link ? Sep 03 07:41:44 got interested Sep 03 07:41:47 did google not introduce delta updates ? Sep 03 07:42:05 StingRay_, its a bigger issue Sep 03 07:42:15 our apk is 12mb in size Sep 03 07:42:26 but does not install on a small phone with only 20mb free space Sep 03 07:42:31 cuase of the unpacking of the apk Sep 03 07:43:01 so i want to reduce the apk size to 3-4mb and the resources apk is on the sdcard Sep 03 07:43:17 ah, you want to do it this way Sep 03 07:47:07 http://developer.android.com/google/play/expansion-files.html Sep 03 07:47:11 there is the link gordon_ Sep 03 07:47:18 thanks Sep 03 07:47:39 i want to use that for the purpose i described just to see if its possible Sep 03 07:47:54 so that coupled with delta updates Sep 03 07:48:01 would mean a very very small update Sep 03 07:49:14 we have a very wide range of users and most of them cant afford to download 11mb biweekly Sep 03 07:50:30 same here Sep 03 07:50:37 that's why I'm interested Sep 03 07:50:56 wow, what apps do you guys have on the market ? Sep 03 07:50:57 do you have some source about delta updates ? Sep 03 07:51:01 google failed to me Sep 03 07:51:03 that meet that criteria Sep 03 07:56:12 the best app ever Sep 03 07:56:43 whats the name ? Sep 03 07:56:52 If you have FragmentA, add FragmentB (added to the backstack), press back button, FragmentA is back visible. How can you capture if a Fragment becomes back visible? (need to update the title of the activity) Sep 03 07:57:12 onResume isn't called so I can't put the code there Sep 03 07:57:23 StingRay_, we dont have a big app its only ~12mb but its too big for the majority of users Sep 03 07:57:30 onBackButtonPressed Sep 03 07:57:34 I guess Sep 03 07:57:53 FrancescoV, during the onResume() do invalidateOptionsMenu Sep 03 07:58:29 o Sep 03 07:58:30 better Sep 03 07:58:49 FrancescoV, oh .. the title .. do getActionbar() / getSupportActionBar() .setTitle() in the onresume Sep 03 07:59:03 that will make sure that what ever fragment is visible at the time will set the title on the action bar Sep 03 07:59:10 the onResume will always be called Sep 03 07:59:32 during rotation and when a fragment that was ontop goes away Sep 03 08:00:00 so it's the best place to put complex logic like counting Pi Sep 03 08:00:12 FrancescoV, just make sure the onResume is actually not called cause we have this process in place Sep 03 08:00:19 and it works very well Sep 03 08:01:07 pfn: https://github.com/ktonga/reactive-turtle Sep 03 08:03:09 lemonxah, not working. onResume isn't called. Sep 03 08:05:25 lemonxah: my code: http://pastebin.com/c2Vx0h3w Sep 03 08:07:37 FrancescoV, you should call super.onResume() at the end of you ronResume() Sep 03 08:07:43 try that and let me know what happens Sep 03 08:08:45 FrancescoV, http://pastebin.com/13MLvNSL Sep 03 08:11:56 lemonxah, ok, i'll try Sep 03 08:15:05 lemonxah, not working here. I found "onResume() of the Fragment is called only when the Activity is resumed." With popupbackstack() onResume of the Activity isn't called, maybe I'll try this: http://stackoverflow.com/a/20248531/1723525 Sep 03 08:17:27 FrancescoV, let me check quick what else we are doing Sep 03 08:20:05 FrancescoV, did u come right with the viewbinder? Sep 03 08:20:21 lemonxah, morning babe Sep 03 08:20:49 morning babe? Sep 03 08:20:53 heh Sep 03 08:21:26 kevell, was for a colleage, nothing heard yet Sep 03 08:21:35 there was some guy playing as you a few nights ago in cod Sep 03 08:21:48 either you, or someone smurfing with your nick Sep 03 08:21:51 or something familiar Sep 03 08:22:40 must be someone else Sep 03 08:22:45 heh :) that was me .. but wow i am bad after not playing for a few months Sep 03 08:23:00 also my dad has this .. 7th sense to phone me as soon as i start playing :/ Sep 03 08:23:09 then i just run around while i am on the phone .lol Sep 03 08:25:40 haha sounds like me last night in a mix. started playing since 2009. aiming is so terrible ;/ Sep 03 08:25:54 like, stopped playing in 2009. started again now for fun Sep 03 08:26:06 when i get to play without a phone on my face then my aim is spot on .. Sep 03 08:37:43 FrancescoV, its very weird i will setup a dummy app Sep 03 08:37:52 cause we aren't doing anything special Sep 03 08:39:24 lemonxah, ok thanks a lot! Sep 03 08:40:34 FrancescoV, http://developer.android.com/guide/components/fragments.html#Lifecycle Sep 03 08:40:40 according to the documentation Sep 03 08:40:51 when the activity is running it is in the resumed state Sep 03 08:40:59 and the fragments will mimic this Sep 03 08:41:04 SQLiteStatemen.bindSomething(int, something); does the index start at 1? Sep 03 08:41:29 when a fragment comes into view again it is in the resumed state and the resumed state will fire the onResume() according to the diagrams on that link Sep 03 08:41:38 true, but I'm not changing from Activity so onResume isn't called again Sep 03 08:42:16 no need for the onResume of the activity to be called for the fragment's onresume to be called Sep 03 08:42:33 fragment onResume will be called while the activity is in the resumed state Sep 03 08:42:40 well that is according to the documentation Sep 03 08:42:53 and this is how we have implemented it and it seems to be working just fine Sep 03 08:44:05 android handles the pause and resume life cycle states, you shouldn't have to call anything unless you are overriding Sep 03 08:44:11 then call the super method Sep 03 08:44:43 not calling it just stating how the framework is calling it Sep 03 08:48:19 hello. how to dynamically add items to list view as data is fetched from the internet Sep 03 08:49:28 vedu with a contentprovider and contentresolver system with a cursor.loader Sep 03 08:49:50 that will update the view whent he data is updated in the database without having to put manual updates in place Sep 03 08:50:00 how should I sanitize my SQLite queries? Sep 03 08:50:02 its closest you will get to data binding Sep 03 08:51:00 usually I would use prepared statements, but apperently those seem to be fairly useless in android (can only return 1x1) Sep 03 08:51:18 can I maybe cast the statement to string and use it in a rawQuery? Sep 03 08:51:57 how are you using your SQLite ? directly or with a content provider Sep 03 08:52:22 directly Sep 03 08:52:56 and what would you like to sanitize? Sep 03 08:53:10 what is in the queries that shouldn't be there? Sep 03 08:53:31 select * from table where something = Sep 03 08:53:52 yeah that is why i use contentprovider :) and the uri system Sep 03 08:54:29 will a content provider automatically sanitize for me? Sep 03 08:54:58 kind of Sep 03 08:55:07 sanitization through obscurity Sep 03 08:55:08 heh Sep 03 08:55:22 rather do something like this Sep 03 08:55:57 can't the user still enter "'; drop table *;"? Sep 03 08:55:58 db.execute("select * from table where something = ?", userinput.getText()) Sep 03 08:56:08 hello, can someone help me with the sdk versions Sep 03 08:56:18 and you can do this even Sep 03 08:56:21 if i have android:minSdkVersion="9" what version should i use to compile? 9? Sep 03 08:56:23 db.execute("select * from table where something = '?'", userinput.getText()) Sep 03 08:56:25 or can i use the latest? Sep 03 08:56:36 lemonxah, execSQL? Sep 03 08:56:45 yeah Sep 03 08:56:50 entity, latest Sep 03 08:57:04 nice, thanks Sep 03 08:57:14 entity, actually, there is a paramter for the compile version as well Sep 03 08:57:39 yes i know, i'm using the NDK though Sep 03 08:58:44 can't really help you with that Sep 03 08:58:53 lemonxah, any difference to rawQuery? Sep 03 08:59:17 not really Sep 03 08:59:29 with my tabs, onTabSelected how can I send the tabText of my tab to the fragment it opens? please help Sep 03 08:59:43 I noticed that it takes object[] in the selection args while rawQuery takes string[] Sep 03 09:00:11 objects can be ints or lonsg Sep 03 09:00:20 and string i assume Sep 03 09:00:27 but you should be able to just do new String[] { userintput.getText() } Sep 03 09:00:47 my whole query is actually rather complicated Sep 03 09:01:00 so no i can't Sep 03 09:04:22 lemonxah, oh, execSQL specifically states that it can't do select Sep 03 09:04:31 probably because it returns void. Sep 03 09:05:46 Syzygy_, then a rawQuery would work better i guess Sep 03 09:05:59 guess I have to use rawQuery. just one more question though. my arguments are a mix of long and string Sep 03 09:06:12 sorry i dont use SQLite outside of context of a contentprovider cause it makes more sense for my usecase Sep 03 09:06:43 well for any usecase i can think of cause the data in the database you would use to display data with meaning i would like to use cursor loaders Sep 03 09:06:44 strings need to be compared as something = 'string' while long need to be compared as something = 123 Sep 03 09:06:51 so that i dont have to manually update my screens Sep 03 09:07:11 Syzygy_, actually no cause SQLite does not have a type system Sep 03 09:07:16 its all strings in the database anyway Sep 03 09:07:22 nice Sep 03 09:07:45 you shouldnt really use sql outside a provider anyways Sep 03 09:07:47 very messy Sep 03 09:08:02 no it's not... Sep 03 09:08:19 it is only as messy as you make it Sep 03 09:08:26 well why would you want to? Sep 03 09:08:45 kevel1 to be more dynamic Sep 03 09:09:04 dunno, because it is the right thing to do for a given situation? Sep 03 09:09:15 it most certainly has its place and usage Sep 03 09:09:28 ravilov, its 'messy' cause you have to do manual data updates with broadcast receivers when data changes while you are looking at it on screen Sep 03 09:09:31 that is messy Sep 03 09:09:51 its a lot cleaner to use the cursor loaders that was built for that very usecase Sep 03 09:09:54 lemonxah, that has nothing to do with sql itself Sep 03 09:10:20 lemonxah also what you said makes no sense Sep 03 09:10:21 then why use sql or any database in an android application if you are not displaying this data to the user at any point? Sep 03 09:10:30 you can use a "loader" with a "cursor" Sep 03 09:11:13 http://developer.android.com/reference/android/content/CursorLoader.html Sep 03 09:11:14 lemonxah, quit being so narrow-minded and poorly informed yet aggressively opinionated Sep 03 09:11:14 the cursor you can get from anything, so yeah… I use loader without content providers Sep 03 09:11:14 lets all disregard the tools android gives us and write our own because we know better :D Sep 03 09:11:34 ravilov, stop being so wide-minded and affressively opinionated Sep 03 09:11:36 lol Sep 03 09:11:46 lemonxah, fairly convoluted thing where I have a DAO of a large table, with like 30 columns x 20000 rows including images (stored separately), those are dynamically loaded in a list, but the list is to slow with the full objects, so a simple object was written... and now I need to write the search for that Sep 03 09:11:51 Hello everyone! I can't figure this one out: What should be the standard way of adding git commit ID to my app's string? Should I use additional ant target or something? Sep 03 09:11:56 anyway, thanks for the help Sep 03 09:12:40 Syzygy_, have you looked at using an ORM or something that already deals with delivering your data content? Sep 03 09:12:55 Writing something from scratch is so tedious Sep 03 09:12:57 lemonxah, I could give you at least several actual real-life cases where this makes perfect sense, but your immature attitude doesn't warrant my efforts Sep 03 09:12:59 imho if you have 30 columns in a table then the db design is the problem over the sql queries Sep 03 09:13:22 Syzygy_, would you like some links? Sep 03 09:13:39 lemonxah, found the problem about the title and onResume. With a FragmentTransaction replace it works, but doesn't work with the add Sep 03 09:13:58 yeah, but as I said, loading the full object is to slow and I haven't found a way to reasonably construct the simpler object from ormlite (which is what i'm using) Sep 03 09:14:01 ravilov, please do give me an example of an android app where putting data in a sqlite database without displaying said data in the application Sep 03 09:14:22 FrancescoV, yeah :) that does ring a bell sorry i was unable to recall Sep 03 09:14:37 Syzygy_, too slow? Are you doing this on the main thread? Sep 03 09:14:44 lemonxah, like I said, I'm not going to feed your immature trolling anymore Sep 03 09:14:46 no Sep 03 09:15:04 Syzygy_, you dont have to load the full object with content resolvers you specify the projection that you are interested in Sep 03 09:15:05 np, thanks anyway for your help Sep 03 09:15:07 Syzygy_, perhaps delegate it to a different thread or something Sep 03 09:15:29 Syzygy_, i dont understand the context of what you are trying to do, just blabbering Sep 03 09:15:42 jumped in the convo a bit alte Sep 03 09:15:52 ravilov, the mere fact that you are not supplying me all these wonderful and bountiful ideas is cause you are the one trolling Sep 03 09:16:31 uhhuhh Sep 03 09:16:44 * kevel1 grabs some popcorn Sep 03 09:17:32 lemonxah can you create a dynamic content provider ? that is to say…let the user of your app create one ? Sep 03 09:17:48 and if so, is that easier than a simple sqlite solution ? Sep 03 09:19:02 when the call canvas.drawBitmap is made, and the bitmap is drawn to the canvas, how long is the reference active? Sep 03 09:19:20 can i recycle once the invalidation is complete? right after making the call? Sep 03 09:19:23 yes StingRay_ you will be able to create dynamic data in tables with contentproviders Sep 03 09:19:35 and it would be easier to work with Sep 03 09:19:46 but would it be more efficient that remains to be seen Sep 03 09:19:46 lemonxah no not just data, structure Sep 03 09:19:57 lemonxah, how much knowledge can i steal from you of how things are done at MXit? Sep 03 09:20:07 no1 has answered my question here since last week Sep 03 09:20:09 that being Sep 03 09:20:12 heh :) Sep 03 09:20:37 StingRay_, you dont need the structure if the problem was approached in a different way Sep 03 09:20:38 "Who has written an application that realize on a TCP connection which needs to remain active all the time" Sep 03 09:20:49 that being said it does not mean its the best solution Sep 03 09:20:54 only that it can be done Sep 03 09:21:10 and the first thing i would suggest to anyone that needs to display said data to the user Sep 03 09:21:14 lemonxah true but whenever i approached it, seemed more work than just direct sqlite Sep 03 09:21:35 only when its found that the contententprovider system cant fit your needs would i suggest rolling your own system Sep 03 09:22:07 StingRay_, sure that is why i say it does not mean its the best solution but it is do able :) Sep 03 09:22:28 lemonxah you asked for an example…that was one close to my heart ;) Sep 03 09:22:34 kevel1, "relies on" not realize :) hehe Sep 03 09:22:44 ye i was man mode typing Sep 03 09:22:45 lol Sep 03 09:22:56 yes :) wasnt asking you hehe i know there are examples i was just asking the troll Sep 03 09:23:08 that so clearly say he could think of plenty Sep 03 09:23:13 but then came with none Sep 03 09:23:38 kevel1, we dont rely on the tcp connectino to always be there .. well only while using the app Sep 03 09:23:51 but we close it after 15 minutes of inactivity in the app Sep 03 09:24:27 lemonxah, and then, gcm? Sep 03 09:24:38 yes Sep 03 09:24:44 you see the problem is, i don't have the ability to do anything gcm related Sep 03 09:24:48 yeah i know Sep 03 09:25:04 what im doing at the moment is having a tcp connection push events to an eventbus that has a buffer Sep 03 09:25:15 and then when active, process the events Sep 03 09:25:15 that is why i would look at a different tcp connection something like mqtt where the data is lite Sep 03 09:25:20 else just hold it in the buffer Sep 03 09:25:23 oh... I was wondering why my app doesn't push... apperantly my phone crashed... Sep 03 09:25:25 but that could cause issues of its own Sep 03 09:25:36 there is a mqtt android library which is a service and will always try and keep your connection up Sep 03 09:25:43 but that also doesn't solve your problem Sep 03 09:25:51 lemonxah, the data is already protobuffed Sep 03 09:26:15 mqtt isn't a protocol in its entirety Sep 03 09:26:21 its a message transport Sep 03 09:26:30 tcp connection and making sure the messages get there Sep 03 09:26:44 you can still transport your protobuff data over mqtt Sep 03 09:27:02 as it only transports bytes regardless of what it is Sep 03 09:27:53 interesting Sep 03 09:28:02 When I change from CDMA to GSM network the TelephonyManager::GetDeviceId() returns different values? i.e. IMEI for GSM, MEID for CDMA ? Sep 03 09:28:17 And IMEI != MEID, always? Sep 03 09:28:39 also getdeviceId() only works if there is a simcard Sep 03 09:28:51 assuming there is one Sep 03 09:28:53 some tablets do not Sep 03 09:29:06 just stating the obvious :) Sep 03 09:29:50 but i have not worked on that side of android yet sorry Sep 03 09:32:08 don't you need a sim to enter those networks? Sep 03 09:33:37 dont need a sim persay but you need the capability of a sim Sep 03 09:34:01 sounds like getDeviceId would be part of that capability Sep 03 09:34:50 and that is exactly what i said .. well bar the actuall simcard being inside the device Sep 03 09:35:10 and yes but you can still do the getdeviceid call without the device having that capability Sep 03 09:35:14 if you dont check for it Sep 03 09:36:26 I have some debug information i want to paint to the canvas, so i use a backing bitmap to draw it asynchronousily and anyways, since it is just some text (with ideally transparent background) what format for bitmapconfig should i use? isn't argb_8888 overkill or does that not even matter anymore? Sep 03 09:48:12 My service needs to run forever while my app is running. Looping to check for updates in the local ORM. I'm now using Thread.sleep(60000) for a 1 minute sleep time between polls. It doesn't appear to me very energy efficient. Is there other ways? I see something like AlarmManager etc. Sep 03 09:54:02 there is a SystemClock.sleep() but does kinda much the same thing i think Sep 03 09:54:25 napster, why are you looping through an ORM to check for updates? Sep 03 09:55:55 kevel1 my app syncs the updates in the local DB with servers Sep 03 09:56:05 if there is a suitable internet connection Sep 03 09:56:34 so, I keep polling and once a data sync is required, I collect it and upload to the server Sep 03 09:56:41 that is the use case. Sep 03 09:56:57 with my tabs, onTabSelected how can I send the tabText of my tab to the fragment it opens? please help Sep 03 09:58:10 MartialLaw can you get the text inside of onTabSelected ? Sep 03 09:59:09 napster, sounds like a good case for binders/loopers/handlers Sep 03 09:59:19 loopers Sep 03 09:59:26 ok let me see what it is :) Sep 03 09:59:28 thank you! Sep 03 09:59:34 StingRay_: yes i can Sep 03 09:59:53 so rephrase your question then Sep 03 10:00:04 cause the tabs thing is now irrelevant right ? Sep 03 10:00:21 okay, then how can I send that text to the fragment? Sep 03 10:00:33 i'm using a viewpager btw Sep 03 10:00:44 does the fragment already exist ? Sep 03 10:00:44 Is it just my imagination, or is the xml drawable preview really shit? Sep 03 10:01:09 try with a carrier pidgin? Sep 03 10:01:44 StringRay_: no Sep 03 10:01:45 Estel, xml drawables are (or can be) way too complex to produce decent previews Sep 03 10:02:05 MartialLaw then you can pass it as args in a new instance creation Sep 03 10:02:29 that gives me a NPE Sep 03 10:02:49 errr...right Sep 03 10:03:10 the whole idea of that gives you NPE, which is why millions of us use it Sep 03 10:03:11 :) Sep 03 10:03:22 do you know what an null pointer is ? Sep 03 10:03:30 wheee. Ok, anyone used *any* MDM that integrates with Samsung APIs (so it can do more than the DeviceAdmin API) and can give some pointers? Sep 03 10:03:51 im pretty sure i have a pretty good idea Sep 03 10:04:01 then easy to solve Sep 03 10:05:08 seriously, NPE is quite possibly the most common, the most clear, and the most easily solvable problem, why do people get confused by it so often? Sep 03 10:05:26 lack of reading I would think Sep 03 10:05:59 Somebody used PhotoView before? Sep 03 10:06:14 yeah the author of it probably did :p Sep 03 10:10:20 nm, about the photoview Sep 03 10:11:37 If you replace a fragment and press the back button, onresume is called. But my fragment contains a ListView, how can I make it possible that the scrollview / visible items are like when I leaved the fragment? Curently it goes always to the top, which is normal with setting an adapter again Sep 03 10:11:56 or shouldn't I create the adapter again and set it to the ListView? Sep 03 10:13:19 save to bundle on onpause and restore on onresume? Sep 03 10:13:43 dunno really, didn't work with fragments yet Sep 03 10:14:17 ravilov, now I see onCreateView of the Fragments is called when I push back button after FragmentTransaction.replace Sep 03 10:15:51 ok Sep 03 10:15:58 pfn: tried tutorial of polymer Sep 03 10:15:59 For some reason I started trying to make a parallelogram in XML. This was clearly a mistake, but I'm determined to plough on Sep 03 10:16:02 seems pretty nice Sep 03 10:17:00 Can someone help me? https://stackoverflow.com/questions/25641055/draw-an-bitmap-on-a-canvas-with-a-custom-shape Sep 03 10:18:05 Click66 was the answer you got no good ? Sep 03 10:18:13 is that a mask or a distortion ? Sep 03 10:18:28 you probably need to be more precise with what you want Sep 03 10:20:16 StingRay_: I don't need a mask. I really need a shape like that that is my image Sep 03 10:20:38 so a distortion then Sep 03 10:21:13 yes Sep 03 10:21:29 so was the BitmapShader no good ? Sep 03 10:21:39 somebody with good experience with FragmentTransaction? replace, attach, detach? Sep 03 10:22:02 StingRay_: then I just need to draw the whole image and then set a bitmapshader on it.. is that not useless to draw the whole image? Sep 03 10:22:12 hi Sep 03 10:22:24 FrancescoV just ask the questions Sep 03 10:22:26 I have an onScroll event not bubbling back up the hierarchy Sep 03 10:22:38 no point asking for peoples experience thats 100% subjective Sep 03 10:23:06 I'm returning false on the layouts onTouchListener with a gesturedetector Sep 03 10:24:20 StingRay_, he already did, up there ;) Sep 03 10:24:42 unless this is a different question now Sep 03 10:24:44 Question about FragmentTransactions http://pastebin.com/XLdZ8u5c Sep 03 10:24:47 ravilov I just see statements up there Sep 03 10:24:55 I'm having troubles with installing an app from web; so I have the link which lead to latest generated signed apk (signed by my key); android phone on which I open the link tries to install an app but than just claims that "App can not be installed"; what could be the root of this behaviour? Sep 03 10:24:56 any suggestion is welcome Sep 03 10:25:30 FrancescoV restore the position ? Sep 03 10:25:34 whats the problem ? Sep 03 10:26:40 StingRay, yes but with ft.replace the fragment is created again (= remove the fragment and add new one when pressing back button) Sep 03 10:27:23 what ? you create it again on pressing back ? Sep 03 10:27:39 why would you create the fragment again on back press ? Sep 03 10:28:00 no, replace will create a new one I think Sep 03 10:28:31 replace is about view management Sep 03 10:28:41 I don't create a new one. If you use replace and press the back button. Will the same Fragment be used again or will a new be created? Sep 03 10:28:54 same Sep 03 10:29:24 ok thanks, that's what I need to know Sep 03 10:33:32 okay found the problem, my fault & server misconfiguration Sep 03 10:34:52 StingRay°_, so you return the same View in onCreateView like the one you created the first time? Sep 03 10:36:12 StingRay_ or should I create a new view and look for something how I can go to the specific index in my ListView? Sep 03 10:38:14 I'm showing a dropdown menu with showAtLocation. I want to show it anchored to the top-right of the view, so that the top-right of the dropdown fits in the top-right corner of the parent view. How can I do this? Sep 03 10:38:54 FrancescoV I dont understand the question Sep 03 10:38:55 StingRay_: I get the bitmapshader concept. But you need to specify a rectangle or circle. But the shape I ask is something different how can I do that? Is there something like Rect or whatever ? Sep 03 10:39:07 Blimey. IntelliJ is really poor at rebuilding properly when you add new layouts in something like layout-sw600dp. You really do have to clean and then rebuild each time. Sep 03 10:39:43 d0de: calculate size of both views and do some math to get the correct pixel position Sep 03 10:40:07 danijoo, thanks! Can you give me a pointer about how to calculate size? Sep 03 10:40:15 as in, what method to use? Sep 03 10:40:27 view.measure Sep 03 10:40:49 cant you use a relative layout? YOu shouldnt need to have to manually calc anything. Sep 03 10:41:10 rgr hes talking about dropdownmenu Sep 03 10:41:51 FrancescoV: you can put the data backing your lsitview adapter in a retained fragment, in the fragment showing the listview, just grab first visible position, then when oncreate is called again, grab the data outta the retained fragment, initialize the adapter and listview, and set the visible position Sep 03 10:42:14 StringRay_, if i go to my second Fragment and come back to the first one, my view (ListView and adapter) is generated again so the listview will always show the top items. Now i'm looking for how can I can save the Y position and store it. then I can set this Y position again when coming back to the fragment Sep 03 10:43:15 Oh. Maybe I dont know what that is. I assumed a spinner. Sep 03 10:43:32 lasserix: yes, I try that but I'm trying to use the perfect Y position instead of the visible position, which isn't perfect accurate I think Sep 03 10:43:45 who cares Sep 03 10:43:54 actually Sep 03 10:44:01 danijoo, what should I use to measure the width of the overflowmenu itself? Sep 03 10:44:05 think about it: you are reinitializing the view, do you really want half a row clipped? Sep 03 10:44:21 d0de: measure the content of the overflowmenu Sep 03 10:45:10 properly re-initializing a listview would mean not clipping a row, just because that's the state it was in when you left, that's like saying just becauuse you left your kitchen and your fridge door almost closed but didn't and you left for a moment to go to the bathroom, you shouldn't come back and leave the door ajar Sep 03 10:45:11 danijoo - doy! thanks D Sep 03 10:45:35 lasserix that makes no sense, what about the bottom ? Sep 03 10:45:37 lol Sep 03 10:45:45 who cares? like i said Sep 03 10:46:15 or i should say people tend to read up to down Sep 03 10:46:32 lasserix now you are assuming content ? Sep 03 10:46:44 so you don't care about the bottom rows, since the eye will drift that way and by the time the eyeball's focused on the bottom, the finger will be moving the list to adjust it anyways Sep 03 10:46:51 lasserix, I don't care but my boss does. I use the visible position first Sep 03 10:46:53 no i dont care about content Sep 03 10:47:16 it's not that you don't care, i am just trying to make the case that re-initializing the view makes more since NOT having the top row clipped Sep 03 10:47:33 but having it fully visible, because the effect of RETURNING to the listview will be cleaner Sep 03 10:47:44 than having it "exactly" where it was when you left off Sep 03 10:48:12 anyways it's simpler to implement too boot Sep 03 10:48:42 FrancescoV look at using the onSaveInstanceState and restore on the listView itself Sep 03 10:48:49 thats what it is intended for Sep 03 10:49:24 it gives a Parcelable that can be restored Sep 03 10:49:29 StringRay_ store the ListView? Sep 03 10:49:39 no Sep 03 10:49:51 store the Parcelable from the listView Sep 03 10:49:53 in a bundle Sep 03 10:50:00 then restore it on recreation Sep 03 10:51:01 so it isn't good to create a private int visibleItemAtTop, and use this? Sep 03 10:51:34 bit pointless imho Sep 03 10:51:39 and not accurate Sep 03 10:51:45 and a bit too manual for me :) Sep 03 10:51:51 * StingRay_ is lazy Sep 03 10:54:11 StingRay_ idd not accurate but can use the perfect Y position and set this. see http://stackoverflow.com/a/13415273/1723525 But I'm going to use getFirstVisiblePosition() first and see how this works. Not that I don't trust you ;) Sep 03 10:54:55 can do that, just easier to do it all in 3 lines Sep 03 10:55:10 but each to his own :) Sep 03 10:55:44 If your solution works with 3 lines, I will use it but you need to show me how Sep 03 10:55:59 is said Sep 03 10:56:06 get the parceable from the listView Sep 03 10:56:11 save it in a bundle Sep 03 10:56:13 restore it Sep 03 10:56:46 if you look at the methods onSaveInstanceState on the listView you will see Sep 03 10:56:49 wow didn't know you could do that, Sep 03 10:56:55 it gives a parcelable Sep 03 10:56:58 that is just the listview not the adapter's backing datra? Sep 03 10:57:11 lasserix view state, not data Sep 03 10:57:18 cool Sep 03 10:57:20 so exact positions and idexes etc Sep 03 10:57:26 isn't that kind of sort of what I suggested? ;) Sep 03 10:57:27 save to bundle on onpause and restore on onresume? Sep 03 10:57:40 except different methods Sep 03 10:58:27 most complex views have onSaveInstanceState and give parcelable objects I think Sep 03 10:58:46 Hey , aused a theme.xml touse a customized theme for my app , can I also add custom fonts in it ,I know Ican set custom fonts from .java file but can I set it from my theme.xml Sep 03 10:58:58 once you have restored, what do you need to do? add it to the layout or what? Sep 03 10:59:18 you can do in a theme/style whatever you can do in an xml Sep 03 10:59:35 and what do you need to do with the adapter / data ? Sep 03 10:59:45 FrancescoV, the point is you get a bundle to save/resotre whatever and however you want Sep 03 10:59:48 do some footwork yourself :p Sep 03 10:59:58 I have a font that I want to use as default for my whole app Sep 03 11:00:06 I have used it before to save my data Sep 03 11:00:16 but not saving a listview / the adapter Sep 03 11:00:17 killer, thta's cool, my statement still stands Sep 03 11:01:38 ravilov: Ohkkk, I didn't read it , thnx Sep 03 11:02:02 FrancescoV same thing, you save the listViews instanceState parcel to your own bundle as a…parcelable Sep 03 11:03:47 StingRay_ so there is no need to store the adapter too? Sep 03 11:04:02 You could TRY reading the API docs you know. Not every Q needs to be addressed here. Always cross reference the docs. Often the answers here are slightly off... ;) Sep 03 11:04:19 FrancescoV you cant store anything that is context bound Sep 03 11:04:33 everything else you can in one way or anther Sep 03 11:05:04 hell you can even use that retainInstance true fragment setting for non-context bound things Sep 03 11:05:26 so I have an IntentService that makes a network call, I want to make another one right after it, is it a good idea to just to do it sequentially onHandleIntent? Sep 03 11:05:48 IntentService would que the intents if it got another Sep 03 11:06:10 queue* lol Sep 03 11:06:14 StingRay_ thanks a lot, I know I need to study more on this but time is the problem Sep 03 11:06:28 I meant, inside the IntentService, it needs to make 2 network calls one after another Sep 03 11:07:22 oh yeah, should be fine Sep 03 11:07:57 wow, anyone needed to do one of these new promo graphics ? annoying ! Sep 03 11:09:59 just leave it blank :p Sep 03 11:10:19 i just did image with…. blaablaaa placeholder text :) Sep 03 11:10:24 but where is this shown ? Sep 03 11:10:36 play store, on top Sep 03 11:10:38 for example Sep 03 11:10:48 g00s had asimple method: just grab stock photo of like a concert crowd silhoutte, gaussian blur it, add your app title as text and voila Sep 03 11:10:56 I'm trying to use showAtLocation() to display an overflow menu directly under the action abr Sep 03 11:11:20 lasserix like it :) But I'm an artist/designer/vfx person before a programmer… so I have to do something Sep 03 11:11:31 the width offset works great but the height offset doesn't seem right - I'm using Gravity.TOP and then just measuring the height of the actionbar and using that as the offset Sep 03 11:11:36 totally counts as "something" Sep 03 11:11:42 but the menu is appearing about 50% of the way down the actionbar, not beneath it Sep 03 11:12:25 d0de bout the height of the status bar offset ? :) Sep 03 11:12:50 StingRay_, oh, it didn't occur to me that that would even be in the parent View Sep 03 11:12:58 I guess I'll look up how to get that :P Sep 03 11:13:05 hey Sep 03 11:13:27 d0de that was a less rhetorical than you took it for !!! Sep 03 11:13:28 anyone can help me with json? getting null pointer exception at getJSONArray Sep 03 11:13:56 yet anoter NPE? wow Sep 03 11:14:11 it's probably ridiculously trivial :p Sep 03 11:15:15 ravilov all things are if you understand them 100% but when you dont, well, they are anything but Sep 03 11:15:31 but this is a NPE... Sep 03 11:16:58 anyone good at json please? Sep 03 11:17:13 nizar good at json ? Sep 03 11:17:19 what does that mean ? Sep 03 11:17:34 means good at reading lol Sep 03 11:17:38 umm can anyone help me with json parsing Sep 03 11:17:51 whats your problem nizar Sep 03 11:18:11 nizar use gson… it does the parsing Sep 03 11:18:12 :) Sep 03 11:18:20 danijoo im getting null pointer exception always at getJSONArray Sep 03 11:18:33 show the code and the json please Sep 03 11:19:06 ok Sep 03 11:20:55 the JSONParser is good thats what it says the only error is at user = json.getJSONArray("user") to get my logged in user Sep 03 11:21:28 code :) Sep 03 11:21:31 thats when it crashes at least thats what am_crash in androidL says Sep 03 11:21:39 all code? : / Sep 03 11:21:46 sure Sep 03 11:21:49 is it really so hard to conclude json is null? Sep 03 11:22:22 yes it is for me ive never used json Sep 03 11:22:38 this has nothing to do with json Sep 03 11:22:43 this is the most rudimentary basic java Sep 03 11:22:46 it pretty much sounds like you dont have "user" in the json Sep 03 11:22:57 and btw ravilov i made a a condition and the condition still ran the normal json Sep 03 11:23:07 thats why I ask for the code and json to narrow it down Sep 03 11:23:20 nizar, I don't know what that means Sep 03 11:23:27 ok danijoo Sep 03 11:23:27 but I'll bet your "json" object is null Sep 03 11:23:54 ok ill make the sure my link is correct Sep 03 11:24:36 the php file is Sep 03 11:24:40 { Sep 03 11:25:43 ... you're not going to paste it here I hope Sep 03 11:25:44 [ "user": [ { " id": "1", " name": "nizar", " email": "email", } ] } Sep 03 11:26:05 hm ok, short enough luckily Sep 03 11:26:08 that's not php though... Sep 03 11:26:13 yes sorry ok : / hahaha yup Sep 03 11:26:23 there you go. thats not a good json format Sep 03 11:26:24 ik its not php :/ Sep 03 11:26:32 [ "user": [ { " id": "1", " name": "nizar", " email": "email", } ] Sep 03 11:26:34 use this Sep 03 11:26:40 without the curlies arround Sep 03 11:26:45 what's with all the space prefixes to keys? Sep 03 11:26:46 ok thanks Sep 03 11:27:02 danijoo, the curlies don't matter, this is perfectly valid and parsable json Sep 03 11:27:02 oh wait Sep 03 11:27:03 wront word Sep 03 11:27:11 i mean not the [] arround user Sep 03 11:27:16 ohh ok Sep 03 11:27:28 inside rhe user u meant right? Sep 03 11:27:31 yes but its pointless to have {[]} with onlt one element Sep 03 11:27:36 * ravilov sits in the corner and waits for others to get to the *actual* problem :p Sep 03 11:27:46 ahahah Sep 03 11:27:58 ohh ok Sep 03 11:28:29 what you currently have is a json holding an array holding one object "user" holding an array Sep 03 11:28:33 but danijoo its { user [{}] } Sep 03 11:28:45 ok Sep 03 11:29:08 ohh ok thats why it doesnt get the user array right? Sep 03 11:30:09 you didnt post {user [{}] } Sep 03 11:30:19 what you've postet is {[user [{}]} Sep 03 11:30:30 ahh :/ sorry Sep 03 11:32:32 ravilov still sitting there :p? Sep 03 11:32:47 if its actually { user [{}] }, it should work with json.get("user").getAsJsonArray() Sep 03 11:33:09 or json.getJsonArray("user"), depending on the library you are using :p Sep 03 11:33:26 ok :) Sep 03 11:33:42 so i guess its in the json script ill see what i can do and reply back Sep 03 11:34:08 are you using json_encode in your php script? Sep 03 11:34:26 yes nizar, since nothing you're discussing right now has anything to do with your problem Sep 03 11:34:39 ohh Sep 03 11:34:53 and danijoo yes Sep 03 11:35:04 then it shouldnt be hard to debug :) Sep 03 11:35:35 ok :D Sep 03 11:36:32 i've seen people parsing their jsons on their own by doing weird stuff like '{' . key1 . ':' . value1 . '}' which is why im asiking Sep 03 11:37:39 that's not parsing, that's building Sep 03 11:37:43 that's the opposite of parsing Sep 03 11:38:13 ohh ravilov so any idea what im facing here? Sep 03 11:38:27 whatever, its stupid Sep 03 11:38:40 yes nizar, and I explained it already like ages ago Sep 03 11:38:52 you still didnt show us any code how you use your json object, we cant help without Sep 03 11:39:17 either your json is wrong and you dont have what you are expecting to have or you are using it wrong Sep 03 11:39:28 im trying to how can i show u the code? other than typing it in Sep 03 11:39:34 pastebin Sep 03 11:39:46 ohh ok Sep 03 11:47:26 hello. Is this the right channel to ask a question about admob integration on android? Sep 03 11:47:39 yep Sep 03 11:47:42 ok Sep 03 11:47:58 unless there is an #admob channel :) Sep 03 11:48:04 * StingRay_ looks Sep 03 11:48:17 ahaha Sep 03 11:48:23 dont think so :) Sep 03 11:48:26 nope Sep 03 11:48:30 though it's registered Sep 03 11:48:34 :) Sep 03 11:48:54 danijoo http://pastebin.com/Dx18z5Uw Sep 03 11:49:46 What are the changes to the SDK from kitkat to l ? Sep 03 11:49:51 error in line 41 nizar Sep 03 11:49:59 should be + "\n" not + "n" Sep 03 11:50:09 ohh ok thanks :D Sep 03 11:50:30 testing it Sep 03 11:50:57 wont be the error as the json you get form php json_encode dont contain multiple lines, just saying Sep 03 11:51:24 same crash ohh Sep 03 11:51:37 have you tested if the content of JsonParser.json actually is the string you want it to be before partins the jsonobject> Sep 03 11:52:19 actually no :/ Sep 03 11:52:46 should do that,, Sep 03 11:53:10 ok ill see what i can do Sep 03 11:55:30 Excuse me, why is the size in the mediastore different to the real size generated by file.length? Sep 03 12:03:25 Hello Friends..... Sep 03 12:03:36 hey Sep 03 12:06:11 how does event bubbling work? Sep 03 12:06:26 work nicely... lol Sep 03 12:06:38 Please someone explain how i can layout this... http://img2.mobile-patterns.com/img/full/1409073334850-2014-08-19%2015.50.42.png Sep 03 12:07:20 in android... and also this... http://img3.mobile-patterns.com/img/full/1409073308765-2014-08-23%2012.49.21.png Sep 03 12:07:43 both dont look really complicated to mee. Sep 03 12:07:55 just relative/linear layout with weights and stuff.. Sep 03 12:10:42 REALLY... i have been trying to layout the second image since yesterday but no head way Sep 03 12:10:46 any HELP! Sep 03 12:11:06 you certainly won't get any with that kind of attitude Sep 03 12:11:16 show us what you already got Sep 03 12:11:27 is the blueish thing on top a single image? Sep 03 12:12:14 Alright... let me upload it for you to see... ok! Sep 03 12:14:48 anyone here developing professionally or in a team using tools for planning and management? I'm looking for it.. but can't easily seem to find online what I need Sep 03 12:14:50 just relative/linear layout with weights and stuff.. <-- straight on Sep 03 12:15:31 Sirolf, good luck with that in here, this is a dev channel, not management Sep 03 12:16:00 IMHO managing, planning, flow tracking, reporting etc is almost as bad as having to write docs :) Sep 03 12:16:15 exactly :P Sep 03 12:16:24 Hello danijoo.. here is the code for the second image layout... http://pastebin.com/23a095M6 Sep 03 12:16:29 but maybe someone here is happy with a certain tool Sep 03 12:16:57 from what I've seen, people in here are not likely to even use any such tools Sep 03 12:17:02 replace the tablelayout with a linearlayout orientation="vertical" Sep 03 12:17:13 and drag'n'drop your two buttons in Sep 03 12:17:24 okay Sep 03 12:17:25 need help> an onScroll returning false from a child fragment in a viewpager will not trigger the scrolling of the viewpager... why? Sep 03 12:17:26 set some padding on your layout Sep 03 12:17:31 and you're done Sep 03 12:17:52 I can't seem to be able to both click and scroll on fragments in my viewpager Sep 03 12:18:03 i've try it that way, its no working... Sep 03 12:18:15 the botton is staying at the top Sep 03 12:18:23 I have tried intercepting the touch events in a custom viewpager Sep 03 12:18:53 and returning true for ACTION_SCROLL and MOVE in the viewpager, so they wont continue down to the fragments, but with no luck Sep 03 12:18:58 i want to do it in such a way that the image will always be at the top, leave a space for the layout Sep 03 12:18:58 ok another one: replace outer relativelayout with linearlayout orientation="vertical" Sep 03 12:19:05 drop in your image and both buttons, done Sep 03 12:19:17 the fragments still receive onScroll Sep 03 12:19:20 okay, Thanks... let me test Sep 03 12:21:35 button disappear Sep 03 12:22:22 please read some tutorials on android layouts. this is really basic stuff.. Sep 03 12:22:50 If I know the textSize of an editText in sp, can I work out the minimum width the editText needs to be in dp to show two alphanumeric characters ? Sep 03 12:23:05 Oops! Sep 03 12:23:26 d0de, yes Sep 03 12:23:35 ...maybe Sep 03 12:24:08 does anyone know if facebooks free floating chatheads are implemented as a system alert or as something else? Sep 03 12:24:10 Danijoo, don;t think that way... i've done it now.. the tablelayout is not displaying the button Sep 03 12:24:22 basically, I have an editText that will be displaying characters at 32sp Sep 03 12:24:23 d0de: add the text to a textView, than measure the view with MeasuerSpec.UNSPECIFIED Sep 03 12:24:36 and get the size with textView.getTextSize() Sep 03 12:24:41 I'd like to know the minimum safe width for it in dp Sep 03 12:24:45 always staying at the top.. Sep 03 12:24:57 danijoo, ah, fair enough Sep 03 12:25:08 I was kinda hoping to just be able to do it in the xml layout Sep 03 12:25:31 not that i know. Sep 03 12:25:32 d0de, measure the width of two consecutive "m" chars Sep 03 12:25:46 yeah no xml Sep 03 12:30:48 does anyone else get a java.lang.NoClassDefFoundError: com.squareup.okhttp.internal.http.RetryableSink trying to create a RequestBody with okhttp Sep 03 12:33:41 I believe okhttp has its own channel here Sep 03 12:37:41 ok figured it out, it needs okio to work. Sep 03 12:39:51 I have the same problem yesterday Sep 03 12:41:19 i have create ballon on longclick, ListView->Item->Square inside Item Sep 03 12:41:20 https://www.dropbox.com/s/ccng6mecnkl7pft/step10.png?dl=0 Sep 03 12:42:14 i recreate example (very simple) https://www.dropbox.com/s/n45dkrj8sd5cqih/BallonOnListView.zip?dl=0 it works but when user scroll ListView it does't work Sep 03 12:52:17 the docs say that i need to edit the build.gradle. Which one should i edit? The one in the app folder or the other one? Sep 03 12:54:44 what docs, what app folder, what other one? Sep 03 12:55:08 (and of course to do what?) Sep 03 12:56:28 docs = official android sdk docs. In android studio, there is an app folder(that has the activity.java) which contains a build.gradle AND there is a build.gradle outside the app folder too. So whch one should i edit? Sep 03 12:57:28 you've got to be shitting me Sep 03 12:57:42 if I use viewpager, which is googles recommendation Sep 03 12:57:54 then I cannot use preferencefragment Sep 03 12:58:17 which is another component that I need to use, all with compliance to what the official docs say Sep 03 12:58:38 nevermind i found the one ineed to edit Sep 03 12:59:49 how do I handle clicks within viewpager? Sep 03 13:00:47 onClick will disable scrolling for the element Sep 03 13:05:15 c03 so you need to both scroll that view and have a click ? Sep 03 13:05:20 what is it ? Sep 03 13:05:25 yea Sep 03 13:05:48 a viewpager containing multiple frames, the frames themselves have layouts that I want to work as links Sep 03 13:06:19 hence I need scrolling between the frames and onSingleTapUp to work on the layouts Sep 03 13:07:03 c03 well a view, such as the viewPager gets the touchEvent Sep 03 13:07:12 you can do what you need to I guess there Sep 03 13:07:31 in my app I have a viewpager with lots of settings, buttons switches etc Sep 03 13:07:49 can you scroll the view by grabbing those buttons? Sep 03 13:07:54 if I swipe horz they dont consume the event Sep 03 13:08:02 yes just checked Sep 03 13:08:14 FUCK! Sep 03 13:08:16 switches or buttons….ooo let me try with a slider Sep 03 13:08:20 That's the thing! Sep 03 13:08:38 I'm swiping vertically as I am extending the viewpager to be vertical Sep 03 13:08:45 but it works when swiping horizontally Sep 03 13:08:47 ahaaa… cant with a slider Sep 03 13:08:56 but that makes sense I suppose Sep 03 13:08:59 this must be the viewpagers onIntercept then I guess.. Sep 03 13:09:00 * StingRay_ feels dumb Sep 03 13:09:12 made specifically for horizontal scroll intercepts.. Sep 03 13:09:22 yeah possible Sep 03 13:09:30 or yes, very probable Sep 03 13:09:31 :) Sep 03 13:09:46 suppose you can do the same though.. Sep 03 13:09:50 onTouchEvent Sep 03 13:10:20 yea, I'm gonna try and swap the y and ex of the motionevent as I did in the touchevent Sep 03 13:12:31 I just realized that on kitkat, my code to update my status bar notification causes the notification to fade out and in again every time it's updated (in the expanded view) Sep 03 13:12:35 has anyone run into this problem? Sep 03 13:16:49 StingRay_: okay then crazy stuff happens, but scrolls are kind of intercepted! Sep 03 13:16:51 thanks a lo! Sep 03 13:16:54 lot* Sep 03 13:17:15 c03 not sure I helped but ok :) Sep 03 13:24:35 well you made me think of how it was implemented and I found the error, so good on you! ^^ Sep 03 13:24:56 * StingRay_ is proud of passive helping :) Sep 03 13:30:45 StingRay_ http://en.wikipedia.org/wiki/Rubber_duck_debugging Sep 03 13:31:14 kind of :) Sep 03 13:32:46 huh, I may just install lineos and have a look Sep 03 13:32:56 should be interesting :) Sep 03 13:33:03 luneOS* Sep 03 13:33:49 ^^ could use a rubber duck, it's frustrating wasting so much time on something as basic as a viewpager, but vertical.. Sep 03 13:34:18 c03: I have a rubber ducky near my computer at all times Sep 03 13:34:23 c03 I would have thought that a listView would have been a little better Sep 03 13:34:30 making it more like a pager though Sep 03 13:35:31 I might end up using it since the interception is bugging out Sep 03 13:35:41 c03: https://scontent-b-fra.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/10641208_10152286946336960_8739057875829619256_n.jpg?oh=a74b1f248d4d59a446ec0acb2e24e4a5&oe=54678148 Sep 03 13:36:29 so does every programmer have one of these ? should I invest in one ? hmmm Sep 03 13:36:39 hah are you in the office next door? that scenery looks awfully familiar Sep 03 13:38:06 c03: what country? Sep 03 13:38:36 StingRay_: http://www.rubberduckdebugging.com/ Sep 03 13:39:25 nice Sep 03 13:39:27 Denmark Sep 03 13:39:31 ebay here i come Sep 03 13:39:40 thepoosh: limechat <3 Sep 03 13:39:50 yep, I got used to it Sep 03 13:39:56 used to have xChat Sep 03 13:39:58 its awesome Sep 03 13:40:02 but now I have a mac Sep 03 13:40:05 so limechat it is Sep 03 13:40:29 c03: Israel here, so not in the next office... Sep 03 13:40:36 thepoosh textual is good Sep 03 13:40:51 hah alright Sep 03 13:41:06 StingRay_: textual as in mIRC? Sep 03 13:41:10 or terminal Sep 03 13:41:29 http://www.codeux.com/textual/ Sep 03 13:42:09 hello Sep 03 13:42:11 looks noce Sep 03 13:42:15 kenalex: hi Sep 03 13:42:18 *nice Sep 03 13:42:59 i'd miss the bottom window on any other irc client Sep 03 13:43:12 where you can see whats going on in every channel Sep 03 13:43:44 i am trying decide whetehr i should get nexus 7 (2013) or get the galaxy tab s for mainly sofwtare development and reading ebooks ,and watching an ocassional movie Sep 03 13:44:06 reading ebooks without eInk is a pain Sep 03 13:44:13 (opinion) Sep 03 13:44:17 ok Sep 03 13:44:34 kenalex: tablets are ikky Sep 03 13:44:38 because of battery and (at least my) eyes are getting tired Sep 03 13:44:44 what about development is the galaxy tab s very restrictive in this area Sep 03 13:44:53 thats not what he asked. kenalex the nexus 7 2013 is excellent. Sep 03 13:45:13 I prefer the reference machines : easier to get updates for. Cant fault it. Sep 03 13:45:27 good battery, solid, price ok, beautiful screen. Sep 03 13:45:55 ok Sep 03 13:46:56 i ask about these two because i fell in love witht he tab s screen and wanted to know if it was suited for developing and debugging android apps Sep 03 13:47:06 for developing the best answer for hardware most of the time is nexus Sep 03 13:47:14 i guess nothing beats google reference machines Sep 03 13:47:17 yep Sep 03 13:47:34 Because plain android, updates, easy root Sep 03 13:47:37 there are only pros Sep 03 13:47:52 well nexus 7 it is Sep 03 13:48:33 or nexus 10 Sep 03 13:48:41 bargain these days Sep 03 13:48:41 or nexus 5 Sep 03 13:48:54 huh… I have 5,7,10 Sep 03 13:49:01 just realised that Sep 03 13:49:16 only have a 4 :( and some other devices of other brands to debug Sep 03 13:49:38 yeah, you need a piece of samsung stuff to debug sooner or later Sep 03 13:49:44 mostly because I wanted the cheapest tablet i could get and a 2.x device Sep 03 13:49:44 but actually developing on Samsung it's PITA Sep 03 13:49:52 especially since they STILL didn't fix the logcat lagging Sep 03 13:50:17 galaxy ace it is for me Sep 03 13:50:29 but i barely plug it in Sep 03 13:50:41 only to check against 2.3 when in beta actually Sep 03 13:53:06 im trying to use android-studio on windows to clone a github repo and im getting the error Clone failed: fatal: unable to access 'H:\/.config/git/config': Invalid argument Sep 03 13:53:11 anything that can run android is good for development Sep 03 13:53:22 up to a certain point ;) Sep 03 13:53:24 the H drive is my network drive when on my work network Sep 03 13:53:30 ravilov: yea. for hello world Sep 03 13:53:56 i can open git-shell and clone repos all day so there is something in android-studio but i cant find anything Sep 03 13:53:59 Hello, when i have a tabview with fragments, where I put code like onItemListener ? In the fragment class or in the main activity? Sep 03 13:54:59 so what i would i would at least like to see is verbose output of the commands android-studio is using like the git command for example Sep 03 13:55:24 Laire where would it make most sense based on your design ? Sep 03 13:56:21 nostar: better use git from the terminal then the shitty plugin in AS Sep 03 13:56:47 i thought it was a great plugin on the linux version Sep 03 13:57:06 command lime beats any plugin, by far Sep 03 13:58:09 StingRay_ : sorry, dont understand what you mean? I want to use in one of the tab a spinner and want to set an onItemListener. I tried to implent it in the tab class, but doesnt work Sep 03 13:58:32 android studio doesn't use the git command for its plugin Sep 03 13:58:39 it uses jgit Sep 03 13:59:06 Laire "but doesn't work" is what a user says Sep 03 13:59:17 or this is what I have learned :) Sep 03 14:02:08 StingRay_, THING NO WORK, FIXIT Sep 03 14:02:31 *grumble* Sep 03 14:09:38 * danijoo points to the channel topic.. http://imgur.com/jacoj Sep 03 14:14:36 Can someone link me to some good android tutorials for beginners? Sep 03 14:15:07 SohamG do you know java ? Sep 03 14:15:23 yup....to some extent.... Sep 03 14:15:46 Learn java Sep 03 14:16:57 SohamG, developer.android.com Sep 03 14:17:15 (btw this is not a good place for beginners) Sep 03 14:17:40 Yup... after the sdk setup it was just updating.... Sep 03 14:18:59 So, where should i go? Sep 03 14:19:04 ^ Sep 03 14:19:23 or, y'know, just look for tutorials online Sep 03 14:19:25 there are loads Sep 03 14:19:28 this is fine as long as you are willing to think on your own: > Sep 03 14:24:52 learn java Sep 03 14:25:22 learning java wont tell me what the api offers, will it> Sep 03 14:25:25 *? Sep 03 14:25:40 no but the URL I mentioned will Sep 03 14:25:58 SohamG: http://developer.android.com/training/index.html Sep 03 14:26:01 there are no (good) shortcuts, just go through the examples like most otherpeople Sep 03 14:26:41 wow...i must be completely blind...i never found that page... Sep 03 14:27:17 ayup :p Sep 03 14:28:32 hey guys, when you receive a google hangouts message, android shows a preview of the message in the status bar (without pulling down the notification tray). how can i implement this into my own notifications? Sep 03 14:28:46 i feel like i'm missing the right term for what that's called in NotificationCompat.builder Sep 03 14:30:52 s1gmab3ta: ticker? Sep 03 14:31:48 s1gmab3ta: https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html#setTicker(java.lang.CharSequence) Sep 03 14:34:00 olá Sep 03 14:34:21 how i can change orientation of my activity programatlly? Sep 03 14:35:52 t0th_- didnt find answers on google ? Sep 03 14:36:00 jush, thank you. that is exactly what i was looking for and i scrolled by it at least 091281 times. Sep 03 14:36:05 (6 significant figures) Sep 03 14:36:13 t0th_-, by locking it Sep 03 14:37:01 Mavrik well you can also use setRequestedOrientation() no ? Sep 03 14:37:36 Android development is very different from anything else I've ever done and I'm finding doing even basic stuff extremely frustrating. I'm wanting to switch to a web view on a button click. Do I creaate a new layout xml file to put that in, and then switch to that? I've tried that approach and haven't had much luck. Sep 03 14:38:24 thanks mans Sep 03 14:38:55 I've seen how you can do this: WebView webview = new WebView(this); but it appears that changes the current view, so you can't use the back button to go back. Sep 03 14:38:57 aaearon, switch how? Sep 03 14:39:12 Mavrik: lol you tell me Sep 03 14:39:13 I mean, how is it supposed to look like to the user? Sep 03 14:39:34 click button, be taken to web page embedded in web view Sep 03 14:39:39 ah Sep 03 14:39:44 create a new activity that has a webview in it Sep 03 14:39:48 start that activity Sep 03 14:40:21 holy hell that seems overly complicated Sep 03 14:40:29 really? Sep 03 14:40:50 creating a class is complicated? Sep 03 14:40:52 Only development backround I've done is web programming, Sep 03 14:40:55 yes Sep 03 14:40:57 and you just said Sep 03 14:41:08 hi Sep 03 14:41:10 and you want a new page? you make a new page Sep 03 14:41:12 "holy hell, creating a new html page to link to is overly complicated" Sep 03 14:41:38 Activities are web pages of the Android, when you need to take the user somewhere else from where we he can return with back button Sep 03 14:41:41 you start a new activity Sep 03 14:41:43 anybody here can help me with implementing a bluetooth serial port ? especially sending and receiving data Sep 03 14:42:10 okay, well if that were the logic I could just create a new layout.xml file and switch to that, but it's definitely not that straghtforward Sep 03 14:42:40 everytime he says "switching to new layout" my eyes bleed.. Sep 03 14:42:49 aarobc: its about switching activities, not layouts Sep 03 14:42:54 pfn: almost no tutorials / sources for polymer Sep 03 14:43:00 I am trying to setup a virtual android device. I am getting " No CPU/ABI system image available". How do i fix this? Sep 03 14:43:09 hey, you guys came up with the terminology, not me Sep 03 14:43:46 @SohamG , open sdk manager and download a system image for your version Sep 03 14:43:56 aaearon, yeah, you don't switch layouts usually, you switch activies Sep 03 14:44:18 SohamG, you'll have to download the emulator for that Android version from SDK manager Sep 03 14:44:27 SohamG, I strongly suggest you download the x86 ones :) Sep 03 14:44:35 Just like on a website (traditionally) you'd navigate to a new URL rather than swap out all the DOM elements Sep 03 14:44:52 Where do i find that? I am using Android Studio Sep 03 14:45:01 and each "activity" requires its own class? Sep 03 14:45:10 SohamG, Tools -> Android -> SDK Manager I think Sep 03 14:45:15 aarobc: yes, its own activity class Sep 03 14:45:18 (don't have IDEA open right now) Sep 03 14:45:25 yes Sep 03 14:45:34 it;s in tools Sep 03 14:45:40 also avd manager there Sep 03 14:45:45 Or there's an icon hiding on the Toolbar Sep 03 14:45:47 to create virtual machines Sep 03 14:46:49 do i get the sdk platform from there> Sep 03 14:46:59 SohamG: get the system images Sep 03 14:47:16 gordon_, there's the canonical tutorial at polymer-project ... Sep 03 14:47:18 and no sources? Sep 03 14:47:20 for your required version Sep 03 14:47:24 SohamG, SDK Platform == tools to compile for that target, "System Images" == emulators for that version Sep 03 14:47:36 you usually only need SDK Platform for the version you're targeting Sep 03 14:47:44 all of them? or only the 'intel x86 atom" one? Sep 03 14:47:50 atom Sep 03 14:47:51 only Sep 03 14:48:04 if i have a amd processor? Sep 03 14:48:27 SohamG: your PC has an AMD processor? Sep 03 14:48:30 and also get xaxm accelerator Sep 03 14:48:35 doesn't matter Sep 03 14:48:35 aarobc: you should learn some java. Sep 03 14:48:39 it's x86 also Sep 03 14:48:43 Yes. Sep 03 14:48:45 dj_cristi, HAXM works only on Intel chips Sep 03 14:49:01 and on AMD with hardware acc , not/ Sep 03 14:49:02 SohamG, Atom in there means "image to emulate Android for Atoms" not "for Atom processors" :) Sep 03 14:49:02 ? Sep 03 14:49:10 danijoo: I only learn what I absolutely need. Java is the most unfun programming language ever. Sep 03 14:49:31 count it as absolutly needed for android. Sep 03 14:49:44 stop confusing meee!!! :P so shud i get the amd one? i have an amd processor Sep 03 14:49:52 ... Sep 03 14:49:54 @SohamG , also, when you create the virtual machine on AVD , be sure to check Gpu acceleration Sep 03 14:50:00 and if you think its the most unfun one, try whitespace programming language.. :D Sep 03 14:50:08 aarobc, if you're competent, do a non-java language for android Sep 03 14:50:14 @SohamG , atom x86 you get Sep 03 14:50:15 ! Sep 03 14:50:28 doesn't matter what brand of cpu you have Sep 03 14:50:52 k thnx for the help! :) Sep 03 14:50:56 yeah, though java is needed for access to all the android libraries. Sep 03 14:51:36 I just kinda think of java as a retarded version of c++ Sep 03 14:51:47 aarobc, java is better than c++ Sep 03 14:52:12 well, it's strange, i prefer c# Sep 03 14:52:13 ;) Sep 03 14:52:16 SohamG: it doesn't say AMD, it says ARM :) Sep 03 14:52:17 for .net dev Sep 03 14:52:33 *facepalm* Sep 03 14:52:33 dj_cristi, and c# is better than java Sep 03 14:52:33 c# is what java should have been. Sep 03 14:52:42 you can use xamarin on android Sep 03 14:52:44 its official.. i am blind Sep 03 14:52:58 i know Sep 03 14:53:11 pfn: found topica Sep 03 14:53:12 i currently use android studio Sep 03 14:53:13 and how big of download is it? Sep 03 14:53:16 *topeka Sep 03 14:54:06 xamarin also installs new frameworks on phone, to be able to run their apps Sep 03 14:54:15 Hi everyone. I save photos made with standard Camera Activity to a particular app-specific folder. Then I want to select them through MediaStore to show the thumbnails in my app. How do I select only the files from that particular folder? Sep 03 14:54:45 guys Sep 03 14:54:59 is there a way to make an android tablet not be able to communicate with adb? Sep 03 14:55:13 why? Sep 03 14:55:14 question for #andorid-root Sep 03 14:55:35 its not about root at all tho, but thanks i'll try there Sep 03 14:55:45 scissors :) Sep 03 14:56:29 pdcmoreira: just go into the dev settings and disable adb Sep 03 14:57:34 aarobc: in a tablet that is stock (dev menu disabled), can it connect to adb? Sep 03 14:57:36 with usb Sep 03 14:58:21 pdcmoreira: as long as the stock configuration doesn't have USB Debugging enabled, no Sep 03 14:58:52 ah ok i thought you could always use adb even with dev options disabled Sep 03 14:59:31 no, it will not have adb listener enabled Sep 03 15:00:21 ok then i haven't a problem Sep 03 15:00:22 thanks Sep 03 15:16:51 How do I rename the entire packagename in android studio? Sep 03 15:17:02 richtclick->refractor Sep 03 15:17:04 yay I got it to switch activities and the back button works now too! This is neat Sep 03 15:17:18 danijoo: That only gives me the last folder in the package Sep 03 15:17:32 if I have com.google.example it will only allow me to edit "example" Sep 03 15:17:34 Mrdarknezz: even if you click the first? Sep 03 15:17:56 then just create the package and drag/drop Sep 03 15:18:05 danijoo: huh? Sep 03 15:18:17 oh Sep 03 15:18:23 So if I'm using zxing, should the scanning be done in its own activity as well? Sep 03 15:18:37 so there is no way to just refactor just the package name Sep 03 15:20:58 I assume there is, but AS doesn't like it Sep 03 15:22:51 Mavrik open any class with that path Sep 03 15:23:09 select the part you want to rename (shift + f6) Sep 03 15:23:15 pray Sep 03 15:23:28 well, accept the major warning, then pray Sep 03 15:23:41 sorry Mrdarknezz Sep 03 15:25:12 Mrdarknezz I mean the package name at the top of the class file Sep 03 15:25:34 or you can just select the folder though right ? Sep 03 15:25:52 * StingRay_ dare not try Sep 03 15:29:51 Has anyone ever converted a VC++ date to Java Date? I’m dealing with NDK variables. Sep 03 15:30:33 convert to epoch time and back Sep 03 15:30:40 add timezone info if you need it Sep 03 15:31:40 i was linked to this site http://developer.android.com/training/basics/firstapp/ before; but it is for jellybean and some stuff has clearly changed.... are there any updated tutorials Sep 03 15:32:37 SohamG: nothing should have noticably changed between JellyBean and KitKat that you'd notice in that tutorial Sep 03 15:32:41 SohamG probably not anything related to what that tutorial is communicating Sep 03 15:33:35 it told me to go to /res/layout/fragment_main.xml which doesnt exist for L Sep 03 15:33:53 thats ok cause android L doesn't exist yet either Sep 03 15:33:58 not in release form :) Sep 03 15:34:22 but not sure thats anything to do with android L though Sep 03 15:34:31 the android tutorials are quite clear where the APIs need support libs and not. Else they just work with latest. Only did them a few weeks ago. Sep 03 15:35:20 the sdk for l does.... Sep 03 15:35:40 rgr : i just mentioned change... Sep 03 15:35:45 It's a preview SDK, they probably won't update the tutorials at least until it goes live. Sep 03 15:35:59 StingRay_: In android studio empty folders with subfolders get merged Sep 03 15:36:22 StingRay_: in the treeview that is Sep 03 15:36:49 Mrdarknezz yeah I was on about the package path at the top of a file…but i really dont want to try it :) Sep 03 15:37:06 So are there updates tuts for kitkat? Sep 03 15:37:10 StingRay_: Making new package and copy pasting them almost worked Sep 03 15:37:23 StingRay_: Had to rename a few imports Sep 03 15:37:25 manually Sep 03 15:37:27 ugh Sep 03 15:37:30 :P Sep 03 15:37:42 SohamG: all the tutorials on the site work fine for KitKat Sep 03 15:37:43 SohamG: What on that link makes you think Jellybean? it shows kitkat 4.4.2 Sep 03 15:41:33 SohamG: by the way, if you're using Android Studio there will be some differences from the Tutorial which was written for Eclipse Sep 03 15:42:13 aaahhh......... are the changes documented anwhere? Sep 03 15:42:18 For example if you chose the "Blank Activity" template rather than "Blank Activity with Fragment", you wouldn't have had fragment_main automatically created Sep 03 15:42:19 mhm, Gradle puts files in slightly different folders than eclipse Sep 03 15:42:57 I am intercepting links with rtsp:// prefix in my WebView. From this webview, how can I load a VideoView within shouldOverrideUrlLoading()? Sep 03 15:43:05 (I just checked, fragment_main still gets created if you've created the app for Android L) Sep 03 15:43:32 SohamG: the main difference you might notice are the folders that some files are in, and the initial project templates being difference Sep 03 15:43:35 *different Sep 03 15:44:30 They arent renamed right? so can i just search for them? Sep 03 15:44:55 SohamG: yes, and for the most part it's identical except for some top level changes (like an extra main/ folder, or something) Sep 03 15:45:06 k Sep 03 15:45:17 SohamG: but in this particular case, I suspect you used the Blank Activity template, not Blank Activity with Fragment Sep 03 15:45:48 I used blank acivity....now what? Sep 03 15:46:12 Well if you've not done much, just create a new project with the Fragment template Sep 03 15:46:29 And start over Sep 03 15:46:40 I dont know how do *anything*... so not much... :P Sep 03 15:47:06 Yeah, I assumed you were on the "Building a simple user interface" page ^^ Sep 03 16:04:03 How can I open a VideoView from an rtsp:// link in a webview? Sep 03 16:06:31 ugh, why isn't part of polymer Sep 03 16:06:34 that's annoying Sep 03 16:07:06 oh, there's core-drawer-panel Sep 03 16:11:17 hi there, is it possible to host a ssl connection? like and https server on android? i read something that this isnt possible but didnt find the source again Sep 03 16:12:51 android.R.id.content gives me all of the window except for the action bar. is there a similar reference I can use to get the view containing both the content and action bar? Sep 03 16:23:08 why does my PreferenceActivity subclass onSharedPreferenceChanged method is never being called? Sep 03 16:24:44 hi... Sep 03 16:25:17 anybody here familiar with working with video? I'm trying to find some equivalent libraries to AVFoundation on iOS. I've found MediaMuxer, MediaCodec. However MediaMuxer seems to be limited to a single video and audio source. I need something like AVMutableComposition on iOS where i can compose videos by layering different vid clips, audio segments and images as needed. Are there any 3rd party li Sep 03 16:25:17 bs available on Android that can do this? I don't want to reinvent the wheel if a solution already exists. Thanks in advance! Sep 03 16:25:25 how can i round float 4.7 , Math.round(mynumer); i get 4 not 5 Sep 03 16:43:24 I'm trying to save a file to some directory which I can access through my PC. external dir is /storage/emulated/0 and it's always empty. getFilesDir returns /data/data/ and I can't access it because my device is not rooted. Is there any other way? Sep 03 16:46:37 Is there a good place to put downloaded audio tracks to be sure that other apps can play them? Sep 03 16:48:40 knapper_tech, i'm guessing Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC) Sep 03 16:48:58 wow. that's a cool directory. Sep 03 16:49:55 skulltower, thanks. looks perfect. Sep 03 17:20:29 hi Sep 03 17:40:33 hi Sep 03 17:40:50 hi, how can i get the keyboard to pop up when my dialogfragment is shown? I followed this thread solutions but they didn't work.. http://stackoverflow.com/questions/5105354/how-to-show-soft-keyboard-when-edittext-is-focused Sep 03 18:02:49 i got android runtime when change orinetation of my app... how i can solve this? Sep 03 18:03:32 pastebin the error Sep 03 18:05:54 nullpointer Sep 03 18:05:59 http://imgur.com/jacoj Sep 03 18:06:02 in textEdit Sep 03 18:06:16 t0th_-: see my link. Sep 03 18:06:20 ok Sep 03 18:06:48 hello. Sep 03 18:06:59 http://pastebin.com/39EzaPyE Sep 03 18:07:16 I am trying to add "apk expansion" to my project Sep 03 18:07:21 But nothing seems to work Sep 03 18:07:29 I'm following the command line instructions here: Sep 03 18:07:31 http://developer.android.com/google/play/expansion-files.html#Preparing Sep 03 18:07:35 nullpointer in line 70. so you are doing something with something thats null : > Sep 03 18:07:43 (Except I change to make it "play_") Sep 03 18:07:52 I tried absolute paths, didn't work Sep 03 18:07:55 I don't know what to do Sep 03 18:08:28 when it did find the directory it complained that things were missing Sep 03 18:08:29 For multi-project setup (http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Multi-project-setup) do you all prefer to call it "app" or actually call it the name of your app Sep 03 18:08:58 danijoo: Sep 03 18:09:15 but when i start my activity is work, i have this crash when change orientation Sep 03 18:09:18 help me please Sep 03 18:09:20 yiati: i give it the name of the app Sep 03 18:09:38 Okay you literally put "app"? Sep 03 18:09:41 t0th_-: sounds like you are not saving your instance state correctly. Sep 03 18:09:51 "of the app" Sep 03 18:10:15 danijoo: :| Sep 03 18:10:19 but it doesnt matter. you can name it after greek gods if you want Sep 03 18:10:36 haha Sep 03 18:10:42 ^ sarcasm Sep 03 18:11:48 Do I need to create a project? if so how do i copy the files in and make it a library project? Sep 03 18:11:50 heeelp Sep 03 18:12:12 Agamemnus: if somebody of the guys reading here would know, they would help Sep 03 18:12:22 repeadingly saying heeeelpp pleasse wont help Sep 03 18:12:41 maybe it will, you don't know Sep 03 18:12:58 no it won't, please stop Sep 03 18:13:01 I would flash the bat signal if there was a chance it helped. Sep 03 18:13:07 im long enough in here to know that your attitude make people to not even read of posts anymore Sep 03 18:14:35 id help if you find a batsignal tough. for sure. Sep 03 18:14:56 do you know how to make a library project? Sep 03 18:18:19 Can somebody help me with a GC issue? I'm getting lots of GC_FOR_ALLOC messages, I wonder what I can do to reduce the number of these messages I am getting. GC_FOR_ALLOC is thrown due to excessive allocations. Sep 03 18:18:45 i thgouth that was just a normal thing? Sep 03 18:18:47 allocate less memory? Sep 03 18:19:38 the issue I'm having is that I'm working with video frames. According to the allocation tracker there's a spot in my code the allocates a byte array to be filled with image data. Sep 03 18:20:02 each time it looks like I'm allocating 1.4M each time Sep 03 18:20:14 how can i show the keyboard when opening a dialog fragment and the edit text is focused? Sep 03 18:20:51 danijoo: It's similar to the code found here: http://stackoverflow.com/questions/23321880/how-to-get-bitmap-frames-from-video-using-mediacodec Sep 03 18:21:22 * ravilov is starting to think "ASK YOUR QUESTION ONLY ONCE" should be in the topic Sep 03 18:21:50 This is the last thing I need to publish my game. Sep 03 18:22:06 do others have to suffer because of that? Sep 03 18:22:09 If I ask it once, it will just be gone in the chatter. Sep 03 18:22:17 nope Sep 03 18:22:24 plenty of people saw your question Sep 03 18:22:35 years of irc experience has me believing otherwise Sep 03 18:22:38 look at the commented out section of the code where the byte array is allocated Sep 03 18:22:46 depends on people Sep 03 18:23:25 valder: thoose messages are normal begaviour Sep 03 18:23:30 its just logging of gc Sep 03 18:23:37 just ignore them Sep 03 18:23:49 ravilov: how are people suffering by Agamemnus repeating a question Sep 03 18:24:00 danijoo: so I've read, but I've also read that too many of them may be sign of an issue. Sep 03 18:24:17 HellaCooptah, you wouldn't know since you're one of those that likes to repeatedly ask the same question too Sep 03 18:24:32 So let me rephrase my question, one more time -- I am trying to add APK expansion files to my project but I don't know the precise command line instructions to do that... the instructions on developer.android.com are old and seem to be designed for Linux perhaps. Can anyone help? Sep 03 18:24:46 (yes HellaCooptah, I saw your question earlier as well, the fact you didn't get any responses doesn't mean nobody saw it) Sep 03 18:24:51 ravilov: did one extra line in your IRC client cause suffering Sep 03 18:25:10 yes Sep 03 18:25:12 ravilov: i reposted because when closed my laptop lid, i lost connection to the client Sep 03 18:25:55 HellaCooptah, it certainly caused annoyance, probably not just for me, which makes people don't want to even try to answer your question Sep 03 18:25:59 so it's up to you Sep 03 18:26:45 danijoo: if I'm wrong then cool, I will ignore for now and assume performance is the best it can get for now.. the GC_FOR_ALLOC is associated with my app only on the device I'm testing with. Sep 03 18:27:14 just leave it Sep 03 18:27:19 as long as you dont have memory issues Sep 03 18:27:40 ravilov, if you could answer us, you would. If you don't want to, that's your business. But being a tease who supposedly knows things is the most annoying thing on IRC. Sep 03 18:28:02 you guys started the annoyance, by asking more than once Sep 03 18:28:11 danijoo: that's the thing, I'm working with video and audio processing, I am wondering if the frame buffer is too large and processing is sufffering b/c of the constant GC Sep 03 18:28:37 I've used gradle extensively, but it seems to have changed a lot over the last 6 months. How do I make an android-library's build.gradle generate a .jar? Sep 03 18:29:21 the documentation doesn't explicitly state how to drive a jar task from an android {} block Sep 03 18:29:57 valder, if you do a lot of heavy lifting in there, you might consider converting that to JNI Sep 03 18:30:14 danijoo: I suppose I have other things to worry about for now, it's just I can't help but feel that my GC messages are an indication something is causing some performance issues. I get messages like this all the time when running the code: GC_FOR_ALLOC freed 2849K, 53% free 6932K/14740K, paused 24ms, total 24ms Sep 03 18:30:48 Has anyone successfully gotten a dialog to go "under" the navigation and status bars using fitsSystemWindows? Sep 03 18:31:07 Is there a way in monitor to view which drawables are in use from a particular view dump Sep 03 18:31:08 ravilov: I thought I tried that and it resulted in the same. However, I didn't check how often it appeared. Sep 03 18:31:45 valder, well at least you'll know your processing is going as fast as possible Sep 03 18:31:50 and not suffering Sep 03 18:33:10 ravilov: well what I mean is that it might not be that different. I'd rather make sure that there isn't something I can do on the Java side without having to rewrite some code. Sep 03 18:34:35 ravilov: I should probably profile the app before I go that route. seeing all the GC_FOR_ALLOC messages, I was just hoping that there was something easy to look for. Sep 03 18:34:36 how do I overload the assemble task? Sep 03 18:34:47 this should be really basic but there's no visible documentation Sep 03 18:35:42 Any way I can figure out if my IntentService is running or allow only single one to run at a time? Sep 03 18:36:15 kailoAtWork: what are you trying to do? It's a simple matter to add some logic that runs before or after a given task Sep 03 18:36:38 JesusFreke, I want to create a jar instead of an aar, for each of my android plugins Sep 03 18:37:01 Just a normal java jar? No resources? Sep 03 18:37:03 And I'd rather not have to extract all of the contents of the aar, find the classes.jar, rename them, and re-combine the jars Sep 03 18:37:05 yes Sep 03 18:37:16 just use the java plugin then, rather than the android plugin Sep 03 18:37:36 although, I guess you'll need to add the android dependencies somehow Sep 03 18:37:39 That's insufficient, because the individual jars have some resources Sep 03 18:37:50 ravilov: any profiling tools you would reccommend? JMeter? Caliper? Sep 03 18:37:56 associated resources* Sep 03 18:37:59 So your "yes" to my question was really a "no"? :) Sep 03 18:38:13 I don't want to export the resources in the jar Sep 03 18:38:25 but the plugins need to reference them at compile time Sep 03 18:38:37 similar to the eclipse workflow Sep 03 18:39:08 Hi all, any advice about develop token generation on in-game buys? Reading have found ideas as using the user id or the time, but guess there should be any "best practice" in some place to do this Sep 03 18:39:19 guys there is a better way or shorter way to create custom adapters? http://android.amberfog.com/?p=296 Sep 03 18:39:50 because i know anotther way using bindView with access to cursor, but seems like its not the best Sep 03 18:41:04 isnt better bindview and newview than all those get/set items? Sep 03 18:47:07 Is this very bad? http://pastebin.com/QS7Psahp Could it lead to some bizarre bugs? Sep 03 18:48:58 IntentServices processes intents in order Sep 03 18:49:02 That case will never happen Sep 03 18:50:18 SimonVT, I am getting "ALREADY RUNNIN" sometimes though.. Sep 03 18:50:57 Then you're not setting it to false when done sometimes Sep 03 18:52:32 Only a single instance of a Service will exist at a time.. And it uses a Looper to process messages Sep 03 18:53:18 So yeah, that'll never happen Sep 03 18:54:53 And there's no way to tell if it's running either huh? Sep 03 18:55:31 Nope Sep 03 18:57:02 Ahh :/ Thank you for your help. Perhaps I'll use so min delay for calling startService then. Sep 03 18:59:11 can you put a view pager with a static number of pages inside of a view pager with a dynamic number, and disable swipe on the static one? Sep 03 18:59:34 hey guys, thought I'd try my luck again. Does anyone here use IntelliJ by any chance? Sep 03 19:00:08 The_Coolest, if you mean AS, then yeah I do. Sep 03 19:00:29 JetBrains IntelliJ Sep 03 19:01:03 alot of people. Sep 03 19:01:10 They have many products.. Sep 03 19:01:43 well IntelliJ editor for Android Sep 03 19:01:48 Don't know how else to call it Sep 03 19:02:00 IntelliJ IDEA Sep 03 19:02:03 :P Sep 03 19:03:49 So I had a project that would compile and run fine. Haven't touched it in a long time, opened it up yesterday and it won't compile. After I played with it some, and updated to the latest IDE version, it won't compile claiming that the facebook SDK is not referenced. And I can't get it to work for the life of me Sep 03 19:04:27 package com.facebook.... doesn't exist, etc. Sep 03 19:07:18 in project properties Sep 03 19:07:27 your application module needs to have facebook SDK module as a dependency Sep 03 19:10:21 Mavrik>> So I go to project structure, click on modules, select the one that needs FB referenced. Go to dependencies, click +. What should I select there? Sep 03 19:10:48 I have Jars\Directories, Libraries and Modules (which is the other modules in the project) Sep 03 19:10:56 yes Sep 03 19:11:07 and your application module should reference the facebook SDK module :) Sep 03 19:11:09 because it needs it Sep 03 19:12:02 So I need to add Facebook as a module to my project list Sep 03 19:12:17 well that depends. Sep 03 19:12:18 then add it to the dependency of the module in question Sep 03 19:12:27 you didn't say anything in what form do you have the facebook sdk Sep 03 19:12:31 or how are you trying to add it Sep 03 19:12:34 or what build system you use :) Sep 03 19:13:18 well I tried adding the FB JARs as reference, that didn't work. I'm assuming it has to be added as a module to the project first Sep 03 19:13:29 if only I could find how to do that :D Sep 03 19:13:42 I have a database where a column contains a date as longs, now I want to retrieve certain entries within a hour range for every day. can I do that like this? WHERE date_of_entry % (1000 * 60 * 60 * 24) BETWEEN ? AND ? Sep 03 19:14:41 according to something I dug up on stackoverflow earlier this should work Sep 03 19:15:12 The_Coolest, IIRC Facebook SDK actually has resources attached Sep 03 19:15:18 do you use Gradle? Sep 03 19:15:21 I figured out my dialog issue. The previous developer was setting the height and width manually causing the dialog view to not match the window's view. Removed that bit and it seems to respect the fitSystemWindow flag now. Sep 03 19:19:01 Mavrik I don't even know what that is. but I think that the IDE is installing it right now Sep 03 19:21:09 if I get it working, I'll make an attempt to update the admob sdk too Sep 03 19:22:44 valder, sorry I have nothing, I only ever used the standard profiler, with very limited luck Sep 03 19:24:17 oh this is just perfect Sep 03 19:26:05 valder, on Android it's usually just the easiest to do a heap dump from DDMS, convert the heap dump and then open it in Ecliipse MAT Sep 03 19:32:07 whats going on in android land today :) Sep 03 19:33:57 "Verizon pays record fine for violating phone customers’ privacy rights : For seven years, Verizon marketed to customers without seeking their permission." Sep 03 19:34:03 those ... guys Sep 03 19:42:55 is it possible to have an exported service in one (non-specific app) and allow other apps to detect that service? Sep 03 19:43:57 like say if the service package is "com.test.service" and app "Hello" or "Hi" could contain that service. Would it be possible for the one being installed second detect and use the service of the first one? Sep 03 19:50:40 If screen A is bigger in inches than screen B but screen A has low resolution so screen B has more pixels, isnt the same text size in px bigger on screen A then? Sep 03 19:51:04 omfg Sep 03 19:54:53 ARGH!!!!!!!!!!!!!! Sep 03 19:54:58 Why won't this crap compile Sep 03 19:55:45 So I managed to get everything working, except now the FB's own code throws an error Sep 03 19:56:01 And I can't figure out what to do Sep 03 19:56:27 it can't find a class, which is in the project, but has a small X by that file in the project tree Sep 03 19:56:44 and I can't find a way to get it to 'recognize' this file and compile it Sep 03 20:00:56 ho i can change the color of android:autoLink="phone" ? Sep 03 20:01:34 lol fb sdk is the worst Sep 03 20:01:44 The_Coolest, try the simple fb library Sep 03 20:02:01 It's weird as hell Sep 03 20:02:19 ho i can change the color of android:autoLink="phone" ? Sep 03 20:02:46 Afzal this is what I get: http://img.techpowerup.org/140903/Capture1517.png Sep 03 20:03:17 If I comment out that line it compiles, but that's not a solution to the problem Sep 03 20:04:43 The_Coolest, lol, can't help you there bud. I use simple fb, it's simple to use and super simple to extend Sep 03 20:05:01 what's simple fb? Non-official FB lib? Sep 03 20:05:12 Unfortunately, I've dove deeper in the facebook sdk than I'd ever like :( Sep 03 20:05:18 https://github.com/sromku/android-simple-facebook Sep 03 20:06:25 ho i can change the color of android:autoLink="phone" ? Sep 03 20:06:36 Afzal that's just a wrapper for the fb lib Sep 03 20:06:54 I have working code. but the damn thing won't compile. Sep 03 20:07:02 The_Coolest, yeah, better a wrapper than you wrapping your own utils class :) Sep 03 20:07:54 I just can't see myself going into my own code and replacing stuff. this should just work. the error is within the facebook library itself. Sep 03 20:08:00 I don't understand Sep 03 20:10:18 stupid project setting remembered an exlude... ugh Sep 03 20:10:28 It's probably something that it needs, I'd look at the build.gradle Sep 03 20:10:32 should work now, perhaps Sep 03 20:10:58 OMG. it compiled. Sep 03 20:11:13 fb sdk is the weirdest thing ever. The whole ui recycler garbage is bullshit Sep 03 20:11:49 well it was intellij's fault of hiding the list of excluded files Sep 03 20:12:00 I had to dig through a bunch of dialogs and menus Sep 03 20:12:13 why can't it just be in the context menu when you right click said file Sep 03 20:12:15 ... Sep 03 20:12:39 stop complaining and code Sep 03 20:12:49 yeah Sep 03 20:12:54 which file was it? Sep 03 20:13:08 The one it was bitching about Sep 03 20:13:16 I accidently clicked to exclude it Sep 03 20:13:28 yeah, what file was it? Sep 03 20:13:36 but removing and readding the fb as a module didn't clear the stupid exclude list Sep 03 20:13:47 oh you excluded it by mistake? Sep 03 20:13:48 lol Sep 03 20:13:55 BoltsMeasurementEventListener Sep 03 20:13:57 yea Sep 03 20:13:57 h Sep 03 20:14:46 I excluded it, but when I removed the whole module it didn't 'occur' to the IDE to remove that file from the excluded list Sep 03 20:15:09 ok, now I need to tackle updating admob sdk to the newest version Sep 03 20:15:15 hope that works smoother. Sep 03 20:16:34 holy crap Sep 03 20:18:12 http://stackoverflow.com/questions/25652867/android-text-size-from-screen-size-to-small-where-is-the-mistake Sep 03 20:18:24 ^ I have a problem with text size, anyone care to have a look? Sep 03 20:23:52 smitzer, text should always be set in SP units Sep 03 20:24:32 which is the reason why you're seeing your issues Sep 03 20:24:58 Mavrik, I know that is the standard way but it is a bit problematic that the user can change the font size, it is hard to make designs that wokrk with any font size Sep 03 20:25:17 Mavrik, can devices have different default font sizes? Sep 03 20:25:33 Mavrik, surely I can make some transformation to get around that? Sep 03 20:25:54 smitzer: https://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds and https://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds might help Sep 03 20:26:04 So you're basically saying Sep 03 20:26:32 that if user wants bigger font size because he cannot read the default one, you want to prevent him from doing that because it's slightly harder for you? Sep 03 20:26:51 anyway, use proper ellipsizing / marquee Sep 03 20:26:59 and stick to the non-px units to keep sizes the same. Sep 03 20:28:00 Mavrik, well yes it might be douchy but if you have poor eyesight youre not gonna play my game anyway Sep 03 20:30:02 Shagane, that was the same link twice. ty anyway Sep 03 20:30:13 and ty Mavrik Sep 03 20:30:27 "use proper ellipsizing / marquee" what is that+ Sep 03 20:30:59 whoops, my bad: https://stackoverflow.com/questions/16017165/auto-fit-textview-for-android Sep 03 20:32:59 anyone have issues using screenrecord? seems like if I put my bit rate over 2MB it craps out Sep 03 20:33:24 smitzer: It's just an option that shortens text to fit within a container, but that's probably not what you want. Sep 03 20:42:17 Does anyone knonw where the "shared storage" is located? Sep 03 20:42:51 on your phone Sep 03 20:42:57 What is the directory? Sep 03 20:43:13 good question Sep 03 20:45:46 ... Sep 03 20:47:48 nvm Sep 03 20:50:12 people waiting outside the apple store already ... what if they only announce the device but it isn't available right away ... hehe Sep 03 20:50:24 dumbasses Sep 03 20:51:11 another iThing? Sep 03 20:55:35 when I use BitmapFactory.DecodeFile, it seems to increase the heap space continually Sep 03 20:55:44 continuing to use decodeFile results in out of memory Sep 03 20:55:52 would there be a reason memory is leaking Sep 03 20:56:12 Bitmap bitmap = BitmapFactory.decodeFile(imagePath, opts); Sep 03 20:56:12 drawable = new BitmapDrawable (resources, bitmap); Sep 03 20:56:24 the drawable being set to an image in a listview Sep 03 20:56:43 [dalvikvm-heap] Grow heap (frag case) to 489.366MB for 31961104-byte allocation Sep 03 20:57:38 Well yes, for each bitmap it'll likely grow the heap Sep 03 20:58:03 And if your bitmaps are all 31 MB in size, you'll run out of memory fast Sep 03 20:58:25 Scale them to the target size Sep 03 20:58:59 shouldnt these bitmaps be getting GC’d? Sep 03 20:59:23 Aren't you showing them in your ui? Sep 03 20:59:33 it’s a listview, so only a couple should be showing at a time Sep 03 20:59:37 They'll get GCd when there are no more references Sep 03 21:00:01 Either way, scale them Sep 03 21:00:21 i wrote some code that clears the bitmaps as references dissapear and it seems to be working Sep 03 21:00:31 it’s only the DecodeFile line that is seemingly leaking memory Sep 03 21:00:53 You haven't shown anything pointing to memory leaks Sep 03 21:00:59 scaling them seems like it would solve the issue but not the core problem that the memory is being released Sep 03 21:01:01 Just that your bitmaps are large Sep 03 21:01:55 i can decode every file fine, but some files are increasing the heap space, where the heap space/size stays there Sep 03 21:02:10 that doesn’t tell me the bitmaps are large/too large Sep 03 21:03:37 if i scale the image from say 30 MB to 1MB, i’ll be able to show 30 times as many images before it hits OOM but it’s still going to be OOM no matter how big the images are, is what i’m getting at Sep 03 21:03:58 No, not if you clear references Sep 03 21:04:03 GC isn't instant Sep 03 21:04:43 There's no memory leak, just too much memory usage Sep 03 21:05:13 it doesn’t have to be instant, are you saying the GC takes forever to clear? Sep 03 21:06:06 i already have working code where references are being cleared while using another way to obtain the bitmap Sep 03 21:06:11 I need some sort of load screen on startup (mostly the first time) the game is started. I need to do 45 inserts into a database. what is the standard way to do this? Asynctask? Sep 03 21:06:18 i’m only having torouble with decodefile Sep 03 21:08:39 Bitmap bitmap = BitmapFactory.decodeFile(imagePath, opts); Sep 03 21:08:39 drawable = new BitmapDrawable (resources, bitmap); Sep 03 21:08:40 v.setImageDrawable(drawable); Sep 03 21:08:45 where v is an item in the listview Sep 03 21:08:55 Please use pastebin Sep 03 21:09:05 i would think as you scroll down the listview, it should be clearing the bitmap Sep 03 21:10:00 again, the above where i’m not using decodefile, it’s working as it should be and references are being cleared properly Sep 03 21:10:11 Not until you set a new bitmap in getView Sep 03 21:11:36 that doesnt really make sense Sep 03 21:12:10 if i scale down the image as a solution, that just means id be able to show more images, not that i’m actually clearing memory properly Sep 03 21:12:11 Sure it does. A view that goes off screen is placed in the recycler. Later it is passed to getView Sep 03 21:12:28 Placing a view in the recycler does not clear bitmaps Sep 03 21:12:42 If my app takes 3-5 seconds to load the first time it is used I need a splash screen and background task right? Sep 03 21:13:02 *cries* no splash screens!!! Sep 03 21:13:06 if what you’re saying is true SimonVT, how does scaling the image down fix the problem Sep 03 21:13:33 It fixes it because there's no memory leak.. Just too many large bitmaps Sep 03 21:13:40 i would think you should be able to scroll down an infinitely long listview with images Sep 03 21:14:08 i guess i’m under the assumption android should be able to handle a simple case like an infintely long listview Sep 03 21:14:20 You can do that just fine Sep 03 21:14:39 how does that work with what you’re telling me Sep 03 21:14:40 But if you have 5 31 MB bitmaps waiting to GC, a few sitting in the recycler, and you're loading 4 new Bitmaps at the same time Sep 03 21:14:43 You're gonna run out of memory Sep 03 21:15:19 Do you know how ListView recycling works? Sep 03 21:15:58 i guess i’m just skeptical of what yo’re saying because i havent seen the heap size go down even if i wait Sep 03 21:16:04 it just strikes me as wrong honestly Sep 03 21:16:11 bankai_ you forgout your 'au' ? Sep 03 21:16:11 hi Sep 03 21:16:15 Heap size != memory usage Sep 03 21:16:22 Maybe it doesn't need to shrink Sep 03 21:16:24 when oi run my app in landscape i have nullpointer, how i can solbe? Sep 03 21:17:00 t0th_- solve it by thinking about it of course :) Sep 03 21:17:02 You get an OutOfMemoryError when you try to use more memory than the max heap size. What the actual heap size of your app is doesn't matter Sep 03 21:17:11 thanks Sep 03 21:17:20 are you a virgin? Sep 03 21:17:43 Sixmsj there is a library called glide that takes care of some of this, maybe fits your use case Sep 03 21:18:06 https://github.com/bumptech/glide Sep 03 21:20:02 when oi run my app in landscape i have nullpointer, how i can solbe? Sep 03 21:20:06 tl;dr there's no memory leak, just poor memory management Sep 03 21:20:09 t0th_-: i’m sure when you’re rotating, your activity/fragment is getting destroyed and state isn’t being maintained Sep 03 21:20:19 t0th_-: Fix whatever your stacktrace tells you is causing the crash Sep 03 21:20:34 SimonVT: how would you propose solving it Sep 03 21:20:38 SimonVT: when i run in portait i dont have nullpointer in the same line Sep 03 21:20:47 Scale your bitmaps Sep 03 21:20:49 because again, it seems like lowering/scaling hte image is avoiding the problem and not really solving it Sep 03 21:20:55 Don't load 10 bitmaps at once Sep 03 21:21:28 Use a proper image loading library Sep 03 21:21:36 this is just poor android design imo, uiimage/tableviews do not behave this way in iOS Sep 03 21:21:49 poor android design? Sep 03 21:22:01 i’m taking a look at glide g00s Sep 03 21:22:07 How so? Sep 03 21:22:17 yes, the entire way image handling is set up seems poorly thought out Sep 03 21:22:24 Sixmsj there was an article yesterday http://google-opensource.blogspot.com/2014/09/glide-30-media-management-library-for.html Sep 03 21:22:26 iOS seems far superior by comparison Sep 03 21:22:26 How so? Sep 03 21:22:38 :( Sep 03 21:23:09 well your solution to solve this ‘memory management’ problem is to scale images down…. Sep 03 21:24:16 have you worked with UIImages on iOS SimonVT? bitmaps are a joke in with how tedious they are to manage Sep 03 21:24:17 when oi run my app in landscape i have nullpointer, how i can solbe? Sep 03 21:24:18 You don't need a 2000x2000px bitmap if it's going to be shown at 500x500 Sep 03 21:24:29 indeed…. SimonVT Sep 03 21:25:00 t0th_-: Please don't spam your question. Provide enough information for people to help you debug it, and ask. Then wait 15-30 minutes before you ask again if you don't get an answer Sep 03 21:25:10 okokokok Sep 03 21:25:16 stacktrace and code Sep 03 21:25:35 when i run in portait, it is work fine.. when i run the application in landscape i have error nullpointer Sep 03 21:26:22 bankai_au, i dont like them either and if they were not necessary i wouldnt. but if the install takes 5 seconds, thats a bit to long, there is a risk my app will crash on older devices... Sep 03 21:26:42 t0th_-: a null pointer exception is one of the easiest and most basic things you should learn how to debug in java Sep 03 21:26:48 man Sep 03 21:26:58 they aren't necessary. you can still load things in the background while rendering a UI Sep 03 21:27:05 find out what line in your program the NPE happens on, from the stack trace Sep 03 21:27:06 when i run in portait i dont have this error, when i run in landscape i have this error.. the code is the same Sep 03 21:27:19 and then look at everything that could possibly be null and cause an NPE on that line Sep 03 21:27:19 t0th_-: Pastebin your stacktrace and code or be quiet. Sep 03 21:27:29 be quiet? Sep 03 21:27:30 ahahahah Sep 03 21:27:33 ok, virgin Sep 03 21:27:46 dipshit Sep 03 21:27:51 awwww never seen SimonVT put his @ on! Sep 03 21:28:12 now virgins everywhere are safe again Sep 03 21:29:17 well thats good, 2 bugs i submitted got triaged , assigned, at high priority :) Sep 03 21:29:32 when the fall through the triage abyss, all hope ends Sep 03 21:29:46 BLE stuff? Sep 03 21:29:54 na, AS & gradle Sep 03 21:30:00 g00s: this glide thing looks very promising, is this straight from google? Sep 03 21:30:03 bankai_au: I try not to Sep 03 21:30:09 greetings Sep 03 21:30:09 oh, meant to tell you, started writing my IJ plugin Sep 03 21:30:16 Sixmsj i'm not sure :| it was used in iosched 2014 Sep 03 21:30:28 bankai_au cool what is it ? Sep 03 21:30:40 for robovm, sorry :P Sep 03 21:30:56 bankai_au oh yeah, if you use gralde plugin apis's you're gonna be hopping quite a bit Sep 03 21:31:02 the IJ plugin/action API is quite nice, it's just a little convoluted Sep 03 21:32:05 Sixmsj: Anyway, watch the world of listview on youtube to see how listviews recycler works, and read http://developer.android.com/training/displaying-bitmaps/index.html to learn how to display bitmaps efficiently Sep 03 21:32:23 And know that GC isn't instant and you don't have unlimited memory Sep 03 21:32:36 thanks SimonVT, you’re probably right. i’m just being a little stubborn Sep 03 21:34:24 Basically, if you start loading a 20 MB Bitmap into a variable that holds a 20 MB Bitmap, you'll likely be using 40 MB for your Bitmaps for a short amount of time Sep 03 21:34:28 Until the GC can catch up Sep 03 21:48:41 In Android Studio, how do I reattach the ddms window to Android studio? now it is a separate window... Sep 03 21:48:48 (on ubuntu) Sep 03 21:51:43 Hi Sep 03 21:52:01 I've read that it's not possible to replace() a static fragment Sep 03 21:52:09 is this true even in the latest API level? Sep 03 21:52:17 because it seems a weird flaw to me Sep 03 21:57:40 I assume you mean a fragment defined in XML.. I'm sure you can replace it, but it'll just get readded on configuration changes when the layout is inflated again Sep 03 22:05:28 hello, can anybody here tell me where the android core translation is done? Sep 03 22:05:41 is it a considered bad practice to change from one fragment to another from within a fragment? or is it generally advised to do it via some logic in the activity? Sep 03 22:06:04 lapingvino: not sure what you mean. translation as in translating strings? Sep 03 22:06:10 and what do you mean "core translation"? Sep 03 22:06:20 translation of the "core" strings used by the android system? Sep 03 22:06:27 exactly that Sep 03 22:06:58 looking for it online I can only find app translation stuff Sep 03 22:07:17 and I cannot find a trace of i18n stuff in the source review... Sep 03 22:07:27 So I'm a bit baffled... Sep 03 22:08:20 ok, it's definitely a good thing that translation is not done in a system directly on the source code... but where does it happen? Sep 03 22:08:30 and where do I get that source from? Sep 03 22:08:34 lapingvino: https://android.googlesource.com/platform/frameworks/base/+/c1ce74cab0e83d574df1bd7bb7b7eb16eec171f6/core/res/res/ Sep 03 22:08:48 there are strings.xml in each of the values-* folders for the various languages Sep 03 22:08:55 with the translated strings Sep 03 22:09:11 e.g. https://android.googlesource.com/platform/frameworks/base/+/c1ce74cab0e83d574df1bd7bb7b7eb16eec171f6/core/res/res/values-sr/strings.xml Sep 03 22:11:27 makes sense :) Sep 03 22:11:47 so I should just git clone the /platform/frameworks/base/ from gerrit? Sep 03 22:11:52 yea Sep 03 22:11:56 great :) Sep 03 22:12:01 thanks a lot! Sep 03 22:12:07 you'll get that directory when you do a normal check out of AOSP using repo Sep 03 22:12:14 or otherwise, you can git clone that git repo directly Sep 03 22:12:29 ok :) Sep 03 22:12:45 is that repo big? Sep 03 22:13:05 if not, maybe I should make a copy to github, work on it and then push back :) Sep 03 22:13:14 maybe I should anyway ;) Sep 03 22:13:47 Does anyone know why I cannot seem to include retrofit as a dependency from MavenCentral in my android-library build.gradle file? Is there some rule about dependencies for library projects? Sep 03 22:14:29 hm, over a gig... Sep 03 22:14:42 ravilov: thanks for the help. Sep 03 22:14:43 Mavrik: hmmm i'll try that. thanks. It seems a little awkward that Android Studio doesn't have this sort of stuff built in and I have to use some 3rd party tool on a different platform. :( Oh well C'est la vie Sep 03 22:14:46 a bit more than I expected ;) Sep 03 22:15:55 ravilov & Mavrik: I had to step out for a few hours so I only got the messages about MAT, if there was more would you mind reposting? :) Sep 03 22:18:26 hmmm, can only star reviews, not repos in gerrit Sep 03 22:19:09 ah well, I have it checked out now anyway (i.e. it's still downloading ;) ) Sep 03 22:26:46 My question again, since it seems nobody saw it. Is it possible to swap left and right audio channels on Android? Sep 03 22:29:10 sha-bang, what.. like for the whole platform? Sep 03 22:29:30 bankai_au, i dont like them either and if they were not necessary i wouldnt. but if the install takes 5 seconds, thats a bit to long, there is a risk my app will crash on older devices... Sep 03 22:29:32 sha-bang: well, you could make a little audio adapter that did that pretty cheaply/easily Sep 03 22:29:34 I need some sort of load screen on startup (mostly the first time) the game is started. I need to do 45 inserts into a database. what is the standard way to do this? Asynctask? Sep 03 22:29:41 Zharf: yes! :) Sep 03 22:29:57 you could likely get the parts from radio shack for a couple of dollars :) Sep 03 22:30:48 smitzer: showing a splash for that long will be worse -- what are you doing that takes so long? Sep 03 22:31:38 JesusFreke: That's a good idea, but I was more interested in implementing it in software. Sep 03 22:31:46 sha-bang, I would have to say no, but there might be a possibility for some audio with AudioEffect... not sure though since I've never really used it Sep 03 22:32:14 I'm not sure if you can write custom audioeffects.. Sep 03 22:32:39 Zharf, so it's possible to do implement that in my own app? Sep 03 22:32:49 Just for that app? Sep 03 22:32:56 sha-bang: it's unlikely you would be able to do that, without modifying the platform itself Sep 03 22:33:27 sha-bang, for your own app for sure, if you go low level and write your own audioloop(s) ;) Sep 03 22:35:17 I was afraid of that... Thank You for your answers! :) Sep 03 22:35:44 smitzer: oh sorry missed your second msg, 45 inserts shouldn't take 5 seconds -- use a transaction (in an asynctaskloader or using rxjava) Sep 03 22:37:53 SimonVT: do you know if this link is still relevant Sep 03 22:37:54 https://groups.google.com/forum/#!topic/android-developers/Zlmq8GnkYtI Sep 03 22:38:11 if it is, i may stand uncorrected ;], thought i maybe should have mentioned i was using a gallery instead of a listview Sep 03 22:38:44 gallery... *brr* that abomination Sep 03 22:39:22 Zharf: inherited code :] Sep 03 22:39:58 bankai_au, without th inserts it takes about 1-2 seconds to load the app the first time and with the inserts it takes 4-5 seconds and that is on a samsung s4 mini which is reasonably powerful, so older devices might give an ANR Sep 03 22:40:17 i was also surprised about how 45 db inserts could possibly take that long. Sep 03 22:40:52 are you using a transaction ? Sep 03 22:41:10 ohh, database... not decibel Sep 03 22:41:12 I was confused Sep 03 22:41:31 use loaders! Sep 03 22:42:07 loaders? Sep 03 22:42:29 loaders -_- Sep 03 22:44:15 http://developer.android.com/guide/components/loaders.html Sep 03 22:49:18 http://developer.android.com/reference/android/content/AsyncQueryHandler.html Sep 03 22:50:20 lol you guys, he Sep 03 22:50:22 Is there an easy way in XML to apply a color to an animation? I.e. fading out a view into a specific color? Sep 03 22:50:26 's inserting into the db Sep 03 22:51:11 g00s, yes I read what he said, after what I said... and then linked a better solution! Sep 03 22:51:14 :p Sep 03 22:51:16 I should sleep Sep 03 22:55:43 how can I require parameters for my tasks? Sep 03 22:56:09 IE, a copy task, specifying a string that's later used as a substring in the from/into fields Sep 03 22:57:20 you mean how do you make sure someone fills in fields? In whatever handler you attach to whatever button you have, you have to check the content of the fields and show an alert or some other user notification. Sep 03 22:58:23 gradle task ? Sep 03 22:58:27 I specifically mean parameters for gradle tasks Sep 03 22:58:51 I'd like to make a generic 'copy' function, where I supply a string, and it uses that string in both the from/into fields Sep 03 22:59:07 just to avoid boilerplate of renaming/copying a bunch of things -- from 4 lines down to 1 Sep 03 23:00:19 i'm trying to figure out the best way to determine a latitude/longitude for a given location. the user might input somethign simplie like "dallas, tx", or input something more complicated like "AT&T stadium" Sep 03 23:01:03 obviously, if i search either of these entries in the Google Maps app, the location will be the 1st result. is there an easy way to do this, maybe using the search function in google maps? Sep 03 23:06:45 there is any method to use select * from but renaming just 1 column? Sep 03 23:08:05 anyone? Sep 03 23:11:00 i basically need t oget a location based off a user input, i don't know if the user is going to put in a zip code or city / state or general business Sep 03 23:22:10 found it http://developer.android.com/reference/android/location/Geocoder.html Sep 03 23:26:32 hello all Sep 03 23:27:30 I'm trying to do a real test of IAB and I've added my wife's gmail as a tester (Google Group created). I uploaded my signed APK to the Alpha channel and added in-app products to my console yet my wife's Play Store doesn't see the updated version of the app. Sep 03 23:27:34 any ideas? Sep 03 23:27:42 oh and its been about 18 hrs Sep 03 23:34:43 I'm having trouble start the emulator for my avd, i always get NAND: could not write /tmp/android-user/emulator-UlfOzt, File exists. But when cding into that directory, there are no files in there.. Any suggestions? Sep 03 23:35:45 I'm on fedora, if that helps Sep 03 23:36:55 is your hard drive full? Sep 03 23:37:23 I just checked that cause some googling suggested that, but it's not Sep 03 23:38:38 what about this? Sep 03 23:38:39 http://stackoverflow.com/questions/10390846/nand-error-in-hello-world-project-in-the-offical-android-developer-tutorial Sep 03 23:38:57 point where the emulator starts to a non-volatile part of your system Sep 03 23:40:40 where do I execute that command? just in the terminal? Sep 03 23:41:19 yes, then if you want it to persist you'll have to add it to your .bash_profile or whereever Sep 03 23:41:45 I dont know if thats the issue but at least pointing the emulator to start elsewhere (not /tmp) is a start Sep 03 23:44:43 Has anyone used APK Expansion stuff? Sep 03 23:44:48 I need help with it. Sep 03 23:45:06 QubeZ: Not working :/. I also tried creating a new AVD and restarting eclipse Sep 03 23:45:21 same error? Sep 03 23:45:31 I am using https://github.com/moust/phonegap-xapkreader Sep 03 23:45:37 yes, just something different after emulator-******** Sep 03 23:50:59 unsx: out of ideas :\ Sep 03 23:52:20 QubeZ: thanks anyways, i'll try googling Sep 03 23:55:44 does gradle 2.0 have a replacement for collection/tree.findAll()? Sep 03 23:56:38 unsx: try this http://notes.ericjiang.com/posts/195 Sep 03 23:56:45 maybe the export didn't take or valid Sep 03 23:58:11 another link: https://sites.google.com/site/androidhowto/how-to-1/set-up-the-sdk-on-lab-machines-linux Sep 04 00:06:10 uh, finding tmpVandroid in tools/emulator is gonna be tough :D Sep 04 00:10:08 not working either :/ Sep 04 00:11:00 I'm literally just getting started, should I maybe just switch and start with android studio? Sep 04 00:12:02 switch to intellij! :) Sep 04 00:15:01 well I basically just want to dive in but seems like eclipse is not letting me :P Sep 04 00:20:39 you're looking at it funny. obviously. Sep 04 00:23:26 QubeZ: I have no idea what happened but I just rebooted the device and it's working now.. Sep 04 00:24:37 One does not simply... dive in. Sep 04 00:26:38 Why's that? Sep 04 00:30:34 designing a UI is hard Sep 04 00:31:18 hello everyone Sep 04 00:31:41 I recently moved some code across two computers with different versions of android studio Sep 04 00:31:51 there aren't any errors during compile Sep 04 00:32:12 I guess I like to live dangerously then Sep 04 00:32:48 but on runtime I get a null pointer exception, with the following stack trace http://pastebin.com/bwp9w9uz Sep 04 00:33:25 that is, the app will start, and then immediately die with that error Sep 04 00:33:34 does anyone know where I should look to start fixing things? Sep 04 00:33:41 the stack doesn't seem to point to any of my code Sep 04 00:35:32 !ping Sep 04 00:41:09 is that the whole ST? i wonder if it's got to do with R being stale Sep 04 00:46:53 bankai_au: the whole thing from start to finish is http://pastebin.com/raw.php?i=Fwnm3jjM Sep 04 00:47:01 How can I check if R is stale? Sep 04 00:47:35 guys whats the best optimized way to create custom cursoradapters Sep 04 00:47:48 this looks good but kinda old http://stackoverflow.com/questions/12223293/cursoradapter-bindview-optimization Sep 04 00:59:20 why no one answer here Sep 04 01:00:24 rufsketch1: well, you'd just clean, but i'm not sure -- what's in your onresume ? Sep 04 01:03:27 rufsketch1: set some breakpoints and step through Sep 04 01:03:51 Guys, I have a GridView with binded SimpleCursorAdapter which gets the data from MediaStore.Images content provider. But when new images are created cursor seems to be not updated. I read docs and tutorials about cursors but didn't find any mentions on how to update list/grid/whatever-views when the data is changed. Sep 04 01:04:01 bankai_au: I already cleaned. Sep 04 01:04:18 bankai_au: I'll try breakpoints presuming the issue occurs in onresume Sep 04 01:04:25 Any suggestions on where to read about that? Sep 04 01:05:17 bankai_au: actually, yeah, there's nothing in that onresume Sep 04 01:05:24 except a log.d Sep 04 01:17:55 AS 0.8.9 update Sep 04 01:46:05 g00s: you're like an RSS feed :) i'm almost starting to rely on you for update information Sep 04 01:46:39 hm, didn't fix any of the problems i was having :( Sep 04 01:49:33 wait g00s youre still having problems with gensource dirs? Sep 04 01:49:53 is it just me, or is the gradle doc very long but not saying much at all Sep 04 01:50:09 can't even find a good example of using project.exec Sep 04 01:51:24 omg Sep 04 01:51:26 i agree so much Sep 04 01:51:37 this is the exact problem i have every time i try to use the gradle docs Sep 04 01:51:41 so long but no content Sep 04 01:52:20 yeah, like "Writing custom Tasks' here http://www.gradle.org/docs/current/userguide/custom_tasks.html Sep 04 01:52:26 doesn't say shit about anything Sep 04 01:53:05 Sort of like when you're writing a paper and you get really long winded and overly verbose if you cant think of shit to write Sep 04 01:53:11 their example task says 'hello' yey Sep 04 01:53:13 https://www.youtube.com/watch?v=NcKGw-IO5Uc Sep 04 01:54:45 outside of android i wouldn't touch this thing ;) Sep 04 01:55:29 yeah Sep 04 02:13:30 is there any guide/tutorial for interfacing an android app with a REST api? Sep 04 02:16:09 http://square.github.io/retrofit/ Sep 04 02:16:11 all you need Sep 04 02:16:24 capella FF 32 ? i thought 31 just came out :O Sep 04 02:17:58 Integration of generational garbage collection Sep 04 02:18:17 i know! the releases are ridiculously often Sep 04 02:18:43 got to say, that just sounds like a new way to handle taking out the trash at the old people's home Sep 04 02:19:23 soylent green is people! Sep 04 02:20:27 hmm... idea... special edition of the soylent meal replacement stuff, for St. Patrick's Day Sep 04 02:29:21 morning Sep 04 02:29:34 who uses dagger with gradle Sep 04 02:30:12 google shows many links and every one of them is different ;) Sep 04 02:38:36 disconnect Sep 04 02:49:22 hello all Sep 04 02:49:55 on line 14 of this, http://hastebin.com/arohucayud.coffee -- I get IAB IllegalStateException stating that IAB is not setup. I'm not sure what's wrong because when I comment it out, I can test the purchase and it goes through, activity works just fine. Sep 04 02:50:08 I just need to check my inventory so if a user uninstalls then reinstalls, I maintain their purchase Sep 04 02:51:49 I can't figure out what's wrong **** ENDING LOGGING AT Thu Sep 04 02:59:58 2014