**** BEGIN LOGGING AT Sat Apr 06 02:59:58 2013 Apr 06 03:00:49 I have my app connecting to a server using HTTPS, however I'm getting a 400 Bad Request error when using mobile data. has anyone experienced this before? On WiFi, everything is fine... Apr 06 03:33:33 JakeWharton: if using a lib class that I extend, the lib class having otto.register, and I have a producer in the extended local class, do I also need a register there too ? or whats the correct way for that ? Apr 06 03:34:06 that's fine Apr 06 03:34:23 only methods on the top-level class are currently used Apr 06 03:34:34 but you can register anywhere since 'this' is always the same thing Apr 06 03:35:09 cool, just checking, cheers, cause I'm 1 interface away from having no interfaces across my project :) Apr 06 03:35:35 and no broadcast crap either Apr 06 03:37:09 haha Apr 06 03:37:25 I assume you mean callback interfaces Apr 06 03:37:31 interfaces themselves aren't bad things, of course Apr 06 03:39:11 yes Apr 06 03:39:34 I was having to use frag callback interfaces due to a crappy way I design my app Apr 06 03:40:03 and mixed with use of a badly thought out lib project Apr 06 03:40:26 otto will patch this and allow me over time to redesign a little with more freedom Apr 06 03:40:29 :) Apr 06 03:40:39 so I think you and the good square people Apr 06 03:40:44 thank* Apr 06 03:40:59 people at square* Apr 06 03:41:01 :) Apr 06 03:42:05 StingRay_: don't worry; walk away from your app for a few months - the longer the better; and when you come back it will still seem crappy ;) Apr 06 03:42:25 g00s: I dont need to walk away for me to think that Apr 06 03:42:48 i'm looking at some code i wrote 1 year ago and think- ok i guess, but here is a much simpler way ;) Apr 06 03:42:51 I always think stuff I do is crappy Apr 06 03:43:01 and if you get to a point that you dont Apr 06 03:43:16 your a big headed tw*t Apr 06 03:43:30 :) Apr 06 03:43:31 and up yourself :) will less chance for you to improve Apr 06 03:43:41 or thats the way I look at it Apr 06 03:44:35 g00s: you re-doing your app ? Apr 06 03:44:50 well, i'm at those crossroads Apr 06 03:45:05 the amount of refactoring would be huge; its tempting to rewrite Apr 06 03:45:23 also tempting to port to another platform altogether; trying to calculate my ROI Apr 06 03:46:09 I'm thinking I should start to do appDesign a bit, in a addition to dev Apr 06 03:46:26 StingRay_: this was an influential blog for me https://www.facebook.com/notes/kent-beck/when-worse-is-better-incrementally-escaping-local-maxima/498576730175196 Apr 06 03:46:41 erm Apr 06 03:46:42 wtf Apr 06 03:46:46 i think it happens to everyone; i think its happened to android too Apr 06 03:46:59 what makes you think I would follow a ****facefuck***** link ? Apr 06 03:47:07 its a blog entry Apr 06 03:47:28 i guess Kent Beck has his blog on FB? Apr 06 03:47:37 poor excuse Apr 06 03:47:40 * g00s didn't even know FB had blogging Apr 06 03:47:52 I didnt either Apr 06 03:49:36 also, the best code is the code that isn't there :D i'd like to get rid of my eventbus stuff but otto doesn't have some of the features i need. so i'm basically maintaining my own guava-eventbus too Apr 06 03:51:22 some things i didn't do so well included using notifications only when the UI wasn't present (and if the UI was present, just show it there rather then using the notification) Apr 06 03:51:37 but thats actually kind of a pita Apr 06 03:53:59 how do you test whether a user is 'present', ( ie. the action that fires action.USER_PRESENT ) ? Apr 06 03:55:09 i want people to stop subscribing to me on youtube Apr 06 04:00:12 g00s: I think the problem with me was due to the fact I'm more an artist that a prog Apr 06 04:00:25 and not really done any CS etc or training Apr 06 04:00:41 so I've made some………..erm………interesting choices Apr 06 04:00:45 in design implementation Apr 06 04:00:56 that now I just look at and my jaw drops Apr 06 04:01:24 you called it something like perfectionism last night, I call it, fk me was I retarded ? Apr 06 04:02:09 facebook? Isnt that what myface renamed itself? Apr 06 04:05:22 hey, somebody here already played with the flash light on android? Apr 06 04:05:39 Somebody knows how the maximum light ferquency that I can achieve? Apr 06 04:05:42 capella: i hope moz doesnt screw up with rust Apr 06 04:06:33 I haven't tuned into the right channels for that yet .... too much android work to do ... but the group has high hopes and we have a lot of talent Apr 06 04:07:06 c++ is a tough language to replace Apr 06 04:07:21 lots of them on the scrap heap, like D Apr 06 04:09:48 * capella don't make me earn a living with C# and .NET !!!!! Apr 06 04:09:55 then of course there is maintaining a toolchain, compiler, ugh Apr 06 04:13:52 Hey guys ... can i make android apps using python ? Apr 06 04:15:16 StingRay_: the mystery of mysteries … i have never met a person that claims they like FB; but its so popular … how ? Apr 06 04:18:02 g00s, i like fb because it connects me with my friends Apr 06 04:18:11 i prefer g+ for its functionality Apr 06 04:18:15 but it doesnt have my friends Apr 06 04:19:15 canadiancow: just have them all join irc :) Apr 06 04:19:57 lol Apr 06 04:20:02 i think i get a free month of amazon prime Apr 06 04:20:03 g00s: people hide what they covert Apr 06 04:20:08 my guarnateed delivery didnt happen Apr 06 04:20:09 :D Apr 06 04:20:26 canadiancow: order a pizza from canada and it arrived late ? Apr 06 04:20:39 razor blades Apr 06 04:20:47 and they havent arrived yet Apr 06 04:20:52 they were supposed to be here by 8pm Apr 06 04:21:02 scruffy cow Apr 06 04:21:05 canadiancow: prime is like drugs, the first one is free and then you're hooked Apr 06 04:21:11 g00s, do you use g+? Apr 06 04:21:15 canadiancow: no Apr 06 04:21:23 ive probably asked you that >9000 times Apr 06 04:21:51 i bet ron_frown uses FB all day Apr 06 04:22:22 what the FUCK is fb Apr 06 04:23:05 that thing that wants to take over your phone Apr 06 04:23:11 oh facebook? Apr 06 04:24:30 no I dont use facebook all day... I check updates maybe once a day Apr 06 04:24:32 at most Apr 06 04:27:11 i usually only get on when im on the bus Apr 06 04:27:15 unless i get an email about some update Apr 06 04:27:26 today i was on during thed ay, because i updated my profile pic Apr 06 04:31:46 https://sphotos-b.xx.fbcdn.net/hphotos-ash3/14606_10200206740230740_2025413294_n.jpg Apr 06 04:32:01 me too Apr 06 04:33:46 ron_frown: lol, is that your FB pic ? Apr 06 04:33:54 HAHAH Apr 06 04:34:14 https://sphotos-a.xx.fbcdn.net/hphotos-ash4/267854_2255321982076_657082_n.jpg Apr 06 04:34:16 that is Apr 06 04:34:38 ok, at least no machete ;) Apr 06 04:35:19 someone got me that big ass knife for christmas Apr 06 04:35:23 and oh how they know me Apr 06 04:35:25 it as perfect Apr 06 04:35:59 http://ak1.ostkcdn.com/images/products/7901308/e9eee24c-dde4-4ef2-aa16-6ce36cf77a01_600.jpg Apr 06 04:36:02 thats what I really wanted Apr 06 04:41:39 Hey guys, what channel for AOSP dev and not app dev? Apr 06 04:42:04 android-root but good luck Apr 06 04:42:26 ron_frown: ty Apr 06 04:42:30 why good luck? Apr 06 04:42:31 do you have a specific quetsiong Apr 06 04:42:46 just a couple of simple ones Apr 06 04:42:57 ask, its dead in here anyway Apr 06 04:42:59 is it possible to speed up the full build with additional flags on the make? Apr 06 04:43:08 -j and cccache Apr 06 04:43:23 -j Apr 06 04:43:28 yeah have -j4 and it's been building for 2.5hours :| Apr 06 04:43:35 what kind of machine Apr 06 04:43:49 I build 4.1.2 in about 40 minutes Apr 06 04:44:03 dual quad core with 8gig memory Apr 06 04:44:29 4gigs of ram, Intel(R) Core(TM)2 Duo CPU P8600 Apr 06 04:44:34 and after first real build and no make clean I can usually make mods and rebuild Apr 06 04:44:35 64bit Apr 06 04:44:44 within about 10min Apr 06 04:44:57 yeah, it should cache a lot of the projects Apr 06 04:45:27 <_deXter_> Rasperin, You do have an SSD at least, right? Apr 06 04:45:44 I dont and it chugs just fine Apr 06 04:45:54 <_deXter_> that's because you have sufficient RAM Apr 06 04:46:15 My other question is a really stupid one (esp since I've been using eclipse for developing j2ee projects for 7 years) does it matter which eclipse I should get? Since it's a java project, I noticed eclipse mobile has the cdt plugin in it, or should I just go with eclipse java? Apr 06 04:46:55 you can install cdt in even just the classic ide Apr 06 04:47:27 but good luck getting it all setting up and actually building FROM the ide Apr 06 04:47:28 _deXter_: on my pc I do, I also have 64gigs of ram, 2 i7s, and a couple of beastly video cards Apr 06 04:47:56 <_deXter_> Rasperin, the same PC you are compiling on? Apr 06 04:47:59 this is my tablet laptop I carry around with me 99% of the time and do most of my dev on Apr 06 04:48:02 <_deXter_> ah Apr 06 04:48:13 I've tried building core2 as well Apr 06 04:48:13 <_deXter_> well why don't you compile remotely instead? Apr 06 04:48:19 its balls slow Apr 06 04:48:37 on my macbook pro, it took like 8hr Apr 06 04:48:46 yeah I think it's almost done though Apr 06 04:48:50 hopefully Apr 06 04:49:22 At least when I make code changes to the java side I won't have to remake Apr 06 04:49:29 or so I am hoping Apr 06 04:49:33 I will won't I? Apr 06 04:49:47 to deploy it to my pandaboard Apr 06 04:50:24 * capella did I see dual quad? xeon kinda? Apr 06 04:50:28 _deXter_: I might end up doing that actually, doing most of my dev locally and pushing my changes to my build box Apr 06 04:50:43 you can do partial builds with mm mmm etc in apps Apr 06 04:50:54 but in my panda roms adb remount doesnt work Apr 06 04:51:05 so youll have to flash with fastboot Apr 06 04:51:20 system apps Apr 06 04:51:51 ron_frown: :( Apr 06 04:52:16 I noticed a folder called bionics in the main directory, is that for the new google glasses? Apr 06 04:52:24 no Apr 06 04:53:08 iirc that was just android internals Apr 06 04:53:43 Do you know if the google glasses will have a seperate branch? Or is it being built directly into AOSP with some sort of switch? Apr 06 04:53:58 I mean it's not a.typical android but it's supposed to be fully OS Apr 06 04:54:02 well traditionally the other stuff has been... separate Apr 06 04:54:08 is glasses using android ? Apr 06 04:54:10 google tv wasnt in the aosp branch Apr 06 04:54:11 but it's "android" Apr 06 04:54:18 g00s: yeah Apr 06 04:54:20 neither was the q while it was around Apr 06 04:54:42 if google tv wasn't, glasses won't be Apr 06 04:55:29 i think the chinese guys already announced a glasses clone Apr 06 04:55:33 I have a couple of projects I'm working on, one of which I'm waiting for the glasses for. But for that one though, I'm just creating a driver for a new type of input device. Apr 06 04:58:39 anyways, thanks ron_frown! Apr 06 05:00:03 np Apr 06 05:01:04 I'm just glad I got this to work on arch linux Apr 06 05:02:07 Seriously though, AOSP built on my main box in less then 30minutes (I don't know how long, I started the build and came back 30minutes later and it was done) I wasn't expecting it to take this long on a C2D Apr 06 05:02:52 Huge difference in hardware I know, but ITS DONE! Apr 06 05:03:05 omg Apr 06 05:03:09 it finally finished Apr 06 05:06:23 i remember stage 1 gentoo … days later Apr 06 05:07:09 I used to run Linux From Scratch. I'll never do that again, but it was a good learning experience for me at the time Apr 06 05:07:31 but lots and lots of waiting the compiler to finish, and hoping it was successful. Apr 06 05:07:34 LFS was probably a better learning experience than gentoo Apr 06 05:07:53 ain't nobody got time for that Apr 06 05:08:11 isn't the distro basically a readme.txt file ? Apr 06 05:08:54 yeah, and without a list of tested version numbers for every package so you run into compatibility issues and have to resolve them yourself Apr 06 05:11:54 gentoo? basically Apr 06 05:12:04 building from scratch for your machine last I looked at it anyway Apr 06 05:12:09 gentoo has a package manager Apr 06 05:12:19 and automatic dependencies Apr 06 05:13:07 the thing i liked about gentoo was the use flags for the package manager (conditional dependencies) Apr 06 05:13:31 like "dont' compile Qt support" or "compile postscript support" Apr 06 05:13:40 so the dependencies were dynamic Apr 06 05:15:59 capella: i've been running FF all day with the UnloadTab extension and its never used more than 500mb Apr 06 05:16:07 \o/ Apr 06 05:16:16 so now i have enough memory to run eclipse :) Apr 06 05:16:35 *AND* read my android docs 8) Apr 06 05:17:15 Yah ... this release was pretty slick :D We can open like 1000 tabs a not sweat Apr 06 05:19:02 i hope tab groups doesn't go away, i'm getting pretty attached to that. for example, i have a group for android docs & development … keeps me more focused Apr 06 05:19:48 but then i lose focus when i look at irc :( Apr 06 05:21:52 They're making me do this mobile project in JS inside the browser ... won't LET ME do JAVA Apr 06 05:37:05 Nice place Apr 06 06:19:43 hello! hey does someone know how to read from a usb otg? which permissions are required? Apr 06 06:22:06 is there no way to set the selected RadioButton for a RadioGroup by simply giving it an index? Apr 06 06:22:55 programmatically Apr 06 06:25:46 valheru7 check(int id) ? Apr 06 06:26:08 id being the res id of the view Apr 06 06:28:34 right thats the id Apr 06 06:28:45 was hoping for a way to set basedon the index Apr 06 06:29:01 does not seem to be a way to do so Apr 06 06:29:20 nah since you can have other views in a RadioGroup you would have to make your own Apr 06 06:29:59 ah gotcha Apr 06 07:15:31 what kinda apps are you people working on for android or games Apr 06 07:15:41 im trying to think of an app to create Apr 06 07:16:37 and you have no ideas ? Apr 06 07:19:33 I have about 10 apps on my toDo list Apr 06 07:27:17 I'm replacing MediaRecorder with a better version. Apr 06 07:31:17 I'm usnig SlidingMenu with Fragments... so later on in my app I want to switch out the content fragment with something else.. but when I do so the view doesn't update and the menu is stuck Apr 06 07:31:28 no errors are being thrown, nothing in logs Apr 06 07:32:39 Too much crap on the store. Apr 06 07:33:33 and now too much stuff that all looks the same :) Apr 06 07:34:43 Yeah... Apr 06 07:35:23 there is such a thing as desgin guidelines, but when you have them as rules or you lack the design bit, just all begins to get lost in a sea of "same old" Apr 06 07:35:41 thats where android is still far behind ios Apr 06 07:35:42 I have 146 apps installed on my phone... not a single game... I've never played a game on a mobile device Apr 06 07:36:12 I will never do. Apr 06 07:40:33 i have bits of everything and I'm addicted to bad piggies Apr 06 07:40:35 :) Apr 06 08:20:31 mobile phone is serious business Apr 06 08:20:55 i got 99 apps and a game ain't a one Apr 06 08:26:01 hi guys. does anyone have an idea why the SherlockActivityFragment throws an exception in onCreate because of some bad parceling? Here is a backtrace: http://pastebin.com/RkpPBWMm Apr 06 08:26:13 can my code somehow interfere with that? I fail to see how :-/ Apr 06 08:29:41 are you passing in a bundle ? Apr 06 08:35:50 StingRay_: yeah, the saved state that i get in my onCreate.. Apr 06 08:36:07 but wait a second, it could be a problem with different versions of the android-support-v4.jar.. Apr 06 08:39:33 nope, that's not the problem. :-/ Apr 06 09:11:37 ok, it fails at Apr 06 09:11:41 f.mSavedViewState = f.mSavedFragmentState.getSparseParcelableArray( Apr 06 09:11:41 FragmentManagerImpl.VIEW_STATE_TAG); Apr 06 09:11:45 in the FragmentManager Apr 06 09:12:04 I'm not even touching that parcelable (the one that is tagged with FragmentManagerImpl.VIEW_STATE_TAG) Apr 06 09:15:50 * xviv say hello from GMT+7 Apr 06 09:20:04 nobody talking here like usual? Apr 06 09:20:17 heeeeelllllooooooo~ Apr 06 09:23:07 another satisfied customer. Apr 06 09:24:14 :-D Apr 06 09:30:30 still can't believe it's 2013 and there's still no decent way of animating expandable list views Apr 06 09:40:02 it's a view Apr 06 09:40:09 well a group of views Apr 06 09:40:22 so cant you just animate it any way that you want ? Apr 06 09:40:27 since it's a view ? Apr 06 09:40:49 Could somebody help me with ¨ problems? Apr 06 09:40:55 I currently use this: http://pastebin.com/Rr5JC2AT Apr 06 09:41:44 Then when I run that text through a CharSequence, then toString and then in an SSB all the quotation marks are lost Apr 06 09:41:46 why? Apr 06 09:42:32 not sure what you \"mean\" by that Apr 06 09:43:41 thanks :) Apr 06 09:45:02 I lol'd Apr 06 09:58:16 I made this class while playing with SharedPreferences. But sometimes it can't read the xml file itself and returning 'false' from getStatus() method. http://tny.cz/b2abca30 Apr 06 09:59:14 Of course, a sharedpreference isn't a string Apr 06 09:59:55 Note: I can see the xml files in /data/data/com.my.app/shared_prefs/mysharedprefs.xml Apr 06 10:00:10 Wait, what? shared preferences isn't a string? Apr 06 10:00:33 so.. i should .toString() it first? Apr 06 10:00:39 sp.equals(KEY_STATUS); Apr 06 10:00:43 hi all Apr 06 10:00:45 You're comparing it to a string Apr 06 10:01:06 That's why it always returning false all the time? Apr 06 10:02:45 I'll let you think about that for a minute Apr 06 10:04:11 okay i got it, another question: should I convert all object i get from sharedPrefs before doing something on it? (e.g. == or multiply it) Apr 06 10:04:37 like, getString(KEY).toString() maybe? Apr 06 10:05:40 It's already a String.. Apr 06 10:06:37 Thanks SimonVT! Apr 06 10:16:13 hi, i'm playing around with canvas a little bit and i have a Strange problem, my program should start and should show a green screen and after 5 seconds the screen should change the color to red but the program starts and directly waits 5 seconds and then displays the red screen. why? here is my code http://pastebin.com/n4NDcd9X Apr 06 10:16:55 hi. i have added a splash screen using logo. but it launches application view and inside that its imageview. how can i keep the phone home screen and only show the image as splash screen? Apr 06 10:16:57 help please Apr 06 10:18:31 Abhijit: is there a current application on the market that does that ? Apr 06 10:19:10 :-o Apr 06 10:19:31 I am new to android dev. So I don't know if there is any. Apr 06 10:20:01 StingRay_, so you want to say its not possible? Apr 06 10:20:30 i dont want to say anything, I was just questioning if you had researched and found examples of what you want ? Apr 06 10:20:31 :) Apr 06 10:23:05 no. Apr 06 10:34:38 as a standard practice should i keep textview1 textview 2 button1 button2 as it is or is it recommended to give them meaningful name? Apr 06 10:35:46 Depends.. Do you also name your variables string1, string2, etc? Then you should stick to that practice Apr 06 10:36:07 ok Apr 06 10:44:04 Hi@. Did anyone ever ported SUCCESSFULL an android app to iphone with tools like xmlvm? Apr 06 10:44:16 http://stackoverflow.com/questions/3555868/how-do-i-achieve-the-following-result-using-relativelayout the answer to that question is sort of an awful hack but it seems a lot more elegant than nesting lots of layouts.. Apr 06 10:45:07 nothing hacky about it Apr 06 10:45:37 but there are alternatives Apr 06 10:45:43 as always Apr 06 10:46:04 Why must it be a relativelayout Apr 06 10:46:30 well, it's a relative layout or an extra two levels of nested layouts Apr 06 10:47:09 Hi there Apr 06 10:47:26 trying to figure out which is worse (: Apr 06 10:47:40 Is it possible to save a ArrayList into SharedPreferences ? Apr 06 10:49:41 I don't see the issue in using linearlayouts Apr 06 10:51:09 It's not nested very deep, and you're not nesting weights Apr 06 10:51:11 I'm not a fan of like four level deep nesting in layouts Apr 06 10:52:09 though it is looking like the only option at this point Apr 06 10:54:25 what api you targeting ? Apr 06 10:54:39 cause there was a new view type introduced Apr 06 10:54:50 not looked at it, but its "space" Apr 06 10:55:48 Wrapping a button bar in a linearlayout is not going to impact performance in any noticeable way Apr 06 10:56:14 But if you really want to be efficient, you should create your own viewgroup .. relativelayout is kinda heavy as well Apr 06 10:57:28 Can anybody help me with something Apr 06 10:57:30 http://pastebin.com/GQ8hFZtY Apr 06 10:58:11 Null doesn't like it when you point at him Apr 06 10:58:57 http://pastebin.com/GQ8hFZtY Apr 06 10:59:04 little help guys Apr 06 10:59:21 :\ Apr 06 11:00:37 what dns-server does the AVD use? im getting "UnknownHostException" for ws.spotify.com but it works fine in both chrome and IE Apr 06 11:00:55 hi, i'm playing around with canvas a little bit and i have a Strange problem, my program should start and should show a green screen and after 5 seconds the screen should change the color to red but the program starts and directly waits 5 seconds and then displays the red screen. why? here is my code http://pastebin.com/n4NDcd9X Apr 06 11:01:00 The one that requires the internet permission Apr 06 11:04:25 z3yo. serialize it. Its possible Apr 06 11:05:10 im getting the weirdest error ever, my code was working fine, then i an it, and now it just stops at one point Apr 06 11:05:16 no errors, nothing, super weird Apr 06 11:06:13 anyone seen that before? Apr 06 11:06:20 its mind boggling Apr 06 11:08:46 never seen anything like this before Apr 06 11:11:04 is there a way to see what line is executing or something Apr 06 11:11:23 all i can assume is someone on my team have checked in an infinite loop but even theni cant find it Apr 06 11:11:25 attached debugger and step thought it ? Apr 06 11:11:52 good plan Apr 06 11:12:24 apfel you are on the main thread doing this. the system has no time to actually display the green Apr 06 11:12:44 hmm Apr 06 11:12:52 doesnt do anything Apr 06 11:12:55 just stops Apr 06 11:13:03 apfel it's the classic example of how not to do it Apr 06 11:13:27 gaz`: well at least you know where it's stopping now Apr 06 11:13:33 well no Apr 06 11:13:34 it doesnt hsow Apr 06 11:13:35 show Apr 06 11:13:52 debuggers dont seem to do anything Apr 06 11:13:59 i use system outs to achieve the same thing Apr 06 11:14:08 erm Apr 06 11:14:08 dont really understand debuggers Apr 06 11:14:09 lol Apr 06 11:14:11 xorgate: well i thought the unlockCanvas directly displays the canvas, but ok then i have to find another solution Apr 06 11:14:42 gaz`: it's really not the same thing, unless you "outs" allowed you to see all and change all while doing all Apr 06 11:14:57 at whatever pace you want :) Apr 06 11:15:06 yeh not really, involves a lot of rerunning Apr 06 11:15:34 i could imagine Apr 06 11:15:48 I would have to kill myself if I did that Apr 06 11:15:57 ive tried for weeks to work debuggers out Apr 06 11:16:05 and probably everyone around me in a 5 mile radius Apr 06 11:16:09 never really seen any purpose Apr 06 11:16:32 gaz`: then I think you have missed a rather huge part Apr 06 11:16:34 :) Apr 06 11:16:42 hehe Apr 06 11:16:44 maybe Apr 06 11:17:11 hmm Apr 06 11:17:18 i dont know how the hell to fix this Apr 06 11:17:24 my code was working perfectly like 10 mins ago Apr 06 11:17:33 and i havent changed anything in that area Apr 06 11:17:49 erm, 1 way would be to learn about debugging with a debugger Apr 06 11:17:51 :) Apr 06 11:17:58 using it right now Apr 06 11:18:02 useless as proedicted Apr 06 11:18:03 :) Apr 06 11:18:17 I think you missed the "learn" bit Apr 06 11:20:13 hmm Apr 06 11:20:16 this is super weird Apr 06 11:20:56 StingRay_ when my code stops the debugger wont tell me where tho Apr 06 11:21:15 erm Apr 06 11:21:34 you really need to learn how to use debugger Apr 06 11:21:39 oh jesus wept Apr 06 11:21:55 well only if you cant find out whats wrong Apr 06 11:22:02 if you can without Apr 06 11:22:05 then no need Apr 06 11:22:08 i can Apr 06 11:22:13 this is not something ive ever seen Apr 06 11:22:15 very weird Apr 06 11:22:22 you keep saying Apr 06 11:23:37 mind u i see lots of while(running) shit in here Apr 06 11:25:06 Hi all. I'm looking for some guidance compiling and running some native code in my app. Is anyone available for a bit of a walkthrough (I'm anticipating 5 - 10 mins) Apr 06 11:29:25 what is the android equivalent to a panel form java swing? Apr 06 11:29:25 i basically have a button and every time i press it i want to let a new panel appear (containing a background image and a little bit of information) Apr 06 11:30:14 right now i'm adding a normal button every time, but i want to add a customizable "space" Apr 06 11:30:53 elfancy: that sounds pretty much like you want a gridview or listview, if every item looks similiar to each other. Adding panels would also be in swing a pretty worse approach Apr 06 11:31:13 http://developer.android.com/guide/topics/ui/layout/listview.html Apr 06 11:31:18 http://developer.android.com/guide/topics/ui/layout/gridview.html Apr 06 11:31:50 timroes: yes the main is a linearlayout and i want to fill it with my own views containig other views Apr 06 11:31:50 lol StingRay_, found it, using debugger :) other coder added an infinite loop! Apr 06 11:32:21 yeah use a list view if you want it only one of your new views per row or gridview otherwise Apr 06 11:33:53 can i describe the item-layout of the list entries via xml? Apr 06 11:34:00 yeah Apr 06 11:34:07 "how" do I make sure my application runs well on all screen size? Apr 06 11:34:25 you will just extend BaseAdapter and implement your own getView method, which will use layout inflater to fill each item from an xml file Apr 06 11:35:42 thanks for pointing me in the direction, i'll try to figure it out now :) Apr 06 11:37:19 Abhijit d.android.com has a big article on that Apr 06 11:37:50 if you download samples from the sdk manager, you will find a sample in /samples/android-XX/ApiDemos/src/com/example/android/apis/view/List14.java Apr 06 11:38:09 showing an example of how to extend BaseAdapter. Apr 06 11:38:55 ok, thanks. i remember that i did this once almost 2 years ago -.- Apr 06 11:40:42 ok Apr 06 11:41:15 hi Apr 06 11:41:54 i have an app that uses a gps and do calculations , and i want to show to my UI each second the values Apr 06 11:42:05 which type of service is the bst choise? Apr 06 11:42:38 hi guys, when i start activity b from inside activity a, and i do activity b . finish(), is there any way i can have some sort of callback in activity a that activity b is finished? Apr 06 11:43:52 this chose is a good option? http://www.websmithing.com/2011/02/01/how-to-update-the-ui-in-an-android-activity-using-data-from-a-background-service/ Apr 06 11:44:41 notmoose simply returning to activity a, is a good inidcation :) Apr 06 11:45:03 i want to update my activity from a background service Apr 06 11:45:41 StingRay_: yes I have done that but when i do startActivity(intent); and then the specific code, the code runs first and then the activity starts ... Apr 06 11:46:18 sorry you lost me Apr 06 11:47:54 StingRay_: see this example: http://pastebin.com/HRZVc053 Apr 06 11:48:29 the restart does not get called b4 Apr 06 11:48:33 it gets called after Apr 06 11:48:37 but I see your point now Apr 06 11:48:56 startActivityForResult(intent,intID) Apr 06 11:49:14 then onActivityResult() Apr 06 11:49:33 restart level or whatever Apr 06 11:50:01 but seems like you should be using a dialog popup for such a thing Apr 06 11:50:23 or maybe just even a view :) Apr 06 11:51:20 can i use different views in the same activity? Apr 06 11:51:46 can do what you want Apr 06 11:52:06 Hi all. I'm looking for some guidance compiling and running some native code in my app. Is anyone available for a bit of a walkthrough? http://stackoverflow.com/questions/15849737/android-ndk-build-not-building-native-library Apr 06 11:54:03 Anyone? Apr 06 11:59:20 so I guess in my app, I use PreferenceFragment if it is available, and PreferenceActivity if it is not? Apr 06 11:59:54 maybe have a static messager in the PreferenceActivity that says 'get a better phone' Apr 06 12:18:51 Anyone out there with a little bit of knowledge on compiling native code with cygwin? Apr 06 12:28:18 great, I've entered preference fragment hell Apr 06 12:34:56 time to give up and just use a fucking PreferenceActivity Apr 06 12:36:39 stork: I'm very confused by android preferences :( Apr 06 12:37:30 they're a mess. Apr 06 12:38:31 I'm close to deciding just to write my own activity for preferences, and manage it manually Apr 06 12:39:40 I might go down the same route myself Apr 06 12:42:50 grrr Apr 06 12:43:03 it seems like it should be so simple Apr 06 13:32:06 im duke nukem and im coming to get the rest of you alien bas tards Apr 06 13:33:28 hey ladyboys :) Apr 06 13:35:24 Today I wanna learn about JSON do any of you know some secret super nice tutorial/exercise/explanation, my purpose is to learn about updating strings in my app through a webservice Apr 06 13:35:28 and I assume JSON is the way to go Apr 06 13:36:18 "those ailen barstards are gonna pay for shooting up my ride" Apr 06 13:36:34 P3nnyw1se, create methods in your webapp that return json instead of html Apr 06 13:36:37 call those from the phone Apr 06 13:37:06 if you need auth, you're probably best of with api tokens, if your webapp supports those Apr 06 13:37:47 somebody in here who shall rename anonymous Apr 06 13:37:49 'Stingray' Apr 06 13:37:53 told me to learn stuff before using it Apr 06 13:37:59 so I will get to what you said sonofRa Apr 06 13:38:09 but atm. I'm just looking for tutorials and exercises on JSON Apr 06 13:38:41 json is fairly simple. unless you're doing recursive data structures, then it becomes a pita Apr 06 13:38:56 mmm... pita Apr 06 13:39:27 objects Apr 06 13:39:29 50-60 at the time Apr 06 13:40:42 P3nnyw1se: I didnt say learn stuff b4 using it Apr 06 13:40:42 Lists aren't a problem, only thing that is problematic is cyclic graphs and the like. However the newer Jackson versions do have a nice way around this Apr 06 13:41:14 I said read the tutorials rather than ask over and over in here :) but hey ho, do what ya want ;) Apr 06 13:43:11 but you are my tutorial StingRay :D Apr 06 13:44:28 na, I'm just condescending and not helpful, and not a real android dev at that! Apr 06 13:48:57 just like tutorials Apr 06 13:56:17 Question,.. can you use mono-dev w/ C# to code for android apps? if so, what do you use? Eclipse? Apr 06 13:56:53 I use C# with a game engine I dev for, but I was looking for a standard dev app program Apr 06 13:57:23 I know Eclipse can handle Javascript, but I like to keep all languages I code for the same Apr 06 14:04:23 Novus, eclipse probably handles C# too Apr 06 14:05:49 I think the important part was, can you use mono-dev on Android Apr 06 14:05:57 heh Apr 06 14:06:14 I believe the answer is yes, but you have to pay for it. Apr 06 14:06:22 if his game engine handles C# and works on android Apr 06 14:07:18 Unity and a few other engines/SDKs allow you to target android, but I don't think any of them are free for mobile export. I may be wrong. Apr 06 14:08:07 Well,. I use unity for gaming already,.. but I'd rather not use a game engine for a simple app that needs to be made, lol. Seems like an over kill Apr 06 14:08:28 then use java... Apr 06 14:08:53 yeah if it's simple, use java. mono is going to have big overhead. Apr 06 14:24:27 guys let me ask you something.. how would you handle this Apr 06 14:25:26 you have an app.. that holds a list of lets say 70-80 "light" objects.. 3-4 string values, a date and an int each object. Apr 06 14:25:45 you get the updated list everyday as CSV Apr 06 14:25:52 and then need to push it to the apps Apr 06 14:31:07 efficently as I could Apr 06 14:31:12 you? Apr 06 14:35:28 anyone have any idea how to increase the position of a Notification in ICS. have a control notification that I would like to be the first notification. Apr 06 14:37:14 wouldnt image you can Apr 06 14:37:25 unless there is some manage notification permissions Apr 06 14:37:31 but that would be bad if you could do that Apr 06 14:38:54 priority does it in JB, no such luck with ICS Apr 06 14:39:00 looking at when now Apr 06 14:39:17 oh thats in jb ? Apr 06 14:39:18 may be able to "encourage" the behavior I want Apr 06 14:39:21 jeesus Apr 06 14:39:29 thats open to abuse Apr 06 14:39:34 * StingRay_ not likey that Apr 06 14:45:17 is it possible to encode video in ndk? Apr 06 14:53:11 If you ever need to change the order of a notification looks like you can update when to push it higher Apr 06 14:54:27 cbates, is it for me? Apr 06 14:54:47 no, sorry an earlier conversation with StingRay Apr 06 14:54:57 cbates, ok, np Apr 06 14:55:10 no ideas on your question Apr 06 14:55:19 hm.. Apr 06 14:58:10 mornin Apr 06 15:00:26 its 17.00 where I'm at Apr 06 15:00:38 What's the best way to show some text as blackquote? I don't really want to use a WebView only for that Apr 06 15:01:26 P3nnyw1se, 11 here Apr 06 15:06:25 hm Apr 06 15:06:27 eastcoast ? Apr 06 15:13:11 P3nnyw1se, yep Apr 06 15:32:52 anyone know if you can set the default size of a widget to be higher then min? Having a problem with Galaxy S2 ICS default launch. Apr 06 15:33:17 Looks like they didn't implement resize in the default launcher. so all of the widgets show up at min size. Apr 06 15:35:08 I'm having a problem replacing fragments.. on create I set up my contentView which is an FrameLayout.. then I start a FragmentTransaction to replace passing the id of the FrameLayout all is well here.. Then later I want to replace with a nother fragment.. so I call FragmentTransaction.replace(id_of_frame_layout,newFragment) but nothing happens Apr 06 15:35:19 the view just freezes.. no errors thrown.. nothing in logcat Apr 06 15:45:18 xastey: I take you your commiting and that the fragments are dynamic rather than xml ? Apr 06 15:45:54 thats correct StingRay_ Apr 06 15:46:27 when onCreate is called I start a transaction and to t.replace(id_of_frame_layout,firstFragment) Apr 06 15:46:35 then later one I do the same thing but with the new fragment Apr 06 15:47:13 I should mention that I'm using sherlock if that matters Apr 06 15:48:03 never used that, but cant image it makes that much of a difference Apr 06 15:48:27 also HoloEverywere Apr 06 15:48:33 i wish soundcloud had an api channel, any1 know where those guys hang out? Apr 06 15:48:37 you say you are replacing on the 1st transaction ? Apr 06 15:48:48 I just switched my activity to the native FragementActivity.. going to test Apr 06 15:48:54 thats correct StingRay_ Apr 06 15:49:01 replacing what ? Apr 06 15:49:10 let me get you some code Apr 06 15:49:42 should you not be .add"ing" the 1st time ? Apr 06 15:49:43 :) Apr 06 15:49:53 check this out http://pastebin.com/qHAd6Aiu Apr 06 15:50:11 maybe thats why .. first time working with fragments Apr 06 15:51:04 yo guys, I am getting a weird error with this source I just brought into IntelliJ - illegal character: \65279 Apr 06 15:51:13 seems to be related to UTF8, any thoughts? Apr 06 15:51:26 a character outside BMP and Java barfs? Apr 06 15:52:46 p_l: seems like there is a byte order mark in this source. Has something to do with 1.6 not understanding utf-8 or something Apr 06 15:52:56 i am copy and pasting seeing if I recreate the file it goes away Apr 06 15:53:16 yeah, looks like if I copy the source and recreate the file it goes away Apr 06 15:53:46 is there a different javac that should be used when compiling for 4.2? Apr 06 15:54:00 ok so StingRay_ something like this http://pastebin.com/9dphVGJE Apr 06 15:54:48 xximjasonxx: byte order marks stink Apr 06 15:55:51 p_l: I am just wondering why this example has it. Do you know if we should be using javac > 1.6 for 4.2 Android? Apr 06 15:56:15 no idea Apr 06 15:56:18 * p_l uses jdk8 Apr 06 15:56:22 xastey: looks ok, not sure you need the tag reference if you hold an instance to the frag Apr 06 15:56:32 but should work either way I think Apr 06 15:56:42 ok trying it out.. wonder why all examples I've seen used .replace to add the first one Apr 06 15:56:58 just to be sure.. I want to replace the first fragment I added with another Apr 06 15:58:32 Hi. my android emulator sometimes loads with a previous instance of install and sometimes it loads with a newer instance. how do I make it stick to one Apr 06 16:00:29 I hate the fact that I forget all the cool ideas I have seen and then when I think of them I think they are my own Apr 06 16:00:51 'hmm what if I did an app.. where you had to go through a puzzle.. and you could just draw anything you wanted free hand.. like draw a plane and you got a plane' Apr 06 16:01:00 forgot I had been reading about a game like that 2 days before Apr 06 16:01:42 what. Apr 06 16:03:04 StingRay_ no that didn't work Apr 06 16:03:09 does anyone have any thoughts on this Google Cloud Messaging? Apr 06 16:03:23 xximjasonxx: seems cool Apr 06 16:03:30 that was a thought I had :) Apr 06 16:03:42 apparently they already have integration with it for Azure Mobile Services Apr 06 16:03:49 I did .add then .replace and the first fragment I added is still there.. but "frozen" Apr 06 16:03:56 the first fragment is a ListFragment Apr 06 16:04:07 most of the other services used the old running service in the background, seems like this might be an improvement Apr 06 16:04:25 hiii Apr 06 16:04:33 go away :) Apr 06 16:04:38 how can i update the UI from a service? Apr 06 16:04:44 need the context Apr 06 16:05:01 xximjasonxx the context? Apr 06 16:05:08 or an intent Apr 06 16:05:21 have the service raise an intent which the activity is listening for Apr 06 16:05:25 receives the intent, unpacks it Apr 06 16:05:27 makes the update Apr 06 16:05:28 joker_89: bind to it ? broadcast ? interface ? callback ? Messenger ? Apr 06 16:05:37 i have a service that get locations in gps and do calculations, and every second update my UI Apr 06 16:05:57 is it possible to encode video in ndk? Apr 06 16:05:58 StingRay_ i read about bind and broadcast, but i dont know which is the best way Apr 06 16:06:16 best is what you know, feel good with and can maintain Apr 06 16:06:18 because i need to update about 10 textView of information of my service Apr 06 16:06:31 joker_89: don't update the view from the service Apr 06 16:06:31 and i need to comunicate each second Apr 06 16:06:39 android has a host of mechanisms for handling this Apr 06 16:06:55 intents are perhaps the most straightforward way Apr 06 16:07:15 is this a good way xximjasonxx ? http://www.websmithing.com/2011/02/01/how-to-update-the-ui-in-an-android-activity-using-data-from-a-background-service/ Apr 06 16:07:51 yup Apr 06 16:07:54 broadcast the intent Apr 06 16:08:00 you activity should be listening for it Apr 06 16:08:14 like the example ? Apr 06 16:08:20 close Apr 06 16:08:28 close? Apr 06 16:08:42 i am assuming the activity is running when you want to make these updates Apr 06 16:08:49 otherwise the services can broadcast all you like Apr 06 16:09:11 i think the example is fine Apr 06 16:09:14 yes but if the users close the application the service goes Apr 06 16:09:26 and if reopen the app, then continues Apr 06 16:09:48 the service is catching gps postions and doing calculations Apr 06 16:10:03 and i want the UI for show the results at real time Apr 06 16:10:16 now i have a thread but is not what i need Apr 06 16:10:19 i think that example will work Apr 06 16:10:31 ok thanks! i go to try Apr 06 16:11:17 think i will play Halo for an hour while the SDK updates Apr 06 16:11:55 WTF.. even calling t.remove(oldFragment) doesn't update the view Apr 06 16:11:58 what the FUCK Apr 06 16:12:33 i factory reset my nexus 4 this morning, and now it's not showing up in ADB/DDMS. I've turned on USB debugging on the device and it's got the entry in the notification tray but all ADB commands just say "Device not found", any idea what i'm doing wrong? Apr 06 16:12:53 adb restart ? Apr 06 16:13:36 i've rebooted both the device and the computer since then, and no dice. also there doesn't appear to be an adb restart command Apr 06 16:19:37 is it possible to encode video in ndk? Apr 06 16:20:57 Stew-a: Did you allow the computer to connect? Apr 06 16:21:17 http://stackoverflow.com/a/15031663 Apr 06 16:21:40 kakazza: the dialog did not appear Apr 06 16:21:48 Stew-a: update adb Apr 06 16:21:56 just in case ;) Apr 06 16:22:10 Stew-a: just kill adb.exe in process manager Apr 06 16:22:17 p_l: I never think of that. I always assume people keep their software up to date :\ Apr 06 16:22:20 sometimes there is more than one Apr 06 16:22:51 p_l: i'll give it a try, i think it is already, but the SDK manager and I have a hate/hate relationship Apr 06 16:23:05 p_l: Were you the one having an interview at Google? Apr 06 16:23:42 namely that i can never get the bloody thing to behave Apr 06 16:24:00 Show him that you're the alpha male. Apr 06 16:28:37 Stew-a: Any success? Apr 06 16:28:50 still updating Apr 06 16:29:08 udpating the sdk broke the sdk manager again Apr 06 16:29:33 woho Apr 06 16:33:57 anyone know why when I try to replace a fragment the new one doesn't show and the previous one is in a frozen state, like it took a screen snapshot of the fragment Apr 06 16:34:17 I just debug step through the whole FragmentTransaction.commit code.. and all looked good from what I can see Apr 06 16:39:28 kakazza: ok, updated sdk tools and platform tools to latest version, still no dice Apr 06 16:39:33 xastey: pastebin the whole thing Apr 06 16:41:35 You're on 4.2.2 Stew-a? Apr 06 16:41:54 kakazza: affirmative Apr 06 16:42:55 Does adb devices say that your device is offline or does it not even detect it? Apr 06 16:43:06 not detected Apr 06 16:43:33 StingRay_ http://pastebin.com/Njh5watm Apr 06 16:44:41 That's weird indeed. The device does not show anything either? Apr 06 16:45:03 Ah, you said it shows the connection. Apr 06 16:45:05 the device shows the USB debugging notification in the notification tray, but otherwise nothing Apr 06 16:45:12 o that was for you StingRay_ Apr 06 16:45:24 eh dont forgot I though to mention your nick.. my bad Apr 06 16:45:25 Weird. Not sure what could be wrong. Apr 06 16:45:47 well, thanks for trying anyway Apr 06 16:46:48 I am looking for some inspiration for creating a launcher activity with instructions. Any idea which application does that? It's only for displaying it the first time Apr 06 16:48:04 xastey: swap the order of the fragments Apr 06 16:48:10 I have a theory Apr 06 16:48:27 sec Apr 06 16:51:33 have to tweak my app a bit Apr 06 16:52:16 well hot damn Apr 06 16:52:21 view doesn't show up Apr 06 16:52:22 lol Apr 06 16:52:28 there ya go Apr 06 16:52:29 just black Apr 06 16:52:32 hehe Apr 06 16:52:33 not balck Apr 06 16:52:35 black Apr 06 16:52:38 transparent Apr 06 16:52:40 were the hell is my view Apr 06 16:52:52 wonder why Apr 06 16:52:53 hence why you thought it was not replaced Apr 06 16:53:04 dam I feel like a detective :) Apr 06 16:53:10 holmes Apr 06 16:53:12 :) Apr 06 16:53:14 lol Apr 06 16:53:18 http://pastebin.com/qyasBXmR Apr 06 16:53:25 so what.. just give it an background StingRay_ ? Apr 06 16:54:27 o wait Apr 06 16:54:32 I'm just using Fragment Apr 06 16:54:43 public class ProfileFragement extends Fragment Apr 06 16:54:47 thats ok right? Apr 06 16:54:52 ya Apr 06 16:54:53 the other was a ListFragment Apr 06 16:54:55 cool Apr 06 16:54:55 ahh the horror and issues Apr 06 16:54:57 with viewPager Apr 06 16:54:58 grr Apr 06 16:55:05 so let me add a background Apr 06 16:55:14 why the horror P3nnyw1se? Apr 06 16:55:37 kakazza: found the problem, somehow the factory reset caused my computer to lose the driver :S Apr 06 16:55:57 xastey: just do View v = new View(getActivity()); v.setBacgroundColor(Color.RED); return v ; in your onCreateView in the frag Apr 06 16:56:04 well hot damn Apr 06 16:56:07 there goes my background Apr 06 16:56:11 ahh well in short xastery.. in portrait mode I have a viewPager displaying 5 fragments at a time.. in landscape I still display the 5 fragmenst but controll with buttons not viewPager Apr 06 16:56:12 well fuck me Apr 06 16:56:17 StingRay_ thanks man Apr 06 16:56:20 and I can't .. get my hands on the viewPager fragment objects.. Apr 06 16:56:42 so result.. I have 5x1 fragments for potrait.. and 5x1 for landscape Apr 06 16:56:44 not the same 5.. Apr 06 16:56:54 xastey: gotta go now, shattered, good luck Apr 06 17:00:07 well he was helpful .. was really pissing me off why this wasn't working Apr 06 17:00:24 now I can send this preview to the client and enjoy the rest of my day Apr 06 17:02:16 interesting https://github.com/playscript/playscript-mono#readme Apr 06 17:13:43 what should I read about tonight Apr 06 17:13:53 pretend you are 7 months into java coding and 4 weeks into Android coding Apr 06 17:13:58 what should be my big subject tonight Apr 06 17:15:27 umm.. reflection :D Apr 06 17:15:54 mkay Apr 06 17:16:11 was joking Apr 06 17:16:16 what do you understand so far Apr 06 17:16:36 how about making a custom widget? Apr 06 17:16:37 what means The method runOnUiThread(new Runnable(){}) is undefined for the type myService Apr 06 17:16:52 its not in your service Apr 06 17:17:05 thats only on Activity Apr 06 17:17:33 ehm.. well I think I've understood the concept of views, viewgroups, fragments, activities, the xml .vs java connection .. the res folder.. the buttons, widgets etc. Apr 06 17:17:39 joker_89 do Handler handler = new Handler(Looper.getMainLooper()); then handler.post(new Runnable()) Apr 06 17:17:58 thats pretty much everything I would think Apr 06 17:18:01 make a custom widget Apr 06 17:18:33 ok.. I was kinda wanting to learn about sending e-mails or MMS or SMS through an app Apr 06 17:18:46 but I can't seem to find really good tutorials with exercises.. exercises is what works for me Apr 06 17:18:54 well is necesary to us a runnalble if my services is called from some other class? Apr 06 17:21:24 no I wanna learn about doing motion finger detection stuff Apr 06 17:21:32 so like you can draw lines on the screen Apr 06 17:22:08 gestures? Apr 06 17:22:39 sure :P Apr 06 17:22:44 is that the name Apr 06 17:22:45 then yes Apr 06 17:23:15 I think that's the right term Apr 06 17:24:15 I wanna do a game its not really tron.. its like eRix do you know that name ? Apr 06 17:24:23 you kinda 'bite off' more and more off the screen Apr 06 17:24:32 creating an images.. then when you get like 80% of the screen Apr 06 17:24:33 you win Apr 06 17:24:54 qix Apr 06 17:25:02 is the original Apr 06 17:25:11 ahhh.. well I wanna do that multiplayer Apr 06 17:25:14 so you compete with another person Apr 06 17:25:17 who gets 50% first :) Apr 06 17:25:37 probably not that easy though as an app Apr 06 17:25:41 to do live interaction Apr 06 17:25:47 http://en.wikipedia.org/wiki/Qix Apr 06 17:26:15 thats it Apr 06 17:26:17 always liked that game Apr 06 17:26:26 I'm guessing it would be frustrating because your finger would be obscuring the play area Apr 06 17:26:49 well the multiplahyer should ofc be networked Apr 06 17:26:51 yeah I remember playing that on a commodore 64 with a joystick back in the 80s. it was fun. Apr 06 17:26:53 so you only use one monitor each Apr 06 17:27:18 from september -> december I'm doing 'something' as a project at the school Apr 06 17:27:22 I was thinking about making a game Apr 06 17:27:25 maybe a bit out of my league Apr 06 17:27:28 but well I could try :) Apr 06 17:30:21 would prefer to be original in my game but hey :P.. .thats not easy Apr 06 17:31:56 hi Apr 06 17:41:24 hello? Apr 06 17:41:40 you waiting for someone ? Apr 06 17:41:50 is there anyone out there who's had any experiance with fragments and sqlite? Apr 06 17:42:07 im quite new to android dev Apr 06 17:43:47 just ask your questions Apr 06 17:43:49 and im just playing about with fragments, basically what I have a to do list app which has a new tab and a list tab. However in order to add content to the database, finish is used when the confirm button is pressed in the new tab. This closes the activity. Would it be better to have the new tab open a new activity to make this work? Apr 06 17:44:10 *it closes the activity and the application Apr 06 17:46:44 how can I add items to my listview Apr 06 17:49:40 i think you need to use an array adapter to add things or use something like sqlite Apr 06 17:50:16 have a look at some tutorials on it, vogella seems to have some good ones and im sure theres some good ones on android developers Apr 06 18:02:02 hmm... xcode is now free + available for anybody at the appstore? Apr 06 18:04:03 been like that for ages? Apr 06 18:04:32 afaik 4.5 was for monay only and an ADC for $99 was required Apr 06 18:04:39 4.6.1 is available for free Apr 06 18:04:52 idunno though i have it installed but dont use it Apr 06 18:04:55 3.x was free - 4.x changed Apr 06 18:05:23 you still need an ADC for liberating access to your iDevices Apr 06 18:05:53 xcode has always been free Apr 06 18:17:17 how does this app game sound.. planes in the air.. using gestures you have to control how they drop bombs, you are supposed to hit specific targets on the ground.. Apr 06 18:17:23 as the levels progress you have controll more planes at the same time Apr 06 18:17:34 and have to avoid enemy air troops by changing flying direction Apr 06 18:19:26 why is a bitmap cropped when set as a LargeIcon in a notification? Apr 06 18:28:31 hi, can somebody tell me how to use the route command on adb shell? i tried "route", "route -h" and "route --help", but all says "invalid argument" Apr 06 18:29:14 its cyanogenmod-7.2.0 if this is relevant Apr 06 18:29:44 Stummi: try #cyanogenmod Apr 06 18:30:07 Is there anyway I can speed up eclipse? Its slow as hell. Apr 06 18:30:18 yeah, better hardware *cover* Apr 06 18:30:47 agy2154: well, there are some tuning options - but my machine is old and its fine. i used the slimmest version though without plugins Apr 06 18:30:49 have you given it more memory via tweaking eclipse.ini Apr 06 18:31:18 I have pretty good hardware. I don't have any plugins either. Plus my project is small and whener I rebuild after saving it takes minutes. Apr 06 18:31:21 (also, this is an #eclipse question. Join there and ask them why their software is slow, they'll love it) Apr 06 18:31:40 agy2154: minutes? thats wrong. dunno Apr 06 18:32:33 g00s, yeah it gets annoying especially since my project isn't that big. stork thanks, I never knew they have channel. Looks like everyone has a channel these days. Apr 06 18:32:42 switch to vi Apr 06 18:32:48 welcome to freenode (: Apr 06 18:47:02 i have built a robot, with a camera on it's head. The whole thing is controlled by an android application, in which video plays in the background (the RTSP stream from that camera). I have used vitamio libraries with ffmpeg, but i get 7seconds delay which is unacceptable. Even if i set "mVideoView.setBufferSize(0); and mVideoView.setVideoQuality(MediaPlayer.VIDEOQUALITY_LOW);" nothing Apr 06 18:47:02 changes and i debug i get info "[udp @ 0x4dc0c1c0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)". Could anyone help me with getting rid of that delay ? maybe compile libffmpeg.so with -enable-pthreads with http://github.com/yixia/FFmpeg-Android ? Apr 06 18:49:32 slate5555: you may have better luck posting to google groups Apr 06 18:56:21 i'm lol'ing at all this h-1b debate Apr 06 18:56:35 the one thing everyone seems to be overlooking is that maybe foreign workers do have higher skill that americans Apr 06 18:57:14 canadiancow: since i am not from 'merica is that debate about "*wine* all the foreigners taking away our jobs" ? Apr 06 18:57:16 canadiancow: where i worked last, it was totally abused. Apr 06 18:57:23 yes timroes Apr 06 18:57:32 i want to punch that kind of ppl in the face Apr 06 18:57:33 very hard Apr 06 18:57:43 well from what im reading, there are a lot of consulting firms bringing in foreign workers to train them, then sending them back overseas Apr 06 18:57:45 not foreigners take away your jobs, ppl doing the job better then you taking it away from you Apr 06 18:57:53 but the high-tech companies are just hiring the best people Apr 06 18:57:57 or ppl doing it cheaper, but in that case you anyway wouldn't want to work for that company Apr 06 18:57:59 and the best doesnt necessarily mean "american" Apr 06 18:58:10 rarely means ;) Apr 06 18:58:23 i work with a lot of very capable americans Apr 06 18:58:54 i jsut get the impression that people feel that because they graduated with a degree from a US college/university, that they think they're better than everyone else Apr 06 18:58:59 so if someone else gets a job, it's wrong Apr 06 18:59:15 yeah we have also lots of stupid ppl here thinking that way Apr 06 18:59:33 beeing emplyless and putting fault to anyone else, except their own stupidness Apr 06 18:59:44 at the last company i was at, the indian outsources (one of the largest) would negotiate a project bid on condition that they could place workers in the US (on that project). it was typically a mixture of 90% noobs to 10% experienced (the experienced mentored the noobs) Apr 06 19:00:41 in other words, they were just giving us noobs and we were paying for their training Apr 06 19:00:58 might be that your last company wasn't very willed to pay talented ppl Apr 06 19:01:10 that too Apr 06 19:01:15 because i know you can hire the last crap from india (and any other country) Apr 06 19:01:16 it's good that you trained noobs Apr 06 19:01:18 if you dont, who will? Apr 06 19:01:22 but you can also hire very talented ppl (from any country) Apr 06 19:01:34 india has talented people too Apr 06 19:01:46 people are just surprised when they dont cost $5/hr Apr 06 19:01:51 i guess that kind of companies i hate the same like the wining employless ppl Apr 06 19:02:14 yeah thats the point. oh i heared i can outsource to india for $5/hr. what these kind of ppl are noobs? Apr 06 19:02:21 conclusion: all indian are noobs Apr 06 19:02:39 ofc in america you would get very talented ppl doing the job for $5... Apr 06 19:03:03 kaneda^: its not sustainable that experts /only/ train noobs. they have to keep learning too. that was the problem, the "experts" were losing their skills. i was lucky though, i got the source code back from offshore and set up build environments so i could work on it. i replaced 2 offshore teams Apr 06 19:03:05 * P3nnyw1se slaps timroes around a bit with a large trout Apr 06 19:03:22 is that what you were told in school ? ;) Apr 06 19:03:29 now that i think about it Apr 06 19:03:33 i've never worked with a dumb american Apr 06 19:03:42 plenty of dumb canadians though :P Apr 06 19:03:42 g00s, it does sound untennable if that's all you spend your time doing Apr 06 19:03:55 you ever worked with an american, that got payed $5 an hour for the same job you would expect an indian to be good at? Apr 06 19:03:58 g00s, but i think there should be a healthy balance, you have to train the good programmers of tomorrow if you want there to be good programmers tomorrow ;) Apr 06 19:04:03 canadiancow, moooooooooooooo Apr 06 19:04:18 but a "good programmer of tomorrow" can't be an idiot today Apr 06 19:04:25 kaneda^: yeah, but the people that set up the master "SLAs" are CxOs and dont even understand how programmers work :P Apr 06 19:04:38 i think the attitude towards IT is shifting Apr 06 19:04:46 g00s, there's a huge a disconnect in general, and i think that's changing Apr 06 19:04:50 who wrote that articl a while back that said it was irrelevant, in HBR ? Apr 06 19:04:58 *IT Apr 06 19:05:11 :| Apr 06 19:05:24 anyhow, nowadays, if you are a company you probably ARE a tech company - tech is becoming more and more part of the secret sauce Apr 06 19:05:43 yah, and i've been places recently where even the CEO used to write code Apr 06 19:05:55 the disconnect is rather small at places like this Apr 06 19:06:09 g00s, i'd disagree on that Apr 06 19:06:22 i have worked as an employee of some large non-tech companies, as a developer Apr 06 19:06:24 kaneda^: here is the article http://www.nicholasgcarr.com/articles/matter.html Apr 06 19:06:30 and i've worked as a consultant for those companies Apr 06 19:06:37 just because you do tech doesn't make you a tech company Apr 06 19:07:01 canadiancow: yes, but the world is becoming more automated. software is "eating the world". its becoming more and more a differentiator Apr 06 19:07:10 canadiancow, that's true, and it's true of my current company Apr 06 19:07:15 software is replacing regular knowledge work Apr 06 19:07:17 we do tech, but only a handful of people are technical Apr 06 19:07:55 soon i really thing its (1) machines help you do your job or (2) machines tell you what to do Apr 06 19:08:01 i guess amazon is a good example of this Apr 06 19:08:07 g00s, the article is from 2003 Apr 06 19:08:22 people used to be directed by the system on where to go. know they are being replaced by Kiva Apr 06 19:08:39 kaneda^: yea, its old. he is arguing that IT is a commodity and anyone can do it Apr 06 19:08:48 its plumbing, like elctricity Apr 06 19:08:58 g00s, it is, and like plumbing it requires a particular skill set Apr 06 19:09:05 thats his argument - not saying i agree Apr 06 19:09:06 you wouldnt do your own plumbing, why would you do your own IT Apr 06 19:10:22 plumbing is not a differentiator Apr 06 19:10:37 i mean, unless the toilets dont work Apr 06 19:10:54 your staff may have issues then :D Apr 06 19:11:02 g00s, not really, pipes need to be maintained, replaced, there's boilers, there's specific equipment and restrictions and laws Apr 06 19:11:18 and IT comes with a fair number more complexities Apr 06 19:11:32 we should differentiate between IT and technology in general Apr 06 19:11:59 i may have made that mistake earlier up. setting up servers is definitely not what i'm talking about. sysadmin stuff Apr 06 19:12:11 unless you are google Apr 06 19:12:33 then of course, its secret sauce, and they build their own boxes from scratch Apr 06 19:12:42 g00s, i'm the IT department, the only sys admin, the only dba, the only a lot of things Apr 06 19:12:56 kaneda^: you are in danger :) Apr 06 19:13:08 g00s, how so? Apr 06 19:13:20 im using ((TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE)).getLine1Number() to get my android's phone number but it just returns an empty string. any idea why? Apr 06 19:13:45 if thats all you do. you are a cost center. the point i'm making is - does your business see you as a cost center of a strategic investment Apr 06 19:14:20 g00s, i do three peoples' jobs Apr 06 19:14:23 i'm a ridiculous cost savings Apr 06 19:14:41 but your a human. you require health care Apr 06 19:14:50 a system can be self healing Apr 06 19:14:51 g00s, nope Apr 06 19:15:08 we dont have any additional healthcare Apr 06 19:15:08 (eventually, to a greater degree) Apr 06 19:15:22 kaneda^: but you are also a developer, presumably why you are here ? Apr 06 19:15:32 g00s, yep, and not just android, also python Apr 06 19:15:40 and c/c++ for the last 6 months Apr 06 19:15:43 thats good Apr 06 19:15:54 so yah, i support service, product, and infrastructure Apr 06 19:16:05 and i do it without healthcare Apr 06 19:16:33 huge cost savings for them Apr 06 19:16:44 i recommend this book. we're getting into different facets of a complex argument. http://www.amazon.com/Race-Against-The-Machine-ebook/dp/B005WTR4ZI Apr 06 19:17:09 it is frustrating though, in that no solution is offered. its pretty pessimistic, just like me :/ Apr 06 19:17:24 g00s, only $5 on kindle :D Apr 06 19:17:42 g00s, and i dont see what the problem is, you want the cake but you dont want to buy the oven? Apr 06 19:18:07 hm? Apr 06 19:18:08 when your car breaks down, do you fix it? when your pipes break, do you patch them? Apr 06 19:18:26 soon nobody will. a machine may fly over to you Apr 06 19:18:30 :D Apr 06 19:18:33 that would be ideal Apr 06 19:18:41 machine may deliver your pizza Apr 06 19:18:52 self driving care, drone, whatever Apr 06 19:19:17 so be high up the food chain. build systems, or build systems that build systems. taking care of systems is not up the food chain for long Apr 06 19:19:32 g00s, someone has to maintain the drones, self driving car, etc Apr 06 19:19:46 other drones Apr 06 19:19:49 :D Apr 06 19:19:52 i wouldn't worry too much about being replaced by drones in our lifetime :p Apr 06 19:20:13 agreed Apr 06 19:20:35 oh, for some occupations is already happening. but for software development, not yet Apr 06 19:20:46 I want to work for Norththrup grumman or lockheed Apr 06 19:20:54 i was reading about a drone that inspected wind turbines Apr 06 19:21:00 agy2154, lockheed has an excellent security team, from what i hear Apr 06 19:22:10 kaneda^, Yeah but I dought that i will work there. I'm not getting the hang of stuff easily. Im learning about adapters now and its killing me. Im sure once I get to know it thought I might understand them better. I wish I can learn faster. Im investing in a lot of time trying to learn. Apr 06 19:22:19 Next thing on my list would be JSON Apr 06 19:22:27 which I don't know crap about Apr 06 19:22:28 agy2154: my friend works for Lockheed. if you want to spend a week getting permission to edit a file, go for it Apr 06 19:22:32 agy2154, lockheed doesnt develop android apps, just to be clear Apr 06 19:22:51 you might want to focus on something closer to home for them, like embedded systems programming Apr 06 19:23:24 kaneda^, haha yeah thats true. But if I learn how to make android apps that owuld help me in the future. I like android apps because its something I can relate to. Apr 06 19:23:38 agy2154: you can do embedded linux too Apr 06 19:23:55 g00s, now dont confuse him into thinking android is actually linux ;) Apr 06 19:23:56 g00s, My friend works high up in IBM. He stays up till 3 to video conference with clients in china.His job is telecommuniicate Apr 06 19:24:12 g00s, I don't know what you mean by "embedded linux" Apr 06 19:24:13 agy2154, that's kind of cool, weird hours though Apr 06 19:24:20 agy2154, raspberry pi! Apr 06 19:24:50 g00s, lmao the guy from IBM was "impressed with my app" and it was shitty as hell. He said some people he knows that go to college can't make something simillar. that was bull s. Apr 06 19:25:12 kaneda^, yeah but is there an api that I can use or is it like totaly diffrent? Apr 06 19:25:39 agy2154, erm, it's just linux with a limited set of libs, essentially Apr 06 19:25:47 the arch might be MIPs, for instance, or ARM Apr 06 19:27:09 kaneda^, so how does the code look like. Is it like an objective language? Apr 06 19:27:26 agy2154, embedded linux usually runs a JVM, it has libc, etc Apr 06 19:27:34 so your question doesnt make a lot of sense Apr 06 19:28:17 kaneda^, Ohh I never knew that. Apr 06 19:28:29 kaneda^: you remember that discussion :) i remembered this http://cdn.arstechnica.net/android-dev/android_not_linux.png Apr 06 19:28:39 and it stuck in my head Apr 06 19:29:11 quick question: why does Google call it Chrome OS, and not Google Linux ? Apr 06 19:29:13 g00s, yep Apr 06 19:29:32 probably because it's built around network connectivity Apr 06 19:29:59 i think that "Linux" scares people, and the the brand has a reputation problem Apr 06 19:29:59 hey do people still use sprites for like game animations for like phones ? Apr 06 19:30:16 when i hear sprites, i think commodore 64 Apr 06 19:30:19 P3nnyw1se, yes Apr 06 19:30:28 isn't chrome os quite far removed from linux Apr 06 19:30:37 g00s, i'm a linux person, generally Apr 06 19:30:44 stork, yah, chrome os != linux Apr 06 19:30:53 kaneda^: me too, generally. i f it had Adobe stuff i would still be using it Apr 06 19:30:57 kaneda I've never tried working with sprites.. on a scale of 'just installed eclipse' to 'android contributor' Apr 06 19:31:04 how hard would it be to make a simple game with sprites.. very simple game Apr 06 19:31:27 g00s, i'm waiting for software vendors to get a handle on the different flavors and actually produce software for linux Apr 06 19:31:36 P3nnyw1se, check out unity3d Apr 06 19:31:48 P3nnyw1se, you need to buy the android license to export to android but it's fairly straight forward Apr 06 19:31:50 What can I use a developer board for the runs an embedded JVM Apr 06 19:31:56 P3nnyw1se, it comes with mono and you develop in c# Apr 06 19:32:04 kaneda^: i remember the misery Adobe had trying to get flash running on linux; it will be tough i think Apr 06 19:32:11 agy2154, all sorts of stuff, the sky's the limit Apr 06 19:32:17 g00s, well, flash is dead Apr 06 19:32:34 ahhh kaneda.. I was kinda hoping you could point me towards something that uses Java maybe ? Apr 06 19:32:38 i have a problem, i have a service that is added to some instances, and then these instances call to the methods of my service to update the information. I need a thread for do this? Apr 06 19:32:43 I dont really have any C# experience Apr 06 19:33:00 P3nnyw1se, honestly it's not very much different Apr 06 19:33:00 kaneda^, Can you think of any real life application Apr 06 19:33:23 agy2154, i can think of hundreds, just pick one that interests you Apr 06 19:33:32 anyways what we are talking about here.. is programming outside of eclipse no matter what? kaneda? when wanting to make a game Apr 06 19:34:24 agy2154: what are you asking Apr 06 19:34:27 ? Apr 06 19:34:28 P3nnyw1se, there are java platforms for gaming, there's also plenty of c++ frameworks, but i find unity3d to be the fastest way to make android games Apr 06 19:34:38 P3nnyw1se, angry pigs was written entirely in unity3d, for instance Apr 06 19:35:19 What kaneda^ Said Apr 06 19:35:20 okay I see.. hmm.. considering it was my first attempt at this I was still hoping I could do it in java.. Apr 06 19:35:26 but if there is no easy platform for it Apr 06 19:35:33 if you really want to write games your best off using a tool Apr 06 19:35:47 P3nnyw1se, unity3d allows you to export to both android and ios, whcih is nice Apr 06 19:35:51 vs writing your own engine which is hard Apr 06 19:35:56 P3nnyw1se, and it's probably the most used 3d engine for mobile Apr 06 19:36:03 and HTML5 and Flash and Mac , win linux Apr 06 19:36:29 If you want 2D only there are other options besides unity Apr 06 19:36:36 easier ones etc Apr 06 19:36:39 well Apr 06 19:36:43 Hey :) Apr 06 19:36:44 its actually 2d I was thinking about Apr 06 19:37:14 P3nnyw1se, you might want to check out XNA, make a game for your windows phone or xbox or windows pc Apr 06 19:37:20 * kaneda^ waits for the stones to be hurled Apr 06 19:37:20 I have an activity that pops up a dialog, but if I hit the home screen before selecting something and then restarting the app there ends up being two dialogs. Can I kill the dialog onStop even though it was created somewhere else? If I just put dialog.dismiss() in my onStop it can't resolve dialog. Does anyone have any suggestions? Apr 06 19:37:49 here are the preferences in my dream scenario.. 1: 2d, 2: java involved .. 3: works with android Apr 06 19:38:01 Could someone tell me when i should made a new activity and when i should modify the Main one ? What is the best practice ? Apr 06 19:38:07 http://ntt.cc/2011/05/08/8-open-source-android-game-engines.html Apr 06 19:38:34 hetii, activities tend to be separated by views Apr 06 19:38:35 P3nnyw1se: some 2d engines, free etc Apr 06 19:38:38 I'm playing this BattleShip game on Android (Battle Friends at Sea)... and want to see if I can develop something similar but with checkers, backgammon, or something like that. What should I do for the backend? I've never developed a web service or and Android application before. I'm very familiar with Python so I was thinking Google App Engine might be a good place to do the backend. What do you think? Apr 06 19:38:48 hetii, so when you think about your UX, the flow of it, think about when the user sees the entire view change Apr 06 19:38:50 Basically the web service would keep track of game state and need to push out notifications when it is the other persons turn. Apr 06 19:38:53 when that happens most likely a new activity is starting Apr 06 19:39:28 FunkyELF, there's a hundred and one RESTful web solutions, this isnt really the right place Apr 06 19:39:48 Is there a way for me to getDialogById? Apr 06 19:40:02 hmm Apr 06 19:40:24 thx TheBunny.. I'm aware of these concepts but never attempted working with an engine.. maybe I even shouldn't but I wanna :P Apr 06 19:40:32 anyone particularly easy you wanna recommend + ;) Apr 06 19:40:52 i've never used any of these, only unity3d, sorry Apr 06 19:40:59 Argh! Apr 06 19:41:01 hehe Apr 06 19:41:02 kaneda^: well... I've never done an Android application or a restfull web service. I'm assuming that the Google App Engine can play nice with push notifications? Apr 06 19:41:16 FunkyELF, that's a good question for here, not sure what the answer is though Apr 06 19:41:18 how can i put the service run blaciked in the notifications Apr 06 19:41:25 ok some example: in my activity i display few pictures, one by one, then when i send proper tcp message instead those pictures i should display two buttons. In such case should i use setContentView() with my buttons? Apr 06 19:41:37 well I've kinda decided that I wanna do it in java.. maybe it is easy to transform to C# .. but its a block in my path that I don't need :) Apr 06 19:41:47 as a first time attempt Apr 06 19:41:50 or should i made it as a separate view ? Apr 06 19:41:54 I'm not dancing salsa ;9 Apr 06 19:41:58 sorry, activity:) Apr 06 19:42:07 hetii, that's entirely up to you, really Apr 06 19:42:27 hmm Apr 06 19:42:31 hetii, it seems easier to make a second view though Apr 06 19:42:46 rather than hide/gone or actually remove the images Apr 06 19:42:57 as thanks for your inputs I will allow you to laugh at this: http://www.imdb.com/title/tt2387413/ Apr 06 19:43:45 holy god that looks terrible, is it a porno? Apr 06 19:43:53 nope Apr 06 19:43:54 kaneda^: Thats i ask cause i really cannot recognize when a second activity need to be created if i can change a view Apr 06 19:43:57 I'm pretty sure its a real film Apr 06 19:44:16 hetii, well think about it, if yuo REPLACE those images with the buttons you need to remove or hide/gone the images Apr 06 19:44:30 if you make a new activity it will start, load the new view, and you're done, and you can go back any time to the previous activity Apr 06 19:44:49 i'd imagine this is the behavior you're looking for Apr 06 19:47:13 ok, what about such case, in my main activity i set configuration like that FLAG_KEEP_SCREEN_ON, FLAG_FULLSCREEN, and so on.... Is it possible to have some abstract class for activites, because i don`t want to repeat code in every of them. Apr 06 19:47:19 timroes: not to beat a dead horse, but the h1b thing is also about fairness. its not uncommon for skilled manufacturers in the US to demand training and experience for minimum wage. when people who may have done that think "i can go into debt and pay for training for min wage … or work making hamburgers without going into debt for the same wage" - thats a similar situation Apr 06 19:47:35 there is not talent shortage here; only a shortage in what people are willing to pay for talent Apr 06 19:47:36 * P3nnyw1se slaps TheBunny around a bit with a large trout Apr 06 19:48:00 looking at the angle engine.. gonna attempt myself with that.. do you have any 'you should know this before you start attempting to make a game' advice Apr 06 19:48:01 ? :P Apr 06 19:48:09 g00s, like can i use a pi board to turn on my espresso machine? Apr 06 19:48:09 never assumed that, g00s, just assumed that same like here, there are ppl expecting talent for no wage at all Apr 06 19:48:22 agy2154: sure Apr 06 19:48:27 Damn Apr 06 19:48:44 g00s, how is the power supplied to the board? Is it expensive? Apr 06 19:48:58 agy2154: Mr Fusion Apr 06 19:48:58 and if they then see the result they are somehow shocked, and I wonder what the hell they expected for paying (lets say indian) ppl no money, what would they get? quality has its price, everywhere Apr 06 19:49:17 sure Apr 06 19:49:59 also here in the US, things are becoming sensitive because large multinationals are taking advantage of the country, but not investing in it. like paying taxes. Apr 06 19:50:03 P3nnyw1se, i dont have any advice, just be careful ;) Apr 06 19:50:23 the US is simply becoming a plutocracy Apr 06 19:50:31 Apr 06 19:51:08 * kaneda^ puts a sock in it for g00s Apr 06 19:51:12 hehe Apr 06 19:51:13 ;) Apr 06 19:51:26 lol Apr 06 19:51:29 wtf is that suppose to mean Apr 06 19:51:31 'be carefull' Apr 06 19:51:34 I feel like I'm in danger Apr 06 19:51:59 P3nnyw1se: it means, this is sparta, be careful Apr 06 19:52:04 don't worry, pluto has lost most of its power since being downgraded from a planet Apr 06 19:52:37 Whats the best devlopment board. not like insaine $$$ Apr 06 19:52:41 Im looking to buy one now Apr 06 19:52:47 agy hold on Apr 06 19:53:07 agy2154, there's a bunch of cheap ones, the raspberry pi is really common for embedded testing Apr 06 19:53:17 agy2154: here is a fun post http://hardware.slashdot.org/story/13/01/28/2347255/ask-slashdot-best-electronics-prototyping-platform Apr 06 19:53:26 how can i try a service with the sdk and my mobile? Apr 06 19:53:30 my phone* Apr 06 19:53:41 becuase if i press the HOME key, the service stops Apr 06 19:54:22 joker_89: you read the docs of course ;) Apr 06 19:54:29 that was a joke right ? :P Apr 06 19:54:37 no Apr 06 19:54:38 that looks good. Before I was looking at those boards that you can connect to your android phone. Apr 06 19:54:51 agy2154: oh, stuff like IOIO Apr 06 19:54:57 g00s, yeah Apr 06 19:54:58 whatever happened to that? Apr 06 19:55:34 g00s so? Apr 06 19:55:35 g00s, I mean they still support that stuff. I don't think anyone ever looks at it. Apr 06 19:55:49 i want to test my service Apr 06 19:56:19 joker_89, are you using an intent service? Apr 06 19:56:29 no, local service Apr 06 19:56:57 when i press the HOme button my activity is destroyed and also the service Apr 06 19:57:11 is because i am executing from my eclipse? Apr 06 19:57:29 no Apr 06 19:57:53 ok Apr 06 19:59:01 g00s, arduino here i come. Apr 06 19:59:10 agy2154: its easy ;) Apr 06 19:59:17 have fun Apr 06 19:59:21 g00s, hha yeah "short learning curve" Apr 06 19:59:32 g00s, question is will it help me in the long run? Apr 06 19:59:45 help what in the long run? Apr 06 20:00:23 g00s, going into diffrent programmign languages? Apr 06 20:00:39 oh, i thought your goal was to have fun :) Apr 06 20:00:45 g00s, that too. Apr 06 20:00:56 g00s, Going into diffrent programmign languages is fun Apr 06 20:01:52 well, that will be more systems programming (device drivers, embedded), you will typically use languages conducive to that Apr 06 20:01:59 g00s, lol. My actually fun project with this board would be to try to make something. (I know this sounds kinda obsured becaus it is hard) So I love RC boats and I would love to have something that i can use to stream the camera on it and maybe control the lights on the RC boat from ~50m away Apr 06 20:02:01 Is that possible? Apr 06 20:02:29 sure Apr 06 20:02:46 Maybe even control the motors of the RC boat from my phone. Apr 06 20:03:05 with bluetooth connection maybe Apr 06 20:03:12 xbee is real cool Apr 06 20:03:14 does the board support more than one channel. Like can I control more than one thing wirelessly at once or is the digtial stuff diffrent than channels? Apr 06 20:04:14 agy2154, you can put bluetooth on it, for example Apr 06 20:04:20 which is typically good up to ~10M, depending Apr 06 20:06:58 kaneda^, Can I put something with a shortever wave length so it goes longer Apr 06 20:07:26 agy2154, well yah, taht would be the RC portion actually Apr 06 20:07:50 question for PendingIntent.getService. Iam creating pending intents with different extra data but it looks like subsequent calls to PendingIntent.getService are changing the ingest from previous calls Apr 06 20:09:08 agy2154, http://forums.trossenrobotics.com/showthread.php?4281-Android-controlled-RC-Lamborghini Apr 06 20:09:32 its acting like its replacing the intents associated with the getService? Its basically the same signature so I suppose it might be replacing them Apr 06 20:10:07 kaneda^ g00s Yeah thanks for the help. My parents are leaving and they won't leave me here alone. You got me really intrested in this. Ill lookfor the baord as soon as I get home and will probably start working on some easy shit and work my way up Apr 06 20:10:31 agy2154: oreilly has lots of good books on arduino Apr 06 20:10:35 there is a huge community Apr 06 20:11:00 when i was young, i started off the same way - i built my own "arduino" from a zilog Z80 and 4k ram Apr 06 20:11:07 :) Apr 06 20:12:04 dunno how to formate this idea for you, its half baked - but sw is great; knowing to to interface with the real world through hw is another level altogether Apr 06 20:12:24 you can go into control systems, for example Apr 06 20:12:48 assembly language programming is my god ! Apr 06 20:12:55 hey capella ! Apr 06 20:13:11 Yah - i build a lot of custom process control stuff - industrial automation Apr 06 20:13:15 my FF is still running at 500 MB through 2 days of heavy usage \o/ Apr 06 20:13:25 capella: thats awesome Apr 06 20:13:25 I made a thing that blew up things to see what happens Apr 06 20:13:47 heh Apr 06 20:13:56 technically, it was a pneumatic brake stress test device, but it was good at blowing them up Apr 06 20:14:17 with extreme pressure precision Apr 06 20:14:45 ah ... real programming Apr 06 20:14:45 capella: is it used to stress test FF :D Apr 06 20:14:56 No - that we crowd source :P Apr 06 20:14:59 open tab .. close tab … open tab .. :D Apr 06 20:15:22 yeah, this UnloadTab extension is amazing Apr 06 20:15:24 we have a mochitest that opens like 1000 tabs I think then test responsiveness Apr 06 20:15:58 capella: does FF evict / unload tabs at some point ? my FF doesn't seem to. Apr 06 20:16:11 memory consumption keeps growing and growing Apr 06 20:16:16 I think theres an add op for that Apr 06 20:16:26 I dont believe we do it Apr 06 20:16:27 yeah, thats why i got that add on Apr 06 20:26:26 if I decide to attempt to make a game as my final exercise next semester Apr 06 20:26:31 and I break down in tears and nothing works Apr 06 20:26:34 Omg Java don`t allow set default argument for method argument:( Apr 06 20:26:39 I will come here and you will help me write it.. right ? :D Apr 06 20:27:28 I mean value,,, Apr 06 20:28:26 im using ((TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE)).getLine1Number() to get my android's phone number but it just returns an empty string. any idea why? Apr 06 20:29:47 you sure it actually returns anything ? Apr 06 20:29:53 yep. an empty string Apr 06 20:30:08 Zaknafein, permissions? Apr 06 20:30:11 so if you set String st = "hello"; Apr 06 20:30:13 and set st = Apr 06 20:30:16 it would be overwritten ? Apr 06 20:30:21 actually, there are phones that *don't* know their own number Apr 06 20:30:30 p_l, oh... Apr 06 20:30:31 when i go to settings -> about -> status -> my phone number it says "Unknown" Apr 06 20:30:35 hrmm Apr 06 20:31:33 yep Apr 06 20:31:36 maybe cause you put on 'secret' number ;) Apr 06 20:31:36 had the same Apr 06 20:48:22 oh, agy is gone Apr 06 20:48:26 this is cool http://www.evenchick.com/cc3000-shield-and-the-internet-of-things.html Apr 06 20:49:58 embedded stuff is out of my depth, mobile/web is more interesting to me Apr 06 20:52:22 is that like a chip or something? Apr 06 20:52:41 wireless chip i mean Apr 06 21:05:11 I'm trying to include a jar file in my build, but jar.libs.dir in ant.properties does not seem to work, what's the suggested method for including jars? I'm using ant, not Eclipse Apr 06 21:08:54 What does it mean that my ServiceConnection is leaked? Apr 06 21:09:14 my service never binds, and when I exit the appw ith the back button i get that exception: ServiceConnectionLeaked Apr 06 21:09:29 does it say which service was leaked? Apr 06 21:09:32 does that mean that the memory space for it is left open? Apr 06 21:09:42 clever, it must be the service that I am attempting to make. And I only have one Apr 06 21:10:03 the error should say where it was allocated, i believe Apr 06 21:10:04 a direct answer is no it does not say what the service is Apr 06 21:10:15 Oh, yes. It is in my main UI activity Apr 06 21:10:46 There is a button in my UI that is intended to start a Service i have created. Apr 06 21:12:38 could it be that I need to delete that variable onStop() or something? Apr 06 21:13:03 you need to call a function to disconnect it Apr 06 21:13:17 gotcha Apr 06 21:13:23 hesperaux: unbindService Apr 06 21:13:24 but what if the serviceconnection is null? Apr 06 21:13:44 if its null, then you either arent connected, or you forgot to save the connection Apr 06 21:14:37 hmm making a game seems hard Apr 06 21:19:10 do anyone have any experience doing games? like e.g a 2D game in the style of angry birds Apr 06 21:19:26 :D Apr 06 21:19:26 I don't, but I see a lot of people using libgdx Apr 06 21:19:36 I'm just curious I mean Apr 06 21:19:44 I can't wrap my head around it Apr 06 21:19:50 where to start.. where to end :P.. and what comes in between Apr 06 21:19:54 clever, i put unbindService into onDestroy() but it is still throwing htat exception when I exit the app. Apr 06 21:20:13 P3nnyw1se, http://www.raywenderlich.com/12065/how-to-create-a-simple-android-game Apr 06 21:20:22 hesperaux: could you pastebin more of the logcat output? Apr 06 21:20:31 definitely. just a minute Apr 06 21:24:53 How can I add text to a Dialog when creating it with new Dialog()? Or alternatively, can I set the theme for an AlertDialog when creating it with the AlertDialog.Builder? Apr 06 21:26:44 nvm, found it Apr 06 21:28:14 I'm using HttpUrlConnection. how do i get the final responseCode after a redirect? getResponseCode is returning 302 Apr 06 21:30:25 clever, sorry got distracted http://pastebin.com/ad09ScTA Apr 06 21:30:42 shirt: sounds like it isnt following the redirect, youll need to get the location header and do another request, or enable redirects Apr 06 21:32:03 hesperaux: and what is line 112 of DAQuisition.java? Apr 06 21:32:40 clever: it is following the redirect. i see in the server logs that it follows the redirect, and also when I read from getInputStream() I am getting the correct body (after the redirect) Apr 06 21:33:03 shirt: not sure then, all i can think of is to disable redirects and make a new request following it Apr 06 21:33:32 hi everybody. Does anybody know of faster ways to access the preview image data of the camera than with using the default SurfaceWrapper method? I can only get 15FPS, which is quite slow. The original camera app on my Nexus 4 looks much smoother... would be great if anybody has some tips :) Apr 06 21:35:40 clever, bindService(intent, mDataServiceConnection, Context.BIND_AUTO_CREATE); Apr 06 21:36:14 hesperaux: and what are you calling unbindService on? Apr 06 21:36:27 hesperaux: are you perhaps calling bindService when you already have a connection? Apr 06 21:39:19 clever, i call unbindService() in onDestroy() and onClick() (for disconnect button). Both of them check to see if the service is bound before attempting to unbind. As for bindService(), I only call that after returning from a bluetooth listing activity through an intent callback. So i don't think I'm calling it more than one time Apr 06 21:39:48 hesperaux: add a log near line 112 and verify that Apr 06 21:40:15 heh, I have a Toast there and I see the message only once. But I'll make a log entry Apr 06 21:41:05 hesperaux: do you control the HW you are connecting to ? Apr 06 21:41:41 (did you design it) Apr 06 21:41:50 g00s, I potentially can, yes. It handles its own bluetooth connections though. Apr 06 21:42:04 I can issue it commands from a microcontroller or over bluetooth to reconfigure it Apr 06 21:42:12 i remembered you were using BT at a pretty high baud rate Apr 06 21:42:15 it's an SSP device Apr 06 21:42:18 i saw this earlier, you may dig it http://www.evenchick.com/cc3000-shield-and-the-internet-of-things.html Apr 06 21:43:06 interesting Apr 06 21:43:12 i don't use arduino though Apr 06 21:44:01 I'm using this thing: https://www.sparkfun.com/products/11601 Apr 06 21:44:46 cool … so much fun stuff :D Apr 06 21:47:16 Hey guys my login page isn't working for some reason. The log keeps displaying false? http://pastebin.com/bTwqaWHR Apr 06 21:47:40 g00s, yeah =) Apr 06 21:48:10 coco89: When you paste, please make sure to use Syntax Highlighting. Apr 06 21:48:15 this is the php script http://pastebin.com/tvWGgNE5 Apr 06 21:48:27 what's syntax highlighting Apr 06 21:48:30 but sure Apr 06 21:48:45 coco89: set it to objective-c :P Apr 06 21:49:54 also, in the database the password is hashed SHA1 Apr 06 21:50:17 coco89: When you paste there's drop down menus. Select Java Syntax Apr 06 21:50:19 so I'm not sure if the PHP script is correct Apr 06 21:50:26 It's tiring to read black and white code Apr 06 21:50:41 kakazza, ah sure I'll do that next time sorry Apr 06 21:51:52 hesperaux: basicaly, every bindService must be undone by a unbindService, on the same connection object Apr 06 21:52:04 if you bind twice, you are probly doing something wrong Apr 06 21:52:08 clever, it only binds one time. Btw, it never successfully binds... onServiceConnected is never called Apr 06 21:52:09 there is a bug in android where binders are leaked though Apr 06 21:52:26 hesperaux: could you pastebin more of the code? Apr 06 21:52:27 g00s, really? that's the exception i get when closign the app Apr 06 21:52:35 clever, yeah probably. hang on Apr 06 21:52:46 hesperaux: does the app crash though, or do you just see that in the logs ? Apr 06 21:53:04 i see it in the logs, no apparent crash Apr 06 21:53:06 g00s: http://pastebin.com/raw.php?i=ad09ScTA was his logcat Apr 06 21:53:19 coco89: Then first find out if your PHP script is correct. Apr 06 21:53:29 ah, ok. here is the issue http://code.google.com/p/android/issues/detail?id=6426 Apr 06 21:53:30 kakazza, I can't tell it seems fine to me Apr 06 21:54:01 http://pastebin.com/50JTmzR4 (Main UI Activity) Apr 06 21:54:09 how did u bind the service? Apr 06 21:54:29 coco89: "seems"? Apr 06 21:54:32 http://pastebin.com/RJ3qh4SQ (My service class) Apr 06 21:54:38 Just POST the correct user/pass and see what it returns. Apr 06 21:55:04 kakazza, I've posted the correct user/pass and it keeps returning false Apr 06 21:55:40 btw, I am still learning how to use handler/looper stuff. I might have done that horribly wrong. Apr 06 21:55:53 Also note, right now the device I attempt to connect to is not turned on. I wanted to make sure the app handles that correctly Apr 06 21:56:11 hesperaux: only problem i can possibly see, bindService is async Apr 06 21:56:30 hesperaux: if onActivityResult somehow gets called twice in a row, it will run before the boolean can get set Apr 06 21:56:33 and bind twice Apr 06 21:56:45 oh, that's interesting Apr 06 21:56:47 didn't think of that Apr 06 21:57:03 I don't think that's happening right now, but that could definitely happen Apr 06 21:57:03 check logcat to see if the Log.v shows signs of it Apr 06 21:57:05 twice in a row Apr 06 21:57:07 Log.v(getPackageName(), "Attempting to bind service"); Apr 06 21:57:14 clever, It only shows that log one time Apr 06 21:57:21 ah, so thats not it then Apr 06 21:57:52 what would cause the service not to bind and throw no exceptions? Apr 06 21:57:55 hesperaux: and DataService is registered properly in your AndroidManifest.xml ? Apr 06 21:58:02 wow. Apr 06 21:58:13 i bet it isn't. I changed the name of the service when I did major overhaul Apr 06 21:58:29 lol, epic fail. it's not in the manifest Apr 06 21:58:43 ahhhh. thanks clever. that was probably all it was Apr 06 21:59:07 so onServiceConnected wasnt being set (it failed) and then your code didnt unbind the failed connection! Apr 06 21:59:14 yep that was it! Apr 06 21:59:47 kakazza, any suggestions? :) Apr 06 22:00:02 coco89: It seems your PHP script is not working if it keeps returning false. Apr 06 22:00:03 :) Apr 06 22:00:12 hm Apr 06 22:00:17 If you run the SQL query manually in mysql it works Apr 06 22:00:19 ? Apr 06 22:00:25 now i have other problems, but the service issue seems to be fixed. thanks! Apr 06 22:01:06 What's the user/pass so we could test. Then again, you might not want to paste that here since your SQL query isn't exactly secure. Apr 06 22:01:44 kakazza, ma001mc the password is 12345 i created a fake password so it should be fine Apr 06 22:01:48 btw, that exception when closing the app is gone now Apr 06 22:02:05 hesperaux: :) Apr 06 22:02:27 oh wait Apr 06 22:02:30 that wasn't the issue was it Apr 06 22:02:31 lol Apr 06 22:02:36 now it's not keeping the bluetooth device connection open Apr 06 22:02:41 >_> Apr 06 22:02:44 it connects (status LED is on), then it disconnects...hmm Apr 06 22:02:49 loool :P Apr 06 22:02:50 But yes, your server returns 'false' for that user/pass combination. Apr 06 22:02:55 ive not played with bluetooth much yet Apr 06 22:02:58 Can you try the query in the mysql shell? Apr 06 22:03:15 is unBindService() a blocking call? Apr 06 22:03:27 dont know Apr 06 22:03:30 * hesperaux looks it up Apr 06 22:03:40 luke, use the source!! Apr 06 22:03:57 kakazza, okay i'll tr one sec Apr 06 22:04:04 hesperaux: https://github.com/android/platform_frameworks_base Apr 06 22:04:07 uncle owen, I want to learn more about the source Apr 06 22:04:28 unBind is not blocking Apr 06 22:04:30 hesperaux: https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/ContextImpl.java#L1446 Apr 06 22:05:23 hmm Apr 06 22:05:53 i have a section that will unbind the service if it is already bound when attempting to bind it again Apr 06 22:06:07 id just skip both, leave it bound Apr 06 22:06:32 hmmm how the hell do I import this Angle 2D into my eclipse Apr 06 22:06:34 clever, true. it's not like I am going to have multiple service states Apr 06 22:07:04 hesperaux: in my own app, i bind the service in onstart, and the service then manages all of the state internaly Apr 06 22:07:35 that's a good idea. the button can just call bound functions of the service...no need to create it onclick Apr 06 22:07:45 yep Apr 06 22:07:58 kakazza, I can't get anything to show must be something to do with the sha1 thing Apr 06 22:08:03 depending on your needs, you would also do the bluetooth from the service Apr 06 22:08:07 hesperaux: so the bluetooth keeps working after you leave the activity Apr 06 22:08:29 yeah that's actually what i'm doing Apr 06 22:08:30 coco89: SHA1? Apr 06 22:08:37 i get the mac address from an intent, and pass it to the service Apr 06 22:08:38 Did I miss something? Apr 06 22:08:42 the service then creates the socket Apr 06 22:08:47 kakazza, yes because the password on the database is hashed as SHA1 Apr 06 22:08:53 If you're storing the passwords as SHA1 of course you must hash it in the query too. Apr 06 22:08:58 in fact, i think it connects to the target in a sub-thread of the service Apr 06 22:09:02 kakazza, I've tried doing that Apr 06 22:09:12 hesperaux: the service runs on the main thread by default Apr 06 22:09:32 Is the SHA1 8cb2237d0679ca88db6464eac60da96345513964 ? Apr 06 22:09:41 hesperaux: and when you call functions you got from the binder, its just calling them directly, on whatever thread you happen to be calling from Apr 06 22:09:50 kakazza, maybe, how do I check Apr 06 22:09:56 list the table entries Apr 06 22:09:57 oh god Apr 06 22:09:57 http://www.eclipse.org/downloads/ Apr 06 22:10:00 which one do I choose :P Apr 06 22:10:04 kakazza, actually, yes it is Apr 06 22:10:23 lowercase? uppercase? Apr 06 22:10:25 clever, i thought that even if the UI is killed, the service on that thread is not killed. Is this not the case? Apr 06 22:10:46 hesperaux: the Activity class will get destroyed, but the service class wont, and the entire thread is kept alive Apr 06 22:10:48 it didn't make sense to me since they are the same process...but i assumed magic Apr 06 22:10:59 okay Apr 06 22:11:01 kakazza, : it's exactly how you wrote it Apr 06 22:11:03 hesperaux: they both run in the same thread, the thread simply isnt killed Apr 06 22:11:11 okay that makes sense Apr 06 22:11:27 if the service class does something blocking, and blocks for 5 seconds Apr 06 22:11:36 the UI and activity will also block for 5 seconds Apr 06 22:11:40 And the username is also correct? Apr 06 22:11:59 yes Apr 06 22:12:07 clever, that's what I thought. So I should spawn yet another thread to connect to the bluetooth device, from the service context? Apr 06 22:12:23 hesperaux: ASyncTask, or Thread Apr 06 22:12:48 ASyncTask is probably sufficient for a bluetooth connection Apr 06 22:13:14 clever, could you help me better understand how to set up loopers for these threads with my service? Apr 06 22:13:25 i'm spawning a dedicated network thread for each session in my app, with a custom looper (needs to be cross-platform) Apr 06 22:13:27 coco89: Does the query work when you pass the hash? Apr 06 22:13:56 clever, that sounds complicated :) Apr 06 22:14:03 hesperaux: https://developer.android.com/reference/android/os/Looper.html did you look at the example code here? Apr 06 22:14:28 if I want to send/receive Messages with my Service, do I need a new Looper or will the Service have the UI thread looper? Apr 06 22:14:31 anyone used the 'Angle Engine' ? Apr 06 22:14:36 hesperaux: that makes a thread with a looper,then you can just post things to the mHandler all you want Apr 06 22:15:03 hesperaux: http://pastebin.com/raw.php?i=ad09ScTA Apr 06 22:15:06 hesperaux: look closely at the backtrace from before Apr 06 22:15:16 clever, but i have to pass the mHandler into anything that the example thread spawns, correct? Apr 06 22:15:25 hesperaux: your activity is being called via Looper.loop, the main thread is inside of a looper Apr 06 22:15:32 hi, a string is declared first in API 16, i build for API 4, how can i make it build? I mean it complains that my minsdk does not have that string (but i have made a switch in the code) Apr 06 22:16:03 hesperaux: in the example, its a member variable on the subclass of Thread, and you would be using mHandler.post(...) to send data out to it Apr 06 22:16:07 btw reflections could be used? Apr 06 22:16:40 hesperaux: for getting data back out, you can make a second handler, on the main thread (just new Handler() in the service onCreate() ) Apr 06 22:17:03 main thread already has a looper setup, so thats done Apr 06 22:17:09 how does the UI's handler have any idea what loopers to interface with? Apr 06 22:17:20 hesperaux: the Handler objects will 'bind' to the thread it was created on Apr 06 22:17:34 say, the UI creates a Thread...that sub thread makes a handler and a looper as in the example. How does the UI connect? Apr 06 22:17:37 and it is always limited to 1 Looper per thread Apr 06 22:17:54 the UI would use mHandler.post to send messages into the thread Apr 06 22:18:25 kakazza, yes Apr 06 22:18:28 hesperaux: i mainly use this function, https://developer.android.com/reference/android/os/Handler.html#post%28java.lang.Runnable%29 Apr 06 22:19:25 kakazza, but if I do where password = 'SHA1(12345)' it doesn't work Apr 06 22:19:30 clever, where I'm getting confused is: it sounds like the UI thread has its own handler and the sub-thread has its own handler. I don't see how the two handlers know about each other Apr 06 22:19:36 coco89: your quoting it wrong Apr 06 22:19:44 clever, oh? Apr 06 22:20:03 coco89: the entire string is 'SHA1(12345)' Apr 06 22:20:06 coco89: so it will only match rows that have that exact value Apr 06 22:20:09 it doesnt hash anything Apr 06 22:20:10 oh right Apr 06 22:20:14 lol Apr 06 22:20:44 hesperaux: when you create the LooperThread class, you can just read .mHandler out of it Apr 06 22:21:04 hesperaux: after youve started it Apr 06 22:21:17 because it is public! alright I see what you mean Apr 06 22:21:36 hesperaux: and you can put a second Handler in there, also public, but created outside, from the service Apr 06 22:22:01 clever, so how should it be? Apr 06 22:22:05 the service onCreate method gets ran on the main thread, so any handlers made in that, bind to the main (the ui) thread Apr 06 22:22:14 coco89: where password = SHA1('12345') Apr 06 22:22:37 ohhh Apr 06 22:22:48 now the password is a string, inside a function call Apr 06 22:22:53 which gets ran at the mysql server Apr 06 22:23:32 it still diden't work :S Apr 06 22:24:00 Print $query and see if you got something wrong there. Apr 06 22:24:06 coco89: can you pastebin the code? Apr 06 22:24:35 the php code? Apr 06 22:24:36 sure Apr 06 22:25:09 This time with Syntax highlighting Apr 06 22:26:54 clever, http://pastebin.com/n6mbfXjq Apr 06 22:27:15 Did you somehow trunctate the hash? Apr 06 22:27:17 but that's withuot attempting the SHA1 Apr 06 22:27:18 coco89: i dont see sha1() in that code Apr 06 22:27:34 clever, kakazza told me to query the database to see if a result shows up Apr 06 22:27:56 oh how lovely, like i said several days ago, sql injections everywhere :D Apr 06 22:28:04 coco89: with the code you pasted, it will only work when you use the pass 8cb2237d0679ca88db6464eac60da96345513964 Apr 06 22:28:09 (assuming the column contains that) Apr 06 22:28:20 [{"student_id":"33210509","first_name":"Marco","last_name":"Collura","username":"ma001mc","password":"8cb2237d0679ca88"}] Apr 06 22:28:21 timroes: that too Apr 06 22:28:37 kakazza: looks truncated to me! Apr 06 22:28:40 It is Apr 06 22:29:02 timroes, lol Apr 06 22:29:04 kakazza: ive had the same problem on my site, when storing passwords in plain text Apr 06 22:29:13 kakazza: somebody registered with a long-ass password, and it truncated silently, then wouldnt let him in Apr 06 22:29:22 heh Apr 06 22:29:32 coco89: i guess you are aware that this code let users do nearly anything to your database Apr 06 22:29:36 timroes: I actually used SQL injection to get that result :p Apr 06 22:30:04 kakazza: lol :) Apr 06 22:30:15 coco89: Now it's time to make your server only listen to requests from localhost >_> Apr 06 22:30:18 is this http://pastie.org/7345248 the correct way of implementing the solution posted here? http://stackoverflow.com/questions/10216937/how-do-i-create-a-help-overlay-like-you-see-in-a-few-android-apps-and-ics Apr 06 22:30:34 kakazza: damn i missed the part where he wrote the server URL :) Apr 06 22:31:00 so what's wrong with the code then :S Apr 06 22:31:03 kakazza: ive also found sql injection holes in a project i took over, if you use the username '1 or 2' it lets you in every time Apr 06 22:31:06 because I've ran it and nothing happens; and no errors either Apr 06 22:31:22 coco89: #1, your column in the db needs to be changed to hold a larger value Apr 06 22:31:27 coco89: #2, use bind variables in the code Apr 06 22:31:39 coco89: #3 fix your sql injection Apr 06 22:31:48 #2 fixes the sql injection, when done right Apr 06 22:31:52 coco89: #4 better reinstall the server anyway, since you posted that public now Apr 06 22:32:31 reinstall it? Apr 06 22:32:35 What does "android:" mean ? Apr 06 22:32:44 I mean is it kind of namespace ? Apr 06 22:32:53 coco89: also, use BCrypt or SCrypt for password hashing Apr 06 22:32:55 bluesm: not only kind of Apr 06 22:33:00 bluesm: it is a namespace Apr 06 22:33:10 I'm familiar with html but not with plain xml... Apr 06 22:33:23 coco89: By now, people with evil intent could take control of your server. You might not want that. Apr 06 22:33:24 bluesm: http://en.wikipedia.org/wiki/XML_namespace Apr 06 22:33:26 XML namespace referring to entities defined in android schema Apr 06 22:33:41 kakazza, for sure Apr 06 22:33:53 p_l: What is the purpose (can I create my own attributes ? ) ? Apr 06 22:33:58 kakazza,so how come i'm not getting any results from the query Apr 06 22:34:15 clever, tell me if I'm thinking correctly: In my Service, I spawn a thread. In my thread, I create a public handler and start a looper. To send a message to the thread from my Service, I call myThread.mHandler.post(msg). To send a message to the Service from its thread, I call this.mHandler.post(msg). That doesn't sound right because I can't handleMessage() in both the Service and the Thread. Apr 06 22:34:21 coco89: someone already dropped all the tables? Apr 06 22:34:23 and guys how do I fix the SQL Injection? Apr 06 22:34:36 coco89, escape the hell out of everything Apr 06 22:34:39 use sql parameters Apr 06 22:34:42 in any case Apr 06 22:34:44 on any os Apr 06 22:34:45 coco89: by using bind variables and prepared statements Apr 06 22:34:46 hesperaux: this.mHandler.post(msg) isnt right Apr 06 22:34:53 hesperaux: that will post it to its own thread Apr 06 22:35:15 hesperaux: you want to make a second Handler object, which MUST be created outside the thread Apr 06 22:35:16 clever, should that have been a different protected handler that I created in the UI? Apr 06 22:35:29 hesperaux: the second one can still be public Apr 06 22:35:32 hesperaux, escape? Apr 06 22:35:47 coco89: For some reason, it always returns false. But it returns "false[]", so actually there was a result. Apr 06 22:36:24 coco89, if someone sends: 'SELECT * FROM table.blarg;' <-- you convert the * and . and ; to character codes so SQL can't interpret them Apr 06 22:36:29 hey p_l howya doing Apr 06 22:36:42 clever, in my thread, how do I access the parent member variables? Apr 06 22:36:54 hesperaux: just store it on that class Apr 06 22:36:54 kakazza: i guess its because he is mixing mysql and mysqli - but just guessing Apr 06 22:37:02 don't know if you can cross use these on connections Apr 06 22:37:08 hesperaux: make a second Handler field on the class, and set it from outside the class Apr 06 22:37:10 clever, oh ok, so I pass the handler from the UI into my thread when I instantiate it? Apr 06 22:37:13 if not, that would be the reason why $rows will be 0 even if there are results Apr 06 22:37:20 hesperaux: yep Apr 06 22:37:29 clever, sorry, it's just hard for me to grasp this for some reason Apr 06 22:37:46 https://gist.github.com/bluesm/5327932 <- why this result the equal "text field" and "button" if button should be larger ? Apr 06 22:37:53 g00s: somehow fine Apr 06 22:38:04 got lots of stuff to finish by monday Apr 06 22:38:14 timroes, I see.. Apr 06 22:38:20 in general, i just make sure there's a looper in all the threads that need message support.. then I create handlers and post to them. Those handlers are like post offices for the thread i create them in. If i have access to those objects anywhere else, I can send messages to that class? Apr 06 22:38:51 bluesm set either heights or widths to "0dp" Apr 06 22:38:52 hesperaux: yeah Apr 06 22:38:57 ;D Apr 06 22:39:03 hesperaux: i usualy just post Runnable's to the handler Apr 06 22:39:13 hesperaux: so it just runs the code i gave it, on the target thread Apr 06 22:39:18 no need to parse any messages Apr 06 22:39:23 it does exactly what i told it to do Apr 06 22:39:57 clever, if I wanted to update the UI with a runnable sent out of the sub thread, would I have access to the UI context? (findViewById, etc.)? I thought that would be hidden Apr 06 22:39:57 xorgate: Why this make it work ? Apr 06 22:40:26 bluesm you are saying 'be this size' and not 'adapt to leftover space' Apr 06 22:41:07 hesperaux: i make an interface with a bunch of callbacks Apr 06 22:41:13 it also depends on what layout they are in Apr 06 22:41:14 hesperaux: the activity implements that interface Apr 06 22:41:31 hesperaux: onstart will pass the activity over to the service, and onstop passes it so it can be cleared Apr 06 22:42:03 hesperaux: the service then has a reference to something implenting the interface, and can call methods on it Apr 06 22:42:19 i'd have to really understand interfaces before I tried that, and right now they are vague to me Apr 06 22:42:36 hesperaux: its basicaly a class with no code in it, all the methods are abstract Apr 06 22:43:20 hesperaux: public interface Callbacks { public void bluetoothConnected(); public void buttonPushed(); } for example Apr 06 22:43:36 when a button on the remote end gets pushed, you call buttonPushed Apr 06 22:43:40 timroes, why doesn't SHA1('12345') work?# Apr 06 22:44:25 coco89: because you dont have the sha hash in the column Apr 06 22:44:44 coco89: also, SHA1 is useless as password hash Apr 06 22:44:47 at least in that form Apr 06 22:45:16 clever, but it's there? :S Apr 06 22:45:26 coco89: only half of it is Apr 06 22:45:29 p_l, I'll get this to work and then I'll fix that hopefully Apr 06 22:45:40 clever, I've changed the column to hold Varchar 40 Apr 06 22:45:50 xorgate: Apr 06 22:45:52 xorgate: Thanks :) Apr 06 22:45:58 coco89: as it is, I'd go with "rewrite from scratch, after sanitizing the server" ;> Apr 06 22:46:25 sanitizing == kill it with fire Apr 06 22:46:26 coco89: and did you update it to fix the contents? Apr 06 22:46:36 clever, just did that now lol Apr 06 22:46:37 any idea where I can read about the intent filter category_info? Apr 06 22:46:39 kakazza: in computer case, Thermite Apr 06 22:46:44 heh Apr 06 22:46:55 I don't find any resources, except the small doc on Intent | Android Developers Apr 06 22:47:01 p_l, hmm but how did I sanitize it, by showing you the code? Apr 06 22:47:17 coco89: no, you just showed how flawed it was ;) Apr 06 22:47:29 hehe Apr 06 22:47:31 bluesm layout_weight means: try to increase my size by my portion of the leftover size. If size is 400 and mine is 100 and the other is 200, there is 100 left to divide. here layout_weight for all components is the 'weight' of the portion of that 100 Apr 06 22:47:45 (but seriously, as it is, someone could have stumbled on it with one of the many automated tools and have full control over your database already) Apr 06 22:47:51 p_l, hehe yeh but it's gonna be filled with fake data so I'll just make it secure once I get this to work Apr 06 22:48:10 coco89: remember all those "lulzsec" data dumps? Apr 06 22:48:21 they weren't a product of any great hacking skill Apr 06 22:48:36 heh, i guess Apr 06 22:48:46 it was usuall a case of finding an SQL Injection error like that, and running one of the two common tools Apr 06 22:48:55 and going for a coffee/beer Apr 06 22:48:59 or other then that, any idea how to test category.info Apr 06 22:49:28 p_l, I see, thanks for the heads up :) so what would you suggest as in what does rewrite from scratch mean? Apr 06 22:49:29 coco89: and the only reason I'm adding the coffee break is because I assume slow internet connection Apr 06 22:49:39 or rather sanitizing the server Apr 06 22:50:01 reinstall the server? Probably. Apr 06 22:50:10 (as in format it) Apr 06 22:50:29 p_l, as in delete the database or delete my web server account :S Apr 06 22:51:04 as for rewrite, train yourself on using secure patterns in SQL, like bind parameters and prepared statements. Then read up on how to properly store passwords - things like bcrypt, PBKDF2 and SCrypt Apr 06 22:51:20 sure Apr 06 22:51:23 will do Apr 06 22:51:35 p_l, thanks :) Apr 06 22:51:59 * p_l would personally also avoid PHP and MySQL, but they might be enough in this case :D Apr 06 22:53:40 how do I 'format it' Apr 06 22:53:54 (also: MongoDB is MySQL of NoSQL. Same rule applies ;)) Apr 06 22:54:00 coco89: what kind of server it is? Apr 06 22:54:13 * p_l is not used anymore to shared hosting Apr 06 22:54:26 it's just a webhost Apr 06 22:54:29 ouch Apr 06 22:54:42 probably delete the database and create new one, not like you can do much there... Apr 06 22:54:51 ah I see Apr 06 22:54:55 sure will do Apr 06 23:00:41 guys, it's still not working http://pastebin.com/6fmRM0V2 Apr 06 23:00:57 I've changed to SHA1('$password') Apr 06 23:00:59 i think Apr 06 23:01:09 and I've changed the column to hold 40 characters and I've updated it :S Apr 06 23:01:40 coco89: you still havent fixed the sql injection, look up mysql bind variables Apr 06 23:02:13 coco89: http://www.php.net/manual/en/mysqli-stmt.bind-param.php Apr 06 23:03:15 clever, I will I just wanted to see my code working Apr 06 23:03:22 reading it now Apr 06 23:03:41 but really how come it still isn't working Apr 06 23:04:43 coco89: id need to see whats in the database to know Apr 06 23:05:04 coco89: try printing $query, then run that manualy in a mysql shell Apr 06 23:07:13 coco89: also, SHA1($password) is worthless against anyone with a Radeon card :3 Apr 06 23:07:30 (even without them, but I was going for overkill) Apr 06 23:07:45 any help with this? http://stackoverflow.com/questions/15856970/creating-android-overlays-for-displaying-walk-through Apr 06 23:08:23 clever, I've run Select * From students Where username'ma001mc' AND password = SHA1('12345'); manually and it works Apr 06 23:08:36 from the sql shell Apr 06 23:08:53 coco89: is that what is in $query ? Apr 06 23:09:02 clever: how do I print $query Apr 06 23:09:06 echo $query Apr 06 23:09:10 oh of course Apr 06 23:10:17 clever, SELECT * FROM Students WHERE username = '' AND password =SHA1('') Apr 06 23:10:20 that's in the query Apr 06 23:10:31 theres your problem then Apr 06 23:10:42 did you post a name and pw? Apr 06 23:10:44 clever, but that's when I haven't posted anything Apr 06 23:10:46 nope Apr 06 23:10:53 then post something!, see what it says then! Apr 06 23:12:08 clever, $username = $_POST['ma001mc']; Apr 06 23:12:08 <- filled in the $password in a similar way and the $query still says there's null :S Apr 06 23:12:20 As in I've embedded that in the PHP script Apr 06 23:12:26 and the query is still showing the same thing Apr 06 23:12:34 why are you talking about PHP in here? Apr 06 23:12:43 coco89: thats not how you fake the username Apr 06 23:12:45 $username = $_POST['ma001mc']; <== That's not gonna do what you want it to do. Apr 06 23:12:51 oh Apr 06 23:14:06 Sicp: I wonder. Apr 06 23:14:53 let's get back to Android and help me solve my super-duper Android-related problem! Apr 06 23:14:56 clever, this is what happens http://www.marcocollura.com/GoldTagWS.php Apr 06 23:15:04 Sicp, sorry finishing up now :) Apr 06 23:15:16 #php <-- Apr 06 23:15:37 okay i think i know what's happening Apr 06 23:15:39 wow Apr 06 23:15:55 just installed Android SDK on my gaming computer Apr 06 23:16:02 on a newly downloaded Eclipse Apr 06 23:16:28 it creates a folder.. XXHDPI Apr 06 23:16:36 never seen that before Apr 06 23:16:39 cool Apr 06 23:16:46 didn't know there was such a thing Apr 06 23:16:48 lol .. Apr 06 23:17:07 xxhdpi is like 0.2% of devices Apr 06 23:17:08 just created an android project to test it out Apr 06 23:17:15 never seen it :P Apr 06 23:17:19 doesn't auto create on my laptop Apr 06 23:17:26 I use xxxhdpi when watching my porn Apr 06 23:17:29 https://developer.android.com/about/dashboards/index.html#Screens Apr 06 23:17:34 0.8% even Apr 06 23:19:36 values-sw1080dp-land wtf Apr 06 23:21:37 Guys, I need help with the AlarmManager --- It doesn't seem to schedule an alarm and I don't know why. Here's the there code http://pastebin.com/J6vB8qtP , please help Apr 06 23:25:11 what the @£$@£$ is this @£$@£$ Apr 06 23:25:16 I'm thinking about pulling out Otto at the moment for my application since I don't need it. Apr 06 23:26:19 That's one hell of a confession. Apr 06 23:26:49 so I just installed Android SDK on my eclipse Apr 06 23:26:54 then opened eclipse as administrator.. now its gone Apr 06 23:27:26 kakazza: :) Apr 06 23:32:30 don't hurt Otto Apr 06 23:38:21 I've tried everything, if I hardcode the username and password it returnes true. I've tried logging the username and password entered in the editText and it's fine but it's still returning false whenever I try to login? http://pastebin.com/d4AypUKX Apr 06 23:39:17 And still not Java Syntax Apr 06 23:40:22 Otto is nice, I just don't need it at this point Apr 06 23:40:31 your json string is "false" ? Apr 06 23:40:37 doesnt look like proper json Apr 06 23:42:09 coco89: were you working on that app for the hospital? Apr 06 23:42:36 g00s, hospital? :S no Apr 06 23:42:44 ok, that was somebody else Apr 06 23:43:53 heh, g00s was worried for a second ;) Apr 06 23:44:14 :) Apr 06 23:44:59 loool Apr 06 23:46:22 I know what's wrong but i dont know how to fix ti :/ Apr 06 23:46:27 i did a log of 'data' Apr 06 23:46:59 and it's equal to =SHA1('12345')true instead of just true :\ Apr 06 23:47:27 nvm one sec Apr 06 23:47:49 ? Apr 06 23:48:28 it shows the whole queryand then true Apr 06 23:49:52 hey guys I have been pulling my hair out trying to figure out why this program wont register to the google GCM servers, I followed everything as in the guide but it never is issued a ID I replaced the package name with *** for the pastebin but it is written correctly in the program http://pastebin.com/jG6B6gpj Apr 06 23:50:14 it keeps giving me a blank string for the registration ID Apr 06 23:50:59 HELP HELP! Apr 06 23:51:02 My eclipse looks like shit Apr 06 23:51:07 Intellij Apr 06 23:51:08 the bars are all around me Apr 06 23:51:12 indeed, intellij Apr 06 23:51:17 VIM Apr 06 23:51:19 :P Apr 06 23:52:02 cat > MyClass.java Apr 06 23:52:07 ed Apr 06 23:52:25 ARGH this program makes me want to watch predator Apr 06 23:52:28 for no apperent reason Apr 06 23:52:47 P3nnyw1se: its actually not bad, I have Vim running inside it Apr 06 23:52:47 :P Apr 06 23:52:50 if it sucks, we can uninstall it Apr 06 23:52:52 problems solved Apr 06 23:53:20 €£$€@£${€€{€{£ Apr 06 23:54:39 Hi Apr 06 23:55:08 How do i go about merging mediascanner from android into my app? Apr 06 23:55:18 i want to directly take the source and modify it Apr 06 23:55:38 I gotta ask.. whats up with the ANDROID sdk on one computer doing 4 layout folders as standard Apr 06 23:55:38 but it relies on native code Apr 06 23:55:43 and on another one doing 5 Apr 06 23:55:46 same installation Apr 06 23:56:08 why do you have 4 layout folders? Apr 06 23:56:08 P3nnyw1se: when starting out, you can ignore all the extra ones, only use layout/ Apr 06 23:56:17 I know Apr 06 23:56:28 but since I installed an hour ago on my gaming computer Apr 06 23:56:33 it made a XXHDPI folder Apr 06 23:56:34 so no one ever use GCM? Apr 06 23:56:35 never seen that before Apr 06 23:56:52 P3nnyw1se: jeese, don't worry about it, you've been on this for like half an hour Apr 06 23:57:07 yeah well I'm reinstalling Apr 06 23:57:07 Just means you leveled up and unlocked it. Apr 06 23:57:11 so I haven't advanced Apr 06 23:57:21 Brando753: ive got gcm working in my app, but i cant see anything obviously wrong with your code Apr 06 23:57:42 create folder layout-WTFdpi Apr 06 23:57:42 its really bothering me ;_; I have been playing with this for hours ;_; Apr 06 23:57:45 wonder what device to trigger it Apr 06 23:58:18 My eyes are getting weary.... my back is getting tight Apr 06 23:58:22 come on you know this one guys Apr 06 23:59:26 xxhdpi is for e.g. nexus 10 Apr 06 23:59:51 SimonVT: I read it falls into xhdpi, but for the launcher icon it uses xxhdpi Apr 06 23:59:52 So it can display larger icons in the launcher Apr 06 23:59:58 Yeah, it's xhdpi Apr 07 00:00:11 But launcher icons are loaded from xxhdpi Apr 07 00:00:19 Yeah, that's what I read. Apr 07 00:00:21 Is it possible to have a timeout for when images are displayed? Apr 07 00:00:31 i for one can't wait to giggle at xxxhdpi Apr 07 00:00:37 guys can it be that a only year old galaxy S3 phone can't figure out the sw600dp-land folder? Apr 07 00:00:43 It's simple to display larger icons in the launcher Apr 07 00:00:47 cause it crashed when I used it.. and the minute I removed the sw600dp part.. it worked.. Apr 07 00:01:15 The S3 shouldn't even touch the sw600dp-land folder, afaik Apr 07 00:01:15 Having icons on a tablet that's the same physical size as on a phone doesn't really look good Apr 07 00:01:26 It makes more sense to display a slightly larger icon Apr 07 00:02:36 I'm asking cause in my app I have a standard layout.. and then I have a 'better' overview with several fragments next to each other Apr 07 00:02:41 for the viewers pleasure .. IF! Apr 07 00:02:48 its landscape mode and sw600dp Apr 07 00:02:54 that.. though made the galaxy S3 crash Apr 07 00:03:00 it didn't just stick with the layout folder Apr 07 00:03:01 it just crashed Apr 07 00:03:12 I want to be able to load 4 images, but there needs to be a a delay in between to give an effect of a light turning on. If I load the images now, only the last image will be displayed. Apr 07 00:04:11 How can i use nonapi classes from android? Apr 07 00:04:58 nonapi = ? Apr 07 00:05:01 I want to use mediascanner.java Apr 07 00:05:47 i want to edit this: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/media/java/android/media/MediaScanner.java Apr 07 00:06:02 Did you put it in your src folder? Apr 07 00:06:27 just that java file? Apr 07 00:06:58 yeah Apr 07 00:07:04 If you need to ask, you shouldn't use internal classes/methods Apr 07 00:07:35 SimonVT: its my first time trying Apr 07 00:09:53 clever: hey I was told the api had to be named after the application name is this true, and which name the com.xxx name or just the application name in res/strings.xml? Apr 07 00:10:09 I have an image similar to the one in the url and I want to make it flash. How can I do that? http://www.ralphbaer.com/images/7.%20Simon%20copy.jpg Apr 07 00:10:20 I figured since you had to use a senderID it would not matter but Apr 07 00:10:21 ¯\(°_o)/¯ Apr 07 00:11:10 Brando753: the senderid must be a number, from the google application console Apr 07 00:11:24 well yes and I have that set as the correct number Apr 07 00:11:35 but I was told the api had to be named after the application Apr 07 00:11:45 I am just trying to figure out why I dont get a id >.> Apr 07 00:11:48 Brando753: where are you giving it the name? Apr 07 00:12:01 the actual api name in the google console Apr 07 00:12:33 Brando753: i dont think thats really used for anuthing Apr 07 00:12:38 either fo I Apr 07 00:12:39 *do Apr 07 00:12:40 only to remind you what that id number is for Apr 07 00:12:49 I am just trying to figure this out... Apr 07 00:12:52 ;_; Apr 07 00:13:03 its literally been hours and I have no more progress Apr 07 00:13:09 Brando753: and after making the project, did you enable gcm on it? Apr 07 00:13:20 in the manifest? Apr 07 00:13:22 yes Apr 07 00:13:28 Brando753: no, on the code console Apr 07 00:13:36 oh yes to that as well Apr 07 00:14:28 Brando753: what is your SENDER_ID set to? Apr 07 00:14:38 my actual sender ID Apr 07 00:14:51 in my CommonUtilities.java file Apr 07 00:15:13 clever: its a 12 digit number being sent as a string Apr 07 00:15:43 sounds right Apr 07 00:16:06 Brando753: and you have a GCMIntentService ? Apr 07 00:16:13 in the manifest? yes Apr 07 00:16:25 you need to create the class as well Apr 07 00:16:32 as a subclass of GCMBaseIntentService Apr 07 00:16:41 yes, I have said class as well Apr 07 00:17:14 public class GCMIntentService extends GCMBaseIntentService { Apr 07 00:17:29 Brando753: can you pastebin that class? Apr 07 00:17:33 of course Apr 07 00:17:35 one sec Apr 07 00:18:34 pastebin.com/JpRucg0a Apr 07 00:18:44 clever, I did a log of data and it's equal to true. but the if statement checking whether it is equal to true says it's false?? Apr 07 00:19:03 coco89: how are you checking it in java? Apr 07 00:19:22 Brando753: the constructor must take 0 arguments Apr 07 00:19:31 Brando753: the service code wont pass the senderid in properly Apr 07 00:19:55 Brando753: public GCMIntentService() { super("..."); } Apr 07 00:20:03 clever, http://pastebin.com/WzCq5CLf Apr 07 00:20:13 what would I put in the super statement then clever? Apr 07 00:20:30 Brando753: the senderid Apr 07 00:20:41 that was passed in the constructor though Apr 07 00:21:00 oh Apr 07 00:21:08 I could just import it from commonUtilities Apr 07 00:21:09 Brando753: the service code doesnt pass a value in when constructing it Apr 07 00:21:17 coco89: and what does data.length() return? Apr 07 00:22:44 reran the code to have no change in the error Apr 07 00:22:46 ;_; Apr 07 00:22:53 Brando753: whats the error? Apr 07 00:23:04 well, the bug of not getting an ID Apr 07 00:23:10 guess not an error Apr 07 00:24:03 Brando753: are any of the callbacks in GCMIntentService being called? Apr 07 00:24:26 you saw everything on the main page Apr 07 00:24:41 dont remember seeing them Apr 07 00:24:43 so, no does not look like it Apr 07 00:24:50 why are they required? Apr 07 00:25:06 clever, it returns 7 Apr 07 00:25:32 coco89: and how many characters in 'false' ? Apr 07 00:26:05 5.. Apr 07 00:26:19 so you have 2 extra chracters your not seeing, most likely \r and \n Apr 07 00:26:24 but it said data is true Apr 07 00:26:28 charidge return + life feed Apr 07 00:27:11 try Log.v(TAG,String.format("%d '%s'",data.length(),data)); Apr 07 00:27:19 clever: when i did a log of data it said 'true' but yeh how do i fix the new line thing? Apr 07 00:27:21 okay Apr 07 00:28:45 Brando753: cant think of anything else to check Apr 07 00:28:50 clever, 7 'true' Apr 07 00:29:06 coco89: was that all on one line? Apr 07 00:29:49 clever, nope it was 7 ' / true / ' Apr 07 00:30:08 so theres your problem, you have a \n at the start and begining Apr 07 00:30:16 is or 2nd line? Apr 07 00:30:29 clever, second line Apr 07 00:30:33 bingo Apr 07 00:30:39 it sends one blank line, then starts running php code Apr 07 00:30:42 fix it! Apr 07 00:30:53 oh i see! Apr 07 00:31:49 clever, it now says 6 ' / true / ' Apr 07 00:32:05 coco89: and after the ?> at the end, do you have another blank line? Apr 07 00:32:19 nope Apr 07 00:32:51 can you rename the php file to txt and then give me the url? Apr 07 00:33:12 (and edit out any mysql pw) Apr 07 00:33:42 clever, ok Apr 07 00:35:20 clever, i've sent it in your pm if that's how you meant Apr 07 00:36:03 coco89: you have a space after the ?> Apr 07 00:36:23 oh a space Apr 07 00:36:26 yes woops Apr 07 00:36:52 also, the ?> is optional Apr 07 00:37:03 if you leave the ?> out, then you cant make that mistake Apr 07 00:37:23 I see Apr 07 00:37:36 i've cleared the space it says 5 '/ true/ ' now Apr 07 00:37:55 did you put a space at the beginging of the file? Apr 07 00:38:33 nope Apr 07 00:38:33 and where are the /'s coming from?, i didnt have them in the Log.v cmd Apr 07 00:38:54 clever, you do mean log.v in the app right? Apr 07 00:39:03 yeah Apr 07 00:39:03 i'm not sure maybe it's the string reader? Apr 07 00:39:20 could you pastebin more of the java code? Apr 07 00:39:26 yep Apr 07 00:40:28 clever, http://pastebin.com/PmfvU4RA Apr 07 00:41:52 coco89: line 85, your adding nl after everything you add Apr 07 00:42:03 dont do that, dont use readLine Apr 07 00:42:26 dont use readline? Apr 07 00:42:38 you read a single word ('true') then you blindly add a line seperator to it Apr 07 00:42:42 and screw up everything else Apr 07 00:43:46 clever, so it would read true and enter a new line to get ready for the next line to read, but since there's nothing left it stops at the second line? Apr 07 00:44:10 the problem is that your trying to read it one line at a time (slow, and in this case pointless) Apr 07 00:44:20 then forcing a new line character onto the end, when it was never there to begin with Apr 07 00:44:31 to funny, the HTC Facebook Phone is the first HTC device which doesn't have a skin Apr 07 00:45:12 so if you restore the stock launcher, its a pretty vanilla device Apr 07 00:45:24 clever, I see. So I shuold delete that while loop completely? Apr 07 00:45:35 coco89: you need to just use read, not readLine Apr 07 00:45:42 to get the raw data Apr 07 00:45:48 ah i see Apr 07 00:46:03 and then dont add characters that where never there to begin with Apr 07 00:46:30 clever, what characters? Apr 07 00:47:08 coco89: your doing sb.append(l + nl); Apr 07 00:47:16 nl contains the extra garbage that screwed the code up Apr 07 00:48:04 clever, ah i see Apr 07 00:48:05 coco89: http://www.privatepaste.com/38db767d70 Apr 07 00:48:59 so just replace it with that Apr 07 00:49:03 yeah Apr 07 00:49:15 is there a less complicated way around it? Apr 07 00:49:29 dont remember any others right now Apr 07 00:49:58 clever, kk will try it out Apr 07 00:51:44 coco89: oh wait Apr 07 00:52:24 hmmm, nvm, getContent returns an InputStream Apr 07 00:53:03 so that can just go into line 4 of my pastebin Apr 07 00:54:43 clever, nice :) it works now! Apr 07 00:55:02 clever, not quite sure what's going on when reading characters at a time Apr 07 00:55:13 but yeh glad everything's working now ;) Apr 07 00:55:15 *:) Apr 07 00:55:21 thanks a lot Apr 07 00:55:25 coco89: the code will read up to 1024 characters at once Apr 07 00:55:29 into the 1st buffer Apr 07 00:55:37 then append that to the stringbuffer Apr 07 00:55:40 and repeat Apr 07 00:56:53 clever, ah I see. that's awesoe finally got this sorted thanks a lot! Apr 07 00:57:00 Now to make this thing secure... Apr 07 00:57:00 lol Apr 07 00:57:01 :P Apr 07 00:57:05 i'll look at that tomorrow Apr 07 00:57:23 first security problem, passwords can be sniffed over http Apr 07 00:58:35 I see, so if i just add an s that will work right Apr 07 00:58:53 and you will need a valid ssl cert on the server Apr 07 01:00:03 and youll need to use prepared statements and bind variables at the server end, or anybody can sql inject it like timroes did Apr 07 01:00:08 and read all the rows, or worse Apr 07 01:02:26 clever, sounds good will get at that tomorrow. I've been spending hours trying solve this issue I might faint Apr 07 01:02:35 thanks for your help! Apr 07 01:13:46 how do you guys manage your 3rd party lib dependencies? Like ActionBarSherlock and what not? Apr 07 01:16:29 gkatsev: lots of guys at work use Maven Apr 07 01:17:48 :/ mvn Apr 07 01:19:26 Will the getinetaddress/gethostaddress IP always match the IP my web server sees from a mobile android client? it works for me, but I don't know if that will always be the case. Apr 07 01:19:41 gkatsev: yea I'm not big on it myself Apr 07 01:19:49 but I couldn't find any other solutions Apr 07 01:20:01 andrewcarter: yeah, we used mvn at work. Don't really want to do it for a personal project, though Apr 07 01:20:14 gkatsev: I'm just putting the dang jars in my project Apr 07 01:20:15 lol Apr 07 01:20:25 gkatsev: I do iOS at work but am learning android at home for fun Apr 07 01:20:29 yeah, I probably will just do that Apr 07 01:20:36 shame there's nothing like gems / cocoapods / etc Apr 07 01:21:11 didn't even know that something like cocoapods existed. Apr 07 01:21:21 cocoapods is amazing Apr 07 01:21:24 I've been spoiled by npm for nodejs because it's so nice Apr 07 01:21:40 I can imagine cocoapod being nice if you do obj-c Apr 07 01:21:46 very much so Apr 07 01:22:00 also, with android it's hard finding libs Apr 07 01:22:35 gkatsev: if you dont want to go full crazy with maven, you can just use the regular ant build stuff with ivy Apr 07 01:22:45 but, the gradle stuff is coming out soon too ... Apr 07 01:22:56 g00s: what does ivy / gradle do? Apr 07 01:23:04 so probably no point right now going crazy investing in an elaborate build system Apr 07 01:23:15 http://ant.apache.org/ivy/ ivy? Apr 07 01:23:24 andrewcarter: ivy is a dependency manager on top of ant, which hits maven repos Apr 07 01:23:31 oh interesting Apr 07 01:23:38 so you can use maven without having to use maven Apr 07 01:23:39 its "maven light" Apr 07 01:23:43 yeah Apr 07 01:23:54 i started with maven during its 1.0 days, oh man that was aweful Apr 07 01:24:00 2.0 was much better Apr 07 01:24:07 what do most people use on android dev ivy or maven? Apr 07 01:24:16 probably maven Apr 07 01:24:27 i mean, ant sucks in its own way Apr 07 01:24:32 regardless of dependencies Apr 07 01:25:09 what's wrong with ant? Apr 07 01:25:12 the last tech radar from ThoughtWorks said "avoid maven" ;) Apr 07 01:25:17 (not trolling I just have no idea) Apr 07 01:25:26 avoid maven for android? Apr 07 01:25:29 or in general? Apr 07 01:25:31 well, maven is more declarative Apr 07 01:25:42 ant is more - trying to embed a strange DSL into xml Apr 07 01:26:03 its been around forever. its like vim vs emacs; you can find long debates on the interwebs Apr 07 01:26:25 maven is based on a plugin architecture Apr 07 01:26:52 well, thats lame, of course it is Apr 07 01:26:56 anyhow Apr 07 01:27:16 i'm betting at i/o the gradle stuff is done Apr 07 01:27:28 or at least usable; we'll all probably wind up using that Apr 07 01:27:32 I'll just stick with ant because intelliJ just uh- does it Apr 07 01:27:34 :3 Apr 07 01:27:35 unless you have some big maven love affair Apr 07 01:28:37 :) Apr 07 01:28:37 g00s: gkatsev: what do most people use for networking on android these days? Apr 07 01:29:05 I was messing with http://loopj.com/android-async-http/ Apr 07 01:29:12 but wasn't really blown away Apr 07 01:29:59 i'm not sure; personally i would probably go with apache http client jarjar'd as a dependency Apr 07 01:30:19 https://github.com/octo-online/robospice maybe? Apr 07 01:31:03 maybe http://code.google.com/p/kryonet/ as well Apr 07 01:31:06 * gkatsev has no clue Apr 07 01:31:13 haven't done android in a while Apr 07 01:31:17 thanks I'll check out all of those Apr 07 01:31:19 trying to jump back in Apr 07 01:31:51 gkatsev: The biggest problem I'm having with learning android is there being no definite answers / solutions with some things Apr 07 01:32:00 to many options :p Apr 07 01:32:09 stack overflow :/ Apr 07 01:32:41 g00s: I mean stuff like "best http lib" Apr 07 01:32:47 like best way to do X kind of stuff Apr 07 01:32:51 conventions and what not Apr 07 01:33:03 yeah, and some of those things have changed over time Apr 07 01:33:11 X_X Apr 07 01:33:22 g00s: and like I'm learning java here at the same time Apr 07 01:33:23 even that Apr 07 01:33:31 andrewcarter: I think that's related to the whole no having a package manager type thing as well. For the longest time android libs were just folders you passed around Apr 07 01:33:32 like the google style guides say to use mName for fields Apr 07 01:33:34 brb Apr 07 01:33:43 but then in lots of examples they don't do that Apr 07 01:33:47 so I'm just like /= Apr 07 01:33:56 oh, heh - dont worry about that Apr 07 01:34:08 their code uses hungarian, you dont have to Apr 07 01:34:26 g00s: I know it doesn't matter but I just want to like, "do it right" Apr 07 01:34:28 :p Apr 07 01:34:40 i think do it right == no hungarian Apr 07 01:34:49 :) Apr 07 01:34:56 i mean, if you are going to submit a patch to AOSP then ... Apr 07 01:35:27 andrewcarter: when i/o is out, iosched code gets updated and usually reflects the latest wisdom on good practice Apr 07 01:36:03 but there are other examples, although i can't remember them off hand Apr 07 01:39:04 g00s: except it isn't quite hungarian notation... Apr 07 01:41:24 also, looks like http://www.androidviews.net/ http://www.theultimateandroidlibrary.com/ are some of the places to look for libs at Apr 07 01:57:35 Can IntentService#onHandleIntent(Intent) ever be called multiple times at once? I know IntentServices are singletons, but the onHandleIntent could be called by multiple invokers? Apr 07 02:08:35 is this possible: String[] cool = new String[] { "This" + String , "This2" + String 2} ? Apr 07 02:08:59 agy2154, yep Apr 07 02:09:24 kaneda^, Thanks. Is that the thing thats called concatination or something like that? Apr 07 02:09:44 well, a string is immutable in java Apr 07 02:09:58 but at least the regular jvm unrolls those into stringbuilders Apr 07 02:10:09 or, compilation does this, rather Apr 07 02:10:16 and i assume it does so for android Apr 07 02:11:54 kaneda^, thanks. By the way would you recommend this: http://www.ebay.com/itm/New-Duemilanove-Board-2009-ATmega328-PU-Arduino-compatible-/300841951525?pt=LH_DefaultDomain_0&hash=item460b93e125 ? Is there a channel for ardunio? Apr 07 02:12:14 agy2154, did you try #arduino or ##arduino ? Apr 07 02:13:12 none are available. Maybe Java? Apr 07 02:13:29 depends what you're looking for Apr 07 02:14:29 ohh snap there are people on arduino Apr 07 02:14:30 thanks Apr 07 02:15:52 ;p Apr 07 02:27:40 I'm trying to remove the actionbar and everything goes black why is that? Apr 07 02:31:13 once you go black you never go back Apr 07 02:33:34 * xximjasonxx nudges his emulator. Please start Apr 07 02:33:53 hello, I'm looking forward to do a map for my univeristy campus in android .. someone know how can I proceed? How can I actually "draw" the map? Apr 07 02:35:11 kulas: usually you draw shapes on a Google map via layering Apr 07 02:35:50 xximjasonxx: the problem is that not all the buildings in my campus are in google maps :S Apr 07 02:36:57 hey guys, what's the proper way to stop a Thread? Apr 07 02:38:34 it depends. i highly recommend "Java Concurrency in Practice" for understanding threading issues. In general you want to set a flag (probably a volatile or atomicboolean) and have the thread periodically check that and then exit when it's set Apr 07 02:38:40 hesperaux: in your case, you are probably blocked on a socket read in your thread - so closing the socket and setting the interrupt flag Apr 07 02:38:56 xximjasonxx: I can draw the building via layering, sorri for dont understand you before haha ..is there a way to show only my campus in google maps? I mean if I can cut everything else Apr 07 02:39:35 kulas: I have never tried such a thing before. There is the principle of clipping, not sure if it can be used within Google Maps API Apr 07 02:39:39 so you are saying I should let the garbage collector kill it? Apr 07 02:39:47 i was asking how to explicitly stop a thread Apr 07 02:40:05 if it needs to be done by the thread itself, that's fine. but i don't know how to do that Apr 07 02:40:30 * g00s == kevinb , JCIP ftw Apr 07 02:40:40 * xximjasonxx loves watching Ghost in the Shell Apr 07 02:41:14 sleepy,i need a good documentary to fall asleep to Apr 07 02:41:50 brx_, heh. TPB AFK was interesting (the pirate bay away from keyboard) Apr 07 02:42:25 hesperaux: im saving that one Apr 07 02:44:07 hesperaux: onDestroy in the service must stop the thread Apr 07 02:44:35 right, that's what i'm trying to do. but how do I stop the thread correctly? Apr 07 02:44:50 hesperaux: make the looper return Apr 07 02:45:20 hesperaux: Looper.quit() Apr 07 02:45:35 heh, i never would have guessed that one. thanks Apr 07 02:45:36 that will cause the Looper.loop() function to return, and then your Thread.run() is done Apr 07 02:45:53 hesperaux: luke, use the source! Apr 07 02:46:20 hehe Apr 07 02:46:42 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/Looper.java Apr 07 02:46:50 hesperaux: look at the loop function for fun! Apr 07 02:47:13 * hesperaux begins the fun Apr 07 02:47:31 hesperaux: line 125 is related to quit Apr 07 02:50:19 hesperaux: hmmm, looks like everything eventualy leads to nativeWake in MessageQueue Apr 07 02:50:39 it adds messages and runnables to a normal java array, then uses nativeWake to poke the target thread Apr 07 02:50:50 that then wakes up, notices things in the array, and handles them Apr 07 02:53:36 this google cloud messaging seems pretty slow, could be the way I am doing it Apr 07 02:54:07 xximjasonxx: i find that there is a lot of jitter to it, sometimes its under a minute, sometimes its much longer Apr 07 02:54:26 it also tends to bulk up between apps Apr 07 02:54:34 my own app and facebook often ding at the same time Apr 07 02:54:53 lovely Apr 07 02:55:14 i guess it depends heavily on the code inside gsf.apk, which is closed source Apr 07 02:55:29 it seems to poll google servers and multiplex many apps into one call Apr 07 02:55:32 i want to make a login and registration activity which connects with external mysql. how can i make this transaction secure? Apr 07 02:55:34 efficiency thing Apr 07 02:55:51 Abhijit: best to just make a server side program to handle the actual sql calls Apr 07 02:56:21 ok. Apr 07 02:56:44 clever, but at time of registration and login i need to send the details of username and password to database. Apr 07 02:57:11 Abhijit: youll have a program runnign at the server (over http likely) that handles that Apr 07 02:57:22 basicaly the same thing as how a user normaly registers on a website Apr 07 02:57:37 you are not getting my point Apr 07 02:58:03 if the app can directly connect to mysql, any user can extract the pw, and edit anything in the database Apr 07 02:58:05 when my android application send this username and password over http using get or post at that time anyone can read it. i want it to be secured. encrypted. Apr 07 02:58:06 including reading every users password Apr 07 02:58:13 use https Apr 07 02:58:17 then use https for that step Apr 07 02:58:29 so i just have to use httpsrequest? thats all? Apr 07 02:58:32 nothing special? Apr 07 02:58:41 and run a properly configured https server Apr 07 02:58:54 and use post, not get generally Apr 07 02:58:57 and for that the website must have a valid ssl certificate right? Apr 07 02:59:03 yep Apr 07 02:59:06 ok Apr 07 02:59:07 well, not exactly Apr 07 02:59:12 kaneda^, ? Apr 07 02:59:15 it must have a ssl certificate Apr 07 02:59:21 validity is a little less clear Apr 07 02:59:24 you could use a private ssl cert, with the public half embeded in the app Apr 07 02:59:25 ok so this tutorial is telling me to use the Project ID as per my API Access entry, but on this page I only see my API Key Apr 07 02:59:32 but thats more work (and free) Apr 07 02:59:34 where can I see this Project Id? g00s Apr 07 02:59:36 clever, so am i correct to say that if I made a thread without a looper, it would execute once and die? is it the looper that keeps the thread alive? Apr 07 02:59:44 kaneda^: now that i am learning git, when i see your nick i think the commit parent of kaneda Apr 07 02:59:56 ok **** ENDING LOGGING AT Sun Apr 07 02:59:58 2013