**** BEGIN LOGGING AT Thu Mar 14 02:59:58 2013 Mar 14 03:35:06 aw fuck, so Google is also discontinuing Snapseed for Mac. I was really hoping to get the Nik suite, but have no idea what Google is going to do with it Mar 14 03:35:32 so much weird shit today, i had to make sure it wasn't April 1 Mar 14 03:38:45 now about Reader in general "Urs Hölzle said that Reader's numbers have declined over the past few years" … so are people just using RSS less? what are they using instead ? Mar 14 03:39:00 * g00s must be missing something Mar 14 03:39:31 what i've heard is that people are getting a lot more news from social sites rather than RSS Mar 14 03:39:41 and really RSS never really took off to the potential that it was expected to Mar 14 03:39:50 i'll miss Reader but i'm not surprised it's being shut down Mar 14 03:40:06 ok . so I guess streams of information like on G+ ? Mar 14 03:40:13 yeah Mar 14 03:40:17 thats probably what i missed, since i don't use FB or G+ Mar 14 03:41:46 i use G+ and like it and get good information from it, but it's different information than what i get from Reader. the big sites, especially Android ones, i read seem to have G+ accounts, but i have a lot of small blogs that don't get posts often that might not have social accounts reporting new posts Mar 14 03:42:52 yeah, exactly - I only use Reader for example … Bruce Percy posts like once every few months. I visit HN or the Verge daily and see the site as is Mar 14 03:44:16 https://www.change.org/petitions/google-keep-google-reader-running Mar 14 03:44:36 i doubt they'll change their mind, though maybe they'll extend the cutoff date Mar 14 03:45:28 i'm hoping Feedly or NewsBlur or something will meet my needs Mar 14 03:46:25 fuck it , no more services Mar 14 03:46:37 i just want a client that grabs the feeds directly Mar 14 03:46:59 i want syncing between my devices as well though Mar 14 03:47:00 kevinb: there is also http://theoldreader.com/ Mar 14 03:47:24 kevinb: just have one device, problem solved :) Mar 14 03:47:29 convergence is coming my friend ;) Mar 14 03:47:38 bah, i have more devices than i know what to do with Mar 14 03:49:43 i really just use phone + desktop, but i think i need to use a tablet more to make myself better at developing for the tablet Mar 14 03:56:21 oi oi Mar 14 03:56:29 hey ron_frown :) Mar 14 03:56:38 how goes it g00s Mar 14 03:56:52 hello native english speakers. when i have a sentence like 'the german guy is from Germany', is 'german' an adjective? Or what is it called Mar 14 03:56:54 i think my head is still spinning from all the news today Mar 14 03:56:59 oh well, thats ok Mar 14 03:57:11 what news Mar 14 03:57:34 ron_frown: Rubin has been moved "err, he moved himself" Mar 14 03:57:39 ? Mar 14 03:57:44 and, Reader will be discontinued Mar 14 03:57:52 damn it Mar 14 03:57:52 and some other Nik software for the desktop Mar 14 03:58:19 never heard of nik Mar 14 03:58:37 I've spent 3 days knee deep in tiwlan drivers Mar 14 03:58:38 they have Silver Efex Pro, Color Efex Pro, etc Mar 14 03:58:42 troubleshooting low level shite Mar 14 03:58:49 but those weren't discontinued Mar 14 03:59:00 so far nothing blowing my mind Mar 14 03:59:13 don't forget ad block software kicked out of google play Mar 14 03:59:16 osxorgate: adjective? Mar 14 03:59:21 kevinb: heh Mar 14 03:59:33 pragma-: yeh i think it's adjective Mar 14 03:59:41 dont care about that either, other than I think its anti-competitive Mar 14 03:59:49 Hello Mar 14 04:01:11 Who knows if the mapfragment is compatible with ICS? Mar 14 04:01:38 play services map shit is Mar 14 04:01:58 I knwo they make money off their advertising Mar 14 04:03:51 Hmm well which would work better? Mapfragment? Or Supportmapfragment? Mar 14 04:04:00 kevinb: software kicked out? Mar 14 04:08:21 yawn Mar 14 04:09:29 yeah, google play discriminatedly invoked some broadly-written clause in its terms of use to remove a bunch of adblockers from the market Mar 14 04:09:34 tinloaf: ad blocking apps were kicked out of Play. (it violates the TOS, i don't really think it's a bad thing, and users can still sideload, but it's interesting to see Google do it when they hadn't before) Mar 14 04:09:59 Anyone? Mar 14 04:10:14 macleod2486, are you supporting versions of android lower than 3.0? Mar 14 04:10:20 pragma-: i think I briefly saw a post from you on reddit, you have a network log app right? do you worry it's in danger? Mar 14 04:10:36 Just 3.0 and up Mar 14 04:10:40 kevinb: no, I don't block any services; but I did wonder about firewall apps Mar 14 04:10:57 and yes, I have a network log app Mar 14 04:11:02 macleod2486, well, it probably doesn't matter too much. are you including the support lib in your app? Mar 14 04:11:25 i'm curious as well about firewall apps Mar 14 04:11:36 kevinb: what do you think the chances are, google spring cleans gmail as such and forces one to send messages through their G+ account :) Mar 14 04:11:57 g00s :( Mar 14 04:11:58 goos what kinda fun shit you been working on? Mar 14 04:12:20 ha i doubt it. i think gmail is too important to them to get people to register for google accounts. Mar 14 04:12:32 canadiancow: i have an apocolyptic mindset :) Mar 14 04:12:43 ron_frown: oh, just mqtt thats all Mar 14 04:13:05 Yes I am but when I load the app it says I need to update google services when using mapfragment Mar 14 04:13:34 it's very easy to register an arbitrary number of gmail accounts and use them to create a bunch of G+ accounts with pseudonyms Mar 14 04:14:07 and what would be the point of that Mar 14 04:14:19 ? Mar 14 04:14:20 kevinb: oh! didn't know that. Mar 14 04:14:21 ztir: ah, an innocent mind. Mar 14 04:14:30 ban evasion? Mar 14 04:15:14 how do you think some apps have such high 5 star ratings despite being utter crap? Mar 14 04:19:01 i ono but subway surfers is cool Mar 14 04:19:09 macleod2486, please dont pm me Mar 14 04:19:11 latest update sucked Mar 14 04:19:30 so if you're using the support lib, you might as well use the supportmapfragment to take advantage of fixes in Fragment that arent in older versions of android Mar 14 04:19:32 suddenly, notifications! Mar 14 04:19:39 as for google play services... go update it :P Mar 14 04:19:56 https://play.google.com/store/apps/details?id=com.google.android.gms Mar 14 04:20:19 even after I disabled the "challenge reminders" thing in the app, it still spams me with status bar notifications about crap Mar 14 04:20:33 Hmm alright and well my test device isn't blessed by google for support Mar 14 04:20:33 thank god android itself lets me disable notifications for apps Mar 14 04:20:41 +1 Mar 14 04:21:43 pragma- now if my mac would let me do the same Mar 14 04:22:02 talk about annoyng os update notifications popping up like every 5 min ntil you let it update Mar 14 04:30:35 Eh well my device isn't compatible Mar 14 04:40:52 aaaarhg, android Mar 14 04:41:09 this "PendingIntent-Recycling" has just cost me ~1hr Mar 14 04:56:51 i thought this was funny http://i.imgur.com/TliXScV.gif Mar 14 05:39:11 kevinb: did you see this? http://www.h-online.com/open/news/item/Shiva-provides-a-RESTful-API-for-private-music-collections-1821719.html Mar 14 05:39:28 we need more of these things for other services, like reader. then you can sync to your shiva :) Mar 14 05:40:47 cool, i hadn't seen that Mar 14 05:41:51 trying to root my Samsung Galaxy S (model number: SCH-I500) Hardware version: I500.04, Firmware Version: 2.3.6, Build Number SCH-I500.FE29). and i cant get it into download mode, when i remove the battery its still showing that its charging :( Mar 14 05:42:00 any suggestions on how to get it into download mode? Mar 14 05:42:05 any help is greatly apprciated, thnx Mar 14 05:42:37 ztir: help is in #android-root Mar 14 05:42:44 been there done that Mar 14 05:42:47 for th epast week Mar 14 05:42:54 no one is awake apparently Mar 14 05:42:58 ztir: did you see our topic ? Mar 14 05:43:18 watver Mar 14 05:44:33 kevinb: a reader type thing sounds like a great thing for a Shiva plug; unlike email where you don't really want to lose it (if your house burns down) - its not the end of the world if your Shiva goes belly up and you lose track of what you've read or not Mar 14 05:46:06 yeah, also and there could be public hosts too (ads, limit on the number of feeds, or paid or whatever) for people that don't want to run servers, and there wouldn't be legal or DMCA concerns with hosting a bunch of RSS feeds compared to mp3s Mar 14 05:46:39 but then if the public host was shutting down it'd be easier to move elsewhere Mar 14 05:52:05 kevinb: good thing android-dev is on freenode; maybe they would have shut that down with spring cleaning :D Mar 14 05:52:24 haha true Mar 14 05:54:18 would osmeone please explain what to do with a flashable_root package that contains Meta-INF and system folders? Mar 14 06:01:06 how im suppose to install a flashable root packagE? Mar 14 06:06:27 What's the easiest way to turn a running app into an activity in another app? Mar 14 06:51:29 g00s: help! Mar 14 06:51:50 I'm trying your Colloquy Mar 14 06:52:13 well not your, how the *&%k do I turn sounds/alerts off ? Mar 14 07:02:35 ha got it Mar 14 07:03:20 have tried it too Mar 14 07:03:33 finally I got to conclude that nothing beats mirc Mar 14 07:03:56 well at the moment i prefer limechat Mar 14 07:04:17 but gonna use this today and see Mar 14 07:04:19 :) Mar 14 07:06:23 StingRay_: :) Mar 14 07:06:39 the 2 favorite for mac seem to be colloquy or textual Mar 14 07:06:52 g00s: tried limechat ? Mar 14 07:06:55 i set up my own theme which i like ;) Mar 14 07:06:56 no Mar 14 07:07:04 try it for today Mar 14 07:07:11 while i try this fluff Mar 14 07:07:39 textual is not free Mar 14 07:07:50 its free, just not the binaries Mar 14 07:07:56 you can build it yourself free Mar 14 07:08:27 now i need to find a replacement for gMail ... Mar 14 07:09:34 growl is the same Mar 14 07:09:55 binaries not free etc Mar 14 07:23:29 hey g00s you awake? Mar 14 07:23:36 hi Gambit- Mar 14 07:23:53 just about ready to go to bed :) Mar 14 07:24:08 Survey time - I've got a professor at the local university who is interested in teaching a class on android dev. What topic do you think would be unusual/interesting/difficult-on-average for him to talk on? Mar 14 07:24:21 hm Mar 14 07:25:05 a class on android dev - i take it, this one topic is a special topic for a single class, in addition to a more systematic curriculum ? Mar 14 07:25:17 (or a few classes) Mar 14 07:25:34 well, no, I run the local meetup group, so I get all kinds of people to come in and present/lecture/instruct on somewhat diverse topics. Mar 14 07:25:54 I'm scrounging around for a topic that'd be interesting enough to draw someone to come out and attend. Mar 14 07:26:05 ah, ok Mar 14 07:26:22 not clear, I know - I should be headed for bed too :) Mar 14 07:26:38 is there a particular function of an acitvity called if it receives an explicit intent or does broadcast receiver get it? Mar 14 07:26:51 well - have you tried one of those online dot-voting websites ? maybe let your attendees know about it, and they can vote for what they would like to hear about Mar 14 07:27:31 Eh, I've done stuff like that before. There's a huge sample bias, and people don't really know what they want to hear about until they see something on the list and go "oo, that's neat!" Mar 14 07:27:42 :) Mar 14 07:27:42 for example, I had a NFC workshop that was very well attended. Mar 14 07:28:14 mostly I think I'm asking you, or really anyone else in channel, if there's a rare topic that's kinda sexy right now. Mar 14 07:28:43 well, right now I am looking at MQTT for M2M / Internet of Things. Its a great pub/sub protocol over tcp/ip … usefull for all kinds of things like building your own push notifications Mar 14 07:29:06 oh that's a good idea. Mar 14 07:29:11 a singel mosquito server running on a crappy aws instance can handle about 10k connections i think Mar 14 07:29:21 do you have some baseline links you can chuck at me on that subject? Mar 14 07:29:27 mqtt.org Mar 14 07:29:41 they have some presentations there, all the client libraries, etc Mar 14 07:29:48 Paho works on Android Mar 14 07:29:55 qhr'a pho? Mar 14 07:29:56 er Mar 14 07:29:58 what's paho? Mar 14 07:30:06 Maorian for 'broadcast' :) Mar 14 07:30:12 ah it's the library? Mar 14 07:30:26 its the eclipse mqtt library, yeah open Mar 14 07:30:39 mqtt is used on stuff like arduinos, etc Mar 14 07:30:47 its a very simple protocol Mar 14 07:31:00 the protocol is open … and they are trying to standardize it Mar 14 07:31:14 (it was originally invented by Andy Piper at IBM, i think) Mar 14 07:31:48 facebook uses it for their chatting function Mar 14 07:31:54 (in their android app) Mar 14 07:32:05 that's good and unusual, I'll put it forward. Thanks! Mar 14 07:32:12 np, good luck ;) Mar 14 07:35:12 Gambit-: when is the class ? Mar 14 07:35:28 g00s, probably may, first or second week, on a tuesday night. Mar 14 07:35:42 ah, ok. i should have my demo done and open sourced by then Mar 14 07:35:44 another protocol? Mar 14 07:35:46 why.. Mar 14 07:35:55 g00s, cool - send me a message when you get to that point :) Mar 14 07:35:55 squ: its 10 years old Mar 14 07:36:29 it wasn't until more recently that IBM open sourced it; it was part of Websphere MQ Mar 14 07:38:00 so you are using it thru android-java libraries? Mar 14 07:38:21 yeah, eclipse Paho Mar 14 07:38:22 and at what level libraries operate Mar 14 07:38:31 read about it :) Mar 14 07:39:16 does android provide protocol support somehow and on what level Mar 14 07:39:48 Gambit-, if you cover these question, please let me know an answer :) Mar 14 07:40:07 which questions? the ones g00s is answering? Mar 14 07:40:13 yes Mar 14 07:40:23 i'm answering wut? squ ... Mar 14 07:40:31 :) Mar 14 07:40:36 i'm going to walk my dog and go to bed :) Mar 14 07:41:13 ok bye Mar 14 07:41:13 :) Mar 14 08:02:36 hi guys, i have a table in sqlite with an ID column that is INT and PK. Whenever i do db.insert, it is unsuccessful, and no ID generated, even if i do not specify ID. according to docs, when a record is inserted with a PK with null value, it should auto increment that column. is this correct? Mar 14 08:03:22 onats: i think you need _id Mar 14 08:03:41 StingRay_: _ID is different from _id? Mar 14 08:03:44 or its case insensitive? Mar 14 08:04:00 actually I'm not sure Mar 14 08:04:18 but I would think it would throw a "_id" missing warning to you tbh Mar 14 08:04:32 it doesn't. I just get a -1 index Mar 14 08:04:38 it returns -1 Mar 14 08:05:53 cause your setting the PK to null ? and auto increment is not on ? Mar 14 08:06:29 or are you passing "nothing" to your _ID field Mar 14 08:09:48 StingRay_: i passed nothing to _ID Mar 14 08:09:53 it is currently int primary key Mar 14 08:10:01 i modified using a quorey browser (sqlite browser Mar 14 08:10:16 and set to INTEGER primary key. tested using that query browser, insert works Mar 14 08:10:19 now testing using the android app Mar 14 08:10:40 Excuse me, in my GCMIntentservice the onMessage works just fine. I get the message, init a new object and process it in the new object. But when the screen is locked and/or in standby it wont process the message. Do i need to acquire the Wakelock in the new class by msyself? Mar 14 08:18:28 for edit text, is there a way to set a limitation for ascii characters and a different limitation for 2-byte characters ? Mar 14 08:19:33 or some way to detect how many ascii and 2 byte characters there are in a string ? Mar 14 08:48:47 hello Mar 14 08:48:48 :) Mar 14 08:48:59 hello squ Mar 14 08:51:59 Getting a strange lag on my listview just when another item gets visible while scrolling. Im using the holder pattern and inflater is created in the constructor of my adapter. Mar 14 08:52:28 "strange lag" Mar 14 08:52:54 It just lags :p Mar 14 08:53:06 Kennethos: your getView on your adapter might do too much work? Mar 14 08:53:42 like timroes says, depends what that view is taking up to populate itself Mar 14 08:54:00 My row layout contains a table layout with 7 textviews. Mar 14 08:54:23 can you paste the getView of your adapter? Mar 14 08:54:38 pastebin :) Mar 14 08:55:08 http://pastebin.com/DVjdLUz5 Mar 14 08:56:54 not sure but your asking inflater to attach the view also ? Mar 14 08:57:02 Hi, one e question... I use android sdk in Eclipse and i wanna ask you what i have to do to add an action bar to a full screen app tamplate? Mar 14 08:57:31 Kennethos: does it lag if you just use inflate(layout,null); ? Mar 14 08:57:32 Kennethos: yeah you should make the 3rd parameter to false! Mar 14 08:57:44 StingRay_: isn't default behavior without the parameter: true? Mar 14 08:57:47 well getView returns the View to the list Mar 14 08:57:54 list handles attach Mar 14 08:58:00 or as i understand neways Mar 14 08:58:08 I never use inflate to attach Mar 14 08:58:35 hmm odd Mar 14 08:58:37 ? Mar 14 08:58:37 i thought without the 3rd parameter it does attach Mar 14 08:58:54 Kennethos: jut try setting it to false (the rest looks pretty okay, nothing heavy that should cause lags) Mar 14 08:59:03 Yeah i tried, still lags Mar 14 08:59:17 Maybe my layout is causing it? Mar 14 08:59:25 was just gonna say paste layout Mar 14 08:59:50 Kennethos: could be, but i don't think a layout with 7 textviews can be so complex it will break it out Mar 14 08:59:58 seems like a good time to start profiling for you :) Mar 14 09:00:15 http://pastebin.com/2vGYbRFZ Mar 14 09:01:36 never used tableLayout Mar 14 09:02:00 yeah don't have any idea about its speed, I would profile it and see what takes so much time Mar 14 09:03:08 Kennethos: your Story.getAssignedTo() neither does take much time I hope? Mar 14 09:03:30 I would just put a simple time measure in your getView method, to check if its at all that method that takes that much time Mar 14 09:09:10 Excuse me, in my GCMIntentservice the onMessage works just fine. I get the message, init a new object and process it in the new object. But when the screen is locked and/or in standby it wont process the message. Do i need to acquire the Wakelock in the new class by msyself? Mar 14 09:12:25 misterli: if you use the helper class that should actually get the wakelock for you (according to logcat output) Mar 14 09:14:12 Okay. If im going to process everything in the GCMIntent then there's no need to care about the wakelock, right? Mar 14 09:19:11 timroes: getView takes 3 - 6ms Mar 14 09:19:23 that should be okay Mar 14 09:19:51 3-6ms shouldn't cause any lag, especially if you just scroll to the next element Mar 14 09:21:02 I think its the layout then. Can wrap_content cause this? Mar 14 09:21:37 if you measured getView you have the layout time in that Mar 14 09:21:45 its created in your inflate method Mar 14 09:21:49 when you call inflate* Mar 14 09:21:53 alex_PP: were you doing ant+ or was i confusing you with somebody else Mar 14 09:26:23 Hitler finds out Google Reader will be shut down: https://www.youtube.com/watch?feature=player_embedded&v=eKTntSh4uSQ Mar 14 09:29:16 g00s, trying, yeah Mar 14 09:29:33 alex_PP: http://www.gizmag.com/o-synce-ant-bike-computer-remote-control/26639/ Mar 14 09:30:17 bleugh Mar 14 09:30:24 what's that! Mar 14 09:30:29 haha Mar 14 09:31:09 don't think i'll be getting one Mar 14 09:33:04 Guys, any ideas why do the first few gluTexImage2D lag for almost half a second on Android (I'm testing with ICS)? Granted, the images I have to load are pretty big (amounting to almost 2k x 2k after converting to power of two), but after the first three or so times it's up to ten times faster Mar 14 09:34:37 I'd love to put away them in another thread if that was possible, but apparently OpenGL doesn't like being multi-threaded so I'm struggling to make sure there are no animations when I have to upload textures to GL Mar 14 09:35:36 Quacked: "we lost part of the open web today" … i think thats right Mar 14 09:38:44 And in another question, is there nothing else I can do to make sure GL runs smoothly while there are active asynctasks other than setting the thread priorities using Thread.currentThread.setPriority and hoping for the best? Mar 14 09:39:44 i bet those guys who have RSS apps on the Mac Store are making a killing now Mar 14 09:43:27 or any store ;) Mar 14 09:43:56 :P Mar 14 09:44:15 feel sorry for the devs with google reader apps Mar 14 09:44:37 I used this one: https://play.google.com/store/apps/details?id=com.noinnion.android.greader.reader&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5ub2lubmlvbi5hbmRyb2lkLmdyZWFkZXIucmVhZGVyIl0. Mar 14 09:44:56 It would mark items as read as you scrolled downwards Mar 14 09:45:27 timroes: Listview is scrolling smooth when my galaxy nexus is not connected to my pc :p Mar 14 09:45:40 lol :D Mar 14 09:46:01 Kennethos: adb logging ? Mar 14 09:46:27 that can kill it sometimes Mar 14 09:46:36 well, slow it / lag it Mar 14 09:47:21 Yes that was the problem. My logs arent working anymore now and everything is smooth. Mar 14 09:47:34 i'm still trying to understand the removal of Adblock Plus from Play. I dont have it. I use it as a Chrome plugin for the desktop. On Android, was it a plugin for chrome or a standalone app ? Mar 14 09:48:16 StingRay_: really? my galaxy nexus never got anyhow slower when connected to pc Mar 14 09:48:23 well anyhow, i think i should have the final say on what IPs my phone can connect to. Mar 14 09:48:54 timroes: depends how much you log and what …i guess Mar 14 09:49:03 g00s: yeah and you should in general have the saying about what your phone does, so unrooted phones shouldn't be sold at all Mar 14 09:49:19 g00s, was it removed by the author or google? :o Mar 14 09:49:24 google Mar 14 09:49:37 -.-' Mar 14 09:49:41 for example, I use this on my desktop http://someonewhocares.org/hosts_zero/ Mar 14 09:49:50 its just a little more protection Mar 14 09:50:04 i just use AdBlock+ for chromium :) Mar 14 09:50:30 if google isn't going to keep my phone up to date with security patches, they shouldn't remove apps that blacklist sites. fuck them and their open os Mar 14 09:50:47 :D Mar 14 09:50:53 can't you get it from another source though Mar 14 09:50:55 but it IS open, so do it yourself if you wish to :D Mar 14 09:51:10 Zharf: ofc you can, if they offer it from another source, they just removed it from play store Mar 14 09:51:21 and you can build your whole own android if you like to and use the host_zero stuff there Mar 14 09:51:28 thats the advantage of free stuff :) Mar 14 09:51:40 g00s: looks like AdFree is gone too.. thats the one I am using Mar 14 09:51:54 Quacked: was that standalone also ? Mar 14 09:52:03 now they are gone, its hard to read up on them Mar 14 09:52:11 Yeah, but it also blocks ads in every app Mar 14 09:52:13 adblock plus, adaway, adfree, among others got removed Mar 14 09:52:26 AdFree is gone?! Mar 14 09:52:28 you know how google make money right? :p Mar 14 09:52:32 It's not just for web browsing Mar 14 09:52:34 Damn it Mar 14 09:52:53 So in essence, those apps take away the revenue for devs using ads in their apps Mar 14 09:52:59 Well at least they'll keep an apk somewhere, right? Mar 14 09:53:39 Anonyneko: most surly they will offer the apk to download somewhere Mar 14 09:53:42 and you can just install it from there Mar 14 09:53:46 Quacked: now, ABP has for a while … had a sponsored whitelist. for desktop. did it for android also ? Mar 14 09:53:46 what's with all the hustle this morning, did something shocking develop? Mar 14 09:54:03 I just write my own versions of applications that don't have ad free versions Mar 14 09:54:23 ads need to die out ;) Mar 14 09:54:38 they do cost money on mobile connections, yeah. Mar 14 09:54:40 ehhh Mar 14 09:54:49 I'm not leet enough to write my own video players, etc, so I make do with Adfree :P Mar 14 09:54:54 so, anyone started patching their servers because of latest TLS attack? :D Mar 14 09:55:02 i think its pretty okay if they have an app supported version and a buying version without apps Mar 14 09:55:04 oh , heh RC$ ? Mar 14 09:55:06 RC4 Mar 14 09:55:07 i just would like to test an app, before i buy it Mar 14 09:55:12 g00s: dunno, doesnt look like a whitelist is possible in AdFree Mar 14 09:55:29 timroes, ads*, sure, but many don't offer paid versions, just ad supported versions Mar 14 09:55:37 -> work meeting Mar 14 09:56:31 g00s: it reminds me of how I ended up implementing extra crypto in a startup... Mar 14 09:56:41 Quacked: maybe this is why google doesn't impl more granular / temporary access controls. if i can turn 'internet' off for an app, then it can't get ads Mar 14 09:57:14 interesting point Mar 14 09:57:19 p_l: if crypto is worth using, its gotta be from the pros :D Mar 14 09:57:25 i sincerly hope granular permissions will something to be come in android Mar 14 09:57:38 i guess its one of the most liked features in custom roms Mar 14 09:57:39 * p_l wants optional permissions Mar 14 09:58:56 well, now that the ChromeOS guy is running Android maybe he will bring some of their security sauce here :D Mar 14 09:59:21 two entirely different projects, i guess oh well Mar 14 09:59:38 two for a little while anyhow :D Mar 14 09:59:41 i guess there will be more merging between the platforms :) Mar 14 09:59:50 wasn't there rumors already before Mar 14 09:59:52 security is one of the things I'd like to, ahem, play with once I get hw good enough to build rom Mar 14 10:00:22 timroes: Schmit said they would probably eventually merge a few years ago Mar 14 10:00:36 that doesn't mean it's off the table, does it? Mar 14 10:00:51 * g00s has no idea Mar 14 10:03:03 does anyone btw know what's about appcompat support lib for actionbar? the last commits are from december, since then trevor john's hasn't commit anything to it. Does someone know if he's still working at it? Mar 14 10:03:07 on* Mar 14 10:03:33 timroes: what is that ? Mar 14 10:03:58 its another support library (like v4, etc.) just to make actionbar backwards compatible Mar 14 10:04:00 there is stuff in the support lib for actionbar that has been previously worked on ? Mar 14 10:04:09 so an google 'official' lib for Actionbarsherlock :) Mar 14 10:04:26 g00s: if you have the android source code: frameworks/support/appcompat Mar 14 10:04:48 timroes: thx, i'll have to look at that. Mar 14 10:05:01 well … every time around now, before I/O things get slow and boring Mar 14 10:05:06 „I like that there are so many Reader users that it's rocketed to the front page in minutes and crashed every possible replacement's website. Meanwhile, Google's reasoning for shutting the service down: declining usage.” Mar 14 10:05:17 because, after all, google has to have stuff to announce during i/o Mar 14 10:05:51 g00s: that would be ssomething nice to announce :D Mar 14 10:06:09 Good Morning Angels! Mar 14 10:06:21 because it was as far as i remeber announced last year in some tool talk Mar 14 10:06:30 p_l: the only reason i used android was b/c of gmail and reader; now that reader is gone … whats next? gmail? will they make us send messages from G+ ? i'm already looking for alternatives to gmail. glad i'm using FF also :D Mar 14 10:06:33 that they are working on that kind of lib Mar 14 10:07:02 timroes: yeah, they said it was coming soon after the last i/o :) Mar 14 10:07:26 actually i haven't tested it yet, perhaps its already finished :D Mar 14 10:07:33 at least there is a lot of code in this repository :D Mar 14 10:07:34 ha! Mar 14 10:07:38 i should just test if it already works Mar 14 10:07:55 and the last commits have solely been code cleanup and formating Mar 14 10:08:01 i think they should just put the whole OS in the app compat lib XD Mar 14 10:08:11 lol Mar 14 10:08:55 so what's on the table this morning? Mar 14 10:09:10 okay a grep for todo over that repository let me thinks its not quite finished yet :D Mar 14 10:09:40 :( Mar 14 10:09:51 well, not surprising - we would have heard something Mar 14 10:10:29 who wants to take bets : iosched this year uses app compat lib or abs ? :) Mar 14 10:10:59 what did it use last year? Mar 14 10:11:04 abs Mar 14 10:11:29 maybe this year they just don't support Ginger and down Mar 14 10:11:42 the attendees are developers Mar 14 10:11:55 iosched is also a learning tool Mar 14 10:11:56 oh yeah, I forgot about he press Mar 14 10:12:04 /he/the Mar 14 10:12:19 sample app that works on all devices and screen sizes Mar 14 10:14:14 has anyone in here used Twitter4j? I've got a little question about it Mar 14 10:26:33 Does adt include an option to clear all cached info for your app and then reinstall and run it? Mar 14 10:26:45 (when running on a handset) Mar 14 10:27:06 hi guys, where could I use .getWidth() on a widget normally? in my code http://codepad.org/7rvEohXL it always outputs 0... Mar 14 10:28:02 hey guys, another question. So I pass a file uri to an intent with key EXTRA_OUTPUT, launch the camera, and onActivityResult, the data /intent is null. why is this so? Mar 14 10:28:04 Ankhwatcher: good question... shout out if you find out Mar 14 10:37:41 hello, i am in the process of using google android api on my webserver to request status for a subscription. how does authentication work? does every user have to grant access for the webserver through refresh token?? Mar 14 10:38:42 i'm running into https://code.google.com/p/android/issues/detail?id=12955#c12 is it possible to replace javax.crypto.Cipher at runtime somehow? Mar 14 10:45:14 msch: no Mar 14 10:45:26 also, note the last responses in the comments Mar 14 10:46:46 p_l: thanks for your answer. horrible. google IO should be renamed google FU Mar 14 10:46:56 +1 Mar 14 10:49:45 whats even more hilarious is that Google Developer's latest post is about scalability tips :') Mar 14 10:57:43 Chainfire: Google still got issues when it interacts with non-virtual world ;) Mar 14 10:59:25 Does the export signed function automatically supress debug log events? Mar 14 11:00:01 Google FU shoudl be the name of our splinter conference Mar 14 11:00:11 s/shoudl/should Mar 14 11:00:32 It could stand for Fragmented Universe Mar 14 11:05:30 does anyone know if i can access the subscription status for my users with a browser key or do i really need every user to grant this access with an access token? Mar 14 11:07:34 Ankhwatcher Log.d is stripped I believe, but still compiled in. As such, I usually use a wrapper myself checking BuildConfig.DEBUG, this should prevent the expensive operation of creating all those debug strings ... Mar 14 11:07:41 I'm not sure if it makes any real-world difference, though Mar 14 11:09:14 Chainfire: I had an app idea for you, no idea if it's possible Mar 14 11:09:30 search play and could not find anything Mar 14 11:09:46 security/permissions visual mapper Mar 14 11:09:55 centric to the permission rather than the app Mar 14 11:10:05 Chainfire: cool, thanks for the info Mar 14 11:10:14 since if centric to app you can just look in settings>apps Mar 14 11:10:27 Ankhwatcher hmm, it seems other people are reporting (from Googling) that log.d calls do get executed in an exported app, even though the docs say they do not Mar 14 11:10:35 I'm going to need to test this. Mar 14 11:10:52 StingRay_ yes that would be possible Mar 14 11:10:57 not sure how useful ;) Mar 14 11:11:00 Chainfire: could they be talking about an older version of Android/adt? Mar 14 11:11:36 I'm not sure Mar 14 11:11:55 this stackoverflow page mentions that the assumption that log.d is not called is flawed: http://stackoverflow.com/questions/4958860/should-i-comment-my-log-calls-when-creating-my-final-package Mar 14 11:12:10 "This made my check my assumption that the log.d lines in the code would somehow not appear on a signed release apk without the debuggable flag set in the manifest, I was wrong, they still appear." Mar 14 11:12:42 while the Android docs ( http://developer.android.com/reference/android/util/Log.html ) clearly state "Debug logs are compiled in but stripped at runtime" Mar 14 11:12:59 implying that log.d calls are stripped Mar 14 11:14:19 a good solution mentioned as well is having ProGuard strip out Log.d and Log.v calls. But I still prefer my own method of having my own Debug class in every project, with a log method, that simply drops if BuildConfig.DEBUG == false Mar 14 11:20:16 (though please beware that BuildConfig.DEBUG has issues with same ADT/Eclipse versions/setup combinations, and it may not be correctly set to false in libraries when exporting an app that uses said libraries, so be sure to doublecheck your APK) Mar 14 11:21:26 Chainfire: you mean like this: http://stackoverflow.com/questions/2446248/remove-all-debug-logging-calls-before-publishing-are-there-tools-to-do-this Mar 14 11:23:06 those are some valid ways of doing it, yes. Though they all depend on manually switching debugging on/off Mar 14 11:23:12 BuildConfig.DEBUG is set automatically by the compiler Mar 14 11:24:00 Chainfire: sorry, I meant this: http://stackoverflow.com/a/2466662 Mar 14 11:24:45 oh yeah, thats the proguard way Mar 14 11:24:51 I've never used that one, but it looks clever Mar 14 11:24:56 probably does what you want as well Mar 14 11:25:14 I've never used proguard before, I've just enabled it there Mar 14 11:25:32 yeah you should use it if possible Mar 14 11:25:48 now the problem is that this project was never meant to be released and it doesn't have a key to sign with Mar 14 11:25:49 obfuscation and optimization, for free. Mar 14 11:26:09 I knew about hte obfuscation, I didn't know it optimized also Mar 14 11:26:15 s/hte/the Mar 14 11:26:17 StingRay_: something like this? https://play.google.com/store/apps/details?id=com.PermissioDog Mar 14 11:26:47 StingRay_: or this: https://play.google.com/store/apps/details?id=com.a0soft.gphone.aSpotCat Mar 14 11:27:43 Quacked: I think he meant things with root permission, given the context. Mar 14 11:28:10 sorry, there was too much context Mar 14 11:28:11 ;) Mar 14 11:29:15 let me just pass you ConversationUpToNow, this Mar 14 11:31:51 Chainfire: how do you change the Java code (to be "compiled") based on some external variable? Mar 14 11:33:44 mmc> I assume you're referring to BuildConfig.DEBUG ? It's set by the compiler itself. It's true on normal builds, false on experted builds Mar 14 11:34:08 if (BuildConfig.DEBUG) log.d("I'm in debugging mode!"); Mar 14 11:34:16 will output nothing in an exported APK Mar 14 11:35:22 if you're referring to the ProGuard method, ProGuard isn't run on debug builds, only on exported builds, so ... Mar 14 11:35:56 but the (compiled java code /.dex ) will contain the same instructions, no matter how you set the env. variable during the build. Mar 14 11:36:19 you don't set it Mar 14 11:36:32 it will not contain the same instructions Mar 14 11:36:52 the ADT generates the BuildConfig.java file before the compiling stage Mar 14 11:37:01 as such stuff dependent on that variable will be optimized out Mar 14 11:37:05 and you get a different .dex Mar 14 11:38:23 BuildConfig.DEBUG is not a variable ... it's a constant. As such, it leads to dead code, and dead code can be easily removed by the compiler and/or proguard Mar 14 11:38:35 ok Mar 14 11:39:56 if you want to see it yourself, it's put into /gen//BuildConfig.java Mar 14 11:40:24 ah, but that's for apps, not for the platform code itself Mar 14 11:40:42 yes indwws Mar 14 11:40:45 *indeed Mar 14 11:43:11 I'm not sure how you figured this would be for platform ... but the platform itself could detect if an APK is debug signed or not if it wanted to, I guess Mar 14 11:47:12 so i did some research.. and it looks like i can not query the status of a subscription from my server without having the end-user opening a link every time?? rly google?? Mar 14 11:49:41 developer.android.com says: Settings is given low prominence in the UI because it's not frequently needed. Even if there's room in the action bar, never make Settings an action button. Always keep it in the action overflow and label it "Settings". Place it below all other items except "Help". Mar 14 11:50:03 "never make Settings an action button", why? Mar 14 11:50:24 because it's not frequently needed? Mar 14 11:50:42 it depends of course on the complexity of what you're building, but the general feeling is that things should "just work" without the user having to modify any settings Mar 14 11:50:55 and if they do, then you should have some setup wizard or something Mar 14 11:51:19 Oh like that Mar 14 11:51:44 Thank you guys Mar 14 11:53:49 (and of course, for the power user, having it always in the overflow, and always below everything except help, makes it a single spot that as easy to find for those who want to find it) Mar 14 12:11:25 CF ftw! Mar 14 12:11:58 ct wfc Mar 14 12:43:41 hi, can anyone help me with an full screen app 'problem'? Mar 14 12:43:56 i wanna add the tab slide navigation, how to do it? Mar 14 12:46:33 why is that a full screen app problem Mar 14 12:46:38 and not just a general app problem Mar 14 12:46:59 and im not sure what you mean by tab slide nav, do you have a picture or example app Mar 14 12:47:59 it is not really a roblem Mar 14 12:48:07 but i don't know how to do it Mar 14 12:48:08 :(( Mar 14 12:48:18 but does it have anything to do with being fullscreen Mar 14 12:48:55 i don't know, i'm a beginner on android dev Mar 14 12:48:57 :) Mar 14 12:49:06 i wann ask you how to do it? Mar 14 12:55:47 i'm still not entirely sure what you want Mar 14 12:55:58 can you show me an app that does what you want Mar 14 12:58:54 Can I override the setWhen sorting of notifications? I have a few notifications showing alarms, but the alarm that will go off soonest is at the bottom. Mar 14 12:59:54 Quacked: you can setWhen to whatever you want Mar 14 13:00:19 Yeah, I know, but I want it to show the time when the alarm goes off Mar 14 13:00:24 Like it does Mar 14 13:00:35 Hi :) Mar 14 13:01:04 How can i play youtube in my own activity(without using external player) Mar 14 13:01:21 Quacked: then no, notifications are sorted on when Mar 14 13:01:31 hetii find the url and use MediaPlayer Mar 14 13:01:36 I would really just want them to be in opposite order Mar 14 13:01:38 url being the stream url Mar 14 13:01:52 so setWhen at 14:05 would be on top and 14:10 underneath Mar 14 13:02:31 appel1: I think the current sorting only makes sense if setWhen "has already been" Mar 14 13:02:40 not for future stuff :) Mar 14 13:03:20 xorgate: i try this: http://eugeneciurana.com/pastebin/pastebin.php?show=45775 but it seams that Youtube api was changed and i`m not sure if its possible still to use get_video Mar 14 13:03:29 Quacked: it is oldest on top for me, so 14:05 is over 14:10? or am I missunderstanding. Mar 14 13:03:58 i got url like : http://www.youtube.com/get_video?video_id=7U9f1Rrhz9w&t=vjVQa1PpcFO5eMU0ZL_RzW5E06MDK5KpO1J4maSLobg%3D&fmt=18 Mar 14 13:04:11 but its not valid Mar 14 13:04:25 hetti dude! use xml Mar 14 13:04:38 xml for what ? Mar 14 13:04:39 So uh, I have something like a "table of contents" button that summons a menu with said TOC and every element can have subelements, including other subelements (deeper than one level, for sure), what's generally the best way to handle this? Can any of the ***Menu classes handle this properly or does it look like something for a custom ListView thingie? Mar 14 13:04:43 the layout Mar 14 13:04:50 hey all Mar 14 13:05:07 morning Mar 14 13:05:11 appel1: time is now 14:05 here, the notification on top shows 17:24 and at the bottom 14:08 Mar 14 13:05:19 when taking photos and saving it on SD card, how do you get the image back? The intent returned from activity is null... Mar 14 13:05:35 i read that i should take the file from the file uri? Mar 14 13:05:37 i mean the image Mar 14 13:06:06 appel1: so instead of showing the notification that will end soonest on top, its at the bottom Mar 14 13:06:21 (So basically I need menu with submenus within submenus) Mar 14 13:06:47 xorgate: i`m not an author of this code, i just update it from deprecated warnings but as we can see additional work is still required to have it valid Mar 14 13:07:17 appel1: like this: http://bildr.no/image/1414852.jpeg Mar 14 13:07:41 now the point is to have proper calculateYouTubeUrl() Mar 14 13:09:57 I'm getting E/AndroidRuntime(286): Caused by: java.io.FileNotFoundException: res/drawable-hdpi/divider_horizontal_bright_opaque.9.png when I try to run my application on AVD's for 2.1, 2.2 or 2.3 Mar 14 13:10:05 shouldn't that file be there? Mar 14 13:11:50 replace .9 by _9 maybe Mar 14 13:17:32 Kighten: I'm not calling it, it's being called by a LayoutInflater Mar 14 13:19:11 This is the full error: http://pastebin.com/z0sk88cG Mar 14 13:19:58 Quacked: odd, I get the same as you in the emulator.. a bit strange if the sort order is different when when is in the future Mar 14 13:20:01 Ankhwatcher: well, that's neat. clean and rebuid. Mar 14 13:20:20 what's really neat is "from drawable resource ID #0x0" Mar 14 13:20:45 i always get that when i put in 0 as a placeholder Mar 14 13:21:59 appel1: indeed Mar 14 13:23:21 da,mnit missing out on the samsung s4 event Mar 14 13:28:21 lov: that didn't do it, could this be some problem pushing the ABS library over to the AVD? Mar 14 13:29:37 What do these Xs mean? http://picpaste.com/MSoOBnhv.png Mar 14 13:30:22 It means that the ADT thinks that those targets aren't compatible with your API level. Mar 14 13:31:55 res/drawable-hdpi/divider_horizontal_bright_opaque.9.png Mar 14 13:32:01 so that drawable is there? Mar 14 13:32:59 I am an android newbie. Never tried to compile it from source Mar 14 13:33:02 https://code.google.com/p/android-section-list/issues/detail?id=2 does this have anything to do with your code? Mar 14 13:33:11 good, noobs shouldnt do that Mar 14 13:33:22 I'm looking at a tutorial http://sourceforge.net/projects/razr-i.motorola/files/razr-i/9.8.2I-50_SMI-28/ (down) Mar 14 13:33:37 "Create a workspace containing "vanilla" Jelly Bean release from Google." - what's this supposed to mean? Mar 14 13:33:42 * lov sighs Mar 14 13:33:45 ivali: source.android.com Mar 14 13:33:51 ivali: you PROBABLY want to go to #android-root Mar 14 13:34:16 dammit, i just keep gettind forwarded to other android channels Mar 14 13:34:47 well, -dev is generally for app development. While it's nominally for frameworks level stuff too, that's very rare, so we tend to forward people to -root or cyanogenmoddev or such Mar 14 13:35:02 ivali: try #linux Mar 14 13:35:20 I know how to compile linux. It's just make Mar 14 13:35:23 ##linux is the lifeblood of this network, they will help you Mar 14 13:35:28 and if it's a make question go to #C Mar 14 13:35:37 it's not a #linux question Mar 14 13:36:41 ivali: ignoring the trolls, do try #android-root. There's #android-platform but it's mostly dead. Mar 14 13:36:44 It is possible to have some animation on Activity ? Mar 14 13:37:13 lov, thanks Mar 14 13:37:23 hetii, http://stackoverflow.com/questions/2625812/start-activity-with-an-animation Mar 14 13:37:35 hetii: probably. Mar 14 13:37:46 hetii, i've done it several times, works well Mar 14 13:39:07 but this will animate whole activity ? What i need is a simple animation from some jpeg that will be moved from left to right Mar 14 13:39:52 What do you fellas think of those flip switch buttons? Mar 14 13:40:26 and lov, i'm not sure if you were referring to me, but freenode itself was started from a #linux chan ;p Mar 14 13:40:36 freenode is literally built around linux geeks Mar 14 13:41:08 kaneda^: wasnt it openbsd? Mar 14 13:41:14 nope, #linux Mar 14 13:41:18 boytoy_: they are terrible Mar 14 13:41:21 oh ok Mar 14 13:41:27 mikedg: hehe Mar 14 13:41:27 almost as bad as toggle buttons Mar 14 13:41:51 wait arent flip switch buttons and toggle buttons the same thing? Mar 14 13:42:38 kaneda^: yeah, no shit. Mar 14 13:42:47 i suppose should read about http://developer.android.com/training/animation/cardflip.html Mar 14 13:42:48 lov, baby dont hurt me Mar 14 13:42:49 close Mar 14 13:46:37 flip switches give a marginally better indicator of whats going on Mar 14 13:46:41 they are still confusing as hell Mar 14 13:46:54 in their current form on android Mar 14 13:47:08 i totally agree Mar 14 13:47:38 first time i saw them i was like what? is this thing on? am i suppose to touch it? what the hell? Mar 14 13:48:03 reckon better stick with radios and checkboxes Mar 14 13:54:34 where could i get the correct width/height of a view? this code http://codepad.org/7rvEohXL always outputs 0 Mar 14 13:57:04 Im building a custom device for a Jeep. PandaboardES + touchscreen. Android 4.2.2 (linaro). I get the Navigation Bar but its missing the Home, Back etc buttons, just a blank, black bar. Mar 14 13:57:26 Anyone know how to enable these? Mar 14 13:58:18 the view size is always 0 at that point Mar 14 13:59:10 lov: Why would it say that those devices are incompatible when my MinSDK is 7? Mar 14 13:59:43 Ankhwatcher: because your target is the Google Apis Mar 14 13:59:52 which isn't strictly an api level so to speak and I guess the ADT is dumb about it Mar 14 14:01:02 ah Mar 14 14:01:03 yes Mar 14 14:01:04 thanks Mar 14 14:02:23 Still getting that missing .png though. Mar 14 14:08:58 min sdk 16 is recommended Mar 14 14:13:53 How do you get symbols like stars in play store description for your app? Mar 14 14:14:05 Just * ? Mar 14 14:14:20 Quacked: i guess its just the utf8 sign? Mar 14 14:14:40 Hi, How to send log:main to a specific device connect to my adb server? Mar 14 14:14:48 Should I use "host:transport:"? Mar 14 14:14:53 SERVICES.TXT says "every client request will be sent directly to the adbd daemon running on the device" Mar 14 14:15:09 timroes: ok Mar 14 14:15:13 Quacked: ★ Mar 14 14:15:18 java's default is utf16 Mar 14 14:15:18 adbd accept the same commands adb server does? Mar 14 14:15:27 timroes, got it :) Mar 14 14:15:31 from what i've seen the FS default is UTF8 though Mar 14 14:16:40 I've written simple camera app, but not getting why I'm getting wrong surface width? Check comment at line#37, I expect 1200 (ref link: http://bpaste.net/show/J9Nv36p9rSamLGBLQtxP/) Mar 14 14:18:03 abhinavmehta, did you request the list of allowed width/height from the camera params, or did you just request one? Mar 14 14:18:54 kaneda^: I did that way too…but here for reading convince I removed those lines and assuming first value in that list will set.. Mar 14 14:19:08 and BTW that first value is 1200 x 720 Mar 14 14:19:21 if you're setting it FROM the list of allowed values then it SHOULD be setting that as the params once you say camera.setParams(newParams) Mar 14 14:19:22 for my hardware (eg. Nexus) Mar 14 14:19:38 correct, but it doesn't.. Mar 14 14:20:03 abhinavmehta, and are you requesting the window width, the camera width, or the preview frame width ;) Mar 14 14:20:38 kaneda^: In that log statement(eg. line#37) I guess I'm expecting preview width Mar 14 14:21:45 and you're doing something like: int width = c.getParameters().getPictureSize().width; Mar 14 14:22:04 erm, getPreviewSize(), sorry Mar 14 14:22:06 nope Mar 14 14:22:44 kaneda^: do you looked at my snippet? I'm not doing such. Mar 14 14:22:52 abhinavmehta, i'm at work, sorry Mar 14 14:23:00 ohh Mar 14 14:23:22 kaneda^: any other paste bin you comfortable with…because I wrote the bare-bone camera code Mar 14 14:23:49 abhinavmehta, i cant be caught debugging someone else's code, it's a tenuous time for me at work Mar 14 14:23:55 i'm about to leave this job, in other words Mar 14 14:24:01 kaneda^: :) Mar 14 14:24:05 ok ok.. Mar 14 14:24:42 kaneda^: looking at pastebins is out, but irc is ok. Mar 14 14:25:00 lov, it's all about perception ;) Mar 14 14:25:19 lov: do you have any inputs to share on subject? Mar 14 14:25:27 should i care about : /dev/pmem: Unmapping buffer base:0x4cd80000 size:4673536 offset:4538368, /dev/pmem: Mapped buffer base:0x4cd80000 size:4538368 offset:4403200 fd:63 messages? Mar 14 14:25:34 hetii: probably not. Mar 14 14:25:39 i have no idea what that is :D Mar 14 14:25:48 abhinavmehta: probably not. Mar 14 14:25:58 ok Mar 14 14:26:01 abhinavmehta, check out: http://imrannazar.com/Augmented-Reality-with-the-Android-NDK%3a-Part-1 Mar 14 14:26:07 it goes over using the camera and then sending data to the NDK Mar 14 14:26:17 i have it often Mar 14 14:26:28 kaneda^: already done reading that one Mar 14 14:26:49 abhinavmehta, that's all i required to get going ;p Mar 14 14:27:07 kaneda^: hmm that covers most of it.. Mar 14 14:27:13 90%, yes Mar 14 14:27:25 it even covers a basic sobel operator Mar 14 14:27:31 hmm Mar 14 14:27:58 i'm sad to leave computer vision :| Mar 14 14:28:41 right now the problem is I'm getting slightly different values for surface-preview dimensions…which I don't expect. Mar 14 14:28:59 for preview width I'm getting 1196 instead of 1200 Mar 14 14:29:51 and if you run imrannazar.com's AR code, you will get same different values.. Mar 14 14:29:59 yes, i see this actaully Mar 14 14:30:17 i'm guessing there's just a 2PX border around the screen Mar 14 14:30:34 i tend to skip the first 4 and last 4 rows/columns or so anyways though Mar 14 14:30:56 kaneda^: guess, thats a random thought you have…I want concretee reason for this Mar 14 14:31:11 abhinavmehta, hmm, i dont know how to prove that, honestly, just a guess Mar 14 14:31:12 kaneda^: I'm doing further computations based on those Mar 14 14:31:26 is the WINDOW size 1200? Mar 14 14:31:31 or is it also 1196? Mar 14 14:31:34 kaneda^: yes Mar 14 14:31:56 if I use window manager and call for width is returns 1200 Mar 14 14:32:18 *is=it Mar 14 14:32:48 abhinavmehta, so that settles it, there's a border on the preview frame Mar 14 14:33:11 kaneda^: but than why same not applies for height? Mar 14 14:33:25 and what if I want to control that border…how can I ? Mar 14 14:33:46 is it correct to see 0 excluded devices in the dev console when my app is built for build 10 and up? Mar 14 14:34:27 abhinavmehta, rotate it, se if it still applies to only the width Mar 14 14:35:09 so far, I fixed orientation to landscape mode…but yeah lets change it and should see it Mar 14 14:35:21 Shoudlnt all the <10 devices be listed as excluded devices when I've uploaded my apk? Mar 14 14:36:38 Is there a standard way to do something on another thread that can return data without being bound in code to the callee? Mar 14 14:37:40 Most of the examples use the onPostExecute() to set a variable or change a control, but do it specifically. I was thinking I could push the information into a stack and let the callee pop it off, but then I'd need to notify the callee their data is ready somehow :/ Mar 14 14:38:21 nevermind :p Mar 14 14:38:30 hey guys whats the song in that IE10 commercial Mar 14 14:38:32 kaneda^: little wired…if I switch to portrait mode it shows 1184 Mar 14 14:38:37 wired Mar 14 14:38:50 mmm Mar 14 14:40:02 in landscape mode: width: 1196, height: 720 Mar 14 14:40:02 in portrait mode: width: 720, height: 1184 Mar 14 14:40:15 abhinavmehta: is that not just he top status bar ? Mar 14 14:40:50 StingRay_: I explicitly said to remove status bar.. (ref link: http://bpaste.net/show/J9Nv36p9rSamLGBLQtxP/) Mar 14 14:41:29 well the figures you have match the 24ish pixel status no ? Mar 14 14:41:51 StingRay_: sorry couldn't get you on last one.. Mar 14 14:42:26 can I find out the reason why a bunch of devices is unsupported under Device compatibility in dev console? Mar 14 14:42:27 1280 - 60 (the bottom soft button stuff) - 24 (status bar) Mar 14 14:42:42 could be wrong Mar 14 14:42:50 it just shows names of the devices Mar 14 14:43:16 StingRay_: if we do that math…even that doesn't lead to justify 1184 or 1196 Mar 14 14:43:47 1196 ok I got, but what you say for 1184 Mar 14 14:43:57 well the status bar moves no ? Mar 14 14:44:05 the soft buttons do not Mar 14 14:44:30 StingRay_: hmmm…very interesting, perfectly make sense now.. Mar 14 14:44:46 well my guesstimates of pixel vals are probably off Mar 14 14:44:49 :) Mar 14 14:44:54 as in 24 and 60 Mar 14 14:45:51 hmm..but thats fine..atleast now gives some clue to fix further. Mar 14 14:46:07 can we control soft buttons visibility ? Mar 14 14:46:29 you can dim them Mar 14 14:46:48 ok Mar 14 14:46:50 dunno about hiding totally Mar 14 14:47:16 abhinavmehta, hiding only during video playback or with root Mar 14 14:47:43 need to hide only at video playback Mar 14 14:50:18 StingRay_: removed status-bar, but still doesn't make any difference Mar 14 14:50:27 *notification-bar Mar 14 14:51:27 did this to hide status bar: http://stackoverflow.com/a/14794359 Mar 14 14:53:00 I just hit the publish button on my first app.. Mar 14 14:53:00 still am I missing something? Mar 14 14:53:05 my life suddenly feels so empty Mar 14 14:53:05 :P Mar 14 14:54:00 abhinavmehta, you want to know why the dimensions don't equal? Mar 14 14:54:10 yep Mar 14 14:54:27 the height of the soft buttons bar isn't same in landscape and portrait Mar 14 14:54:35 I want to understand why Mar 14 14:54:37 in landscape mode: width: 1196, height: 720 Mar 14 14:54:47 in portrait mode: width: 720, height: 1184 Mar 14 14:55:21 even after removing status/notification bar, title/menu bar Mar 14 14:56:11 yeah..now it make sense Mar 14 14:56:20 so it's the soft buttons! Mar 14 14:56:22 yes there is a difference! Mar 14 14:56:33 kaneda^: hmm Mar 14 14:56:59 icons in soft buttons flip from portrait to landscape Mar 14 14:57:10 *in=of Mar 14 14:57:37 thank you EPG :) Mar 14 14:58:07 nvm :) Mar 14 14:58:23 and also thank you StingRay_ kaneda^ for sharing kind inputs. :) Mar 14 14:58:29 np Mar 14 14:58:56 yw Mar 14 14:59:11 guys i like you guys a lot Mar 14 14:59:28 so im gonna give you the chance buy my google io ticket in an auction Mar 14 14:59:33 bidding starts at $1800 Mar 14 14:59:34 go Mar 14 14:59:36 mikedg, 40 cents! Mar 14 14:59:44 40 pence Mar 14 14:59:48 mikedg: 41 cents LoL Mar 14 14:59:48 mikedg, oohooh, 35 cents! Mar 14 14:59:50 $1800.40 do I hear $1800.50? Mar 14 14:59:59 you hear $0.40 Mar 14 15:00:00 lol Mar 14 15:00:22 * kaneda^ uses jedi mind tricks on mikedg Mar 14 15:01:52 is therea any replacement for Toast that will work (display the toast) even if there is no activity visible, for example if shown from a Service ? Mar 14 15:02:21 bubbleguuum: you can't display a toast from a service? Mar 14 15:03:06 Ge0rG: nope Mar 14 15:03:11 bubbleguuum: start an activity themed as a dialog. Mar 14 15:03:20 bubbleguuum: alternately, just use a Notification. Mar 14 15:03:22 lov: when did that change? Mar 14 15:03:28 I can but regular Toast are hidden if a user disable notifications (in the app's settings where you can clear data etc), and I need some toast to be shown even if the user disabled notifications this way. Mar 14 15:03:45 bubbleguuum: if the user disabled it, you were spamming him? Mar 14 15:03:52 hrm, my app messages stopped appearing in logcat suddenly Mar 14 15:03:55 Ge0rG: Oh, could you do that? Hmm, maybe I'm wrong. Regardless, toast is really only suitable for things you're ok with the user missing. Mar 14 15:04:33 lov: sure, but I have two apps showing toasts from a service, and I had no problem besides when the screen is locked on htc sense devices Mar 14 15:04:40 no I'm not spamming it. I make an app where it is legitimate for the user to want to hide notification (in the notification area) but I still need to be able to show some important Toast like messages Mar 14 15:04:51 kaneda^: you upgraded to android 4.1? Mar 14 15:05:05 Ge0rG, 4.2 actually Mar 14 15:05:11 bubbleguuum: make a preference for the user to stop notifications, but keep the toast Mar 14 15:05:20 kaneda^: they broke logcat, because security!111!! Mar 14 15:05:25 Ge0rG, just restarted adt eclipse, worksf ine now Mar 14 15:05:28 bubbleguuum: in that way the user wont have to stop notifications where you clear data etc Mar 14 15:05:35 worst comes to worst i restart the adb server Mar 14 15:06:15 Hey all... Mar 14 15:06:31 tbh, I didnt even know it was possible to stop notifications in app info Mar 14 15:06:34 morning Lachezar Mar 14 15:06:47 * Quacked has now stopped notifications from subway surfers Mar 14 15:06:49 What does 'GC_EXTERNAL_ALLOC freed <1K ...' mean? Why do I get 10-20 of those per second? Mar 14 15:06:59 Quacked: my app runs a foreground service, so a notification is always required. The only way to hide it is for the user to "hide notification" in the Android settings for that app which is fine. But this will also hide all toast and I need to display some important toast sometimes Mar 14 15:07:11 Lachezar, it's freeing memory with the garbage collector Mar 14 15:07:18 11:05:27 < Ge0rG> kaneda^: they broke logcat, because security!111!! Mar 14 15:07:21 you see it because it has to balance a lot of memory requirements simultaneously Mar 14 15:07:24 bubbleguuum: wont hiding it like that stop foreground? Mar 14 15:07:33 Ge0rG: to be fair, the continuing refusal of the OEMs to give any sort of shits about what they're logging pretty much forced this. Mar 14 15:07:51 kaneda^: Figured that much, but 10-20 times per second? 26-36ms pause... That's... Ridiculous... Mar 14 15:08:05 bubbleguuum: you could make the foreground opt-outable Mar 14 15:08:07 Lachezar, it's usually 10-20 times in a short period, then a short break, then GC again Mar 14 15:08:12 Quaked: nope, it is purely visual Mar 14 15:08:15 Lachezar, but it depends waht you're doing, obviously Mar 14 15:08:22 on older android you have a 40MB heap, no more Mar 14 15:08:31 kaneda^: Well... continuously while I scroll a list or a grid... Makes it very laggy. Mar 14 15:08:47 Lachezar, are you using an adaptor or something that lazy renders? Mar 14 15:08:59 bubbleguuum: sounds weird Mar 14 15:09:16 lov: that is well possible, but it made looking into the radio log impossible on non-rooted devices Mar 14 15:09:17 kaneda^: Yes, and no... MyAdapter extends SimpleCursorAdapter. Mar 14 15:09:18 Ge0rG: for proper operation it is required to be a foreground service and Android makes it manadatory to have a notification in that case. Mar 14 15:09:37 bubbleguuum: you can have a background service and hope it won't get killed too often Mar 14 15:09:44 bubbleguuum: even foreground services get killed Mar 14 15:10:02 kaneda^: Admittedly I do not create new views, but constantly change onClick and onLongClick listeners... Mar 14 15:10:04 Ge0rG: whats your experience with foreground services getting killed? Mar 14 15:10:17 Lachezar, it may also be what's running in the background Mar 14 15:10:21 bubbleguuum: what about background service with START_STICKY? Mar 14 15:10:33 Ge0rG: yes, but my app provides background services to other apps and needs to be left running in the background. Mar 14 15:10:33 Lachezar, but the more you create objects that quickly leave scope the more likely GC needs to run Mar 14 15:10:51 Lachezar, the GC is very intelligent, actually, so it's definitely not the fault of the GC itself ;p Mar 14 15:10:53 kaneda^: You pointed me towards something though: I have to hit the DB for most buttons to pull details information. Mar 14 15:11:05 ok, so you have an sqladaptor or something? Mar 14 15:11:09 bubbleguuum: START_STICKY restarts the service when android kills it Mar 14 15:11:46 where can i find the source for the actual implementation of the abstract method PackageManager#getLaunchIntentForPackage? Mar 14 15:11:52 kaneda^: Yes, and then yes. I have anCursorAdaptor, but every grid slice is a few buttons, and for every button I have to hit the DB (again) to pull info from there... Mar 14 15:12:04 Quaked: interesting Mar 14 15:12:18 kaneda^: I hoped it would run... infrequently... Mar 14 15:12:18 Quacked: happens from time to time when OOM is really severe Mar 14 15:12:47 Lachezar, it depends on the amount of data and how you store it Mar 14 15:12:47 Ge0rG: im choosing to ignore what you just said :) Mar 14 15:12:56 Lachezar, if it throws out taht old data immediately then it explains why the GC needs to run Mar 14 15:12:59 bubbleguuum: I did a tiny test though, restarting the service took about 30 seconds Mar 14 15:13:24 Would be great if I could do without a foreground service Mar 14 15:13:33 Quacked: I am seeing issues with yaxim, my jabber client... a user running it on a HTC Dream sometimes experiences severe connection-cycling (>100 reconnects a day) Mar 14 15:13:43 kaneda^: Not much data (a string or two), but yes... For every button (5 of them) for every grid cell. Mar 14 15:13:59 bubbleguuum: can't the other apps just startService when needed? Mar 14 15:14:01 Lachezar, unfortunately strings are one of those things that you cant allocate and reuse Mar 14 15:14:06 kaneda^: Thanks... Now I think I understand the problem... Now to think of a solution... Mar 14 15:14:33 neoakira...how did i not see that before Mar 14 15:14:37 * kaneda^ gets the laser Mar 14 15:14:39 I can't mvn install my android project. Complains about classess which will not be able to reflected upon, because of InnerClasses which will be ignored. (Full debug log : http://pastebin.com/ZZgrHrYy ) As you can see it ends with MojoExecutionException: ANDROID-040-001. Mar 14 15:15:08 Could anyone please be of any assistance ? I'd'like to know where this comes from, wether it's my fault or not. Mar 14 15:15:16 how long does it usually take before app gets published on the play store nowadays? Mar 14 15:15:33 Ge0rG: nope, it is a rooted app that do special things different than what most regular apps do Mar 14 15:15:36 Quacked, i've never waited more than a few hours Mar 14 15:15:47 ok, thanks Mar 14 15:15:52 Quacked, that may not be representative though ;p Mar 14 15:16:08 Quacked: indefinitely if you're making an Ad Blocker :) Mar 14 15:16:38 Lachezar: hehehe Mar 14 15:16:40 Lachezar, wouldnt that require you to modify the hosts file on the phone, if it's an app? Mar 14 15:17:01 kaneda^: hes joking because google removed all adblockers today Mar 14 15:17:07 oh, lol Mar 14 15:17:18 well, it is their bread and butter, who can blame them Mar 14 15:17:19 but yes, those modified the hosts file Mar 14 15:17:28 kaneda^: Using a localhost proxy does the job better than /etc/hosts. Mar 14 15:17:57 kaneda^: And you need not touch protected files. Mar 14 15:18:22 Lachezar: hmm.. but still requires root I suppose? Mar 14 15:18:29 Lachezar, that's true, but yuo need to have the proxy service running continuously, whereas host is just looked at for resolution Mar 14 15:18:44 Parent pom : http://pastebin.com/1nCdgCFx , child pom : http://pastebin.com/6Mv9eLsW . Thanks in advance. Mar 14 15:19:11 ... Mar 14 15:19:17 Quacked: No, no root, but the user has to set up proxy in the browser. Mar 14 15:19:30 Lachezar: ah, now I understand what you meant Mar 14 15:19:36 kaneda^: Yes, but a proxy service is 'thin'. Mar 14 15:19:43 daneo: the actual error is: Mar 14 15:19:43 [INFO] java.lang.IllegalArgumentException: already added: Lorg/codehaus/plexus/component/configurator/AbstractComponentConfigurator; Mar 14 15:19:44 Lachezar: too much hassle, /etc/hosts ftw Mar 14 15:19:48 Lachezar, i dunno, on mobile tehre's no such thing as a free lunch Mar 14 15:19:56 gotta balance memory and cpu requirements carefully Mar 14 15:19:57 daneo: That said, I have no idea how to make maven compiles/installs work. Mar 14 15:19:58 Quacked: I have an HTC Desire HD :( Mar 14 15:20:08 daneo: best of luck! Mar 14 15:20:22 Lachezar: why is that a problem? except it being a bit old Mar 14 15:20:30 i have the htc one x :) Mar 14 15:20:44 and at work i also test on the samsung galaxy 3 Mar 14 15:21:05 s4 being presented soon.. it will be a major fail :( Mar 14 15:21:37 Quacked, we were just discussing the new featuers here in my office and they look interesting Mar 14 15:21:46 hover touch, eye/head tracking, looks very interesting Mar 14 15:21:50 lov: Well, that is indeed correct. But I'm having the same thing you have, I cant figure out where it resides. Mar 14 15:22:01 too bad the new htc one only has two buttons Mar 14 15:22:03 What causes it* Mar 14 15:22:04 kaneda^: My wife has HTC One X (a gift from the colleagues). Made me cry badly when they switched from USB Disk to MTP... Mar 14 15:22:19 Lachezar, i honestly havent noticed a difference Mar 14 15:22:23 Quacked: HTC Desire HD has no (real) working alternative ROMs. Mar 14 15:22:33 kaneda^: eye tracking/scrolling sounds insanely annoying :) Mar 14 15:22:44 kaneda^: I'm using Linux, and it now *SUCKS*. Honestly no more HTC for me. Mar 14 15:22:49 kaneda^: eye tracking is feasible with software -> booooring.. all those apps samsung presents show up in play store a couple weeks later made by someone else :P Mar 14 15:22:56 Lachezar, i'm using it in linux and windows, no problems, seriously Mar 14 15:23:12 Quacked, it's nice when it's built in though, usually runs faster Mar 14 15:23:15 Lachezar: ah, I see Mar 14 15:23:21 kaneda^: Other than adb push/pull what do you use to take the pictures off the phone under Linux? Mar 14 15:23:21 https://gist.github.com/alex-somerville/5162228 < Is this a 'good' way to manage network IO in a non-bound-to-the-specific-activity way? Mar 14 15:23:26 kaneda^: tru dat, if it works well Mar 14 15:23:34 Lachezar, you can still mount the device over USB and take data off? Mar 14 15:23:51 kaneda^: but I heard the chip in s4 would be a problem for future roms like cyanogenmod Mar 14 15:23:53 Lachezar, it hasnt changed Mar 14 15:24:02 Quacked, undoubtedly, but i dont mod my phones Mar 14 15:24:05 kaneda^: Nope... Can't Mar 14 15:24:06 like it apparently is already for s3 Mar 14 15:24:10 Lachezar, i'm doing it right..now.. Mar 14 15:24:17 Lachezar, so i have trouble believing you Mar 14 15:24:24 kaneda^: for instance, I develop for 4.2.2 on my s2 because of cm 10.1 Mar 14 15:24:40 kaneda^: and tbh, cyanogenmod gave me an extra yeart on this phone Mar 14 15:24:48 kaneda^: ?!? Really? What OS version do you have? It was working when my wife got it, but after some OTA update I can only use MTP now. Mar 14 15:24:52 it made it so much faster and nicer :) Mar 14 15:25:01 Lachezar, i'm using windows 7 and ubuntu 12.04 LTS Mar 14 15:25:23 it mounts immediately when i have usb debugging enabled, giving me access to the same app data i had access to before Mar 14 15:25:25 i prefer caulkins rom Mar 14 15:25:25 kaneda^: No, what Android version. Mar 14 15:25:29 fer S2 Mar 14 15:25:31 oh, 4.2 i think Mar 14 15:25:42 konsgn_pi: only ever tried cm :) Mar 14 15:25:52 nope, 4.1.1 Mar 14 15:26:22 kaneda^: nice bonus with custom roms that you can dev for newest android Mar 14 15:26:35 Quacked, that's true, but 60% of android users are still on 2.3.3 Mar 14 15:26:36 kaneda^: Hmmm... I really have to check my wife's phone. But I know I can't mount it... It needs to use fomr mtp-fs, which I don't have :-/ Mar 14 15:26:40 so i develop for 2.3.3+ Mar 14 15:26:57 Lachezar, no way, you just need the drivers Mar 14 15:27:01 kaneda^: yeah, but if you want to tinker with the new features like lock screen widgets Mar 14 15:27:16 Quacked, again, if most of my users are on 2.3.3 there's no reason to do this Mar 14 15:27:20 kaneda^: its more like 40 % btw :P Mar 14 15:27:33 that's possible, it was 60% 3 months ago Mar 14 15:28:18 kaneda^: http://forum.xda-developers.com/showthread.php?t=2055563 That's probably my way. I also noticed (somewhere), that stock android drops USB Drive support in favour of MTP. Mar 14 15:28:26 kaneda^: http://developer.android.com/about/dashboards/index.html Mar 14 15:28:55 Quacked, 44% is still a huge number for something that's 3 years old Mar 14 15:29:31 yeah Mar 14 15:31:54 i got 99 problems with versioning aint one Mar 14 15:39:50 any suggestion for tracking the amount of memory my activity is using? I want to find out if with long runs of my app memory usage increases (mem leaks) Mar 14 15:41:47 there are a few profiling options, search for them. Mar 14 15:42:22 hmm, yes, yuo can profile through DDMS, and there are CPU/GPU tracking options under the advanced settings of the developer settings on the phone Mar 14 15:47:44 Hi, i'm trying to show gstreamer video ouput in Qt using opengl and eglglessink but I don't know what to do to get it working.. Do somebody know how to do it please? Mar 14 15:49:28 ugh i just almost ate a fortune cookie fortune Mar 14 15:49:40 lol Mar 14 15:49:43 hey mike Mar 14 15:49:46 i broke it in half and then put the wrong side in my mouth Mar 14 15:50:02 left hand had half of cookie, right hand had half of cookie + fortune Mar 14 15:50:05 i doubt it would do you any harm Mar 14 15:50:28 I am creating a custom button with a custom label, do you think I should hard code the button text into the image or code it from the layout? Mar 14 15:50:53 mikedg: it's very bad luck if you eat the fortune. Mar 14 15:51:03 platzhirsch: from layout Mar 14 15:51:10 the lucky numbers on the fortune turn into the numbers from lost. Mar 14 15:51:30 loool Mar 14 15:53:10 i'm quitting android development to make tabletop games Mar 14 15:53:20 :| Mar 14 15:54:14 mikedg40k Mar 14 15:54:20 in the grim dark future, there are only trolls Mar 14 15:54:26 lov, lololol Mar 14 15:55:05 mikedg, i was thinking more like "pandemikedg" Mar 14 15:55:12 ba dum tsch Mar 14 15:55:15 lol! Mar 14 15:55:40 and instead of little black cubes you get little black phones Mar 14 15:56:02 iphones, the virus of the mobile maket Mar 14 15:56:03 market Mar 14 15:56:35 mikedg, ps, glad you knew wtf i was talking about, easy to miss that reference Mar 14 15:57:48 at first I thought you were talking about panda's and was confused Mar 14 15:57:53 then I actually read it Mar 14 15:58:01 you have to say it alloud or it fails Mar 14 15:58:39 mikedg, also, did you really pay $1800 to go to IO? Mar 14 15:58:40 yeah Mar 14 15:58:43 no Mar 14 15:58:45 i paid $900 Mar 14 15:58:48 greedy bastid Mar 14 15:58:49 i'm not stupid Mar 14 15:59:06 i dont think i would have sold it for $1800 anyway Mar 14 15:59:11 the reserve was $9999 Mar 14 16:00:27 mikedg, and then there's the airfair, hotel, etc Mar 14 16:00:32 someone would have to pay me to go at this point Mar 14 16:01:58 yeah work is paying for me, hopefuly Mar 14 16:02:14 although it may be worth $3000 to hang out with canadian cow Mar 14 16:02:19 yah, i dont awnt to talk about work, considering this is probably my last week here :| Mar 14 16:02:35 mikedg: did canadian cow get a ticket? Mar 14 16:02:51 no Mar 14 16:03:15 mikedg: i think your about the only one this year to get a ticket out of our gruop Mar 14 16:03:19 *group Mar 14 16:03:25 yeah Mar 14 16:03:31 this isnt right Mar 14 16:03:36 something must be done Mar 14 16:03:37 i only know one other person in real life that got a ticket Mar 14 16:07:31 is it possible to create a "dropdown view" like the system tray's one (the one you drop down and you see the notifications) dropping down, for example, another layout like a label or a menu? Mar 14 16:14:42 elegos: possible I think Mar 14 16:15:04 but you don't mean override the notification one right ? Mar 14 16:15:21 StingRay_: no, my idea is to create a custom "about" view Mar 14 16:15:43 i.e. sliding down the app name at the top or similar, without the need of an ugly "About" option anywere Mar 14 16:17:43 I'm actually playing with the "SlidingMenu" demo app, but it seems to be only a left-to-right menu Mar 14 16:18:26 elegos: you mean simonVT ? Mar 14 16:18:27 doesn't sound very easy to use, user is just as likely to pull down the notification bar.. Mar 14 16:18:51 StingRay_: no, jfeinstein10 one: https://github.com/jfeinstein10/SlidingMenu Mar 14 16:19:01 or rather elegos try SimonVT slidingDrawer Mar 14 16:19:16 An about view doesn't sounds very important, you should hide it away in settings Mar 14 16:20:10 SimonVT: I don't want any kind of menu, that's the point :P Mar 14 16:20:55 btw SimonVT: this one? https://github.com/SimonVT/android-menudrawer Mar 14 16:21:03 Yep Mar 14 16:21:08 can someone tell me if I am setting the list adapter in the wrong place? i keep getting a nullpointer exception http://pastebin.com/3fBQrrXX Mar 14 16:21:24 SimonVT: thanks :) Mar 14 16:21:56 SimonVT: actually any way to alter slide duration ? cause if it matches the moment of a list change in main view, it appears to have a sorting issue Mar 14 16:22:28 not sure that anything to do with the lib, but can be annoying (maybe an android thing) Mar 14 16:22:41 Sorting issue? oO Mar 14 16:22:53 And no, can't change the duration atm Mar 14 16:22:56 as in your drawer is behind Mar 14 16:23:10 but for a frame or 2 when closing/closed it isn't Mar 14 16:23:35 I'm not sure that makes sense to me Mar 14 16:24:08 I don't re-order the menu and content Mar 14 16:25:32 your drawer is open > item selected in the drawer > trigger the close with anim true, > at the point of it finishing closing if the list view (in the main view) is triggered to redraw, tis like a ghost buffer of the draw appearing for a few frames Mar 14 16:26:01 so the drawer appears in-front-of for a few frames Mar 14 16:26:16 like I said, I think it's an android prob Mar 14 16:26:28 Did you give the content a background? Mar 14 16:26:41 yeah, always Mar 14 16:27:02 static bg that does not change for the entire life of the activity Mar 14 16:28:05 does happen if I delay the list refresh until it's fully closed for a few frames Mar 14 16:28:16 hence if I could speed up the close, would be great Mar 14 16:28:17 :) Mar 14 16:28:43 doesn't * Mar 14 16:29:47 You could not update the listview while the drawer is open Mar 14 16:30:02 well there is a stutter if it's closing Mar 14 16:30:19 so my pref would be close it quickly Mar 14 16:30:26 There's stutter if you draw stuff while it's closing Mar 14 16:30:42 yeah, the list view items are quite visual Mar 14 16:31:00 image loads, icons etc Mar 14 16:31:09 changes in visual states Mar 14 16:31:38 If you invalidate your views while the drawer is animating, it negates the point of hardware layers (which is that the views don't have to redraw themselves each frame) Mar 14 16:31:45 Performance might actually be worse Mar 14 16:32:10 no i don't now Mar 14 16:32:21 I wait till it's closed Mar 14 16:32:37 but would just be good to close it quicker :) Mar 14 16:33:28 I'm confused over why AsyncTask.doInBackground() takes variadic parameters? Mar 14 16:33:38 (The API page offers no real explanation) Mar 14 16:34:56 vesicant: hm? it seems to offer an explanation here Mar 14 16:34:57 hey Mar 14 16:35:09 vesicant: namely, that those are the parameters that were given to execute() Mar 14 16:35:43 I tried running super.apk Mar 14 16:35:44 how im suppose to install a flashable root packagE? Mar 14 16:35:53 By going to #android-root Mar 14 16:35:56 it says text, audio, image when i try to open it Mar 14 16:36:42 zinx: Yes, but why? What can I do with multiple of X? I suppose I could spawn more threads to deal with all the elements, but then I'd probably have written it to accept an array of work objects? o.o Mar 14 16:37:33 vesicant: uhm, it's up to you what parameters you pass or have a need for, and what you can do with them. Mar 14 16:37:55 simon, been there done that Mar 14 16:39:29 Tough luck, you're in the wrong channel Mar 14 16:40:19 boooo Mar 14 16:40:59 trying to root my Samsung Galaxy S (model number: SCH-I500) Hardware version: I500.04, Firmware Version: 2.3.6, Build Number SCH-I500.FE29)., how do i execute a flashable package? Mar 14 16:41:04 sorry wrong chan Mar 14 16:41:09 tough shit Mar 14 16:45:14 Oh god, did they change the font on the docs? Mar 14 16:45:23 Or are my eyes deceiving me? Mar 14 16:47:05 I can't see a difference Mar 14 16:47:11 What's the easiest way to convert a stand alone app into an activity in another app? Mar 14 16:48:07 Bleeptech: startActivity(Intent) Mar 14 16:48:13 hmmm, what's the best way to check if an event happened "today" on a device? record the day/month/year of the previous event and compare? i don't want to run into weird time-zone issues Mar 14 16:48:42 what they *have* changed the font on is mobile search Mar 14 16:48:59 RobinB: events are going to happen according to the devices time Mar 14 16:49:22 birbeck: That's what I thoought.. But I can't find a good example of how to do it. Mar 14 16:50:30 Unfortunately everything wants to go to the Fragment model for the new api's and I need to handle down to api 8/9? Mar 14 16:51:39 Leeds: I think I just hit control minus by accident and the font looked weird... Mar 14 16:51:46 Bleeptech: v4 support Mar 14 16:51:47 There are Fragments back to api4 by using the support library Mar 14 16:52:02 The Fragment docs even tell you this Mar 14 16:52:03 Anyone know how you make those fancy sliding menus like Falcon/Plume/G+ etc Mar 14 16:52:22 Ankhwatcher: slidingmenu… also SimonVT wrote a nice lib for it Mar 14 16:54:05 hwrd|work: :) Mar 14 16:55:25 leeds, can you help pls Mar 14 16:55:39 ztir: abso-bloody-lutely not Mar 14 16:55:41 im trying to open a superuser.apk Mar 14 16:55:52 it says text, image, sound when i open it wtf? Mar 14 16:55:55 ztir: have you asked on xda? Mar 14 16:56:22 yeah Mar 14 16:56:39 ive been asking for over a month Mar 14 16:56:47 ztir: go to #android-root Mar 14 16:56:56 and no on in android root hasnt said a word in days Mar 14 16:56:56 ztir: they'll be friendlier and more helpful. Mar 14 16:57:02 ok, let me rephrase; Mar 14 16:57:10 been there, done that Mar 14 16:57:12 #android-dev is a channel for app developers Mar 14 16:57:16 ok Mar 14 16:57:16 it is not a support channel Mar 14 16:57:20 i never knew Mar 14 16:57:30 -.- Mar 14 16:57:31 fuck it Mar 14 16:57:39 :> Mar 14 16:57:55 frankly if you can't figure out how to root your phone, you shouldn't have a rooted phone. Mar 14 16:58:22 figure out? For the most part you just follow a few simple instructions Mar 14 16:58:37 does a layout file for a list item (to be used in a list adapter) have to have a Layout root element? Mar 14 16:58:37 exactly. Mar 14 16:59:16 in his case he's got an obscure variant device for an obscure regional CDMA carrier, so it's not *quite* that easy... but still Mar 14 17:00:27 hah, cdma is it's own penance Mar 14 17:05:10 hwrd|work: is this what you meant? https://github.com/jfeinstein10/SlidingMenu Mar 14 17:05:31 Ankhwatcher: Yeah. Also https://github.com/SimonVT/android-menudrawer Mar 14 17:06:49 SimonVT: is your one way better in every way? Mar 14 17:07:37 haha lov were you charging up a /kick up there with the +o? Mar 14 17:08:02 No, it has less features and a horrible dev that hardly ever listens to his users (cus they're wrong) :p Mar 14 17:08:34 But other than that, better in every way Mar 14 17:08:50 SimonVT: do the maintainers know about ActionBarSherlock, how well do the two work together?* Mar 14 17:09:14 I hear the author of ActionBarSherlock is stunningly handsome Mar 14 17:09:20 like... male model Mar 14 17:09:28 <.< Mar 14 17:09:42 really? I heard he was stunningly postable like a mail model Mar 14 17:10:10 Yeah, I heard about ActionBarSherlock Mar 14 17:10:20 Works fine with it Mar 14 17:10:56 Hi All! I'm saving the session cookies into the CookieManager, so the WebView don't redirect to the login. Everything works if I login to a sever with IP BUT if the server has a domain name, the Webview redirects me to the login page. Any ideas? Please Mar 14 17:11:08 *I saw that JakeWharton made the latest commit (ie I'm taking the piss) Mar 14 17:11:19 I know ;s Mar 14 17:11:25 pisssssss Mar 14 17:13:21 oh sorry, were we purposely not saying JW's nick? Mar 14 17:13:51 * Ankhwatcher accidentally summoned he who must not be pinged... Mar 14 17:14:20 If you say JakeWharton three times into a mirror he will appear and kill you Mar 14 17:14:25 I have no idea what's going on. I just saw the last word in your sentence was piss Mar 14 17:14:26 i think he's pinged every time you say abs or actionbarsherlock Mar 14 17:14:34 *ping* ;-) Mar 14 17:14:39 ack Mar 14 17:14:43 no, wait Mar 14 17:14:44 pong Mar 14 17:14:47 lol Mar 14 17:14:49 I think also "Jake" and "Jake Wharton" Mar 14 17:14:53 pong 12564383456 Mar 14 17:14:54 If anyone's keeping a list Mar 14 17:15:06 how about Jackie? Mar 14 17:15:15 hmm Mar 14 17:15:32 Not sure Mar 14 17:15:51 basically any library name, my name, names of my lovers, etc. Mar 14 17:16:06 String[] pingJakeWharton = { "abs", "ActionBarSherlock", "JakeWharton", "Jake Wharton", "Jake", "Square" }; Mar 14 17:16:22 oh, add jessica alba to that list Mar 14 17:16:30 s/list/array Mar 14 17:17:10 So you're saying that you have another library which is pulling #android-dev through Google News so you can use their wide-ranging alerts? Mar 14 17:18:05 hi Mar 14 17:18:08 * Ankhwatcher thinks that would explain why all he seems to get out of SimonVT is canned responses, he must be a bot Mar 14 17:18:16 ztir: hey Mar 14 17:18:28 can you help Mar 14 17:18:29 t.t Mar 14 17:18:37 plz Mar 14 17:18:41 ?:) Mar 14 17:18:52 no Mar 14 17:18:58 not takling to you simon Mar 14 17:19:01 heeeeere we go Mar 14 17:19:03 ztir: go follow the directions on the cyanogenmod wiki for instructions on how to root your device. Mar 14 17:19:05 zing Mar 14 17:19:09 link? Mar 14 17:19:12 zing zing Mar 14 17:19:13 are you fucking serious Mar 14 17:19:18 pull up your browser Mar 14 17:19:22 haha Mar 14 17:19:23 you have to root to have cyanogenmod no? Mar 14 17:19:23 type "cyanogenmod wiki" into the bar Mar 14 17:19:26 I have created a background image for my application (720x1080). Now I want to provide alternatives for different screens. Have I understood it correctly, that I now scale that down for each size? My image is xhdpi and then 360x540 for mdpi, 540x810 etc. ? Mar 14 17:19:34 yes, but the wiki generally describes how to root to get into that state Mar 14 17:19:47 lov: lmgtfy Mar 14 17:19:48 can someone please link me to Let Me Google That For You? Mar 14 17:19:58 or Just Fucking Google It? Mar 14 17:19:59 someone link him Mar 14 17:20:01 Ankhwatcher: can you do a self-referential lmgtfy.com link? Mar 14 17:20:10 trollception Mar 14 17:20:14 do you want us to type it in the box for you to? Mar 14 17:20:40 platzhirsch: full screen images are a bit different Mar 14 17:20:56 providing different densities isn't really important since you almost always have to scale Mar 14 17:21:00 ztir: I'm being nice here Mar 14 17:21:05 this is, generally, difficult for me to do. Mar 14 17:21:17 It's easier to be polite than it is rude Mar 14 17:21:24 well sometimes Mar 14 17:21:28 JakeWharton: oh ok Mar 14 17:21:34 pick a few sizes (really big, big, and medium), get the resolution of the device (at runtime), and pick the one which is closest but larger Mar 14 17:21:37 (he means from an emotional standpoint, on a technical level he can crush you like a bug) Mar 14 17:21:37 then scale it Mar 14 17:21:46 thanks :) Mar 14 17:21:55 JakeWharton: I thought that would be picked automatically Mar 14 17:21:56 he can crush any one of us like a bug if he wanted Mar 14 17:22:05 based on the DPI Mar 14 17:22:10 from a technical standpoint Mar 14 17:22:11 ztir: I'm trying to be kind here. Please help me help you. Mar 14 17:22:18 for full-screen images you cannot rely on density Mar 14 17:22:20 A 10" and a 4" device can have the same resolution Mar 14 17:22:20 Thanks lov, I really appreciate it Mar 14 17:22:21 hes talking about the physical resolution, not the dp Mar 14 17:22:24 But different density Mar 14 17:22:30 ztir: 13:21:26 < ztir> It's easier to be polite than it is rude Mar 14 17:22:30 the different DPI buckets are for provided assets that are supposed to be the same size on different densities Mar 14 17:22:38 ztir: wiki.cyanogenmod.org/w/Devices Mar 14 17:22:44 drawable-nodpi Mar 14 17:22:52 ztir: if your device isn't here, or doesn't have instructions, it's probably never been rooted successfully. Mar 14 17:23:00 birbeck: is that the folder one should use? Mar 14 17:23:02 ztir: if that's the case, we definitely can't help you and you need to troll xda-devs. Mar 14 17:23:12 ah I see Mar 14 17:23:13 yes, two or three images in drawable-nodpi and then pick the closest to the actual display resolution and scale Mar 14 17:23:16 ztir: at this point, I'd kindly ask that you bow out of the channel. Mar 14 17:23:21 I think xda has a chatroom Mar 14 17:23:21 if what's the case lov? Mar 14 17:23:23 platzhirsch: for putting images that should not be scaled, yes Mar 14 17:23:28 been there done that lov Mar 14 17:23:30 13:22:47 <@lov> ztir: wiki.cyanogenmod.org/w/Devices Mar 14 17:23:33 13:23:01 <@lov> ztir: if your device isn't here, or doesn't have instructions, it's probably never been rooted successfully. Mar 14 17:23:39 err, scaled based on density, your scaling will be done in your layout Mar 14 17:23:43 been there done that lov Mar 14 17:23:46 thanks for pointing out, I stored it in a drawable folder so far Mar 14 17:23:54 ztir: well, very likely no one here can help you then. Mar 14 17:24:00 drawable/ is mdpi Mar 14 17:24:03 ztir: My suggestion is that you ask for support on the xda-devs forums, etc. Mar 14 17:24:05 ok well it was worth a shot Mar 14 17:24:10 seeing how i cant get to the xda forums Mar 14 17:24:20 the drawable folder will result in scaling on top of scaling the -nodpi folder will tell Android that you're the boss and will handle it yourself Mar 14 17:24:28 welp, too bad for you I guess. Mar 14 17:24:32 thanks for stopping by! Mar 14 17:24:45 no problemo Mar 14 17:24:49 great, I mean it's all written there in the Supporting Multiple Screens, but it is so much to spot Mar 14 17:24:51 thanks for trying to help Mar 14 17:24:53 JakeWharton: Tony Danza is the boss and I won't hear otherwise. Mar 14 17:25:06 yes he is indeed lov Mar 14 17:25:14 i second that emotion Mar 14 17:25:47 hey ralph Mar 14 17:26:08 Chainfire_, ping Mar 14 17:26:10 who's tony danza Mar 14 17:26:14 omg Mar 14 17:26:21 have you been living under a rock the last century Mar 14 17:26:44 lol Mar 14 17:26:54 leeds Mar 14 17:27:01 i typed tony into google, and danza was not one of the recommend searches Mar 14 17:27:06 three thumbs down Mar 14 17:27:23 in that case I don't won't no part Mar 14 17:29:00 Remember that scene in Austin Powers 3, where Dr. Evil kicked everybody out of the room and then started listing the people who he wanted to stay. Mar 14 17:29:37 never seen ap3 Mar 14 17:29:56 nor i Mar 14 17:30:08 i have, but it was long enough ago that i dont remember Mar 14 17:30:18 i saw it but i might have been .. chemically altered Mar 14 17:30:25 you have tv in canada?? Mar 14 17:30:31 was Tony Danza innit? Or was that "Taxi" Mar 14 17:33:29 birbeck: no they don't, but some of them have telescopes, highly sensitive shotgun mics and live close to the border Mar 14 17:37:51 Does chrome for linux show a little white arrow on a green background when it has an update? Mar 14 17:38:05 Yeah, More of a support group for the geeks who've gotten their devices rooted and are working on world domination.. :) Mar 14 17:38:27 Ankhwatcher: yes Mar 14 17:38:43 birbeck: excellent. Mar 14 17:42:29 totally depressed about this job offer i got monday. they gave me an offer and wanted to move forward, then yesterday, just after failing to get IO tickets, they retracted their offer. "switching gears in the 11th hour" they said. Mar 14 17:42:37 ive never heard of that happening before Mar 14 17:43:10 .... Mar 14 17:43:15 they retracted there offer? Mar 14 17:43:22 birbeck: well that sucks, sorry man Mar 14 17:43:22 yeah Mar 14 17:43:27 wow Mar 14 17:43:35 can i ask what company this as? Mar 14 17:43:52 bc that is horrible, what kind of management/process do they have Mar 14 17:44:08 dont want to disclose it and give a bad name right now, in case they decide to reconsider... again Mar 14 17:44:18 fair enough Mar 14 17:44:36 but it was for a sr. android dev job at a major media streaming company Mar 14 17:45:27 the entire recruiting process was totally screwed up, but i was letting that slide since i have a good job and wasnt in a rush, and they eventually came through with an offer Mar 14 17:46:05 :\ Mar 14 17:46:12 well I'm sorry to hear that, that sucks Mar 14 17:47:31 birbeck: was hiring you conditional on you getting I/O tickets? Mar 14 17:47:51 heh no. they didnt know i didnt get tickets Mar 14 17:47:53 birbeck: also, are you actually looking for a new job? Mar 14 17:48:08 or was this something you only entertained because they asked? Mar 14 17:48:45 i am not actively seeking, but open to good/interesting opportunities Mar 14 17:49:47 like i said, i have a good job and i love the people i work with. they value me as a great asset here and my director, project manager and vp of engineering have all expressed their concern of me leaving the company since abandoning our android product Mar 14 17:50:10 but im just bored now, it feels like im just going to a job every day instead of doing something i love Mar 14 17:53:15 how often is app statistics updated in dev console? Mar 14 17:54:14 i think daily Mar 14 17:55:01 I think in terms of Quiznos Prime Rib Peppercorn Mar 14 17:58:58 Quacked, not often enough Mar 14 18:01:33 Hi all, has anyone had MediaPlayer issues with the Samsung Galaxy S3 and Note 2? I've got a basic media streamer app that works fine in the emulator, nexus 4, galaxy s2s (other Samsungs), a really old HTC and others. Just not those two models. Mar 14 18:02:19 Samsung does some hacks around the entire Media framework Mar 14 18:03:02 s/ Media// Mar 14 18:03:06 they dont even accurately support the MediaStore interface or MediaPlayer service contract Mar 14 18:03:26 That's surprising, and if that's true the CTS needs to be updated. Mar 14 18:03:33 birbeck: Yes, I'm finding some of the "attention to detail" that Samsung used in the firmware on a GT-P5113 Mar 14 18:04:09 you basically end up with a bunch of adapters and facades to facilitate "Samsung compatibility" Mar 14 18:04:42 sounds like fun, any ideas where I can go to find documentation on some of the work arounds with Samsung? Mar 14 18:05:23 nothing published i am aware of. basically just using the step debugger to inspect their interface Mar 14 18:06:28 simonvt's library is good, but jfeinstein has the best sliding menu lib of all time Mar 14 18:07:09 CTS is a joke Mar 14 18:07:12 just like all TDD Mar 14 18:07:39 Thanks for the info, looks like I need to borrow an S3 Mar 14 18:08:01 wait until the s4 breaks it all over again in new ways Mar 14 18:08:40 canadiancow: did you ever figure out your radio issue on s3 and note2? Mar 14 18:08:47 Maybe samsung has a dev relations guy you can email and ask for a list of all the ways they broke the API Mar 14 18:09:06 SimonVT: actually i have his business card at home Mar 14 18:09:16 SimonVT: it's not that kind of relations Mar 14 18:09:40 scrum time. bbl Mar 14 18:09:45 14:08:56 < SimonVT> Maybe samsung has a dev relations guy you can email and ask for a list of all the ways they broke the API Mar 14 18:09:47 birbeck, no Mar 14 18:09:52 I'm actually laughing over here Mar 14 18:09:54 "Hey, I'm making a blog post on all the ways you broke the Media framework. So far I have X, Y, Z, .. Am I missing any?" Mar 14 18:10:21 i should do dev relations for samsung Mar 14 18:10:23 birbeck, if i knew what was wrong, i'd write a CTS case. but i dont know what's wrong Mar 14 18:10:26 Glad I could help, lov :p Mar 14 18:10:34 mikedg: you actually should Mar 14 18:10:36 you'd be perfect Mar 14 18:11:12 Well so far I've found two issues with different samsung models. The first is some models won't follow URL redirects so I built a wrapper around that to pass the redirected URL back to MediaPlayer. The second is some models just die in the prepare stage after about 60 seconds with error -1004 Mar 14 18:11:12 * Bleeptech is giggling too.. Mar 14 18:11:59 While you're at it ask them why "factorytestapp" keeps spamming the console.. Mar 14 18:13:14 it's testing for you Mar 14 18:13:19 would you like untested apps Mar 14 18:15:30 just for curiosity: why can't android be compiled with openjdk? what are the features missing in openjdk? Mar 14 18:15:49 I have generated enough errors of my own to deal with, Thank you.. Mar 14 18:20:11 E / AndroidRuntime (13305): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.androidhive/com.example.screendoor.CameraActivity}: java.lang.NullPointerException Mar 14 18:22:24 hi Mar 14 18:23:22 Anyone know where i can find information about using ACTION_VIEW for video's e.g., how to enable caching of the video and such? Mar 14 18:24:06 PAX East Mar 14 18:24:41 I am getting a NullPointerException when trying to retrieve the thumbnail photo returned inside the intent sended by the camera app to my app Mar 14 18:25:32 I have just added the code for not only obtain a little image but a real size one passing a file so the camera app knows where to store it Mar 14 18:26:10 I am wondering if you pass the file to store it then the thumbnail image is not returned in the intent Mar 14 18:26:15 is it that way? Mar 14 18:26:35 How should I approach a button with a custom image which has transparent elements in it? selector? Mar 14 18:27:03 thanks Mar 14 18:29:36 I'm getting started with android development, but the emulator here is unbearably slow. Is this 'normal'? What can I do about it? My PC is quite new: hexacore from AMD, 16gb RAM etc... Mar 14 18:30:12 hmm I guess there's no putExtra for ACTION_VIEW on caching a video so it doesn't fetch the content each time the user clicks play Mar 14 18:30:45 konr: use the intel atom image for virtualizsation Mar 14 18:32:31 is it only me, or does actionbarsherlock cause several exceptions when tested with monkeyrunner Mar 14 18:32:34 e.g. this one: http://ideone.com/g3OAMh Mar 14 18:33:00 here, the "bug" (if any) seems to be in actionbarsherlock, right? Mar 14 18:33:18 isUserAMonkey() Mar 14 18:33:28 Monkeyrunner causes tons of issues Mar 14 18:33:35 Which never happens in the hands of users Mar 14 18:33:38 spobat: that's fixed on dev and will never happen in real life Mar 14 18:33:59 So sure, you can call it ABS issues Mar 14 18:34:07 konr: and yeah, the emulator DOES suck. The reason is that it's a full ARM emulator, it's not a simulator. Generally, you want to do development on a device, and only use emulators to verify behavior on specific devices/configurations you don't have. Mar 14 18:34:11 JakeWharton: that API is broken, it always returns true for me Mar 14 18:35:01 well the issue is that I can't test the actual behaviour of my app with monkeyrunner if it crashes because of actionsherlock. Mar 14 18:35:10 spobat: patches welcome Mar 14 18:35:16 So I'm not quite sure what to do, as I thought using "monkey" is a good thing generally :P Mar 14 18:37:14 JakeWharton, has this issue been actually fixed 13 days ago? Mar 14 18:37:14 https://github.com/JakeWharton/ActionBarSherlock/issues/701 Mar 14 18:37:25 yes, on dev Mar 14 18:37:41 alrighty Mar 14 18:39:24 is there any way to make a text view align to the left of center in an xml? Mar 14 18:40:17 hmm, put another view in front of it, both with 1 weight? Mar 14 18:41:18 JakeWharton: where is the beef Mar 14 18:41:30 konsgn_pi: how far to the left Mar 14 18:41:40 2dp or so Mar 14 18:41:56 goto the platform source and grab absolutelayout Mar 14 18:42:02 and then use it Mar 14 18:42:05 mikedg: com.cow.Beef.obtain(); Mar 14 18:42:14 or lose it Mar 14 18:42:23 so define center in the java code? Mar 14 18:42:39 I have an activity which starts a thread. They share persistant data inbetween. The Activity restarts. How am I going to prevent the activity from creating a new thread and data set? Mar 14 18:42:48 As in; what would be the best approach Mar 14 18:43:06 android:id="@+id/text_L_Slide6" Mar 14 18:43:06 android:layout_width="wrap_content" Mar 14 18:43:06 android:layout_height="wrap_content" Mar 14 18:43:06 android:layout_above="@+id/text_mixingL6" Mar 14 18:43:08 android:layout_marginBottom="115dp" Mar 14 18:43:11 android:layout_marginLeft="34dp" Mar 14 18:43:13 android:layout_toRightOf="@+id/text_mixingL6" Mar 14 18:43:16 oops Mar 14 18:43:18 soory Mar 14 18:43:20 * lov glares Mar 14 18:43:30 timroes: thank you! Mar 14 18:43:31 use a pastebin please. Mar 14 18:43:52 didnt mean to paste accidentally pight clicked Mar 14 18:43:53 Joozey: have a service instead of an activity own the thread. Mar 14 18:43:56 konsgn_pi: no im being terribly helpless Mar 14 18:43:58 please ignore me Mar 14 18:44:04 SimonVT, mentioning `monkeyrunner causes tons of issues`. Do you use any other automatic testing? Mar 14 18:44:15 haha thanks Mar 14 18:44:38 lov, hm ok, will try that, thanks Mar 14 18:47:38 OK.. Fixed the naming error.. Now to figure out WTH else I'm doing wrong.. LOL.. Mar 14 18:47:53 google is boarding up google reader, android is next Mar 14 18:47:56 wake up sheeple Mar 14 18:48:28 mikedg: ?? Mar 14 18:49:44 Hm.. the actionbarsherlock issue seems to persist :S Mar 14 18:49:56 mikedg is A) bad at making jokes, B) not very bright, C) both Mar 14 18:50:04 If anything is going it's Chrome OS Mar 14 18:50:10 (logcat: http://ideone.com/3E78Jp ) Mar 14 18:51:09 I thought Google+ Mar 14 18:51:32 Well, let me see to be sure. Mar 14 18:51:49 Or their headquarter playground slide Mar 14 18:52:14 probably not Mar 14 18:52:50 I think that was my fault there :o Mar 14 18:56:47 JakeWharton, yep, that was a mistake of mine. It works with the `dev`-branch indeed :) Mar 14 18:56:54 cool Mar 14 18:56:57 should be released soon Mar 14 18:57:45 hah Mar 14 18:57:47 "soon" Mar 14 18:58:03 i'll release it right now. I DUN EVEN CARE Mar 14 18:58:28 Would anyone happen to know why an app running fine on an ARM processor would not run on an Atom processor? Mar 14 18:58:37 uses NDK Mar 14 18:58:49 +1 soon :) Mar 14 18:59:35 It has been soon for the last month :p Mar 14 19:00:08 NDK? Mar 14 19:00:56 http://developer.android.com/tools/sdk/ndk/index.html Mar 14 19:01:23 JakeWharton: do you have issues if ABS is bundled with GPLv2 appls (officially incompatible to apache)? Mar 14 19:05:40 Hi, is there a simple way to swipe a view to show something behind it ? kind of like when you get rid of a notification but with something behind. Mar 14 19:08:34 AbsLayout by mikedg Mar 14 19:08:57 can you put that in a library project so i can use it? Mar 14 19:11:54 sure, patches welcome Mar 14 19:12:18 please setup a github and make me an account Mar 14 19:12:21 i will patch it with @Deprecated Mar 14 19:14:13 in proguard, is there any difference between * and ** ? Mar 14 19:14:35 as I wonder how my.package.* is different from my.package.** Mar 14 19:14:58 children or descendents Mar 14 19:16:04 did the Maps API change ? Mar 14 19:16:09 as in the Authentication? Mar 14 19:16:11 ERROR/Google Maps Android API(9620): Authorization failure. Mar 14 19:16:24 did you get a new api key for v2? Mar 14 19:16:37 birbeck: yes, the app is called MapsAPIV2 Mar 14 19:16:43 the maps api in google play services is way different than v1 Mar 14 19:16:52 it was the test project I built to test v2 Mar 14 19:16:59 birbeck, yep, of course, but is there any diff between * and ** then? Mar 14 19:17:01 but it no longer accepts my key it seems Mar 14 19:17:39 check logcat or the api console Mar 14 19:17:43 bbl Mar 14 19:17:55 this is all I get: ERROR/Google Maps Android API(9620): Authorization failure. Mar 14 19:18:43 Does anyone know a way to remove a specific kind of processor type in a manifest file? Mar 14 19:32:09 who wants to do the harlem shake at IO Mar 14 19:32:17 doesn't matter cause none of you are going Mar 14 19:32:36 when is it btw? Mar 14 19:32:47 may 15 Mar 14 19:34:50 IO? Mar 14 19:35:38 MoProductions: it's like Adult Video Expo, but for Google stuff Mar 14 19:35:52 mikedg: sounds kinky Mar 14 19:36:15 yeah last year everyone got a big black sack and one big black ball Mar 14 19:36:22 how does someone in this channel not know what IO is Mar 14 19:38:21 Aren't onNewIntent and onCreate mutually exclusive? My activity is launched by a pendingintent with alarmmanager, but im seeing onCreate called, followed immediately by onNewIntent Mar 14 19:39:17 Ge0rG: ABS is Apache because it has a ton of copied code from AOSP that's Apache. Mar 14 19:39:17 btw thanks for putting that offing Harlem Shake song in my head again [:) Mar 14 19:40:04 Ge0rG: I personally don't have a problem with it but I cannot say as to the actual legal implications. Mar 14 19:40:42 How do I use buffered writer to write to the same location that FileOutputStream writes to? Mar 14 19:41:04 Anyone? Mar 14 19:41:27 This simple problem, that would have been solved in two minutes in python, takes hours and hours and hours in java. Mar 14 19:41:32 As well as so many more lines of code. Mar 14 19:41:38 new BufferedWriter(new OutputStreamWriter(fos)); Mar 14 19:41:43 Meron: uh Mar 14 19:41:45 what JakeWharton said. Mar 14 19:41:56 who? Mar 14 19:41:58 p. sure that took us less than two minutes, so I guess Java > python. Mar 14 19:42:14 Nobody named JakeWharton has said anything Mar 14 19:42:20 15:41:42 < Meron> As well as so many more lines of code. Mar 14 19:42:20 15:41:48 < JakeWharton> new BufferedWriter(new OutputStreamWriter(fos)); Mar 14 19:42:28 new BufferedWriter(new OutputStreamWriter(fos)); Mar 14 19:42:30 omg it's the sixth sense Mar 14 19:42:33 only lov can hear me Mar 14 19:42:35 And that will let me use all that stuff? Mar 14 19:42:38 Finally Mar 14 19:42:42 what do you think? Mar 14 19:42:43 No guides anywhere said anything about that Mar 14 19:42:49 really? Mar 14 19:42:51 Yeah Mar 14 19:42:52 Nothing Mar 14 19:42:53 consider reading the java tutorials then. Mar 14 19:42:55 Intro to Java 101 probably said that Mar 14 19:42:56 JakeWharton died high fiving a taxi last year, how can you see that lov? Mar 14 19:42:57 I did Mar 14 19:42:57 also, consider learning java. Mar 14 19:42:58 Many times Mar 14 19:43:06 Java is a horrible language Mar 14 19:43:14 Can't even iterate over strings Mar 14 19:43:14 use Scala Mar 14 19:43:18 hmm... Mar 14 19:43:19 http://docs.oracle.com/javase/tutorial/essential/io/buffers.html Mar 14 19:43:28 for (char c : "hello".toCharArray()) { do things! } Mar 14 19:43:30 next? Mar 14 19:43:31 Meron: there's like 3 different classes. Mar 14 19:43:46 Meron: instead of going "Java isn't exactly like Python, therefor I don't know how to do it, therefor IT IS IMPOSSIBLE" Mar 14 19:43:50 consider asking "Hey guys how do I..." Mar 14 19:43:53 not impossible Mar 14 19:43:54 just Mar 14 19:43:56 way, way harder Mar 14 19:43:58 try #java next time Mar 14 19:43:58 and longer Mar 14 19:44:01 no, not necessarily. Mar 14 19:44:10 We just solved two ZOMG HARD problems for you off the top of our heads. Mar 14 19:44:11 enter key != punctuation Mar 14 19:44:32 some people like harder and longer Mar 14 19:44:47 Careful about asking Android/Dalvik questions in #java Mar 14 19:44:51 Meron: if you're not sure how to do something in java, try asking in ##java Mar 14 19:44:52 They'll bite your head off about it Mar 14 19:45:05 yeah, there is that :X Mar 14 19:45:12 ask questions about the java apis, nothing Android related. Mar 14 19:45:21 huhm Mar 14 19:45:23 well Mar 14 19:45:32 More than a few ninja Oracle devs in there I think -.- Mar 14 19:45:33 i made a fileoutput stream object Mar 14 19:45:36 made a buffered output object Mar 14 19:45:42 that uses that fileoutputstream Mar 14 19:45:46 ok Mar 14 19:46:07 remember to flush yo buffers son Mar 14 19:46:10 now is it just bufferedWriterObject.append() to write to the file opened in fileoutputstream? Mar 14 19:46:31 effectively. Don't forget to close your stream when you're done, and tip your waiters. Mar 14 19:46:31 Meron: if you dont know how to use a buffered writer then why are you using it? Mar 14 19:46:45 Meron: I very strongly encourage you to read this trail: http://docs.oracle.com/javase/tutorial/essential/io/streams.html Mar 14 19:46:55 thats the trail of tears Mar 14 19:47:10 useless Mar 14 19:47:15 I can't use fileoutputstream Mar 14 19:47:19 why not? Mar 14 19:47:30 Because what I am trying to do can't be done just by writing with bytes Mar 14 19:47:52 er. Mar 14 19:47:57 So. Mar 14 19:48:01 Trying to write a file containing "1", "2" "10" for example to a private file for my app Mar 14 19:48:05 Java uses the decorator pattern when it comes to output Mar 14 19:48:09 writing to bytes creates "1210" Mar 14 19:48:10 so you'll generally wrap several objects Mar 14 19:48:13 right. Mar 14 19:48:16 I tried reading back with a charloop Mar 14 19:48:16 so. Mar 14 19:48:24 but that just gives me back "1" "2" "1" "0" Mar 14 19:48:26 you forgot the new lines? Mar 14 19:48:35 I'm not quite sure what you're asking, but you might want to look at things like PrintWriter Mar 14 19:48:40 You can't write new lines using fileoutputstream Mar 14 19:48:52 .write('\n') Mar 14 19:48:55 well, you can, but generally you wrap a FileOutputStream in other classes. Mar 14 19:49:20 For example Mar 14 19:49:20 http://docs.oracle.com/javase/6/docs/api/java/io/PrintWriter.html Mar 14 19:49:25 can i write a newline just by using fileoutputsrteam? Mar 14 19:49:29 You'd wrap your FileOutputStream in a PrintWriter, and then use println. Mar 14 19:50:05 Meron: you can, but there's no reason to when there are classes that handle this for you. Mar 14 19:50:34 seriously, just do PrintWriter pw = new PrintWriter(new BufferedOutputStream(new FileOutputStream(myFile))); Mar 14 19:50:39 then use pw for a more useful interface Mar 14 19:51:15 wait Mar 14 19:51:29 I made a printwriter object using my fileoutputstream Mar 14 19:51:42 ok. You can do that too, it's just that buffering your output is more efficient. Mar 14 19:51:47 you can do that but its not buffered Mar 14 19:52:00 will it write each input to a line? Mar 14 19:52:08 Meron: you need to go to I/O more than me, here's my ticket Mar 14 19:52:21 yes Mar 14 19:52:24 so now it's PrintWriterObject.println(stuff to print to line) Mar 14 19:52:30 it fulfills the same contract Mar 14 19:52:58 do I need to convert to bytes? Mar 14 19:53:02 no, you don't. Mar 14 19:53:05 okay then Mar 14 19:53:06 so Mar 14 19:53:12 that's the point of using a PrintWriter instead of just using the raw FileOutputStream Mar 14 19:53:14 Meron: you in new york? Mar 14 19:53:18 it'll handle writing to the output stream for you Mar 14 19:53:21 object.println(string) Mar 14 19:53:21 nope Mar 14 19:53:23 okay Mar 14 19:53:29 and that should, each time it's called Mar 14 19:53:33 print to the next line in the file Mar 14 19:53:34 excellent Mar 14 19:53:36 all I wanted! Mar 14 19:53:38 cheers Mar 14 19:53:42 brb for now Mar 14 19:53:52 Meron: bear in mind that if you're buffering, you need to potentially flush your output before it's written. closing your stream flushes automatically. Mar 14 19:54:03 OKAY Mar 14 19:54:08 sorry Mar 14 19:54:08 caps Mar 14 19:54:14 lov: are you meaning his problem or his chat messages? Mar 14 19:54:21 because i think he doesn;t need any more flushing there :D Mar 14 19:54:25 * lov sighs Mar 14 19:56:24 Meron: if you're giving out I/O tickets... Mar 14 19:58:17 i just got a new toilet lever delivered today Mar 14 19:58:22 im hoping its good for flushing my buffers Mar 14 19:58:27 it'll help Mar 14 20:05:23 Hi :) Mar 14 20:07:10 anyone think it's worth the time to download the ubuntu mobile SDK ? wonder if it's going to go anywhere... Mar 14 20:07:14 I still don`t have a clear situation with activities. If i have many things like network services, threads, and all that stuff that should work in background, where i have a place where i should defined them ? Mar 14 20:25:27 awesome. I somehow (or better said: monkeyrunner) did something, that I can't open the notification bar anymore. (by swiping down). Mar 14 20:25:35 ~reboot will do I think^^ Mar 14 20:35:45 How can i read a sqlite on android? Mar 14 20:36:02 David23400: have you tried using code? Mar 14 20:36:19 I'm new to android, i just need a tutorial or the fonction name Mar 14 20:36:53 http://developer.android.com/training/basics/data-storage/databases.html Mar 14 20:37:08 birbeck: you're just encoraging the behavior! Mar 14 20:37:42 funkbox: 99.99999999% of visitors here are newbs Mar 14 20:37:55 you will see the same basic questions asked 100x/day Mar 14 20:38:06 manifest.xml what is this? Mar 14 20:38:17 birbeck, actually i know how to create a database or load it, but i was not able to find how to open a .sqlite file! and read from that Mar 14 20:38:23 birbeck: just kidding, i am a noob though Mar 14 20:38:36 David23400: short answer, you dont Mar 14 20:39:16 birbeck, I saw the tutorials of thenewboston on youtube that's all :D but it doesnt show how to open a .sqlite file Mar 14 20:39:36 you cannot open a sqlite file in your assets dir as a read/write db. your apk is read only, so you need to copy the file to your data storage on the device and copy it Mar 14 20:40:05 yza: never heard of manifest.xml Mar 14 20:40:28 meh i ment androidmanifest.xml Mar 14 20:41:05 birbeck I was just joking around.. I usually idle in C# channel but taking a class for android dev so figured I drop in here Mar 14 20:41:23 birbeck, ok let's say its in the data storage, what do i do after? Mar 14 20:44:48 how do i get sysem.out.println's read back to me in logcat Mar 14 20:44:53 I had it before Mar 14 20:44:56 But it vanished Mar 14 20:45:52 yaz, androidmanifest.xml is still an invalid name :) Mar 14 20:45:55 now it's not telling me them Mar 14 20:47:17 Meron: better to use Log.d(), but at any rate, make sure your logcat filtering is verbose Mar 14 20:50:12 hmmm Mar 14 20:50:13 David23400: once you have copied it from the assets, you can read/write it like any other db file Mar 14 20:50:14 this is Mar 14 20:50:15 wierd Mar 14 20:50:26 why are java error traces so ridiculous? Mar 14 20:50:49 http://pastebin.com/avMe2qhu Mar 14 20:50:53 can somebody decipher that for me? Mar 14 20:51:03 It doesn't even reference my program so I dunno what's going on Mar 14 20:52:12 Meron: did you specify android:name="..." in your tag in AndroidManifest.xml? Mar 14 20:53:18 yes Mar 14 20:53:27 well Mar 14 20:53:29 its an activity Mar 14 20:53:33 most likely the class you specified doesnt exist Mar 14 20:53:43 I didn't specify a class Mar 14 20:53:57 Does anyone know offhand how to exclude certain processor types in an Android manifest file? Mar 14 20:54:04 forget activities, im talking about the tag Mar 14 20:54:06 also eclipse should flag that up Mar 14 20:54:13 theres Mar 14 20:54:15 MoProductions: you cant Mar 14 20:54:26 something that says android:name under applications Mar 14 20:54:30 but it's inside an activity tag Mar 14 20:54:36 and above that is Mar 14 20:54:41 Mar 14 20:54:44 birbeck: Is there any other way to exclude Atom processors? Mar 14 20:54:44 it was working fine Mar 14 20:55:19 Meron: pastebin your manifest Mar 14 20:55:26 Meron: pastebin your manifest, also tell us what activities you have. Mar 14 20:55:43 I have a sneaking suspicion that you set something in the manifest to tell Android what your Application class is, and you don't actually have an Application subclass. Mar 14 20:55:45 is that really encessary? Mar 14 20:55:47 yes. Mar 14 20:55:51 MoProductions: only by excluding the devices from google play, not in your manifest though Mar 14 20:55:51 I never created the manifest Mar 14 20:55:55 Eclipse does all that for you Mar 14 20:55:56 * lov sighs Mar 14 20:55:59 just fucking do it please. Mar 14 20:56:14 wait already Mar 14 20:56:15 birbeck: got it, thank you. Luckily there's not many Atom processor devices out there but new ones will get added. Mar 14 20:56:16 <[SP]JESTER> who here is familiar with sense? Im trying to change the settings.apk settings_headers.xml and when i recompile it, it has no effect on what the user see's Mar 14 20:56:20 I think it's being caused by a loop Mar 14 20:56:31 forget about Looper Mar 14 20:56:38 forget about activities Mar 14 20:56:54 [SP]JESTER: go to #android-root please. Mar 14 20:56:59 MoProductions: yeah, thats the problem with device filtering Mar 14 20:57:38 yeah Mar 14 20:57:42 MoProductions: luckily, atom procs should be dying off Mar 14 20:57:44 it's being caused by a for loop Mar 14 20:57:46 I don't know why Mar 14 20:57:54 pastebin the relevant code? Mar 14 20:57:56 *facepalm* Mar 14 20:57:56 birbeck: It's our first run through it actually heh. So far it's been pretty good but of course the boss has to get one of those .1% atom devices *facepalm* Mar 14 20:58:26 birbeck: Thanks for the tips btw. Now at least I can tell him it has to be GP only. Of ALL the devices…he couldn't get get a nice Kindle Mar 14 20:58:34 http://pastebin.com/bJmVyxJK Mar 14 20:58:53 Where aCorrect SHOULD be an arraylist containing all the lines read back from println Mar 14 20:58:56 canadiancow still here ? Mar 14 20:58:56 ok, pastebin the parts that say what the class and method are. Mar 14 20:59:06 why is that necessary? Mar 14 20:59:11 because we need context. Mar 14 20:59:35 how could anything in the class or method creating-bits possibly affect a loop? Mar 14 20:59:44 Chainfire, yes Mar 14 20:59:47 I'm more concerned about where your loop actually is. Mar 14 20:59:51 Meron: you application context wont fail to initialize because of a borked loop or null reference in some other class Mar 14 20:59:56 in onCreate Mar 14 21:00:13 yeah, it's possible that this is just an odd ANR in your onCreate. Mar 14 21:00:19 ANR? Mar 14 21:00:28 application not responding Mar 14 21:00:32 sigh Mar 14 21:00:32 onCreate runs on the UI thread Mar 14 21:00:47 when you block the UI thread, bad things happen. Mar 14 21:00:52 http://pastebin.com/0zXLmFuj Mar 14 21:00:54 thats the top Mar 14 21:00:57 of oncreate Mar 14 21:00:58 canadiancow are doc problems supposed to go to b.android.com , or do you take care of them? ;) Mar 14 21:01:13 that's not really what I wanted but whatever Mar 14 21:01:14 the application doesn't crash Mar 14 21:01:16 you can file them there Mar 14 21:01:16 glad you solved your problem Mar 14 21:01:24 the activity doesn't even break Mar 14 21:01:25 if they're simple, you can let me know, and i may take care of it Mar 14 21:01:30 Meron: without the whole onCreate() and/or manifest, there is nothing we can do to help Mar 14 21:01:42 Just, I get that error and the for loop never runs Mar 14 21:01:51 canadiancow: is the doc janitor Mar 14 21:01:56 Meron: pastebin your whole class, please, so we actually know what the fuck you're doing. Mar 14 21:02:11 i'll figure this out myself Mar 14 21:02:14 Meron: do what lov says, also try making a new layout Mar 14 21:02:15 for example, what is aCorrect, what is number, etc./ Mar 14 21:02:30 without any context whatsoever all we can do is guess what your problem actually is Mar 14 21:02:50 does aCorrect.equal(bIncorrect)? Mar 14 21:03:08 I can bIncorrect all day Mar 14 21:03:23 also I don't think system.out.println does anything useful in android, unless they remapped stdout and I was unaware Mar 14 21:03:36 using Log is generally a better plan Mar 14 21:03:43 Can I ask for a few feedback on my application here? Mar 14 21:03:54 dragorn: yeah, out.println will do a Log.i() Mar 14 21:03:56 dragorn: it actually logs to input level Mar 14 21:04:00 er, info rather Mar 14 21:04:04 huh. Learn something every day. Mar 14 21:04:18 i did tell him to use Log.d() above Mar 14 21:04:29 but thats not the root of the problem Mar 14 21:05:07 birbeck: not the root, no, but if he's not getting output it could obscure whatever the real issue is. I didn't see your suggestion above, but I wasn't readng very hard either Mar 14 21:05:13 http://pastebin.com/sFf8zcpQ Mar 14 21:05:15 any better? Mar 14 21:05:19 all relevant stuff is in there Mar 14 21:05:30 except for the bit writing to the file Mar 14 21:05:46 which is simple going writer.println(number.toString()) Mar 14 21:05:47 what is 'number' Mar 14 21:05:52 it says Mar 14 21:05:53 number = 1 Mar 14 21:05:54 it's just Mar 14 21:05:55 1 Mar 14 21:05:56 an integer Mar 14 21:05:57 1 Mar 14 21:06:00 thanks. Mar 14 21:06:02 I was looking for 'int' Mar 14 21:06:42 what is 'aCorrect' Mar 14 21:06:49 should say Mar 14 21:06:50 it does Mar 14 21:06:56 check under while correctString = saveread.etc Mar 14 21:07:03 its an Arraylist Mar 14 21:07:10 aCorrect.add(correctString); Mar 14 21:07:11 Is theer a tutorial that showes how to read line by line a file on android? Mar 14 21:07:14 that just tells me that it adds something. Mar 14 21:07:19 yeah Mar 14 21:07:27 this is why I'm asking for context; I don't actually know what the class IS unless I can tell somehow. Mar 14 21:07:40 assuming ArrayLists work at ALL like python ones, that should add whatever correct string is into the next index in the list Mar 14 21:07:55 unless I missed a trick and it's doing something retarded Mar 14 21:08:15 yes, that is what they do. Mar 14 21:08:27 Looking at this I don't see why it would cause an exception or freeze, at least not offhand. Mar 14 21:08:27 protip: dont assume java is anything like python Mar 14 21:08:29 if I comment out the for loop then there is no error Mar 14 21:08:41 Unfortunately it is not Mar 14 21:08:44 ah hmm. Mar 14 21:08:50 The for loop doesn't even run Mar 14 21:08:52 I wonder if you somehow got null into your aCorrect somehow. Mar 14 21:09:05 ... Mar 14 21:09:11 that would be helpful information to have originally. Mar 14 21:09:27 So, if you don't comment out from line 22, the app crashes? Mar 14 21:09:30 lov: none of this would cause NPE loading the app context Mar 14 21:09:36 hell Mar 14 21:09:36 yeah, that's what confuses me. Mar 14 21:09:44 the bit under try { savereader Mar 14 21:09:46 doesn't even run Mar 14 21:09:57 * lov sighs Mar 14 21:09:58 unless perhaps this is all in onCreate() of the default activity, then i dont know. the npe should then still be local to the activity Mar 14 21:10:02 ok, can you tell me where you DO crash? Mar 14 21:10:12 yeah, fuck it, I'm headed home. Mar 14 21:10:50 Java is so fucking retarded Mar 14 21:10:55 None of this messing around should be necessary Mar 14 21:11:16 you're right. it should be able to read your mind Mar 14 21:11:27 and unicorns. there should definitely be unicorns Mar 14 21:11:41 EG: Python Mar 14 21:12:15 Java 9 will have unicorns Mar 14 21:12:38 until then, we have NPE's Mar 14 21:12:40 why do people even still use java Mar 14 21:12:49 its inferior in so many ways Mar 14 21:12:57 inferior to? Mar 14 21:12:58 Meron: why are you here bitching about java again? you know you can use python if you want ... Mar 14 21:12:59 NoUnicornsException Mar 14 21:13:11 Java error messages are just useless Mar 14 21:13:18 Can't program android in java Mar 14 21:13:45 you can write android apps in py Mar 14 21:14:04 they will suck, i can guarantee it Mar 14 21:14:13 write apps in dreamweaver! Mar 14 21:14:15 more than stacktraces Mar 14 21:14:32 stack traces are useless Mar 14 21:14:40 they should highlight the important information and junk the rest Mar 14 21:14:58 I don't need to see some bullshit massive error list, I need to see the LINE and the PROBLEM Mar 14 21:14:59 that's it Mar 14 21:15:04 Meron: stack traces work just like they do in python Mar 14 21:15:06 how they fucked that up I will never know Mar 14 21:15:11 Meron: your stacktrace says whats going on. you are looking in the wrong place Mar 14 21:15:12 Python shows you the line and the problem Mar 14 21:15:17 not fifty lines of "lol error" Mar 14 21:15:21 it shows you the full stack trace Mar 14 21:15:25 Meron: if you wont pastebin your manifest, no one can help you Mar 14 21:15:27 hence the term "stack trace" Mar 14 21:15:33 Meron: you have to do the thinking, indeed Mar 14 21:15:33 there is NO problem with the manifest Mar 14 21:15:42 Suuure Mar 14 21:15:44 A simple loop should NOT cause any problem Mar 14 21:15:45 Hell Mar 14 21:15:49 I've had basically the same loop Mar 14 21:15:53 the loop is not the problem Mar 14 21:15:58 Comment out the loop Mar 14 21:15:59 while( true ); Mar 14 21:16:00 errors stop Mar 14 21:16:06 Meron: while (true); <-- a simple loop should NOT cause any problem!!!1 Mar 14 21:16:11 the stacktrace showing Looper is the main thread Looper Mar 14 21:16:13 ^ :D Mar 14 21:16:14 * evanc high-fives Joozey Mar 14 21:16:25 that's not causing a problem Mar 14 21:16:30 that's doing exactly what you want it to do Mar 14 21:17:05 if an ANR is what you want, yes it is Mar 14 21:17:16 Meron: your code is working exactly as coded Mar 14 21:17:21 no it's not Mar 14 21:17:22 if it was Mar 14 21:17:24 it would work Mar 14 21:17:27 but because java is ridiculous Mar 14 21:17:29 it doesn't Mar 14 21:17:34 * birbeck :) Mar 14 21:17:37 :D Mar 14 21:17:40 this problem, in python, would take a couple of lines and maybe five minutes Mar 14 21:17:41 in java? Mar 14 21:17:47 fifty lines and more than five hours now Mar 14 21:17:52 that's how poor java is compared to python Mar 14 21:17:59 and then five hours of bitching on IRC Mar 14 21:18:19 OKAY Mar 14 21:18:23 problem seems to be that Mar 14 21:18:28 while ((correctString = saveReader.readLine()) != null){ Mar 14 21:18:33 is not reading anything Mar 14 21:18:37 but there should be lines Mar 14 21:18:46 its probably waiting Mar 14 21:18:48 unless that printwriter.println thing somebody told me about it as useless as everything else Mar 14 21:19:05 Use Log.i/v/d/e etc. Mar 14 21:19:12 oh, nm Mar 14 21:19:23 is there a better way to scroll through a file, append each line to an arraylist than that? Mar 14 21:19:54 does it read 1 line to begin with? Mar 14 21:20:06 i thought you said aCorrect contained 1, an integer Mar 14 21:20:20 1 is not the same as "1" in java Mar 14 21:20:30 that was number Mar 14 21:20:35 aCorrect is the ArrayList Mar 14 21:20:43 http://pastebin.com/gbMF3cEC Mar 14 21:20:50 that is what should be writing the file Mar 14 21:21:05 what is number? Mar 14 21:21:08 it doesn't seem to read any lines, because i tried to get it to system.out something underneath Mar 14 21:21:11 and it didn't happen Mar 14 21:21:18 assume number = any integer Mar 14 21:21:21 it doesn't matter Mar 14 21:21:36 Meron: use Log.d instead of System.out.println Mar 14 21:21:37 an int is a primitive Mar 14 21:21:51 Why Log.d ? Mar 14 21:22:03 It's how you print to logcat Mar 14 21:22:12 STDERR and STDOUT don't go anywhere Mar 14 21:22:18 or Log.v or whatever log level you want to use Mar 14 21:22:25 K Mar 14 21:22:27 But Mar 14 21:22:38 Either that line reader thing isn't working Mar 14 21:22:45 or the bit meant to be writing lines to the file isn't working Mar 14 21:22:51 out.println does Log.i(MyActivity.class.getSimpleName(), ...) Mar 14 21:23:05 Meron: do you know how to use eclipse debug ? perhaps you should try that and add some breakpoints Mar 14 21:23:47 the problem is that his exception has nothing to do with this loop, or reading or writing files Mar 14 21:23:57 yeah, exactly Mar 14 21:24:16 birbeck that is not the problem Mar 14 21:24:18 the problem is Mar 14 21:24:21 what I said it is Mar 14 21:24:30 any other "application" problem can be safely ignored Mar 14 21:24:31 but he wont show the manifest or any context besides the loop, so there is nothing anyone can do to help Mar 14 21:24:34 because it doesn't happen Mar 14 21:24:57 the problem is that Mar 14 21:24:59 is anyone using an orm for android? Mar 14 21:25:04 the thing meant to be writing lines to a file Mar 14 21:25:06 DOESN'T Mar 14 21:25:08 because java is retarded Mar 14 21:25:15 I love that reason Mar 14 21:25:18 Did you check that it actually reaches the code? Mar 14 21:25:20 let's just relax Mar 14 21:25:25 yeah thats my favorite Mar 14 21:25:29 It's so incredibly constructive Mar 14 21:25:35 its always the language, not the developer Mar 14 21:25:46 What was the stack trace? Mar 14 21:26:02 to be fair, that is a bit of a strange exception trace Mar 14 21:26:12 SimonVT: a NPE initializing the Application context Mar 14 21:26:28 that happened to me when i would make new fragments Mar 14 21:26:33 Soo.. Manifest/custom Application class fuckup? Mar 14 21:26:37 solution was to manage the fragments from a controller Mar 14 21:26:39 apparently in initializeJavaContextClassLoader Mar 14 21:26:48 SimonVT: probably Mar 14 21:26:53 SimonVT: that was what i said, but he wont show the application tag Mar 14 21:27:02 what application tag? Mar 14 21:27:03 but he says the problem goes away when he modifies the onCreate in his Activity Mar 14 21:27:05 * JesusFreke shrugs Mar 14 21:27:17 Meh, useless Mar 14 21:27:57 he is under the impression that eclipse creates and manages the AndroidManifest.xml though Mar 14 21:28:01 It does Mar 14 21:28:03 lol Mar 14 21:28:27 then it must be java Mar 14 21:28:34 i give up, back to work Mar 14 21:28:45 it doesnt meron Mar 14 21:29:03 eclipse generates one, it does not manage it Mar 14 21:29:07 same with makefiles Mar 14 21:30:02 why should I have to deal with some random manifest file anyway? Mar 14 21:30:15 This is something that I should never need to touch Mar 14 21:30:41 sometimes eclipse just screws up things. If you have unexplainable errors that nobody else has on the internet, clean the project and try, then try to create a new project. Mar 14 21:30:57 Meron, that couldnt be further from the truth Mar 14 21:31:04 you must put in versions, permissions, etc, yourself Mar 14 21:31:17 Meron, are you sure you do not confuse the files in your bin/ folder with the manifest.xml? Mar 14 21:32:03 he's just trolling, why are you feeding him ? Mar 14 21:32:13 i know where the manifest.xml is Mar 14 21:32:33 bankai_, no, i think he's legitimately ignorant Mar 14 21:32:45 ahh i think you mean arrogant Mar 14 21:32:59 ignorant with a big black hat Mar 14 21:33:02 well Mar 14 21:33:07 that NPE stopped happening Mar 14 21:33:33 I think I finally figured out how to push a library to maven Mar 14 21:33:36 Only took me a few hours Mar 14 21:34:21 while ((correctString = saveReader.readLine()) != null) Mar 14 21:34:25 if the stuff under this Mar 14 21:34:28 never happens Mar 14 21:34:39 does that means that correctString is equaling null? Mar 14 21:35:06 if you ran it in debug and set a breakpoint you'd know the answer to that yourself Mar 14 21:35:19 http://developer.android.com/tools/debugging/debugging-projects.html Mar 14 21:35:35 gsg Mar 14 21:35:43 Meron: yes. after that while loop terminates, correctString will be null Mar 14 21:35:52 but you're not doing anythin with correctString after that Mar 14 21:36:11 i am Mar 14 21:36:22 not in the code you pasted Mar 14 21:36:23 * JesusFreke shrugs Mar 14 21:36:25 i know Mar 14 21:36:30 but we dont Mar 14 21:36:36 so if I have a file of five lines Mar 14 21:36:45 that while loop appending correctstring to an arraylist Mar 14 21:36:52 the last entry in the arraylist will be "null" ? Mar 14 21:36:54 no Mar 14 21:36:59 okay Mar 14 21:36:59 good Mar 14 21:37:11 but that means the first line in the file is null Mar 14 21:37:14 and I don't know WHY Mar 14 21:38:03 either debug into it, or throw more logging in Mar 14 21:38:16 i set a breakpoint Mar 14 21:38:18 read the file in its entirety and print it out to logcat (assuming it's only a few lines, or empty) Mar 14 21:38:51 so, while x = z.readline() in a while loop will do that? Mar 14 21:39:28 even better, split it up Mar 14 21:39:31 how dya get a breakpoint to show you the value of a variable at that breakpoint Mar 14 21:39:35 hi there. there is a way to see step by step instruction sequence while debugging an android app Mar 14 21:39:36 so you will know what line goes wrong Mar 14 21:40:36 is it possible to see the acutal bytecode "assembler" instructions in the debugger? Mar 14 21:41:13 ultrixx: not afaik. I want to write a smali plugin for IDEA at some point Mar 14 21:41:26 JesusFreke: that would be cool Mar 14 21:45:31 http://pastebin.com/Fndus5CS Mar 14 21:45:34 is that valid code? Mar 14 21:46:03 Will that write Number.toString to the file? Mar 14 21:49:02 depends, I believe you also have to set the permission in the manifest Mar 14 21:49:11 Please tell me how to do that Mar 14 21:49:16 At the moment, it's not writing to the file Mar 14 21:49:18 I don't understand why Mar 14 21:49:25 yes, that far was clear Mar 14 21:49:31 but you can google the rest Mar 14 21:50:25 no, no I can't Mar 14 21:50:33 Nothing I google gives any insight into WHY a printwriter doesn't work? Mar 14 21:50:41 ALL I WANT TO FUCKING DO is write lines into a file Mar 14 21:50:46 Why does java make that SO FUCKING HARD? Mar 14 21:51:11 If this was python you write File.write(stuffToWrite+"/n") Mar 14 21:51:13 THATS IT Mar 14 21:51:15 ONE LINE Mar 14 21:51:20 weren't you in here yesterday with the same complaint? Mar 14 21:51:21 If you dont set permissions for your app, Android blocks your actions for safety of the end user Mar 14 21:51:21 And it WORKS every time Mar 14 21:51:30 Whose dumb idea was that Mar 14 21:51:37 Google Mar 14 21:52:14 It could be the problem, but you arent showing any more relevant code or errors, so Im just guessing in the blue Mar 14 21:52:27 "Your application always has permission to read and write files in its internal storage directory." Mar 14 21:52:38 There IS no more relevant code and NO errors! Mar 14 21:52:42 That's it! Mar 14 21:52:47 whaaat.. here again with the same problem Mar 14 21:53:02 Theres been some progress Mar 14 21:53:25 If Java's IO libraries weren't so ridiculously higgled-piggled, with fifty different methods for writing to a file this would be solved Mar 14 21:53:33 http://pastebin.com/Fndus5CS Mar 14 21:53:36 SIMPLE. Mar 14 21:53:37 CODE. Mar 14 21:53:37 Joozey_: your 's are weird.. and I think I'm using utf8 Mar 14 21:53:39 Why no work!? Mar 14 21:54:10 Quacked, I know, I tried everything but hexchat doesnt budge Mar 14 21:54:16 Joozey_: :D Mar 14 21:54:20 is also weird Mar 14 21:54:58 xchat didnt have the problem, didnt change any language settings or character encoding Mar 14 21:55:05 How the fuck do I make printWriters work correctly Mar 14 21:55:09 maybe the actual java library is bugged Mar 14 21:56:20 Meron: close the PrintWriter, not the FileOutputStream Mar 14 21:56:49 the print writer likely buffers its output, so what you've written is still in it's buffer when you close the FileOutputStream out from underneath it Mar 14 21:57:27 is that the problem? Mar 14 21:57:31 how do I close the printwriteR? Mar 14 21:57:35 writer.close(?) Mar 14 21:57:36 writer.close() Mar 14 21:57:39 ... Mar 14 21:58:13 close it instead of the FileOutputStream (it will also close the FileOutputStream when you close the PrintWriter) Mar 14 21:58:14 can that really prevent it from writing to the file? Mar 14 21:58:28 I just explained exactly how it can Mar 14 21:59:06 I need to find that pastebin link that was posted here yesterday Mar 14 21:59:11 it had a very nice irc command Mar 14 21:59:26 JesusFreke: you never explained how it can Mar 14 21:59:27 I got logs Mar 14 21:59:29 I think this webirc Mar 14 21:59:31 is cutting bits off Mar 14 21:59:35 "(02:56:49 PM) JesusFreke: the print writer likely buffers its output, so what you've written is still in it's buffer when you close the FileOutputStream out from underneath it" Mar 14 21:59:41 Ah Mar 14 21:59:44 Never came through for me Mar 14 21:59:48 Quacked, but depends on the time of day Mar 14 21:59:50 ah, weird Mar 14 22:00:26 Joozey_: it looked something like /ignore Moron or something Mar 14 22:00:50 :P Mar 14 22:00:52 holy shit Mar 14 22:00:53 that was it Mar 14 22:00:56 i had no idea Mar 14 22:01:00 thank you Mar 14 22:01:09 n Mar 14 22:01:10 p Mar 14 22:01:17 Meron: isn't it great when the pain wears off? Mar 14 22:01:21 (hit enter too soon :p) Mar 14 22:01:28 indeed Mar 14 22:01:35 ultrixx: onto others :( Mar 14 22:16:36 you can also flush(), but it was quite a nasty little bug. Mar 14 22:20:22 Cya for now Mar 14 22:20:27 Cheers Mar 14 22:30:09 Hi guys! I need to have an advice. I want a notification system I see I can with the google play but I'm not interesting because I have no user data on my WS. Then I want create on the application a service who check all the X times on the WS. Mar 14 22:30:42 According to you, my service should start by AlarmManager or use a thread for a timer ? (Or other possibilies welcome) Mar 14 22:34:21 Neither. Start a service sticky, then use a self calling post delayed runnable to call your check method Mar 14 22:34:31 remove the callbacks for that runnable in onDestroy of the service Mar 14 22:38:34 Well if I understand (sorry my english is horrible, like my skill in android ><) You say : I start a service and all X times I go check, the X times is monitoring by the services himself? Mar 14 22:39:14 ok disconnect :-( Mar 14 22:50:28 how can i make a button not intercept the onClick event? I have a checkbox inside of a view that is used in a listview w/ an adapter, and I want the whole item view to receive the event, not the checkbox (tried w/ toggle button also) Mar 14 22:50:35 i tried setting clickable to false, didn't work Mar 14 22:51:06 works fine w/o the checkbox or button in the view, but as soon as i add it, stale Mar 14 22:51:44 speakingcode-wor: not sure what you're trying to do, but have you tried extending a button and onveriding the onClick not calling the super ? Mar 14 22:52:50 i have a list view, its items are generated from an array using an array adapter. i want each item to act as a switch. when i set listView.onItemClickListener(...) it works fine Mar 14 22:53:29 hmm if i have a service that start thread to listen on socket then i probably should extend IntentService instead Service ? Mar 14 22:53:29 BUT when I add a button or checkbox into the view used for each item, the listview does not respond to item clicks. the button (or checkbox) intercepts them and does not pass them down the tree Mar 14 22:54:11 hetii if you're expressing your async requests as intents, yes Mar 14 22:54:14 ahh ok, well try that button thing and see how it goes. I had to do it for .... i can't recall :S Mar 14 22:55:39 speakingcode-wor: maybe android:duplicateParentState="true" will help Mar 14 22:57:36 i;ll give it a whirl. i gotta go, but thanks Mar 14 22:57:48 speakingcode-wor: currently i i use this code: http://java.pastebin.ca/2332502 Mar 14 22:59:12 speakingcode-wor: So if we take a fact that is a service that should listen all the time then the onStartCommand() should be called once Mar 14 22:59:37 so as i understand only only one intent should be passed. Mar 14 23:02:19 galaxy s4 livestream Mar 14 23:02:20 http://www.youtube.com/watch?v=IDXILsX7_QI&feature=player_embedded#! Mar 14 23:03:08 so if i have right, its important from where i start this service, i suppose the onCreate() method in main activity is not a best place, cause the activity could be destroyed, or even application and when it will be restarted then second thread with my network listener will be created Mar 14 23:03:30 Do i understand it correct ? Mar 14 23:08:19 7 minutes late! Mar 14 23:08:21 omg Mar 14 23:08:36 you think #apple people are watching Mar 14 23:09:28 what am i looking at? Mar 14 23:10:05 presentation of galaxy s4 Mar 14 23:10:14 that was supposed to have startet 11 mins ago Mar 14 23:10:30 tardy Mar 14 23:10:54 wait, starting now Mar 14 23:11:12 yeah, lights dimming Mar 14 23:16:56 Quacked: thanks, playing on the Nexus Q Mar 14 23:20:33 gee samsung really don't like to change their design, do they ? Mar 14 23:20:45 haha nope Mar 14 23:20:59 they are so ugly >_< Mar 14 23:21:07 they copy apple too much, by never changing :) Mar 14 23:21:21 still have hardware buttons Mar 14 23:21:33 Did they really have to have a non-native English speaker to announce all this? Mar 14 23:21:37 should have made it like http://api.sonymobile.com/files/xperia-z-white-1240x840-8ff005dc9465d780126a15f59efcc7bc-opt.png Mar 14 23:21:45 It needs soft buttons like nexus? Mar 14 23:21:54 yes Mar 14 23:22:34 have you got a link to the livestream? Mar 14 23:22:43 http://www.youtube.com/watch?v=IDXILsX7_QI&feature=player_embedded#! Mar 14 23:22:47 youtube Mar 14 23:23:06 youtube > live > samsung unpacked Mar 14 23:23:25 thanks Mar 14 23:24:07 hey guys, I'm caching a bitmap to disk using DiskLruCache, but I'm seeing this strange thing when I retrieve it, sometimes the bitmap shows as blank on the ImageView i'm setting it to. Mar 14 23:24:11 anyone interested enough to buy one ? Mar 14 23:24:26 i will never buy samsung Mar 14 23:24:45 is it coz of the ROM or hardware ( or both ) ? Mar 14 23:24:51 both Mar 14 23:25:16 i have my nexus s, galaxy nexus, galaxy tab, etc Mar 14 23:25:20 wonder why they put the back button on the right, that's a bit weird Mar 14 23:25:21 birbeck: i am not a fanboy but my s3 is really a good phone Mar 14 23:25:28 i have a gs3 and note2, but the company bought them for me Mar 14 23:25:51 ultrixx: I used my Note for a long time and really loved it, but got sick of it with 4.1.2 update Mar 14 23:25:56 it was really really buggy Mar 14 23:25:57 my samsung tablet is alright, but their latest ROM upgrade pissed me off, i don't think i'd buy another one... Mar 14 23:26:13 just got the sony xperia z, there are SO many little things that make it far better Mar 14 23:26:19 funny with infrared on cell phones Mar 14 23:26:21 build and software Mar 14 23:26:34 wabz: i like sony phones, too. had a mini pro Mar 14 23:26:37 i use my one x and nexus 4 Mar 14 23:26:40 130 grams for a 5" phone... do like Mar 14 23:28:15 oh god... no usecases in song Mar 14 23:28:18 somebody kill me now Mar 14 23:28:38 lol that cam Mar 14 23:29:07 Chainfire: spare me a bullet Mar 14 23:30:01 it's too cheesy IMHO Mar 14 23:30:27 xperia z weighs 146 grams Mar 14 23:30:27 hmm Mar 14 23:31:27 sound & picture sounds haunted Mar 14 23:31:53 haunted? Mar 14 23:31:55 xperia z needs all that extra rubber to make it waterproof :p Mar 14 23:32:23 Quacked: in the S IV video Mar 14 23:32:25 this is so cheesy Mar 14 23:32:30 i feel like XPERIA is gonna be better Mar 14 23:32:31 you can add sound to a picture Mar 14 23:32:33 yeah it's pretty awkward Mar 14 23:32:36 the jeremy kid is awesome :P Mar 14 23:32:45 he _can_ dance though Mar 14 23:33:00 i don't get this photo and sound thing -- what kinda file format is that ? ( is it just video? ) Mar 14 23:33:01 belgianguy: yeah, just wondered about the word haunted Mar 14 23:33:17 bankai_: I'm guessing jpg + some audio file Mar 14 23:33:18 something you need a samsung tv to view bankai_ Mar 14 23:33:35 wabz: seriously ? :S Mar 14 23:33:38 and the gallery app will play sound if file is there Mar 14 23:33:51 Quacked: it's a nice feature though Mar 14 23:34:01 I'm impressed already Mar 14 23:34:08 yeah, it is Mar 14 23:34:17 it sounds a bit futuristic Mar 14 23:34:32 I can't see people using it? Mar 14 23:34:34 even though a few old cameras had the same thing iirc Mar 14 23:35:02 is the fpu in the most recent phones capable of computing double numbers in the fpu? Mar 14 23:35:10 wabz: with enough pr and making it cool enough, maybe it could start a trend Mar 14 23:35:15 or just floats Mar 14 23:35:26 what is fpu? Mar 14 23:35:36 floating point unit Mar 14 23:36:29 so far the s4 looks better than I expected Mar 14 23:36:37 will read more tomorrow Mar 14 23:36:46 OCR of asian text would be very impressive Mar 14 23:36:49 its still a samsung Mar 14 23:36:52 but everything the show now is Google Translate Mar 14 23:36:56 cyoy Mar 14 23:37:01 copy* Mar 14 23:37:05 yeah Mar 14 23:37:07 gnite Mar 14 23:37:21 yeah, i thought translate had all those features already Mar 14 23:37:41 and does Sammy have their own translate service? Mar 14 23:37:54 or is it really just Google Translate on the backend? Mar 14 23:38:01 I haven't heard of it before Mar 14 23:38:09 Might be google translate Mar 14 23:40:26 are there any free english dictionary api out there in java? Mar 14 23:42:24 the stage is nice though Mar 14 23:43:30 true Mar 14 23:43:59 Anything Sammy has won't be as good as gtranslate Mar 14 23:44:28 It's more Samsung than Android though Mar 14 23:44:53 i have a service that (i think) is running in a separate process since i'm getting a ClassCastException when i try to cast a BinderProxy to a local binder, but i never specified in my AndroidManifest.xml that i want the service to run in a different process. does anyone know how i might be ending up with a BinderProxy? Mar 14 23:46:07 instead of an IBinder that i'm expecting Mar 14 23:46:16 * jfpoole wonders if the S5 will be a Tizen phone and not an Android phone. Mar 14 23:47:19 The branding seems to put the Android brand in the shadow Mar 14 23:47:34 belgianguy: Exactly. Mar 14 23:47:58 Hi all Mar 14 23:48:04 As I see it, all things the presenting is like Android features Mar 14 23:48:41 does somebody knows how to release an app in google play on my customer's behalf? Mar 14 23:48:57 I mean, I am developing an app, but when I release it, he should appear as the developer Mar 14 23:49:08 make an account for him Mar 14 23:49:12 I see that developers do that Mar 14 23:49:13 waiting for SAMSUNG YOUM Mar 14 23:49:25 the flexibles Mar 14 23:50:22 canadiancow: I see, I should create an account for each customer I have, and put my contact as support contact, or something like that, right? Mar 14 23:50:25 acuarium: I think the developer center have a feature to publish true another account Mar 14 23:50:45 thrue* Mar 14 23:51:05 loffa: so, my customer should create an account anyway, or me on his behalf Mar 14 23:51:28 He can create a developer account and you can add it to your console Mar 14 23:52:24 403,537 watching now Mar 14 23:52:26 damn Mar 14 23:52:52 it was more before Mar 14 23:53:03 Ok, thanks loffa and canadiancow Mar 14 23:53:04 I found it too hard to watch, gonna read about it later Mar 14 23:53:23 so annoying Mar 14 23:53:41 yeah, the Broadway perspective can be quite over the top Mar 14 23:53:47 but that's the idea I guess Mar 14 23:54:02 a very American thing I assume Mar 14 23:54:38 if i return START_STICKY in onStartCommand() and the service will be killed by system, did the system will call also onCreate()? Mar 14 23:55:30 s-health - hahahha pathetic Mar 14 23:56:16 yeah, under 400k viewers now Mar 14 23:57:02 https://developers.google.com/events/io/ <-- anyone messed with that, sorry for offtopic Mar 14 23:57:26 i just found one :) Mar 14 23:57:55 well, at least it has a fully functional SELinux Mar 14 23:58:09 that's it? Mar 14 23:58:21 looks like it Mar 14 23:58:29 it wasn't as boring as last year's Mar 14 23:58:32 Chainfire: setenforce 0 ;p Mar 14 23:58:36 lol, cats! Mar 14 23:59:34 simon says! Mar 14 23:59:36 I hope users don't get confronted with the peculiarities of SELinux Mar 15 00:00:33 it makes it quite some safer though, something that Android needed Mar 15 00:01:48 all my fun :( Mar 15 00:01:55 too bad iOS is losing marketshare Mar 15 00:02:02 * Chainfire jumps ship to FirefoxOS Mar 15 00:04:31 kaneda^: try 01111111 Mar 15 00:04:48 Napalm, ascii Mar 15 00:04:52 i have a list of them already Mar 15 00:04:57 yuo want cats? Mar 15 00:05:02 sure Mar 15 00:05:17 11100111 Mar 15 00:05:27 * Jug6ernaut gives Chainfire $5 to switch to FirefoxOS Mar 15 00:05:32 i also got simon says, burgers and hot dogs, green eggs and ham Mar 15 00:05:42 8bit Mar 15 00:05:49 sounds like all the money I'll make over there Mar 15 00:06:05 lol after a few months maybe :P Mar 15 00:06:30 bowling Mar 15 00:07:29 spaceship Mar 15 00:08:47 pong! Mar 15 00:09:30 kaneda^: want all the codes? Mar 15 00:09:37 nope, i like figuring it out Mar 15 00:10:04 kaneda^: theres a special one that only works on Android phones Mar 15 00:10:13 oooooh :D Mar 15 00:16:16 the latest SDK tools dropped last month with a curious comment saying "Added new aapt feature to compile resources." I can't find any commits in frameworks/base/tools/aapt that would support this? does anyone know what's going on? Mar 15 00:16:54 how can i make the lazy list horizontal? Mar 15 00:17:53 kaneda^: theres an 8bit version Mar 15 00:18:17 Napalm, already found it Mar 15 00:19:41 jasta, was that the change that made it faster? Mar 15 00:20:20 https://developers.google.com/events/io/experiment-space <-- this is my favorite so far, or pong Mar 15 00:21:58 watup Mar 15 00:22:12 canadiancow: im not sure. you mean the one about caching resource ids? Mar 15 00:22:15 jasta, a quick search indicates that was a mistaken release note [cite: stackoverflow] Mar 15 00:22:24 yeah Mar 15 00:22:25 i see. Mar 15 00:22:45 ive been sniffing incremental aapt in the wind. i wondered if taht release note was confirming my suspicion :) Mar 15 00:22:48 does android factory reset/erase write zeroes? Mar 15 00:22:54 incremental aapt would be awesome :) Mar 15 00:23:10 jasta, where is the release notes? Mar 15 00:23:11 yes, it would, but how could it be incremental, it's a monolithic R.java Mar 15 00:23:16 and res.apk Mar 15 00:23:17 i want to see SVG rendering built in Mar 15 00:23:21 ah i see Mar 15 00:23:34 the resid caching is the best I'm hoping for right now Mar 15 00:23:41 for large projects, aapt takes a dastardly long time Mar 15 00:23:51 indeed Mar 15 00:26:03 not to mention, it's so terribly unreliable when you add/remove/change resources Mar 15 00:26:12 often need to nuke gen/ and start over Mar 15 00:26:21 and sometimes the res.apk Mar 15 00:26:29 who what Mar 15 00:26:36 aapt Mar 15 00:28:52 pfn: incremental is possible in the same way dx incremental is possible: a merge operation. Mar 15 00:29:14 Napalm, i looked up a list, i found all but two Mar 15 00:29:29 the individual lib project R.java files are transient already, so what you would need is to produce an intermediate resources.arsc for each lib-project, then implement aapt merge step to bring them together and generate the final R.java. the advantage, though, is that you will do no resource parsing or processing. Mar 15 00:29:39 no XML compilation, nothing. at that point you're just doing a data structure merge. Mar 15 00:29:47 little bit of I/O. Mar 15 00:29:52 and some memory Mar 15 00:33:14 I'm unhappy with google gui shit Mar 15 00:33:53 jasta, is there an incremental dx now? Mar 15 00:36:39 A root app can connect to the internet (or any other thing) wihtout requesting that specific permission right? Mar 15 00:42:11 can a Drawable or a PictureDrawable be resized? Mar 15 00:42:22 it requests the permission but is granted it Mar 15 00:42:29 I'm loading some images of which I don't know the dimensions beforehand Mar 15 00:42:41 pfn: yes there is Mar 15 00:42:42 if you are talking about lower level stuff like linux command line apps Mar 15 00:42:44 and I'd like to resize them, or set some bounds Mar 15 00:42:50 dx --dex --output master.dex a.dex b.dex c.dex Mar 15 00:44:21 f2prateek1, well, there is no such thing as a "root" app, per se Mar 15 00:44:27 no android apps run with root permissions Mar 15 00:44:42 they must exec commandline programs to perform work as root Mar 15 00:45:23 i found a nice helper class called roottools for that Mar 15 00:48:11 pfn if you build an app you can request most permissions and get them willy nilly Mar 15 00:48:16 if it was signed with same keys as the os Mar 15 00:48:39 sure, if your app is signed by the same keys, but that's usually not the case Mar 15 00:48:43 unless you're making your own rom Mar 15 00:49:04 I get your point Mar 15 00:49:19 I do that for a living so I guess thats first thing that came to mind Mar 15 00:52:19 Hi, when I running a thread with a while-loop it doesnt want to go into the if-sentence. The boolean (in the if-sentence) should be true, but it seems like the boolean doesnt want to change to true, when another thread is setting the boolean to true... I have been struggling with this problem for 2days and i cant figure out what im doing wrong:/ I hope somebody could take a look at my code, thanks Mar 15 00:52:27 http://pastebin.com/JW0fPYJB Mar 15 00:52:44 line 107, never gets true Mar 15 00:53:28 method in line 78, sets the boolean true. Mar 15 00:53:43 line 81, output true Mar 15 00:55:41 i even added a sleep on the thread to see if that was the problem Mar 15 00:55:46 didnt help:/ Mar 15 00:59:11 zalzice: I don't see anything obviously wrong Mar 15 01:00:09 setSource is definitely getting called? Mar 15 01:00:14 jepp Mar 15 01:00:43 when i do a breakpoint, i can see it gets true Mar 15 01:01:14 but in the thread the boolean is false:/ Mar 15 01:03:58 zalzice: wait, you're creating a new vehicleView in onCreate Mar 15 01:04:17 but you're not adding it to the activity or anything Mar 15 01:04:54 did you mean to do vehicleView = findViewById(R.id.); Mar 15 01:05:43 its using XML Mar 15 01:05:54 right. I assume you have a VehicleView in your xml, right? Mar 15 01:05:57 in your layout xml Mar 15 01:06:08 yep Mar 15 01:06:27 Mar 15 01:06:29 But in onCreate, you're creating a totally separate VehicleView, that has nothing to do with the VehicleView that's being displayed :) Mar 15 01:06:42 oh Mar 15 01:07:02 so you're calling setSource on the VehicleView you manually create in onCreate - not on the one that was inflated as part of your layout Mar 15 01:07:18 so im sending it to "somehere_I_even_dont_know" Mar 15 01:07:24 ah Mar 15 01:07:32 you need to specify an android:id for the VehicleView in the layout Mar 15 01:07:36 so how can i send it to the "xml" one" Mar 15 01:07:38 and then use findViewById to get it Mar 15 01:07:47 ah Mar 15 01:09:01 just by adding: android:id="@+id/vehicleView" in the xml right? Mar 15 01:12:17 thanks for your help Mar 15 01:12:23 i will see if this helps Mar 15 01:14:31 JesusFreke: YOURE MY JESUS Mar 15 01:14:32 ! Mar 15 01:14:39 :) Mar 15 01:15:02 Seriously if you were right beside me now, i would have kissed you, lol :)) Mar 15 01:15:17 * JesusFreke runs away screaming Mar 15 01:15:22 :p Mar 15 01:15:29 thanks! Mar 15 01:31:40 has anyone had issues with caching bitmaps Mar 15 01:31:58 everytime I load a cached bitmap, sometimes it shows up blank Mar 15 01:32:12 how are u caching it? Mar 15 01:33:07 I did both in memory and on disk. I used LruCache for memory and DiskLruCache for disk... Mar 15 01:34:42 I followed the guide on dev.android.com about handling large bitmaps Mar 15 01:35:22 its possible its just being evicted Mar 15 01:36:37 that would return null, which may look like a blank bitmap Mar 15 01:36:50 cbates: I was able to log the general workflow here: http://pastebin.com/uCFmD2AZ Mar 15 01:37:19 cbates: this log was taken from a GridView with 1 bitmap Mar 15 01:39:03 are u calling bitmap.recycle()? Mar 15 01:39:11 cbates: no. Mar 15 01:39:44 the logs seem to indicate that the system cleanup the bitmap and removed it from the cache Mar 15 01:39:59 odd since the cache is suppose to be a strong reference Mar 15 01:40:12 which should have prevented that Mar 15 01:42:03 how big is the bitmap? Mar 15 01:42:39 cbates: well original image is pretty large, but I scale that down to fit in a 200dp x 150dp imageview Mar 15 01:43:01 and stored the scaled version? Mar 15 01:43:13 yes Mar 15 01:44:23 best guess is the system is starved for memory and evicted the cache Mar 15 01:44:52 you may have to store the bitmap in perminate storage or sqllite Mar 15 01:44:55 I lifted the code to do the processing from android docs... https://gist.github.com/alexfu/5166894 Mar 15 01:45:27 cbates: I still have yet to test this on a different device Mar 15 01:45:46 u have a device with 2gig of ram? Mar 15 01:46:35 cbates: i've been testing on a device with 501MB of ram Mar 15 01:46:52 wow thats an old device Mar 15 01:47:34 cbates: yea Mar 15 01:47:44 looking into when Iam suppose to call bitmap recycle myself. No calling it may cause a memory to climb and force a gc Mar 15 01:47:51 err not calling it Mar 15 01:48:01 hi, does anyone here have experience with billing v3 ? Mar 15 01:49:00 when totally done with your bitmap call bitmap.recycle , bitmap = null Mar 15 01:49:20 pfn: thanks Mar 15 01:49:30 mobydev: what? billing v3 doesnt use any bitmaps Mar 15 01:49:44 think that was for me :-) Mar 15 01:50:01 the bitmap thing was in response to cbats Mar 15 01:50:04 er, cbates Mar 15 01:50:19 but i have a question about billing v3 Mar 15 01:50:40 ahh well i have experience with v2 and v3, moreso on v2 though since im still using the superseeded scthuff :) Mar 15 01:50:47 I have uploaded my app to the dev console, added some purchase items Mar 15 01:51:36 mobydev: if I cache a bitmap to memory, and call bitmap.recycle, wouldnt that defeat the purpose of the cache? Mar 15 01:52:48 alexfu: did u bitmap.recycle the original large bitmap? Mar 15 01:53:04 cbates: no Mar 15 01:53:50 alexfu: probably want to recycle it after you are done. I assume you scaled it down and never use the large one again Mar 15 01:54:23 when i run my app on the device and onQueryInventoryFinished is called, the inventory says there are no sku's Mar 15 01:54:43 so, i am trying to figure out why Mar 15 01:54:51 Has anyone else had an issue with cut-off text in LogCat in Eclipse Juno? Mar 15 01:54:52 On OS X Mar 15 01:56:01 mobydev: i wouldn't know, I dont use the trivialdrive example :/ Mar 15 01:56:39 and docs doesn't seem to mention any such method so it must be porject specific (not entirely necessary) Mar 15 01:56:44 perhaps looking at the sourcecode will help? Mar 15 01:57:41 hey guys Mar 15 01:58:12 are you sure you're entering in the correct sku though? Mar 15 01:58:39 also is that sku published already for your specific app? Mar 15 01:58:52 cbates: the original image never really gets stored in memory... Mar 15 01:59:13 also, has 2-3 hours passed since you uploaded it as a draft? Mar 15 01:59:15 I have a question, I have listview with lets say the entries Cat, Dog, Snake, Hamster. Upon selecting one of the entries in the listview, I want it to show the picture of that animal in an activity that follows. Mar 15 01:59:50 What would be the best way to go about doing this? Right now, I've been creating a new actiivty for each, and going to link them that way. Mar 15 02:00:13 Rob|boR: whatever is best in your opinion :) Mar 15 02:00:19 well Trinity, as far as i know, you just call queryinventorysomething, then the onQueryInventoryFinished is called and 'inventory' has maps of the skus and purchases Mar 15 02:00:21 cbates: i use http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html#inJustDecodeBounds to determine the height/width of the image so then I can calculate the sample size Mar 15 02:00:27 so that part is probably ok Mar 15 02:00:45 mobydev: yea, i just took a look at trivialdrive example Mar 15 02:00:45 is there a way to have only one activity, and have the picture change according to the option selected in the listview? Mar 15 02:00:51 how long has it been drafted for? Mar 15 02:01:05 Rob|boR: there is Mar 15 02:01:15 registered on the console almost 24 hours ago Mar 15 02:01:33 and according to the doc of inJustDecodeBounds, the resulting bitmap will be null to save space Mar 15 02:01:44 is there anything in specific I should research on? Mar 15 02:02:19 I will check the item sku settings to make sure those are ok Mar 15 02:02:24 brb Mar 15 02:02:58 Rob|boR, depends on what else you want accomplished. I can think of a lot of things that can help you. SharedPreferences, Bundles, etc Mar 15 02:03:00 BitmapFactory.decodeFile returns a Bitmap from decodeSampledBitmap in the code you showed me Mar 15 02:03:28 nope basically that simple lol. if I choose cat from the listview, want it to open a new activity and show that picture. Mar 15 02:03:47 cbates: yes, that is the scaled down bitmap Mar 15 02:03:57 cbates: correct? Mar 15 02:04:41 what i mean is, all of the following can help you accomplish what you want. SharedPreference is a good choice if you want to reuse the selection later. Bundle is a good option if you want a quick easy way to send information to your next activity Mar 15 02:04:51 think thats the original, do you call decodeSampledBitmap with the imageUri of the large bitmap? Mar 15 02:05:11 cbates: yea Mar 15 02:05:13 You can even do a FileIO setup with BufferedWriter/Reader if you want to the selection to persist across uninstalls Mar 15 02:05:39 hmm okay, I will look into sharedpreference then Mar 15 02:05:41 Rob|boR, http://stackoverflow.com/questions/768969/passing-a-bundle-on-startactivity :) Mar 15 02:06:29 sorry I see, so that would return null Mar 15 02:09:16 cbates: the final scaled down bitmap is 612 - width and 816 - height. Mar 15 02:09:43 cbates: thats a lot bigger than I would of have thought.. target size if like 200dp - width and 150dp - height... Mar 15 02:09:49 *is Mar 15 02:10:11 target size = imageview dimens. Mar 15 02:10:46 has anyone used bouncy castle with android? Mar 15 02:10:57 it all sounds lil a memory problem Mar 15 02:11:15 err like a memory problem Mar 15 02:11:37 u may want to play with writing it to the disk Mar 15 02:14:33 cbates: i tried using disk cache, still same thin Mar 15 02:15:37 what did u set the cache size to? Mar 15 02:17:37 cbates: disk cache to 10MB max size Mar 15 02:19:39 cbates: also, the "blanks" are different colors depending on the image. and they are usually of similar color of the overall image... Mar 15 02:19:45 is there any way to know if the service i'm about to bind to is going to be local or remote? Mar 15 02:20:30 i know i could do instanceof BinderProxy in onServiceConnected(), but i'd prefer to find out beforehand if possible Mar 15 02:20:48 alexfu: thats odd, so not null then Mar 15 02:21:15 cbates: yea, definitely Mar 15 02:22:09 cbates: I will try using this method instead: http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap(android.graphics.Bitmap, int, int, boolean) Mar 15 02:23:15 good luck Mar 15 02:23:28 I've used that method before and its worked pretty well Mar 15 02:24:03 though it still sounds like a cache problem Mar 15 02:24:22 cbates: thanks Mar 15 02:24:43 cbates: been spending 2 days on this problem so far Mar 15 02:25:08 the colors just don't make any sense Mar 15 02:25:20 back Mar 15 02:25:29 I could see the cache reloading, or purging Mar 15 02:25:43 but having corrupt data is just odd Mar 15 02:25:51 well, i checked the public key and the items. all seems ok. no idea why the sku list is empty Mar 15 02:30:15 http://appleinsider.com/articles/13/03/07/researchers-bypass-android-encryption-by-exposing-phones-to-freezing-temperatures Mar 15 02:30:52 cbates: alright, i'm out of here. thanks for your time. if i get this figured out, i'll let you know Mar 15 02:31:00 the irony, that the phone test was running ICS :) Mar 15 02:31:18 thanks really interested in knowing whats going on Mar 15 02:31:34 working on bitmap stuff right now as well Mar 15 02:32:33 Any idea why the twitter app could be having the read/write call log permission https://play.google.com/store/apps/details?id=com.twitter.android#?t=W251bGwsMSwxLDIxMiwiY29tLnR3aXR0ZXIuYW5kcm9pZCJd Mar 15 02:33:14 all the better to snoop on you my dear Mar 15 02:33:25 but seriously, no clue Mar 15 02:34:33 f2prateek1: decompile it and have a look ;) Mar 15 02:35:10 f2prateek1: its listed as default though Mar 15 02:39:17 so reading the docs, https://developer.android.com/reference/android/Manifest.permission.html#READ_CALL_LOG ; does it come from their targetSdkVersion being less than 16? Mar 15 02:41:59 In a regular listview, I'ma able to link the item selected with a switch statement as shown here: http://pastie.org/private/tdwkla8jzhldufghvrygdq , but in a fragment, it does not allow me to use the same format. How would I go about creating a switch for a listview inside a fragment? Mar 15 02:45:18 Rob|boR, http://developer.android.com/training/basics/intents/result.html#ReceiveResult Mar 15 02:47:37 um.. Mar 15 02:55:29 is there a good or recommended way for managing digital goods per sku ? Mar 15 02:55:56 a good way to implement it...? **** ENDING LOGGING AT Fri Mar 15 02:59:58 2013