**** BEGIN LOGGING AT Thu Aug 01 02:59:58 2013 Aug 01 03:03:35 correct Aug 01 03:03:53 you can for certain things in api11+ Aug 01 03:06:22 helo Aug 01 03:08:07 whats up everybody Aug 01 03:11:50 it's very quiet Aug 01 03:11:51 that's what ups Aug 01 03:13:00 pfn, oh okay, thanks. Just got slightly confused. Less theme writing then :D Aug 01 03:14:23 alright, time to hack on the pstat for my espresso machine a bit Aug 01 03:14:44 :-) Aug 01 03:14:49 any details online? Aug 01 03:15:06 ? Aug 01 03:15:27 about your espresso machine -- seems like you've managed to get a linux shell or something on it Aug 01 03:15:45 :D Aug 01 03:16:42 no Aug 01 03:16:50 it's all/mostly mechanical Aug 01 03:16:58 it's just a pressure switch, so I can lower the temperature Aug 01 03:17:26 oh :-) my mind went somewhere else hearing "pstat" Aug 01 03:32:33 "Psychotherapy via internet as good as if not better than face-to-face consultations" Aug 01 03:32:39 and then, there is IRC :/ Aug 01 03:33:49 IRC therapy Aug 01 03:38:34 lol Aug 01 04:02:09 I'm trying to use RandomAccessFile to open a file in rw mode, however the file fails with FileNotFoundException in rw mode, but works in r mode. How can I make this file writeable? Aug 01 04:11:21 nevermind, forgot to add permissions for writing Aug 01 04:22:31 helo Aug 01 04:22:56 So if I have a styles file in v11 and sw600dp Android will not merge them right? It will use either-or? Aug 01 04:24:27 welp, guess not just found this graphic: http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch Aug 01 04:28:14 * Bleeptech does the happy dance.. Aug 01 04:28:43 I finally got ASyncTask to behave in a civilized manner.. Aug 01 04:32:54 why would you need one.... Aug 01 04:33:11 it's sync, so you might as well not even use it Aug 01 04:35:01 pfn: Uhh.. It made the annoying NetworkOnMainThread errors go away.. LOL.. :D Aug 01 04:35:10 Hey guys, is there a way to get the fragment at a position with a FragmentStatePagerAdapter or a ViewPager? Aug 01 04:36:10 (get the instance of it that is) Aug 01 04:39:55 i don't have arrow buttons on my tablet, so how do i select gui components such as buttons? Aug 01 04:44:30 BullShark: You use the compatability bits.. Aug 01 04:45:51 Bleeptech -> what are the compatibility bits? Aug 01 04:46:07 Aug 01 04:46:10 Aug 01 04:46:19 i'd like to trigger android:state_focused Aug 01 04:46:26 ollienx, what's wrong with getItem? Aug 01 04:47:14 pfn: cannot be resolved. Aug 01 04:47:34 BullShark: Not sure..I just remember seeing something in the API's about soft buttons when hard buttons are missing. Aug 01 04:48:14 hey everyone whats this about Aug 01 04:48:15 ollienx, read api docs Aug 01 04:48:23 getItem is legit Aug 01 04:50:26 I know it exists, I do override it in my custom FragmentStatePagerAdapter, but when call it in the instnatiated one, it can't be resolved Aug 01 04:50:40 cast Aug 01 04:50:52 Cast waht to what? Aug 01 04:50:56 *what Aug 01 04:54:22 pfn: I apologize for the dumb question, but I do not know what you are telling me to cast and to what type Aug 01 04:56:29 this is so damn infuriating. is the order of stuff in a gradle file important ? Aug 01 04:58:44 gradle sounds hard Aug 01 04:58:53 its totally un-intuitive that calling android.libraryVariants.each causes side effects Aug 01 04:59:00 basically its like iterating over a collection Aug 01 04:59:13 wabz i hate it Aug 01 04:59:29 and i dont trust the google team to give us something that is robust Aug 01 05:00:58 calling the above ^^^ caused tasks.whenTaskAdded to not be called ... Aug 01 05:01:11 but calling that within whenTaskAdded gave random results Aug 01 05:01:53 i get the impression the google guys always like to have fun solving complicated problems, but i'm not sitting in a cubicle farm next to 300 people with IQs over 160 Aug 01 05:02:57 and my frustration tolerance is even lower now that i'm using xcide which has its flaws, but basically just works Aug 01 05:03:22 (few bugs here and there, 4.0 was pretty bad) Aug 01 05:03:31 g00s: my problem with iPhone dev isn't XCode, but Obj C in general Aug 01 05:03:40 i wish obj-c had namespaces Aug 01 05:03:43 objc is awesome! Aug 01 05:03:46 but otherwise i'm ok with it Aug 01 05:03:50 xcode can be pretty painful :p Aug 01 05:03:55 I find the syntax funny in some places Aug 01 05:04:00 yeah Aug 01 05:04:08 I do remember something last year Aug 01 05:04:10 it gets verbose with all the named parameters Aug 01 05:04:14 I tried to recreate MasterMind for iPhone Aug 01 05:04:33 g00s: it forces xcode's auto completion to be awesome Aug 01 05:04:35 for some reason I couldn't create an array of ImageViews, so I ended up defining over 100 ImageViews individually Aug 01 05:04:36 not fun. Aug 01 05:05:24 the linker can be a pain Aug 01 05:05:34 esp. with categories Aug 01 05:06:06 i thought i would like gradle because i liked scons. i used scons for c++ and was intrigued of an internal DSL + scripting language when you needed it Aug 01 05:06:28 the secret was hardly ever dropping into the scripting language Aug 01 05:06:53 building is messy, build scripts can be messy, and scripted builds get very messy Aug 01 05:07:40 i kinda wonder … if the of the things that makes android builds a big pain for most build systems, is the resource merging Aug 01 05:07:51 *one of the things Aug 01 05:08:45 the way the current stuff is implemented, there is a combinatorial explosion of tasks defined for variants; so when you need to change the dependency structure of these (by maybe going first with your own task) its a PITA Aug 01 05:09:24 oh well, it is what it is Aug 01 05:10:48 There was an Android meetup today... Aug 01 05:11:16 ...and I polled people if they used BroadcastReceivers to see where clicks to download their app were coming from... Aug 01 05:11:25 ...and absolutely no one was doing it... Aug 01 05:11:59 I have to set that up...especially since Google is going to make it look all nice in Analytics supposedly Aug 01 05:12:18 how does that work? Aug 01 05:12:35 Ologn can you explain, i didn't get that Aug 01 05:12:48 there are all these crazy conversion tracking sds out there Aug 01 05:12:50 sdks Aug 01 05:12:58 facebook, admob etc Aug 01 05:13:32 hmm, where's that web page... Aug 01 05:14:49 I believe how it works Aug 01 05:15:25 Is someone clicks on a web page, or an Admob ad, or a Twitter tweet, gets to Google Play and downloads your app Aug 01 05:15:38 When that happens, com.android.vending.INSTALL_REFERRER sends an Intent out Aug 01 05:16:15 If your app has a BroadcastReceiever listening to it, you can see where the referral came from...and stuff like Analytics etc. kind of automate that some Aug 01 05:17:18 I have to look at it more...especially since they're beefing up the Analytics end of it...which will even be integrated in the Play developer console Aug 01 05:17:33 that's interesting Aug 01 05:17:57 https://developers.google.com/analytics/devguides/collection/android/v2/campaigns Aug 01 05:19:42 I have to dive into it more so I have a handle on it...I've been knee deep in JNI stuff though Aug 01 05:32:00 cool Ologn , i'll have to check this out Aug 01 05:32:48 Yes...if I saw I was getting good ROI on certain ads, I might advertise a lot more... Aug 01 05:33:35 Way into one of the I/O talks on getting good positioning in Play, the speaker let it be known that good web links to your app help, although he was vague about it Aug 01 05:34:22 Like if nicely pageranked web pages mention your app, it pushes its position up in Play Aug 01 05:39:42 How do you save a bitmap to the user's gallery? Aug 01 05:40:34 if you save it on the external storage Aug 01 05:40:43 like make a folder for your app on the sd card Aug 01 05:40:47 just save it on the sd card Aug 01 05:40:56 holy shit, the silver searcher is fast as hell Aug 01 05:41:08 and it will automatically be in the gallery Aug 01 05:42:25 lemonxah: not really, it's only picked up use trigger the Media Scanner Aug 01 05:42:37 lemonxah: http://stackoverflow.com/questions/17913525/saving-a-bitmap-to-disk-gallery-in-android-4-3 Aug 01 05:42:57 i have not triggered the media scanner and mine was in there automagically Aug 01 05:43:30 infact i didn't even want mine in the gallery and i couldn't keep it out Aug 01 05:43:52 lemonxah: definitely didn't work for me since had users complain pics weren't being picked up in the gallery originally (which is why I switched to this method) Aug 01 05:43:54 it was avatar cache, didn't want them in the gallery and couldn't keept hem out Aug 01 05:45:04 i am no subject matter expert its just something i picked up Aug 01 05:46:18 lemonxah: fair enough, I'm just confused why this method works fine for 4.2 users but not in 4.3 Aug 01 05:49:08 has anyone looked at appcompat lib? Aug 01 05:49:17 why would you use that over abs Aug 01 05:51:40 lemonxah during i/o they said if you are already using abs, no point in changing. otoh, for a new app, they recommended using appcompat Aug 01 05:51:59 or just minSdkVersion="14" Aug 01 05:52:06 otOH, yeah :) Aug 01 05:52:12 but minSdk = 15 Aug 01 05:52:40 yeah but 14 has more visceral weight Aug 01 05:53:48 JakeWharton what do you guys at square think about the gradle stuff ? Aug 01 05:53:54 collectively Aug 01 05:54:08 it's like the royal baby Aug 01 05:54:22 oh shit , hehe Aug 01 05:54:24 destined for greatness but too young to actually be useful Aug 01 05:54:50 useful for us, specifically Aug 01 05:55:00 it's perfectly useful for "simple" apps Aug 01 05:55:04 and likely to have some amusing or embarrassing screwups before reaching maturity? Aug 01 05:55:39 Leeds: absolutely Aug 01 05:55:40 they should have just taken what abs allready has Aug 01 05:56:07 lemonxah: hopefully they did. it's Apache 2. plus ABS is 75% ICS code anyways Aug 01 05:56:07 i was looking at google's effort but .. too many things has to change Aug 01 05:56:23 yeah .. good work on abs :) i likes it Aug 01 05:57:08 thanks Aug 01 05:58:05 only recently got into android development after 10 years of C# Aug 01 05:58:30 lemonxah: You must have done something awful in a past life to deserve 10 years of that Aug 01 05:58:31 so java is very frustrating for me :/ no multiple inherits was a big deal for me Aug 01 05:58:48 Brian|CB: thats where the money is in my country Aug 01 05:58:50 i miss getters and setters from C# Aug 01 05:58:54 and extension methods Aug 01 05:59:06 and everything being an object Aug 01 05:59:30 Anyone tried supportRequestWindowFeature (AppCompat)? Aug 01 05:59:31 i miss propper generics, multiple inheritence, anonymous methods and classes Aug 01 05:59:38 I miss people who used anything other than Microsoft products Aug 01 05:59:38 lol Aug 01 05:59:42 we have to use fucking SourceSafe at work Aug 01 05:59:43 >.> Aug 01 05:59:48 and extension methods also yes Aug 01 05:59:53 I'm surprised we don't drink Microsoft Visual Bottled Water Aug 01 05:59:58 Brian|CS nobody misses them :/ Aug 01 06:00:07 lol Brian|CB we did too .. then they siwtched to SVN and i took my team to use github Aug 01 06:00:14 Brian|CS: Microsoft Visual Bottle Water 2011 Enterprise Edition Aug 01 06:00:24 RT Aug 01 06:00:44 i dont miss visual studio .. but i miss the language features Aug 01 06:01:04 lambdas are useful Aug 01 06:01:29 c# async looks nice Aug 01 06:01:33 meh .. i wanna do scala android dev but the rest of the team doesn't want to learn new things Aug 01 06:01:34 Like, my company won't let us use anything but Source Safe ffs Aug 01 06:01:35 lol Aug 01 06:01:52 I'm not a full time employee so I can't really make a fuss Aug 01 06:01:54 so whatever Aug 01 06:02:02 lol sourcesafe .. you should just check everything out .. and then no one can do any work Aug 01 06:02:10 but yeah, if I was gonna work here full time I'd need to talk to all the VPs/CTO etc and get us on a git version control Aug 01 06:02:49 Brian|CS you guys really use VSS :? i thought that was discontinued like 10 years ago Aug 01 06:03:05 g00s: it probably was, it sucks ass Aug 01 06:03:14 We use Visual SS and all of our servers are ASP.NET Aug 01 06:03:15 they prob use team foundation Aug 01 06:03:22 which is still vss Aug 01 06:03:26 omg Aug 01 06:03:34 But we use JIRA, and some other atlassian tools Aug 01 06:03:42 are you guys all from the us? Aug 01 06:03:46 so I' starting to trying to slip in bit bucket ads when Ic an Aug 01 06:03:50 lemonxahYeah Aug 01 06:04:02 what time is it there now? Aug 01 06:04:06 its like 8am here now Aug 01 06:04:15 <-- south africa Aug 01 06:04:36 * Leeds waves from Asia Aug 01 06:04:37 It's 1 AM here(Illinois) Aug 01 06:05:12 so it was lucky i caught you guys online Aug 01 06:05:17 yay Illinois Aug 01 06:05:21 as far as i know TFS can have any VC provider; you can use git with it Aug 01 06:39:58 with an live wallpaper do i run the rendering in a seperate thread? Aug 01 06:41:36 huh Aug 01 06:41:39 no Aug 01 06:42:58 has anyone noticed that onMeasure is deprecated in the WebView class? Aug 01 06:58:43 pfn any cool flashlights lately? started trail running again; i use a zebralight sc600. looked around and didn't see much change; i guess LEDs kinda hit a wall? Aug 01 07:01:14 pretty much, I just have my 1cell(lithium) fenix Aug 01 07:02:54 i saw a fenix headlamp at a sporting good store; i guess they kinda made it. i remember when they were pretty fringe, like 2007-2008 Aug 01 07:03:35 pfn is this what you have ? http://www.fenixlight.com/ProductMore.aspx?id=81&tid=9&cid=1#.UfoIOmRxte4 Aug 01 07:07:31 yep Aug 01 07:07:40 that and a pd30 Aug 01 07:08:29 I have a surefire somewhere, but no idea where it went Aug 01 07:21:46 Jandf Aug 01 07:21:53 NO Aug 01 07:22:07 Really, really sorry. Aug 01 07:22:38 Hi. Would anyone know why ADB on windows disconnects frequently Aug 01 07:23:20 especially when multiple android tabs are pluged into the machine running the ADB command? Aug 01 07:23:41 adb is really flaky on my mac Aug 01 07:24:03 its probably a combination of shit OS + shit tools Aug 01 07:25:23 yeah. im using ADB to sync content to a lot of tabs Aug 01 07:25:32 but once i hit >4 devices Aug 01 07:26:02 the 5th device always disconnects Aug 01 07:34:28 praveenmarkandu, it disconnects frequently if you use multiple tools that connect Aug 01 07:34:33 and don't use adb to sync content Aug 01 07:37:05 I upgrade to tools version 22, among other broken things got the "unable to instantiate, class not found" problem. I already have Android Private Libraries enabled in the build path, cleaned and rebuilt - but it is still not working. Is there something else I can try? Aug 01 07:38:26 reboot the whole system Aug 01 07:38:42 hate it when stuff like that happens, vadi ;-) Aug 01 07:39:07 I'll give that a go, but I'm not in Windows Aug 01 07:39:27 pfn, what would you suggest I use Aug 01 07:39:55 just standard mtp Aug 01 07:43:22 I have this crash report when i try to getItemOnCLick through listview http://upaste.me/80d46728bb49671b Aug 01 07:43:29 please help what is wrong here Aug 01 07:43:42 i am using a adapter customized listview Aug 01 07:44:38 http://upaste.me/e32a67298494cded here is the code i am using Aug 01 07:44:41 androguy: code? Aug 01 07:44:57 f2prateek i have placed the code Aug 01 07:45:00 http://upaste.me/e32a67298494cded Aug 01 07:45:03 here Aug 01 07:45:47 l Aug 01 07:48:20 androguy what is line 300 in mainactivity? Aug 01 07:53:33 Good morning, Mr./Mrs. StingRay_ Aug 01 07:54:06 hi Aug 01 07:54:21 someone highlight me real quick please Aug 01 07:54:32 pfn: why? Aug 01 07:54:36 ty Aug 01 07:54:41 np Aug 01 07:54:44 close call Aug 01 07:57:24 https://plus.google.com/u/0/111751695436781052143/posts/5GfzHo577J5 Aug 01 07:57:59 formatText(c, m, res, bold(italics(textColor(nickColor, src))), msg) Aug 01 07:58:00 :) Aug 01 07:58:32 ah-ha :) Aug 01 07:59:37 https://gist.github.com/pfn/6129347 Aug 01 08:01:20 android irc client? Aug 01 08:01:28 yeah Aug 01 08:01:35 nice Aug 01 08:01:36 finally updating it after having not touched it in over a year Aug 01 08:01:47 hehe Aug 01 08:02:17 so much improved Aug 01 08:02:31 is it in playstore? Aug 01 08:02:55 yes Aug 01 08:02:58 https://play.google.com/store/apps/details?id=com.hanhuy.android.bluetooth.keyguard Aug 01 08:03:02 oops Aug 01 08:03:05 https://play.google.com/store/apps/details?id=com.hanhuy.android.irc.lite Aug 01 08:12:25 my app crashes when i try to getItemonClick in listview here is the log http://upaste.me/80d46728bb49671b Aug 01 08:12:42 and here is the code i am using http://upaste.me/e32a67298494cded Aug 01 08:13:06 it is a custom adapter i have made for the list view and there is a fatal exception how to handle this ? Aug 01 08:13:17 f2prateek u there ? Aug 01 08:14:07 j Aug 01 08:16:13 hi all Aug 01 08:16:28 andro_dev: you know what type of exception it is ? Aug 01 08:16:32 classCast Aug 01 08:16:50 i placed (String) also but it still have the same error Aug 01 08:16:51 so you know somewhere that your casting from and to something, that really doesn't work Aug 01 08:17:12 Cursor c = (Cursor) parent.getAdapter().getItem(position); at a guess Aug 01 08:17:32 unless your (object/items) are all cursors Aug 01 08:17:36 but I doubt that Aug 01 08:17:37 anyone with experience of building libxml2 for Android? Trying to build 2.9.1 but have problems with glob/globfree Aug 01 08:17:57 https://play.google.com/store/apps/details?id=com.hanhuy.android.irc.lite Aug 01 08:17:58 mmmm Aug 01 08:18:02 oops Aug 01 08:18:03 wrong link Aug 01 08:18:14 damnit, wtf is wrong with my clipboard Aug 01 08:18:21 https://gist.github.com/pfn/5872770 Aug 01 08:18:29 mmm, go go sbt build of my project, so hot Aug 01 08:29:13 andro_dev: I think you should take a few steps back Aug 01 08:29:26 where ? Aug 01 08:29:29 and maybe look at some intro to OOP/Java tutorials Aug 01 08:29:41 Sure , i will Aug 01 08:29:50 but whats wrong here Aug 01 08:30:05 you understanding and implementation Aug 01 08:30:09 your* Aug 01 08:30:22 trust me, you need to step away from android Aug 01 08:30:35 and just learn the basics of java/OOP Aug 01 08:30:38 then come back Aug 01 08:30:44 to android Aug 01 08:31:01 or you will just waste soooo much time fumbling around Aug 01 08:31:12 i have learned and i am still in learning phase , but my view is to try fail try fail one day i will learn Aug 01 08:31:12 well, thats my opinion neways Aug 01 08:31:53 andro_dev: you dont often learn by doing random things Aug 01 08:32:12 well, maybe you do, but not all that probable in this case Aug 01 08:42:49 I'm getting a dubious "The project cannot be built until the build path errors are resolved." yet I cannot see what the errors are. Where should they be visible? Aug 01 08:43:09 Stingray not random but i have something in mind and now i am playing around things to get there basic understanding. Aug 01 08:49:26 vadi: Are you using Eclipse? Aug 01 08:49:33 I am. Aug 01 08:49:37 Hi, I wonder if there's any way I we can change the screen lock settings by changing some config file in rootfs Aug 01 08:49:41 Sometimes Project -> Clean... Aug 01 08:49:43 I'm having difficulty solving this error. Aug 01 08:49:50 gets rid of errors that shouldn Aug 01 08:49:51 Tried that about twenty times now... Aug 01 08:49:53 't be there Aug 01 08:50:22 hmm, then I don't know Aug 01 08:51:20 vadi: http://developer.android.com/tools/building/building-cmdline.html Aug 01 08:51:28 Is the support library should look like this? http://i.imgur.com/e07dZEl.png Aug 01 08:52:36 StingRay_: thanks but no thanks, I want to solve building in Eclipse, not abandon the problem and use another method Aug 01 08:54:28 vadi: if thats what you thought the suggestion was Aug 01 08:54:33 so be it :) Aug 01 08:55:03 I rather thought you would by using cmd line get lots more info to ANY and ALL build errors that are occuring Aug 01 08:56:21 Well how can I know what you think in your head? I'll try it, thanks for explaining what the reason behind the link was. Aug 01 08:57:30 vadi: you assumed :) if you didnt know the reason you should ask Aug 01 08:57:38 it may not give you any other info Aug 01 08:57:45 but it could do Aug 01 08:58:36 oh hang on Aug 01 08:58:42 just looked at your image Aug 01 08:58:59 is the support lib supposed to be so high in the build order ? Aug 01 08:59:18 btw, thats not retorical Aug 01 08:59:23 I'm actually asking :) Aug 01 09:00:10 No clue. But my immediate problem is that the build tool is computing the wrong sha1: http://pastebin.com/vzc9VjAp Aug 01 09:00:56 Fixed it with ant clean... Aug 01 09:02:01 oh you have 2 entires for support lib Aug 01 09:02:11 with diff sigs Aug 01 09:02:25 No, they are the same. See the sha1sums I've done manually. Aug 01 09:02:34 it's quite sad if the only way of changing screen lock settings is by going to settings->screen lock... :( Aug 01 09:02:45 gmag: no it isnt Aug 01 09:02:59 StingRay_, is there a config file I can change? Aug 01 09:03:04 or some adb command Aug 01 09:03:48 ant is building fine now... but eclipse still cannot. Aug 01 09:03:50 with SU/Rooted I would think so Aug 01 09:04:01 StingRay_, I have root permissions Aug 01 09:04:08 no problem on that Aug 01 09:05:16 then I would assume you can Aug 01 09:06:15 StingRay_, any idea on how? Aug 01 09:06:51 StingRay_, there must be a way, since every time the machine is rebooted these settings are persistent, so this information is stored somewhere Aug 01 09:07:02 well obviously Aug 01 09:07:09 at a guess the settings.db Aug 01 09:07:17 but no, I would have to look for it Aug 01 09:07:27 and I think thats your job Aug 01 09:07:42 StingRay_, thats ok, ty Aug 01 09:09:51 hi, i have some log messages on my instrumentation test. but when i run them i do not see those logs on console, it just says that test passed. i even tried with "-e log tru" option, but no luck. any suggestion? Aug 01 09:10:13 *true Aug 01 10:03:48 Does anyone know If I set up a pre-Android 4.2 device (before "Alway-on VPN" was introduced) to use a VPN, would all the apps go through the VPN? Or is it possible that some connections would bypass the VPN? Aug 01 10:04:28 hmm... I think it depends on VPN device Aug 01 10:04:33 s/device/app/ Aug 01 10:06:10 On the VPN client app? Hm... so it's not a sure thing then? Aug 01 10:06:45 theGrg: according to docs, VPN app is responsible for VPN-related routing table entries as well as DNS parameters Aug 01 10:07:07 Ah Aug 01 10:07:38 I guess my best bet would be to use Android 4.2's native VPN client then. Aug 01 10:09:20 Hm, so I understand that the apps themselves have nothing to do with it, it's just the VPN client app that matters. Aug 01 10:11:23 So there's no such thing as a certain app having/not having "VPN Support"? Aug 01 10:13:12 yep Aug 01 10:13:36 Good to know. Aug 01 10:33:08 hi! how can I build saved presets out of an apps preferences ? Aug 01 10:33:20 where should I save such presets? Aug 01 10:42:22 SharedPreferences? Aug 01 10:42:23 however you want Aug 01 10:42:32 Just pass a default value to the getters Aug 01 10:47:13 I think he means he wants to rip preferences to a file Aug 01 10:47:23 and be albe to load/set from them Aug 01 10:48:57 He should have said that then Aug 01 10:50:00 yes. preferences to a file Aug 01 10:50:10 like presets Aug 01 10:50:24 presets is just a word and a loose term Aug 01 10:50:38 it;s more how you treat data Aug 01 10:50:45 not anything to do WITH it Aug 01 10:51:04 do you know how to save a file with some text? and read that back in ? Aug 01 10:51:20 how can it be done the easyest way. I need to save about 9 colors. that is all Aug 01 10:51:36 have not worked with files before Aug 01 10:51:45 well learn that 1st Aug 01 10:51:52 then your question becomes redundant Aug 01 10:52:21 how does android handle files? are files the easiest way to do this presets thing? Aug 01 10:52:35 files or sqlite Aug 01 10:52:39 up to you Aug 01 10:52:51 based on what it is, and how it may adapt over time Aug 01 10:52:59 what to recommend to a noob ? :) Aug 01 10:53:13 reading this Aug 01 10:53:14 http://developer.android.com/guide/topics/data/data-storage.html Aug 01 10:54:02 with files looks easyer Aug 01 10:54:16 easier* Aug 01 10:54:27 thank you for link. I will look into it Aug 01 11:01:50 i have listview with images on it , i want to open the images in another activity as full screen onclick the listitem , what should be the way for it ? Aug 01 11:01:58 should i get the source of the image ? Aug 01 11:02:32 hi Aug 01 11:03:34 androdev: pass the path/src location into your activity by using the intent extras (Bundle) Aug 01 11:05:56 how to get the oath/src of image ? StingRay ? Aug 01 11:06:01 path Aug 01 11:06:16 by reading the same data source you used to set the image Aug 01 11:07:21 there are 100s of images in the view, i want to get the path of specific image ? Aug 01 11:07:53 have you used any listViews ? Aug 01 11:07:59 and done any tutorials ? Aug 01 11:08:04 yes Aug 01 11:08:18 so whats the problem ? Aug 01 11:08:35 do you know how to KNOW what item was clicked ? Aug 01 11:08:42 yes Aug 01 11:08:53 did YOU set the image data on that item ? Aug 01 11:09:00 i can get each individual id of item Aug 01 11:09:22 id ? Aug 01 11:09:26 id of what ? Aug 01 11:09:29 like 4012sda Aug 01 11:09:34 in this format Aug 01 11:10:31 do you know how to access the backing data of an adapter from using onItemClick ? Aug 01 11:10:47 if answer is no, they you should go over the tutorials again, on listViews Aug 01 11:10:56 if yes, not sure what your asking, sorry Aug 01 11:11:06 no , can you guide to the refrence for that ? Aug 01 11:11:40 ok Aug 01 11:12:32 i would suspect that if you search for "listView tutorial" in google Aug 01 11:12:38 all the answers will be there Aug 01 11:44:47 i was wondering that should I use the same ID for the views (EditText, ImageView etc..) when i create a landscape layout of my original layout? Aug 01 11:46:12 omid8bimo: that would make life easier yes Aug 01 11:47:11 osxorgate: so that would be the correct approach? Aug 01 11:47:38 omid8bimo: if you intend to have the same components, but in a different layout, yes Aug 01 11:47:53 then it does not really matter where they are Aug 01 11:47:53 osxorgate: ok great. thanks :) Aug 01 11:48:12 so you then place it in layout-land Aug 01 11:49:00 ohom. Aug 01 11:55:03 Heya guys, quick question - I am trying to unpack an apk file. Aug 01 11:55:20 Now, I understand that the code is inside of the .dex file, but the res folder is intact with the drawables Aug 01 11:55:33 Unfortunately for me, I don't need the drawables but the string resources, i.e. the "values" folders. Aug 01 11:55:35 Where are those? Aug 01 11:55:41 compiled into the dex? Aug 01 11:58:07 looking at the apk's i have unpacked here, the values folder is there with everything else in \res Aug 01 12:18:06 is there any way to solve the error "Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]" without removing the app and installing again? Aug 01 12:19:13 Sign the app with the same signature as the one you already have installed Aug 01 12:20:14 SimonVT: i didnt sign the previous app. my IDE automatically compiles and runs it on my device Aug 01 12:20:43 If you don't have the signing key, then no Aug 01 12:23:50 ok let me ask this, during SQLite database creation (which is created in /data/data/app_name_package), is it possible to creation in a way that it wont be deleted when i remove the app? Aug 01 12:28:51 omid8bimo: what is it your doing ? Aug 01 12:29:51 StingRay_: since i test on my device directly via IDE's auto compile, i getting "Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]" sometimes, Aug 01 12:30:08 yes but I mean what is it you are doing ? Aug 01 12:30:10 attempting ? Aug 01 12:30:39 i should remove the app and install it again via IDE, i just want to keep the db my app is creating so i dont have to add all the dummy data again when installed a brand new Aug 01 12:31:19 you know what i mean? Aug 01 12:31:25 kinda Aug 01 12:31:26 hey, when i call performHapticFeedback(HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING,HapticFeedbackConstants.KEYBOARD_TAP) there's not feedback, but preformHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP) gives the vibrate feedback... any idea why the first one does not work? Aug 01 12:31:31 is it massive amounts of data ? Aug 01 12:31:58 omid8bimo: it means the app you are trying to install is not signed with the same key as the one already installed Aug 01 12:32:01 StingRay_: not that massive, but always times time to input in bunch of EditText Aug 01 12:32:22 pduin: yup, already got that :) i have to remove it and install again Aug 01 12:32:29 omid8bimo: if you make sure you also sign the new ones with the same key as the old one it will work Aug 01 12:32:43 that way you DONT have to remove it Aug 01 12:33:08 Does amazon only tell you about sales the day after? Aug 01 12:33:26 pduin: problem is, there ain't any key! my IDE installs it on my device Aug 01 12:33:44 then you are probably using the debug.keystore Aug 01 12:34:28 StingRay_: so is there any way to prevent db from being deleted when i uninstall the app? any like method or something to use during database creating in SQLite helper class? Aug 01 12:34:40 not when you unisntall Aug 01 12:34:45 pduin: is it possible to kinda use that key? Aug 01 12:34:47 but you shouldn't need to uninstall Aug 01 12:35:05 same key, install = upgrade = info kept Aug 01 12:35:17 yes, but you will have to find the debug.keystore which is used to install the app on your device in the first place Aug 01 12:35:45 if you are using different computers to install the app on the same device you will be using different debug.keystore files Aug 01 12:35:58 StingRay_: but i dont have choice as far as i can see. i use IntelliJ IDE which i run the app via that (compiles it to usb conencted device) Aug 01 12:36:17 i use intellJ Aug 01 12:36:24 it;s irrelevant Aug 01 12:36:31 sign with same key and it does an upgrade Aug 01 12:36:37 and keeps persistant data Aug 01 12:37:40 hm, i guess the key somehow changed in my IDE's files Aug 01 12:38:17 well just keep the key you have now Aug 01 12:38:30 and you will only have to do it once, then it will be fine all other times Aug 01 12:39:20 and back the keystore up for when you run into the same problem again Aug 01 12:40:42 i have a image in a listview , i can get the text from textview but what to get from imageview so that i can take that to another activity ? Aug 01 12:41:03 and display the same image on which i clicked ? Aug 01 12:41:23 Pass some data you can use to load the image in the new activity Aug 01 12:41:27 StingRay searched a lot and dint find anything usefull hope you can guide in proper direction Aug 01 12:41:33 Like an url, or a file path Aug 01 12:41:39 You can't pass the image itself Aug 01 12:41:55 the image in listview is populated from server Aug 01 12:41:55 androdev: ok look, you get a position right ? Aug 01 12:42:01 yes Aug 01 12:42:09 what does that relate to ? Aug 01 12:42:17 the backing data of the adapter right ? Aug 01 12:42:24 yes Aug 01 12:42:34 myData.get(position) gives you the data Aug 01 12:42:50 Hi guys, I'm trying to learn how to add a contact to a gmail account rather than a device. I've read the Contacts Provider documentation but I can't seem to find anything relevant unless it has something to do with mSelectedAccount.getType() which I have no idea what it is mSelectedAccount is (what it is a reference to). Could this be related to adding a contact to a google account? Aug 01 12:42:50 http://developer.android.com/guide/topics/providers/contacts-provider.html Aug 01 12:43:45 is this a Object ? Bitmap ? Aug 01 12:44:17 You don't know what your own data type is? Aug 01 12:44:35 the image is displayed by Bitmap Aug 01 12:44:45 SimonVT Aug 01 12:45:07 You can't pass a bitmap to an activity Aug 01 12:45:16 androdev: complete this sentece "the data in my adapter is "??????" and it has lots of "???????" in it Aug 01 12:45:36 example. ArrayList Strings Aug 01 12:45:46 ArrayList Aug 01 12:45:47 ArrayList customObject Aug 01 12:45:56 ok thats the 1st bit filled in Aug 01 12:46:00 how about the second ? Aug 01 12:46:12 String and Bitmap Aug 01 12:46:33 a custom object then ? Aug 01 12:46:37 yes Aug 01 12:46:48 i have made another class named Message for that Aug 01 12:46:51 and how do you access the image path to load it ? Aug 01 12:47:13 image is uploaded from socket connection Aug 01 12:47:19 sorry downloaded Aug 01 12:47:52 so how does it know what image to display ? Aug 01 12:47:59 as in whats the identifier ? Aug 01 12:48:13 whats the specific data that would return "an image of boobs" ? Aug 01 12:48:25 the arraylist fills with the image and then displays it in listview one by one Aug 01 12:48:45 I fear we are going backwards Aug 01 12:49:27 complete this sentence, "in the adapter, i set the image by ImageView.set***********" ? Aug 01 12:50:02 addImage(new Message(bitmaped,false,false)); Aug 01 12:50:26 :( Aug 01 12:50:35 ok, and where does bitmapped come from ? Aug 01 12:50:47 how is it created ? Aug 01 12:50:49 bitmapped is the bitmapped image (byte array) received from server Aug 01 12:51:00 ok and how does it know what image / Aug 01 12:51:02 ? Aug 01 12:51:50 Bitmap receivedImage=BitmapFactory.decodeByteArray(image,0,image.length); Aug 01 12:52:05 'image' is a byte array from server Aug 01 12:52:09 ok Aug 01 12:52:16 Bitmap bitmaped = Bitmap.createScaledBitmap(receivedImage, (int)(width/scale), (int)(height/scale), true); Aug 01 12:52:34 ok, and receivedImage, how do you load this ? Aug 01 12:52:41 as is what info is passed ? Aug 01 12:52:52 any identifiable string ? Aug 01 12:53:06 "somewhere/someimage.png" ? Aug 01 12:53:10 i am using a socket API with predefined function as public void onBinaryMessage(byte[] image) Aug 01 12:53:43 there is no string in the whole process i promise Aug 01 12:53:45 :p Aug 01 12:54:05 so it's a constant data stream that you connect to ? Aug 01 12:54:13 yes Aug 01 12:54:17 and then somehow sort this stream into images ? Aug 01 12:54:23 yes Aug 01 12:54:31 1 stream = many images ? Aug 01 12:54:31 exactly Aug 01 12:54:56 no , these images comes when user on the other end presses a button on his device Aug 01 12:55:12 ah ok Aug 01 12:55:16 this makes more sense now Aug 01 12:55:38 well you have the bitmap data, just save that to a tmp location and pass the location in the intent Aug 01 12:55:41 job done Aug 01 12:56:31 ok , but what if user stops the appliaction , i dont want to fill extra memory because of these images Aug 01 12:56:45 then clear them Aug 01 12:56:53 whenever is applicable Aug 01 12:56:59 ok Aug 01 12:57:54 the same thing is on the user side means my side , when i press a button a image goes to the server to the other user and i also see the image in the listview , how should i get the path of that image ? its from galery Aug 01 12:59:07 j Aug 01 13:10:52 Hi guys, I'm trying to learn how to add a contact to a gmail account rather than a device. I've read the Contacts Provider documentation but I can't seem to find anything relevant unless it has something to do with mSelectedAccount.getType() which I have no idea what it is mSelectedAccount is (what it is a reference to). Could this be related to adding a contact to a google account? Aug 01 13:10:52 http://developer.android.com/guide/topics/providers/contacts-provider.html Aug 01 13:24:04 anyone? :S Aug 01 13:45:06 CocoStorm: If there even is such a thing, I doubt it would be Android specific, and then you should probably start looking at the Google/gmail apis first. Aug 01 13:50:54 kjeldahl: Like in the contacts app there is an option to store the contact on your device or google Aug 01 13:50:59 on the spinner Aug 01 13:56:50 CocoStorm: Ok, wasn't aware of that. But is it more like a "sync contact with Google" than just storing the contact with google? I may be nitpicking, but there is a difference between allowing a contact to sync with Google and storing a new contact (on Google only for instance)... Aug 01 13:57:25 CocoStorm: If it's an "allow sync" option, there may be a flag in the contacts contactadapter that could be set I guess. Aug 01 13:57:44 kjeldahl: I think it's more storing the contact with google option. I'm not even sure, it's just a couple of users have requested this feature Aug 01 13:57:52 kjeldahl: https://play.google.com/store/apps/details?id=com.marco.numbersnap Aug 01 14:02:58 CocoStorm: On my phone, under Accounts, if I select Google, it lists my gmail account. If I select that, I get a list of options related to syncronization. One of them is "Contacts". I believe this means all my contacts gets synced with my Gmail account. Not sure if this can be done on an individual contact basis. Aug 01 14:04:44 CocoStorm: Also, if I try to add a new contact on my phone, by default, it's shown as a "Google contact" (with my gmail address displayed next to it). Aug 01 14:06:04 So one thing to test - if your phone behaves similar - is whether adding a new contact programmatically with contacts synced to google active actually does add it as a gmail contact. If so, you could tell your users to enable google contact sync (at least the ones who can). Aug 01 14:06:05 kjeldahl: that means your not saving to your device? Aug 01 14:06:22 CocoStorm: It means saved to device, synced to Google (when possible). Aug 01 14:06:35 hey people Aug 01 14:06:42 i got a small question for you Aug 01 14:06:52 let's ay i want to make a simple note app and i want to cloud sync it Aug 01 14:06:53 kjeldahl: I see Aug 01 14:06:59 what service would you recommend? Aug 01 14:07:02 let me check, how do I get to accounts, under settings? Aug 01 14:07:08 CocoStorm: BTW; this is all speculation from my side, based on logic. Testing may prove me wrong1 Aug 01 14:07:16 yes Aug 01 14:13:23 kjeldahl: So I'm guessing the users want to literally add the contact to the google account since to sync it, you would need to add the gmail address of the contact Aug 01 14:14:43 CocoStorm: Gmail address of the contact? No. You could add an email address of course as with any contact, and if that is what users are really asking for, then you might want to facilitate that. Aug 01 14:15:28 CocoStorm: But the contact is synced to YOUR gmail address, as YOUR contact. If it does not contain the necessary contact information (like email), it will be hard to get in touch of course... Aug 01 14:16:38 kjeldahl: hmm :S Aug 01 14:17:31 kjeldahl: yes I meant any email address Aug 01 14:18:37 but the purpose of the app is to just get phone numbers so, I'm guessing what they want is to be able to add the contacts to their google accounts to sync across different devices Aug 01 14:19:11 CocoStorm: Which is the default behaviour when google contact sync is on I believe. Aug 01 14:19:47 kjeldahl: Even without adding an email address? I've tried that with sync on and nothing happens Aug 01 14:20:02 (using the default contacts app) Aug 01 14:20:26 CocoStorm: You've waited the obligatory 15-30 minutes? Sync may not be immediate... Aug 01 14:21:09 CocoStorm: If it does not sync, I would think that has nothing to do with the fact that the contact does not have an email address. That's just a field like any other contact field. Aug 01 14:23:41 CocoStorm: I just tested; added a "Testcontact" without email. Synced with gmail immediately. It does NOT show up when composing a new email, since there is no email info on it. Aug 01 14:24:09 CocoStorm: But, press the Gmail pulldown on the gmail homepage and select "Contacts" and it's there. Aug 01 14:24:36 kjeldahl: and there's a google logo next to the contact display name? :S Aug 01 14:25:27 CocoStorm: There are no google logos on that contact, not on the device, not on the gmail Contacts display list. What do you mean? Aug 01 14:28:16 kjeldahl: i'm not getting any contacts in the contact page Aug 01 14:28:16 :S Aug 01 14:28:19 Is there a comment or something I can add to keep android studio from formatting a certain element? Aug 01 14:29:09 CocoStorm: Well, there's your problem! And possibly other users too. It's not set up correctly. Aug 01 14:29:28 kjeldahl: but I used the default contacts app to add a number Aug 01 14:30:25 CocoStorm: Yes, and it doesn't sync? That's the problem. Something is wrong. I have no idea what. You could try to remove and add the Google account again and see if that makes any difference. No idea. Aug 01 14:30:40 I see Aug 01 14:30:42 hm Aug 01 14:30:43 will try Aug 01 14:30:52 if it doesn't sync, you didn't add the contact to gmail Aug 01 14:31:54 CocoStorm: You could also try to force a sync manually and see if that helps, or if you get any error. Aug 01 14:32:21 i.e. you didn't save the contact to the gmail selection in the contacts app Aug 01 14:33:03 pfn: Now I'm lost. I didn't have to do any of that stuff. Just added a contact with no info. Synced fine. Aug 01 14:33:38 pfn: that's what I thought Aug 01 14:33:59 samsung phones don't default to gmail Aug 01 14:34:01 for example Aug 01 14:34:08 Oh I see Aug 01 14:34:12 aha1 Aug 01 14:35:10 pfn: So you suggest I have an option to save to a google account? Aug 01 14:35:16 * the Aug 01 14:35:35 of course you do Aug 01 14:36:04 pfn: I meant in my app specifically Aug 01 14:36:10 since it doesn't have an email field Aug 01 14:36:56 ? Aug 01 14:37:17 yeah Aug 01 14:37:19 and email is unrelated Aug 01 14:38:35 Okay, so basically I just need an option to store the contact to google. Perfect. Aug 01 14:39:50 Sounds like we've done a 360! If the contactprovider interface has such an option, you should be golden. No idea if it does... Aug 01 14:40:01 it should Aug 01 14:41:00 Is there a way of getting the google account name or does the user have to specify ? Aug 01 14:41:19 * kjeldahl gotta run, laters! Aug 01 14:41:31 kjeldahl: see ya! Aug 01 14:50:06 the name can be gleaned by searching the accountmanager Aug 01 14:50:31 gleaned? Aug 01 14:50:51 oh I see Aug 01 14:51:05 awesome! Aug 01 14:53:39 How can I get my service to run automatically when the device boots? Aug 01 14:54:23 https://www.google.dk/search?q=android+run+service+on+boot Aug 01 14:54:33 oh right, sorry Aug 01 14:54:53 Sometimes I forget about Google :P Aug 01 14:59:58 SimonVT, next time use this: http://bit.ly/15fNMYM Aug 01 15:00:14 ^ Aug 01 15:01:26 That's more work than just opening a new tab, enter query, copy url Aug 01 15:02:00 SimonVT, you aren't considering the investment in the community you are doing in using that service :D Aug 01 15:03:29 Is it normal for my AVD to use 3 GB of swap space? D: Aug 01 15:03:37 It was doing that earlier Aug 01 15:03:55 Locked up my entire system for a good ten minutes... Aug 01 15:21:42 Forkk: With a nick like that, what did you expect? ;-) Aug 01 15:22:20 kjeldahl, lol I don't see what my nick has to do with my AVD shitting on my memory usage. :P Aug 01 15:23:30 "Fork bomb", google it! ;-) Aug 01 15:23:36 Oh right Aug 01 15:23:42 heh Aug 01 15:25:50 kjeldahl, fork is not synonymous or widely known to be associated with fork bombs Aug 01 15:26:13 thought it was a bad joke, just putting my 2 cents in Aug 01 15:26:48 Minimum amount is $1. Aug 01 15:29:36 you can head off a fork bomb if you kill every process by (1) teacup or (2) cutting its heart out with a spoon Aug 01 15:32:57 Here's a joke: [poutine] (~poutine@cold.calculating.annoying.ruthless.trollbot.org): Goody McGoody Aug 01 15:32:59 lol Aug 01 15:33:46 Anything with "trollbot" in it is not allowed to complain about any postings. Aug 01 15:34:12 I'm sure you would have found a reason to dismiss my valid criticism even if 'trollbot' weren't in my hostname Aug 01 15:34:51 Disagree. Aug 01 15:39:04 * pfn <3 being able to just depend on a project directly out of github without having to need it in a maven repo Aug 01 15:39:20 (source project) Aug 01 15:41:38 O.o Aug 01 15:42:17 Mavrik, https://gist.github.com/pfn/5872770 Aug 01 15:45:36 nice Aug 01 15:58:01 Ding Ding Ding! Achievement Unlocked: http://picpaste.com/dh1soDB0.png Aug 01 15:59:34 cute Aug 01 16:00:15 StackOverflowError? That rules a fork bomb out of the question, must be recursion gone wrong! Aug 01 16:00:50 oh yeah, motox announcement today, huh Aug 01 16:01:25 I hope it's awesome, and priced similarly so, particularly on vzw Aug 01 16:01:40 and I hope the fact that it's wholly google owned fixes issues with releasing updates Aug 01 16:02:54 pfn yes, best thing they could do is to commit to nexus style sw upgrades. Aug 01 16:03:10 they couldn't even do that for the galaxy nexus :( Aug 01 16:03:19 the situation on sprint and vzw for them is terribad Aug 01 16:03:23 What's the best way to clear your database table? Aug 01 16:03:54 delete from table Aug 01 16:04:21 drop Aug 01 16:04:42 drop involves having to recreate Aug 01 16:05:01 define "best" Aug 01 16:05:28 "best" or "bestest" : the furthest pont from shit, or shitness Aug 01 16:05:34 :) Aug 01 16:06:38 shittiest Aug 01 16:06:41 wtf is "shitness" Aug 01 16:06:55 shitness is your attitude Aug 01 16:06:56 :) Aug 01 16:07:05 hexedit it out of the db file Aug 01 16:08:23 kjeldahl: http://www.youtube.com/watch?v=6PQ6335puOc Aug 01 16:10:37 yeah Drop and recreate was my first idea, but that seems to be giving errors. Aug 01 16:11:17 sqlite applies an optimization if you delete all your rows from the table Aug 01 16:11:31 essentially truncate Aug 01 16:11:31 but then there are also a number of errors caused by my called finish() on activity, so they might just be a biproduct Aug 01 16:14:35 /me wonders why R.layout sometimes fails to get generated for his library project Aug 01 16:19:07 ah hah! Aug 01 16:19:30 pfn try gradle :) Aug 01 16:19:33 the stack overflow was caused by: return onOptionsItemSelected(item); Aug 01 16:19:50 called on onOptionsItemSelected :p Aug 01 16:19:59 g00s, it does nothing of what I need Aug 01 16:20:03 it doesn't support apklib Aug 01 16:20:12 it doesn't download projects from github Aug 01 16:20:17 it doesn't do continuous builds Aug 01 16:20:53 hehe Aug 01 16:21:14 download projects from guthub? Aug 01 16:21:23 the same can't be said of you and gradlew Aug 01 16:21:34 sbt does everything you need and more, but you refuse to even look at it Aug 01 16:21:52 you know, i'm just pulling your chain Aug 01 16:22:07 do i have to know any scala at all to use sbt ? Aug 01 16:22:17 for basic stuff, no Aug 01 16:22:26 hmm Aug 01 16:23:06 using the sbt plugin for android is as easy as putting in 'addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "0.7.8")' into project/plugins.sbt; and putting "android.Plugin.androidBuild" into build.sbt Aug 01 16:23:17 and since you're on a mac, just port install sbt; or brew install sbt Aug 01 16:23:36 it autodetects basic gradle and/or ant layouts pretty much automatically Aug 01 16:24:03 kjeldahl maybe we need to make a leiningen based build system for android Aug 01 16:24:10 especially since you claim to have moved to vim Aug 01 16:24:12 can't let scale have all the fun Aug 01 16:24:37 actually i bounce around between vim, emacs, sublime, and intellij Aug 01 16:24:51 i need to simplify my life and get rid of one at least :/ Aug 01 16:25:00 well, vim, emacs and sublime all work easily with the plugin Aug 01 16:25:04 if you want intellij, it's even easier Aug 01 16:25:18 just addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1") Aug 01 16:25:20 and sbt gen-idea Aug 01 16:25:32 generates a complete intellij project Aug 01 16:25:46 might have to add scala/sbt plugins to make it work optimally Aug 01 16:26:25 considering the investment is so minimal, if you have a complaint about any other android build system, you really should try sbt Aug 01 16:26:58 its easy to complain about build systems; there is no ideal one Aug 01 16:27:05 :) Aug 01 16:27:16 but you complain incessantly about gradle Aug 01 16:27:31 gift13 Aug 01 16:27:40 gradle could be awesome, unless you use a plugin thats not written well and doesn't work well with other plugins Aug 01 16:27:48 same with maven Aug 01 16:27:54 you can have shitty ant tasks Aug 01 16:28:11 and then you have ant on top of it all :D Aug 01 16:30:02 i tend to be pretty stubborn; when some tech makes me mad i tend to keep pushing through to figure it out. gradle is like that for me now. i think if the android engineers documented it better it would be good (the bottom of the user guide - apis - is empty) Aug 01 16:30:21 but really, beside that, i stick with gradle knowing its what they are going to base all their stuff of of Aug 01 16:30:24 (google) Aug 01 16:30:34 and i really dont feel like straying much from the path Aug 01 16:30:41 again, minimal investment Aug 01 16:30:44 :) Aug 01 16:30:49 * Bleeptech came to the conclusion in 1983 that computers are idiots operating at the speed of light.. Aug 01 16:32:32 And I've found no evidence to disprove this in the 30 years since then.. ROFL.. Aug 01 16:33:20 oh god, it's so funny; this neighbor has a dog next door, barks all the time, when the dog does that, the owner yells "chomper" at it to stop barking... of course it doesn't work, so it happens all the time Aug 01 16:33:30 then, on the other side of my house, I have another neighbor, has a parrot Aug 01 16:33:47 now, everytime the dog barks, the parrot says "chomper", on cue Aug 01 16:33:58 fro man ethnological perspective, the dog sees the owner "ratcheting it up" and is reinforced Aug 01 16:34:20 so the owner ensure his dog keeps on barking, by barking at the dog Aug 01 16:34:30 of course, the parrot can't vocalize as loudly, so it's just saying the name Aug 01 16:34:37 hehe Aug 01 16:34:43 still, hilarious everytime I hear it Aug 01 16:34:56 is chomper friendly ? Aug 01 16:35:36 pfn: That's OK.. I've been listening to a Siberian Husky named Elvis all morning.. There's a female in heat somewhere so he sounds more like Yoko Ono.. LOL Aug 01 16:35:38 put him on IRC Aug 01 16:37:13 Beautiful looking dog, but he sounds like he's being fed tail-first to a tree chipper.. Aug 01 16:38:03 If I've got an android emulation is there any folder I can drop an apk into and install it inside the emulator? Aug 01 16:38:29 Prometheian: You can do an 'adb install' Aug 01 16:38:43 From inside the emulator, or over console? Aug 01 16:39:12 Prometheian: Fire up the emu then run adb from a console. Aug 01 16:39:27 Time to go see Wolverine Aug 01 16:39:43 I'm starting the emulation now. Aug 01 16:40:16 I wish gmail had a unified account view Aug 01 16:40:46 Is adb is the sdk folder? Aug 01 16:41:25 Prometheian: What OS? Aug 01 16:41:48 Windows 8 T.T Aug 01 16:41:49 Prometheian: Should be.. I'm on *nix here.. Aug 01 16:42:35 Prometheian: Add it to your PATH. Aug 01 16:42:38 I've found adb.exe Aug 01 16:43:03 Prometheian: OK.. 'adb install C:\package.apk – Installs the package located at C:\package.apk on your computer on your device.' Okay, it isn't noticing my android emulation. Do I need to add sdk/tools to my path as well? Aug 01 16:44:49 Or should my cmd prompt be somewhere? Aug 01 16:45:21 adb devices Aug 01 16:45:28 it should show up as emulator-5554 by default Aug 01 16:45:38 and if it doesn't show up, then what kind of emulator are you running... Aug 01 16:46:05 I have the emulation running. 5554:AVD_for_Nexus_S_by_Google Aug 01 16:46:19 But cmd didn't notice it for some reason when I ran the command to install the app. Aug 01 16:46:25 Prometheian: Reference material on adb commands. http://forum.xda-developers.com/showthread.php?t=2141817 Aug 01 16:46:27 error: device offline Aug 01 16:46:53 if it says offline, your emulator isn't completely running yet Aug 01 16:47:06 arm emulators take a few minutes to start Aug 01 16:47:07 Also, I've downloaded every option the sdk manager wanted. Aug 01 16:47:17 The phone emulation is up and running, I can do stuff in it. Aug 01 16:47:21 maybe over 10 minutes if you have a slow computer Aug 01 16:47:30 then adb kill-server; adb devices again Aug 01 16:47:33 it should show up as online Aug 01 16:47:54 I ran the command, it's hanging. If it fails I'll do a kill and restart it. ^^ Aug 01 16:52:45 It worked, ty. :) Aug 01 16:54:16 if I don't set android:debuggable in manifest, my app doesn't show up in adb (debug build) why? Aug 01 16:55:49 even if I pick it as a debug app under developer options Aug 01 16:56:54 it only shows up if I choose wait for debugger Aug 01 16:57:19 Maybe your build tool doesn't add the attribute when doing debug builds Aug 01 16:57:54 hmm, I get the warning from aapt during resource gen and package res Aug 01 16:58:14 hmm, I suppose I should switch away from using ApkBuilder, maybe that's what it is Aug 01 16:59:02 By default apps are not debuggable Aug 01 16:59:14 When doing debug builds, something somewhere sets it to true Aug 01 16:59:27 I'd assumed it was aapt that did it Aug 01 16:59:39 but it might be the apkbuilder; and the old ApkBuilder doesn't do it Aug 01 17:00:06 Does it know it's doing a debug build? I assume you have to tell it somewhere Aug 01 17:00:08 builder.setDebugMode(createDebug) Aug 01 17:00:14 yes, it knows it Aug 01 17:01:04 I haven't really looked into how those works, so can't help you there Aug 01 17:01:30 But yeah, the build tools should explicitly set it when doing debug builds Aug 01 17:01:37 oh well, I'll just toss in android:debuggable until I get around to figuring out how to use AndroidBuilder.packageApk correctly Aug 01 17:02:24 Does it not set BuildConfig.DEBUG to true either? Aug 01 17:02:31 BuildConfig is separate Aug 01 17:05:06 Is there a way to either a) open multiple images in the gallery or b) open a specific folder in the gallery? Aug 01 17:09:20 Anyone here ever use Windroy? Aug 01 17:14:56 yeah, it is aapt package resources that sets debuggable in manifest... Aug 01 17:15:59 [pfnguyen@GALACTICA bin] $ Aug 01 17:15:59 resources-debug.ap_ | grep debuggable Aug 01 17:15:59 application-debuggable Aug 01 17:16:02 hmm Aug 01 17:16:13 why isn't this getting reflected in the final install Aug 01 17:16:23 * pfn checks final apk as well Aug 01 17:16:48 Hi all. Aug 01 17:17:04 yep, shows in final apk as well, but it doesn't show up as debuggable when installed Aug 01 17:17:05 I was pointed here from #android, as I'm having an issue installing paid apps on my device (free apps install without issue). Aug 01 17:17:06 * pfn headscratches Aug 01 17:17:16 I guess I'll run the manifest merger and see if that makes it better Aug 01 17:18:20 Specifically, I'm trying to install PL2303GPS MockLocation -- when it downloads and tries to install, I get a "Couldn't install on USB storage or SD card." Aug 01 17:18:37 I installed "Logcat Extreme" and tried again, and saw a couple errors that go along with this issue. Aug 01 17:19:01 "Failed to create secure container smdl2tmp1" Aug 01 17:19:12 "ASEC device mapping failed (No such file or directory" Aug 01 17:19:21 Any ideas? Aug 01 17:19:54 your device doesn't support asec? Aug 01 17:19:55 This is on a Wandboard Quad, if it happens to matter. The boot device is a 16GB SanDisk Ultra microSD card (there is no built-in storage) Aug 01 17:19:56 custom rom? Aug 01 17:20:15 It's a build of Android 4.2.2 provided by the Wandboard folks, so I'm not 100% sure... Aug 01 17:20:29 That is something I can check with them about, though. Aug 01 17:20:45 They do provide the Android source -- is this a kernel issue, or something else? Aug 01 17:20:52 * pfn shrugs Aug 01 17:21:00 ask android-porting google groups? Aug 01 17:21:26 gradle is complaining about dupe classes from android-support-library, any workaround for this? Aug 01 17:21:51 snooplsm, are you using libraries that depend on android-support? Aug 01 17:21:57 exclude their transitive dependencies Aug 01 17:22:29 e.g. actionbarsherlock uses mavencentral's support-v4, and if you use the sdk repo's support-v4, you'll get dupe symbols Aug 01 17:22:47 the ABS aar does not do that Aug 01 17:22:48 pfn: yes Aug 01 17:22:54 my main project and my libraries do Aug 01 17:22:58 and i have them in the libs folder Aug 01 17:23:10 oh, you're using file dependencies? Aug 01 17:23:14 pfn: yea Aug 01 17:23:15 then only depend on support-v4 in 1 lib Aug 01 17:23:21 ABS uses dirty hax for aar's Aug 01 17:23:22 and do not depend on support-v4 in main project Aug 01 17:23:27 pfn: ok Aug 01 17:23:34 Or, just don't use file dependencies.. Aug 01 17:23:45 yes, use the support repo in sdk Aug 01 17:23:55 gradle should Thread.sleep(10000) for every local dependency you have Aug 01 17:24:10 how do you horizontally scroll in the emulator? Aug 01 17:24:20 throw new WhyJustWhyException() Aug 01 17:24:21 by dragging horizontally.... Aug 01 17:24:36 because using a repo can be a pain in the ass Aug 01 17:25:02 i used to be hardcore maven, now I don't give a shit :-) Aug 01 17:25:14 ant all the way to the bank, just worried that eclipse/ant support is gone soon Aug 01 17:25:28 snooplsm, I say go sbt Aug 01 17:25:32 * pfn biased Aug 01 17:25:34 It's going to be eclipse/gradle as well Aug 01 17:25:42 ant support is going away Aug 01 17:25:53 maybe something is wrong in my layout, no scrollin horizontally Aug 01 17:26:04 kc8hfi, horizontalscrollview Aug 01 17:26:11 use it Aug 01 17:28:41 pfn: sbt the hard disk killer? Aug 01 17:28:59 ? Aug 01 17:29:08 sbt with a spinning hd is like an old man dating a 20 year old. Aug 01 17:29:20 gradle is no better Aug 01 17:29:24 correct Aug 01 17:29:29 neither is maven Aug 01 17:29:39 ant is marginally Aug 01 17:29:44 but that's because it doesn't do shit Aug 01 17:29:53 we should just use bash scripts Aug 01 17:30:07 * pfn gets fastest builds out of sbt Aug 01 17:30:20 is a FrameLayout a suitable enough container to use in an XML layout to hold a dynamic fragment? Aug 01 17:30:30 pfn: how do you know they're the fastest if that's all you ever use? Aug 01 17:30:35 tnzr: yes Aug 01 17:30:41 thanks Jake Aug 01 17:30:45 tnzr: probably, I use RelativeLayouts though, just my preference Aug 01 17:30:49 JakeWharton, I've used ant and gradle and maven, not the maven plugin for android Aug 01 17:30:53 inflate(id,container,false); Aug 01 17:31:03 JakeWharton, much of the code in my sbt plugin is a direct port of google's sdk lib Aug 01 17:31:09 cool thx Aug 01 17:31:11 that doesn't mean they haven't gotten faster Aug 01 17:31:14 snooplsm: relativeLayout is a bit heavy for just a single view though Aug 01 17:31:20 and a bit pointless Aug 01 17:31:23 JakeWharton, they haven't :p Aug 01 17:31:31 StingRay_: FrameLayout is the lightest? Aug 01 17:31:31 StingRay_: and very expensive Aug 01 17:31:36 I need to write an article on RelativeLayout Aug 01 17:31:39 JakeWharton, the fact that I can keep a jvm warm with sbt means it's faster already Aug 01 17:31:40 frankenstein never scared me. but marsupials do, cause they're fast Aug 01 17:31:49 short version: avoid it if you can, in particular avoid nesting RelativeLayouts Aug 01 17:31:58 RelativeLayout is good when you need … erm…. relative placement Aug 01 17:31:59 :) Aug 01 17:32:00 i thought nesting LinearLayouts was bad Aug 01 17:32:03 pfn: but how do you know they haven't gotten faster? Aug 01 17:32:05 relative to something else Aug 01 17:32:10 snooplsm: it *can* be Aug 01 17:32:19 JakeWharton, because I haven't seen any feature implementations to make it faster Aug 01 17:32:21 you're like the guy that drinks coca-cola and hates on all other soft drinks but never drinks them to compare Aug 01 17:32:22 romainguy: You'll get everyone to exclusively use LinearLayout then Aug 01 17:32:32 if gradle build daemon ever ships then I'll revisit Aug 01 17:32:47 Yeah, maybe just do a breakdown of FrameLayout,RelativeLayout,LinearLayout on one slide Aug 01 17:32:53 you mean gradle --daemon? that's already out Aug 01 17:32:55 that would be awesome Aug 01 17:32:56 JakeWharton, and like I said, I've examined them all in the development of my own Aug 01 17:33:35 oh, I guess that got added a while ago Aug 01 17:33:39 Has anyone written an alternative to ViewPager with a little better performance? Aug 01 17:33:56 snooplsm: if the performance is bad, it's probably because of the children you are adding to the adapter Aug 01 17:33:58 better performance in what regard? Aug 01 17:34:24 think of the children! Aug 01 17:35:16 I'll admit, we do have too many weighted linear layouts Aug 01 17:35:53 snooplsm: weights will cause performance trouble Aug 01 17:36:12 but how do I support multiple screen sizes without weight? hardcode dimensions? Aug 01 17:36:18 you can use weights Aug 01 17:36:20 it's fine Aug 01 17:36:30 just avoid nesting weighted layouts Aug 01 17:36:32 (if you can) Aug 01 17:37:16 thinking about this, iOS must have 1 hell of a wicked layout system given the position and alignemt functions and rules you can have Aug 01 17:37:23 compared to good old android Aug 01 17:37:38 it has auto layout now but most people don't use it Aug 01 17:38:06 StingRay_: GridLayout Aug 01 17:38:06 StingRay_: I don't understand that logical chain, but okay Aug 01 17:38:30 evanc: as in it has a fair degree of complexity in the design of the layouts Aug 01 17:38:36 and the relationships that it can have Aug 01 17:38:53 StingRay_: iOS layout is usually done in code using good 'ol math Aug 01 17:39:00 JakeWharton: but math is hard Aug 01 17:39:04 hi guys, is this the right place to ask all sorts of q's regarding aosp? Aug 01 17:40:01 some sorts, not ALL sorts... Aug 01 17:40:03 didn't he have a bunch of fables Aug 01 17:40:15 wait, thats aesop Aug 01 17:41:08 okay, some sort is good enough for me now. Aug 01 17:41:51 moto x in an hour and 20 mins Aug 01 17:42:06 i'm using a touchwiz based rom, then i tried out an AOSP rom and i liked it pretty much. Aug 01 17:42:21 hoping and praying for vzw since I lost my gnexus Aug 01 17:42:22 lmao Aug 01 17:42:30 stock android is best Aug 01 17:42:40 the only thing that is missing for me is the 3g video call function i get to use on the touchwiz dialer Aug 01 17:42:51 OEMS really make it a shitos Aug 01 17:42:55 is it possible to get that function onto the AOSP rom? Aug 01 17:43:09 can't believe samsung gets away with touchwiz Aug 01 17:43:19 yup Aug 01 17:43:31 touchwiz is shit imo Aug 01 17:43:37 come'on guys don't start the flame yet, help me out =P Aug 01 17:43:39 maybe better to others Aug 01 17:43:42 also your notification screen is halfway taken up with their shit Aug 01 17:43:55 the only problem is then slowing down the os Aug 01 17:44:15 OK what's the problem?? Aug 01 17:44:19 lol Aug 01 17:44:38 * mithun46 is buzy, compiling kernels Aug 01 17:44:40 3g video call function from touchwiz to AOSP rom Aug 01 17:44:48 is it possible? Aug 01 17:44:51 what is a 3g video call? Aug 01 17:44:55 facetime for samsung? Aug 01 17:45:07 lmao Aug 01 17:45:09 the only thing is missing from AOSP is this function that i use frequently and i don't want to replace it with 3rd party apps. Aug 01 17:45:18 face time is a ishit right?? Aug 01 17:45:28 yes facetime is ishit Aug 01 17:45:33 lol Aug 01 17:45:40 wow, I thought 3g video calling had faded into history Aug 01 17:45:51 same here Leeds Aug 01 17:45:56 so you call other people with samsung phones? Aug 01 17:45:59 * mithun46 uses skype Aug 01 17:46:01 yeah TW has it and i use it frequently Aug 01 17:46:13 * curiouscat wants it on AOSP Aug 01 17:46:29 presumably with someone else... which would mean there are 2 people in the world who use it Aug 01 17:46:35 video calls only faded cause of operator charges Aug 01 17:46:35 Leeds: There was someone over on ##android asking a few hours ago about android phones that supported fax. Aug 01 17:46:41 curiouscat: I'm pretty sure AOSP has never supported it Aug 01 17:46:41 I used to use them all the time Aug 01 17:46:41 i can actually talk into my phone, and the person way way far away on the other end can actually hear me!! Aug 01 17:46:43 is it an apk? Aug 01 17:47:00 android that supported fax?? Aug 01 17:47:09 Mith - yes Aug 01 17:47:18 is he drunk?? Aug 01 17:47:21 lol Aug 01 17:47:37 In principle, it's not _that_ unreasonable - there were mobiles that supported it - and networks that did. Aug 01 17:47:41 well the operator charges are fine in my country Aug 01 17:47:51 It's just it kinda faded - along with call-switched-data Aug 01 17:48:18 now all uses WiFi for video call I thought Aug 01 17:48:20 i think it's in an apk Aug 01 17:48:33 curiouscat nope Aug 01 17:48:36 just download the apk Aug 01 17:48:39 it won't be a apk Aug 01 17:48:48 it will have libs Aug 01 17:49:03 and all that depends on OEM frameworks Aug 01 17:49:12 i have to switch back to TW roms because of this. it's a bitch seriously Aug 01 17:49:20 other ways don't u think it will pop up on playstore Aug 01 17:49:39 well, think this is the wrong channel for that. probably want #android-root Aug 01 17:50:20 yeah Aug 01 17:50:27 +1 snoop Aug 01 17:50:29 alright, thanks lad, will try that direction Aug 01 17:51:35 romainguy: I have a question about keyboards/controls Aug 01 17:52:09 if I want an emoticon view to replace the keyboard, given event x, I do it currently but the way I do it seems clunky Aug 01 17:52:26 whatsapp and facebook messenger do it quite nice Aug 01 17:52:35 I have found very little info on the subject Aug 01 17:53:01 there is no hidden, custom view mode for ime is there ? Aug 01 17:53:04 Hello! I've got a question about checkbox preference. I've got a settings menu with a checkbox preference, "enableSound". Whether it is currently checked _should_ reflect the actual value of the preference in my preferences class. But it seems to be checked by default, even when the preference is set to false. Here's the relevant code Aug 01 17:53:05 that I'm missing Aug 01 17:53:09 Preference soundOn = (Preference) findPreference("enableSound"); Aug 01 17:53:13 soundOn.setDefaultValue((boolean) Prefs.ENABLE_SOUND); Aug 01 17:53:31 that's it. I've checked that Prefs.ENABLE_SOUND is "false", but the box is checked anyway Aug 01 17:53:33 any ideas? Aug 01 17:59:26 aah I got it Aug 01 17:59:46 so basically I just call it a CheckBoxPreference, and then use the setChecked also Aug 01 18:00:40 Anyone try using Vagrant to seed out android VMs? Aug 01 18:17:54 Can I change the text on a button while the app is running or do I need to swap out the button? Aug 01 18:18:20 of course you can Aug 01 18:20:04 why isn't the photo table daydream background not completely black :-/ Aug 01 18:21:08 anyone have any suggestions as to why a ProgressBar using a Clip Drawable would cause OpenGLRenderer errors? Specifically "GL error from OpenGLRenderer: 0x51" followed by "GL_INVALID_VALUE" Aug 01 18:26:08 hi all Aug 01 18:26:52 can anyone tell me how to load template into existing project using android studio ? I am trying to add the login template to cheat a bit than just customize it Aug 01 18:27:08 the instructions i find in the docs are for eclipse Aug 01 18:28:24 template? Aug 01 18:28:38 * marcab has not tried Android Studio Aug 01 18:29:08 wow, I should check to see if com.android.tools updates to central more often Aug 01 18:29:11 so many fixed features I can use Aug 01 18:29:29 com.android.tools.build that is Aug 01 18:29:43 marcab, http://developer.android.com/tools/projects/templates.html#login-activity Aug 01 18:30:37 t0dbld: thanks much -- I just found that page. I had no idea developer.android.com had these. Aug 01 18:34:27 woot, incremental resource merging ftw Aug 01 18:35:29 so, can you create a release build in gradle if you don't have a signing configuration? Aug 01 18:36:11 oh, signingConfig isn't required Aug 01 18:37:30 so know one knows ? Aug 01 18:41:33 Hi, I'm a bit rusty and am revisiting some old source code and am getting a Classnotfound exception but I cannot track down which class it is (eclipse). Any suggested ways to do it? Aug 01 18:41:59 huh, how does gradle collate jni libraries from different locations? it doesn't seem to have a task to do that Aug 01 18:42:52 Not sure it does, there's a lot of whine about gradle and jni on the mailing list Aug 01 18:45:03 yeah, I don't see it digging through their sources Aug 01 18:45:06 peroht: The stack trace should tell you what class Aug 01 18:45:10 I guess I'll merge them like how I merge assets Aug 01 18:45:19 SimonVT: well it doesnt.. Aug 01 18:45:26 SimonVT: I'm getting "... 11 more" Aug 01 18:45:44 SimonVT: i'll see which option shows the 11 more Aug 01 18:45:46 =) Aug 01 18:45:57 The 11 more are above the "Caused by" line Aug 01 18:46:39 Ok, not below then Aug 01 18:46:50 The exception will still tell you the class Aug 01 18:46:55 well I know which activity causes it.. Aug 01 18:46:58 let me think Aug 01 18:47:04 whatever i did before Aug 01 18:48:55 help. Aug 01 18:48:57 http://stackoverflow.com/questions/17976157/android-4-1-javascript-browser-how-to-disable-zooming-scaling-on-rotation Aug 01 18:50:40 SimonVT: http://pastebin.com/Yn37gRE4 Aug 01 18:51:06 Caused by: java.lang.ClassNotFoundException: se.peterthor.jobola.MainActivity Aug 01 18:51:17 SimonVT: It exists, and is defined in the manifest Aug 01 18:51:26 Apparently it doesn't exist in your apk Aug 01 18:51:58 i know, which is weird Aug 01 18:52:51 does a ScrollView do both horizontal and vertical scrolling? Aug 01 18:53:47 https://developer.android.com/reference/android/widget/ScrollView.html "ScrollView only supports vertical scrolling. For horizontal scrolling, use HorizontalScrollView." Aug 01 18:54:20 you have no idea how i wish that was a response to me Aug 01 18:54:21 :-( Aug 01 18:55:02 Agamemnus: you would be better going to some other channel for web issues Aug 01 18:55:41 like what? :-( Aug 01 18:55:42 so know one knows how to add an android template acitivty to a project in android studio ? Aug 01 18:55:47 or if you can ? Aug 01 18:55:50 it's really an android issue Aug 01 18:56:00 maybe chrome.... i'll try there Aug 01 18:56:03 Agamemnus: well not an android app dev issue Aug 01 18:59:02 hi, you can access the files and sockets through the NDK, right? Aug 01 19:05:12 yes Aug 01 19:05:24 still no x86 image :/ Aug 01 19:05:50 i'm kinda surprised that a tablelayout doesn't ahve a way to set row headers and column headers Aug 01 19:06:21 That would just be another cell in your table Aug 01 19:06:51 generally, a header stays in place when the table gets scrolled aorund Aug 01 19:08:28 hey i need to demo an app i wrote online to a client.. is there still no legit screencasting tech i can use? Aug 01 19:09:42 acidjazz: Emulator+screencast? Aug 01 19:09:55 hmm Aug 01 19:10:24 SimonVT: This makes no sense to me. Testing on 4.2.2 now returns error in the .apk http://pastebin.com/U8btzGW3 Aug 01 19:10:46 coffee time. Aug 01 19:11:07 Same error as last time Aug 01 19:11:10 Just slightly more verbose Aug 01 19:11:14 Yes Aug 01 19:14:12 pfn: I still have usb issues. I have traced the winusb device and see some things. Aug 01 19:16:30 pfn: I see "Unsupported IOCTL" events followed by Purging events. In the nicely working vm, nothing like that; I see data being exchanged with the nexus. WTF? Aug 01 19:17:05 SimonVT: well the size of the apk is about 1/5 of previously apk's. something weird in the building process. Aug 01 19:17:18 The host and vm systems have exactly the same usb driver files. Aug 01 19:18:21 Probably just your dependencies that aren't being exported Aug 01 19:18:25 Decompile and check Aug 01 19:24:56 SimonVT: Not familiar with the eclipse IDE anymore. I see all kinds of new icons with question-marks and ">" icons Aug 01 19:25:02 in my project. Aug 01 19:25:42 JesusFreke i made a feeble attempt to improve on you ragel task; it now hooks into the compile*** variants and throws the code into build/ragel. i can give you the snippet if you're interested Aug 01 19:26:56 the solution winded up being simple and elegant (for one file) but the route to get there - between listening for tasks being added dyanmically, that not working, other issues, was painful :( Aug 01 19:27:06 SimonVT: Sorry, git indicators. Aug 01 19:27:11 * peroht shrugs Aug 01 19:31:40 199 on contract Aug 01 19:31:47 yuck Aug 01 19:31:50 that's terrible Aug 01 19:33:07 whats going on ? Aug 01 19:36:22 moto-x maybe? 199 on contract doesn't seem to bad to me; but it certainly puts it right up alongside the iphone 5. Aug 01 19:36:39 Can someone explain why in these two seemingly equivalent approaches to editing a sharedPreference file, only the second method works? Aug 01 19:36:41 https://gist.github.com/pixelterra/6134480 Aug 01 19:36:57 the one with the temporary variable Aug 01 19:37:19 edit returns a new editor, not the same one Aug 01 19:37:19 hello Aug 01 19:37:35 hello Aug 01 19:37:55 you can do edit().putInt(...).apply(); all in one go if you want, but can't call edit() multiple times and expect it to know about your previous edit Aug 01 19:38:11 how do you copy a file to the emulator? Aug 01 19:39:25 kc8hfi: the same way you copy it to a device Aug 01 19:39:55 SimonVT: turns out some software extension updates s inside eclipse failed, thus hindering android adt/ddms etc software to update as well. Aug 01 19:39:59 kc8hfi: You just want to copy it there or are you trying to install it? Aug 01 19:40:11 peroht: thanks for help in any case. Aug 01 19:40:15 Bleeptech: just cpy Aug 01 19:40:18 SimonVT: 4 u =) Aug 01 19:40:47 kc8hfi: you want 'adb push' adb commands. http://forum.xda-developers.com/showthread.php?t=2141817 Aug 01 19:40:59 oh, iosched 2013 code is out Aug 01 19:42:05 " For a more Google-y experience, a Google Play Edition Moto X will be up for sale in the not too distant future" Aug 01 19:42:40 "The phone won't be completely stock if purchased from carriers", heh, well fuck that already :) Aug 01 19:42:59 hopefully off contract it is 200 Aug 01 19:43:11 haha Aug 01 19:43:12 it's 200 on-contract Aug 01 19:43:20 yeah, hoping 200 off contract Aug 01 19:43:24 i still have hope Aug 01 19:43:26 poor moto, their so fucked Aug 01 19:43:51 yes, their are Aug 01 19:43:56 haha Aug 01 19:43:58 oops Aug 01 19:45:25 anyone know why onMeasure is deprecated in WebView? Aug 01 19:45:30 they are hoping for sales inside stores to non savy shoppers Aug 01 19:48:42 dcow, why does it matter? you shouldn't be using it, that's why Aug 01 19:48:48 can I use -std=c++11 without problems? I'd like to use shared_ptr and such in c++ code Aug 01 19:49:23 why would an action icon not show in the action bar? it only shows in the overflow menu. however, there are lot of space for it Aug 01 19:49:51 bitkiller, you didn't showAsAction="ifRoom" or "always" Aug 01 19:52:16 guys how do you know download file in local storage? Aug 01 19:52:28 pfn, yes, i did it. maybe i did it wrongly Aug 01 19:53:02 probably Aug 01 19:53:15 appcompat or native Aug 01 19:53:50 compat Aug 01 19:54:22 Don't put android: in front Aug 01 19:56:25 Sign Aug 01 19:56:29 SIgh* Aug 01 19:56:43 that feeling when your company wants your app to do literally the exact opposite of what google says you're supposed to do Aug 01 19:57:17 it even worse when both of you want the app to do the exact opposite of what your users want it to do Aug 01 19:57:41 I just do the opposite of what google says. "Don't write your app in c++" . *writes program in c++ :)* Aug 01 19:57:53 Brian|CB oh, do you mean design guideline wise ? Aug 01 19:58:00 It's like, "You know this functionality that google designed, implemented, and maintains? We want you to do the opposite of that." Aug 01 19:58:10 I just don't see any benefit of it Aug 01 19:58:29 just curious... what functionality is this? Aug 01 19:58:50 Brian|CB are your decisionmakers data driven? cost justify the right way Aug 01 19:59:13 kbs: Drawer layouts Aug 01 19:59:23 Brian|CB: ah, ok Aug 01 19:59:23 Like, in the drawer layout checklist the first two items they pretty much asked me to do the opposite of lol Aug 01 19:59:36 michaelmath: Glad to see we're not the only people developing in C++ for Android. Aug 01 19:59:51 Brian|CB: I feel your pain man Aug 01 20:00:09 jfpoole did you notice the mass gravesite over there ---> Aug 01 20:00:16 :) Aug 01 20:00:30 g00s: Apparently I did :) Aug 01 20:00:37 Hi, I am making an app and i want it to support api level 8 to 18. I want to use scrollable tab + swipe navigation feature but it is not available for api level less than 11. Can anyone suggest any workaround for it? Aug 01 20:00:49 actually, starting to get interested in Go. Wonder if there will be a suitable binding on android at some point. Aug 01 20:01:27 b1n4ry: Is it not in the support library? Aug 01 20:01:58 kbs maybe they will even replace java \o/ Aug 01 20:02:43 ian_ford, As you choose the navigation type as scrollable tab+swipe , it flags an error that min supported version is api level 8 while it is available for api level 11 Aug 01 20:03:11 g00s: heh. Well; be interesting to see how far they will push Go at least. Seems right now in very "server-y" territory (aka app-engine.) Aug 01 20:03:36 g00s: sure, feel free to send it my way Aug 01 20:05:40 b1n4ry: I've never tried setting that up using the new project wizard, but the class you need (ViewPager) is available in the support library v4 Aug 01 20:05:49 hi, do I need to request any credential for programming the serial port? Aug 01 20:06:17 JesusFreke if you notice anything wrong or make it better, i'd be happy to know ;) http://pastebin.com/EtLz3m6C Aug 01 20:06:24 b1n4ry: I have a ViewPager right now in a project with MinAPI = 8 Aug 01 20:07:16 guys how do you know download file in local storage? I tried something like that http://pastebin.com/PBtJuf2R but I get Caused by: java.lang.IllegalArgumentException Aug 01 20:08:31 ian_ford, so there is no need of Actionbarsherlock? Aug 01 20:10:13 b1n4ry: minSdkVersion=14 Aug 01 20:10:34 b1n4ry: I haven't implemented the scrollable tabs portion of what you're asking for myself. I don't know if that's built in the extended actionBar or if its a custom view. Aug 01 20:10:55 b1n4ry: But I would guess you want to use either ABS or the v7 support library actionbar Aug 01 20:11:22 hmm, I was wondering if jbq was bitching because motox doesn't launch with 4.3? Aug 01 20:12:11 One of my activities has a download_queue_manager instance that I've created. This instance variable seems to disappear when he activity is unloaded and then reloaded. How do I preserve this object across activity loads? Aug 01 20:12:27 pfn wouldn't that have been known loooong ago though? like over 6 mos ago :P Aug 01 20:12:38 * pfn shrugs Aug 01 20:12:43 i hope someone here can answer this .. within the past month, i have run across apk files that are encrypted, so i cannot test the integrity with unzip .. yet, aapt dumps them just fine .. what gives? Aug 01 20:13:12 did they change something in the SDK or is it some weird new thing i haven't heard about? Aug 01 20:13:55 android 4.something encrypted apks it downloaded from market, didn't it? Aug 01 20:13:56 therion23: how do we know what you have "heard" about ? Aug 01 20:14:23 StingRay_, default to "i haven't heard about" :) Aug 01 20:15:11 pfn, could be 4.2 and upwards? has never happened with downloads on any of my devices, but my newest is 4.1.2 i think Aug 01 20:18:21 g00s: cool, thanks :) Aug 01 20:21:10 JesusFreke you're welcome :) Aug 01 20:21:29 thanks for showing me your original snippet - that got me off the ground Aug 01 20:23:58 custom designs > google_android_guidelines == false Aug 01 20:24:01 idk why people don't seem to get it D: Aug 01 20:24:21 I'm using a RelativeLayout and I have an EditText aligned to the left of an ImageButton. The EditText's height is smaller than the ImageButton's so I used android:layout_alignTop to adjust that missing hight, but this alignment locks the resizable height of the EditText, is there any EditText Property that does not lock the height? Aug 01 20:24:36 Brian|CB: it depends, there are a few apps that subtly break the rules successfully Aug 01 20:25:12 RyanM: So do you think it's worth scrapping the action bar and drawer layout and implementing your own just to make changes to the UI? Aug 01 20:25:18 Cause thats basically what people are asking me to do Aug 01 20:27:37 Brian|CB: How much labor are we talking here? Custom adapters or rolling your own from scratch? Aug 01 20:29:10 Brian|CB: if the app/design and function require it yes Aug 01 20:29:16 a guideline is not a rule Aug 01 20:29:23 or they would be called rules :) Aug 01 20:30:42 pfn: why should you not be using it? Aug 01 20:31:07 What if I want to subclass WebView? Aug 01 20:31:25 Question about adapters: Due to poor design, a single list view can contain two distinct types of views. With a BaseAdapter, view recycling is kind of a nonoption. Firstly, is it better to just not recycle views (which is obviously slow and dumb), or use a single view setting one layer of it as GONE and the other as VISIBLE (seems dumb, but maybe better). Aug 01 20:31:38 why would you need to Aug 01 20:31:40 Secondly, is there a AdapterView that handles multiple kinds of views Aug 01 20:32:05 A listview can have as many types of views as you want Aug 01 20:32:13 That's why the adapter has getViewTypeCount Aug 01 20:32:17 pfn, ok. found it. i wasn't extending ActionBarActivity Aug 01 20:32:19 Wait, really Aug 01 20:32:21 BenOrnstin listviews can bie used with multiple views Aug 01 20:32:28 And getItemViewType Aug 01 20:32:30 Wow, I did not realize that Aug 01 20:32:54 SimonVT, that didn't seem to work for me when I was using it in an actionbar navigation :-/ Aug 01 20:33:22 Thanks! Aug 01 20:33:27 pfn: why would I not need to? Isn't this the point of the ability to subclass? If you don't want a method overridden you declare it final — not deprecate it Aug 01 20:33:42 pfn: Maybe spinner doesn't like multiple view types Aug 01 20:33:49 dcow, and where is it deprecated Aug 01 20:33:55 pfn: so the question is why is it @deprecated Aug 01 20:33:59 SimonVT, maybe... Aug 01 20:34:06 what do the docs say Aug 01 20:34:32 pfn: http://pastebin.com/ci114XBs Aug 01 20:34:34 nothing Aug 01 20:34:35 oh well Aug 01 20:34:53 I've checked 4.2 and 4.3 sources — deprecated in both Aug 01 20:35:06 so why are you extending webview and needing to override on measure Aug 01 20:35:35 That's really beside the point. Can you not think of a reason one might want to do that? Aug 01 20:35:41 no Aug 01 20:37:07 Splits interface and implementation; all client calls are forwarded Aug 01 20:37:07 to an abstract WebViewProvider interface, and the existing implementation Aug 01 20:37:17 pfn: Spinner wraps your adapter in a DropDownAdapter that returns 0 for getItemViewTypeCount Aug 01 20:37:47 SimonVT, indeed, I just hacked up my getView to detect if viewtype is different from what is in the convertview Aug 01 20:37:48 I mean 1 Aug 01 20:38:01 The goal is to implement a functional minimum height for a webview. Setting minimumHeight on a webview with wrap_content as its height parameter doesn't seem to work. So in my overridden onMeasure, I'm allowing it to set its desired height by calling super, then checking against the minimum height and resetting the height if I need to Aug 01 20:39:45 dcow, override onMeasure in the view delegate, not webview Aug 01 20:40:25 dcow, and no, you can't just mark a method final in a public api where it has been non-final Aug 01 20:40:33 the correct course of action is to deprecate Aug 01 20:40:46 no, deprecated tells people not to use it Aug 01 20:40:57 that includes overriding Aug 01 20:41:03 final tells people they can't use it Aug 01 20:41:14 well yes, it does Aug 01 20:41:15 but people can still use it Aug 01 20:41:25 deprecation means it's discouraged Aug 01 20:41:29 but It's generally a bad idea to subclass and remove functionality Aug 01 20:41:30 And deprecated tells people they shouldn't use it Aug 01 20:41:51 that is a good point — It just seems odd Aug 01 20:42:31 "If you're new to writing Android apps, note that the action bar is one of the most important design elements you can implement. Following the guidelines described here will go a long way toward making your app's interface consistent with the core Android apps." Aug 01 20:42:47 They can't change the existing api Aug 01 20:42:52 Just deprecated it and offer new approaches Aug 01 20:42:58 if I understand correctly, usually the way an application is developed is that you write some .java files which are compiled to .class files which are compiled to dalvik, yes? Aug 01 20:43:07 I guess it's more the notion that onMeasure is an integral method in the layout process Aug 01 20:43:31 and to @Deprecate it means you should not use it anymore Aug 01 20:43:40 but views *need* onMeasure Aug 01 20:43:40 Brian|CB: "consistent with the core Android apps" Aug 01 20:43:53 if that is your goal then hell yes Aug 01 20:44:01 if that is in the design spec then hell yes Aug 01 20:44:04 hi friends, i'm having some trouble with the onItemClickListener for a ListView. specifically, trying to use getItemAtPosition() to return a certain element in the adaptor. i am unable to get it to return anything other than null. been googling and trying various things for 3 hours but no luck :(. anyone able to help in here or via PM? Aug 01 20:44:06 if not then no Aug 01 20:44:09 I was confused because it would seem to signal that the way views work — or the way webviews work is changing Aug 01 20:49:00 A tool called dx is used to convert some (but not all) Java .class files into the .dex format. <-- what's this subset? Aug 01 20:52:44 palomer: ones that won't run on an Android device? *hides* Aug 01 20:52:57 seriously, though - where are you seeing that? Aug 01 20:53:04 wikipedia Aug 01 20:53:08 can dx take ANY .class file? Aug 01 20:53:38 to the best of my knowledge, all Java code that runs in an APK is dexed. Aug 01 20:53:39 hi, I am using Maven dependency of ddms as com.android.tools.ddms:ddms:22.1.2 in connection with Android SDK tools 22.0.5 (the latest version, just updated) and I am not able to remove port forwarding while using my IDevice delegate. All was good when I used version 22.0.1 of ddms and Android SDK tools. When I updated to 22.0.5 to Android SDK tools, I was thinking I set ddms to the same version but 22.0.x branch stopped on 22. Aug 01 20:54:12 RyanM, right, but can dx dex ANY class file? Aug 01 20:54:29 I'm unsure whether it's compatible with Java 7 bytecode. It can, at the very least, dex any class file from Java 6 and below. Aug 01 20:54:38 actually Aug 01 20:54:49 that's definitely true if it's generated from Java. Aug 01 20:55:08 I heard someone report issues using other languages that compile to JVM bytecode. Aug 01 20:55:45 Considering the number of non-Java compilers generating class files used on Android, I think it's safe to say any reasonably constructed class file. Aug 01 20:56:00 but that's anecdotal evidence from a while ago, so take that with a grain of salt. Aug 01 20:56:23 if it was the case at one point, the issue has likely been fixed. Aug 01 20:56:35 plaomer: More importantly, what are you worried about? Aug 01 20:56:41 palomer: More importantly, what are you worried about? Aug 01 20:56:56 kjeldahl, I'm writing my own class files Aug 01 20:57:12 or, rather, I'm writing my own compiler Aug 01 20:57:19 I want to know what subset is available Aug 01 20:57:39 palomer: Do not worry about it. By the time you hit an edge case, you'll be experienced enough to easily work around it. Aug 01 20:58:02 true, true Aug 01 20:58:09 so I'll just assume all of java6 is good Aug 01 20:58:13 yes Aug 01 21:00:43 pfn: you realize that the whole WebViewProvider interface is @hide[n] Aug 01 21:01:10 dcow, bummer for you, but it's a webview, its size should be static Aug 01 21:02:04 haha so your solution isn't really a solution.. Aug 01 21:02:16 I can't create my own provider Aug 01 21:02:46 and yes it's size should be static but onMeasure will return 0 even if the minimumHight property is set for webview Aug 01 21:03:09 because it doesn't get it's size from the WebView but from the provider Aug 01 21:03:10 don't set it to wrap_content Aug 01 21:03:28 or just continue trying to subclass it, what does it matter if you override a deprecated method Aug 01 21:03:32 what you're doing is generally undesired Aug 01 21:03:55 for exactly that reason, I don't want to be doing something that's undesired Aug 01 21:04:08 eb Aug 01 21:04:09 then don't specify wrap-content for the size of your webview Aug 01 21:04:13 gah Aug 01 21:04:21 and the "correct" way to do it as suggested by you isn't possible because the api is hidden Aug 01 21:04:41 well, subclassing it or extending the provider is undesirable Aug 01 21:04:48 since what you want can most likely be performed in layout anyway Aug 01 21:04:58 (i mean it *is* possible but I think using a hidden api is worse than overriding a deprecated method) Aug 01 21:05:42 so if I have three webviews in a listview (just a hypothetical) if they're not set to wrap_content what should they be set to? Aug 01 21:06:00 height 0 weight 1 (that only works if they're in a linear layout) Aug 01 21:06:02 ? Aug 01 21:06:30 I want the hight of my webview to be the hight of the content or some minimum hight Aug 01 21:06:46 in a listview? Aug 01 21:06:46 that doesn't seem like a crazy thing to ask does it? Aug 01 21:06:51 they should be set to match_parent Aug 01 21:06:52 they're not in a listview Aug 01 21:07:00 oh, linearlayout, misread you Aug 01 21:07:05 not that either Aug 01 21:07:10 I was just throwing examples Aug 01 21:07:21 use a relative layout Aug 01 21:07:23 use a grid layout Aug 01 21:07:28 use layout weights in a linear layout Aug 01 21:07:30 whatever Aug 01 21:07:59 so the correct solution is to ignore that the minimumHeight property for WebViews is broken and find another one? Aug 01 21:08:02 seems silly Aug 01 21:08:10 * pfn shrugs Aug 01 21:08:13 silly to you Aug 01 21:08:14 another solution Aug 01 21:09:18 well yeah but this isn't discussed anywhere in the docs and the methods that *are* given to set something like a minimum height for a view don't work in this case — seems like this should be addressed Aug 01 21:09:20 I would file a bug that webview doesn't honor minimumheight and move on Aug 01 21:09:40 yeah, if it's a bug that makes sense Aug 01 21:10:07 it just doesn't seem like the public solution should be to ignore it and jump through hoops to make some other solution work Aug 01 21:10:25 sorry I know you're not an authority Aug 01 21:10:38 thanks for the advice Aug 01 21:12:37 file a bug anyway, whether or not it's a bug, at some point they may get back to you telling if it's intended, workarounds, etc., or someone else might chime in Aug 01 21:13:37 sure. Aug 01 21:15:20 "Man called 911 over missing burger" Aug 01 21:15:28 damn straight Aug 01 21:15:41 people been using 911 the wrong way for so long Aug 01 21:15:49 "A man is accused of calling 911 after noticing he only had six of seven burgers he ordered at a McDonald's" Aug 01 21:16:10 I hope he got his burger Aug 01 21:16:11 dcow call 911 about webview Aug 01 21:16:17 Is it possible to only catch urls on my activity/intent with a certain query string parameter? Aug 01 21:16:18 He had time between heart attacks to count them? Impressive. Aug 01 21:16:19 oops Aug 01 21:16:24 "WebView is awful, POLICE!!!" Aug 01 21:16:41 ?openInApp=true ? Aug 01 21:17:03 don't give me ideas Aug 01 21:17:59 gavilan2: https://developer.android.com/guide/topics/manifest/data-element.html#path Aug 01 21:18:10 gavilan2: no Aug 01 21:18:23 RyanM: that's the path, and he wants the query string, no? Aug 01 21:18:38 oh, is that not included in the path for intent filters? Aug 01 21:18:42 nope Aug 01 21:18:47 ah, didn't know that Aug 01 21:18:48 because it's not part of the path :) Aug 01 21:19:01 scheme://host/path?query#fragment Aug 01 21:19:14 then...yeah, what evanc said :-) Aug 01 21:20:04 you could of course cheat and stick /open_in_app or something onto the end and match that. But that's a little hacky. Aug 01 21:20:24 evanc: i dont imagine its possible for software to enable/disable the lockscreen on demand without root? Aug 01 21:21:41 birbeck: correct Aug 01 21:22:01 birbeck: well, you can enable it via device admin APIs (you can set a PIN) Aug 01 21:22:16 bah. figures. had an idea, but i didnt want to spend any time with it if it wasnt doable Aug 01 21:23:05 So I'm giving PendingIntent.getService() different request codes, but it's still overwriting my PendingIntents... Aug 01 21:23:10 i was just thinking disable the lockscreen when you are connected to a certain wifi network, paired with a particular device or touch a tag Aug 01 21:23:47 so if im at home/office/etc, i dont need to unlock the device. but if i drop it on the subway, its still protected Aug 01 21:24:02 maybe ill go file a feature request and a patch for 5.0 :) Aug 01 21:24:21 birbeck, advanced keyguard manager Aug 01 21:24:22 ^^ Aug 01 21:24:37 pfn: is it a lockscreen replacement though? Aug 01 21:24:40 no Aug 01 21:25:08 somebody using Maven ddmlib here? Aug 01 21:25:12 I use ddmlib Aug 01 21:25:15 not maven Aug 01 21:25:30 what kind of that library are you using? Aug 01 21:25:34 i mean, version Aug 01 21:26:02 oh, I use the latest version out of maven, or rather, whatever is currently referenced by com.android.tools.build-builder-0.5.4 Aug 01 21:26:44 pfn: ah i see, it uses device admin Aug 01 21:26:54 but yeah, thats almost exactly what i was thinking Aug 01 21:27:02 hmm, I was happy when I was using 22.0.1 of ddmlib with Android SDK tools of version 22.0.1 as well but today I did update of SDK tools to 22.0.5 and e.g. port forwarding is broken, I can't remove it Aug 01 21:27:11 birbeck, with the exception of nfc, it's basically what you asked for Aug 01 21:27:31 so I was thinking I need to use the same version of ddmlib as Android SDK tooling has but 22.0.x stopped at 22.0.3 Aug 01 21:27:33 well nfc is kinda dumb for that anyway Aug 01 21:27:40 and nothing higher seems to work Aug 01 21:27:58 since the screen needs to be on and such close proximity Aug 01 21:28:04 birbeck, right Aug 01 21:28:34 the keyguard disabling is a little flakey, but I haven't bothered looking into fixing it yet Aug 01 21:29:32 pfn: oh did you write this? Aug 01 21:29:39 birbeck, yes Aug 01 21:29:46 can you call FragmentTransaction.replace() without first having called add() ? Aug 01 21:29:47 ic, cool Aug 01 21:29:59 I wrote the original one 3 or 4 years ago, but then 2.2 broke it, and I haven't bothered fixing it until now Aug 01 21:30:17 heh Aug 01 21:30:35 i see you have a 4.3 fix Aug 01 21:30:51 yeah, I run it on my tablet and phone Aug 01 21:31:04 is there a way to configure eclipse to have different "Debug..." options for my android project such that each option runs a different ant task? Aug 01 21:31:30 can't you set the ant target in the run configuration? Aug 01 21:31:32 its not supported on my googletv? :-P Aug 01 21:32:00 pfn: i dont see where i can do that Aug 01 21:33:31 smoak, can't you set the run configuration to invoke an ant task? Aug 01 21:33:36 * pfn shrugs Aug 01 21:33:46 no, i dont see where theres an option to do that Aug 01 21:34:16 pfn: i ordered it :) Aug 01 21:34:29 theres just "Android Application" and if i create a new one, it has options for what activity to start, what emulator/device to target and thats it Aug 01 21:34:29 birbeck, let me know how you like it Aug 01 21:35:02 smoak, don't choose android application, choose ant Aug 01 21:35:10 there's some sort of ant integration in eclipse Aug 01 21:35:15 it was janky last time I used it ages ago Aug 01 21:36:57 hmm, i dont see that option though: http://i.imgur.com/T0r0974.png Aug 01 21:41:21 hmm, i see i can do it with external tools, but then it doesnt show up in the Run As... or Debug As... menu Aug 01 21:42:49 smoak if you are using git, probably want to .gitignore .externalToolBuilders/ if you're using that Aug 01 21:54:31 I have an adapter that pulls data from a large dynamic list of entries. What would be the fastest and most efficient way to be able to update the adapter without having to resort to creating copies of the data, which I'm finding is required to avoid an "adapter contents changed without notifying" exception from listview? Aug 01 21:56:06 the list is in memory only and it's not feasible to store in a db/file/etc Aug 01 22:00:10 not sure what you mean Aug 01 22:00:14 update the adapter ? Aug 01 22:00:26 copies of data ? Aug 01 22:02:39 Ok, so I have a large list of items which are dynamic. My adapter uses that list, and the ListView uses that adapter. When the items are changed (they are changed frequently), the ListView throws an exception, "adapter contents changed, make sure you only update from the UI thread" Aug 01 22:03:33 How can I change the entries in my items (add & delete) without ListView throwing an exception? The items are updated from a bg thread Aug 01 22:04:00 AlCapwn, you implement your own cursor adapter Aug 01 22:04:08 AlCapwn, and you call notifyDatasetChanged when data changes Aug 01 22:05:22 Does a Cursor work without a database? Aug 01 22:05:29 no Aug 01 22:05:38 but the second part is correct Aug 01 22:05:46 just call notifyDatasetChanged() Aug 01 22:06:00 and the adapter updates Aug 01 22:06:33 AlCapwn, cursor doesn't, cursor adapter can though. Aug 01 22:06:35 AlCapwn: yes Aug 01 22:06:45 it's built for datasets where you only want to have a small window due to size Aug 01 22:06:50 AlCapwn: you can make your own Cursor (see MatrixCursor) but you shouldn't Aug 01 22:07:09 hey Aug 01 22:07:20 but yeah, evanc is right :) Aug 01 22:07:27 I updated my tablet to 4.3, and I noticed how Google Keep works Aug 01 22:07:46 is the API for the Google Now intent that is sent to either Google Keep or Gmail public? Aug 01 22:08:27 I'd like to extend MobileOrg to handle that Aug 01 22:10:28 Hello! I'm new on programming Android apps, but I've made a few simple apps. Is there any good places to find examples? That would help me a lot in the start :) Aug 01 22:11:37 Guys, im just getting started in android development, currently learning it from an online video training source, i can program in php and java , but for some reason the code that i see on android apps makes no sense to me, it doesnt sink in like writing a normal java program, i see a lot of code generated and can't see the big picture of how it is put together, or one of those "gotcha" moments where you get it and then it is j Aug 01 22:12:19 Does anyone has any suggestions on how you became proficient at android app writing? im talking about understanding the code Aug 01 22:12:44 just write stuff Aug 01 22:12:50 you will learn Aug 01 22:13:44 Stigh123: of course. The SDK itself has examples, you just need to download them :) Aug 01 22:14:14 molossus: I think Android makes heavy use of anonymous classes, if you don't know how they work, you won't understand it Aug 01 22:15:20 android has no class Aug 01 22:16:09 i still cant get the edittext in a popup window to accept anything Aug 01 22:17:14 and I still didn't find the docs over google now notes :-/ Aug 01 22:19:37 number-7 , im learning from Lynda.com - Building.a.Note-Taking.App.for.Android and i think i saw that edit text module in one of the chapters, are you learning from that source too? or online resources? Aug 01 22:20:09 y irony Aug 01 22:20:23 i learn from the class library page Aug 01 22:20:52 go here: http://developer.android.com/reference/classes.html Aug 01 22:20:58 and read them all Aug 01 22:21:13 molossus: practice (as in, do it. a lot.) Aug 01 22:21:50 evanc , will do, who knew android was 3 times a pain to learn than other programming languages Aug 01 22:21:56 but i still cant get the edittext in a popup window to accept anything Aug 01 22:22:07 and no one knows what to do Aug 01 22:22:45 its gotta be somthing dumb too Aug 01 22:22:52 number-7: "accept anything" is a bit broad Aug 01 22:23:16 cant type in it Aug 01 22:23:41 it just sits there with a cursor Aug 01 22:23:56 that move if you click it Aug 01 22:24:12 but you cant tyoe text into it Aug 01 22:24:22 how did you create it ? Aug 01 22:24:31 in eclipse Aug 01 22:24:47 draged it in there Aug 01 22:25:33 pastebin the relevant code and layouts Aug 01 22:25:38 let people have a look Aug 01 22:25:57 like who? Aug 01 22:26:22 the people in this channel ??? who else ? Aug 01 22:26:28 will you? Aug 01 22:27:09 probably if no1 with lots of experience does Aug 01 22:27:23 see, no one will help Aug 01 22:27:44 no1 can Aug 01 22:27:47 im looking for someone whos done it and knows what to do Aug 01 22:27:49 until you do what i said Aug 01 22:28:36 if i paste it, will you look? Aug 01 22:28:59 number-7: you dont require someone to commit Aug 01 22:29:09 you just do it an see if anyone does answer you Aug 01 22:30:09 do you know what to pastebin ? Aug 01 22:32:11 ... gosh, this is difficult, I'm not even sure what I'm looking for Aug 01 22:42:18 FOUND IT Aug 01 22:42:20 com.google.android.gm.action.AUTO_SEND Aug 01 22:54:39 Denommus: is it protected? Aug 01 22:54:43 I would hope so Aug 01 22:55:34 evanc: any application can receive this intent, AFAIK. But Google Keep and Gmail will only recognize intents sent from google services Aug 01 22:55:52 evanc, where is selinux configured on 4.3? Aug 01 22:56:14 pfn: I haven't the sligthest idea Aug 01 22:56:41 evanc, I can su from adb, but I think selinux is blocking all permissions Aug 01 22:56:45 Denommus: yeah, that's what I meant--I don't want random apps sending gmail an AUTO_SEND intent Aug 01 22:57:17 I also suspect that Google Now is setting the package on it so random apps can't intercept it, but who knows Aug 01 22:57:24 pfn: good Aug 01 22:58:06 yeah, now I just want to figure out where it's configured so I can disable/reduce the restrictions Aug 01 22:59:32 I'd imagine Chainfire would know Aug 01 23:00:32 evanc: other apps that receive the same intent may not be protected, though Aug 01 23:01:35 Denommus: why would that matter? Aug 01 23:01:58 evanc: I don't know Aug 01 23:21:07 Hello, I'm making an app that is a "floating" windows over what was on the screen before, but when the activity is called, the previous window is closed and behind the floating activity is the homescreen. Does anyone know if there's a way that I can get this to not happen so that my activity is "floating" over the previous one? Aug 01 23:21:56 kangarang: ... the behavior you want is the default behavior, you must be doing something weird, how are you opening the floating activity? Aug 01 23:22:19 Denommus, with a PendingIntent in a notification Aug 01 23:23:30 http://pastebin.com/seRTjBgJ Aug 01 23:25:53 looking for an easy way to download apks to my computer, so far i found https://github.com/egirault/googleplay-api Aug 01 23:25:59 what else are my options? Aug 01 23:26:10 Where from? Aug 01 23:26:17 oh from the play store Aug 01 23:26:32 What I do usually is install them and then copy them over through adb. Aug 01 23:26:42 i need root for that right? Aug 01 23:26:55 Maybe, I don't know Aug 01 23:27:28 Nope Aug 01 23:27:58 while /data is not user readable, i think the actual .apk's are readable and you can get the path from the packagemanager Aug 01 23:28:29 oh ye and through adb backup Aug 01 23:28:36 oh true Aug 01 23:28:38 The apk is named the same as the package name Aug 01 23:28:45 Appended with -1 or -2 or something Aug 01 23:28:47 There usually is a 1 Aug 01 23:28:47 Just pull that Aug 01 23:28:48 yeah Aug 01 23:29:22 So how about a simple way to produce a crash? Aug 01 23:29:46 a crash :D? Aug 01 23:30:05 Yes. I want to test out the crash reporting tool I just integrated. Aug 01 23:30:14 Just do an NPE Aug 01 23:30:18 throw new RuntimeException() ? Aug 01 23:30:27 SimonVT, dam.. :D Aug 01 23:30:30 I threw a NPE but it just told me that the app isn't responding Aug 01 23:30:57 marrrk, in that case i wouldn't search for different crash methods... Aug 01 23:31:05 Instead of my usual crashes. I don't know if that has to do with the reporting app or something else. Aug 01 23:31:06 if it can't deliver NPEs thats some major flaw... :) Aug 01 23:31:12 Then your crash reporting isn't working Aug 01 23:31:14 what tool ? Aug 01 23:31:24 ACRA Aug 01 23:31:43 Works for me :) Aug 01 23:31:49 just added it 2 days ago Aug 01 23:31:51 adb shell pm path packagenamehere Aug 01 23:32:01 But I was confused because usually when I get a crash it says "Unfortunately blabla has stopped working" and not "It's not responding...:" Aug 01 23:32:10 So I wasn't sure about my throwing of the npe Aug 01 23:32:31 iirc, when you crash, ACRA blocks while it attempts to upload the crash report.. It should stop blocking before getting the ANR tho Aug 01 23:32:34 I have a file operation that is called by a service. when I press a button on my UI to call the service the UI also freezes up. I thought the point of services was to stop that? I should note the service has a while loop so thats probably why Aug 01 23:32:51 It probably should Aug 01 23:32:52 Services are on the main thread Aug 01 23:32:53 Linkandzelda: nope, that's not the point of services :-) Aug 01 23:32:54 Linkandzelda, service runs in the same process Aug 01 23:33:07 oh yes, I should give it its own process Aug 01 23:33:17 No, you should start a thread Aug 01 23:33:19 they share the same main thread unless you explicitly specify otherwise Aug 01 23:33:25 ah, i see Aug 01 23:33:28 Linkandzelda, you might want to save your operation from the activity lifecycle in a service, but will still hav to create a worker (Async/Loader/Thread) Aug 01 23:33:29 and...yeah, do what SimonVT said :-) Aug 01 23:33:50 Oh looks like my wifi was just fucked up Aug 01 23:34:25 Still, ACRA should stop blocking before the ANR and let the process die Aug 01 23:34:33 ok, i'll create a thread for it then Aug 01 23:51:55 is there anyone here with any gradle knowledge? I'm trying to figure out how to copy my apk somewhere after building and i'm not sure how Aug 01 23:52:26 just copy the .apk Aug 01 23:53:24 i would like to integrate it with the build so that it happens automatically Aug 01 23:53:38 its already integrated Aug 01 23:53:47 one file Aug 01 23:53:51 the .apk Aug 01 23:53:52 i have the task already setup and working, but i'd like to have it run automatically Aug 01 23:54:16 number-7: what are you on about? Aug 01 23:54:18 drag it to your start screen Aug 01 23:54:46 http://pastie.org/8198342 Aug 01 23:54:55 oh come on... at least tell me which androidmanifest.xml files those are!! Aug 01 23:55:06 tnooooooooooooooooo Aug 01 23:55:16 just copy the .apk file Aug 01 23:55:21 1 file Aug 01 23:55:31 contains everything Aug 01 23:55:34 built Aug 01 23:55:36 number-7: I think your not really understanding his question Aug 01 23:55:55 me neither, lol Aug 01 23:55:56 carbohydrate, execute that task directly, and have that task depend on assembleDebug/assembleRelease Aug 01 23:57:25 so if i make it depend on assembleRelease, for instance, it would only run if assembleRelease were successful? Aug 01 23:57:33 i guess that would be what depends indicates.. hmm Aug 01 23:57:36 that makes sense Aug 01 23:58:27 * StingRay_ wonders if it's time to give gradle another go Aug 01 23:58:49 carbohydrate, that's right, that's how dependencies work Aug 01 23:59:17 i guess i was not trusting that it would only copy when the assemble was successful Aug 02 00:12:12 interesting Aug 02 00:12:36 got my manifest merging working... Aug 02 00:13:47 pfn just use gradle :P Aug 02 00:13:49 * g00s runs Aug 02 00:14:26 seriously, you don't get to snipe because you're the one that's so hardheaded Aug 02 00:14:56 you realize, I'm implementing my stuff by reading through the entirety of the gradle plugin to set this up in a compatible fashion, right? Aug 02 00:15:04 except it's not broken like gradle Aug 02 00:15:42 i'm not /that/ hardheaded :) i just work on 2 , soon 3 mobile platforms now and it works best for me to use the default stuff Aug 02 00:16:00 After the 4.3 upgrade, my Launcher is dead. I probably have to delete some apps. I'm guessing that's what is killing Launcher. Aug 02 00:16:14 Anyway, I was wondering ... can I start up apps inside from adb? Aug 02 00:16:21 g00s, you're utterly hardheaded, you're not even willing to spend 2 minutes to see that it takes less time to get working right Aug 02 00:16:36 if there were some features you needed that I didn't have, I'd understand Aug 02 00:16:39 but that's not even the case Aug 02 00:16:47 I mead start an app on my Nexus7 tablet via adb? Aug 02 00:16:53 https://www.google.com/search?q=start+app+from+adb Aug 02 00:17:00 roadfish, adb shell am startactivity Aug 02 00:18:06 On a related note, have people found 4.3 to be stable. Or is it just me? Launcher is crashing ... and probably because I have a thousand apps installed. Aug 02 00:18:15 a thousand apps? wtf Aug 02 00:19:02 I suppose that one should delete apps if you're not really using them. Aug 02 00:19:41 I was searching on the app limit. Someone said 25 apps was fine then someone else said 200. And the highest mentioned was 500. Aug 02 00:19:42 you must really enjoy flipping through the launcher Aug 02 00:20:00 So I guess I found a limit in what Android can handle. Or at least the launcher. Aug 02 00:20:29 pfn: I'm been grouping my apps. I some groups, they fill the entire screen. Aug 02 00:20:56 Alas, some culling will be needed ... tomorrow, after I back up the apps on my main computer. Aug 02 00:21:14 ... I mean: _In_ some groups Aug 02 00:27:21 Does anyone know why my adb usb device would fail to connect on my win7 to my nexus 10, but it connects fine from a guest vm running the EXACT same device driver? Aug 02 00:29:15 on Ubuntu, sometimes adb screws up. Don't know why but I found a work around to get it working again. Aug 02 00:29:56 First, I do: adb devices ... and when adb isn't working then it says "??????". Aug 02 00:30:22 Then what I do is: Aug 02 00:30:22 adb kill-server ; sudo service udev stop ; sudo service udev start ; adb devices Aug 02 00:30:40 then if I still have a problem, I switch the device to another USB plug on my computer. Aug 02 00:31:02 Really weird and a bit of a nuisance. But then adb starts working again. Aug 02 00:31:18 roadfish unfortunately, thats pretty normal Aug 02 00:31:24 mfgering: what does adb report when you say "adb devices"? Aug 02 00:32:11 ok, I thought my Ubuntu needed upgrading or something. At least here's one bug where I'm normal. Aug 02 00:35:55 roadfish, it's probably some issue with the driver, it's no ADB's fault. just disconnect and connect the device and it usually solves it Aug 02 00:36:17 usually it works fine for me if I just adb kill-server Aug 02 00:36:37 happens often when I have like 5 different apps using adb (ddms, intellij, a few sbt instances, etc) Aug 02 00:37:02 I tossed in the "sudo service udev stop ; sudo service udev start" to really clear out things. But usually I have to switch plugs too. Aug 02 00:37:42 sbt? Aug 02 00:38:05 alternative build tool Aug 02 00:38:49 maybe I should check it out. Aug 02 00:39:33 pfn, you like it better than Eclipse, or you're using it since before Eclipse ADT was out? Aug 02 00:39:48 jwalker60, I use intellij with it Aug 02 00:39:51 Interesting. Android development in Scala. I had been learning Haskell earlier this year. Might be nice to return to some functional programming. Aug 02 00:39:51 and yes, I like intellij better Aug 02 00:40:44 My ideal would be function reactive programming in Haskell for Android. But I think that'll be a bit of a wait. Aug 02 00:41:21 function reactive? Aug 02 00:41:31 roadfish Rx ? Aug 02 00:42:16 (reactive extensions) ? Aug 02 00:42:47 http://en.wikipedia.org/wiki/functional_reactive_programming Aug 02 00:43:34 Haskell has really dense ways of specifying programs. You make declarative statements of what you want things to be like ... and the program just ends up being much shorter. But the logic is much higher level than regular procedural/imperative code. Aug 02 00:43:43 roadfish they mention RxJava Aug 02 00:43:46 I see Aug 02 00:43:52 sbt is all about functional reactive Aug 02 00:44:10 and yeah you aren't gonna see that in android any time soon Aug 02 00:44:19 RxJava works fine on android Aug 02 00:44:26 but, … Java Aug 02 00:44:28 :P Aug 02 00:44:38 I haven't heard about RxJava. I might want too look into that. I dislike Java code when compared to Haskell. Java just feels too verbose. Aug 02 00:45:22 java is for the masses Aug 02 00:45:50 roadfish: Nothing in the list. Aug 02 00:45:59 mfgering, what shows up in device manager? Aug 02 00:46:09 could not find property assemblePaidRelease Aug 02 00:46:11 wtf Aug 02 00:46:23 * pfn just stays away from the gradle train Aug 02 00:46:24 pfn: Hey, good to see you! Aug 02 00:46:37 ? Aug 02 00:46:51 it find assembleRelease just find - i wonder if it has something to do with the flavors Aug 02 00:47:20 pfn: The device manager shows Android Composite ADB Interface Aug 02 00:48:21 pfn: hardware ids: USB\VID_18D1&PID_4EE2 Aug 02 00:48:39 mfgering, but adb devices is empty? adb kill-server subsequently followed by adb devices still shows blank? Aug 02 00:48:43 you said you are running a vm? Aug 02 00:48:49 and it appears fine within said vm? Aug 02 00:49:44 are you running virtualbox? multiple users? Aug 02 00:49:46 pfn: Yes, in the vm, it is running the same device driver (exactly!), but the details are different when I look with usbview. Aug 02 00:50:15 there's several issues at hand, one, when you attach a device to a vm, like virtualbox, it becomes unavailable to the host Aug 02 00:50:40 two, if you run virtualbox with multiple users, it fucks up the usb drivers (on windows) to the point that the host never recognizes any new usb devices plugged in anymore Aug 02 00:51:00 pfn: I'm running vmware. And yes, I know when usb in a vm takes over the device. But that is not the problem here. Aug 02 00:51:19 detached it from the vm? Aug 02 00:51:26 pfn: So, if I terminate vmware workstation, it might work? Aug 02 00:51:37 probably, yes Aug 02 00:51:44 or if you reboot and don't run vmware Aug 02 00:51:54 ok, i've got this tablelayout, http://www.fpaste.org/29634/40466313/ the first column and the first row is staying put when i scroll around in the table, just like i want. What I'm having trouble with now is when i scroll left and right, i want the first row to scroll left and right also Aug 02 00:52:11 its the column headers, they shoujld move left and right with the data Aug 02 00:52:18 pfn: That's worth a try. Aug 02 00:52:35 * pfn always has terrible problems with connecting devices to vms Aug 02 00:52:43 but that's because the control service runs in multiple users for me Aug 02 00:52:55 I have to have my vm's running as admin because I need them to access physical disk Aug 02 00:54:01 hello Aug 02 00:54:44 pfn: I did a test using event tracing with the win device dev kit. Interestingly, the host trace shows events with "Unsupported IOCTL" followed by purging of the pipe. Aug 02 00:54:54 * pfn shrugs Aug 02 00:55:04 could be the usb filter drivers that vmware installs Aug 02 00:55:10 no clue without more experiments Aug 02 00:55:12 The guest vm trace does not have this error and reads/writes to the pipe without error. Aug 02 00:55:15 (2 steps mentioned earlier) Aug 02 00:55:44 kill vmware/services; see if it works, or, reboot without vmware services running and see if it works Aug 02 00:55:45 Yup. I'll do that. But it will be tomorrow. Aug 02 00:56:41 pfn: Ah. Is there a way to see what filters are running for a device? Aug 02 00:56:49 I wouldn't know Aug 02 00:57:33 pfn: Doesn't matter, iff the experiment works. Aug 02 00:57:57 pfn: Thanks again. TTYL Aug 02 00:59:17 and here's the code that i use to fill up the table, http://www.fpaste.org/29635/05143137/ Aug 02 01:02:48 caseycrites, turn off that auto-away/return Aug 02 01:02:51 seriously, that's annoying Aug 02 01:04:26 hm, new tools Aug 02 01:15:31 * pfn updates his plugin to use 0.5.5 as well Aug 02 01:16:49 proguard 4.10, too Aug 02 01:16:52 * pfn updates that as well Aug 02 01:17:10 yeah, saw 4.10 yesterday, but the tools seem to drag in 4.9 from maven central Aug 02 01:17:59 anyone here have the latest version of cocos2d-x? master branch. ccTouchBegan comes in late on CCMenu, breaks my stuff alot Aug 02 01:18:03 it comes in almost half a second late Aug 02 01:18:20 ive been searching but I cant figure out what could even cause this Aug 02 01:21:09 that'll learn me to pull git hehe Aug 02 01:22:15 i still can't get ANDROID_HOME to work with 0.5.5, local.properties it is Aug 02 01:27:48 oh wow this bug is only when I compile with xcode 5 Aug 02 01:27:56 * QcMat backs away from xcode 5, slowly Aug 02 01:29:44 xcode 5 is for brave souls Aug 02 01:30:09 hey i currently do no testing at all - what is the best way to learn? Aug 02 01:31:27 carbohydrate well a bit much, but this was a great book http://www.amazon.com/xUnit-Test-Patterns-Refactoring-Code/dp/0131495054 Aug 02 01:31:50 as well as http://www.amazon.com/Growing-Object-Oriented-Software-Guided-Tests/dp/0321503627 Aug 02 01:31:51 k i am gonna read through the testing fundamentals on the android site and maybe check that out Aug 02 01:31:57 :) Aug 02 01:32:04 i try to design for testability Aug 02 01:32:20 over architectural purity , when they are at odds Aug 02 01:33:06 well i am a horrible programmer and i am trying to be not so horrible ;-) Aug 02 01:33:12 brb, gotta update chrome Aug 02 01:33:16 g00s, yeah for sure, last version is a bit stable though, I use it to make sur emy games continue to work :) Aug 02 01:33:20 which this one doesnt :| Aug 02 01:33:40 submitted bug to cocos2d-x team, maybe it's them, or apple… we'll see Aug 02 01:34:57 hmm, you can make a row stay put and not scroll vertically in a tablelayout. but if you hafta scrol lleft and rigth, the dang row won't scroll Aug 02 01:35:46 Failure [INSTALL_FAILED_OLDER_SDK] Aug 02 01:35:49 interesting error Aug 02 01:36:09 good ole CIRC Aug 02 01:39:44 oh, oops Aug 02 02:24:57 So the new version of the adt bundle still comes with eclipse juno? Why not kepler? Aug 02 02:25:37 nvm 5/22 is still the latestest release Aug 02 02:27:07 nvm 7/29 is newest Aug 02 02:27:24 So why juno instead of kepler/. Aug 02 02:27:25 ? Aug 02 02:39:07 seriously.... stupid manifest merger, I want android:name="com.google.android.maps" android:required="false", it merges, and sets required="true" Aug 02 02:39:51 Ericthegreat maybe to pull Android Studio? Aug 02 02:39:59 force the migration? Aug 02 02:40:03 no idea Aug 02 02:40:22 I mean, push AS Aug 02 02:41:50 Hey, I am pulling data from an API in json format and inserting it into a sqlite database for offline viewing, should I use a content provider to act as the proxy between the API and the sqlite db? Aug 02 02:51:28 Ericthegreat the ADT bundle is pointless; just get your kepler and add ADT Aug 02 02:54:28 pfn are you going to file a bug about the manifest merging? Aug 02 02:58:39 should I use content provider only for android to android app communication or for web to android db writes as well? **** ENDING LOGGING AT Fri Aug 02 02:59:58 2013