**** BEGIN LOGGING AT Fri Jun 01 02:59:58 2012 Jun 01 03:00:12 i know, right? Jun 01 03:04:16 hm, so there are now a couple of intel android phones Jun 01 03:04:30 Orange San Diego Jun 01 03:05:35 it would be nice if google explained more on how they plan on converging android and chrome os Jun 01 03:05:58 you're assuming that they will? Jun 01 03:06:04 lov: it was stated Jun 01 03:06:09 orly? Jun 01 03:06:14 ya rly Jun 01 03:06:17 nowai Jun 01 03:06:23 yawai ! Jun 01 03:06:57 g00s: new Gingerbread phones in mid-2012 make me sad Jun 01 03:07:09 er Jun 01 03:07:11 I just read his quote. Jun 01 03:07:22 He's implying a seamless transition between using chrome os devices and android devices Jun 01 03:07:25 not making them one thing Jun 01 03:07:37 wait, hold on Jun 01 03:07:41 wait i said ! Jun 01 03:07:45 damn it Jun 01 03:07:47 i.e. Start reading a website on your phone, then pick up on your chromebook Jun 01 03:07:51 I have a phonestatelistener class and inside of it I want to get the sharepreferences but I cant seem to be able to handle the context part. Ive tried http://pastie.org/4005577 but it crashes when a call is received Jun 01 03:07:53 which is kind of what chrome to phone is, etc. Jun 01 03:08:46 Alright, what's the best way to resize a Bitmap object? Jun 01 03:08:51 in other news, kindle fire and the internet will be merging into one thing. Jun 01 03:09:02 heard it first from g00s Jun 01 03:09:11 well, i read this http://www.tomsguide.com/us/Google-Android-Chrome-OS-Chromebook-Chromebox,news-15400.html Jun 01 03:09:48 its kinda vague Jun 01 03:10:02 where is ctate, we need rumor confirmation Jun 01 03:10:03 Right, I did a search for "android chrome os" and read the first news story Jun 01 03:10:07 which had the actual things that he said Jun 01 03:10:11 which was pretty explicit Jun 01 03:10:40 turns out blaggers re-working what someone says for pageviews might not give you the whole story?????? Jun 01 03:11:23 hkhalid: two things Jun 01 03:11:42 hkhalid: one, if you MUST cache a context, be ABSOLUTELY CERTAIN to use getApplicationContext to get the application context Jun 01 03:11:51 so that you don't leak contexts Jun 01 03:11:58 I tried that at first Jun 01 03:12:03 getApplicationContext Jun 01 03:12:06 hkhalid: two, move line 17 to just past 14. Jun 01 03:12:08 do or die - what do you do? Jun 01 03:12:08 that article has Upson's quotes there …. they are just vague Jun 01 03:12:13 well Jun 01 03:12:18 rework it. Jun 01 03:12:33 is there a way to place files randomly in internal storage so your app can't find them again? Jun 01 03:12:36 set your cached shared prefs (if you really need to have a cached shared prefs) in the constructor. Jun 01 03:12:44 ]have the declaration outside the constructor, of course. Jun 01 03:13:00 if you're confused about what's going on here, I'd recommend asking in #java what's wrong and why you're getting an NPE when you run Jun 01 03:13:07 this isn't an android problem, this is a basic java programming problem. Jun 01 03:13:10 basically, i had my app writing a cache file and now i can't find it... frig... Jun 01 03:13:17 b1n0ry: er... Jun 01 03:13:28 thanks lov Jun 01 03:13:38 i screwed something up with contexts. nm, i'll just uninstall the app Jun 01 03:13:47 b1n0ry: o_O Jun 01 03:14:53 lov: basically, i didn't know wtf i was doing. was able to write these files but when i tried to access them later, i was able to write them again and never able to read them... and my internal storage usage was growing every time i launched the app Jun 01 03:15:33 i was trying to create subdirs for the cache based on a timestamp and i think the timestamp got recreated when i was changing orientation and stuff Jun 01 03:15:52 so... i said screw it, i don't need this stuff in cache and i'm just saving it in the session state now Jun 01 03:15:54 ..... Jun 01 03:15:56 yeah. Jun 01 03:15:58 so uh Jun 01 03:16:09 you realize that your activity is probably being totally destroyed and recreated, right? Jun 01 03:16:16 yes, i do now Jun 01 03:16:34 i'm still learning a lot of this stuff Jun 01 03:17:16 no worries, i think i got it figured out Jun 01 03:33:16 is it possible to use a fragment replace without a fragment container? Jun 01 03:33:49 i should say, without an explicitly coded fragment container? Jun 01 03:35:55 You can attach and detach fragments to whatever youw ant Jun 01 03:35:59 you want* Jun 01 03:36:29 t0mless, looking at this example: transaction.replace(R.id.fragment_container, newFragment); Jun 01 03:36:39 i don't have an 'R.id.fragment_container" Jun 01 03:36:48 i'm guessing it's android.R.... Jun 01 03:36:51 R.id.fragment_container is just the parent viewgroup to attach to Jun 01 03:38:48 android.R.id.content Jun 01 03:38:51 that's what it is Jun 01 03:39:10 if you just want to attach it to the root Jun 01 03:39:15 you can use that Jun 01 03:39:23 yeah that's what i'm using Jun 01 03:39:33 i don't have anything complicated Jun 01 03:39:46 lov, I got it working! Jun 01 03:48:15 I miss the days when I had IRC configured to hide join/parts Jun 01 03:48:32 though watching seitensei is entertaining Jun 01 03:51:52 JakeWharton: why can't those days be now Jun 01 03:52:13 because Colloquy sucks and you have to do it via CSS in a style Jun 01 03:52:20 it used to just be a checkbox Jun 01 03:52:23 dude, just ditch that thing Jun 01 03:52:24 lol Jun 01 03:52:26 hah, CSS Jun 01 03:52:26 use irssi Jun 01 03:52:46 I'm just going to telnet and type the IRC protocol Jun 01 03:54:00 weechat. :) Jun 01 03:57:24 Bitmap.createScaledBitmap (when given a Bitmap acquired from the camera) returns a Bitmap with both a width and height of -1. Jun 01 04:12:23 i'm on x-chat, i just use slash irc_conf_mode 1 Jun 01 04:12:40 when it gets too annoying Jun 01 04:20:18 is the softkeyboard gone in the android emulator? Jun 01 04:24:18 hello there, I just build my first UML diagram due to Agilej reveres engineering tool. Can u tell me what do striked out lines mean? Jun 01 04:25:36 what type of diagram? Jun 01 04:25:56 unified modeling language Jun 01 04:25:56 uml is a set of diagrams Jun 01 04:26:03 which one Jun 01 04:26:10 it's package diagram Jun 01 04:26:41 i mean class diagram populate by package Jun 01 04:27:43 no idea Jun 01 04:28:46 I was trying to find an agilej legend, cause I dont understand it navigation system, but I couldnt, then I was trying to find UML legend Jun 01 04:29:11 but there's no crossed line Jun 01 04:29:13 s Jun 01 04:31:09 here's a screenshot http://ScrnSht.com/hcklud Jun 01 04:31:27 U can see crossed line entering the circle class Jun 01 04:32:53 tank-man, have u seen something like this? Jun 01 04:34:28 nope Jun 01 04:37:22 eeeeh( Jun 01 05:01:22 my gen folder does not generate R file - anyone had same issue - and how did you solve it? Jun 01 05:06:06 amoxibos: a) clean project and see if that kicks it, b) check for syntax errors, look at console... that can keep it from generating Jun 01 05:06:57 dragorn, thanks, been doing that - i have capital letters in my layout name Jun 01 05:07:00 so they say Jun 01 05:07:05 convetion is u cannot have those Jun 01 05:12:17 while I didn't know that was a thing, good to know Jun 01 05:16:06 hi someone that could play me turtor and fix a small problem in my app i pay 20euro its only a small problem that i cant find Jun 01 05:17:39 100 euro/hr, 2 hr minimum, payment in advance. Jun 01 05:18:00 lol lov Jun 01 05:18:06 I'm not joking. Jun 01 05:18:24 if you're going to write "turtor" it's not just a small problem. Jun 01 05:18:34 I'm also going to assume that you don't actually HAVE the money or the ability to pay me Jun 01 05:18:48 its only making a 2.3 widget 4.0 ccompatible Jun 01 05:19:32 What exactly is the problem? I'm curious. Jun 01 05:20:24 the widget is showing under 2.3 but not under 4.0 thats the base code http://www.vogella.com/articles/AndroidWidgets/article.html Jun 01 05:21:26 and i have already 1200 install clients are waiting for 4.0 Jun 01 05:22:44 elec29a - odesk or alibaba Jun 01 05:23:05 ? Jun 01 05:23:23 Those are freelance platforms elec29a Jun 01 05:23:33 ahh ok Jun 01 05:23:46 thx Jun 01 05:24:06 You probably wont get anything for 20 euros though Jun 01 05:25:13 and whats your minimal price per hour ? Jun 01 05:25:21 android manifest Jun 01 05:25:36 take a look at android manifest Jun 01 05:25:58 yes whats there did you see something ? Jun 01 05:26:41 minSdkVersion (7) is lower than the project target API level (8) - look for Jun 01 05:26:43 this on google Jun 01 05:27:01 elec29a: http://developer.android.com/guide/topics/appwidgets/index.html Jun 01 05:27:04 or look for problems with minSdkVersion anr target API level Jun 01 05:27:17 consider actually reading about widgets on the android site instead of some rando site Jun 01 05:27:43 alternately, stackoverflow.com Jun 01 05:28:04 but considering that you haven't actually pastebinned your own code, just the tutorial you followed, who knows. Jun 01 05:28:52 and do you know why the 4.0 included sample in android dosent work with the on run Jun 01 05:29:10 http://stackoverflow.com/questions/8794952/android-4-0-widgets-not-appearing Jun 01 05:29:16 no, and I don't really care Jun 01 05:29:19 http://stackoverflow.com/questions/10449783/android-app-2-2-port-to-4-0 Jun 01 05:29:20 good luck with your problem! :D Jun 01 05:30:00 thx Jun 01 05:31:25 confirm if u solve ur problem Jun 01 05:31:29 hello, I'm laying out a game and am wondering about fonts for the score etc. Jun 01 05:31:44 should I be using bitmaps or fonts for my lettering? Jun 01 05:32:11 whats lettering? Jun 01 05:32:40 as in e.g. the score "Score: 10000", "Level 1" etc. Jun 01 05:33:07 I'm thinking that bitmaps are more customizable - I can have "fun" looking letters Jun 01 05:33:16 but I have to render them at all the different sizes Jun 01 05:33:22 also known as text Jun 01 05:33:31 that's the word lol Jun 01 05:33:58 so should I be embedding a font so that I can render anything and style it in software? Jun 01 05:34:10 * g00s is trying to wrap his head around NetKernel wutf Jun 01 05:34:20 Zharf, dont be denigrating the conversation Jun 01 05:34:40 sorry Jun 01 05:34:50 np Jun 01 05:35:20 It looks like the TypeFace class is what I need, but fonts are inherently monochrome aren't they? Jun 01 05:35:49 Is there something that people use that I don't know about? Jun 01 05:37:36 for example to create some rounded "bubbly" text I'd probably want some shading, that's not supported in fonts is it? Jun 01 05:52:04 any suggestions for more active channels? Jun 01 05:53:40 chuckk: come at different hour Jun 01 05:53:53 #iphone-dev Jun 01 05:53:59 what time is good Jun 01 05:54:26 ideally though a channel without dicks like zharf and jakewharton Jun 01 05:54:30 would be preferable Jun 01 05:54:56 I spend time helping people out and I don't only contribute bullshit, looking for a channel like that for android development Jun 01 05:54:56 i'm not in #iphone-dev Jun 01 05:55:28 what makes you think #iphone-dev is going to have answers to android questions? Jun 01 05:55:34 do string name in strings.xml have to be lower case? Jun 01 05:55:50 amoxibos: no, but convention is all lowercase with underlines between words Jun 01 05:56:09 they're turned into static constants in the R.java file so they have to be valid Java names Jun 01 05:56:17 chuckk: you didn't ask for that Jun 01 05:56:30 chuckk: expecting a lot of activity in short time span during hours where a lot of (serious) developers have different places to be is not good approach Jun 01 05:57:31 JakeWharton, lets say I have a text view: Jun 01 05:58:00 is it allowed to name by textview id same as my strings TxtTitleAmoxID Jun 01 05:58:19 p_l : I'm just looking at people making time to post sarcastic responses Jun 01 05:58:21 no worries Jun 01 05:58:46 TextView android:id="@+id/TxtTitleAmoxID" SAME as @strings/TxtTitleAmoxID - is this allowed? Jun 01 05:58:59 yes Jun 01 05:59:12 but, again, conventions is lowercase_with_underscores Jun 01 05:59:18 *convention Jun 01 05:59:49 chuckk: @0658 after unslept night with hard exam @1200 I can be sarcastic. If I had to go to job (even working at home), I'd be *very* sarcastic Jun 01 06:00:05 i understand i have to fix it now - but my questions is if textview will have its own varibale in R.java, and i already gave that name to a string wont there be a conflict? Jun 01 06:00:11 no Jun 01 06:00:14 they're different types Jun 01 06:00:18 yeah, we can drop this line of conversation, it's not contributing anything Jun 01 06:00:26 one will be a constant in R$id and the other in R$string Jun 01 06:00:47 Thursday is my "cheat day" on being serious 24/7 Jun 01 06:00:57 also, it's the internet Jun 01 06:01:43 cheat day? Jun 01 06:02:00 you never heard that expression? Jun 01 06:02:07 it's for people on diets who don't understand dieting Jun 01 06:02:25 ah, nice :p Jun 01 06:08:48 pft, diets. all you need is exercise. Jun 01 06:09:05 actual proper exercise. Jun 01 06:09:21 i bought a bike last week and have been riding it like crazy Jun 01 06:09:47 and it's flat black, my favorite part about it :) Jun 01 06:09:56 so many people at my office have started to ride to work it's hard to get a shower in the morning Jun 01 06:10:07 I get in before 8 now and it's still hard :p Jun 01 06:10:49 wat Jun 01 06:11:28 where do you work and whwat do you do? Jun 01 06:12:20 H'WHAT Jun 01 06:12:31 yahoo, in sydney, australia, software eng Jun 01 06:12:50 why do you have showers at work? Jun 01 06:13:22 I don't know, pretty much all office buildings have showers? Jun 01 06:13:28 yeah we have showers Jun 01 06:13:39 and you're still hard after the shower? Jun 01 06:13:49 yeah I could see that coming Jun 01 06:14:16 blimey mate, root a ruckus Jun 01 06:14:41 communal showers will do that Jun 01 06:15:30 robolectric: making tests 1000% slower since… i don't care when Jun 01 06:16:04 with robolectric: 2.03s without robolectris: 0.017s Jun 01 06:17:15 hi guys, is there a way to set a layout for a fragment in xml? Jun 01 06:17:27 so, a fragment isn't a UI object Jun 01 06:17:36 it's merely a management container around a traditional View Jun 01 06:17:51 any layout-related modifications that you want to make should be on whatever you spit out of the onCreateView callback Jun 01 06:18:10 or, if you're referring to the pseudo-tag you can put in your XML layouts, then no Jun 01 06:18:50 so the only way to add Views to my fragment is via code? Jun 01 06:19:25 ocx: no, onCreateView can just inflate something Jun 01 06:19:29 well you can still inflate a layout XML in the fragment Jun 01 06:19:44 great Jun 01 06:20:04 so i can create my xml layout and inflate it for the fragment using the oncreateview() Jun 01 06:20:17 correct Jun 01 06:20:22 your click handlers can't use android:onClick though Jun 01 06:20:33 or whatever its called Jun 01 06:20:45 sure they can Jun 01 06:21:02 the callbacks must be on the context that you use to inflate the layout though Jun 01 06:21:18 which, if you've been keeping score at home, is not the fragment Jun 01 06:22:23 haha funny. I've got an email asking for my hourly rate to adapt my OSS jabber client to some business case. Jun 01 06:22:54 $400 Jun 01 06:23:23 JakeWharton: yeah, you are technically correct, but practically i never see that Jun 01 06:23:25 I really wonder if the folks know about the implications of the GPL Jun 01 06:23:30 JakeWharton: this callback from fragment to activity is not well documented on the net, do you know any good resources for newbies? Jun 01 06:24:24 g00s: you mean you don't like non-type-safe declarations of methods in a layout XML which look for methods on whatever context is used to inflate them?!? Jun 01 06:25:22 ocx: the Android documentation gives the example of exposing an interface that the parent activity implements Jun 01 06:25:25 i like that pattern Jun 01 06:25:42 yea i tried reading that didnt understand it though Jun 01 06:26:02 the concept of callbacks ia bit vague to me Jun 01 06:26:17 JakeWharton: no, thats not what i meant at all, but thats ok Jun 01 06:26:32 it's not OK g00s Jun 01 06:26:35 i'm losing sleep over this Jun 01 06:26:40 haha Jun 01 06:27:09 ocx: i'm not going to be able to express it any more clearly than they do, especially not in my current state Jun 01 06:27:13 Ge0rG: actually, GPL isn't incompatible with making a copy for some client Jun 01 06:28:03 http://developer.android.com/guide/topics/fundamentals/fragments.html in the last section Example they are using a read article example, i see that the example does not use callbacks for fragments to communicate with each others Jun 01 06:28:08 p_l: only if you have consent from all authors Jun 01 06:28:18 p_l: or if the copy is remaining open source Jun 01 06:28:21 Ge0rG: what GPL requires is that the *CLIENT* can get a copy of the code for costs not above transport cost Jun 01 06:28:39 You don't have to publish it worldwide or anything like that Jun 01 06:28:51 if they use it internally in corporation, for example Jun 01 06:29:19 p_l: even with internal use, any employee is free to grab the source and put it on the interwebs Jun 01 06:29:28 of course, I'm not a lawyer, but that was always the interpretation FSF backed when asked Jun 01 06:29:35 Ge0rG: umm... not necessarily Jun 01 06:30:05 p_l: I'm not sure if it is possible to contractually restrict employees in this regard. however, this is probably too big of an organizational challenge Jun 01 06:30:38 Ge0rG: the *employer* is the license holder, not individual users Jun 01 06:30:52 Affero crazies are mucking with that, but GPL itself doesn't Jun 01 06:31:15 p_l: if the employer distributes the binary to the employees, he has to provide source as well. Jun 01 06:31:26 provisions about sharing code start when a licensee wants to distribute Jun 01 06:31:29 p_l: and the source is GPL licensed, meaning the employees can take and publish it Jun 01 06:31:56 Ge0rG: that doesn't count as distribution, as the employees aren't licensees Jun 01 06:32:37 otherwise site-licenses wouldn't workj Jun 01 06:32:39 p_l: now this is a very interesting interpretation. I'm not sure I can follow you here Jun 01 06:32:39 *work Jun 01 06:33:16 Ge0rG: the license to use the software is part of tools provided by employer, but not transferred to employee Jun 01 06:34:02 just like working for a company that pays for ANSYS CFD that you have on your laptop doesn't mean you have a license for ANSYS to use for yourself Jun 01 06:34:42 isnt this part of what apple and samsung are arguing about? Jun 01 06:34:51 Some mass-licensing agreements include automatic transfer (usually OS licenses), but it's not required Jun 01 06:35:04 tank-man: afaik Apple and Samsung are involved in patent war Jun 01 06:35:25 p_l: I'm pretty sure that distribution to employees is accounted for in the individual licensing terms of the apps you refer to Jun 01 06:35:30 some 3rd party paid samsung but apple used that part and didnt pay samsung Jun 01 06:35:56 hey guys, is there a way to display some actions in the top bar and some in the bttom when using the split action bar Jun 01 06:35:57 ? Jun 01 06:36:05 Ge0rG: I'm pretty sure it's stated by who pays the bill Jun 01 06:36:25 that is, who is on whatever agreement you have for the work Jun 01 06:36:30 f2prateek_: no Jun 01 06:36:36 it's up or down Jun 01 06:36:54 what GPL provides in this case is protection to the *company* that licensed your application that they can "open" it Jun 01 06:37:22 p_l: my reading of the GPL is that site-wide distribution is covered by the license under the same terms as world-wide distribution, i.e. as "copy and distribute", requiring a provision of source access Jun 01 06:37:50 JakeWharton: thanks Jun 01 06:39:51 Ge0rG: I believe you'd need to check with apropriate law acts wherever you are, but I'm pretty sure "distribute" in such contract means "distribute to a third party" Jun 01 06:40:11 employees aren't third party unless specially differentiated Jun 01 06:41:03 Ge0rG: anyway, just check with them, they might be simply in need of adapting for their use case and might not be in the bussiness thus not caring about other copying it Jun 01 06:41:17 that is, they might be looking for solution to their problem, not a product to resell :) Jun 01 06:41:18 p_l: as I quoted, the GPL applies its conditions to "copy and distribute". Jun 01 06:41:43 p_l: I'll certainly do Jun 01 06:42:39 Ge0rG: well, at least in Poland, AFAIK, my interpretation would stand. Various FSF-aligned sources over time also supported similar interpretation of GPL Jun 01 06:44:37 * p_l ended up reading the whole copyright law Jun 01 06:55:12 hello i am trying to play an rtsp stream on my nexus one 2.2. i have failed to do so. i installed an app on the phone called rtsp viewer and it worked fine with my rtsp link. i need help... has anyone done anything similar before? Jun 01 07:19:18 anyone know why i get 0 when i call getheight on a layout? Jun 01 07:20:35 When do you call it? If the layout hasn't rendered yet, that would make it return 0 Jun 01 07:20:43 because it hasn't been measured Jun 01 07:20:50 aha ok Jun 01 07:20:53 cheers! Jun 01 07:21:01 call measure with appropriate measureSpecs or wait until it's done by the framework Jun 01 07:21:04 client just got htc one and now app has some scaling issues.. Jun 01 07:21:14 yeh it works if i move it thanks Jun 01 07:21:47 much less issues that id expect tho i must be doing something right :) Jun 01 07:21:58 j2me days we used to make 20+ ports.. :-X Jun 01 07:22:10 F that Jun 01 07:22:17 once we did 65 ports Jun 01 07:22:37 after we finish a game we'd just sit for the next year porting it.. Jun 01 07:22:54 altho there was semi good money in porting so i kind of miss it :) Jun 01 07:23:03 i did all the ports for Paperboy 2 on mobile :) Jun 01 07:23:45 weird thing is the HTC one X is 4 core, amzing machine yet all the transition stuff looks a hell of a lot jerkier than it does on my againg nexus one Jun 01 07:25:37 so much so client is asking me to "improve transition efficiency" how the hell do i do that, its an ordinary viewflipper with an anim Jun 01 07:26:12 anyone? :) Jun 01 07:26:14 beuller? Jun 01 07:26:20 do you have hardware acceleration enabled? Jun 01 07:26:24 what is your targetSdkVersion? Jun 01 07:26:27 good call! Jun 01 07:26:31 what animation framework are you using? Jun 01 07:26:38 do you have drawing cache enabled? Jun 01 07:26:47 are you changing LayoutParams on the fly during the animation? Jun 01 07:26:48 i only have android:minSdkVersion="8" set Jun 01 07:27:11 byte[] buffer = new buffer[1024]; int r = read(outputPtr, buffer, buffer.length); -> W/dalvikvm( 691): JNI WARNING: received null array Jun 01 07:27:15 <3 Jun 01 07:27:16 ;_; Jun 01 07:27:24 set a targetSdk to 14 or higher, or a targetSdk of 11 or higher plus android:hardwareAccelerated="true" Jun 01 07:27:31 * Zharf confused Jun 01 07:27:34 im using R.anim.flipin_reverse and R.anim.flipout_reverse i presume theyre standard cant remember where i stole em Jun 01 07:27:42 great thanks dude Jun 01 07:28:23 when using eclipse, double click on layout->main.xml opens a graphic layout editor, but later on i always get the xml of that layout. how do i get back to the graphic layout editor? Jun 01 07:28:34 there's tabs at the bottom Jun 01 07:28:35 socket theres a tab in the bottom left Jun 01 07:29:10 oh, thanks. been looking for that for an hour :) Jun 01 07:29:28 hello. where and how i need to implement an OnTouchEvent if it need to work on unused part of activity and on all views on the activity too? tnx Jun 01 07:29:34 JakeWharton android:hardwareAccelerated="true" will simply be ignored on older phgones yeh? Jun 01 07:29:40 yep Jun 01 07:29:45 great Jun 01 07:30:16 i will set drawing cache too i guess Jun 01 07:30:36 hmm hey it wont compile now with that in the manifest JakeWharton Jun 01 07:30:44 where'd you put it? Jun 01 07:30:52 in the application tag Jun 01 07:31:04 what SDK are you compiling with? Jun 01 07:31:17 2.2 Jun 01 07:31:46 you need to compile with at least 3.0 Jun 01 07:31:48 increase it? im just worried if i do ill use somethign that will break on older versions Jun 01 07:31:55 and i wont know ive done it Jun 01 07:31:58 lint checks for that Jun 01 07:32:03 oh nice Jun 01 07:32:10 and so does testing... Jun 01 07:32:16 hehehe Jun 01 07:32:57 still seems to have an issues on 3.0 do i need to adjust minsdk? presumably not Jun 01 07:33:32 i am designing an application where you have at the botton of the screen Fragment1 with layout1 and above it i have a framelayout in which i will display data based on the buttons clicked in the fragment1, my question is do i have to include a fragment in the framelayout and inflate into it when the user clicks buttons or is it best to directly inflate in the framelayout wihtout having a fragment in it? Jun 01 07:33:36 error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android Jun 01 07:34:36 hmm Jun 01 07:34:41 it was added in API 11 Jun 01 07:35:00 i'd google for info on it Jun 01 07:35:06 cheers Jun 01 07:35:07 we use targetSdk 15 which automatically enables it Jun 01 07:35:13 ill just do that Jun 01 07:35:17 wont mess anything up i guess Jun 01 07:35:32 i was slagging my mates htc one x too Jun 01 07:35:34 now i know why Jun 01 07:35:39 you should test Jun 01 07:35:42 just to be sure Jun 01 07:35:52 we have some views in our app that don't play well with hardware accel Jun 01 07:36:26 aha Jun 01 07:36:34 hello. If i write something in onTouchEvent in Activity, it works just on the unused part of the activity, dont work on the part where i have some tables with textviews. any solution how i can get work the ontouch event on the whole screen? tnx Jun 01 07:36:37 i can test on htc one x in pub tonight Jun 01 07:37:03 kind of annys me that normal ppl have better android devices than me now lol Jun 01 07:37:18 Rintano u could add listeners to the textviews too Jun 01 07:38:07 hello JakeWharton, Tab's titles on 2 lines it's not cool http://dl.dropbox.com/u/6751271/device-2012-06-01-093726.png :( Jun 01 07:38:12 the One X is really nice Jun 01 07:38:19 once an AOSP ROM comes out I may get one Jun 01 07:38:39 grosso modo, is it better to inflate a linearlayout in a framelayout or to inflate a fragment in the framelayout and then inflate the linearlayout inside the fragment? Jun 01 07:38:45 neoakira: so set maxLines to 1 on the tabTextStyle or whatever Jun 01 07:38:53 for animation purposes for example Jun 01 07:38:54 it's defaulted to 2 Jun 01 07:39:01 Gaz`: i have around 200 textviews on the screen. how can i add simply a listener to all? and if i add to every view, than would this work if i make a swipe which begin on one view and ends on the other? Jun 01 07:39:14 hello i am trying to play an rtsp stream on my nexus one 2.2. i have failed to do so. i installed an app on the phone called rtsp viewer and it worked fine with my rtsp link. i need help... has anyone done anything similar before? Jun 01 07:39:18 i will test on ics emulator Jun 01 07:39:37 saintrafter: i think you should check on #android Jun 01 07:42:49 Rintano hard to say u could add them programatically, not sure about the swiping tho i had to give up myself getting a swipe to work on a listview, not tried fragments yet but that might help.. Jun 01 07:43:12 Rintano dont take my word for it tho im a bit n00bish still :) Jun 01 07:43:38 np every idea is a good idea and very helpfull Jun 01 07:43:55 :-) Jun 01 07:46:27 JakeWharton works on 11 now i think i forgot to clean Jun 01 07:47:03 "but in six years Facebook will not exist the way it does today. The service it’s giving today, we won’t need it then. Everyone will have their own Facebook." Jun 01 07:47:07 i like this guy :) Jun 01 07:49:09 i tough that because Activity is the holder for the whole thing, the ontouchevent would work on everything on the screen...but dont Jun 01 07:49:25 no i think its view based maybe Jun 01 07:51:39 another question: if i make a table wider than my screen, can i make it horisontal scrollable? Jun 01 07:51:54 but just this one table on the screen Jun 01 07:52:09 use a horizontal view scroller Jun 01 07:52:34 ive done some stuff like thisin html instead and simply used a webview Jun 01 07:52:38 just a thought :) Jun 01 07:53:25 ok. i google for webview :) tnx Jun 01 07:54:03 i was making a level editor and wanted nice scrollign in all directions, webview wa smy solution i nthe end, you canzoom in and outtoo which iscool Jun 01 07:54:11 damn ineed a new keyboard Jun 01 07:55:13 i created the empty default project, it compiles fine. i add a button to the layout using the graphical layout editor. when i recompile i get many errors about "Error in an XML file: aborting build." "res\layout\main.xml:0: error: Resource entry main is already defined." what am i doing wrong here? all i did was a drag & drop the button Jun 01 07:55:42 weird Jun 01 07:56:00 whats ur button called Jun 01 07:56:25 To execute a command as superuser (ro.secure = 0), it should work by "Process process = Runtime.getRuntime().exec(new String[]{"su", "-c", command});"? Jun 01 07:56:40 Gaz`: button1 Jun 01 07:56:53 I tried both adb install, and append the apk to /system/app and reboot, neither work. Jun 01 07:56:54 sounds liek u have 2 main.xml somehow Jun 01 07:56:56 how do i make a service run continaully in the background even after the app finishes? Jun 01 07:57:04 HcE phone is rooted? Jun 01 07:57:05 an empty file called main.out.xml is created automaticly.... Jun 01 07:57:16 socket prob need to delete that Jun 01 07:57:27 Gaz`: yes, I have write access to everything, and ro.secure property is 0 Jun 01 07:57:33 Gaz`: i tried, it comes back every time i recompile Jun 01 07:57:41 Gaz`: adb shell gives me a super user shell Jun 01 07:57:56 HcE sorry i dont know about this stuff, maybe #android-root they know Jun 01 07:59:18 hi evryone Jun 01 07:59:32 Gaz`: thanks, I'll try there Jun 01 07:59:58 when i use adjustPan the word suggestions are covering my editText widget.. any suggestion on how to fix it? Jun 01 08:11:14 how can i set the fragmentclass for a fragement? something like fragment myfrag = new fragment(com.my.test.fragment.class) ? Jun 01 08:12:46 ocx: i am trying to develop an app that will do the same... Jun 01 08:12:55 i want the fragmentclass to be called whe nthe fragment is created Jun 01 08:13:00 is it not possible to do it? Jun 01 08:13:31 you can define the class in the xml Jun 01 08:13:38 so should be able to define the class in the code Jun 01 08:20:17 I'm trying to get Tasker to parse data to Astrid todo by using the Send Intent action. The available fields are Action, Category, Mime Type, Extra, Package, Class, and Target. Would anyone care to make an educated guess on how I fill in those to send data using the Share activity? I've looked at the documentation for Android's Share system, but not being a dev, translating that to the Jun 01 08:20:17 right fields is proving hard Jun 01 08:29:28 anyone? Jun 01 08:34:57 is there any way I can ask the user to turn on the gps if it disabled? Jun 01 08:35:26 morning Jun 01 08:35:41 morning Jun 01 08:35:46 gm Jun 01 08:35:50 VitorM: you can open the location services settings dialog Jun 01 08:35:58 VitorM: u can make a alert, and open gps setup with a intent Jun 01 08:38:09 Can someone tell me if it is something like this? http://pastebin.com/KDucVstK (For the GPS question) Jun 01 08:48:30 Can't I use startActivity(intent); on a regular Java class? Jun 01 08:53:19 Tsukaza: er what Jun 01 08:53:51 Tsukaza: that makes no sense Jun 01 08:53:52 Intent intent = new Intent( Jun 01 08:53:52 Settings.ACTION_LOCATION_SOURCE_SETTINGS); Jun 01 08:53:55 startActivity(intent); Jun 01 08:53:57 is what you want to do Jun 01 08:54:27 I need to add a flag Jun 01 08:54:27 y Jun 01 08:54:30 Already did Jun 01 08:54:36 Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS); Jun 01 08:54:36 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Jun 01 08:54:36 mContext.startActivity(intent); Jun 01 09:02:10 quick beginners question... If I have a button on one xml called click can I use another button on a different xml called the same or when I reference it in .java will it have resource issues? Jun 01 09:02:43 eg use the same button in 2 activities Jun 01 09:03:12 aerocam: the ids should be unique in the same tree, but don't need to be unique otherwise Jun 01 09:03:24 sweet Jun 01 09:03:33 thanks g00s Jun 01 09:03:38 np Jun 01 09:07:10 Trying to use the native camera app to take an image for use in my own app, but in onActivityResult, data is NULL. Android 3.2, galaxy tab 10.1 Jun 01 09:07:13 any thoughts? Jun 01 09:07:34 I'm even using the examples on android developers Jun 01 09:12:45 got, I hate designing on eclipse Jun 01 09:12:49 transaction.replace(R.id.fragment_container, newFragment); how can i call newFragment.class ? Jun 01 09:14:12 Im having a weird bug on my app, I have a Service class that creates an object GPS. The GPS Object simply verify if GPS is enabled(Yes - take positions | No - Request user to enable). The service is communicating with an Activity (The main), they are bind since start. When my code runs on the GPS class that the Service and the Activity get Unbinded... Anyone has idea Why is this happening? Jun 01 09:15:19 transaction.replace(R.id.fragment_container, newFragment); <<< is the onCreateView() of newFragment automatically called when transaction is commited? Jun 01 09:21:00 is eclipse or writing xml the only ways to build an interface for android? Jun 01 09:22:29 you can do it with java code also Jun 01 09:23:27 oh yes, thats right Jun 01 09:23:41 sometimes when i use eclipe to design (drag and drop) the program crashes Jun 01 09:23:42 hehe Jun 01 09:23:50 saying i can't cast different types Jun 01 09:28:12 Hi, I'm calling a function from android test case that in turn will callback an interface, is there someway I can get this interface callback in my testcase class, I did implement that interface in my testcase class but its not called Jun 01 09:49:36 Ím having this error in my GPS class, java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() Jun 01 09:52:02 Say i have a bound service (using a Binder). What are my options for letting the service notify clients, other than using a BroadcastReceiver? Jun 01 10:03:38 anyone know why some transitions hangs my app? fade for example, Jun 01 10:10:46 Hi Jun 01 10:11:24 Can some1 help me plz with what is the permission required in usb communication Jun 01 10:11:55 i need to write the permission in the manifest file but couldnt get the required permssion Jun 01 10:12:22 is it android.permission.INTERNET Jun 01 10:12:32 I need to send data through usb Jun 01 10:12:48 it wont be that will it :) Jun 01 10:12:52 INternet is used when communicating thru wifi . isnt it? Jun 01 10:13:19 must be a specific one for usb Jun 01 10:13:34 yes i tried googlin but no help Jun 01 10:14:39 http://developer.android.com/reference/android/Manifest.permission.html Jun 01 10:14:43 u got lots to choose from Jun 01 10:15:16 i move from activity A to B and my transitions is set to fade, and that works, but when i hit the back key, where is this transition from? Jun 01 10:15:19 let me see Jun 01 10:15:52 onResume()?? Jun 01 10:15:57 method will be called Jun 01 10:16:04 yeh it will Jun 01 10:16:12 i have not specified any transition tho in the new activity Jun 01 10:16:14 its weird Jun 01 10:16:37 No its not Jun 01 10:16:58 The previous activity is stored in the android stack Jun 01 10:17:25 and when u hit the back button .. the onResume() is poped Jun 01 10:18:40 hmm Jun 01 10:18:44 still dont get it Jun 01 10:18:50 Hi. I cant install ADT plugin on Eclipse. It keep saying 'Calculating requirements and dependencies' and doesnt go on. Jun 01 10:19:14 lets say i go from A->B->C Then i hit back, where does C get its anims from ? Jun 01 10:20:24 Maybe the framework magically knows what activity to show when you hit back, as well as the transitions used between the two Jun 01 10:20:51 isthat sarcasm? cant work that out either :) Jun 01 10:21:00 it knows what activity to go to because it goes to the previous one Jun 01 10:21:08 but not sure where its getting the transition from Jun 01 10:21:35 A- Jun 01 10:21:42 >B->C Jun 01 10:21:56 when u hit back .. B activity ll come Jun 01 10:22:08 ok Jun 01 10:22:13 and again back a will come Jun 01 10:22:14 so where is its transition gotten from Jun 01 10:22:16 It know which one to go to by keeping a list.. Is it that incomprehensible that it might keep a list of the animation as well? Jun 01 10:22:43 when u go from A->B .. A avtivity is stored in the android stack yaar Jun 01 10:22:48 hmm Jun 01 10:23:00 well it seems to be picking random transitions Jun 01 10:23:03 not ones ive specified Jun 01 10:23:45 Then specify new ones Jun 01 10:23:56 Can we give permissions other than the default ones? Like ACCESS_USB is not there in default .. but can we give it? Jun 01 10:24:00 but then i have to tap into the back key Jun 01 10:24:03 i dont want todo that Jun 01 10:24:10 ? Jun 01 10:24:11 ? Jun 01 10:24:18 unles su can specofy transitons in the manifest Jun 01 10:24:32 damn my typing is going down hill steadily Jun 01 10:26:12 weiirddd Jun 01 10:28:18 ah ok can specify new one in onPause Jun 01 10:28:19 thanks Jun 01 10:31:08 just a little news..... ICS for the Galaxy Note OTA in the UK is today...Downloading as we speak. Write some new apps now on my test note Jun 01 10:32:51 nice Jun 01 10:32:59 galaxy note is doing really well in taiwan too Jun 01 10:33:03 advertised all the time Jun 01 10:33:30 gah Jun 01 10:33:39 just seems a bit large for my pocket :) Jun 01 10:33:46 this JNI issue took me about 24h to solve Jun 01 10:33:51 now I'm ready for some mental care Jun 01 10:33:57 :-/ Jun 01 10:33:59 i hate that Jun 01 10:34:04 what as the issue Jun 01 10:34:10 u might save me a day on time :) Jun 01 10:34:13 one Jun 01 10:35:18 I passed a long (pointer), byte[] (buffer) and int (buffer size) to a C functions and it kept coming back as null array, 0x1 local reference of some invalid weak reference.... Jun 01 10:35:43 my C function took long, jbyteArray, int... instead of jlong, jbyteArray, jint Jun 01 10:35:46 ;_; Jun 01 10:36:26 :) Jun 01 10:36:29 long = probably 32bit here, jlong = 64bit... it was writing half the jlong argument on top of the byte array Jun 01 10:36:49 never even heard of jvars but thanks, ill try commit that to mmemory Jun 01 10:37:05 why didnt u think of jlong and jint if u used jbytearray :-) Jun 01 10:37:35 jbyteArray isn't a primitive, jlong is Jun 01 10:37:50 ah so u assumed they didnt exist? Jun 01 10:37:50 http://java.sun.com/docs/books/jni/html/types.html#63977 Jun 01 10:38:01 I just didn't remember Jun 01 10:38:05 cool Jun 01 10:38:19 well, well done Jun 01 10:38:28 why u need jni out of curiosity :) Jun 01 10:38:30 maybe from now on, I will remember Jun 01 10:38:38 you can bank on that! Jun 01 10:38:48 doubt ill use jni ever Jun 01 10:38:58 used it once in 16 yrs of java Jun 01 10:39:04 I have a ton of C code Jun 01 10:39:09 sweet Jun 01 10:39:19 I'm just porting a project really Jun 01 10:39:27 yeh Jun 01 10:39:34 seems ndk is useful for c lovers Jun 01 11:00:38 can someone explain me the usefulness of JsonTokener? cause it seems to me that there's no difference using it to parse a json string and returning in a json object and putting the string simply in a json object Jun 01 11:04:37 pi_anto: i assume you could make a streaming parser with that tokener Jun 01 11:06:48 what i mean is, taking the sample code here http://developer.android.com/reference/org/json/JSONTokener.html, if i construct a json object without using tokener, with a simple new JSONObject(json), i obtain the same result Jun 01 11:08:13 pi_anto: yeah, it doesn't make any sense to use JSONTokener like that Jun 01 11:08:30 (well, to be honest, i don't see the point of android's jsontokener - why does it only have a string constructor?) Jun 01 11:10:18 that's why i can't understand, maybe is from my little knowing of it :) if for example i want to use tokener on a string with more indented object nodes, is it useful? cause i've tried, but it seems to parse only the first node from the input string Jun 01 11:12:07 i would use a tokener if i had, for example, a 5MB JSON array Jun 01 11:12:16 so i wouldn't have to load all that stuff into a single JSONArray Jun 01 11:12:35 i would use the tokener to read only one array element at a time Jun 01 11:13:03 however, android's JSONTokener is not useful for that case because it only has a string constructor (unlike org.json.JSONTokener for example) Jun 01 11:15:07 hrnt, maybe i should turn my attention to Gson :) Jun 01 11:32:50 hello Jun 01 11:33:05 is there anybody that work with necessitas? Jun 01 11:53:18 hi Jun 01 11:55:22 I want to get the same certificates as those in the system image from emulator. How can I get this certificate ? Jun 01 11:57:55 ? Jun 01 12:47:22 how can i check the click number on an object? means i want to know how which click number is done on a view, example: when user initially clicks its number 1 then when he clicks again its number2 etc... Jun 01 12:49:03 ocx: uh, keep track of the number of clicks? Jun 01 12:49:32 If a webview content is smaller than the screen is there a way to sort of scale it or make it fit the screen properly? Jun 01 12:49:41 sometimes i feel "...." Jun 01 12:52:17 wat i am trying to achieve is to check if it is the first click create a fragment from scratch, if it is the second or >= click then restorestate of the fragment Jun 01 12:55:09 gaz: yeah look up some tips on designing for android webpages Jun 01 12:55:10 theres some htmly thing you toss in Jun 01 12:55:45 how do you all feel about "hybrid" apps that use HTML5/CSS3/JS to make a native-looking UI, but serve it up in a native Android app? Jun 01 12:56:12 terrible! Jun 01 12:56:24 they just run so poorly Jun 01 12:56:32 its a choice, but i rather make just the app with the native ui Jun 01 12:58:02 BTW I know how #iphonedev feels about them :) I was curious about Android… looks like a similar sentiment Jun 01 12:59:00 iphones can actually run them decently, but they still suck Jun 01 12:59:09 iOS seems to handle them OK… they aren't necessarily slow but you know when it's not native. But I'd imagine the broader range of hardware and OS makes it harder to get a single codebase to work well on Android AND iOS Jun 01 12:59:16 why spend all that effort emulating something else? Jun 01 13:03:42 yeah, effort({ single codebase to support all platforms }) > effort({ Android app, iOS app, … }) Jun 01 13:04:26 it's still not a single codebase, even if you use phonegap, sure you can share some code, but you stil diverge alot Jun 01 13:07:02 hm, yeah Jun 01 13:07:19 I wonder are there examples of "good" apps that are built this way? Jun 01 13:07:27 I've seen some on iOS where it's certainly passable Jun 01 13:08:22 but I don't have much Android experience outside of the emulator, and I've had trouble getting good looking/feeling HTML across iOS and Android just in the simulators! Jun 01 13:10:13 I am confused here; from what i can find actionbar tabs can only be fragments; nested fragments are not supported so how does one achieve the multi-pane layout such as http://developer.android.com/design/media/multipane_view_tablet.png to where the actionbar tab is being leveraged and then the fragments which are being utilized in that area? Jun 01 13:11:10 After an image capture intent, I'm trying to scale the acquired image to the next power of 2. The width and height of the scaled image end up as -1. am I missing something? http://ideone.com/TU2n6 Jun 01 13:11:45 The docs don't say anything about failure for the Bitmap functions (except for invalid arguments). Jun 01 13:12:45 if nextpowerof2 broken or is width and heigh t= 0 Jun 01 13:12:51 i've been using a framelayout attempting to get this to work; which i can get somewhat to work but then having to manage the orientation changes manually is not exactly ideal Jun 01 13:13:11 oh i guess they would be -1 Jun 01 13:13:13 0 Jun 01 13:13:35 Debugging shows nextPowerOf2 returns 256 for both width and height, which is correct (the src image has the dimensions of 150x240). Jun 01 13:14:11 weird whacky wild Jun 01 13:14:21 i feel like theres something i know Jun 01 13:14:23 i just cant think of it Jun 01 13:14:24 sorry Jun 01 13:14:46 No worries. Just highlight me if you think of anything. Jun 01 13:35:38 is there a way to monitor if the Bluetooth of my app was shut down? Jun 01 13:38:53 dont shut the app down... Jun 01 13:39:11 ? Jun 01 13:39:35 * VitorM slaps mikedg around a bit with a large trout Jun 01 13:40:17 readme: Hi. Jun 01 13:40:52 hi JamesJRH Jun 01 13:40:52 readme: Sorry I broke off the other day. I used the proper listener in the end (SoundPool.OnLoadCompleteListener), and now the loader thread isn't even needed. Things are very smooth, just how I expected. Jun 01 13:41:00 nice Jun 01 13:41:02 is there a way to monitor if the Bluetooth of my app was shut down? Jun 01 13:41:15 no need to apologize its not like i sit around waiting for people Jun 01 13:41:19 I've got a listview, which outputs a bunch of faculties. Once the user clicks a faculty, it should go to a new listview displaying all the schools within that faculty. Is there a way to find out what the value was of the button they pressed? Just modify the use of toast? Or something else? Jun 01 13:42:47 Although, I don't know what priority 'SoundPool.load()' runs at. Potentially would still cause issues on a single-core device if it's not lower the the UI. Jun 01 13:44:19 readme: I usually like to finish things off properly, say thanks, goodbye etc. but it just got forgotten that time, I was very tired. Jun 01 13:44:53 readme: I pushed the latest changes today. Jun 01 13:46:04 awesome Jun 01 13:46:06 gj Jun 01 13:48:44 Timmaah1201: how about ExpandableListView? Jun 01 13:48:57 and what does Toast have to do with your question Jun 01 13:49:13 readme: What do you think: https://gitorious.org/isokeys https://play.google.com/store/apps/details?id=org.gitorious.jamesjrh.isokeys Jun 01 13:49:49 If you have a single-core phone to test on, let me know how responsive is the startup. Jun 01 13:51:57 After an image capture intent, I'm trying to scale the acquired image to the next power of 2. The width and height of the scaled image end up as -1. am I missing something? http://ideone.com/TU2n6 (The source image is 150x240 and the new dimensions end up as 256x256) Jun 01 13:52:23 readme: You also mentioned something about a static block. What's that about? Jun 01 13:52:26 13:12:22 < readme> I'd optimize the routine and put it in a static block so that the whole keyboard just loads fast and on time. Jun 01 13:52:36 wongk: nothing.. just a massive newbie! What about the onKeyEvent? Rather have different views than expandable ones as I'll be having 4 levels Jun 01 13:54:38 Timmaah1201: i believe you are looking for this: http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener(android.widget.AdapterView.OnItemClickListener) Jun 01 13:55:03 ty Jun 01 13:56:04 Does anyone know of a 10.1 tablet with USB host or OTG built-in? Most phones have OTG these days, but tablets? And these days they tend to be too thin for a full-sized USB host port. Jun 01 13:56:41 I won't settle for docks or non-standard adapters. Jun 01 13:57:12 I find them overpriced and unnecessary. Jun 01 13:57:20 JamesJRH: on single-core phone (motorola milestone) is horrible till it load Jun 01 13:57:46 ixc: IsoKeys? Ah, I thought so. Jun 01 13:57:58 http://www.androidpolice.com/2012/05/31/whatever-you-do-dont-use-your-htc-one-x-as-a-hammer-like-this-guy-did/ Jun 01 13:58:01 :O Jun 01 13:58:25 JamesJRH: also if i just put home button (its going background) slowly everything Jun 01 14:00:02 ixc: I can't find any way to set the sound-loading priority, so I'll just have to live with that and make a note for single-core phones in the description. Jun 01 14:00:46 ixc: 'slowly everything'? Jun 01 14:01:00 oh just GC started work hard Jun 01 14:01:27 and also had problem with vm heap size Jun 01 14:01:38 E/AudioCache( 6267): Heap size overflow! req size: 1050304, max size: 1048576 Jun 01 14:01:43 Yes. Jun 01 14:01:57 That's the **** SoundPool. Jun 01 14:02:03 It's crap! Jun 01 14:02:38 Android really need to improve their sound system. Jun 01 14:03:05 and i also has some problem, sometimes its not respond Jun 01 14:03:31 android i think need many improve :(( Jun 01 14:03:43 ANR? I've not seen that in a while. Jun 01 14:03:56 At least not after it's started up. Jun 01 14:04:13 But you should have seen the other guy's version. Jun 01 14:05:49 Hi. For a form UI, the best layout is linear? Jun 01 14:06:07 dependo n ur form :) Jun 01 14:06:33 ? Jun 01 14:06:59 ixc: Actually, GC works hard on my phone too after quiting the app. I think the app is quite memory-intensive due to the audio. Jun 01 14:07:17 JamesJRH: yes Jun 01 14:07:42 under: if linear is enough for ur layout, is ok Jun 01 14:08:16 but if u need many field horizontal, and form is vertical Jun 01 14:08:20 its many layout Jun 01 14:08:24 better use relative Jun 01 14:10:01 ixc: yes, I need 6 horizontal fields Jun 01 14:10:10 why relative is better? Jun 01 14:10:22 for tablet? Jun 01 14:11:34 under: i mean if u have a linear layout and for design u need inside linear layouts then relative better choice Jun 01 14:11:45 no need render so much views Jun 01 14:12:34 u can check it with hiearchyview-er Jun 01 14:12:44 JamesJRH: it's a way of doing initialization when a class is loaded Jun 01 14:12:48 by the jvm Jun 01 14:12:50 ixc: Does it ever 'not respond' when audio is fully loaded? That's more of an issue really (I totally didn't expect the on-the-fly loading to work on single core phones, but then such phones tend not to have decent multitouch anyway which the app requires). And was that 'not responding' the ANR? Jun 01 14:12:53 look up 'static initializer' Jun 01 14:13:44 readme: Ok, thanks, and thanks for all your help the other day as well. :-) Jun 01 14:14:05 JamesJRH: i got notify about the app not respond Jun 01 14:14:09 wait or force close Jun 01 14:14:19 i think u do everything on ui thread Jun 01 14:14:26 Yes, that's ANR. Jun 01 14:15:13 Hi guys, I've got a little problem. Is there a way to attach to the sqllite DB upgrade event to show a Progress dialog in order to stop user interaction while upgrading a database? Jun 01 14:16:49 ixc: I can imagine that ANR would happen while it's loading, because the sound loading seems to hog priority with no control over this. But once loaded, do you ever get ANR? Jun 01 14:17:32 im not sure it was loaded, but seems Jun 01 14:17:35 (BTW, ANR = "Application not Responding" in Android.) Jun 01 14:17:42 yes i realised for it Jun 01 14:17:51 Ok. Jun 01 14:18:02 JamesJRH: it's a great place to put that reflection code Jun 01 14:18:06 and i think problem was i checked notification bar Jun 01 14:18:13 and maybe GC removed something? Jun 01 14:19:04 stermi: you could wrap your db upgrade in an asynctask that makes an infinite progress dialog Jun 01 14:19:16 stermi: most DB upgrades should be fast tho Jun 01 14:19:17 readme: Reflection? Jun 01 14:19:46 JamesJRH: in your Piano class or whatever Jun 01 14:19:50 there's a ton of getField or something Jun 01 14:19:52 that's reflection Jun 01 14:19:54 read up on it Jun 01 14:20:00 it's slow. Jun 01 14:20:04 as you noticed Jun 01 14:20:15 dragorn 1) The problem is that in the onUpgrade I don't have a context and progressbar.show need a context as parameter (that's because of public class MusicDatabase extends SQLiteOpenHelper don't have a context) Jun 01 14:20:19 or am I wrong? Jun 01 14:20:56 The problem is that I have to remove a "on conflict replace" from my table, so I've to move all data to a new table where there isn't that rule Jun 01 14:21:02 stermi: i'd wrap the first opening of your database from your activity and handle blocking the user there Jun 01 14:22:01 well I don't know when android will be doing the first update Jun 01 14:22:42 when you open the database Jun 01 14:23:13 i don't beleive anything will touch a db until you create the handler Jun 01 14:23:21 handler/helper Jun 01 14:23:26 wait a moment Jun 01 14:23:40 SQLiteOpenHelper has a constructor with context parameter Jun 01 14:23:55 but I'm pretty sure that there's no way to get it (i think that it's privite in super class) Jun 01 14:24:40 stermi: u use ur handler in a activity Jun 01 14:24:51 u should open it in a async task Jun 01 14:25:10 database upgrade != updating database with new datas Jun 01 14:25:31 database upgrade run when u open the db Jun 01 14:25:35 and in header the version is older Jun 01 14:25:40 than u set up Jun 01 14:25:40 readme: Oh, in Piano init? There's more slow stuff? Wow, I thought it was just that SoundPool that was causing problems. Jun 01 14:28:26 ixc: yeah that's exactly what I've been saying ;P Jun 01 14:28:56 so put the opening into a async task Jun 01 14:29:04 and problem is solved Jun 01 14:30:28 ixc: yup. Jun 01 14:31:16 oh i swaped nicks in my mind, sorry :D Jun 01 14:33:47 ixc: Is your processor 600MHz? Jun 01 14:34:11 JamesJRH: basicly yes, now its set max 1ghz Jun 01 14:35:16 Overclocked to 1GHz? Jun 01 14:36:32 ixc: How many multitouch does it have? Jun 01 14:36:48 yes, the maximum is overclocked to 1000mhz, min is underclock to 250mhz Jun 01 14:37:00 After an image capture intent, I'm trying to scale the acquired image to the next power of 2. The width and height of the scaled image end up as -1. am I missing something? http://ideone.com/TU2n6 (The source image is 150x240 and the new dimensions end up as 256x256) Jun 01 14:37:14 say me a app that can check, im not sure how much Jun 01 14:37:22 never needed more than two :) Jun 01 14:37:38 ixc: Do you have Dev Tools? Jun 01 14:37:44 yes Jun 01 14:38:04 Have a look at Pointer Location. Jun 01 14:39:04 look like two Jun 01 14:39:09 anyone know what the safe exit is for getting out of a preferences window & saving? can I just call finish() ? Jun 01 14:39:11 I don't know where to find Dev Tools on stock ROMs, I use CyanogenMod. Jun 01 14:39:51 JamesJRH: cyanogenmod isn't a stock rom Jun 01 14:39:53 ixc: Yes, I thought so. A lot of the older devices have only 2. Jun 01 14:40:09 appel1: Exactly. Jun 01 14:40:33 CM has Dev Tools, my stock ROM didn't. Jun 01 14:41:00 JamesJRH: I don't know of any stock roms with Dev Tools preinstalled Jun 01 14:41:07 http://www.reddit.com/r/Android/comments/ufiir/does_charging_over_a_standard_usb_port_make_the/ Jun 01 14:42:41 appel1: Do you know if it's packaged separately to install on a stock rom? Jun 01 14:43:14 JamesJRH: you can copy it from a emulator instance Jun 01 14:43:15 ixc: How do you have Dev Tools? Jun 01 14:43:50 Hmm. Jun 01 14:44:10 JamesJRH: on this phone i use 'cynogenmod' but u also can put it to stock rom too Jun 01 14:44:28 mikedg: *golf clap* Jun 01 14:44:56 we need smaller chargecules Jun 01 14:46:47 so, is deprecated or not in ICS? I get a "Unknown animator name: translate" error if I try to use it. Jun 01 14:47:00 Documentation does not suggest that it has been removed, although miscellaneous stack overflow posts do. Jun 01 14:48:54 appel1: It's not the first time someone has asked me how to test multitouch. But it's not very easy to say to non-devs, just get Pointer Location from Dev Tools which you can nick from an emulator instance from the Android SDK. It would be nice if it were packaged separately. Jun 01 14:50:02 JamesJRH: can't you point them to one of all the multitouch test apps on Play? Jun 01 14:50:59 ugh, I need to make eclipse open docs in the browser. Jun 01 14:51:01 so annyoing. Jun 01 14:51:37 appel1: I guess. There are too many to choose from. Jun 01 14:51:52 Any of them Opensource? Jun 01 14:53:50 ixc: Does your processor clocking happen automatically? Or did you manually overclock it more than stock? Jun 01 14:54:30 clock speeds are set for states Jun 01 14:54:44 JamesJRH: just pick one, no idea which ones are open source Jun 01 14:54:58 so is change clocks automaticaly, when system move to other state Jun 01 14:55:02 *cpu Jun 01 14:55:22 the values for states set manually, its not the default values Jun 01 14:56:07 Oh right. Jun 01 14:57:13 ixc: So did you increase those values? Jun 01 14:57:54 some values are increased, some are decreased Jun 01 14:58:28 i think the min was higher default; but i no need that clock speed when my phone idle Jun 01 15:03:24 ixc: I'm wondering whether your slow result earlier was actually /faster/ than if on stock with default values. :-S Jun 01 15:04:39 JamesJRH: system used the cpu so its went to 1GHz Jun 01 15:04:53 but its not means too much Jun 01 15:04:55 afaik it uses cpufreqd and just controls scaling based on load Jun 01 15:05:06 same as a laptop running linux Jun 01 15:05:33 its a old cpu also not much memory Jun 01 15:05:51 ixc: But stock is limited to 600MHz right? Jun 01 15:06:20 stock also use cpufreqd Jun 01 15:06:32 but i think the max freq limited to 600, right Jun 01 15:07:34 ixc: If you change the key size to 50, you can then see when it's fully loaded (not all keys are shown in every layout). Could you time how many seconds that is please? Jun 01 15:08:32 let me search the url, i removed the application :) Jun 01 15:09:09 For me it's about 7 to 8. Jun 01 15:10:52 sec on web my market are inconsistent :( Jun 01 15:11:11 But being dual core the SoundPool can hog it's own core, so the screen is responsive and I can play after about 3s. Jun 01 15:11:20 Hey? Jun 01 15:11:46 installing, let me some second :) Jun 01 15:12:02 What's inconsistent? Jun 01 15:12:19 on web market say its on my phone, and i removed before; not synced Jun 01 15:13:31 but after its done still so laggy Jun 01 15:13:37 Yeah, Play seams to be very slow at syncing, if I update the description or release a new version, it can take hours to push through! Jun 01 15:13:38 i almost cant change settings Jun 01 15:14:09 lets see i done with setup Jun 01 15:15:07 over 40sec Jun 01 15:15:12 got ANR Jun 01 15:15:14 Wow! Jun 01 15:15:32 was 64 second Jun 01 15:15:42 and now its fine Jun 01 15:16:04 Fully responsive now? Jun 01 15:16:11 and i think onpause not correct, if i leave the activity (press preference screen or press home) Jun 01 15:16:18 phone still working hard Jun 01 15:16:26 yes now fully responsive Jun 01 15:16:48 Hmm... Jun 01 15:17:04 i also can check it on a motorola xoom Jun 01 15:17:09 other devices atm not in office Jun 01 15:19:17 on motorola xoom was 16 second Jun 01 15:20:05 ixc: My phone's only 1GHz dual core, so I don't know why it's only 7-8 seconds. Jun 01 15:20:36 its not only depend on frequency Jun 01 15:20:48 and on my phone hard is memory Jun 01 15:20:56 GC run always Jun 01 15:22:34 Xoom surprises me alot. It has twice the ram, and also a dual-core 1GHz, like mine. :-S Jun 01 15:22:55 ixc: But is it responsive while loading this time? Jun 01 15:23:08 (Should be.) Jun 01 15:25:52 JamesJRH: absolutly not Jun 01 15:26:25 :-( Jun 01 15:26:42 I'm going to have to buy more devices. Jun 01 15:27:38 how can I save file on dir on internal sdcard? /mount/emmc/myfolder/ is the correct path? Jun 01 15:27:56 ixc: Hey, does the Xoom have USB OTG? Or do you know of a tablet with OTG? Jun 01 15:28:40 at least some of the galaxy tabs have OTG Jun 01 15:29:04 o hai Leeds Jun 01 15:30:48 Leeds: Yeah, but aren't they 7inch? I'm looking for a full-sized 10.1inch to play IsoKeys. Jun 01 15:31:03 idk about otg :) Jun 01 15:32:01 I want OTG or built-in host so I can start playing around with MIDI over USB host-mode. Jun 01 15:33:26 I have to let the user choose in wich directory download the files, how can I implement this? Jun 01 15:34:26 JamesJRH: soon i go to home from office; if u need any tests i can bring one xoom to home Jun 01 15:39:02 ixc: I quite surprised about your results actually, I tested a while back an older version on my Mum's HTC Desire (1GHz). It was only about 12-13s to fully load. Jun 01 15:39:33 But it had only 2 multitouch which was inacurate, so it wasn't suitable for serious playing anyway. I think most single-core device probably don't have good multitouch anyway, so maybe I should instead just press on with Midi support for now. Jun 01 15:41:21 <`z> JamesJRH, i think the Xoom does have it Jun 01 15:41:29 <`z> from what i recall from bits of information i saw Jun 01 15:41:39 JamesJRH: let me check on desire Jun 01 15:42:10 <`z> Engadget says that you need a rooted xoom Jun 01 15:42:18 <`z> http://www.engadget.com/2011/03/12/xoom-gets-usb-host-functionality-no-thanks-to-motorola-or-googl/ Jun 01 15:42:46 <`z> "The Xoom may have gotten a slight software update last night to prepare it for its long-awaited Flash playing capabilities, but some of the folks over at SlateDroid have an even more impressive -- though much less official -- update, bringing USB host functionality to Moto's slate. Tinkerer-extraordinaire roebeet is the man to thank, granting Xoom owners the ability to read media from USB drives, essentially giving you a limitless amount of storag Jun 01 15:42:46 <`z> e -- provided you own the necessary microUSB OTG (on-the-go) cable and a rooted Xoom. If you've safely satisfied the pre-requisites, enabling the new-new is just a few file transfers and command line entries away. Full instructions available at the source link... if you dare. Jun 01 15:42:46 <`z> " Jun 01 15:43:42 `z: that's so far out of date Jun 01 15:43:48 <`z> yeah Jun 01 15:43:52 <`z> it was posted a year ago Jun 01 15:43:55 xoom has had supported host mode support for a long time Jun 01 15:44:01 <`z> okay then Jun 01 15:46:14 JamesJRH: on desire its took 9sec for me too Jun 01 15:46:29 ixc: Thanks for your tests. I'll see what solutions I can think of but for now I'm done testing. I'll see if I can have another play on some family members' phones. :-) Jun 01 15:46:41 ixc: Oh good! Jun 01 15:47:06 Maybe a lot to do with what else is on the device? Jun 01 15:47:30 almost everything :) Jun 01 15:47:38 `z: Very interesting, thanks for the confirmation. Jun 01 15:49:13 Is the Xoom a good buy? Are there newer 10.1inch devices that also have OTG? (The Xoom is the first I've found so far.) Jun 01 15:49:33 xoom is old and i think not so good Jun 01 15:50:04 now i go home, brb 30min Jun 01 15:50:17 See ya. Jun 01 15:51:03 I wouldn't buy a xoom Jun 01 15:51:14 but that's just me Jun 01 15:53:07 i like motorola, but xoom are old Jun 01 15:53:15 maybe xoom2 but not sure about it Jun 01 15:53:32 and motorola very bad with android upgrades Jun 01 15:53:46 example xoom still has only 3.2 android Jun 01 15:53:52 Here is my mock-design for my configuration activity: http://snag.gy/nVQUj.jpg, here is the configuration.xml: http://bpaste.net/show/MEl0nU1IQahTAfFydLll/ - question -> lines 99-193 - i create this part of the image under network settings - but they all show one below the other - how di i make them line horizontally ? - question2 -> any other suggestion? Jun 01 15:53:53 Hey?? It's 'successor' Xoom2 seems to have a lower spec for some things, and doesn't seem to upgrade anything significantly. Jun 01 15:54:21 my biggest problem with xoom is weight :) Jun 01 15:54:27 is not comfortable Jun 01 15:54:32 ixc: So, I'll only stich CM straight onto it. Jun 01 15:54:40 stick* Jun 01 15:54:50 im not sure about it :) Jun 01 15:55:05 motorola made nice method for block custom roms Jun 01 15:55:10 idk he use on xoom or no Jun 01 15:55:24 they sign the kernel, bootloader Jun 01 15:55:35 lets move to phone Jun 01 15:55:40 D-: Not that crap! Jun 01 15:56:35 I don't really care about weight though, I'm used to lugging round old laptops. A tablet is nothing in comparison. Jun 01 16:01:26 Silly question: is there a way to add device permissions "dynamically"? Ie, I'd like to add (say) a READ_CONTACTS permission when the user wants my app to do something, rather than at install time. Jun 01 16:01:34 kbs: no Jun 01 16:01:51 kbs: you could include helper apps Jun 01 16:02:06 kbs: which you can prompt for installation via a market intent, which add that functionality, i guess Jun 01 16:02:22 dragorn: ah, interesting idea -- hm. Jun 01 16:03:10 would it make the UI flow a bit too elaborate you think? It becomes an 'install new app' sort of thing rather than a permissions dialog Jun 01 16:03:37 kbs: and then you could data share between your helper and your main app. Not sure if that's generally considered a good idea or not - i like the idea of restricting your base permissions and only expanding on demand, letting the app change it's permissions isn't something they ever accounted for though, it's challenging to do it securely Jun 01 16:04:02 kbs: probably you'd make your contact picker say "you need this helper app, click here to get it" Jun 01 16:04:10 kbs: and then it'd go right to the market page for the helper Jun 01 16:04:28 kbs: kind of like the unlocker apps for free+paid stuff Jun 01 16:05:07 Hello, I am creating an AlertDialog that contains a ListView by doing this: http://pastie.org/4008732 I'm trying to figure out how I can set attributes of specific views inside the list view. For example, some items have a text color of Green, while others red. Any idea how to approach this? Been scouring the docs already but can't see a solution. Jun 01 16:05:08 kbs: not hugely complicated, since any time they broke out of the flow and went back to your app it'd just say "you need this to get contacts" Jun 01 16:05:23 dragorn: understood -- thanks for that idea, something for me to chew upon -- much appreciated. Jun 01 16:05:49 kbs: make sure you protect the intents that get the contacts so only your other app can access them, otherwise you could expose the contacts to anything on the phone that can forge your intent Jun 01 16:06:08 dragorn: *nod* indeed. Jun 01 16:06:09 kbs: i'm sure there's some other things to think about security wise too, but that's the first thing that comes to mind as far as being able to expand perms dynamically Jun 01 16:06:51 kbs: you might ask again later in the day too when more people are awake and see if anyone has a better idea Jun 01 16:07:00 kbs: or can spot any serious flaws in the helper app idea Jun 01 16:07:14 dragorn: thanks for the pointers :-) Jun 01 16:11:58 JamesJRH: with notebook i also dont care of weight, but with tablet was not so good Jun 01 16:12:07 i cant park it on my legs Jun 01 16:12:47 i have three radio group buttons vertically and i need to place three vertical strings next to each button - how do i go about this? teo vertical linear layouts next to each other? Jun 01 16:13:37 btw for daily usage i more prefer ipad, but sstill tablets are useless for me:) Jun 01 16:14:08 amoxibos: relative layout? Jun 01 16:14:48 1view cheaper than many:) Jun 01 16:19:03 Hi folks, Jun 01 16:19:03 I need some help with BroadcastReceivers. Jun 01 16:19:03 As far as I understood there a 2 ways to register a BroadcastReceiver: per Manifest and per Context.registerReceiver() Jun 01 16:19:03 My question is now: when I register it with registerReceiver, will I still receive messages after my App got closed? Jun 01 16:20:42 yes Jun 01 16:26:18 Is this String possibly a valid GMT timestamp? 1.337363185441E9 Jun 01 16:26:29 Tha'ts what I'm getting from some API.... Jun 01 16:26:40 hahah Jun 01 16:26:48 why are they converting timestamps to scientific notation? Jun 01 16:27:45 lol i have no idea Jun 01 16:28:33 so its times ten to the power of 9? Jun 01 16:29:08 yeah, basically shift the decimal point 9 places to the right Jun 01 16:29:36 im sure he got a long and converted it himself Jun 01 16:29:53 "he" being luxurymode ? Jun 01 16:30:09 yeah i am using some reflection to create objects from json Jun 01 16:30:13 so could be the string conversion there Jun 01 16:36:02 Svelix: calling registerReceiver ties the persistence of the receiver to the lifetime of the context Jun 01 16:49:18 eclipse help? Jun 01 16:49:27 maybe Jun 01 16:49:55 just did a clean project... now having trouble with andoid.R Jun 01 16:50:06 bugger Jun 01 16:50:16 clean again :p Jun 01 16:50:20 not unusual Jun 01 16:50:23 or you might actually have something missing Jun 01 16:50:40 didnt until I did a clean... let me try clean again Jun 01 16:50:50 try building once Jun 01 16:50:55 clean, build , repeat until error goes away Jun 01 16:52:16 lets move ant+vim Jun 01 16:52:27 grrrr.... not working... done it 5 times now... keep going? Jun 01 16:52:46 eh, probably not Jun 01 16:53:10 of course, keep going until you get a more precise error description than "trouble with" Jun 01 16:53:27 now that i think about it, trouble with android.R is not usual... trouble with your own "R" is what's not unusual Jun 01 16:54:02 R cannot be reolved to a variable Jun 01 16:54:09 resolved* Jun 01 16:54:25 that happens when the resouce compiler doesn't run Jun 01 16:54:54 WORKS! Jun 01 16:55:06 yeah... wont let me compile it either as there are errors Jun 01 16:58:47 ok tried editing the xml and saving it as it should rebuild... still no luck Jun 01 16:59:13 now all errors on every .java for R. Jun 01 17:00:31 what is the default folder of an app ? Jun 01 17:04:19 under: I'm scared to answer because of how you might use this information, but usually /data/data/your.app.package/ Jun 01 17:04:39 After an image capture intent, I'm trying to scale the acquired image to the next power of 2. The width and height of the scaled image end up as -1. am I missing something? http://ideone.com/TU2n6 (The source image is 150x240 and the new dimensions end up as 256x256) Jun 01 17:04:49 for folders ask context :) Jun 01 17:05:00 I downloaded a file with my app but I cant find it!!!! Jun 01 17:05:01 all other is lies :) Jun 01 17:06:25 its in ur memory, or u write it to file ? :) Jun 01 17:07:07 yes to a file Jun 01 17:07:27 fixed.... some reason my manifest went bezerk Jun 01 17:07:35 I'm gonna write in /mnt/sdcard/ Jun 01 17:07:41 all up and runninWeight Graphing aga Jun 01 17:07:52 all up and running again Jun 01 17:08:24 cheers wongk for yur input Jun 01 17:08:27 never write hardcoded pathes Jun 01 17:08:51 what did i do? Jun 01 17:09:02 oh yeah, R Jun 01 17:10:05 so everyone at zynga thinks the amazon appstore is "just for kindle" Jun 01 17:10:11 apparently its not as big as i thought Jun 01 17:10:18 ;) Jun 01 17:10:22 who else would use it Jun 01 17:13:25 hah, look at the case I'm getting to build my next workstation (linux) http://commodoreusa.net/CUSA_C64.aspx Jun 01 17:13:49 ixc: dont? and how can I do? :P Jun 01 17:13:58 btw, with that path, still doesnt work Jun 01 17:14:15 someone look at my liink plz, I just ordered it Jun 01 17:14:24 tell me how awesome i am for it Jun 01 17:14:30 under: context's getfielsdir, getexternal* Jun 01 17:15:36 GeeksOnHugs, pretty cool, I guess Jun 01 17:16:00 heh thanks :) Jun 01 17:16:06 my first computer was a C64 Jun 01 17:16:15 mine too :) Jun 01 17:16:25 they have a C64 themed linux distro I'm gonna use Jun 01 17:16:38 yah, those were the days eh ixc? Jun 01 17:16:55 Im getting into retro computing for fun...I got an emulator on my android Jun 01 17:16:55 i was very young :) Jun 01 17:17:01 me too Jun 01 17:17:21 I was born in 1973...I can't remember the exact year but it was between 82-85 when we got it Jun 01 17:17:43 I remember entering the code listings and I'd be like, yah I programmed this Jun 01 17:17:50 i got it much later (born in 88 :)) Jun 01 17:17:55 wow heh Jun 01 17:18:01 they made them till like 92 I think? Jun 01 17:18:05 so you had the newer design Jun 01 17:18:10 yes Jun 01 17:18:10 unless used Jun 01 17:18:20 i programing some snake game Jun 01 17:18:24 i remember not was programing Jun 01 17:18:26 yep...I had a 128 too later on...but the original case is most nostalgic Jun 01 17:18:29 found a magazine with sourcecode Jun 01 17:18:31 yah! i did something like that Jun 01 17:18:33 yep :) Jun 01 17:18:35 i cant read/write yet Jun 01 17:18:37 i had the TI99 Jun 01 17:18:40 just copy the letters :) Jun 01 17:18:41 did you ever play a game called "Below The Root"? Jun 01 17:18:46 that was the best one ever Jun 01 17:19:01 i not remember names :) Jun 01 17:19:05 haha...yep, peak this poke that lol Jun 01 17:19:08 only remember some screen :) Jun 01 17:19:15 like you ran around giant trees Jun 01 17:19:25 it was an RPG style Jun 01 17:19:29 side scroller Jun 01 17:19:34 i watching screenshots Jun 01 17:19:39 im not sure about i played it Jun 01 17:19:57 well there were tons of great stuff...I had my first flight simulator on c64 Jun 01 17:20:21 the graphics are so LOL looking back...but at the time I was the envy of my friends who had IBMs or Apple IIs Jun 01 17:20:24 btw i still has it Jun 01 17:20:38 its at my old room in parents house :) Jun 01 17:20:40 you should keep it, I think it'll be worth something someday Jun 01 17:20:53 I wish my dad kept mine.....maybbe it's somewhere, I should ask Jun 01 17:21:14 mine was borrowed for years Jun 01 17:21:24 i got it back 2-3years ago Jun 01 17:21:39 back in the day, early 80s you could make it as an independant developer, working in a basement or garage...and I see now with apps, it's a new golden age for independant developers Jun 01 17:21:47 and my cassettes, floppys are disappeared Jun 01 17:21:52 lol...amazing you got it back Jun 01 17:22:02 that sucks :( but you can get them online Jun 01 17:22:11 tthere is a big community around c-64 Jun 01 17:22:28 also gone the 'turbo card' :) Jun 01 17:22:46 the cassette would be amazing to have...so retro...OMG how slow...a tape game would be literally 20 minutes or 30 minutes to load Jun 01 17:23:01 and if the computer froze after you started playing youd have to cry lol Jun 01 17:23:08 :) Jun 01 17:23:44 ixc: File getExternalFilesDir(String type) Jun 01 17:23:54 what does it wants as paramater? Jun 01 17:24:05 it was funny, cause sometimes you'd wonder...is it loading? Or is it froze? cause sometimes it'd come back...so you'd wonder if you restart it maybe it's almost done? lol...hehe Jun 01 17:24:19 under: if u click to function, u will move to the description Jun 01 17:24:19 under: i believe thats why they created documentation Jun 01 17:24:22 and its described :) Jun 01 17:24:40 wongk: its tricky :))) Jun 01 17:24:50 tricksy hobitses Jun 01 17:25:28 :P Jun 01 17:26:16 Which app is the recommended for listening to podcasts on android? Jun 01 17:26:37 I use Google Listen Jun 01 17:26:39 let's see where it downloads :P Jun 01 17:26:41 #android Jun 01 17:26:50 Just cause it's google :P Jun 01 17:26:54 there might be something better Jun 01 17:26:58 i use tune-in, but not recommended just i like it :) Jun 01 17:28:50 listen is unfortunately abandoned (unless something has changed in the past 6 months or so), and feels like it... but yes, #android Jun 01 17:29:01 06-01 19:27:11.845: W/ApplicationContext(10985): Unable to create external files directory Jun 01 17:29:02 o_O Jun 01 17:29:03 really? I didn't know Jun 01 17:29:34 I use it all day everyday, I downloaded it to see what it was, I never did podcasts before ... but would love something better, it's buggy Jun 01 17:29:50 it was a labs project, but labs is dead - there were rumours it was going to be re-released as a video postcast app for GTV, but, well... GTV :( Jun 01 17:29:52 wait, I thinkn there was an update recently, let me check Jun 01 17:29:58 under: u also need check external state Jun 01 17:30:15 its can be unmounted, readonly and many other state Jun 01 17:30:25 do you mean external sd? Jun 01 17:30:51 idk what is ur external storage Jun 01 17:30:52 Leeds: GTV :) Jun 01 17:31:05 No, jan 25 is last updated Jun 01 17:31:13 that's pretty old for google, so yah prolly abandoned Jun 01 17:31:30 I've only internal storage ixc Jun 01 17:31:57 omg, then why u try use external storage? :D Jun 01 17:32:13 I wouldn't want video pod casts cause I like ot listen while I work...I tried listening to technical talks on youtube and even if they aren't doing anything I feel compelled to look at video lol Jun 01 17:32:22 one minor update about a year since anyone heard anything about it... Jun 01 17:32:25 lol Jun 01 17:33:09 ixc: becouse I'm not able to find the function that returns /mnt/sdcard Jun 01 17:33:32 with getFilesDir() I get /data/data/... Jun 01 17:33:44 yes, getFilesDir is internal storage Jun 01 17:34:06 move urself to http://developer.android.com/reference/android/os/Environment.html Jun 01 17:34:07 http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Jun 01 17:34:18 under: getExternal{Cache,Files}Dir() Jun 01 17:34:22 or Environment Jun 01 17:34:31 Leeds's link recommended not mine :) Jun 01 17:34:34 ixc: Environment isn't always the right solution Jun 01 17:34:35 yeah Jun 01 17:35:03 evancharlton: im sure not but idk why, he want get only the external's root path Jun 01 17:35:22 even he doesnt have external storage, so for apps that dir will denied Jun 01 17:36:11 3 month old article "5 Best Podcast Apps for Android" http://mashable.com/2012/03/31/podcast-apps-for-android/ Jun 01 17:37:06 Google Listen is their first one lol Jun 01 17:37:37 maybe this is an app writing opportunity for us :p Jun 01 17:38:13 I don't think there's any doubt that it's abandoned - and that it's been overtaken by more featureful apps anyway Jun 01 17:38:16 let us know when you've finished Jun 01 17:38:48 I agree, it's not great by any means and buggy Jun 01 17:40:10 i think on make a c2dm based 'irc client', work with irssi :) Jun 01 17:40:38 there's already a c2dm/irssi notifier Jun 01 17:41:02 oh, which is it? Jun 01 17:41:12 irssinotifier? Jun 01 17:41:19 i think your time is better spent porting Diablo 3 to Android Jun 01 17:41:46 mikedg: i dont like games :( Jun 01 17:42:05 ixc: do it to attract more people to the system :P Jun 01 17:42:14 hey this is a stupid question but--the support library works on the kindle fire, right? Jun 01 17:42:46 ixc: d3 isn't even a good game, even if you had liked games.. :P Jun 01 17:43:05 I know the kindle fire is a 2.x device, but, I don't know what amazon changes so that is why I ask Jun 01 17:43:42 btw i supply should make mobile clients for mmorpgs Jun 01 17:43:50 where avaiable some features Jun 01 17:44:02 Uurk... example Service that uses a Handler()? the developer sources for "bound-services" isn't helping me much. Jun 01 17:44:06 Hello, i'd like to create a list view that the selected item would expand a little when it's selected. can i do it with a regular ListView? Jun 01 17:44:08 like market places, chats, events log, etc Jun 01 17:44:38 viran: i think stackoverflow full of this question Jun 01 17:45:14 ixc, i will google. thanks Jun 01 17:46:42 arrg....worst piece of crap google wallet....times out and cannot update paynment information Jun 01 17:47:09 diverdude: are you developing with it? Jun 01 17:48:26 would you go into a windows channel asking for os2 development help? Jun 01 17:48:26 no Jun 01 17:48:34 so why would you come in here asking for kindle help Jun 01 17:48:40 ? Jun 01 17:48:46 mikedg: are you talking to me? Jun 01 17:48:53 maybe Jun 01 17:48:56 are you going to shoot me Jun 01 17:48:56 kindle is based on aosp Jun 01 17:49:05 * readme cries Jun 01 17:49:15 canadiancow|work: how do you know? Jun 01 17:49:17 readme kindle fire is 2.3 Jun 01 17:49:18 do you work for amazon Jun 01 17:49:26 yes Jun 01 17:49:28 yes i do Jun 01 17:49:30 * canadiancow|work doesn't really Jun 01 17:49:34 canadiancow|work: yeah. I'm just being cautious. I googled and found mentions of fragments in the text of a book on the fire Jun 01 17:49:35 Leeds: not even Jun 01 17:49:42 so the compat lib must work Jun 01 17:49:42 Leeds: its just crappy Jun 01 17:49:50 readme, i assure you, it does Jun 01 17:49:56 diverdude: then why are you complaining in #android-dev? Jun 01 17:49:57 because we're running stuff on it with the support lib :) Jun 01 17:50:01 readme: how's CheckoutTracker been workin for ya? Jun 01 17:50:02 mikedg: btw os2? if you want I can buy you some just for men hair dye Jun 01 17:50:20 Leeds: i cannot call google and complain :D So i need to spread the message somewhere Jun 01 17:50:34 this is not the right place to 'spread [any] message' Jun 01 17:50:35 wongk: working great, thanks... more features would be nice Jun 01 17:50:47 what you need? Jun 01 17:50:48 it'd be nice to go month to month without having to manually adjust the date range Jun 01 17:50:56 but that's only going to bother me once a month Jun 01 17:51:00 so it's kind of an edge case Jun 01 17:51:08 overall it works very nice Jun 01 17:51:43 canadiancow|work: thanks Jun 01 17:51:53 i could add more options to the set period screen Jun 01 17:52:04 be pretty easy Jun 01 17:52:07 any feedback on my app? Jun 01 17:52:23 i've only gotten 2 calls i think... both said no information available Jun 01 17:52:33 readme, what's your app? Jun 01 17:52:36 I notice 'kill -10' no longer generates a mem dump at least not in Androi 4.0 Jun 01 17:52:42 is there a differnt switch to do this now? Jun 01 17:53:34 GeeksOnHugs: http://bit.ly/JAQb5z Jun 01 17:53:42 wongk: not much info is available Jun 01 17:54:01 keep an eye on it, usually there's info if you get a call from a business or something Jun 01 17:54:11 although i'm planning on adding more input sources to it Jun 01 17:55:33 I bought it :) Jun 01 17:55:49 it's funny how little people actually make phone calls these days :P Jun 01 17:55:52 :Dx1000 Jun 01 17:56:00 hehe Jun 01 17:56:05 I offer good support, please don't hesitate to contact me if you find my app sucks. Jun 01 17:56:06 You'll have to buy my first app though lol Jun 01 17:56:06 phones - no longer for talking Jun 01 17:56:08 I'll fix it. Jun 01 17:56:09 Sure Jun 01 17:56:52 hah, no prob...just helpping you out heh...maybe I should give you four stars, so it looks legit Jun 01 17:56:56 cause they're all five stars Jun 01 17:57:41 sounds legit! do it Jun 01 17:58:24 Where did you get the data? Jun 01 17:58:47 http://opencnam.com Jun 01 17:58:53 I made an open source library for it, for android Jun 01 17:59:11 https://github.com/tom-dignan/Android-OpenCNAM-Library Jun 01 18:01:36 any built in functionalilty for android to pull Memory dump from command line Jun 01 18:01:41 used to be 'kill -10 PID' Jun 01 18:01:48 would generate a mem dump file in /data/misc dir Jun 01 18:01:54 heh...ok, check out my review when you get a chance :) lol...wanted to make it sound not 100% glowing but still recommending so it sounds legit Jun 01 18:02:03 R3dy: for ndk stuff? Jun 01 18:02:21 specifically workign with AVDs Jun 01 18:02:28 within* Jun 01 18:02:34 Oh awesome Jun 01 18:02:37 Leeds: yea that too Jun 01 18:02:37 cool readme Jun 01 18:02:42 R3dy: too? Jun 01 18:02:45 GeeksOnHugs: thanks for the review. Jun 01 18:03:05 no probs :) lemme know if you want me to change anything with it Jun 01 18:03:09 Leeds: sry wrong irc window Jun 01 18:03:16 GeeksOnHugs: i'm not picky Jun 01 18:03:22 I'm asking about hacing command line access to android AVD Jun 01 18:03:28 generating a memory dump from a process Jun 01 18:03:31 nativly in android Jun 01 18:03:37 my cousin wrote an app and everyone in our family got it, and the reviews were like...OMG my life is now complete with this app! Jun 01 18:03:38 like you used to be able to with 'kill -10' Jun 01 18:03:52 GeeksOnHugs: throwing in a 4-star is probably a good idea. Jun 01 18:03:58 yep ;) Jun 01 18:04:06 so far only one of those 5 stars is from someone who was a customer not in my social network before using the app. Jun 01 18:04:13 most people don't even leave reviews Jun 01 18:04:16 I've sold 51 of em Jun 01 18:04:54 do someone know where to find cwm touch sources? Jun 01 18:05:13 Oh nice Jun 01 18:05:24 I use google voivcec, do you know if it's been tested with that? Jun 01 18:05:27 voice Jun 01 18:05:40 it hasn't afaik Jun 01 18:05:45 please let me know how it works Jun 01 18:05:50 OK, cool well I'll def let you know :) Jun 01 18:05:59 I should be getting a call in a bit I'm expecting Jun 01 18:06:44 you're expecting? congratulations! Jun 01 18:06:51 :P Jun 01 18:07:56 this path is driving me crazy Jun 01 18:08:19 with Environment.getExternalStorageDirectory().toString() + "/" + Environment.DIRECTORY_DOWNLOADS ; I get /mnt/sdcard/Download Jun 01 18:09:06 yah verizon needs to figure out something with that...is it a limitation with CDMA or is it some arbitrary limitation verizon does? Jun 01 18:09:14 I allwyas use wifi when I can so that works for me Jun 01 18:09:23 well except when I'm driving Jun 01 18:10:28 under: why is that driving you crazy? What are you trying to do? Jun 01 18:10:40 To save a file Jun 01 18:10:47 in internal memory storage Jun 01 18:11:06 evancharlton: wouldn't it drive you crazy if you asked the system for the download directory and it gave you... *the download directory*? Jun 01 18:11:10 why do you think .getExternalStorageDirectory() would return internal storage? Jun 01 18:11:30 Becouse I havent external one? Jun 01 18:11:46 under: you haven't, or none of your users ever will? Jun 01 18:11:59 lol Jun 01 18:12:02 never get it Jun 01 18:12:37 btw, that returned path is ok, but it doesnt save the file there, maybe becouse of missing / at the end? Jun 01 18:12:45 what 'it'? Jun 01 18:12:49 under: it's not Environment.getDirectoryToStoreSomeShitMagically() Jun 01 18:12:57 Leeds: my app Jun 01 18:14:22 GeeksOnHugs: it should work with 4G LTE Jun 01 18:14:24 and have you requested the permission to modify external files Jun 01 18:14:25 it's a CDMA limitation. Jun 01 18:14:58 under: your app will save files whereever the fuck you tell it to Jun 01 18:15:11 as you probably saw, turning on wifi likely fixes th eissue. Jun 01 18:15:12 so if it didn't save it there, it's because you didn't tell it to save it there Jun 01 18:16:22 Incidentally, there is a similar function that returns a path you can save to for internal. Jun 01 18:19:58 Leeds: doesnt work... maybe missing permissions? Jun 01 18:20:24 under: missing a brain, by the looks of things Jun 01 18:20:53 under: www.catb.org/~esr/faqs/smart-questions.html Jun 01 18:20:54 Read Jun 01 18:21:18 a wise man once said, there are no smart questions Jun 01 18:21:42 wait, no... maybe that's not how it went Jun 01 18:23:50 I feel like IRC channels should be tiered so that there's a dump channel for the uninitiated and then a more intelligent channel (where people don't ask poorly formed questions, among other things) that one can graduate to. Jun 01 18:25:42 they are. you're just stuck in the dump. Jun 01 18:26:13 Leeds: :P Jun 01 18:27:05 its external, u didnt move to internal storage? Jun 01 18:27:37 with Environment.getExternalStorageDirectory().toString() + "/" + Environment.DIRECTORY_DOWNLOADS ; I get /mnt/sdcard/Download Jun 01 18:27:46 btw, with this and that permission, works Jun 01 18:27:50 shoerain: who would want to talk in the dump channel? Jun 01 18:27:57 there would never be answers in it, because no one would go there Jun 01 18:28:35 there's already a dump channel, it's called #android-root Jun 01 18:28:36 don't get the misconception that this is a dump channel. it definitely is not. Jun 01 18:28:40 yeah heh Jun 01 18:29:37 wongk: iv'e got money! new google checkout orders. Jun 01 18:29:44 :P Jun 01 18:32:06 under: what u think about getexternalstoragepublicdirectory? u check externalstoragestate? u read anything in manual? Jun 01 18:34:09 readme: Fine, how about a way to give the more sensible question askers some way to be heard easily? Man, it's easy to not be heard in a channel of ~670 people. Jun 01 18:34:27 first, ignore joins parts quits and nicks Jun 01 18:34:29 maraz: hah, any big enough channel feels 'dumpy' Jun 01 18:34:33 second, ignore idiots Jun 01 18:34:36 use the /ignore feature Jun 01 18:34:47 if you want to get really advanced, you could develop an AI Jun 01 18:34:52 There's still a flurry of questions. Jun 01 18:35:07 post on stackoverflow Jun 01 18:35:24 highlight smart people you think can answer your question if they are around Jun 01 18:35:30 I was thinking of logging questions with a bot (much like memos) that would die after 30 minutes. And maybe have a 'karma' or something associated with the person. Jun 01 18:35:51 Dunno, highlighting people seems a bit 'douchey', it's like flagging for someone's attention. Jun 01 18:35:53 I have been wanting to write an AI to pull answers from stackoverflow for the more simplistic questions Jun 01 18:36:02 it depends on the context whether you should highlight someone. Jun 01 18:36:29 a bot for fetchings stackoverflow results would be good, yes. Jun 01 18:36:49 These are just musings of mine for the low signal to noise ratio on some channels :\ Jun 01 18:37:13 or channel set to invite only, can get invite from a bot Jun 01 18:37:17 chatting is better for immediacy, SO for posterity. Jun 01 18:37:19 bot invite only if u write ur question Jun 01 18:37:30 and its ask anything from related stackoverflow topics Jun 01 18:37:37 if can answer, can join :) Jun 01 18:37:48 also, #offtopic, I guess, so I'll digress. Jun 01 18:41:15 This channel is normally just fine Jun 01 18:41:29 It isn't usually too noisy, either by stupid or good questions Jun 01 18:43:32 Usually people do their homework a bit before asking something. And if not, Leeds chases them off. :P Jun 01 18:54:58 Shoerain, yah I have better luck asking on stack overflow...I think of here more like community and light questions Jun 01 18:55:16 is there a standard command to ignore joins and quits? Jun 01 18:58:00 depends on your client Jun 01 19:20:41 * pragma- peers suspiciously at code.google.com -- y u no respond? Jun 01 19:21:02 o snap, not even google.com is responding for me. Jun 01 19:21:11 all other websites work. Jun 01 19:22:45 they have banned your IP Jun 01 19:29:48 Is there a purpose in constantly unbinding/rebinding with onStop()/onStart() methods? It seems kind of silly, actually. Jun 01 19:34:41 so what did people do for Calendar views before Honeycomb came out? Jun 01 19:38:15 really strange listview problem, need help, my listview rows show text + edit & delete image. Clicking edit shows a dialog. After showing the dialog, if I tap an item in the list, positions of the items switch around ! Jun 01 19:38:47 if I don't show the dialog, positions dont switch Jun 01 19:41:18 What do you think of this broken screen from a HOX http://www.facebook.com/media/set/?set=a.396926993683843.85183.100000996381820&type=3&l=f61ac782a3 Jun 01 19:42:29 Also, is there a simpler version of AsyncTask? Sometimes I just want to run stuff on a background thread, but I don't care too much about options Jun 01 19:44:20 Thread? Jun 01 19:47:04 u can use threads, services Jun 01 19:47:20 or just do async with Void parameters Jun 01 19:47:29 a Thread... Jun 01 19:47:47 but you sound like you dont know what you are doing Jun 01 19:47:49 but its cool Jun 01 19:47:51 noone here does Jun 01 19:48:24 maybe he want generate random in background! Jun 01 20:00:19 Anyone here ever seen such a crack on phone? Jun 01 20:00:31 can I apply styles/themes to an application or view at runtime, i.e. not in XML? Jun 01 20:04:04 shoerain: HandlerThread is my friend and can be yours as well Jun 01 20:08:09 don't lie, HandlerThread has no friends Jun 01 20:08:33 mikedg: why do you copy wongk's answers.. You didn't know it was a thread! Jun 01 20:10:19 jcromartie: of course Jun 01 20:10:22 i didnt know they were wong, I thought they were wight :| Jun 01 20:12:23 jcromartie: http://developer.android.com/reference/android/content/ContextWrapper.html#setTheme(int) Jun 01 20:13:17 now how about this one: can I set the theme from a file I just downloaded from the internet :) Jun 01 20:13:34 no, because resources are preprocessed at compile time. I think. Jun 01 20:13:41 I might be wrong, but I'm pretty sure it's a no. Jun 01 20:13:59 you could probably build an actual apk that has the resources in it, though. Jun 01 20:14:03 and then load that up Jun 01 20:14:12 yeah, I guess .apk update time is nil compared to iOS right? Jun 01 20:14:19 i don't use ios Jun 01 20:14:28 I mean app store approval time Jun 01 20:14:31 but yeah Jun 01 20:14:34 i couldn't tell you Jun 01 20:14:55 but apk need not be downloaded from the market Jun 01 20:15:01 you can simply host them yourself Jun 01 20:15:06 well I know what the App Store approval time is like :) Jun 01 20:15:13 Oh, approval Jun 01 20:15:15 i.e. submission Jun 01 20:15:17 it's automatic Jun 01 20:15:23 * readme derps Jun 01 20:15:45 great so then it's not an issue on Android Jun 01 20:16:11 so a web dev could conceivably learn to wrangle the XML styling documents and upload an .apk if they want to change something Jun 01 20:16:21 (someone other than myself) Jun 01 20:16:44 depends what kind of 'web dev' Jun 01 20:17:05 well yeah, I don't know actually! it's a question of what the client can do once it's in their hands Jun 01 20:17:11 if he is the kind that uses dreamweaver for everything, then you might need to find someone else. seeing as how the android tools will probably upset him if he is that kind of guy. Jun 01 20:17:16 heh yeah Jun 01 20:17:20 bah, keep it on your hands and get the work done for him Jun 01 20:17:23 that's your leverage Jun 01 20:17:23 why wouldnt you want the client to keep paying you Jun 01 20:17:28 mikedg: ++ Jun 01 20:17:39 step 1: give client what they ask for Jun 01 20:17:43 step 2: give client what they actually want Jun 01 20:17:46 well, the client can't necessarily keep paying us, for budget reasons… that's all I can say Jun 01 20:17:52 step 3: bill :) Jun 01 20:17:55 they are *not* cheapskates Jun 01 20:18:01 why should you care about their budget Jun 01 20:18:02 but there are complicated issues Jun 01 20:18:02 run them under Jun 01 20:18:08 give them a break Jun 01 20:18:16 yeah, in this case we definitely are Jun 01 20:18:23 say, I'll do a couple things for you.. then tell them you need to bill again in a few weeks Jun 01 20:18:27 after they recouperate Jun 01 20:18:33 due to the nature of the client… we are happy to oblige Jun 01 20:18:53 if you haven't written the app yet Jun 01 20:18:58 just use phonegap Jun 01 20:19:06 because, it sounds like you dont' want their business anyway Jun 01 20:19:13 no, we definitely do Jun 01 20:19:19 oh ok Jun 01 20:19:19 we're going native on both fronts Jun 01 20:19:28 native is the way to go Jun 01 20:19:36 hello Jun 01 20:19:37 iOS is already in the bag. Android is more of an unknown. Jun 01 20:26:07 yeah I've read enough on "shell apps" and I've tried my hand at the HTML thing… I've got enough experience to know that HTML is good for the web, and native is good for apps… but you end up with a really tortured and convoluted thing when you try to mash them together. Jun 01 20:26:31 as this guy said "they trade several straightforward implementations for a single complex implementation" Jun 01 20:27:25 i agree wholeheartedly with those assertions. Jun 01 20:28:49 Will having my Google Adsense account and Android Market account on separate Google Accounts cause any alarms to go off? Jun 01 20:28:51 and by "the HTML thing" I mean I've developed web apps for years, and native apps too, and I've just recently tried to build a smartphone app in HTML and I wondered why anybody ever tried it Jun 01 20:28:59 it's madness Jun 01 20:29:04 at least, if you know better Jun 01 20:29:28 yeah. people try to make them exactly like native with scrolling and stuff that they implement entirely in JS then it's just buggy slowness. Jun 01 20:29:38 Hey guys, can someone tell me if there is a way to listen for Broadcast Action like "INTERNET CONNECTION ESTABLISHED"? Jun 01 20:29:47 I guess it's pretty alluring to someone who has only ever done classic web apps, or if you are a business guy who knows where to get tons of cheap web developers Jun 01 20:29:55 SpearThruster: You can listen for WIFI changes Jun 01 20:29:57 SpearThruster: see ConnectivityManager Jun 01 20:30:05 I am playing around with websockets, and I want to reconnect all of them, as soon as Internet Connection is Established Jun 01 20:30:06 aha Jun 01 20:30:23 my favorite web apps on smartphones are the oness that don't try to look or feel native… they are just sized properly and designed for touch Jun 01 20:33:35 I think it's good to use WebViews sparingly in native apps, when it makes sense. Just getting carried away, the whole thing in a webview is just lazy. Jun 01 20:34:20 went to barnes & noble yesterday and almost every programming book was ios or android Jun 01 20:34:55 unfortunately I havent bought my new macbook yet, so I bought a copy of the pragmatic programmer. I would've got an obj-c and an ios book otherwise. Jun 01 20:35:33 oh yeah, I'm still using web views for documents Jun 01 20:35:43 with HTML templates that can be updated from the server Jun 01 20:36:00 but any navigation, or list views, or complex views… those are native Jun 01 20:36:09 and data driven as much as possible Jun 01 20:36:44 i.e. if there's two of something in a menu, parameterize them and update the config from a JSON file on a server Jun 01 20:36:48 I wrote a fragment to wrap some javascript chart api up Jun 01 20:36:49 so there can be three Jun 01 20:36:56 some things are just available better in javascript Jun 01 20:37:00 one of those things is chart apis. Jun 01 20:37:09 hm, yeah, a good chart API is hard to come by Jun 01 20:37:18 highcharts is pretty nice Jun 01 20:37:41 bookmarked Jun 01 20:41:09 and you can even render to an HTML canvas element, then get the data as a data-URI and pull it out of the web view and store it or display it natively Jun 01 20:41:20 if you want to just use the chart API but not display a whole webpage Jun 01 20:41:34 nice Jun 01 20:41:40 but that's just a general trick for web views Jun 01 20:41:46 the way my wrapper passes values in Jun 01 20:41:48 is with json Jun 01 20:42:19 context.toDataURL() Jun 01 20:42:36 I'm just saying, if you want to use a JS chart lib without rendering the web view itself Jun 01 20:42:52 I'm not sure I follow Jun 01 20:43:19 if I don't render the webview, where is the chart displayed Jun 01 20:44:21 hide the web view, render to canvas, then call the toDataURL() method on the canvas context to get a base64-encoded PNG image Jun 01 20:44:47 oh, that's prettty slick Jun 01 20:44:51 it's just a way to grab a native image from a canvas Jun 01 20:45:02 I am going to have to implement that in my fragment Jun 01 20:45:07 thanks for the tip Jun 01 20:47:46 oh and it's the canvas itself, not the context sorry Jun 01 20:50:45 hi Jun 01 20:50:48 Call me stupid, (I am), but I don't like the sort of silent AndroidManifest errors, like forgetting INTERNET_PERMISSIONS, or defining the tag. Jun 01 20:50:59 that's not silent Jun 01 20:51:05 that's a very loud crash Jun 01 20:51:18 yep Jun 01 20:51:21 it will stop your app. Jun 01 20:51:22 I need some help... Jun 01 20:51:31 icepickrg: just ask your question Jun 01 20:51:45 been banging my head agenst the same code for a few days teaching myself.... Jun 01 20:51:47 Well silent as in something that android lint could possibly pick up. Jun 01 20:52:16 shoerain: i'm sure they would welcome your patch Jun 01 20:52:24 I have a activity. It calls another activity when a button is pushed. Jun 01 20:52:33 you'd have to check for like a bazillion things :) Jun 01 20:52:38 but, it could be done Jun 01 20:53:03 on the 2nd activity - I have a small surface view, poining to a custom class surfaceview. Jun 01 20:53:38 I'm trying to start a thread from an actity to draw on the surfaceview in the xml layout. Jun 01 20:53:48 with a push button. Jun 01 20:54:02 It errors in the game loop with a null canvas. Jun 01 20:54:23 Hm.. laziness, or the betterment of android-kind?? Jun 01 20:54:36 canvas = this.surfaceHolder.lockCanvas(); <=- canvas is null after this call Jun 01 20:55:46 reel1 = new Reel1(this, null); Jun 01 20:55:46 thread = new MainThread(reel1.getHolder()); Jun 01 20:55:46 thread.SetRunning(true); Jun 01 20:55:46 thread.run(); Jun 01 20:56:02 don't paste in chan, use a pastebin. Jun 01 20:56:08 k Jun 01 20:57:00 and that's it.... Jun 01 20:58:30 "A null is returned if the surface has not been created or otherwise cannot be edited. You will usually need to implement Callback.surfaceCreated to find out when the Surface is available for use." Jun 01 20:58:36 http://developer.android.com/reference/android/view/SurfaceHolder.html#lockCanvas() Jun 01 20:58:54 >> You will Jun 01 20:58:57 usually need to implement Callback.surfaceCreated to find out when the Surface is available for use Jun 01 20:59:10 It is, how do I hook that button to that? Jun 01 20:59:27 I thought your button launches an activity? Jun 01 20:59:34 it has nothing to do with that Jun 01 20:59:47 and it can't possibly be, because if it was, then guess what Jun 01 21:00:00 I hope you aren't catching every single exception lockCanvas is throwing and rolling over it. Jun 01 21:00:11 Most examples I see start the thread right after surfaceCreated... I need to call it after a button push. Jun 01 21:00:40 congratulations, you've discovered something that doesn't work Jun 01 21:00:50 now revise your design and make it work with the architecture you've been given Jun 01 21:01:21 ok - that's why I'm learning it... Jun 01 21:01:27 well you know what you need to do then Jun 01 21:01:28 I think Jun 01 21:01:32 take another crack at it Jun 01 21:01:38 yup Jun 01 21:02:09 let me ask... Can I have 4 diffrent surface view controled by the same thread? Jun 01 21:02:18 i don't know Jun 01 21:02:29 I've never tried to use more than one SurfaceView at the same time. Jun 01 21:02:48 seems like surfaceview is not what I need for my movement as it is only part of the screen that moves. Jun 01 21:04:29 there are other options for movement on an xml layout? Jun 01 21:18:55 http://i.imgur.com/mQAlN.jpg Jun 01 21:22:07 readme is on a roll today Jun 01 21:22:15 keep it up and you might get +v Jun 01 21:22:23 is it the book with "bad motherfucker" on it? Jun 01 21:25:29 yup for days and days.... Jun 01 21:26:03 yup Jun 01 21:26:53 Can there be more then one SurfaceView per Activity Jun 01 21:34:41 :) Jun 01 21:35:21 icepickrg: probably: try and see Jun 01 21:35:40 reading doc on it now..... not sure everything looks full screen. Jun 01 21:36:08 I only need 4 boxes 100dp x 200dp and only that needs to move. Jun 01 21:36:21 slots Jun 01 21:36:34 what will the boxes do? Jun 01 21:36:36 what is inside them Jun 01 21:36:46 move bitmaps from top to bottom Jun 01 21:37:13 are you sure you need to use a SurfaceView? Jun 01 21:37:26 nope - not sure at alll.... Jun 01 21:37:37 try to implement this by subclassing View and get rid of all your threads. Jun 01 21:37:54 thank you... I'll try taht. Jun 01 21:37:56 FrameLayout is actually a better one to extend, because then you don't have to worry about the measurement stuff. Jun 01 21:38:04 extend FrameLayout, override onDraw Jun 01 21:38:10 ok Jun 01 21:38:12 I can do that Jun 01 21:38:24 o/~ little boxes, little boxes, little boxes made of ticky-tacky... o/~ Jun 01 21:38:33 sorry, couldn't help channelling Pete Seeger for a sec Jun 01 21:42:54 use the same gameloop to loop the images in framelayout? Jun 01 21:43:46 Hi, I'm trying to handle a configuration change but the method never seems to get triggered. it's been declared in the manifest. Heres the relevant code. http://bit.ly/KS8h0U Jun 01 21:43:50 ctate, that reminds me of the intro of 'Weeds'... Jun 01 21:44:36 yes, they used covers of that song as the theme Jun 01 21:45:30 on another note, with devices that have Wifi hotspot enabled, is there any reason why device-side server sockets would be blocked at the same time? Jun 01 21:46:00 if I wanted to use a Path to create a "pie slice" inside of a circular bitmap (like a pie chart), would I end up using arcTo() for the outer edge of the slice? and if so, does anyone have any idea how that would work? I can't seem to get it right Jun 01 21:46:21 TheFred: blocked how ? Jun 01 21:46:50 i was doing path.arcTo(new RectF(0, 0, mWidth, mHeight), radius*cos(0), radius*sin(0)) and it looks all wonky Jun 01 21:47:08 i figured the RectF should be the box around the circle I'm using for the pie Jun 01 21:47:09 bubbleguuum, by the device firewall.. my Samsung Europa wont let me connect to socket 8888 Jun 01 21:48:00 TheFred: are you sure the device is reachable (pingable ?) Jun 01 21:49:35 bubbleguuum, yes, I have the hotspot (thats how im connected online now), and have installed my apk via dropbox - it worked ok on my 2.1 ZTE, but not on the 2.2 device Jun 01 21:49:59 * TheFred checks pc firewall Jun 01 21:50:10 * TheFred port 8888 is open on pc Jun 01 21:52:05 bubbleguuum, if i kill my app, and run KWS server (on its default port of 8080) then i can see KWS serving pages to me just fine Jun 01 21:53:30 The Europa is non rooted (as was the ZTE with 2.1 Eclair) Jun 01 21:56:13 bubbleguuum, ok- i dont know why but now its working :-s Jun 01 21:56:26 congrats Jun 01 21:58:05 How can I get the context in AsyncTask ? I've to make a toast Jun 01 22:00:44 1. just make your subclass of AsyncTask take a context pointer as an argument in its constructor, and pass the application context when you make the instance Jun 01 22:00:50 2. dont' use toasts; they're bad UI. Jun 01 22:01:42 [you don't want to use an activity context pointer in the asynctask because the asynctask might outlive the activity, at which point you're both using a stale object *and* have leaked yoru entire activity, which is Very Bad] Jun 01 22:02:25 thanks :P Jun 01 22:04:44 if toast are bad UI WTF are they doing in the SDK ? Jun 01 22:05:06 bubbleguuum: the same thing AbsoluteLayout is doing Jun 01 22:05:10 allowing you to shoot yourself in the foot Jun 01 22:05:36 and ctate is generalizing, Toast isn't *always* bad UI, but if you're using them, you're doing it wrong ;-) Jun 01 22:06:04 the places where the system presents toasts are all places where the code showing them *does not have its own UI* Jun 01 22:06:06 I love Google API design: add a random API and think about it later Jun 01 22:06:39 icepickrg: if you're just looping the images around, you might want to use an Animation Jun 01 22:06:48 also, they're redundant with other more persistent feedback. for example, you might get a toast about bluetooth connecting.. but there's also the notification icon that shows its status. Jun 01 22:06:55 just do anything you can to avoid multithreaded programming. it's not the go-to solution. it's the last resort. Jun 01 22:07:29 ha, yes; to paraphrase what a wise {guy,man} once said about regexps Jun 01 22:07:40 you have a problem, and you think "i'll just add a thread!" now you have two probelms. Jun 01 22:07:48 --jwz + ctate Jun 01 22:07:56 exactly so Jun 01 22:08:05 hi Jun 01 22:08:14 readme Reading animation isn't exactly what I'm looking for? I want to move a static bitmap from point A to point B - in a confined area that is not full screen. Jun 01 22:08:22 I I could do that I would be sooooooooooo happy Jun 01 22:08:32 icepickrg: as in, move it permanently? Jun 01 22:08:41 bubbleguuum: that's exactly the API design philosophy. Couldn't possibly be anything else, no siree. Jun 01 22:08:43 the fustration of working on this for 1 week solid is starting to take tool Jun 01 22:08:58 have you tried any of the animation examples? Jun 01 22:09:03 readme as in loop as in a reel on a slot machine. Jun 01 22:09:34 I can do it programicly - but can't do ti graphicly Jun 01 22:09:35 yeah, that is something you'd use an Animation for Jun 01 22:09:37 read up on those. Jun 01 22:09:44 really? Jun 01 22:09:46 yep Jun 01 22:10:20 so I make an animation that moves from point a to b? Jun 01 22:10:27 TranslateAnimation can do that Jun 01 22:11:11 * readme goes ack to his work Jun 01 22:11:32 ack? Jun 01 22:11:32 I've wasted so much time on surfaceview and I've read animation a few times, but it just dosn't represent a slot machine... it represents a charictars loop of movements. Jun 01 22:14:00 the only disconnect I can see is surfaceview likes input - which I give though a button - rather then the whole surface.... back to the books.... perhaps oneday I'll get though this project. Jun 01 22:15:36 is anyone experienced with custom views? Jun 01 22:15:45 probably a loaded question, let me be more specific :) Jun 01 22:16:13 i have an xml that includes a custom view of mine, ie: Jun 01 22:17:14 * pragma- uploads his updated-with-actionbarsherlock-and-tons-of-improvements app update. Jun 01 22:17:14 readme: the doc on animation is really short, and really not what I'm looking for. Jun 01 22:17:20 ok hold on, I'm having trouble figuring out how to word this Jun 01 22:19:52 Ah don't you love opening the developer console a see a new 1-star hate-hate-hate review Jun 01 22:20:09 best app ever! (1 star) Jun 01 22:21:11 woot, apk up to 800K in size Jun 01 22:21:20 The bigger my apk gets, the more professional it becomes, right? Jun 01 22:21:25 Right?! Jun 01 22:21:28 right. Jun 01 22:21:49 pro tip: add an animated video splash screen whatever your app is Jun 01 22:22:08 in 1080p, of course Jun 01 22:22:24 sure, 1080p is the best way to be device agnostic Jun 01 22:22:38 yep, the devices can scale it to fit, after all Jun 01 22:22:40 no problem! Jun 01 22:22:42 bubbleguuum, thats how you know its going well tho... Jun 01 22:23:47 play.google.com, y u no update my app page immediately? Jun 01 22:24:13 I really do wish we had moar control over the reviews/comments Jun 01 22:24:17 play.google.com why u change your name? Jun 01 22:24:28 TheFred u and every other dev Jun 01 22:24:44 hell, i just wish i could contact the ppl who leave mornic comments Jun 01 22:24:55 indeed Jun 01 22:24:56 i want to create a help button that looks like a circle and has a question mark in it - what do you guys suggest? Jun 01 22:25:04 I just 2 totally moronic comments in less than 15min. Norlmally this never happens Jun 01 22:25:09 i've got some guy trying to contact me via comments. He edits his comment almost daily for the last week Jun 01 22:25:12 Jug6ernaut, contact them with a hitman lol Jun 01 22:25:21 * Jug6ernaut has a live wallpaper that you can double click to play a game, had a reviewer complain that you had to set the wallpaper to play the game... Jun 01 22:25:41 sometimes I encounter some douchebag on IRC who doesn't like my attitude, so he leaves a 1 star review without considering the actual technical merits of the app Jun 01 22:25:54 xD Jun 01 22:26:02 pragma-, what's your app? i'm feeling douchebaggish Jun 01 22:26:05 hehehe Jun 01 22:26:05 * Jug6ernaut always says Jun 01 22:26:06 fu Jun 01 22:26:14 some days are better spent vert far from computers and mobile devices.. Jun 01 22:26:16 u can lead a fool to knowledge, but you cant make them think. Jun 01 22:26:19 *very Jun 01 22:26:27 yo pragma u were mean to me last night, whats the name of ur app :)? Jun 01 22:26:36 i'm be careful. one of my high school friends was killed by a hitman. true story. Jun 01 22:26:47 whoa Jun 01 22:26:51 :| Jun 01 22:26:52 yeah, I almost got killed by a hitman too, no homo. Jun 01 22:26:54 where do you live, mexico-city? Jun 01 22:27:02 lol Jun 01 22:27:02 b1n0ry, where do you live, mexico-city? Jun 01 22:27:20 no, this was in a small town in pennsylvania where he lived. his wife was cheating on him. hired a hit man to get rid of him so she and her lover could be together. Jun 01 22:27:31 yeah that makes sense Jun 01 22:27:32 women are evil. Jun 01 22:27:36 o_O Jun 01 22:27:37 haha Jun 01 22:27:40 she hired a hitman so she could have an alibi. they have kids... she had the kids at church with her of all places. Jun 01 22:27:46 well if thats the case, id let him go free Jun 01 22:28:00 O_o Jun 01 22:28:27 forget it Jun 01 22:28:29 cmon guys Jun 01 22:28:35 i want to create a help button that looks like a circle and has a question mark in it - what do you guys suggest? Jun 01 22:28:53 so - was that the sound of champane corks popping after the oracle/google case ? Jun 01 22:28:53 class HelpButton extends Button? Jun 01 22:29:09 write a round button? Jun 01 22:29:13 i can define a shape in an xml Jun 01 22:29:14 lol Jun 01 22:29:15 http://wearecentralpa.com/wtaj-news-fulltext/?nxd_id=203465&shr=addthis <-- yeah, his last name was "boob" and the killer's driver's name was "butts" Jun 01 22:29:32 so... that joke's out of the way... Jun 01 22:30:14 icepickrg: there is a dev guide, stack overflow, world of blogs, books, look harder :) Jun 01 22:30:16 genius using text messages. Jun 01 22:30:28 there is the nineoldandroids library Jun 01 22:30:29 didn't say he was a "smart" hit man ;) Jun 01 22:30:31 with tons of demos Jun 01 22:30:36 hello all Jun 01 22:30:48 hi QubeZ Jun 01 22:30:54 yo readme Jun 01 22:31:25 b1n0ry: so, not so much "hit man" as "friend with a gun" Jun 01 22:31:30 there are two things that mess up learning something - when there is too little of something and too much of something - having tons of materials od different quality makes it hard to chose the best and whatever you chose you think you will miss out on something better Jun 01 22:31:30 lets everybody say hello to each other for 3 pages of IRC text! Jun 01 22:31:38 hello QubeZ Jun 01 22:31:41 yo readme Jun 01 22:31:41 so more is less - watch on youtube - paradox of choice Jun 01 22:31:48 pragma u make the networklogging app? ive been working on a similar adaptation of logging for some time, and ur app helped remedy my short comings :) thanks, if it wasnt u, thanks to whomever it was (; Jun 01 22:31:59 when you had 5 channels you were happy - when u have 5000 channels you dont feel like watching something cuz u think uir missig out Jun 01 22:32:00 canvs2321: never heard of it! Jun 01 22:32:00 on something Jun 01 22:32:04 same thing when u want to order burger Jun 01 22:32:18 then whomever it was thanks :) Jun 01 22:32:32 android has too much materials and ppl simply dont know where to start Jun 01 22:33:31 amoxibos: that's the same for every technology under the sun Jun 01 22:33:36 readme: will never quit reading... I see a sh1t ton of sprite stuff - but that is not what I'm looking for. Jun 01 22:33:45 ok Jun 01 22:34:01 well you can probably use 4 surfaceviews. i don't doubt it will work Jun 01 22:34:09 it's up to you Jun 01 22:34:48 gotcha.. I just want to use what ever will work... so for I can't get anything to work. Jun 01 22:34:50 i think one of the reasons why ppl like iphone and objective-c is cuz there is one ide - Xcode, one way to compile ur stuff, one way to do something and itunes for learning - in case of android everyone is teaching it, you can develop in 5 different ides, there is dozens of ways to do any single thing - and thats the case when more is less Jun 01 22:35:20 your lost in the sea Jun 01 22:35:22 of info Jun 01 22:35:31 thats why they came up with data mining and machine learning Jun 01 22:35:43 data != information, Jun 01 22:36:59 I like being able to chose Jun 01 22:37:21 I don't care about choice if I get the best Jun 01 22:37:22 readme: if I go back to surfaceview - I'm still getting a null canvas for days... (really... days)... it's frustrating, but I'll never ever quit. Jun 01 22:38:02 icepickrg, what are you wanting to achieve with surface views? Jun 01 22:38:05 i thought people explained the last time you mentioned the null return value that asking for the surface is an asynchronous operation; you get a callback Jun 01 22:38:27 TheFred: move a bitmap from point a to b (not full screen) - it's a slot machine. Jun 01 22:38:54 fuck the Market commment system Jun 01 22:38:55 ok - so you need a timer, and set to co-ords accordingly Jun 01 22:39:02 on that, good night Jun 01 22:39:12 bubbleguuum, gnite Jun 01 22:39:24 right.. I got the logic down... can't get my head graphics. Jun 01 22:39:26 Hey all - if I want to run an http server, but I don't want it to block UI input, etc., am I best putting it in its own Thread, or is there something more appropriate - an async task, a handler, etc.? Jun 01 22:40:09 Hello. Could someone explain me why an inline function with no argument types (eg. inline int32_t color(pColorR, pColorG, pColorB) {... } )compiles (I just called ndk-build) and works well with the android NDK? (I found it in the Android NDK Beginner's Guide book). Thank you Jun 01 22:40:23 icepickrg, i suggest that you re-visit some of the many examples of surface view - for myself I found an example that uses the orientation sensors to move a ball Jun 01 22:41:06 TheFred: I have for days.. The problem is that all examples show a full screen and start the thread upon create. I need to start upon a button push and only a part of the xml layout. Jun 01 22:41:26 (the surface view part) Jun 01 22:41:47 can someone plug me in so I can just get the download? Jun 01 22:42:07 ^^Matrix refrence Jun 01 22:42:14 icepickrg, I got it.... Jun 01 22:42:21 :0 Jun 01 22:42:24 brb - finding url Jun 01 22:42:26 er :) Jun 01 22:43:50 I'm hoping someone can help me with some java (somewhat android related) because no help in #java yet.. I have a URL taht I can wget and get an html file (works) but when I try in a browser or via Android/Java, I get filenotfoundexception. Jun 01 22:44:04 Anyone have experience mimicing wget using Java in Android? Jun 01 22:44:30 hey all.. I am having a problem getting data through an HttpClient.. when i use HttpPost, the server responds with the XML from doGet() method… it seems like it is redirecting with no code tellinng it to do so.. any suggestions? Jun 01 22:45:15 icepickrg, I learned a lot from this: http://www.anddev.org/accessing_the_accelerometer-t499.html Jun 01 22:46:11 hey, any of you happen to know where i can get started on learning how to combine multiple APKs into a single one for distribution? Jun 01 22:46:20 errrr Jun 01 22:46:22 icepickrg, it taught me the basics, and i was able to get a ball moving around the screen - from there i removed the sensor inputs and replaced the position variables with those updated from a timer Jun 01 22:46:33 i'm starting with all the projects as individual applications that i'll be building from source, if that helps... Jun 01 22:46:39 use job skills, escherial Jun 01 22:46:45 iios Jun 01 22:46:46 oops Jun 01 22:46:49 OOP skills Jun 01 22:47:01 and combine them through a UI Jun 01 22:47:04 TheFred: If I had to narrow it down... the thread is kicked off in SurfaceView in all examples so it gets canvas passed no problem. My App kicks the thread from Activity and when I try to getHandler() from the surfaceview it returns null. Jun 01 22:47:17 Tricknology: er, right. that's not particularly helpful :\ Jun 01 22:47:40 well.. I'm not aware of combining apk's into some sort of suite per se Jun 01 22:47:50 I thought that's what the android dash does Jun 01 22:47:51 ok, i guess the answer is to google until i have a specific question, i suppose Jun 01 22:47:58 TheFred: I've made a few apps from tuttorial like this... but again... mine is diffrent in that it doens't kick off with onCreate from SurfaceView - rather it kicks from Acitvity with button push. Jun 01 22:48:10 don't get frustrated.. just saying what I would do Jun 01 22:48:27 if you have a Main.class in every app you're going to be in trouble Jun 01 22:48:34 apk* not app Jun 01 22:49:03 icepickrg, this sounds like an ideal candidate for stackoverflow.... Jun 01 22:49:24 TheFred: oh the hours I spent there... hehehe Jun 01 22:49:56 * icepickrg is a Systems Admin for decades. Jun 01 22:50:09 * icepickrg is now a programmer for a couple years. Jun 01 22:50:33 Tricknology: you're right, that question didn't make a lot of sense at first blush Jun 01 22:51:55 let me give you some background: my lab is working on multiple individual applications that communicate with each other...there's a main app that's the front-end of the whole thing, but it relies on these other not-so-front-facing apps to do things like collect data in the background, etc. Jun 01 22:52:05 Is There Any Way to Start A Thread Sending SurfaceView Handlers from an Activity Button? Jun 01 22:52:21 they're separated into individual apps for historical reasons (mostly so that people can deploy upgrades to them without having to deploy an upgrade to everything) Jun 01 22:52:50 i seeee.. so you want the apk's to "talk" to eachother? Jun 01 22:52:55 this works great in the lab context, but now we'd like to release something on the market, but don't want our users to have to grab three or four different applications and deal with them individually Jun 01 22:52:59 no, they already do, via intents Jun 01 22:53:00 icepickrg, im in the middle of developing a combined android/ubuntu app so thats all the help i have time for right now. Jun 01 22:53:08 can anyone point me to a resource that might shine some light on how you could apply an alpha layer to a bitmap that would make it transparent so that you could see beneath it to a bitmap underneath? Jun 01 22:53:18 i just want to be able to release a single entity in the market for our users to download; otherwise, it just looks weird :| Jun 01 22:53:20 TheFred n/p it's been helpful Jun 01 22:53:24 ty Jun 01 22:53:41 have a single forward app that calls these apk's through intents/bundle to pass data around is my guess Jun 01 22:53:46 again, i haven't done anything like that Jun 01 22:54:05 they're loosely associated and can run individually just fine (albeit most of them don't have a UI), but it'd just make things a lot less painful for the end-users if they were somehow bundled Jun 01 22:54:12 i guess i could just stuff them all into one massive application... Jun 01 22:54:19 btu you should be able to, theoretically, call one app and have it deal with the others (through intents) behind the scenes Jun 01 22:54:29 Tricknology: right, that's precisely how they work right now Jun 01 22:54:38 that's kinda what i'm saying, 1 big app Jun 01 22:54:45 kind of a pain Jun 01 22:54:55 esp when you want to upgrade features Jun 01 22:55:13 i admit, i'm not that advances btu I can see why this would be useful and a pin in the side Jun 01 22:55:20 better than having the users hunt for all these loose dependencies on their own... Jun 01 22:55:47 * Escherial shrugs Jun 01 22:56:11 i wish i could simply 'use job skills' like you mentioned earlier to solve things like this, heh Jun 01 22:56:12 my greenhorn advice would to OO and document EVERYTHING, when it comes time to upgrade you just update certain "cogs" Jun 01 22:56:21 haha i mean OOP Jun 01 22:56:26 object oriented programming Jun 01 22:56:42 er...yeah, do you really have a choice in java? it's an oop language Jun 01 22:56:46 basic data structures type stuff Jun 01 22:57:01 yeah but I'm talking inheritence Jun 01 22:57:25 if you've read the android source code, you'd know you can most certainly write Java in a very 'C' like way ;-) Jun 01 22:57:44 i kind of wish java had some of c's features :/ Jun 01 22:57:53 "android start thread from activity" yields only "How to start an activity from a thread" Jun 01 22:57:54 others i could do without Jun 01 22:58:10 After an image capture intent, I'm trying to scale the acquired image to the next power of 2. The width and height of the scaled image end up as -1. am I missing something? http://ideone.com/TU2n6 (The source image is 150x240 and the new dimensions end up as 256x256) Jun 01 22:58:27 i think it's fine the way it is, but this discussion is way too low-level...i guess what i'm asking more is if there's some trick to allow you to press "install" once on the android market and have it install a number of different APKs behind the scenes Jun 01 22:58:38 I always think different the object oriented. I'm more of a php guy. Jun 01 22:59:00 i shudder at php Jun 01 22:59:15 Escherial, I don't know if there is.. it could be exploited Jun 01 22:59:38 download this game but install a key logger or something Jun 01 22:59:54 agreed about php shuddering; i used to use php, but i realized how quickly it produces spaghetti code despite your best intentions Jun 01 23:00:10 Tricknology: sure, but you could just add that to your game...i don't think it's particularly a security risk Jun 01 23:00:18 my uneducated guess is that android prevents this by design Jun 01 23:00:22 true Jun 01 23:00:23 that's like saying java produces spaghetti code Jun 01 23:00:23 a single APK can host any number of services, interfaces, etc. in addition to activities Jun 01 23:00:27 ridiculous Jun 01 23:00:33 use design patterns, and it will be clean Jun 01 23:00:52 tons of HUGE software is architected in PHP: magento, wordpress, drupal Jun 01 23:00:54 readme: sure, but there's nothing that coerces the naive php developer to maintain any separation between their code and presentation Jun 01 23:01:18 a threatening email Jun 01 23:01:19 can do that Jun 01 23:01:27 My experience has been Object Oriented Code is like Jeopardy, Ass Backwards from human response. Jun 01 23:01:38 at least in other environments you can't just arbitrarily embed code in the middle of your view Jun 01 23:01:39 but you have a valid point. Jun 01 23:01:43 but nyeah, heh Jun 01 23:01:46 <3 python Jun 01 23:01:49 OOP just makes sense. Jun 01 23:01:53 the embed in html stuff is retarded Jun 01 23:01:54 <3 python, too :D Jun 01 23:01:55 in php Jun 01 23:01:56 no thanks Jun 01 23:02:12 that's definitely why so much ugly php code exists Jun 01 23:02:18 you are right about that Jun 01 23:02:19 Python's OO interface is inconsistent (compared to something like Ruby), but it's a lovely language. Jun 01 23:02:30 ok rephrase: is there a way to use a Paint on a canvas to convert part of a bitmap to be transparent so you can see underneath? Also, <3 python Jun 01 23:02:32 yeah, OO was unfortunately something of an afterthought in python... Jun 01 23:03:21 Now, does nobody know the answer to my question, or am I just not pushing the right buttons? Jun 01 23:03:35 Jeaye: repeat your question? Jun 01 23:03:36 * Jeaye pokes some more. Jun 01 23:03:44 After an image capture intent, I'm trying to scale the acquired image to the next power of 2. The width and height of the scaled image end up as -1. am I missing something? http://ideone.com/TU2n6 (The source image is 150x240 and the new dimensions end up as 256x256) Jun 01 23:04:06 tnzr look up 9-patch Jun 01 23:04:52 Jeaye: try throwing a breakpoint in there and seeing if you're getting valid readings on the width and height in the first place Jun 01 23:04:52 Tricknology: i thought nine-patches were for allowing dynamic resizing of assets Jun 01 23:05:06 like allowing a button to stretch to fill the width of the screen and stuff Jun 01 23:05:09 also, i assume you've tested nextPowerOf2() with some sample values to see if your logic is correct, right? Jun 01 23:05:12 Escherial, I am. I've spent quite some time debugging this. Jun 01 23:05:32 I'm actually trying to make something similar to a pie chart, where the pie slice is actually a "window" that lets you see below the upper bitmap down onto the lower one Jun 01 23:05:50 Escherial, nextPoerOf2 has been thoroughly tested and the debugger shows it returns 256 for both (as it should) Jun 01 23:06:17 ok, then i suppose you've narrowed it down to the width/height setter :) Jun 01 23:06:23 try opacity? Jun 01 23:06:30 er...or the constructor, rather Jun 01 23:06:32 right now I'm using Canvas.drawArc() and I keep thinking maybe the Paint i'm using will be able to serve as the mask for this top image Jun 01 23:06:33 The dimensions I stated in the question are from the debugger. I've also tried scaling it via Bitmap.createBitmap and giving it a matrix with a post scale. Jun 01 23:07:10 The same result was given. Jun 01 23:07:14 image.setAplha(int); Jun 01 23:07:22 frankly, i don't have a lot of expertise with image manipulation in android, but hopefully someone else here does Jun 01 23:07:30 Tricknology, That's to me? Jun 01 23:07:36 tnzr Jun 01 23:07:38 is it possible to have scolling textview in a RemoteView? Jun 01 23:07:43 (notification) Jun 01 23:07:46 Tricknology: but not the whole image, just the pie slice defined by the drawArc() :) Jun 01 23:08:16 sweet baby jesus, idk Jun 01 23:08:30 haven't done much sight image manip Jun 01 23:08:53 Escherial, I've been asking every couple of hours for the past 1.5 days. :( The documentation says nothing about such errors either. Jun 01 23:08:57 besides doing what I've learned in matlab.. and youdont want to do that Jun 01 23:09:11 but scan every pixel and see where the bounds of the arc start and stop Jun 01 23:09:18 then set the opacity of each pixel Jun 01 23:09:23 Jeaye: have you tried just displaying the bitmap as-is without scaling? maybe there's something up with it Jun 01 23:09:32 each pixel inside the arc... Jun 01 23:09:41 failing that, and assuming newWidth and newHeight are correct as you say, there must be a bug in createScaledBitmap()... Jun 01 23:09:49 but then you would basically be creating a while new image Jun 01 23:09:51 Escherial, That's a no-go, since the ol' card requires power-of-2 images (OpenGL). Jun 01 23:10:28 Tricknology: yeah not what i'm looking for.. basically trying to use a paint as a mask to set the opacity on a bitmap Jun 01 23:10:40 Jeaye: can you compose the taken image onto a power-of-2 image instead of scaling it up to be a power of 2? Jun 01 23:10:48 not my forte unfortunately :/ good luck tho! Jun 01 23:10:51 (just a big black square, for instance) Jun 01 23:11:11 you'll at least skip this potentially problematic function, then Jun 01 23:11:44 Hmm.. that would not render correctly though, and the texture coordinates would have to be dynamic based on the size of the internal image. Blegh Jun 01 23:11:44 thanks for trying :) Jun 01 23:13:55 I think I'll switch into nix go I can at least give that a go. Thanks for the idea, Escherial. :) brb Jun 01 23:14:03 Jeaye: good luck :) Jun 01 23:17:16 anyone have a link to icon sizes for different dpi's? Jun 01 23:19:55 http://developer.android.com/guide/practices/ui_guidelines/icon_design.html ? Jun 01 23:20:31 which mentions the sizes and links to http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html which has more detail Jun 01 23:20:49 top search result for ICON SIZES in the developer.android.com search box, yo. :) Jun 01 23:21:00 yea i found it a few seconds b4 u replyed xD Jun 01 23:21:04 * Jug6ernaut should have searched Jun 01 23:21:08 b4 asking* Jun 01 23:23:18 readme: yes, animation is what I want. Your the man. Jun 01 23:23:32 ok, i'm about to take multiple apps and somehow auto-merge their activites, services, etc. into one mega-app Jun 01 23:23:42 what could possibly go wrong? (i mean this both tongue-in-cheek and seriously) Jun 01 23:24:01 reliance on global state FTL Jun 01 23:24:51 ctate: is that directed at me? Jun 01 23:25:14 yes Jun 01 23:25:20 as a serious response Jun 01 23:25:52 you're saying that doing what i'm proposing causes them to rely on global state, or that it may not work if they do rely on global state? Jun 01 23:26:01 and what kind of global state are we talking about here? Jun 01 23:26:39 icepickrg, *you're* the man Jun 01 23:27:01 unless readme happens to own something called "the man" in which case you're referencing his "the man" Jun 01 23:27:12 Thanks b1n0ry - your extra cool too Jun 01 23:27:32 * b1n0ry facepalm Jun 01 23:27:59 * icepickrg iz a lazy typ3rz Jun 01 23:29:02 icepickrg: :D Jun 01 23:29:06 lol U no wanna take ownership of cool? LOL Jun 01 23:29:17 Escherial: basically if the apps were written to use shared/global statics, then once they're merged they might expect to stomp on each other or something Jun 01 23:29:55 readme: A tween animation can perform a series of simple transformations (position, size, rotation, and transparency) on the contents of a View object. Jun 01 23:30:54 ctate: that is a frightening possibility :< Jun 01 23:31:12 ctate: ok, at a higher level, is there some way to just have one listing in the market that actually installs a number of apks? Jun 01 23:31:59 I don't think so Jun 01 23:32:08 basically, we're a research lab, so everyone's become used to releasing their own apks and updating them individually Jun 01 23:32:30 readme: surfaceViews only start threads onCreate. Jun 01 23:32:34 each component works without the others (to some extent), but it really only makes sense when you install them all together Jun 01 23:32:43 hence, this need to bundle them up somehow Jun 01 23:33:48 i'm planning on just taking all the src directories and merging them all together (hopefully there won't be any conflicts), then making an AndroidManifest.xml that references them all. i pray for no statics, like you mentioned. Jun 01 23:35:03 icepickrg: surfaceviews don't start threads Jun 01 23:35:09 you start threads Jun 01 23:35:25 :) Threads can only be started by surfaceviews.... Jun 01 23:35:33 when I do it. Jun 01 23:35:50 I think what you mean is: you can't touch views from a thread, unless it's a SurfaceView Jun 01 23:36:04 yes... Jun 01 23:36:10 yes, that's true Jun 01 23:36:11 oO Jun 01 23:36:39 still having trouble with this one, guys/girls: I am using HttpPost() in my android app, but on the servlet it is calling doGet() instead of doPost(), would anyone know why? Jun 01 23:36:40 SOLVED Jun 01 23:36:48 :D Jun 01 23:37:09 and I'm even less grouchy now... Jun 01 23:37:15 grats :) Jun 01 23:37:39 Tricknology: i would have to bet that the 'servlet' is.. wrogn! Jun 01 23:37:43 wrong* Jun 01 23:37:49 will post source Jun 01 23:37:54 of a servlet? Jun 01 23:37:56 wrogn is, ironically, also wrong Jun 01 23:37:56 no wai Jun 01 23:38:51 Tricknology: here's what you need to do to solve your 'servlet problem' -- rewrite the whole thing in Node.JS from the ground up Jun 01 23:39:13 mmmmm Jun 01 23:39:14 ktnx Jun 01 23:39:16 http://pastebin.com/VJ02LYTv Jun 01 23:39:16 java is last tuesday Jun 01 23:39:22 that doesn't seem particularly helpful :| Jun 01 23:39:30 srsly Jun 01 23:39:32 haha Jun 01 23:39:38 "the problem is that this isn't in haskell" Jun 01 23:39:47 I've spent the better part of a year learning the art of the servlet Jun 01 23:39:55 it was working in another app Jun 01 23:39:57 but i do agree that node.js is awesome :3 Jun 01 23:40:05 most everything is the same, this is a little cleaner Jun 01 23:40:27 is anyone here writing android in scala? Jun 01 23:41:15 Tricknology: well, there are two possibilities, anyhow; either your android app is sending a GET instead of a POST, or your servlet is misinterpreting a POST as a GET Jun 01 23:41:29 it is the latter Jun 01 23:41:35 and sorry, that code i posted is not current Jun 01 23:41:36 it is this Jun 01 23:42:41 http://pastebin.com/mkgBg94C Jun 01 23:42:43 404 NOT FOUND Jun 01 23:42:44 oh Jun 01 23:43:23 pleasework indeed Jun 01 23:43:37 anyhow, you might have better luck asking on a channel that's about servlets :\ Jun 01 23:46:11 oh, it could be the type that you're passing in your header Jun 01 23:46:30 perhaps the servlet framework only passes it to doPost() if it's multipart-form-data or something Jun 01 23:47:06 i.e. you should be passing the header Content-Type: application/x-www-form-urlencoded Jun 01 23:47:25 or something similar if you're including binary data (i.e. if you have file upload fields) Jun 01 23:47:46 this is the client side of the problem Jun 01 23:47:46 http://pastebin.com/vDTVafqM Jun 01 23:48:01 http://static.quickmeme.com/media/social/qm.gif Jun 01 23:48:13 the actual site is www.drawingboardapps.com Jun 01 23:48:33 http://www.quickmeme.com/meme/359121/ hotlink issue before. Jun 01 23:49:07 line 60 se.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, "application/json")); Jun 01 23:50:00 it's your servlet Jun 01 23:50:10 check with fiddler, wireshark, netcat etc. Jun 01 23:50:23 Tricknology: i'm almost certain that it's the "application/json" content-type that's throwing your servlet off Jun 01 23:50:44 just urlencode it and pass "x-www-form-urlencoded" as your content-type and that should trigger doPost() Jun 01 23:52:18 so instead of "application/json" Jun 01 23:52:22 "x-www-form-urlencoded" Jun 01 23:55:19 well, you'll actually have to urlencode it, but yeah...for now, try changing that and seeing if it executes doPost() Jun 01 23:55:34 if it does, then you at least know it's the content-type and can figure out what to do about that Jun 01 23:56:08 (i find that i often give advice socratically, since i'm usually not familiar with the domain...) Jun 01 23:58:19 OH HELL YES Jun 01 23:58:20 that was it Jun 01 23:59:57 thanks so mush Escherial Jun 02 00:00:59 Tricknology: no prob, bob Jun 02 00:01:13 kind of weird that it won't accept application/json as POST data, though...there's probably some way to configure that Jun 02 00:01:34 ls Jun 02 00:01:51 er...disregard that :| Jun 02 00:02:17 that's what I was thinking!@ Jun 02 00:02:24 especially because I've gotten it to work that way before Jun 02 00:02:41 and when I was hung up i was using "text/html" Jun 02 00:03:06 switched it to application/json and it worked.. but that was android 2.3.3, maybe something changed between 2.2 and 2.3.3 Jun 02 00:03:26 no.. it's the way your server is handling the Content-Type: header. Jun 02 00:03:38 it should know how to handle application/json Jun 02 00:03:42 you need to figure that out Jun 02 00:04:37 your workaround will obviously work, but it's a workaround and it doesnt have anything to do with your android version Jun 02 00:08:33 blah, server.xml? or hosting issue? Jun 02 00:09:26 and let's talk about security.. what are some vulnerabilitys associated with servlets and sql? Jun 02 00:11:08 this is kind of an android channel. there is a more general programming discussion channel. ##programming Jun 02 00:11:31 github makes nice user-pages, albeit with a minor tweak here and there: http://pragma-.github.com/networklog/ Jun 02 00:11:33 agreed; you could at least ask on #java, perhaps... Jun 02 00:12:09 pragma-: it's not resolving yet Jun 02 00:12:18 pragma-: agreed, that does look nice Jun 02 00:12:24 readme: you sux Jun 02 00:12:29 readme: :) Jun 02 00:12:50 readme: you need to contact your work's network guy or your ISP or something Jun 02 00:12:56 pragma-: you need to make a repo called pragma- and commmit it Jun 02 00:13:04 wat? Jun 02 00:13:11 that's not the repo, that's my username Jun 02 00:13:21 if you want to host your page Jun 02 00:13:23 that's what you do Jun 02 00:13:32 I host mine on github Jun 02 00:13:54 its a project page, not a user page Jun 02 00:14:52 it doesn't resolve on my server either Jun 02 00:14:59 it's not on my end Jun 02 00:16:14 https://github.com/pragma-/networklog/ -- obviously I can see this Jun 02 00:16:19 wt, github's pages documentation keeps redirecting me back to http://pages.github.com/ Jun 02 00:16:33 supposed to go to http://help.github.com/pages/ Jun 02 00:16:52 readme: tons of other people are able to see it! Jun 02 00:18:07 hm, I suppose not all DNS propagates at the same rate. Jun 02 00:18:11 I'll try a host file entry Jun 02 00:18:54 readme: http://204.232.175.78/networklog/ Jun 02 00:19:01 no, that doesn't work Jun 02 00:19:11 it will with the hosts file Jun 02 00:19:20 i mean, that ip didn't work for me Jun 02 00:19:22 yep Jun 02 00:19:23 got it now Jun 02 00:19:26 :/ Jun 02 00:19:28 204.232.175.78: Jun 02 00:19:35 I used that in hosts Jun 02 00:19:38 i'm able to find adb (it's in platform-tools), but for some reason i can't find "android: Jun 02 00:19:42 internet, y u so crazy? Jun 02 00:19:46 vhosts Jun 02 00:19:46 *"android", even...anyone happen to know where it might be? Jun 02 00:20:00 looks nice. i need to do that for my pages Jun 02 00:20:05 :/ Jun 02 00:20:10 I no understand what just happened. Jun 02 00:20:33 when I made the request after adding my host file entry, it changed the request uri Jun 02 00:20:38 you added the ip and a colon to your /etc/hosts file? Jun 02 00:20:39 wat? Jun 02 00:20:44 virtualhosts Jun 02 00:21:10 but the ip doesn't work for ME Jun 02 00:21:21 the IP won't work unless you request it with pragma-.github.com Jun 02 00:21:21 i have to use the name Jun 02 00:21:24 yes Jun 02 00:21:37 * pragma- ponders the situation. Jun 02 00:22:00 so the problem was on YOUR end! Jun 02 00:22:02 204.232.175.78 pragma-.github.com Jun 02 00:22:09 uh, I guess it was Jun 02 00:22:14 * pragma- confused. Jun 02 00:22:21 I should have had your dns hardcoded in my hosts file Jun 02 00:22:27 I wouldn't have had this problem Jun 02 00:22:39 :P Jun 02 00:22:44 But isn't that what dns servers are for? Jun 02 00:22:54 they don't all update simultaneously Jun 02 00:23:02 apparently mine haven't caught up yet Jun 02 00:23:04 but that address has been around for DAYS Jun 02 00:23:12 well that's pretty fucked then Jun 02 00:23:18 yup Jun 02 00:23:55 "Facebook integration in iOS 6 set to be unveiled at WWDC, according to TechCrunch" oh yey Jun 02 00:23:58 * g00s sighs Jun 02 00:24:26 github's bold fade-in over some of the links is pretty hot Jun 02 00:24:26 i don't want social shit deeply integrated into my os. keep it as a dumbass app off to the side, ok thanks Jun 02 00:24:30 * pragma- likes this. Jun 02 00:24:44 where is this "android" program supposed to be located? i need it to create my local.properties file, apparently Jun 02 00:24:54 Escherial: what os? Jun 02 00:25:12 Escherial: android.bat update project -p . (<-- windows) Jun 02 00:25:21 android.sh for linux Jun 02 00:25:47 and its whereever you installed it -- c:\progra~1\android on windows if you chose the default, iirc Jun 02 00:25:53 g00s: fortunately they're talking about ios, so you shouldn't have to deal with it! Jun 02 00:26:08 apps that force portrait ... :/ Jun 02 00:26:34 apparently facebook is trying to make a phone using their facebook platform Jun 02 00:26:45 but all the vendors laughed them out of the offices, each time Jun 02 00:26:58 someone made a joke about FacePalm Jun 02 00:26:59 pragma-: yes and i already made a webos/facepalm joke Jun 02 00:27:02 * pragma- nods. Jun 02 00:27:07 inb4'd. Jun 02 00:27:59 pragma-: aha, that's it :) thank you! Jun 02 00:28:03 people keep talking about zuckerberg being worth 25 billion dollars Jun 02 00:28:03 didn't realize it was a .bat file Jun 02 00:29:31 oGMo: i still feel things things are a fad, or at least individual players like FB are a fad, so it seems dumb to add it to an os Jun 02 00:30:04 i can't help but think of zuckerberg being more like Dr. Evil's son with his pinkie in his mouth -- $25 billion dollars Jun 02 00:30:28 g00s: yeah never stops anyone though .. think motion controls :/ Jun 02 00:30:40 or … Ping in itunes Jun 02 00:30:48 ping? Jun 02 00:30:54 hehe Jun 02 00:31:17 i use itunes for the sole reason no other osx dev seems to be able to figure out streaming music Jun 02 00:31:40 i simply don't use osx Jun 02 00:31:48 (and my osx box has all the great audio hardware) Jun 02 00:31:52 i'm desperate for someone to reimplement facebook in a decentralized, privacy-preserving way Jun 02 00:32:11 Escherial: they did Jun 02 00:32:16 there's a research group at stanford working on an app called musubi that's supposed to promise that, but it's a far cry from being useful quite yet Jun 02 00:32:32 oGMo: oh? Jun 02 00:32:41 it's called not just not using facebook Jun 02 00:33:29 ++ Jun 02 00:33:30 i guess it's easy to be a luddite about it :| i don't like the idea of being spied on all the time, but i do think that there are benefits to the whole social networking system that can be gained without having it be controlled by a single entity like that Jun 02 00:33:32 what non-privacy-invasive feature of facebook do you lack when not using facebook? Jun 02 00:34:08 mostly having a fairly casual way to publish heterogenous data to a lot of people in real time and accept commentary on it Jun 02 00:34:14 just make a github. people who don't code need not be in your social network anyway Jun 02 00:34:18 like a blog Jun 02 00:34:35 except that a blog isn't centralized on a single service; people deliberately have to visit your blog to see specifically your updates Jun 02 00:34:40 readme: heh yeah .. i half-seriously joke that github is my social network Jun 02 00:34:52 Escherial: rss? Jun 02 00:35:12 you're still expecting way too much involvement on the part of someone who casually wants to digest data from people of interest Jun 02 00:35:27 they have to set up an rss aggregator, discover the feeds to which they want to describe, enter them, etc. Jun 02 00:35:41 oooh, hard heh Jun 02 00:35:44 i realize i'm making an argument for the lowest common denominator :\ Jun 02 00:35:59 a population that is inherently difficult to defend Jun 02 00:36:27 but if we simply ignore it, people who don't know any better are going to continue to sign away their privacy on the grounds of ease of use Jun 02 00:36:30 or care about Jun 02 00:36:55 i guess i'm approaching this from the perspective of someone who thinks that's actually a problem Jun 02 00:37:17 i guess i'm apathetic to idiots who want to sign away their life Jun 02 00:37:17 and cares that people don't do that...perhaps i'm just not jaded and elitist enough Jun 02 00:37:29 heh, yep, that's the crux of it Jun 02 00:37:50 i personally think that even if their personal data does get mined to hell, they'll find some way to live with it Jun 02 00:38:11 Yop, what is the best way to transform this string this : "8197271234" to "(819) 727-1667" and I must do this with many differents strings. Is there something fo this (In C# myString.ToString("(000) 000-0000")) or I must use SubStrings? Jun 02 00:38:12 but it'd be a shame to pass up the opportunity to have implemented something better, at least imo Jun 02 00:38:17 unfortunately as soon as you tie together information about people centrally, privacy goes out the window Jun 02 00:38:32 especially when "how do we pay for this" gets involved Jun 02 00:38:51 oGMo: disagreed; you can leverage public-key encryption on a decentralized network where everyone who participates bears part of the burden of keeping the thing up Jun 02 00:39:13 Escherial: good luck with that .. also, diaspora, but Jun 02 00:39:23 it doesn't work like you want, because it's not centralized Jun 02 00:39:51 "decentralized" or "p2p" is not magical Jun 02 00:40:28 i'm aware of that :< the problem with diaspora, musubi, etc. i guess is that they haven't quite yet reached critical mass Jun 02 00:40:52 oh yeah, diaspora. poor thing that kid killed himself Jun 02 00:41:23 well consider google reader .. it pulls in your address book, and friends can (or could) push interesting stuff to you Jun 02 00:41:42 add a way to publish (google blogs?) and boom Jun 02 00:41:49 ...centralized, though Jun 02 00:42:06 rendezvous unfortunately has to be centralized Jun 02 00:43:38 anyhow, the argument's kind of moot. i agree with you that people need to care enough to be bothered to get off of facebook Jun 02 00:44:26 but a suitable alternative that requires the same amount of effort but with better privacy needs to exist in order to even arouse momentum Jun 02 00:45:39 well consider google tried hard with g+ and while it's not a flop, it's not like people are leaving fb in droves (i guess) because it's got slightly better privacy Jun 02 00:46:04 though fb took years to hit critical mass Jun 02 00:47:14 i hope we don't have to wait for i/o to see adt 20 Jun 02 00:48:29 also i'm kinda confused with eclipse 4.x; adt 20 is supposed to work on eclipse 4.2 Jun 02 00:48:57 but i'm still using Helios … is 4.x like a beta stage of eclipse? Jun 02 00:49:40 its weird that if 4.x was release, 3.x would get simianuall updates as well Jun 02 00:54:46 (semiannual :) Jun 02 00:56:09 hiyas. i need some feedback on why our app marketing sucks. can anyone help me? Jun 02 00:57:19 will give url in query, as advertising is forbidden here ;) Jun 02 00:58:07 QaDeS: maybe this will get you started http://www.fiercedeveloper.com/story/top-5-marketing-tips-budget-conscious-developers/2012-05-22 Jun 02 01:00:07 hihi i like the term "budget conscious" Jun 02 01:02:32 i think most devs , android, ios, or whatever, do this as a hobby - so yeah :) Jun 02 01:06:56 i start as hobby Jun 02 01:07:03 but now its my job too Jun 02 01:07:15 when i work i hate it Jun 02 01:07:24 :) Jun 02 01:07:55 well, we just don't have any budget at all yet. waiting for investors to kick in, and they're waiting for good adoption. catch22 Jun 02 01:08:53 thing is, we're active on twitter, facebook and google+, but there's no noticable increase in followers, and no feedback at all Jun 02 01:08:55 QaDeS: i thought all the investors wasted any money they had on fb ipo :P Jun 02 01:09:10 so i think our marketing just stinks like hell. just don't know how to improve it Jun 02 01:09:34 g00s, yep, i guess. idiots ;) Jun 02 01:10:40 also, many investors want to see ios first Jun 02 01:10:53 we got both ios and android Jun 02 01:11:01 thats good Jun 02 01:11:23 and the app is _working_ and fills several existing and growing needs Jun 02 01:11:40 so the problem is most likely not the product Jun 02 01:12:02 there are some other good articles on that site Jun 02 01:12:24 i like this one too http://www.fiercedeveloper.com/story/maintaining-app-critical-its-overall-success/2012-05-25 Jun 02 01:14:06 not a question with our app. it's got potential to grow in features for several years to come ;) i think the problem is in how we talk to prospects, how we present USPs and stuff Jun 02 01:18:07 i/o looks like it will have lots of good sessions this year Jun 02 01:18:12 (for android) Jun 02 01:18:27 speaking of which Jun 02 01:18:35 seems like the calendar is back up. i'm most excited about this one https://developers.google.com/events/io/sessions/gooio2012/106/ Jun 02 01:18:36 phandroid is giving away an I/O ticket Jun 02 01:25:22 any known issues with using android:layout_centerVertical="true" in a list item layout? Jun 02 01:25:38 other than it renders oddly in eclipse? Jun 02 01:26:16 b1n0ry is your root for your list item a RelativeLayout? Jun 02 01:26:25 yes Jun 02 01:26:41 shouldn't be an issue then Jun 02 01:27:14 i have had relativelayouts do weird things :/ Jun 02 01:27:30 you may have to play with minheight or height Jun 02 01:27:55 thanks t0mless. it renders fine in every device i've tested on. but the eclipse designer does look a little weird... then again, eclipse designer gives list item layouts action bars Jun 02 01:30:18 https://plus.google.com/108802577116941948783/posts/WRqiq8Fwfnp Jun 02 01:30:24 dat hair Jun 02 01:35:23 pragma-: holy fuck, is that all the crapware running on the atrix ? Jun 02 01:37:28 i bet as phones get more powerful and can 'handle' more stuff going on, the list will grow and grow Jun 02 01:38:07 if all that stuff was on my droid-1 it would explode :D Jun 02 01:39:30 this is why you never use the default operating system when you get a computer/device Jun 02 01:39:35 wipe and reinstall fresh! Jun 02 01:39:54 also, fear motorola. Jun 02 01:40:25 but seriously, that hear! Jun 02 01:40:27 hair Jun 02 01:43:01 pragma-: maybe he lost the top part from all the stress blur was giving him Jun 02 01:43:10 are you able to android:versionCode="@integer/app_version_code" for you AndroidManifest.xml? Jun 02 01:43:12 oh man how to kick an animation off from a button in activity? Jun 02 01:43:22 android market is complaining...didnt know if im doing something wrong? Jun 02 01:43:39 why does that sound familiar Jun 02 01:43:42 so sick of examples that start animation with onCreate() Jun 02 01:43:47 Jug6ernaut: run lint on this ? Jun 02 01:44:15 * Jug6ernaut tries Jun 02 01:44:43 lint's not complaining Jun 02 02:00:26 how do you pull this canvas into a var. Jun 02 02:00:55 Canvas var = canvas; Jun 02 02:00:58 boom Jun 02 02:01:13 var = null Jun 02 02:01:21 I need var = this.canvas Jun 02 02:02:17 http://loljaja.com/img/ups/17282759831338583492.jpeg Jun 02 02:02:19 i have my buttons defined in an xml - how do i now access these from my activity in order to listen for events? Jun 02 02:02:32 I want to onDraw in a view when a button is pushed... days DAYS i've been working on it. Jun 02 02:02:51 everywhich way I turn, canvas=null; Jun 02 02:04:11 Canvas is about to take a flying leep. Jun 02 02:05:00 sexy legs in my bedroom Jun 02 02:05:26 you shouldn't talk about your mom like that Jun 02 02:08:01 pragma-: TL;DR Jun 02 02:27:11 if i want to import a library in android, it has to be specifically designed for android? Jun 02 02:27:40 (like it can't be a regular java library?) Jun 02 02:32:14 no Jun 02 02:32:16 g00s: http://news.cnet.com/8301-10805_3-57445568-75/microsoft-ticks-off-advertisers-with-ie10-do-not-track-policy/ Jun 02 02:32:17 you can use regular java libs Jun 02 02:32:32 provided they adhere to the subset of Java classes that Android provides Jun 02 02:32:39 * pragma- hears angels singing. Jun 02 02:33:01 and dish network enabled channel-skipping in its dvrs Jun 02 02:33:07 * pragma- pleased. Jun 02 02:33:24 readme: but lo, what's this? you're getting into ads? Jun 02 02:35:44 ads... i hate ads Jun 02 02:35:53 granted, i make money from ads... but i hate them Jun 02 02:36:11 when has an advertisement ever encouraged someone to make a purchase? Jun 02 02:36:31 ok, aunt maybelle and her late night infomercials... Jun 02 02:38:27 pragma-: hm. chrome has an extension for DNT … but no built-in setting, go figure :D Jun 02 02:39:28 pragma-, "Advertisers support the policy as long as [the decision is] made by the user..." So, if the user wants to, they can go in and turn on tracking. How is that not leaving the decision up to the user? Jun 02 02:40:09 or, are advertisers counting on users who don't know what DNT is or aren't savvy enough to disable it? That reaks of an ethics issue to me... Jun 02 02:40:17 ICS up to 7% Jun 02 02:40:18 natch Jun 02 02:41:46 i wonder, what GB adoption was after the same time Jun 02 02:42:05 if the penetration rates will start to decline as more versions of android are out in the wild Jun 02 02:42:26 Jun 02 02:43:03 that's what she said Jun 02 02:43:20 i can't wait until API 7 hits 1% Jun 02 02:43:26 then GTFO Jun 02 02:43:35 minSdkVersion = 8 Jun 02 02:43:42 API 7 is awesome Jun 02 02:43:48 yeah in 2001 Jun 02 02:43:55 JakeWharton, that makes sense. it seems to rule out a lot of options in practice though, doesn't it? Jun 02 02:43:57 is/was what's the difference? Jun 02 02:44:12 API brings all the fun APIs Jun 02 02:44:15 8 Jun 02 02:44:41 View.onConfigurationChanged Jun 02 02:44:45 C2DM Jun 02 02:44:55 that's all I can recall off the top of my head Jun 02 02:46:00 awesome that there are only 2 fun apis Jun 02 02:46:20 hehe Jun 02 02:46:33 i'm sure there's more Jun 02 02:46:50 alcohol is limiting my recollection of APIs introduced three years ago Jun 02 02:46:59 i often forget what is in each version of android: it is announced, and then 6mos later a phone shows up, and i don't even remember why its cool Jun 02 02:47:01 so forgive me from not spewing out 100s Jun 02 02:47:22 need to drink more. then you can spew out all sorts of stuff. Jun 02 02:47:29 hehe Jun 02 02:47:36 in multicolor ! Jun 02 02:47:43 b1n0ry: that's what she said Jun 02 02:47:43 and smell-o-vision Jun 02 02:47:57 +1 JakeWharton Jun 02 02:47:59 http://developer.android.com/sdk/api_diff/8/changes.html Jun 02 02:48:02 lol Jun 02 02:48:07 there's the fun Jun 02 02:49:33 JakeWharton, thanks Jun 02 02:50:25 JakeWharton: hrm, I noticed if I use a PreferenceScreen within a PreferenceScreen, the actionbar disappears Jun 02 02:50:35 yep Jun 02 02:50:42 it launches some stupid intent or something Jun 02 02:50:45 hm Jun 02 02:50:55 there's a bug with posted workarounds on the issue tracker Jun 02 02:51:14 I should start checking with the issue tracker more often Jun 02 02:53:47 it's a closed bug Jun 02 02:54:17 I should change the "Framework Bug" tag to "Not My Problem" **** ENDING LOGGING AT Sat Jun 02 02:59:58 2012