**** BEGIN LOGGING AT Tue Apr 17 03:00:00 2012 Apr 17 03:00:02 k :) Apr 17 03:00:11 you too Apr 17 03:00:55 MasterZuFu: i understand it goes on and most young women are prostitues. if you are from america and it is a npo there are moneys out there to help u do this Apr 17 03:01:28 npo = ? Apr 17 03:01:42 non profit org Apr 17 03:02:13 ah ok. Apr 17 03:02:47 I know, I'm trying to find supporters on this app, and another bigger app I've got in mind that I'd like to discuss the functionality of here if you don't mind. :) Apr 17 03:02:54 churches peace corp red cross etc.. its about writing a formal letter to ask for moneys to run the server and app devel. Apr 17 03:03:15 thats what this channel is for Apr 17 03:03:25 oh i remember that movie Apr 17 03:03:45 what movie Apr 17 03:04:01 this describes exactly what this other app is and what I want to do with it: https://www.facebook.com/SlaveReport/posts/402285449790586 Apr 17 03:04:04 how would I make a SeekBar only move in specific increments? Apr 17 03:04:10 but I'm just not 100% sure it's feesable Apr 17 03:04:50 dominicdinada: Taken, i just read the link MasterZuFu gave Apr 17 03:05:05 i love that movie Apr 17 03:05:12 yeah i should watch it again Apr 17 03:05:27 hes bad ass and beats that dude at the airport senseless Apr 17 03:05:41 ihave it Apr 17 03:06:04 MasterZuFu: do you have a similar personal involvement like in the movie? Apr 17 03:06:19 It's a very good movie. well made, very well acted. and tells the truth about human trafficking in reality. It's actually much worse than they depicted. Apr 17 03:06:31 unfortunately Liam Neeson isn't available to kick butt in real life. Apr 17 03:06:42 that link is possible MasterZuFu it is about securing moneys to have it done and research the npo's that deal with this specific area and make sure in the app you have a donate button to the charity Apr 17 03:06:54 if u have a charity offer them a split of the proceeds Apr 17 03:07:02 i like the idea of the live reporting app, and i think i remember i read that something like that already exists Apr 17 03:08:02 The only involvement I have is trying to make human trafficking more public and giving victims a way of escape that they never really had. it's a small chance someone could actually get saved, and that's worth more than a silly android app. Apr 17 03:08:20 but think about it, they would immediately take away your mobile phone, you dont have the time to start up an app and press a button Apr 17 03:08:44 soroc: i thought those were child trackers ?.... or i think theres apps like a droid fence app if the person goes outside of a gps fence it is triggered to report the location same concept really Apr 17 03:08:47 yeah, that's what I'm shooting for. i'm gonna have to make this first app though, before i can make the second Apr 17 03:08:52 it should be something like a background service that constantly listens and spots voice commands and then triggers the reporting Apr 17 03:09:21 like "help i am being abducted!" with voice recognition, it would put significant load on the device and battery though if it has to constantly voice recognize Apr 17 03:09:34 but it is technically possible Apr 17 03:09:41 just the battery would be a real problem i guess Apr 17 03:09:49 yeah that's something I'd have to really think more on. Apr 17 03:10:03 MasterZuFu: if you go it alone the websites given to you are your best bet. and if you want to take the time to knock on the doors of big NPO's they will give moneys to do this project providered u make an offer they cant refuse Apr 17 03:10:15 i'm thinking the situation like, let's say they don't get the phone right off the bat, the person might have a chance later to open it and hit the button. Apr 17 03:10:21 dominicdinada: ah yeah child trackers i guess Apr 17 03:11:09 even if there is no "App" all cell phones are tracked via the triangulation method on the cell towers to give a rough idea Apr 17 03:11:56 dominicdinada: true, authorities can track the phone without that Apr 17 03:11:58 tried some tweaks i found on web, but still didnt manage to make listview, refresh automatically, as the ArrayList of its adapter, changes! Apr 17 03:12:47 soroc: most commonly used in murder cases but its funny because kidnapping carries the same charge life in prison Apr 17 03:12:50 MasterZuFu: i would rather install a kind of background service you can remotely connect to with a password and then request all the geolocation data and possibly swtich on the mic and listen to the kidnappers Apr 17 03:13:40 dominicdinada: yeah. but then, kidnappers are probably not idiots and for that reason throw away the phone immediately so not even the background service would work Apr 17 03:14:02 you really need to trigger the reporting in the short time frame you have Apr 17 03:14:08 like 2 seconds Apr 17 03:14:11 soroc: exactly Apr 17 03:14:14 assuming a kidnapper is smart enough to wear gloves when throwing away a phone, it still gives a gps signal, and can be finger print traced. Apr 17 03:14:19 it's better than nothing. Apr 17 03:14:39 so it must be something that doesnt require you to unlock the phone, start up an app, wait till it is loaded, press a button. it must be faster somehow Apr 17 03:14:40 soroc: well chomo's arent very smart they just had a thing on 60 mins yesterday about this very topic Apr 17 03:14:48 child kidnappers Apr 17 03:15:00 maybe you can use a bluetooth enabled panic gadget with a red button Apr 17 03:15:16 and the app is constantly running and even if the attackers take it away you can still trigger it via bluetooth Apr 17 03:15:27 yeah but how many people are gonna buy a panic button *just in case*? Apr 17 03:15:28 that probably earns you several minutes or more Apr 17 03:16:00 still, i dont think an app you have to start up is realistic at all Apr 17 03:16:05 MasterZuFu: Amber Alert.... might be a starting point to pitch for help Apr 17 03:16:07 i think you're right. Apr 17 03:16:10 who ever runs that Apr 17 03:16:14 you simply dont have the time and they immiediately take away the phone if you see you with it Apr 17 03:16:42 and have your app get up to the min alerts via push notifications to the people in the area the alert is issues Apr 17 03:16:46 issued Apr 17 03:16:56 a bluetooth enabled necklase or something would be far less suspicious and give you more time because they probably dont throw it away where they caught you anyway but drive around for a while and throw it into a sea or something Apr 17 03:16:58 should give it like the functionality to do this: when you press the power button, it listens to your voice, and you can say a key phrase or something Apr 17 03:17:00 necklace* Apr 17 03:17:08 entirely seamless and turns off when the phone is unlocked. Apr 17 03:17:56 MasterZuFu: that is also an alternative, but not sure you can override the power button event in android Apr 17 03:17:56 MasterZuFu: u saw my msg ? Apr 17 03:18:02 it's really gotta be something that works with the phone and only the phone. no one is going to buy a necklace just for this. maybe for their kid, but some teenager partying at a club, not Apr 17 03:18:16 dom, about amber alert? yeah, i'm looking it up right now. Apr 17 03:18:36 Check with the foundation that runs amber alert also John Walsh of americas most wanted started a foundation because of his son who was kidnapped Apr 17 03:18:46 so start knocking down doors :) Apr 17 03:19:02 i'll check both of those out :) Apr 17 03:19:25 and if they turn u down ask who you should check with Apr 17 03:19:40 sounds like a good plan. Apr 17 03:20:02 dont forget and i hope i dont get tar and feathered but a port to the ifone Apr 17 03:20:52 already on that ;) Apr 17 03:20:59 i thnk dominicdinada just said iphone, pitifully veiled Apr 17 03:21:19 soroc: :/ i know cursed apple Apr 17 03:21:22 I THINK DOMINICDINADA JUST SAID IPHONE Apr 17 03:21:28 lol Apr 17 03:21:31 :O Apr 17 03:21:45 called amber alert from the number on their site, hey said to contact grants.gov for grants. Apr 17 03:21:48 so i'll check there Apr 17 03:21:58 you already called them? Apr 17 03:22:06 yeah why not Apr 17 03:22:11 yeah cool Apr 17 03:22:17 MasterZuFu: you might have to hire a profession grant writer for a gov grant Apr 17 03:22:24 :S Apr 17 03:22:25 or call during business hours also Apr 17 03:22:45 trueness Apr 17 03:22:49 u can always goto the library and check out the grant writting for dummies book Apr 17 03:23:16 but even still a grant writer may do probono work Apr 17 03:24:00 after all any non profit/ charity work is a tax write off you just need to remind them of that Apr 17 03:24:35 how's this? http://www.grants.gov/search/search.do;jsessionid=PG58PMvJqJ2Nm02mZLCxvZQnkXmwNFyzHhh3HtLhLsxdtpXQLhMP!712472910?oppId=156573&mode=VIEW Apr 17 03:25:15 thats why home make over always gets free crap from sears and big name stores its a tax write off for one and second it plugs the store 2 ways as a giving corp. and gets their name out there Apr 17 03:25:56 repost it please i clicked close on accident Apr 17 03:26:06 http://www.grants.gov/search/search.do;jsessionid=PG58PMvJqJ2Nm02mZLCxvZQnkXmwNFyzHhh3HtLhLsxdtpXQLhMP!712472910?oppId=156573&mode=VIEW Apr 17 03:26:53 how stupid they are they put the session id in the url Apr 17 03:27:06 pretty dumb it looks like Apr 17 03:27:06 lol Apr 17 03:27:15 session kidnapped! Apr 17 03:27:18 omg cain and abel would love that XD Apr 17 03:27:23 (;)) Apr 17 03:28:12 but the top grant is 25k to run the servers and pay for development. But the thing with gov grants it takes time...... and they want a very professional proposal. not a 8th grade english paper Apr 17 03:28:32 gov grants are looked over with a microscope Apr 17 03:28:35 yeah, true. Apr 17 03:28:40 and felons cant get them Apr 17 03:28:48 esp those with drug charges Apr 17 03:28:50 i'm active duty military, i should be ok. Apr 17 03:28:52 lol Apr 17 03:29:02 lol Apr 17 03:30:53 MasterZuFu: that works to your advantage in all the endevours of securing money for this project Apr 17 03:31:25 unfortunately, as an active duty military member, I can't become a public figure for anything. Apr 17 03:31:33 i can get court martialed very quickly Apr 17 03:31:33 MasterZuFu: you may need to register a business for this listed as a NPO in order to secure it. Apr 17 03:31:39 as long as I'm not the front man I think I'll be ok Apr 17 03:32:03 how is public figure defined? Apr 17 03:32:12 in many states to register a business it costs under 200$ in mine it costed 125$ to get my fein, tax id and business id Apr 17 03:32:18 i can't publically support any polotician Apr 17 03:32:21 not political position Apr 17 03:32:23 oh i see Apr 17 03:32:28 I can't be a public figure in a protest Apr 17 03:32:39 I can't use my rank or military position in any of it Apr 17 03:33:25 hopefully you walk away from this talk with a goal and direction. but like i said there are plenty of orgs willing to help Apr 17 03:33:48 thanks :) Apr 17 03:34:06 * dominicdinada could use 25,000$ Apr 17 03:34:08 :P Apr 17 03:34:20 Anyone else get bluescreens developing on win7x64 in Eclipse with a 2.2 emulator running? Apr 17 03:34:25 it is actually pretty sad that all the technology is already in everybody's pockets and still the time frame is too short to actually use it reliably Apr 17 03:34:40 culmor30: probably not an eclipse/android issue Apr 17 03:34:41 i think you can hardly assume more than 2 seconds Apr 17 03:34:53 culmor30, check your ram and your graphics card. usuallythat's the best thing for a high intensive app like eclipse Apr 17 03:34:57 culmor30: what bluescreen message do you get? Apr 17 03:35:06 so a bluetooth gadget would be better Apr 17 03:35:15 readme: Forgot. Happened twice now, but I'll remember to look next time Apr 17 03:35:15 soroc: ya not everybody is an ex cia dad like in taken ;) Apr 17 03:35:17 but people wont buy and carry those around anyway Apr 17 03:35:26 I was too busy going "god damn it, seriously?" Apr 17 03:35:27 hehe yeah dominicdinada Apr 17 03:36:12 but the amber alert has made strides in stopping kidnappers from disappearing for good Apr 17 03:36:24 soroc: if we could get the state department to grant this or something like that, i'm sure they could make a little security bluetooth devicelike that. Apr 17 03:36:44 MasterZuFu: yeah but people would still not carry it around i guess, too lazy Apr 17 03:36:49 i probably wouldnt Apr 17 03:36:53 or would lose it Apr 17 03:36:54 i remember a couple of years back some girl who was kidnapped for 15 years was discovered Apr 17 03:36:55 it's just that, i know fo rme, I'd feel like I'm old or something having a little health button on me in case I fall down and break my hip Apr 17 03:37:09 lol yes Apr 17 03:37:11 MasterZuFu: that would be something you would write into the grant Apr 17 03:37:15 I do have a question for you though readme, since you seem to be quite knowledgeable about these things. Apr 17 03:37:46 yeah Apr 17 03:38:04 culmor30: I still say you need to check your graphics card or your ram ;) Apr 17 03:38:08 25k is alot and even still makers of gadgets if you pitch right will give.... bc its a tax write off Apr 17 03:38:29 those two are the biggest causes to bsods when using high intensive apps in windows Apr 17 03:38:53 i think this will solve itself in the next decade anyway when everybody will get implants instead of smartphones and the surveillance state will be perfected to capture every piece of information available and store it in huge databases Apr 17 03:39:00 win 64 blows Apr 17 03:39:13 a bsod is due to a problem with IRQ errors, most of the time, but when a system is causing an overload on the video card or ram cards. Apr 17 03:39:27 bsod is windows' way of saving itself from total destruction. lol Apr 17 03:39:29 Memory: 2.85 / 6GB used. GPU: 57Celsius @ 300MHz Apr 17 03:39:46 57? Apr 17 03:39:47 MasterZuFu: dont you think everybody will get implants anyways? Apr 17 03:39:50 that's freaking hot... Apr 17 03:39:50 android emulator, eclipse, firefox running Apr 17 03:39:56 Is laptop Apr 17 03:40:02 cool that laptop down... Apr 17 03:40:06 it's overheating. Apr 17 03:40:08 Only got one fan Apr 17 03:40:12 .... Apr 17 03:40:13 mobile phones will shrink further to become the size of a grain of rice or the like Apr 17 03:40:16 my laptops 64bit and 32bit 2 gig of ram never bsod Apr 17 03:40:23 It's not. It can do 90 and stay up for quite a while Apr 17 03:40:31 then they can be easily injected under the skin with a syringe Apr 17 03:40:32 eh ok. Apr 17 03:40:33 4 laptops well 3 and a netbook here Apr 17 03:40:48 i have a 16 gb ram on my desktop ;) Apr 17 03:40:48 and the interface will be your brain Apr 17 03:40:48 lol Apr 17 03:40:49 all but one i devel on Apr 17 03:40:55 nice :) Apr 17 03:41:01 it will directly project thoughts and pictures and sounds into your brain Apr 17 03:41:05 I do need a better computer soon though. Apr 17 03:41:07 the most i have on any pc is 2gig :( Apr 17 03:41:12 no need for android UI and screens etc Apr 17 03:41:14 soroc: once that happens there might as well be no such thing as human trafficking because you'll be owned by the government already. Apr 17 03:41:19 but i got dualcore xeon servers :) Apr 17 03:41:23 2 of them Apr 17 03:41:32 nice Apr 17 03:41:32 MasterZuFu: haha yes, then all "citizens" are actually "employees" Apr 17 03:41:34 or slaves Apr 17 03:41:48 it's pretty much like that already. Apr 17 03:41:55 readme: I've got my AsyncTask surviving orientation changes finally, dialog and all. However, if the user hits back on SearchResultsActivity (to return to the search activity), the search button doesn't work because public CourseSearchActivity activity is not null Apr 17 03:41:56 they are older though cost 4,000$ new now the memory is worth its weight in gold Apr 17 03:41:57 anyone who thinks they have 'freedom' in america is a fool. Apr 17 03:42:23 MasterZuFu: but you are a state servant, are you allowed to think that? Apr 17 03:42:34 ^^^^ Apr 17 03:42:52 i honor anybody who serves our country in the armed forces Apr 17 03:42:54 Someone told me I need to "bring that activity to the top", but I don't know what that means Apr 17 03:42:56 culmor30: I've not used the search apis. Maybe someone else can help. Apr 17 03:43:16 im trying to install ADT in eclipse using the Help->Instal New software feature, but it just hangs forever Apr 17 03:43:31 There's no search api. Just a normal asynctask with some stuff I've written Apr 17 03:43:44 mahamoti: Try using http://path instead of https:// Apr 17 03:43:58 thats notit Apr 17 03:44:16 MasterZuFu: i like that you like freedom and say it though Apr 17 03:44:17 mahamoti: Alternatively, give it like 10 minutes because it took forever for me, too Apr 17 03:44:22 after about 3 minutes of waiing it finally goes form Pending to Developer tools, but then on Calculating requirements and dependencies, it hangs forever Apr 17 03:44:28 Yup Apr 17 03:44:41 I'm trying to create a custom dialog, but when I call showDialog() it throws a WindowManager.BadTokenException Apr 17 03:44:48 the progress bar doesnt even move Apr 17 03:44:53 what usually causes this? Apr 17 03:44:54 soroc, I can promise you that if my freedom were threatened directly and there was a revolution in this country I'm fighting AGAINST the government. Apr 17 03:45:32 MasterZuFu, oh that does it...youre on the watchlist now. Apr 17 03:45:33 i like that, the founding fathers would also like that Apr 17 03:45:50 the constitution is all about freedom Apr 17 03:45:54 or if terrorist sleepers come alive most americans will take care of it Apr 17 03:45:59 Ginto8: what's the context (and Context?) Apr 17 03:46:03 Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 18.0.0.v201203301601-306762 (com.android.ide.eclipse.adt.feature.group 18.0.0.v201203301601-306762) Apr 17 03:46:08 thats the error i get.. Apr 17 03:46:12 what i dont get is why on 911 only one flight the passangers faught back Apr 17 03:46:16 okay, again... please don't discuss USian politics or crap like that here Apr 17 03:46:19 with box cutters really Apr 17 03:46:26 sorry leeds Apr 17 03:47:10 mahamoti: Are you on linux? Apr 17 03:47:20 I like Leeds :). He makes my puppies meow. Apr 17 03:47:21 windows Apr 17 03:47:48 mahamoti: Try these steps: https://developers.google.com/eclipse/docs/faq?hl=sv-SE#wstinstallerror Apr 17 03:48:22 Leeds, I have a LinearLayout. I initialize my dialog by new Dialog(getApplicationContext()), and I return it in onCreateDialog. When I call showDialog(), I get "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application" Apr 17 03:48:52 alright guys, I think I got enough info for now. i am going t sleep Apr 17 03:49:03 and I'll be dreaming of your Leeds ;) you sexy sexy man ;) Apr 17 03:49:48 take care MasterZuFu Apr 17 03:50:09 later Apr 17 03:50:39 Ginto8: tried using the Activity Context instead? Apr 17 03:50:40 ooh there are stackoverflow threads about it Apr 17 03:50:53 JDK download link is broken: http://www.oracle.com/technetwork/java/javase/downloads/index.html Apr 17 03:50:54 I can't say I have Apr 17 03:51:36 Leeds, what would I have to do to get the Activity Context? Apr 17 03:52:11 An activity is a context, so you can pass "this" from within your activity as the context Apr 17 03:52:12 Ginto8: given that Activity inherits from Context... just cast it Apr 17 03:52:19 getBaseContext()? Apr 17 03:52:22 or in fact, don't even bother doing that Apr 17 03:52:23 oh god Apr 17 03:52:25 here we go Apr 17 03:52:27 oh really? Apr 17 03:52:27 last night continued Apr 17 03:52:36 that makes a lot more sense than what I was doing xD Apr 17 03:52:39 ron_frow_: bringing up your booze again? Apr 17 03:52:39 thanks guys Apr 17 03:52:45 no Apr 17 03:52:51 but I probably should drink Apr 17 03:53:03 ron_frow_, am I driving you to drink? Apr 17 03:53:08 no no Apr 17 03:53:10 you cast when you go down, not up - right? /me never really bothered learning actual Java syntax :) Apr 17 03:53:11 work is Apr 17 03:53:55 Leeds, you cast when you de-polymorph it Apr 17 03:53:59 so down Apr 17 03:54:15 Ginto8: right... Apr 17 03:54:52 Not sure if Java, or World of Warcraft discussion... Apr 17 03:54:57 anyway, Activity is a Context, and as a general principle you want to use a more specific context (an Activity, the Context passed into a BroadcastReceiver, etc.) rather than the ApplicationContext - when you can Apr 17 03:55:18 okay, thanks Apr 17 04:06:32 culmor30: I lol'd Apr 17 04:06:51 Oh yay, someone got it :D Apr 17 04:07:17 i didnt Apr 17 04:07:31 http://www.wowwiki.com/Polymorph Apr 17 04:10:47 I've got a question about lifecycles. I have one activity, A, which runs a task and then starts activity B. Activity A remembers whether its task has run, starting a new one if not. This is great until the user runs the task once, gets to activity B, then returns to A. Now the task can't be started again. How can I fix this? Apr 17 04:11:18 I've tried setting the reference to the task to null in onResume, but then I can't change orientation while the task is running Apr 17 04:15:15 Oh, maybe when activity B is reached, I can change a static boolean to say "hey that task finished, now you can do another one" Apr 17 04:16:02 Well I guess it would say something more like "true", but you get the idea ;p Apr 17 04:16:04 are you explicitly trying to do something when B is finished and you return to a *from B*? Apr 17 04:16:41 No. If A is returned to from B, the instance of B can be discarded Apr 17 04:17:08 A is a search screen, B will be a search results page Apr 17 04:17:14 I want to be able to run the search again Apr 17 04:17:30 what is stopping the search from running again? Apr 17 04:17:52 culmor30: Technically, an Activity not on screen can be killed at any time. Services are what are somewhat permanent. Apr 17 04:18:31 Not a terribly big deal if A is killed while on B, but as it is most recent in the background stack, am I correct in assuming that it will *usually* be there? Apr 17 04:18:42 the same instance, that is Apr 17 04:18:56 culmor30: Whenever I have dependencies on Activity interaction, I have a Service remember them. Technically, the Android system can kill off an off-screen Activity at almost any time if it runs out of memory or whatever. Apr 17 04:19:26 I don't need to do that for this step. A few more days into this project and I'll need to look into services though. Apr 17 04:21:12 hey, PHP, do you think maybe when I try to read the value of a variable which doesn't exist, maybe it's a typo and you shouldn't silently use a null/empty/0 value? Apr 17 04:22:13 Hey, android emulator, do you think maybe when I try to switch you into airplane mode and it actually doesn't work, maybe it's a big deal when writing an application which uses the Internet and you should let me know about that? Apr 17 04:22:50 The interface *appears* to be disabled, and even the browser says "can't load this page", but it works just fine when you dismiss the message :| Apr 17 04:23:50 I spent an hour debugging a nonexistent problem. I realized the issue only by testing it on a physical device. Apr 17 04:32:44 i cant believe I'm posting a craigslist add offering to pay someone to figure out how to get android SDK installed in eclipse :( Apr 17 04:33:31 neither can I... but then I don't use eclipse Apr 17 04:33:46 you do have the right version of eclipse and the newest version of the SDK? Apr 17 04:34:32 eclipse 3.6.2 or better, Sun/Oracle JDK 6? Apr 17 04:34:46 i just installed fresh latest JDK, and eclipse classic, and android SDK, downloaded android platform, tried to install ADT plugin in eclipse..and it fails. Apr 17 04:35:00 everything is latest version. i tried for both x64 and then went bak and tried for x86. Apr 17 04:35:20 android:minEms ... what the hell is an Em? Apr 17 04:35:20 latest JDK means 7 or 6? Apr 17 04:35:24 :P Apr 17 04:35:40 Ginto8: a measure of the width of a font - in general, "m" is the widest character in a proportional-width font Apr 17 04:35:52 er, the width of a space for text to go in, rather Apr 17 04:36:03 jdk 7u3 Apr 17 04:36:05 Eclipse classic didn't work for me. I got Eclipse for Java Developers and it worked fine, try that? Apr 17 04:36:11 mahamoti: I said 6, not 7 Apr 17 04:36:14 ohh ok Apr 17 04:36:20 eclipse 3.7.2 Apr 17 04:36:56 the SDK page explicitly says 6 - I don't know if that means that 7 doesn't work, but you're not meeting the system requirements Apr 17 04:37:07 http://developer.android.com/sdk/requirements.html Apr 17 04:37:18 culmor30, downloading.. Apr 17 04:37:50 Leedds, they dont even offer a download link for the old versions Apr 17 04:38:40 mahamoti: so if you go to http://www.oracle.com/technetwork/java/javase/downloads/index.html it doesn't say "Java SE 6 Update 31" partway down the page? Apr 17 04:39:10 which leads to http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html ? Apr 17 04:39:16 which has download links? Apr 17 04:39:41 ok it is there Apr 17 04:40:46 PEBKAC... Apr 17 04:40:49 how would you guys implement a task that runs every few seconds and is short-lived enough to run on the ui thread? Apr 17 04:41:32 jeppy_: handler? Apr 17 04:42:07 Leeds: you dont seem too confident? Apr 17 04:42:28 not my area of expertise, to be honest Apr 17 04:42:46 the other way would be an asynctask, but it's probably heavier than you need Apr 17 04:43:02 why not put it on a background thread? Apr 17 04:43:53 async is fine but -- well i guess i could just have it sleep for 2 seconds or whatever between runs Apr 17 04:45:06 i think that will work out Apr 17 04:45:11 yep Apr 17 04:45:11 ah, maybe I misunderstood that you *wanted* it to run on the UI thread - do you mean it can run on another thread, but it's quick enough that you don't think it has to? Apr 17 04:45:44 just because you can get away with putting it on the UI thread without too much user bitching doesn't mean you should :P Apr 17 04:46:10 it doesnt have to run on another thread, but if it does i can have that thread sleep in a loop and update my few fields that way Apr 17 04:46:45 jeppy_: use publishProgress method of AsyncTask and you can keep looping in doInBackground as long as you want. Apr 17 04:46:59 readme: that's the plan :) Apr 17 04:48:03 I am about to make a list, then I'm going to post my app on every single app market that exists. Apr 17 04:48:08 anyone know of a pinned header list view that doesn't suck? Apr 17 04:48:54 readme: You asked what's stopping the search from running again and I never answered. It's because activity A's reference to its task is not null after it has run, and so a new task can't be created until the static reference is destroyed (with a force stop) Apr 17 04:48:55 JakeWharton: cant you just use your own view as a header? Apr 17 04:49:19 item header Apr 17 04:49:21 not listview header Apr 17 04:49:28 that pins to the top while scrolling Apr 17 04:49:52 culmor30: cancel the task? Apr 17 04:49:58 i thought listview has a method to support that Apr 17 04:50:09 no, not even remotely close Apr 17 04:50:27 readme: Should I be stopping it? I just start a new activity when it's finished Apr 17 04:51:45 culmor30: i don't have a crystal ball Apr 17 04:51:55 post whole code or something and annotate the issue Apr 17 04:52:14 I mean, are tasks meant/able to be stopped/dismissed? Apr 17 04:52:21 yes, they are. Apr 17 04:52:27 destroying references to them? that would be a nice thing Apr 17 04:53:09 Oh. I fixed it somehow. Apr 17 04:53:11 if you want to lose a reference to an object, all you need to do is set it to null or point at a different object. Apr 17 04:54:16 I was just wondering if there was a standard, "AsyncTask, go away now, I am finished with you" command Apr 17 04:54:26 cancel Apr 17 04:55:25 When starting an activity, is there a way I can pass some parameters to it? Apr 17 04:55:39 Like, a link to the AsyncTask, so I can call cancel? Apr 17 04:56:02 your code is now starting to sound like spaghetti Apr 17 04:56:20 if you are going to interact with the AsyncTask from more than one activity, it should be in a Service Apr 17 04:56:35 Ah, okay. I don't need to after all, was just asking for reference Apr 17 04:56:43 you can reference anything from anywhere Apr 17 04:56:52 it's a matter of whether it makes sense to do so Apr 17 04:57:01 My fix was working, I only forgot to put super.onResume(); in my onResume override Apr 17 04:57:18 Just like I always forget to put .show(); at the end of a Toast Apr 17 04:58:24 Thanks for the help though. Now I can move on. Apr 17 04:59:26 JakeWharton: http://www.youtube.com/watch?v=wDBM6wVEO70 @ 26:12 Apr 17 05:00:22 those are single headers and footers Apr 17 05:01:09 and they only show up at the very start and the very end Apr 17 05:01:11 i thought that's what you wanted. You want a listview as a header? Apr 17 05:01:24 mahamoti: ADT all working now? Apr 17 05:01:49 I want multiple headers that each pin to the top of their section while scrolling Apr 17 05:02:11 ah Apr 17 05:02:29 I found three implementations, they all were overly convoluted or under-engineered :( Apr 17 05:03:14 it doesn't seem like that'd really be a listview Apr 17 05:03:32 like it would take a ton of customizing Apr 17 05:03:39 it's actually really easy Apr 17 05:04:01 don't use a listview? make an overlay? Apr 17 05:04:09 listview is easier Apr 17 05:04:13 if you just defineid:listview in the layout then customise that Apr 17 05:04:42 basically you track the scroll position of the list view and then modify the children by overriding onLayout and making room for the headers Apr 17 05:04:50 keep a simple cache of header views Apr 17 05:04:53 customise the layout around the lilstview then the listview separately Apr 17 05:05:17 adding header iews bugged me in 2.2 Apr 17 05:05:30 sounds like you have a decent solution Apr 17 05:05:39 yeah but I don't want to write it Apr 17 05:05:42 i shouldn't have to Apr 17 05:05:57 its wasa listview of check boxes and adding a header viw made the check boxes select the next int the list - notthe one touched Apr 17 05:06:50 anyoneseen anything like it? Apr 17 05:07:56 I ended up putting static instructions at the top of the list - I expet later apis fix this stuff Apr 17 05:07:57 does anyone know - is there any real-world concept of roaming on CDMA devices? Apr 17 05:08:00 JakeWharton: what about having a listview for each section and playing with their visibility/position Apr 17 05:08:17 that sounds really scary Apr 17 05:08:21 lol Apr 17 05:08:25 plus you wouldn't get the view recycling across sections Apr 17 05:09:14 nor header recycling Apr 17 05:09:35 it all depends where you store the data surely - can services store data? Apr 17 05:10:45 make your solution general and submit it to aosp Apr 17 05:11:05 SectionalListView extends ListView Apr 17 05:11:14 AOSP has an implementation Apr 17 05:11:16 it's really bad Apr 17 05:11:30 it's not public API yet, but it's in the framework Apr 17 05:11:43 can i be cheeky(er) and ask for a recomendation on learning android 2d animation and accelerometer/giroscope interaction - - I thought of a funny app Apr 17 05:11:52 what's it called? Apr 17 05:11:54 it *looks* really good, but in order to use it you have to meet all these crazy requirements Apr 17 05:11:58 PinnedHeaderListView Apr 17 05:12:00 let us guess Apr 17 05:12:02 dont tell us Apr 17 05:12:33 what the name of my ap? Apr 17 05:13:06 std0s: no, jake Apr 17 05:13:12 well - I thought the tech would be quite marketable but the ame would bea good way to make it good Apr 17 05:13:44 ok - excuse me :| Apr 17 05:14:06 wow the tension Apr 17 05:14:19 std0s: have you seen the documentation for working with sensors? Apr 17 05:14:27 in he meantime whle you wawit would you liek to har abou my app? Apr 17 05:14:34 yes Apr 17 05:15:02 I need to go back to my maths backgruond basically as hey are both crap Apr 17 05:15:26 (the sensors to detect the phones location in 3d) Apr 17 05:15:38 hmm… we may have a promising version of this pattern Apr 17 05:15:42 why not use gps? Apr 17 05:15:44 bundled up in a giant shitty lib Apr 17 05:16:10 gps is too innaccurate - its about relative movement Apr 17 05:16:31 is to teach peoplpekung fu matrix style Apr 17 05:16:33 anyone used picasa api? Apr 17 05:16:34 what's the "best" way to turn the screen off? set brightness to 0? Apr 17 05:16:37 JakeWharton: sounds cool Apr 17 05:16:47 (or hoe to twist abouttheit phones in a clever way) Apr 17 05:16:55 etuleu: don't touch it for a while Apr 17 05:17:03 jeppy_, :) Apr 17 05:17:19 faster than that Apr 17 05:17:34 nope Apr 17 05:17:35 i lied Apr 17 05:17:42 I was going to call it monkey ninja because any bloke worth his salt is going to download mokey ninja Apr 17 05:17:44 heading home Apr 17 05:17:56 you're at work? Apr 17 05:18:22 am i being blanked - or is that question a paradox Apr 17 05:18:23 etuleu: that's actually a good question, idk if there is a way Apr 17 05:18:24 std0s: you should use a framework, like andengine Apr 17 05:19:02 but i need it to be actually about kung f - make some kung fu ude strap a phone to his body and jump about Apr 17 05:19:11 readme: is andengine just for games? Apr 17 05:19:34 jeppy_, I think setting the brightness to 0 works but it seems weird to me Apr 17 05:19:40 it can obviously be used for other things, but it's designed for games Apr 17 05:20:00 I nly need 2d graphics - its a demo of a wider reachin tech hopfuly - I want to usse it to locate producs within shoops Apr 17 05:20:17 wait what happened to monkey ninja? Apr 17 05:20:22 now you want to do indoor nav? Apr 17 05:20:38 clotheing esp - finding the garement you want to try on in a dept store isa eafuck Apr 17 05:20:57 indoor navigation is a serious research topic Apr 17 05:21:09 it would beeasy with nfc we have it on android and it going on apple so expect mmore Apr 17 05:21:27 you know, you could actually make something for stores that didn't have all the flashy tech and it would still be a viable product. Apr 17 05:21:35 just have it have a map of each floor Apr 17 05:21:46 and you can plot yourself on the map Apr 17 05:21:51 figure out the indoor nav later Apr 17 05:22:20 you'd need to design some format for describing maps of buildings Apr 17 05:22:33 under a tablelayout, can tablerows not have their own specific stretch columns? Apr 17 05:22:36 say an app which transmitted accelarometer and giroscope info over bluetooth traking the particular device - if its accuratet enouogh itsa 3d representation - the real problem is finding what theyreafter Apr 17 05:22:57 std0s: finding a path from a to b on a map is easy Apr 17 05:22:57 http://www.mirror.co.uk/news/uk-news/fake-doctor-reginald-gill-told-787616 Apr 17 05:23:12 stock tracking is even more business friendly as they prevent theft Apr 17 05:23:13 std0s: the hard part is accurately keeping the location of the user inside a building using sensors. Apr 17 05:23:22 "I can suck the cancer out of your tits" Apr 17 05:23:41 thats wheree the accuratet accelerometer and giro come in Apr 17 05:23:46 good luck with that. Apr 17 05:23:51 it's a research topic Apr 17 05:23:56 Folks, ever since I installed CM9 on my HTC phone (which is ICS 4.04) I can't seem adb to get adb (Eclipse) to recognize my device. Typing in ./adb devices returns nothing...Any thoughts on what I could do to fix this, please? Apr 17 05:23:57 and the sensors in android devices are not that good Apr 17 05:24:12 you knowthe dimenstions of yourr store - those can track latitude lngitude and altutude Apr 17 05:24:19 if a store is large enough to require a map then youre gunna need alot of bluetooth coverage if thats your plan Apr 17 05:24:29 when I say its a research topic, I mean there are the brighest minds in the world right now hammering away at that problem and they aren't completely done solving it. Apr 17 05:24:41 so thinking you're just going to dream it and do it is a bit naive Apr 17 05:24:44 just leave out the nav part Apr 17 05:24:49 there and algorithms to make them more eficient - anyhow - im tlking about a game to se what posible first Apr 17 05:24:59 design an indoor map, and write the code to display it Apr 17 05:25:03 that would be impressive to me Apr 17 05:25:14 I dont know wetherto call it "I know king fu" or "monkey ninja" Apr 17 05:25:44 under a tablelayout, can tablerows not have their own specific stretch columns? Apr 17 05:26:28 its abou testing how accurate peoples sensors are - everyone has an acceleromer as thats how you get landscape Apr 17 05:27:24 it could degrade gracefully - it couldnt be worse than the current jumble sale Apr 17 05:28:37 and feedback at all is apreciated - negative is probably more sueful Apr 17 05:28:58 as in I'll sue you for harrasment (joke typo) Apr 17 05:29:17 jeppy_: i was Apr 17 05:29:18 are you drunk? Apr 17 05:29:29 if you are talking to me - yes Apr 17 05:29:49 anyone else? Apr 17 05:31:22 i haven't been drinking a hell of a lot lately Apr 17 05:31:32 and after a while off, I kind of like sobriety, tbh Apr 17 05:31:32 I love coding drunk - when I'm at it I think i'm solving all the deep problem of computing - then in the morning I realiseI commented out one line of code which was probaly a debugging message Apr 17 05:32:17 readme - each to their own - I'm under no illusions about my relationship with alcohol Apr 17 05:32:30 i'm not judging, I like to drink Apr 17 05:32:32 its unhealthy (and fun) Apr 17 05:32:46 the point i wanted to make Apr 17 05:32:56 is that to realize the benefit of drinking less Apr 17 05:33:08 you need to be sober for at least a month solid Apr 17 05:33:21 after that you notice a difference. it's like you're way smarter. Apr 17 05:33:39 I will drink les when I summon up the will power to drink less, untill then I will try to drink the same amount Apr 17 05:33:48 i'm gonna try to keep it to a few beers on fri/sat from now on Apr 17 05:34:13 I havea very busy soial life wich revolvevs around drink and other fun things ;) Apr 17 05:34:51 how old are you readme if you dont mind me asking (feel free to not comment) Apr 17 05:35:00 So, I'm having trouble recognizing my Android device ever since I did an update to ICS 4.04 (CM9)...Issuing the command ---> ./adb devices returns nothing...What can I do to get my device to be recognized again, please? Thank you. Apr 17 05:35:28 <[deXter]> That's a good question. Apr 17 05:35:34 <[deXter]> It doesn't work for me either. :P Apr 17 05:35:35 I would try restarting adb server - code: adb kill-server Apr 17 05:35:39 <[deXter]> I get an error "Insufficient permissions" Apr 17 05:35:43 adb-startserver Apr 17 05:35:48 <[deXter]> Of course, USB Debugging is enabled in the device.. Apr 17 05:35:55 <[deXter]> And udev rules are set Apr 17 05:36:21 you on linux? Apr 17 05:36:24 <[deXter]> Yeah Apr 17 05:36:27 std0s: I've tried shutting down the computer and restarting it too...I'm guessing that does kill the adb server - right? Apr 17 05:36:31 sudo adb kill-server Apr 17 05:36:32 [deXter]: start adb server as root to test Apr 17 05:36:38 <[deXter]> Estragon, done and done Apr 17 05:36:38 t0mless: Yes, I'm on Ubuntu 11.10. Apr 17 05:36:42 hen you need to put the crrect permissions for your device in /etc/udev/rules.d/51.androidrul (from memory maybe different) Apr 17 05:37:11 then do sudo adb devices Apr 17 05:37:21 do this - sudo lsusb Apr 17 05:37:25 t0mless: Let me try that. Thank you. Apr 17 05:37:35 as temporary solution you can use wifi adb Apr 17 05:37:36 anyone shared a tweet via their app? my hash tags are being removed from my message Apr 17 05:37:55 std0s: Yes, lsusb does list my device... Apr 17 05:38:10 <[deXter]> Oh wait, it was a permissions issue. Sorry all. :P Apr 17 05:38:16 aLearner, you will be better of reading the doc about ho to develop on a device in the android developer docs Apr 17 05:38:50 std0s: I had everything setup nicely and was in the middle of dev work. I just updated from 2.3.7 to 4.04 and then adb stopped working. Apr 17 05:38:55 ok - do you havea udev rule to allow the correct permission for the device Apr 17 05:39:15 std0s: Let me copy / paste what I have... Apr 17 05:39:17 or manufacturer Apr 17 05:39:31 its like 51.androidrules or something Apr 17 05:41:04 So, this is what I have ---> SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" in /etc/udev/rules.d/51-android.rules Apr 17 05:41:35 aLearner: plug your device in and show me the output of lsusb Apr 17 05:41:58 <[deXter]> aLearner, Which distro are you using? Apr 17 05:42:15 I'm using Ubuntu 11.10 Apr 17 05:42:21 Here is my output from lsusb Apr 17 05:42:27 pastebin! Apr 17 05:43:05 http://collabedit.com/3unwv Apr 17 05:43:22 readme: Haha! No...I wasn't going to paste it in here... :-) Apr 17 05:43:39 hmm, loading Apr 17 05:43:48 got it Apr 17 05:44:08 aLearner: unplug your device and tell me which line is absent from lsusb when you run it again Apr 17 05:44:22 actually, you have an HTC device? Apr 17 05:44:42 run 'id' is your user in the group plugdev? Apr 17 05:44:50 read the device developer bit - its simples Apr 17 05:44:51 * readme should just make a flowchart. Apr 17 05:45:08 make sure usb debug is enabled. Apr 17 05:45:23 Yes, USB debug is enabled. Apr 17 05:45:25 I have an HTC Apr 17 05:45:35 So that's the only line that disappeared when I disconnected. Apr 17 05:45:42 kill adb and restart it.. Apr 17 05:45:56 also - do you havea custom mod on there? Apr 17 05:47:26 I've had ropey adb from roms before (obviously not to critisise the homebrew crew in anyway) Apr 17 05:47:47 Yes, I do have a custom mod on there - it's CM9 Apr 17 05:47:51 but outdaed abd on the phonecompared to the ide could cause it.. Apr 17 05:48:02 This is my output when I killed and restarted adb Apr 17 05:48:03 http://collabedit.com/3unwv Apr 17 05:48:19 is it recent adb on the machine - eclilse is all shiny and new Apr 17 05:48:48 This is the ROM I have.... --> http://forum.xda-developers.com/showthread.php?t=1494373 Apr 17 05:48:53 Eclipse is shiny and new Apr 17 05:48:59 I'm not sure about adb itself :-/ Apr 17 05:49:25 run updates from sdk manager Apr 17 05:49:44 std0s: Doing that... Apr 17 05:49:53 std0s: Thank you very much...Should I apply all updates? Apr 17 05:50:04 I find adb easiest if I run it from the dir its in (usually platform-tools) Apr 17 05:50:20 depends what you want - read the mand decide Apr 17 05:50:25 std0s: Yes, that's where I am. I always run it from platform-tools. Apr 17 05:50:37 as rot? Apr 17 05:50:42 root even Apr 17 05:50:49 std0s: I did a sudo... Apr 17 05:51:03 I applied the SDK tools update - and really nothing else. Apr 17 05:51:20 not the same thing - do you have root on your system? Apr 17 05:51:34 is it untu Apr 17 05:51:42 ubuntu Apr 17 05:52:19 std0s: Yes, I do. I can find out how to run as root. Apr 17 05:52:21 (scuse if im being patronising - your handle is aLearner) Apr 17 05:52:31 its sudo passwd Apr 17 05:52:39 then choose roots password Apr 17 05:52:43 Yes, I'm on Ubuntu. Apr 17 05:52:51 then so su (= supeer user) Apr 17 05:52:52 std0s: Yep, I'm up for learning... ;-) Apr 17 05:53:03 Thank you for the detailed instructions. Apr 17 05:53:20 th you are root! Apr 17 05:53:34 write whoami Apr 17 05:53:46 Yep, I'm root. Apr 17 05:53:48 Thanks. Apr 17 05:53:54 t sayroot (and bowiftcould) Apr 17 05:54:16 Hmm - not sure what you mean... Apr 17 05:54:30 I tried ./adb devices as root and that didn't work either Apr 17 05:54:42 it says root (and it would bow if it ould) Apr 17 05:54:50 do killall adb Apr 17 05:55:07 Done... Apr 17 05:55:16 now do adb devices Apr 17 05:55:45 (this is not the csoluton btw - its a demo) Apr 17 05:56:11 dont tell me its epic fail o'clck Apr 17 05:56:22 please no xxxxxxxxx Apr 17 05:56:23 Here ---> http://pastebin.com/nqZgSuVi Apr 17 05:57:03 The ROM is running ICS 4.04 - could that be it? I see APIs out for ICS 4.03 only in Eclipse? Apr 17 05:57:53 does it have udev permissions like we talked about earlier Apr 17 05:58:04 Yes, it does Apr 17 05:58:11 are you sure Apr 17 05:58:26 can i see your andtoid udev.s file Apr 17 05:58:30 These are the instructions I followed Apr 17 05:58:31 http://developer.android.com/guide/developing/device.html Apr 17 05:58:33 udev.d even Apr 17 05:59:17 its not gospel the device ids have to match your particular device - the rom may have changed thedevice id - you have to check in lsusb Apr 17 05:59:59 worst casee scenario cwm adb will work Apr 17 06:00:19 its never failed me yet Apr 17 06:00:35 here you go ---> http://pastebin.com/Wt3UgNs0 (and I do have an HTC) Apr 17 06:00:56 Hmmm - what's cwm adb? Apr 17 06:01:02 ClockWorkMod? Apr 17 06:01:24 clockworkrecovery even - sorry - lil tipsy lol Apr 17 06:01:32 Ah - OK Apr 17 06:01:34 No worries :-) Apr 17 06:01:46 I have 4Ext Recovery (and ClockWorkRecovery too) Apr 17 06:01:51 paise be to koush ;) Apr 17 06:02:33 I just checked my device ID with lsusb --- it's not changed Apr 17 06:02:45 It's still 0bb4 Apr 17 06:02:46 lok just pase lsusb in here its like 5 lines - I've talked more bolloks than 5 lines of your lsusb Apr 17 06:03:10 std0s: don't do that Apr 17 06:03:13 ok - reboot it nplugged - wait for a coplete boot and plug back in Apr 17 06:03:31 sorry my browser is slow - mybad Apr 17 06:03:32 Here you go Apr 17 06:03:33 http://pastebin.com/8B02UpmP Apr 17 06:03:57 You mean reboot the comp - right? Apr 17 06:04:03 and watch dmesg on the machine it goes in (linux I asume) Apr 17 06:04:15 no phone Apr 17 06:04:32 What do you mean by "and watch dmesg on the machine it goes in (linux I asume)" Apr 17 06:04:34 <[deXter]> aLearner, Before we assume it's a USB thing, have you tried connecting over wifi? Apr 17 06:04:51 adb is 2 things - client and erver - the computer one is fine - the one on your phone is spakking out for some reaons i think Apr 17 06:04:52 deXter: What do you mean? I have never done this... Apr 17 06:05:14 std0s: So should I unplug the phone + reboot + plug it back in? Apr 17 06:05:16 <[deXter]> aLearner, Hmm, okay the easy way is to install adbWireless app on your device Apr 17 06:05:24 the dont like being turned on plugged in sometimes - it causes conflict Apr 17 06:05:29 does anyone know how to turn the screen off? Apr 17 06:05:56 std0s: Got it. Apr 17 06:06:09 [deXter]: Getting the app as we speak. Thank you. Apr 17 06:06:25 aLearner, yes - it will help to diagnose at least 9might even fix it) Apr 17 06:06:41 std0s: Rebooting the phone.... Apr 17 06:06:51 which phone btw? Apr 17 06:06:54 *twiddles thumbs* Apr 17 06:07:12 I have an HTC Sensation running this ROM ---> http://forum.xda-developers.com/showthread.php?t=1494373 Apr 17 06:07:38 aLearner looks at pretty animation Apr 17 06:07:39 I just upgraded it from CM7 (where everything was just dandy) Apr 17 06:08:00 OK replugged phone after reboot Apr 17 06:08:09 What's the first command you want me to type? Apr 17 06:08:12 check dmesg Apr 17 06:08:30 Hmmm - what do you mean? Apr 17 06:08:39 (only the end bit (use dmesg | tail) Apr 17 06:08:43 ) Apr 17 06:09:06 literally type in dmesg | tail Apr 17 06:09:20 see if theres nything interestingaout you phoe ithere Apr 17 06:09:51 you are on a linux computer I'm assuming Apr 17 06:10:03 [deXter]: Which adb wireless app should I get? There's adbWireless, ADB WiFI and ADB over WIFI Widget -- and then paid ones... Apr 17 06:10:27 aLearner, are you not on linux? Apr 17 06:10:41 I am...Have told you that about three times already :-) Apr 17 06:11:07 <[deXter]> aLearner, "adbWireless (widget)" Apr 17 06:11:18 <[deXter]> its a free app, the one with the green icon Apr 17 06:11:20 std0s: Here you go ---> http://pastebin.com/Hg7rD3KV Apr 17 06:11:36 [deXter]: 10 - 4. Getting it. Apr 17 06:12:19 [deXter]: I don't have WiFI where I'm currently at...Only 3G Apr 17 06:12:48 I hope that doesn't matter Apr 17 06:12:58 Downloaded + installed app + turned on WiFI Apr 17 06:13:08 you can tether surly Apr 17 06:13:51 <[deXter]> aLearner, which device are you using? Apr 17 06:14:05 I'm on an HTC Sensation Apr 17 06:14:08 isd I COULD Sv over my cellular tether - that totally screwed me - thanks over zealous firewal >:( Apr 17 06:14:34 <[deXter]> aLearner, okay well you would have to tether first, if you don't have wifi Apr 17 06:14:56 [deXter]: What do you mean? My machine is plugged into ethernet Apr 17 06:15:04 that first sentence should say - I discovered I coulddn't SVN over ... Apr 17 06:15:30 The app is saying type ---> adb connect 0.0.0.0:5555 Apr 17 06:15:35 on the machine Apr 17 06:15:36 <[deXter]> aLearner, Doesn't matter, this is just to create a TCP network between your phone and PC Apr 17 06:15:55 aLearner: presumably the goal is to enable debugging of your own apps? not ROM-hacking or something like that? Apr 17 06:16:03 [deXter]: Gotcha.. Apr 17 06:16:18 [deXter]: Yes...Just plain old debugging of my own apps is correct :-) Apr 17 06:16:47 So, where do I go from here, then? Apr 17 06:16:57 The app is installed... Apr 17 06:16:59 ahh - are you using adb to influence your apps wile running aLearner ? Apr 17 06:17:36 std0s: What do you mean? I just generally download my apps on my phone as a sanity check after tweaking them on the emulator..... Apr 17 06:18:08 <[deXter]> aLearner, Well IIRC HTC phones should pop up a dialog when you plugin the USB, and you can choose "internet sharing".. Apr 17 06:18:18 I tested on an htc hero - made it seem really good everywhere else:) Apr 17 06:18:20 <[deXter]> Unless your phone is carrier branded, in which case they might remove that option Apr 17 06:18:43 [deXter]: My phone is rooted and running a custom ROM ---> http://forum.xda-developers.com/showthread.php?t=1494373 Apr 17 06:18:53 [deXter]: All kinds of branding has been removed. Apr 17 06:18:58 you have a custom rom - just look in wiress options - there shouldbe hotspot in there somewhere Apr 17 06:19:19 What do you want me to do? Share my phone's internet connection with my PC? Apr 17 06:19:30 I have an app called Barnacle which can do just that... Apr 17 06:19:43 seriously why is it that hard to turn the screen off? Apr 17 06:19:51 meh, I'm sure the USB stuff could be got to work, except it's a hacked version of a hacked build of the OS? Apr 17 06:19:54 I think koush came up with a hotspot for non rooted phones not long ago Apr 17 06:20:21 I'm confused as to what kind of tethering you want me to do Apr 17 06:20:25 <[deXter]> aLearner, yeah that would work as well. We don't really want to use your 3G, just want to establish a connection with the phone Apr 17 06:20:27 etuleu: how about trying this Apr 17 06:20:28 Leeds: Not sure I know the answer to your question Apr 17 06:20:29 http://developer.android.com/reference/android/os/PowerManager.html#goToSleep(long) Apr 17 06:20:56 isnt there just a broadcast to make the screen sleep Apr 17 06:21:09 [deXter]: Ah got it....Let me fire up Barnacle ---> http://www.appbrain.com/app/barnacle-wifi-tether/net.szym.barnacle Apr 17 06:21:22 readme, I think that causes the entire device to sleep (CPU and stuff) overriding any wakelock Apr 17 06:21:40 I don't want that, I just want exactly the same behavior as pressing the power button Apr 17 06:22:10 Whoops Apr 17 06:22:12 that varies from device to device - but I should thnk it has its own broadcast Apr 17 06:22:17 std0s, there is a broadcast for when the screen turns on / off but that tells you when the screen goes on / off Apr 17 06:22:23 Sorry - got disconnected Apr 17 06:22:27 I want to shut it off when pressing a button Apr 17 06:22:38 OK Barnacle is on and I'm connected to the phone Apr 17 06:22:44 [deXter]: What should we do next? Apr 17 06:22:58 - whats the compliment -a service - doesent quite fit... Apr 17 06:23:26 I guess a service listening on asensor - its just a sensor like ay other no? Apr 17 06:23:40 <[deXter]> aLearner, Okay, now run adbwireless if its not running already, and then on your computer open a terminal and type "adb connect ipaddress:port" Apr 17 06:23:48 <[deXter]> where ipaddress is the ip of your phone Apr 17 06:23:59 whats the plan aLearner ? Apr 17 06:24:15 [deXter]: Is there a quick way to find out my phone's IP address? Apr 17 06:24:31 std0s: [deXter] is helping out... Apr 17 06:24:44 or [deXter] as you seem to know whats happening - I'm intrigued Apr 17 06:25:07 <[deXter]> aLearner, Well if you have a terminal app on your phone.. "ifconfig" Apr 17 06:25:19 [deXter]: I do...Thank you! Apr 17 06:25:30 would use adb shell Apr 17 06:25:38 then ifconfig -a Apr 17 06:25:58 (-a shows disconnected interfaces also) Apr 17 06:28:46 [deXter]: Which port? ---> http://pastebin.com/tE1RznKV Apr 17 06:28:50 capacitive tips for any gloves http://www.gizmag.com/tapcaps-touchscreen-glove-stickers/22171/ Apr 17 06:28:53 std0s: THank you for that. Apr 17 06:29:45 Does it matter? Apr 17 06:30:22 no problem - linux in nutshell i hay Apr 17 06:30:23 <[deXter]> aLearner, 5555 Apr 17 06:31:11 not a great numberplate for a getaway car but hey Apr 17 06:31:44 [deXter]: OK...Not sure if I'm connected but I did type in the command. Apr 17 06:32:14 <[deXter]> aLearner, okay, now type on your PC "adb devices' Apr 17 06:32:51 [deXter]: It just hangs... Apr 17 06:32:58 std0s: That's funny... Apr 17 06:33:51 as root do adb kill-server Apr 17 06:34:08 hen ps aux | grep db Apr 17 06:34:15 hen ps aux | grep adb Apr 17 06:34:27 **then Apr 17 06:34:31 no hen Apr 17 06:35:06 <[deXter]> He quit. :/ Apr 17 06:35:09 then unplug tthe phone Apr 17 06:35:18 <[deXter]> I think he killed his IRC client. :P Apr 17 06:35:23 oh wel fuck itthen Apr 17 06:35:35 <[deXter]> Oh, there he is. :P Apr 17 06:35:36 ymmv Apr 17 06:36:07 hi aLearner1 Apr 17 06:36:32 unplug the phone before you start adb Apr 17 06:36:52 then plugit in Apr 17 06:37:30 Leeds - you were right u can target one app using the package manager! Apr 17 06:37:37 Whoops! Apr 17 06:37:38 Sorry Apr 17 06:37:46 std0s: Thanks for the welcome. Apr 17 06:37:50 [deXter]: Sorry about that Apr 17 06:37:52 gaz`: I am sometimes right! not all time time, but I'm working on it :) Apr 17 06:37:58 * gaz` bows down to Leeds Apr 17 06:38:29 there are lots of little nooks and grannies (or something like that) hidden away in Android which let you do cool stuff, even if it takes a bit of fiddling Apr 17 06:39:13 yep Apr 17 06:39:13 std0s and [deXter]: I'm back...Connection and power issues at my end. Apr 17 06:39:18 finding em slowly but surely Apr 17 06:39:19 do you happen to know where the code is in the AOSP tree that instantiates Activity? Apr 17 06:39:26 i cant wait to send u a link to this app once its on market Apr 17 06:40:06 Is it possible to start two actions from the same activity? For example: start MyAction and also an intent for sending an email (and I want the last one to be on top of the stack). Apr 17 06:40:14 gaz`: I was actually trying to find the code in AOSP which implements the chooser - I suspect it's just calling the PackageManager itself Apr 17 06:40:16 readme: either ActivityManager or ActivityThread Apr 17 06:41:25 <[deXter]> aLearner, from your PC can you ping the phone? Apr 17 06:41:26 Leeds http://stackoverflow.com/questions/9730243/android-how-to-filter-specific-apps-for-action-send-intent Apr 17 06:42:11 [deXter]: I did ./adb devices and I see ---> List of devices attached Apr 17 06:42:11 XX.XXX.XXX.XXX:5555 device Apr 17 06:42:39 <[deXter]> aLearner, I assume you've X'd out the real IP address? Apr 17 06:42:41 [deXter]: Strangely it said 'device' and not 'HTC' or anything like that Apr 17 06:42:42 gaz`: yup, that's pretty much what I was trying to tell you yesterday :) Apr 17 06:42:52 [deXter]: Yes, I've just Xed out the IP address Apr 17 06:42:55 JakeWharton: thanks, looking in ActivityThread Apr 17 06:42:55 aLearner: you're not running HTC software Apr 17 06:43:12 Leeds: Ah OK ...Thank you. Apr 17 06:43:15 <[deXter]> aLearner, Cool, well you should be able to do just run "adb connect ipaddress:5555" Apr 17 06:43:27 Leeds yeh! Apr 17 06:43:35 [dexTer] I just did that - should I do it again? Apr 17 06:43:46 imagien life withoutstackoverflow, i was talkign toa guy who wants to employ me he said all his coders will have no net.......... Apr 17 06:44:05 i told him i couldnt code hello world without the net Apr 17 06:44:07 good luck with that Apr 17 06:44:18 [deXter]: It get the message ---> already connected to blah Apr 17 06:44:22 <[deXter]> aLearner, just type "adb shell" Apr 17 06:44:35 what are ou going to do ith your code - print it out and file it away? Apr 17 06:44:54 adb root is more fun :) Apr 17 06:45:07 [deXter]: I get nothing...The process seems to be doing its own thing...Do you want us to put an amerpsand at the end of the command? Apr 17 06:45:20 gaz`, who were they so I know to avoid Apr 17 06:45:24 [deXter]: I just get a blinking cursor --> | Apr 17 06:45:39 its the shell to your phon -type logcat Apr 17 06:45:56 some new games company being stated in taiwan, they want me to head up games Apr 17 06:46:01 (sorry [dexter]) Apr 17 06:46:10 std0s: Gives me a blinking cursor too... Apr 17 06:46:18 hahaha Apr 17 06:46:25 std0s: Typing 'logcat' also gives me a blinking cursor :-) Apr 17 06:46:31 and do something to the phone - pres a volume key Apr 17 06:46:59 Zilch. Nada. Nothing. Apr 17 06:47:03 my parents used to have neighbours from South Africa - they had a dog called Dexter, and he's still referred to in my family as "Dixter" Apr 17 06:47:04 Still blinking cursor Apr 17 06:47:17 <[deXter]> O.o Apr 17 06:47:18 aLearner: no shell prompt of any sort? Apr 17 06:47:20 dixcode Apr 17 06:47:31 lol Apr 17 06:47:34 thats why we are all here Apr 17 06:47:36 because dixcode Apr 17 06:47:44 ("Dixster" being "Dexter" in a South African accent, of course) Apr 17 06:47:49 ah Apr 17 06:47:51 <[deXter]> True. :P Apr 17 06:47:51 damn SA... Apr 17 06:47:52 press ^c (means ctl c same time) Apr 17 06:47:57 lecker bru! Apr 17 06:48:16 Leeds: Hmm - not 100% sure if that's a shell prompt -- I got to the new line with a blinking cursor...Could that be a shell prompt? Apr 17 06:48:47 This is turning out to be quite an adventure Apr 17 06:48:49 :-) Apr 17 06:48:50 <[deXter]> aLearner, type "logcat" or "ls" and see if that works Apr 17 06:48:54 aLearner: is there a "#" or a "$" or something at the start of the line? Apr 17 06:49:05 if not, you probably haven't actually connected Apr 17 06:49:08 Leeds: No - not that for sure. Apr 17 06:49:17 [deXter]: No...None of those commands work. Apr 17 06:49:25 did you type adb logcat Apr 17 06:49:28 or just logcat Apr 17 06:49:37 and you probably should look into using a hacked/hacked OS build which has a working adbd - just to save yourself and us all this trouble and wasted time... Apr 17 06:50:10 Leeds: Oh absolutely...Little did I realize that things can get so complicated. I have half a mind to switch back to CM7. Apr 17 06:50:44 I guess it was naive of me to think that adb would just work with a hacked ROM that's still in the experimental stage. Apr 17 06:52:03 lecker bru! Apr 17 06:52:13 [deXter]: Thoughts? Apr 17 06:52:27 hey even ur neighbours dog is on irc these days Leeds Apr 17 06:52:37 <[deXter]> aLearner, I suggest installing a stable ROM as well. :P Apr 17 06:52:51 [deXter]: Gotcha. I'll go with that then. Apr 17 06:53:01 [deXter]: Thank you for all your help. Apr 17 06:53:15 [deXter]: Apologies if I lead you down a rabbit hole. Apr 17 06:53:24 std0s: Appreciate your help too. Thank you. Apr 17 06:53:35 <[deXter]> aLearner, No worries, atleast you guys reminded me to edit my udev rules. :) Apr 17 06:53:39 <[deXter]> (I just installed a new distro...) Apr 17 06:53:42 Leeds: Thanks for the words of wisdom. Lesson learned. Apologies for any of your wasted time. Apr 17 06:53:58 [deXter]: Haha...OK. Apr 17 06:54:35 aLearner: did adb work before you flashed cm9? Apr 17 06:54:44 hey whats that floating sort of menu u can pop up called, not the menu key one but one id use to select froma sublist Apr 17 06:54:47 readme: Yes, it did work perfectly. Apr 17 06:54:51 aLearner: :| Apr 17 06:55:13 readme: Bummer that I need to switch back. I was liking CM9 too. :-/ Apr 17 06:55:27 readme: But app development > fun on CM9 Apr 17 06:55:56 Now I'll look into seeing what it takes to go back in reverse - from CM9 to CM7. Apr 17 06:56:47 adb needs to update like any other (living) software - a long as they dont start restricting us I dont really mind - can I askif any of you have experience using the legacy support librariese? Apr 17 06:57:02 librarys even Apr 17 06:57:25 This is crazy but I just typed /adb devices and it now seems to recognize the device! Apr 17 06:57:27 What?! Apr 17 06:58:50 why cant i import android.widget.PopupMenu;? Apr 17 06:58:57 This is what it shows now ---> http://pastebin.com/0UmEhhX1 Apr 17 06:59:26 oh 3.0 Apr 17 06:59:27 bugger Apr 17 06:59:30 there must be one for 2.1 Apr 17 07:00:15 gaz`: it's just a ListView in a PopupWindow Apr 17 07:00:22 thanks mate Apr 17 07:00:35 [deXter]: Whoa...Seems to be working in Eclipse too now...No idea how it started working Apr 17 07:00:41 er, that's ListPopupWindow Apr 17 07:00:44 sure i made this easily once before Apr 17 07:01:04 but i need it for 2.1 Apr 17 07:01:13 any sort of sub menu that can come up to select stuff Apr 17 07:01:17 I backported ListPopupWindow to 2.1+ for ABS Apr 17 07:01:23 you're free to use it Apr 17 07:01:26 nice Apr 17 07:01:27 abs? Apr 17 07:01:31 ActionBarSherlock Apr 17 07:01:39 aha Apr 17 07:01:41 thats u Apr 17 07:01:46 lots of ppl know it dude Apr 17 07:01:53 https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/internal/widget/IcsListPopupWindow.java Apr 17 07:01:56 i know of an app thats just got 3 million dls using it Apr 17 07:02:02 haha Apr 17 07:02:03 t Apr 17 07:02:04 h Apr 17 07:02:05 that's good to hear Apr 17 07:02:08 yep Apr 17 07:02:14 i made the prototype too Apr 17 07:02:41 is it public on the Store? Apr 17 07:02:48 [deXter]: So, I wonder if it's working because we're doing it over WiFi or whether it actually just started working randomly Apr 17 07:02:49 no only released in japan Apr 17 07:02:51 2 secs Apr 17 07:03:59 so if i stick this clas sin my code i can just useit as normal? Apr 17 07:04:03 or has it got dependencies etc Apr 17 07:04:14 [deXter]: It's not the WiFi for sure...I killed adbWireless and tried again. Cool. Apr 17 07:04:20 so some guy was asking how to turn the screen off from code here earlier Apr 17 07:04:26 I think i figured it out by reading aosp source :) Apr 17 07:04:38 it has a few theme dependencies Apr 17 07:04:42 style-related, rather Apr 17 07:04:51 would a widget that shuts the screen off be a novel app? Apr 17 07:04:52 Anyhoo - thanks to everyone for their help. So glad adb started working. Apr 17 07:04:56 I know we have a hardware button already Apr 17 07:05:03 but, maybe someone would like to press a widget? Apr 17 07:05:10 what was the old way to pup up a submenu Apr 17 07:05:11 I'm also thinking maybe, shake to turn the screen off Apr 17 07:05:14 i cant recall for the life of me Apr 17 07:05:45 AlertDialog Apr 17 07:05:47 with a list? Apr 17 07:05:49 could be Apr 17 07:06:14 yes Apr 17 07:07:09 i'd be suprised if a widget to turn off your screen doenst exist already Apr 17 07:07:35 damn this error is hurting when i run on eclipse the launcher crashes Apr 17 07:07:42 hae to do run application as android app every time Apr 17 07:08:08 yeah, there's a widget to do that - my gf uses it Apr 17 07:08:32 i have a widget to turn *on* Leeds' GF Apr 17 07:08:37 * JakeWharton runs Apr 17 07:08:47 i hear ur gf has lots of widgets hidden away Apr 17 07:08:53 I think it could easily be done by saving the screen off timeout, setting it to 0, then re-writing the saved value. Apr 17 07:08:59 for those lonely nights when ur at the globe or eating kebabs Apr 17 07:09:45 i was in hong kong for about 18 minutes a week ago leeds ;) Apr 17 07:09:49 I'm signing out for now. Later. Apr 17 07:10:20 I was in Leeds for most of last week - apart from brief visits to London and Brum Apr 17 07:10:30 lol Apr 17 07:10:41 "My father's from Leeds" Apr 17 07:11:18 Was. Was from Leeds. He's dead now. Apr 17 07:11:23 haha Apr 17 07:11:37 I was tempted to change my handle to London but thought it was a bit common Apr 17 07:11:53 my father is from and in Leeds... unless something has happened in the past day or two and nobody told me Apr 17 07:12:41 Have you been to club mint Leeds ? Apr 17 07:13:03 theres a radio station in philadelphia this dude is always advertising a club in his british accent.. "its me! london!" oh you call yourself london, cool.. Apr 17 07:13:45 didnt madison get made up as a name after the cher film about a meraid Apr 17 07:14:16 my flatmate is caled olyn - I bet no-one has even met another olyn Apr 17 07:16:25 http://www.fiercedeveloper.com/story/making-money-mobile-apps-isnt-easy-majority-app-developers-are-moonlighters/2012-04-16 Apr 17 07:16:35 sorry for that little tangent Apr 17 07:18:20 its hard to find people who are serious about a long term strategy - its all "write this app" not integrate mobile with out systems (I maybe naive) Apr 17 07:23:34 Leeds: you were right about using a Handler. It appears that is the preferred method anyways. http://developer.android.com/resources/articles/timed-ui-updates.html Apr 17 07:24:06 * jeppy_ sleeps Apr 17 07:24:52 jeppy_: yeah, I was looking for that article, couldn't find it... there's good stuff in the docs, but it can be a little disorganised... glad you found it Apr 17 07:25:21 * jeppy_ nods Apr 17 07:25:43 just a rumor :) http://news.cnet.com/8301-13579_3-57414553-37/new-ipad-mini-rumor-6m-coming-in-third-quarter/ Apr 17 07:26:14 if apple is doing this to counter a threat from windows 8 - thats amazing. i would buy windows 8 tablet because i had a windows 8 machine; so the logic seems weird to me Apr 17 07:27:37 g00s: tell that to instagram :) Apr 17 07:27:49 who is instagram :) Apr 17 07:27:53 XD Apr 17 07:28:00 u trollin Apr 17 07:28:07 fb panicked. they weren't worth that Apr 17 07:28:12 g00s: I flew from London to HK on Sunday, back from seeing my family for Passover (i.e. Easter) - got chatting a bit to a Spanish woman sitting across the aisle from me - turned out she was in marketing at Microsoft, and on her way to Taiwan to meet with people like Asus to discuss Windows 8 tablets :) Apr 17 07:28:18 g00s: cat picture project Apr 17 07:28:23 1B Apr 17 07:28:44 was the woman hot? Apr 17 07:29:13 Leeds: interesting! Apr 17 07:29:50 well, the windows tablets will be able to run office & stuff, so i bet they will be popular in enterprises Apr 17 07:29:53 hairlessmangina: not necessary... Apr 17 07:30:29 I think they'll be able to run Office... and that's about it Apr 17 07:30:49 although the iPad was very popular in f500 companies as well - despite apple's enterprise presence being almost nil (and they suck at it, so they deserve that) Apr 17 07:31:43 I hate the fact that it's 12:30 and all I want to do is run back into work and visualize things on a whiteboard Apr 17 07:32:06 i used to have a whiteboard at my place Apr 17 07:32:20 i think the fumes from the markers were getting to me Apr 17 07:32:38 I have one, but it's too small Apr 17 07:32:45 it's like 3'x4' Apr 17 07:32:56 I need the 6'x20' monsters we have at work :) Apr 17 07:33:16 cute http://i.imgur.com/y2mbi.jpg Apr 17 07:33:53 I hate the fact that it's 3:30pm and all I want to do is go home and nap... damned jetlag Apr 17 07:43:39 Good thing about Microsoft getting into the mobile market is that they're important enough to demand some degree of consistency between hardware. Unlike Apple who make their own consistency, and everybody else who does their own Linux kernel in their own way. Apr 17 07:44:00 how can i make action bar double when in portrait mode? Apr 17 07:44:02 I'm creating about 100 geopoints (icons) on a map. Can I just put them all in the in main class, or should they me in the overlay class? Also, should I put the points in an array or in a SQL table? Apr 17 07:45:10 Gumboot: we'll see. carriers love android … because they can do what they want :) maybe they won't give ms much leverage Apr 17 07:46:13 helly^: it would be best for reusability/flexibility to put them into sqlite or xml or some other external storage and load them into an ItemizedOverlay Apr 17 07:47:38 Ge0rG: Ok, thanks. I guess I'll put them into a XML file then. Less work for the app. Thanks! Apr 17 07:48:09 You think Microsoft can't do deals with carriers? Apr 17 07:48:25 they had to have worked closely with at&t Apr 17 07:48:37 if they're constant you could store them against the app Apr 17 07:48:39 but thats just one carrier, and just in the us :) Apr 17 07:49:06 microsoft + mobile => failure (of the mobile partner)... http://www.asymco.com/2011/02/11/in-memoriam-microsofts-previous-strategic-mobile-partners/ Apr 17 07:49:59 they will keep at it, hook or crook Apr 17 07:50:39 honestly, their success should be welcomed. competition is good. it will probably spur android to get better. Apr 17 07:50:59 as far as my personal preference as to what platform i would pick, it doesn't matter so much. i'm not very loyal to anyone :) Apr 17 07:51:48 Certainly Microsoft have taken Nokia into a fantastic nosedive... there's still speculation that Nokia could survive, though. Apr 17 07:52:52 Gumboot: maybe they will just buy them :) Apr 17 07:53:01 kinda like google buying moto Apr 17 07:53:28 The only thing that I've seen anybody talk about from Nokia is th 41MP camera, and that's still Symbian. Apr 17 07:53:36 either MS will buy Nokia, or leave behind the ruins of the burned down oil platform Apr 17 07:53:48 but i think nokia was in a tough spot Apr 17 07:54:00 and i don't think android would have helped them much Apr 17 07:55:13 They can still make stupidphones. Huge market there. Apr 17 07:57:27 g00s: no, not android. but they have two or three of their own smartphone platforms. they could have leveraged symbian to touch by hiring some smart UX people Apr 17 07:57:34 or meego... Apr 17 07:57:51 yeah , poor meego Apr 17 07:58:14 i would have loved to get involved with that project, since it was open - to my standards Apr 17 07:58:59 anyone know what permission I need to use a TYPE_SYSTEM_DIALOG window? Tried SYSTEM_ALERT_WINDOW and INTERNAL_SYSTEM_WINDOW but no luck Apr 17 07:59:29 g00s: it seems, if you make a really open handset platform, it is bound to fail. meego and openmoko are the best examples :> Apr 17 07:59:50 All of the nokiaplan*.com websites went away. Apr 17 07:59:54 Ge0rG: yeah Apr 17 08:00:18 Hi guys, anyone having issues with google play showing 0 installs/ 0 active devices (when you know for certain there were at least a number of people instaling the app through the market) Apr 17 08:00:30 theTroy: it takes a day to update Apr 17 08:00:55 they all uninstalled Apr 17 08:01:04 they emailed me to tell you Apr 17 08:01:12 the app force closed because of an abs bug Apr 17 08:01:13 readme: hmm, thanks, could be longer than a day but Ill see if its the same in a week Apr 17 08:01:21 readme: truths :( Apr 17 08:01:26 jkjk :P Apr 17 08:01:27 JakeWharton: dont you just love trolls <3 Apr 17 08:01:52 it was supposed to be the future already Apr 17 08:01:53 w Apr 17 08:01:54 h Apr 17 08:02:00 where's my minority report whiteboard Apr 17 08:02:06 also, fuck Colloquy Apr 17 08:03:53 i'm tempted enough to go into #colloquy and ask wtf is going on with the spell checking. i have mine turned off Apr 17 08:06:10 ask then why when I press enter to dispatch a message the key press action sticks and any subsequent keystrokes are instantly sent Apr 17 08:06:31 weird, i have never seen that Apr 17 08:10:45 g00s: ctate was doing it a couple of days ago. Apr 17 08:10:54 I am working on bringing an ICS feature back to 2.x phones :) Apr 17 08:11:48 which one readme ? Apr 17 08:12:17 an awesome one Apr 17 08:12:40 An awesome feature, or an awesome phone? Apr 17 08:13:02 it's going to be more of a dirty hack that may or may not work and will probably break on a lot of devices. Apr 17 08:13:09 but we will see Apr 17 08:14:01 haw are the backwards compatability libs for ics? Apr 17 08:14:48 I'm starting 2.0 of the app I made earlier to make i work on ICS and goneycomb but I dont want to compromise for 2.X phones Apr 17 08:15:33 i've heard that they suck, we mostly just stick to 2.x-features if they need to be supported Apr 17 08:16:37 hats no good:( Apr 17 08:16:50 they do not suck Apr 17 08:17:11 they are fantastic Apr 17 08:18:09 so I write for my phone and it will wrk(more or less) everywhere Apr 17 08:18:22 as long as you read the documentation Apr 17 08:19:07 Wait... read the documentation? That's a bit 1990s, isn't it? Apr 17 08:19:33 If it's important it'll pop up in your face while you're typing. Apr 17 08:19:46 Steal your keyboard focus, etc. Apr 17 08:19:47 Gumboot: apparently judging by the low qualtiy of most apps on Google Play ;) Apr 17 08:20:40 04:14 < std0s> haw are the backwards compatability libs for ics? Apr 17 08:20:53 sacred Apr 17 08:21:13 I had one other quick questions for more knowledgeable devs - the ndk - how much work involved in writing the translation back to android? Apr 17 08:21:18 they have worked ok for me; i think there were a few nasty bugs in r3 timeframe, but its ok now mostly Apr 17 08:21:42 r4 brought great stability Apr 17 08:21:55 there are still killer bugs in r6 and r7 which need patched Apr 17 08:22:03 but nothing show-stopper Apr 17 08:22:14 what corresponds to iphone (normal-retina) drawables in android drawables (ldpi-mdpi-hdpi-xhdpi)? Apr 17 08:22:25 theres lots of stuff deprecated - makes it kinda hard to work with occsionally (simple cursor adapters) Apr 17 08:22:43 CursorLoader Apr 17 08:23:00 elye, hdpi I think.. Apr 17 08:23:11 no Apr 17 08:23:12 cluncky Apr 17 08:23:18 clunky? Apr 17 08:23:44 I am often wrong - the cursor handling in 2 Apr 17 08:24:07 maybe what I mean is my cursor handling Apr 17 08:24:19 elye: mdpi is a 1x asset, xhdpi is a 2x asset Apr 17 08:24:27 but remember, we don't have fixed screen sizes Apr 17 08:24:34 so if you're thinking like that you've already lost Apr 17 08:24:40 no holds bared Apr 17 08:24:51 today a friend and i hiked 8 miles along creek in the tonto forest to find a long-ago deserted mining operation and ranch; weird thing is that my friend actually knew the lady who's father piloted a helicopter there which crashed and killed everyone on board. the wreckage was still there Apr 17 08:24:57 relative fun all the wawy :D Apr 17 08:25:10 * Gumboot runs off on the most terrible tangent based on a spelling error. Apr 17 08:25:25 seriously Apr 17 08:26:26 well - unless i something else Apr 17 08:26:30 *its Apr 17 08:26:39 std0s, you mean retina=hdpi and normal=mdpi ? Apr 17 08:26:55 wait till you guys see this app.. man I hope it's not already done. Apr 17 08:27:07 I'm not going to look though. I hate the feeling of finding out my idea is done already. Apr 17 08:27:09 I maybe wrond elye you would be better of checking the spec Apr 17 08:27:11 I'll just code it anyway. Apr 17 08:27:25 elye: no Apr 17 08:27:39 elye: mdpi is a 1x asset, xhdpi is a 2x asset Apr 17 08:27:50 but remember, we don't have fixed screen sizes Apr 17 08:28:04 elye, listen to JakeWharton he is more experienced than me I suspect Apr 17 08:28:06 readme: almost all ideas are done, or a mix of other ideas - thats why i almost never sign NDAs :) Apr 17 08:28:18 my idea is excellent Apr 17 08:28:27 g00s: yeah, NDAs are bullshit. I think I've got a pretty good clever hack to do though. Apr 17 08:28:32 If i can pull it off Apr 17 08:28:44 nobody cares about ideas Apr 17 08:28:46 it's about execution Apr 17 08:28:49 there are lots of cows, but not many purple ones Apr 17 08:28:56 precisely Apr 17 08:28:58 JakeWharton: oh, I'm coding it now Apr 17 08:29:23 i almost laughed at the last guy who wanted me to sign an nda, and he didn't even have a business plan - or anything /at all/ to point to as 'here, thats the secret stuff'. just 'ideas' in the sky Apr 17 08:29:30 * readme is just warming up on that execution stuff. Apr 17 08:29:37 readme: yeah I wasn't aiming that at you Apr 17 08:29:41 I dont even care if other people hear it - I have the execution all lined up - I need to build it still but I am certain its possible - and ifI do it wll could e useful it lots of app (combined with gps/nfc) Apr 17 08:29:56 JakeWharton: nah but you have written a lot of stuff, I admire your work Apr 17 08:29:58 just at the notion that "all ideas are done" Apr 17 08:30:05 std0s, JakeWharton ok so retina to normal will be like xhdpi to mdpi Apr 17 08:30:11 I have only published one app, 3 days on market, 6 sales, and 1 small library Apr 17 08:30:18 so I have a lot of work to do before I am at your level Apr 17 08:30:31 i have one app, and I am the only user :) Apr 17 08:30:44 Snuffel: well, at least you use it :D Apr 17 08:30:48 Snuffel: you going to share it soon Apr 17 08:30:48 JakeWharton, I'm gonna let you field tese - don' want to misinform Apr 17 08:30:52 well Apr 17 08:31:00 it calculates my daughter's age Apr 17 08:31:02 :) Apr 17 08:31:05 and it has a widget!! Apr 17 08:31:16 other people would probably want that Apr 17 08:31:18 else-: essentially, yes. you should also supply HDPI at 1.5x. You can safely ignore LDPI Apr 17 08:31:28 yeah Apr 17 08:31:32 remember that you are designing responsive layouts for many screen sizes Apr 17 08:31:41 I need to get the launch count of all installed app, how can I find this information? Apr 17 08:31:48 you can just drop a 960x480 asset into MDPI and expect it to cover a full screen on every device Apr 17 08:31:48 but I just installed it on my HTC One X and i need different widgets for this resolution Apr 17 08:31:51 *CAN'T Apr 17 08:32:00 because it doesn't look very pretty :) Apr 17 08:32:51 JakeWharton, sure, thanks man Apr 17 08:33:14 fuck, just launched google earth 6.2 - fresh install - on a fresh lion install, and it crashes right away Apr 17 08:33:20 but i'm a bit too busy to fix it :( Apr 17 08:33:45 http://groups.google.com/group/android-developers/browse_thread/thread/fa9f7942e1280962?pli=1 Apr 17 08:33:49 check that out Apr 17 08:33:53 you can open the status bar programatically Apr 17 08:35:34 it works \o/ Apr 17 08:37:08 on tablets too? Apr 17 08:37:54 I need a tool to make flowcharts Apr 17 08:37:56 free Apr 17 08:37:57 online Apr 17 08:38:12 I could probably use graphviz... Apr 17 08:38:37 there was a good one I tried online Apr 17 08:38:40 1sec Apr 17 08:39:03 no idea if it works on tablets, I don't have anything handy to test Apr 17 08:39:38 hi Apr 17 08:39:50 http://www.gliffy.com/gliffy/# Apr 17 08:39:55 any idea how i can force my app to call saveinstancestate? Apr 17 08:40:05 i'd like to test killing/restoring of activities Apr 17 08:40:16 hit the home button? Apr 17 08:40:33 and then there's a destroy activity thing in the tooling somewhere Apr 17 08:40:54 saveisntantstate is called on opause isnt t? Apr 17 08:41:03 std0s: afaik if needed Apr 17 08:41:11 onpause marks the activity as killable Apr 17 08:41:24 but it won't kill it (that's what i know and want to validate) Apr 17 08:42:33 there's a checkbox in the dev tools Apr 17 08:42:39 not necesarily - but it might Apr 17 08:42:39 destroy activity on pause or something Apr 17 08:42:50 long press back button Apr 17 08:42:55 http://developer.android.com/guide/developing/debugging/debugging-devtools.html Apr 17 08:43:03 "Immediately destroy activities" Apr 17 08:43:08 yeah - that sounds cool Apr 17 08:43:17 I would use onpuse to stre atyu ed to persit Apr 17 08:43:44 that made no sense - I would use on pause to persist data Apr 17 08:45:03 we are writing tablet apps Apr 17 08:45:19 so in 99.999% of all cases i don't have to deal with memory Apr 17 08:45:28 but in some rare cases i'd like to call save(); Apr 17 08:46:10 monsti: when onSaveInstanceState is called and what it is for is fairly well documented in the sdk docs http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) Apr 17 08:46:11 :) Apr 17 08:47:14 appel1: i know when - i'd asked about a "how can i force it for debugging" Apr 17 08:47:30 JakeWharton: i used yEd Apr 17 08:47:32 the development.apk will do even on a real device :) Apr 17 08:47:58 monsti: heh, shame on me for not reading the whole conversation.. Apr 17 08:48:04 monsti: hi harald Apr 17 08:48:12 hi schatz Apr 17 08:50:29 the maps api is fucking terrible Apr 17 08:50:33 who is responsible for that Apr 17 08:50:44 storkme: a terrible person? ;) Apr 17 08:51:32 storkme: afaik the same team did the android 4 tablet emulator Apr 17 08:51:51 storkme: some guy in 2009 Apr 17 08:51:57 smoking almost the same funny stuff Apr 17 08:52:07 implementing the onTop method in Overlay pretty much ruins any pinch to zoom behaviour Apr 17 08:52:28 storkme: relevant, https://plus.google.com/108284392618554783657/posts/VUU2EqaRott Apr 17 08:52:28 onTap* even Apr 17 08:52:51 eurgh Apr 17 08:53:14 the Earth hasn't changed, bro Apr 17 08:53:27 maybe in 10,000 years we'll get an update Apr 17 08:53:28 i'm mad Apr 17 08:54:21 lov: I think the problem yesterday was I didn't have a C complier Apr 17 08:54:30 if you care at all :) Apr 17 08:55:00 not having a C compiler may be a disadvantage... Apr 17 08:55:11 well if you think about it, we've come a long way in technology in 3 years, and its all taking place on earth, so the earth did change a little. Apr 17 08:55:37 Leeds: I am really new to it and had no clue what I was doing. But from what I read I thought my machine already had one Apr 17 08:55:41 many regions of the earth undergo significantly drastic changes, sometimes within the timespan of a single day. Apr 17 08:55:48 yeah Apr 17 08:56:42 JakeWharton: wouldn't be so bad if they just published the fucking source of it Apr 17 08:57:05 If they publish the source, they would lose 10% of their stock. Apr 17 08:57:07 that would give OEMs less of an incentive to conform to the CDD Apr 17 08:57:11 true, but meh not everything on the public needs to be OSS Apr 17 08:57:18 err everything on the planet Apr 17 08:57:29 apparently it being 5am is affecting me more than I though Apr 17 08:57:32 thought* Apr 17 08:57:40 * raymonddull should give up while behind Apr 17 08:57:50 kinda difficult to work with a terrible api if you don't have the source to hand Apr 17 08:58:47 2am Apr 17 08:58:48 time for bed Apr 17 08:58:49 night Apr 17 08:58:54 yeah 5am here lol Apr 17 08:59:07 JakeWharton: you doing your exercise tomorrow morning ? Apr 17 08:59:09 good morning! Apr 17 08:59:17 g00s: ... Apr 17 08:59:22 :| Apr 17 08:59:29 going to pretend I left before you said that Apr 17 08:59:34 hehe Apr 17 08:59:46 lol Apr 17 09:02:31 is there a way to resize a background image depending on screen size..maybe streach the image..? it wont look good though.. Apr 17 09:08:01 what's a faster way of storing some tabulated data than csv? Apr 17 09:08:11 faster to load, i mean Apr 17 09:12:35 csv should be pretty fast Apr 17 09:12:56 think about it. there's a single character separating each element of data. Apr 17 09:13:03 with the exception of a newline Apr 17 09:13:13 doesn't get much simpler. Apr 17 09:13:18 true i guess Apr 17 09:13:25 probably the api you have is slow, I bet Apr 17 09:13:30 if you found it slow Apr 17 09:13:35 i wrote it myself Apr 17 09:13:42 run it in traceview Apr 17 09:13:42 it could be possible to improve csv just by storing length of each element at start of a value, and to store number of elements per row explicitly as the first value Apr 17 09:13:47 try to speed it up Apr 17 09:14:18 so you start from reading the first 4 bytes, that's the columns per row, then you just have a very tight loop that reads 4 bytes, then the number of bytes indicated by that, and pushes out a line when the column count is full. Apr 17 09:14:28 I can't think of anything more efficient than that Apr 17 09:14:51 feel free to use 2 bytes as lengths if you think you can live with that limitation, or even just 1 byte Apr 17 09:15:11 How do I get the default values of my preferences in a ServiceIntent/BroadcastReceiver/etc.? Apr 17 09:16:06 this is better than csv because it avoids having to walk the data line multiple times, first by scanning the newlines, then scanning the columns, handling quoting, etc. Apr 17 09:17:41 storkme: minimize the amount of copying your parser does.. if you're calling "split" for example, you're copying stuff an arseload of times.. the fastest way would just be to read each character from the InputStream and process it in place Apr 17 09:18:02 http://pastebin.com/fFySeR3p Apr 17 09:18:06 i'm not calling split Apr 17 09:19:09 lots of string creations Apr 17 09:19:09 Hmh. Well, that does not look like a bad implementation to me. Apr 17 09:19:21 maybe he wants it to be really really fast Apr 17 09:19:32 it doesn't look alarming to me either Apr 17 09:19:39 Hi All! Apr 17 09:19:47 String objects, but these reference the original string, so no data copying should happen. Or would not happen in official java class library at least. Apr 17 09:19:58 i would like it to be faster if possible Apr 17 09:20:02 it's a very large data set Apr 17 09:20:05 i will run a trace Apr 17 09:22:10 maybe store as xml and run some xslt to find wht you want Apr 17 09:22:14 storkme: the implementation does not leave much room for improvement that I can see, I'm afraid. Apr 17 09:22:32 storkme: https://github.com/tom-dignan/android-cpumonitor/blob/master/src/com/tomdignan/UltimateResourceMonitor/URMCPUStatReader.java -- take al ook at my getReading method Apr 17 09:22:37 std0s: that would likely be at least 10 times slower if not 100 times slower. Those technologies are no speed demons. Apr 17 09:22:40 that used to have lots of string creations then I spent a day optimizing it Apr 17 09:22:49 if you parse in that style it will be blazing fast Apr 17 09:22:56 either that or do it iincrementally - do its not noticed in the ui thread Apr 17 09:23:24 so take so much of it - process, pass on then get the rest Apr 17 09:23:39 its not quicker but will seem it Apr 17 09:23:59 (breaks up the io wait) Apr 17 09:24:39 wheres the data to start with? Apr 17 09:26:18 trying to read the trace file at the moment :/ Apr 17 09:26:51 the data is in a csv file in assets, it contains a bunch of points to display on a map (4000ish) so i sorta need to load it before i can show the user anything Apr 17 09:27:09 readme: I think you should have omitted getCpuName() entirely and just return a Map or something. Still simpler. Apr 17 09:27:26 alankila: i think i might have ended up not using getCpuName Apr 17 09:27:31 probably need to ditch it Apr 17 09:27:36 storkme: ok, but 4k rows doesn't seem a whole lot to read in fact. How long does it take? Apr 17 09:27:43 about 1400ms Apr 17 09:27:48 i stopped working on it a few weeks ago and let it sit around and realized it would go to waste if it sat in a vacuum Apr 17 09:27:51 vaccuum Apr 17 09:28:22 storkme: should be blazing fast using NIO and fixed size records Apr 17 09:28:42 hi all Apr 17 09:29:09 if you are on GB + , use direct buffer allocation (memory mapped io) Apr 17 09:29:18 froyo had some shitty ass bug Apr 17 09:29:35 anyhow, even without direct allocation, nio should be fast Apr 17 09:30:03 hm Apr 17 09:30:05 I think something is wrong but not sure what. Reading should be faster than this. Apr 17 09:30:43 storkme: so you have 4000 ish coordinates ? Apr 17 09:30:59 basically 2 columns per record ? Apr 17 09:31:13 I am just trying with Fragments an support package. I divided my app in 2 fragments. Originally I had a tab vith 2 viewsgroup and I added at runtime Views to the second ViewGroup by the first. How could I do it now with Fragments ? Apr 17 09:31:54 I got a lazy regex-based parser when I had to deal with one shitty format: https://github.com/lioncash/droidsound/blob/master/src/com/ssb/droidsound/async/Scanner.java#L431 Apr 17 09:33:50 I don't think I've ever seriously benchmarked what the speed is... It's 30k lines in that database but each tends to split to multiple database rows Apr 17 09:35:21 storkme is this data static? as in does it change or not Apr 17 09:36:01 i suspect storkme may have passed out looking at nio Apr 17 09:36:08 ok my connection is totally shit Apr 17 09:36:11 alankila: cool Apr 17 09:36:17 its kinda a bizarre api Apr 17 09:36:32 readme, do you use Fragments ? Apr 17 09:36:57 tried to do a map activity following the tutorial on developer.android.com but i get this error on log http://pastebin.com/8QS7JuYj Apr 17 09:37:15 heres the tutorial i used http://developer.android.com/resources/tutorials/views/hello-mapview.html Apr 17 09:37:40 aLeSD: i've used them once, in my cpumonitor app, and probably didn't use all the best practices of it Apr 17 09:37:40 readme, I realized that I have to use them to import the VectorView of my old app Apr 17 09:38:07 in any event, I can add as many cpu monitors as I want to the app easily and they are all fragmnets Apr 17 09:38:22 if you run it on a phone with 8 cores it spits out 8 fragments Apr 17 09:38:24 ah Apr 17 09:38:33 but only as the cores are activated, so if the core isn't on, it doesn't show Apr 17 09:38:43 kind of put it on the backburner for now though Apr 17 09:39:09 I am searching a way to tell to a fragment to add a View from another Fragment Apr 17 09:40:04 aLeSD: um, I kind of felt like a fragment should have it's own UI Apr 17 09:40:05 aleSD, abusive of the android framework as ever Apr 17 09:40:12 ^^ Apr 17 09:40:52 basically the way I see it is you use a fragment when it doesn't quite make sense to write a custom view. Apr 17 09:41:24 you can instrument several views in one logical component with a fragment Apr 17 09:41:32 but anyway, I'm the king of android framework abuse myself in droidsound. Application.sendBroadcast(i) /* yeaaah */ Apr 17 09:41:55 so the eclipse profiler kinda sucks Apr 17 09:41:59 although to be honest, why the fuck can't you send a broadcast from a static context, anyway Apr 17 09:42:20 by that i mean it's awful un-intuitive and difficult to use Apr 17 09:43:07 mmm ... I imagine I will need to redesign my app Apr 17 09:44:18 storkme: yes, it was hard for me to find. Apr 17 09:44:32 do you know of a better alternative readme ? Apr 17 09:44:44 you can run traceview outside of eclipse too Apr 17 09:44:50 "instrument" Apr 17 09:45:06 i guess you need to get a trace first though Apr 17 09:45:10 no idea how to do it yet Apr 17 09:45:12 seems like most of my cpu time is spent in parseDouble Apr 17 09:45:55 ... but in the end I have to use fragments as indipendent activities ? Apr 17 09:46:14 "you can apparatus several views into one fragment"; "you can appliance several views into one fragment"; "you can utinsel several views into one fragment" Apr 17 09:46:34 pragma-, I red it Apr 17 09:47:10 see how "instrument" is a dumb word used by non-tech bloggers? Apr 17 09:47:12 storkme: why parse doubles :) Apr 17 09:47:26 It's obvious you get your knowledge from blogspot. Apr 17 09:47:39 storkme: here is a faster way of parsing a number from character data Apr 17 09:47:42 http://pastie.org/3803375 Apr 17 09:47:55 POWERS_10 is just, the powers of 10. Apr 17 09:48:21 since you're casting to int you could ignore characters on the right of the decimal point Apr 17 09:48:38 as g00s points out :P Apr 17 09:48:46 they're decimal numbers Apr 17 09:48:53 but you cast it to int.. Apr 17 09:49:10 read it as a float, multiply by 1e6, cast to int Apr 17 09:49:14 i could just preprocess Apr 17 09:49:18 oh, so you need the dec. Apr 17 09:49:20 that's what I should do. Apr 17 09:49:35 readme: why didn't you just link the blogspot post where you pasted that code from? Apr 17 09:50:33 save the value of tmp.indexOf(',') Apr 17 09:50:38 instead of calling it twice Apr 17 09:51:51 * hackkitten wobbles on top of g00s's head~ Apr 17 09:52:40 * g00s teeters Apr 17 09:53:29 * hackkitten flashes 'hello' at g00s :D Apr 17 09:53:47 hackkitten: :D i saw flashing pumpkin in here a few days ago XD Apr 17 09:53:52 :o Apr 17 09:53:58 yum, pumpkin~ Apr 17 09:54:01 hackkitten: Please stop bragging about your sexual identity. Apr 17 09:54:18 o.o Apr 17 09:54:24 who is doing what now? Apr 17 09:57:49 * hackkitten proceeds to signal morse code with her lantern at g00s :D Apr 17 09:57:56 Gross. Apr 17 09:58:05 * pragma- ignores hackkitten. Apr 17 09:58:13 * hackkitten cheers~ Apr 17 09:59:03 I am not so naive that I cannot put two + two together, e.g., your 30 minute dialogue last night about how you have both boy and girly bits, and your little comments right now... Apr 17 09:59:58 Do you even know anything about Android development? Apr 17 10:01:09 Is there a tool to convert images to BLOB ? (So I can insert it into a DB Apr 17 10:02:04 nvm :P Apr 17 10:04:23 * hackkitten notes that pragma- is a math genius Apr 17 10:05:38 Hey, would I be right in thinking that mRouteNo = intent.getIntExtra("HIGHESTROUTE", 1); will not return 1 if intent is null? Apr 17 10:06:06 I think that's why my application is crashing. Apr 17 10:08:59 Ankhwatcher: of course not. You cannot call a method on "null" Apr 17 10:09:15 DashCC: ah good Apr 17 10:09:31 the my fix will work Apr 17 10:09:40 s/the/then Apr 17 10:10:28 :) Apr 17 10:10:41 hackkitten: how is your latest game doing ? Apr 17 10:11:54 g00s > sales? sold 8 copies in 4 days :D Apr 17 10:12:09 * hackkitten needs to find ways to promote it :( Apr 17 10:12:10 hackkitten: linky? Apr 17 10:12:24 will applying weight 0 to everything have the same effect as applying weight 1 to everything? Apr 17 10:12:33 http://www.rtl.nl/xl/#/u/13f6c5ba-1745-3c85-bdd5-27e2e72bb56e Apr 17 10:12:37 er Apr 17 10:12:44 https://play.google.com/store/apps/details?id=com.nyanko.heimen_no_heiwa Apr 17 10:12:45 there Apr 17 10:12:54 * hackkitten whacks Windows for being silly Apr 17 10:16:13 hackkitten, get romainguy to review it :) Apr 17 10:16:17 on some phones client says theres a line appearing that i dont even see on my nexus one, i think its related to the top of the tab host (altho my tabs are at bottom), any idea show i get rid of this line? Apr 17 10:18:53 hackkitten: how tablet friendly is it? Apr 17 10:21:36 google is my hero \o/ Apr 17 10:21:59 well, that's my game purchase for the week Apr 17 10:27:50 if anyone is interested, i switched my parsing code to using parseInt instead of parseDouble (by changing the format of the file) and it's now about twice the speed :/ Apr 17 10:28:53 Should this code call close on the cursor and the db? public int highestRoute() { Apr 17 10:28:57 SQLiteDatabase db = getReadableDatabase(); Apr 17 10:28:59 int highRoute = 0; Apr 17 10:29:02 try { Apr 17 10:29:04 Cursor results = db.rawQuery("SELECT MAX(" + ROUTE_NUMBER + ") FROM " + TABLE_NAME, null); Apr 17 10:29:07 if (results.moveToFirst()) { Apr 17 10:29:09 highRoute = results.getInt(0); Apr 17 10:29:12 } Apr 17 10:29:15 results.close(); Apr 17 10:29:17 } catch (Exception e) { Apr 17 10:29:20 Log.e(FixOpenHelper.class.getName(), "Unable to get highestRoute.", e); Apr 17 10:29:22 } Apr 17 10:29:24 Apr 17 10:29:27 return highRoute; Apr 17 10:29:30 sorry Apr 17 10:29:32 http://pastebin.com/LJyS0Lcn Apr 17 10:29:53 whoa there Apr 17 10:29:56 smooth Apr 17 10:30:34 have you thought about using this method instead: http://developer.android.com/reference/android/database/DatabaseUtils.html#longForQuery(android.database.sqlite.SQLiteDatabase, java.lang.String, java.lang.String[]) Apr 17 10:31:27 storkme: I had not, what are it's advantages? Apr 17 10:31:43 I need a bit of help. Apr 17 10:31:44 Ankhwatcher: nice pastage bro Apr 17 10:31:56 one line of code vs 10-15 Apr 17 10:32:15 I want to run a function that copies assets to the file storage to run in a thread and display a "sand clock" while doing so Apr 17 10:32:24 hello Apr 17 10:32:39 (thread not required if possiblw w/o) Apr 17 10:32:40 hello RobinB Apr 17 10:33:22 readme: ta, I need to find a pastebin alternative that replaces whatever is in your clipboard with a link after you paste. Apr 17 10:33:42 readme: or create pastebin for idiots Apr 17 10:36:02 Ankhwatcher: if you were using linux Apr 17 10:36:07 xclip -out | pastebinit Apr 17 10:36:21 that will flush the clipboard out to a pastebin and print a link Apr 17 10:36:39 ./msg nickserv@services. register Un4given charliepage@hotmail.com Apr 17 10:37:01 well, that was meant to be a /msg... Apr 17 10:37:02 igzat: nice Apr 17 10:37:08 Wicked. Apr 17 10:37:18 Good thing it's not for me! Apr 17 10:37:30 That's what they all say! Apr 17 10:38:32 yeah, that's why I tend to /msg nickserv hi Apr 17 10:39:56 Can I reboot the andoird device from my application? Apr 17 10:40:06 am i right in saying traceview doesn't work for constructors? Apr 17 10:40:12 I was meaning to msg self to remind myself for later on to give a buddy an easinmg into irc lol. Apr 17 10:40:41 igzat: you can tell him not to do that for a start Apr 17 10:41:01 * igzat goes back to lurking and using status window to type messages to self instead of in channel. Apr 17 10:41:18 Ankhwatcher : Eh? Apr 17 10:41:57 igzat: rule 1: don't paste your passwords into chat... Apr 17 10:41:59 Ankhwatcher : Oh, yea lol :P Apr 17 10:42:23 :) Apr 17 10:43:47 who even still uses hotmail Apr 17 10:45:14 Ankhwatcher : I have a feeling this will be something mentioned not to do heh. Apr 17 10:49:18 storkme: I do! You can hook it to gmail through pop so you never have to visit their terrible website! Apr 17 10:50:23 okay it's kind of a loose definition of 'use' that I'm following Apr 17 10:59:01 has anyone used accelerometer/giroscope sensors to detect a phones movement? Apr 17 10:59:36 oh, I'm interested in that too :D Apr 17 10:59:53 I'm in the early planning stages and would like to know any pitfalls Apr 17 11:00:14 oh, hey std0s :) Apr 17 11:00:30 I know I need a listener Apr 17 11:00:58 foreach but then I think I have to so som clever mathson the readings to keep it accurate Apr 17 11:02:10 I wanted to know rotation as well to make a game Apr 17 11:03:34 i would quite like to use the phones accelerometer/gyroscope to detect the human heartbeat Apr 17 11:03:37 any suggestions? Apr 17 11:04:56 will the phone be external or inserted into a body oriface Apr 17 11:07:52 storkme: do an FFT on sensor data (possibly after noise reduction) and scan frequency ranges corresponding to normal heart rhytyms? Apr 17 11:07:55 no insertion Apr 17 11:08:01 MDijkstra: that's what i was thinking Apr 17 11:08:20 im trying to launch a MapActivity, the activity fires up but the map tiles is not displatying. I have INTERNET permission on the app. Also i get an error message "Couldn't get connection factory client", i have also generated a apikey from debug.keystore . where do i do wrong? Apr 17 11:08:33 if you assume the frequency is constant it must be possible to extract a coherent value Apr 17 11:09:22 storkme: should be easy to detect since the heart valves close and open in sequence Apr 17 11:09:35 should produce a characteristic pattern in the FFT Apr 17 11:09:41 you'll need a new api key per workspace Apr 17 11:10:41 storkme: I'm actually meeting a client in a couple of hours who might ask me to develop the same kind of system Apr 17 11:10:49 nevermind, looks like i've been beaten to the punch: https://play.google.com/store/apps/details?id=si.modula.android.instantheartrate&hl=en Apr 17 11:10:53 joelmob: be sure to call populate() inside your adapters constructor Apr 17 11:10:57 and maybe map.invalidate() Apr 17 11:10:57 except for lung sounds Apr 17 11:11:05 http://code.google.com/p/android-heart-rate-monitor/ Apr 17 11:11:37 that's pretty cool Apr 17 11:11:55 is that with the light sensor? Apr 17 11:12:04 with the camera Apr 17 11:12:23 which, you could say, is a light sensor Apr 17 11:12:31 DashCC, i dont have such a method populate() in mapactivity Apr 17 11:12:42 MDijkstra: sounds like a cool project Apr 17 11:12:48 yes, thats why I said inside your Adapter Apr 17 11:12:55 but you have map.invalidate Apr 17 11:13:01 I thought someone had done something similar with the screen dimmer Apr 17 11:13:17 DashCC, yes i have invalidate Apr 17 11:14:25 are you getting grey tiles joelmob ? Apr 17 11:14:35 yep grey tiles std0s Apr 17 11:14:52 it could of course also be the map key Apr 17 11:15:03 mine was always api key related Apr 17 11:15:54 i used a fresh generated key from my home dir in windows Apr 17 11:16:00 with password android Apr 17 11:16:32 well Apr 17 11:16:39 did you delete and old android.secure file there? Apr 17 11:16:50 *any Apr 17 11:17:00 no i didn't thanks i will try that Apr 17 11:17:08 typically you use your debug key to generate a google map API key with google Apr 17 11:17:12 when you are developing Apr 17 11:18:23 with the md5 sum - that was fun to get on windows Apr 17 11:20:00 what alias is used in the keyfile? i didn't specify any alias when i generated Apr 17 11:20:33 any1 knows if you can change the style of the search dialog? Apr 17 11:23:30 joelmob, check the"preparing for release" on ad - I think its explained there Apr 17 11:30:53 yay, i dont get that coonnection factory client error but tiles not displaying anyway, but it seems to retrieve data Apr 17 11:38:11 hi guys Apr 17 11:38:13 hi Apr 17 11:38:26 i m new to this channel and android Apr 17 11:39:24 <`z> hi Apr 17 11:40:13 wazzup Apr 17 11:41:28 sadfas Apr 17 11:41:40 i am facinhg one big problem Apr 17 11:41:48 *facing Apr 17 11:42:29 i have posted my prob here ,can anyone help me its urgent http://stackoverflow.com/questions/10172919/how-to-change-the-marker-on-onitemselected-listener-of-gallery-in-android Apr 17 11:43:01 I hope master's of android will help me Apr 17 11:45:36 hi guys Apr 17 11:45:49 anyone here with NPAPI plugin experience? Apr 17 11:47:01 I've compiled a simple NPAPI plugin using ndk and I've ".so" file, problem is that I'm not able to get browser load it. Apr 17 11:47:02 please help me anyone Apr 17 11:51:53 any1 knows if you can change the style of the search dialog? Apr 17 11:52:36 according to http://stackoverflow.com/q/9072262/1214236 i can't Apr 17 11:56:38 check http://developer.android.com/guide/topics/ui/actionbar.html#ActionView under 'custom action view' Apr 17 11:58:40 that @ me Squarepy? Apr 17 11:58:54 indeed Apr 17 11:59:26 well my main question is for SearchDialog Apr 17 12:00:00 (for pre honeycomb) Apr 17 12:00:06 unless you suggest to not use a SearchDialog Apr 17 12:00:10 and make a custom search view Apr 17 12:03:16 also; where under 'custom action view' .. ? =$ Apr 17 12:06:19 alowaniak, yeah got a bit lost myself, I think you'll have create a custom box to alter style Apr 17 12:06:33 fml :/ Apr 17 12:07:18 hmmye i'm not sure if i'm good enough to do that... Apr 17 12:12:03 can anyone help me too here Apr 17 12:14:00 please answer me for this http://stackoverflow.com/questions/10172919/how-to-change-the-marker-on-onitemselected-listener-of-gallery-in-android Apr 17 12:14:38 alowaniak, take a look at http://actionbarsherlock.com/, it might be handy as it provides action bars for android <2.3 Apr 17 12:14:58 minus the , Apr 17 12:15:12 well ye Squarepy Apr 17 12:15:13 the thing is Apr 17 12:15:22 use that already Apr 17 12:15:27 but it doesn't have support for SearchView Apr 17 12:15:48 I could make my own SearchView in theory I guess? Apr 17 12:15:51 but I'm not that good tbh Apr 17 12:16:59 ok I see that now, a pity Apr 17 12:33:18 OK - I'm a Noob when it comes to Android developement, but I hope someone could point me in the right direction: I want to scrape some data off a page, and present it in a HTML5 app which I'm trying to write - Any suggestions on where I can read up on how to do such a thing? Apr 17 12:34:35 phellarv: take a look at http://jsoup.org/ Apr 17 12:35:54 page scraping is noob Apr 17 12:36:14 I hope they change an HTML element soon after you release your app. Apr 17 12:36:39 If you control the webpage it's safe Apr 17 12:37:14 He may not even want to parse html elements but may have a controlled set of data Apr 17 12:37:18 like CSV etc Apr 17 12:38:37 pragma-: Ofc, and as I said - I'm a noob. Apr 17 12:39:30 Mikellip: I control the content of the page, but not the actual server. Apr 17 12:40:25 then it's safe to parse Apr 17 12:40:28 If I controlled the server I would make something on the server which delivered some sanely formatted blob to my app Apr 17 12:41:07 But hey, I have to make use of what I got. Apr 17 12:41:29 hiring and setting up a virtual machine is not expensive for testing purposes Apr 17 12:41:49 if you really wanted something else :) Apr 17 12:43:25 Mikellip: No, ofc - I can do this in 30 minutes where I work, but this is for the soccer-team where my son plays, and his team is just 1 out of 15-20 teams. So the part of the server which I edit content is just a small part of the whole CMS. Apr 17 12:44:29 Hmm - I might scrape it from my personal server, and make an easily accessible blob from there. Apr 17 12:45:41 Then I can handle changes of input fast, and adjust, so the output stays the same always. Apr 17 12:45:46 write a plugin for the CMS and ask the server admin to install it Apr 17 12:47:34 phantasmoholic_: Perhaps. But I probably won't stick my fingers in that hornets' nest. I might suddenly end up as the server admin myself, and _that_ I don't have time for. Apr 17 12:48:08 is the horneys nest slang for vagina? Apr 17 12:49:37 .... Apr 17 12:50:00 >.< Apr 17 12:58:39 in my thead I need a reference to my Activity. How can I "pass" that? Apr 17 12:59:01 mCopyDataThread = new CopyDataThread(new CopyDataMain(), "CopyDataThread"); Apr 17 12:59:17 activity.class i think Apr 17 12:59:35 I mean - how would I pass it to my thread class? Apr 17 12:59:42 Doing it wrong. Apr 17 12:59:49 Redesign with new patterns. Apr 17 12:59:54 or can I make the thread a "child" of the activity? Apr 17 13:00:14 a background thread? Apr 17 13:00:24 yes Apr 17 13:00:38 and you want to what? Apr 17 13:01:09 run my game, and have a thread copy some files. My game is displaying a "loading" meanwhile Apr 17 13:02:16 he wants to do X, but doesn't know how. He thinks he can solve it using Y, but don't know how to do that, either. He's asking about Y, which is a strange thing to want to do... Apr 17 13:02:21 new CopyDataThread(activity, blablbala) Apr 17 13:02:30 yeah you probably dont want to do that though Apr 17 13:03:09 KungPhoo: you should almost certainly not have a reference to your actual activity Apr 17 13:03:18 if you need a reference to a Context, give an ApplicationContext reference Apr 17 13:03:27 (which you can get by calling getApplicationContext() on a context) Apr 17 13:03:39 this way, you know that your context isn't stale, and you're not possibly leaking memory. Apr 17 13:06:02 ok Apr 17 13:07:25 or try public static Activity staticThis; and in onResume do staticThis = this; and then refere to Activity.staticThis in your thread Apr 17 13:07:31 that's what I would do if I didn't know what I was doing Apr 17 13:07:36 it seems right Apr 17 13:07:45 lol Apr 17 13:20:27 .net Apr 17 13:21:39 hi Apr 17 13:21:49 any one can help me Apr 17 13:21:51 herE Apr 17 13:22:29 Android03: read the topic -> " Ask your question, don't ask to ask " Apr 17 13:23:13 it's been a minute, he just closed the window and his connection timed out. Apr 17 13:23:20 any moment now Apr 17 13:23:59 Aaronds: sorry man ,i posted her4e one question nobody responded here is my problem http://stackoverflow.com/questions/10172919/how-to-change-the-marker-on-onitemselected-listener-of-gallery-in-android , can u please help me Apr 17 13:24:19 i had a stack of fucks to give out in january Apr 17 13:24:23 but i used them all Apr 17 13:24:50 christ Apr 17 13:24:59 try posting that again, but this time make it a coherent thought Apr 17 13:25:11 I literally don't know what you're asking about in that post and I'm not going to take the time to figure it out Apr 17 13:25:26 you also post a GOOGLE SEARCH RESULT POINTING TO STACKOVERFLOW as something else you tried? Apr 17 13:25:29 I don't even know what the fuck Apr 17 13:25:52 read this, then try again: http://catb.org/~esr/faqs/smart-questions.html Apr 17 13:26:44 lov: I am trying to change the marker on OnItemSelected Listener if gallery.Actually i have a gallery showing list of items and a map showing marker of the respected items in gallery .i want to change the marker ( from blue to orange ) when i select an item from the gallery .how can i do it. Apr 17 13:28:19 how to set buld config DEBUG as false? Apr 17 13:28:50 I have been asked to implement a dynaPDF library http://download.dynaforms.de/DownloadPage Apr 17 13:29:14 lov: and that post is not google search , that was posted by me in stack overflow Apr 17 13:29:31 there is a download for linux 86x, but as far as I thought this is for the intel 32 processor Apr 17 13:29:46 would I be right in thinking the dynaPDF library is not compatible with android? Apr 17 13:29:56 how to set DEBUG constant to false? Apr 17 13:30:23 I have little experience in native programming so I have no idea Apr 17 13:30:57 Hi everyone, anyone has a clue on how to implement "scrollable tabs" in actionbar ? like mentioned in "Action Bar Elements" under http://developer.android.com/design/patterns/actionbar.html ? I'm only managing to get info on "fixed tabs", nothing on scrollable :( Apr 17 13:31:01 now i have asked a question and nobody is responding Apr 17 13:31:38 Android03: as lot said. The post makes no sense. Try re-wording everything Apr 17 13:32:05 Android03: maybe its because English isn't your first language or you are high but try again Apr 17 13:32:49 does anybody know how to set DEBUG constant in BuildConfig generated class to false? Apr 17 13:32:53 jiduvah : oh you want me to correct gramatical mistakes in my ques? Apr 17 13:33:21 Android03: I don't care about grammar as such but people have to be able to understand what you are having problems with Apr 17 13:35:11 ive got a imagebutton (aligned left) and a textview (aligned center) in a relative layout, but if the textview gets wider (like by entering more text) its forcing the image button to go smaller, i cant work it out this is not the behaviour that should happen right? Apr 17 13:35:23 jiduvah: I want to change the overlayItem on OnItemSelected Listener of galleryview in map,Actually i have a gallery showing list of items and a map showing overlayItems of the respected items in the gallery .i want to change the overlayItem ( from blue to orange ) when i select an item from the gallery .how can i do it? Apr 17 13:36:37 jiduvah : is my question understood to you? Apr 17 13:37:19 Android03: no how do you have an overlay item on OnitemSelected Listener of gallerview in map? Apr 17 13:38:22 Android03: its easier if you are specific about the problem. Do you have any idea how to start? Apr 17 13:40:28 hi, when installed the latest revision of the developer tools on debian 6 is the native x86 supported by default when I create an emulator ( since it still seems very slow ) Apr 17 13:41:54 I've got 3 tables that I'd like to take up an even amout of space given their place on the screen...how do I do that? Apr 17 13:43:36 Guys sorry for asking again.. but I searched a lot of forums/groups without finding anything relevant :( Does anyone knows a way to implement the "Scrollable Tabs" UI Pattern like it is mentioned in http://developer.android.com/design/patterns/actionbar.html Apr 17 13:44:18 jiduvah : i have layout inside which i have a mapview and galleryview aligned vertically.i am fetching the data from the Database and giving data to the map view which locates overlayitem fromgeo points getting from the DB and some images i m showing in the gallery view which are related to the overlayItem in the map ,i want to change the overlayitem on the map (to show it as selected) while onItemSelectedListener of the galle Apr 17 13:45:48 Android03: so you already set the overlay item? Apr 17 13:46:03 Android03: you just need to change it Apr 17 13:46:15 Android03: holy shit. Apr 17 13:46:22 Android03: is english not your first language? Apr 17 13:46:57 india. Apr 17 13:47:18 Android03: You need to either find someone who speaks english to rewrite your question for you, or you need to figure out how to rewrite it so that we can actually understand it Apr 17 13:47:22 otherwise, no one will be able to help you Apr 17 13:48:12 lov:no englosh is not my first langauge Apr 17 13:48:20 let me rewrite it againg Apr 17 13:48:23 again Apr 17 13:57:07 Geocoding is the process of finding associated geographic coordinates (often expressed as latitude and longitude) from other geographic data, such as street addresses, or zip codes (postal codes) Apr 17 13:57:24 how to set DEBUG constant in BuildCOnfig class to false? anybody? Apr 17 13:57:30 that's from Wikipedia; I cannot get that information from an IP/hostname? Apr 17 13:57:51 http://stackoverflow.com/questions/10192612/dynapdf-compatibility-with-android a question I am currently quite clueless about if anybody would like to help Apr 17 13:58:29 Sicp: that's called IP Geolocation Apr 17 13:58:37 the concept exists, so Apr 17 13:58:42 Sicp: it's also unreliable; all AOL users (yes, they exist) will come from Virginia Apr 17 13:58:52 damn.. Apr 17 13:59:11 it's better than nothing, but if you're relying on accuracy for more than a convenient optimization you should be very careful Apr 17 13:59:16 we have not announced this feature yet, but the plan was that when SSHed to a server from our app, you will be able to see where that server is Apr 17 13:59:21 you definitely don't want to use it for security (i.e. only US visitors) Apr 17 13:59:26 after you having provided the hostname/IP of that server Apr 17 13:59:45 Sicp: it's possible but it won't be totally reliable Apr 17 13:59:49 it is seeming more and more useless of a feature the more I discuss it Apr 17 13:59:54 you'll also need to spend money on it, probably Apr 17 14:01:43 jiduvah: sorry i was disconnected Apr 17 14:02:00 lov: could u understand my english now Apr 17 14:03:11 hello Apr 17 14:03:28 what solution you guys can suggest me? Apr 17 14:04:07 Android03: you have already implemented the marker changing colour when you click on the marker. Then take what you did and put it in the OnclickListener for your gallery Apr 17 14:04:32 jiduvah: I would guess you just need to some how reference the correct markerId Apr 17 14:05:04 ? Apr 17 14:05:10 jiduvah : hey did u check my code Apr 17 14:05:42 Android03: no you didn't ask Apr 17 14:05:51 Android03: you asked how to do it Apr 17 14:06:49 jiduvah : see this link of stackoverflow where i asked question .http://stackoverflow.com/questions/10172919/how-to-change-the-marker-on-onitemselected-listener-of-gallery-in-android Apr 17 14:07:01 my code is also there Apr 17 14:08:11 jiduvah : i did lots of trails but no luck Apr 17 14:09:24 jiduvah : actually for changing colour of marker on clicking is done through selector file Apr 17 14:10:06 Android03: what is a selector file? Apr 17 14:11:22 jiduvah : i have a selector file where i am giving the state of the markers state_selected for orange marker and blue for default marker Apr 17 14:11:59 Android03: so do that onGalleryClick instead of onMapClick Apr 17 14:12:37 no i am not doing anything omMapClick or onTap of marker Apr 17 14:13:11 Android03: Your question says differently Apr 17 14:13:16 "i have done changing marker on tapping it" Apr 17 14:13:27 hrm, I have a layout question, could someone take a look at: www.insayne.net/lq.png and tell me how I am best to do this? Apr 17 14:13:45 Android03: I think there is a language barrier I cannot help Apr 17 14:13:46 sorry Apr 17 14:14:06 check this i have done the same thing for that https://github.com/commonsguy/cw-advandroid/tree/master/Maps/ILuvNooYawk Apr 17 14:15:14 jiduvah: oh sorry i ll try to write correct but please help me Apr 17 14:15:27 Android03: I don't think its possible Apr 17 14:15:32 I cannot communicate with you Apr 17 14:16:07 jiduvah : i have used commonsguys code for that Apr 17 14:16:19 jiduvah : https://github.com/commonsguy/cw-advandroid/tree/master/Maps/ILuvNooYawk Apr 17 14:16:31 use it again then, on the onlclick for gallery Apr 17 14:17:03 hi, when installed the latest revision of the developer tools on debian 6 is the native x86 supported by default when I create an emulator ( since it still seems very slow ) Apr 17 14:26:22 Have any of you guys got a chargeback? Google is asking me for proof of delivery etc Apr 17 14:26:40 proof of delivery for an app? Apr 17 14:27:07 yeh, it looks like a standard google checkout email Apr 17 14:27:16 mahamoti: uhm, no Apr 17 14:27:17 obviosuly not tailored for Android Apr 17 14:27:20 er Apr 17 14:27:21 heh Apr 17 14:27:27 Magnets: ^^ Apr 17 14:27:46 i think it's a great idea Apr 17 14:27:51 what is? Apr 17 14:27:52 Magnets: I happen to receive "Order XY has been cancelled by Google" mails Apr 17 14:28:00 just the other day I ordered an app that was delivered at my neigbours Apr 17 14:28:05 I never saw it again Apr 17 14:28:06 :) Apr 17 14:28:07 hah Apr 17 14:28:12 No, it's not just the regular order cancel emails, the buyer is disputing the payment with his credit card Apr 17 14:28:17 Snuffel: it was delivered to YOUR MOM! Apr 17 14:28:23 Ge0rG: oh Apr 17 14:28:28 Ge0rG: she lives quite far from me Apr 17 14:28:30 bummer Apr 17 14:28:51 hahaha Apr 17 14:28:55 http://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=137996 Apr 17 14:29:07 says they automatically deduct if the cost is <$10 Apr 17 14:29:17 but it is less than $10... Apr 17 14:29:34 I have a small android project in my system it work very fine under Titanium Studio, Android simulator but i want to run my app on my tab Apr 17 14:29:41 so basically what i can do ? Apr 17 14:29:56 harsh343: uh, install it on your tab. Apr 17 14:30:10 http://developer.android.com/guide/developing/device.html Apr 17 14:30:21 I have no fucking clue what "Titanium Studio" is btw. Apr 17 14:30:27 also, it's an emulator, not a simulator. Apr 17 14:30:39 lov, yes Apr 17 14:30:40 * Ge0rG wonders if he's going to get his first chargeback now, that a user requested "money back" via his google play app comment... Apr 17 14:30:57 http://www.appcelerator.com/products/titanium-studio/ Apr 17 14:31:10 the fucking pictures on the very front of the page of titanium simulator shows a "run on device" target. Apr 17 14:31:13 ah, asking for support via comments, that's classic Apr 17 14:31:17 cmon son. Apr 17 14:31:19 lov, but hows Apr 17 14:31:20 ? Apr 17 14:31:25 to install on tab Apr 17 14:31:29 10:30:16 < lov> http://developer.android.com/guide/developing/device.html Apr 17 14:31:30 "doesn't work, plz fix" Apr 17 14:31:48 Titanium Studio is a 3rd party IDE, we won't support it. Apr 17 14:31:54 If it creates an apk, use adb install to install the apk Apr 17 14:32:07 since it seems to be built on eclipse, it should just have a nice way to install automagically Apr 17 14:32:49 lov, i have an resources folder but i do not no how to run this app on my tab Apr 17 14:33:05 I am working on php not android Apr 17 14:33:15 O_o Apr 17 14:33:30 why does the Toast (line 20) in this code http://pastebin.com/7ga3Ke0N give me a "not applicable for arguments" error? Apr 17 14:33:39 harsh343: "Hey auto mechanic, how do i make my car work? I'm rolling down the window but nothing happens" Apr 17 14:33:43 I've always wrote the makeText like that Apr 17 14:33:49 harsh343: 10:31:35 < lov> 10:30:16 < lov> http://developer.android.com/guide/developing/device.html Apr 17 14:33:52 READ THAT LINK Apr 17 14:33:58 HAVE YOU READ THAT LINK YET? YES/NO Apr 17 14:33:58 ok Apr 17 14:34:12 lov, ok car owner Apr 17 14:34:13 "yes/no" "ok" Apr 17 14:34:25 filenotfound Apr 17 14:35:16 evancharlton Apr 17 14:35:17 Sicp: why are you doing "" + page when page is a String .. ? Apr 17 14:35:26 can I ask you for a design suggestion ? Apr 17 14:35:36 Insayne: don't ask to ask Apr 17 14:35:40 haha Apr 17 14:35:45 I tried without the quotes and with them, was just so weirded out by the error evancharlton Apr 17 14:35:47 www.insayne.net/lq.png Apr 17 14:36:03 Sicp: MapsActivity doesn't extend Activity or COntext or ... anything Apr 17 14:36:21 wtf Apr 17 14:36:24 whoa Apr 17 14:36:25 sorry Apr 17 14:36:42 evancharlton, how would i solve this with a listview ? Apr 17 14:36:54 Insayne: 1/2 should be contained within a layout Apr 17 14:37:00 Insayne: you could use Gallery or HorizontalScrollView for the rows (2) Apr 17 14:37:04 maybe a linearlayout, horizontally aligned Apr 17 14:37:12 2 should be a gallery yeah that Apr 17 14:37:19 i see Apr 17 14:37:24 thank you Apr 17 14:37:31 no problem; good luck Apr 17 14:37:31 i will try that Apr 17 14:37:36 good luck why? :P Apr 17 14:38:09 because it likely won't work on the first try? Apr 17 14:38:14 ah :P yeah Apr 17 14:40:57 is it possible to give a row_layout.xml for the listview ? Apr 17 14:41:09 absolutely! Apr 17 14:41:13 ah, awesome! Apr 17 14:41:31 You're creating your own whatsit for the listview, right? Apr 17 14:41:34 adapter Apr 17 14:41:35 lov, look what I found, http://www.hostip.info/use.html Apr 17 14:41:36 adapter Apr 17 14:41:39 You're creating your own adapter right? Apr 17 14:41:45 this gets the country from the IP, but that's it Apr 17 14:41:56 it's correct but nothing further than the country Apr 17 14:41:58 Your adapter should specify what view to use and what to do with it Apr 17 14:42:09 other examples show the city, sorry; but that's it Apr 17 14:42:10 ok, cool - you got any sample that shows this? Apr 17 14:43:48 Insayne: http://developer.android.com/resources/tutorials/views/hello-listview.html Apr 17 14:43:56 oh whoops Apr 17 14:44:26 yeah, i got that one, but didnt find one using XML layout + custom adapter Apr 17 14:44:35 man. Apr 17 14:44:43 There's no official docs on how to use adapters and adapterviews Apr 17 14:45:00 basically you'll be overriding this: http://developer.android.com/reference/android/widget/Adapter.html#getView(int, android.view.View, android.view.ViewGroup) Apr 17 14:45:06 Do a google search, see if you can find some tutorials Apr 17 14:45:13 romain guy gave a nice talk at google IO about listviews and optimizations Apr 17 14:45:17 I did, and couldn't find anything Apr 17 14:45:20 yeah, i saw that Apr 17 14:45:39 there may be something in the api demos too Apr 17 14:45:51 i will have to take a look Apr 17 14:46:46 vogella.com has a good tutorial on custom adapters Apr 17 14:47:14 http://www.vogella.com/articles/AndroidListView/article.html Apr 17 14:47:15 lov, you seem an experienced android developer. Can you give me some hints on implementing the scrollable Tabs ui pattern on http://developer.android.com/design/building-blocks/tabs.html ? I only managed to have "fixed tabs" layout, and searching on google didn't help me :( Apr 17 14:47:51 ang1: use a viewpager and an actionbar Apr 17 14:48:11 oh, that shouldn't be in the action bar Apr 17 14:48:13 but yeah, use a viewpager. Apr 17 14:48:55 Ok, I'll try to have a look on viewpager, thanks!! Apr 17 14:53:35 lov, I follow your give link but I have tab company name is now show in the list from where i find my USB vendor id, I have also installed eclipse on my sysem so what i can do ? Apr 17 14:53:49 but my tab* Apr 17 14:53:54 not* Apr 17 14:55:03 harsh343: idk, its your ide. Apr 17 14:55:18 if the device shows up in ddms you should be able to just install it Apr 17 14:55:35 look for the apk and deploy that via adb install Apr 17 14:55:41 harsh343: you really should be asking the titanium folks this Apr 17 14:55:46 seriously Apr 17 14:55:46 or better yet, don't use titanium Apr 17 14:55:49 ^^ Apr 17 14:56:00 * lov prepares his "lol php" rant Apr 17 14:57:32 evancharlton, suppose if i have no titanium, I have ecllipse installed in my system and i am using ubuntu right now, an i have a resource folder in which i have my project or suppose if i want to run Sencha Touch 2 demo prejects on my tab so what i can do ? Apr 17 14:57:42 and* Apr 17 14:58:16 10:55:41 < lov> look for the apk and deploy that via adb install Apr 17 14:58:19 build an apk and install it Apr 17 14:58:32 You can look at this: http://developer.android.com/guide/developing/building/building-eclipse.html Apr 17 14:58:40 Or you can look at this: http://developer.android.com/guide/developing/building/building-cmdline.html Apr 17 14:58:51 is "built on eclipse" supposed to be a selling point? :P Apr 17 14:58:55 but would you PLEASE just fucking read the docs or do a google search for "how do I install an android app" Apr 17 15:00:58 wongk: I always read it as more of an excuse, kinda like "Beta" labels Apr 17 15:01:21 sounds like a good way to look at it Apr 17 15:05:24 does anyone know where I can find information of how to support "fake dual touch"-devices (modded Xperia X8 for instance). Some users complain that multi touch doesn't work in my application but it works in other applications. I tried to make a version to access MotionEvent.getPointerCount() etc with reflection, but that didn't seem to help. Apr 17 15:06:00 I'm sure this has come up quite a bit, but I'm attempting to set up a build environment according to http://source.android.com/source/initializing.html and the java6 sdk isn't available any more, and the few sites I've come across indicate that archive.canonical.com no longer hosts the package. A manual download from sun.com is also apparently not available unless I missed a link somewhere Apr 17 15:06:00 . Can any of you point me in the right direction? Apr 17 15:07:26 And in classic fashion, I may have answered my own question right after asking for help. Apr 17 15:17:48 LycaonX: glad we could help Apr 17 15:18:50 when I drop a widget onto an xml page...eclipse shows an outlook of widgets on the table layout...is there any way I could turn that on so that I can see it w/ out having to drop an item on the xml page? Apr 17 15:20:44 lov, when i am trying to install ant i got the following message http://pastebin.com/51puarDN Apr 17 15:21:56 lov: My 'solution' didn't work, heh. I spoke too soon :) Apr 17 15:22:08 I use your application in GoggleTV (I have a Sony blu-ray "internet box"). Apr 17 15:22:17 people irc using googletv? crazy Apr 17 15:22:17 heh Apr 17 15:22:49 pfn: now that's entertainment ;) Apr 17 15:24:07 harsh343: if you can't find a tutorial in all of the interwebs on how to get started building android applications, you need to do everyone a favor and turn off your PC and walk away Apr 17 15:24:27 hey pfn Apr 17 15:24:32 harsh343, that wasn't while installing ant... Apr 17 15:24:46 a tester is saying theres a line on the top of lists on hsi phone, i cant see what could this be! Apr 17 15:24:47 Napalm, morning Apr 17 15:24:49 wongk: How about a tutorial directly from the company that created the OS that actually works? Apr 17 15:25:22 sounds like a brilliant idea Apr 17 15:25:23 there are loads of tutorials that actually work Apr 17 15:25:25 public static boolean isActive = 0; Apr 17 15:25:28 on d.android.com Apr 17 15:25:43 then again, tutorials all encourage cargo cultism Apr 17 15:25:43 why is that throwing errors saying int cant... Apr 17 15:25:58 so the fact that they don't work is something of a blessing if they don't actually Apr 17 15:26:04 dominicdinada, int can, re-read your error Apr 17 15:26:09 cant convert from int to bool Apr 17 15:26:19 pfn: FOr building the apps, maybe, but actually setting up an AOSP build enviroment? Their tutorial is broke because the source urls no longer contain the packages needed ;p Apr 17 15:26:26 dominicdinada: because 0 is an integer value Apr 17 15:26:28 not a boolean Apr 17 15:26:34 java has strict typing Apr 17 15:26:38 LycaonX, only 10.04 or whatever is the supported version Apr 17 15:26:40 LycaonX: you are having trouble finding java 6? Apr 17 15:26:42 depending on what lang Apr 17 15:26:50 dominicdinada: you're looking for 'false' Apr 17 15:26:57 in php u have to typecast it to int Apr 17 15:27:00 oh, java6 Apr 17 15:27:04 get it from oracle directly Apr 17 15:27:11 how do you set he layout_span in eclipse ? Apr 17 15:27:29 well i know its false but coming from php 0 is false :) Apr 17 15:27:32 wongk: Yep. I have 10.04, the lucid partner deb url no longer hosts the jdk package, and direct downloading from sun.com is apparently not the correct package either Apr 17 15:27:32 dominicdinada: 0 is an int, not a boolean Apr 17 15:27:36 unless you cast it to an int Apr 17 15:27:41 everything about PHP is false Apr 17 15:27:48 lmao Apr 17 15:27:57 LycaonX: 6 is the version i see when i load java.com Apr 17 15:27:59 php is the lose Apr 17 15:27:59 including the 'shouldYouUseIt' var Apr 17 15:28:06 JakeWharton: dont hate php Apr 17 15:28:10 i already did Apr 17 15:28:17 JakeWharton: revison of that, Apr 17 15:28:21 JakeWharton: i guess u never used OOP Apr 17 15:28:28 i used DGAF Apr 17 15:28:30 just sloopy cut and paste code Apr 17 15:28:30 oop? Apr 17 15:28:31 JakeWharton: 'shouldNotBeUsedInProduction' Apr 17 15:28:32 what's that? Apr 17 15:28:40 object oriented :/ Apr 17 15:28:44 php oop Apr 17 15:28:48 what's object oriented Apr 17 15:28:50 poop? Apr 17 15:28:53 whatare objects? Apr 17 15:28:53 lol Apr 17 15:28:54 I see Apr 17 15:29:01 you like poop Apr 17 15:29:02 yup u left a log right there .... see Apr 17 15:29:18 ... Apr 17 15:30:39 anyhow Apr 17 15:31:49 LycaonX: javascript: void(0) Apr 17 15:31:50 er Apr 17 15:31:52 damnit Apr 17 15:32:16 http://download.oracle.com/otn/java/jdk/6u30-b12/jdk-6u30-linux-i586.bin Apr 17 15:43:40 Have anyone tryed this List Sectioner? http://code.google.com/p/android-section-list/ Apr 17 15:44:11 I having problems with, I think getting the LayoutInflater, Using ABS to. Apr 17 15:45:24 hi.. what will happen if i try to save a ringtone to a unexisting folder? Apr 17 15:45:34 erRor? Apr 17 15:46:27 I'd answer you but your nick is giving me cancer. Apr 17 15:46:38 lol Apr 17 15:46:39 try acting like you're an adult :> Apr 17 15:46:48 who knows, people might be more inclined to help ??????????? Apr 17 15:47:31 :o Apr 17 15:47:36 what a novel concept! Apr 17 15:48:05 * Jug6ernaut thinks he just disproved his own statement... Apr 17 15:49:19 take my nickname like an adult, and think outside of the box. Apr 17 15:49:31 and do please answer my question. Apr 17 15:49:54 I'm unable to import ViewHolder. Where does it belong to? Apr 17 15:49:58 Where in Eclipse can I see where the .apk is built to? Apr 17 15:50:19 napster: it doesn't Apr 17 15:50:37 wongk: huh! Is it deprecated? Apr 17 15:50:38 beStKodeReveR will return "file not found" execption Apr 17 15:50:54 panda81: oddly enough the apk doens't get built until you try to run your app Apr 17 15:51:07 panda81: in which case you'll find it in bin Apr 17 15:51:33 Jug6ernaut thanks. Apr 17 15:51:34 napster: why do you think there is a class called ViewHolder? Apr 17 15:52:13 wongk: I don't find it in my project's /bin directory. Does it get transferred directly to the device and not kept on the PC end? Apr 17 15:52:22 panda81: no Apr 17 15:54:02 Well, I see the .class in /bin. Is there an indication in project properties on where the .apk is built to? Apr 17 15:54:38 no Apr 17 15:54:57 u just have to "run" to a emulator or device Apr 17 15:55:01 and it will get created Apr 17 15:55:23 Hello guys, can anyone give me a hint/tip to get the raw response of an http-get? I want to fake a webserver, but I need the right way to respons to the webbrowser. Apr 17 15:56:05 Number5: tcpdump + wireshark Apr 17 15:56:57 I copy/paste a snippet which uses httpclient class and I want to forward the respons to the browser. I'm not trying to do a man-in-the-middle-attack. It's actually tunneling a request over a custom secured connection. Apr 17 15:57:24 Number5: i assumed you meant to examine the response Apr 17 15:57:33 Strange that I could not import ViewHolder! Apr 17 15:57:35 Jug6ernaut: you are right it's there now. I remember now. I did a clean earlier Apr 17 15:58:28 wongk, well, to test whether it works or not. Normally I get the response from a server, but my collegue isn't ready for that. Apr 17 15:58:40 Number5: HttpClient sounds way to high level for your purpose, i think you will need to work with sockets directly Apr 17 15:58:57 but i've never done what you are doing Apr 17 15:59:02 So to test it locally, I faked a respons, but the browser shows an empty page (blank) Apr 17 15:59:39 wongk, I was hoping httpclient had a getRaw kind of method Apr 17 15:59:49 getRawData() or something Apr 17 16:00:34 a http response is not that complex, a bunch of strings terminated by \r\n Apr 17 16:01:00 sure Apr 17 16:01:06 but I guess I have to copy some more header stuff to get ik work properly Apr 17 16:01:26 also the header has something about time/date Apr 17 16:01:36 hmmm, anyway, thnx for the help. Apr 17 16:01:43 is this forwarding on the same machine, or to a client on another machine? Apr 17 16:02:23 no, on the same device, I get a response from our server Apr 17 16:02:33 at least, that's the plan Apr 17 16:02:48 what mechanism are you using to 'forward' the response? Apr 17 16:03:32 so, in the browser you add www.somesite.com:1234/blablabla and my app listens on the port 1234 and tunnels the request to our server over a secured connection Apr 17 16:04:26 and my app uses a webview too to show the page. so finally the standard browser won't be used. Apr 17 16:10:31 Frikish: i've tried it Apr 17 16:10:36 i've tried all the sectioned list views Apr 17 16:10:38 they all suck Apr 17 16:10:51 not visually Apr 17 16:11:02 just how the implement it on the backend doesn't scale Apr 17 16:12:01 hey guys i have a question for all of you Apr 17 16:12:17 what does it do, automagically use on of the row properties to group the rows? Apr 17 16:12:38 how can i remove a package which is in the gen directory after refractoring it with a new name and prevent the old one from coming back Apr 17 16:13:47 JakeWharton, Do you have any solution? that one I linked to, have the easies way for me to sectionate. Since i can use my objects variable as a the section string, but gettting nullpointers when creating and setting the adapter, but non of the variables or tha adapter it self is null. So I am stuck :P Apr 17 16:13:54 anyone want 500 points for answering my question and a pot of coffee Apr 17 16:13:56 wongk: no you provide the sections, most just stupidly loop over the entire dataset to find them all Apr 17 16:15:23 why does the gallery wallpaper set wallpaper suck where as android in action bookcode allow one large image to be span accross all screens Apr 17 16:15:53 sounds pretty easy to implement yourself with a custom adapter, once you nail down the styling for the sections... but maybe im mising something Apr 17 16:18:55 how can i remove a package from the gen which i refractored and renamed and am using instead of the old package which i dont need any more Apr 17 16:19:43 rm -rf gen Apr 17 16:20:47 evancharlton: its a package in the directory every time i remove it it automatically regenerates Apr 17 16:23:24 change your "package my.package;" statatements? if it's regenerating, you have a different problem Apr 17 16:26:07 gutano: already did that Apr 17 16:26:13 but for some reason its still auto generating Apr 17 16:26:50 Is ViewHolder deprecated? Apr 17 16:27:17 napster: dude, there is no ViewHolder class Apr 17 16:28:07 gutano: fixed it the manifest.xml file was using the old project which was causing it to regenerate the old package now that is fixed the old package in gen is no more :D Apr 17 16:28:19 wongk: Would this code compile? : http://android.amberfog.com/?p=296 Apr 17 16:28:27 eagles0513875, glad to hear you figured it out =D Apr 17 16:28:38 im learning and happy :) Apr 17 16:28:46 napster: probably Apr 17 16:29:02 napster: yes, most likely Apr 17 16:29:03 still have a long ways to go Apr 17 16:29:26 napster: now 100 points to you if you can tell me where ViewHolder is defined Apr 17 16:29:39 gutano: question for ya is it easy to create a file explorer? in regards to finding files on ones phone and then limiting it for instance I am working on the UI for the android libreoffice port Apr 17 16:29:54 and i was suggested to a main dev whose been working on making the port possible Apr 17 16:30:08 and he said the best thing to do is create a file explorer to where one can read files only to start with Apr 17 16:30:47 wongk: ok, gotcha :) Apr 17 16:30:47 and i was thinking instead of listing all the directories in teh file system was thinking let it automatically recurse through the system file tree and list files that are supported by the program Apr 17 16:30:53 would something like that be possible gutano Apr 17 16:31:51 JakeWharton, Do you have any solution? that one I linked to, have the easies way for me to sectionate. Since i can use my objects variable as a the section string, but gettting nullpointers when creating and setting the adapter, but non of the variables or tha adapter it self is null. So I am stuck Apr 17 16:32:25 wongk: I'm going to watch romainguy's video again ;) Apr 17 16:32:27 can anyone shed any light on why ther eis a line here below "a-z" and "stand no"? http://dl.dropbox.com/u/4194619/theline.jpg - ive tried everything, i think its to do with tabhost but i cannot for the life of me turn it off Apr 17 16:32:46 eagles0513875: file systems are harry business on Android, you will only have access to external or similar storage on most devices Apr 17 16:33:16 Hi all Apr 17 16:33:18 well wongk i was thinking it would search through and find any files where ever they may be stored and display them as being able to be opened by the program Apr 17 16:33:35 wongk: by default where do files get downloaded to to the memory card on ones device or internal memory Apr 17 16:33:42 JakeWharton if ur around can u look pls, about to deliver this app this is my last issue! lol, if u get a second please glance at http://dl.dropbox.com/u/4194619/theline.jpg and tell me why you think the line is there under "a-z" and "stand no" please :-D Apr 17 16:33:47 gaz`: hierarchyviewer Apr 17 16:33:51 ahh Apr 17 16:33:54 not used that in ages Apr 17 16:34:04 whats the item called to set to null when extending the holo-theme to remove that grey gradient background+ Apr 17 16:34:21 evancharlton that will tell me what view is causing it yeh Apr 17 16:34:22 eagles0513875, you can read files just like java (mostly)... imho, libreoffice is quite the ambitious project... I must suggest a few mini-projects prior... Apr 17 16:34:27 but not how to get rid of it Apr 17 16:35:15 eagles0513875: you would be best to trate this: http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory() as the root of the FS for your purpose Apr 17 16:35:22 treat Apr 17 16:35:33 wow hiearchy view rocks Apr 17 16:36:06 notreally sure how it helps tho Apr 17 16:36:32 gutano: im following the tutorials and adapting them to my needs. I am quite versed in java just have to get myself versed in the droid API in regards to java Apr 17 16:36:56 gaz`: perhaps you need to try the "read my mind and fix my problems magically" mode Apr 17 16:37:10 well hwo does this help? Apr 17 16:37:15 just a tree of the views Apr 17 16:37:23 *facepalm* Apr 17 16:37:35 eagles0513875, didn't mean to be discouraging, sounds like you know what your getting into =D Apr 17 16:37:43 i do trust me Apr 17 16:37:44 i do Apr 17 16:37:56 gaz`, you look at the line Apr 17 16:37:59 see what it is Apr 17 16:38:04 then identify what's creating it in code Apr 17 16:38:14 well i can see it Apr 17 16:38:15 that's what hierarchyviewer does Apr 17 16:38:18 but how do i work out what it is Apr 17 16:38:23 gaz`: you think Apr 17 16:38:29 gaz`, use your brain :p Apr 17 16:38:33 you put that crap between your ears to use :) Apr 17 16:38:37 hah Apr 17 16:38:38 you know why i hate verizon/sprint, having never even been a customer of theirs? because they have a "Verizon Galaxy Nexus" and a "Sprint Galaxy Nexus", instead of just a "Galaxy Nexus" Apr 17 16:38:48 why cany anyone give a straight answer in here Apr 17 16:38:53 its like living in riddleVille Apr 17 16:38:56 gaz`: because it's not our code, br0 Apr 17 16:38:58 canadiancow|work: what's wrong with that? Apr 17 16:39:02 gaz`, because we're all terrible mindreaders Apr 17 16:39:04 canadiancow|work: bear in mind that it's not one phone branded 4 ways Apr 17 16:39:10 i just want to know how i can work out whats causing this line and tunr it off Apr 17 16:39:14 it actually tends to be 4 separate hardware and firmwares Apr 17 16:39:16 gaz`: WE DON'T KNOW Apr 17 16:39:21 gaz`: we're telling you how to find out Apr 17 16:39:21 it apepars to be the tabhost yes Apr 17 16:39:22 no, there are three spearates Apr 17 16:39:23 gaz`, you look at hierarchy viewer, you look at the view that's creating the line Apr 17 16:39:26 then find it Apr 17 16:39:27 there is verizon, sprint, and everything else Apr 17 16:39:34 and tabwidget has a tabstrip Apr 17 16:39:35 turn it off Apr 17 16:39:48 and i believe they do have different hardware, or at least different proprietary binaries Apr 17 16:39:50 gaz`: we don't know what code you have, what styles you're setting, or any of that bullshit. So start digging into your own code and figure it out. Apr 17 16:40:07 evancharlton: MY CODE IS BROKEN SOMEWHERE, FIX IT FOR ME Apr 17 16:40:14 HLEP! Apr 17 16:40:14 WHAT DO YOU MEAN YOU DON'T KNOW WHAT I'm DOING Apr 17 16:40:19 I DON'T KNOW WHAT I'M DOING EITHER Apr 17 16:40:25 YOU NEED TO FIX IT FOR ME THATS WHY Apr 17 16:40:26 hay my code doesnt work. i have my listview set to wrap content, and i put it in a scrollview Apr 17 16:40:42 hahah Apr 17 16:40:45 I hate you, canadiancow|work Apr 17 16:40:59 lov: lose the caps Apr 17 16:41:00 apparently, this is something that hits evancharlton over the head regularly Apr 17 16:41:04 yo dawg i heard you like scrolling Apr 17 16:41:23 +1 Apr 17 16:41:28 i really do :) Apr 17 16:41:56 hey EnRohbi still sleeping with 13 year olds? ;) Apr 17 16:42:18 No Apr 17 16:42:18 And Apr 17 16:42:18 Hold on Apr 17 16:42:21 She's 18 now Apr 17 16:42:27 And i'm sitting right beside her current boyfriend Apr 17 16:42:31 LOL Apr 17 16:42:41 ;D Apr 17 16:43:29 eagles0513875: *facepalm* Apr 17 16:43:42 i do'nt know what's happening, but this doesn't saound healthy Apr 17 16:43:56 evancharlton: enjoying big red dot on ur forehead Apr 17 16:43:58 wait, I hate canadiancow|work too! Apr 17 16:44:04 did I miss out on that?!? Apr 17 16:44:05 wut? Apr 17 16:44:09 Ooo, are we hating on c-cow? Apr 17 16:44:09 big red dot? Apr 17 16:44:24 canadiancow|work: from evancharlton doing all those face palms Apr 17 16:44:29 oh Apr 17 16:44:35 and anyway evancharlton what did i do to warrent a face palm anyway Apr 17 16:44:59 12:43 < eagles0513875> lov: lose the caps Apr 17 16:45:08 http://images.shutupmath.com/5pyVA.jpg Apr 17 16:45:44 canadiancow|work: sweet, a garbage project. Sounds like most of the stuff in here! Apr 17 16:45:47 * evancharlton ducks Apr 17 16:45:51 T_T Apr 17 16:45:57 (mine included) Apr 17 16:46:07 did you really miss the one above that? Apr 17 16:46:21 of course not Apr 17 16:47:42 so all io can work out is form this is that its a tabhost Apr 17 16:47:47 bringsu p a line on some devices Apr 17 16:47:52 but not on my nexus one Apr 17 16:47:56 does on emu, grr Apr 17 16:59:23 any sysadmins here? Apr 17 16:59:41 yes? Apr 17 16:59:45 say you had an app on your mobile phone that claims to let you administer your server; what would you expect from this app to have? Apr 17 17:00:01 fully-fleged app tailored for sysadmins Apr 17 17:00:21 a command line ;) Apr 17 17:00:23 why is this crashing? if (mString.equals(null)) { Log.d("troll", "mString is null"); } Apr 17 17:00:27 alright, that's one Apr 17 17:00:35 what else do you actually need Apr 17 17:00:39 SSH connection etc Apr 17 17:00:47 I'm programmatically changing the margin of a layout inside a framelayout. Is it possible to avoid this layout to be resized? Apr 17 17:00:56 you would be surprised what can come in handy when you're out of the command line Apr 17 17:01:00 a syslog reader for example Apr 17 17:01:15 can't you run that on the command line? Apr 17 17:01:20 aint there really no way but to remove hardwareacceleration if you dont want that grey gradient background? Apr 17 17:01:28 Basically at this point you gave a dumb terminal Apr 17 17:01:40 of course you can, but imagine going in to the reader, selecting the file you want to read from, choose Head/Tail and press OK Apr 17 17:01:55 canadiancow|work: are you serious? if (mString == null) { Apr 17 17:02:01 or give it the line numbers of how much of Head/Tail Apr 17 17:02:08 Napalm... sigh Apr 17 17:02:12 look at the log tag Apr 17 17:02:25 oh troll Apr 17 17:02:26 lol Apr 17 17:02:27 :| Apr 17 17:02:35 you were above my troll threshold Apr 17 17:02:36 now im not so sure Apr 17 17:02:40 because obvious troll is obvious Apr 17 17:02:43 hah Apr 17 17:02:48 i missed it is all :P Apr 17 17:03:18 anyone else getting a 404 on http://developer.android.com/reference/android/view/View.html ? Apr 17 17:03:28 to use MapView from market, we have to get a new key based of our keystore correct? Apr 17 17:03:33 yes canadiancow Apr 17 17:03:36 yes canadiancow|work Apr 17 17:03:40 Sicp: proper terminal, ability to go through proxy, proper UTF-8 support, possibly ability to connect over serial port (with rfcomm dongles), etc. Apr 17 17:03:42 yup Apr 17 17:03:59 I see Apr 17 17:04:06 what about Nmap? Apr 17 17:04:07 yes Apr 17 17:04:12 yo evancharlton ctate View disappeared Apr 17 17:04:17 would you like if you have a dedicated activity for Nmap? Apr 17 17:04:38 a dedicated activity to monitor CPU/RAM on a colorful graph? Apr 17 17:05:01 anyone can confirm? Apr 17 17:05:56 canadiancow|work: for some reason google doesn't have it cached either Apr 17 17:08:36 Nope, canadiancow|work ! Apr 17 17:08:46 im having trouble appling rounded corners to an imagebutton widget does anyone have a tutorial or sample i could look at google is not showing me what i seek :( Apr 17 17:08:50 oh it loads now Apr 17 17:08:51 thanks ctate evancharlton Apr 17 17:09:39 dominicdinada: Make a image with rounded corners. Use it as background Apr 17 17:09:41 Success Apr 17 17:10:00 SimonVT: programatically in xml Apr 17 17:10:28 easier to set props once than round corners in x amount of pictures Apr 17 17:10:53 There's probably some style attribute for imagebutton Apr 17 17:10:59 Check docs for android.R.attr Apr 17 17:12:10 dominicdinada, http://pastebin.com/WQG0b5tz Apr 17 17:12:59 Oh, for the actual bg.. Thought you meant apply to all imagebuttons Apr 17 17:13:05 corners android:radius="@dimen/radius" Apr 17 17:13:30 well yes to all image buttons :) here is what i have that i copied to my project Apr 17 17:13:38 lemme pastebiin it Apr 17 17:14:59 if you do not want to use the dimens, put a number there, for example 10dip Apr 17 17:15:39 http://pastebin.com/cH0h1E1p Apr 17 17:15:47 is there any way to import and view android method profiling data in netbeans? Apr 17 17:16:03 thats what i have and i call the shape.xml on the imagebutton but nothing Apr 17 17:16:59 have you set it as background? Apr 17 17:18:12 yes the background attrib on the image button Apr 17 17:18:41 try to set it to a textview to see if it works Apr 17 17:19:01 ventrix: ok i will give that a try shortly Apr 17 17:30:06 Hi, im having trouble in app. that I am making for android, is someone willing to help me out? Apr 17 17:30:23 I tried to search in the internet but I had no results at all. Apr 17 17:30:35 It is about converting Hexadecimal do Bytes in a byte[] array Apr 17 17:32:59 I need to send this to a device: byte b1[] = new byte[]{0xF0, 0x0C, ... }; Apr 17 17:33:29 but 0xF0 says Need Byte Found Int Apr 17 17:35:43 .... Apr 17 17:35:47 Tsukaza: you should head to #java Apr 17 17:35:52 this is a beginner level java question Apr 17 17:35:58 and has nothing to do with Android Apr 17 17:38:26 That "..." is not needed honestly. That the simpliest way to ask for my current problem but ty Apr 17 17:41:08 ... Apr 17 17:41:40 "Four major telecom operators in Europe, where the phones have been on sale since before Christmas, told Reuters the new Nokia Lumia smartphones were not good enough to compete with Apple's APPL.O iPhone or Samsung's (005930.KS) Galaxy phones." Apr 17 17:41:43 ruh roh Apr 17 17:42:20 usually european telcos are warmer towards nokia Apr 17 17:42:56 Hello there Apr 17 17:43:43 what is the ics_chocolate tree? Apr 17 17:44:07 chocolate ice cream sandwiches? Apr 17 17:48:03 Can somebody please help me: i am new to android development (and java), learned C#. So. I need to write an application, that involves getting the source code of web page and analyzing it's part for the list of links. Can somebody tell me, how can i get the source code of the page or give me a link to useful guide/reference pages, please? Thank you in advance. Apr 17 17:49:15 Icehunter: http://developer.android.com/reference/java/net/HttpURLConnection.html Apr 17 17:51:22 IceHunter look up httpclient, little more developened then a raw httpurlconnection Apr 17 17:51:28 then ur gonna want an html parser Apr 17 17:51:50 i use org.htmlcleaner Apr 17 17:51:57 google recommends the class i posted, but either work Apr 17 17:52:04 but theres also some other ones, like xpath that are good Apr 17 17:52:09 i actually use HttpClient myself Apr 17 17:52:16 lol Apr 17 17:53:23 wongk: Thanks Apr 17 17:54:02 Is anyone can help me with this problem? Three days looking for a fix ... http://stackoverflow.com/questions/10196000/avoid-layout-to-be-resized-on-margin-changed Apr 17 17:54:50 http://gigaom.com/2012/04/16/apptopia-gives-app-developers-an-exit-strategy/ Apr 17 17:56:12 new Intent(Intent.ACTION_CALL, Uri.parse("tel:825555551212")); Apr 17 17:56:28 is *82 avalid Apr 17 17:58:35 g00s, lol Apr 17 17:58:44 a friend of mine was offered $1500 for an app he wrote Apr 17 17:58:49 that makes him like $500/day Apr 17 17:58:52 and he lol'd Apr 17 17:58:57 and the guy said "okay $5000" Apr 17 17:59:07 i cant imagine that site is useful Apr 17 17:59:14 even $10k for an app seems low Apr 17 17:59:25 unless it's shit, in which case, why would anyone buy it Apr 17 17:59:50 which is the best way to share data between Fragments ? Application ? Apr 17 18:00:01 I'm trying to figure out how to disable the history feature in ShareActionProvider. Is that possible? Apr 17 18:02:54 canadiancow|work: theres a util package for 15k on there Apr 17 18:03:35 im just not convinced it serves sellers at the high end or buyers at the low end Apr 17 18:03:51 i have an app that i could easily sell for $10k Apr 17 18:03:53 and could probably get way more Apr 17 18:04:01 but on that site, they'd say "oh you have no users" Apr 17 18:04:09 and offer $0.25 Apr 17 18:04:17 lol Apr 17 18:04:43 give them .025 of the source Apr 17 18:05:01 /** @class MainActivi Apr 17 18:05:11 yup Apr 17 18:06:55 Uri.parse("tel:82xxxxxxxxxx") is *82 valid in action_call Apr 17 18:07:32 so my dialog has a TextView with an id of "title" Apr 17 18:07:40 or rather, my DialogFragment with a custom view does Apr 17 18:07:42 but its not mine Apr 17 18:07:44 and its taking up space Apr 17 18:07:47 and i want it to die :( Apr 17 18:19:10 grrrrrrrrrrrrrr Apr 17 18:19:37 is there a getprop associated with the android system recognizing an sdcard? Apr 17 18:20:12 what are you looking for? Apr 17 18:20:31 I have a box which isn't recognizing the sdcard mount even though it exists at /sdcard Apr 17 18:20:48 so I'm hoping I can notify the system that it does exist without requiring a new build Apr 17 18:21:07 since I can't get a new build Apr 17 18:22:29 I was hoping there is a getprop associated with it, so I can just set it and get it to recognize the sdcard Apr 17 18:25:15 canadiancow|work: yeah, its hard to put a dollar amount on an app - it should be a function of what potential it has, which is hard to know Apr 17 18:26:15 you dont know shit; canadiancow's shit is worth millions Apr 17 18:26:24 always, his fart app? million $ Apr 17 18:26:45 Insayne, you're just jealous Apr 17 18:26:53 im serious Apr 17 18:27:07 you don't have a fart app Apr 17 18:28:05 oh, here is the link for the nokia stuff i posted above if anyone is interested http://uk.reuters.com/article/2012/04/17/uk-nokia-telcos-idUKBRE83G08Z20120417 Apr 17 18:29:14 i read that earlier Apr 17 18:29:35 2 things that struck me about that article Apr 17 18:29:55 "If the Lumia with the same hardware came with Android in it and not Windows, it would be much easier to sell," Apr 17 18:30:06 i thought nokia was supposed to be awesome at hw :| Apr 17 18:30:08 I know people that wanted a windows phone Apr 17 18:30:10 and second: Apr 17 18:30:27 "Operators want a viable alternative to Apple and Android, not only to offer customers more choice but to give them a stronger bargaining position with phone manufacturers." Apr 17 18:30:34 Other than the 30 or so whine/complaints about lack of Adhoc support in ICS, do any of you know of a contributor or third party that is actually interested or working on reimplementing true adhoc support instead of just saying "lol uze teh wifidirect" seeing as how it's not even supported until Windows 8 anyhow? Apr 17 18:30:50 i don't understand this; they can customize android to their liking - are they looking for more bargaining interns of the cost of the devices ? Apr 17 18:31:20 *in terms Apr 17 18:32:02 its more about money it costs Apr 17 18:34:45 imho, mfgr's are shooting themselves in the foot with bloatware the same way windows has for the last 15 yrs... it kills user experience Apr 17 18:35:51 can anyone recommend an app to create ebook apps for the android? Apr 17 18:36:02 PackRatDragon, what? Apr 17 18:36:07 does an ebook need an app ? Apr 17 18:36:10 most don't :D Apr 17 18:36:15 heh Apr 17 18:36:34 what are you i dont even Apr 17 18:36:48 this is like, that x-zibit picture Apr 17 18:37:15 I thought that if you created a standalone ebook for the android, it was considered an app... Apr 17 18:38:40 http://cdn.memegenerator.net/instances/400x/18791804.jpg Apr 17 18:39:52 g00s, well it's not so much "potential" Apr 17 18:40:02 if i can rewrite your app in 2 days, it's not worth a million Apr 17 18:40:11 and he can rewrite any app in 2 days Apr 17 18:40:16 he is canadian Apr 17 18:40:19 canadiancow|work: then it doesn't have much potential :) Apr 17 18:40:19 thats how they roll Apr 17 18:40:36 you could code facebook in a day; worth billions Apr 17 18:40:40 but i see your point Apr 17 18:40:41 so don't listen to him! :P Apr 17 18:41:07 its not just the code of the app, it could be other things like established customer base, etc Apr 17 18:42:36 i have an app that works well Apr 17 18:42:37 I have view with an infinite duration RotateAnimation applied to it inside a view with a TranslateAnimation applied to it. When the TranslateAnimation ends, the RotateAnimation also ends, even though it's supposed to repeat forever. Any idea how to stop that from happening? Apr 17 18:42:42 there are bigger competitor apps that have serious bugs Apr 17 18:42:46 mine is well written Apr 17 18:42:50 canadiancow, what app ? Apr 17 18:43:00 JakeWharton: What's the expected behaviour of running ShareActionProvider in ABS on android 2.2? Apr 17 18:43:03 it's a fart app Apr 17 18:43:10 uh Apr 17 18:43:12 to work? Apr 17 18:43:15 heh Apr 17 18:43:22 +1 Apr 17 18:43:24 are you using an emulator? Apr 17 18:43:48 answer of the year Apr 17 18:43:51 because: https://github.com/JakeWharton/ActionBarSherlock/issues/415 Apr 17 18:44:11 or if you're using split action bar: https://github.com/JakeWharton/ActionBarSherlock/issues/303 Apr 17 18:44:16 both are framework bugs Apr 17 18:44:37 they should each have links to the android bug tracker Apr 17 18:44:44 JakeWharton: Yes, the emulator. I have revert from using split action bar. Apr 17 18:44:58 I wrote my own actionbar Apr 17 18:45:15 makes it easier and smaller :D Apr 17 18:45:22 I wrote my own actionbar. Then JakeWharton made ABS Apr 17 18:45:25 you can adjust the height of the built-in one Apr 17 18:45:28 Heh. Hello again. Can somebody please help me with regular expressions? I've been messing around with them for 2 hours now >< Apr 17 18:45:38 Insayne: You are crazy if you don't use ABS ;) Apr 17 18:45:57 he is Insayne... Apr 17 18:46:15 pakerfeldt: the ShareActionProvider in ABS actually operates completely independently of the framework one. Hopefully by the next release I'll be able to fix both those bugs. Apr 17 18:46:24 JakeWharton, im not sure that's what he meant by "smaller" :P Apr 17 18:46:28 ABS is like 500KB Apr 17 18:46:41 my actionbar is 3KB atm :P Apr 17 18:46:58 A fraction of the size, a fraction of the features! Apr 17 18:47:08 correct, only the features that app needs Apr 17 18:47:08 JakeWharton: The first issue you linked to seems to be related to only having one intent handler? Apr 17 18:47:10 I'd rather pay in 500KB on the binary than engineering time writing my own Apr 17 18:47:23 That's not the case for me. Apr 17 18:47:29 pakerfeldt: yeah that's a crazy one. If you have zero or one handler for an intent it just becomes totally unresponsive Apr 17 18:47:31 JakeWharton i agree Apr 17 18:47:33 JakeWharton, if you only need 3-5 functions, then not :D Else, I fully agree with you Apr 17 18:47:44 my app is 100KB without ABS, but i still use it :P Apr 17 18:47:52 JakeWharton: But mine's still unresponsive and I have 8-10 of them Apr 17 18:47:57 simple text/plain share Apr 17 18:48:13 in the main action bar or the split? Apr 17 18:48:17 main Apr 17 18:48:30 that's unexpected then Apr 17 18:48:43 btw, JakeWharton, latest ABS had a typo when i leeched it a couple days ago Apr 17 18:48:43 Clicking has no effect, it does not flash bluish Apr 17 18:49:17 Works fine on ICS (GN) but not 2.2 (emulator) Apr 17 18:49:33 I'm a little confused as to what is returned for an ActionProvider onGetActionView... I get you return a view Apr 17 18:49:53 but is that view just used as the menu action item, or does that have something to do with what shows when it's clicked? Apr 17 18:50:28 it's what shows up on the action bar Apr 17 18:50:59 So would it not get called if my menu item with this action provider is inside a submenu? Apr 17 18:51:13 correct Apr 17 18:51:21 Good to know I'm not totally crazy then Apr 17 18:51:33 hello friends Apr 17 18:51:50 I tried looking at the ShareActionProvider source Apr 17 18:51:53 pakerfeldt: can you send me the intent you're using and i'll give it a try this afternoon? Apr 17 18:51:57 that is pretty complex for just returning an Icon Apr 17 18:52:27 t0mless: it's only an icon if it's in collapsed mode Apr 17 18:52:36 but I agree, seems complex Apr 17 18:53:06 JakeWharton: Sure, let me first test the issue on a fresh project Apr 17 18:53:26 if anyone would be so kind... i am trying to delay showing this admob ad by a few seconds, how can i do this? http://pastebin.com/mgvR0eDZ Apr 17 18:53:31 i have 0 java experience Apr 17 18:53:43 .... Apr 17 18:53:45 Thread.sleep Apr 17 18:53:47 :P Apr 17 18:53:59 if you don't have java experience why are you making android apps with ads? Apr 17 18:54:11 to sell crap and make money Apr 17 18:54:25 he didn't find a coder who would code an app for him, for a share of the revenue obviously Apr 17 18:54:43 i use phonegap Apr 17 18:54:48 html5/css Apr 17 18:54:53 that part i am good with Apr 17 18:54:54 haha Apr 17 18:55:02 but the eslcipe java stuff... way over my head Apr 17 18:55:14 is that frowned upon in this community? Apr 17 18:55:16 using phonegap? Apr 17 18:55:23 yes. Apr 17 18:55:24 Is by me Apr 17 18:55:29 yup Apr 17 18:55:30 haha Apr 17 18:55:33 right on then Apr 17 18:55:35 Infact, I think I just vomitted a little Apr 17 18:55:43 try going to a phonegap place Apr 17 18:55:50 i did no ones answering now Apr 17 18:55:53 phonegap = phoneslap Apr 17 18:55:58 patience Apr 17 18:56:05 in the time it took to berate me, someone could answered Apr 17 18:56:05 is a lesson to be learnt Apr 17 18:56:15 correct, but you are using phonegap Apr 17 18:56:15 technically yes Apr 17 18:56:18 hahaha Apr 17 18:56:21 but you wouldn't understand the answer Apr 17 18:56:25 and we'd have to spend more time explaining that Apr 17 18:56:26 nobody is interested in helping you, so i didnt spring anyones mind Apr 17 18:56:32 and in the end you just literally don't know what you're doing Apr 17 18:56:33 so why bother Apr 17 18:57:02 i should really take a day off and go through a java book just to get a grasp Apr 17 18:57:10 s/day/month/ Apr 17 18:57:11 but still, not going to develop natively Apr 17 18:57:20 html5 will overcome! Apr 17 18:57:25 ..... right, glhf Apr 17 18:57:27 overcome what? Apr 17 18:57:41 its like you think html is coding Apr 17 18:57:41 native Apr 17 18:57:47 javascript is coding Apr 17 18:57:49 hahha Apr 17 18:57:51 .... Apr 17 18:57:52 right Apr 17 18:57:52 kind of ... Apr 17 18:57:58 technically true but not really. Apr 17 18:58:05 it's scripting, at best Apr 17 18:58:14 and usually "scripting, poorly" Apr 17 18:58:36 the day quality html5 apps outnumber quality native apps, I'll send you $50 Apr 17 18:58:49 evancharlton is being cheap Apr 17 18:58:52 he meant 55$ Apr 17 18:59:14 i will take that bet if its a 2 year time frame Apr 17 18:59:23 Insayne: I could've offered $5000 because by the time I have to pay that (if ever), inflation will have made $5000 a negligible sum Apr 17 18:59:28 I wouldn't. Apr 17 18:59:29 haha Apr 17 18:59:36 hey peoples, any tips on the "best" way to implement a login screen? preferably offline and no DB for initial release. Apr 17 18:59:52 radioact1ve: erm, what? Apr 17 19:00:03 radioact1ve, just write username and password on screen, and have a button agree, which takes you to the next activity Apr 17 19:00:14 barmang: you seriously think that within 2 years, Angry Birds will be shipping their app as a WebView/HTML5? Apr 17 19:00:44 i think as browser support gets better its going to be more feasible to develop in html5 for everyone Apr 17 19:00:56 Insayne: that part i got but storing passwords, usernames securely Apr 17 19:01:03 thats the promise of phonegap now but its not even close to "develop once deploy everywhere" Apr 17 19:01:07 sharedpre? Apr 17 19:01:10 sharedpref? Apr 17 19:01:22 heh, you would use a database Apr 17 19:01:36 thats exactly what they are made for Apr 17 19:01:49 its like "i wanna frame a picture, but not use a frame, but something else... like toilet paper maybe?" Apr 17 19:01:59 lol Apr 17 19:02:02 in the end, you re-create a frame with toilet paper, but it remains a frame Apr 17 19:02:09 You could store them in sharedprefs if you really wanted to Apr 17 19:02:16 just make sure they're encrypted Apr 17 19:02:31 just wondering what the community thinks it the standard way of do this Apr 17 19:02:32 encrypt it, md5hash it, store the md5 hash Apr 17 19:02:44 redo the same procedure to verify it, so you dont store actual passwords Apr 17 19:03:07 from reading around, most mention to us Base64 that comes with android and store that Apr 17 19:03:15 dam typos Apr 17 19:03:17 yeah, don't Apr 17 19:03:24 ?? Apr 17 19:03:27 its not secure Apr 17 19:03:39 really Apr 17 19:03:51 you can just decode it as base 64 Apr 17 19:03:59 use triple rot13 Apr 17 19:04:03 it's more secure than double rot13 Apr 17 19:04:10 did someone just suggest base64 as encryption? Apr 17 19:04:14 because I'm going to ban them Apr 17 19:04:16 no Apr 17 19:04:17 from the internet Apr 17 19:04:27 radioact1ve: if you are going to "secure" a password, you should be at a minimum hashing it with SHA1 Apr 17 19:04:40 then ban the internet bc thats what i read! Apr 17 19:04:41 just use .hashCode() Apr 17 19:04:43 * evancharlton ducks Apr 17 19:05:03 hahaha Apr 17 19:05:13 lov: hackers can crack public algorithms, you have to write your own or else it's not secure. Apr 17 19:05:44 put a hypervisor into your phone, and introduce key rings as of access Apr 17 19:05:50 cracking secret algorithms requires like three guys on one keyboard Apr 17 19:05:53 now you're secure :P Apr 17 19:06:11 Insayne: Android credential storage is hilariously underused Apr 17 19:06:24 now you're thinking with passwords Apr 17 19:06:47 JakeWharton: This seems to fail on 2.2 (emulator): http://pastebin.com/03YAkRGU. On my GN I have 15 intent handlers showing up. Apr 17 19:07:26 JakeWharton: Just guessing, could it have anything to do with using EXTRA_TEXT instead of EXTRA_STREAM? Apr 17 19:07:47 I'm not sure, will have to test Apr 17 19:08:35 i love this channel Apr 17 19:08:43 lunch time now Apr 17 19:08:48 will grab food and experiment Apr 17 19:08:54 Yeah, bed time soon ;) Apr 17 19:09:19 yo, dawn. i heard you like rot13 Apr 17 19:09:35 who is dawn Apr 17 19:09:41 are you cheating on me with another meme JakeWharton Apr 17 19:09:42 His dog. Apr 17 19:09:50 Colloquy Apr 17 19:09:51 fail' Apr 17 19:09:54 expi;lajhsdflkh Apr 17 19:09:59 can you put apps on appletv? Apr 17 19:11:00 canadiancow|work: with jailbreaking, yes Apr 17 19:11:08 and without? Apr 17 19:12:02 i noticed sha1 was mentioned. md5 or sha? security fascinates but im new to this area. Apr 17 19:12:26 Honestly, you should use the AccountManager if it's feasible Apr 17 19:12:42 either let them use their google account for your app Apr 17 19:12:58 or create your own Account to use Apr 17 19:13:09 readme, you there? Apr 17 19:13:44 radioact1ve: sha1 Apr 17 19:14:02 t0mless: thats pretty much what i looking into, creating my own account. trying to figure out the "best way" Apr 17 19:14:51 screw sha1, use sha2! It's twice as good! Apr 17 19:14:58 or even sha9! Apr 17 19:15:07 I'd store the sha1 of a salt + the password, deters rainbow dictionary cracking Apr 17 19:15:20 Even if osmeone got ahold of your salt Apr 17 19:16:37 ^^ Apr 17 19:16:45 should have mentioned, but you should "salt" your password Apr 17 19:16:55 Can somebody please tell me, why code: String regExpBody = "(?<=
.*<\/a>.*<\/div>)"; is giving an "Invalid Escape Sequence" error? Apr 17 19:17:09 That is pretty much a given... but I guess should assume anything Apr 17 19:17:21 You should add pepper too, seasoning is important. Apr 17 19:17:46 :) Apr 17 19:18:02 Icehunter: no, but stackoverflow might. Apr 17 19:18:27 everytime you salt a password, a bad guy gets sad Apr 17 19:18:38 lov, too bad i need answer pretty quickly :/ Apr 17 19:19:13 Icehunter: need to escape parenthesis? Apr 17 19:19:17 Don't think you need to escape /, only \ Apr 17 19:19:40 wait, i'm not used to this construct: (? ... ) Apr 17 19:20:05 its a look ahead Apr 17 19:20:06 SuD, (?=...) you mean Apr 17 19:20:31 Found on wikipedia :D Apr 17 19:20:46 according to docs it's supported, i'm studying it... Apr 17 19:22:17 LycaonX, Thanks a lot, helped) Apr 17 19:23:42 ant has -pre-clean Apr 17 19:23:45 is there -post-clean? Apr 17 19:24:01 Out of curiosity: If I'm just writing a Bitmap straight to a file using a Buffered+FileOutputStream in one go from memory, do I need to use flush, or can I close directly? Apr 17 19:24:12 close should flush Apr 17 19:25:47 cool Apr 17 19:26:01 JakeWharton I believe there is a post-clean target Apr 17 19:26:20 look at the build.xml in android-sdk dir Apr 17 19:28:01 huh Apr 17 19:28:04 seeme like there isn't Apr 17 19:29:20 it's easy to add a pre-clean as a dependency, a post-clean would have to be executed manually Apr 17 19:31:20 Oh. That's embarrassing. Apr 17 19:32:12 I misunderstood the point of the "Connection Timeout" parameter. It is a delay before attempting a connection. So I've had a useless 5 second connection delay in my app for a while. Apr 17 19:32:59 oO Apr 17 19:33:32 O_o Apr 17 19:35:26 What's a good value to use for socket timeout? I guess it at least has to be something like 10 seconds, such that it doesn't fail too easily in poor network situations? Apr 17 19:37:08 O.o Apr 17 19:38:12 skfax: depending on what you're doing i would say consider not using a persistent TCP socket Apr 17 19:39:57 It's just a short connection to get ~10 kB of data every few hours. I'm using the HttpClient with BasicHttpParams atm, what would the alternative be? Apr 17 19:40:11 skfax: that is what I would suggest Apr 17 19:40:35 Hi. I have some trouble with the Java Calendar object in Android. F.ex. now the time on the AVD is 9:39 in the evening, but Calendar shows hour: 10 and minute: 23 Apr 17 19:41:03 It seems to be random, however, because a little earlier it showed the correct hour and minutes. Apr 17 19:42:22 readme: thanks :) Apr 17 19:43:32 Anyone? This is really frustrating, as I cannot make sense out of using time and scheduling at all... Apr 17 19:46:47 Hi, if I want to use a image from the SDK for a ImageView, I do this in the XML : android:src="@android:drawable/arrow_down_float", but in the program, how I get this image drawable? .setImageResource(?Android.?R.drawable.arrow_down_float); I can easily do this for my images, but for the stock images from the SDK, I can't Apr 17 19:47:16 copy the drawable into your project Apr 17 19:47:36 copy the drawable into your project Apr 17 19:47:39 R.drawable......... Apr 17 19:47:45 rID Apr 17 19:48:50 Ok, I didn't want to copy... But if it's the only way... Apr 17 19:49:19 when should a view returned from a ListView's Adapter.getView() learn its width? I'm returning a view with a custom onMeasure/onLayout, and 0 gets passed for widthMeasureSpec in onMeasure(), how do I know how wide to make the view (in this case, the width of the screen) Apr 17 19:50:39 google has awesome support. I read tons of fud yesterday from idiots that said google will leave you in the dust, so I got really worried... i get a support reply and my checkout account is fixed, in less than half a day. \o/ Apr 17 19:51:15 readme: lucky you Apr 17 19:51:21 Bonkers: views don't know their width until onMeasure is called Apr 17 19:51:44 readme: the stereotype of Google support being located in Siberia didn't start from nothing :P Apr 17 19:52:04 readme, right, but shouldn't widthMeasureSpec have some hint on the width? normally, like when you do setContentView(), that view will get the window's width in widthMeasureSpec Apr 17 19:52:14 the veiw I'm returning from getView() gets a 0 for widthMeasureSpec Apr 17 19:52:30 Bonkers: my experience is that you won't have information on the width until onMeasure is called Apr 17 19:52:39 right, this is in onMeasure Apr 17 19:52:49 did you override onMeasure? Apr 17 19:52:53 widthMeasureSpec is passed to onMeasure Apr 17 19:52:58 yes, I overode onMeasure and onLayout Apr 17 19:53:07 paste me the overridden onMeasure method Apr 17 19:53:47 https://github.com/mschulkind/cordova-true-native-android/blob/master/src/org/apache/cordova/plugins/truenative/ViewSubclass.java#L23 Apr 17 19:53:53 there's quite a lot going on Apr 17 19:54:08 and this is only becoming a problem now that I have 2 activities Apr 17 19:54:46 Bonkers: you need to hook that so that you know when it's finished running Apr 17 19:55:02 define your own callback that has width, height as params Apr 17 19:55:08 then you do the measure-dependent work in there Apr 17 19:55:45 I'm not sure what you mean Apr 17 19:55:57 1 sec Apr 17 19:56:20 the "oM parent" log line is printing "0x66" Apr 17 19:56:24 66 is correct Apr 17 19:56:37 should I just manually be setting the width to the table view's width? Apr 17 19:57:12 hi. do I have to root my phone to test my apps from eclipse on it? Apr 17 19:57:17 no Apr 17 19:57:23 this isn't iOS Apr 17 19:57:31 I'm not even sure, I usually extend LinearLayout or another layout that knows how to measure itself and just call super.onMeasure() Apr 17 19:57:34 phpN00b, you just have to enable development in the settings Apr 17 19:57:46 readme, I think the problme is outside the layout stuff Apr 17 19:58:03 I'm no longer clear on what your problem is Apr 17 19:58:08 readme, this was actually working before I added in the other activity Apr 17 19:58:16 holy shit ball action providers are awesome Apr 17 19:58:19 readme, the problem, or at least one symptom is 0 is getting passed as the parent width there Apr 17 19:58:29 readme: then are you translucent or fully opaque Apr 17 19:58:32 time to test it on a 2.3 device and see if it explodes with ABS Apr 17 19:58:37 Bonkers: ah, I see. Apr 17 19:58:39 readme, my listview rows don't display their views, jsut white spaces (background color of the backing view) and clicks don't work Apr 17 19:59:07 readme, and this seems to have started when I involved a second activity, is it not allowed to call startActivity inside another onCreate()? Apr 17 19:59:21 that has nothing to do with it Apr 17 19:59:32 it might have caused your problem to be noticable but it isn't wrong to do Apr 17 19:59:46 ok, that's good to know Apr 17 20:00:06 at first I thought I was passing the wrong contexts around for view creation, but I've checked pretty carefully and I'm using the correct ones everywhere Apr 17 20:00:11 why are you starting an activity to just load another activity? Apr 17 20:00:42 t0mless, first activity loads the runtime environment, then the code inside the environment chooses what kind of activity it really wants Apr 17 20:01:16 but that part is working just fine Apr 17 20:01:25 ahh Apr 17 20:01:34 my listview rows are not displaying now, but the actvitiy background does and the listview rows are the right vertical size, but don't show/click Apr 17 20:02:53 readme, everythign on that master branch actually works because it doesn't have the second activity yet, here's the rough commit that breaks it https://github.com/mschulkind/cordova-true-native-android/commit/96e8886cb5c1b79c88f65ee2d6ddbedb18415624 Apr 17 20:05:07 Other than the 30 or so whine/complaints about lack of Adhoc support in ICS posted on the Android google group, do any of you know of a contributor or third party that is actually interested or working on reimplementing true adhoc support instead of just saying "lol uze teh wifidirect" seeing as how it's not even supported until Windows 8 anyhow? Apr 17 20:06:38 i can officially say that i have no idea what you're talking about Apr 17 20:06:46 but i speculate that that doens't help you ;) Apr 17 20:07:34 LycaonX: Can't be done w/out rooting the device Apr 17 20:08:02 LycaonX: so there is no way for a third party to make an app that does it safely Apr 17 20:08:49 dragorn: Rooting is the easy part ;) Apr 17 20:09:28 LycaonX: not on any supported product, plus expecting the user to trust you putting random shit on the system? No. Apr 17 20:09:32 I'm setting up a build environment and am going to dig into the wpa_supplicant file and the supporting .java sources that deal with the wifi config, but I didn't want to go reinventing the wheel Apr 17 20:09:40 Bonkers: no idea Apr 17 20:09:58 readme, alright, thanks for trying Apr 17 20:12:43 I trust myself. Whether the other hundreds of people who are miffed at the drop of adhoc support in ICS care to use the modified files isn't my concern. Apr 17 20:13:03 I must say, the native git intergration in IntelliJ is tits. Apr 17 20:13:25 so does intellij have a free edition for non opensource projects now? Apr 17 20:13:40 the community edition has always been free Apr 17 20:13:48 and open source actually Apr 17 20:13:51 If you don't know, just say so. No need to toss out personal opinions on why you think what I'm looking into isn't supported/allowed/feasible. It's open source, sometimes you have to do your own support. Apr 17 20:14:59 LycaonX: Google, there's xda threads on it. You'll have to modify wpa_supplicant to report things differently, and then have to match any changes per-device made to it Apr 17 20:15:14 JakeWharton I can attest that a custom ActionProvider class works find on 2.3 with ABS Apr 17 20:15:32 not a ShareActionProvider, just an ActionProvider Apr 17 20:16:07 JakeWharton: poke Apr 17 20:19:05 Hum, how can I reduce the size of the Rating Bar Apr 17 20:20:43 anyone of you got a sample/example of a custom listadapter using an xml layout per row ? Apr 17 20:20:53 Insayne: yeah, google. Apr 17 20:20:57 ==jasta Apr 17 20:21:04 jasta, nope Apr 17 20:21:07 i google this one Apr 17 20:21:14 Insayne: i meant literally google is who has it. Apr 17 20:21:18 nothing worthwhile Apr 17 20:21:20 no? Apr 17 20:21:22 check android documentation. Apr 17 20:21:26 i checked, it doesnt Apr 17 20:21:31 in particular, samples. Apr 17 20:21:34 it only does a simple text listview, using the listview_item Apr 17 20:21:34 'm using Android SDK/plugin and I was wondering how I could also integrate html5/js/css features into eclipse. o far there is no syntax hilighting or completion of any sort, which would be nice Apr 17 20:21:39 hrm Apr 17 20:21:45 Insayne: trust me, it's in the samples. Apr 17 20:21:51 let me see, whats the sample called? Apr 17 20:21:52 AlertDialov .dismiss() doesnt work. anybody knows why? Apr 17 20:21:56 (am leeching them now= Apr 17 20:21:57 samples. Apr 17 20:22:31 no i meant, which sample in the samples? Apr 17 20:22:51 grep for inflate, you'll fidn one. Apr 17 20:22:53 i'm sure of it Apr 17 20:23:23 dont got grep, am on windows Apr 17 20:23:30 that's no excuse Apr 17 20:23:34 i see XmlAdapters Apr 17 20:23:38 * t0mless is on windows, and has grep Apr 17 20:23:46 you do ? Apr 17 20:23:53 Yea... Apr 17 20:24:03 i didnt know it existed for windows Apr 17 20:24:08 lemme google that then :P Apr 17 20:24:13 Insayne: you're beginning to seem helpless here friend. Apr 17 20:24:19 cygwin ftw Apr 17 20:24:26 cause I didnt know about grep for windows? Apr 17 20:24:27 Pretty sure if you install git or cygwin you get grep automatically Apr 17 20:24:35 yup Apr 17 20:24:36 i dont run cygwin Apr 17 20:24:43 custom list adapter with an XML row layout is pretty easy concept Apr 17 20:24:44 how about git Apr 17 20:24:49 neither Apr 17 20:24:51 hmm Apr 17 20:24:54 interesting Apr 17 20:24:56 inflate your layout in getView, set values, return the view Apr 17 20:25:04 * raymonddull is on a mac so can't test Apr 17 20:25:18 ill check Apr 17 20:25:30 t0mless: unless your convertView isn't null Apr 17 20:25:43 then just update the layout Apr 17 20:25:49 i didnt know there was grep for windows - and i was more looking for the sample, so the title of the sample would have helped :P Apr 17 20:25:51 well yea, but he was asking for a basic example Apr 17 20:26:00 which might not include that optimization for recycling views Apr 17 20:26:21 but I think I've told him last week to go watch Romain Guy's listview IO videos Apr 17 20:27:29 t0mless, i did watch it :D Apr 17 20:27:54 So then why do you need samples? Apr 17 20:27:58 Just... do it. Apr 17 20:28:09 but you can't expect me to understand all of it right away, if I got no prior experience with Android or java - i learn from sample code the easiest Apr 17 20:28:40 Go learn Java... Then just do it. Apr 17 20:28:59 yes, just do it :P Apr 17 20:29:09 make sure you're wearing your Nike's Apr 17 20:29:35 and eat your wheaties? Apr 17 20:30:11 nah Apr 17 20:30:13 just do it Apr 17 20:31:43 java makes learning a bit more difficult by not having a repl :-( Apr 17 20:31:52 * pfn wishes beanshell were kept up to date Apr 17 20:33:26 Insayne: you seem to be generally more clueful than the rest of the nitwits that float in and out of here. Do yourself a favor and actually learn java/android. Apr 17 20:33:57 no offense, but anyone on windows not running cygwin should be slapped with a shoe in the face Apr 17 20:34:45 cygwin is better than a shoe in the face, but tbqh not a whole LOT better Apr 17 20:35:38 in particular, it still runs inside the usual windows cmd.exe type shell window, which is utterly hooverish Apr 17 20:36:07 there are several terminals out there: Console, Puttycyg and in the last release they included their own iirc Apr 17 20:36:27 ctate: SUA/SFU works better, IMHO Apr 17 20:36:37 gitbash is nice, based on msys or whatever it is Apr 17 20:36:56 not to mention the fact that it probably avoids some nightmare-inducing elements of Cygwin (the fork(), oh god, the fork()) Apr 17 20:38:21 ctrl-c to stop a process? lawl gonna stop cygwin too Apr 17 20:38:27 hope you weren't in the middle of something! D Apr 17 20:39:34 i don't remember cygwin dying because ^C. But i remember windows programs not dying on ^C Apr 17 20:40:23 p_l: "SUA/SFU"? Apr 17 20:40:45 I see no reason to use cygwin anymore Apr 17 20:41:00 you can easily virtualize a whole linux box Apr 17 20:41:01 oh, the Windows intrinsic posix subenvironment? that's insufficiently capable, iirc. Apr 17 20:41:12 lov: I've got enough nightmares from reading how fork() was implemented... Apr 17 20:41:13 at least SUA/SFU has the possibility of it having system assist Apr 17 20:41:19 haha Apr 17 20:41:21 readme: ofc then you have to run X. i run Windows because it's better than X. Apr 17 20:41:22 SuD: that's because C-c is not a signal in windows (since cmd.exe and such doesn't include it) Apr 17 20:41:22 ctate: Services for Unix Applications/Services For Unix Apr 17 20:41:22 depending which version you have Apr 17 20:41:22 bundled with NT6 Ultimate/Enterprise Apr 17 20:41:22 ctate: it's somewhere at the level of OpenBSD in compatibility terms Apr 17 20:41:27 I haven't heard about that Apr 17 20:41:28 ctate: that was dropped after windows 2000 iirc Apr 17 20:41:40 ctate: er, you don't have to run X.... Apr 17 20:41:46 wongk: no, it wasn't, it was just redone Apr 17 20:41:57 lov: true, but then you're living in the 70s instead of the 80s. Apr 17 20:42:02 ctate: can't argue with that. Windows is better than X, for sure.. but why do you need to run X in your vm? :) Apr 17 20:42:10 guess im remembering incorrectly, then Apr 17 20:42:28 there are two POSIX subsystems, the old posix.dll, and later Interix/SFU/SUA (that's how the name changed, iirc) Apr 17 20:42:49 readme: the whole goal here was to have a better terminal. An 80-column TTY doesn't count. :) Apr 17 20:42:55 this is why i just suffer with cygwin. Apr 17 20:43:08 ctate: why not use putty to ssh into the vm? Apr 17 20:43:19 if you have NT6 Ultimate or Enterprise, you only have to download a free package that adds the software that isn't packaged on the install disc (gcc, binutils, etc.) Apr 17 20:43:33 because putty is also a pretty crappy terminal? Apr 17 20:43:37 or use X11 forwarding and run actual xterms off your VM host in your Windows environment Apr 17 20:43:43 I like putty a lot Apr 17 20:43:44 Insayne https://gist.github.com/2408885 Apr 17 20:43:50 ... and now you're back to X; see above. :) Apr 17 20:43:53 putty is nice.. tweak the setting sa bit Apr 17 20:43:53 I wrote that in like 2 mins Apr 17 20:43:57 there's an example Apr 17 20:44:01 well to each his own but i think it's a crazy choice Apr 17 20:44:08 putty is better than running ssh directly in cygwin's cmd.exe window, sure. Apr 17 20:44:20 that's setting the bar so low you need to dig a slot for it. Apr 17 20:44:25 as a pure terminal, putty does exactly everything I need Apr 17 20:44:43 pfn: line wrap with smooth line-spanning selection? Apr 17 20:44:44 well, other than being able to operate as a local console Apr 17 20:44:46 that would be awesome Apr 17 20:44:47 except Tabs Apr 17 20:44:57 I don't use terminal tabs Apr 17 20:45:03 * ctate uses lots of terminal tabs Apr 17 20:45:05 they're pretty worthless for me Apr 17 20:45:14 that's why i use "Console" Apr 17 20:45:15 i typically have two or three terminal windows each with multiple tabs Apr 17 20:45:22 ctate, smooth line-spanning selection? it doesn't do rectangle selection like cmd Apr 17 20:45:28 I just use plain old xterm Apr 17 20:45:34 ctate, it does sane line-selection like just about everything else Apr 17 20:45:36 ctate: you can run rxvt in windows... :) Apr 17 20:45:37 * raymonddull uses Terminal.app Apr 17 20:45:40 i change the font, of course. Apr 17 20:45:41 :) Apr 17 20:45:55 pfn: does it recognize when the content is a wrapped line rather than just a character grid? Apr 17 20:46:03 i don't think so, hence i declare it hooverish. Apr 17 20:46:15 raymonddull: exactly. me too. Apr 17 20:46:29 ctate, dunno, don't think so, and next to nothing does Apr 17 20:46:33 i haven't found anything for Windows that is remotely as good Apr 17 20:46:39 pfn: BeOS terminal did; Terminal.app does. Apr 17 20:46:52 so it knows when you're looking at a table? Apr 17 20:46:59 and can do rectangular selection? Apr 17 20:47:03 whatever that SuSE terminal app is might have done it Apr 17 20:47:10 rectangular selection is for chumps Apr 17 20:47:16 so what are you asking? Apr 17 20:47:42 i'm asking for the terminal to be aware of the content of scrollback as an accumulaton of lines of output Apr 17 20:47:45 I agree, I love how when I resize a window, the text arranges too, like I can start nano on a small window, then make it bigger, nano adjusts, vs windows where it basically says fuck off Apr 17 20:47:52 it copies verbatim whatever is sent from the remote end, less control characters Apr 17 20:47:54 and wrap the lines when they are longer than the terminal window currently is Apr 17 20:47:58 rewrap when i resize the window Apr 17 20:48:05 and copy it out as originally sent Apr 17 20:48:10 raymonddull, any sane terminal does that Apr 17 20:48:23 ctate, that's a function of the app, rather than the terminal window Apr 17 20:48:25 not windows cmd Apr 17 20:48:33 i.e. TIOCWINRESIZE or whatever the ioctl is Apr 17 20:48:52 pfn: you're making a distinction that only exists in legacy unix, i believe Apr 17 20:48:58 just use screen ;P Apr 17 20:49:04 and yeah, I just use screen Apr 17 20:49:09 so I have no need for terminal tabs Apr 17 20:49:20 each screen session has 6-19 terminals inside of it Apr 17 20:49:22 xterm and rxvt still support n-click-and-hold. Do any of these new fangled terminals do that? I've hit a couple and they didn't seem to and I replaced them in preference to trying to make them work right. Apr 17 20:49:24 and I run 1 screen session per host Apr 17 20:49:36 "click and hold"? Apr 17 20:49:38 n-click-and-drag perhaps I should say. Apr 17 20:49:50 oh arr, multi-button chords? Apr 17 20:49:54 Gumboot, you mean word/line/single selection? Apr 17 20:50:10 click-and-drag selects a region of characters. click-click-and-drag does words, click-click-click-and-drag does lines, click-click-click-click-and-drag does paragraphs (depending on stuff). Apr 17 20:50:17 Gumboot, putty does that Apr 17 20:50:21 dunno about quad-click Apr 17 20:50:33 but 1, 2 and 3 click were standard since xterm Apr 17 20:50:36 I got it Apr 17 20:50:36 http://img690.imageshack.us/img690/7526/javascripthelloworldass.png Apr 17 20:50:39 :D Apr 17 20:50:43 Gumboot: doubleclick-drag you mean? Apr 17 20:50:50 If you prefer, yes. Apr 17 20:50:50 wrong chan Apr 17 20:50:52 that sort of thing is pretty common on MacOS Apr 17 20:51:00 Actually, xterm lets you increment the click count after the drag. Apr 17 20:51:28 also the introduced idioms like shift-click to extend selection, command-click for discontiguous selection, etc. Apr 17 20:51:30 And it wraps. One of my not-doing-anything-useful things is to sit there and cycle. Apr 17 20:51:44 how can you increment click count after dragging Apr 17 20:51:53 click++; Apr 17 20:52:16 oh, I guess it does Apr 17 20:52:18 Workbench had shift-click for discontiguous selection. I think RiscOS did, too. Apr 17 20:52:47 that is the weirdest UI trait ever Apr 17 20:52:52 click again while dragging... Apr 17 20:53:16 neat, I guess Apr 17 20:53:33 rxvt with the wrong build options (perl, I think) doesn't do it. Apr 17 20:53:52 a feature I won't normally use Apr 17 20:54:02 I wish screen's scrollback buffer supported more of vi's commandset Apr 17 20:54:04 that'd be so win Apr 17 20:54:06 i m trying to profile specific parts of my android app..by using debug.startMethodTracing() and debug.stopMethodTracing..But logcat shows permission denied..what should i do ? Apr 17 20:54:26 fellownoob, is the app a debug or release build? Apr 17 20:54:46 i m running it in the emulator Apr 17 20:54:49 also see http://developer.android.com/guide/developing/debugging/debugging-tracing.html Apr 17 20:55:58 adding the permission to write to external storage also didnt help Apr 17 20:56:11 reread the logcat Apr 17 20:56:14 pastebin Apr 17 20:58:29 pfn: logcat says TRACE STARTED: '/sdcard/Timeperiod.trace' 8192KB.. Unable to open trace file '/sdcard/Timeperiod.trace': Permission denied Apr 17 20:58:53 does your AVD *have* an sdcard mounted? Apr 17 20:58:57 yea Apr 17 20:59:08 then your app doesn't have write sdcard permissions Apr 17 20:59:15 contrary to what you think Apr 17 20:59:29 i added the write sdcard permissions Apr 17 20:59:33 is the permission log coming from your app's pid? Apr 17 20:59:45 (just checking) Apr 17 21:00:07 check app info -> permissions Apr 17 21:00:11 in the emulator Apr 17 21:00:47 doublecheck the spelling of the permission string in your manifest, of course Apr 17 21:01:10 i added them in eclipse xml editor Apr 17 21:01:16 so i didnt have to write them manually Apr 17 21:01:31 you added them incorrectly then Apr 17 21:01:46 I'm guessing you added them as rather than Apr 17 21:02:50 yeah that may be the mistake Apr 17 21:06:47 ctate: google ended up fixing my problem in less than 1 day :) Apr 17 21:14:24 readme: \o/ Apr 17 21:14:51 might not be a dev question, but someoene of you might know Apr 17 21:14:52 I am using a Galaxy Nexus with an HML Adapter, and wanted to ask if it is possible to somehow remove the back/home/tasks soft keys on a per-apk/app basis, so i can enjoy those fullscreen ? Apr 17 21:16:11 Nope Apr 17 21:16:59 An app can ask them to be hidden while it is visible, but they will return as soon as the user taps anywhere Apr 17 21:17:02 thats bad for plasma burn-in Apr 17 21:17:10 :( Apr 17 21:17:11 no plasma; they're LEDs Apr 17 21:17:17 no no, the TV is plasma Apr 17 21:17:24 oh, got it Apr 17 21:17:24 using the MHL adapter, remember? Apr 17 21:17:38 thats why I wanted to launch games without it Apr 17 21:17:40 i didn't recognize the acronym. HDMI? Apr 17 21:17:49 some games might hide it too Apr 17 21:17:57 at least, turn them into little dim dots Apr 17 21:18:01 Even then, I thought apps could only enebale night mode Apr 17 21:18:03 there's API for that,too Apr 17 21:18:03 yeah, HML is basically micro-usb to hdmi Apr 17 21:18:04 not hide the bar Apr 17 21:18:13 no t0mless, there are several that hide them Apr 17 21:18:18 dice player for example does it Apr 17 21:18:20 t0mless: pretty sure you can ask for them to be fully hidden until the user touches Apr 17 21:18:25 correct Apr 17 21:18:29 youtube does it. it's how you can do proper 720p video on that screen Apr 17 21:18:33 and i wanted to patch that into certain apk Apr 17 21:18:41 correct, but some emulators dont, well none do Apr 17 21:18:45 You'd have to hack each apk Apr 17 21:18:50 yup, i am willing to do that Apr 17 21:18:55 you can't do that without modifying the system, Insayne Apr 17 21:19:07 i can't just change the APK ? Apr 17 21:19:19 ... no? Apr 17 21:19:31 great, so i have to ask every developer to include it Apr 17 21:19:40 i mean, i suppose you could but it can be arbitrarily tricky depending on how it's written Apr 17 21:19:47 i see Apr 17 21:19:49 and the code is obfuscated anyway Apr 17 21:19:57 yeah i suppose Apr 17 21:20:09 well if there was a system wide change, it be cool Apr 17 21:20:18 i.e, hold power down, in that menu you can enable soft keys or not Apr 17 21:20:24 problem solved Apr 17 21:20:36 like i said, if you modify the system you can do whatever you want :) Apr 17 21:20:53 yeah but I don't know how to do this Apr 17 21:20:59 and thats what my question is - how? :P Apr 17 21:22:05 AOKP does it, but i like the official rom Apr 17 21:22:44 I would prefer patching APKs, but oh wells Apr 17 21:22:47 i will just mail the dev Apr 17 21:23:51 so how in your own app would you do it ? Apr 17 21:28:01 Gah, finally found a repo to add that still has sun-java6-jdk available. And this is where someone smarter than I am mentions I could have just installed it from a .bin from oracle Apr 17 21:29:29 http://developer.android.com/reference/android/view/View.html#SYSTEM_UI_FLAG_HIDE_NAVIGATION Apr 17 21:29:39 Insayne ^ Apr 17 21:32:34 android's systemui bar ftl Apr 17 21:32:45 * pfn hopes the next tablet version of android does something to address this Apr 17 21:34:47 * g00s thinks of some wise ass thing to say, but decides not to :D Apr 17 21:35:05 pfn? Apr 17 21:35:06 What's that? The "Full screen" apps that still show the damn bar at the bottom? Apr 17 21:35:38 Granted with no hard keys, I kind of get the point, but still... Apr 17 21:36:24 Jug6ernaut, what Apr 17 21:36:39 the first and last android tablet i have seen was the xoom, i don't even remember what the ui looked like Apr 17 21:36:57 yeah, you should get a winphone already and forget android altogether :) Apr 17 21:37:13 hah Apr 17 21:37:14 hopefully one of those lost cost nexus tablets will be available soon so i can play around with ics Apr 17 21:37:18 *low Apr 17 21:38:01 it seems opaque when you only seen it on the emu Apr 17 21:38:55 so, now that prince of persia's been released on github, when are we gonna see an open-source android port Apr 17 21:39:16 that might be a fun project Apr 17 21:41:08 hmm, it's all 6502 code Apr 17 21:41:10 ok, not fun to port Apr 17 21:41:51 pfn: were you expecting scala :D Apr 17 21:41:56 no, C Apr 17 21:42:45 Hello I need help with my AVD b/c I have a 1GB SD card configured, and in the gallery app it says no media found, even though I can take a snapshot in the avd camera and save it to filesystem Apr 17 21:43:09 but I guess for very trivial low-res graphics, asm is relatively easy Apr 17 21:47:15 Lol, why I get this error 04-17 17:45:39.130: E/AndroidRuntime(7933): java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.ImageView, when I do a findviewbyId. I get the error when thoses view are at the bottom of my file, but no error and it works when it's at the top ? xD Apr 17 21:47:16 stoned: i've never taken pictures with the emulator.. when you take a snapshot, does it actually save a file to /sdcard/* ? Apr 17 21:47:22 list the files, see if it even wrote one Apr 17 21:47:51 Nic007, because you're casting it wrong, clearly Apr 17 21:47:52 let me find out Apr 17 21:48:15 Nic007: you can't cast a TextView to an ImageView, because ImageView is not derived from TextView Apr 17 21:48:29 make sure you build clean often Apr 17 21:48:30 Nic007: let me guess, you're reusing an ID? Apr 17 21:48:33 it's also possible you're accidentally redefining the same resource IDs Apr 17 21:48:34 timing Apr 17 21:48:45 you can say "+id/foo" twice in the same xml file and aapt won't complain Apr 17 21:49:07 maybe I get a fail with two ID confusion Apr 17 21:49:09 Lint will/should though Apr 17 21:49:12 Nic007: yes Apr 17 21:49:23 aapt should complain Apr 17 21:49:33 im sick of people doing android:layout_below="@+id/my_other_view" Apr 17 21:49:49 then you remove the other view, everything builds, and OH KNOW IT CRASHES Apr 17 21:49:53 +1 Apr 17 21:49:54 s/KNOW/NO/ Apr 17 21:52:17 er Apr 17 21:52:31 how many of you guys also develop for ios? Apr 17 21:52:32 I thought that the adt does complain Apr 17 21:52:37 no Apr 17 21:52:41 huh! Apr 17 21:52:43 just curious to see a poll of who's currently active. Apr 17 21:52:44 not if the +id is in there Apr 17 21:52:50 oh!! Apr 17 21:52:51 it complains if you only use id/ Apr 17 21:52:53 * pfn does not develop for ios Apr 17 21:52:55 and then remove the other view Apr 17 21:52:56 You're right; that would work wouldn't it. Apr 17 21:52:57 never plan to, either Apr 17 21:53:05 well if you use @id/whatever, that's a REFERENCE to it Apr 17 21:53:07 pfn: ++ Apr 17 21:53:09 @+id/whatever CREATES the id Apr 17 21:53:13 yeah Apr 17 21:53:13 canadiancow|work use GridLayout Apr 17 21:53:21 problem solved Apr 17 21:53:24 heh Apr 17 21:53:25 not really Apr 17 21:53:26 pfn: if you do contract work, do you find you run into a lot of people who expect you to be an ios/android hybrid unicorn? Apr 17 21:53:28 i have other issues Apr 17 21:53:28 unfortunately, most job listings I see seem to specifically request ios Apr 17 21:53:32 every layotu has @+id/title Apr 17 21:53:33 or ios+android, but not android by itself Apr 17 21:53:36 Use AbsoluteLayout Apr 17 21:53:38 problem is that you might have circular references, and so you'll need to refer to something before it's declared. Apr 17 21:53:39 then you nuke it somewhere, project builds Apr 17 21:53:41 pfn: yes, that's my frustration Apr 17 21:53:42 NPE Apr 17 21:53:48 why I might have to buy a mac and give in in a few weeks. Apr 17 21:53:48 lov, no Apr 17 21:53:52 Use ActivityGroup Apr 17 21:53:56 orly? Apr 17 21:53:56 you cant have circular references Apr 17 21:54:09 and im pretty sure it doesnt even require it to be declared earlier in the file Apr 17 21:54:15 readme, I don't do a whole lot of android contracting Apr 17 21:54:18 but i am 100% sure you dont need to Apr 17 21:54:22 i fought my old team lead about it Apr 17 21:54:26 wish I could do more Apr 17 21:54:32 view x sets itself as below view y, view y sets itself as right of x, that's not possible? Apr 17 21:54:36 so I can not have a dayjob Apr 17 21:54:41 meh, if you do android, iOS isn't such a big step to learn Apr 17 21:54:45 and vice versa Apr 17 21:54:51 the issue isn't learning ios Apr 17 21:54:53 that might be, but you still only declare it once Apr 17 21:54:57 the issue is that I have 0 interest in ios Apr 17 21:55:01 and the ios ecosystem Apr 17 21:55:07 neither do I, but if the money's good Apr 17 21:55:21 (well, did start on iOS) Apr 17 21:55:32 pfn: i'm not really interested either. Apr 17 21:55:36 Ok, it works :P I draw a ImageView on others Views, I don't want to make them invisible, but I would want to lock them (Like click on Buttons and Gallerys), it's not a problem for the button, but for the gallery.... Apr 17 21:55:37 if the money's good, I'm still not interested Apr 17 21:55:43 I can find plenty of work where the money is good Apr 17 21:55:50 but there's plenty of jobs I'm also not interested in Apr 17 21:55:57 i'm going to bite the bullet and do it, I think. Apr 17 21:56:06 well, as said by someone Apr 17 21:56:12 hybrid android/ios unicorn ftw :p Apr 17 21:56:23 readme, if you can easily convert the investment into billable hours, and you want to, then go for it Apr 17 21:57:28 then I can go into #ios and complain about how it's not android, they could use some of that Apr 17 21:58:03 #iphonedev still, right Apr 17 21:58:12 used to frequent that channel as well Apr 17 22:02:56 Should I reinstall eclipse and hope it works better, or just take the plunge and start using intellij... Hmm. Apr 17 22:03:36 IntelliJ! Apr 17 22:04:01 the only thing I don't like about intelliJ is that you can't have JavaDoc show up in the popup menus Apr 17 22:04:10 you have to hit ctrl+q to get it Apr 17 22:04:25 I was starting to get frustrated with eclipse putting that on the seam between my two monitors Apr 17 22:04:27 would be nice to have the javadoc in the code complition list too like Eclipse has Apr 17 22:04:33 so many applications are ignorant of dual monitor setups Apr 17 22:04:39 indeed :( Apr 17 22:04:49 I <3 my dual monitors Apr 17 22:05:27 i'm grateful for mine Apr 17 22:05:34 I kind of had CRTs for a long time before this Apr 17 22:05:40 haha Apr 17 22:05:44 I had dual CRTs for a while Apr 17 22:05:51 * ctate wishes Eclipse weren't that MDI crap Apr 17 22:05:56 then for a bit I had only 1 lcd Apr 17 22:05:56 yep, i found old CRTs on craigslist Apr 17 22:06:00 set up the dual CRT, lol Apr 17 22:06:05 it took up most of my desk Apr 17 22:06:15 I sold my CRTs on craigslist actually when I got my acer LED Apr 17 22:06:16 now I have lcds, finally.. but these are even getting old now Apr 17 22:06:21 I had a HUGE desk for those Apr 17 22:06:26 wow I am shocked someone bought a CRT> Apr 17 22:06:32 what an idiot Apr 17 22:06:35 this was.... 7 years ago? Apr 17 22:06:40 haha Apr 17 22:06:45 I had CRTs up until about 2 years ago Apr 17 22:07:02 I'm cheap Apr 17 22:07:07 I had a single LED for about 3 or 4 years Apr 17 22:07:12 LED huh? Apr 17 22:07:17 LCD* Apr 17 22:07:19 what kind of computer was it Apr 17 22:07:23 oh ok Apr 17 22:07:33 LED was funnier Apr 17 22:07:48 lol Apr 17 22:08:17 I was impressed for a second that you did all your computing with only one single/binary visual indicator of output for 4 years Apr 17 22:08:32 i had 6 monitors connected to 4 towers, all shared by a single keyboard/mouse (not using kvm) Apr 17 22:09:07 synergy I'd guess? Apr 17 22:09:12 you betcha Apr 17 22:09:31 all 6 monitors lined up side by side Apr 17 22:09:40 2 towers under the desk on either side of me Apr 17 22:09:52 I used to use synergy to share my mouse between my several computers that I used to have when I lived at home and didn't pay for my own electricity. Apr 17 22:10:18 * ctate has a single monitor at work Apr 17 22:10:25 how unprofessional Apr 17 22:10:29 is it big? Apr 17 22:10:45 well, 2560 x 1600 :) Apr 17 22:10:46 30" Apr 17 22:11:01 nice Apr 17 22:11:07 sounds horrible Apr 17 22:11:11 FUCK FUCK FUCK Apr 17 22:11:20 i had a local git repo on my old hdd Apr 17 22:11:21 it took a little getting used to Apr 17 22:11:23 i'd rather be able to take in my monitor at a glance Apr 17 22:11:35 Eclipse wastes so much damn space Apr 17 22:11:44 pro-tip: vim Apr 17 22:12:21 the 80s called. they want their editor back. Apr 17 22:12:34 nothing better than having two vim terminals open side-by-side Apr 17 22:12:34 +1 Apr 17 22:12:56 vim != vi Apr 17 22:13:11 i say that as someone who routinely used XEmacs as his programming editor until four or five years ago. Apr 17 22:13:14 yeah, vi is far far better Apr 17 22:13:25 yeah, in a reality far far away Apr 17 22:13:26 I set my terminal to 161 columns wide Apr 17 22:13:31 and :vsp my vim window Apr 17 22:13:34 vim is a lot of great functionality in an editor that lovingly preserves all the shittiest parts of vi Apr 17 22:13:42 or I set it to 242 columns wide, and :vsp it twice Apr 17 22:13:46 it's just awesome Apr 17 22:13:58 the command/edit mode distinction is among the best feature of vi Apr 17 22:14:30 your keyboard homerow has never known such power Apr 17 22:14:53 instant wizardry without having to lift either hand Apr 17 22:15:02 have fun with your hunt-and-click Apr 17 22:15:18 what about stuff like eclipse refactoring? do you get that through extensions? Apr 17 22:15:31 ctate: every time I'm want to customize vim i look at vim script and barf, and then try to use emacs and barf, and then go back to vim :) Apr 17 22:15:53 i can't really imagine being productive with vim for java Apr 17 22:16:00 +1 Apr 17 22:16:02 let alone for a mixed java/c++ project like Android Apr 17 22:16:13 me neither Apr 17 22:16:18 works for me Apr 17 22:16:39 surprisingly, I agree with the pragma troll today Apr 17 22:16:40 plus, y'know, it's modal. :) Apr 17 22:16:53 I never troll Apr 17 22:17:02 I am utterly and completely serious at all times Apr 17 22:17:13 it blows my mind that people voluntarily pick up vi{m} nowadays Apr 17 22:17:14 pragma-: you just trolled to say you never trolled :) Apr 17 22:17:15 +2 Apr 17 22:17:24 +3 Apr 17 22:17:33 === Apr 17 22:17:35 6 Apr 17 22:17:37 i guess Eclipse is still pretty crappy for straight C/C++, innit Apr 17 22:17:46 i used cut ok Apr 17 22:17:49 *cdt Apr 17 22:18:07 but yeah, i can see using vim a little more in c/c++ Apr 17 22:18:16 but frankly aside from its being MDI, MSVS kicks the competition to the curb pretty hard Apr 17 22:18:21 I use vim for all the things Apr 17 22:18:36 i have to use visual studio 2008 for work (c++).. kinda cringeworthy compared to eclipse/android. it makes me feel handicapped :p Apr 17 22:18:40 ctate: what editor do you use ? Apr 17 22:18:45 skfax: i dont believe you Apr 17 22:18:48 eclipse is so shitty Apr 17 22:18:48 g00s: Eclipse, at work Apr 17 22:18:49 for Apr 17 22:18:50 VS is nice Apr 17 22:18:53 Perl is by far my favorite language. Apr 17 22:18:55 Eclipse for Android work at home Apr 17 22:19:00 * pragma- nods knowingly. Apr 17 22:19:02 MSVS for straight C/C++ noodling at home Apr 17 22:19:10 ctate: so you use eclipse for c and java ? Apr 17 22:19:18 for Android Apr 17 22:19:21 which is mixed Apr 17 22:19:33 yes i have both flavors set up in parallel in my work Eclipse rig Apr 17 22:19:41 i noticed that the eclipse incubator had some new tools for c++ call graph visualization Apr 17 22:19:42 it helps that i sit next to someone who used to work on Eclipse :) Apr 17 22:20:00 i used to use doxygen for some things Apr 17 22:20:29 <3 Eclipse's 'refactor' intrinsics Apr 17 22:20:45 * pragma- mistrusts any and all auto-generation. Apr 17 22:21:00 Every single byte of code must be carefully set by hand. Apr 17 22:21:03 revision control, my friend :) Apr 17 22:23:16 does eclipse have a decent debugger for C++? Apr 17 22:23:33 i have no idea Apr 17 22:23:36 probably not Apr 17 22:23:45 nothing in Linux has a decent debugger for C++ Apr 17 22:24:00 "Oracle CEO Larry Ellison: I don't know if Java is free" <-- wut Apr 17 22:24:01 because that's really the only reason I use MSVC on Windows Apr 17 22:24:32 see above re MSVS kicking things to the curb Apr 17 22:24:46 * ctate misses bdb but is strongly biased on this front Apr 17 22:25:25 btw, i found a solution to fullscreen in apps Apr 17 22:25:45 oh? Apr 17 22:25:49 Fullscreentoggle.apk (some dude onx da made it) will patch the phone to remove them, and then LMT Apr 17 22:25:54 yeah Apr 17 22:25:57 "LMT"? Apr 17 22:25:58 it removes em system wide Apr 17 22:26:02 yeah, lemme link you Apr 17 22:26:08 http://forum.xda-developers.com/showthread.php?t=1330150 Apr 17 22:26:14 by the way, I'm a definite vim guy, and when I have to use Windows the VsVim plugin for VS2010 is surprisingly good Apr 17 22:26:38 and this for fs toggle : http://forum.xda-developers.com/showthread.php?t=1497558 Apr 17 22:26:54 it does require a reboot, but the phone boots in 30 secs, so i dont mind to put it into "TV Mode" Apr 17 22:29:31 i love xda Apr 17 22:29:34 they're so insane Apr 17 22:29:38 yup Apr 17 22:29:44 and it solves the issue I had Apr 17 22:30:01 cause i got a plasma in the bedroom i might wanna connect it to Apr 17 22:30:11 I like xda to the extent that it's the best source for a lot of things, but the culture is pretty weird Apr 17 22:30:21 lots of teenage 1337 h4x0rz ec Apr 17 22:30:27 *etc Apr 17 22:30:27 i wonder if there is a launcher with gamepad support Apr 17 22:30:32 "weird" is spreading it very thin Apr 17 22:30:46 and the level of competence is perhaps not all one would expect (or all they themselves believe) Apr 17 22:31:07 i mean, they keep being surprised by things that turn out to be in the source code, which um somehow they don't really seem to refer to... Apr 17 22:31:15 i think they prove the monkeys typing away can create fine literature Apr 17 22:31:22 ctate, do you know how to record an android screen at full FPS of the device? Apr 17 22:31:29 like, is there a debug function to do this? Apr 17 22:31:31 plug it into HDMI and record that Apr 17 22:31:41 otherwise, no. Apr 17 22:31:45 i would need an hdmi recorder for that, any recommendation? Apr 17 22:31:52 there is no intrinsic way to do it Apr 17 22:32:03 ah too bad, on xbox360 (or even old xbox) the devkits allowed you to do this via network Apr 17 22:32:11 i do not own any HDMI-capable display devices, Insayne; you're talking to the wrong place. Apr 17 22:32:15 I'm totally going to buy an HDMI recorder and start a small business making videos of peoples apps. Apr 17 22:32:17 alright Apr 17 22:32:23 the xbox is a high-power device Apr 17 22:32:25 readme, haha, not really Apr 17 22:32:36 Insayne: i think others have succeeded at it already Apr 17 22:32:36 the old xbox is a 700mhz celeron Apr 17 22:33:22 with a big fat fast memory bus and hardware ethernet Apr 17 22:33:31 and probably fewer pixels to scrape and send Apr 17 22:33:35 fast memory bus? Apr 17 22:33:41 compared to phones today , no Apr 17 22:35:21 uh, yes Apr 17 22:35:26 and vastly more powerful GPUs Apr 17 22:37:09 actually, I wanna try out eclim sometime soon Apr 17 22:37:18 that might solve all my problems of wanting vim + ide support Apr 17 22:41:57 Heh. "Downloading device/samsung/tuna" Apr 17 22:42:42 "tuna" being the base hardware platform for the Galaxy Nexux Apr 17 22:42:44 *Nexus Apr 17 22:42:58 two main variants: "maguro" is GSM, "toro" is CDMA Apr 17 22:43:04 (because CDMA is the fatty) Apr 17 22:43:55 I just grin at some of the codenames given to projects Apr 17 22:44:20 I thought the dessert type ones that were associated with Android were weird, but I'd name a project after a dessert. But tuna? Apr 17 22:44:28 BlackMagic Intensity Pro works on Linux & only $199 Apr 17 22:44:40 i have no idea where hw platform names come from Apr 17 22:44:52 many of them have been fish, though Apr 17 22:46:21 nexus one was mahimahi; G1 and sapphire were trout Apr 17 22:46:29 the emulator is goldfish Apr 17 22:48:22 goldfish are faster Apr 17 22:49:47 evancharlton: so i decided to take my insanity further, and write code that displays a system alert window, but only when you drag the notification bar out Apr 17 22:50:13 it uses reflection to get the StatusBarManager to expand and contract it Apr 17 22:50:21 so that it knows when to show/hide the system overlay Apr 17 22:52:02 code which does not work on 4.0, meh. Apr 17 22:52:19 yay for reflection Apr 17 22:55:51 https://github.com/tom-dignan/android-hidden-system-overlay-2.x/blob/master/src/com/tomdignan/android/hiddensystemwindow/SystemAlertWindowService.java Apr 17 22:56:05 need to refactor the reflection into something that doesn't get called each time, but it works Apr 17 23:02:45 hey all, does anyone know when rev3 of API 14 (android 4.0) with GPU acceleration is going to be published? Apr 17 23:03:33 never, given that API 15 is out? Apr 17 23:03:39 not sure what you're asking Apr 17 23:04:48 lol... Apr 17 23:04:50 ICS had GPU acceleration at launch, no ... ? Apr 17 23:05:03 ctate, i want to try 4.0 with gpu acceleration Apr 17 23:05:07 i'm guessing this is about accelerated drawing in the emulator Apr 17 23:05:09 i mean the emulator :) Apr 17 23:05:16 so fire up the latest emulator with a 4.0 image Apr 17 23:05:25 yes, sorry i guess i forgot to mention that :-/ Apr 17 23:05:30 it dies Apr 17 23:05:35 just make sure you turn on accel in the 4.0 AVD that you create Apr 17 23:05:37 interesting Apr 17 23:05:38 file a bug Apr 17 23:05:47 dies in the OS, or the emulator itself dies? Apr 17 23:06:02 the emulator itself, i got the best error message ever from the emulator Apr 17 23:06:19 Only api15 emulator supports gpu emulation Apr 17 23:06:20 I/DEBUG ( 34): debuggerd committing suicide to free the zombie! Apr 17 23:06:35 no, that's not the emulator itself dying; that's part of the android infrastructure Apr 17 23:06:53 SimonVT: the question is how tightly the emulator binary itself is bound to the OS image being emulated Apr 17 23:07:07 ctate, anyway, SimonVT is right, only api 15 seems to support gpu emulation, its a bug that it lets you run others at all Apr 17 23:07:30 i mean others with -gpu on enabled Apr 17 23:07:40 Tightly enough bound for the docs to say api15+ anyway :p Apr 17 23:07:58 SimonVT, is there a way to get other api levels to work with gpu? Apr 17 23:08:04 interesting Apr 17 23:08:19 Nope Apr 17 23:08:23 GuySoft: probably not. why specifically do you want to? Apr 17 23:08:30 SimonVT, because i am getting with api 15 some bug in the native java calls, that i dont think will happen with lover api levels Apr 17 23:08:33 I doubt there will be Apr 17 23:08:36 ctate, ^ Apr 17 23:08:48 i don't know offhand of devices that run 4.0 but won't get upgraded to 4.0.4+ Apr 17 23:08:51 well, 4.0.3+ Apr 17 23:08:55 4.0.4 not being an API release Apr 17 23:09:29 I actually found someone reporting the same native java function failure on a real machine. and he said it worked fine with api level 14 Apr 17 23:10:12 Soo.. You should fix it on api15 either way Apr 17 23:10:19 Since a lot of devices are going to get that upgrade Apr 17 23:10:25 the app (its instagram BTW) requires gpu acceleration Apr 17 23:10:46 SimonVT, the problem is i dont have the source to see what exactly its executing :( Apr 17 23:11:13 i thought it *did* work on API 15, inasmuch as it works anywhere (it being still experimental, remember) Apr 17 23:11:15 "life would be so much easier if we just had the source code" Apr 17 23:11:35 err, really? Apr 17 23:12:09 ctate, it works on the stock images, which is where istagram tested it (you can see from the test photos). but custom roms report errors Apr 17 23:12:42 explain me how this is not the cusotmizers' bug...? :) Apr 17 23:12:45 the emulator sorta behaves the same Apr 17 23:13:32 ctate, again, don't know because I dont have the source :) . but the emulator has the same errors Apr 17 23:14:01 And I know Istagram didnt test it on the emulator. because it didn't have gpu options when they developed it Apr 17 23:14:06 i could have sworn the emulator source was all public Apr 17 23:14:20 ctate, not the emulator, istagram's calls Apr 17 23:14:30 ctate, i can show you the error if you want Apr 17 23:14:45 oh, you're saying the *app* crashes? or that instagram's app crashes the emulator? or...? Apr 17 23:14:59 i mean, does the emulator even support *cameras*? Apr 17 23:15:37 yes Apr 17 23:15:43 ctate, yes of course. even detects the hardware attached to the PC :) . thats not the problem, i know where it dies Apr 17 23:15:47 it dies on the filter rendering Apr 17 23:16:09 ctate, here, you can see where it failes http://nopaste.dk/p4995 Apr 17 23:16:13 fails* Apr 17 23:16:45 there is a JNI warning, and then a fatal error on com.instagram.android.gl.NativeRenderer.nativeOnSurfaceCreated(Native Method Apr 17 23:17:14 There's still issues with GPU acceleration on the emulator Apr 17 23:17:17 Don't trust it completely Apr 17 23:17:40 SimonVT, ok, is there anyone that should know about this kind of error? Apr 17 23:17:40 It's most likely not an instagram issue Apr 17 23:17:47 SimonVT, i know it isn't Apr 17 23:17:53 like i said, it's still experimental -- they've been very clear about that Apr 17 23:18:29 ^ Apr 17 23:19:00 SimonVT, should I report it somewhere? Apr 17 23:19:37 They'd probably appreciate that Apr 17 23:20:34 Sinjo, one more intresting thing- the exact same error was posted on a forum on sandvold rom. so this happends on real devices too: http://forum.xda-developers.com/showpost.php?p=24408065&postcount=9332 Apr 17 23:20:39 sorry SimonVT & Apr 17 23:20:57 Real devices, crappy roms Apr 17 23:21:29 They probably fucked up their drivers or something Apr 17 23:21:31 yeah Apr 17 23:22:01 SimonVT, well he says the previous version works on his crappy rom, the diffrence is they moved from 4.0 to 4.0.3 . perhaps the emulator emulates a crappy rom :) Apr 17 23:22:48 no disrespect to the google developers intended. i know its experimental Apr 17 23:23:25 anyway, should I report here?: http://forum.xda-developers.com/showpost.php?p=24408065&postcount=9332 Apr 17 23:23:31 there was quite a bit of expansion of the use of GL from 4.0 to 4.0.3 Apr 17 23:25:36 SimonVT, ctate is there a way to give a more general report about this error? I mean apart from Instagram? Apr 17 23:26:06 its just my first bug in the android system, and I dont want it to not be taken seriously because of some missing detail Apr 17 23:34:46 How can I have the home button in the Action Bar to do the same thing as the back button? Apr 17 23:35:46 Don't do that, it's not a back button Apr 17 23:36:35 You can't. Apps cannot detect or intercept presses on Home. Apr 17 23:36:47 you can make the back button go home, however :) Apr 17 23:37:38 abelianhorizon: http://developer.android.com/guide/topics/ui/actionbar.html#Up Apr 17 23:38:49 ctate, SimonVT tada: https://code.google.com/p/android/issues/detail?id=29027 Apr 17 23:39:02 SimonVT, ctate anyone you think the report might interest? Apr 17 23:40:14 I have an activity that you can get to from two other activities, I want to just go back to the original activity Apr 17 23:40:33 so hit back Apr 17 23:40:54 or, if you're the app, just finish() your activity and it will go away and show the previous one, whichever that may be Apr 17 23:41:43 finish(), thanks Apr 17 23:42:57 yeah that works exactly like I want Apr 17 23:43:48 GuySoft: oh! Apr 17 23:43:52 this is a bug in Instagram Apr 17 23:43:57 W/dalvikvm( 597): JNI WARNING: expected return type 'I' Apr 17 23:43:57 W/dalvikvm( 597): calling Lcom/instagram/android/gl/NativeBridge;.getLuxEnabled ()Z Apr 17 23:43:58 W/dalvikvm( 597): in Lcom/instagram/android/gl/NativeRenderer;.nativeOnSurfaceCreated:()V (CallStaticIntMethodV) Apr 17 23:44:05 their JNI is broken Apr 17 23:44:16 in the emulator builds, JNI debugging is strict Apr 17 23:44:32 ctate, yes i read about that. i was trying to find a way to disable it Apr 17 23:44:33 on devices this skates, but the emulator crashes it on purpose Apr 17 23:44:41 but it continues even after the warning Apr 17 23:44:43 disable it by fixing the damn app Apr 17 23:45:14 ctate, but I dont have the source :( Apr 17 23:45:42 didn't instagram just get bought for 1 billion imaginary money? Apr 17 23:45:58 Instaville Apr 17 23:46:04 pragma-, yes, that does not mean they will care to fix it **** ENDING LOGGING AT Tue Apr 17 23:46:14 2012 **** BEGIN LOGGING AT Tue Apr 17 23:48:17 2012 Apr 17 23:48:24 maybe they bought them to make them disappear Apr 17 23:48:30 ctate, yep,, they are not fixing it Apr 17 23:48:35 it's only imaginary money, after all Apr 17 23:48:58 "they are not fixing it"? you know they have no plans to fix it ever? Apr 17 23:49:18 pragma-, logically, if they close it people will just move to lightbox. so I guess they can just not-maintain it until it dies. or there is a hipster population explosion Apr 17 23:49:38 hipster bombers Apr 17 23:50:04 ctate, the thing is i have no way to tell, they might actually want it not to be runnable in the emulator. creating a JNI warning is actually the best way to do it Apr 17 23:50:36 i can't use an older api level, because non have GPU support. and I can't disable JNI on 4.0.3 Apr 17 23:50:37 no, i figure they just have a bug. there are a ton of jni bugs kicking around in shipping code. Apr 17 23:53:08 ctate, any workaround ideas? Apr 17 23:53:14 Anyone recall if wingray was the wifi-only build and stingray was the 4g+wifi? Or do I have it backwards? Apr 17 23:53:15 note what I said above Apr 17 23:53:19 GuySoft: use a real device Apr 17 23:53:29 LycaonX: wingray == wifi Apr 17 23:53:39 Thanks ctate Apr 17 23:53:44 'w' you know :) Apr 17 23:53:52 Finally at a point where I can do a test build of ICS :) Apr 17 23:55:22 ctate, but I dont want a real device :) Apr 17 23:58:42 SDKr20 preview has been released for anyone interested: http://tools.android.com/download/adt-20-preview Apr 17 23:59:14 Detect usages of Toast.makeText() without calling show() on the result Apr 17 23:59:18 \o/ Apr 17 23:59:48 was that your feature? Apr 17 23:59:59 A Toast detector? Great for breakfast time! Apr 18 00:00:12 Nope Apr 18 00:00:17 But it's a nice feature :p Apr 18 00:00:26 I remember hearing someone here talking about that Apr 18 00:00:48 Yeah Apr 18 00:01:03 I believe evancharlton filed a feature request for it Apr 18 00:05:55 Noob question, can you compile a subset of binary files instead of the entire ROM? Apr 18 00:07:55 yes Apr 18 00:08:03 although typically you need to build everything once the first time Apr 18 00:08:25 SimonVT: we totally need to make Toast.show() a noop. Apr 18 00:10:22 Haha, yeah Apr 18 00:10:28 Tho I bet there are people who rely on it :P Apr 18 00:11:24 Can anyone recommend any good introductory books or docs? Apr 18 00:11:44 Aside from d.android.com that is. Apr 18 00:16:20 http://commonsware.com/ Apr 18 00:19:18 ctate: if you make Toast.show() a noop, then core apps will stop working :D Apr 18 00:19:41 like contacts, for example Apr 18 00:20:29 oh wait, i don't think i understood the discussion. Apr 18 00:20:30 nm Apr 18 00:21:27 canadiancow: hope this doesn't happen to you! http://content.usatoday.com/communities/ondeadline/post/2012/04/conundrum-how-to-remove-dead-frozen-cows-from-colo-cabin Apr 18 00:28:20 my damn phone is all the sudden rebooting Apr 18 00:28:28 loop Apr 18 00:28:36 It reboots each time you start it? Apr 18 00:28:44 yes Apr 18 00:30:13 i was making a call and it went to the hboot screen Apr 18 00:30:45 can you boot into system recovery and do a factory reset? Apr 18 00:32:28 yes Apr 18 00:32:50 im gonna load cygo Apr 18 00:33:12 ... cygo? Apr 18 00:34:01 cyanogenmod Apr 18 00:34:21 where you go, cygo! Apr 18 00:34:49 did cygo come from meego ? Apr 18 00:34:52 :) Apr 18 00:35:23 what's up with these google recruiters Apr 18 00:36:06 "hi we're hiring developers with iOS and Android experience, your profile looks good, send us an updated resume" "ok here you go" ... then no response ever Apr 18 00:36:29 this is the 3rd time they've done this Apr 18 00:38:16 wabz: one of their crawlers went awry ! Apr 18 00:38:28 i count there is any human involved :) Apr 18 00:38:31 *doubt Apr 18 00:38:35 probably :p Apr 18 00:40:51 nah they use humans Apr 18 00:41:00 i have been contacted before by a human, at least Apr 18 00:41:06 lol Apr 18 00:41:07 for youtube though Apr 18 00:41:17 i wasn't ready at the time. Apr 18 00:41:28 ? Apr 18 00:41:35 hrm, layout question, if i want to have 4 icons always show up in a row, but then leave it scrollable (horizontally) how would I do this? Apr 18 00:41:52 Insayne: HorizontalScrollView or Gallery. didn't we cover this this morning? Apr 18 00:41:56 Jug6ernaut: getting the attention of a recruiter is a lot easier than actually being hireable. Apr 18 00:41:58 if my amount of images is dynamic, i can't use the weight obviously Apr 18 00:42:35 need more exp before I apply, or at least to go back to school first. Apr 18 00:42:48 Lol Detect usages of Toast.makeText() without calling show() on the result, as well as passing invalid duration parameters (e.g. a number instead of one of the two allowed constants.) Apr 18 00:42:49 readme, you should know this :P Apr 18 00:42:50 http://tools.android.com/download/adt-20-preview Apr 18 00:43:48 Insayne: maybe use a GridView Apr 18 00:43:50 i am making pizza Apr 18 00:44:19 Afzal: worst. API. ever. Apr 18 00:44:23 oki Apr 18 00:45:17 evancharlton, ... umm ... okay ? Apr 18 00:46:10 Afzal: just ranting about Toast.makeText().show() Apr 18 00:46:13 readme, a factory reset will... Apr 18 00:46:24 the fact that a Lint check is necessary demonstrates how shitty that API is Apr 18 00:47:39 readme: you around? Apr 18 00:47:40 "A lot of bug fixes, particularly in the Lint area." , umm. ok ... Apr 18 00:47:40 readme JakeWharton Apr 18 00:47:43 lol Apr 18 00:47:54 linty! Apr 18 00:47:59 I am sending you an unsolicited PM Apr 18 00:50:29 i still think adt is missing 2 major features; canadiancow worked on one: first, i think it needs some sort of dependency shower for things in res/ like, what layouts are including what, and using what styles and (2) there needs to be some better project comprehension thing that visualizes what configurations i have specified, which assets are showing where, and which are not because they are defaults Apr 18 00:50:54 i feel like the adt guys just keep dancing around mostly minor issues; it needs an overhaul :) Apr 18 00:51:04 ADT: next generation XD Apr 18 00:51:40 g00s: they work in the open, please submit patches & bugs Apr 18 00:52:36 evancharlton: just my 2c ;) i don't have time; working on my own software Apr 18 00:53:06 why should g00s do their job for them? Apr 18 00:53:51 why should they write tools for him? Apr 18 00:54:47 evancharlton: i'd pay for stuff that works Apr 18 00:55:05 you guys don't have to write tools for me ;) Apr 18 00:55:17 because otherwise, android devs will leave android Apr 18 00:55:25 i read something my boss wrote about how shitty android tools are Apr 18 00:55:28 i was :( Apr 18 00:56:41 IntelliJ makes android development so much nicer Apr 18 00:57:23 g00s: send us a resume? :) Apr 18 00:57:30 (yes yes see above re recruiting, sigh) Apr 18 00:58:16 haha Apr 18 00:58:18 job offer, thats nice Apr 18 00:58:43 is it possible to use an overlay on an image view? Apr 18 01:01:53 evancharlton, why? Seems pretty okay to me. What alternative do you suggest? Apr 18 01:02:11 Afzal: Toast.showText(..); ? Apr 18 01:02:39 Afzal: I would be willing to wager than no one has ever stored the result of .makeText() so that they can call .show() on it at a later time Apr 18 01:02:51 evancharlton, that ignores the fact that the developer might want to store a makeText instance Apr 18 01:03:03 who has ever done that? Apr 18 01:03:06 (showing the same instance of a toast multiple times Apr 18 01:03:12 if you're calling Toast that often, you're doing it wrong Apr 18 01:03:16 no one, but I'm sure there's a use case somewhere Apr 18 01:03:17 very very wrong Apr 18 01:04:00 ...a design decision without a use case? :/ I'm sure Googlers have thought of that alternative Apr 18 01:05:05 i repeat: i wish i could make Toast.show() a noop. Apr 18 01:06:01 canadiancow: thank you for the referral, it is appreciated. Apr 18 01:07:07 ctate / evancharlton : is there any info on limitations (if any?) of the lint feature which flags when you use an api in targetSdk that might not exist below targetSdk ? Apr 18 01:07:12 [IMO toasts are pretty much inherently bad UI.] Apr 18 01:07:52 in other words, are there cases lint will not catch something in this class of , err , lint :D Apr 18 01:07:57 ctate: why? Apr 18 01:08:13 g00s: not that I know of Apr 18 01:08:21 g00s: I think it just has a huge database of API-vs-version Apr 18 01:08:22 they're transient, not very noticeable, and non-interactive Apr 18 01:08:33 so you cannot rely on the user actually seeing them Apr 18 01:08:38 ctate, state the alternative. Apr 18 01:08:40 g00s: so if you copy a newer-SDK class into your older-SDK project, it'll be a false positive, but yeah Apr 18 01:08:47 at which point why are you showing them at all? put real UI in your damn activity. Apr 18 01:08:51 a factory reset will do what to my phone? i cant get my fone to boot properly Apr 18 01:08:57 evancharlton: ok, thanks Apr 18 01:08:59 can you overlay an imageview with a gradient style somehow? Apr 18 01:08:59 binaryhat: wipe all of your data Apr 18 01:09:07 Insayne: yes Apr 18 01:09:07 or am i better off having 2 images ? Apr 18 01:09:12 evancharlton, how? Apr 18 01:09:28 binaryhat: it wipes all of your data, all installed apps and updates, and possibly the contents of shared storage on some devices Apr 18 01:09:29 Insayne: you have to flatten the two into a single bitmap. Google it. Apr 18 01:09:41 ah, no i know how to do that Apr 18 01:09:48 ctate, maybe you can push for a "toast" that moves the whole viewport up and shows at the bottom, swipe to dismiss (?) Apr 18 01:09:50 i was just wondering if that was the best way Apr 18 01:09:54 Insayne: yep Apr 18 01:10:02 Afzal: that's horrible Apr 18 01:10:06 Afzal: at that point it isn't a toast, and you can do that perfectly well in your own UI Apr 18 01:10:07 in the end, ImageView could have had some .overlay="@drawable/blah" thing Apr 18 01:10:09 power+volume down yes? will it fix my boot issue? Apr 18 01:10:09 I didnt see Apr 18 01:10:10 evancharlton, lol just suggesting :/ Apr 18 01:10:36 thanks :P Apr 18 01:10:37 ctate, well you said that they're inherently bad ui. so I'm suggesting a new way. Apr 18 01:10:59 toast has very very very specific use-cases, and anything outside of it is idiotic. Apr 18 01:11:09 ^ Apr 18 01:11:21 but then it isn't bad if there's a common use case Apr 18 01:11:23 I once read: If you want to inform someone about something using toast, the user probably doesn't need to know Apr 18 01:11:25 e.g., popping up a "That thing was just deleted!" when the use-case is delete-then-finish Apr 18 01:11:34 yes, that's the use case Insayne Apr 18 01:11:38 Afzal: it was IMO ill-considered and not good UX when it was put in back in the 1.0 days Apr 18 01:11:51 ctate, then what is the alternative? Apr 18 01:11:52 and note that the platform apps and Google apps are all moving away from using them Apr 18 01:12:00 are toasts discussed in the newest design guidelines ? Apr 18 01:12:05 g00s: I think so? Apr 18 01:12:06 ... alternative? dont' show toasts. Apr 18 01:12:17 ctate, then how do you inform the user about it? Apr 18 01:12:30 err, you put the information in your activity's UI? Apr 18 01:12:35 I haven't come across many reasons to show a toast, unless you do something untuitive (i.e, you rework how your app works compared to all others) Apr 18 01:12:49 if you're showing info in a toast that it's important that the user see, then your UI is *already* broken Apr 18 01:12:52 unintuitive/counterintuitive Apr 18 01:12:56 because toasts are ephemeral and people miss them Apr 18 01:12:57 a lot Apr 18 01:13:01 g00s: http://developer.android.com/design/patterns/notifications.html#interacting-with-notifications Apr 18 01:13:14 if you're showing unimportant information in a toast, then wtf are you doing that for? just leave it out; it's cleaner. Apr 18 01:13:19 * evancharlton | toasts can echo back that an action has been successfully taken. Apr 18 01:13:30 ctate, then there should be something different on Android instead of toasts Apr 18 01:13:31 that's the basically the _only_ usecase for Toast Apr 18 01:13:37 everything else is stupid and broke Apr 18 01:13:38 (in API i mean) Apr 18 01:13:39 broken* Apr 18 01:13:43 somethign different *to do what*? Apr 18 01:13:51 ctate, to do what toasts do Apr 18 01:13:52 Afzal: there _is_. Notifications, dialogs, you name it. Apr 18 01:13:55 Afzal: wtf Apr 18 01:14:00 if I got a notification for every toast, I'd be mad. Apr 18 01:14:05 i use toast where i on long press allow users to toggle the screen staying awake (its a shortcut thats usefull in this case) Apr 18 01:14:07 put text on screen for the user to see? that's basically the whole freaking framework Apr 18 01:14:12 dialogs block the UI Apr 18 01:14:14 but i toast which mode it is in, so the user knows Apr 18 01:14:23 however , ctate, here is a question for you Apr 18 01:14:28 my roommate just made toast with chunky peanut butter and grape jam; it was awesome Apr 18 01:14:38 i am in a scrollview, toast comes up, and bam, FPS drops to 30 if not below, else its at 60 Apr 18 01:14:46 yup Apr 18 01:14:46 why does a toast slow down the UI so badly ? Apr 18 01:14:48 Hello Apr 18 01:14:50 g00s: also http://developer.android.com/design/building-blocks/dialogs.html#toasts Apr 18 01:14:54 becuase it's a translucent window on top of yours Apr 18 01:14:58 so there's an extra compositing step Apr 18 01:15:00 I'm not "for" toasts but the all other alternatives require interaction when it's unneeded Apr 18 01:15:07 and that can't be sped up ? Apr 18 01:15:08 i dont know...it just rebooted in the middle of a call, now its stuck on the boot screen "htc incredible" Apr 18 01:15:12 Is there any way to have Android AVD show an actual camera that's usb-> connected to PC? Apr 18 01:15:17 or is that HW related Apr 18 01:15:30 It asks me before it starts the AVD, but when I click camera, it shows just squares Apr 18 01:15:36 evancharlton: thanks. i think i need to read the guidelines again; they look like they have been updated since the original version i read Apr 18 01:15:52 stoned: why not run it on the phone and look at that? Apr 18 01:16:00 I don't own one Apr 18 01:16:15 or have access to one atm Apr 18 01:16:20 ctate, does android allow for dirty screen updates? Apr 18 01:16:23 Something like "Message saved as drafts" should not be a dialog or a notification. It has to be toast Apr 18 01:16:35 Insayne: you mean to invalidate just a rectangle? yes. Apr 18 01:16:39 yeah Apr 18 01:16:46 Afzal: yes we know that. RTFM. Apr 18 01:16:52 Afzal: read what we've been saying. Apr 18 01:16:56 Insayne: meaning what? Apr 18 01:16:58 An actual device is kind of key here, stoned. You can't really sell something you've never seen run once. Apr 18 01:17:16 ctate: its called "dirty regions", it means, you only update part of the screen, instead of the entire UI Apr 18 01:17:19 stoned: it should work, yes. Apr 18 01:17:21 Afzal: did you not see the eighteen times i said "put the information into your activity's UI"? Apr 18 01:17:31 Insayne: invalidate takes a rect to invalidate, sure Apr 18 01:17:36 evan I have a webcam w/ drivers isntalled, skype works and flash video conference works etc. Apr 18 01:17:42 ctate, -_- then it's not bad UI. Apr 18 01:17:48 stoned: poke around your AVD settings Apr 18 01:17:57 evan, when I start the AVD, it asks me to select usb camera, the only one that there is, but it never shows up in simulator Apr 18 01:17:59 ... instead of just popping a toast about it for the user to fail to see Apr 18 01:18:04 evancharlton: moment sir Apr 18 01:18:09 stoned: I'm out anyway Apr 18 01:18:10 gl Apr 18 01:18:15 ok Apr 18 01:18:23 I was just gonna shot the avd manager screen Apr 18 01:18:34 hrm, i find it funny that toast uses compositing Apr 18 01:18:39 http://img692.imageshack.us/img692/7707/editandroidvirtualdevic.png Apr 18 01:18:43 anyway Apr 18 01:18:45 even when i wrote snes code, you had different layers :P Apr 18 01:18:49 if you have a minute, cool, if not, good night Apr 18 01:19:12 oh Apr 18 01:19:15 stoned, camera support? Apr 18 01:19:16 ha. Apr 18 01:19:18 I just added it Apr 18 01:19:23 I never realized that you cou... nm Apr 18 01:19:30 ctate, so there is no layering in android UI in itself? i.e, top layer, normal layer ? Apr 18 01:19:31 Thanks for the avd editing tip Apr 18 01:19:32 :) Apr 18 01:19:43 that way you could always access the top layer for something like a toast, or other overlays Apr 18 01:19:47 Insayne: layering of what, exactly? :) Apr 18 01:19:49 http://img37.imageshack.us/img37/7707/editandroidvirtualdevic.png Apr 18 01:19:53 added camera support Apr 18 01:19:54 the entire UI Apr 18 01:20:03 of course it's layered Apr 18 01:20:03 does it work now? stoned Apr 18 01:20:09 I don't know yet Apr 18 01:20:14 everybody gets a window to draw in, with an associated Surface Apr 18 01:20:15 I just edited the avd Apr 18 01:20:18 I'm going to restart it Apr 18 01:20:25 surfaces are composited, sometimes in hardware Apr 18 01:20:44 yes, but for example (this is super nintendo stuff) Apr 18 01:20:45 Apr 18 01:20:52 Do I need anything more than this guys? Apr 18 01:20:54 ctate, tell us something about Jellybean :p Apr 18 01:20:55 for example there are at least two or three windows visible at any one time Apr 18 01:20:58 This is enough permissio yes? Apr 18 01:21:05 you have layer 1 - you use it to display npcs, layer 2, you show the background Apr 18 01:21:24 hrm, i dont see if toast was drawn on a different surface Apr 18 01:21:30 why it would impact the framerate that horribly bad Apr 18 01:21:32 Insayne: you could do that but eeeagh it would be slow Apr 18 01:21:45 ctate, not if you allow dirty regions at the same time Apr 18 01:21:52 because every additional overlapping translucent window means an extra pass through compositing Apr 18 01:22:00 key word: translucent Apr 18 01:22:04 not if its empty, and its invalidated Apr 18 01:22:09 they're all blended Apr 18 01:22:18 see? thats rendering too much at once Apr 18 01:22:23 you have to Apr 18 01:22:27 otherwise you're not drawing everything Apr 18 01:22:32 why would you have to ? Apr 18 01:22:34 ... Apr 18 01:22:41 how many translucent layers can you get away with? Apr 18 01:22:46 becuase the window is translucent and if you don't then it looks obviously wrong? Apr 18 01:22:48 (in hw like the GNex) Apr 18 01:22:50 Afzal: all of them? :) Apr 18 01:22:57 What would I do if I wanted a textview that's inside a scrollview to not have wrapping and be vertical-scrollable? Apr 18 01:23:00 i use HW, gnex Apr 18 01:23:00 oh, without impacting frame rate? none. Apr 18 01:23:06 and i get down to 30-20 fps on a toast Apr 18 01:23:07 yeah lol Apr 18 01:23:18 yeah, i wonder if its implemented badly Apr 18 01:23:20 welcome to mobile GPUs Apr 18 01:23:22 Insayne, and idle? Apr 18 01:23:33 ah, it will get better next year ;p Apr 18 01:23:34 what do you mean idle? 60FPS Apr 18 01:23:42 toast drops it to half Apr 18 01:23:48 o...that's quite a big drop :/ Apr 18 01:23:49 romainguy was saying that compositing 3 or 4 layers was about the limit for gfx accelerated performance? Apr 18 01:23:52 Insayne: your example was a toast on top of an actively scrolling listview Apr 18 01:23:52 yeah, its ugly Apr 18 01:23:58 ok, launched avd Apr 18 01:24:01 will find out in a minute Apr 18 01:24:09 or rather, beyond 3 or 4 layers, you're out of the accelerated code-paths Apr 18 01:24:12 ctate, no, it wasnt actively scrolling, its a scrollview Apr 18 01:24:17 stoned, use hw accel or snapshots :/ Apr 18 01:24:21 [2012-04-17 20:23:10 - HelloWorld] Please ensure that adb is correctly located at 'M:\AndroidSDK\platform-tools\adb.exe' and can be executed. Apr 18 01:24:23 so at every frame, the entire scrolling-view window has to be blended with the toast window Apr 18 01:24:24 well, no, i take that back Apr 18 01:24:25 you are right Apr 18 01:24:29 Afzal: ok Apr 18 01:24:35 because the pixels are different Apr 18 01:24:36 ctate, thats terribly slow Apr 18 01:24:40 does it exist at that path? Apr 18 01:24:49 Insayne: yes it is. that's translucency, sir. Apr 18 01:24:57 but it does it over the entire screen, instead of just the bottom where the toast pops up ? Apr 18 01:25:00 you dont' want to blend every pixel an extra time, don't use translucency. Apr 18 01:25:22 i don't know whether hte hw compositor can handle non-fullscreen windows Apr 18 01:25:26 thats how I feel like this impact can work, i am at 59-60FPS Apr 18 01:25:40 even if it can, it may well not be able to handle compositing things that are not horizontal slices of the full framebuffer Apr 18 01:25:46 and drop to 30, that means, it does an entire screen worth of it on toast Apr 18 01:25:52 fill rates of mobile GPUS *suck* Apr 18 01:26:00 make a faster one :( Apr 18 01:26:00 this is not like PCs or consoles Apr 18 01:26:09 ah, i never worked on a mobile gpu, only consoles/PC Apr 18 01:26:10 heh Apr 18 01:26:14 yeah, alright Apr 18 01:26:16 canadiancow: talk to ARM and Imaginationtek and Qualcomm and nVidia Apr 18 01:26:29 consoles/PC have *vastly* faster GPUs and memory busses Apr 18 01:26:42 faster and more featureful Apr 18 01:26:47 yeah, but even a snes can do multi layered translucency Apr 18 01:26:59 gee you think they had purpose-built hardware? Apr 18 01:27:01 it can? Apr 18 01:27:04 ok ctate, i will Apr 18 01:27:05 thanks Apr 18 01:27:23 I did think android would require some purposely built hw for it, yeah Apr 18 01:27:33 not to bash, just saying, i really thought it was Apr 18 01:27:36 one word: power. Apr 18 01:27:37 pfffff Apr 18 01:27:40 Android is an OS Apr 18 01:27:45 we dont' make hardware Apr 18 01:27:45 to a much lesser extent than a console, but some special gpu tricks for mobiles, etc Apr 18 01:27:48 hey the AVD does not show camea Apr 18 01:27:50 camera Apr 18 01:27:54 I added the camera in avd editor Apr 18 01:27:57 yeah, but usually hw adopts to an OS Apr 18 01:27:58 as hardware option Apr 18 01:28:07 i still see squares Apr 18 01:28:15 stoned, when you start the camera app. use your webcam? Apr 18 01:28:17 to their credit the mobile chip vendors are getting a clue that they need to htink of phone-sized device capabilities in teh same world as desktop side Apr 18 01:28:24 so things should get better Apr 18 01:28:26 damn my qualcomm buddy isnt online. sorry ctate, cant tell em to make faster shit Apr 18 01:28:32 haha Apr 18 01:28:34 Afzal: yes Apr 18 01:28:34 ha ha ha Apr 18 01:28:35 isnt tegra going that direction ? Apr 18 01:28:47 then it's your app's problem Apr 18 01:28:51 tegra2 was awful Apr 18 01:28:54 Great Client Great mobile orchestra client. Even logs me into my BNC automatically. They should make a desktop version. Apr 18 01:28:57 heh Apr 18 01:28:57 http://img838.imageshack.us/img838/7707/editandroidvirtualdevic.png Apr 18 01:29:00 fortunately nvidia is rapidly fixing everythign that was wrong with it Apr 18 01:29:00 :( Apr 18 01:29:01 desktop version... oh dear, no way Apr 18 01:29:03 tegra3 is much much better Apr 18 01:29:04 camera support is added Apr 18 01:29:08 and the future looks good from what i hear Apr 18 01:29:16 in what sense? Apr 18 01:29:27 use ze googles? Apr 18 01:29:36 Afzal: im using the android camera app, not mine Apr 18 01:29:39 alright, just wondered about highlights Apr 18 01:29:46 faster Apr 18 01:29:47 smaller Apr 18 01:29:48 cheaper Apr 18 01:29:50 less power Apr 18 01:29:51 Afzal: see this http://img210.imageshack.us/img210/4705/5554android201204172029.png Apr 18 01:29:51 the usual Apr 18 01:29:52 fillrate, fillrate, fillreate Apr 18 01:29:53 stoned, does it use your webcam (that's what i was asking) Apr 18 01:30:04 oh Apr 18 01:30:06 Afzal: yes, it asks me to select a usb camera (which works ) Apr 18 01:30:11 yeah...i dunno, my webcam works :/ Apr 18 01:30:19 ctate, will android always only be able to run java ? Apr 18 01:30:34 doesn't Android run native c++ code too? Apr 18 01:30:36 anyway i also have to get going Apr 18 01:30:42 l8r Apr 18 01:30:46 bye ctate Apr 18 01:30:46 using NDK, but i heard its compatiblity is shite Apr 18 01:30:48 bye Apr 18 01:31:00 hmm, what device is a ka and tenderloin? Apr 18 01:31:10 i have yet to find a proper reason to try the NDK lol Apr 18 01:31:25 maybe if I can use the NDK with QtCreator, I'll consider it Apr 18 01:31:38 speaking of ndk, I wanna look at using renderscript for shits and giggles Apr 18 01:32:10 Afzal: http://img337.imageshack.us/img337/8461/screenshot2012041720315.png Apr 18 01:32:34 It shows the right camera device. I click ok, and AVD starts up, but no camera Apr 18 01:32:40 the camera app shows boxes Apr 18 01:33:20 stoned, sorry man. I don't know further. try closing other software that is using the webcam or something Apr 18 01:40:46 no dice Apr 18 01:57:06 JakeWharton: gtalk Apr 18 02:22:20 Any tips for someone who is a halfway-decent programmer but is only starting out on mobile? I rooted + cm'd, so now I'm ready to start going nuts with stuff. Apr 18 02:22:38 just go nuts Apr 18 02:22:43 K, nuts it is. Apr 18 02:26:30 rking: is your goal app development or modding? Apr 18 02:26:38 readme: Both, actually. Apr 18 02:27:03 #android-root or #cyanogenmod if you want to discuss the latter Apr 18 02:27:15 Yep. Apr 18 02:27:18 i recommend writing an app. Apr 18 02:27:23 K, yeah. Apr 18 02:27:40 don't worry too much about what, just start something and finish it Apr 18 02:28:03 I plan on doin gthe "Notepad Tutorial" thing at some point, then I also definitely want to do some Webapp one. Apr 18 02:28:17 Then after that I should probably have a better sense of what direction to take it. Apr 18 02:28:59 readme: Do you have any recommendations for useful dev apps? I already toyed with the "Dev Apps" that .. CyanogenMod came with? Apr 18 02:29:12 alogcat Apr 18 02:29:13 make a list of things you want your phone to do, and then make it do those things Apr 18 02:29:55 Yeah, alogcat looks right. Apr 18 02:30:44 Very nice. Apr 18 02:31:12 This is exactly the kind of thing I use to learn about my desktop (I always have /var/log/* going in a tail -f) Apr 18 02:31:34 (And of course it's not actually *. lastlog is not so great for that. =)) Apr 18 02:32:13 Noob question: I just compiled my first build 4.0.4 for the gnex it boots up fine and everything works except the market restore. I flash the latest gapps 0317 right after my build but my apps do not restore. Apr 18 02:32:32 Does anything need to be added to the source before I build to make the market restore my apps? Apr 18 02:33:11 #android-root for custom roms Apr 18 02:33:51 ok cool thanks I will check that out. What do you guys discuss in here? App development? Apr 18 02:34:41 yes Apr 18 02:39:38 what wysiwyg editor for xml would you guys recommend i want to build a gui first Apr 18 02:42:38 there's one shipped with the eclipse plugin Apr 18 02:43:12 i am using classic very new to this Apr 18 02:43:34 choose new interface Apr 18 02:46:09 foolover: follow the tutorial on d.android.com - it talks about setting up eclipse and making your first app etc. Apr 18 02:48:26 How do you guys go about creating a listview with different types of layout and views for each rows? Apr 18 02:50:17 Apps are generally completely standalone bundles, right? Or is there such a thing as external libraries / dependencies on other apps? Apr 18 02:50:25 napster, set view type count on the adapter Apr 18 02:51:36 pfn: Do you use a viewholder along with it? Apr 18 02:56:39 no **** ENDING LOGGING AT Wed Apr 18 02:59:58 2012