**** BEGIN LOGGING AT Thu Jun 07 02:59:59 2012 Jun 07 03:06:00 T-Dub|DlolPics, have the button styled in xml and inflate it as needed Jun 07 03:06:41 My style refers to the xml. Jun 07 03:06:51 I'm just going past my style and changing the background to my xml Jun 07 03:06:56 And will manially set the rest :\ Jun 07 03:07:03 manually Jun 07 03:18:50 T-Dub|DlolPics: pass it as the third arg Jun 07 03:18:58 new Button(context, attrs. defStyle) Jun 07 03:19:04 That is the layout like theme Jun 07 03:19:08 I already tried that, didn't work. Jun 07 03:49:27 hello all Jun 07 03:50:12 Eclipse is driving me up the wall, its complaining that some string is not translated into my localized strings.xml (values-es) but that string does not exist... the error pointer is at some other string but description is for some old string I deleted a while ago. Cleaning the proj doesn't help. Jun 07 03:53:00 QubeZ: maybe shutdown eclipse and do a build from the command line Jun 07 03:53:08 cbuild clean first :) Jun 07 03:53:11 *build Jun 07 03:53:37 now even when I move to another branch in svn, that error follows me -- fucking a Jun 07 03:56:24 Is there any reason why calling finish() would do nothing? I made a button that just calls finish() and sometimes when you click it the screen appears to "flash" and nothing happens. It almost appears that I have two identical activities open and it closes the "top" one to only find the bottom one still open Jun 07 03:56:25 Any thoughts? Jun 07 03:57:20 Actually I have a toast that activates in the onstart Jun 07 03:57:22 T-Dub|DlolPics: maybe your activity stack is not quite what you expect Jun 07 03:57:26 and the toast flashes Jun 07 03:57:29 reshows* Jun 07 03:57:49 therefore finish() is restarting my activity? Jun 07 03:57:53 would having android:launchMode="singleTop" effect anything? Jun 07 03:58:57 yes Jun 07 03:59:35 presumably, when you finish() a singleTop activity, it will respawn ? Jun 07 03:59:36 I took it out and my activity still restarts Jun 07 04:00:00 Let me add some logs to my oncreate, see if it really is starting again after finish is being called, or if it just starts twice in general... Jun 07 04:00:01 question is, why do you set singleTop (root activity) then finish() it? Jun 07 04:00:38 singleTop was old Jun 07 04:00:52 I did have my activity stay in the background Jun 07 04:00:56 but I've transfered it to a service Jun 07 04:01:00 and never took that away Jun 07 04:01:27 Ok Jun 07 04:01:28 I think I have a hunch on what it is Jun 07 04:01:35 After my activity has windowFocus Jun 07 04:01:44 I start a thread, that is delayed for 2 seconds Jun 07 04:01:47 That loads my ad Jun 07 04:01:55 It appears that if I try to quit my app while that tread is open Jun 07 04:01:58 it just restarts? Jun 07 04:02:28 If I wait till the thread has exicuted and stopped, it quits no problems. Jun 07 04:03:35 Hm Jun 07 04:03:35 Not the case. I actually don't think I stop my thread.. Jun 07 04:03:51 does a Handler only exicute once? Jun 07 04:07:16 Something to do with my ads is fucking it up... Jun 07 04:12:03 T-Dub|DlolPics: i dunno why, but your nick always reminds me of duplo legos :) Jun 07 04:12:15 Lol Jun 07 04:12:28 I can't figure out why my app restarts when finish is called Jun 07 04:12:32 something to do with the ad though Jun 07 04:12:32 :| Jun 07 04:12:44 easy solution Jun 07 04:12:47 get rid of ads Jun 07 04:12:50 fuck ads :) Jun 07 04:12:55 Moneyyyy Jun 07 04:12:56 :P Jun 07 04:13:05 I've figured a work around though Jun 07 04:13:15 that shouldn't be necessary but works. Jun 07 04:13:27 If I move the app to back then finish it will finish Jun 07 04:13:27 and not restart Jun 07 04:13:50 I take that back Jun 07 04:13:58 the finish method is called but it doesn't finish? Jun 07 04:14:00 The fuck Jun 07 04:14:08 it's not synchronous Jun 07 04:14:16 and you are clearly doing something insane anyways Jun 07 04:14:43 Ok, I'll give you my code that does the ad. Jun 07 04:14:48 Lets see if you can figure it out :D? Jun 07 04:15:43 http://pastebin.com/V4z1u3fE that some how starts my activity again, but without calling onCreate Jun 07 04:15:43 no thanks Jun 07 04:16:17 you don't need a handler for that, you can post a delayed runnable on an activity or view Jun 07 04:16:43 Would that be causing the problem? Jun 07 04:16:54 i have no idea what the problem is Jun 07 04:18:38 Hm Jun 07 04:18:40 It isn't the ads Jun 07 04:18:42 I took it out.. Jun 07 04:19:49 It isn't my thread either. Jun 07 04:19:50 Hmm Jun 07 04:28:44 I'm doing by first android build.... its in the middle of building llvm.... any idea how llvm is used within Android? Jun 07 04:32:22 elfMobile: Renderscript uses it Jun 07 04:32:30 afaik Jun 07 04:36:24 whats a good os to develope android on Jun 07 04:36:29 win lin osx? Jun 07 04:36:42 all of the above? Jun 07 04:36:56 yeah Jun 07 04:37:04 tnzr Jun 07 04:37:27 which would you go first learn web dev or learn android? Jun 07 04:37:45 what do you mean by web dev? learning android means learning java Jun 07 04:38:02 learn web developement Jun 07 04:38:08 but what better way to learn java than learn android? :) Jun 07 04:38:39 well by web development do you mean like PHP or Ruby or Python/Django? Jun 07 04:38:56 what are you trying to accomplish? Jun 07 04:39:39 linuxuz3r: it does not hurt to be able to design and implement the whole solution : app + back end services Jun 07 04:40:04 so instead of web dev, i would say android + rest service design, and some server pieces like jax-ws Jun 07 04:40:57 web has a lot of components and languages.... html, xml, css, javascript, php, sql.... Android what do you have?... Java, a little xml, and sql if you need it? Jun 07 04:41:23 do you mean mobile web ? Jun 07 04:41:58 has anyone successfully built doom for android from source? Jun 07 04:53:04 yo Jun 07 04:58:38 My geeky brother and, ehem, sisters... Jun 07 04:58:52 ok thanks guys Jun 07 04:59:02 its just that i just graduated Jun 07 04:59:09 and after looking for a job Jun 07 04:59:24 most of the employers want webdev knowledge Jun 07 05:00:25 lamp? Jun 07 05:03:10 What is considered on/off topic here? Jun 07 05:05:40 Do more people dev on hardware, or virtual devices? Jun 07 05:06:35 hardware Jun 07 05:08:05 Thats what I use. Mostly because my system is to slow to virtual. Jun 07 05:08:12 too Jun 07 05:08:43 that x86 ICS emu is quite fast Jun 07 05:09:21 Not FAMILIAR Jun 07 05:09:26 sry Jun 07 05:10:48 this should get you familiar with it (http://software.intel.com/en-us/articles/installing-the-intel-atom-tm-android-x86-emulator-image-add-on-from-the-android-sdk-manager/) Jun 07 05:10:55 http://software.intel.com/en-us/blogs/2012/05/31/android-ics-x86-emulator-system-image-launched-2/ Jun 07 05:13:46 Preciate it. btw, when I said slow: 1.2 ghz single core athalon 1, 1gig ram. Jun 07 05:14:00 just sayin Jun 07 05:14:32 my testing device is api 8.... Jun 07 05:14:47 lol i was gonna suggest virtualbox for android but even that requires half a gig Jun 07 05:15:33 Its not even embarassing, its unny Jun 07 05:15:38 funny Jun 07 05:16:25 not in africa, usa lol Jun 07 05:17:14 * p_l|backup uses, recetly, VMwre workstation and android-x86 Jun 07 05:17:31 it's IMHO snappier than VBox Jun 07 05:19:24 I wouldn't know Jun 07 05:19:39 I am living in the stoneage here Jun 07 05:22:30 I'm new to android, but not coding. Android seems a bit obtuse; any comments? Jun 07 05:23:12 waht do you mean by obtuse in the first place? Jun 07 05:23:15 *what Jun 07 05:25:24 K, well it seems like I'm invoking entities far and above what is nessecary to accomplish the task Im doing. Jun 07 05:25:40 Maybe it makes more sense when I get to more complex stuff? Jun 07 05:26:59 Do I need ten functions, and 5 imports for a menu? I think its a bit much. But, I'm a noob. Jun 07 05:27:37 huh? Jun 07 05:27:56 override onCreateOptionsMenu(), inflate the xml Jun 07 05:27:59 like 4 imports Jun 07 05:28:00 done Jun 07 05:28:34 yeh Jun 07 05:28:49 1 method, 4 imports Jun 07 05:28:50 I need to open APK file using OSX. Any software to do that? (To actually run the application). Jun 07 05:29:07 guy try the android emulator Jun 07 05:29:09 showpackage contents Jun 07 05:29:28 unless you just want to look inside Jun 07 05:29:37 then it's just a zip archive Jun 07 05:29:45 Found it. Thank you. Jun 07 05:30:25 I guess it will make more sense later Jun 07 05:33:17 Wow. My phone has multiple copies of this app, and I can't erase... Jun 07 05:33:22 wtf Jun 07 05:37:49 mobilenoob11: maybe wait for a nexus tablet, they are supposed to be below $200 usd Jun 07 05:38:04 (for development hardware) Jun 07 05:38:27 once the android emu had bluetooth support, i'm ditching all my android devices Jun 07 05:38:32 :) Jun 07 05:38:46 well, i only have one anyhow XD Jun 07 05:38:49 I would like to say now that... if anyone happens to be going to I/O... and there happens to be 7" vanilla quad-core tablets... ;) Jun 07 05:39:13 yeah, i heat they will be quad core and android 4.1 Jun 07 05:39:16 *hear Jun 07 05:39:27 sucker for acer, which is basically doing the same thing Jun 07 05:40:00 In a patch that adds a kernel module, Jun 07 05:40:00 I see that it has the requirement "EXPERT". How do you enable this feature? Jun 07 05:40:46 I've happily got paypal waiting :) Jun 07 05:40:55 "Riot reported at Apple partner Foxconn's Chengdu factory" Jun 07 05:40:56 Borillion: you know this isn't the right channel for that... Jun 07 05:40:57 :O Jun 07 05:41:54 oh sorry didnt notice it was the wrong one, I thought I was in root Jun 07 05:42:14 heh, i used to get confused ebwteen foursquare and square Jun 07 05:42:56 I used to get confused between phoenix and the surface of the sun Jun 07 05:43:05 ha Jun 07 05:43:05 I genuinely get confused by people who re-ask the same question over days... if you've asked a couple of times, and got no (good) answer, the chances are you're wasting your time and should be looking elsewhere Jun 07 05:44:36 I just learned that, if you declare intent filters in manifest wrong w multiple activites, things get weird. Jun 07 05:44:46 "How the 'all-new' Foursquare is using big data to figure out what you'll crave next" , yeah "fuck you and all your squares" Jun 07 05:45:04 hey guys, anyone know why my location is returning E7 and E8 numbers instead of E6? Jun 07 05:45:06 o_O Jun 07 05:45:14 mmm predictive statistics Jun 07 05:45:19 mobilenoob11: yeah, doing things wrong makes things weird :D Jun 07 05:45:37 ooh.. i think i got it Jun 07 05:45:39 Yeah, I suck Jun 07 05:45:51 since i'm at 34, 119 Jun 07 05:46:12 now I know where you live! Jun 07 05:46:14 But I got my dev platform and testing device free, then taught myself java Jun 07 05:46:16 I'm really at 34E6, 119E6 Jun 07 05:46:21 ;) Jun 07 05:46:33 for years I've been trying to pitch a game that uses heavy prediction to tailor to the player, but everyone looked at me like I was crazy and it was impossible... now anyone and everyone is trying to use predictive statistics for everything Jun 07 05:47:20 its all the rage, and hey, not everyone can get that darpa contract. Jun 07 05:51:15 math has always been useful ;) Jun 07 05:51:26 I loves mafs Jun 07 05:52:07 Literacy? pft! MAFS! Jun 07 05:53:57 At this year's Mobile World Congress, Facebook announced plans to implement a "streamlined billing" system that would allow users to charge purchases of Facebook Credits directly to their cellphone bills." Jun 07 05:54:05 anybody know what the significance of this is ? Jun 07 05:54:20 what is a Facebook Credit? is this something like google wallet ? Jun 07 05:54:41 nope, more like xbox points Jun 07 05:54:48 ok Jun 07 05:54:56 all transactions on facebook - mainly in-game purchases - now have to be made with credits Jun 07 05:55:14 ooh Jun 07 05:55:18 I know... Jun 07 05:55:19 i see. obviously i do not use fb :) Jun 07 05:55:29 Gives Facebook the ability to print currency Jun 07 05:55:56 In a round a bout way Jun 07 05:56:25 Makes FB like a bank Jun 07 05:56:36 slick.... Jun 07 05:56:37 so linkedIn and eHarmony had password compromises today. Jun 07 05:56:42 good Jun 07 05:57:19 maybe some security jobs will open up Jun 07 06:06:19 wait, was i supposed to pretend thats bad? Jun 07 06:12:59 g00s: did you also read that linkedin harvest calendar data with their app? =) Jun 07 06:13:12 Whatr the diff if I set the content of an activity with setcontenview(r.layout.webview) or if I set it by setcontentview(webview)? Jun 07 06:13:46 R is a class containing some ID's Jun 07 06:13:48 the former inflates the layout for you Jun 07 06:14:04 assuming the former is a webview by id in layout, and the latter is, a webview in teh activity class with the name webview. Jun 07 06:14:29 Read what JakeWharton said then. Jun 07 06:14:33 and the latter? Jun 07 06:21:17 so if the main activity calls setcontentview(r.layout.webview), that inflates the layout, but if that activity call startactivity for result, the called activity can setcontentview() without inflatinga new layout? Jun 07 06:22:55 This si what i mean by obtuse. Jun 07 06:23:09 Just to open a new activity.. Jun 07 06:23:35 whatever you're doing, you're over thinking it Jun 07 06:23:50 I hope so Jun 07 06:24:31 I'm just making an activity with a webview, option menu, then focus goes to second webview Jun 07 06:24:45 so much bs Jun 07 06:24:51 ug Jun 07 06:26:01 Least favorite language/platform to date Jun 07 06:28:28 Im hoping at some point this will all become clear, but I don't know Jun 07 06:28:46 C++ was easy compared to this Jun 07 06:30:30 I'll just shutup now Jun 07 06:35:00 ... C++... easy... *snrk* Jun 07 06:36:14 mobilenoob11: it is hard to learn new framework :/ Jun 07 06:36:58 This doesn't make sense. Every other language or platform make sense Jun 07 06:38:16 Why, are you saying C++ is hard? Jun 07 06:41:05 wow. Jun 07 06:42:13 mobilenoob11: you're comparing a programming language to an system platform/application framework? of course the learning the syntax of a programming language is simple in comparison. Jun 07 06:42:17 :) Jun 07 06:44:23 i agree, thats why I was confused. Jun 07 06:45:27 mobilenoob11: C++ is byzantine. And growing. Jun 07 06:45:29 appel1: yeah, i did read that Jun 07 06:45:38 Either way, I will not be defeated by a silly Android Jun 07 06:46:17 though I have to admit, when you limit yourself to writing only simple templates and use some crazy libraries (coughboostcoughc++11cough) it gets somewhat palatable Jun 07 06:46:38 I don't want to see a G++ compile error from such code, though Jun 07 06:46:42 g00s: not that many users would care I guess Jun 07 06:46:43 yeah until you get 4000 lines of template instantiation errors :) Jun 07 06:47:00 g00s: caused by trying to negate a pointer to class Jun 07 06:47:15 lol Jun 07 06:47:15 p_l|backup: i was pretty impressed with their state machine thingy and 'spirit' Jun 07 06:47:18 yup Jun 07 06:47:43 g00s: and the template involved was part of G++, because someone templated if Jun 07 06:48:07 or rather, boolean operations on pointers to classes got templated in some internal header Jun 07 06:48:39 I love how the sample code on the developer.android site doesn't work. not that sample code ever does... Jun 07 06:49:30 what part doesn't? Jun 07 06:50:21 lol, very little of it. I have never seen sample code without mistakes Jun 07 06:51:00 ok. which ones? Jun 07 06:52:11 I didn't make a log while doing the tutorials, I just figured that fixing it was a rite of passage or something Jun 07 06:52:58 now I'm on google's site for openid, thier sample code is hilarious Jun 07 06:53:27 i'm reasonably confident the tutorials are accurate and you, being new to the platform, were doing something incorrectly Jun 07 06:53:39 lol Jun 07 06:53:43 thats why i fixed it Jun 07 06:54:00 It didn't work, I troubled shoot it, i fix, it owrked Jun 07 06:54:12 I wish it was me Jun 07 06:54:18 Thats easy to fix Jun 07 06:54:40 I seriously thought they did it on purpose Jun 07 06:54:51 PEBCAK Jun 07 06:56:11 I really hope I am overthinking what I doing now. Jun 07 06:56:16 This si silly Jun 07 06:57:58 i do believe you are Jun 07 06:58:14 K Jun 07 06:58:19 thats nice Jun 07 06:58:28 I will shut up Jun 07 06:58:50 I was hoping for some help, but I can shut up Jun 07 06:59:13 I haven't seen a reasonable question Jun 07 06:59:42 that's what we're hear for Jun 07 06:59:49 here, colloquy sucks Jun 07 07:00:16 what about my question involving why a main activity inflates a layout, and a startactivityforresult does not? Jun 07 07:00:31 Or my question about why this framework seems obtuse? Jun 07 07:00:46 I'm sure these both have good answers Jun 07 07:01:06 layout inflation is explicit Jun 07 07:01:10 you tell it to Jun 07 07:01:38 startActivityForResult simply fires an Intent Jun 07 07:01:46 they two are orthogonal Jun 07 07:02:05 the framework seeming obtuse is your perception from what is almost literally no exposure to it Jun 07 07:02:42 i suggest you read the documentation on the Activity class Jun 07 07:02:50 already did Jun 07 07:03:32 mobilenoob11: did you ever used a component-oriented system? CORBA, DCOM, J2EE? Jun 07 07:04:49 Short answer yes. Jun 07 07:05:31 I must not be that unexposed, I did fix the tutorials mistakes Jun 07 07:05:42 of which you failed to cite Jun 07 07:05:57 cause a common issue I have seen is people expecting things to happen like in "normal" application Jun 07 07:05:57 yes, I didn't realised anyone cared enough to ask Jun 07 07:06:09 mobilenoob11: it was implied at least once Jun 07 07:06:19 ehats A:\\"normal" Jun 07 07:06:23 JakeWharton: for the new action bar sherlock do i still have to add the support library? Jun 07 07:06:23 whats normal Jun 07 07:06:32 f2prateek: yes, it is a dependency Jun 07 07:06:41 it's included in the libs/ folder of the library Jun 07 07:07:21 mobilenoob11: errors in the core documentation should be filed as bugs Jun 07 07:07:34 k my bad see that, coz i remember having to add it myself in the 4.0 but i got it compiled without errors without adding the library myself Jun 07 07:07:48 just saw it in the libs Jun 07 07:07:52 mobilenoob11: single-threaded UI loop etc. Jun 07 07:07:55 thanks Jun 07 07:07:57 you may have to add it to your own project as well if you're using Eclipse Jun 07 07:08:46 mobilenoob11: not a group of different objects with separate lifecycles that are essentially independent from each other Jun 07 07:08:52 Yeh, I'm having trouble w that right now. Cant get multi activities to function, and as usual, sample code has so many mistakes is useless Jun 07 07:09:18 which sample code would that be again? Jun 07 07:09:39 not yours, so don't worry Jun 07 07:09:46 are you certain of that? Jun 07 07:09:58 yes Jun 07 07:10:07 I'm not insulting your code Jun 07 07:10:11 not only is Android an open source project, this channel is also frequented by numerous Googlers Jun 07 07:10:33 so, in fact, I may have written this phantom tutorial with all these bugs you keep referring to in the present tense but fail to produce Jun 07 07:10:59 cool, also wondering if i have an application that previously did not use abs, if i add abs as a library now and just change the stuff like Activity to SherlockActivity and getFragmentManager to getSupportFragmentManager would it theoretically work? Jun 07 07:11:20 f2prateek: yes, and menu imports as well Jun 07 07:11:36 and SherlockFragmentActivity Jun 07 07:11:49 oh yeah! Jun 07 07:12:14 awesome, good to know! good job on abs jake :) Jun 07 07:12:52 thanks :) good luck. Jun 07 07:13:02 Ok, so I'm an idiot; Thats totally fine. I will go find info elsewhere. Jun 07 07:16:54 mobilenoob11: where's the tutorial you're having trouble with? Jun 07 07:20:48 hi #android-dev Jun 07 07:21:28 I'm done, I can do this on my own. Jun 07 07:25:28 Thanks, kind of. Jun 07 07:26:00 gmornin Jun 07 07:27:14 I wonder if im better off continuing down the path of SVG's or just making a bigger png and downsizing it lol Jun 07 07:27:37 Exano: for what type of image? Jun 07 07:27:42 what are the contents? Jun 07 07:27:49 i heard a discussion about that last night, will see if i can grab one of the links that looked relevant Jun 07 07:28:09 Well I'm working on rendering a handful of sprites and a few tiles Jun 07 07:28:18 we use SVG for text sometimes Jun 07 07:28:18 But I don't want them to look awkward on different phones, you know Jun 07 07:28:57 http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html Jun 07 07:29:00 Don't really know how to go about doing that other than making a file thats too big and dealing with that later, using SVG or making a bunch of different images :P Jun 07 07:29:26 robb_www: thanks for the link, i'll read it now :) Jun 07 07:29:34 can you use sprites and then pre-process them to raw Bitmaps to fix the device on first-launch? Jun 07 07:29:38 er, SVG Jun 07 07:29:45 *fit Jun 07 07:30:18 SVG's performance isn't going to be great on mobile if you're constantly rendering Jun 07 07:31:07 there were two different streams of advice, your advised to hand-craft the images for each resolution because you have the opportunity to make sure they look right, and you wont get much of a memory/processing performance penalty for using them, on the other hand if its unsuitable to have so many files at multiple resolutions as your apk is getting unwieldly, someone else suggested you could programmatically rescale some of your graph Jun 07 07:31:24 yeah thats probly the best approach Jun 07 07:31:40 I love you guys, you're my heroes Jun 07 07:33:19 how do you use exp in android? Jun 07 07:33:30 Math.exp Jun 07 07:33:41 Math.pow? Jun 07 07:33:53 isn't that java? Jun 07 07:34:05 Android has a very large subset of the Java APIs Jun 07 07:34:15 *facepalm Jun 07 07:34:28 Math.exp(2,2) == 4? Jun 07 07:34:34 pow, yes Jun 07 07:34:41 thx Jun 07 07:35:06 ash pow.. how do you use exp? Jun 07 07:35:16 is that e^(x)? Jun 07 07:35:25 i believe so Jun 07 07:35:29 sweet Jun 07 07:35:33 thanks again Jun 07 07:35:54 http://developer.android.com/reference/java/lang/Math.html#exp(double) Jun 07 07:36:01 no problem Jun 07 07:37:38 wish more languages had special functions in their math libs Jun 07 07:38:00 atleast give us the gamma functions to play with Jun 07 07:38:28 you create them :) Jun 07 07:38:38 btu then why not matlab? Jun 07 07:39:10 apache commons has a lot of it covered, i just think it would be nice to have them in the core libraries Jun 07 07:39:32 matlab is great for that true Jun 07 07:41:05 i suppose one issue is in some cases you can either have a rough approximation, or a slightly more advanced approximation, and since we get to choose our implementation it should be clear what we are in store for Jun 07 07:51:24 Hi, I'm trying to start a hardware accelerated emulator on Linux. here's the output of "emulator -avd x862.3.3 -verbose -wipe-data -qemu -m 256 -enable-kvm": http://gluegadget.com/log Jun 07 07:51:34 it just hangs there Jun 07 07:53:09 although i have nothing to contribute re: the emulator, in the interrim, i find android x86 in virtualbox far nicer to work with, with the only disadvantage being no real support for screen rotation (so you have to turn your head sideways to navigate sometimes) Jun 07 08:03:16 hmm... I wonder if there's any variant of SurfaceFlinger that supports X11 Jun 07 08:30:23 Hi Jun 07 08:31:00 Do you know if there is a Cocoa Async Socket java implementation? Jun 07 08:37:50 Do you know if there is a Cocoa Async Socket java implementation? Jun 07 08:41:26 Do you know if there is a spammer in this channel? And nope, I don't know if there is Cocoa Async Socekt java implementation Jun 07 08:42:24 I only see a lot of people leaving this channel Jun 07 08:42:48 i see a lot entering, we must be in parallel universes Jun 07 08:43:02 either that or our clients are configured differently ;) Jun 07 08:43:15 And I see you have read my message, so I'm sure I can talk in this channel. Jun 07 08:44:38 Ok. I've only seen Remote host closed the connection. Jun 07 08:45:30 im on pidgin, it isnt great at handling the user list Jun 07 08:45:33 VansFannel: ignore join/parts. Also, Cocoa libs don't necessarily exist on Android, so the correct question would be searching API docs for async sockets, then asking it here Jun 07 08:45:48 VansFannel: Also, be prepared to wait a long time on IRC for an answer Jun 07 08:45:58 ok Jun 07 08:46:03 Thanks! Jun 07 08:46:18 fortunately for you, this channel is active enough that you're either ignored, or answered within span of *hours*, not several days later Jun 07 08:46:30 p_l|backup: ha ha ha Jun 07 08:47:00 p_l|backup: ok, so I'm searching for a Async UDP socket implementation. Jun 07 08:47:16 seriously, I have seen question and answer separated by multiple "date changed" messages Jun 07 08:48:13 p_l|backup: ok, I will try to do it by myself. Someone has suggest me to use Netty. Jun 07 08:48:25 VansFannel: you have classic java.net sockets and java.nio Jun 07 08:50:33 for UDP, the DatagramSocket class in java.net provides a function to get a DatagramChannel for use with NIO, apparently Jun 07 08:51:09 Searching on Google for android async udp sockets I get results for .NET implementations!! Jun 07 08:52:59 also, I'd like to inform you that you can't expect mobile providers, and sometimes various wifi installs, to actually provide internet access Jun 07 08:53:06 UDP might not work Jun 07 08:55:07 I'm migrating an iOS application to Android and I have found these CocoaAsyncSocket classes. Jun 07 08:55:57 Hi! Jun 07 08:56:15 So, what's the proper way to develop apps with tabbed interface? Using fragments? Jun 07 08:56:43 what should I use to align these in 2 columns instead of one https://dl.dropbox.com/u/19153690/q.png Jun 07 08:56:45 so there is 4 in each Jun 07 08:57:02 my current 3G provider doesnt pass through all the headers with its "transparent" HTTP proxy, was a useful lesson Jun 07 08:57:56 mech0z, you probably want to look at tablelayout and relativelayout for starters Jun 07 08:58:17 I'll come back later. Jun 07 08:58:20 See you! Jun 07 09:01:55 robb_www: does it also put your phone number in the headers? :D Jun 07 09:02:01 there was at least one proxy that did so Jun 07 09:02:13 thats just awful, i hope not Jun 07 09:02:16 will check now Jun 07 09:03:35 nope the headers look fine Jun 07 09:04:24 So, before I initiate a fragment using Fragment.instantiate(), do I need to register it somewhere or whatnot? Jun 07 09:13:36 hello, everyone, does anybody have heard about the GTS and ACT test of android compatible test? Jun 07 09:15:43 nop but then again I first touched an Android device yesterday evening... Jun 07 09:16:30 liuyq: http://source.android.com/compatibility/index.html Jun 07 09:17:41 p_l|backup, there are only CTS and CTS verifier. Jun 07 09:19:11 p_l|backup, what the information I know is that the GTS and ACT are the tools provided by google and similar to CTS and CTS verifier Jun 07 09:22:07 can I make symbolic links of my some of my app assets in its data directory? Jun 07 09:27:16 * Zharf wonders if he always asks too difficult questions Jun 07 09:29:12 hey guys anyone find that sometimes a HttpURLConnection just failed for no reason at all - how do you deal with this? Jun 07 09:37:10 question: let's say i have 2 buttons and i want them to occupy the same row and half width of the screen... how can i do that? Jun 07 09:40:40 haven't heard of either GTS nor ACT, then Jun 07 09:41:22 Has anyone found that that the Linear Accelerometer Sensor is representative of device orientation, rather than linear motion? Jun 07 09:41:44 gaz, add them both to a linear layout and set their weight to the same value Jun 07 09:42:24 youll want to set the linearlayout orientation to be horizontal Jun 07 09:44:03 i put android:layout_weight but eclipse says it's not valid command Jun 07 09:44:46 oh!! linear.. ok Jun 07 09:49:11 robb_www: what value should i write for layout_weight? 50? Jun 07 09:49:29 what does weight mean? %? Jun 07 09:49:49 yes Jun 07 09:49:51 kind of Jun 07 09:51:12 to make buttons occupy 50% of row space which value should i write? Jun 07 09:51:24 http://stackoverflow.com/questions/3995825/what-does-androidlayout-weight-mean Jun 07 09:52:03 its really just a weight, not a percentage Jun 07 09:52:59 like i said before, set them both to the same value Jun 07 09:53:20 providing its >=0 you should be fine Jun 07 09:53:28 ok they are ratios then Jun 07 09:53:30 oops, i mean >0 Jun 07 09:53:44 if i set both to 1 it's ok? Jun 07 09:54:03 yes, are you not using the view designer in eclipse? Jun 07 09:54:14 layout editor, whatever Jun 07 09:55:47 ahhh width should have been 0dp!! Jun 07 09:56:21 that's why Jun 07 09:56:24 ok Jun 07 09:56:26 thanks Jun 07 09:57:45 does this work for table layouts too? Jun 07 09:58:09 hmm no idea what to do when http connection just fails every time Jun 07 10:00:17 honestly ive never actually used one @ table layouts Jun 07 10:00:40 gaz, due to lack of connection, or something else? Jun 07 10:03:23 gaz`: wongk had a page concerning this issue. wait a sec. Jun 07 10:03:54 thanks any help would be good Jun 07 10:03:59 my client cant test the pap it wont load anything Jun 07 10:04:04 always returning null, works fine for me here tho Jun 07 10:04:16 app* Jun 07 10:04:17 hehe Jun 07 10:04:23 and he needs to seeit now Jun 07 10:04:24 grr Jun 07 10:04:30 gaz`: http://android-developers.blogspot.ch/2011/09/androids-http-clients.html Jun 07 10:04:56 thanks very much! Jun 07 10:06:09 ah Jun 07 10:06:13 doesnt really help Jun 07 10:06:17 it doesnt admit to the issue Jun 07 10:06:39 what is the fourcc format of fb0 in android? Jun 07 10:06:48 Have any of you guys used phonegap (or cordova, as it's called now) for Android development? Jun 07 10:07:29 gaz`: what's the issue then? Jun 07 10:07:52 url.openConnection Jun 07 10:07:56 seems to return null Jun 07 10:08:05 or basically fails Jun 07 10:08:11 for him Jun 07 10:08:13 worksfineo n my phone Jun 07 10:08:21 but i have seen it happen in the past quite often Jun 07 10:08:27 usually i just retry in a loop til it works Jun 07 10:08:33 gaz`: what android version is he running? Jun 07 10:09:03 i think 4 Jun 07 10:09:30 gaz`: you think? :3 Jun 07 10:09:42 does it matter really? Jun 07 10:09:49 surely its not bugged in ics Jun 07 10:10:48 gaz`: well it is in pre gingerbread. well, anyway can you pass some actual code? are you just calling openConnection once? maybe a race condition. Jun 07 10:11:27 http://pastebin.com/Tp450Yzu Jun 07 10:11:37 thats what fails, catch is called Jun 07 10:11:44 not a race condition as its not threaded stuff Jun 07 10:11:55 altho i try again and again in a loop but i have a small sleep not sure if it helps Jun 07 10:12:21 client is on 4.0.3 Jun 07 10:13:27 gaz are you sure the client has wifi / packet data enabled? Jun 07 10:14:41 no Jun 07 10:14:44 i havent extensively tested my own code for this scenario, but when I attempt to download files without a connection my own code currently hangs, never leaving the AsyncTask handling the download Jun 07 10:14:47 wouldnt 3g do it? Jun 07 10:15:14 gaz`: yes but he still needs to enable data. Jun 07 10:15:17 gaz, yes, but you can disable data quite easily, and if not he atleast needs coverage Jun 07 10:15:52 you could see if you can replicate the behaviour by switching off data on any devices your using for testing Jun 07 10:15:56 my last app is working tho somehow Jun 07 10:16:06 almost same code Jun 07 10:16:10 different server api tho Jun 07 10:16:14 and he tried it recently? Jun 07 10:17:13 gaz`: this is how I get data: http://pastebin.com/vNc2hrQw Jun 07 10:17:43 I'm creating folder (in app) in /mnt/sdcard/ on Galaxy Nexus but it's not visible when mounting the device. How to make it visible? Jun 07 10:18:06 robb_www yeh he just tried it a second ago Jun 07 10:18:15 this is problem only with the Android file transfer thingie, not when mounting the USB mass storage on the devices that allow it Jun 07 10:18:16 I have an activity with two brands (and two different associated themes), the activities are the same... and I have a "switch between button" brand in every activity. I would like to maintain the two brands in different tasks. I can't use taskAffinity because the activities are the same, but apparently there's no way to define the affinity programmatically... do you have any suggestion or this is just not possible? Jun 07 10:18:22 gaz, damn, doesnt sound like that issue then Jun 07 10:18:37 <`z> aolin, mounting the device to? Jun 07 10:18:43 maybe i did change some stuff but def not that method i pasted Jun 07 10:19:25 z: I'm mounting the device on windows PC Jun 07 10:19:31 <`z> MTP? Jun 07 10:19:46 it shows up folders that I create manually Jun 07 10:19:51 but not the once I create from my app Jun 07 10:19:54 gaz`: the one I posted above uses the apache client. if you want to give it a go, at the end just convert the byte array to string Jun 07 10:20:13 thanks i guess ill have to give it a go Jun 07 10:20:16 aolin can you see the folder from terminal on the device / adb shell? Jun 07 10:20:26 yes just fine Jun 07 10:20:56 I need my users to access it when they mount their device storage to pc Jun 07 10:21:07 but somehow on galaxy nexus it's hidden Jun 07 10:22:40 from "ls -la" it looks just as any other folder Jun 07 10:22:46 just not visible when I mount to windows Jun 07 10:23:56 fmauro whats USER_AGENT in ur code? Jun 07 10:24:16 gaz`: A string of your choice, to identify the client to the server Jun 07 10:24:22 ok Jun 07 10:24:34 gaz`: that's where browsers put "Mozilla Firefox 5.0/blablabal" Jun 07 10:25:44 i see Jun 07 10:25:49 trying ur method now on my device Jun 07 10:26:11 also if I create the directory from shell, it's not visible Jun 07 10:26:16 wtf Jun 07 10:26:26 is there some trick involved Jun 07 10:28:27 still works here lets see if it works for him fmauro Jun 07 10:28:34 how does one change the frequency of gps updates? Jun 07 10:28:43 or is that tied into onLocationChanged? Jun 07 10:28:47 gaz`: If not, it's really probably a connectivity issue Jun 07 10:29:24 ah, 5 meters Jun 07 10:29:30 any way i can turn that down? Jun 07 10:30:44 mm got it Jun 07 10:35:50 fmauro still doesnt work for him, he says he only has wifi no sim but that shoudl be ok right Jun 07 10:36:45 gaz`: should be fine yes, but does he actually have connectivity to WAN? can he browse the web through wifi? Jun 07 10:37:56 has anyone used bing web search api ? Jun 07 10:38:14 yes he grabbed the app from dropbox Jun 07 10:39:09 gaz`: hmmm, nothing else comes to mind right now... Jun 07 10:39:15 what a nightmare eh Jun 07 10:39:47 anybody ever read 'proust and the squid' ? Jun 07 10:40:09 <`z> prousting the squid? Jun 07 10:40:28 :| Jun 07 10:41:56 gaz`: I'm just gonna ask some more basic stuff, don't be offended :) you have the ACCESS_INTERNET permission in the manifest? Jun 07 10:42:10 yeh its in there, unless he removed but i already asked him that Jun 07 10:43:23 gaz`: does this throw an IOException? Jun 07 10:43:41 im just catching a general exception actually Jun 07 10:43:43 but it throws one Jun 07 10:44:15 gaz`: using your old code, you could use getErrorStream() to determine what caused the error Jun 07 10:44:24 GOOD POINT Jun 07 10:55:43 where can I find the aidl tool source code? Jun 07 11:05:18 still no luck Jun 07 11:05:23 on either his tablet or his phone.... Jun 07 11:05:44 gaz`: neither stacktrace nor getErrorStream returned info? Jun 07 11:05:56 hes testing that version now Jun 07 11:06:00 forgot about stacktrace Jun 07 11:12:48 Anybody know if facebook search api exists ?if it does is free ? Jun 07 11:15:34 * Zharf is annoyed that he can't get a FileChannel from compressed asset files Jun 07 11:21:35 why are my native source files included in my apk :o Jun 07 11:22:11 Zharf: as a resource? Jun 07 11:22:28 they're not in res/, no Jun 07 11:23:55 they increase my apk file size by about 1MB :o Jun 07 11:24:40 and I see no reason for them being in there Jun 07 11:30:26 gaz if you find the problem id be interested to know what was happening Jun 07 11:30:38 still strugglign here Jun 07 11:30:43 wont work on his 2 devices Jun 07 11:30:45 :-( Jun 07 11:30:49 works fine on my 3 Jun 07 11:31:01 hes gone to dinner now Jun 07 11:31:07 hopefully itll just work when he returns.. Jun 07 11:31:56 'Microsoft shuts HTC out of building Windows 8 tablets' … poor htc Jun 07 11:32:40 hmm looking for a windows irc client like limechat :/ Jun 07 11:32:42 Zharf: where did it put those source files? Jun 07 11:32:44 (in what directory?) Jun 07 11:33:23 mikedg: i used hydrairc, don't know if its like limechat Jun 07 11:33:51 like huyrda irc is one window, the bottom half shows chat from all other channels and top half shows your active channel Jun 07 11:34:21 looks like hydra hasn't been updated in a long time :( Jun 07 11:35:46 hrnt, they're all under jni/ Jun 07 11:35:50 in various directories under there Jun 07 11:35:56 http://pikersden.eu/~eclipser/source_files_in_apk.png Jun 07 11:36:48 yeah hydra looks poopy Jun 07 11:36:54 just downloaded it and it has a ton of coming soons :/ Jun 07 11:38:57 gaz`: let us know what you find, if you do. Jun 07 11:39:28 hrnt, I read your question wrong apparently, but the screenshot answers it :p Jun 07 11:40:35 will do fmauro, if u have any more ideas let me know Jun 07 11:40:37 im worried Jun 07 11:42:58 hrnt, hm, hold on, I think I may be on to something Jun 07 11:44:47 hrnt, yeah, got it... in my IDEA I had a native source directory marked as source directory and it added it to the apk... Jun 07 11:44:50 silly IDEA Jun 07 11:45:52 glad I didn't include all of the source directories Jun 07 11:46:00 I do have 73MB of them.. Jun 07 11:46:27 :) Jun 07 11:48:37 thats a lot of sauce Jun 07 11:51:08 I take a picture, save it to the local folder, and get it back to show it off in an ImageView. Only problem is that it is rotated 90 degrees in the ImageView. Any ideas? Jun 07 11:54:56 I think I got it, never mind. Jun 07 11:56:33 in a toast, should i add a dot at the end of the message? Jun 07 12:01:13 osxorgate: you mean like a full stop? Jun 07 12:01:28 This is more a question of English usage. Jun 07 12:01:34 Like: "Taking picture failed." Jun 07 12:02:01 That is a complete sentence. I would put a full stop at the end of it. Jun 07 12:03:06 Pick a method and be consistent. Nobody will notice. Jun 07 12:03:27 FunfYears: but what is the Google Design standard in Toasts? Jun 07 12:04:56 http://developer.android.com/design/style/writing.html Jun 07 12:09:33 I can't find anything about Toasts in particular, and the examples they give are inconsistent. Jun 07 12:10:24 FunfYears: the toast shown on http://developer.android.com/design/patterns/notifications.html uses punctuation Jun 07 12:10:25 all writing examples have full-stop at the end of sentences though Jun 07 12:11:34 http://developer.android.com/images/toast.png Jun 07 12:11:35 this one too Jun 07 12:12:26 I think that settles it. Jun 07 12:13:36 hi all, does anyone have an idea why my content that i run from apache or such.. it has a lot of js and such and i have in my webview enabled javascript.. i just get a spinner, and content never shows up on webview or android browser, but it works on firefox for example.. does anyone have an idea about that? some custom webview wrapper? Jun 07 12:14:45 anyone got any good sample programs sites Jun 07 12:15:45 I want to be able to display a picture but play different sounds on screen press on the different picture areas is there any code i could re-use Jun 07 12:25:21 bit quiet in here Jun 07 12:27:10 so I'm getting a whole bunch of "ERROR/libEGL(1846): called unimplemented OpenGL ES API" in my application. is there a way I can find out exactly which API it's complaining about? Jun 07 12:28:45 it doesn't spit out any more specific information than that? Jun 07 12:31:05 wongk: afraid not Jun 07 12:31:31 I'm using ES 1.1, but strangely I only get the error if I target a newer SDK version Jun 07 12:31:35 then you'll have to step through your application until you see that message logged Jun 07 12:48:38 well apparently the problem is glColor4f Jun 07 12:48:47 and glVertexPointer Jun 07 12:49:20 I wonder if I ended up with ES 1.0 instead of 1.1 somehow Jun 07 12:55:10 hmm network issue still happening on clients galaxy tab and htc one x, simply wont connect to the feed, yet it works on their desire HD Jun 07 12:55:17 g+ app Jun 07 12:55:20 the sliding menu on the side Jun 07 12:55:24 how does that work Jun 07 12:56:40 gaz`: ok what is your target/min/maxSDK and whats your build-target version? Jun 07 12:56:50 never set a maxSdkVersion Jun 07 12:56:50 ever Jun 07 12:56:51 ever Jun 07 12:57:06 Jun 07 12:57:09 eva! Jun 07 12:57:27 my build target is set to 11 Jun 07 12:57:35 set it to 14+ please Jun 07 12:57:39 i dont wnat the stupid menu button on my phone Jun 07 12:57:46 14+ ? Jun 07 12:57:50 with the plus? Jun 07 12:57:54 gaz`: 14 or 15 Jun 07 12:57:58 no, i mean a number >= 14 Jun 07 12:58:05 i prefer 27 Jun 07 12:58:08 i can set to 15 Jun 07 12:58:11 if it helps Jun 07 12:58:19 hi Jun 07 12:58:22 probably does help your issue, but other issues :P Jun 07 12:58:26 er, doesn't Jun 07 12:58:29 canadiancow|work: why wouldn't you set a maxsdk? if I compile two versions, one with actionbar , one without? Jun 07 12:59:08 fmauro: that's an unusual case, do you have a reason for that? Jun 07 12:59:12 because never versions area always backwards compatable Jun 07 12:59:23 newer Jun 07 13:00:08 fmauro: actionbarsherlock Jun 07 13:00:10 you dont do that Jun 07 13:00:11 ever Jun 07 13:00:12 ever ever ever Jun 07 13:00:17 or i get upset Jun 07 13:00:22 wongk: If I use functions of android, which are not available in those particular versions, like Canvas.Paint.setHinting for example, I still want to serve other users. Jun 07 13:00:22 go read the docs on maxSdkVersion Jun 07 13:00:30 then learn how to do it properly Jun 07 13:00:40 canadiancow|work: you get upset, oh wow. okay ^^ Jun 07 13:00:48 u dont want to make canadicancow|work mad, hes canadican :\ Jun 07 13:01:10 try tab complete Jug6ernaut Jun 07 13:01:15 you spelled both of those wrong Jun 07 13:01:19 fmauro: there are ways to limit your usage of such functions to the platforms that support them Jun 07 13:01:30 did i type it out wrong? Jun 07 13:01:31 * Jug6ernaut fails Jun 07 13:01:33 like, say, an if statement Jun 07 13:01:55 wongk: you mean handling it with the SDKVersion ints and acting accordingly? Jun 07 13:01:58 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { /* do some actionbar stuff */ } else { /* do some other stuff */ } Jun 07 13:02:07 fmauro: yes Jun 07 13:02:09 canadiancow|work: what I just said yes Jun 07 13:02:16 that way you dont have >9000 code bases Jun 07 13:03:08 abs & dont care Jun 07 13:03:11 okay, I just have one app that uses this and the code differs a great deal, I actually have two separate git branches that I just merge the changes in base into Jun 07 13:03:40 canadiancow|work, wongk: ^ Jun 07 13:04:21 canadiancow|work, wongk: imo my code stays more readable. Jun 07 13:04:31 it's up to you if you want to maintain 2 different versions... as long as you know there are what are generally considered better ways Jun 07 13:04:39 yea but it's 2 now Jun 07 13:04:43 what happens when api 16 comes out Jun 07 13:04:44 then you have 3 Jun 07 13:04:53 and 17 gives you a fourth Jun 07 13:05:06 canadiancow|work: but I don't set a maxSDK on the 13+ build Jun 07 13:05:17 you're missing my point Jun 07 13:05:18 canadiancow|work: because all the functions that I need are supported Jun 07 13:05:55 ok do it your way then Jun 07 13:06:19 android:maxSdkVersion Jun 07 13:06:20 Warning: Declaring this attribute is not recommended. First, there is no need to set the attribute as means of blocking deployment of your application onto new versions of the Android platform as they are released. By design, new versions of the platform are fully backward-compatible. Your application should work properly on new versions, provided it uses only standard APIs and follows Jun 07 13:06:20 development best practices. Second, note that in some cases, declaring the attribute can result in your application being removed from users' devices after a system update to a higher API Level. Most devices on which your application is likely to be installed will receive periodic system updates over the air, so you should consider their effect on your application before setting this Jun 07 13:06:20 attribute. Jun 07 13:07:59 canadiancow|work whenu find out about g+'s menu let me know Jun 07 13:08:30 * Jug6ernaut thinks it might just be a context menu with an animation applied Jun 07 13:08:36 not that i know how to do that xD Jun 07 13:08:38 oh i didnt even mean that detailed Jun 07 13:08:43 i got the info i wanted Jun 07 13:08:57 someone was telling me it was one activity but it was just fragments moving around Jun 07 13:09:02 but each option launches a new activity Jun 07 13:09:23 canadiancow|work: I see your point now. You are telling me that, by not handling the versions in the code, my app might get deleted when the device updates / passes my maxSDK threshold. It is a good point. I will handle it differently if this issue ever arises again. Jun 07 13:12:10 canadiancow|work the menu is a fragment? Jun 07 13:12:26 nm ofc, that makes sense. Jun 07 13:12:46 i didnt say that Jun 07 13:12:53 i meant every screen Jun 07 13:12:56 stream/profile/messenger/etc Jun 07 13:13:12 i was talking with someone who thought those were all just fragments on one big activity Jun 07 13:13:20 but each one of those is a separate activity Jun 07 13:13:23 i dont know how the menu works Jun 07 13:13:26 nor do i really care Jun 07 13:13:28 its a stupid deisgn Jun 07 13:13:38 xD Jun 07 13:13:40 or at least, why the fuck are they not using the actionbar Jun 07 13:14:28 they are, just not very well lol, unless u mean for navigating Jun 07 13:14:31 then yea idk Jun 07 13:15:19 g+ app is closed source right? Jun 07 13:16:50 GL_VERSION returns "OpenGL ES-CM 1.1", but when I call glColor4f or glVertexPointer, I get "ERROR/libEGL(4206): called unimplemented OpenGL ES API"? Jun 07 13:40:00 anybody aware of facebook search api ? does it even exists ? Jun 07 13:40:19 maybe ask that in a facebook chat? :S Jun 07 13:43:49 wondering if any of the android devs are using it already Jun 07 13:50:02 is it possible to get a list of all API calls that requires a specific permission ? Jun 07 13:53:13 anyone know any site with lot of app example and source code... i need some app examples attached to calendar and planner... thx Jun 07 13:54:38 I have made a class, and when I try to instantiate it, it gives the exception ClassCastException. Why can I not instantiate my class? ClassName className; className = new ClassName(); Jun 07 13:58:11 Angel07: I am looking for the same Jun 07 14:00:51 bsilwal hope we together find something :) Jun 07 14:12:36 how do I add rc script to shell started by adb shell? Jun 07 14:16:44 I have made a class, and when I try to instantiate it, it gives the exception ClassCastException. Why can I not instantiate my class? ClassName className; className = new ClassName(); Jun 07 14:18:22 i dont believe you Jun 07 14:18:24 give me the exact code Jun 07 14:18:37 or theres something in your constructor that is doing a bad cast Jun 07 14:18:40 but yea Jun 07 14:18:44 stack trace or gtfo Jun 07 14:18:47 (see topic) Jun 07 14:29:32 @ canadiancow|work - 06-28 05:25:26.990: E/AndroidRuntime(5851): Caused by: java.lang.ClassCastException: com.shareapi.api.ShareApi Jun 07 14:30:04 How do you know if a particular broadcast intent is an ordered broadcast or not ? The doc doesn't state this explicitely for each intent Jun 07 14:30:05 06-28 05:25:27.000: E/SemcCheckin(5851): Get crash dump level : java.io.FileNotFoundException: /data/semc-checkin/crashdump Jun 07 14:30:50 thats not a stack trace Jun 07 14:30:52 thats a line Jun 07 14:31:09 if you want help from people here, we need a full stack trace Jun 07 14:31:14 and then i will tell you what parts of your code i need to see Jun 07 14:31:56 I'll need to launch Eclipse again then, I'll have it for you in a sec Jun 07 14:42:43 don't you love app that do this: Jun 07 14:43:31 what are the key code for arrows (left, right ...) I m trying to write a virtual keyboard! Jun 07 14:46:06 pi3ch: KeyEvent.KEYCODE_DPAD_* Jun 07 14:46:36 evancharlton: what is the valude for this constant? Jun 07 14:46:47 that question scares me Jun 07 14:47:57 evancharlton: it is just funny, I cannt find it! I used to use 37 (left), 38 (up) ... Jun 07 14:48:41 ... what Jun 07 14:48:42 ... Jun 07 14:48:49 pi3ch: don't do that Jun 07 14:48:53 ever Jun 07 14:48:54 http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_CENTER Jun 07 14:48:58 http://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_DPAD_CENTER Jun 07 14:49:04 * evancharlton high-fives Leeds Jun 07 14:50:41 evancharlton: cheers Jun 07 14:50:48 Leeds: cheers! Jun 07 14:51:48 can someone identify this widget for me http://developer.android.com/design/media/picker_space.png its on the android design site. Looks like a custom spinner/picker Jun 07 14:51:57 pi3ch: 37 and 38 aren't even the right values Jun 07 14:52:22 that maps to I and J, respectively Jun 07 14:52:43 evancharlton: found them here http://docs.oracle.com/javase/6/docs/api/constant-values.html Jun 07 14:52:44 I'll just stop asking because I probably don't want to know the asnwer Jun 07 14:53:21 lololol Jun 07 14:53:22 oh dear lord Jun 07 14:53:51 pi3ch: one piece of straight advice for you - use the Android docs for API references, always Jun 07 14:54:33 i use the oracle docs usually for the java APIs Jun 07 14:55:02 it's like a game figuring out which docs are better for which API Jun 07 14:55:08 Leeds: sure thing. Jun 07 14:55:23 Google ripped off the docs from Sun^WOracle, thereby causing Oracle $27trillion of annual losses - at least make it worth their while by using them! Jun 07 14:55:27 looking for a android dev site (apart from the obvious) that post topics for average to advanced devs - anything like that? Jun 07 14:57:45 wongk: except the oracle docs don't have little disclaimers like "don't use Timers in android" Jun 07 14:58:16 $27 trillion in losses...? Jun 07 14:58:24 the problem is, sometime the android docs are... lacking Jun 07 14:58:36 that seems a bit... exaggerated. Jun 07 14:59:03 moonlightcheese, I agree with wongk Jun 07 14:59:19 fmauro, robb_www - guess what the network problem was Jun 07 14:59:29 wat. Jun 07 14:59:34 oh? Jun 07 14:59:51 also, wow @ good timing, first time ive glanced at this screen in a few hours Jun 07 14:59:52 it fixes it if i remove android:targetSdkVersion="15" from my manifest Jun 07 14:59:58 NO IDEA why Jun 07 15:00:04 thats really strange Jun 07 15:00:16 moonlightcheese: sarcasm abound here, upgrade your detectors ;) Jun 07 15:00:32 then again i have issues with java networking on 3 of my machines running various windows OSs, and im still not sure why that happened Jun 07 15:01:10 for a long time i had dropping connections on all of them, which were (at the time) fully updated, and there didnt seem to be anyone with similar issues Jun 07 15:02:59 Robb. (^_^) Jun 07 15:05:45 gaz`: what network problem? Jun 07 15:06:35 my client is using an htc one x, and it basically wont open a httpurlconnection in my app if i have this in the manifest android:targetSdkVersion="15" Jun 07 15:07:01 anything in the log? are you doing dumb shit like network on the main thread? Jun 07 15:07:33 that would at least throw an obvious exception Jun 07 15:07:59 nothing in the log, my networking isnt in a seperate thread no Jun 07 15:08:04 unless he has a } catch (Exception e) { somewhere Jun 07 15:08:09 i do Jun 07 15:08:09 gaz`: ..... Jun 07 15:08:12 .... Jun 07 15:08:13 how will that affect it? Jun 07 15:08:14 oh geez Jun 07 15:08:28 gaz`: because it won't crash (legacy apps) Jun 07 15:08:38 hmmm Jun 07 15:08:42 i dont know anything about this! Jun 07 15:08:46 he sent me the logcat tho Jun 07 15:08:46 why is your network use not on a separate thread? Jun 07 15:08:49 i saw no errors Jun 07 15:08:57 i just want it to hold up til the work is done Jun 07 15:08:57 so you have network on the main thread and have taken away all error reporting Jun 07 15:08:58 because you're catching Exception Jun 07 15:09:02 and that seemed fine Jun 07 15:09:07 *facepalm* Jun 07 15:09:07 lol Jun 07 15:09:08 i have a thread to show the progress bar Jun 07 15:09:21 wait hold on Jun 07 15:09:29 you have a thread which updates the UI, which is blocked Jun 07 15:09:36 jackiechanwtf.jpg Jun 07 15:09:42 that can Jun 07 15:09:46 't be true Jun 07 15:09:53 it's just too ridiculous Jun 07 15:10:25 ah wait Jun 07 15:10:34 yeh networking is done in a runnable Jun 07 15:10:39 that's not a thread Jun 07 15:10:45 thought it was Jun 07 15:10:52 it's not Jun 07 15:10:53 asdfsadlh Jun 07 15:10:54 u can call .start etc Jun 07 15:10:57 no you can't Jun 07 15:10:59 whut Jun 07 15:11:06 http://developer.android.com/reference/java/lang/Runnable.html Jun 07 15:11:10 Runnable has one method Jun 07 15:11:11 run() Jun 07 15:11:12 aha ok Jun 07 15:11:14 sorry Jun 07 15:11:18 being dumb Jun 07 15:11:23 networking is done in a thread yes Jun 07 15:11:30 a thread that i pass a runable into Jun 07 15:11:51 ok, please determine the real answer to the quesiton, then come back Jun 07 15:11:59 pretty sure this is based on an exmaple app somewhere along the way tbh Jun 07 15:12:04 that is the real answer Jun 07 15:12:35 i changed my networking to catch ioexception Jun 07 15:12:41 no idea whats going on really Jun 07 15:12:45 but it works without that line in manifest Jun 07 15:12:57 have you tried running it in the emulator Jun 07 15:13:03 yeh Jun 07 15:13:06 works fine Jun 07 15:13:11 obviously with 4.0 Jun 07 15:13:14 works on my 2 nexus ones Jun 07 15:13:19 and htc desire Jun 07 15:13:21 but not on htc one x Jun 07 15:13:23 your nexus ones are api 15 Jun 07 15:13:26 aren't* Jun 07 15:13:31 yeh theyre ancient Jun 07 15:13:40 so it catchs and carries on, on older OS? Jun 07 15:13:41 they would still throw NetworkOnMainThread Jun 07 15:13:43 gaz`, does your client know you don't know how to program? Jun 07 15:13:45 but on newer OS died? Jun 07 15:13:47 dies? Jun 07 15:13:53 wongk: no they don't, that's new behavior Jun 07 15:13:55 lol canadiancow not yet :-) Jun 07 15:14:09 evancharlton: i thought 4.0.0 had that Jun 07 15:14:29 wongk: sorry, I inflated "they" to the wrong thing Jun 07 15:14:36 gaz`: then you wrote the it wrong when I asked you the first time around: < gaz`> Jun 07 15:15:14 no, we told him to bump it up Jun 07 15:15:17 fmauro no i wrote 11 then few people here told me to change to 15 so i did Jun 07 15:15:20 was same on both Jun 07 15:15:30 wongk, gaz` : ah sry, my bad Jun 07 15:15:36 which is typically the right thing to do Jun 07 15:15:38 anyway its nice to know it "works" Jun 07 15:15:47 NetworkOnMainThread was introduced in api 11 Jun 07 15:15:50 so that would explain that Jun 07 15:16:15 aha Jun 07 15:16:33 but, his target is 11 Jun 07 15:16:34 put an an asynctask Jun 07 15:16:37 in* Jun 07 15:16:39 this template i made was years ago Jun 07 15:16:47 i need to do a decent new one Jun 07 15:16:52 but it just worked :) Jun 07 15:17:07 wongk: right, which is when the behavior was introduced Jun 07 15:17:14 I bet API 10 will work, and API 11 will fail Jun 07 15:17:30 gaz`: what did you change it to when it started working? Jun 07 15:17:46 i just removed targetsdkversion Jun 07 15:17:51 i dont even know why i added it Jun 07 15:17:57 i think to make use of hw acceleration maybe? Jun 07 15:18:04 as client said transitions were choppy Jun 07 15:18:05 you want that property Jun 07 15:18:15 why Jun 07 15:18:34 because otherwise i believe its set to the min sdk version Jun 07 15:18:47 which is 8 Jun 07 15:18:51 but that should bne ok ? Jun 07 15:18:54 be* Jun 07 15:19:02 then you miss out on all new features and theme after API 8 Jun 07 15:19:12 ahh Jun 07 15:19:15 like what? Jun 07 15:19:15 so you're app won't even use holo Jun 07 15:19:25 such as not letting you do networking in the main thread Jun 07 15:19:36 hehe Jun 07 15:19:42 its done in a thread actually now im confused Jun 07 15:20:04 anyway once ive finished this app im gonna finish the book and use fragemnts etc Jun 07 15:20:09 right now im just trying to get this out there Jun 07 15:20:17 it's possible it's inadvertanly done on the main thread, i found one such bug when i tested on 4.0 Jun 07 15:20:29 since you didn't know the difference between a runnable and a thread, please forgive me if I don't believe you that your networking is actually on a background thread Jun 07 15:20:38 my last app i just used Jun 07 15:20:44 and its looked great on every device ive seen it on Jun 07 15:21:24 we define "great" differently Jun 07 15:21:37 gaz`: how many api 11+ devices have you tested on? Jun 07 15:21:42 show him the funky "black bar" menu button Jun 07 15:21:43 not sure Jun 07 15:21:49 HTC ONE X is one right Jun 07 15:21:50 what was that article Jun 07 15:21:50 I'm 100% sure that it's NetworkOnMainThreadException Jun 07 15:22:01 i'd put my bet there too Jun 07 15:22:06 because, iirc, the emulator doesn't explode on that Jun 07 15:22:14 it lets you do whatever dumb crap you want to in the main thread Jun 07 15:22:16 evancharlton yes i think youve cracked it, so if i fix my networking then itll work yeh Jun 07 15:22:23 I think that check is in user builds only Jun 07 15:22:41 gaz`: and instead you'll just set targetSdkVersion to something less than 11 Jun 07 15:22:55 but it seems very strange that it would only happen on the one x and not the galaxy nexus Jun 07 15:22:56 you mean u are preempting my laziness? Jun 07 15:23:25 wongk: I missed where he said he tested on a GN with a stock build Jun 07 15:23:42 he listed a few devices Jun 07 15:23:52 he said he tested on nexus ones, but those are running (presumably) gingerbread at most Jun 07 15:23:53 ohhh Jun 07 15:23:55 nexus one Jun 07 15:23:59 n1 is 2.3.6 Jun 07 15:24:02 n/m Jun 07 15:24:12 is it possible to get a reference to a custom view that is inside a layout? I have a layout that 's a custom view, and I have two of these layouts, and I'd like to get references to each one's custom view Jun 07 15:24:43 findViewById Jun 07 15:24:56 also, you can't just stick the runnable in a thread and run that Jun 07 15:25:03 you need synchronization Jun 07 15:25:27 well, at the very least you need a callback Jun 07 15:25:30 wongk: so I could do a findViewById to get the layout its in, then call thatLayout.findViewById() to get the custom view out of there? Jun 07 15:25:34 http://stackoverflow.com/questions/10934550/android-layout-left-item-in-horizontal-linearlayout-forces-right-justified-text Jun 07 15:25:36 AsyncTask is preferred Jun 07 15:25:37 MDijkstra: yeah, he's probably calling .run() instead of .start() or something Jun 07 15:26:04 tnzr: you call it on the Activity in which it's inflated Jun 07 15:26:12 evancharlton: well, that too, but I'm assuming he's also interacting with the UI directly from that runnable Jun 07 15:26:31 that would eat shit and die if it was really on a thread Jun 07 15:26:39 evancharlton: which will of course crash and burn if he made it a real thread Jun 07 15:26:56 trade one exception for another ;) Jun 07 15:27:12 .run() vs. .start() is a common thing I found that in part of our code someone did Jun 07 15:27:17 Runnable myRunnable = new Runnable() {..}; Thread t = new Thread(myRunnable); myRunnable.run(); ? Jun 07 15:27:17 Can anyone with a Samsung Galaxy S1, S2 or S3 help me test my live wallpaper please? http://dl.dropbox.com/u/21410648/Cubescape3D/CubeLWPWallpaper-v1-1-rc1.apk Jun 07 15:27:20 that would explode? Jun 07 15:27:22 wongk: actually I just realized that I failed to mention that the custom view is inside a layout, and that layout is included in two RelativeLayouts.. which brings up an issue regarding giving the custom view an id Jun 07 15:27:45 when I targetted 15 android found it because of the "no network on UI thread" restrictions Jun 07 15:27:56 wongk: in other words, I don't really know how to +id the custom view since it's included in a layout that appears in two different layouts Jun 07 15:28:02 tnzr: the only problems you should have is if there are two views with the same ID, in which case you need to scope your search correctly Jun 07 15:28:05 tnzr: on the same activity? Jun 07 15:28:12 wongk, it doesn't matter, they are all the same Jun 07 15:28:23 evancharlton: not by itself, but I'm assuming he's calling methods on the UI from that runnable Jun 07 15:28:27 wongk: yeah Jun 07 15:28:45 tnzr: then find the closest parent view and call findViewById on that Jun 07 15:29:28 wongk: ok so if I +id the custom view "my_id" or something, then I can do layout1.findViewById(R.id.my_id) and layout2.findViewById(R.id.my_id) ? Jun 07 15:29:44 i believe so Jun 07 15:29:49 ok cool I will try that, thanks! Jun 07 15:33:10 Is there a list of included libraries on android? I'm assuming gson is not included? Jun 07 15:33:37 the api ref? Jun 07 15:34:58 and you are correct, gson is not included Jun 07 15:36:02 oGMo: that is quite useful, hm... Jun 07 15:36:51 shoerain: afaik everything included is in there, though for ndk stuff that is probably documented separately, but still in the docs :P Jun 07 15:37:51 anyone know any site with lot of app example and source code... i need some app examples attached to calendar and planner... thx Jun 07 15:37:54 I need to access a local servlet from my android app and am following this http://stackoverflow.com/questions/3256420/call-java-servlet-from-android but am getting a null pointer exception..any guess what I am missing? Jun 07 15:38:02 I would really appreciate if a Galaxy S1 S2 or S3 user would test my wallpaper for a few seconds to see if it works: http://dl.dropbox.com/u/21410648/Cubescape3D/CubeLWPWallpaper-v1-1-rc1.apk Jun 07 15:38:03 thanks Jun 07 15:56:08 * Jug6ernaut wonders why he even tries asking questions in ##Java Jun 07 15:56:54 I sometimes wonder that about this channel too Jun 07 15:56:56 :p Jun 07 15:57:55 Zharf this channel has always been helpful for me, ##Java i have never gotten a worth while response, because as i join that channel i apparently are instantly an idiot and not worthy of a non smart-ass response Jun 07 15:58:28 I rarely seem to get any kind of response in here Jun 07 15:58:48 unless it's something I totally overlooked and feel stupid about it later Jun 07 15:58:50 ;) Jun 07 15:58:51 i would take non response over smart-ass response Jun 07 15:59:45 it's java, they assume their own kind Jun 07 15:59:46 Jug6ernaut: welcome to IRC Jun 07 15:59:46 * oGMo runs Jun 07 16:00:21 Vtopiah naa just ##java Jun 07 16:01:10 * Jug6ernaut guesses he will ask here since ##Java was unhelpful Jun 07 16:01:36 what does (+1) evaluate to? (1) but what is the purpose then? is it just (0+1)? Jun 07 16:01:39 trying to keep three projects up to speed with each other at the same time... I keep forgetting to git commit :p Jun 07 16:01:42 I downloaded a galaxy note emulator from here: https://github.com/rayesh/android-emulator-skins -- works, but apparently it doesn't rotate... do someone know how can I make it support rotation? (I already tried setting the property from AVD manager) Jun 07 16:02:33 avd rotate was numpad 7 i think Jun 07 16:02:42 but you have to have numlock turned off on my machine Jun 07 16:03:41 yesterday I proposed sending data via JSON from my android app to a C# web service and someone scoffed. Is there a better way then a web service? Jun 07 16:03:47 than Jun 07 16:04:34 for*? Jun 07 16:04:49 transferring data to a central DB Jun 07 16:05:01 json, xml, whatever Jun 07 16:05:14 shutin still have to get it to the db some how ;) Jun 07 16:05:49 we are talking about across the web right... Jun 07 16:06:02 right, but I've looked into it and JSON is lightweight, I can switch to HTTPS later, and writing code for Sql Server is easy peasy for me Jun 07 16:06:26 i mean, lol, im not going to write a SQLite db to DROPBOX_SERVICE Jun 07 16:06:44 although.. Jun 07 16:07:29 naw this is corporate, they hate 3rd partys Jun 07 16:07:53 yep Jun 07 16:08:07 for awhile i thought using the google maps API was free. turns out it is $20,000USD Jun 07 16:08:15 oops Jun 07 16:09:05 I want to make a basic application which has text box and button, and does google search Jun 07 16:09:14 it at least usde to be free up to a limit Jun 07 16:09:34 is it possible to use google search api ? Jun 07 16:09:40 except if you use it in a product that makes money Jun 07 16:10:26 shutin, better make a lot then ;) Jun 07 16:10:44 bsilwal you mean have an app that just runs web queries all day? i remember that being free up to a limit because of course busineesses google all day Jun 07 16:11:10 shutin: its just to learn actually Jun 07 16:11:30 it says 100 queries per day Jun 07 16:11:50 do you know any reading material where i can dig this ? Jun 07 16:12:00 i guess if they are bot-generated queries, thereis a limit Jun 07 16:12:23 bsilwal: i had the toughest time digging through their docs about it :( Jun 07 16:12:44 FREE FREE FREE* *fineprint Jun 07 16:13:29 bsilwal: https://developers.google.com/ Jun 07 16:13:34 if you are one person with a cable modem, i dont think you risk too much Jun 07 16:14:09 i mean, their solution is to CUT OFF your company from googling Jun 07 16:14:18 evancharlton: cheers but still :s Jun 07 16:14:19 the nerve! Jun 07 16:14:24 lol my supervisors nearly shit when i told them that Jun 07 16:14:46 shutin: i dont understand ? Jun 07 16:14:54 bsilwal: https://developers.google.com/custom-search/v1/overview#Pricing Jun 07 16:15:47 However, you will be billed for all additional requests at the rate of $5 per 1000 queries, for up to 10,000 queries per day Jun 07 16:16:21 does that mean past 10k, it's free Jun 07 16:16:24 * pragma- risks getting caught and the $5 per 1000 queries over $20,000 upfront. Jun 07 16:16:24 or past 10k, they cut you off Jun 07 16:16:40 If you need additional quota, please request additional quota from the console. Jun 07 16:16:45 hey any IntelliJ users around that happen to know if IntelliJ can generate delegate methods for an instance member? It only offers for the superclass when I try Jun 07 16:16:55 wat Jun 07 16:17:11 wow will they warn me ? that i have reached 100 ? Jun 07 16:17:12 generated code is just asking for trouble Jun 07 16:17:32 bsilwal: queries will fail Jun 07 16:17:36 Not if you know which methods you want to generate in advance, pragma- Jun 07 16:17:38 readme, I think the one time I tried, I failed ot find it Jun 07 16:17:43 the problem is only if you generate things that you don't know what they do Jun 07 16:18:14 if you login and see this page https://code.google.com/apis/console/b/0/#project:943639959835:services Jun 07 16:18:20 plus, this is if you are being a good sport and including your API key in your seaches Jun 07 16:18:21 it has massive list of api :o Jun 07 16:18:22 * readme doesn't want to get severe carpal tunnel before 40 Jun 07 16:18:27 which one do i use ? for searchign ? Jun 07 16:18:31 readme: lets play typeracer! Jun 07 16:18:40 start a race Jun 07 16:18:43 I'll join Jun 07 16:18:49 so much for carpal tunnel Jun 07 16:18:55 it's called RSI Jun 07 16:19:05 one typracer game isn't gonna give me carpal tunnel, lolk Jun 07 16:19:09 readme: I quit playing typeracer for that reason Jun 07 16:19:10 oh custom search is ti ? Jun 07 16:19:13 whats with BigQuery API Jun 07 16:19:35 pragma-: what's worse is that I play guitar. so i have double the risk and will try to reduce it where possible. Jun 07 16:20:04 in this case I was going to generate setMinValue and setMaxValue for numberpicker, I ended up typing them instead. Jun 07 16:20:48 the best thing i did to help my RSI was take a dremel and cut the #$%R#$ numpad off my MS ergonomic keyboard 4000 Jun 07 16:20:53 BigQuery is for Data Mining as it seems Jun 07 16:22:23 it would be illegal to use multiple api keys on the same application wouldnt it (chuckle) Jun 07 16:22:34 I'll surely get spat on for that but... what's the main difference between XML layout and HTML/CSS? Jun 07 16:22:46 but i wonder if its that easy Jun 07 16:23:34 Utopiah: obvious question is too obvious. Jun 07 16:23:38 Utopiah: XML is universal and used to describe anything. Jun 07 16:24:05 yes I mean in practice Jun 07 16:24:16 HTML is basically XML for the narrow purpose of describing web layout Jun 07 16:24:41 HTML is not exactly XML compliant, unlike XHTML. Jun 07 16:28:37 Zharf: thanks for looking into it ) Jun 07 16:32:29 hi Jun 07 16:33:45 does anyone know if XmlResourceParser (XmlPullParser) is guaranted to parse the root element before its children ? Jun 07 16:37:26 readme, I guess it's something to be suggested if it doesn't exist :) Jun 07 16:39:54 Zharf: I plan to do some plugin writing for intellij after I get out of the weeds with my contract work Jun 07 16:40:03 the plugin system is just totally cool Jun 07 16:40:59 I haven't looked at it but I love ideavim :) Jun 07 16:41:50 yeah using it now :) Jun 07 16:42:19 i've tried all the vi stuff for eclipse (eclim, viplugin) and nothing compares to ideavim Jun 07 16:42:24 yeah Jun 07 16:42:31 those are really hard to setup too Jun 07 16:44:13 How much would you evaluate the development of an app that shows a car in 3D (object and texture provided), you can view the object from inside or outside and click on some parts of it would display an info box ? Jun 07 16:44:29 a rough estimation Jun 07 16:44:37 android devices on my desk right now... htc evo 4g lte, samsung galaxy nexus, htc evo 3d, samsung galaxy s2, samsung nexus s 4g, samsung galaxy tab 10.1, logitech revue Jun 07 16:45:09 i need an s3 now :) Jun 07 16:46:23 birbeck: not on my desk, but... SII, OneX, Galaxy Nexus, Revue, Liquid... my Dream, Magic, Desire and N1 are no longer with me Jun 07 16:46:53 liquid? Jun 07 16:46:54 * Zharf likes his Galaxy3 for development Jun 07 16:47:03 sufficiently slow, low memory and low resolution ;) Jun 07 16:47:18 has anyone used the emulator w/ kvm support? Jun 07 16:48:16 not on my desk, i have g1 (dream) x2, evo 4g, nexus one, and xoom Jun 07 16:50:36 Zharf: you have the s3? Jun 07 16:50:49 no, who said that? Jun 07 16:51:05 (09:46:54 AM) ***Zharf likes his Galaxy3 for development Jun 07 16:51:11 if you read again... Jun 07 16:51:36 wth is a galaxy3? Jun 07 16:51:49 new samsung device Jun 07 16:51:51 it's a galaxy3, i5800 Jun 07 16:52:20 i take it all back, thats not the same device i was thinking of at all Jun 07 16:52:43 i assumed the samsung galaxy S III Jun 07 16:52:43 i want to know if touchwiz 4 disables the disable app function in ics like sense 4 does Jun 07 16:53:02 robb_www: yeah, thats what i thought Jun 07 16:53:09 I prefer my xperia mini pro over all the "highend" samsung/htc crap Jun 07 16:53:20 for actual use that is ;) Jun 07 16:53:49 does anyone know if XmlResourceParser (XmlPullParser) is guaranted to parse the root element before its children ? Furthermore, does it parse the nodes in the order they appear in the xml file ? Jun 07 16:53:57 heh, i always use htc for my personal devices, i hate samsung,,, even the nexus' Jun 07 16:54:23 there will always be an evo in my pocket Jun 07 16:54:32 play store, y u no publish update faster? Jun 07 16:54:56 BloodSkin, so that you might grow out of the crappy memes Jun 07 16:55:24 the crappy meme also makes my sentences shorter Jun 07 16:55:40 birbeck: sense 4 doesn't disable that - only for some system apps Jun 07 16:56:43 Leeds: ? ive not seen it on ANY app. i dont want dropbox, internet, sprint zone Jun 07 16:56:54 all of which are system apps Jun 07 16:57:05 How heavy is SHA512 hashing on the phone? Should I instead send the password SSL'd to a server which hashes the password, or should I leave it to the client? Jun 07 16:57:20 Leeds: thats the whole fucking point of disabling apps Jun 07 16:57:27 er, no Jun 07 16:57:33 Leeds: since you cannot uninstall bloatware Jun 07 16:57:55 hmm... now I'm confused Jun 07 16:57:56 on non system apps, you have uninstall, there is no disable Jun 07 16:58:41 only on ICS and if the OEM rom supports it Jun 07 16:58:51 do you have disable option Jun 07 16:59:24 to pick a random system app, 'app sharing', whatever that does - it has a disable button Jun 07 16:59:46 t0mless: exactly, the sense roms on htc one x disable that feature Jun 07 17:00:02 birbeck: not on all apps Jun 07 17:00:17 Leeds: oh, hmm, yeah i do see it on app sharing Jun 07 17:00:21 maybe a better example - the calculator has a disable button Jun 07 17:00:42 it's quite possible that they've been overenthusiastic at marking things as non-disable-able, but it's there for some Jun 07 17:01:10 on the evo 3d, you could uninstall most pre-installed apps Jun 07 17:01:28 nice move by sprint and htc there Jun 07 17:02:00 I went a bit nuts on disabling things, then got into a bootloop, had to reset to get it to come back up... don't know if it was because I disabled something I shouldn't have, but I've been less aggressive since Jun 07 17:02:36 How heavy is SHA512 hashing on the phone? Should I instead send the password SSL'd to a server which hashes the password, or should I leave it to the client? Jun 07 17:03:12 i only want to disable apps i have no use for, facebook, dropbox, sprintzone, etc Jun 07 17:03:40 not any system services or aosp/htc apps Jun 07 17:04:47 Deifyed: the cost of SHA512 is dwarfed by the cost of the network connection. Jun 07 17:06:15 birbeck: couple of problems, I think... carrier crap is probably non-disable-able for rape-your-customers (or minimise-your-support-costs) reasons, and stuff like facebook and dropbox are probably blocked because other stuff depends on them, and it's easier to block them than make the other stuff handle them going away Jun 07 17:06:45 hello all Jun 07 17:07:24 just a question. Is there a possibilitie to find out which app is usign which ports for network communication ??? Jun 07 17:08:05 evancharlton: So the SHA512 will create so much data that the transfer will be slow? Or do you mean that the network connection will be the bottleneck, not the SHA512 hash processing? Jun 07 17:12:59 no idea ? Jun 07 17:18:40 Deifyed: the latter Jun 07 17:20:01 any ideas how I could map a active app to the ports used by this app ?? Jun 07 17:20:50 guys , I want to use a Bitmap array that should contain somehow more images in the other I want to ... but I can't make it ... I mean I don't know exactly how I should do it Jun 07 17:21:11 I need to specify that I'm going to use that array to change the image of an ImageView Jun 07 17:22:19 Pinas: read about /proc/net and netstat. Jun 07 17:23:42 evancharlton: Thank you! :) Jun 07 17:25:01 readme - ok thx :) Jun 07 17:28:53 hi all Jun 07 17:29:09 can anyone recommend a android tablet testing service? Jun 07 17:29:39 wat Jun 07 17:30:09 am developing an android tablet application and do not have the target devices; would like to pay a lab to do the testing Jun 07 17:30:33 that sounds hideously painful Jun 07 17:30:37 how will you debug? Jun 07 17:31:03 simulator Jun 07 17:31:09 like, if you have money to pay a testing service, which is likely tens of thousands or more, surely you can drop $500 on a device Jun 07 17:31:15 just need someone to perform final testing on target devices Jun 07 17:31:27 ogmo; 10k or more? have you ever done this? Jun 07 17:31:31 it's not that much, ever Jun 07 17:31:39 then the service must not be very useful Jun 07 17:31:41 maybe for some huge enterprise level app Jun 07 17:32:01 so no one has any recommendations? surprised Jun 07 17:32:12 are they just giving your app a run and saying "yeah it looks good, the graphics line up" or what? Jun 07 17:32:27 ogmo; google quality assurance testing Jun 07 17:32:37 i know what this is Jun 07 17:32:49 do you? sounds like maybe not Jun 07 17:32:52 if you're expecting good QA for a few hundred then i don't know what to tell you Jun 07 17:33:07 especially if you expect to actually iterate Jun 07 17:33:16 who said anything about a few hundred? Jun 07 17:33:29 there is square, device anywhere, payola, perfecto mobile, utest, etc. no one has used these services? Jun 07 17:33:30 ok, less than the cost of the device Jun 07 17:33:36 1 device sure Jun 07 17:33:42 but i never said anything about budget Jun 07 17:33:44 your assumption Jun 07 17:34:06 apparently you have never done adroid development if you expect to do it entirely on the emulator Jun 07 17:34:19 i don't expect to do it entirely on the emulator Jun 07 17:34:28 please if you cannot recommend, then don't contribute to the conversation Jun 07 17:34:34 your assumptions are derailing Jun 07 17:34:44 then your specifics are insufficient :p Jun 07 17:35:00 re-read the original question Jun 07 17:35:46 no specifics given or needed, just asking if anyone can recommend an android testing service Jun 07 17:36:25 seems all the professionals are quiet :( Jun 07 17:36:55 WogerWabbit: have you considered a closed beta? Jun 07 17:37:32 birbeck; somewhat, might be out of scope tho Jun 07 17:37:59 if your app sounds cool, you can get a lot of testers from xda and modaco quickly Jun 07 17:38:07 basically we don't have the devices and would prefer to pay someone with the devices for compatibility testing. Jun 07 17:38:15 is it a game? Jun 07 17:38:25 it's an educational app with game elements Jun 07 17:38:40 targeting school children Jun 07 17:38:44 ok, let me rephrase that... do you use canvas? Jun 07 17:38:50 gamification is everywhere, eh? Jun 07 17:39:04 do you use ndk? Jun 07 17:39:21 ge0rg: indeed :) Jun 07 17:39:35 Ge0rG: or as the bard said: "the Play is the thing!" :P Jun 07 17:39:47 birbeck; nope Jun 07 17:39:57 I am capturing audio in the 3gp format..is there a way I can store it in wav format? Jun 07 17:40:46 WogerWabbit: then fragmentation is a bunch of hyperbole, if you took into consideration best practices for screen sizes and densities from the start, test it on a normal hdpi and a normal xhdpi and release it Jun 07 17:41:32 birbeck: client pays us to execute device testing Jun 07 17:41:43 we have 3-5 target devices Jun 07 17:41:59 you dont need tons of devices to test on though, if it works on those 3-5 target devices, it will likely work anywhere Jun 07 17:42:36 if they require compatibility with specific devices, ask them to provide the test devices you dont have Jun 07 17:42:47 yes that is the plan, target the 3-5 and assume Jun 07 17:42:57 idea deploys apps so much slower than eclipse. am i the only one seeing that? Jun 07 17:43:18 they want us to manage the device testing, they don't want to buy devices they won't use when we can get device testing for cheaper Jun 07 17:43:20 bryanl: no you;re not the only one Jun 07 17:43:48 bryanl: i use eclipse/adt/ant for my development and maven for my test/release builds Jun 07 17:43:49 birbeck: it is tolerable. especially with the new x86 4.0 image, but still had me scratching my head Jun 07 17:44:07 readme: you said I should have a look at tcp dump. Do you know if their is a possibilitie to map a pid to a port or do I have to directly use /pro/net/tcp ??? Jun 07 17:44:16 sorry I meant netstat :) Jun 07 17:44:53 i actually like idea, so i'm just complaining out loud Jun 07 17:45:31 does anyone here have experience releasing a payed android app? Apparently I need a Google Merchant account? I looked through the requirements and it looks like I need a business name, website, then a federal tax ID / credit card number / option SSN. I'm 18 years old and only have a checking account, debit card, and my app. Any suggestions? Jun 07 17:45:35 if you are using idea, i assume you are building with maven Jun 07 17:45:43 its not idea that is slow, its maven Jun 07 17:46:18 Bryan__K: ask your parents for their CC number :P Jun 07 17:46:34 Bryan__K: your ssn is your tax id Jun 07 17:46:47 Bryan__K: you should set up a business and an LLC, just for your own protection, but i believe you get a tax ID as part of that Jun 07 17:47:01 wat? Jun 07 17:47:03 a credit card is only to pay for the enrollment iirc Jun 07 17:47:04 wongk, I'm sure they'd be fine with it, I guess what I'm wondering is . oGMo, perfect, that sounds good Jun 07 17:47:05 cheap and easy to do both Jun 07 17:47:28 setting up a business to sell an android app? Jun 07 17:47:29 is the process essentially the same on iOS? Jun 07 17:47:30 LLC makes taxes easier too Jun 07 17:47:39 oGMo: llc's are only cheap in some states Jun 07 17:47:47 birbeck: then pick one of those ;) Jun 07 17:47:54 most people use delaware, though i haven't Jun 07 17:48:16 i moved my business to ca when i moved here, that was a mistake Jun 07 17:48:16 or rather, "a lot of businesses prefer to incorporate in delaware due to taxes" Jun 07 17:48:32 incorporating and getting business insurance was way cheaper than llc Jun 07 17:48:37 though you likely need to pay someone to manage some things, but i believe that's cheap too Jun 07 17:48:49 and completely unnecessary Jun 07 17:48:55 just list the damn app Jun 07 17:48:59 our accountant is pretty cheap for the work they do Jun 07 17:51:32 Bryan__K: really, all you need is a credit card to pay the $25 or whatever it is now Jun 07 17:51:36 just got a mk802 ... it's very chinese, heh Jun 07 17:51:46 but it does run ICS pretty snappily Jun 07 17:51:57 birbeck, I'm already a registered dev. I still need the merchant account though Jun 07 17:52:05 kind of neat. No real idea what I'll do with it. I had a theory it'd be useful as a dev target, but it isn't really. Jun 07 17:52:12 Bryan__K: as long as you are not operating under an assumed name, then all you need is your personal name and ssn Jun 07 17:52:56 but I still need the LLC, right? I don;t want to be sued... Jun 07 17:53:08 you don't _need_ it, but Jun 07 17:53:16 Bryan__K: but if you expect to make any real money from app sales, you should start a business entity, its quick, easy, pretty cheap and will save your ass in legal and taxes Jun 07 17:53:17 incorporating has its benefits Jun 07 17:53:26 exactly Jun 07 17:53:39 ok, and by business entity, an LLC? Jun 07 17:53:48 it's just me, no employees or anything Jun 07 17:54:02 a business entity is just a registered business name, can be one of many structures Jun 07 17:54:16 sole proprietor, or llc are probably what you want Jun 07 17:54:51 ah yeah my business teacher mentioned sole proprietor. Do you think that would be cheaper than an LLC? And would it still provide protection? Jun 07 17:54:52 Bryan__K: you think you're going to get sued by selling an app that costs a couple bucks? Jun 07 17:54:56 an LLC is a form of incorporation, a business is different (but necessary to incorporate) Jun 07 17:56:03 Bryan__K: a sole proprietor costs nothing other than your registration dues, but it provides you no protection Jun 07 17:56:18 wongk, my app is an augmentative and alternative communication app. it assists people with disabilities. schools and speech centers would be the ones buying my apps Jun 07 17:56:36 i would definitely incorporate then heh Jun 07 17:56:40 like wongk says, do you think you'll be sued? probably can go without it for a small app Jun 07 17:56:41 along with parents with disabled children. my app "borrows" many features and ideas from apps that already exist, but are much more expensive Jun 07 17:57:00 well it sounds like you're going more professional with it then Jun 07 17:57:05 oh, heh, dealing with disabilities and education, yeah llc up Jun 07 17:57:14 just don't incorporate for Todo List Jun 07 17:57:14 yes haha. ok LLC it is lol Jun 07 17:57:38 you dont want someone saying the app made a promise it didnt hold up to and caused them harm Jun 07 17:58:05 screw people -__- ... sad part is people probably would do that Jun 07 17:58:14 yeah just imagine if your unit conversion app miscalculated something and caused nasa to lose a billion dollar project Jun 07 17:58:17 ;D Jun 07 17:58:26 Bryan__K: your chamber of commerce probably provides free resources and consultation of setting up your first business Jun 07 17:58:38 also the SBA Jun 07 17:59:02 it's generally really easy IME. you just have to fill forms out in the right order and write some checks. Jun 07 17:59:37 hmm, this gets so complicated. I guess it's good experience, though. I need to go, but thank you all for your help. I feel a bit better about the process now. Jun 07 17:59:41 oGMo: that was my disclaimer... so he doesnt sue me for giving poor business advice :P Jun 07 18:00:34 oh, sure... what i'm telling you is subject to being utterly incorrect and i assume no liability or responsibility ;) Jun 07 18:00:55 Hey guys, I'm getting a null pointer exception, but I can't seem to find out where http://pastebin.com/9uPD4vGY Jun 07 18:01:10 I'l keep that in mind! thanks again =) Jun 07 18:01:11 that's why they invented stack traces Jun 07 18:01:18 ZettaZete: ^^ Jun 07 18:01:26 lol Jun 07 18:01:26 ZettaZete: no backtrace? Jun 07 18:02:16 try { ... } catch (NullPointerException npe) { // move along, nothing to see here } Jun 07 18:02:29 heh Jun 07 18:03:24 I am trying to integrate the build of a shared library into the Android build. I created an Android.mk file and i have my source file, does anyone know how to integrate this? Jun 07 18:06:44 mediaplayer's oninfolistener is such bs. it never gets called…ever Jun 07 18:07:25 fun Jun 07 18:07:40 the whole stack trace I get: Jun 07 18:07:41 signal 11 (SIGSEGV), fault addr 0000001c Jun 07 18:07:41 Stack frame #00 pc 0002dd12 /system/lib/libdvm.so Jun 07 18:08:42 hrm, any idea where I can find google play marketing images? Jun 07 18:08:51 like the badge for "get this on the play store" Jun 07 18:09:42 http://www.android.com/developers/branding.html Jun 07 18:10:10 thanks Jun 07 18:18:03 http://stackoverflow.com/questions/10934550/android-layout-left-item-in-horizontal-linearlayout-forces-right-justified-text Jun 07 18:18:12 halpplz. Jun 07 18:18:36 hrm, has anything changed lately that would cause my location service to not work anymore? :/ Jun 07 18:21:04 I doubt it Jun 07 18:23:06 i wonder why it's not working, i haven't touched the code >.> Jun 07 18:24:33 Does anybody have any information on how best to debug kernel boot loops. I'm trying to get the Samsung P5113 kernel compiled, and Samsung, as they usually do, hasn't released working source code. Jun 07 18:29:15 panehf: step 1) /join #android-root Jun 07 18:31:01 DigitalKiwi: bitrot has set in, you may need to amputate! Jun 07 18:32:41 anybody anybody. Jun 07 18:32:54 would be awesome. Jun 07 18:33:57 Anyone here worked with the linear accelerometer to detect motion (as opposed to tilt)? Jun 07 18:35:24 moolight: set weights? Jun 07 18:40:56 evancharlton: That channel looks like it's devoted to rooting tablets and installing custom roms, which isn't really what I'm interested in. Jun 07 18:41:50 panehf: it's closer than here. this is about android app development, not compiling kernels Jun 07 18:42:16 canvs2321: nope. Jun 07 18:42:21 no worky. Jun 07 18:42:37 So there's getCallingActivity and getCallingPackage, but that only works for startActivityForResult(). Is there a more general way? Jun 07 18:42:40 evancharlton: ah, alright. Thanks man. Jun 07 18:43:02 use smaller font size for left text then? :) weights do work, you just have to decide which text you will trunacate or use multilines Jun 07 18:44:52 moonlightcheese: what happens when you tried weights? Jun 07 18:45:03 not a damn thing. Jun 07 18:46:09 how do I compile a standard java library (from source) against the android jre Jun 07 18:46:11 panehf: no problem; good luck! Jun 07 18:46:16 ike whats the command line argument for javac Jun 07 18:46:21 anathan: javac Jun 07 18:46:58 anathan: there is no "android jre". There's a dalvik VM, which takes in dex bytecode Jun 07 18:47:32 evancharlton: so how do I compile to the dalvik VM? Jun 07 18:49:28 anathan: the android sdk has the tools you need. Jun 07 18:49:46 the details of which you need not concern yourself with if you dont want to Jun 07 18:51:46 oh shit. Jun 07 18:51:54 that worked. Jun 07 18:52:04 ...almost. Jun 07 18:52:54 man i dunno why i have so much trouble with these layouts. the whole scheme just feels so non-intuitive. Jun 07 18:53:18 moonlightcheese: complicated layouts are, well, complicated. Jun 07 18:53:35 this isn't even that complicated imo. Jun 07 18:53:55 moonlightcheese: ... and when you have a half-dozen menufacturers putting their own skins on things (therefore messing with your layouts), that doesn't help either. Jun 07 18:54:20 well then stop them doing that. Jun 07 18:54:50 Our apps literally have a few layouts that follow this pattern: layoutThatWorksForNonMotorolaDevices.xml , layoutThatWorksOnMotorolaDevices.xml Jun 07 18:55:11 these are the sorts of things that make me cry Jun 07 18:55:15 is MotoBlur screwing it up that bad? Jun 07 18:55:26 HTC Sense is no better. Jun 07 18:55:53 my phone gets all wonky-jawed from time to time and requires a restart. Jun 07 18:56:07 We have had to put in workarounds for Sense bugs, but I'd say we have 10x the "deal with Motorola" code than we do have "deal with HTC" code. Jun 07 18:56:51 a general rule: if you start specifying non-platform colors, you have to specify them all :( Jun 07 18:56:58 first i've heard of that. our whole team is using various Droid models and they don't seem to have a problem, but our apps aren't graphically intense to any degree. Jun 07 19:02:36 Hi! I have a ListFragment with some underlying List for data. I have a button in my view and I want it to be disabled when the number of elements in the list is bigger than N and enabled otherwise Jun 07 19:02:50 yea weights aren't gonna do it. Jun 07 19:02:54 Should I overload onRedraw method and put the code there? Jun 07 19:03:20 ppilate: no, when you set the adapter simply check the length of the list Jun 07 19:03:30 why is it such a fucking pain in the ass to put a large bold textview on the left and three text views on the right in a list item. wtf? Jun 07 19:03:40 disable the button if it's bigger than n Jun 07 19:03:44 moonlightcheese: what are you trying Jun 07 19:03:52 that sounds fairly straightforward. Jun 07 19:04:01 readme: http://stackoverflow.com/questions/10934550/android-layout-left-item-in-horizontal-linearlayout-forces-right-justified-text Jun 07 19:04:05 MDijkstra: i set the adapter in the onCreateView method. WOuldn't that run only once? Jun 07 19:04:18 moonlightcheese: why not RelativeLayout? Jun 07 19:04:23 ppilate: yes, but it won't magically update either Jun 07 19:04:28 read the whole post. Jun 07 19:04:29 ppilate: so once is enough Jun 07 19:04:57 MDijkstra: well that button is actually for adding elements to the list :( Jun 07 19:04:58 ppilate: ie, if you add stuff to the list and want to update it on-screen, you'll need to tell it to update Jun 07 19:05:07 in which case you can do the check again Jun 07 19:05:10 DynamicCollectionIterators are beastly :) Jun 07 19:05:22 readme: when i use RelativeLayout, the Views overlap. also not good. Jun 07 19:05:22 https://dl.dropbox.com/u/749647/Photo%20Jun%2007%2C%203%2003%2018%20PM.jpg Jun 07 19:05:24 unf Jun 07 19:05:25 :D Jun 07 19:05:41 moonlightcheese: hmm? Jun 07 19:06:03 I could do this with RelativeLayout and not overlap, and it would not need nested layouts anymore, either Jun 07 19:06:16 O.O Jun 07 19:06:24 just set a maxWidth on the left textview Jun 07 19:06:38 also I think the text is aligned right because of the gravity="right" Jun 07 19:06:40 that you set Jun 07 19:06:43 that doesn't work with varying screen size. Jun 07 19:06:57 that's why you have the layout-ldpi/hdpi/mdpi dirs. Jun 07 19:07:04 ugh. Jun 07 19:07:06 MDijkstra: right so how do I tell it update? Jun 07 19:07:17 multiple layouts just for something as simple as that... Jun 07 19:07:23 what a crock. Jun 07 19:07:27 I think you could do it with styles, instead Jun 07 19:07:35 http://pastebin.com/gghVryYS Jun 07 19:07:36 I've never done it, but you should be able to use a values-hdpi etc Jun 07 19:07:39 ah, well i have next to no experience with styles. Jun 07 19:07:40 and stick independent styles.xml Jun 07 19:07:59 I can't really do checks in onClick, since I don't know what's the result of the dialog Jun 07 19:08:02 it may be worth it to invest the time to learn them. I use them in every project now Jun 07 19:08:02 there's gotta be a better way... Jun 07 19:08:07 it might have been canceled Jun 07 19:08:22 yea, i've been meaning to get around to that, and just haven't been able to yet. Jun 07 19:08:22 ppilate: which adapter class are you using? Jun 07 19:08:28 moonlightcheese: if you want to do it the inefficient way, nest two linearlayouts inside a linearlayout Jun 07 19:08:38 outer linearlayout should be horizontal orientation Jun 07 19:08:42 the inner two should be vertical Jun 07 19:08:53 and each should have layout_width="0dp" layout_weight="1" Jun 07 19:08:58 then they will share the space evenly Jun 07 19:09:01 MDijkstra: i've rolled my own Jun 07 19:09:05 and you will be able to wrap your bold text Jun 07 19:10:27 ppilate: the easiest way would be to recreate the adapter Jun 07 19:10:29 I think I can perform the check in getView() in my adapter Jun 07 19:10:38 ppilate: no, you shouldn't do that Jun 07 19:11:12 I understand that this is bad practice, but I still don't understand what is the perferable way Jun 07 19:11:21 ppilate: I was just looking it up for you Jun 07 19:11:22 what do you mean by "recreate the adapterA"? Jun 07 19:11:40 setAdapter(new MyFancyAdapter(someBackingList)); Jun 07 19:11:56 Erm Jun 07 19:11:57 that'll work, but is not preferred Jun 07 19:12:15 what you should do is in your adapter implementation Jun 07 19:12:33 there is a method that is called whenever a listview starts using your adapter Jun 07 19:12:39 registerDataSetObserver (DataSetObserver observer) Jun 07 19:12:45 keep track of the observers Jun 07 19:12:56 whenever the data updates, loop through the observers Jun 07 19:13:03 and call observer.onChange() Jun 07 19:13:13 *onChanged() Jun 07 19:13:26 I think that is the correct way, but must admit I've never implemented this Jun 07 19:13:54 HAHA magic. Jun 07 19:14:03 i win. Jun 07 19:15:00 ppilate: if you want to be 100% sure I'd suggest taking a look at the source of ArrayAdapter Jun 07 19:15:21 especially the notifyDataSetChanged() method Jun 07 19:17:27 I see,thanks,MDijkstra Jun 07 19:17:32 readme: thanks for the hint, i had completely forgotten to use 0dp when using weights. Jun 07 19:17:44 momentary retardation. Jun 07 19:23:09 MDijkstra: sorry, I think I didn't get it. Where should I do the actual check? Jun 07 19:23:29 ah,in onChanged() method Jun 07 19:23:38 no Jun 07 19:23:52 you asked how to update your data Jun 07 19:24:04 wiat Jun 07 19:24:07 uh Jun 07 19:24:12 first you asked how to disable the button Jun 07 19:24:41 Wait,I know how to update the data, everything was just fine with that. I still was thinking about disabling the button Jun 07 19:24:50 that's easy, whenever you update the list you simply call a function you made "disableButtonIfBackingListLargerThanN" Jun 07 19:25:42 RIght, but where do I put this method? Jun 07 19:25:52 in your activity? Jun 07 19:25:56 O_o Jun 07 19:26:46 you call the method inside your activity whenever you add an item to the list (to be displayed in the listview) Jun 07 19:27:02 or remove, of course Jun 07 19:28:10 oh, it's a fragment. sorry, in your fragment Jun 07 19:35:05 For whatever reason it won't let me call this http://pastebin.com/9KnGuwYZ and it says that there is a PackageManager NameNotFoundException Jun 07 19:40:20 I wanna to make an activity that's associated with a file type... I added this intent filter http://pastebin.com/YsapEhuL and it works when the file is openned via the file browser, or downloaded from a website, but it doesn't work with files that are just received from bluetooth... What should I do to work with bluetooth? Jun 07 19:41:47 how can i fetch position of the screen user has touched? Jun 07 19:42:09 I know it has to do with SensorManager in android.hardware Jun 07 19:42:14 but dont know what to call Jun 07 19:42:25 wat. Jun 07 19:42:55 when user touches the screen, i want to get the x-y corrdinates of the position that he touched - Jun 07 19:42:59 Activity.onTouchEvent(event); Jun 07 19:43:12 selector: http://developer.android.com/reference/android/app/Activity.html#onTouchEvent(android.view.MotionEvent) Jun 07 19:48:19 Given an APK, can I spit out it's requested permissions in the shell? pm list permissons something Jun 07 19:48:41 or rather a package name Jun 07 19:49:41 do any of you guys get in contact with buyers that cancelled their purchase to see what the cause was ? Jun 07 19:50:04 i don't think that's ok Jun 07 19:50:28 so before you call to start a mediaplayer, but after you've prepared it, the onbufferingupdate only gets called once with 0 percent passed to you. is there any way to figure out how much of the stream is buffered before i call to start it? Jun 07 19:51:52 Why am I getting errors with PackageManager.GET_META_DATA :( Jun 07 19:54:21 g00s: i would tread carefully with that Jun 07 19:55:11 I'm using this, and it doesn't work? Why wouldn't it? http://androiddevblog.blogspot.com/2010/07/using-android-application-meta-data.html Jun 07 19:55:13 pretty sure it would constitute 'email marketing' which I think is against TOS unless it says otherwise in checkout. Jun 07 19:55:44 I did email one of my customers in an unsolicited manner, since he was the second canadian to buy Jun 07 19:55:50 and I knew it was relatively untestedd in canada Jun 07 19:55:58 so I shot him an email to thank him. he responded well Jun 07 19:56:33 luxurymode: are you sure it's buffering anything before you call start()? Jun 07 19:56:48 hehe yeah thats the question im wondering now Jun 07 19:57:07 seems like it was because when i did have this working, switching to a new track was really fast and playback began instantaneously Jun 07 19:57:21 luxurymode: that's what I'm wondering as well, I got a player and there are no notification on buffer before start IIRC Jun 07 19:57:24 i really am starting to dislike the mediaplayer class. its a very thin api with not much wiggle room Jun 07 19:57:38 anddam, well theres one with 0 passed in Jun 07 19:57:48 so there must be SOMETHING happening Jun 07 19:57:53 are you playing a local file or streaming something from the network? Jun 07 19:57:53 readme: ok. i was just wondering if they cancelled because of incompatibility, didn't like, etc Jun 07 19:58:00 luxurymode: let me start idea Jun 07 19:58:43 anyone doing development from CLI? Jun 07 19:59:06 I just setup javacomplete plugin for vim to complete Android SDk Jun 07 19:59:11 also the implications in the docs are that prepare and prepareasync start buffering, for example it says: For streams, you should call prepareAsync(), which returns immediately, rather than blocking until enough data has been buffered. Jun 07 20:00:02 anddam install ANT and you're good to go! Jun 07 20:00:17 g00s: i'd just read the checkout TOS Jun 07 20:00:19 before you do that Jun 07 20:00:27 you wouldn't want to get your checkout account revoked Jun 07 20:00:45 readme: ok, i'll play it safe Jun 07 20:01:00 please read them and tell me what you find... :) Jun 07 20:01:05 when you return something at a store, many times you are asked if it was defective or you didn't like it Jun 07 20:01:16 t0mless: I already have it and I mastered ant building before approaching IDEA, I'm asking if I'm a white fly or what Jun 07 20:01:40 seems most of the non-google docs assumes one's using Eclipse Jun 07 20:01:45 assume* Jun 07 20:02:16 Anyone have the samsung galaxy player 5? Jun 07 20:02:18 anddam: I started using CLI for building, installing etc. after working on an app with a big code base that didn't play well with Eclipse. Jun 07 20:02:23 because they only make ADT plugin for eglipse at google Jun 07 20:02:24 Is it similar to the galaxy s2 in specs? Jun 07 20:02:37 and the dev guide suggests eclipse Jun 07 20:02:37 maybe it's not a good testing device Jun 07 20:02:49 there are a few that use all CLI Jun 07 20:02:51 I still tend to use Eclipse for my editor but CLI for everything else. Jun 07 20:06:55 jeremyhaberman: they love intelliJ Idea at google as well Jun 07 20:07:05 why dont they use that (wonder) Jun 07 20:09:28 bsilwal: Maybe more PC to support [open source] Eclipse? I had been using IntelliJ IDEA up until this latest project. Looking forward to going back to it. Jun 07 20:10:05 is idea ce licensed permissively enough to justify investment? Jun 07 20:11:44 jeremyhaberman: what editor? Jun 07 20:13:03 could anyone point me at an example of how to add dividors to ViewPagerIndicator's TabPageIndicator ? Jun 07 20:13:08 *divideres Jun 07 20:13:12 *dividers Jun 07 20:13:16 anddam: not sure what you're asking re: editor Jun 07 20:15:52 jeremyhaberman: well usually when coding a person uses a text editor Jun 07 20:17:29 jeremyhaberman: I mean, don't you have a handy terminal editor of choice? Jun 07 20:17:52 anddam: vim Jun 07 20:19:07 hadn't heard of that javacomplete vim plugin. Will need to try it out. Jun 07 20:19:52 can someone help me with adb. I'm getting "error: insufficient permissions for device" but I added rules to udev Jun 07 20:20:45 elfMobile: what command are you attempting? Jun 07 20:20:52 jeremyhaberman: adb shell Jun 07 20:21:11 with "adb devices" I get .... ???????????? no permissions Jun 07 20:23:09 elfMobile: What OS is on the machine you're running that from? Jun 07 20:23:24 jeremyhaberman: I got a handy snippet that will autoload the adequate jar according to target in project.properties Jun 07 20:23:36 Linux Mint (13 I think, whatever latest is... based on Ubuntu 12.04) Jun 07 20:24:03 elfMobile: add your user to an adequate group for accessing the device Jun 07 20:24:39 anddam: how do I tell what group? Also, didn't the udev rule I put with 0666 mean that anybody should be able to use it? Jun 07 20:25:23 elfMobile: this SO article has lots of leads: http://stackoverflow.com/questions/5510284/adb-devices-command-not-working Jun 07 20:26:09 elfMobile: it should but I cannot possibly know what rule did you add, the rule would be debian-way although ubuntu changes thing from time to time Jun 07 20:26:18 I've nearly no experience with *buntu Jun 07 20:26:58 luxurymode: I'm getting a lot of buffer update between prepare() and start() Jun 07 20:27:07 updates* Jun 07 20:27:12 yeah im an idiot Jun 07 20:27:15 i realize that now too Jun 07 20:27:24 I wouldn't put it that way, I'm just saying I see updates Jun 07 20:27:54 btw I need to implement pause Jun 07 20:28:24 I have a little app to listen my favorite webradio that Browser couldn't handle Jun 07 20:28:38 I guess it's a matter of HTTP Location: Jun 07 20:29:36 as we seem to be in topic: I'd like to put control on lockscreen, like Music does when playing, but I cannot find anything relevant in API. Is it a feature available to SDK applications? Jun 07 20:29:51 would onclickListener work on anappWidget? Jun 07 20:30:17 setOnClickListener(new OnClickListener() { - would this work on a widget as if it would on lets say imageView? Jun 07 20:32:41 Maybe someone can point me in the right direction. What im trying to acomplish is I have my main program which can be downloaded and installed from market. But I want addons to be posted in the market. All these addons will contain is content which will install a folder in my main apps external storage. I want these add ons to delete the folder on uninstall, is this possible? Jun 07 20:32:41 bumm. Jun 07 20:32:47 -1 Jun 07 20:34:29 jeremyhaberman: anddam I fixed it with a udev rule. The guide here didn't work: http://forum.xda-developers.com/showthread.php?t=1612273 Jun 07 20:36:41 anyone ever use 'droidtweak' Jun 07 20:36:55 apparently they control the popular android related facebook groups Jun 07 20:37:33 what is it? Jun 07 20:38:23 some spam I got at my support email address. marketers.. Jun 07 20:38:33 some sort of marketing outfit... timing Jun 07 20:38:54 it's the most promising looking spam I've got yet Jun 07 20:39:29 lol what a rip Jun 07 20:39:37 $150 -- a facebook post Jun 07 20:39:43 I doubt it's even legitimate. Jun 07 20:40:30 of course they don't sell it as a facebook post. they call it 'platinum promotion' Jun 07 20:40:50 sounds platinum alright Jun 07 20:41:03 inasmuch as they're clearly making bank on it Jun 07 20:41:06 yeah, seems pretty skeevy Jun 07 20:42:19 "a sucker is born every minute" --p.t. barnum? Jun 07 20:42:42 i wonder how long it's going to take the mainstream to realize significant investments in social media marketing don't deliver positive returns Jun 07 20:42:57 readme: that's the attribution i've seen, yeah Jun 07 20:43:30 wongk right now facebook ads are coming under a lot of scrutiny by the mainstream Jun 07 20:43:36 you mean advertising, not marketing :) Jun 07 20:43:41 pretty much, facebook has been outed as worthless for ads Jun 07 20:43:46 ctate: both Jun 07 20:43:55 advertising is a marketing function Jun 07 20:44:02 not the way i heard it Jun 07 20:44:02 even my girlfriend's dad told me he though it sucked & adwords is better Jun 07 20:44:07 (from my MBA-school brother) Jun 07 20:44:12 he's an accountant Jun 07 20:44:14 marketing is "figure out what people want to buy" Jun 07 20:44:17 tell him another MBA disagrees :P Jun 07 20:44:22 advertising is "get people to buy your stuff" Jun 07 20:45:13 marketing encompasses the entire go to market strategy Jun 07 20:45:38 product decisions, pricing, advertising, etc... Jun 07 20:47:44 anddam: I think the SDK only supports controlling media playback from the lock screen--remember reading it somewhere in the ICS release notes. Jun 07 20:49:33 wongk: aha. note that i was only getting this secondhand Jun 07 20:49:36 thanks for the more info Jun 07 20:49:54 How do i get the german/french/spanish/english string resource with the name "foo"? Jun 07 20:50:05 (that said, i *still* hear a lot of people throw around the word "marketing" when they clearly only mean advertising :) ) Jun 07 20:50:16 http://twitter.com/hipsterhacker/status/58614636202835968 Jun 07 20:52:30 is flurry analytics popular for android? they again mention on their blog, the large disparity between ios and android wrt developer preference and revenue generated; but its hard to weed out whether the data is completely biased by whether flurry itself is popular on android Jun 07 20:55:09 i have heard that there are large household-name type companies who get more revenue from at least some of their Android products than from the corresponding iOS app Jun 07 20:55:15 fwiw Jun 07 20:55:44 we make more money from our android app Jun 07 20:55:58 but that might not be a very good indication Jun 07 20:56:04 in other words, i'm tying to figure out if flurry is measure the popularity of flurry rather than anything else :P Jun 07 20:56:13 since it's a very specialized application Jun 07 20:56:26 MDijkstra: the medical app ? Jun 07 20:56:30 yeh Jun 07 20:56:33 the paid version Jun 07 20:56:43 i make a lot more money from the android version of my apps, but that's probably because there are no iOS equivalents Jun 07 20:56:53 i'm surprised, since ios is popular in that vertical, and apple was people dedicated to selling idevices in that area Jun 07 20:57:20 (my comment above was for MDijkstra) Jun 07 20:57:48 s/was/has Jun 07 20:57:56 g00s: well, the activated version is even more popular, but I think it's simply the case because android has a larger market Jun 07 20:58:14 g00s: since people will mostly be installing it on their own phones Jun 07 20:58:24 MDijkstra: are most of your users doctors? Jun 07 20:58:39 i guess that could be hard to know Jun 07 20:58:40 if you include medical students, then yes Jun 07 20:58:50 interesting Jun 07 20:59:08 do you think it was a marketing issue with your ios version ? Jun 07 20:59:37 no, I think it's because there are simply more android phones around Jun 07 20:59:40 than iPhones Jun 07 20:59:58 might shift now that there's tablet support in the iOS and Android apps Jun 07 21:00:46 # of phones is important, but its also important by which platform is most represented by that demographic Jun 07 21:01:06 (doctors, med students, etc) Jun 07 21:01:34 that's true, I have also added google analytics in the version that I'm deploying soon Jun 07 21:01:49 usage numbers will be interesting Jun 07 21:04:00 hehe, this is a good one http://techland.time.com/2012/06/07/lets-just-say-it-nobody-has-a-clue-what-smartphone-market-share-will-be-in-2016/ Jun 07 21:05:10 IDC is also the company which predicted Itanium sales would eventually eclipse those of x86 Jun 07 21:05:10 now that apple is no longer exclusively at&t, they might have a chance at being #1 again Jun 07 21:06:07 wongk: it depends on many factors, like china, their ability to satisfy low end, etc Jun 07 21:06:38 their desire to enter the low-end market Jun 07 21:06:54 I don't think they actually want to Jun 07 21:06:56 * elfMobile wishes that you could have multiple users on a single Android device. Doesn't really make sense for a phone, but for a tablet it does. Jun 07 21:07:11 well, maybe in jelly bean Jun 07 21:07:16 MDijkstra: i think they will do what they have to. i think that is the reason for the 7" iPad Jun 07 21:07:22 apple hasn't played for even the midrange market since the late 80s. Jun 07 21:07:23 g00s: of course Jun 07 21:07:45 elfMobile: there's an app for that Jun 07 21:07:46 i would not be surprised, if iphone 5 comes out and 4s comes at a ridiculous discount Jun 07 21:07:47 ctate: well, the iPod Shuffle/Mini/Nano, kind of Jun 07 21:08:19 not at all Jun 07 21:08:23 apple has sub-$100 devices as we speak Jun 07 21:08:31 they were much more expensive than their equivalent competitors Jun 07 21:08:44 ctate: it depends i guess. for example , you still can't get a decent ultrabook cheaper than a macbook air Jun 07 21:09:10 and i was reading yesterday, that isn't likely to change in the near future - oems are fretting Jun 07 21:09:11 from a developer standpoint they can't easily change the size of the screen either Jun 07 21:09:15 no layouts at all Jun 07 21:09:16 that's mostly a triumph of fab Jun 07 21:09:23 only 'fill the screen' Jun 07 21:09:25 and unusual in that respect Jun 07 21:09:26 and ms taking $100 Jun 07 21:09:34 yep Jun 07 21:09:52 i was just reading this morning apple is trying to patent the wedge design :( Jun 07 21:10:01 bye Jun 07 21:10:04 that's the reason why the DPI of the iPhone4 is exactly double that of the iPhone3G Jun 07 21:10:18 and why they haven't tried to make an iPhone Mini or iPad 7" Jun 07 21:10:23 yeah, iOS apps are pretty much all done with hard pixel metrics Jun 07 21:10:35 MDijkstra: yeah, it will be interesting since iphone 5 is supposed to be 16:9 rather than 4:3 Jun 07 21:10:37 be interesting to see what they'd do with a 7" form factor Jun 07 21:10:52 i think they want to nuke kindle Jun 07 21:10:58 well, in the latest OS X they have a new API for it Jun 07 21:11:07 I think they might've built that into iOS6 Jun 07 21:11:16 MDijkstra: new api for ? Jun 07 21:11:24 for handling different aspect ratios Jun 07 21:11:26 ? Jun 07 21:11:27 and simply show old apps in compatibility mode Jun 07 21:11:28 yeah Jun 07 21:11:49 yeah, it'd be pretty easy to letterbox older apps Jun 07 21:12:02 cocoa autolayout Jun 07 21:12:02 but still, should be interesting to see how they spin this as not fragmentation Jun 07 21:12:12 i want to learn how to make API calls from Java, I am planning to use https://developers.google.com/custom-search/v1/cse/list can anyone direct me ? Jun 07 21:12:24 bsilwal: wut Jun 07 21:12:29 evancharlton: the same way they've spun all their other variations as not being fragmentation? Jun 07 21:12:40 evancharlton: I am rookie :/ Jun 07 21:17:24 found stuff to read yay! Jun 07 21:17:42 so: fragments, setRetainInstance(true) Jun 07 21:17:59 in my apps, i've used fragments with a UI and setretaininstance(true), and i've had no problems Jun 07 21:18:19 but apparently the best practice is to only use setRetainInstance(true) on fragments without a UI Jun 07 21:18:37 why is that? Jun 07 21:18:52 or is my understanding of best practice wrong? Jun 07 21:21:37 billjings: where did you see that ? Jun 07 21:21:50 reto meier's book Jun 07 21:22:27 professional android 4 application development Jun 07 21:22:44 billjings: really, what page ? Jun 07 21:22:50 127 Jun 07 21:23:22 "Although you use this technique on Fragments with a UI, this is generally not recommended. A better alternative is to move the associated background task…into a new fragments, without a UI" Jun 07 21:24:07 in android, everything that is simple and obvious is forbidden. I'm not sure what the basis of this advice is Jun 07 21:24:55 yeah, i just read the whole thing and he doesn't say Jun 07 21:25:17 best practices without justifications are just cargo cult shite in the worst case Jun 07 21:25:35 also check out my bitchin' gamma-corrected X desktop: http://bel.fi/~alankila/gamma4.png Jun 07 21:25:48 well, as always i am more inclined to put stuff that needs to happen between ui changes in a service Jun 07 21:26:06 ditto Jun 07 21:26:07 butt would be nice for more explanation Jun 07 21:26:14 but setRetainInstance(true) is still a lifesaver Jun 07 21:27:24 i kinda wish reto was on this irc channel Jun 07 21:27:37 not that i don't trust ctate :) Jun 07 21:27:37 probably the generic "retaining fragments with layout-sensitive UI is likely to do the wrong then when the user changes the device orientation" caveat Jun 07 21:27:43 although he should be clear about why Jun 07 21:27:44 my fixed font rendering is 100 % software implementation, all gpu acceleration has to be disabled for this... takes seconds to switch between desktops Jun 07 21:27:54 *do the wrong THING when... Jun 07 21:27:58 ctate: nah, isn't the onCreateView done again on orientation change? Jun 07 21:28:15 alankila: for retained fragments? isn't avoiding that hte *point* of retaining things? Jun 07 21:28:19 at least I always assumed it would to that Jun 07 21:28:31 ctate: nah, you can still keep the fragment *instance* as the oncreate/oncreateview are separate steps Jun 07 21:28:44 ctate: that's what I figured. either that or possibly the danger of inadvertently keeping a reference to a dead view and leaking an old activity Jun 07 21:28:47 whereas with activity oncreate also creates the UI and therefore the instance itself goes away. Jun 07 21:28:47 neat. then maybe reto is being overly cautious. Jun 07 21:29:01 and yeah the danger would be leaking an old view hierarchy or whatever Jun 07 21:29:12 just check in hat/mat to make sure you aren't, and don't sweat it Jun 07 21:29:22 i guess i would consider onRetainInstance guidelines the same as onRetainNonConfigurationInstance() Jun 07 21:29:30 Alright, so I have this code here http://pastebin.com/bJEJ8Wrg and I am trying to access the metadata in here http://pastebin.com/mKUhq9CS what am I doing wrong exactly? I have looked at a few examples and everything should be fine. Jun 07 21:29:36 i don't think i ever used onRetainNonConfigurationInstance() Jun 07 21:30:54 maybe i'm just a dumbass :) Jun 07 21:31:06 could anyone point me at an example of how to add dividers to ViewPagerIndicator's TabPageIndicator ? Jun 07 21:31:14 it always seemed like a recipe for disaster Jun 07 21:32:12 g00s: i've used it Jun 07 21:32:21 holding on to things like binders from other services, etc Jun 07 21:32:35 instead of having to rebind or whatever Jun 07 21:32:36 I hear you g00s. :D Jun 07 21:32:42 i just rebound to the service Jun 07 21:32:52 overhead, man! Jun 07 21:32:54 :) Jun 07 21:32:55 you have to make sure you don't leak that binder though Jun 07 21:33:01 sure Jun 07 21:33:04 i remember that bug jasta filed Jun 07 21:33:37 oh, i've used it to retain the observer callback object for an ongoing operation Jun 07 21:33:44 which isn't typically something you can recover if you drop it Jun 07 21:34:02 stuff like that Jun 07 21:34:19 ctate: ok, i see. i typically have the ui listen for changes, but pull for updates on onResume Jun 07 21:34:24 *poll Jun 07 21:38:42 i've used it to retain fragment-specific async tasks, for short-lived screen-bound stuff Jun 07 21:41:01 hello room Jun 07 21:41:27 i am struggling for past 6 hours for beginner problem Jun 07 21:41:34 Emulator] PANIC: Could not open: /home/sana/.android/avd/abc.ini Jun 07 21:41:45 Emulator] PANIC: Could not open: /home/sana/.android/avd/my_avd.ini Jun 07 21:42:04 are you out of disk space on /home? Jun 07 21:42:21 I have a small problem with my game on different resolutions. http://spacechase0.com/wp-content/uploads/2012/06/bm1.png, http://spacechase0.com/wp-content/uploads/2012/06/bm2.png and http://spacechase0.com/wp-content/uploads/2012/06/bm3.png Jun 07 21:42:22 JesusFreke no father there is plenty of space Jun 07 21:42:52 are those files properly writeable & is the emulator running as your uid and so on? Jun 07 21:42:55 do the files mentioned exist? are they readable by the user the emulator is running as? Jun 07 21:43:12 readable+writable Jun 07 21:43:14 i would reboot and try again Jun 07 21:43:25 is it plugged in? Jun 07 21:43:32 Do anybody have some tips on how I can make my game compitable with other resolutions? Jun 07 21:44:56 err, don't assume anything about the size of the screen? Jun 07 21:45:24 as a first step you should probably read the general Android discussion of layouts and screen sizes, and how the two interact Jun 07 21:45:42 http://developer.android.com/guide/topics/ui/index.html et cetera Jun 07 21:46:17 well, start with http://developer.android.com/guide/topics/fundamentals.html Jun 07 21:46:40 someday, we might not even be able to assume there is a screen. or just 1 :) Jun 07 21:47:28 blit ALL the screens! Jun 07 21:48:32 JesusFreak ok father let me reboot again and try Jun 07 21:48:44 thanks for ur help JesusFreak Jun 07 21:48:53 thanks g00s Jun 07 21:49:43 ot, but important info on human behavior http://www.sciencedaily.com/releases/2012/06/120606142704.htm . maybe there is even an app in this " For instance, an alcoholic should stay away from places where alcohol is served." … seems doable Jun 07 21:50:08 hm interesting Jun 07 21:50:10 * ctate | To avoid designing different layouts for every possible screen size, many web designers have adopted the concept of Responsive Web Design. In a nutshell this is the idea that your layout automatically adapts to the screen definition. Jun 07 21:50:10 oh i tried several apps like that Jun 07 21:50:29 http://informationarchitects.net/blog/responsive-typography-the-basics/ Jun 07 21:50:41 i tried an app that helped me stop smoking. i deleted it. i installed an app that helped me drink more water, i dont start it Jun 07 21:50:53 from the point of view of web design, but the parallels to the Android world are interesting. Jun 07 21:51:06 behaviour changing apps are aweseome (i tried them) but its hard to make a nanny thats not annoying Jun 07 21:51:10 looks interesting, thanks ctate Jun 07 21:52:01 Younos: i guess one aspect is that it would have to learn about an individual's self control depletion Jun 07 21:52:22 yes Jun 07 21:52:48 whats interesting about this paper, from other things, is this "Hedgcock says his images seem to suggest that it's like a pool that can be drained by use then replenished through time in a lower conflict environment, away from temptations that require its use." Jun 07 21:52:52 agreed, g00s. it can't be a simple for loop. it should have things like 'oks dont bug me the next couple of days' Jun 07 21:53:39 ctate: I'll check these out, thanks Jun 07 21:54:28 ctate: one thing i hate about my kindle for mac reader, is that the fonts still render like shit (qt must be fucked in this way) and you can't change the font. i find using sans serif fonts easier on the eyes for LCDs, at least low-dpi LCDs Jun 07 21:54:47 g00s: Amazon FTL. :( Jun 07 21:54:58 yeah, you would think a reading app would have the font rendering nailed Jun 07 21:55:06 FTL, indeed Jun 07 21:56:06 actually, i have been very unhappy with y last few kindle ebooks. the conversion was so bad, they were unusable Jun 07 21:56:25 i had to step back, and wonder if i wanted to become increasingly sucked into a sile where the products were so defective Jun 07 21:56:30 *silo Jun 07 21:57:18 i'm happy with my kindle Jun 07 21:57:33 the Scalzi novel i just got as a Google Play Store ebook is fine. Couple of typos but nothing serious. Jun 07 21:57:35 i know how it works, i dont ask too much from it. its limited Jun 07 21:57:53 i've seen some quite-crappy Kindle productions. sigh. Jun 07 21:57:55 g00s: it's less of an issue with kindle, and more with pitiful publishers Jun 07 21:58:12 my problem seems to be that i read a lot of art / design stuff, where the physical books have intricate layouts - and the publishers fail at converting this to the limited mobi format Jun 07 21:58:13 p_l|backup: amazon does their own scanning sometimes, too, from what i hear Jun 07 21:58:28 ctate: and the ones they do are quite good, afaik Jun 07 21:58:38 g00s: yeah! html is not a proper book layout format. :( Jun 07 21:58:40 the thing is, Mobi format is for things like novels Jun 07 21:58:50 But ctate, I'm making a game with SurfaceView. Not a simple GUI app. Jun 07 21:58:50 p_l|backup: not all; i've seen some with vast numbers of OCR errors Jun 07 21:58:51 ctate: thats the truth Jun 07 21:58:55 they're pretty good though Jun 07 21:58:58 nowadays Jun 07 21:59:11 html however can resize and all that Jun 07 21:59:18 pdf, the other choice, can't Jun 07 21:59:20 Kake_Fisk: that's easier then; you just look at the dimensions of the screen at runtime and decide how to accommodate it Jun 07 21:59:34 i understan why they chose html Jun 07 21:59:57 Kake_Fisk: do you want to scale the whole playfield to whatever the screen size is? do you want to preserve aspect ratio when doing so? do you want to e.g. present a larger window into the same virtual playfield when running on a tablet instead of a phone? etc Jun 07 22:00:19 Kake_Fisk: it's just like developing for a desktop machien where the user can resize windows, or where you can't assume what monitor resolution is available Jun 07 22:00:28 what people forget is that Mobi format used by Kindle was designed for cross-platform readability, meaning it should read just as well on computer, a 3.2" PDA, 5" book reader, 2" 480x640 screen, or 3" 320x320 screen, etc. Jun 07 22:00:43 p_l|backup: sure, but it's damn limited in terms of actual book type layout tools Jun 07 22:01:08 My graphics are quite simple, at the moment at least, so what would have been nice was if I used the 9png method. Wouldn't scaling make it look blurry and bad? Jun 07 22:01:10 be nice to have something as capably expressive as Frame / Quark / Indesign as the underlying distribution format. :( Jun 07 22:01:14 ctate: yes, because it needed very extensive reflowing while working on limited devices (old B&W palms was origin, iirc) Jun 07 22:01:24 yep Jun 07 22:01:42 i have some friends who do ebook publishing / production Jun 07 22:01:47 trust me i hear about the travails :) Jun 07 22:01:51 and it really works well for what it was made for - I read a lot of books on my nokia e51 :) Jun 07 22:02:13 hi g00s JesusFreke ctate Kake_Fisk still same error Emulator] PANIC: Could not open: /home/sana/.android/avd/my_avd.ini Jun 07 22:02:33 blow away the AVD and rebuild it? Jun 07 22:02:34 ctate: I did some conversions myself and dealt a bit with to-paper DTP :) Jun 07 22:03:26 thanks ctate i recreated avd but somehow it does not appear in /home/sana/.android/avd/ Jun 07 22:07:45 p_l|backup: i wish i had a good book scanner :) Jun 07 22:08:04 like that one that lets you flip through the pages quickly, even with the paper bent Jun 07 22:08:24 since it builds a 3d model of the curved page and applies transforms to it before ocr Jun 07 22:11:33 that kind of technology makes me wonder what on earth sony was thinking with the playstation "move", its just pathetic Jun 07 22:13:25 robb_www: wii patents Jun 07 22:13:49 interesting that you say that, because they really didnt think too far outside the box compared to the wii Jun 07 22:14:14 meanwhile the technology licensed for the kinect is atleast interesting Jun 07 22:14:31 I'm having some troubles with if statments and a preference. I get the value of the pref and then use if statements to determine what to from there. The problem is, none of the if/elses get called. Here's the code I'm working with: http://pastebin.com/69q5Y8tF Do any of you know why it's skipping the ifs? Jun 07 22:15:19 cr5315: you need to use String.equals() Jun 07 22:15:49 http://stackoverflow.com/questions/767372/java-string-equals-versus Jun 07 22:17:04 Oh, that makes sense. Thanks g00s Jun 07 22:17:19 hi g00s JesusFreke ctate Kake_Fisk still same error Emulator] PANIC: Could not open: /home/sana/.android/avd/my_avd.ini Jun 07 22:17:32 Stop that Jun 07 22:17:44 miss_ubuntu: even with rebooting and blowing away the avd ? Jun 07 22:17:51 yes g00s Jun 07 22:18:15 is there some weird permission issue on that folder (.android) ? Jun 07 22:18:24 maybe rm -fr that folder Jun 07 22:18:29 no i use 777 Jun 07 22:18:42 g00s deleted and recreated Jun 07 22:50:33 really, google doesn't have a picasa app Jun 07 22:51:04 that's worse than not having a checkout app Jun 07 22:58:50 hey, in a layout what are the differences between @+id and @id? Jun 07 23:00:14 Do I need the .INTERNET permission if all I want is connect to the local network? Jun 07 23:00:21 WIFI network* Jun 07 23:00:35 jayd16: one defines the ID, the other consumes it Jun 07 23:01:10 kakazza: android isn't smart enough to make that distinction Jun 07 23:01:16 it doesn't route packets :P Jun 07 23:01:42 wongk: hmmm, is it mostly for the developer? seems like you have use @+id anywhere you would use @id Jun 07 23:01:55 can use* Jun 07 23:02:15 the reverse is not true Jun 07 23:02:43 but you're correct, it won't redefine an ID that's already defined Jun 07 23:03:06 Can I give a talberow a id and can i make it clickable? Jun 07 23:03:23 tablerow Jun 07 23:04:34 kakazza: yes, of course. Jun 07 23:07:01 okay.jpg Jun 07 23:17:30 eugh thermal paste gets everywhere Jun 07 23:19:28 several years ago i decided to heck with mucking around with computer hardware Jun 07 23:19:46 do paid apps ever sell on the android market? too many free apps! Jun 07 23:19:47 the only time i crack the case on my PCs is to vacuum out the dust Jun 07 23:20:18 ctate, xbox rrod needs fixing Jun 07 23:20:25 too many apps that do the same thing! Jun 07 23:20:41 setsid: no, not a one, it's terrible Jun 07 23:21:01 i have a few laying around but dont like to throw away hardware if i can help it Jun 07 23:21:12 robb_www: you say that like you expect me to have an xbox Jun 07 23:21:22 I'm building a ContentProvider, how should I limit it's functionality for datasets that are read-only? Jun 07 23:21:35 wongk-home did you release some app on to the market? Jun 07 23:21:43 3 Jun 07 23:22:01 2 aren't really apps, they're themes Jun 07 23:22:17 nplus: fail write operations? Jun 07 23:22:34 [00:19] do paid apps ever sell on the android market? too many free apps! Jun 07 23:22:35 i mean, it depends on your expected usage patterns and all Jun 07 23:22:36 nope Jun 07 23:22:47 i've made more money from advertising on my apps Jun 07 23:23:27 ctate, not so much expecting you to own one, but thought it made sense to clarify why i wasnt using warranty / just buying another myself Jun 07 23:23:28 i see Jun 07 23:23:38 Jabo what kind of apps? games? Jun 07 23:23:43 robb_www: because building your own xbox works so well? Jun 07 23:23:50 >:) Jun 07 23:23:52 :P Jun 07 23:24:02 calculators for engineering students Jun 07 23:24:11 i was just kidding, but i don't make much Jun 07 23:24:14 simple stuff but handy Jun 07 23:24:21 i spent a few years viciously upgrading my desktop before deciding my gaming experience would be cheaper if i resigned to a pre-build system and left it at that Jun 07 23:24:31 i have a buddy that makes like $1500/month in his spare time Jun 07 23:24:42 Real Programmers' Calculator: https://play.google.com/store/apps/details?id=com.milk.realprog Jun 07 23:25:02 in order to sustain that level, you have to keep coming up with new popular apps, though Jun 07 23:25:14 ctate: Droid48 FTW! Jun 07 23:25:41 robb_www: yeah, i get the cost argument. i decided my time & [lack of] stress were worth paying other people to design/build/repair my computers. :) Jun 07 23:26:10 i managed to get employment this summer in android development Jun 07 23:26:12 somehow Jun 07 23:26:15 it takes like an hour to build a PC from scratch :P Jun 07 23:26:23 hoping it will become a new career Jun 07 23:26:32 if you take your time Jun 07 23:26:41 ctate, the height of my stupidity was phase-change cooling, that was basically the tipping point Jun 07 23:26:43 wongk-home: including time spent researching / shopping for components? Jun 07 23:26:48 robb_www: ha ha ha Jun 07 23:26:52 i'm only developing for work.. havent made any apps for my self yet Jun 07 23:27:02 i confess that my latest pc is water cooled Jun 07 23:27:03 ctate: ok, that takes a little longer Jun 07 23:27:09 newegg.com Jun 07 23:27:28 but that was installed by the vendor, so. :) Jun 07 23:27:41 running a CPU at -20C was amusing for sure, but barely months later S939 was replaced with AM2 and people could get the same overclocks on air Jun 07 23:27:48 wongk-home: is he like brute forcing the market with too many apps? how many hours is he placing? Jun 07 23:28:07 setsid: he has like 10... i don't know how many hours Jun 07 23:28:21 they're all a similar look and feel, though Jun 07 23:28:36 i'm still running my 2.4ghz core 2 duo laptop as my main machine Jun 07 23:28:46 recently upgraded it to 8gb of ram Jun 07 23:28:56 it's fucking plenty enough of a machine for what i need it to do Jun 07 23:29:11 wish my laptop would take 4gb sticks :/ im stuck on 2x2gb max Jun 07 23:29:32 i wanted 2 * 8gb's but it can't take them Jun 07 23:29:41 I'm beginning to find that 4GB isn't enough... Jun 07 23:29:48 2x desktops are 8gb ram 3ghz quad-cores Jun 07 23:30:08 oh yeah, running Windows is also a reason i don't build my own Jun 07 23:30:10 8gb is great for running mac os in vm Jun 07 23:30:14 I'm sitting at 89% of physical memory usage Jun 07 23:30:17 unless you're virtualizing like 3 machines, 8 GB is plenty Jun 07 23:30:23 wongk-home 10 is a lot... i wonder how that's done in spare time. unless the apps don't do much Jun 07 23:30:30 i was struggling when it was only 3gb Jun 07 23:30:37 wong i used to do quite a bit of simulation, i could easily have sapped up 64gb Jun 07 23:30:43 setsid: not a whole lot Jun 07 23:31:01 robb_www: sounds like an.. edge case Jun 07 23:31:08 indeed Jun 07 23:31:12 between eclipse, firefox, vbox, there isn't a whole lot left Jun 07 23:31:35 i guess these apps don't have a service side to deal with... just one complex app is taking forever at work Jun 07 23:31:44 i'm sitting at 50% usage right now Jun 07 23:32:01 with chrome, eclipse, skype, balsamiq and mirc running Jun 07 23:32:08 and vmware loaded but no vm's running Jun 07 23:32:45 had to close ~40 firefox tabs earlier, i tend to leave things open :/ Jun 07 23:32:57 that's redonkulous Jun 07 23:33:02 pfffft, eclipse is hogging 835MB of ram Jun 07 23:33:36 the kernel as given it 835, how much is it actually using? Jun 07 23:33:53 why would someone hack linked-in? Jun 07 23:34:11 i was wondering that too Jun 07 23:34:20 what could you gain from hacking it? Jun 07 23:34:21 for the lulz Jun 07 23:34:27 eclipse is only eating up ~480mb right now Jun 07 23:34:35 Jabo: passwords for other sites Jun 07 23:34:55 they only got the MD5 hashes Jun 07 23:34:56 build an android app and let me know how much it uses when dx runs :P Jun 07 23:35:44 Eclipse by itself is using 2-2.3 gb of ram right now Jun 07 23:35:52 * wongk-home out Jun 07 23:36:03 hard to tell how much Chrome is using becuase it's running 30 processes Jun 07 23:36:26 Jabo: SHA1 i think... but unsalted so with rainbow tables or brute force you can figure out a lot of people's passwords and then comprise their other accounts (email, paypal, etc.) Jun 07 23:36:33 i really wish desktops had procrank :) Jun 07 23:36:44 jabo, given most people use very simple password systems, and linked-in contains professional contact details, id say theres more value to their database than most other services, compared to say.. sonys playstation network for example Jun 07 23:37:01 ctate: does about:memory give you an overall total? Jun 07 23:37:17 sure does Jun 07 23:37:20 nplus , you beat me to it @ explaining Jun 07 23:37:38 mine is hogging 413MB with only 4 tabs open Jun 07 23:37:45 * ctate Google Chrome 19.0.1084.53 2,272,256k 1,885,184k 1,759,320k 49,571,840k Jun 07 23:37:51 resident/shared/private/virtual Jun 07 23:38:35 lol i like how chrome finds it necessary to list firefox's memory usage as well Jun 07 23:39:24 nplus: yes, it's usually bloody embarassing to Chrome on my machine ;) Jun 07 23:39:59 i absolutely hate chrome auto-updating, especially when connected to a 3G connection with a 500mb cap Jun 07 23:40:21 robb_www: yikes.. hadn't thought of that... Jun 07 23:40:35 wait, it updates out from under the usual Market update mechanism? Jun 07 23:40:39 and the most annoying part is i dont even use chrome as my daily driver Jun 07 23:40:48 mostly because i don't have a data plan... but still Jun 07 23:40:50 yeah, i don't use chrome on android Jun 07 23:41:00 i might start once it's up to par with the android browser Jun 07 23:41:12 ctate i mean on my desktop (im a windows user) Jun 07 23:41:29 parse error: "on my desktop" near "3G connection with 500mb cap" :) Jun 07 23:42:28 lol Jun 07 23:42:46 [seriously] Jun 07 23:42:49 hah Jun 07 23:43:14 im on 50mbit at home, but i cant get IT to sign my laptop up to the network at the clients site Jun 07 23:43:27 so i end up using 3G for everything Jun 07 23:43:39 i can't wait to get my 100mb upgrade Jun 07 23:43:46 next month Jun 07 23:44:40 robb_www: you can set one route to the client site that takes the interface that uses the 3G link and another default route to use the 50mbit connection Jun 07 23:44:42 moving in september, not sure if ill stay with virgin (cable) or go to ADSL, depends where I end up, its a concern though I love this connection Jun 07 23:45:25 * p_l|backup is on 54Mbit because WiFi can't deliver ;) Jun 07 23:45:43 with 100Mbit WAN? Jun 07 23:45:50 robb_www i think the "route add" command could do that on dos Jun 07 23:45:56 robb_www: 1Gbit Jun 07 23:46:26 1Gbit network, and two 1Gbit links to outside 40GBit network Jun 07 23:46:32 setsid not sure what that would achieve Jun 07 23:46:48 you at an ISP? Jun 07 23:46:57 university :) Jun 07 23:47:05 robb_www: your regular traffic then could use the 50mb link. Jun 07 23:47:09 though I *did* work for an ISP once :) Jun 07 23:47:17 (well, mobile telco :D) Jun 07 23:47:28 i worked for an ISP when is was in college Jun 07 23:47:42 ah makes sense, at uni i get roughly 70mbit, but its on superJANET (if thats spelt right?) so im sure im limited by the local cabling Jun 07 23:48:01 JANET here as well ;) Jun 07 23:48:20 setsid, but I only use the 3G because im physically on-site, so I have no access to the 50mbit Jun 07 23:48:55 p_, are you an RA? Jun 07 23:49:15 i see... start using someone elses wifi net ;) Jun 07 23:49:49 robb_www: nope, just an undergrad staying a bit longer at uni Jun 07 23:50:21 setsid, at some point ill finally invest in a nice big yagi, then i should be able to access some networks im authenticated for Jun 07 23:50:39 or get WiMax Jun 07 23:51:32 p_, i did exactly the same, had 7 years as a student, 1.5 as staff, but moving to industry soon Jun 07 23:51:33 hi, if I override onRestoreInstanceState, does the Activity still go though onResume? Jun 07 23:53:06 oh never mind, just found found it in the docs Jun 07 23:58:18 just updated my SDK and noticed the "Intel x86 Atom Image." should I be using this, for the most part, instead of the ARM image for development now? I assume it's faster? Jun 07 23:58:20 Eclipse say to me: array cannot be resolved or is not a field (row 23): http://pastebin.com/1DVWun3p Jun 07 23:59:16 so I want to have two versions of my app on a phone at once. 1) the way to do this is to just change the package in the manifest, right? 2) is there a way I can do this without changing all the R imports in all my java files? Jun 07 23:59:51 Bink: see http://android-developers.blogspot.com/2012/03/updated-sdk-tools-and-adt-revision-17.html and the linked info Jun 08 00:00:11 ctate: thank you Jun 08 00:00:57 sukramTM: http://developer.android.com/guide/topics/resources/more-resources.html#TypedArray Jun 08 00:01:28 maybe you imported android.R by accident? Jun 08 00:01:48 oh, you didn't. Jun 08 00:02:06 try build clean Jun 08 00:02:27 check xml for errors Jun 08 00:03:11 found the error Jun 08 00:03:30 moved the array file in the wrong folder Jun 08 00:15:14 Hi, someone there? Jun 08 00:15:58 nope Jun 08 00:16:04 all 635 of us are afk Jun 08 00:17:38 i'm definitely afk Jun 08 00:17:48 I'm here, but eating breakfast Jun 08 00:18:19 crazy Jun 08 00:18:23 1:18am here Jun 08 00:20:32 ctate: I read http://developer.android.com/guide/developing/devices/emulator.html#accel-vm and I meet the hardware requirements. any reason for me to develop simple applications using the ARM image (as opposed to the x86 image) anymore? Jun 08 00:22:31 if you had the chance, would you quit uni to pursue a career in software development? Jun 08 00:22:41 uni/college Jun 08 00:23:05 my uni course is completely unrelated to dev Jun 08 00:23:16 what course is it? Jun 08 00:23:30 i've done 2 years out of 4 Jun 08 00:24:28 motorsport and design engineering Jun 08 00:24:41 Bink: try it and see if it works? Jun 08 00:24:50 yawn... ctate how is your day going Jun 08 00:24:52 Bink: its supposed to be faster to use the x86 image, and even though my pc meets the requirements, but it works slower for me. Just try it. Jun 08 00:25:00 Jabo: *quit* uni to pursue a career in software? that's crazy talk. Jun 08 00:25:16 haha... thanks.... But seriously I want to know, if I want to store a lot of data, like Strings, int and double from an arraylist of objects in a binary file, what is the good class to use? What is the good stream to use? (After it will be my problem to find a way to store it and retrieve it at the good place :P ) Jun 08 00:25:16 unless you've already taken all of your uni's data structures / algorithms courses Jun 08 00:25:24 ctate: figured someone else might have Jun 08 00:25:30 f2prateek: doing so now... Jun 08 00:25:42 i know ALL the data structures and algorithms Jun 08 00:25:46 theres the array Jun 08 00:25:49 and the bubble sort Jun 08 00:25:51 and.... yea Jun 08 00:25:58 You're fired. Jun 08 00:26:10 [into space] Jun 08 00:26:10 :D Jun 08 00:26:29 there's like b-trees Jun 08 00:26:31 and tries Jun 08 00:26:33 and and and Jun 08 00:26:50 can you actually explain either of those? :) Jun 08 00:26:51 I know all the design patterns Jun 08 00:26:54 yes Jun 08 00:26:56 I love the singleton! Jun 08 00:27:04 as a matter of fact Jun 08 00:27:10 scrmable with friends uses a trie for word lookup Jun 08 00:27:11 how about B*-trees? :) Jun 08 00:27:15 antipattern! Jun 08 00:27:22 @readme^ Jun 08 00:27:22 i <3 tries; they're fun Jun 08 00:27:23 +1 ctate assuming canadiancow can't explain those Jun 08 00:27:51 b-trees are easy; b*-trees i'd have to sort of work my way through again Jun 08 00:28:01 robb_www: When writing a new app, I make one singleton, then it holds all the other singletons! Jun 08 00:28:03 also offhand i could reproduce AVL balancing but not red-black balancing Jun 08 00:28:08 * ctate shrugs Jun 08 00:28:11 Is it "DataOutputStream"? Jun 08 00:28:14 robb_www: more singletons = more 1337 Jun 08 00:28:21 rbtrees didn't come along until after i had that course :) Jun 08 00:28:26 ok good, i won't drop out Jun 08 00:28:36 good idea Jun 08 00:28:59 drop out and buy a book before you accumulate student debt! Jun 08 00:29:15 classrooms are so overrated Jun 08 00:29:23 seriously, there is a lot of useful content in CS curricula Jun 08 00:29:36 more so if you're going to a school that is starting to teach actual software engineering Jun 08 00:29:41 or just stay in school, cheat through all your tests, graduate with a shit GPA, and still get a better starting salary than the wizard hacker who dropped out Jun 08 00:29:45 plus the discipline of actually finishing projects will stand you well in real life Jun 08 00:29:45 i thought people went to uni for the tests/degrees, not for the courses Jun 08 00:29:47 don't drop out Jun 08 00:30:03 neither bill gates nor steve jobs had degrees Jun 08 00:30:13 neither were career programmers Jun 08 00:30:40 and afaik at least bill gates was pretty well connected with rich people from birth, and went on to get a lot of honorary doctorates. Jun 08 00:30:40 they were programmers of human beings Jun 08 00:30:48 pragma-: yes, but that was in 1973 Jun 08 00:30:52 things are frankly different now Jun 08 00:30:58 also Jobs was never a software guy, really Jun 08 00:30:58 human beings don't throw exceptions or anything Jun 08 00:31:02 the more things change the more they remain the same Jun 08 00:31:02 much easier to program then computers Jun 08 00:31:18 pragma, i feel theres a "no cash" joke there, but ill leave it implicit Jun 08 00:31:57 I don't understand people who take dropping out as a point of pride. I'm a dropout & although I have taught myself enough, I'm not proud of it at all. Jun 08 00:32:40 every day I dream of going and getting a CS degree. Jun 08 00:33:12 every day I dream of buying a hut to rent out fishing rods or boats to tourists on some island Jun 08 00:33:51 the mcafee dream Jun 08 00:34:01 it ends with arrest by a swat team Jun 08 00:34:11 i know someone who went from living in australia teaching scuba diving, to doing a BSc in computer science in Cardiff Jun 08 00:34:21 poor guy Jun 08 00:34:50 Wales isnt that bad, but otherwise it did seem like a step in the wrong direction Jun 08 00:34:52 then again australia is prety scary Jun 08 00:35:04 i hear they have spiders, big ones Jun 08 00:35:10 you're just saying that because everything in Australia is trying to kill you Jun 08 00:35:32 robb_www: http://www.telegraph.co.uk/earth/earthnews/3353693/Giant-spider-eating-a-bird-caught-on-camera.html Jun 08 00:36:13 wow Jun 08 00:36:19 [note: graphic] Jun 08 00:36:21 I would never want to run into that thing. Jun 08 00:36:33 Australia is full of scary dangerous things Jun 08 00:36:40 including inch-long jellyfish that will kill you Jun 08 00:36:43 in tremendous pain Jun 08 00:37:28 yep thats sufficiently large to scare me Jun 08 00:37:32 (okay they grow up to 4") Jun 08 00:37:33 that's what she said Jun 08 00:38:02 * robb_www doesnt want to admit he laughed Jun 08 00:38:05 google images for "Cute spider" Jun 08 00:38:41 :O! suddenly less terrifying Jun 08 00:38:52 lies, kill them all with fire! Jun 08 00:38:57 my fear mainly stems from not wanting to hurt them, and not wanting them to touch me Jun 08 00:39:50 the logic being, if they touch me, i will need to break its exoskeleton in multiple places, which would make me sad Jun 08 00:40:00 f2prateek: feels slightly faster, but I'm not certain if that's just a placebo effect (still takes a while to boot though), but it's working fine Jun 08 00:40:21 I once got a spider attached to me by a strand and as I ran in a panicked sprint, it was kiting in the air behind me at eye-level not more than 3-5 feet away Jun 08 00:40:32 I don't think I've ever undressed more quickly. Jun 08 00:41:16 ... as I slowed, it would lose lift and start to fall towards my body Jun 08 00:41:25 lol, must have been small then though, surely? Jun 08 00:41:34 THERE IS NO SUCH THING AS A SMALL SPIDER! Jun 08 00:42:08 google images have multiple examples, they come with lolcat-speak and everything Jun 08 00:42:42 a tiny brown recluse can give you a bad case of necrofetish Jun 08 00:42:45 er... necroflesh Jun 08 00:43:04 silly typing memory. Jun 08 00:43:45 disturbing Jun 08 00:44:19 google images brown recluse bite with safe filter off Jun 08 00:44:52 im looking on wiki, that doesnt look entirely dissimilar to something i sucked into a vaccum cleaner under my desk when i was a teenager Jun 08 00:45:23 it probably didnt look anything like this, but my false memories are more dramatic than the truth Jun 08 00:45:51 http://www.inc.com/ron-burley/4-million-complaint-call.html Jun 08 00:46:04 good read for anyone who's selling software Jun 08 00:46:05 pragma, that is vile Jun 08 00:46:22 Can anyone help me with this? http://stackoverflow.com/questions/10940788/socket-listening-android Jun 08 00:48:36 I'm calling the recycle() method on my bitmap in my onDestroy() method, and i'm getting a java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@405182e0 error Jun 08 00:48:46 so stop calling recycle Jun 08 00:48:53 Why would I get that if it's recycling in the ondestroy Jun 08 00:49:09 But it's in the ondestroy, why would it need the bitmaps if ondestroy is being called Jun 08 00:49:20 it's onDestry. Jun 08 00:49:24 with another 'o' Jun 08 00:49:31 onDestryo? Jun 08 00:49:35 I know Jun 08 00:49:35 close enough Jun 08 00:49:37 I'm just being lazy Jun 08 00:49:44 protected void onDestroy() { Jun 08 00:50:02 are you still propagating the call to super? Jun 08 00:50:03 what the heck is "DlolPics"? Jun 08 00:50:16 What does that mean robb_www Jun 08 00:50:24 I think it's http://dlolpics.com Jun 08 00:50:37 ^ Jun 08 00:50:49 youve overridden the method, are you still calling the parent classes onDestroy method within your implementation Jun 08 00:51:03 why does it have to be in his name? Jun 08 00:51:09 advertising Jun 08 00:51:23 Yes. I call onDestroy from within my class Jun 08 00:51:25 Manually call it Jun 08 00:51:37 My name was this before I made that website. Jun 08 00:51:47 see Jun 08 00:52:00 It was a username from a game. Jun 08 00:52:14 I use this name on a different irc server. Jun 08 00:52:17 why don't you use name yourself DlolPics then Jun 08 00:52:21 what the heck is a TDub Jun 08 00:52:30 Tdub is what everyone calls me Jun 08 00:52:37 http://www.dlolpics.com/?p=7841 wtf is this Jun 08 00:52:42 A rl nick name a teacher gave me Jun 08 00:52:48 Is that like some kind of slanging of "He Dumb"? Jun 08 00:52:56 Sure Jun 08 00:53:45 T-dawg, can you put your onDestory method on pastebin plz? Jun 08 00:54:03 T-Dub|DlolPics: nick = nick.split("|")[0]; // how to become cooler Jun 08 00:54:04 destroy -.- ^ Jun 08 00:54:42 readme++ Jun 08 00:54:54 robb_www that was it, thanks. I changed my onDestroy() calling to finish() and it's all good. :) Jun 08 00:54:54 JakeWharton++ Jun 08 00:55:23 dont know what we did, but everyones happy, cool Jun 08 00:56:05 My error was being I was calling the onDestroy method inside a method. And the ondestory recycles the images. But sense android wasn't the one calling ondestory technically the images were still in use. Jun 08 00:56:09 Something to that effect. Jun 08 00:56:20 *because not being Jun 08 00:56:21 calling onDestroy yourself, brilliant! Jun 08 00:57:08 Bypass the android gui api and code everything in GL so your code's platform independant Jun 08 00:58:17 with a framework to skin the app depending on the OS its running on, right? Jun 08 00:58:32 platform independent == doesn't follow conventions == unintuitive Jun 08 00:58:52 robb_www: so like...rebuild the android UI framework on top of opengl? :) Jun 08 00:58:57 exactly Jun 08 00:59:11 captain obvious points out the joke again! Jun 08 00:59:16 Does anyone know how I would do this? http://stackoverflow.com/questions/10940788/socket-listening-android/ Jun 08 00:59:28 pragma: no-cache Jun 08 00:59:40 ok ill stop that now, youve obviously heard it many times before Jun 08 00:59:45 i am going to go get a job at google Jun 08 00:59:48 just so i can +b pragma- Jun 08 00:59:53 once and for all Jun 08 00:59:59 do you really need a job at google to op here? Jun 08 01:00:01 I love that guy. Jun 08 01:00:03 no Jun 08 01:00:09 but it's easier that way Jun 08 01:00:47 robb_www: this framework, the opengl one.. i think it should be implemented in one big singleton Jun 08 01:00:52 actually, lets use 3 Jun 08 01:01:15 wow dont go crazy with it, what do you need 3 for? Jun 08 01:01:28 good things some in threes Jun 08 01:01:35 its true Jun 08 01:01:45 robb_www: I use 3 singleton...so more than 3 can never be created! Jun 08 01:01:57 :P Jun 08 01:01:58 doughnuts tend to come in packs of 12 Jun 08 01:02:13 you'll be doze'n Jun 08 01:02:23 I get a baker's dozen Jun 08 01:02:34 unlucky Jun 08 01:02:48 superstituous Jun 08 01:03:06 no, just means each of your 12 original doughnuts are slightly smaller Jun 08 01:03:20 its the illusion that counts! Jun 08 01:03:28 as long as I don't know any better! Jun 08 01:03:44 i get the idea, but heres a counter-example.. mini-doughnuts Jun 08 01:03:49 see, doesnt work Jun 08 01:03:53 mmm, illusory donuts Jun 08 01:04:14 someone once sold me a box of donut holes Jun 08 01:04:37 robb_www 12 is a factor of 3 Jun 08 01:04:50 so really its just 4 sets of 3 donuts Jun 08 01:04:51 but we only have 3 singletons, what can be done? Jun 08 01:05:38 anonymous inner classes Jun 08 01:05:54 i was thinking IPC, but ok Jun 08 01:09:04 Xophosaurus: there's some guy using your name in another channel here Jun 08 01:14:36 Hello all Jun 08 01:14:49 I have been away from android development for almost two year Jun 08 01:15:05 Is there not a layout editor included with the ADT for eclipse Jun 08 01:15:43 there is Jun 08 01:17:02 go to your layout folder in package explorer, double click one of your layouts, it will open your layout in a tab as normal, but there are two tabs at the bottom of the editor, one is for the XML view, the other is labeled "Graphical Layout" Jun 08 01:17:40 Does anyone here know If i can make a service that only starts when a socket revices data/ Jun 08 01:17:41 ? Jun 08 01:19:21 JPatrick: well, there's C2DM Jun 08 01:19:32 is that what chrome2phone uses? Jun 08 01:19:38 https://developers.google.com/android/c2dm/ Jun 08 01:19:53 chrome2phone uses c2dm, yeah Jun 08 01:19:58 it's like the example given in the c2dm docs Jun 08 01:20:07 + its handy Jun 08 01:20:22 Thank you,ill have a look into that :D Jun 08 01:20:52 what I gleaned from the C2DM docs, is that a C2DM message is not guaranteed Jun 08 01:21:02 does this mean it can't be used for mission critical applications? Jun 08 01:21:03 my understanding also Jun 08 01:21:15 Ah,that could be a problem Jun 08 01:21:19 readme right, that is also how i understand it Jun 08 01:21:23 that's not the only problem Jug6ernaut Jun 08 01:21:25 JPatrick: * Jun 08 01:21:37 if someone throws their phone in a lake or something Jun 08 01:21:38 lol Jun 08 01:21:44 you'll still be wasting C2DM messages on them Jun 08 01:21:53 you have to implement a ping mechanism Jun 08 01:22:01 to detect when hosts are no longer active Jun 08 01:22:13 Is there no alternative to a background service if I want to be sure the data reaches the phone? Jun 08 01:22:25 or you can have the device respond with an ack Jun 08 01:22:28 C2DM sounds a lot like UDP Jun 08 01:22:30 whenever you send a message Jun 08 01:22:46 acking every message would work, yeah Jun 08 01:22:47 good idea Jun 08 01:23:34 tcp is kind-of-crap for devices that might lose their connection any second Jun 08 01:23:38 Sorry if this is a stupid question but what is a ack? Jun 08 01:23:43 it's fine for request/response Jun 08 01:23:46 SYN Jun 08 01:23:50 My app wouldnt matter if it loses connection Jun 08 01:23:51 nowledgement Jun 08 01:23:58 Ah Jun 08 01:23:58 where's my ack, dammit Jun 08 01:24:20 Its a messaging app type thing Jun 08 01:24:23 refers to the TCP handshake Jun 08 01:24:33 @JPatrick Jun 08 01:24:33 just needs to wait for a message from the server Jun 08 01:24:40 Ah ok Jun 08 01:24:53 use C2DM then Jun 08 01:25:04 just make sure you understand the problems associated with it Jun 08 01:25:07 that are not covered in the docs Jun 08 01:25:11 that we just told you about Jun 08 01:25:17 (belated, the *tiny* scary-painful awful Australian jellyfish is http://en.wikipedia.org/wiki/Irukandji_Jellyfish ) Jun 08 01:25:54 so what happens if you swallow that vial? Jun 08 01:26:51 stings from these guys are basically The Most Painful Thing. Jun 08 01:27:01 for hours. Jun 08 01:27:17 Ok,so just let the user no if the message was not delevied in a set amount of time Jun 08 01:27:19 http://en.wikipedia.org/wiki/Irukandji_syndrome Jun 08 01:27:35 Irukandji syndrome is produced by a small amount of venom and includes severe pains at various parts of the body (typically excruciating muscle cramps in the arms and legs, severe pain in the back and kidneys, a burning sensation of the skin and face), headaches, nausea, restlessness, sweating, vomiting, an increase in heart rate and blood pressure, and psychological phenomena such as the feeling of impending doom. Jun 08 01:27:43 on-topic, C2DM is pretty rad Jun 08 01:27:51 I could just use c2dm to make my client app start,then use normal sockets after that Jun 08 01:27:52 ? Jun 08 01:27:59 right Jun 08 01:28:35 thank you robb_www I thought so. Jun 08 01:28:45 I have been away for so long that I forgot it was there. Jun 08 01:28:57 Ok thats for all the help :) Jun 08 01:29:16 thats hilarious, @ "feeling of impending doom", what with the nausea, vomiting, anxiety, hypertension etc.. Jun 08 01:29:42 Ok second newbie question Jun 08 01:30:02 to acutally deploy and apk you need to sign it with a private key. Jun 08 01:30:11 Can that by your pgp key Jun 08 01:30:37 http://i.imgur.com/mQAlN.jpg Jun 08 01:31:36 Third newbie question. To get map tiles I seem to remember you have to sign up for a google map key or something like that. Supposed I did years ago but now do not remember what username and password I signed up under. Will their system throw me out when I try to sign up for another and/or is there a way to recover that. Jun 08 01:33:13 reademe: lol do you have that link on a hotkey? :P Jun 08 01:35:21 robb_www: "feeling of impending doom" is a surprisingly common neurological toxicity effect Jun 08 01:35:25 kinda freaky Jun 08 01:36:18 Admob mediation has no documentation on backfill, nor answers to whether they do on Google forums...I guess I must assume they don't do it Jun 08 01:37:23 ctate, considering whats happening to your body i wonder whether its a side-effect of the other symptoms, a secondary symptom if you will Jun 08 01:37:36 Holy hell. Android development is a ton of fun. Jun 08 01:40:27 I am hoping it will be a ton of money Jun 08 01:40:29 :) Jun 08 01:40:39 so no answers to my multipart question? Jun 08 01:41:41 I just read your third one. What's wrong with signing up again? Jun 08 01:43:41 Does anyone know of any good tutorials on basic android game development? Jun 08 01:45:05 http://stackoverflow.com/questions/2837925/good-book-for-android-game-development Jun 08 01:45:20 nothing JustSighDudes. Jun 08 01:45:33 I am just wondering if google will allow me to do that Jun 08 01:45:40 Thanks @robb_www Jun 08 01:53:36 yay my 2nd DOI is now live :D Jun 08 02:01:38 wish java.text.Normalizer was available for API level 5, nevermind Jun 08 02:02:04 when a service is stopped (stopService(new Intent(contex, class)); what method is called right before onDestroy(). Does finsh() get called just like a normal activity? Jun 08 02:02:36 http://developer.android.com/reference/android/app/Service.html lifecycle is here Jun 08 02:02:57 3am, so gnight Jun 08 02:03:01 Thank you and night Jun 08 02:03:56 In methods like onPause(), onResume(), onDestory() and finish() are you supposed to do all your code before or after the super.blah? Jun 08 02:04:39 depends... Jun 08 02:04:48 i tend to do it after for setup and before for teardown Jun 08 02:04:54 so super.onResume(); myStuff(); Jun 08 02:04:59 but myStuff(); super.onDestroy(); Jun 08 02:05:08 Ok. Jun 08 02:05:10 Thanks. Jun 08 02:05:13 I'll follow that as well. Jun 08 02:05:36 ive never overridden finish() though Jun 08 02:10:45 will market://search?q=pub alwas be valid because i dont see a play:// dtyle url Jun 08 02:11:22 I bet they will have the play store app always support that URI Jun 08 02:11:33 they might add the play prefix later Jun 08 02:12:29 im with t0mless on this Jun 08 02:12:30 ok just making sure because all example for anyref is still market:// Jun 08 02:12:34 the website still says to use market:// Jun 08 02:12:46 but it says use market:// if an app is launching it Jun 08 02:12:49 and http:// if its anything else Jun 08 02:13:02 like an email link, or a website, or wahtever Jun 08 02:13:05 but the always will support market i would think Jun 08 02:13:31 right ty Jun 08 02:14:06 I don't think they'll ever stop supporting market:// Jun 08 02:14:29 yea they wouldnt want to break all that shit Jun 08 02:14:40 im with WilliamL on this millions of apps Jun 08 02:14:47 Does anyone know if there is a but fires after external storage is mounted? Jun 08 02:14:49 i updated my website so that it was play.google.com instead of market.android.com, just to better fit the branding Jun 08 02:14:53 JPatrick, yes, there is Jun 08 02:15:03 What is it? :P Jun 08 02:15:43 look at ACTION_MEDIA_* Jun 08 02:15:48 i dont know if you need MOUNTED Jun 08 02:15:49 did you even look at the intent list? Jun 08 02:15:49 or something else Jun 08 02:16:59 ACTION_MEDIA_MOUNTED - that one? Jun 08 02:24:25 When my activity goes into pause this shows in my logcat: W/KeyCharacterMap(15558): Can't open keycharmap file Jun 08 02:24:48 And then it says error loading keycharmap file '/data/usr/keychars/tegra-kbc.kcm.bin' Jun 08 02:24:52 Anyone know why? Jun 08 02:27:19 what does anythink is the best add program ? Jun 08 02:52:00 droidbuster: Do you mean advertising network? **** ENDING LOGGING AT Fri Jun 08 02:59:59 2012