**** BEGIN LOGGING AT Fri Jul 27 02:59:58 2012 Jul 27 03:10:23 If I have a class that just holds state for each of the other various classes and etc of the app, will this complicate progaurding? Jul 27 03:23:31 anyone ever use appmobi on a windows phone? Jul 27 03:27:42 http://www.hindustantimes.com/technology/PersonalTech-Updates/Hackers-develop-new-ways-to-attack-Android-phones/SP-Article1-895950.aspx Jul 27 03:27:45 lulz, pwning a phone with NFC Jul 27 03:37:03 has anybody tried using the Android SDK tools with OS X Mountain Lion? having trouble finding much info online Jul 27 03:37:28 would it be much different? Jul 27 03:43:58 I just wouldn't want to upgrade and then find that some important piece of it has broken Jul 27 03:44:27 for instance, IntelliJ just posted an update today that addressed its own OS X Mountain Lion compatibility issues Jul 27 03:50:13 If I change the list an arrayadapter is using, how can I reset the adapter? Jul 27 04:15:39 notifydatasetchanged Jul 27 04:15:53 more precisely,     adapter.notifyDataSetChanged(); Jul 27 04:21:25 i have a function calledgetUniqueFileNameAt Jul 27 04:21:41 it's in a class called StringUtils with only static methods Jul 27 04:21:46 I need the context to check if a file exists Jul 27 04:21:55 how can i do that better? Jul 27 04:22:02 or how do i get the context? Jul 27 04:22:57 pass it in Jul 27 04:23:45 i did this: File file = new File(location, filename); Jul 27 04:23:52 seems to work Jul 27 04:24:06 i don't want to pass it in. i'm calling it from my model and i'm trying to keep the context out of my model Jul 27 04:26:52 Oh man, MongoDB is such garbage Jul 27 04:26:58 whats that Jul 27 04:27:15 a NoSQL db Jul 27 04:27:19 Ologn: Overly generic statements without context are too! Jul 27 04:27:35 also, pretty sure it's not android related Jul 27 04:28:09 If you're policing Android-related comments, I can forward you several dozen from the past 24 hours Jul 27 04:28:32 sure, except that's not android related therefore I forbid it Jul 27 04:28:47 Word Jul 27 04:29:08 yolo Jul 27 04:29:17 ^ I'm sick of hearing that Jul 27 04:29:31 well, yolo, so... Jul 27 04:29:47 shoulda saw that one coming... Jul 27 04:29:52 what's it mean ? i've never seen it before Jul 27 04:30:02 you're only lethargic once Jul 27 04:30:04 lol Jul 27 04:30:06 you only live once Jul 27 04:30:07 means you want me to beat you up Jul 27 04:30:28 you only levitate once Jul 27 04:30:47 you only lie once Jul 27 04:30:57 yoyo is better Jul 27 04:30:57 all i'm doing is requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); but the wheel slways shows up, and even using setSupportProgressBarIndeterminateVisibility(false); right after it doesnt help Jul 27 04:31:00 you're on your own Jul 27 04:31:04 OK back to Android related comments...when is v2 of developer console coming out? (<- question often repeated on the channel by moi) Jul 27 04:31:25 Ologn: October 1st Jul 27 04:31:50 what's wrong with mongodb? Jul 27 04:32:13 DigitalKiwi: it doesn't apply to every use case by every person that every needs to use it Jul 27 04:32:22 for shame! Jul 27 04:32:52 there are a bunch of databases that implement of bunch of data storage patterns which apply to a bunch of uses cases Jul 27 04:33:03 they all do not apply to all of the use cases by all of the people in the world Jul 27 04:43:55 if i create two database helpers Jul 27 04:44:02 and then declare different tables in each of those Jul 27 04:44:18 and then run a sql select that joins on those tables, will it work? Jul 27 04:50:17 ok i'm stupid Jul 27 04:50:21 fixed that problem Jul 27 04:55:11 im having a small issue laying out a relative layout Jul 27 04:55:30 converting it from a bunch of nested linear layouts Jul 27 04:56:23 http://bpaste.net/show/37073/ Jul 27 04:56:41 can someone look at this and tell me how to make the textview the same width as the buttons below it? Jul 27 04:57:28 ok. the 10dp width and height on that textview are bogus. it was just an experiment Jul 27 04:57:31 ignore those. Jul 27 04:58:18 tho, the 10dp height is making it actually the RIGHT height in the enulator... not sure about on the phone. but 10dp is still wrong Jul 27 05:02:24 i don't really know, but you could set them to the same size or you could throw them in a panel and set width to fill Jul 27 05:02:43 it's midnight though, and i promised myself i'd stop android at midnight Jul 27 05:02:48 well i know that the buttons are 48 each. so setting the width of the textview to 144 works Jul 27 05:03:13 but thats still not right. i dont want to set a specific width. i want it to fit the width available to it minus the padding Jul 27 05:03:27 is there a panel you can throw them in? Jul 27 05:03:33 panel? Jul 27 05:04:21 the buttons are at bottom left. ive built the button grid up by making things relative to the items below them and to the left of them Jul 27 05:04:21 like a container Jul 27 05:04:42 the textview is at the top left above button 1a. Jul 27 05:05:03 ive no idea why setting its height to 10dp makes it fill out exactly the right space on both my phone and the emulator] Jul 27 05:05:09 that space is not 10dp in size Jul 27 05:05:44 but its height seems to be working for whatever reason Jul 27 05:06:01 would like to not have to specify either a hard coded width or a hard coded height Jul 27 05:06:33 why Jul 27 05:06:33 and i dont want to stuff anything into any containers Jul 27 05:06:38 i go RID of the linear layout Jul 27 05:06:47 because a hard coded width and height are wrong Jul 27 05:07:27 put this on a HDPI device and the buttons wont be 48dp in size any more Jul 27 05:08:24 dp is density-independent Jul 27 05:08:34 i.e., 48dp will be 48dp everywhere Jul 27 05:09:31 the buttons are actually 48 pixles wide and 48 pixles high Jul 27 05:09:41 that just happens to equate to 48dp here Jul 27 05:10:20 on a different device the button might be 72x72 Jul 27 05:10:34 setting my textview to 48dp will be wrong Jul 27 05:10:37 IS wrong Jul 27 05:11:29 how do i make the textview fill out the same width as the buttons below it ALWAYS without measuring anytin in code Jul 27 05:11:37 and back patching the fix at run time Jul 27 05:12:03 or better yet. how would someone with a clue lay that all out Jul 27 05:16:58 mark4: alight the left and right to the button Jul 27 05:17:28 so left of child is in line with left of parent Jul 27 05:17:34 and same for the right Jul 27 05:18:06 erm except the thing im trying to align to isnt its parent Jul 27 05:18:25 well. left align with parent yhes. right align with the item 2 items to the right of parent Jul 27 05:18:36 you can alight it to anything Jul 27 05:18:39 even the child Jul 27 05:18:50 so left of child 1 is in line with left of child 2 Jul 27 05:18:52 i can alight it with @id/?? Jul 27 05:19:32 actually. i want to align the left edge of the textview with the left edge of one button. and the right edge of the textview iwith the right edge ofa different button Jul 27 05:20:42 yeah use the id, i dont remember the specifics, let me look it up Jul 27 05:23:07 yeah use layout_toLeftOf ith the id Jul 27 05:23:09 and same for right Jul 27 05:23:27 http://pastebin.com/hgFCUu2A Jul 27 05:23:31 erm. except its not to the left of them or to the right of them. Jul 27 05:23:38 its above them. Jul 27 05:24:51 what im need to be able to do is align the left edge of the textview with the left edge of button 1a and the right edge of the text view with the right edge of button 1c Jul 27 05:26:05 i cant even see how your example xml matches with the view im trying to construct loll Jul 27 05:26:43 no. im not aligning the BUTTONS with the text view Jul 27 05:26:52 im aligning the textview with the buttons Jul 27 05:27:05 the origin for this view is buttohn 3a at bottom left Jul 27 05:27:12 everything else in the view is relative to that point Jul 27 05:27:24 or relative to something thats relative to that point Jul 27 05:27:58 the textviw is simply placed above button 1a and aligned with the top of the relative layout parent Jul 27 05:28:15 what i need to do is set its width and height. Jul 27 05:28:51 the buttons have to be at bottom left. this places them right under the left thumb Jul 27 05:31:43 also. this is in landscape mode. in portrait mode the tile map is at top for full width of view. buttons are at the bottom left again. and the textview is to the right Jul 27 05:31:46 you want to align leftedge of the tv with left edge of button 1a and right edge with right edge of button 1c, so use "android:layout_alignLeft="@+id/button1a" android:layout_alignRight="@+id/button1c"" Jul 27 05:31:54 NO way of kn owing how wide that needs to be there Jul 27 05:32:28 that will align my right edge of the text view with the LEFT edge of button 1c Jul 27 05:33:27 the doc says "Makes the left edge of this view match the left edge of the given anchor view ID. " Jul 27 05:33:39 so left edge of tv will go to left ege of button 1a Jul 27 05:33:44 yes Jul 27 05:33:59 thats right bt the right edge of the view will go to the LEFT edge of the button not the right Jul 27 05:34:53 how ? "Makes the right edge of this view match the right edge of the given anchor view ID. " right edge of the tv will go the right edge of button 1c.... Jul 27 05:35:06 according to the docs, it will align left to left of button1a and right of button1c Jul 27 05:35:15 also that will forward reference button 1a Jul 27 05:35:35 ^^ nexsoftware Jul 27 05:35:40 Did you ever post a picture so we can see what you are trying to accomplish? Jul 27 05:35:58 let me check that out then Jul 27 05:36:04 bit difficult to post a picture heh Jul 27 05:36:11 oh? Jul 27 05:36:14 gimme a sec. trying the suggested Jul 27 05:36:22 mark4:the docs will have everything you need Jul 27 05:36:33 relativelyout is really flexible Jul 27 05:36:37 hm, im loading an image from a web server Jul 27 05:36:43 of an unknown size Jul 27 05:37:26 and i want to resize the images so that theyre all the same size Jul 27 05:37:44 f2 ive read them. they tell you about 1/100 of the stuff you need to know. Jul 27 05:37:56 ive gotten more info from the 3 or 4 examples ive found Jul 27 05:38:05 the docs leave off alot of shit Jul 27 05:38:25 width filling the whole screen and height being max half the screen Jul 27 05:38:25 mark4: well they hit the nail on the head for the right to right edge and left to left edge thing Jul 27 05:38:35 how should i set the image parameters Jul 27 05:38:52 height and width that is Jul 27 05:39:01 ok yhea that did work Jul 27 05:39:15 except im still specifying a height of "incorrect number of dp" Jul 27 05:39:23 which is mysteriously working perfectly Jul 27 05:39:29 who says it's incorrect? Jul 27 05:39:31 let me try take a screenshiot Jul 27 05:39:37 i say its incorrect. Jul 27 05:39:39 lol Jul 27 05:39:43 the height of that view is not 10dp Jul 27 05:40:01 yet settin a height of 10dp makes the textview the right height. which is MORE than 10dp Jul 27 05:40:09 almost 96 actually Jul 27 05:40:22 im going to try do a screen shot and post it somewhere Jul 27 05:40:31 good idea :) Jul 27 05:40:42 can i wgetpaste a jpeg? lol Jul 27 05:40:48 eSatsu: whats the root of the layout? linearlayout? use width of match_parent, and layout_weight=1, give the other elements their own nested layout with layou weight of 1 Jul 27 05:41:16 how do i screenshot a window in linux? Jul 27 05:41:22 control print? Jul 27 05:42:22 beats me, I use windows mostly, never needed a screenshot on linux before Jul 27 05:43:00 print screen doesnt do a fucking thing lol Jul 27 05:43:01 dammit Jul 27 05:43:04 brb Jul 27 05:48:40 http://www.isforth.com/shot.png Jul 27 05:48:41 ok Jul 27 05:48:52 thats with left and right edge aligned as suggested and yea it works Jul 27 05:49:03 but ive set the height to 10dp which is just stupid wrong Jul 27 05:49:27 unless i can align the bottom edge of the text with th top edge of the button MINUS the padding Jul 27 05:50:16 and again.. let me take a screenshot of my current linear layout of the portrait layout Jul 27 05:50:36 f2prateek: thanks Jul 27 05:52:09 www.isforth.com/shot2.png is the portrait mode. no idea why the lower row of buttons are being distorted like that. they are not on my phone Jul 27 05:52:31 but the problem is, when i convert this layout to relative... how do i specify widht and height for the textview HERE! Jul 27 05:53:02 erm. push textview to bottom right of parent and align top and left. hmm Jul 27 05:53:04 that might work! Jul 27 05:55:35 ok how do i align the bottom edge of the text view to the top edge of button 1a and leave a gap between lol Jul 27 05:55:37 that didnt work Jul 27 05:57:15 yea. aligning the bottom of the textview to button 1a aligns bottom to bottom :/ Jul 27 06:00:11 layout_below? Jul 27 06:00:25 except its above lol Jul 27 06:00:43 if tv below button Jul 27 06:00:50 use either layout_bloew for tv Jul 27 06:00:54 *below Jul 27 06:00:56 I'm a little confused as to what is wrong with what you have now? In the screen shots... Other than the weird squished bottom button row. Why do you need to switch it to a relative layout? Are the screenshots not depicting what you want it to look like? Jul 27 06:01:00 or layout_above for button Jul 27 06:01:13 mark4: its all in the docs Jul 27 06:01:20 ok let me paste my xml. things are working 99% so i know im close Jul 27 06:01:39 f2prateek, ive read them. NONE of this was even close to obvious to me after reading them Jul 27 06:02:07 google documentation is awesome for someone who knows 100% of every single aspect of every single thing in android including all tyhe shit thats not documenyte4d Jul 27 06:02:09 layout_toRIghtOf, layout_bloew, these are pretty well explained Jul 27 06:02:27 i don't, i'm fairly new to android myself actually Jul 27 06:02:36 i got this Jul 27 06:02:40 this part i do understand Jul 27 06:02:49 i already had all that. just not 100% right Jul 27 06:02:52 you got me closer Jul 27 06:02:57 http://bpaste.net/show/37081/ Jul 27 06:03:06 the textview is the correct width now Jul 27 06:03:23 problem is. if i align its bottom with button 1a its butted right up against it Jul 27 06:03:29 padding does not do anything Jul 27 06:03:56 use margin, rather than padding Jul 27 06:05:57 ! Jul 27 06:06:07 thought i had tried that Jul 27 06:06:31 padding is outside and margin is inside? Jul 27 06:06:48 no Jul 27 06:07:51 margin is space around the view, padding is inset within the view Jul 27 06:08:04 which is what i just said but different :P Jul 27 06:08:07 oh Jul 27 06:08:12 erm. except i had it backwards Jul 27 06:08:24 lol Jul 27 06:08:28 :P~ Jul 27 06:08:39 i was close! :) Jul 27 06:13:09 Is a zero to five star rating system better or worse than thumbs up / thumbs down / star favorite Jul 27 06:13:57 depends on what it's being used for, I'd imagine Jul 27 06:14:08 worst imo Jul 27 06:14:17 ? Jul 27 06:14:26 i would rather get a 0 star rating than a thumds down "off with his head" :) Jul 27 06:14:45 its for in ap catagories Jul 27 06:14:47 *in app Jul 27 06:15:26 oh. i guess the thumbs down allows you to give the equiv of 0 stars maybe? Jul 27 06:15:45 i rated every signle GO application as malware with 1 star Jul 27 06:16:01 because they use airpush in go keyboard which is known to push malware Jul 27 06:16:12 did not know of a thumbs down rating Jul 27 06:16:51 http://xkcd.com/937/ :) Jul 27 06:17:03 i cart-blanch blacklist every app by any dev that uses airpush in ANY of their apps Jul 27 06:17:32 f2prateek: thank you for validating my soon-to-be doctorate thesis Jul 27 06:17:54 "There exists no situation in which a link to an XKCD comic is not appropriate." Jul 27 06:17:54 lol good xkjcd! Jul 27 06:18:15 xkcd is a fuckin genius Jul 27 06:18:29 better than user friendly and that was awesome :) Jul 27 06:19:58 someone should point that one out to google. im sure they are oblivious to this fact Jul 27 06:20:37 google tends to write pretty crappy stuff unless they manage to get some brilliant insight from a summer-of-code high-school kid Jul 27 06:20:51 or they buy-out a company Jul 27 06:21:42 not as bad as ARM writes Jul 27 06:21:57 honestly, i'm surprised google+ hasn't failed yet Jul 27 06:22:03 arm bought keil. arm told keil shitcan your awesome dev tools and market our shitty ones under your name Jul 27 06:22:04 erm... I got a 3* and a 4* this week because my weather app didn't warn people about a typhoon :) Jul 27 06:22:06 I guess people are desperate for a facebook clone that isn't facebook Jul 27 06:22:17 JakeWharton: happy to :) Jul 27 06:22:27 leeds did you advertise that it would? :) Jul 27 06:22:38 mark4: well, yes - it's a weather warning app Jul 27 06:22:50 and it failed to warn ppl? Jul 27 06:22:59 it did Jul 27 06:23:05 or they had their vol down low and missed it Jul 27 06:23:05 a Jul 27 06:23:10 and blamed you Jul 27 06:23:22 pragma-: i really like google plus, but the only people i know who use it are android develeoprs and photographers :( Jul 27 06:23:44 wait, there was a typoon??? crap, I'm going to go rate your app now. brb. Jul 27 06:23:47 there are different levels of warning - this week was the first time since 1999 they've issued the highest warning, and my app didn't recognise it correctly Jul 27 06:23:47 i trust any and all google servies about as far as i can throw the moon Jul 27 06:23:51 *typhoon Jul 27 06:24:13 the moon weighs nothing in space Jul 27 06:24:19 not true Jul 27 06:24:31 son, i have a degree in troll physics Jul 27 06:24:43 pragma-: and you're not trolling here, are you? Jul 27 06:24:48 u fall 20 feet on the moon and it will have the same physical affect on you as falling 20 feet on earth Jul 27 06:24:56 Troll, me? what? Jul 27 06:24:58 lol Jul 27 06:25:15 i have a degree in troll law Jul 27 06:25:23 specially constitutional law Jul 27 06:25:29 f2prateek, pragma-: as both an Android developer and an crappy photographer Google+ suits me well :) Jul 27 06:25:38 *a crappy Jul 27 06:25:41 which puts me orders of magnitude in advance of 99% of the asshats ruling on it Jul 27 06:26:05 JakeWharton, your a photographer too like romainguy? Jul 27 06:26:14 u trying to emulate him?? :) Jul 27 06:26:32 there is absolutely no comparison Jul 27 06:26:49 his photos are good but boring :P~ Jul 27 06:26:56 no naked chix in there at all! Jul 27 06:28:45 romainguy's photo are amazing, i havent actually seen any of Jake's though.. Jul 27 06:29:04 f2prateek, agreed Jul 27 06:29:18 ah, i havent been follwing Jake, thats the issue. remedying that now Jul 27 06:29:24 but you were supposed to fscking LAUGH at my humor dammit :P Jul 27 06:32:34 f2prateek: I'm only an academic (i.e. studying, not practicing) Jul 27 06:33:03 JakeWharton: taking classes in photography? Jul 27 06:33:09 no Jul 27 06:33:37 things I'm passionate about I cannot take classes in Jul 27 06:33:47 because they're illegal in most states? Jul 27 06:34:03 s/states/countries/ Jul 27 06:34:27 can a view in a relative layout forward reference the item its making itself relative to? Jul 27 06:34:35 are you implying that there are countries outside the US which matter? Jul 27 06:35:00 classical guitar, computer programming and shooting Jul 27 06:35:09 a degree in all 3 of those would be fun Jul 27 06:35:15 JakeWharton: there is no studying photography without practicing. its like learning a musical instrument. Jul 27 06:35:15 Leeds: only those which I want to conquer in my life Jul 27 06:35:26 leeds if they do they only matter RELATIVE to us :) Jul 27 06:35:46 g00s: perhaps exhibiting would have been a better term Jul 27 06:35:55 g00s Villa Lobos said it best.... the quickest way to destroy any musical ability you have is to go to music school Jul 27 06:36:10 i say thats true of EVERY skill you might learn Jul 27 06:36:43 this was a good book http://www.amazon.com/Passionate-Photographer-Toward-Becoming-Voices/dp/0321719891 Jul 27 06:36:53 "your first 10,000 pictures will be your worst" Jul 27 06:36:58 i have no degree in anything yet i can play villa lobos prelude #1 (amongst others) and have 25+ years as a consultant sw engineer Jul 27 06:37:00 :) Jul 27 06:37:29 g00s, its like "learn c in 24 hours" Jul 27 06:37:36 thats the primary reason i hate c Jul 27 06:37:43 mark4: you and c and forth Jul 27 06:37:49 what is like c in 24 hours ? Jul 27 06:37:53 I'm very much a learn-by-doing person rather than a learn-by-some-asshat-shoving-info-down-my-throat Jul 27 06:38:02 g00s: you should take pictures instead of reading about taking pictures Jul 27 06:38:11 romainguy_: i have been taking pictures Jul 27 06:38:14 :) Jul 27 06:38:14 JakeWharton, thats really the only way to actually LEARN anything Jul 27 06:38:37 I just smoke a little pot and enjoy the scenery instead of analyzing how to best capture it in a photograph. Jul 27 06:38:38 g00s: I don't know :) Jul 27 06:39:00 i'm not on google+ though so you wouldn't know :) Jul 27 06:39:13 i have no formal training as a guitarist and cant even read music Jul 27 06:39:21 yet https://www.youtube.com/watch?v=liz1yus87tg is the next thing im going to learn Jul 27 06:39:35 will take about a year for me to learn to play it very badly Jul 27 06:39:50 julian bream plays it way better than her but he truncates it :/ Jul 27 06:39:57 she plays the whole thing Jul 27 06:41:39 JakeWharton: do you think Steve Simon is an asshat? does it have to be so binary/ Jul 27 06:42:12 as a programmer, and with validation from evancharlton, binary is the only real opinion one can have on a subject Jul 27 06:42:31 i see Jul 27 06:42:37 man in middle of road gets rujn over Jul 27 06:43:21 for instance, i'm currently doing Objective-C and it is the single most disempowering experience I've had in my life with regard to programming languages Jul 27 06:43:34 therefore it's currently a 0 Jul 27 06:43:46 JakeWharton, u skipped vb :)\ Jul 27 06:44:16 heh, I took two semesters of VB in high school Jul 27 06:44:20 lol Jul 27 06:44:33 i actually really enjoyed it except for the 256 control limit on a form Jul 27 06:44:55 i wanted to make a march madness bracket app and it couldn't hold all of the TextFields Jul 27 06:46:06 I once made a j2me app, had it written and working, before I realised I would need something like 5MB of data to go with it, which was more memory than pretty much any phone had available to apps at the time Jul 27 06:49:28 how do I look for external sdcards ? Jul 27 06:49:32 so can a view thats being positioned relative to some itme forward reference that item in the xml? Jul 27 06:50:10 for example /mnt/sdcard on my S2 points to internal memory, it mounts the external sdcard on /mnt/scard/external_sd Jul 27 06:50:27 is it a standard convention of something samsumg cooked up ? Jul 27 06:50:55 mark4: I think you probably can, but you'd need to us @+id the first time you refer to an ID? Jul 27 06:51:23 Environment.getExeternalStorageDirectory() Jul 27 06:51:30 aha Jul 27 06:52:15 aha yea that compiled..lets see what it LOOKS like lol Jul 27 06:52:33 cuz that might be the important part... Jul 27 06:52:45 JakeWharton: that points to /mnt/sdcard on S2 Jul 27 06:52:51 which is on internal storage Jul 27 06:53:08 i would argue that the ROM is broken then Jul 27 06:53:17 no, there is no standard for external external storage as opposed to internal external storage Jul 27 06:53:28 well its the default S2 ICS build Jul 27 06:53:30 JakeWharton: /mnt/sdcard refers to the internal flash Jul 27 06:53:51 which meets Android's definition of 'external storage' Jul 27 06:54:07 hemanshu: Samsung is perfectly capable of (and very often is guilty of) breaking things Jul 27 06:54:43 ermahgerd fergmentertion Jul 27 06:55:31 JakeWharton: agreed, I'm looking for a way to detect this broken behavior across vendors, Jul 27 06:55:33 JakeWharton: how is that broken? Jul 27 06:56:01 it probably isn't. i'm not really paying attention Jul 27 06:56:11 i just saw an absolute path to the SD card Jul 27 06:56:12 ermagherd, I dern't alwerys read berks, but wern I der it's goosberms. Jul 27 06:56:18 haha Jul 27 06:56:32 Leeds: i think the assue is that galaxy s2 has both the galaxy nexus kind of storage and an sd card right? Jul 27 06:56:36 *issue Jul 27 06:56:43 ok. aligning bottom of X which is above Y with the top of Y doesnt seem to work Jul 27 06:56:46 :/ Jul 27 06:56:47 lol Jul 27 06:56:50 mount cmd seems to point to all mounted devices, Jul 27 06:57:10 f2prateek: it has internal external storage and external external storage... Android's APIs only handle a single external storage area Jul 27 06:57:40 Leeds: yeah i know, i think hemnshu wants the removable sd card thought, not the internal one as recognized by android Jul 27 06:57:59 f2prateek: right, but Android doesn't have a way to deal with that in the standard APIs Jul 27 06:57:59 however, with my "1337" android layout skillz, 3 large JD's might not be helping :) Jul 27 06:58:07 on second thoughts make that 4 Jul 27 06:58:32 Leeds: and thats where the issue is for hemanshu :) Jul 27 06:58:46 hemanshu: why do you want the external sd card directly though? Jul 27 06:59:19 f2prateek: one of my customer is copying the files in external DCIM folder and is asking why my app is not picking it up Jul 27 06:59:37 f2prateek: I'm not arguing, it's JakeWharton who randomly said it was broken :) Jul 27 07:00:01 turned out the Environment variable only points to /mnt/sdcard/ where as his files are on /mnt/sdcard/external_sd/DCIM/ Jul 27 07:00:29 so I'm looking for reliable way to detect the mount point of this external external sdcard Jul 27 07:00:41 Leeds: haha, sorry my bad then :) Jul 27 07:00:50 how do i align the bottom of a view A with the top of a button thats below it? Jul 27 07:01:17 its aligning nicely with the bottom of that button, obliterating same Jul 27 07:01:51 mark4:layout_above for view a Jul 27 07:02:07 hw can I detect display size in code? I basicly want to do this: https://developer.android.com/training/basics/fragments/fragment-ui.html but as addition to different xml layouts, I also want to change the code, so the user could swipe between fragments on handset. Jul 27 07:03:02 erm no. the item tahts above a is not relative to a perse Jul 27 07:03:11 its actually relative to parent top Jul 27 07:03:20 i just need to set the bottom of it to the top of button a Jul 27 07:03:43 Pitel: if you're specifiying two different layouts for when in tablet and phone, just check for the fragtment, if it eosnt exist, you're ion phone mode Jul 27 07:03:52 *doesnt *in Jul 27 07:04:06 Leeds: f2prateek Are you aware of any other vedor which exhibits this external external card behavior ? Jul 27 07:04:38 yea ive got 2 view that are being aligned wrong.. let me screenshot and past that an the xml Jul 27 07:05:27 hemanshu: not sure, to be honest Jul 27 07:05:48 hemanshu: probably lots, i would think quite a few phones come with an external sd card but have the internal sdcard thing as well, i know a lot of those are popular back home Jul 27 07:06:00 www.isforth.com/shot.png Jul 27 07:06:26 the tileview at top extends to the bottom of button 1a and overwrites it (and 1b and 1c) Jul 27 07:06:41 the textview to the right of the buttons overwritges 1c, 2c and 3c Jul 27 07:06:50 pasting xml brb Jul 27 07:07:11 http://bpaste.net/show/37085/ Jul 27 07:07:24 :( I guess I'll just end up walking over all the mounts on /mnt/ Jul 27 07:07:27 need bottom of tileview to align with TOP of button not bottom Jul 27 07:07:39 and need textview to align with RIGHT of button not left Jul 27 07:08:30 Drakonite: i hope this isn't you :) http://news.yahoo.com/blogs/sideshow/nebraska-man-rooming-40-deadly-spiders-invaded-apartment-183718274.html?_esi=1 Jul 27 07:09:05 thats an easy one to cure Jul 27 07:09:12 diatomacious earth will kill them all Jul 27 07:09:49 brown reculuses are scary tho :) Jul 27 07:09:58 i had a friend that was almost killed by *one* of these, fuck 40 in the same place :| Jul 27 07:10:24 death by brown reculuse bite isnt that common Jul 27 07:10:27 it can happen tho Jul 27 07:10:41 they are very timmid. Jul 27 07:10:43 timid Jul 27 07:11:02 well, he got necrotizing fasciitis from it too Jul 27 07:11:33 imk an arakniphobe tho. when i was a kid in madagasgar ther was a spider in our drivway. my mother threw a brush at it (dustpan/brush type). Jul 27 07:11:50 i remember the spider being about as big as the brush (span wise_ Jul 27 07:11:52 ) Jul 27 07:12:38 been freeeking terified of even the tiniest spiders since lol Jul 27 07:12:43 PANIC!!!!!!!!!!!!\ Jul 27 07:13:05 whats worse, C or spiders ? Jul 27 07:13:08 so can someone with a clue take a look at my screenshot and xml and tell me wtf id di wrong? Jul 27 07:13:10 c Jul 27 07:13:16 :) Jul 27 07:13:17 no contenst Jul 27 07:13:21 well Jul 27 07:13:23 c coders Jul 27 07:13:33 c isnt bad when the coder has a clue Jul 27 07:13:37 problem is none of them do Jul 27 07:13:56 i think all legacy coders need to be castrated so they cant procreate Jul 27 07:14:09 g00s: no, not in omaha :P ... though I killed a spider a lot like one of those the other day o_O Jul 27 07:14:47 Dragonene_, actually most spiders are considerd NON pests because they eat pests Jul 27 07:15:11 well, unless they go in your mouth while you're snoring Jul 27 07:15:13 gardeners love all spiders except the vegitarian ones Jul 27 07:15:36 I hate vegetarians because they eat the food of my food Jul 27 07:15:42 brown recluse are freaky. arguably the worst spider for humans Jul 27 07:15:45 or eat your lower lip while you sleep which im told the funnel spider in australia can do Jul 27 07:16:05 Dragonene_, ther are far more dangerous spiders out there Jul 27 07:16:06 very very nasty poison, and they love to hide in the type of places people tend to stick their feet in Jul 27 07:16:11 reculses are reclusive Jul 27 07:16:15 non aggressive Jul 27 07:16:21 I don't think Dragonene_ is part of this conversation :P Jul 27 07:16:50 black widdows kill more per year i think Jul 27 07:17:03 they are reclusive in that they like dark small places... shoes, bed sheets, and similar are some of their favorite places Jul 27 07:17:19 mark4: alignBottom means to make the bottom of *this* view align with the bottom of *that* view Jul 27 07:17:46 well as a kid in madagasgar we had centipedes. first rule before putting shoes on is tap the critters out Jul 27 07:17:58 so alignBottom="@id/btn1A" means "make the bottom of the tileView be the same as the bottom of btn1A" Jul 27 07:18:04 leeds how do i make bottom align with TOP lol Jul 27 07:18:34 mark4: centipede starts with 'c' so it has to be especially bad :P Jul 27 07:18:39 leeds i did similar things with the landscape layout and aligned perfectly Jul 27 07:18:42 erm yea true Jul 27 07:18:44 mark4: "above" Jul 27 07:18:53 im under the affluence of incahole remember :) Jul 27 07:18:57 g00s: c > java Jul 27 07:19:23 hehe, i'm just joking with mark4 … he hates c Jul 27 07:19:29 oh lol. i thought uy were telling me i had spelt it rong :)O Jul 27 07:19:40 i dont hate c perse. i mostly had c coders Jul 27 07:19:47 i think almost anything > java except VB Jul 27 07:20:03 fuck, even obj-c Jul 27 07:20:13 if/and/but loops nested to the umpteenth level. NO comments, clusterfuck bracing.... Jul 27 07:20:30 mark4: IIRC brown recluse has low fatality rate (for adults) with treatment, but even with treatment the venom will contiously eat your flesh for many months -- it can take well over 6 months for a bite to "heal" Jul 27 07:20:56 Dragonene_, yes. its a corrosive venom Jul 27 07:21:04 i didnt say it wasnt painful :) Jul 27 07:21:16 it usually doesnt kill you. you usually6 wish it did :) Jul 27 07:21:20 indeed Jul 27 07:21:41 that which doesnt kill you, probably makes you wish it did Jul 27 07:21:59 i feel that way about android Jul 27 07:22:00 and it's rather difficult to get bit by a black widow, which has milder venom anyways Jul 27 07:22:08 lots of both of those spiders where I live Jul 27 07:22:20 wher do u live? Jul 27 07:22:28 welcome to #android-spiders Jul 27 07:22:30 nebraska Jul 27 07:22:33 lol Jul 27 07:22:45 leeds how do i phix my xml? Jul 27 07:22:48 :) Jul 27 07:23:17 Leeds: g00s summoned me! Jul 27 07:23:20 i cant make it right of button 1c, below tileview Jul 27 07:23:25 Drakonite: :) Jul 27 07:23:29 because then i have no way to set its width or height Jul 27 07:23:31 mark4: your tileView is aligned to the top, left and right of the parent, and above 1c Jul 27 07:23:49 isn't it? Jul 27 07:24:05 tleview is top left of parent to set its position Jul 27 07:24:27 and right Jul 27 07:24:32 no? Jul 27 07:24:47 no Jul 27 07:25:06 what's on the right? Jul 27 07:25:06 erm tileview needs to be at top left of view. for width of view Jul 27 07:25:27 height nees to be set to 10dp above buttons Jul 27 07:25:33 right of what? Jul 27 07:25:34 what is to the right of the tileView? Jul 27 07:25:39 nothing Jul 27 07:25:52 so it's aligned with the top, left and right of the parent? Jul 27 07:25:57 www.isforth.com/shot.png Jul 27 07:26:04 yes Jul 27 07:26:21 bottom needs to be aligned with the TOP of the buttons minus 10dp Jul 27 07:27:22 start with the tileView, which is parentaligned left, right and top Jul 27 07:27:32 yes Jul 27 07:27:37 then button 1a is parentaligned left, below the tileview Jul 27 07:27:45 except the buttons n eed to be aligned with the bottom of the parent Jul 27 07:27:53 and that defines the HEIGHT of the tileview Jul 27 07:28:03 1b is to the right of 1a, below the tileview Jul 27 07:28:05 buttons need to be at bottom left Jul 27 07:28:08 we're talking about layout, not size Jul 27 07:28:13 k Jul 27 07:28:31 layout = size AND position Jul 27 07:28:34 i thought Jul 27 07:28:54 not in this conversation - we're talking about laying out children in a relativelayout Jul 27 07:29:08 kk Jul 27 07:29:37 ok so tileview is at top left and width == width of parent Jul 27 07:29:41 hihi Jul 27 07:29:52 buttons 1a 1 bnd 1c are below tileview Jul 27 07:30:10 correct Jul 27 07:30:45 k. 2a 2b and 2c are below 1a 1b and 1c... 3a 3b and 3c are below 2a..... Jul 27 07:30:51 yup Jul 27 07:31:11 except. how do i make sure 3a/b/c bottoms are aligned with the bottom of the view Jul 27 07:31:22 you set them to be parentaligned to bottom? Jul 27 07:31:27 because THAT is what defines the height of the tilevoew lol Jul 27 07:31:36 ! Jul 27 07:31:42 !!!!!!!!! Jul 27 07:31:44 the only things which don't touch the sides, and therefore don't get parentaligned, are 1b and 2b Jul 27 07:32:11 (aka 2b and not 2b, because you've got to say that, it's in the rules) Jul 27 07:32:56 ok. tile = parent top, left and width. 1a = below tile. 1b and 1c are right of 1a, below tile Jul 27 07:33:25 personally, I'd parentalign everything except - as I just said - 1b and 2b Jul 27 07:33:28 2a - 2c are parent lerft and below buttons above. likewise buttons 3a - c Jul 27 07:33:37 hmm Jul 27 07:33:54 the incahol isnt helping lol Jul 27 07:33:55 you can also top/bottomalign 1b/1c, 2b/2c and 3b/3c if you want Jul 27 07:33:59 but i think i get what your saying Jul 27 07:34:09 PARENT align everything thats at an edge Jul 27 07:34:21 and make the rest relative to its nearest neighbor? Jul 27 07:34:22 and then you need to flobblealign 3d with the foobarview and the btnbaz Jul 27 07:34:46 yeah, something like that Jul 27 07:35:06 kk. gueess i try fix that tomorrow on the sly at work! Jul 27 07:35:56 good plan Jul 27 07:36:01 cus all cognitive abilities (minimal at best) are b0red by copious doses of JD Jul 27 07:37:14 this is really a minor issue. i have to create a way of describing NPC's, their roming bounds and what they say when your there Jul 27 07:37:43 this is probably the biggest issue with this game. i dont want ANY typing required by the bplayer other than movement Jul 27 07:38:02 and the buttons of course Jul 27 07:39:09 so my apk is currently almost 400k in size. is that BIG? avg or kind a small Jul 27 07:39:20 cuz i got about 1/100 of the data i need done Jul 27 07:39:38 tho my map data will all be huffman encoded Jul 27 07:39:51 that's tiny, don't worry Jul 27 07:39:52 this so far is just the world map Jul 27 07:40:07 many games are into the 40MB+ range now Jul 27 07:40:35 aha Jul 27 07:40:37 cool Jul 27 07:40:50 you could always put your map data into an external package... Jul 27 07:41:28 i huffman encoded my maps and load them a block at a time. i only have 9 blocks resident at any on time (one block is 16x16 tiles) Jul 27 07:41:43 okay... anyway, /me afk now Jul 27 07:42:08 kk lol i was afk an hour ago lol Jul 27 07:42:18 under the affluence of incahol Jul 27 07:43:16 oh. the map data for the world, all towns cities and dungeohns etc is packed into a single master file Jul 27 07:43:37 i can bzip that file to make it smaller and unbzip it to /data/data/blah Jul 27 07:43:48 right now i just move it to there Jul 27 07:44:18 but ive got only the world map (5`1x256 tiles) and a single city Jul 27 07:44:38 thers going to be over 200 dungeound and over 100 towns/cities Jul 27 07:44:52 and all the NPC's foreach town/cuitty Jul 27 07:45:10 world and dungeon will only have random spanw other than bosses Jul 27 07:45:13 "Google, Facebook, eBay and Amazon have apparently set up the Internet Association to lobby the US government on issues relating to online business" … oh thats just great :| Jul 27 07:45:42 g00s they are trying to tax interweb purchases Jul 27 07:45:50 they need to to NOT fucking do that Jul 27 07:45:54 all voices of reason 9.9 Jul 27 07:46:21 in fact if i were voted dictator of the universe i would instantly cut 99% of the federal budgetn Jul 27 07:46:54 so vote for me for dictator of the universe Jul 27 07:47:08 no, i don't want to write forth Jul 27 07:47:19 i'm sure the dictator of the universe would demand tat Jul 27 07:47:31 actually i would also enact a law requiring anyone wishing to be a software engineer to serve a 10 year apprenticeshop Jul 27 07:47:33 ship Jul 27 07:47:49 during which time they may only code 100% pure assembler Jul 27 07:48:24 actually no. i would allow you to learn ANY language after your 10 year apprenticechip Jul 27 07:49:13 because only after you have coded asm for at least 10 years could you be even moderately competent in any other language Jul 27 07:49:43 and i mean that not as drunken bullshit humor too Jul 27 07:49:58 so vote for em~ Jul 27 07:50:05 me! Jul 27 07:50:27 technically interweb purchases are already supposed to be taxed, in many states at least. the issue is that retailers are not required to withhold sales tax for interstate purchases, you as an individual are expected to take care of it Jul 27 07:50:45 anyway, i bet if you did learn forth you would be a MUCh better coder in all other langujages Jul 27 07:50:54 or hate your life very much Jul 27 07:51:01 in 3 or 4 stats, not all Jul 27 07:51:09 but when i hear about Google and FB on the same lobbying team, i worry about privacy issues Jul 27 07:51:40 g00s i hear about google i instantly worry about them Jul 27 07:51:47 hi all Jul 27 07:51:48 If you have 2 devices, 16/9 and 4/3, which qualifiers to use to differentiate between the two Jul 27 07:52:13 googlesn dont be evil is a bullshit smokescreen Jul 27 07:52:33 they are the single most evil and intrusive megacorporation to have ever existed Jul 27 07:52:35 period Jul 27 07:52:56 mark4: what would the dictator of the universe do with them ? Jul 27 07:53:09 you must not be very familiar with other corporations then Jul 27 07:53:49 limit their ability to market research every signle user of every single one of their "services" and thus limit the data they sell to spammers Jul 27 07:53:56 and taht IS how they make their money Jul 27 07:54:09 Maziz: look at -long and -notlong Jul 27 07:54:29 i did, but seems 16/9 and 4/3 both will use -notlong Jul 27 07:54:38 Dragonene_, google is a HUGE data mining corporationg. but minding data is only 1/10000 of the issue Jul 27 07:54:50 Maziz: i'm not sure if that would work. i wondered about this the other day, googlers thought i was strange for it Jul 27 07:54:56 its being able to interpret that data and sell that interpretation Jul 27 07:55:01 i see Jul 27 07:55:23 any other suggestion beside -notlong and long Jul 27 07:55:39 according to www.startpage.com google can tell when one of their emplouyees is about to quit simply based on the wayh their mouse moves about the displayu Jul 27 07:55:45 mark4: again, your tab completion skills fail. but what I'm saying is, there are and have been companies that do the same kind of logging, but do everything they can to keep your personal information attached and are very evil with what they do with it. google at least anonymizes most of the stuff Jul 27 07:55:54 their data interpretation is scaryt Jul 27 07:56:11 welcome to the internets! Jul 27 07:56:19 Dragonene_, no. my ability to focus and type fail lol Jul 27 07:56:59 Drakonite, im a christian. i see satans work in almost everything google does Jul 27 07:57:13 but... read job and you will see its all to gods purpose Jul 27 07:57:30 im not paranoid about google. Jul 27 07:57:35 i trust god Jul 27 07:57:48 you're contradicting yourself. Jul 27 07:57:51 but that does not make goo;le not evil Jul 27 07:57:56 no im not Jul 27 07:58:02 yes, you are. Jul 27 07:58:08 mark4: http://www.youtube.com/watch?feature=player_embedded&v=_jtAnlejBs4 Jul 27 07:58:10 google is evil. google cannot be trusted Jul 27 07:58:23 i sincerely hope you're a troll Jul 27 07:58:36 but as hard as google works towards its own evil purposes the more it works for gods purposes Jul 27 07:58:48 you think google is evil because you "see satans work" ? ... welp, you have successfully convinced me you are not worth conversing with Jul 27 07:58:53 so you're saying god has brought evil upon mankind? Jul 27 07:59:00 why you say google is evil again Jul 27 08:00:11 no. you obviously need to read and study the book of job (pronounced jobe) Jul 27 08:00:40 i think god overdid it with job Jul 27 08:00:54 job? Jul 27 08:00:57 who's job? Jul 27 08:01:02 hehe Jul 27 08:01:39 oh ok Jul 27 08:01:42 old testament Jul 27 08:02:28 sorry Jul 27 08:02:29 Why hello! Jul 27 08:02:36 I can speak \o/ Jul 27 08:02:51 lol phew Jul 27 08:03:07 i couldnt see u in here or #gentoo so couldnt see where u were having the issue Jul 27 08:03:19 was goingn to ask one or other channel to voice u heh Jul 27 08:03:56 so how does job related to google's evil doing? Jul 27 08:04:03 the book of job is the second most scary book in the bible for me but also then one that gives me the most hope :) Jul 27 08:04:29 satan works his dees but only as far as god lets him and its always to gods end. Jul 27 08:05:03 always. so while google is evil god is the one thats in control :P~ Jul 27 08:05:47 is it because of privacy issue? Jul 27 08:06:01 if i wasnt drunk i would explaion in more detail about what i mean maziz Jul 27 08:06:14 drunk? Jul 27 08:06:20 there you do.. Jul 27 08:06:26 jack danniels does that to u :) Jul 27 08:06:26 do - go Jul 27 08:06:27 you need to place your trust in FSM's noodly appendages Jul 27 08:08:45 fsm? Jul 27 08:09:39 3am, drunk and i have more boring test shit tomorrow Jul 27 08:09:46 http://www.venganza.org/about/ Jul 27 08:09:48 i hate doing test shit Jul 27 08:13:12 ok well time to zone out Jul 27 08:13:27 heh, i thought fsm was finite state machine Jul 27 08:14:10 heh Jul 27 08:14:41 why not infinite state machines ? Jul 27 08:14:57 never understood that. seems an infinite one wud be more powerufl!!!!!!!! Jul 27 08:15:16 lol Jul 27 08:15:35 ... Jul 27 08:15:51 i'm sure forth damaged his head :) Jul 27 08:17:35 something did Jul 27 08:21:20 Can you please like this facebook fanpage of my new game? (will be released tomorrow, screenshots here: http://troubi.com/android-apps.php) http://www.facebook.com/TapTwice Jul 27 08:24:21 Is it possible to have a listPreference fill the preference-screen + make it searchable? I don't want it to be a dialog.. Jul 27 08:24:22 I don't understand that game Jul 27 08:24:49 you have to tap objects to keep themin the air :) Jul 27 08:24:56 sam which description did you read? Jul 27 08:25:03 I watched the video Jul 27 08:27:53 spobat: what tool did you use to record btw? Jul 27 08:29:03 the screencast i mean Jul 27 08:29:07 there's obviously some production effort in that game but honestly it looks like it's going to be boring after 2 minutes Jul 27 08:29:41 agreed Jul 27 08:31:41 Would be nice if it actually broke stuff in the room :P Jul 27 08:40:07 I has a question: I have an SQLite DB which is encrypted and I decrypt it during runtime. Decrypted bytes are stored in a byte array. How do I construct an in-memory SQLite DB from those bytes? Jul 27 08:56:50 i guess this is new ? http://developer.android.com/design/style/writing.html Jul 27 09:04:19 f2prateek yep, screencast was used. Jul 27 09:04:38 It's more a kids game, though. Events occur that make life "harder" :> Jul 27 09:04:52 g00s: its not new article Jul 27 09:05:03 hm Jul 27 09:05:25 I has a question: I have an SQLite DB which is encrypted and I decrypt it during runtime. Decrypted bytes are stored in a byte array. How do I construct an in-memory SQLite DB from those bytes? Jul 27 09:07:42 isn't this an error in section 4, "task last"? Jul 27 09:07:51 on the "task last", the task is actually at the beginning Jul 27 09:07:53 that is "touch next" Jul 27 09:08:05 Im referring to g00s link Jul 27 09:20:46 how can I decode a piece of audio data in memory to PCM format buffer? Jul 27 09:21:06 anybody did the similar thing? Jul 27 09:21:24 spobat: which one, got a link? the ones i used are so slow to record :( Jul 27 09:43:38 Hi, I'm still struggling making a custom pagerAdapter to switch a fragment by another and back again in a ViewPager Jul 27 09:43:54 anybody kind enough to help me on this ? Jul 27 09:45:21 actionbar sherlock has demo with paging fragments Jul 27 09:45:39 yes but not replacing fragments Jul 27 09:46:05 fragmenttransaction.replace() Jul 27 09:46:06 :) Jul 27 09:46:08 I have 4 fragments in my viewpager but the B fragment can be replaced by X and back to B again and back to X Jul 27 09:46:29 replace wants a containerViewId Jul 27 09:47:00 i saw a stackoverflow issue like this some minutes ago Jul 27 09:47:08 http://stackoverflow.com/questions/6987334/tabs-in-android-using-fragments Jul 27 09:47:10 is almost same Jul 27 09:48:01 will look thx, and I'm retrying replace too :) Jul 27 09:55:07 Hi. I'm new to android dev, and am having a problem with the HttpURLConnection API (the recommended way to connect to the network). Everything is fine until .getInputStream() is called on the HttpURLConnection object, when an IOException with .getMessage() == null is thrown. I guess getResponseCode() also internally calls getInputStream(), and it, too fails. Any insight? Jul 27 09:55:30 you do have Internet permission, right? Jul 27 09:55:40 yes :) Jul 27 09:56:38 setDoInput is true? Jul 27 09:56:56 yes Jul 27 09:57:17 hey what's the usual time after publishing something to gplay that it becomes searchable? Jul 27 09:57:59 Leeds, ixc: the read and connect timeouts are respectively 10s and 15s Jul 27 09:58:20 @ixc the post didn't help that much and replace is not working as I expect, the first change works but then I get a blank screen my guess is that the onCreateView of the fragment I'm trying to put is not called Jul 27 10:15:54 When I replace my fragment B by X, then X by B, then B by X I get the following msg : IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Jul 27 10:16:12 when replacing fragment in a viewpager Jul 27 10:16:15 any ideas? Jul 27 10:22:21 is there a way to make SQLiteDatabaseHelper just add its android metatadata to the database in onCreate? Jul 27 10:22:50 call [B's parent].removeView(B) after you've removed it from the viewpager Jul 27 10:34:09 hi Jul 27 10:34:48 i'm developing a http://wiki.python.org/moin/PyPiXmlRpc java client for an open source android application Jul 27 10:36:20 but they have at least 22.739 packages which means parsing an xml response of at least that number on nodes and i it seems to be "exploding" on the emulator Jul 27 10:36:57 they don't seem to support pagination, any suggestion on how to cope with the situation? Jul 27 10:38:43 zemanel: stream the response Jul 27 10:38:49 there are plenty of streaming xml parsers Jul 27 10:39:49 i'm using this library https://github.com/timroes/aXMLRPC/blob/master/src/main/java/de/timroes/axmlrpc/ResponseParser.java#L37 which parses the response from a InputStream Jul 27 10:40:24 yeah thats bad, it reads the entire response into memory Jul 27 10:41:08 developing a Pypi android app seemed a good idea until i got to this issue :-) Jul 27 10:49:25 While trying to connect using HttpURIConnection, the IOException is really SocketTimeoutException. But it's not clear why would I get a SocketTimeoutException as the endpoint I'm trying to connect to seems up. Jul 27 10:49:44 hi Jul 27 10:50:42 Does anyone what is the equivalent JDK Android version ? All new projects I create get set a java compiler version of 1.5 ... I thought it was 1.6 compatible Jul 27 10:53:47 I use maven and I set the java compiler to 1.6 in maven and eclipse takes it into account Jul 27 10:54:52 BenoitB: I've to manually set the version up to 1.6 Jul 27 10:55:32 event the Android Tools -> "Fix project properties" sets the version to 1.5 Jul 27 10:55:40 s/event/even Jul 27 10:55:54 yuizy but I'm using fragment so B's parent is the viewpager and to remove B from the viewpager i guess i do viewpager.removeView(B.getView()) Jul 27 10:56:11 which can drive you crazy with overrides and other things if you don't know where to look at Jul 27 10:56:12 yes xroberx I guess that's normal Jul 27 10:56:33 true Jul 27 10:56:48 <3 maven Jul 27 10:59:04 BenoitB: are you using the http://code.google.com/p/maven-android-plugin/ ? Jul 27 11:00:35 hiii all Jul 27 11:00:37 * mikedg slaps BenoitB in the crippler crossface Jul 27 11:00:47 hi juned Jul 27 11:00:56 i have question about file transfer in android Jul 27 11:01:09 anyone have idea about this? Jul 27 11:03:07 juned: doubt you'll get any sensible response to such a generic question Jul 27 11:03:38 how do you guys manage assets with Android Library projects ? with symbolic links ? Jul 27 11:04:38 @appel1 how do i ask question so i can get the response? Jul 27 11:04:46 juned: be more specific Jul 27 11:05:14 okay Jul 27 11:07:09 hey folks! Is there a way to learn more about why a process has died? I have a webview-based app that after some usage "dies" on JellyBean (logcat says process has died), without Android telling me "Unforuntately, your app has stopped". The issue does not seem to be present on ICS. Jul 27 11:07:25 do you have any tips on how to go about debugging this Jul 27 11:07:53 i have implemented the chat, which works fine but now i want to add the functionality of file transfer so one user can send a images and other media files. i have written piece of code to send the file but getting the error see my code : http://stackoverflow.com/questions/11666963/file-is-not-being-transferred-in-smack-api Jul 27 11:07:57 the app dies while it's in foreground Jul 27 11:08:03 p3sho: died while in the foreground? Jul 27 11:08:09 appel1, right Jul 27 11:10:26 hi can anyone please help? http://stackoverflow.com/questions/11686559/android-multipart-post-to-php Jul 27 11:10:38 appel1, could it be that the resources are insufficient? shouldn't some message appear in the logcat if that's the case Jul 27 11:11:28 p3sho: I'd think so, but maybe there are circumstances when you wont get that.. Jul 27 11:11:37 I see Jul 27 11:12:05 p3sho: is it easy to reproduce or random? Jul 27 11:12:21 it's random Jul 27 11:12:28 after 3-4-5 minutes of usage Jul 27 11:12:34 blows up Jul 27 11:12:44 happens only on JB Jul 27 11:13:20 appel1, it's random in the sense that it doesn't happen at the same spot in the app, but it always happens Jul 27 11:13:36 :\ Jul 27 11:15:45 zemanel Yes I am Jul 27 11:16:01 does anyone use Vim for android development? Jul 27 11:16:33 BenoitB: same Jul 27 11:16:41 :) Jul 27 11:20:47 Does anyone have a custom ViewpagerAdapter that allows you to replace fragment with new one and previous ones? Jul 27 11:21:05 I can't seem to make one that works 100% Jul 27 11:36:30 can you run an android avd without eclipse? Jul 27 11:40:46 How can I have use a listview in a preferencefragment, instead of ListPreference (which acts like a dialog?) Jul 27 11:41:06 I've managed to have a listview appear in the fragment, but how to properly put everything together..? Jul 27 11:41:35 also, populating the listview with data is done.. but not by using addPreferencesFromresource or whatever.. using an adapter. Jul 27 11:42:28 deebo: do you recommend an implementation of http://developer.android.com/reference/javax/xml/parsers/SAXParser.html then? Jul 27 11:42:30 so when user clicks in the listview, I manually store it to sharedpreferences.. probably not the way I should do it? .. but it works, and now I'm wondering how I can get back to the main preference-screen when user is done with this 'OfficePreferenceFragment' Jul 27 11:51:39 when I replace a fragment, the new fragment oncreateView method doesn't get called Jul 27 11:51:44 any way to force it? Jul 27 11:59:02 So why is this showing the whole meminfo? http://pastebin.com/EWk5cP09 Jul 27 11:59:45 Snoxie: what do you mean? Jul 27 12:00:47 I did this: int n = result.indexOf('\n'); String a = result.substring(0, n); String b = result.substring(n + 1); String output = "" + a + b; memoryInfo.setText("" + output); But it still shows the whole string? Jul 27 12:02:13 Snoxie: you split the result into two part, and then concat it. Then it should be the whole meminfo Jul 27 12:02:42 im trying to only show the two first lines Jul 27 12:03:00 Snoxie: you code doesn't work in this way Jul 27 12:03:17 Why not? Jul 27 12:03:35 Snoxie: String b = result.substring(n + 1); <- b will be the rest of the string after the first newline Jul 27 12:03:42 Snoxie: let say your result is "fklsdjfkl \n sdkfjkdsljf \nb fjsd \n", a = fklsdjfkl , b = sdkfjkdsljf \nb fjsd \n in your code Jul 27 12:03:48 How do i change that? Jul 27 12:03:56 I only want two first Jul 27 12:03:58 Snoxie: use split Jul 27 12:04:06 Snoxie: do something similar to what you do to find the first newline Jul 27 12:04:12 Snoxie: use split in string Jul 27 12:04:37 Snoxie: it returns an array of splitter string Jul 27 12:05:29 hm Jul 27 12:05:37 I think i figured it out Jul 27 12:05:43 Snoxie: and you might want to use StringBuffer when you read the string because the way you do it now is really inefficient =) Jul 27 12:09:24 Can someone recommend a good OpenGL ES book or online resource focusing on Android? Jul 27 12:10:48 <_99percent_> bacta you doing 2d or 3d games? Jul 27 12:11:29 2D primarily - games Jul 27 12:11:33 <_99percent_> i haven't read this but it looks like it would be good for both: http://www.javacodegeeks.com/2011/06/android-game-development-tutorials.html Jul 27 12:11:39 <_99percent_> if you're just doing 2d, take a look at andengine Jul 27 12:11:58 <_99percent_> andengine is basically a 2d game engine of sorts, not used it but it looks good Jul 27 12:12:02 libgdx is also good and has lots of example Jul 27 12:12:16 That site looks great Jul 27 12:12:37 I also want to learn general concepts around OpenGL too Jul 27 12:12:47 Might be a good opportunity to move up in my company etc. Jul 27 12:13:57 i think im going to use opengl on my game even if i dont have to, if anything just to get a much load as possible shifted over to the gpu Jul 27 12:14:33 equex: Hardware acceleration FTW :) Jul 27 12:15:50 I like that site Jul 27 12:15:58 But why does it consume 314 megs of ram? Jul 27 12:26:24 I am trying to split two strings but it shows the wrong part of the string i want to remove the first part not the last after the ":" http://pastebin.com/mCfx1fye Jul 27 12:27:04 Snoxie: consider using String.split Jul 27 12:27:21 in the navy Jul 27 12:27:32 How do i do it with the code i made? Jul 27 12:27:48 i like to be an asshole, so im just going to say this Jul 27 12:27:59 if you couldnt figure this out on your own, maybe you shouldnt be developing Jul 27 12:28:11 less rudely, please look at the documentation for String.split Jul 27 12:28:13 also, attach a debugger Jul 27 12:28:24 also, why do you even use b1? Why not just change the first argument to your next indexOf? Jul 27 12:28:59 I also notice that memFree is being made using 'n' Jul 27 12:29:07 which is no longer valid, since you're calling this on a substring Jul 27 12:29:17 you have several logical errors here. Jul 27 12:29:23 attach the debugger, and trace what you're actually doing. Jul 27 12:30:56 memtotalfinal = memtotal.split(":",-69)[0]; Jul 27 12:31:24 iswydt Jul 27 12:31:27 actually thats a little wrong since it's bad to have magic numbers Jul 27 12:31:36 but 69 is the most magical of all numbers Jul 27 12:31:41 how can 69 be wrong Jul 27 12:31:53 you're a married man, mikedg Jul 27 12:31:53 public static final int BOOB_SLICE=-69; memtotalfinal = memtotal.split(":",BOObB_SLICE)[0]; Jul 27 12:31:58 you now realize that you need to take what you can get. Jul 27 12:32:02 it also follows good naming conventions Jul 27 12:32:17 you made a typo there Jul 27 12:32:19 terrible coder Jul 27 12:32:21 F------ Jul 27 12:32:23 would not hire again Jul 27 12:32:25 eclipse would have caught it Jul 27 12:32:33 and autocorrected Jul 27 12:32:48 what if you already had a BOObB_SLICE declared? Jul 27 12:32:49 huh? Jul 27 12:33:01 you're literally the worst possible programmer mikedg Jul 27 12:33:03 you're like Jul 27 12:33:08 the platonic ideal of bad programmers Jul 27 12:33:19 you shouldn't actually exist; you should only be a thought exercise Jul 27 12:33:53 lint needs to put out errors when anyone uses a Handler Jul 27 12:34:00 unless they have a license to use a Handler Jul 27 12:34:32 does a license to thrill supercede a license to use a Handler? Jul 27 12:34:57 yes Jul 27 12:37:21 Is there a dedicated chat room for kindle fire dev? Jul 27 12:39:36 no Jul 27 12:39:42 well maybe but I don't know what it is Jul 27 12:39:58 woah woah woah Jul 27 12:40:01 what have i missed Jul 27 12:40:28 nothing go back to bed Jul 27 12:40:33 lol i wish Jul 27 12:52:35 How I can change the CalendarView Month text appearance and color? Jul 27 12:52:46 I could not find a property for that Jul 27 13:12:09 How I can change the CalendarView Month text appearance and color? Jul 27 13:15:14 if no one answers here, why not try StackOverflow? Jul 27 13:17:00 <_99percent_> is there a way i can get apps to stop cluttering the shit out of my sdcard? Jul 27 13:17:18 take out your SD card. Jul 27 13:17:25 <_99percent_> it's like everyone and their brother HAS to make a folder on my sdcard, and they can't just put it in a standard folder like "AppData" Jul 27 13:17:38 sorry bro Jul 27 13:18:16 leave them one star coments with threats Jul 27 13:18:28 I'm holding 4 stars back until you stop shitting on my sd card bro Jul 27 13:18:41 "Get off my SD card. I'll cut you." Jul 27 13:19:07 <_99percent_> one rating won't do it though Jul 27 13:19:15 <_99percent_> tbh it's google's job to fix that Jul 27 13:19:45 <_99percent_> they need to fork sdcard write permissions into two separate permissions, one for global write and another for writing to a directly specifically dedicated to storing app data Jul 27 13:19:56 <_99percent_> and then the app devs need to take advantage of that Jul 27 13:20:22 <_99percent_> directory specifically dedicated* Jul 27 13:21:58 that could be pretty difficult, sd cards are typically fat32, which has no permissions Jul 27 13:22:50 <_99percent_> android has permissions though Jul 27 13:23:04 <_99percent_> they can determine what folder the app is trying to write to Jul 27 13:23:14 <_99percent_> if it's a folder other than the one they're allowed, it won't allow it Jul 27 13:23:19 sure, if they'd like to rewrite the FS priece used to access the sd card Jul 27 13:23:48 <_99percent_> yeah idk what the source looks like so i wouldn't know how much trouble it would be, but tbh i don't think it would be too much trouble and it would probably be worth the effort Jul 27 13:24:21 it uses typical linux kernel FS modules Jul 27 13:24:41 just something else to fork and deal with merging in upstream changes Jul 27 13:38:44 <_99percent_> anyone here use intellij idea community edition? Jul 27 13:47:12 if anyone could help me, I posted my question on stack overflow... Jul 27 13:47:17 http://stackoverflow.com/questions/11689082/showing-dialog-from-android-application-object-or-need-routine-available-to-mul Jul 27 13:47:35 the question is essentially I need to call a routine that pops up a dialog from multiple activities Jul 27 13:48:07 when I call dialog.show() I get an error Jul 27 13:50:01 Someone already answered, but why does that even need to be in the application class Jul 27 13:55:27 GeeksOnHugs: you'll have to launch an activity whose only purpose is to show a dialog, and then finish itself when that's done. Jul 27 13:55:35 style the activity with NoTitleBar.Translucent Jul 27 13:55:45 make sure to handle config changes! :D Jul 27 13:56:14 why would you not just use an activity Jul 27 13:56:49 JakeWharton: am i blind or is there no rss/atom/whatever feed for your website? Jul 27 13:57:06 GeeksOnHugs: what I tend to do, is make a separate class (e.g. DialogTool) and make methods in there, say, public Dialog getDialogDeleteChecklist(Context context), and pass in the activity with the method. Jul 27 13:57:46 HDroid: which is great except that he doesn't have an activity. Jul 27 13:58:01 canadiancow|work: lets say that this is being launched from a Service. Jul 27 13:58:13 lov: It takes a FragmentActivity as parameter Jul 27 13:58:19 Same with onclicklisteners and onDismisslisteners, if they're different for every activity (sometimes they aren't, e.g. generic error dialogs that just have ok as action). Jul 27 13:58:40 lov: i mean style the dialog with Theme.Dialog Jul 27 13:58:41 err Jul 27 13:58:43 the actiivty Jul 27 13:58:50 Switching on instanceof on an Activity is world of hurt, IMO. Jul 27 13:58:53 ? Jul 27 13:58:58 why launch an activity to launch a dialog when you can just launch an activity Jul 27 13:59:01 HDroid: wat? Jul 27 13:59:13 canadiancow|work: if you feel like theming the thing to look like an AlertDialog, be my guest. Jul 27 13:59:18 Why launch an activity: void deleteChecklist(final FragmentActivity sender){ Jul 27 13:59:21 imo that's a pain in the dick; it's not just setting the theme to dialog. Jul 27 13:59:31 you have to match the default layout for the target device Jul 27 13:59:41 i suppose Jul 27 13:59:57 My experience with dialog-themed activities is that the lifecycle is easier to maintain, but it's hard to get the styling to look native in all cases. Jul 27 14:00:09 Especially since you don't have access to the titlebar. Jul 27 14:01:04 Also, Toast.makeText(this, e.getLocalizedMessage(), Toast.LENGTH_LONG * 4).show() Jul 27 14:01:09 LENGTH_LONG * 4? wtf? Jul 27 14:01:21 lol Jul 27 14:01:26 Persistent Toast! Jul 27 14:01:48 EngravedToast.makeText(...).show(); Jul 27 14:01:58 :P Jul 27 14:02:29 LENGTH_* aren't actually the durations.. They're just flags telling the platform which duration to choose Jul 27 14:04:43 lov i found the error only in debug mode this is the error E/AudioPolicyManager(92): getParamFromPolicy Jul 27 14:06:26 droidbuster: interesting Jul 27 14:13:19 lov but i have no clue about that error or how to fix it either ' Jul 27 14:14:13 looked around and what it says is in the dev docs mAudioManager = (AudioManager)mContext.getSystemService(Context.AUDIO_SERVICE); Jul 27 14:14:28 i have that :/ Jul 27 14:16:11 uh Jul 27 14:16:17 that line just gives you a reference to the AudioManager Jul 27 14:16:19 that's all. Jul 27 14:16:22 it doesn't DO anything. Jul 27 14:19:34 hello Jul 27 14:19:35 all Jul 27 14:20:19 SQLiteOpenHelper and android anybody know? Jul 27 14:20:39 lov: but each time i click i get the error hmm Jul 27 14:20:50 bingels: yes, there is a class by that name on android Jul 27 14:21:34 i need help with creating class entends SQLiteOpenHelper Jul 27 14:21:49 read one of the million and a half tutorials on the subject Jul 27 14:21:55 or ask a specific question Jul 27 14:22:18 like as HashMap with having methods: add, contains Jul 27 14:22:28 with store values in db Jul 27 14:24:51 10:22:15 < wongk> read one of the million and a half tutorials on the subject Jul 27 14:24:54 10:22:21 < wongk> or ask a specific question Jul 27 14:25:21 or blabber incoherently and get no help :P Jul 27 14:25:51 A very common choice Jul 27 14:26:03 lames Jul 27 14:26:17 iphone-fugs Jul 27 14:29:57 @lov sweet hx bro :-) Jul 27 14:30:22 thx Jul 27 14:39:43 Hello, I am trying to make a UI which consists of a list of text views side by side. Jul 27 14:40:10 Like this mobile site, http://wertagent.com/m/results.php?searchfield=Samsung Jul 27 14:41:17 http://abstrusegoose.com/474 Jul 27 14:41:37 Each list item should have a header, and 2 columns, used on the left and new on the right. Jul 27 14:42:54 And the issue is? Jul 27 14:44:09 I cannot succeed to do it with the approach I am using now. Jul 27 14:44:43 I think it is wrong, I am fishing for possible suggestions. Jul 27 14:44:54 Let me post my current solution. Jul 27 14:46:29 I would... make a vertical linearlayout with.. the header fill_parent, then 2x a horizontal linearlayout with 2 textviews, both weights on the textview set to 0.5. Jul 27 14:47:06 Add some fair margins, done. Jul 27 14:48:47 and what more? Jul 27 14:49:13 HDroid: wouldn't it be better to use just one linearlayout for the 2 textviews? Jul 27 14:49:17 http://pastebin.com/xSS89Hk6 Jul 27 14:49:19 anybody have exp. for working with SQLiteOpenHelper? Jul 27 14:49:27 My current implementation. Jul 27 14:49:49 rawroland: oh you only need a single row? Jul 27 14:49:53 Then yes Jul 27 14:50:05 bingels: you need to ask a specific question. Jul 27 14:50:24 bingels: half of the people in this channel have used SQLiteOpenHelpers Jul 27 14:50:36 HDroid: I was setting the weights to 1, maybe this was the source of my problems. Jul 27 14:50:37 SQLiteOpenHelpers are just convenience classes to handle smoothly upgrading Jul 27 14:50:42 I will try 0.5 Jul 27 14:51:06 need create db like as HashSet Jul 27 14:51:13 HashSet Jul 27 14:51:14 Using the ViewPager support class and Fragments is the most straight forward way to handle related info that can be "swiped" between, correct? Jul 27 14:53:06 android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed Jul 27 14:53:28 i gotted when tried add Integer value at db's table Jul 27 14:53:52 bingels: don't start randomly messaging people, ask in the channel. Jul 27 14:54:14 bingels: do you know what SQL and databases even are, first off? Jul 27 14:54:38 bingels: create a table whose primary key is unique Jul 27 14:54:43 add items to that table Jul 27 14:54:45 fin Jul 27 14:55:13 bingels: http://developer.android.com/guide/topics/data/data-storage.html#db Jul 27 14:55:16 read that Jul 27 14:55:18 then come back Jul 27 14:55:39 see also http://developer.android.com/resources/samples/NotePad/index.html and http://developer.android.com/resources/samples/SearchableDictionary/index.html Jul 27 14:57:40 http://pastebin.com/9hWTBb3n Jul 27 14:59:13 on addHash got E/Database(28395): Error inserting id=807682316 Jul 27 14:59:13 E/Database(28395): android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed Jul 27 14:59:33 what this can mean? Jul 27 15:00:41 any idea? Jul 27 15:05:26 http://pastebin.com/vs9faZtw - any idea how to solve the problem pls? Jul 27 15:08:01 bingels: it's because you're using Integer instead of int Jul 27 15:08:10 so you're passing an object Jul 27 15:08:22 actually Jul 27 15:08:36 it's probably because the key already exists Jul 27 15:08:48 I'm not sure but I'm pretty sure that PRIMARY KEY implies unique Jul 27 15:08:54 yes Jul 27 15:08:55 it does Jul 27 15:08:57 take a look at your current database, see if the key exists Jul 27 15:08:57 If I make regular repeting alarm with specific action what will happen if user fires intent with same action? Will it cancel the repetition or not? Jul 27 15:09:08 F1rstAid: nope Jul 27 15:09:11 nice Jul 27 15:09:16 I hoped it is like that Jul 27 15:09:30 yea lov either it already exists or it's null Jul 27 15:09:39 those are the only two constraints :) Jul 27 15:10:20 With sql i have big problems Jul 27 15:11:15 have i can modify my cod Jul 27 15:11:17 code Jul 27 15:11:31 pls pm Jul 27 15:13:34 is there a way to load images from eclipse so all formats are automatically generated? Jul 27 15:14:35 bingels: We have told you what the problem is Jul 27 15:14:41 bingels: we will not do your job for you. Jul 27 15:14:47 bingels: your job is to think Jul 27 15:15:01 bingels: if you do not know what "unique constraint" means, ask your team leader Jul 27 15:15:29 Using the ViewPager support class and Fragments is the most straight forward way to handle related info that can be "swiped" between, correct? Jul 27 15:15:42 bingels: do not just say "HAY SEND ME TEH CODES PLZ" in here because that is not acceptable. No one is going to do your job for you. Jul 27 15:16:03 i will Jul 27 15:16:04 $200/hour Jul 27 15:16:08 ok Jul 27 15:16:10 roudned up to the nearest half hour Jul 27 15:16:14 people will do your job for you, for outrageous rates Jul 27 15:16:18 canadiancow|work: half hour? Jul 27 15:16:23 im generous Jul 27 15:16:25 canadiancow|work: you should always ask for 2 hours up front Jul 27 15:16:29 omg its my first app Jul 27 15:16:32 bingels: and? Jul 27 15:16:40 my first app was hello world Jul 27 15:16:44 bingels: this isn't something special with android. Jul 27 15:16:50 this is a general constraint of databases Jul 27 15:16:52 it's special Jul 27 15:16:54 you would have the same problem with mysql Jul 27 15:16:54 sql Jul 27 15:16:57 no Jul 27 15:16:58 not special Jul 27 15:16:59 lol Jul 27 15:17:00 not at all special Jul 27 15:17:01 +1 Jul 27 15:17:03 :/ Jul 27 15:17:17 bingels: the point is that if other people fix your problems for you you don't learn anything from it Jul 27 15:17:23 SnakesAndStuff: yeah, that's probably the best way Jul 27 15:17:25 stop fighting and help me? :D Jul 27 15:17:28 EddieRingle why no updates to hubroid :( Jul 27 15:17:40 MDijkstra: I don't think he wants to learn. Jul 27 15:17:57 akls: no, but there are a number of tools to autoconvert images Jul 27 15:18:01 akls: from the command line Jul 27 15:18:04 lov: Thank you, much appreciated. Not looking for someone to code for me, just trying to make sure I'm not going down a path that will cause me to reinvent the wheel. Jul 27 15:18:09 haha Jul 27 15:18:11 imagemagick for example Jul 27 15:18:16 SnakesAndStuff: you caught the tail end of us yelling at bingels Jul 27 15:18:20 you're totally fine :) Jul 27 15:18:56 strange... no built it functionality for such a simply task.. Jul 27 15:19:17 some idea? Jul 27 15:19:22 how to fix code Jul 27 15:19:48 ok Jul 27 15:20:08 >:( Jul 27 15:20:21 akls: I'm not quite sure what you mean by loading images in eclipse so that all formats are automatically generated Jul 27 15:20:22 hey lov, while you're at it... Jul 27 15:20:29 akls: well, eclipse could be even more bloated than it currently is Jul 27 15:20:35 canadiancow|work: strongly tempted to finish your line with kicking you :P Jul 27 15:20:37 akls: but lets not wish for that Jul 27 15:20:45 lov, i know that's a possibility Jul 27 15:20:47 but you know who i want banned Jul 27 15:20:56 we've been over this. Jul 27 15:21:07 :) Jul 27 15:21:09 bans for EVERYBODY Jul 27 15:21:10 :P Jul 27 15:21:15 nah, most people are cool Jul 27 15:21:21 fack Jul 27 15:21:25 oh Jul 27 15:21:26 haha Jul 27 15:21:27 im safe Jul 27 15:22:05 lol, that was priceless. Jul 27 15:22:07 cows are acred, they're no longer allowed to IRC ;) Jul 27 15:22:15 sacred Jul 27 15:22:24 :D Jul 27 15:22:35 *allowed to be on Jul 27 15:22:47 *Cows Jul 27 15:22:50 irc is a verb, yo! Jul 27 15:23:07 Anyone with idea how to change the text color and size for month label of CallendarView. I couild not find any property or setter for this Jul 27 15:23:36 Sorry, my bad. I hold narrow views on the rules of nouns. Jul 27 15:24:51 wongk: It's my strict Puritan upbringing that discourages using nouns as unholy verbs. Jul 27 15:27:41 I have a view that I am setting to invisible, and isShown returns false but yet, the view remains Jul 27 15:28:06 And it only happens when the app returns from being paused Jul 27 15:28:30 So it works fine, and then I do something else, and come back and it has this weird bahavior Jul 27 15:28:36 Any suggestions? Jul 27 15:31:55 saecula invalidate current view/activity? Jul 27 15:32:34 parent* Jul 27 15:32:56 because you are hiding/showing part of it.. you should redraw it :) Jul 27 15:33:24 any body have idea how to show animated GIF on view???? Jul 27 15:33:36 lov :D Jul 27 15:34:30 or android have no support GIF yes? Jul 27 15:34:46 bingels: have you tried google? Jul 27 15:34:52 bingels: it's a very useful tool Jul 27 15:35:37 I may add that many people own their salary to google :D Jul 27 15:35:38 the _first_ hit for "animated gif android" on google is a 2(+) part tutorial for displaying an animated gif in android Jul 27 15:36:12 Movie?? Jul 27 15:36:24 omg he's eat many many memory Jul 27 15:36:31 @F1rstAid Nope still doing it Jul 27 15:36:38 and have't finalize by garbage collector Jul 27 15:36:54 and still in memory Jul 27 15:37:16 bingels: eh, of course you have to load the bitmaps into memory to display them??? Jul 27 15:37:44 unless you propose to decode each frame everytime you display it and throw it away, which eats CPU Jul 27 15:38:26 nope, Movie can't collected garbage collecter Jul 27 15:38:47 whatever you're trying to say is almost certainly wrong Jul 27 15:38:52 and app crashing when non-free memory have critical size Jul 27 15:38:56 on old phones Jul 27 15:39:31 anyone else understand what bingels is ranting about? Jul 27 15:39:34 Movie can't grabed by garbage collector Jul 27 15:39:55 hey any suggestions on how to make an app connect to a bluetooth a2dp adapter and transfer audio over it? Jul 27 15:40:08 appel1: not sure, but apparently he's not industrious enough to click links to the later approaches in the same tutorial Jul 27 15:40:11 and android 2.2 randomly playing music songs Jul 27 15:40:22 when player offed Jul 27 15:40:40 wth has that to do with displaying an animated gif? Jul 27 15:41:03 its bags of android Jul 27 15:41:19 bugs Jul 27 15:41:33 bags of android eh? Jul 27 15:41:40 I want my bag of android!! Jul 27 15:41:46 maybe stop using a >2 year old verison Jul 27 15:42:16 nooo Jul 27 15:42:25 2.2 its actual version Jul 27 15:42:38 and it was released in may 2010 Jul 27 15:42:40 and last for some china phones Jul 27 15:42:42 Hi all.. I'm trying to set up AdWhirl, but I keep running into this weird error: I/AdWhirl SDK(17676): Sum of ration weights is 0 - no ads to be shown Jul 27 15:42:56 ThomQ, i'd suggest contacting AdWhirl Jul 27 15:43:03 bingels: so it is most likely some china phone bug than and not an android problem Jul 27 15:43:19 how i can temporary disable admob showing ads? Jul 27 15:43:37 Hello! Why is my replaceall not working here: http://pastebin.com/gRC5nuPP prints like this: 04-01 00:33:18.034: I/System.out(2031): 7096 / 126684 kb used! Jul 27 15:43:57 appel1: china phones have you on the doorstep Jul 27 15:44:11 @ canadian: Already done, plus a stackoverflow question :) I was mainly wondering What ration weights mean Jul 27 15:44:57 yangchang leaved ))) Jul 27 15:45:09 there are many china phones on my doorstep Jul 27 15:45:11 ThomQ, it sounds like something adwhirl-specific, hence why i directed you there :P Jul 27 15:45:48 :D thanks though, you confirmed my suspicions a bit :P Jul 27 15:46:06 saecula well then I can`t help you. I think you may try to invalidate the view and the parent view/activity. Probably will work . If not I don`t have more ideas Jul 27 15:46:41 JakeWharton, saw you had a proposal for "Change Visibility of `PagerAdapter.DataSetObserver` to Public"...I Jul 27 15:46:43 whoops Jul 27 15:46:57 I'm trying to implemet your fix, but cant seem to figure out how to do it Jul 27 15:47:02 how i can temporary disable admob showing ads? Jul 27 15:47:22 in my hello world app Jul 27 15:47:22 bingels, set the visibility of the ad to invisible or destroy the adview.. Jul 27 15:47:40 no, without access to code Jul 27 15:47:50 without update code Jul 27 15:48:25 admob haven't option for stop showing ads Jul 27 15:48:29 its sad Jul 27 15:48:51 One option for stop showing ads Jul 27 15:48:55 its idiotis Jul 27 15:48:56 m Jul 27 15:49:31 bingels: what does this have to do with developing android apps? Jul 27 15:49:36 Why is my replaceall not working here: http://pastebin.com/gRC5nuPP prints like this: 04-01 00:33:18.034: I/System.out(2031): 7096 / 126684 kb used! Jul 27 15:50:01 hm Jul 27 15:50:26 admob support android Jul 27 15:50:37 g***e Jul 27 15:50:44 support admob and android Jul 27 15:51:00 which is excluding? Jul 27 15:51:10 Snoxie: because you throw away the string with the replaced content Jul 27 15:51:40 appel1 What? Jul 27 15:51:45 Snoxie: http://developer.android.com/reference/java/lang/String.html#replaceAll(java.lang.String, java.lang.String) Jul 27 15:52:26 because you replace space characters and not tab symbol Jul 27 15:52:52 or do trim() Jul 27 15:53:13 Hello fellow android developers. Jul 27 15:53:20 hello Jul 27 15:53:40 Oh thanks bingels! Jul 27 15:53:45 I need some guidance with converting my android 2 app to something that looks like Android 4 everywhere but still works from 2.1 upwards. Jul 27 15:54:11 What I had was a TabHostActivity, that contained a TabhostActivity, that contained some other stuff. Jul 27 15:54:23 UnbertKant use compatibility library provided by Google Jul 27 15:54:45 action bar tabs Jul 27 15:54:49 + fragments Jul 27 15:54:52 Now I use ActionBarSherlock and the first activity is a SherlockFragmentActivity that has the tabs in the actionbar and I converted the previous tab contents to fragments. Works great. Jul 27 15:55:04 Except I'm not sure how to convert the nested tabhost to a fragment(?) yet. Jul 27 15:55:21 no need for tabhost Jul 27 15:55:47 F1rstAid yes, I use the support library, actionbarsherlock, holo everywhere and maybe viewpager(if I need that one) Jul 27 15:56:03 So what do I change my TabHost to then? Jul 27 15:56:19 No wait that didnt help Jul 27 15:56:32 why do you need a tabhost? Jul 27 15:56:33 UnbertKant: I guess a fragmentpager Jul 27 15:56:48 what name of view like play market when swyping pages and have small line on top with page's names? Jul 27 15:57:13 i should probably stop talking, my understanding of action bar tabs is elementary, i've never actually used them Jul 27 15:57:15 So I convert the inner tabhost to a fragmentpager and the content (currently activities) to fragments? Jul 27 15:57:17 UnbertKant: If you're using actionbar tabs, there's no need for tabhost Jul 27 15:57:18 Snoxie: what the problem? Jul 27 15:57:45 SimonVT it's nested tabs, I converted the outer tabhost to actionbar tabs and wonder what best to do with the inner tabhost Jul 27 15:57:50 oO Jul 27 15:57:53 ack! Jul 27 15:58:00 nested tabs on mobile?! Jul 27 15:58:07 wongk: u sure? Jul 27 15:58:16 * SimonVT slowly backs out Jul 27 15:58:18 swyping tabs? Jul 27 15:58:21 am i sure about what Jul 27 15:58:33 Yes, it's for a gargantuan catalog. You browse a database with thousands of entries. Jul 27 15:58:39 Still shows the spaces after doing this: memfreefinal.replaceAll(" ", ""); Jul 27 15:58:40 what name of view like play market when swyping pages and have small line on top with page's names? ack? Jul 27 15:58:47 surely there's a better design pattern to use Jul 27 15:58:52 you're ridiculous Jul 27 15:58:56 snoxie - tab symbol "\t" Jul 27 15:58:58 Also, the GUI isn't up for debate, the customer demands it that way. Jul 27 15:58:59 siyb: there is no feed Jul 27 15:58:59 lol Jul 27 15:59:08 I agree that it's awful, but I have no choice. Jul 27 15:59:14 just assume i'm not talking to you, always Jul 27 15:59:19 hm Jul 27 15:59:37 what name of view like play market when swyping pages and have small line on top with page's names? Jul 27 15:59:38 UnbertKant: hmm, well, you could do something custom Jul 27 15:59:51 UnbertKant: that's going to be expensive Jul 27 15:59:52 So I go with Actionbar tabs that contain fragment pagers with a tabwidget, which contain fragments then? Jul 27 15:59:57 UnbertKant: swapping out fragments isn't very difficult Jul 27 16:00:20 use tabhost with activities Jul 27 16:00:27 UnbertKant: well no, there isn't much of a point keeping the old tab* stuff Jul 27 16:00:33 UnbertKant: you'll need some mock tabbar thing and you'll have to manuall swap out the fragments Jul 27 16:00:36 but I can't put a tabhost into the actionbar tabs, right? Jul 27 16:00:52 yes you can't Jul 27 16:01:06 UnbertKant: well, considering you simply have a 2-level navigation it might be easier to just do this custom Jul 27 16:01:08 the tabhostactivity? I thought that deprecated thing wasn't a proper fragment? Jul 27 16:01:16 yeah, it is Jul 27 16:01:22 disregard bingels Jul 27 16:01:27 he hasn't got a clue Jul 27 16:01:31 Well, it's actually 5 level navigation if you go to the bottom of it. Features 3 lines of tabs. Jul 27 16:01:44 clue?? Jul 27 16:01:51 (Action bar tabs, then normal tabs, then Play Store like swipable tabs...) Jul 27 16:01:56 t.t Jul 27 16:02:00 That sounds horrible Jul 27 16:02:02 UnbertKant: pff ;) Jul 27 16:02:03 holy terrible app design Jul 27 16:02:18 show us images Jul 27 16:02:29 on that note, time for lunch Jul 27 16:02:36 we can't talk about abstract thinks Jul 27 16:02:36 Yes, the whole team agrees on this, but the customer can not be reasoned with so he gets it that way. Jul 27 16:02:46 And I'm not allowed to show you screenshots :) Jul 27 16:02:50 UnbertKant: I'd do away with the actionbar completely Jul 27 16:03:02 No, Actionbar is explicitely required. Jul 27 16:03:06 That's like half the screen occupied by tabs Jul 27 16:03:11 Yes it is. Jul 27 16:03:12 and actionbar Jul 27 16:03:22 UnbertKant: well, what you'll have will look like an actionbar Jul 27 16:03:27 I feel sorry for you, man Jul 27 16:03:30 bigels: Still doesnt remove them: memfreefinal.replaceAll("\t", ""); memtotalfinal.replaceAll("\t", ""); Jul 27 16:03:38 it's just not the actual 'ActionBar' class Jul 27 16:03:41 Must be hell to maintain Jul 27 16:04:07 Snoxie: did not understand what the problem is Jul 27 16:04:10 It is. I found so many Android bugs it's not even funny anymore. Jul 27 16:04:33 Did you know that the light theme has white font on white background at one place? Jul 27 16:04:55 Or that the action bar jumps under the actionbarTabs when you hide the application icon? Jul 27 16:04:57 try .trim() Jul 27 16:04:59 So much nonsense. Jul 27 16:05:24 Hm, why did you suggest FragmentActivity instead of just Fragment? Jul 27 16:05:53 I mean, couldn't I put a fragment into an actionbar tab that contains a tab widget and the tab content fragments? Jul 27 16:06:08 Fragments in fragments aren't supported Jul 27 16:06:11 d'oh Jul 27 16:06:17 3 layers of tabs, hm.. Jul 27 16:06:28 bingels the spaces are still there Jul 27 16:06:31 yeah, I'd just have a linearlayout mimicking the look of a tabbar Jul 27 16:06:33 stack those Jul 27 16:06:50 what are the nesting rules for fragmentActivities? Jul 27 16:07:00 Don't do it Jul 27 16:07:04 and have one fragmentcontainer at the bottom which fills the space not occupied by the tabbar(s) Jul 27 16:07:17 count the number of spaces and try substring again. Jul 27 16:07:47 UnbertKant: multi-activity screens are almost entirely deprecated Jul 27 16:08:04 Your outer most tabs should probably be views removed/added by the activity Jul 27 16:08:19 The tabs in each of these views could consist of fragments Jul 27 16:08:32 the outer most tabs are the ones in the action bar? Jul 27 16:08:48 With each fragment having a viewpager/swipey tabs containing views (not fragments) Jul 27 16:08:53 Yeah Jul 27 16:09:40 Oh you mean the content of the outer tabs should be views? Jul 27 16:09:46 Yes Jul 27 16:10:20 the content of the middle tabs fragments.. and the contents of the swipey tabs views Jul 27 16:10:36 Horrible solution, but no nested activities, and no nested fragments Jul 27 16:11:14 what do you do when the tabs don't fit the horizontal space? Jul 27 16:11:29 They swipe like in the Play Store Jul 27 16:11:36 I mean, the actionbar tabs are going to be the issue with this approach.. Middle and swipey tabs are pretty standard, no issue there Jul 27 16:11:40 (only the lower row does that) Jul 27 16:12:48 But why can't I have the actionbar tabs contain fragments and these fragments contain the second row tab widget and content, which is also just views? Jul 27 16:13:07 You could do that as well Jul 27 16:13:12 I mean having the fragments at the top of the hierachy and only views all the way down. Jul 27 16:13:34 I'm asking because I don't understand how views could be at the top, if the action bar tabs usually contain fragments. Jul 27 16:14:05 There's nothing stopping you from using views in actionbar tabs Jul 27 16:14:05 Why isnt this working? http://pastebin.com/1UQaPzES It doesnt remove the spaces with replaceall? Jul 27 16:14:10 (I might be wrong here. Am I right in assuming that action bar tabs can only contain fragments? Or can you put everything in there?) Jul 27 16:14:10 Nothing stopping you from using fragments either Jul 27 16:14:23 well, in a sense the tabs are just buttons, they don't 'contain' anything Jul 27 16:14:26 But there's nothing usual about your layout :p Jul 27 16:14:27 output looks like this: 04-01 00:33:18.034: I/System.out(2031): 7096 / 126684 kb used! Jul 27 16:15:08 It's really just a question of if you want your activity to handle two layers of tabs, or you want your fragments to Jul 27 16:15:45 Well, on the top level, you choose between completely separate parts of the app, so I think fragments might make sense there. Jul 27 16:16:12 One tab contains the catalog, which adds two more tab rows. But these two rows are strongly related. Jul 27 16:16:43 Snoxie post result on pastebin Jul 27 16:17:20 bingels: The string "result"? :( Jul 27 16:17:22 :)* Jul 27 16:17:35 I dunno, if you have heterogenous content views within a 'category tab' then you're going to be in trouble if you can't use fragments there Jul 27 16:17:49 no output Jul 27 16:17:50 So I guess I'll have the second tab bar controll a view pager directly below it to switch between third tab rows and a second view pager below that. And have the third tab row control only the second view pager. Jul 27 16:17:56 no, output Jul 27 16:17:58 Or I quit my job and become a farmer. Jul 27 16:18:32 parse integer from string Jul 27 16:19:13 Well, thank you very much for your insight. I'll discuss the options with my colleagues and see where we go from here. Jul 27 16:19:24 Have a nice day! Jul 27 16:19:43 http://pastebin.com/NkB5SJUv Jul 27 16:19:50 bingels: http://pastebin.com/NkB5SJUv Jul 27 16:19:51 UnbertKant: downshifting it's not bad Jul 27 16:20:24 Snoxie: parse Integer from String Jul 27 16:20:34 What? Jul 27 16:21:07 hm Jul 27 16:21:21 it's java lang Jul 27 16:21:51 ah Jul 27 16:21:56 simple operation Jul 27 16:21:58 oh Int Jul 27 16:21:58 ah Jul 27 16:24:29 bingels force closes: 04-01 01:19:21.524: E/AndroidRuntime(2194): Caused by: java.lang.NumberFormatException: unable to parse ' 126684 ' as integer Jul 27 16:25:30 is there any particular trick to getting android apps to compile/launch faster on my device from within eclipse? It seems to really take a long time Jul 27 16:26:06 you can try to replace all white space character (and parse again) Jul 27 16:26:16 by reg expression Jul 27 16:26:35 or pay 250$ to lov and he take to you worked code Jul 27 16:27:25 Why the hell wont it replaceall :/ I dont wanna pay 250$ Jul 27 16:27:40 Tried .trim() on the string? Jul 27 16:30:04 can i temporary disable showing ads in admob? Jul 27 16:30:15 Doesnt work Simon :) Jul 27 16:30:21 :(* Jul 27 16:30:31 "reg expression" Jul 27 16:30:51 bingels: you couldn't when you asked less than an hour ago, they haven't added that option since Jul 27 16:31:33 Snoxie, java strings are immutable Jul 27 16:31:39 you need to do Jul 27 16:31:48 memfreefinal = memfreefinal.replaceAll("\t", ""); Jul 27 16:33:02 Yeah i just figured out lol Jul 27 16:33:03 :P Jul 27 16:33:34 Leeds: thx, you answer helped me Jul 27 16:33:59 Snoxie: Jul 27 16:34:02 oops Jul 27 16:34:03 hohoh Jul 27 16:34:14 MD What? :P Jul 27 16:34:35 nothing, still had your nick autocompleted and accidentally pressed enter Jul 27 16:34:36 sorry :p Jul 27 16:34:43 Ohx np Jul 27 16:34:49 oh* Jul 27 16:34:51 Leeds: any other ways to do that? Jul 27 16:46:07 hey guys Jul 27 16:46:21 can I have an information? Jul 27 16:46:24 pls? Jul 27 16:46:34 on? Jul 27 16:46:51 zebras have white stripes Jul 27 16:46:56 NO Jul 27 16:47:00 they have black ones Jul 27 16:47:03 1001010101010 Jul 27 16:47:04 they are actually white Jul 27 16:47:05 the time to elaboration for my dev account Jul 27 16:47:07 maybe, IDK Jul 27 16:47:26 um...I'm going to go with 42. Jul 27 16:48:17 it's about 4 days Jul 27 16:48:21 and nothing Jul 27 16:48:28 is still pending Jul 27 16:48:34 The time for what, exactly? Activation? Jul 27 16:48:40 App review? Jul 27 16:49:18 there is no app review :P Jul 27 16:49:46 whaat? Jul 27 16:49:48 activation Jul 27 16:49:57 IDK Jul 27 16:50:22 i'll put some jelly beans in google's ass Jul 27 16:50:45 what on earth is going on in here? Jul 27 16:51:49 ridiculousness, all morning Jul 27 16:51:50 LOL Jul 27 16:51:56 oh evancharlton Jul 27 16:52:01 you missed all the fun! Jul 27 17:00:15 Unholy Spirit; I just got my Google Play dev acount instantly Jul 27 17:05:39 Hypothetically speaking, Jul 27 17:05:57 if I had a working app and $25, how long would it take for that to get on the play store? Jul 27 17:08:52 CurlyBrace, my new apps go up in a few hours. A completely new signup? If I recall correctly it took me a few days in April 2011, don't know about now. Jul 27 17:09:47 how much is Seller Account on google play? Jul 27 17:09:49 That's pretty fast Jul 27 17:09:59 CurlyBrace: Probably within a day Jul 27 17:10:07 I keep being surprised at how much easier it is compared to iOS Jul 27 17:10:20 gotta buy a mac or do some serious hacking, $100 a year, etc Jul 27 17:10:26 less fragmentation though Jul 27 17:10:38 Rigorous app checking Jul 27 17:10:49 how much is Seller Account on google play? Jul 27 17:16:22 bingels: it's $25 to register for a developer account on google play Jul 27 17:16:29 $25 one time (not yearly) Jul 27 17:18:48 hmm, is there any callbacks i can register to know when my application terminates? Jul 27 17:19:04 like context.registercomponentcallback Jul 27 17:19:45 that wouldn't android will kill your app when it wants Jul 27 17:19:52 er, that wouldn't work Jul 27 17:21:48 anyone know to make a fragmentpageradapter remove the damn fragments on notifiydatasetchanged? Jul 27 17:22:45 Make your own adapter which does Jul 27 17:22:47 *the fragments that are no longer in the dataset? Jul 27 17:23:02 SimonVT, implement that in onDestroyItem or something? Jul 27 17:23:07 You have to do it when you remove the item from the dataset Jul 27 17:23:12 If it's added, remove it Jul 27 17:24:51 right so just use the fragmentmanager and remove them right there Jul 27 17:25:21 ondestroyitem isn't necessarily the right place to do it Jul 27 17:26:03 Since once you remove it, it is no longer managed by the fragmentmanager.. And any state isn't saved Jul 27 17:26:25 And ondestroyitem is called for fragments that are not the current visible, or any of the adjecent Jul 27 17:26:47 canadiancow|work: I figured the official app would hold people over while I work on a paying project :( Jul 27 17:27:12 Also, when you remove it, you'll have to make sure to force execution of the transaction before notifying the adapter.. Or it'll just fetch the old fragment with findfragmentbytag Jul 27 17:30:46 right Jul 27 17:31:33 so the fragmentpageradapter class itself uses "android:switcher:" + viewId + ":" + id for the fragment tag... Jul 27 17:31:56 anyone here ever get an email from Matthew Robertson over increasing app sales? Jul 27 17:32:53 fragmentpageradapter is only suited for a static list of fragments Jul 27 17:33:02 Copy it, and make it work like you want Jul 27 17:33:26 Or else it'll mess up Jul 27 17:37:33 Did i understand viewstubs correctly, meaning that i can load my premade XML into a viewstub, add some dynamic elements, and then inflate the stub in order to get my partially dynamic layout? Jul 27 17:37:34 I know that there is such as a thing as layout_column...do u all know if there is such a thing as layout_row so that I can place a view inside a particular row in a column? Jul 27 17:39:29 Uh.. just use a tablelayout, and put the view in a specific tablerow? Jul 27 17:40:09 SimonVT: you can't if it's the first view in the column Jul 27 17:40:32 SimonVT: I mean you can but it won't line up Jul 27 17:41:34 I don't follow Jul 27 17:45:09 SimonVT: I wish I could share my shreen Jul 27 17:45:12 *screen Jul 27 17:45:19 hah EddieRingle. official one isnt great either Jul 27 17:45:25 err Jul 27 17:45:27 s/either// Jul 27 17:45:32 canadiancow|work: starting to see that Jul 27 17:45:59 Hubroid had a donation version in the past but it was nowhere close to supporting me like a real job would Jul 27 17:46:26 the amount of attention GitHub brought to their official app is something I wish they offered to third-party clients as well Jul 27 17:48:07 Any suggestions for diagnosing why my code is raping the battery? I'm doing BT SPP rfcomm, gps, and maps. I've got the GPS update set to 5 seconds (and I can see the GPS ticking on regularly, not staying on). The rfcomm stuff is intermittent. I'm not holding wakelocks, not holding wifi open Jul 27 17:49:19 EddieRingle if you could allow connecting to an enterprise github server Jul 27 17:49:26 like something that isnt http://www.github.com Jul 27 17:49:32 right Jul 27 17:49:39 that would be aweosme too Jul 27 17:49:40 :) Jul 27 17:49:42 sure I have plenty of people to test that by now Jul 27 17:49:51 one thing even enterprise github doesnt offer is submodule linking Jul 27 17:49:56 err Jul 27 17:49:59 submodules on other github instances Jul 27 17:50:11 eh wot? Jul 27 17:50:11 so if i have the facebook sdk as a submodule, its hosted on the public github Jul 27 17:50:13 nm Jul 27 17:50:19 get enterprise github working and we'll talk ;) Jul 27 17:50:23 or yours is open source, right? Jul 27 17:50:29 of course Jul 27 17:50:43 you mean how the web interface links git submodules to their respective repositories? Jul 27 17:51:27 yea Jul 27 17:51:33 canadiancow|work: I don't even see any documentation for connecting with enterprise installs Jul 27 17:51:40 EddieRingle its the same api Jul 27 17:51:42 how can i add buttons to a notification just like the google play music app does? Jul 27 17:51:42 you just need the hostname Jul 27 17:51:46 ah Jul 27 17:51:47 easy enough Jul 27 17:51:50 yep :) Jul 27 17:52:02 I was in the middle of a refactor when I last checked Jul 27 17:52:32 I'll just include a checkbox and text field for the hostname on the login screen or something when you add a new account Jul 27 17:52:56 :) Jul 27 18:01:46 is there any way to check if a bitmap has been set to an imageview via .setImageBitmap(bm) ? Jul 27 18:02:36 probably not. Jul 27 18:02:46 does it matter what the underlying resource is? Jul 27 18:03:29 i need to know if i have added an image or if the imageview is empty Jul 27 18:04:32 http://developer.android.com/reference/android/widget/ImageView.html#getDrawable() Jul 27 18:07:32 Anyone know how to make ubuntu 10.04 register the Nexus 7 Tablet so that eclipse can deploy my app to it? I've already modified my udev rules and restarted the udev service. Rules: SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" Jul 27 18:09:09 lov: i'll check it out Jul 27 18:10:07 Hello, has anyone tried to work with multiple phones connected to ADB? I seem to be having a lot of connectivity issues.. phones randomly drop from the list of devices even though they're still connected and I have to unplug them and plug back in to see them again Jul 27 18:10:08 how do you copy paste from regular browser to sdk browser in emulator Jul 27 18:10:48 can i disable whatever clears the screen black between my splash theme and first opengles frame of my game? Jul 27 18:11:18 and is there another IRC chat where ADB devs like to be Jul 27 18:14:34 Hi. In a logcat message like I/ActivityManager( 585): Starting activity: Intent { action=android.intent.action...} what does the 585 in parentheses represent? I thought it was the Java thread id or something like this, but it seems to be something else. Jul 27 18:15:09 linux process id (PID) ? Jul 27 18:15:16 process ID i think Jul 27 18:15:21 yeah Jul 27 18:15:33 SuD: sonOfRa: thanks, I guessed that. How does this change in the middle of an application? Jul 27 18:15:49 maybe the application died, or there are multiple instances? Jul 27 18:16:17 SuD: right. thanks, let me make sure that is not the case Jul 27 18:18:22 really? Jul 27 18:18:32 i need to use fucking ssh and telnet to copy paste into the emulator Jul 27 18:18:33 what a joke Jul 27 18:19:21 I/ActivityManager( 1740): Starting: Intent { act=android.intent.action.MAIN <-- all my ActivityManager logs so far are from pid 1740 (process "system_server" according to ps) Jul 27 18:19:24 anyways. what's the best way to play sound in android pre froyo without html5, flash, or native Jul 27 18:19:34 not that i expect this to be possible in this framework Jul 27 18:21:17 dogarrhea2: clipboard is a software object, it cannot be virtualized. They should create a software piece to make it pass from/to VM to PC. Jul 27 18:21:42 that would work on real phones too, maybe it exists already Jul 27 18:21:55 android = new microsoft browser wars int he making. Jul 27 18:22:10 SuD: thanks, there were indeed multiple instances running. Jul 27 18:22:27 anyways, it's going to be a deal breaker if i can't play sound without native/htm5l/flash Jul 27 18:24:11 https://play.google.com/store/apps/details?id=com.dexterltd.copy_clipboard_phone_computer Jul 27 18:24:31 LOL Jul 27 18:24:35 4€? Jul 27 18:26:46 are there other ways of playing sound without all those methods? Jul 27 18:27:45 how do you zoom out of android without touchscreen Jul 27 18:28:35 without multitouch or without touchscreen at all? Jul 27 18:29:14 yes Jul 27 18:29:20 this development environment is so useless Jul 27 18:30:00 yes to what? what devel environ? Jul 27 18:30:28 he probably means the android emulator Jul 27 18:30:36 which is, in fact, quite useless :> Jul 27 18:30:51 there is touch in the emulator, so you must be referring to multitouch Jul 27 18:31:56 how do you emulate multitouch with a mouse? sometimes you really need a phone to develop Jul 27 18:32:34 get a phone Jul 27 18:32:39 the emulator is not useless; it's very useful to test on hardware that you don't have Jul 27 18:32:45 so.. it's gonna cost 1000$+ to target multiple useless buggy platforms Jul 27 18:32:45 you'll get shit done 100x quicker Jul 27 18:32:49 e.g. if you need to test against 4.1 but only have a 2.3 phone Jul 27 18:32:54 dogarrhea2: yep, that's exactly it. Jul 27 18:32:57 dogarrhea2: better go back to iphone Jul 27 18:33:26 yup, a multitouch enabled phone costs 1000$+ nowadays Jul 27 18:33:46 yes. since i don't want to wait hours and hours loading different useless roms and potentially bricking a phone Jul 27 18:34:01 wtf phones are you looking at Jul 27 18:34:03 that's NOT faster. how do you think you would target multiple os platforms? Jul 27 18:34:06 uh Jul 27 18:34:08 seriously? Jul 27 18:34:13 android is very backwards compatible Jul 27 18:34:20 generally you don't have to do any porting work at all Jul 27 18:34:32 i have 1 device on 2.2, one on 4.2 Jul 27 18:34:33 yes. since froyo doesn't do html5 and later versions do? Jul 27 18:34:35 s/generally/only if you do something wrong/ Jul 27 18:34:35 thats all you really need Jul 27 18:34:50 every version has some shitty bug that needs a workaround it seems like Jul 27 18:34:50 dogarrhea2: if you need HTML5, you have to set a minimum version high enough that phones at that level will have it. Jul 27 18:35:02 also, good fucking luck when it comes to webview implementations of apps Jul 27 18:35:14 that's by far the buggiest way to write an app Jul 27 18:35:16 so basically, android is like IE6 Jul 27 18:35:29 in the same way that buying a computer is like buying IE6 yes Jul 27 18:35:45 there is a workflow issue when you require a user to download a native app Jul 27 18:35:47 of course, if your app isn't just a wrapper around a webpage, things get a lot smoother. Jul 27 18:35:58 dogarrhea2: are you writing a website or an app? Jul 27 18:36:07 it HAS to be a website per requirements Jul 27 18:36:20 the higher ups say that requiring a download sends people away from our site Jul 27 18:36:22 which it will Jul 27 18:36:24 then you're doing it wrong Jul 27 18:36:38 i'm not doing it wrong. Jul 27 18:36:43 a laggy web app on a mobile device will send people away from your site Jul 27 18:36:51 well, that's fair, but it really depends on what your product actually DOES. Jul 27 18:37:22 generally, it's best to tell users with a splash page "Hey, welcome to our site. We can show you a web view, but it's better if you download our app". And then they can either click alink to market or click to continue to your site. Jul 27 18:37:34 dogarrhea2: http://spokenpic.com/es/clips/ this does sound on html, not sure if works on pre-froyo Jul 27 18:38:48 anyhoo, I don't envy you; mobile web dev sucks. Jul 27 18:38:55 all i'm really hearing is that things are like internet explorer 6... work around + work around + work around. we all know where this went Jul 27 18:39:08 Does anyone have any adb development experience (or know where I can find someone who does)? Jul 27 18:39:25 no one wants to write two versions of desktop apps.. obj c and native Jul 27 18:39:27 i haven't experienced much fragmentation in terms of development between api 8-14 Jul 27 18:39:32 IE6 Was a classic. Jul 27 18:39:32 uh Jul 27 18:39:40 dogarrhea2: why are you even writing an Obj-C app? Jul 27 18:39:44 i'm not Jul 27 18:39:45 why not just have those users go to a website? Jul 27 18:40:02 these are all questions answered by our higher ups Jul 27 18:40:06 who analyze browsing behavior Jul 27 18:40:38 what will you do with people that are actually use IE6, workaround or declare deprecated, that's it Jul 27 18:40:59 yeah, basically that. If the user's device has a browser that's too old, there's not a lot you can do. Jul 27 18:41:04 tell them to install chrome frame Jul 27 18:41:25 ie6 isn't really a problem. 2.3 and a few other versions are significant Jul 27 18:41:31 there's a lot of stuff going on here Jul 27 18:42:00 people are more engaged when using an app then a website Jul 27 18:42:05 i understand your point that people with relatively recent phones are stuck in android 2.1 with its bugs Jul 27 18:42:12 and even more engaged when its actually an app Jul 27 18:43:55 CallumTaylor: that's not up to me to decide Jul 27 18:45:38 here's the reasoning (yes i tried to say "lets do native it's better"): "why make the user download one app per url?" Jul 27 18:45:56 one for amazon.com one for slickdeals.net one for whatever site that's supposed to make money Jul 27 18:46:27 one per Jul 27 18:46:27 wait. Jul 27 18:46:30 what Jul 27 18:46:33 wat Jul 27 18:46:42 .... what exactly DOES your website do? Jul 27 18:46:44 wat Jul 27 18:46:52 it's not really a website per say. Jul 27 18:46:55 .... Jul 27 18:46:57 are you talking about multiple app stores? Jul 27 18:46:58 it's advertising, isn't it. Jul 27 18:47:05 it's a widget that shows up on cross domain sites Jul 27 18:47:18 ok. Jul 27 18:47:31 so basically you're writing advertising. Jul 27 18:47:38 yeah, ok, I can understand why you don't want to develop a native app Jul 27 18:47:53 well, best of luck. Jul 27 18:48:07 I can't promise you a great time; android is definitely inconsistent from the browser side. Jul 27 18:48:20 hurray. Jul 27 18:48:46 and i believe the last stats i saw showed opera being used more than the android browser Jul 27 18:49:14 and then there's chrome and firefox Jul 27 18:49:22 woo! Jul 27 18:50:05 ^^ Jul 27 18:50:25 there's dolphin browser, not sure if much different Jul 27 18:50:43 If I'm developing an app for multiple languages, do I have to put ALL resources in a separate folder for each language again? Considering some of the images I am using, those do not need any localization. Will the application automatically fallback to the version in values, if it cannot find values-en or similar? Jul 27 18:51:12 sonOfRa: correct. Jul 27 18:51:20 generally, put your english in values Jul 27 18:51:26 and then other languages in values-es, values-de, etc Jul 27 18:51:34 yeah, that's what i was thinking, thanks Jul 27 18:51:35 same thing for drawables, if you have images with text, etc. Jul 27 18:51:58 generally, for translating languages, only your strings.xml file needs to go into different buckets like this Jul 27 18:52:02 your layouts, etc all stay the same Jul 27 18:52:06 yeah Jul 27 18:58:43 can you have the actionbar menu text and different color from split actionbar menu text? Jul 27 19:00:13 hmmm. wait for users to buy a new galaxy s-two billion seems to be the only thing to do for android dev heh Jul 27 19:00:53 would you just shut up already Jul 27 19:00:56 im tired of your shit Jul 27 19:01:29 dogarrhea2: to be totally honest, the rest of us are doing native app development where (for the most part) things are sunshine and rainbows in a land of well documented apis and bug reports. Jul 27 19:01:51 as such, backwards compat is a really minor issue for me Jul 27 19:02:13 canadiancow|work: you're tired of me having a real job that pays. Jul 27 19:02:31 canadiancow|work has a job that pays, just 40% less than it did a week ago :D Jul 27 19:02:38 lol! Jul 27 19:02:41 ... Jul 27 19:02:45 :D Jul 27 19:02:57 still make more than you! Jul 27 19:02:59 OHHHHH Jul 27 19:03:01 :9 Jul 27 19:03:04 :( * Jul 27 19:03:05 snap! Jul 27 19:03:06 buuurn Jul 27 19:03:06 not sure you do :> Jul 27 19:03:07 ;) Jul 27 19:03:15 you told me your salary once Jul 27 19:03:17 ;) Jul 27 19:03:22 I told you my salary Jul 27 19:03:26 that didn't include benefits or bonuses. Jul 27 19:03:30 fair Jul 27 19:03:34 what did I walk into this friday afternoon…. Jul 27 19:03:38 :)))) Jul 27 19:03:47 #android-shitstorm Jul 27 19:03:57 that's how we role Jul 27 19:04:04 roll, too Jul 27 19:04:21 roling Jul 27 19:04:39 troll. Jul 27 19:04:50 yes dogarrhea2, you are Jul 27 19:04:52 now gtfo Jul 27 19:05:24 is there a guideline from Google about app pricing strategy? Jul 27 19:06:06 fuck it Jul 27 19:06:07 its 8pm Jul 27 19:06:08 I'm going home Jul 27 19:07:16 Sicp: probalby not, but theres IO sessions about measuring the value of your app Jul 27 19:07:24 ok Jul 27 19:08:19 I thought everything in google play is free. Jul 27 19:08:23 lol Jul 27 19:08:56 whis hit was, i'd have that gnex for sure ;) Jul 27 19:09:16 aw what. trying to setup ADT on my other machine, getting this error: Jul 27 19:09:18 Cannot complete the install because one or more required items could not be found. Jul 27 19:09:18 Software being installed: Android Native Development Tools 20.0.2.v201207191942-407447 (com.android.ide.eclipse.ndk.feature.group 20.0.2.v201207191942-407447) Jul 27 19:09:18 Missing requirement: Android Native Development Tools 20.0.2.v201207191942-407447 (com.android.ide.eclipse.ndk.feature.group 20.0.2.v201207191942-407447) requires 'org.eclipse.cdt.feature.group 0.0.0' but it could not be found Jul 27 19:09:51 sonOfRa: looks you're setting up the ndk not sdk Jul 27 19:10:19 I am installing both, just like i have on my other machine Jul 27 19:10:37 sonOfRa: you might be missing the default eclipse repositories Jul 27 19:10:46 cdt is the c/c++ tools, isn't it? Jul 27 19:10:56 install that Jul 27 19:12:17 alright, ill try to install those first Jul 27 19:12:53 I'm looiking for a security expert that has experience with mobile programming (android based), msg me for more info. Jul 27 19:13:20 eh, more missing dependencies Jul 27 19:13:34 guess i'll roll without native developing for now and mess with that later Jul 27 19:14:30 thc: no recruiting, please Jul 27 19:15:32 Anyone into actionbar theming? I'm trying to get text color for menu items themed separately from when there in the actionBar and when they're in the split bar, but despite the fact that theres a split bar theme it seems to use actionMenuTextColor….is this a limitation or am I doing something wrong? Jul 27 19:15:49 thc: how much you payin? Jul 27 19:16:29 why you gotta poke at it :P Jul 27 19:16:37 hey, I'm trying to crush a bug where occaisionally when I start a service, the phone will reboot itself. Any tips for how to track this down? Jul 27 19:20:20 Hi, I'm trying to make a custom boot animation for my phone and it keeps just showing a black screen. If anyone can help me out it'd be greatly appreciated. Jul 27 19:21:08 rainbowftw: try #android-root; it's app-dev here Jul 27 19:21:27 alrighty, thanks Jul 27 19:22:07 zambo: Is it a full watchdog/hw reboot, or is it just rebooting android? (you could adb into it and see if adb survives the crash) Jul 27 19:22:36 zambo: if adb survives, it's crashing the android layer but not the phone hw, and you can look at dmesg from adb shell, and adb logcat Jul 27 19:23:12 zambo: those bugs suck ass, especially when it ends up being an OEM bug. Jul 27 19:23:32 "Whoops the MotoMusicPlayerService crashed and brought down system_service! good luck fixing that!" Jul 27 19:23:34 I'm paying well I think Jul 27 19:23:38 if it's triggering a watchdog reboot / kernel panic / etc, you're pretty much humped Jul 27 19:23:42 thc: be that as it may, please see the topic. Jul 27 19:23:50 "Please don't advertise websites, jobs, or contracts" Jul 27 19:23:55 lov: What? Moto neve rhas bizzare bugs we have to spend a week debugging for them. :P Jul 27 19:24:05 lov: oh wait... :P Jul 27 19:24:49 WE WANT JUMPING ALEX Jul 27 19:28:17 is it possbile to change voltage output to the mini-a/b usb socket via "native" apps? or does it require something deeper Jul 27 19:28:44 say, you want to turn your phone into a taser with a custom usb dongle. Jul 27 19:29:18 hey Jul 27 19:29:27 that sounds like a REALLY bad idea Jul 27 19:29:45 actually, there are 2 landscape positions, right? Jul 27 19:29:52 messing with voltage settings on anything needs to be very well thought out Jul 27 19:29:56 how can I say that its landscape "to the right" or "to the left"? Jul 27 19:30:02 // in the app manifest? Jul 27 19:30:10 dogarrhea2: no, that is not possible. Jul 27 19:31:02 spobat, seascape is clockwise landscape Jul 27 19:31:24 seascape? wtf? Jul 27 19:31:52 tis Jul 27 19:32:05 I mean "android:screenOrientation="landscape|sensor"" would be awesome.. Jul 27 19:32:14 how is this possible? Jul 27 19:32:20 what does that even mean Jul 27 19:32:39 you just want sensorLandscape?? Jul 27 19:33:07 ooh, there it is! Jul 27 19:33:44 Since api level 9 :/ Jul 27 19:33:59 Im supporting devices since 8 :O Jul 27 19:34:26 will it crash on android version 8? Jul 27 19:34:43 ... Jul 27 19:37:06 doogan duh? :) Jul 27 19:39:22 Can I talk now? Jul 27 19:39:24 Yes Jul 27 19:39:34 :D Jul 27 19:39:35 hehe Jul 27 19:40:00 Ugh!!! Sorry I keept logging in / out like that... Registration is a pain. Jul 27 19:40:32 * DeadByLead dusts himself off. Jul 27 19:40:54 spobat: it wont crash Jul 27 19:41:07 SimonVT Okay. Jul 27 19:42:28 Alright I am in the process of working on an app that when launched will dial to a reciver in my home to allow me to enter a code to open my garrage door from anywhere... I have a base code working for this already I just cant seem to wrap my head around bundleing the number to be called. Jul 27 19:43:08 oh wow Jul 27 19:43:13 OMG you must join ##olympics Jul 27 19:43:15 anyone else join the ##olympics channel? Jul 27 19:43:17 yes Jul 27 19:43:18 never saw such an.... spam Jul 27 19:43:42 O.o Not me I'm asking a legit question here. Jul 27 19:44:58 O.o K then. Jul 27 19:45:46 sorry, but you might have to be patient, it just might happen to be noone here able to help you Jul 27 19:46:03 does it not just expect the phone number as a string? Jul 27 19:47:12 wongk: Yeah but I dont know how to get it from one file to the other.. Jul 27 19:47:23 an intent Jul 27 19:47:44 Or one class to the other.... Well yeah, But I'm setting this inside a URI Jul 27 19:47:49 you're just trying to launch the dialer, rght? Jul 27 19:48:14 With a custom number attached to it. I already have a Dialer set up and working. Jul 27 19:48:34 Its the settings to allow the user to set their own number I am having trouble with. Jul 27 19:52:42 i find it ironic that a task killer app has an option to "start at boot" Jul 27 19:53:41 looks like you pass the data of the itent as tel:555-555-5555 Jul 27 19:54:25 wongk: Yes.... But how do I get the number out of one class and into another one where the "Call" will be made? Jul 27 19:54:41 that's just basic OOP Jul 27 19:54:47 what kind of classes are you working with Jul 27 19:54:50 basic POO you mean Jul 27 19:54:58 maybe! Jul 27 19:55:09 Well its going to be set up as a homescreen Widget. Jul 27 19:55:38 So the classes are the Widget it self, the mainactivity / Dialer, and the Settings screen to set your number up. Jul 27 19:55:54 so the number is a SharedPreference Jul 27 19:56:08 that couldn't be any easier Jul 27 19:56:23 SharedPreferences are available from anywhere Jul 27 19:56:57 I guess it will be... Last time I checked it was a bundle I had to transfer over. In the end I'm holing it looks like: Uri dhd = new uri("tel:" + setting here); Boom boom Pow go! Jul 27 19:58:25 hoping* Jul 27 20:03:08 "New documents made public in the legal feud between Apple and Samsung indicate among other things that retailer Best Buy had told Samsung it was processing Galaxy Tab returns from unhappy customers who thought they were getting an iPad." W T F/H Jul 27 20:04:28 that's best buy's problem Jul 27 20:04:36 or the customers are idiots Jul 27 20:04:43 either they said "this is an ipad" Jul 27 20:04:49 or the customers are fucking stupid Jul 27 20:04:54 I KNOW IT SAYS SAMSUNG GALAXY TAB Jul 27 20:04:55 BUT Jul 27 20:04:56 yeah Jul 27 20:05:01 I THOUGHT IT WAS AN APPLE IPAD Jul 27 20:05:02 customers are fucking stupid Jul 27 20:05:18 there are arbritrarily low intelligence in the arbitrary low percentile Jul 27 20:05:32 half the world is below average intelligence :) Jul 27 20:05:52 actually below the median Jul 27 20:06:58 I was going to use a pun Jul 27 20:07:07 but I don't like puns Jul 27 20:08:09 wongk: Thanks for the tip, I have been beating my head on the wall since last week on this one. Jul 27 20:08:10 - mom, please go buy me an ipad -what? - it's a rectangular flat thing ... Refund 2 days later Jul 27 20:12:03 SuD, reminds me of the southpark episode Jul 27 20:17:58 When Android is killing an application due to low memory, shouldn't the app start from its main activity again instead of the last active one? Jul 27 20:18:23 opticdelusion: depends on the application Jul 27 20:18:55 yes. that's how it works Jul 27 20:19:30 if the application does certain things, it can resume despite being killed by OOM Killer Jul 27 20:20:59 hm, i guess theres no way to disable this behavior? Jul 27 20:21:08 Hi, Can i get some help here =/, frameworks/base/ethernet/java/android/net/ethernet/IEthernetManager.aidl:18: couldn't find import for class android.net.ethernet.EthernetDevInfo Jul 27 20:21:08 make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/ethernet/java/android/net/ethernet/IEthernetManager.java] Error 1 Jul 27 20:21:19 EthernetDevInfo.java exists Jul 27 20:21:21 if it saves state well enough to survive OOM? Jul 27 20:21:55 hello Jul 27 20:21:55 i.e., force the app to start the main activity when killed by OOM? Jul 27 20:21:57 you can try killing it from command line or app manager (as it won't inform the app that it needs to close or anything like that), and you can wipe application data Jul 27 20:22:17 opticdelusion: if the application doesn't do its own housekeeping, it will start from main activity Jul 27 20:22:18 it'd be a lot of work to make that function correctly Jul 27 20:22:21 well Jul 27 20:22:36 if you launch it from menu, it will launch whatever listens to that event Jul 27 20:22:38 android isn't designed to work that way Jul 27 20:22:58 the possibility to get around OOM is if you are getting back to it through app menu Jul 27 20:25:07 p_1|home: you're referring to those onSaveInstanceState / onRestoreInstanceState methods? Jul 27 20:25:45 opticdelusion: sort of. There are some more hooks (low memory warning etc, iirc) Jul 27 20:29:51 guess i need to read some more documentation on this topic Jul 27 20:29:54 well, thanks anyway Jul 27 20:41:23 hey all Jul 27 20:41:37 i've been here for the last few days bothering everyone about unity/android integration Jul 27 20:41:56 for anyone having the same or similar issues using android guis check out: http://forum.unity3d.com/threads/98315-Using-Unity-Android-In-a-Sub-View Jul 27 20:42:43 how many of you prefer to dev on Linux or Windows? Jul 27 20:42:58 Lord_Zero, the development pipeline through eclipse obfuscates the underlying OS Jul 27 20:43:04 so the development is roughly exactly the same Jul 27 20:43:21 kaneda^: I know I just was wondering what your preference was Jul 27 20:43:33 * p_l|home prefers linux, for unrelated reasons Jul 27 20:43:39 Lord_Zero, i can't honestly say i have one, i did android dev on linux for 6 months, now i'm doing it on windows Jul 27 20:43:57 i do both Jul 27 20:43:59 I see. Jul 27 20:44:09 with the right IDE it doesnt really matter in other words Jul 27 20:44:19 i prefer linux for C++. android there's much less of a difference for me Jul 27 20:44:29 wongk, yes, for c/c++ i need linux Jul 27 20:44:52 i wouldnt even know where to begin in windows Jul 27 20:45:09 c/c++ tools for eclipse Jul 27 20:45:11 works fine Jul 27 20:45:14 the IDE i use runs on both, compiling is just slower than shit on windows Jul 27 20:45:22 but i avoid coding c/c++ on windows Jul 27 20:45:24 it just feels wrong Jul 27 20:45:26 sonOfRa, i've never used a full IDE for c/c++, regardless of the project size Jul 27 20:45:34 i always use gcc/g++ from the command line Jul 27 20:45:36 I avoid coding in C++, period :) Jul 27 20:45:42 I prefer windows for android development cause there's an atom-x86-emulator image that supports hardware virtualization. works only with windows. Jul 27 20:45:43 that's insane Jul 27 20:45:52 of course now i'm doing c# and java, so windows is a must Jul 27 20:45:54 and completely unreasonable Jul 27 20:46:02 opticdelusion: on linux you have portable KVM support Jul 27 20:46:18 Hello, anyone successfully compiled gcc 4.7 toolset? Jul 27 20:46:30 wrong channel? Jul 27 20:46:34 eh, didnt know that Jul 27 20:46:41 is there need for some patches? Jul 27 20:46:45 opticdelusion: meaning that any hw-virt x86 cpu will run x86 images Jul 27 20:46:46 anyone have any recommendations for REST calls and JSON decoding in android? Jul 27 20:47:08 wongk you asked me? Jul 27 20:47:10 kaneda^: what kind of recommendations? JSON handling? Jul 27 20:47:12 opticdelusion: while intel's thingy will run only on intel Jul 27 20:47:13 ArGGu^^: yes Jul 27 20:47:26 I speaking of android ndk toolchain Jul 27 20:47:39 ArGGu^^: you need to compile te compiler? Jul 27 20:47:42 wongk, well, is there an elegant framework for making REST calls, and then the second question is, is there a recommended decoder for the JSON that my REST calls will return Jul 27 20:48:01 kaneda^: HttpURLConnection Jul 27 20:48:04 wongk I need gcc 4.7 toolchain Jul 27 20:48:06 and probably gson Jul 27 20:48:08 wongk: http://timewasted.net/?p=127 <-- like taht? Jul 27 20:48:16 ndk has by default gcc 4.6 Jul 27 20:48:31 kaneda^: that's the apache framework Jul 27 20:48:34 it also works Jul 27 20:48:43 but is no longer maintained for android Jul 27 20:48:49 wongk, hmmm, so forget that Jul 27 20:49:15 kaneda^: read this: http://android-developers.blogspot.com/2011/09/androids-http-clients.html Jul 27 20:49:22 ty Jul 27 20:52:41 wongk, i only need the basic object, thanks man :) Jul 27 21:01:52 kaneda^: btw, you'll want JSON classes that can deal with streams, preferrably, unless your data is small Jul 27 21:03:36 wongk, what would you define as large data? Jul 27 21:04:27 something bigger then a few k, probably Jul 27 21:04:42 hmmmmmm Jul 27 21:05:00 the RESTful calls COULD theoretically get this large Jul 27 21:05:08 so i will use a JSON class that can deal w/ streams Jul 27 21:05:10 empirical testing is the ultimate method Jul 27 21:05:26 if it's plenty fast w/o streams, then there you go Jul 27 21:05:28 at the moment i have the services all set up, but the DB is empty for testing so the reurns are very small Jul 27 21:05:40 well the size of the DB (and therefore the returns) will increase over time Jul 27 21:05:45 and this app is meant to last 3 years or so Jul 27 21:05:50 you need a representative data set of a worst case Jul 27 21:05:54 the client wants to add more data to the app on the fly Jul 27 21:06:29 wongk, i can make each data return a standard size, but we decided on a lump sum model for data returns to avoid the overhead of many calls Jul 27 21:06:50 i think that's the right call Jul 27 21:07:04 i'd rather implement it correctly once than incorrectly twice ;) Jul 27 21:07:09 so i'll find a JSON class taht supports streaming Jul 27 21:07:56 there this, but note the API level: http://developer.android.com/reference/android/util/JsonReader.html Jul 27 21:08:03 require honeycomb or btter Jul 27 21:08:07 better Jul 27 21:09:44 everything is better than honeycomb Jul 27 21:16:14 ty wongk Jul 27 21:16:23 i'm going to do a lot of reading and try to have this implemented in a week Jul 27 21:18:10 hello Jul 27 21:18:34 how does the system enforce security on file access in the case of apps that have rw permissions for the sdcard and are installed on the sdcard? Jul 27 21:21:34 webczat: as in how does it prevent them from being modified? Good question. i'd hope it keeps some sort of hash/signature of them in a place not accessible outside of the system Jul 27 21:22:04 I mean Jul 27 21:22:08 private files Jul 27 21:22:23 like app's private files that are protected by default Jul 27 21:22:39 webczat: application itself is protected by being encrypted Jul 27 21:22:49 what are some cool game-dev framework / libraries? Jul 27 21:22:53 however, "external storage" (whatever it is) is not protected Jul 27 21:23:07 never in any case? Jul 27 21:23:17 the sd card is (usually) vfat Jul 27 21:23:19 so no permissions Jul 27 21:23:58 hmm like: if I have my app somewhere in my internal storage, then no one can access it's data without it's permission. and on the sdcard it can even if the app is installed on the sdcard? Jul 27 21:24:10 yes Jul 27 21:24:30 I'd expect that if an app on the sdcard wants protected storage, it would go on the internal flash (the storage, that is) Jul 27 21:24:34 where it is permission restricted Jul 27 21:24:51 since apps are already told to use external storage for large downloaded data blobs Jul 27 21:25:24 mhm okay. but I may want to store all apps on the sdcard. Jul 27 21:25:30 and then... Jul 27 21:26:10 sd card migration is generally invisible to the app Jul 27 21:26:32 but from the permission perspective Jul 27 21:26:44 it loses any and all protection? Jul 27 21:28:30 like it's files are always world readabkle and writable? Jul 27 21:28:39 I mean those that normally would be protected Jul 27 21:29:51 Lord_Zero: Take a look at libgdx Jul 27 21:38:44 is there a way to automatically create a string in my other values folders, if i create one via the Graphical Layouter? Jul 27 21:38:51 or do i have to add each language manually? Jul 27 21:39:12 sonOfRa, i do most of the GUI stuff programatically Jul 27 21:39:21 so string definitions can be stored anywhere Jul 27 21:39:35 has anyone ever seen phones returning really strange values from the GPS? Such as, latitude: "3.7550926208496094E-5" longitude: "5617.919917702675" or latitude: "51.5758582" longitude: "-0.01355*" Jul 27 21:39:43 massive pain in the ass if you want to redo your UI :P Jul 27 21:40:01 oGMo, i find it easier if you want to redo the UI actually Jul 27 21:40:52 not sure there's much I can do about it anyway, just wondering if anyone's seen that Jul 27 21:41:06 I'm not entirely sure how the last one with the * on the end can happen Jul 27 21:41:20 S3nsat10n, cant say taht i've seen taht Jul 27 21:41:52 wow, this olypic photographer shoots around 4k images each day Jul 27 21:42:12 that's quite a normal amount for professional photography Jul 27 21:42:23 you don't want to risk having no good shot of any situation Jul 27 21:42:28 I've seen the first type from a U8650 and a ZTE-SKATE and the second type from a T-Mobile Vivacity Jul 27 21:42:28 so you have 50 shots of everything Jul 27 21:42:32 webczat: Only the app is moved.. Any data remains on internal storage Jul 27 21:42:44 wonder if they just have defective gps modules Jul 27 21:45:20 anyone ever use instagram for android? Jul 27 21:45:29 how did they manage that home page design Jul 27 21:46:01 magic, obviously :> Jul 27 21:46:19 dem wizards Jul 27 21:46:31 sonOfRa: whats pretty interesting is that it seems like the getty photographer sends images back to hq in semi-real time. i wonder if somebody else there does the post processing Jul 27 21:46:46 computers Jul 27 21:47:00 at least for rudimentary sorting Jul 27 21:47:01 i'm used to doing all of my own post processing Jul 27 21:47:03 dismissing bad images Jul 27 21:47:32 i'm more talking about the usernames, how they float on top when you scroll down, and when you get to the next image, that person's username pushes the old one out and stays Jul 27 21:47:50 s3b`, sounds like layers Jul 27 21:48:03 or it's a webview adn they're using javascript Jul 27 21:48:19 like jquery mobile or something Jul 27 21:48:23 there's a beautiful german term for that.. "klickibunti" Jul 27 21:48:34 sonOfRa, is that a real term... Jul 27 21:48:50 its used by developers in semi professional and professional environments Jul 27 21:49:04 for applications that are just too damn colorful and have too many animations Jul 27 21:49:21 lol Jul 27 21:49:24 sonOfRa, animations for me = unity Jul 27 21:49:41 yeah, unity definitely is klickibunti :) Jul 27 21:50:34 sonOfRa, gotcha, in that case i know all about klickibunti now :) Jul 27 21:50:43 :D Jul 27 21:51:47 here, if you don't have instagram here's an example: http://imgur.com/a/DmDv1#0 Jul 27 21:52:03 alright, i'm outa here Jul 27 21:52:04 laters guys Jul 27 21:52:13 ah later Jul 27 21:52:32 byebye Jul 27 21:55:32 It's just custom views Jul 27 21:55:36 There are libraries for that Jul 27 22:02:01 A cursor just contains results from a database query yeah? Jul 27 22:04:58 Maybe Jul 27 22:05:18 SimonVT, Maybe? Jul 27 22:06:08 You could construct a cursor that doesn't get its data from a database if you want :p Jul 27 22:06:35 But yeah, sqlite queries return a Cursor Jul 27 22:07:23 ok, I am new to them, I am looking to get an idea of their structure, are they just essentially an array of info? Jul 27 22:07:46 Hi, I'm having a rather strange issue, I've compiled a shared native library and was able to use it from inside the emulator (2.3.3) without any issues, however on my real device (2.3.6) I get a "cannot load library: reloc_library[1311]: 67 cannot locate '__aeabi_f2uiz'" error, any ideas? Jul 27 22:08:30 Basically yea Jul 27 22:14:53 jeez, i can't remember. what was that different menu that also pops up, but is NOT a popupwindow? I can't find it, and I cant remember the name >.< Jul 27 22:15:38 hrm so i figured there would be a way to do a taser like device Jul 27 22:15:57 I know this might be a long shot but does anyone know if the Driod2 uses /mnt/sdcard as its sd card path? Jul 27 22:16:00 where all you do is design the device to draw power and store it. and the native app just turns something on to send power to the usb Jul 27 22:16:27 and when the power is cut off from the app turning something off, the device discharges Jul 27 22:16:41 dogarrhea2, no. Jul 27 22:17:17 unless of course, you can't control the usb at all (ie it draws power to whenever anything is attached) Jul 27 22:19:41 dogarrhea2, don't rely on power then maybe, rely on data signals Jul 27 22:21:02 seems like you'd need to know about usb protocols. fun/hard Jul 27 22:21:41 dogarrhea2, definitely not exposed via the SDK Jul 27 22:21:56 there's something here called an "ADK" Jul 27 22:22:03 specifically for accessories Jul 27 22:22:33 interesting, could be worth a shot Jul 27 22:22:58 maybe even worth a taze. Jul 27 22:23:52 it's based on arduino Jul 27 22:24:00 dogarrhea2, http://www.indiegogo.com/yellowjacket Jul 27 22:24:05 I'm sure you seen this? Jul 27 22:24:25 pretty cool idea in general Jul 27 22:25:04 yea. that's just a phone charger/stun gun combo though heh. acheives the same effect but it's more fun to hack your phone Jul 27 22:25:43 Definitely Jul 27 22:26:16 I tried to get to android-root (had a question) but it said I had to auth to services? Jul 27 22:26:30 I just registered my nickname if that helps. Jul 27 22:28:12 dogarrhea2, the ADK seems the way to go Jul 27 22:28:31 I have a ROM-related question and I don't want to ask it here Jul 27 22:29:49 Raymie: if you're able to talk in here you should be authed now Jul 27 22:29:53 give it another shot Jul 27 22:30:12 Thanks. Jul 27 22:31:54 can i disable whatever clears the screen black between my splash theme and first opengles frame of my game? Jul 27 23:02:51 Well I was getting some place, now its flagging me with "No internet calling account" issues. wongk Any ideas? Since I know we were talking about this before... This = my apps thing. Jul 27 23:03:59 Hey Jul 27 23:04:33 Does android:hardwareAccelerated="true" only work for the default Android UI items, or also when I actually use OpenGL (like in a game) Jul 27 23:04:52 My guess is that OpenGL code is hardware accelerated anyway. Jul 27 23:05:31 Does anyone understand this stacktrace? http://pastebin.com/9mtjTs7g Jul 27 23:05:36 I don't quite get it Jul 27 23:08:23 T-Dub, is that from logcat? Jul 27 23:08:32 It's from android Jul 27 23:08:36 Someone reported a force close Jul 27 23:08:43 I can't recreate the error but two people reported it Jul 27 23:09:15 I'm going to suround with a try and catch but it's more of a bandaid, not a fix Jul 27 23:09:47 T-Dub, the exception is obviously NumberFormatException, so I'm guessing your versionGot and currentVersion are not parsable numbers Jul 27 23:09:52 so.. where can i change the name of my app? i've changed it in manifest, and in build.xml .. but in the launcher, its still showing with the old name Jul 27 23:10:12 T-Dub, they aren't Doubles on the client's devices, the versions might contains letters perhaps? Jul 27 23:10:33 versionGot and currentVersion are both strings Jul 27 23:10:33 EricBlade, in res/strings.xml Jul 27 23:10:47 Well here are how I get my two values. sec Jul 27 23:10:57 T-Dub, yes, but Double.getValue( "1.3" ) is ok, whereas Double.getValue( "1.3a" ) is not. Jul 27 23:11:44 EricBlade, res/values/strings.xml I mean Jul 27 23:12:11 http://pastebin.com/DETKKYPq Jul 27 23:12:16 soulseekah: thank you, digging Jul 27 23:12:50 and I think I figured it out. I do a check if it contains v (the php should echo out something like v1.8 or v5 or w\e) but I don't have a null check. If it returns null due to connection it will still try to convert it Jul 27 23:13:28 T-Dub, could be, yes. Also are you replacing "v" with a space " "? Jul 27 23:13:44 I noticed that, I changed it to "" Jul 27 23:13:51 but it never posed a problem Jul 27 23:14:07 It's worked just how I wanted it to, apparently even with replacing with a space Jul 27 23:14:27 OK, just thought you might give that a fix :) Jul 27 23:14:37 I'm going to now Jul 27 23:14:42 not sure why I did a space at first Jul 27 23:14:45 But yes, connection issues might be a problem Jul 27 23:15:01 well I tested the method with no internet Jul 27 23:15:14 and it worked? Jul 27 23:15:14 and it doesn't crash, and that is because I have a try and catch around the connection Jul 27 23:15:26 but the version is null then no? Jul 27 23:15:45 I don't see your versionGot initializer Jul 27 23:15:57 hmmm Jul 27 23:16:05 String versionGot = null; ? Jul 27 23:16:07 actually if i dont have internet version got should be null Jul 27 23:16:11 and i've never gotten an error Jul 27 23:16:15 I guess it's time for full code. Jul 27 23:16:16 sec. Jul 27 23:16:30 oh ya I made sure it was never null. Jul 27 23:16:32 hmm Jul 27 23:16:34 sec Jul 27 23:16:51 Test out Double.valueOf("") and valueOf(null) etc. you should get the NumberFormatException Jul 27 23:17:19 Maybe your server returned a 500 Internal Error text Jul 27 23:17:37 http://pastebin.com/8MwB9ZZn Jul 27 23:17:48 Yeah maybe my server was what failed Jul 27 23:17:53 because i should never get a null pointer Jul 27 23:18:06 T-Dub, you're not getting a null pointer Jul 27 23:18:12 you're getting a string that's unparsable Jul 27 23:18:16 ah Jul 27 23:18:23 so the server at some point does not return a version Jul 27 23:18:28 so how did it get a value that was unparsable if I do a find and replace Jul 27 23:18:31 but returns something else, like a 500 error Jul 27 23:18:36 ahhh Jul 27 23:18:37 ok Jul 27 23:18:40 so it read that error Jul 27 23:18:50 hmm so why is my server down Jul 27 23:18:51 o.o Jul 27 23:18:55 then your getVersion would be "500 Internal Error, contact the administrator" Jul 27 23:19:12 so what is in every error that I could find Jul 27 23:19:13 or maybe your PHP spewed out an error Jul 27 23:19:22 if(versionGot.contains("error")? Jul 27 23:19:27 so your versionGot = "Undefined... bla bla PHP error" Jul 27 23:19:35 does like a 404 not found and a 500 internal error Jul 27 23:19:39 do they all have a common word? Jul 27 23:19:46 T-Dub, just catch the exception Jul 27 23:19:51 lol ok Jul 27 23:19:54 :) Jul 27 23:20:05 catch ( NumberFormatException nfe ) { ... Jul 27 23:20:08 yeah Jul 27 23:20:13 I'll catch any error rather Jul 27 23:20:15 just incase Jul 27 23:20:21 erm, that'd be evil Jul 27 23:20:25 why Jul 27 23:20:36 Pokemon Exception Handling Jul 27 23:20:48 "Gotta catch 'em all!" Jul 27 23:20:51 I don't want any pokemons crashing my app though Jul 27 23:20:52 :) Jul 27 23:21:18 For one, you wouldn't find out if there are any other serious issues if you just catch all Jul 27 23:21:44 T-Dub, http://www.javatuning.com/why-catch-throwable-is-evil-real-life-story/ Jul 27 23:25:38 hmm Jul 27 23:25:43 I got some redoing then of methods lol Jul 27 23:25:47 Thanks for the help Jul 27 23:29:18 Anyone else's developer console not update today? Jul 27 23:29:31 My stats shown are still from yesterday Jul 28 00:32:24 canon has been getting really lazy lately. this sony p&s kills my old s95 Jul 28 00:37:54 uh oh, Zynga Jul 28 00:38:09 "your Honor, we would like to call the cow to the stand for questioning" Jul 28 00:38:43 how serious is this JNI ERROR: env->self != thread-self; auto-correcting Jul 28 00:46:05 g00s wat Jul 28 00:47:08 canadiancow|work: just reading about law firms investigating Zynga Jul 28 00:47:19 meh Jul 28 00:47:41 i dont think the case has merit, but ianal Jul 28 00:51:47 my opinions Jul 28 00:51:50 law is broken Jul 28 00:53:15 arg Jul 28 00:53:20 eclipse y u freeze so much? Jul 28 00:53:44 i must just be especially lucky with eclipse Jul 28 00:53:56 its not pretty but i never have problems with it Jul 28 00:54:44 :\ Jul 28 00:54:49 * Jug6ernaut always has problems with it Jul 28 01:24:27 every time i use facebook, i want to punch someone in the face Jul 28 01:28:51 Why canadiancow ? Jul 28 01:29:00 because its so much shittier than g+ Jul 28 01:29:04 but all my friends are on FB Jul 28 01:29:05 :( Jul 28 01:29:38 I haven't even tried g+ Jul 28 01:31:05 Is there any way to tell ActionBarSherlock to omit a title, unless one is otherwise specified? Jul 28 01:31:07 At some global level? Jul 28 02:41:25 i just finished the android tutorial on google deveopers site but i feel i can't do anything beyond a hello world program. Can anyone suggest me a better tutorial, maybe something that shows you how to build an app from beginning to end Jul 28 02:44:18 I'm looiking for a security expert that has experience with mobile programming (android based). msg me. Jul 28 02:46:21 what if you represent a group of 9 experts but are not yourself a mobile security expert? Jul 28 02:48:35 OccultPaparazzi: then you're a manager who doesn't really know anything about the topic the people you're managing carry out Jul 28 02:48:54 either way, he should just ask his question :) Jul 28 02:49:15 i was just posing a hypothetical Jul 28 02:49:22 i happen to be an expert Jul 28 02:53:48 is there any web site that compares android gui coding to awt and/or swing? **** ENDING LOGGING AT Sat Jul 28 02:59:59 2012