**** BEGIN LOGGING AT Tue Mar 27 02:59:58 2012 Mar 27 03:01:16 hm, apparently its just by convention and it does compile Mar 27 03:01:24 carry on Mar 27 03:02:06 xorgate: No, finishActivity... To put simply, I have Activity A, which creates Activity B. Activity B has method onBackPressed which calls finishActivity. Mar 27 03:02:23 you might want just plain old this.finish() Mar 27 03:02:25 And should return me to Activity A's onActivityResult Mar 27 03:02:30 I need the result. Mar 27 03:02:46 setResult() Mar 27 03:02:52 I'll give it a shot. Mar 27 03:03:20 Is there a general rule for the max length a SoundPool sound should be? Like anything over 10 seconds use MediaPlayer? 30 seconds? 1 minute? etc Mar 27 03:03:30 No dice. I still can't exit Activity B Mar 27 03:03:42 Hello! I have a rooted phone running CM7. I can only seem to ping as super user.. is there a workaround for this? Mar 27 03:04:06 NicholasRoge: calling finish() *will* exit the activity. are you sure the code is getting hit? Mar 27 03:04:21 Positive. I have a log just before and after the call. Mar 27 03:04:25 I won't die. rofl Mar 27 03:04:39 try calling super.onBackPressed() instead Mar 27 03:04:42 to get the default action Mar 27 03:04:42 And yeah, that was my assumption. Mar 27 03:04:45 which would be to close it Mar 27 03:04:48 i'd say setResult() and super.onBackPressed() Mar 27 03:05:00 Been looking at it for a few hours now. Mar 27 03:05:04 And I'll give that a shot. Mar 27 03:05:35 Ah. Mar 27 03:05:39 T-Dub|DlolPics: if you care that much, SoundPool is going to disappoint you Mar 27 03:05:39 That worked. Mar 27 03:05:48 Whys that? Mar 27 03:06:03 T-Dub|DlolPics: the times I've used it it's been buggy, for example, the first time I play a sound with it, every time, it is not audible Mar 27 03:06:23 need to come up with ideas for apps Mar 27 03:06:34 might be better off looking into libraries like fmod or trying to just use MediaPlayer inside your own wrapper Mar 27 03:06:44 searching stackoverflow will turn up similar opinions. Mar 27 03:06:58 Doesn't MediaPlayer take a lot of memory though? Isn't soundpool a way more efficient way of doing lots of sounds Mar 27 03:07:08 I already have a working sound pool Mar 27 03:07:18 T-Dub|DlolPics: if it is already working well for you, stick with it Mar 27 03:07:22 I just have sounds that are a few seconds long, some as long as 10 seconds or so though Mar 27 03:07:30 Not sure if that's pushing the limit or something Mar 27 03:07:43 it's probably not. also, you don't have to load all the sounds at once Mar 27 03:07:46 you can use lazy loading Mar 27 03:08:07 wrap soundpool in a class that keeps track of which sounds are loaded, and loads it on demand if it is not loaded yet Mar 27 03:13:18 How does the onWindowFocusChanged work exactly? Will it pass true once everything is initialized? For example, in a very extreme case, if I were to load 500 sounds within a soundpool in the onCreate method, once all the sounds are loaded will onWindowFocusChanged pass true? Or does onWindowFocusChanged only take care of VISUAL initializing? Mar 27 03:18:15 IO IO IO IO IO IO IO IO IO Mar 27 03:18:46 T-Dub|DlolPics: that is not a good way to do it Mar 27 03:19:02 T-Dub|DlolPics: first of all, people aren't going to press every sound every time they use the soundboard Mar 27 03:19:08 so why load all? Mar 27 03:19:21 I'm just reading and it appears that there is a delay Mar 27 03:19:40 yeah, there would be a slight delay loading, the first time they press the button Mar 27 03:19:54 well it appears there isn't a method to check if it's loaded Mar 27 03:19:56 but it's gonna be a big, big, delay, if you load 500 sounds in onCreate. Mar 27 03:20:04 T-Dub|DlolPics: you keep track of that yourself, using a HashMap Mar 27 03:20:09 if you play it before it's loaded it just errors out Mar 27 03:20:23 T-Dub|DlolPics: hold on, I'll show you what i mean Mar 27 03:20:25 That's out of my league Mar 27 03:20:27 no it's not Mar 27 03:20:34 not to mention android has a horrible audio latency of up to 250ms depending on the device Mar 27 03:21:13 which is why you dont see audio games Mar 27 03:23:39 TachyonDev: is that with all audio, even if you use a 3rd party lib Mar 27 03:23:49 everything Mar 27 03:24:03 the audioflinger has so much hardware abstraction Mar 27 03:24:14 porkloaf: ping requires root access period. No way around that =/ Mar 27 03:24:14 the lowest ive seen is around 40-80ms Mar 27 03:24:30 on the Nexus S/Nexus One Mar 27 03:25:11 readme: i mean i havent experimented with custom ROM implementations too much .. but one prototype device i saw was maybe down in the 20's or so Mar 27 03:27:04 TachyonDev: what 3rd party libs would you recommend? I want to try fmod Mar 27 03:29:11 readme: the libraries i ported or played with are mpg123, vorbis, kissfft, soundtouch, and beatdetektor Mar 27 03:31:25 hey people Mar 27 03:31:33 TachyonDev Mar 27 03:31:34 hola Mar 27 03:31:43 i just woke up Mar 27 03:31:45 :| Mar 27 03:31:49 fell asleep on the sofa Mar 27 03:31:50 readme: yeah ive been meeting to get effects suite like fmod in there Mar 27 03:31:57 Napalm: hah .. Mar 27 03:32:01 man i have a crick in my neck Mar 27 03:32:02 :( Mar 27 03:32:11 * Napalm sighes Mar 27 03:33:32 ah Mar 27 03:33:41 meaning* Mar 27 03:34:17 readme: looks like fmod would increase my app size by a lot :P Mar 27 03:34:27 readme 650k to 4MB Mar 27 03:36:22 readme: didnt even realize fmod had an android branch :P Mar 27 03:37:03 yeah :) Mar 27 03:37:16 readme: $500 license isnt too bad Mar 27 03:38:14 heh $2500 mp3 license too Mar 27 03:38:33 for games anyway Mar 27 03:38:34 T-Dub|DlolPics: if you use api level 8, you can set a SoundPool.OnLoadComplete listener Mar 27 03:38:56 ooof Mar 27 03:39:01 I don't think I will be trying fmod now Mar 27 03:39:24 well technically, if you have a third party mp3 decoder, you are subject to a major fee Mar 27 03:39:29 Well I'm using my own soundPool class Mar 27 03:39:30 :| Mar 27 03:39:40 How does yours work Mar 27 03:39:41 Looking like I won't be for long though Mar 27 03:39:47 using MediaPlayer? Mar 27 03:40:03 readme: yeah all the libraries I use are lgpl Mar 27 03:40:08 and ICS has an mp3 decoder in it Mar 27 03:40:09 TachyonDev: guess you don't really need MP3 anyway. Mar 27 03:40:10 native Mar 27 03:40:25 and pre-ics you can use mediaplyer Mar 27 03:40:29 Unless it's a dj app. you definitely need for that. heh Mar 27 03:40:29 to get the bytestream Mar 27 03:40:29 http://pastebin.com/9zfreYE4 Looking like the stopSound isn't working though, so I'll probably use androids Mar 27 03:40:33 :P Mar 27 03:40:59 anyway gotta get some sleep for IO registration Mar 27 03:41:06 shake it easy Mar 27 03:41:31 T-Dub|DlolPics: hm, I'm making a sound pool wrapper now that makes use of the newer OnLoadCompleteListener Mar 27 03:41:44 :o Mar 27 03:41:51 I didn't make this, I found it online Mar 27 03:41:52 *turns off TachyonDev's alarm* ;) Mar 27 03:41:56 Wish I was that good :P Mar 27 03:46:15 LOL SimonVT Mar 27 03:46:25 i just got your word in draw something Mar 27 03:56:07 how to specify the default install location as SD card? Mar 27 03:57:08 xeon: http://developer.android.com/guide/topics/manifest/manifest-element.html#install Mar 27 04:04:34 is there any ordered hashmaps? Mar 27 04:04:49 thought somebody just asked that not long ago Mar 27 04:04:52 linkedmaps Mar 27 04:06:26 yes i just found it Mar 27 04:06:33 linkedhashmap Mar 27 04:12:37 is there any reason not to put preferExternal in that android:installLocation thingy? Mar 27 04:13:26 is there an installation error code list anywhere? i'm getting -19 repeatedly with my app Mar 27 04:19:32 xorgate: apps which run in the background, or provide widgets, may be better off not going external Mar 27 04:19:52 although that may be less of an issue with HC and ICS - but of course most users are on Froyo or Gingerbread Mar 27 04:24:48 http://www.fiercedeveloper.com/story/are-developers-giving-android/2012-03-26 Mar 27 04:25:24 Why might (http://ideone.com/HC6Rt) not cause the view in question to change color when it's pressed/focused? (MenuItem inherits from TextView) Mar 27 04:27:00 uhm dont call it menuitem http://developer.android.com/reference/android/view/MenuItem.html Mar 27 04:29:07 xorgate: Yeah, I know. Can't think of a better name right now, though, so I'll have to come up with one later. Mar 27 04:29:12 also you're probably better off styling in xml Mar 27 04:29:42 g00s, old news... Mar 27 04:30:41 xorgate: I can't, here. This Activity needs to be a standalone package that can easily be modified. All the styling needs to be done in the Activity. Think of it kind of like the Preferences Activity. Mar 27 04:31:09 what do you mean by 'standalone package' ? Mar 27 04:32:27 Erm... Basically like the Preferences Activity is. The user can start the activity, and it just runs. Everything is ready. And if the user wants to override it they can, but it's strictly optional. Mar 27 04:34:36 So, any ideas? Mar 27 04:34:49 well your 2 calls to addState have different kinds of parameters Mar 27 04:36:00 ItIt is? Mar 27 04:36:09 *They do? Mar 27 04:37:19 ah apparently not Mar 27 04:37:47 Once I figure this issue out, my Activity will be ready to go. Mar 27 04:38:08 I can technically use it now, but I want it to done before I start using it. Mar 27 04:40:21 maybe you need to call setState() Mar 27 04:42:29 Where would I call setState at? In the View's onTouch listener? Mar 27 04:43:28 I like how people make blanket statements like NOBODY LIKE ANDROID Mar 27 04:46:36 i like how people make blanket statements like 'i like how people make blanket statements like …' Mar 27 04:46:42 XD Mar 27 04:46:47 ron_frown: oi oi Mar 27 04:46:48 ! Mar 27 04:47:23 g00s long time no see Mar 27 04:47:36 ron_frown: yeah, i am usually on earlier Mar 27 04:47:41 how are your pandas :) Mar 27 04:48:54 so far so good... working up some stuff to get some custom variants Mar 27 04:49:08 mutant pandas :O Mar 27 04:50:01 basically Mar 27 04:50:18 with freaking lasers on their heads ? Mar 27 04:50:28 I havent been doing any of the porting bits as of late Mar 27 04:50:36 been working on my remote control shit Mar 27 04:50:42 remote control android swarms =) Mar 27 04:51:05 uh oh Mar 27 04:51:23 can do some pretty badass stuff with it now Mar 27 04:51:33 but its for very very specific use Mar 27 04:51:38 not viral/trojan/worm Mar 27 04:52:39 ok, i feel better now Mar 27 04:54:29 Hello Mar 27 05:47:16 hi, is there a way to speed up maven when building a project? Mar 27 05:50:43 try mvn -o (-o,--offline Work offline) Mar 27 05:53:28 still slow Mar 27 05:54:26 can anybody tell me here i am trying to make a anroid project on netbeans after download plugin when i am trying to create anroid project in netbeans its tell-->Target Android Platform must be specified. but thereis no enable option for select Mar 27 05:54:35 anyone happen to have a simple template of clickable widget that calls a method or service? Mar 27 05:55:09 vipin: Eclipse is most compatible with android dev Mar 27 05:55:21 vipin: haha i told you that right before you left #java XD Mar 27 05:55:24 but i use only netbeans Mar 27 05:55:49 well netbeans sucks dood Mar 27 05:56:02 nightmare... check the apis app Mar 27 05:56:55 it has tons of bloat in it Mar 27 05:57:06 can't find a simple button widget that calls a service Mar 27 06:29:34 using ABS: I am referencing background ?selectableItemBackground which works fine except when I'm not using a sherlock theme Mar 27 06:29:42 any ideas how to handle other themes as well? Mar 27 06:56:31 Hi guys. A question about jni naming convention. How to name my jni function if my Class have _ in it? Mar 27 07:10:53 etuleu, put the attribute in your other themes Mar 27 07:11:07 JakeWharton how goes it player Mar 27 07:11:11 enjoying new life? Mar 27 07:11:15 yeah Mar 27 07:11:17 busy Mar 27 07:11:33 we just launched yesterday/today so things are calming down Mar 27 07:11:34 I could imagine Mar 27 07:11:44 oh shit balls, and only being there for what, <1mo Mar 27 07:11:53 yeah 3 weeks Mar 27 07:11:58 it was an intense 3 weeks Mar 27 07:12:36 JakeWharton, yea I figured it out :) Mar 27 07:13:39 i wrote something with loaders tonight Mar 27 07:13:45 that sounds like how my work has been since day one Mar 27 07:13:47 they work great except whatever I did my list isn't updating Mar 27 07:14:09 the stupidest things always break Mar 27 07:14:11 someone in here was having a ton of problems with them ~3-4weeks ago Mar 27 07:14:27 thats my beef with android Mar 27 07:14:34 i registered my adapter Mar 27 07:14:39 i thought that was all you had to do Mar 27 07:14:43 the simplest shit is fragle, or at least cumbersome if you miss one little teeny feature Mar 27 07:14:52 and super easy to grenade Mar 27 07:15:51 JakeWharton, did you call swapCursor or whatever in onLoadFinished? Mar 27 07:16:16 not using a cursor Mar 27 07:16:17 I remember I had some fun with this a while ago but loader seems to be working for me now Mar 27 07:16:22 I wrote my own Loader Mar 27 07:16:34 the problem is the stupid listview and adapter talking to each other Mar 27 07:16:41 the data loads in the adapter fine, calls notify fine Mar 27 07:16:45 it just never displays Mar 27 07:16:51 ah but the view doesn't know about it? Mar 27 07:16:55 i probably missed something stupid like making it invisible or something Mar 27 07:18:32 setListShown(false) Mar 27 07:18:35 :D Mar 27 07:18:39 told you! Mar 27 07:19:14 why do you need that? Mar 27 07:19:35 it shows the empty text Mar 27 07:19:47 then you set it to true when you have data Mar 27 07:19:52 and it hides the empty text and shows the list Mar 27 07:20:15 playing with WPF as of late really has given me a lot of respect for ms as far as its advances Mar 27 07:20:18 android.app.RemoteServiceException: Bad notification posted from package com.janhouse.nfcmail: Couldn't create icon: StatusBarIcon(pkg= Mar 27 07:20:25 happened after updating actionbarsherlock. Mar 27 07:20:27 any ideas? Mar 27 07:20:28 assuming thtats how you build wp8 apps Mar 27 07:20:34 thats a pretty nice tech stack Mar 27 07:20:40 still wont do them a ton of good Mar 27 07:20:42 i just hate XAML Mar 27 07:20:48 programming inside of XML Mar 27 07:20:49 not for me Mar 27 07:20:56 programming inside of xaml? Mar 27 07:21:06 XAML has all kinds of display logic embedded into it Mar 27 07:21:09 if you are writing code inside of xaml, you are doing it wrong =) Mar 27 07:21:25 there is databinding shit so you can do stuff like button displayed only if item selected Mar 27 07:21:33 but thats good for separation of concerns Mar 27 07:22:02 it starts out simple like that and then you're in a list and you have to say only show this button if the list item X is true and the parent mode's Y is also true Mar 27 07:22:30 and then it all breaks down pretty badly Mar 27 07:24:00 honestly Mar 27 07:24:16 I see simple databinding in the xaml Mar 27 07:24:23 the view represntation in view model Mar 27 07:24:26 etc etc Mar 27 07:24:42 with mvvm, wpf is so much more pleasant to deal with than layout.xml's Mar 27 07:26:34 on the other hand Mar 27 07:26:39 xcode licks sack Mar 27 07:27:27 never used it Mar 27 07:27:28 never will Mar 27 07:27:51 haha Mar 27 07:28:13 I dont live in an ideal location Mar 27 07:28:21 dont have tons of opportunities for wokr Mar 27 07:28:24 so I do what I can do Mar 27 07:28:30 there are things I lke about ios dev Mar 27 07:28:34 lots I disklike Mar 27 07:46:02 Greets gents, i have a bar of buttons at the bottom of two activities. Both react simular and look exactly the same. Is there a way for me to do an activity transaction without moving the bottom bar. The moving pieces aren't fragments. Mar 27 07:47:55 I've tried manually animating the elements, but they appear to animate out of sync, meaning: Activity A's content area slides out with objectanimator, Activity B has a overridePendingTransition with a slide in effect. Mar 27 07:49:26 DysonReturns: you want the buttons to stay still while the rest animates? Mar 27 07:49:57 what you are talking about is the use case that fragments were designed for Mar 27 07:50:10 what compels you to not use them? Mar 27 07:52:29 JakeWharton: any ideas why intent action is used to disable apps in ICS? Mar 27 07:52:44 o_O Mar 27 07:52:47 with that new Disable feature in Settings > Applications Mar 27 07:52:57 *what intent Mar 27 07:52:59 doh Mar 27 07:53:19 I do not know. Does it not show up in logcat? Mar 27 07:53:48 im an idiot, pretend i didnt ask :| Mar 27 07:53:58 i suppose its also about time i grab the latest repo Mar 27 07:57:15 sorry if this is a repost, internet was down for a bit: Greets gents, i have a bar of buttons at the bottom of two activities. Both react simular and look exactly the same. Is there a way for me to do an activity transaction without moving the bottom bar? The moving areas aren't fragments. Mar 27 07:59:20 DysonReturns, you can customize the animation between the activity-transition, so it appears it doesn't move Mar 27 07:59:27 not sure if there are other options Mar 27 07:59:57 afaik. the overridePendingTransition only accepts animation resources Mar 27 08:00:08 those resources can't target specific elements to my knowledge Mar 27 08:00:19 * DysonReturns doublechecks Mar 27 08:02:36 is onLoadFinished called on the UI thread? Mar 27 08:03:04 JakeWharton: i think so Mar 27 08:04:15 so i can't find any attributes for targeting specific views, the animation resources (xml) can only target the activity as a whole, so the fixed view moves transitions with the rest of the activity's view. Mar 27 08:04:26 what you are talking about is the use case that fragments were designed for Mar 27 08:04:28 what compels you to not use them? Mar 27 08:11:19 if you hook up a keyboard to your android device, the android device will be the usb host right? Mar 27 08:11:39 is it possible to control other types of usb devices this way? Mar 27 08:11:43 specifically, an arduino? Mar 27 08:11:45 is there a default install location setting on device for install on SD_card or internally? Mar 27 08:11:57 I know about accessory mode, but that just complicates things Mar 27 08:13:26 JakeWharton: so what you're saying is that entire application has to run from one activity (and be build from fragments) in order to keep a GUI element static. Mar 27 08:14:33 yes Mar 27 08:14:53 +1 on xeon s question Mar 27 08:15:10 Samsung s Mar 27 08:15:15 5830 Mar 27 08:15:36 JakeWharton: i'm going to trust that this is common practice and implement your recommendation. Mar 27 08:15:48 Can't seem to find the configuration for it Mar 27 08:15:50 you can still use multiple activities Mar 27 08:15:51 JakeWharton: thank you for your time :) Mar 27 08:16:03 but for the case you want you need to be transitioning between fragments Mar 27 08:16:07 or just swapping the views yourself Mar 27 08:16:19 because fragments are really just views with a few callbacks Mar 27 08:17:29 My fear is just that I run into something that the fragments can't do. Mar 27 08:17:39 Google for life! Mar 27 08:17:41 they're just views Mar 27 08:17:41 you won't Mar 27 08:17:46 and you don't even need fragments to do it Mar 27 08:17:49 anything a view can do a fragment can do and then some Mar 27 08:17:52 it's just a hell of alot easier that way Mar 27 08:18:03 But I suppose i'll cross that bridge when I get there :) Mar 27 08:18:17 what you're asking is literally one line with fragments Mar 27 08:18:53 i know, I do the transition stuff for overlay menus. the activities in question have fragments to allow drop-down and pop-up menus Mar 27 08:19:09 readme: "and you don't even need fragments to do it" what are you talking about? Mar 27 08:19:28 DysonReturns: as JW said, Fragments are just views with a couple extra callbacks. Mar 27 08:19:29 getSupportFragmentManager().beginTransaction().replace(R.id.main_panel, new OtherFragment()).setCustomAnimation(android.R.anim.slide_out_left, android.R.id.slide_in_right).commit(); Mar 27 08:19:53 DysonReturns: i've written fragment-like apps on 1.x-2.x before compat lib by showing and hiding views. but it's messy Mar 27 08:20:16 ah Mar 27 08:20:37 api level 7, using compat v4. so i should be good. Mar 27 08:20:39 thanks allot guys Mar 27 08:20:44 time to get cracking Mar 27 08:21:18 games are hard to code :| Mar 27 08:21:33 10x harder than CRUD, at least Mar 27 08:21:34 Why i love them Mar 27 08:21:42 it's a love-hate relationship so far for me Mar 27 08:21:56 Actually yeah Mar 27 08:21:57 the problems I'm dealing with are mostly math ones Mar 27 08:22:05 Oh Mar 27 08:22:14 like, I've got tons of objects moving at velocity, using time deltas Mar 27 08:22:19 then I have an object that can collide Mar 27 08:22:27 if it does, it has to be pushed by the other object Mar 27 08:22:30 but it jitters Mar 27 08:22:34 so confusing to debug Mar 27 08:22:49 readme: you should probably consider the physics libraries like box2d, which try to solve just this kind of problem Mar 27 08:23:10 You don't use any physics library ? Mar 27 08:23:16 alankila: yeah. I wanted to take a crack at my own engine. I've got somewhat of a playable game finished. I am sure after learning box2d etc I'll be able to fix mine Mar 27 08:23:19 nah it's from scratch Mar 27 08:23:21 it's not perfect though Mar 27 08:23:51 i have only mario/sonic like physics in this Mar 27 08:23:56 nothing too complicated Mar 27 08:24:19 You aiming for 3d ? Mar 27 08:25:28 box2d uses a kind of semifirm surface around all objects which is very small, and it lowers the time step length near collision events. I think the nonrigidity is the way it transfers energy and momentum from one body to another and emulates friction, most likely Mar 27 08:26:10 garaleos: long term goal yes. this game is just 2d, though. I've been working on it for a little more than a week now, it's my first game, pretty much Mar 27 08:26:15 that being said its animations just don't look 100% convincing to me Mar 27 08:26:54 alankila: yeah, I use epsilons around the objects, but the "semi-firm" part is not present here Mar 27 08:27:03 How did i pm on this thing? Mar 27 08:27:07 it's probably the way this little soft surface around all bodies means that everything seems to give in a bit Mar 27 08:27:13 /query nick-name Mar 27 08:27:48 i will have to try it Mar 27 08:27:56 I think I'll try it after I figure out this last issue Mar 27 08:29:22 Wait, so the red stuff wasn't a pm on Mar 27 08:29:28 also there's that newton's craddle thingy, I saw it done in box2d once and it would not work correctly, it just doesn't transfer the momentum cleanly through the balls Mar 27 08:29:32 garaleos: red stuff? Mar 27 08:43:18 can't fckn stand looking at my app Mar 27 08:43:32 <`z> k Mar 27 08:44:55 First time using this client Mar 27 08:45:12 Its an android client Mar 27 08:45:25 Now I am getting an endorphin rush, because i solved another issue :) Mar 27 08:45:53 which client are you using? Mar 27 08:46:11 AndroIRC Mar 27 08:46:18 Its good Mar 27 08:46:28 <`z> ^ Mar 27 08:46:38 At least its very similar to mirc Mar 27 08:46:42 <`z> one thing that I look for is Mar 27 08:46:50 latest androirc update is good Mar 27 08:46:52 programming is a drug. Mar 27 08:46:58 <`z> IRC client auths with nickserv and then joins channels Mar 27 08:47:08 <`z> qirc doesn't do that, so i can't join #android and #android-root Mar 27 08:47:10 androirc > andchat Mar 27 08:47:20 This one does it Mar 27 08:47:22 `z: oh yea that is annoying Mar 27 08:47:58 blame the crappy irc protocols Mar 27 08:48:10 `z: i'm fairly sure that qicr does authenticate with nickserv Mar 27 08:48:14 I have it installed and it does Mar 27 08:49:01 he wants an option for channels to only join when mode +r is set Mar 27 08:49:05 yeah Mar 27 08:49:33 ah, i see Mar 27 08:49:47 its usually a good idea to send nickserv id commands before join commands ;D Mar 27 08:50:03 So funny story. Spent a month and a half developing a rpg turn based with a grid. All in flash... Mar 27 08:50:21 This thing doesn't even handle flash player Mar 27 08:50:31 Not to mention air Mar 27 08:50:33 may i ask why you were using flash :P Mar 27 08:50:44 Good question Mar 27 08:51:35 The game was bad anyways Mar 27 08:51:44 Needed so much work Mar 27 08:52:41 Flod is ilegl Mar 27 08:52:42 Its all good Mar 27 08:53:14 Learning java is a step forward in my career Mar 27 08:54:01 what resolution for icons / backgrounds should i by guide-lines use in hdpi/ldpi/mdpi ? Mar 27 08:54:15 like what are the guidelines ? Mar 27 08:55:48 Don't you at least temp ban this kind of users? Mar 27 08:55:50 Insayne: http://developer.android.com/guide/practices/ui_guidelines/icon_design.html Mar 27 08:56:08 and http://developer.android.com/design/style/iconography.html Mar 27 08:56:30 ty Mar 27 08:57:07 I m gonna rate this client. Its good stuff Mar 27 08:58:46 that link is awesome man Mar 27 08:58:48 thank you sooo much Mar 27 08:58:53 it answers all :D Mar 27 09:03:22 Insayne: my pleasure :) Mar 27 09:12:54 So i m aiming for 2.2 Mar 27 09:13:42 Seen some statistics and that's what's being used the most Mar 27 09:15:09 Plus according to android development policies everything past that can use it anyways Mar 27 09:20:59 I m studying on the freaking phone man! Mar 27 09:21:23 And radiohead is in the back Mar 27 09:25:49 hey, did anyone knows how to send and receive data from usb serial port? Mar 27 09:26:51 Any good links or tips on low power gps utilization? Mar 27 09:29:56 embed: You get a notification when you connect it to the pc with installed drivers Mar 27 09:30:22 Clicking on it prompts the option Mar 27 09:32:08 garaleos: i get the notification and I clicked o.k and also I get permission to connect and send and received I just don't really sending anything.. Mar 27 09:32:34 http://developer.android.com/sdk/oem-usb.html Mar 27 09:32:46 Did you get those drivers? Mar 27 09:33:51 hey guys, I have listview with ~50 items, and sometimes I need to acces this items. So call listView.getChildAt() and it works good on the first 5-10 items. on the items 10-50 it always just returns null, what am I doing wrong? Mar 27 09:34:39 Who else feels the play store needs improvement? Mar 27 09:35:27 I'm using archos101, and I put the right drivers for it (it's not on the link you sent me...) Mar 27 09:35:31 Like... I can't even get a list of the best developers Mar 27 09:35:54 Ok them i don't know Mar 27 09:37:11 thanks anyway... if you think of something please share.. I'm on this bug for 4 days... Mar 27 09:37:36 I need an app which can dial directly from Word document. anybody recommend? Mar 27 09:38:32 stiggpwnz: ListView doesn't hold more views than it cna show at a time. Off-screen views are recycled Mar 27 09:38:39 Also, don't access the views directly Mar 27 09:38:58 ah ha! Mar 27 09:39:11 sorry, wrong window. Mar 27 09:39:16 I was playing with irssi' split window feature Mar 27 09:39:23 lulz ;O Mar 27 09:40:00 embed: I don't even know what kind of phone that is Mar 27 09:40:09 garaleos: it's a second-tier tablet Mar 27 09:40:21 it's a tablet.. Mar 27 09:40:50 Of which brand? Mar 27 09:41:10 Is there a method analogous to the getFilesDir() method of a Context, which lets me get the internal files directory of another application? Mar 27 09:41:23 another application? Mar 27 09:41:34 ejcweb, those are private to the app Mar 27 09:41:37 look up "sandbox" Mar 27 09:41:59 archos Mar 27 09:42:24 Snuffel, readme: Yes, another application. In that application, I'm setting the mode to MODE_WORLD_READABLE, so I would thought my other app would be able to access the file? Mar 27 09:43:29 have you googled? Mar 27 09:43:29 SimonVT, how should I access these views? If I want to change them Mar 27 09:43:31 One app is taking a photo, and I want the other application (which is running a Service) to be able to access that file. I can't use external storage for this. Mar 27 09:43:46 ejcweb: you can use ContentProvider, though. Mar 27 09:43:55 stiggpwnz: Supply the adapter with any data it needs to build your list items. Then notifyDataSetChanged Mar 27 09:44:00 Again, remember views are reused Mar 27 09:44:31 readme: How so? Mar 27 09:44:43 ejcweb: an image is a sequence of bytes Mar 27 09:44:52 ejcweb: but even the android gallery app stores pics in external storage Mar 27 09:45:00 why can't you use that? are you trying to implement some kind of DRM Mar 27 09:45:30 SimonVT, thanks, gonna try that! Mar 27 09:46:06 onr: i dunno, I don't use it Mar 27 09:46:09 SimonVT, wait, how do I do that? just pass my view to adapter's getView as a parameter? Mar 27 09:46:17 stiggpwnz: No Mar 27 09:46:18 readme: lol Mar 27 09:46:24 You give the adapter some data Mar 27 09:46:33 Adapter supplies views in getView based on that data Mar 27 09:47:02 That's it Mar 27 09:47:07 readme: The reason for not using SD is subtle, but related to the fact that a video is also being written to SD at the same time and I'm finding that concurrent access makes bad things happen to the Android MediaRecorder framework. Mar 27 09:47:11 You change the data, views will look different Mar 27 09:47:44 and what if I already gave adapter the data, it supplied views to my listview, but then I want to change some of my view's components Mar 27 09:47:52 ejcweb: I don't think you'll find a better solution than using the sdcard. Maybe you can synchronize access to it? Mar 27 09:47:55 Then you change the data Mar 27 09:48:02 ejcweb: sqlite can store blob datatypes Mar 27 09:48:12 SimonVT, I think I got it, thanks Mar 27 09:48:12 And call notifyDataSetChanged Mar 27 09:49:34 readme: Another idea - can I send a file (as in the actual data) as an extra in an Intent? Mar 27 09:49:54 I guess that might have some memory issues since the file could be large though... Mar 27 09:50:03 ejcweb: yeah, wrap it in a Parcelable Mar 27 09:50:09 ejcweb: but i don't know, might be slow there. Mar 27 09:51:21 readme: So I'm thinking, send bytes from photo in Intent as Broadcast to other app, which then saves it to it's own internal memory space. Mar 27 09:52:02 ejcweb: be sure to let me know how that works... Mar 27 09:52:18 ejcweb: TCP socket is another possibility Mar 27 09:52:26 I don't feel like it's a great idea sending as Intent. Mar 27 09:53:57 I have a question about UI in android. Will android continue update the view on the screen? Mar 27 09:54:34 edwinkcw: hm? Mar 27 09:55:05 HDroid: because in game engine, it will keep calling render() function Mar 27 09:55:21 edwinkcw: oh, that's not generally how normal UI's work. Mar 27 09:55:24 HDroid: so, I wonder if android view object is the same ot not. Mar 27 09:55:50 HDroid: because I want to implement my own animation manager, and keep update the ui Mar 27 09:55:54 Normally it will stay the way it is, until some user action is performed (which usually triggers a listener of some sort). Mar 27 09:56:53 You update within the listener Mar 27 09:57:12 in other words, I should post the view update in handler? Mar 27 09:57:23 Yeah Mar 27 09:57:58 SimonVT, wow, it's even easier and requires alot less code than accessing a view by getChild Mar 27 09:58:28 garaleos: yes, this is my first though also. But..I afraid it will introduce some delay between the post time and the actual view update Mar 27 09:58:49 s/though/thought/ Mar 27 09:59:06 I doubt that Mar 27 09:59:28 Unless its online Mar 27 09:59:46 Or runs on a pig Mar 27 10:00:51 And are we talking about basic UI or advanced animations? Mar 27 10:01:21 If the first, it should run fine Mar 27 10:02:11 er...I think both Mar 27 10:02:22 http://blog.intercom.io/wp-content/uploads/2012/03/Condom-or-Android.jpg Mar 27 10:02:37 What other option are you considering ? Mar 27 10:03:11 mikedg: http://goo.gl/u2fh1 Mar 27 10:03:16 in fact...no...I only can think of keep asking animation manager update the ui.. Mar 27 10:03:20 <`z> storkme, lol Mar 27 10:03:31 yeah, someone told me about it this morning too Mar 27 10:03:34 howd you find it? Mar 27 10:03:41 Man Mar 27 10:03:41 was it put on a blog Mar 27 10:04:18 looks like addictive tips picked it up Mar 27 10:04:22 We are talking of either applying a change on a specific UI element or the wind they Mar 27 10:04:28 androidpolice regular new/cool app roundup Mar 27 10:04:46 Or the whole view Mar 27 10:05:06 assclowns Mar 27 10:05:12 they never picked up bird bar for that Mar 27 10:05:18 but they put me on their top x of the year Mar 27 10:05:21 :/ Mar 27 10:05:26 someone else already left a comment about birdbar Mar 27 10:06:01 oh cool Mar 27 10:06:03 And listeners run as fast as your touch on the OS Mar 27 10:06:29 i wish bird bar was as popular as it seems :) Mar 27 10:06:42 Now... Mar 27 10:06:48 to see that comment, the email I got this morning from someone, and you mentioning this, i would think bird bar was super popular Mar 27 10:06:48 bird bar? Mar 27 10:07:05 https://play.google.com/store/apps/details?id=com.mikedg.android.bar.lite Mar 27 10:07:12 the premium version does popup notifications too Mar 27 10:07:29 If you update the whole thing will update what you want, plus the rest of the stuff Mar 27 10:08:09 oh wow, the last 6 reviews are shit :( Mar 27 10:08:10 wtf Mar 27 10:08:16 ouch Mar 27 10:08:37 I need to strip the data usage chart out of ics. How will I do that? Mar 27 10:08:39 lawl wtf mikedg Mar 27 10:09:25 royale1233: you mean remove it? Mar 27 10:09:37 probably dickface with the status bar app who claims to be the first Mar 27 10:09:41 whatever Mar 27 10:10:17 Leeds: no, implement it in another app Mar 27 10:10:17 users are never satisfied with your code. Mar 27 10:10:54 royale1233: okay... you mean implement a data usage chart, or implement a chart of some other data which is drawn the same way? Mar 27 10:10:58 I still have a 1-star review from a user who afterwards contacted me and got his issue resolved. :( Mar 27 10:11:18 users don't correct reviews/ratings... Mar 27 10:11:19 Can we talk money here? Mar 27 10:11:30 Leeds: 2nd thingy. :) Mar 27 10:11:32 garaleos: shekels. Mar 27 10:11:42 Eh Mar 27 10:11:46 generally, users suck. Mar 27 10:11:47 Leeds: i could do with the data usage also.. Mar 27 10:12:52 I mean, what good ways or expectations of profit do you have with a free bps Mar 27 10:13:00 App Mar 27 10:13:35 I saw ads but i want info on that Mar 27 10:13:50 garaleos: drive more traficc to your site, use cpm like admob Mar 27 10:14:31 Ok ill look into that Mar 27 10:14:47 garaleos: I've read a couple blogs that seem to indicate it's possible to make money with well placed ads. Mar 27 10:15:08 I'm trying on this game i"m writing, it's almost at the stage where I'll start working on the non-game parts of the code. Mar 27 10:15:37 also I think trying the alternative ad networks can help a lot, from what I read Mar 27 10:15:56 pop up your ad in places that anoy the shit out of people Mar 27 10:16:09 the question is, can you generate enough users to be worth showing them ads? Mar 27 10:16:21 oh, this game will :) Mar 27 10:16:24 it's going to be like crack Mar 27 10:16:58 Keep me updated on that Mar 27 10:17:56 yeah, good luck Mar 27 10:18:38 If it doesn't work I'll just try again, and again.... Mar 27 10:19:30 I can give you one datapoint... my 'main' app is genuinely seasonal - it's a weather app - has approximately 5000 active installs, and on a very good day generates about $0.50 from ads Mar 27 10:19:43 how many total downloads? Mar 27 10:19:51 25k Mar 27 10:21:04 Leeds: what ad networks? Mar 27 10:21:12 admob Mar 27 10:21:25 this guy tried several ad networks, and admob paid the least http://makingmoneywithandroid.com/2012/01/android-income-report-7-october/ Mar 27 10:21:55 it was easy, and I'm not expecting to make any real money from it Mar 27 10:22:11 in his chart, even adsense dwarfs his admob revenue Mar 27 10:30:46 The difference in CTR makes me think the kind of ads served were just more appropriate. Mar 27 10:31:16 So either admob had the wrong format or their targeting sucks. Mar 27 10:37:39 HDroid: naturally, tapjoy had the highest CTR, as it's incentive-based Mar 27 10:37:56 but I feel it's a bit spammy. works for games where you want to give out tokens as a reward for playing often. Mar 27 10:38:03 I will probably try it Mar 27 10:40:03 using a list view with an adapter that grabs a list of items over a http request, what is the best/most common way to cache these items ? Mar 27 10:41:32 rvsjoen: you mean grabbing each item from a list, or grabbing the list itself? URLConnection_setCacheEnabled() should do the trick. Mar 27 10:41:49 then you just download as normal, except you're getting the downloads from URLConnection's internal cache. Mar 27 10:42:11 the whole list, and that sounds very interesting Mar 27 10:42:32 is that cache invalidated automatically ? Mar 27 10:42:51 I'm not actually sure how it determines whether to use the cahce Mar 27 10:42:54 cache* Mar 27 10:43:14 i'll read up on it, thanks for the tip Mar 27 10:43:15 It's actually called setUseCaches, though Mar 27 10:43:16 np Mar 27 10:44:46 hi. I have built Cyanogenmod from source (i.e. i'm rooted and have the system key). How can i make an application run as the Phone user/process? Mar 27 10:45:15 by joining #android-root and asking there because this channel is for application development Mar 27 10:45:42 Ok. Thanks Mar 27 10:47:40 hmm... I also need some way of invalidating only one of the items in the list, say, the listview uses the list adapter to download the list, and afterwards a detailed view of each item is opened by clicking it. now, if there are any changes made in that detailed view I need the list to update itself Mar 27 10:49:49 hi all Mar 27 10:57:16 So I do his webservice call and their's a LOAD of JSON (sometimes)... and of course this causes a "out of memory" crash Mar 27 10:57:44 would it be suggested to limiting the data, and adding lets say a "itemsRemaining: X" and delimit / keep reloading the page until there are 0 left or something? Mar 27 10:58:28 Bear10: i would be willing to bet that you are consuming the web service call in a way that copies all the data double, using EntityUtils.toString() or something before you pass it to the JSON parser Mar 27 10:58:43 you can pass a raw InputStream to the JSON parser, if you examine the APIs more closely. Mar 27 10:58:50 readme, well i'm using GSON actually Mar 27 10:59:03 can you get an InputStream back from the web service call? Mar 27 10:59:16 what api are you using for that Mar 27 10:59:31 for retrieving the data im using a class i found EasyHTTPClient Mar 27 10:59:38 and then i use GSON to parse the string Mar 27 10:59:49 Show me this "EasyHTTPClient" class Mar 27 11:00:00 and the code snippet that you pass the result to the GSON parser Mar 27 11:00:09 https://github.com/uscheller/EasyHttpClient/blob/master/src/EasyHttpClient.java Mar 27 11:00:49 you using get method? or post Mar 27 11:00:59 post Mar 27 11:01:08 i think i had to modify it a little for the POST to work Mar 27 11:01:42 Gson gson = new Gson(); Mar 27 11:01:42 SyncData sync = gson.fromJson(client.get(post) SyncData.class); <-- is the snippet i use Mar 27 11:01:49 sorry shouldve probably pastebinned Mar 27 11:02:25 that's not a post Mar 27 11:02:26 it's a get Mar 27 11:02:37 readme i had modified the class Mar 27 11:02:37 I'm looking at the code, right now Mar 27 11:02:40 like i said Mar 27 11:02:44 you just modified get to make posts? Mar 27 11:02:46 yeah Mar 27 11:02:48 without even renaming the method? Mar 27 11:02:53 * readme facepalm Mar 27 11:02:57 lol Mar 27 11:02:58 ok, show me YOUR get method Mar 27 11:03:14 and you're converting TO json first? omg Mar 27 11:03:32 you're copying all the data several times probably Mar 27 11:03:40 just this get method i'm looking at now appears to copy it twice Mar 27 11:04:07 readme, but even then i think its too much data (it can sometimes even cause chrome / firefox to crash) Mar 27 11:04:12 readme: i hope you are getting up and not still awake :) Mar 27 11:04:16 no it's not Bear10 Mar 27 11:04:20 I could code it, hire me :) Mar 27 11:04:29 g00s: uhhhh Mar 27 11:05:46 Bear10: on line 176 of the original get method, you get an InputStream back, from getContent() Mar 27 11:05:54 yeah Mar 27 11:05:56 find a way to pass that directly to the GSON apis Mar 27 11:06:01 has anyone used the ICS vpn apis? Mar 27 11:06:06 readme, easy enough Mar 27 11:06:10 bout you think thatd solve the issue? Mar 27 11:06:14 but* Mar 27 11:06:19 I would bet on it Mar 27 11:06:33 i'll bet you 5 g's, in ascii thats ggggg Mar 27 11:06:39 lol Mar 27 11:06:45 :O! Mar 27 11:06:48 5gs?! Mar 27 11:06:53 ascii g's Mar 27 11:06:54 I'll raise you 6 Mar 27 11:06:58 11 gs! Mar 27 11:06:58 =O Mar 27 11:07:09 anyone know the score on VPN apis? Mar 27 11:07:11 readme, im trying to find which class in gson takes the inputstream Mar 27 11:07:22 the documentation is confusing and hatred inciting Mar 27 11:07:39 I've got my key ... but I haven't been able to set encryption methods or tunelling protocols :( Mar 27 11:07:42 tunneling even Mar 27 11:07:45 Bear10: http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/index.html Mar 27 11:07:49 yeah im there Mar 27 11:07:53 pass the InputStream straight to the JSONReader Mar 27 11:07:54 been there Mar 27 11:07:57 mmm Mar 27 11:08:13 i see Mar 27 11:08:23 i need to make a JsonReader Mar 27 11:08:28 12:07 feesh the documentation is confusing and hatred inciting <<< +1 for choice of words :D Mar 27 11:08:37 yep Mar 27 11:09:09 g00s: time for a nap :) Mar 27 11:09:09 ill give it a shot thanks Mar 27 11:09:11 dodgeCharger: thank you Mar 27 11:09:25 I should note that my IQ can be counted on how ever many hands are required to count up to 27 Mar 27 11:09:25 np Bear10 Mar 27 11:09:28 (and a half) Mar 27 11:10:07 feesh: well that's impressive, 27 hands X 5 digits is .... Mar 27 11:21:03 is there a google chart tools library for android ? Mar 27 11:23:19 i should be able to add views to the listview layout dynamically in getView() right? Mar 27 11:23:24 re all Mar 27 11:23:56 ppl, where can I see the list of intent of google market app? I need to jet the update status of all installed apps Mar 27 11:27:19 i inflate my listview row in get view and can then get the linearlayout from id and add views? Mar 27 11:29:20 You can, yes. But you probably shouldn't Mar 27 11:30:28 inner active looks promising Mar 27 11:35:28 garaleos: yeah, I can't wait to experiment with those Mar 27 11:35:46 got to install some side scroller games and see what happens when running the character against walls :| Mar 27 11:35:52 readme: http://news.yahoo.com/too-much-sitting-kill-study-suggests-200408243.html Mar 27 11:36:03 g00s: yeah I think we discused that one Mar 27 11:36:12 ok, i just saw this today Mar 27 11:36:21 didn't we discuss the topic, though Mar 27 11:36:51 it may kill to sit, but it kills worse to sit in an alley drunk because you didn't write your game and make tons of cash Mar 27 11:36:52 yeah Mar 27 11:37:26 readme: that was a quick nap :/ Mar 27 11:37:42 too stuffy in bedroom, gf requires fan be on with blanket over window Mar 27 11:37:46 kicks up dust Mar 27 11:38:19 came in here to try to sleep, opened the window, fresh ocean air rushed in, unstuffed, but now wide awake Mar 27 11:38:52 its amazing how much dust flies around in the home Mar 27 11:39:15 turn of all the lights and use a good flashlight, its crazy what you will see in the beam Mar 27 11:39:20 my computer is full of it Mar 27 11:39:21 anyhow, thats one way we get BPA Mar 27 11:39:27 * hackkitten waves at g00s o/ Mar 27 11:39:34 * g00s waves at hackkitten Mar 27 11:39:38 :) Mar 27 11:39:39 :) Mar 27 11:39:48 * hackkitten huggles ze Mr. G00s~ Mar 27 11:39:48 :D Mar 27 11:39:58 * g00s giggles Mar 27 11:40:01 <`z> k Mar 27 11:40:17 * p_l just found some data about him living in area with twice the normal radiation, yay Mar 27 11:40:39 p_l: time for that potassium iodide :) Mar 27 11:41:07 just kidding Mar 27 11:41:34 Actually the more we can do on cellphones the less we got to sit at the pc Mar 27 11:41:54 which is why i'm so excited about windows 8 :) Mar 27 11:42:23 SimonVT: you're awake too, wth Mar 27 11:42:32 * g00s checks the clock Mar 27 11:42:36 Am not! Mar 27 11:42:57 SimonVT IRCs in his sleep Mar 27 11:43:23 That's my indian name Mar 27 11:44:16 no racism dude Mar 27 11:45:47 problem? Mar 27 11:46:04 greetings, gentlemen. I want to catch notifications issued by another application. What shall I do? Mar 27 11:46:09 I'd like to take this opportunity to point out that they are called NATIVE AMERICANS, SimonVT Mar 27 11:46:16 :P Mar 27 11:46:20 as far as I understand, there is no way :s Mar 27 11:46:27 No, they're americans. You're all immigrants Mar 27 11:46:48 Moving there, taking their jobs Mar 27 11:46:52 readme: did you see that popcorn article today ? Mar 27 11:46:57 SimonVT: only the africans are native, everyone else is an immigrant Mar 27 11:47:06 lol jobs Mar 27 11:47:14 g00s: nah I didn't Mar 27 11:47:23 haha Mar 27 11:47:32 So now you don't think they're native americans anymore? Make up your mind :p Mar 27 11:48:46 fuck them all :) Mar 27 11:49:14 ppl, what's about Market App's intents? where can I see their list? Mar 27 11:49:52 ok, so if i understand that right, having really long running tasks in an activity is really a bad idea, since the activity can be restarted not only for orientation changes but for all kinds of other reasons, too, right? Mar 27 11:49:55 simonVT was that for me? Mar 27 11:50:40 tapas: basically, yes Mar 27 11:50:54 and not just really long running task, even short running tasks :P Mar 27 11:50:58 g00s: what's poppin? Mar 27 11:51:31 tobib: huh? Mar 27 11:51:46 so i should have my "importer" tht initially reads quite a bit data form the sdcard on startup in a service Mar 27 11:52:15 will the user be moving between activities whle its running Mar 27 11:52:22 might they want to leave your app while its running? Mar 27 11:52:35 yes to the first question.. no to the second Mar 27 11:52:35 13:29] You can, yes. But you probably shouldn't Mar 27 11:52:47 i would say put it in a service Mar 27 11:52:50 tobib: Ah, yes Mar 27 11:53:03 mikedg_: ok, and what's the recommended way to communicate back to the app that the service is done? Mar 27 11:53:07 mhhh Mar 27 11:53:27 i want some kind of table look with a lot of data from a db Mar 27 11:53:33 a broadcast Mar 27 11:53:34 but don't know how many columns it will be Mar 27 11:53:44 mikedg_: ok, will read about these, too Mar 27 11:54:11 i'm casting my broad Mar 27 11:54:19 on the bed! :D Mar 27 11:54:27 readme: http://www.cbsnews.com/8301-500368_162-57404129/popcorn-packed-with-antioxidants/ Mar 27 11:54:57 Nice Mar 27 11:55:11 good evening devs Mar 27 11:55:13 :) Mar 27 11:55:32 * readme only eats whole grains Mar 27 11:55:33 anyone tried making HomeScreen widget in 2.3.3? Mar 27 11:55:39 ok, so maybe i stil Mar 27 11:55:55 l miss something. my first activiy would call startService() to start it Mar 27 11:56:14 tapas: it can even start on boot, if you want. Mar 27 11:56:18 but then the user rotates the device, the activity gets created again and startService is called yet again Mar 27 11:56:30 readme: ah, i guess that's a bit intrusive :D Mar 27 11:56:44 tapas: static boolean sIsServiceStarted Mar 27 11:56:45 readme: i guess there's a way to bind the service lifetime to the application lifetime Mar 27 11:56:46 any 2.3.3 developer? Mar 27 11:57:07 readme: well, even static members might get destroyed if the whole activity is destroyed, no? Mar 27 11:57:14 nah I only develop for 2.4.7 Mar 27 11:57:23 have you tried on 2.3.3 ? Mar 27 11:57:28 home screen widgets? Mar 27 11:57:32 tapas: I don't think it will get destroyed on a configuration changed Mar 27 11:57:51 tapas: no Mar 27 11:57:55 actually, it doesn't make sense for it to ever be destroyed Mar 27 11:57:57 it's freaking static Mar 27 11:58:04 stop confusing me tapas Mar 27 11:58:05 :D Mar 27 11:58:16 tobib: Then it's probably fine. As long as the number of views is the same for all rows, and you don't change it Mar 27 11:58:35 I need help with HomeScreen widget Mar 27 11:58:42 tried posting at xda,stackoverflow Mar 27 11:58:43 sorry, I only dev for 2.4.7 Mar 27 11:58:45 but no good Mar 27 11:58:54 www.axshort.it//75 is my problem Mar 27 11:59:05 I cannot make my widget run on AVD Mar 27 11:59:14 anyone got a sample Widget for 2.3.3 ? Mar 27 11:59:25 dil33pm: you need to long-press the home screen Mar 27 11:59:29 yeah but i get an NPE Mar 27 11:59:31 _( Mar 27 11:59:33 then it brings up a context menu, you click "widgets" Mar 27 11:59:36 then your widget is in there Mar 27 11:59:37 when you long press on 2.3.3 Mar 27 11:59:43 it asks for wallpaper change only Mar 27 12:00:02 so i made an activity to call the update Mar 27 12:00:10 then the app "forcebly closes" Mar 27 12:00:29 I've got a phone here with 2.3.4, and widgets appears on long-press Mar 27 12:00:38 i'll repeat this with the emulator, 1 sec. Mar 27 12:00:50 Also, you need an activity Mar 27 12:01:04 readme: i have learned to make no assumptions whatsoever when it comes to android :D Mar 27 12:01:14 I am trying on 2.3.3 AVD Mar 27 12:01:22 readme: who knows, maybe they tweaked the java VM to be able to free memory taken up by static members, too ;D Mar 27 12:01:24 it has a space for widgets inside the menu Mar 27 12:01:31 not in home screen Mar 27 12:01:36 @readme Mar 27 12:01:42 if you are making an app now, Mar 27 12:01:51 please just make it as simple as possible Mar 27 12:01:54 just with a textview Mar 27 12:02:00 http://pastebin.com/hyvDEpjz Mar 27 12:02:08 because I followed tutorials from vogella.de Mar 27 12:02:10 does anyone know why that NPEs Mar 27 12:02:15 even thats not working! Mar 27 12:02:16 on the last lines ll.addView? Mar 27 12:02:20 dil33pm: i'm not making an app, I was responding to your first question in the thread Mar 27 12:02:34 there are already several resources on widget development for you to follow Mar 27 12:02:40 probably even videos Mar 27 12:03:09 i have tried everything Mar 27 12:03:17 from vogella.de , helloandroid.org Mar 27 12:03:19 and all Mar 27 12:03:26 but most of the tutorials are for sdk 1.5 Mar 27 12:03:30 or 1.6 Mar 27 12:03:37 only vogella.de gave for 2.3.3 Mar 27 12:03:45 but even after downloading the source from his site Mar 27 12:03:49 i think the context is wrong Mar 27 12:03:54 the app closes Mar 27 12:03:56 http://thenewboston.org/list.php?cat=6 try tutorials 160 through 167, and this http://developer.android.com/guide/topics/appwidgets/index.html Mar 27 12:03:56 but i don't know the right one Mar 27 12:03:57 frocely Mar 27 12:04:03 tobib: You need to findViewById on your inflated layout Mar 27 12:04:07 No the activity Mar 27 12:04:39 Also, views are reused Mar 27 12:04:44 @readme let me see ... Mar 27 12:05:02 so new TextView(view.getContext())? Mar 27 12:05:03 So when you scroll it'll add 2 more views every time getView is called Mar 27 12:05:27 No, view.findViewByid Mar 27 12:05:49 mh Mar 27 12:06:47 eh? i need a context Mar 27 12:07:20 anyone know a reason that would cause this: android.preference.PreferenceFragment cannot be resolved to a type Mar 27 12:07:25 tobib: the layout inflater has already created the TextView Mar 27 12:07:36 tobib: you only need to get a handle to it via view.findViewById. Mar 27 12:07:38 readme: no, there a no textviews Mar 27 12:07:40 in the layout Mar 27 12:07:43 Oh, why not? Mar 27 12:07:45 because i don't know how much Mar 27 12:07:49 or how many Mar 27 12:07:50 o_O Mar 27 12:08:04 i want to add them in the loop+ Mar 27 12:08:18 tobib: in each individual row, how many text views will there be? Mar 27 12:08:24 JieeHD: Failure to understand imports Mar 27 12:08:28 so i find the LL from a listrow Mar 27 12:08:28 LinearLayout ll = (LinearLayout)findViewById(R.id.listview_ll); Mar 27 12:08:40 readme between 3-10 or something Mar 27 12:08:49 tobib: is 10 the most? Mar 27 12:08:51 more like 3-6 Mar 27 12:08:58 do you want me to hide them? Mar 27 12:09:00 ;) Mar 27 12:09:05 why do you even need more than one textview? Mar 27 12:09:05 and hardcode Mar 27 12:09:15 tobib: yeah, I'd suggest just hiding them. Mar 27 12:09:19 it should look like table Mar 27 12:09:33 at least that way you can better design your layout Mar 27 12:10:07 k i try Mar 27 12:10:13 If you want it to look like a table, you might try TableLayout instead of Linear Mar 27 12:10:21 SimonVT: I assume you mean me and not Eclipse? :P Mar 27 12:10:25 that works with an adapter? Mar 27 12:10:28 JieeHD: Yep :p Mar 27 12:10:31 tobib: they're all Views Mar 27 12:11:31 then i still would need to dynamically add a textview Mar 27 12:11:35 when you have some working code, or semi-working code, please show us that Mar 27 12:12:11 SimonVT: I was trying to call it explicitly since it doesn't understand just 'extends PreferenceFragment' either or am I missing something other than the support library? Mar 27 12:12:29 JieeHD: The support lib doesn't have PreferenceFragment Mar 27 12:12:36 but still Mar 27 12:12:39 it should be possible Mar 27 12:12:41 to add my listviews Mar 27 12:12:43 äh Mar 27 12:12:45 textviews Mar 27 12:12:54 but i think my context in new TextView is wrong Mar 27 12:12:57 Ah, right Mar 27 12:13:01 thanks SimonVT Mar 27 12:13:04 TEXTVIEWS!!! Mar 27 12:15:25 oh Mar 27 12:15:31 (linearlayout)view works Mar 27 12:16:42 tobib: please don't feel obligated to update us with every new discovery Mar 27 12:17:28 ... Mar 27 12:20:43 zomg i like turtles Mar 27 12:21:02 when are you guys staying in SF? Mar 27 12:21:14 im trying to figure out if I should so Sun-Sat or Mon-Sat Mar 27 12:21:36 ok, now on to my tabhoster :D its state should survive orientation changes, too.. like the stack of activities in each tab Mar 27 12:21:39 hmm Mar 27 12:21:53 oh no, tabhost :( Mar 27 12:21:57 activity tabhost is deprecated Mar 27 12:22:03 i know :( Mar 27 12:22:04 and awful Mar 27 12:22:12 tapas: seriously, you're better off sticking buttons in a linearlayout and using them as tabs Mar 27 12:22:15 fragment tabhost is at least somewhat cool Mar 27 12:22:19 sadly my colleague opted to use it and we should ship yesterday ;D Mar 27 12:22:34 tapas: convert to fragments! quick! Mar 27 12:22:49 <`z> TachyonDev, why doesn't your app support aac :( Mar 27 12:22:55 tapas: save an int in a static field that indicates which tab should be displayed Mar 27 12:23:08 'z: because I cant afford a license Mar 27 12:23:13 TachyonDev: well, this would also mean using the compatiblity package since we target 2.2 Mar 27 12:23:16 hmm Mar 27 12:23:21 tapas: yes Mar 27 12:23:45 'z: I could possibly make it so ICS supports all music playback Mar 27 12:23:46 yawn... 5 freaking am... early bird.... need coffee Mar 27 12:23:52 and it would also mean me pulling an all nighter.. oh well Mar 27 12:23:53 hmm Mar 27 12:24:07 tapas: not the safest thing to do unless the app is unstable Mar 27 12:24:26 yeah good call .. imaget coffee Mar 27 12:25:01 hi Mar 27 12:25:23 hi RobinB Mar 27 12:25:29 <`z> TachyonDev, k Mar 27 12:25:35 readme: how's the game going? Mar 27 12:25:46 Am I to understand this as: If one is looking at Tabhost for the layout, use Fragments and the compatibility package. Mar 27 12:25:46 <`z> wait Mar 27 12:25:52 <`z> AAC is proprietary? Mar 27 12:25:54 almost done.. ironing out issues in the collision detection.. stuff jitters sometimes Mar 27 12:26:16 drlaban: that seems to be the concensus, yes Mar 27 12:26:22 <`z> No licenses or payments are required to be able to stream or distribute content in AAC format.[36] This reason alone makes AAC a much more attractive format to distribute content than MP3, particularly for streaming content (such as Internet radio).[citation needed] Mar 27 12:26:22 <`z> However, a patent license is required for all manufacturers or developers of AAC codecs.[37] For this reason FOSS implementations such as FFmpeg and FAAC may be distributed in source form only, in order to avoid patent infringement. (See below under Products that support AAC, Software.) Mar 27 12:26:32 <`z> hmm Mar 27 12:26:33 heh Mar 27 12:26:39 <`z> well.. i'd be damned Mar 27 12:26:43 techincally everything is except vorbis Mar 27 12:27:21 so does the fragment system handle all the orientation change stuff, etc, gracefully? Mar 27 12:27:32 tapas: well .. thats up to you ;) Mar 27 12:28:12 tapas: for example, you would store the current fragment/tab in the onsavedinstancestate and set it the tabhost to that one on orientation change Mar 27 12:28:20 hmm, i guess then i don't win much for now.. Mar 27 12:28:28 since i have to do this for the tab hoster stuff, too Mar 27 12:28:33 tapas: you still have to manage your data Mar 27 12:28:41 is it 05.28 PDT now? Mar 27 12:28:46 tapas: all my views are populated from a background service Mar 27 12:28:50 Zooklubba: yes Mar 27 12:29:07 tapas: so i dont care if they get destroyed Mar 27 12:29:14 ty ty, better have several sources. Mar 27 12:29:26 TachyonDev: yeah, that does make sense.. Mar 27 12:29:27 Tweet about IO opening in 30 mins. But I think its due to CEST is UTC+2 Mar 27 12:29:39 i'll keep it in mind for the next app ;D Mar 27 12:29:40 is it possibly to invalidate only specific items in a listadapter ? Mar 27 12:29:40 o_O Mar 27 12:29:48 some people dont understand daylight savings time either Mar 27 12:30:01 instead of the nuclear option notifyDataSetChanged() Mar 27 12:30:08 ppl, is it possible to limit apps updates to make them sequentually? Mar 27 12:30:27 rvsjoen: im having dejavu from last night Mar 27 12:30:39 hehe Mar 27 12:30:43 TachyonDev, Google doesnt really. I put 7 am PDT in the Calendar. it says that is in 30 minutes Mar 27 12:30:45 rvsjoen: are you trying to do high speed updates in a listview? Mar 27 12:31:00 Zooklubba: check your own timezone :P Mar 27 12:31:00 I believe they dont know that we got daylight saving last weekend Mar 27 12:31:10 Zooklubba: yeah Mar 27 12:31:20 not really, I have a listview that lists a bunch of items, and where onClick launches a more detailed intent, after the user performs certain actions on the item I need the listview to realize it needs to update Mar 27 12:31:29 readme... do you do any OpenGL in your game? Mar 27 12:31:46 the item itself is passed in a Bundle (to the detailed intent) Mar 27 12:31:52 wangenma: it's implemented entirely using android.graphics.canvas Mar 27 12:32:00 my next game will probably use gl though Mar 27 12:32:07 sigh Mar 27 12:32:20 hmm flights arnt too bad Mar 27 12:32:22 the kind of game it was just did not require such power. Mar 27 12:32:35 When are you guys flying out? i want a couple extra days Mar 27 12:32:43 Sunday or Monday im thinking Mar 27 12:32:53 to saturday Mar 27 12:32:58 I can't find a single person that knows OpenGL for the life of me on Android... even the folks in the hangouts are like.. uhhh ummmm Mar 27 12:33:01 hmm... maybe I could use a DataSetObserver Mar 27 12:33:09 TachyonDev, for IO? Mar 27 12:33:15 Zooklubba: yar Mar 27 12:33:17 wangenma: opengl is hard. I know how to set it up and do a little bit, but I am not a pro Mar 27 12:33:21 Havent had the guts to book yet :( Mar 27 12:33:31 But was thinking the same as you Mar 27 12:33:31 Zooklubba: yeah there is a farelock thing with united Mar 27 12:33:49 Zooklubba: you can cancel within the period for no penalty besides the $8 fee Mar 27 12:33:49 Might even fly at Saturday Mar 27 12:33:57 wangenma: you might try #gamedev or gamedev.stackexchange.com Mar 27 12:34:02 Planned to use Expedia Mar 27 12:34:04 yeah my company might get irate at the cost of the hotel :P Mar 27 12:34:17 i already booked the W from Sat-Sun Mar 27 12:34:19 err Mar 27 12:34:21 Sun-Sat Mar 27 12:34:33 like a boss Mar 27 12:34:44 wha? Mar 27 12:34:51 the W!? Mar 27 12:34:53 haha Mar 27 12:35:01 wangenma: yeah OpenGL isn't exactly android specific Mar 27 12:35:09 * SimonVT is just gonna sit at home and watch live feeds :p Mar 27 12:35:10 readme: lolwut? Mar 27 12:35:27 The W is the only hotel I've ever attempted to use the restroom in and been turned away because I was not a guest. Mar 27 12:35:32 pretty upscale place Mar 27 12:35:40 readme: yeah stayed there last year Mar 27 12:35:41 * p_l might be doing an UI in OpenGL soon... Mar 27 12:35:48 readme: I met the Angry Birds guy in the bar there Mar 27 12:35:49 Stayed in park galleria hotel last year, lol Mar 27 12:36:08 I stayed at the Mariott right across the street... Mar 27 12:36:12 awesome Mar 27 12:36:28 hmm... maybe I should be using SpinnerAdapter Mar 27 12:36:37 readme: yeah cant believe all the hotels on the travel page are pretty much booked up Mar 27 12:36:42 Parc 55? hum Mar 27 12:37:19 rvsjoen: and what is wrong with notifydatasetchanged? Mar 27 12:37:35 rvsjoen: I ended up writing my own spinners and chooser dialogs Mar 27 12:37:45 rvsjoen: so i could theme everything Mar 27 12:38:09 The anxiety is really kicking in Mar 27 12:38:17 I just can't wrap my head around how to accomplish it, since it is actually the detailed view (which does not use the listadapter directly) that needs to invalidate the item list Mar 27 12:38:26 coffee finally kicking in =) Mar 27 12:38:32 rvsjoen: create an interface to call back Mar 27 12:40:00 rvsjoen: all my dialogs pass interfaces through so they can call back to the launching fragment Mar 27 12:40:44 Hum Mar 27 12:40:55 Wonder if I am going to spoil myself and go for marriot or something similar Mar 27 12:41:06 I find fragments confusing.. is that just me? Mar 27 12:41:18 wangenma: at first they are Mar 27 12:41:23 wangenma: just like activities were at first Mar 27 12:41:47 i'm stuck with api10 so I haven't had an opportunity to use fragments yet Mar 27 12:41:48 :/ Mar 27 12:42:01 rvsjoen: you can use the compatibility library to use them back to 1.x Mar 27 12:42:13 rvsjoen: along with actionbar Mar 27 12:42:43 rvsjoen: right click on the project -> android tools -> add compatibility library Mar 27 12:42:53 rvsjoen: now you have fragments in all versions of android Mar 27 12:42:59 cool Mar 27 12:43:05 i'll give that a shot Mar 27 12:43:09 thanks Mar 27 12:43:14 yup Mar 27 12:43:32 rvsjoen: they just updated it, so make sure your SDK is up to date Mar 27 12:43:48 heh its funny now when we do interviews Mar 27 12:44:05 its like .. "How much experiance do you have with fragments and actionbar?" Mar 27 12:44:18 and they usually respond with .. "Umm .. what?" Mar 27 12:44:36 i'd fail that question :< Mar 27 12:44:42 up until this point i've been using only activities, and that seems rather awkward when trying to have several views for the same "activity" Mar 27 12:44:48 that's what I said when I tried using the compatibility package lol Mar 27 12:45:20 I couldn't go back to making apps without fragments now ;O Teh horror Mar 27 12:45:25 yeah seriously Mar 27 12:45:33 my dj app is SOOO much easier with fragments Mar 27 12:45:34 same, but i haven't used the actionbar yet Mar 27 12:45:48 storkme: just plop actionbar sherlock in Mar 27 12:45:51 storkme: thats all we use now Mar 27 12:45:52 inherit from class foo, but wait if u use compatibility package inherit from class bar instead Mar 27 12:46:08 wangenma: no.. just do all from compat Mar 27 12:46:16 and so, if several activities in the app depend on the location it would probably make sense to put the location determination into a service, too, right? Mar 27 12:46:26 will try and use it on the next project i do, but my boss is pretty in favour of 'the ios and android apps should look as identical as possible' Mar 27 12:46:34 storkme: shoot him in the face Mar 27 12:46:42 ... kinda feel sorry for the ios dev who's trying to copy my app Mar 27 12:46:54 storkme: and you may want to enlighten him to the term "user experiance" Mar 27 12:46:57 http://developer.android.com/guide/topics/fundamentals/fragments.html#Design <-- that is spot on what i'm trying to do, so yay! Mar 27 12:46:57 writing his own viewpager, slidingdrawer, titlepageindicator, etc Mar 27 12:47:15 storkme... wow I guess I'm not the only one with that issue Mar 27 12:47:20 yeah my dj app has ONE activity, ONE service.. and a bunch of fragments Mar 27 12:47:28 storkme: Gonna be fun when your company starts developing for WP7 as well Mar 27 12:47:33 1 star: wtf?! Mar 27 12:47:35 *shakes head* Mar 27 12:47:44 you guys seen the NBC app? Mar 27 12:47:48 what a joke Mar 27 12:48:09 Appcelerator + iOS look + aweful implementation = 1.5 star rating Mar 27 12:48:15 comments on our ios app are mediocre at best and the UxD team keeps trying to make the Android version look and behave like ios Mar 27 12:48:17 it's still a good app (that we're working on), just not perfect.. it's only my second commercial application Mar 27 12:48:54 wangenma: storkme: readme: SimonVT: Yeah .. there are Android users with an Android UX expectation. And there are iOS users with an iOS UX expectation. Mar 27 12:49:01 why would you take that away from them and confuse them Mar 27 12:49:08 for the sake of brand consistancy? Mar 27 12:49:09 aweful = full of awe? Mar 27 12:49:13 haha Mar 27 12:49:15 Awful Mar 27 12:49:17 apparently, TachyonDev Mar 27 12:49:20 cause the business hates Android at my work Mar 27 12:49:29 wangenma: because they are all fanbois Mar 27 12:49:32 hi Mar 27 12:49:56 Looll, travel time: 34 h Mar 27 12:49:56 when i run repo sync , these error messge display Mar 27 12:49:58 No thank you Mar 27 12:50:02 有没有人遇到  repo 1.8.1 Mar 27 12:50:03 gpg: Signature made Fri Mar 23 05:55:21 2012 CST using DSA key ID 920F5C65 Mar 27 12:50:03 gpg: Can't check signature: public key not found Mar 27 12:50:03 error: could not verify the tag 'v1.8.1' Mar 27 12:50:03 warning: Skipped upgrade to unverified version Mar 27 12:50:59 wowdd1: is that on the master branch? Mar 27 12:51:12 yes Mar 27 12:51:18 wowdd1: let me try Mar 27 12:51:26 just need to spool up the VM Mar 27 12:51:46 ugh i need to do a bunch of crap to get this VM some more HD space Mar 27 12:52:01 is there a way to do that in VirtualBox? Mar 27 12:52:05 next app will be different (famous last words) Mar 27 12:52:09 'i can change!!' Mar 27 12:55:08 * TachyonDev <3 fragments Mar 27 12:56:09 wowdd1: syncing now Mar 27 12:56:18 wowdd1: yeah looks fine Mar 27 12:58:49 ok thats it... i'm moving to eclipse... Mar 27 12:58:54 meh Mar 27 13:00:07 anyone using proguard on ADT17 yet? I've read they have made some improvements Mar 27 13:00:22 What are the dependencies of com.android.settings(ICS)? Mar 27 13:00:52 guys - i set up my own asynctask class and eclipse is saying 'setProgressPercent(int)' is undefined… no idea why - anyone had experience with this? Mar 27 13:01:16 errrr scratch that. wow. Mar 27 13:01:25 lol Mar 27 13:01:28 … wow. Mar 27 13:01:43 it has a progress update method Mar 27 13:01:45 1 hour wasted on that mofo. was *certain* i'd tried 'setProgress()' Mar 27 13:01:51 is there some book talk about android framework, how to learn android framework? Mar 27 13:02:01 yeah set progress worked. i knew i was stupid but i wasn't sure if i was literally mentally handicapped or not. Mar 27 13:02:47 wowdd1: Try worx book Mar 27 13:03:51 woot.. less than an hour til showtime Mar 27 13:04:05 what is the name of the word book? Mar 27 13:04:41 wowdd1: http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCoQFjAA&url=http%3A%2F%2Fwww.wrox.com%2Fremtitle.cgi%3Fisbn%3D0470344717&ei=2rpxT42kBoOGrAexnPHIDQ&usg=AFQjCNHz9jDQNcv-1WAdfvdLBKjzOBjCLw&sig2=ESt1ItF20cvabBqv8e8Shg Mar 27 13:05:21 but this book is about developer app Mar 27 13:06:07 i mean the book about the framework not hot to write app Mar 27 13:06:22 #android Mar 27 13:06:28 this is a developer channel Mar 27 13:07:14 weird that the sms intercept works on some phones, but not on others Mar 27 13:07:37 woo, fixed a bug Mar 27 13:08:19 What are the dependencies of com.android.settings(ICS)? Mar 27 13:09:43 hello Mar 27 13:10:00 hello Mar 27 13:10:16 i'm looking for something like cancellable intentservice. i was wondering if someone of you already wrote something like that? :) Mar 27 13:11:09 cancellable? can't you just unbind? Mar 27 13:11:30 no no, i want to cancell any task that is already in progress Mar 27 13:12:51 anyone tried widgets on sdk 2.3.3 ? Mar 27 13:13:48 I tried following vogella.de Mar 27 13:13:55 but the widget closes Mar 27 13:14:00 unexpectedly Mar 27 13:15:02 ... Mar 27 13:15:10 yeah, surprise surprise, some rando tutorial doesn't work. Mar 27 13:15:38 dil33pm: http://developer.android.com/guide/topics/appwidgets/index.html Mar 27 13:15:41 I tried a lot of sites,all of them have tutorials and examples for only sdk 1.5 or 1.6 Mar 27 13:15:54 why don't you try the actual android dev site Mar 27 13:15:58 you know Mar 27 13:16:07 the one where the actual android developers write the tutorials and keep them up to date Mar 27 13:16:08 I tried that too Mar 27 13:16:10 it said Mar 27 13:16:16 "No launcher activity found" Mar 27 13:16:24 "The app will only sync with the device" Mar 27 13:16:25 in AVD Mar 27 13:16:35 .... right Mar 27 13:16:40 because you don't have an actual activity Mar 27 13:16:50 so you're just pushing the app to the device instead of pushing it and launching an activity Mar 27 13:16:58 once you do that, you need to long press launcher and select your widget Mar 27 13:18:08 oh Mar 27 13:18:25 will try that Mar 27 13:19:26 How to add non-public api supprt for an application? Mar 27 13:20:02 the emulator is looking for the .ini file in the wrong place, anyone know where that is configured ? Mar 27 13:21:04 uh oh Mar 27 13:21:10 got my first server error with the IO page Mar 27 13:21:47 lol Mar 27 13:23:01 lov i can use service instead of an activity right? Mar 27 13:23:11 last year it took 30 seconds after it opened for things to crash Mar 27 13:23:14 odd that on a ton of phones my sms intercept works and on a lot of others it doesnt Mar 27 13:23:23 has it changed in any new android sdks? Mar 27 13:23:40 JakeWharton: your last version PagerIndicator has some errors Mar 27 13:24:32 let's say i want to restrict an app to run in portrait mode.. but i do want to support the two portrait modes available Mar 27 13:24:39 upright and upside down.. Mar 27 13:25:00 i'd put the android:configurationChange="orientation" into the manifest Mar 27 13:25:14 and implement onConfigurationChanged() in the activity Mar 27 13:26:31 android:configChanges it is Mar 27 13:26:58 if i fixate the orientation in the manifest, then only one of the two portrait modes is ever used Mar 27 13:28:44 TachyonDev, why do you refresh the page :P? Mar 27 13:29:14 Zooklubba: waddia mean? Mar 27 13:29:31 Error with the IO page Mar 27 13:29:39 Zooklubba: i was opening it in firefox Mar 27 13:29:40 Guessed it was due to ppl refreshing and you refreshing? Mar 27 13:29:42 ooh Mar 27 13:29:50 nvm then Mar 27 13:30:38 lol, why do ppl tweet the exact minutes left. Mar 27 13:30:42 Just a waste of time Mar 27 13:31:03 FF seems to be a lot faster than Chrome to load the page Mar 27 13:31:27 and the amount of spevial code they put in there for IE sheesh Mar 27 13:33:37 Zooklubba, you mention "twitter" and "waste of time" in the same sentence.... and sound surprised? :) Mar 27 13:33:46 lol Mar 27 13:33:54 Doing my master thesis at a company atm. Damn them if their internet connection stops me from signing up Mar 27 13:33:58 heads will roll Mar 27 13:34:43 looks like im ready to go: http://www.speedtest.net/result/1858822565.png Mar 27 13:35:19 bah, I have that at home. Mar 27 13:35:30 hmmm only 15mb up.. I dunno ;) Mar 27 13:36:05 im sure i can feel the mounting tension in the channel for I/O tickets Mar 27 13:36:54 heh Mar 27 13:37:21 man last year was so stressful Mar 27 13:37:32 everybody flipping shit until they found out about the session keys Mar 27 13:38:04 session key saved my ass.. registered 3 days later Mar 27 13:38:28 lol yeah Mar 27 13:38:31 fucking cold fusion Mar 27 13:38:34 who would have thought Mar 27 13:39:35 at my company usually the admin registered ppl for conferences with the company cc.. silly old me didn't know what I was in for... she made it to the first page then crash... never got back in that day Mar 27 13:40:28 heh yup Mar 27 13:40:36 i managed to login about 5 times in the hour Mar 27 13:40:39 so i had 5 keys Mar 27 13:40:55 how do I get a ListActivity when my Activity is already extending from FragmentActivity ? Mar 27 13:45:36 rvsjoen: Use a ListFragment instead Mar 27 13:46:09 ^ Mar 27 13:46:21 ZOMG Mar 27 13:46:24 hah Mar 27 13:46:30 my brain is still on Activity level Mar 27 13:46:34 ta Mar 27 13:46:39 lol Mar 27 13:46:55 21s loading time on the reg site Mar 27 13:47:01 Well, better than error Mar 27 13:47:42 maybe i should register with the chromebook from last year Mar 27 13:48:05 too bad its slow as balls Mar 27 13:48:54 Is there a website that tells me what devices are screen-large, screen-normal screen-small? Mar 27 13:49:16 Just want to register so I can go home from work. Mar 27 13:49:27 lol other way around for me Mar 27 13:49:32 my home internet is way faster Mar 27 13:49:43 so is my home computer Mar 27 13:49:57 Should have left work an hour ago :/ Mar 27 13:50:13 hehe Mar 27 13:50:33 everybody hold F5 in chrome.. Mar 27 13:50:35 wait dont.. Mar 27 13:50:56 Loading time in less than 1 sec Mar 27 13:51:09 yeah Mar 27 13:51:21 Much better than those 21 secs earlier. :P Mar 27 13:51:48 heh Mar 27 13:52:39 TachyonDev you sold 10000 copies ? Mar 27 13:52:56 droidbuster: ive sold quite a few Mar 27 13:53:04 not that many Mar 27 13:53:08 nice :) Mar 27 13:53:26 getting 2000 downloads a day of the free copy Mar 27 13:53:39 when i checked it said like 5k or 10k on your paid version Mar 27 13:54:30 how much do the ads really bring in ? Mar 27 13:54:39 not much :P Mar 27 13:54:43 $10-$15 a day right now Mar 27 13:54:45 Yeah, I'm kind of curious about that Mar 27 13:54:55 What's the best charts api out there? Mar 27 13:54:57 that all adds up Mar 27 13:54:57 I'm curious what the clickthrough rate is, too, how many of them are people fat fingering Mar 27 13:55:06 Google Wallet is LAGGING Mar 27 13:55:10 he said 400 Mar 27 13:55:25 click throughs before Mar 27 13:55:46 3-5% Mar 27 13:55:59 2-5% rather Mar 27 13:56:23 but 10$ a day adds up Mar 27 13:57:01 ads sucks to make money Mar 27 13:57:05 ppl back in the day on google adsense would love 10$ a day Mar 27 13:57:11 damnit google wallet Mar 27 13:57:29 they do but for free apps any money is worth it Mar 27 13:58:53 akjlhfa;hf'2o3fwao;ifdahj;32 Mar 27 13:58:57 lol? Mar 27 13:59:15 <1 minute Mar 27 13:59:35 u have to wonder when i checked top apps rom manager paid version was one of the top downloaded at 5.95 500k+ downloads Mar 27 14:00:23 I/O literally sold out within seconds Mar 27 14:00:24 ffffff Mar 27 14:00:34 lol Mar 27 14:00:42 We are checking for avialable tickets.. Mar 27 14:00:47 wtf Mar 27 14:00:53 now we have to do this Mar 27 14:00:54 over and over Mar 27 14:00:54 lol Mar 27 14:00:59 Didn't get your ticket, lov? Mar 27 14:01:05 same, "we are checking..." Mar 27 14:01:10 then it said all out Mar 27 14:01:29 WTF Mar 27 14:01:34 nope Mar 27 14:01:38 all 3 browsers Mar 27 14:01:50 i think we have to keep doing this Mar 27 14:02:03 no tickets available at this time Mar 27 14:02:10 im assuming they have to put them up Mar 27 14:02:24 i've still got a spinner Mar 27 14:02:27 what? Mar 27 14:02:29 i still have a spinner Mar 27 14:02:30 I sitll have the f spinner Mar 27 14:02:32 wtf Mar 27 14:02:36 wtf Mar 27 14:02:38 ftw Mar 27 14:02:46 another year another foul up Mar 27 14:02:50 perhaps Mar 27 14:02:55 we don't know that yet Mar 27 14:02:57 when i create a default linear layout, and my text would go below the current screen size, is it automatically scrollable, or do i need a scroll view? Mar 27 14:03:06 dafuq spinner Mar 27 14:03:10 ftw Mar 27 14:03:18 why did they make this way Mar 27 14:03:22 hell Mar 27 14:03:27 Sold out quick, even though it shouldn't have been as attractive to the FREE STUFF non-dev moochers after the price hike... Mar 27 14:03:28 well, they didn't foul up Mar 27 14:03:30 everything worked Mar 27 14:03:33 How the f? Mar 27 14:03:37 there is no evidence anything sold out Mar 27 14:03:38 How to add non-public api supprt for an application? Mar 27 14:03:39 sold out? I am still checking for tickets Mar 27 14:03:40 it's just that there's 50,000 devs seeking 3000 tickets. Mar 27 14:03:47 lov: how so? i stull have a spinner? Mar 27 14:04:06 Napalm: the pinwheel goes away after a minute and says "sorry no tickets available :(" Mar 27 14:04:11 just because none are available doesnt mean anything Mar 27 14:04:16 they may not have put them up yet Mar 27 14:04:18 or something Mar 27 14:04:20 .... Mar 27 14:04:21 no it doesnt lov , lol Mar 27 14:04:28 I have had the spinner for like 4 minutes Mar 27 14:04:29 :/ Mar 27 14:04:29 ... Mar 27 14:04:37 i've had the spinner for 4 minutes as well Mar 27 14:04:39 Zooklubba: Oh I'm glad you can see what's happening on my screen. Mar 27 14:04:49 anyone go through next stage? Mar 27 14:04:54 nope. Mar 27 14:04:57 not yet Mar 27 14:05:05 i got a not available and to try again Mar 27 14:05:09 and now the spinner is stuck Mar 27 14:05:18 Opened mine like 5 minutes again, spinner still goes round and round Mar 27 14:05:20 I've received like 4 or 5 "no tickets are currently available" Mar 27 14:05:20 yeah, spinner is sitting stuck for me Mar 27 14:05:22 ago Mar 27 14:05:28 okay second time got the message Mar 27 14:05:29 after giving me a few "no tickets available" returns Mar 27 14:05:30 trying again Mar 27 14:05:32 same Mar 27 14:05:40 yeah i think they have a repo of tickets Mar 27 14:05:43 they have to make available Mar 27 14:05:48 lol Mar 27 14:06:00 either that or they are limiting how fast they can be sold Mar 27 14:06:04 right Mar 27 14:06:13 not a bad idea Mar 27 14:06:14 maybe by geolocation or something Mar 27 14:06:17 who knows Mar 27 14:06:20 then everyone has an equally shitty chance of getting one Mar 27 14:06:30 my second browser timed out Mar 27 14:06:34 my first one is still spinning Mar 27 14:06:36 What is this bs :/ Mar 27 14:06:41 someone just got in i know Mar 27 14:06:53 somehow this is even more frustrating than the bullshit last year Mar 27 14:07:15 atleast then I felt like I was accomplishing something because the site was obviously going to pieces Mar 27 14:07:51 WHAT THE HELL Mar 27 14:08:11 my first one went to the now tickets are available second one timed out earilier Mar 27 14:08:33 argggggg Mar 27 14:08:39 this really blows. Mar 27 14:08:43 oh well. i couldn't afford to go this and wwdc :) Mar 27 14:09:05 Thank you for your purchase Mar 27 14:09:12 ffff Mar 27 14:09:17 Got one, hold it for like 3 minutes. Trying to fetch the academic one. Mar 27 14:09:18 Zooklubba you got a ticket!? Mar 27 14:09:20 ahhhh Mar 27 14:09:20 yes Mar 27 14:09:24 asshoe Mar 27 14:09:30 Academic seems out Mar 27 14:09:32 lol? Mar 27 14:09:38 wtf Mar 27 14:09:44 i friend of mine just got one and it says "we will hold ticket for a week" Mar 27 14:09:47 what is the meaning of this Mar 27 14:09:50 but no emails to him or anything Mar 27 14:09:57 how does he claim the ticket? Mar 27 14:10:01 whatt the hell Mar 27 14:10:19 I really hope academic isn't /actually/ sold out already Mar 27 14:10:20 my first browser timed out after 9 minutes Mar 27 14:10:21 lol Mar 27 14:10:27 I don't have $900 to spend on tickets Mar 27 14:10:50 got one!!! Mar 27 14:11:04 Napalm, lol. It counted down from 5m inutes Mar 27 14:11:05 fucker. Mar 27 14:11:06 for me Mar 27 14:11:13 i hit it within 2 seconds Mar 27 14:11:17 it cant be first come first serve Mar 27 14:11:22 TachyonDev: oh yes it can. Mar 27 14:11:26 not to mention my friend got in on the 3rd round Mar 27 14:11:28 of waiting Mar 27 14:11:39 TachyonDev: i don't think it is first come Mar 27 14:11:46 this is the worst process I can think of Mar 27 14:11:47 yeah there is something else going on Mar 27 14:11:49 vlcn me either Mar 27 14:11:52 wait what is this for ? Mar 27 14:11:59 TachyonDev, know the feeling. Weird thing was the spinner for over 5 minutes while several ppl got the sold out Mar 27 14:11:59 TachyonDev: it says "the registration will be first-come, first-served" right on the reg page Mar 27 14:12:13 yeah well Mar 27 14:12:15 it wasnt Mar 27 14:12:16 I got in right when it opened and after 5 minutes it said no tickets, what the heck Mar 27 14:12:17 I'm hoping that someone releases their ticket on purpose or by accident, so I'm still refreshing. Mar 27 14:12:29 because a friend of mine got in on the 3rd round of going back to the homepage Mar 27 14:12:31 Zooklubba: you and 20,000 other people. Mar 27 14:12:33 and waiting for spinners Mar 27 14:12:38 ye Mar 27 14:12:44 TachyonDev: I'm assuming a ticket got released when someone abandonded it for some reason, which is what I'm hoping for too Mar 27 14:12:55 lov, I bet people have several sessions. So just keep refreshing Mar 27 14:13:17 what is this even for ? Mar 27 14:13:41 sting Mar 27 14:13:43 LOL I really want to call google and ask if their shit is broken Mar 27 14:13:45 ugh Mar 27 14:13:46 i almost fill like this is pointless. Mar 27 14:13:49 they are buying tickets to sting, droidbuster Mar 27 14:13:52 last year it was very broken Mar 27 14:13:52 sting ? Mar 27 14:13:53 There is no way it was sold out when I tried at 10am Mar 27 14:13:54 lol readme Mar 27 14:13:57 ya Mar 27 14:13:58 this is seriously retarded. Mar 27 14:14:01 sting and twisted sister Mar 27 14:14:07 ive seen twice Mar 27 14:14:13 I managed to buy 3 tickets last year, how can I not even get one this year? Mar 27 14:14:16 nice Mar 27 14:14:35 are they already sold out? Mar 27 14:14:37 i sure am not gonna fight and pay 300 a ticket to see again Mar 27 14:14:57 to me kizz is a better show kiss* Mar 27 14:15:03 i got a ticket! Mar 27 14:15:13 i only tried 10 times :) Mar 27 14:15:14 droidbuster, this ticket was 900. Mar 27 14:15:21 got one! Mar 27 14:15:23 wohoo Mar 27 14:15:24 damn Mar 27 14:15:31 seee i wont pay 100 for it Mar 27 14:15:33 what shirt size? Mar 27 14:15:44 is this like American sizes or European Mar 27 14:15:46 doesnt say Mar 27 14:15:51 my firefox and IE spinners have been going for ages Mar 27 14:15:59 probably american Napalm Mar 27 14:16:09 ok im going to say google needs to fix the damn conference Mar 27 14:16:11 pakesson general or acedemic? Mar 27 14:16:12 too many REAL devs cant go Mar 27 14:16:15 last year the shirts were printer on American Apparel Napalm Mar 27 14:16:18 cut the academia tickets out Mar 27 14:16:18 HEY ITS CANADIAN COW! Mar 27 14:16:21 double the prices, again Mar 27 14:16:23 trying different google accounts too Mar 27 14:16:36 you know Mar 27 14:16:40 This is disaster Mar 27 14:16:44 I should have signed up for like a two credit class at rutgers Mar 27 14:16:47 just to get a student id Mar 27 14:16:54 so I could have gotten an academia ticket and been able to reg :( Mar 27 14:16:56 edude03: general Mar 27 14:17:04 vlcn: like this page http://www.americanapparel.net/sizing/default.asp?chart=mu.shirts Mar 27 14:17:21 lov: uhhh. I've been trying this entire time to get an academic ticket. no dice Mar 27 14:17:30 ^ same Mar 27 14:17:38 And I'm a student and a dev Mar 27 14:17:43 Same here Mar 27 14:17:53 trying an incognito window Mar 27 14:17:54 I didn thave the guts, so when it was 1 minute to go I sprung for the full price one Mar 27 14:17:57 with my other account Mar 27 14:18:30 register page is saying academic tix are sold out? Mar 27 14:18:37 Someone have a solution for this error? Mar 27 14:18:38 oh the drama :p Mar 27 14:18:38 http://groups.google.com/group/android-developers/browse_thread/thread/d311c1b45870bdb6 Mar 27 14:18:41 I'm surprised you are all surprised at this... Mar 27 14:18:56 Hmm I can't actually click the academic button anymore Mar 27 14:19:00 like i said kiss is a better show Mar 27 14:19:06 yep sold out Mar 27 14:19:14 yea they go fast Mar 27 14:19:18 im surprised they offer them at all Mar 27 14:19:23 okay trying with all 3 of my google accounts Mar 27 14:19:25 I got two academic tickets last year :/ Mar 27 14:19:27 3 different browsers Mar 27 14:19:27 you'd think google would want real devs rather than students Mar 27 14:19:30 i'm sure for 2,000 you'll be able to get a few on ebay Mar 27 14:19:35 canadiancow|work: you are an idiot. Mar 27 14:19:51 canadiancow|work, I bet it is the stupid american students just doing it for the gifts. Mar 27 14:19:55 not sure what i should put in "claim to fame" for badge Mar 27 14:20:03 Zooklubba, ? Mar 27 14:20:05 Would like to let abroad students buy academic before those gift greeding americans. Mar 27 14:20:15 i cant think of anything i really that pround of that i want on my badge Mar 27 14:20:15 vlcn: ??? Mar 27 14:20:15 Zooklubba, knock it off Mar 27 14:20:16 [10:19:51] canadiancow|work, I bet it is the stupid american students just doing it for the gifts. Mar 27 14:20:17 this Mar 27 14:20:42 I was under the impression there was going to be a 'test' this year Mar 27 14:20:51 michaelnovakjr, calling them stupid is just for dramatic effect. Mar 27 14:20:58 But I do not like the ppl who do it for the gifts. Mar 27 14:21:00 Zooklubba, I don't care. Knock it off. Mar 27 14:21:01 Zooklubba yeah especially since we have to pay to fly in thus making it not worth it to fly in for the gifts Mar 27 14:21:03 vlcn: that was changed a while ago Mar 27 14:21:10 ugh this is rediculous Mar 27 14:21:16 is this concert chat or what Mar 27 14:21:19 IO + airfare + accommodations cost more than the gear is worth anyway Mar 27 14:21:22 guys, it isn't about the gifts. I'm sure they aren't giving anything out this year Mar 27 14:21:22 vlcn, that can't work, because they also have project manager nad marketing sessions Mar 27 14:21:22 ^ Mar 27 14:21:25 edude03: no Mar 27 14:21:34 This is Mar 27 14:21:36 pure shit Mar 27 14:21:36 last year i got $1500 in stuff Mar 27 14:21:46 and what about SF high school students? Mar 27 14:21:50 no airfare Mar 27 14:21:51 no hotel Mar 27 14:21:52 wtf did they give out?! Mar 27 14:21:53 yeah those SF high school students Mar 27 14:21:54 I wonder if the stuff is IP based... multiplt requests kick you off? Mar 27 14:22:03 The in face conversations with like minded devs is worth more than $900 + airfare + hotel Mar 27 14:22:04 canadiancow|work I meant for inter nation students flying in Mar 27 14:22:06 edude03: galaxy tab 10.1, chromebook, adk, verizon hotspot Mar 27 14:22:06 canadiancow|work, we were talking about letting at least abroad students get "more" academic tickets Mar 27 14:22:06 samsung tab 10.1, chromebook, wifi hotspot, lg optimus 3d Mar 27 14:22:08 yeah hald the conference last year were high school students Mar 27 14:22:11 thats what i got last year Mar 27 14:22:21 Zooklubba, at the expense of professional devs getting less? Mar 27 14:22:23 Oh yeah forgot about the chromebook Mar 27 14:22:29 how did you get an optimus 3g? Mar 27 14:22:32 3d* Mar 27 14:22:36 the tab + hotspot is like 600 Mar 27 14:22:36 canadiancow|work, at the expense of american students doing it for the gift getting less. Mar 27 14:22:37 lg event i got into :) Mar 27 14:22:40 nice Mar 27 14:22:40 Not even now Mar 27 14:22:41 Zooklubba, enough, not every american student is in it for gifts Mar 27 14:22:44 I hadn't heard about that Mar 27 14:22:49 thats why i say CUT OUT THE ACADEMIC TICKETS Mar 27 14:22:55 so who didn't get tickets? Mar 27 14:22:59 lol Mar 27 14:23:00 Me! Mar 27 14:23:00 michaelnovakjr, I haven't said anything like that. If you don't like what I am writing don't read it. Mar 27 14:23:00 there are hardly any academic tickets anyway Mar 27 14:23:00 my daughter still uses the chromebook. i retired the tab for a prime (and then an ipad) Mar 27 14:23:05 So knock it off telling me to knock it off. Mar 27 14:23:05 evancharlton: lov :( Mar 27 14:23:10 anybody still getting tickets? Mar 27 14:23:10 me =( Mar 27 14:23:16 canadiancow|work: again?! I think he missed out last year, too Mar 27 14:23:21 nah, I made it last year Mar 27 14:23:22 haha Mar 27 14:23:23 <`z> TachyonDev, your app is the smoothest one i found so far Mar 27 14:23:24 but the year before that I didn't Mar 27 14:23:34 <`z> hmm Mar 27 14:23:35 evancharlton but how will he buy me a beer :( Mar 27 14:23:35 :) Mar 27 14:23:42 tell that to god damn google Mar 27 14:23:45 <`z> ooh Mar 27 14:23:46 canadiancow|work: I'll fedex overnight you a 40. Mar 27 14:23:50 <`z> new vDJt version Mar 27 14:23:55 canadiancow|work, you going? Mar 27 14:24:04 lov, i dont want a ton of alcohol Mar 27 14:24:09 i wanted to have a drink with you Mar 27 14:24:13 Zooklubba: yes Mar 27 14:24:14 awwww Mar 27 14:24:34 <`z> I see new gfx, TachyonDev, lol Mar 27 14:24:35 so I think google I/O has a semi-lottery system going on or at least timed release of batches of tickets Mar 27 14:24:37 so how long did it take to sell out? like 15 minutes? Mar 27 14:24:45 sigh... looking more and more like I'll be youtubing it Mar 27 14:24:55 they need a "google" io and an "android" io Mar 27 14:25:04 looks like Academic tickets are sold out but you can keep retrying for General tickets Mar 27 14:25:05 this is insanity Mar 27 14:25:10 evancharlton: try 15 seconds Mar 27 14:25:12 evancharlton: I got mine after about 15 Mar 27 14:25:14 minutes Mar 27 14:25:15 yeah Mar 27 14:25:16 canadiancow|work: i agree Mar 27 14:25:19 people are getting them far after Mar 27 14:25:26 pakesson, academic or regular? Mar 27 14:25:28 regular Mar 27 14:25:37 I'd love to know if the pinwheel means "I timed out" or "I'm still in line, please wait" Mar 27 14:25:41 thought i'd be safe at 10:00AM EDT sharp but i guess not :) Mar 27 14:25:53 omg someomne come kill me android-dev been run over by a stupid concert Mar 27 14:25:57 lov, it will change to "there are no tickets available at this time" Mar 27 14:26:00 omg im getting pissed Mar 27 14:26:09 its last year all over again Mar 27 14:26:16 TachyonDev last year was better Mar 27 14:26:17 where i registered 2 hours later Mar 27 14:26:21 lov: my take is that the pinwheel means we're checking your google+ and google wallet and then entering you into some random drawing Mar 27 14:26:22 with a key Mar 27 14:26:22 2 hours? Mar 27 14:26:24 oh Mar 27 14:26:30 yeah a saved session key Mar 27 14:26:33 like everybody else Mar 27 14:26:33 ah Mar 27 14:26:40 https://twitter.com/#!/mrtnkl < this cant be genuine! Mar 27 14:26:58 anyone get tickets? Mar 27 14:27:01 Napalm, it's clearly a joke Mar 27 14:27:11 lol Mar 27 14:27:15 indeed Mar 27 14:27:41 canadiancow|work: I know, I've gotten that a few times, but the timeout is kind of variable. Mar 27 14:27:44 actually, I think thats proably what google should do Mar 27 14:27:50 just take all 5000 tickets and dump them on ebay Mar 27 14:27:54 let the free market work it out Mar 27 14:28:05 i dont know aobut ebay Mar 27 14:28:05 yeah Mar 27 14:28:08 but the tickets are too cheap Mar 27 14:28:14 WWDC is like $2000 isnt it? Mar 27 14:28:18 and they dont give out $1500 in free shit Mar 27 14:28:22 sounds right Mar 27 14:28:23 fuck Mar 27 14:28:27 all sold out now Mar 27 14:28:27 why exactly do people go gaga over attending Google I/O Mar 27 14:28:34 * `z follows freecandy into van Mar 27 14:28:35 "It's not Google IO, it's Google Lottery" Mar 27 14:28:39 ive been trying on 5 computers since exactly 7 Mar 27 14:28:40 because it's a fucking nerd party that gives free presents Mar 27 14:28:45 because I/O was pretty much the most amazing conference I've ever been to Mar 27 14:28:49 <`z> what did they give the last time? Mar 27 14:28:52 i'll be back in a couple of weeks once this settles down :) Mar 27 14:28:53 <`z> a free nfc tag, and? Mar 27 14:28:55 <`z> derp Mar 27 14:28:59 [10:28:45] because I/O was pretty much the most amazing conference I've ever been to Mar 27 14:28:59 this Mar 27 14:29:07 galaxy tab 10.1 Mar 27 14:29:08 chromebook Mar 27 14:29:09 ADK Mar 27 14:29:15 sony xperia play Mar 27 14:29:17 FFFFFFFFFFFFF Mar 27 14:29:17 hell, just geting to put faces to names was worth the price of admission for me Mar 27 14:29:18 verizon hotspot Mar 27 14:29:20 tickets officially sold out. Mar 27 14:29:22 samsung verizon wifi hotspot with 3 months Mar 27 14:29:22 ack looks like it is all sold out now Mar 27 14:29:27 lov yeah Mar 27 14:29:34 MOTHER FUCKER Mar 27 14:29:42 I registered using my phone, lol no tickets on PC wtf Mar 27 14:29:48 make it $1500 and no free stuff Mar 27 14:29:51 i would still go Mar 27 14:29:52 vlcn, so you know who to target in your hitman contract? Mar 27 14:29:58 first come first serve my fucking asshole Mar 27 14:30:08 birbeck: why ? Mar 27 14:30:13 <`z> i want a chromebook ;_; Mar 27 14:30:22 they just disabled the register button Mar 27 14:30:23 <`z> since I can do pretty much everything online now Mar 27 14:30:25 you know what it was.... people registering before 7 Mar 27 14:30:26 <`z> IRC -> irccloud Mar 27 14:30:29 <`z> hmm Mar 27 14:30:34 <`z> documents -> google docs Mar 27 14:30:36 this is insanity Mar 27 14:30:40 <`z> and so on Mar 27 14:30:40 my wife noticed at 6:58 that there was a registration form hidden on the page Mar 27 14:30:51 <`z> birbeck, O_O Mar 27 14:30:52 birbeck: oh jeez Mar 27 14:30:52 <`z> derp Mar 27 14:30:55 lo Mar 27 14:30:56 please tell me you're joking Mar 27 14:30:57 i bet posting to the url worked Mar 27 14:31:00 lov no Mar 27 14:31:02 >:( Mar 27 14:31:05 little .js and that is an open reg Mar 27 14:31:09 <`z> started Mar 27 14:31:10 <`z> 23 Mar 27 14:31:11 <`z> minutes Mar 27 14:31:12 <`z> ago?!? Mar 27 14:31:27 <`z> whoa Mar 27 14:31:30 screw this Mar 27 14:31:51 just got captcha Mar 27 14:31:56 on the registration pages Mar 27 14:31:59 TachyonDev: don't get excited Mar 27 14:32:11 yeah i know Mar 27 14:32:12 i saw some people on twitter posting that they had registered a little bit before hand Mar 27 14:32:16 <`z> sold out? Mar 27 14:32:18 <`z> son of a bitch Mar 27 14:32:22 what bullshit Mar 27 14:32:42 it was sold out in less than 1 second Mar 27 14:33:01 na, i got mine at 12 minutes past Mar 27 14:33:12 me too... whats the captcha bullshit Mar 27 14:33:13 i had the page auto refreshing every 2 seconds Mar 27 14:33:19 i got mine at 16 minutes past Mar 27 14:33:25 and i clicked the button at exactly 7 Mar 27 14:33:31 i just kept trying from 2 browsers Mar 27 14:33:41 <`z> i love google's sense of humor Mar 27 14:33:45 i went through the search hundreds of times from 5 browsers Mar 27 14:33:57 <`z> Mar 27 14:34:03 <`z> link to never gonna give you up Mar 27 14:34:04 phone, 2 tablets and two computers Mar 27 14:34:05 <`z> LIKE A BOSSS Mar 27 14:34:09 `z, lol, saw that Mar 27 14:34:11 `z: hahahaha Mar 27 14:34:17 <`z> ahahahahha Mar 27 14:34:18 right above the hidden reg form Mar 27 14:35:08 rickroll is passe now Mar 27 14:35:25 we have detected unusual traffic from your IP... Mar 27 14:35:29 it's funny Mar 27 14:35:31 this Google IO looks like a Madonna concert Mar 27 14:35:32 cause 4 of us tried and 2 iphone devs got the tickets Mar 27 14:36:12 what a disaster Mar 27 14:36:15 indeed Mar 27 14:36:16 how much money has google made off of me Mar 27 14:36:32 like ten bucks Mar 27 14:36:32 <`z> over 9000 Mar 27 14:36:38 right Mar 27 14:36:55 about tree fiddy? Mar 27 14:37:10 wangenma, i got that too Mar 27 14:37:17 wangenma, i thought i finally got in, lol Mar 27 14:38:54 so everyone got captchas right after reg closed? Mar 27 14:39:05 yes Mar 27 14:39:35 <`z> refreshing this repeatedly: 0% chance Mar 27 14:39:37 <`z> https://developers.google.com/events/io/register/ticketsearch Mar 27 14:39:59 yeah, im still searching lol Mar 27 14:40:19 haha i guess at least it still gives you the wheel Mar 27 14:40:33 so its still searching lol Mar 27 14:41:01 i was already pissed at google Mar 27 14:41:15 now im really pissed Mar 27 14:41:30 <`z> I/O live it is then :( Mar 27 14:41:49 screw that Mar 27 14:41:54 im buying an iphone Mar 27 14:42:37 `z: unfortunately that misses 75% of the purpose of I/O Mar 27 14:43:05 I can watch the videos from the conference after the fact any time Mar 27 14:43:17 io is all about drinking with fellow android devs Mar 27 14:43:22 http://www.ebay.com/itm/Google-IO-2012-GA-Adult-Ticket-/230768084849?pt=US_Tickets_all_in_one&hash=item35bad98771#ht_500wt_1156 Mar 27 14:43:25 FUCK Mar 27 14:43:34 Hello Mar 27 14:43:37 yhpark: this happened last year too, Mar 27 14:43:53 canadiancow|work: agreed Mar 27 14:43:58 SOLD for $2000? Mar 27 14:43:59 Networking is the best part of I/O Mar 27 14:43:59 holy fuck Mar 27 14:44:05 canadiancow|work: I believe it. Mar 27 14:44:24 didn't I call that exact price 15 minutes ago? Mar 27 14:44:39 Q: Is it possible within Linear/horizontal layout to have 3 buttons: left floats left, middle stay at the center, right floats right? Whatever I try - they all just glued together Mar 27 14:44:45 [10:28:08] but the tickets are too cheap Mar 27 14:44:45 [10:28:14] WWDC is like $2000 isnt it? Mar 27 14:45:07 silur: use a RelativeLayout Mar 27 14:45:17 alignParentLeft, centerHorizontally, alignparentRight Mar 27 14:45:26 Huh, easy way to earn $1100 :p Mar 27 14:45:37 canadiancow|work, thanks! At least something new to try :) Mar 27 14:46:45 lov: yea i agree - networking is the best part of any conference Mar 27 14:46:51 <`z> SimonVT, hire loads of chinese scrapers Mar 27 14:46:59 <`z> get them to buy tickets at 6:50 or so Mar 27 14:47:12 <`z> buy all the tickets Mar 27 14:47:15 <`z> profit!!!! Mar 27 14:47:25 I'm gonna be rich Mar 27 14:50:03 <`z> yep Mar 27 14:52:50 ficl upig;e Mar 27 14:52:59 mikedg_: did you get a ticket? Mar 27 14:53:49 no Mar 27 14:54:02 no one got a ticket Mar 27 14:54:06 Google I/O is a myth Mar 27 14:54:12 :P Mar 27 14:54:19 like the moon landing Mar 27 14:54:29 haha Mar 27 14:54:31 the registration process was just a show to give developers the impression that they matter Mar 27 14:54:49 :( Mar 27 14:56:19 any of you guys use robotium? Mar 27 14:57:21 why havent they announced yet that it's sold out? it must be sold out by now Mar 27 14:57:53 it says so on the main page Mar 27 14:58:07 alex7: I used it for a project last year; are you just taking a survey? Mar 27 14:58:13 im gonna put on a conference Mar 27 14:58:24 tickets are $600 and everyone gets a free device Mar 27 14:58:33 not really, I had an issue with it :) Mar 27 14:59:06 alex7: I'm not sure how much support you'll be able to get in here, but I guarantee you won't get any if you don't ask a question ;-) Mar 27 14:59:15 alex7, I use it Mar 27 14:59:30 but that doesn't mean I can solve a problem with it :) so just ask your question Mar 27 14:59:31 class action lawsuit Mar 27 14:59:32 im a professional android dev living in sf, no travel required Mar 27 14:59:40 omg cant believe what i just did Mar 27 14:59:40 force google into a settlement to pick a bigger venue Mar 27 14:59:41 to get in Mar 27 14:59:44 i dont care about the swag, i just wanted to go for networking Mar 27 14:59:45 hey guys Mar 27 14:59:46 I have an edittext box which will only submit when you press enter on the keyboard Mar 27 14:59:50 has anyone used the VPN api in ICS? Mar 27 15:00:00 i can get devices free from work or expense them to my own business Mar 27 15:00:06 birbeck, after parties don't require a ticket.... Mar 27 15:00:08 am I correct in assuming I have to implement PPTP and any encryption system that I want to use? Mar 27 15:00:11 but with robotium, it doesn't seem to press enter even when I try solo.sendKey(Solo.ENTER) Mar 27 15:00:14 well, ones that aren't the Google one Mar 27 15:00:16 michaelnovakjr, yeah Mar 27 15:00:18 as much as I hate to say it, I think Google needs to kill the swag Mar 27 15:00:30 michaelnovakjr, the google afterhours party does though Mar 27 15:00:31 this is seriously ridiculous at this point Mar 27 15:00:36 alex7, are you sure the edittext has focus? Mar 27 15:00:46 vlcn: agreed Mar 27 15:00:54 birbeck, I did most of my networking outside of the Google party Mar 27 15:00:54 michaelnovakjr: no Mar 27 15:00:55 vlcn, i have a xoom and a laptop, i dont use the tab and chromebook Mar 27 15:01:14 either that or a bigger venue needs to exist Mar 27 15:01:27 michaelnovakjr: not sure how to set focus with robotium Mar 27 15:01:31 and im not concerned about the price... i would buy an ebay ticket but they are non-transferable so i dont wanna get fucked Mar 27 15:01:37 alex7, I don't know it off hand Mar 27 15:01:49 vlcn: they should do one in each country Mar 27 15:02:11 Amphoras: maybe. I liked the fact I got to meet a bunch of people from around the world, though. Mar 27 15:02:25 michaelnovakjr: looking at their javadoc now and there's no method for that Mar 27 15:02:26 http://www.ebay.com/itm/Google-IO-General-Admission-2012-/220987179339?pt=US_Tickets_all_in_one&hash=item3373dcc14b Mar 27 15:02:26 vlcn: yes and yes - moscone north/south is way bigger than west Mar 27 15:02:28 $4500 Mar 27 15:02:36 birbeck: it's possible to request ticket transfers according to the faq Mar 27 15:02:38 louielouie: so why don't they use it then? Mar 27 15:03:10 pakesson, yeah, it might be possible, but it says non-transferable and transfers are at googles discretion Mar 27 15:03:11 vlcn: no idea. sun used to use it for javaone Mar 27 15:03:45 oh there is a big slash through the clock now on https://developers.google.com/events/io/register Mar 27 15:03:57 birbeck: true. requesting a transfer right now might look a bit suspicious :) Mar 27 15:04:28 hrm, if i want to make a background to my app, hdpi would be 720x1280, what would mdpi and ldpi be ? Mar 27 15:04:38 why would hdpi be 720x1280? Mar 27 15:04:47 canadiancow|work: maybe it's a 7" tablet? Mar 27 15:04:54 ^^ Mar 27 15:04:57 cause thats what the galaxy nexus has, and its considered hdpi Mar 27 15:05:00 no Mar 27 15:05:01 it's xhdpi Mar 27 15:05:03 Insayne: xhdpi, br0 Mar 27 15:05:06 but IF hdpi is 720x1280, then ldpi is 360x640 Mar 27 15:05:07 oh, lolz Mar 27 15:05:20 but xhdpi isnt always 720x1280 Mar 27 15:05:25 alex7: get the View, and then call requestFocus() Mar 27 15:05:29 density is independent of resolution/size Mar 27 15:05:41 yeah, but as a guideline, which resolution should I use for what? Mar 27 15:05:43 evancharlton: that's what I'm trying to do now Mar 27 15:05:49 i found the icons... etc Mar 27 15:05:49 just imagine xhdpi being almost retina Mar 27 15:05:50 No, it is exactly resolution/size :p Mar 27 15:05:50 someone linked me Mar 27 15:05:58 hdpi is regular iphone Mar 27 15:05:59 snooplsm, no Mar 27 15:06:19 no! Mar 27 15:06:20 snooplsm: what does that even mean? Mar 27 15:06:37 well, what resolution should i attribute when creating an image backdrop ? Mar 27 15:06:38 what the fuck Mar 27 15:06:39 http://www.ebay.com/itm/Google-IO-General-Admission-2012-/220987179339?pt=US_Tickets_all_in_one&hash=item3373dcc14b#ht_500wt_1182 Mar 27 15:06:46 this $4500 ticket sold Mar 27 15:07:03 wait it sold? Mar 27 15:07:07 it says "no longer availalbe Mar 27 15:07:11 doesnt say it sold Mar 27 15:07:12 I can't wait for the ticket to get canceled Mar 27 15:07:15 snooplsm: the original iPhone and a lot of mdpi devices like LG Optimus are 320x480 Mar 27 15:07:21 Eek... Mar 27 15:07:41 sorry i was just saying. Mar 27 15:07:42 [11:05:50] No, it is exactly resolution/size :p Mar 27 15:07:42 lol Mar 27 15:07:47 you know what i meant Mar 27 15:07:51 :D Mar 27 15:08:01 120dpi = ldpi, 160 dpi = mdpi, 240 = hdpi, 320 = xhdpi Mar 27 15:08:04 snooplsm, dont assume anything about resolution Mar 27 15:08:04 those are the basic buckets Mar 27 15:08:12 you can have a 2x2 xhdpi device Mar 27 15:08:16 or a 20000000x2000000000 xhdpi device Mar 27 15:08:17 in other words: math is hard! Mar 27 15:08:17 don't worry i'm dealing with large-mdpi kindle Mar 27 15:08:31 for english majors Mar 27 15:08:39 evancharlton: And 480? :) Mar 27 15:08:47 TheMaverick`: unicorndpi Mar 27 15:08:52 AWESOME! Mar 27 15:08:55 720 = xxxhdpi Mar 27 15:09:01 Porn Mar 27 15:09:04 2x2 is extra-tiny-hdpi? :) Mar 27 15:09:06 Oh wait... Mar 27 15:09:15 Where does normal screen size stops ? Mar 27 15:09:20 5 inches Mar 27 15:09:24 The 4.9 Archos was large Mar 27 15:09:34 but will 4.7 HTC one X will normal ? Mar 27 15:09:37 :-/ Mar 27 15:09:37 yes Mar 27 15:09:41 are you sure a 4.9 was large? Mar 27 15:09:42 is there a web page that lists all the devices, their dpi, and size? Mar 27 15:09:49 i'd love to use one Mar 27 15:09:50 that doesnt adhere to google's guidelines Mar 27 15:09:51 yeah, but they sold it as being 5'' Mar 27 15:09:57 ALL devices? Mar 27 15:09:59 That's a big list Mar 27 15:10:06 anyway, small/medium/large/xlarge are deprecated Mar 27 15:10:19 ow Mar 27 15:10:21 oops Mar 27 15:10:23 so what are we using now? and what resolutions are guidelined? Mar 27 15:10:33 you specify stuff Mar 27 15:10:35 SimonVT: a sqlite db then Mar 27 15:10:36 sw600dp Mar 27 15:10:40 means smallest width of 600dp Mar 27 15:10:46 so that would be used for a tablet layout or something Mar 27 15:10:48 deprecated doesn't matter Mar 27 15:10:50 google it Mar 27 15:10:52 lol and they made id dp >< Mar 27 15:10:55 so is 90% of the shit in java.util.Date Mar 27 15:10:58 *it Mar 27 15:11:00 ugh Mar 27 15:11:00 they were deprecated because they suck... Mar 27 15:11:02 Hi devs, I'm in a situation here. I want to run an asynctask in every 5 minutes which should repeat till the activity ends Mar 27 15:11:10 how can I achieve this? Mar 27 15:11:42 napster: Give me songs... Mar 27 15:12:07 TheMaverick`: ah funny! Mar 27 15:12:16 Or are you the napster who takes naps all the time? Mar 27 15:12:23 napster: http://developer.android.com/reference/android/os/Handler.html Mar 27 15:12:30 TheMaverick`: The second :P Mar 27 15:12:38 thanks alex7 Mar 27 15:12:46 napster: Ah... gotcha ;) Mar 27 15:12:52 napster: np Mar 27 15:13:27 TheMaverick`: The thing is if I say, "I have a couple of songs here, which one you want?", I will be in jail for the next 50 years :p Mar 27 15:13:38 :D Mar 27 15:15:28 ;D Mar 27 15:16:04 Ok, this is weird... I've got two xml layouts files, in values and values-land, with the exact same name (pretty easy to check, it's just main.xml) Mar 27 15:16:28 The default shows a textView and a custom fragment (let's call it FragmentA) Mar 27 15:16:37 the one in values-land only contains a FragmentB Mar 27 15:16:56 Now, if I start the app with the phone in portrait, I have the textview and FragmentA Mar 27 15:17:05 if I then rotate it, I have only FragmentA Mar 27 15:17:14 If I start the App in landscape, I have FragmentB Mar 27 15:17:22 If I then rotate it, I have a textview and FragmentB Mar 27 15:17:28 can anyone explain this ??? Mar 27 15:18:17 gyscos: not without you posting source we can't Mar 27 15:18:49 ok, I'll make a demo app... Mar 27 15:19:33 the emulator is funny.. if i rotate the it via cmd-f12 it gets upside down :D Mar 27 15:20:07 oh, it's only our app.. since we fix the mode to portrait Mar 27 15:20:11 interesting anyways.. Mar 27 15:21:30 8==D~~~ google Mar 27 15:21:33 :/ Mar 27 15:22:23 wow you're short Mar 27 15:22:35 the emulator isnt really too useful due to its horrible speed Mar 27 15:23:05 tapas: exactly ! Mar 27 15:23:24 tapas: there's an x86 emulator out now Mar 27 15:23:31 oh there is? :D Mar 27 15:23:44 evancharlton: cool, linky linky link? Mar 27 15:23:46 evancharlton: But only API10 :| Mar 27 15:23:59 that's good enough for us, since we target api 8 ;D Mar 27 15:24:00 and it doesn't have the google apis Mar 27 15:24:06 we don't use them :d Mar 27 15:24:11 it's in the sdk tools 17 Mar 27 15:24:15 then it's pretty good Mar 27 15:24:30 tapas: http://android-developers.blogspot.com/2012/03/updated-sdk-tools-and-adt-revision-17.html Mar 27 15:24:35 is there a way in eclipse to tag certain blocks to hide them like in Visual Studio? Mar 27 15:24:43 #section #endsection ? Mar 27 15:25:05 alex7: i have r17 installed already Mar 27 15:25:45 http://developer.android.com/guide/developing/devices/emulator.html#accel-vm Mar 27 15:26:00 tapas: then look at using the vm acceleration Mar 27 15:26:10 will do. thanks for the tip guys Mar 27 15:26:11 that's the link Mar 27 15:26:28 you'll need to enable intels virtualization in the bios, most likely Mar 27 15:26:40 it's very fast, though I'm bummed the x86 image doesn't have the google apis Mar 27 15:26:57 it's working really well for me - the emulator boots in 15s on my lapotp Mar 27 15:27:56 yea i like it too. only 2.3 and definitely has some different tendencies than the ARM emulator Mar 27 15:28:37 I think they had the kvm support on linux before, for google tv Mar 27 15:28:52 but the google tv emulator, even with vm support is slow Mar 27 15:28:52 RobinB: i have it enabled on my linux machine at home.. not sure about this mac here at work.. Mar 27 15:28:53 same alex7 Mar 27 15:29:05 evancharlton, Here is the code : http://www.gyscos.fr/TestAndroid.zip Mar 27 15:29:24 It's got 4-5 files so pastebin would have been a pain Mar 27 15:30:19 and now that they have vm support on osx and windows, why still not release the google tv emulator for them? Mar 27 15:34:52 eclipse really starts to get on my nerves :D Mar 27 15:35:49 btw: FYI: he x86 emulator seems to work ok on this imac Mar 27 15:36:00 s/he/the/ Mar 27 15:36:12 After about 2 weeks playing with android dev - feels like a kid in a toy store :) Mar 27 15:36:21 I think os x has the vm extensions on by default Mar 27 15:36:40 What does it mean when all of the R stuff starts failing? I had a dependency issue and pulled in another folder, now all the R stuff doesn't work. Mar 27 15:37:42 freecandy: did you clean your project? Mar 27 15:37:47 freecandy: you probably need to clean and rebuild Mar 27 15:38:43 It seems Android tries to reuse Fragment as often as possible ; even when the fragments shouldn't be of the same class :-S Mar 27 15:39:17 How do I do that? Mar 27 15:39:39 feesh: Project -> Clean ... Mar 27 15:39:47 freecandy: Project -> Clean ... Mar 27 15:41:02 Errors remain. Mar 27 15:41:57 "doesn't work" is a horrible way to describe your problem if you want answers, freecandy Mar 27 15:42:01 wow...comment on vic gundotra's g+ post: Kanani C - can we have dev requirements like perhaps maybe at least 100k downloads on the market? this could help streamline the devs that really want to network and learn rather than the casual phone user who wants free stuff. Mar 27 15:42:20 1. 100k is a lot. 2. it's not android IO Mar 27 15:42:28 hahah Mar 27 15:42:31 builder.setMessage(getString(R.string.about_message)); <-- about_message cannot be resolved or is not a field. Mar 27 15:42:36 and how does that help devs who work for big ocmpanies Mar 27 15:42:45 canadiancow|work: my guess: his app has 110k downloads Mar 27 15:42:50 apps ive owrked on have millions of downloads Mar 27 15:42:55 i have a personal app with over 100k, but it was supsended Mar 27 15:43:16 freecandy, check what R is included Mar 27 15:43:21 yours or the one from android Mar 27 15:43:25 canadiancow|work: why was it suspended? Mar 27 15:43:36 "content policy violations" Mar 27 15:43:37 How do I do that? Mar 27 15:43:39 I love how we just assume something is getting handed out this year other than a t-shirt Mar 27 15:43:40 never got more specific than that Mar 27 15:43:41 Maleware! Mar 27 15:43:42 -e Mar 27 15:43:43 canadiancow|work: soundboard? Mar 27 15:43:52 no Mar 27 15:44:00 i put it back up and its still kicking Mar 27 15:44:06 different package name, of course Mar 27 15:44:15 Is it posible to send RIL requests from an java application (have built AOSP and have access to system key etc.)? Mar 27 15:44:38 canadiancow|work: which app? Mar 27 15:45:01 freecandy, Did you blindly copy this line from the internet ? Mar 27 15:46:44 No, it's from eclipse. I commented out the import of R from android and most of the errors went away. I think the remaining ones are my fault. Well, I guess the R ones were, too, but these aren't about R. Mar 27 15:47:55 Hmm what API version should I target? Mar 27 15:48:11 the lowest you can for the features you need Mar 27 15:48:29 there's breakdowns of version popularity out there if you search; i don't have a url handy Mar 27 15:48:46 2.x is a safe bet Mar 27 15:48:58 http://developer.android.com/resources/dashboard/platform-versions.html Mar 27 15:49:04 there you go Mar 27 15:49:05 dragorn: I'm looking at the breakdown. What what it look like on v4 if I target v2? Mar 27 15:49:06 http://developer.android.com/resources/dashboard/platform-versions.html Mar 27 15:49:17 2.1 should give you over 98% reach Mar 27 15:49:22 canadiancow|work: putting a limit like 100k doesn't even tell you anything about the quality of the apps. I bet some of those fake Temple Run apps probably had over 100k downloads Mar 27 15:49:34 code1: should look pretty much fine - upwards compat is pretty transparent Mar 27 15:49:55 you could have a download+rating requirement. like when they gave out nexus ones back in the day Mar 27 15:50:06 Amphoras: true Mar 27 15:50:12 if you target >= 2.2, you'll get 94.6% devices Mar 27 15:50:39 RobinB: several of the fake temple runs were highly rated as they made you rate them 5 stars "before they would run" Mar 27 15:50:45 I vaguely remember reading something about tagerting API 14 so that it can use Halo theme? Mar 27 15:51:14 huh, where's the IO registration Mar 27 15:51:15 Amphoras: ugh. yeah i guess that sucks. the scammers got too wise over the years Mar 27 15:51:22 Amphoras: I'm curious as to how they monitored for reviews Mar 27 15:51:31 code1: yea, actually i target 4.0 but make 2.2 the minimum and use the support library so i can use fragments and such in 2.x Mar 27 15:51:51 or did it sell out? Mar 27 15:52:05 evancharlton: I suspect they didn't. They were probably working on the basis that the idiots who were downloading it would just do as they were told Mar 27 15:52:16 Amphoras: good point Mar 27 15:52:29 pfn: you're like 2 hours late to the party Mar 27 15:52:42 just woke up :p Mar 27 15:52:44 so it's sold out? Mar 27 15:52:48 yeah Mar 27 15:52:49 very Mar 27 15:52:56 that's annoying Mar 27 15:53:07 I guess I'll have to hope for contests then Mar 27 15:53:16 and I thought it was 8, not 7 Mar 27 15:53:19 * pfn shrugs Mar 27 15:53:20 pfn: well i guess at least you didn't suffer through the 5 minute pinwheel of death, 6 times over Mar 27 15:53:21 oh well Mar 27 15:53:53 Is it possible to have android:theme="@android:style/Theme.NoTitleBar.Fullscreen" <-- on application, and then for only one specific activity have it show/ Mar 27 15:53:56 I think I need to download some more API to test on AVD Mar 27 15:54:12 is v3 for tablets only? Mar 27 15:55:32 Bear10: you'll need to specify the theme for the activity I believe. If you do it in the application it will apply to all activities. Mar 27 15:55:39 yeah i think i got it Mar 27 15:55:40 thanks :) Mar 27 15:55:49 code1: yea 3.x / honeycomb was pretty much tablets only Mar 27 15:56:08 code1, i specified the titlebar on the specific one Mar 27 15:56:43 louielouie: ok so I have API level 7 and my device is level 10, would downloading API 14/15 be sufficient for testing purposes? Mar 27 15:57:44 Bear10: I application will override it Mar 27 15:57:52 it doesnt Mar 27 15:58:18 Bear10: Ok so what happens? Mar 27 15:58:53 it works Mar 27 15:59:08 cool. Mar 27 15:59:45 code1: yea i would definitely download the SDKs for the min/max API levels and at least test in those emulators, but if you can, i'd get actual devices for those API levels too Mar 27 15:59:49 Hey, I'm compiling my android project via cli with ant. the project needs to compatibility lib which is located in /libs. This works on linux but not on windows does anyone know why? Mar 27 16:00:05 to = the Mar 27 16:01:24 louielouie: I know certain notification and tab images have changed over the versions, if I use the old style icons will it still look ok in later versions? Mar 27 16:02:15 yes, if also use the new ones in -v11 and so on Mar 27 16:02:51 its official Mar 27 16:02:56 today is the worst day ever Mar 27 16:03:14 right - so specify different styles/themes by having both a values and a values-v11 in your res folder Mar 27 16:03:16 #firstworldproblems Mar 27 16:03:49 TachyonDev: i feel your pain (esp after having trying 5+ times over a 30 minute period starting at 10:00 eastern) Mar 27 16:04:08 i got in Mar 27 16:04:12 but my finances are a mess Mar 27 16:04:18 someone helped me get in by using their account Mar 27 16:04:21 did you buy one of those ebay tickets? Mar 27 16:04:24 nope Mar 27 16:04:36 my cards were flagged as fraudulent Mar 27 16:04:39 and wasnt going through Mar 27 16:04:44 thanks louielouie and evancharlton, I guess the only way is to try it out on an emulator/device and see how it looks Mar 27 16:04:46 used another card, it got charged 3 times Mar 27 16:05:07 one thing though, I prefer the tab icons from 1.6 over the later ones! Mar 27 16:05:08 i'm trying to wrap my head around these fragments, the set up should be really simple but I think i'm missing something fundamental http://paste2.org/p/1955119 Mar 27 16:05:21 so one of my credit cards got cancelled because my wife had $2000 of school shit charged on there at the exact same time as i was trying to buy IO tickets Mar 27 16:05:25 TachyonDev: someone else bought an ebay ticket for you?! Mar 27 16:05:28 its a fucking disaster Mar 27 16:05:39 louielouie: no, someone who wasnt going got a ticket Mar 27 16:05:44 louielouie: so i used their account to register Mar 27 16:06:00 people were just trying for shits and giggles Mar 27 16:06:03 can't you, uh, not do that? Mar 27 16:06:12 code1: hehe yea tab icons - they're definitely going to look different on 2.x and 3.x+ due to holo but the good thing is that you should be able to style them Mar 27 16:06:36 but now i have to spend the rest of the day figured out my finances Mar 27 16:06:41 evancharlton: yea i don't understand how that would work Mar 27 16:06:42 ugh what a mess Mar 27 16:06:53 and im an hour late for an appt Mar 27 16:07:36 i have a feeling tickets are going to open up from people who "reserved them" but didnt pay Mar 27 16:07:53 wonder how long it takes to time out Mar 27 16:08:27 Two minutes, according to morrildl Mar 27 16:08:39 interesting Mar 27 16:08:56 saw it somewhere on G+ this morning Mar 27 16:09:09 well whatever.. i have a google io confirmation letter Mar 27 16:09:18 and a mess of finances Mar 27 16:09:31 i need that credit card for travel next week .. it better come tomorrow Mar 27 16:09:34 ugh Mar 27 16:10:19 does android have an info icon? Mar 27 16:10:43 wow $4500 for a ticket on fleabay... Mar 27 16:10:49 haha Mar 27 16:10:55 how are they doing that Mar 27 16:11:00 selling google accounts off? Mar 27 16:11:16 I thought you couldn't change names on registrations Mar 27 16:11:24 you can Mar 27 16:11:33 the entire registration page is empty Mar 27 16:11:35 except for email Mar 27 16:11:44 they should require to present the cc that was used to pay with to prevent this type or crap Mar 27 16:11:47 and you can put in an alternate email Mar 27 16:11:52 anyone get google IO tixs Mar 27 16:12:08 yes Mar 27 16:12:11 no one Mar 27 16:12:15 they sold 0 tickets Mar 27 16:12:17 dantheman http://www.ebay.com/csc/i.html?_sacat=See-All-Categories&_from=R40&_nkw=google+io&LH_Complete=1&rt=nc Mar 27 16:12:39 fuck that shit Mar 27 16:12:51 agreed Mar 27 16:13:05 anyone know how i can measure the height of each item in my listview? Mar 27 16:13:43 what are common strategies to deploy enterprise apps that do not go through the android market? right now i distribue the apk file but it's getting cumbersome after each update... Mar 27 16:13:59 so I got into work just now and well I keep getting this from dev.android.com Mar 27 16:13:59 http://imgur.com/NMzzp Mar 27 16:14:03 wtf? Mar 27 16:14:13 On the SDK Manager it says "Install 8 packages" and "Delete 3 packages" the 3 packages are old versions of the SDK tools, should I delete first then install or will install replace them? Mar 27 16:14:51 dantheman... welcome to IO registration side effects Mar 27 16:14:55 too many requests Mar 27 16:15:28 yeah but that was to dev.google.com Mar 27 16:15:32 not dev.android.com Mar 27 16:15:42 and it wasn't even me doing it Mar 27 16:15:43 emit: depends on how enterprisy you want to be. You could always develop your own internal app store that periodically checks for updates and installs them. Mar 27 16:17:03 i really dont understand why users take so long to update their apps Mar 27 16:17:09 hrmpff Mar 27 16:18:05 dantheman: i have another friend who has that same problem. people on his network were reloading the registration page too much i think. Mar 27 16:18:09 pfn: hey, did you get my email? Mar 27 16:18:13 :/ Mar 27 16:18:54 I got a question, I have my main activity, and by intent, i launch my second activity, now on the second activity, the "back" button does not go back to the prior activity, but exits the application - why would this be? Mar 27 16:20:05 Answer: Because i was an idiot and used finish(); Mar 27 16:20:27 lol Mar 27 16:20:39 yeah... thats how quickly you fix errors, haha Mar 27 16:28:51 anyone go to AnDevCon last year? Mar 27 16:32:27 hrm, I want a Scrollview with a linearlayout within, however, when I do so, when I make the first element be "Match_parent" in width, it pushes the others to the side? Mar 27 16:33:00 what am I doing wrong for it to do so? Mar 27 16:34:44 TachyonDev, did oyu get one in the end? Mar 27 16:35:07 lmao, 4 000 dollars Mar 27 16:35:17 http://pastebin.com/edit.php?i=SwdNz290 this code seems to do absolutely nothing. Mar 27 16:35:56 i'm guessing "history size" is zero? Mar 27 16:36:41 ...and it is. Mar 27 16:36:46 bah Mar 27 16:36:47 cant login Mar 27 16:36:51 cant see paste Mar 27 16:37:03 mine? Mar 27 16:37:30 http://pastebin.com/SwdNz290 Mar 27 16:37:38 might help if i posted the right link. Mar 27 16:38:21 so yea, lines 14-33 never get executed because history size always returns 0. Mar 27 16:38:30 er... 18-33 Mar 27 16:38:52 so what is historicalx and historicaly anyway? Mar 27 16:43:39 is there any way to properly debug a "android.view.InflateException: Binary XML file line #7: Error inflating class fragment" Mar 27 16:43:57 Would someone be so kind and explain to me, why my "button" dissapears completely, when I put alot of text into the TextView, however I can scroll until the end of the text (its slightly cut off too)? http://pastebin.com/PDQ1wkiV Mar 27 16:43:59 rvsjoen: read the error message? Mar 27 16:44:33 Insayne: layout_weight Mar 27 16:44:35 learn it Mar 27 16:44:36 use it Mar 27 16:44:39 aha Mar 27 16:44:49 let me look that up Mar 27 16:45:00 I have been reading it over and over for a while, actually. Mar 27 16:45:13 rvsjoen: pastebin the whole thing? Mar 27 16:45:32 http://dpaste.com/722308/ Mar 27 16:45:39 evancharlton, could you tell me what the weight is supposed to do ? Mar 27 16:45:51 Insayne: the docs could tell you that Mar 27 16:46:03 kk Mar 27 16:46:15 rvsjoen: 03-27 16:41:49.396: E/AndroidRuntime(700): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader[/data/app/com.twilightzone.helloworld-2.apk] Mar 27 16:46:36 i only find a small amount of explanation for it Mar 27 16:46:39 rvsjoen: I suspect you meant to use the support library Mar 27 16:46:40 http://developer.android.com/reference/android/widget/LinearLayout.LayoutParams.html#attr_android:layout_weight Mar 27 16:46:46 this is what is supposed to explain it to me ? Mar 27 16:47:07 I did mean to use the support library Mar 27 16:47:20 and i've been trying to figure out which class is not found Mar 27 16:47:41 rvsjoen: it can't find Fragment. You imported the wrong one. Mar 27 16:47:44 Did you forget to extend FragmentActivity? Mar 27 16:48:36 damnit Mar 27 16:48:42 *grumbles* Mar 27 16:48:50 thanks Mar 27 16:49:11 :) Mar 27 16:50:08 hrm, evancharlton, I dont find any explanation of it ? Mar 27 16:50:23 Insayne: google for "how to use layout_weight on Android" Mar 27 16:50:36 kk Mar 27 16:50:40 Insayne: I'm trying to teach you how to fish instead of handing you fish over and over Mar 27 16:50:45 because that gets old really quickly :) Mar 27 16:50:55 Insayne: Look at the weight field: Indicates how much of the extra space in the LinearLayout will be allocated to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0. Mar 27 16:50:57 yeah, i get to stack overflow, etc Mar 27 16:51:18 now i found a good one there though Mar 27 16:51:37 i never seen this cocnept :P Mar 27 16:52:44 Get used to it, cus you're going to use it a lot Mar 27 16:53:30 oh, i understand, its tiling the screen space Mar 27 16:53:57 so if i had 3 elements, and gave all 3 a weight of "3", it would be 33%, but it would also work if i gave each one a "1" of weight, for the same? Mar 27 16:54:19 yes Mar 27 16:54:23 and if i wanted them to be split in 25/25/50, i would just give them those weights, so it would add up to 100% ? Mar 27 16:54:38 i get it Mar 27 16:54:58 Basically, yeah Mar 27 16:55:09 But 100% is the sum of all weights, unless specified otherwise Mar 27 16:55:15 yes Mar 27 16:55:20 its in proportion to the numbers Mar 27 16:55:35 if i put 1, 1, 2 - it would be 25% / 25%, 50% ? Mar 27 16:55:53 yes Mar 27 16:55:57 sorry, I am trying to make sure I understand it :) Mar 27 16:56:10 alright, and, how come my error happens, is there a special case of weight being 0 ? Mar 27 16:56:16 and it wouldnt show ? Mar 27 16:56:45 I mean, whether my button is inside the scrollview or outside, it never shows up... and inside of it , to my logic, it should scroll down to the button, no ? Mar 27 16:57:13 so I don't understand its dissapearence Mar 27 16:57:30 whats the logic behind this magic? Mar 27 16:57:35 (Sample: http://pastebin.com/PDQ1wkiV) Mar 27 16:58:03 haha Google IO 2012 Outcast Support Group: https://plus.google.com/112006249614301558783/posts Mar 27 16:58:05 if my textview here is many lines - why does it not let me scroll up to the button point... that is what its supposed to do? Mar 27 16:58:11 Insayne: hint: your scrollview is the same height as its parent Mar 27 16:58:37 so, given that you have some shit above the scrollview, where might the bottom of the scrollview be? Mar 27 16:58:39 Insayne: What's the orientation of your LinearLayout? Mar 27 16:58:56 its in normal mode (not portrait, the other one) Mar 27 16:59:12 (Awesome how i dont remember the word) Mar 27 16:59:17 It was a hint Mar 27 16:59:17 vertical Mar 27 16:59:24 thanks Mar 27 16:59:41 let me try now, my idea is to tell it first my layout orientation, and see if that helps it Mar 27 16:59:52 then, i will look to add weights :P Mar 27 16:59:59 SimonVT: ah, good catch; I wish LL didnt' specify a default Mar 27 17:00:11 I wish it would throw an error if you didn't set one Mar 27 17:00:19 evancharlton: That's an idea for a lint check Mar 27 17:00:25 so normal = vertical ? Mar 27 17:01:02 Insayne: http://developer.android.com/reference/android/widget/LinearLayout.html Mar 27 17:01:05 ok its set to that, i will try adding weight now Mar 27 17:01:16 Insayne: don't just add weight without understanding weight Mar 27 17:01:16 reading Mar 27 17:01:24 well, i thought i understood the math ? Mar 27 17:01:51 or not? oO Mar 27 17:03:37 let me go read :P Mar 27 17:04:51 SimonVT: http://code.google.com/p/android/issues/detail?id=27869 Mar 27 17:05:19 evancharlton: Starred Mar 27 17:05:25 +1 for facepalm Mar 27 17:05:32 :) Mar 27 17:07:31 but I did specify an orientation Mar 27 17:07:41 or do children of a widget not inherit them ? Mar 27 17:07:51 They do not Mar 27 17:07:56 ah! Mar 27 17:07:59 I thought they would.. Mar 27 17:08:22 that wouldn't make any sense Mar 27 17:08:41 starred Mar 27 17:08:42 well to me it would - its a parent object, all its children inherit it, unless specified otherwise Mar 27 17:09:13 and thank you, that fixed my entire issue Mar 27 17:09:14 haha Mar 27 17:09:19 This isn't html or whatever you're used to Mar 27 17:09:26 not coming from html :) Mar 27 17:09:35 but thanks :( Mar 27 17:14:58 SimonVT: Html.fromHtml() for great win Mar 27 17:15:28 TextView.setText(Html.fromHtml()) for even greater win Mar 27 17:16:24 hehe Mar 27 17:16:44 TextView tv = new TextView(); setContentView(tv); tv.setText(Html.fromHtml(myAppString)); Mar 27 17:17:04 the joke. you ruined it. Mar 27 17:17:42 you're boring Mar 27 17:17:52 no u Mar 27 17:19:03 I'd like to implement a "Error Report" type functionality in my app which allows me to grab their sqlite db in its current state for analysis on my end. Is it best just to send the .db file over via email or should I dump the contents to csv? Mar 27 17:21:54 what makes you think I want to send my db to you? Mar 27 17:22:10 * pragma_ reports QubeZ for invasion of privacy. Mar 27 17:22:11 oh gosh you're one of those Mar 27 17:22:30 thats the only way I can figure to troubleshoot a mapping application such as the one I have Mar 27 17:22:37 also, I hope you're paying for my megabytes Mar 27 17:22:48 unless i know the data they're working with, no way for me to troubleshoot Mar 27 17:23:14 you're not obliged to use the app:) Mar 27 17:24:04 its a free app, if ppl want me to make it better etc... they have to give a lil (i assume) Mar 27 17:24:09 I can still play devil's advocate. Mar 27 17:25:29 QubeZ: privacy concerns aside (you should definitely ask before sending any data and consider scrubbing it to be anonymized too), the sqlite database file is platform independent Mar 27 17:25:35 http://www.sqlite.org/different.html Mar 27 17:26:07 "Most other SQL database engines require you to dump and restore the database when moving from one platform to another and often when upgrading to a newer version of the software." Mar 27 17:26:33 I'd ask in the form of Menu -> Send Error Report. This would show a dialog to the user stating exactly what I am doing. There is also privacy policy on our website that states we do not share their private information. Mar 27 17:27:06 I'd prefer to write the .db to an SD card storage then attach it to an email from there (as long as the user accepts) Mar 27 17:27:40 Q: So why the buzz about HTML5+mobile is real apps are built with Java or Objective-C ? Mar 27 17:27:51 \if\ Mar 27 17:27:51 i really dont care about their data, but need it to troubleshoot. For example, I had report from Germany stating that mapping wasn't working although the tasks and locations were found fine via the app. Mar 27 17:28:04 not sure how to figure it out w/o the location data, or a few samples at least. Mar 27 17:28:26 silur a lot of apps are not build in java or C Mar 27 17:28:49 phonegap, corona, titanium etc Mar 27 17:29:03 TheBunny, that's true. I myself started with PhoneGap and quickly found myself spending time trying to solve Phonegap-related issues Mar 27 17:29:06 all kind of like html5 in a way Mar 27 17:29:22 Yeah the IDEs are great if they do what you need etc... Mar 27 17:29:30 YMMV Mar 27 17:30:03 TheBunny, and internet is full of articles coming from people who dived into one-for-all framework only to find out that it takes 4 times to really built something useful with them Mar 27 17:30:17 hmmm odd Mar 27 17:30:28 the biggest issues I hear about are like you had Mar 27 17:30:43 the ones where this sounds great and does not support feature X that a client wants.. Mar 27 17:31:04 "Hello world" apps or picture sliders works fine with all frameworks Mar 27 17:31:09 I see a lot of nice apps in corona and unity at least Mar 27 17:31:19 not sure the current status of phonegap. Mar 27 17:31:27 phonegap is terrible Mar 27 17:31:39 you can always tell when it's some terrible phonegap or titanium app Mar 27 17:32:01 Framework = time to learn framework + time to solve framework-specific issues+time to find out how to do really native calls from framework to device Mar 27 17:32:12 Java = learn one thing and do anything Mar 27 17:33:00 Learn 1 frame work + learn REAL programming + learn how to kind of put APIs together that are not very high level… smash head into wall getting them to work ;) Mar 27 17:33:19 Really you have a lot of both the Java path being more powerful in the end Mar 27 17:33:24 but taking a lot of time to learn Mar 27 17:33:38 TheBunny, thats exactly was my path last 2 months. last 2 weeks - java only. Live is much simpler now even though i never programmed in java Mar 27 17:33:59 but you programmed before this I take it? Mar 27 17:34:25 TheBunny, oh yes. c, c++, php, javascript Mar 27 17:34:47 ok so your good canidate to learn the real APIs etc Mar 27 17:35:00 PHP == C + '$' in front of all variables :) Mar 27 17:35:02 I think a lot of folks going for the high level stuff are not Mar 27 17:35:19 Oh I know all those languages.. or I have worked in them and more. Mar 27 17:36:24 It takes a week to learn any programming language, but takes lifetime to master it. Mar 27 17:36:27 PHP is fun :) Mar 27 17:36:49 explodes: no Mar 27 17:36:56 it takes a lifetime to master programming Mar 27 17:37:07 well unless its C++.... Mar 27 17:37:09 exploiter, or 5 minutes to Google :) Or 1 minute to ask at IRC :-P Mar 27 17:37:11 >_> Mar 27 17:37:23 well this is a funny thing, the galaxy s2 users in Uganda have got their ICS update Mar 27 17:37:31 the users in bulgaria however.... no Mar 27 17:37:46 hrm, i dropped a background.png in the res/drawable, i use it in my layout, but it doesnt show? Mar 27 17:37:51 o.O Mar 27 17:38:59 any idea why it wouldn't show it ? Mar 27 17:39:23 Insayne: given that incredibly in-depth explanation of your problem, no, I don't Mar 27 17:40:37 well, I put a 720x1280 png file into my projects res/drawable folder, now I reference it in my layout like this: android:background="@drawable/background" - yet it does not show up on my Galaxy Nexus Mar 27 17:41:10 on the HTC Desire, it does show up fine Mar 27 17:41:35 I use this : https://gist.github.com/2218269 code to repeatedly run an asynctask with a predefined interval. But with this code the asyncTask is run only once. what could be wrong? Mar 27 17:42:28 what more detail could I give you to help out ? Mar 27 17:42:37 Insayne: make a test case? Mar 27 17:42:57 make a Hello World app which does only that and see if it happens again Mar 27 17:42:57 how do you mean ? Mar 27 17:43:12 it would, I tried Mar 27 17:43:25 copying the background to res/drawable/hdpi etc, will solve it Mar 27 17:43:40 but I don't see why it doesn't use the one from res/drawable if it doesn't exist Mar 27 17:43:44 in the other Mar 27 17:44:05 does that make more sense now ? Mar 27 17:44:16 Shouldn't be putting png's in drawable/ Mar 27 17:44:25 It basically translates into drawable-mdpi Mar 27 17:44:27 ah no? I thought its where they are meant to go Mar 27 17:44:39 where do you put your apps background image then? Mar 27 17:45:19 Depends. Do you need a drawable for each dpi bucket? Mar 27 17:45:28 if not, drawable-nodpi Mar 27 17:45:48 well, I intend on having one image thats 1280x720, and it scales automatically to the other resolutions/dpi scales Mar 27 17:45:56 thats how one should do it, no ? Mar 27 17:47:12 Letting android handle scaling is both slow and is probably going to look horrible Mar 27 17:47:27 okay Mar 27 17:47:40 so how should I approach it? Mar 27 17:48:10 (when I say handle scaling I mean putting image in drawable/drawable-mdpi and counting on android to upscale it for -hdpi and -xhdpi) Mar 27 17:48:24 I asked earlier as what reference resolution I should be using for the different dpi's - but didn't really get an answer) Mar 27 17:48:45 There is no reference resolution Mar 27 17:48:51 It's density Mar 27 17:49:02 well density still can be calculate to pixel amount Mar 27 17:49:08 wat Mar 27 17:49:08 no ? Mar 27 17:49:09 A hdpi screen can be 1920x1200, or it can be 800x480 Mar 27 17:49:12 Or anything in between Mar 27 17:49:15 or above or below Mar 27 17:49:18 great Mar 27 17:49:29 so how do I know what to do ? Mar 27 17:49:34 I am really confused here Mar 27 17:50:08 I mean, if there was a common consensus that you should use 1280x720 for hdpi, 800x480 for mdpi, i'd be happy Mar 27 17:50:25 You make a background that doesn't require a fixed resolution Mar 27 17:51:23 Insayne: if you're really determined the shoot yourself in the head, I think you can use drawable-nodpi or something Mar 27 17:51:27 e.g. use tiling, gradients, etc Mar 27 17:56:28 hello all Mar 27 18:00:16 blargh Mar 27 18:00:32 ho do you know how i can display the exact android version in the adb shell? Mar 27 18:00:56 adb bugreport :P Mar 27 18:01:38 so you can legally transfer ownership Mar 27 18:01:42 of the io tickets Mar 27 18:01:46 thats crazy Mar 27 18:01:53 VJTachyon: interesting thanks, didnt know that command Mar 27 18:01:59 snix: :) Mar 27 18:02:12 VJTachyon: I think your response to snix's question constitutes self-incrimination :-S Mar 27 18:02:15 VJTachyon: is there a shorter command that only lists the version? like cat /etc/something maybe? Mar 27 18:02:19 VJTachyon: with google's approval, yes Mar 27 18:02:27 evancharlton: yeah just saw on the faq Mar 27 18:02:28 snix: adb shell getprop Mar 27 18:02:29 snix: probably not. Mar 27 18:02:31 TheMaverick`: why? Mar 27 18:02:33 thats you can transfer to associates Mar 27 18:02:36 oh yeah, getprop probably has it Mar 27 18:02:37 snix: adb shell getprop will list all of the properties Mar 27 18:02:43 yeah Mar 27 18:02:53 i just wanted you to dump 6MB of text to the screen Mar 27 18:02:58 14:00 < snix> ho do you know how i can display the exact android version in the adb shell? Mar 27 18:02:59 hilarious! Mar 27 18:03:11 Just out of curiousity... Is there a way to distribute logic (tasks) between an Android app and a server side app (like Google App Engine)? Mar 27 18:03:39 snix: Anyone who responded to that would, in theory, be responding to the title/name "ho" Mar 27 18:03:40 VJTachyon: yeah it is a bit much but also interesting information Mar 27 18:03:56 Napalm, yeah, I saw it, haven't had a chance to respond to emails yet Mar 27 18:04:18 cool, we'll get to speak sometime, you can always PM me Mar 27 18:04:22 TheMaverick`: huh? Mar 27 18:04:41 i just read the bugreport, some things even i didnt know Mar 27 18:04:46 intersting stuff Mar 27 18:04:46 * pfn just finally got to work Mar 27 18:05:16 snix: Nevermind Mar 27 18:05:23 * TheMaverick` shakes his head Mar 27 18:05:49 snix: yeah lots of cool stuff in there Mar 27 18:05:56 anyway how can i display only the version info? Mar 27 18:05:58 we wrote a version agnostic parser for it Mar 27 18:06:08 snix did you try getprop? Mar 27 18:06:14 VJTachyon, I thought you were consolidating your nicks Mar 27 18:06:31 Well let me put the question differently: If you were to use a background, what resolution in pixels would you attribute to the different dpi's ? Mar 27 18:06:34 pfn: yeah its a mess today Mar 27 18:06:38 luyang, no real frameworks to do it, no Mar 27 18:06:39 im a hot mess Mar 27 18:06:53 Insayne: how many times do we have to explain this? You wouldn't Mar 27 18:07:08 Napalm, sure thing Mar 27 18:07:17 Insayne, depends on what screen sizes you're supporting Mar 27 18:07:29 why wouldnt you? I mean, seriously, not everything can be vector based Mar 27 18:07:30 you have to keep in mind there's -hdpi-large, -hdpi-xlarge, -hdpi-small, etc. Mar 27 18:07:48 Insayne, so you'd have to support screen sizes from 3" all the way up to >11" Mar 27 18:07:51 thanks will try Mar 27 18:07:53 well, I keep on being told there is no resolution in pixels you should aim for Mar 27 18:07:58 so I am confused Mar 27 18:07:58 Insayne, there isn't Mar 27 18:08:10 Insayne, create assets for each size you want to support Mar 27 18:08:17 in a dpi you want to support Mar 27 18:08:31 yes, but if its hdpi - which resolution would I use? Mar 27 18:08:34 and which one for mdpi ? Mar 27 18:08:43 hey VJTachyon Mar 27 18:08:47 thats my question :) Mar 27 18:08:49 so if you want to support 10.1" tablets, create one for 1280x720 -hdpi-xlarge Mar 27 18:08:52 or is i mdpi Mar 27 18:08:53 * pfn forgets Mar 27 18:09:07 or learn about nine-patches Mar 27 18:09:11 and stop doing that crap :) Mar 27 18:09:16 for -hdpi by itself, 800x480 Mar 27 18:09:16 what is nine-patches ? Mar 27 18:09:26 ah, so they do have set resolutions! Mar 27 18:09:32 see thats what I was looking for Mar 27 18:09:32 10.1" tablets can be any density or resolution Mar 27 18:09:41 i like getprop, what exactly is it? all settings i can reach in the gui settings? Mar 27 18:09:42 pfn: ok Mar 27 18:09:44 They do not, Insayne Mar 27 18:09:49 bam Mar 27 18:09:49 snix: no Mar 27 18:09:56 SimonVT, huh ? Mar 27 18:09:59 snix: it's build properties Mar 27 18:09:59 lol Mar 27 18:10:08 Insayne> ah, so they do have set resolutions! <- No they don't Mar 27 18:10:21 snix: make an awk/sed script Mar 27 18:10:21 Insayne: did you not see where I said to *learn* about nine-patches? Mar 27 18:10:25 well i was just told: for -hdpi by itself, 800x480 Mar 27 18:10:32 Insayne's question IS valid, it's confusing as hell --- would someone be so kind as to explain this? Mar 27 18:10:34 evancharlton: no it contains more, like first boot, gsm operator etc Mar 27 18:10:38 Insayne: you are the weakest link Mar 27 18:10:48 "no they dont" "no it isnt" is not very helpful Mar 27 18:10:55 why am I the weakest link? oO Mar 27 18:10:58 yeah VJTachyon so there is no more specific command, fair enough Mar 27 18:10:59 most 10.1 tablets are 1280x768 Mar 27 18:10:59 snix: yes, it's various system properties. Some set by build, some bykernel, some can be toggled with setprop, etc Mar 27 18:11:09 -.- Mar 27 18:11:11 the new transformer tf700t is 1920x1200 or something Mar 27 18:11:14 * SimonVT goes back to coding Mar 27 18:11:16 in a 10.1" screen Mar 27 18:11:17 ok thanks evancharlton Mar 27 18:11:26 I really dont understand this at all Mar 27 18:11:30 Insayne: http://developer.android.com/guide/practices/screens_support.html Mar 27 18:11:37 what's not to understand? Mar 27 18:11:44 Read that whole page Mar 27 18:11:47 then ask us questions Mar 27 18:11:49 VJTachyon: Any code demo's for a text editor? Mar 27 18:11:58 jota text is opensource isn't it Mar 27 18:12:02 tomtiger11: notepad is the defacto sample Mar 27 18:12:11 link? Mar 27 18:12:22 tomtiger11: http://developer.android.com/resources/tutorials/notepad/index.html Mar 27 18:12:27 Thanks Mar 27 18:12:28 let me google that for you Mar 27 18:12:28 [ro.build.version.release] <-- thats it right? Mar 27 18:12:36 what does ro stand for? Mar 27 18:12:41 really odd Mar 27 18:12:42 read-only Mar 27 18:12:44 read only Mar 27 18:12:47 heh ok Mar 27 18:12:49 bah Mar 27 18:13:28 rofl: [net.ntp.server]: [time.windows.com] Mar 27 18:14:02 xlarge screens are at least 960dp x 720dp Mar 27 18:14:02 large screens are at least 640dp x 480dp Mar 27 18:14:02 normal screens are at least 470dp x 320dp Mar 27 18:14:02 small screens are at least 426dp x 320dp Mar 27 18:14:14 it gives me resolutions there, no? Mar 27 18:14:18 no Mar 27 18:14:19 sorry for the paste, meant to paste only one line Mar 27 18:14:23 Not necessarily Mar 27 18:14:25 they steal time from microsofot Mar 27 18:14:28 dp != px Mar 27 18:14:29 those are density independent pixels Insayne Mar 27 18:14:29 lol Mar 27 18:14:37 microsoft* Mar 27 18:14:55 great, so whats this density independant pixel stuff? Mar 27 18:15:01 *facepalm* Mar 27 18:15:10 Insayne: seriously man, http://google.com/ Mar 27 18:15:18 http://developer.android.com/guide/practices/screens_support.html Mar 27 18:15:19 Insayne, read the whole page Mar 27 18:15:20 Pow. Mar 27 18:15:22 xlarge screens are at least 6" x 4.5" (7.5" diagonal) Mar 27 18:15:22 large screens are at least 4" x 3" (5" diagonal) Mar 27 18:15:22 normal screens are at least 2.9375" x 2" (3.5537" diagonal) Mar 27 18:15:22 small screens are at least 2.6625" x 2" (3.33" diagonal) Mar 27 18:15:25 :) Mar 27 18:15:44 that is based on android's definitions of xlarge/large/normal/small and the size of a dp Mar 27 18:15:52 which goes to show how inaccurate it all is Mar 27 18:15:54 dont you think its funny that google hardcodes a microsoft server for time information to steal clock cycles and traffic from them? Mar 27 18:16:02 canadiancow|work: for small, shouldn't it be "at most"? Mar 27 18:16:02 (Wow, things are really moving in here at the moment. :)) Mar 27 18:16:09 no evancharlton Mar 27 18:16:12 [14:14:02] small screens are at least 426dp x 320dp Mar 27 18:16:25 snix: the person who did the build hardcoded it. Mar 27 18:16:46 evancharlton: ah, not google Mar 27 18:16:48 JakeWharton: I started implementing ActionBarSherlock in my Apps. Thank you for your hard work :) Mar 27 18:17:13 Well, I dont understand this at all Mar 27 18:17:46 canadiancow|work, I have a small screen device here that is less than that resolution Mar 27 18:17:52 but would one not say "for 320dp screen, i would recommend a 1280x720 image" ? Mar 27 18:17:56 why does getprop not accept wildcards, like getprop ro.* Mar 27 18:18:02 michaelnovakjr, im not making this shit up, im copying it from google Mar 27 18:18:12 Insayne, what is a "320dp" screen? Mar 27 18:18:21 canadiancow|work, there is such a thing as a typo... Mar 27 18:18:28 Insayne, you should go take a class if you don't understand Mar 27 18:18:32 well it has 320density pixels Mar 27 18:18:37 Insayne: you might want to look at the table in http://developer.android.com/guide/practices/screens_support.html#testing Mar 27 18:18:44 well then id recommend a 320dp image Mar 27 18:18:57 it'll give you some common configurations to help orient you Mar 27 18:19:19 thank you louielouie Mar 27 18:19:25 its like people here wouldnt want to explain anything Mar 27 18:19:42 in this case :( Mar 27 18:19:50 people have been explaining Mar 27 18:19:55 for the past 20 minutes Mar 27 18:20:02 where can i get android 2.3.8? Mar 27 18:20:02 your thick head is not understanding Mar 27 18:20:27 well, pixel density is relying on screen size, no? I.e, a 7" screen with less pixels, is less dense in pixels... Mar 27 18:20:33 Insayne: If you have a blog or something similar you could also share a post of how you interpret all this and share with us. Mar 27 18:20:48 Insayne, that's right Mar 27 18:21:04 or where can i find the latest release informatoin on versions? i couldnt find it on d.android.com Mar 27 18:21:15 [14:20:27] well, pixel density is relying on screen size, no? Mar 27 18:21:18 indirectly, maybe Mar 27 18:21:35 alright, so given that... my gnex is 4,65", and has 1280x720 display, and is 326DP afaik Mar 27 18:21:35 but you can have a 5inch screen with a low density, or with an extra high density Mar 27 18:21:36 pixel density is a function of resolution / screen size Mar 27 18:21:44 yes Mar 27 18:21:57 but at the end, your picture (png), has a certain resolution Mar 27 18:22:28 Insayne, the simple answer is, don't expect to create pixel-perfect background images Mar 27 18:22:31 so, make your png one that will look good across sizes and resolutions Mar 27 18:22:35 pfn - THANK YOU Mar 27 18:22:43 where can i find the latest version release information? i couldnt find it on d.android.com Mar 27 18:22:44 thats my fucking issue, i cant do pixel perfection Mar 27 18:23:01 you can't do it, not across myriad devices Mar 27 18:23:03 and there is no general consensus, which resolutions are recommended currently to use? Mar 27 18:23:07 im giving up android and doing iphone so i dont have to deal with this Mar 27 18:23:10 you can on the most common screen resolutions Mar 27 18:23:12 Insayne: theres infinite resolutions Mar 27 18:23:15 Insayne, use the resolutions of the most popular devices Mar 27 18:23:17 sgs2 Mar 27 18:23:25 htc whatevers Mar 27 18:23:29 800x480, 1280x800 and 1280x720 Mar 27 18:23:36 is there a device list of popularity, screen resolutions/densities ? Mar 27 18:23:37 maybe throw in 960x480 Mar 27 18:23:38 so 1280x720, 800x480 and what romainguy says Mar 27 18:23:56 is 1280x720 that popular? Mar 27 18:23:56 960x480? what has that? Mar 27 18:23:57 Insayne: http://developer.android.com/resources/dashboard/screens.html Mar 27 18:24:06 should be 960x540 i believe Mar 27 18:24:06 canadiancow|work, gnex is a reference platform... plus htc rezound Mar 27 18:24:12 what Rockmaninoff said Mar 27 18:24:14 qHD Mar 27 18:24:15 thats what my question was, there is a general consensus about which resolution you would use for which dpi ? Mar 27 18:24:15 960x540 for qhd Mar 27 18:24:16 yeah Mar 27 18:24:22 that's the droid razr and some others Mar 27 18:24:25 [14:24:06] canadiancow|work, gnex is a reference platform... plus htc rezound Mar 27 18:24:28 that doesnt mean it's popular :) Mar 27 18:24:33 look at the chart Mar 27 18:24:35 gnex is popular! :P Mar 27 18:24:48 romainguy: do you know where i can find the release information? Mar 27 18:25:03 normal hdpi + normal mdpi gives you 84% of the population Mar 27 18:25:13 snix: what release information? Mar 27 18:25:29 so, 800x480 = ldpi, 1280x800 = sgs2 (mdpi?) and 1280x720 (hdpi) ? Mar 27 18:25:37 no Mar 27 18:25:42 800x480 is usually hdpi Mar 27 18:25:48 romainguy: for example i cannot find when 2.3.7 was released and whether it is the latest etc, the d.android.com only lists 2.3.3 Mar 27 18:25:51 ah okay Mar 27 18:25:53 Insayne, you can have any resolution at any density!!! Mar 27 18:25:58 romainguy: but wikipedia says there is 2.3.7 already Mar 27 18:25:59 1280x800 and 1280x720 are xhdpi on phones Mar 27 18:26:02 and mdpi on tablets Mar 27 18:26:03 yes, but its mean to look best :P Mar 27 18:26:18 so i am trying to find the official source Mar 27 18:26:26 thank you romainguy, you are my saviour Mar 27 18:26:37 he is many people's saviour Mar 27 18:26:39 d.android.com only lists new api levels Mar 27 18:26:42 2.3.7 is not a new api level Mar 27 18:26:45 it's still 10 Mar 27 18:26:47 you could also use a 9patch for your background Mar 27 18:26:50 I use this : https://gist.github.com/2218269 code to repeatedly run an asynctask with a predefined interval. But with this code the asyncTask is run only once. what could be wrong? Mar 27 18:26:52 so it can expand a little bit Mar 27 18:26:55 romainguy, what is 9patch ? Mar 27 18:27:02 to accommodate various screen resolutions Mar 27 18:27:06 Insayne: you should definitely google that... Mar 27 18:27:13 i am googling it Mar 27 18:27:14 napster: don't use TimerTask Mar 27 18:27:17 kk :P Mar 27 18:27:19 Insayne: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch Mar 27 18:27:24 Q: Anyone knows how widen gap within radioGroup: (x)yes( )no --> to make it: (x) yes ( ) no ? Mar 27 18:27:28 Insayne: it's a type of bitmap that contains stretchable regions Mar 27 18:27:29 was just looking for a quick "reference" Mar 27 18:27:33 ah Mar 27 18:27:41 evancharlton: then? Mar 27 18:27:55 Insayne: that's how the bitmaps for buttons for instance are created Mar 27 18:28:03 gesman: does RadioGroup have drawablePadding attr? if not, then dunno... Mar 27 18:28:10 snix: what do you mean by "original source"? Mar 27 18:28:12 gesman: might be best to just define RadioButton and TextView Mar 27 18:28:20 ah , but its not good for a non-vector image Mar 27 18:28:27 Rockmaninoff, thanks. I'll investigate drawable Mar 27 18:28:30 its drawing it from scratch - i was just having a "photo" as background Mar 27 18:28:52 okay, i got it now, thank you Mar 27 18:28:52 napster: http://developer.android.com/resources/articles/timed-ui-updates.html Mar 27 18:28:59 Insayne: you could have a photo *and* a 9patch border Mar 27 18:29:13 evancharlton: ok let me see Mar 27 18:29:14 yeah, but I dont wish for a border, hehe :D Mar 27 18:29:29 drlaban: the original source of release information, not wikipedia or something where everybody can write whatever they want. also wikipedia doesnt say where they got their info Mar 27 18:29:45 drlaban: where does google list its release info? Mar 27 18:30:03 Insayne: I understand, and you could have the border only on screen sizes you don't support Mar 27 18:32:25 snix: Well, something tells me that downloading the Source Tree at source.android.com would have what you're looking for (and more). I don't know of a "Human readable" place as of yet. Mar 27 18:32:40 drlaban: hm ok, thats weird... Mar 27 18:32:47 i mean its just releases info.. Mar 27 18:32:50 everybody publishes those Mar 27 18:33:11 its not some kind of special source code specifics or something Mar 27 18:33:13 now, I wonder, if a device is for example classified as mdpi, will the package be a different one they get, with only mdpi resources (to save space) ? Mar 27 18:33:16 its important info Mar 27 18:33:23 from google play Mar 27 18:33:42 bad move google Mar 27 18:33:43 snix: No, but it's still a list that would have to be maintained/generated. Mar 27 18:33:55 drlaban: yes, its what you do when you write software Mar 27 18:34:01 Insayne: that is not the case AFAIK, but i think it's possible with multiple .apk support Mar 27 18:34:19 you would have to upload different .apks with different res/ folders, tailored for each screen density Mar 27 18:34:24 but i am not positive Mar 27 18:34:30 snix: I would say it's a choice, not a requirement Mar 27 18:34:35 I see Mar 27 18:34:52 drlaban: i would say its retarded to not give release info Mar 27 18:37:08 snix: Well, if it's of any worth at all to you, a list of something similar that google does maintain: http://source.android.com/source/build-numbers.html Mar 27 18:38:00 I want an activity to use a different layout depending on orientation... how would I do this? Mar 27 18:38:16 google man google Mar 27 18:38:17 blargh Mar 27 18:38:20 Yes I can google, i am asking for the recommended approach Mar 27 18:38:28 EL GOOG Mar 27 18:38:34 Insayne: google for the recommended approach Mar 27 18:38:40 i did Mar 27 18:38:47 and what did it come up with? Mar 27 18:38:48 snix: If you would've looked through that site instead of arguing whether that list should exist or not, you probably would have found it before I did. Mar 27 18:39:52 QubeZ, stackflow issues Mar 27 18:40:42 hi. is there a channel for android hardware questions? Mar 27 18:40:58 Insayne: this is what i found when googling for "android layout orientation": http://groups.google.com/group/android-developers/browse_thread/thread/a640da2a01bdfde5 Mar 27 18:41:05 I read about res/layout-land/ Mar 27 18:41:08 seriously, you wont learn jack if you keep asking fundamental question in here Mar 27 18:41:12 you need to educate yourself Mar 27 18:41:27 Marriot or parc 55? hum Mar 27 18:41:40 $aV000139244786 Mar 27 18:41:44 balls lol Mar 27 18:41:58 QubeZ, and my questions, don't you think those serve that education? Mar 27 18:42:14 Insayne: nope Mar 27 18:42:28 I just don't wish to end up following something i read, which is then for android 1.5, which is now deprecated, or a bad way of doing it for today, and do things over because of it Mar 27 18:42:45 thanks drlaban Mar 27 18:42:47 is it so hard that I ask in a community for clarification and look for a generic guideline of what is good practice? Mar 27 18:42:56 you dont come to IRC to get educated, you educate yourself first then ask educated-backed questions about specifics Mar 27 18:43:11 drlaban: well i was looking at d.android.com where one would expect it Mar 27 18:43:14 Insayne: you simply define layouts in configuration specific resource directories Mar 27 18:43:25 hi. i'm disassembling a motorola milestone 2 (droid 2) A953, following two sets of instructions online, http://www.ifixit.com/Teardown/Motorola-Droid-2-Teardown/3502/1 and http://mobilehqrepairsblog.com/motorola-milestone-2-disassembly-video/ - however, i'm stuck. i've removed seven screws and unclicked the top of the case all the way around, but the part by the camera won't budge and i'm wary of forcing it too much. Mar 27 18:43:25 any advice? Mar 27 18:43:25 Insayne: layout-land for landscape, layout-port for portrait, etc. Mar 27 18:43:27 Insayne, you keep getting pointed to the canonical docs which supercede everyone here Mar 27 18:43:47 Adriannom: totally not the right channel Mar 27 18:43:48 well, I was seeing I can detect the orientation change by using a listener, and applying a different layout - which would have equally worked - but it seems redundant to do so, given the folder structure with which i can handle it Mar 27 18:44:08 So there were multiple choices, and which one would look/work best is what my question was about. Mar 27 18:44:22 evancharlton, thanks. i figured i was bordering on asking to ask so decided to just ask. any idea whether there *is* a right channel? Mar 27 18:44:22 thanks romainguy :) Mar 27 18:44:44 Insayne: that was not how you phrased your question. You asked a general question on how to handle orientation changes. Mar 27 18:45:02 if you asked to contrast the two options, pro/con then someone can comment on it. Mar 27 18:45:37 yes, because if I ask whether to do it way A, or way B - I somehow make you assume for an odd reason there is no option C which is common, thus you tell me the "better" of the two evils - so I was looking if there was a C Mar 27 18:45:46 http://blogs.jetbrains.com/idea/2012/03/launching-android-tools-right-from-intellij-idea/ Mar 27 18:45:47 ooh Mar 27 18:45:55 oh god, i give up Mar 27 18:45:58 as i would prematurely narrow down your answers choice, which doesn't make sense, if there is an even better way to do so Mar 27 18:46:07 are we there yet? Mar 27 18:46:18 * QubeZ goes into hiding. Mar 27 18:46:51 sorry QubeZ, i phrase it generic so i don't lock myself out from getting the best approach :) Mar 27 18:47:19 sounds like a cop out to not doing your research Mar 27 18:47:22 but thats me Mar 27 18:47:35 Insayne: ASking general questions often lead to questions about what you specifically want to achieve, though. Mar 27 18:47:36 ReAdddddd Mar 27 18:48:27 drlaban, yeah - its a catch22 sometimes, I admit so ^^ Mar 27 18:51:28 Insayne: When you follow guides on the web, two things that can ease the confidence in whether it will work/is updated enough is to skim through the entire guide (and comments) to see if there are versions mentioned. And, look class names up in the References. Mar 27 18:52:00 Insayne: If they are deprecated, the references will point that out. Mar 27 18:52:19 hi. i'm disassembling a motorola milestone 2 (droid 2) A953, following these instructions: http://www.ifixit.com/Teardown/Motorola-Droid-2-Teardown/3502/1 - however, i'm stuck. i've removed seven screws and unclicked the top of the case all the way around, but the part by the camera won't budge and i'm wary of forcing it too much (in fact i've already forced it quite a bit). any advice? Mar 27 18:52:24 oooops Mar 27 18:52:31 wrong channel, sorry :/ Mar 27 18:53:10 Guess StockOverflow doesn't apply here. Maybe Google or xda, though. :) Mar 27 18:56:57 question: is there actually a way to resell Google io tickets? Mar 27 18:57:47 ebay and craigslist Mar 27 18:58:03 i wonder what they go for Mar 27 18:58:13 we weren't able to get any this morning ;( Mar 27 18:58:14 n8o-mba: you have to get approval from google to transfer it Mar 27 18:58:17 you probably have to sell them for face value right? Mar 27 18:58:21 n8o-mba: Another channel mentioned $4500 Mar 27 18:58:33 evancharlton: is that hard? I mean, it *sounds* hard Mar 27 18:58:38 n8o-mba: I hope so Mar 27 18:58:43 I hope it's damn near impossible Mar 27 18:58:47 drlaban: hmm. $2k is probably the top of what I could get approved for Mar 27 18:59:12 it does kind of suck that I'll only be able to send people to WWDC this year :( Mar 27 19:05:44 if i use ImageView.ScaleType(FIT_TOP), is there any way to get rid of the injected padding? Mar 27 19:07:33 sorry, FIT_START, but same question Mar 27 19:10:14 solved, set android:adjustViewBounds="true" Mar 27 19:19:52 i heard all of the google i/o ticket holders get free teslas -- is that true ? Mar 27 19:20:16 whats a tesla Mar 27 19:20:32 http://www.teslamotors.com/ Mar 27 19:20:35 heavy cars Mar 27 19:20:42 fuck Mar 27 19:20:45 so i have to DRIVE home? Mar 27 19:20:57 man its a big enough pita to pay import taxes on a tablet and phone Mar 27 19:21:20 canadiancow|work: Optionally sell it? Mar 27 19:21:21 i wonder if thats even feasible Mar 27 19:21:27 heavy cars? Mar 27 19:21:31 how much space would 5000 cars take? Mar 27 19:21:42 tesla is pretty reasonably lightweight at like 3000lbs or so? Mar 27 19:21:48 less than that, I think Mar 27 19:21:58 it's like >1000lbs in batteries... Mar 27 19:22:15 hum Mar 27 19:22:19 I dont want to take it on a fn boat Mar 27 19:22:25 canadiancow|work, you had to pay import taxes on the tablet and phone? Mar 27 19:22:41 pfn, It is probably a bit harder to sneak a car through customs :P Mar 27 19:22:44 and sold out in 20 minutes, damnit Mar 27 19:22:47 Headhunter just called up...no leads...asked where I was interviewing...I guess they're looking for leads themselves... Mar 27 19:22:48 * pfn wanted to go Mar 27 19:22:50 pfn: no, because i talked to a person about it Mar 27 19:23:00 * pfn crosses fingers that there will be another last-call contest this year Mar 27 19:23:05 All the Google IO codes for hotels are used.Meh. Mar 27 19:23:05 thats what sucks about the nexus program - i can clear customs online, but if i declare $1500 in shit, i pay tax Mar 27 19:23:07 Last call contest? Mar 27 19:23:17 whereas a customs agent can say "oh cool dont worry about the taxes" Mar 27 19:23:18 Zooklubba, yeah, last year google gave away 100 tickets Mar 27 19:23:19 and le tme through Mar 27 19:23:22 Ologn: a headhunter asked where you were interviewing? thats crazy Mar 27 19:23:31 I heard something about they were selling in SF the day before? Mar 27 19:23:44 Ologn, headhunter better not call unless they got leads to begin with Mar 27 19:23:52 hrm, if I do a tablelayout, and i want the first cell (in the row) just normal (wrap_content), is there a parameter for the 2nd cell to use up the remaining space? Mar 27 19:24:02 canadiancow|work, were you staying? Mar 27 19:24:06 * g00s has to check out this new grid layout thing in the support library Mar 27 19:24:12 were i staying? Mar 27 19:24:14 i dont understand Mar 27 19:24:19 Where are you staying Mar 27 19:24:25 Trying to save some time writing extremely sloppy Mar 27 19:24:26 oh lol Mar 27 19:24:27 the hotel rex Mar 27 19:24:35 well - for some of the time Mar 27 19:24:37 at a friend's the rest Mar 27 19:25:46 Hope someone cancels so I can sweep in with the offers. Mar 27 19:26:10 anyone? :P Mar 27 19:26:25 Insayne, yes, read the docs for tablelayout Mar 27 19:26:27 it tells you how to do it Mar 27 19:26:39 pfn, what was the contest. When was it accounced etc? Mar 27 19:26:53 Zooklubba, google for last-call io2011 Mar 27 19:27:06 My boss and fellow coder wanted me to give him my ticket :( Mar 27 19:27:21 id be like "fuck off" Mar 27 19:27:23 give him your ticket? wtf Mar 27 19:27:26 that's a solid FU Mar 27 19:27:31 yesterday my boss said "if you dont get in, you can have my ticket" :) Mar 27 19:27:32 lol Mar 27 19:27:40 managers should support their employees Mar 27 19:27:42 pfn, k Mar 27 19:27:44 not ass-rape them Mar 27 19:27:49 Zooklubba: You told them to "Dra dit pepparn växer", yes? :) Mar 27 19:28:05 haha, havent really answered him. Told him they might release tickets later :P Mar 27 19:28:21 passive aggressive Zooklubba =) Mar 27 19:28:27 why would you even consider giving them your ticket Mar 27 19:28:32 you paid with your own money, right? Mar 27 19:28:35 Lol, I dont want to. lol Mar 27 19:28:36 Yes Mar 27 19:28:39 Zooklubba: Even if Google decides not to, you should still tell them that there might be tickets. Make them believe it. :) Mar 27 19:28:52 Yep, dont want to make him angry :P Mar 27 19:29:00 drlaban Who is going towards the pepper? Mar 27 19:29:03 start looking for a new job Mar 27 19:29:06 damn it i wish i could go this year Mar 27 19:29:10 sounds like so much fun Mar 27 19:29:11 Ooh, "Sweden house hotel" Mar 27 19:29:14 Is Google I/O sold out? Mar 27 19:29:17 you paid with your own money Mar 27 19:29:20 luyang, in 20 minutes Mar 27 19:29:22 at 7:00am Mar 27 19:29:23 wtf Mar 27 19:29:23 damn Mar 27 19:29:27 who the fuck gets up that early Mar 27 19:29:27 oi porca Mar 27 19:29:29 I want a tablet! Mar 27 19:29:29 luyang, a swedish expression of go to hell. Mar 27 19:29:31 7am pacific Mar 27 19:29:31 I didn't even get up 'til 8:40 Mar 27 19:29:33 10am eastern Mar 27 19:29:35 Zooklubba åfan Mar 27 19:29:36 so, you know. Mar 27 19:29:42 ctate, yeah, and I'm in PDT :p Mar 27 19:29:46 so am i :) Mar 27 19:29:47 I barely ever wake up before 9am Mar 27 19:29:50 Zooklubba där ser man Mar 27 19:30:05 ctate: but you work for google, assuming you dont need to wake up and buy them hah Mar 27 19:30:17 luyang: Zooklubbas boss and his fellow coder. :) Mar 27 19:30:26 men lol Mar 27 19:30:48 Dont complain about the time, it was perfect Mar 27 19:31:08 :P Mar 27 19:31:43 * pfn crosses his fingers for last-call Mar 27 19:32:03 pfn, what kind of contest was it? Mar 27 19:32:08 E- Elbereth Mar 27 19:32:10 oops Mar 27 19:32:30 10 different contests on 10 different days, appengine, android, youtube, maps, chrome and 5 others I don't remember Mar 27 19:32:36 ooh, http://googlecode.blogspot.se/2011/03/last-call-for-google-io.html Mar 27 19:32:42 sorry for not googling it in time Mar 27 19:32:54 google apps was another one... Mar 27 19:32:55 ctate you going to google io? Mar 27 19:34:06 Zooklubba that was last year Mar 27 19:34:21 Yes, I was asking about the competition for last year Mar 27 19:35:31 Zooklubba, but that was US-only, though Mar 27 19:35:38 oh, bastards Mar 27 19:35:39 dunno if you're in US Mar 27 19:35:42 lol no Mar 27 19:36:02 france it appears Mar 27 19:36:14 By bnc is in france :P Mar 27 19:37:11 but yeah, I really hope for another last-call contest Mar 27 19:37:44 Zooklubba: About getting that Tesla home. Idea: Disassemble it to tiny pieces, send by mail. Should avoid boat _and_ customs that way. ;) Mar 27 19:37:55 lol Mar 27 19:38:03 Gonna cost a fortune in stamps Mar 27 19:38:09 As we say, "taget" Mar 27 19:38:48 SimonVT: if you can afford a Tesla, you can afford the stamps. Mar 27 19:38:58 Nono, the tesla is free Mar 27 19:39:01 ctate, no, that's the joke Mar 27 19:39:06 ctate, free tesla with google IO Mar 27 19:39:10 oh, i see Mar 27 19:39:11 why else would it sell out in 20 minutes Mar 27 19:39:18 i'm starting to agree with one of my orkers Mar 27 19:39:24 at 7am Mar 27 19:39:25 orker? Mar 27 19:39:28 we should turn it into TED and start charging $8000 a pop Mar 27 19:39:30 when I haven't even frickin' woken up yet Mar 27 19:39:42 Zooklubba: cow orker, of course. it's a mild joke. Mar 27 19:39:49 oh Mar 27 19:40:15 pfn, I was at work. Didnt do anything for like two hours prior to the tickets. Was too anxious Mar 27 19:41:05 well work and work, master thesis work at a company Mar 27 19:45:25 Is there a common way to create settings screens, or shall I just go forth by making my own activity? Mar 27 19:45:54 Insayne: http://developer.android.com/reference/android/preference/PreferenceActivity.html Mar 27 19:46:18 Hi, I can't find which intent filter action I should use in my manifest in order for a broadcast receiver to check when network connectivity changes Mar 27 19:47:18 android.net.conn.CONNECTIVITY_CHANGE Mar 27 19:47:53 there's also android.net.conn.BACKGROUND_DATA_SETTING_CHANGED if you're retrieving anything in the background Mar 27 19:48:01 thx napalm, other question is, i want to add functionality to either the menu button, or the "menu" on ICS (no physical button), how would I best achieve this? (I.e, retain ICS style, on an ICS phone) Mar 27 19:48:30 Insayne, target api15 Mar 27 19:48:43 15 is too high, thats 4.0.3, i run 4.0, which is 14 Mar 27 19:48:50 but I do that already Mar 27 19:48:55 so, you can target api15 Mar 27 19:49:01 no, 14 Mar 27 19:49:05 15 is too high Mar 27 19:49:10 14 will work, too Mar 27 19:49:13 I didn't say set min to 15 Mar 27 19:49:18 but you can target 15, too Mar 27 19:49:20 there's no such thing as too high Mar 27 19:49:22 even if your phone is 14 Mar 27 19:49:22 you can target 15 just fine Mar 27 19:49:40 well, wouldnt you target the lowest (which would be 14) where it changes its behaviour ? Mar 27 19:49:40 wongk : thanks, it wasn't in the list in eclipse so I thought it wasn't this Mar 27 19:49:46 compatibility, how does it work!? Mar 27 19:49:55 evancharlton, fragmentation :P Mar 27 19:49:58 i blame it! Mar 27 19:50:00 Insayne: wat Mar 27 19:50:16 well ICS is API 14, 4.0 Mar 27 19:50:20 4.0.3 is 15 Mar 27 19:50:24 and? Mar 27 19:50:30 so the earliest it worked was 14, so you would aim to support that, no? Mar 27 19:50:40 if i target 15, 14 will work the old way, no ? Mar 27 19:50:53 android is backwards and forwards compatible Mar 27 19:51:03 I'm not sure what on earth you're asking Mar 27 19:51:06 if you target 15, it'll activate any new features in 14 in addition to anything in 15 Mar 27 19:51:16 i think he's confused between minSdk and targetSdk Mar 27 19:51:16 god, thats confusing Mar 27 19:51:22 i never seen anything "Forward compatible" Mar 27 19:51:33 nah, min i use 8 (froyo) Mar 27 19:51:34 QubeZ: s/ between minSdk and targetSdk// Mar 27 19:51:39 target api15 and you're now forward compatible with api15 devices :p Mar 27 19:51:48 yeah, thats what I didnt get Mar 27 19:51:50 evancharlton: lol Mar 27 19:52:04 i thought if i set the target to 14, it would from API level 14 on use ICS stuff Mar 27 19:52:29 obviously, it doesnt work that way then Mar 27 19:52:34 you can target api14 Mar 27 19:52:43 you just won't be able to optionally use any api15 features Mar 27 19:53:03 I see Mar 27 19:53:17 i always target the highest level api, why not right? Mar 27 19:53:25 QubeZ, indeed Mar 27 19:53:29 you are right Mar 27 19:53:34 you should target the API you're targetting Mar 27 19:53:38 ==evancharlton Mar 27 19:53:41 I'm not sure why this tautology is so hard to understand Mar 27 19:53:42 target the APIs you want to use Mar 27 19:53:43 there's very little reason to target a lower api than what is available Mar 27 19:54:17 [15:53:38] <@ctate> ==evancharlton Mar 27 19:54:20 I KNEW YOU WERE THE SAME PERSON Mar 27 19:54:23 ctate == evancharlton Mar 27 19:54:25 *shifty eyes* Mar 27 19:54:30 dear god i hope not Mar 27 19:54:40 it's bad enough that you're all figments of my imaginatino Mar 27 19:54:43 canadiancow|work: ctate == evancharlton but ctate !== evancharlton Mar 27 19:55:02 lol Mar 27 19:55:22 evancharlton: you need to fix your syntax :P Mar 27 19:55:29 QubeZ: no I don't Mar 27 19:55:35 now I wonder.. I made an application, which does some calculation on a button click, then stores it in the sharedpreferences, my result activity just reads those out, and outputs it - is this a bad way of handling it? Mar 27 19:55:35 strict comparisons, homie Mar 27 19:55:45 if you're in javascript... Mar 27 19:55:58 pfn: or php Mar 27 19:56:15 is php even worth mentioning as a language? Mar 27 19:56:21 Insayne: do you need them to be persistent? Mar 27 19:56:26 alright, who wants to teach Insayne about intent extras? Mar 27 19:56:28 I just wonder about practice here - if its good or bad to do it that way - I read that I should thread any action that takes longer than 200-300ms Mar 27 19:56:29 <-- not it! Mar 27 19:56:35 pfn: for those that can read it Mar 27 19:56:52 wongk, yes - so when you launch the app again, it will retain them Mar 27 19:57:04 will it be possible to get tickets to Google I/O from a black market? Mar 27 19:57:06 and i thought, instead of redoing the math again, i could just store it in sharedPreferences Mar 27 19:57:08 Insayne: you should thread any action that takes > 0 ms that can be threaded Mar 27 19:57:25 200 ms is not a big deal if you're not doing something hard realtime like animations. 2 seconds is a big deal. Mar 27 19:57:40 so I should just generally always thread it ? Mar 27 19:57:54 * pfn is generally pissed that java doesn't have first-class functions Mar 27 19:57:55 threading for the sake of threading is not a great idea Mar 27 19:57:58 Who cares about Rihanna, Britney Spears, Lady Gaga, etc... When there is Google I/O! Mar 27 19:58:00 makes doing anything async such a major pita Mar 27 19:58:02 i.e, button calls my function which is threaded, once the function ends, i call the activity to display the result? Mar 27 19:58:19 * pfn has madonna tickets he's gonna need to stubhub as the concert-date approaches Mar 27 19:58:22 is that how i should do the workflow ? Mar 27 19:58:48 Insayne: use asynctask, you'll like it Mar 27 19:58:57 not sure you'll understand it at first, but you'll like it once you understand it Mar 27 19:59:01 aha Mar 27 19:59:05 you got a link ? Mar 27 19:59:08 d.android.com Mar 27 19:59:30 from now on, assume the answer to all of your "you got a link?" questions is d.android.com Mar 27 19:59:46 Insayne: and if it's not on d.android.com, I promise you it's on google.com Mar 27 20:00:06 stick that in your google! Mar 27 20:00:10 i am reading - just thought if there is a specific linkt hat explain it the best, he would link me to it :D Mar 27 20:00:22 /j #android-spoon-feeding Mar 27 20:00:31 i woulnd't like it to you, when you can just type asynctask in the search bar at the top right of d.android.com Mar 27 20:00:36 come on dude, help us help you Mar 27 20:00:41 help us Mar 27 20:00:54 *link Mar 27 20:00:55 Insayne, you are very quickly getting to the point where everyone will ignore you Mar 27 20:01:00 Insayne, put some effort into it Mar 27 20:01:02 getting? Mar 27 20:01:02 im so frustrated, i can't even type :) Mar 27 20:01:13 Insayne, if you want help, you gotta help yourself, you only get as much out as you put in Mar 27 20:01:26 wow, thats like how Dad would say Mar 27 20:01:33 wongk : Is android.permission.ACCESS_NETWORK_STATE enough for the Connectivity_change receiver ? Mar 27 20:01:36 ok, i will try to better myself - usually people in other channels that are coding related will come and be a smartass "but thats not what you asked, you made a choice between a and b, so i gave u the better option", etc Mar 27 20:01:47 so I try to work around that :( I try to not do so anymore Mar 27 20:01:58 vague questions get vague answers Mar 27 20:02:04 same as in every other technical irc channel Mar 27 20:02:24 Walui: I believe so but not sure if INTERNET is assumed there Mar 27 20:02:55 QubeZ, async task seems cool Mar 27 20:03:38 its nice, i was using normal java threads until I moved to ASyncTask Mar 27 20:03:42 so nice, so very nice Mar 27 20:04:02 can you specify which CPU to use if there are multiple on it ? Mar 27 20:04:10 I didnt see you could in the documentation Mar 27 20:04:26 or does android handle the affinity on its own with it ? Mar 27 20:05:04 You have no control over CPU affinity; the kernel takes care of that. Mar 27 20:05:16 if you are trying to pick your own CPU, you're doing it wrong Mar 27 20:05:23 exactly Mar 27 20:05:23 well put, won Mar 27 20:05:25 wongk: * Mar 27 20:05:30 why is that? Mar 27 20:05:33 QubeZ, I prefer pure threads vs. using asynctask... Mar 27 20:05:52 your application doesn't know about every other application Mar 27 20:05:58 only the kernel knows that Mar 27 20:06:05 which is why it has a scheduler Mar 27 20:06:12 Insayne: your app doesn't have enough information about every other task running on the system to know that pinning to a particular CPU is ideal. Mar 27 20:06:14 pfn: in some cases, I can imagine the choice should be made. I've just moved to ASyncTask because I saw no reason not to. Mar 27 20:06:34 direct cpu affinity is useful in some kinds of tightly controlled embedded-product cases Mar 27 20:06:42 and is badly misguided in all other cases Mar 27 20:06:44 maybe i/o ticket costs should be tied to the average revenue generated per app Mar 27 20:06:53 g00s: what? Mar 27 20:06:56 :D Mar 27 20:06:56 ctate, well i am the foreground application, i can see it for a game for example, that the kernel wouldn't handle me properly Mar 27 20:07:05 of course it will Mar 27 20:07:16 properly meaning, i maximize my usage with 2 threads running for a dual core Mar 27 20:07:16 ctate: i had a case on a server where i had two cores, and one REALLY cpu-intensive task, so i gave it its own core, and forced everything else onto another Mar 27 20:07:26 Insayne, given your overall lack of knowledge, you don't need to control cpu affinity Mar 27 20:07:26 then i got a core i7 and it was no longer that cpu-intensive Mar 27 20:07:32 remember that in practice the kernel will not migrate threads between cores for no reason Mar 27 20:07:42 the linux scheduler is not stupid about stuff like that Mar 27 20:08:05 well, i come from windows, and there it is to a certain extent Mar 27 20:08:15 ew Mar 27 20:08:21 * pfn never has a problem with cpu affinity of tasks on windows Mar 27 20:08:23 even e.g. Windows 7? Mar 27 20:08:26 weird Mar 27 20:08:27 you can pin stuff on a cpu Mar 27 20:08:27 hey guys, let's not model anything done on android after windows Mar 27 20:08:29 thanks! Mar 27 20:08:32 but there's really no reason to Mar 27 20:08:34 ha ha ha ==evancharlton Mar 27 20:08:38 evancharlton: Task killers! Mar 27 20:08:47 how do you even KNOW if cpu affinity is a problem? Mar 27 20:08:59 my shit runs. the end. Mar 27 20:09:03 ( re GoogleIO: https://plus.sandbox.google.com/u/0/102910926002632082374/posts/Ujosvw5R6ai ) Mar 27 20:09:16 plus.sandbox? Mar 27 20:09:19 * pfn pokes ctate Mar 27 20:09:20 sandbox eh ;) Mar 27 20:09:31 nice Mar 27 20:09:33 https://plus.google.com/u/0/102910926002632082374/posts/Ujosvw5R6ai Mar 27 20:10:56 hah Mar 27 20:11:10 i am trying to show a custom error message in webview with webview.loadData but i am not getting the custom text instead i am getting a blank white page. Mar 27 20:11:36 yeah yeah ok Mar 27 20:11:38 sheesh Mar 27 20:11:41 stupid intranets Mar 27 20:11:51 ctate. for serious? Mar 27 20:11:59 you think those of us on that thread dont know how to do it properly? :P Mar 27 20:12:07 blue_pearl: what theme does your app use> Mar 27 20:12:08 ? Mar 27 20:13:27 I can't come up with app ideas!! Mar 27 20:14:25 canadiancow|work: ? Mar 27 20:14:46 g+ Mar 27 20:14:49 mikedg's post Mar 27 20:14:52 canadiancow|work: re the "identifying device installations" link in mikedg's thread about ... yeah Mar 27 20:14:54 identify..yea Mar 27 20:14:59 luyang: it's tough, ain't it Mar 27 20:15:04 i ithink *some* people reading that thread do not know how to do it properly. Mar 27 20:15:09 sigh Mar 27 20:15:17 no-op TelephonyManager#getDeviceId() :) Mar 27 20:15:26 strongly tempted :) Mar 27 20:15:30 luyang: a lot of the ideas i have are already done Mar 27 20:15:37 "return 4;" Mar 27 20:15:46 wongk, the default one that is set in eclipse android sdk. Mar 27 20:15:47 btw, thank you all for your explanations and help, been coming along nicerly learning new things thanks to you ^^ Mar 27 20:15:57 Jabo: yeah all good apps have already been made or really great apps would require me to quit my day-job*! Mar 27 20:16:02 ctate, Sevice#setForeground() was no-op'd in 5 and REMOVED in 11 Mar 27 20:16:04 or 12 Mar 27 20:16:05 or something Mar 27 20:16:05 blue_pearl: so does oyur app have black text on white or vice versa? Mar 27 20:16:10 I didn't think android had so many intricacies and functions/API stuff. Mar 27 20:17:06 wongk, ooh, now i see...its white on white ...how stupid of me ! Mar 27 20:17:14 i think grabbing my IMEI or MAC address should be the most serious permission Mar 27 20:17:21 even worse than like...FUCK YOUR SYSTEM SETTINGS Mar 27 20:17:44 blue_pearl: webview doesn't repect the theme, you can change the theme of the activity its on Mar 27 20:18:05 so for the dark theme you get white text on a white background Mar 27 20:18:37 luyang: i wouldn't mind having one of those really great ideas. spring break and summer is coming up soon so i've plenty of free time :P Mar 27 20:22:15 hey guys I am getting database not open IllegalStateException and not sure why. It happens when I open preferences change a value and then go back into the activity. The db is open during onCreate and closed in onDestroy. http://pastebin.com/Cz10MkXU Mar 27 20:23:57 cooldman224, include your stack Mar 27 20:24:30 and are you sure you've deployed your new code after commenting out closeDB in onPause Mar 27 20:25:40 pfn: http://pastebin.com/M0iY3XgH Mar 27 20:27:49 pfn: yes, it seems to only happens once and a while Mar 27 20:28:55 pfn: I think it happens when I go to the other tab and then come back to the Calc tab and change the preference Mar 27 20:29:29 pfn: so ondestroy isnt being called consistently Mar 27 20:29:39 * ctate points to the imgur link in the channel topic Mar 27 20:29:59 * SimonVT points ctate to the latest pastebin, and asks him to scroll down Mar 27 20:30:10 cooldman224: You cannot rely on onDestroy(). it is only called in certain narrow circumstances. Most of the time your process will be killed without it having been invoked. Mar 27 20:30:34 SimonVT: yes, but it's astonishing how many people didn't realize they'd been presented with the tip up front :) Mar 27 20:31:12 hehe Mar 27 20:31:26 topics are mostly ignored Mar 27 20:31:31 why not validate that your DB is open before calling database.doStuff()? Mar 27 20:31:37 topics rarely change :P Mar 27 20:32:08 QubeZ: better to get your logic right up front :) Mar 27 20:32:39 cooldman224, your stack trace indicates it's being called in onpreferencechanged Mar 27 20:32:50 or just open the DB in onResume() if it is closed Mar 27 20:32:50 that could easily occur after your activity has been destroyed Mar 27 20:33:16 e.g. switch to your preference activity Mar 27 20:33:21 ctate: yes I see this now. If I dont close the DB android will complain that I never close it but my app wont crash Mar 27 20:33:26 force your app to gc Mar 27 20:33:33 change a preference Mar 27 20:33:38 => database not open Mar 27 20:33:55 cooldman224, see above Mar 27 20:34:10 i read about using a singleton so you always have an open reference to your DB... never quite got around to implementing that Mar 27 20:34:15 pfn: in the onResume? Mar 27 20:34:34 the problem isn't onresume Mar 27 20:34:40 this is happening while your activity is not foreground Mar 27 20:35:51 pfn: I see but I still confused Mar 27 20:36:39 what's to be confused about Mar 27 20:36:44 you changed a preference in another activity Mar 27 20:36:51 that triggered your onsharedpref listener Mar 27 20:36:56 in an activity that was destroyed Mar 27 20:37:36 pfn: ah ok Mar 27 20:37:52 although, I'm a bit confused by the lifecycle of sharedpreferences in this case Mar 27 20:37:57 I would have figured that prefs would get gc'd Mar 27 20:38:02 and your listener should never be called Mar 27 20:38:03 * pfn shrugs Mar 27 20:38:47 pfn: so how do I keep the db open? Mar 27 20:38:54 I believe SharedPreferences is basically a singleton Mar 27 20:39:15 I guess it is a singleton per-context/app Mar 27 20:39:49 apps run in their own jvms right Mar 27 20:39:55 luyang, dalvikvm, yes Mar 27 20:39:59 mm Mar 27 20:40:17 cooldman224, open the db in validateInfo Mar 27 20:40:18 close it when done Mar 27 20:41:28 Yep, SharedPreferences are cached in a static final HashMap Mar 27 20:41:33 pfn: Im pretty sure I already tried that, but I will try again Mar 27 20:45:00 pfn: Yeah still crashes with same exception Mar 27 20:45:11 then you didn't open the database in validateInfo Mar 27 20:45:15 you're running stale code Mar 27 20:45:28 cooldman224: post your new code Mar 27 20:48:24 If I just wanna read some Android app code before I go to sleep… Where should I go? Google Code? Github? SourceForge...? Mar 27 20:48:52 guys, how to import a project to my eclipse when the new android project -> use source or the actuall import doesnt work, im trying to import this code, but eclipse refuses to accept it http://code.google.com/p/android-obd-reader/source/checkout Mar 27 20:49:17 ive done about 20 imports like that, only this one refuses Mar 27 20:49:58 pfn: http://pastebin.com/4VrXw5S2 Mar 27 20:50:19 luyang: github or google code Mar 27 20:50:50 cooldman224: google code Mar 27 20:50:53 Motafoca: are you importing it as a maven project? Mar 27 20:51:07 Motafoca: he answered me Mar 27 20:51:21 luyang: maven? Mar 27 20:51:32 yes Mar 27 20:51:35 it has a pom.xml Mar 27 20:51:37 whats that Mar 27 20:51:39 lol Mar 27 20:51:49 sorry my ignorance Mar 27 20:51:51 how to do that? Mar 27 20:52:04 Try Import… Existing Maven Project Mar 27 20:52:17 Do you import via git command line? Mar 27 20:52:24 I mean clone via command line? Mar 27 20:52:51 yes Mar 27 20:52:57 git clone https://....... Mar 27 20:52:59 Then import it into Eclipse Mar 27 20:53:07 Import … Existing Maven project Mar 27 20:53:08 try that Mar 27 20:53:17 luyang: i dont have that, guess i have to install the maven Mar 27 20:54:03 yeah… should be no biggie Mar 27 20:54:31 I think the plugin is called m2e or m2eclipse Mar 27 20:58:52 How can I detect the view that I'm currently "touching" via the onTouchEvent()? I'm using a canvas and need to know when I'm actually dragging over a certain part of it Mar 27 21:00:30 Should I just compare the x/y versus the bounds of the item? Mar 27 21:00:38 luyang: thanks Mar 27 21:03:55 Should I have two almost identical layouts, one where I have an ImageView and one where it isn't, or should I have ImageView#visibility=GONE when I'm not using it? Mar 27 21:04:26 depends when you want the imageview to show up Mar 27 21:05:22 if it can be quantified using the built in folder name (-land etc) then probably Mar 27 21:05:35 otherwise set its visibility to gone Mar 27 21:07:58 I can just change the visibility as I'm inflating it. Some views will just have nothing to show for in ImageView. What do you mean by quantified with the built in folder names (layout-land and layout-xlarge and etc)? Having the same name but different layout in each folder? Mar 27 21:10:29 what are the conditions under which you don't want to show the imageview? Mar 27 21:10:53 I'm inflating it in a list, but some of the items won't have images. Mar 27 21:15:20 Hi there, what's the best way to create a dialog as seen in the google maps application (on tablets) when the user clicks a point on a map? Mar 27 21:17:12 I've got a BroadcastReceiver in my app. When it receives a Broadcast intent, my app may or may not be actually running. How can I tell from within the BroadcastReceiver if the app is running, and if so, is there a good way of then getting state information from the activity/service? Mar 27 21:17:41 ziroday: the dialog menu that shows up on the lefthand topside part of the screen? That says "What's nearby" and other such stuff? Mar 27 21:17:50 shoerain: aye Mar 27 21:18:02 shoerain: it doesn't look like a custom dialog though... Mar 27 21:18:04 I thought about having a static method of the BroadcastReceiver that the Activity can register itself with onStart() and unregister with onDestroy(). Mar 27 21:18:56 ziroday: I wouldn't know, just verifying that you're talking about that Mar 27 21:19:25 you can see it here http://bestandroidtabletreviews.net/wp-content/uploads/2011/09/Android-tablet-maps-application1.jpg Mar 27 21:19:32 when you receive a broadcast intent, your app is *BY DEFINITION* running. Mar 27 21:19:48 it's just that no particular Activity or Service within your app is necessarily running. Mar 27 21:19:54 Activity != application. Mar 27 21:20:00 LIES Mar 27 21:20:17 if ctate == evancharlton then Activity == Application Mar 27 21:20:41 don't make me turn this channel around and drive straight back home, canadiancow|work Mar 27 21:20:48 :D Mar 27 21:20:56 ctate: Sorry, yes I understand that, I was mixing my terminology. My question is then, how can I tell if the activity is running? Mar 27 21:21:39 ejcweb: let me ask a leading question Mar 27 21:21:54 if your app is *not* currently running in the foreground, is it important that you take action on this broadcast? Mar 27 21:23:20 ctate: Yes. I need to take action to say my actvitiy is not running. The broadcast intent is essentially asking for a status update from a collection of apps, and the fact that the activity of an app isn't running is something that I need to know. Mar 27 21:23:44 that's ... kind of convoluted. :) Mar 27 21:23:59 The BroadcastReceiver will then log some information about the state of the app and activity to a log. Mar 27 21:24:25 ctate: Sure. My use case is kind of convoluted. Mar 27 21:24:25 you should associate the relevant bookkeeping with something other than Activity instances Mar 27 21:24:35 use static objects or whatever Mar 27 21:24:50 which are of course shared with any activities, broadcast receivers, etc that run in the same app process Mar 27 21:25:29 then your receiver won't need to depend on actual Activity instances or such -- remember that Activity instances are ephemeral, liable to be stopped or outright destroyed etc at various times Mar 27 21:25:42 ctate: Ok, so whenever the activity is running, the static object will exist in memory? Mar 27 21:25:50 yes Mar 27 21:25:51 In fact, that must be the case I'm sure. Mar 27 21:25:54 :) Mar 27 21:26:08 whenever ANYTHING in your app is running, the statics will exist in memory Mar 27 21:26:14 again, by definition :) Mar 27 21:26:18 Thanks - I think this was just helping me clear this up in my mind. :) Mar 27 21:26:50 it is important to eventually get your head around the reality that lots of stuff shares the same Dalvik VM environment Mar 27 21:27:03 activity instances, service instances, broadcast receiver instances, etc Mar 27 21:27:06 indeed Mar 27 21:27:08 all fo these things added together are your pap Mar 27 21:27:11 are your *APP* Mar 27 21:28:24 the joys of operating in a vm environment Mar 27 21:28:42 should i go to the MS WPC? Mar 27 21:29:02 it's in toronto :3 Mar 27 21:29:45 doit Mar 27 21:37:12 Hey everyone, I have an issue that I'm hoping someone can help me out with. I created a set of themes for the app Go SMS Pro this past week. I recently received an email from Google Play saying that one or more of my apps have been flagged as spam. I've looked at their spam policy and it does indeed state that you shouldn't post repetitive content. Anyone have an ideas on how to resolve this issue? Thanks! Mar 27 21:37:23 Oh and here's a link to my apps on Google Play: https://play.google.com/store/apps/developer?id=Suddenly+Smooth+Designs#?t=W251bGwsbnVsbCxudWxsLDEsImNvbS5qYi5nb3Ntcy5wY3RoZW1lLnNzZC5ibGFja2FuZGJsdWUiXQ.. Mar 27 21:38:03 1695 WPC early bird pricing...now THAT'S how you run a conference! Mar 27 21:38:46 Steve-G: create one app and use in-app billing to sell the different colors? Mar 27 21:39:57 evancharlton +1 Mar 27 21:40:17 Steve-G: bonus: you'll consolidate all of your positive feedback into one app which ranks higher overall Mar 27 21:40:45 Or all the crappy feedback Mar 27 21:40:56 well ideally you won't have crappy feedback Mar 27 21:41:06 That's true. But unfortunately I used the Go Dev Team's theme maker which compiles everything for you in an apk and I'm not talented enough to figure out how I'd add the in-billing permissions, etc. Aka I'm a noob. Mar 27 21:41:29 Steve-G, yeah, in app purchases with unlockable content Mar 27 21:41:41 oh dear... Mar 27 21:41:54 Steve-G: ah, bummer :-/ Email the Go Dev Team and tell them to get their stuff together :) Mar 27 21:41:58 but yeah, use the app store's asset apk feature Mar 27 21:42:07 plus in-app purchasing for downloading and applying Mar 27 21:42:15 Yeah. I have eclipse and the Android plug in but I haven't had the time to play around with it (college is stupid like that) Mar 27 21:42:35 you've managed to sell a bunch of apps without knowing wtf is going on? nice Mar 27 21:42:57 does anyone here send emails from their app without user interaction? curious what lib you use to do that. Mar 27 21:43:02 oh, theme packs for go sms? Mar 27 21:43:09 i want to send error logs that the user initiates but doesn't need further user interaction Mar 27 21:43:17 so it's just theme packs... that's kind of sucky Mar 27 21:43:17 Yeah they're just themes lol Mar 27 21:43:28 you have no control over IAP or asset apks then Mar 27 21:43:42 well, I suppose you could create a single app for purchasing your themes Mar 27 21:44:16 Yeah. I've emailed Google back and they said, "We appreciate the feedback regarding Google Play Policies and Guidelines. At this time, we are unable to comment on the compliance of your planned implementation." Mar 27 21:44:22 dunno how you'd expose the theme to go sms though Mar 27 21:44:53 Yeah. I mean if you look at the link, they're all named "Go SMS Theme - Smooth [color]". Maybe I should just change up their names? Mar 27 21:49:04 Would it really be too hard for them to simply tell me what's causing them to be flagged as "spam" so I know what it is I need to change? That's just what's gotten me ticked. To add to it all, I don't think it'll notify me if I resolve the problem before my 7 days (now 5) have expired. So basically the only way I'll know if they have been "unflagged" is if they're still there in 5 days. Ridiculous. Mar 27 21:51:41 pfn: did you take a look at the new version of my code? Mar 27 21:55:27 How can I force a dialog to display somewhere other than the middle of the screen? And is it possible to not block the UI elements behind it? Mar 27 22:06:46 are there any tricks to speed up the device emulator ? it is painfully slow Mar 27 22:07:09 rvsjoen: you could try android-x86 in virtualbox, see if it works for you Mar 27 22:07:34 I've been wanting to hear someone try that shit... or you could use the intel haxm + some android image for x86 Mar 27 22:07:45 I'm writing to a file with an InputFileStream and writing with an output stream Mar 27 22:07:56 Whatever I read has null at the very front Mar 27 22:08:08 followed by what i have output Mar 27 22:08:44 Like this: http://dl.dropbox.com/u/3270519/log.txt Mar 27 22:09:04 Does anyone know why it's doing that or how to fix it? Mar 27 22:10:21 cr5315: looks like stringification of the null value... probably bad log format or something Mar 27 22:10:40 Oh, that's probably it. The string I use to log is just String log; Mar 27 22:11:02 I opened the file I'm reading in DDMS and it didn't have the null at the front Mar 27 22:11:15 has the way menu's are created changed for the galaxy nexus ? Mar 27 22:11:56 I use the normal way (I suppose), and I don't see how to access it Mar 27 22:12:18 Android 4.0 Menus: http://developer.android.com/guide/topics/ui/actionbar.html Mar 27 22:12:26 ty Mar 27 22:17:00 I am trying to the code getLoaderManager().initLoader(0, null, this); Mar 27 22:17:35 How do I get javax to work with android? Mar 27 22:18:23 getLoaderManager() is enabled when I add the SDK compatibility pack? Mar 27 22:18:32 I am targeting 7 Mar 27 22:19:13 cooldman224, no, I didn't have time to Mar 27 22:20:13 I followed the instructions for addking the compatibiliyt JAR yet getLoaderManager() is still undefined Mar 27 22:21:22 If this is in FragmentActivity, you need to use getSupport... Mar 27 22:22:01 (protip: java docs for the support classes are available on the developer site) Mar 27 22:27:23 hi all, i need to post an image to a webservice in java, i'm a bit of a newb at posting from java. https://gist.github.com/2220291 are the instructions, can anyone help guide me through this process. im not sure how to set the uploaded_data variable to an image Mar 27 22:27:32 maybe android has a class for this? Mar 27 22:27:37 I'm trying to embed javax packages into my project following http://code.google.com/p/dalvik/wiki/JavaxPackages. When customizing the build.xml the document refers to modifiying the rules in /platforms//templates/android_rules.xml. This file does not exist. What do I do? Mar 27 22:27:55 hello Mar 27 22:36:32 What directory is the build file located for android projects? Mar 27 22:36:48 in eclipse? Mar 27 22:37:42 cr5315: Yes. Mar 27 22:38:00 It's in the bin folder in your project files Mar 27 22:38:36 There is none located there. So if I add one in there Eclipse should recognise it. Mar 27 22:38:58 I think if you debug/run your app eclipse will put on there Mar 27 22:39:20 I can't run it, since it contains errors. Mar 27 22:39:27 Fix the errors? Mar 27 22:39:50 is it possible to use fragments together with a tabhost ? Mar 27 22:40:48 cr5315: In order to fix the errors I need to somehow link in a jar file containing the javax.* stuff. Mar 27 22:41:05 And the tutorial (http://code.google.com/p/dalvik/wiki/JavaxPackages) requires me to play around with the build file. Mar 27 22:41:12 Do you the .jar? Mar 27 22:42:00 ? Mar 27 22:42:18 You need to link a .jar file, yes? Mar 27 22:42:48 how do people usually handle sending error logs? Right now Im using an email intent but the user has to click "send", is there a way to make it interactiveless? Mar 27 22:43:05 Yes. Mar 27 22:43:37 Do you have the .jar file you need to link? Mar 27 22:45:28 QubeZ, just use acra and bugsense and similar things Mar 27 22:46:21 pfn: this isn't a normal error log, its more like if the user clicks Map and it gives the user a user-friendly message, I want them to be able to send the details of their session so I can troubleshoot why its not mapping. Mar 27 22:47:04 so its not a typical error in the sense its an app error, its more of the environment. For example, there is a user in Germany stating in To Do Mapr, he's able to locate all of the places and add as task but when he hits Map, it wont map Mar 27 22:47:33 cr5315: I used jarfinder.com to locate one. Mar 27 22:48:01 pfn: mean while, its working for other users in Germany... so its not a global issue. Just curious as to his environment, i want to be able to pull that (send it via email) Mar 27 22:48:06 QubeZ, I would use my own webservice Mar 27 22:48:17 Alright, it's getting crowded in here, I suggest we finish this in a PM Mar 27 22:48:23 barq, ^ Mar 27 22:48:30 ok Mar 27 22:48:51 pfn: hmm but in the interim, do you think from a user perspective they would be fine sending it via email? Mar 27 22:49:06 i start the intent and they choose Gmail... I fill in all of the subject, body etc.. they just hit Send. Mar 27 22:49:26 its awkward but web service isnt' up yet and while I am getting new users and establishing that user base, I want to keep them happy Mar 27 22:50:48 QubeZ, it's awkward to send it via email Mar 27 22:50:57 QubeZ, setting up a very simple webservice is easy Mar 27 22:59:39 What alternative would you suggest using to java.util.ArrayDeque? Mar 27 22:59:51 to do what? Mar 27 22:59:55 doot Mar 27 23:00:12 voipandroid.com coming soon!@ Mar 27 23:00:16 To port my java project to android. Mar 27 23:00:52 arraydeque is available in android Mar 27 23:01:25 pfn: How come I get The import java.util.ArrayDeque cannot be resolved then? Mar 27 23:01:38 well, I guess since froyo+ at least Mar 27 23:01:39 or gb+ Mar 27 23:01:47 barq, target api8 or 9 and higher will have it Mar 27 23:02:13 Thanks. Mar 27 23:03:39 but if you're targeting older android versions as well, you'll want to use something else Mar 27 23:03:51 in any case, a LinkedList or ArrayList substitutes well Mar 27 23:04:51 I have a couple of javax classes, which are unsupported by android. I want to add them to the project as a jar. What's the best way of obstaining this jar file? I used jarfinder.com, but the jar file I found only supports part of the needed classes. Mar 27 23:07:44 what javax classes do you need specifically Mar 27 23:10:32 pfn: javax.tools.JavaCompiler, javax.tools.ToolProvider, javax.tools.SimpleJavaFileObject, javax.tools.JavaFileObject.Kind Mar 27 23:10:49 none of those will be available on android Mar 27 23:11:06 I know, that's why I want to add them to the project as jars. Mar 27 23:11:22 it would be in tools.jar Mar 27 23:11:37 Where do I get that? Mar 27 23:11:39 what kind of app are you porting, this is mostly going to be unusable on android Mar 27 23:11:42 in the jdk Mar 27 23:12:04 Why would it be unusable if the binaries are linked? Mar 27 23:12:28 actually, JavaCompiler will be in rt.jar Mar 27 23:12:52 why, because those are just the jsr199 interfaces Mar 27 23:13:08 the implementation is not there Mar 27 23:13:50 According to http://code.google.com/p/dalvik/wiki/JavaxPackages it should be possible. Mar 27 23:14:32 if it doesn't speciically name jsr199, then it is unlikely to be possible Mar 27 23:15:52 [19:03:52] in any case, a LinkedList or ArrayList substitutes well Mar 27 23:15:55 i swear to god Mar 27 23:15:59 every interview ive had Mar 27 23:16:04 "what's the difference between..." Mar 27 23:16:40 Where can I reliably download the rt and tools.jar Mar 27 23:16:48 jarfinder doesn't have them. Mar 27 23:16:50 they're in your jdk Mar 27 23:17:39 canadiancow|work: an apple and an orange? Mar 27 23:17:57 canadiancow|work: do people actually ask "whats the difference between a linkedlist and an arraylist?" Mar 27 23:18:15 yes lov Mar 27 23:18:29 Can't find them. Mar 27 23:18:57 BACK IN MY DAY, WE HAD ARRAYS THAT RAN MULTIPLE DIMENSIONS DEEP Mar 27 23:18:57 keep looking Mar 27 23:19:00 i was asked "so how would you implement the add(Object) operation of an arraylist" Mar 27 23:19:03 NONE OF THIS FANCE PROPERTY HIERARCHY STUFF Mar 27 23:19:08 THATS THE WAY IT WAS AND WE LIKED IT Mar 27 23:19:10 root66: the war's over grandpa. Mar 27 23:19:15 windows won. Mar 27 23:19:19 is this correct code for uploading an image? https://gist.github.com/2221393 Mar 27 23:19:27 :( Mar 27 23:19:31 DAG GUMMIT Mar 27 23:19:46 dandaman: consider using a Uri builder. Mar 27 23:20:12 lov: can you point in the right direction, ive wasted like 2 hours trying to figure this out :( Mar 27 23:21:50 has someone built a fuse fs for accessing a rooted device via adb, or something of the like, so i can mount my device from / on my linux system? Mar 27 23:24:33 Hey guys, is there any value that's LESS than to for BitMapFactory.Options.inSampleSize for subsampling Bitmaps? Mar 27 23:24:46 Setting it to 2 degrades my images too much, but I don't think there's a value I can use that's any smaller than that. Mar 27 23:24:50 Does that question make sense? Mar 27 23:25:44 does it pixelate the image or what does it do? Mar 27 23:27:54 alankila: Yeah, it just looks a bit too fuzzy. Mar 27 23:28:00 But I don't think there's a value that's < 2. Mar 27 23:28:06 It's not very clear based on the documentation. Mar 27 23:28:15 hi can you explain how S-ON is exactly implemented? is it a magical hardware guard or is it simply mounting the partitions as ro during system boot? if it is the latter how could it be hard to defeat? and if it is the former how does this magic work? Mar 27 23:28:27 yeah I imagine it's full pixels, so you can have maximum sampling at 1, or half sampling at 2, and so one. Mar 27 23:28:38 Why can't I do something inbetween those values? Mar 27 23:30:40 because you can't split pixels apart in any sensible way. Mar 27 23:32:00 any idea? Mar 27 23:32:01 I see what this does. It actually throws away image data. Mar 27 23:32:25 inSampleSize=2 => halved dimensions for the decoding in X and Y, quarter of memory used Mar 27 23:33:36 It is a form of image scaling, probably quite fast and memory efficient. Sure, I suppose it could support fractional sampling or stuff but this was probably easiest to do Mar 27 23:37:01 In using ACRA, anyone try out the ErrorReporter.getInstance().handleSilentException(caughtException); method? Mar 27 23:39:06 When my BroadcastReceiver gets an intent, how can I call a public method of a running activity in my app? Mar 27 23:39:15 Or send an intent to the activity or something? Mar 27 23:39:26 ejcweb, send another broadcast that your activity can receive Mar 27 23:39:35 alternatively, just register the broadcast receiver from your activity Mar 27 23:39:41 pfn: Sure, I wondered if there was a nicer way but I guess that makes sense. Mar 27 23:39:41 why do you need a separate manifest receiver? Mar 27 23:40:00 Yeah, I need to have it separate, to allow me to receive the broadcast when the activity isn't running. Mar 27 23:40:06 if your broadcast receiver doesn't need to be running when your UI is not present, don't use a manifest receiver Mar 27 23:40:21 isn't ActionBar part of the compatibility package ? Mar 27 23:40:27 rvsjoen, no Mar 27 23:46:05 hi - i am trying to package some of my existing python code into an android app Mar 27 23:46:26 for that i tried using jython - which is available as jython.jar Mar 27 23:47:04 i wrote and tested a java class (from command line) that calls my python using jython interpreter. it works fine Mar 27 23:47:22 when i try to include in an android app - i get an error during post compile: Mar 27 23:48:01 http://pastebin.com/XKNTDzhq Mar 27 23:48:50 any ideas how to let "dex" permit the jar file in - i didnt write jython - and am pretty sure the given part wont be hit Mar 27 23:49:13 in any case ideas will be appreciate - just understanding the problem would be great Mar 27 23:49:23 again : http://pastebin.com/XKNTDzhq Mar 27 23:54:11 Hey guys, is there any value that's LESS than to for BitMapFactory.Options.inSampleSize for subsampling Bitmaps? Mar 27 23:54:17 Like, a value between 1 and 2? Mar 27 23:54:26 Doesn't look like it from the documentation, but 2 is too high a value for me. Mar 27 23:54:50 Android SDL or libgdx? which one to use for a game? former I think? :) Mar 27 23:55:01 vpathak, dex doesn't work with all input classes Mar 27 23:55:10 vpathak, remove the offending class Mar 27 23:55:22 com.ziclix.python.sql.handler.OracleDataHandler Mar 27 23:55:53 http://www.theverge.com/2012/3/27/2905728/ipad-still-beats-android-tablets-by-default-pc-magazine-illustrates Mar 27 23:56:05 wtf is "beating by default" Mar 27 23:56:08 yes that is a way - is there a way to ask dex to ignore the error Mar 27 23:56:15 hi g00s o/ Mar 27 23:56:17 " He points out that it's not entirely Google's fault — the tools exist to make stellar tablet apps, but Android developers frequently take the easy way out by letting the platform's in-built resolution independence simply scale up their existing phone apps." Mar 27 23:56:34 but i still think its too much a pita Mar 27 23:56:44 but g00s is below average intelligence, so .... Mar 27 23:56:44 g00s > which 2D android lib would you use for an Android game? :) Mar 27 23:56:51 * hackkitten thinks that g00s is very smart~ Mar 27 23:56:55 * hackkitten nods sagely Mar 27 23:56:57 hackkitten: no idea, i know 0 about games Mar 27 23:57:07 hackkitten: maybe Drakonite knows Mar 27 23:57:11 :) Mar 27 23:57:25 * hackkitten is thinking of switching from AndEngine to libSDL or gdx Mar 27 23:57:26 sdl is good if you're already familiar with it, would be my guess Mar 27 23:57:33 the other part of the equation, is that many people i know don't even feel android tablet specific work makes any sense Mar 27 23:57:36 pfn, is there a way to ask dex to ignore the error Mar 27 23:57:39 well, besides pen of course Mar 27 23:57:42 *pfn Mar 27 23:57:43 I first used SDL on PC back in the late 90s Mar 27 23:57:44 whosajiggawha? Mar 27 23:57:56 hi Drakonite :) Mar 27 23:57:59 vpathak, no, filter out the class Mar 27 23:58:04 vpathak, from the jar Mar 27 23:58:06 * hackkitten points at the question above Mar 27 23:58:28 pfn , ok - but what is dex - and what does it do? do you know Mar 27 23:58:40 hackkitten: meow meow! Mar 27 23:58:45 :3 Mar 27 23:59:01 vpathak, it converts java classes in dalvik bytecode Mar 27 23:59:03 s/in/into Mar 27 23:59:06 g00s > which 2D android lib would you use for an Android game? :) Mar 27 23:59:07 that one? Mar 27 23:59:11 ah - i see Mar 27 23:59:14 thanks pfn Mar 27 23:59:21 Drakonite > yup Mar 28 00:00:10 hmm... depends what your needs are really Mar 28 00:00:29 simple 2D arcade game Mar 28 00:00:45 well, yeah, but... Mar 28 00:01:00 SDL does audio and input as well as graphics Mar 28 00:01:06 eww, SDL Mar 28 00:01:10 gdx is just graphics Mar 28 00:01:20 Drakonite: check this out http://www.theverge.com/2012/3/27/2906809/beatsurfing-ipad-app-midi-instrument-controller Mar 28 00:01:35 libgdx is pretty decent graphics lib from what I saw Mar 28 00:01:45 yup, it is Mar 28 00:01:49 cocos2d-x is the one I'm going to be investigating using for a project later this week Mar 28 00:01:55 hackkitten: have you checked out andengine? Mar 28 00:02:08 ozo > that's the engine I'm about to abandon Mar 28 00:02:13 I'm looking a lot at crossplatform stuff personally Mar 28 00:02:19 hackkitten: why? Mar 28 00:02:21 * hackkitten spent months on trying to make AndEngine work Mar 28 00:02:31 it has so many issues Mar 28 00:02:38 mostly due to the unstable codebase Mar 28 00:02:52 I guess I could revert to the GL ES 1 version Mar 28 00:03:06 but I had major issues with it too Mar 28 00:03:14 it seems exceedingly buggty Mar 28 00:03:17 ouch, haven't really tried it myself. but we are about to start a project with it soon Mar 28 00:03:17 buggy* Mar 28 00:03:23 good luck Mar 28 00:03:25 there are no docs Mar 28 00:03:26 cocos2d-x is free and should be decent. corona looks relatively nice if it's the right type of thing for you (it's basically a lua VM or such) Mar 28 00:03:31 and any tutorials you find are outdated Mar 28 00:03:33 or wrong Mar 28 00:03:34 :) Mar 28 00:03:39 hehe, sounds like fun Mar 28 00:03:44 reading the AE source is a requirement Mar 28 00:03:44 for some reason i thought canadiancow|work used andengine Mar 28 00:03:49 yup Mar 28 00:04:20 at this point I can not run the GLES2 branch because of some error preventing it from loading the andengine.so lib on my phone Mar 28 00:04:24 g00s i do Mar 28 00:04:37 * g00s has the memory of an elephant Mar 28 00:04:42 :) Mar 28 00:04:42 XD Mar 28 00:04:44 hackkitten do other native libs work? Mar 28 00:04:55 gah, really hope we can make it run nicely for our small project Mar 28 00:05:02 canadiancow|work > yup, and GLES1 has no issues either Mar 28 00:05:30 GLES2 just gets me SO load failures, handler looper errors and black screens Mar 28 00:06:03 so ? Mar 28 00:06:08 hackkitten what phone? Mar 28 00:06:10 so = ? i mean Mar 28 00:06:18 Huawei U8800 IDEOS X5 Mar 28 00:06:37 same chipset as the Nexus Mar 28 00:06:42 "some error"? what's the error? Mar 28 00:07:25 ctate > bug #32 on github, IIRC Mar 28 00:07:35 native lib fails to load on some phones Mar 28 00:07:46 supposedly a fix was added recently Mar 28 00:07:52 doesn't seem to work for me Mar 28 00:08:54 its not a fix so much as making the native lib optional where possible Mar 28 00:08:58 which is everywhere except 2.2 Mar 28 00:09:10 well, that's the problem then Mar 28 00:09:31 so I either get to revert to GLES1 or try another lib... Mar 28 00:10:23 or you let me look into this issue Mar 28 00:10:31 and by "look into this issue" i mean bug nico ;) Mar 28 00:10:32 or that :) Mar 28 00:10:49 it seems weird that a native lib fails to load on only some devices Mar 28 00:11:07 is there a known issue with that and why? Mar 28 00:11:27 https://github.com/nicolasgramlich/AndEngine/issues/32 Mar 28 00:11:28 that bug Mar 28 00:11:31 I'm seeing a few random reports of failure to load a native lib on a game I released Mar 28 00:11:39 not with andengine though Mar 28 00:11:57 Drakonite > which engine do you use? gdx? Mar 28 00:12:06 it was with Unity3d Mar 28 00:12:16 ah Mar 28 00:12:28 hackkitten: what is the exception you see? Mar 28 00:12:36 * canadiancow|work is good at bugging people Mar 28 00:13:05 i'm trying to add ActionBarSherlock as a library dependency, after I create a new project with the ActionBarSherlock source and set it as a library dependency in my project, the build says "Jar mismatch! Fix your dependencies" and whines about android-support-v4.jar in my project and ABS not being the same SHA1 Mar 28 00:13:06 03-28 01:51:45.403: E/AndroidRuntime(30239): java.lang.ExceptionInInitializerError Mar 28 00:13:09 java.lang.UnsatisfiedLinkError or java.lang.ExceptionInInitializerError Mar 28 00:13:29 followed by the former, unsatisfiedlinkerror Mar 28 00:13:32 you are on the latest GLES2, right? Mar 28 00:13:36 yup Mar 28 00:13:40 synced yesterday Mar 28 00:13:46 Ah, I just ran into this ... http://stackoverflow.com/questions/6168841/unable-to-resolve-super-class Mar 28 00:14:07 also, I have to set target level 15 in order to build my project with ABS, and then I can't run my project on my galaxy tab due to it being version 3.2 Mar 28 00:14:12 is there a way around that ? Mar 28 00:14:15 Finally we have somebody that can reproduce that error, live....! Mar 28 00:14:23 yay~ Mar 28 00:14:25 * hackkitten is overjoyed Mar 28 00:14:26 NicolasGramlich: Good work on cleaning up those SVG artifacts in AndEngine...not sure exactly when in the past few months it happened Mar 28 00:14:48 Ologn: hugh what did I do? Mar 28 00:15:07 hackkitten: We've been fixing stuff around this 'into the blue'.... Mar 28 00:15:12 rvsjoen: what did you set for minSdkVersion? Mar 28 00:15:15 * hackkitten nods Mar 28 00:15:36 in my project it is set to 10 Mar 28 00:15:38 ctate: +1 Mar 28 00:15:42 hackkitten: What Android version is that thing running with? Mar 28 00:15:48 Ologn: People were complaining how svg in andengine had artifacts...and it did, in mid-2011, but the latest code has it all cleaned up Mar 28 00:15:56 NicolasGramlich > 2.2.1 Mar 28 00:16:03 there we got the problem. Mar 28 00:16:24 pfn: not sure if you're still around but looks like ACRA will allow me to push error report even when there is no real exception. I am going to use that. Mar 28 00:16:32 rvsjoen: huh. i'd think that should work on Honeycomb, then. What happens when you try? Mar 28 00:16:48 QubeZ, indeed Mar 28 00:16:58 hackkitten: there are two GLES2 bindings missing in Android 2.2.X. Mar 28 00:17:00 thanks, ya that email idea was horrid Mar 28 00:17:01 hehe Mar 28 00:17:02 ( /** Android issue 8931. */ ) Mar 28 00:17:03 right now I can't even try because I get these http://dpaste.com/722493/ but when I did try, it said there were no compatible devices Mar 28 00:17:25 hackkitten, any interest in selling your phone? Mar 28 00:17:35 canadiancow|work > for the right price :) Mar 28 00:17:45 hackkitten: and if the device ALSO fails to load the tiny-custom-native-lib workaround -> BOOM! Mar 28 00:17:47 * hackkitten got it less than a year ago for deving Mar 28 00:18:09 hackkitten : System.loadLibrary("andengine"); Mar 28 00:18:10 NicolasGramlich > yup, noticed that Mar 28 00:18:16 this is the problem: Mar 28 00:18:53 I've heard rumors that putting the 'full path' instead of just the library name works better on selected devices. Mar 28 00:22:30 hackkitten: Do you have success with another System.loadLibrary("whatever"), or do they all fail? Mar 28 00:23:01 just yours NicolasGramlich Mar 28 00:23:03 :P Mar 28 00:23:06 o_O Mar 28 00:23:23 How do you load the others? Mar 28 00:23:27 GLES1 worked fine, other native libs work fine too Mar 28 00:23:36 (GLES1 had no native stuff) Mar 28 00:23:44 well there you go :) Mar 28 00:23:47 Why can't you use setText on a textview in a dialog box? Mar 28 00:24:16 * hackkitten her own JNI libs work fine too so far Mar 28 00:25:20 ok here we go Mar 28 00:25:29 in my project, Mar 28 00:25:31 * hackkitten goes to bed Mar 28 00:25:35 night Mar 28 00:25:48 when trying to launch it "Select a device compatible with Android 4.0.3" Mar 28 00:26:02 and naturally the balaxy tab with honeycomb is listed as invalid Mar 28 00:26:06 *galaxy Mar 28 00:27:32 Hey everybody. Is there a way to subsample a Bitmap by using an inSize value that's between 1 and 2 somehow? Mar 28 01:02:09 is there a sane way to tell if an entry of text is a location or address? Mar 28 01:02:52 there's probably something that textview uses Mar 28 01:03:27 there are names for places that have digits so its hard to tell if its a name or an address Mar 28 01:03:38 you mean check if a String contains a lat/lon pair ? Mar 28 01:04:41 xorgate: no, like if user enters "2nd avenue" vs "213 2nd avenue" Mar 28 01:04:45 name vs place Mar 28 01:04:56 maybe a bad example but you know what i mean, there are places that have digits Mar 28 01:05:22 well if you want that you're in for a long haul Mar 28 01:05:30 What's the beset way to save a setting so I can open it again? I've tried messing with SharedPreferences, but that never seemed to save for more than 15 minutes. Mar 28 01:05:45 addresses are *hard8 Mar 28 01:05:48 xorgate: hehe Mar 28 01:05:59 especially if you need to consider other countries Mar 28 01:06:02 * ctate | 2-10-1 Yurakucho, Chiyoda-ku, Tokyo Mar 28 01:06:04 ctate: right Mar 28 01:06:06 that's a street address! Mar 28 01:06:09 not a date! Mar 28 01:06:31 you could ask google maps Mar 28 01:06:49 I guess what I'll do is, if it contains digits I will 1) first do an address lookup, if failed, then I will just 2) do places API lookup Mar 28 01:06:55 cr5315 then you're doing it wrong, sharedpreferences is the thing to use Mar 28 01:07:05 found a bug in To Do Mapr and it was from a poor assumption on my part --- way back Mar 28 01:07:11 user in Canada submitted the bug Mar 28 01:07:15 I'll look at the stuff on d.android again Mar 28 01:07:17 fuck yeeeeaaaaah http://www.gizmag.com/free-universal-construction-kit/21909/ Mar 28 01:07:31 cr5315: yeah, you're doing something wrong with SharedPreferences. did you fix the thing i pointed out yesterday with your use of them in onCreate()? Mar 28 01:07:39 i always wanted to connect my degas to my Duplos Mar 28 01:07:40 I believe so Mar 28 01:07:43 *legos Mar 28 01:07:45 cr5315 basically get an Editor with .edit() and dont forget .commit() Mar 28 01:07:56 I had the commit but it wasn't working Mar 28 01:08:15 As soon as the app was killed by whatever, it would revert back to stock settings Mar 28 01:08:49 maybe you read the prefs wrongly Mar 28 01:09:34 something weird was definitely happening, cr5315 Mar 28 01:13:13 i mean, SharedPreferences are used all over; it's very unlikely that's where the problem is.... Mar 28 01:16:45 It seems to be working now Mar 28 01:16:54 I set my settings, killed the app, and it stuck this time Mar 28 01:17:15 Guys, how can I use a ViewPager with HUGE bitmaps? Mar 28 01:17:21 Besides subsampling. Mar 28 01:17:24 How would Google do it? Mar 28 01:22:50 how huge? Mar 28 01:22:59 please tell me you aren't inflating them larger than the screen Mar 28 01:23:03 at least not that. Mar 28 01:23:44 [21:22:50] <@ctate> how huge? Mar 28 01:23:49 oh ctate, always making me lol Mar 28 01:24:04 ctate: Exactly the screen size. Mar 28 01:24:19 They come from a REST endpoint. I pass the screen-size, and get an exact image back. Mar 28 01:24:29 But, I'm getting a lot of OOM Exceptions. Mar 28 01:24:44 I'm using unbindDrawables() and setting bitmaps = null, and bitmap.recycle. Mar 28 01:24:52 Doing all of that in the destroyView() method for hte ViewPager. Mar 28 01:24:58 Kinda out of ideas at this point. Mar 28 01:25:09 Besides subsampling, which ruins my quality. Mar 28 01:25:13 are protected classes public or private Mar 28 01:25:23 Jug6ernaut: Neither. Mar 28 01:25:40 they have to be one or the other lol Mar 28 01:25:48 They're public to the package in which they live, and private to everyone else. Mar 28 01:25:51 No, they don't. Mar 28 01:26:01 ctate: Any suggestions? (Please?) Mar 28 01:26:35 i did suggest the other day that you not use ViewPager (or copy out the bits you want) and only have one image in memory at a time Mar 28 01:26:53 soo. if i have a class foo() with a protected function when i make an instance of that class is the function visable? Mar 28 01:27:01 "visible"? Mar 28 01:27:27 "protected" means the compiler will allow the class itself to call the method, and allow subclasses of it to call it, but not allow external callers Mar 28 01:28:02 k awesome Mar 28 01:28:04 thx Mar 28 01:28:49 there is a school of thought that says that 'protected' generally means yor doin it rong :) Mar 28 01:29:01 :o Mar 28 01:29:06 well i dont doubt that hehe Mar 28 01:29:09 ctate: Is there another control I might use (instead of ViewPager), that allows me to load 1 at a time? Mar 28 01:29:18 Or am I writing something by hand with a gesture listener for the left-right swipe motions? Mar 28 01:29:38 Or, is there a way to make the ViewPager load only 1 at a time? Mar 28 01:29:46 (Without inheriting from it and modifying it...) Mar 28 01:31:59 Chronax: have you tried setOffscreenPageLimit(0) Mar 28 01:32:19 Yes. Mar 28 01:32:21 That loads 3 at a time. Mar 28 01:33:37 i wasn't thinking about inheriting etc; i was thinking in terms of "copy the code wholesale" :) Mar 28 01:33:56 Hrm... Mar 28 01:33:58 Interesting. Mar 28 01:34:10 (open source and all that!) Mar 28 01:34:35 So you're suggesting that I use the ViewPager code and re-write it to only load 1 at a time. Mar 28 01:34:43 i mean, the fundamental thing it does sort of requires having at least one image on each side be preloaded Mar 28 01:34:53 Yeah, that's what I thought. Mar 28 01:34:54 Ugh. Mar 28 01:34:54 to support the animation as you swipe across Mar 28 01:35:00 Yes. Mar 28 01:36:47 Chronax: i had a similar situation, n fragments using loaders in a ViewPager. i wanted the app to run on low end froyo phones like my droid-1, without having 3 loaders running Mar 28 01:37:06 ... just checked the code and yeah, the min is 1 offscreen Mar 28 01:37:14 i ultimately decided to use tabs instead - they were less cool, but with the way loaders worked, the hidden tabs cause the loaders to deactivate Mar 28 01:37:19 and there's a log when you try to set it lower Mar 28 01:37:36 there will always be 1 or 2 cached Mar 28 01:38:29 if there are n items, at position 0 there will be 1 cached, 0..n-1 2 cached, and n 1 cached Mar 28 01:38:56 ctate: Ick! Mar 28 01:39:00 So WTF do people do here? Mar 28 01:39:23 watch porn ... Mar 28 01:42:35 :( Mar 28 01:42:43 ctate: What would *you* do in this situation? Mar 28 01:42:48 Also: Do you know Adam Koch? Mar 28 01:48:57 Is there an easy way to view files in the internal memory? (the phone is rooted btw, but the data/ directory doesn't show any content in DDMS even so) Mar 28 01:49:06 Chronax: i bet JakeWharton would have some suggestions, maybe you can catch him when he is around Mar 28 01:49:41 g00s: Good thinking. Mar 28 01:49:49 Such a tricky issue. Mar 28 01:49:56 Sometimes I wish Android didn't suck so much. Mar 28 02:18:52 Anyone know why you can get an app to boot to a diffrent activity by adding an intent to androidmanifest.xml, and by editing the android:name to the activity you want but if you remove the old intent it will not show up on the emulator? Mar 28 02:19:27 the app that is Mar 28 02:22:04 JakeWharton: the new ABS 4.0.1 calls onCreateOptionsMenu() on my parent Activity every time i page from a fragment to a fragment. this is expected? Mar 28 02:23:33 i have a file upload feature in my app, that takes in a path to a file Mar 28 02:23:45 i want the user to be able to browse through their files for a picture to upload Mar 28 02:23:53 is there some native android thing i can use for this? Mar 28 02:23:58 or some code i can borrow? Mar 28 02:24:37 alexfu, is that causing problems? Mar 28 02:26:52 dandaman: use an intent for PICKing a file, sure you can find sample code for uploading a file Mar 28 02:26:56 canadiancow|work: some what yes. I have an action item in my action bar that animates when clicked. the problem occurs when i swipe to a different page while it is animating... onCreateOptionsMenu gets called again and redraws the action item on top of the animation action item. Mar 28 02:27:36 dandaman: just be sure to handle activitynotfoundexception if no pickers are installed Mar 28 02:27:41 how does it behave in 4.0's actionbar? Mar 28 02:27:54 canadiancow|work: I haven't tried 4.0 Mar 28 02:27:58 http://stackoverflow.com/questions/2034892/how-do-i-allow-a-user-to-browse-choose-a-file-for-my-app-use-in-android Mar 28 02:28:03 answer to that look good? Mar 28 02:28:19 well alexfu, id try that Mar 28 02:28:26 because it's only a bug if it behaves differently Mar 28 02:30:29 this is great http://www.youtube.com/watch?v=NSEd6O0bBFs&feature=youtu.be Mar 28 02:30:36 what is king on ? Mar 28 02:30:41 *going Mar 28 02:30:46 man Mar 28 02:31:07 There is something weeeeeiiiiiirddd going on... Mar 28 02:31:13 My loaders all got borked Mar 28 02:31:35 loaders and borkiness go hand in hand Mar 28 02:31:36 after onStartLoad() is called, cancelLoad() is called right after Mar 28 02:31:55 which makes my doInBackground do nothing since it's marked at cancelled Mar 28 02:32:00 g00s: incredible Mar 28 02:32:05 dandaman: looks good Mar 28 02:32:19 Comes hackbod who's an android dev team member Mar 28 02:32:20 Comes from? Mar 28 02:32:20 Comes from* Mar 28 02:32:49 AlCapwn: the only thing is, how do i get the path of the image that i select on the activity result? Mar 28 02:33:04 data.getExtras() Mar 28 02:33:08 Help I am trying to setup a Class that extends Application but I am getting ClassCastException. And I don't see anything wrong with my manifest! http://pastebin.com/8piy5mN3 Mar 28 02:33:47 cooldman224: stack trace would help Mar 28 02:34:01 dandaman: I can't remember off the top of head, I suspect it will be something like that Mar 28 02:34:01 I only used pickers for files Mar 28 02:34:05 readme: maybe if you looked at my code its there Mar 28 02:34:18 cooldman224: that's not a stack trace. that's the last line of a stack trace Mar 28 02:34:34 and it's not a class cast exception Mar 28 02:34:37 it says InstantiationException Mar 28 02:34:42 you probably didn't make it public Mar 28 02:35:13 class is public Mar 28 02:35:29 show us the class Mar 28 02:36:06 ok one sec Mar 28 02:36:32 canadiancow|work: so I suppose it is supposed to call onCreateOptionsMenu() every time. it does so in 4.0 Mar 28 02:36:38 opengl can be so cool and such a bitch Mar 28 02:37:10 it's not even opengl, it's just the math :) Mar 28 02:38:56 InstantiationException "Thrown when an application tries to create an instance of a class using the newInstance method in class Class, but the specified class object cannot be instantiated because it is an interface or is an abstract class. Mar 28 02:40:05 is the galaxy note causing headaches in terms of layouts ? Mar 28 02:40:19 readme: should be all you asked for maybe more http://pastebin.com/hABqQBmx Mar 28 02:40:45 cooldman224: you didn't include the whole class file Mar 28 02:40:49 the package name is crucial to this problem Mar 28 02:40:51 we need that Mar 28 02:41:04 g00s just ordered a ton of panda hybrids =) Mar 28 02:41:13 just copy + paste whole User.java Mar 28 02:41:26 mutant pandas with lasers fTW!!!! Mar 28 02:44:53 readme: try this http://pastebin.com/EdA19Sev Mar 28 02:48:22 hey AlCapwn getting the extras caused an exception Mar 28 02:48:23 cooldman224: Everything you have shown checks out fine. Mar 28 02:48:43 Tons of code left out though. Is there perhaps an overridden constructor that you didn't include? Mar 28 02:49:41 dandaman: check the documentation for the get content intent and stack overflow Mar 28 02:50:00 I don't know the specifics of the intent response Mar 28 02:50:15 data.getData.getPath() Mar 28 02:50:19 found it Mar 28 02:50:31 readme: my bad I thought it was classcastexception I think it was earlier and I fixed that I will try googling InstantiationException Mar 28 02:50:31 i swear, programming is more of a scavenger hunt than a project Mar 28 02:50:35 in which im finding nothing Mar 28 02:50:59 readme: I have a User constructor but it isn't used in my first activity Mar 28 02:51:07 cooldman224: the problem is probably in your User.java class. Mar 28 02:51:20 Did you override any constructors? Mar 28 02:51:26 also, try build clean Mar 28 02:52:59 readme: the only thing is that overriden is onCreate Mar 28 02:53:02 ok will try that Mar 28 02:53:23 by making my own similar class to yours, I am not able to reproduce your problem. Mar 28 02:53:43 I am able to get similar results when I override the constructor and cause an NPE in it, or declare it private. Mar 28 02:53:58 readme: override which constructor Mar 28 02:54:06 cooldman224: the default zero-argument constructor Mar 28 02:54:32 pasting the whole User.java file as it is might shed light on your problem Mar 28 02:55:29 readme: yes, I did override that constructor. that was the problem Mar 28 02:56:16 no applause required Mar 28 02:56:22 readme: so if I wanted to do User user = (User)getApplicationContext(); user = new User(blah, blah) I cant? Mar 28 02:56:54 I'm pretty sure the Application class is supposed to be only one instance. Mar 28 02:57:06 and that it gets instantiated by the framework Mar 28 02:57:13 readme: yeah seems about right, I am stupid Mar 28 02:57:32 live and learn Mar 28 02:57:35 AlCapwn: weird, when i getPath after using gallery to find hte picture, it gives me back something like this, /external/images/media/106 but if i use file manager, i get the whole file path and extension(which is what i need, its a completely different path too). Do you know how I do the same for gallery? Mar 28 02:58:07 readme: thanks for your help sorry I am still learning Mar 28 02:58:24 np, next time show all the code! Mar 28 02:58:29 dandaman: you might need to use content revolver for that Mar 28 02:58:47 content revolver? Mar 28 02:58:58 dandaman: that's a guess, not trying to be unhelpful , I just don't know Mar 28 02:59:07 oh ok Mar 28 02:59:22 Yes, CR is used for certain things Mar 28 02:59:43 readme: well I didnt think some of it mattered! next time.... Mar 28 02:59:48 dandaman: I'd suggest more searching on stack overflow, bound to have something there re gallery **** ENDING LOGGING AT Wed Mar 28 02:59:58 2012