**** BEGIN LOGGING AT Wed Jul 25 02:59:58 2012 Jul 25 02:59:59 oh wow Jul 25 03:00:07 i had my browser open to my bank on my other screen Jul 25 03:00:12 i almost typed my debit card number on irc Jul 25 03:00:21 that would be bad :-) Jul 25 03:00:24 i've done that with company passwords Jul 25 03:00:28 :> Jul 25 03:00:36 then I tried to play it off like im just typing gibberish Jul 25 03:00:40 ghyt3#5672- Jul 25 03:00:43 HSGFS$2673A Jul 25 03:00:56 lol Jul 25 03:00:57 then I /clear the screen and pretend it never happened Jul 25 03:01:07 yea 16 numbers would look more obvious :P Jul 25 03:01:09 @mantas, data is what's valuable, don't be afraid to share source code Jul 25 03:01:11 haha nice Jul 25 03:01:30 I know data is super valuable Jul 25 03:01:47 I'd love to legally own all the data from findthebest.com Jul 25 03:01:51 hey canadiancow Jul 25 03:01:54 you should really encrypt your assets Jul 25 03:02:00 I'd make 13 tequilla apps and 12 votka apps by tomorrow Jul 25 03:02:08 hi Napalm Jul 25 03:02:14 long time Jul 25 03:02:20 im always here Jul 25 03:02:25 im not Jul 25 03:02:27 I will next time chuckk Jul 25 03:02:29 :[ Jul 25 03:02:32 thanks for the warnings and advice Jul 25 03:02:37 "apparently" you can get around copyright by scraping the google cache instead of the site Jul 25 03:02:44 according to padmapper LOL Jul 25 03:02:59 catch up soon canadiancow, sleep time for me Jul 25 03:03:11 if you're having problems with people ripping off your apps on the play store, you should probably be reporting that to Google Jul 25 03:04:28 wouldnt be honest chuckk Jul 25 03:04:47 @ryanm I take appropriate measures, I was illustrating the dangers of not doing so to mantas Jul 25 03:04:48 besides if they found out, they could tell googleplay and googleplay would disown you Jul 25 03:06:03 I reported failure to communicate about my Nexus7 purchase to Google last month. About as effective. Jul 25 03:07:04 And that's money I'm giving them - not the other way around! You'd expect them to be motivated! Jul 25 03:13:27 er... Jul 25 03:13:55 ? Jul 25 03:14:28 okay, nothing... Jul 25 03:15:06 hey Jul 25 03:15:08 im back Jul 25 03:46:01 anyone reason why a surfaceholder callback may not execute? i am creating a surfaceholder programatically Jul 25 03:48:34 Is there a way to use themes to change textsize according to screen size catagory? Jul 25 03:49:16 Yes Jul 25 03:51:25 wow, This sound clip is now going into every single one of my apps http://www.soundjay.com/misc/sounds/fail-trombone-01.mp3 Jul 25 03:51:54 lasserix: http://developer.android.com/guide/practices/screens_support.html#qualifiers Jul 25 03:54:46 Thanks Jul 25 03:55:12 mantas322 I made an app exclusively for that sound clip :P Jul 25 03:55:32 Most of my apps embody that sound Jul 25 04:00:16 How can I change the text color for the non-focused and non-selected tab states in Action Bar Sherlock? I tried simply adding android:textColor and textColor attributes, but that didn't work... Jul 25 04:04:28 chuckk, hmm i managed to get Play on the emulator, and i can sign in with my account. But as soon as i do, i get Server Error and a Retry button :( There is internet on the emulator Jul 25 04:04:51 google doesnt want you doing that Jul 25 04:05:03 offsetting their statistical reqard systems Jul 25 04:05:10 reward* Jul 25 04:05:25 but i need a library from Play on the emulator... none of my devices are supported, so i cannot get the apk Jul 25 04:05:40 Isn't play already on the Google API image? Jul 25 04:05:42 mgj: then contact the author and ask for a copy for development Jul 25 04:05:44 t0mless: no Jul 25 04:06:02 hacking the market onto the emulator is unsupported and unlicensed Jul 25 04:06:05 You can get GoogleLoginService.apk from the CM9 bundle Jul 25 04:06:35 I have it Jul 25 04:06:38 i can login Jul 25 04:07:12 @Chronax for ABS you need the attributes twice, once for the underlying API and once for Jakes Jul 25 04:07:52 mgj: what library? Jul 25 04:07:56 @mgj do you have GoogleServicesFramework.apk? Jul 25 04:08:27 Leeds, https://play.google.com/store/apps/details?id=org.opencv.engine and https://play.google.com/store/apps/details?id=org.opencv.lib_v24_armv7a Jul 25 04:08:29 chuckk, yes Jul 25 04:08:48 @Chronax see here: http://actionbarsherlock.com/theming.html Jul 25 04:09:41 mgj: and the version on http://opencv.org/ doesn't work? Jul 25 04:10:14 everything on opencv.org requires Play to run Jul 25 04:10:23 it tries to download the app when loaded Jul 25 04:10:26 if not already present Jul 25 04:10:42 then you're fucked, aren't you Jul 25 04:10:52 i am :( Jul 25 04:10:53 No, we can find him a solution. Jul 25 04:10:54 how are you going to use the library if you don't have compatible hardware to test on, anyway? Jul 25 04:11:08 Emulator? Jul 25 04:11:15 i only need a very very tiny part of the library Jul 25 04:11:39 Don't let that stop you when developing for Android, we can't all afford 5000 devices. Jul 25 04:11:56 mgj: so the apk files in the zip from sourceforge just send you to the market? Jul 25 04:12:31 speakk for yourself cuhckkk Jul 25 04:13:06 haha you work for Animoca? Jul 25 04:13:18 Leeds, it relies on something they call "OpenCV Manager" - Its only available from Play as far as i can tell Jul 25 04:13:19 naw, I work for love and smiles Jul 25 04:13:52 officially, they do not support using it on the emulator Jul 25 04:13:55 but w/e Jul 25 04:13:59 OpenCV_2.4.2_Manager.apk is in the zipfile... Jul 25 04:14:24 what Jul 25 04:14:44 opencv.org Jul 25 04:14:49 click open cv for android Jul 25 04:14:56 it will download the zip of all their .apk files Jul 25 04:14:59 okay, so you *didn't* download the file from sourceforge and look inside? Jul 25 04:15:12 just looked up animoca http://a0.www.animoca.com/v1.0.15/en/wp-content/uploads/2012/05/All-the-Myriad-Androids-Animoca-570x378.png lol Jul 25 04:17:05 apparently i didnt. thank you Jul 25 04:17:12 ... Jul 25 04:17:31 why didn't you? Jul 25 04:18:03 "Yeah, you idiot" "What an imbecile" etc. Jul 25 04:18:19 Fascinated to see the answer to that question. Jul 25 04:18:20 i thought i did.... have many "opencv" folder atm Jul 25 04:18:28 chuckk: be nice, please. Jul 25 04:22:01 quick question.. I installed eclipse and android-adk, but I don't see it in New -> Projects .. Jul 25 04:22:09 I don't see Android Project there, that is Jul 25 04:22:31 go to other Jul 25 04:22:36 @Jaggz can you see anything Android in the "Window" menu? Jul 25 04:22:51 android sdk manager is there Jul 25 04:23:47 but no Lint or AVD Manager, and there is no Android folder in the Projects dialog? Jul 25 04:24:16 is there a way to execute adb commands from within eclipse? not as java code, just as something like uninstall a previous applciation before deploying the new one. Jul 25 04:24:24 i remember there was a way to set how many fragments get loaded and stay in the memory at the same time Jul 25 04:24:29 what was it Jul 25 04:27:11 @eSatsu, not sure about setting a cap on the number of Fragments in memory, but you should look at FragmentManager and maybe use replace instead of add? Jul 25 04:28:30 chuckk, those are there Jul 25 04:28:41 sorry for the delay Jul 25 04:28:48 that's coo Jul 25 04:28:50 i mean there was some set.whatever(int) thatd change the amount of fragments that load "next" to the fragment youre currently viewing Jul 25 04:28:50 *cool Jul 25 04:29:07 i just cant seem to find it again Jul 25 04:29:32 i was searching for something rather unrelated when i found it and thought id need it later Jul 25 04:29:56 doesn't sound like an API thing to me, that would be application specific Jul 25 04:31:12 So Jaggz, if you go File -> New -> Project... and you can see the Android folder in the Dialog, what's the problem? Jul 25 04:31:25 by default it seems to load the next fragment as well and keep it in memory. atm i have 5 tabs, Jul 25 04:31:37 is anyone here doing Android development with PhoneGap? Jul 25 04:31:39 if i go from 1 to 2 and then back to 1 it doesnt reload 1 Jul 25 04:31:42 writing modules or working on the core framework? Jul 25 04:31:48 but if i go from 1 to 3 and then back to 1, 1 gets reloaded Jul 25 04:32:12 I am trying to create a surfaceholder inside a plugin but the callback methods do not execute... what gives? Jul 25 04:32:23 so its 1 by default, i remember reading there was a really simple 1 line way to change this number Jul 25 04:32:25 if i create a new activity and run that activity through a new intent, it all works Jul 25 04:33:01 are these fragments in a viewpager? Jul 25 04:33:18 yes Jul 25 04:33:36 chuckk, nothing. no problem. New lesson for me to try to remember that the tutorial videos aren't always accurate according to the most recent versions of software. Jul 25 04:34:05 thanks :} Jul 25 04:34:52 no problem Jul 25 04:36:42 are you trying to keep the number of fragments down or cache them all? Jul 25 04:37:27 there's things like Trim and Retain but I don't know if that's what you want Jul 25 04:39:10 i wonder if this is it: setOffscreenPageLimit Jul 25 04:39:56 is there a way to do have a component have a fixed position above the rest of the layout? Jul 25 04:40:04 sort of like position: fixed in css? Jul 25 04:41:07 is it possible to programatically add a surfaceview? Jul 25 04:41:30 when i programatically try and create a surface view, when i create a surface holder the callback events do not execute Jul 25 04:43:41 @maverick you shouldn't use absolute positioning, you can probably do what you need with a relativelayout and alignments Jul 25 04:46:48 chuckk: thank you Jul 25 04:48:33 eSatsu: that looks like it, we all learned something! Jul 25 04:53:23 Hi guys Jul 25 04:53:34 is the resource identifier arrangements important Jul 25 04:54:02 or you can just put something like drawable-sw600dp-notlong and drawable-notlong-sw600dp Jul 25 04:54:39 the order they appear in the layout can affect z-ordering, but otherwise no. They may well be renamed during obfuscation anyway Jul 25 04:55:45 chuckk: where much looks like it, now i just need to figure out why its making my application crash in a mysterious way. lol. Jul 25 04:56:38 er, i believe its trying to instantitate the splashscreen (startup rather) activity Jul 25 04:59:00 also is this normal? json parsing takes _ages_ on this 4 year old mac, up to like 10 seconds while it happens almost instantly on samsung galaxy s3 Jul 25 04:59:07 ebay man... someone invent a new ebay Jul 25 04:59:19 if it looks like a bug with setOffScreenPageLimit in the compatibility library it more likely that it's not in a folder called "libs" Jul 25 04:59:21 I sold an iphone4 and it was a miserable experience Jul 25 05:00:59 like 10 people offering me about 200 less for it than its worth, asking me stupid questions... or demanding stuff Jul 25 05:01:11 I'm going to bid, unlock it so I can use it on tmobile Jul 25 05:01:14 like wtf Jul 25 05:01:22 ron_frown: asking you to take western union and post it to Nigeria? Jul 25 05:01:23 nevermind Jul 25 05:01:25 i figured it out Jul 25 05:01:26 so this girl just won... and 2 minutes after auction is over I get an email that says Jul 25 05:01:34 i have to run setContentView Jul 25 05:01:55 "...I really want this item, would it be ok to pay you in full next week?" Jul 25 05:01:58 WTF?!!? Jul 25 05:02:08 Mr_Grim: you do if it's the root view in your layout, yes Jul 25 05:02:12 when is it ok to bid/order something when you aint got the cash money Jul 25 05:02:13 @eSatsu what API level is your emulator? does it have JIT? Jul 25 05:02:18 not if you're adding it to an existing layout Jul 25 05:02:46 avoid iterators when parsing Jul 25 05:06:27 where does your "promotional graphic" show up, and where can i see it. Jul 25 05:06:41 since it comes with a caption that im not seeing. Jul 25 05:07:00 i figure it exists somewhere apart from the main page on the googleplay details Jul 25 05:09:42 hey I try to compare two essids one from a wlan scan and one that I get from the existing config.I compare every ssid from wifi.getConfiguredNetworks() with the ssid I need but even thought it's exactly the same ssid if doesn't seem to share my opinion Jul 25 05:10:11 in the docs it says "if your multi-pane tablet layout requires at least 600dp of screen width, you should place it inlayout-sw600dp/", but what do i use if i want to target devices with at least a miniumum HEIGHT, not width? Jul 25 05:10:47 would it be layout-port-sw600dp? Jul 25 05:12:46 h600dp? Jul 25 05:13:11 i get this exception: java.lang.ClassCastException: android.app.Application cannot be cast to android.app.Activity... how can I programatically find the current activity i am in? Jul 25 05:14:05 chuckk: is that the same as smallest height though> i'm a little confused between sw and w quantifiers absically Jul 25 05:14:31 it will change when the orientation of the device changes Jul 25 05:15:01 sw doesn't Jul 25 05:15:24 ohk Jul 25 05:16:17 @thomas, are you comparing Strings? Jul 25 05:16:30 so if my device is 120dp in height, and 240dp in width , the sw takes 240dp as absolute, but w takes it as 240dp in portrait and 120dp in landscape? Jul 25 05:17:58 yeah, the s is for smallest i.e. the shorter measurement Jul 25 05:18:17 chuckk: ahh thanks Jul 25 05:18:24 so in your example though, it would be sw=120dp Jul 25 05:18:40 yeah right Jul 25 05:20:38 chuckk: yes I'm Jul 25 05:21:57 you know you can't use == for Strings? maybe you need to trim()? Jul 25 05:21:58 they even got the same md5sum yet the value read out of the config doesn't even validate when compared to it's actual string value (the other variable does) Jul 25 05:22:41 Hi guys. I'm here for some valuable suggestions from you people. I'm planning to develop a book store app for Android, something like iBooks for iPhone. But apart from normal text+image pages, I'm planning to include simple animations, audio background along with the content. This is to provide a better reading experience to the users. I'm planning to use Urban Airship as the backend. What do you guys think? Please share your thoughts on this. Than Jul 25 05:22:42 ks in Advance. Jul 25 05:23:46 Oh I hate java (I actually googled because I rememberd something like this but I seem to need some sleep) thx chuckk Jul 25 05:24:00 no problem Jul 25 05:24:12 I now try .equals Jul 25 05:25:13 fun fact even thought I'm a no good at java I passed every java test at the university ^^ Jul 25 05:26:00 says more about your university than you ;o) Jul 25 05:26:19 and you are right again ;) Jul 25 05:26:43 got the worst java professor of all time helmut balzert Jul 25 05:31:43 napster - you know there is a book format, and book store for android right? Jul 25 05:32:09 I have a scroll view wrapping long textview in a relative layout with another textview beneath the scroll view, but when the long text view is long and scrollable, the other textview completly is missing from the bottom, how to fix? Jul 25 05:32:16 ron_frown: Yes I know. But does that support animations inside the book? Jul 25 05:32:39 ron_frown, obv napster is making an "adult" bookstore (hence the animations) Jul 25 05:32:56 ;) lasserix lol Jul 25 05:34:09 Actually what I'm planning is to release my own comic books through the app. Users can purchase books as in-app purchases. lasserix ron_frown Jul 25 05:35:15 yeah I am pretty sure it does suppor animations Jul 25 05:35:26 I dont know if you can draw a crapload of vector frames or anything Jul 25 05:36:23 ron_frown: ok. Where can I refer this book format. I have heard about this but can you throw me a link? Jul 25 05:37:21 I dont know Jul 25 05:37:25 I'm not a book author =) Jul 25 05:37:33 google COULD be your friend if you ask nicely Jul 25 05:38:10 ron_frown: let me ask 'nicely' Jul 25 05:42:41 whats a good minimum dp for reading a paragraph of text? Jul 25 05:43:06 you mean sp? Jul 25 05:43:13 no Jul 25 05:43:37 i should use sp but i'm draconion about fonts Jul 25 05:43:52 well then... f you Jul 25 05:43:55 j/k Jul 25 05:43:56 I dont know Jul 25 05:44:33 no seriousily, i should use sp Jul 25 05:50:16 Anyone had a read of this Jul 25 05:50:18 http://yro.slashdot.org/story/12/07/24/205211/app-developer-android-designed-for-piracy Jul 25 05:50:24 thoughts? Jul 25 05:53:09 comments have a lot of deep thoughts Jul 25 05:53:34 I think that Google are not interested in their 30% of paid apps like Apple is. They would prefer all ad-supported. Also Android is by no means a completed, robust platform like iOS has been for a while. Jul 25 05:54:14 iOS apps drive hardware sales which Apple benefit from directly, not the case with Android Jul 25 05:54:27 it's really more a data-collection platform Jul 25 05:54:34 anyways my language faculty is failing me, time to shove off goodbye Jul 25 06:03:13 hmm Jul 25 06:03:27 I want to develop an app for Android, to learn the API etc Jul 25 06:03:33 and also potentially make $$ Jul 25 06:03:47 that article was a little disheartening Jul 25 06:04:09 you won't make money as a one-person developer/publisher Jul 25 06:04:30 you should learn the API and develop an app to understand the ecosystem Jul 25 06:04:50 but getting paid is either hobbyist income from adverts or working for a salary Jul 25 06:05:09 :( Jul 25 06:05:29 I work as a PHP dev, and do android dev in free time Jul 25 06:05:47 I can understand wanting to get out of PHP lol Jul 25 06:06:02 too true Jul 25 06:06:05 actually the signing/apk encryption in android jb should go a decent way in helping prevent android app piracy Jul 25 06:06:32 i love gaming, and have a couple of mates who are developers as well as a graphics artist .. we want to create a game Jul 25 06:06:36 piracy is not the only problem though Jul 25 06:06:53 the spending habits of iOS users are different (better for developers) Jul 25 06:06:58 i would love to do it regardless of the $$, but $$ is a nice incentive Jul 25 06:07:05 true that Jul 25 06:07:17 also the barrier to entry for Android is lower (one time registration fee vs annual etc.) Jul 25 06:07:20 but Android is open source, i don't want to develop for APple Jul 25 06:07:25 Naish: if you've got the resources and the creativity to put together a good game, you've got a chance for success... Jul 25 06:07:25 so it is a race to the bottom Jul 25 06:07:41 if you build up some skills, you've got a chance of getting contract work for $$, if that's what you want Jul 25 06:08:02 yeah exactly, get people to pay you for development, not for what you've developed Jul 25 06:08:03 It would be great to become a game developer Jul 25 06:08:20 not that many places wanting android game devs Jul 25 06:08:27 especially an inexperienced one Jul 25 06:08:29 unless you're lucky and/or very good, you're not going to make big $$ on game dev... you won't be Rovio Jul 25 06:08:41 actually, I think there are lots of places looking for Android game devs now Jul 25 06:08:54 oh right Jul 25 06:08:57 maybe I should look into it Jul 25 06:09:04 obviously once I get my head around the API Jul 25 06:09:13 but there is no guarantee I will be working on a game I want to Jul 25 06:09:22 ideally I want to create a game I myself enjoy Jul 25 06:09:58 very few people work on only what they want Jul 25 06:10:31 sadly, that's the truth Jul 25 06:10:33 I can always dream Jul 25 06:10:57 if you don't pursue your dreams you'll never achieve them, not be disillusioned, just be realistic Jul 25 06:11:38 get a couple of apps in the play store and you will be a much stronger candidate when applying for positions Jul 25 06:11:53 even flashlight apps or whatever, it doesn't have to be the next angry birds Jul 25 06:12:11 the only skill you really need to demonstrate is that you can deliver Jul 25 06:12:26 there is actually a very valid strategy of turning out a few smallish apps, and letting the revenue build up Jul 25 06:12:29 Does anyone have any suggestions (there are so many on Google) for determining that the HorizontalScrollView is being scrolled OR its current resting position? Jul 25 06:12:32 still not likely to be a full-time job Jul 25 06:12:39 People looking for android devs are looking for really hardcore devs Jul 25 06:13:11 like you should know why and when to use every bit of the sdk Jul 25 06:13:15 shit we need to hire more android devs Jul 25 06:13:23 not exclusively, you can keep yourself afloat just doing ports of iOS apps for craiglist advertisers Jul 25 06:13:26 That's just my experience though Jul 25 06:13:54 I built my own rom for custom hardware, a big ass software package for the hardware Jul 25 06:14:00 and I gotta say we are WAY understaffed Jul 25 06:14:07 we could have at least two more engineers full time Jul 25 06:14:09 android all day long Jul 25 06:15:00 if the person interviewing you doesn't understand the questions they are posing, they are just HR and wasting your time. Nobody knows the whole sdk without need for reference, and by the time they had learned it, it has iterated anyway. Don't be disillusioned. Jul 25 06:15:29 I just had a few interviews for android dev positions where I didn't even get a call back Jul 25 06:15:39 honestly... 90% of the engineering interviews I've seen would not produce valid candidates Jul 25 06:15:43 even though I have apps on the market and I answered the tech questions really well Jul 25 06:15:57 Fitz, interviews aren't all about knowledge Jul 25 06:16:00 it's presentation etc Jul 25 06:16:06 you callin' me a jerk? Jul 25 06:16:10 yes Jul 25 06:16:12 fitzpantson - the other half of the problem is waht amounts to an overly saturated job market Jul 25 06:16:13 Hah, I don't know you Jul 25 06:16:43 I am just saying, we had a few interviews recently, and one of the guys knew his stuff, but came across as very arrogant and full of himself, so wasn't hired Jul 25 06:16:51 right Jul 25 06:17:16 attitude is important :) i wouldn't want to work with a guy like ron_frown XD Jul 25 06:17:17 in my case it was more of my lack of specific knowledge and the massive number of candidates they had come in Jul 25 06:17:18 yeah, that's an important point, that learning to code alone doesn't teach you to be a team player Jul 25 06:17:20 you need someone who the rest of the employees will enjoy working with Jul 25 06:17:38 I'm talking about the SF/Palo Alto area though Jul 25 06:17:42 ah right Jul 25 06:17:50 also, i have seen lots of jobs wanting someone to do ios and android Jul 25 06:18:09 presumably, they will want you to know wp8 as well :) Jul 25 06:18:13 then I can see your issues in a location like that, didn't mean to imply you weren't hired because you were a horrible person Jul 25 06:18:16 g00s: dream on Jul 25 06:18:24 yes, I was joking about the jerk comment Jul 25 06:18:28 i have a hard time knowing 2 operating systems Jul 25 06:18:34 REQUIRED: 10 years experience in Mountain Lion development Jul 25 06:18:35 i won't be able to be good at 3 Jul 25 06:18:46 I hate those sorts of ads Jul 25 06:18:52 chuckk: hell, REQUIRED: 5 years experience of Android Jul 25 06:18:54 The listings her really have things like 5+ years of android experience as a requirement Jul 25 06:19:03 wtf Jul 25 06:19:13 I ahve 5 years PHP dev, does that count? Jul 25 06:19:15 :( Jul 25 06:19:26 You can make just as much money as a Drupal dev Jul 25 06:19:28 seriously Jul 25 06:19:31 development experience is experience period Jul 25 06:19:58 if you are a competent programmer the language and platform is not an obstacle Jul 25 06:20:04 "Apple on Tuesday was granted a patent regarding browsing and selection of digital media on a connected device using the Cover Flow interface" oh man Jul 25 06:20:08 I ended up taking a QA job for a more well-known app Jul 25 06:20:10 I work for Moodle atm, it's a good company :) Jul 25 06:20:20 because the dev and PM positions are crazy Jul 25 06:20:23 argh, i just got owned so hard for not doing proper version control in this project Jul 25 06:20:23 nice Jul 25 06:20:30 hell, you can join a company and then they pivot and you have to do something different anyway Jul 25 06:20:35 yup Jul 25 06:20:47 for some reason my stuff started crashing from 2 files ago despite not changing anything and i cant get stuff to work anymore Jul 25 06:21:35 g00s - I dont remember the name of it, but my dr put me on drugs where I jsut dont give a fuck Jul 25 06:21:40 and I gotta say... its been awesome =) Jul 25 06:21:49 if you have difficulty setting up a VCS just put your workspace in your DropBox Jul 25 06:21:55 inderol Jul 25 06:21:57 great stuff Jul 25 06:22:00 I dont know Jul 25 06:22:00 ron_frown: were they antidepressants for work :) Jul 25 06:22:23 I was talking about high blood pressure and shit, and he was talking to me about work Jul 25 06:22:32 oh, heh Jul 25 06:22:33 I told him I want something that makes me just not give a fuck Jul 25 06:22:35 not get bent Jul 25 06:22:42 because I seriously work with idiots Jul 25 06:22:48 haha Jul 25 06:22:58 big ol chunks of functionality that we release to customers, and it miraculously breaks Jul 25 06:23:08 I start digging into it, and there is no possible way it ever worked Jul 25 06:23:19 looks like the new os x is due out tomorrow : i recommend not upgrading to it ;) Jul 25 06:23:22 people are adamantly against unit testing so you get what you et Jul 25 06:23:24 face palming er'y day Jul 25 06:23:35 fitzpantson - def Jul 25 06:23:35 well, i nominate ron_frown to be our canary Jul 25 06:23:40 go home, smoke a number and play a game will lower your blood pressure Jul 25 06:23:40 wtf is canary Jul 25 06:23:47 beta tester Jul 25 06:23:55 ron_frown: ever heard of a canary in a mine? Jul 25 06:23:59 honestly I dont feel like giving apple *ANY* money Jul 25 06:24:00 i always wait a few point releases with apple stuff Jul 25 06:24:17 they are despicable Jul 25 06:24:19 I am not buying any more of their hardware or software and its solely because of how they are bullying everyone with their patents Jul 25 06:24:39 how long did it take you to realise that? Jul 25 06:24:55 no no... I think its really gotten a lot worse in the last 6mo Jul 25 06:25:17 I'm a tech pundit, fanatic, evangelist, etc Jul 25 06:25:20 its almost like they are picking up steve's torch or something Jul 25 06:25:30 'and one more for steve!' Jul 25 06:25:31 I do wonder if there's any chance they will genuinely push things too far and actually turn off a significant portion of the developer community - who are generally very pro-Apple Jul 25 06:25:35 and when I see companies basically shitting all over the industry because of greed Jul 25 06:25:41 I dont know... very sad. Jul 25 06:26:03 Leeds there are judges that are starting to call apples bs Jul 25 06:26:31 their earnings report will have knock-on effects throughout the industry Jul 25 06:29:44 they are up to their usual shenanigans... if they'd focus even 1/10th the efford they do on patent trolling, in ios/osx innovation Jul 25 06:29:57 they'd probably be making at least that much more moey wihtout the suits Jul 25 06:33:29 those are bs figures I pulled outta my ass Jul 25 06:33:42 I am just more about supporting businesses that have better intentions Jul 25 06:34:15 like I do think google has way more data, and way more ability to abuse it, but seems like they arent always blatantly fucking customer over at any possible corner Jul 25 06:41:43 another useless attempt I guess but let's ask anyway. I'm using webview and have set up CookieManager and called it's setAcceptCookies method with true parameter. Yet when I have webview point call login page with username/password provided in post it does log in but there's warning on page that cookies are not used and part of the page not working(no suprise). If I open up browser and Jul 25 06:41:43 manually log on it works(and seems like even my application then works). Jul 25 07:10:23 my activity's theme is Light.DarkActionBar, i'm trying to show a dark dialog fragment. I used a context wrapper to set a different theme, but no combination is making it dark. This is how the wrapper is used http://pastebin.com/R7EiAdze Jul 25 07:21:11 dialog fragments don't use layouts Jul 25 07:21:23 or rather, the dialog portion of them doesn't Jul 25 07:22:24 there is a create dialog method in the fragment which you should be overriding to create the dialog Jul 25 07:22:31 that is where you should use the context theme wrapper Jul 25 07:23:51 oi Jul 25 07:24:12 oh i thought i was doing it right coz using differnet themes changed the look Jul 25 07:24:15 JakeWharton: thanks Jul 25 07:25:55 yup. no surprise this time either Jul 25 07:34:39 huh, didn't realize there was adt 20.0.2 Jul 25 07:56:41 Is it possible to get an answer to why an app is unavailable on Google Play for a certain device? Jul 25 07:57:48 A friend of mine can download an app to his 7" but not his 10" tablet since Google Play says it's unavailable. He thinks he has 1280x800 resolution on both devices. Any clues? Jul 25 07:58:58 luyang: the screen support in the manifest? Jul 25 08:00:46 edwinkcw: but does the supports large screen tag help when it goes from 7 to 10" with same resolution? Jul 25 08:01:04 10" is xlarge Jul 25 08:01:22 I'm doing some Android development. I have a large image with a scroll view. I need to determine where my user touched. I've got on touch listener working well with location of the touch. However, I want to know where he touched. HOw could i identify then search for what the user touched.. Jul 25 08:01:45 luyang: yep, SimonVT is correct Jul 25 08:01:51 SimonVT: but when I tried to type supports xlarge in the manifest I got an error that the tag didn't exist. Jul 25 08:02:01 I am pretty certain you can offset by scroll position, but you may not need to Jul 25 08:02:07 Ie. I want to populate an array list (?) with the coordinates of parts of the image, then query that based on the x y coords of the touch, to determine if the user touched a tree or a car. (if my image had trees andc ars) Jul 25 08:02:12 Then you're probably using an old build target Jul 25 08:02:20 I think if you have a custom imageview INSIDE the scrollview, the touch event may be adjusted Jul 25 08:02:23 Is it good practice to add supports large and xlarge when the app has not been specifically designed for these form factors? And does support xlarge imply that it supports all other form factors too? Jul 25 08:02:36 luyang: Jul 25 08:02:40 SimonVT: I'll check that thanks Jul 25 08:02:46 edwinkcw: yes? Jul 25 08:02:48 luyang: try to use 3.0+ Jul 25 08:02:54 well, what I knocked out today is going to just absolutely blow my boss/his boss away... or get me in hot water =) Jul 25 08:03:42 edwinkcw: I use Jul 25 08:04:46 edwinkcw/SimonVT: i have build target set to 16 but only get small, normal, large, resizable and anyDensity Jul 25 08:05:11 perhaps it's enough to set the build target to 16? before I just used the min version Jul 25 08:05:13 targetSdkVersion != build target Jul 25 08:05:22 dont you mean Jul 25 08:05:29 SimonVT: Aaaaah! :D Jul 25 08:05:29 targetsdk != minsdk Jul 25 08:05:34 SimonVT: How to set build target Jul 25 08:05:41 Project settings Jul 25 08:05:53 Java Build Path/Libraries? Jul 25 08:05:57 ron_frown: targetsdk != build target != min sdk Jul 25 08:05:59 There's fixed Jul 25 08:06:09 There, fixed* Jul 25 08:07:12 I just changed project.properties target=android-8 to target=android-16 and it seems to have worked Jul 25 08:07:25 now is it enough to add xLargeScreen? Will that support all screen sizes? Jul 25 08:10:01 It'll support xlarge screens Jul 25 08:10:10 Stop thinking in resolutions, if that's what you're doing Jul 25 08:10:17 It's all about size and density Jul 25 08:12:08 Guys, I'm facing a weird issue, I'm listing a directory on click I repopulate the listview with child items, I'm overriding the onKeyDown and shows the parent list when back is pressed Jul 25 08:12:48 it was working well for long, but out of blue when I repopulate the list on back , It truncates the textView text to Tex... Jul 25 08:13:25 man tomorrow is going to be a bear Jul 25 08:13:39 wish this thing would hurry up and finish exporting Jul 25 08:13:41 and .. I don't have stack trace Jul 25 08:13:48 4hr sleep no bueno Jul 25 08:13:49 :( Jul 25 08:14:18 http://www.theverge.com/2012/7/24/3184819/trustwave-google-android-security-blackhat Jul 25 08:16:12 g00s Jul 25 08:16:15 it happens Jul 25 08:16:25 jellybean is undeniably a lot safer Jul 25 08:18:48 my emulator is not excepting anymore keybord inputs from my local keyboard, someone can help me please? Jul 25 08:19:15 the interesting thing is, did they just augment malicious functionality to the original version, or did they also work outside the originally declared permissions ? Jul 25 08:20:09 drindt: go into the AVD manager and add the "hardware keyboard" attribute to your instance and set it to yes Jul 25 08:20:23 g00s: I remember a similar conversation taking place here not too long ago Jul 25 08:20:46 yes, i was involved with that i think - if it was a few days ago, maybe a week ago Jul 25 08:20:59 googlers thought it was not possible Jul 25 08:20:59 something like that Jul 25 08:21:07 yeh, that's what I recall Jul 25 08:27:11 chuckk, thank you Jul 25 08:27:36 no problem Jul 25 08:30:14 g00s: dex injection is nothing new, it doesn't bypass permissions Jul 25 08:30:38 Google even made a blog post on how to do it some time ago Jul 25 08:33:21 SimonVT: of course :) injecting code intended for bouncer to catch is what is new Jul 25 08:40:12 it would be cool if i could upload more screenshots at once! :) Jul 25 08:40:54 turn on auto upload for dropbox , or google plus Jul 25 08:41:03 both instant upload Jul 25 08:42:40 im speaking of the android dev console Jul 25 08:42:46 sorry, that wasnt clear Jul 25 08:43:00 ahh Jul 25 08:43:06 yes i am with you on that one Jul 25 08:43:12 :) Jul 25 08:46:59 hey anyone up? What's a quick to to stop an app from orientation change Jul 25 08:47:16 I did it a while ago, and going back to my app I want to disable what I did but I don't remember how I did it Jul 25 08:50:01 android:screenOrientation="portrait" to enforce a mode Jul 25 08:50:59 manifest, right? that's what I thought but I can't find it Jul 25 08:51:20 you should look at configChanges if this is what you are trying to do Jul 25 08:51:41 it goes in the activity, not the application Jul 25 08:51:42 hi Jul 25 08:51:59 it's not there by default Jul 25 08:52:20 it's not cool to lock down orientation (see the Nexus7 launcher) Jul 25 08:52:21 A while ago I had layout-land problems and I think stuck my app in portrait, so now I'm trying to reverse it Jul 25 08:52:38 yeah so I'm just trying to find how i locked it Jul 25 08:52:48 either that, or I messed something up and it's not rotating anymore Jul 25 08:53:24 oh Jul 25 08:53:26 It's in the layout Jul 25 08:53:30 found it, thanks! Jul 25 08:53:41 No it's not, just kidding Jul 25 08:54:18 hi, i'm trying to change my SubMenuItems textColor in ActionBarSherlock programatically, does anyone know how to get to the textview ? http://pastebin.com/3RYdDv7J Jul 25 08:55:11 Wouldn't ABS and ICS have different views? Jul 25 08:55:18 since ABS is just a shim Jul 25 08:58:57 It's most likely not possible to get the textviews Jul 25 08:59:35 They aren't constructed until the menu item is actually clicked Jul 25 08:59:47 And Android most likely doesn't expose any way to get them Jul 25 09:03:47 arrgh Jul 25 09:04:04 is there a way to access an indvidual submenu item then ? Jul 25 09:04:15 and change its color ? Jul 25 09:06:37 You can stop using submenu and make your own dialog Jul 25 09:06:54 Then you're free to use whatever layout or color you wish Jul 25 09:07:16 why do you want to change the colour in the first place, is there a better way of doing what you're attempting? Jul 25 09:07:29 Hi all Jul 25 09:09:10 danharibo i wanted to change it to mark the last clicked menu item Jul 25 09:09:53 can someone please help me resolve this - http://stackoverflow.com/questions/11643798/issue-with-gridview-focus Jul 25 09:10:33 i could also use a list navigation, but i would have to be able to set a "title" element instead of defaulting to the first menu item Jul 25 09:15:37 Hi everyone , is url parameters like blabla.html?param=bla supported on Webviews ? Jul 25 09:17:53 Is it possible to set lineheight for text in android as you would in HTML? Jul 25 09:17:58 or css Jul 25 09:28:10 Im having trouble with SQLiteOpenHelper. Has anyone else seen these problem or know how to solve them? Jul 25 09:28:10 The connection pool for database 'mydb' has been unable to grant a connection to thread 8046 (AsyncTask #3) with flags 0x1 for 150.011 seconds. Jul 25 09:28:11 Connections: 0 active, 1 idle, 0 available. Jul 25 09:28:24 The connection never returns to available, so the entire database is permanently locked for me... Jul 25 09:31:05 Hi :) Jul 25 09:31:18 johanhar: this is the bit where you apologise and say thanks Jul 25 09:31:38 Sorry, thanks Jul 25 09:34:05 How do I run my app in the emulator with different "screen types"? I am trying to make use of a drawable but not sure where to put it, xhdpi, mdpi etc. Jul 25 09:34:18 Hi there a way to use url params on a webview ?? Jul 25 09:35:53 johanhar: set up different avds using the avd manager Jul 25 09:35:57 johanhar: you create AVDs for each size you want to test Jul 25 09:37:03 Thanks Jul 25 09:42:00 http://youtu.be/B0PKmhlqH3M :> Jul 25 09:42:49 does anyone have an android tablet with the MIPS processor? Jul 25 09:45:56 I think the last thing I owned with a MIPS cpu was a Playstation 2 Jul 25 09:48:05 How can I make a project for testing an android project, that gets access to my package private classes? Jul 25 09:52:23 how do i copy something to the clipboardd in 2.3.3? the os has built in functionality to do it so there must be a way Jul 25 09:52:31 the clipboard manager requires api 11 x_x Jul 25 09:52:31 why can't i call getSupportActionBar() from a fragment that extends SherlockFragment and implements ActionBar.OnNavigationListener ? Jul 25 09:52:47 ddreamer0: getActivity().getSupportActionBar() Jul 25 09:53:11 a fragment is just a view inside an activity Jul 25 09:53:34 android:id="@+id/" vs android:id="@id" ? Jul 25 09:53:43 @+id creates an id Jul 25 09:53:47 @id references one Jul 25 09:53:52 Thanks :) Jul 25 09:56:20 CallumTaylor ahaa ok i can also use getSherlockActivity Jul 25 09:56:55 CallumTaylor: i'm following https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/ListNavigation.java Jul 25 10:00:51 but i'm doing it from within a fragment, so i should probably be doing it from onActivityCreated Jul 25 10:01:07 instead of onCreate Jul 25 10:04:59 correct Jul 25 10:41:48 can someone please help me resolve this - http://stackoverflow.com/questions/11643798/issue-with-gridview-focus Jul 25 10:50:15 i try to use scanner's inputstream construct (http://developer.android.com/reference/java/util/Scanner.html#Scanner(java.io.InputStream)) Jul 25 10:50:38 and at compile i got error; its say no construct with inputstream Jul 25 10:51:24 oh forgot new; sorry :) Jul 25 11:07:35 http://developer.android.com/reference/android/widget/TextView.html. There are bunch of examples on the web and books that use xml attributes that is not in that list, like android:layout_width. How come? The examples works as well... Jul 25 11:10:42 jonanhar, it inherits its super class Jul 25 11:11:57 layout_width is the same for every view Jul 25 11:12:05 its not textview specific Jul 25 11:14:07 Ok Jul 25 11:14:08 Thanks Jul 25 11:14:11 anyone know how i edit a layout in eclipse gui editor if its taller than one screen? Jul 25 11:14:19 hi guys Jul 25 11:14:27 switch the perspective to XML view Jul 25 11:14:29 i'm a new developer :) Jul 25 11:14:38 CallumTaylor yeh but i wanna edit graphically :) Jul 25 11:14:42 why Jul 25 11:14:48 the gui sucks balls Jul 25 11:14:54 many reasons, one being that its easier Jul 25 11:15:04 i cant visualise it properly from code Jul 25 11:15:12 man up Jul 25 11:15:13 its not like u can fire it up in a browser every few seconds Jul 25 11:15:19 well how do u check it? Jul 25 11:15:24 i don't need to Jul 25 11:15:27 each time have to launch on device? Jul 25 11:15:29 i know how it will look from the xml Jul 25 11:15:33 hah Jul 25 11:15:42 'cause he's a pr0 Jul 25 11:15:44 i wrote websites by hand for 9 years Jul 25 11:15:45 lol Jul 25 11:15:48 and i dont know for sure Jul 25 11:15:52 so it should be easy then Jul 25 11:16:07 still not a solution really Jul 25 11:16:13 the editor should be able to scroll Jul 25 11:16:17 it should Jul 25 11:16:20 it should also not be shit Jul 25 11:16:25 hehe Jul 25 11:16:31 i dont find it that shit anymore Jul 25 11:16:44 i rarely go into the xml view Jul 25 11:17:02 theres no way to edit view properties, custom views don't load properly, i have to switch from xml to gui for it to work sometimes Jul 25 11:17:14 oh yeh it blows in many ways Jul 25 11:17:20 but no worse than say dreamweaver Jul 25 11:17:29 so guys a little question, how long does it takes to activate my developer account? Jul 25 11:17:35 god i NEVER used the gui interface on DW Jul 25 11:17:36 no worse than dreamweaver.. Jul 25 11:17:41 I've seen some of the stuff DW puts out Jul 25 11:17:44 probably couple hours Jul 25 11:18:01 no worse then using photoshop to build a website Jul 25 11:18:07 dat splicing and table views Jul 25 11:18:20 One guy had managed to put a whole website inside an img tag Jul 25 11:18:32 he should be shot Jul 25 11:18:34 thing is the editor used to scroll down Jul 25 11:18:45 i think i just need to target an older sdk for this bit Jul 25 11:19:12 ah shit Jul 25 11:19:13 http://s.scruffyfox.me/i%202012-07-25%20at%2012.19.08.png Jul 25 11:19:20 this is what i get for looking at the graphical layout Jul 25 11:19:27 yeh Jul 25 11:19:30 i used to Jul 25 11:19:35 i reinstalled all of eclipse etc Jul 25 11:19:39 it was better then Jul 25 11:19:46 maybe one day Jul 25 11:19:49 yeh pita Jul 25 11:20:00 waiting for inttelij gui editor i think it might even be out now Jul 25 11:24:06 so guys a little question, how long does it takes to activate my developer account? Jul 25 11:24:15 usually a few hours Jul 25 11:24:20 maybe a day Jul 25 11:27:59 Hello, I need to use .so library in my app, how can I include it ? Google gives too many different solutions not sure which one is right way of doing it. Jul 25 11:32:16 has anyone attached .so file to app? Jul 25 11:33:21 I cant make one adapter that takes several views? have to make one adapter for each view? I have a ListView, and within there I have three TextViews. I am making an adapter to put text into those three TextViews. Does that mean I have to make three adapters? Jul 25 11:33:50 within there: for each item in the ListView Jul 25 11:35:02 tornike: you have to implement the JNI to use your functions from your so file Jul 25 11:37:00 edwinkcw: thank you Jul 25 11:44:42 i have a problem: /home/android/android-project/obj/local/armeabi-v7a/objs/ogles2/OGLRenderer.o: In function `glEnable_switch': Jul 25 11:44:44 /home/android/android-project/jni/src/OGLRenderer.cpp:201: undefined reference to `glEnable(unsigned int)' Jul 25 11:44:52 but it is exported by a static library which i link against Jul 25 11:45:00 in the .h of the static lib i have glEnable(GLenum e) Jul 25 11:45:06 but GLenum is typedef'ed to unsigned int Jul 25 11:45:08 ah i made a custom config CallumTaylor so i can make a screen 3000 px high if i need :) Jul 25 11:45:22 lol Jul 25 11:45:34 ive got one 480x3000 Jul 25 11:45:35 lol Jul 25 11:45:43 sounds like a cool phone Jul 25 11:45:55 hehehe Jul 25 11:48:40 I'm having a problem updating the SDK, (platform tools from 16 to 20), the error is "SDK Manager: failed to install: a folder faild to be moved typically that means that something is accessing that folder. '...\android-sdks\platform-tools' close it and try again" Jul 25 11:49:04 the only thing that could be at fault is eclipse, but that's running the updater Jul 25 11:49:23 nevermind, it started a seperate instance of the updater Jul 25 11:49:29 got it running Jul 25 11:49:31 on ICS sometimes I have connection problems with icb and opera mini but the regular browser and play store work fine... any ideas on if there's some old API they might be using that doesn't always work or something similar? it's really puzzling that the internet connection seems to be working but then not with these apps Jul 25 11:49:36 I'm trying to analyze icb in hopes of fixing this... Jul 25 11:50:24 no ndk devs here? Jul 25 11:54:35 Hi, is there a dev here who's knowledgeable about streaming display contents over wifi? (like this: http://esrlabs.com/android-transporter/) Jul 25 12:02:25 can i have a class extend 2 classes ? Jul 25 12:04:01 ddreamer0, not in java no Jul 25 12:04:17 java does not have multiple inheritance Jul 25 12:07:08 you can implement multiple interfaces instead Jul 25 12:25:59 anyone can help me on my "class not found" error? http://goo.gl/ZqXHb Jul 25 12:27:11 ips|malc: add the jar to 'libs' under your project root Jul 25 12:29:18 ne body knows creating new dropdown Jul 25 12:29:27 not spinner Jul 25 12:30:03 aagam94: perhaps you could be more specific about what you're looking for Jul 25 12:30:16 wongk: still same err msg Jul 25 12:30:23 means i want to make a dropdown in andorid Jul 25 12:30:25 the jar is now displayed under my lib folder Jul 25 12:30:30 bt dont want spinner Jul 25 12:30:42 aagam94: a spinner is a dropdown, so i don't know what you want Jul 25 12:31:00 ips|malc: 'libs' Jul 25 12:31:11 means in spineer a popup comes..but i wannt to slide down Jul 25 12:31:30 aagam94: you'll have to write a custom widget for that Jul 25 12:31:30 wongk: sry, iu meant libs, there was already a folder libs in my project, i put the jar into that Jul 25 12:31:44 wongk do u know?? Jul 25 12:32:00 i know several things, i like to think Jul 25 12:32:15 u havin how much experience ?? Jul 25 12:32:26 wongk u havin how much experience ?? Jul 25 12:32:38 enough Jul 25 12:32:42 ohkk Jul 25 12:32:55 me just lyk a beginer Jul 25 12:33:17 so i want to ask what should i learn first Jul 25 12:33:20 wongk Jul 25 12:33:22 writing a custom widget is probably a little advanced for you then Jul 25 12:33:36 so i want to ask what should i learn first wongk Jul 25 12:33:42 why would you want to circumvent the controls that users are used to working with, anyway? Jul 25 12:33:59 not getting ? Jul 25 12:34:05 aagam94: http://developer.android.com/training/index.html Jul 25 12:34:08 http://blog.callumtaylor.net/archives/142 Jul 25 12:34:20 i wrote an article on custom controls, might be usful Jul 25 12:35:35 aagam94: that means users expect a drop-down to work how spinner works, but for some reason you want to make it work differently Jul 25 12:35:48 which is not what users ar eused to Jul 25 12:36:03 hmmm Jul 25 12:36:15 basically i am knowing basics good Jul 25 12:36:16 i guess Jul 25 12:36:21 now what should i do Jul 25 12:36:26 learn Jul 25 12:36:46 CallumTaylor, Jul 25 12:36:54 come up with an idea for an app and get started, or find an open source app you want to contribute to Jul 25 12:36:57 build an app Jul 25 12:37:13 theres no 'set list of stuff' you learn Jul 25 12:37:17 you learn stuff as you need to Jul 25 12:37:25 where do i find open source app which i can contribute Jul 25 12:37:34 github? Jul 25 12:37:51 k-9 mail is always looking for contributers Jul 25 12:37:57 ohkk Jul 25 12:38:22 aagam94: http://developer.android.com/training/basics/firstapp/index.html Jul 25 12:38:23 do that first. Jul 25 12:38:28 Also, talk like an adult Jul 25 12:38:37 no1 wil tak u srsly if u tak liek ths Jul 25 12:38:56 ^^ Jul 25 12:39:10 lov, ya i made some apps Jul 25 12:40:02 in that case, learn by taking some aspect of android you've never done before, and do something interesting with it. Jul 25 12:40:22 Learn services, learn broadcast receivers, learn sensors, learn LBS, learn networking, learn GCM Jul 25 12:40:41 thanks lov Jul 25 12:41:41 np Jul 25 12:42:17 wongk, Jul 25 12:42:30 how to contribute to K-9 mail Jul 25 12:43:29 how to find android projects which we can contribute??? Jul 25 12:43:30 join #k-9 Jul 25 12:43:37 aagam94: google Jul 25 12:43:39 read the topic Jul 25 12:46:06 any projects ongoing on android??? Jul 25 12:46:20 now you're just being annoying Jul 25 12:47:00 Sorry Jul 25 12:47:01 hahaha Jul 25 12:47:02 :p Jul 25 12:47:13 me a beginner Jul 25 12:47:15 sorrie Jul 25 12:47:27 rule of thumb: google, if you still can't find anything after an hour, then ask here Jul 25 12:47:41 ohhk CallumTaylor Jul 25 12:47:45 :p Jul 25 12:47:54 the internet is your oyster Jul 25 12:48:17 crack it open and suck out its innards? Jul 25 12:48:29 exactly Jul 25 12:48:48 hahahha Jul 25 12:50:04 has anybody worked with ViewPager? I'd like to use it do make something similar to an ebook reader, but my PageAdapter still needs a way to tell when there is no more space for text on one page ... Jul 25 12:53:53 bede_: this might be able to get you started: http://stackoverflow.com/questions/4794484/calculate-text-size-according-to-width-of-text-area Jul 25 12:54:57 I am trying to use so library in my app, I have included it in lib folder and made this class http://pastebin.com/XNwWq6vA. the functions are copied from c. So there are two questions, am I doing it right? and second, how to translate C datatypes to java datatype, for example what would const char * would be in java? Jul 25 13:01:58 wongk: thx Jul 25 13:02:53 tornike: there is this ebook reader app on f-droid.org, coolreader i think, it uses a c or c++ lib. maybe that can help you. Jul 25 13:03:45 bede_: thanks I'll try Jul 25 13:04:50 tornike: checkout the NDK and JNI Jul 25 13:08:20 any of you use mac? does mountain lion break anything ? Jul 25 13:08:22 wongk: I am reading at JNI docs right now :), thanks Jul 25 13:11:03 tornike: Definitely read the JNI docs. const char * doesn't actually translate to anything; you need to use JNI calls to manipulate jstrings Jul 25 13:15:01 hmm when i swap configs in the evlipse editor its not actually doing anything anymore, anyone seen this Jul 25 13:15:28 Good morning! I'm using the v4 support library and ActionBarSherlock for my app, and I'm having an issue with the screen rotation on sub 3.0 platforms. I keep getting this error on rotate with a spinner open on the dialogfragment >07-25 13:10:15.655: E/WindowManager(691): android.view.WindowLeaked: Activity com.example.stuffs.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44f93e40 that wa Jul 25 13:16:18 That would be only when the dialogfragment is open, and the spinner is open as well. if the spinner isn't open but the dialogfragment is, it rotates just fine. Jul 25 13:17:37 I've been trying to find a way to close the spinner when the phone rotates with no luck. I've also tried to dismiss the dialogfragment, but the onDestroy, onPause, and the onSaveInstanceState all cause errors when it does so. Jul 25 13:18:16 Hi All.. I'm trying to set up an admob banner through xml, using the example code : https://developers.google.com/mobile-ads-sdk/docs/android/banner_xml?hl=nl.. I keep getting a Fatal Exception though, caused by : android.view.InflateException ( stack trace: https://gist.github.com/3176134 ) Jul 25 13:18:54 my xml: https://gist.github.com/3176136.. The rest of the project is empty / standard eclipse project Jul 25 13:19:55 linux 64bit, latest adt and the emulator keyboard is stuck Jul 25 13:20:02 can't press a single key Jul 25 13:20:08 ThomQ, in my searches yesterday i came across a bunch of admob tutorials: the root cause is class not found, meaning you're likely missing a library on your build path Jul 25 13:20:48 I got the googleAdMobAdsSdk 6.1.0 in the java build path Jul 25 13:21:07 guys, how to make this layout in activity? http://jsfiddle.net/Yb3Q9/ Jul 25 13:21:41 woozly: gridlayout Jul 25 13:22:36 MDijkstra: ... can't figure out it.. I have LinearLayout, and I want to put like html table in it Jul 25 13:23:15 ThomQ, find out what JAR contains com.google.ads.AdView Jul 25 13:23:17 woozly: well, this channel is for android development support, not for getting other people to write your code for you Jul 25 13:23:38 o_O Jul 25 13:23:51 woozly, why dont you try an XML layout builder like in eclipse? Jul 25 13:24:03 woozly: gridlayout will do exactly what you want, it's not difficult to use Jul 25 13:24:08 if you have API 11+ you can use a master layout view Jul 25 13:24:23 and you have the visual editor as kaneda^ said Jul 25 13:24:35 which is much better thant he last time i used it in android 1.6 Jul 25 13:24:46 kaneda: That should be the googleadmob jar, right? Jul 25 13:25:00 ThomQ, no clue, never used admob, yuo'll have to open the JAR and find out Jul 25 13:25:32 it does work in graphical layout btw, I see the ads with google banner Jul 25 13:25:52 ThomQ, it gives you a runtime exception, not a compile time exception, correct? Jul 25 13:26:17 yes runtime Jul 25 13:26:27 then it's probably due to something like dependency injection Jul 25 13:28:53 com.google.ads.AdView is not inside the jar though Jul 25 13:29:12 A dependency injection; never heard of it, googling now Jul 25 13:29:27 any ideao on how to fix that? Jul 25 13:30:13 it just means that a dependency is learned at runtime Jul 25 13:30:19 hence the runtime exception for a missing class Jul 25 13:30:40 if you're familiar with reflection then i'm sure you'll understand Jul 25 13:32:17 i have to say, building layouts in android is far more elegant than in swing Jul 25 13:33:25 except for this problem right here, the final step, i've had no problems. Thought it would be harder to make it compatible with all the different screens Jul 25 13:33:26 and it could be more elegant yet... just kill some of the xml disease like the namespaces and the weirdness around @+id/ stuff Jul 25 13:33:46 then again, working in Unity on a mobile game, welcome to real Layout hell ;) Jul 25 13:33:48 I mean, is there any conceivable reason why you couldn't just have '' and have R.id.bar appear because you did that Jul 25 13:34:08 alankila, i'm actually just building everything programmatically because of the strange situation i'm in w/ unity Jul 25 13:34:35 making things complex just because you are a java programmer and used to making things more complex than necessary is no justification :-p Jul 25 13:34:37 ThomQ, yes, i'm working in unityr ight now :| Jul 25 13:34:49 (speaking of the android which has bits and pieces of this java disease) Jul 25 13:35:00 according to oracle it is the disease ;) Jul 25 13:35:12 and yah, i'm in favor of simplicity, like in python Jul 25 13:36:36 hi guys,anyone using intellijidea? Jul 25 13:36:48 i'm having an issue though, in my layout i have a button and a listview, an onclicklistener attached to the button and an onitemclicklistener attached to the list, and inside of each one is a Log.i("foo","bar"), and yet i see no bars showing up in logcat on click Jul 25 13:36:51 i am having this issue when try see preview layout Jul 25 13:36:57 This version of the rendering library is more recent than your version of IntelliJ IDEA... Jul 25 13:37:20 hello Jul 25 13:37:31 @ kaneda; Then you know the hell I'm talking about.. I'm almost there though.. That's why I made this app and am implamenting ads Jul 25 13:37:44 ThomQ, yep, the lack of documentation is especially frustrating Jul 25 13:38:00 I got it working by the way..: "Have you recently updated your Android Tools to r17 or higher? If so, you need to create a libs/ folder in your project, and physically put the SDK in the project. Or, in the Java Build Path, you must Order and Export the SDK jar" Jul 25 13:38:11 wow Jul 25 13:38:21 anyone knows how apps like facebook store the login information ? I tried to find my fb login information on a rooted android phone but I wasn't able to, and I want the same secure storeage for my app. can someone help me ? Jul 25 13:38:22 kaneda: I'm using NGUI, makes it a little bit easier Jul 25 13:38:45 ThomQ, i'm in the early stages so i'm experimenting with how to hide and show other layouts still Jul 25 13:39:02 anyone knows this issue : This version of the rendering library is more recent than your version of IntelliJ IDEA... Jul 25 13:39:12 if i'm detecting gestures on a view that contains a webview, how do i make it so that the webview doesn't override the gesture? Jul 25 13:39:39 ThomQ, you might know why my listeners arent working then Jul 25 13:40:58 probably not man, I have no expierence using them both together Jul 25 13:41:07 Pinas: odds are that they use a token instead of your actual credentials. Additionally, it's probably using the credentials management stuff in the frameworks. Jul 25 13:41:16 blah, it shows the views, maybe it just doesnt work in the emulator? Jul 25 13:41:33 that's probably also why we got in so much trouble trying to build the android version Jul 25 13:41:40 Pinas: http://developer.android.com/reference/android/accounts/AccountManager.html Jul 25 13:41:51 ThomQ, what kind of trouble, so i know what to watch out for Jul 25 13:41:54 "For example, Google, Facebook, and Microsoft Exchange each have their own authenticator." Jul 25 13:41:54 nice thank you lov Jul 25 13:45:59 mainly GUI related, weird sizes on different devices etc Jul 25 13:46:16 ThomQ, yah, i'm having a tough time with the GUI stuff as well Jul 25 13:46:34 i find taht multiple activities is roughly impossible, but multiple views/layouts is fine Jul 25 13:48:31 Which Android SDK is recommended to build with, assuming my project doesn't use any features above API Level 4? Jul 25 13:48:43 i'd probably go with the latest Jul 25 13:48:53 the latest and greatest! Jul 25 13:49:03 there are deprecated APIs that may not behave as you'd expect on even api level 5 devices Jul 25 13:49:06 canadiancow|work is the kim kardashian of android programming Jul 25 13:49:09 ThomQ, it's funny because i keep reading that you can use multiple activities, but all of the tutorials for integration point to a unity doc that doesnt exist any more Jul 25 13:49:16 i.e. contacts and foreground services Jul 25 13:49:30 soo better using a newer API on an older device vs an older API on a newer device... Jul 25 13:49:49 shad0w1e, for our project we require high end phones, so we can safely say that API level 10 and up are accepted Jul 25 13:49:59 if you want it to work on lower powered, older phones, you need to have a lower minimum sdk level Jul 25 13:50:01 no shad0w1e Jul 25 13:50:23 better doing: if (Build.VERSION.SDK_INT > Build.VERSION_CODES.GINGERBREAD) { /* do something */ } else { /* do something else */ } Jul 25 13:50:30 although that wont actually work if you're running on 1.x Jul 25 13:50:34 i'd say dont even bother with 1.x Jul 25 13:50:37 it's more trouble than it's worth Jul 25 13:50:52 support my G1 Jul 25 13:50:55 canadiancow|work, agreed Jul 25 13:50:56 1.5 is trouble, 1.6 is just working Jul 25 13:51:08 not when yo udecide you want to add android beam support to your app Jul 25 13:51:10 1.5 users are still a huge segment of the untapped market Jul 25 13:51:15 and have to do nasty shit because you need the 1.6 classloader to work Jul 25 13:51:35 mikedg, only for another year or so, then contracts expire and so on Jul 25 13:51:46 If I'm on the latest API, how do I make sure I'm not using functionality that won't break on older OS's? Jul 25 13:51:54 kaneda^: I think 1.5 contracts expired awhile ago Jul 25 13:51:58 will the SDK warn me? Jul 25 13:52:11 Mavrik, my phone was originally 1.5, now 2.3, and my contract expires in Feb Jul 25 13:52:19 if i hadnt upgraded i'd still be 1.5 Jul 25 13:52:22 wow Jul 25 13:52:33 yah, time for a new phone ;) Jul 25 13:52:38 Mavrik: not true Jul 25 13:52:44 it's just... who was selling 1.5 phones two years ago? Jul 25 13:52:49 there were some devices on rogers sold in early 2010 on 3 year contracts Jul 25 13:52:53 Mavrik, canadian telecoms Jul 25 13:52:54 and they were never upgraded past 1.5 Jul 25 13:53:03 canadiancow|work, dont forget telus Jul 25 13:53:06 same deal Jul 25 13:53:21 at least they had the option of upgrading though to gingerbread Jul 25 13:53:37 if the device was given an upgrade, that's not the same deal at all Jul 25 13:53:51 im talking about devices that were stuck on 1.5 (unless you went with cyanogenmod or something) Jul 25 13:54:09 canadiancow|work, all upgrades are optional, so i'd imagine for the average user it equates to the samet hing Jul 25 13:54:21 leaving a lot of 1.5 devices Jul 25 13:54:22 Sprint had a nice slider with an 800mhz processor that shipped with 1.5 Jul 25 13:55:01 hi all Jul 25 13:55:11 kaneda^: telling people to upgrade phones is usually not such a problem Jul 25 13:55:17 as people with phones stuck on old versions Jul 25 13:55:45 hmm, back to my problem though, my listeners aren't working Jul 25 13:55:50 *Samsung Moment.... Jul 25 13:56:23 anyway... will the API warn me if I'm using code unsupported on an SDK level that I'm claiming to support?? Jul 25 13:56:29 Mavrik: phone i'm using should not be upgraded unless i want severe headaches..... so generally no, it's not a good idea to upgrade Jul 25 13:56:36 here's my code: http://pastie.org/private/1kvxbipyrxr5tqqfztz0w Jul 25 13:56:49 that log at the bottom, "Finished showing..." shows up Jul 25 13:56:59 but then my click and item events aren't firing in the logs Jul 25 13:57:29 Miles8of9: wasting alot of time and money supporting people who refuse to upgrade is just not worth it Jul 25 13:57:42 so you just don't see app on Market and that's that Jul 25 13:57:56 i'll support 2.1 because it's easy Jul 25 13:58:03 but a lot of stuff im doing at work... 2.2 would be much easier Jul 25 13:58:06 i'm supporting 2.3.3+ Jul 25 13:58:10 because i get GLES2 and GCM Jul 25 13:58:18 I support 2.2 by default Jul 25 13:58:20 canadiancow|work, yah, we need GLES2 w/ unity Jul 25 13:58:23 2.1 if it's minor fixes Jul 25 13:58:32 pre 2.1 is just "buy a new friggin phone" :) Jul 25 13:58:34 well we only support arm7 processors Jul 25 13:58:42 so you have to have a newish phone Jul 25 13:58:45 that's lame Jul 25 13:58:46 I support 2.2+ Jul 25 13:58:48 i have a new x86 phone Jul 25 13:58:54 canadiancow|work, it's just a requirement of unity, not our choice Jul 25 13:58:57 ah Jul 25 13:59:23 i tried to compile it for my intel atom x86 emulator and it wouldnt even try to push to the device Jul 25 13:59:31 it literally compiles apk for one chipset Jul 25 13:59:37 brb Jul 25 14:00:01 http://pastie.org/private/1kvxbipyrxr5tqqfztz0w <-- my code again, anyone know why my listeners dont work? Jul 25 14:00:18 question: is there a way to save google maps for offline use on an android phone? i can save maps for offline use using google maps but i can't access them from my android app.... Jul 25 14:01:14 probably not; the MapsActivity stuff hasn't been updated in forever. Jul 25 14:02:26 Miles8of9, you can save a screen shot of a map Jul 25 14:02:32 i wrote DirectionsWizard for android Jul 25 14:02:45 in which you can take screen shots of the map stored w/ the text directions Jul 25 14:03:21 kaneda^: the idea was to show the map in a MapView so you have zoom in, out etc etc Jul 25 14:03:45 Miles8of9, i had come up with a way of doing this by taking screen shots of all of the varying levels of the map when save is clicked Jul 25 14:03:59 then you can interpolate between different images to make it appear to zoom and back away Jul 25 14:04:01 sounds like nightmare O_O Jul 25 14:04:11 meh Jul 25 14:04:14 it was a school project Jul 25 14:04:36 it was also written for android 1.6, long time ago ;p Jul 25 14:04:43 there must be something better by now Jul 25 14:08:30 Has anyone used the new AOA 2.0 spec and sent a HID command to Android 4.1? I need help Jul 25 14:12:11 http://pastie.org/private/1kvxbipyrxr5tqqfztz0w <-- can anyone tell me why my listeners aren't working at all? Jul 25 14:19:12 My preferences.java shows the listPreferences I've defined in preferences.xml and arrays.xml But, getSharedPreferences("preferences", 0).contains("some_key") returns false even if I put in the correct key. Any ideas? Jul 25 14:21:03 Can anyone tell me which version i have to use @ http://www.eclipse.org/downloads/ for Android development? Jul 25 14:22:09 what's a good icon to use to represent "activity" ? Jul 25 14:24:25 if someone wants a custom app built.. i can build it and just give them the .apk, right? Jul 25 14:24:35 Yes Jul 25 14:24:36 sounds about right Jul 25 14:24:39 perfect :) Jul 25 14:24:50 Macca-, Can you help me, Which one do i need to start developing? http://www.eclipse.org/downloads/ Jul 25 14:25:42 classic Jul 25 14:25:44 funktronic, wat type of icon u want Jul 25 14:25:47 but i use intellij Jul 25 14:26:37 ty Jul 25 14:26:48 Macca- > you'll want to sign it with a proper key, though, and give them the key lib and the password(s) for it :) Jul 25 14:27:08 hackkitten: a) what benefit does that give, and b) how do i do that? :) Jul 25 14:27:26 a) you can release it Jul 25 14:27:27 this is a very closed app and i will be giving it directly to the people who are using it. Jul 25 14:27:30 b) read the manual Jul 25 14:27:38 RTFM, yes :3 Jul 25 14:27:44 the application does not need to be "released" .. just installed on devices who want it Jul 25 14:27:45 the debug key isn't meant for releases Jul 25 14:28:05 you and i have different definitions of "released" Macca- Jul 25 14:28:15 if you're giving it to anyone other than your QA department, it's being released Jul 25 14:28:16 hey hackkitten Jul 25 14:28:17 :P Jul 25 14:28:18 fair enough Jul 25 14:28:18 what's up? Jul 25 14:28:21 hi Snuffel :) Jul 25 14:28:29 did you get the job? Jul 25 14:28:32 Snuffel > just doing some house hunting :o Jul 25 14:28:34 yup, got the job Jul 25 14:28:37 oh congrats!! Jul 25 14:28:41 now need to move closer to it Jul 25 14:28:42 thanks :3 Jul 25 14:28:46 where do you want to live? Jul 25 14:28:53 Almere Jul 25 14:28:56 really? Jul 25 14:29:01 nobody else does! Jul 25 14:29:06 :P Jul 25 14:29:11 lots of people live there Jul 25 14:29:14 I have lived there for 3 years Jul 25 14:29:17 it's a great city Jul 25 14:29:19 that doesn't mean they want to :) Jul 25 14:29:24 but good for you! Jul 25 14:29:28 :3 Jul 25 14:29:39 you and the girl? Jul 25 14:29:41 do i use my personal private key? Jul 25 14:29:42 yup Jul 25 14:29:46 i.e., the one i use for ssh/git/etc.. ? Jul 25 14:29:50 wow things are looking up! Jul 25 14:29:51 is it possible to access the sqlite database of other applications through my own app (when having root access). Jul 25 14:29:53 read the manual! Jul 25 14:29:56 i am Jul 25 14:30:01 hence the question Jul 25 14:30:01 that's really cool! Jul 25 14:30:09 :3 Jul 25 14:30:20 Macca-: different kind of key. You want to follow the procedure and stop before uploading to market, I guess. Jul 25 14:30:22 "you must sign it with a suitable private key" .. what is a "suitable private key" ? Jul 25 14:30:28 ok Jul 25 14:30:40 just waiting for the okay from the real-estate agent now as we're technically wanting to hire above what is allowed with my income Jul 25 14:31:01 * hackkitten shakes paw at stupid Dutch rules and regulations and stupidly expensive rental prices Jul 25 14:31:19 hmmm yes Jul 25 14:31:25 http://developer.android.com/tools/publishing/app-signing.html#cert Jul 25 14:31:30 and buying is of course not an option yet Jul 25 14:32:32 of course Jul 25 14:32:45 one'd be retarded to buy a house in the Netherlands now or for the next five years Jul 25 14:33:02 i have a MediaController that sets an anchor view (a button in my case). when the user presses the button, the controller appears. i want to hide the button when the controller appears and show it when it dissapears. usually, i would use addOnAttachStateChangeListener, but it isn't available in all android versions i have to support. any suggestions (need to support api level 8 inclusive). Jul 25 14:33:52 how to open filemanager of samsung using intent Jul 25 14:33:58 hackkitten: why is that? houses are cheaper now Jul 25 14:34:27 well that was easy Jul 25 14:34:33 intellij just does it all for me :D Jul 25 14:34:34 Snuffel > compared to 1990s prices they're bloody expensive :) Jul 25 14:34:51 Snuffel > remember when 150,000 guilders got you a single family home? :D Jul 25 14:35:01 1990 is not coming back Jul 25 14:35:02 http://pastie.org/private/1kvxbipyrxr5tqqfztz0w <-- anyone have any idea why my listeners aren't working? Jul 25 14:35:13 in an updated revision i've even explicitly set clickable to true on the button and list view Jul 25 14:36:10 HDroid is right, it's useless to compare to back then Jul 25 14:36:21 peope made less money too in 1990 Jul 25 14:36:39 ok bye! Jul 25 14:36:41 Yes, also compound effect of ~2.5% inflation over 22 years Jul 25 14:36:41 thanks Jul 25 14:37:14 If you can build the same house for half the price, it's too expensive. But building a house isn't a lot cheaper than buying a nexisting one. Jul 25 14:37:25 nebody know how to use clone in win7?? Jul 25 14:37:30 as me beginner Jul 25 14:37:36 Clone? Jul 25 14:37:36 git repo Jul 25 14:37:41 Oh Jul 25 14:37:41 in win7 Jul 25 14:37:44 uh... Jul 25 14:37:47 git clone REPO_URI Jul 25 14:37:49 World of hurt Jul 25 14:37:49 :p Jul 25 14:38:23 canadiancow, what?? Jul 25 14:38:32 its not like its a different tool Jul 25 14:38:38 you use it the same way as on any other OS Jul 25 14:38:49 bt i dnt knw how to install Jul 25 14:38:52 and wat to do Jul 25 14:39:30 http://git-scm.com/download Jul 25 14:39:31 fuck Jul 25 14:39:32 google it Jul 25 14:39:41 if you cant do this, you ahve no chance of writing an app Jul 25 14:39:43 http://pastie.org/private/te014xzbe2lsatoj16ciw <-- anyone know why my listeners arent picking up any of the click events? Jul 25 14:39:55 or anything i can try Jul 25 14:41:59 ok 1. use xml Jul 25 14:42:07 2. you do not need to explicitly set a button to be clickable Jul 25 14:42:23 3. format your code Jul 25 14:42:53 canadiancow|work, 1) no XML, not gonna happen because of the strange setup, 2) I set that as a last ditch effort, 3) The code is formatted correctly in eclipse, pastie screwed it up ;p Jul 25 14:43:15 oh pastie... :( Jul 25 14:44:27 so i dunno what to do, could it be because i'm implementing the lsitener inside of the run method of the GUI thread? Jul 25 14:44:50 is it possible to read/push files into google drive (from my own app) ? Jul 25 14:45:21 HDroid > I'm looking at how much houses cost just across the border in Germany and Belgium Jul 25 14:45:31 that's a good indication of things Jul 25 14:45:39 also the countless houses for sale here which nobody can afford Jul 25 14:45:55 clear signs of a real estate market which is sick Jul 25 14:46:25 hackkitten, the longer taht goes on the lower interest rates will be, making houses more affordable long term Jul 25 14:47:12 kaneda^ > hopefully... it's not clear that the market is recovering at this point :( Jul 25 14:47:29 hackkitten, technically speaking the longer it takes the market to recover the better it is for the buyer Jul 25 14:47:50 maybe :) sucks if you want to get something now, though Jul 25 14:48:16 this one real-estate agent I went is willing to bend the rules a bit just so that I can rent something which I can easily afford Jul 25 14:48:23 but the insane rules would have prevented me from renting it before Jul 25 14:48:41 like you need to have a gross income of 3.5 times the rental cost Jul 25 14:48:45 stuff like that Jul 25 14:48:56 which would mean that you'd need to have an insane income just to get something decent Jul 25 14:49:09 hackkitten, it's 3x here roughly Jul 25 14:49:22 yet you can't buy either because banks won't get you that mortgage Jul 25 14:49:34 3x is fine, as long as the base rental price is fair Jul 25 14:49:46 850 Euro/month here is fairly low, still Jul 25 14:49:48 hackkitten: I bet it's cheaper there than here Jul 25 14:50:02 you'd need to earn about 4,000 Euro gross a month to rent that Jul 25 14:50:16 in Germany it's heaps cheaper.... Jul 25 14:50:56 hackkitten, i split my apt w/ my wife, so it's a lot more reasonable as well Jul 25 14:51:43 I'm paying more than 50% more than that... and my income is less than 4000EUR per month Jul 25 14:52:06 Hi! Could someone lend me some of their precious time? I want my SQLite array put into Listadapter. I want the list to be clickable Jul 25 14:52:31 any tutorials or simple suggestions would be really helpful. Jul 25 14:52:41 You said looking across the border at prices in Germany, hackkitten Jul 25 14:52:45 Where abouts do you live? Jul 25 14:53:09 i'm paying a good deal less than that after splitting the cost w/ my wife, and my income is ~3.7kEU/mo Jul 25 14:53:12 I'm in the vicinity of Koblenz, so west edge Germany Jul 25 14:53:42 i pay like 566EU/mo after splitting it w/ my wife Jul 25 14:54:12 you guys should come to canada Jul 25 14:54:22 i live in a nice place for that price ;) Jul 25 14:54:36 so, I guess no one can help me out here? Jul 25 14:55:05 where do you live? Jul 25 14:55:10 SprintC, well, do you know how to make a list of items using a listview and a listadaptor? Jul 25 14:55:14 canadiancow|work, montreal Jul 25 14:55:17 i live in toronto Jul 25 14:55:18 :D Jul 25 14:55:19 you have a nice place for $700? Jul 25 14:55:26 i pay almost twice that Jul 25 14:55:27 canadiancow|work, $1400, splitting it w/ my wife Jul 25 14:55:30 oh Jul 25 14:55:30 yes kaneda^ Jul 25 14:55:36 that doesnt count :P Jul 25 14:55:43 i want to move Jul 25 14:55:50 toronto is so damn expensive Jul 25 14:55:53 SprintC, so then your real question is how to take SQLite responses and turn them into list items Jul 25 14:55:56 but its convenient here Jul 25 14:56:02 SprintC, which i'm sure you can find on google ;) Jul 25 14:56:15 alright i'll give it a try. Thanks Kaneda! Jul 25 14:56:19 canadiancow|work, i suppose you're right, but we live in a luxary apt building Jul 25 14:56:26 SQLite queries return a Cursor, so use a CursorAdapter Jul 25 14:56:38 ooooh, SimonVT good call Jul 25 14:56:44 thanks SimonVT! Jul 25 14:56:46 im in toronto. i like where i live. its not cheap, but i can afford it Jul 25 14:56:52 i'll look up a tutorial. Jul 25 14:57:07 canadiancow|work, i have two pools, sauna, jacuzzi, and gym in my building for that price, and i have a top-floor apt Jul 25 14:57:28 Knossos > I live near Enschede, so near the German border Jul 25 14:57:28 yea no Jul 25 14:57:30 it's much, much cheaper than toronto Jul 25 14:57:31 i have none of that Jul 25 14:57:36 although my company gives me a gym membership Jul 25 14:57:45 and tehres a goodlife in the mall that my building connects to Jul 25 14:58:07 canadiancow|work where do you live? Jul 25 14:58:11 hackkitten: Wow yeah, very close Jul 25 14:58:12 brb, smoke break Jul 25 14:58:32 * hackkitten is glad she doesn't smoke and saves hundreds of Euros a month that way :) Jul 25 14:58:32 well guys, i've found tutorial so i'll just try to adapt it into my program. Thanks for the help and hope you have a good day. Jul 25 14:58:41 I've lived in enschede Jul 25 14:59:00 for a year, while I went to uni there Jul 25 14:59:09 Mr_Grim yonge/sheppard Jul 25 14:59:30 Mr_Grim, and canadiancow|work, if i could find a job that would allow me to save as much money as i do here in MTL i'd definitely move to toronto Jul 25 14:59:40 problem is the cost of living Jul 25 14:59:41 zynga's hiring :) Jul 25 14:59:49 canadiancow|work, they make farmville right? Jul 25 14:59:52 i'll pass Jul 25 14:59:58 we dont do that here Jul 25 15:00:04 we're all mobile in toronto Jul 25 15:00:16 and some locations have bad reps… YYMV of course Jul 25 15:00:30 canadiancow|work, i'm only just put on android, i havent worked in mobile for 3 years Jul 25 15:00:37 i've been doing django and J2EE for the last two years Jul 25 15:00:41 ah Jul 25 15:00:49 kaneda^: canadiancow|work is famous Jul 25 15:01:02 kaneda^: and mikedg is infamous Jul 25 15:01:40 i see ;p Jul 25 15:01:51 i am not famous, nor am i infamous Jul 25 15:01:59 im not sure i'm either Jul 25 15:02:21 scott was the talk of the town in SanFrancisco, America Jul 25 15:02:24 to be fair i graduated from uni less than two years ago and i think i'm doing pretty well ;) Jul 25 15:02:36 oh? i have friends all up and down cali Jul 25 15:02:38 i graduated from unicorns too Jul 25 15:02:42 i now ride pegasus Jul 25 15:02:47 scott == me Jul 25 15:02:54 since that probably isn't known by anyone except mikedg Jul 25 15:03:04 canadiancow|work, josh == me, nice to meet you Jul 25 15:03:05 noob, use your real name Jul 25 15:03:08 all the cool people do it Jul 25 15:03:18 i'm wendy Jul 25 15:03:19 hi Jul 25 15:03:30 hi Jul 25 15:04:06 i've been kaneda or something like it online for about 12-13 years Jul 25 15:04:21 you might have heard of me ;p Jul 25 15:04:25 online didn't exist before 2003 Jul 25 15:04:34 mikedg, i was on dal in 2001, so i beg to differ Jul 25 15:04:35 wow, 704 nicks in the room, largest irc chat room I've seen so far for programming Jul 25 15:04:49 i've seen bigger Jul 25 15:04:50 I came to irc in 1998 :) Jul 25 15:04:51 * caverdude checks #iphone Jul 25 15:04:58 canadiancow|work, that's what she said Jul 25 15:05:10 when we all had public ftps to share movies Jul 25 15:05:23 only 109 in #iphone Jul 25 15:05:39 man, i cant figure out this listener business, and i'm sure unity is the problem :/ Jul 25 15:07:33 hello, I'm trying to build an apk file (using ant) that needs to contain some uncompressed assets, is this possible Jul 25 15:08:06 canadiancow|work, would i have to set focusable explicitly, even if the item is drawn? Jul 25 15:08:13 no Jul 25 15:08:16 i'm install a shared object in /data/data/packagename/lib, and inside this (C) i need to pass it a folder path, which will then be searched for certain files, all on the c side Jul 25 15:08:25 blurgh, i dont want to do the GUI design in unity Jul 25 15:09:11 Could I get some help with Views in Fragments? I have a TextView in a Fragment that I wish to update, but setText() doesn't seem to want to work on it? I'm not too sure what my problems is. Jul 25 15:09:13 Line 20 https://github.com/Neoseeker/neoseeker-android/blob/refactor/src/com/neoseeker/android/PMListFragment.java Jul 25 15:10:51 ok, brb smoke Jul 25 15:12:42 I probably don't want to use assets? I just want to be able to have some other files in /data/data/packagename/foo Jul 25 15:13:03 I wonder does Scala run on the android? since it runs on the jvm? I mean are is it used for android development? Jul 25 15:13:32 caverdude, AFAIK scala is for distributed large-scale computing Jul 25 15:13:39 i'm not sure it's applicable to mobile Jul 25 15:14:05 kaneda^, ah Jul 25 15:14:18 but dont take my word for it, i looked at scala for a total of 10 minutes last year Jul 25 15:14:31 UPDATE t SET x = x + 1 WHERE id = ? Jul 25 15:14:31 ya I only know of Scala Jul 25 15:14:33 that's valid, right? Jul 25 15:14:37 it's not failing, but it's not updating Jul 25 15:14:57 caverdude: yes there is scala for Android. Jul 25 15:15:04 canadiancow|work, update set val=val+1 where id=''; Jul 25 15:15:21 val=val+1 is unquoted, id='1' is single-quoted Jul 25 15:15:23 http://code.google.com/p/scalaforandroid/ Jul 25 15:15:31 i see Jul 25 15:15:35 no, the id is a parameter Jul 25 15:15:36 :P Jul 25 15:15:46 however all of us here in this chat room are probably using Java Jul 25 15:15:56 all the cool people Jul 25 15:16:00 ha Jul 25 15:16:07 canadiancow|work, in any case that's the correct syntax i think Jul 25 15:16:07 Scala is not a large-scale computing language, it's just an alternative language providing both functional and OO paradigms running on the JVM. Jul 25 15:16:27 caverdude: I've seen exactly one person doing Scala for Android in this channel. Jul 25 15:16:27 HDroid, then the only applications i've seen are for large-scale maths computation Jul 25 15:16:41 HDroid, ha ok Jul 25 15:16:55 all of wall street/hedge funds/etc seem to use scala Jul 25 15:16:59 I guess functional languages are suited for that sort of thing, Scala is pretty general-purpose though. Jul 25 15:17:03 OK, brb smoke for reals Jul 25 15:17:06 Oh do they? Interesting Jul 25 15:17:16 Is it possible to have a ViewPager inside a Fragment? I decided to try out Navigation tabs. Jul 25 15:17:24 I seem to recall that it may not be possible... Jul 25 15:17:41 I work with Scala because I use Play Framework for web dev... its templating system is Scala and the framework is both Scala and Java. Jul 25 15:17:54 Haven't tried it on Android, though. Jul 25 15:19:15 Can I find out which resources get picked at runtime. Say I have res/drawable, res/drawable-sw600dp and such? Jul 25 15:19:59 if you know what device you're on, sure Jul 25 15:20:25 are there any special security requirements when using sockets from an android app? Jul 25 15:20:53 or is it same as writing a desktop client for example Jul 25 15:21:12 canadiancow|work: I said "at runtime". Resources.getQualifier() or something Jul 25 15:21:16 apart from needing the INTERNET permission... not much different Jul 25 15:21:19 caverdude: pretty much the same. Jul 25 15:21:24 ok cool Jul 25 15:21:34 Not sure if incoming < port 1024 is root-only, but that's the same on a desktop I guess. Jul 25 15:21:50 ya Jul 25 15:22:09 well I don't right now expect to do incoming on the client Jul 25 15:22:16 unRuhe, determine what device you're on Jul 25 15:22:20 you can get the screen size Jul 25 15:22:22 the density Jul 25 15:22:24 the api level Jul 25 15:22:25 etc etc Jul 25 15:23:30 is sqlite3 not included in jellybean? Jul 25 15:23:56 someone recommend me a good irc client for android that is free? Jul 25 15:24:02 AndChat Jul 25 15:24:43 A table layout column's width is determined by the longest content in a particular row...I've created several sub layouts and would like to include all them in 1 layout but I need them to line up...how do I do that? Jul 25 15:24:45 k Jul 25 15:24:58 caverdude: they're all barely usable at best Jul 25 15:25:24 what catagory is under? Jul 25 15:25:32 just search for irc Jul 25 15:25:33 ogmo ah Jul 25 15:26:22 caverdude, try AndChat Jul 25 15:26:28 k Jul 25 15:27:35 any ideas? Jul 25 15:29:42 under vcast apps no irc anything comes up Jul 25 15:29:57 john_doe_jr, do you want to load table rows from different layout files? Jul 25 15:30:00 why are you in vcast apps? Jul 25 15:30:02 er, vcast apps? Jul 25 15:30:14 Hey there! Jul 25 15:30:22 kriomant: yes Jul 25 15:30:46 john_doe_jr, try to use element in sublayouts Jul 25 15:31:35 I'm writing an app that downloads a color scheme over the internet and sets the background color of its action bar. However, if the background color is very bright, it makes sense to switch the theme to Light (instead of Light Dark Actionbar). I tried to set it in code in on create, but it seems to have no effect. Jul 25 15:32:12 What's the best solution to make the Actionbar look good for arbitrary background colors? (I use ActionbarSherlock) Jul 25 15:33:03 evancharlton, is it not on the market as a free app? Jul 25 15:34:16 caverdude: what *are* you wibbling about? Jul 25 15:34:34 nothing really, I have found the web site for and chat Jul 25 15:34:50 I only have one android market app on my android phone, vcast Jul 25 15:34:59 is there a way to force a menu to recreate ? Jul 25 15:35:01 are there others? Jul 25 15:35:10 ugghhh Jul 25 15:35:14 Yes, there are several, actually. Jul 25 15:35:16 caverdude: is Google Play or Android Market on your phone? Jul 25 15:35:18 basically i want to update the menu based on the result of a service sync Jul 25 15:35:22 lov no Jul 25 15:35:24 did verizon sell you a phone that only has their godawful store? Jul 25 15:35:25 let me check Jul 25 15:35:25 hahahahaha Jul 25 15:35:27 you are FUCKED. Jul 25 15:35:30 welcome to verizon. Jul 25 15:35:35 Enjoy paying through the nose for garbage Jul 25 15:35:39 take your phone back if you can Jul 25 15:35:51 google search is on my phone Jul 25 15:35:55 doesn't matter. Jul 25 15:36:00 root it and download the market apk Jul 25 15:36:03 ^^ Jul 25 15:36:10 pray you can root that fucker, then stick CM on or something Jul 25 15:36:10 Isn't that a topic for #android instead of #android-dev? Jul 25 15:37:17 loc I see, and I can't install google play or android market on the phone? Jul 25 15:37:22 caverdude: no. Jul 25 15:37:27 it has to be preloaded, effectively. Jul 25 15:37:31 You can always download the Amazon Appstore Jul 25 15:37:47 does anyone here use admob? I'm wondering how effective the ad campaigns are Jul 25 15:37:48 or go with cyanogenmod Jul 25 15:37:51 but the fact that there's no google market is a Pretty Bad Sign. Jul 25 15:38:18 hey guys, I'm writing an application that makes extensive use of the action bar, fixed tabs, and alot of 4.0+ ui stuff. Jul 25 15:38:26 so canadiancow|work/mike, what are you famous for? Jul 25 15:38:31 would it be worth it to try to make it work on < 4.0? Jul 25 15:38:32 caverdude: seriously, your app is probably filled with a glut of apps that have totally free alternatives preloaded on just about any other phone. Jul 25 15:38:32 im not Jul 25 15:38:37 er Jul 25 15:38:40 or... just for being awesome i guess Jul 25 15:38:41 your phone is probably filled with them Jul 25 15:38:44 e.g. vznavigator Jul 25 15:38:47 or "backup assistant" Jul 25 15:38:48 c0deMaver ICK yes Jul 25 15:38:52 really, verizon is shipping shit w/ no market now? I hadn't heard of that Jul 25 15:38:52 canadiancow|work, i see ;p Jul 25 15:38:57 (or seen it on any of my phones) Jul 25 15:39:06 dragorn: I'm seriously hoping that it's a $0 phone or something Jul 25 15:39:12 I cannot imagine them getting away with it on a high end phone Jul 25 15:39:19 lov I got the phone for $2 Jul 25 15:39:21 so Jul 25 15:39:25 mystery solved. Jul 25 15:39:33 moral of the story: cheap phones will cost you. Jul 25 15:39:41 caverdude: what phone Jul 25 15:39:49 caverdude: did you try reformatting it? Jul 25 15:39:50 motorola verizon Jul 25 15:39:54 ..... Jul 25 15:39:56 lov: Yeah; I just picked up a maxx and have no issues other than the basic crapware Jul 25 15:39:58 Zacharias3690, uh no Jul 25 15:40:00 caverdude: that is not a phone model. Jul 25 15:40:10 do you use microsoft netscape on your computer? Jul 25 15:40:26 droid3? Jul 25 15:40:32 patience, this is #android-newbs Jul 25 15:40:32 Zacharias3690: I use admob... Jul 25 15:40:34 oh wait Jul 25 15:40:41 droid3 absolutely has the google market / play market on it. Jul 25 15:40:48 user error. :P Jul 25 15:41:02 Leeds: have you every advertised your app? or do you just use it to make money Jul 25 15:41:03 ^^ Jul 25 15:41:05 android v 2.3.4 Jul 25 15:41:08 ever** Jul 25 15:41:10 caverdude: yeah, stop. Jul 25 15:41:11 stop. Jul 25 15:41:18 we're asking you what model phone you have Jul 25 15:41:27 you say that it's a droid3, except droid3 has android market Jul 25 15:41:31 wrong Jul 25 15:41:33 it has Play Store Jul 25 15:41:39 so it would be under the "P"s Jul 25 15:41:41 $5 says it ships with Android Market Jul 25 15:41:41 erm... I've only used it myself to show ads on my apps... but an app I did contract work on was advertised Jul 25 15:41:53 (and then updates itself to Play) Jul 25 15:41:58 is t says under Model number Droid3 Jul 25 15:42:22 caverdude: are you opening up the menu to look at all of the apps on the device? Jul 25 15:42:23 oh I see play store on the front :) Jul 25 15:42:27 ........ Jul 25 15:42:28 caverdude: go to play.google.com/apps and see if your phone shows up Jul 25 15:42:29 * tinyhippo facepalms Jul 25 15:42:29 didn't know what that was Jul 25 15:42:36 Leeds: was it useful? did you see much more downloads w/ the ads? Jul 25 15:42:37 ah, fuck you Google and your random app renaming Jul 25 15:42:48 :) Jul 25 15:42:49 tx Jul 25 15:43:01 wow. Jul 25 15:43:27 Zacharias3690: I don't think it did much good... I've also used adwords for a website I worked on - and while it got us traffic, most of it was pretty low quality, users who never came back Jul 25 15:43:38 ya forgive me I'm a c64 guy learning to use a smart phone lol Jul 25 15:44:02 Leeds: thanks, just wondering if it was worth throwing $100 in there to try and make a profit Jul 25 15:45:35 so i'm experimenting with making the layouts private members of my controller and then instantiating them with the class and then setting the content view only in the GUI thread Jul 25 15:45:44 android irc is listed,but not free and chat is not shown Jul 25 15:47:50 thanks, next time I'm bored Ill install a free irc client with lots of stars Jul 25 15:48:07 bored and have only the phone that is Jul 25 15:48:53 Can someone explain to me how merge works? Jul 25 15:48:59 Advertising has never worked for me Jul 25 15:49:09 andchat seems OK for me. Jul 25 15:49:12 john_doe_jr: in git? Jul 25 15:49:18 i had a really bad experience with adwords Jul 25 15:49:24 they gave me a free $100 Jul 25 15:49:26 and i put in another $100 Jul 25 15:49:34 and i let some "expert" google employee set it all up for me Jul 25 15:49:37 C0deMaver1ck: nope in android layout xml Jul 25 15:49:44 she thought paying $1/click on "free droid app" was a good idea Jul 25 15:49:45 fuck Jul 25 15:49:51 biggest waste of $100 ever Jul 25 15:50:03 she was an idiot then Jul 25 15:50:16 hah Jul 25 15:50:24 * C0deMaver1ck works at an SEO company Jul 25 15:50:28 I do have an app I'd like to get on google market, it won't get many takers though lol Its a simple calculator for simple survey work Jul 25 15:50:31 But hey, she earned google $100 Jul 25 15:50:50 john_doe_jr: It simply merges in the referenced layout Jul 25 15:50:55 As if the tag was never there Jul 25 15:51:12 it will always be free Jul 25 15:51:31 Alright, a table layout column's width is determined by the longest content in a particular row...I've created several sub layouts and would like to include all them in 1 layout but I need them to line up...how do I do that? I thought merge would be a solution but I guess now Jul 25 15:51:33 not* Jul 25 15:51:39 the project is www.sf.net/p/javacavemaps Jul 25 15:52:25 the 500 cave mappers in america might enjoy it Jul 25 15:52:34 or the 1000 from around the world lol Jul 25 15:52:46 well if admob doesn't work, is there any decent way to advertise without destroying my wallet? Jul 25 15:53:03 Not really :D Jul 25 15:53:15 actually though I intend to abstact it a bit so that it can be used for survey and mapping of anything, not just caves Jul 25 15:53:16 The saying goes, you have to spend money to make money Jul 25 15:53:40 Make an app that's missing in the market. Jul 25 15:53:43 Though it really does feel more like you are just setting your money on fire Jul 25 15:53:54 Infact Jul 25 15:53:55 For example - there are no sane CAD apps. Jul 25 15:54:02 SpeedEvil, abuh? Jul 25 15:54:07 But that's a lot more effort than another fart app. Jul 25 15:54:16 lol Jul 25 15:54:23 Give the money you would put into advertising, to a charity. Same return, more feel good. Jul 25 15:54:30 any idea? Jul 25 15:54:30 what no deer hunters revenge! Jul 25 15:54:30 lol Jul 25 15:54:50 I'll just run around college campuses and post up QR codes for my app then Jul 25 15:55:00 QR? Jul 25 15:55:00 at least that's free minus the cost of ink and paper Jul 25 15:55:48 hey guys i am trying to programatically create a 1x1 pixel surface view. how do i tell the layout view to be 1x1 px? Jul 25 15:57:01 really? Jul 25 15:57:18 http://developer.android.com/training/basics/firstapp/building-ui.html Jul 25 15:57:37 canadiancow|work, so my problem is one other people have had when working in unity as well, only there's no posted solutions X_X Jul 25 15:57:47 i hate when someone replies to a thread with "i solved this" and no solution :( Jul 25 15:58:10 wow, I hadn't seen the new dev layout until now, they've made some great improvements Jul 25 16:00:43 kaneda: what's your issue? Jul 25 16:01:07 Zacharias3690, i spawn a view from unity in the gui thread, but none of the buttons or list items are clickable Jul 25 16:01:14 even if i explicitly set them to clickable Jul 25 16:01:15 is there anything that would convert a Swing app to an android app? Jul 25 16:01:23 caverdude: no Jul 25 16:01:26 k Jul 25 16:01:35 caverdude: well, I mean yes, kind of Jul 25 16:01:37 people :) Jul 25 16:01:39 will netbeans start including android stuff? Jul 25 16:01:50 kaneda^: ask netbeans Jul 25 16:04:23 Zacharias3690, I roll my Admob profits back into Admob ads...I've been happy with it for the most part Jul 25 16:04:56 i just wait until there are no ops around, then i spam this channel with ads for my app Jul 25 16:05:04 Ologn: less than 100 downloads on my app so far, there's no way I'm making anything I can put back into admob yet Jul 25 16:05:28 Zacharias3690, it's a $50 minimum payment IIRC. Also ad campaigns are $10 a day minimum, so if you're lowballing it I suggest putting all your ads in one campaign. Jul 25 16:06:05 I just installed a ballistics calculator that needed sockets permissions, uh oh, malware lol Jul 25 16:06:12 Zacharias3690, do you do work in unity? Jul 25 16:06:30 Ologn: that was the plan, but I've heard many failure stories, so I don't think it's worth it to blow that much money w/ little return Jul 25 16:06:34 and what is funny is that it doesn't consiider the type of bullet or gun, which to me makes no sense Jul 25 16:07:03 Kaneda: I did a few months back, but nothing with android yet, going to start on a game in there in a couple days Jul 25 16:07:05 maybe it assumes everyone uses AK's Jul 25 16:07:24 Zacharias3690, honestly it's fairly straight forward, except for the graphical elements Jul 25 16:07:26 Zacharias3690, I also do some Google Adwords for Android, but that can be more expensive, and it's easy to overspend and waste money there if you're not super-careful. Jul 25 16:07:30 if you dont want to use unity gui anyways Jul 25 16:08:24 Kaneda:can you make the interface in Java/xml and import it into unity? Jul 25 16:08:44 Zacharias3690, i had a lot of trouble getting it to read resources from inside of the JAR i created for the plugin Jul 25 16:08:53 so instead i'm programmatically craeting the layouts and applying them via the plugins Jul 25 16:10:08 Kaneda: I'll keep that in mind. Anything worth grabbing off the asset store before I start? Jul 25 16:10:32 Zacharias3690, the android pro asset Jul 25 16:10:47 you might want to look at the etcetera asset as well Jul 25 16:12:52 but i just started experimenting with unity on monday Jul 25 16:12:57 so i'm pretty lost at the moment Jul 25 16:13:06 Is there a good library for dealing with sprites? I don't know the first thing about gaming graphics... I'm assuming the best way to jump into an Android game is to use OpenGL. Jul 25 16:13:08 Kaneda: it's worth the $1500 for pro? I got the $400 version for free from a deal they did Jul 25 16:13:34 Zacharias3690, my company pays for it, so i dont really think about it Jul 25 16:14:11 Kaneda: lucky you lol I'm indie with nowhere near $1500 Jul 25 16:14:11 You can always put the PRO version on a virtual machine for a month, and nuke the image at the end of the complimentary 30 days. Jul 25 16:14:48 yah, i'm using a 30 day trial still Jul 25 16:15:08 You should have put your trial on a virtual programming box. Jul 25 16:15:19 Then you can use and re-use. Jul 25 16:15:30 But that's true with any software. Jul 25 16:15:41 yeah Jul 25 16:15:43 piracy is awesome Jul 25 16:15:48 true, and $1500 is a lot for a license, but when you're a business you just pay for it Jul 25 16:16:07 don't bother paying for software that makes you money Jul 25 16:17:05 Jonathan_Eyre: yes GL is always the fast path but you might just want to use one of the more mature game engines instead… save you a tone of pain and learning Jul 25 16:17:31 unity is pretty mature Jul 25 16:17:33 using GCM to receive notifications. if my app is running in the background and receives a message, how can i detect that it is to avoid trying to show a dialog? Jul 25 16:18:05 what free engines exists for android that are considered mature ? Jul 25 16:18:21 equex: I recommend phonegap Jul 25 16:18:22 equex, unity Jul 25 16:18:39 is there a SDL sort of thing for android ? Jul 25 16:18:43 unity is, erm, pubescent, i wouldnt call it mature yet Jul 25 16:18:44 at the least Jul 25 16:18:48 Piracy is a strange culture, because it will let you watch Firefly for free, which in turn will make you want to buy every Firefly shirt and Firefly book you can get your hands on. And then you won't be able to stand not having the Collector's box set of Firefly DVDs. (To sum it up, without piracy, I wouldn't spend so much on the things I pirate.) Jul 25 16:19:07 equex, yes Jul 25 16:19:19 equex, I've ported SDL apps to Android extensively Jul 25 16:19:47 android for unity isnt free either i think Jul 25 16:20:20 equex, unity isn't free but there's a 30 day trial Jul 25 16:20:32 and then building for android is free (but you'll see "trial version" at the bottom of your app) Jul 25 16:21:28 Trying to write a test for an Activity that uses a ContentProvider, and I don't want to use the normal provider used by the app. I'd like to use a RenamingDelegatingContext and prefix the underlying DB for the provider with 'test.'. I've been banging my head against this for a couple hours. Any tips? Jul 25 16:21:34 evancharlton: I think that if something is making you money, you should pay back in kind. Donate to the places that helped, and pay for the software that helps. If something is only promising to make you money, and never does, maybe that is different. Jul 25 16:22:53 If it takes more than 30 days to figure out if something is worth it, then maybe you can take longer than 30 days. Jul 25 16:28:31 I'm developing a game with andengine, and when i lock the phone the app is still running in background. There's any way to receive the onResume event when the phone is unlocked? Jul 25 16:28:56 or maybe there is another event and i missed it Jul 25 16:29:18 how can I programatically create a surfaceview/surfaceholder with these dimensions? Jul 25 16:30:06 anyone? Jul 25 16:33:16 deavid: there probably is; I don't know the andengine docs however. Jul 25 16:33:56 Mr_Grim: SurfaceView sv = new SurfaceView(this); sv.setLayoutParams(....); Jul 25 16:34:19 new LayoutParams(1,1) may be sufficient for the .... Jul 25 16:40:23 hello, I have a small service in .C and at some point it goes into sleep(X) Jul 25 16:40:44 i've noticed that sometimes my service sleeps a lot longer than the specified amount Jul 25 16:40:55 any ideas why this is happening? Jul 25 16:41:08 dorei: how much longer? Jul 25 16:41:14 random Jul 25 16:41:25 are we talking 2ms or 2 weeks? Jul 25 16:41:44 i installed GIT for windows and when installing ( $ repo init -u https://android.googlesource.com/platform/manifest ) at that time error of pyhton not found came Jul 25 16:41:51 instead of sleeping for 3 minutes it might sleep for 7 or 15 minutes Jul 25 16:42:08 aagam94: you need to install python Jul 25 16:42:11 i was wondering if that behaviour has anything to do with wakelocks Jul 25 16:42:25 aagam94: are you trying to build AOSP on Windows? Jul 25 16:42:27 i already havin it installed on C Jul 25 16:43:15 ya C0deMaver1ck Jul 25 16:43:36 ryanm, Jul 25 16:43:38 what to do Jul 25 16:43:40 ?? Jul 25 16:43:41 dorei: I'm not sure; I was going to suggest that it might be working as intended if the times were small. I'm not sure though. Jul 25 16:43:59 so, my real question is: is the behaviour of the sleep system call affected by wakelocks? Jul 25 16:44:01 hmm Jul 25 16:44:31 C0deMaver1ck, what should I do?? Jul 25 16:44:33 a thread sleeping is differnet than the device sleeping Jul 25 16:44:42 http://forum.unity3d.com/threads/144131-ASK-Can-t-click-button-on-Android-plugin-Please-Help <-- i'm having the same problem Jul 25 16:44:49 unfortunately there's no answer Jul 25 16:44:58 aagam94: open a command prompt and type python --version Jul 25 16:45:02 tell me what it says Jul 25 16:45:10 aagam94: you can't build AOSP on windows. Jul 25 16:45:21 wongk: can a sleeping device wake up a sleeping thread? Jul 25 16:45:27 no Jul 25 16:45:39 aagam94: you can pull AOSP down, but remember that you can't build. Jul 25 16:45:46 lov ya i know Jul 25 16:45:50 the solution is to install python, and include it in your sources Jul 25 16:45:53 kk Jul 25 16:46:14 ryanm, it tell command nt found Jul 25 16:46:28 wongk: so, if my device enters a sleeping state, that will mess the time sleep(X) will actually sleep, right? Jul 25 16:46:53 dorei: certainly Jul 25 16:47:04 ryanm, Jul 25 16:47:07 Zacharias3690, i'll be hanging around here a lot i'd imagine, so if you want to talk Unity just PM me Jul 25 16:47:11 dorei: yes. Jul 25 16:47:17 so, i need wakelocks for my sleep(X) to work as expected, right? Jul 25 16:47:23 yes Jul 25 16:47:29 dorei: you probably want AlarmManager instead. Jul 25 16:47:39 ^^ Jul 25 16:47:49 wakelocks are very expensive. Jul 25 16:47:49 i'm coding my service in C Jul 25 16:47:58 dorei: irrelevant detail Jul 25 16:48:10 so i can use alarmmanger from C? Jul 25 16:48:22 any starting url for alarmmanager? :) Jul 25 16:48:24 just the same as you can use wakelock, yes Jul 25 16:48:25 aagam94: you need to add whatever directory python is installed in to your PATH environment variable Jul 25 16:48:28 kaneda^: calling showBtn() in the onCreate instead of in some later stage would probably help; there's no guarantee that the activity oncreate has run het. Jul 25 16:48:29 you may be able to through the NDK Jul 25 16:48:35 lov, how to install python from cmd Jul 25 16:48:35 dorei: just read the docs. Jul 25 16:48:39 ryanm, Jul 25 16:48:47 jasta: wakelocks are file operations on /sys/power/wake_lock Jul 25 16:48:48 aagam94: if you need to ask these questions, this is not the appropriate channel for you. Jul 25 16:48:50 lov, i have a log.i at the bottom of the run and i see it Jul 25 16:48:55 lov, so i think it conclusively runs Jul 25 16:48:56 please go to #python and ask for help installing python. Jul 25 16:49:05 k Jul 25 16:49:07 Sorie Jul 25 16:49:11 kaneda^: can you pastebin your code please? Jul 25 16:49:20 lov: oh, thanks Jul 25 16:49:28 aagam94: again, write like an adult. I have no interest in helping you because you sound like a teenage moron Jul 25 16:49:35 http://pastie.org/private/te014xzbe2lsatoj16ciw <-- sorry, pastie messed up eclipse formatting Jul 25 16:49:47 dorei: you can invoke Java methods from with a JNI layer. i'm not going to through the details with you, you can look that up. Jul 25 16:50:03 JNI is actually very easy Jul 25 16:50:22 you have to use it w/ unity and the wrappers they've made are elegant Jul 25 16:50:28 i'm allergic to java :p Jul 25 16:50:36 then you're in the wrong place :D Jul 25 16:50:47 lov, actually m beginner Jul 25 16:50:55 sorrie lov Jul 25 16:51:05 no, seriously, write "sorry" Jul 25 16:51:19 I DON'T CARE that you're a new developer Jul 25 16:51:22 that's ok, we've all been new Jul 25 16:51:34 what's annoying me is that you sound like an idiot, with no interest in trying to figure things out Jul 25 16:51:49 aagam94: read this: http://www.catb.org/~esr/faqs/smart-questions.html Jul 25 16:51:58 if english is not your native language, there are included translations. Jul 25 16:52:45 enough lov Jul 25 16:52:52 i told sorry Jul 25 16:53:01 will not happen again Jul 25 16:53:30 kaneda^: you mean the log event on line 92? Jul 25 16:53:46 yes Jul 25 16:53:54 the log events w/in the listeners never fire Jul 25 16:54:24 hmm. Jul 25 16:54:43 the button does appear, correct? Jul 25 16:54:46 yes Jul 25 16:54:51 it's drawn correctly Jul 25 16:54:53 offhand, I'm not sure what to suggest. Jul 25 16:54:55 i can add text/modify the size Jul 25 16:54:56 okay im going to ask again lol... i cannot for the life of me figure out how to create a 1px by 1px surface view. here is my source code: http://pastebin.com/TNuFdv5p Jul 25 16:55:05 lov, you can see i got desperate and put clickable true Jul 25 16:55:08 didnt help Jul 25 16:55:10 when i create a new surface view it takes up the entire screen Jul 25 16:56:18 kaneda^: hmm. Try adding a delayed runOnUiThread that calls btn.performClick(); Jul 25 16:56:29 at first glance, I don't see any problems. Jul 25 16:56:53 lov, so you mean force a click in another call in the gui thread? Jul 25 16:57:13 Mr_Grim: for starters, you need to stop changing the question. either you want it 1px by 1px or 1dp by 1dp. you can't have both. Jul 25 16:57:43 kaneda^: I mean after calling setContentView, spin up another thread that will delay for a second, then call performClick on the UI thread Jul 25 16:57:51 As for the reason it's fullscreen, you should probably try wrapping it in a layout Jul 25 16:57:53 you can use a Handler to do this more simply Jul 25 16:58:05 lov, sure Jul 25 17:04:16 finally Jul 25 17:04:18 im back Jul 25 17:04:26 sorry ryanm Jul 25 17:04:42 yeah 1dp by 1dp is fine. i need to programatically do this though Jul 25 17:08:09 Mr_Grim: as I said, wrap it in a layout. a relativelayout will probably work. Jul 25 17:10:11 wrap it in all the layouts Jul 25 17:10:27 It's layouts all the way down Jul 25 17:12:27 has anyone used nfc for anything useful? Jul 25 17:12:37 err... passive nfc tags Jul 25 17:12:54 i have one on my work laptop that causes my GN and N7 to enable wifi, go into silent mode, and a couple other things Jul 25 17:12:59 I can think of a few usefull uses for it. Jul 25 17:13:00 but that's about it Jul 25 17:13:03 yeah I had a couple of those in my house/car Jul 25 17:13:03 yeah, that's the neat usecase I've heard about Jul 25 17:13:14 also, tapping phones to pair them Jul 25 17:13:14 Car mode Jul 25 17:13:19 car doesnt seem as useful for me because i have a car dock Jul 25 17:13:25 the one under my car's dash would crank the volme, turn on bluetooth, and start pandora Jul 25 17:13:31 might be for others though Jul 25 17:13:34 canadiancow|work: a lot of people don't. Then again, most people won't have NFC tags to reprogram. Jul 25 17:13:39 +1 Jul 25 17:13:40 :D Jul 25 17:13:58 also, next to the bed for the silence mode as well as an alarmclock Jul 25 17:14:02 I had one by my bed that would set an alarm for +30 minutes Jul 25 17:14:04 great for naps Jul 25 17:14:08 thats cool evancharlton Jul 25 17:14:25 i dont want silent mode when im sleeping though. i guess im strange like that Jul 25 17:15:03 most people want, because of drunken friends who call at 1 am. Jul 25 17:15:11 personally i don't care Jul 25 17:15:23 don't really get cranky or anything. Jul 25 17:15:36 im more worried about emergency calls at 1am Jul 25 17:15:44 or 4am Jul 25 17:16:44 you might miss a good booty call Jul 25 17:16:47 if someone calls me, it's generally important Jul 25 17:16:54 [13:16:47] if someone calls me, it's generally important Jul 25 17:16:55 exactly Jul 25 17:16:59 no one ever calls me, even when its important Jul 25 17:17:05 foreveralone.jpg Jul 25 17:17:28 ive had about as many "i need your help right now" calls in the middle of the night as "hey im drunk whats up" Jul 25 17:18:02 if you call me at 1am, I'm probably not gonna pick up Jul 25 17:18:14 Hey, I"m drunk, I need your help right now. Jul 25 17:18:14 unless I'm awake Jul 25 17:18:20 which isn't unlikely Jul 25 17:18:28 JesusFreke, that hasnt happened, but i suppose it's possible Jul 25 17:18:45 well they could just call your house number Jul 25 17:18:50 assuming that you have a landline. Jul 25 17:18:57 which I (and an increasingly large number of people) don't. Jul 25 17:19:01 house number? Jul 25 17:19:03 those are still available? :p Jul 25 17:19:10 what's a land line? Jul 25 17:19:10 what's a house number :P Jul 25 17:19:14 is that like a fax machine? Jul 25 17:19:15 it's the thing over your door Jul 25 17:19:15 like my address? Jul 25 17:19:18 landlines are cheaper generally Jul 25 17:19:18 you can call my address? Jul 25 17:19:22 lol Jul 25 17:19:25 yeah, you can't call my apartment's land line. I don't even think it has phone jacks. Jul 25 17:19:27 but i NEED a cell phone Jul 25 17:19:38 evancharlton: it's like the punch card of cell phones Jul 25 17:19:43 so even if a landline is cheaper, its not like it's that instead of a cell Jul 25 17:19:45 my house actually doesn't have an phone jacks :P Jul 25 17:19:46 it would be in addition to Jul 25 17:19:48 how do pay phones fit into that model? Jul 25 17:19:54 i must be old fashioned Jul 25 17:19:59 evancharlton: what are pay phones? Jul 25 17:20:02 evancharlton: you pay someone to use their phone Jul 25 17:20:02 i have a SIP server Jul 25 17:20:09 here, have a buck, let me borrow your cell Jul 25 17:20:17 fuck that Jul 25 17:20:23 no one's touching my phone Jul 25 17:20:24 well land lines never run out of battery :) and you always have signal Jul 25 17:20:27 they are a good backup Jul 25 17:20:37 my SIP server is my backup Jul 25 17:20:43 and my work cell phone is my secondary backup Jul 25 17:20:47 (different network) Jul 25 17:20:52 true Jul 25 17:21:16 ryanm: those public urinals with glass walls Jul 25 17:21:18 when i get an apartment i probably wont pay for a landline actually Jul 25 17:21:27 you're a developer, you have a work cell? :P Jul 25 17:21:49 yes? Jul 25 17:21:53 everyone's given one Jul 25 17:22:05 its not so much a "work cell" as a benfeit of working here Jul 25 17:22:10 most people just have that one Jul 25 17:22:10 we need you stat for an emergecny code review! Jul 25 17:22:18 i like to keep my personal stuff separate, so i carry two Jul 25 17:22:31 it also means i can have the latest iphone and nexus, whcih is useful in this industry Jul 25 17:23:38 If your app has an "up" button: What should back do after you pressed up? Should it go back to where you were before you pressed up? Or should the up button clear some activities from the stack? Jul 25 17:23:46 clear Jul 25 17:23:52 up? Jul 25 17:23:56 depends Jul 25 17:23:58 clear Jul 25 17:24:04 MUxLood'glev Jul 25 17:24:07 if you've nested down 5 views, you clear those 5 views Jul 25 17:24:07 fuck. Jul 25 17:24:11 :p Jul 25 17:24:14 http://developer.android.com/guide/topics/ui/actionbar.html#Home Jul 25 17:24:16 do that ^ Jul 25 17:24:16 if its just 1 view, i finish the activity Jul 25 17:24:29 i have a general question, i'm looking at code on stack overflow (http://stackoverflow.com/questions/2272335/how-to-change-button-text-dynamically-for-every-3-sec-in-android) and they're update method isn't synchronized, does it need to be? Jul 25 17:24:43 Thanks, clear it is then. Jul 25 17:25:04 why would it need to be synchronized? Jul 25 17:25:43 ok, so in my scenario each time a button click is called it's done in a non-gui thread Jul 25 17:26:06 wait, it doesnt make sense on a button, how can it be clicked twice at the same time, nvm Jul 25 17:27:52 wow im having a bad day today Jul 25 17:28:02 the internet is messed up Jul 25 17:28:03 hi Jul 25 17:29:52 canadiancow|work, my original thought was that two simultaneous clicks would more or less lead to one of their buttons being out of synch, but that doesnt make sense :D Jul 25 17:32:57 getting unmarshalling exceptions when done from an activity that was launched from a notification. doesn't happen if i launch the app normally Jul 25 17:39:38 Can I assume that an OpenGL game will always use up less battery than a canvas version of the same game? Jul 25 17:40:38 Why am I not seeing errors from Integer.parseInt() ? Jul 25 17:40:48 maybe it works? :> Jul 25 17:40:58 try catch? Jul 25 17:41:17 When using the flag CLEAR_TOP, it seems to relaunch the activity. Is there a way to launch an activity in such a way that if there's an instance of it in the stack, clear all on top, but resume the activity in the same way that clearing the activities with back button? Jul 25 17:43:07 Ah, combining the flags clear top and single top works for this :) Jul 25 17:43:56 CallumTaylor, now i hate the gui editor in a space of a few hrs, making that special config ive made stops it working altogethr i have to quit eclipse and reload and i get one chance to edit xml in gui before it stops working again.. im not even using the special config! :-/ Jul 25 17:44:45 damn Jul 25 17:44:52 become uber and use xml Jul 25 17:44:55 yikes, i havent used it extensively but i saw that master layout view and i thought it was really nice Jul 25 17:45:01 i do both Jul 25 17:45:07 but i dont see why i should strain if i dont have to Jul 25 17:45:19 looks like you will have to Jul 25 17:45:29 oh thats nice new bug list, 67 bugs.. Jul 25 17:45:37 how can a perfect app have 67 bugs.. grr Jul 25 17:45:46 are you using eclipse? Jul 25 17:45:53 no app is perfect Jul 25 17:46:19 you obviously haven't used my software Jul 25 17:46:26 all of my apps are perfect Jul 25 17:46:48 poppycott Jul 25 17:46:56 well I never! Jul 25 17:47:09 there are no bugs in any Android apps I've released myself on the market. Jul 25 17:47:23 what apps have you released Jul 25 17:47:30 None :-) Jul 25 17:47:31 programming is easy, just don't make mistakes Jul 25 17:47:41 lol ryanm i knew you was going to say that Jul 25 17:48:08 every fc in my apps is planned to increase ux Jul 25 17:48:16 their complaints bring me closer to my users Jul 25 17:48:17 lol C0de that is the quote of the day Jul 25 17:48:23 lol Jul 25 17:50:00 I remember when the head of finance told our company that we needed to not make any mistakes when we were programming. Jul 25 17:50:15 I was ready to tell him that the same goes for finance, and we shouldn't get companywide "Does anyone know why we have this check for $50k" emails Jul 25 17:50:41 rofl Jul 25 17:50:50 sounds like your boss was a douche Jul 25 17:51:12 lol Jul 25 17:51:13 oh, he wasn't my boss. Jul 25 17:51:20 he was in a totally different department. Jul 25 17:51:21 sorry, head of fianance Jul 25 17:51:25 there's a reason I left that company. Jul 25 17:51:49 because audiobooks > $50k checks? Jul 25 17:51:50 hehe Jul 25 17:52:05 they dont realise how hard it is to write softweare without bugs :) Jul 25 17:52:32 whats a good way to show to the user that a textview is actually clickable? Jul 25 17:52:40 How does one clear the selection of a listview with choicemode CHOICE_MODE_SINGLE Jul 25 17:52:55 if you call setSelection with anything less than 0, then 0 is selected Jul 25 17:52:59 f2prateek, have some modifiable text start as the default Jul 25 17:53:11 when they click it the text can disappear or something Jul 25 17:53:24 f2prateek: I do it with colors and underlines Jul 25 17:53:31 one or both of those Jul 25 17:53:41 people are programmed to click blue, underlined text Jul 25 17:53:54 hmm im only up to invoice 281 and i been freelancing since i was a teen Jul 25 17:54:04 hehe got to graph it all out one day Jul 25 17:54:24 kaneda^: fitzpantson: thanks! Jul 25 17:54:36 actually thats still quite high Jul 25 17:55:34 lov who u work for now? Jul 25 17:55:45 goog? Jul 25 17:57:31 no Jul 25 17:57:32 Audible.com Jul 25 17:57:46 a fully owned subsidiary of The Big River Jul 25 17:57:51 ah Jul 25 17:57:54 cool Jul 25 17:58:34 that took me a few seconds Jul 25 17:58:45 "i thought it was owned by amazon!" Jul 25 17:58:56 hah Jul 25 18:01:16 hmm one of my activities wont go into landscape Jul 25 18:01:29 all u have to do is not specify android:screenOrientation="portrait" right? Jul 25 18:04:59 hi guys, developed an app using phonegap and jquery-mobile, which includes using jquery - can anyone tell me, as phonegap(cordova) is licensed as Apache License, and jquery mobile (at least) is under dual MIT and GPL Jul 25 18:05:11 what restrictions are imposed on me and what are my obligations to maintain legality? Jul 25 18:08:15 cbx33: I believe MIT and Apache are basically just "Make sure you include our copyright notice in the program, and in the sources" Jul 25 18:09:56 and I have to make the source available too right? Jul 25 18:10:01 but not necessarily in the package itself Jul 25 18:10:01 nope Jul 25 18:10:08 that's GPL Jul 25 18:10:18 but if it's dual MIT/GPL, you can pick which Jul 25 18:10:32 ahh ok Jul 25 18:10:33 so, you pick MIT and you don't have to release source Jul 25 18:10:47 obviously, IANAL :) Jul 25 18:10:52 wat Jul 25 18:10:57 best acronym evar Jul 25 18:11:15 that is a pretty good one Jul 25 18:11:23 heheh Jul 25 18:11:28 sounds like a special kind of apple product Jul 25 18:11:29 What JesusFreke said. Jul 25 18:11:40 yeh I know :p Jul 25 18:11:56 and can I sell it? Jul 25 18:12:04 yes. Jul 25 18:12:19 interesting Jul 25 18:12:20 ^^ Jul 25 18:12:29 Apache2 is a very business friendly license Jul 25 18:12:30 just include the copyright notices somewhere in the program. (about screen, or something) Jul 25 18:12:38 as opposed to the GPL which is neckbeard friendly (and generally business unfriendly) Jul 25 18:12:48 heheh Jul 25 18:14:57 uggggghhhh Jul 25 18:15:09 google docs' new revision management SUCKS Jul 25 18:15:12 god why did they change this Jul 25 18:15:24 that's the whole reason i loved this tool :( Jul 25 18:15:29 join #ubuntu-br Jul 25 18:15:40 sorry Jul 25 18:15:56 ./ <-- fail/ Jul 25 18:17:02 Does anyone know if it is possible for an app to see what would be seen on the screen, and then work from that? For instance to filter out or invert colours etc. Jul 25 18:17:04 hello Jul 25 18:17:41 kZard: no, for security reasons that is not possible. Jul 25 18:17:45 ok Jul 25 18:17:54 makes sense Jul 25 18:18:03 would've been usefull though Jul 25 18:18:19 kZard: there are actually extensions in custom roms that do this Jul 25 18:18:29 oh really? Jul 25 18:18:32 cool Jul 25 18:18:41 kZard: for example to turn off certain color channels to save battery on OLED screens Jul 25 18:18:42 too much effort though :D Jul 25 18:18:53 that's kinda what I'm going for Jul 25 18:19:03 and for night vision Jul 25 18:19:35 inverting colours while reading pdfs would also save battery Jul 25 18:19:42 that's a frameworks level change, though. Jul 25 18:19:50 it's not something that an app can do itself. Jul 25 18:20:04 does cyanogenmod include that? Jul 25 18:20:23 dunno which ROM does, I saw it a while back Jul 25 18:20:27 ok Jul 25 18:20:35 I'll ask in -root then Jul 25 18:21:08 its a bit drastic to go over too another rom though Jul 25 18:22:33 kZard: http://jsharkey.org/blog/2010/07/01/android-surfaceflinger-tricks-for-fun-and-profit/ Jul 25 18:23:22 wow Jul 25 18:23:28 those are some savings indeed Jul 25 18:24:57 in airplane mode Jul 25 18:24:58 lol Jul 25 18:25:08 yea Jul 25 18:25:11 so basically in a situation that's unrealistic Jul 25 18:25:37 its a situation that enables you to apply the results to your own phone Jul 25 18:25:57 the screen uses about 70% of my battery Jul 25 18:26:15 so a 50% saving would enable 35% real savings Jul 25 18:26:41 at the expense of looking ridiculous Jul 25 18:26:47 yeah Jul 25 18:27:33 meh Jul 25 18:27:39 its cool in a cinema Jul 25 18:27:49 if you need to check something on your phone Jul 25 18:27:56 red won't bother other people as much Jul 25 18:28:39 if you turn your phone screen on in a movie i will tell you to turn it the fuck off Jul 25 18:28:45 and i will phrase it exactly like that Jul 25 18:28:49 i made some girl almost cry once Jul 25 18:28:55 and I will applaude you Jul 25 18:29:22 hahaha Jul 25 18:29:23 i almost got in a ifght with a big eastern european guy once because i told him to stop talking Jul 25 18:29:35 yea lol Jul 25 18:29:37 his girlfriend had him whipped though Jul 25 18:29:39 so it was all good Jul 25 18:29:41 fact remains though, it is usefull Jul 25 18:29:47 hehe Jul 25 18:55:17 What's the best way to share global variables among only a group of Activities? Jul 25 18:55:50 dont Jul 25 18:55:51 :( Jul 25 18:55:55 use intents Jul 25 18:56:07 I got this activity to display an admob add. It creates it's own view, and loads the add in it : https://gist.github.com/3177859 . I want to have the button display in a certain TableRow, so I tried using findViewById(R.id.bottomrow).loadAd(adRequest); but that certainly doesn't work.. What is the correct way to do it? Jul 25 18:56:43 canadiancow|work I'd love to, but I'm not too happy about having to serialize objects. Jul 25 18:56:54 what "objects" do you need globally Jul 25 18:57:08 uni4dfx: use a Service. Jul 25 18:57:56 canadiancow|work profile data (acquired from some webservice every time on startup) Jul 25 18:57:57 How can i disable the xml suggestion box on eclipse? Jul 25 18:59:46 uni4dfx: definitely use a Service for your webservice calls, and keep the data there. Jul 25 18:59:56 lov, thanks, i'll look into that Jul 25 19:02:25 uni4dfx: also here is the dev guide's suggestions/options for passing data: http://developer.android.com/guide/faq/framework.html#3 Jul 25 19:03:18 mr6 Thanks. I would've probably have to google that at some point :) Jul 25 19:03:21 primitive data types in intents, signleton classs, public static fields, hashmap of weakReferences to objects and persistent storage Jul 25 19:03:34 uni4dfx: yeah i needed to bookmark that anyway Jul 25 19:12:07 can a string not just reference another string? Jul 25 19:12:19 like @string/bar Jul 25 19:13:30 is this invalid? (its seems so) Why? (TextView) findViewById(R.id.ilsUsdVal) Jul 25 19:13:30 .setText((String) data.get("dollarbb", "rate")); Jul 25 19:13:35 canadiancow|work: I think so, yeah Jul 25 19:13:43 cause its behaving strangely Jul 25 19:13:48 mbrevda: no Jul 25 19:14:03 mbrevda: you have to wrap your cast in another set of parens Jul 25 19:14:14 ((TV) findViewById(foo)).setText("blah"); Jul 25 19:14:31 syntax error on TV Jul 25 19:14:36 not a real class evancharlton Jul 25 19:14:51 it's 720p, though Jul 25 19:15:01 hmm Jul 25 19:15:05 how do you even computer Jul 25 19:15:11 can you put the .foo on another line? Jul 25 19:15:18 mbrevda: one could, yes Jul 25 19:16:13 that is awesome! Why do all the demos and tutorials insist on being so verbose? Jul 25 19:16:33 is the variable _really_ necessary? Jul 25 19:16:45 ? Jul 25 19:17:05 what variable Jul 25 19:17:13 mbrevda, no need to refactor when you find yourself in a situation which needs a variable for the textview Jul 25 19:17:22 mbrevda, also, it's cleaner and easier to read Jul 25 19:17:38 are variable really that cheap in java? Jul 25 19:17:41 if you findviewbyid the same id all the time, you're doing it wrong Jul 25 19:18:12 findViewById is expensive Jul 25 19:18:24 yep Jul 25 19:19:02 but im doing it just once (as in the example above). So setting a var seems a bit superfluous? Jul 25 19:19:12 15:18 < mbrevda> are variable really that cheap in java? <-- what does that even mean? Jul 25 19:19:27 mbrevda, up to you Jul 25 19:20:01 mbrevda, if the code executes only once, that is Jul 25 19:20:08 we seem to be making a big deal out of nothing here Jul 25 19:20:26 wongk, isn't that how irc works Jul 25 19:20:30 evancharlton: resources have a "price". Instantiating them + the (memory) overhead of keeping them around. Thats why garbage collectors exists - to clear away the non needed resources Jul 25 19:20:31 tru Jul 25 19:20:39 mbrevda: what Jul 25 19:20:53 mbrevda: saving findViewById to a variable has no cost. Jul 25 19:20:54 wongk: to some, "making a big deal" == "learning" Jul 25 19:20:58 you're on the stack anyway Jul 25 19:21:29 it has the cost of a reference, 4 bytes, insignificant Jul 25 19:21:39 variables, inevitably, have some cost (unless java works magically different) Jul 25 19:21:49 wongk: thanks, i guess thats not a big deal then Jul 25 19:21:51 java works in references Jul 25 19:21:56 ==wongk Jul 25 19:22:09 yo but allocating ssomething on the stack Jul 25 19:22:13 is that really that cheap in java? Jul 25 19:22:32 yes, stack vs. heap is always a concern Jul 25 19:22:33 you've already done the allocation :-/ Jul 25 19:22:37 even with references Jul 25 19:22:55 findViewById returns a references to an already existing object Jul 25 19:22:58 or null, if not found Jul 25 19:23:06 but you have to allocate the reference Jul 25 19:23:16 Zharf: and you store that in either a stack or heap location Jul 25 19:23:45 canadiancow|work: as wongk said, it's 4 bytes Jul 25 19:23:46 stack memory is allocated when the thread is created Jul 25 19:24:04 evancharlton come on Jul 25 19:24:08 Zharf: it returns an object - but (in theory, at least) storing that object (or even a reference to it) consome SOME resources Jul 25 19:24:09 dont troll the troll Jul 25 19:24:10 on linux it's 8 MB by default Jul 25 19:24:20 I bet the bytecode for View v = findViewById(1); v.setVisibility(View.GONE); and findViewById(1).setVisibility(View.GONE) is more or less identical Jul 25 19:24:27 it is Jul 25 19:24:36 mbrevda, you can't do something with no resources at all Jul 25 19:24:56 stop worrying about premature optimizations Jul 25 19:24:56 I know - and im not complaining about 4k (now that I learned that thats all it is) Jul 25 19:24:58 mbrevda: how will the next instruction operate on the returned object without storing it somewhere? Jul 25 19:25:24 mbrevda: hah not 4k, 4-bytes Jul 25 19:25:41 mr6: right, sorry Jul 25 19:25:57 evancharlton: it just gets passed to the next method? Jul 25 19:27:26 evancharlton: line numbers Jul 25 19:27:35 (assuming this isn't on the same line) Jul 25 19:27:42 it may be :) Jul 25 19:29:17 im using this little bit of code to instantiate an adview and load the add at the bottom of the screen. I'd like to have the tablerow already set, and load the add in that so that when the add loads, all other views aren't moved, if that makes sense.. Jul 25 19:29:38 https://gist.github.com/3178045 Jul 25 19:30:17 and I'm guessing that addView in a tableLayout context adds a row. Jul 25 19:30:35 why are you using a Tablelayout? Is this actually tabular data? Jul 25 19:30:43 use a RelativeLayout or a LinearLayout please. Jul 25 19:30:45 But, how would I load the ad in an tablerow that's already setup Jul 25 19:30:56 I actually am using a tablelayout Jul 25 19:33:37 but, lets say the tablerow i want to use is ID'ed as 'addrow', how would I reference that to load the add in? Jul 25 19:34:12 and, is that even going to solve the issue of everything moving when the add is loaded? Jul 25 19:39:53 apparently empty strings in strings.xml show up as empty strings when you use them Jul 25 19:39:54 go figure Jul 25 19:41:17 canadiancow|work: funny that. Jul 25 19:52:45 how can i force they keyboard to appear on a phonee with no hardware menu button? Jul 25 19:53:29 actionbar? Jul 25 19:53:39 the menu button is deprecated anyway Jul 25 19:53:55 err Jul 25 19:54:02 you can push and hold the mnu button Jul 25 19:54:04 and it forced the keybaord open Jul 25 19:54:09 so without one... Jul 25 19:54:12 ahh Jul 25 19:54:21 didn't know that Jul 25 19:55:16 depending on such a feature would be terrible for usability though Jul 25 19:55:36 hello, any unity developers in today? Jul 25 19:57:20 when user clicks in a TextView it launches the soft keyboard Jul 25 19:57:32 EditText* Jul 25 19:58:50 danharibo: why do you need the user to open the soft keyboard manually? Jul 25 20:00:39 hi, is anyone here familiar with the new app encryption mechanisms that come with Jelly Bean? Jul 25 20:00:50 is there any word on if those features will be backported? Jul 25 20:03:23 Rockmaninoff: probably not Jul 25 20:07:12 C0deMaver1ck: yeah, reading up on a few articles it appears not Jul 25 20:07:17 so, maybs in a year we'll see reduced piracy :P Jul 25 20:07:57 heh, my app I'm about to release next week will be 4.x only, so I'll see reduced privacy now XD Jul 25 20:09:18 MDijkstra: i don't, i just wondered if it was possible Jul 25 20:15:19 s/privacy/piracy Jul 25 20:22:00 Just a dev question from a non developer. Do a lot of android devs have to spend time adding additional code to support oddities on specific phones? Or does the android SDK take care of all details of cross phone dev? Jul 25 20:22:25 it's rare Jul 25 20:22:28 i wouldn't say "never" Jul 25 20:22:28 ^ that Jul 25 20:22:56 hey, can u set the actionbar icon from a style? Jul 25 20:23:07 ? Jul 25 20:23:17 just use it as a drawable Jul 25 20:23:26 @drawable/your_icon_here Jul 25 20:24:18 C0deMaver1ck, right, but what style name do u assign that to Jul 25 20:29:26 Soo...in the latest version of ADT plugin for eclipse, you have the option of creating a default dual-pane hello-world app. In this app, they put both a single-pane layout and a dual-pane layout xml files in the res/layout folder. Then the res/values-large folder has a refs.xml that contains "@layout/activity_item_twopane". Why do they do this instead of just placing the dual-p Jul 25 20:29:26 ane layout file in the layout-large folder? Jul 25 20:35:31 probably so you can put it in large and in sw600dp without duplicating the file Jul 25 20:37:47 How do Renderscript root()'s work? For instance if I wanted to reduce a 2D array to a vector of column-wise sums, do I just start the root and it partions itself across cores or does something else need to be done? Jul 25 20:39:11 canadiancow, oh, so sw600dp is similar to large? Jul 25 20:39:20 kinda? Jul 25 20:39:23 large was a giant bucket Jul 25 20:39:29 sw600dp is only available since 3.2 Jul 25 20:39:36 but means you are guaranteed 600dp across in both directions Jul 25 20:39:43 Oh ok. thanks :) Jul 25 20:42:50 saecula: root() is called once per element of whatever you want it to operate on. You probably want it to iterate over the output vector and to do your own iteration over the source. Jul 25 20:43:22 I say that, for a GPU task a row or a column is typically far too few items for good parallelism. Jul 25 20:44:32 The thing is, to have root() called once per element in the 2D array you would have to use atomic adds. Jul 25 20:45:40 I am tiling background textures. Not every time, but occasionally (I think upon rotating the device) the textures are displayed at a very low resolution and may not be tiling. I am getting this issue on a 2.1 device. Jul 25 20:46:27 saecula: How big is your 2D array? Jul 25 20:50:46 my text is always black. Am I doing this right? http://pastebin.com/jp8K8Pfw Jul 25 20:55:14 no, that's racist. Jul 25 20:55:42 sigh Jul 25 20:56:06 mbrevda: use equals() not == Jul 25 20:56:07 for strings Jul 25 20:57:04 like this? if (rateSign.equals("+")) Jul 25 20:57:24 "+".equals(rateSign) Jul 25 20:57:31 :) Jul 25 20:59:11 thanks canadiancow|work & romainguy_. My 'rateSign' is + and im still getting black text Jul 25 20:59:15 any ideas? Jul 25 21:00:07 trimming spaces? Jul 25 21:01:00 rateSign doesnt have any spaces Jul 25 21:01:23 then it isn't + like you think it is Jul 25 21:01:37 here is the log fron line 10: '+' -16777216 Jul 25 21:01:41 *from Jul 25 21:02:52 that's not black Jul 25 21:03:30 but my text IS showing as black? Jul 25 21:07:42 hmm, nevermind, that's just alpha Jul 25 21:09:15 Can I use a started service to provide functionality to both an application and its widget? Jul 25 21:10:26 any idea how much Rove Mobile Admin Client costs? Jul 25 21:10:42 it says free here, but the video intro about it mentions downloading "your 30-day trial" etc.. Jul 25 21:11:11 even if I hardcode the color, it still showes as black Jul 25 21:15:37 well, what you pasted as your log output is black Jul 25 21:16:14 I see, hmm Jul 25 21:16:48 thats weird. Wouldnt getResources().getColor(R.color.down) return the correct color as an int? Jul 25 21:18:31 hmm - seems using red/green/black as a resource name isnt such a good idea Jul 25 21:22:42 hi guys, when I'm going from one activity to the next, and I want the transition animation between the two to be disabled, which activity do I specifiy that in? THe on that's coming or the one that's going away? Jul 25 21:25:04 going away Jul 25 21:28:05 thanks evancharlton Jul 25 21:29:25 tnzr: getWindow().setWindowAnimations(0); Jul 25 21:30:49 Hey devs, I've got a ViewPager issue. I'm moving an old view from a Gallery and I'm getting a strange result. This is what I mean: https://dl.dropbox.com/u/3486471/demo.gif Jul 25 21:31:57 I've recompiled the frameworks/support/v4 to include the debug info and traced it down to the onLayout not running as it should (or the onMeasure for that matter). Jul 25 21:32:11 so i've got an activity which does setContent() on a layout that contains a fragment. That fragment needs info from the Activity's Intent, how can i pass it in? Jul 25 21:35:36 Wavesonics: passs the arguments in the construcotr of the fragment? Jul 25 21:35:42 fdsf Jul 25 21:35:44 oops Jul 25 21:36:02 f2prateek, it's being inflated for me via setContent() Jul 25 21:36:52 the only thing i really hate about JNI is this: (Ljava/lang/Boolean;)Z Jul 25 21:37:00 fully qualified boolean, wtf Jul 25 21:37:45 lol Jul 25 21:37:54 Wavesonics: then set a interface for the callback, have the activity implement it, and in the onattach of the fragemtn, remember the activtiy as the callback and access that, Jul 25 21:37:59 i mean really, who the hell thought that was a good idea? Jul 25 21:38:06 Wavesonics: that might be confusing to understand, read up more here http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity Jul 25 21:38:45 f2prateek, cool thx Jul 25 21:41:01 Hello Jul 25 21:41:13 hi Jul 25 21:41:23 how do you do to use Eclipse? I find it so uncomfortable! Jul 25 21:41:39 uh Jul 25 21:41:46 Eclipse is ok, but slow Jul 25 21:41:47 just pretend you have no other choice Jul 25 21:41:50 I prefer NB but it sucks for Android :P Jul 25 21:42:15 anyone here use Idea for android development? Jul 25 21:42:16 Eclipse is so user-unfriendly! -.-" Jul 25 21:42:26 IntelliJ works well Jul 25 21:42:31 cool Jul 25 21:43:15 the only two things that I miss in NB are: a GUI builder and a way to run the app directly on my device Jul 25 21:48:30 anything that builds and runs my android app on the emulator with the push of a button is alright with me ;p Jul 25 21:50:47 if that impresses you, your standards are too low Jul 25 21:51:34 BTW for those interested, http://hqtech.co/news/download-android-4-1-1-jelly-bean-ota-update-for-motorola-xoom-wi-fi-us/ Jul 25 21:51:40 I really hate how robolectric behaves differently me on windows vs. linux :( Jul 25 21:51:56 Jelly Bean OTA for Motorola XOOM Wi-Fi US Jul 25 21:52:18 good for xoom owners Jul 25 21:52:25 pity that the sgt10.1 is so poorly supported Jul 25 21:54:10 I got a java.lang.UnsupportedOperationException error: https://gist.github.com/3178908 , trying to instantiate an admob add through XML: https://gist.github.com/3178913 Jul 25 21:54:32 The graphical layout in elite says "The following classes could not be instantiated: Jul 25 21:54:32 - com.google.ads.AdView (Open Class, Show Error Log) Jul 25 21:54:32 See the Error Log (Window > Show View) for more details. Jul 25 21:54:43 pfn yeah, though hopefully Sammy will release one for it Jul 25 21:54:48 I'm guessing not too soon Jul 25 21:54:55 Damn Hydra IRC :@ didn't mean to copy paste all those lines Jul 25 21:55:11 sorry about that, hydra IRC auto sends those sometimes Jul 25 21:55:12 HydraIRC is still alive? Jul 25 21:55:41 got a good suggestion for a client? Jul 25 21:55:54 I thought hydra got discontinued before 2005 or so Jul 25 21:56:02 Ummm mIRC is pretty good for Windows Jul 25 21:56:05 X-Chat isn't bad either Jul 25 21:56:06 or even better, an idea on what that error is :) Jul 25 21:56:18 Heh no idea on that Jul 25 21:56:21 Ill try Xchat, mIRC can't copy paste Jul 25 21:56:27 mIRC can copy paste Jul 25 21:56:37 When you drag to select, it's copying :) Jul 25 21:56:46 Ill try Xchat, mIRC can't copy paste Jul 25 21:57:00 (demo) Jul 25 21:57:14 okok, did not know that Jul 25 21:58:37 ThomQ: did you declare it in the manifest? Jul 25 22:01:07 f2prateek : yeah, I though I did, but let me check that out Jul 25 22:01:47 like the permission as well? i think it needs network at the least Jul 25 22:03:39 yeah and internet Jul 25 22:04:36 https://gist.github.com/3178983, the manifest.. Declared correct, right? Jul 25 22:09:25 ThomQ: try doing it throught java code, withotu the laodAdonCreate Jul 25 22:09:38 *through Jul 25 22:16:43 f2: I was going to, first I wanted to set up a adview within the bottom tablerow Jul 25 22:17:07 so that when an add is displayed, it doesn't mess up the positioning of al the other views Jul 25 22:24:45 put a framelayout there Jul 25 22:25:56 if I do -w600dp does that mean it'll show on a 7" tablet in landscape orientation? Jul 25 22:25:59 does it actually work through java though? just test with java if it is actually loading, you can remove the code once its confirmed Jul 25 22:26:31 pfn: it'll show up on a device which has a width of 600dp Jul 25 22:26:57 which way is considered the width though... with the device in horizontal orientation only? Jul 25 22:27:13 pfn: i think w600dp is in both orientations Jul 25 22:27:15 so even if you're holding it vertical and the width is under 600dp, it'll still use that resource? Jul 25 22:27:25 sw600dp ensures its in both Jul 25 22:27:44 I don't want both Jul 25 22:27:48 pfn: no itll switch to the regualr layout, not the one in 600dp then Jul 25 22:27:57 good, that's what I want, if that's the case Jul 25 22:28:22 pfn: thats how i understand it, but i've never tested it so cant say for sure Jul 25 22:29:00 width dp: the current width available for application layout in “dp” units; changes when the screen switches orientation between landscape and portrait. Jul 25 22:29:05 why has the sony smartwatch only got 128k ram :-/ Jul 25 22:29:07 perfect Jul 25 22:30:06 gaz`: 128k? not mb? Jul 25 22:37:33 f2prateek i cant actually find a reliable source Jul 25 22:40:00 is it possible to have multipe 'assets' folders as build time within the Eclipse tooling? I'm generating some assets at build time and it would be nicer not to have to generate into the source directory Jul 25 22:51:55 gaz`: 128kb seems a little too less for my liking Jul 25 23:14:06 omg. adt, i seriously hate you so very much Jul 25 23:14:09 you are the worst piece of junk ever. Jul 25 23:14:17 nah :) Jul 25 23:17:40 romainguy_: suddenly, inexplicably, all my lib-projects are causing build breaks in all my apps Jul 25 23:17:51 the lib projects themselves claim to be building fine Jul 25 23:18:01 the projects that depend, failing because none of the classes can be found Jul 25 23:23:18 http://i.stack.imgur.com/YPsJr.gif <- any ideas why this would happen? Jul 25 23:33:31 laybackclimb: without code? no. Jul 25 23:34:06 gladly Jul 25 23:34:52 I posted earlier about it, since then I made a stack overflow post http://stackoverflow.com/questions/11659493 Jul 25 23:35:43 laybackclimb: did you implement isViewFromObject(View,Object) as well? Jul 25 23:36:15 Heya Jul 25 23:36:32 Is there a better way to access Android APIs with C than with SL4A? Jul 25 23:36:51 evancharlton: yes I did, I can give you the entire piece of code if you'd like, but I guarantee that isn't the problem Jul 25 23:37:08 laybackclimb: please pastebin your adapter's code (or at least those three methods) Jul 25 23:38:39 evancharlton: http://pastebin.com/vimiUnvk Jul 25 23:39:22 evancharlton: client made me do it, I swear Jul 25 23:40:47 laybackclimb: couple of questions: 1) why synchronized? 2) Use the ViewGroup flavor and ditch the casting 3) have you tossed it into hierarchyviewer? Jul 25 23:47:48 evancharlton: thanks for your help first of all. 1)Synchronized because I was testing an old issue, just removed it and I have the same issue. 2) I used the ViewGroup version of destroyItem() and there's no change. Jul 25 23:48:31 evancharlton: I'll try #3 now. Hadn't run across that yet, you're the first person to mention it. Jul 25 23:48:56 laybackclimb: hierarchyviewer is amazing :) Jul 25 23:52:02 laybackclimb: holy shit, you're right, hierarchyviewer is awesome. My whole office just gathered around to ooh and ahh. Jul 25 23:52:24 evancharlton: damn, that's me. got it this time. Jul 25 23:54:48 laybackclimb: :) Jul 25 23:58:28 and remember, you can add your own properties to HierarchyViewer Jul 25 23:59:09 is this how you launch an activity? Activity activity = (Activity) this.ctx.getContext(); activity.startActivity(new Intent(activity, TestActivity.class)); cause when i do this nothing happens Jul 25 23:59:11 any suggestions? Jul 26 00:04:03 evancharlton: romainguy_: http://imgur.com/HSMd4 -> the first two are loaded and looking nice (just like in the demo GIF) and the third is shown under the hierarchy (that's what's selected) and even has a preview thumbnail. It has no measurements however, even through it's already been 'showing' (it doesn't show) on screen. Jul 26 00:04:39 Mr_Grim: so close, yet so far Jul 26 00:05:34 Mr_Grim: replace all that crap with ctx.startActivity(new Intent(ctx, TestActivity.class)); Jul 26 00:05:39 now, functionally they should be the same Jul 26 00:05:45 but that other one was all kinds of wat Jul 26 00:06:42 laybackclimb: I just realized you never set any layoutparams on that textview Jul 26 00:06:52 try setting the layout params to MATCH_PARENT / WRAP_CONTENT Jul 26 00:07:06 Alright, I'll give it a shot Jul 26 00:09:54 holy shit Jul 26 00:09:58 when did google get a calculator Jul 26 00:10:51 do you want an answer in years or in decades? Jul 26 00:11:33 canadiancow: the scientific one came out recently, like couple of days maybe Jul 26 00:11:47 Nobody knows? :( Jul 26 00:14:48 canadiancow: Hah, nice Jul 26 00:15:21 emulator disconnects from eclipse when data is set to unregistered :/ Jul 26 00:16:33 hah, i've seen it do maf, i've never seen it actually offer a calculator Jul 26 00:22:03 evancharlton: I added this tv.setLayoutParams( new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT, 1.0f) ); Jul 26 00:22:14 and the effect is the same Jul 26 00:22:58 the interesting thing is that clicking on 'Load View Hierarchy' actually forces the onLayout to run and the missing views appear Jul 26 00:23:50 but it does that after the information is loaded into hierarchyviewer loads, so hierarchyviewer still shows width=0, etc Jul 26 00:37:47 evancharlton: thanks for your help. I've got to run though. I'll be back at it tomorrow though :| Jul 26 01:23:37 is there a way to hide the text for an actionbar item instead of placing it in the overflow if say it goes from landscape to portrait? Jul 26 01:24:02 doing things like always|withText|ifRoom and combinations of such only cause the app to force close on launch Jul 26 01:27:20 Hello, I can't manage to make image fill entine ImageView! Here's the screenshot https://dl.dropbox.com/u/71236259/2012-07-26-042605_255x312_scrot.png Jul 26 01:28:40 Having both always and ifRoom makes no sense Jul 26 01:30:44 SimonVT: I was hopping having the ifRoom would only apply to the withText Jul 26 01:30:59 so always show the button, and show the text if there's room Jul 26 01:31:58 this one with scale type fitXY - still paddings everywhere!! https://dl.dropbox.com/u/71236259/2012-07-26-043117_229x317_scrot.png Jul 26 01:32:08 That's not how it works Jul 26 01:33:40 Also, don't fight the platform Jul 26 01:33:54 so it's not possible then? Jul 26 01:34:57 No Jul 26 01:35:20 anybody? :\ Jul 26 01:38:54 akls: have you played around with scaleType in the xml? Jul 26 01:39:03 android:scaleType="centerCrop" might work Jul 26 01:39:27 hmm Jul 26 01:40:32 that's with centerCrop https://dl.dropbox.com/u/71236259/2012-07-26-044006_231x310_scrot.png Jul 26 01:40:37 seems better horizontally! Jul 26 01:40:43 but what about vertical scaling? Jul 26 01:40:58 I just want to make it fill entire ImageView Jul 26 01:41:06 there's a bunch of options Jul 26 01:41:10 try fitXY, i dunno Jul 26 01:41:45 well, I tried everything Jul 26 01:41:59 sampullman, that's for fitXY https://dl.dropbox.com/u/71236259/2012-07-26-044137_231x320_scrot.png Jul 26 01:43:37 i though centerCrop should work...if you're out of options you could try setting the ImageView matrix similar to what the op did here: http://stackoverflow.com/questions/6669764/scale-an-image-up-to-fill-entire-imageview-in-android Jul 26 01:43:53 if that doesn't work there's some other issue Jul 26 01:44:18 *thought Jul 26 01:46:16 hello, how can i make /mnt/sdcard writeable for anyone? chmod 777 wont change the permissions, also i cant chown it for root but its owned by system:sd_card Jul 26 01:46:22 unbelievable! Jul 26 01:46:38 sdcard_rw Jul 26 02:00:03 dammit! Jul 26 02:00:15 this behavior is really unexpected Jul 26 02:00:19 I still can't get it Jul 26 02:00:23 https://dl.dropbox.com/u/71236259/2012-07-26-045952_247x132_scrot.png Jul 26 02:00:38 both ImageViews set to fitXY Jul 26 02:00:46 what's wrong? what can be wrong? Jul 26 02:01:00 I've tried setting 0px paddings - same result Jul 26 02:01:15 huh? Jul 26 02:01:27 what is this, css + html? Jul 26 02:01:28 adjust view bounds thing doesn't seem to change anything Jul 26 02:01:42 ensi ? Jul 26 02:01:50 akls: ?? Jul 26 02:02:10 that's from eclipse Jul 26 02:02:22 shitclipse you mean Jul 26 02:02:29 ;o Jul 26 02:02:37 same thing in emulator Jul 26 02:03:07 your layout is borked? Jul 26 02:03:20 why? what's wrong with it? Jul 26 02:03:38 and as far as I can see there's something wrong with ImageViews Jul 26 02:03:41 dunno, i only do native code for craproid, no java Jul 26 02:03:53 :p Jul 26 02:04:12 You on the pipe, boy? Jul 26 02:04:26 help! trying to beat this problem for third hour already.. Jul 26 02:04:45 akls: have a beer, sleep over it Jul 26 02:04:57 maybe it works tomorrow Jul 26 02:05:18 no! It will torture me in my dreams! Jul 26 02:05:31 :< Jul 26 02:05:47 i get tortured daily when i touch this platform Jul 26 02:06:16 "fitXY: This one should only be used if disproportionate scaling does not affect the graphic. In the case of bitmap graphics, this is almost always bad to use. This sets the width of the source image to the width of the view, and the height of the source image to the height of the view, without maintaining the aspect ratio of the source image. " Jul 26 02:06:21 THAT'S WHAT I NEED! Jul 26 02:06:32 now why is it not working? Jul 26 02:06:35 :\ Jul 26 02:06:48 akls: code? Jul 26 02:07:17 akls: how many devices you tried? Jul 26 02:07:36 ensi, I'm on the emulator.. should work anywhere Jul 26 02:07:43 f2prateek, one second Jul 26 02:07:59 akls: should is theory, practice is totally different Jul 26 02:08:16 in practice you have to debug it on every device you run it on for different bugs Jul 26 02:09:27 http://pastebin.com/hSsi7Bqp Jul 26 02:10:09 f2prateek, here you go :) Jul 26 02:10:32 there's no real code yet Jul 26 02:10:35 just xml Jul 26 02:11:24 akls: FYI, debugging on a device is way faster than an emulator. Deploying takes 5-10 seconds, starting up an emulator takes 2-3 minutes Jul 26 02:11:45 starting up an emulator takes 30 seconds Jul 26 02:11:50 and I have no android device atm Jul 26 02:11:54 thats a long time Jul 26 02:12:11 acceptable Jul 26 02:12:12 30 seconds, 3 minutes. It's that much time you're wasting for *every* modification Jul 26 02:12:25 akls: acceptable? no way Jul 26 02:12:37 I know! I KNOW! Now how can I solve my problem??... Jul 26 02:12:54 If you don't have a device, that's understandable, but I hope you're planning too invest in one eventually if you're serious about Android development Jul 26 02:13:02 of course Jul 26 02:13:09 wp8 Jul 26 02:13:11 * ensi runs Jul 26 02:14:33 akls: you have margins Jul 26 02:15:26 f2prateek, https://dl.dropbox.com/u/71236259/2012-07-26-051521_239x114_scrot.png Jul 26 02:15:30 no margins, same problem Jul 26 02:19:29 do yo u have the image? Jul 26 02:20:18 ? Jul 26 02:20:20 https://dl.dropbox.com/u/71236259/26c10666.jpg Jul 26 02:20:49 I must say that's quite a lovely image you chose to test with Jul 26 02:21:38 wtf is that Jul 26 02:21:53 alien with eggs Jul 26 02:22:43 akls, no margin for me Jul 26 02:23:28 akls: i just copioed your code and picture, and has no borders at all Jul 26 02:23:35 ensi, that's not an alien :) Jul 26 02:23:48 f2prateek, awesome! Jul 26 02:24:00 f2prateek, how did you test it? Jul 26 02:24:09 f2prateek, on real device or in emulator? Jul 26 02:24:11 akls: jus tin the layout preview https://www.dropbox.com/s/vacex1uhaxxrct0/Image%20002.png Jul 26 02:24:14 eclipse or something else? Jul 26 02:24:16 *just in Jul 26 02:24:19 eclipse Jul 26 02:24:21 adt Jul 26 02:24:42 version? Jul 26 02:24:51 the latest one i guess Jul 26 02:24:54 its at least 20 Jul 26 02:25:30 yeah its 20 Jul 26 02:25:34 I'm having a lot of problems getting my app to work on different versions. I had to make signifcant changes to get it to work on 2.3.3 from 4.0, after making said changes the app no longer works correctly on 4.0.4+, this is pure code, not an incompatible library issue or anything. Is it ok to release the apk that works with 4.0.4 as an update but to limit its availability to 4.0.4_with minsdkversion. So basically I want one apk for Jul 26 02:26:07 löl Jul 26 02:30:20 f2prateek, that's the version of what? Jul 26 02:33:01 of adt Jul 26 02:35:55 f2prateek, thank you! Now when it is solver I can get some sleep! Jul 26 02:38:28 hello beaners **** ENDING LOGGING AT Thu Jul 26 02:59:58 2012