**** BEGIN LOGGING AT Tue Apr 02 02:59:58 2013 Apr 02 03:44:40 Has anyone used setDefaultUncaughtExceptionHandler and Thread.UncaughtExceptionHandler to log and report all uncaught exceptions? Apr 02 03:54:25 rburton-: why? You already get that information via google play Apr 02 03:54:28 hey guys Apr 02 03:54:37 * JesusFreke kills him softly Apr 02 03:54:49 Trying to see how to handle reporting uncaught exceptions in Android Apr 02 03:55:18 rburton-: if your app is in the play store, you can see the crash reports (including the exception message and trace) in the developer console Apr 02 03:55:37 Ah okay so this stuff is automatically captured and reported. Awesome Apr 02 03:55:41 yep Apr 02 03:56:02 I guess it'll be good to properly handle such cases and let the user know it'll be looked at Apr 02 03:56:03 I'm in the proceess of building a small app. One part of the app will play music through a music player I designed. Now the music files are huge, should I have the audio streamed? or have it in the package with the app?? or some other approach, any help is greatly appreciated Apr 02 03:56:08 although i've heard there are services out there that capture more information about crashes Apr 02 03:56:21 I don't know of any offhand Apr 02 03:56:57 KillmeSoftly: define "huge" :) Apr 02 03:57:02 there any way to set the drawable bounds of a button leftDrawabe (or right for that matter) there is the compound stuff but it seems to have no affect ? Apr 02 03:57:03 are we talking hundreds of megabytes? Apr 02 03:57:12 right now im going with the streaming way...but it is a lot of data usage...but the files are too big to have them in the app Apr 02 03:57:29 altogether about 1.5 gigabytes Apr 02 03:57:47 each file a few hundred megabytes Apr 02 03:58:17 KillmeSoftly: there's a way to provide large files like that via the play store. I'm trying to remember what it's called Apr 02 03:59:01 hm Apr 02 03:59:42 i guess ill just stream them from my server, lots of data usage but no way around it i suppose Apr 02 03:59:54 thanks for your input guys Apr 02 04:00:02 KillmeSoftly: there's a way to do it from the play store Apr 02 04:00:10 I just can't remember the term :) Apr 02 04:00:20 ill look around for it Apr 02 04:00:23 thanks Apr 02 04:00:47 OBB files Apr 02 04:00:48 perhaps my spiffy new android 4 book has something to say about it.... yes im trying to make you jealous Apr 02 04:00:49 that's it :) Apr 02 04:00:57 ohh yess Apr 02 04:00:58 I kept thinking OOB, but I knew that wasn't it Apr 02 04:01:01 KillmeSoftly: http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html Apr 02 04:01:01 how could i forget Apr 02 04:01:13 thank you thank you all Apr 02 04:07:35 Is it bad I have 60+ pending linkedin invites that I never accepted or even looked at? Apr 02 04:08:01 Seems like people just send them out randomly Apr 02 04:08:14 rburton-: i hate it when recruiters do it Apr 02 04:08:26 They're not recruiters either :( Apr 02 04:09:20 I had a recruiter blast me a message and I told him a) It's unprofessional and b) He mustn't care about his clients. The only people you get via that is a) those that need a new job e.g., fired or b) those that need a new job e.g., about to get fired. Apr 02 04:10:07 I have 20 items on my todo list before I can call this client application production ready Apr 02 04:10:37 I hope to 'jazz up' or give the apperance of it being jazzed up by then :) Apr 02 04:11:07 rburton-: I have 53 code items and 23 + Illustrator/PS tasks Apr 02 04:11:11 your lucky Apr 02 04:11:14 :) Apr 02 04:11:17 I have a small application :D Apr 02 04:11:39 mine isn't big at all Apr 02 04:11:40 Basically, take a picture, record video, send message, receive messages, post message, terminate chat, etc. Apr 02 04:12:03 but I need it to be different, and look good Apr 02 04:12:07 The backend is pretty much done without any optimizations. no caching etc. so it'll be interesting once I flip back to that next Apr 02 04:12:20 StingRay_: where do you get your creative idea's from? Apr 02 04:12:23 dribbble.com? Apr 02 04:12:28 erm no Apr 02 04:12:38 17 years of being an artist Apr 02 04:12:47 so dribbble.com? ;) Apr 02 04:13:34 dont even know what that is Apr 02 04:13:40 * StingRay_ looks Apr 02 04:13:41 Check it out. You may like it Apr 02 04:13:42 StingRay_: if you could not afford Ai, what else would you use for vector on mac? Apr 02 04:14:06 i'm using inkscape … but, it seems like its not being updated any more on mac Apr 02 04:14:08 I use pixelmator but not sure how good it would be for what you need Apr 02 04:14:18 g00s: there is no other really Apr 02 04:14:23 i have p[ixelmator - its not really a vector app, although it does have some of that Apr 02 04:14:35 ffuu Apr 02 04:14:37 illustrator is too far advanced Apr 02 04:14:42 Oh this is sexy http://dribbble.com/shots/240005-iPhone-app-design-chat-app-UI-UX?list=searches Apr 02 04:14:49 it has tools that you just wont find Apr 02 04:15:11 rburton-: see I dont think so Apr 02 04:15:22 I think it iOS norm Apr 02 04:15:29 StingRay_ Today I worse jogging pants with a t-shirt that reads "I keep it real" ;) Apr 02 04:15:31 lot better than android norm Apr 02 04:15:32 :) Apr 02 04:15:42 I'm looking at the video button that pops up Apr 02 04:16:14 Trying to get idea's on how to improve the user experience on Android for writing messages Apr 02 04:16:16 * g00s looks to see if he can sell his kidney for a copy of Ai Apr 02 04:16:30 g00s: I'll offer $10 Apr 02 04:16:35 I'm assuming you drink a lot Apr 02 04:16:42 water :) Apr 02 04:16:44 g00s: tis a shame your not a student Apr 02 04:17:18 rburton-: got a sceeny of your current look ? Apr 02 04:17:30 I do in my e-mail Apr 02 04:17:40 you'll go fuck that's just wrong Apr 02 04:17:49 well maybe maybe not Apr 02 04:17:59 but point is, eveyone is just 1 opinion Apr 02 04:18:05 e-mail addy? Apr 02 04:18:12 deanwray@gmail.com Apr 02 04:18:46 aww StingRay_ you're gonna get spammed now Apr 02 04:18:53 dont care Apr 02 04:18:57 the logs for this channel wind up on the interwebs :( Apr 02 04:19:11 I was expecting a Priv Msg :x Apr 02 04:19:34 now you made rburton- mad, very mad ! Apr 02 04:19:35 well I was expecting to send it priv too Apr 02 04:19:41 but it's 5:20am Apr 02 04:19:45 hehe Apr 02 04:20:00 which means as of about 5 hours ago, I kinda do silly things Apr 02 04:20:14 I use to stay up 35+ hours a lot Apr 02 04:20:23 I stopped that for a while to get back on normal sleeping schedule Apr 02 04:20:58 I really need to style this listview better so it looks more like a dialog thread Apr 02 04:21:24 does look very stocky androidy Apr 02 04:21:32 yea :( Apr 02 04:21:49 Phase 1 - Get things functional and some what logically grouped. Apr 02 04:21:57 Then spend a few days trying to get the UI presentable Apr 02 04:22:00 well I'm in the middle of a theme engine thingy Apr 02 04:22:11 but will show you my chat thingy Apr 02 04:22:30 oh cant Apr 02 04:22:46 cause I've take out my lib loader :) Apr 02 04:22:53 ;) Apr 02 04:22:57 in the middle of ditching xml Apr 02 04:23:19 Nothing beats working on something and you go to show your friend... wait sorry the code won't compile. Apr 02 04:23:37 tbh I knew that when I was typing Apr 02 04:23:43 it just never occured to me Apr 02 04:23:47 5am ;) Apr 02 04:23:59 9:30 pm here :) Apr 02 04:24:56 I do think programmers should work with arty people sometimes though Apr 02 04:25:02 Why Apr 02 04:25:25 I rather enjoy it. I'm big on minimalism and art helps to redfine what's really needed Apr 02 04:25:45 rburton-: 9:30 pm here too :) Apr 02 04:25:46 as are all programmer designs that I have seen Apr 02 04:25:56 but sometimes I dont think it works Apr 02 04:25:57 g00s: that's because you live down the street ;) Apr 02 04:26:04 wut ? Apr 02 04:26:12 StingRay_ Look at sendfil.es Apr 02 04:26:14 I live in SF Apr 02 04:26:15 * g00s looks out the window Apr 02 04:26:19 * rburton- looks back Apr 02 04:26:23 hehe Apr 02 04:26:27 :) Apr 02 04:26:35 rburton-: i thought you guys were one hour behind, heh Apr 02 04:26:42 blasted dst Apr 02 04:26:51 Where do you live? Apr 02 04:26:57 i'm in AZ Apr 02 04:27:01 Phoenix Apr 02 04:27:06 Ah okay so the street widens :) Apr 02 04:27:11 I was in Utah for 2 years Apr 02 04:27:13 whats with sendfil.es ? Apr 02 04:27:22 Something I did a while back file sharing for friends Apr 02 04:27:47 oh the design ? Apr 02 04:27:54 The entire thing Apr 02 04:27:56 I like everything cept the button Apr 02 04:27:57 front and backend Apr 02 04:28:16 CTA buddy Apr 02 04:28:17 hehe Apr 02 04:28:22 the start now button dont agree with me at all Apr 02 04:28:36 I didn't spend anymore time on the site since no users Apr 02 04:29:11 bet its cause of that start now button ;) Apr 02 04:29:21 ;) Apr 02 04:29:24 maybe lol Apr 02 04:30:24 still need to figure out this compound padding Apr 02 04:30:25 :( Apr 02 04:30:31 :( Apr 02 04:31:23 dam silly buttons with drawables Apr 02 04:32:41 Wondering if I should use chat bubbles in my ListView or is that too common Apr 02 04:32:52 depends Apr 02 04:33:09 see thing is you kinda go for a look/feel thats consistant Apr 02 04:33:09 Just feels like a waste of space Apr 02 04:33:30 Considering something like http://dribbble.com/shots/886281-Chat-UI-WhatsApp-Redesign?list=searches Apr 02 04:33:36 so do chat bubble match the other ui design elements ? Apr 02 04:34:02 these designs are interesting http://dribbble.com/shots/963016-Menu?list=searches flat and can provide some information Apr 02 04:34:05 see thats about 80% like mine Apr 02 04:34:16 Going to play around with it for a few days Apr 02 04:34:55 Sort of worried that once I implement this in Android and if things go well. I'll have a bitch of a time doing it for ios Apr 02 04:35:10 Odd are... it'll fail :) Apr 02 04:38:02 I dont like android that much of late Apr 02 04:38:13 all the apps that are starting to look the same Apr 02 04:38:26 Its up to the engineers to change that Apr 02 04:38:36 and when you have like 200+ that do similar things, that all start to look the same…I think thats bad Apr 02 04:39:06 Exactly that's why i want to make sure the UI/UX experience is smooth and pleasurable. I want the application to be stable and support network hiccups etc. as well Apr 02 04:46:43 anyone know how this 'nexus media importer' works with usb devices -- why doesn't it need root to access a usb key? Is there a native hook it's using? Apr 02 04:50:57 oh never mind, found it on the googles http://developer.android.com/guide/topics/connectivity/usb/index.html Apr 02 05:38:03 Hello folks! Apr 02 05:54:41 hello thar Apr 02 05:54:48 oh hai Apr 02 05:58:01 hmm.. hiding join/parts has severely distorted my perception of time passing on IRC. Apr 02 06:00:12 ;) Apr 02 06:01:11 kroot: its been a while; but i was never able to get to work with Intent.EXTRA_STREAM Apr 02 06:01:34 i gave up and made the whole content provider public, which i was loathe to do Apr 02 07:12:39 I have setup eclipse so that a popup comes up when an exception occurs, that worked the first time, its more of an empty pop under now (just blinks in front of my eyes and disappears) Apr 02 07:18:37 Where can I control the description the user sees when searching for apps in the google store? Apr 02 07:18:42 - on the search page Apr 02 07:19:54 Is it the promo text? Apr 02 07:20:51 I know its not being taken from the description section itself. Apr 02 07:22:28 hello Apr 02 07:23:17 I'm guessing you can't change it for a submitted app? Apr 02 07:25:53 I use fragments for switching between 3 screens of my application. However, one of the screens contains GestureOverlayView, which doesn't do anything for now but just draw yellow line when user swipes the screen. The problem is, when horizontal swipe is made, the application switches fragment instead of passing the event to GestureOverlayWindow, which I would like. Is there a way to do this? Apr 02 07:26:41 basically I just want GestureOverlayView to have event priority over fragment manager Apr 02 07:48:20 I have an activity with an actively connected bluetooth socket. I am considering using a BindService to manage interactions between GUI elements and a bluetooth bi-directional data stream. How do I provide the bluetooth socket to the service after I connect the device? Apr 02 07:49:46 *BindService -> bounded Service Apr 02 08:01:53 hesperaux: why not let the service connect to the device then? Apr 02 08:02:23 appel1, that occurred to me, but until you said it I didn't realize that Ic an just pass the mac address into the intent of the service LOL Apr 02 08:02:32 :) Apr 02 08:02:35 it's late :) Apr 02 08:04:58 appel1, if i do that, how could my UI activity tell the service to do things, such as disconnect from bluetooth, etc. Apr 02 08:05:40 add methods to do that to your IBinder Apr 02 08:05:56 okay Apr 02 08:06:05 * hesperaux looks for videos on IBinder interface Apr 02 08:07:52 hesperaux: is your service just for internal use in your application? Apr 02 08:08:27 yeah, I think that's a safe assumption at this point - if it were to interact with a widget later, would that be considered part of my application? Apr 02 08:09:29 as long as it is just internal to your apk Apr 02 08:09:43 http://developer.android.com/guide/components/bound-services.html#Binding it describes complelty how to handle internal bound services as best practise Apr 02 08:10:06 since you just need to have one method in the binder interface, that returns you the service itself, and then you just call public methods on that service Apr 02 08:10:18 I have that page open, but I wanted to make sure it is what I should be using Apr 02 08:11:10 i'm gonna send a constant stream of data over bluetooth to gui elements (graphs and stuff). Is this the best way to do that? Apr 02 08:11:16 forgive me, i'm new at this Apr 02 08:11:27 its one way, that is totally acceptable Apr 02 08:11:40 well that's good enough for me :P Apr 02 08:14:01 hesperaux: what kind of device ? Apr 02 08:14:15 g00s, SSP embedded bluetooth module Apr 02 08:14:33 i'm going to read a few analog voltages with a microcontroller and send them back to android Apr 02 08:15:06 So I've been tasked with the job of developing a leader board system for an upcoming game release Apr 02 08:15:13 cool. sensor projects are fun Apr 02 08:15:19 g00s, ;D Apr 02 08:15:24 What am I in for? Apr 02 08:18:59 There are companies out there providing this service but our team would prefer not to have to rely on a third party Apr 02 08:19:13 hi! i am writing a simple application that uses a bluetooth connction and right now it is basically build upon the code from developer.android.com - my problem is that whenever i connect to the host, the connection gets accepted, but as soon as i am trying to read from the socket an exception is thrown - i read on stackoverflow that it might been caused by a higher version that 4.1 and i am running on Apr 02 08:19:14 4.2.2 - is this a common known problem? any ideas what i can do about it? Apr 02 08:20:10 they redid bluetooth stuff in 4.1; hesperaux and mlq are in for a wild ride :) Apr 02 08:20:50 lol, awesome Apr 02 08:20:52 so awesome Apr 02 08:21:01 I just spent two days getting Service Discovery Failed to go away Apr 02 08:21:09 haven't tried to read the socket yet Apr 02 08:21:11 oh god - so you are having similiar issues? Apr 02 08:21:35 bluetooth.. thats so 90ths Apr 02 08:21:37 I don't know if I've gotten as far as you mlq Apr 02 08:21:45 use WiFI direct Apr 02 08:21:53 timroes, more expensive Apr 02 08:22:09 the benefit of older tech is it's usually cheaper than new tech Apr 02 08:22:22 plus its' more universal Apr 02 08:22:38 hesperaux: yeah … but still, hw implementations vary a lot Apr 02 08:22:51 bt has always been a world of hurt in android Apr 02 08:22:56 hehe Apr 02 08:23:02 hesperaux: i have no problem discovering my notebook as a device, connecting works now too (had problems with that yesterday as well), but now the first read attempt fails Apr 02 08:23:08 g00s, just go try MiWi and you'll wanna kill yourself Apr 02 08:23:24 yeah, i head interop issues with that too Apr 02 08:23:36 mlq, well i'm working on setting up a service to do some socket read/write stuff. I'll let you know if it works =\ Apr 02 08:23:57 microchip has the worst API ever Apr 02 08:24:35 g00s, you've used MiWi before? Apr 02 08:25:32 hesperaux: in the end i just want it to talk to a bt module i bought on ebay, but at the moment i would be happy if i could connect to any other device :| Apr 02 08:26:36 mlq, well, I know it's possible because there's an app on Play store that connects and reads/writes to this very module just fine Apr 02 08:26:42 that was my POC Apr 02 08:26:43 wahaha just searched some articles about bluetooth vs. wifi-direct Apr 02 08:26:55 "The Bluetooth approach has some neat features: - The security is still covered by the underlying Bluetooth link.  That makes it easy and secure to make new connections to your friend’s device." Apr 02 08:27:02 bluetooth .. security..? Apr 02 08:27:06 what have i missed :D Apr 02 08:27:13 timroes, bluetooth is pretty secure Apr 02 08:27:31 it uses negotiated private key encryption i think Apr 02 08:27:49 and pairing is a one-time event, unlike wifi Apr 02 08:28:28 ah yeah right i missed, that averything with a private key is safe :D Apr 02 08:29:01 so long as the cipher produces unique keys and the private key is not known by a third party Apr 02 08:29:20 hesperaux: okay, please keep me posted if you found anything useful Apr 02 08:30:06 sure thing, mlq Apr 02 08:39:48 hesperaux: no, havent used MiWi before Apr 02 08:40:06 oh ok, i was surprised Apr 02 09:24:16 could someone please give me an advice on how to avoid using two listeners? Code is here: http://dpaste.com/1044095/ Apr 02 09:25:23 Activity implements OnTimeSetListener Apr 02 09:26:06 and test view id if it is two different view Apr 02 09:26:15 hm Apr 02 09:26:31 where do I test this? Apr 02 09:26:49 inside the onTimeSet? Apr 02 09:27:01 yes Apr 02 09:27:29 other wise a static OnTimeSetListener with a paramater in its constructor Apr 02 09:27:32 but onTimeSet does not receive the view Apr 02 09:27:37 lenochka, http://pastie.org/7277128 Apr 02 09:27:58 i don't like to implement listeners in activity Apr 02 09:28:06 gets very messy Apr 02 09:28:12 but your two listener have the same code ? Apr 02 09:28:37 alex_PP: problem is the view you are checking in your code is a TimePicker view Apr 02 09:28:39 so use juste one Apr 02 09:28:49 and I need to see which button was clicked instead Apr 02 09:28:55 i see Apr 02 09:29:25 neoakira: they don't have exactly same code Apr 02 09:29:34 yes I see Apr 02 09:29:38 just test the id Apr 02 09:29:46 and use the right view Apr 02 09:29:59 but you can tell which button to set the text on my the id of the time picker that changed Apr 02 09:30:03 not really, the onTimeSet doesn't receive the id of the button Apr 02 09:30:13 with a static listener Apr 02 09:30:14 but it can get tthe id of the picker Apr 02 09:30:19 you can pass it the view Apr 02 09:30:24 in the constructor Apr 02 09:30:48 new MyOnTimeSetListener(fromBtn); Apr 02 09:30:51 and Apr 02 09:30:58 new MyOnTimeSetListener(toBtn); Apr 02 09:31:12 or, do as neoakira says and create a class the implements OnTimeSetListener and has a ref to the button Apr 02 09:31:29 I am sorry, I am a bit lost, could you please give a code example Apr 02 09:32:13 alex_PP: there's no id for the picker Apr 02 09:32:26 I mean I never create any TimePicker in xml Apr 02 09:33:38 you can add one Apr 02 09:33:44 or this http://pastie.org/7277173 Apr 02 09:33:54 I have implemented overscroll feature on ExpandableListView using this link http://jasonfry.co.uk/blog/android-overscroll-revisited/ and i can only see over scrolling behavior of List when i expand any child of the group in the ExpandableListView.I want it to over scroll the list if it is not expanded also.can anyone have any guess to achieve this? Apr 02 09:34:20 hi. how can i reload the webview with overview mode? Apr 02 09:34:51 on create i can load it with overview mode Apr 02 09:35:13 on activity create i can load it with overview mode Apr 02 09:35:27 alex_PP: OK, I will see now what I can do with this example :) thx! Apr 02 09:36:07 hesperaux: apparently i was missing a synchronized call to reset my ConnectionEstablish thread and it seems to work now (but i need to test this a bit longer) Apr 02 09:36:17 ;O Apr 02 09:36:51 lol i'm still dicking around with creating this Service Apr 02 09:37:21 i've got it connecting to a chosen device and all that, but it's not disconnecting when i unbind from the service Apr 02 09:37:43 lol in one week 2 tablets died Apr 02 09:39:26 can I make a seekbar snap to three locations? Apr 02 09:40:06 I need to create some sort of three way toggle Apr 02 09:40:59 hesperaux: your code that disconnects in the service is never called or what? Apr 02 09:42:22 appel1, when i unbindService(ServiceConnection), the connection is not disconnected. I thought it would execute the contents of my ServiceConnection.onServiceDisconnected() override, but it doesn't seem to. Apr 02 09:43:11 hesperaux: no, if I remember correctly, it is only called when the connection is "unexpectedly" lost Apr 02 09:43:28 that's what I thought too, cuz i just read the docs on it and that's what it sounds like Apr 02 09:43:29 hesperaux: for example, if you are bound to a service in another process and that process is killed Apr 02 09:43:51 if i explicitly unbind, how can I work with that event? Apr 02 09:43:54 hesperaux: but if the service manages the connections, why are you not disconnecting the connection in the service? Apr 02 09:44:02 overriding onUnbind() makes it very angry lol Apr 02 09:44:21 appel1, that would be ideal, but i'm not sure how to enforce that Apr 02 09:44:26 hesperaux: ServiceConnection is, I think, for the client and not for the service Apr 02 09:44:44 hesperaux: what's wrong with onUnbind ? Apr 02 09:44:46 the second line of code in my override of Service.onUnbind() is "unreachable code" Apr 02 09:45:04 no matter what I put there, eclipse says any line after the first is unreachable code Apr 02 09:45:35 hesperaux: does the first line start with they keyword "return"? ;) Apr 02 09:45:39 lol Apr 02 09:45:44 yeah i just realized that Apr 02 09:45:47 * hesperaux is a derp Apr 02 09:45:56 i blame 4:45AM Apr 02 09:47:17 thanks appel1 xD Apr 02 09:47:23 np :) Apr 02 09:48:23 beautiful. works great. Apr 02 09:48:32 I might be ready to play with the socket streams now Apr 02 09:49:21 Should I use AsyncTaskLoader for writing to a DB? Apr 02 09:50:12 I have implemented overscroll feature on ExpandableListView using this link http://jasonfry.co.uk/blog/android-overscroll-revisited/ and i can only see over scrolling behavior of List when i expand any child of the group in the ExpandableListView.I want it to over scroll the list if it is not expanded also.can anyone have any guess to achieve this? Apr 02 09:52:04 can users who download your app see your email address? the gmail account you use to deploy apps. Apr 02 09:52:46 im just wondering if it is worth making a new gmail account just for android like myandroidappcompanyname@gmail.com Apr 02 09:53:39 wassup guys Apr 02 09:53:52 WOOSSOP BRO Apr 02 09:53:59 lol Apr 02 09:54:32 got a quick question, is there any way to get an android phone into sleep or to turn the display off without having a system app? Apr 02 09:54:37 devtekbeta, they get a mailto link for the email addr you have set in your dev profile Apr 02 09:54:55 i have my accound in my main google account and antoher gmail address set for the contect addr Apr 02 09:55:25 hesperaux: btw, bounded service? not bound? Apr 02 09:55:28 wow, typing like a maniac Apr 02 09:55:52 i see. well im going to buy a domain too. so ill just use info@mydomain for the contact then... and maybe just use my main gmail for uploading the pps then Apr 02 09:56:00 apps* Apr 02 09:56:02 karlsve, ? Apr 02 09:57:40 a bound service Apr 02 09:58:25 what of it? Apr 02 09:58:36 * hesperaux know what you're asking Apr 02 10:00:43 just correcting your grammar, anyways write a Binder to contain the function to get the service object and retrieve the socket from there Apr 02 10:00:57 or push it to the service via that way Apr 02 10:01:17 yeah Apr 02 10:01:58 i'm looking at obtaining data from the socket...the tutorial on the developer site uses a thread and a handler to send the buffer back to the caller, but that seems like a pain Apr 02 10:02:36 lol, i'm going to be sending at 115200bps so I don't think I should read the socket in the UI thread Apr 02 10:02:51 might be fun to make it rage though Apr 02 10:02:54 i'm so tired Apr 02 10:03:57 well then read it in the service, save it, retrieve it via the way mentioned above or retrieve it using a listener to call on updates ;) Apr 02 10:05:22 best solution is probably to create the connection, hand it to the service, let the service handle the connection and data sending/receiving and then notify the activities attached about the change of state Apr 02 10:07:13 ok. the activities need the actual data too...how to provide it? Apr 02 10:09:15 well if you got a function to receive the ServiceObject in your binder just get that and use the appropriate getter, an other way is to send the actual data via your listener to the activity Apr 02 10:10:21 i might be naive, but could it process the data that fast? Apr 02 10:11:21 hesperaux: i am not quite sure but you could actually process the data in the service and only send the result to the activity Apr 02 10:12:08 ok, i'll see what i can do Apr 02 10:12:23 thank you for the advice Apr 02 10:14:38 no problem still didnt get an answer to my question from anyone though :D Apr 02 10:15:22 i'm afraid i don't know, sorry :) Apr 02 10:17:52 np ill find it out somehow Apr 02 10:18:13 if my websites finally load ill now some answers probably but mobile internet isnt really what i would call amazingly fast Apr 02 10:19:17 lol Apr 02 10:19:39 my phone is awful Apr 02 10:19:50 takes like 5 seconds to open the dialer Apr 02 10:20:38 well nexus 4 ;) fast enough for almost everything for now Apr 02 10:20:57 i'm thinking of buying one of those, but it bothers me that it has no microsd Apr 02 10:21:05 just not the internet connection especially on the train going underground Apr 02 10:21:16 i wanted to get a Note 2 but they are ridiculously expensive Apr 02 10:21:31 you can practially attach an external usb disk to it tho Apr 02 10:21:39 practically* Apr 02 10:22:16 do you need root to do that still? Apr 02 10:22:47 but it requires an external battery pack and a special cable set up Apr 02 10:22:57 i feel like Google should consider providing some kind of solution to the rooting problem... Apr 02 10:23:04 i am not quite sure you can have a look at this tho http://forum.xda-developers.com/showthread.php?t=2181820 Apr 02 10:24:14 hesperaux: well there is a reason for not every app being able to interfere within system app bounds ;) Apr 02 10:24:24 of course Apr 02 10:24:36 but maybe they could add an elevated permission or something Apr 02 10:24:59 and you could waive your rights to life when you allow that permission Apr 02 10:25:22 i imagine that fantasy would probably require major changes to the whole framework lol Apr 02 10:25:25 so not providing that functionality to the user from the start will gie them a lot less trouble in support terms, otherwise everyone would just happen to have an app on their phone doing stuff it shouldnt Apr 02 10:25:46 yeah Apr 02 10:26:25 although right now i would like to have something like that since that is the only problem my app will have. i rooted my nexus but i dont really want to make my app root dependant Apr 02 10:26:36 the reason i bring it up is that every time i've rooted my phone or used a custom rom, it has turned to absolute shit after 2-3 weeks of use. Apr 02 10:26:51 root dependent apps are not so popular :( Apr 02 10:27:11 hesperaux: except Titanium Backup Apr 02 10:27:15 (btw, i'm using a custom rom now. just can't give up a couple of things with ICS) Apr 02 10:27:30 Ankhwatcher, true. Apr 02 10:27:48 well yeah, on the other hand turning the screen off and bringing the lockscreen up is not something i would call a security issue so why would that be a system only functionality? Apr 02 10:28:37 hesperaux: https://play.google.com/store/apps/collection/topselling_paid?feature=top-paid 3 out of 24 Apr 02 10:29:03 heh Apr 02 10:29:12 i've got rom tool box pro as well Apr 02 10:29:27 i don't use it for anything Apr 02 10:29:29 xD Apr 02 10:29:40 I installed a version of it, I've never used it Apr 02 10:29:47 hesperaux: im using a custom rom, too. and i used a custom rom on my motorola milestone for the time had it.. last update got ics on it :D but well not really fast Apr 02 10:30:00 I really don't know why it's so high up that list Apr 02 10:30:24 i have a couple of complaints about rom toolbox pro...but i won't bash it here Apr 02 10:30:34 same goes for TiBackup actually Apr 02 10:31:01 karlsve, do you find that your device gets stupidly slow after a while? Apr 02 10:31:10 followup question is how many apps do you have Apr 02 10:34:06 is there a way to force a bottom actionbar with ABS? Apr 02 10:35:42 hesperaux: not really slow, it gets a bit slower but if i restart it gets faster again, apps used: a few messengers and some games not really that much tho, battery life got bad at the end probably caused by the fixed kernel they had to use until about 4 month ago when someone finally got 2nd boot to run Apr 02 10:36:15 Ankhwatcher: why would you want that since it means running different from android ui guidelines? Apr 02 10:36:59 karlsve: the top of the screen is getting cluttered Apr 02 10:37:09 well, titanium backup says I have 271 app data elements Apr 02 10:39:56 well i gotta go to sleep Apr 02 10:40:01 night all. have a good one Apr 02 10:40:24 hesperaux: im not using titanium backup, anyways ram on the milestone available for apps other than system shrank to about 45mb Apr 02 10:40:34 at the end Apr 02 10:56:43 can an editor be garbage collected if it has not committed? Apr 02 11:02:21 I have an AsyncTask. What do I do if I need to pass one string argument and a list of as params? Apr 02 11:02:50 RTFM ? Apr 02 11:03:15 whywhywhy: I just created a class, and passed them as parameteres in the constructor and then save them in a variable somewhere Apr 02 11:05:13 the new class should extend AsyncTask of corse Apr 02 11:05:48 Great idea, thanks :) Apr 02 11:06:00 no problem :) Apr 02 11:07:04 I was thinking about creating a class that stores a string and a list, pass it as a param and let doInBackground get the data from it Apr 02 11:07:06 Ankhwatcher: If you have a reference to the editor somewhere it shouldn't be garbage collected... Apr 02 11:08:46 what is the version Apr 02 11:08:48 sorry Apr 02 11:08:59 is it possible to serialize a big decimal? Apr 02 11:09:36 How can I reconnect with a Loader I started before an orientation change? Problem is I cannot just call .initLoader(loaderId, null, this) because I passed a Bundle to it when starting the loader Apr 02 11:10:00 and my onCreateLoader needs the Bundle args to create the loader Apr 02 11:11:39 MroiZo: do I have to call the AsyncTask constructor in my new class? Apr 02 11:12:42 whywhywhy: I personally like to use this ManagedAsyncTask, because it makes AsyncTasks much less of a hassle: https://github.com/slezica/blogActivity/blob/master/src/com/slezica/tools/async/ManagedAsyncTask.java Apr 02 11:12:56 whywhywhy: 2secs, i'll make a pastebin Apr 02 11:13:45 whywhywhy: example usage in activity http://pastebin.com/0HRRZyaj Apr 02 11:16:22 whywhywhy: no you don't need to call it Apr 02 11:16:50 Yeah, it calls the default one itself. Kopfgeldjaeger I'll take a look at that, thanks. :) Apr 02 11:17:10 Still a java noob, sorry :) Apr 02 11:23:48 whywhywhy: this is the basic structure i've used my self: http://pastebin.com/Ke3pk2Xi Apr 02 11:24:41 I do how ever pass an callback interface in the constructor too to return the result, from onPostExecute() Apr 02 11:30:26 MroiZo: exatcly how I did it, thanks Apr 02 11:37:25 Could someone help me? I want to learn how to debug an AOSP java application (like Browser, for example). I have eclipse setted up with the right .classpath file, and a Java application project with all the AOSP src, but the debugger does not attach to the right process...How I can debug something? Apr 02 12:06:54 I have a login activity and a main activity. login activity needs to be shown only if the user is not logged in. otherwise main activity needs to be launched on start up. what is the best way to implement this. Apr 02 12:07:39 I can check if the user is logged in on login activities oncreate and start the main activity if so but I wonder if there is a better way Apr 02 12:08:27 Hi all Apr 02 12:08:53 is there a good way to handle connection breakdowns in the middle of getting Facebook SSO? Apr 02 12:09:08 meaning, what is the correct way to do this Apr 02 12:28:03 Hey guys so I'm trying to create a log-in page for my android app and so I've set up a database with a student table with login details, and a PHP script on a web seerver which connects to to the database obviously and outputs a query in JSON format. I'm going to configure my app so that it can read the output of the query which is fine. I'm giong to have my app so that it posts the Apr 02 12:28:03 entered username and password to the PHP script and from there it will check the entered details with the details from the database and do something from there. That is one query specifically to get the student details from the database thuogh. What if I later within the app want some details from a different table. I would have to implement another query right in the same script right? Apr 02 12:28:04 How would my android app call different queries though? How would the script know which query the android app wants? Apr 02 12:29:45 by having a query var accepted by the php ? Apr 02 12:29:55 I thought you built php sites ? Apr 02 12:30:04 or have done rather Apr 02 12:30:52 StingRay_: i've done PHP a while ago Apr 02 12:31:15 StingRay_: so have the app call different query variables Apr 02 12:31:16 like Apr 02 12:31:23 $query1, $query2? Apr 02 12:31:26 no Apr 02 12:31:51 no u Apr 02 12:31:52 :) Apr 02 12:32:09 have variables for the php like sql="" table="" Apr 02 12:32:37 hmm Apr 02 12:32:51 or rather myphp.php?query='blaaablaaa"&table='more blaa' Apr 02 12:33:18 oh I see, how do I set that Apr 02 12:33:31 set it ? Apr 02 12:33:34 i see a lot of sql injections coming :) Apr 02 12:33:43 so if i execute the url and append query='woohoo' then that query will be called Apr 02 12:33:56 especially when selecting table via query :D Apr 02 12:34:12 well not if you on https and up to date and autheticated 1st Apr 02 12:35:02 okay so this should be a generic sql interface, i though it should be something specialized for a specific task/webpage Apr 02 12:35:27 i'm a bit confused on androids statements on serializable Apr 02 12:36:02 for instance, in the parcel class, it says to avoid using serializable if at all possible Apr 02 12:36:28 so, for enums, i was just putting the name in. but then i ran some tests on it and found that throwing an enum in as a serializable was WAY faster Apr 02 12:36:52 okay so, I think i understand maybe Apr 02 12:36:55 not sure Apr 02 12:37:17 timroes: he is going with quickly-bikeshedded PHP, it *is* going to burn at some point ;) Apr 02 12:38:13 hehe, yes but I dno't have the time to learn to do anything completely crack proof and it will be a university project so hopefully they wont mind toooo much :P Apr 02 12:38:14 he Apr 02 12:39:03 coco89: luckily I will find your interface and delete all your tables :D Apr 02 12:40:47 timroes: and then I will get a fail for no content Apr 02 12:40:51 * coco89 starts to panic Apr 02 12:40:52 aww you guys are always too kind Apr 02 12:41:40 at lest most of the time :) Apr 02 12:41:50 It's the same here, and I find it kind of weird that univiersities teaching CS go all "ah, it's just a university project, it doesn't need to be secure" Apr 02 12:42:14 So, if you're unlucky, you'll never have had to do it until after your degree. Apr 02 12:42:56 ah, I would've done it don't get me wrong but I'm running out of time Apr 02 12:43:07 It's not that it would hurt implementation time that much to at least tell people to use prepared statements. Apr 02 12:43:10 By all means, i'd love to be able to create secure apps Apr 02 12:43:53 coco89: I know, it's not your fault. It's just that I think that once taught the basics about security, it's not taking much longer than an insecure implementation. Apr 02 12:44:22 Yeah for sure Apr 02 12:46:48 StingRay_: with the myphp.php?query='woohoo' etc. Wouldn't that just be grabbing a certain element of the output? So if that wasn't called then there will be a bunch of queries/tables in the output? Apr 02 12:47:07 * coco89 hopes that wasn't a stupid question Apr 02 12:47:13 :$ Apr 02 12:47:36 coco89: just read up on a bit of basic php Apr 02 12:47:44 cause A ) I dont know web stuff Apr 02 12:47:48 b ) I hate it Apr 02 12:48:00 me too Apr 02 12:48:04 c ) I'm creating artwork :) Apr 02 12:48:04 and sure Apr 02 12:48:13 so distracted in a good way Apr 02 12:48:15 you're also an android dev Apr 02 12:49:08 prove it Apr 02 12:49:14 0 apps realeased Apr 02 12:49:57 i think if I ever release as many apps as console games, then I will call myself a dev Apr 02 12:50:02 but you could have 10 apps released :D Apr 02 12:50:07 heh Apr 02 12:50:08 nicee Apr 02 12:50:09 but thats a long long way away Apr 02 12:50:41 see I could have released a few, but I'm a f*cktard !!!! Apr 02 12:50:53 I always need to make it betterer Apr 02 12:51:01 tell me what to do I'll release them for you :D Apr 02 12:51:04 heh that's a good trait Apr 02 12:51:14 no it isnt Apr 02 12:51:24 you'll have that one hit wonder app in no time Apr 02 12:51:32 but it will be perfec Apr 02 12:51:32 t Apr 02 12:52:44 okay so, i'm going to try this out and hope for the best Apr 02 12:57:10 Can I make a button on the Actionbar stay clicked? Apr 02 12:59:25 anyone here have experience using the developer console for registering app store items ? Apr 02 12:59:46 I was wondering if there was a way to get your items in the order you want them using the console Apr 02 13:01:08 my stuff on the console is in the order of item_1, item_2, item_3, but when i do a sku request the items come in the order of item_1, item_3, item_2 Apr 02 13:01:24 act Apr 02 13:01:47 through what yonder window breaks.... Apr 02 13:02:09 heh Apr 02 13:02:20 act ? Apr 02 13:03:19 Ankhwatcher: Keep your finger on it ;) Apr 02 13:03:46 kakazza: can i build up a static charge which will stick the users finger to it? Apr 02 13:04:23 I need a stand for my Nexus 4 Apr 02 13:07:41 mobydev: I've got a command /activity in irssi, with shortest shortcut being /act Apr 02 13:08:50 http://picpaste.com/jGSeVxif.png Apr 02 13:46:09 what is the best way to draw a rectangle with only the botton corners rounded in a canvas? Apr 02 13:47:44 paulovap maybe a path ? Apr 02 13:50:40 xorgate: i was thinking about that, but i'm not used to work with that..i'm wondering how can i round the corners, considering that i have the four point of a rect. Apr 02 13:51:31 maybe you could draw a Drawable Apr 02 13:51:51 you can specify which corners to round Apr 02 13:52:13 but: some versions of android have bugs that then round the wrong button Apr 02 13:52:20 s/button/corner Apr 02 13:52:23 paulovap: if you want to draw on a canvas explicitly, you'll have to be creative with your drawing Apr 02 13:52:57 you could overlap drawRect and drawRoundRect calls Apr 02 13:53:14 which would work fine unless if you shapes were opaque and not just an outline Apr 02 13:53:40 they are opaque Apr 02 13:54:01 i mean, the path must be filled with some color Apr 02 13:57:23 paulovap: well draw two rects then. Apr 02 13:58:42 bryanl: if they intersects i may have problems with transparent colors Apr 02 13:59:10 paulovap: well make them not intersect Apr 02 13:59:15 i think i will check the canvas.drawRoundRect to see how they as doing e maybe extend Canvas Apr 02 13:59:40 paulovap: my advice is that going that route will just cause you have to solve problems you don't even have now Apr 02 14:00:26 you could look at how Drawable does it since it apparently rounds per corner Apr 02 14:01:29 bryanl: maybe i didnt understood what you were saying about two rects. Thought you did mean one pointy above the rounded one. Apr 02 14:01:56 xorgate: thanks, i will look then Apr 02 14:02:48 humm i tried to create a custom listpreference... but i ever get "Error inflating class" error... where should the class be defined that it find the class? Apr 02 14:03:55 What is the group that setGroupVisible will effect? http://developer.android.com/reference/android/view/Menu.html#setGroupVisible(int, boolean) Apr 02 14:05:37 Ankhwatcher: should be it Apr 02 14:06:13 Ankhwatcher: http://developer.android.com/guide/topics/resources/menu-resource.html Apr 02 14:06:57 karlsve: excellent, thanks Apr 02 14:09:32 xorgate: what method in Drawable you said it does rounded corners? Apr 02 14:10:16 http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Apr 02 14:10:27 corners with radius attr Apr 02 14:11:06 hi i need some help with my app Apr 02 14:11:18 somebody can helpme? Apr 02 14:11:26 ask Apr 02 14:11:30 no meta questions :) Apr 02 14:11:44 someone can help you! Apr 02 14:12:05 ok, i have a app instaled in my tablet Apr 02 14:12:18 and again ill ask Apr 02 14:12:37 I want to run automatically Apr 02 14:12:50 when the browser download a txt Apr 02 14:13:03 does anyone know a way of initiating the lockscreen (black screen + lock if available) from within a app without having root privileges? Apr 02 14:14:10 and i go crazy with this listpreference .... :( Apr 02 14:14:28 xorgate: thanks Apr 02 14:14:44 marcus_19 not gonna happen. you will have to tell it to share to your app or something Apr 02 14:15:40 how? Apr 02 14:15:44 or a service that watches the default download directory Apr 02 14:15:46 but .... Apr 02 14:17:01 but? Apr 02 14:17:37 Mornings... Apr 02 14:18:00 Is there a way to create an (int)id for an UI object from a string? Apr 02 14:18:03 marcus_19, .... if you want it so... do it :) Apr 02 14:18:11 Since setId( int ); Apr 02 14:18:22 why the heck does it dont find my class ... *grR* Apr 02 14:18:42 Vanscot: you can use setTag(Object) Apr 02 14:18:45 how i do it? Apr 02 14:19:02 karlsve: http://developer.android.com/reference/android/os/PowerManager.html#goToSleep%28long%29 Apr 02 14:19:06 StingRay_: is there a method to find something using a tag? Apr 02 14:19:14 findViewByTag() Apr 02 14:19:17 (findViewByTag() Apr 02 14:19:18 xD Apr 02 14:19:20 Tks.. Apr 02 14:19:21 ;) Apr 02 14:19:22 Testing.. Apr 02 14:20:22 Also, is there a way to create a named array? Apr 02 14:20:26 In a php way... Apr 02 14:20:43 angelsl: as i said "without having root privileges" means without being a system app too for me :D Apr 02 14:20:45 ($array['some key name']) Apr 02 14:20:51 i found that one Apr 02 14:21:27 Vanscot, named array, as in associative array? Try Map Apr 02 14:21:55 Maps arbitrary Keys of one Class to Values of another Class Apr 02 14:22:24 What I actually need is a mapped list then... Apr 02 14:22:35 Only PHP calls it associative array, no? Instead of Map, Dict etc Apr 02 14:22:39 Mmmm... Apr 02 14:22:46 what exactly are you planning to do? Apr 02 14:22:58 StingRay_: findViewByTag requires an int. Apr 02 14:23:10 Vanscot: no it really dont Apr 02 14:23:23 doesn't* Apr 02 14:23:35 StingRay_: eclipse is saying that it's not defined for a string. Apr 02 14:23:47 (Using it inside an activity) Apr 02 14:23:48 cause it takes an object Apr 02 14:24:01 any object Apr 02 14:24:06 inc string Apr 02 14:24:21 findViewByTag((String)"mywords"); Apr 02 14:25:10 how i can create a service that watches the download default directory? Apr 02 14:25:19 sorry that would type cast would be for getTag Apr 02 14:25:21 You shouldn't have to cast, since String is an Object, no? Apr 02 14:25:31 indeed Apr 02 14:25:32 :) Apr 02 14:25:45 I just woke up, ment to type getTag Apr 02 14:25:50 sonOfRa: give me a sec.. Apr 02 14:26:08 StingRay_: findViewByTag is not defined for callables or activities. Apr 02 14:26:26 i implement my class in preferences.xml like this Apr 02 14:26:35 but it says class not found Apr 02 14:26:54 i tried my.package.name.preference.CustomSoundListPreference but the same issue Apr 02 14:26:59 Vanscot: hang it off a view Apr 02 14:27:02 findViewWithTag Apr 02 14:27:10 yeah thats it Apr 02 14:27:12 any idea? Apr 02 14:27:23 sorry I really just got up like 15 min ago Apr 02 14:27:24 karlsve: you probably can use the device admin API Apr 02 14:27:37 need more coffee and a shower Apr 02 14:28:44 karlsve: I agree w/ angels, if it's anywhere, it's probably in the device admin api. It may not be possible however. Apr 02 14:29:10 StingRay_: tks... Apr 02 14:29:10 it exists, DevicePolicyManager.lockNow() Apr 02 14:29:15 sonOfRa: Ok... Apr 02 14:29:30 angelsl: yeah I just looked it up too Apr 02 14:29:33 angelsl: good call Apr 02 14:29:43 I have multiple json objects that I need to group... Apr 02 14:30:06 Once grouped, I need to display just the category and, when I click on the category, display each object. Apr 02 14:30:19 Since I'm fed up with preferences/fragments... Apr 02 14:30:30 I'm going to do it the old way, with another activity. Apr 02 14:30:34 karlsve: yeah so there you go, angels1 got it. Making a device admin is a bit of a hassle and can make uninstalling your app confusing for noob users, but it's the price of admission. The admin API docs are pretty good, you just need to handle a bunch of callbacks from the admin system Apr 02 14:31:02 The thing is that I need to pass either the json objects or the string representing them to the other activity. Apr 02 14:31:23 But for that, I need to store the objects/string somewhere.. Apr 02 14:31:44 Enters the maped list/strings Apr 02 14:36:18 xorgate, bryanl: RectShape will do the trick. Thank you! Apr 02 14:37:19 when using a drawable inside a button, lets say drawableLeft, is there any way to set left padding/margin on it ? Apr 02 14:38:38 StingRay_: padding should work Apr 02 14:39:12 padding works for the button, and compound padding is supposed to work for the drawable in the button, but doesnt Apr 02 14:40:50 great Apr 02 14:48:16 what do people use for project management for non tech folks Apr 02 14:50:33 part of my interface gets crushed by the the keyboard and doesn't redraw when the keyboard is dismissed, how can I sense that? Apr 02 14:52:19 anyone know of a way to get an alert in real time when someone checks code in? im using subversive for eclipse Apr 02 14:53:29 dragorn: considering its just to get the phone into sleep upon closing the magnet on the case it seems to be a bit much of a hassle to make it an device admin Apr 02 14:53:47 Gaz`: you can modify the checkin scripts on the svn server to send an email Apr 02 14:55:12 dragorn: any way to just cause the screen to turn off and not instantly locking it? Apr 02 14:55:37 so basically i just need to turn the screen off since the log function comes in user dependent Apr 02 14:55:37 Hello! In which cases it is good practice to use fts tables instead of regular? Apr 02 14:56:51 karlsve: never tried; i imagine not or else malicious apps could cause a lot of mischief Apr 02 14:57:32 like what? Apr 02 14:57:39 lock* Apr 02 14:58:18 karlsve: there really is no way Apr 02 14:58:31 angelsl: thats bad Apr 02 14:58:34 why? Apr 02 14:58:49 i mean, i understand your point but Apr 02 14:58:52 thanks dragorn just installed commit monitor :D Apr 02 14:59:02 i think the right choice was made here Apr 02 14:59:32 karlsve: if I convinced you to install something that made a background service and turned your screen off the instant you turned it on Apr 02 14:59:35 karlsve: it'd be bad times Apr 02 15:01:44 Hello! In which cases it is good practice to use fts tables instead of regular? Apr 02 15:06:44 hello how can i change my application name Apr 02 15:06:48 it gets the activity name Apr 02 15:06:54 under the icon:S Apr 02 15:09:38 hi all Apr 02 15:09:42 i need help with an appwidget Apr 02 15:09:47 can i detect a download with a webview? Apr 02 15:10:38 i have a RemoteViewsService that populates a listView in my appwidget with data from my own content provider. Apr 02 15:11:13 I'm using a content observer on a handler thread to detect changes to the data and trigger updating the appwidgets Apr 02 15:12:08 I created the content observer and the handler thread in my AppWidgetProvider's onEnabled callback Apr 02 15:12:42 If I add an appwidget to the screen and reboot the device, further changes to the data no longer trigger updating the appwidget Apr 02 15:13:08 so I'm wonering where I should set up the content observer that it will be created again after a reboot occurs Apr 02 15:15:23 One option to start after boot would be to use android.intent.action.BOOT_COMPLETED Apr 02 15:15:35 Using the ADT eclipse bundle on both windows and linux I've found a minor annoyance. Sometimes clicking "Debug" doesn't do anything. If i close the 'Progress' window which is in a pane at the bottom of my screen, then reopening it by clicking the statusbar item at the bottom right and then clicking "Debug" works. Apr 02 15:17:17 someone can help me with a webview? Apr 02 15:17:44 i need excecute a function when a download is ended Apr 02 15:17:44 marcus_19: just state your problem Apr 02 15:18:20 how i can do it? Apr 02 15:18:21 kakazza: I'm a little surprised there's not some other way Apr 02 15:18:45 i would have thought the appwidgetprovider would be enabled again on boot Apr 02 15:18:48 marcus_19: I found this via Google: http://stackoverflow.com/questions/12078401/use-downloadmanager-class-to-download-file-from-webview see if it helps. Apr 02 15:18:57 so i could register my content observer there Apr 02 15:20:26 Hey there Apr 02 15:20:27 thank you! Apr 02 15:20:28 Could someone please help me set up a build environment on Ubuntu 12.04.2 Precise Pangolin? Apr 02 15:20:59 hey guys, I have a question, is there a optimized way of displaying pictures in an app? I have a listview and each option shows you a picture. The images are about 60kb each jpg Apr 02 15:21:18 I initially had them as png's but the smallest I could get was about 200kb Apr 02 15:21:48 I'm guessing the error "Fatal signal 11 (SIGSEGV) at 0x004b0000 (code=1), thread 10986", is because of it loading the images Apr 02 15:22:10 Rob|boR: are the images included in your resources or do they come from somewhere else? (i.e. web) Apr 02 15:22:19 they come from the res folder Apr 02 15:22:47 can you pastebin your logcat output? Apr 02 15:22:53 (dont paste it here) Apr 02 15:22:58 ok Apr 02 15:25:23 karakuri: Sorry, never worked with AppWidgetProvider, you might be right. Apr 02 15:27:16 karakuri: http://pastebin.com/1mWhiYzq Apr 02 15:27:21 mm Apr 02 15:28:57 I'm guessing its' because of the resources, if I go through the list slowly, give it some time it works great Apr 02 15:29:03 Rob|boR: looks like out of memory error from allocating too many bitmaps Apr 02 15:29:18 but if I quickly pick one, and go back, pick another, go back, pick another it crashes Apr 02 15:29:19 ou might try using an LRU cache Apr 02 15:29:30 let me find you a link Apr 02 15:29:34 ok great, thank you Apr 02 15:30:11 here: http://www.youtube.com/watch?v=gbQb1PVjfqM Apr 02 15:30:21 sweet, thanks again. Apr 02 15:32:56 Rob|boR: This might be helpful as well https://github.com/chrisbanes/Android-BitmapCache Apr 02 15:34:52 :D Apr 02 15:50:32 so i'm still having problems registering a content observer for my appwidgets after a reboot Apr 02 15:51:53 is there no way to do it without requiring BOOT_COMPLETED permission and a broadcast receiver on boot? Apr 02 15:54:10 angelsl: well turning the screen of is bad but it really isnt worse than collecting your contact info which is possible Apr 02 15:54:15 +f Apr 02 15:54:41 yes but collecting your contact info doesn't make your device unusable Apr 02 15:54:55 well true that Apr 02 15:55:49 so i gotta make it an app that uses device admin Apr 02 15:56:02 well it could've been such a good day ^^ Apr 02 16:12:03 posted this in vcase anyone can help: http://stackoverflow.com/questions/15768800/register-content-observer-for-appwidgets-on-boot Apr 02 16:13:24 Pretty sure you get a call to your appwidgetprovider Apr 02 16:17:42 SimonVT: it appears you are right, Apr 02 16:18:35 its also creating my appwidgetservice and my remoteviewsfactory, Apr 02 16:19:00 but the contentObserver either isnt being created or something else is wrong Apr 02 16:19:23 (i'm using an activity to change data in my content provider to test) Apr 02 16:31:08 hey everyone Apr 02 16:31:41 is there any program that allows you to specify what voice you want a specific program to use for TTS? its set via local now, and I have a program that won't use the global voice. Apr 02 16:31:44 its annoying Apr 02 16:41:32 Does Android use the default EABI EH mechanisms, or SJLJ EH? Apr 02 16:55:05 A TextView with android:textStyle="italic" looks italic in Eclipse, but it is not on my SGS3. Any idea? Apr 02 17:00:13 samsung override it in their os tweaks ? Apr 02 17:00:15 maybe Apr 02 17:01:11 StingRay_: Samsung bug apparently Apr 02 17:17:55 hi guys, i just set a clickhandler on a button, but im wondering, inside the onClick function, how can i get the button thats being clicked? Apr 02 17:18:31 it should be passed as a view in the function call, as i recall Apr 02 17:18:44 dragorn, is correct Apr 02 17:18:58 you can cast the view (if needed) and interact with it Apr 02 17:19:17 ahhh allright Apr 02 17:20:56 thanks a lot! Apr 02 17:36:37 Do you guys worry about code effency? Apr 02 17:36:47 can anyone recommend a good drawing app for use with a stylus? Apr 02 17:36:57 for drawing what ? Apr 02 17:37:03 yes, consistent with that of any experienced software engineer. Apr 02 17:37:04 just sketching and so forth Apr 02 17:37:06 oh you mean mobile app ? Apr 02 17:37:16 StingRay_: yeah, on a n10 :) Apr 02 17:37:18 autodesk sketch has a few good apps Apr 02 17:37:41 as in autodesk have a few app versions out Apr 02 17:37:55 you're an artist, aren't you StingRay_? Apr 02 17:37:56 jasta, Do you think it will slow a device down to go through like 50 math equations? Apr 02 17:38:07 tnzr: some would say so :) Apr 02 17:38:34 animator? I seem to remember a conversation... Apr 02 17:38:41 more a 3d vfx/games TD but I'm starting to enjoy UI app design Apr 02 17:38:42 agy2154: if it's not worth benchmarking, it's not worth optimizing. Apr 02 17:38:54 jasta, Thanks then I will keep it as is. Apr 02 17:38:55 ahh col Apr 02 17:38:57 cool* Apr 02 17:38:58 tnzr: I have been lead/snr animator b4 Apr 02 17:39:07 why wassup ? Apr 02 17:39:33 I dunno...I'm asking for a friend, he has some stylus and wants a sketching app so I figured someone here would know, especially an artist :) Apr 02 17:39:50 well tbh they are nothing but gimmiks Apr 02 17:39:54 nothing more than that Apr 02 17:40:14 yeah I'm afraid to tell him that Apr 02 17:40:24 when tablets can detect 1024 preassure variations, then we maybe in business Apr 02 17:40:25 i made a stylus once and realized that I would never use a stylus after that Apr 02 17:40:50 until that time, I would call them scribble pads/jotters Apr 02 17:40:56 I know of one for mobile devices that is in the work Apr 02 17:41:00 not a serious sketch tool in any way Apr 02 17:41:13 not sure if it does 1024 levels (probably 255 initially) and it uses bluetooth Apr 02 17:41:16 how can i restart the app ive made? Like a window.reload() when youve made javascript changes? Apr 02 17:41:21 tnzr: yeah not sure why they have not done a preassure reporting pen Apr 02 17:41:27 expense I suppose Apr 02 17:41:35 would have to be very accurate to be of use Apr 02 17:41:52 capacative is not good for it either Apr 02 17:42:42 ever try the Adonit Touch? Apr 02 17:43:30 again see previous Apr 02 17:43:38 capac screens no good for it Apr 02 17:43:42 oh I see Apr 02 17:43:47 when you sketch you want exact control Apr 02 17:43:56 not interpolated approximation Apr 02 17:43:59 :) Apr 02 17:44:10 yeah, makes sense Apr 02 17:44:45 and the best touch pannel I have is on ipad, none of the other tablets I have come close Apr 02 17:44:54 and I still wont sketch anything real on it Apr 02 17:44:56 :) Apr 02 17:44:59 how come the previous activity is still "visible" when a preference screen is launched. Apr 02 17:45:26 StingRay_: ever try the new winows one? I saw a penny arcade video of him using one and he seemed to like it Apr 02 17:45:58 like I say, not a fan with current tech Apr 02 17:46:05 soon though… it may change Apr 02 17:46:50 you standards are unparalelled :) Apr 02 17:46:53 your* Apr 02 17:47:14 if they werent I would have realsed about 4 apps by now Apr 02 17:47:16 :( Apr 02 17:47:32 rather than "0" Apr 02 17:48:48 well at least you have an excuse Apr 02 17:52:39 i have a cursorloader question. I'm using them in several places for populating listviews from content providers and it works great Apr 02 17:53:15 but in several places you click on an item in the list, pop open a detail view, and I load the single row from the cursorloader to populate normal views Apr 02 17:53:31 so there is no adapter, no list, but i'm using a cursorloader. What's the best way to handle closing/opening the cursor? Apr 02 17:55:36 how can i add a button to the bottom right button on my android phone? Apr 02 17:55:49 it only says Settings there now, but is it possible to add something else? Apr 02 17:57:29 notmoose: you mean in the OS ? if so #xda-devs #android Apr 02 17:57:41 no just inside my application Apr 02 17:58:23 for example with Whatsapp, youve got things there like Status, New conversation, New group, Contacts etc Apr 02 18:02:00 notmoose you want to just add menu items to that button? Apr 02 18:02:18 exactly Apr 02 18:02:47 notmoose, check this out: http://developer.android.com/guide/topics/ui/menus.html Apr 02 18:03:28 ah thanks Apr 02 18:03:38 no problem Apr 02 18:04:29 kevin_schultz: is there a good preferences tutorial out there? the android preferences one looks a lot like the spring docs: "Oh, you want to do X? Well,we'll show you A, B, C, D, E, F, G, H>, I, J<, K, L, M, N... good luck finding the X" Apr 02 18:05:02 (note that the X is built from ><, and has I and J embedded just to keep you off the trail...) Apr 02 18:06:26 dreamreal: are you using actionbar sherlock or not? Apr 02 18:06:33 actionbar... what? Apr 02 18:06:41 Apparently not, as I have no idea what that is :) Apr 02 18:07:58 its the best actionbar compatibility library Apr 02 18:08:03 but they have a sample for menus: https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/ContextMenus.java Apr 02 18:08:23 well, menus aren't a problem, I was trying to work out preferences Apr 02 18:09:18 oh, i thought it was still on notmoose's question Apr 02 18:09:43 no, sorry about that Apr 02 18:10:57 i haven't tried the preferences activity stuff before Apr 02 18:11:32 well, the d.android.com stuff goes through how to do it for a while and then says "oh yeah, for recent android don't do that" Apr 02 18:21:34 hmm, is the Android Audio API any good? Apr 02 18:21:42 or am I better off going native Apr 02 18:21:53 it's for a possible rather complex algorithm Apr 02 18:22:25 eg not just playing sound, but manipulating sound as well Apr 02 18:33:35 http://stackoverflow.com/questions/15712995/changing-the-font-on-actionbar-tabs Apr 02 18:35:33 it can't be unpossible Apr 02 18:49:47 Hey, has anyone implemented sqlite's foreign key constraints? I'm wondering if any speed increase was observed in queries. Apr 02 18:58:37 what to do against the ANDROID_LOOP attribute in the standard ringtones? Apr 02 18:58:53 the mediaplayers flag setLooping doesnt work Apr 02 18:59:01 how to workaround this problem? Apr 02 19:00:44 oh man ... Apr 02 19:03:19 is there a way to get, and then set, the processed width of a view? Apr 02 19:03:39 I want to set the size of a view to 90% of the original size Apr 02 19:03:46 the original size is match_parent Apr 02 19:04:13 why not just add a space ? Apr 02 19:04:23 or blank view Apr 02 19:04:51 and use layoutWeight to give it a 10:1 ratio Apr 02 19:04:58 you can override onMeasure in your view, if you were that way inclined. But adding padding/margin sounds much more sensible Apr 02 19:06:21 the thing is, I want a margin Apr 02 19:06:55 but I also can't define % as margin Apr 02 19:07:15 % in this type of design is a bad idea Apr 02 19:07:17 traditionally one just sets say 10dp as a margin Apr 02 19:07:18 to me neways Apr 02 19:07:33 why do you want a 10% margin Apr 02 19:08:55 I actually want a variable margin (100% margin, and 10% margin), because I want a kind of "slide" menu Apr 02 19:10:10 I just want the margin to be concise between devices, that's why I don't want use dp Apr 02 19:10:29 concise ? Apr 02 19:10:46 Consistent? Apr 02 19:10:57 consistent, thanks Apr 02 19:11:02 no no Apr 02 19:11:03 same distance in real world space ? Apr 02 19:11:07 what's a good way to maintain a paid and a free version of a project with differences in the classes/methods: using a library project/branching/something else? Apr 02 19:11:10 screen relational space ? Apr 02 19:11:13 pixel use ? Apr 02 19:11:20 cause 10% failes on all of those Apr 02 19:11:22 :) Apr 02 19:12:08 StingRay_: I <3 tags Apr 02 19:12:14 I'll think about something, thanks Apr 02 19:13:11 ok well 10% dont fail the screen relational space, IF views account for 100% of the dimension in question Apr 02 19:13:16 just had to correct myself Apr 02 19:13:21 but does fail on other 2 Apr 02 19:13:22 :) Apr 02 19:14:37 EPG: core code in an Android library, then a set of "free" and "paid" applications Apr 02 19:14:43 EPG: library project Apr 02 19:15:15 which could even just be manifest files Apr 02 19:15:22 and app icon Apr 02 19:15:25 Don't do animations by changing layoutparams Apr 02 19:15:53 SimonVT_: yeah, I learned that recently too…slow as hell Apr 02 19:16:56 Yep Apr 02 19:18:33 Since it has to re-measure and re-layout the view hierarchy every frame Apr 02 19:18:38 ok, now i have a class where the greatest part is the same for free/paid but let's say some methods are different. how would i do this using a library? Apr 02 19:19:03 have a subclass where the methods are different, use dependency injection. Apr 02 19:20:45 Pre-honeycomb you pretty much have to make a custom viewgroup to get somewhat smooth animations, on honeycomb+ you can use setTranslationX/Y Apr 02 19:22:00 I've gotten far enough to figure out list and detail views, the latter using the done/discard actionbar pattern. Any poiners on how to handle this in multi pane laouts on tablets and similar? Apr 02 19:22:22 (using fragments in a single activity I should probably mention) Apr 02 19:23:42 thx lov, I'll read me into this topic Apr 02 19:24:53 hi guys. anyone knows why this little code makes app crash? : Apr 02 19:24:55 http://pastebin.com/G6LJFJph Apr 02 19:24:56 I sometimes get the error with Tag JavaBinder and Text !!! FAILED BINDER TRANSACTION !!! ... I don't have any problems, but it looks alerting Apr 02 19:26:03 BulleTime: I don't know why it's crashing because you haven't provided us any information, but I can tell you that that code should not exist. Do not do that. Apr 02 19:26:15 ooh :) Apr 02 19:26:30 BulleTime: press ctrl-f Apr 02 19:26:34 well maybe yeah i can do it smarter but dont know how exactly Apr 02 19:26:36 er, ctrl-shift-f Apr 02 19:26:43 your code will thank me Apr 02 19:26:45 lov why? Apr 02 19:26:45 you can thank me later Apr 02 19:26:54 you're using eclipse, yes? Apr 02 19:26:59 yeah Apr 02 19:27:04 yeah. just do it. Apr 02 19:27:32 evan is right about not doing that. Apr 02 19:28:02 I'm going to just assume that you're calling setContentView there (which you really ought not to unless you really know what you're doing, and even then...) and you're not updating the references to your other views in your class. Apr 02 19:28:16 Lol do i need to format that little code haha lov:) Apr 02 19:28:21 but anyhow Apr 02 19:28:52 i want to create a basic main menu at top and then have pages below it, while the top remains. Any good advises? Apr 02 19:30:14 is there any word on whether Google plan on doing a code jam for I/O this year? Apr 02 19:32:44 Ah, figured it out. Using the contacts app as an example, in the multi-pane view it shows the detail in view-only mode and expands to full-screen when the edit button gets selected. Apr 02 19:51:12 I want to support back to 2.2. I can't use ArrayDeque unless I require >=2.3. Is there an efficient alternative to an ArrayDeque? Apr 02 19:51:52 copy the code into your project (: ? Apr 02 19:51:59 heh Apr 02 19:52:18 and hope it doesn't have any dependencies Apr 02 19:52:32 =\ Apr 02 19:53:03 I can't imagine it would Apr 02 19:53:15 https://android.googlesource.com/platform/libcore/+/refs/heads/master/luni/src/main/java/java/util/ArrayDeque.java Apr 02 19:56:23 stork, thanks a lot for that link Apr 02 19:56:27 i'll see how this goes... Apr 02 19:56:53 grrrr, Call requires API level 9 (current min is 8): java.util.Arrays#copyOf Apr 02 19:57:00 rage Apr 02 19:57:01 ow :( Apr 02 19:57:09 System has arrayCopy Apr 02 19:57:25 https://android.googlesource.com/platform/libcore/+/refs/heads/master/luni/src/main/java/java/util/Arrays.java Apr 02 19:57:28 round two :p Apr 02 19:57:36 xD Apr 02 19:57:37 haha stork Apr 02 19:57:39 but first, StingRay_, what's that you say? Apr 02 19:58:04 http://developer.android.com/reference/java/lang/System.html Apr 02 19:58:07 build it yourself with System.arraycopy he wants to say Apr 02 19:58:31 hmm...that should do fine Apr 02 20:00:18 excellent. Apr 02 20:00:26 I implemented that instead. Hope it works. I don't see why it wouldn't Apr 02 20:02:16 are there any examples of SSL in android that _actually verify_ certs? Apr 02 20:02:28 or is there no standard truststore on android and every app is on its own? Apr 02 20:03:21 oGMo: default behavior is verifying each ssl cert? Apr 02 20:03:55 timroes: hrm Apr 02 20:15:30 is there a procedure to follow to make a class thread safe? Apr 02 20:18:06 Anyone know how to specify the path to the /res/raw folder in an app - as in the file path, so use with VideoView.setVideoPath()? I've tried a few, like android.resource://my.package.name/raw/v1.mp4" but the app fails with "Cannot play file" Apr 02 20:18:28 you don't use res/raw for video player Apr 02 20:18:30 use assets Apr 02 20:18:47 see AssetManager Apr 02 20:18:54 pfn: Ah, so the VideoView cannot access the res/raw folder? Apr 02 20:18:59 hesperaux, yes, make it immutable, or synchronize all mutations on it Apr 02 20:19:15 Smashcat, it'd take some work to do otherwise; there's really no reason to put it in res/raw Apr 02 20:19:26 could I make it a public synchronized variable? Apr 02 20:19:31 and just pass that around? Apr 02 20:19:34 pfn: Just going by what I read on SO about it Apr 02 20:19:36 hesperaux, no Apr 02 20:20:12 holyf*k Apr 02 20:20:38 inflation is evil Apr 02 20:20:56 copared to code solution Apr 02 20:21:09 never knw the difference would be this much Apr 02 20:21:28 pfn, how do I implement synchronization then? Apr 02 20:22:13 quick question about the nomenclature of tag names for the android sources; if i wanted to checkout the latest version of say 4.1.1, that would be tag 4.1.1_r6.1 , right ? Apr 02 20:22:28 hesperaux: http://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601/ Apr 02 20:22:44 * hesperaux blinks Apr 02 20:22:49 a whole book..? >_< Apr 02 20:23:04 i bet that book will get thicker / 2e with java 8 Apr 02 20:23:16 although what is there still applies Apr 02 20:23:29 (just because the concurrency libs are getting updates, etc) Apr 02 20:24:01 how are you doing pfn Apr 02 20:24:35 pfn: do you use akka with scala? in android ? Apr 02 20:26:22 hi... can someone help me out with layout inflator? Apr 02 20:26:34 hesperaux, i second that book recomendation, really useful Apr 02 20:26:45 hmm Apr 02 20:26:55 maybe it would be easier to just use a thread-safe data structure Apr 02 20:26:57 ;( Apr 02 20:27:06 you think that :D Apr 02 20:27:19 lol Apr 02 20:27:25 thread safe data structures doesn't prevent you from creating not thread safe classes :) Apr 02 20:27:27 * layoutinflater Apr 02 20:27:53 well, maybe if i explained what i'm doing, I could get some suggestions? Apr 02 20:28:10 Does someone have an article that explains some differences in-depth about hardware vs GPU acceleration? Apr 02 20:28:43 hwrd|work, maybe I can help you out with that Apr 02 20:29:30 Is it a general question or is it Android specific? Apr 02 20:29:56 i've just made a simple class that keeps a moving average on a data set (will be provided by a bluetooth socket). The OutputSocket thread for bluetooth will be calling methods to add data to the non-thread-safe class (ValueMoment). At other times, I will be querying ValueMoment for the values it contains, probably from the UI thread. Apr 02 20:30:12 I'm using an ArrayDeque to keep the data set. Apr 02 20:36:10 Ah! done it - VideoView wouldn't load it from assets (needs a path to the file, not a filehandle, so assetmanager didn't work) - using "android.resource://" + getPackageName() + "/" + R.raw.v1" works great though Apr 02 20:36:24 (using raw folder, not assets, of course) Apr 02 20:36:58 g00s, no, I don't use akka on android, I find minimal need of it, I use the built-in actors if I want to use actors Apr 02 20:37:36 hesperaux, you should learn some concurrency basics first, java-concurrency-in-practice is a good place to start Apr 02 20:37:58 hesperaux, making all data mutation methods synchronized is an easy first-pass at making something "thread-safe" Apr 02 20:41:20 Does every view in a list share the same id? Apr 02 20:43:14 because they're recycled? Apr 02 20:44:34 When I click a list item I want to send some info about which list item was clicked, is position the only thing I can send here? Apr 02 20:47:01 whywhywhy: use the position to look up real data from your adapter Apr 02 20:47:09 you have a getItem(int position) method for a reason Apr 02 20:48:07 What are some of the major reasons a layoutinflator does not work? If I am using a layout file that I want to inflate, which context should I pass to the layoutinflator? Apr 02 20:48:24 pass the context of the activity you're working with Apr 02 20:48:27 seems pretty reasonable Apr 02 20:48:51 * pfn looks for an affordable espresso grinder Apr 02 20:48:59 apparently, affordable and espresso don't go in the same sentence Apr 02 20:50:41 Any context will work so long as its "in date" Apr 02 20:51:16 basically any :) Apr 02 20:51:26 "in date" ? Apr 02 20:51:31 well, not necessarily true Apr 02 20:51:38 using an inappropriate context will give you the wrong resources Apr 02 20:51:48 dunno ive had some dialogs not display with a context, never worked out how, had to grab a newer one Apr 02 20:51:50 e.g. using the application context will not give you properly rotated resources Apr 02 20:51:59 hmm Apr 02 20:52:02 never noticed that Apr 02 20:52:17 activities get recreated/resources-reloaded on rotation and configuration change Apr 02 20:52:28 yeh Apr 02 20:52:32 still not noticed Apr 02 20:52:34 :) Apr 02 20:52:37 so new resources will be available for getResources(), if you use a context that does not respond to configuration changes, it will not pick them up Apr 02 20:52:44 ah Apr 02 20:52:45 cool Apr 02 20:53:20 im inding android about 5000x easier these days Apr 02 20:53:24 finding* Apr 02 20:53:33 i used to spend half my time in her ebitching about how j2me was easier Apr 02 20:53:34 so, for a layoutinflater, if you're using an application context vs. activity context, and if you're rotated, you'll get the default orientation from the app context, and the rotated resources for the activity Apr 02 20:53:46 nice, didnt know it but ill bear it in mind Apr 02 20:53:50 there are other things it applies to as well, but orientation is an easy example Apr 02 20:54:40 on the whole im happy with android Apr 02 20:54:45 still a pita at times Apr 02 20:55:04 c'est la vie Apr 02 20:55:20 aye Apr 02 20:55:35 main problem is this rush for android apps Apr 02 20:55:45 badly specced, badly costed, and badly deadlined Apr 02 20:56:03 65 hr week last week to meet some nonsense deadline Apr 02 20:56:08 Gaz`: work in an app mill ? Apr 02 20:56:11 hope you got paid hourly Apr 02 20:56:16 while they all had "easter" off Apr 02 20:56:28 they told me they have this special holiday called "easter" and they cant work but i have to Apr 02 20:56:38 im like dude i know all about easter, i should be off too Apr 02 20:56:39 what does it matter, long as you get paid the hours Apr 02 20:56:56 thats true pfn ive racked up some lovely hours, but usually getting paid is not without its snags Apr 02 20:57:05 goes with the territory Apr 02 20:57:11 if they pay reliably i will take all the shit they throw at me as it take smore hrs to fix, but usually im not paid hrly Apr 02 20:57:17 * pfn is excited for new espresso machine to arrive on monday Apr 02 20:57:22 g00s pretty much Apr 02 20:57:31 got 20 odd hours overtime last two weeks myself Apr 02 20:57:37 can't complain Apr 02 20:57:42 most of it double pay Apr 02 20:57:45 no OT pay for sw contracting in the US :-/ Apr 02 20:57:51 * pfn cries a little Apr 02 20:57:59 wow dbl pay, never had that Apr 02 20:58:05 Gaz`: yeah, i think i would rather work on one product instead - whether there was a sense of ownsership Apr 02 20:58:19 depends on who you work for Apr 02 20:58:22 §qWhich espresso machine did you order? Apr 02 20:58:27 im just trying to earn so i can take time off to continue on my fps Apr 02 20:58:33 kakazza, I ordered a la nuova era cuadra2 Apr 02 20:58:41 i can guarantee i wont get paid without a fight Apr 02 20:58:43 kakazza, a relatively budget E61 HX machine Apr 02 20:58:47 and ive never dealt with this client before Apr 02 20:58:59 hey Apr 02 20:59:04 being paid without question is something i gave up long ago Apr 02 20:59:13 pfn, Gaz overall I must say that I am not even sure where to start looking for this problem. I am trying to get an overall picture of how the inflater works. Do you recommend any resource?? Apr 02 20:59:19 I'm waiting on my first paycheck from a new client, as well Apr 02 20:59:24 Is there's a way to setWakeMode() on an app, not just a mediaPlayer object? (there is no setWakeMode() method for VideoView, which seems bizarre, but I need the device kept awake at all times, not just when playing video anyway) Apr 02 20:59:32 pfn: do you ask for 50% upfront ? Apr 02 20:59:37 leor, what's to help out on? Apr 02 20:59:37 leor im thinking logcat will tell you, mostly im assuming it will be an XML issue, please paste me the error from logcat Apr 02 20:59:42 g00s, it's a pay-as-you-go thing Apr 02 20:59:42 or some amount ? Apr 02 20:59:47 k Apr 02 20:59:49 g00s, hourly, invoiced bi-weekly Apr 02 20:59:56 iim on a daily rate Apr 02 21:00:08 which i presume means hourly if im not doing exact 8 hr chunks Apr 02 21:00:23 Gaz`, daily rate => do only 8hr chunks Apr 02 21:00:38 i wish Apr 02 21:00:42 these deadlines would never allow for it Apr 02 21:00:53 you need to push the deadlines back, then Apr 02 21:00:56 i was given 50 hrs to do what i estimated would be 400 Apr 02 21:00:59 Gaz, will do thanks! Apr 02 21:01:02 more pushback in planning Apr 02 21:01:07 50 hours for 400 hours of work? Apr 02 21:01:10 something sounds wrong here Apr 02 21:01:12 yeh Apr 02 21:01:16 So what hourly rate do you guys end up with? Apr 02 21:01:21 i dont know why even the clients who seem pro are fools Apr 02 21:01:27 right now im on £31/hr Apr 02 21:01:31 kakazza, it varies widely Apr 02 21:01:46 I think a common USD figure is about $50/hr Apr 02 21:02:04 in the last year i went as low as £3.50/hr to £31/hr, due to twatty clients Apr 02 21:02:17 large consulting firms are generally about $250/hr, I think Apr 02 21:02:28 yeh im on 46us/hr Apr 02 21:02:35 but that is the best ive been paid in 6 years Apr 02 21:02:37 Just saw a video of the Espresso machine, nice. Apr 02 21:02:42 for remote freelancing that is, not in house work Apr 02 21:03:05 kakazza, yeah, I'm hoping it works out well, first espresso machine at home (used a silvia at work for a couple years) Apr 02 21:03:11 inhouse u can get like 700us a day if u look in the right places Apr 02 21:03:32 Don't get me started. I had one horror job last year. I stopped calculating €/hr Apr 02 21:03:34 what's "inhouse" Apr 02 21:03:51 pfn: contracting for a company in their office during normal office hours Apr 02 21:04:00 I see Apr 02 21:04:16 i just hate doing it Apr 02 21:04:42 my problem is i have like no confidence in my abilities Apr 02 21:04:49 hehehe Apr 02 21:04:57 the better u get the more its like that im thinking Apr 02 21:05:24 u gotta stuff up like 10 contracts before u get the confidence lol Apr 02 21:05:53 Yeah, and you gotta sell your app like a real human, not a programmer. ;p Apr 02 21:06:01 :) Apr 02 21:06:10 im sick of apps Apr 02 21:06:13 so sick Apr 02 21:06:25 even my mates have better android phones than me, i watch and go oh wow Apr 02 21:06:36 Some programmers I know tend to go "99% of the app work perfectly, but there's these two edge cases that happen in 0,00001% of all cases, let me explain 10 minutes why the app isn't perfect" Apr 02 21:06:37 and im the only one working in apps lol Apr 02 21:06:47 Gaz`: just buy a better phone? Apr 02 21:06:48 And they work in? Apr 02 21:06:54 ok worth asking again, anyone able to explain drawable padding inside a button, as in the drawableLeft etc ? I cant seem to find how to pad it to the right ? Apr 02 21:06:55 theyre all english teachers Apr 02 21:07:07 StingRay_: just add padding to left? Apr 02 21:07:13 no Apr 02 21:07:20 to the drawableLeft Apr 02 21:07:23 not the button Apr 02 21:07:24 timroes yes i will as soon as im paid :D Apr 02 21:07:30 the drawable inside the button Apr 02 21:07:36 ah i dunno u got me there StingRay_ Apr 02 21:07:46 theres usually 10 or 20 ways to achieve what u want tho Apr 02 21:07:59 took me ages to "get" the xml layout crap tbh Apr 02 21:08:14 now i can tear out any gui in no time (heh) Apr 02 21:08:31 Gaz`: well I'm in the middle of dropping xml Apr 02 21:08:33 :) Apr 02 21:08:39 timroes might just go on ebay and get htc one x or soemthing, im making a FPS Apr 02 21:08:41 anyone around here use another language instead of Java for Android development? Apr 02 21:08:44 and really glad so far! Apr 02 21:08:44 if so, how is it? Apr 02 21:08:53 StingRay_ what will u replace it with Apr 02 21:08:54 my galaxy nexus is beginning to show its age Apr 02 21:08:55 Hi :) Apr 02 21:08:59 I can barely play bladeslinger Apr 02 21:09:05 it crashes out like ios apps crash :-/ Apr 02 21:09:05 pfn im using my nexus one i got free from google Apr 02 21:09:09 i recently 'upgraded' from a gnex to a nexus 4 Apr 02 21:09:15 i really wonder why the working conditions are so bad in other countries Apr 02 21:09:15 my own layout/viewMap class and code creation rather than inflation Apr 02 21:09:28 so far I'm very impressed with performance boost Apr 02 21:09:36 specially in my case usage Apr 02 21:09:42 nice one Apr 02 21:09:52 i been working on a toolset for making apps easier, thats going nice Apr 02 21:10:06 i drop it in each new app and i call on it and write way less code Apr 02 21:10:41 been able to convince any clients to use scala yet? Apr 02 21:10:43 but then i guess we all have our own something like that Apr 02 21:10:52 lol i wont touch scala, the language of gits :p Apr 02 21:10:58 oh waitaminute Apr 02 21:11:00 wrong guy Apr 02 21:11:12 it was another G-name that did scala Apr 02 21:11:17 I forget who it was Apr 02 21:11:20 you're the guy that came from j2me Apr 02 21:11:26 yeh not me, scala is as mad as prolog for me Apr 02 21:11:31 yeh im the j2me guru lol Apr 02 21:11:39 long before apps were apps.. lol Apr 02 21:11:51 i even did j2me apps for formula one teams Apr 02 21:12:19 scala is nice peace of a language, way better than java (though that shouldn't be sooo hard), but for android.. don't know. will keep on sticking with 'naitive' android languages for now Apr 02 21:12:22 and games Apr 02 21:12:25 paperboy2 etc Apr 02 21:12:33 ice age, bustamove.. blah Apr 02 21:12:36 timroes, it's relatively easy to write android apps in scala Apr 02 21:12:51 and in ics+ as well as the newer sdk's, running proguard is no longer a strict requirement Apr 02 21:12:57 although, dx takes goddamn forever Apr 02 21:13:01 i genuinely like java, i get ripped for it, but i still dont know why :) Apr 02 21:13:05 http://stackoverflow.com/questions/15712995/changing-the-font-on-actionbar-tabs hey, any ideas on this? Apr 02 21:13:15 Gaz`, java's a generally terrible language Apr 02 21:13:20 because java is really dated Apr 02 21:13:20 didn't say its hard. just not the naitive way, and you might need to bend yourself too much Apr 02 21:13:21 stork: didn't you ask this recently and have JakeWharton tell you that you're out of luck? Apr 02 21:13:26 and especially our build servers :D Apr 02 21:13:27 i guess im not a language purist enough to notice Apr 02 21:13:35 pfn main reasons? Apr 02 21:13:36 Java 8 has lambdas and such in it...perhaps as time goes on, the need for things like Scala will diminish somewhat Apr 02 21:13:38 evanc: I don't recall, if he did I missed his message :| Apr 02 21:13:47 Ologn, not really Apr 02 21:13:47 Q: I found http://developer.android.com/training/animation/cardflip.html, what i need is to load from network few pictures and change them like in cardfliper(or similar its like advertising). Should i use the Matrix() to do it or is there some other way ? Apr 02 21:14:00 Ologn, just because java adds lambdas doesn't bring to the table all the features of scala Apr 02 21:14:23 there's nothing in my lastlog Apr 02 21:14:53 Gaz`, incredibly verbose language constructs is one Apr 02 21:15:07 Gaz`, lack of any higher order function composition Apr 02 21:15:24 java is like xml :) Apr 02 21:15:47 blee Apr 02 21:15:49 you produce a lots of tones of code, for simple stuff that modern languages can write very short Apr 02 21:15:51 since its only short meaning Apr 02 21:16:06 yeh i guess so Apr 02 21:16:08 stork: are you storkme? http://pastebin.com/GPyLcJkQ Apr 02 21:16:12 yep, thats true :) look on python :D Apr 02 21:16:21 still would need to see some examples Apr 02 21:16:27 perl ftw :D Apr 02 21:16:30 i used to hate all the casting from vectors but thats gone Apr 02 21:16:33 oh. Apr 02 21:16:36 hesperaux: -- Apr 02 21:16:42 :) Apr 02 21:16:45 I'd totally missed that :| Apr 02 21:16:51 Gaz`: you want to see examples for why java sucks? Apr 02 21:17:02 yeh Apr 02 21:17:09 as i say im not a language purist Apr 02 21:17:14 so i may not understand Apr 02 21:17:23 i give you a collection of names, please return only the ones containing "xyz" in them in a list Apr 02 21:17:45 * hesperaux hugs regex Apr 02 21:17:51 while, grab each element, get string, if contains, add to array list, return Apr 02 21:17:53 hesperaux: yeeeep, No!: ) python :) Apr 02 21:18:04 Gaz`: see you give the answer yourself :) Apr 02 21:18:16 hehe yeh i get ur point Apr 02 21:18:22 meaningless repititoon of an every day task Apr 02 21:18:25 timroes: Collections2.filter(Collection,Predicate) Apr 02 21:18:28 i must write that sit 3x a day myself Apr 02 21:18:33 shit* Apr 02 21:18:48 thanks evanc I just read the lastlog from friday, I was really really drunk and must have blacked it out, sorry :/ lol Apr 02 21:19:06 timroes in many ways id rather write that than figure out some mad regex tho Apr 02 21:19:15 gaz, for some reason it is claiming... "04-02 21:16:06.230: E/AndroidRuntime(798): android.content.res.Resources$NotFoundException: Resource ID #0x7f080007 type #0x12 is not valid" Apr 02 21:19:16 in python e.g return [ name for name in names: if "xyz" in name ] (or something like that, i don't do python a lot) Apr 02 21:19:29 timroes but yeh in things like processing they prob simplified it, but again in your own toolset youd eventually maybe end up with a reusable method for it Apr 02 21:19:43 a reusable method won't help you Apr 02 21:19:46 timroes: so in other words, syntactically equivalent to Collections2.filter Apr 02 21:19:48 which does not seem right... Apr 02 21:19:49 leor sounds like a resource has changed and u haent refreshed, try a clean then rebuld n run Apr 02 21:19:52 because we have 2013 and still no lambda expressions Apr 02 21:20:03 you still will need to do something like Apr 02 21:20:13 regex is actually not that difficult Apr 02 21:20:15 it is just hard to read Apr 02 21:20:22 ok, how does that happen with ADT/Eclipse? Apr 02 21:20:35 sorry I am just asking you a ton of questions Apr 02 21:20:36 filter(names, new Filter() { public boolean isFiltered(String name) { return name.contains("..."); } } ); Apr 02 21:20:45 leor if u edit resources or add/remove one and eclipse doesnt know then the reosurc elist seems to get f00ked Apr 02 21:20:48 * stork shudder. Apr 02 21:20:58 if you want to format that allright, you will have i guess 5 lines of code Apr 02 21:21:01 leor i refresh or save all or clean after any thing like that Apr 02 21:21:16 instead of one (like python or C#) Apr 02 21:21:20 leor usually when u do somethign in windows liek drop a new png in, then flip back to eclipse, it wont auto refresh Apr 02 21:22:00 yeh its true timroes Apr 02 21:22:12 i guess java is just showing its age Apr 02 21:22:15 what's a lambda expression? Apr 02 21:22:16 Fortunately I am not using Windows, but at the same time I am getting this error in my console: [2013-04-02 17:18:22 - Emulator] Failed to load libGL.so Apr 02 21:22:17 [2013-04-02 17:18:22 - Emulator] error libGL.so: cannot open shared object file: No such file or directory Apr 02 21:22:17 [2013-04-02 17:18:22 - Emulator] Failed to load libGL.so Apr 02 21:22:17 [2013-04-02 17:18:22 - Emulator] error libGL.so: cannot open shared object file: No such file or director Apr 02 21:22:17 its c/c++ style roots Apr 02 21:22:22 i don't say i dislike java or so. still i do most of my coding in it. just think its way outdated and is missing a lot of nice features Apr 02 21:22:33 e.g. have had worked the past month with lots of multithreading stuff Apr 02 21:22:42 I can take care of that one later, Apr 02 21:22:49 leor, don't paste in channel. you need to make sure libGL.so is in your LIB_PATH or w/e Apr 02 21:22:50 leor windows or not i mean the OS :), that one im sure u can fix on google Apr 02 21:22:59 that must be parallel in some points and waited for in other and so on, its a huge pain in the a** in java Apr 02 21:23:16 something like c# async keyword would come in handy Apr 02 21:23:20 timroes yeh ive always found threading in java to be a complete nightmare Apr 02 21:23:26 i always assumed it was because im not smart enough Apr 02 21:23:30 threading in python is worse Apr 02 21:23:34 i'm willing to stake my life on it Apr 02 21:23:41 i guess you shouldn't do threading in python :) Apr 02 21:23:44 maybe I'm weird but I actually really like threading in java Apr 02 21:23:46 its not meant to be done, but for java it is Apr 02 21:23:48 one of our uni assignments was on threading and only now 10 yrs later could i prob ace that assignment Apr 02 21:23:53 and even then it would be trial and error Apr 02 21:23:57 :D Apr 02 21:24:04 stork: you are :D Apr 02 21:24:27 I think the relationship I have with java is mostly Stockholm syndrome Apr 02 21:24:28 stork yeh its satisfying when u get it right, i think some brains handle the concept better than others, i blame my left handedness for being dumb with easy things lol Apr 02 21:24:45 stork yeh thats me too, in fact prob the only lang i really know well nowadays Apr 02 21:25:10 for(int i = 0; i<100;i++) { list.add(callMethod(i)); } Apr 02 21:25:12 once ur familiar with something it seems easy, theres a word for that but i cant recall it Apr 02 21:25:19 now please parallelize all the callMethod calls Apr 02 21:25:32 so they will be all executed at the same time, but ofc still inserted in the right order in the list Apr 02 21:25:49 its such a simple task, and still you need (in my opinion) way too much more lines to achieve it in java Apr 02 21:26:06 can I just use an ExecutorService, anonymous inner classes, and use list.put ? Apr 02 21:26:23 list doesn't have a put mehtod :) Apr 02 21:26:28 i met some guys in a karaoke in taiwan once, and they all sang the chinese reading the character son the screen and got it perfect - i said WOW that is AMAZING! they said oh its so EASY, u must be stupid...... an hour later i learned they all knew each other from a computing science class, they were all c++ students, and we got talking, they were saying how hard it was.. couldnt help myself Apr 02 21:26:28 and i said oh my god its so EASY u must be stupid.. think they got my point Apr 02 21:26:29 ah, so it doesn't. Apr 02 21:26:40 it only has an insert(index, object) method, but that will move everything behind that index Apr 02 21:26:47 why does the ActionBar allocate space for homeAsUp even when homeAsUp is not enabled? is this just to ensure consistency on other screens where homeAsUp is true? Apr 02 21:26:54 and trying to insert the later objects before the list is large enough would just throw exceptions Apr 02 21:27:24 hehe timroes u got this one nailed Apr 02 21:27:33 this is why i hate java exams tho Apr 02 21:27:33 oh and btw the whole method should sychronous return the resulting list :) Apr 02 21:27:37 they come up with something like this!! Apr 02 21:27:42 so the return statement need to wait till the list is completelty filled :) Apr 02 21:27:57 Gaz`: thats not an imaginary example :) Apr 02 21:28:00 that's why i don't take java exams Apr 02 21:28:06 hesperaux me too Apr 02 21:28:07 its exactly some part of code i did some month ago :) Apr 02 21:28:12 trick questions the lot of them Apr 02 21:28:17 and yet no one agrees with me Apr 02 21:28:18 switched to electrical engineering :) now i can program for fun instead of torture Apr 02 21:28:20 the call was to deserialzie objects Apr 02 21:28:45 timroes yeh thats a nasty bit to write, i come across them only a few times a yr thankfully, writing apps isnt rocket science nowadays :D.. Apr 02 21:28:58 was the solution complex? Apr 02 21:29:18 stork: it was Apr 02 21:29:20 stork, lol ;] Apr 02 21:29:25 if u sit a codility test u see some madness Apr 02 21:29:32 stork: wait i copy paste it :) Apr 02 21:29:32 theyre bloody hard Apr 02 21:30:02 and some jobs require u to pass with like 90% on codility, just to write an app about some horse races Apr 02 21:30:24 lol, i just watched a video on threading using a Horse Race model Apr 02 21:30:27 :) Apr 02 21:30:30 is there any benefit to timing your release for a special time of day? Some 'new' lists or something? Apr 02 21:30:38 hehe hesperaux last 4 apps of mine were horse race apps Apr 02 21:30:55 Gaz`, ;D help me thread-safe my data structure! :P Apr 02 21:31:01 i've never done this before Apr 02 21:31:11 synchronize? Apr 02 21:31:12 stork: https://github.com/inovex/jMOM/blob/dev/src/de/inovex/jmom/CollectionConverter.java#L97 line 97 to 109 starting the threads (as long as multithreading is enabled), line 112 to 119 waiting for all threads to be finished, and insert result in list and line 196 the actual thread running in background Apr 02 21:31:13 * Gaz` ducks Apr 02 21:31:18 hehe Apr 02 21:31:31 i suck at the good stuff Apr 02 21:31:34 xorgate: no really, no. Though I wouldn't launch it just before I went to bed, personally. Apr 02 21:31:37 * hesperaux throws synchronize magic word in front of everything Apr 02 21:31:39 but synchronize is all that springs to mind Apr 02 21:31:41 hehehe Apr 02 21:31:49 synchronize! Apr 02 21:31:53 in j2me the rule was if you could get away with it make everything public static and final Apr 02 21:31:55 doitjava! Apr 02 21:32:17 ah i see timroes Apr 02 21:32:25 stork: though you could have also insert the elements after loading in the thread and not in the separate loop. but you would still need the separate loop to wait for all threads to finish, so you can also add the objects there and save the overhead of using a concurrent list tehrefor Apr 02 21:32:39 hm, looks cool. from the guys who worked on protobuffs http://kentonv.github.com/capnproto/ Apr 02 21:33:22 lovely stuff timroes, id just stare at that blankly for days getting angry with u if i took over this code :d Apr 02 21:33:49 Gaz`: still missing some documentation, that will be inserted in the next two weeks :) Apr 02 21:34:01 I like to write a small thesis on how it works before i forget :) Apr 02 21:34:05 aha! Apr 02 21:34:06 :) Apr 02 21:34:07 but still its one of the easiest way achieving that seemingly very simple task Apr 02 21:34:14 yep Apr 02 21:34:20 def java can have its moments Apr 02 21:34:22 in fact that was part of my thesis :D Apr 02 21:34:32 i sorta feel like python etc is a bit too sql tho if u know what i mean Apr 02 21:34:38 oh wow im dead on eh Apr 02 21:34:43 but only very very small part, the whole github project, was done in 2 weeks and only the mapper inside a way larger framework Apr 02 21:34:43 Gaz`, too many english words? Apr 02 21:35:09 hesperaux dunno i guess so, writing each line helps me work it out better, but im assuming id get used to something like python fast Apr 02 21:35:24 evanc :) how so? afraid of sudden bugs? Apr 02 21:35:30 i avoid python, for subjective reasons Apr 02 21:35:34 the nice thing with python: you can do it like in java the long way :) Apr 02 21:35:39 and can optimize it step for step :) Apr 02 21:35:55 is python slow tho? Apr 02 21:35:56 if i code python it often ends up looking like java :D Apr 02 21:35:58 * Gaz` braces Apr 02 21:36:04 timroes, so like in perl, you can "guru up" your c-style code? Apr 02 21:36:35 its a scripting language and as such always slower then compiled, thought I wouldn't use it for things needing to go fast :D Apr 02 21:36:37 re Apr 02 21:36:49 python is for me a scripting language for small scripts and that job it does pretty well for me Apr 02 21:37:01 that's what I use perl for Apr 02 21:37:10 timroes well i dont do anything much apart from apps im guesing its fast enough for that, nowadays im doing my games in the awesome unity Apr 02 21:37:29 * hesperaux collapses on the floor and shakes at the sound of Unity Apr 02 21:37:39 Unity as in .Net ? Apr 02 21:37:49 Unity != awesome :) Apr 02 21:37:57 i guess unity3d? Apr 02 21:38:05 oh well actually, maybe it does if your a programmer Apr 02 21:38:19 why .net? Apr 02 21:38:27 They have an ORM called Unity Apr 02 21:38:30 Which is a mess Apr 02 21:38:37 ah don't know that yet Apr 02 21:39:12 unity3d yes Apr 02 21:39:19 its freakin gorgeous Apr 02 21:39:29 Gaz`: in what way ? Apr 02 21:39:40 makes writing games easier Apr 02 21:39:43 don't like 3d games in general :D and for 2d games there are more suitable tools :) Apr 02 21:40:04 yeh i just spent 6 yrs writing a 2d games design tool Apr 02 21:40:04 Gaz`: was gonna say from an art td, it not all that great Apr 02 21:40:17 and ive dropped it like a hot cake after finding unity Apr 02 21:40:20 :-{ Apr 02 21:40:42 worst bit is my docs arent even complete Apr 02 21:40:48 im never gonna remember even how to use it lol Apr 02 21:41:07 new to java and android dev. good place to ask newbie question? Apr 02 21:41:17 theres a sunday project, finish my docs wrap it up throw it on github and wait for the abuse Apr 02 21:41:24 sure SeriousMatters Apr 02 21:41:54 Writing a simple Noughts And Crosses game, as practice. Apr 02 21:42:01 classic Apr 02 21:42:06 thats a Serious Matter ! Apr 02 21:42:15 as aserious as they get Apr 02 21:42:19 g00s++ Apr 02 21:42:20 I have a ImageView.setImageResource(R.drawable.some_image); Apr 02 21:42:43 g00s++ Apr 02 21:42:45 agreed Apr 02 21:42:49 and then some minimax, followed by another setImageResouce Apr 02 21:42:49 'noughts and crosses' .. is that with a 3x3 gri Apr 02 21:42:50 d Apr 02 21:43:00 xorgate: yes. Apr 02 21:43:03 xorgate: tic-tac-toe Apr 02 21:43:12 in holland we call that 'butter, cheese and eggs' Apr 02 21:43:20 lol u damn dutch Apr 02 21:43:20 o_O Apr 02 21:43:36 too many reefers i say Apr 02 21:43:39 teehee Apr 02 21:43:42 or not enough? Apr 02 21:43:47 * Gaz` pretends to roll Apr 02 21:43:52 yep Apr 02 21:43:57 time to actually roll Apr 02 21:44:07 :0 Apr 02 21:44:16 im working for 2 dutch clients right now Apr 02 21:44:24 one thing i like is their lack of seriousness Apr 02 21:44:33 just having a laugh,swearing, being cool Apr 02 21:44:39 Where can I control the description the user sees when searching for apps in the google store? Apr 02 21:44:40 and im seeing them in every pub in town Apr 02 21:44:48 legends Apr 02 21:44:52 - on the search page Apr 02 21:45:02 so, there are 2 setImageResource() and a long Ai search in between. The problem is, the first setImageResource do not appear until the long Ai search finishes and 2 images appear together Apr 02 21:45:16 why is that? Apr 02 21:45:35 SeriousMatters: because the ai stuff should run on a separate thread Apr 02 21:45:38 you're blocking the UI update thread Apr 02 21:45:51 basically all the work is being done in one go, the cpu hasnt any time to repaint, you need to use a thread or timer off the ui one Apr 02 21:46:12 also, if your work is taking a long time, you probably need to reconsider your algorithm :P Apr 02 21:46:35 well. it's a minimax search.... Apr 02 21:46:48 yea, I didn't optimise it or anything Apr 02 21:47:05 it's not an AI project. just getting used to java and android apis Apr 02 21:47:10 but yeah, move the work to a separate thread. Look into AsyncTask Apr 02 21:47:17 yeh id look into using a thread, id not worry about optimising Apr 02 21:47:53 this sort of stuff annoys me, but i guess its part of programming Apr 02 21:47:55 so, separate thread or some timer off. Apr 02 21:48:11 * SeriousMatters googles asynctask Apr 02 21:48:14 yeh thread, i was wrong to mention timers i think Apr 02 21:48:21 yeh asyncs are nice Apr 02 21:49:19 damn i was gonna work on my game, ive spent my time drinking heinken and chatting on irc Apr 02 21:49:54 evanc, guava helps the java pain, a little... just a little--I do use it in every java project I work on Apr 02 21:49:54 What looks wrong with this? https://gist.github.com/rburton/5296518 It doesn't throw an exception and the picture is captured correctly Apr 02 21:50:10 Gaz`: Thats not a bad alternative Apr 02 21:50:24 Gaz`, well done sir Apr 02 21:50:28 pass one over here Apr 02 21:50:31 ;) Apr 02 21:50:57 pfn guava, so its nice? Apr 02 21:52:39 I always hate when things just execute quitly without any warning or error :) Apr 02 21:52:42 setCompoundDrawablesWithIntrinsicBounds-- Apr 02 21:53:35 pfn: watch out for it on Android, though. It has this massive sprawling code graph that proguard can't really prune Apr 02 21:53:36 darnn, I wish I had paid more attention in realtime/concurrency classes. Apr 02 21:53:50 SeriousMatters Share nothing. Class done :) Apr 02 21:53:55 Where can I change the text that shows up when a user is on the search page on google play? Apr 02 21:54:06 It doesn't seem to be from the description? Apr 02 21:54:45 apple741: as far as I can see, it's from the description Apr 02 21:54:48 I was hoping that using https://gist.github.com/rburton/5296518 would allow me to display the picture captured in the text edit where the user is typing their message. Apr 02 21:55:01 https://play.google.com/store/search?q=tetris <-- that's the description of TETRIS(R) free Apr 02 21:56:50 ah I see evanc , it seems to use the promo text followed by the description. Apr 02 21:57:12 X is to dart as node.js is to JavaScript. What is X? Apr 02 21:58:53 Try vert.x? Apr 02 21:59:06 pfn does guava increase build time much? Apr 02 21:59:45 rburton-: yeah, vert.x looks nice Apr 02 21:59:48 * jda2000 googles vert.x Apr 02 21:59:55 Tim Fox did a good job on it Apr 02 21:59:59 node.js for java Apr 02 22:00:02 The guys an animal Apr 02 22:00:19 I've got a thread object in my activity. How do I poll that thread for data values in the UI? Apr 02 22:01:04 hesperaux: you read Java Concurrency in Practice of course :) Apr 02 22:01:12 nooooo.... Apr 02 22:01:20 i don't have the book Apr 02 22:01:22 I guess I'm starting to understand it. thanks Apr 02 22:01:28 Gaz`++ Apr 02 22:01:32 evanc++ Apr 02 22:02:08 evanc: Do you think keywords in the promo text are ranked higher than in the regular description? Apr 02 22:02:25 rburton-: other cool stuff is LMAX disruptor Apr 02 22:03:01 haven't seen that Apr 02 22:03:48 :) Apr 02 22:04:14 So android:drawableRight="@drawable/xyz" works but trying to do it dynamically via setCompoundDrawables(..) doesn't hmm Apr 02 22:04:42 or is it the bitmap Apr 02 22:05:01 gonna go afk cheers guys Apr 02 22:05:51 text.setCompoundDrawables(null, null, getResources().getDrawable(R.drawable.social_person), null); doesn't work but setting it via XML does. Strange Apr 02 22:06:03 apple741: I have no idea, but keyword stuffing sucks Apr 02 22:06:58 Its not very effective? Apr 02 22:07:54 I should have guessed that. A vertex is a node in a graph. Apr 02 22:08:47 Gaz`, not much, no, it's an extra library to dex Apr 02 22:09:16 evanc, bah, who cares about pruning as long as the dexer is happy, and the resulting odexing or whatever on device doesn't crash Apr 02 22:09:23 apple741: no, I mean when it's done, it's lame and annoying and comes across as stupid and comes across as scammy Apr 02 22:09:44 Gaz`, guava makes java somewhat bearable to work with Apr 02 22:09:56 pfn: so long as you're not near the 2^16 method limit :P Apr 02 22:10:07 evanc, I believe that went away in ICS Apr 02 22:10:18 pfn: not as far as I know Apr 02 22:10:36 I've been hearing that the limit was "fixed" as of ics or jb Apr 02 22:10:55 I haven't tried running my scala apps without proguarding to find out Apr 02 22:11:05 good point I have seen that many times evanc Apr 02 22:12:53 pfn: what parts of guava have you found most useful ? Apr 02 22:13:11 i didn't see much; the eventbus inspired me a while back, but i haven't needed anything else Apr 02 22:13:52 i guess if it has a collection thats really useful thats nice Apr 02 22:15:21 g00s, everything in Collections2, Lists, Maps, Sets, Iterables, Predicate, Function, Joiner have all been tremendously useful Apr 02 22:15:24 EventBus is nice as well Apr 02 22:15:35 I use the former regularly, and the latter sometimes, when I can design it in early Apr 02 22:16:10 I'm using Otto, that's nice. Apr 02 22:16:10 i have to look at it again; i'm always on the lookout for new concurrency primitives as well Apr 02 22:16:33 stork == storkme ? Apr 02 22:16:41 the very same Apr 02 22:16:46 \o/ Apr 02 22:16:55 :D Apr 02 22:16:59 poor p_l and P-l Apr 02 22:17:02 the stork is a lie Apr 02 22:17:34 terrible fallacy Apr 02 22:17:51 g00s, if you have done any functional programming before, you will appreciate guava Apr 02 22:18:22 cool Apr 02 22:18:38 i have found Java Trove pretty useful for primitive collections Apr 02 22:20:06 must say the otto docs seem to be lacking a bit :/ Apr 02 22:20:36 your timing, sir, is impeccable. Apr 02 22:20:48 Or yours ;) Apr 02 22:23:05 stork I thought that Apr 02 22:23:13 but then there is nothing to it Apr 02 22:23:15 :) Apr 02 22:34:54 Hey, does anyone know how to connect to my localhost on my android phone without going through wifi Apr 02 22:34:55 ? Apr 02 22:50:07 jsum_: er, you can't Apr 02 22:54:06 are you sure there is no work around at all? Apr 02 22:55:01 jsum_: that's not how the internet works Apr 02 22:55:16 well, the phone is connected though usb i mena Apr 02 22:55:17 mean* Apr 02 22:55:38 and I'm going through adb Apr 02 22:56:33 google for [android reverse tether] and enter a world of pain if you really want to go down that path Apr 02 22:56:52 I am experiencing "04-02 22:44:49.388: E/AndroidRuntime(780): android.content.res.Resources$NotFoundException: String resource ID #0x3" I already tried refreshing the project workspace and running lint. Any ideas? Thanks... Apr 02 22:57:28 eclipse ? Apr 02 22:58:57 leor: are you calling someTextView.setText(someNumber) where someNumber is an int? Apr 02 22:59:41 yes... Apr 02 23:00:05 well there's your problem :) Apr 02 23:00:06 evanc: I'll look into that thanks Apr 02 23:00:22 leor: someTextView.setText(String.valueOf(someNumber)); Apr 02 23:00:52 wow... no automatic string conversion? Apr 02 23:00:58 Thanks Apr 02 23:01:14 evanc: does the device have to be rooted for reverse tethering to work? Apr 02 23:01:25 How would it know that you're passing a normal int instead of an R resource? Apr 02 23:03:22 getResources().getString(R.string.blah); Apr 02 23:07:05 jsum_: yes Apr 02 23:07:23 g00s: what phone/device have you got ? Apr 02 23:07:28 leor: as kakazza points out, that's not it at all Apr 02 23:07:33 evanc: okay, i can't root my phone. Then does that mean I'm out of options? Apr 02 23:07:39 StingRay_: original droid-1 (a855) Apr 02 23:07:46 jsum_: yes Apr 02 23:07:59 g00s: could you test someting for me ? Apr 02 23:08:04 Q: What will be the best choice, on case where i need to inform my application that should download few pictures and make from them animation ? Apr 02 23:08:05 jsum_: or expose your desktop as a publicly-routable address on the internet Apr 02 23:08:36 StingRay_: possibly Apr 02 23:09:42 evanc: thanks. I can't do that since this is for an internal testing tool and our company's security won't let us expose anything publicly Apr 02 23:09:57 ahhh.... tricky... Apr 02 23:11:30 anyone know why asynctask crashes when I press the back button and return back to the task Apr 02 23:11:32 jsum_: you could probably do the opposite, using adb forward Apr 02 23:11:51 i.e. open a port on the phone, and then connect to it from your host, via an adb forward redirection Apr 02 23:12:06 We tried using forward but it forwards a machine port to the device instead of the reverse Apr 02 23:12:15 we want to forward the device port to the machine instead Apr 02 23:12:21 oh, I thought that's what it did Apr 02 23:15:29 That's what we thought as well till we tried it out Apr 02 23:15:35 heh Apr 02 23:16:06 you could probably write a little command line utility, maybe? Apr 02 23:16:43 that serves as a bridge between the adb forwarded port and the port you want to connect to on the device Apr 02 23:17:23 How would we go at going that? Apr 02 23:17:28 doing* Apr 02 23:17:44 smoke and mirrors :) Apr 02 23:17:57 option 1: see if the NDK allows compilation of binaries Apr 02 23:18:18 option 2: use some other cross compile toolchain and produce a static binary Apr 02 23:18:27 I have an edittext and im trying to prase it as a double and as you may know I can't prase "" or "." or honestly anything else that isn't a number. Would it be safe to use try catch here? Apr 02 23:19:19 I have conditions for the if statement checking if it is "" or "." but I mean that only works on the softkeyboard. Not on the physical one. Apr 02 23:20:04 yes. you should wrap the parseDouble in a try block, and catch NumberFormatException, or whatever the exception is Apr 02 23:20:43 Sounds good. Thanks. Apr 02 23:20:49 JesusFreke: that sounds like a lot of work XD Apr 02 23:21:03 agy2154: alternatively set android:digits="0123456789" on the edittext, if that's still a thing (it might be deprecated now) Apr 02 23:21:34 agy2154: android:inputType="number" seems to be the new hotness Apr 02 23:21:48 evanc, yeah im using that. But it also only works on the soft keyboard. Apr 02 23:22:06 evanc, Lmao thats okay anyways. I'm pretty sure no one is going to run this app on their computer. Apr 02 23:22:07 agy2154: yeah. Sorry, I meant you should use that in addition to try/catch Apr 02 23:22:28 agy2154: you know there are millions of devices which have hardware keyboards, yes? Apr 02 23:22:38 and probably some softkeyboards which show more than just numbers Apr 02 23:23:13 evanc, Yeah but you can only input numbers and decimals in a "number" input type. You can't use the other available stuff such as plus minus and mulitplication. Apr 02 23:23:36 evanc, Yeah I will use try catch. And are hardware keyboards (slider keybaords) treated the same as a hardware keyboard on the emulator? Apr 02 23:24:09 agy2154: yeah, they should be Apr 02 23:48:30 Anyone experience any variance in .9 renderings? Apr 02 23:48:39 no Apr 02 23:48:54 out of interest, what kind of variances ? Apr 02 23:49:06 I'll post some screen shots, 1 sec. Apr 02 23:54:06 http://i.imgur.com/pKnv37j.png Apr 02 23:54:10 StingRay_ ^ Apr 02 23:54:43 ok what am I looking at there ? Apr 02 23:54:49 All the same .9 Apr 02 23:54:56 also post src file Apr 02 23:54:58 Seems like some of them bleed. Apr 02 23:55:06 Some don't. Apr 02 23:55:10 Different devices Apr 02 23:55:15 oh Apr 02 23:55:34 thats odd Apr 02 23:55:41 and quite impossible Apr 02 23:55:57 given these are from screenshots ? Apr 02 23:56:05 Yea. Apr 02 23:56:14 show me src 9.pach Apr 02 23:56:17 patch* Apr 02 23:56:18 Working on it. Apr 02 23:57:28 https://dl.dropbox.com/u/7081072/ic_menu_activated.9.png Apr 02 23:57:55 hmm connection died Apr 02 23:57:58 back now Apr 02 23:58:27 https://dl.dropbox.com/u/7081072/ic_menu_activated.9.png Apr 03 00:00:13 StingRay_ thats my .9 Apr 03 00:00:50 looking Apr 03 00:00:54 in PS Apr 03 00:01:40 and the reason for you using 9patch in this example ? Apr 03 00:02:01 Seemed right? What would you have chosen? Apr 03 00:02:20 It's a row in a list view. Apr 03 00:02:24 well you have a FIXED pixel width of color here Apr 03 00:02:35 Like the native YouTube app. Apr 03 00:02:57 as in both the content and stretch X area are not part of the look Apr 03 00:03:17 so all this is saying is have a 9 pixel green bit Apr 03 00:03:25 no matter the usage Apr 03 00:03:37 9 pixel width obviously Apr 03 00:04:42 so tis a bit odd to me to use it in this context Apr 03 00:04:54 but neways, looking at your prob, and if I were to guess Apr 03 00:05:42 I would say some kind of pre-display filter is happening, making what is supposed to be black, a little green Apr 03 00:06:05 as to why that would occur, bit odd, this is just a standard android button right ? Apr 03 00:06:15 Yes. Apr 03 00:06:28 ListView. Apr 03 00:06:50 you mean a listView item background ? Apr 03 00:06:58 Selector. Apr 03 00:07:01 So when it's activated. Apr 03 00:07:03 oh Apr 03 00:07:04 It shows that. Apr 03 00:07:06 oh oh Apr 03 00:07:14 that would make more sense Apr 03 00:07:17 with the filtering Apr 03 00:07:21 Like I said, I'm doing something similar to the YouTube app. Apr 03 00:08:04 well a quick fix Apr 03 00:08:11 hang on Apr 03 00:10:48 test my theory Apr 03 00:10:51 http://dl.dropbox.com/u/80096154/ic_menu_activated.9.png Apr 03 00:10:56 use that Apr 03 00:18:41 JoeTheGuest: works ? not work? Apr 03 00:20:53 :: waves fist in the air about Android's screen orientation :: Apr 03 00:21:27 Capture image intent roates the screen orientation which is annoying as hell. I either a) write my own logic to capture an image or handle the rotation logic Apr 03 00:21:46 or read the exif ? Apr 03 00:21:56 and thus get the image rotation Apr 03 00:22:54 I think so. Apr 03 00:23:03 The image kind of bleeds onto the above fragment. Apr 03 00:23:23 Kind of odd. Apr 03 00:23:34 Testing on my gnex and nexus 7. Apr 03 00:35:45 does anyone know how to use GDB with Android JNI code? Apr 03 00:35:50 I'm writing JNI code that I'd like to debug. Apr 03 00:43:29 capella: ff 20 \o/ Apr 03 00:43:52 yah ... we rock ! :D Apr 03 00:44:03 :) Apr 03 00:44:24 touchpad bug didn't get fixed :( Apr 03 00:45:20 no - I havent seen any activity on it ... that's why I mentioned you might want to add a comment / question to the module owners if there was someone you might help test / prove / reproduce the bug Apr 03 00:45:56 kinda drive it yourself ... hmmm ... lemme double check who owns that area Apr 03 00:46:40 its so obscure, i really dont know what else i can contribute Apr 03 00:46:50 its probably not on their list of priorities Apr 03 00:47:43 ick ... our wiki servers hiccuping Apr 03 00:48:50 g00s I'll loop back to this inna bit Apr 03 00:49:02 ;) Apr 03 00:54:52 Would you use VARCHAR(100) or TEXT? Apr 03 00:56:06 i use a text field when there is no upper limit, varchar when there is, char when it's set Apr 03 00:58:21 wow core::dom::events ... I know one guy there and what he's gonna tell me ... and my response will be: "I don't know the code well enough to fix it myself!!!" :P Apr 03 00:58:34 i'm wondering at which length the performance payoff of inlining a string impacts performance negatively Apr 03 01:04:48 g00s: hmm... apparently FF on MAC has pixel scrolling and linux doesn't ... is this a thing? Apr 03 01:05:41 and I guess then WIN7 has pixel scrolling 'cause the bugs occurs for me there also Apr 03 01:06:22 easy fix, use chrome g00s Apr 03 01:06:44 though I should get you over to the moznet #introduction channel to talk to me there where others might join on topic Apr 03 01:07:02 Would this work? Apr 03 01:07:03 http://paste.ubuntu.com/5672273/ Apr 03 01:07:44 Why don't you just try it? Apr 03 01:07:57 that's the beauty of the IDE :P Apr 03 01:09:32 anyone know if I can create a beta key/code for people testing an app that was published to the play store? Apr 03 01:09:45 first time publishing an app to the play store Apr 03 01:10:02 thought this would be the easy part Apr 03 01:10:07 Please don't do things like .setOrientation(1) if you have something like LinearLayout.VERTICAL Apr 03 01:25:42 kakazza, my bad. Is LinearLayout.VERTICAL like a better habbit? Apr 03 01:26:24 kakazza, ohh yeah It doen'st wokr. Apr 03 01:26:51 one second may be my fault Apr 03 01:27:21 can anyone recommend a "getting started" resource that reflects modern android patterns? Not new to programming but new to android Apr 03 01:28:15 andrewcarter: d.android.com Apr 03 01:28:19 andrewcarter, http://developer.android.com/about/start.html btw my nam is andre too. Apr 03 01:28:28 agy2154: andrews represent Apr 03 01:28:28 *nvm your name is andrew Apr 03 01:29:25 thanks guys looks great Apr 03 01:31:57 http://cl.ly/image/3p0o0r0Q383v Do I want Android 4.2.2 or Google APIs 4.2.2? Apr 03 01:32:02 evanc, Holy crap. My device renders all my codes in milliseconds Apr 03 01:41:30 If Iam understanding everything Iam reading the only way to really do a beta test of a paid app is to give the beta testers a apk? Apr 03 01:41:40 can find anyway to do it though the play store Apr 03 01:41:53 err can't find anyway to do it through the play store that is Apr 03 01:43:36 have an auto updater yourself Apr 03 01:43:41 if thats what your worried about Apr 03 01:44:13 agy2154: ...what? Apr 03 01:44:44 evanc, A while ago you said its not worth benchmarking. It wasn't it only took millisecods to execute the code. Apr 03 01:45:59 not really worried about it, suppose I could just post a free version with a different apk name Apr 03 01:49:04 g00s: What kind of Mac? MacBook ? Apr 03 01:54:30 capella: think he has a macbook Apr 03 01:54:39 cause complains lots about memory Apr 03 01:54:41 :) Apr 03 01:55:01 ah ... thanks ... i see a possible tie in to his issue Apr 03 01:55:22 you a mac/osx fan ? Apr 03 01:57:37 me? nah WIN7 guy in process of adopting Ubuntu as a means of escape from WIN8 Apr 03 01:57:38 (and a droid fan :D) Apr 03 02:20:44 Would a sharedpreference be the bestway to transfer doubles from fragment to fragment in the same fragmentactiviyt? Apr 03 02:39:24 perhaps a singleton would be more appropriate Apr 03 02:40:19 haha, I really have a ping on singleton -_- Apr 03 02:40:25 gotta defend the static magic Apr 03 02:40:48 from the haters Apr 03 02:41:06 wow not one scrap of that blurb made any sense :S Apr 03 02:41:19 on my irc client, I have a ping setup for when people say singleton Apr 03 02:41:21 I understood him Apr 03 02:41:27 because people always blindlessly bash singletons Apr 03 02:41:36 oh... yep, i'm with ya :) Apr 03 02:41:39 hehe :) Apr 03 02:41:55 thought this was some new american slang i wasn't aware of Apr 03 02:42:01 static magic? no I just came up with that Apr 03 02:42:13 i meant 'ping' :P Apr 03 02:42:16 my favorite is bashing of enums Apr 03 02:42:25 ah hehe, ping means my computer does a sound, as if I had said bankai_ Apr 03 02:42:26 eg. "i have a real ping on this lasagne, man" haha Apr 03 02:42:43 I think it's called ping anyway Apr 03 02:42:44 bankai_: TMI Apr 03 02:42:50 could call it alert Apr 03 02:43:02 nuh stick with ping .. Apr 03 02:43:11 what problem do ppl have with enums? Apr 03 02:44:18 tnzr: OMG, ENUMS ARE BLOATED, NEVER USE THEM EVER Apr 03 02:44:42 to be fair, it often does make more sense to use a set of static final ints Apr 03 02:44:51 but there are cases when enums are appropriate Apr 03 02:45:28 The canonical one in my mind is my Opcode enum in baksmali, that has tons of info associated with each opcode Apr 03 02:47:05 yah Apr 03 02:47:15 how bloated are they, though, really? Apr 03 02:47:27 well, it's a full-on object, rather than just a primitive Apr 03 02:47:28 its funny what grinds peoples' gears Apr 03 02:47:31 yeah true Apr 03 02:48:07 http://stackoverflow.com/questions/7296781/garbage-collector-in-android-is-running-but-nothing-is-shown-as-being-allocated Apr 03 02:48:13 like the first comment on the answer there. heh Apr 03 02:52:27 JesusFreke: hmm interesting Apr 03 02:55:27 Guys, I want to store hashmap. What should I use? sqlite or sharedpreferences? Apr 03 02:56:01 I think shared prefs only stores primitives Apr 03 02:56:55 tnzr: That means should I use sqlite? Apr 03 02:57:35 but, my Strings in HashMap are primitive too, right? Apr 03 02:59:06 now you're changing the question :P **** ENDING LOGGING AT Wed Apr 03 02:59:57 2013