**** BEGIN LOGGING AT Fri Sep 13 02:59:58 2013 Sep 13 03:01:22 trying to add the actionbarcompat library, but android studio can't find the @style/Theme.AppCompat. Not sure why...http://pastebin.com/7zqH7VQv Sep 13 03:06:51 cooldman224, gradle file? Sep 13 03:07:47 alex_PP: maven :) Sep 13 03:08:36 does maven sipport aar yet? or do you have an apklib version of appcompat? Sep 13 03:08:48 alex_PP don't think so Sep 13 03:08:50 *support Sep 13 03:08:51 nope Sep 13 03:08:57 i have the jar Sep 13 03:09:00 ...wow Sep 13 03:09:01 thats it Sep 13 03:09:04 that's the problem then Sep 13 03:09:09 thanks Sep 13 03:12:07 garg. likeing android studio except for one thing Sep 13 03:12:09 ... Sep 13 03:12:24 ctrl - d in eclipse is delete line and duplicate line in udea Sep 13 03:12:30 *idea Sep 13 03:12:48 and it's the only shortcut my hands refuse to forget Sep 13 03:12:58 the exact opposite action! Sep 13 03:14:12 hi all. i have a trivial example of a class derived from another class that derives from an Activity. The only implemented function is onCreate() and that's defined like: { Log.i("before"); super.onCreate(...); Log.i("after"); } Only the "after" message is output to the log when the activity is created though and not both "before" and "after". does anyone know why? here's the full class def: http://pastebin.com/raw.php?i=6r Sep 13 03:14:12 C6ccqu Sep 13 03:14:23 Anyone able to help with a multi project setup? Need a fresh set of eyes on this https://groups.google.com/forum/#!topic/adt-dev/UVIXYLwSQbw Sep 13 03:14:24 whoa there Sep 13 03:15:05 im new to java so i might have done something obvious Sep 13 03:16:43 alex_PP: Ctrl+Y is redo in many windows applications Sep 13 03:16:53 ..in IDEA it's yank line Sep 13 03:16:53 :D Sep 13 03:18:46 ha Sep 13 03:57:05 Hello! any idea why I might getting this android.os.TransactionTooLargeException in android.os.BinderProxy.transact: http://pastebin.com/GWb9kKUb Sep 13 03:59:01 are you experiencing it in your own device, or seeing it in crash reports? Sep 13 03:59:08 crash reports Sep 13 03:59:52 i'd imagine it's a temporary thing with the device either in an odd state or crashing and needs to be rebooted. there are a few limits on binder sizes, one that's global for all current transactions and one per process Sep 13 04:00:22 i imagine the framework binder to add your window is rather small and wouldn't cause the exception itself, so it's probably the global limit being hit Sep 13 04:00:24 what's a binder size? Sep 13 04:01:07 android interprocess communication is done via objects called binders. For example a widget on the home screen, the launcher is one process and the widget is in another. A binder is used to transfer the content from the widget process to the launcher process Sep 13 04:01:12 kevin: I have no idea what any of those methods do... Any context you can give me at "what's happening there" will be extremelly appreciated, even if you don't know why the thing crashes Sep 13 04:01:39 kevinb: I only knew about intents... are those things related? Sep 13 04:02:14 often these transactions are tiny, like some text strings or a few numeric identifiers. i think the binder mentioned in your exception is going to be a WindowToken, which i think is basically just used as a unique identifier and super tiny Sep 13 04:02:47 but sometimes big things like bitmaps are stuffed through a binder and can cause exceptions like these Sep 13 04:03:30 intents are related in that they are another part of the inter process communication, and i think they can pass binder objects (but i'm not 100% sure on that) Sep 13 04:03:41 i really need a new nick Sep 13 04:03:47 haha yeah sorry kevin Sep 13 04:03:49 kevinb: any idea how to know what part of my app is causing that? Sep 13 04:03:51 :) Sep 13 04:04:05 kevinb: Like, I don't do any explicit inteprocess communication.... Sep 13 04:04:28 kevinb: I send HTTP requests, read files, access a sqlite database... Sep 13 04:04:36 yeah i don't think the problem is in your code. i think the problem is the device/system software. you're creating a window when your activity is launched Sep 13 04:04:55 and the window has to communicate with the window manager Sep 13 04:07:24 kevinb: I'm getting the crashes from all sort of different phones... and by the comments it seems to be after the app is created... Sep 13 04:07:58 maybe when a dialog window appears? how many crashes are you getting relative to the popularity of your app? Sep 13 04:11:57 kevinb: a lot :( Sep 13 04:12:12 kevinb: a lot is probably less than 1%... but it's still a lot.... Sep 13 04:13:47 does your app use system alert dialogs or interact with the window manager directly at all? Sep 13 04:14:04 kevin: I use the alert builder thing Sep 13 04:14:08 to show some messages Sep 13 04:14:48 that's different than system alert. but maybe still related. i assume you're not doing anything like displaying 100 dialogs at once though? Sep 13 04:15:05 kevinb: I'm not doing anything "dumb" on purpose... Sep 13 04:15:15 kevinb: I might do dumb things inadvertedly :) Sep 13 04:16:03 BTW: // FIXME: Transaction too large is the most common reason for FAILED_TRANSACTION // but it is not the only one. The Binder driver can return BR_FAILED_REPLY // for other reasons also, such as if the transaction is malformed or // refers to an FD that has been closed. We should change the driver // to enable us to distinguish these cases in Sep 13 04:16:04 the future. Sep 13 04:17:26 kevinb: Let's try another one then: java.lang.RuntimeException in android.view.InputChannel.nativeReadFromParcel --> http://pastebin.com/rBt5Cu56 Sep 13 04:19:50 that might be related to the software keyboard. i get a somewhat similar one (IllegalArgumentException unknown id: com.android.inputmethod.latin) Sep 13 04:20:20 software keyboard Sep 13 04:20:27 ? O_o Sep 13 04:21:51 oh i guess mine specifically mentions inputmethod whereas yours just mentions inputchannel . so they might not be too similar Sep 13 04:24:46 https://code.google.com/p/android/issues/detail?id=32470 Sep 13 04:24:53 That might be related :$ Sep 13 04:28:07 curious Sep 13 04:29:58 kevinb: final chance to help me.... java.lang.NullPointerException in android.graphics.drawable.AnimatedRotateDrawable$AnimatedRotateState.canConstantState http://pastebin.com/Ja4nR9xC Sep 13 04:30:22 I have a view which uses a ProgressBar while I download some info from the server.... Sep 13 04:33:23 i've seen the error inflating class before. I think cyanogenmod's theme engine can trigger this, as several of the reports i have for it are from users with a cm theme,but i don't think it's the root cause as i've seen it from what i believe are stock devices as well Sep 13 04:34:40 is there any way to minimize those errors that I show you? or to make something so at least I don't have to crash the app? like is there any way to recover? or anything? Sep 13 04:35:59 for the ones you showed me i don't think so. there is one error i get where it's a nullpointerexception from onKeyDown, specifically the volume button. it's all handled by the framework (i've filed a bug). I looked into working around it but there isn't any function you can wrap and try/catch, and using a global exception handler will leave the app in an inconsistent/hung state Sep 13 04:37:14 :/ Sep 13 04:37:15 i guess the inflate one you could try/catch the setContentView and use a different view that didn't include a progress bar. or create a safe progressbar that try/catches the getDrawable. i don't think it'd really be worthwhile as it's potentially just covering up the bigger issue and it'd be hard to test Sep 13 04:38:00 kevin: :( Sep 13 04:38:30 i have a horizontal scroll view that's only like 48dp tall, and it will load the system's overscroll bitmaps which can be kind of large and sometimes i got OOMs. in that case i'm wrapping the calls to load those overscroll bitmaps and if they're going to cause an OOM i just disable the overscroll visualization Sep 13 04:38:59 kevinb: I need to do that too, but that's easy because I know what's happening :p Sep 13 04:39:10 in the future i'll probably just always use custom drawables for that though, either gradient or a smaller bitmap as that would be a better and more consistent fix Sep 13 04:43:07 kevinb: so.... what can I do so my users don't hate me? :) Sep 13 04:43:17 I need to do something about the crashes Sep 13 04:43:28 pay them $1 each crash? ;) Sep 13 04:43:37 users will always hate you. are these really your most popular crashes? Sep 13 04:43:58 XXCoder: I'll go bankrupt :$ Sep 13 04:44:12 kevin: kinda... all the others I know how to solve :) Sep 13 04:44:17 good movation to make sure program is bug free lol Sep 13 04:46:09 XXCoder: I don't believe in bugs... Sep 13 04:46:22 for now solve the ones you can. i really suspect the ones you showed me are out of your control and i have similar ones but still hold a 4.7 star rating. if you get a user who has the issue consistently try to get more info from them Sep 13 04:46:27 youre right. its features! Sep 13 04:46:55 what are you using for crash reports, just google play or something else? you might want to log some info to get a sense of if they're on a custom rom or not Sep 13 04:47:05 kevinb: Actually I think I'll start using some custom crash reporter... that might help Sep 13 04:47:08 also if it's a popular paid app you might want to include the md5 of the APK, to know if it's a pirated version or not Sep 13 04:47:25 kevinb: it's free Sep 13 04:47:52 Anyone here with an android tablet (any size) willing to test my app? I don't have a tablet and my computer can't run the emulated tablets apparently. Sep 13 04:48:02 i'm using hockeyapp for crash reporting. it's not perfect but i like it more than bugsense which i was using before (and it's cheaper) Sep 13 04:48:29 kevinb: is there any free crash reporting thing? Sep 13 04:49:11 some places have a free tier that might work for you. they limit things like crashes/month and retention and proguard integration Sep 13 04:49:15 google do have crash repory system Sep 13 04:49:22 but I guess you want more Sep 13 04:49:27 kevinb: I don't need a sever... I just need the client code.... Sep 13 04:49:32 server Sep 13 04:49:50 ACRA is an open source crash reporting framework Sep 13 04:50:19 it used to post to google docs, but this was technically a violation of the ToS and i think google asked them to stop. now they're working on some couchdb backend but it's not quite there yet Sep 13 04:51:29 hockeyapp (and most others) can aggregate the stack traces, so you can sort by count. the ACRA back ends i've seen don't do this which is kind of a pain Sep 13 04:51:48 err the open source acra back ends Sep 13 04:52:05 so i use acra to send to hockeyapp, and also used it when i used bugsense Sep 13 04:52:16 k Sep 13 04:52:19 crittercism and crashlytics are apparently good Sep 13 04:52:21 thankx Sep 13 04:53:33 i dont think my app ever crashes though :D Sep 13 04:53:41 I could fix that Sep 13 04:55:04 i really like the look of crittercism, but (last i checked at least) they don't support ACRA and their closed source jar takes like 500ms to initialize and i'm super picky about app startup time Sep 13 04:55:51 i noticed on my droid-1 a lot of logging from crittercism of crashes and such Sep 13 04:56:04 i thought, wow, what apps arent crashing Sep 13 04:56:57 i have my app sometimes send non-crash stacktraces too if i'm still debugging an issue, or think something could never happen but if it does happen i want to know about it Sep 13 04:57:41 kevinb: How do you send the non crash stacktraces? whith the crash library or something else? Sep 13 04:58:12 with the crash library, and i just add a parameter so i can see it was a "handled crash" when i'm looking at the log Sep 13 04:58:27 k Sep 13 04:58:43 anyway... I don't think I'll be able to use the crash library right now... Sep 13 04:58:58 what's the most important info to get? Thread.currentThread().getStackTrace() Sep 13 04:59:01 anything more? Sep 13 04:59:29 if possible actions user took Sep 13 04:59:44 is there any easy way to gather that info? Sep 13 04:59:46 i'm reading this though, and it kinda worries me Sep 13 04:59:52 http://www.crashlytics.com/blog/crashlytics-enterprise-is-now-free/ Sep 13 04:59:59 dunno maybe history of clicks and such Sep 13 05:00:00 how do these guys make money then ? Sep 13 05:00:13 if A is done then B boom crash thats useful Sep 13 05:00:17 here's what i log: https://gist.github.com/teslacoil/18adb40492d864aaf481 Sep 13 05:00:43 so i can see the device but also that it's running cyanogenmod. it's using the cm theme specified so if i really wanted i could even test against that (and if it's the theme fault email the dev) Sep 13 05:01:23 the Application onCreate has been running for 1.3 seconds (ignore the second time, that's garbage), so the error is basically happening right after starting up Sep 13 05:01:24 kevinb it would be cool to separate that stuff out and use some clustering algorithm to find the commonality Sep 13 05:01:27 XXCoder: is there any easy way to generate those? Sep 13 05:01:41 nope not expert. some sorta log I guess Sep 13 05:02:20 md5 lets me see that this APK is actually modified from the original, possibly pirated possibly some kind of theme thing. and the screen info lets me see when users are using custom dpi which can be relevant for OOM or errors about bitmap width must be > 0 Sep 13 05:03:04 g00s: yeah definitely. the thing is you also need analytics because like if i saw a crash occurred most often on the SGS3, that probably is just because the SGS3 is the most popular device Sep 13 05:03:53 k Sep 13 05:09:25 hm, signed up for crashlytics but you just go on a list Sep 13 05:09:29 bummer Sep 13 05:13:36 i really want analytics where it can tell me i have 30% of my users on Android 4.0 and then i can click on that and it says that 20% of those users are on the Galaxy Tab 10.1" (or whatever). The google play analytics look pretty but they can either tell me that i have 30% of my users on Android 4.0 or that i have 20% of total users on the SGS3 Sep 13 05:15:09 it's kind of surprising that no one even posts global analytics on that, like appbrain or google could say that what the most popular android devices for each version are Sep 13 05:17:45 kevinb i'm dissapointed my play dash doesn't give me a % breakdown of screen sizes Sep 13 05:19:21 yeah, google analytics does but it's resolution, not dp, so it's not very useful Sep 13 05:19:38 kevinb do you use the google analytic library? Sep 13 05:20:17 no. i used to but hit their limit and it wasn't worth refactoring to only have X% of users submit or whatever as their analytics never really fit my apps anyway Sep 13 05:21:15 oh, there is a limit ? Sep 13 05:21:19 heh i didn't even know Sep 13 05:21:31 or your app is really really popular Sep 13 05:22:00 well they expect an installed user to maybe only use the app a few times a day at the most Sep 13 05:22:08 whereas one of my apps is a home screen and the other is a lockscreen Sep 13 05:22:47 so "sessions" don't mean much. and even if you set it to only submit once a day or whatever, it still wants to record every onResume Sep 13 05:24:07 but there is a limit? Sep 13 05:24:16 yeah, 10 million hits per month apparently Sep 13 05:25:57 anyone awake? Sep 13 05:26:22 TelephonyManager.getDeviceId() gives IMEI/ Sep 13 05:27:08 TelephonyManager.getDeviceId() gives IMEI/ or esn or meid how do I know what this function is returning? Sep 13 05:27:33 zquad may just have to look at the code Sep 13 05:27:50 oh just look at the format of what is returned Sep 13 05:28:14 so I need to parse the returned string then Sep 13 05:28:32 heh, i meant look at the /source/ code :D Sep 13 05:28:54 ?? Sep 13 05:28:59 and expect samsung to do it differently ;) Sep 13 05:29:12 :) elaborate? Sep 13 05:29:48 hrm i do wonder how a device that is both CDMA and GSM would handle it. i'd guess that if it's provisioned for CDMA it'd return an MEID or ESN (are they the same thing?) and if it's not provisioned it'd return the IMEI, but that means potentially a device id could change, even without a factory reset Sep 13 05:30:08 zquad: android is open source, you can check the source code from source.android.com and see what exactly the getDeviceId method is doing Sep 13 05:33:40 k Sep 13 05:35:10 kevinb: Some new people have joined the channel, so I'd reask my questions to see if anyone has any idea! Sep 13 05:35:26 I'll Sep 13 05:35:28 gavilan2: good luck Sep 13 05:35:35 kevinb: thanks :) Sep 13 05:35:39 Any idea why I might be getting this java.lang.NullPointerException in android.graphics.drawable.AnimatedRotateDrawable$AnimatedRotateState.canConstantState http://pastebin.com/Ja4nR9xC ? Sep 13 05:35:49 ouch, it's removed Sep 13 05:37:54 http://pastebin.com/2n6H6QpN Sep 13 05:49:46 Any idea why I might be getting this android.os.TransactionTooLargeException in android.os.BinderProxy.transact: http://pastebin.com/jKmetEm4 ? Sep 13 05:50:41 another cool thing that a crash reporting service could do is aggregate reports like these ones and allow developers to post public comments for other developers that get the same crash with more details Sep 13 05:51:10 k Sep 13 05:51:33 oh i'm not aware of any that do. i'm just saying if anyone here wants to build a new crash reporting service they should add that functionality Sep 13 05:52:35 kevinb: I'm not sure if it's worth it.... Sep 13 05:52:40 kevinb: stack overflow already does that :) Sep 13 05:52:51 Any idea why I might be getting this java.lang.RuntimeException in android.view.InputChannel.nativeReadFromParcel --> http://pastebin.com/duD4eKAF?ax Sep 13 05:55:21 gavilan2: "This paste has been removed" Sep 13 05:56:34 maybe the transaction was too large Sep 13 05:56:49 How about this: http://pastebin.com/4TAz4uBW Sep 13 05:57:08 where is the code ? Sep 13 05:57:13 g00s: and why that might be, and how to detect it? Sep 13 05:57:26 g00s: what code? I have a full app worth of code, and I've no idea what code is related to that Sep 13 05:57:34 oh hs Sep 13 05:59:57 gavilan2: is this hapenning on your device? Or is this a stack trace from the play store console? Sep 13 06:00:13 stack trace from the play store console? Sep 13 06:00:23 was that an answer, or a question? Sep 13 06:00:30 an answer Sep 13 06:00:41 Do you get a lot of them? Sep 13 06:00:46 If not, I probably wouldn't worry about it Sep 13 06:00:47 several Sep 13 06:01:35 there a lot of devices out there, and some have.... quirks :) Sep 13 06:01:59 JesusFreke: Still... The users will get angry at me, not at their devices :$ Sep 13 06:02:12 For something like that, where it's not obvious what the problem is, there's not a whole lot you can do, unless you have that actual device to test with. Sep 13 06:02:16 gavilan2 are you using remote views ? Sep 13 06:02:21 If you really want to dig into it and try to figure out what's hapenning Sep 13 06:02:30 g00s: What's a remote view? Sep 13 06:02:41 I would suggest looking at the code in aosp that matches the platform version of the device reporting the crash Sep 13 06:03:06 InputChannel.java just calls into some native gunk Sep 13 06:03:09 JesusFreke: Different brands, different versions Sep 13 06:03:56 gavilan2: but for a specific stack trace, you get the specific device, if I remember right. Sep 13 06:04:22 JesusFreke: I have several users with the same crash Sep 13 06:05:28 gavilan2: my advice stands. You have to figure out what the platform code is doing, and what's going wrong with it. Sep 13 06:05:45 JesusFreke: Thanks :$... Any other tips? Sep 13 06:05:57 can't think of any :) Sep 13 06:06:13 definitely a tricky one to diagnose Sep 13 06:06:29 especially if you can't reproduce locally Sep 13 06:07:05 JesusFreke: What about this one: Any idea why I might be getting this android.os.TransactionTooLargeException in android.os.BinderProxy.transact: http://pastebin.com/jKmetEm4 ? Sep 13 06:07:21 have you spoken to a user with one of these crashes, can they even reproduce it or did it just happen the once (to each of them) or just happens sometimes? Sep 13 06:07:22 nope :) Sep 13 06:07:42 although it's suspicious in that it seems to be hapenning in the same general area of code Sep 13 06:07:43 kevinb: I don't think I can locate the user from the crash Sep 13 06:08:27 yeah play doesn't give contact info, but sometimes you get emails from users experiencing the issue (mainly if it's repeatable) Sep 13 06:08:40 I would guess the two crashes are related, at least Sep 13 06:08:42 kevinb: nope Sep 13 06:08:48 not that that really helps much :) Sep 13 06:09:25 JesusFreke: Any this one: java.lang.NullPointerException in android.graphics.drawable.AnimatedRotateDrawable$AnimatedRotateState.canConstantState http://pastebin.com/2n6H6QpN ? Sep 13 06:10:25 gavilan2: that one is more than likely the easiest one of the bunch to diagnose Sep 13 06:10:46 JesusFreke: Any ideas? Sep 13 06:10:49 but you'll still have to look at the platform code, in AnimatedRotateDRawable, and see what is null on that line (and hope th elines match up) Sep 13 06:11:05 JesusFreke: getDrawable() Sep 13 06:11:19 and then work backwards from there, to figure out why it's null, and what's going to wrong to make it null (or rather, what you need to do to make sure it's not null) Sep 13 06:12:07 JesusFreke: I'm just setting the content view... in general it works Sep 13 06:15:58 gavilan2: looking at https://github.com/android/platform_frameworks_base/commits/e5cdb6c8394e321266fb8940fdd0c97b2f87b2f3/graphics/java/android/graphics/drawable/AnimatedRotateDrawable.java Sep 13 06:16:16 going back in history, it looks like that device is likely at the commit on jun 30, 2009 Sep 13 06:16:29 because line 335 matches up with the stack trace in your exception Sep 13 06:16:42 oops, not that one. the one after Sep 13 06:16:55 sep 14, 2009 Sep 13 06:17:19 on line 335, mDrawable is obviously null Sep 13 06:17:31 your task, if you choose to accept it, is to work backwards and figure out why it's null. Sep 13 06:18:07 JesusFreke: That happens when I set the content layout of the activity Sep 13 06:18:12 I execute that all the time Sep 13 06:18:20 I don't have the slightest idea why mDrawable might be null Sep 13 06:18:27 gavilan2: that's why you read the code Sep 13 06:18:45 gavilan2: work backwards, and determine what's going wrong. because something obviously is. Sep 13 06:18:46 What I meant, is that it's not deterministic Sep 13 06:20:06 gavilan2: the code is there.. :) Sep 13 06:20:06 Hey, quick question, it seems there isnt a way to pass intent extras via a launcher icon, and, During development I want to have 2 icons that launch the same activity with different behaviors... eg one looks for assests on the local device and the other retreives assests from the network, being I cant pass extras with the activity alias, what is the best way to approach this without bloating Sep 13 06:20:06 my code? Sep 13 06:21:11 Maybe creating a temporary wrapper activity that launches the main activity with extras? if I can avoid that I would like too Sep 13 06:21:20 you can use a launcher shortcut Sep 13 06:21:48 launcher shortcuts (they show in the "Widgets" section on android 4.x) are not well documented, but let you make a desktop icon with a custom intent Sep 13 06:21:57 there is an example in the ApiDemos though Sep 13 06:22:14 dblosevn: or just start the activity manually, using am start. Sep 13 06:22:38 and pass in whatever parameters you need to Sep 13 06:23:54 im trying to make it easy enough that the end client can do it during testing, for myself I really dont mind I just flip the variable and push it to the device Sep 13 06:24:01 ah, ok Sep 13 06:24:11 in production network wont be an option Sep 13 06:24:24 so I dont want anything too permanant Sep 13 06:24:32 yeah, I would say a launcher shortcut like kevinb suggests is probably the best way. Sep 13 06:24:48 or just throw in another activity :) Sep 13 06:25:04 Since it's just a temporary solution, it doesn't matter too much. Sep 13 06:25:24 oh so it seems like I do that inside the activity? I cant define it in the manifest? Sep 13 06:26:49 hello everyone, does anyone had any difficulties getting location with location manager on samsung devices? the code is pretty working on htc's and my nexus but samsung devices are not stable. many times it can't get the location. (from mobile network) Sep 13 06:27:19 I wonder if there is a known issue with it. Sep 13 06:27:28 The code review team is pretty stringent and I want the least amount of removal possible for prepping for code reviews so I think I agree with the wrapper activity, I can simply add/remove it before ever review, thanks for the input guys Sep 13 06:31:55 jeffisabelle that was an issue with the original galaxy :) Sep 13 06:33:36 hey g00s, thanks for the info, is there any workaround? article? or something? it is quite hard to tell 'device is not working, not the code' to the manager :) Sep 13 06:35:46 the original galaxy? the gps was pretty much busted Sep 13 06:36:06 but is that the device ? Sep 13 06:36:17 its pretty old, like 2010 Sep 13 06:38:48 i want to show a list which has a title bar and which below it either a spinner, or an error message or a list based upon states. So i think that at top level their is a fragment with a text view and another fragment Sep 13 06:38:58 and iside that fragment sometimes a show a spinner, sometimes a textview and sometimes a listview? Sep 13 06:39:03 is that the way of doing it? Sep 13 06:40:04 aur should i keep all 3 inside one fragment and then simply show hide them? Sep 13 06:53:05 g00s, no mate, it is happening on galaxy s3 etc. even on s4. Sep 13 06:53:32 jeffisabelle oh yeah, in that case, its gotta work … very popular devices Sep 13 06:53:43 i haven't heard anything about them in regards to gps Sep 13 06:55:16 thanks i'll look into it deeply :) Sep 13 06:57:31 umm anyone please tell me Sep 13 07:00:18 Hey guys, just curious. Can I link to an application inside an application ? Sep 13 07:00:35 The company that provides us with Application A doesn Sep 13 07:00:51 doesn't provide us with Application B,thats from another company. Both only make sense if they work together though. Sep 13 07:01:34 I'm pretty sure you can't link to an app inside app. But I thought about maybe using a HTML code to open it (thinking the way pressing a youtube link offers you to open it in the YT app and similarly with instagram) Sep 13 07:01:38 any ideas ? Sep 13 07:07:12 SrRaven-work, what would "link to an application inside of application" mean exactly? Sep 13 07:07:54 imagine you install 2 apks,one has to be able to link to the other Sep 13 07:08:26 SrRaven-work, what does "link" mean? Sep 13 07:08:34 ....seriously? Sep 13 07:08:37 you can use intents to start an activity belonging to one application from another application Sep 13 07:08:42 SrRaven-work, yes. Sep 13 07:08:50 yeah kevinb thats what I mean Sep 13 07:08:55 SrRaven-work, since "linking to" in development means alot of stuff Sep 13 07:09:03 do you want to open an acitivty in another app? Sep 13 07:09:04 a service? Sep 13 07:09:06 open data? Sep 13 07:09:09 press button A in application A,Application B starts Sep 13 07:09:11 link to a code library? Sep 13 07:09:16 ok. Sep 13 07:09:20 you can do that with an intent. Sep 13 07:09:29 just like you do with your own app. Sep 13 07:09:45 alright,on which end does that have to be coded in ? Sep 13 07:09:58 because developer of application A are douchebags and never get anything done Sep 13 07:11:45 we have a portal where we can "cook" our own build. But we simply have the option of either use a URL (we can edit that) or use their own in-app version of what we are coding Sep 13 07:12:48 you can have an activity handle a url by using an intent-filter Sep 13 07:13:39 So,this should not be a problem? Sep 13 07:14:26 i can't answer that, especially not when douchebags are involved **** BEGIN LOGGING AT Fri Sep 13 07:16:31 2013 Sep 13 07:16:37 kevinb quick q; in http://developer.android.com/design/patterns/app-structure.html "Allow cutting through hierarchies" each ListView item has a spinner-like triangle; what is that? when you click on it, the popup to the right shows up Sep 13 07:17:13 in olden days, i guess one would long press and show that popup as a context ment Sep 13 07:17:13 awesome...now do you by any chance have such a intent string handy ? I can't code for shit yet (starting CS degree in oct) Sep 13 07:17:56 g00s: i imagine it's just a button with a custom drawable and opens the same kind of context menu that long press would Sep 13 07:18:16 kevinb ok, so its not some special "mode" of listview Sep 13 07:18:23 g00s, no it isnt Sep 13 07:18:32 though it could be a spinner without a label and set to open a window rather than the in place dropdown Sep 13 07:18:39 g00s, that pattern also kinda disappeared from the OS Sep 13 07:18:46 g00s, it was replaced by the triple dot on cards Sep 13 07:18:53 SrRaven-work: if the app expects a url and you want to test with youtube, put the url of a youtube video Sep 13 07:18:54 (none of apps really use that anymore) Sep 13 07:18:54 Mavrik oooh Sep 13 07:19:01 damn i hate cards Sep 13 07:19:16 well all the apps that used that pattern were replaced with cards ;) Sep 13 07:19:23 hehe Sep 13 07:19:26 even in a listview i think the overflow icon makes sense Sep 13 07:19:29 kevinb and if it asks me to open youtube, I theoretically should be able to link to Application B ? Sep 13 07:19:41 thanks kevinb and Mavrik Sep 13 07:19:53 SrRaven-work: yes Sep 13 07:25:59 thanks kevinb Sep 13 07:34:58 oh romainguy just posted something interesting: http://www.curious-creature.org/2013/09/13/optimizing-hardware-layers/ Sep 13 07:45:59 just like dialog has a titlebar is there someway to add the same to a relative layout? Sep 13 07:49:46 textview and setters? :> Sep 13 07:53:18 Kevinb I get the popup telling me that I can open it with youtube Sep 13 07:53:23 so intenting should work Sep 13 07:53:36 right? Sep 13 07:56:43 sounds like it Sep 13 07:57:02 Hi all, I have a broadcastreceiver and it needs to be alive even when the activity is destroyed which have started the receiver, how can I do this? Currently the oncreate isn't triggered when I destroy my app Sep 13 07:58:31 Yo. Sep 13 08:00:31 can i register my android emulator with a gmail id and download applications like viber from the app store and install it in the emulator ? Sep 13 08:06:19 solofight: viber is now available for desktop if that is all you want to achieve Sep 13 08:11:16 vedu: thats one of the objective, but i was wondering if i can make my emulator behave as equal as a real phone in usability Sep 13 08:12:00 can you debug your app after app is destroyed (in eclipse)? Sep 13 08:14:26 i need to access the facebook app to update a status from another app, any thoughts Sep 13 08:14:26 ? Sep 13 08:15:11 do i need to use the facebook Api? Sep 13 08:19:21 Hi there Sep 13 08:19:33 hi Sep 13 08:20:05 after two weeks of faking zip files trying to follow Saurik's article to the 2nd master key bug, i managed to get system user access Sep 13 08:20:35 but apparently the ro.kernel.qemu > /data/local.prop doesn't work on my device (toshiba excite pro) Sep 13 08:21:15 and the other 'props' (build.prop, default.prop) are protected Sep 13 08:21:32 it's running 4.2.1 r_2 Sep 13 08:21:43 apparrently with some SELinux thing (sealime.ko) Sep 13 08:21:53 any ideas on how to leverage system user access? Sep 13 08:21:57 (to get root) Sep 13 08:22:15 esvee: start by reading the channel topic and asking in the right place? Sep 13 08:22:38 oh Sep 13 08:22:44 i'm sorry it's been a few years since i've been on irc Sep 13 08:23:18 thanks :) Sep 13 08:28:07 are there any more channels related to android security? Sep 13 08:35:46 Hi, I'm looking into beginning development for android. I was wondering if someone knows of a good tutorial that teaches you the basics of making an app? Sep 13 08:36:00 Maybe a tut for making a photo-sharing app, or something like that? Sep 13 08:38:43 developer.android.com is the best place to get yourself started Sep 13 08:42:50 If I create a view object which is expensive to initialize, is it possible to keep it around (in the application instance, for example) and reuse it when it's needed in the current activity's layout? Sep 13 08:49:12 anyone know an equivalent channel for ios? Sep 13 08:51:38 Server>List of channels and on the right buttom press download list , wait few seconds then search a channel by typing keyword in "Find" Sep 13 08:52:25 im on webchat so not really an option Sep 13 08:53:15 Hello, I have a question about Database Cursor, does the cursor consume a lot of memory when the dataset in it is large? Sep 13 08:53:24 even I didn't use it yet Sep 13 08:53:24 aleb_: what makes the view expensive to initialize? Sep 13 08:54:08 SrRaven-work, join #iphonedev Sep 13 08:54:52 thx Sep 13 08:55:06 SrRaven-work, you're welcome Sep 13 08:56:02 does the cursor load the whole data from db? Sep 13 08:56:07 alankila, I don't know, it's a view from a commercial 3rd party library showing an openGL surface Sep 13 08:57:08 MoshDev, no, that's the point of the cursor. Sep 13 08:58:05 aleb_: Hmh, I see. In theory the view can be disconnected and reattached somewhere else, afaik Sep 13 08:58:32 but I have no practical experience about how this is done, especially as views get a Context and that context may be stale Sep 13 08:59:11 aleb_, you can inflate the view separately Sep 13 08:59:17 and then attach it with addChild Sep 13 08:59:22 You can try giving the view an ApplicationContext when initializing it, and then add it manually into whatever view you are working with Sep 13 08:59:37 but measure/layout has to be done in any case since you're attaching it to another point in hearchy Sep 13 08:59:51 aleb_, I suggest writing a custom view/viewgroup if your view is very slow Sep 13 09:00:06 @Mavrik thats what i thought, but some friend says, if you call the cursor.getCount() it will load every item to count them, is that right? Sep 13 09:00:22 Mavrik: thats what i thought, but some friend says, if you call the cursor.getCount() it will load every item to count them, is that right? Sep 13 09:00:40 MoshDev: that is the case. the count needs must iterate the entire result set Sep 13 09:01:20 it doesn't necessarily load every item in sense that it only must move through the result set and discover the count, but in the background sqlite database will be doing almost as much work anyway Sep 13 09:02:12 a simpler trick is to just 'select count(*)' and hope the database can provide the information efficiently when it knows that you're actually not interested in the data. Sep 13 09:02:53 alankila: seems a good trick Sep 13 09:02:58 Don't know how good sqlite is though. It's not a "real" database. Sep 13 09:03:05 MoshDev, hmm, check the source Sep 13 09:03:25 but sqlite probably has to at least scan the results to count them Sep 13 09:03:31 this happened last night, i hadn't a time to check it Sep 13 09:03:32 are there any more channels related to android rooting? Sep 13 09:03:40 It might implement count just by generating the result set and then moving the cursor to the last row Sep 13 09:03:40 #android-root? Sep 13 09:03:41 specifically root exploits Sep 13 09:03:55 i asked my question there Sep 13 09:04:21 i just want to cover my bases :) Sep 13 09:04:44 alankila: & Mavrik thanks :) Sep 13 09:05:12 i reached a plateau in my quest to root my toshiba excite pro Sep 13 09:05:40 The method show(FragmentManager, String) in the type DialogFragment is not applicable for the arguments (FragmentManager, String Sep 13 09:05:44 Not entirely sure what I am doing wrong here.. :/ Sep 13 09:06:06 flexd: probably a support fragmentmanager vs. framework fragmentmanager Sep 13 09:06:16 check your imports and pay attention to package Sep 13 09:07:04 hey guys ok now i have a layout issue :/ Sep 13 09:07:07 also if this is the case & you have the framework fragmentmanager consider dropping the support package... Sep 13 09:07:18 i have a youtubethumbnail view that is visibility:gone Sep 13 09:07:25 alankila: I had accidentally imported the v4.fragmentmanager Sep 13 09:07:27 instead of normal Sep 13 09:07:41 then when there is a youtube link in my chat message i make it visible but then it doesn't grow the view Sep 13 09:07:42 :/ Sep 13 09:09:39 anyone know the dimentions of the youtubethumbnail views? Sep 13 09:10:33 I made a ViewPager, that moves a background in it, like the android wallpaper, what is the best name for it, I want to make it OpenSource Project Sep 13 09:12:28 any suggestions Sep 13 09:14:17 Hi, I'm developing a SIP app. When there is an incoming call, i start a new activity. When the call is closed (ended), I close the activity, but I would like to destroy the application because the user may not open the last activity, how can i do this on a save way? Sep 13 09:14:56 MoshDev, BackgroundViewPager Sep 13 09:15:09 How about FlowViewPager Sep 13 09:15:12 :D Sep 13 09:15:23 i don't know the relation Sep 13 09:15:39 no :p this can be a workflow viewpager (step 1, step 2) :p Sep 13 09:15:59 hhhh Sep 13 09:19:29 How do you attach sources or java doc to a jar in Android Studio? Specifically I want the docs for Support v4 Sep 13 09:23:52 is it typical in android dev to have no idea where the back button event is going to get registered? Sep 13 09:24:48 Should I use android studio [ for production ] ? Sep 13 09:29:02 Hi All Sep 13 09:29:59 I have a Date() object that I would like to format the output to something like "August 27th, 2013" Sep 13 09:30:01 otiose, that's a strange question. Sep 13 09:30:32 yeah, but i'm working with these 2 activities that, afaik, are virtually the same setup Sep 13 09:30:53 but the callback gets called in different places for each of them, and so it behaves differently Sep 13 09:31:00 I have a GregorianCalendar object setup and I've read that you can use DateUtils to format it, which flags will get me the "27th" part? Sep 13 09:31:46 Uh, how do I call the newInstance() of a fragment I want to create? Sep 13 09:31:50 I want to set a title on a popup fragment Sep 13 09:31:56 otiose, afaik there's no prebuilt method to do that :/ Sep 13 09:32:06 or get the extras passed along hm Sep 13 09:32:20 I've uploaded it Sep 13 09:32:22 https://github.com/nane0962/BackgroundViewPager Sep 13 09:32:23 only thing i can think of is that the web view is stealing them and passing it down different paths or something? Sep 13 09:32:27 published it*** Sep 13 09:32:28 i dont know whats going on Sep 13 09:34:33 spobat: yes Sep 13 09:36:23 I need to develop something like the call application. When a call is active and you go to your homescreen, you can access the call from the notifications, how can you do this? Just add a notification and close it when call is ended? Sep 13 09:38:39 ugh Sep 13 09:38:39 okay Sep 13 09:38:45 didn't expect that ;) Sep 13 09:39:19 Uh I am trying to create a dialogfragment that I can change the title in, https://gist.github.com/flexd/b10a91b31db594b081a3 Sep 13 09:39:37 Is that going to work? I"m kind of unsure as to how I am going to pass the title in from the activity Sep 13 09:49:14 wow I'm totally lost here Sep 13 09:50:22 I need to change an ImageView's tint and two TextView's textColors in a view currently implemented by a SimpleCursorAdapter Sep 13 09:50:45 Does someone know if android or its version of the kernel have drivers or modules to communicate through serial ports? Sep 13 09:51:26 the value I'm deciding from is not one of the ones being mapped to a field Sep 13 09:52:23 I'm not sure if I can do this from a custom ViewBinder or if I need to customize SimpleCursorAdapter or if I need to customize Cursor Adapter Sep 13 09:52:27 any advice? Sep 13 09:52:49 I know of one that wants to plug a usb to rs-232 into the host port of a tablet to communicate with epos printer, is that possible to develop without having to code or install a linux module to the android kernel to do that? Sep 13 09:54:17 appel1, Hi, have you experience with adding a notifications to the notifications bar? Sep 13 09:54:53 hey n stuff Sep 13 09:55:55 FrancescoV: nothing advanced, just the basics with an icon and text :) Sep 13 09:56:06 so if in theory i have a square view, and i want to place 4 equal sized squares inside of it, how can this be done? can i do that with a grid layout? it doesnt seem to fill out empty space Sep 13 09:57:14 appel1, maybe you know how to go back to an active activity? (IncomingCallActivity)? It works now but it's creating the Fragment inside again (not needed) Sep 13 10:00:00 FrancescoV: not sure, haven't had any need for that Sep 13 10:01:31 FrancescoV: perhaps this can point you in the right direction http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP Sep 13 10:02:58 appel1, found it too, settings this on the intent or in the manifest? Or shoud this be the same? Sep 13 10:03:37 FrancescoV: as it says in the docs it is for the intent Sep 13 10:18:11 connectivitymanager tells me I am not connected even though I am through ppp but not wifi Sep 13 10:18:20 how to use the ppp0 interface? Sep 13 10:23:58 appel1, it works :) handling the onNewIntent and checking on a value inside the bundle, Check for new incoming call vs open current call Sep 13 10:24:52 how to debug that why my fragments are not being added? Sep 13 10:25:22 Is there any way I can stop the automatic rotation stuff? Sep 13 10:25:28 I do not want people to be able to look at this app in landscape Sep 13 10:27:09 flexd, heh, you're one of those. yes you can. please stop doing that. Sep 13 10:27:55 timemage, if there is a good reason, why not doing that? Sep 13 10:28:16 FrancescoV, one in particular is the use of devices which are docked. Sep 13 10:28:19 timemage: Yeah I know, I'd normally allow it Sep 13 10:28:31 flexd: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); Sep 13 10:28:32 But I have a deadline at 16:00 today to deliver this (school thing) Sep 13 10:28:41 :p Sep 13 10:28:43 and it says 'handle this if it seems logical' Sep 13 10:28:50 and I am not doing a landscape layout as well :-P Sep 13 10:31:42 Hm Sep 13 10:31:45 This is so hacky :-o Sep 13 10:32:09 Put the pick down. Sep 13 10:53:01 I think I broke java. Sep 13 10:53:03 -_- Sep 13 10:53:10 Now it can't find java.util Sep 13 10:54:37 restarted eclipse and it works heh Sep 13 10:54:55 so it appears as if it goes by handing down dispatchKeyEvent()s from the top down to the bottom, of things that respond to it Sep 13 10:55:07 and it can stop anywhere someone decides to stop it, otherwise it will keep going down Sep 13 10:55:27 and if nothing stops it, then it will call the back button methods Sep 13 10:55:39 i might be wrong, but it might be something like that Sep 13 11:05:19 FrancescoV: cool Sep 13 11:05:46 dumb question Sep 13 11:05:58 how to exit adb sideload in recovery in a tablet Sep 13 11:06:20 and linux+windows can't recognize the device in recovery mode Sep 13 11:06:47 nevermind figured it out, just pressed the power button for a few sec. :p Sep 13 11:07:53 dumb question #2, how to make either OS talk to the device? Sep 13 11:42:03 i changed the referenced projects in project.properties however there are files project.properties.{debug,release} that still contain old references... how to change them properly? Sep 13 12:03:36 so Sep 13 12:03:40 in actionbar sherlock Sep 13 12:03:41 MultiChoiceModeListener Sep 13 12:03:45 is that implemented? Sep 13 12:08:55 I have a jar in an android library project.. the only thing else in this project that is interesting is one png file in res/, I'd like to get rid of that library-project and just include the jar in other projects.. isnt it possible to include the image directly into the jar? Sep 13 12:09:16 I have a ArrayList, can I easily display that as "ABCDEFG" instead of [A,B,C,D,E,F,G] ? Sep 13 12:09:56 afaik javas arrays have no join() method... but you could ask in #java Sep 13 12:15:44 What the hell, https://gist.github.com/flexd/d2744d2bef2e72e23d5e Sep 13 12:15:53 Line 87 is wordView = (TextView) findViewById(R.id.txtGuessedWord); Sep 13 12:15:58 and txtGuessedWord is a TextField Sep 13 12:16:09 flexd, it's easy: https://gist.github.com/sonOfRa/6549910 Sep 13 12:16:24 TextUtils.join("", arrayhere); Sep 13 12:16:33 too I think, I figurd it out (or it is what is breaking my app) Sep 13 12:17:10 findViewById(R.id.txtGuessedWord) is returning a TableLayout Sep 13 12:17:17 look at your IDs and your layout Sep 13 12:17:33 Yeah but it isnt.. :/ Sep 13 12:17:48 My only tablelayout is called Sep 13 12:17:49 buttonGrid Sep 13 12:18:26 I tried removing my TextUtils thing now, if that somehow had an affect Sep 13 12:18:29 effect* Sep 13 12:18:40 it did.. o-0 Sep 13 12:18:42 odd Sep 13 12:20:00 sonOfRa: also that thing you pasted returns the wrong thing :-) Sep 13 12:20:12 it does. Sep 13 12:20:24 Totally did that on purpose, to check if you'd notice!!!! Sep 13 12:20:42 :D Sep 13 12:22:06 Hah, turns out this hangman thing is due next week Sep 13 12:22:11 buff.toString would be correct. But one important thing: Note the use of Stringbuffer, instead of concatenating strings. Since strings are immutable, this: newStr = oldstr + someStr; actually creates new instances, which is a considerable slowdown Sep 13 12:22:29 and not in 1.5 hours like I thought Sep 13 12:22:30 phew. Sep 13 12:22:37 Never concatenate Strings in loops without using StringBuilder/StringBuffer Sep 13 12:23:24 man, the new n7 is awesome. i hope it's a sign of things to come Sep 13 12:23:34 n7? Sep 13 12:23:42 nexus 7 Sep 13 12:24:13 sonOfRa: if you decompile your .class file it normally generates code that uses a StringBuffer/Builder .. the deal is if you do it manually you can optimize its use better Sep 13 12:24:41 Hm, does anyone want to try my shitty hangman game that apparently isn't due for a week? I just need to put in some english words :-p Sep 13 12:51:33 good morning all Sep 13 12:52:42 what does this mean: android.os.Build.TYPE I know its the type of build but I dont think i fully understand the different types Sep 13 12:56:59 Hi guys Sep 13 12:57:03 I have a question Sep 13 12:57:42 zquad: I've never heard of that, but it looks like it's a way of separating the building of testing/development/production builds Sep 13 12:58:50 hmmm that being so, i wonder why it would be included? Sep 13 12:59:59 i'm trying to import an android project from source, however eclipse does not recognizes it as android-project.. which files are needed for eclipse to recognize it as android project? Sep 13 13:00:19 so I have this simple data base and a website which allows you to modify it. I would like to have an android app allowing people to sync up with the data in the database and have the ability to query it offline. then when, they have access to the internet again I'd like to be able to push whatever changes made on their app version to the main database Sep 13 13:00:26 note that I explicitly choose import _android_ project from source Sep 13 13:00:29 I don't know whats the best way to approach this Sep 13 13:00:50 1 how should I mirror the dtaabases from the existing dtaa base to the android app Sep 13 13:00:53 zquad: its the type of OS build.. used when manufacturers build test versions with the test-keys on test devices not ready for production Sep 13 13:01:32 ohcibi: do Eclipse > New Project > Android > From existing source Sep 13 13:01:35 and how should I update back to the database from the app, and what should I be concerned about regarding concurrancy and whatnot Sep 13 13:01:47 Napalm: note that I explicitly choose import _android_ project from source Sep 13 13:01:49 Napalm so once the product is in the consumer's hand, it pretty much doesn't mean much, aight Sep 13 13:02:06 Napalm: and still it wont recognize it as android project.. I did it with another project before and it works Sep 13 13:02:32 ohcibi: you cant do that.. you need to create a "new ECLIPSE project" Sep 13 13:02:47 Napalm: I did it the way you said Sep 13 13:02:55 Napalm: and still it wont recognize it as an android project Sep 13 13:04:05 ohcibi: does it have a AndroidManifest.xml file? Sep 13 13:04:11 Napalm: yes Sep 13 13:04:22 then it will be recongnised Sep 13 13:04:26 try restart eclipse i guess Sep 13 13:04:39 Napalm: it wont Sep 13 13:04:47 Napalm: which is the reason why I have asked this question Sep 13 13:05:17 obviously AndroidManifest.xml isnt sufficient for eclipse Sep 13 13:05:28 its always been fine for me Sep 13 13:05:38 nice to know Sep 13 13:05:49 when you create a new project using the "android project from existing code" it looks for that Sep 13 13:07:24 Napalm: obviously its not sufficient Sep 13 13:07:34 wonder if it wasnt formatted correctly Sep 13 13:07:53 dont know... I actually just copied it from one workspace to another to try out how to import it as another dev Sep 13 13:08:26 by copy I mean git archive... It seems to work if I really copy all files, so I wonder whats missing Sep 13 13:09:12 the point is the other project is also only git archived.. its even missing a res/folder when freshly checked out and still eclipse is able to see an android project there.. but not the nxt project Sep 13 13:09:13 maybe something isn't staged Sep 13 13:09:20 libc: yeah, but what? Sep 13 13:09:20 something important Sep 13 13:09:24 How can you execute something when phone starts up? broadcastreceiver possible? Sep 13 13:09:56 ohcibi: idk, maybe AndroidManifest.xml? Sep 13 13:09:59 why do you need it to, fra? Sep 13 13:10:09 me? Sep 13 13:10:10 libc: as I said: its already there Sep 13 13:10:15 yeah Sep 13 13:10:19 libc: its even beeing opened with the xml editor Sep 13 13:10:54 so do you git archive into one directory, a direct coppy into another and compare them Sep 13 13:10:58 sip app. When phone starts up, automatically register with server for receiving sip calls, you need it too? or know the solution? Sep 13 13:10:59 *your Sep 13 13:11:10 maybe is a service the solution? Sep 13 13:11:16 FrancescoV: http://bit.ly/161htbI Sep 13 13:11:32 oh cool. just wondered about there is useless apps that start at startup and I hate em Sep 13 13:11:35 broadcast receiver the solution Sep 13 13:11:39 libc: obviously the comparison will show loads of generated files in bin/ gen/ and doc/ that are not in the archived version, hard to tell which one is actually necessary there Sep 13 13:12:00 nseidm1, Broadcastreceiver, why not a service? Sep 13 13:12:06 delete those folders aftwr backing em up Sep 13 13:12:15 that way much fewer differences Sep 13 13:12:35 FrancescoV: http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED Sep 13 13:12:59 FrancescoV: note, it will only work if your app is installed on internal storage and not external Sep 13 13:13:12 If your application is installed on the external storage, it can never receive this broadcast. Sep 13 13:13:20 hasn't been external storage like that since 2.3 :-P Sep 13 13:13:24 ohcibi: yes, but what about other directories? Sep 13 13:13:47 ohcibi: also it sounds like you haven't actually tried this yet Sep 13 13:13:57 Napalm, maybe this? http://stackoverflow.com/questions/6391902/how-to-start-an-application-on-startup Sep 13 13:14:20 but not starting activity but just registration with server Sep 13 13:14:31 pretty much Sep 13 13:15:38 my responses today will mostly refer to lmgtfy Sep 13 13:16:47 ugh Sep 13 13:16:53 hgu Sep 13 13:17:03 libc: true because I copied the .gitignore from the non-imported project into the imported project and there it works.. but I compared it now and the missing files there are .classpath, res/values/keys.xml, .settings, local.properties, .git and .project files differ... none of these files are existent in the project that gets imported properly Sep 13 13:17:40 with a fragment I'm putting an enum array into the arguments, but when it gets kicked out of memory and comes back I'm getting a class cast exception :/ Sep 13 13:17:47 when trying to get that argument Sep 13 13:18:38 since it's in the args as Object[] now Sep 13 13:19:44 libc: funny story... Sep 13 13:20:47 libc: I accidently imported the first project without copying the source into the workspace... eclipse then generated some files... I reimported the project this time with actually copying the files into my workspace... proper android project...... the same trick worked for the other project.. Sep 13 13:20:52 eclipse just sucks Sep 13 13:21:10 yes it does Sep 13 13:21:34 so yeah.. there are files missing but eclipse only cares when I copy the files into the workspace Sep 13 13:28:40 it needs an entry in the node in .project Sep 13 13:28:49 not the androidmanifest.xml nor any other file Sep 13 13:29:26 if you import it as an android project without copying the source its just adding the .project file to the existing source, but when copying it copies the stuff other before asking it again if its android, but then there is no .project file and its lost Sep 13 13:29:28 stupid eclipse Sep 13 13:36:02 my Android Studio randomly doesn't build classes when I hit run app, I'll get an error saying that one of my classes didn't exist. It works if I rebuild and run again but how can I stop this happening? Sep 13 13:40:29 XXCoder1, if you're interested in trigging the bootup, it works for me Sep 13 13:41:06 I need to create an XML drawable that contains an image to be used as "mask" or, if you prefer, assume different colors with a selector and theme. same shape: when selected always white, when not selected with a solid color varying with theme Sep 13 13:41:19 do you know if there's a way to define such a structure with XML? Sep 13 13:41:45 I know I can use PorterDuff by code, but I need to do it on the XML Sep 13 13:44:42 how do i get a list of ints from SparseBooleanArray? Sep 13 13:45:46 lemonxah: I assume you want to keys because the values are all booleans Sep 13 13:46:04 iterate the array by index, and use keyAt(index); Sep 13 13:48:10 I use an Activity as a Dialog with Theme: Theme.Sherlock.Light.Dialog . If I make a custom Theme with the previous theme as parent and add noTitle - then I got the title to disappear but height and weight change to wrap_content or something like that - the Dialog window shrinks. Sep 13 13:49:00 How should I change it back to the previous height and width ? I Sep 13 13:52:16 nseidm1, that is an ugly thing :/ but thnx that is what i started doing Sep 13 13:56:31 Is it possible to switch the theme (xml) of an activity while it is running? Sep 13 13:58:10 yes, set the theme and call recreate() Sep 13 14:01:08 just wondering whats the standard way to respond to async tasks in android? in BB10 and iOS there are signals/slots and delegates or callbacks, respectively... i see some of the async tasks just find the view and add results, but if we want to save the result of the async task to a class... not really sure? i see in some cases someone made a reference to the context in the constructor... is this method acceptable? Sep 13 14:04:12 JeremieDeNoob: sure, you can keep a normal or weakreference to a context in the AsyncTask constructor. But... you're heading in the right direction of becoming a good Android developer once you realize how dangerous AsyncTask can be. Sep 13 14:04:34 And eventually start rolling your own ThreadPoolExecutors Sep 13 14:06:22 can I reference an attribute from a selector in the XML? like: Sep 13 14:06:37 it give an error... Sep 13 14:06:46 Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #4: tag requires a 'drawable' attribute or child tag defining a drawable Sep 13 14:07:04 nseidm1: do you have any good documentations on accomplishing this? Sep 13 14:07:18 also how do i specify a weak ref in android? Sep 13 14:07:31 accomplishing what you want to do, or how best to multi thread? Sep 13 14:07:48 how to best multithread Sep 13 14:08:07 http://developer.android.com/reference/java/util/concurrent/Executors.html Sep 13 14:08:11 and also if you care to elaborate why keeping a weekreference is a bad practice Sep 13 14:08:15 id love to hear it Sep 13 14:08:23 JeremieDeNoob, didn't followed... but you specify a weak reference in Android exactly how you do it in Java, by using WeakReference class Sep 13 14:08:26 http://square.github.io/otto/ Sep 13 14:08:46 (in this case its for processing urls) Sep 13 14:08:55 mastro: thanks... im also new to java... Sep 13 14:09:31 nseidm1: thanks for the link Sep 13 14:09:50 Use ExecutorServices and an EventBus pattern Sep 13 14:10:23 you can always post to the main thread using a Handler initialized with the main looper Sep 13 14:13:44 one of the teams we work with pushed a source file that is 82k lines long Sep 13 14:13:55 why would you do that Sep 13 14:14:00 that's a sick person Sep 13 14:14:26 I am seeing a lot of debate about this on google/stackoverflow... but most of the info is sketch... can you explain a bit more what the pitfalls are of using the weak reference (since this is what i am use to on ios, it would feel more natural, but being new at android i dont want to start by embarquing in bad practices) Sep 13 14:14:40 forget the weakreference Sep 13 14:14:44 just forget I said it Sep 13 14:14:58 come back to it in a couple of years Sep 13 14:15:02 it's not necessary Sep 13 14:15:24 ok well either way, whats the cons of using a context reference Sep 13 14:15:34 it says that it's a generated file though... so at least someone didn't write 82k lines of code in a single file and think it was ok Sep 13 14:15:36 vs what you are suggesting with executors Sep 13 14:15:36 don't keep a static reference to context Sep 13 14:15:43 though that seems like a small victory Sep 13 14:17:43 Migrate Project to Gradle? Sep 13 14:17:43 This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system. Sep 13 14:17:48 How can I tell Android Studio that my project is a gradle built project. It keeps telling me that Sep 13 14:18:25 JeremieDeNoob, do you know what a memory leak is? Sep 13 14:18:56 mastroWork: I do Sep 13 14:18:57 mastroWork: yes Sep 13 14:19:58 mastroWork: which is why in the delegate case or context in ios, we use weakref Sep 13 14:20:30 JeremieDeNoob, ok, then many java programmer think that they Java can't create memory leak... that's actually an untrue statement. There is no destructor because the garbage collector (GC) check the references tree to free out object no more referenced by anyone Sep 13 14:20:56 JeremieDeNoob, if you keep a reference to an object that object will not be garbage collected Sep 13 14:20:58 hence be careful with static references Sep 13 14:21:02 Is there a way to load XML Layouts from a 3rd party (not compiled in the app but fetched at runtime)? Sep 13 14:22:05 JeremieDeNoob, in Android the Context is something that is usually destroyed and recreated at will by the framework (rotate device, low memory, ...) if you have an async task with a reference to that context you prevent the memory to be freed Sep 13 14:22:50 JeremieDeNoob, if you want to know everything about an Android Context read this: http://www.doubleencore.com/2013/06/context/ Sep 13 14:22:59 so if i have an object called context that references the object waiting for a respon, after i do the callback, i just set my context object to nil no? Sep 13 14:23:05 ok thanks for the link... Sep 13 14:23:13 Bear10: no it isn't Sep 13 14:23:28 Bear10: rather... no there isn't Sep 13 14:23:46 Bear10: http://developer.android.com/reference/android/view/LayoutInflater.html last paragraph of the overview Sep 13 14:24:19 mmathis, ah thanks Sep 13 14:24:26 didn't know they had that info Sep 13 14:24:27 JeremieDeNoob, it's null on java. And the matter is not just that... sometimes you don't want your job to keep running when you don't need anymore, sometimes you want to use the result of that job in your app after the context has been recreated Sep 13 14:24:48 JeremieDeNoob, Android has Loaders for that reason Sep 13 14:25:13 JeremieDeNoob, it really depends on what you have to do.. Sep 13 14:25:43 JeremieDeNoob, in your case a SyncAdapter may be more appropriate, but again I don't know what you are trying to achieve so these are just random suggestions Sep 13 14:26:49 litterally my goal is to do http post and get calls and get a response to a class (not display directly to ui, because i want to save the objects locally first) Sep 13 14:27:29 JeremieDeNoob, ok, you want to implement that using SyncAdapter, then use CursorLoaders to get the data from the local DB on the UI Sep 13 14:27:50 JeremieDeNoob, http://developer.android.com/training/sync-adapters/index.html Sep 13 14:28:09 JeremieDeNoob, http://developer.android.com/guide/components/loaders.html Sep 13 14:28:26 JeremieDeNoob, http://developer.android.com/training/basics/data-storage/index.html Sep 13 14:29:17 JeremieDeNoob, if your data doesn't need to be shared between different application (you don't need to export your content provider) I advice you to NOT use the content provider at all and use the database directly instead... which means that you'll have to write your own Loaders Sep 13 14:29:40 i thought sync adapters was more for larger files like uploading an image Sep 13 14:30:40 JeremieDeNoob, sync adapters are for syncing data from a remote service, both in read and write, to do it in a battery friendly fashion and also automatically even if the user is not using the app. He will find the data up to date when entering your app Sep 13 14:31:14 JeremieDeNoob, if your http are images it may be better to load them lazily instead, and a library may be handy (example the Volley library) Sep 13 14:31:24 every call is spawned from a user action in our apps scenario Sep 13 14:31:48 JeremieDeNoob, that's not a very good usage of the battery Sep 13 14:31:59 how do u mean Sep 13 14:32:10 JeremieDeNoob, you can do it anyway... I'd use a Loader or a Service Sep 13 14:33:06 for http fetching Loaders are not the best solution, I'd prefer a Service Sep 13 14:35:18 JeremieDeNoob, I mean what's explained very well in this video https://www.youtube.com/watch?v=cSIB2pDvH3E Sep 13 14:37:31 I wish play store analytics would catch up to chromewebstore analytics Sep 13 14:37:43 JeremieDeNoob, you'll be surprised to know that apply to iphones too :) the way current apps use the network on iOS is the major reason why the battery of the iPhones sucks so bad Sep 13 14:38:09 yes, i believe it Sep 13 14:40:03 the thing is with our app is litterally like log in with user and pass, then let user select option, which then sets on the server and the server responds with a result specific to that users login and session, then when the user selects one of these next options we continue to refine the results Sep 13 14:40:21 thats a good video though Sep 13 14:40:37 i was not aware of the states/low power power up, im not that surprised though Sep 13 14:40:38 pfn: I really dig the lock screen controller, btw Sep 13 14:40:53 dragorn, thanks Sep 13 14:41:40 very interesting video, thanks mastro Sep 13 14:41:42 pfn: I was trying ot do something similar w/ securesettings and tasker, but didn't like the results. I also really like that yours doesn't need network permissions Sep 13 14:41:42 there's a bug in completely removing the keyguard, but otherwise it works great (if you just let it toggle from pin -> no-pin) Sep 13 14:41:54 pfn: yeah all I wanted was pin/no pin Sep 13 14:42:27 JeremieDeNoob, there are lot of interesting information in that channel, probably more then what you and me can afford to spend watching :) Sep 13 14:42:57 pfn: We tried to put it on my wifes phone but the lotus notes device admin stomps on it and won't let you disable the pin (which your stuff correctly detected, so, kudos) Sep 13 14:42:58 dragorn, my original implementation, years ago, was to change Settings, then google fixed it in 2.2 Sep 13 14:43:18 dragorn, yeah, device admin blocks it :( Sep 13 14:44:26 dragorn, on exchange, at least, I usually hack my email apk so that the device admin check is bypassed Sep 13 14:44:46 pfn: Notes is pretty aggressive, I'm not so surprised Sep 13 14:45:11 should be able to do similar with notes, if they don't do any actual signature checks on the apk itself Sep 13 14:45:14 pfn: Their android support is quasi-official so she'd rather not risk setting off alarms Sep 13 14:45:16 just re-sign the apk after hacking its dex Sep 13 14:45:21 indeed Sep 13 14:45:30 JeremieDeNoob, this what I suggest you: if you have data to show to the user that stay in a local database you should update that database with a SyncAdapter enqueuing every request made by the user in the database itself and use the sync adapter to push them on your server Sep 13 14:45:30 once it becomes official, set off all the alarms you want ;-) Sep 13 14:45:56 JeremieDeNoob, if you do that it will be battery efficient and nice with other apps, it will take automatically into account the network comes and go etc... Sep 13 14:45:58 IBM actually has a bit of a clue - they have very aggressive laptop monitoring systems for corp images, I wouldn't be surprised if they actually do some things right on android to try to prevent tampering Sep 13 14:46:39 heh, from what I knew of them, I wouldn't think so ;-) Sep 13 14:46:53 but it's been almost 10 years, I guess Sep 13 14:47:16 pfn: They're beginning to clue in. Mandatory FDE on laptops, it starts emailing your manager and auto-escalating if you violate patch policy, etc Sep 13 14:47:38 pfn: tl;dr she doesn't want to mess w/ her phone too much and risk tripping alarms on it. I can respect that. Sep 13 14:47:49 indeed Sep 13 14:49:14 pfn: whats more infuriating is it forces junos pulse to be turned on and that thing is a resource pig Sep 13 14:49:54 oh, juniper cra Sep 13 14:49:56 p Sep 13 14:50:11 What the best way to save some info when a user navigates to another activity and then restore it when they come back? Sep 13 14:50:35 dragorn, yeah, I used to use ssh tunnels from inside ibm to allow remote access for myself back in, heh Sep 13 14:51:06 pfn: yeah that's a bit more clue-y now. what part of ibm were you at Sep 13 14:51:25 dragorn, in ECM in santa teresa Sep 13 14:52:01 ... I think I am warped a bit. I see ECM and instantly tried to think what Android has to do with Electronic Warfare Sep 13 14:52:01 I've tried onSaveInstanceState, but the activity isn't being destroyed so onRestoreInstanceState isn't being called Sep 13 14:52:14 Ankhwatcher: you get a bundle you can use; see onSaveInst.... ah. Sep 13 14:52:16 Ankhwatcher, then what's the problem? Sep 13 14:52:32 if onSave isn't called, and it wasn't destroyed, then your state is still there when it resumes Sep 13 14:52:39 i.e. nothing changed Sep 13 14:52:43 except point in lifecycle Sep 13 14:53:38 pfn: I have a viewpager which I want to default to the second page normally, but if I navigate away I want it to show the same page Sep 13 14:53:42 when I come back Sep 13 14:54:14 the 2nd page or the one you navigated to? Sep 13 14:54:31 Ankhwatcher, then don't set the page in onResume Sep 13 14:54:40 and let it default Sep 13 14:54:44 only set the page in onCreate Sep 13 14:54:50 also, don't set the page in onStart Sep 13 14:57:15 can someone explain a scenario where onResume and onStart would do different things? From what I understand of the lifecycle most of the time you're fine just doing everything in onResume aside from cases where the app gets killed and onCreate gets called again Sep 13 14:57:26 can anyone help me with fragment communication... I understand setting up an interface for fragment to activity... but I want activity to fragment so I can pass my broadcast receiver results to my fragment Sep 13 14:57:46 ps... Im a learner Sep 13 14:58:46 unleashedcode: make a function in your fragment, call it from the activity Sep 13 14:59:31 unleashedcode: activity builds, finds fragment via programatic adding or findviewbyid or whatever, cast it to SomeFragmentCustomType, call your function on that instance, you're done Sep 13 15:00:04 cheers dragorn.... will try implemeting that now ;) Sep 13 15:00:34 unleashedcode: should be pretty simple; good luck Sep 13 15:01:07 thanks Sep 13 15:17:27 how can i change the font of the app name in the actionbarsherlock Sep 13 15:17:43 try to do it programmaticly Sep 13 15:17:50 can't find a way Sep 13 15:17:59 saved font in assets Sep 13 15:19:25 Dominee, I think the only way of changing font to a TextView is programmatically, meaning that if you can't access the TextView of the app name from code you can't apply a custom font to it Sep 13 15:19:41 is the app name in the actionbar :) Sep 13 15:19:47 it Sep 13 15:20:38 try to do it with the setSpan(new typefaceSpan Sep 13 15:20:45 Dominee, I know, the title... which you don't have access to, by design Sep 13 15:21:05 Dominee, I think your best bet is to set a custom view in the action bar, see http://stackoverflow.com/questions/8607707/how-to-set-a-custom-font-in-the-actionbar-title Sep 13 15:21:15 getSupportActionbar().setTitle() i can modify it Sep 13 15:21:50 Dominee, you can't get a reference to the text view referencing that title Sep 13 15:22:11 ok hmmm Sep 13 15:22:59 try to find a other way than :D Sep 13 15:23:41 Maybe you can use reflection to get the title textview... but I wouldn't advice it Sep 13 15:25:40 why would you change the font? Sep 13 15:48:24 if you set a menu item as showAsAction="never" does the three dot overflow button only show up if your device does not have a dedicated menu button? Sep 13 15:49:14 correct Sep 13 15:50:15 can you force it to show up? Sep 13 15:50:26 No Sep 13 15:50:27 no Sep 13 15:50:45 mmk Sep 13 15:56:06 if a fragment adds an option to the optionsmenu can it handle it itself? I have onOptionsItemSelected overridden in the fragment and it should be handling the item and returning true, but it just goes on to the activity's onOptionsItemSelected Sep 13 15:56:28 setHasOptionMenu(true) Sep 13 15:56:34 Just don't handle it in the activity then Sep 13 15:56:46 and yes, don't return true for that item in activity Sep 13 15:57:05 It doesn't keep track of who added which item Sep 13 15:57:16 It'll keep calling onOptionsItemSelected until someone handles it Sep 13 15:57:19 oh, dammit I forgot the return false in the default case in the activity Sep 13 15:57:27 Or everyone returns falls.. Sep 13 16:04:16 pfn: good advice on that viewpager, I figured out a way Sep 13 16:05:13 turned off autobackup in g+ on my phone, man, battery life is like how it used to be again Sep 13 16:05:38 Any idea why I might be getting this android.os.TransactionTooLargeException in android.os.BinderProxy.transact: http://pastebin.com/Jb7hHDEW ? Sep 13 16:09:21 Any idea why I might be getting this java.lang.RuntimeException in android.view.InputChannel.nativeReadFromParcel --> http://pastebin.com/Hwdqq8vJ (Google Play Stack Trace) ? Sep 13 16:09:46 gavilan2: yes, too much data in the intent extras or bundle Sep 13 16:12:37 Any idea why I might be getting this java.lang.NullPointerException in android.graphics.drawable.AnimatedRotateDrawable$AnimatedRotateState.canConstantState http://pastebin.com/HaZ2jG37 (Google Play Stack Trace) ? Sep 13 16:14:43 is this your class: AnimatedRotateDrawable.java:335 Sep 13 16:15:34 is that a private class you copied into your project? Sep 13 16:16:18 wat, in order to run iosched 2013 i have to have, and sign in with google+ ? assholes Sep 13 16:16:46 nseidm1: Nope it's part of the progress bar in android Sep 13 16:17:58 if it happens only on a specific device can be a framework issue. Multiple devices another story. Sep 13 16:18:31 nseidm1: multiple devices, but it only happens from time to time Sep 13 16:19:04 gavilan2: because mDrawable is null ;) Sep 13 16:19:06 possibly a res issue depending on the density bucket you have it in Sep 13 16:21:02 JesusFreke: Wow JesusFreke! You are smart dude! Sep 13 16:21:22 nseidm1: res issue? Sep 13 16:22:05 gavilan2: like I said last night, the code is available :). You just have to read it and figure out what could be going wrong. Sep 13 16:22:06 what res file is getting inflated, gotta figure that one out. Binary XML file line #241 Sep 13 16:22:17 BTW: Is it a good idea to provide images in all the different drawables folders? or should I just try to use a hdpi one or something, and get the others generated automagically? Sep 13 16:22:29 I focus on xhdpi Sep 13 16:22:32 and tweak from there Sep 13 16:22:37 rarely ever do I have mdpi Sep 13 16:22:46 all xhdpi, some hdpi and xxhdpi Sep 13 16:22:48 nseidm1: I read somewhere that the devices might use more resources if you do that Sep 13 16:22:54 lots of sw600dp and sw720dp Sep 13 16:22:59 because it has to load the xhdpi and resize it or something like that Sep 13 16:23:04 and for kindle I use sw533dp Sep 13 16:23:17 533dp? Sep 13 16:23:26 the min width dp of the kindle Sep 13 16:23:43 I have a relative layout, with an image in the back, and a checkbox on top of it in the top right corner. whenever I click the image, the checkbox goes to it's pressed state until I take my finger off. Any idea why? Sep 13 16:26:00 g00s: are you running a Devfest session? Sep 13 16:26:41 Ankhwatcher no, i just wanted to compile and run iosched to see it, since its supposed to use a lot of best practices Sep 13 16:26:57 but it violates a #1 UX principle : Sep 13 16:27:07 /don't make people sign up to try your shit/ Sep 13 16:27:35 why need a google+ profile to check tracks and schedules? i can do that on the web without a google+ profile Sep 13 16:27:48 when it comes time to actually register for a class, i can see it asking me to sign in with something Sep 13 16:28:30 unfortunately, this is one of the reasons why i'm keeping android at arms-distance - i dont ever plan on having google+ - and i only see them moving more and more in that direction Sep 13 16:29:02 well, I g2g bye! Sep 13 16:29:32 well, the source code is here, i guess i can just hack it up Sep 13 16:29:40 g00s: that you can Sep 13 16:31:07 interesting looking at the code, i see they add meta-data to manifest entries to map which activities are phone / tablet Sep 13 16:31:51 a step in the right direction - but not nearly far enough … i think to do this right you need DSL Sep 13 16:32:12 which could map the navigation also Sep 13 16:32:52 no need for code gen, although i have seen people do that with xtext for exactly this purpose Sep 13 16:33:04 (external dsl for android navigation) Sep 13 16:33:58 I have a TabActivity, I'm using Icon's and Title for the TaqSpecs with an Intent content strategy. Yet the TabHost is giving me Runtime Errors whenever I try to add the TabSpec. Sep 13 16:34:14 Any idea what I'm doing wrong? Sep 13 16:34:31 Fallout2man: your using a TabActivity, that's whats wrong Sep 13 16:34:39 Fallout2man, yeah, what you're doing wrong is not looking at and reading the errors Sep 13 16:34:51 and yes, tab activity needs to go away Sep 13 16:35:16 pfn -_-;; If I didn't have a client meeting in 30 minutes I'd try and re-factor it. Sep 13 16:35:45 Fragments are our friends Sep 13 16:35:56 its been deprecated for a while, don't be surprised if it disappears soon Sep 13 16:36:43 Cus Android has a history of removing deprecated classes and methods Sep 13 16:37:16 maybe they should do it more :) Sep 13 16:37:23 of course, removing deprecated stuff is the Java way Sep 13 16:38:41 i think the only reason why people were still using it, was for some hack to get maps running on screen with something else as if it was a fragment ? Sep 13 16:38:51 but thats not an issue any more Sep 13 16:39:57 that was a clusterfuck for a long time Sep 13 16:40:11 people still use deprecated stuff because countless devs are clueless amateurs Sep 13 16:40:39 Or because budgets - in term of time or actual money - don't stretch to upgrading working code. Sep 13 16:41:03 likely many reasons overall Sep 13 16:41:34 that's so not an excuse for Instagram's UX Sep 13 16:41:38 and iHeartRadio Sep 13 16:42:41 well, iHeartRadio updated a bit I take that one abck Sep 13 17:18:54 Could anyone assist me with an app's structure? Sep 13 17:22:06 i think this Verge article is right; the 64-bit A7 represents apple's push for iOS to post-post-PC device :) or the transition of tablets from consumption devices into productivity devices. fair enough, everyone else seems to be coming out with 64-bit mobile processors too Sep 13 17:22:51 if i sac run autocad, Ps, or Lr on a Surface Bay Trail, comparable things must be possible for iOS presumably Sep 13 17:23:01 *Surface 2 Sep 13 17:23:29 the question is, where does this leave android :P Sep 13 17:23:52 or maybe this is where chrome begins Sep 13 17:25:33 who needs 64-bit processor on android when we can't even get 65k methods in an app :D Sep 13 17:26:05 how would you structure Category-product data in a way that an adapter can easily interpret it? Sep 13 17:26:33 64-bit is most useful for having a large virtual address space but i'm not sure how that would benefit mobile apps right now Sep 13 17:27:12 well Sep 13 17:27:20 neither is Apple, but its good marketing Sep 13 17:27:42 "hey look, we were the first at something... even if its irrelevant today" Sep 13 17:27:43 you could map a somewhat sizable runtime image or something but even still, probably easily done in 32 Sep 13 17:28:10 birbeck: i disagree, i think you're scraping the bottom of the barrel for anything when you start talking about that kind of stuff Sep 13 17:28:19 birbeck i think they know MS is in some ways raising the bar. playing around with a Surface, i asked myself, why the heck would I use an iPad (toy) ? Sep 13 17:28:33 what is an easy way of converting a LinkedBlockingQueue to a MAP?? Sep 13 17:28:37 Surface 2 with Bay Trail will be out very soon, announced in a few weeks maybe Sep 13 17:28:48 i have a galaxy note 8 and i have no idea why i'd use an ipad .. i just want a bigger galaxy note Sep 13 17:28:49 using an iPad I asked myself, why would i use an iPay(toy) Sep 13 17:28:57 i would totally buy a 14"+ note Sep 13 17:29:26 surface with a real stylus would be tempting if it wasn't windows, but it's windows, and just no Sep 13 17:29:39 (cuz you can get big surface) Sep 13 17:30:05 im interested for chrome native apps Sep 13 17:30:20 especially if they make an Android Studio for Chrome :-) Sep 13 17:30:22 zquad that question doesn't make much sense to me Sep 13 17:30:24 wishful thinking i know Sep 13 17:30:34 'how would i change a queue to a map' .. wut Sep 13 17:31:02 i'm following http://www.javacodegeeks.com/2013/08/android-custom-loader-to-load-data-directly-from-sqlite-database.html but the AbstractDataLoader.java file has a typo Sep 13 17:31:05 g00s converting from LinkedBlockingQueue to a HashMap Sep 13 17:31:16 "public abstract class AbstractDataLoader> extends AsyncTaskLoader { ..." Sep 13 17:31:17 g00s: they're both containers, jsut discard the order ;) Sep 13 17:31:26 zquad you aren't shedding any light on your question :) Sep 13 17:31:45 should that be "public abstract class AbstractDataLoader extends AsyncTaskLoader> { ..." ? Sep 13 17:31:45 oGMo discard the interface and semantics too :D Sep 13 17:31:46 lol I dont know how else to explain it Sep 13 17:32:04 g00s: well, i can't help it that java's library sucks Sep 13 17:32:50 how would you structure Category-product data in a way that an adapter can easily interpret it? Will I be better with an ExpandableList? Sep 13 17:32:59 zquad: what's a LinkedBlockingQueue and what's it queuing and why do you want to convert it to an associative set? Sep 13 17:33:01 queues and maps are meant for totally different purposes Sep 13 17:33:09 you're asking how to convert one purpose to another Sep 13 17:33:18 oh, found the original page.... http://www.phloxblog.in/?p=1890 Sep 13 17:33:19 but we don't know what purposes you are using either Sep 13 17:33:54 an _unordered_ associative set, though there may be a map implementation that retains order (and is almost always the wrong solution) Sep 13 17:34:47 I used a LinkedBlockingQueue to queue messages ready to send. I am ready to send and want to convert the entire queue to json (using jsonObject( MAP ) and send it off. The jsonObject takes a MAP but I have a LinkedBlockingQueue Sep 13 17:35:02 er Sep 13 17:35:09 i think you're doing it wrong heh Sep 13 17:35:27 a queue is generally meant for processing one thing at a time Sep 13 17:35:39 if you want to make a big batch of stuff to send, just stick it in the hash to begin with Sep 13 17:35:49 zquad the question is, now do you convert a message to json, not the queue Sep 13 17:35:53 if you can only take N out of the queue, then take those out and stick them in the hash Sep 13 17:36:23 g00s: if that's the problem then this is way too much explanation necessary Sep 13 17:36:24 but if you grab a few messages maybe they go in an array Sep 13 17:36:38 g00s dont want to poll() each item in the queue and convert it to json, I want to convert the whole thing to json Sep 13 17:36:51 you shouldn't be using a queue if that's the case Sep 13 17:37:00 I am thinking that oGMo Sep 13 17:37:25 the _point_ of a queue is someone puts something in one-by-one, and you take it out one-by-one .. if that's not your use case, that's not your data structure Sep 13 17:37:30 Extends JSONObject and add a constructor that takes a map, do the processing there Sep 13 17:37:50 and are you actually mapping a key to a value? because if not you want a Set, not a Map Sep 13 17:37:59 or an array, since json Sep 13 17:38:20 (or list) Sep 13 17:38:53 ok let me change my datastructure Sep 13 17:45:51 hm, so i would like to split up these logging sessions into separate databases, since each can grow pretty big (over 10k samples). if i use a plain sqlite attach statement, i can't see how to use SQLiteOpenHelper to manage schema migration (for the attached-to databases). Sep 13 17:46:14 Does anyone have a good example of an ExpandableListView at hand? Sep 13 17:46:26 ApiDemos does :| Sep 13 17:47:55 anyone know of a good tutorial on how to display a dialog instead of an acitivity for the configuration screen on a widget? Sep 13 17:48:06 g00s, what SDK? Sep 13 17:48:18 serrghi maybe Activity with Dialog theme ? Sep 13 17:48:27 zyngawow all of them :P Sep 13 17:48:57 g00s: yea, but is that the "way to do it" ? Sep 13 17:49:13 not sure Sep 13 17:49:57 me neither. android new widget guidelines dictates of using dialogs instead of activities for configuration, but offers no explanation Sep 13 17:50:47 oh, yeah. i read through d.android.com / design guidelines again yesterday, there is a lot of that. when x, then do y … ok , how ? :P Sep 13 17:50:52 /show me the code/ Sep 13 17:51:08 Ah, I need to provide group header data too, thought it'd work with a single HashMap Sep 13 17:51:12 yea, completely Sep 13 17:52:33 TreeMap, the fizzy bubbleeeh Sep 13 17:53:07 http://ih1.redbubble.net/image.12560756.4740/sticker,375x360.u1.png Sep 13 17:53:51 actually, in all seriousness … i read about a cool trick with HasMaps using strings as kets Sep 13 17:53:54 *keys Sep 13 17:54:03 store the hash value instead of the string :D Sep 13 17:54:11 hopefully no collision, eh Sep 13 17:54:53 and then use something like Trove TIntMapObject and wohoo Sep 13 17:55:45 Still won't be O(log n) Sep 13 17:56:20 that was for space consideration :P Sep 13 17:56:29 uh, hasmap is usually faster than treemap Sep 13 17:58:06 Hi everyone. I am trying to create a widgen on witch I have a linearlayout (horizontal) I add a textview a imageview and again a textview Sep 13 17:58:15 why can't i see the second text view? Sep 13 17:58:30 it should have place on the screen to be added Sep 13 17:58:31 likely because your first one is match_parent width Sep 13 17:58:42 no it is wrap content Sep 13 17:58:49 weight them Sep 13 17:58:56 then you'll see all three Sep 13 17:59:11 android:layout_width="0dip" android:layout_weight="1" Sep 13 17:59:13 do that for all three Sep 13 17:59:15 children Sep 13 17:59:39 yea, didn't tought of thaqt. let me try it Sep 13 18:00:25 dump question, if i use a Navigation Drawer, like from the support lib, and want to use a ViewPager - do these conflict wrt the swiping actions ? like if i swipe to the left, does that pull out the drawer or show the previous ViewPage ? Sep 13 18:00:28 *dumb Sep 13 18:00:50 or am i supposed to not use these together Sep 13 18:02:31 dunno about the support lib, but Simon's nav drawer works fine with a ViewPager Sep 13 18:03:21 an edge swipe will grab the drawer, everything else will hit the pager Sep 13 18:05:17 ok, so the idioms arent necessarily mutually exclusive Sep 13 18:07:20 yea, they definitely can work together Sep 13 18:07:28 fancy touch event handling Sep 13 18:07:36 edge detection etc... Sep 13 18:10:23 ok so i set android:layout_weight="1" to all components and still nothing Sep 13 18:12:16 did you se the layout_width to 0dip Sep 13 18:12:59 i think xavd's team needs to rewrite the android-gradle plugin in java to speed it up :| Sep 13 18:13:22 these tasks that merge resources are stupid slow Sep 13 18:15:08 it is the imageview problem Sep 13 18:15:09 ok, i have only anonymous inner classes and no static fields in my activity. Yet it still seems to leak, and the MAT tools don't show anything identifiable. Sep 13 18:15:18 if i set specific dimensions it works Sep 13 18:15:50 so it is linear layout that cointains a text a image and a text Sep 13 18:15:53 horizontaly Sep 13 18:16:10 how can i set the image dimensions so i don't affect the left text? Sep 13 18:16:20 Trying to make an app well from the start is kinda tricky :( Sep 13 18:17:58 zyngawow trying to make a crappy app well from the end is even trickier :P Sep 13 18:18:27 g00s, yeah, I made it crappy (didn't go for Fragments) and now I have to start over Sep 13 18:23:12 Now to figure out how I should do it Sep 13 18:25:21 Nested fragments are a blessing Sep 13 18:31:16 Anyone regularly use ant to build their apk? Sep 13 18:32:09 So I have one video in my mediastore. The ID as given by the Video.Media table is 7737. However, when I go to the Video.Thumbnail table, there is one entry (for my only video) with a video_id of 7736 Sep 13 18:32:18 The gallery app displays the thumbnail for the video correctly Sep 13 18:32:23 even after a force close / restart Sep 13 18:32:38 how am i supposed to link video thumbnails with their video if the id doesnt match like that?... Sep 13 18:33:10 What would you do to store shopping list data? I mean to use it in an Adapter Sep 13 18:35:22 zyngawow: sqlite Sep 13 18:35:37 depends on how you plan on using it Sep 13 18:35:41 SQL doesn't seem like a good way to store nested stuff Sep 13 18:35:54 zyngawow: a list of classes for ShoppingListItem?... Sep 13 18:36:19 nested stuff works fine with sql, depends on how you design your db Sep 13 18:36:32 sql is fucking horrible for an adapter's source data Sep 13 18:37:43 agreed, but possible to do it Sep 13 18:37:44 are you putting shopping lists in shopping lists? how hierarchical could this be ? Sep 13 18:37:58 yo dawg ... Sep 13 18:38:03 haha Sep 13 18:38:37 essentially, a forum with a thread within a thread within a thread... same db design bassically Sep 13 18:38:39 is the gallery app a part of packages_apps_camera? Sep 13 18:41:00 g00s, categories have subproducts, and storing a product along with the name of it's category would be kind of inefficient Sep 13 18:41:23 Pyuruku: packages_apps_Gallery Sep 13 18:41:52 also gallery2 and gallery3d Sep 13 18:42:02 mmathis: thats not listed on github.com/android Sep 13 18:42:22 Pyuruku: github.com/android is not where you go to get android source code Sep 13 18:42:35 https://android.googlesource.com/platform/packages/apps/Gallery2/ Sep 13 18:42:45 i mean, its a mirror isnt it?... Sep 13 18:42:52 see also: packages/apps/Gallery and packages/apps/Gallery3D Sep 13 18:44:04 who dinged me? Sep 13 18:44:53 Pyuruku: I have no idea how often github is updated, but why not just use the AOSP browser and avoid questions like this? Sep 13 18:45:21 09:40 < FrancescoV> XXCoder1, if you're interested in trigging the bootup, it works for me Sep 13 18:45:27 XXCoder1: ^ Sep 13 18:45:38 hmm ok. thanks Sep 13 18:45:47 The github "mirror" has never been complete Sep 13 18:47:34 Sadly Sep 13 18:49:13 It was useful from when kernel.org went down to google letting you browse on their repo Sep 13 18:49:19 But that's a while ago Sep 13 18:51:48 hi, i have a shiney new nexus4 here and i've unlocked the bootloader. but for some reason, anything i boot with "fastboot boot blablabla.img" results in blackscreen. it seems that the image is actually running, as adb works while in custom recoveries, but nothing shows up on screen. Sep 13 18:52:06 giantpune: wrong channel Sep 13 18:52:15 #android-root Sep 13 18:52:20 thanks Sep 13 19:06:11 anyone have a good doc link to "do not create View instances using an Application context"? Sep 13 19:06:33 can i set a custom font for my text in app? Sep 13 19:10:06 Rat2000: look at styles. Sep 13 19:10:27 Rat2000: but beware that making your app have wacky custom fonts is likely to look kind of crappy Sep 13 19:12:24 dragorn: nonsense, everyone should adopt comic sans Sep 13 19:13:17 if all fonts is 100% comic sans its not enough ;) Sep 13 19:13:58 Woah! I didn't realize Android shipped with comic sans. I've gotta update my app. Sep 13 19:14:01 I always wanted comic sans on my Nook. Sep 13 19:14:41 Is it a good way to store Category-Products data in an ArrayList for a ListView? Probably not, right? Sep 13 19:16:46 Hey huys, seriosly I tried everything. Would you please check on it: http://pastebin.com/98zyfmYS. I'm using org.apache.http.entity.mime.MultipartEntity class in my project, I have jar file in my builld path, but I still getting NoClassDefFoundError, what I'm I doing wrong?? thank you.. Sep 13 19:20:26 *guys I ment, sorry .. Sep 13 19:21:44 defuera: are you using eclipse? Sep 13 19:22:46 нуфз Sep 13 19:22:50 yeap! Sep 13 19:23:25 if that's my problem, I can burn em down if you say it helps! Sep 13 19:23:57 defuera: Right click the project, choose properties, java build path, and make sure the apache lib JAR is checked in the "Order and Export" tab. Sep 13 19:24:22 ...if you weren't using eclipse, I'd have to explain to include the JAR in the dx step of your build chain. Sep 13 19:25:16 check Android Private Libs in the order and export tab Sep 13 19:25:31 ok just give me a sec) Sep 13 19:27:20 Is it a good way to store Category-Products data in an ArrayList for a ListView? Probably not, right? Sep 13 19:27:21 it haven't been cheked, but it haven't help yet, I ll work on it. rebooting eclipse, cleaning project etc.. Sep 13 19:27:34 thx, guys. Sep 13 19:29:13 zyngawow i dont get it; why not just include the category in the query result, group by it, and then just divide each bunch in the lv by a header or something ? Sep 13 19:29:27 i mean, for one level of hierarchy this should be cake Sep 13 19:29:36 and arrayadapter .. always /no/ Sep 13 19:29:42 Products must fall into a category Sep 13 19:30:17 zyngawow now we go into mobile UI design Sep 13 19:30:23 maybe you're making this too complicated Sep 13 19:30:36 just do what can easily be done in a single list, if its a shopping cart Sep 13 19:30:49 Maybe I am Sep 13 19:30:58 there is probably a reason why we don't have a full on TreeView in android Sep 13 19:31:04 i don't think iOS has one either Sep 13 19:31:15 There are multiple shopping lists (for different stores), and one Product List. Categories have products Sep 13 19:31:27 So.. store it in SQLite Sep 13 19:31:27 How? Sep 13 19:31:31 (format) Sep 13 19:32:08 hi all! Sep 13 19:32:20 greetings from Taiwan! Sep 13 19:32:45 zyngawow don't know Sep 13 19:32:51 zyngawow maybe you need this http://www.amazon.com/Hierarchies-Smarties-Kaufmann-Management-Systems/dp/0123877334 Sep 13 19:33:05 I'd like to expone one question Sep 13 19:33:14 31$ for storing data Sep 13 19:33:33 thats like 20 minutes wage for an android dev Sep 13 19:33:41 are you going to take longer than 20 minutes to figure this out ? Sep 13 19:33:50 When you've got a job :) Sep 13 19:33:55 it takes a lot longer than 20 minutes to read a book Sep 13 19:34:03 Good day everybody. I have got a strange problem. I created a new project, imported support-v4 lib, added (presumably right) the slidingmenu module. While I get no compile errors, I do get one just after the start. It is ClassNotFoundException with MainActivity not found. But it appears only if my MainActivity extends SlidingMenuActivity, but everything works with extending android.app.Activity. What the problem ca Sep 13 19:34:04 $31 plus time to read Sep 13 19:34:18 it could take forever if you can't figure it out on yourself Sep 13 19:35:05 Or maybe search for free with the given book title http://stackoverflow.com/questions/17569036/sqlite-databases-hierarchical-data Sep 13 19:35:22 yeah like that Sep 13 19:35:26 0 upvotes, no answer Sep 13 19:35:32 go for it! Sep 13 19:35:41 "sqlite hierarchical data" Sep 13 19:36:26 s/sqlite/sql Sep 13 19:36:48 * pfn ponders using implicit conversions from string to IntentFilter and Seq[String] to IntentFilter Sep 13 19:36:56 makes registering receivers less stupid painful Sep 13 19:37:04 ScottishPig: no it didn't help, anything else you could advise me? Sep 13 19:37:32 nseidm1: I also cheked Private libs for export, but no luck Sep 13 19:38:37 oh! But I find the same jar in Private libs, what am I doing now> Sep 13 19:39:27 g00s, so basically not such thing as nested sql stuff exists, you just add a parent id Sep 13 19:39:40 make sure it's the libs folder not the lib folder Sep 13 19:39:41 I am trying to develop an android app that communicates with a c# server, I am using for that UTF-8 strings. When I use a desktop client in c# or in java it works fine. However, when I try to use android it seems like the UTF-8 enconding doesn't work well. Sep 13 19:39:54 zyngawow well, the data model us usually simpler than the querying part ;) Sep 13 19:40:00 The handset I am using for testing ins a Samsung Galaxy ACE Sep 13 19:40:39 zyngawow or updates/ deletes for that matter Sep 13 19:40:55 for something very hierarchical, you may use something like neo4j Sep 13 19:40:58 g00s, basic SQL queries. Should't be that difficult Sep 13 19:41:06 but often , its a fact of life in relational databases as well Sep 13 19:41:07 My favorite phone is the Samsung Galaxy Bleh, completely boring edition Sep 13 19:41:09 g00s, it isn't very hierarchical, is it? Sep 13 19:41:31 well, u know! It looks like it;s working I have the same error for another class. Thank you guys! thanks a lot, it's been a long day!-) Sep 13 19:46:15 Anyone?.. Sep 13 19:51:48 Is there any way to clip a drawable to a path with hardware acceleration turned on? If I set the layer type to software I lose transparency. Sep 13 19:51:55 icehaunter: sure, what class is not found? Sep 13 19:52:28 nseidm1, MainActivity! Sep 13 19:52:57 But only if it extands ANYTHING other than android.app.Activity Sep 13 19:53:29 even android.support.v4.app.FragmentActivity is not ok Sep 13 19:56:05 How do I get the md5 or checksum of my app while running? Sep 13 19:57:06 nseidm1 I came to the conclusion, based on stackoverflow, that there might be some problems with library adding and project structure :/ I am using the IDEA, by the way. Sep 13 19:58:08 docker is so much fun Sep 13 19:59:17 will be even more fun when it doesn't need aufs Sep 13 20:03:40 Gavilan3, what exactly are you trying to accomplish, you can ask the package manager for your signatures, which is effectively a hash of your app Sep 13 20:08:19 maybe heading down the road of a crc check of some kind Sep 13 20:08:23 why are sparsebooleanarrays so confusing? D: Sep 13 20:08:41 why is it confusing? Sep 13 20:09:46 I don't even know Sep 13 20:09:48 it looks so easy now that I've gotten it right Sep 13 20:09:50 but it took waaay too much googling to get it Sep 13 20:09:57 wtf? Sep 13 20:09:59 it's an array Sep 13 20:10:02 that's sparse Sep 13 20:10:05 how does it get confusing? Sep 13 20:10:29 i guess i think of them more like hashmaps but with primitives. but yeah i don't find them confusing. Sep 13 20:10:30 "SparseBooleanArrays map integers to booleans" … seems straightforward Sep 13 20:10:44 isn't this used in ListView for the selected items ? Sep 13 20:10:54 it also doesn't help that I was mixing up my adapter and listview when trying to do getitem Sep 13 20:10:59 yes it is Sep 13 20:11:22 I will leave for a sec, if anyone would like to help me Sep 13 20:17:19 whats a good way to structure an app into a app and library component; that is - library containing constants / etc maybe a client of your content provider would use. would i make it a gradle sub-project in my project? i would make it a separate top level project also Sep 13 20:17:48 s/would/could Sep 13 20:19:24 * pfn ponders adding multi-window chat to qicr Sep 13 20:19:44 pfn: that's a great idea Sep 13 20:19:56 I already support it in widgets... Sep 13 20:20:13 but on tablets, having more than 1 window active at once would be way nice Sep 13 20:20:23 maybe I'll use a slidingpaneview to do top/bottom Sep 13 20:20:41 and then have 2 viewpagers on the same adapter to allow being in the channel of your choice Sep 13 20:20:42 hrm Sep 13 20:20:50 totally fucks up the rest of the channel nav ui though Sep 13 20:21:55 looking at the docs for slidingpaneview, don't understand it Sep 13 20:21:58 where is it used ? Sep 13 20:22:45 hangouts Sep 13 20:22:50 does it replace slidingdrawer ? Sep 13 20:23:50 it kind of replaces the master/detail list pattern. on a tablet you might want to show the categories on the left and the details on the right, but on the phone just show one at a time Sep 13 20:24:29 kevinb hmm, interesting Sep 13 20:24:37 i was hoping to see it http://developer.android.com/design/building-blocks/index.html Sep 13 20:25:34 it was covered in one of this years IO talks but i can't remember which one. probably same one that covered the navigation drawer Sep 13 20:25:37 g00s, it's used everywhere, anytime the maincontent slides to reveal the other view, it's sliding pane Sep 13 20:25:43 basically, it's complementary Sep 13 20:25:59 sliding pane is used to achieve a larger layout and adaptively shrink for smaller devices Sep 13 20:26:00 kevinb thanks Sep 13 20:26:14 ok Sep 13 20:26:16 so, on a larger enough device, the sliding pane effect should not occur at all Sep 13 20:26:46 but on a phone, wouldn't you still have 2 activities: list and details ? Sep 13 20:27:02 nseidm1, can I still consider your help? Sep 13 20:27:09 is this for adapting to various sized for tablets ? Sep 13 20:27:38 'responsive design for over 5") or something Sep 13 20:27:45 g00s, not two activities, the sliding pane would slide to reveal the secondary information that should always be present on a larger screen Sep 13 20:28:55 ok, i see they use it in iosched 2013. too bad i need to hack that up to run it, so it doesn't ask for google+ Sep 13 20:29:14 maybe i can find a video somewhere Sep 13 20:29:19 * g00s looks for i/o video Sep 13 20:29:26 just sign up for google+ Sep 13 20:29:32 fuck that :) Sep 13 20:29:38 * pfn shrugs Sep 13 20:29:47 there is absolutely no reason to avoid signing up for it Sep 13 20:29:53 you don't ever have to post shit to it Sep 13 20:29:54 Is there a plugin to edit javascript in android studio? I know I could just get the full IntelliJ suite... But open source plugins would be nice Sep 13 20:30:06 jaynewstrom, android studio is called android studio for a reason Sep 13 20:30:10 NO OTHER LANGUAGES EXCEPT FOR ANDROID Sep 13 20:30:25 if you want other languages, intellij is the answer Sep 13 20:32:13 hi all - for Android Studio - my layout view for the activity_main.xml has no design/text tabs - any idea how to restore those? Sep 13 20:32:13 i think they should redesign the hamburger icon. the middle square should be 2 wavy lines like bacon Sep 13 20:32:28 although new layouts do have the tabs Sep 13 20:32:52 hmm restarting seems to have fixed it 'this time' Sep 13 20:34:50 icehaunter: use Eclipse Sep 13 20:36:09 nseidm1: is it really the only option? I would prefer to avoid it.. Sep 13 20:36:37 i miss eclipse workspaces; now that i've broken my project into a bunch of libraries its nice to easily navigate to each one without having multiple eclipse windows open Sep 13 20:37:03 huh? Sep 13 20:37:10 you just contradicted yourself Sep 13 20:37:27 intellij requires opening separate windows for each project Sep 13 20:37:43 in eclipse, you just have one window, one workspace multiple projects Sep 13 20:38:30 I see Sep 13 20:38:37 one workspace Sep 13 20:38:45 hmm Sep 13 20:38:46 ok Sep 13 20:39:36 Do you put BaseColumns classes in separate file than Helper one? Sep 13 20:41:45 I use as few files as possible for most of my code Sep 13 20:41:48 I hate the java code sprawl Sep 13 20:42:12 pfn, hate 1 file 1 class? Sep 13 20:42:55 pfn, it's only a convention? Sep 13 20:43:14 it's 1 top level public class per file Sep 13 20:43:27 and that is a hard requirement in java Sep 13 20:44:16 How do you split code in Scala? Sep 13 20:44:35 I split at logical boundaries personally Sep 13 20:44:45 the scala community still recommends 1 major class per file, though Sep 13 20:45:05 in this example how class are nested? http://developer.android.com/training/basics/data-storage/databases.html ? Sep 13 20:47:16 kakazza, e.g. I have my ime and activity related to ime in a single file here https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/PasswordIME.scala Sep 13 20:48:46 is SlidingPaneView then a low-level version of Navigation Drawer ? Sep 13 20:48:52 more abstract, i guess Sep 13 20:49:02 does it matter? Sep 13 20:49:12 trying to understand it, i guess ? Sep 13 20:49:23 i understand Navigation Drawer Sep 13 20:49:33 although haven't used it personally yet Sep 13 20:49:44 sliding pane view is for when you want something to show all the time, but don't have the space for Sep 13 20:49:55 nav drawer is for stuff you'll use sometimes, but don't always want there Sep 13 20:50:16 What serialization format should I use that is very fast in saving/loading and can also be shared with other instances of the app (App state, but think 'save game') Sep 13 20:50:25 XML with xstream is very slow. Sep 13 20:50:26 kakazza, protobufs Sep 13 20:50:55 or sqlite database Sep 13 20:51:07 Can protobufs be treated like save games? Sep 13 20:51:19 As in, I send it to a different device and it can just deserialize? Sep 13 20:51:28 protobufs are platform agnostic Sep 13 20:51:35 endianness agnostic as well, iirc Sep 13 20:51:41 as long as your platform is java, c++, or python ;) Sep 13 20:51:43 What about versioning? Class changes, a member is new or now missing. Sep 13 20:51:48 there are other ports, but second class Sep 13 20:51:56 supports versioning Sep 13 20:52:01 no other platforms matter :p Sep 13 20:52:07 but required is forever Sep 13 20:52:10 it's easy to ffi into c++ from any language Sep 13 20:52:19 and protobufs are C, iirc, not c++ Sep 13 20:52:21 "required is forever"? Sep 13 20:52:26 c++ is ugly to ffi, c isn't Sep 13 20:53:02 Do protobufs inherently support versioning, or does only the Google implementation do so? Sep 13 20:53:03 i thought protobufs are C++, not C Sep 13 20:53:12 I'm looking at Wire by Square, btw. Sep 13 20:53:18 hmm, I guess it is c++ Sep 13 20:53:25 kakazza, there is only 1 implementation of protobufs Sep 13 20:53:26 :p Sep 13 20:53:26 protobufs are not "C++" Sep 13 20:53:28 kakazza the other big one along those lines is Thrift Sep 13 20:53:36 it compiles to java, c++ and python atm Sep 13 20:53:39 rather, it's a google piece of IP Sep 13 20:53:45 Xabster pedantic Sep 13 20:53:45 What's Wire then? Sep 13 20:53:51 wire is wire Sep 13 20:53:52 not protobuf :p Sep 13 20:54:03 kakazza: ignore him Sep 13 20:54:06 g00s: huh Sep 13 20:54:11 why is that pedantic Sep 13 20:54:18 heh Sep 13 20:54:21 the protoc "compiler" works with c++/java/python Sep 13 20:54:24 why is it then c++? Sep 13 20:54:29 uh who cares Sep 13 20:54:42 isn't that what we all /mean/ ? Sep 13 20:54:44 Xabster, no one said that Sep 13 20:54:47 don't know Sep 13 20:54:57 I was just saying, in terms of language bindings outside of java, c++ and python, it doesn't matter if it's c++ only Sep 13 20:55:02 because it's easy to ffi into Sep 13 20:55:40 Currently, I do something like xstream.toXml(myObject) which results in a few hundred KB of XML because it has many members etc. I guess I'd have to write all that into a .proto? Sep 13 20:55:47 It's not a drop-in replacement, right. Sep 13 20:55:56 it's not Sep 13 20:56:01 you can try json then Sep 13 20:56:05 for a nobrainer serialize/deserialize Sep 13 20:56:08 use gson Sep 13 20:56:14 if you want to just drop in a serializer Sep 13 20:56:17 also, think of protos as messages, the container is more up to you Sep 13 20:56:40 pfn: Performance is key here. Sep 13 20:57:00 performance of what, and why are you constantly serializing Sep 13 20:57:06 I guess protobufs would fit the bill, but retro-fitting these into the app would take a lot of effort, I guess. Sep 13 20:57:09 and if it's key, pay the price to use a protobufs implementation Sep 13 20:57:35 pfn: Game, 'auto save' Sep 13 20:57:50 kakazza, then you shouldn't be writing out the entire record on each save Sep 13 20:58:01 use a format that supports appending Sep 13 20:58:17 It's not just appending, old things also change. Sep 13 20:58:28 sqlite is your answer Sep 13 20:58:31 create a database per game Sep 13 20:58:31 :p Sep 13 20:58:34 heh Sep 13 20:58:35 I need to read incoming text messages for certain keywords and perform an action everytime I get the SMS command. What is the best approach? Is there some listener or monitor for android? Should I just read all messages every 10 minutes reading only SMS that came in within the last 10 minutes? Sep 13 20:58:45 because, really, you're gonna write out your entire save state on every auto-save? Sep 13 20:59:05 I'm trying to avoid that. Sep 13 20:59:17 kakazza, serialization implicitly does not avoid that Sep 13 20:59:25 I guess sqlite makes more sense than serialization in that case. Sep 13 21:00:23 I just loved the idea of just calling toFoo() and fromFoo() :x Sep 13 21:00:35 you can abstract it so that it works that way still Sep 13 21:00:51 kakazza if a k/v store works for you, take a look at mvstore Sep 13 21:01:01 consider ormlite maybe Sep 13 21:01:06 or even mapdb, but i haven't tried newer mapdb on android Sep 13 21:01:11 man, my max keyboard is dying Sep 13 21:01:17 I've spilled too much water in it or something Sep 13 21:01:34 I wonder how nice the new cherry mx clear keyswitches are Sep 13 21:01:42 http://codekeyboards.com/ Sep 13 21:01:43 sounds tempting Sep 13 21:02:04 I thought they rean out of clear switches with the first batch? Sep 13 21:02:20 I recently used that keyboard btw. Would recommend Sep 13 21:02:25 I wonder how the clear compares vs. cherry mx brown and blue Sep 13 21:02:31 my max is a cherry brown Sep 13 21:02:36 and I have a coolermaster blue Sep 13 21:02:46 I really like the feel of the coolermaster vs. the brown Sep 13 21:03:16 help? :) Sep 13 21:03:36 zquad, google would provide you those answers if you spent like 2 minutes searching Sep 13 21:03:37 pfn: 2.42 lbs. hahaha. nice Sep 13 21:03:45 my max keyboard weighs about that much... Sep 13 21:03:57 hmm, or not, feels more like 1.5lbsish Sep 13 21:03:59 definitely a nice looking keyboard Sep 13 21:04:01 zquad: just grab the incoming sms broadcast, easy peasy Sep 13 21:04:19 i just like my logitech wave Sep 13 21:04:29 Keyboard weight: approx 3 lbs Sep 13 21:04:30 great coding keyboard, no loud clicking Sep 13 21:04:35 hmm, according to max, they say it's ~3lbs, too Sep 13 21:04:38 doesn't feel like it, though Sep 13 21:04:46 If I were in the market for a normal keyboard, that one would probably be a serious contenter Sep 13 21:04:53 JesusFreke, what kinda keyboard do you use? Sep 13 21:04:59 since you say "normal" Sep 13 21:05:00 pfn: datahand Sep 13 21:05:17 JesusFreke, neat, what kinda wpm can you get on that? Sep 13 21:05:22 and are you wrists really that destroyed? Sep 13 21:05:53 bout the same as I could on a normal keyboard, around 90-100wpm Sep 13 21:05:59 nah, it's more preventative than anything Sep 13 21:06:08 but they're also just really nice to type on Sep 13 21:06:14 indeed Sep 13 21:06:29 my wrists go numb from time to time if I spend too much effort typing nonstop Sep 13 21:06:43 but a lot less since often since I finally got my workstation at home all ergoed up Sep 13 21:06:50 https://lh4.googleusercontent.com/-Og6Iwj_C_wc/UYPqh07ta9I/AAAAAAAAEh0/IkegZA7EKZc/w422-h562-no/13+-+1 Sep 13 21:06:51 :) Sep 13 21:06:52 the key force in particular is really nice. since it's magnetic, you get a brief resistance, then a quick "pop" as the magnet lets go Sep 13 21:07:13 neat Sep 13 21:07:14 so the force over time is actually a negative slope Sep 13 21:07:25 kakazza, so... you say the code is nice, any comparison of clear vs. blue vs. brown? Sep 13 21:10:01 Would have to check, a friend has a mechanical keyboard, but I forgot which one. Sep 13 21:11:21 hmm, are clears not a new option? I haven't heard of clear before, but a forum post from 2009 mentions them Sep 13 21:12:08 Where will i put ANDROID_HOME envriroment so Android Studio can read the value of it? I have try /etc/launchd.conf and /etc/profile :S Sep 13 21:12:37 I am use-ing mac os x Sep 13 21:12:46 launchctl setenv ANDROID_HOME ... Sep 13 21:12:56 but android studio should know where android_home is implicitly... Sep 13 21:13:36 launchctl was deprecated i thought Sep 13 21:14:17 there are no problem when i create project, but when i include project from git , android studio will not find ANDROID_HOME env :S Sep 13 21:14:51 i can fix it if i write sdk.dir in local.properties file, but i will tray launchctl Sep 13 21:15:38 anybody know why AS includes android platform SDK 17 as well as maven repos for support lib AND google libraries? how do i know whats being used - crap bundled with AS or what I have from sdk downloader? Sep 13 21:16:04 ? Sep 13 21:16:11 sdk manager should download into the sdk that AS bundles Sep 13 21:16:29 yeah, if you go into the AS bundle, there is a ton of shit in there Sep 13 21:16:30 launchctl setenv ANDROID_HOME doesn't work :/ Sep 13 21:16:38 johannn, yes it does Sep 13 21:16:41 i guess thats why its 700mb Sep 13 21:16:57 g00s, yeah, it bundles it, and if you use the sdk downloader, it goes into the same bundle area, does it not? Sep 13 21:17:07 pfn no, a different place Sep 13 21:17:11 is that so Sep 13 21:17:12 bummer Sep 13 21:17:29 or are you using the sdk downloader /not/ bundled with AS? Sep 13 21:17:57 i just started playing with AS more recently; i always used the standalone tools Sep 13 21:18:04 If the location of SDK are in "/Applications/Android Studio.app/sdk" will the whitespace be a problem? Sep 13 21:18:11 g00s, so you're using the sdk manager not bundled with AS Sep 13 21:18:17 yeah Sep 13 21:18:17 then of course, AS will not be using what you download Sep 13 21:18:38 dafuq Sep 13 21:18:41 johannn, should be no problem; but I don't understand why you have an issue with ANDROID_HOME in AS, it should be automatically Sep 13 21:18:42 it only includes api 17 Sep 13 21:18:51 not all the rest, so you need go grab that stuff anyhow Sep 13 21:18:52 g00s, it includes the entire SDK Sep 13 21:18:53 Yeah I still have AS pointing to my ADT SDK Sep 13 21:18:59 g00s, i.e. you run SDK manager from AS Sep 13 21:19:10 or you point AS to the location of your external SDK Sep 13 21:19:19 Tools -> Android -> SDK Manager Sep 13 21:19:41 I also have a question wrt to ANDROID_HOME on OS X. Sep 13 21:19:42 otherwise project structure -> sdks Sep 13 21:19:52 When I do 'mvn package' it fails with an error. Sep 13 21:20:03 [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.1:generate-sources (default-generate-sources) on project timber-sample: No Android SDK path could be found. You may configure it in the plugin configuration section in the pom file using ... or ... or on command-line Sep 13 21:20:05 using -Dandroid.sdk.path=... or by setting environment variable ANDROID_HOME -> [Help 1] Sep 13 21:20:24 But when I run it with -Dandroid.sdk.path=$ANDROID_HOME it work Sep 13 21:20:26 s Sep 13 21:20:36 export ANDROID_HOME Sep 13 21:20:37 :p Sep 13 21:20:37 So, ANDROID_HOME _is_ set and correct, but mvn doesn't seem to find it? Sep 13 21:21:01 hey guys, me again - trying to figure out why i have an activity leak. I've uploaded the latest heap dump for MAT (already converted) if anyone is interested: http://www.penguinpimps.com/android1377204180477223859.hprof The activity in question is "PhotoSelectorActivity". Maybe i'm using the tool wrong, but i don't see what is keeping it from being collected. This dump contains only 2 instances - but i've seen it go as high a Sep 13 21:21:01 s 5. Sep 13 21:21:40 pfn: I am dumbfounded. Sep 13 21:21:54 kakazza, you actually exported? Sep 13 21:21:57 Why do I need to export something which already exists when I echo it. Sep 13 21:22:13 because you might have set it as a local variable and not an environment variable Sep 13 21:22:23 if it is not set as an environment variable it does not get "exported" to child processes Sep 13 21:22:24 -DANDROID_HOME Sep 13 21:22:26 seems clear Sep 13 21:23:29 jedir0x, what's your activity class name? Sep 13 21:23:33 Shouldn't launchctl setenv do exactly that? Sep 13 21:23:43 PhotoSelectorActivity Sep 13 21:23:43 Make it an enviroment variable Sep 13 21:24:26 kakazza, yes Sep 13 21:24:29 i don't know anything about launchctl, OSX's way of doing things has always boggled my mind. Sep 13 21:24:51 kakazza, you need to restart your terminal after running launchctl if you never exported ANDROID_HOME before Sep 13 21:25:21 and logout\in the UI as well right? Sep 13 21:25:38 i mean, to get it for desktop apps started by the window manager. Sep 13 21:25:57 https://lh5.googleusercontent.com/-rTuyrQ7fkHU/UjNneq9NasI/AAAAAAAAATQ/hr3jLbPHgHk/w957-h707-no/final2.png I can't understand why when I remove the Title the window changes its size. Sep 13 21:26:39 csst0111, padding maybe? also, maybe that title element has a minimum width. Sep 13 21:26:46 jedir0x, full classname Sep 13 21:26:58 com.flipagram.PhotoSelectorActivity Sep 13 21:28:07 jedir0x, so I have to search the styles.xml and find where the Title had a min width and apply it to the other custom Theme without the title ? Sep 13 21:28:31 csst0111, I don't know for sure - it was just a guess. But that sounds reasonable to me. Sep 13 21:29:43 ok thank you I'll keep searching. But when I added padding it was just whitespace . Didn't "stretch" the other views Sep 13 21:30:53 it's probably a width parameter Sep 13 21:31:01 ie: fill_parent or something along those lines Sep 13 21:31:30 match_parent, I believe. Sep 13 21:33:57 jedir0x, is a keyboard up while you're rotating? Sep 13 21:34:03 no Sep 13 21:34:12 there's no text field on the entire UI Sep 13 21:34:15 just two buttons Sep 13 21:34:28 wait, two buttons and a gridview with ImageViews inside Sep 13 21:34:46 LoadableImageView (custom view) - a composite view of ProgressBar and ImageView Sep 13 21:35:41 here's the custom view: https://gist.github.com/briandilley/bd49406aac2b77a2762d Sep 13 21:36:13 i'm using this project's libraries for caching bitmaps (this app loads a lot of them): Sep 13 21:36:24 * g00s deletes 'sdk' dir from AS.app Sep 13 21:36:29 seems to work :/ Sep 13 21:37:32 jedir0x, dunno, looks like one is visible, and the other is an input connection to your gridview that's left over Sep 13 21:37:38 and it gets killed and it goes away Sep 13 21:37:40 * pfn shrugs Sep 13 21:38:09 so another question i have is this: After a few rotations i'll see > 1 of that activity. Other activities (without this problem) i'll sometimes see > 1, if i force a GC with the MAT tools that activity drops down to 1 - this is normal right? Sep 13 21:38:40 (the activities without this problem drop down to 1 after a forced GC that is) Sep 13 21:38:47 jedir0x, ? Sep 13 21:38:58 well, my MainActivity for instance Sep 13 21:39:14 i'll launch the app, do a dump and see 1, then i'll rotate a few times, do a dump and see 2. Sep 13 21:39:17 so make a heapdump that has multiple that won't go away after forcing gc Sep 13 21:39:23 then i'll force a GC do a dump and see 1 again. Sep 13 21:39:25 this one is pretty useless Sep 13 21:39:34 if you force a gc and it goes away, it's really not a big deal Sep 13 21:39:46 you might have other bugs, but youd on't have a memory leak Sep 13 21:39:48 PhotoSelector doesn't ever go away - i was talking about other activities Sep 13 21:39:57 it's always at least the 1? Sep 13 21:39:59 just asking if it's normal to sometimes see 2 because it hasn't been collected yet Sep 13 21:39:59 er, 2? Sep 13 21:40:10 if you force gc and it hasn't gone away, then you have a leak Sep 13 21:40:41 i can't seem to get it to go past 2 anymore Sep 13 21:40:57 rotating a number of times - and then forcing GC -> 2 of PhotoSelectorActivity Sep 13 21:41:25 and if you wait a while and then force gc? still 2? Sep 13 21:41:32 yes Sep 13 21:42:05 I migrated my Ubuntu install from 32-bit to 64-bit. Is there any way to get the android SDK to recompile its binaries? Sep 13 21:42:24 and that is what this heapdump is? Sep 13 21:42:45 that's one of them, yes. Sep 13 21:42:51 http://www.penguinpimps.com/android2757935157387776312.hprof - here's one where i've forced a GC and it's left 2 PhotoSelectors behind. (just did it) Sep 13 21:43:26 um, singleTop Sep 13 21:43:27 done Sep 13 21:45:21 so i rotated a few more times after that last heapdump and was able to get it up to 3. Then i forced a GC until i saw logcat see <1K freed and took another heap dump and it's back down to 2. But it _never_ drops under 2. Sep 13 21:46:28 jedir0x, one good thing to do would be to print out System.identityHashCode(thisActivity) as hex at least to identify which activities these are Sep 13 21:46:32 (first sticking around, etc.) Sep 13 21:46:52 ok Sep 13 21:47:20 and what version of android Sep 13 21:48:29 4.2.2 - it's a galaxy s4 Sep 13 21:48:44 SGH-i337 Sep 13 21:49:55 and why is PhoneLayoutInflater a gc root, I don't think I've noticed that before? Sep 13 21:50:01 is it a static member of something Sep 13 21:50:04 nope Sep 13 21:50:24 it's not even imported Sep 13 21:50:31 PhoneLayoutInflater is a LayoutInflater Sep 13 21:50:38 right Sep 13 21:50:40 so if you have a LayoutInflater sticking around anywhere Sep 13 21:51:00 let me check my custom LoadableImage view class Sep 13 21:51:14 View.inflate(context, R.layout.loadable_image_view, this); Sep 13 21:51:18 i just do that in there Sep 13 21:52:35 my only static memers are integers and strings - REQUEST_xxx and STATE_xxx Sep 13 21:52:48 anyone know why okhttp-1.2.1.jar is throwing an ExceptionInInitializerError caused by a NoClassDefFoundError for com.squareup.okhttp.internal.Util ? Sep 13 21:52:53 no idea Sep 13 21:53:09 jedir0x, maybe another heap with identification of which activity is which (per identityHashCode) would provide more cue Sep 13 21:53:14 it looks like it's caused by this line: https://github.com/square/okhttp/blob/master/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java#L43 Sep 13 21:53:20 pfn: on it, thanks. Sep 13 21:53:27 and the fact the the Util class isn't in the JAR file. Sep 13 21:55:37 (this is the JAR from http://square.github.io/okhttp/#download ) Sep 13 21:57:59 you probably need okhttp-protocols.jar ? Sep 13 21:58:43 to create an OkHttpClient, I need a separate jar? Sep 13 21:58:58 I didn't need that as of 1.1.1 Sep 13 21:59:01 dunno Sep 13 21:59:05 I don't use okhttp to know Sep 13 21:59:40 JakeWharton: If you have any spare time, does this look like intended behavior or something that I screwed up? Sep 13 22:00:14 https://github.com/square/okhttp/blob/master/okhttp/pom.xml Sep 13 22:00:17 sounds like you screwed up Sep 13 22:00:27 okhttp depends on okhttp-protocols Sep 13 22:00:43 http://www.penguinpimps.com/android7417189645460812039.hprof -> latest dump and here's a screenshot with the onCreate() and onDestroy() after a few rotations (the identity hash): http://d.pr/i/zwpP (42dbd248 is the latest visible activity) Sep 13 22:00:46 bleh, crap. Sep 13 22:01:00 well, and square didn't document the fact that okhttp-protocols is now a dependency Sep 13 22:01:07 * pfn shrugs Sep 13 22:01:08 I'm not using Maven, I've just always downloaded the JAR off square's website. Sep 13 22:01:14 which used to work fine. Sep 13 22:01:36 alright, thanks, I'll try that and see if it works Sep 13 22:01:42 yeah, in maven, it just works Sep 13 22:03:11 maybe I should be using okhttp-1.2.1-jar-with-dependencies.jar from the same directory as Square's link goes to Sep 13 22:03:28 jedir0x, yeah, that's clear, 160 is the first activity and it leaked Sep 13 22:03:55 yep, that appears to include the Util class. Sep 13 22:05:20 jedir0x, do you do anything with action menu items? Sep 13 22:06:07 https://gist.github.com/briandilley/43d2593ab52fccb3c743 -> my base activity Sep 13 22:06:14 but no - nothing with action menu items Sep 13 22:06:52 still seems like an issue with their download instructions, but at least it's fixable on my end. Sep 13 22:07:25 square are the picasso guys right? Sep 13 22:07:47 looks like that's how you're leaking... Sep 13 22:08:04 the ActionMenuItem right? Sep 13 22:08:11 that's what i thought too Sep 13 22:08:15 but i don't even see that anywhere Sep 13 22:08:20 in my code anyway. Sep 13 22:08:40 I dunno, anyway, you have 2 candidates, the layout inflater, or the action menu items Sep 13 22:08:50 ok, so i was reading that rght Sep 13 22:08:51 right* Sep 13 22:09:01 i just expected to see something obvious from one of my packages Sep 13 22:09:17 weird thing is - only the first one leaks Sep 13 22:09:24 jedir0x: yeah, they make Picasso Sep 13 22:09:27 i don't know why the others get collected Sep 13 22:09:37 because you do something on first initialization that sticks around Sep 13 22:09:58 and your photoselector activity is probably the one you should post code to, since that's what leaks and nothing else that extends baseactivity? Sep 13 22:10:22 right Sep 13 22:10:27 i'll post the code Sep 13 22:10:41 https://gist.github.com/briandilley/a79d7fad672fbdfeb65a Sep 13 22:11:42 please feel free to bash my code and tell me how\where to improve it :) i'm new to android stuff. Sep 13 22:11:46 pfn: docs are for pansies Sep 13 22:13:30 apparently I should take this as a sign I should use Maven ;-) Sep 13 22:14:07 i enjoy maven Sep 13 22:14:17 but i've been using it since like version 0.1 or something Sep 13 22:14:30 i'm looking forward to playing with gradle in the near future. Sep 13 22:14:43 hi.. i want to offer "custom-builds" via website. There must be only one file configured before compiling to apk. (Linux) What is the best way doing it? or is it possible to do settings within the apk's manifest? Sep 13 22:14:45 JakeWharton, tell that to RyanM Sep 13 22:15:00 anything that keeps you from downloading jars manually (resolving dependencies) is a good thing IMO. Sep 13 22:15:14 RyanM: use Maven or Gradle. jar copying is like the middle ages Sep 13 22:15:43 i'd like a "per-project" dependency setup though - like virtualenv for python, or rvm for ruby. Sep 13 22:15:52 i mean, use it if you can. your life will be easier Sep 13 22:15:57 yeah Sep 13 22:16:18 I'd like to investigate Gradle since Android is pushing it, but evvvvverything uses Maven right now Sep 13 22:16:36 getting eclipse to play nice with maven can suck sometimes - but usually its only a few minutes of fuckery and you're good to go for the rest of the project... or until you have to reinstall eclipse. Sep 13 22:16:47 well, gradle uses maven - kind of :) Sep 13 22:17:02 it uses maven repositories and poms to build the dependency graph Sep 13 22:17:16 oh, so I can include Maven dependencies in Gradle? Sep 13 22:17:21 yes Sep 13 22:17:34 sweet. Sep 13 22:17:39 and you can add maven repositories as dependency sources to gradle Sep 13 22:17:49 How does Eclipse work with Gradle? Sep 13 22:17:57 i've never tried it, so i don't know. Sep 13 22:18:19 but at the very least, i'm sure there's a plugin for gradle that generates an eclipse project that you import (how we used to do things with maven actually) Sep 13 22:18:32 well, if it's an excuse to ditch eclipse, I might do it anyway :-p Sep 13 22:18:35 http://www.gradle.org/docs/current/userguide/eclipse_plugin.html Sep 13 22:19:33 are there any solid efforts for doing android programing in scala yet? Sep 13 22:19:45 what's a scala? Sep 13 22:19:48 haha Sep 13 22:19:51 it's the future! Sep 13 22:20:06 i've never heard anyone talk about it in here... ever Sep 13 22:20:18 lol, suuuure. Sep 13 22:20:24 http://scala-ide.org/docs/tutorials/androiddevelopment/index.html looks like their is. Sep 13 22:21:05 red flag: The Scala library therefore needs to be embedded in every Android application that uses it. Sep 13 22:21:19 i guess ProGuard helps with that Sep 13 22:21:24 Android 4.4 is bringing Groovy support anyways... scala schmala Sep 13 22:21:25 is there a jar for scala? I'd like to use it in my app Sep 13 22:21:39 evanc, a jar for scala? no, heh Sep 13 22:21:43 well, yes Sep 13 22:21:45 but well.. Sep 13 22:21:48 scala-library.jar Sep 13 22:22:23 jedir0x, anyway, maybe it's a samsungism, test it on a nexus phone? Sep 13 22:22:36 :( i don't have one Sep 13 22:22:43 i have a galaxy s3 Sep 13 22:22:49 but the screen is fucked Sep 13 22:22:57 here's the deal - it doesn't crash for me Sep 13 22:23:04 but it crashes for a lot of other users Sep 13 22:23:09 JakeWharton, like groovy doesn't suck Sep 13 22:23:15 then again - i don't use it like a "user" Sep 13 22:23:28 I've nevr used it. I write closure Sep 13 22:23:57 clojure ? :P Sep 13 22:23:57 but Crashalytics (pretty cool service btw) was bombing me with OutOfMemory error reports Sep 13 22:24:00 jedir0x, and it crashes for users for what? Sep 13 22:24:03 g00s: same thing Sep 13 22:24:25 oome? but is it because of this memory leak, or is it something else... Sep 13 22:24:40 for various things actually - but always OutOfMemoryError Sep 13 22:25:01 jedir0x, anyway, I do all of my personal development exclusively in scala for android Sep 13 22:25:11 'cept for a few stragglers which I never bothered to write in scala Sep 13 22:25:15 so one thing that's weird is that if this was a real memory leak - why wouldn't an activity for each rotation stick around? why's it stop at 2? Sep 13 22:25:32 jedir0x, right, that's why I'm asking if you could test on a nexus image instead Sep 13 22:25:50 i see Sep 13 22:26:08 so how do you like scala for android development? any "gotchas" i should know about? Sep 13 22:26:17 i've been looking for a reason to learn scala "for real". Sep 13 22:26:37 (meaning i've played with it for a few minor things but nothing important) Sep 13 22:26:44 jedir0x, http://stackoverflow.com/questions/14135931/memory-leak-through-iclipboarddatapasteeventimpl Sep 13 22:27:03 oooh, good find Sep 13 22:27:26 jedir0x, I would choose never to write android in java if I could Sep 13 22:27:34 jedir0x, (professional reasons, not personal) Sep 13 22:27:48 gotchas? not really Sep 13 22:27:53 just use my sbt plugin and it's pretty easy going Sep 13 22:28:03 do you use eclipse? Sep 13 22:28:04 I have lots of examples and tests building android apps in scala Sep 13 22:28:07 no, intellij or vim Sep 13 22:28:12 cool Sep 13 22:28:17 https://github.com/pfn/keepshare Sep 13 22:28:20 my most recent project in scala Sep 13 22:28:38 https://play.google.com/store/apps/details?id=com.hanhuy.android.keepshare Sep 13 22:28:40 which results in that Sep 13 22:29:37 hrm, I keep spilling water in my keyboarqd, hopefully it qdoeqqqsqnq't die soon Sep 13 22:29:44 or maybe it should so I can get a nice code keyboard ;-) Sep 13 22:30:05 jedir0x, https://github.com/pfn/android-sdk-plugin/tree/master/sbt-test/android-sdk-plugin Sep 13 22:30:14 also a collection of test cases that serve as simple sample project/templates Sep 13 22:30:20 cool Sep 13 22:30:43 dumb question, but can you use akka on android? Sep 13 22:30:50 probably could, I haven't Sep 13 22:30:58 heh, that'd be interesting Sep 13 22:31:04 pointless, but interesting. Sep 13 22:31:29 it'd be like the guy that used cygwin to compile wine, and then in wine compiled cygwin and in that cygwin compiled wine and so on and so forth Sep 13 22:31:40 actually, it'd be nothing like that - just as pointless Sep 13 22:31:49 well, if you like programming with actors, it'd probably work fine Sep 13 22:33:02 I don't like how it decouples everything and kills typesafety Sep 13 22:33:43 I think I'd prefer a nice Futures library Sep 13 22:34:18 yeah, the decoupling is pretty extreme Sep 13 22:34:24 https://play.google.com/store/apps/details?id=com.hanhuy.android.irc.lite Sep 13 22:34:24 but it sure does scale well Sep 13 22:34:27 also, that's in scala as well Sep 13 22:34:49 cool Sep 13 22:35:20 jedir0x i don't use scala, but you can use RxJava from scala Sep 13 22:36:15 this is a nice article http://mttkay.github.io/blog/2013/08/25/functional-reactive-programming-on-android-with-rxjava/ Sep 13 22:37:36 cool Sep 13 22:38:02 http://www.infoq.com/news/2013/08/reactive-programming-emerging Sep 13 22:38:25 Odersky and Meijer are going to teach something on Coursera soon Sep 13 22:39:17 pfn: so maybe I shouldn't worry about this activity leak - because it seems like it's out of my hands. but with that said - maybe i should do some cleanup in onDestroy just to be sure? Sep 13 22:41:11 jedir0x, right Sep 13 22:49:58 evanc do you know why AS bundles in half the sdk (platform as well as tools?) Sep 13 22:55:39 g00s: I haven't the slightest clue, sorry Sep 13 22:55:46 thanks Sep 13 22:56:21 would be cool if we could get xavd to hang out here again once in a while Sep 13 22:56:29 I still haven't made the AS leap yet Sep 13 22:56:59 i hate intellij Sep 13 22:57:01 not sure i have either :P Sep 13 22:57:09 for whatever reason - it's just always sucked for me Sep 13 22:57:34 if the adt gets full gradle support i can go back to eclipse Sep 13 22:57:47 i played with AS though - seemed cool. Sep 13 22:57:47 both are nice Sep 13 22:58:05 i'd really like to just use SublimeText2 Sep 13 22:58:22 but i've grown dependent on eclipse for android development Sep 13 23:00:34 jedir0x yeah ST2 is nice too. just noticed ST3 is now public for everyone Sep 13 23:00:59 i dabble in vim and emacs too, all have their charms Sep 13 23:01:38 i have two major requirements for an editor: 1 Syntax highlighting and 2: CTRL+SHIFT+R (or CTRL+P in st2) style file opening Sep 13 23:01:52 i could care less about seeing a tree of files - i know the name of the file i want to open Sep 13 23:01:55 vim ctrl-p is kinda cool, not sure if its like ST2 though Sep 13 23:02:06 http://kien.github.io/ctrlp.vim/ Sep 13 23:02:50 ST2 is nice though for browsing some code base, wheni don't know the file names. just kinda poking here and there Sep 13 23:03:09 g00s, do you have to ask why? :p Sep 13 23:03:19 g00s, seriously, 1 download to rule them all Sep 13 23:03:22 you should know that by now Sep 13 23:03:34 pfn you mean vim ? Sep 13 23:03:51 g00s> evanc do you know why AS bundles in half the sdk (platform as well as tools?) Sep 13 23:03:56 oh Sep 13 23:03:58 * pfn & Sep 13 23:04:25 i hate 4000k files being duplicated and not really knowing wtf is being used Sep 13 23:04:28 pfn: command not found Sep 13 23:04:46 g00s: 4000k? four million files? Sep 13 23:04:53 oops, 4000 files Sep 13 23:05:28 on mac, a bundle is immutable (or should be treated that way) so anything else AS fetches has to go … presumably in the real mccoy sdk tree Sep 13 23:05:40 whatever :) Sep 13 23:06:48 JesusFreke ELI5: whats the difference between ST2 and ST3 ? Sep 13 23:07:00 is it worth trying ST3 , or is it still buggy since its beta ? Sep 13 23:07:12 g00s: I haven't noticed much difference Sep 13 23:07:24 ok, i'll just use St2 for now then Sep 13 23:07:37 st3 has been working fine for me, haven't noticed any bugs Sep 13 23:08:28 hmm, actually i think xcode throws the simulator in its app bundle Sep 13 23:08:38 or parts of the cli tools Sep 13 23:09:35 does anyone have any experience with this project: https://github.com/chrisbanes/Android-BitmapCache ? Sep 13 23:29:25 it's a separate download through xcode's update thinger g00s Sep 13 23:30:28 i just looked in the xcode app bundle and couldn't find the sim. at least part of the cli tools went into /usr/bin Sep 13 23:30:52 i hate os x .pkg stuff Sep 13 23:32:31 show package contents Sep 13 23:32:59 where do i find my build.gradle file in android studio? Sep 13 23:49:50 pfn, i think i've fixed it Sep 13 23:49:54 it's ghetto, but it works Sep 13 23:50:26 https://gist.github.com/briandilley/3b56dcdb833efe34ca1a Sep 13 23:51:40 wtf Sep 13 23:51:53 yes, it clears the WTF Sep 13 23:51:59 no Sep 13 23:52:01 that is wtf Sep 13 23:52:07 haha Sep 13 23:52:16 why are you setting mContext of your LayoutInflater to null Sep 13 23:52:27 PhoneLayoutInflater is holding on to my activity and leaking it Sep 13 23:52:34 lol Sep 13 23:52:41 its suppose to Sep 13 23:52:42 it sounds crazy, but i've been dealing with this for a few days now Sep 13 23:52:47 no - AFTER onDestroy Sep 13 23:52:51 it still does Sep 13 23:52:51 yes Sep 13 23:52:53 it is Sep 13 23:53:04 so how is my activity supposed to get collected? Sep 13 23:53:22 its because you hold a reference to the LayoutInflater AFTER the activity has been onDestory()'d Sep 13 23:53:36 the LayoutInflater is owned by the activity Sep 13 23:53:58 ive seen it all before Sep 13 23:54:00 check your Adapters Sep 13 23:54:28 https://gist.github.com/briandilley/171055c41da1bdf32a96 Sep 13 23:54:46 adapter.notifyDataSetInvalidated(); Sep 13 23:54:46 adapter = null; Sep 13 23:54:49 jedir0x: hang on a moment Sep 13 23:54:51 and i do taht in onDestroy() Sep 13 23:55:02 no, no Sep 13 23:55:03 lol Sep 13 23:55:15 first off where are you using LayoutInflation Sep 13 23:55:20 thats your starting point Sep 13 23:55:22 nowhere Sep 13 23:55:27 setContentView(R.layout.activity_photo_selector); Sep 13 23:55:29 except for that Sep 13 23:55:49 what about SlideshowAdapter Sep 13 23:55:55 are you using someone else's code? Sep 13 23:56:04 gridImageItem = new LoadableImageView(PhotoSelectorActivity.this); Sep 13 23:56:08 no, it's mine Sep 13 23:56:20 in LoadableImage view i do this: View.inflate(context, R.layout.loadable_image_view, this); Sep 13 23:56:29 gist your getView of SlideshowAdapter Sep 13 23:56:50 https://gist.github.com/briandilley/f62de54a5a373c9bb117 Sep 13 23:58:04 loool Sep 13 23:58:08 i see your problem Sep 13 23:58:13 please enlighten me Sep 13 23:58:31 i've been pounding nails into my penis for 3 days straight over this Sep 13 23:58:36 never ever ever ever.. ever... ever... ever... ever... ever... ever... make anonymous AsyncTask's Sep 13 23:58:37 lol Sep 13 23:58:51 you think that's it? Sep 13 23:59:17 i'll turn it into a static inner and try again Sep 13 23:59:40 we'll its holding a hidden reference to its parent Sep 13 23:59:55 which is SlideshowAdapter Sep 14 00:00:04 and does that hold a reference to the Activity? Sep 14 00:00:15 yeah Sep 14 00:00:19 but the task dies right? Sep 14 00:00:23 i mean, after it's run it's gone Sep 14 00:00:24 theres a possible leak right there Sep 14 00:01:20 true, but im not sure how your weirdness is working here Sep 14 00:01:39 this.cancel(false); // interesting ues Sep 14 00:01:41 use Sep 14 00:01:57 i suppose that could work Sep 14 00:02:02 yeah, makes it call onCancelled instead Sep 14 00:02:39 the adapter is anonymous too Sep 14 00:02:43 omg Sep 14 00:02:48 this explains a lot Sep 14 00:03:09 it's a private member of the activity though Sep 14 00:03:14 not sure how that would cause a leak Sep 14 00:03:36 possibily not, but it can premote them Sep 14 00:03:46 premote Sep 14 00:03:54 is that like precum? Sep 14 00:03:58 pretty much Sep 14 00:04:00 :P Sep 14 00:04:07 ;) Sep 14 00:04:54 https://github.com/slightfoot/android-asynctask-correctly Sep 14 00:04:59 https://github.com/slightfoot/android-asynctask-correctly/blob/master/AsyncTaskCorrectly/src/com/demondevelopers/asynctaskcorrectly/MainActivity.java Sep 14 00:05:03 might help you out Sep 14 00:05:26 it was based on someone elses code that used an AsyncTask the other day in here Sep 14 00:05:52 just enough to show them a better way, there are other mech's and this is just one Sep 14 00:06:07 yeah, i'm doing it that way in my fragments actually Sep 14 00:06:16 just hadn't gotten around to updating this Sep 14 00:06:17 but the general gist is, you cant just fire-and-forget an AsyncTask unless you really and truely want to forget about the result Sep 14 00:06:20 i may as well now Sep 14 00:07:34 btw Sep 14 00:07:36 https://gist.github.com/briandilley/171055c41da1bdf32a96 Sep 14 00:07:49 what about i Sep 14 00:07:50 t Sep 14 00:07:56 ig your going to null slideshow, then atleast null check it on getCount and getItem Sep 14 00:08:32 invalidate and crash, always been my motto Sep 14 00:08:33 :P Sep 14 00:08:35 i thought the same thing - but the docts for notifyDataSetInvalidated say that the adapter is useless after calling that anyway. Sep 14 00:08:43 docs* Sep 14 00:08:52 your miss-reading Sep 14 00:09:03 it basicly is saying "it should now be" Sep 14 00:09:10 Once invoked this adapter is no longer valid and should not report further data set changes. Sep 14 00:09:13 in otherwords by contract, you should make it so Sep 14 00:09:31 jedir0x: do you know what an adapter is? Sep 14 00:09:42 yes, of course. Sep 14 00:09:55 well you know that statement only makes sense, if you make it so Sep 14 00:09:56 http://en.wikipedia.org/wiki/Adapter_pattern Sep 14 00:10:06 i mean on Android Sep 14 00:10:17 not the generic term Sep 14 00:10:26 it means the same thing - it's a design pattern right? Sep 14 00:10:40 what's a dthat Sep 14 00:10:54 its a pattern, but in Android's case its also a class Sep 14 00:10:57 it makes data available to a view - it "Adapts" the data Sep 14 00:10:58 What do I need to know about running the android SDK on a 64bit Ubuntu box? Sep 14 00:11:03 android's adapter's arent GOF adapters Sep 14 00:11:06 that class as a interface you have to adhere to Sep 14 00:11:46 either way, it's a good suggestion and i'll implement it. Sep 14 00:12:02 i just didn't initially because the docs spefically say that the adapter is no longer valid. Sep 14 00:12:06 funkbox: have to love the GoF Sep 14 00:12:17 arg Sep 14 00:12:39 they have the same nam ebut they don't twerk the same way Sep 14 00:12:56 indeed Sep 14 00:12:58 firetwerks Sep 14 00:13:38 http://www.youtube.com/watch?v=9Xc0vg-QVlU Sep 14 00:15:34 so what would you do in the case of an AsyncTask that you'll have more than one of at a time? Sep 14 00:15:57 add them to a list\set on the activity and expunge as needed? Sep 14 00:20:28 WakefulBroadcastReceiver not found in support v4? Sep 14 00:21:49 jedir0x: define a contract here, you know that each result of the adapter can only ever have 1 AsyncTask assocated to it.. and that once your done with the dataset you will call invalidate and if a view is re-used you should cancel the current task for it Sep 14 00:21:54 sounds simple enough Sep 14 00:22:52 jedir0x: so the easy fix is create a private static AsyncTask and use setTag getTag with an id defined in resources something like Sep 14 00:23:22 i see Sep 14 00:25:08 jedir0x: in your getView.. getTag it.. if its not finished cancel it.. then always instantiate a new AsyncTask.. the AsyncTask since its private now needs an interface which your adapter can implement can null before cancel, so that your current onCancelled can test for null and not update UI with error message if the callback doesnt exist.. or some such Sep 14 00:25:33 hey g00s Sep 14 00:25:34 wb Sep 14 00:25:38 :) Sep 14 00:25:40 hey Napalm Sep 14 00:25:48 just teaching someone the finer points of AsyncTask Sep 14 00:25:57 seem's to be a common topic at the moment Sep 14 00:26:02 well, its always been Sep 14 00:26:03 luckily, i never use it :D Sep 14 00:26:10 yea, me neither Sep 14 00:26:24 really? Sep 14 00:26:26 it's so awesome Sep 14 00:26:36 canadiancow srsly? Sep 14 00:26:39 yes Sep 14 00:26:44 O.O Sep 14 00:26:53 canadiancow: it can be, if used correctly.. but so many people don't understand its use and f' it up Sep 14 00:26:57 lol Sep 14 00:46:32 having trouble referenceing google play services project Sep 14 00:53:27 referenced google play services project as a module in android studio, added it as a dependency to my project, and even copied the jar into my libs folder. still i can't import classes from it Sep 14 01:10:03 hi Sep 14 01:14:14 why don't my project files show in android studio? Sep 14 01:14:32 that's an odd question Sep 14 01:14:46 happy 2^8 day! Sep 14 01:15:09 you deleted them. you opened a wrong project. you've collapsed the folder structure. Sep 14 01:15:13 just a few guesses Sep 14 01:15:39 happy 256 to you too Sep 14 01:22:19 phpwner: press the icon in the bottom left of Android Studio this will show you the docked panels.. to the left of the current document on the left edge you will probably see the project explorer Sep 14 01:34:56 Hey guys, Im continuing a project I left about two months ago.. Now that I'm back in, it decides it doesn't want to work() I get an error that says "Error inflating class". It also says something about line #15 of an xml file. Could anyone please explain me what might be happenning real fast? (Sorry, my browser is crashing...) Sep 14 01:35:48 wilornel: look further down your stack-trace for the "cause" Sep 14 01:37:42 OMFG Sep 14 01:37:44 i found the leak Sep 14 01:37:47 like, for real this time Sep 14 01:37:59 jedir0x, Clean up the mess Sep 14 01:38:03 i do this in: ActionBar actionBar = getSupportActionBar(); Sep 14 01:38:04 actionBar.setCustomView(R.layout.action_bar); Sep 14 01:38:09 Napalm: I have three of them: https://gist.github.com/kovek/6557930 Sep 14 01:38:12 to setup a custom action bar Sep 14 01:38:28 well - something higher up keeps a reference to the action bar Sep 14 01:38:35 which has a reference to my layout inflator Sep 14 01:38:41 I checked the third one. I'm never callin setOnClickListener Sep 14 01:38:43 well, has a reference to my custom view Sep 14 01:38:47 calling* Sep 14 01:38:57 getSupportActionBar().setCustomView(null); in onDestroy() fixed it Sep 14 01:39:10 for the record Napalm, i still implemented your suggestions ;) Sep 14 01:39:33 only time I'm using a ClickListener is at this point: >>ListView lv = (ListView) findViewById(R.id.listView1); Sep 14 01:39:33 lv.setOnItemClickListener(new OnItemClickListener() { Sep 14 01:39:53 jedir0x: you might want to check your custom nav view, its holding a reference to the activity Sep 14 01:40:00 This is at a ListView. My app is crashing when I click a button on another view, not on the list view. Sep 14 01:40:45 i literally do nothing Napalm Sep 14 01:40:46 wilornel: one of your child-views you inflate might have android:onclick attribute Sep 14 01:40:47 just this Sep 14 01:40:50 actionBar.setCustomView(R.layout.action_bar); Sep 14 01:41:02 and that's just an XML file - has a logo in it. Nothing more. Sep 14 01:41:12 jedir0x: what does R.layout.action_bar has? Sep 14 01:41:19 ImageView with a logo Sep 14 01:41:19 jedir0x: are you using the app-compat lib? Sep 14 01:41:22 ys Sep 14 01:41:23 yes* Sep 14 01:41:28 you sir found a bug Sep 14 01:41:30 report it Sep 14 01:41:38 will do Sep 14 01:41:48 where do i report it? Sep 14 01:42:05 android:onClick="switchToGraph"/>. That's the exact button that's causing the app to crash Sep 14 01:42:08 now i can pull all of the nails out of my penis Sep 14 01:42:16 wilornel: thats why dont use onclick Sep 14 01:42:22 what should I use instead? Sep 14 01:42:34 jedir0x: search here first.. if you cant find it then submit one.. http://b.android.com/ Sep 14 01:43:27 jedir0x: you might want to create a sample project that only set's the custom nav view to verify it Sep 14 01:44:15 wilornel: set the onclick listener of the view in code Sep 14 01:44:22 hello channel Sep 14 01:44:54 Alright I'll try to. Why not use onClick though? Sep 14 01:45:14 Where can iget some good resources for Android development? Sep 14 01:45:41 Zmax: Do you need tutorials?... Sep 14 01:45:52 Zmax: http://d.android.com/training Sep 14 01:45:53 I mean, are you looking for*? Sep 14 01:45:55 EX. Ebooks, snippets, etc. Sep 14 01:46:30 Napalm, i did that Sep 14 01:47:00 or rather, in this project i changed my launcher activity to an 'empty' one Sep 14 01:47:02 http://code.google.com/p/android/issues/detail?id=60067&thanks=60067&ts=1379123172 Sep 14 01:47:33 Napalm: Thanks, I've downloaded some Ebooks through torrents and found them very helpful, I'm just looking for others to compare. or even code snippets, etc. thanks Sep 14 01:47:58 Zmax: don't steal, it's not cool Sep 14 01:48:15 *paid torrents Sep 14 01:48:25 funkbox, stealing is when you take something from someone else Sep 14 01:48:26 paid Sep 14 01:48:51 ie: you have X. i take X from you without your permission, you no longer have X, i have X. Sep 14 01:48:51 torrent isnt always for stealing stuff Sep 14 01:50:08 XXCoder: True. Sep 14 01:50:50 jedir0x: yep, which is why it's also okay to not pay for anyone's app or any music Sep 14 01:51:32 funkbox, i was being facetious Sep 14 01:52:00 public information isn't stealing Sep 14 01:52:01 ah okay, it doesn't carry well on the internet Sep 14 01:52:25 but i see where your coming from funkbox Sep 14 01:52:32 it's not public Sep 14 01:52:36 Zmax, public information as presented by someone specific can be however. Sep 14 01:52:43 funkbox owns coming? Sep 14 01:52:55 ie: we all know 1 + 1 is 2 Sep 14 01:53:13 but if i make a video of me explaining that and put it up for sale - it's mine. Sep 14 01:53:16 Agree there are loopholes Sep 14 01:53:17 and it's not free Sep 14 01:53:38 what loopholes? Sep 14 01:54:49 they're kinda like buttholes, but they are stinkier Sep 14 01:55:24 jedir0x: well said Sep 14 01:55:30 jedir0x: you did'nt mention you were using the appcompat lib or what version Sep 14 01:56:16 didn't realize it was relevant Sep 14 01:56:45 :| Sep 14 01:56:49 :) Sep 14 01:57:03 appcompat needs something for drag and drop Sep 14 01:57:08 so i can support api level 9 and up Sep 14 01:57:36 Thanks for the info Sep 14 01:58:58 jedir0x: drag-and-drop of what Sep 14 02:00:57 setOnDragListener Sep 14 02:02:03 :| Sep 14 02:02:20 jedir0x: what are you trying to drag-and-drop.. list items? Sep 14 02:02:33 yeah, in a gridview Sep 14 02:02:42 you can do that Sep 14 02:02:56 is this to re-organise a data-set? Sep 14 02:03:01 yeah Sep 14 02:03:12 hmm Sep 14 02:03:19 want some free code? Sep 14 02:03:23 sure Sep 14 02:03:31 me thinks i'll make that Sep 14 02:03:38 cool Sep 14 02:04:16 https://github.com/bauerca/drag-sort-listview Sep 14 02:04:16 there Sep 14 02:04:22 noooooooooooooooo Sep 14 02:04:30 dont use that Sep 14 02:04:35 the scrolling is a bitch Sep 14 02:04:35 holy hell no Sep 14 02:04:36 lol Sep 14 02:04:49 funkbox: as in? Sep 14 02:05:01 having the listview scroll properly Sep 14 02:05:17 mmm Sep 14 02:05:24 jedir0x: you going to update your issue ticket? Sep 14 02:05:37 ? Sep 14 02:05:59 jedir0x: http://code.google.com/p/android/issues/detail?id=60067 Sep 14 02:06:05 to mention the appcompat lib and its version Sep 14 02:06:09 oh, yeah Sep 14 02:06:31 _that_ is what you meant :) Sep 14 02:06:54 :| Sep 14 02:07:03 * Napalm thinks why he even botheres Sep 14 02:07:05 :D Sep 14 02:07:07 Why can't I use android:onClick? Sep 14 02:07:14 because its fail Sep 14 02:07:18 :) Sep 14 02:07:19 >:| Sep 14 02:07:20 what's the difference between support-v4 and support-v7-appcompat ? Sep 14 02:07:21 since when? Sep 14 02:07:26 since always Sep 14 02:07:39 what is an alternative? And why did it use to work? Sep 14 02:08:04 it still works, but it promotes bad code and a no direct linkage Sep 14 02:08:34 hm... to me it looks pretty easy to understand Sep 14 02:08:55 easy != good Sep 14 02:09:15 By a "no direct linkage" you mean it is using a more complex path to call the function than it should Sep 14 02:09:17 ? Sep 14 02:09:56 no, the layoutinflater is creating the onclicklistener and calling your method Sep 14 02:10:11 which is not visible Sep 14 02:10:18 (I have to go) Could you quickly demonstrate an alternative? Sep 14 02:10:24 you can refactor your code and your layouts suddenly fail Sep 14 02:10:29 oh wait, thats what happened to you Sep 14 02:10:31 :P Sep 14 02:10:41 I refactored my code? Sep 14 02:10:49 wilornel: are you serious? Sep 14 02:10:53 hello Sep 14 02:11:01 I have no idea what refactoring is... Sep 14 02:11:08 wilornel: findViewById(R.id.my_stupid_button).setOnClickListener(blah); Sep 14 02:11:25 in your adapter's getView method Sep 14 02:12:24 wilornel: actually probably whats happened to you is you are now compiling with a later version of the sdk or your manifest is now targeting a later version Sep 14 02:12:58 wilornel: but thats besides the point, since if you want to target and use the new api-level's you will need to fix your code Sep 14 02:22:21 jedir0x: i've clarified your bug ticket Sep 14 02:23:51 ok, thanks Sep 14 02:24:05 anyone here make a keyboard before? Sep 14 02:34:19 hello Sep 14 02:44:17 Any idea why I might be getting this android.os.TransactionTooLargeException in android.os.BinderProxy.transact:http://pastebin.com/6VLh1XVL (Google Play Stack Trace) ? Sep 14 02:48:58 is there any way to do single channel that also allows me to do draw stuff like drawCircle? Sep 14 02:49:10 I don't wanna use full argb_8888 Sep 14 02:52:25 Final means whatever item I init stay there if function is called again? so it won't call new whatever() again? Sep 14 02:52:56 no Sep 14 02:53:38 are you saying final in a local variable, an instance variable, a static variable. Sep 14 02:53:45 more context would help Sep 14 02:54:19 I think its better to google Final see what it does. maybe save time for you :) Sep 14 02:55:04 yeah, if you need clarification on a particular instance, just let me know. Sep 14 02:55:12 thanks Sep 14 02:55:46 ahh for variable it means you cannot refine it anywhere else in class Sep 14 02:55:53 correct enough?> Sep 14 02:56:00 redefine Sep 14 02:56:28 you can't set it twice, correct Sep 14 02:57:30 gavilan2: your bundles/parcels are too large Sep 14 02:58:08 XXCoder: you cant be serious? Sep 14 02:58:51 Napalm: bundles/parcels while doing what? Sep 14 02:59:18 XXCoder: http://developer.android.com/reference/android/graphics/Bitmap.Config.html#ALPHA_8 Sep 14 02:59:50 Napalm: yeah alpha channel. I was trying to find if there is way to draw direct to alpha channel. **** ENDING LOGGING AT Sat Sep 14 02:59:59 2013