**** BEGIN LOGGING AT Mon May 21 02:59:59 2012 May 21 03:00:13 i just had an epiphany May 21 03:00:30 what the hell is the point of csv when you can just have numbers and quoted strings and delimit with whitespace? May 21 03:00:43 not having to check whether you are inside a string? May 21 03:01:01 JakeWharton, i'm having an issue getting ABS loaded into eclipse May 21 03:01:16 trying to follow along with the video on the FAQ May 21 03:01:57 you'd have better chances of getting an answer if you just asked your question instead of making a personal request to jake May 21 03:02:53 probably true. i'm following along with the FAQ video except that i need to compile on 2.3.3 instead of 4. every Java file has errors (in the video, 3 files did), and a couple of the XML files have errors as well. i imported the compat. library and the errors did not disappear. May 21 03:02:55 this is ABS 4.1.0 May 21 03:03:05 the compat lib should be bundled with abs May 21 03:03:17 set your targetSdkVersion to 15 May 21 03:03:19 and minSdkVersion to 8 May 21 03:03:21 it is, i just added it to the build paths May 21 03:03:21 and build against 4.0 May 21 03:03:50 to make sure it will run on 2.3, test it on a 2.3 emulator and phone.. you will have to compile-time checking on this. May 21 03:03:56 forego* May 21 03:03:59 * p_l considers rabbits an emergency food supply, together with wild ducks and monster seagulls May 21 03:04:10 ……… though recently I've seen a deer May 21 03:04:37 scottish cities are weird May 21 03:05:54 ok, readme, that got rid of some of the errors. May 21 03:06:47 i'm going to try to reimport the project May 21 03:07:37 b1n0ry also make sure you're building against java 1.6 May 21 03:07:58 mostly it was issues with not finding overrides in the superclasses May 21 03:08:08 because you need to set compiler compliance level to 1.6 May 21 03:11:57 yep, that did the trick. thanks, guys! May 21 03:12:12 http://techcrunch.com/2012/05/20/how-android-developers-can-thrive-with-google-play/ whos laughing now ios fanboys May 21 03:18:22 once i compile the .jar library and add it to my project, do i have to keep the ABS project in my workspace? May 21 03:18:26 the guy on the FAQ video did May 21 03:18:47 but... he referenced it in-place without precompiling the library. May 21 03:19:11 *nm, don't answer that. i can try and see if it works. May 21 03:19:19 sometimes asking is too convenient. May 21 03:23:18 emulators past 10 are virtually unusable on my pc... May 21 03:23:29 something i can look at to try to correct that? May 21 03:23:51 and by unusable, i mean 5-10 minutes to start, 30 seconds for click response... etc. May 21 03:25:47 b1n0ry: latest emulator got a bit better after it actually boots thanks to hw acceleration for graphics, but it doesn't work for everyone May 21 03:27:03 If I have a list view and created a customer layout for each item in the list view so that it has 3 items in it with ID'ds and I create a listadapater inside the activity how do I have it so that my struct(Class) set each item of the list view to the items in the struct(class) Strings? Kinda crappy explanation May 21 03:27:32 hello May 21 03:27:49 The layout has 2 buttons and a textview the struct(class) has 3 variables with 3 Strings 1 for the textview and 2 for the src file names May 21 03:28:45 Seion: Just use the id of the view and fill the details in in getView May 21 03:29:32 olie: will i Have to do a loop after I setup the list adapter ? and each id of the view is it 0 - whatever the size of list? May 21 03:30:05 getView is called for ever view in the list May 21 03:30:17 the size of the list is determined by what you pass in getCount May 21 03:30:21 so no loop required May 21 03:31:54 thanks May 21 03:33:59 error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Sherlock'). May 21 03:34:03 any idea what that means? May 21 03:36:23 reading some group posts... so far, none seem to apply May 21 03:37:42 may have figured it out... May 21 03:54:50 did you add sherlock as a library project May 21 03:55:07 right click your project -> project properties -> Android -> Libraries -> Add May 21 04:05:15 readme, i was trying to figure out a way to do it without having to have the sherlock project in my workspace. precompiling it as a jar. May 21 04:05:24 you can't May 21 04:05:35 your jar won't have the resources in it May 21 04:05:44 you need to have the actual library project in your workspace May 21 04:08:06 b1n0ry: ^ May 21 04:08:23 yeah, trying it now May 21 04:08:26 thanks :) May 21 04:19:12 bah, something is seriously screwed up. May 21 04:19:37 setContentView(R.layout.main); <-- main cannot be resolved or is not a field May 21 04:19:46 i can see it res/layout/main.xml May 21 04:20:01 rebuild R May 21 04:20:20 and make sure you didn't inadvertently import android.R at some point May 21 04:20:29 oh yea May 21 04:20:32 eclipse likes to do that May 21 04:20:33 just read that on stackoverflow... May 21 04:20:35 checking May 21 04:21:07 heh, yep. that's what it did, and of course collapsed it in the stack May 21 04:23:23 i love eclipse... seems like every time i do something it comes up with its own internal error... unable to delete, launch, etc. May 21 04:26:03 there she is :) finally launches... on my 2.3.3 emulator so thanks, again. you all ftw. May 21 04:29:59 i have no issues with eclipse May 21 04:30:02 * hesperaux shrugs May 21 04:32:07 heh May 21 04:32:10 I used to say the same thing May 21 04:32:14 and I didn't mind eclipse at all May 21 04:32:39 but don't bring up git with eclipse May 21 04:32:40 then i might rage May 21 04:32:47 heh May 21 04:32:58 git is builtin to IntelliJ, and it works great May 21 04:33:00 i decided i don't need version control, because eclipse said so May 21 04:33:09 intellij? May 21 04:33:12 is that your IDE? May 21 04:33:13 yea May 21 04:33:19 that's what I've been using lately May 21 04:33:23 can you browse sqlite in it too? May 21 04:33:28 yes May 21 04:33:30 nice May 21 04:33:36 though I don't May 21 04:33:41 I just use commandline sqlite3 May 21 04:33:50 syntax highlight, autoindent, open declaration, hold shift to show function prototype...? May 21 04:34:31 http://www.jetbrains.com/idea/ May 21 04:34:35 go read the specs May 21 04:34:43 ok May 21 04:35:09 i got this program written in qt May 21 04:35:11 sqlitebrowser May 21 04:35:14 that seems decent May 21 04:35:15 language injections :O May 21 04:35:21 I was thinking I'd like a better SQLite3 shell May 21 04:35:25 with autocomplete and history May 21 04:35:33 but I'm kind of not up to writing that right now :) May 21 04:35:38 hehe May 21 04:35:40 heh May 21 04:36:03 t0mless, i'm liking the look of this May 21 04:36:11 it says android dev in here; to what extent? May 21 04:36:21 does it offer debug/breakpoints, etc? May 21 04:36:24 yes May 21 04:36:44 does it take over9000MB of ram like eclipse does? =\ May 21 04:36:49 lol May 21 04:36:52 No May 21 04:37:03 about how much does it use? May 21 04:37:14 494Mb right now, 2 instance opening May 21 04:37:23 hmm, that's a lot May 21 04:37:26 haha May 21 04:37:31 you need to buy ram hesperaux May 21 04:37:38 484mb is a lot? May 21 04:37:38 readme, i really need to upgrade to i7/16G May 21 04:37:48 windows 7 is a fucking idiot about memory May 21 04:37:50 i do fine with amd phenom x4 and 4GB ram May 21 04:37:53 but I use linux :) May 21 04:37:54 it swaps the shit out of my comp all the time May 21 04:37:59 readme, i would May 21 04:38:06 but i'd have to reboot all the time to game with friends, sigh May 21 04:38:17 I have 8gb and the only time I've run out is when I had two instances of intellij open and then opened WoW May 21 04:38:20 give up gaming and become a masterful programmer May 21 04:38:22 this is a core2 duo 2.6 and 4G ddr2 May 21 04:38:28 wow May 21 04:38:32 that's terribad May 21 04:38:32 readme, lol. I kinda have, compared to before May 21 04:38:46 but still, 494mb is nothin May 21 04:38:52 let's see what eclipse is using May 21 04:38:59 464MB May 21 04:39:05 eclipse.exe uses hardly anything. look for javaw.exe. May 21 04:39:14 yeah, mine is using 408 right now. hardly anything for an IDE. May 21 04:39:18 that's what i'm looking at b1n0ry May 21 04:39:28 2.6 gig for my eclipse :P May 21 04:39:32 * dragorn hates eclipse. May 21 04:39:33 holy shit May 21 04:39:36 lol May 21 04:39:38 heck, firefox uses 2x that much after about 30 minutes of browsing. May 21 04:39:42 you have like 30 projects open? May 21 04:39:44 i don't use FF anymore May 21 04:39:52 chrome uses a boatload of memory May 21 04:39:55 8mb for my vim May 21 04:39:57 t0mless: no. 2. May 21 04:39:57 chrome, however, i have like 30 tabs open most of the time, and that uses about the same ~400MB May 21 04:39:59 FF is the worst memory hog browser i've used... i don't use chrome. May 21 04:40:08 physical memory use is 60% for me May 21 04:40:20 physical memory use doesn't mean much in windows 7 May 21 04:40:26 that's my point May 21 04:40:30 they use abstract memory handling May 21 04:40:31 it doesn't mean much, and yet it still uses it up May 21 04:40:31 t0mless: I had to tweak the eclipse launcher scripts to expand its ram so it didn't constantly shit its pants and corrupt the workspace. It seems to really hate projects w/ external jars May 21 04:40:40 i swap frequently May 21 04:41:00 hesperaux: please keep your personal habits to yourself May 21 04:41:02 and recently my comp has been getting noticeably slower May 21 04:41:05 no, i mean that windows 7 uses it up on purpose. its memory handler consumes it whether it's using it or not so that it anticipates swap. some new low level memory handler they added in windowws 7. May 21 04:41:06 pragma-, lol May 21 04:41:29 that comes from clicking ads on facebook May 21 04:41:30 i'm saying i don't think it works very well b1n0ry May 21 04:41:49 i don't have any issues with it... then again, i have 16 GB physical ram May 21 04:41:51 linux is beef fast for me on this hardware May 21 04:41:56 windows is a steaming pile of garbage and microsoft is a parasitic company that needs to die. May 21 04:41:58 windows is not May 21 04:42:09 lol readme, spoken like a true linux bro May 21 04:42:19 you know, microsoft took legal action against motorola for writing software that schedules meetings May 21 04:42:24 and now motorola is banned from importing into the US May 21 04:42:28 Yup May 21 04:42:29 yep May 21 04:42:30 so think of how that is going to affect android May 21 04:42:33 not more droid razrs May 21 04:42:36 microsoft needs to be boycotted. May 21 04:42:45 I use the droid 3 and I like it. May 21 04:42:46 readme, erm. what? May 21 04:42:50 they will probably come to some licensing deal May 21 04:42:54 they are a parasite on tech. May 21 04:43:01 yes they are May 21 04:43:02 but yea May 21 04:43:08 they make a shitload of money off android May 21 04:43:09 something that requires $$ to go to MS for every android device that moto imports May 21 04:43:12 good old DEVELOPERS DEVELOPERS DEVELOPERS DEVELOPERS DEVELOP-.... May 21 04:43:19 monkey boy May 21 04:43:23 xD May 21 04:43:39 I was thinking about getting a droid4 because my droid 2 battery is totally shot May 21 04:43:39 thought that guy was going to have an anheurism May 21 04:43:52 i would have been glad to see it May 21 04:43:57 GOOG bought motorola, china approved it May 21 04:44:00 dumbest CEO ever May 21 04:44:00 would have gone viral May 21 04:44:01 I have faith that they will find a workaround May 21 04:44:06 and then get it while I can still get discounted phone and not have to give up my unlimited data May 21 04:44:17 heh May 21 04:44:18 microsofts attemts to take any of the mobile space are a joke May 21 04:44:24 Goog bought motrola mobility anyway May 21 04:44:25 t0mless, are you one of those verizoners that's losing their grandfather clause? May 21 04:44:32 like hp with webos May 21 04:44:37 only if I upgrade after they introduce the new plans May 21 04:44:44 let's take a dying os and revive it by putting our logo on it... May 21 04:44:44 ok May 21 04:44:46 worked well May 21 04:44:46 if I don't upgrade I keep it May 21 04:44:47 HP made an attempt and they failed and open sourced it May 21 04:44:49 that's honorable May 21 04:44:54 they're not patent trolls at least May 21 04:44:55 t0mless, people were saying otherwise and i didn't beliveve them May 21 04:45:13 that's true. i actually didn't mind writing for webos. everything in JS, CSS and HTML May 21 04:45:20 all the details haven't been released yet anyway hesperaux May 21 04:45:30 hmm May 21 04:45:40 they've just said that they won't uphold grandfathered plans anymore May 21 04:45:41 my background is as a web developer, so i adapted to webos very easily. much less of a learning curve for me than android is turning out to be. May 21 04:45:54 but if you don't upgrade you don't have to change your plan May 21 04:45:54 t0mless, pretty awesome. May 21 04:46:16 t0mless, *if* you buy the upgrade phone at full price May 21 04:46:19 t0mless, so you can buy phones retail and they'll never know May 21 04:46:40 i'm still happy enough with my SGS1 May 21 04:46:43 yea May 21 04:47:01 i'm pretty sure in july when my verizon contract is up i'm switching back to sprint. can't beat sprint for pricing. May 21 04:47:09 i couldn't believe they removed the 16G internal storage on the 4G vibrant May 21 04:47:15 sprint has 0 coverage where I live May 21 04:47:27 verizon is the only carrier with consistant coverage May 21 04:47:38 they're not bad here. they were having tower issues for awhile which caused us to switch to VZ, but that also doubled our bill May 21 04:47:43 even with my 23% discount May 21 04:48:03 doubled our bill... with less minutes May 21 04:48:10 * pragma- does everything in his power to maintain his $29.99 bill. May 21 04:48:25 hah, would love to see that. i think that's the *tax* on my bill May 21 04:49:32 my monthly payment is around $190 May 21 04:49:59 i almost pay the same for my phones... and my car. May 21 04:50:20 i pay around 150/mo for two droids with data plans, one for gf. May 21 04:50:26 i'd gladly pay 300/mo if microsoft would fuck off. May 21 04:50:38 thats how much I am pissed about this May 21 04:50:53 i have 3 droids. 1 phone, 1 tablet. wife has a phone. May 21 04:51:03 unlimited data plan May 21 04:51:20 i had a cheapo tablet but the usb port came unsoldered. of course I cracked it open to resolder it, but I was a bit lazy and let it sit around for a while. May 21 04:51:34 by the time I put it back together esd had killed something else so I chucked it May 21 04:51:51 rough times May 21 04:51:53 opening it was next to impossible anyway May 21 04:51:54 i have a SGS1 and a kindle fire. my dad has what used to be my asus transformer 1 and my mom's got a G1 May 21 04:51:56 ah. this tablet was free to me, but works out for testing. May 21 04:51:57 the sides were all scraped up May 21 04:52:07 i'll be buying a new one soon, probably samsung May 21 04:52:25 yea, that tablet is pretty good May 21 04:52:36 i have another tablet i got for free but it's sprint. i refuse to activate it though. just want it for wifi testing. nags me to activate all the time. May 21 04:52:50 though I think Xoom ends up getting updates faster than Samsung May 21 04:53:12 i'm thinking of a Eee May 21 04:53:27 if i had $600 to spend on a tablet today, what would ya'll recommend? May 21 04:54:08 iPad? May 21 04:54:27 *kidding May 21 04:54:53 i'm afraid to even touch apple products. i swear those things absorb people's souls. May 21 05:08:22 There is optimisim about Tim Cook maybe being a less aggressive CEo May 21 05:08:27 optimism* CEO* May 21 05:08:37 I hope they lay off samsung. May 21 05:08:58 * readme all the stuff /me likes gets attacked. May 21 05:10:16 well, they are working hard on competing with Oracle in what was apparently ultimately Oracle's turf May 21 05:10:43 sorry for my ignorance, what is that turf you're referring to? May 21 05:10:49 industrial assholery May 21 05:10:53 rofl May 21 05:10:54 databases May 21 05:11:05 I don't think apple is going into the db market. That's why I asked. May 21 05:12:15 databases are just a wedge to get their snaky salesmen into the enterprise. May 21 05:12:46 at which point you are looking at A Solution. May 21 05:12:47 and selling a beta-quality product (if not alpha) as "2.0" was the wedge to get into databases, IIRC May 21 05:13:11 oracle thinks everything is their turf. databases are a small part. May 21 05:13:16 heck, oracle owns java May 21 05:13:25 well.. sun java May 21 05:14:01 the whole oracle vs hp debate is going to be a business killer. May 21 05:14:21 oracle vs. hp? what did they do now? May 21 05:14:32 or did you mean dropping Itanium? May 21 05:14:42 gnight all May 21 05:15:08 oracle said starting with R12, they would no longer support itanium. the largest oracle db install base is on HP K/N/M class machines with itanium processors. May 21 05:15:11 http://en.wikipedia.org/wiki/Java_(software_platform)#Free_software May 21 05:15:32 afaik they dropped only the unix versions of itanium, and Rdb is still supported (though kind of on backburner - still better performance than Oracle DB) May 21 05:15:48 so that leaves businesses with two options... A) replace all of their hardware with Sun stuff (entire data centers worth of hardware) or B) move off of oracle's software platforms. May 21 05:16:14 b1n0ry: the question is whether they are dumping just the windows, linux and HP-UX stuff, or totally dumping itanium May 21 05:16:16 it's not just the oracle DB... it's PeopleSoft, which they now own. it's Oracle Point of Sale, etc. May 21 05:16:41 b1n0ry: what about Rdb? It's *only* supported for Itanium and is not portable to Solaris May 21 05:17:12 i work with a very large data center that runs all oracle R10 & 11 to support virtually all of their governing infrastructure on HP-UX. May 21 05:17:38 not sure about RDB May 21 05:18:37 oh. Then you're probably the first person I met that can try answering my question: What reason other than existing support contract or old software is there to run HP-UX? May 21 05:18:53 hardware install base May 21 05:19:15 "Judge William Aslup was reported as saying that so much money for nine lines of code was unacceptable." May 21 05:19:15 we have probably 500 servers that are HP K, M or N class boxes. May 21 05:19:24 lol, I can't wait to watch oracle totally fail. May 21 05:19:34 b1n0ry: ok. So nothing more, just as I expected May 21 05:19:38 plus the supporting architecture that goes along with it - RAIDs, proprietary UPS racks, etc. May 21 05:20:01 I can see why people would buy Integrity servers if running NonStop or VMS, but HP-UX always stumped me May 21 05:20:15 HP-UX has a very large install base. May 21 05:20:20 seemed like the one proprietary unix that just... "stopped" May 21 05:20:46 whether it made sense or not, there are a -ton- of HP-UX boxes out in deployment May 21 05:20:48 b1n0ry: I suspect thanks to the glory days of Intel heavily marketing Itanium? May 21 05:20:54 probably May 21 05:21:18 I've only worked in a Sun/IBM shop (previous DEC/Sun afaik) May 21 05:21:25 back in the days before oracle owned sun, oracle used to recommend HP boxes May 21 05:21:36 which made a lot of folks go that route and install them May 21 05:21:43 yeah, I remember something about it May 21 05:22:00 so if your software vendor is recommending a particular platform, most companies will go with the recommendation May 21 05:22:02 Mind you, I had extremely negative experience with what Oracle calls "premium support" May 21 05:22:19 and thus, you end up with a *ton* of HP-UX boxes around that, now, need to be replaced - either that or the software does. May 21 05:22:47 we have signs all over our office now that say things like "Tell Larry he has enough boats." May 21 05:22:59 heh. May 21 05:23:48 I'd like to punt him a sign "Highest level support doesn't mean 'Drop the operation-stopping bug report to lowest priority'" May 21 05:23:52 *with a sign May 21 05:24:28 heh May 21 05:24:47 we were migrating Oracle databases from a Tru64 cluster to AIX cluster. GIANT databases May 21 05:24:49 Hi, can someone explain what means "assets" please May 21 05:25:01 our company is currently #256 on the fortune 500 and i know several above ours in the rankings that are predominantly oracle + hp-ux shops. May 21 05:25:01 in contrast with Resources May 21 05:25:37 b1n0ry: we winged it by putting a script that would regularly kill -9 all the oracle processes May 21 05:25:51 beause otherwise the machine would die in an OOM May 21 05:26:10 granted, our company is big enough to be able to afford options (actually, we've just decided to lease hardware from now on). but there are a ton of medium-sized companies that can't afford to replace their hardware/software just because oracle decided to stop supporting the same platform that they recommended these businesses install in the first place. May 21 05:26:25 feathersanddown: assets is just a directory you can drop any static files into that you want to use in your app. May 21 05:26:40 b1n0ry: well, I suspect there will be now huge market for something like EnterpriseDB May 21 05:26:52 p_l, yuck that's a nasty hack, but if it works ;) May 21 05:26:54 Resources have an ID and can be referenced by it, but assets can't. Although, I do write my own assets referencing code in one of my library projects for fonts. May 21 05:26:54 or rather, for updating certain parts May 21 05:27:23 there could be. big thing though is that it's not just the DB components. it's PeopleSoft, too. that's a huge install base, too. May 21 05:27:29 hmm... HP might pull something crazy May 21 05:27:35 and there are no reasonably sized competitors for PeopleSoft. May 21 05:27:38 at least for the database May 21 05:28:09 so if you're a PeopleSoft HRMS shop running on HP-UX... well... you're buying hardware. May 21 05:28:10 Rdb is still supported and apparently will be supported May 21 05:28:24 readme: can you explain me conceptually?? still can't get main idea of it May 21 05:28:52 feathersanddown, mp3 files, jpegs, raw binary files, anything you want your app to use that doesn't fit into the other structures. May 21 05:29:26 feathersanddown: it is a directory where you can put files to bundle with your app that your app can use May 21 05:29:29 read more in the docs. May 21 05:30:38 and resource folder ? May 21 05:31:03 it is the same thing except compile time ids are generated for the files in the directory and you access them differently. May 21 05:31:24 also the xml files in resources are preprocessed. May 21 05:34:54 b1n0ry: eh, seems they killed off Rdb as well. They claim that they are "investigating options", but I doubt it May 21 05:35:21 heh May 21 05:35:26 that's oracle for you May 21 05:36:17 it's like they sold a bunch of people cars and immediately stopped making transmissions for that car and said 'if you want one of our new transmissions, you have to buy a car from this company we now own' May 21 05:36:54 people are like 'i just bought this car... i can't afford a new car now...' 'oh well, then i guess when you have transmission problems, you can just be screwed' May 21 05:37:15 capitalism is cruel like that. May 21 05:37:18 hmm... SCL works on HP-UX, and I suspect I might find something like a Java 1.5 as well, but none of the stuff I'd like to use to fill in such a market opportunity is available otherwise May 21 05:37:47 companies optimize for profit, not providing you with the best product.. it is up to the consumer to perform that optimization by making informed decisions. May 21 05:37:54 it makes sense to me May 21 05:38:05 and informed decision is something most companies don't want May 21 05:38:31 not to mention that sometimes there simply might not be a choice or it would be between equally bad solutions May 21 05:38:59 i'll take choosing between two equally bad solutions over only one bad solution any day, though :) May 21 05:39:01 with too muchto replace or too big upfront cost for anyone to enter May 21 05:41:42 my app is doing approximately 1-2 sales/day on avg. although i'm obviously not a super big operation I'm putting more features in tonight requested by my users and I'm going to bust my arse to get the app where it needs to be to do more.. so far, there's been no real promotion and there is no free version. May 21 05:42:03 it's been out for little over a month May 21 05:42:17 I like capitalism. It's possible to start a lemonade stand and keep buying more lemonade stands until you get rich. May 21 05:42:24 just, not many people have the temperament to try this. May 21 05:42:28 most people would rather get a safe job. May 21 05:42:33 readme: also the xml files in resources are preprocessed. <-- so those resources should always be at compile time, assets files are used at runtime ? May 21 05:42:55 feathersanddown: you can reference them at runtime May 21 05:43:12 but you won't be able to see them as XML again. May 21 05:43:21 whereas an XML file in assets will remain as XML. May 21 05:43:29 maybe res/raw would leave it unfettered as well May 21 05:43:41 what I want to say is that files in assets can be added/deleted anytime May 21 05:44:16 while resource are needed to complete source compile May 21 05:44:18 afaik no May 21 05:44:58 i really want my app to be good and get to market, which is why i'm trying to learn it the right way. and why i'm on my 4th rewrite. learning as i go doesn't preclude me from releasing quality software. May 21 05:44:59 assets are read-only May 21 05:45:11 if you want writable files read the storage dev guide. May 21 05:45:43 b1n0ry: i learned on the job at a startup by building their android version of a product and it came out OK May 21 05:45:52 i'm not proud of it, but it works May 21 05:46:15 i used to program automation controllers for manufacturing. same thing. learned on the job. May 21 05:46:27 and, with those, there's often no room for error. could hurt somebody or set something on fire. May 21 05:46:33 yeah sounds dangerous May 21 05:46:53 Does the ddms emulator console work when testing on devices? May 21 05:47:18 the stress got to be a bit much. which is why i moved to a company that makes lingerie... plus the marketing is so much more interesting ;) May 21 05:47:57 haha May 21 05:49:00 kg020: I can at least tell you it doesn't work on my device. May 21 05:49:27 emulator console doesn't work on physical devices. May 21 05:49:31 i just read that yesterday somewhere. May 21 05:49:32 http://stackoverflow.com/questions/2531317/android-mock-location-on-device May 21 05:49:38 if you wanted to mock gps ^ May 21 05:49:42 if you wanted to mock a call, use twilio May 21 05:50:02 alright, i'm off to bed May 21 05:50:06 later May 21 05:50:20 2 AM here and working tomorrow, have a good one and thanks again for the help and guidance May 21 05:51:09 hmm yeah, I've been managing to mock using simulator... but I ran on phone by mistake and the gps listener started working, must be because the app is actually working rather than the emulator console then. May 21 05:51:19 and there I was thinking that it wouldn't work inside. May 21 06:15:52 Guys I want to allow user pick value from certain range lents say 0 to 100 hwo to do that? is there some component or do I need to add my own validation? May 21 06:19:44 Trudko, depends what you're looking for. May 21 06:21:00 you can use fields... or numberpicker May 21 06:22:37 I would say number picker or maybe some sccrolbar(that is bad word for it but I hpe you know what I mean) which would resctric value range May 21 06:22:51 because for textfield I would have to etier auto correct user or thro validation erropr May 21 06:24:26 and I need to use it for preferences for which I right now have classical xml May 21 06:34:10 good morning everybody! i got a question about textview May 21 06:36:03 i have a tableview for an error history. in this tableview is a textview containing the errorcode. now i want the textview to automatically wrap the text in a new line if the errorcode is to long to fit in one line May 21 06:37:23 i've read something about doing it in xml, but the textview is created dynamically, so if someone has a solution for me i would be very glad! May 21 06:42:46 kg020, what do you think? May 21 06:43:29 Trudko, did you check out numberpicker? May 21 06:43:47 ou ok will check that out that migh work May 21 06:45:40 nobody has an idea about wraping the text in a textview dynamically? May 21 06:46:04 chris_cross, I personally would hang around for a while and restate your question every hour or so May 21 06:46:11 people do need to sleep :P May 21 06:49:07 Btw I have some files which I ened to load in app (all at once for gridview) but I want them to be private for my app where to put them ? May 21 06:49:18 Res folder seemed ok but there are also files which I do nto want to load May 21 06:49:38 should I just create extra folder and the use simple File class to retrieve them? May 21 06:49:48 (btw I am talking about images here) May 21 06:53:48 chris_cross, http://stackoverflow.com/questions/3775705/android-set-the-gravity-for-a-textview-programmatically May 21 07:02:12 can someone tell me the command i need to enter to get the tablet interface on a custom built emulator/ May 21 07:02:22 custom built as in compiled from source May 21 07:04:31 Guys I need to put some private images for android app and I want to load those images later in gridview. Where should I put them and how to load them later? May 21 07:24:11 Trudko: res/ May 21 07:24:26 ali__, and where under that May 21 07:24:47 read the documentation May 21 07:24:56 res/drawable May 21 07:26:00 yeap but I in drawable there will be some images wchih I do not want to load May 21 07:26:26 so just put them under the drawable/myExtraFol May 21 07:33:02 ali__, and yeah I should cgheck the docs do this :/ May 21 07:35:58 meanwhile I was look at EditTextPreference and I would like to limit the range of values which can be taken there from 0 to 100. For EditText I can use TextWatcher but I dont see how to use thast for preference(because AFAK I can just get preference by ID and add TextWatcher to it) May 21 07:36:07 Trudko: you can't just create "drawable/myExtaFol" May 21 07:36:23 yeah just trying the thing out May 21 07:36:32 Trudko: anything you put in resources is bundled with your program. It is only loaded into memory if you explicitly ask for it to be. May 21 07:37:14 why wouldn't you use a NumberPicker? May 21 07:37:23 it has support for min/max values and buttons too May 21 07:39:32 readme I looked at that qucikly did like it that much May 21 07:39:33 heho May 21 07:39:59 but it is possible to add NumberPicker?TextWatcher or mechanism with same purpose to EditTextPreference? May 21 07:41:27 http://wulffmorgenthaler.com/strip/2012/05/21/ *SNRK* May 21 07:42:46 hey guys how do i set the fotn back to default on a textview ? May 21 07:42:48 font May 21 07:45:58 hola May 21 07:47:01 i've got a kind of design problem - there is a ssh lib i'd like to use. it needs a interface implemented that asks the user various things (key is do you want to connect, whats your hostkeys passphrase, etc.) May 21 07:47:03 on the default android browser, if you open a new window in javascript (using window.open()), exactly what happens? it's not a new window but a modal dialog of sorts... how do you check if it has been closed? May 21 07:47:52 it wants this information synchronously provided, as in public boolean promptYesNo (String message) {... - now, using a alert here's a bit of a problem since a alert isn't blocking... May 21 07:48:57 what i was thinking is - just make a alert, register callsbacks on the buttons, after alert.show() was called just this.wait() until a callback was called - in the callback a THIS.notify(), and off we go May 21 07:49:05 however this seems to lead to the dialog not beeing shown ;/ May 21 07:49:51 how could i come around that? May 21 07:58:11 hm, noone? :/ May 21 08:00:14 the reason its not shown May 21 08:00:26 is because after you enqueue the dialog (alert.show()) on the UI thread's event queue May 21 08:00:30 Do stuff, show dialog, find some callback for when dialog is dismissed, do rest May 21 08:00:33 you are calling this.wait() May 21 08:00:35 which blocks the UI thread. May 21 08:01:35 Object.wait/notify is not the solution 99.9% of the time. May 21 08:01:36 problem is that the library calling my function expects the result instantly May 21 08:01:48 problem is you're trying to solve the problem the wrong way, actually May 21 08:01:52 do what SimonVT said May 21 08:01:56 call your code from the dialog May 21 08:02:09 the problem is that i don't call, i'm *beeing* called May 21 08:02:16 oh, interesting. May 21 08:02:28 by what? May 21 08:02:35 jsch, a java ssh library May 21 08:02:43 and is the call on the UI Thread or? May 21 08:02:51 no May 21 08:02:54 you might want to put a Handler on the UI thread and when you get called post a runnable to that. May 21 08:04:23 hmm May 21 08:04:40 if it helps, this is the interface in question: http://epaul.github.com/jsch-documentation/javadoc/com/jcraft/jsch/UserInfo.html May 21 08:06:01 so basically on the ui thread i start a thread doing the ssh connect stuff, when beeing connected the ssh lib asks MyUserInfo for something ... then MyUserInfo should kind of run back to the main ui thread and tell them to show some dialog and wait(), the callbacks will then call the notify on the ssh threads object?! Oo May 21 08:06:10 woah, that sounds too complicated to be right Oo May 21 08:06:19 if you can May 21 08:06:26 prompt the user for the password before you even use jsch May 21 08:06:27 readme so it is possible to set somehow max value of EditTextPreference ? May 21 08:06:27 and store it May 21 08:06:38 then implement your callback to just pass the stored value ;) May 21 08:06:56 problem is, with ssh you don't know whats going to be prompted May 21 08:07:00 the hostkey could've changed May 21 08:07:03 i mean using textwatcher May 21 08:07:05 Trudko: TextWatcher as you said will allow you to write the code. May 21 08:07:08 there could be a onetime password system in place May 21 08:07:38 readme, actually what I was looking for is OnSharedPreferenceChangeListener May 21 08:08:05 Nebukadneza: then yeah -- try calling wait() in the jsch callback, show a Dialog via the UI thread, save the result, then call notify. May 21 08:08:26 because I dont see how can I attach TextWatcher because I dont know how to acces the EditTextpreference because it does not have the id value May 21 08:08:26 thats kinda ... wow ;P May 21 08:08:26 ok May 21 08:08:30 trying to get it to work Oo May 21 08:08:34 Trudko: I would implement the limit logic with a TextWatcher. May 21 08:08:45 otherwise you're going to allow the user to try to save an incorrect value May 21 08:09:03 how to do you acces the value if EditTextPreference does not have the id param? May 21 08:09:40 two options I can think of here: 1) get the source and read EditTextPreference.java or 2) write your own custom preference. May 21 08:10:11 whats bad with EditTextPreference OnSharedPreferenceChangeListener ?? Seems like almost same thing as textwatcher May 21 08:10:22 not sure hwo it works thought but it seems similiar May 21 08:16:39 EditTextPreference has a getEditText method May 21 08:21:07 SimonVT, ok and how do I access the EditTextPreference by findPreference ? and when to use OnPreferenceChangeListener then? May 21 08:22:20 By passing the key to the method.. May 21 08:22:50 preferencechangelistener is only called after the user presses ok May 21 08:22:59 Not as they type May 21 08:23:00 use OnPreferenceChangeListener to detect when the user changes the preference. Detecting a change in an EditText and the Preference itself are two different things. May 21 08:28:31 why is this ALWAYS false? if (!(view instanceof CheckBox)) May 21 08:29:12 Rather, why does it execute if the view IS a checkbox? May 21 08:31:26 Because the view isn't a checkbox May 21 08:46:59 hello, did anyone else have any issues with area coords poly in WebViews yet? May 21 08:47:04 it seems extremely unprecise May 21 08:49:46 SimonVT btw thx for tip about getEditText seems like it is done with unnecessary extra steps but it works May 21 08:57:05 > seems like it is done with unnecessary extra steps -- learn about the Single purpose principle. May 21 08:57:16 c++ can be converted to android ?> May 21 08:57:27 does anyone google? May 21 08:57:32 :) May 21 08:58:43 readme: I backported datepicker now, in case you need it :p May 21 08:59:37 SLKg0: http://developer.android.com/sdk/ndk/index.html May 21 09:00:30 SimonVT: it will make a good enhnacement to the next app I care about that has a datepicker in it. May 21 09:00:51 SimonVT: currently, I'm waiting for the guy I was working with on the last app to cave and start paying me for new features. May 21 09:00:59 until then no more new code :) May 21 09:01:07 haha May 21 09:21:16 anyone ever had NullPointerIssues when using loadAd with the MobFox adapter? May 21 09:21:26 NullPointerException issues* May 21 09:41:13 hi May 21 09:42:27 any1 knows something about NfcForegroundDispatch May 21 10:07:11 Is it possible to have a non-scrollable ListView, i.e. make the ListView simply print out all rows regardless of size (so it can be put into a ScrollView)? May 21 10:09:54 Why would you ever do that May 21 10:13:03 i'm using htc incredible s with android. i've a problem with notifications. i disabled usb debugging from (applications/development) but when i plug-in usb cable to computer, it always shows usb debugging connected notification. how can i fix this problem? also i found a forum page about same problem but there isn't a solution. ( http://androidforums.com/droid-all-things-root/50986-how-d May 21 10:13:03 o-i-turn-off-usb-debugging-notification.html ) May 21 10:13:47 SimonVT: because the adapter pattern is nice, but otherwise I want all the items listed at once. May 21 10:13:58 Maybe I should put the rest of the stuff in the header and footer, though. May 21 10:14:11 Yeah, you probably should May 21 10:14:27 I hate the pattern for that, though. May 21 10:15:15 These things aren't headers and footers, they're 2 separate parts of the layout. May 21 10:16:52 hello May 21 10:17:49 anybody there May 21 10:18:33 hello all May 21 10:19:19 how can i left align the textview in listview May 21 10:19:34 is there a way to get list of uninstalled apps? May 21 10:24:36 ppl is the android sdk based on the MVC model? May 21 10:26:20 Criztian: there's no M present, I guess, views and controllers are somewhat separated, if you consider an Activity to be a controller. May 21 10:26:21 no, I think it's based on LSD and MTV May 21 10:26:42 interesting May 21 10:27:47 I was having a hard time thinking about the M as a matter of fact May 21 10:28:23 it was sort of redundant in my mind May 21 10:28:28 Redundant? May 21 10:29:36 the controller translates the input into operations and that's ok May 21 10:29:48 ankk: if you installed them from the market, there's a list of not-currently-installed apps May 21 10:30:04 the View is used by the same name under the SDK May 21 10:31:24 Criztian: I suggest you don't try to force the Android app structure into something like MVC - it is what it is May 21 10:31:49 Leeds: that is what I was just saying May 21 10:32:16 Itś perfectly possible (and I'd recommend it) to separate models from the rest of the code. May 21 10:32:18 after my question was answered May 21 10:32:24 Doesn't have to be too complicated. May 21 10:32:47 simply making the functionality independent May 21 10:32:52 from the GUI May 21 10:58:29 i still have a small question regarding the interplay of activities and AsyncTasks created in them: If an activity starts an AsyncTask and then finish()'es, the task continues running, right? May 21 10:59:35 i ask because i have a requirement for an app that an upload progress is triggered in an activity, but the activity then immediately finishes May 21 11:00:28 is it guaranteed that the AsyncTask's doInBackground() can run to completion (modulo the phone shutting down for example)? May 21 11:00:38 no May 21 11:01:15 ah, too bad.. May 21 11:01:50 although I don't know if I answered you correctly, because the word modulo makes no sense in your question May 21 11:02:04 you want to rephrase it? May 21 11:02:18 When using Camera Activity to get an Image, does the camera activity automatically saves the photo somewhere as well? May 21 11:03:16 hi, I am reading about event listeners and I still wonder whether to use inner classes or implement onClickListener. I will have a few buttons (about 4-5 or so) and cannot find any solind information on the matter. On one hand using more classes means more allocation but on the other hand, a switch statement. Thoughts? The guide I linked before is very vague May 21 11:04:13 readme: yeah: is it guaranteed that the AsyncTask's doInBackground can run to completion (given that the phone doesn't shut down) May 21 11:07:21 simh: my opinion: don't worry too much about allocation / speed / etc, worry about what you think makes your code more readable and maintainable. May 21 11:08:52 tapas: I think you're pretty much guaranteed to have it finish. Even calling cancel() causes the AsyncTask to wait until it completes. May 21 11:08:53 I personally prefer inline initialization, i.e. private OnClickListener blahListener = new OnClickListener(){ ... } (and then blahblah.setOnClickListener blahListener) because it doesn't clutter onCreate so much. May 21 11:12:43 HDroid: I am developing a long running service and ram usage is important to me. But I guess the best way is to do it both ways and compare May 21 11:13:17 simh: I don't see how the service is connected to objects instantiated by the UI ;) May 21 11:13:31 HDroid: but I think that, regarding onCreate, it looks pretty much the same May 21 11:13:55 hpw can i set the textview right side in listview May 21 11:14:30 The switch might, though it becomes spaghetti quickly if you have a lot of UI elements, inline instantiation (i.e. button.setOnClickListener(new OnClickListener() { ... }) becomes quite messy. May 21 11:14:51 jagruti_: I'm guessing you need to write your own adapter for that. May 21 11:14:54 I strongly prefer the switch. May 21 11:15:01 HDroid: yea, you are right. I just want to learn how to write good code in android :) May 21 11:15:19 jagruti_: that, or use your own textview, at least. May 21 11:15:29 It is just easier to know that there's only one place you need to look to find where any button is clicked. May 21 11:15:44 Also, you can get creative and create a heirarchy of click handlers May 21 11:16:16 HDroid:i have view like this LIstview in that array adaptor and in that arraylist,xml in xml the textview.so i need that textview to show right side.so can u suggest me May 21 11:16:31 readme: but it isn't one place, it's "somewhere in a potentially huge switch statement" :) May 21 11:16:44 Hello May 21 11:16:54 I am Japanese May 21 11:17:41 jagruti_: the arrayadapter allows you to specify your own textview May 21 11:17:56 Wow that guy really wanted to tell us he's Japanese. May 21 11:18:25 HDroid: potentially huge? how many buttons do you usually have on a screen, 4-5? May 21 11:18:40 also I don't advocate writing the click handle code in the switch. May 21 11:18:47 Each case should call a method May 21 11:18:51 I name that method handleXClick() May 21 11:19:29 I dunno, if it works for you, sure, but to me that sounds like an extra step, I look up the button in onCreate and do a ctrl+click on the class I provide in setOnClickListener and I'm there. May 21 11:19:43 also if you have a button that appears on more than one screen.. I use default: super.onClick(view); May 21 11:19:53 then I define onClick a parent activity May 21 11:20:10 HDroid: i have write like ArrayAdapter adapter = new ArrayAdapter(this,R.layout.multi_line_list_item,messages); where messages is arraylist May 21 11:20:17 to be honest, I find switch quite clear to read. But I heard that is not really Object Oriented and should be avoided. Cant remember wy though. Not that I am some OO fanatic, just wondering May 21 11:20:47 HDroid: if you ask me, it's an extra step to create multiple onClickListeners for each button. If you take it literally, it actually *is* an extra step. May 21 11:20:54 Whereas defining one and reusing is not May 21 11:21:18 readme: not really, the onclicklisteners are basically your doSomething() methods. May 21 11:21:31 HDroid: no, really. It is a logical extra step. Let me explain May 21 11:21:55 HDroid: here's my method: 1. Create on Click listener 2. setOnClickListener 3. setOnClickListener .... May 21 11:22:12 Here's yours: 1. create on click, 2. set on click, 3. create on click, 4. set on click.... May 21 11:22:17 there is a *logical* extra step May 21 11:22:45 readme: no, you've just exported that extra step to your switch :) May 21 11:23:04 HDroid: i would hate to have to work on your code. May 21 11:23:30 readme: likewise :P but that's besides the point. May 21 11:23:53 likewise because you're naive to think it's good to create a shitload of objects when you don't need them? haha. May 21 11:24:30 Yours is actually "1. create onclicklistener 2. setonclicklistener 3. adjust switch case to point to method 4. write method" May 21 11:24:34 HDroid: readme: quote from google android guide on UI events: "You may also find it more convenient to implement OnClickListener as a part of your Activity. This will avoid the extra class load and object allocation." May 21 11:24:37 What? I need them. May 21 11:25:17 readme: also, to use your own argument, when do you ever have more than 4-5 elements? :P May 21 11:26:53 HDroid: onClickListener is usable across multiple views by design. Thats why the View param is passed to it. May 21 11:27:04 clearly there was an intent in doing that. May 21 11:27:29 readme: yeah, like altering the view when it's clicked, like hiding a button or something. May 21 11:27:58 And my pattern exists, so clearly there was an intent in providing that :P May 21 11:28:10 readme, i was thinking about the problem I was solivng with files inside of draw folder and I think I will just add them to sc card. How is that normally done? At run of my main activity I will check if folder on sd card with name MYfolder does exists and if not I will just create it? May 21 11:29:03 HDroid: well the thing about your pattern, is that its kind of hard to create mine without inadvertently allowing you to use yours. May 21 11:29:16 there's nothing in the language to support stopping you from doing what you're doing. May 21 11:29:30 readme: ahh, so my pattern is the basic version and yours is more complicated. I see ;) May 21 11:29:39 I don't see where you got that from May 21 11:30:03 your solution uses more memory and probably compiles down to more bytecode May 21 11:30:56 Trudko: see the storage dev guide. May 21 11:31:18 Point #1, probably, but it's fairly irrelevant compared to keeping my code readable. Point #2, maybe, maybe not, care to benchmark? May 21 11:32:12 I mean, the end of this argument is "you're not using Assembly so your code is more bloated". May 21 11:33:12 I am just on it! May 21 11:33:44 HDroid: because of the way I do this, I'm able to write code much faster. May 21 11:34:32 In addition to the single onClick function, I point all my buttons to that function from the android:onClick attribute in XML, which for the sake of argument by performance fails as it uses reflection and creates an additional onClickListener May 21 11:34:47 by convention, every Button I use in my code has android:onClick="onClick" May 21 11:34:57 and every activity that uses a button just implements View.OnClickListener May 21 11:35:15 after that, I don't have to write any boilerplate to use a button. May 21 11:35:49 readme: oh, I absolutely hate that pattern, it exports control logic to the XML. May 21 11:35:50 it also allows me to delegate unhandled clicks to a default click handler by calling super. May 21 11:35:57 Yes, I agree that it's bad to do that. May 21 11:36:06 however, if you're arguing about what is easiest... May 21 11:36:13 I can go pretty fast that way. May 21 11:36:39 how far can things like phonegap, titanium, accumulate can go? Will it be powerful enough to replace native app? May 21 11:36:45 That argument doesn't really work for me if I have to lookup the onclicklistener in the XML. May 21 11:36:51 right now I just ctrl+click the button. May 21 11:36:57 you don't have to look anything up in XML May 21 11:37:06 Oh wait I misunderstood May 21 11:37:13 because if you were working on my code you'd know that I have a convention that every single button already points to the exact same method signature. May 21 11:37:15 Well still, add the boilerplate to XML. May 21 11:37:39 Yes, which then points to its own method, which is pretty much the same as my onclicklistener, apart from the class instantiation :) May 21 11:37:53 yes, it isn't computationally superior. May 21 11:38:07 it actually is slow because it uses reflection to find the method signature then duplicates the onClickListener. May 21 11:38:45 is there a way to use an existing Dialog as DialogPreference? May 21 11:38:55 but then when I don't have to declare 5 buttons in my class and call findViewById 5 times May 21 11:38:58 it's pretty nice. May 21 11:40:16 adt17+ lint tools are bugged with layout_toRightOf? May 21 11:41:59 <[twisti]> i have certain state that absolutely needs to be saved when the application closes, no matter how its closed, be it back button, system shutdown, etc - what do i best hook into ? May 21 11:44:11 <[twisti]> is onDestroy enough ? or is there something thats saver ? May 21 11:44:16 [twisti]: onPause? May 21 11:44:41 <[twisti]> i dont want to save it every time the user 'alt tabs' away May 21 11:44:46 <[twisti]> unless i have to May 21 11:45:18 do you want to save the data when user press home? May 21 11:45:34 <[twisti]> not unless i dont get a chance to later May 21 11:45:48 then onDestroy is ok May 21 11:46:32 but remember that onDestroy is triggered when the app is closed (destroyed) May 21 11:47:00 <[twisti]> it seems its not triggered in all cases though May 21 11:47:06 <[twisti]> or am i reading the diagram wrong ? May 21 11:47:09 <[twisti]> http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle May 21 11:47:34 what is your problem? May 21 11:47:35 <[twisti]> it seems like my data will be lost in both cases of memory and renavigation May 21 11:47:49 <[twisti]> unless i use onStop instead of onDestroy May 21 11:48:10 yep May 21 11:48:22 but you may trigger this when alt tab May 21 11:48:46 you may check if the app is visible when you alter the app May 21 11:48:48 <[twisti]> well if i have to decide between sometimes saving too often and losing my data, id rather save too often May 21 11:48:52 I mean alter the tab May 21 11:50:22 [twisti]: if it is ok to save too often, then do it in onPause May 21 11:50:51 <[twisti]> saving is expensive and slow May 21 11:50:56 <[twisti]> id like to do it as little as possible May 21 11:51:16 <[twisti]> but its also crucial, its much worse to lose the data than to save it too often May 21 11:51:24 [twisti]: if your app needs to work on 2.x, then you need to do it in onPause because it is not guaranteed that onStop and onDestroy are called May 21 11:51:30 [twisti]: then you need to handle this tradeoff.. May 21 11:51:45 [twisti]: how are you handling orientation changes? because those normally call onDestroy May 21 11:52:04 I have no idea how important your data is and how much time the saving needs. May 21 11:52:12 do not use onDestroy to save data. May 21 11:52:43 hrnt: maybe fixing the orientation is the simpler solution :P May 21 11:52:47 <[twisti]> it seems my library is handling the orientation changes (im working on a fullscreen game) without referring back to the activity May 21 11:52:54 "Note: do not count on this method being called as a place for saving data!" --onDestroy documentation. May 21 11:54:01 <[twisti]> so is there a proper place to save data ? or do i just have to save it all over the place and hope that something like onPause sticks ? May 21 11:54:11 [twisti]: I think the responsibility is going back to the user. May 21 11:54:25 the users need to save before he quit the game May 21 11:54:26 <[twisti]> it seems kind of weird to have something like onStop and onDestroy if they are only called at random May 21 11:54:41 <[twisti]> no, thats really not a sensible solution May 21 11:54:54 [twisti]: just curious what lib you are using May 21 11:54:56 [twisti]: onPause May 21 11:54:58 [twisti]: the "proper" place is onPause May 21 11:55:03 according to the documentation May 21 11:55:31 <[twisti]> libGdx May 21 11:55:36 <[twisti]> alright May 21 11:55:37 <[twisti]> thanks May 21 11:55:45 [twisti]: I used that as well May 21 11:57:37 Guys I would like to simply make user pick folder like i can make him pic picture(using android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);) but it seems that there is nothing like that build in android May 21 12:05:41 Trudko: you have to find some code that does it.. There isn't anything for it. May 21 12:05:52 ,,awesome" May 21 12:10:20 It is possible to change the brightness (auto to manuell and a explizit brightness value) from an app for the hole phone not just for the app ? May 21 12:11:32 i can change the brightness auto to manuel for the app, but it has no effect if i leave the app May 21 12:16:12 but then when I don't have to declare 5 buttons in my class and call findViewById 5 times -> oh, I have roboguice for that :P May 21 12:16:15 * hackkitten idly waits as Eclipse randomly freezes up again May 21 12:17:24 apsorizor: no... in early versions of Android, regular apps could set the system-wide brightness, but now it's a secure setting, so only system/root apps can change it May 21 12:18:14 Leeds: okay. I thought so. thanks :) May 21 12:24:10 hackkitten: use the time to install a real IDE then :p May 21 12:25:31 or ram May 21 12:26:01 HDroid: With roboguice, you still need to declare the button May 21 12:26:04 fine too, 1) More RAM 2) ??? 3) use ALL the RAM May 21 12:26:06 readme: Eclipse (and Chrome) expand to fill any available virtual memory May 21 12:26:15 readme: true May 21 12:26:23 question... I see some of these s voice apps that have "wakeup words" May 21 12:26:58 doesn't listening for those wakeup words kill battery? and to what extent? May 21 12:27:07 p_l: didn't know chrome had its own heap May 21 12:27:15 I would love to have that functionality but it seems fundamentally wasteful May 21 12:27:26 DashCC > if only the ADT plugin worked with a real IDE and Android used a real programming language ;) May 21 12:27:36 * hackkitten likes doing WP7 dev in MSVS May 21 12:27:57 root66: usually they only listen during specific situations... otherwise yes, you have to listen all the time May 21 12:28:03 <[twisti]> my eclipse used to have the 'random freezing' bug as well, but it went away May 21 12:28:09 <[twisti]> its certainly not an issue of ram May 21 12:28:26 HDroid: i was thinking about an annotation that maybe not only injected the button, but also set the listener. May 21 12:28:27 [twisti] > yeah, it seems to differ how bad it freezes up after each Eclipse update May 21 12:28:28 <[twisti]> i cant tell what caused it or made it go away, but i have had 16gb in the machine the whole time May 21 12:28:34 hackkitten: Intelli J Idea can :> May 21 12:28:48 DashCC > I have tried that IDE, but not too much yet~ May 21 12:29:26 hackkitten: the one thing I can definitely say about IntelliJ (I avoid java and IDEs in general) is that it's FAST May 21 12:29:33 <[twisti]> funny May 21 12:29:53 readme: yeah, that would be nice... I can only see that work with predefined (non-instantiated) private ClassX extends OnClickListeners though. May 21 12:29:54 the only time I had problems with eclipse, was when I ran it on a very old 32 bit machine with insufficient ram. May 21 12:29:57 <[twisti]> the reason i never gave intelliJ a shot is because on my old PC, it was just so incredibly slow compared to eclipse that i found it to be borderline unusable May 21 12:30:12 <[twisti]> maybe i should try it on a modern pc May 21 12:30:21 [twisti]: might be related to Swing vs. SWT May 21 12:30:28 HDroid: exactly, the way I do it haha May 21 12:30:38 but then I could move the setOnClick part out of XML and into code. May 21 12:30:47 p_l > yeah, I'm sorely tempted... IntelliJ doesn't do graphic UI designing though, right? May 21 12:31:00 [twisti]: also, dunno how long time ago you tried, but Java changed behaviour wrt desktop apps May 21 12:31:09 <[twisti]> wrt ? May 21 12:31:18 hackkitten: it has good xml editor + live preview May 21 12:31:22 [twisti]: with regards to May 21 12:31:39 [twisti]: i tried IntelliJ on my machine and it just doesn't work well on my stack here... Not sure what's causing it to be buggy, but I filed 2 reports. May 21 12:31:41 <[twisti]> and its been a few years, but 1.6 was already around when i last tried i think May 21 12:32:34 hackkitten: I love it. Use it for nearly everything coding related May 21 12:32:37 readme: I could settle for that, I'd simply remove the new part and make classes for my inlines, it'd have pretty much the same structure. May 21 12:33:27 p_l > ah, that should suffice... I will update my installed copy to the latest version and see how it works :) May 21 12:34:14 readme: thanks for the info. i wonder if the docs talk about it somewhere in more detail. so the thread spawned by asyntask might even survive an exiting of the app (i.e. by using the back button on the last activity remaining on the stack) May 21 12:35:00 I'm not sure how the VM handles threads, but if you aren't at least keeping a reference to it proper (like in a service) i wouldn't expect miracles. May 21 12:35:12 don't just leave a task running in an activity and close it. May 21 12:35:45 AsyncTask btw, works fine in a Service, although it might seem less useful there. May 21 12:40:43 I need to use SharedPreferences accross multiple activities and a service. What is the best way to do so? create a field in all classes and call getSharedPreferences() everywere or somehow pass it? May 21 12:41:53 Grrrrr Ubuntu upgrade completely broke my Eclipse. May 21 12:41:55 i used the Application for that but it is frowned upon May 21 12:42:14 Not ready for prime time. May 21 12:43:07 * readme cringes.. reading about people putting CSV in database columns.. May 21 12:43:25 got to love getting app crash reports from a Google developer running Jelly Bean on his Galaxy Nexus May 21 12:43:26 HDroid: I use Kubuntu, had no problems in quite some time. Are you using Eclipse from ubuntu package? May 21 12:43:40 simh: any Context had getSharedPreferences May 21 12:43:45 has May 21 12:43:58 HDroid: oh,I don't install eclipse from the repos :) May 21 12:44:01 noo thanks. May 21 12:44:02 simh: yes, I just let Kubuntu upgrade itself to 12.04 and it broke. May 21 12:44:07 for my use, i created my own Prefrences class, though May 21 12:44:14 readme: heh, it worked up till 10 minutes ago. May 21 12:46:21 * hackkitten her eyes glaze over as she reads through the steps required to import an Eclipse project into IntelliJ May 21 12:46:24 HDroid: download eclipse from eclipse.org, untar it and run. It works better than the package one. Too many requirements for the packet one May 21 12:46:27 ...right~ May 21 12:47:16 wongk: coould you say something more? I am using a DummyApplication to get Application context (it's need for zubhium.com) May 21 12:47:30 readme: yeah, i might use a service for it then.. May 21 12:47:47 simh: sure, if you ask a more specific question :P May 21 12:49:09 <[twisti]> im considering installing cyanogenmod recreationally on my dev device, anything development wise i should be wary off using that ? May 21 12:51:43 wongk: hmm... dunno how to be more specific :) I have an activity which starts another one and a service. I neen to access the preferences from everywhere and wonder what is the best and most efficient way to do so. Wanted to have just three private SharedPreferences field and call getSharedPrefereces() in three onCreate() methods. Just wondering if maybe there is a better way May 21 12:52:48 simh: that was is fine... i prefer to encapsulate my Prefences functionality, so I have done so May 21 12:53:07 and i provide public static SharedPreferences getPreferences() May 21 12:55:03 I give up! *goes to eclipse.org* May 21 12:55:11 wongk: ok, thanks for your input :) May 21 12:55:11 :) May 21 12:55:39 HDroid: that is the right thing to do. Don't feel bad. I think eclipse should not be packed at all May 21 12:56:14 I'm just disappointed because it worked untill now. May 21 12:56:20 But I guess that proves your point. May 21 12:57:48 HDroid: eclipse is self-contained. everything it needs (apart from java of course :) ) is in it's directory and it is really easier to maintain that way. I personally have multiple eclipse direcotied for diffrent settings and plugins set. Loads and works faster that way May 21 12:58:53 i also don't use the packaged eclipse May 21 12:59:20 * hackkitten is reminded of why she doesn't use IntelliJ May 21 12:59:21 <[twisti]> you know, i dont know where that trend comes from that people want to merge all their software shit May 21 12:59:47 <[twisti]> i liked the old, eclipse-like way, where you could just copy a directory and itd run fine elsewhere May 21 13:00:09 I have apt-get, no time to download, copy or whatever. May 21 13:00:21 <[twisti]> apt-get can install things without downloading them ? May 21 13:00:29 <[twisti]> impressive May 21 13:00:38 hackkitten, whats wrong with intellij? May 21 13:00:40 No but I don't have to figure out _where_ to download it. May 21 13:00:45 <[twisti]> ;) May 21 13:00:47 Well, it can, if it has a local repository, of course. May 21 13:00:52 But who has that :P May 21 13:01:00 [twisti]: it has advatages and disadvatanges. eclipse is one of the very few pieces of software that I use like that. It suites it well. but it's not a general rule May 21 13:01:34 <[twisti]> simh: most of my old games still work like that, and i really enjoy it because its so trivial to move things May 21 13:01:43 <[twisti]> same for a few older programs, like mirc or 40tude dialog May 21 13:02:17 I don't want to move things :P May 21 13:02:44 [twisti]: what about requirements? yea, if you say about old games than ok. but what about software that needs some huge libraries? May 21 13:03:02 package managers are awesome 99% of the time May 21 13:03:18 <[twisti]> i do whenever i: reinstall windows, install a new windows, move to a new laptop, move to a new work pc, visit some friends for a while, it happens every now and then. of course its not something daily for me either ;) May 21 13:03:34 gridbag > unintuitive, mostly May 21 13:03:37 * simh loves *nix for package managers May 21 13:03:37 Windows??? :P May 21 13:03:53 <[twisti]> simh: how many huge libraries are there really ? May 21 13:03:54 simh: love open source for it rather :D May 21 13:04:02 I long for cloud installations. May 21 13:04:05 tapas: true May 21 13:04:06 * hackkitten thinks that intellij's UI is clumsy and poorly designed May 21 13:04:09 simh: that's what allows the integration into a cool package management system :D May 21 13:04:15 <[twisti]> directx, .net, but most libraries are tiny compared to todays space, speed, etc May 21 13:04:15 I want to duplicate my settings in the cloud and simply download my apps and settings. May 21 13:04:18 Android can do it. May 21 13:04:22 Why can't Windows or Ubuntu? May 21 13:04:31 <[twisti]> personally i dislike the obiquity of package managers May 21 13:04:48 [twisti]: what about upgrades? you like manual upgrades? May 21 13:04:58 anyone know how to make a viewflipper have more than one view on screen at the same time? May 21 13:04:59 i don't care for intellij either... i didn't bother to remember why May 21 13:05:07 <[twisti]> but i understand that thats just how i am, and not neccessarily a general requirement May 21 13:05:16 funny that i use webstorm, though :P May 21 13:05:18 <[twisti]> simh: i dont recall last time i updated something manually May 21 13:05:27 [twisti]: since you use windows, would you want to download all the packages yourself and double click them, agree to EUAL, install, reboot, repeat? May 21 13:05:31 sometimes when you fill a vacuum it still sucks. May 21 13:05:38 <[twisti]> although i agree that package managers are very convenient in that regard - i dont know why there isnt something similar for windows May 21 13:05:48 <[twisti]> reboot ? this isnt 1998 May 21 13:05:58 <[twisti]> ive gonne months between needing reboots May 21 13:06:12 <[twisti]> unlike my linux server, which seems to want to reboot at least once a week lately May 21 13:06:20 * simh had to reboot windows workstation two times today. installing some cert software May 21 13:06:21 Anyone know of a utility for signing android apps that doesn't require the SDK to be installed etc? Something one-click, basically. My client wants to be able to sign his app and I have a feeling he is not going to want to install the JDK and SDK. May 21 13:06:55 he will at least need the jdk May 21 13:07:27 he'll need zipalign from the sdk too May 21 13:07:33 true May 21 13:07:45 readme: maybe you can package it all for him and simply not call it SDK :D May 21 13:07:56 My thought was to make a cloud based solution to this, but the what the hell is the point since i have his key anyway May 21 13:08:13 is he the one signing but not the one doing the building? May 21 13:08:18 tapas: i don't have windows and will not use it, so that's out of the question.. not sure if he has mac or windows though. May 21 13:08:22 wongk: correct. May 21 13:08:32 it's just a security issue, he'd like to be able to sign his own app. May 21 13:08:33 readme: seems like an odd configuration :P May 21 13:08:40 <[twisti]> readme: you could build him some sort of simple web service that takes his app, signs it, and sends it back May 21 13:08:46 readme, just give him a button to press and sign the damn thing yourself then :D May 21 13:08:52 [twisti]: right but that doens't give him the security... May 21 13:09:01 <[twisti]> neither does accepting any program you give him May 21 13:09:09 good point May 21 13:09:13 if he doesn't trust you with it, then he's a bad boss :D May 21 13:09:19 he's not a boss May 21 13:09:22 is it ok if I have c2dm with an email that is not same as my google market email? May 21 13:09:29 oh client.. May 21 13:09:30 soryr.. May 21 13:09:34 <[twisti]> will he really UNDERSTAND the security implication of using a web app to sign his thing ? May 21 13:09:53 [twisti]: i don't think he will now that you mention it. May 21 13:09:57 <[twisti]> :) May 21 13:09:57 I'm going to make a webapp to do this May 21 13:09:58 :) May 21 13:10:13 sign it for him but give him the private key too May 21 13:10:27 given recent famous webapp issues, some really don't think at all May 21 13:10:39 if he want to sign himself, why don't code himself ! May 21 13:10:56 <[twisti]> or just give him the options: a) package the sdk for him and write him a bat file or whatever, b) webapp, let him decide May 21 13:12:29 I don't use windows under any circumstance, so writing a bat file is out. May 21 13:12:36 I don't care if you offer me a million dollars :) May 21 13:12:48 the webapp sounds good enough to me May 21 13:12:54 i would use windows for a million dollars.. May 21 13:13:06 what is life if you don't have integrity anyway. May 21 13:13:11 install virtualbox and a VM with linux -> done May 21 13:13:19 I mean that push notifications doas not necessary need the same email as my google play account? May 21 13:13:48 elye: yes, the docs say you should use a specific purpose google account May 21 13:13:51 make one just for the app May 21 13:14:32 readme, and I can make another for the push notifications (c2dm)? May 21 13:18:15 Hi, i'm learning how to compile java apps. Trying to complie Closeables.class from SkyMap app and getting the following error: "Closeables.java:22: package com.google.android.stardroid.util does not exist " May 21 13:18:28 where should the package be defined? May 21 13:20:35 Armon2: read up on the correspondence of packages with directories May 21 13:26:36 tapas: i've established that my main problem is the bad environment setup May 21 13:40:29 anyone know how to make a viewflipper have more than one view on screen at the same time? wanna use like 3 webviews May 21 13:40:34 Sigh, does anyone know any good tutorials for setting up the environment in windows and eclipse? May 21 13:40:36 3 imageviews sorry May 21 13:40:53 just the sdk Armon2? May 21 13:41:28 http://developer.android.com/sdk/index.html May 21 13:41:32 gaz`: I need the whole lot. I'm trying to build Skymap from source May 21 13:41:39 ah May 21 13:41:48 maybe #android-root is better May 21 13:43:30 Armon2: NDK? May 21 13:43:41 readme: i'm not sure what that is May 21 13:44:07 I just went through a process of manually compiling about 10 dependecies in that app May 21 13:44:10 i'm going to guess this skymap thing uses native code May 21 13:44:15 in which case you should read the NDK docs. May 21 13:44:15 there must be a better way of doing it all in one go May 21 13:45:09 readme: thanks, i'll have a look May 21 13:50:59 im trying to install an app through adb.exe but I get this: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] May 21 13:54:57 your app need to be signed May 21 14:03:20 hmm, interesting. my phone is connected to the net via wifi. but still connectivityManager.getActiveNetworkInfo() returns null May 21 14:04:47 http://stackoverflow.com/questions/6098639/connectivitymanager-getactivenetworkinfo-is-always-null-even-with-data-traffic May 21 14:06:23 Younos: checking it out. thanks.. May 21 14:06:24 starting from 3.1, I can't simply declare my broadcast receiver in manifest without having any part of the running. The workaround is to set FLAG_INCLUDE_STOPPED_PACKAGE on system broadcast I want to hear. will that change broadcast setting for all applications or only broadcast received by my application? May 21 14:06:45 system broadcast May 21 14:07:08 That flag is for the sender of the broadcast May 21 14:07:23 Can't change how the system sends its broadcasts May 21 14:08:26 OK, it's a bug in android.. :D May 21 14:08:59 ah, that makes sense. a May 21 14:09:30 argh, why is eclipse *so* retarded? ;/ May 21 14:09:31 Do you know what a STOPPED_PACKAGE is? May 21 14:09:43 hanging 20min already at Pending... when trying to update adt May 21 14:10:59 i think we'll work around it by assuming that our webservice is always online. then any connection issues are stemming from a broken internet of the user :D May 21 14:11:21 so we'll always report "broken internet" when the calls to our webservice failed. May 21 14:11:29 mwahahahaha (evil laugh) May 21 14:11:40 SimonVT: any part of , where none of any of the component is no longer running? or never run? May 21 14:11:58 s/no longer// May 21 14:12:04 When your application is installed, it is STOPPED May 21 14:12:20 Then user launches an activity in your app, and it is no longer STOPPED. Not even after a reboot May 21 14:12:28 Not until they press force stop in settings May 21 14:13:22 SimonVT: oh, thanks, neat specific information. without additional flag, once an activity is launched, the application is no longer STOPPED even if it's reboot? May 21 14:13:29 Yep May 21 14:13:33 It's for security May 21 14:13:44 A user has to explicitly launch an app for it to receive system broadcasts May 21 14:13:59 that makes me feel really secure :o) May 21 14:15:21 SimonVT: my new concern is how the default is to have broadcast receiver running even if the activity already ends, and the receiver persists across reboot. Are you sure about this or I read this wrong? May 21 14:15:36 You're reading it wrong May 21 14:16:00 SimonVT: er... what do you mean by 'system broadcasts'? May 21 14:16:10 Broadcasts done by the system May 21 14:16:12 i.e. android May 21 14:17:02 amitz: Any receivers in your manifest will receive broadcasts if their intent filter matches. But only if the app is no longer stopped May 21 14:17:08 There's no "running" May 21 14:17:09 I don't think you have to be launched to catch all of them... just those which are specified as needed a registered receiver May 21 14:18:01 SimonVT: given the condition you stated, will the receiving persists across without special flag? May 21 14:18:05 cross reboot May 21 14:18:12 yes May 21 14:18:18 run-time registered, that is... if you've got a receiver and intent-filter in your manifest you'll get called even if you're not running May 21 14:18:44 SimonVT: otherwise, how could things like BOOT_COMPLETED work? May 21 14:18:56 am i able to able about a boot loop in here? May 21 14:19:00 Leeds: That's two different things May 21 14:19:12 swiftfox: nope May 21 14:19:14 ok ty May 21 14:19:22 SimonVT: only certain intents dont trigger STOPPED apps May 21 14:19:24 FRAGMENTATION May 21 14:19:52 Leeds: STOPPED_PACKAGES refers to apps that have either never been launched, or where the user explicitly pressed force stop May 21 14:20:01 It does not refer to apps that are just not currently running May 21 14:20:19 wait, so you're saying that if I install an app but never run it, it won't get broadcasts? May 21 14:20:37 You won't get e.g. sms broadcast, yes May 21 14:20:40 Nor boot_completed May 21 14:20:56 it's only on honeycomb + May 21 14:21:02 Of course May 21 14:21:05 so much fagmentation May 21 14:21:08 hmm... May 21 14:24:01 Leeds: http://developer.android.com/sdk/android-3.1.html "Launch controls on stopped applications" May 21 14:25:12 well, you learn something every day - thanks for the details :) May 21 14:25:35 hm, someone highlighted me, but /lastlog shows nothing May 21 14:25:36 oh well May 21 14:25:49 Leeds: that new things costed me a few hours -_- May 21 14:26:08 new to android. May 21 14:26:30 Whats the average time for verification of a vulnerability on android? May 21 14:26:59 I reported one more than a week ago. Other than the automated reply, nothing. May 21 14:29:55 hexploit: I got a reply on the last one I sent in w/in a few days May 21 14:30:04 hexploit: But it was "we know, fixed in 3+, will never be fixed in 2.x" May 21 14:30:22 Hmm...should i sent it in again? May 21 14:31:11 Would yours be a DoS by any chance? May 21 14:31:39 Nope, information leak May 21 14:32:03 The sql database containing the user data? May 21 14:32:08 someone else finally found it and publicised it the other week, but basically you can bypass the internet priv and talk at LEAST out to the internet, and possibly bidirectional May 21 14:32:44 Would be great for rootkit functionality. May 21 14:32:48 the attack surface is relatively limited, since you'd have to have access to something interesting AND *NOT* have the internet priv for it to really leak stuff... YOu could probably do annoying shit like leak photos May 21 14:32:56 nah, rootkit implies you have root and bypass privs anyhow May 21 14:33:29 this is app level; any app can talk out to the internet on 2.x and get at least a few bytes pack, and I suspect more if you ran a special server on the other end May 21 14:33:31 dragorn: you mean the browser trick? May 21 14:33:34 readme: nope May 21 14:33:57 ok because there was a trick with the browser for I think unidirectional communication for a long time with no internet perm May 21 14:34:15 just using simple gets... May 21 14:34:15 Wasnt that the javascript file pull? May 21 14:34:36 That was fairly publicized May 21 14:34:50 short version: /system/bin/ping doesn't make sockets May 21 14:35:06 it's suid to a net group and writes raw l2 frames onto the ethernet emulation device May 21 14:35:24 so the permissions that catch sockets don't notice it May 21 14:36:16 So how'd you leak info with it? Hidden in icmp packets? May 21 14:36:16 you can talk out a fairly large number of bytes in the ping pattern, get back at least 6 or 7 bits in the icmp response, and I'm pretty sure the android ping still prints out the packet contents if they don't match whatit expects, giving you fairly large bidirectional if you run an ICMP response server on the ohter end to munge the packet format May 21 14:36:50 ping allows arbitrary patterns instead of abcdefg...xyz...whatever that it normally fills packets with May 21 14:37:04 anyhow. I got a response relatively quickly from someone at google, but they didn't much care May 21 14:37:16 the attack surface isn't that interesting so I didn't much care May 21 14:37:32 I care a lot more about vulns like zergrush, but the vendors aren't going to be fixing them any time soon May 21 14:40:02 I sent in on 17th. No reply as of now. May 21 14:40:22 wait, so if I re-double click the application, they will only run one instance of my broadcastreceiver/service/activity? nice. May 21 14:40:32 of android. by default. May 21 14:40:36 Im thinking of going public with the PoC if no reply is forthcoming in two months. May 21 14:42:18 hexploit: not productive probably but definitely your choice. The problem with vulnerabilities on android is that there's absolutely no path to fixing it for users May 21 14:42:34 hexploit: because if google fixes it this week, it's still a year out from going to users May 21 14:42:39 leeds any idea how to get a ViewFlipper showing say 3 views at the same time that u cab scroll thu? May 21 14:42:41 thru May 21 14:42:45 cant find anything about it May 21 14:42:48 hexploit: and anyone w/ a phone older than a year will never get a fix May 21 14:43:06 The vuln in this scenario can be fixed by a simple app May 21 14:43:10 gaz`: not a clue May 21 14:43:12 I think they need to get bitten _hard_ a few times to get them to fix their update process. May 21 14:43:32 Amen May 21 14:43:39 damn May 21 14:43:48 HDroid: It's impossible to force vendors into an update cycle May 21 14:43:50 the update process isn't google's May 21 14:43:52 HDroid: so, we're kinda humped May 21 14:44:06 dragorn: true, but it's not impossible to make it easier for vendors, or even circumvent vendors. May 21 14:44:37 Or deincentivize vendors from making their own adjustments that hook into the core OS. May 21 14:44:47 HDroid: it's more or less impossible because of what vendors choose to do, and yes, it's impossible to circumvent many vendors May 21 14:44:56 HDroid: ie, locked htc and moto bootloaders May 21 14:45:10 HDroid: yes, deincentivizing them to stop messing with it would be a step May 21 14:45:14 vendors dont want updates because they want to sell more phones May 21 14:45:27 dragorn: if google goes public with an update mechanism, I'd be surprised if vendors wouldn't get forced to adapt by public opinion. May 21 14:45:31 but there's still vendor and carrier update cycles, plus yeah - they want you to buy a new phone. May 21 14:45:36 every 2 years the average consumer will buy a new phone anyway May 21 14:46:15 readme: of course they don't want it, but they're selling stuff that is vulnerable to security attacks, it's matter of time before some big crack starts costing users a lot of money, class action waiting to happen. May 21 14:46:19 HDroid: vendors+carriers don't give a fuck about public opinion. All top 10 requests on moto were "unlocked bootloader". Verizon said "nah". Moto went along with it. There is no payback for vendors and carriers treating users well. May 21 14:46:41 Then all they need to do is put a "you can't class action us" in the EULA and it's done. May 21 14:46:43 If the webkit vuln was out in the open i think that would light a fire beneath their collective asses May 21 14:46:53 dragorn: does that actually work? May 21 14:46:53 * dragorn doesn't have a very cheerful outlook on the world. May 21 14:47:02 HDroid: yup, sony and microsoft have already done it May 21 14:47:04 I highly doubt that's enforcable. May 21 14:47:15 caveat emptor May 21 14:47:34 it's enforceable if you can hire enough lawyers to bury anyone trying to do a class action May 21 14:47:42 or at least break it up by state May 21 14:47:46 Hm America May 21 14:54:12 There's no point in Android being open source if you don't want people making changes May 21 14:55:04 and tjere's tons of paths to getting security fixes May 21 14:55:15 that don't require updates to 4.0.3 May 21 14:56:14 google wants companies to use the framework and feed data and ads from google. Vendors want to make their device unique and somehow have features incompatible w/ anyone else to get user lockin May 21 14:56:16 even the original Droid got an update in 2011 that was just security fixes May 21 14:56:28 vendors want the device fully locked down to get a slice of the market revenue and load crapware onto it for more cash May 21 14:56:44 and users want cheap devices May 21 14:57:03 open source falls somewhere in "do googles work for them" and "see it's easy to put it on your device, so you should use it instead of WP7" May 21 14:57:27 "make life good for the end user" isn't really ever a concern except that if you make it awful enough, eventually, they won't come back May 21 14:57:56 Apache licnsed software is in no way getting someone else to do your work for you May 21 14:59:30 it's feeding a commercial venture with no return for contributors. Of course it is. There's nothing wrong with it, but I dont' see it as some great altruistic make-the-world-better pure OSS project. It's OSS b/c it's too hard to make it closed. Even google won't contribute their core apps to it b/c they can make a buck. May 21 14:59:46 and it's their lever for making vendors do google-sourced data May 21 14:59:54 this conversation is amazing May 21 15:00:13 don't contribute then.... May 21 15:00:15 except mikedg isn't trolling hard enough to take it to the next level May 21 15:00:20 you are not forced to contribute May 21 15:00:25 Never said it was a bad thing May 21 15:00:33 it's not goatsesourced May 21 15:00:37 you don't have to open everything May 21 15:00:54 Just saying be realistic - the user is getting humped in the model because there's so many levels of corporate BS that prevents updates from getting pushed in a timely fashion May 21 15:00:59 it's open source because that was easier to make companies use it May 21 15:01:00 android being open gives vendors the freedom to do what they want with it May 21 15:01:14 because carriers are afraid of it nuking their networks, and vendors have no reason to push fixes when they could try to sell a new device May 21 15:01:31 and no-one at the "make them get a new phone" level understands or cares about security anyhow May 21 15:01:48 i don't understand your speaking May 21 15:01:55 I am ESL, can you please speak shorter May 21 15:01:59 dragorn: noone is forcing you to buy a vendor/carrier locked device May 21 15:02:03 the user chooses what he buys. protectionism will only serve to make them dependent May 21 15:02:56 appel1: I do't see this as what *i'm* forced to get. I have unlocked devices. We're the top of the android heap; try explaining any of this to your mom who just wants a working phone May 21 15:03:20 my mom has a working phone May 21 15:03:24 appel1: and then try explaining why her bill is $1k because some malware made 1-900 calls all night, because she dared buy a phone on sale at verizon May 21 15:03:27 she is unaware of updates May 21 15:03:31 appel1: and *that's* why I think the model isbroken May 21 15:03:32 dragorn: my moms Nexus S works just fine and gets timely updates. May 21 15:03:33 unless the phone tells her it has an update May 21 15:03:55 paranoia is boring May 21 15:03:57 dragorn: then hopefully she'll learn her lesson May 21 15:04:00 print "caveat emptor"x1000000; May 21 15:04:27 Guys as far as I know I can create activity which will extends listactivity but will have some text field on the layout?! May 21 15:04:36 this is 10000000x better than computers are May 21 15:05:02 Trudko: use a custom LAYOUT with the correct ANDROID:ID for the LISTVIEW May 21 15:05:25 what do you mean by custyom layout May 21 15:06:07 open up xCode, and go into InterfaceBuilder May 21 15:06:21 then add a UILabel object May 21 15:06:27 then UIListView under it May 21 15:08:05 guys halp emulator is too slow. what to do? May 21 15:08:06 ok so just classi nothing fancy May 21 15:08:14 buy better pC? :D May 21 15:08:22 sorry but I cant complainm about emulator May 21 15:08:36 even though I am not sure what do you mean by slow, what exactly is slow? May 21 15:08:50 angry birds is very choppy, how 2 make faster? May 21 15:08:55 dragorn:according to the security faq aren't they supposed to disclose patched vulns? I don't see any disclosure bulletins May 21 15:09:55 hexploit: Don't know. I got told "yeah it's not new, we fixed in 3.x". This was before the honeycomb source release but they gave me a git commit hash to identify it May 21 15:10:35 So all patched vulns will be on git? May 21 15:11:25 hexploit: AFIAK google has an internal git and pushes updates when a major release happens as one blob May 21 15:11:50 hexploit: the AOSP release cycle is odd; others (ctate) could tell you for sure May 21 15:13:57 dragorn: they release full git history May 21 15:14:05 a cursory glance at AOSP would tell you that much May 21 15:14:39 evancharlton: yes, but they push it as a blob, dont' they? It's not a continual feed from google as they fix things internally May 21 15:15:06 right May 21 15:15:13 well, it depends on the project May 21 15:15:27 kernel and SDK are done more or less in the open, iirc May 21 15:16:00 in my experience you don't get security commits in a daily fashion, it pends until the next AOSP point release, which is what I was trying to convey. I suggested asking ctate because he'd know for sure their policies on that stuff May 21 15:16:17 Hello everyone. May 21 15:17:35 hi guys, I'm having some troubles with the System.load() function. Logcat tells me "I/LoadLibrary( 1821): Couldn't load /data/data/name.lol.android.helloworld/lib/armeabi/libnativecode.so: findLibrary returned null" but I pushed that libnativecode.so in the lib/armeabi folder. What am I missing ? May 21 15:18:32 I was wondering if anyone could give me some idea, or a starting point of two things: 1. I want to start my app when a specific link on the browser is clicked, 2. I want that link to be available to the app, so that I can get different parameters from the link. May 21 15:18:38 MaaaZ: are you telling it to laod the full path or just the library name May 21 15:18:56 MaaaZ: it should be system.loadLibrary("nativecode"); May 21 15:19:29 WHats is the reason why one activiy cant send List to another activity in intent? May 21 15:19:30 dragorn: I made a "System.load("/data/data/name.lol.android.helloworld/lib/armeabi/libnativecode.so");" May 21 15:19:49 so basically, I gave the full path from / May 21 15:19:56 MaaaZ: I've always used System.loadLibrary("..."); May 21 15:19:59 MaaaZ: you shouldn't do that May 21 15:20:08 dragorn: I also tried with loadlibrary May 21 15:20:10 MaaaZ: for a few reasons... a) /data/data/... isn't static May 21 15:20:16 k May 21 15:20:18 so May 21 15:20:20 MaaaZ: it may change, you shouldn't count on it May 21 15:20:40 MaaaZ: b) when the android installer unpacks the libs in the apk, they go in lib/ not lib// May 21 15:20:47 dragorn: that's true ! so If I do a "System.loadLibrary("nativecode");", where should I put my .so ? May 21 15:20:53 MaaaZ: the installer picks the right platform lib dir and copies that May 21 15:21:12 okay, so basically, the .so is already packed with the apk ? May 21 15:21:27 MaaaZ: you should put it in lib// in your source when you build the APK. If you're assembling it manually on a rooted device, it should go in /data/data/your app/lib/ May 21 15:22:16 MaaaZ: but you probably shouldn't assemble it manually except for testing. The ndk will by default (well, if you set up your mk's properly) put your libs in lib//whatever.so for you, and the installer will pick the right platform for the device May 21 15:22:18 what do you mean by "lib//", does it correspond to "/system/lib/" ? May 21 15:23:00 MaaaZ: no, I mean in your android project you'll have libs/armeabi/ libs/x86 libs/armeabi-v7a etc May 21 15:23:23 which the NDK will set up for you if you set up the .mk files properly May 21 15:23:23 yep, I got libs/armeabi/ in my source project May 21 15:23:38 my NDK is properly set up May 21 15:23:43 when you install the apk it should automatically copy the proper libs/foo/ files May 21 15:23:49 okay okay May 21 15:23:55 and System.loadLibrary("basename"); will find it automatically May 21 15:24:07 where basename doesn't include the 'lib' or the '.so' May 21 15:24:25 Ok mate, I'll try again with loadlibrary May 21 15:24:44 it's pretty cleanly handled, and if you let the NDK compile for all known platforms you'll work on everything May 21 15:25:01 i think the newest NDK even compiles on mips May 21 15:25:05 Okay May 21 15:26:00 hourgh, why don't seekbars have a enabled property? May 21 15:26:45 evancharlton: i thought you had ops el oh el May 21 15:26:58 ? May 21 15:27:02 hi guys, I've an HTC One X and I'm developing under ubuntu May 21 15:27:12 oh derp May 21 15:27:28 do you know how can I make it recognize by my system? Because right now "adb devices" returns ???????????? no permissions May 21 15:27:33 evancharlton: thanks for the tour, again May 21 15:27:37 jjnye: sorry it took me a second to decode who you were :) May 21 15:27:52 nbd May 21 15:27:56 stermi, sudo adb start-server May 21 15:27:57 what could i use to make a seekbar "disabled" (as in greyed out) May 21 15:28:09 (you have to adb kill-server first) May 21 15:28:42 (just as buttons have enabled) May 21 15:29:47 jeppy, I get the same result May 21 15:31:01 stermi, have you done this? http://source.android.com/source/initializing.html May 21 15:31:15 Does anyone one know how to accomplish: 1. I want to start my app when a specific link on the browser is clicked, 2. I want that link to be available to the app, so that I can get different parameters from the link. May 21 15:31:29 stermi, the USB Access section May 21 15:31:30 dragorn: I tried LoadLibrary, it failed. I pasted all the info here : http://www.pastebay.net/1060153 May 21 15:36:02 i want to install an .apk that becomes root, when the user clicks a link without them knowing what happening, any ideas? many thanks from the minister of finance in Nigeria May 21 15:37:13 lol @ Younos May 21 15:37:24 Younos: take your hackery elsewhere May 21 15:37:58 i'm sorry wongk, just kidding May 21 15:39:10 419eater.com May 21 15:40:33 MaaaZ: you're loading the library correctly now May 21 15:40:58 not as correctly as the system would like :D May 21 15:40:59 anyone know of a supersonic rom built off of the latest sprint update 5.07.651.1? May 21 15:41:02 MaaaZ: but your library doesn't have the function you defined in it. check the NDK tutorial on the android dev site, there are specific naming conventions you must use to resolve symbols May 21 15:41:19 hum May 21 15:41:24 MaaaZ: it's in your log if you read. "No implementation found for native Lname/lol/android/helloworld/NativeCode;.NativeMethod (Ljava/lang/String;)V" May 21 15:41:49 yep but right before there's " Couldn't load nativecode: findLibrary returned null" May 21 15:42:19 llalla? May 21 15:42:22 MaaaZ: you need a function named Java_name_lol_android_helloworld_NativeCode_NativeMethod May 21 15:42:33 MaaaZ: there's presumably something weird in your apk build then May 21 15:42:54 MaaaZ: maybe the library isn't being built properly or you haven't rebuild your apk or something May 21 15:43:24 dragorn: I've got the" Java_name_lol_android_helloworld_NativeCode_NativeMethod" in the .c and .h May 21 15:43:40 dragorn: I checked, the .so is properly packed into the APK May 21 15:44:08 MaaaZ: Don't know what to tell you; this is how you do ndk, so the fact that it's not working implies there's something wacky with your setup/install of the package May 21 15:44:21 MaaaZ: I can't tell what that might be from what you've pasted May 21 15:44:47 Okay...is there some information that I provide you maybe ? May 21 15:45:21 i'd go through the ndk example for their helloworld code and make sure everything lines up May 21 15:45:41 Okay :D May 21 15:56:51 still don't work jeppy May 21 15:57:01 I think that's because HTC One X is not listed in there May 21 15:58:23 try looking for the 1x info online May 21 16:02:02 guys I need help making a Battleship game May 21 16:02:05 jeppy, found: http://forum.xda-developers.com/showthread.php?t=1629034 May 21 16:02:12 I saw the movie this weekend and I think it would make an awesome android game May 21 16:02:15 lots of money to be had May 21 16:02:41 a game with like massive aliens attacking a multinational naval exercise? May 21 16:04:07 nah, make it simpler, just big ass battleships shooting shit at enemies May 21 16:04:09 it could me an mmo May 21 16:04:15 with focus on pvp May 21 16:04:51 uhhh, what's so innovative about badass battleships shooting shit? May 21 16:05:07 (ok, money to be had != needs innovation) May 21 16:06:13 you could base it on that really small section of the movie where they were shooting blind on a sort of grid May 21 16:08:14 woah! May 21 16:08:23 that sounds SO intense and interesting May 21 16:08:29 i'd say there are HOURS of fun in that game May 21 16:08:41 (scnr) May 21 16:09:02 if I call finish() in onResume(), is there any reason that my activity would not die? May 21 16:15:59 dragorn: I compiled and tested the original hello-jni from the official documentation it failed for the same reasons May 21 16:16:35 MaaaZ: you've got something weird in your process then, because I do NDK all the time May 21 16:16:44 MaaaZ: I wish I could guess what it was May 21 16:17:17 MaaaZ: when I started i went through the hello world jni examples from the docs and it worked just fine; are you sure you're compiling for the proper platform for your target phone? May 21 16:17:31 MaaaZ: for giggles, you could compile for all platforms and see if that helps May 21 16:17:31 hum May 21 16:17:52 the platform I tried was 2.3.3 May 21 16:17:56 MaaaZ: in Application.mk add APP_ABI := all May 21 16:18:06 MaaaZ: by platform I mean native platform, not android version May 21 16:18:53 ah May 21 16:19:50 the trouble may comes this, as both my android VM and emulator tested are x86 based May 21 16:19:59 and the so is built for arm :) May 21 16:20:36 what should I edit to compile the native code for x86 May 21 16:20:44 ? May 21 16:22:37 i cant find my pants May 21 16:24:33 MaaaZ: uhhh yeah. if you're testing on an intel based device it won't find an arm library. May 21 16:24:43 :D May 21 16:24:54 MaaaZ: do what I said, put the app abi line in Application.mk for your jni May 21 16:25:04 and confirm when you do ndk-build that it's compiling for all the platforms May 21 16:25:53 did it, but still there's only the arm version built May 21 16:26:18 but this time it comes with the gdbserver binary May 21 16:26:45 Whats is the reason why one activiy cant send List to another activity in intent? May 21 16:28:26 Trudko: if it's serializable you can send it May 21 16:28:45 parcelable May 21 16:28:49 yeah but I would have to extend the list May 21 16:29:36 how can I make Context extend Parcelable to I can put it in an intent May 21 16:30:05 argh, I'm going mad with the EXTERNAL_STORAGE stuff in ICS... what is the appropriate way for the following scenarion; eMMC + USB mass-storage May 21 16:30:19 I tried not adding a fuse /mnt/sdcard, but then Gallery blew up May 21 16:31:14 dragorn: I tried to specify "APP_ABI := x86" in the mk, but still, only the eabiarm version is built May 21 16:31:28 MaaaZ: in Application.mk, not Android.mk ? May 21 16:31:52 mikedg: dude just use a singleton. better if you use two parcelable singletons, though. May 21 16:32:02 dragorn: Android.mk May 21 16:32:30 MaaaZ: has to go in Application.mk May 21 16:33:11 dragorn: for the hello-jni, there's no Application.mk file in the project tree May 21 16:33:31 MaaaZ: then you have to make one. That option has to go in Application.mk May 21 16:33:40 MaaaZ: make a file. put that in it. That's how it works. May 21 16:35:52 dragorn: compiled and tested, it's alright now :). Thanks for time and patience dude ! May 21 16:37:22 MaaaZ: glad it's working out! I'd set the abi to ALL and let it compile for everything, it's just simpler May 21 16:38:28 I'll enjoy the power of native code execution :) May 21 16:45:19 hello May 21 16:45:52 is there a limitation on how often I can invoke su? May 21 16:45:59 on rooted devices May 21 16:46:46 dorei: yes it is hardcoded to 42 times May 21 16:46:59 42 times? May 21 16:47:01 lol May 21 16:47:22 after that, phone explodes May 21 16:48:03 i have my app execute three sh scripts , each sh script invokes su to run a command May 21 16:48:30 if i execute one after the other, then the su app asks for confirmation only for the first command and silently rejects the other two May 21 16:48:43 if on top of each command in the sh script i add sleep(5) May 21 16:49:00 then it asks for confirmation for the first 2 commands and then reject the other May 21 16:49:20 so, the lame solution was to have 3 scripts, one without sleep, one with sleep(5) and one with sleep(10) May 21 16:49:30 that's why i was wondering if there's some sort of limit May 21 16:50:15 you might have a little better luck w/ su specifics in #android-root since it's not part of stock android May 21 17:12:13 does anybody use intellj idea ide for devel? May 21 17:12:57 i tried it May 21 17:14:21 ya i am also and unless u build it with intellj it doesnt honor uses sdk from import from eclipse :/ May 21 17:14:45 hmm, ive never tried to import an eclipse project May 21 17:14:59 just checked it out from svn and did a mvn install May 21 17:15:59 oh idk then but there is explict import and export via eclipse May 21 17:16:29 but it doesnt pull the sdk emulator and android package in May 21 17:18:50 of course googled the problem and foogle pulls everything but what i was looking for... 5 pages deep and said screw it May 21 18:03:07 I'm completely out of ideas. Calling finish() for an activity and it does nothing. Anyone have any ideas? I thought maybe because it wasn't happening in the right thread, so I'm doing runOnUiThread() { … finish here …}. Still nothing. Just sits there and completely ignores the finish() call. May 21 18:04:01 Android development is based from Mountain View? May 21 18:10:46 Guys, I've seen a few support tickets come in for user's who are claiming that our app is TURNING ON their GPS even though they explicitly disabled it. I'm sure this isn't possible, but the addition of several support tickets is making me worried. Anybody ever seen / heard anything like this? May 21 18:11:26 s/user's/users May 21 18:23:30 Chronax: does your app otherwise use GPS? i.e. do you even request permission for it? May 21 18:23:53 Is there any way I can use objects declared as static final in a switch case? May 21 18:25:28 Spanska: sure, as long as they're ints May 21 18:25:43 PeteS: Yes, we do. But there's no way for an app to enable it, right? Unless everything I know is wrong. May 21 18:25:59 weird, they are but the object isn't an int May 21 18:26:04 Spanska: no, only ints May 21 18:26:20 and maybe Squeegees May 21 18:26:26 hehe May 21 18:26:47 why would you want to use a final in a switch case? May 21 18:27:15 oh nevermind May 21 18:27:21 :0 May 21 18:28:21 google is reading your emails https://plus.google.com/116031914637788986927/posts/dqZcu2BPM4J May 21 18:28:51 it works with a class, nice May 21 18:29:18 mikedg: my global values are stored in a specific class so it's easier to manage May 21 18:29:31 and I can reuse them easily in multiple pieces of my code May 21 18:29:51 GLOBALS May 21 18:30:13 dont ever use Globals, use inline hamsters May 21 18:30:28 can I nest hamsters? May 21 18:30:36 yes May 21 18:30:48 nested hamsters is a natural design pattern May 21 18:30:48 soundsmessy May 21 18:34:28 ARE ANY OF YOU GUYS DEAF? do you fall asleep easier than non deaf people May 21 18:35:48 * mr_lou uses earplugs because otherwise he can't fall asleep...... May 21 18:36:18 * mr_lou lives next door to an insane cat that feels it has to wake up everyone at night. May 21 18:38:44 ho people, i need help to understand how can i extract /data/data/com.android.providers.telephony/databases/mmssms.db and /data/data/com.android.providers.contacts/databases/contact2.db without permission problems, when i replaced them in a fresh android installation May 21 18:50:53 anyway to detect which view generated a MotioNEvent from the motion event obj? May 21 18:51:40 ask it May 21 18:51:45 how? May 21 18:52:05 send it an email with a poll May 21 18:52:57 hmm May 21 18:53:21 event.source? May 21 18:53:39 getSource() May 21 18:54:30 doesnt seem to be a method? May 21 18:55:46 appears in api docs but not when i try in eclipse May 21 18:57:28 im simply trying to distinguised from a gesture and an actual tap May 21 18:57:40 file > settings > uncheck the box that says 'Make Eclipse dumb' May 21 18:57:48 oh wait, that's hardcoded May 21 18:58:11 i have a viewflipper and it shows 3 imageviews, so i wanna be able to click one of them OR fling them to the next set of 3 May 21 18:58:29 all working except i cant work out how to get clicks on the individual things detected at the same time as a gesture May 21 18:58:53 ie i can detect gestures OR imageview clicks but not both May 21 18:58:55 grr May 21 19:04:33 i'm making a multiplayer game which is supposed to be played between two phones (over 3g/wifi), and I know how to do the game drawing and physics part on the single phone, but i've never done any network programming so i thought i'd learn, but the problem is that i'm not really sure what i'm supposed to google, i came to a webpage when i googled "android socket" (http://thinkandroid.word May 21 19:04:33 press.com/2010/03/27/incorporating-socket-programming-into-your-applications/) but I figured that only gave me a one-way connection (client to server), but i need two phones to communicate May 21 19:05:05 i figured one phone could work as the server and it could connect to itself and then the other would connect to it aswell, but how is the correct approach? and what should I search for? May 21 19:05:53 what would be awesome would be an explanation on how to send a message to phone nbr 1 from nbr 2 and the other way around May 21 19:07:23 dabbe: once the socket is open, it is capable of 2 way communincation May 21 19:07:43 oh ok lol >< May 21 19:07:45 but one phone has to listen for a request from the other phone May 21 19:08:33 how would the information flow look like? if both phones have a draw+update loop running constantly in a thread May 21 19:08:49 when would it send information and when would it listen for information? May 21 19:08:57 i have no idea May 21 19:09:02 okay May 21 19:21:11 argh, why can i only fiddle with a view in the thread that created it? May 21 19:23:03 you can only touch UI stuff on the UI thread May 21 19:23:07 this is a good restriction May 21 19:23:08 Nebukadneza: the UI thread is the only thread that can interact w/ the View May 21 19:23:44 not sure how looked down upon this solution is but theres what i do when im desperate http://pastebin.com/Xpb6dmxq May 21 19:24:10 that usually works Nebukadneza May 21 19:24:49 Activity has runOnUiThread May 21 19:24:50 i thiknk readme told me that :) May 21 19:25:13 which is just a shortcut version of that May 21 19:25:36 aha May 21 19:26:02 thanks May 21 19:26:08 such a useful chan this May 21 19:26:34 ah May 21 19:26:38 YES and i just fixed my issue!! May 21 19:26:39 so… if I call finish(), shouldn't isFinishing() be set to true immediately after? May 21 19:26:41 gaz`: that brought me a to nicer solution May 21 19:26:56 SomeActivity.runOnUiThread(Runnable foo); May 21 19:27:04 one little gui component thingy has taken me like 8 hrs just to work out how to distinguish the gestures May 21 19:27:17 yeh Nebukadneza ill have to adopt that instead of mine :) May 21 19:27:29 thanks~ ":p May 21 19:27:42 anyone in here with a HTC Raider May 21 19:27:55 x710a May 21 19:35:45 SDK manager does not seem to be updating docs, e.g. tools and ADT is shown as r16 and it does not offer any updates. Is this normal? May 21 19:36:02 I'm on Vista May 21 19:37:11 toradam: no, not normal May 21 19:37:34 r19 is current May 21 19:38:49 what should I do to fix, w/o having to dl everything from scratch? May 21 19:40:42 arrghh. i keep getting arrayindexoutofbounds when im using gridlayout May 21 19:40:55 i have the first view being added that id like to fill all the columns May 21 19:41:04 then when i add the other ones i get out of bounds May 21 19:41:08 cannot figure this thing out May 21 19:42:39 i find it quite interesting, that most android tutorials i have seen on youtube are made on a mac. even many developers from google seem to use macs May 21 19:43:29 well macs are great because you have a native unix shell May 21 19:43:35 cant imagine using a windows machine May 21 19:43:50 i thought everyone would use linux May 21 19:44:48 oh haha yea linux May 21 19:44:52 was thinking mac vs windows May 21 19:45:42 windows + git bash = useable May 21 19:46:07 linux is a better experience for many, though May 21 19:47:24 yeh im amaze dhow many ppl use mac May 21 19:47:29 i couldnt enjoy the OS when i tried May 21 19:47:34 but then i only gave it 6 months May 21 19:52:25 wongk: SDK Manager says "Documentation for Android SDK, API 15, revision 2", is that the latest? May 21 19:54:27 is there a point to isFinishing() if it doesn't return the correct value? May 21 19:55:13 toradam: r15 is that latest revision of the SDK, but not of the tools May 21 19:55:21 I want to have a long-running service so I'm using setForeground, but I don't want the notification icon to appear. I don't want android to kill the service, but I don't want the notification icon either... what's the way to achieve this? May 21 19:55:40 startForeground/setForeground May 21 19:57:23 wongk: I'm talking about documentation, the local copy that gets installed. May 21 19:57:42 documentation is provided for each SDK revision May 21 19:58:20 pragma-: Isn't really any way. The icon indicates "I'm doing stuff please don't kill me". There's no way around it I'm aware of. May 21 20:36:41 hi, how can i refresh my listview and update it with the new data a service is posting ? May 21 20:37:18 currently i am using setListAdapter(new ArrayAdapter to display my list May 21 20:37:32 but the updates after the activity is created are not reflected May 21 20:37:34 Hey, I want to use ABS in a bigger project. We don't want to bloat up our repository by committing and pushing ABS to it, so we thought of cloning it from github into our workspace. However we're worried, that when there's updates that we'll run into incompatibilities. May 21 20:37:45 What would you guys suggest? May 21 20:37:49 Forking it and using that? May 21 20:38:35 ocx: notifyDataSetChanged May 21 20:38:54 where should i put thAT? May 21 20:39:02 where the data is changed May 21 20:39:47 its a method of which object May 21 20:39:53 kakazza: use a gitsubmodule May 21 20:40:01 it points to a specific commit and will never change May 21 20:40:16 Until I manually update? May 21 20:40:19 yes May 21 20:40:32 ocx: think about it, which object does it make sense for that method to be a member of? May 21 20:40:37 And I can make that submodule point at your github repo? That would be nice. May 21 20:40:44 Are there any guides I could follow? May 21 20:40:46 kakazza: precisely. That's what we do at Square May 21 20:40:46 uh May 21 20:41:10 arrayadapter i think May 21 20:41:46 JakeWharton: this is good information. i wasn't aware of this feature May 21 20:42:07 hmmm May 21 20:42:15 my problem is that the service is where the data is getting changed, but i dont have access to the arrayadapter of the listview activity May 21 20:42:15 kakazza: i would just look for general git submodule guides May 21 20:42:37 what could i do with the edittext in my preferences so it won't break my copy-pasted ssh key? :( May 21 20:42:56 Will do, thanks. May 21 20:43:54 ocx: use the listener pattern, more commonly referred to as the observer pattern May 21 20:44:31 didnt get it May 21 20:44:47 what didn't you get May 21 20:45:06 what is a listener pattern May 21 20:45:08 sigh, in 11 months my apk has grown from 40K to 265K May 21 20:45:12 * pragma- shakes his fist. May 21 20:45:18 i sure hope you know where to find the answer to that question May 21 20:45:25 :D May 21 20:45:27 ok May 21 20:45:42 hm, noone? May 21 20:45:51 * pragma- points accusingly at android-support.jar May 21 20:45:57 Nebukadneza: your question was not clear May 21 20:46:01 hm May 21 20:46:09 * pragma- can only imagine how many duplicates of it he has from various apks on his phone. May 21 20:46:11 i'm not quite sure what *exactly* is beeing broken myself ;/ May 21 20:46:34 i'm sure when copy-pasting a ssh-key from browser.apk to my applications preferences screens edittext-field, at least one newline gets eaten May 21 20:46:56 quite sure something else gets reformatted in a way that makes the resulting data incompatible with orion-ssh2 too ;/ May 21 20:47:58 test May 21 20:48:15 http://www.fiercedeveloper.com/story/artificial-intelligence-integrated-mobile-apps-holds-tremendous-promise/2012-05-21 May 21 20:48:17 so for example i'd like to turn off automatic line-wrapping ;/ May 21 20:48:31 Is there a way to store a dir as a archive or a file and then use it inside of a android app that would access it normally like a dir? May 21 20:48:45 Siriuskr: assets May 21 20:49:10 thats not stored in the apk May 21 20:49:12 you can't just get a File handle to it, but you can always unpack it if you want to May 21 20:49:14 but on external May 21 20:49:16 er, yes it is May 21 20:49:43 so it would have to unpack everytime i want to access? May 21 20:50:01 what? no May 21 20:50:18 you would copy them from AssetManager into a dir of your choosing May 21 20:50:22 http://developer.android.com/reference/android/content/res/AssetManager.html May 21 20:50:28 thanks May 21 20:50:42 Siriuskr: don't forget on certain apis there is a size limit to the zip file May 21 20:50:56 i think its 1mb for froyo and below ? May 21 20:51:07 im doing only 8+ May 21 20:51:09 it was fixed in gb or hc May 21 20:51:11 JakeWharton: I asked you about reliably detecting stacked actionbar tabs at AnDevCon for the purposes of styling appropriately. You said it was "impossible" but my compatriot is convinced that issue can be neatly avoided with artful use of the -swXXXdp and -landscape resource qualifiers. Your thoughts? May 21 20:51:19 ok May 21 20:51:40 hm May 21 20:51:45 i mean, you can mirror the ones that the native platform uses and there's a help in ABS for those pre-Android 3.2 May 21 20:51:48 how could i check whether the browser copy-pastes ina non-harmfull way? May 21 20:51:53 but they may change with future versions of the platform May 21 20:51:58 whats the IRC script command to wait for a second or two? May 21 20:52:09 an OEM might change them with a custom ROM May 21 20:54:27 damn I'm so sick of users leaving comments on issues without enough detail for fixing, instead of just contacting with an email...so much stupidity May 21 20:55:18 Can I add html to an imageview? May 21 20:56:02 jrock20041: no May 21 20:56:08 * t0mless highfives JakeWharton wifi May 21 20:56:19 i'm at SFO May 21 20:56:25 Flying again?! May 21 20:56:32 Can I convert an imageview to a textview? May 21 20:56:45 t0mless: yep :) May 21 20:56:46 if you do OCR, maybe May 21 20:56:47 this time for business May 21 20:57:08 romainguy: hahaha May 21 20:57:10 I tried using the convertview function but it would not allow it May 21 20:57:18 jrock20041: wat May 21 20:57:28 told me I could not cast to it May 21 20:57:28 jrock20041: more seriously, you cannot May 21 20:57:52 try CPR May 21 20:58:29 Well, here is what I am doing May 21 20:58:31 jrock20041: what on earth are you trying to do? May 21 20:58:55 store in the app I have a default image May 21 20:59:14 when I am grabbibng data for a person if they have an image I want to external load it May 21 20:59:21 I do not want to download it to the client May 21 20:59:45 so I have it set to imageview and load the default image May 21 20:59:55 Is there any way to "inject" views into a ListView while readjusting the layout of its children. I want to add headers in an asynchronous manner without knowing how many there are up front. May 21 21:00:29 evancharlton, Do you understand> May 21 21:00:38 JakeWharton: that would just boil down to updating the adapter, no? May 21 21:00:46 well, the adapter requires a count May 21 21:00:48 and calling notifyDataSetChanged() May 21 21:00:57 which means I need to traverse the entire data set and determine how many headers there would be May 21 21:01:04 jrock20041: where does TextView enter this at all? May 21 21:01:11 JakeWharton: ah, hrm May 21 21:01:28 JakeWharton: you can change the number of items in a ListView at any time May 21 21:01:30 JakeWharton: you can update getCount() on the fly as long as you call notifydatasetchanged May 21 21:01:37 evancharlton, so I can use HTML.fromHTML to externally get the image May 21 21:01:37 what evancharlton said May 21 21:01:46 jrock20041: wat May 21 21:01:47 JakeWharton: cyrilmottier;s blog is lv (parts 1-5) goes into almost every way to handle headers, maybe you will find something there - although i'm sure not async specific. but since there alre several ways of doing it, you may find one technique to work best with your approach May 21 21:02:01 evancharlton, This html for a moment May 21 21:02:25 you can set an image src to another location if you are hosting images on a remote server May 21 21:02:29 jrock20041: you're trying to add the image by doing and using Html.fromHtml() ? May 21 21:02:31 well i also want to pin the headers which presents another problem May 21 21:02:40 JakeWharton: one thing at a time :P May 21 21:02:40 evancharlton, yep May 21 21:02:42 i've tried about 4 ways to do it and they all suck May 21 21:03:28 I would hate to have the user have to download a ton of images to their device so I thought I could store them externally May 21 21:03:58 jrock20041: how do you think Html.fromHtml would show an image without downloading it? magic? May 21 21:06:37 evancharlton, I guess I could write while its pulling the faculty data to also download the images May 21 21:07:00 I was hoping to avoid all that at one time May 21 21:08:02 jrock20041, In the past I've written an Async image handler that shows images as soon as they load, but without slowing down whatever layout I'm inserting them into... there are a bunch out there on stackoverflow May 21 21:08:16 I haven't read up too far - but it looks like that could work if you're using a ListView May 21 21:09:18 * FunnyLookinHat digs around for sample code... May 21 21:09:38 FunnyLookinHat, I will look that up May 21 21:13:29 I know I have tried to go out and get the images before and I get the networking.on.main exceptions May 21 21:13:48 I tried creating a new class that was an async task, but that did not work May 21 21:14:14 koush wrote a simple asynchronous image downloader than handles convertViews May 21 21:14:21 https://github.com/koush/UrlImageViewHelper May 21 21:14:30 i'm writing a better one, but it's good enough for now May 21 21:14:43 his uses an AsyncTask beneath the hood which is its main limiting factor May 21 21:16:10 What are you using? May 21 21:16:34 I wrote my own but it's not fit for public consumption yet May 21 21:17:06 HAHAHA... JakeWharton I just saw the G+ post with the VPI sample icon May 21 21:17:10 Cylon Android. May 21 21:17:12 Awesome. May 21 21:17:30 i made that one myself too! May 21 21:17:35 i don't have photoshop anymore though :( May 21 21:20:34 Photoshop CS 6 \o/ May 21 21:21:02 ms paint FTW ! May 21 21:21:03 gimp! ,.< May 21 21:21:05 <.< May 21 21:21:08 jrock20041, Do you have networking perms enabled ? May 21 21:21:36 FunnyLookinHat, I have internet set May 21 21:22:25 jrock20041, funky - give Koush's async image loader a try May 21 21:22:44 FunnyLookinHat, I am looking at it now May 21 21:23:48 I have a really simple ArrayAdapter that will do it in the background if you can't get that to work, but it's a bit clunky ( though it works as far as I've seen ) May 21 21:24:15 I might look at it May 21 21:24:18 gnuplot! May 21 21:24:29 gnuplot is a pita May 21 21:24:30 I have a list array of all the faculty May 21 21:24:36 I use a thread for that May 21 21:24:50 I guess I will need to start up another thread to pull the images May 21 21:25:18 if i can, i use R for charts May 21 21:25:50 jrock20041, You can use this if you want: http://pastebin.com/nbi3gpf7 May 21 21:26:26 jrock20041, This is the media list adapter I use with it: http://pastebin.com/gp7ap7Yw May 21 21:26:53 Basically each row has an Imageview and Textview - and it just sends the images off to the async task May 21 21:26:59 err - Thread. May 21 21:31:55 bumping again because I'm still completely lost. I have an activity started with startChildActivity. I want to finish the activity if various conditions are met, but no matter what I do, finish() does nothing. I call finish(), and everything proceeds as normal as if I had never called it. Does anyone have any ideas? It seems to me like finish() just does not work at all with an activity called from startChildActivity... May 21 21:32:14 hi, I have a question about rev10 of the android api May 21 21:33:13 I'm making a semi-game app, so I'm currently using a view's canvas to draw things May 21 21:33:44 and I have a bunch of objects which I attached a draw method to, etc. May 21 21:34:20 my question is, does android 2.3.3 have a way of animating the properties of said objects? May 21 21:36:01 for example, in jquery one can do $(#divName).animate({"top": "5px}, 500) to animate the top property of that div to 5px from wherever it was May 21 21:37:42 luft: property animators came in in 3.x I think May 21 21:37:49 luft: check NineOldAndroids library May 21 21:38:00 which brings property animators back to 2.x May 21 21:38:10 back to 1.0* May 21 21:38:41 Mavrik: ah ok May 21 21:40:18 Mavrik: I already did a property animator using scala, just wanted to make certain I had not reinvented the wheel (at least as far as the standard libraries go) May 21 21:41:32 PeteS, I'm not familiar with startChildActivity - but if you start your activity with an intent() and call finish from the activity that is started, it will work as it should and return to the previous one May 21 21:42:21 http://gizmodo.com/5849492/how-to-use-siri-on-other-peoples-phones <.< May 21 21:42:37 FunnyLookinHat: thanks, yeah, that's my expectation. in this case it's inside of a tab host, so it apparently has to be launched this way with startChildActivity May 21 21:43:29 ActivityGroups inside tabs make me cry May 21 21:43:37 PeteS, Ah yeah... check this: http://stackoverflow.com/questions/9075493/tabgroupactivity-startchildactivity-not-working May 21 21:44:06 PeteS, You'll have to use the activity manager and pick the one you want to end, catch it and then finish it from the parent I believe May 21 21:44:26 you can grab it from ActivityGroup using a tag May 21 21:44:29 from what I remember May 21 21:44:45 thanks guys, those are great ideas :-) May 21 21:44:47 PeteS, And this as well: http://ericharlow.blogspot.in/2010/09/experience-multiple-android-activities.html May 21 21:44:51 Sorry to spam ya :D May 21 21:45:37 I was afraid that I would be doing something completely off the radar, but it's good to know that a non-standard approach isn't completely crazy May 21 21:49:58 FunnyLookinHat, So I hit a snag May 21 21:50:19 FunnyLookinHat, My faculty objecot for image is set to the type of string May 21 21:50:53 so after I make the first pass and get the info its fine but when I get the image I cannot change it to a drawable image May 21 22:02:31 I have a SimpleCursorAdapter in which I am overriding bindView(). Inside bindView() i am using findViewById(R.id.mycheckbox) which is an id in the view I pass to simpleadapter. After finding the view, I am trying to assign a OnCheckedChangeListener to the checkbox but I can't seem to find out if it's actually working. It doesn't do anything it's supposed to, but instead it's like it doesn't do anything at all. Why? May 21 22:03:40 Code is at http://pastebin.com/94jq4Uyg May 21 22:05:54 jrock20041, So you either need to add another item to your faculty object or change how you're going to organize things :) May 21 22:07:51 FunnyLookinHat, Changing it now May 21 22:08:03 first run I got no errors and app run but no images May 21 22:08:11 debuggin now to see what is going on May 21 22:09:01 hello May 21 22:10:32 Any good reads on how to fix the android.os.networkonmainthreadexception? May 21 22:10:54 hello May 21 22:11:42 jrock20041: don't do network on the main thread May 21 22:12:05 evancharlton: can you help me? May 21 22:12:39 if i've got a complex view in a ListView and I want it to receive clicks, how do I do that? Registering onitemclick listeners with the ListView isn't working May 21 22:13:47 Farki: no one can help you unless you ask a question May 21 22:14:47 evancharlton, So I should start up a new thread to resolve the issue? May 21 22:14:59 gotcha May 21 22:15:23 Anybody can recommend me a security software to manage access rights for applications to access to hardware and database elements (like cameras, gps, wifi, network, phonebook, and others) May 21 22:15:27 ? May 21 22:15:56 I want to control all access right by my hand for all applications by security reasons May 21 22:17:48 Farki: not possible with stock android May 21 22:18:08 Farki: there are some firmware projects to enable that, try #android-root May 21 22:19:55 how those firmware projects? those firmwares works well? can you tell me where ca i find thos projects? May 21 22:20:02 ahhhh May 21 22:20:06 android root May 21 22:20:08 :) May 21 22:20:15 thank you May 21 22:30:49 I have an imageView for which I set the scaletype to Matrix - when I setImageDrawable, I then want to apply a matrix, but any matrix I apply doesn't have any effect - I think this is because the image is being loaded on a different thread May 21 22:31:01 how can I know when the image is loaded so I can then apply the matrix? May 21 22:35:28 wabz: uhh, the image is not loaded on a separate thread. May 21 22:40:15 huh May 21 22:40:39 from setImageResource docs: "This does Bitmap reading and decoding on the UI thread, which can cause a latency hiccup. If that's a concern, consider using setImageDrawable" May 21 22:41:30 wabz: you called it on the UI thread, too. May 21 22:41:53 wabz: look around for the lifecycle and threading documentation on d.android.com. Should explain that nicely. May 21 22:50:35 right, I was pretty confused :) May 21 22:51:06 but still not sure why my setting the matrix after the drawable doesn't have an effect May 21 22:51:17 if I set it later on it works fine May 21 23:03:31 This is in a fragment. Anyone know why I either A) Don't actually add the OnCheckedChangeListener, or B) it doesn't ever trigger, AND C) I can't figure out why? May 21 23:03:34 http://pastebin.com/94jq4Uyg May 21 23:27:25 anyone else find today incredibly boring? May 21 23:27:48 i feel like its one of those holidays that you don't get a present on, but I looked it up and it's not. May 21 23:28:15 it's not a holiday is it? May 21 23:28:20 i thought next monday was May 21 23:28:25 it would suck if i missed it May 21 23:28:41 i don't feel bored today, but today is kinda lame May 21 23:33:57 readme:: You could help me get started with Android development... I am having problems getting the SDK into Eclipse Galileo 3.5.2, and also have Eclipse Helios 3.6.2 and it'saying android sdk is not installed, even though it is, but it DID crash during install, so how do I reinstall?s May 21 23:34:11 galileo fails May 21 23:34:14 iirc May 21 23:34:36 the ADT won't work on <3.6 or something May 21 23:34:42 readme:: Also, where are some good docs on android development? I could pretty much just open gedit and start writing some java, right??? May 21 23:34:55 hesperaux:: Yes so I got the adt v 15 May 21 23:35:08 did you go to the Android tab under window->preferences and select the SDK location Areckx May 21 23:35:19 Areckx, what distro are you using? May 21 23:35:38 readme:: so I need to have the plugin installed AND the SDK location? do I just extract the zip file? Ubuntu 10.04 May 21 23:35:46 hesperaux:: Ubuntu 10.04 May 21 23:36:15 i would have guessed that ubuntu would have a more recent version of eclipse May 21 23:36:25 nevertheless, the portable package works very well; i use it on gentoo May 21 23:37:07 All I want to know right now, is where I can find documents on how to code Android apps? I can get started using gedit RIGHT NOW May 21 23:37:19 lol May 21 23:37:38 hesperaux:: Why is this funny? May 21 23:37:53 http://developer.android.com/guide/basics/what-is-android.html May 21 23:38:10 travel through the frame on the left^ May 21 23:38:13 ok so I use java May 21 23:38:36 yes, and a gigantic bag of framework libraries May 21 23:38:54 okay, but the libraries are only used in compiling? May 21 23:39:10 you use the API constantly May 21 23:39:18 it's the only way to do anything May 21 23:39:35 okay, so I can't just code a java app and then later turn it into an android app? May 21 23:39:40 not really May 21 23:39:47 all of the UI elements will be completely different May 21 23:39:55 however backend java classes will work fine May 21 23:39:59 what if I still need to learn Java? do you recommend I start off with plain java or just jump right into android? May 21 23:40:20 learn java, but don't learn Java GUI (awt, swing, whatever) May 21 23:40:50 ok, so I can do everything java related in eclipse? May 21 23:40:55 yes May 21 23:41:11 the java eclipse install works well, and you'll need the JDK May 21 23:41:19 which provides the compiler and libraries that go with java May 21 23:41:34 I want to make progress, so even as a beginner I am not afraid to get my hands dirty with complex tasks May 21 23:41:52 that's good May 21 23:41:54 openjdk works? May 21 23:42:00 I also installed oracle May 21 23:42:31 you really need to have sun (oracle) jdk 6, 32bit May 21 23:42:31 http://paste.ubuntu.com/999997/ May 21 23:42:33 however, jumping into complex tasks immediately usually makes a person write bad code May 21 23:42:45 bbl, dinner time May 21 23:42:47 hesperaux:: where do you suggest I begin? May 21 23:45:50 Areckx, reading d.android.com docs should keep you occupied for a while. Go through the API demos. Look at the resource tab May 21 23:46:49 mgj:: Okay, I'm also going to use this http://eclipsetutorial.sourceforge.net/totalbeginner.html May 21 23:58:48 oh and http://paste.ubuntu.com/1000006/ May 22 00:23:16 is there a way I can dump the hierarchy of a view in memory to the log in a human readable format? May 22 00:24:34 i don't know of a way offhand, though i'm sure you could hack HierarchyViewer to do something like that May 22 00:24:52 you can dump the displaylist, but it won't spit out to XML or anything May 22 00:26:20 I just want to see if my control exists in this view during runtime. May 22 00:26:29 I can't seem to set an OnCheckedChangeListener on it May 22 00:32:43 hi people, i saved /data/data/com.android.providers.contacts/databases/contacts2.db with adb in a pc folder, when i replaced it in a fresh android installation, call log ok, but not contacts May 22 00:33:06 casvah: just look at it in HierarchyViewer May 22 00:33:08 do you know something about the reason why? May 22 00:33:31 krabador: contacts are typically synced with the cloud anyway May 22 00:33:38 ctate, wow thanks. That's a new tool. May 22 00:33:47 krabador: also did you make sure to properly chown the db file when you copied it over to the device? May 22 00:33:56 casvah: err, that tool has been around for a while now May 22 00:34:06 New to me then :D May 22 00:34:29 :) May 22 00:35:03 ctate, i only typed "adb push /data/data/com.android.providers.contacts/databases/contact2.db /home/folder May 22 00:35:15 to save it on my local folder May 22 00:35:38 ctate, thanks! this is awesome. Is there a tool to see what listeners are connected to views? lol May 22 00:36:12 ctate, pull, exuse me May 22 00:37:03 yea arent contacts connected to yoru google account(s) May 22 00:37:36 canadiancow|work, not May 22 00:40:00 My contacts are. May 22 00:40:09 I find it easier that way May 22 00:41:14 ctate, before using adb, i used a file manager in android to save contacts2.db on my sd card, but some times, with some roms, android processes crashes later the contacts2.db replacement May 22 00:42:09 krabador, so stop doing things hacky May 22 00:42:15 put your contacts in your google account May 22 00:42:56 why not use adb backup? May 22 00:43:01 and then they automagically appear everywhere May 22 00:43:09 if needed May 22 00:43:18 canadiancow|work, for now, i prefer to save them, with messages, offline May 22 00:43:22 Although, I suspect the answer might be: "to support older devices" May 22 00:43:29 automagically ftw May 22 00:43:55 i don't have ever connection May 22 00:44:01 is there any reason a checkbox in a custom layout in a listfragment's listview would not trigger OnCheckedChangeListeners? May 22 00:44:13 casvah non May 22 00:44:18 that's the reason May 22 00:44:20 . May 22 00:44:40 Jug6ernaut, so it should always trigger the listener then? May 22 00:44:47 casvah yep May 22 00:44:51 always May 22 00:44:59 as long as it's being checked May 22 00:45:06 Jug6ernaut, then apparently I'm not putting the listener on the appropriate control. May 22 00:45:09 and not being checked programatically May 22 00:45:09 unless the view is being disabled or something May 22 00:45:16 t0mless, i'm touching it. May 22 00:45:31 No disabling, and Hierarchy Viewer shows it as checekd when it is... May 22 00:45:42 right, but if you do something silly like checkBox.toggle(); inside your listview's onItemClicked listener May 22 00:45:56 checkBoxView.setOnCheckedChangeListener(new OnCheckedChangeListener(){}); May 22 00:46:12 t0mless, I'm not. I have no onItemClickedLIstern atm. May 22 00:46:58 Jug6ernaut, t0mless, http://pastebin.com/94jq4Uyg also newView is no longer overridden. May 22 00:47:01 onohesback May 22 00:47:23 JakeWharton still at SFO or are you at a layover somewhere? May 22 00:47:33 SFO May 22 00:47:38 flight delayed 9 hours May 22 00:47:47 fffffuuuuuuuuuuuuu May 22 00:47:47 lol May 22 00:47:54 where are you going? May 22 00:47:55 :| May 22 00:47:57 JakeWharton, oh sux.... May 22 00:48:02 business trip May 22 00:48:12 that's not what i asked! May 22 00:48:20 that's all you get! May 22 00:48:24 * t0mless tips canadiancow|work May 22 00:48:30 * Jug6ernaut has no experince with cursoradapter May 22 00:48:41 JakeWharton: belated, in practice the contacts provider db may have some data in it that is not safely portable from one device to another. in particular, things like sync endpoint IDs and so on. May 22 00:49:00 so you wind up outright *cloning* the sync endpoint, at which point sync stops working properly because you've broken the invariants May 22 00:49:19 windows mobile 6.5 market gets discontinued tomorrow, sad day May 22 00:49:25 * Jug6ernaut misses wm6.5 May 22 00:49:40 in the short term they'll probably suppress backups of it (since the data lives in teh cloud anyway), and longer term just apply slight filtering at backup time so that you wind up with something that is useful for diagnostic purposes but is safe to restore May 22 00:49:40 or do i? :\ May 22 00:49:54 Jug6ernaut: "miss" in the sense of "try to aim at but fail"? May 22 00:50:10 no lol May 22 00:50:15 * Jug6ernaut <3'ed wm May 22 00:51:03 granted that was b4, android, so in context it sucked, but at its time it was amazing. May 22 00:51:12 minus a , May 22 00:51:27 casvah and your Log.d() call isn't being seen there? May 22 00:51:44 t0mless, Nothing inside the checkbox handler works or appears. May 22 00:51:52 casvah also, it helps if you call .show() on your toasts May 22 00:51:59 lol May 22 00:52:06 t0mless, oh yes i also fixed that in my code ;D May 22 00:52:06 heh May 22 00:52:44 casvah are you extending ListView there? May 22 00:53:08 t0mless, ok i now hate myself. I fixed a DIFFERENT toast entirely. May 22 00:53:13 umm...now messages appear. May 22 00:53:19 * casvah is shamed. May 22 00:53:26 ... May 22 00:53:32 did you not check logcat for you log? May 22 00:53:43 there's still nothin in logcat ;D May 22 00:53:57 * Jug6ernaut would die without logcat May 22 00:54:06 last I see in logcat is "Try to set up checkbox listener" May 22 00:54:57 JakeWharton since you're just sitting aorund waiting... May 22 00:55:00 wanna do my layout? :) May 22 00:55:06 i'm working May 22 00:55:14 arg May 22 00:55:14 as i said, sitting around waiting May 22 00:55:16 * Jug6ernaut hates UI's May 22 00:55:21 or making them May 22 00:57:21 how can i install adb in android? May 22 00:58:22 huh? May 22 00:58:35 t0mless, should the getListView().setItemChecked() method make the listview's onItemSelected listener fire? May 22 00:58:42 install the SDK; that installs the 'adb' binary in the tools subdir of wherever you isntalled it May 22 00:59:12 krabador or do you mean have adb client on an android device? May 22 00:59:21 t0mless, yes May 22 00:59:29 have 4.0 or higher May 22 00:59:36 ok .. May 22 00:59:43 Hey guys. May 22 00:59:47 I have a quick question. May 22 01:00:03 I haven't touched much Java code, let alone Android code, and I was wondering about something. May 22 01:00:35 If I make a button in the main.xml file named "myButton," then how do I get that xml button to communicate to the Java code? May 22 01:00:42 Do I just make a new button called myButton or what? May 22 01:00:50 getViewById(R.id.myButton) in your activity May 22 01:00:57 Okay. May 22 01:00:59 Rosenzweig, Button b = (Button) findViewById(R.id.myButton) May 22 01:01:00 which will return a Button object (you have to cast it to Button) May 22 01:01:01 no May 22 01:01:03 heh JF is fast May 22 01:01:03 that is not the answer May 22 01:01:06 at all May 22 01:01:09 findViewById* May 22 01:01:10 the answer is to rtfm May 22 01:01:21 rtfm? May 22 01:01:22 Okay. May 22 01:01:23 I see. May 22 01:01:33 For some reason, I thought you just made a variable named the same thing. May 22 01:01:33 rtfm() ? :) May 22 01:01:35 Pretty stupid. May 22 01:01:37 canadiancow|work: no atfirc? :) May 22 01:01:39 I should be smarter than that. May 22 01:01:46 lol JesusFreke May 22 01:01:50 Okay, so you just said the Button to the id of the xml button. May 22 01:02:10 no, you read the fucking docs May 22 01:02:24 http://developer.android.com/guide/index.html May 22 01:02:25 all of it May 22 01:02:29 I didn't know (Button)findViewbyID(R.id.myButton) was valid syntax though. :) May 22 01:02:33 I've been swamped by exams. May 22 01:02:36 ... May 22 01:02:38 valid syntax? May 22 01:02:38 Give me a break. May 22 01:02:43 I'm making a widget that updates every hour. Should I make it so when the user taps it it updates or opens up the settings? May 22 01:02:47 I'm not very familiar with Java. May 22 01:02:50 why should we give you a break May 22 01:02:55 if youre diving into code and asking here May 22 01:03:00 without reading basic overviews and tutorials May 22 01:03:04 provided on the official developer website May 22 01:03:36 Rosenzweig, http://bit.ly/Khv0nq May 22 01:03:53 no, don't click that May 22 01:03:58 I don't wanna be mean and that's mean May 22 01:04:00 Rosenzweig: being samped just means that you made wrong decisions about your schedule. I've been there before and it sucks. May 22 01:04:04 swamped* May 22 01:04:15 No, exams have nothing to do with scheduling. May 22 01:04:18 I can't schedule an exam. May 22 01:04:18 but the thing to realize is that it's your fault and that no one is gonna bail you out.. May 22 01:04:24 No, they have everything to do with scheduling May 22 01:04:29 you chose the class, you chose when to study May 22 01:04:36 +1 May 22 01:04:57 I have to take these courses. May 22 01:05:00 They're required for my major. May 22 01:05:01 no you don't May 22 01:05:05 school is your choice. May 22 01:05:10 don't expect us to come save you May 22 01:05:39 if you said you were conscripted into the military I might feel a tinge of sympathy. May 22 01:05:46 what was the initial question? May 22 01:06:03 It was a fairly silly one. May 22 01:06:10 Concerning xml. May 22 01:06:22 no actually May 22 01:06:26 it had very little to do with xml May 22 01:06:27 I'm not gonna burn you on it, just curious May 22 01:06:41 Like, how you would get a button in xml to be linked in your java code. May 22 01:06:47 oh ok May 22 01:06:55 and this is for a class? May 22 01:06:58 I had this silly idea that you would just make a button of the same name. May 22 01:07:04 It's just a hobby. May 22 01:07:09 So...can anyone offer up additional google searches I may try for finding an answer to "how do I make a listview fire it's onItemSelectedListener from the onCheckedChangeListener of a checkbox INSIDE of the target listview"? May 22 01:07:09 I mostly do OpenGL code. May 22 01:07:12 I'm out. May 22 01:07:13 Low Assembly stuff. May 22 01:07:27 probably not very well May 22 01:07:30 Everyone got really hostile about it. I'll take my leave now. May 22 01:08:02 canadiancow, so mean May 22 01:08:15 ^ May 22 01:08:39 i have no sympathy for anyone who doesnt rtfm May 22 01:08:49 fair enough May 22 01:09:57 well back to my original question.....I'm making a widget that updates every hour. WouId you prefer it so when the you tap it to update or open up the settings? May 22 01:12:44 Zacharias3690, i personally hate it when widgets open their settings from a tap, unless it's a subzone of the widget May 22 01:13:01 the stock clock widget and calendar widget both open relevant activities May 22 01:13:07 i.e. schedule alarm, and calendar May 22 01:13:16 I'd prefer it do something like that, but not open a preferences scren. May 22 01:13:58 update it is, that's what I was thinking, esp since the settings should only need to be changed once, just wanted a second opinion May 22 01:14:47 oic...I might be using the entirely wrong method... May 22 01:14:59 i agree with readme May 22 01:15:24 when in doubt just copy the other apps :) May 22 01:19:27 so May 22 01:19:30 i've got a listview with items in it May 22 01:19:38 the items are relativelayouts with like 6 views May 22 01:19:55 i wanna register click and longclick, so i set listeners for the items on the listview object May 22 01:20:01 then nothing happens when I click. What do? May 22 01:20:19 you want click/long click on the list row, or the views inside the list row? May 22 01:20:38 i want the entire row to respond to a click on any area enclosed by that row May 22 01:20:58 no need for individual responses, although there is a checkbox and a numberpicker in the list item that I DO want to respond as usual May 22 01:20:58 you using ListActivity? May 22 01:21:13 it's a SherlockFragment i think May 22 01:21:24 yep May 22 01:21:28 sherlockfragment May 22 01:21:39 then you should set onItemClick and onItemLongClick listeners on the listview iteself May 22 01:21:47 or register the listview for context menus May 22 01:21:55 okay, that's what I've done May 22 01:21:59 the first option May 22 01:22:05 however the rows don't respond at all to clicks May 22 01:22:51 you might have to have your list item views set to receive clicks after it's parent May 22 01:23:07 I forget the attribute May 22 01:23:21 oh i think i know what you mean. I remember hearing/reading about that May 22 01:23:51 this would still allow me to activate the checkbox and numberpicker that are in the list item, right? May 22 01:25:06 what callback method on a listview can be used to detect if a checkbox in one of the rows, or the row itself, has been checked? May 22 01:25:28 none, you should set the callback on the checkbox May 22 01:25:49 is it possible to callback onto a fragment? May 22 01:25:53 yes May 22 01:26:00 how is that done? May 22 01:26:00 readme, thanks... May 22 01:26:17 casvah: see Hello, Listview for an example of how to write an adapter where you can set a callback on the checkbox. May 22 01:26:31 the checkbox part you will have to put two and two together for, but it shows you other things that are relevant. May 22 01:26:34 again thanks:) May 22 01:26:51 hi all. i have to develop an android client for proxmox http://pve.proxmox.com/wiki/Main_Page. i'm a complete beginner in android developing, could u suggest me which topics should i cover to start creating something? thanks very much :) May 22 01:26:55 hesperaux: a fragment is just just like any other object. basically just use the observer pattern? May 22 01:27:16 ok May 22 01:27:24 i'll try to figure that out :) May 22 01:27:37 still don't really understand callbacks lol May 22 01:27:59 Does anyone know how I can use adjustResize to push up buttons that I have beneath an edittext on the bottom of my screen so I can click them while typing in the editttext? Thanks May 22 01:28:06 readme you just made my app work :D May 22 01:28:30 at the moment i'm trying to create something simple, like autenthication to a proxmox server and start/stop of virtual machines. May 22 01:28:34 I feel like i'm taking crazy pills here with the adjustResize & adjustPan May 22 01:28:40 hesperaux: you use buttons, right? May 22 01:28:56 of course May 22 01:29:35 looking at the button click mechanisms still doesn't explain what's happening in the parent class though May 22 01:29:51 wtf May 22 01:30:21 that's where i get confused. what role does the parent play in the callback scene? (parent meaning calling object, not inherited parent) May 22 01:30:43 pragma-, wtfbbqmeal even May 22 01:32:29 has anyone ever made Kindle content? What languages must you know to develop on that device? May 22 01:32:55 i think java May 22 01:33:27 zamboni, czechoslovakian (sp?) :D May 22 01:33:33 Kindle Fire is basically Android. I have no idea what the non-Fire Kindles are. May 22 01:33:48 non kindle fires run linux May 22 01:33:48 hesperaux: careful; Slovakia and the Czech Republic are different countries now :) May 22 01:33:59 ctate, good to know May 22 01:35:14 hesperaux? May 22 01:35:18 hesperaux: "now" meaning "since 1993". you're pretty out of date. :) May 22 01:35:29 yea i was about to say May 22 01:35:38 i dont think i had entered grade school before they became separate May 22 01:35:39 I'm Canadian, zamboni is a machine that resurfaces ice :D May 22 01:36:00 that's probably where you got czech from :P May 22 01:36:03 o/~ once i was the king of spain... o/~ May 22 01:36:10 ctate, wow, i was 4 years old when that happened! lol May 22 01:36:17 hesperaux: exactly :) May 22 01:36:25 zambonis are awesome. I know someone who drives one like a boss May 22 01:36:35 if I have a layout in xml that uses a my.package.LinearLayout which is a subclass of LinearLayout, will methods in it be useable if I pass the R.layout.myControl id to a SimpleCursorAdapter or do I have to manually instantiate it? May 22 01:36:57 bobsonator: I used adjustResize in an app May 22 01:37:06 bobsonator: it doesn't push up buttons, it resizes the whole screen May 22 01:37:32 you can wrap the layout in a scrollview and allow the user to scroll while the IME is up May 22 01:37:48 I've decided to learn programming May 22 01:37:53 why does my java book not have callback in the index or contents?! D:< May 22 01:37:54 after 10 years of procrastination May 22 01:38:09 I'll start with PHP me thinks May 22 01:38:13 hesperaux: event driven programming is kind of an intermediate topic. May 22 01:38:23 best way to learn it is by using a UI toolkit like the one provided with android May 22 01:38:25 readme: do you suggest I wrap the layout I want to be displayed only @ the bottom of the screen in the scrollview? May 22 01:38:36 this book was supposed to cover basic java and advanced data structures D: May 22 01:39:01 bobsonator: so do you want like an absolutely positioned element, i.e. always at the bottom no matter what size? May 22 01:39:15 i'm retarded. i was looking at the glossary not the index May 22 01:39:19 hesperaux: right, callbacks and event driven programming aren't part of those topics. May 22 01:39:24 but maybe it's in there May 22 01:39:40 [21:35:52] <@ctate> o/~ once i was the king of spain... o/~ May 22 01:39:43 how do you even know that song! May 22 01:39:43 readme: it's a few buttons beneath the editText that I want to be displayed at the top of the softkeyboard when typing May 22 01:39:46 i'll be sad if it's not. lol May 22 01:39:53 http://www.youtube.com/watch?v=YtPkDhM1Brs May 22 01:40:07 bobsonator: try adjustPan? May 22 01:40:10 hey ctate, too late for a music monday post? ;) May 22 01:40:27 that is the one indeed May 22 01:40:33 maybe wrapping those in a layout, setting focus on that, and using adjust pan will work, no idea. May 22 01:40:45 canadiancow: today's #musicmonday has been K-pop May 22 01:40:45 ctate they are like the most obscure popular canadian group May 22 01:40:46 i would probably make it so the buttons are *above* the EditText May 22 01:40:51 that's the easy way out. May 22 01:41:20 i like the comment on that youtube vid though "Was this filmed with a calculator?" May 22 01:41:27 I know but I don't want to surrender just yet, & I am using adjust pan :) May 22 01:42:34 awesome music for coding: http://www.youtube.com/watch?v=q0YS0cBJzyA May 22 01:43:42 readme, it's got a chapter on GUI, which contains event stuff and listeners and what not May 22 01:45:41 hesperaux: basically the callbacks are triggered in an event queue on the UI thread. when you push a button it pops a runnable onto a queue that gets executed synchronously with all the other events. May 22 01:46:37 if you want your own callback, you simply say: give me an object, and later I'll call a method on that for you May 22 01:48:13 what can make an actionmode stick around without any buttons after you press the 'done' key or the 'back' button? May 22 01:48:36 how does the activity know to execute the callback function that is within an object linked to a button inside the activity? <--worst wording ever May 22 01:48:56 I want to have a long-running service so I'm using startForeground, but I don't want the notification icon to appear. I don't want android to kill the service, but I don't want the notification icon either... what's the way to achieve this? May 22 01:50:42 from what i saw on the google I/O video i watched today, callbacks are pushed into the looper and then sent to activities. so the activity gets all the events first May 22 01:52:15 hesperaux, my understanding is that parent views always get a chance to handle something before its children. If it doesn't handle it, it passes it to the children. May 22 01:52:55 hmm May 22 01:53:22 and if no children handle the event, it gets pushed into the void? May 22 01:54:16 Whee! Actionmodes ftw! May 22 01:54:21 hesperaux, far as I know, yes May 22 01:54:26 alright May 22 01:55:10 then how is it that it insures a certain listener class is receptive to an event? May 22 01:57:35 hesperaux certain listeners return a boolean on if the event has been handled May 22 01:58:11 hesperaux: well the first thing that happens in the pipeline is that the screen has to know I touched it May 22 01:58:46 I know nothing about the hardware, but lets assume that somehow gives some code that's watching the hardware an x,y coordinate. May 22 01:59:13 then you've got a bunch of views, presumably that are stacked on top of each other and you've got an x,y coordinate. So it's up to the UI system to decide what view is going to receive a notification May 22 01:59:28 this is stuff you don't really need to know to understand callbacks or use them May 22 01:59:50 i think it'd help me though May 22 01:59:55 UTSL May 22 02:01:38 try making your own button on a canvas or in GL May 22 02:02:01 =S May 22 02:02:09 i'd get lost in the other learning curves May 22 02:02:21 dude it's dead simple,i'll explain May 22 02:02:40 a button has bounds, left, top, right, bottom. you get a callback onTouch for the screen May 22 02:02:51 when you get the touch, if it was within the bounds, the button was pressed. May 22 02:03:15 then you can call your onPressedListener that you made up May 22 02:04:22 you could just write a wrapper around that. you "register" the buttons, and that class would check the all registered buttons and see who got clicked and execute the right action May 22 02:04:29 wait, so the activity receives a touch event of some kind and calls onTouch() or equivalent, on all of its objects? this was predestined by the android gods? and what I have to do is override that function? that would make sense... May 22 02:04:56 there is an onTouch event for every view, but if you want to know how onClick is implemented you should check the source May 22 02:05:00 never thought of that (never used openGL on android...wait, havent used opengl since university) May 22 02:05:02 I was just giving you a theoretical way to implement one. May 22 02:08:35 so, on a somewhat haughty and ranty note May 22 02:08:55 I checked out the apps-for-android git today May 22 02:10:59 chris pruett sure sounds like robert downey junior May 22 02:11:13 but he codes like robert downey syndrome May 22 02:13:39 SpriteMethodTest is a brilliant exercise in stripping down needlessly complicated code May 22 02:14:53 like, his method for avoiding a hashmap for texture/resource ids is more complicated than just implementing the hashmap May 22 02:15:04 and then includes detailed comments about how a "real app" would use a hashmap May 22 02:15:52 google really needs to offer some more legitimate opengl examples than replica island May 22 02:16:15 and these pisspoor app examples May 22 02:16:21 May 22 02:30:08 Okay so I'm porting AOSP to my phone and have been attempting it for about a week. Was wondering if I could get some pointers and maybe a little help to get me going in the right direction. May 22 02:30:25 hi May 22 02:32:36 Lol anyone? May 22 02:33:00 *the sound of air passing through its fastest curves of descent* May 22 02:33:26 Contingency: what about saying what kind of problems you're having instead of asking if you can ask? May 22 02:33:52 Fair enough lol May 22 02:33:53 hi May 22 02:34:23 I'm porting AOSP to my SGH-I777 (AT&T Samsung Galaxy SII). May 22 02:34:36 i'm trying to call to three number phone but just dial, why? May 22 02:36:06 Ive attempted maguro but not sure if I'm going the right way with this. I cant get it passed the splash screen to even attempt to logcat it May 22 02:39:31 well, you wanna see what's behind the splash screen. it's most probably kernel panicking at some point because of driver incompatibility May 22 02:39:47 Contingency: this channel isn't really about custom roms, it's about app development. You'll have better luck in #android-root, #android, #cyanogenmod, etc. May 22 02:40:19 Lol everyone keeps sending me in a circle. May 22 02:40:27 they actually told you to come here? May 22 02:40:32 yes/ May 22 02:40:34 crackheads May 22 02:40:42 lol May 22 02:40:45 problem with porting to different hardwares is that it's normally more of a linux problem than an android problem May 22 02:40:59 #android-root or #cyanogenmod would be best May 22 02:41:07 Okay I"ll go try those thanks guys May 22 02:41:42 Dalla joined there too May 22 02:46:17 Lol damn all these rooms hate me. May 22 02:47:11 i keep finding distractions keeping me from learning about fragments... grrrr May 22 02:52:21 I'm refactoring something I wrote and it's boring :| May 22 02:52:38 refactoring your own code just doesn't give you the same satisfaction as someone else's. May 22 02:52:53 more like the sting of wtf I didn't do it right the first time. May 22 02:53:41 i'm trying to call to three number phone but just dial, why? May 22 02:56:10 ? May 22 02:56:20 more information required for answer. May 22 02:58:51 SMlLe: you have to the number then just dial and three **** ENDING LOGGING AT Tue May 22 02:59:58 2012