**** BEGIN LOGGING AT Sun Mar 04 02:59:59 2012 Mar 04 03:00:15 (or i that Y U NO ?) Mar 04 03:00:26 y u no know y u no Mar 04 03:00:31 :) Mar 04 03:00:53 hhmmm Mar 04 03:01:11 on a sidenote i checked a few advice animals apps today Mar 04 03:01:12 xorgate: my first thought would have been Yno Scrya, then Gasai Yuuno, then Y U NO ;) Mar 04 03:01:17 most were very terrible Mar 04 03:01:17 Anyone know a thing or two about MediaPlayer.isPlaying() ? Mar 04 03:01:29 I've got a service, in it's own proc, that needs to convey small ammounts of data, very quickly... don't think it's particularly well suited for messages... Mar 04 03:01:33 wtf is an advice animal app? Mar 04 03:01:40 I need to do one ever 100ms for... hours... Mar 04 03:01:59 t0mless http://www.reddit.com/r/adviceanimals Mar 04 03:02:28 is this going to make me dumber? Mar 04 03:02:41 i just... Mar 04 03:02:45 i doubt it :) Mar 04 03:03:26 anywho i think y u no falls under advice animals category Mar 04 03:05:25 Wavesonics 'convey' ? Mar 04 03:05:34 transmit, transfer Mar 04 03:06:00 I've got a hardware sensor that I need to read from every 100ms Mar 04 03:06:29 honestly, why do they even make 100mb hubs/switches/routers anymore Mar 04 03:06:32 it's just stupid Mar 04 03:06:33 only 1 proc can bind to it, so I have it run in it's own service Mar 04 03:06:45 that service needs to service it data to different procs Mar 04 03:07:15 i never felt so artistically inept until i needed to make some icons and art for an app... still sitting on my todo list... T_T Mar 04 03:08:02 Can't you pay art majors in burritos? Mar 04 03:08:22 hmmm... UW is pretty close... Mar 04 03:10:00 Does the Action Bar framework topic apply to ActionBarSherlock? Mar 04 03:10:21 the dev resource that is, explaining how to use it Mar 04 03:10:22 what do you mean "apply"? Mar 04 03:10:25 yes Mar 04 03:10:35 ok good Mar 04 03:11:00 just replace getActionBar() with getSupportActionBar() and you're 99% done Mar 04 03:11:28 cool Mar 04 03:11:43 i new to abs, but i have the 4.0 beta set up and ready to go Mar 04 03:12:13 rc1 that is Mar 04 03:12:22 excellent Mar 04 03:12:28 hopefully it makes your life easier Mar 04 03:12:38 Oh, JakeWharton, I was going to use the 4.0 rc but eclipse said there was no project file in the library directory Mar 04 03:12:44 So I look in the folder and there is Mar 04 03:12:56 Is that an eclipse problem or did I do something wrong? Mar 04 03:13:02 yeah that's ADT being dumb Mar 04 03:13:07 yeah i had to create a project from existing source Mar 04 03:13:09 Alright Mar 04 03:13:12 but it works Mar 04 03:13:15 Just Making sure Mar 04 03:13:15 is there really a good reason to use 4.0 right now? Mar 04 03:13:22 4.0 what? Mar 04 03:13:23 Android 4.0 support? Mar 04 03:13:24 Android? Mar 04 03:13:28 yeah sorry Mar 04 03:13:39 You should always be using the newest stuff Mar 04 03:13:42 I build all my apps on 4.0.3 Mar 04 03:14:16 Use the newest stuff and provide graceful degradation for the older platforms Mar 04 03:14:29 JakeWharton is Square going to pay you to go to Google I/O? Mar 04 03:14:39 No clue Mar 04 03:14:50 You should start implanting the idea Mar 04 03:14:56 mention google IO in like meetings and shit Mar 04 03:15:16 then when tickets go on sale be like "You guys should send me to I/O" Mar 04 03:15:19 Well I'm talking at AnDevCon III so they better let me out of the chains for that Mar 04 03:15:52 I was just curious as there is still so much 2.2+ devices in circulation, whether or not 4.0 would be worth the dev time Mar 04 03:16:24 just make sure you don't break your app on 2.2+ Mar 04 03:16:48 but you want to make sure it works well on the newest for sure Mar 04 03:16:56 njkt, you should always be enabling features for the newer platforms and limiting for the older platforms Mar 04 03:17:07 don't punish the people on newer platforms by only using things for 2.2 Mar 04 03:17:17 punish the users of 2.2 by not getting access to the cool stuff in 4.0+ :) Mar 04 03:17:41 are you just releasing different versions of the app to the market? Mar 04 03:17:48 no Mar 04 03:18:19 you can check Build.VERSION.SDK_INT against the constants in Build.VERSION_CODES to see what features to enable Mar 04 03:18:44 ah, ok Mar 04 03:19:02 birds are starting to wake up.. time for bed~ Mar 04 03:19:07 lol Mar 04 03:19:14 and you can use some of the resource provisioning stuff to separate whole components Mar 04 03:19:15 isnt that what coffee is for? Mar 04 03:19:47 little over my head right now Mar 04 03:19:50 * p_l shoul be falling asleep from drugs... no such luck Mar 04 03:20:22 http://www.dvor.com/ripa-2-solar-battery-charger.html this would be cooler if it didn't take 20 hours to recharge the pack from sunlight Mar 04 03:21:53 JakeWharton, when is andevcon Mar 04 03:21:55 and how much is it Mar 04 03:22:00 and will you give me a free ticket? Mar 04 03:22:32 oh fuck it's in may Mar 04 03:23:00 May Mar 04 03:23:42 canadiancow|work, fix ABS bugs Mar 04 03:24:08 I don't have a chair Mar 04 03:24:12 so I'm sitting on my tower Mar 04 03:24:18 LOL Mar 04 03:24:21 um Mar 04 03:24:25 get me a free ticket? Mar 04 03:24:35 if you use code WHARTON you'll get $200 off Mar 04 03:24:37 and that's $200 USD Mar 04 03:24:41 real money Mar 04 03:24:50 :D Mar 04 03:24:52 no Mar 04 03:24:54 free ticket Mar 04 03:25:12 im not paying $1000 Mar 04 03:25:18 zynga wont send me to SF in may and june for shit Mar 04 03:25:23 so id have to do it myself Mar 04 03:25:30 so $1000 + flight wont work Mar 04 03:25:36 at least iknow i always have a place to stay ;) Mar 04 03:25:41 yeah Mar 04 03:25:54 there's a warm spot next to this homeless person on the corner Mar 04 03:26:00 i told him to save it for you Mar 04 03:26:52 i lol'd Mar 04 03:28:58 so...actually...free ticket for moi? Mar 04 03:29:39 submit a talk Mar 04 03:29:44 they'll give you a free ticket Mar 04 03:29:52 for submiting? Mar 04 03:29:54 or for doing Mar 04 03:29:59 for doing Mar 04 03:30:03 and i cant do that without legal/pr getting all up in my shiz Mar 04 03:30:09 dont speakers have free tickets for their cows? Mar 04 03:30:11 you don't have to talk about Zynga Mar 04 03:30:14 or their shiz Mar 04 03:30:55 talk about andengine or something Mar 04 03:31:26 ... Mar 04 03:31:31 GEE CAUSE THAT ISNT OWNED BY ZYNGA Mar 04 03:31:35 it is?!? Mar 04 03:31:38 ... Mar 04 03:31:40 we bought it! Mar 04 03:31:49 meh Mar 04 03:31:51 it's open source Mar 04 03:31:54 (i think) Mar 04 03:32:01 i cant talk about *anything* related to work at a place like this Mar 04 03:32:07 and android is related to work Mar 04 03:32:07 :P Mar 04 03:32:19 quit Mar 04 03:32:24 must be some good lawyers working at zynga lol Mar 04 03:33:16 well id need approval Mar 04 03:33:18 to talk Mar 04 03:33:22 canadiancow|work did they give you any stock options when you were hired? Mar 04 03:33:31 that's...private? Mar 04 03:33:40 use reflection Mar 04 03:33:51 JAVA JOKE!!!!! Mar 04 03:34:01 you cant access privates through reflection can you? Mar 04 03:34:06 sure Mar 04 03:34:08 didn't make huge bank in the 11 million ipo bullshit Mar 04 03:34:21 zynga's worht a little more than that Mar 04 03:34:24 like 1000x more Mar 04 03:35:21 canadiancow|work, http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/AccessibleObject.html#setAccessible(boolean) Mar 04 03:35:52 oh wow Mar 04 03:35:58 i can touch your privates now Mar 04 03:36:27 my privates are 'package' scoped Mar 04 03:37:40 oh gawd, i leave the computer for 5 minutes and look what happens Mar 04 03:37:50 SUPRISE Mar 04 03:38:26 * pragma_ slaps cr5315 Mar 04 03:38:50 oi Mar 04 03:40:10 so JakeWharton Mar 04 03:40:12 free ticket? Mar 04 03:40:17 yeah it'll be here Mar 04 03:40:28 i want that in writing Mar 04 03:40:43 It's written right there.... Mar 04 03:40:50 it's on the internet Mar 04 03:40:53 IRC is totally a binding ontract. Mar 04 03:40:53 it must be true Mar 04 03:40:56 contract Mar 04 03:41:01 t0mless: not quite sure how legally binding an IRC transcript is Mar 04 03:41:10 I GOT LOGS DAWG Mar 04 03:41:16 OH SNAP Mar 04 03:49:33 I have a library that has callback functions in a handler, and one of them is an onFailure() call that has a parameter to accept a Throwable type. How can I use this where I want to detect the type of thrown exception so I can use specific methods that aren't available on a generic Throwable object? Mar 04 03:50:09 use instanceOf checks? Mar 04 03:51:01 if (cow instanceof canadian) { canadiancow c = (canadiancow)cow; } Mar 04 03:51:41 if(cow instanceof canaidan) { makeHamburgers(); } Mar 04 03:54:36 hey guys, im having a problem starting my activity.. here is the manifest http://pastebin.com/phmH7tsq and here is the splash class http://pastebin.com/K5zw30qK here is the stacktrace http://pastebin.com/dk98gqDD Mar 04 03:55:17 Perfect! Exactly what I needed Mar 04 03:55:51 haha what? Mar 04 03:56:29 Tricknology: you can probably make your Splash much simpler by using a postDelayed Handler Mar 04 03:57:03 ok, thanks Mar 04 03:57:17 http://pastebin.com/tbC5kLMG Mar 04 03:57:21 but.. ive used this type of splash before and it worked, just scratching my head as to why it doesnt now Mar 04 03:57:37 also, what is cin,greenwheels.app.Main ? Mar 04 03:57:43 com* Mar 04 03:58:15 canadiancow|work, fix bugs Mar 04 03:58:36 yo Mar 04 03:58:38 i was working all day Mar 04 03:58:40 and then my gf came over Mar 04 03:58:42 and i kept working Mar 04 03:58:44 and then she fell asleep Mar 04 03:58:57 "and I kept working on ABS" Mar 04 03:59:00 should be the next line Mar 04 03:59:04 canadiancow|work: wake her up, make it a couples thing ^^ Mar 04 03:59:11 pair programming Mar 04 03:59:42 its an app im working on Mar 04 03:59:45 A couple who programs together, throws exceptions together Mar 04 03:59:46 thats the name of the package Mar 04 03:59:58 the .Main class? Mar 04 04:00:21 JakeWharton Mar 04 04:00:26 why should i work on abs Mar 04 04:00:29 thats your fulltime job Mar 04 04:00:32 also looks like you have a bug in your xml Tricknology Mar 04 04:00:34 not yet Mar 04 04:00:34 you go work on words with friends Mar 04 04:01:03 thats not a class i made Mar 04 04:01:04 i only work on quality things Mar 04 04:01:13 thats the intent filter Mar 04 04:01:15 MAIN Mar 04 04:01:33 java.lang.ClassNotFoundException: com.greenwheels.app.Main Mar 04 04:01:57 t0mless: thats peculiar.. his intent isnt trying to fire off that one, but .Home Mar 04 04:02:13 ok, right. Mar 04 04:02:15 also... how many stack traces do you have in there? Mar 04 04:02:19 sorry i changed the manifest Mar 04 04:02:38 it now cannost find app.Home Mar 04 04:02:54 probably a lot lol i just copy pasted the whole log Mar 04 04:02:56 how about posting a relevant stack trace Mar 04 04:03:12 sorry Mar 04 04:03:16 Binary XML file line #23: Error inflating class Mar 04 04:03:17 t0mless: what? your telling me ou cant work from an irrelevant stack trace? the hell kinda programmer are you Mar 04 04:03:19 your xml is fucked Mar 04 04:04:01 probably your layout Mar 04 04:04:21 of Home? Mar 04 04:04:25 yup Mar 04 04:04:41 hello all Mar 04 04:04:45 hey QubeZ Mar 04 04:05:01 Mapped many Todo's today QubeZ? Mar 04 04:05:27 I setup a receiver to check on network status from a user, however, it "runs" (onReceive) when I am not in the app. How can I check if the app is active as part of my conditions? Mar 04 04:05:28 [23:01:03] i only work on quality things Mar 04 04:05:31 offensive Mar 04 04:05:45 t0mless: hehe ya actually 2 places Mar 04 04:05:51 haha Mar 04 04:05:53 :) Mar 04 04:06:07 QubeZ: so you want it to run iff your App is in the foreground? Mar 04 04:06:35 QubeZ register the receiver in onStart, unregister in onStop Mar 04 04:06:39 you're lucky i dont actually work on wwf JakeWharton Mar 04 04:06:41 DrPenguin: *nod* Mar 04 04:06:44 or i'd start sending PR's for crap Mar 04 04:06:51 well i guess it is.. its trying to use arraylists and tabs and junk but it depends on a connection to the server, it parses them from JSON.. which isnt built yet Mar 04 04:07:14 maybe that would explain why.. but what exactly is ComponentInfo? Mar 04 04:07:32 Info for the component the intent is starting Mar 04 04:07:40 what is line 23 in your xml? Mar 04 04:07:44 QubeZ: theres this: http://developer.android.com/reference/android/app/ActivityManager.html Mar 04 04:07:46 what's the number of DP on a mobile device? Mar 04 04:07:59 t0mless: ok i'll have to read up on how to register it because right now its in my manifest and the onReceive gets called of that receiver class (broadcast receiver) Mar 04 04:08:00 I vaguely remember it being like 380 or something Mar 04 04:08:02 but I don't remember Mar 04 04:08:14 it changes Mar 04 04:08:18 that's the point of dp Mar 04 04:09:02 1dp = 0.15875mm Mar 04 04:09:28 http://pastebin.com/EHqesjL0 Mar 04 04:09:38 what's that in furlongs? Mar 04 04:09:44 t0mless: thatis the XML of Home called main Mar 04 04:09:48 my unit is 8dp Mar 04 04:10:22 hahaha Mar 04 04:10:46 yeah, I have no idea how I can get a slidingdrawer to take up 50% of the screen Mar 04 04:10:50 so many linear layouts O.O Mar 04 04:11:07 it seems like it's either going to take up the whole screen or wrap content Mar 04 04:11:39 t0mless: so because I am statically registering/unregistering the receiver, i can now remove it from my manifest right? Mar 04 04:11:49 Yea Mar 04 04:12:17 ok cool, that was a good comment. I looked it and now I know how to do this. Mar 04 04:12:34 pardon my ignroance, but wouldnt it be better for him just to the foreground guy and run based on that? Mar 04 04:12:38 DrPenguin: thanks for the activitymanager reference, that will come in handy some time but i'll register/unregister the receiver Mar 04 04:13:59 lol eclipse did that, i used the GraphicalLayout Mar 04 04:16:45 not sure Tricknology, but some xml your Home class is using is exploding Mar 04 04:17:52 haha ok, ill try and fix that up, thanks Mar 04 04:18:53 any thoughts? Mar 04 04:19:45 i know in my home class. i didnt initialize any of the widgets or layouts etc Mar 04 04:19:49 *facepalm* Mar 04 04:26:59 t0mless: how's this? http://pastebin.com/ay970wqk Mar 04 04:27:24 that unregister won't work Mar 04 04:27:32 ahh figured Mar 04 04:27:36 i need the sme object Mar 04 04:27:37 you need to stash a handle to the reciever Mar 04 04:27:37 same Mar 04 04:27:53 just use a static final member Mar 04 04:28:05 ok, let me try again Mar 04 04:28:43 ooo new ICS leak for A500 Mar 04 04:30:31 t0mless: http://pastebin.com/whf4S3Cs Mar 04 04:30:50 should work :) Mar 04 04:31:03 thanks Mar 04 04:42:55 t0mless: works for the most part, but when i leave my app... it doesn't unregister. Guessing it may take awhile for onStop to get called Mar 04 04:43:03 onStop gets called before onDestoy ? Mar 04 04:43:21 http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Mar 04 04:43:21 or should I register onResume() and unregister onPause() instead? Mar 04 04:43:25 yea, onStop should get called when it's not visible anymore Mar 04 04:43:47 onPause might get called if you use popup windows etc Mar 04 04:44:00 t0mless: oh wait, i know what happenned... i unregistered but I forgot to dismiss the noetification. Ok my bad. Mar 04 04:44:01 when people mention panes are they referring to FragmentActivity s Mar 04 04:44:41 fragments Mar 04 04:44:42 hopefully Mar 04 04:45:04 just a plain fragment? Mar 04 04:45:24 fragment is the reusable component Mar 04 04:45:38 I guess that makes sense Mar 04 04:45:39 fragmentactivity is the backport of HC/ICS's activity which allows for management of them Mar 04 04:45:54 ok Mar 04 04:46:08 a poor title actually Mar 04 04:46:14 should be SupportActivity Mar 04 04:47:01 http://www.thinkgeek.com/geektoys/cubegoodies/e9cb/?cj=true&cpg=cj&ref=&CJURL=&CJID=1909525 Mar 04 04:47:03 Win Mar 04 04:47:42 http://www.groupon.com/deals/dc-ld1-thunderdrift Mar 04 04:47:43 Win Mar 04 04:51:52 Isnt android:ellipsize="end" supposed to add an Ellipsis to the end of a text view? I am not seeing any added to mine Mar 04 04:52:43 you need to add a maxLines Mar 04 04:52:46 otherwise it'll just keep wrapping Mar 04 04:52:56 Ahhhhhhh.. let me try that. thank you sir Mar 04 04:55:13 man this stress monkey is neat Mar 04 04:55:21 although im not sure how to interpret the results Mar 04 04:55:28 missing 60 events in 5000 event test Mar 04 04:55:51 guessing that is good Mar 04 05:00:42 why does ViewPager need an ID? Mar 04 05:01:01 i never investigated Mar 04 05:04:01 JakeWharton: probably for saving and restoring state Mar 04 05:07:42 I can't seem to figure out how to make a shape of line, with a stroke width of 2dp, it just stops appearing as soon as I set the width of the stroke to 2dp. Mar 04 05:07:42 Anyone run into this? Mar 04 05:09:31 by the way a 1dp line shows up just fine Mar 04 05:33:40 helo guys, im trying to make a custom android to use with my arduino project. any advice? Mar 04 05:38:23 android what? Mar 04 05:39:13 custom android operating system to control a microcontroller. basically i want to create a custom UI and remove all this market mumbo jumbo services Mar 04 05:40:59 the market isn't part of AOSP anyway... plus, this channel is for app development - you probably want one of the mailing lists/groups Mar 04 05:41:28 bbbbb Mar 04 05:41:58 aekition, android doesn't come with market and gmail and w/e by default Mar 04 05:42:01 which channel is it then? Mar 04 05:42:03 if you compile from AOSP Mar 04 05:42:14 http://stackoverflow.com/questions/9551878/android-if-mediaplayer-isplaying-freezes-app Mar 04 05:44:11 aekition: there isn't really an active channel for OS development/porting, which is why I didn't suggest one Mar 04 05:45:23 thank leeds Mar 04 05:47:55 what i got suggested by someone is to develop my app in java to control the microcontroller then once it works i delete somehow everything apart the kernel and the dalvic and then use my program java code somehow to be the only program/os that runs when switched on... was he ok or wrong? Mar 04 05:50:47 I have an animation that moves, but disappears and seems to go under another view while it is moving Mar 04 05:50:50 how do I fix that? Mar 04 05:55:53 can i set an onclick listener to a textview? Mar 04 05:56:19 dandaman yes Mar 04 05:56:29 sweet, ty Mar 04 05:56:31 dandaman: not recommended Mar 04 05:56:43 rgravener: why not? Mar 04 05:56:53 i'mt not sure textviews have states for pressed/focused Mar 04 05:56:54 it doesnt look clickable? Mar 04 05:57:03 wrap textview in relativelayout Mar 04 05:57:12 and set the bg to list_item_selector Mar 04 05:57:39 you could apply a state_selector to the textview... Mar 04 05:58:31 i thought i tried it the other day and it didn't work. dunno Mar 04 05:59:24 don't think I've ever actually tried it Mar 04 05:59:40 but should be possible Mar 04 06:00:38 Hi folks, I'm trying to write a simple data logger app Mar 04 06:00:38 that dumps sensor data to a file. I got the dumping data Mar 04 06:01:03 to a file working, but I can't stop it... Mar 04 06:01:42 DON'T STOP TILL BROOKLYN! Mar 04 06:02:30 Basically, I have a click handler that seems to not do anything once the data collection method starts going Mar 04 06:03:14 you live in BK? Mar 04 06:04:08 eclipse is so dumb Mar 04 06:04:12 i run an app Mar 04 06:04:21 rgravener: i have state selector applied to my textview Mar 04 06:04:23 and then try debugging it and it just brings view to front without attaching debugger Mar 04 06:04:24 works fine Mar 04 06:04:34 QubeZ: cool Mar 04 06:05:20 rgravener did you launch it with the debug command instead of the run command? Mar 04 06:05:20 so...... is there a good way to troubleshoot a click handler that doesn't seem to fire? Mar 04 06:05:45 t0mless: i had debuggable false in manifest Mar 04 06:06:56 dnquark: does the whole gui stop? Mar 04 06:07:27 yeah, it looks like. Mar 04 06:07:52 sounds like you only have a single thread of execution Mar 04 06:08:03 actually, it just might be hella slow Mar 04 06:08:15 and i'm running sensors at the maximum collection rate... Mar 04 06:08:26 on the UI thread? Mar 04 06:09:46 huh. I guess I should use threads for stuff, huh Mar 04 06:10:04 only if you want a responsive GUI Mar 04 06:10:11 ^_^ Mar 04 06:10:54 there's no stupid rule like first app submission has to be versionCode 1 or something right? I have mine at 7 because of a beta program I ran outside of the market Mar 04 06:11:20 correct Mar 04 06:11:29 k thanks Mar 04 06:11:49 first one doesn't matter, and subsequent uploads just have to be higher than the current Mar 04 06:12:05 *nod* Mar 04 06:12:09 if it's an upgrade, if it's another apk for like tablets it can be the same Mar 04 06:14:12 my version code is like 2billion Mar 04 06:14:17 there's a good topic, as a developer i want to strive to keep one package, one apk and cover all devices. But support tablets and their large icon / potential sizes, the apk gets fairly large because of the resources Mar 04 06:14:27 rgravener, hope it's not stored in an int then Mar 04 06:14:39 JakeWharton: it is Mar 04 06:14:41 i see users complain alot about app size so how do you support tablet's then right? Mar 04 06:14:44 <[azyouthinkeyeiz> can anyone help me figure out what i'm doing wrongthe split_bootimg perl scripts? Mar 04 06:14:51 i basically use the date as my versioncode Mar 04 06:14:52 QubeZ, ignore them, users are dumb Mar 04 06:14:56 hope they bump that shit up to long Mar 04 06:15:17 <[azyouthinkeyeiz> wrong with the* Mar 04 06:15:29 so what do you guys use to keep track of versionCode vs versionName? Mar 04 06:15:42 right now I just track it in SVN via my commits (branches / tags) Mar 04 06:15:53 git Mar 04 06:16:02 git log AndroidManifest.xml Mar 04 06:16:07 full history Mar 04 06:18:52 by the way, is there a good way to write helper/utility classes so that they have access to the application context and UI? Mar 04 06:19:05 pass in the context when you call any of its methods Mar 04 06:19:11 don't hold a reference to it anywhere Mar 04 06:19:44 when people say dont hold a reference, what does that mean exactly? how do you let it go? What I've done is just pass context when I need it but not sure if I'm holding it anywhere Mar 04 06:19:55 i pass in context, do what I need to do, finish that task or activity Mar 04 06:20:02 that's fine Mar 04 06:20:15 basically dont' store it in an instance variable Mar 04 06:20:25 of anything that will or may outlast that context Mar 04 06:20:47 so like passing in context then in that activity do like Context test = oldContext; ? Mar 04 06:21:09 passing it around like a slut... thats no good huh Mar 04 06:21:35 you can pass it around Mar 04 06:21:41 just no touching Mar 04 06:21:45 like in a tittie bar Mar 04 06:21:45 just don't store it anywhere Mar 04 06:21:54 basically don't store it as an instance variable in anything except a View Mar 04 06:22:07 JakeWharton: ahh ok, makes sense Mar 04 06:24:02 hmm... honestly... between gtalk and steam... I can probably get rid of AIM Mar 04 06:24:19 AIM?!? Mar 04 06:24:24 i didn't realize that still existed Mar 04 06:25:26 ok, what about UI elements? like, for instance, let's say I made a class DataLogger, and I call its method from my activity, e.g. I say logger.startLogging(). And somewhere in the course of preparing stuff for logging I want to print to screen the filename that it's using Mar 04 06:27:01 is there a good way for the DataLogger to get access to the UI elements? I mean, I can pass whatever TextView I want updated as an argument to the constructor or to startLogging, but it seems hacky Mar 04 06:30:24 anyone able to help with my animation question? Mar 04 06:30:38 i'm using a translate animation. however when it leaves its parent, it disapperas Mar 04 06:32:36 setFillAfter(true) Mar 04 06:34:04 oh Mar 04 06:34:13 i re-read what you said Mar 04 06:34:54 try setClipChildren(false) Mar 04 06:35:55 where do i setClipChildren(false)? Mar 04 06:36:02 on the parent Mar 04 06:36:03 in the container? Mar 04 06:46:38 how can I implement a listview in a fragment? Mar 04 06:47:59 i forgot to mention with the compatibility library Mar 04 06:58:53 transformer still crashes with ics Mar 04 06:59:10 i seriously think it is time to root and rom it Mar 04 06:59:33 heh Mar 04 07:01:56 select * from tbl_tasks; Mar 04 07:21:09 hello everybody Mar 04 07:22:13 i am trying to read a xml file uploaded on web. I am reading that file in form of bytes, and then writing in file in internal or external storage Mar 04 07:22:43 can i read the file in xml mode so that i can get data according to tags and then store it in sqlite db Mar 04 07:22:45 ? Mar 04 07:23:48 i would like to remove the file after all the contents has been read from it and stored in db Mar 04 07:33:11 read about xml parser for android Mar 04 07:33:39 i think you can even do xml pull parser's so you're parsing as you get the data... i have no exp with that because I've just used JSON Mar 04 07:33:56 you are correct Mar 04 07:34:01 no need to write to a file first either Mar 04 07:35:59 Trying to get my Galaxy Note to show up as a device in adb is proving to be a nightmare Mar 04 07:41:42 Saban: did you enable development on your device? Mar 04 07:43:11 Yea, did all that. Been going through the top google results for hours Mar 04 07:43:31 I have a note and its working fine Mar 04 07:43:34 adb kill-server Mar 04 07:43:37 adb start-server i guess Mar 04 07:43:39 windows: install OEM drivers, enable debugging, reboot Mar 04 07:43:55 linux/osx: add USB ID to ~/.android/adb_usb.ini, reboot Mar 04 07:45:03 hi QubeZ Mar 04 07:46:00 how can i directly store in sqlite via JSONObject ? Mar 04 07:46:27 sunny_slls: you can't. you need to write your own glue. Mar 04 07:46:39 there might be an ORM of some kind, but you're on your own to find one. Mar 04 07:46:51 ORM ? Mar 04 07:46:55 object relational mapper Mar 04 07:47:01 maybe jackson can be used to help? I am not sure. Mar 04 07:47:14 sunny_slls: I parse JSON myself then store that data in a DB via my own DB methods. Mar 04 07:47:22 ok Mar 04 07:47:24 jackson+ormlite Mar 04 07:47:26 I use the built-in JSON parser -- meets my needs Mar 04 07:47:27 if you're lazy Mar 04 07:47:32 ormlite eh Mar 04 07:47:36 sounds good, I'll check that out Mar 04 07:47:52 but for that you need to get data from web in form of jsonobject right ? Mar 04 07:47:57 is droidsans built-in font to android? Mar 04 07:48:02 no, String Mar 04 07:48:05 QubeZ, yes Mar 04 07:48:13 how do I access it? Mar 04 07:48:23 setTypeFace? Mar 04 07:48:25 i know how to access an asset from my own package but how about default? Mar 04 07:48:36 android.R.* Mar 04 07:48:41 ? Mar 04 07:48:45 right now im using it as an asset in my project like this: Typeface.createFromAsset(this.getAssets(), "droidsans_normal.ttf"); Mar 04 07:49:05 my android model number doesnt even show up on the samsung canada list Mar 04 07:49:24 http://stackoverflow.com/a/2888708/132047 Mar 04 07:49:35 QubeZ, you can use like the textView.settypeface(Typeface.SansSerif, Typeface.BOLD) Mar 04 07:50:07 QubeZ, but that is via code Mar 04 07:50:17 wait, so I dont even need to set the fault if its default Mar 04 07:50:30 it's default on pre-4.0 Mar 04 07:50:34 AOSP Mar 04 07:50:43 4.0+ AOSP is Roboto Mar 04 07:50:54 who the hell knows what's the default on OEM-specific ROMs Mar 04 07:51:14 ya, so better that I package the font and set it in code? Mar 04 07:51:30 QubeZ, i just wanted to ask that if you are parsing the data in form of json object then you need to get in the data from server in form of jsonobject too Mar 04 07:51:33 right ? Mar 04 07:51:40 or do I just assume its avail and use it from the OS like android.R... in XML typeface attribute? Mar 04 07:51:47 QubeZ, i'm sure it's part of the CDD so it'll always be there Mar 04 07:51:55 or whatever that thing is called Mar 04 07:52:10 JakeWharton: ok thats good, so do I just use the typeface attribute in XML and that should be sufficient? Mar 04 07:52:22 theoretically Mar 04 07:52:27 i'm only speculating Mar 04 07:52:27 i mean it would free up 300k from my apk if I remove the ttf bold and normal Mar 04 07:52:47 i'm pretty sure 99.9999% of ROMs will have it as the default on pre-4.0 Mar 04 07:53:00 sunny_slls: right, all my data is coming in as JSON so I parse it using JSON library Mar 04 07:53:17 only the custom cookers who like their entire ROM in Papyrus may not have it Mar 04 07:53:25 JakeWharton: ok i trust that, but how would you go about setting it? in XML would be sufficient? Mar 04 07:53:35 yes Mar 04 07:54:28 ok so I'll just set android:typeface="sans" then bold the style Mar 04 07:54:31 QubeZ, right and my data is not coming in that form Mar 04 07:54:46 sunny_slls: yours is coming xml right? so use an XML parser Mar 04 07:54:54 same thing, i mean I just prefer JSON because its lighter Mar 04 07:55:11 QubeZ, ya i would be doing that. My file is not in the server Mar 04 07:55:26 QubeZ, its on website, a file which is uploaded Mar 04 07:55:49 QubeZ, so i can't send data in form of JSONObject from there Mar 04 07:55:51 i think the website is hosted on a server Mar 04 07:55:53 =) Mar 04 07:56:12 ya i gotcha... so you need to download the file first is what you're saying Mar 04 07:56:26 im sure there is a way to stream the XML instead of having to download it and parse while streaming (xml pull parser) Mar 04 07:56:28 QubeZ, its a google site where i have uploaded the file Mar 04 07:56:38 sunny_slls: to "send data in the form of JSON" all you've got to do is upload a data.json file to the server and then request it. you're done. Mar 04 07:57:18 json is just a textual data serialization format. read about it at json.org Mar 04 07:57:26 hmm Mar 04 07:57:36 thanks QubeZ , readme Mar 04 07:57:49 i will try that readme and get back to you Mar 04 07:57:55 thanks for help Mar 04 07:58:03 readme, by the way nice to meet you :) Mar 04 07:58:09 good luck Mar 04 07:59:37 finally Mar 04 07:59:41 thanks jakewharton Mar 04 08:00:28 no problem Mar 04 08:00:31 (forget what I did) Mar 04 08:00:45 debugging is melting my brain Mar 04 08:00:46 galaxy note not showing up as a device Mar 04 08:00:52 it was the usb drivers fault Mar 04 08:00:57 ah yeah Mar 04 08:00:59 always is Mar 04 08:01:00 :) Mar 04 08:01:27 o.o Mar 04 08:01:38 Since i can't get a 4.0.3 emulator to run at any reasonable speed i'll have to test directly on my phone Mar 04 08:01:59 emulator sucks anyway Mar 04 08:02:15 worthless for testing in 87.3% of the cases Mar 04 08:02:33 Saban, it's pretty obvious Mar 04 08:02:35 > emulator Mar 04 08:02:46 > slow even on high end computers Mar 04 08:02:47 [2012-03-04 01:02:26 - HelloAndroid] ERROR: Application requires API version 15. Device API version is 10 (Android 2.3.6) Mar 04 08:02:49 le sigh Mar 04 08:03:01 i've got a GNex here Mar 04 08:03:16 Saban, GNex emulator on my laptop (3 years old) Mar 04 08:03:24 bootup takes 15 minutes Mar 04 08:03:27 15 MINUTES Mar 04 08:03:28 http://code.google.com/p/iptableslog/ is awesome for keeping an real-time eye on your network Mar 04 08:09:12 I need some crazy data structures Mar 04 08:09:16 WeakBiMap Mar 04 08:09:21 probably have to write that one myself Mar 04 08:09:25 I noticed my first test app was running minimum SDK 15 which wouldn't even run on my Note, so i switched to SDK 10, but is this the best choice or should or maybe pick a lower SDK? Mar 04 08:09:36 set min as low as possible Mar 04 08:09:41 compile with as new as possible Mar 04 08:09:45 target as new as possible Mar 04 08:10:22 I'd have to download a lower SDK but looking at the SDK manager i see SDK 1.5 (API 3) Mar 04 08:10:44 Or is that maybe too low? Mar 04 08:11:10 7 is a good min Mar 04 08:11:17 compile with 4.0 and target API 14 Mar 04 08:11:32 or 4.0.3 and 15 Mar 04 08:13:12 hi all Mar 04 08:13:24 how to solve encoding problems Mar 04 08:13:36 when xml Mar 04 08:14:07 http://p-xr.com/android-tutorial-how-to-parseread-xml-data-into-android-listview/ Mar 04 08:14:11 like in this manual Mar 04 08:14:25 xml utf-8 encoded Mar 04 08:20:40 JakeWharton: did you ever get a chance to play with To Do Mapr? Curious on your thought. Don't worry, I have a thick skin and looking to improve it. Mar 04 08:20:49 no, sorry :-/ Mar 04 08:21:02 no worries Mar 04 08:21:06 i spent the last week moving across the country and now I'm 3 days away from ABS v4 Mar 04 08:21:11 which still needs a lot of work Mar 04 08:27:15 -_- Mar 04 08:28:34 head Mar 04 08:28:35 hurts Mar 04 08:28:36 badly Mar 04 08:28:43 t0mless, fix SherlockFragmentActivity Mar 04 08:28:45 it's that salty SF air Mar 04 08:29:01 what's wrong with it? Mar 04 08:29:14 it's causing something strange to happen Mar 04 08:29:17 and i have no idea how Mar 04 08:29:29 is it that one bug with the action modes? Mar 04 08:29:35 possibly Mar 04 08:29:44 different bug but may be related Mar 04 08:29:47 same symptoms Mar 04 08:30:18 I guess I had to open IDEA sometime today Mar 04 08:31:37 do any of you IDEA peoples use that IDE talk thing? Mar 04 08:31:47 seems so pointless Mar 04 08:32:06 haven't switched to IDEA for ABS yet Mar 04 08:32:17 or any Android actually Mar 04 08:32:50 hrm... the library module dissapeared from my ABS project Mar 04 08:33:07 I wonder if it's because I used it in another project Mar 04 08:33:19 I really need to get maven figured out and set up Mar 04 08:35:46 ok, got it open Mar 04 08:35:54 * t0mless stares Mar 04 08:36:18 https://github.com/github/gauges-android/pull/13#issuecomment-4307695 Mar 04 08:36:46 scroll up for the problem Mar 04 08:39:53 hmm Mar 04 08:39:54 reading Mar 04 08:39:56 "The bug can't be disappeared by changing the base to SherlockActivity..." Mar 04 08:40:00 you sure you're feeling ok Mar 04 08:40:07 that's a partial lie Mar 04 08:40:12 it'll only fix it on 4.0+ Mar 04 08:40:16 oddly enough Mar 04 08:40:55 t0mless, it's nearly 4AM EST Mar 04 08:40:56 :) Mar 04 08:40:59 not used to PST yet Mar 04 08:41:03 :) Mar 04 08:41:21 i deleted that line anyways Mar 04 08:41:22 daylight savings time next weekend is going to uber fuck with you then Mar 04 08:41:28 yeah Mar 04 08:41:34 actually it may help Mar 04 08:41:40 i think Mar 04 08:41:49 shame it wasn't this weekend Mar 04 08:43:22 are you using the nineoldandroid animations? Mar 04 08:43:26 or built in ones? Mar 04 08:43:58 that's regular view animation Mar 04 08:44:15 i guess you need the icon, layout, and animation xml too Mar 04 08:44:23 i was only joking for you to fix it Mar 04 08:44:28 i'll figure it out eventually Mar 04 08:44:30 yea, going into the github repo to grab it Mar 04 08:44:42 maybe I can come up with ideas to help :) Mar 04 08:44:57 i think it's related to the caching of MenuItem vs. android.view.MenuItem Mar 04 08:46:07 though it might be related to this frozen view state thing Mar 04 08:46:24 but i'm not sure why the bug would present on ICS when you use SherlockFragmentActivity Mar 04 08:46:34 that should give clues but I can't read them at the moment Mar 04 08:46:56 sometimes, when i'm tired or not paying attention, I save hdpi images to ldpi folder thinking l is for large... Mar 04 08:47:35 does sherlock fragment activity default to normal activity on ICS? Mar 04 08:47:52 no Mar 04 08:47:58 didn't think so Mar 04 08:48:09 i'm just debugging the SherlockActivity one Mar 04 08:48:14 i'm sure if that's fixed it'll fix the other Mar 04 08:49:39 ok Mar 04 08:49:41 going to bed Mar 04 08:49:44 i'm exhausted Mar 04 08:50:02 don't waste too much time on it Mar 04 08:50:06 unless you really want to :) Mar 04 08:50:33 I enjoy learning new things about android :) Mar 04 08:54:41 hiii....am building and rss news reader....but am having problems with parsing images because it has it has tag and am using sax parser Mar 04 08:55:13 cranky_85: how do you solve encoding problems? Mar 04 08:55:54 cranky_85, NermaN: Having read this tutorial, I can say for sure it covers all of both of your questions Mar 04 08:55:59 http://www.ibm.com/developerworks/opensource/library/x-android/ Mar 04 08:56:55 readme: i used this tutorial and it covers a lot but not how to handle images Mar 04 08:57:30 Nerman: what do u mean by encoding....i place it in a bitmap Mar 04 08:57:33 cranky_85: you handle it like any other tag. you need to make the http request to download the image yourself. Mar 04 08:58:01 I would recommend using the UrlConnection class Mar 04 08:58:05 because it supports caching Mar 04 08:58:26 the problem is that it can differentiate bet. post image and ads image in the post Mar 04 08:58:49 can, or can't? Mar 04 08:58:59 can't :D Mar 04 08:59:22 well yeah, that's not an rss, xml, or image problem. it's an ad-blocking problem Mar 04 08:59:36 you're going to need to either forget about it, or come up with some kind of filter Mar 04 08:59:53 ahaaa.....ok Mar 04 09:00:06 the way most ad-block works is by remembering the domain and blacklisting it Mar 04 09:00:53 show me a "regular" and an "ad" in your feed Mar 04 09:01:02 k...wait Mar 04 09:02:19 Mar 04 09:02:33 حديثي الولادة Mar 04 09:03:08 in this case, are the "blog pictures" mostly hosted on the same domain? If so, i'd just whitelist the domain of the RSS feed and match against that. Mar 04 09:04:31 great ill try it out and give u feedback thanks :) Mar 04 09:05:04 is it possible to activate a notification's sound and vibration without actually showing the notification? Mar 04 09:12:08 readme: there in DOM parser no fix for encoding problems Mar 04 09:17:24 NermaN: I think there is a fix. Mar 04 09:17:37 I believe it's fairly simple, too. I'll look at some of my code, 1 sec. Mar 04 09:20:32 NermaN: what is the encoding you are receiving, and what are you expecting? Mar 04 09:20:41 where are you getting the data from? Mar 04 09:20:52 readme: http://nerman.ws/123.xml Mar 04 09:21:08 readme: htmlentity.tostring Mar 04 09:21:22 well, to start you don't need to convert it to a string at all Mar 04 09:21:35 but you will lose the ability to dump the data without changing the flow of your code Mar 04 09:24:26 Perhaps what you want is EntityUtils.toString(repsonse) Mar 04 09:24:32 instead of "HtmlEntity" Mar 04 09:24:44 http://cspad.com/ypg - Am I using canvas.Scale() in the wrong way? Mar 04 09:24:48 but, that's slow, I don't do it that way Mar 04 09:25:02 I pass the actual InputStream to my DOM parser code. Mar 04 09:25:14 response.getEntity().getContent() Mar 04 09:25:37 major drawback is debugging Mar 04 09:25:41 which I use wireshark for Mar 04 09:29:36 hi QubeZ Mar 04 09:29:53 bleh, it's not scaling at all Mar 04 09:31:23 QubeZ, hey the resources that you get in form of JSONObject from the server, are you building the resources there . Mar 04 09:31:39 QubeZ, i mean are you making those json files by your own Mar 04 09:32:10 QubeZ, i am asking this because i am making those xml files which i would like to retrieve it in json format Mar 04 09:34:04 readme: thanks to you Mar 04 09:34:12 np :) Mar 04 09:34:19 problem was in htmlentity.tostring Mar 04 09:34:45 without it, in InputStream all works Mar 04 09:47:04 How do I draw a canvas in another canvas? Mar 04 09:47:08 I got two canvases Mar 04 09:47:52 Put a canvas in your canvas so you can setOnClickListener while you setOnClickListener. Mar 04 09:48:34 canvasception Mar 04 09:48:47 :) Mar 04 09:48:58 I'm just using a canvas to draw and then using my custom view to display it Mar 04 09:49:14 Deepa Mar 04 09:49:22 Are you trying to buffer? Mar 04 09:49:23 sounds like double buffering, which should be out of the box :P Mar 04 09:49:23 if you're just using a canvas to draw, then it's backed by a bitmap. Draw the bitmap to the view canvas. Mar 04 09:50:24 I didn't provide a bitmap to the canvas when I created it, does it still have one? Mar 04 09:51:40 I meant "then of course you gave it a bitmap", thinking that you'd done that. Mar 04 09:51:43 Deepa, please explain what you want it to do? Mar 04 09:52:25 I have made an implementation of "the game of life" and I want to show it on screen Mar 04 09:52:39 I'm right now creating a canvas and drawing each point Mar 04 09:53:01 and then I want to scale that to the screens size Mar 04 09:54:10 Create a bitmap, draw onto bitmap Mar 04 09:54:30 then draw the scaled bitmap onto the provided canvas in onDraw Mar 04 10:00:11 other options, if you don't want to continually scale a bitmap: drawRect for each cell, prepare two bitmaps and draw one or the other for each cell. You can prepare bitmaps of the correct size in onSizeChanged Mar 04 10:00:41 i need 7 people Mar 04 10:03:13 readme, how can i see the json file in the browser Mar 04 10:03:46 readme, i am giving the path to the file but instead of showing in the contents of the file in json form its giving me the file to download Mar 04 10:05:28 sunny_slls: link me? Mar 04 10:05:34 can anyone tell me what the units are for Paint.setTextSize? Mar 04 10:09:10 hi Mar 04 10:09:33 Hiraghm - sp, scaled pixels Mar 04 10:10:23 okay good thanks Mar 04 10:10:33 I won't have to scale my text myself for different devices then Mar 04 10:12:00 Hiraghm - actually, sorry, it's TextView.setTextSize that's sp - I found the wrong answer. Mar 04 10:13:08 oh. Mar 04 10:13:13 oh well. thanks anyway :) Mar 04 10:13:17 I've fought with Paint.setTextSize to display letters in neat boxes, and knew it wasn't pixels (or if it is, Paint interprets it very oddly). Mar 04 10:13:30 Hiraghm, try this: http://stackoverflow.com/questions/3061930/how-to-set-unit-for-paint-settextsize Mar 04 10:14:03 tyvm Mar 04 10:14:28 www.ra4king.com/games/Multiplayer/Shooter.jar Mar 04 10:14:30 x to shoot Mar 04 10:14:32 arrows to move Mar 04 10:15:56 i just reinstalled all the android sdk, and now i'm getting "build path incomplete" in all my old projects, although i haven't changed the paths of anything. how can i solve this please ? Mar 04 10:20:57 let's get 20 people in there! Mar 04 10:37:04 Hello everybody, I have a little bit wierd quetion) So I'm parsing that xml file, talking 'bout an android game. Can I hold a link to the picture in the xml file and then readn it and convert to the link in my parser handler? can anybody understand what I'm trying to say? Mar 04 10:37:35 ) Mar 04 10:37:42 Esox: Is there some simple cheaty way to get the bitmap to scale to the window? I'm using a Matrix and PreScale atm Mar 04 10:38:53 Deepa: Bitmap.createScaledBitmap Mar 04 10:40:48 Deepa: http://stackoverflow.com/a/6578435/1055291 Mar 04 10:42:01 *http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap%28android.graphics.Bitmap,%20int,%20int,%20boolean%29 Mar 04 10:44:08 I mean something like backgroungImg = Link.parse(atts.getValue("myTag")); Mar 04 10:44:32 sorry readme for a late reply Mar 04 10:45:04 readme, https://sites.google.com/site/droidresources/home/questions.json Mar 04 10:45:08 here is the link Mar 04 10:45:39 heh, the previous result ended up being better :P Mar 04 10:46:06 and then: bmp = BitmapFactory.decodeResource(resources, backgroundImg); Mar 04 10:47:05 well, quality-wise Mar 04 10:47:11 and I have my doubts about my view Mar 04 10:47:13 sunny_slls: it's fine. just open it in a text editor. Mar 04 10:47:53 sunny_slls: it just means your server is using a somewhat appropriate mime type for the json file, and not text/html, which would have allowed you to view it in the browser (because the browser would have handled it that way) Mar 04 10:48:18 you can change that if you have access to the servers configuration, but you'll be on your own for that, I don't have time to help. Mar 04 10:48:30 ok thanks Mar 04 10:49:25 hey, sunny, you should be good at parsing, aren't you? Mar 04 10:50:28 www.ra4king.com/games/Multiplayer/Shooter.jar Mar 04 10:51:18 Defuera, well i have knowledge of it Mar 04 10:53:16 Defuera, actually i was trying to parse xml files but then i came to know about the JSON parsing and i am trying to do that Mar 04 10:53:28 may I parse a link to the local picture not uri? Mar 04 10:53:56 or may i convert String to that Link Mar 04 10:54:24 Link is @drawable/background Mar 04 10:55:17 sunny_slls, amigo? Mar 04 10:57:20 why have u changed to json? I walso was thinking about it, but there were much manuals about xml Mar 04 10:58:12 so I'm trying to use SAX parser at the moment Mar 04 10:58:47 Defuera, there are so many ways to do that Mar 04 10:58:52 do you know how to parse a link to the lokal file, using json? Mar 04 10:58:54 Defuera, choose which ever you like :) Mar 04 11:01:17 Defuera, the link is a path to a file in the server right. so all you have to do is make an http connection to that link and then store the data received into a local file Mar 04 11:02:00 is there easy way to associate some listview items with id? Mar 04 11:02:01 Defuera, sorry brother i would have discussed this more with you but got to go have lunch Mar 04 11:02:04 see you later :) Mar 04 11:02:23 i has string map that build it with simpleadapter Mar 04 11:02:39 noooo man! i'm talking about local file, you know Mar 04 11:03:14 there's no problems with URL, I need to parse a link to my backgroud Mar 04 11:03:26 The link is @drawable/background Mar 04 11:04:18 i think theres some simple way Mar 04 11:04:26 ok, thank you anyway Mar 04 11:05:22 sunny_slls, gl -) Mar 04 11:06:06 i want something like listview.setextra Mar 04 11:17:40 hello al Mar 04 11:19:10 I am trying to create a round button, I made this class: http://pastie.org/3517712 then I added it to my layout, but nothing in being drawn, can someone help me please? Mar 04 11:24:09 gnagno you have to get the x and y from the system Mar 04 11:24:31 since your button will be inside a layout, it determines where the button will be placed Mar 04 11:25:22 xorgate, so if I define x and y inside of the view these x and y are not absolute ? Mar 04 11:25:54 indeed, what if you rotate the screen? Mar 04 11:26:22 paste the xml? Mar 04 11:29:53 also, perhaps you need a constructr that handles AttributeSet ? Mar 04 11:32:08 gnagno in order to find such a bitmap related problem, i'd first use just a backgroundcolor, then add complexity until it fails Mar 04 11:32:14 now, off to the gym Mar 04 11:36:22 xorgate, I am not using the xml, I am trying to add it to my view programmatically, anyway I succeed Mar 04 11:36:29 thanks for your help Mar 04 11:41:18 is it possible to insert a tab into a string being drawn by canvas.drawText? Mar 04 12:18:46 has anyone actually embedded a webserver in an android app? Mar 04 12:23:29 yeah Mar 04 12:23:36 twice i think Mar 04 12:24:06 actually I tell a lie, it was an http proxy Mar 04 12:48:46 Hi Mar 04 12:49:23 Up at the top, would it be possible to put how to register? It was a bit of a nightmare as I don't usually use irc Mar 04 12:49:30 I'm sure it's the same for others Mar 04 12:53:07 #freenode? Mar 04 12:53:58 Hello? Mar 04 12:55:42 NutterzUK: it's not that people are ignoring you, it's been pretty quiet for the past hours Mar 04 12:56:43 I would however note that googling for "register nick freenode" yields the expected results Mar 04 13:00:35 yeah, I found it in the end Mar 04 13:00:48 I just would have thought it would say somewhere rather than having to go off searching Mar 04 13:00:58 Thanks :). Is it usually this quiet? Mar 04 13:01:06 nope Mar 04 13:02:05 Ok, I'll leave the chat on for a while whilst working. I'm new here and (fairly) new to Android dev, so hopefully can learn a lot here / help some others when I can. Mar 04 13:02:24 livin' the dream Mar 04 13:03:06 Hell yeah :) Mar 04 13:03:09 anyone who calls himself nutterz is welcome of course Mar 04 13:03:50 You want to know the funny part? Mar 04 13:04:04 Unfortunately, Nutterz is derived from my surname Mar 04 13:04:12 haha Mar 04 13:05:37 hm, why is an intent's data an Uri? isnt that weird. Mar 04 13:08:55 seriously, how can you reveal the notification bar in the emulator when emulating a tablet? Mar 04 13:09:02 ICS Mar 04 13:09:20 drag the bottom right corner up? Mar 04 13:09:48 storkme: it's nothing there Mar 04 13:10:03 weird Mar 04 13:11:17 I'll have a try but can't promise anything Mar 04 13:13:39 i want an ics tablet :( Mar 04 13:20:19 Do you not just click on the clock in the bottom right? Mar 04 13:26:19 Hmm, I have a real noob question but it's bothering me. Mar 04 13:26:44 If I have a relativeLayout, as everything is measured in dip it looks the same on all devices, that's ok Mar 04 13:27:12 But... of course on those with larger screens it will then leave a space below the layout which I don't want. So, I can make 4 xml layouts for small, medium, large, xl screens.. Mar 04 13:27:27 But is there not a way to just say.. stretch everything? As it wouldn't look bad with this particular layout Mar 04 13:27:48 The layout seems fairly complex so wanted to avoid making it 4 times Mar 04 13:28:18 ( as it's relativeLayout, can't use fill_parent / weightings I don't believe how I want to ) Mar 04 13:29:52 Guess i'll stop being lazy and make 4 layouts :) Mar 04 13:35:15 How do you zoom out in DDMS traceview? Mar 04 13:36:29 Double click above the timeline? Mar 04 13:36:46 heh thanks Mar 04 13:36:51 no probs :) Mar 04 13:36:54 for some reason that was really non-intuitive ^ ^ Mar 04 13:36:58 http://code.google.com/p/android/issues/detail?id=2753 Mar 04 13:37:02 Not just you with the same problem :) Mar 04 13:46:22 When working with custom views, or at least the one I made, it doesn't show on the eclipse graphical layout tab, so it makes it harder to see where things are and means coding the relativelayout by hand. Is there a way to make it show up on here, even if just as a gray rectangle or something so I can see where things are when making the layout, or do I have to do this blind / keep uploading to the emulator? Curren Mar 04 13:46:22 size, it's just tiny on the graphical layout, of course on the emulator it then loads up correct. Mar 04 13:47:16 I suppose I can always replace it with an image for now of the same size and change back after, but was wondering if there was a better way. Does the graphical layout ever show custom views, is mine just made badly or is that normal? Mar 04 13:47:44 this eclipse gui thing is pretty buggy if you ask me you shouldnt focus that much on it Mar 04 13:48:03 Ok, thanks. By hand it is :) Mar 04 13:48:25 I just find it hard to visualize, of course always testing on the emulator but my emulator is very very slow Mar 04 13:48:38 run it on your phone then? Mar 04 13:48:48 its much easier to debug on a device Mar 04 13:49:04 damn Mar 04 13:49:13 Yeah, will do. Thanks. Mar 04 13:49:14 anybody know where the transformer keyboard version of connectbot is? Mar 04 13:51:20 This thing? Mar 04 13:51:21 I have a slightly modified fork of connectbot for asus transformer, you can try it. Mar 04 13:51:21 https://github.com/downloads/lorantkurthy/connectbot/ConnectBot.apk Mar 04 13:51:21 (The repo is at https://github.com/lorantkurthy/connectbot) Mar 04 13:51:34 ( that's from http://code.google.com/p/connectbot/issues/detail?id=459 ( Mar 04 13:53:11 ok tnx Mar 04 13:57:34 nice thanks ... works :) Mar 04 13:57:44 appreciate it Mar 04 13:57:49 Excellent, no probs Mar 04 13:59:33 it's the alt key that makes it special ;) Mar 04 13:59:36 long live meta Mar 04 13:59:53 i wonder why the mapping hasn't been added to the official connectbot Mar 04 13:59:58 in the market Mar 04 14:00:04 does it interfere with something? Mar 04 14:00:58 I wouldn't know, I guess so Mar 04 14:01:36 I wouldn't have thought it would be *too* difficult to add Mar 04 14:04:02 hmmm, can't wait for the HTC One x to be on the UK market Mar 04 14:06:39 NutterzUK: Clove were listing it for release on April 5th Mar 04 14:07:21 :) Nice Mar 04 14:07:58 I almost strayed to wait for the iPhone 5 as didn't see any huge improvements until this phone, excited about it. Mar 04 14:08:14 which, by *complete* coincidence, is the next time I'll be in the UK... unfortunately, I'd prefer not to get one there unless I know I'll be able to claim the tax back Mar 04 14:08:37 I guess you're not from Leeds then? Mar 04 14:08:40 also likely the SGSIII will have been announced by then... Mar 04 14:08:46 of course I'm from Leeds :) Mar 04 14:09:17 Nice, Leeds UK? Mar 04 14:09:28 As in... near Sheffield? Mar 04 14:10:05 near Sheffield? heresy! Sheffield is almost in the Midlands! yeah, that Leeds Mar 04 14:11:10 haven't lived there full-time since '94, haven't lived in the UK since '05 Mar 04 14:11:57 I'm from Sheffield, well.. actually in Nottingham at the moment but Sheffield is my home town Mar 04 14:12:08 Sheffield Wednesday ftw :) Mar 04 14:12:41 Leeds United ft... oh Mar 04 14:12:49 hehe Mar 04 14:14:05 NutterzUK: i gave up on htc after the awfulness of the g2 Mar 04 14:15:41 after someone helped themselves to my gnex out of my pocket in China a couple of weeks ago, I've fallen back to my old *Magic*... which is genuinely, and surprisingly, not a terrible phone, even in 2012 Mar 04 14:17:02 g2.. is that the Desire Z? Mar 04 14:17:18 Sorry, no it's not Mar 04 14:18:10 yeah, I think it is Mar 04 14:18:11 hmm. Devices should be named the same internationally Mar 04 14:18:14 Yeah, it is Mar 04 14:18:21 I have a Desire Z, I think the same phone Mar 04 14:18:24 what's up with it? Mar 04 14:23:04 Leeds, you poor guy Mar 04 14:23:08 where was your gnex jacked Mar 04 14:23:17 Shenzhen, of course Mar 04 14:23:35 hive of scum and villainy, etc Mar 04 14:23:46 lol shenzhen Mar 04 14:24:00 i stayed in a 0-star hotel (or motel/whatever) there Mar 04 14:24:04 the toilets were shared Mar 04 14:24:10 the concrete was just exposed Mar 04 14:24:17 the sheets were probably full of mites and shit Mar 04 14:24:43 oh how lovely Mar 04 14:25:49 oh, we've stayed in a couple of pretty nice hotels there... but it's not cheap, and we were in dirty downtime when my phone walked away Mar 04 14:25:52 but then, my aunt lives in fuzhou or whatever Mar 04 14:26:12 the people there are better (usually) Mar 04 14:26:35 i can just walk around with my dell in my backpack Mar 04 14:27:05 fitted tightly by my backpack Mar 04 14:27:10 you can see the edges Mar 04 14:27:17 no one going to mug me or shit Mar 04 14:27:24 but again, i'm still cautious at night Mar 04 14:27:31 Why would they want a dell ? Mar 04 14:27:35 lol Mar 04 14:27:41 in china, the laws are fucked up badly Mar 04 14:27:48 rape a teenage girl, get 1 year in jail or so Mar 04 14:27:51 even 1 month Mar 04 14:28:05 this was in a mall in the middle of the day in a crowd... anyway, made a police statement, just for the fun of it, and I'm not heading back to that part of town Mar 04 14:28:30 my (HK local) gf likes to go there to buy dodgy DVDs and handbags, and get her nails done... she's welcome to it Mar 04 14:28:45 Leeds, so where do you live Mar 04 14:28:48 HK Mar 04 14:28:51 oh k Mar 04 14:28:54 i live in SG Mar 04 14:29:01 ah, HK Jr. :) Mar 04 14:29:04 the last time i went to shenzhen was when i was 5 or so Mar 04 14:29:37 last time I went to SG was... last year Mar 04 14:29:42 to hk disneyland, take train to shenzhen, rest at motel, take long distance bus to fuzhou (my grandmother (paternal side)) Mar 04 14:30:07 (the (awkward moment when brackets) don't close properly Mar 04 14:30:47 ) Mar 04 14:31:07 {the (awkward moment) when brackets don't match] Mar 04 14:31:18 um... HK disneyland has only been open for 5 years - how old are you? :) Mar 04 14:31:20 Can tell it's a dev chat :) Mar 04 14:32:24 yep Mar 04 14:32:25 sorry, 6.5 years Mar 04 14:32:31 Leeds, 6.5? ah Mar 04 14:32:34 then hmm Mar 04 14:32:45 ocean park? more like seaworld? Mar 04 14:32:47 i'm not too certain as to when i lst went Mar 04 14:32:50 last went* Mar 04 14:32:53 it IS disneyland Mar 04 14:33:00 i don't think i went to seaworld Mar 04 14:33:06 i'm just 13.5 Mar 04 14:33:09 years old. Mar 04 14:33:11 so... Mar 04 14:33:16 maybe it was 7 Mar 04 14:33:17 ah Mar 04 14:33:18 heh Mar 04 14:34:17 night Mar 04 14:34:19 Does anyone know if there exists some image-library for android/java with which I can look for objects or figures in a photo, like a black square or a circle Mar 04 14:35:46 You're 13 and doing Android dev? That's pretty awesome Mar 04 14:39:48 mads-: I really don't have experience with it but looked around on the net and the recommended library seems to be http://neuroph.sourceforge.net/image_recognition.html. Mar 04 14:40:24 I don't know about it working on Android though, might take some work Mar 04 14:41:49 There is a bit here about using it with android: http://www.jdamcd.com/?p=84 Mar 04 14:42:30 Thanks Mar 04 14:42:41 Anyone successfully used a non-blockinh i/o in android environment? Mar 04 14:43:12 non-blocking* Mar 04 14:54:25 To put it another way...are you able to implement all standard java libraries/clases withinin the android environment or does are there some libs that are discouraged? Mar 04 15:06:13 Are layouts as horrible to do on iOS as they seem to be for Android? Mar 04 15:06:32 o_O Mar 04 15:07:06 iOS layouts only work with one screen size Mar 04 15:07:10 Just wondering, really having a nightmare with it :( Mar 04 15:07:31 layouts in Android aren't particularly hard Mar 04 15:08:29 They shouldn't be, I guess i'm missing a few things Mar 04 15:09:10 hey guys Mar 04 15:09:37 Hi Sasson Mar 04 15:10:05 what the name of the botton next to the "home" button (the preferences one, not "back" button) on android phones? Mar 04 15:10:18 *what's Mar 04 15:10:22 the menu button? Mar 04 15:10:29 the button layouts are different between phones Mar 04 15:10:53 My phone has Home, Menu, Back, Search ( Desire Z ) Mar 04 15:10:55 but when developing I can always count there will be a menu button? Mar 04 15:11:01 no Mar 04 15:11:06 Not on the new phones Mar 04 15:11:36 i think the interface should have a menu button on it though if the phone itself doesn't Mar 04 15:11:50 there are probably guidelines somewhere Mar 04 15:12:16 "Beginning with Android 3.0 (API level 11), Android-powered devices are no longer required to provide a dedicated Menu button. With this change, Android apps should migrate away from a dependence on the traditional 6-item menu panel and instead provide an action bar to present common user actions." Mar 04 15:12:24 That's here: http://developer.android.com/guide/topics/ui/menus.html Mar 04 15:12:30 I had this question myself last week Mar 04 15:12:35 can you tell me one phone that doesn't have any buttons on the front of it (other then home)? Mar 04 15:13:19 no longer required? :) Mar 04 15:13:26 i am still pissed that ics swapped the ok/cancel Mar 04 15:13:35 maybe ms sued them for having it in the proper place heh Mar 04 15:13:52 reminds me of gtk type garbage Mar 04 15:14:52 had to operate against muscle memory Mar 04 15:17:54 are there some one here are good at DDMS for checking apps? Mar 04 15:22:39 hi all, so can I parse link to the local file from xml or "por lo menos" convert String to the link of Id ? Mar 04 15:23:01 *link or id Mar 04 15:24:05 I think it's possible because views layout contains links to files, i need exactly the same... Mar 04 15:25:04 pls Mar 04 15:27:41 heho Mar 04 15:32:49 can any1 point me to how to sweep between views I have? (I'm having promlems with pageViewer if that's what you're thinking about) Mar 04 15:37:26 Does Android support Java 7? Mar 04 15:49:46 is it posible to install an app over usb while using usb thetering? Mar 04 15:50:18 or how to test an app whitout 3g and wireless? Mar 04 15:50:21 gua_ould: yes Mar 04 15:50:44 gua_ould: but windows sucks so you can't really do it there without providing your own .inf Mar 04 15:51:22 you got a manual about it? Mar 04 15:51:28 no Mar 04 15:51:32 hehe Mar 04 15:51:37 i just use linux :x Mar 04 15:52:06 ok thx Mar 04 15:55:24 zinx, you think its posible without routing my phone? Mar 04 16:00:49 hi, i want to repeatedly scan for wifi networks with an android device. as far as i can tell this already gets done by android itself, now i wonder if there is a way to connect to that scan when it is finished and read the results somehow? Mar 04 16:01:34 sveri, http://developer.android.com/reference/android/net/wifi/WifiManager.html Mar 04 16:02:58 Mavrik: thanks, i already looked into that manager, but couldnt find how i would fulfill my task with that? Mar 04 16:05:11 is it possible to remove the keyboard and controls in the android emulator? so that I can use all my screen resolution? Mar 04 16:06:39 sveri, what's wrong with "getScanResults()"= Mar 04 16:06:40 ? Mar 04 16:07:29 Mavrik: nothing so far :D, does that "SCAN_RESULTS_AVAILABLE_ACTION" get always fired a scan is finished, no matter which app did start it? and can i get the results too, no matter which app did start it? Mar 04 16:09:09 You'll have to test that on each version (I'm not sure atm), but you should get that callback as long as you're registered for it Mar 04 16:09:18 (no matter the app) Mar 04 16:09:31 Mavrik: ok, thank you, i try that Mar 04 16:12:00 mh my android has a very strong calcuation to do ... but it seems to slow down somehow (heap doenst grow) any ideas what could causes that? Mar 04 17:00:38 yeah buddy Mar 04 17:00:42 hi, i took some work home and now i stumble about a somewhat weird problem: The method getCount() of type Categories.CategoryListAdapter must override a superclass method Categories.java/SitaAndroidActivity/src/uandi/Sita/app line 42 Java Problem Mar 04 17:01:02 it's declared as public int getCount() { Mar 04 17:02:52 i want to stream a file from a ftp server. connecting to the server works fine, but i have problems with the scanner. the display turns black after connecting... here's my code http://pastebin.com/uKaZWVRb Mar 04 17:03:14 if somebody want's to help me... Mar 04 17:03:15 cocacola1 ! Mar 04 17:03:25 ^^ Mar 04 17:03:49 Hey google guys, Is the source code for this application open? : http://android-developers.blogspot.in/2010/05/twitter-for-android-closer-look-at.html Mar 04 17:04:15 napster i think it's one of the Big Lies Mar 04 17:04:26 xorgate: oops! Mar 04 17:05:12 may be romainguy can tell us more! :) Mar 04 17:05:52 chris_cross are you sure the stream is coming in properly? can you read the "8.0" string ? Mar 04 17:06:07 no i'm not Mar 04 17:06:42 well figure out what's the first thing that isnt going as you think it should Mar 04 17:06:53 i'm sure connection works fine, but then the display just turns black Mar 04 17:07:16 you're sure as in you know for a fact Mar 04 17:07:27 i know it Mar 04 17:07:38 because subdirectory is created Mar 04 17:09:52 ok but after that there's a retrieval of the stream Mar 04 17:10:06 and a completependingcommand Mar 04 17:10:15 and only then do you make the scanner Mar 04 17:10:26 seems like the transfer could also be the problem Mar 04 17:10:35 ok Mar 04 17:10:51 thank you Mar 04 17:11:55 also you change dir on the ftp to DATA (i think?) but theres no such dir :) Mar 04 17:12:11 oh right it's automatic never mind Mar 04 17:12:18 i'll just stop snooping on your ftp Mar 04 17:12:36 :D Mar 04 17:13:12 but it's something to keep in mind, my ftp client gets sent to DATA automatically, maybe your app also Mar 04 17:13:35 ? Mar 04 17:13:57 cause it's the only directory? Mar 04 17:14:08 well you call ftpChangeDirectory("DATA"); Mar 04 17:14:13 yes Mar 04 17:14:28 but when i connect using my ftp prog, it automatically goes to DATA Mar 04 17:14:40 i try it Mar 04 17:14:54 like i said Mar 04 17:15:03 find the first thing that doesnt go as you expect Mar 04 17:16:04 ok i do. i just thought that theres is a mistake in coding Mar 04 17:16:44 i'm sure there is Mar 04 17:16:57 what you want is to find out what the mistake is :) Mar 04 17:17:00 a syntax mistake Mar 04 17:17:33 syntax mistakes will be found by eclipse (i assume you use eclipse) Mar 04 17:17:46 Syntax Mistakes are Compile time errors, not runtime or logic Mar 04 17:19:03 you're a logic error Mar 04 17:19:24 t0mless: we already knew this, lets move on Mar 04 17:19:57 and i know it, too ^^ Mar 04 17:21:04 i just thought, that my mistake is probably a mistake which somebody sees on the first view Mar 04 17:21:12 my app can be used to share pics. but i also want to share pics FROM my app. how can i remove my own app from the list of apps when i share a pic? Mar 04 17:21:43 is it possible to mix content in its directions ? Mar 04 17:21:49 remove the SEND intent from your intenet filter? Mar 04 17:21:55 lets say if have this view: http://imageshack.us/photo/my-images/690/screenshot20120304at181.png/ Mar 04 17:22:05 and i want to put admob to the red x Mar 04 17:22:19 i have this implementation for the admob: http://pastebin.com/Z3C2P26h Mar 04 17:22:38 I don't think admob does vertical banners Mar 04 17:22:49 yeah, that indeed Mar 04 17:23:03 but maybe i thought i can place the admob as the other view Mar 04 17:23:09 cant remeber how its named Mar 04 17:23:14 If you're using a compound drawable (or whatever the ImageView TextView combination is called), is it possible to have the drawable scaled to the height of the TextView without manually scaling the asset? Mar 04 17:23:15 actually im using landscape Mar 04 17:23:54 t0mless well i do want my app to be in the list when i share something from say the gallery app Mar 04 17:24:18 so the only question ist if i can mix up screen orientation settings within one screen Mar 04 17:27:05 danieldeusing: well,, you can embed, for example, a horizontal linear layout into a vertical layout Mar 04 17:28:04 well but im having landscape view, and how can i say to the admob component to be in the other direction ? :D Mar 04 17:28:35 do this "YO ADMOB! YEAH YOU! TURN 90 DEGREES THAT WAY" Mar 04 17:37:35 is there a way for me to let WebView display an image that I have in /assets ?? Mar 04 17:38:00 In addition to a web page or just by itself? Mar 04 17:38:15 just by itself. i don't mind adding some html tags aroudn it though Mar 04 17:38:36 I think that's what you'll have to do Mar 04 17:38:38 i just want something to zoom a picture Mar 04 17:39:26 I want other services to be able to ask my app if it is currently recording a video - and I can return true/false to it. How is this done in Android? Mar 04 17:40:16 cr5315 but how do i 'link' to it? what's the resulting path+filename Mar 04 17:40:20 WebView wants an url Mar 04 17:40:41 Hold on, I know this. Let me look it up real quick Mar 04 17:41:21 is there a reason why you cant just use a canvas and drawimage? Mar 04 17:41:31 Give it the url file:///android_asset/index.html Mar 04 17:41:50 cheers i'll try that Mar 04 17:42:07 BrockSamson i could, but then i'd have to handle swipes and pinches and such Mar 04 17:42:48 xorgate, image.png might work but i'm not sure Mar 04 17:42:50 i see, yeah Mar 04 17:42:54 rather than index.html Mar 04 17:45:37 cool that works, cheers cr5315 Mar 04 17:46:01 i'll just put some html aroudn it to center the pic Mar 04 17:47:33 Is there a way to use NumberPicker in 2.3.3? Mar 04 17:47:47 DrPenguin: you could probably backport the code fairly easily Mar 04 17:47:55 >_>; Mar 04 17:48:33 I would not know where to start Mar 04 17:48:44 Can somebody tell me if android supports Java 7? Mar 04 17:49:15 DrPenguin: source.android.com Mar 04 17:50:07 Hey guys, so I'm building ICS on a machine with 4Gb of ram, but during the build my ram usage doesn't go above 1.8, is that a problem? Mar 04 17:50:14 DrPenguin I believe SimonVT did packport the number picker Mar 04 17:50:46 edude03: did it build successfully? Mar 04 17:50:47 t0mless: if he did, that would be fantastic.. Im alreayd using it for an app I am making and I would hate to have to cut it out because Gingerbread doesnt have it Mar 04 17:51:58 evancharlton well 'successfully' but yeah :) Mar 04 17:52:01 .. seriously. I am f*cking tired of the source website. No matter what OS I use, the instructions never work Mar 04 17:52:19 DrPenguin: https://github.com/SimonVT/android-numberpicker Mar 04 17:52:29 MalRD: thanks Mar 04 17:53:28 edude03: seems like it's not a problem then :P Mar 04 17:56:45 hey guys.. I'm trying to rebuild a toolchain and got problems with ndk/build/configure (target arch ARM).. configure complains "package expat-2.0.1 does not exist" Mar 04 17:56:58 anyone? Mar 04 17:57:17 lov: are you around? Mar 04 17:57:34 guess not... Mar 04 18:02:34 evancharlton well I was hoping I could speed up my builds it's not a big deal but it takes a bit under 2 hours Mar 04 18:03:06 edude03: I would send an email to the android-building (I think that's it, anyway...) Google Group Mar 04 18:03:45 Sounds good Mar 04 18:03:48 thanks evancharlton Mar 04 18:03:55 no problem Mar 04 18:15:15 t.t i have some html on a website to center a bitmap, that gets displayed fine in my WebView. But when i use the same code in a String and call .loadDataWithBaseUrl it shows something else >.< Mar 04 18:17:24 perhaps the webview does some character espacing ? Mar 04 18:17:28 escaping* Mar 04 18:18:18 Ravenheart what do you mean? Mar 04 18:18:58 well you know how you can't have < > and such characters Mar 04 18:19:05 as in text Mar 04 18:19:31 i'm saying the webview MIGHT be internally doing something different when loading a webpage vs loading a string Mar 04 18:21:26 Hello when i try to use NativeContentProvider in one of my activities using LIstviews, i get this error : Mar 04 18:21:47 the method OnCreate must override/implement a supertype method ! Mar 04 18:22:02 why is this happened can anyone help ? Mar 04 18:22:25 show some code Mar 04 18:23:17 my code is here: http://pastebin.com/XKQmrXSS Mar 04 18:23:42 hey y'all Mar 04 18:23:49 i get the error while declare a nativeContentProvider Mar 04 18:23:54 *declaring Mar 04 18:24:00 I'm having a hard time getting my webview to render to bitmap Mar 04 18:24:04 anybody have any luck doing that? Mar 04 18:24:09 arkiver you need to implement some methods that ListActivity wants Mar 04 18:24:22 /getting a webview to show up as a texture in opengl Mar 04 18:24:23 mheld welcome to the club! Mar 04 18:24:34 xorgate: hmm? Mar 04 18:24:41 my problem is this: https://gist.github.com/1974266 :0 Mar 04 18:24:43 he's having a similiar problem Mar 04 18:24:46 oh! Mar 04 18:24:49 go figure Mar 04 18:27:06 ffuuuu emulator does it properly Mar 04 18:27:37 ahhh Mar 04 18:27:42 the perils of the android Mar 04 18:27:54 man i'm glad i don't do mobile development Mar 04 18:27:59 Where's the best place to start if I want to make a 3D Sphere in an app? Mar 04 18:28:16 an openGL book for beginners Mar 04 18:28:45 I've been looking into using openGL and even made a triangle but I can't find anything on how to make a sphere Mar 04 18:28:58 twbbas, opengl canvas Mar 04 18:29:01 twbbas: yeah, making a sphere is much harder than a triangle Mar 04 18:29:02 make a bunch of triangles at the right places Mar 04 18:29:10 if anybody was curious, here's what I have for code -> http://pastie.org/private/rdvsjv2u4fqx3rlu7de9w Mar 04 18:29:11 there are some tutorials Mar 04 18:29:12 optionally make a loader from say .obj Mar 04 18:29:19 I end up getting a blank bitmap Mar 04 18:29:57 xorgate, But which are those methods ? how do i find out ? Mar 04 18:30:36 and and eclipse not giving me the usual hints to add/implement methods of listView Mar 04 18:30:45 sorry listActivity Mar 04 18:31:06 arkiver my tip: dont use listactivity Mar 04 18:31:40 it's just a bunch of hassle aroudn a normal Activity Mar 04 18:31:48 forcing you to jump through hoops Mar 04 18:33:07 xorgate, awright.. what would u suggest to use to display bunch of name/value pairs ? Mar 04 18:33:33 arkiver you can use a ListView in a normal activity and set an adapter yourse;lf Mar 04 18:33:45 and you can make an adapter to your liking Mar 04 18:33:58 and have full control Mar 04 18:34:15 ohh.. so i shouldnt create a separate class extending listActivity ? Mar 04 18:34:31 just use my existing Activity and create a listview in it, Mar 04 18:34:42 and put an adapter to display my data ? Mar 04 18:34:59 you could do that yes Mar 04 18:35:35 it's not so hard to make your own adapter, but maybe a standard one will do what you need as well Mar 04 18:35:42 i make all of them myself Mar 04 18:37:06 also, why is a webview that I'm creating programatically launching as an activity? Mar 04 18:37:31 is it supposed to do that by default? Mar 04 18:39:01 /is it possible to off-screen a webview? Mar 04 18:39:23 the biggest fail about the android app market, IMO, is the inability to give away your app for free Mar 04 18:39:38 by that, i mean, have a paid app, which you can allow people to redeem for free with a code. Mar 04 18:40:22 itunes has this, although they severely limit it (something like 50 free giveaway codes per app).. google really should make it so that developers can give away their apps to people Mar 04 18:40:28 like reviewers, in contests, etc. Mar 04 18:40:46 the freemium model is better anyways Mar 04 18:40:53 svchost: 50/version, iirc Mar 04 18:41:21 you can always make a login-required "free" version Mar 04 18:41:21 yeah, so if you want 50 more, you have to do an update. you could do an update that literally does nothing i guess Mar 04 18:41:24 but its staill fail more Mar 04 18:41:26 Ravenheart crikey.. if i use ' instead of " it works >.< Mar 04 18:41:38 can always just email your .apk to reviewers Mar 04 18:41:45 it doesnt update Mar 04 18:41:48 if you just give them an apk Mar 04 18:41:52 its not registered to your account Mar 04 18:41:58 thats a shitty way to do it Mar 04 18:42:09 google just needs to stop being idiots and fix it Mar 04 18:42:28 it should be an incredibly simple thing to do Mar 04 18:42:30 yeah Mar 04 18:42:34 they should allow it for sure Mar 04 18:42:42 i wish i could speak to google people Mar 04 18:42:49 so i could tell them to do this, lol Mar 04 18:42:59 i'm sure they're well aware of it Mar 04 18:43:00 you can speak to anyone you want, whether they hear you or listen is another story Mar 04 18:43:09 i don't think you're the first person ever to think this Mar 04 18:43:11 now it's just ugly as hell >.< Mar 04 18:43:21 xorgate, Thanks alot :) ill try that ! Mar 04 18:43:30 svchost: I think the reason it's limited by Apple / missing by Google is to prevent people selling their app via channels where they don't get a cut, then still using the market for distribution & updates. Mar 04 18:43:50 Like setting up your own billing service and just giving people codes for the market. Mar 04 18:44:04 probably, yes Mar 04 18:44:36 I think Apple's model is fine - it allows most activities that require code that aren't "selling it elsewhere" Mar 04 18:45:25 jorgenpt: is it really cutting into their bottom line? Mar 04 18:45:37 if i make my app free, i get free distribution on android market Mar 04 18:45:38 so.. Mar 04 18:45:43 i just want to be able to have giveaways.. Mar 04 18:45:47 and i cant.. Mar 04 18:45:52 i just want an easy way to beta test :) Mar 04 18:47:50 but first i have to figure out how the hell to manage a cache of downloaded resources Mar 04 18:48:11 i can think of another way to do it, that google wont stop Mar 04 18:48:24 make a coupon version of the app that you always update along side the non-coupon version Mar 04 18:48:30 and make your own coupon system Mar 04 18:49:10 freemium + licensing server Mar 04 18:49:21 or have a system which requires registration/login to use the app, but dont have the registration system in the free app, just the login Mar 04 18:49:36 so you just give them a login if you want to give away a copy Mar 04 18:49:38 why reinvent the wheel when what you want already exists Mar 04 18:49:48 i dont want a free app Mar 04 18:49:55 i dont want to give away any portion of my app to the masses Mar 04 18:49:58 i dont want a trial version Mar 04 18:50:08 i dont want them to be able to access it unless they buy it or i give it to them Mar 04 18:50:13 yeah Mar 04 18:50:16 so it's free to download Mar 04 18:50:26 and it checks the licensing server for purchase Mar 04 18:50:43 where you can give licenses to accounts for free, if you so choose Mar 04 18:50:48 and when they clear the cache on their app? Mar 04 18:50:58 then it checks the licensing server Mar 04 18:51:01 or uninstall/reinstall? Mar 04 18:51:04 then it checks the licensing server Mar 04 18:51:06 install on a different server? Mar 04 18:51:08 then it checks the licensing server Mar 04 18:51:10 how would it know? Mar 04 18:51:10 searching game programmer, please /q me Mar 04 18:51:12 how would it know Mar 04 18:51:13 how would it know Mar 04 18:51:18 without a login system Mar 04 18:51:21 do you know how the licensing server works? Mar 04 18:51:22 how would it know if you legitimately bought it Mar 04 18:51:29 without a login Mar 04 18:51:38 its tied to the Market account Mar 04 18:51:40 google it Mar 04 18:51:42 if the app is free, anyone can download it Mar 04 18:51:44 via the android market Mar 04 18:51:44 JakeWharton I looked through SherlockFragmentActivity last night Mar 04 18:51:50 if the app is free, anyone can download it Mar 04 18:51:51 couldn't find why Mar 04 18:51:53 svchost, yes but they can't use it Mar 04 18:52:07 HOW WOULD YOU KNOW IF THEY PURCHASED IT WITHOUT THEM HAVING A LOGIN Mar 04 18:52:16 jesus Mar 04 18:52:17 nevermind Mar 04 18:52:20 it checks the server for WHAT?! Mar 04 18:52:23 svchost, they would have a login Mar 04 18:52:25 you give them a login Mar 04 18:52:34 is that not what i said? Mar 04 18:52:37 no Mar 04 18:52:37 you have a paid version people buy, and a free version that only works if they have a login Mar 04 18:52:38 The bug appears ONLY with SFA, not fragment activity from support lib, not sherlockactivity, not activity Mar 04 18:52:40 he is trying to say i should be doing something different Mar 04 18:52:45 thats exactly what i said. Mar 04 18:52:47 I was convinced it was with saveActionModes Mar 04 18:53:02 searching game programmer, please /q me Mar 04 18:53:02 t0mless, it happens with SherlockActivity too Mar 04 18:53:03 two apps.. registration capabilities on app A.. no registration capabilities on app B Mar 04 18:53:05 but only on pre-4.0 Mar 04 18:53:15 JakeWharton...buggy buggy bug Mar 04 18:53:17 but SFA uses the FA from support lib, which checks if > HC and then uses the native invalidateMenu Mar 04 18:53:34 therefore, unless you buy app A, or are given a login, you cannot use either app Mar 04 18:53:42 that's dumb Mar 04 18:53:46 but it solves your "problem" Mar 04 18:54:13 your suggestion doesnt make sense and it doesnt allow me to charge them via the android market Mar 04 18:54:19 yes it does Mar 04 18:54:23 how so? Mar 04 18:54:27 you have a paid version on the market Mar 04 18:54:32 that everyone can buy Mar 04 18:54:34 how does the person i want to GIVE the app to get the app? Mar 04 18:54:42 if its not free Mar 04 18:54:48 you give them a login to the "free" version Mar 04 18:54:49 you enable their account on the licensing server Mar 04 18:54:52 no Mar 04 18:54:53 no logins Mar 04 18:54:55 but the "free" version only works with a login/password Mar 04 18:54:57 two apps.. registration capabilities on app A.. no registration capabilities on app B Mar 04 18:54:58 that's a pain Mar 04 18:54:59 thats what i just said Mar 04 18:55:00 two apps Mar 04 18:55:05 one free, one paid Mar 04 18:55:07 yes, 2 apps Mar 04 18:55:10 free=no registration abilities Mar 04 18:55:11 free app, licensing/in-app payments Mar 04 18:55:14 pay=registration abilities Mar 04 18:55:24 that's a horrid user experience Mar 04 18:55:37 ive never even seen in app payments Mar 04 18:55:41 im lucky, in that my app requires server access to begin with Mar 04 18:55:46 and besides Mar 04 18:55:49 they still have to pay Mar 04 18:55:54 so we're making it free, but to access beta abilities you need the login/pass Mar 04 18:55:56 i cant give away free shit on the in-app payment system, can i? Mar 04 18:56:05 you can, via the licensing server Mar 04 18:56:12 you just mark someone as enabled Mar 04 18:56:19 so i can give away (to selective users) free paid in-app stuff? Mar 04 18:56:39 then why the fuck cant i just give away an app with a coupon system? this is my point. it should exist. Mar 04 18:56:53 because you can't Mar 04 18:57:00 go complain on the regular Market channels Mar 04 18:57:00 it should exist, but it doesnt Mar 04 18:57:08 no one from Google will hear you here Mar 04 18:57:23 lol, you dont know taht Mar 04 18:57:28 i bet they hang here incognito Mar 04 18:57:39 It would be nice if it did exist, I had that thought myself, but I don't think bothering them will have much effect, I'm sure a lot of people already have asked for it Mar 04 18:57:45 they're not really incognito Mar 04 18:57:53 they're just going to ignore you because they're not part of the Market team Mar 04 18:58:12 well the market team is clearly filled with idiots, because the android market is kind of awful Mar 04 18:58:22 you should apply to Google then Mar 04 18:58:23 take it over Mar 04 18:58:46 or head on over to #iphone-dev Mar 04 18:59:01 Hey JakeWharton :) Mar 04 18:59:03 Done driving? Mar 04 18:59:08 SimonVT, all moved in Mar 04 18:59:12 with internets! Mar 04 18:59:16 Hah, nice Mar 04 18:59:25 Made sure it was set up before taking the drive? :p Mar 04 18:59:36 yeah, i was here for about 24 hours without it though Mar 04 18:59:40 almost went insane Mar 04 18:59:46 iphone is even worse Mar 04 18:59:47 Well Mar 04 18:59:50 Tethering :p Mar 04 18:59:53 used the opportunity to backport the dropdown Spinner Mar 04 18:59:57 yeah that's basically what I did Mar 04 18:59:59 Haha Mar 04 19:00:02 Time well spent Mar 04 19:00:05 using git over a cell connection is terrible Mar 04 19:00:26 Hey, does anyone know how secure the android private database is for an application? Mar 04 19:00:38 I was thinking about basing a high scores list on it, storing it there and syncing to a server Mar 04 19:00:43 Yeah, I can imagine Mar 04 19:00:46 their market is superior in some ways, but in most ways, the entire apple ecosystem is shit Mar 04 19:00:47 Can the user mess with this database directly? Mar 04 19:00:47 NutterzUK, secure enough unless the user has a rooted phone Mar 04 19:00:58 NutterzUK, you'll want to verify on the server somehow Mar 04 19:01:34 JakeWharton: thanks. I wonder the best way to do that, their score can change as they play offline both up and down, I don't want to restrict offline play. Mar 04 19:01:55 I'm thinking perhaps I should have the leaderboard, but exclude rooted phones,.. but.. I don't really want to do that Mar 04 19:02:11 NutterzUK, the app is running remotely which means no matter what there is the opportunity for someone to compromise it Mar 04 19:02:12 Is there anywhere I can put some value that those with rooted phones can't mess with? Mar 04 19:02:20 the best you can do is try to make it as secure as possible Mar 04 19:02:24 nope Mar 04 19:02:34 root means you're god in the scope of a phone Mar 04 19:02:42 *you're a god Mar 04 19:02:45 Yeah.... both :) and.. for me :( lol Mar 04 19:02:56 not to mention that nobody is prevented from simply spoofing the data signal itself, and sending whatever they want from their computer Mar 04 19:03:04 That's very true Mar 04 19:03:16 ok... so perhaps I just let people cheat if they want Mar 04 19:03:23 but... try to make it secure Mar 04 19:03:28 so realistically you need to have some sort of check to at least make sure the scores are possible at that stage in the game Mar 04 19:03:53 It's a gambling game, unfortunately it would be possible to win the jackpot 5 times in a row if they were hugely lucky Mar 04 19:03:53 because obviously if the max score possible at a certain level is 1 million, and somnebdoy sends that they got 8 billion, something is up Mar 04 19:04:01 ( not real money gambling of course ) Mar 04 19:04:02 hmm Mar 04 19:04:26 I was thinking I could scatter a few numbers around to make it harder to cheat Mar 04 19:04:58 such as... number of spins so far, if number of spins * jackpot > score... mark as cheat. And maybe store a seperate file with the score also, so if it differs from the DB then class as cheat Mar 04 19:05:21 Would make it a bit harder, but nowhere close to impossible Mar 04 19:05:39 And I wouldn't want to risk calling a non-cheating player a cheat Mar 04 19:05:51 is there any game programmer? Mar 04 19:06:00 loveya, there are tons Mar 04 19:06:02 loveya, lots Mar 04 19:06:04 just ask here Mar 04 19:06:13 but stop asking for people to PM you Mar 04 19:06:22 how I need to ask? Mar 04 19:06:27 this isn't a job board or a recruiting center Mar 04 19:06:29 just ask your question Mar 04 19:06:30 JakeWharton: thanks for info Mar 04 19:06:30 With a question mark Mar 04 19:06:44 What's up loveya, can we help? Mar 04 19:07:20 canadiancow, fix them Mar 04 19:07:31 NutterzUK: thanks for response, wanna start programm a game Mar 04 19:07:44 but i dont know how to really start Mar 04 19:07:57 Do you have any experience with Android already? Mar 04 19:08:00 developer.android.com Mar 04 19:08:02 Or any idea of what game you want to make? Mar 04 19:08:06 There are some really good tutorials online Mar 04 19:08:39 ^ The address BrockSamson gave is good. There are also some tutorials specific to game development, a lot on youtube actually, but you will need to already have some knowledge of java Mar 04 19:08:40 I have only android phone, nothing more Mar 04 19:08:52 Have you studied java? Mar 04 19:09:11 do you know how to program, loveya? Mar 04 19:09:20 NutterzUK: no, just watched some videos Mar 04 19:09:35 svchost: i dont know how Mar 04 19:09:39 ;/ Mar 04 19:09:47 t0mless, i override the invalidation of FragmentActivity Mar 04 19:10:16 but you then call the super class Mar 04 19:10:17 start there then.. learn to program. java is a decent programming language to learn, IMO.. but many would probably disagree.. depends what you want out of programming, i guess Mar 04 19:10:18 loveya: that should be where you want to start. Learning basic java. It's extremely time consuming so you need to have the time and commitment for it. Mar 04 19:10:33 JakeWharton: Figured out the reason showAsAction fails on GB yet? Mar 04 19:10:37 Kinda strange Mar 04 19:10:53 Nah I hadn't even looked into it after you fixed it Mar 04 19:11:03 ...you did fix it right? Mar 04 19:11:08 Yeah Mar 04 19:11:16 yeah the TypedValue thing Mar 04 19:11:18 clever solution Mar 04 19:11:26 If it was not defined, it tried to load a drawable Mar 04 19:11:36 that was weird Mar 04 19:11:42 And it fails cut it can't parse a res reference as an int Mar 04 19:11:44 loveya: tons of resources to learn to program.. you might try itunes university if you learn better in a class-like setting.. they probably have basic programming lectures on there for new people. Mar 04 19:12:04 otherwise there is so much text-based learning material out there Mar 04 19:12:08 NutterzUK: , svchost , Im searching some basic java terms etc., Mar 04 19:12:12 Now I'm working on some strange bug EddieRingle inadvertently stumbled upon Mar 04 19:12:31 :) Mar 04 19:12:38 unless you want to go really basic, loveya, its more than just some basic terms Mar 04 19:12:41 JakeWharton: wait, _both_ of them? Mar 04 19:13:06 What kinda bug? Mar 04 19:13:13 svchost: i was hopping its basic basic terms Mar 04 19:13:26 Basically you enable an action view for an item, invalidate the menu to something else, then invalidate again to get the original menu item back (the kind of action paging a ViewPager would make) and you get both the action view and the icon displayed Mar 04 19:13:41 I dont really understand how to programma game in eclipse with whote Thread, Main view etc Mar 04 19:13:59 unfortunately programming is more complex than that. they wouldnt pay people as much money as they do is programming wasnt complicated. Mar 04 19:14:00 loveya, my tip is this: try something simple first Mar 04 19:14:10 Blergh, menu invalidation is evil Mar 04 19:14:14 you really have to understand a lot to do a game Mar 04 19:14:14 SimonVT, https://github.com/github/gauges-android/pull/13#issuecomment-4307695 Mar 04 19:14:22 SimonVT, scroll up for screenshot Mar 04 19:14:33 BrockSamson: do you have some suggestions>? Mar 04 19:14:40 haha Mar 04 19:14:43 for some simple Mar 04 19:14:56 to start with android, i found this tutorial called "brew time" or "brew clock" or something Mar 04 19:15:01 that gives the basics of android stuff Mar 04 19:15:16 its a good start, and then you can search for a tutorial about canvas Mar 04 19:15:21 and how to do drawing to canvas Mar 04 19:15:46 loveya: you need to learn to crawl before you learn to swim though Mar 04 19:15:55 hey guys, I've a bin file I added in to raw folder, how I can read from it? Mar 04 19:15:58 BrockSamson: thanks, I will search these suggestions Mar 04 19:15:59 if you dont understand programming, forget about android for now, and focus on programming basics. Mar 04 19:16:04 http://introcs.cs.princeton.edu/java/home/ - try something like that Mar 04 19:16:15 yeah, but something like brewclock is simple enough to try learning programming from Mar 04 19:16:24 djx, you're probably better off putting it in assets/ Mar 04 19:16:26 if (DEBUG) Log.d(TAG, "[onPreparePanel] dispatching to native with mule"); <-- not getting called Mar 04 19:16:27 svchost: sorry, what is that? Mar 04 19:16:27 JakeWharton: Sounds strange that it can happen on ICS with ABS, but not without Mar 04 19:16:30 start with a hello world app.. work your way up.. learn about statements and loops, data types, structures, algorithm design Mar 04 19:16:52 SimonVT, it happens on ICS if you use SherlockFragmentActivity but change nothing else Mar 04 19:16:53 very odd Mar 04 19:17:00 loveya: mind if i msg you? Mar 04 19:17:29 svchost: sure, Mar 04 19:17:46 JakeWharton, ok I put it in assets, and know what? Mar 04 19:17:51 know*now Mar 04 19:18:16 now google "android read assets" Mar 04 19:18:23 there's a bunch of examples Mar 04 19:18:24 and documentation Mar 04 19:19:29 ok ok, but my principal question is if I need to declare it on a xml or something Mar 04 19:20:39 I'm trying to make a edittext and button placement to accommodate all types of phones but I noticed that on my phone, the edittext box is rectangular and on other phones its rounded corners. How to handle this? Mar 04 19:21:20 QubeZ: On ICS it has no corners! Mar 04 19:21:32 rounded right? Mar 04 19:21:53 JakeWharton, sorry but ther's a red cross on my folder assets eclipse doesn't let me compile my project :S Mar 04 19:22:12 button placement is getting annoying on this simple form: edit box + button Mar 04 19:22:19 shouldn't be this frustrating Mar 04 19:22:20 t0mless, on ICS? It gets called for me on pre-4.0 Mar 04 19:22:34 not getting called on ICS Mar 04 19:22:37 QubeZ: I think I mentioned this already, but if you want this kind of alignment, provide custom drawables for edittext and button Mar 04 19:22:40 qubez, thats why one of the first things i did with my app was to switch ot manual drawing in canvas :) Mar 04 19:22:40 with SherlockFragmentActivity Mar 04 19:22:41 djx, assets is a top level folder, doesn't go under res/ Mar 04 19:22:42 Else you're not going to get it Mar 04 19:22:48 ohh Mar 04 19:23:13 BrockSamson: manually drawing the edit box? Mar 04 19:23:28 im ok with that, are there recipes for that already im assuming. I dont want to reinvent the wheel. Mar 04 19:23:54 hi, do you know any programmatic web browser working in android? something similar to httpunit? I've been trying to make httpunit work including some openjdk classes, but still get stucked with some classes that haven't an open source alternative Mar 04 19:24:08 actually, im manually drawing everything, and im subclassing application not activity Mar 04 19:24:21 but tahts a whole other story, due to my app Mar 04 19:24:47 t0mless, i wonder if it's getting called with FEATURE_ACTION_BAR instead of FEATURE_OPTIONS_PANEL Mar 04 19:25:08 ill do some research but im not sure i want to force my edit text's to be square when the user's phone has it rounded everywhere else. That would not give them a good feeling of home. Mar 04 19:26:35 I has a question that's hard for me to phrase. Mar 04 19:26:57 I want to use the 3D capabilities of the Evo-3D in my app, but not-use them for other phones. Mar 04 19:27:22 If I target the HTC SDK in my build, will that make my app require 3D support? Mar 04 19:27:46 JakeWharton added a log inside the if, and that get's fired Mar 04 19:28:00 but the line right below it result = listener.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu); Mar 04 19:28:13 does not seem to be triggering the right menu callback Mar 04 19:28:22 :( Mar 04 19:28:27 listener? Mar 04 19:28:35 what file is that in? Mar 04 19:28:38 you cast the mActivity to listener Mar 04 19:28:43 ActionBarSherlock.java Mar 04 19:29:49 hmm Mar 04 19:30:11 JakeWharton i'll fix a bug if you get me a free ticket Mar 04 19:30:45 infact, it seems like none of these methods in SFA are getting called Mar 04 19:31:07 is there some way I can have my app use/target the HTC SDK for 2.3.3 and still support non-HTC devices? Mar 04 19:31:18 (I want 3D on the Evo-3D, and 2d on everything else) Mar 04 19:31:39 what is required for 3d support? Mar 04 19:31:41 hiraghm, cant you make the program for 2d, and manually check if the 3d support is there via code? Mar 04 19:31:49 without any requirement Mar 04 19:32:11 but in order to support the 3d, won't I have to target the HTC api? Mar 04 19:32:51 wish there was some practical way I could contact the HTC devs about this. Mar 04 19:32:56 hi Drakonite Mar 04 19:33:00 what do you think? Mar 04 19:33:21 I think that is a horrible idea. Mar 04 19:33:24 what are we talking about? Mar 04 19:33:41 hehe Mar 04 19:34:54 Drakonite, I'm trying to figure out how to support the Evo-3D's 3D capability, but still be able to support other devices in 2D Mar 04 19:35:31 Do I need to target the HTC api? And if so, will it make my app incompatible with any non-HTC devices? Mar 04 19:35:55 well, obviously I need to use the HTC api, but I'm talking about setting up the project in Eclipse Mar 04 19:35:56 im sure you can find a tutorial about the 3d stuff that will say if you need to do anything specific to use it Mar 04 19:36:13 should be able to check if the device supports it and use it or not from that Mar 04 19:36:31 yeah, there are example programs on the HTC dev site. Just not too sure they care about compatibility with other devices. Mar 04 19:36:34 Hiraghm: http://developer.android.com/resources/articles/backward-compatibility.html Mar 04 19:36:34 and if there is a problem.. you can make two different builds and use the multiple apk support Mar 04 19:36:39 Hiraghm: should be the same concept as that Mar 04 19:36:46 Drakonite, multiple apk support? Mar 04 19:37:07 Hiraghm: note the "wrapper class" technique Mar 04 19:37:25 you can publish multiple apk on the market that filter differently, so that different devices download different apk when then download your app Mar 04 19:37:34 I didn't know that. Mar 04 19:37:40 thanks all. Mar 04 19:37:59 htc should be showing how to handle compatibility though, they have a ton of devices out there they'd like people to support :P Mar 04 19:40:36 so here is my question.... my app downloads images and sounds and stores the byte[] arrays as files, which are then read and decoded when the resources are needed. currently each object that requires a resources does the decoding itself, and stores its own instance of the decoded object. Mar 04 19:40:55 JakeWharton is there some reason why the ActionBarNative would bypass the activity onCreatePanelMenu ? Mar 04 19:41:17 because none of these log calls are being triggered in SherlockFragmentActivity on ICS Mar 04 19:41:50 as far as I can tell by following the logic, this SHOULD be getting called Mar 04 19:41:51 but it's not Mar 04 19:42:05 i want to change this so that i only decode and instance the resource one time, then share that instance across every object taht needs to use it, but i cant decide how. separate arrays of bitmaps and mediaplayers, a combined multi-dimensional array with multiple kinds of objects, an array of resource classes that store the related object within them? Mar 04 19:42:11 hi! Do you guys know any way to know if a device is moving WITHOUT comparing its locations? I mean, using the accelerometer or something like that, is it possible? Mar 04 19:42:47 when was Number Picker introduced? 3.0? Mar 04 19:43:04 accelerometer is more to determine if it's being twisted/turned, not for physcial location movement Mar 04 19:43:24 DrPenguin I imagine earlier... DatePicker just uses 3 NumberPickers Mar 04 19:43:27 and that's been around Mar 04 19:43:40 t0mless: well its not in Gingerbread so it is definitely not in 2.3.3 Mar 04 19:43:51 NumberPicker: since Api level 11 Mar 04 19:44:00 right, thats Honeycomb Mar 04 19:44:02 must have been internal before that Mar 04 19:44:30 because DatePicker has been around since API 1 Mar 04 19:44:33 k.. gonna have to make my own then Mar 04 19:44:37 t0mless: did you make JakeWharton ragequit? Mar 04 19:44:40 @tomless: that's what I thought, I'm trying to "predict" if a user is going to need a Handoff or not... so the only way is checking the user's location and see if it has changed? Mar 04 19:44:53 Apparently. Mar 04 19:45:33 mohadel there is a androd dev blog post about using passive location updates Mar 04 19:45:43 JakeWharton Y U NO STAY CONNECTED Mar 04 19:45:43 <`teh1> anyone here know how to avoid views squishing when they hit the right side of the screen? Mar 04 19:45:59 need a new router Mar 04 19:46:12 been running a dd-wrt build from about 5 years ago Mar 04 19:46:23 on a linksys? Mar 04 19:46:30 yeah Mar 04 19:46:33 hrm Mar 04 19:46:42 those are normally pretty stable for like ages Mar 04 19:46:50 anyway Mar 04 19:46:55 Does anyone know if SL4A is robust enough to run my IRC bot for multiple days? Mar 04 19:46:59 did you see my mesages before you d/ced? Mar 04 19:47:13 no Mar 04 19:47:33 is there any reason why ActionBarNative would bypass the activity in it's callbacks? Mar 04 19:47:33 has anyone heard anything about google io? Mar 04 19:47:44 canadiancow|work, it's a conference Mar 04 19:47:54 t0mless: ok, thanks! I'll check it out! I was just wondering if there was a sensor or something to detect if the user was accelerating (in a car, for example), but apparently there isn't... Mar 04 19:48:03 t0mless, no Mar 04 19:48:07 because by following this logic... this onCreatePanelMenu should be getting called Mar 04 19:48:07 <`teh1> t0mless: have you ever experienced this? Mar 04 19:48:09 but it's not Mar 04 19:48:10 <`teh1> i cant be the only one Mar 04 19:48:29 none of the SherlockFragmentActivity log calls are showing on ICS Mar 04 19:48:36 JakeWharton: fixit Mar 04 19:48:43 I'M TRYING!!!! Mar 04 19:48:46 <`teh1> if you programmatically move a layout against the right side of the screen, it squishes before getting pushed off, whilst the left side just get pushed off Mar 04 19:48:47 :'()((((( Mar 04 19:48:49 woah mouth Mar 04 19:48:52 <`teh1> i want the right side to behave like the left side Mar 04 19:48:53 lol Mar 04 19:49:06 thanks JakeWharton Mar 04 19:49:09 appreciate it Mar 04 19:49:19 anything for the cow Mar 04 19:49:54 here's something even better JakeWharton... I've just been having my tablet sit in the dock for testing it, so it doesn't sleep when plugged in... and just looked over at it Mar 04 19:50:02 the action mode was still going, but the duplicates were gone Mar 04 19:50:13 ^import os Mar 04 19:50:19 hmm Mar 04 19:50:23 when will i learn not to copy/paste code >.< Mar 04 19:50:40 ^identify Mar 04 19:50:44 xorgate: If you need to merge code into someting, juse meld ^^ Mar 04 19:50:55 ^eval os.uname() Mar 04 19:51:02 crap Mar 04 19:51:05 ^shutdown Mar 04 19:51:14 wtf are you doing cdh473 Mar 04 19:51:16 cdh473, don't test your bot in here Mar 04 19:51:19 int scaledHeight = (int) (mScaleFactor * mImageWidth); boohoo Mar 04 19:51:23 i was showing something Mar 04 19:51:42 i got my bot running on Android honeycomb Mar 04 19:51:48 in python Mar 04 19:51:53 great, don't spam us with your tests Mar 04 19:52:19 well my question was is SL4A stable enough to host that script for days on end? Mar 04 19:52:21 JakeWharton going to leave this menu going and see if it gets rid of the action modes on it's own Mar 04 19:52:46 cdh473 maybe if your host device never loses data connection Mar 04 19:52:58 afk Mar 04 19:53:04 t0mless++ Mar 04 19:53:07 darn it Mar 04 19:55:07 JakeWharton: also, on the topic of IDEs; both IntelliJ and Eclipse both suffer from the same fundamental issue, IntelliJ just had better organization so I've stuck with it Mar 04 19:55:26 Im trying to work on an intent which starts another listactivity .. but it keeps crashing.. Mar 04 19:55:36 <`teh1> really? no one has experienced this problem? -_________- Mar 04 19:55:37 the trace is here: http://pastebin.com/6iN1kZ2P Mar 04 19:56:00 NULL pointer exception i cant figure out how to remove it.. everything seems fine.. Mar 04 19:57:04 the code: http://pastebin.com/JhdVrC1x for the activity to be started Mar 04 19:57:05 http://pastebin.com/JhdVrC1x Mar 04 19:57:25 can anybody help figure out the prob ? Mar 04 19:59:32 arkiver getListView returns null because there is no view at all. you need to setContentView Mar 04 20:00:27 <`teh1> xorgate: don't suppose you are familiar with the bit about relativelayouts collapsing to the right side of the screen? Mar 04 20:00:53 <`teh1> no mention about it anywhere on google Mar 04 20:00:56 <`teh1> fucking weird Mar 04 20:00:58 xorgate, but i am using ListActivity . Mar 04 20:01:00 'the bit' ? Mar 04 20:01:12 <`teh1> i explained the bit already Mar 04 20:01:18 arkiver: you still need a view to put all that data in dude Mar 04 20:01:24 <`teh1> layouts scale down when they get pushed against the right side of the scrreen Mar 04 20:01:27 i mean, you have nothing there to show the listview Mar 04 20:01:36 listactivity makes its own view Mar 04 20:01:44 <`teh1> ^true story Mar 04 20:02:19 <`teh1> xorgate: do i need to show you a video? Mar 04 20:02:24 arkiver: SyncContactsActivity contactAct = new SyncContactsActivity(); are you instantiating an activity ? Mar 04 20:02:36 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/app/ListActivity.java#L308-314 Mar 04 20:03:03 I'm gonna go ahead and guess you're passing a null list of objects Mar 04 20:03:11 SimonVT, Thats another class from where i get the array of string which i want to display in the List. Mar 04 20:03:19 `teh1 eh... Mar 04 20:04:03 arkiver: You shouldn't call it it Activity unless it's an Activity. And if it's an ACtivity, you should never new it Mar 04 20:05:24 SimonVT, Okay.. ill keep that in mind for future reference! Mar 04 20:05:49 But in my case syncContactActivity is an activity Mar 04 20:06:08 and in that activity i am storing a list of names in a string array Mar 04 20:06:21 and i want to display that array contents into a list Mar 04 20:06:35 using ListActivity or any other solution there may be Mar 04 20:08:34 <`teh1> xorgate: im uploading one anyways :P Mar 04 20:08:37 <`teh1> 1 sec Mar 04 20:10:42 SimonVT: yo there? Mar 04 20:11:09 yo dawg? Mar 04 20:11:25 <`teh1> i heard you like macs Mar 04 20:11:30 <`teh1> so i busted all the windows out yo cart Mar 04 20:11:31 Can you help me out for a second? I am trying to use your NumberPicker backport for Gingerbread stuff but I cant get the thing to work Mar 04 20:11:53 Eh, suire Mar 04 20:11:54 sure* Mar 04 20:13:05 Hi, I can't find how to set layout_gravity in code, there is no related method in the doc and Google says setGravity() but this is not for layout_gravity Mar 04 20:13:28 Set the gravity field on layoutparams Mar 04 20:13:36 So, I just made a project to use it, I adde both your project and Jakes nineoldandroids projects to mine as libs, but when I run my project, it crashes. Dont ask for aStack Trace, because Eclipse isnt monitoring the right app Mar 04 20:14:11 Not a lot to go on :p Mar 04 20:14:19 I gave you all that I have Mar 04 20:14:35 Alright, well Mar 04 20:14:40 You're doin' it wrong :P Mar 04 20:15:12 no shit Mar 04 20:16:44 I don't know, not done a whole lot of testing, since I haven't gotten around to using it myself Mar 04 20:18:53 I don't understand how to use layoutParams :/ Mar 04 20:19:18 Does modifying an element in an ArrayAdapter list cause a notifyOnChange event (not an add/remove, but a change to the Object)? Mar 04 20:19:59 no Mar 04 20:19:59 great, cant use your backport then.. Mar 04 20:20:10 <`teh1> Walui: you can pass any type of layout params to anything AFAIK, but different layoutparams will do different things Mar 04 20:20:17 Well, I can't debug if I don't know the error Mar 04 20:20:23 <`teh1> sort of Mar 04 20:20:34 Well I cant give you an error, Eclipse thinks its debugging another application that isnt running Mar 04 20:20:47 <`teh1> layoutparams is stupid IMO Mar 04 20:20:52 You have to pass the type of layoutparams that your parent viewgroup defines Mar 04 20:20:57 <`teh1> should just be able to setSoandso Mar 04 20:21:12 <`teh1> ios has that down :P Mar 04 20:21:33 has anyone seen any kind of proguard plugin that would allow obfuscation of activity names and such? something that scans the manifest? Mar 04 20:22:33 Isn't there really no method to set layout_gravity ? That's weird Mar 04 20:22:59 suppose I have a view in my layout that I want to animate, I'd like to make it expand with a smooth anymation, is there any way to achieve this result? ( Mar 04 20:23:29 Walui, it's in layoutparameters Mar 04 20:24:20 Ok Mar 04 20:24:21 JakeWharton dammit... the DEBUG member was set to false in SherlockFragmentActivity and I didn't notice -_- Mar 04 20:24:32 lolnub :( Mar 04 20:25:13 all the other classes had it set to true Mar 04 20:25:24 makes a lot more sense why none of these logs were firing Mar 04 20:25:51 any one any good with the android contact database, I'm looking for a way to look up all the contacts first name, last name and company name from a certain account in a single query Mar 04 20:26:35 this makes nooooo fucking seeeeeeense Mar 04 20:26:52 aselby11: Where and where parameters in a managed query should do it. Mar 04 20:27:07 the invalidateOptionsMenu is being passed to the native Activity method Mar 04 20:27:21 yet, when using SherlockFragmentActivity, it doesn't invalidate properly Mar 04 20:27:30 but using SherlockActivity it does. Mar 04 20:27:37 or the native Actiivty Mar 04 20:27:40 Activity Mar 04 20:27:48 which is what is being called Mar 04 20:28:01 Per my previous question: if I need to have a List that is notified whenever a property of T is changed, what would the (correct) way to go about doing it be? I've used PropertyChangedSupport in the past, but it doesn't really work with my current model. Mar 04 20:33:05 I don't understand layoutparams... Mar 04 20:33:53 LayoutParams = how you want the view to be placed in it's parent layout Mar 04 20:34:01 simple as that Mar 04 20:34:20 since different layouts have different properties to do that, you need to use the correct one Mar 04 20:34:33 if your view is in a RelativeLayout, use RelativeLayout.LayoutParams Mar 04 20:34:42 It's a linearlayout Mar 04 20:34:51 so use LinearLayout.LayoutParams Mar 04 20:35:25 But then what should I do with it... I don't understand the dox Mar 04 20:35:28 Doc Mar 04 20:35:51 What do you mean? You set it on the view before you add it to the layout Mar 04 20:36:01 and the layout will look at them when it goes to lay it out Mar 04 20:37:21 Walui most times you won't have to use LayoutParams if you're defining your views in xml Mar 04 20:37:33 In fact I want to center the LinearLayout in a scrollview Mar 04 20:37:50 Yes it's what d'id Mar 04 20:37:55 did Mar 04 20:38:08 then you shouldn't need to use LayoutParams at all Mar 04 20:38:11 just modify your xml Mar 04 20:38:30 anything that starts with layout_ is a LayoutParams property Mar 04 20:38:41 No because I want it to be centered at start and then align it to the top later Mar 04 20:39:02 Walui then you should be setting the FrameLayout.LayoutParams on the LinearLayout Mar 04 20:39:11 because Scrollview extends FrameLayout Mar 04 20:39:41 Yes but this is what I don't know how to do Mar 04 20:40:08 You want to set the layout gravity Mar 04 20:40:31 why do you want to center it to the top later? Mar 04 20:41:03 and not just defined in xml? Mar 04 20:41:54 Ok I found how to do it ty (and to answer your question, I want it centered while loading and then put it to the top when the content is added Mar 04 20:41:57 ) Mar 04 20:42:14 Ok... weird Mar 04 20:42:16 but Ok Mar 04 20:42:44 Any ideas on the event bubbling? Mar 04 20:43:21 didn't even see your question MalRD Mar 04 20:43:37 If I need to have a List that is notified whenever a property of T is changed, what would the (correct) way to go about doing it be? I've used PropertyChangedSupport in the past, but it doesn't really work with my current model. Mar 04 20:43:52 How can my fragments communicate with eachother? I'm using tabs at the moment, but I'm rewriting it to use fragments instead. Problem arises when I need information that is loaded for tab#1 before I can proceed in tab#2 Mar 04 20:44:45 MalRD use an interface listener? Mar 04 20:45:18 n20 you can pass information to the parent activity Mar 04 20:45:22 if you must Mar 04 20:46:47 t0mless: I was thinking of that, but seeing that the data is loaded via the network (opening a profile in tab#1, and showing the stats tied to its "soldiers" in #2) it would probably be hard to "time"? Mar 04 20:49:08 t0mless: While I still could manage all the "reloads" in the parent activity Mar 04 20:49:10 have your activity load the data Mar 04 20:49:12 and keep the *data* their Mar 04 20:49:19 t0mless: Guess we're thinking alike Mar 04 20:49:21 t0mless: D Mar 04 20:49:23 t0mless: :D* Mar 04 20:49:24 and just dispatch messages to the fragments Mar 04 20:50:11 How's that done, the dispatching? Any standardized way, or just create a method in my fragment that it can send the relevant data via? Mar 04 20:50:13 :-) Mar 04 20:51:19 create a method in your fragment or use a listener interface Mar 04 20:51:39 <`teh1> xorgate: http://dl.dropbox.com/u/15218301/androidsucks.mov just sayin, why the fuck does it do that? Mar 04 20:53:58 heh Mar 04 20:54:08 <`teh1> cmon now, you can't tell me you've never experienced that issue Mar 04 20:54:14 i have no such issues in my app Mar 04 20:54:29 you .addView() on your mapview? Mar 04 20:54:30 <`teh1> if you move a relativelayout against the right side of the screen it scales Mar 04 20:54:31 <`teh1> try it Mar 04 20:54:43 <`teh1> no it's just a regular relative layout sitting above the map Mar 04 20:54:59 <`teh1> i am doing something similar with a custom number slider thing elsewhere and it does the same thing Mar 04 20:55:10 <`teh1> how do i prevent a relativelayout from flippin a trip like that Mar 04 20:55:34 i can tell you ive never experienced it, because i use a linearlayout Mar 04 20:55:38 <`teh1> ignore the fact that it's above a mapview, that's irrelevant Mar 04 20:55:46 and i attach it to the mapview, not to the layout the mapview is in Mar 04 20:56:06 <`teh1> as i said Mar 04 20:56:07 <`teh1> ignore the fact that it's above a mapview, that's irrelevant Mar 04 20:56:15 <`teh1> ignore the mapview alltogether Mar 04 20:56:34 <`teh1> the layout should not get scaled when pushed against the right side of the screen Mar 04 20:56:45 <`teh1> how do i stop that from happening? Mar 04 20:56:47 clearly it's relevant cause you use it to determine where to draw your layout, no? Mar 04 20:57:22 <`teh1> yes but i am moving around layouts elsewhere in the app, without a mapview to determine location and having the same issue Mar 04 20:57:28 <`teh1> so i need to stop that from happening EVERYWHERE Mar 04 20:57:34 <`teh1> hence the mapview being irrelevant Mar 04 20:57:58 so you want a layout that has a widget inside it, but also outside it Mar 04 20:58:06 i dont think thats gonna happen Mar 04 20:58:52 i think your method is flawed in that way Mar 04 20:59:02 <`teh1> no. Mar 04 20:59:13 <`teh1> i want a layout that doesnt squish when pushed against the side of the screen Mar 04 20:59:16 <`teh1> derp derp Mar 04 20:59:21 <`teh1> ive said it a million times Mar 04 20:59:29 yes i know what you want :) Mar 04 20:59:51 There has to be some open source apps that use map pin popups that scroll just fine Mar 04 20:59:51 <`teh1> so how do i stop it from squishing Mar 04 20:59:56 <`teh1> that cant be default behavior Mar 04 20:59:56 go look for them Mar 04 21:00:04 <`teh1> t0mless: map is irrelevant Mar 04 21:00:10 of course it is default Mar 04 21:00:11 <`teh1> said that already Mar 04 21:00:19 But their pop ups work Mar 04 21:00:22 so go see how they do it Mar 04 21:00:24 <`teh1> xorgate: that's stupid and fucked up. who would do that and WHY? Mar 04 21:00:36 <`teh1> t0mless: ignore the map. for the hundredth time, map is irrelevant Mar 04 21:00:37 it makes perfect sense if you ask me Mar 04 21:00:51 <`teh1> pretend like it's a regular layout and im just moving it around the screen with my finger or something Mar 04 21:00:57 you are squishing a layout in another layout.. why would you expect it to be 'outside' its parent? Mar 04 21:01:08 <`teh1> xorgate: how does it make sense? it would only make sense if it had the same behavior on all sides of the screen Mar 04 21:01:25 <`teh1> notice how it doesnt have that behavior on the left side Mar 04 21:01:38 oh yeh now i see it doesnt happen on the left Mar 04 21:01:39 interesting Mar 04 21:01:58 <`teh1> -_- about time Mar 04 21:01:59 <`teh1> lol Mar 04 21:02:10 well, i don't know! Mar 04 21:02:28 <`teh1> everything i said contained "the right side of the screen only" Mar 04 21:02:31 i would expect it to squish on the left as well Mar 04 21:02:31 <`teh1> even the video showed it Mar 04 21:02:42 yep it's true Mar 04 21:02:47 <`teh1> yes , definitely, but the fact that it doesnt is pissing me off, so i just want it to not squish at all Mar 04 21:02:48 forgive me Mar 04 21:02:51 <`teh1> forgiven Mar 04 21:05:47 still looking for any advise on getting a contact query that will return all contact first name, last name and company name for all contacts in a givin account Mar 04 21:08:18 aselby11 have you looked into the ContactsContract Content Provider? Mar 04 21:09:22 http://developer.android.com/reference/android/provider/ContactsContract.html Mar 04 21:10:44 t0mless, fix it?!?!?!?!?!?!?! Mar 04 21:10:47 i took a nap :-x Mar 04 21:10:56 I took a shower -_- Mar 04 21:10:59 <`teh1> xorgate: interestingly enough, only relativelayout does that, so i guess ill have to stic to linearlayout Mar 04 21:11:10 i need to start documentation Mar 04 21:11:15 considering release is in 72 hours Mar 04 21:11:22 where the fuck is mWindow initialized in Activity Mar 04 21:11:25 t0mless: I have the problem is that I havent been able to combine contact info from the .rawcontacts and .contactcontract.company in a single query so it works in a listview Mar 04 21:14:18 ahh found it, bottom of the fucking class Mar 04 21:14:23 link 4427... Mar 04 21:15:12 i'm trying to debug the problem using SherlockFragmentActivity on iCS Mar 04 21:15:26 this way there's a lot less code from ABS being used Mar 04 21:15:41 I'm trying to just follow the logic of everything Mar 04 21:15:54 making sure I'm looking at the correct chain of invalidatePanel crap Mar 04 21:15:54 yeah its' crazy :) Mar 04 21:15:59 haha Mar 04 21:16:06 does EVERYTHING still use PhoneWindow? Mar 04 21:16:49 yes Mar 04 21:16:59 for now Mar 04 21:18:01 and why is half of the internal.policy crap in frameworks/base/policy and the rest in frameworks/base/core Mar 04 21:18:11 i don't know Mar 04 21:18:19 fucking annoying :( Mar 04 21:18:33 SublimeText + ctrl+p and I never notice Mar 04 21:19:50 JakeWharton: you like Sublime ? Mar 04 21:19:56 love it Mar 04 21:20:15 i was thinking about getting a copy when i can afford it. Mar 04 21:20:37 kinds tired of macvim :) Mar 04 21:21:05 60 dollars for a text editor? no thanks! ill stay with gvim Mar 04 21:21:17 "There is currently no enforced time limit for the evaluation." Mar 04 21:21:33 its the old argument, if you use the tool all day long, its probably worth it Mar 04 21:21:44 i used it for about a year before my work bought it for me Mar 04 21:21:50 but i would have bought it myself probably Mar 04 21:21:51 thats why people pay thousands for photoshop Mar 04 21:21:54 once version 2 was released Mar 04 21:22:30 I've been using textpad for non IDE stuff Mar 04 21:22:52 but looking at the android source on github atm Mar 04 21:22:54 not sure why Mar 04 21:23:07 since I have it download Mar 04 21:24:13 JakeWharton last night I was convinced that it had something to do with the menu.saveActionViewSates() in PhoneWindow.invalidatePanelMenu() Mar 04 21:24:26 but that doesn't make sense since it works with normal SherlockFragment on ICS Mar 04 21:24:27 er Mar 04 21:24:30 SherlockActivity Mar 04 21:24:35 yeah Mar 04 21:24:42 i looked at that in ActionBarSherlockCompat.java Mar 04 21:24:49 it's idential Mar 04 21:24:53 identical too Mar 04 21:25:11 I looked at that last night :p Mar 04 21:25:45 i wish there was a better way of visualizing these logs Mar 04 21:25:55 if they were presented in a more hierarchical state or something Mar 04 21:26:39 REALLY PANDORA Mar 04 21:26:43 Nickelback?!?! Mar 04 21:26:44 WTf Mar 04 21:26:46 I hate you Mar 04 21:26:56 t0mless: you got some bad taste in music if NickelBack is comming on Mar 04 21:26:59 was rockin to The Who... Led Zepplin Mar 04 21:27:06 then Nickelback. Mar 04 21:27:12 Fail. Mar 04 21:29:55 would be nice if you could manually add dividers in the log Mar 04 21:31:02 <__nolife> Someone knows a sample app for NDK to make a screenshot ? Mar 04 21:31:24 i know my galaxy has that integrated Mar 04 21:31:35 the last friken thing i never though it had Mar 04 21:32:03 would a /n not do it JakeWharton ? Mar 04 21:32:11 JakeWharton: Write your own log parser :p Mar 04 21:32:39 Wouldnt be difficult to make.. Mar 04 21:32:41 SimonVT, maybe eventually Mar 04 21:33:51 t0mless, i see no problems in the callback lifecycle on ICS Mar 04 21:33:54 everything looks correct Mar 04 21:34:16 it has to be something with caching... Mar 04 21:35:31 gvim is so noob. Mar 04 21:35:39 std0s, what does that do? Mar 04 21:35:57 if you're on windows, install cygwin and putty and use vim properly like muhammad intended Mar 04 21:36:22 pragma_: or, or, cut out windows all together and just use straight up vim on a *nix box Mar 04 21:36:32 or use Notepad like a boss Mar 04 21:36:38 I assumed Windows, because he said 'gvim' Mar 04 21:36:53 No posixy person would actually use gvim Mar 04 21:36:55 pragma_: I said gvim as what Id rather use vs sublime Mar 04 21:37:11 its a newline on *nix Mar 04 21:37:11 true.. I find myself slower when using gvim versus vim vim Mar 04 21:37:40 std0s, nah i mean placing custom markers in the logview Mar 04 21:37:48 so when I perform an action I can mark before and after Mar 04 21:37:53 manually Mar 04 21:38:16 In other news, I gave in and submitted $25 to the Google gods to publish my app on their market instead of only on the googlecode site. Mar 04 21:38:47 use Log.d or whatever.. - not sure I quite get what you're after Mar 04 21:39:23 whats the app pragma_ ? Mar 04 21:39:23 I'm already doing tons of logging Mar 04 21:39:37 I want to manually create dividers between sections of log Mar 04 21:39:45 I've probably missed out on hundreds of thousands of dollars in fees and advertising for not using their market for all this time. Mar 04 21:40:15 can you just use that in your onclick call or something - again - I'm not sure I fully understand Mar 04 21:40:31 JakeWharton: Log.d("foo", "-------------------------------------------"); // insert divider Mar 04 21:40:42 i want to manually add them Mar 04 21:40:45 to the log view Mar 04 21:40:50 post-logging Mar 04 21:40:58 do create sections for easy reference Mar 04 21:41:00 *to Mar 04 21:41:13 i've resorted to just highlighting sections and saving them as files Mar 04 21:41:20 then I can do fun things like diff the files Mar 04 21:41:59 logcat | grep | tee Mar 04 21:42:05 so why would SherlockFragmentActivity cache the action views differently than SherlockActivity? Mar 04 21:42:20 I have no idea Mar 04 21:42:22 maybe a custom Log.d marker which you could parse using whatever Mar 04 21:42:26 there's no caching in the mules Mar 04 21:42:34 post-logging Mar 04 21:42:35 like Mar 04 21:42:41 the logs have already fired Mar 04 21:42:52 i wanted to go back and add dividers between logical sections of logging Mar 04 21:43:06 lern2perl Mar 04 21:43:16 perl sucks Mar 04 21:43:22 says the gvim user Mar 04 21:43:29 does he? Mar 04 21:43:34 where he'd go Mar 04 21:43:39 i didn't hear him say anything Mar 04 21:44:04 you would have to do it at the time the log was written I think - you could always make it send the log to a php site which could make it easier on the eye Mar 04 21:44:09 the internets have confused me again Mar 04 21:44:22 php Mar 04 21:44:27 i'd rather do perl! Mar 04 21:44:41 each to their own lol Mar 04 21:44:42 brainfuck anyone? Mar 04 21:44:49 No thansk Mar 04 21:44:50 only if we cuddle afterwards Mar 04 21:44:52 thanks* Mar 04 21:44:55 agreed Mar 04 21:45:27 t0mless, this makes no sense!~ Mar 04 21:45:38 it has to be something so stupid and obvious Mar 04 21:45:40 the action modes are stored the same way with the FragmentActivity as the parent too.... Mar 04 21:45:55 I keep thinking it's because of the support lib FragmentActivity Mar 04 21:46:13 but I've followed the life cycle through there too Mar 04 21:46:23 and it calls the native window invalidatePanel Mar 04 21:46:26 * evancharlton | Fetching URL: http://developer.lgmobile.com/sdk/android/repository.xml/addon.xml Mar 04 21:46:28 since its HC+ Mar 04 21:46:31 hey LG Mobile: GFY Mar 04 21:47:07 NO ADDONS! Mar 04 21:47:57 JakeWharton: still working on the issue? Mar 04 21:48:01 yes Mar 04 21:48:05 damn you Mar 04 21:48:16 It really makes no sense..... Mar 04 21:48:19 JakeWharton: roberto believes it to be a regression between rc1 and 4.0-wip head Mar 04 21:48:26 yeah i got the email Mar 04 21:48:33 it's not a regression, per say Mar 04 21:48:38 the bug was always there Mar 04 21:49:03 sort of Mar 04 21:49:15 and it can't be in FragmentActivity from support lib... because if I change SherlockFragmentActivity to FragmentActivity it doesn't fail at life Mar 04 21:49:29 so it MUST be in SherlockFragmentActivity... somewhere Mar 04 21:49:38 t0mless, I think it has something to do with ActionMenuView comparing instances when re-using views Mar 04 21:49:44 I'll take a look when I'm done with this silly essay Mar 04 21:50:04 so by using the Mules we are messing with that Mar 04 21:50:05 (essay for ap calc, mind you... how silly is that?) Mar 04 21:50:20 maybe Mar 04 21:50:21 How the hell do you write an essay for math class Mar 04 21:50:31 DrPenguin: that's what I thought Mar 04 21:50:34 EddieRingle: orale cabron, como esta, de donde yo querio taco? what are you doing do that poor ese? Mar 04 21:50:37 this is 2 of 4 Mar 04 21:50:38 "How this stupid class is retarded, in 1k words or less" Mar 04 21:50:38 I've written many essays for math classes Mar 04 21:50:55 One was 25 pages Mar 04 21:51:09 but my degree is in mathematics so..... Mar 04 21:51:26 actually, here's the assignment: https://docs.google.com/open?id=0B3kP5OEGFYUBY3BiaWxXWDJUZ2V4Z0JMYmhDb3J3QQ Mar 04 21:51:45 EASY Mar 04 21:52:10 t0mless: easy? yes. good use of my time? heck no. Mar 04 21:52:18 meh Mar 04 21:52:21 what's it for? Mar 04 21:52:29 I'm assuming a calc class Mar 04 21:52:31 AP Calc Mar 04 21:52:44 It will help for the AP Calc test Mar 04 21:52:45 BC-level, too Mar 04 21:52:57 my school didn't offer BC Mar 04 21:53:04 got a 5 on that fucking test though Mar 04 21:53:07 owned the shit out of it Mar 04 21:53:09 t0mless: where I go it's either AB or BC Mar 04 21:53:13 no regular calc Mar 04 21:53:18 pad the number of pages by using full-page pie-charts and graphs Mar 04 21:53:25 line spacing 1.1 Mar 04 21:53:26 my AP calc was taught by our chem teacher -_- Mar 04 21:53:28 letter spacing 105% Mar 04 21:53:44 paragraph spacing 1pt before, 1pt after Mar 04 21:53:53 margins 1.1" Mar 04 21:53:58 to make things better, our teachers told us we'd be presenting one of these four topics (at random) to a panel of mathematicians Mar 04 21:54:02 font 12.5 Mar 04 21:54:09 there's also a good font that is wide but not tall so it's not as obvious as like Couriour new Mar 04 21:54:17 but I forget the name of it Mar 04 21:54:24 Papyrus Mar 04 21:54:37 as I haven't been in college for like... fucking 6 years Mar 04 21:54:42 papyrus > comic cans Mar 04 21:54:56 t0mless: these classes are only making college sound worse Mar 04 21:55:17 dude, ace that test Mar 04 21:55:28 you can skip a few classes and get units Mar 04 21:55:32 Hey. I'm currently exploring the new features of 3.0 and 4.0...The ActionBar seems to provide a nice framework to handle navigation, The configuration framework provides equally simple configuration for settings screens... But is there part of the framework I should be looking at which provides me easily achievable form generation and validation? Mar 04 21:55:34 in college Mar 04 21:55:37 based on the AP test scores Mar 04 21:55:41 I think there was a study that noted that workplace productivity increased when internal memos and signs taped on doors used comic sans Mar 04 21:55:49 and they're fucking biased against math ones too :( Mar 04 21:56:03 I did a maths essay on simple random walks for my maths degree Mar 04 21:56:10 5 on AP Calc at UCSC = 4units. 5 on AP English/Government/fuckinganythingelse = 8 units Mar 04 21:56:17 it was unfun Mar 04 21:57:28 Trebuchet MS I think was the font I used Mar 04 21:57:39 when I needed an extra page or something Mar 04 21:57:47 t0mless: I'm using Trebuchet MS <3 Mar 04 21:58:23 when did teachers stop specifying the exact measurements and fonts you were allowed to use Mar 04 21:58:37 DigitalKiwi: this is an ap calc class Mar 04 21:58:41 I've never had that specified Mar 04 21:58:46 Amorgos, that's built-in Mar 04 21:58:52 validation at least Mar 04 21:58:57 trust me, outside of that class it's always MLA style, size 12 font, Times New Roman Mar 04 21:58:57 DigitalKiwi: I havent gotten a teacher to specify that stuff since maybe 8th grade Mar 04 21:59:19 Amorgos, http://blog.donnfelker.com/2011/11/23/android-validation-with-edittext/ Mar 04 21:59:35 also, being the computer nerd I am, for the first essay (on solids of revolution) I explained the concepts using bits of C code Mar 04 21:59:41 got an A+ Mar 04 21:59:55 I like how the schools teach you cursive up unti you reach college where the rule is "No cursive!" Mar 04 22:00:12 i bet you used \n{ too! Mar 04 22:00:15 pragma_: ive never been told no cursive in hs Mar 04 22:00:18 err college Mar 04 22:00:22 Gotta love the college student that raises his hand in class and asks permission to use the restroom. Mar 04 22:00:54 JakeWharton: Thanks for the link. this is new to me! Mar 04 22:02:21 JakeWharton: ha, I just did that for my app today. I don't know why I always popped up Toasts, but I feel like an idiot Mar 04 22:02:40 allman style? is that what i'm thinking of Mar 04 22:02:48 Yeah it's so underused Mar 04 22:02:53 I never knew it existed until a few months ago Mar 04 22:03:42 JakeWharton I wonder if saveActionViewStates() needs to be added to MenuMule... Mar 04 22:03:53 Hey. I'm trying to do the equivalent of an "on mouse drag" with my finger. Apparently, this functionality exists in the OnGenericMotionEvent that's available from 3.0 and beyond. I'm trying to support Android 2.1, or API 7. What API should I look at for registering the events that occur when a finger drags along a view? Mar 04 22:04:24 OnTouch seems to only handle the initial collision of your finger with the device :/ Mar 04 22:04:40 hey guys, what do I need to do to make an existing android app "Independent" - for example the samsung keyboard? Mar 04 22:04:55 JakeWharton: bit of a shame you have to still code around it. Like implement your own text changed listeners etc and enable/disable the submit button etc. It would be cool if all that was done for you Mar 04 22:05:03 DrPenguin: basically, this: http://ragecomics.com/c/ri6/cursive-rage Mar 04 22:05:19 (but there was a better one, which I cannot find now) Mar 04 22:05:32 for example, the sony launcher has been made available (hacked) to work on all other phones Mar 04 22:05:33 lol good stuff Mar 04 22:06:30 hm, setError has been there since api 1 - wow. i missed that too Mar 04 22:06:31 RAGE COMICS, Y U NO KEEP SIMPLE INTERFACE Mar 04 22:06:47 test Mar 04 22:07:12 could you create a transparent grid which registered on touch events or something Mar 04 22:09:47 JakeWharton i'd never seen that setError before Mar 04 22:09:51 i dont think it's well known :) Mar 04 22:09:53 DrPenguin: http://www.cslacker.com/images/file/mediums/cursive.jpg Mar 04 22:09:59 getting closer, not quite the one I was looking for Mar 04 22:10:08 haha Mar 04 22:10:12 JakeWharton perhaps the PanelFeatureState.menu is being set not MenuBuilder? Mar 04 22:10:17 but to MenuMule? Mar 04 22:10:38 Mule just wraps the menu Mar 04 22:10:58 it would have already had to have been created Mar 04 22:11:08 havehahavehadhahdahvahve Mar 04 22:25:09 hrmmmmmmm Mar 04 22:25:36 there appears to be no possible way for st.menu to not be a platform version of MenuBuilder Mar 04 22:26:05 does anyone know what the possible values of android:spinnerMode for a spinner are? spinnerMode isnt in the docs Mar 04 22:26:49 dialog Mar 04 22:26:50 dropdown Mar 04 22:26:51 theme Mar 04 22:27:24 actually just dialog and dropdown if you're setting it via XML Mar 04 22:27:29 and dropdown is only available on 3.0+ Mar 04 22:28:33 Im cool with Dialog, I dont like drop down Mar 04 22:29:40 i wouldn't bother with it Mar 04 22:29:44 just leave it as the default Mar 04 22:30:08 wellllll fuck Mar 04 22:30:11 there goes that idea Mar 04 22:30:30 JakeWharton: Well I ont wanna use default. The default on Gingerbread is different from ICS, and I want uniformity between the platforms Im supporting without doing muli apk Mar 04 22:30:34 s/muli/multi/ Mar 04 22:31:32 what about uniformity to the platform defaults? Mar 04 22:31:46 are you styling the ICS EditText's to be all ugly like GB? Mar 04 22:32:04 Im not talking about uniformity in terms of looks, just functionality Mar 04 22:32:25 I would agree that you should just leave it as default Mar 04 22:32:33 well then I disagree with you both Mar 04 22:32:40 2-1 Mar 04 22:32:41 and let the dropdown appear on ICS since that's what most of the other apps on that device will do with spinners Mar 04 22:32:42 we win though Mar 04 22:32:47 dont care Mar 04 22:32:50 but Mar 04 22:32:51 but Mar 04 22:32:53 and what they will be used to on ICS Mar 04 22:33:00 DEMOCRACY DAMMIT Mar 04 22:33:03 its fairly simple to keep 2 versions - the market has support for that now Mar 04 22:33:06 Majority rules. Mar 04 22:33:14 maybe, but its my app... so.. Mar 04 22:33:16 don't do that Mar 04 22:33:58 I'm speakng as someone who inherited a half finished app abandoned since jan2011 Mar 04 22:34:05 std0s: doing 2 versions JUST for spinner drop down is really stupid Mar 04 22:34:13 multiple APK support is for games and shit doing NDK work Mar 04 22:34:49 if its for something as small as that its probaly easier to roll your own.. Mar 04 22:35:24 My app records video to the SD card. Do you think it is best practice to not write anything else from my app to the SD card simultaneously (ie. log files with lots of data etc) to avoid errors? Mar 04 22:35:50 I'm sometimes encountering problems with the video recording an wonder if it is because of the other stuff being written to SD at the same time. Mar 04 22:36:13 nah you should be fine - it'll be stored up in ram and the sdcard controller should take care of it by itself Mar 04 22:36:44 (unless you run out of ram) Mar 04 22:37:07 hi, i want to do something like that: http://bit.ly/xX3kJy (on the right). i'm able to use ActionMode but i can't figure out how to select the item… i did like that and of course it doesn't work: http://bit.ly/xX3kJy what i'm missing? Mar 04 22:37:31 sorry, the code is this: http://pastebin.com/QTuEicfq Mar 04 22:39:17 t0mless, wtf is going on with this Mar 04 22:39:19 my brain hurts Mar 04 22:39:31 I have no idea Mar 04 22:39:35 it makes no fucking sense Mar 04 22:39:37 std0s: Okay. I was hoping that might be the problem since I'm not too sure what else is causing the MediaRecorder service to crash (my question from a while ago: https://groups.google.com/d/topic/android-developers/PqfkTi1kyMI/discussion). Mar 04 22:40:11 only I idea I can suggest is to do the hack they use in the support FragmentActivity for pre-HC Mar 04 22:40:18 and just clear the menu and create it again Mar 04 22:40:45 the bug shows up on ICS too though Mar 04 22:41:18 I know... but only for SherlockFragmentActivity Mar 04 22:41:35 so it has to be something with that or the support lib, but I can't find it Mar 04 22:41:54 Fragments is the thing to display two Activities next to each other on a tablet, right? Mar 04 22:42:07 no Mar 04 22:42:09 display two Fragments, yea Mar 04 22:42:17 yo dawg, i heard you like fragments Mar 04 22:42:20 only one activity can be displayed at a time Mar 04 22:42:35 fragments are a way to add a simple lifecycle to views Mar 04 22:43:06 which allow for easier management and the componentization of those views Mar 04 22:43:06 does it not work on ejcweb, I think it might be the app being killed by other apps - thats why stop is never called Mar 04 22:45:06 ejcweb the only ending lifecycle you're guarentted to get called is onPause() Mar 04 22:45:07 At which point do I want to use Fragments in my App? Like, is there something like a checklist? "Your App does X, use Fragments!" Mar 04 22:45:24 Your app exists? Use Fragments! Mar 04 22:45:27 if you are writing a new app at any date after March 2011 you should be using fragments Mar 04 22:45:46 heh Mar 04 22:45:58 Fragments were backported, right> Mar 04 22:46:04 yes Mar 04 22:46:06 they're just fancy views Mar 04 22:46:30 hi Mar 04 22:46:41 std0s, t0mless: The stop() method I refer to in that post is a method of MediaRecorder, not the activity! Mar 04 22:46:49 How much time and/or work does it take to refactor an App to use Fragments? Is it a whole new concept and requirs a re-write of most UI code or is it just "add 3 lines here and there, done?" Mar 04 22:46:58 it took me a lot of time Mar 04 22:46:58 ejcweb I didn't even look at the post ;) Mar 04 22:47:08 it's pretty easy Mar 04 22:47:15 just make each activity a fragment to start with Mar 04 22:47:19 one to one Mar 04 22:47:21 because i not only started using fragments, but went away from asyncqueryhandler and started using Loaders Mar 04 22:47:28 ^ Mar 04 22:47:30 I did that too Mar 04 22:47:35 still in the middle of that actually Mar 04 22:47:43 how would one go ahead to make a spinner which uses a complex data type "let's say, a question-answer object, with 2 strings" as elements? Mar 04 22:47:43 its not just "copy and paste shit into corresponding onXXXX" Mar 04 22:47:47 and changing from listfragments to normal fragments Mar 04 22:47:53 because listfragment is fucking stupid Mar 04 22:48:23 should i expend the spinner or spinneradapter? Mar 04 22:48:29 or... something else? Mar 04 22:48:36 spinner adapter Mar 04 22:48:40 I use neither Loaders nor AsyncQueryHandlers in the App I am considering to rewrite with Fragments (iirc). Mar 04 22:48:53 so, extend spinner adapter, use it as the adapter of a normal spinner? Mar 04 22:49:11 yup, should be all that's required Mar 04 22:49:18 thank you Mar 04 22:49:22 spinner adapter lets you define the view right? Mar 04 22:49:27 I'm assuming it does Mar 04 22:50:32 should Mar 04 22:50:43 has getview/getitemviewtype/etc Mar 04 22:51:02 ok JakeWharton... what could SherlockFragmentActivity and SherlockActivity using ActionBarCompat have in common? Mar 04 22:51:21 toxicFork then yea, should be all you need to do Mar 04 22:51:38 SherlockFragmentActivity with ICS that is Mar 04 22:51:40 thanks again Mar 04 22:51:51 only what's in ActionBarSherlock.java Mar 04 22:51:59 Ah, now I see why I haven't used Loaders so far, they are 3.0+ Mar 04 22:52:03 because ICS will use ActionBarSherlockNative.java Mar 04 22:52:10 kakazza, they're in the support library too Mar 04 22:52:26 and they're awesome Mar 04 22:52:44 What's the easiest way to communicate between apps? (say, a Service and an Activity, but not of the same app). For example, I want to ask another Service 'are you logging at the moment?', and it would reply true/false. Mar 04 22:52:52 intents Mar 04 22:52:57 so then the next question becomes, what's in ActionBarSherlock.java that's fucking with us? Mar 04 22:53:35 like, 3 methods Mar 04 22:53:39 the callbacks Mar 04 22:53:49 that dispatch the menu events to the activity Mar 04 22:54:41 is there a way to see what broadcast recievers are active on a device Mar 04 22:54:48 AbelianHorizon: Can you explain more? I thought you could only launch activites/Services with intents. Mar 04 22:55:18 im no expert Mar 04 22:55:24 I've been through the logic of those like 20 times -_- Mar 04 22:55:37 but when i think of activities communicating i think of intents Mar 04 22:55:51 ejcweb you can put extras into an intent, and you can receive a new intent while your activity is open Mar 04 22:55:58 there maybe a broadcast ejcweb - you can listen for it - or an intent Mar 04 22:56:17 ejcweb IPC Is the other option, but more complicated Mar 04 22:56:42 hey, does anyone in here have a yakjuux 4.0.1 device? Mar 04 22:56:48 t0mless: But even though I can receive an intent while an activity is open, I can't respond to that can I? (without returning from the activity at least?) Mar 04 22:56:57 nope Mar 04 22:57:13 sure why not ejcweb Mar 04 22:58:14 blah, time to load a emulator, motoblur and RadioSignalLevel just barf all over my logs Mar 04 22:58:35 t0mless: ugh, i hate hate hate logcat spammers Mar 04 22:59:06 herro Mar 04 22:59:15 i have a gallery Mar 04 22:59:19 i want to set an onclick listener Mar 04 22:59:20 No you don't Mar 04 22:59:35 to where the picture clicked on will get big Mar 04 22:59:43 kind of as an overlay Mar 04 22:59:46 i cant find a tutorial Mar 04 22:59:48 herp? Mar 04 22:59:58 derp Mar 04 23:00:02 ejcweb, if your activity is a service it could extend broadcast receiver and listen for the event your're interested in Mar 04 23:00:50 std0s: And return information? I don't see how that bit works. Mar 04 23:00:51 couldnt you have a broadcast receiver inner class? Mar 04 23:01:49 return informatiion where? to the broadcasting app? - it would need to implement its own broadcast reciever to listen for the reply Mar 04 23:02:23 I'm having a bit of trouble trying to conceptualize how to check whether a user's logged into my app - should I put in onCreate and onResume of every activity some sort of check for a valid token (maybe set in sharedprefs) and redirect to a login if it's not there? Mar 04 23:02:24 ejcweb: http://stackoverflow.com/questions/2026393/service-call-backs-to-activity-in-android Mar 04 23:02:25 g00s, t0mless any recommended readings for Fragments? Since you recently or are still refactoring to use them? Mar 04 23:02:56 kakazza: i finished the refactoring, but i'm just saying it took me a considerable amount of time. Mar 04 23:02:58 the android dev blog has a pretty good description of them Mar 04 23:03:11 how can i get a view from a viewresource id Mar 04 23:03:35 i'm still working on getting my listview in my fragment activity under compatibility Mar 04 23:04:32 kakazza, i THINK i AM ABOUT TO HAVE TO DO THE SAME Mar 04 23:04:37 oops Mar 04 23:04:51 scusecaps Mar 04 23:04:59 I wish programming books on kindle for PC formatted properly Mar 04 23:07:28 is indle epub? Mar 04 23:07:29 <__nolife> Saban: it works better on Sony readers Mar 04 23:07:36 <__nolife> when PDF Mar 04 23:08:03 I have comments and lines of code mixing together Mar 04 23:08:15 <__nolife> try zoom out Mar 04 23:08:41 the zoom option is greyed out Mar 04 23:08:42 I think theres conversion sw - try calibre? Mar 04 23:09:27 (if it isa format problem) Mar 04 23:10:19 Saban: kindle books seems to just suck for formatting regardless Mar 04 23:10:42 i just got done mailing the editor for a book at elsevier , mentioning what a disgrace the kindle version is Mar 04 23:11:19 I was working on it directly from my phone until i remembered kindle did have a PC format Mar 04 23:11:37 the formatting on the phone is really quite difficult Mar 04 23:12:01 i'm frustrated at how badly ebooks suck in 2012 Mar 04 23:12:17 and the situation with formats, drm, publishers updating issues in their books, etc Mar 04 23:12:21 oreilly is the best Mar 04 23:12:46 how long does it take until an app is shown in the devices maket? i already can see the app at the android market homepage, but on the device still not shown Mar 04 23:12:59 epub should be the best format, but it's really the publisher's issue to take advantage of it Mar 04 23:13:11 The sad thing is you can get illicitly obtained pdfs of some of these books that are perfectly formatted, but i really prefer to own these books. Mar 04 23:13:26 think i'll just order physical copies from now on Mar 04 23:13:43 K8's really hampered, too. Mar 04 23:14:23 JakeWharton wtfffff when re-creating the options menu making it visiable again... mActionItems {} size = 0 Mar 04 23:14:39 wut Mar 04 23:14:48 stepping through the code Mar 04 23:14:57 when it's making the options menu reappear Mar 04 23:15:06 ghchinoy: what so you think will win in the future? ibook format, epub, kindle, etc ? Mar 04 23:15:13 but the MenuBuilder mActionItems = 0 Mar 04 23:15:18 menuinflaterimpl and menuinflaterwrapper Mar 04 23:15:55 t0mless, mActionItems will be empty until flagActionItems is called Mar 04 23:17:09 g00s: That's a toughie. I think it'll be driven by demand. And right now, interactive stuff like Morris Lessmore is custom, but if there's an easy way for publishers to put interactivity into books, that might get them to pay more attention to formatting for ebooks. Mar 04 23:17:26 pdf already won didn't it? Mar 04 23:17:41 And, that means iBooks. K8's geared towards interactivity and not complex formatting. Mar 04 23:17:53 If i had to choose right now what format my ebooks came in, i'd have to go with pdf Mar 04 23:17:58 as much as i loathe to say pdf Mar 04 23:18:00 For technical books, like you said, ORA knows their audience. Mar 04 23:18:09 pdf is useless for displaying on different devices Mar 04 23:18:24 It's definitely a pita. Mar 04 23:18:53 mMenuFrozenActionViewState = null Mar 04 23:19:03 so restoreActionViewStates shouldn't be getting called Mar 04 23:19:11 I dunno, pdf formats exactly the same on my Mar 04 23:19:14 PC as it does on my note Mar 04 23:19:23 and i can zoom in no problem Mar 04 23:19:30 what sucks is that on amazon, you can't give a rating for the kindle conversion. so its hard to tell, looking at the reviews, if the rating is for content, conversion, or both Mar 04 23:19:32 I think kindles format just isnt very versatile Mar 04 23:20:12 Yeah, that would be nice, to see the rating of the transcription. Mar 04 23:20:26 Saban: and every time they update the kindle for mac app, like this 1.9.1 version - i can never tell any improvements Mar 04 23:20:29 K8 has css but not fully functional. Mar 04 23:20:31 JakeWharton: im populating an ArrayList of my own SMSmessage objects in java and want to view this list in my home screen activity which needs to be a fragmentactivity for compatibility, how can I do this? Mar 04 23:20:49 how long does it take until an app is shown in the devices maket? i already can see the app at the android market homepage, but on the device still not shown Mar 04 23:20:58 not too long Mar 04 23:21:22 hours ? Mar 04 23:21:23 days ? Mar 04 23:21:27 test Mar 04 23:21:28 Saban, that's the point, it can't reflow Mar 04 23:21:28 i know updates take like 10 minutes Mar 04 23:21:31 why there is a difference Mar 04 23:21:34 ahh it works :) Mar 04 23:21:34 JakeWharton I'm not entirely sure i'm using the IDEA debugger right... but when stepping through it went SherlockActivity:179 return onPrepareOptionsMenu(menu); which just goes to 184 and returns true Mar 04 23:21:36 its already on the page Mar 04 23:21:38 i dont remember the first time Mar 04 23:21:40 why not in the app ? Mar 04 23:21:50 but then it still goes down to 181... return false; Mar 04 23:21:57 I've sent feedback on kindle formatted books to have an update given a few months later, so they do listen, but the publishers might not. Mar 04 23:22:25 but result is true... so not sure what that was about Mar 04 23:22:28 Thats because i believe a pdf basically is just a really long picture, in essence? Mar 04 23:22:34 the only thing is that im a bit worried cause its on the page but i cant see it at the devices market, mabe there is sth wrong ? :S Mar 04 23:22:46 t0mless, that happens in eclipse too Mar 04 23:22:50 * JakeWharton shrugs Mar 04 23:22:54 weirded me out Mar 04 23:22:57 what does this errorlog tell "me" ? :) ... looking for a null-pointer? but where in DBTeamEdit? http://pastebin.com/YkCqw048 Mar 04 23:23:28 ghchinoy: how did you do that ? send feedback to amazon or the publisher ? Mar 04 23:24:53 I think there was an option on my K1. Let me check. Mar 04 23:25:34 oh yeah, in the app there is a 'report defect' Mar 04 23:25:40 Yeah that Mar 04 23:25:51 I think there might also be something on the fiona site Mar 04 23:25:56 but the whole book sucked, it was edited poorly - i needed to report the whole damn thing as a defect Mar 04 23:26:02 * ghchinoy nods :) Mar 04 23:28:06 JakeWharton I really don't get it... it doesn't save any of the action views in the invalidate Mar 04 23:28:13 With the Fire, I've also e-mailed AMZN and they've been pretty good about responding. Mar 04 23:28:13 and it doesn't see any when it re-creates it Mar 04 23:28:28 so I guess it must be something about MenuItem that is caching the resource Mar 04 23:33:27 t0mless could you look at my error please? Mar 04 23:33:36 Nope Mar 04 23:34:15 de.volleyball.dom.DBTeamEdit.onCreate(DBTeamEdit.java:32) <-- DBTeamEdit.java, line 23 Mar 04 23:34:29 32* Mar 04 23:36:52 is that the 32 line of the method onCreate or the all over line 32? Mar 04 23:38:21 o.O Mar 04 23:38:25 always over all Mar 04 23:38:38 do you even have 32 lines in onCreate() ? Mar 04 23:38:47 going to dinner Mar 04 23:38:55 at 3:30? Mar 04 23:39:04 at 4 Mar 04 23:39:10 which is 7 EST Mar 04 23:39:26 hunger trumps timezone Mar 04 23:41:31 Well, your stomach dont know how to tell time Mar 04 23:42:25 How else is it going to learn?! Mar 04 23:42:39 sigh, android market website takes hours to update a listing whereas the device market app displays the updates instantly Mar 04 23:42:49 clear your cache? Mar 04 23:43:15 I know how to internet Mar 04 23:44:03 Listing, Y U NO UPDATE Mar 04 23:44:27 dammit, now I'm hungry Mar 04 23:44:37 I just ate dinner Mar 04 23:44:55 * DigitalKiwi is eating soon Mar 04 23:45:09 I need to buy some vanilla extract and reeses minis unwrapped so I can bake some chocolate peanut butter cookies Mar 04 23:45:22 I already have the flour, brown sugar and eggs, etc. Mar 04 23:45:42 I cant wait til after easter so I can buy mad cadberry eggs Mar 04 23:45:59 you're programming with ingredients. Your filesystem is your bowl, your assembler+compiler is your mixer and oven... Mar 04 23:46:13 Zombie Jesus cakes with red jelly filling are great for Easter parties Mar 04 23:46:19 alankila: journaling or non journaling? Mar 04 23:46:26 pragma_: W.T.F. Mar 04 23:46:39 Aaaaaah Mar 04 23:46:57 Is it possible for me to actually initialize 5 fragments of the same kind?? Mar 04 23:47:05 Isn't Easter when Jesus rises from the dead and devours the sinful? Mar 04 23:47:11 DrPenguin: got one minute? i have a 3 Buttons (A,B,C) and clicking each one opens up a AlertDialog (with good, neutral, bad) ... now depending on what is clicked i wanna give A ... a good or ... A a bad ... whatever ... Mar 04 23:47:13 pragma_: yes and no Mar 04 23:47:23 Surfer2010: for you, I have -5 minutes.. wait that means you owe me Mar 04 23:47:34 n20: I cant see why not? im doing that right now with 3 Mar 04 23:47:57 DrPenguin: I'll show the code on Codepad! Mar 04 23:47:57 Surfer2010: what do you mean give a good or a bad, like ur displaying text or something? Mar 04 23:48:20 DrPenguin: are you saying no because we have a great zombie survival plan all mapped out? Mar 04 23:48:41 at the end i wanna count in like an array or something how many times which button was "evaluated" good/neutral/bad Mar 04 23:48:45 pragma_: and I thought I f'ing lived down the zombie survival bs when I dumped my loser ass friend Mar 04 23:49:10 Surfer2010: use some class scope array, in the Dialogs callback, have it increment a spot in the array Mar 04 23:49:11 is it now better to do this inside the good-onClick method ... getting the ID of "button A" for example in there Mar 04 23:49:15 At least I'm not talking about ninjas or pirates. Mar 04 23:49:27 pragma_: then id have to kill you Mar 04 23:49:35 I think I use non-journaled filesystems. Certainly transactionality features are also rather lacking, once you mix your egg with sugar there's no way to get them back, you just have to mkfs.emptybowl Mar 04 23:49:53 pragma_: now you are, too late! Mar 04 23:50:01 DrPenguin: Logcat: http://codepad.org/IYyg2CPS || Code: http://codepad.org/If70CNBv Mar 04 23:50:02 or the other way give the button A after calling the dialog "back" what has been click in the dialog (good/bad/neutral) Mar 04 23:50:03 alankila: 32bit or 64bit? Mar 04 23:50:13 Sorry for that indentation DrPenguin, I don't really know what happened. :( Mar 04 23:50:16 ok you'Re saying the second as i understood this? Mar 04 23:50:21 n20: I will end you Mar 04 23:51:01 n20: so, your app.. does it hang after it binds the first 2 fragments? Mar 04 23:51:12 You think these code dump sites would trim that stuff. Mar 04 23:51:27 It really can't be that hard. Mar 04 23:52:56 DrPenguin: I get a NullPointer, due to the adapters not being set (which I do in my onCreateView). :( Mar 04 23:53:20 DrPenguin: But since it doesn't seem to get there after the first two... well, that's why it gets the NPE Mar 04 23:53:27 n20: well I need a better logcat than what you gave me, it doesnt show a bt Mar 04 23:53:33 thx DrPenguin i try to figure that out :) Mar 04 23:56:46 romainguy when the show display changes option is enabled in the development tools what's the difference between the purple flash and the yellow flash? Mar 04 23:57:02 DrPenguin: Hang on sir! Mar 04 23:58:35 DrPenguin: http://codepad.org/ZGpxGXqO Mar 04 23:59:07 and that NPE corresponds to the #2 ? Mar 04 23:59:11 DrPenguin: Which corresponds to it trying to access a method of the listadapter in Fragment #3, only to fail due to it being null (as it hasn't been "started") Mar 04 23:59:23 wait #3?? Mar 04 23:59:24 Sorry, Fragment #3 but index #2 yes Mar 04 23:59:26 :D Mar 04 23:59:29 DrPenguin: oh, you're such a tease. Mar 04 23:59:32 *glare* Mar 04 23:59:48 alankila: thats what the ladys say, well is what I think they would say if ladys talked about me Mar 04 23:59:57 buuuuuuuuuut.. they dont Mar 05 00:00:32 n20: ok so have you fverified to make sure everything is initialized and kosher? You wouldnt get an NPE for binding too many fragments Mar 05 00:01:36 DrPenguin: Well, the problem is that it isn't initializing more than two Mar 05 00:01:53 I'm just getting two outputs to the logcat (from the onCreateView()) Mar 05 00:02:00 n20: ok so what happens if you removed one of the first 2 fragments, your telling me fragment 2 would bind? Mar 05 00:02:17 DrPenguin: http://codepad.org/OLiJ7i9x Mar 05 00:02:22 DrPenguin: I'll see what happens! Mar 05 00:03:15 DrPenguin: Hmm... removing the first two still only binds 2(out of 3) Mar 05 00:05:38 but those 2 fragments, they still correspond to #0 and #1 right? so they arent using different data Mar 05 00:06:15 DrPenguin: That's true Mar 05 00:06:32 you want to make it so that your using he data or fragments #2 #3 and #4 Mar 05 00:06:37 not #0 and #1 Mar 05 00:07:09 DrPenguin: Weird part is that it actually "fails" on me before I get to that point Mar 05 00:07:26 if its failing before that point, then why did you show me that point Mar 05 00:07:31 #justsayin Mar 05 00:07:49 For the output, so you could see where it came from. :D Mar 05 00:07:50 JakeWharton this is curious... for the cases where it's fucked up, it is still invalidating (the ActionView I'm assuming) when it's hidden. Mar 05 00:08:14 JakeWharton and for some reason on ICS it invalidates the whole fucking window, but on GB it only invalidates the view itself Mar 05 00:08:20 DrPenguin: And by "fails" above, I mean "doesn't manage to instantiate the third, fourth and fifth fragment". :( Mar 05 00:08:28 n20: well, let me put it to you this way, if Im looking at a car, and its leaking oil, im not gonna look at where the oil is comming out, but all the machinery inside thats oil related to see where the leak is occuring Mar 05 00:08:57 DrPenguin: Where should I park my car? Mar 05 00:09:12 in the ocean Mar 05 00:09:19 A submarine! Mar 05 00:09:22 n20: what I want to see is: oes it fail on ((UnlockFragment) listFragments.get(2)).showUnlocks(data.getKitUnlocks()); even if the first fragment is setting that up Mar 05 00:09:27 nah, just a toyota pickup Mar 05 00:09:33 if I had a submarine id sell my car Mar 05 00:09:39 (That ep of top gear is awesome) Mar 05 00:10:58 DrPenguin: Yes, that's the one it fails on, but I'll replicate it with the data.getKitUnlocks() @ #0 too Mar 05 00:11:12 thats what I just said :P Mar 05 00:11:21 * n20 tried to paraphrase. Mar 05 00:11:22 :D Mar 05 00:11:39 because like I said, this NPE isnt a fragment instantiation issue persay, as in you wouldnt get this solely because your attaching fragment after fragment Mar 05 00:11:40 DrPenguin: Still got to #2 Mar 05 00:12:02 n20: ok so what oes that mean.. is #2 now not doing data.getKitUNlocks() but something else? Mar 05 00:13:23 DrPenguin: It means that #0 does what #2 is doing, but #2 is failing 'cause of the ListAdapter attached to it is... well, null. It's null because of the .instantiate() not actually getting into onCreateView() for the third, forth and fifth fragment. :( Mar 05 00:13:36 Atleast according to logcat. Mar 05 00:13:37 why do i get a "Dead Code" on the "moveToNext" in Line 6 http://pastebin.com/w3uLYNtv ? Mar 05 00:13:50 ok that doesnt make any sense n20, What is #2 doing Mar 05 00:14:40 DrPenguin: The same as #0 and #1. Does Android cache it automagically? :( Mar 05 00:15:02 n20: tell me explicitl what #0 1 and 2 are doing now Mar 05 00:15:05 i got pretty much the same method not getting this "error" ? Mar 05 00:15:12 your confusing the hell out of me just throwing out numbers Mar 05 00:15:34 DrPenguin: The fragments are exactly the same. The only differnce is the data they're getting, but that's after the call to Fragment.instantiate() five times. Mar 05 00:15:40 Ok, I'll make a list of the flow! Mar 05 00:15:49 n20: whats the length of listFragments? Mar 05 00:16:32 DrPenguin: 5. Mar 05 00:16:37 n20: what you seriously need to do is find out whats null, preferabl by using the debugger and set break points Mar 05 00:21:17 DrPenguin: http://codepad.org/FE6nAfhr <-- text of doom Mar 05 00:21:46 Disregard my comment regarding the FeedListAdapter, it's a bit copy&pasteish Mar 05 00:22:12 n20: you need to use the debugger Mar 05 00:22:22 showing me random code fragments isnt gonna help Mar 05 00:23:04 I'll run with the debugger, and make it crash --> I get to see the goodies Mar 05 00:23:39 you should be able to examine variables and stuff.. but you might wanna set some breakpoints around just so you can examine the env at diff points Mar 05 00:24:40 DrPenguin: Everything is null/0/false in the Fragment that it fails on Mar 05 00:24:50 DrPenguin: (due to it not going through onCreateView()) Mar 05 00:25:17 I wonder if there is some hidden caching going on. Mar 05 00:25:20 well if its not going through onCreateView, figure out why it isnt (Although I doubt thats the problem) Mar 05 00:25:24 why would there be caching? Mar 05 00:25:28 I have no idea. Mar 05 00:25:35 Should I setup a test project? Mar 05 00:25:38 then dont think it if your just saying it without anything to back it up Mar 05 00:26:11 DrPenguin sorry to inturrupt :$ but why am i getting a "Dead Code" on the Line6 "moveToNext" ? http://pastebin.com/w3uLYNtv Mar 05 00:27:40 Surfer2010: probably because of your initial foor loop conition? Mar 05 00:27:46 Cursor.moveToFirst() returns a boolean Mar 05 00:28:04 so your saying for(boolean; boolean; boolean) Mar 05 00:28:06 Surfer2010: yo, while (cGP.moveToNext()) { .. } Mar 05 00:29:37 mh okay :D makes sense thinking about it ... but that's how it is done in a tutorial that prints all the data from the SQL into a string ... and there it works exactly this way that's why i'm confused Mar 05 00:29:42 Are all android devices from here on out going to be required to have the buttons in the UI, rather than hardware buttons? Mar 05 00:29:58 Surfer2010: that's an idiotic tutorial Mar 05 00:30:14 TrentonAdams: no, the OEMs have the choice Mar 05 00:30:17 Surfer2010: you know you can have null conditions in for loops right? Mar 05 00:30:26 evancharlton: oh, cool, I hope samsung sticks with hardware buttons. Mar 05 00:30:29 for(;;) is completely valid, or for(;condition;) or.. etc etc Mar 05 00:30:46 ok Mar 05 00:31:11 but evancharlton is right, move your cursor to first first, then do that while loop Mar 05 00:31:28 i just wanna have the cursor start at the first "line" and go on down each time until it's at the end Mar 05 00:31:32 ok Mar 05 00:32:22 Surfer2010: like I said, while (cursor.moveToNext()) Mar 05 00:32:27 ^ Mar 05 00:32:43 ok evancharlton i try this Mar 05 00:35:42 JakeWharton I might have stumbled onto something.... Mar 05 00:38:46 evancharlton: like this? http://pastebin.com/ukj3eiGG Mar 05 00:39:48 scrolling through my gallery is very resource intensive Mar 05 00:39:54 how can i fix that? Mar 05 00:40:15 disable scrolling? :P Mar 05 00:43:58 evancharlton because i ony get 1 element out of my DB and not all of them Mar 05 00:44:03 DrPenguin: any other ideas? Mar 05 00:44:22 dandaman: find out why its resource intensive? Mar 05 00:44:33 how do i do that? Mar 05 00:44:38 i mean, do you have any ideas Mar 05 00:44:40 of how to diagnose Mar 05 00:45:04 well.. for one.. maybe see if your etting a ton of GC lines in the log Mar 05 00:45:13 GC? Mar 05 00:45:19 Garbage Collector? Mar 05 00:45:57 allocation tracker? profiling? Mar 05 00:46:46 what are the log tags? Mar 05 00:46:54 I think.... Info? Mar 05 00:47:05 for GC? Mar 05 00:47:14 Debug level Mar 05 00:47:18 tag is dalvikvm Mar 05 00:47:50 ah Mar 05 00:48:02 welllll this makes no fucking sense Mar 05 00:48:29 language please Mar 05 00:48:54 I am pretty sure we are all adults here.. Mar 05 00:49:02 im not Mar 05 00:49:12 leagally or mentally? Mar 05 00:49:12 if I set an actionView on a menuItem and then invalidate the action view never happens Mar 05 00:49:19 both :P Mar 05 00:49:22 but if I invalidate then add an action menu Mar 05 00:49:25 it duplicates Mar 05 00:49:30 http://www.comicsalliance.com/2011/12/19/x-men-with-googly-eyes/ Mar 05 00:49:30 not sure.... Mar 05 00:49:32 again and again and again and again Mar 05 00:49:59 Nighthawk: that made me giggle Mar 05 00:50:05 ;p Mar 05 00:55:53 Ehm... DrPenguin Mar 05 00:55:59 I can reproduce it in a completely new project Mar 05 00:56:10 BUT Mar 05 00:56:13 I know what the issue is. Mar 05 00:56:36 Turns out the preloading is only for the first two Fragments Mar 05 00:56:57 However, onCreateView() gets called when you swipe to the other Fragments Mar 05 00:57:34 So my problem is wanting to populate the fragments directly, but I can't since it never actually creates the views for the third, forth and fifth. Mar 05 00:57:45 With that said, I'll head off to bed. Mar 05 00:59:23 How do you import an existing project and actually have it work? Mar 05 01:00:11 File > Import > Existing Project into Workspace, and make sure the "actually work" checkbox is checked Mar 05 01:02:29 Finally got one to work by importing a file system Mar 05 01:07:56 Hello. I'm trying to "textView.setText(string);" but there is no effect. I am trying after my "setContentView(xml)". I'll post my code if needed. Mar 05 01:08:31 code is needed sisi Mar 05 01:08:56 your onCreate and your XML Mar 05 01:09:14 jeebs and are you getting an error or just nothing happening? Mar 05 01:09:22 http://pastie.org/3522624 Mar 05 01:09:24 Nothing happenes Mar 05 01:09:33 Logcat is reporting variables/activity fine. Mar 05 01:09:41 are y ou getting the right TextView? Mar 05 01:10:06 XML - http://pastie.org/3522628 Mar 05 01:10:40 sorry for the lack of comments Mar 05 01:13:21 hrm.. don't see any syntax or logic errors why tht shouldn't work Mar 05 01:13:30 the @string/dummy is showing up? Mar 05 01:13:53 YEs Mar 05 01:13:57 One moment Mar 05 01:15:33 JakeWharton is setActionView supposed to clear out the old one? Because it isn't. Mar 05 01:16:49 Uploading logcat and shot of device Mar 05 01:17:34 http://imgur.com/b2Z9l,QCtIc Mar 05 01:17:47 album http://imgur.com/a/KwUvJ Mar 05 01:20:44 Even if I try to set the text in onCreate, there is no change. Mar 05 01:22:38 whats is called when a kind of overlay with an edittext field and a "save" and "cancel" button show up? Mar 05 01:23:02 popup? o.o Mar 05 01:23:39 jeebs do you have the rangeText ID anywhere else? Mar 05 01:23:46 is it just another activity or what? Mar 05 01:23:57 dandaman normally not Mar 05 01:24:05 though I'm not sure I know what you're talking about Mar 05 01:24:17 here lemme upload a screenshot Mar 05 01:24:51 jeebs I'd recommend cleaning the project Mar 05 01:25:01 is there a way to put a SQLiteCursor into a Bundle? Mar 05 01:25:11 ... Mar 05 01:25:21 DrPenguin: design fail. Mar 05 01:25:27 Tom. I've heard that fixes some bugs, but I've never seen it. How do I do that? Mar 05 01:25:30 jasta: wasnt asking for opinion Mar 05 01:25:41 i know this is ios Mar 05 01:25:45 but this is basically what i want Mar 05 01:25:47 http://imgur.com/naEUm Mar 05 01:25:57 project->clean in eclipse or delete gen and bin folders and build again Mar 05 01:26:04 or ant clean if you're using ant Mar 05 01:26:08 dandaman: you can easily do that by making a custom Dialog Mar 05 01:26:12 danda, Wrap your view in a relative layout, add a view at the end Mar 05 01:26:17 Or that Mar 05 01:26:27 ant or maven for android dev? Mar 05 01:26:28 DrPenguin: are you sure? it seems quite like you were. Mar 05 01:26:35 custom dialog eh Mar 05 01:26:52 jasta: DrPenguin: is there a way to put a SQLiteCursor into a Bundle? Now I might be an idiot, but that doesnt sound like im asking for opinion there Mar 05 01:26:59 if your goal is to pass a cursor from component to component within the same process, you want to use an out-of-band reference of some kind and a cache. Mar 05 01:27:16 out of band reference? Mar 05 01:27:24 t0mless: Still no luck, thanks for the help though. It's bugging me that there is seamingly nothing wrong with this... Mar 05 01:27:37 yes, for example an identifier that can be use dto lookup the cursor in your process global cache. Mar 05 01:27:55 something that you should expect can fail, so perhaps even using the Uri itself that got you that cursor. Mar 05 01:28:05 then if you fail to find it in your cache, you'd just query again Mar 05 01:28:06 All I am trying to do is, I have a list view that is showing the contents of a Cursor, whne I select an item, I wanna pass the reslting SQLiteCursor to a DialogFragment that I am spawning so I can pass the data to the activity I wanna kick off Mar 05 01:28:21 a very common requirement indeed. Mar 05 01:28:25 and this is the very common pattern for it. Mar 05 01:28:47 but im not doing look ups with the cursor I wanna pass around.. it already has the data I need Mar 05 01:28:55 I just want to give it to my DialogFragment Mar 05 01:29:08 its an optimization though. the normal pattern would be to pass the uri and requery. you're skipping that step and optimizing with a reference hand-off to a pre-queried cursor. Mar 05 01:29:24 any bots here that might want to join my bot conspiracy channel (###mediawiki###) pm me if need more info or /msg memoserv Mar 05 01:29:34 very reasonable to do. Mar 05 01:29:48 any bots here that might want to join my bot conspiracy channel (###mediawiki###) pm me if need more info or /msg memoserv Mar 05 01:29:55 well that's going to get old Mar 05 01:30:02 jasta: yeah, and I figure it would be better if I just stuck it into a bundle rather than making it a private member of my DialogFragment Class Mar 05 01:30:12 yes/no? Mar 05 01:30:27 No. Mar 05 01:30:37 why? Mar 05 01:30:42 DrPenguin: the pattern is quite simple and probably something you've used before. the hand off from component A to B would look something like component A introduces the cursor to the in-memory cache, starts component B with a reference to that entry. component B starts up, looks for the entry from the provided reference, and voila. Mar 05 01:31:01 jasta: but WHY am I doing all that? Mar 05 01:31:07 I m not doing a look up, I ALREADY HAVE THE DATA Mar 05 01:31:13 DrPenguin: no, because Bundle was expressly designed to communicate data in an IPC-friendly way. the optimization you're after is expressly forbidding that paradigm. Mar 05 01:31:18 its just in an Object that cant go into a Bundle (atleast fromwhat I see) Mar 05 01:31:49 DrPenguin: surely you must know that Android is a component interaction based system. It's designed to make it possible to interchange components easily, even across process boundaries. Mar 05 01:31:55 that requires some different thinking of course. Mar 05 01:32:05 assuming you want to "play ball" with that paradigm anyway Mar 05 01:32:20 jasta I am confused as to why your explaining this paradigm to me, it doesnt apply Mar 05 01:32:32 if you don't want to play ball, a global is going to work well if even extremely clumsy Mar 05 01:32:33 Im not doing a query to get a cursor, I already have it when I select an item from my List View Mar 05 01:33:18 I just dont feel like pulling the data out of the cursor prior to passing it to the Fragment, but i could if need be Mar 05 01:33:40 DrPenguin: it sounds like you're misunderstanding me. Mar 05 01:33:48 you wouldn't be pulling the data out of the cursor at all Mar 05 01:33:51 I think your misunderstanding me too, but yeah im definitely confused Mar 05 01:34:30 compoennt A: cache.put(id, cursor); startB(id); component B: cache.get(id); Mar 05 01:35:04 why do I need that? Mar 05 01:35:18 I dont think you understand what I am trying to do Mar 05 01:36:29 you want to pass a cursor from component A to component B, no? Mar 05 01:36:49 Yeah, but Component A is a Fragment, component B is a Dialog Mar 05 01:37:15 that doesn't matter much Mar 05 01:37:16 It doesnt make any sense to have some global cache for a Dialog to look at Mar 05 01:37:33 when I can just pass the cursor in to my Dialogs c'tor and make it a private member Mar 05 01:37:38 if you design your android components appropriately, the dialog would also be a fragment. Mar 05 01:37:44 It is a Fragment.. Mar 05 01:38:14 so what the cache is for is to say: look, our process already has this data in a resident cache, you can use that data. but, if our state changes such that we do not have that in cache, you will need to look it up again. Mar 05 01:38:34 Wtf is there to look up? Mar 05 01:38:49 The user hits an item on the ListView, it produces a cursor, the DialogFragment pops up and asks what to do with the data Mar 05 01:38:52 consider a more general design: activity A passes cursor to activity B. user hits home. time passes. process dies. user returns to activity B. where is the cursor? Mar 05 01:41:03 if you used this sort of pattern i'm proposing, your application would gracefully handle that case with a requery. while not necessary, it is an elegant solution. an inelegant solution would be as i mentioned earlier just using a global that is simply assigned by activity A, and retrieved and unset by activity B. Mar 05 01:41:16 But.. this.. doesnt apply to me Mar 05 01:41:20 but the inelegant solution of course fails in the scenario i just provided. Mar 05 01:41:28 Im not doing a (re)query, im touching a Listview, and it gives me a cursor Mar 05 01:41:42 DrPenguin: if you are passing complex stateful objects from one android component to the other, it does apply to you. Mar 05 01:41:58 forget it, im doing this my way Mar 05 01:42:31 lol, and that is...? Mar 05 01:42:35 dont worry about it Mar 05 01:42:42 wasn't the reason for your question? you don't know another way? Mar 05 01:42:53 cause you will probably say its bad design, and I will obviously disagree with you Mar 05 01:42:58 so theres no point in me telling you Mar 05 01:43:24 no i'm genuinely curious Mar 05 01:43:36 i mean yes, it obviously will be poor design, but i am still curious :) Mar 05 01:44:06 then you will be curious then, because I dont plan on wasting the time telling you Mar 05 01:44:11 btw, as i am now excited to arm you with the tools necessary for your destruction, cursors can in fact be passed in the way you desire :) Mar 05 01:44:36 they are implicitly designed to cross process boundaries and therefore can be considered parcelable Mar 05 01:44:52 though the exact details of how that works are encapsulated on purpose Mar 05 01:45:57 Okay, this is seriously pissing me off. Prob. should finish up my homework the night before next time. Is anyone willing to give my previously posted code a look? (I'll post again). I cannot change the current view (as in textview.setText(String) Mar 05 01:46:11 shouldn't* Mar 05 01:46:20 jeebs: please repost, i lost it Mar 05 01:46:48 jasta: here is the main activity http://pastie.org/3522757 Mar 05 01:47:09 here is my grid.xml http://pastie.org/3522759 Mar 05 01:47:22 there are no duplicate id's Mar 05 01:47:26 I've done a clean Mar 05 01:47:32 i dont have any interest in reading all this. please point out the area of your question. Mar 05 01:47:55 http://pastie.org/3522762 Mar 05 01:48:04 ... Mar 05 01:48:06 Logcat says it gets the current variables Mar 05 01:48:23 jasta - I only pastied 3 methods that matter Mar 05 01:48:25 i think i'm going to go ahead and just say nevermind at this point. Mar 05 01:48:26 hey jasta, remember me.. its been awhile since i've been on the channel Mar 05 01:48:37 Napalm: what's up? Mar 05 01:48:58 just been playing with Android-x86 Mar 05 01:49:08 yeah i noticed that they published that officially Mar 05 01:49:15 yup v4.0 RC1 Mar 05 01:49:22 the emulator curiously still sucks bad though. how they managed that is a mystery to me :) Mar 05 01:49:29 im working on a App that will wrap it and make it easier to debug with in Eclipse Mar 05 01:49:33 i mean jeez, is qemu just that sucky? Mar 05 01:49:39 qemu rocks Mar 05 01:49:41 its not that Mar 05 01:49:45 google is just noob Mar 05 01:49:49 it's not just the emulator that sucks Mar 05 01:50:31 its because it has to emulate a completely different instruction set Mar 05 01:50:49 google is a bunch of rich interns ripping off high school kids through google summer of code and releasing stuff without the 'beta' tag since they learned their lesson from leaving 'beta' on google search for so long Mar 05 01:50:51 Napalm: on x86? Mar 05 01:51:06 Napalm: have you said nevermind or not? The only issue is that "rangeView.setText("From " + lowRange + " to " + highRange);" doesn't change the view on screen. Mar 05 01:51:21 where as the x86 build can just run native on the processor with minor changes, and no-changes if your processor supports the VT-X instruction set Mar 05 01:51:45 jeebs what might be a good idea is to after that set, see if its text contents are that, if so, then the view might just not be repainting Mar 05 01:51:55 Napalm: i am referring to the x86 build. Mar 05 01:52:28 jeebs: was that suppose to be directed at me? Mar 05 01:52:42 Napalm: why would you need 64bit virtualization instruction set to run Android-X86? Mar 05 01:52:55 jasta: i can send you a pre-made setup for VirtualBox that you can debug with Mar 05 01:53:08 nah, i wouldn't have the time. Mar 05 01:53:16 i've been super busy learning bigtable and other such magic. Mar 05 01:53:25 DrPenguin: thank you, you are correct, it isn't repainting. Mar 05 01:53:33 im hoping if i can really get somewhere with this project then we can get it in the ADT/SDK Tools Mar 05 01:53:59 this way all developers will be able to at last do debugging at better speeds Mar 05 01:54:12 jeebs ok then, and since setText DOES invalidate the view for repainting, see if the TextView is still visible? I do notice you change your Layout during runtime so maybe its gettin knocked out Mar 05 01:54:17 that would be nice Napalm, indeed. Mar 05 01:54:39 Napalm: you've reminded me of an ancient research project i wanted to work on... Mar 05 01:54:51 it also means you can do things like hierarchy-viewer and the other dev-tools because its a debug build Mar 05 01:55:06 where-as on device debugging its release device so no dev-tool support Mar 05 01:55:07 i had this idea a long time ago to create a multidimenionsal "core" file of sorts that lets you step backward in a debugger. Mar 05 01:55:19 set a breakpoint or catch a crash happening and walk back to see how that happened Mar 05 01:55:21 jasta: its already been done Mar 05 01:55:26 i should hope so Mar 05 01:55:30 stepping backwards in a debugging is nothing new Mar 05 01:55:33 it's been years and years since i had this idea Mar 05 01:56:05 DrPenguin, I added "ViewGroup vg = (ViewGroup) findViewById (R.id.gridWrapper); vg.invalidate();" at the end of onStart. works wondefully. Thank yous o much Mar 05 01:56:13 i also want to do a mod for Android-x86 where the right click will do "long press" Mar 05 01:56:21 its really annoying because no apps support it Mar 05 01:56:28 i think it should be a standard compatible feature Mar 05 01:56:35 like adding tablet size support to your app Mar 05 01:56:51 if you dont have support for mouse in your app's manifest then it should make right-click do "long press" Mar 05 01:57:54 bbl, gotta get back to my project Mar 05 01:58:00 kk Mar 05 01:58:06 catch ya around Mar 05 02:08:59 I could use a book recommendation. I'm nearly done http://www.apress.com/java/java-programming/9781430236863, and am gonna start working through http://www.apress.com/java/java-programming/9781430239093 next. Anyone else have any recommendations for an intermediate Java book that leads into Android? Mar 05 02:09:11 Also maybe an XML book? Mar 05 02:11:18 i'd say screw books and start coding Mar 05 02:15:35 Nothin wrong with books Mar 05 02:20:42 what java on ubuntu am i looking for cause sun-java6-jdk is not there Mar 05 02:21:30 http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html Mar 05 02:21:32 bam Mar 05 02:23:45 somebody, how can i get the series number of the SD Card using code? Mar 05 02:24:09 the series number? Mar 05 02:24:12 good evening all. first time trying to do any application development or programming at all. I have the development enviroment set up but i do not have a clue where to go from there. Anyone mind helping me out? Mar 05 02:24:30 I've google for a long time but got nothing. Mar 05 02:24:41 Tangentially related...for those of you who have websites for your applications (other than the market site), where do you host them? Mar 05 02:24:43 boboysdadda d.android.com Mar 05 02:24:47 there are tutorials there Mar 05 02:25:02 BluebirdShao i'm not sure what you mean by series number Mar 05 02:25:09 like the serial/model number? Mar 05 02:25:58 http://stackoverflow.com/questions/3348643/how-to-read-the-sd-card-id-number might help you Mar 05 02:26:47 t0mless: yeah i'm not having much luck following along in the tutorials was trying to do the Sams teach yourself android development in 24 hours ebook and its got me lost in hour 1 Mar 05 02:26:52 t0mless: may be it's ID. I don't know. Mar 05 02:28:56 t0mless: i wanna get the Unique Identifier of the SD Card. Mar 05 02:29:38 t0mless, EL OH EL WUT Mar 05 02:32:45 hi. ive downloaded and compiled the source. i would like to flash a samsung galaxy s with it, however fastboot says and nothing happens. what am i doing wrong? Mar 05 02:38:56 krnl: i think it's a bit more involved than that, have a chat to the kids at #android-root Mar 05 02:38:58 what's a good php/mysql forum Mar 05 02:39:05 free or paid Mar 05 02:39:15 bankai_: ill try, thnx Mar 05 02:42:25 phpbb ? Mar 05 02:43:53 lol Mar 05 02:43:56 using ActionBarCompat, can't seem to make the app icon appear in the ActionBar on < Honeycomb .. :/ help (?) Mar 05 02:43:57 phpbb is what i have now Mar 05 02:44:02 and its the reason i want something else Mar 05 02:44:05 im thinking about invision Mar 05 02:44:14 not free, but i know from experience that it works well Mar 05 02:44:36 Afzal, whats in your manifest? Mar 05 02:44:42 i didnt have to do anythign special for it Mar 05 02:44:58 theme="@style/Apptheme" if that's what you're asking Mar 05 02:45:03 w00t i just ordered by Raspberry Pi Mar 05 02:45:07 i meant more for your icon :P Mar 05 02:45:14 going to try and get android working on it Mar 05 02:45:19 do you have one definied for the activity? or just the application? or what Mar 05 02:45:27 hey canadiancow, long time no speak Mar 05 02:45:40 im like...always here Mar 05 02:45:42 :P Mar 05 02:45:48 canadiancow, the correct one. and dc_icon exists Mar 05 02:45:57 hmm Mar 05 02:46:00 not sure :S Mar 05 02:46:06 it shows up fine on ICS Mar 05 02:46:22 and even my other app's actionbar shows up fine on gingerbread. :/ Mar 05 02:46:25 I'm missing something >_< Mar 05 02:46:35 Afzal: are you using resource specifiers? Mar 05 02:47:01 what are those, Napalm ? Mar 05 02:47:44 could there be any issues when dealing with mapview and webview together on the same activity? Mar 05 02:48:25 Afzal: qualifiers Mar 05 02:48:40 i have a mapactivity and from there i want to tweet my location, i use a webview to login to tweeter but the webview never seems to show up... the user never gets to login and the app explodes Mar 05 02:48:47 Afzal: http://developer.android.com/guide/topics/resources/providing-resources.html#AlternativeResources Mar 05 02:49:19 Napalm, yes, for xhdpi, hdpi, mdpi and ldpi... Mar 05 02:50:25 from what i can see, virtually the same as the sample as well as my other app and yet not working >_< Mar 05 02:51:30 Am I right in thinking that when using GLES 2.0 you don't need to work on an instance of GL10 at all (working on the currently active context instead) and hence the GL10 params passed to Renderable methods are unnecessary. Mar 05 02:52:29 you just use GLES20.bla Mar 05 02:53:45 canadiancow, vbulletin Mar 05 02:53:59 how is it with spambots? Mar 05 02:54:09 my invision board has never been hit with a spambot Mar 05 02:54:14 my phpbb board is hit daily Mar 05 02:54:19 no idea Mar 05 02:54:33 i avoid anything php Mar 05 02:54:40 heh Mar 05 02:54:57 ive spent the last few hours trying to make an app work on a tablet Mar 05 02:55:01 like with a nice tablet layout Mar 05 02:55:05 im glad it was done with fragments Mar 05 02:55:09 JakeWharton is setActionView() supposed to replace the old actionView? Mar 05 02:55:10 but that doesnt actually make things easier Mar 05 02:55:16 yesa Mar 05 02:55:18 it was clearly designed for 1fragment per activity Mar 05 02:55:21 yesa masta Mar 05 02:55:22 This isn't Mar 05 02:55:24 Mar 05 02:55:43 canadiancow|work, fragments are for sailors Mar 05 02:55:48 condoms too Mar 05 02:56:07 I made the button just create a new animation and set the actionView instead of hiding the view Mar 05 02:56:40 and if I use invalidateOptionsMenu() before I setActionView() then it just continually layers the animation Mar 05 02:56:54 if I use invalidateOptionsMenu() after I set the action view, the animation never happens Mar 05 02:57:20 on ICS Mar 05 02:57:27 Yes, and GB Mar 05 02:57:34 natively? Mar 05 02:57:46 like, Activity + android.app.ActionBar? Mar 05 02:58:16 and ActionMenuView in hierarchyviewer has the extra animations on it, and then the normal animation in an ImageView child Mar 05 02:58:22 hey JakeWharton Mar 05 02:58:34 hey napalm Mar 05 02:58:38 JakeWharton: i tried out your ActionBarSherlock Mar 05 02:58:41 nice work Mar 05 02:58:46 thanks Mar 05 02:58:50 i hope you tried version 4 Mar 05 02:59:07 I'll try it natively with ICS Mar 05 02:59:08 not yet Mar 05 02:59:38 version 3 sucks so badly Mar 05 02:59:56 ok noob question i've managed to create a first page of an app. and i created a button. but how do i create second page and link the button to it? **** ENDING LOGGING AT Mon Mar 05 02:59:58 2012