**** BEGIN LOGGING AT Sat Mar 30 02:59:59 2013 Mar 30 03:11:18 is it safe to use two buttons to switch between views? Mar 30 03:11:29 like tabs? Mar 30 03:16:38 agy2154, fragments Mar 30 03:23:49 kaneda^: this is my situation http://i.imgur.com/v24D1sq.png Mar 30 03:24:39 k Mar 30 03:31:48 I enter unlock code in CyanogenMod 7.2 (galaxy S-5570)? Mar 30 03:40:47 Does anyone have any idea if taking a huge Service that I have now and separating it into a long running Service that immediately forwards its Intents to an IntentService -- would this save memory? Would it be negligible? Mar 30 03:41:30 So the long running Service would be as stripped down as possible Mar 30 03:48:31 carbohydrate: that sounds bizarre Mar 30 03:49:14 where did Leeds go? Mar 30 03:56:23 Why bizarre? I am trying to optimize my long running service if possible Mar 30 03:56:43 I was also trying to get all the heavy lifting out of my UI thread, which it now is Mar 30 06:18:57 why do you need a switch statement for a event.getAction Mar 30 06:19:03 and case MotionEvent Mar 30 06:30:08 you dont Mar 30 06:30:26 only if you want to do something based on what type it is Mar 30 06:37:55 dang .... is there an android / java equivalent to c++'s |string::npos|? Mar 30 06:39:05 don't know c++ Mar 30 06:39:12 so no idea what that even is :) Mar 30 06:39:25 hi guys Mar 30 06:39:41 ha ha I guess the cat stepped on my spacebar when I wasn't looking Mar 30 06:41:19 capella: I'm learning C++ and I know C more or less - but I don't know what string::npos does -- can you explain how you use it? Mar 30 06:42:51 capella: ? npos usually just -1 and returned by functions that search for something; -1 meaning not found. java String.indexOf() returns -1 on not found also Mar 30 06:43:01 um... certain c++ methods such as strings' find_last_of() return string::npos to mean no not found Mar 30 06:43:11 or -1 as g00s points out Mar 30 06:43:20 yeah, it looks like -1 from my quick google search Mar 30 06:43:26 for strings only Mar 30 06:44:20 Ok, I'll define a private static in my class for my own NPOS const ... to bad android doesnt have like a GLOBAL class for things like that Mar 30 06:44:36 it might have it Mar 30 06:45:19 i usually see if (indexOf () < 0 ) … good enough Mar 30 06:46:00 oh I see. npos, or -1, is just what is returned by C++ Mar 30 06:46:10 C++'s string.find() method Mar 30 06:46:18 if no match found. Mar 30 06:53:10 yah ... c++ has that as a global const ... so like using true / false, one can avoid "magic numbers" sprinkled through your code Mar 30 06:53:51 hmmm eclipse and/or adt part of it are increasing the in the frequency whereby they f*ck me over Mar 30 06:54:14 eclipse-- intelliJ++ Mar 30 06:54:22 2 hours debug on a static int that eclipse decided was another value not the one set Mar 30 06:54:27 (I never get tired of that) Mar 30 06:54:43 hehehehe sounds like eclipse Mar 30 06:54:47 I had no idea that was even possible Mar 30 06:54:49 :) Mar 30 06:56:12 i didn't get on with intellij Mar 30 06:57:08 spent about 10 min attempting to show 4 lib projects, one that I need to update lots and it just seemed, well, not easy Mar 30 06:57:50 I've noticed the eclipse is definitely slow and perhaps even buggy. Mar 30 06:58:25 StingRay_: the eclipse debugger communicates to your phone using JDWP; it doesn't decide the value of static ints at all Mar 30 06:58:57 the static was in a lib project Mar 30 06:59:07 The integration is definitely nice, well, I'll even say that I really like the view layout editor ha ha but I've considered switching to qt creature or just plain old command line tools. Mar 30 06:59:14 I often get probs with my libs Mar 30 06:59:17 it still has to be initialized by the jvm though when the class is loaded Mar 30 06:59:18 don't know why Mar 30 06:59:40 and auto build don't work for me on libs no more Mar 30 06:59:58 library projects always seemed to cause many headaches Mar 30 07:00:02 and pretty sure I have not checked the "fk me over" tickbox Mar 30 07:00:26 whats interesting Mar 30 07:00:35 is if I clean all open projects Mar 30 07:00:47 that turns out to be the fastest way for me to close eclipse Mar 30 07:00:51 "poof" gone Mar 30 07:00:57 LOL Mar 30 07:01:13 StingRay_: you mean it crashes ? Mar 30 07:01:16 so if I'm leaving in a rush thats handy Mar 30 07:01:21 g00s: yes Mar 30 07:01:28 StingRay_: have you looked in the eclipse logs? Mar 30 07:01:39 if its a foobar in ADT; i would file a bug report Mar 30 07:01:49 ages ago i did Mar 30 07:02:01 can't remember now Mar 30 07:02:09 now I just kinda accept it Mar 30 07:02:11 and carry on Mar 30 07:02:22 i can't remember the last time eclipse crashed on me Mar 30 07:02:41 it has, but … very very rarely Mar 30 07:02:43 Hey - do either of you know tons about the AudioRecord class? I can't figure out if .read() is supposed to be blocking or nonblocking -- or how to correctly determine when I can perform a non-blocking read(). Of course the documentation is close to nothing. Mar 30 07:02:59 chrome and google eart both crash 10x more than eclipse ;) Mar 30 07:03:05 *earth Mar 30 07:03:23 I've noticed firefox crashing a lot lately too Mar 30 07:03:32 capella: now that i have thought about it, i haven't had a FF crash in forever Mar 30 07:03:38 lol, jesseg Mar 30 07:04:34 the crashiest software i have is Google Earth and canon DPP Mar 30 07:04:39 yah ... and when it does (I get some in dev nightly builds) the crash reporter is pretty cool Mar 30 07:04:43 GE can't not crash Mar 30 07:05:02 g00s: I had a look at ink stuff Mar 30 07:05:06 omg Mar 30 07:05:09 NIK Mar 30 07:05:15 ah Mar 30 07:05:53 about 50% are already there in photoshop and quite easy Mar 30 07:06:10 about 20% isn you can do fiddly Mar 30 07:06:19 about another 10% are quite hard Mar 30 07:06:31 and then about 20% are quite unique Mar 30 07:06:34 ish Mar 30 07:07:04 the search patter isolation for tone maps is like, not bad at all Mar 30 07:07:12 Silver Efex Pro is probably the most popular BW conversion tool there is Mar 30 07:07:16 that would either be impose or dam hard Mar 30 07:07:21 just in ps alone Mar 30 07:08:08 that was really the only plugin i was interested in Mar 30 07:08:14 ok I need to turn this spell check bollox of on this client now Mar 30 07:08:19 pissing me off Mar 30 07:09:18 g00s: I have a photoshoot to do thats gonna be a chellenge Mar 30 07:09:31 my g/f and her glam model friend Mar 30 07:09:44 gonna have a go at doing the ribbon type shot Mar 30 07:09:51 ah, she'll want a lot of ps to remove imperfections Mar 30 07:09:54 XD Mar 30 07:09:54 ribbon/skin etc Mar 30 07:10:36 yeah, i'm not into portraits or modeling Mar 30 07:11:13 its good to direct the client sometimes into one of several hundred different poses Mar 30 07:11:19 you have to know them tho Mar 30 07:12:47 http://images.purestorm.com/z-images6/imageupload13/deanwray_1217654.jpg?1609562534 Mar 30 07:13:13 StingRay_: natural light only, natural _ artifical, or studio ? Mar 30 07:13:28 http://images.purestorm.com/z-images3/imageupload7/deanwray_1927157.jpg?2077831375 Mar 30 07:13:46 that 1st one is my g/f btw, so careful :) Mar 30 07:14:02 well I have lots of light rigs Mar 30 07:14:08 did you take the second ? Mar 30 07:14:14 mobile and studio lights Mar 30 07:14:27 g00s: yeah Mar 30 07:15:04 nice Mar 30 07:15:36 haha, on of my 1st pissy about shots http://images.purestorm.com/z-images1/imageupload8/deanwray_1209425.jpg?701203293 Mar 30 07:16:11 these were all just playing around though Mar 30 07:17:02 are eclipse and intellij the only options in java/android dev ? Mar 30 07:17:16 well, that are easy and complete Mar 30 07:17:45 you can use any editor Mar 30 07:18:05 vim, emacs, sublime, etc. Mar 30 07:18:13 sublime-text-2 is a cool editor Mar 30 07:18:31 well I mean as a complete ide Mar 30 07:18:44 I may pay for siblime-text-3 if I find someone who's gone first / likes it Mar 30 07:18:45 i think some try to use netbeans Mar 30 07:19:11 cause eclipse is testing me today ... Mar 30 07:19:13 Someone just contacted me randomly to my email out of nowhere to buy an old domain that was laying around Mar 30 07:19:33 agy2154: how did they get your email :P Mar 30 07:19:52 g00s: Idk. My whois was private too. I think they used a temp email which was on teh whois Mar 30 07:19:56 domain mic info Mar 30 07:19:59 It was kinda creepy at first Mar 30 07:20:07 I brought the domain a couple of months ago Mar 30 07:20:07 nic* Mar 30 07:20:23 for $10. And now he wants to buy it for $250 i toldhim $300 and he said ok he will buy it. Mar 30 07:20:35 should have said $1k Mar 30 07:20:49 StingRay_: Would he have brought it? Mar 30 07:21:03 let me consult my crystal balls Mar 30 07:21:06 .... Mar 30 07:21:08 .... Mar 30 07:21:09 yes Mar 30 07:21:09 StingRay_: its only a domain. No content at all Mar 30 07:21:44 StingRay_: the creepy thing was I emailed him 30 minutes after I got hte email and then I got a reply within a minute Mar 30 07:21:51 StingRay_: proxypipe.com Mar 30 07:21:56 well I wanted a domain that is parked by a holder Mar 30 07:22:02 and they wanted £2500 Mar 30 07:22:10 StingRay_: Did you pay? Mar 30 07:22:14 god no Mar 30 07:22:18 on principal Mar 30 07:22:47 those people are leaches of society; creating no value but extracting it instead Mar 30 07:22:53 StingRay_: Is ProxyPipe.com good though? Mar 30 07:23:01 yeah Mar 30 07:23:07 thats easy a 1k'er Mar 30 07:23:13 g00s: yeah. like those people who buy up all the ipads and sell them for $200 more the next day Mar 30 07:23:54 g00s: what do you think the domain is worth? proxypipe.com? Lmao if he googles it do you think the log of this chat will pop up? Mar 30 07:24:33 agy2154: no idea, really. Mar 30 07:24:49 its worth what others are willing to pay ;) Mar 30 07:24:49 StingRay_: Fuck. He offered $250 at first. I upped it to 300$. Ik I could have gotten more... he was like wanting it a lot. Mar 30 07:25:03 g00s: if thats the case, it isn't worth anything lmao. Mar 30 07:25:12 that could be :) Mar 30 07:25:32 Time to get my own espresso machine. lol Mar 30 07:27:30 alright guys peace Mar 30 07:27:43 I've been on this irc channel for hours. its time to sleep Mar 30 08:30:24 can any one tell me how to make an AVD show under run configurations >> android application >> myconfigbla >> target Mar 30 08:30:27 ? Mar 30 08:30:40 I tried to make everything same version but still nothing Mar 30 08:30:46 im a total noob Mar 30 08:34:08 have you made an AVD ? Mar 30 08:41:17 yeah but it doesn't list under run configurations >> android application >> myconfigbla >> target Mar 30 08:45:02 it only shows in the manager] Mar 30 09:12:41 hi Mar 30 09:12:48 http://pastie.org/private/4penaiehy0ajiixonmey9a Mar 30 09:13:06 why am I getting java.lang.IllegalArgumentException: Only sync adapters may write to _sync_id? Mar 30 09:14:26 dunno, it the reason not in the question ? Mar 30 09:15:10 StingRay_: no idea why but its working now all my avd's just started showing up :S Mar 30 09:15:13 StingRay_, i am writing from a syncadapter and setting values.put(CalendarContract.CALLER_IS_SYNCADAPTER, "true"); Mar 30 09:15:50 but is that field not DB controlled ? Mar 30 09:15:56 as in AUTO INCREMENT etc Mar 30 09:16:06 I changed 1 GiB to 1024 MiB mabye thats why Mar 30 09:16:59 Furthermore, if set to true, the caller must also include ACCOUNT_NAME and ACCOUNT_TYPE as query parameters. Mar 30 09:17:00 oh Mar 30 09:17:01 i see Mar 30 09:36:33 JakeWharton: did Eric record this Friday ? http://www.infoq.com/presentations/Android-App Mar 30 09:46:32 "Square does not use Loaders", huh Mar 30 09:52:26 interesting, i came to the same architecture independently - minus tape Mar 30 10:13:46 g00s: eclipse question Mar 30 10:14:00 is there any way to re-arrange the perspective shortcut icons ? Mar 30 10:14:17 um, dunno :| Mar 30 10:14:21 or @anyone Mar 30 11:19:24 hi all, what can i do if an i had a corupted key store and i cant use it anymore. i created a new one but it seems i cant upload the new version Mar 30 11:27:27 on a released app? Mar 30 11:42:03 StingRay_: correct Mar 30 11:42:11 ooo nasty Mar 30 11:42:46 that would mean all users have to uninstall your app and reinstall ? Mar 30 11:43:32 You can't change keys on apps Mar 30 11:43:35 =/ Mar 30 11:50:11 hey guys my device is not showing up or running my app for some reason Mar 30 11:50:21 it is set to usb debugging in settings Mar 30 11:50:31 (not my device but a friends) Mar 30 11:51:05 the device chooser doesn't even show up Mar 30 11:51:16 `adb devices` Mar 30 11:53:00 timroes, i've tried resetting it , Adb connection Error:An existing connection was forcibly closed by the remote host Mar 30 11:55:36 what does `adb devices` outputs you> Mar 30 11:55:36 and what os are you using? Mar 30 12:07:10 no list of devices attached Mar 30 12:07:28 4.2.2 Mar 30 12:08:30 i need to install drivers im assuming Mar 30 12:08:34 i'll try that Mar 30 12:08:34 lol Mar 30 12:20:14 coco89: i mean what host OS not android os Mar 30 12:27:13 windows Mar 30 12:27:23 and im trying to connect a nexus 4 Mar 30 12:27:43 ah wait maybe i've solved it Mar 30 12:28:20 okay but the device is listed as offline Mar 30 12:29:16 yeah on windows you will need a driver for every phone Mar 30 12:30:04 timroes: ah I see, I've had to set the phone to PTP mode for windows to find the right drivers. It is now listed in adb devices but it's offline and i still cant run it in debug mode Mar 30 12:30:41 yeah can't help. that are windows problems :) Mar 30 12:30:57 haha yeh I guess Mar 30 12:30:59 :P thanks though Mar 30 12:31:17 but the drivers windows find, are not always the best ones that I know Mar 30 12:47:33 hello, any way to remove the "Google" footer from googlemaps at the bottom left corner? Mar 30 12:47:35 like at https://developers.google.com/maps/documentation/android/images/vancouver.png Mar 30 12:47:40 so i can run one app but not another :S Mar 30 12:49:08 Licensing probably don't allow you to remove it, if it's possible at all Mar 30 12:49:34 can i at least increase its bottom padding? :p Mar 30 12:49:40 i want to put a custom button there, and it looks wrong Mar 30 12:53:07 ah it's working lo Mar 30 13:03:11 Do you guys prefer yes/no flip switches or plain old checkboxes? http://jsfiddle.net/F3cLZ/ Mar 30 13:04:04 boytoy: thats a desgner question, and heavily based on context/situation no ? Mar 30 13:04:19 I totally prefer checkboxes Mar 30 13:05:07 StingRay_: I'd say more on usability research of which the Android dev scene seems to spearhead these days Mar 30 13:05:14 tibbi: Cool Mar 30 13:05:23 what I mean by that, is, in an absolute actionable or state thing, light status, enable/disable etc Mar 30 13:05:31 switch Mar 30 13:05:43 and I like transitional Mar 30 13:06:00 but then what if "are you going to party" ? yes/no/maybe Mar 30 13:06:36 Binary kind of thing, either or Mar 30 13:06:38 then there is the question where you narrow the context, "use extra features" Mar 30 13:06:48 that would be a checkbox Mar 30 13:06:54 but Mar 30 13:07:01 hmm Mar 30 13:07:13 "extra features?" could be a switch "enable" "disable" Mar 30 13:07:17 you see my point ? Mar 30 13:07:32 depends on design and communication choices Mar 30 13:08:20 Well Mar 30 13:08:25 tibbi's answer was better it hink Mar 30 13:08:47 :) Mar 30 13:08:57 each to his own ;) Mar 30 13:08:58 hehe nah i see what you mean.. Mar 30 13:09:08 if i look at that example switch you linked, i dont even know which option is selected Mar 30 13:09:13 and it can be pretty annoying as for me Mar 30 13:09:25 ofc if i click on it i find it out Mar 30 13:09:29 tibbi: damn you're right.. Mar 30 13:09:41 true indeed Mar 30 13:15:44 You should save StingRay_'s answer, then you can bring it out once you start caring about making a good app Mar 30 14:07:00 anyone know trouble shooting steps if my device isn't showing up in adb devices. all ready tried killing and restarting server Mar 30 14:07:33 when i connect my device it says it's in debug mode Mar 30 14:09:34 if device is 4.2 did you "allow" connection ? Mar 30 14:11:44 i am on the latest cyanogenmod 10.1 (4.2.2) i have enabled android debugging and usb debugging notify Mar 30 14:12:22 well trouble shooting for me would go Mar 30 14:12:34 1. is it listed in adb devices Mar 30 14:12:42 no it's not Mar 30 14:12:55 2. is it listed at all in host usb bus/id Mar 30 14:13:02 host meaning host machine/OS Mar 30 14:13:14 3. are the drivers for said host correct Mar 30 14:13:29 4. try another usb cable Mar 30 14:13:47 5. throw phone in fishtank Mar 30 14:13:57 i can connect when i turn on usb mass storage Mar 30 14:14:07 6. retrieve phone from fishtank, and throw at wall Mar 30 14:14:57 7. look at build.prop see if any odd modes are set on custom romy crap Mar 30 14:15:20 eg usb_* but missing adb Mar 30 14:15:33 8. get new phone/device Mar 30 14:15:42 that would be my steps Mar 30 14:15:57 oh, 7.5 install default OS ROM Mar 30 14:16:13 yeah no Mar 30 14:19:08 i'm using a mac so i'm going to assume the driver situation is ok Mar 30 14:33:33 Hi, I trying to prepare to use phonegap, java was found in my PC but Ant not, how can I install it? Mar 30 14:33:47 Read this step Mar 30 14:33:48 Finally, you may need to include %ANT_HOME%\bin to your PATH as well. To check to see if this is required, run a command prompt and type ant. If the program can not be found add %ANT_HOME%\bin to the PATH. You may need to specify the full path instead of using the %ANT_HOME% environment variable. Mar 30 14:34:10 Anyone can help me with this? Mar 30 14:34:34 #phonegap this is #android-dev Mar 30 14:34:44 lul Mar 30 14:36:27 Ok, thank you Mar 30 14:51:17 This is very frustrating. I've been trying to create a sqlite db (learning while I go), but can't seem to find a good example or document. The API's are nice, but incomplete and very hard to follow. The samples Google has in the sdk are borked & non -functional without modifying the code. It's hard to modify the code if you don't understand in the first place. I've googled for days, but each one I come across seems to contradict the previous one. Mar 30 14:52:10 Does anyone know of a GOOD, up-to-date tutorial or training doc somewhere on creating SQLite databases for android? Mar 30 14:53:20 Hello. Anyone knows if there is library implementing some kind of repl? Mar 30 14:54:12 http://www.vogella.com/articles/AndroidSQLite/article.html Mar 30 14:55:20 capella: thanks. I've been trying to follow this one. I keep coming back to it, but it's very in-depth and as I'm learning I'm having trouble understanding various points. Do you have any other suggestions? Mar 30 15:01:00 https://www.dropbox.com/s/xs6wfhtq67dksxu/SQLNotes.7z Mar 30 15:01:02 Extract, import the project (intelliJ or Eclipse) play with it Mar 30 15:02:20 Thanks mate. Taking a look at it now. Mar 30 15:04:02 I built that from the vogella example back awhile ... just a proof of concept .. Mar 30 15:05:18 This is just what I'm looking for. Having complete code that works is just easier to learn from. So much harder to follow the android API's when they jump around and don't seem to include all the information. Mar 30 15:05:26 Thank you very much for this. Mar 30 15:06:28 * capella is gonna need 'bout three fiddy :P Mar 30 15:07:47 * Rescue9 broke. Public service employee. :-D Got a paypal email though? Mar 30 15:07:51 * capella well, then how 'bout two fiddy? >) Mar 30 15:08:47 Well it was about that time that I notice that girl scout was about eight stories tall and was a crustacean from the Paleozoic era Mar 30 15:09:04 * capella Damn you loch ness Monster !! Mar 30 15:10:28 * Rescue9 feels had Mar 30 15:10:54 actually... I feel more old than anything. Pretty bad when you gotta look up the pun. Mar 30 15:13:28 hahahahahaa Mar 30 15:14:04 http://www.youtube.com/watch?v=9cn7xfBpZ3M Mar 30 15:34:10 If I heavily adapt AOSP code (namely the DeskClock app) such that the original classes are similar but not really recognizable anymore, what kind of notices/attribution/license do I still have to include with my own source? Mar 30 15:34:46 (I'm basically just using the time picker dialog and the digital clock views) Mar 30 15:34:56 what license do they have on it? Mar 30 15:34:59 Apache Mar 30 15:41:58 ugh, why is onActivityResult protected in Activity Mar 30 15:43:09 is it ok to use a fragmentactivity within a tabactivity? Mar 30 15:45:12 TabHost* Mar 30 15:46:11 depends, how much of a masochist are you? Mar 30 15:46:20 No one has any idea? Mar 30 15:46:37 storkme: heh Mar 30 15:46:38 sorry, I don't really know much about licensing. Mar 30 15:46:44 Same :/ Mar 30 15:46:54 maybe ask the developer? or maybe there's like an #apache channel or something heh Mar 30 15:47:06 I tried to decipher some of the Apache license myself but I have no idea how to interpret the clauses with respect to this source and my use case Mar 30 15:47:32 I think I'll just include a NOTICE explaining that some of the classes were adapted, along with the original copyright Mar 30 15:47:40 And then I'll put my own source under Apache Mar 30 15:47:43 And call it a day Mar 30 15:47:44 :P Mar 30 15:47:52 probably easiest (: Mar 30 15:48:16 storkme: i use roboguice - and i get onResult notification wherever i want them Mar 30 15:48:48 wait what o: Mar 30 15:49:20 I'll have to look into that Mar 30 15:49:53 it's basically some MEF clone with android specials Mar 30 15:50:16 do you have a link handy to the relevant part of the documentation? or even just a keyword I could search for Mar 30 15:50:29 storkme: basically I have a listview in an activity, the activity also has locationlisteners, as device change location the list updates (from remote db) in real-time. I want another tab where the user can see each entry on a map instead. I would also like this map to have the capacity to update in real-time, just as the listview activity does Mar 30 15:51:49 wouldn't it be easier to use a FragmentActivity with a viewpager containing a listfragment and a mapfragment? Mar 30 15:51:52 should i then use a fragactivity with a viewpager, and put the locationlisteners/server query code in fragment activity? then the dataset can be passed to either of the pages witoutthe need to duplicate the location/server query code Mar 30 15:51:57 ok gotcha Mar 30 15:52:53 I've been down the activities within activies route before and it was a world of hurt Mar 30 15:53:48 aye, i can imagine Mar 30 15:54:17 i want to get the plumbing right before I embark on a bad design vector Mar 30 15:55:33 from now on I'm strictly hetero with my application components.. fragments go in activities and that's that. Mar 30 16:25:51 whats faster, as an example inflating 1 relativeLayout with maybe 4 children or coding the creation ? maybe I'm googling the wrong search terms Mar 30 16:26:00 cant find much if anything that is relevant Mar 30 16:27:07 Slightly faster to do it in code, but uglier and not as easy to maintain Mar 30 16:27:47 added benefit of can be generating off the ui thread too Mar 30 16:27:59 hmm Mar 30 16:28:57 cause at the moment I have a mix, cause I pull components from a layout library Mar 30 16:31:25 did you do tests SimonVT ? Mar 30 16:31:38 slightly ? Mar 30 16:31:55 are we talking like 2% slightly or 10% ish :) Mar 30 16:32:13 No tests, but it's kinda obvious Mar 30 16:32:41 Layout inflation involves parsing an xml file (binary xml tho, so kinda fast) and creating instances of views via reflection Mar 30 16:32:52 vs just doing new TextView(this) Mar 30 16:33:10 yeah but I was thinking about the attrib stuff Mar 30 16:33:16 are you building these views in a really tight loop or something Mar 30 16:33:23 on finishing the xml read, it's got that Mar 30 16:33:27 ? Mar 30 16:33:56 whereas code having to create layoutParams and inital attribs to pass to it Mar 30 16:34:15 storkme: yeah Mar 30 16:34:36 atm, if they are heavy on styles, I pull them from a library Mar 30 16:34:43 if they are simple i create them Mar 30 16:35:18 so my view generator chooses based on the params i pass it Mar 30 16:35:48 but I've noted on heavy "asks" there is a pause cause of inflation on ui thread Mar 30 16:36:01 so just pondering what to do Mar 30 16:36:33 hey guys I have a LinearLayout that depending on what button the user presses is filled with 3 potentially different fragments. Mar 30 16:36:39 can I somehow add.. an extra way of transition Mar 30 16:36:45 so that if the user slides to one side Mar 30 16:36:48 he swaps the fragments Mar 30 16:36:51 as if he pressed the button Mar 30 16:36:59 and what do I use ? Mar 30 16:38:22 you mean you want to detect a "swipe" ? Mar 30 16:38:45 ehm.. yeah I suppose so.. I want to detect a swipe so I can replace fragment Mar 30 16:38:56 what you do after is irrelevant Mar 30 16:39:35 so i just made it super easy for you to SO/Google Mar 30 16:39:48 "detect swipe / gesture android" Mar 30 16:39:50 :) Mar 30 16:40:08 yeah I know I'm thinking.. how to apply it to a switch statement that reacts different if its in landscape or profile Mar 30 16:40:11 its not suppose to do it in landscape Mar 30 16:40:14 but will deal with that Mar 30 16:40:15 after Mar 30 16:40:50 so what your saying is you want to know if the screen is land or port ? Mar 30 16:40:52 ;) Mar 30 16:41:56 I already know that :P Mar 30 16:42:15 but Im just trying to see how to implement this in the switch statement.. nevermind will return with that issue Mar 30 16:43:15 inside your touchEvent or motionEvent if(isLandscape){return;} Mar 30 16:44:03 or in onResume you could even detach the listener from the view Mar 30 16:45:23 well in profile mode I use one view to hold the fragments Mar 30 16:45:28 in landscape I use two different views Mar 30 16:45:37 so I suppose I could just attach it.. to that profile view? Mar 30 16:45:37 hi Mar 30 16:48:22 http://stackoverflow.com/questions/937313/android-basic-gesture-detection Mar 30 16:48:32 trying to understand the reply in this one Stingray and I'm probably a bit slow Mar 30 16:48:36 why does he need 2 classes for this ? Mar 30 16:48:46 i'm about to do something really fucking heinous and override the back stack ohhh nooooo Mar 30 16:50:13 umm HoloEverywere 1.5.1-SNAPSHOT not in sonatype? Mar 30 16:52:09 * P3nnyw1se slaps StingRay_ around a bit with a large trout Mar 30 16:52:19 I have a boolean set right fron onCreate to determind if I'm in profile or landscape Mar 30 16:52:39 would it make sense in the oncreate to just have an if statement going if profile (add the listener class) Mar 30 16:52:42 and if landscape do nothing.. Mar 30 16:53:16 sounds sensible enough to me Mar 30 16:54:23 hello Mar 30 16:56:50 * StingRay_ is on his 3rd set of solpadine today, not good! Mar 30 16:56:59 any1 can help me? i have a problem with eclipse... after the format i can't debug my app ... if i use breakpoints they got skipped... if i add a new line with Log.v("test","test") isn't printed.... Mar 30 16:57:44 "the format" ? Mar 30 16:58:01 you mean auto code formatting ? Mar 30 16:58:27 neways answer is normally a clean/rebuild project Mar 30 16:58:38 I do that 20 times an hour Mar 30 16:58:45 starting to piss me off Mar 30 16:59:12 format c: Mar 30 16:59:41 #eclipse Mar 30 17:00:11 clean rebuild don't work too... Mar 30 17:00:44 well I only know of 1 way to fix ALL eclipse problems Mar 30 17:00:53 and I'm too chicken to take it Mar 30 17:00:57 :) Mar 30 17:01:10 If breakpoints get skipped and log output isn't printed there's a good chance the code is indeed not reached. Mar 30 17:02:07 is just under another log.v Mar 30 17:02:40 So you got Log.v(); Log.v(); and only the first is executed? Mar 30 17:03:20 and i tried to remove a printed log.v and rerun the project... still print the stuff of the first log.v Mar 30 17:03:27 yes kakazza Mar 30 17:04:02 does any one have experience with android google maps????? Mar 30 17:04:14 // Log.d("FileBrowser", ext); Mar 30 17:04:20 and still get printed ... Mar 30 17:05:02 Where do you debug? Device? Emulator? Mar 30 17:05:07 device Mar 30 17:05:20 in google maps i want to handle the case:- user goes in the wrong direction or misses a turn (my android application is for blind people) Mar 30 17:06:28 Manually uninstall your app and do a 'Clean all projects' and report back. Just want to make sure the device is vanilla and not running an old apk Mar 30 17:07:59 alredy tried Mar 30 17:08:28 i tried to use a new workspace too Mar 30 17:08:44 and create a new project Mar 30 17:09:07 Hey all, Making a widget and the PendingIntent works by calling , but the setOnClickPendingIntent doesnt seem to set the pending itnetn properly. Mar 30 17:09:28 does any one have experience with android google maps???? Mar 30 17:09:33 does any one have experience with android google maps???? Mar 30 17:10:04 newspecies: you only need to ask once Mar 30 17:10:06 Don't spam your question Mar 30 17:10:33 in google maps i want to handle the case:- user goes in the wrong direction or misses a turn (my android application is for blind people) Mar 30 17:12:14 it's like 2 days i'm fighiting with that problem... Mar 30 17:12:52 Tr1gun: That just can't be. You uninstalled all versions of your app, with possible different package names? Mar 30 17:13:11 Does it not ever upload a new version of your app to the device? Mar 30 17:13:21 woah i just rmeembered i made a stackoverflow post last night, I must have been drunk Mar 30 17:13:41 storkme: No, just embarressed, I remember! Mar 30 17:15:51 i tried to unistall the program and after launch it i got the app reinstalled on the device... but still the old version... Mar 30 17:16:35 And you cleaned the workspace and Eclipse Console does not print any errors or warnings? Mar 30 17:16:43 Nothing like "Already installed" or "couldn't install" Mar 30 17:18:17 StingRay Mar 30 17:18:20 patience level ? Mar 30 17:19:27 https://dl.dropbox.com/u/30396291/eclipse1.png now i have cleaned eclipse and removed the app on the device... Mar 30 17:21:15 Click on the blue monitor in the Console tab. Mar 30 17:21:25 You're looking at 'DDMS' output, you want 'Android' output. Mar 30 17:21:40 http://stackoverflow.com/questions/937313/android-basic-gesture-detection Mar 30 17:21:48 anyone feeling very confident in the 'first' reply on that link Mar 30 17:21:50 https://dl.dropbox.com/u/30396291/eclipse2.png and this is the logcat after f11 Mar 30 17:21:57 if you are I would love to get a little 'tour' in what happens Mar 30 17:23:50 https://dl.dropbox.com/u/30396291/eclipse3.png Mar 30 17:25:19 on eclips2 the arrow point to the commented log.d of eclipse1 Mar 30 17:29:27 That's weird indeed. Mar 30 17:29:42 And you don't output the same elsewhere? Mar 30 17:29:46 no Mar 30 17:30:45 That's in debugmode, right? Mar 30 17:30:58 y Mar 30 17:31:21 if not i didn't get any msg not just the last edit :-P Mar 30 17:31:54 Same output if you don't run in debugmode? Mar 30 17:32:29 anyone know anything about gesture detection ? cause this seems an overkill or not 'right' towards what I wanna do Mar 30 17:32:30 http://stackoverflow.com/questions/937313/android-basic-gesture-detection Mar 30 17:33:49 and this site Mar 30 17:33:49 http://www.vogella.com/articles/AndroidGestures/article.html Mar 30 17:33:56 suggests I use 'GestureOverlayView' Mar 30 17:34:16 which I suppose is outdated ? Mar 30 17:38:00 does this seem right to anyone? Mar 30 17:38:01 http://www.vogella.com/articles/AndroidGestures/article.html Mar 30 17:38:07 if wanting to swap through fragments using sliding effect Mar 30 17:42:22 wouldn't you use a ViewPager for that Mar 30 17:44:43 I'm a little confused honestly.. been reading like 7 completely different guides atm. Mar 30 17:44:53 like they are 100% different in their approach Mar 30 17:45:16 I have a LinearLayout and want to be able to swap fragments when someone slides it.. Mar 30 17:45:22 like you slide to the next page of a book. Mar 30 17:45:47 With the same animation like a bookpage? Mar 30 17:45:50 Or just slide? Mar 30 17:45:54 http://developer.android.com/reference/android/view/View.OnTouchListener.html Mar 30 17:45:56 animation is at this moment irrelevant Mar 30 17:45:59 http://developer.android.com/reference/android/view/MotionEvent.html Mar 30 17:46:00 just want it to swap fragments Mar 30 17:46:13 yeah, you'd use something like a viewpager.. With just gestures there's no reaction during the slide.. That's just bad Mar 30 17:46:15 Download https://play.google.com/store/apps/details?id=com.viewpagerindicator.sample and see if it's for you. Mar 30 17:46:36 It's about the indicator, but it also uses a ViewPager, so you get an idea of what it looks like. Mar 30 17:46:55 viewpagerindicator is a must have Mar 30 17:47:02 Code is here https://github.com/JakeWharton/Android-ViewPagerIndicator Mar 30 17:47:44 mmmmmmm okay Mar 30 17:50:00 that MotionEvent class seems insanely complicated.. this is making me tired Mar 30 17:50:24 you only have to use what you want Mar 30 17:50:37 tis just info from whats happened Mar 30 17:50:56 I know but I'm still confused about where to start really. cause if I google what you asked me to Mar 30 17:51:02 I get 5 completely different guides Mar 30 17:51:09 completely.. different Mar 30 17:51:23 Did you download the demo I linked? Mar 30 17:51:56 just did Mar 30 17:53:27 reading this seems like its what I'm looking for Mar 30 17:53:27 How can I call a function in MainActivity from context? Mar 30 17:53:28 http://developer.android.com/reference/android/support/v4/view/ViewPager.html Mar 30 17:53:59 I get the feeling that ViewPager is just for like browsing text or images that you arent suppose to directly work with? Mar 30 17:54:12 I thought context was the activity Mar 30 17:54:16 these fragments I wanna swap in between have several clickable functions themselves Mar 30 17:54:21 is that a problem with viewpager? Mar 30 17:54:24 No Mar 30 17:54:46 SimonVT is such a harsh mistress. Mar 30 17:55:15 My answers are short and true :p Mar 30 17:55:45 I know. But people probably want more emoticons! Mar 30 17:55:47 like... Mar 30 17:55:54 \(^∀^)メ(^∀^)ノ No ^___^ Mar 30 17:56:07 <_< Mar 30 17:56:51 alright if you can just tell me viewPager will work with this.. I'm gonna spend all night reading about ViewPager and wont be a hassle Mar 30 17:56:59 (╯°□°)╯︵ ┻━┻ Mar 30 17:57:19 but I had the idea ViewPager was just for browsing through like text... in my case I have clickable functions in each fragment Mar 30 17:57:23 is that a problem with viewPager? Mar 30 17:57:25 P3nnyw1se: describe what you want again, cause in all honesty I dont think it will Mar 30 17:57:36 unless you re-design your approach Mar 30 17:57:46 unless I read it wrong b4 Mar 30 17:57:49 Play store uses a viewpager Mar 30 17:57:53 Gmail uses a viewpager Mar 30 17:58:01 ┬─┬ノ( º _ ºノ) Mar 30 17:58:04 Both have content you can interact with Mar 30 17:58:06 he wants a swipe function on a button though Mar 30 17:58:13 I have 3 different fragments.. I want to be able to slide in between them.. each of these fragments holds lists of strings and data that the user can change and select Mar 30 17:58:32 oh then thats a viewPager :) Mar 30 17:58:51 what I said about the button is.. that the main Activity holds a button.. a 'secondary' way of switching between the fragments Mar 30 17:58:56 but I guess thats irrelevant right ? Mar 30 17:59:11 well yeah, all your probs solve with viewPager Mar 30 17:59:17 and will be nicer for user Mar 30 17:59:32 so look at the info simon and kakazza gave ya Mar 30 17:59:46 Imagine a list of 100 products.. I want the user to be able to click these products Mar 30 17:59:56 then like slide left and open 'basket' fragment and see 'okay I added 3 so far' Mar 30 17:59:58 and slide back Mar 30 18:00:00 like that Mar 30 18:00:35 and these 100 products are just in a list ? Mar 30 18:00:58 How can I call a function from MainActivity from context? Mar 30 18:00:59 undetermind at this point.. they are supposed to be updated through a webserver Mar 30 18:01:08 but yeah will most likely be objects in a List Mar 30 18:01:17 well see thing is, b4 you kinda come up with an implementation Mar 30 18:01:29 better to get down what it's gonna be /design 1st Mar 30 18:01:51 i think today i try eclipse on another computer ... Mar 30 18:01:51 then you dont meet the problem of, "oh f*ck, what now" Mar 30 18:01:57 I know.. the thing is I change it around cause I'm not fully aware yet of the possibilities.. like the pushing several fragments into the view when its in landscape Mar 30 18:02:05 I had no idea I was able to do that.. during the initial design Mar 30 18:02:09 its my first ever android project.. Mar 30 18:02:13 so I'm fully aware its trial and error Mar 30 18:02:15 no no Mar 30 18:02:29 thats implentation considerations Mar 30 18:02:40 design = right I have 100 products Mar 30 18:02:43 arranged by Mar 30 18:02:47 the user needs to Mar 30 18:02:49 oh well I got that worked out then Mar 30 18:02:56 this info will be displayed when Mar 30 18:03:03 How do I cast context to MainActivity so I can use the methods of MainActivity from context? Mar 30 18:03:05 it will look like Mar 30 18:03:24 we are talking approx 100 products in categories Mar 30 18:03:25 Don't cast context to your activity Mar 30 18:03:35 the user is suppose to click them and as a result add them to the basket Mar 30 18:03:38 If your class requires MainActivity, make it take MainActivity as parameter Mar 30 18:04:06 But isn't context and MainActivity about the same? Mar 30 18:04:07 so I've always considered it 100 product(objects) in an displayed List Mar 30 18:04:14 P3nnyw1se: so from a design standpoint you have said , a,b, h,i Mar 30 18:04:35 Activity is a Context, Context isn't necessarily an Activity Mar 30 18:04:43 I hope not.. maybe A,B F,G Mar 30 18:04:51 well yeah maybe Mar 30 18:04:53 :) Mar 30 18:05:10 ok think about it this way, as a user let me ask you some questions Mar 30 18:05:27 But unless there's any obvious problems with casting the context, I really want to do it .S Mar 30 18:05:32 the thing is.. this list of products, I've been unable to be told yet by the company how I get that list.. Mar 30 18:05:37 and how often I can update it Mar 30 18:05:39 Then why are you asking us Mar 30 18:06:04 It's bad design, but you can do it if you want Mar 30 18:06:06 P3nnyw1se: na… wait a sec Mar 30 18:06:27 Does it require more memory to pass down the activity as well? Mar 30 18:06:46 Read up on how Java passes parameters. Mar 30 18:07:25 By reference, if I recall correctly Mar 30 18:07:39 do I see a list of 100 products ? and a big scroll ? how are they catogorised ? how is this represented visually? can i choose a catagory? how can i choose? can I narrow it by filter or search? how many levels of it are there ? how is that going to be displayed ? when I add to a basket do I see previous items, is there an indicator wherever I am in the catalog that shows me, does it keep history of navigaion though Mar 30 18:07:39 this list…….. Mar 30 18:07:51 dam I could go on but headache is killing me Mar 30 18:08:05 Clearly the smoking is slowly killing you! Mar 30 18:08:10 see I would want all that info b4 even starting to think about "how" to implement it Mar 30 18:08:56 I see what you mean StingRay.. and I have written down user stories and given thought into the list.. even though maybe I'm not great at explaining it Mar 30 18:09:02 cause when they are answered Mar 30 18:09:06 then you can ask Mar 30 18:09:17 do I use a viewPager for catagory nav ? Mar 30 18:09:26 is the basket better being a side pannel Mar 30 18:09:36 those type of implementation questions Mar 30 18:10:38 I havent given as little thought to the list as you interpret. but as I'm new.. seems to be new possibilities are uncovered all the time Mar 30 18:10:41 I dont know if thats a hassle to you Mar 30 18:10:50 but I dont mind, changing up things.. I see it as a learning process Mar 30 18:10:58 each time I dive into something.. like atm. viewPager Mar 30 18:10:58 well what I would do Mar 30 18:11:11 is in context download every like minded functional app Mar 30 18:11:15 same kind of data Mar 30 18:11:17 flow Mar 30 18:11:34 so you have inspiration / implementation examples Mar 30 18:12:03 I did a complete java project half a year ago with endless pages of design and reviews and testing.. and I'm taking a noobie approach Mar 30 18:12:12 but last week. e.g. I had no designed this to be any different in landscape mode Mar 30 18:12:18 then read about it.. and it was awesome to make it work :) Mar 30 18:12:22 thats how I learn I guess Mar 30 18:13:02 ofc I know I can't come around and change essential parts of the programming halfway through Mar 30 18:13:04 well I'm more of a production TD/designer than I ever will be an android dev Mar 30 18:13:09 :) Mar 30 18:13:42 I have 4 months of Android developing.. then I'm done. 3 weeks into it now.. and I guess Mar 30 18:13:53 I'm using this app to uncover a lot of subjects.. and it probably not efficient Mar 30 18:14:01 but even if I don't get to use viewPager.. I will know afterwards Mar 30 18:14:03 what its about Mar 30 18:14:17 I'm not on a deadline :) Mar 30 18:14:42 4 months sound like a deadline. Mar 30 18:14:46 Or University. Mar 30 18:14:50 well it is Mar 30 18:14:59 but I'm only suppose to turn in an android project.. Mar 30 18:15:03 I'm not suppose to turn in a working app Mar 30 18:15:09 just the 'idea' of a working app ;) Mar 30 18:15:09 heh Mar 30 18:15:15 What University if I may ask? Mar 30 18:15:19 I though.. ofc want to turn in a working app Mar 30 18:15:28 computer science, Denmark Mar 30 18:15:39 Ah Mar 30 18:15:46 Expensive country. Mar 30 18:16:03 sure but the schools are in our taxes Mar 30 18:16:17 so not only don't I pay anything.. I get paid 800 euros a month Mar 30 18:16:19 to go to school ;) Mar 30 18:16:27 heh Mar 30 18:16:30 Nice Mar 30 18:16:42 I guess so.. this year is tough in my opinion Mar 30 18:16:47 I'm learning Mar 30 18:16:58 Can't expect a working app with that salary ;p Mar 30 18:17:10 from scratch... android, PHP, MYSQL, HTML and advanced java Mar 30 18:17:12 at the same time Mar 30 18:17:25 What semester? Mar 30 18:17:28 4th Mar 30 18:17:43 we had this guy in.. who was done at the school.. last year, still hadn't gotten a job Mar 30 18:18:01 I asked him 'do you feel like you could say 'yes' if someone asked if you were a professional java programmer?' Mar 30 18:18:04 and he said 'no .. I don't Mar 30 18:18:32 I'm annoyed through half the teachings.. we have PHP android and MYSQL for 4 months Mar 30 18:18:34 Most Unis don't make you a professional Java programmer. Experience does, your own projects, contributing to other projects, work. Mar 30 18:18:45 Uni shows you the ropes and a certain mindset maybe, imo. Mar 30 18:18:55 kakazza: That's my expirience too Mar 30 18:19:00 It's called 'Computer Science', not 'Programming' ;) Mar 30 18:19:07 I suppose so.. anyways I'm adding to it. Mar 30 18:19:17 Keep at it. Mar 30 18:19:28 I'm 29 .. I went to acting school at first, worked on movies, tv series, music videos Mar 30 18:19:35 then I decided I wasn't gonna be the next Robert De Niro Mar 30 18:19:56 I'm never going back to school when I'm done.. so I wanna do it now Mar 30 18:20:00 the extra build on. Mar 30 18:20:29 P3nnyw1se: Which country you go to uni? Mar 30 18:20:53 Denmark Mar 30 18:21:01 Ah well Mar 30 18:21:11 I'm going to study in Switzerland Mar 30 18:21:21 nice play :) Mar 30 18:21:27 I still do movies and tv series to make money on the side Mar 30 18:21:36 I'm often cast as 'guy #3 from left' Mar 30 18:21:36 ;) Mar 30 18:22:05 Even then, you've got more fare then the most, I guess :) Mar 30 18:22:11 last year I did a film with Dougray Scott.. he was the villian in Mission Impossible 2.. and I had like a 10 minutes part Mar 30 18:22:14 it was awesome... Mar 30 18:22:20 then the movie went bankrupt :D Mar 30 18:22:28 :) Mar 30 18:22:58 yeah well its fun.. in Denmark we have like this show Mar 30 18:23:02 thats like working with the police Mar 30 18:23:06 they try to solve real crimes on air.. Mar 30 18:23:20 lol, seriously? Mar 30 18:23:29 I played their undercover guy .. so I actually pretended to be criminal.. with real criminals.. and hidden camera Mar 30 18:23:34 as an actor.. that was really huge Mar 30 18:23:39 it was so different than just normal acting Mar 30 18:24:23 I robbed this store.. the owner knew about it.. they wanted to test the peoples reactions Mar 30 18:24:31 this 74 year old.. retired cop.. tackled me on the parking lot Mar 30 18:24:32 hurt like hell Mar 30 18:25:40 Programming is a lot safer. Mar 30 18:28:25 kakazza: depends on whom you work with Mar 30 18:28:35 some people are really religious about ruby Mar 30 18:49:16 hi guys ;) Mar 30 18:54:58 * StingRay_ thinks it would be better if android auto picked resolutions that are the best fit to view area/dimension rather than screen qualifiers Mar 30 18:55:20 resolutions = drawable bitmaps Mar 30 18:56:44 you cant override that can you ? like force a hdpi resource onto a mdip screen ? Mar 30 18:56:58 in code you can Mar 30 18:57:05 oh wow Mar 30 18:57:25 That's how e.g. Nexus 10 uses xxhdpi icons Mar 30 18:57:53 xxhdpi icons? why not xxxhdpi? Mar 30 18:58:26 Because fuck you, that's why Mar 30 18:58:49 lov, Is that you? :) Mar 30 18:58:52 SimonVT: I must be searching for wrong terms Mar 30 18:58:54 :p Mar 30 18:59:03 :D Mar 30 18:59:04 all I find is lots of people saying "DONT DO IT" Mar 30 18:59:20 StingRay_: https://developer.android.com/reference/android/content/res/Resources.html#getDrawableForDensity(int,%20int) Mar 30 18:59:23 Anyway, don't do it Mar 30 18:59:46 fuck u, there are legitimate uses for that ;) Mar 30 18:59:53 and thanks Mar 30 18:59:53 Only thing you gain is larger drawables Mar 30 19:00:22 well indeed Mar 30 19:00:31 but lets say you have a user definable height Mar 30 19:00:37 If they occupy the same space, you gain nothing Mar 30 19:00:40 and it's populated with some drawable Mar 30 19:00:41 Ah Mar 30 19:00:45 You do weird stuff Mar 30 19:00:51 well no!! Mar 30 19:01:01 I want the option to do weird stuff Mar 30 19:01:15 call me Mar 30 19:01:20 maybe Mar 30 19:01:25 You *always* have the option to do weird stuff Mar 30 19:01:33 If nothing else, you have a canvas Mar 30 19:01:38 draw whatever the heck you want! ;) Mar 30 19:02:08 (not that I'm actually suggesting that. but you get my point) Mar 30 19:02:19 yeah, well is mainly for icons Mar 30 19:02:39 and I would also expect that in some cases where manuf. fks up the dpi Mar 30 19:02:50 1st gen galaxy tab being an example Mar 30 19:03:30 dpi setting, not physical dpi btw Mar 30 19:03:46 as in build setting Mar 30 19:04:09 is there a quick way to drop a database from an application during testing without having to create a method & button activity? Mar 30 19:04:23 I wouldn't worry about fuckups like 1st gen galaxy tab Mar 30 19:04:43 SimonVT: well that was just an example Mar 30 19:04:55 lets say I have a header bar for a conversaion list Mar 30 19:04:59 Rescue9: you could register a broadcast receiver, and send a broadcast via am Mar 30 19:05:01 user defined height is nice Mar 30 19:06:03 JesusFreke: nothing easier? I just need to dump it every now and then. Mar 30 19:06:20 Rescue9: define "easier" Mar 30 19:06:31 this lets you drop the database with a simple shell command Mar 30 19:06:32 adb command would be nice. :-D Mar 30 19:06:34 Rescue9: delete via adb Mar 30 19:06:43 Rescue9: that *is* an adb command Mar 30 19:06:48 oh.... :-( Mar 30 19:06:52 * Rescue9 looks dumb Mar 30 19:06:58 * Rescue9 still learning.... just slow Mar 30 19:07:10 adb shell am broadcast Mar 30 19:08:04 StingRay_: adb typically won't have access to the application dir, unless it's a rooted phone Mar 30 19:08:20 I thought there was an APP mode Mar 30 19:08:28 gave it your app permissions ? Mar 30 19:08:43 oh, maybe so. Mar 30 19:08:52 I think I know what you're talking about. I didn't realize it did that though Mar 30 19:08:54 I'm rooted. Mar 30 19:09:00 same here so cant test Mar 30 19:09:03 Rescue9: just delete the db then Mar 30 19:09:15 Could just do adb uninstall your.package Mar 30 19:09:16 via adb shell? Mar 30 19:09:18 Rescue9: or there might be a pm command you can use to clear that app's data Mar 30 19:09:25 Rescue9: sure Mar 30 19:09:39 Rescue9: it would be somewhere in /data/app// Mar 30 19:09:51 SimonVT: doesn't eclipse automatically uninstall prior to installing new version? Mar 30 19:09:57 No Mar 30 19:10:05 the pm command is probably your best bet though. I suspect there should be one to clear an app's data Mar 30 19:10:09 although I"m not positive Mar 30 19:11:20 thanks guys. Mar 30 19:12:43 @Rescue9 you can use maven to build your app. Maven provide a option to uninstall your app before installing it Mar 30 19:13:05 @Rescue9 maybe you're not familiar with maven Mar 30 19:13:39 andkickstartr: appreciate the info. hardly familiar with eclipse, mush less anything else. adb commands seem to work best for me as I'm used to shell. Thanks though! Mar 30 19:16:49 @Rescue9 Ok :) Mar 30 19:19:42 You need some hashtags in there as well Mar 30 19:22:30 #yolo Mar 30 20:08:39 Anyone have a good document to read up on Adapter#getView(int, View, ViewGroup) I'm trying to better understand how to implement this method correctly. e.g., when view is null vs when it's not Mar 30 20:09:25 g00s: that talk was from 6 months ago Mar 30 20:10:20 rburton-: http://www.youtube.com/watch?v=wDBM6wVEO70 Mar 30 20:10:23 rburton- if it's null you need to inflate it yourself, if it is not null, it has been recycled Mar 30 20:10:32 and that can only be world of listview Mar 30 20:10:39 \o/ Mar 30 20:10:43 o/ Mar 30 20:10:50 I'm getting a FileNotFoundException on Context.openFileOutput()... any idea why it could happen? The exception is java.io.FileNotFoundException: /data/data/br.com.crystalpoll/files/DeviceCode (Permission denied) Mar 30 20:10:54 \o Mar 30 20:10:55 ;) Mar 30 20:11:07 BlackYue yuo need the permission for sd writing Mar 30 20:11:32 but this is suposed to create file on the internal storage Mar 30 20:11:41 So basically I should have a conditional check saying "inflate or not" and the rest of the code should remain the same with setting values Mar 30 20:11:50 rburton- yes Mar 30 20:12:02 watch the youtube vid, essential Mar 30 20:12:09 Thanks, trying to find out the details of this and the javadocs don't really speak to this Mar 30 20:12:13 Will do! Mar 30 20:12:20 And anyway the app already have external storage permission Mar 30 20:13:22 you don't need permission to write to the app's data directory Mar 30 20:13:25 Okay now time to figure out why the images are not displaying in my grid Mar 30 20:33:47 Hey, if got a problem and I don?t know how wo solve it. Mar 30 20:33:47 If got a mainActivity which has a view displayed. Now inside of this view is another view which should render data from a sensor onto a canvas. My problem is now, that I don?t know how to get the data, which i receive inside of my mainActivity to this second view. Can you help me, or point me to the right direction? Mar 30 20:35:38 secondView.setData(yourData) ? Mar 30 20:42:39 i get the second view with this: compassView = findViewById(R.id.myCompassView1); I can?t access a setData function. I declared my own updateData() function which should be public, but I can?t get it with compassView.updateData() Mar 30 21:03:57 at least any idea where to look or what to do to be able to learn how to do this? Mar 30 21:09:23 Worse part about mobile development is trying to tink of a nice interesting UI design Mar 30 21:09:52 rburton-: I cheat Mar 30 21:09:56 I only write command line tools :D Mar 30 21:10:01 We'll youre Jesus you can Mar 30 21:10:09 well, there's Penroser Mar 30 21:10:09 :D Mar 30 21:10:15 but it really doesn't have much of a UI Mar 30 21:10:50 Trying to think of a nice way to handle letting someone post a message like Twitter Mar 30 21:10:57 I should look at twitter's client to get ideas Mar 30 21:11:08 rburton-: when you find it, let us know ;) Mar 30 21:11:15 ;) Mar 30 21:12:12 Looking to the twitter app for ideas on design is a pretty bad idea Mar 30 21:12:23 oh i thought he meant the source code Mar 30 21:12:46 Ah, might be Mar 30 21:12:54 Figured he was still going on about interesting UI design Mar 30 21:12:56 SimonVT: When you're design looks like a console application ;) Anything is an improvement Mar 30 21:13:03 SimonVT: I am :) Mar 30 21:13:31 Baby steps, I guess Mar 30 21:13:49 Only one side of my brain works :) That'll be the front side :D Mar 30 21:13:51 I'm perfectly happy with Mar 30 21:13:59 tweet "Look ma! I'm tweeting!" Mar 30 21:14:04 from the command line Mar 30 21:14:04 :D Mar 30 21:14:25 Today is a nice day in SF Mar 30 21:14:25 "Look ma! No GUI!" Mar 30 21:14:37 My ma hated when she saw GUI in my room Mar 30 21:14:42 I should get out and ride a bit Mar 30 21:14:46 probably won't though Mar 30 21:14:54 JesusFreke: you live in the bay area also Mar 30 21:14:57 JesusFreke: road bike? mountain ? Mar 30 21:15:01 yea Mar 30 21:15:07 g00s: c. none of the above Mar 30 21:15:15 g00s: all those have too many wheels for me Mar 30 21:15:17 Which area? Mar 30 21:15:23 I don't know why you need that second wheel Mar 30 21:15:25 JesusFreke: how do you ride without wheels :) Mar 30 21:15:26 rburton-: MV Mar 30 21:15:34 g00s: I only need 1 Mar 30 21:15:38 you might be able to get away with no GUI, but no wheels ? Mar 30 21:15:40 I'm near Square's office. A few blocks actually like 2 Mar 30 21:15:41 ah, ok Mar 30 21:33:20 hi guys, im probobly doing something wrong here: http://pastie.org/7187525 i would like to load the Edit-boxes with info from the settings. But im getting: "Cannot make a static reference to the non-static field settings" Mar 30 21:33:29 is there some other way im suppose to do this? Mar 30 21:36:36 cHarNe2: Pastebin the entire code set. Mar 30 21:37:23 Hey guys Mar 30 21:37:41 hey viiralvx Mar 30 21:37:44 So I'm having a media player stream audio via a service . . . but my seek bar doesn't want to update from the service. Mar 30 21:39:03 rburton-: you mean the entire code-file ot the class, or just the entire fragment? Mar 30 21:39:51 the entire code file plus the exception Mar 30 21:40:38 I declare an Interface inside a Fragment, implement the method for ie passData(String someString) and I can send some text to Activity from Fragment. But how from Activity to Fragment ? Mar 30 21:41:54 rburton-: http://pastie.org/7187581#283-284 that is the code, but i dont reallt know hoe im suppose to add the exception, eclipse wont let me compile it due to the error Mar 30 21:42:15 If I want to make a text editor with code highlighting how would this be done? Mar 30 21:42:55 Eclipse should let you copy the exception Mar 30 21:43:24 it should tell you want line at least. Mar 30 21:43:42 * rburton- noticed a lot of bird in SF who are missing feet. Odd trend Mar 30 21:43:53 http://pastie.org/7187610 Mar 30 21:45:03 cHarNe2: you need to make your inner class non-static Mar 30 21:45:04 Because SettingsFragment is static and the state your accessing is not static Mar 30 21:45:12 e.g., settings.getString(..) Mar 30 21:45:14 so that it can access the instance fields in the parent class Mar 30 21:45:21 JesusFreke++ Mar 30 21:45:40 cHarNe2: Also small recommendation. Break down your class files into smaller logical chunks of source :) Mar 30 21:46:12 Wouldn't a non-static inner fragment break when restored from state Mar 30 21:46:17 Anybody? Mar 30 21:46:36 SimonVT: no clue. I haven't actually done any programming with fragments :) Mar 30 21:46:39 ok, first things first, what should i change to be able to load the settings to the boxes? Mar 30 21:47:18 The fragmentmanager instantiates it via reflection Mar 30 21:47:21 cHarNe2: How much experience do you hava in Java? Just wondering? Mar 30 21:47:31 Yeah, that's probably not going to work then :) Mar 30 21:47:33 close to zero :) Mar 30 21:47:50 Okay :) you're going to run into more problems like this. I recommend spending time reading up on Java a little more Mar 30 21:49:25 :/ Mar 30 21:50:04 ye, that might be true. but i find programming a better way of learning ;) so i thought i's start by doing a simple app that just pulls an xml-file and parses it Mar 30 21:50:19 I have an odd little bug. I have a TabHost and one tab brings up the Intent for taking a picture. The device screen orientation changes for it and then once the picture is selected, the first tab is selected. Hmm I think I may not why I need to test Mar 30 21:50:21 but is there a quick-fix to my issue or not? Mar 30 21:51:10 The fragments needs its own instance of settings Mar 30 21:51:14 Don't reference the one in activity Mar 30 21:51:37 ok, thanks! :) Mar 30 21:53:37 :( Mar 30 21:53:54 Hmm, how hard is it to convert from activities to fragments? Mar 30 21:56:21 I think I know what the problem is.. i need to manage the state saved for the activity. Okay Dokay Mar 30 21:58:56 i have some questions related to Phonegap, would it be ok? Mar 30 22:00:07 If you're willing to listen to lots of rants about how bad phonegap is Mar 30 22:00:36 Anyway, #phonegap Mar 30 22:00:58 no one seems to be active there Mar 30 22:01:16 maybe because it's the weekend Mar 30 22:02:16 slackers Mar 30 22:02:25 They need someone like JakeWharton always on the grind! Mar 30 22:03:11 I figured I would need to override the onSaveInstanceState and onRestoreInstanceState for making sure the TabHost shows the right tab on roation, but that doesn't seem to be the case. Mar 30 22:04:32 is phonegap really bad? Mar 30 22:04:36 You also gotta actually save/restore the state, overriding isn't enough :p Mar 30 22:04:52 Well, that's what I meant lol ;) Mar 30 22:04:57 Maybe I should use phonegap ;) Mar 30 22:05:47 https://gist.github.com/rburton/5278555 Mar 30 22:06:22 Shit Mar 30 22:06:23 These methods are being called and the state is found in the bundle, but the proper tab isn't being selected. The default (first tab) is the one displayed Mar 30 22:06:24 I'm getting Mar 30 22:06:25 Stupid errors. Mar 30 22:06:28 On 2.3.4 Mar 30 22:06:31 When I'm trying to decode a URL Mar 30 22:06:51 it gives me an error invalid % sequence % "> Mar 30 22:06:54 But that's only on devices < 4.0 Mar 30 22:07:06 Be happy you're recieving exceptions. I'm working the the darkness of my own ignorance ;) Mar 30 22:07:43 SimonVT: That logic seems correct? I'm savin the tab tag (not index the constaint is just residue form before) Mar 30 22:07:56 It goes into the if block onrestoreInstanceState Mar 30 22:08:36 Meh, exceptions are okay. But I've been getting miscellaneous crashes, but I get around them by using a lot of debug statements, haha. Mar 30 22:08:43 Makes finding the error way easier. Mar 30 22:10:03 viiralvx: try sharing the exception and code snipplet Mar 30 22:10:15 rburton-: Looks alright Mar 30 22:10:43 SimonVT: Thta's what I figured, just don't see why setCurrentTab or setCurrentTabTag is showing the right tab. Let me do some debugging more into this Mar 30 22:11:04 Are you actually setting tab tags? :p Mar 30 22:11:57 http://pastebin.com/3nT9kyCC Mar 30 22:12:01 rburton-: http://pastebin.com/3nT9kyCC There you go Mar 30 22:12:07 I tried doing tabHost.setCurrentTab(1); and in the instance state of the TabHost, I see mCurrentTab = -1 Mar 30 22:12:31 shit on me SimonVT ;) Mar 30 22:12:40 I think I see why... I override onPostCreate(..) Mar 30 22:12:58 t.t Mar 30 22:13:31 So it's rebuilding the TabHost. Now here's a problem I have. I did that because I was getting an exception about building the TabHost via the OnCreate method Mar 30 22:14:04 let me see what the exception is Mar 30 22:15:46 okay that was it. Mar 30 22:16:02 The exception went away as well. I must have been doing something wrong in the prior code that I fixed. Mar 30 22:16:47 SimonVT: thanks for being a sounding board :) Mar 30 22:16:48 Meh. Mar 30 22:17:40 what is end[0] Mar 30 22:17:46 he means thanks for not sounding bored Mar 30 22:18:07 storkme: SimonVT can fart in my ear and it won't sound boring Mar 30 22:18:44 I.. wut oO Mar 30 22:18:52 oO Mar 30 22:19:01 i'd pay to see that Mar 30 22:19:11 sounds like a fetish Mar 30 22:19:29 hello dudes Mar 30 22:19:34 rburton-: end[0] is the array of matches found from the regex. Mar 30 22:19:37 SimonVT: I suspect I should save other related state as well to this tab like the messaged already typed etc. Mar 30 22:19:40 Sorry, let me post the whole Mar 30 22:19:41 funciton Mar 30 22:19:47 viiralvx: ;) what value... Mar 30 22:20:04 did you write a unit test to reproduce this and pastebin it. It looks like a bad string Mar 30 22:20:13 You should save any state you need to reconstruct the activity as it is Mar 30 22:20:16 rburton-: To be quite honest, it's over 10000 characters long. Mar 30 22:20:26 Okay, that's what i was thinking SimonVT Mar 30 22:20:41 rburton-: And I can only reproduce it on < 3.0 devices via an emulator, I never get this error on a Honeycomb or greater device . . . Mar 30 22:21:08 it maybe a bug that was resolved. Mar 30 22:21:43 Sometimes i feel like I want to write more and more builders for doing my UI Mar 30 22:21:55 hello dudes. I have a class that has some web service calls and is a singleton from Application object Mar 30 22:22:04 I hate doing new tabspec; set this; set that; set this other; Mar 30 22:23:14 where should i store some info like the username etc? Mar 30 22:23:25 Parhs: Look at Dagger Mar 30 22:24:14 how could a di framework help me there Mar 30 22:24:27 It'll allow you to isolate the construction of the singletons nicely. Than you would have one location to manage the state you want to share Mar 30 22:24:54 Are you asking about how to do a switch on which environment you're in? Mar 30 22:25:07 e.g., use abc vs 123 if in development? Mar 30 22:26:08 hi Mar 30 22:26:35 hiwassupbuddy from to catch a predator? Mar 30 22:26:40 I love that show :) Mar 30 22:26:57 i only need one singleton so i doupt if it worths the time Mar 30 22:27:30 Are you trying to know when to use value x over y based upon environment? (production vs development) Mar 30 22:27:31 even then i need somehow context to get settings Mar 30 22:27:46 Dagger will pass in the Context to the constructor of a module Mar 30 22:27:50 Hi people. I have an 'Activity' and I'd like to display it inside a fragment. How could I load it into the tab ? Mar 30 22:28:21 Are you trying to know when to use value x over y based upon environment? (production vs development) ( are you asking me this question?) Mar 30 22:28:31 i dont undestand what you mean if so Mar 30 22:28:32 yes Mar 30 22:28:38 rburton-: ;-) Mar 30 22:29:00 Oh sorry I miss read your question. You want to know where to store information on the device for later use? Mar 30 22:29:16 Not how to use different credidentals based upon the environment your running in Mar 30 22:29:21 bascially, a silly question from me - is it easy to start with app development for android - so far, I've got only experience in python/django, no prior java done ;) Mar 30 22:29:31 something like this.. I have a class that has a bunch of webservice calls. Mar 30 22:29:34 wassup: Hello Android book is good Mar 30 22:29:46 and it needs settings from shared preferences like host/port Mar 30 22:29:57 it hasnt to do with dev/prod environment :) Mar 30 22:30:19 so the solution i figured out is to have a singleton at application otherwise it dies Mar 30 22:31:11 or the other solution would be to expose context staticaly and call it from constructor of web service class(to access connection parameters) Mar 30 22:31:26 rburton-: I think I'll use the busy coder's guide, yet I might possibly look at hello android if you recommend it Mar 30 22:31:29 and now i am wondering where to store which user is logged in Mar 30 22:31:30 Have you looked at SharedPreferences? Mar 30 22:31:47 yes a bit. i use them for user editable settings Mar 30 22:32:07 i would preferer to store a small user object Mar 30 22:32:10 Or if you like just store what you want on disk or a sqlite database Mar 30 22:32:26 it isnt that much data to use sqllite etc Mar 30 22:32:35 rburton-: the 3rd edn? Mar 30 22:32:36 Then just store it in a file Mar 30 22:32:39 wassup: yea Mar 30 22:32:46 not shared preferences? Mar 30 22:32:51 rburton-: thanks Mar 30 22:32:58 found it Mar 30 22:33:37 That's what I was saying to use :) seem like you didn't want to use that for some reason. Mar 30 22:34:39 I personally store key/value data in the SharedPreferences. I have a queue of values that I need to pop from and in that case I use Tape Mar 30 22:35:01 I don't have a need at all for SQLite so I don't use it Mar 30 22:35:18 heh Mar 30 22:36:07 so maybe i store it at sharedpreferences or within my web service class Mar 30 22:36:51 Sounds like you're issue is when the web service class doesn't have the state, how to react? Mar 30 22:38:39 Maybe my questioning is making this confusing. Are you wondering how the application will recat once its restarted how your service class will obtain the state? Mar 30 22:39:55 Under what circumstances would billing not be supported on a device? Mar 30 22:45:19 apple741: if it doesn't have google play installed? or no google account registered? Mar 30 22:48:08 Thanks I got a crash report along those lines so I'm just trying to investigate the cause Mar 30 22:52:44 I've had to unpublished it for now Mar 30 22:58:48 Its really scary being new to all of this Mar 30 23:00:15 scary? Mar 30 23:01:29 Getting bad reviews for silly mistakes like this when you spend so long working on the app. Mar 30 23:01:44 If it was just one report (and you have considerably more users), I wouldn't worry about it Mar 30 23:02:05 People do all sorts of weird things to their phones. It's entirely possible it's not your fault Mar 30 23:02:47 If it happens often though, it warrants some investigation Mar 30 23:03:42 what was the exception you got? Mar 30 23:03:59 Yeah I didn't encounter the problem but I asked some friends to verify the crash and they did , so I've had to unpublish will I take another look Mar 30 23:04:30 Did you get the crash report via the play store publish site? Or just reported externally by a user? Mar 30 23:05:00 guys would you ask users (in case they are bussiness users) of your app if they like it/what they need or not? Mar 30 23:05:17 Sure, why not? Mar 30 23:05:29 dont know my partner gets very angry when i do this :) Mar 30 23:05:29 as long as it doesn't intrude on the functioning of the app Mar 30 23:05:37 Yep it was through google Mar 30 23:05:48 apple741: what was the exception? Mar 30 23:06:04 don't use a popup or velociraptors will kill you at your desk. Mar 30 23:06:33 java.lang.IllegalStateException Mar 30 23:06:42 lol i though of using a popup before a while :P Mar 30 23:06:46 apple741: I mean the full stack trace, etc. (via pastebin) Mar 30 23:07:34 you will get murdered. Mar 30 23:07:57 dudes when i return from sleep and wifi isnt on is there a way to wait for it or something ? Mar 30 23:08:18 Protip: Use some other service than the dev console for getting crash reports Mar 30 23:08:54 you're not even getting half the picture if you rely on the dev console Mar 30 23:10:22 SimonVT: I recommend BugSense Mar 30 23:11:00 didn't that go non-free quite recently? Mar 30 23:11:26 Not recently Mar 30 23:11:28 Was a long time ago Mar 30 23:12:36 or well, it has a free part.. With limits on how many errors you can have per month Mar 30 23:13:27 i'm really out of the loop Mar 30 23:13:49 Anyway, there are lots of services Mar 30 23:13:53 Consider using one of them Mar 30 23:14:02 I rolled my own once Mar 30 23:14:04 For every error you get in the dev console, there's probably 50 that go unreported Mar 30 23:14:19 (no joke) Mar 30 23:14:30 (50 might be a low number) Mar 30 23:14:35 it's like complaint letters to broadcasters - for every one person that wrote in, FIFTY THOUSAND PEOPLE HAD A BAD TIME Mar 30 23:14:47 (tl;dr dev console errors are useless) Mar 30 23:15:06 Pretty much, yeah Mar 30 23:15:16 there is also crittercism (not sure if anyone mentioned that already) Mar 30 23:17:11 i have a small confusion.. i know that we put images etc at drawable-xxxx folders Mar 30 23:17:23 but where should mydrawshit.xml be put ? Mar 30 23:17:58 in drawable/ Mar 30 23:18:02 res/drawable-shit of course Mar 30 23:18:55 g00s is this a joke :)? Mar 30 23:25:30 What do you have to do to make an "alarm" app. The apps process cant die right? Mar 30 23:27:22 you use the AlarmManager to schedule your app to wake up when you need it awoken Mar 30 23:28:23 roboguice seems to be lacking in documentation a bit Mar 30 23:31:02 storkme: try dagger instead Mar 30 23:31:46 i haven't used it, personally, but it seems decent. i think Bob Lee worked on it Mar 30 23:32:02 Hey guys, so I've done a little bit of research and I kinda get the concept of fetching data from a web service api using a http client and parsing the data with JSON but how does the database come into play? Also would I have to make this API myself? Mar 30 23:38:25 Hey guys, so I've done a little bit of research and I kinda get the concept of fetching data from a web service api using a http client and parsing the data with JSON but how does the database come into play? Also would I have to make this API myself? Mar 30 23:39:15 the android database can store results from the web service Mar 30 23:40:13 jeppy, not sure I understand Mar 30 23:40:15 and yes, you have to define the strings and such on the client and server side to make sure they agree Mar 30 23:40:33 patternalism Mar 30 23:41:07 since the results are retrieved asynchronously, you can store them in the client side db immediately Mar 30 23:41:54 then, maybe you have a listview keeping an eye on the data, just notify it of changes and it will reload it Mar 30 23:42:18 ...from the client db Mar 30 23:42:56 jeppy: So wait, I have to host a website (obviously) but how do I create a page full of JSON data and if this API is connected to the database wouldn't that page be collecting data from the database? Mar 30 23:43:30 I'm assuming you are using a database on both the client and server side Mar 30 23:44:13 jeppy: just a remote database, not a database on the phone itself? Unless there would be a specific reason why I wuold/ Mar 30 23:44:14 ? Mar 30 23:44:25 for JSON data, there are usually built in functions. PHP has json_encode and json_decode. There is also a library you can use called GSON Mar 30 23:44:51 what kind of data are you fetching? Mar 30 23:46:19 jeppy: I just wanna collect some generic student data Mar 30 23:46:26 from a database Mar 30 23:47:51 you could put the http request into an AsyncTask I suppose, but there's likely other opinions here. Mar 30 23:49:45 I see Mar 30 23:50:05 coco89: http://neilgoodman.net/2012/01/01/modern-techniques-for-implementing-rest-clients-on-android-4-0-and-below-part-2/ Mar 30 23:50:14 is there a version in java? Mar 30 23:50:17 read that article Mar 30 23:50:19 PHP is not my main language Mar 30 23:50:20 :P Mar 30 23:50:28 ah thanks Mar 30 23:50:33 oh sorry Mar 30 23:50:34 yes i'm sure there is Mar 30 23:51:44 thanks Mar 30 23:51:48 np Mar 31 00:21:03 I'm seeing bizarre readings from a VelocityTracker, am I doing something wrong? The values seem almost random. http://ideone.com/NP0CBE Mar 31 00:21:08 g00s: Bob Lee didn't work on it Mar 31 00:21:19 Trying to makea "fling" animation of a RelativeLayout. Mar 31 00:22:06 g00s: he helped as an advisor only Mar 31 00:23:07 The log, from dragging steadily from right to left across the screen: http://ideone.com/ZBVuhL Mar 31 00:39:08 i made a BroadcastReceiver for connectivity issues i had Mar 31 00:39:32 the problem is how can i do something now? Mar 31 00:39:38 notify my activity Mar 31 00:43:23 http://stackoverflow.com/a/6675165/294022 Mar 31 00:43:29 something like this dude Mar 31 00:43:36 but it wont be static Mar 31 00:44:13 So Mar 31 00:44:14 I using Mar 31 00:44:15 SetMainActivity Mar 31 00:44:18 In a Service Mar 31 00:44:19 Frowned upon? Mar 31 01:16:23 Is using setMainActivity in a Service to modify the UI of an activity bad? Mar 31 01:23:18 huh? Mar 31 01:23:42 why not use broadcastreceievers and let the UI mod itself based on the contents of the messages? Mar 31 01:23:59 or better, localbroadcastreceivers if you don't need to talk outside your own app Mar 31 01:24:42 Well . . . Mar 31 01:24:48 That wasn't working out so well. Mar 31 01:24:59 It doesn't play nicely Mar 31 01:25:02 With a SeekBar Mar 31 01:25:03 And streaming audio Mar 31 01:25:20 too slow? Mar 31 01:25:49 i have been under the impression that the only thing that should mod the UI is the UI thread. Ever. Mar 31 01:27:59 damccull: Well . . . not even that it's too slow. It just doesn't work. I've tried using handlers and runnables to communicate between the service and the UI thread, but it wasn't working out at all. Mar 31 01:28:17 And it was just causing freezes and crashes . . . this was works flawlessly, though I have a feeling it's bad practice. Mar 31 01:28:40 you can send bundles with the messages if I remember right Mar 31 01:28:50 then use the info/objects in those to handle the stuff Mar 31 01:30:24 Tried it, no dice. Mar 31 01:30:32 weird. Mar 31 01:30:37 I got it to work with updating the TextView, Max Duration, etc. Mar 31 01:30:42 But in terms of the seek bar, it wasn't not working at all. :/ Mar 31 01:30:52 are you sending floats? Mar 31 01:30:55 or ints? :) Mar 31 01:31:29 i would just send an integer between 1 and n seconds Mar 31 01:31:39 "it wasn't not working at all. " - it sounds like it was working perfectly Mar 31 01:31:39 damccull: Ints. Mar 31 01:31:40 and another int representing max secodns for song Mar 31 01:31:54 JesusFreke: Typos. :/ Mar 31 01:31:57 lol Mar 31 01:32:19 viiralvx: I would hope so :) Mar 31 01:32:28 damccull: Yeah, I was doing that . . . wasn't really working out well, like I said, haha. Maybe I could try and revamp it to make it send messages onBufferingUpdate? Mar 31 01:32:46 I dunno, I'm going to test it out on other devices Mar 31 01:32:49 And see what errors they encounter Mar 31 01:33:01 dunno man. I'm barely figuring out services myself :D Mar 31 01:33:10 you now have ALL of my services knowledge Mar 31 01:33:59 like, I was trying to use a service with an asynctask to connect to a MUSH/MUD server, which worked great! Until you tried to disconnect and reconnect. It's like it would refuse to disconnect ;D Mar 31 01:34:09 but that's probably my terrible knowledge of sockets coming into play Mar 31 01:34:31 Hahaha Mar 31 01:34:33 Well Mar 31 01:34:36 I use an IntentService Mar 31 01:34:40 With an AsyncTask Mar 31 01:34:52 To fetch data from a REST Api. Mar 31 01:34:59 And dynamically build a playlist from that Mar 31 01:35:08 Then using another Service with a MediaPlayer Mar 31 01:35:31 I am fetching the stream URL from that and streaming via that service. Mar 31 01:35:34 why sockets gotta be hard anyways? Mar 31 01:35:47 cool Mar 31 01:35:59 I know right? All I gotta do now is implement notification music controls and maybe a lock screen widget . . . Mar 31 01:35:59 maybe that's why youor seeking is broken. Streaming seeking is mean to me ALWAYS Mar 31 01:36:05 and I don't even write the programs! Mar 31 01:36:16 Well, I had it working before I started working with services Mar 31 01:36:23 heh Mar 31 01:36:26 I started working with services because I was getting issues on playing music when in other apps Mar 31 01:36:41 Modifying it to play with a service fixed that issue quite easily. :D Mar 31 01:37:59 heh yep Mar 31 01:38:09 i think i suggested that to someone on google+ yesterday orr day before Mar 31 01:38:13 but Mar 31 01:38:21 CRAZY STUPID SEEK PROBLEM RIGHT?! Mar 31 01:38:56 Yeah, no kidding. Mar 31 01:39:12 I literally spent like Mar 31 01:39:13 2-3 days Mar 31 01:39:17 Trying to get seek working through a service Mar 31 01:39:24 Then I found this nitty gritty hack Mar 31 01:39:26 And it works Mar 31 01:39:28 Perfectly . . . Mar 31 01:40:35 and ugly with problems that will likely show themselves in the future? :) Mar 31 01:46:19 Yeah Mar 31 01:46:21 I'll fix those Mar 31 01:46:22 When I come to them Mar 31 01:48:04 Other than that, i ain't stressing over it. Mar 31 01:48:13 how do i create an API? Mar 31 01:48:17 a web service Mar 31 01:54:50 is there a way to get the active UIThread from my android.app.Application , so I can have a central hub to display Toast messages? Mar 31 01:58:14 new Handler(Looper.getMainLooper()) and post away Mar 31 02:26:00 Thanks SimonVT Mar 31 02:31:11 There was a little rainbow outside Mar 31 02:31:18 is it possible to change the layout xxml dyynamically (probably in the onPostExecute)? Mar 31 02:31:37 riccoski: change the XML? Why not build the UI in code then? Mar 31 02:32:38 well i just want to switch it from one to another as they are already built Mar 31 02:32:50 What do you mean switch? Mar 31 02:32:53 findViewById(..) Mar 31 02:33:18 riccoski: use the same method you use to set the xml resource initially Mar 31 02:33:26 just use a different layout file Mar 31 02:33:42 ok thanks, i wont get any nasty errors will i? Mar 31 02:33:43 :p Mar 31 02:33:47 Time to play with ExpandableListView today is such a nice day to relax. Mar 31 02:34:03 what is expandablelistview? Mar 31 02:34:14 rburton-: whats the difference between that Mar 31 02:34:15 A list view basically and clicking on a row item will expand downward Mar 31 02:34:19 and regular listview :p Mar 31 02:34:22 oic Mar 31 02:34:30 oh nice Mar 31 02:34:48 is it possible to use a listview and put a custom compound control as each of the item views? Mar 31 02:34:48 I want to see how it looks for what I'm building. I may just invoke an activity and display the image full screen Mar 31 02:35:12 you could do it with a ListView, but why do all that work? Mar 31 02:35:22 i have a list of stuff Mar 31 02:35:31 ie. card decks Mar 31 02:35:50 and I want to use a custom control to represent them and handle various button clicks Mar 31 02:36:02 I have a list of conversations then I want to display each message for that conversation. I just want to try and do something interesting Mar 31 02:36:16 damccull: like QuickAction? Mar 31 02:36:28 umm.. how do I turn on Logging for spring RestTemplate for android Mar 31 02:36:31 rburton-: explain quickaction? wait i'll google it Mar 31 02:36:44 https://github.com/alhneiti/Android-QuickAction Mar 31 02:37:20 rburton-: actually that's a good idea I hadn't thought of, but no. Like I want a tall object with 5 buttons and an icon. Mar 31 02:37:27 each button handled by a different handler Mar 31 02:37:34 so I wrote a control which does it all Mar 31 02:37:43 but now I want ot use that in a list and I can't figure out how Mar 31 02:37:51 I know how to use a custom layout as the item view Mar 31 02:38:06 I'm trying to find new and interesting ways to display a conversation Mar 31 02:38:34 stick figures and chat bubbles Mar 31 02:38:42 :D Mar 31 02:38:54 with a history slider Mar 31 02:39:03 So basically a person can share images, video and text messages. Just need a way to show it so people can really enjoy the content Mar 31 02:39:22 text and audio are in chat bubbles Mar 31 02:39:32 images the one figure hands the other a picture frame Mar 31 02:39:33 That's traditional Mar 31 02:40:02 i was thinking of a comic book like ui Mar 31 02:40:03 I was thinking if the ListView expanded downward and then the image (larger in size compared to the thumb nail) displays and double click for full screen Mar 31 02:40:25 I would totally use ComicChat Mar 31 02:42:27 Then you'll have fun with my application once I'm ready ;) Mar 31 02:42:50 haha Mar 31 02:42:55 i like voxer Mar 31 02:42:59 its useful Mar 31 02:44:14 My buddy works there Mar 31 02:44:25 This sin't like voxer this is different ;) Mar 31 02:44:43 Convention, name activities like MyActivity or MyView **** ENDING LOGGING AT Sun Mar 31 02:59:59 2013