**** BEGIN LOGGING AT Tue Mar 05 02:59:58 2013 Mar 05 03:03:00 hm actually 2 instances of my app are now active o_O Mar 05 03:03:08 getting confused Mar 05 03:10:20 osxorgate: did you change the name of it at some point ? Mar 05 03:10:45 it appears that it's to do with how the app is started, from an IDE or not.. Mar 05 03:11:06 http://code.google.com/p/android/issues/detail?id=5277 Mar 05 03:12:40 ugh Mar 05 03:12:46 why's this so hard.... Mar 05 03:13:25 You must have leveled up Mar 05 03:14:29 kakazza: yeah, definitely Mar 05 03:15:18 kakazza: https://developer.android.com/reference/android/media/MediaRecorder.VideoSource.html <-- did you know there's an undocumented 3rd option called GRALLOC_BUFFER? Mar 05 03:15:31 HorizonXP: don't use it :) Mar 05 03:16:59 romainguy_: AOSP's Camera app uses it Mar 05 03:17:14 and I can't figure out a better way to do what I'm looking to do. Mar 05 03:18:52 romainguy_: unless you have a suggestion? Mar 05 03:32:21 insane, cwazy, and interesting 9.9 https://www.facebook.com/notes/facebook-engineering/under-the-hood-dalvik-patch-for-facebook-for-android/10151345597798920 Mar 05 03:32:45 oh god Mar 05 03:32:49 dont get me started on FB ~_~ Mar 05 03:33:27 every 5 seocnds it says i have no network conncetion Mar 05 03:34:11 g00s: yeah i read that Mar 05 03:34:15 nuts Mar 05 03:34:58 "Manual inspection of the GSII revealed that the LinearAlloc buffer was only 4 bytes from where we expected it, so we adjusted our code to look a few bytes to each side if it failed to find the LinearAlloc buffer in the expected location. " .. at this point, i would have started looking for another solution :/ Mar 05 03:35:17 There was no way to work around this with dex files since all of our classes were being loaded into one process, and we weren’t able to find any information about anyone who had faced this problem before (since it is only possible once you are already using multiple dex files, which is a difficult technique in itself). We were on our own. Mar 05 03:35:29 if you're the only one encountering a problem, that gives you a good hint as to where the problem actually lies Mar 05 03:36:02 this sounds like the 65k method limit, but maybe it isn't ? Mar 05 03:36:19 g00s: i think they hit 2 million methods Mar 05 03:36:24 which is freakin insane Mar 05 03:36:52 yeah … but sometimes you drag in libraries that get you half way there :P Mar 05 03:37:03 * g00s looks at guava Mar 05 03:37:34 i dont even Mar 05 03:37:55 facebook is not the biggest or most complicated app Mar 05 03:38:02 i dont know what they did Mar 05 03:38:12 well actually i have a pretty good idea after talking with a few of their engineers Mar 05 03:38:15 but the way they "fixed" it Mar 05 03:38:37 hey my car is too slow. so i'll attach a rocket to the back. that will work right? Mar 05 03:38:54 Should! Mar 05 03:39:25 and a flux capacitor :) Mar 05 03:39:59 not a facebook user but it all sounds rather bloated Mar 05 03:40:30 bloated? Mar 05 03:40:32 nah Mar 05 03:41:30 lol Mar 05 03:41:41 eh, they got it done Mar 05 03:41:51 that's really all that matters Mar 05 03:42:55 I have a question about Google I/O. Is the right channel for this kinda question? Mar 05 03:44:36 all your questions will be answered in ten days :) Mar 05 03:45:05 i heard this year all attendees get one of them selfdriving cars Mar 05 03:45:11 I need help with this activity, not sure what I'm doing wrong :/ Mar 05 03:45:29 it worked, I just copied my program again, but I keep getting unable to start activity Mar 05 03:45:39 yes and no... I'm not a full-on android developer but I really want to attend Google I/O. I'm a full time engineer, part-time student and I'm worried that I won't be able to get tickets. Mar 05 03:45:57 I heard that tickets sold out in under a minute last year? Mar 05 03:46:59 Rob|boR: do you have a question we might answer Mar 05 03:47:12 I'm copying my code to pastebin Mar 05 03:49:27 ok this is my code: http://pastebin.com/JELGy1Me Mar 05 03:49:52 when I click on the Gold option, it crashes. Mar 05 03:49:55 melow01: yeah it's kinda ridiculous. Mar 05 03:50:15 so when I select case 0. Mar 05 03:50:38 HorizonXP, is there any chance for a regular-Joe to get a ticket to attend? Mar 05 03:50:50 thank you in advance osxorgate Mar 05 03:50:51 :) Mar 05 03:52:23 Rob|boR: no crash on other items? Mar 05 03:52:54 when I select Gold or Blue garage it crashes, of course they are linked to the same Gold.java Mar 05 03:53:04 the other options give me the toast message. Mar 05 03:53:40 what does the error tell you Mar 05 03:54:12 melow01: no idea, I've never tried nor have I been. Mar 05 03:54:13 in the app? it says Unfortunately, Intelligent Parking System has stopped. Mar 05 03:54:30 through Eclipse, I pasted the logcat in pastbin, should be the last section Mar 05 03:54:33 Rob|boR: I think he means the exception Mar 05 03:54:43 it tells you the exact line the crash happens Mar 05 03:54:43 hi StingRay_ Mar 05 03:54:45 cause it's telling you why there Mar 05 03:55:03 HorizonXP, OK, thanks Mar 05 03:55:07 exact line and reason :) Mar 05 03:55:24 I don't see it :(, unless it's line 2088 ...I don't have 2088 lines >_> Mar 05 03:55:31 it says, unable to start activity componentInfo Mar 05 03:55:36 nullpointerexception Mar 05 03:55:43 you dont see a exception thrown ? Mar 05 03:55:53 and the line ? Mar 05 03:56:05 03-04 22:48:34.446: E/AndroidRuntime(13798): FATAL EXCEPTION: main Mar 05 03:56:05 03-04 22:48:34.446: E/AndroidRuntime(13798): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.intelligentparkingsystem/com.example.intelligentparkingsystem.Gold}: java.lang.NullPointerException Mar 05 03:56:05 03-04 22:48:34.446: E/AndroidRuntime(13798): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2088) Mar 05 03:56:20 btw my life got a lot easier when i stepped away from listactivity and made my own adapters Mar 05 03:56:25 further down Mar 05 03:56:33 35 Mar 05 03:56:36 yay Mar 05 03:56:44 and stop pasting fluff in the channel Mar 05 03:56:52 you have pastebined it already Mar 05 03:57:02 oh thought you guys didn't see it lol Mar 05 03:57:05 excuse my fluff Mar 05 03:57:09 Hey guys. I have a question...I have a ListView that I populate dynamically. When someone clicks an item I have a submenu ListItem that I also populate dynamically. The first one seems to get focus just fine. I can press the up/down buttons to navigate it Mar 05 03:57:13 so on line 35 you are using something that is null Mar 05 03:57:20 but once the second one is displayed I cannot navigate with up/down Mar 05 03:57:21 I think you should figure out what that is Mar 05 03:57:46 then when I go to some other view and return to the second menu, I have navigation in the second menu. Pressing back again to get to the first menu means the first menu doesn't get focus Mar 05 03:57:50 ProgramMax: up/down ?? they still have those ? Mar 05 03:57:54 wow Mar 05 03:57:55 so it seems like both *can* have focus Mar 05 03:58:03 well, I'm developing for a non-touch-screen device Mar 05 03:58:21 a little rare, I know :) Mar 05 03:58:42 and oddly now I'm craving an up/down button Mar 05 03:59:03 Anyway, I tried throwing a myListView.requestFocus(); in there. That returned true. But it still behaves poorly. I probably threw it in the wrong spot?? Mar 05 03:59:11 I'm new to android dev...this just got thrown on my lap Mar 05 03:59:34 ProgramMax: there are 2 focus types afaik Mar 05 04:00:03 cause you can do requestFocusFromTouch also right ? Mar 05 04:00:24 yes Mar 05 04:00:33 you dont have any touch ? Mar 05 04:00:39 as in touchscreen inpute ? Mar 05 04:00:42 input? Mar 05 04:00:43 well...not really? Mar 05 04:00:45 this is for the Ouya Mar 05 04:01:01 there is a touch pad, but it is not the normal input method Mar 05 04:01:04 then you could probably disable it on all view inc your list Mar 05 04:01:32 ProgramMax: http://www.youtube.com/watch?v=wDBM6wVEO70 Mar 05 04:01:39 it's so WEIRD, same class in a standalone app runs great. is able to getJSONarray spaces Mar 05 04:01:44 I would prefer to do this without breaking the existing android branch Mar 05 04:01:48 if that is possible at all Mar 05 04:01:50 but when I put it in this app, it shows that error Mar 05 04:01:50 will watch Mar 05 04:01:55 that romain guy is a bit odd, but other than that the vid is good Mar 05 04:01:57 :) Mar 05 04:02:09 thanks Mar 05 04:02:40 wow, good work facebook, :/ Mar 05 04:02:54 Rob|boR: so figure out what is null when it gets to that line Mar 05 04:04:25 it shouldn't be null though -_-, different app I have setup with 1 activity works Mar 05 04:04:39 didnt ask Mar 05 04:04:48 I said figure out whats null Mar 05 04:05:19 at line 35? Mar 05 04:05:29 yeah Mar 05 04:05:48 if(something==null){log.d("OMG","this is null");} Mar 05 04:06:44 hmm Mar 05 04:36:54 yeah, recreated that program again, to see if it's really null. worked perfectly -_- Mar 05 04:36:59 I don't understand why its null Mar 05 04:37:03 spaces does exist Mar 05 04:38:50 what was null ? Mar 05 04:39:19 do you know what's null? you don't need to tell me whats null. Mar 05 04:39:36 huh? Mar 05 04:39:53 you are asking me whats null, but I was wondering if you already knew whats null Mar 05 04:40:01 oh no Mar 05 04:40:10 well I don't see anything null Mar 05 04:40:29 well what was null on that line Mar 05 04:40:40 ? Mar 05 04:40:49 there is nothing null on that line.. :/ Mar 05 04:40:54 spaces is not null Mar 05 04:40:58 spaces exists Mar 05 04:41:05 what ? Mar 05 04:41:15 you know what null is right ? Mar 05 04:41:17 StingRay_: i think you're wasting your time -_-# Mar 05 04:41:28 null is nothing Mar 05 04:41:34 null null null Mar 05 04:41:39 I know what null is Mar 05 04:41:39 -_- Mar 05 04:41:41 well, it's the absence of something Mar 05 04:41:43 WHAT IS NULL Mar 05 04:41:52 name of primitive/object Mar 05 04:42:06 or rather name of the pointer* Mar 05 04:42:18 anyone speak Maori here ? :) Mar 05 04:42:20 Rob|boR: so best to find out what was nothing Mar 05 04:42:34 eg your listView Mar 05 04:42:48 was your listView null at that point that you tried using it Mar 05 04:43:01 then if it was, why ? etc Mar 05 04:43:23 g00s: do you happen to use a laptop docking system by any chance? Mar 05 04:43:36 Trinsta: nope :( Mar 05 04:43:57 yes, because it wasn't created yet Mar 05 04:44:26 no that was an example Mar 05 04:44:37 but you should check all the object on that line Mar 05 04:44:41 see what is null Mar 05 04:44:47 g00s: i'm about to convert my 5 year old alienware desktop to a linux !!! Mar 05 04:44:52 or rather what is pointing to null Mar 05 04:45:09 g00s: gotta play CS:GO one more time on XP before I need to use wine Mar 05 04:45:11 Trinsta: use linux before? i hope you dont have to use that ndis-wrapper crap Mar 05 04:45:39 but what troubles me, is the code works in a standalone app. wasn't null there Mar 05 04:45:39 played with linux before, never really went for it. but I think it's fair time enough for me to dive in Mar 05 04:45:57 Rob|boR: all that is irrelevant Mar 05 04:45:59 Trinsta: what distro will you try ? Mar 05 04:46:13 until you FIND out what was null Mar 05 04:46:18 then you find out why Mar 05 04:46:19 Probably Unbutu and move on to Debian Mar 05 04:46:21 etc Mar 05 04:47:13 g00s: what distro do you run? Mar 05 04:47:19 the variable json is null Mar 05 04:47:33 Trinsta: try mint Mar 05 04:47:53 nvm wrong line Mar 05 04:47:55 mhmm, thats on my list as well. I want to try all of the major distros and then play with some server distros Mar 05 04:48:18 Trinsta: well for me there is but 1 server distro Mar 05 04:48:36 ent. class Mar 05 04:48:39 centos Mar 05 04:48:49 I use it as a solid workstation too Mar 05 04:48:55 ahh centos, my current DS runs that. one of the major reasons im Mar 05 04:49:14 going to switch over to Linux, so I can finally manage my own server without a help of a friend Mar 05 04:49:29 centos is on my 2 net servers too Mar 05 04:49:40 managed somewhat horribly by me Mar 05 04:50:13 I'm about as far from a sys admin that you can get Mar 05 04:50:16 json is not null Mar 05 04:50:19 without total fails Mar 05 04:50:36 Rob|boR: didnt ask what wasnt null, only what is Mar 05 04:50:40 the JASONARray is Mar 05 04:50:48 there ya go then Mar 05 04:52:00 Can somebody confirm if my understanding is correct: When an application launches, it first inflates the XML, and then creates and calls the OnStart of a MainActivity (or whatever class is specified) Mar 05 04:52:40 Trinsta: i used fedora, rhel, ubuntu, gentoo Mar 05 04:52:49 & slack Mar 05 04:53:27 g00s: you have 40% respect from me Mar 05 04:53:29 :) Mar 05 04:53:48 why only 40? haha Mar 05 04:53:54 so how would I resolve that Mar 05 04:54:02 by instantiating Mar 05 04:54:04 I read the description about JSONArray and how it handles null Mar 05 04:54:16 well I cant understand how some1 can like ubuntu now Mar 05 04:54:20 I used to Mar 05 04:54:25 but not in the last few years Mar 05 04:55:26 if i was getting back into linux now i would have to check out arch Mar 05 04:55:30 thought Ubuntu was a good starting point. StingRay_: do you think Mint would be better? Mar 05 04:55:41 Trinsta: god yes Mar 05 04:55:46 maybe sebayon, probably not though Mar 05 04:55:50 StingRay_: I haven't used the other distro's, but the lack of system maintenance required has its appeal. Mar 05 04:55:54 you only have to do one thing with mint to make it mint Mar 05 04:56:20 thats setup browser to google Mar 05 04:56:40 with ubuntu there is the amazon stuff, tracking stuff, ads etc Mar 05 04:56:49 just a messy thing now I think Mar 05 04:56:52 can that be removed easily ? Mar 05 04:57:05 well sure anything can Mar 05 04:57:11 *easily* Mar 05 04:57:12 StingRay_: You're aware that mint is an ubuntu derivative now? Mar 05 04:57:14 ? :) Mar 05 04:57:14 but why should I have to spend time doing it Mar 05 04:57:25 maslen: yes Mar 05 04:57:26 StingRay_: yup you convinced me, i love a clean install Mar 05 04:57:41 without the commercial influence, cept for the 1 search issue Mar 05 04:57:49 oh, and my favorite was xubuntu :D Mar 05 04:58:06 oh yeah thats good, I have that in a vm for some video stuff Mar 05 04:58:06 even though it seemed like half og gnome was running regardless Mar 05 04:59:23 i consider Fedora rawhide for rhel :) Mar 05 04:59:37 it seemed so unstable towards the end there Mar 05 05:00:00 you guys seen the win8 figures ? Mar 05 05:00:02 so i never considered it for server; then of course there was CentOS for that Mar 05 05:00:13 about 20% less takeup than vista Mar 05 05:00:15 not sure what I need to modify Mar 05 05:00:21 win8 rocks! Mar 05 05:00:35 Rob|boR: ok now I know your > 17 Mar 05 05:00:39 oops Mar 05 05:00:42 < 17 Mar 05 05:00:54 -_- Mar 05 05:01:08 what wrong with saying win8 rocks Mar 05 05:01:27 nothing if your between 7 - 17 years old Mar 05 05:01:38 after that people may assume there is something wrong with you Mar 05 05:01:44 :) Mar 05 05:01:45 howcome Mar 05 05:01:51 i would have said 7-15 Mar 05 05:02:03 Rob|boR: Us old folks are accustomed to a different style, and didn't grow up with fancy cell phones Mar 05 05:02:11 bankai_: weren't you the one who binned their motorcycle ? Mar 05 05:02:22 I didn't grow up with fancy cell phones Mar 05 05:02:25 it was a slight mishap, ok :P Mar 05 05:02:28 I had a regular clamshell phone Mar 05 05:02:29 :( Mar 05 05:02:37 I didn't even have data on it lol Mar 05 05:03:05 Rob|boR: And how old were you when you got said phone? Mar 05 05:03:10 the only thing I can think of is the parsin is wrong Mar 05 05:03:18 I was like 12? Mar 05 05:03:44 actually no, I was like 16 Mar 05 05:07:30 StingRay_, i'm offended =[ im 17 Mar 05 05:08:52 one of the reasons why im really into delving into linux though is the repositories Mar 05 05:11:19 sigh Mar 05 05:11:45 Trinsta: you're going to find out they are almost always far behind :| Mar 05 05:12:06 i let the OS install the base crap; and then the important tools - like eclipse - i would put on manually Mar 05 05:12:26 sometimes used Graft / Stow as an ad-hic package manager Mar 05 05:13:39 how do I make JSONArray not null? Mar 05 05:13:47 pastebin whatever you have Mar 05 05:13:55 now i've succumbed to OS X's brain-dead system of no packages ; just stuff thrown everywhere ;) Mar 05 05:13:59 somehow it works 9.9 Mar 05 05:14:01 Trinsta, who? Mar 05 05:14:03 JSONArray array = new JSONArray(); Mar 05 05:15:50 g00s: what ? Mar 05 05:15:59 StingRay_: wut :) Mar 05 05:16:01 this is my current one JSONArray earthquakes = json.getJSONArray("spaces"); Mar 05 05:16:19 get organised, symlinks caching and a packagemanager Mar 05 05:16:21 so I need to declare it again before it Mar 05 05:16:22 ? Mar 05 05:16:32 Rob|boR, you're getting a jsonArray from json... Mar 05 05:16:42 yes Mar 05 05:16:51 StingRay_: :| Mar 05 05:16:55 arn't you trying to put a JSONArray into json? Mar 05 05:17:25 I'm trying to get the array in json into earthquake Mar 05 05:18:00 this is my old code, but here http://pastebin.com/JELGy1Me Mar 05 05:18:12 line 121 Mar 05 05:18:41 hold on, playing cs:go will respond once match ends Mar 05 05:18:57 ok Mar 05 05:22:18 StingRay_: have any experiences with homebrew ? Mar 05 05:22:24 if you're getting a NPE it's probably because JSONfunctions.getJSONfromURL is returning null, thus 'json' is null, so when you're doing json.get* it's throwing an exception Mar 05 05:22:46 g00s: on what ? Mar 05 05:23:00 on mac ? :P Mar 05 05:23:25 oh you mean packman Mar 05 05:23:41 thought you ment off the grid development for a given platform Mar 05 05:23:42 :) Mar 05 05:24:13 still have macPorts installed Mar 05 05:24:20 willing to try something else though Mar 05 05:24:21 :) Mar 05 05:25:24 Rob|boR, what does your logcat say? componentinfo right? Mar 05 05:25:32 could you do a google of what component info would occur? :) Mar 05 05:25:53 it says unable to start activity componentinfo Mar 05 05:26:51 ok I googled it Mar 05 05:27:19 why would it occur? Mar 05 05:27:45 hint: nullpointer is not referring to your JSON Mar 05 05:27:48 it mentions the maniseft Mar 05 05:28:17 check your manifest then Mar 05 05:28:56 I did, I have gave itt he proper permissions, I see all the activities Mar 05 05:29:22 and strings look correct Mar 05 05:30:05 pastebin manifest Mar 05 05:31:03 http://pastebin.com/wTCMeTSY Mar 05 05:31:25 and while youre at it also pastebin this com.example.intelligentparkingsystem.Gold Mar 05 05:31:35 oh nvmd you already did Mar 05 05:33:43 should I include the JSONfunctions.java? Mar 05 05:34:13 go for it Mar 05 05:34:36 http://pastebin.com/k5qspjUB Mar 05 05:36:06 why do you have 3 separate try catches -.- Mar 05 05:36:40 and what did logcat log before the FATAL ERROR Mar 05 05:37:28 hmm Mar 05 05:38:04 hey, any bluetooth dev's around? Mar 05 05:38:17 03-05 00:37:28.657: E/log_tag(22682): Error in http connection android.os.NetworkOnMainThreadException Mar 05 05:38:17 03-05 00:37:28.657: E/log_tag(22682): Error converting result java.lang.NullPointerException Mar 05 05:38:17 03-05 00:37:28.667: E/log_tag(22682): Error parsing data org.json.JSONException: End of input at character 0 of Mar 05 05:39:36 Rob|boR, JSONfunction isn't parsing correctly. whats happening is you created a jArray variable and returning it Mar 05 05:39:54 all of your Try/Catch's failed and thus that method is returning jArray which was set to null Mar 05 05:40:06 ah I see Mar 05 05:40:17 but it's failing because it won't connect? Mar 05 05:40:17 JSONObject in Gold.class through that method gets the value of NULL Mar 05 05:40:21 or because it cna't parse it Mar 05 05:40:30 no, its failing because you implemented it wrong Mar 05 05:40:34 :o Mar 05 05:40:53 anyone knows Bluetooth 4.0? or just bluetooth? Mar 05 05:40:55 it can't read the http page, and thus it can't convert or parse Mar 05 05:41:15 i'm going to have to be blunt Mar 05 05:41:17 ah Mar 05 05:41:21 your best bet in all honesty, is Mar 05 05:41:22 http://developer.android.com/guide/components/index.html Mar 05 05:41:29 and http://docs.oracle.com/javase/tutorial/ Mar 05 05:41:54 dialogfragments? Mar 05 05:42:18 rather, http://docs.oracle.com/javase/tutorial/java/index.html Mar 05 05:42:57 language basics -_- Mar 05 05:43:00 no, you're not following java convention. you're not reading your logcats correctly and frankly you sort have been wasting StingRay_ and my time Mar 05 05:43:16 those two docs will help you 1000x more than us Mar 05 05:43:39 i sincerely dislike when people file bug reports but don't give you any useful information :( Mar 05 05:43:43 speak for yourself, only 999x more than me ! Mar 05 05:52:44 canadiancow: you done any android games ? Mar 05 05:52:50 have you* Mar 05 05:53:10 for some reason I feel I need to use complete english due to your nickname Mar 05 06:21:41 Is the XPERIA ZL 's IR sensor both TX and RX ? Mar 05 06:25:14 pfft IR; my phone has a freaking laser! Mar 05 06:25:25 who what?! Mar 05 06:25:49 ron_frown: hey, did you see ubuntu was going with Mir over Wayland ? Mar 05 06:25:59 haha Mar 05 06:26:02 dont know what mir is Mar 05 06:26:04 * g00s has no idea wtf Mir is, how many of these things are there :P Mar 05 06:26:10 but it doesnt REALLY surprise me Mar 05 06:26:58 ron_frown: http://news.ycombinator.com/item?id=5319434 Mar 05 06:27:11 I see the announcement Mar 05 06:27:13 IR = InfraRed g00s Mar 05 06:27:30 they say they couldnt bend compositing friendly protocol to their cross device whims Mar 05 06:27:33 I wonder what that means Mar 05 06:27:38 cause its not like x is better =) Mar 05 06:27:51 XDS2010: yeah, i played with IRDA like 20 years ago :P Mar 05 06:28:08 while you were a toddler? Mar 05 06:28:15 ya! Mar 05 06:28:23 g00s hows shit going? Mar 05 06:28:37 i'm uninterested in his bowel movements Mar 05 06:29:12 g00s: you must be old then Mar 05 06:29:21 ron_frown: looking at mqtt, vert.x, mina, and moquette ;) Mar 05 06:29:28 ahhh nice Mar 05 06:29:36 you'll have to let me know how you fair Mar 05 06:29:41 I gotta get some shit together in a POC Mar 05 06:29:47 moquette uses lmax disruptor; tat thing again Mar 05 06:29:47 and I'm working that setup at my house Mar 05 06:30:06 I thought these were all queues for lp bt Mar 05 06:30:07 ron_frown: don't shrink the kids with your laser Mar 05 06:30:18 HAHAHA Mar 05 06:30:21 funny you should say that Mar 05 06:30:29 ron_frown: "fare" Mar 05 06:30:35 well not really that funny Mar 05 06:31:07 pragma- my brain is able to comprehend misspellings /misused grammar etc Mar 05 06:31:28 irc would be total nonsense without that gift Mar 05 06:31:49 ron_frown: yes, that is how I was able to correct you Mar 05 06:31:57 i'm still getting used CR being used as punctuation however Mar 05 06:32:32 sometimes, coming up with a name for a project is the hardest part :| Mar 05 06:33:01 I guess my point is language is language Mar 05 06:33:05 if you can read it and comprehend it Mar 05 06:33:10 great, if not Mar 05 06:33:11 oh well Mar 05 06:33:45 its not that I dont value spelling... or understand why it matters, I just dont give a fuck Mar 05 06:33:53 I see it go out and am too lazy to fix =) Mar 05 06:34:19 are you sure it's laziness? Mar 05 06:34:30 vs? Mar 05 06:34:48 visual studio ? Mar 05 06:34:50 :) Mar 05 06:34:57 PRECISELY! Mar 05 06:35:00 haha Mar 05 06:35:09 just gets old Mar 05 06:35:16 hey look at you, you can spell too! Mar 05 06:35:22 let me get back to big boy business Mar 05 06:36:49 yes Im an ass too Mar 05 06:36:53 save you some time there Mar 05 06:37:53 we have cows , donkeys, and geese here -- lots of variety Mar 05 06:38:03 and trolls to :| Mar 05 06:38:16 * ron_frown looks around Mar 05 06:38:24 I'm not gonna bite Mar 05 06:39:14 *too Mar 05 06:39:24 oh damn it :| Mar 05 06:40:41 JAKE you fell for it buddy Mar 05 06:41:15 I figured it was positive reinforcement since he wasn't posting a link Mar 05 06:41:19 haha Mar 05 06:41:28 :) Mar 05 06:41:34 you should see all the mikebostock'y shit I get to do at my current day job Mar 05 06:41:50 allthough I spent a good 2hr trying to explain what crossfilter was good for to my boss Mar 05 06:41:52 its a lost cause Mar 05 06:41:53 haha Mar 05 06:42:22 nice! that's stuff is awesome Mar 05 06:42:22 does anyone want to discuss the love of Jesus Christ in the bible? Mar 05 06:42:51 relipse - dont see how its appropriate Mar 05 06:42:55 just gonna start arguments Mar 05 06:45:29 relipse: Bible, not bible ;) Mar 05 06:45:51 Jesus Christ was a friend of sinners, yet he himself despised their sin Mar 05 06:46:13 was Jesus an Android or iOS user ? Mar 05 06:46:29 i guess iOS, thats why they call it the Jesus phone right ? Mar 05 06:46:45 i don't think jesus gives a darn about our silly little toys Mar 05 06:46:54 oh gosh here we go Mar 05 06:46:55 unless we use them to preach the gospel Mar 05 06:47:20 the good news is that there are more mobile operating systems coming around nowadays Mar 05 06:47:36 I'm going to remain skeptical Mar 05 06:47:36 i think Jesus would have used Ubuntu Phone, personally Mar 05 06:48:58 g00s: what bible verse makes you believe that? Mar 05 06:50:50 some verse in Deuteronomy, can't remember Mar 05 06:51:06 it was prophetic, looking forward. Mar 05 06:53:18 jesus was an alien, just like the rest of us Mar 05 06:53:28 500yr ago everyone though tthe world was flat Mar 05 06:53:45 500year from now hopefully will understand we didnt go through evolution here on earth Mar 05 06:54:19 relipse: Deut 9:10 " The Lord gave me two stone tablets inscribed by the finger of God. " … i think he was talking about the nexus tablets, which of course moses then broke. samsung QA is terrible Mar 05 06:54:31 err, asus Mar 05 06:56:30 feeding trolls :P ? Mar 05 06:56:33 haha Mar 05 06:56:39 Jesus is God Mar 05 06:57:24 just installed Vrapper - looks great:) Mar 05 06:57:26 can we keep super touchy subject like those beliefs out of this channel? Mar 05 06:57:28 My dog has Dyslexia and thinks he's god Mar 05 06:58:16 squ: whats the difference between Vrapper and eclim ? Mar 05 06:59:41 oh i see Mar 05 07:01:26 ron_frown: how about vim vs. emacs? Mar 05 07:01:32 ? Mar 05 07:01:42 touchy beliefs Mar 05 07:01:42 at least it somewhat pertains to programming =) Mar 05 07:01:48 I've never used emacs Mar 05 07:02:00 I like vi, but then I am some what a masochist Mar 05 07:02:04 when did this become #bibliology ? Mar 05 07:02:43 XDS2010: it was just a brief segway, android-dev is almost always on-topic :P Mar 05 07:02:58 (except whane ron_frown is here) haha Mar 05 07:03:02 g00s: ITYM segue :P Mar 05 07:03:11 uh oh Mar 05 07:03:40 pretty sure it wasn't a brief 2-wheeled auto-balancing scooter Mar 05 07:03:53 hmm Mar 05 07:03:58 2wheel vehicles ftmfw Mar 05 07:04:11 oh man i screwed that up Mar 05 07:04:25 http://www.youtube.com/watch?v=pkiJFPiQXpo Mar 05 07:04:26 mine Mar 05 07:04:27 mmmmmm Mar 05 07:05:18 * g00s passes OT & SEO crown to ron_frown Mar 05 07:05:28 SEO Mar 05 07:05:29 ? Mar 05 07:05:37 ask Jake :) Mar 05 07:05:55 hes always too busy Mar 05 07:05:57 what does it mean Mar 05 07:06:05 actually dunno Mar 05 07:06:08 XD Mar 05 07:06:20 I know search engine optimization, but that doesnt seem to fit here Mar 05 07:06:21 i dont think its good tho :/ Mar 05 07:06:40 g00s, you run eclipse, and inside eclipse you use vim keybindings. For example zM, zo work as expected:) Mar 05 07:07:14 JakeWharton you son of a bitch, if you are gonna talk smack, do it to my face Mar 05 07:07:16 haha Mar 05 07:07:19 squ: yeah - embedding vim in eclipse seems … well, like oil and water or something Mar 05 07:07:24 just before Vrapper I tried eclim and I got eclipse not working Mar 05 07:07:46 also tried auto completion in vim which failed Mar 05 07:07:58 dude Mar 05 07:08:11 spent around 5 minutes using eclim, switched to Vrapper Mar 05 07:08:12 uh oh, sermon time Mar 05 07:08:15 seems all right Mar 05 07:08:18 (from ron_frown ) Mar 05 07:08:19 I emailed neekers saying sorry for talking to you like youw ere a 16yr old kid, I thought you were a 16yr old kid Mar 05 07:08:26 haha Mar 05 07:08:33 heh Mar 05 07:08:55 he says he got the impression I talk like that to everyone (eg, I'm an ass) Mar 05 07:08:57 so Mar 05 07:09:07 to installed wrapped you need pydev plugin for eclipse Mar 05 07:09:17 sorry, vrapper Mar 05 07:09:40 hm.. '_' key dosn't work :) Mar 05 07:09:54 who needs that :/ this isn't c ;) Mar 05 07:13:05 g00s my old coworker made up his own naming conventions which consisted of random intermingling of camel casing, old school c stuff with lowercase and underscores Mar 05 07:13:07 etc Mar 05 07:13:17 it was just ALL OVER the place Mar 05 07:13:55 ron_frown: use something like Checkstyle … a bunch of different ones Mar 05 07:14:18 someone elses mess now =) Mar 05 07:14:42 i'm checkin out there pretty much I think Mar 05 07:14:46 find something, move on Mar 05 07:15:22 maybe out of programming Mar 05 07:15:42 whats a job old grumpy people can do happily Mar 05 07:15:46 walmart greeter? Mar 05 07:15:48 haha Mar 05 07:16:58 dont be a walmart greeter; they wont pay you enough and you'll wind up on food stamps - and we'll all wind up subsidizing your ass Mar 05 07:17:47 work for Costco instead :) Mar 05 07:18:15 forget about BK unless you're multilingual; they'll be replacing all those dudes with hamburger making robots anyhow Mar 05 07:18:28 well I accomplished a reasonable amount tonight, time to hit the hay... Mar 05 07:18:36 gnight ron_frown Mar 05 07:18:39 gnight Mar 05 07:19:11 carry on as you were everyone ;) Mar 05 07:21:48 does anyone want to code this app for me in native java: https://play.google.com/store/apps/details?id=com.cworklog.cworklog_client Mar 05 07:21:55 for pay? Mar 05 07:22:24 don't solicit Mar 05 07:22:48 solicit? Mar 05 07:22:54 where else am i supposed to find a programmer? Mar 05 07:23:30 http://lmgtfy.com/?q=where+can+i+hire+a+programmer%3F Mar 05 07:24:38 lmgtfy is horrible and slow Mar 05 07:24:49 you should have just used google.com/?q= Mar 05 07:25:17 relipse: you funny Mar 05 07:30:36 im afraid s4 is going to be a failure =[ Mar 05 07:30:46 i hope* Mar 05 07:30:50 its supposed to have that eye tracking technology Mar 05 07:31:07 yea, disgusting Mar 05 07:31:11 http://www.pocket-lint.com/news/50226/samsung-specs-and-design-leaked Mar 05 07:31:20 does that mean you have to take of Glasses to use it :P Mar 05 07:31:24 *off Mar 05 07:32:05 i know its all about android's anti-hardware keys Mar 05 07:32:10 but still.... =[ Mar 05 07:32:44 i was going to get s4 but it looks like ill just have to opt for n4 Mar 05 07:32:57 Trinsta: wait for the X phone :) Mar 05 07:34:03 [21:52:46] canadiancow: you done any android games ? Mar 05 07:34:05 yes Mar 05 07:34:09 but im out of that business now Mar 05 07:34:17 oh he's gone Mar 05 07:36:52 g00s: no can do. I can't deal with my huawei prism anymore Mar 05 07:37:02 my last Nexus S found a new home in the ocean Mar 05 07:37:13 lol Mar 05 07:37:14 Megatron has it now Mar 05 07:38:34 Trinsta: did you see a bunch of dead fish float up to the top? Mar 05 07:38:51 LiIon batteries explode in salt water ;) Mar 05 07:38:51 no, but a bunch of sea lions did roar Mar 05 07:38:58 I was kayaking and it fell Mar 05 07:39:14 ya, the explosion probably pissed them off Mar 05 07:39:30 well technically... i was an idiot and thought I wouldn't get wet while kayaking. little did i know my sister would panic and our boat capsized Mar 05 07:40:28 lemme guess … you were twitting this while capsized, the phone fell, ... Mar 05 07:40:55 I don't use twitter :) Mar 05 07:41:01 then maybe using google maps directions? Mar 05 07:42:17 Trinsta: hope you locked down your google account; maybe the sea lions were roaring after they got your phone and decided to have fun Mar 05 07:43:01 them phone ocean jokes =[ Mar 05 07:43:23 g00s do you have a n4? Mar 05 07:44:05 no. i have a droid-1 Mar 05 07:44:24 put that thing out of its misery Mar 05 07:44:40 actually the emu with haxm is fine for me, when i'm not using BT Mar 05 07:44:50 or google apis Mar 05 07:44:54 or play services Mar 05 07:44:59 :/ Mar 05 07:45:00 Good morning ;) Mar 05 07:45:30 well, i'm hoping the next nexus device has Blueooth Low Energy; i'll probably buy that Mar 05 07:47:03 and ANT+ Mar 05 07:47:08 haxm sounds a little bit like a warez market ;) Mar 05 07:47:14 alex_PP: :) Mar 05 07:47:55 Trinsta: you can also get one of those pelican cases so your phone floats … next time. Mar 05 07:48:15 i bought a USB2Go cable and an ANT+ dongle, the only software that supports it is the demo :( Mar 05 07:48:46 and the APIs are a lot of hassel Mar 05 07:49:21 there's not even an abstraction for each type of sensor, you need to work it out yourseld Mar 05 07:53:08 alex_PP: i'm trying to determine whether the BT radio on the N7 is Bluetooth Smart Ready - just that android isn't (and therefore, if there is an update, the N7 becomes BLE) Mar 05 07:53:23 wtf is Bluetooth Smart Ready Mar 05 07:53:29 BT 4 Mar 05 07:53:39 ah Mar 05 07:54:04 there's a ticket on android somewhere Mar 05 07:54:08 im sure there's been a teardown of every device that would indicate whether the radio supports a feature Mar 05 07:54:16 no response from anuone that matters last i checked Mar 05 07:55:02 issue #28 from top :) http://code.google.com/p/android/issues/detail?id=33371 Mar 05 07:55:39 canadiancow: lack of BLE disqualifies android from an PAN ecosystem Mar 05 07:55:42 also, wahoo fitness have released an ant api that includes profiles for sensors, but that wont support USB until the next release Mar 05 07:56:04 PAN (personal area network) Mar 05 07:56:28 maybe if people would stop posting "me too!", someone would actually subscribe to that issue :P Mar 05 07:56:32 alex_PP: where is ANT+ going these days ? Mar 05 07:56:43 yeah, they should just star it :/ Mar 05 07:57:04 loads of sport stuff Mar 05 07:57:11 had a protcol update a week or so ago Mar 05 07:57:20 i don't really care about industrial uses Mar 05 07:59:24 i never did figure out whether that Nike+ stuff for iOS was ANT+ or something else Mar 05 07:59:55 http://www.thisisant.com/directory/ Mar 05 07:59:59 it'll be in there is it is Mar 05 08:01:43 ANT+ uses 2.4GHz which doesn't really propagate through water well; i wonder how well it works if your phone is behind you in your pocket or something and you are using a HRM Mar 05 08:02:44 never had an issue, my bike cadance sensor is behind me Mar 05 08:02:54 alex_PP: if you do any iOS you can have fun now with the Ti SensorTag :) Mar 05 08:03:10 no iOS for me Mar 05 08:03:32 it should work if android gets BLE http://www.ti.com/ww/en/wireless_connectivity/sensortag/index.shtml?INTC=SensorTag&HQS=sensortag-bt1 Mar 05 08:04:14 what is it? Mar 05 08:04:30 just a BLE sensor suite Mar 05 08:04:36 oh Mar 05 08:04:38 for playing around, getting to know the protocol Mar 05 08:04:45 does look like a fun toy Mar 05 08:04:50 $25 :) Mar 05 08:05:05 it looks like it even floats in the ocean Trinsta Mar 05 08:05:09 i'll wait for the BLE support Mar 05 08:05:11 ha Mar 05 08:05:41 i have another project at the moment Mar 05 08:05:50 that may or may not be possible Mar 05 08:06:14 actually, anyone know anything about USB mass storeage Mar 05 08:06:18 ?? Mar 05 08:07:14 most here probably knows something about it :p Mar 05 08:07:55 so, my Garmin Edge 500 presents itself as a USB mass storage device Mar 05 08:08:03 i want to pull ride data from there Mar 05 08:08:21 my galaxy nexus doen't seem to like USB mass storage Mar 05 08:08:59 am I going to go bald from stress implemtnting USBMS, SCSI and FAT? Mar 05 08:09:13 in the most basic read only way Mar 05 08:13:42 alex_PP: i guess you already asked Garmin if they support some other protocol ? Mar 05 08:14:05 nope, but they're pretty poor at responding to stuff like that Mar 05 08:14:08 i dont think Garmin Connect treats it as a mass storage device. i thought even my forerunner had a protocol Mar 05 08:14:20 pragma-: did you get my mail? Internet here is today more than buggy Mar 05 08:14:20 some do, some don't Mar 05 08:15:02 i think the one's that support the OTA upload have an extra USB interface Mar 05 08:15:24 lamesauce Mar 05 08:15:35 dumping all the USB endpoints only revealed a bulk in and a bulk out Mar 05 08:16:51 alex_PP: i guess you looked at stuff like this https://github.com/Tigge/Garmin-Forerunner-610-Extractor/blob/master/resources/protocol%20doc.txt Mar 05 08:17:36 i had some lazy google time Mar 05 08:17:50 i only 'started' this project 3 days ago Mar 05 08:18:31 this appears to be over ANT? Mar 05 08:18:34 alex_PP: https://www8.garmin.com/support/commProtocol.html Mar 05 08:19:14 or usb i think Mar 05 08:22:50 i'll try dumping the usb when i get home Mar 05 08:23:04 see if i can make sense of it Mar 05 08:24:28 there's no GPS babel support for the Edge 500 Mar 05 08:37:20 how come header('Location: blah.php') does not work properly in ie6? (it shows page but still shows original url) Mar 05 08:45:03 relipse: i'm sure the hebrews considered php unclean Mar 05 08:45:16 ancient ones :) Mar 05 08:47:20 Lint keeps complaining about my String.format("%d", 42) and default Locale. Can a non-default locale even mess up a %d ? Mar 05 08:51:05 Chainfire, 1,000 or 1.000 Mar 05 08:52:23 Chainfire: depends on what you use the result for Mar 05 08:53:31 alex_PP would that need %,d ? %d doesn't use , or . Mar 05 08:53:52 appel1 I'm just wondering if the result can even be different in different locales for a simple %d Mar 05 08:56:00 yes, you're right Mar 05 09:08:36 man Mar 05 09:08:47 i still can't believe I'm struggling with this Mar 05 09:31:32 I am currently building an application about jokes in arabic. so you would see me saying some which i'd love to share with you. Mar 05 09:33:27 A dumb patient takes the medicine every 6 hours instead of 8 hours. why?! 'cos he wants to surprise the germs! Mar 05 09:34:18 superlinux-hp: perhaps there's a #jokes channel or something you can tell your jokes in? Mar 05 09:34:35 i don't know Mar 05 09:34:39 anyways.. Mar 05 09:35:16 appel1, i am not going to spam the channel Mar 05 09:35:28 ok then Mar 05 09:36:18 i have reached almost 400 jokes Mar 05 09:36:30 there are more to come.. Mar 05 10:16:23 http://review.cyanogenmod.org/#/c/33245/1/core/java/android/provider/Settings.java what is this @hide annotation? Mar 05 10:17:13 Pitel_IPEX: these are internal methods of the framework Mar 05 10:17:29 they will be hidden from apps, just available to other framework stuff Mar 05 10:18:22 timroes: thanks. so nothing I may use in my app in some situations? Mar 05 10:18:29 nope Mar 05 10:18:33 you shouldn't Mar 05 10:19:07 but when you compile in your ide it will tell you these methods are not available, since they aren't in the jar the ide builds against Mar 05 10:20:25 timroes: I mean, annotating some of my methods and variables with @hide. Mar 05 10:20:51 öhm what would you expect from it to happen? :) Mar 05 10:21:22 your code is anyway only accessible to your app, unless ofc you give access to stuff via your manifest Mar 05 10:21:25 like content provider Mar 05 10:25:08 kthx, thats what I thought :) Mar 05 10:25:17 i was just curious Mar 05 10:26:08 hi all. What would be the elegant way of using a timer in a application? a new threas doing a sleep and then calling the first one? Mar 05 10:26:40 AlarmManger Mar 05 10:27:42 *Manager Mar 05 10:27:48 alex_PP: isn't it over kill for just making sure "old" data disapears from the screen? Mar 05 10:28:22 alex_pp: 'cause that was what I was thinking of doing. Mar 05 10:28:48 depends what you mean by dissapearing old daya Mar 05 10:28:54 can't spell today Mar 05 10:29:35 alex_pp: :) I was reading the info on AlarmManager and got a good idea: "or normal timing operations (ticks, timeouts, etc) it is easier and much more efficient to use Handler." Mar 05 10:30:04 yes Mar 05 10:30:14 postDelayed or postAtTime Mar 05 10:30:47 alex_PP: yeah.. just reading it. I used it a long time ago (when implementing some filters for some custom adapters) and forgot about it. Mar 05 10:30:52 I'm getting old.... Mar 05 10:31:15 bring me a rocking chair, a sunny and warm place where to stay. Mar 05 10:31:17 :) Mar 05 10:33:24 anyone ever encountered a problem of files getting corrupted after rooting? Mar 05 10:35:28 balls2thewall: only with broken hardware. Mar 05 10:37:12 :s Mar 05 10:37:50 my library of lovecraft's stories and Ayreon... gone ;_; Mar 05 11:08:17 hi, do you know why this is generating an error (http://pastebin.com/fFLfuSfF) on one device, and runs flawlesslly on another? Thanks in advance Mar 05 11:09:07 gmag: testDir ? Mar 05 11:09:49 appel1, sorry, repasting a bit more code Mar 05 11:10:33 gmag: perhaps the directory exists on one device, and doesn't on the other? Mar 05 11:11:37 appel1, http://pastebin.com/ngcEwn8v Mar 05 11:11:46 appel1, but I create that dir Mar 05 11:13:17 gmag: you don't check if mkdir fails Mar 05 11:13:27 gmag: so all you know is that you try to create the dir Mar 05 11:13:42 appel1, right I was thinking about that now that you talk about that dir Mar 05 11:14:04 appel1, I think you might have found the culprit Mar 05 11:14:11 appel1, oh Mar 05 11:14:24 appel1, and should this be a permissions problem? Mar 05 11:14:38 appel1, because on one device I can actually create the dir Mar 05 11:17:03 .canWrite(), canRead(), etc Mar 05 11:58:06 gmag: if you can write to external storage without requesting the permission to do so something is very broken with the device Mar 05 12:01:35 Is there a way to return a C++ object from a JNI call that will be used in Java? or Is there something like an "ORM" that maps a C++ object to a Java object? I was thinking to create all my C++ model objects in Java and create a new Java object from JNI and populate it with the contents of the C++ object and return the Java object instead. Mar 05 12:02:25 BadDesign: I suggest that this approach meshes very well with your nickname Mar 05 12:03:00 (also, accessing C++ objects is *PAIN*. Said by someone who nearly got whole C++ FFI working, including virtual calls and exceptions, then threw it all away) Mar 05 12:03:23 appel1, gonna check what's happening, thanks for feedback Mar 05 12:03:26 p_l: Is my "thinking" part doable? Mar 05 12:03:43 Using sleep to count time in native code works as expected? But when I pass the event to Java code, I need to hold a WakeLock? Mar 05 12:04:13 BadDesign: you might get SWIG working; haven't used that in a long time Mar 05 12:04:42 BadDesign: I recommend just going with functions, that might be used by classes. Less hassle most of the time unless you *really need to* Mar 05 12:04:54 then there's JNI methods for accessing Java objects, afaik Mar 05 12:04:58 I already have the C++ objects... its too late :) Mar 05 12:05:18 BadDesign: then create a simple interface for "talking" Mar 05 12:05:28 between Java part of your app and C++ part Mar 05 12:05:34 otherwise... well, SWIG might help Mar 05 12:07:08 I've tried Swig but I don't quite understand its output. Will have to read the its docs more thoroughly Mar 05 12:08:30 My AVD shows exception (java.io.IOException: Unable to connect to server: Unable to configure data port) when open the stream: Mar 05 12:08:30 url.openConnection().getOutputStream(); Mar 05 12:08:30 where url is correct ftp url, and this code works nice on the desktop. INTERNET permission is already added. What is the reason of such mistake? Mar 05 12:09:33 pswrdf: Do you have a network connection working on the emulator? Where is the server to which you are trying to connect to? Is it on localhost ? Mar 05 12:09:51 can anyone help me with this problem? http://i.imgur.com/jlVgpQc.png Mar 05 12:10:26 BadDesign: no it's a some internet hosting. How to check internet connection on AVD? thereis 3G sign on the top. Mar 05 12:12:41 haqe17: Run: "adb usb" on the command line or "adb tcpip 5037" And try to see what devices are available "adb devices -l" Mar 05 12:13:17 pswrdf: which ftp library do you use? Mar 05 12:13:33 pswrdf: fire up a browser and connect to a website Mar 05 12:14:34 haqe17: and rerun the app and see if the dialog in Eclipse refreshed itself Mar 05 12:14:50 haqe17: otherwise just restart Eclipse Mar 05 12:16:01 appel1: only android.jar with dependencies Mar 05 12:17:10 pswrdf: I think its because you are running the app from the emulator. Try a real device and see. Mar 05 12:17:51 pswrdf: see https://groups.google.com/forum/?fromgroups=#!topic/android-australia/7yV9pD2sKxI Mar 05 12:17:52 BadDesign: browser is load a website. The real device have the same result. Mar 05 12:18:30 interesting thing. When i'm run real device connected to laptop, it works fine, but when standalone - it crashes. Mar 05 12:20:02 BadDesign: http://pastebin.com/G5TRFZYP Mar 05 12:20:31 this is a brand new phone I have btw. It's a HTC Desire S Mar 05 12:20:56 I have enabled USB debugging, but I don't know if there is anything else I need to set up Mar 05 12:21:21 haqe17: Also try: "adb kill-server" and "adb start-server" and "adb devices -l" Mar 05 12:22:11 same error :( Mar 05 12:22:25 haqe17: On which OS do you use adb? Mar 05 12:23:08 linux Mar 05 12:23:12 pswrdf: try passive ftp perhaps? Mar 05 12:23:23 have you added the udev rule for the deviceß Mar 05 12:23:24 ? Mar 05 12:23:26 haqe17: try running the last command I gave you using sudo in front of them Mar 05 12:23:33 *commands Mar 05 12:25:24 BadDesign: yay! thanks Mar 05 12:34:37 haqe17: it worked? Mar 05 12:57:19 BadDesign: yes Mar 05 12:57:51 haqe17: after running sudo, right? Mar 05 12:57:53 its strange though, because I didn't have to do this with my other android devises Mar 05 12:58:01 yeah Mar 05 12:59:17 For some reason it wants to start the server adb sends command to as root... that server further communicates with the device / emulator Mar 05 13:11:31 pragma-: did my last mail arrive? Mar 05 13:11:41 the internet here is still broken Mar 05 13:12:09 and i am not sure if mails didn't got send or just wasn't able to be moved to sent folder Mar 05 13:14:33 your mail is in my pants Mar 05 13:20:17 mikedg: the point of those emails is to get you to buy stuff which increases your manhood, not to put the mails itself in your pants Mar 05 13:48:38 Do you know whether it's possible to animate the "opening of a sublist" in an expendable list view? Mar 05 13:54:18 p_l: Unfortunately Swig is a deal breaker for me because it doesn't support C++11 features... I see that some buy http://goo.gl/w4CDV worked on it for GSoC but it isn't integrated yet :( Mar 05 13:56:32 BadDesign: in general, accessing C++ objects from anything not compiled by the exact same compiler with exact same options is a PITA that often involves curious assembly Mar 05 13:57:00 also why I consider C++ to be among worst options for library code, at least the parts that are public interface :)_ Mar 05 13:57:41 Agreed. Moreover C++ is dubbed a language for writing libraries... hell no! Mar 05 13:59:45 I'm going to "have fun" writing JNI code manually for the hundreds of function and objects I have in C++ ^_^ Mar 05 14:00:08 yep Mar 05 14:00:11 dorfish FUN Mar 05 14:07:38 'sup Mar 05 14:12:07 BadDesign: sounds like a bad design Mar 05 14:13:15 thats why they call him baddesign Mar 05 14:14:49 hey guys, can I get a design opinion? some virtual spaces use x/y/z where x/y are the ground coordinates and z is the altitude, while others are front-facing with x/y moving them right/up and z being forward/away. which do you prefer? If no preference, which seems to make most sense? Mar 05 14:15:36 root66: would say depends on your usecase Mar 05 14:15:52 if you have something like a map, i would go with z-up Mar 05 14:15:55 Will SparseArray always sort itself after ID? Mar 05 14:15:57 i guess z altitude would be if you mainly have a birds eye view? Mar 05 14:15:58 key I mean Mar 05 14:16:05 if you have something from a points of view looking forwards i would go otherwise Mar 05 14:16:29 yeh perspective seems to be it Mar 05 14:16:36 Quacked: yeah sparsearray is mainly an array that can have missing keys Mar 05 14:18:05 I need to think, hehe Mar 05 14:18:36 SparseArray is just an efficient Map Mar 05 14:18:53 hi all Mar 05 14:19:00 don't try to compare it to array, or list you might make misstakes if you think that way :) Mar 05 14:19:12 Ok, so let's say in the case of a "virtual world" where people are building stuff. In the case of most editing software, X and Y are parallel to the screen and Z runs perpendicular, while in most games, Z is altitude. Mar 05 14:19:14 e.g. if you remove elements or so, the keys of the following elements won't change Mar 05 14:19:29 It's a tough call. Mar 05 14:19:36 timroes: yeah, I understand Mar 05 14:19:49 but tough calls are your job. Mar 05 14:19:52 this is what you signed on for. Mar 05 14:19:55 This is what you need to do. Mar 05 14:20:06 what's the best way to keep different account with their own pref/information ? SQLite or Shared Pref Mar 05 14:20:35 You can have different shared prefs with different names. It just gets a little awkward. Mar 05 14:20:41 I like the idea of Z being altitude, but it conflicts with most design software unless you design from a bird's eye perspective Mar 05 14:20:46 i don't like the idea of using files (what is actually used in the application i have to refactor) Mar 05 14:21:42 so use a database then. Mar 05 14:22:46 for example, if I decided to import existing models, they are likely to need rotating for Z to be the top Mar 05 14:22:48 ok it's what i was thinking .. shared pref is better to keep small amount of informations i guess ? mainly application pref not account with many informations ? Mar 05 14:23:17 shared prefs is for preferences. Having multiple accounts in one application is uncommon. Mar 05 14:23:30 Of course, you're the developer, so you figure this out. Mar 05 14:24:37 by account i mean using (or usage) profile (i'm not that good in english :p ) Mar 05 14:26:35 hi, is this how you "de facto" save password in android?: SharedPreferences settings = getSharedPreferences("UserInfo", Context.MODE_PRIVATE); or is there some other way i should do it? Mar 05 14:27:59 cHarNe2: you could use AccountManager Mar 05 14:28:20 IMHO ordinary applications should never store actual passwords on the phone Mar 05 14:28:22 hrnt: could or should? Mar 05 14:28:48 cHarNe2: depends what you want to do. if you want to use android's sync managers and stuff like that then you should use Accounts Mar 05 14:29:17 ok, i understand. thanks! Mar 05 14:29:55 what hrnt said. You really, really don't want to store passwords in plain text. Mar 05 14:30:33 you have to assume that some non-trivial percentage of your users are compromised via some rootkit, and that the passwords they use can be used against them. Mar 05 14:31:35 hi Mar 05 14:31:45 im having trouble trying to integrate inappbilling in my app Mar 05 14:32:00 good to know I guess. Mar 05 14:32:05 startup listener returns ok, then i query for inventory but the items are allwais nullpointerexc Mar 05 14:32:41 can u help me plz? i havent sleep tonight Mar 05 14:32:47 heheh Mar 05 14:32:49 -.- Mar 05 14:33:23 im stuck in this step: Mar 05 14:33:24 http://developer.android.com/training/in-app-billing/list-iab-products.html Mar 05 14:33:57 i cant create the list so i use the queryasync(details true, listener) constructor with no list then i ask for inventory itens(sku) but returns nullpointerexc Mar 05 14:34:35 hola podeis ayudarme? Mar 05 14:35:42 hi, can u help me integrating inappbilling? Mar 05 14:35:43 xd Mar 05 14:37:30 sorry yeyeyey I have no experience with that Mar 05 14:37:49 thanx jcromartie:) Mar 05 14:37:51 consider posting on stackoverflow? Mar 05 14:37:55 I haven't used IAB. Mar 05 14:38:04 you might also want to wait until California wakes up. Mar 05 14:38:21 lov ive seen all questions in stackov:( Mar 05 14:38:26 lov what time is it? xd Mar 05 14:39:15 in developer.android.com it says: List additionalSkuList = new List(); Mar 05 14:39:18 how to create that list? Mar 05 14:39:19 :S Mar 05 14:39:56 Is it bad practice to do "random = new Random().nextInt();" instead of "Random r = new Random(); random = r.nextInt();" ? If I don't need any other Random values. Mar 05 14:40:13 i think its not bad Mar 05 14:40:15 yeyeyey: you may wish to learn Java first. Mar 05 14:40:24 Quacked: no, it's the same thing. Mar 05 14:40:40 lov ctrl+space creates list() { methods.... } Mar 05 14:40:48 as long as you don't need more than one value (and you're not doing this extremely frequently) it's not a big deal Mar 05 14:40:53 yeyeyey: this is called autocomplete. Mar 05 14:40:55 then i can .add items (strings, ints...) Mar 05 14:41:00 yeyeyey: YOU SHOULD LEARN JAVA FIRST. Mar 05 14:41:02 lov: yeah, that's what I thought. Thanks Mar 05 14:41:24 if you don't understand what's going on, you should learn the language and then try to find out. Mar 05 14:41:43 ctrl-space is auto-complete. What it's providing is something called an "anonymous inner class" Mar 05 14:41:47 ok lov, ive done too List myList = new ArrayList(); Mar 05 14:41:53 but it crashed too Mar 05 14:41:57 this is almost certainly NOT what you want, because you don't want your own special implementation of the List interface. Mar 05 14:42:37 i need List Mar 05 14:42:40 I'm sure you do. Mar 05 14:42:48 again, you should learn java at this point, then come back. Mar 05 14:42:57 :( Mar 05 14:43:09 you might want to ask ##java "Hey, how do I make a List with the things I need in it?" Mar 05 14:43:11 gonna read about ann inner class Mar 05 14:43:21 you don't want to make an anonymous inner class of the List interface ._. Mar 05 14:43:25 you really don't. trust me. Mar 05 14:43:28 oh ok hehehe better that Mar 05 14:43:36 Use an ArrayList and then populate it with actual values or something Mar 05 14:43:51 By the way, does new Random().nextInt(); have a minimum length? I know it's based on milliseconds, but I'm just wondering if the int can suddenly be 1000 Mar 05 14:44:17 "current time of day in milliseconds" I meant to say Mar 05 14:44:24 i hve done too list = l; arraylist = new arr..; arr.add("yey"); list = arr; Mar 05 14:44:24 hello Mar 05 14:44:28 but crashed too xd Mar 05 14:44:33 Hey guys <3 Mar 05 14:44:42 Does anyone else find they get more negative app reviews on certain days of the week? Mar 05 14:44:45 Can i use a swipeview with android <3.0? Mar 05 14:44:54 with the support library v4? Mar 05 14:44:59 If android dev has taught me one thing it's that all the grumpy people come out of their holes on Sundays. Mar 05 14:45:12 I wonder how to update an item from a ListActivity without clicking it. I mean: can I update the item status (checked/unchecked) by a background process? Mar 05 14:46:12 blues-man: you can update the underlying data that the adapter uses Mar 05 14:46:17 take a look at the Adapter docs and contract Mar 05 14:46:21 (tldr: yes) Mar 05 14:46:30 Hey colleagues. Mar 05 14:46:32 lov, and if data is simply a String? Mar 05 14:46:40 JuiceSSH: isn't it that most people updated on weekends so you get grumpy reviews after they had their initial impression? Mar 05 14:46:59 Quacked: huh, random produces random numbers uniformly distributed over the possible int values Mar 05 14:47:02 blues-man: what the data actually is isn't important. Mar 05 14:47:19 blues-man: I forget what the actual functions etc are, but you can basically notify the adapter "Hey, your data set changed!" and the adapter can notify its listview, etc. Mar 05 14:47:20 Some time ago people here suggested, that I should use a single SQLiteDatabase shared across my application. How would I make Transactions work in that case? Mar 05 14:47:30 nobody knows? :D Mar 05 14:47:40 styler2go: try it and see? Mar 05 14:47:51 would be too much to do Mar 05 14:48:34 lov the dataset is basically about two string, I just would make a HTTP and HTTPS tests and then notify the item with checked if connection went ok Mar 05 14:48:58 ok. Mar 05 14:51:12 If I use the same SQLiteDatabase instance in two parallel threads and they start transactions... Will they share the transaction, or is the transaciton Thread-bound? Mar 05 15:00:30 appel1: yeah, I followed lov's advice and just did +10000 to the random integer. My own values that are lower than 10000 will then never match the random. Mar 05 15:01:14 Quacked: I hope that you've explicitly declared your contract for this somewhere, and set an actual static final value instead of just magic numbering 10000 Mar 05 15:01:25 styler2go: you mean ViewPager with swipe views? Mar 05 15:02:30 i mean this: http://img694.imageshack.us/img694/1300/climsyclipboardr.png Mar 05 15:02:47 oh.. yes, ViewPaher Mar 05 15:02:51 ViewPager* Mar 05 15:02:51 just did a phone screen of someone i probably was a dick to in here at some point Mar 05 15:02:52 yeah thats viewpager support library v4 and as such usable from api 4+ on Mar 05 15:02:52 lol Mar 05 15:02:55 Quacked: you do nextInt(Integer.MAX_VALUE- 10000) + 10000 ? Mar 05 15:03:00 nice! Mar 05 15:03:02 rooock on :D Mar 05 15:03:07 lov: there's just one occasion where I need to send an ID with putExtra to match an intent that starts a Service. And there I put the ID to 1337. So for the random I did: new Random().nextInt()+10000; Mar 05 15:03:15 thank you timroes :) Mar 05 15:03:19 * lov shrugs Mar 05 15:03:20 appel1: oh, thats a good idea Mar 05 15:03:21 you're welcome like always :D Mar 05 15:03:24 again, document your assertions. Mar 05 15:03:42 Oh, also, double check the docs for Random, and make sure that nextInt won't return negative values. Mar 05 15:03:51 assert your assertions Mar 05 15:04:07 lov: ah, I hadnt thought of that either Mar 05 15:04:24 it return negative values by default Mar 05 15:04:25 :) Mar 05 15:04:40 Quacked: not if you use nextInt(int) Mar 05 15:04:56 appel1: thanks Mar 05 15:05:20 Quacked: Returns a pseudo-random uniformly distributed int in the half-open range [0, n). Mar 05 15:05:39 yeah, you really should use .nextInt(n) instead of .nextInt() Mar 05 15:05:49 What would happen if I didn't use Integer.MAX-VALUE-1000 and the int exceeds max value? Mar 05 15:05:55 Is there an easy way to check if a ListFragment's view has been created. Right now, the best I've got is to call getListView() and catch the thrown exception, sleep a little and try again. Mar 05 15:06:25 Hi! Mar 05 15:06:38 Quacked: it should wrap around Mar 05 15:06:54 What does that mean? Mar 05 15:06:58 Start at 0? Mar 05 15:07:06 start at the smallest number Mar 05 15:07:08 I'd like to port Android to my MIPS-based TV, but it doesn't have the MALTA-board like mentioned on the wiki. Mar 05 15:07:08 Ok Mar 05 15:07:11 What can I do? Mar 05 15:07:20 I have the kernel tarball. Mar 05 15:07:43 I know very little about how to configure the kernel. Mar 05 15:07:46 Umeaboy: this channel is much more app-dev oriented so we're probably not the best to ask. You could try #android-root, the xda forums are pretty solid, too Mar 05 15:07:53 OK. Mar 05 15:07:58 Umeaboy: unfortunately, neither do the rest of us. like dragorn said, -root might be better, as well as xda-devs Mar 05 15:08:01 Thanks any way. Mar 05 15:08:04 or cyanogenmod or something Mar 05 15:08:09 Sorry for disturbing. Mar 05 15:08:13 not a problem Mar 05 15:08:28 technically this is the right place, but there are very few platform people here. Mar 05 15:08:37 You might want to join #android-platform, but there's only a couple people there too. Mar 05 15:08:56 i'd say step 1 is find a working linux kernel for that hardware, then copy it's config, and then look at what's different about the android kernel config options Mar 05 15:09:02 #android-root #cyanogenmod might also be a try Umeaboy Mar 05 15:19:42 ok! now i get the item price :D Mar 05 15:20:51 lov: Read my message in #android-platform Mar 05 15:22:57 Umeaboy: I just idle there, I don't really know how to answer/help ._. Mar 05 15:23:22 hello guys I have a problem with a webview Mar 05 15:23:36 and can't play dailymotion videos, however I can play youtube ones Mar 05 15:24:00 and now that im debugging I just noticed when I play a dailymotion video I get an errror that says Mar 05 15:24:22 Unsafe JavaScript attempt to access frame with URL about:blank from frame with URL http://www.dailymotion.com/embed/video/xxz2b1. Domains, protocols and ports must match. Mar 05 15:24:43 read about XSS. Mar 05 15:26:17 hmm and is there anyway to disable that? Mar 05 15:27:14 and allow all javaescript files from any source to run? Mar 05 15:27:26 no matter what? Mar 05 15:30:51 How "strong" is startForeground? I mean, what is the chance of Android killing the Service if I use startForeground? Mar 05 15:31:58 or have anyeone managed to play a dailymotion video in a webview? Mar 05 15:39:47 Quacked: very unlikely but not utterly impossible. Mar 05 15:40:02 basically, only an activity in the foreground has a higher priority than a service in startService iirc Mar 05 15:40:36 when Camera application is called using MediaStore.ACTION_IMAGE_CAPTURE, it is possible to select another application instead of the camera.. is there any way to know what application was used ? Mar 05 15:41:28 in onActivtyResult when i have the bitmap Mar 05 15:44:37 Hey, I'm trying to make a simple test application which give you a dropdown with 3 terms, whichever term you select will be queried against Twitter and the results will be shown in a listfragment Mar 05 15:45:18 I can't figure out how to launch the twitter query and update the listfragment Mar 05 15:46:44 I can't query from the fragment, because it is UI thread, when I try to use a runnable from the fragment it cannot use runOnUIThread to update the listview, becausse the fragment is static Mar 05 15:46:57 lov: ok Mar 05 15:47:00 any ideas? Mar 05 15:47:23 Handlers? Mar 05 15:47:31 AsyncTask? Mar 05 15:47:46 how do I make the handler talk to the fragment? Mar 05 15:47:53 magic??? Mar 05 15:48:30 why can't I understand fragments? everytime I try to use them this sort of thing happens Mar 05 15:58:30 I have which is probably a simple question Mar 05 15:58:41 just ask it Mar 05 15:59:06 if I have a textview, and data dynamically changed in it, is there way to have something like "Name:" + nameValue ? Mar 05 15:59:12 or would I just need two textview boxes Mar 05 16:00:16 .setText("Name: " + yourString); Mar 05 16:00:51 or if you want to do it proper use a resource string: .setText(String.format(getString(R.string.bla), yourString)); Mar 05 16:00:56 so you can easily do other languages Mar 05 16:01:25 resource string then is Mar 05 16:01:39 Name: %1$s Mar 05 16:02:27 I'm going to give .setText a try first Mar 05 16:02:33 ty xorgate Mar 05 16:04:31 hey guys Mar 05 16:04:38 and possibly gals Mar 05 16:05:04 well you know tits or gtfo Mar 05 16:05:14 * lov rolls his eyes Mar 05 16:05:19 don't be a jerk please. Mar 05 16:05:28 ah well thats not what i meant Mar 05 16:05:34 read an interesting post about it a while back Mar 05 16:05:47 ladies love xorgates Mar 05 16:05:50 oblig http://xkcd.com/322/ Mar 05 16:06:41 that is irrelephant to the conversation Mar 05 16:06:46 pix plz Mar 05 16:07:02 mikedg is an elephant Mar 05 16:07:03 we don't take kindly to android, iOS or GTFO Mar 05 16:07:03 * americancow flashes his utter Mar 05 16:07:04 :) Mar 05 16:07:09 basically that the term is used against women who try to use their female-ness as an advantage online, being used to it benefiting them afk Mar 05 16:07:10 didnt i ban that username like 6 times Mar 05 16:07:37 ...quick question ( i guess).. I am building an app and one part of it is to play back music (.mp3) but the mp3 files are very very large and I'd rather not have them in the application itself. I'm pretty new to android so forgive me. How should I go about doing this?? would i just put it on server and hve the app stream it from the server...basically, what is the best practice for a Mar 05 16:07:37 situation like this Mar 05 16:07:40 ? Mar 05 16:07:46 I appreciate any help. Mar 05 16:07:57 KillmeSoftly could download them to sd Mar 05 16:08:17 then you wont need to be online all the time Mar 05 16:08:22 KillmeSoftly: download them to "external storage", also, since I think 2.3, you can use OBB files to store them Mar 05 16:09:27 http://i1.kym-cdn.com/photos/images/original/000/450/219/0d3.jpg and let's leave it at that :) Mar 05 16:10:40 i'm not familiar to OBB files, remember I'm noob Mar 05 16:10:44 xorgate: I seriously hope that you're just joking there. Mar 05 16:11:03 with* Mar 05 16:11:18 lov why? Mar 05 16:11:29 seriously? Mar 05 16:11:36 blargh, feel like butt Mar 05 16:11:48 but still have to go to work :\ Mar 05 16:11:58 lov yes, i think the titsorgtfo generally is misunderstood Mar 05 16:12:21 no, i think it's perfectly clear. Mar 05 16:13:37 basically, the attitude that women only self-identify themselves as female on the internet is because they want extra attention is kind of sexist. It's possible that this will actually happen, but the blanket response means that anyone who doesn't want "tits or gtfo" will never actually mention that they're female, ever. Mar 05 16:14:48 can we please just not talk about this here? Mar 05 16:14:55 yeah, good idae. Mar 05 16:14:56 *idea Mar 05 16:16:31 hi everyone.. Mar 05 16:17:27 I'm receiving the The method setText(String) is undefined for the type View Mar 05 16:19:22 Rob|boR you need to call that on a TextView Mar 05 16:20:02 well this is my line: holder.tvName = (TextView) view.setText("Name: " + holder.tvName).findViewById(R.id.tvname); Mar 05 16:20:23 initially it was view.findViewById() Mar 05 16:20:25 ((TextView) view).setText() Mar 05 16:20:35 call it on the casted view Mar 05 16:20:43 eh whoa Mar 05 16:20:51 that code makes 0 sense Mar 05 16:21:17 TextView santa = (TextView) findViewById(R.id.tvname); Mar 05 16:21:21 santa.setText(..) Mar 05 16:22:07 think about what you're doing Mar 05 16:22:41 anyone here have nexus-7? I have a question but if this is not the right channel plz let me know Mar 05 16:23:01 KillmeSoftly generally we don't care about who has what hardware but just ask your q Mar 05 16:23:08 If the question is about app dev, it's the right channel Mar 05 16:23:17 wll no its not Mar 05 16:23:25 There you go Mar 05 16:23:40 okay but look at the answer above yours Mar 05 16:23:47 who do i believe? Mar 05 16:23:56 this is what we call clutter Mar 05 16:23:59 ask the q or don't Mar 05 16:24:05 You believe the topic Mar 05 16:24:16 Anyone tried developing game with support for the Gametel bluetooth gamepad? Mar 05 16:24:19 Specifically the first three words Mar 05 16:24:51 fuck it nevermind dude. peace Mar 05 16:25:12 look what you did! Mar 05 16:25:21 [06:23.29] Hmm Mar 05 16:25:21 [06:24.45] does Daydream have similar chooser than could be accessed from the code as live wallpaper? Mar 05 16:25:22 He told me to let him know :/ Mar 05 16:25:30 Could've just not said that Mar 05 16:25:49 bit too much copied, sorry Mar 05 16:26:15 hi Mar 05 16:26:22 can u help me with inappbilling? Mar 05 16:26:37 probably not. Mar 05 16:27:25 dont know whats happening Mar 05 16:27:40 half an hour ago it showed me the items prices but now i get an error Mar 05 16:27:41 same code Mar 05 16:27:43 :S Mar 05 16:28:21 yeyeyey: thats easy JakeWharton wrote a library for that Mar 05 16:30:11 mikedg i tried a library two ays ago but dont get how it worked Mar 05 16:30:16 i need to use from canvas :S Mar 05 16:30:27 the library was used on Activity Mar 05 16:30:39 dont know if its the same, gonna see Mar 05 16:30:43 (same lib) Mar 05 16:32:48 i dont find that lib Mar 05 16:32:51 :S Mar 05 16:33:07 lov: okay I've impemented a handler and it appears to be working Mar 05 16:33:14 now I'm having a problem with context Mar 05 16:33:40 I'm trying to use a custom adapter which calls LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); Mar 05 16:34:04 how can I get the kind of context that it wants from inside my fragment Mar 05 16:34:27 I tried this.getActivity(), but that didn't work. Mar 05 16:35:28 are any dalvik developers present in this channel? Mar 05 16:41:48 it works! Mar 05 16:41:52 holy crap Mar 05 16:41:59 can someone help me? im getting Error refreshing inventory querying prices of items Mar 05 16:54:24 ok, so..how would you guys implement the following. Mar 05 16:55:56 I want to have a picture with tiles. if user selects listview option one, takes to the next activity that has the picture with tiles, and lights up the first tile. if user selects second tile, takes to same activity and lights up second tile. Mar 05 16:57:23 yeyeyey: you might have better luck if you described your problem, in detail, or alternately asked on stackoverflow.com instead of here. Mar 05 16:57:23 pass the second activity an extra which says which tile/s to "light up" Mar 05 17:03:14 hmm okay Mar 05 17:04:03 hamster Mar 05 17:04:34 make a public static String in Activity1 and set it before you start activity2 Mar 05 17:04:48 make sure you save it in onsavedinstancestate in case android breaks your app Mar 05 17:05:01 android breaks apps by taking them out of memory all the time Mar 05 17:05:30 don't listen to any of that Mar 05 17:05:34 do the opposite Mar 05 17:08:49 "breaks" Mar 05 17:08:49 heh Mar 05 17:12:26 Anyone tried developing game with support for the Gametel bluetooth gamepad? Mar 05 17:12:33 (or another bluetooth gamepad?) Mar 05 17:13:56 never listen to mikedg. Mar 05 17:13:59 mr_lou: no, sorry. Mar 05 17:14:04 I lie Mar 05 17:15:42 Hm Mar 05 17:15:51 mikedg, Well at least you're honest about that. ;-) Mar 05 17:16:23 a m i? Mar 05 17:17:49 Just got the Gametel gamepad today. Maps to DPAD keys, meaning you can use it to navigate the desktop, and start apps ect, just as if you were using the dpad on your phone. Also works in the webbrowser. So far so good. But as soon as I start a game (my own), it's not receiving any input. As if something is blocking the gamepad for native apps. Mar 05 17:18:02 Anyone has any ideas what it is I'm missing? Mar 05 17:18:55 I try to just output keycodes, but it's receiving nothing. Only the Back button works, when in the game. (Which of course just leaves the game). Mar 05 17:21:12 you tried the regular dpad to see if you were receiving that right? Mar 05 17:22:07 has anyone created/added an android library project using idea? Mar 05 17:22:31 I'm getting a noclassdef error against a resource ID Mar 05 17:26:36 lemme guess maps v2 Mar 05 17:28:08 xorgate: is that for me? Mar 05 17:28:20 only if i'm right Mar 05 17:28:24 no Mar 05 17:28:25 lol Mar 05 17:28:35 i made a simple android library project Mar 05 17:30:06 oGMo, Pretty sure I did back when the game would run on the only Android phone I have with a dpad. That was a while ago though. I suppose I should scale down all the graphics so that it'll run on that particular phone, and do another test to me sure. Mar 05 17:31:01 mr_lou: emulator? Mar 05 17:31:11 all you need is a basic input loop test Mar 05 17:31:13 oGMo, Doh... of course. Mar 05 17:31:30 oGMo, Being so used to running on the real thing. Mar 05 17:31:37 * mr_lou executes on emulator. Mar 05 17:31:46 coffee break time ;) Mar 05 17:32:08 Hey! Can someone help me with this question? http://stackoverflow.com/questions/15165076/ Mar 05 17:33:44 which is the best way to distinguish between intents received in the same activity? Mar 05 17:34:29 I have a main activity which changes depending on the info that received from other activities Mar 05 17:34:51 I would like to figure out an elegant or not way of doing that Mar 05 17:34:52 thanks Mar 05 17:34:53 through onActivityResult() ? Mar 05 17:35:06 nep1x: onNewIntent Mar 05 17:36:58 still the same problem, if a override e.g onNewIntent method, I will need some mechanism to know which activity is this intent from Mar 05 17:37:11 just give it an id of some sorts Mar 05 17:37:24 nep1x: have the caller pass in an identifier Mar 05 17:37:37 intent.putExtra("whatIntentIsThisFrom", "thisOne"); Mar 05 17:37:51 ah okay thats your problem, yeah make an extra with the id (e.g. class) of the sender Mar 05 17:39:44 correct Mar 05 17:40:15 but it s easier with onActivityResult. I had forgotten tis way Mar 05 17:40:17 thank guys Mar 05 17:42:40 can somebody tell me the value of android.os.Build.MODEL on motorola razr maxx devices? Mar 05 17:43:10 davl, id recommend using an ArrayList rather than an array. it gives you some nice features like Collections.shuffle() Mar 05 17:43:17 so you dont have to implement as much of your own logic Mar 05 17:43:51 also, why are you storing a reference to your application context and your context Mar 05 17:43:56 that really serves no purpose Mar 05 17:44:28 also, your application class should not have that logic in it Mar 05 17:44:35 it should be in its own class Mar 05 17:45:07 canadiancow, yeah it's my first app so I more or less just copied over from an old game I wrote when I started learning Java a couple years ago. Mar 05 17:45:12 as for why it doesnt work, i'd need to debug it, and i dont have time for that right now Mar 05 17:46:10 okay but thanks for the pointers. I will try to make it over from scratch now ;) Mar 05 17:49:43 hello ..can anyone tell me what is multiple screen support Mar 05 17:52:16 ace_striker well some devices can hook up to other displays Mar 05 17:53:17 ace_striker: i guess in the context you reading about it, it means supporting a wide range of devices, that has different screen ratio, resolution, etc. Mar 05 17:53:44 http://developer.android.com/training/multiscreen/index.html Mar 05 17:55:13 hello is there like a skeleton that I can build upon? I am using eclipse on ubuntu to develop and I would like to create a one button app that will be supported on android 2.1+ Mar 05 17:55:30 It seems just too much complicated with multiscreen support etc. Mar 05 17:55:34 I am a bit lost :\ Mar 05 17:57:44 Antonis: install ADT and go through the "New Android Application" wizard Mar 05 17:57:54 it'll pretty much create exactly that Mar 05 17:57:55 Antonis: if you only create a layout file in the res/layout/ dir, it will use that for all screen sizes Mar 05 17:58:01 and with 1 button, its going to fit on everything Mar 05 17:58:20 so all the multi-screen stuff can be ignored Mar 05 17:59:24 clever, but should I develop an app for android 2.1 or use other versions? I will make it with options etc later on so I would like to do it right from the beginning Mar 05 17:59:27 xorgate: timroes: thanks for the reply..doublt cleared. Mar 05 17:59:41 Antonis: just set the min api version to the api# for 2.1 Mar 05 17:59:50 oh ok Mar 05 17:59:55 thank you Mar 05 17:59:57 eclipse will warn you if you try to use anything 2.1 doesnt support Mar 05 18:02:42 if instead of a listview, I wanted to create a menu that consists of tiles, similar to the first screen in this picture : https://lh4.googleusercontent.com/-Ay6Gc-XpA_k/UFOyb_iVC_I/AAAAAAAADyE/Y7ToHECFoRc/s640/maluuba_screenshots_large.jpg Mar 05 18:03:03 what components would be needed for that? or are tehy just buttons Mar 05 18:03:36 Rob|boR: that could be done with a GridView, its basicaly the same as a ListView Mar 05 18:03:44 but it lays the things out in a grid, rather then rows Mar 05 18:03:56 interesting Mar 05 18:04:24 I'm guessing it would be more complex than a listview? Mar 05 18:04:32 Rob|boR: it should only take a minute to replace every instance of ListView with GridView Mar 05 18:04:38 code will be virtualy identical Mar 05 18:05:12 :D Mar 05 18:05:16 just swap it in the layout xml, and the type of the variable holding the list, and you can see the effect instantly Mar 05 18:05:41 going to try that now Mar 05 18:05:42 ty Mar 05 18:05:45 thank you Mar 05 18:07:29 yup that did the trick, the lines are gone Mar 05 18:08:07 is adding a background to the entry hard? Mar 05 18:08:16 or making them into big tiles Mar 05 18:08:51 oGMo, You were right. I'd forgotten that I'd commented out setFocusableInTouchMode(true), which apparently is needed before being able to receive key-input. I'd commented it out because it seems to take control of the Back button as well. I suppose I'll just have to manually code the Back button to exit then. Mar 05 18:11:40 mr_lou: doh! and yeah you probably want to anyway Mar 05 18:17:55 Does anyone have any ideas about why an NDK build would fail in Eclipse but work with ndk-build? Eclipse is just giving me "Invalid Arguments" Mar 05 18:18:10 That's all it says, no more specifics Mar 05 18:19:27 I'm quite confused about the example given in http://developer.android.com/guide/topics/ui/actionbar.html Mar 05 18:19:57 In the category "Adding Navigation Tabs" there is a static class with a constructor Mar 05 18:21:18 Rob|boR: are you using a custom getView? Mar 05 18:22:28 Me? Mar 05 18:22:31 Oh sorry no Mar 05 18:22:33 marrrk: what's confusing about that? Mar 05 18:23:05 When does that get called? Mar 05 18:23:26 marrrk: when they instantiate a new TabListener in the example below it Mar 05 18:23:58 marrrk: I assume the "static" on the TabListener class is a typo--probably leftover from when it was an inner class Mar 05 18:24:11 if you promote it to a top-level class, you can remove the static Mar 05 18:24:21 Yeah because my IDE complains about that. Mar 05 18:24:27 yeah, just drop it Mar 05 18:24:50 I would bet that in v0 of the document, it was an inner class of the activity Mar 05 18:25:04 So the constructor is called because of the type of class? Mar 05 18:25:22 what? Mar 05 18:25:32 the constructor is called because the constructor is called... Mar 05 18:25:48 .setTabListener(new TabListener( /* snip */ ); Mar 05 18:26:41 ah yes I forgot that the class actually isn't static Mar 05 18:27:25 even if it was, that wouldn't matter for when/why the constructor is called Mar 05 18:29:28 okay Mar 05 18:29:33 13:25:41 < evanc> the constructor is called because the constructor is called... Mar 05 18:29:36 very zen Mar 05 18:31:29 did you mean recursion? Mar 05 18:33:30 what android sdk should I use as minimum to be "sure" almost everyone will be able to use it Mar 05 18:33:48 the app will be gps related if that matters Mar 05 18:34:22 look at the dashboard/stats Mar 05 18:34:49 got any link? Mar 05 18:35:08 http://developer.android.com/about/dashboards/index.html Mar 05 18:35:33 2.1 i guess Mar 05 18:36:07 what's what I thought but was not sure thanks useful info :) Mar 05 18:39:49 sorry was helping somoene Mar 05 18:39:53 someone called for me? Mar 05 18:40:00 oh hi clever Mar 05 18:40:04 Antonis: honestly, I'd say 2.2 as your minimum, unless you really care about eclair Mar 05 18:40:18 people on eclair are using very, very old phones and probably won't buy/use your app Mar 05 18:40:23 um, nope I'm not. but I'm reading about tutorials on doing what I desire Mar 05 18:40:30 hopefully it explains custom views :) Mar 05 18:40:40 lov, so froyo should be my minimum? Mar 05 18:40:48 ok.. :) thank you Mar 05 18:40:53 Antonis: it really depends on what your priority is. Mar 05 18:41:03 I'd personally set Gingerbread as my minimum, because I'm willing to lose out on the people on Froyo Mar 05 18:41:14 I'd set it even higher but GB is still like 50% of the market Mar 05 18:41:14 will follow this tutorial: http://agafix.org/android-how-to-make-a-dashboard-using-a-gridview/ Mar 05 18:41:29 hmm, does anyone have any data on how many Android devices support H.264 Main profile decoding? any tables/lists? Mar 05 18:42:24 lov, is it possible to later on change the minimum requirments? Mar 05 18:42:29 sorry.. I mean the minimum sdk :P Mar 05 18:42:48 anyone know of a channel that we can ask about google i/o? Mar 05 18:44:22 Antonis: sure Mar 05 18:44:37 thank you lov Mar 05 18:44:39 tnzr: ask who about what about google i/o Mar 05 18:44:43 try #android or something Mar 05 18:45:31 lov: specifically about how the process works if you are a student (for example, does your wallet account have to be tied to your .edu address, etc, etc) Mar 05 18:45:35 I will try #android Mar 05 18:52:07 wtf is wrong with Squenix Mar 05 18:52:18 final fantasy 2 will not launch peroperly on devices with usb debug settings enabled Mar 05 18:53:53 tnzr: you might want to email google. Mar 05 18:54:00 haha Mar 05 18:54:54 does anyone know if the InCallScreen activity locks the contacts db? Im trying to insert a phone number on particular contact, but it happens after the InCallScreen is finished Mar 05 18:56:11 smoak: that's a good question. You might want to take a look at the source and see what it does. Mar 05 18:57:07 yeah...if it does though i guess im SOL huh? Mar 05 19:01:26 tnzr, you just need to present valid student id when you pick up your badge Mar 05 19:03:02 canadiancow: awesome Mar 05 19:03:16 (as if I'll make it through the DDoS of ordering tickets) Mar 05 19:03:37 that tutorial was AWESOME!!!!!!!!!!!!!! Mar 05 19:04:33 hey everyone Mar 05 19:07:54 I just started a project using the blank activity with tabs + swipe navigation template in eclipse.... it has a settings menu... how? Mar 05 19:08:27 I dont see anything in the generated code about it. is this some default feature of the actionbar now or something Mar 05 19:09:07 enneract|laptop, it has onCreateOptionsMenu implemented :) Mar 05 19:09:11 i'm still looking for help on this qustion: http://stackoverflow.com/questions/15211297/how-can-i-retrieve-the-timestamp-of-a-video-frame-as-its-being-recorded Mar 05 19:09:22 that is, I'm trying to get the timestamp of recorded video frames Mar 05 19:09:31 ah hell, it does Mar 05 19:09:38 Mavrik: thanks, didnt even notice, was kinda weirded out Mar 05 19:10:30 HorizonXP, the frames are being fed directly from camera to the hardware video encoder and then dumped to disk, you really can't plug into that infrastructure Mar 05 19:10:34 so there's no good way Mar 05 19:11:17 Mavrik: well the only way i've come close is to read the timestamp off of SurfaceTexture Mar 05 19:11:25 HorizonXP, the callbacks you're seeing are for PREVIEW frames which may (or may not be) everything that camera records Mar 05 19:11:34 and they're not meant to be realtime or stamped Mar 05 19:11:34 exactly Mar 05 19:11:45 they're just meant to be thrown on screen as fast as possible :) Mar 05 19:11:58 but looking at Camera in the AOSP, it has an EffectsRecorder Mar 05 19:12:07 presumably, it records from a GRALLOC_BUFFER Mar 05 19:12:19 which looks like it's getting frames from a SurfaceTexture Mar 05 19:12:36 wouldn't that work? Mar 05 19:12:51 hmm, it might Mar 05 19:13:35 you might even get a half-decent fps on low res by using the new mediaencoder apis Mar 05 19:13:37 Mavrik: and that's actually better for me, because I eventually want to incorporate real-time shader effects Mar 05 19:13:58 ah Mar 05 19:14:10 HorizonXP, you should probably find out how to render video preview on a GL texture then Mar 05 19:14:23 Mavrik: I've got that Mar 05 19:14:31 and how to grab that texture and store it somewhere Mar 05 19:14:48 for timestamps... you'll probably just have to do your own timestamps on frames Mar 05 19:15:13 Mavrik: do you have a copy of the AOSP availble to you? Mar 05 19:15:20 I could point you to a line that seems promising Mar 05 19:15:34 hmm, not on this machine sadly :\ Mar 05 19:15:46 that's ok, I can pastebin it Mar 05 19:15:53 or maybe that doesn't help Mar 05 19:15:57 doesn't quite give you context Mar 05 19:15:59 but we could try Mar 05 19:19:52 Mavrik: http://pastebin.com/4KgxiKhX Mar 05 19:20:25 Mavrik: that's the process function from MediaEncoderFilter Mar 05 19:20:30 located in frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink Mar 05 19:26:44 i have no access to the build server Mar 05 19:26:54 so i put shell commands into jenkins Mar 05 19:26:55 ... Mar 05 19:27:47 >_< Mar 05 19:29:07 bah! Mar 05 19:29:15 just when I found someone willing and able to help Mar 05 19:29:17 they quit! Mar 05 19:30:06 HorizonXP: sounds like you need an escort Mar 05 19:31:03 mikedg: lol. Mar 05 19:31:07 i need a lot of things Mar 05 19:35:25 does anyone know if there is a way to force a refresh of the InCallScreen? Mar 05 19:37:48 anyone know how to make in webview accept input from camera? accept attribute works fine on default browser, just not in webview Mar 05 19:43:00 Hey guys..!! Just wanted to ask what do I put in 'onCreateLoader' while defining a CursorLoader.. I have a very basic app. using a db.. and I want to implement ListView functionality into it.. Mar 05 19:45:42 In case I show you my code.. would you guys be able to help..? :-) Mar 05 19:45:47 show me the money Mar 05 19:53:01 mikedg: Here's it..https://github.com/purezen/Android-Garage Mar 05 19:53:09 i see no money Mar 05 19:53:16 fix my problem and ill fix yours Mar 05 19:53:30 Users/MobileTest/Development/android-sdk-macosx/tools/ant/build.xml:642: java.io.FileNotFoundException: /Users/MobileTest/.hudson/jobs/Android-QA-Builds/workspace/ActionBarSherlock-4.2.0/library/bin/AndroidManifest.xml (Permission denied) Mar 05 19:53:36 why it say permission D-nied? Mar 05 19:54:07 You know, I've seen that too Mar 05 19:54:12 sometimes our builds just randomly fail Mar 05 19:54:15 it's really, really annoying. Mar 05 19:54:48 ok ill just keep rebuilding until it works Mar 05 19:54:58 if I have already a textview how do I change it's text programatically? Mar 05 19:55:17 .setText(THE_SPANNED); Mar 05 19:56:06 Hi, do you confirm me the developer.android.com is the best way to learn android from 0? Mar 05 19:56:12 yes, I can confirm this. Mar 05 19:56:20 the second best way is to pay mikedg $1000 to teach you. Mar 05 19:56:31 actually that's the second worst way, I lied. Mar 05 19:56:43 the 1.5th best way is to pay me $10000 to teach you Mar 05 19:56:55 we go in a google hangout and you watch me code all day Mar 05 19:57:07 if you pay $12000 you can see him yawn sometimes too Mar 05 19:57:08 mikedg, argh :D Mar 05 19:57:10 yes I know the .setText part but how do I define which textview etc? what I want to do is check if the gps is enabled and add a text GPS: ON or if it's not GPS: OFF Mar 05 19:57:11 and you can give me tips and i'll code whatever you want Mar 05 19:57:18 Antonis: findViewByid Mar 05 19:57:19 $20 gets you a ccustom method Mar 05 19:57:26 oh thanks let me try Mar 05 19:57:28 $50 gets you nice formatting Mar 05 19:57:31 lov, i've to just follow each training? Mar 05 19:57:41 m8: yes, that's a good starting point. Mar 05 19:57:58 from there you'll actually have a decent idea of what you're doing and you'll be able to figure out where to go next Mar 05 19:58:08 good Mar 05 19:58:55 Hi, I'm trying to find a way to handle authentication. I have a class that handles all my network calls, and I want to be able to throw exceptions from that class when authentication fails. My problem is that this class will be called from a background task 99% of the time, so how can I catch these exceptions? Mar 05 20:00:42 m8 i'm hiring Mar 05 20:00:48 you'll have ot fake your way in Mar 05 20:00:55 but once you are hired i can show you the ropes for half your pay Mar 05 20:02:46 Hello. I'm looking at several android frameworks. Which is the one you prefer? I would like to ask several opinions Mar 05 20:04:07 Petein: the one documented on d.android.com Mar 05 20:04:16 Guys.. what do I put in the uri field of onCreateLoader in case I want to query a SQLite db..? Mar 05 20:04:40 the URI of your ContentProvider that you want to query Mar 05 20:05:06 evanc: well i'm looking at a framework and not at the standard sdk. Mar 05 20:05:29 evanc: how about jquery? Mar 05 20:05:29 what kind of framework? Mar 05 20:05:37 lol :D Mar 05 20:05:44 mikedg, :O Mar 05 20:05:44 jquery is a js library Mar 05 20:05:45 Petein: oh, so you're asking for the shiniest turd? Mar 05 20:05:52 someone else in here might be able to answer that for you Mar 05 20:05:58 evanc: How do I get the URI in case of a SQLite db..? Does it exist btw..? Mar 05 20:05:59 where should I paste a bit of code to show you my problem? Mar 05 20:06:09 Antonis: pastebin.com Mar 05 20:06:19 timroes: an android development framework. it is still a way to develop cross-platform apps: http://jquerymobile.com/ Mar 05 20:06:31 "apps" Mar 05 20:06:47 timroes: i know that it is a js library. HTML5 though is quite hot these days Mar 05 20:06:53 (a) jquery != jquerymobile (b) ass evanc said "apps" and (c) a framework is more then a lib :) Mar 05 20:07:37 oh cause some channels doesn't like pastebin :) http://pastebin.com/6i41htxW this gives me an "unfortunately, *** has stopped." Mar 05 20:07:38 i know that jquery is a js framework. sorry Mar 05 20:07:52 stop being dicks Mar 05 20:07:59 this channel isnt for dicking around Mar 05 20:08:14 Antonis: and have you considered looking at the log output for the big shiny stacktrace? Mar 05 20:08:16 and yeah there is a usecase to everything, but don't expect html5+js produce you a real app Mar 05 20:08:22 https://lh4.googleusercontent.com/-xVFXBbhkm9I/USapDS-UQSI/AAAAAAAAqF4/XLrgG3YdkP0/s400/35215205.jpg Mar 05 20:08:33 ha Mar 05 20:08:43 Guys.. can I use CursorLoader to retrieve content from a SQLite db..? Mar 05 20:08:54 yes Mar 05 20:09:13 e.g. if you want to make some small web frontend for an already existing web app, nice try, give jquerymobile a look, but if you want to make an real app: d.android.com Mar 05 20:09:37 so what any good android frameworks? why jquerymobile is not a good solution to go? Mar 05 20:09:40 lov is it due to permissions maybe? I'll check thanks Mar 05 20:09:59 Antonis: I don't know, is it? Mar 05 20:10:02 but to answer your main question: take a framework you like, the results will be slightly different and all far away from a real app, but on the same level Mar 05 20:10:06 Antonis: why don't you look at the logcat output and/or pastebin your stacktrace Mar 05 20:10:09 * lov points to the link in the topic Mar 05 20:10:11 Phonegab has a pretty wide user base Mar 05 20:10:29 Anyone used the eclipse template for SettingsActivity? Mar 05 20:10:35 timroes: i would like to hear opinions.pros and cons. which frameworks have you tried? Mar 05 20:10:37 on build 17 will it be successful? Mar 05 20:10:40 mikedg: ok.. how..? I need to fill a CursorLoader callback 'onCreateLoader' with a URI.. where do I get that..? Mar 05 20:11:16 Petein: jquerymobile, phonegab, senchatouch Mar 05 20:11:32 use this https://github.com/commonsguy/cwac-loaderex#readme or make a content provider or google it Mar 05 20:11:41 timroes: and what did you like mostly? can you please tell me more? Mar 05 20:12:07 the only cross platform framework that isnt ass is Unity Mar 05 20:12:10 write all your apps in unity Mar 05 20:12:13 as i said, there is not much different, non of them produces real apps Mar 05 20:12:18 and mono Mar 05 20:12:30 write your app in C. Perfectly portable. Mar 05 20:12:31 mikedg: unity rocks, but we have to wait for 1+ year isnt it? Mar 05 20:12:38 lov: :P lol Mar 05 20:12:42 Petein: wait? for what Mar 05 20:12:52 mikedg: for having unity on mob devices Mar 05 20:12:53 mikedg: unity3d != unity Mar 05 20:12:59 thats what he mixes up i guess :) Mar 05 20:13:05 well i mean unity 3d Mar 05 20:13:16 mikedg: i guess you are talking about ubuntu on mobs isnt it? Mar 05 20:13:17 unity = desktop environment of ubuntu, and as such perhaps coming to ubuntu mobile :) Mar 05 20:13:17 not that ubuntu glop Mar 05 20:13:22 lov give me a moment I am trying to figure out where exactly to look in eclipse Mar 05 20:13:41 any of you guys buy office 365? Mar 05 20:13:42 mikedg: whats glop ? Mar 05 20:13:49 poop Mar 05 20:14:10 Antonis: the logcat tab should open automatically when your app starts Mar 05 20:14:18 mikedg: ok. now which framework you suggest for apps on android? Mar 05 20:14:32 The Android Developer Framework Mar 05 20:14:36 see also http://developer.android.com/tools/debugging/ddms.html#logcat Mar 05 20:14:45 Petein: the one that comes with all of the devices Mar 05 20:15:08 only use phonegap et al if you have a simple featureset and cross-platform compatibility is the most important thing. Mar 05 20:15:14 otherwise, just write a damn native app. Mar 05 20:15:17 Petein : i worked with PhoneGap+jQuery mobile, it`s ok, i was dissapointed with performance to be honest Mar 05 20:15:27 lov: aha Mar 05 20:15:28 and like lov said, cant agree more :P Mar 05 20:15:32 lov: i write all my apps in PDP assembly, i don't see how it could possibly not be portable to any machine on the planet Mar 05 20:15:46 bLeeeh: thanks! Mar 05 20:16:39 zinx: you of course have to write the interpreter, but that's just details. Mar 05 20:16:43 although both PhoneGap and jQm have pretty good community and the new versions are flying almost every month Mar 05 20:16:46 so they are working on performance Mar 05 20:17:17 bLeeeh: so there is a way to combine PhoneGam and JQm ? Mar 05 20:17:32 bLeeeh: and why not using only PhoneGap ? Mar 05 20:17:35 yeah, why not Mar 05 20:17:44 bLeeeh: what is it missing? or only jqm Mar 05 20:18:02 uhm PhoneGap is mostly bridge with which you can use phone resources like camera, storage, contacts,... Mar 05 20:18:12 Provider gps requires ACCESS_FINE_LOCATION permission Mar 05 20:18:19 lov I believe that's the prob Mar 05 20:18:31 jQm is just touch-optimized web framework Mar 05 20:18:59 you can use only PhoneGap if you want Mar 05 20:19:08 mikedg: Thanks..:-) Going through it.. And so, is it that there's no in-built functionality provided by Google for doing such stuff..? I mean.. as a beginner it is intimidating.. Mar 05 20:19:34 bLeeeh: are both frameworks based on js? Mar 05 20:19:56 https://www.youtube.com/watch?v=G8zKBiJ5tUo Mar 05 20:19:59 oops, sorry Mar 05 20:20:06 wrong channel, it´s just a song Mar 05 20:20:52 btw lov we talked yesterday about streaming camera capture over cellular/3g to some web server... about the NAT traversal etc.. i gave up on that Mar 05 20:20:53 lov fixed it :D Mar 05 20:21:09 romainguy: you around sir ? I was wondering how easy it is for you to check a few lines of src from one of your closed apps, relates to a bug I reported that is not been fixed but there is a work around (in calendar app) Mar 05 20:21:14 i`m working on recording 10 sec clips, sending to server Mar 05 20:21:28 there i`ll concatenate videos together, and play the video with 1 min delay or something Mar 05 20:21:32 with ffmpeg Mar 05 20:21:40 pretty cowboy solution but yeah, we will see how it will go Mar 05 20:22:45 just use google glass Mar 05 20:23:41 :o Mar 05 20:25:02 checking what it is Mar 05 20:25:41 Antonis: glad to help. Mar 05 20:26:16 yea mikedg i`d love to use google glass Mar 05 20:26:23 i do need some cheaper solution tho lol Mar 05 20:32:50 maybe a tad more of a java question, but how can I encrypt a string with SHA-256? Mar 05 20:36:33 the_jeebster: http://stackoverflow.com/questions/5531455/how-to-encode-some-string-with-sha256-in-java Mar 05 20:36:42 x1000000: 03-05 15:36:20.785: D/ClockWidget(2550): TTS Message = 48.0Degree Fahrenheit, Sunny Mar 05 20:36:44 fuck you samsung Mar 05 20:37:51 timroes: gracias good sir Mar 05 20:40:34 mikedg: heh Mar 05 20:45:20 quit Mar 05 20:50:46 g00s: yo! Mar 05 20:51:15 p_l: hey, how did things go :) !! Mar 05 20:51:18 canadiancow: you around? Mar 05 20:51:37 g00s: rather fine, I think :D Mar 05 20:51:50 p_l: excellent :) Mar 05 20:51:51 got a guy who actually used MIT ITS and DEC TOPS-20 :D Mar 05 20:53:01 and of course, since you ported both of those to a casio g-shock watch … Mar 05 20:53:09 common ground :) Mar 05 20:53:51 lol Mar 05 20:54:24 I didn't port them, but he did ask me how I ended up knowing them and what I learned from them (that was relevant to answer "how/why") Mar 05 20:57:58 tnzr, yeah Mar 05 21:01:54 programmers are modern day wizards Mar 05 21:01:58 i need a wand Mar 05 21:02:25 Hmmm ... circa PDP-10 ... ? I did PDP-8 waybackwhen :p Mar 05 21:04:58 capella: yes, ITS and TOPS-20 are PDP-10 oses :) Mar 05 21:05:23 and it appears my interviewer was at MIT back when those were still used, or at least available Mar 05 21:05:44 PDP-8 almost ruined my training ... dang thing was octal based ... three bit bytes 12-bit words Mar 05 21:06:00 capella: PDP-10 also favored octal (36-bit) Mar 05 21:06:24 We had'em at RIT and used the OS fo our Systems sciences UNIX classes Mar 05 21:06:49 hmm... UNIX on PDP-8? Mar 05 21:06:52 capella: you go to RIT too ? \o/ Mar 05 21:06:57 haven't heard of one Mar 05 21:07:10 went to RIT yah .. Mar 05 21:07:14 Rochester? Mar 05 21:07:20 :) Mar 05 21:07:24 yah - lives in Syracuse Mar 05 21:07:29 wait, where did these RIT people come from? Mar 05 21:07:34 I feel like I'm taking crazy pills Mar 05 21:07:35 :D Mar 05 21:07:58 ah, the brick city Mar 05 21:08:14 We were almost named South Henrietta Inst of Tech but that was awkward Mar 05 21:08:30 :/ yaa Mar 05 21:08:31 g00s: heh. San Francisco definitely looks... "different" from what I am used to :P Mar 05 21:08:32 [citation needed] on the "almost" Mar 05 21:08:34 Brick City and PKT ! Mar 05 21:09:12 evanc: you must have gone nuts there, being so flat - no snowboarding ! Mar 05 21:09:22 well, i think there was a hill in Ithaca area or something Mar 05 21:09:26 take me down to brick city Mar 05 21:09:31 making out in the tunnels .... Mar 05 21:09:35 :D Mar 05 21:09:37 Am I imagining my memory of a tool which moves strings hardcoded in layout xmls, etc to a strings xml? Mar 05 21:09:54 enneract|laptop: no Mar 05 21:09:59 i did not go to RIT Mar 05 21:10:02 i feel left out Mar 05 21:10:06 i'm going back to school, ttyl Mar 05 21:10:32 what tool is that? Mar 05 21:10:33 Is it possible to use a library project that has a lower minSdk than my app by surrounding uses of classes from that library with a version check? Mar 05 21:10:46 or higher* minSdk rather Mar 05 21:10:49 mikedg: they rejected you when your admissions said "i'm applying to the Rochester Institute of Trolls ..." Mar 05 21:10:59 lol Mar 05 21:11:21 matt9, lint is going to throw a fit, but yes, it will work Mar 05 21:11:31 actually im not sure the build system will even let you Mar 05 21:11:34 ah cool ok Mar 05 21:11:39 how do I add different permissions to my manifest? Mar 05 21:11:41 i mean at runtime, it would work Mar 05 21:11:43 multiple* Mar 05 21:11:45 hmm ive built it and it *seems* to be ok Mar 05 21:12:14 if you are protecting calls to the methods that use newer apis, you're fine Mar 05 21:12:38 yeah basically my minSdk is 7, but I want to use MapFragment from Google Play Services whichi requires minSdk 8 Mar 05 21:12:55 but the map stuff isnt really critical to my app so I can gracefully degrade the experience if maps arent available Mar 05 21:14:48 yeah makes sense Mar 05 21:14:54 just dont try to instantiate the mapfragment :P Mar 05 21:15:00 oh Mar 05 21:15:05 does play services even exist on api 7? Mar 05 21:15:11 like does an eclair device get it? Mar 05 21:15:20 i dont think so Mar 05 21:15:47 so I'll only attempt to do map stuff if we're at least API 8 Mar 05 21:16:18 you might consider just dropping eclair. It's not very popular anymore, especially not with users who are likely to be installing new apps. and it's another setup to test and debug against. Mar 05 21:17:18 +1 Mar 05 21:17:23 i dropped eclair when i wanted google play services Mar 05 21:17:28 it just wasnt worth the effort Mar 05 21:18:11 you guys are right that would be ideal.. Mar 05 21:18:26 i need to formulate a good argument to convince people that its worth it Mar 05 21:18:35 matt9: a new app ? Mar 05 21:18:41 http://developer.android.com/about/dashboards/index.html Mar 05 21:18:44 argument right there Mar 05 21:18:47 1.9% Mar 05 21:18:53 its not a brand new app Mar 05 21:19:25 from the Play Developer Console you can see how many new installs each day come from eclair. i doubt it's many Mar 05 21:19:39 im gonna play devils advocate Mar 05 21:19:54 but 1.9% is hundreds of thousands of users! Mar 05 21:20:00 it'll also show what percent of existing users are already on eclair, and if that's significant you may need to think about if there will be backlash to releasing an update that they won't get Mar 05 21:20:09 so just stop updating it for them Mar 05 21:20:11 look at gmail Mar 05 21:20:18 when was the last time the pre-ics version of gmail was updated? Mar 05 21:20:25 hi, Mar 05 21:20:31 it still exists. users can still download it. it just doesn't get new features Mar 05 21:21:11 yeah, the question seems to be whether being able to use Map Fragments is worth hundreds of thousands of users not getting updates Mar 05 21:21:18 Hi, is there a way to use reCaptcha on Android? Mar 05 21:21:25 I suppose there is the old MapActivity to fall back to Mar 05 21:21:29 but it makes things ugly Mar 05 21:22:38 support both map apis is going to be a massive pita Mar 05 21:22:57 imo, your options are 1) drop eclair (preferred), 2) only have maps on froyo+ Mar 05 21:22:59 if i were to use MapActivity i would just use that for everything and not use map fragments Mar 05 21:23:05 oh god Mar 05 21:23:06 dont do that Mar 05 21:23:11 really users on eclair accept that their phone is shitty and apps running shittily. users on Jellybean have higher standards and are less likely to tolerate ugly and old apps. Mar 05 21:23:36 what release is api8? Mar 05 21:23:37 and marketshare for ICS/JB grows everyday, and eclair drops. you don't want to spend too much resources catering to a dying market Mar 05 21:23:40 icecream? Mar 05 21:23:44 api8 is froyo Mar 05 21:23:52 yeah good point kevinb Mar 05 21:25:11 canadiancow whats so bad about using mapactivity Mar 05 21:25:21 other than being forced to extend from mapactivity Mar 05 21:25:53 it's old Mar 05 21:25:54 and ugly Mar 05 21:25:57 and doesnt support a lot of stuff Mar 05 21:26:12 any hints about reCaptcha on Android? Mar 05 21:26:14 when i went from the old maps api to the new one, i was able to delete like 1000 lines of code from my app Mar 05 21:27:27 deleting code is always the best feeling ;) Mar 05 21:28:25 deleteing other peoples code is best :D Mar 05 21:29:09 haha Mar 05 21:30:33 deleting my code is like Mar 05 21:30:35 /me faceslaps ! Stupid me ! Mar 05 21:30:45 reading this, looks like the consumer app bubble is about to burst, and the best opportunity is in enterprise app development Mar 05 21:31:14 (they are a few years behind). surprised to see eHealth so hard to monitize Mar 05 21:31:34 g00s- yah I keep hearing I cant make JAVA pay unless I do the .NET thingy and go corp Mar 05 21:32:34 but i would think the infosys/wipros of the world are right there waiting to do mobile enterprise apps … so, on to the next thing ! Mar 05 21:33:45 meanwhile, Canonical is using SurfaceFlinger for their Mir stuff Mar 05 21:33:53 is it possible for an end user to change where DIRECTORY_MUSIC points to? Mar 05 21:34:03 or is that a vendor specific thing Mar 05 21:34:09 that's almost certainly vendor specific Mar 05 21:34:14 I cannot imagine that changing at runtime Mar 05 21:35:54 I suspected as much, kinda sucky Mar 05 21:36:13 I might have to build an option asking the user if they want downloads to go to their sd card Mar 05 21:37:59 actually.. that's probably not even possible Mar 05 21:51:45 back to the topic of using libraries with a higher minSdk than my what my app has set.. Is it normal that I can import and reference classes from the library like com.google.android.gms.maps.GoogleMap even though I can't use them? Mar 05 21:52:00 Hey guys..!! How do I use cwac-loaderex in my code..? I am trying to implement a ListView btw.. Mar 05 21:52:01 or am i just lucky that nothing has broken Mar 05 21:54:05 matt9: ofc you can at compile time use everything that is available in the version you are compiling against, not only libs but also the framework Mar 05 21:54:20 but ofc it will crash at runtime if its not available at the version running Mar 05 21:56:01 I see. So its not weird that I can run an activity that imports and references com.google.android.gms.maps.GoogleMap on a device with minSdk=7, when the library that those classes are from requires minSdk=8? Mar 05 21:56:51 like it doesnt crash because I haven't tried to instantiate any of those classes i guess Mar 05 21:57:52 What APIs are available to you at compile time is determined by your build target Mar 05 21:58:31 If you try to use any of them when they're not available, it will crash Mar 05 22:11:29 g00s: ... I might have a very... weird day tomorrow Mar 05 22:15:43 hey guys Mar 05 22:17:01 okay...I feel stuck and could use some help with ListView and focus Mar 05 22:17:10 I watched a video someone linked me yesterday and tried a few things (perhaps incorrectly) that I learned from the video Mar 05 22:17:16 but am still stuck Mar 05 22:17:36 I have a ListView that gets populated dynamically Mar 05 22:17:40 and I can press up/down to navigate it Mar 05 22:18:09 p_l: things get stranger the closer you get to SF ;) Mar 05 22:18:16 once someone selects an item ...I think this code reuses the xml view...makes a submenu and populates it dynamically as well Mar 05 22:18:21 pfn: http://www.theverge.com/2013/3/5/4068174/cree-10-dollar-led-light-bulb-incandescent Mar 05 22:18:56 anyway, I cannot use up/down to navigate this submenu Mar 05 22:18:56 ooh Mar 05 22:19:01 however, if I click on a header of the list, then I can Mar 05 22:19:11 $10 LED lightbulb replacement? tempting Mar 05 22:19:16 so I think it has to do with focus Mar 05 22:19:20 the same thing happens in reverse order when I go back Mar 05 22:19:27 the second (sub-)menu has focus initially. I can navigate it. But then when I press back again, the main menu does not have focus Mar 05 22:19:34 I tried adding a listView.requestFocus() to the onCreateView Mar 05 22:19:41 also listView.requestFocusFromTouch() and listView.setItemsCanFocus(false); Mar 05 22:19:49 I also added those to the activity's onChannelsListSelected() (the callback to when an item is selected, I think) Mar 05 22:19:57 inside the onChannelsListSelected (the main menu) there is a FragmentTransaction with .replace(R.id.landing_fragment, new ChannelsFragment()); Mar 05 22:20:02 so it looks like maybe it is reusing that same ListView but replacing the contents?? Am I reading that correctly? Mar 05 22:20:03 g00s: this time it might be london though Mar 05 22:20:09 g00s, nice deal, I definitely have to pick some of those up Mar 05 22:20:16 I wish they'd have 100W equivalent bulbs Mar 05 22:20:25 I tend to want to run those moer than 60W equivalents Mar 05 22:20:34 Same Mar 05 22:21:09 * pfn <3 his LED recessed lights in his home office Mar 05 22:21:35 :) Mar 05 22:21:48 i light up my room with my zebralight SC600 :) Mar 05 22:21:54 /me is minimalist Mar 05 22:22:12 pfn: doing any work on qirc still ? Mar 05 22:22:53 g00s: let's say that just in case, I'm taking extra change of clothes to work tomorrow ;P Mar 05 22:23:22 g00s, haven't been lately, trying to wrap up a contract I'm on currently, then gonna free up my time Mar 05 22:23:25 so that I can Mar 05 22:23:38 g00s, probably gonna open source it, as well, so people can get a better impression of scala on android Mar 05 22:23:54 oh wow Mar 05 22:25:11 it might lead to fun calls home tomorrow :> Mar 05 22:25:32 I've also been playing too much lol lately Mar 05 22:25:36 enjoying that game far too much Mar 05 22:27:22 speaking of lol.. someone tried "heroes of order & chaos"? Mar 05 22:27:30 f2p android moba Mar 05 22:27:52 and it seems to be the shit Mar 05 22:28:39 * cari slaps pfn with an old, smelly trout Mar 05 22:28:45 you there Mar 05 22:28:51 do you copy? Mar 05 22:29:20 nope, I don't like gaming on mobile so much Mar 05 22:29:47 that changes when you connect a ps3 controller and a HD display to your hdmi output Mar 05 22:30:52 * pfn shrugs Mar 05 22:30:54 * pfn just plays lol Mar 05 22:30:56 and is happy Mar 05 22:30:57 at least it changes first person shooter completely Mar 05 22:31:27 but i think you can play moba games on touchscreen very well Mar 05 22:31:34 better than other games Mar 05 22:31:59 but gaming without buttons is a completely retarded idea, i have to say Mar 05 22:32:07 holy crap, Hugo Chavez died Mar 05 22:32:25 uh Mar 05 22:32:31 cia did their job Mar 05 22:32:34 as it seems Mar 05 22:33:22 cancer inducing x-rays from space Mar 05 22:33:27 ez Mar 05 22:33:32 ProgramMax: strange question but do you actually check to see if a list item is selected ? Mar 05 22:33:57 ProgramMax: as in if your items have a background and selector is drawn behind Mar 05 22:33:57 yes and no? .requestFocus() returns a boolean whether it got the focus, I believe Mar 05 22:34:00 that is returning true Mar 05 22:34:10 no Mar 05 22:34:26 look at all the select stuff in listView class docs Mar 05 22:34:33 okay Mar 05 22:34:43 what am I looking for? No item is selected? Mar 05 22:34:50 so like the up/down doesn't make sense, perhaps? Mar 05 22:34:53 and if your doing requestFocus fon the listView thats not the items Mar 05 22:35:24 I would suspect that you need to select item 0 and then go from there Mar 05 22:35:28 as a test Mar 05 22:35:33 that makes sense to me Mar 05 22:35:42 uhhh...how do I do that? :D Mar 05 22:35:47 sorry, I'm totally new to android dev Mar 05 22:35:59 well make sure selector is drawn onTop for one thing Mar 05 22:36:11 make sure you can select it with touch and see it in emu Mar 05 22:36:23 then look for setSelected or something in listView class Mar 05 22:36:32 to test on your odd hardware :) Mar 05 22:36:45 when I give the header focus and then press down, I clearly see the item is selected Mar 05 22:36:49 so I believe there is a selector Mar 05 22:37:04 oh so whats the problem ? Mar 05 22:37:04 like...as I press up/down one item has a highlight Mar 05 22:37:06 donnnnt... donnnnnt... Mar 05 22:37:11 donnnnt believe the hype! Mar 05 22:37:19 the problem is, that only happens after I click with this touch pad to give the header focus Mar 05 22:37:28 oh right Mar 05 22:37:31 but the header doesn't originally have focus Mar 05 22:37:36 or isn't selected Mar 05 22:38:16 and you cant select it in code ? the header that is Mar 05 22:38:23 I'm not sure how Mar 05 22:38:28 I have: Mar 05 22:38:43 ListView listView = (ListView)view.findViewById(R.id.landing_list); Mar 05 22:38:49 from there, can I get the 0th item? Mar 05 22:40:07 get items from the adapter, not the view Mar 05 22:40:17 oh okay, I have mAdapter Mar 05 22:40:37 so I can just mAdapter.getItem(0); Mar 05 22:40:53 canadiancow: he wants to select item 0 Mar 05 22:41:00 but I can't mAdapter.getItem(0).requestFocus(); Mar 05 22:41:11 oh Mar 05 22:41:15 sorry Mar 05 22:41:16 setSelection() Mar 05 22:41:20 on the listView Mar 05 22:41:21 (I appologize for my total misunderstanding of all this) Mar 05 22:41:22 i wouldnt really call that "get the 0th item" :P Mar 05 22:41:23 okay Mar 05 22:41:26 setSelection(0) Mar 05 22:41:44 never done it or tried tbh Mar 05 22:41:53 but from docs seems like what you want Mar 05 22:42:04 as long as it has items that is Mar 05 22:42:07 k, let me try that Mar 05 22:42:29 canadiancow: does anyone here have access to closed source android apps to be able to check something ? Mar 05 22:42:40 canadiancow: re: a bug that is not fixed Mar 05 22:42:53 StingRay_, it's possible... maybe if you asked an actual question :P Mar 05 22:42:57 adding that in onCreateView didn't seem to work Mar 05 22:42:57 but is bypassed in the calendar app Mar 05 22:43:08 let me try adding it in the activity, I guess? Mar 05 22:43:14 calendar is open source isn't it? Mar 05 22:43:54 need to check how the calendar app saves restores editText fields, as a bug that is present in all other google apps, or any apps, (default IME bug) does not occur in calendar Mar 05 22:44:12 didn't work in the activity like onChannelsListSelected() either Mar 05 22:44:29 so calendar does something different, and I dont know what Mar 05 22:44:37 it's open source Mar 05 22:44:41 eh? Mar 05 22:44:46 I got told it wasnt Mar 05 22:45:00 did you try checking aosp? Mar 05 22:46:37 would the more correct solution be to have a separate view...separate list? Mar 05 22:46:45 how do apps normally do submenus? Mar 05 22:47:13 https://android.googlesource.com/platform/packages/apps/Calendar/ Mar 05 22:57:11 hi there , I need help about HDMI output in modedb.c file Mar 05 22:58:04 somebody knows how to edit timmings and ratio ? Mar 05 22:59:43 anyone ? Mar 05 23:00:30 * Bleeptech has come to a conclusion... Mar 05 23:00:49 so I just tried on the android emulator instead of the device Mar 05 23:00:53 Dyslexia ++ Java == Suck. Mar 05 23:00:57 and I can't press up/down to move the focus / selection at all Mar 05 23:01:21 so ...think this might be something that was changed for the Ouya? Mar 05 23:01:44 ProgramMax: though about doing it manually ? cause thats maybe something I would try if I couldn't get it to work Mar 05 23:02:07 as in Override the up/down and do it yourself Mar 05 23:02:22 What do you mean? Mar 05 23:02:33 I mean exactly my last sentence Mar 05 23:03:15 I might. *shrugs* I want to do as little as possible though...serious time constraint Mar 05 23:03:31 so maybe this code should be rewritten, but I don't have time to do that right now Mar 05 23:04:31 is there an email address i can use for intel; to update their damn x86 images :| Mar 05 23:04:59 clearly a lack of communication here Mar 05 23:05:34 please if somebody knows on how to modify the output resolution of HDMI let me know :))) Mar 05 23:06:59 no OMAP pro devs here ? Mar 05 23:07:14 g00s: whats the prob with them ? Mar 05 23:07:20 oh the no google stuff :) Mar 05 23:12:28 * Quacked should consider making an app where you make damage to the referee in man utd -real madrid :P Mar 05 23:15:53 I want to add the same actionbar item on all of my activities. Naturally, I would think to create a BaseActivity that all the other activities would inherit. What kind of layout should the base activity have? (or should it even have one at all?) Mar 05 23:16:44 frewsxcv: don't deepen your inheritance hierarchy for that :| Mar 05 23:17:03 g00s, well how would one do that? Mar 05 23:17:50 well, i haven't used the actionbar yet :P but if you have some code in common, just put it in some helper class and call it from your onCreates() Mar 05 23:18:00 frewsxcv: your base activity doesn't need a layout Mar 05 23:18:34 Just have the action bar code to add stuff Mar 05 23:18:35 I am using Android handler for the first time. I use them to process requests from the interface (activity). Works fine so far, just sometimes I get: Handler sending message to a Handler on a dead thread. How can I avoid such pitfalls? When do I have to dispose and reconstruct the handler? Mar 05 23:18:48 AlCapwn, so if i want to just create one actionbar item, i should create the menu layout xml. will it automatically merge the children menu layouts? Mar 05 23:19:40 Oh I thought you meant the menu would be completely the same in all activities Mar 05 23:19:46 It seems like this doesn't work in my Service if I close the Activity. Any ideas? Toast.makeText(context, R.string.alarmCancelled, Toast.LENGTH_SHORT).show(); Mar 05 23:20:04 AlCapwn, no, i want to have one shared actionbar item on all activities, but i want each activity to also specify their own Mar 05 23:20:50 frewsxcv: hmmm, if it's just one item, you can just copy paste it to your menu files. I don't think you can use the include tag on menus Mar 05 23:21:06 basically i want to have a logout button on each activity, as well as activity specific buttons Mar 05 23:21:30 Yeah, don't make a base activity for that Mar 05 23:21:50 I run it in a BroadcastReceiver I mean Mar 05 23:22:05 I would go with the copy paste approach, with code in a utility class to handle clicks on it Mar 05 23:26:46 Normally Toast works in my BroadcastReceiver, but if I start task switcher and end my app (Service is still running), Toast doesn't work anymore. Why is that? Mar 05 23:31:08 Isn't broadcastReceiver tied to your activity lifecycle? Mar 05 23:31:15 or at least app lifecycle? Mar 05 23:31:40 It's tied to my Service Mar 05 23:32:23 what context are you using Mar 05 23:32:30 Basically I have setDeleteInvent start that BroadcastReceiver which cancels stuff in Service, display a Toast and stops Service Mar 05 23:34:40 what do you mean? Mar 05 23:35:06 Toast.makeText(context, R.string.alarmCancelled, Toast.LENGTH_SHORT).show(); Mar 05 23:35:16 help please on hmdi output settings in modedb.c Mar 05 23:35:17 Where context is onReceive(Context context, Intent intent) Mar 05 23:42:47 WaHapn: you're really not going to find anyone who can help with that in here Mar 05 23:44:49 why ? Mar 05 23:45:03 because this channel is for app developers Mar 05 23:45:08 ahhh Mar 05 23:45:20 i saw DEV so I thought... Mar 05 23:45:28 WaHapn: /topic :) Mar 05 23:45:32 cuz its related to android Mar 05 23:46:03 #android Mar 05 23:46:14 #android won't be any more help Mar 05 23:46:31 there's really no IRC channel for what you're looking to do. Maybe #cyanogenmod-dev if you're lucky Mar 05 23:46:35 i know i already ask em :) Mar 05 23:46:42 WaHapn: unfortunately, there isn't really a community for platform devs (XDA-related ones can help sometimes) Mar 05 23:47:00 or maybe OMAP i ll try Mar 05 23:47:03 thanks anyway Mar 05 23:47:36 well not OMAP but texas instrument irc support Mar 05 23:50:55 I'm trying to wrap my head around the rationale of on of the components used in http://android-developers.blogspot.com/2011/06/deep-dive-into-location.html In particular, why is a broadcastreceiver used to host the pendingintent for a LocationManager.requestSingleUpdate(.., pendingintent)? Why isn't an un-exported service better? (This avoids using the broadcastreceiver, which could be tickled by any app.) Mar 05 23:52:27 I guess the naive question I have is -- wouldn't one generally avoid a broadcastreceiver to host a pendingintent sent to a system service? Mar 05 23:53:20 kbs: you can have app local broadcasts Mar 05 23:53:29 rather than system wide Mar 05 23:54:21 StingRay_: that's a bit orthogonal to my question I guess :-) but in any case -- are they accessible via pending intents sent to a system service? Mar 05 23:59:39 StingRay_: my admittedly vague understanding of LocalBrodcastManager is that the gotcha is -- it doesn't work to host pendingintents sent to system services [eg: AlarmManager, or in that example's case, LocationManager.] Mar 06 00:00:49 If I start my NotificationService with startForeground, onReceive in my BroadcastReceiver works fine when I cancel a Notification. But if I start the NotificationService, then open task switcher and kill my app, when I then cancel the Notification I never get to the onReceive. The Notification is removed though and I get nothing in LogCat. Here is a part of the code: http://pastebin.com/kCuTX6wm Mar 06 00:02:16 LogCat says that the NotificationService is still running after I kill the app in the task switcher (by dragging it to the right out of the task switcher) Mar 06 00:03:39 This is what I get in LogCat when I click on/cancel the Notification: http://pastebin.com/RC06mHrj Mar 06 00:04:59 Quacked: hard to tell without all your code :-) but from what I understood -- are you using start_sticky when starting that service? Mar 06 00:05:16 it sure looks like it's restarting your service from the log Mar 06 00:05:27 I know, but I'm not :) Mar 06 00:05:42 It's weird Mar 06 00:06:00 what does "I'm not" mean? You aren't restarting your service, or you returning start_sticky from your code? Mar 06 00:06:17 Sorry, I'm returning Service.START_NOT_STICKY Mar 06 00:06:34 I can show more of the code if you'll bother reading it :) Mar 06 00:06:45 It's not pretty, hehe Mar 06 00:07:08 if not me, someone smarter than me might ;-) Mar 06 00:09:01 Here is my NotificationService: http://pastebin.com/SEZY83RC Mar 06 00:10:44 and here is the BroadcastReceiver: http://pastebin.com/RKTFHwAa Mar 06 00:13:50 Any ideas? Mar 06 00:14:11 beats me. You're right, too much code for me to grasp. Mar 06 00:14:20 Quacked: why not just debug it ? Mar 06 00:14:40 StingRay_: don't know how Mar 06 00:15:27 Quacked: learn :) Mar 06 00:15:35 hehe Mar 06 00:16:03 But what is the difference between the state where I end my app by removing it from the task switcher, and normal mode? Mar 06 00:16:21 When the Service is running anyways Mar 06 00:17:35 anyone integrated their app with Google Drive API? i had mine working a couple weeks ago, and now it's stopped working, and i'm scratching my head trying to figure out why. API is still enabled in the console, and i have the correct signatures listed in the Android key (both my debug and release key signatures) Mar 06 00:17:58 My app has a weird bug when using the app switcher to switch between it and chrome Mar 06 00:18:10 obviously something has changed, but i'm not sure what (and i don't have a specific point in time I know for sure worked to go back to and diff against) Mar 06 00:18:57 My app should be at the bottom as the most recent, but it does the minimize animation and then chrome takes its place Mar 06 00:19:08 And it becomes 2nd last Mar 06 00:23:59 evening Mar 06 00:29:23 how can i verify that an .apk is signed by a particular key? Mar 06 00:31:37 not asking so hopefully not violating topic Mar 06 00:31:41 I NEED A NEW JOB STAT! Mar 06 00:31:58 ron_frown, where you at Mar 06 00:32:06 central coast of cali Mar 06 00:32:21 ron_frown, you're on your own, come live in the frozen north, i'll hook you up Mar 06 00:33:25 ron_frown: central coast as in near sf Mar 06 00:33:26 ? Mar 06 00:33:29 tophyr, http://stackoverflow.com/questions/9949459/self-checking-an-apks-signature Mar 06 00:33:30 not really no Mar 06 00:33:37 between sf and LA Mar 06 00:36:17 WTF THEN.. this damn apk is correctly signed for use with gdrive api, and the console is configured correctly... Y U GIVE 403 Mar 06 00:37:34 StingRay_: if I ran my Service in its own process, cancelling notification even after I had closed app with app switcher worked Mar 06 00:38:28 tophyr, https://developers.google.com/drive/handle-errors Mar 06 00:38:35 but at the same time it broke other stuff Mar 06 00:40:14 Trinsta: *scratch head*.. the error i'm getting back isn't among those Mar 06 00:40:17 Quacked: seems like you have a design issue more than anything Mar 06 00:40:40 i'd love to move to cali ron_frown, not in the cards for a few years it seems Mar 06 00:41:19 StingRay_: could be, but I read that if you set a Service to its own process you need to implement communication to other stuff differently Mar 06 00:41:33 IPC stuff Mar 06 00:41:44 AIDL, binders etc.. Mar 06 00:41:48 {"code":403,"errors":[{"domain":"usageLimits","message":"Access Not Configured","reason":"accessNotConfigured"}],"message":"Access Not Configured"}.... that's not listed among the errors on that site, sadly. thing is, access *is* configured, turned on, and using the correct keys.. gar Mar 06 00:43:05 StingRay_: hmm.. I wonder what this is really doing though: I/ActivityManager(2202): Killing 27058:com.example.ninjatimer/u0a10109: remove task Mar 06 00:43:39 Since its obviously not the same as I/ActivityManager(2202): Force stopping package com.example.ninjatimer appid=10109 user=0 Mar 06 00:44:58 is there one way to use barcode with one camera 3.2 mp Mar 06 00:46:59 usageLimits... wtf Mar 06 00:48:08 A victim of your own success? Mar 06 00:48:48 i wish. app hasn't been released yet Mar 06 00:49:02 gotta be a config issue. just can't find the prob Mar 06 00:52:21 I'll try some more tomorrow Mar 06 00:52:22 Gnite Mar 06 00:54:57 tophyr: fwiw -- vis-a-vis the public-key being used -- you can pull out the public key from the apk file (it should be under META-INF/*.RSA) or perhaps *.DSA Mar 06 00:55:47 it's a pkcs7 der-encoded file -- openssl -inform der -in CERT.RSA -print_certs ought to give you enough to diff against another public key Mar 06 00:55:49 kbs, yeah, i found that via unzipping and running keytool on CERT_RSA Mar 06 00:55:52 did the pew ? Mar 06 00:55:53 oh, ok Mar 06 00:57:29 tophyr: just curious -- does the drive API let you upload directory trees that can be made publicly visible (say as an html page), with no restrictions? Mar 06 00:57:39 I looked at it a while back, and was neve able to get that to work Mar 06 00:57:54 zero clue Mar 06 00:58:17 i can't even get the damn file list to work, not sure i'm the guy to ask about drive lol Mar 06 00:58:43 :) gotcha. Good luck, drive sounds like good stuff. There's supposedly a hackathon thing coming up soon, if you're in the bay area. Think it's next week wednesday Mar 06 00:59:10 oh i love the feeling i get when i can delete code :) Mar 06 01:00:08 :D Mar 06 01:00:18 I always think of http://folklore.org/StoryView.py?story=Negative_2000_Lines_Of_Code.txt at such times :-) Mar 06 01:00:40 extra happiness from sticking it to the man, or something ;-) Mar 06 01:02:08 heh Mar 06 01:02:27 i dont see a problem tracking lines of code just to get a general impression of "who is working on this" Mar 06 01:02:43 but i wouldnt say someone who does 4000 lines has done more work than someone who has 2000 lines Mar 06 01:03:43 lines of code is only meaningful in context Mar 06 01:03:58 i would say 100 lines of code can be more work than 4000, depends ont he work Mar 06 01:04:14 canadiancow: how much code are you deleting today ? Mar 06 01:04:19 :) Mar 06 01:05:22 not much Mar 06 01:05:27 but it was literally duplicated Mar 06 01:05:38 except how it was used resulted in O(n) instead of the other impemented method of O(1) Mar 06 01:05:43 so i've reduced the size and sped things up Mar 06 01:12:58 so Mar 06 01:13:16 do you think the Ouya guys might have changed android.widget.ListView Mar 06 01:13:24 or would that be like...sacred and no one alter it? Mar 06 01:13:38 (I can't seem to get that up/down highlight in an android emulator) Mar 06 01:13:55 maybe I just have my emulator setup poorly? Mar 06 01:14:15 I change the listview in my rom so that fast scroll thumb is always enabled Mar 06 01:14:32 I don't know why something like that would be optional Mar 06 01:16:48 ProgramMax: have you made any progress ? Mar 06 01:17:33 cause in the time you have spent you could have done a manual workaround by now :) Mar 06 01:17:36 not really. Had to give a little presentation to my manager and a designer so we can figure out what needs to happen to bring the design up to date Mar 06 01:17:43 showed my manager the problems I'm running into Mar 06 01:17:50 he suggested we rope in the Ouya guys Mar 06 01:18:18 I don't even know how to do a manual workaround. I tried forcing the selected item and focus Mar 06 01:18:33 forget the listSelect Mar 06 01:18:34 Can I determine if a music is playing on a device in a programatic way or better using adb? Mar 06 01:18:37 have a flag on the data Mar 06 01:18:42 selected Mar 06 01:18:52 in getView on the list highlight that Mar 06 01:19:10 and have a method that sets relative index on capturing up/down Mar 06 01:19:16 job done Mar 06 01:19:44 I'll look into that in just a sec. There is a theory that if I put an item in the list (so it isn't dynamically populated) that it might work. Gonna try that next Mar 06 01:23:47 grr, i uninstalled Java 7 per Oracle's directions the other day, now it presented a popup saying I must update it Mar 06 01:24:09 least apple not done a daily today :) Mar 06 01:24:21 hahah Mar 06 01:24:43 oracles involvement in java has all but drawn out the beginning of the end Mar 06 01:24:50 imo Mar 06 01:25:24 i need a games programmer, any takers ? Mar 06 01:25:29 i feel like oracle is a few years off from some really good stuff Mar 06 01:25:31 a proper one Mar 06 01:26:07 oracle is a corporate sociopath Mar 06 01:26:47 kaneda^ what?! Mar 06 01:27:04 i've said it before... my 0.02, the mantle of java has shifted from sun to android/google. oracle is basically a butthead corporation vis-a-vis java; and is languishing Mar 06 01:27:20 I've always heard oracle db to be the go to db etc... now that I've had to use it for the better part of 3yr Mar 06 01:27:25 I think its a fucking joke Mar 06 01:27:29 I mean compared to the competition Mar 06 01:27:37 my fear is that google will just end up at one point saying FU and picking another language, as apple did long back Mar 06 01:27:37 ron_frown, what competition, specifically Mar 06 01:27:40 I've never seen a more emo databae engine Mar 06 01:27:47 kbs that may happen Mar 06 01:27:51 and it'd probably be better off Mar 06 01:29:05 it's gonna be a tough slog to wean everyone off java on android at this point; but that's how the cookie might crumble. ah well. Mar 06 01:29:33 ron_frown, db2? mongodb? mysql? Mar 06 01:29:58 our Oracle admins always came in to work looking sleep deprived :) Mar 06 01:30:09 I have an odd performance issue with the keyboard popping up, it moves (and correctly so) one of my bottom views upwards, but takes an age to do so, and all logs from any of my active classes indicate that nothing is happening inside of my control, is this normal ? odd? me ? Mar 06 01:30:11 thats how you judge - look at the admins with the most sleep Mar 06 01:30:41 I used to hate mysql Mar 06 01:31:01 now I think the only thing holding it back from being better than oracle... is the fact that it is also owned by oracle Mar 06 01:31:02 I used to manage oracle dbs for a while... it's like they say about war. Long periods of boredom punctuated by moments of sheer terror. Mar 06 01:31:02 haha Mar 06 01:31:16 i've had to do oracle, db2, and mysql Mar 06 01:31:26 it reminds me of the arguments between c++ and managed languages Mar 06 01:31:43 yeah the right person could make c++ perform better than the avg managed language dev Mar 06 01:31:50 but you have to have thos epeople Mar 06 01:31:53 same with oracle Mar 06 01:32:06 making some things perofrm is like voodoo Mar 06 01:32:08 sqlserver Mar 06 01:32:16 shit was anticlimatic / uneventful Mar 06 01:32:23 sqlserver is horrid Mar 06 01:32:24 if you werent using the database, you'd never know it was running Mar 06 01:32:40 oracle could sit there and consume every last little bit of storage and memory on my hardware Mar 06 01:32:50 I could delete files and it'd consume the freed space almost immediately Mar 06 01:32:57 surely there was something rwong with my instlal Mar 06 01:33:23 ron_frown, people who need oracle are often adding/manipulating/indexing data Mar 06 01:33:23 sqlserver is very advanced Mar 06 01:33:34 uhh thats generally the idea of a database =) Mar 06 01:34:07 from the benchmarks i looked at last year sqlserver isnt even enterprise grade Mar 06 01:34:22 as in, more than a few hundred users and you need to expand expand expand Mar 06 01:34:32 yeah Mar 06 01:34:45 but then you just have to start out with a 100k instal of oracle in software alone Mar 06 01:34:47 mysql cluster is more recommended from the benchmarks i read Mar 06 01:35:00 20k ron, don't exagerate Mar 06 01:35:15 10k for a single license Mar 06 01:35:20 mysql and postgres always had pretty significantly better replication/clustering Mar 06 01:35:27 yeah for clients of processor? Mar 06 01:35:35 who runs a database engine ona single processor Mar 06 01:35:37 i've wanted to learn postgres, havent worked anywhere it was used yet Mar 06 01:35:38 13k a processor Mar 06 01:36:02 last big sql servr machine I had was 64 proc, 128g of ram Mar 06 01:37:13 i generally hear only good things about PostgreSQL Mar 06 01:37:26 g00s, same, and yet i've never actually seen anyone hiring for it Mar 06 01:37:28 it always seemed less forgiving and more rigid Mar 06 01:37:32 but I liked it Mar 06 01:38:08 i like mysql, but i think oracle should probably give that one to the users Mar 06 01:38:31 if you arent already using a branch Mar 06 01:38:35 and i only hear bad things about MySQL :) Mar 06 01:38:40 I had tons of data integrity problems with mysql Mar 06 01:38:49 but mgmt tools etc were really getting there Mar 06 01:39:00 now that oracle has had their way with it Mar 06 01:39:06 I wont even consider its use Mar 06 01:39:36 some companies just want to see the world burn Mar 06 01:39:57 g00s, i like mysql actually Mar 06 01:40:02 WHOA Mar 06 01:40:05 interesting update Mar 06 01:40:11 on one of the submenus that normally fails Mar 06 01:40:16 g00s, i've had practically no problems with it in many years of use Mar 06 01:40:25 I added one static item so getCount always returns at least 1 Mar 06 01:40:36 and getView returns a junk view for the first item...just a divider Mar 06 01:40:45 and now I can scroll up and down just fine Mar 06 01:40:50 g00s, ofc i could just be a statistical anomaly ;p Mar 06 01:42:16 except now when I go back to the main menu it bombs Mar 06 01:42:24 anyone used mariadb? Mar 06 01:42:46 well...this is slightly better than before Mar 06 01:44:11 I've used cassandra, and mongo Mar 06 01:44:16 messed around with couch and the others for a bit Mar 06 01:45:32 ron_frown, i'm looking for someone who can do mongo or couch or something, i want something i dont have to license for $100k as you said Mar 06 01:45:46 there are ramifications Mar 06 01:45:58 eg, mongos not going to do analytics quite as good as a rdbms Mar 06 01:46:15 without something else filling in Mar 06 01:46:30 ron_frown, i've read that there arent as many tools, but that good data can be pulled from it still Mar 06 01:46:32 for crud those are fantaastic Mar 06 01:48:31 hey guys, when I enable zoom on my webview, double tap does not seem to be caught any longer Mar 06 01:49:50 ron_frown, what else is there in db? Mar 06 01:50:00 in db? Mar 06 01:50:09 besides crud Mar 06 01:50:28 well rdbmss do better for aggregation on the fly etc Mar 06 01:50:55 fair enough, i just want something that's actually scalable without having to purchase ever expanding resources Mar 06 01:51:45 if you can deal with the architecture cassanda and hadoop+pig should cover a lot of situations Mar 06 01:51:54 hadooop+pig if you have analytics requireents Mar 06 01:52:05 ViewPager is only in the support library? Mar 06 01:52:13 i'm not much of a db guy, honestly, most of my experience is in java/j2ee/android/c/c++ Mar 06 01:53:14 i happen to be the dba, and we have mysql, but that's just because i'm the only dba Mar 06 01:56:41 hey guys, in my webview, i have zomoming enabled… and doubletap gesture is caught before I zoom. But after I zoom and unzoom, the gestures or swipes aren't caught any longer Mar 06 02:04:44 this is depressing :( http://blog.flurry.com/bid/94811/Are-Indie-App-Developers-Becoming-an-Endangered-Species Mar 06 02:05:42 why Mar 06 02:06:00 its not like you need to own 331 different models to support 331 different models Mar 06 02:06:04 what does indie mean? Mar 06 02:06:27 how many devices do i test on that are not running JB? zero Mar 06 02:06:35 how many devices do i test on that are not nexus? zero Mar 06 02:06:55 how many problems do i have as a result? not enough to justify booting up an emulator Mar 06 02:07:10 canadiancow: what if the SGS4 does some weird thing, and thats what everybody has Mar 06 02:07:23 "everybody" ? Mar 06 02:07:36 DOES it do some weird thing? Mar 06 02:07:47 and more importantly, does that weird thing affect you? Mar 06 02:08:10 is "weird" in adherence with the api? if so, it's not weird, and you should have planned for it Mar 06 02:08:17 if not, submit a CTS case, and it wont happen again Mar 06 02:08:54 canadiancow, i have 4 phones, no tablets to test on Mar 06 02:09:22 any have a point about my question earlier ? Mar 06 02:09:29 kaneda^, thats not what the article was saying Mar 06 02:09:35 i have a neuxs 4,7,10 Mar 06 02:09:37 that i use Mar 06 02:09:37 I have an odd performance issue with the keyboard popping up, it moves (and correctly so) one of my bottom views upwards, but takes an age to do so, and all logs from any of my active classes indicate that nothing is happening inside of my control, is this normal ? odd? me ? Mar 06 02:09:39 Is there a way to programmatically get the resolution? Mar 06 02:09:52 sometimes i'll test on a galaxy nexus that i have running an older build of android Mar 06 02:10:12 ProgramMax, Point size = new Point(); getWindow().getDisplayManager().getSize(size); size.x and size.y Mar 06 02:10:24 thank you, kaneda Mar 06 02:10:36 ProgramMax, i happened to read that earlier today Mar 06 02:11:21 canadiancow, i've been testing on a samsung galaxy 3 and a htc one x Mar 06 02:11:25 canadiancow: i guess i have a different view of things, since BT behavior has been all over the place Mar 06 02:11:43 it definitely depends on what you're doing Mar 06 02:11:53 the further away you get from software, and the closer to hardware, the more differences there will be Mar 06 02:11:55 luckily some of the older phones with bad behavior are becoming more extinct; and i cant test that on the emu of course Mar 06 02:12:26 Hello. Does anyone know how to Activate, but not Publish, an app in the Google Play Developer Console? Mar 06 02:13:10 canadiancow, all i really want from android is a beautiful, easy to use, adaptable interface builder Mar 06 02:13:16 and it should produce optimal code Mar 06 02:13:38 MoProductions, what does that mean Mar 06 02:14:09 canadiancow: We're having trouble downloading .obb files from GP. This is the response we got back from tech support "I don't see the APK in my system. It's likely that you haven't activated it. Please activate the apk (this is different from publishing the app, it will not show up in the Play Store) and try again." Mar 06 02:17:32 join #s3 Mar 06 02:18:54 what are the best tools to localize your apps strings? Mar 06 02:19:54 zhobbs: people Mar 06 02:20:25 StingRay_: yes, people. problem is people who translate apps can't just clone my repo and edit strings Mar 06 02:20:49 and you cant give them the xml ? Mar 06 02:21:02 zhobbs, what do you want to do? Mar 06 02:21:12 trying to get this to work http://help.transifex.com/features/client/index.html Mar 06 02:21:32 I want to do continuous localization of my strings by professional translators (like gengo.com) Mar 06 02:21:58 currently it seems like that involves uploading ~50 xml files to some translation website, then downloading them Mar 06 02:22:05 manually Mar 06 02:22:54 gengo needs a jenkins plugin Mar 06 02:29:03 mornin' all Mar 06 02:31:07 earlier I was told getWindow().getDisplayManager().getSize(size); Mar 06 02:31:15 I don't see a .getDisplayManager Mar 06 02:31:20 I see a .getWindowManager Mar 06 02:33:28 getWindowManager().getDefaultDisplay() Mar 06 02:33:51 that returns a Display, then use getSize(size) Mar 06 02:34:31 that's it Mar 06 02:34:57 ahh thanks Mar 06 02:35:14 but you do it different on API <13 Mar 06 02:35:29 ohhh okay Mar 06 02:35:55 mmm what import do I need for Point? Mar 06 02:36:27 android.graphics.Point Mar 06 02:36:46 use an IDE, it'll make your life so much easier Mar 06 02:37:00 I'm using eclipse...but I'm not using it well Mar 06 02:38:01 Ctrl-Shift-o Mar 06 02:38:15 is that like...auto-resolve imports? Mar 06 02:38:16 guesses the imports it can and asks you about the ones it can't Mar 06 02:38:23 sweet Mar 06 02:38:42 you can tell eclipse to do it everytime you save too Mar 06 02:38:59 search for java in the settings and look for the same options bit Mar 06 02:39:02 *save Mar 06 02:43:32 who do I compile my project into an .apk file? Mar 06 02:43:44 or where can i find it.. Mar 06 02:47:12 how* Mar 06 02:47:47 it's in the bin dir of your project Mar 06 02:56:13 thanks **** ENDING LOGGING AT Wed Mar 06 02:59:58 2013