**** BEGIN LOGGING AT Wed Aug 28 02:59:58 2013 Aug 28 03:17:43 How to rebuild "vboxdrv"? My virtual machine cannot start. # modprobe vboxdrv --> FATAL: Module vboxdrv not found. Aug 28 03:18:03 The virtualbox-dkms is already installed. Aug 28 03:18:45 Ooops, wrong channel, sorry... Aug 28 03:22:45 hello guys, does anyone know where Android Studio stores it's preferences? Everytime I quit the app and restart I lose preference settings Aug 28 03:24:53 hmm, how shitty is the ui if I startActivity() from a ContentProvider's query() ? Aug 28 03:26:44 hey all. when building modules with "mm", how can i not strip the debugging symbols? Aug 28 03:35:30 pfn: check this http://www.doubleencore.com/2013/06/context/ Aug 28 03:35:45 scroll down to the table, if cant be bothered reading it Aug 28 03:35:53 actually, not a problem for my use-case Aug 28 03:36:01 my activity is the one calling the content provider Aug 28 03:36:09 so it can just do shit if the content provider returns null, no big Aug 28 03:36:52 if you read the table, it states you can start an activity but it is a new task Aug 28 03:37:16 of course Aug 28 03:37:32 starting activity from background always requires a new task Aug 28 03:38:19 well its good you realise that :P Aug 28 03:38:51 I'm asking how shitty the ui is Aug 28 03:38:53 ux Aug 28 03:39:16 but re-thinking how I want to interface with the cp it's not a problem Aug 28 03:40:39 since the initialization from the cp doesn't have to happen internally for me, I just need to send it data if it returns null Aug 28 03:43:16 (to initialize with) Aug 28 03:58:25 is there a device that supports serial port comm access without rooting the device? tia Aug 28 04:00:03 Hey, I was hoping to find an Android developer to help us port our messaging program over to Android. We've already got a working version for PC Aug 28 04:04:14 Kristoff: See topic, no recruiting. Aug 28 04:04:36 hi Aug 28 04:04:37 Kristoff: it's just xml Aug 28 04:04:47 and java Aug 28 04:04:50 Oh? Sorry. Didn't notice that. So, no exceptions? At all? Aug 28 04:04:53 Also, I know its xml Aug 28 04:04:59 No exceptions. Aug 28 04:05:00 but its the outdated libraries that's the problem Aug 28 04:05:07 Specifically the encryption libraries Aug 28 04:05:21 They're using SUN libraries. Not Oracle, which have different standards Aug 28 04:06:00 If I was going to recruit, I'd throw it up on hackernews Aug 28 04:06:07 Hmm. Then, Nilium. Within the rules, how could I find someone to work WITH us? Aug 28 04:06:22 By going somewhere that's for recruiting. Aug 28 04:06:46 seitensei mentioned HN, aka startup fanfiction central, then there's also stuff like the various careers sites out there. Aug 28 04:07:00 You see, I've tried that. And I've found incompitant 12 year olds that think they know how to write Java code. But okay, sorry about that Aug 28 04:07:16 I'm not trying to be mean, just letting you know about the topic. Aug 28 04:07:53 I know you're not. And I know it's a grey area too. Kinda pushy, because technically, we're looking for help Aug 28 04:07:53 At any rate, you'll have to filter out the 12 year olds regardless of where you advertise. Aug 28 04:08:17 Yeah. Well, thanks anyways. Aug 28 04:08:18 just like we have to filter out 12 year olds who can't read the topic and spam this developer channel for their own purposes Aug 28 04:08:29 Or the ones who don't read documentation. Aug 28 04:08:31 I'm 18 >.> Aug 28 04:08:44 Recruiting isn't inherently harmful, but if the channel permitted recruiting, there would be more recruitment going on than productive discussion Aug 28 04:08:47 I just didn't notice the thing up there. It's late, and I'm not used to IRC Aug 28 04:08:49 then act like an adult and follow the rules Aug 28 04:08:52 Oh how I wish to throttle the living hell out of people who don't read docs. Aug 28 04:09:10 Nilium: I like to point and laugh, but I've found that people don't like that. Aug 28 04:09:19 Kevin, act like an adult and be mature. Realize that the FIRST irc channel that I join may not be something I'm familiar with Aug 28 04:09:42 Although, to be honest, the idea of recruiting via IRC seems rather odd to me. Aug 28 04:09:54 Especially if you're attempting to avoid 12 year olds. Aug 28 04:09:55 ...? Aug 28 04:09:57 * Nilium divorces himself of the recruiting conversation because it's already said and done. Aug 28 04:10:04 oh wrong highlight Aug 28 04:10:09 * kevin goes back in the shadows Aug 28 04:10:10 * seitensei gets back to coding Aug 28 04:10:21 Well, it's a group of dev's. I like the idea of finding someone who thinks they know what they're doing. And possibly just branch off into Skype and work together. Aug 28 04:10:27 It's not 4am yet, which means it's not bedtime. Aug 28 04:10:33 Heh. Aug 28 04:10:43 4am? That's an early night for me. Aug 28 04:11:13 Insomnia and obsession are the world's two most potent forces, right after gravity and coffee. Aug 28 04:11:15 I'm usually until 4-5am, unless I decide to wake at 4am. Aug 28 04:11:48 I can't focus during the day. Too many humans being disruptive. Aug 28 04:12:29 I can focus during the day, I'm just incapable of sleeping without being completely exhausted. Aug 28 04:13:38 I'm glad I don't have that problem. It would take me a good 3-4 days to get to sleep if that was the case. Aug 28 04:13:43 Plus now that I'm out of university, I kind of don't have anything to do 'til I can find a job somewhere around here. Aug 28 04:13:50 Same. Aug 28 04:14:05 Likely going to have to find something in retail -- Idaho's not exactly big on tech. Aug 28 04:14:07 The only programming work around here is ERP, sadly. Aug 28 04:14:32 PeopleSoft, SAP, and C#/ASP.NET, none of which are really exciting Aug 28 04:14:37 Ugh, PeopleSoft Aug 28 04:14:53 C#/ASP.NET, fair enough, but I wouldn't wish PeopleSoft/Code on anyone Aug 28 04:14:57 I've worked with PeopleSoft. Aug 28 04:14:58 D: Aug 28 04:15:03 I'm so sorry. Aug 28 04:15:09 I don't anymore. Aug 28 04:15:48 I did get a job offer from a healthcare company, but I did some research and it turns out their software is mostly Visual Basic 6. And they don't plan to change that. Aug 28 04:16:04 VB6 and MUMPS, specifically. Aug 28 04:16:05 An acquaintance of mine has been trying to convince me to develop mobile apps for PeopleSoft. Aug 28 04:16:18 I can see a market there, but do not want Aug 28 04:16:39 Tell this acquaintance to drop a bucket of angry spiders in their pants. Tell them they'll understand after that. Aug 28 04:16:59 MUMPS sounds like some kind of STD Aug 28 04:17:44 oh man, it was great. my last co, they had this huge pile of VB6 crap Aug 28 04:17:46 It's an old as hell sort-of-DB. Nothing wrong with it in and of itself, but VB6 and MUMPS combined basically means they're running old mainframes with layer upon layer of horrible VB6 stacked on top of it and don't know how to remove it Aug 28 04:18:22 hey is the samsung galaxy tab 3 a good development device? Aug 28 04:18:23 and the VB6 stuff was leaking memory, so the servers were always needing attanetion Aug 28 04:18:25 Mainframes are usually a good thing, but the layers of terrible code sitting on top of them now makes them look bad. Aug 28 04:18:40 but the business didn't want to rewrite the sw, but VB6 wasn't really supported Aug 28 04:20:21 DrSheep: That can be very subjective Aug 28 04:20:43 If it represents what you think is important target hardware, it's a good development device. Aug 28 04:20:57 I dislike old software- especially in an enterprise setting. Aug 28 04:21:16 seitensei why? Aug 28 04:21:18 I don't mind old software so much as badly written old software Aug 28 04:21:28 Which a lot of it is. Aug 28 04:21:57 Often it can be a pita to migrate data to newer systems Aug 28 04:22:51 DrSheep: It's very subjective; It has to do with your opinions and approaches as a developer. Aug 28 04:23:40 DrSheep: I personally think the Raspberry Pi is a great device to develop for, from a server/web perspective, in that, if your code runs well there, it'll run well mostly anywhere. Aug 28 04:23:52 lol Aug 28 04:23:57 gee thanks Aug 28 04:25:29 If you're looking at tablet development, might I suggest a device running Android 3.0 or 4.0? Aug 28 04:26:02 That'll do a lot to ensure that you can maximize the amount of users able to use your software. Aug 28 04:27:59 whatever you do, don't get a honeycomb tablet Aug 28 04:29:36 4.x only. Nobody that matters is using 3.x. Aug 28 04:31:07 Heh. Aug 28 04:31:33 if i have an app thats being designed for 1280 x 768 phone resolutions (s3, etc) can i use a tablet with a smaller resolution to develop with? im just looking for something relatively cheap so I dont have to buy a new phone Aug 28 04:32:07 DrSheep: Honestly, I don't think resolution really matters Aug 28 04:32:12 as far as numbers are Aug 28 04:32:27 i didnt think so either, but im being told weird shit Aug 28 04:33:06 I would stick to mdpi as the lowest that you support Aug 28 04:33:24 this feels like the last two days conversations all over again :S Aug 28 04:33:30 There aren't enough ldpi devices in use anymore to matter Aug 28 04:34:07 bankai_: You haven't had enough alcohol yet. Aug 28 04:34:24 it's 2:30pm :S i'll kill the days memories tonight, promise Aug 28 04:34:54 That being said, I've never enjoyed drunken programming. Aug 28 04:35:06 drunk, no, but have a few and it makes coding easier Aug 28 04:35:33 I lived in Tokyo last year, and some of the year before that, during university. Aug 28 04:36:08 drunken programming is a waste of time, and a waste of booze Aug 28 04:36:14 mmm ever had asahi strong off? good shit ... that makes for some good programming Aug 28 04:36:25 I'm not an Asahi fan Aug 28 04:36:29 I stick with Yebisu Aug 28 04:36:34 I will be getting on a plane to Osaka in... oh, 36 hours Aug 28 04:36:35 oh, you poor thing ... Aug 28 04:36:47 Good programming is implementing a recursive function to count the beers on the wall using your mouth. Aug 28 04:36:49 Leeds: have some takoyaki for me! I love osaka Aug 28 04:36:53 At least it isn't hoppy, bankai_ Aug 28 04:37:21 Hoppy is the most foul beverage I'd have the pleasure of drowning myself in. Aug 28 04:37:31 bankai_: not for me - I'm veggie-ish... never been to Osaka before, but did go to Kyoto last year... I'm looking forward to some okonomiyaki Aug 28 04:38:03 there's a great okonomiyaki place in ebisubashi ( really there's good food all around that area ) Aug 28 04:38:23 It's a shame that you'll be in Kansai. Kanto has the best monjayaki, and you usually have it after okonomiyaki. Aug 28 04:38:34 * Leeds makes a note... go to ebisubashi Aug 28 04:39:15 I've got a friend in Osaka right now, actually. Osaka is one of the nicer places to be if you're caucasian. Aug 28 04:39:52 hey- I'm getting a java.lang.VerifyError on an older Android version (that doesn't contain this class), but also does not call this class... How can I get around this? Thanks Aug 28 04:40:24 seitensei: we're sort of working our way around Japan - first trip just Tokyo, then Tokyo/Nagano/Kyoto, now Osaka/Kyoto Aug 28 04:40:39 shad0w1e: stack trace? Aug 28 04:41:22 also, Otsu for a Namie Amuro concert... Aug 28 04:41:26 My bud's teaching English over in Osaka. As a linguist, I should probably be doing the same, but I've pretty much been dashed on the rocks for not being caucasian. Aug 28 04:41:40 http://pastebin.com/sUUfWbtv Aug 28 04:42:35 seitensei: yeah, similar thing here in HK, generally held that caucasians do better as English teachers - at least if you're not a fully-qualified teacher in a regular school Aug 28 04:42:46 the issue is here-- notification = new Notification.Builder(serviceContext) , except this code should never be called on the lower SDK devices. Aug 28 04:43:31 shad0w1e: you don't have your manifest SDK stuff wrong? Aug 28 04:44:37 Ehh. this works fine on Android 2.3 even though this would only work as of Android 3.0 -where this class exists. Aug 28 04:44:43 But it crashes on Android 1.6 Aug 28 04:45:22 I've got to say, that's not something which would keep me up at night... Aug 28 04:45:29 I hear you Aug 28 04:45:38 But I'd prefer to not change the requirements of an existing app Aug 28 04:45:43 for that 0.1% of users on ancient devices Aug 28 04:46:13 more to the point - look at your install stats... does 1.6 even show up? Aug 28 04:46:19 about 1% Aug 28 04:46:52 0.85% Aug 28 04:47:35 Anyway what does this error mean? This code doesnt even execute.. Aug 28 04:47:54 I guess I'm a bit of a hypocrite - I've got 1.07% on *1.5* apparently! Aug 28 04:48:40 heh. yeah so anyway... Aug 28 04:49:22 Theres another way around this error which is to use the Android support library- but that will grow my app by 250% in size, so Id prefer to just not run this code on older Android. Aug 28 04:49:49 do you know whats going on? Aug 28 04:52:13 not really, sorry Aug 28 04:52:31 ok thanks. Maybe I can pick up an old version of the support library Aug 28 04:52:33 thats smaller Aug 28 04:55:29 AIUI, if you run proguard, it can strip out unused code/classes from your app Aug 28 05:01:27 Can anyone point me to an example of PopupMenu working with AdapterView? Aug 28 05:23:39 Leeds, it seems I can just pull .java files out of the support library instead of having to use the whole thing. Aug 28 05:34:30 Hi everyone. I'm trying to switch my site from using HttpClient to HttpURLConnection because I read that HttpClient has been deprecated. I am getting a fatal IllegalStateException from the new code though. It says the HttpURLConnection is "already connected". I have attached the try-catch segment of my connection function here (http://pastebin.com/TAMNMiYa). Any ideas? Aug 28 05:40:28 It's all cool to ask questions in here, right? Aug 28 05:43:17 BretHudson: that's what it's here for Aug 28 05:43:41 Leeds: Perfect, just know I asked something in another dev channel and everyone started freaking out. Aug 28 05:43:53 just don't ask dumb stuff :P Aug 28 05:44:07 I have a png in assets/textures and have no idea how to access the image and turn it into a bitmap. Aug 28 05:44:12 That too dumb? :P Aug 28 05:48:30 is there a reason you have it as an asset, not a drawable? Aug 28 05:49:23 Not really. Aug 28 05:49:34 I have it in both locations, actually. Aug 28 05:50:58 I haven't touched Android in about a year, so my knowledge is pretty rusky. Aug 28 05:55:26 for the most part, put stuff only in assets if you can't access it under res for the use-case you're in Aug 28 06:24:25 hmm, how can I protect my content further than just using permissions? those protections are so weak... Aug 28 06:24:33 s/content/contentprovider/ Aug 28 06:24:55 I could use a signature protectionLevel, but then it makes it so that 3rd party users need to be signed with my same key, and that's sucky Aug 28 06:29:36 I guess I can make calls to my content provider be blocking and require user interaction... Aug 28 06:45:19 hmm, given a uid/pid how do I determine package info? Aug 28 06:46:22 htop Aug 28 06:46:39 sry, laggy terminal Aug 28 06:46:52 pfn: PackageManager.getPackagesForUid Aug 28 06:47:59 kevinb, yeah, that's not quite sufficient, but I guess it's usable in conjunction with activity manager Aug 28 06:48:29 or uid is pretty much irrelevant, can find it out of activity manager based on pid Aug 28 06:49:15 that might require the running_tasks permission Aug 28 06:50:06 yeah, but simply getting packages for a uid doesn't tell you which package called Aug 28 06:50:13 (not for all instances) Aug 28 06:50:26 I suppose it's good enough for now Aug 28 06:50:57 yeah, but if you are checking for your own packages and don't used sharedUid then it basically does tell which called. but i agree it's not ideal Aug 28 06:51:25 not checking for my own packages Aug 28 06:51:41 oh, then indeed that makes it harder Aug 28 06:51:43 but I suppose I can store all the package info and if any of them change, I can force a new authz request Aug 28 06:52:11 * pfn is hacking on keepassdroid for shits and giggles Aug 28 06:52:16 I seriously want it to have a better ui, damnit Aug 28 06:52:26 ux Aug 28 06:53:03 I started android dev, but my ui looks shit. why :< Aug 28 06:53:05 so hax0ring in a contentprovider that has to do some modicum of authz Aug 28 06:53:15 neuro_sys, because ui takes effort to make look good Aug 28 06:53:26 what are some points to take Aug 28 06:54:20 if your ui looks poor, /and you don't know why/ its safe to go with the design guidelines ;) Aug 28 06:54:39 design guidelines are pretty tough for a noob to follow Aug 28 06:55:00 currently I'm still concerned about the framework in general than the ui Aug 28 06:55:09 I'll get to it soon Aug 28 06:55:56 so far the code tend to be awkward and messy Aug 28 06:56:21 like inner classes for every activity are full of asynctasks and custom adapters Aug 28 06:56:32 -inner Aug 28 06:56:38 I'm like dafuq Aug 28 06:56:44 hey there! Aug 28 06:57:00 neuro_sys, learn to structure your code better Aug 28 06:57:36 I just discovered the pencil gui tool, which seems excellent, but seems to neither have a documentation nor a help channel. Does anyone know how to add an "up" button to the action bar? Aug 28 06:57:45 android.content.pm.Signature is unique per-package, right? it's not just the public key, I hope Aug 28 07:01:22 how do you design your GUI? Paper? Special program? Directly in eclipse/android studio? other? Aug 28 07:04:40 http://stackoverflow.com/questions/18479473/tool-to-auto-generate-class-fields-of-view-type-from-layout-xml is any one familiar with a tool of this sort? Aug 28 07:05:10 RedNifre, I just imagine it and pull it out of my ass Aug 28 07:05:22 * pfn go to sleep Aug 28 07:08:41 pfn that works great, but I need something that I can use for user tests before I actually do any real work. Aug 28 07:09:18 But I guess you could just role play with your testes "so you are now using this awesome up. There's a mailbox there in the action bar and an up button to the west"... Aug 28 07:09:26 *testers Aug 28 07:09:50 *app not up. Uh, guess I'm awake too early... Aug 28 07:10:07 ahem Aug 28 07:12:26 afk, seeking coffee (but I'd still like to know how you design your GUIs. I used tiny paper notes, one per screen and I'm now looking at the Pencil GUI design tool) Aug 28 07:14:27 squared notebook and a pen Aug 28 07:14:36 a vit retro, but the easiest way Aug 28 07:14:41 Is it a bad idea to keep some bitmaps cached in memory? (If I'm using them in a listview)? Is it better to keep the byte[] or the Bitmap? Aug 28 07:15:07 keep the bitmap Aug 28 07:15:14 don't keep a drawable though Aug 28 07:16:04 why not a drawable? Aug 28 07:16:21 has a reference to context Aug 28 07:16:24 k Aug 28 07:16:27 another question Aug 28 07:16:43 sometimes Aug 28 07:16:48 I noticed something strange... Aug 28 07:17:01 I have one of those controls to slide left or right... I think it's a ViewPager... Aug 28 07:17:12 and I change the index... but it seems to be asynchornic... Aug 28 07:17:21 Like, it doesn't happen "immediatly" Aug 28 07:17:26 do you know something about that? Aug 28 07:18:09 at a guess, it'll wait for the next layout pass Aug 28 07:18:19 what's a layout pass? Aug 28 07:18:41 or draw, more likely Aug 28 07:18:51 the thing is, I'm doing an animation right after that thing Aug 28 07:18:56 and the animation ignores that change... Aug 28 07:19:05 yet if I stop the animation, the change works correctly... Aug 28 07:19:15 So my impression is that the animation starts before that changes get into effect Aug 28 07:19:28 (I'mchanging the slide before doing the animation ) Aug 28 07:19:47 try post(new Runnable(){do animation stuff}); Aug 28 07:20:02 alex_PP: thanks Aug 28 07:20:17 is there any other way to wait until the next animation cycle or thing? Aug 28 07:20:20 Hi Aug 28 07:20:37 viewtreeobserver's another way Aug 28 07:20:41 but more fuss Aug 28 07:21:02 another question... Aug 28 07:21:04 viewtreeobserver might be more robust Aug 28 07:21:08 i am starting an activity from a library (as startup) activity. during building/syncing with the device i get an ".apk not found" message in the console window, but everything works. should i be worried/change-something? Aug 28 07:21:13 is there any good way to do asynchronic I/O? Aug 28 07:21:36 I want to have one thread do multiple I/Os at the same time Aug 28 07:22:14 select() and poll() Aug 28 07:22:20 i think you want one thread per io task, if they're concurrent Aug 28 07:22:30 have a look at thread pool executor Aug 28 07:22:39 not sure if AIO is supported on Bionic, not to mention that AIO is broken on linux in general Aug 28 07:24:10 alex_PP: I'm downloading multiple images, and using one thread per image seems like a waste... Aug 28 07:24:26 alex_PP: I want async I/O... (at least if it works as it should) Aug 28 07:24:36 gavilan2: if it's socket i/o, use select() and poll() Aug 28 07:24:56 p_l: I don't want to write my own HTTP client.... Aug 28 07:25:15 gavilan2: you'll have to anyway if you want async i/o :P Aug 28 07:25:27 p_l: :/ that sux... Aug 28 07:25:27 i've always done that one at a time Aug 28 07:25:44 i'm not sure threading it would speed things up all that much Aug 28 07:25:45 Can I get async I/O from disk? or that it's also unavailable? Aug 28 07:25:46 also, you might want to instead pipeline the images in one socket Aug 28 07:26:00 (multiple TCP flows will fuck you up) Aug 28 07:27:53 p_l: I'm not sure that's a good idea in my case... The server is not all that deterministic.... Aug 28 07:28:00 gavilan2: async disk i/o theoretically possible, but usually ends up with threads involved, and on mobiles... well... Aug 28 07:28:01 ?!?!??? Aug 28 07:28:22 Gavilan3: you could make a service that returns the data you want as multipart stream Aug 28 07:28:31 multipart stream? Aug 28 07:28:34 yes Aug 28 07:28:51 basically, you are doing one continuous download, which includes several files inside Aug 28 07:29:04 packed as MIME stream Aug 28 07:29:14 shouldn't the keep connection open thing achieve the same effect? Aug 28 07:29:42 that is, file1file2 etc. Aug 28 07:29:50 Gavilan3: not exactly Aug 28 07:29:52 p_l: I don't know why, but we use a CDN, and the CDN from time to time has a really bad connection Aug 28 07:30:02 so you download 1 file in 1 sec, other file in 1 sec... then 1 file takes 20 seconds Aug 28 07:30:03 O?o Aug 28 07:30:05 Gavilan3: Mobile internet is bad connection, period Aug 28 07:30:06 it's strange... Aug 28 07:30:28 p_l: not really... because we played around, and we found that initiating 4 connections, only 1 of those get blocked Aug 28 07:30:36 and then we ask more files with the other 3... is strange Aug 28 07:30:36 Gavilan3: the behaviour regarding speed that you described fits exactly with ACK-dropping Aug 28 07:31:01 p_l: Great! how do I solve it? Aug 28 07:31:07 Gavilan3: can't Aug 28 07:31:15 p_l: That's not helpful :/ Aug 28 07:31:24 it's a problem at TCP-over-3GPP level, outside of your control Aug 28 07:31:41 you can do tricks to mitigate it, which the multiple streams *might* help sometimes Aug 28 07:31:42 p_l: who drops the ACK? the client? the server? Aug 28 07:31:46 Gavilan3: the network Aug 28 07:32:09 this causes window rescaling and backing off on the server side Aug 28 07:32:23 p_l: mmmm in the case we have, I don't think we get any data... Aug 28 07:32:33 p_l: eventally we get a connection time out Aug 28 07:32:38 Gavilan3: yep Aug 28 07:32:38 we retry, and we get it really fast Aug 28 07:32:56 the strange thing is that all the requests go to the same server Aug 28 07:33:05 http://teclo.net/ <--- if you want to get technical details, bug those guys or see if they have some reports public Aug 28 07:33:19 not really Aug 28 07:33:23 they are working professionally on the problem (I've met with them) Aug 28 07:33:28 I appreciate you giving me the name :) but that's enough.... Aug 28 07:34:24 Every time I learn more Java, it makes me think it's more and more a toy language :p Aug 28 07:34:35 Gavilan3: I think that as long as you're stuck with HTTP and CDN, multiple connections might be your only choice... but I'd recommend experimenting with how you manage them Aug 28 07:34:48 p_l: I will :) Aug 28 07:34:49 like "kill the connection early if it exhibits certain behaviour" etc. Aug 28 07:35:05 p_l: Hadn't had time yet... Aug 28 07:35:07 also, make sure to not overdo on amount of connections, that will... blow :) Aug 28 07:36:03 p_l: How many connections seems reasonable? Aug 28 07:36:24 Gavilan3: my guess would be go with 2-3, and experiment from that Aug 28 07:36:29 k Aug 28 07:36:34 thx Aug 28 07:36:39 hard numbers from repeated experiments are best :) Aug 28 07:38:30 What happens when you have an app that has navigation loops which can create an infinite stack of activities? Aug 28 07:38:45 change it Aug 28 07:39:01 My assumption was that this isn't a problem since the activities get stopped, only the intent remains, which is then used to restart that activity when the user goes back. Aug 28 07:39:17 the whole stack will be restored Aug 28 07:39:17 changing it is not an option since the customer is sure he is right. Aug 28 07:39:18 RedNifre: I think it's harder to cause than it seems Aug 28 07:39:29 but if not... Aug 28 07:39:37 well, at some point the device will barf, I guess Aug 28 07:39:56 try adding some points that will "cut" the chain? Aug 28 07:40:02 so the activities take their ram, all the time? Aug 28 07:40:42 I noticed that sometimes when I press back in an app that was runnig for days it seems like the previous activity takes a while to start and doesn't really have exactly the same state as before (e.g. is scrolled to the top instead of where I scrolled it to) Aug 28 07:41:07 RedNifre: activities can be GCed Aug 28 07:41:08 right. the previous ones may be killed Aug 28 07:41:36 So, infinite activity stacks are no problem because only their intent uses up memory, right? Aug 28 07:41:58 it's a terrible user experience Aug 28 07:42:02 you can never back out of the app Aug 28 07:42:58 You can. It's a catalog where an activity shows a product and a "more like this" section which starts activities to show the next product. Back leads to the previous product, up exits that catalog section entirely. Aug 28 07:43:46 well if you have "up" which does the right thing clearing the stack then that's perfect Aug 28 07:43:52 (if by "back out" you mean "exit somehow". It's not fun to use the actual back button for this, but that doesn't seem like a problem if the up button exits out of that part) Aug 28 07:44:28 yes, up goes back to the original pre-loop activity instead of putting a new one on the stack. Aug 28 07:45:13 yeah i think that's the best thing you can do. it's certainly in line with the design guidelines and makes logical sense Aug 28 07:45:15 Anyone here know any architecture guidelines regarding to advertising framework? I'm trying to find guidelines for ads framework with common methods to be able to provide ads from different publishers. As example the pnly thin I'm currently found is Microsoft.Advertising. Any ideas? Aug 28 07:46:53 BTW, is there an "end of support" date for actionbar sherlock? Maybe in the form of "When <4.0 drops to X%" or something like that? Aug 28 07:52:06 Hi, anyone know where can i find a noob tutorial for getting specific data from a url that contain json code ? (must contain a serch bar too) Thank you. Aug 28 07:53:07 google has that Aug 28 07:58:30 genymotion is pretty dang slick, although i'm fiddling with unloading my mac's bluetooth kexts to get that to work Aug 28 07:59:00 take up a bit more memory than qemu too :( Aug 28 08:01:55 does google play allow 3rd party app stores? Aug 28 08:02:16 play doesn't, android does Aug 28 08:03:05 that is, you can't distribute a client for a third-party store through the play store Aug 28 08:05:35 how difficult is it to remount the filesystem on a tablet so I can edit the hosts file? Aug 28 08:06:01 atm the tablet is not rooted so the filesystem is readonly Aug 28 08:06:13 hm, i hope easy. i think everybody should be able to modify that with little hassle Aug 28 08:06:35 doesnt look like it. Aug 28 08:06:44 I think I need to remount the filesystem.. :( Aug 28 08:06:46 Kingsy: still the wrong channel... Aug 28 08:06:58 oh lol Aug 28 08:07:07 sorry must have typed that an outpilot Aug 28 08:07:12 auto* Aug 28 08:07:18 you need root on the tablet - like you need root on *any* Linux machine to change the hostfile Aug 28 08:08:17 Leeds: got ya, I will ask around in -root Aug 28 08:20:34 hey, does anyone know, why my samsung i9003 restore data and apps on every boot? i tried to wipe it, change firmware, root / unroot... but some apps and data will always return after reboot. New installed Apps and Settings get lost after reboot. Aug 28 08:27:21 Hi Guys stupid question from a newbie.. How many broadcasts/ intents can you have on the main UI safely. Aug 28 08:28:16 <_ListerWork> question: I've looked at roboguice and I may be missing something - If I define an interface IMyInterface which has multiple implementations how can I inject the correct one in to each activity? Aug 28 08:32:01 Hello there! I'm trying to link from my app to an app on the facebook event. However, fb://event/id/ isn't working. Aug 28 08:32:09 when I want to programmatically show overlays at different situations of my app, e.g. when a video that is played in my activity reaches a certain time, is a fragment, what I want to use? Aug 28 08:32:12 What is the correct syntax/way to do this? Aug 28 08:54:40 how can I check if a GridView item has a "keyboard focus"? I've tried all sorts of isXYZ methods in my getView() for the convertView, but none of them seem to be what I'm looking for.. Aug 28 09:21:45 would like to ask again for the gurus…. is there a device that supports serial port comm access without rooting the device? tia Aug 28 09:23:16 broody: if you have usb-otg, you could use one of the usb-serial libraries Aug 28 09:24:12 the usb-otg is that dongle i need to buy right? then use their own lib to develop? Aug 28 09:24:19 thanks Ge0rG Aug 28 09:25:43 ah ok i get it, Aug 28 09:25:58 Ge0rG: but what usb-serial to use? Aug 28 09:26:21 these libraries are vendor specific isnt it? Aug 28 09:27:25 Anyone know where can i find a noob tutorial for getting specific data from a url that contain json code ? (must contain a serch bar too) Aug 28 09:28:01 neckro: what does a search bar have to do with loading json from a URL? Aug 28 09:29:20 the json data is big, that`s why i need a search bar Aug 28 09:29:46 one is a network and data-parsing question, the other is UI Aug 28 09:29:52 concentrate on one at a time Aug 28 09:30:34 so obviously you've found lots of example code on Bing for how to load and parse JSON from a URL - if you're feeling brave you could even use Volley! Aug 28 09:31:01 i`m new in coding that`s why i need a tutorial to inspire :) Aug 28 09:31:09 how new? Aug 28 09:33:36 like couple days... but i understand the coding structure... i know you normaly for what i need , i need 2 parts: src java part and layout xml part Aug 28 09:33:37 Resource name can't be the number ? Aug 28 09:33:41 such as "0.ogg" ? Aug 28 09:33:51 neckro: you're just learning java now, for example? Aug 28 09:34:06 bluesm_: I'm pretty sure that's the case, since they get turned into java variable names Aug 28 09:35:16 Leeds: So if I want to play one audio after the other. I should just concatenate string sth0.ogg sth1.ogg sth2.ogg ? Aug 28 09:36:35 um, what? no Aug 28 09:36:59 started now, yes.... but i know takes some time :) from scratch will take half year :)) so a tutorial will help me save that time... anyway after this app will be ready i will keep going to learn :) Aug 28 09:38:42 Leeds: I mean I do "onCompletion" listener. and then play the next one (sth0, sth1, sth2 and so on). Aug 28 09:39:06 which is nothing to do with concatenating strings, so yes, good luck with that Aug 28 09:40:23 Leeds: But I have to get the resource by name ? Aug 28 09:40:38 bluesm_: Wednesday Aug 28 09:40:54 neckro: please don't go off-channel Aug 28 09:41:15 i have found this : http://thinkandroid.wordpress.com/2012/09/10/parsing-json-on-android/ is exacly what i need, but need also a seach bar integrated Aug 28 09:42:08 String nameOfAudio = "sth" + Integer.toString(audioTracker++); Aug 28 09:42:12 Leeds: ^ Aug 28 09:42:22 bluesm_: August, just Aug 28 09:42:42 Leeds: What do you mean ? Aug 28 09:43:09 okay, let's be clearer, "good luck with that" was meant to mean "I'm not going to try to understand your questions anymore, so please don't ask me" Aug 28 09:43:17 ok Aug 28 09:43:34 Leeds: Thanks :) Aug 28 09:46:01 hello, I have this error in logcat "Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.android.rssfeed.MyListFragment" on path: DexPathList[[zip file "/data/app/com.example.rssfeed-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.rssfeed-2, /system/lib]]" Aug 28 09:46:19 Please, help me troubleshooting the problem Aug 28 09:47:36 Is it a convention thing, or is there a difference between initializing instance variables in the declaration as opposed to the constructor or somethign? Aug 28 09:48:16 ie.... public class Something { private List mSomeIds = new ArrayList(); ..... } Aug 28 09:50:17 Leeds: do you saw the code ? Aug 28 09:51:17 neckro: I didn't look Aug 28 09:51:37 ok Aug 28 09:52:14 I think you should be taking things more slowly, rather than jumping straight into network/json/search, etc. Aug 28 09:53:41 <_ListerWork> question: I've looked at roboguice and I may be missing something - If I define an interface IMyInterface which has multiple implementations how can I inject the correct one in to each activity? Aug 28 09:53:42 yes, but i need this :) otherwise i wold not started something so complicate Aug 28 09:55:00 ok, considering i'm not concerned about dependency injection, the answer to my question is -- I can use either Aug 28 09:55:24 i cannot let direct access for mysql and json is making a wonderful job Aug 28 10:00:55 When setting up the developer profile the bit where it asks for an email address is that for customers to contact us or google? Aug 28 10:06:04 apple741: Both with the option to give a seperate customer support email I tihkn Aug 28 10:06:41 .ro developers online ? Aug 28 10:11:41 It seems to only have space for one email address Flozzo ? Aug 28 10:12:16 it does, but later on, when listing apps you can give separate contact details per app. Aug 28 10:20:56 hi Aug 28 10:24:29 How many dp in a px? On a nexus 4? Aug 28 10:30:26 anthony_, use getResources().getDisplayMetrics().density; in your code always for those calculations Aug 28 10:30:40 I want to know for designing stuff in photoshop Aug 28 10:31:07 i.e., what is the highest dp to px ratio I have to worry about Aug 28 10:31:27 but thanksbut thank you Aug 28 10:33:07 anthony_, 3 Aug 28 10:33:18 thans Aug 28 10:33:21 thanks* Aug 28 10:33:29 anthony_, Nexus 4 has 2.0 modifier, S4 and One have 3.0 Aug 28 10:33:35 the smaller devices have 1.5 Aug 28 10:33:40 smallest ones have 1.0 Aug 28 10:33:48 awesome, just what I wanted to know, thanks Aug 28 10:34:19 basically on phones it's: ~480x320 - 1.0, ~800x480 - 1.5, ~1280x720 - 2.0, ~1920x1080 - 3.0 ;) Aug 28 10:35:49 hey, is it possible to addView into RelativeLayout, as same as into LinearLayout with vertical orientation ? Aug 28 10:52:43 cant seem to find it: how do i exchange a tableRow in a tableLayout during runtime? Aug 28 10:54:04 I'm implementing a tablelayout and I want determine the number of columns by dividing a static value (lets say 200) into the width of the parent layout Aug 28 10:54:21 how can I determine the width of the parent layout? getWidth() is returning 0 Aug 28 10:55:55 PatrickBic: well you can call removeView() Aug 28 10:56:43 Ankhwatcher, as in remove n-th item, and "readd" the new item at index n? Aug 28 10:57:06 PatrickBic: yep for that you want removeViewAt() Aug 28 10:59:15 Ankhwatcher, your problem: ((View)this).getParent().getWidth() ? Aug 28 10:59:26 the cast isnt need, .. well :P Aug 28 10:59:42 PatrickBic: I'll give that a try, thanks Aug 28 11:01:05 nah that didn't work Aug 28 11:02:01 my view is inflated by a LayoutInflater Aug 28 11:02:15 I'm not sure it has a width yet Aug 28 11:19:21 Anyone online? Aug 28 11:21:21 hello everyone! Aug 28 11:22:07 I have a view in my app that is used to draw lines with the fingers. It works well, but I want to be able to draw smooth lines Aug 28 11:22:24 so I draw Paths by using cubicTo Aug 28 11:22:42 but there is still some issues sometimes, in very specific cases. Aug 28 11:23:12 do you know a good algorithm to draw very nice smooth curves with the finger? Something like what is used in sketchbook Aug 28 11:33:34 today, i was starting up android studio, no change to the source or anything else, and the gen java files are empty. anyone else ever had this issue? it is strange. gradle can compile everything Aug 28 11:33:51 hi guys im having a problem with the generation of R . i have tried cleaning build-auto and so far no luck :( Aug 28 11:34:39 cmaier: i think im running into the same problem Aug 28 11:35:20 usually it is related to syntax error in the xml files, or missing layout_width/height, but not in my case Aug 28 11:36:02 Is there any reason why SQLite wouldn't update the first column when I'm trying to update my database for my app? Aug 28 11:36:04 xml is fine and all Aug 28 11:37:22 i have even tried a new solution and still nothing Aug 28 11:37:58 is there a way i can trigger the build from a terminal and see whats up Aug 28 11:38:43 $ ./gradlew --debug assDeb Aug 28 11:38:50 if you have no flavors at all Aug 28 11:38:56 but that is working for me Aug 28 11:39:00 http://stackoverflow.com/questions/18445649/cant-update-first-column-using-sqlite Aug 28 11:39:06 anyways, it's intellij related Aug 28 11:39:53 guys i have a popup view that i show/hide from the bottom of the screen with an Animation. the animation is started but doesn't execute. it has something to do with invalidating the views beneath the popup but i can't find the info i need to solve this. Aug 28 11:44:00 So just to be double sure this email is only for google to contact me? - http://screencast.com/t/kaEy0RL7D Aug 28 11:46:46 nightmare365: if you find a fix, please let me know Aug 28 11:47:37 ok Aug 28 11:49:36 <_boto> did somebody ever experienced memory leak when using an sslsocket (openssl provider) in native memory? Aug 28 11:50:34 <_boto> i observe an increasing native memory usage while running an sslserversocket and accepting client connections, which are closed properly Aug 28 12:02:04 kjeldahl, are you here ? Aug 28 12:02:38 ack Aug 28 12:02:52 hey guys I am getting error for doing this Aug 28 12:02:53 setContentView(R.layout.activity_main); Aug 28 12:03:03 R is not reconginized at all Aug 28 12:04:57 kjeldahl, check that out https://gist.github.com/tagrudev/17b74a0d43509af8dff2 Aug 28 12:06:02 I am trying to instantiate a BaseExpandableListAdapter in my activity Aug 28 12:06:17 but I don't know how to implement it in my on Create Aug 28 12:07:09 Can't help you with that, but the problem in your pasted code seems to be that "l" is null at line 34. Aug 28 12:07:32 <_ListerWork> can anyone help with dependency injection in Android? Aug 28 12:08:35 kjeldahl, yeah I saw that thank you Aug 28 12:12:04 my code Aug 28 12:12:05 http://pastebin.com/WkySkRHv Aug 28 12:13:00 shadej: You've tried a clean rebuild, i.e. "Rebuild all"? Aug 28 12:15:10 kjeldahl: yeah Aug 28 12:16:33 shadej: You've seen this obviously? http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error Aug 28 12:17:31 hmm actually Sherlock has SherlockExpandableListActivity Aug 28 12:17:38 which is exactly what I need Aug 28 12:17:38 :) Aug 28 12:21:08 kjeldahl: that does not help Aug 28 12:21:25 the R.java file is not generated Aug 28 12:21:58 Well at least now you know what the problem is. Google is your friend. Aug 28 12:22:54 is there a simple way to erase usb device Permissions ? Aug 28 12:34:23 my animation doesn't draw until something redraws some part of the layout behind my animated view, what do i do to force the animation to draw? Aug 28 12:40:27 Does anybody know of any links where GCM downtime is announced/can be verified? All my GCM stuff suddenly stopped working... Aug 28 12:52:45 Heya guys Aug 28 12:53:02 I've been wondering Aug 28 12:53:20 I have an adapter inflating some view or using the convertView where possible. Aug 28 12:54:19 now, the inflated layout has several components and later on in the getView method I change the title text with e.g. ((TextView)retView.findViewById(R.id.text)).setText(someItem.getTitle()); Aug 28 12:54:38 my question is - can I get rid of the findViewById call, as it is slow? Aug 28 12:55:32 As long as the view hasn't been recreated/reinflated, just save the reference to it? Aug 28 12:55:47 if I keep a reference in the adapter and simply set mTextViewRef.setText(someItem.getTitle()) will it correctly change the title of the current retView or will it grab the reference from the view that originally initialized it? Aug 28 12:56:57 Not sure what you mean. Aug 28 12:57:09 R.java file can not be generated help please? Aug 28 12:57:26 Google. Aug 28 12:58:26 kjeldahl: I looked at all related question from stackoverflow Aug 28 12:58:47 kjeldahl: the gen folder is empty Aug 28 12:58:58 just to be sure. i have code that worked in a normal java-app (invoking a main-method from some other file during runtime (getting class, getting method, checking, invoking)... not i stuffed that code in the onCreate of an activity and it doesnt seem to work anymore (invocation target exception). some error on my side, or just not possible? Aug 28 12:59:35 shadej: Assuming you're using Eclipse, that question gets asked over and over again here. It is my impression (I do not use Eclipse) that once Eclipse gets convinced of the need to rebuild EVERYTHING, it works itself out. I have no idea about how to convince Eclipse to do this, but this question gets asked daily. Aug 28 13:00:38 there is project => clean => clean all projects Aug 28 13:00:47 kjeldahl: yeah it common problem I remember once solving it , but I am back to android after a long time , i forget it Aug 28 13:00:49 that removes all gen entries and so, and then do a rebuild Aug 28 13:01:23 if you have build manually set, you can use "build all" which is ctrl+B (project menu) Aug 28 13:02:43 PatrickBic: what do you mean "if you have build manually set..?" Aug 28 13:03:05 there is "build automatically" and well.. build not automatically :P Aug 28 13:03:58 shadej, see the project menu in eclipse Aug 28 13:05:38 PatrickBic: ok that worked thank you Aug 28 13:07:55 I'm trying to create a Table with even columns using this code: http://pastebin.com/QPVySMaK but the first column is always narrower than the second Aug 28 13:08:23 can anyone see where I'm going wrong Aug 28 13:12:53 PatrickBic: problem again Aug 28 13:13:05 then solve it. you know how. Aug 28 13:13:06 I could not create an emulator Aug 28 13:17:48 hello Aug 28 13:18:04 PatrickBic: I am asking Aug 28 13:18:59 lol Aug 28 13:19:05 that's just crazy Aug 28 13:19:25 when I took the weighting out of the items in the TableRows then it spaced evenly Aug 28 13:23:55 Anyone got experience around FragmentTransaction and IllegalStateExceptions on commit()? As far as I understand it's thrown when commit() is called after an actiivity has saved it's state. Any typical cases/user-patterns where this happens? Aug 28 13:28:35 I can of course call commitAllowingStateLoss() but I honestly don't know the sideffects of it Aug 28 13:30:47 commitAllowingStateLoss and wrap in an IllegalStateException catch to account for null context Aug 28 13:34:39 nseidm1: why would commitAllowingStateLoss throw IllegalState - it ignores the state? :) Aug 28 13:35:32 if context is null the FragmentManager will throw an illegalStateException Aug 28 13:35:39 race condition that's inevitable Aug 28 13:36:07 is it possible to change the font of the appname? Aug 28 13:36:12 and size etc Aug 28 13:38:40 Dominee: In ActionBar? Yes, I believe you can instantiate your own view instead of the default one. Aug 28 13:39:10 ok, but not possible to do it in style xml? Aug 28 13:39:43 searched a little bit but could not find something about it Aug 28 13:39:44 nseidm1: but then I might as well continue using commit() and wrap that in a try catch for IllegalState... Aug 28 13:39:46 Not that I know of, but I'm just recalling the little I remember last time I worked on ActionBar related stuff. Aug 28 13:40:22 maybe to load in an image is the easy way :P Aug 28 13:41:53 snowpong: the state of my fragments tend to be irrelevant, all states are persisted in database values etc... Aug 28 13:47:02 nseidm1: so what actually happens (or does not happen) when a fragment is added after an activities state is saved? I mean they must have added the commitAllowing... function for a reason? Aug 28 13:47:36 when, if it's restored, it'll be a brand new instance Aug 28 13:47:58 the frag won't go through onSaveInstanceState Aug 28 13:49:06 nseidm1: so any arguments passed to the fragment are lost in this case Aug 28 13:49:57 OK I think I got it, thanks Aug 28 13:50:48 Does it make a difference which order you upload you apk and obb? Aug 28 13:53:43 oh it does :) Aug 28 13:55:10 It didn't offer me to upload my expansion? Aug 28 14:00:27 There is so much Android stuff to learn >.< Aug 28 14:00:38 it never endss Aug 28 14:00:41 a rich platform always has much to learn Aug 28 14:01:12 yeah I guess Aug 28 14:03:20 Anyone know hot to upload an obb? Aug 28 14:03:24 *how Aug 28 14:03:49 It used to have a dialog that appeared after the apk but I didn't get that Aug 28 14:33:19 I am trying to play mp3 file from res/raw Aug 28 14:33:21 my code Aug 28 14:33:22 http://pastebin.com/rmxufT3x Aug 28 14:33:33 can anyone help me debug? Aug 28 14:34:55 How long do I need to wait before I can test my expansion file? Aug 28 14:37:52 currently I am getting error: prepare failed status 0X1 Aug 28 14:41:54 which 'pull to refresh' library is the most widely used today? Aug 28 14:53:25 adjustResize should always resize with android:Theme.Holo.Light.DarkActionBar right ? Aug 28 14:55:42 can I have a TextView inherit it's style from it's LinearLayout parent? Aug 28 14:56:07 Ankhwatcher: define a style have boht of them use it. but also, why? Aug 28 14:56:42 funkbox: I'm using two themes and switching between, just trying to cut down on lines of code Aug 28 15:07:28 So, I'm applying for an junior android developer position and they said to come in tomorrow for a test, a problem solving test :S I have no idea what that means and what to expect Is this normal? Aug 28 15:07:35 s/an/a Aug 28 15:07:46 quick! go do fizzbuzz Aug 28 15:08:03 CocoStorm: anything :D Aug 28 15:08:17 lool Aug 28 15:08:54 Not even sure why I'd even have to come in for it, unless it's a pen and pencil thing Aug 28 15:08:57 *paper Aug 28 15:09:09 in fact I already did it for you: https://github.com/Ankhwatcher/fizzbuzz Aug 28 15:09:32 Oh wow, handy Aug 28 15:09:34 thanks Ankhwatcher ! Aug 28 15:10:09 * CocoStorm hopes they aren't lurking here Aug 28 15:10:09 not really Aug 28 15:10:31 Ankhwatcher, why not? Aug 28 15:10:33 pfft Aug 28 15:10:35 https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition Aug 28 15:10:39 CocoStorm: In fact, it is more interesting to see how somebody works, than just solving the problem Aug 28 15:11:04 Is there an official way for multiple developers of an app to have the possibility to make a release with the same or different private keys? Aug 28 15:11:17 I work well, until a timer is placed to work against then everything I know goes out the window Aug 28 15:12:01 If you update your app,does google follow any "method" to updating the devices, like all at once or not ? Aug 28 15:13:05 lnxnt - no Aug 28 15:13:08 doogan, I don't understand how that is tested though surely everyone would get it right? Aug 28 15:13:30 theelfismike: ok thank you Aug 28 15:13:50 doogan: that totally doesn't count, it's not for android! :p Aug 28 15:14:26 Ankhwatcher, but how is it tested? Surely it's not that hard :S Aug 28 15:16:17 fizzbuzz isn't really used as a test because it's too well know Aug 28 15:16:18 n Aug 28 15:17:05 oh Aug 28 15:17:06 :( Aug 28 15:17:42 last time I was interviewed for a senior android dev position, and they asked me to do some live coding, I just told them to check my code at github Aug 28 15:18:02 Ge0rG, oh wow, what did they say lol Aug 28 15:18:08 not sure if they did, but they were impressed enough with the answer and wanted to take me Aug 28 15:18:34 Ge0rG, nice. Aug 28 15:18:41 So tempted to do that tomorrow Aug 28 15:18:42 yeah I didn't do any coding testing for this job, I just showed them what I had built Aug 28 15:18:55 CocoStorm: you should have a diverse repo then... mine is https://github.com/ge0rg/ Aug 28 15:19:29 heh. I love it how github cuts off "instant messenger" at "mess" Aug 28 15:20:39 Hmm I can show my uni project's source, my other project's on the play store so I'm not sure I wanna make it public :D Aug 28 15:21:09 CocoStorm: are you making money out of it? Aug 28 15:21:31 Ge0rG, yes but only a little atm :( Aug 28 15:21:31 lol Aug 28 15:21:37 CocoStorm: ads? Aug 28 15:21:44 Ge0rG, nope it's paid Aug 28 15:21:49 CocoStorm: cool Aug 28 15:21:51 released over a month ago only 130 downloads Aug 28 15:22:01 and thats with techcrunch and gizmodo coverage Aug 28 15:22:07 so it's going pretty badly Aug 28 15:22:14 CocoStorm: maybe its got a small target group? Aug 28 15:22:23 Ge0rG, a very small target group haha Aug 28 15:22:38 CocoStorm: do you have a link? Aug 28 15:22:47 https://play.google.com/store/apps/details?id=com.marco.numbersnap Aug 28 15:23:18 it's prtty basic but it's my first real app Aug 28 15:23:23 and still working on it Aug 28 15:24:03 You should make an app called Polo Aug 28 15:24:14 no polio Aug 28 15:24:24 :D Aug 28 15:24:44 like play marco polo using gps locations? Aug 28 15:24:54 CocoStorm: you could switch to freemium. offer the app for free, with up to ten snaps per month :P Aug 28 15:25:05 additional snaps are $$$ Aug 28 15:25:07 Ge0rG, I was actually thinking about that :D Aug 28 15:25:26 or 10 snaps total Aug 28 15:25:27 I think I definitely will after I integrate facebook Aug 28 15:25:37 that's what I'm currently working on Aug 28 15:25:39 with facebook, you can just pull contact data from there ;) Aug 28 15:25:45 but yeah, definitely will make a free version Aug 28 15:26:54 Ge0rG, true but they won't have the new contact's facebook yet so I was thinking about having a feature which gets a list of profiles based on the contact's name and they would be able to choose which one is theirs and add them on the spot Aug 28 15:27:35 just because I have no other ideas to work on and it would be a good learning curve Aug 28 15:29:00 CocoStorm: what about people just entering names of random people to stalk them? Aug 28 15:29:41 Ge0rG: Isn't that the point of FB? :) Aug 28 15:29:42 Ge0rG, you could do that with facebook Aug 28 15:31:47 * Ge0rG isn't there, so no idea Aug 28 15:33:33 Ahh Aug 28 15:33:36 Hello. Is there a showcase for apple to get inspiration ? Aug 28 15:33:43 for android apps * Aug 28 15:33:55 for design Aug 28 15:34:24 apple -.- Aug 28 15:34:50 typo :) Aug 28 15:36:32 I've tried learning objective-c to develop for iOS Aug 28 15:36:38 it's retarded Aug 28 15:36:44 never again Aug 28 15:36:55 Never tried it Aug 28 15:37:04 I lack a mac to develop on Aug 28 15:37:34 xcode looks pretty legit... Aug 28 15:37:51 Anyone try android studio yet? I've been kinda waiting for the release version Aug 28 15:37:54 Fritz7, lots of showcases, d.android.com under design, and you can look at the design showcase in play Aug 28 15:38:00 android studio? Aug 28 15:38:01 whaddat Aug 28 15:38:03 readyjar, yes it's good Aug 28 15:38:29 readyjar works fine Aug 28 15:38:35 CocoStorm: Usable in it's current state? If so, I may grab it and play around with it Aug 28 15:38:37 i havent used xcode but for the android app i developed , it was more difficult to do than the IOS developer Aug 28 15:39:02 * Napalm watches as pfn asks "Android Studio.. is that like vim?" Aug 28 15:39:03 :D Aug 28 15:39:11 lol Aug 28 15:39:11 coworker tried android studio and said that it's too buggy and lacks too many features but has some nice UI design stuff not yet available in IDEA Aug 28 15:39:17 would still rather use IDEA Aug 28 15:39:33 android studio.. is that like vim?! Aug 28 15:39:39 Yeah I mainly use it for the UI design Aug 28 15:39:39 pfn design showcase is an app ? Aug 28 15:39:45 :) Aug 28 15:39:51 Fritz7, no, all apps that are highlighted for design in the play store Aug 28 15:39:58 I design my UIs in xml Aug 28 15:39:59 you can draw inspiration from those Aug 28 15:40:06 I use photoshop Aug 28 15:40:21 CocoStorm what??? Aug 28 15:40:22 readyjar, it's completely usable, just not ideal vis a vis intellij Aug 28 15:40:30 papachan, I'm joking lol Aug 28 15:40:42 vis a vis? Aug 28 15:41:12 http://www.merriam-webster.com/dictionary/vis-%C3%A0-vis Aug 28 15:41:59 Using Gradle and Android Studio, after successfully importing the project, none of the Android SDK methods are resolving, anybody have any thoughts? (Ubuntu 12.04, Studio 2.6, Gradle 1.7, JDK 1.7) Aug 28 15:42:14 TachyonDev, add sdk in project settings Aug 28 15:42:21 TachyonDev, cmd-; in mac Aug 28 15:42:29 c-a-shift-s on pc Aug 28 15:42:56 pfn which is the link at playstore ? it isnt in english so i see no design category Aug 28 15:43:08 Fritz7, just under apps in general Aug 28 15:43:08 We will provide a UI to configure project settings later. Until then, please manually edit your build.gradle file to configure source folders, libraries and dependencies. Aug 28 15:43:09 NOTE THAT EDITS MADE IN THE FOLLOWING DIALOG DO NOT AFFECT THE GRADLE BUILD. Aug 28 15:43:09 The dialog can be used for temporary adjustments to SDKs etc. Aug 28 15:43:22 * pfn shrugs Aug 28 15:43:26 lul Aug 28 15:43:27 answer: don't use gradle and AS :p Aug 28 15:43:56 pfn: from what I see they are all added already Aug 28 15:44:30 Hi all Aug 28 15:44:48 pfn: what version of the JDK are you using? Aug 28 15:45:22 TachyonDev, I use jdk 1.6 or 1.7 depending on the pc I happen to be on Aug 28 15:45:44 sigh .. Aug 28 15:46:21 but yeah, only reason it should not resolve is if the sdks weren't properly added to AS Aug 28 15:46:35 set the right android platform target in your gradle project vs. AS? Aug 28 15:46:50 install the platforms from sdk manager launched from AS Aug 28 15:47:38 somebody there already include ACRA logging in a project? Aug 28 15:48:59 pfn: yeah everything builds through Gradle fine .. just AS cant figure anything out Aug 28 15:49:33 I had a problem with Gradle, it kept being retarded and I couldn't delete it Aug 28 15:49:46 the build Aug 28 15:53:31 TachyonDev, yeah, just run sdk manager from AS to fill it up Aug 28 15:54:05 TachyonDev, probably hasn't been added into wherever AS is looking, but your ANDROID_HOME or local.properties points to one you do have setup Aug 28 15:54:14 couldn't delete it? Aug 28 15:54:20 gradle clean not doing it? Aug 28 15:54:22 * pfn headscratches Aug 28 15:55:02 Nothing really worked, had no idea but I'll come onto it later I guess maybe just reinstal everything Aug 28 15:56:50 reinstalling is not the answer... Aug 28 15:58:37 true, but I deleted all gradle files Aug 28 15:58:44 and they kept reappearing Aug 28 15:59:30 It defeated me Aug 28 15:59:33 :( Aug 28 16:10:04 if i have values like 14279905.866813573f for my vertices and i want accuracy what would be best to make values bigger or smaller i can scale with 10 or devide with 10 Aug 28 16:10:32 very annoying coders who hardcode strings values inside the java code.hate that Aug 28 16:10:35 CocoStorm, if you're using android studio, of course gradle files will appear, that's how it manages projects Aug 28 16:16:44 Is there anyone online who could give a beginner some help? Aug 28 16:17:05 markyosullivan: Just ask the question :) Aug 28 16:17:10 Don't ask to ask Aug 28 16:17:12 markyosullivan: there are hundreds of people in this channel - you don't have to ask if anyone's around every time Aug 28 16:17:27 I don't know how to ask it Aug 28 16:17:28 :( Aug 28 16:17:40 markyosullivan: Well just try. We can figure it out Aug 28 16:17:48 I've asked a couple times before and I've been told I'm asking the wrong question and so I never get help :\ Aug 28 16:17:59 so work on asking the right question - it's a skill Aug 28 16:18:27 If I'm asking the wrong way, please tell me what I'm doing wrong so I won't do it again in the future Aug 28 16:19:10 if you're too lazy to ask your question, I'm too lazy to answer Aug 28 16:19:20 I've got 2 classes. Payment class and Add Payment class. My Add Payment class allows users to enter data which will be used to populate an item for a list view on my Payments class. Aug 28 16:20:24 class, Activity? Aug 28 16:20:37 are they called activities? Aug 28 16:20:57 Activities are a type of class. Aug 28 16:21:12 if you don't know that, I think you need to go RTFM... Aug 28 16:21:18 Sorry, I don't know the right terms. Like it opens up a new page? Does that mean it's opened a new activity? Aug 28 16:21:25 RTFM? Aug 28 16:21:32 read the *fine* manual Aug 28 16:21:40 have you worked through the training section on the d.android.com site? Aug 28 16:22:01 Yes Aug 28 16:22:04 I think he means activities Aug 28 16:22:14 but you don't know what an Activity is? Aug 28 16:23:01 It's a window which a user can interact with? Aug 28 16:23:16 Such as enter data, draw, take pictures, etc? Aug 28 16:23:21 markyosullivan: Just get on with the question Aug 28 16:23:25 Sorry Aug 28 16:23:32 Okay, back to the question Aug 28 16:24:18 Currently I can add items using data submitted to the Add Payment activity which is then transferred to the Payments activity where the list view is. I can also delete items. Aug 28 16:24:38 However I can't edit the data currently in existing items. Aug 28 16:25:25 markyosullivan: Payment methods like credit cards? Aug 28 16:26:09 hello i have a framgent and according to the user settings when i create it i load the appropriate layout Aug 28 16:26:25 markyosullivan: I'm not aware of any application that allows you to edit information once it's submitted. A sanity check is done at time of submission to make sure it's a valid number, exp date, security code. Aug 28 16:26:26 Not just general Payments, e.g. Birthday on dd/mm/yyyy costs £x.xx Aug 28 16:26:31 the problem is how i will handle the listeners if for example i have two layouts Aug 28 16:26:45 one with one button and one with two Aug 28 16:27:18 i can't write listeners for all. Do i have to create two different fragments? Aug 28 16:27:27 markyosullivan: Not sure what you mean there Aug 28 16:27:53 Maybe I should provide some screen shots? Aug 28 16:28:04 markyosullivan: Cant hurt Aug 28 16:34:47 readyjar: http://i.stack.imgur.com/NeLBd.png Aug 28 16:34:58 http://i.stack.imgur.com/u6Owu.png Aug 28 16:35:25 What are you trying to change there? Aug 28 16:38:09 I'm trying to edit the data in the first picture Aug 28 16:39:53 readyjar: my edit method updates everything apart from the title which stays the same Aug 28 16:40:29 I tried posting on Stack Overflow but I couldn't get an answer as to why it wouldn't update everything Aug 28 16:41:53 Perhaps it's because I haven't asked the question correctly Aug 28 16:41:54 http://stackoverflow.com/questions/18445649/cant-update-first-column-using-sqlite Aug 28 16:43:03 readyjar: got any idea why it might not be working? :/ Aug 28 16:44:59 hellos I'm trying to make a carousel with images obtained from an xml that is on internet (so as the images), any idea how can I do this? (i'm currently using the universal image loader class to load images from internet) Aug 28 16:46:17 I would love to asign those images to an android gallery but since it's deprecated can't find too much info on that Aug 28 16:47:54 exit Aug 28 16:47:56 fuck Aug 28 17:05:05 https://lh5.ggpht.com/CyvHLXx-_SR5K_GWciE4jqEIoSQl88VRzRNeYRCMANnxFdinzLpw625ZwtqBAJRPXC4=h900-rw Aug 28 17:05:13 how is this implemented? Aug 28 17:05:36 the view Aug 28 17:07:22 Just a bunch of textviews Aug 28 17:09:03 Hi. What is the best way using a "Timed-Function" in an IntentService? Handler would be outside the thread so the IntentService will call onDestroy before the Handler has been called. Same as Threads, AsyncTask, .. Aug 28 17:10:43 Can anyone help me please? Aug 28 17:11:06 SimonVT and how is it scrollable? Aug 28 17:11:28 With a scrollview? Aug 28 17:11:54 i see Aug 28 17:15:43 datab.update("PaymentTable", vals, "PTITLE='"+sTitle+"'", null); Aug 28 17:15:48 in my 2.3 doesnt look like it Aug 28 17:16:00 Can anyone tell me how to get the values in the PTITLE column to update as well as all the other columns? Aug 28 17:17:37 Nobody? Aug 28 17:18:05 hi, can someone recommend a webservice that generates a simple app that justs includes a website as webview? found appsgeyser, but seems they add ad's to the program Aug 28 17:18:16 markyosullivan: Sorry I have no experience there. What object is datab? Aug 28 17:18:33 SQLiteDatabase Aug 28 17:19:26 any suggestions as to where I could get help with it readyjar ? Aug 28 17:21:52 markyosullivan: I'm not seeing an option to do this. Is ptitle the name of the db? Aug 28 17:22:23 Or table rather Aug 28 17:22:30 Because I don't think you can rename tables Aug 28 17:22:51 it's the name of the first column Aug 28 17:22:53 You'd have to create a new one with the new name, and copy over Aug 28 17:23:03 it's populated with sTitle values Aug 28 17:23:10 markyosullivan: http://stackoverflow.com/questions/805363/how-do-i-rename-a-column-in-a-sqlite-database-table Aug 28 17:24:25 What option are you talking about? "I'm not seeing an option to do this." Aug 28 17:25:07 markyosullivan: I just read the docs for SQLiteDatabase. Aug 28 17:26:19 Are you talking about the option to update the data? Aug 28 17:26:49 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html Aug 28 17:26:53 included there Aug 28 17:27:30 markyosullivan: No, as in their is no method in that class to rename a table or column. It appears as though it's not possible with SQLite (possibly other slq db's as well). So you'd have to create a new table with the new name and copy over the data Aug 28 17:27:33 Then drop the old table Aug 28 17:28:25 I'm not wanting to rename the column or table Aug 28 17:28:55 Okay, my Stack Overflow title doesn't make sense Aug 28 17:29:04 markyosullivan: Then you need to ask your question better Aug 28 17:29:09 I thought this is what you wanting to do Aug 28 17:29:21 What I'm looking to do is update the sTitle field for my item in my list view Aug 28 17:30:29 What should I put the title to? Aug 28 17:32:14 'Can't update data for my list view' Aug 28 17:32:19 does that explain it better? Aug 28 17:32:50 so, you have a listview that is backed by a cursor adapter, and when you try to edit the data, the table does not update to reflect the changes? Aug 28 17:35:12 readyjar: have you never used SQLiteDatabase.update? Aug 28 17:45:56 Can anyone please offer a bounty on my question? Aug 28 17:45:56 http://stackoverflow.com/questions/18445649/cant-update-data-for-my-list-view Aug 28 17:46:08 I want to get the update feature finished Aug 28 17:54:58 if anyone works for starbucks in here fix the g.d. app already. Aug 28 18:11:38 Are you guys using 1.5 compiler or 1.6 in your projects? I'm considering using 1.6 as it doesn't consider @Override an error when implementing abstract functions (which 1.5 actually does). Aug 28 18:12:48 1.6, isn't that the "officially supported" one too? Aug 28 18:15:47 snowpong: most folks have moved to 1.6 Aug 28 18:16:14 jasta: OK good to know Aug 28 18:16:45 Thorbear: not sure, what is the default in Android Studio? Aug 28 18:16:57 1.6 Aug 28 18:17:26 anyone know how long it takes to be approved to post in the android developers group? I've posted 5 or 6 things (a new thread and some replies to others) and nothings has shown up yet. It's been over a month since my first post. Aug 28 18:25:09 Can someone tell me where I can get help with my code? Aug 28 18:25:37 by experimenting 'til it works Aug 28 18:25:43 or being extremely specific with your questions Aug 28 18:36:02 help me debug please Aug 28 18:36:03 http://pastebin.com/rmxufT3x Aug 28 18:36:37 error is: prepare faild status 0X1 Aug 28 18:36:57 it is very short code( to play an mp3 file) Aug 28 18:44:59 shadej: well https://developer.android.com/reference/android/media/MediaPlayer.html#prepare() either fails if the state was wrong, or if it had problems reading the file Aug 28 18:45:16 find out which one it is first, then work from there Aug 28 18:45:42 hi Aug 28 18:45:57 shadej: I think it's IO the android.resource://com.example.lvm/raw/"+name seems wrong Aug 28 18:45:59 snowpong: the file is mp3 and is found under raw folder Aug 28 18:46:25 snowpong: why? Aug 28 18:46:29 i try to get my p880 back to original state to send it back (massive problems with battery drain as soon as i sync my office calendar once manually - pressent in cm 10.1 and 10.2 and others) Aug 28 18:48:00 Still stuck Aug 28 18:48:00 http://stackoverflow.com/questions/18445649/cant-update-data-for-my-list-view Aug 28 18:48:11 so i downloaded the original rom from http://forum.xda-developers.com/showthread.php?t=2003530 Aug 28 18:48:23 but in clockworkmod i always get "installation aborted" Aug 28 18:48:44 shadej, look at what error 0x1 means Aug 28 18:49:19 the zip does not contain a filesystem image but contains only one .dz file Aug 28 18:49:52 shadej: http://stackoverflow.com/a/7966213/1666063 Aug 28 18:50:24 MicW: #android-root Aug 28 18:50:31 SimonVT, thank you Aug 28 18:50:50 wait Aug 28 18:51:00 shadej: What is the exact name of the file? Aug 28 18:51:11 greeting.mp3 Aug 28 18:51:25 your name string is just "greeting" Aug 28 18:51:30 make it "greeting.mp3" Aug 28 18:51:41 see if that fixes it Aug 28 18:51:47 RyanM: I did tried that Aug 28 18:52:12 ah Aug 28 18:52:27 I'm not really familiar with MediaPlayer, I just happened to spot that. Aug 28 18:52:41 shadej: I played with this stuff some time back, let me see if I find the code.. Aug 28 18:52:52 snowpong: oh great Aug 28 18:54:47 shadej: seems I didn't push it to my github so it's offline somewhere, sorry - anyways, my guess is your referring to the raw file in a wrong way Aug 28 18:57:33 RyanM:where is the raw folder located? (I created one by myself) Aug 28 18:57:58 hm? Aug 28 18:58:58 How do I get more response on Stack Overflow? Aug 28 18:59:03 Why is nobody helping me? Aug 28 18:59:22 How am I supposed to get any where with my code when I'm stuck and don't have a clue what to do. Aug 28 18:59:23 -.- Aug 28 18:59:32 or what's wrong with my code Aug 28 18:59:53 markyosullivan i sent you that catb link yesterday Aug 28 18:59:53 markyosullivan Aug 28 18:59:53 11:20 Aug 28 18:59:53 are they called activities? Aug 28 18:59:53 Sorry, I don't know the right terms. Like it opens up a new page? Does that mean it's opened a new activity? Aug 28 19:00:02 people tend to help if people help themselves first Aug 28 19:00:05 markyosullivan did you read it ? Aug 28 19:00:21 try to learn the right terminology and basics first Aug 28 19:00:23 catb link? Aug 28 19:00:27 Sense of entitlement.. Aug 28 19:00:32 I know the terminology Aug 28 19:00:35 i guess no Aug 28 19:00:50 http://www.catb.org/esr/faqs/smart-questions.html Aug 28 19:00:55 I'm not confident because I'm self teaching myself Android development Aug 28 19:01:22 The two don't have to be mutually exclusive. Aug 28 19:02:01 well, there's nothing worse than ignorance mixed with confidence :| Aug 28 19:03:00 markyosullivan but anyhow, please read the catb link Aug 28 19:03:21 g00s: According to Dunning and Kruger, ignorance and confidence will always combine. :) Aug 28 19:03:30 lol Aug 28 19:03:36 haha Aug 28 19:03:37 g00s: I read over that yesterday Aug 28 19:03:47 I explained what I was trying to do yesterday Aug 28 19:03:51 I explained this morning Aug 28 19:03:55 I explained this afternoon Aug 28 19:04:07 markyosullivan: what is your background in Java anyhow Aug 28 19:04:15 I'm a student Aug 28 19:04:17 Jeez guys, come on, you all owe him help now. Aug 28 19:04:33 I started learning Java in Sept 2012 Aug 28 19:04:39 After he explained so hard. Aug 28 19:05:07 markyosullivan: Is PTITLE in your database guaranteed to be unique? Aug 28 19:05:09 I've asked on numerous occasions here for help. I've even asked for help on trying to explain what I need help with. Aug 28 19:05:27 Looks like an app to input your expenses, I'd imagine stuff like "Rent" could appear more than once Aug 28 19:05:35 It's not guaranteed to be unique SimonVT Aug 28 19:05:38 If it's not unique, you shouldn't filter by it Aug 28 19:05:57 If you're expecting it to updates only one row at least Aug 28 19:06:15 booya, I am not entirely sure how, but my screenshot shit I added to android os is considerably faster sending screenshots to my desktop Aug 28 19:06:15 There could be multiple birthdays, 1 user might say "Aunts Birthday" other users might just say "Birthday" Aug 28 19:06:22 cept I am sending it over eth and not usb Aug 28 19:07:09 You write (had to read through a few edits, first you claim it just doesn't work) that only PTITLE isn't updated.. What makes PTITLE different is that you filter by it.. The obvious thing to do would be to find out if that's the cause of it not updating Aug 28 19:07:14 Yeah I'm expecting at least 1 row to be updated once the edit option is clicked on the Context Floating menu Aug 28 19:07:44 Btw I really appreciate you helping me SimonVT Aug 28 19:07:54 I've sat here for days not knowing what to do Aug 28 19:08:33 Well, if you filter by title, and I have two expenses called "Birthday", editing one would change the data of the other as well Aug 28 19:08:38 I've tried putting the 3rd parameter to null, just to see what it would do. It updates all the fields but if there's multiple items on the list view it updates all those items to the same thing Aug 28 19:08:41 I'm sure that's not what you intent Aug 28 19:08:53 No :\ Aug 28 19:08:58 Didn't realise that would happen Aug 28 19:09:16 I was thinking earlier, would it be best to add a Payment ID column into my database? Aug 28 19:09:30 So you need something unique, like an id.. Which Android already requires if you're using CursorAdapter Aug 28 19:10:46 So basically, I need a payment ID and if I use the same line of code except replace it with payment ID which would be unique, it would update as I would like it to? Aug 28 19:10:58 I'd imagine so, yes Aug 28 19:11:15 Right now you're trying to update a single row based on a non-unique value Aug 28 19:11:33 Fix that, then see what happens Aug 28 19:11:49 give me all you payment IDs Aug 28 19:11:58 The id column has to be named _id (can just use BaseColumns.ID) Aug 28 19:12:58 why does it have to be named '_id'? Aug 28 19:13:08 can it be payment_id? Aug 28 19:13:15 or just _id? Aug 28 19:13:21 Because you should use CursorAdapter Aug 28 19:13:27 And CursorAdapter wants it to be named _id Aug 28 19:14:49 Okay, thanks for the help. Really appreciate it. Can I just add on a new column and set it as the first column without there being any errors? (of course updating the Database version after) Aug 28 19:15:49 When you're still developing, just add it to where you create the table.. Uninstall and reinstall Aug 28 19:16:23 Altering tables is for when you have users to worry about Aug 28 19:18:41 I'm still developing the app so I don't have users to worry about. What you mean uninstall and reinstall? Aug 28 19:19:32 For an existing database you need to bump the version and alter the table Aug 28 19:19:46 You can just delete the database and create a new one with the right columns Aug 28 19:22:23 So there'll be no error if I add a column at the start instead of having the PTITLE column and then just update the version? Aug 28 19:24:35 That's not what I said.. Aug 28 19:25:35 21:19 For an existing database you need to bump the version and alter the table Aug 28 19:25:36 https://www.google.dk/search?q=sqlite+alter+table Aug 28 19:25:42 21:19 You can just delete the database and create a new one with the right columns Aug 28 19:25:47 That's what I said Aug 28 19:27:10 So basically, just delete the database file in my project, create a new one and add the columns I need Aug 28 19:27:42 does it matter if I name it the same name as the previous database or will it cause errors? Aug 28 19:28:14 Surely when you delete it there is no previous database to worry about Aug 28 19:28:43 Also, database file in your project? Aug 28 19:28:49 Are you not using SQLiteOpenHelper? Aug 28 19:33:36 ublic class xxx extends SQLiteOpenHelper Aug 28 19:36:32 Hi! The user need to create an account the first time the app executes. What should the title be you think? 1. First time account creation, 2. Setup the app on first use, 3. simply just "Create account", what is the most common name on these activities? Aug 28 19:36:53 I'm not sure what the confusing part is.. If the database exists you have to bump the version and update it (i.e. alter the table to include another field).. If it doesn't, just create it Aug 28 19:37:32 hi Aug 28 19:38:28 meck0 seemingly so simple, but actually quite tricky! Aug 28 19:38:46 its best to let people use your app without committing to creating an account Aug 28 19:39:11 they should be able to get a feel for what it does without an account, in other words. ideally anyhow Aug 28 19:39:36 Hi all. ContentProvider question if you have a sec. I've built an app that has a ContentProvider (on an SQLite db). That app is able to access the db and insert/delete/etc. Now I'm building a second test app for accessing the content provider. What do I need in that test app to access the database contract and authority and such? Aug 28 19:39:53 Yeah my app has a database, SimonVT, so I'm just going to add another field for it Aug 28 19:40:30 Andrew76 usually you 'give out' the contract class Aug 28 19:40:30 Thanks for telling me what I have to do. I really appreciate it, means I can go off and try to finally get this update method working Aug 28 19:40:50 g00s Got an example of how to do that? Aug 28 19:40:54 g00s fix your truck? Aug 28 19:41:18 ron_frown nope Aug 28 19:41:35 did it get towed? Aug 28 19:42:31 oh, i got that fixed. engine light went off, ran to emissions, passed, got registration. but the mechanical problem still there. its just sitting Aug 28 19:42:44 with what Aug 28 19:42:46 er Aug 28 19:42:51 what was mechanical probs Aug 28 19:43:02 dunno, i have to take it somewhere Aug 28 19:43:33 * Bleeptech is curious.. Aug 28 19:43:49 g00s: What's it doing? Or not doing? Aug 28 19:43:57 I downloaded truck simulator 2 for PC it was shit Aug 28 19:44:03 g00s telling you dude Aug 28 19:44:07 irc can solve problems Aug 28 19:44:11 and save money Aug 28 19:44:57 Or at least cut out a lot of shop time on diagnostics. :D Aug 28 19:54:07 I am trying to paly mp3 file Aug 28 19:54:14 but getting this error Aug 28 19:54:15 prepare failed: status = 0x1 Aug 28 19:54:22 help please Aug 28 19:54:56 I'm still missing a piece of the ContentProvider puzzle. My provider app defines the contract and has with exported=true in the manifest. But how do I acces that provider from a second app (that is part of a completely separate package)? Aug 28 19:55:53 this is my code Aug 28 19:55:54 http://pastebin.com/rmxufT3x Aug 28 19:56:26 Andrew76 the contract class should have all the necessary constants, just put it in your other project and use it to query the content provider Aug 28 19:56:35 probably a good idea to version it somehow Aug 28 19:57:07 Ah so "give out" meaning straight-up provide a copy of the source file for the contract. Aug 28 19:57:24 yeah, should just be an Interface with a bunch of constants, or a class Aug 28 19:57:31 check out the iosched sample Aug 28 19:58:24 like https://code.google.com/p/iosched/source/browse/android/src/main/java/com/google/android/apps/iosched/provider/ScheduleContract.java Aug 28 19:58:43 Ok checking now, thanks. Aug 28 19:59:42 g00s: can you help? Aug 28 19:59:55 i dont know anything about the media player, sorry Aug 28 20:00:11 any one who has implemented audio player Aug 28 20:30:38 Anyone know if there's an equivalent of android:fillViewport for ListViews? Aug 28 20:31:00 If there aren't enough items to fill the viewport, I want it to stretch the content. Aug 28 20:37:31 RyanM, just set layout_weight or the height to match_content Aug 28 20:38:27 the latter isn't what I want, I want the content to match the listview height, not vice versa Aug 28 20:38:35 layout_weight might work Aug 28 20:41:07 but I might have a better way anywa. Aug 28 20:41:09 *anyway Aug 28 20:41:12 thanks though Aug 28 20:44:50 is there a setting in AS like "if the file changes behind my back, consider that golden and reload the editor" ? Aug 28 20:46:43 Prefs -> General -> sync has the closest stuff Aug 28 20:46:59 hello Aug 28 20:47:04 Uh? If you change a file in some other app, AS will pick it up Aug 28 20:47:05 does it worth to try android studio ? Aug 28 20:47:12 well, what is "frame activation" ? Aug 28 20:47:51 Fritz7 unless you want to use gradle, probably not Aug 28 20:48:03 (plain intellij is probably more productive) Aug 28 20:48:44 i dont know what gradle is Aug 28 20:49:08 SimonVT yeah, doesn't work as well as it sounds. i modified a file outside of AS, but then it overwrote it when i switched to AS (it had stale content in the editor) Aug 28 20:49:12 so stick with aclipse Aug 28 20:49:44 g00s, that's the default as long as you don't have unwritten changes in intellij Aug 28 20:50:13 ok, unwritten changes. hm Aug 28 20:50:38 g00s, never had that issue Aug 28 20:50:45 and if you do overwrite from intellij on accident, you can revert Aug 28 20:52:03 ok. it was behaving normally. just this one time it saved over the stuff i modified outside AS. Aug 28 20:58:34 hi Aug 28 20:58:35 hru Aug 28 21:00:14 hi how ru Aug 28 21:00:20 any developer here? Aug 28 21:00:27 none Aug 28 21:00:36 im a porn star Aug 28 21:00:39 then wht all of u doing here?:) Aug 28 21:00:39 im a dj Aug 28 21:00:52 this channel is android divas Aug 28 21:01:02 I'm a professional phone licker - I test what happens in apps when the user licks the phone. Aug 28 21:01:11 :D Aug 28 21:01:23 in all seriousness, most of us are devs - just ask your question :-) Aug 28 21:01:23 can any one help me im facing a problem on Calender Aug 28 21:02:19 hello Aug 28 21:02:52 karachiguy2: ask your question Aug 28 21:03:10 don't ask to ask, just ask and we'll help you if we can Aug 28 21:03:27 if people don't respond, it's typically because they don't know the answer Aug 28 21:03:43 im create an calender app which display dates but problem is if month start from wednesday or thursday is show all previous days null Aug 28 21:04:23 i want to show on before 1st of months like this way 31 30 29 etc Aug 28 21:05:02 can anyone help me?? Aug 28 21:05:15 So just do that then Aug 28 21:05:32 im faceing problem in logic Aug 28 21:05:40 :) Aug 28 21:05:46 can i sent u my code? is just very small app Aug 28 21:05:58 please ask a specific question, rather than asking the channel to tell you how to write your app Aug 28 21:07:25 karachiguy2: usually i get so frustrated waiting for handouts here i end up going on Google and fixing it myself =\ Aug 28 21:09:49 plz just check my code is not so big only 7 button for days and 4 buttons for last and next month Aug 28 21:09:50 plzzz Aug 28 21:11:42 Hey guys, I have a BILLION DOLLAR idea, problem is, I lack coding/design/project management/financial experience. Just need a coder, will pay a small percentage of the profits. PS. It's like facebook, ebay, and google Aug 28 21:12:12 No. Ask a proper question (a description of what you're trying to do, relevant code that is not your entire app, and what behavior you're seeing) Aug 28 21:13:07 where i post my code?? Aug 28 21:13:13 poutine, what is it? Aug 28 21:13:15 alternately, hire a developer to fix it for you. I'm sure you could get a decent one for about $50/hour. Aug 28 21:13:24 CocoStorm, it was a joke Aug 28 21:13:32 poutine, dammit Aug 28 21:13:36 it's called GooFaceBay Aug 28 21:13:37 poor joke 3/10 Aug 28 21:13:38 Use pastebin Aug 28 21:13:57 poutine: It's like Google, but more social. And more Web 2.0 Aug 28 21:14:45 Have you guys heard of Web 2.0? Well that's so-yesterday, we're currently working with Web 8.0, and if that didn't wet your tongue, we also are willing to print you stock certificates in our fictional company Aug 28 21:16:20 poutine: http://html9responsiveboilerstrapjs.com/ Aug 28 21:16:50 heh it is responsive Aug 28 21:18:28 I am firing a local broadcast (using LocalBroadcastManager) and sometimes it is mighty speedy, sometimes it take 2 seconds or so. is this normal? Aug 28 21:20:16 jaynewstrom lbm is just a singleton with a collection of listeners Aug 28 21:20:41 so you're saying it should always be very fast Aug 28 21:20:47 it just iterates through the listeners to see if the submitted Intent will match what they want Aug 28 21:20:51 yeah, should be instant Aug 28 21:21:10 ok. I'm going to make sure I'm not crazy here. Thanks Aug 28 21:22:37 jaynewstrom: check to see if you might be doing long operations on the UI thread somewhere Aug 28 21:22:52 that might slow it down Aug 28 21:23:17 Yeah, that's kind of what I'm thinking is happening. But I'm not doing anything on the main thread (hopefully) using volley to do some network requests Aug 28 21:26:24 hey guys - is there a way to check if there is any files in the root dir of an application? Aug 28 21:27:19 my project minimum SDK is API 10 but I need to use Bitmap.sameAs (API 12+). What is an alternative that will work for < API 12? Aug 28 21:28:00 in this instance i am trying to identify if there is any audio or video files in the localhost/bundle/ dir Aug 28 21:28:05 zanberdo, seems like an easy solution, make your min sdk 12 Aug 28 21:28:18 oh you specifically said not to go below it Aug 28 21:28:37 zanberdo, roll your own Aug 28 21:29:00 I must support API 10+ (no option). Just looking for something like sameAs but for API 10 and 11 Aug 28 21:29:51 don't know enough about what sameAs does to know how to roll my own Aug 28 21:30:57 zanberdo, wait what. Aug 28 21:31:06 you're using a function you don't know what does it do_ Aug 28 21:31:14 even do it says clearly in the documentation about what it does? Aug 28 21:31:51 I'm supporting an app I've been working on for a few months. This particular feature I had nothing to do with writing. and yes, docs are clear so yes, I could roll my own. Aug 28 21:32:40 I was hoping there was something someone had already written to address this Aug 28 21:36:36 That someone gets to be you Aug 28 21:37:11 Rearrange a few of those words, then it makes more sense Aug 28 21:39:07 I am implementing audio player. my code does not have any error . how can i check if my emulator outputs audio? Aug 28 21:40:00 turn your speakers up Aug 28 21:40:28 get a real device Aug 28 21:40:30 nexus 4 is on sale Aug 28 21:40:35 hard to beat $200 Aug 28 21:46:53 CocoStorm: my speaker is turned on Aug 28 21:46:55 my code Aug 28 21:46:57 http://pastebin.com/FVxKrZqq Aug 28 21:47:18 put it closer to your ear Aug 28 21:47:41 play an audio file, then you know if sound works Aug 28 21:47:53 go in the settings, choose a ring tone... Aug 28 21:48:04 really not that hard Aug 28 21:48:10 full volume speakers real high though Aug 28 22:08:24 eisbehr: the problem seems from the emulator Aug 28 22:09:17 is there any configuration i have to do Aug 28 22:13:23 are you on windows? Aug 28 22:29:17 hello Aug 28 22:29:33 Going back in android Aug 28 22:29:52 back hardware button is the reccomended solution ? Aug 28 22:30:12 Fritz7: yep Aug 28 22:30:12 Fritz7 http://developer.android.com/design/patterns/navigation.html Aug 28 22:30:19 i have many complaints for this as it forces users to click back sometimes Aug 28 22:30:37 even up isnt easy to press Aug 28 22:30:45 Fritz7: as oppposed to...willing the device to go back? Aug 28 22:30:48 do all emulators have speaker? Aug 28 22:30:52 they use ios version too and it is easier ,probably thats why Aug 28 22:31:17 but android says no to touch back Aug 28 22:31:25 if you follow the rules Aug 28 22:31:41 Fritz7 where does it say that? Aug 28 22:31:45 also some androids have back at left other at right Aug 28 22:31:56 android guidelines Aug 28 22:32:24 yeah, I really wish manufacturers would be consistent Aug 28 22:32:34 or just use the damn soft buttons Aug 28 22:32:42 because they're better. Aug 28 22:33:09 Why do I keep seeing people use "crush" instead of "crash"? What sort of horrible trend is this? Aug 28 22:33:36 Nilium havent ever heard it Aug 28 22:33:52 RyanM so what could i do ? Aug 28 22:34:12 http://stackoverflow.com/search?q=%22crush%22 ← It's sort of visible there. Aug 28 22:34:12 RyanM, I've seen incredible amount of people complaining how soft buttons "steal screen space!!!111@ Aug 28 22:34:14 ;) Aug 28 22:34:17 Unrelated though. Aug 28 22:34:43 Soft buttons do steal screen space, but the issue isn't the soft buttons, it's that device manufacturers keep using horrible screen aspect ratios. Aug 28 22:35:00 mhm, 16:9 isn't optimal Aug 28 22:35:14 Nexus 4 is noticably more enjoyable to use with it's 1280x768 screen Aug 28 22:35:41 Another issue is that people keep putting toolbars on the top in widescreen formats. Aug 28 22:36:14 There's a whole lot of screen space on the side perfectly well-suited for that where your thumbs can reach and so on, so it's pretty silly at times. Aug 28 22:36:32 widescreen formats? Aug 28 22:36:45 Landscape where it's using a widescreen resolution. Aug 28 22:37:57 Mavrik: that's a silly objection, but people will make it anyway I'm sure. When you don't have hard buttons you have more space for screen, plus you can then reclaim the space for the screen when using fullscreen video apps. Aug 28 22:38:41 At any rate, as far as I'm concerned, the soft buttons aren't the issue. It's just terrible screen resolutions and bad design choices. Aug 28 22:38:48 also since some apps are hell-bent on using menu buttons the soft button bar is there half the time anyway. Aug 28 22:38:59 (looking at you until recently, Facebook) Aug 28 23:04:07 CocoStorm my insurance guy keeps saying that everybody's premiums keep going up to cover the cost from some hail storm somewhere at some time (like, total bs, right?) so what happens to us if there is a coco storm ? Aug 28 23:05:31 g00s, everybody's premium will go cocoNUTS Aug 28 23:05:37 haha Aug 28 23:12:33 is it possible to style the strings.xml Aug 28 23:12:39 in styles? Aug 28 23:23:39 Hi does anybody know what is the best way to debug GCM? Aug 28 23:23:58 I was able to send messages to the majority of my phones tablets Aug 28 23:24:19 but the Galaxy S2 doesn't want to receive them Aug 28 23:24:30 it does provide the registration id Aug 28 23:25:43 totic ???? Aug 28 23:25:51 sometimes they are pretty slow at receiving push Aug 28 23:26:06 it just doesnt arrive Aug 28 23:26:07 ever Aug 28 23:26:15 and the GS3 automatic Aug 28 23:26:35 what version is it running ? Aug 28 23:27:02 4.0.4 android stock Aug 28 23:27:50 is it possible to change app_name Font and color? Aug 28 23:28:19 hard to find any info about it Aug 28 23:28:30 does google provide an interface to look at problems with the messages? Aug 28 23:29:46 app_name, like the default resource name for the string that's used as your app name? Aug 28 23:29:58 you change the font and color of textviews, not strings Aug 28 23:31:19 define in string.xml Aug 28 23:31:29 use it in my manifest Aug 28 23:31:49 label Aug 28 23:32:05 totic: not that i know of :( Aug 28 23:33:39 it also doesnt work on Galaxy Tab 7 inche 2.2 android Aug 28 23:34:42 what does it work on? Aug 28 23:35:00 Galaxy Tab 2, Galaxy S3 Aug 28 23:35:16 lots of samsung fun going on there, huh ? :P Aug 28 23:35:22 yeah Aug 28 23:36:04 let me tests the nexus one Aug 28 23:36:05 i haven't done GCM since the new version, but my tablet was having issues coz when it went to sleep it'd flick off the wireless connection ( inconsistently too ) Aug 28 23:36:32 have you checked logcat to see if it's receiving and dumping ? Aug 28 23:36:46 yeah Aug 28 23:37:01 I have a sound that beeps whenever it gets anything Aug 28 23:38:04 the nexus one also gets it Aug 28 23:39:48 does anyone know how to use the in-app billing generation thing with Android Studio? Aug 28 23:40:02 there has to be something to change the color of the appname Aug 28 23:42:30 Dominee: Like, in the launcher? Aug 28 23:42:44 actionbarsherlock Aug 28 23:42:55 the icon launcher Aug 28 23:43:04 the image i have change but the title next to it Aug 28 23:43:11 changed Aug 28 23:43:25 stays black and can't find any way to change that to white :P Aug 28 23:43:49 Dominee: http://stackoverflow.com/questions/5861661/actionbar-text-color Aug 28 23:44:33 ah ok, gonna try that Aug 28 23:44:36 since you're using ABS, you'll need to adapt it as described here: http://actionbarsherlock.com/theming.html Aug 28 23:44:57 yes i have done that with the background color Aug 28 23:45:10 so it will be the same for the title :D Aug 28 23:45:30 would be nice if it works, it finishes the app :) Aug 28 23:50:44 hi guys, I'm getting this error when trying to import the Facebook sdk into a project using android studio Aug 28 23:50:47 https://gist.github.com/emilevictor/72f7fcfca5fc380ed1e7 Aug 28 23:58:34 what is the best way to pass data between two fragments. Is it best to simply use fragmentmanager to grab a handle of the fragment, or to pass a variable holding an instance of the fragment between them Aug 29 00:18:09 ordered my nexus 7 from google. lets see how long it takes Aug 29 00:34:54 what method is best to share an object between two fragments. For instance, I have an object that holds a list of waypoints that I want to share between two fragments. If it is updated in fragment 1, fragmetn 2 should also see it. Until now, I have had a class that extends Application and creates the object, which is then passed to the fragments Aug 29 00:35:15 Are values in default SharedPreferences read from the XML file every time I'm trying to get a value? Or just dumped to a Map when object is created? Aug 29 00:36:16 Gentlecat: see https://developer.android.com/reference/android/content/Context.html#MODE_MULTI_PROCESS Aug 29 00:36:38 epsilonorion_: https://developer.android.com/training/basics/fragments/communicating.html Aug 29 00:37:14 RyanM: Is that why I'm getting different values in main thread and SyncAdapter? Aug 29 00:38:56 Gentlecat: hmm, shouldn't be. Aug 29 00:39:36 unless you're doing something with multiple processes Aug 29 00:40:30 That's what happens right now when I change values. Until I restart that ":sync" process. Aug 29 00:44:34 RyanM: Thanks. Though, isn't that mostly useful for pushing a simple variable back and forth or for starting another fragment. Is it actually a good idea to pass an object/list of waypoint objects? Or another option I guess would be just to pass a waypoint itself and have individual lists in each fragment. As of right now, I am basically creating a single object/list and passing it to each fragment on their creation. Aug 29 00:46:15 epsilonorion_: Java calls between activities and fragments are just Java calls, so you can pass anything you'd pass to a Java method Aug 29 00:46:30 There's no extra overhead just because it's between fragments. Aug 29 00:46:41 Does that help? Aug 29 00:47:41 Gentlecat: Hmmm, that's interesting. You could try setting it and seeing if it fixes the issue, but it strikes me as odd that it would (I'd expect the SyncAdapter to run in the same process). Aug 29 00:47:55 RyanM: Okay, that was one concern. Is it best to do it that way than my current. I asked this a while back and some suggested my current method. I am rewritting my code now due to the new google maps api and such, and figured I would see where the winds were this time. That said, I understand interfaces much better than I used to. Aug 29 00:51:34 RyanM: It's being set every time before methods access it. But it looks like SyncAdapter creates a separate process. Probably becuase I set 'android:process=":sync"' in service definition. Aug 29 00:51:36 is there a time before which setTItle must be called on the actionbar for it to recognize the change? Aug 29 00:53:35 Or is there a way I could be inadvertently causing the actionbar to not display a title? Aug 29 00:53:53 right now calling setTitle doesn't work Aug 29 00:54:05 the actionbar has no title to begin with Aug 29 00:54:06 dcow: Yeah, gimme a sec. I've seen issues before, let me find what it was. Aug 29 00:54:19 RyanM: tyty Aug 29 00:55:01 RyanM: Yep. Everything works as expected after I removed that attribute. Aug 29 00:55:25 Thanks for your help. Didn't know about these flags. Should be useful. Aug 29 00:55:53 No problem, glad it helped. Aug 29 00:56:13 dcow: Are you at any point calling setDisplayShowTitleEnabled? Aug 29 00:56:26 if you call that *after* setTitle, it won't work. Aug 29 00:58:51 RyanM: Searching 854 files for "setDisplayShowTitle" Aug 29 00:58:51 0 matches across 0 files Aug 29 00:59:26 RyanM: Mainly, what I am wondering is if it is better to have an object that in memory is the same in both places so when I modify in one fragment, the other fragment will use the same object in memory. Or if it is better to only pass changes between the two fragments when they are made, using interfaces. I guess it may be more of a matter of opinion? Aug 29 01:00:08 in terms of performance, what is recommended: a complex sqlite query or simple queries (with app code processing returned data and issuing other queries if needed)? Aug 29 01:00:58 Leeds: did you nexus 7 problems get fixed with the update ? Aug 29 01:01:03 dcow: rats. Worth a guess. Aug 29 01:01:34 epsilonorion_: Yeah, it likely depends on the situation. Aug 29 01:02:44 RyanM: yeah thanks. I thought I might be doing that too. At no point am I ever setting the label to null either. In fact, now that I look at it I have no idea why there isn't a title in the first place. I never don't set the title. Only request that the actionbar overlay the content.. Aug 29 01:03:06 excuse the double negative Aug 29 01:03:30 RyanM: Thanks Aug 29 01:03:32 You could always try calling setDisplayShowTitle first and see if it shows up :-) Aug 29 01:04:02 DAFUUQ! http://allthingsd.com/20130828/androids-hugo-barra-departs-google-for-chinas-xiaomi/ Aug 29 01:05:12 Xiaomi isn't that what MIUI is based off of? Aug 29 01:07:59 well, there is some strange romantic backstory there :| Aug 29 01:08:21 i mean, his x-gf is dating Sergey now? Aug 29 01:08:26 lol Aug 29 01:08:38 can I use the NDK on windows without installing cygwin? Aug 29 01:09:16 RustyShackleford i thought someone said you could Aug 29 01:09:25 did you ask yesterday? Aug 29 01:10:03 i did. I'm in the process of installing the sdk/ndk and I don't see what to do Aug 29 01:15:20 hi kvothe Aug 29 01:18:11 RyanM: my displayoption did not include showTitle in my actionbar style Aug 29 01:18:14 oops.. Aug 29 01:18:57 that'll do it Aug 29 01:24:45 ho hum Aug 29 01:28:13 what is the actionbar style holo light dark actionbar? Widget.Holo.Light.Actionbar.XXX? Aug 29 01:30:59 huh Aug 29 01:31:09 why are you setting the actionbar style directly? Aug 29 01:31:47 sublassing it Aug 29 01:32:00 why are you subclassing it Aug 29 01:32:15 sub-styling sorry Aug 29 01:32:43 Right now my title text is black. I want it to be white like the dark actionbar Aug 29 01:33:22 currently my actionbar style's parent is Widget.Holo.Light.Actionbar I want the parent to be the dark action bar Aug 29 01:33:28 I just don't know what that's called Aug 29 01:37:38 why don't you just use app theme Holo.Light.DarkActionBar? Aug 29 01:39:37 Because I have my own app theme and other actionbar customizations. Regardless, the correct style is Widget.Holo.Light.Actionbar.Solid.Inverse but I don't need all that. The text styles are TextAppearance.Holo.Widget.ActionBar.Title.Inverse Aug 29 01:39:38 Theme.Holo.Light.DarkActionBar Aug 29 01:39:39 job finished Aug 29 01:40:00