**** BEGIN LOGGING AT Tue Aug 27 02:59:58 2013 Aug 27 03:07:00 say you have an API that returns JSON; is it relatively standard to have one class per API call for deserializing purposes? Aug 27 03:07:14 granted that the API is not restful, and each API call has different output Aug 27 03:25:40 hmm.. is there any way to record/capture system audio output? everything that i'm looking at makes it sound like i need to create a custom audio driver to interface with audioflinger. anybody have any thoughts? Aug 27 03:54:15 hey everyone, does anyone know how to make the "external build" checkbox preference persist between sessions? Aug 27 03:54:31 once I quit Android Studio and restart… that box is unchecked Aug 27 04:05:27 otiose: yes Aug 27 04:07:39 Where is the best place to ask questions about enabling performance monitor in android Aug 27 04:09:25 I mean performance counters Aug 27 04:16:32 I'm trying to create a list view with items that expand to show more on click but can't figure out how, does anyone know of any examples of that? Aug 27 04:18:34 ApiDemos Aug 27 04:20:43 g00s a collapseable list adaptor Aug 27 04:20:50 ? Aug 27 04:21:19 http://developer.android.com/reference/android/widget/ExpandableListView.html Aug 27 04:21:37 find some examples of that in ApiDemos Aug 27 04:22:17 g00s all the ones of expandable list view i've seen are groups with sub items Aug 27 04:22:42 oh, i see what you're saying Aug 27 04:23:17 i want single items with expandable details Aug 27 04:23:50 wouldn't you just unhide the relevant parts of the view? Aug 27 04:24:02 but yeah, i'm not the best to answer that Aug 27 04:24:16 hi Aug 27 04:24:24 that is exactly what you'd do Aug 27 04:25:12 from what i'm seeing ListAdaptor Collapsed does what I want Aug 27 04:26:56 I think im buying the nexus 7 Aug 27 04:26:57 :) Aug 27 04:27:06 shaun413: think? Aug 27 04:27:10 yes think Aug 27 04:27:11 you should already have it dude Aug 27 04:27:15 maybe buying the note 8 Aug 27 04:27:21 i pre-ordered the first one, and the second one Aug 27 04:27:21 but the nexus 7 looks nice Aug 27 04:27:25 it's fucking awesome Aug 27 04:27:33 but the GPS is terrible! Aug 27 04:27:36 any iussues/ Aug 27 04:27:38 not it isn't Aug 27 04:27:44 Leeds: they patched that Aug 27 04:27:45 screen bleed? Aug 27 04:27:50 not that i've heard Aug 27 04:27:54 random reboots! Aug 27 04:28:00 multitouch! Aug 27 04:28:05 only issues i've heard were multi touch and gps and reboots but they patched those Aug 27 04:28:06 hair under screen! Aug 27 04:28:17 i've never had random reboots Aug 27 04:28:20 the bezels are too big/small! Aug 27 04:28:24 device explodes while using! Aug 27 04:28:27 haha Aug 27 04:28:39 I'd buy the nexus 7 at twice the price Aug 27 04:28:41 it's that good Aug 27 04:28:45 !?! Aug 27 04:28:50 no light bleed on yours? Aug 27 04:28:53 nada Aug 27 04:28:57 hmm Aug 27 04:29:01 is it big enough? Aug 27 04:29:03 not on my friends either Aug 27 04:29:04 to satisfy you? Aug 27 04:29:05 it's perfect Aug 27 04:29:26 Mrono: in case you don't know, shaun413 has been asking for advice from everyone and anyone in #android about this for weeks, and appears to have got bored of asking there, so is asking here now Aug 27 04:29:27 I really need an 8 in to satisfy me Aug 27 04:29:34 it's skinnier and taller than the first nexus 7, which is amazing Aug 27 04:29:43 better to hold? Aug 27 04:29:43 he's 'decided' to buy a Nexus 7 a few times, then reappeared the next day to ask for more advice Aug 27 04:29:50 shaun413: yes Aug 27 04:29:53 hmm Aug 27 04:29:56 Ok Aug 27 04:29:58 Ill order it Aug 27 04:30:03 also the screen is super high res and really beautiful to look at Aug 27 04:30:04 what case? Aug 27 04:30:07 and it has a camera Aug 27 04:30:08 moko Aug 27 04:30:09 and screen protector? Aug 27 04:30:12 don't need one Aug 27 04:30:15 I do Aug 27 04:30:28 http://www.amazon.com/MoKo-Slim-fit-Google-Android-Tablet/dp/B008FLYROG Aug 27 04:30:34 best case i've ever had Aug 27 04:30:40 got it for my first one and second one Aug 27 04:31:08 meh Aug 27 04:31:14 i dont like how that case latches on Aug 27 04:31:14 really with a screen protector it's hit or miss on any Aug 27 04:31:16 looks tacky Aug 27 04:31:21 is it that noticable? Aug 27 04:31:27 tacky? Aug 27 04:31:29 it's solid Aug 27 04:31:54 since it's a physical latch and not crappy magnets it's not going to fail Aug 27 04:32:07 and yes it does have a magnet to trigger the screen to turn on when you open it Aug 27 04:32:12 hmm Aug 27 04:32:22 how are the little hooks that go on the screne? Aug 27 04:32:26 are they obtrusive? Aug 27 04:32:30 not at all Aug 27 04:32:33 you never notice them Aug 27 04:32:40 they look so in the picture Aug 27 04:32:42 and i've never had my device slip out, on either of them Aug 27 04:33:19 everything looks different in pictures Aug 27 04:33:23 hmm Aug 27 04:33:36 better than poetic slimline? Aug 27 04:33:40 I was going to get that Aug 27 04:33:44 haven't had that one Aug 27 04:34:04 ah, crappy magnets Aug 27 04:34:32 oh a genuine leather one! Aug 27 04:34:59 my advice is to get the moko case, it's a very good case and it's only 20 bucks or so Aug 27 04:35:06 and you can always return it if you hate it Aug 27 04:35:14 ok Aug 27 04:35:21 i don't even have a case on mine lately Aug 27 04:35:30 it's so slim and sexy without one Aug 27 04:35:56 hmm Aug 27 04:36:18 man my original nexus 7 feels so thick now Aug 27 04:36:30 it's like a freaking brick Aug 27 04:36:46 by the way the battery on the new nexus is awesome Aug 27 04:36:55 ! Aug 27 04:36:58 i never have any issues with it, even when watching movies or playing games Aug 27 04:36:59 is it good for reading Aug 27 04:37:05 I want to put textbooks on it Aug 27 04:37:09 is it big enough? Aug 27 04:37:09 you'll go days if that's all you're doing Aug 27 04:37:13 yes Aug 27 04:37:32 do they have free books Aug 27 04:37:45 prob idk Aug 27 04:37:52 hmm Aug 27 04:37:53 i use my nook for books Aug 27 04:38:01 ahh Aug 27 04:38:03 and the nook app for books on my nexus Aug 27 04:38:08 what do you use your nexus for? Aug 27 04:38:37 reddit, netflix, youtube, games, email, texting, skype, remote desktop Aug 27 04:38:44 camera Aug 27 04:38:46 maps Aug 27 04:38:46 hmm Aug 27 04:38:55 good reddit app? Aug 27 04:39:00 bacon reader Aug 27 04:39:04 \o/ Aug 27 04:39:06 there are none Aug 27 04:39:19 some people use redditisgreat or something like that but i'm not a fan of it Aug 27 04:39:40 oh and xb,c Aug 27 04:39:42 xbmc Aug 27 04:39:42 I use telnet and type out the HTTP protocol stuff Aug 27 04:39:59 poutine: that's dedication Aug 27 04:40:32 poutine: it must be a chore to use youtube with that Aug 27 04:41:15 I know how to interpret compiled actionscript and FLV encoding on-the-fly Aug 27 04:41:17 http://imgur.com/BgySue7 Aug 27 04:41:26 i took that with my nexus and a fisheye lens Aug 27 04:41:59 neat Aug 27 04:42:16 seriously, go buy a nexus right now Aug 27 04:42:19 NOW Aug 27 04:44:15 are you a google salesman? Aug 27 04:44:34 i wish Aug 27 04:46:47 did you buy it yet Aug 27 04:47:26 lol no Aug 27 04:47:30 why Aug 27 04:47:47 becuase Aug 27 04:47:49 you Aug 27 04:49:04 BUTTTT WHYYYYYYYYYYYYY Aug 27 04:49:06 hehe butt Aug 27 04:49:23 how old are you? Aug 27 04:50:23 I'm as old as you wish me to be Aug 27 04:52:11 good answer Aug 27 04:52:13 also old Aug 27 04:52:48 you seem interesting a person Aug 27 04:52:59 oh i am Aug 27 04:53:59 maybe you guys could message in private ;) Aug 27 04:54:26 +1 on that Aug 27 04:54:35 lame Aug 27 04:54:42 -1 on taht Aug 27 04:54:43 that Aug 27 04:58:01 mmm baked potato Aug 27 04:58:41 and Aug 27 04:58:52 this is why I doubt your truthfullness Aug 27 04:58:58 becuase of baked pototo Aug 27 05:05:58 Hi, my app (a location logger) keeps growing the heap and then later freeing it up. I'm new to android, but my thought is that the location listeners are queueing up, causing the heap to be expanded and later, after processing, the GC collects them. Does this sound reasonable? And is there something I should do to avoid this, or is it not a big deal? Aug 27 05:11:19 the walmart hisense sero 7 pro looks good for $129 with sdcard and hdmi and camera flash and android 4.2.1, but I'm gonna get the nexus 7 too because of the updates and screen Aug 27 05:16:37 Guys, I have terrorist milk, it expires on 9/11 Aug 27 05:17:19 hi Aug 27 05:17:25 :( Aug 27 05:22:09 oops, I think I joined #android Aug 27 05:22:14 * QcMat double checks Aug 27 05:22:17 hey QcMat Aug 27 05:22:18 : Aug 27 05:22:20 :D Aug 27 05:22:43 anyone here use chartboost ? Aug 27 05:22:56 with cocos2d-x, when I dismiss an ad, It seems to freeze the main thread for a few seconds Aug 27 05:23:09 I dont think it's cocos2d related either Aug 27 05:23:50 hi Aug 27 05:24:33 my implementation is pretty standard, wondering if that's normal behavior, switching activities (the ad is an activity) I'm pretty new to this, android dev, ported some games Aug 27 05:25:15 and hi g00s Aug 27 05:25:24 and shaun413 , ure weird and terribly off topic Aug 27 05:25:46 what QcMat ? Aug 27 05:25:53 did I say soemthing? Aug 27 05:25:56 lol, scroll up and see Aug 27 05:26:02 shaun413 everything you say :) Aug 27 05:26:04 I said Hi Aug 27 05:26:10 you're weird ! Aug 27 05:26:16 he definitely is Aug 27 05:27:00 I guess I shouldnt ask my chartboost question at 1:30 am Aug 27 05:27:07 :D Aug 27 05:27:59 i was hoping it was some cool charting library, ala achartengine or something Aug 27 05:28:05 nah, ads Aug 27 05:28:22 that's misleading Aug 27 05:28:29 it is hehe Aug 27 05:28:34 at least it doesnt mislead users Aug 27 05:29:04 dammit android, why is java so complicated Aug 27 05:29:19 wut? Aug 27 05:29:53 all i want is a list of items that expand when you click on them Aug 27 05:30:02 aparently that takes three classes and voodoo magic Aug 27 05:30:41 Then I guess everyone in here are witch doctors Aug 27 05:31:03 * g00s stabs his android doll Aug 27 05:31:32 g00s: my phone just died wtf did you do Aug 27 05:31:33 it's true Aug 27 05:31:47 lol Aug 27 05:32:01 that voodoo magic you call is called knowledge Aug 27 05:32:16 3 classes and knowldge sounds about right Aug 27 05:32:18 oh we got a witty one here too Aug 27 05:32:25 (= Aug 27 05:32:49 i spend more fruitless time trying to get android stuff to work than anything else Aug 27 05:33:05 What are you familiar with Mrono Aug 27 05:33:14 perl, php, javascript/node Aug 27 05:33:49 well, all that stuff is crap ! Aug 27 05:33:51 no wonder you think java is complicated Aug 27 05:33:57 I can understand the basics but there is so much that they expect you to already know! Aug 27 05:34:10 programming is hard Aug 27 05:34:18 yes, yes it is Aug 27 05:34:22 listen to d cow Aug 27 05:34:23 -_- Aug 27 05:34:33 yet for some reason i keep coming back Aug 27 05:35:00 that reason is your new nexus :) Aug 27 05:35:01 well that's why they call us doctors, now isn't it Aug 27 05:35:26 can slip whatever we want into your daily dose of Java Aug 27 05:35:27 nah, that reason is I don't want to have to pay $5 for something I can just make my self Aug 27 05:35:41 that doesn't seem like a very convincing reason Aug 27 05:35:48 to learn java Aug 27 05:35:56 good as any Aug 27 05:35:57 Mrono: who in the world is charging for an expandablelistview implementation Aug 27 05:36:09 pushover.net Aug 27 05:36:38 Then find another, Aug 27 05:36:38 hmm, ok Aug 27 05:36:43 i'd rather pay 5$ than make it Aug 27 05:36:46 to each our own :) Aug 27 05:36:48 lol Aug 27 05:37:30 I could very well give up at some point, but I like to at least have tried Aug 27 05:37:57 Giving is no fun, Aug 27 05:38:13 + up Aug 27 05:38:19 lol Aug 27 05:38:20 "in landscape the mode, the app list is visible at all times" Aug 27 05:38:53 Damn it's hard to hold onto these $5 in my pocket with those kind of features Aug 27 05:39:34 dammit my gf is busy, i wanted sexy times Aug 27 05:40:07 "/kick Mrono" -> you're not a channel operator Aug 27 05:40:12 who recommends a nexus 7? Aug 27 05:40:12 well fuck Aug 27 05:40:18 dcow :( Aug 27 05:41:03 shaun413 i think you should get an iPad mini Aug 27 05:41:15 nah go for a full sized ipad Aug 27 05:41:17 why? Aug 27 05:41:47 shaun413: because you were literally asking the same question at 2:34 this afternoon Aug 27 05:41:53 because you won't get either Aug 27 05:42:00 I will get One Aug 27 05:42:06 Nexus One ? Aug 27 05:42:08 then do it Aug 27 05:42:10 One pad to rule them all Aug 27 05:42:11 ! Aug 27 05:42:16 the one Aug 27 05:42:21 I will get the ONE Aug 27 05:42:55 shaun413 please, go away and don't come back until you have some purchased it, and started using it for dev Aug 27 05:43:12 but purchase the nexus 7? Aug 27 05:43:23 get that and the iPad mini Aug 27 05:43:28 and the Note Aug 27 05:43:31 Ofcource Nexus 7 FTW! Aug 27 05:43:33 GET ALL OF THEM Aug 27 05:43:39 I CNAT Aug 27 05:43:42 I need to sleep Aug 27 05:43:45 good night Aug 27 05:43:48 ^ What g00s said Aug 27 05:43:51 shaun413 well, then whatever you buy isn't going to be the right one Aug 27 05:43:57 and so , you are screwed ! Aug 27 05:43:58 it is te nexus 7 Aug 27 05:44:08 no, get the iPad mini Aug 27 05:44:12 kk Aug 27 05:44:16 iPad mini FTW Aug 27 05:44:24 +1 ! Aug 27 05:44:24 yeah! Aug 27 05:44:36 -1 Aug 27 05:44:45 +2 Aug 27 05:44:59 -INF Aug 27 05:45:01 +7 Aug 27 05:45:12 this channel has really gone down hill today :( Aug 27 05:45:17 ^ Aug 27 05:45:30 ^2 Aug 27 05:45:39 Apparently we're here to give sales advice Aug 27 05:45:51 to 10 year olds Aug 27 05:46:10 lol Aug 27 05:46:25 shaun413 its past your bedtime Aug 27 05:46:28 "lol" Aug 27 05:46:29 nah Aug 27 05:47:11 shaun413 but, i would wait for the next iPad mini Aug 27 05:47:16 patience Aug 27 05:47:17 lol Aug 27 05:47:18 you can do it ! Aug 27 05:47:30 no Aug 27 05:47:37 and then, load android on it Aug 27 05:47:44 patience is a virtue most 10 yr olds don't have Aug 27 05:47:58 indeed it is Aug 27 05:48:39 so, #iphonedev split into that and #iphonedev-chat for bs like this Aug 27 05:49:09 QcMat anyone actually use iphonedev-chat ? Aug 27 05:53:38 i was about to say "after spending 30 minutes watching #android, i have a new appreciate for #android-dev" Aug 27 05:53:43 then i see g00s talking about ios dev Aug 27 05:53:44 :P Aug 27 05:54:01 canadiancow it was lla joke :) Aug 27 05:54:07 *all Aug 27 05:54:11 i know i know Aug 27 05:54:23 have to fight troll with troll Aug 27 05:54:57 * g00s decides to do a spoof of metallica 'fight fire with fire' Aug 27 05:55:34 * Gifgroen likes it Aug 27 05:55:40 canadiancow now i am curious, i'll have to see what goes on in #android Aug 27 05:55:45 lol Aug 27 05:56:01 i only joined because two people in here said "i was going to buy a nexus 7 but people in #android laughed at me" Aug 27 05:56:07 also the topic in there was talking about android 4.1 Aug 27 05:56:10 my god, it filled with ... Aug 27 05:56:14 so it's not getting the love it needs Aug 27 05:57:20 canadiancow what is the goal of #android Aug 27 05:57:33 is it still platform hacking ? Aug 27 05:58:28 g00s, To take over the world Aug 27 05:59:05 i think originally it was platform dev Aug 27 05:59:07 now i dont know Aug 27 05:59:23 but … you are an op there :) how do you keep people ot ? Aug 27 05:59:24 XD Aug 27 05:59:32 its like "hey guize i wana bi a nu fone. wats gud" Aug 27 05:59:40 ive been an op there for all of 5 hours Aug 27 06:00:05 i imagine it's the user equivalent of "hi my app crashes when i try to fetch data from my server. can anyone help?" Aug 27 06:00:11 and everyone knows it's a NetworkOnMainThreadException Aug 27 06:00:20 but the person asking has no idea what they're doing Aug 27 06:00:20 :P Aug 27 06:01:16 whats a NetworkOnMainThreadException ? Aug 27 06:01:20 :P Aug 27 06:01:44 i think thats the most common error diagnosed without a stack trace Aug 27 06:01:47 (in here) Aug 27 06:02:03 when someone says their app crashes, i tell them it's a NOMTE, and 99% of hte time, im right Aug 27 06:02:20 g00s, doesn't get that exception on his only device... Aug 27 06:02:25 LOL Aug 27 06:02:30 g00s, buy a nexus something Aug 27 06:02:31 a new one Aug 27 06:02:32 froyo FTW ! Aug 27 06:02:33 from the play store Aug 27 06:02:39 i dont know how you can use froyo Aug 27 06:02:50 i flashed my nexus one to gingerbread and it was godawful Aug 27 06:02:56 hell, even ICS is bleh these days Aug 27 06:03:01 I don't even know why you bother to participate in android-dev Aug 27 06:03:19 i use x86 emu for my UI , and my froyo phone to run the BT instrumentationTests Aug 27 06:03:29 pfn, to help people Aug 27 06:03:32 the emu was supposed to have BT support Aug 27 06:03:34 and because i like it Aug 27 06:03:39 or liked Aug 27 06:03:43 i dunno. i learned a lot here 4 years ago Aug 27 06:03:44 canadiancow, I mean g00s Aug 27 06:03:48 i met some people Aug 27 06:03:57 oh Aug 27 06:06:19 i was confused as to how AS could find API 17 when, i didn't have it loaded in the sdk manager Aug 27 06:06:31 turn out, it is bundled with api 17 & 18 Aug 27 06:07:14 that seems awfully strange Aug 27 06:07:54 pulls it in through gradle doesn't it ? Aug 27 06:08:15 hm Aug 27 06:09:00 android sdk isn't pulled in through gradle Aug 27 06:09:24 its actually in my App's bundle Aug 27 06:09:33 17 anyhow. i have 18 in my sdk manager Aug 27 06:10:20 Android Studio.app , of course Aug 27 06:11:20 hi g00s, how can i make the "external build" checkbox preference persist between sessions in Android Studio? Aug 27 06:11:52 g00s, im now helping someone install the android sdk :P Aug 27 06:12:20 canadiancow ha, shaun just arrived :D Aug 27 06:13:03 #android-dev is to #android what my company is to #android-dev Aug 27 06:16:17 Please help with foreground service Aug 27 06:16:26 There is an example http://developer.android.com/guide/components/services.html#Foreground Aug 27 06:16:46 But there I should put my heavy code? Aug 27 06:18:10 if I write Aug 27 06:18:12 startForeground(1337, note); someTask(); return super.onStartCommand(intent, flags, startId); Aug 27 06:18:22 It freezed UI Aug 27 06:19:26 leo111 service still needs to start its own thread Aug 27 06:19:41 if you have a discrete chunk of work to do, try IntentService Aug 27 06:20:01 if the bg thread is long lived, spin it up yourself Aug 27 06:21:36 I want to send GPS coords by http in real time, so my choose something like new Thread(new Runnable(){ Aug 27 06:21:42 and loop inside Aug 27 06:21:48 I think Aug 27 06:53:14 Hey Guys Aug 27 06:53:35 How do I reliably hide the soft keyboard Aug 27 06:53:54 brickhead: That's a hard question! Aug 27 06:54:14 :'( I have figured that out so far Aug 27 06:54:39 so basically I'm using a WizardPager with fragments as views Aug 27 06:54:47 Fix the layout editor resource lookup bug ("Couldn't resolve resource @string/hello_world") Aug 27 06:54:48 hooray! Aug 27 06:55:14 I'm pretty sure that was around since the Eclipse days Aug 27 06:58:36 gavilan2: so is InputMethodManager is the only way to go Aug 27 07:00:00 Another way I could think of is to use ViewTreeObserver and figure out if the keyboard is shown and then basically toggle keboard Aug 27 07:03:07 I just hate this! Some thing as trivial as a keyboard hide has to be so humongously completcated Aug 27 07:06:41 Every standard library should have a tap function. It's just criminal when they don't. Aug 27 07:24:00 hm, cyril mottier like genymotion too. maybe i should give it another try Aug 27 07:28:49 why wouldn't you try it? Aug 27 07:32:00 i gave it a spin when it was still AndroVM but had problems then. Aug 27 07:33:02 lets see if the BT stuff works now ;) Aug 27 07:34:13 There shouldn't be trouble trying to run javascript on a webview in onResume, or onActivityResult, right? Aug 27 07:40:44 Is there a way to tell the WebView to automatically detect & link urls? Aug 27 07:43:36 Hello. I have a chat application where I use ListView to display the messages. I'm not able to click on the message links or select any text. Any idea of how to enable this? Thanks! Aug 27 07:46:29 g00s: you should abstract that behind a high-level or low-level interface and provide mock implementations Aug 27 07:46:54 yeah, you are right Aug 27 07:47:22 easier to test in both automated and manual forms Aug 27 07:49:09 <\0x90\> is it possible to set keepalive interval on tcp socket in android ? Aug 27 07:49:30 https://developer.android.com/reference/java/net/Socket.html#setKeepAlive(boolean) Aug 27 07:49:49 oh interval... Aug 27 07:50:19 isn't that done at the application level? Aug 27 07:50:29 "application" Aug 27 07:51:32 isn't that a kernel-wide setting ? Aug 27 07:52:11 keep alive on TCP? Nope, it's per-socket thing Aug 27 07:52:21 <\0x90\> i mean on socket Aug 27 07:52:26 no, the interval of the keepalives when enabled Aug 27 07:52:28 <\0x90\> that i'm initializing from the app Aug 27 07:52:38 Chainfire: that... hmm Aug 27 07:53:01 <\0x90\> i read that default is 2hrs... since they said default, i assumed i can change it Aug 27 07:53:19 Chainfire: POSIX allows for int value to be passed with SO_KEEPALIVE Aug 27 07:54:06 ahh, it's interpreted as a boolean Aug 27 07:54:13 <\0x90\> but so far i have not found anything that is accepting int Aug 27 07:55:39 from http://www.tldp.org/HOWTO/html_single/TCP-Keepalive-HOWTO/ it seems to me the interval is kernel-wide, not socket-specific Aug 27 07:55:52 why not use your own heartbeat system ? Aug 27 07:56:30 a two hour window for keep alive packets seems of questionable use on mobile anyway Aug 27 07:56:30 They are kernel parameters on linux, and there's probably no simple sdk call to set the timer intervals. You need to implement your own yes. Aug 27 07:56:31 it's kernel wide, set with sysctl net.ipv4.tcp_keepalive_{intvl,probes,time} Aug 27 07:56:43 also, don't use TCP keepalives Aug 27 07:57:01 mobile network will also drop packets like it's going out of style Aug 27 07:57:06 <\0x90\> well i'm gonna do tthat.. but i was thinking that as an alternative if its not possible to use something already existing Aug 27 07:57:44 TCP keepalives usually aren't good choice Aug 27 07:57:54 well, not for protocol itself Aug 27 07:58:09 it sometimes helps against overzealous routers/firewalls Aug 27 07:59:16 \0x90\ you may enjoy this http://blog.davidsingleton.org/mobiletcp/ Aug 27 08:00:12 tl;dr " established TCP connections which haven't managed to transfer data yet (due to lots of exponential backing off) are unlikely to recover and when the underlying connection "comes back" will not perform as well as a newly established TCP connection" Aug 27 08:01:42 ACK dropping leads to !FUN! times Aug 27 08:01:48 and <100B/s speeds Aug 27 08:07:07 <\0x90\> yeah, well i'm just gonna do irc style hb every 120 seconds or so and reconnect if no response Aug 27 08:07:37 hi all Aug 27 08:11:11 hey nevrax Aug 27 08:11:39 I'm back to beating my head against android Themes and Styles Aug 27 08:12:35 i'm trying to find a sollution to root the official android emulator... the one that came with sdk Aug 27 08:12:46 i need to install super su directly on android emulator Aug 27 08:13:36 hi all. I am not sure if a dev can help with this but I am going to take a shot. I have a minux neo x5 and due to the X and Y axis of the lilliput touchscreen I have connected to it being inverted I have the need to patch the usb-hid driver. I have patched the driver without any problems and I can apply it to some roms that have the kernel driver in kernel.img but the stock rom I think has them in boot.img. Is there a way for me to modify boot.im Aug 27 08:13:37 g without having the source that minux uses? Aug 27 08:14:18 i guess I should say "Without having the minix source" Aug 27 08:14:40 I'm sure it is possible to get the source they use :) Aug 27 08:21:32 If I start an AsyncTask in Activity A and then switch to Activity B before the task is done, will it continue to run until it is done? Aug 27 08:22:25 good morning! Aug 27 08:22:53 I've just updated today my nexus 7 and since then I cannot see the device in adb Aug 27 08:23:03 any ideas on what I should do? Aug 27 08:23:42 my adb version is Android Debug Bridge version 1.0.31 Aug 27 08:30:34 I do believe that Android Studio update broke my shit Aug 27 08:30:42 yeah Aug 27 08:31:11 apparently it can no-longer find my default activity Aug 27 08:31:14 i had to delete all the transient state (on mac, ~/Library/...) and .idea and *.iml Aug 27 08:31:22 yikes Aug 27 08:31:27 then it worked Aug 27 08:31:37 basically, re-import the project Aug 27 08:31:42 from gradle model Aug 27 08:32:36 this isn't a gradle project, closing and re-opening AS seems to have done the trick Aug 27 08:32:59 that was easy :) Aug 27 08:33:12 g00s: yep :) Aug 27 08:33:22 now to open a project that is gradle dependant... Aug 27 08:34:14 guys, anyone else having trouble finding devices on 4.3 JWR66Y? Aug 27 08:34:47 and that one is working too Aug 27 08:35:04 kas84: how do you mean finding? with adb? Aug 27 08:35:11 yes Aug 27 08:35:23 when I do adb devices it doesn't find anything Aug 27 08:35:34 kas84: try turning debug on and off on the device Aug 27 08:35:36 it's a nexus 7 that I've just updated Aug 27 08:36:42 I've did that, but I'm going to try to turn dev mode off, reboot and then back on Aug 27 08:37:39 kas84: don't forget to try a different USB port/restart the pc/etc Aug 27 08:37:47 weird Aug 27 08:38:03 I turned dev mode off, rebooted and it was on already Aug 27 08:38:14 that is a bit wierd Aug 27 08:43:33 I'm going to install that update and see if I have that problem too Aug 27 08:44:10 oh yeah, this will probably break root on my N7... oh well Aug 27 08:45:36 what's the keyboard shortcut for search whole project in AS? like the CTRL+H search in Eclipse? Aug 27 08:52:52 I think so Aug 27 08:53:10 kas84: my nexus 7 decided that it didn't like the certificate for that update and chose not to install it. Aug 27 08:53:55 Ankhwatcher i've heard of other people having problems updating Aug 27 08:53:58 haha Aug 27 08:54:05 these sort of things /should not happen/ Aug 27 08:54:50 yeah, google really have it in for us this morning Aug 27 08:55:49 would a webview clear its js memory if the activity holding onto it goes into the background? ie, onPause was called? Aug 27 09:02:42 well nevermind Aug 27 09:03:05 I had instead of Aug 27 09:03:21 and so the page was reloading and all the saved info was, naturally, lost Aug 27 09:07:36 had some hickups with genymotion UI & networking, but it seems good so far. Aug 27 09:10:59 interesting my N7 is now calling itself up-to-date and it is running JWR66V Aug 27 09:12:44 is there any reason why my themes won't inherit radioButtonStyle from their parent theme? Aug 27 09:14:18 ...I think it's the namespace Aug 27 09:21:11 nope, it was the v11 and v14 versions of AppBaseTheme screwing it up Aug 27 09:36:32 Ankhwatcher: you couldn't update right? Aug 27 09:37:07 I've posted the bug in the google group but it's awaiting moderation :/ Aug 27 09:37:08 I didn't think so but it's saying it's up to date now Aug 27 09:37:39 yep, but always says that if you're device hasn't been notified for update yet Aug 27 09:41:00 I have a Layout with a RelativeLayout and a LinearLayout. I use it in a ListView. I have an animation on each ListView item, but the LinearLayout(empty, 1dp with black background, to act as separator) doesn't translate, it just fades. Why is this? Code: https://github.com/zyngawow/ShoppingList Animation done on Product and Category classes. Layout is layout_product.xml (StackOverflow question: http Aug 27 09:41:00 ://stackoverflow.com/questions/18454749/why-doesnt-a-part-of-a-layout-get-animated-correctly#18454749 ) Aug 27 09:42:48 hello ! Aug 27 09:43:41 I have a question concerning an android app I am developing ... I am quite new to android development. I started creating an app about a year ago - then stopped working on it and now I continue. Aug 27 09:45:15 Already a year ago the same problem occured: Sometimes it seems I can't find an "id" defined in an XML layout using id="@+id/this_is_the_id" by using the method findViewById(R.id.this_is_the_id) Aug 27 09:45:55 first thing, always clean Aug 27 09:46:31 zyngawow: that linear layout doesn't serve any purpose, it only has one child and it doesn't apply any theming or padding Aug 27 09:46:31 I also have an menu which shows up when the menu button is pressed (this corresponds to an actionBar in newer androids versions) ... every option has an id. Aug 27 09:47:10 also here the item.getItemId() method doesn't return the id anytime. Aug 27 09:47:11 Ankhwatcher, it has two children, two RelativeLayouts Aug 27 09:47:20 Ankhwatcher, I changed the linearlayout for a relative Aug 27 09:47:38 It somehow depends if I put additional id="" attributes on other elements the functionality seems to decease Aug 27 09:47:40 zyngawow: oh my bad, I see it now. You should just use a View Aug 27 09:48:05 hi everyone Aug 27 09:48:09 Ankhwatcher, still doesn't animate :( Aug 27 09:48:13 kraftb: clean clean clean Aug 27 09:48:14 hide Aug 27 09:48:43 Leeds: What do you mean by "clean" ? Aug 27 09:48:53 i need some tips for building my own android application Aug 27 09:48:54 cleaning up my source? Aug 27 09:48:55 "ant clean" Aug 27 09:48:57 Ankhwatcher, I want it to do a translation, not to hide Aug 27 09:48:58 oh. Aug 27 09:49:03 wait ... Aug 27 09:49:46 Leeds: Many many thanks ... Aug 27 09:49:58 I tought ant would notice ID changes and regenerate everything necessary. Aug 27 09:50:06 Your my hero :) Aug 27 09:50:07 it should... sometimes it doesn't :( Aug 27 09:50:22 I am creating some kind of CRUD framework Aug 27 09:50:24 not sure that's necessary, but you're welcome :) Aug 27 09:50:44 Leeds: you'll always be my hero Aug 27 09:52:49 uh-huh... Aug 27 09:55:20 Can someone explain me how to put an invisible grid on a picture and then modify her opacity when you zoom in the picture ? Aug 27 09:55:35 i wanna make a "1 million pixel wall" game like Aug 27 09:55:55 i just need general advices Aug 27 09:55:58 :3 Aug 27 10:01:08 knock knock ? :o Aug 27 10:01:24 hi there. I've written some string.xml files in order to grant to my application to be translated automatically. Everything works pretty well except for the layout that, with the default language has a specific graphical layout and if I switch to "english", for example, the layout is a bit different Aug 27 10:01:32 De: OpenGL. Aug 27 10:01:42 is that normal? I need to modify some other file? Aug 27 10:02:32 jewels: Yes, if your layout has wrap_content and your content (sizes) changes. Aug 27 10:05:09 i got a question to the search mechanism. Am I right, that I need 2 activities for a search? The first with the searchView and a second that gets the intent and executes the query (and displays the result). Or does everything have to be in the same activity Aug 27 10:05:14 for example with the english locale, the action bar is completely different. Seems that I've an old version of android Aug 27 10:07:05 Hi Aug 27 10:07:06 because if I "outsource" the query handling to a separate activity it wont work, if all the code is in an single activity it does Aug 27 10:07:10 I need help Aug 27 10:07:19 How do I build separate binaries for NEON and non-NEON ARM? Aug 27 10:07:24 in NDK Aug 27 10:07:30 I use inline vector code a lot Aug 27 10:07:36 So I can't do runtime check for NEON Aug 27 10:08:00 sure you can Aug 27 10:08:05 SiPlus: then you need to stop... or build two libs, and do a check at runtime which to load... or do dynamic replacement of function vectors, etc. Aug 27 10:08:13 there's a ton of options Aug 27 10:08:17 p_l, oh, right Aug 27 10:08:26 Exactly what I need Aug 27 10:08:40 To use different .so files for NEON and not Aug 27 10:08:54 you could have the "official API" be actually function pointers initialized at library load time with apropriate versions Aug 27 10:09:19 p_l, I said that I used *inline* vector code Aug 27 10:09:26 So I can't use function pointers Aug 27 10:09:28 But yes Aug 27 10:09:38 I should build two different libs Aug 27 10:09:41 SiPlus: what's the problem with generating multiple versions of the function with and without inline asm? Aug 27 10:10:00 p_l, it's not inline assembly Aug 27 10:10:09 they're defined in header files Aug 27 10:10:11 SiPlus: Still applicable Aug 27 10:10:39 though I guess it might be more work than its worth, depending on amount of code involved Aug 27 10:10:54 Using function pointers seems messy Aug 27 10:10:57 nobody can suggest to me a way in order to fix this problem? Aug 27 10:10:59 It's a huge game engine Aug 27 10:11:16 SiPlus: after you learn how dynamic loading actually works, they stop looking messy ;p Aug 27 10:11:45 I'll use dlopen with check for neon and not Aug 27 10:11:45 also, sometimes it's faster to go through pointer from dlsym() or similar than through PLT Aug 27 10:12:26 There's only one symbol in each shader object Aug 27 10:12:31 That exposes different interfaces Aug 27 10:12:35 go with what will fit you best :) Aug 27 10:12:38 But I'd better build different shared objects Aug 27 10:13:07 I have a Layout with a RelativeLayout and a LinearLayout. I use it in a ListView. I have an animation on each ListView item, but the LinearLayout(empty, 1dp with black background, to act as separator) doesn't translate, it just fades. Why is this? Code: https://github.com/zyngawow/ShoppingList Animation done on Product and Category classes. Layout is layout_product.xml (StackOverflow question: http Aug 27 10:13:07 ://stackoverflow.com/questions/18454749/why-doesnt-a-part-of-a-layout-get-animated-correctly#18454749 ) Aug 27 10:13:30 I'm going to use both inline assembly and intrinsics Aug 27 10:13:52 Inline assembly for platform-specific SIMD functions Aug 27 10:14:03 And intrinsics for abstract inline SIMD functions Aug 27 10:14:19 zyngawow: if you're going to post that question repeatedly (and you really shouldn't) you need to at least shorten your links so it fits onto one line Aug 27 10:15:34 Ankhwatcher, "repeteadly" aka more than half an hour difference. I repost if because new people come in, and they might know the answer. But i'll shorten the links Aug 27 10:20:08 this is the application with the default locale: https://docs.google.com/file/d/0B2MvoQfXtqZmaEhGTEk0alZpTms/edit?usp=sharing, this is the application with another locale (english): https://docs.google.com/file/d/0B2MvoQfXtqZmNmdRNUxfYlE2RGs/edit?usp=sharing Aug 27 10:20:21 someone can say to me why there are these differences? Aug 27 10:27:55 jewels: Is it _just_ the locale that is different, i.e. same device/emu, and what is the other locale? Aug 27 10:28:57 kjeldahl, yes the same device. With the italian everything is correct, when I switch to english I found these differences Aug 27 10:31:06 from eclipse I've tried to set the default theme for the device Aug 27 10:31:18 but nothing changed in this way Aug 27 10:38:33 jewels: That's weird. You're positive that there aren't any runtime checks or anything that mess up your layouts? Also, since Eclipse is 50% magic, make sure you do a clean rebuild both times, just in case... Aug 27 10:39:51 I've cleaned my workspace and now I'm trying again Aug 27 10:41:07 nothing. Still the same problem... Aug 27 10:43:43 this is my searchable activity: http://goodtime.indus.uberspace.de/filebin/index.php/F2g9o/ Aug 27 10:43:59 this the activity where the search view is in: http://goodtime.indus.uberspace.de/filebin/index.php/phScV/java Aug 27 10:44:20 the android manifest part: http://goodtime.indus.uberspace.de/filebin/index.php/BOIRIk/java Aug 27 10:44:23 jewels: So the next thing you could test; is it "anything but italian", or just english? Just keep narrowing it down and you'll figure it out. Aug 27 10:44:33 why does the intent don't reach my searchable activity??? Aug 27 10:44:50 it just happens nothing if i try to send a query with the search view Aug 27 10:46:34 kjeldahl, the application default language is italian. I've translated each message contained in the string.xml. Also, I'm sure that the things that needs a translation are the one contained in the strings.xml Aug 27 10:50:17 jewels: So change your xml files. Let the italian be english and vice versa. The point is, narrow it down. Right now you do not know if it's your xml files or the locale setting. Be systematic and methodic. You'll have your answer before we are able to guess you in the right direction. Aug 27 10:56:35 I need help : how can i use a GridLayout as an Arrayin order to assign a value to each pixel of this grid ? Aug 27 11:01:02 anybody here ? :'( Aug 27 11:03:22 Well , i guess noone can read me , or it's a dumb question ... Aug 27 11:03:33 Im quite new, so sry :/ Aug 27 11:03:49 De: Honestly, learn some basics first. I gave you the right keyword already; OpenGL. What you're suggesting is just ... wrong. Aug 27 11:03:59 oh a human being Aug 27 11:04:02 ok thanks Aug 27 11:05:15 kjeldahl: any answer for my searchview question maybe :/? Aug 27 11:05:17 For pixel stuff, you should utilize the hardware and drivers. That's OpenGL. There's stuff on top of it to help you out, like LibGDX. The layout stuff in Android is for GUI elements, not pixels. Aug 27 11:05:56 i just did it like stated in the docs, but it won't work and i can't find the mistake Aug 27 11:06:45 tried it like here: http://developer.android.com/training/search/setup.html but not in the actionbar, just a searchview in the normal layout Aug 27 11:07:18 instead of onCreateOptionsMenu I put the code into onCreate Aug 27 11:09:16 note to self - Google Now works better when it's installed Aug 27 11:09:36 (and crashes SystemUI when you try its shortcut without it) Aug 27 11:13:33 skullcrasher: I have no idea. I do see that the docs have a call to "getActionView()" on the SearchView. Maybe you're not getting the proper part of the search view? Aug 27 11:15:27 hmm, but if i put only the code of my searchable activity and give the intenfilter to my searchactivity aswell, it works. (if everything is in the same activity) Aug 27 11:17:47 so there shouldn't be forgotten that Aug 27 11:17:47 it just doesn't open the 2nd activity if i switch the code again Aug 27 11:17:47 I think the getActionView is only called, because the searchView is used in the Optionsmenu in the actionbar in the example Aug 27 11:18:15 skullcrasher: Anything in logcat? You're not missing an "s" anywhere, like SearchResultSActivity instead of the singular like you're using? Aug 27 11:19:55 no errors unfortunately Aug 27 11:21:22 totally strange Aug 27 11:26:09 Hi guys i am working on an app where i have to play a video in webview as link is coming from the server.i am trying to load a video using webview but nothing happens but webview load the plainText of that html .....here is the link ( http://pastebin.com/4BJq51yb )i want to load in the webview and here is the android code( http://pastebin.com/dfTAtRUP ) i m trying. Aug 27 11:26:29 Please help Aug 27 11:26:53 how i can load the video in webview with the link coming from the server Aug 27 11:27:07 anyone have any tips for source control on android studio projects? what to include and what not? Aug 27 11:31:32 defnordic: you mean gitignore? Aug 27 11:31:50 skullcrasher: have to use SVN here, but same principle, yes ^^ Aug 27 11:32:32 "gitignore" gives me plenty hits though, thanks ^^ Aug 27 11:34:01 You're welcome :) Aug 27 11:40:23 Hello colleagues. Aug 27 11:40:40 kjeldahl: ok i got the solution Aug 27 11:40:53 Q: Is there a way to handle USB HID devices with an application? Aug 27 11:40:58 hit me! Aug 27 11:41:44 kjeldahl: i had to put the searchable metadata in the SearchResultsActivity in the manifest, not like the tutorials says into the activity showing the searchview Aug 27 11:42:05 Q: I would like to develop an Input Method that is auto-enabled based on Specific USB Device being attached Aug 27 11:42:10 great find! Aug 27 11:42:35 so basically either i read worng in the tutorials, or it is explained wrong Aug 27 11:47:46 pew, only 3 hours of reading the same 10 times and try/error :D Aug 27 12:02:20 Hmmm... Maybe... maybe if I make my input method handle the hardware keyboard I can work around not being able to handle the USB Keyboard myself. Aug 27 12:06:46 help me also : http://stackoverflow.com/questions/18464154/webview-not-able-to-load-video-inside-html-tags Aug 27 12:15:54 GestureDetector has an "onFling" callback, is there an equivalent in ScaleGestureDetector? The idea is to keep scrolling after the user lifted his fingers with speed during a pinch gesture. Aug 27 12:19:10 i have a problem , i am working for a background service which checks users present activity , it works smooth in all the versions but SONY devices have a different packga names as com.sonyericson.launcher ? is there a workaround ? Aug 27 12:21:10 another question: how is it done best to have a login screen? The user should login 1 time and then look at the main activity (the login is saved). if he starts the app later he instantly gets to the main activity (until he logs out in the settings). so i decided to set my mainactivity also the activity for the launcher. now my problem is, if he wasnt logged in, he first sees the main screen and is then redirected Aug 27 12:21:56 even if you popup the login screen in onCreate ? Aug 27 12:22:06 yes Aug 27 12:22:34 http://goodtime.indus.uberspace.de/filebin/index.php/it9q2/java Aug 27 12:22:40 thats my main activity Aug 27 12:23:21 i also thought of letting the login activity be the launcher activity, but then the user always had to login Aug 27 12:24:02 try calling finish() after startActivity() Aug 27 12:24:05 does anybody have any idea how can i make it working on sony devices as they have customized android Aug 27 12:24:34 Chainfire: what does the finish do? Aug 27 12:24:43 close the MainActivity Aug 27 12:24:57 if you do it onCreate, the user shouldn't actually see MainActivity, IIRC Aug 27 12:25:05 aside from that, no idea, trial and error ;) Aug 27 12:25:21 hmm, maybe because it has to wait for the debugger here :D Aug 27 12:25:28 chinu> how do you check user present ? Because you shouldn't hardcode launcher package name Aug 27 12:25:40 skullcrasher> err yeah that to, run it without debugger see what happens Aug 27 12:25:45 skullcrasher: why not just check to see if user is logged in in onCreate? if he is -> startActivity() Aug 27 12:26:10 lite_: that is done Aug 27 12:26:27 if variable = true, setContentView, if not start the loginactivity Aug 27 12:27:49 i guess it's only because of waiting for debugger, i try in release mode Aug 27 12:28:55 I have the Kindle app on my tablet and was wondering what for Android do I need to play on AudiBook that was brought from the Kindle app Aug 27 12:35:08 seems to work in release mode Aug 27 12:35:18 only login activity visible Aug 27 12:35:55 now the loggedIn variable only needs to be stored somewhere Aug 27 12:41:55 LLckfan: I think what you want is the Audible app, but you should ask this question in #Android Aug 27 12:43:20 no one has written a maven -> gradle convertamigajig Aug 27 12:50:40 is an accountManager overkill for storing information like if the user is logged in and the login credentials? should i better use sharedPreferences? Aug 27 12:51:01 don't know which one is more secure Aug 27 12:54:37 skullcrasher: sharedPreferences, for simplicity. It's protected from other apps, but not from the app itself of course. Aug 27 12:54:56 I can't really see how accountManager should or could be used to get more security. Aug 27 12:55:07 ah ok Aug 27 12:55:12 (or why using it for this is even a good idea at all) Aug 27 12:56:09 You can add as many layers of obfuscation as you want of course, but as long as you have to store secrets that the app should be able to read, they really can not be assumed to be real secrets. Aug 27 12:57:01 Which is why most authentication schemes use user and app specific tokens for such purposes. Aug 27 12:57:51 which in essence only adds security through obscurity ... Aug 27 12:58:02 ah ok :) Aug 27 12:58:11 well i try without obfuscating first ;) Aug 27 13:01:59 Ankhwatcher the people in andiod will not help Aug 27 13:03:47 works awesome, thanks guys Aug 27 13:06:15 is there any tools/ browser allow to configure proxy in android? Aug 27 13:06:27 does anyone know a good way to debug a "View too large to fit into drawing cache"-type issue? Aug 27 13:08:19 scorchio: isn't the hierarchy viewer for optimizing your views? Aug 27 13:10:44 skullcrasher: well, I wonder if I could do anything to optimize the layout; I'm trying to use a WebView inside a ScrollView and this happens after filling the WebView with some content Aug 27 13:15:26 help me Aug 27 13:19:15 I have the Kindle app on my tablet and was wondering what for Android do I need to play on AudiBook that was brought from the Kindle app Aug 27 13:21:21 how can a fragment check to see if itself is still alive? Aug 27 13:26:16 Hello Aug 27 13:26:53 hello Aug 27 13:27:13 How do you do? Aug 27 13:31:07 I have decided on the nexus 7 Aug 27 13:34:09 I am creating an input method and I can't send 'Enter' to any input fields in the browser... Aug 27 13:34:34 how to autoplay a video in a webview? Aug 27 13:34:46 Tried ACTION_DOWN+KEYCODE_ENTER and ACTION_UP+KEYCODE_ENTER, but the field doesn't 'Act' Aug 27 13:40:15 Hi Aug 27 13:40:24 I'm buying the nexus 7 Aug 27 13:43:14 I have the Kindle app on my tablet and was wondering what for Android do I need to play on AudiBook that was brought from the Kindle app Aug 27 13:52:26 * SpeedEvil sighs. Aug 27 13:52:39 It's pretty retarded - you should be able to get a mp3 Aug 27 13:52:47 I doubt you can Aug 27 14:03:00 this channel is going to hell Aug 27 14:04:11 you're going to hell Aug 27 14:09:02 Ankhwatcher: why? Aug 27 14:11:57 im in hell Aug 27 14:12:28 mikedg, no you're not Aug 27 14:12:32 mikedg, it's hot as hell here... Aug 27 14:12:39 or, it is hell here Aug 27 14:12:41 and you're not Aug 27 14:12:42 :p Aug 27 14:13:29 hell on earth Aug 27 14:13:43 hangar e1m1 Aug 27 14:14:23 I guess it's not quite septemberyet, but still, at home it's a nice 70F, here it's >90F Aug 27 14:14:26 :( Aug 27 14:18:10 too lazy to convert to celcius Aug 27 14:18:29 Hello Aug 27 14:18:58 hi Aug 27 14:19:57 I have the Kindle app on my tablet and was wondering what for Android do I need to play on AudiBook that was brought from the Kindle app Aug 27 14:20:20 neuro_sys: that's why Aug 27 14:29:57 Ankhwatcher: what's why Aug 27 14:30:07 exactly Aug 27 14:30:54 there's a shitload of input that can be interpreted as "that". Aug 27 14:30:57 can anyone point me to a contextual popup menu demo/library like the ones in play store "buy, add to wishlist, etc" Aug 27 14:32:45 skyred: i've used this for a couple projects, you might be able to make it do what you want: https://github.com/lorensiuswlt/NewQuickAction3D Aug 27 14:38:58 theelfismike, thx, Aug 27 14:48:32 a question: when a app crash and i press ok in popup, exactly what do android? Aug 27 14:48:50 kill entire app or just refresh activity? Aug 27 14:48:59 I'm having problems with ARM NEON intrinsic Aug 27 14:49:03 intrinsics * Aug 27 14:49:03 the main activities for an app aren't started when a service is started right Aug 27 14:49:05 They work in C Aug 27 14:49:08 But don't in C++ Aug 27 14:49:12 Invalid arguments ' Candidates are: ? vaddq_f32(?, ?) ' Aug 27 14:49:15 where ? must be float32x4_t Aug 27 14:49:19 I tried GCC 4.6 and 4.8 Aug 27 14:49:39 class application will be refreshed or no? Aug 27 14:51:45 anyone got any clever ideas on how I can put a header on a GridView? Aug 27 14:51:50 xan_IT, kill entire app Aug 27 14:52:12 Ankhwatcher, put a header above the view? Aug 27 14:52:34 pfn: it needs to scroll Aug 27 14:53:27 pfn if is true why will reopen that activity and not start activity? Aug 27 14:59:52 06520652 Aug 27 15:00:00 12342343 Aug 27 15:00:05 bla Aug 27 15:00:54 anybody can help me with NEON? Aug 27 15:12:20 Hey guys, what's the differnce between using a facebook object to login for example fb.authorize() and using a Session.openActiveSession()? Aug 27 15:20:45 anyone? D: Aug 27 15:26:31 How much would you say it takes to make an app that sends an SMS with your location? 5 hours? Aug 27 15:27:12 $20000 Aug 27 15:27:39 I'm having some trouble getting appcompat into android studio. basically saying imports not found. Can anyone point me in the right direction? Aug 27 15:27:48 the support v7 library Aug 27 15:31:46 I added compile "com.android.support:appcompat-v7:18.0.+" into my build.gradle, and imports don't work Aug 27 15:38:26 hello Aug 27 15:39:41 i'm stucked to this problem http://stackoverflow.com/questions/18466266/rest-how-to-bulk-data-from-db-to-rest-array can somebody help me please ? Aug 27 15:45:47 hi guys. I am having trouble following an android tutorial and was hoping someone could help me. This is the tutorial: http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html#disk-cache. In the tutorial it states that they pull DiskLruCache from the android source. I did the same thing but the class is missing a lot of methods used in the example such as open() put() and get() .... What am I doing wrong? Aug 27 15:46:52 navetz: I have a standalone DiskLruCache you can use. Aug 27 15:47:34 http://github.com/JakeWharton/DiskLruCache Aug 27 15:47:53 hello Aug 27 15:48:10 Not only is it pulled from AOSP, but it includes improvements from myself and the guy who wrote the original one (no longer at Google) Aug 27 15:48:31 Hey guys, what's the differnce between using a facebook object to login for example fb.authorize() and using a Session.openActiveSession()? Aug 27 15:49:14 do I anyhow have to use support library to implement actionbar drop down menu? Aug 27 15:49:53 under: nope, you don't. Target 14+. Aug 27 15:51:01 thanks Aug 27 15:52:16 JakeWharton: oh awesome! I saw this earlier but it also doesn't have implementations for the way they use the methods in the example. The open method expects (File, int) but your your implementation and the one from AOSP both expect (File, int, int, long) Aug 27 15:52:41 JakeWharton: is it possible the example code is outdated? Aug 27 16:08:06 no idea Aug 27 16:08:12 never read that tutorial Aug 27 16:08:34 Does anyone know much about Facebook SDK Aug 27 16:09:55 can someone help me with this, please? http://stackoverflow.com/questions/18466266/rest-how-to-bulk-data-from-db-to-rest-array Aug 27 16:13:20 I've read that trying to use WebView in a ScrollView is bad. But I have a layout like this: ScrollView > [ImageView, TextView, WebView, TextView]. How could I make this happen without ScrollView if the whole thing needs to scroll together? Aug 27 16:15:00 JakeWharton: alright, thanks I'll figure out how to make it work Aug 27 16:15:45 lmbd: I'm not sure I understand the problem, but have you looked into the JSONArray class? Aug 27 16:24:20 hi, how am I changing the partition size where apk's install in the sdk -- I'm trying to make the compiler give my cubieboard more than 400mb of space for apks... Aug 27 16:39:00 why in developer option, in android 4.3, there is not adb over wifi? Aug 27 16:47:14 this issue will make me crazy, but anyhow: http://stackoverflow.com/questions/18471194/webview-in-scrollview-view-too-large-to-fit-into-drawing-cache-how-to-rewor - I would greatly appreciate if you could check it Aug 27 16:56:01 I have a bunch of data and files that need to be kept in sync with the server. Would it be best to use a SyncAdapter to sync the data and a IntentService to handle uploading any out of sync files? Can multiple file uploads be done safely in the SyncAdapter? Aug 27 16:56:24 <|Agent> Is there a way to intercept when an application starts at the Application level, rather than the Activity level? When any of my app's activities start, I want to perform some update checks. Aug 27 16:56:43 |Agent: Application#onStart is process creation. is that what you want? Aug 27 16:57:37 (s/onStart/onCreate/) Aug 27 16:58:02 If you support 14+ you can use ActivityLifecycleCallbacks Aug 27 16:58:14 Or just create a base activity you extend from that does whatever Aug 27 16:59:01 <|Agent> So I can subclass Application? In iOS, I'd then have to tell the system about my custom Application class so the system can instantiate it properly. How would I do that under Android. Aug 27 16:59:09 <|Agent> ? Aug 27 16:59:13 In your manifest Aug 27 16:59:25 In the application tag Aug 27 17:02:38 I have the Kindle app on my tablet and was wondering what for Android do I need to play on AudiBook that was brought from the Kindle app Aug 27 17:04:52 hmm still nothing... and can't find it in google because my searches are polluted with people trying to root their device. Where is the settings file for partition sizes located in the android source? Aug 27 17:43:22 I have a Layout with a RelativeLayout and a LinearLayout. I use it in a ListView. I have an animation on each ListView item, but the LinearLayout(empty, 1dp with black background, to act as separator) doesn't translate, it just fades. Why is this? Code: http://goo.gl/MIiilE Animation done on Product and Category classes. Layout is layout_product.xml (StackOverflow question: http://goo.gl/Wh8njO ) Aug 27 17:57:08 Hey guys, what's the differnce between using a facebook object to login for example fb.authorize() and using a Session.openActiveSession()? Aug 27 17:58:47 Can't help you there, I can show you an app that I wrote with the facebook SDK last year Aug 27 17:58:52 but they changed the SDk and my app no longer works Aug 27 17:58:53 lol Aug 27 17:59:06 Hello Aug 27 17:59:07 I have the Kindle app on my tablet and was wondering what for Android do I need to play on AudiBook that was brought from the Kindle app Aug 27 17:59:30 Brian|CB, ah I see maybe that login method is one of the things that has been updated Aug 27 17:59:53 LLckfan: #android Aug 27 18:00:14 CocoStorm: If it's any help, heres my shity hackathon project back last fall. It's got Facebook code given to me and debugged by Facebook engineers Aug 27 18:00:16 https://github.com/bedoherty/MyFlickPicks Aug 27 18:00:20 It's mostly shit honestly Aug 27 18:00:23 but maybe there is something useful inside Aug 27 18:00:24 :D Aug 27 18:00:36 Brian|CB, thanks! will have a look Aug 27 18:01:13 SimonVT: No help Aug 27 18:01:19 No care Aug 27 18:01:21 This is for app dev Aug 27 18:02:45 Lol Aug 27 18:02:52 SimonVT has no time for such matters Aug 27 18:03:11 SimonVT: I feel like I've asked this before, but if you are willing to share, where/what do you work on? Aug 27 18:04:33 Something not related to android dev (hardly related to programming at all) :) Aug 27 18:04:42 Interesting Aug 27 18:08:22 What's the best way to implement logging in, say over a web service, asynchronously? Aug 27 18:08:43 It depends on what login service you are using Aug 27 18:08:57 hpxro7_: Is it a homegrown solution or are you implementing an SDK such as Facebook or Google? Aug 27 18:10:09 Brian|CB: A homegrown solution - I collect some cookies via a HTTPUrlConnection Aug 27 18:11:12 hpxro7_: So you just need to make an HTTP request basically? Just use a loader? Or Volley? Aug 27 18:11:15 or uhh Aug 27 18:11:17 whats that other library Aug 27 18:11:23 Otto? Aug 27 18:11:30 SimonVT: Whats that other library Aug 27 18:11:47 Retrofit? Aug 27 18:11:54 Not that one, uhhh Aug 27 18:11:56 fuck Aug 27 18:11:58 okhttp? Aug 27 18:13:15 no Aug 27 18:13:18 It's based on Volley I think Aug 27 18:14:26 Robosice Aug 27 18:14:28 Robospice* Aug 27 18:14:30 thatsit Aug 27 18:14:33 https://github.com/octo-online/robospice hpxro7_ Aug 27 18:14:37 I've been meaning to test that library out Aug 27 18:14:39 seems interesting Aug 27 18:16:10 Ah, I see - I'll have a look into that thanks! Aug 27 18:16:28 im using gradle to build my android app, is there a way to have one product flavor enable installing to the sd card, while the other product flavor disables it? Aug 27 18:16:29 hello Aug 27 18:16:41 But if I wanted to implement it myself, you'd recommend I go with a loader? Aug 27 18:16:53 Maybe an AsyncTaskLoader? Aug 27 18:16:54 Loaders are solid Aug 27 18:16:57 Yeah Aug 27 18:17:03 Just start a thread, log in Aug 27 18:17:07 I think I have examples of Loaders in my project from that hackathon too Aug 27 18:17:12 it's shitty code though Aug 27 18:17:17 I have better examples of loaders if you need them Aug 27 18:17:19 i am looking to have a number quantity picker in android app. Is there a way to achive this within list ? Aug 27 18:17:50 why the hell the last 2 method are never called? http://pastebin.com/ikP0ZQMG it's crazy Aug 27 18:19:09 Because you never set the listener Aug 27 18:19:13 Brian|CB: Examples of loaders would be really helpful Aug 27 18:19:25 And ListActivity's onListItemClick doesn't have that signature Aug 27 18:20:03 I'm just worried about how configuration changes might screw things up/lead to memory leaks, etc... Would loaders take care of that for the most part? Aug 27 18:20:31 Memory leaks are always a concern, but as long as you're following the guidelines it shouldn't be a problem Aug 27 18:20:43 hpxro7_: This is one of my friend's github repos, it's got loaders in it. https://github.com/klnusbaum/UDJ-Android-Client Aug 27 18:21:26 SimonVT: how do I set the listener? Aug 27 18:21:37 under: wow.. Aug 27 18:22:41 You look for a method that takes that class as a paramter Aug 27 18:23:21 Brian|CB: Great, that'll be super helpful. Thanks - I'll have a look into this. Aug 27 18:24:20 SimonVT: That one sentence sums up Computer Science I think Aug 27 18:25:28 * under looking for the method :D Aug 27 18:25:33 Brian|CB, weren't you |CS yesterday? Aug 27 18:26:20 I have multiple devices Aug 27 18:26:21 lots of devices Aug 27 18:26:22 lol Aug 27 18:26:34 My main laptop is Brian|CS Aug 27 18:26:39 My chromebook is Brian|CB Aug 27 18:28:58 anyone ever see where drawPath is faster than drawLines? Seems like it should be the opposite. Aug 27 18:29:04 SimonVT: I figured out http://i.imgur.com/DJ2Y8l1.png thanks ;) Aug 27 18:29:48 And then realise that ListActivity already sets an item click listener Aug 27 18:30:19 (look for a method called something with item and click) Aug 27 18:30:36 paths are actually very useful Aug 27 18:30:40 Brian|CB, i used to do that, but i foudn a bouncer was easier Aug 27 18:30:48 I needed an object to represent a tilted rectangle Aug 27 18:31:02 so I had to amke a rectangle, add it to a path, augment the path, and then add the path to a region Aug 27 18:31:05 it was so stupid Aug 27 18:32:37 hi Aug 27 18:32:43 Hola Aug 27 18:33:22 Is the source of the android phone book available ... I mean of the default phone book application? Aug 27 18:34:01 Or it would also be enough to know if the icons there for adding and removing phone number (or addresses, emails, etc.) are a default resource Aug 27 18:34:26 I mean the green "+" in the gray circle ... or the red "-" in the gray circle for removing such elements Aug 27 18:34:37 Yes, it's open source Aug 27 18:34:41 SimonVT: oh ok Aug 27 18:35:41 I am using viewpager with support library. We are trying to ovveride ontouch but their is no response coming up. Aug 27 18:36:18 SimonVT: And where can I get it? Aug 27 18:36:24 kraftb: If you ever need to find extra image resources to use you can grab SVGs off of http://thenounproject.org and then scale them usinga program like GIMP and save them as pngs for every asset size you need. Aug 27 18:36:30 But definitely check default resoures first Aug 27 18:36:59 I assume its a default ressource Aug 27 18:37:11 Its used throughout some default android applications. Aug 27 18:37:19 I just couldn't find it in R.drawables Aug 27 18:37:25 source.android.com Aug 27 18:37:32 Maybe I didn't search long enough :) Aug 27 18:38:57 kraftb: are you looking for https://github.com/android/platform_packages_apps_phone Aug 27 18:45:13 I am using viewpager with support library. We are trying to ovveride ontouch but their is no response coming up. Aug 27 18:49:04 how can I get lists with nice rounded cells like in the tumblr app Aug 27 18:49:59 Make nice rounded backgrounds Aug 27 18:50:14 so basicaly thats just a 9patch bg image on the cell then? Aug 27 18:50:21 Yep Aug 27 18:50:31 ok then. thanks Aug 27 18:54:11 zoom_: override onTouchEvent of the parent container Aug 27 18:54:47 and onInterceptTouchEvent return true so the parent receives the touch event before the child. Then manually dispatch touch events to the desired child. Aug 27 18:56:38 We are overriding of parent but ontouch method not ontocuevent. Is there a difference Aug 27 18:58:29 You need to return true in onInterceptTouchEvent when your parent should handle touch events Aug 27 18:59:49 im using gradle to build my android app, is there a way to have one product flavor enable installing to the sd card, while the other product flavor disables it? Aug 27 19:00:09 smoak: install to SD card, Android 2.3? Aug 27 19:00:58 i mean i want one product flavor to have "android:installLocation='auto' in its manifest and the other to not have it (thereby preventing installing the app on the sd card) Aug 27 19:01:23 there's no such thing as apps on SD anymore, so don't worry about it Aug 27 19:02:11 although I do hear Samsung did some sammy hackery to allow apps to SD. Will it respond to that manifest tag, who knows Aug 27 19:02:45 huh? im specifically talking about this https://developer.android.com/guide/topics/data/install-location.html Aug 27 19:03:06 hello is a site with android widgets/controls ? Aug 27 19:04:53 anyone have experience with phonegap? Aug 27 19:05:00 yes Aug 27 19:07:33 i'm tasked with writing a simple (UI-wise) app for android and iphone. is phonegap reasonable to work with vs native android UI libs? Aug 27 19:08:44 i'm starting to think (before having started) that i might be sacrificing a lot of flexibility for future changes if i use phonegap as a shortcut initially Aug 27 19:12:02 helo: phonegap will ruin your project Aug 27 19:12:37 yeah... that's kind of what i am afraid of Aug 27 19:12:45 It's basically a suboptimal experience for both platforms in exchange for faster development Aug 27 19:28:46 hello guys Aug 27 19:29:06 how can this be done at android without heavy pain ? Aug 27 19:29:52 http://a4.mzstatic.com/us/r1000/096/Purple/v4/f8/7c/9c/f87c9ceb-8099-d56d-0898-73b228dade56/mzl.jrsratwl.320x480-75.jpg Aug 27 19:33:37 You're asking how to make it look like an iOS app? Aug 27 19:34:07 lol Aug 27 19:35:42 no SimonVT Aug 27 19:36:13 Android doesnt have listview selection like this Aug 27 19:36:33 neither - + buttons out of the box Aug 27 19:38:11 I do something like that in my sms app Aug 27 19:38:38 Android has buttons, and you can make + and - buttons too Aug 27 19:41:22 anyone here use genymotion? i can't figure out how the cloud / client bit stays up to date, as well as the vm image after you have downloaded it. or even how to tell what versions they are Aug 27 19:48:50 nseidm1 yes but you cant glue them like that Aug 27 19:48:55 without doing tons of custom Aug 27 19:48:58 drawing Aug 27 19:49:08 very minor work in a BaseAdapter Aug 27 19:49:35 Is anyone here familiar with the Status 7 error when trying to sideload an update on a Nexus 10? I'm currently running stock 4.3 (v) with stock recovery, unlocked and rooted. Trying to sideload to 4.3 (y) as an upgrade rather than wiping and starting from scratch. Aug 27 19:50:13 nseidm1 to put buttons inside ? that is easy Aug 27 19:50:20 to make them look like one is hard Aug 27 19:50:41 Fritz7: To make them look like buttons? Aug 27 19:50:48 as in default Android holo style buttons? Aug 27 19:50:56 i use holoeverywhere Aug 27 19:51:11 setText("-"); Aug 27 19:51:16 i mean at screenshot you can see two buttons together Aug 27 19:51:19 setText("+"); Aug 27 19:51:33 but they dont have a border between them Aug 27 19:51:40 that'd be done with a LinearLayout Aug 27 19:51:55 yes but focus etc at button press would overlap Aug 27 19:51:58 not like ios Aug 27 19:52:19 can you set at android its button to have no border at left/right ? Aug 27 19:52:19 wait, this isn't about Android, it's an iOS question? Aug 27 19:52:35 sure, setBackground and make a custom selector Aug 27 19:53:31 anyways i have done it already in android but sucks Aug 27 19:54:01 I'm sorry to hear your Android work sucks :-( Aug 27 19:54:16 yep Aug 27 19:54:47 that was my first Aug 27 19:54:49 try Aug 27 19:54:51 http://i.stack.imgur.com/LV7jD.png Aug 27 19:55:19 still sucked at touch and everything Aug 27 19:55:48 even setting different selection mode (single / multiple) was a pain in android Aug 27 19:56:31 good to hear android is difficult for many people, I'm gonna have a good job for a long time Aug 27 19:58:25 should take no more than a day or two for such a layout Aug 27 19:59:00 lol Aug 27 19:59:19 guess what . Ios dev did this within 1 hour Aug 27 20:00:07 Is there any other IRC channel that might be a good place to ask for help with my adb sideloading problem on a Nexus 10? Aug 27 20:00:34 I don't want to bother you guys if this is primarily a channel for people hacking on code Aug 27 20:01:07 try #android Aug 27 20:01:20 Fritz7: Thank you very much Aug 27 20:01:45 #android-root too Aug 27 20:02:06 Hrm. only a couple people in the first and no one in the second. Are those both on freenode? Aug 27 20:03:22 Hello? Aug 27 20:03:45 android has ~900 users Aug 27 20:03:47 now Aug 27 20:04:51 cool Aug 27 20:04:54 you didnt join the channel probably Aug 27 20:05:52 Can someone help me with my code? Aug 27 20:06:01 Stuck and I don't understand why it's not working Aug 27 20:07:59 markyosullivan which code? Aug 27 20:08:18 Posted on stack overflow but didn't get a response which fully worked Aug 27 20:08:52 It's related to SQLite. I can't update the listview item title but I can update everything else Aug 27 20:08:58 http://stackoverflow.com/questions/16491680/i-cant-update-the-sqlite-database-android Aug 27 20:09:34 If I have the 3rd parameter as null, I can edit everything. But of course it edits all the items in my listview and not just the one I desire Aug 27 20:11:04 Fritz7: what means oreo? Aug 27 20:13:16 Can anyone help me please? Aug 27 20:15:04 Fritz7: Aha. I clicked the channel link and it joined on a different server instead of freenode. My mistake. Thanks! Aug 27 20:18:19 Nobody? Aug 27 20:18:21 :/ Aug 27 20:21:40 Does anyone on here actually talk about Android Development? Aug 27 20:21:43 or give help? Aug 27 20:23:11 i just came here because of my curiosity in android dev :p Aug 27 20:23:41 i'm a little surprised it's so quiet here Aug 27 20:24:17 on the contrary, #android is quite active Aug 27 20:24:40 because we're working Aug 27 20:24:44 that's my guess Aug 27 20:25:10 yeah, all programmers work Aug 27 20:25:18 you mean all programmers do is work Aug 27 20:25:20 Please help! I'm using Html.fromHtml() to get a Spannable for a TextView that contains animated Drawables. In order to these drawables to actually be animated, I need the draw() function to be called for every frame. I'm trying it by invalidating the TextView, but I'm unable. I've tried almost everything already :( Aug 27 20:25:20 and you're right :) Aug 27 20:27:35 well, in actual i was trying to put your comment against the c# channel where it's quite active most of the times, but then i guess this is not a fair comparison Aug 27 20:27:49 anyhow, let's see who can help the guy... Aug 27 20:27:57 markyosullivan - yes and yes, but a lot of people are reluctant to debug through your app to figure out what's wrong Aug 27 20:28:22 I wouldnt know how to help him, I'm a game developer Aug 27 20:28:25 I do c++ and opengl Aug 27 20:28:38 what is it like developing apps for android compared to .net development ? Aug 27 20:28:47 QcMat in Android? Aug 27 20:28:51 papachan, yep Aug 27 20:29:10 with NDK, you can run c++ stuff on android Aug 27 20:29:16 QcMat which framework recommend you to make a good game in android? Aug 27 20:29:22 cocos2d-x, without a doubt Aug 27 20:29:25 if you want 2d that is Aug 27 20:29:36 Unity for 3d? Aug 27 20:29:39 I guess so Aug 27 20:29:48 I dont do 3d, but if I had to, i'd start checking unity probably Aug 27 20:29:59 there's most probably a nice 3D engine that is in code though Aug 27 20:30:01 open source Aug 27 20:30:01 SDL2 also Aug 27 20:30:18 theelfismike: Okay, I know the problem of my code. Aug 27 20:30:20 anyhow depends on what level you want to work at MeanderingCode Aug 27 20:30:28 only android dev i've done is with cocos2d-x and some custom gl for stuff that it cant do (same gl code as I use on iOS) Aug 27 20:30:47 datab.update("PaymentTable", vals, "PTITLE", null); Aug 27 20:30:48 and java for ads and inapp purcahses and all the native stuff I need Aug 27 20:30:57 that's the code which isn't working Aug 27 20:31:09 It works, but doesn't do exactly what I want it to Aug 27 20:31:13 you can call java methods from c++, I do that via JNIHelper in cocos2d-x Aug 27 20:31:20 Actually that's the wrong code Aug 27 20:31:34 theelfismike: this is the code - datab.update("PaymentTable", vals, "PTITLE='"+sTitle+"'", null); Aug 27 20:35:55 Consider that the reason you're not getting any answers is that you're bad at asking questions Aug 27 20:36:07 "isn't working" .. That really doesn't tell us anything Aug 27 20:36:17 ^ Aug 27 20:36:48 quality of the question is everything in getting an answer or not Aug 27 20:37:22 I've explained it lower down Aug 27 20:37:31 should I change the layout of my questin? Aug 27 20:37:34 markyosullivan: "PaymentTable" isn't a properly formatted uri Aug 27 20:37:37 that will never work Aug 27 20:37:45 uri? Aug 27 20:37:53 Where is it explained? Aug 27 20:38:38 markyousullivan: http://developer.android.com/reference/android/content/ContentResolver.html#update Aug 27 20:38:46 you need a uri to your database Aug 27 20:38:54 below the code, I added in some more information when I edited it Aug 27 20:39:01 I'd imagine datab is his database Aug 27 20:39:11 Are you talking about the stackoverflow question from may? Aug 27 20:39:16 About altering a table? Aug 27 20:39:21 oh, no content provider here Aug 27 20:41:55 Yeah I'm using a SQLite Database called datab Aug 27 20:43:30 I can add an item to the listview using data entered by the user and I can delete items on the listview. I'm currently trying to add a feature so that users can edit the data in the selected listview Aug 27 20:43:49 I only started Android Development in June Aug 27 20:44:03 studied Java in my first year of Uni Aug 27 20:45:23 You still haven't actually asked a question Aug 27 20:45:37 Just a bunch of random statements and a line of code Aug 27 20:47:11 :( Aug 27 20:47:52 I asked this - Can someone explain where I've went wrong and why it isn't updating? Aug 27 20:48:08 We have no idea what you're doing Aug 27 20:48:11 You pasted no code Aug 27 20:48:19 No explanation of what's actually happening Aug 27 20:48:33 Nothing about what you're expecting to happen Aug 27 20:53:42 hi all. I have a custom kernel I'd like to flash to my minix neo x5. the only modification I have done is to hid-input.c to invert the X and Y axis of the touch portion of my touchscreen. If I am running a custom rom I can relace the kernel.img and the patch works as expected however when I flash kernel.img when using the stock rom nothing changes Aug 27 20:53:52 can anyone suggest why this may be ? Aug 27 20:53:55 #android-root Aug 27 20:53:59 does anyone have experience loading signingConfigs in gradle from outside of build.gradle? Aug 27 20:54:01 can suggest you things Aug 27 20:54:16 thx SimonVT, I will check there Aug 27 20:55:16 SimonVT: trying to reword my question on stack overflow now Aug 27 20:55:24 jaynewstrom: Put variables in .gradle/gradle.properties Aug 27 20:55:42 markyosullivan: You haven't linked to your stackoverflow question yet Aug 27 20:56:05 You linked to a question from may about altering a table, but since you started in june I'm guessing that's not yours Aug 27 20:56:17 we hope not anyhow :) Aug 27 20:58:27 SimonVT canadiancow i think it would be very useful, if we had a bot that handled document requests, etc Aug 27 20:58:33 Hi, I am attempting to create a split action bar. It is working on android 4.2 but not on android 2.3.3. I have set the meta-data tag (android.support.UI_OPTIONS), but still doesn't show. Any ideas? Aug 27 20:58:40 g00s, right one? :P Aug 27 20:58:49 write* Aug 27 20:58:49 Document requests? Aug 27 20:58:52 canadiancow it was always a policy matter Aug 27 20:58:55 'no bots' Aug 27 20:59:04 write something and i'll talk to dan about it Aug 27 20:59:14 God no, no bots ;/ Aug 27 20:59:15 ok Aug 27 20:59:30 iphonedev channel has one, works great Aug 27 20:59:32 a well written bot could be useful Aug 27 20:59:41 What would be the point of it? Aug 27 20:59:41 @SimonVT I got the signing configs to work when I put them directly in the build.gradle but I take them out nested the same way and put them into .gradle/gradle.properties and it just errors Aug 27 20:59:55 SimonVT: http://stackoverflow.com/questions/18445649/cant-update-listview-using-sqlite that's my question Aug 27 21:00:09 SimonVT basically a level of indirection to a knowledge base, in this case mostly d.android.com Aug 27 21:00:47 markyosullivan: Congratulations, only took you 30 minutes to ask a question :) Good luck Aug 27 21:00:58 automates drudgery, when you answer the same stuff all the time Aug 27 21:01:04 #git has one also Aug 27 21:01:09 SimonVT: I posted it earlier Aug 27 21:01:17 markyosullivan: No you didn't Aug 27 21:01:24 SimonVT, stack trace parser :P Aug 27 21:01:34 "You have a NetworkOnMainThreadException. blah blah" Aug 27 21:02:54 SimonVT: just realised I posted the answer which I was looking at to see if it'd help Aug 27 21:04:39 canadiancow: Meh :p Aug 27 21:05:15 I'd get behind one bot.. THat simply turns the command or whatever into a d.android.com search query :p Aug 27 21:05:33 Because learn to search Aug 27 21:07:27 A bot with a well-written copypasta about how to not ask unanswerable questions would be useful. Aug 27 21:07:46 I think that's another common issue. Aug 27 21:09:11 <|Agent> Is it safe to display a dialog in an activity's onCreate? Aug 27 21:13:09 SimonVT, a bot that just says "stack trace or gtfo" Aug 27 21:13:09 :P Aug 27 21:15:58 Or just posts the topic .. that would cover most Aug 27 21:22:23 if ($msg =~ /how do i (.*)/i) { send_msg("https://developer.android.com/index.html#q=$1"); } Aug 27 21:23:47 RyanM: lol Aug 27 21:24:24 a lot of times people ask if they should know java first, a bot could recommend a few books, for example Aug 27 21:25:01 Effective Java would be a good one Aug 27 21:25:37 +1 to a bot for that Aug 27 21:25:49 might try writing a bot, putting it in a test channel somewhere, and seeing what the ops think Aug 27 21:26:09 would give me a good excuse to try and come up with a good framework for it Aug 27 21:26:25 RyanM stuff exists, like pircbotx Aug 27 21:26:46 that's less fun ;-) Aug 27 21:26:52 It's hard to recreate wheels when you really really love wheels Aug 27 21:26:58 to not* Aug 27 21:27:24 the more difficult challenge is knowledge engineering Aug 27 21:27:36 I've previously used Irssi for bots, which is great, but has a number of limitations. Aug 27 21:27:38 having a map of useful concepts, and aliases for those Aug 27 21:29:19 anyway, are you guys actually going to work on a bot? i'd rather get it semi-approved before any effort is spent :P Aug 27 21:29:55 canadiancow you may as well ask first. since there was a policy in place already Aug 27 21:30:09 i dont know what the motivation for the original "no" was Aug 27 21:30:13 ok and if i get approval, are you actually going to make one? :P Aug 27 21:30:32 i'd have to figure out where to put it, i'm not online all the time Aug 27 21:31:04 but i would at least spend some time researching it, sure Aug 27 21:31:04 oh no there's no way we'd let YOU host the channel's bot Aug 27 21:31:18 canadiancow yeah, so i dunno where it "goes" Aug 27 21:31:27 that is a problem i could solve Aug 27 21:31:34 im sure we have a server here :P Aug 27 21:31:37 :P Aug 27 21:31:42 under your desk :P Aug 27 21:31:52 I don't know if or how quickly I would. There would also be the question of hosting-I certainly *could* host it but I'm sure you'd rather do it. Aug 27 21:32:04 im not sure i'd want something running on my desktop that can take queries from the public Aug 27 21:32:20 also, i'll research a few other chans' experience with it Aug 27 21:33:29 it makes sense, if its google's official android channel, they would host it, but once its in their domain i'm not sure how any of us could contribute to it Aug 27 21:33:40 AOSP :P Aug 27 21:33:54 no but more than likely, it would be on github, and someone would just import it every now and then Aug 27 21:34:16 most bots i have seen have a 'teach' command Aug 27 21:34:22 for this purpose anyhow Aug 27 21:35:59 ok but who would have access to that Aug 27 21:36:03 :P Aug 27 21:37:12 hmm, when requesting access to a content provider (querying it) is there any way to pass parameters to the provider's onCreate? Aug 27 21:37:32 looks like no... Aug 27 21:37:41 canadiancow heh, #iphonedev bot as a 'n00b' command :D Aug 27 21:38:06 i'll talk to brownies Aug 27 21:40:33 @SimonVT should my gradle.properties look like android.signingConfigs.testFlight.keyPassword = "notmyactualpassword" Aug 27 21:41:37 hmm, I guess I can force a user of a content provider to start a service first Aug 27 21:41:43 and then the content provider will be available Aug 27 21:43:38 pfn O.o Aug 27 21:44:16 g00s, I want to make a contentprovider interface to keepassdroid Aug 27 21:44:38 a client can't just use keepassdroid without passing some information to load with, i.e. password/keyfile/database-file Aug 27 21:45:06 so, a contentprovider can't just be conjured up out of thin air, it needs to have something to hold those bits of data Aug 27 21:45:11 and I don't want to store it locally in keepassdroid Aug 27 21:45:17 I have 2gb of ram on my dev board with a imx6 quad, and I need to play a 1080p video at 60fps. it plays at 60fps, however every once in a while for 10ms or so the framerate will go down to around 37ish and then back up. This problem can be exasperated with running the video from nfs. this is telling me that I need more memory, but I am not sure what memory I need. Any suggestions ? Aug 27 21:45:30 I want the client to have to send that information to have access to the content provider Aug 27 21:46:08 pfn, what is keep assdroid Aug 27 21:46:08 once the service/cp is running, other clients can access without sending the info (provided I can come up with some or acl mechanism) Aug 27 21:46:16 canadiancow, keepass for android Aug 27 21:46:31 that sounds like therapistfinder Aug 27 21:46:58 ? Aug 27 21:47:02 or expertsexchange Aug 27 21:47:13 i always read it the wrong way Aug 27 21:47:17 keep. assdroid. Aug 27 21:47:28 yeah, stupid name, but not my project Aug 27 21:47:34 I just feel like I want to contribute to it Aug 27 21:47:47 and I'm not interested in rewriting Aug 27 21:47:47 keepassdroidsexchange? Aug 27 21:48:29 ^ proposed name for a support forum Aug 27 21:48:39 can't change the "KeePass" part anyway, since it's a counterpart to the project with that name Aug 27 21:48:41 without the "y" in the name I read it as keep-ass-droid Aug 27 21:49:01 since the UX of keepassdroid is so completely shitty Aug 27 21:49:01 i use keepassx on linux, keepass on win, and keepassdroid on android Aug 27 21:49:05 nseidm1: it's supposed to be a portmanteau of Keep and Pass Aug 27 21:49:08 Can people please read my question and try and answer it? Aug 27 21:49:09 pfn: agreed Aug 27 21:49:09 http://stackoverflow.com/questions/18445649/cant-update-listview-using-sqlite Aug 27 21:49:15 if not, can you rate it up? Aug 27 21:49:18 indeed, I'm not hating, just saying :-P Aug 27 21:49:23 zinx, you use keepass? do you use chromeipass or passifox? :) Aug 27 21:49:24 pfn: i've often considered altering at least the file/password choosing portion Aug 27 21:49:29 keepassx on linux, though Aug 27 21:49:33 no, i don't use anything but keepass* Aug 27 21:49:37 i use KeePassX on mac Aug 27 21:49:48 zinx, chromeipass/passifox are my extensions for integrating keepass with chrome/firefox Aug 27 21:49:59 zinx, https://chrome.google.com/webstore/detail/chromeipass/ompiailgknfdndiefoaoiligalphfdae?hl=en Aug 27 21:50:03 i have no interest in allowing chrome or firefox to access that information Aug 27 21:50:09 me neither Aug 27 21:50:14 i keep the browser far away :) Aug 27 21:50:19 * pfn shrugs Aug 27 21:50:22 it's a fully acl'd protocol Aug 27 21:50:48 pfn but anyhow, i typically write a CP stateless Aug 27 21:50:59 so onCreate doesn't open anything, like a db Aug 27 21:51:08 onQuery may get a readableDbHandle Aug 27 21:51:16 so, maybe you can pass a command to the CP Aug 27 21:51:18 g00s, yeah, need to start a service first Aug 27 21:51:18 markyosullivan: there's not a listview in that code. Aug 27 21:51:25 that's reasonable for what I want Aug 27 21:51:33 but yeah, thinking about creating an android share action Aug 27 21:51:38 e.g. share url to keepassdroid Aug 27 21:51:56 and keepassdroid will respond with search results in a notification, and you can select to copy user/pass into clipboard Aug 27 21:52:07 pfn see ContentResolver.call() maybe you can use that Aug 27 21:52:37 the share action/unlocking/pin-swipe can be handled as a separate app with access to the content provider Aug 27 21:52:39 pass in a bundle of config that you need, etc Aug 27 21:52:47 I just need to add a content provider to keepassdroid to make it work Aug 27 21:52:58 g00s, yeah, I'm looking through content provider apis right now Aug 27 21:53:32 RyanM: the data is transferred to the Payments class which has the list view Aug 27 21:54:01 how does a content provider know where a call is coming from? can the Binder methods be used? Aug 27 21:55:24 markyosullivan: sorry, my psychic powers don't let me find bugs in code I can't see. Even so, you've supplied huge amounts of code that most people (including me) don't have time to look through. Aug 27 21:58:21 Basically, you've done the equivalent of telling your mechanic your car won't start, and sending him very detailed pictures of the inside of your car. Aug 27 22:02:13 RyanM: cut down the code - http://stackoverflow.com/questions/18445649/cant-update-listview-using-sqlite Aug 27 22:15:42 now you've sent your mechanic a picture of your ignition. Still not the right code. Aug 27 22:16:53 guys i have a popup view that i show/hide from the bottom of the screen with an Animation. the animation is started but doesn't execute. it has something to do with invalidating the views beneath the popup but i can't find the info i need to solve this. Aug 27 22:18:12 canadiancow does google use any signals, from this channel and/or groups, to determine which topics need better elucidation in the docs? Aug 27 22:18:26 pages have +1, i can't see how that helps Aug 27 22:18:32 one could file a bug Aug 27 22:18:37 that seems high friction Aug 27 22:19:22 i'm sure you guys can do some NLP on the traffic here :) Aug 27 22:21:41 i dont know Aug 27 22:21:45 in here? i doubt it Aug 27 22:22:04 if we used data from #android-dev, d.android.com would be a page dedicated to NetworkOnMainThreadException Aug 27 22:22:06 :P Aug 27 22:22:10 haha Aug 27 22:22:14 or "how to debug a crash" Aug 27 22:31:08 hey, I started using intellij. does anyone know how to add a few dummy files to the emulator's sd card? Aug 27 22:31:50 kkomw: you could just adb push them on Aug 27 22:31:57 hello Aug 27 22:32:13 should i set fixed width at my login button / form ? or not Aug 27 22:32:25 it becomes hudge at tablets Aug 27 22:32:41 Fritz7: It's really up to you and the look you're going for Aug 27 22:32:57 just make sure that if you do set a fixed width, do it in dp, not px Aug 27 22:33:22 even i set it with dp as i always do , how can i be sure that it would fit all devices? Aug 27 22:33:28 My personal 0.02 is that it may be simpler to think of it as designing for a web-site. Whatever makes sense in a variable-width browser, probably makes sense here too Aug 27 22:34:28 There isn't a strict correspondence with css of course, but many of the ideas carry over [eg: width-based break-points to alter the UI, etc.] Aug 27 22:37:33 i see Aug 27 22:37:57 i am trying to figure out a good quantity picker Aug 27 23:00:54 How can I get a callback for when the soft keyboard opens up Aug 27 23:01:36 i tried using ViewTreeObserver.addOnGlobalLayoutListener, and compute the expected and actual size of the root view of the screen Aug 27 23:01:57 but it's makes the activity a bit sluggish Aug 27 23:04:11 it's a config change Aug 27 23:04:28 Can anyone help me? Aug 27 23:04:31 i'm still stuck Aug 27 23:06:06 markyosullivan you still havan't asked a question Aug 27 23:06:22 i think you will be stuck for a while Aug 27 23:07:06 Can you help me with my code? Aug 27 23:07:21 that's not a question Aug 27 23:08:06 I've asked on numerous occasions and nobody has helped me Aug 27 23:08:20 markyosullivan http://www.catb.org/esr/faqs/smart-questions.html Aug 27 23:08:21 I can't update my listview when I'm trying to edit one of the items for it Aug 27 23:10:02 g00s: I'd appreciate it if you were more respectful towards Android developers who don't have as much expertise as yourself. Aug 27 23:10:08 All I'm asking is for some help. Aug 27 23:10:14 have you tried invalidating it or calling notifyDatasetChanged? Aug 27 23:10:26 Maybe you can teach me some stuff about Android development, because I don't have much experience at all Aug 27 23:10:48 markyosullivan the teacher will become apparent when the student is ready Aug 27 23:11:01 have you tried invalidating it or calling notifyDatasetChanged? Aug 27 23:11:59 markyosullivan, we cant respect you if you dont respect us enough to do a little bit of your own legwork Aug 27 23:12:05 this is a two way street Aug 27 23:12:23 pfn, the onConfigurationChanged callback didn't fire when the keyboard went up. I put configChanges="keyboardHidden" in the manifest, too Aug 27 23:13:12 * pfn shrugs Aug 27 23:13:34 Okie :) Aug 27 23:15:22 markyosullivan, have you tried invalidating it or calling notifyDatasetChanged on the adapter? Aug 27 23:16:57 Look, I'm sorry if I don't know the correct terms. I'll be honest I don't know too much about android development, wanted to develop an app over summer to build upon what I learnt in my first year at uni studying Java. I'm teaching myself as I go along. Aug 27 23:17:54 markyosullivan, i'm really trying to help - invalidate will make the ListView redraw itself, notifyDatasetChanged on the Adapter will tell the adapter to clear its cached copy of your views Aug 27 23:18:00 markyosullivan, read d.android.com thoroughly Aug 27 23:18:02 that is what you do Aug 27 23:18:04 markyosullivan: You've been told what's wrong. You're complaining your listview doesn't work, but you have failed to give us even a single line of ListView related code. Aug 27 23:18:11 unless you want to pay us a summer college tuition here Aug 27 23:18:27 I appreciate you taking the time to help me theelfismike Aug 27 23:18:34 theelfismike: invalidate is almost certainly not what he wants, but notifyDatasetChanged *might* Aug 27 23:18:52 but we have no idea because he hasn't given us any relevant code. Aug 27 23:19:08 I've included all the information in my stack overflow from earlier Aug 27 23:19:37 Like I said in my stack overflow post, the list view is actually in a different class Aug 27 23:19:39 markyosullivan: Then your problem is that your app doesn't actually have a listview. Aug 27 23:19:42 problem solved. Aug 27 23:20:14 if your app does in fact have a listview, you have failed to give us the code in that different class containing it. Aug 27 23:20:26 RyanM and pfn if you would take the time to actually read my link, you'd see that I've stated there's no list view in my Add Payment class. There's only one in the Payment class. Aug 27 23:20:35 I know that. Aug 27 23:20:40 I did read it. Aug 27 23:20:43 > There's only one in the Payment class. Aug 27 23:20:45 provide the code Aug 27 23:20:51 So stop belittling me Aug 27 23:21:08 And I have told you repeatedly that without THAT code I cannot help you. Aug 27 23:22:12 Okay, so RyanM and theelfismike want to help me. Okay, what do you need to see about my list view code? Aug 27 23:22:26 you've most likely forgotten to inform your adapter that your data has changed. Aug 27 23:23:00 preferably where you set the adapter, and where you're trying to inform the list view of new changes. Aug 27 23:23:15 RyanM: But why does it update all of the other fields in my item if that's the problem? Aug 27 23:23:47 the only field for my item which isn't updated with the edited data is the Title of the payment Aug 27 23:24:13 then show your getView method Aug 27 23:24:41 by the way, that it's only partly updating is new information Aug 27 23:24:51 can anyone give me some help with oauth and google calendar api on android? Aug 27 23:24:59 that's not in your SO post Aug 27 23:25:25 'Edit (27/8/13) I've tried the code which was posted by bakriOnFire, it updates everything apart from the title of the item. I've also tried changing the 3rd parameter to 'null'. This allowed me to edit the title HOWEVER it edited all the items in my list view.' Aug 27 23:25:45 :\ Aug 27 23:25:50 I thought that covered it Aug 27 23:26:37 getView code? What do you mean by that RyanM Aug 27 23:26:57 https://developer.android.com/reference/android/widget/Adapter.html#getView(int, android.view.View, android.view.ViewGroup) Aug 27 23:29:17 I don't have getView Aug 27 23:29:34 My Payments class uses a query which populates my list view Aug 27 23:29:55 Sorry, I don't think I can help you - perhaps someone with more DB experience can Aug 27 23:30:42 I don't think that's the problem though Aug 27 23:30:55 datab.update("PaymentTable", vals, "PTITLE='" + sTitle + "'", null); Aug 27 23:31:05 can anyone give me some help with oauth and google calendar api on android? Aug 27 23:31:14 I think that line of code is the problem. I don't think my 3rd parameter is correct. Aug 27 23:31:38 Because when it's null, I can change all fields. But then whatever I change it changes it for every item in my listview Aug 27 23:31:45 how do you populate your listview without implementing getView() on the adapter? Aug 27 23:34:29 theelfismike: SQLiteDatabase.query Aug 27 23:34:48 Do you want to see the code? I can paste bin it Aug 27 23:39:46 can anyone help me out with this? http://stackoverflow.com/questions/18424610/how-to-instantiate-a-com-google-api-services-calendar-calendar-object-given-an-o it's got a bounty! Aug 28 00:24:40 loaders: how do they work? Aug 28 00:25:43 canadiancow: buggily ;-) Aug 28 00:25:59 at least in the support library, but only when rotating the screen... Aug 28 00:28:52 hi, I would like to make it obvious when a Scrollable containing a textview has scrollable text available, my users keep not knowing to try and scroll various things as there is nothing to indicate there is mre text availaible Aug 28 00:29:01 is there an easy way to do this? Aug 28 00:32:36 there might be a way to always show the scrollbar Aug 28 00:33:36 RyanM, i thought it was supposed to reuse the loader if you called initLoader() with the same id Aug 28 00:33:41 such as on rotation Aug 28 00:33:52 or maybe im just doing it wrong Aug 28 00:35:55 robin_sz, maybe fadeScrollbars="false" or something similar Aug 28 00:36:18 hmm Aug 28 00:36:21 only listview has that Aug 28 00:36:29 hmm Aug 28 00:36:53 this is a textview inside a scrollable Aug 28 00:42:48 canadiancow: I think it should, but it's been a bit since I've looked hard at this, so I'm not sure off the top of my head. Aug 28 00:49:17 canadiancow, showing the scrollbar would be ideal Aug 28 00:49:25 any clues? Aug 28 00:59:17 hey look, nexus 4 is $100 off Aug 28 00:59:17 g00s Aug 28 00:59:17 https://play.google.com/store/devices/details/Nexus_4_16GB?id=nexus_4_16gb Aug 28 01:00:17 canadiancow wow, why do you think it is ? Aug 28 01:00:52 because it's black Aug 28 01:00:57 white is for cool kids(tm) Aug 28 01:01:19 g00s, because you need to get one Aug 28 01:01:19 more like they're attempting to clear stock Aug 28 01:15:47 morning all Aug 28 01:17:33 who's good with ListView? I'm going nuts Aug 28 01:18:20 i have selection mode set to single and tapping a row with my finger causes the background to change Aug 28 01:18:32 but I can't find anyway to set this in code Aug 28 01:18:37 any ideas? Aug 28 01:19:09 set what in code Aug 28 01:19:11 setItemChecked Aug 28 01:19:33 setItemChecked isn't cutting it Aug 28 01:19:39 neither os set selection Aug 28 01:19:45 it sets the background if you have state_activiated Aug 28 01:19:47 activated Aug 28 01:19:49 i feel like i'm missing sothing super simple Aug 28 01:20:09 state_activated is also api11+ only Aug 28 01:20:32 i'm on 4.3 Aug 28 01:21:18 i can't see any difference between setItemChecked and performitemclick that matters Aug 28 01:34:06 canadiancow i've been trying the genymotion emu. i gave up a few months ago when vbox was being finicky Aug 28 01:34:21 4.2.16 seems good tho, so far its very fast Aug 28 01:34:41 supposedly some of the images come with play services, although i haven't looked for it on the experimental api 18 image Aug 28 01:34:53 i have no idea what you're talking about Aug 28 01:34:55 buy a nexus 4 Aug 28 01:34:59 lol Aug 28 01:35:15 canadiancow if you don't use a phone, would you rather dev on a n4 or n7? Aug 28 01:35:23 if i dont use a phone? Aug 28 01:35:26 no joke, i only use skyp / email Aug 28 01:35:36 my phone is my pocket computer Aug 28 01:35:42 n7 is a little on the large size for that Aug 28 01:35:52 get bigger pockets ;-) Aug 28 01:36:05 mine would fit in my pockets if I didn't have a case. Aug 28 01:36:14 but then it's "is that a 7 inch tablet in your pocket, or... " Aug 28 01:36:22 i'd rather dev on n10 tbh Aug 28 01:36:27 it's such an awesome device Aug 28 01:36:31 it can emulate a n7 Aug 28 01:36:34 or n4 Aug 28 01:36:37 and it's awesome Aug 28 01:37:52 yeah, i dont care about size. i have my stuff in a maxpedition remora Aug 28 01:37:59 not going in my pockets Aug 28 01:38:39 if i sell my amp head i can get an n7 Aug 28 01:39:25 yeah, if n10 is an options I'd go for that for dev. Aug 28 01:47:38 I'm developing on Windows and want to use the NDK. Do I absolutely need Cygwin? Aug 28 01:53:04 no Aug 28 01:53:31 RustyShackleford: no you dont, thats why you have thee ndkbuild.cmd file **** ENDING LOGGING AT Wed Aug 28 02:59:58 2013