**** BEGIN LOGGING AT Tue Feb 21 02:59:58 2012 Feb 21 03:09:12 anyone dev'ing with c2dm ? Feb 21 03:15:59 brx_: i am Feb 21 03:16:17 from client, my buddy is writing the web service Feb 21 03:16:29 success? Feb 21 03:16:42 i mean, can you establish a 'push'? Feb 21 03:16:45 brx_: yes, we are able to push messages to our phones Feb 21 03:16:59 right now i only have the client written but I can push messagse to my phone via Curl Feb 21 03:17:05 ye same Feb 21 03:17:17 command line, to simulate the server... web service will be up soon to do real test Feb 21 03:17:18 im just wondering if there are any limitations in terms of advertising Feb 21 03:17:24 brx_: advertising? Feb 21 03:17:36 pushing ads to the user? Feb 21 03:17:44 any shop can slap a QR code on their till ad then push daily offers Feb 21 03:17:52 will google allow that? Feb 21 03:18:05 ie. using the cloud service to profit Feb 21 03:18:05 *shrug* Feb 21 03:18:15 im going out in a suit tomorrow :DD Feb 21 03:18:21 huh? Feb 21 03:18:23 anyhow Feb 21 03:18:45 c2dm is still very flaky as far as documentation and terms.. so no real word from google what is and is not allowed Feb 21 03:18:59 ahh i see Feb 21 03:19:17 we'll be pushing ads to users via it but user has to opt-in Feb 21 03:19:39 my app for Beta Invite will be out on Wednesday Feb 21 03:19:41 www.todomapr.com Feb 21 03:19:57 interesting ill take a look Feb 21 03:20:10 thanks, let me know what you think Feb 21 03:20:29 we're just finishing up the video tutorials in the next day or so and we'll start the Beta Feb 21 03:20:59 looks pro! Feb 21 03:21:11 thanks Feb 21 03:21:20 should see the app, we really went the extra mile Feb 21 03:21:34 ye it looks very impressive Feb 21 03:21:36 lots of tutorial videos in-app streaming from youtube via the open-youtube player Feb 21 03:21:47 we hired a professional voice over talent to do the promo Feb 21 03:21:57 the tut vids were voiced by my wife because we have no money right now lol Feb 21 03:21:59 she sounds gre :D Feb 21 03:22:05 great Feb 21 03:22:16 looks really legit mate im loving it Feb 21 03:22:22 thanks, appreciate it Feb 21 03:22:23 try and get a widget in there somewhere Feb 21 03:22:27 people love widgets Feb 21 03:22:32 brx_: i have 2 widgets Feb 21 03:22:37 4x1 and 4x2 Feb 21 03:22:45 swag Feb 21 03:22:56 for this particular app? Feb 21 03:23:00 yes Feb 21 03:23:13 sweet Feb 21 03:23:14 no resizable? Feb 21 03:23:20 allows for quick add and map of tasks plus view calendar etc... Feb 21 03:23:22 lol behave Feb 21 03:23:33 JakeWharton: im new to widgets, i'm sure my v2 will be a better outing Feb 21 03:23:41 ok Feb 21 03:23:49 right now i just want to make something available for users then work on something better Feb 21 03:23:52 i also published my first widget app ;last week but its had 200 downloads already, free ofc Feb 21 03:24:00 i haven't really run into great widget tutorials / resources on the net Feb 21 03:24:04 same Feb 21 03:24:26 now that i have a dedicated web developer / graphic artist for the app... he is going to design the widget Feb 21 03:24:31 v2 of the widget i man Feb 21 03:24:33 *mean Feb 21 03:24:43 where are you based? Feb 21 03:24:50 Minneapolis, Minnesota Feb 21 03:25:05 man i really need to know other nerds irl :< Feb 21 03:25:19 Just formed the LLC with 2 other buddies. I'm doing front-end client code, got a web developer / designer buddy and 3rd buddy working on web service Feb 21 03:25:28 brx_: it helps ya Feb 21 03:25:33 my progress is stifled by knowing nobody to learn from and having to learn everything myself Feb 21 03:25:53 brx_: its tough not having someone in real life to go have coffee with and bounce ideas off of Feb 21 03:26:08 exactly, all my friends like football :/ Feb 21 03:26:22 where are you? Feb 21 03:26:25 UK Feb 21 03:26:26 wait til the web service comes out in 6 weeks for this app... its going to impressive quite a few people (i hope) Feb 21 03:26:30 ah Feb 21 03:26:42 brx_, go to some random convention Feb 21 03:26:45 well all over the US at least we have Meet ups and users groups Feb 21 03:26:46 it all looks really legit i have high hopes for it QubeZ Feb 21 03:26:54 at least in most large cities Feb 21 03:26:56 go find one Feb 21 03:26:58 Syzygy: ive tied looking for these places Feb 21 03:27:02 TheBunny: the AUG in Minneapolis sucks Feb 21 03:27:04 :( Feb 21 03:27:06 im in manchester, england Feb 21 03:27:13 AUG is what? Feb 21 03:27:18 Android Users Group Feb 21 03:27:22 nobody here knows about android dev, well i never find anyone Feb 21 03:27:30 honesly back in MN there was probably more action at IGDA ;) Feb 21 03:27:42 IGDA... will have to look that up Feb 21 03:27:46 games Feb 21 03:27:49 brx_, well, I guess programming in general would do. Feb 21 03:27:53 TheBunny: ahh Feb 21 03:27:55 http://www.igda.org/ Feb 21 03:28:06 but yes a lot of ios / android people there Feb 21 03:28:12 Syzygy: ye i guess, myb i should start sneaking into university seminars Feb 21 03:28:18 cause it was well accessable platforms for games Feb 21 03:28:24 * TheBunny is not in MN now Feb 21 03:28:28 or any more... Feb 21 03:28:32 TheBunny: google says that site may have been compromised lol Feb 21 03:28:39 O_O Feb 21 03:28:43 Syzygy: where ae you? Feb 21 03:28:44 worked find for me... Feb 21 03:28:51 austria Feb 21 03:28:56 its national organization Feb 21 03:28:58 TheBunny: ya the link works but if you google igda, it says that Feb 21 03:29:01 do you know many android devs irl? Feb 21 03:29:14 a few, CS student though Feb 21 03:29:36 no one has that much experience though Feb 21 03:29:37 does http://www.meetup.com/ Feb 21 03:29:40 work out side us? Feb 21 03:29:53 Syzygy: at least there will be some good conversation/learning from one another Feb 21 03:30:01 exactly Feb 21 03:30:04 Out in baltimore 90% of devs are on ios it seems Feb 21 03:30:08 i've never studied computing, always been a solo dev type Feb 21 03:30:30 TheBunny lots of idiots on the east coast Feb 21 03:30:39 j/k Feb 21 03:30:55 there is actually a lot about IOS I like better than android dev Feb 21 03:31:02 ;) Feb 21 03:31:07 I hate apple, hate apples fucked up business practices Feb 21 03:31:08 but currently my we're converging towards lerning C++... plenty of us are ging to take a computergraphics course in which we're going to write a 3D game engine Feb 21 03:31:20 don't look at me I have actually yet to port to android and been in this channel? 3 years? Feb 21 03:31:34 sounds deep Syzygy, and c++ is good fun Feb 21 03:31:38 well good Feb 21 03:31:44 oh shits Feb 21 03:31:48 cause most of the real game industry uses C++ ;) Feb 21 03:31:50 I knew I recognized the nick from someplace =) Feb 21 03:31:56 yeah, well, I'm not sure where I should start Feb 21 03:32:06 I know TheBunny Feb 21 03:32:11 <_< Feb 21 03:32:13 java, if you know java, just read a couple tuts and build a couple demo apps Feb 21 03:32:29 whats the class going to teach? Feb 21 03:32:39 could always get a head start there Feb 21 03:32:54 I'm not so sure actually. and yeah, headstart is what I'm planning Feb 21 03:33:00 ask Feb 21 03:33:01 :) Feb 21 03:33:06 look at pointers Syzygy Feb 21 03:33:09 we're still on hollidays Feb 21 03:33:19 I already know the gist of pointers. Feb 21 03:33:42 hello world? Feb 21 03:33:43 pretty much forced references. need to be deleted. Feb 21 03:33:49 SDL / GL is fun Feb 21 03:33:50 and easy Feb 21 03:33:56 lots of directions online Feb 21 03:34:16 yeah, I just don't want to start tonight I guess Feb 21 03:34:19 http://content.gpwiki.org/index.php/SDL:Tutorials:Using_SDL_with_OpenGL Feb 21 03:34:30 should learn math, after the holidays are over I have an important test Feb 21 03:34:34 10 days, learned nothing Feb 21 03:34:34 There enough there to get a sprite up and running in GL on all platdorms Feb 21 03:35:20 it happens :) Feb 21 03:35:36 I'll surely find appropriate guides when it's the time Feb 21 03:36:59 what does SDL stand for? I'm sure I've heard, but I forgot... there are several languages on wikipedia Feb 21 03:37:15 http://www.libsdl.org/ Feb 21 03:37:35 alright, thanks Feb 21 03:37:59 I'm not sure if I'm allowed to use SDL though Feb 21 03:38:15 you asked where to start on your own :P Feb 21 03:38:23 I have no idea what school is doing Feb 21 03:38:23 Actually I didn't :> Feb 21 03:38:31 TheBunny do you have many apps published? Feb 21 03:38:51 (i mean android) Feb 21 03:38:53 "Syzygy_ Feb 21 03:38:54 yeah, well, I'm not sure where I should start" Feb 21 03:39:06 brx no Feb 21 03:39:11 at the beginning Feb 21 03:39:13 a bunch on ios and mac and well stuff Feb 21 03:39:16 wii Feb 21 03:39:22 ok cool Feb 21 03:39:26 > yeah, I just don't want to start tonight I guess Feb 21 03:39:29 androids been in the back of my mind Feb 21 03:39:39 but sales numbers are SHIT from most game devs I know Feb 21 03:39:49 http://chrisdillman.com/ Feb 21 03:40:18 and I move to baltimore 2 years ago and started on a fulltime MMO porting job and kind of slacked off on my mobile work, Feb 21 03:40:20 Aren't free buisness modells working out better TheBunny? adds and microtransactions Feb 21 03:40:44 most people seem to go the ad route in android for games Feb 21 03:40:53 talking with some unity devs tonight Feb 21 03:41:07 the IOS launches of their apps git x200 more attention and sales etc Feb 21 03:41:15 got Feb 21 03:41:21 that was recently Feb 21 03:41:26 YMMV of course Feb 21 03:41:33 that's surely worth considering then. Feb 21 03:41:36 some folks are doing great with android Feb 21 03:41:58 for game doing both is a best bet using a proven engine,.. ifyou want a busines model. Feb 21 03:42:08 thing is, once it get's iphone publicity, the android users will want it too... probably. Feb 21 03:43:17 on ios the top earning games are all farmville clones Feb 21 03:43:17 with micros Feb 21 03:43:17 which should work on android also... Feb 21 03:43:25 TheBunny: if android is in the back of your mind... why are you in an android dev channel? Feb 21 03:43:30 yeah. Feb 21 03:43:36 autojoin probably SeligArkin Feb 21 03:43:48 Hey, guys. Feb 21 03:43:52 its a good way to learn Feb 21 03:43:54 hey Feb 21 03:44:03 keep up to date on the mobile world etc Feb 21 03:44:15 and some times I can help. Feb 21 03:44:16 I can't seem to get the Android SDK, NDK, and ADB set up. Feb 21 03:44:18 :\ Feb 21 03:44:22 at least when it comes to games Feb 21 03:44:27 engines etc Feb 21 03:44:29 I'm on ubuntu 11.10 Feb 21 03:45:12 I used a script I found on XDA to set it up. Feb 21 03:45:14 :\ Feb 21 03:45:21 Now I can't get the script to properly respond. Feb 21 03:45:39 are you using eclipse? Feb 21 03:45:54 No. Feb 21 03:45:56 It's just a .sh Feb 21 03:46:11 I do have eclipse installed though. Feb 21 03:46:25 I just don't have the SDK, NDK, or ADB installed. Feb 21 03:46:28 I recommend using the Eclipse with the android plugin, it's really the most straightforward way Feb 21 03:46:42 ... the eclipse... wtf. Feb 21 03:47:00 Sorry. Feb 21 03:47:03 Tired as hell. Feb 21 03:47:04 :\ Feb 21 03:47:11 Nice typo Feb 21 03:47:12 lol. Feb 21 03:47:14 yeah i know Feb 21 03:47:29 I don't. :( Feb 21 03:47:37 I'm gonna be back in an hour or two. Feb 21 03:47:47 anyway, eclipse has a really nice feature for installing plugins, it's under help>install new software Feb 21 03:47:59 what's the objection to using a bitmap in /res/drawable and let the system scale down when needed? Feb 21 03:48:07 then you just copy some link from the android site and it will do pretty much everything you need Feb 21 03:49:05 why is there no one in #android that answers my stupid questions? D: Feb 21 03:50:33 eclipse is a pile tho Feb 21 03:51:04 i have yet to find something better for java. needless to say that's one of the reasons I dislike java. Feb 21 03:51:06 xorgate: the system can't scale up Feb 21 03:51:23 well, not well Feb 21 03:51:33 intellij Feb 21 03:51:41 honestly its not vs.net Feb 21 03:51:51 but I'd give it an honest 2nd place Feb 21 03:51:52 i use intellij it's pretty neat Feb 21 03:52:04 infact I quite like a lot of their products Feb 21 03:52:12 resharper is badass... pycharm is nice Feb 21 03:52:17 and youtrack has been a lifesaver Feb 21 03:52:19 I have it installed but never tried it... Feb 21 03:52:28 what does resharper and youtrack do? Feb 21 03:52:58 resharper adds some features of IDEA into visual studio Feb 21 03:53:04 and youtrack is a nice bug tracker Feb 21 03:55:03 I just with VS could do Java D: Feb 21 03:55:19 but anyway the android/eclipse integration is pretty good imo Feb 21 03:55:32 Syzygy_: it does, but MS calls it C# Feb 21 03:56:02 C# > java though, but not going to argue about that now. Feb 21 03:56:33 i dont know C# but want to learn it to play with the Kinect Feb 21 03:59:23 Syzygy_, it is Feb 21 03:59:51 whats one benefit? dont worry i wont argue, i know nothing about C# Feb 21 04:00:14 delegates, properties, linq Feb 21 04:00:16 are 3 Feb 21 04:00:44 Syzygy: there is more places you can put JRE though :P Feb 21 04:01:06 mono runs on just about as many places as the jvm Feb 21 04:01:48 oh, didnt know that Feb 21 04:02:01 no one cares for those other places though :> Feb 21 04:02:12 i do actually enjoy c# if im honest Feb 21 04:02:54 I enjoy c# much more than java Feb 21 04:03:02 but I enjoy jvm-related tech more than .net Feb 21 04:03:45 maybe you can tell me why the android emulator runs very very poorly on my mac Feb 21 04:03:46 Anyone know a good company that is comparable to admob/adsense for apps? Feb 21 04:03:56 over-heats it Feb 21 04:03:58 brx_, because it's full-system emulation Feb 21 04:04:29 it runs poorly everywhere Feb 21 04:04:53 ahh i see Feb 21 04:05:03 I wish the emulator had OpenGL 2.0 support Feb 21 04:05:39 pfn: have you worked with c2dm for android? Feb 21 04:05:43 yes Feb 21 04:06:13 are buinesses allowed to use the service to push offers? Feb 21 04:06:30 read the TOS Feb 21 04:06:31 i mean, is there any limitation in terms of how the service can be used Feb 21 04:06:32 push offers? Like, adverts? Feb 21 04:06:36 i did Feb 21 04:06:43 and i didnt actually see anything, but i expected something Feb 21 04:06:57 ima read it again actually Feb 21 04:07:17 brx_: well, you can't really push offers... you tickle the phone with a c2dm message and have it come get the offer Feb 21 04:07:24 i know Feb 21 04:07:26 1024 bytes Feb 21 04:07:48 man my app relies on maps and the damn maps TOS is so fucking confusing Feb 21 04:08:03 i could never get a hold of anyone from the maps teaam to respond to my emails Feb 21 04:08:11 too bad Feb 21 04:08:23 seems you figured it out anyway Feb 21 04:08:25 QubeZ: they have better things to do than read the TOS for you. :P Feb 21 04:08:28 questions go on google groups Feb 21 04:08:43 they don't respond to private emails Feb 21 04:09:00 there is one section that says something about not using app for sole purpose of displyaing business listings but my app's sole purpose is a to do manager. Users may search for businesses on it since it uses Places API Feb 21 04:09:06 im guessing that is ok Feb 21 04:09:25 hopefully for you it is Feb 21 04:10:53 hello writing an app and trying to detect if LOCK_PATTERN_ENABLED and eclipse is not detecting it as a const was this implemented in some later version of SDK or anyone know another API then settings.secure to access this Feb 21 04:11:27 wow sorry I need punctuation Feb 21 04:11:53 yup, settings.secure isn't punctuation :P Feb 21 04:12:04 no I mean in sentence I just wrote Feb 21 04:12:15 myne-us: ya thats what im talking about Feb 21 04:14:42 anyone know where I can find examples of how to use AccountManager#getAuthTokenByFeatures? Feb 21 04:15:49 ah nvm solved it, it was introduced in 2.2 Feb 21 04:15:55 I was building on 2.1 Feb 21 04:17:21 brx_, customers do not like getting random notifications Feb 21 04:17:30 but if they opt in Feb 21 04:17:35 they download the app by choice Feb 21 04:17:40 because they frequent the store Feb 21 04:17:45 see the qr code, and then insta;; Feb 21 04:17:46 brx_: that is not "opt in" Feb 21 04:18:03 there will be nothing hidde, "download our daily offers app" Feb 21 04:18:03 brx_, as for pushing offers, groupon already does that Feb 21 04:18:10 ahhh ok great Feb 21 04:18:13 brx_, 2, stores typically don't have the infrastructure to do it Feb 21 04:18:59 i suppose that could be good or bad Feb 21 04:19:28 i.e you could write them a custom implimentation, android app, webservice, front end to compese the messages Feb 21 04:20:11 + hardware! Feb 21 04:20:12 is there an android site for low-level system development as opposed to making java based apps? Feb 21 04:20:25 yeah, the source :p Feb 21 04:20:51 malcontent: not that I'm aware of. If you find one let me know Feb 21 04:21:09 I'm intrested in those kinds of "apps" Feb 21 04:22:20 ok. me too :) Feb 21 04:22:43 depends on what you're talking about Feb 21 04:22:52 if you mean low-level as in system, then you have the android sources Feb 21 04:23:02 if you mean low-level as in C/C++ and not java, you have the ndk Feb 21 04:23:10 the ndk is documented on d.android.com Feb 21 04:23:18 well, I will have to take a look, who soesn't love C source right? Feb 21 04:23:36 i have a really stupid error, is there someone i can send it to to look at Feb 21 04:23:41 i dont want to wall of text the channel Feb 21 04:23:59 pastebin Feb 21 04:24:00 pastebin Feb 21 04:24:00 http:/pastebin.com Feb 21 04:24:04 nausium: that's what the pastebin... yeah Feb 21 04:24:09 orly Feb 21 04:24:11 but was thinking of, well sockets programming and making a 802.11 server :) Feb 21 04:24:18 but seriously its like 10 lines so i was being lazy Feb 21 04:24:44 Hmm...I was looking into porting networking tools... Feb 21 04:24:50 malcontent, that's not an 802.11 server Feb 21 04:25:04 or maybe getting into the linux kernels Feb 21 04:25:07 im fairly certain this is dailywtf worthy so dont judge me too harshly, im still learning java Feb 21 04:25:08 http://pastebin.com/25Nr4nyh Feb 21 04:25:33 nausium, read thinking in java, free book (3e) Feb 21 04:25:41 will do Feb 21 04:25:43 your post is incomplete Feb 21 04:25:45 nausium: looks incomplete Feb 21 04:25:48 no? I never had a need to attempt one before, but I thought most all networking was done via c-sockets Feb 21 04:25:51 my mistake Feb 21 04:26:01 malcontent I think there is something about that on some of the android hacking sites, hackaday had something on low end wifi work a while back Feb 21 04:26:11 whats glaringly missing Feb 21 04:26:15 malcontent, with your level of knowledge (or lack thereof), you really should be doing your development in java Feb 21 04:26:21 I ran across some stuff on stackoverflow Feb 21 04:26:33 I have enough knowldge to dislike java Feb 21 04:26:41 same here Feb 21 04:26:42 you know nothing Feb 21 04:26:58 and have programmed some network stuff b4 on linux, but it was just simple msg client as a practice really Feb 21 04:27:02 snigger Feb 21 04:27:06 I dislike java because of the security Feb 21 04:27:08 don't lie :p Feb 21 04:27:19 Trcx, too much security for you? Feb 21 04:27:59 pfn: bruce eckel? Feb 21 04:28:08 thats a serious case of Programming Book Cover Feb 21 04:28:09 nausium, that's the one Feb 21 04:28:17 java just seems too removed for the basic stuff... linux has libraries, aka sockets, that do the work, so why put java on top of it all? Feb 21 04:28:31 malcontent, it's not too removed Feb 21 04:28:43 and they're not "libraries aka sockets" Feb 21 04:28:57 sockets are a fundamental part of network programming Feb 21 04:29:06 and you have libraries to access it in any language you like, generally Feb 21 04:29:23 on linux Feb 21 04:29:26 like droid Feb 21 04:29:37 the kernel is not in java Feb 21 04:29:57 your point? Feb 21 04:29:57 kernel is native Feb 21 04:30:09 why rewrite a kernel when a useful one is available for free Feb 21 04:30:14 but I never had a smart phone -- im in the market, so maybe if there is a jre no matter what it doesn't matter Feb 21 04:30:30 to me running java on linux to get networking to work is just wrong Feb 21 04:31:08 malcontent, it's not "get networking to work" Feb 21 04:31:13 i r biased Feb 21 04:31:35 getting networking to "work" is irrelevant of java or c or whatever Feb 21 04:31:41 pfn i think this is the answer to my question and probably all my others, thanks for the help Feb 21 04:31:47 networking is the kernel's job Feb 21 04:32:08 It's not "to get it to work" any more than Gnome+networkmanager provides drivers under a desktop linux. But just like most consumers wouldn't want to edit wpa_supplicant.conf themselves, there is no market for a pure-linux no-gui phone. Feb 21 04:32:24 (ask nokia how well the N900 did) Feb 21 04:32:34 I was looking for a n900... Feb 21 04:32:46 Lol, I love my N900 Feb 21 04:32:57 Trcx: we're not consumers, is my point Feb 21 04:33:03 Granted Feb 21 04:33:13 * SeligArkin has a freerunner! Feb 21 04:33:42 SeligArkin: I've got some openmoko stuff somewhere, I don't remember where anymore Feb 21 04:34:20 Somewhere I've got some linux-based 'green' phone, I forget what it was even supposed to be, it had some sort of QT on it I think Feb 21 04:34:24 ok what about iptables or routing... is this stuff readily accessible Feb 21 04:34:29 * SeligArkin is going to compile her own stack for it to control her smart house at some time Feb 21 04:34:32 malcontent: if you root, yes Feb 21 04:34:41 malcontent: otherwise, no Feb 21 04:36:27 SeligArkin: I've got a small stack of nokia devices somewhere which I always meant to turn into automation controls Feb 21 04:37:00 * SeligArkin snickers Feb 21 04:38:49 malcontent: Check your PMs please Feb 21 04:39:07 srry Feb 21 04:39:09 was cooking Feb 21 04:39:30 i still have my nokia phone somewhere Feb 21 04:39:39 i literally used it to drive a nail in last week Feb 21 04:39:44 still works Feb 21 04:46:01 how do I get a list of cameras for a device? Feb 21 04:46:41 oh wait Feb 21 04:46:42 i think i got it Feb 21 04:46:50 crazy Android APIs Feb 21 04:48:21 Why are my Views overlapping when I create them like http://ideone.com/sXmWL ? Feb 21 04:48:30 I quite clearly stated that one should be to the left of the other. Feb 21 04:49:33 why are you doing that in code instead of xml, kamoricks Feb 21 04:49:55 SeligArkin: Because it's actually a dynamic list of properties loaded at runtime. Feb 21 04:50:11 QubeZ: the 1024byte data.payload: are you using json or xml here and then parsing it in the reciever in order to build a bundle or smt? Feb 21 04:51:38 good night Feb 21 04:51:56 yeah xml won't add much overhead to your 1024 message ;) Feb 21 04:52:11 you could do something like json + gzip Feb 21 04:52:15 or that protobufs thing or whatever Feb 21 04:52:20 ahh noe theres an idea Feb 21 04:52:22 but the whole point is that you don't send much data Feb 21 04:52:39 ok thanks Feb 21 04:53:10 So uh. Has *anyone* built a layout programmatically? Feb 21 04:53:32 Android documentation promises to tell me how, but never actually does so; it's not like Swing. Feb 21 04:53:43 ...thankfully Feb 21 04:53:51 not that what we have is much better Feb 21 04:53:56 but certain things are Feb 21 04:54:12 All I'd like to do is add a label and a textedit to a relativelayout and not have them overlap. Feb 21 04:54:24 brx_: i only use json Feb 21 04:54:36 brb gotta reboot Feb 21 04:54:40 ok im going to go with json + gzip Feb 21 04:54:46 I've added them directly. No. Added with constraints. No. Added with the above code, with a specially-crafted layoutparams and great lengths taken to avoid duplicate ids. No. Feb 21 04:55:16 I need to link to a shared library from multiple shared libraries that get dload()'ed. I'm not sure what I'm doing wrong, but this isn't working at all. Anyone experienced with linking to shared jni libs? Feb 21 04:56:22 kamoricks, the layout info goes on the children Feb 21 04:56:22 not the parent Feb 21 04:56:37 JakeWharton: And that'd be it. Thanks. Feb 21 04:57:10 huh, IAndroidTarget.A_BUNCH_OF_CONSTANTS are all deprecated Feb 21 04:57:17 where is the correct place to look that stuff up now Feb 21 04:58:03 UrlEncoder on the string obtained from EditText sometimes replaces spaces with HTML Code sometimes with + because of which the server does not respond is this the right behavior? Feb 21 05:05:02 c_nick: Either %20 or + are valid replacements for a space in a URL, for historical reasons. Feb 21 05:09:42 What could cause R not to be generated in an Android project? Feb 21 05:09:50 (initially to begin with) Feb 21 05:10:24 hello all Feb 21 05:11:47 Perhaps XML generation failing? ActionBarSherlock/library/res/values-v14/abs__styles.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'. Feb 21 05:12:33 compile with Android 4.0 Feb 21 05:12:48 or greater Feb 21 05:14:30 Aha. Thanks Feb 21 05:14:31 vadi2 incorrect xml Feb 21 05:14:45 Well, it was correct, I was targetting the wrong version for it Feb 21 05:15:10 This targetting and support version business is confusing at start Feb 21 05:16:05 i should blog about the differences between min/target SDK and compilation SDK Feb 21 05:16:15 in the context of ABS Feb 21 05:17:42 yes please, it'd help Feb 21 05:18:01 compile with 4.0+, target 11+, min 7+ Feb 21 05:18:12 for ABS4 Feb 21 05:18:13 JakeWharton: i dont mean disrespect by this but what does your library do really? Feb 21 05:18:21 easy way to use the actionbar or backward compatibility? Feb 21 05:18:23 full ICS action bar backport to 2.1+ Feb 21 05:18:28 one API Feb 21 05:18:29 one theme Feb 21 05:18:39 to rule them all Feb 21 05:18:41 JakeWharton: ahh ok, I'd like to learn it. I'm targetting 2.2 Feb 21 05:19:06 JakeWharton: why doesn't Google take your code and integrate it into their compatibility lib? Feb 21 05:19:16 ADT doesn't support resources in .jars Feb 21 05:19:19 and there are too many compromises Feb 21 05:19:35 k Feb 21 05:19:41 if Android styles didn't suck so hard it would be a lot nicer Feb 21 05:19:54 well, it's not that the styling sucks Feb 21 05:20:13 if API 8 and below didn't suck so hard and blowing up when I push them to their limits :) Feb 21 05:23:43 do pre-API 9 cameras have an orientation? Feb 21 05:24:33 thanks kamoricks.. Feb 21 05:27:49 Hi guys i paid for a developer account some time ago but now i can't seem to find the login page to enter into my developer account Feb 21 05:28:12 can someone tell what is the website address to enter into the developer account portal? Feb 21 05:28:43 market.android.com/publish ? Feb 21 05:30:12 it doesn't seem to remember me as a developer Feb 21 05:31:47 nvm i used the wrong account Feb 21 05:35:50 I'd like to treat everything that can be shoved in a Parcel as Parcelable. Are there wrapper classes for Integer, String, and so on? Feb 21 05:36:07 Anyone good with MEcard QR codes? Feb 21 05:36:24 This MECARD:N:t,t;ORG:tr;ADR:2129 west fawn drive, phoenix, az 85041;TEL:6022761234;EMAIL:t@g.com;URL:g.com isn't seperating my address field when scanned to an android Feb 21 05:49:11 does the andriod market allow for the same named apps Feb 21 05:58:42 tyl: long as the package name is different Feb 21 06:21:35 Hello. If would like to create a very simple POST data app to a tablet using Android 3.2, what is best? HttpClient or (http)UrlConnection? Feb 21 06:22:57 Bebi - people will claim all day long httpclient is better Feb 21 06:23:08 I've found some seriously weird shit with http client Feb 21 06:24:00 in gingerbread and on, they made some performance tweaks to httpurlconnection and in swapping out http client for httpurlconnection, I gained performance and use less memory Feb 21 06:24:08 may not have been tuned right in the first place Feb 21 06:25:08 oh, okay. Thanks !That has been bothering me for a while now Feb 21 07:35:19 hey guys if u had to make a screen like this would you do in xml or do you think surface view would actually be easier quicker? last time i had to make a super intricate screen like this in the xml took days im now thinking surface view would be a nice work around to do easily http://a2.mzstatic.com/us/r1000/098/Purple/e4/77/5a/mzl.pjrjpxpn.320x480-75.jpg Feb 21 07:36:26 Gaz`, XML Feb 21 07:36:39 or you could write a custom layout that extends ViewGroup Feb 21 07:36:43 any reason why? seems so damn difficult to get this right in xml Feb 21 07:36:54 shouldn't be Feb 21 07:37:16 surfaceview i could have the job done in like 2 mins Feb 21 07:37:22 xml will take 8hrs+ Feb 21 07:37:48 and even then the xml will mess up Feb 21 07:38:06 i feared xml would be the asnwer, atleast the urists answer Feb 21 07:38:28 to me it seems xml is only good for stasndard android guis Feb 21 07:38:31 not the cool custom stuff Feb 21 07:38:42 what's not standard here? Feb 21 07:38:49 it's just a grid of icons Feb 21 07:39:06 so it would be image buttons right? Feb 21 07:39:14 include that text as part of the graphic for the button? Feb 21 07:39:25 what abnout the text inbetween like NEWS & MEDIA what would that be Feb 21 07:39:35 Hi all! Someone send a wall post to Google plus? Feb 21 07:39:37 textview? Feb 21 07:39:50 yeh but itll never look the same Feb 21 07:39:54 and how do i get them lines etc Feb 21 07:40:04 i want it to look identical Feb 21 07:40:08 not similar Feb 21 07:40:35 the lines can be either imageviews or added as extras to the text view Feb 21 07:40:45 see drawableLeft and drawableRight Feb 21 07:41:15 ok thanks Feb 21 07:41:27 altho i still think surfaceview woudl be a cunnign way of not wasting hours :) Feb 21 07:42:18 wouldn't surface view get messed up on differnet sized screens, unless you were really carfeul Feb 21 07:42:36 well if i had that image in all the right sizes Feb 21 07:42:40 the xml can take care of all this for you Feb 21 07:42:45 yeh i guess so Feb 21 07:42:48 well ill try xml Feb 21 07:42:53 done a screne like this once before it was a pain Feb 21 07:42:56 hi , I need a bit help here on density independence , it doesn't scale well on a tab version . Feb 21 07:43:16 would be fine if a good gui editor existed Feb 21 07:43:18 alex_PP : Can anyone kindly let me know which coding i need to add ? http://s1271.photobucket.com/albums/jj636/pbnewb/?action=view¤t=Resolution1.jpg Feb 21 07:43:20 thanks :) Feb 21 07:43:34 wanted to make it full screen Feb 21 07:43:59 bbiab shower Feb 21 07:44:27 newbuser, can't really help there with seeing your layout too Feb 21 07:45:19 alex_PP : layout , didn't write much about it , let me pastebin Feb 21 07:46:01 Gaz`: you smell Feb 21 07:46:06 if i had to guess there isnt much of a layout per say Feb 21 07:46:43 majong? :P Feb 21 07:46:55 no duhh Feb 21 07:46:57 its checkers Feb 21 07:47:23 oh damn Feb 21 07:47:29 I always get those two mixed up. Feb 21 07:49:06 alex_PP : http://pastebin.com/VVM6AxAj Feb 21 07:50:13 newbuser: that's your manifest, not your layout Feb 21 07:50:45 Leeds : umm... didn't do any layout .... Feb 21 07:50:59 you're doing it all at runtime? Feb 21 07:51:27 Leeds : http://pastebin.com/CpPhDJHG only this Feb 21 07:51:43 ouch! Feb 21 07:55:12 is there any cool/easy/smart way to do like complex tables in android? lets say a table full of statistics Feb 21 07:56:07 Leeds : ? am I not doing right ? Feb 21 08:01:31 Leeds : wanted it to fit the whole screen even on tab 7 inch version . Feb 21 08:02:08 the way to do that is *not* to throw away the entire Android UI system Feb 21 08:02:20 Gaz`: you mean other than a TableLayout? Feb 21 08:02:27 yes leeds Feb 21 08:02:32 i mean well complex tables Feb 21 08:03:23 complex how? Feb 21 08:05:19 Leeds : so.. what should I do in the layout , sorry newbie on it ... Feb 21 08:13:06 Leeds like tons of cells with different info, one cell can be split into more cells etc, just thought there might be a way to make this sort of thing easier Feb 21 08:13:18 like a premier league table but liek 5x more complex Feb 21 08:13:36 yeah... tablelayout - it's similar to a HTML table Feb 21 08:13:57 ok cool Feb 21 08:13:58 thanks Feb 21 08:14:14 html table was a mare but doable ;) Feb 21 08:15:58 hello Feb 21 08:22:33 Leeds : Possible to scale back ? I though android UI will auto fix the resolution . Feb 21 08:29:09 newbuser: it might if you actually have a UI Feb 21 08:33:38 Say I have three views, one of them being a TextView.. When I do myTextview.setText("lol"), all of the views are re-drawn Feb 21 08:33:50 Is there a way to prevent this? as in, only redraw myTextview? Feb 21 08:36:09 Leeds : so which layout code to scales dp units according screen density ? Feb 21 08:36:31 that's the point of dp Feb 21 08:38:52 Leeds : btw, what's galaxy tab 7 inch dp ? 240 ? Feb 21 08:39:11 nah, less than that Feb 21 08:40:21 I have a loading splash screen in my app because it can take several seconds (loadingdata from an XML file), currently it's an AsyncTask, but not executed in its own activity. The two different views, loading view and actual activity view that comes after, are in the same activity. This makes the life-cycle code a lot more complex than it probably should be. If I make the loading its own activity, what is the best way to send the data t Feb 21 08:40:22 o the main activity when starting it? Feb 21 08:40:35 loading data* Feb 21 08:41:43 hi, i jus installed the adt plugin in my eclipse. But whn I go to preferences, I am not able to see the android tab to add my sdk location. please help Feb 21 08:42:53 Rrjois, did you restart Eclipse? What Eclipse version are you using? How did you install ADT? Feb 21 08:44:54 jA_cOp, Yes I restarted eclipse when prompted. I am using eclipse 3.7.1. I installed adt plugin from the given link in the android docs. Feb 21 08:45:16 Rrjois, using the Help -> Install New Software path, right? Feb 21 08:45:30 jA_cOp, yes. the same way Feb 21 08:46:23 OK, sorry, that's exactly the steps I have followed in the past. I am currently on 3.7.1 too. I wish I could have been of help :( Feb 21 08:46:54 jA_cOp, I hve been successful in the past too. facing this the first time Feb 21 08:47:23 jA_cOp, i tried installing it again. But it seems like its installed. I am able to see ddms tab but not android Feb 21 08:48:28 Rrjois, DDMS is a sub-menu of "Android" (just below "General") for me Feb 21 08:49:02 The SDK path setting is on the "Android" category itself Feb 21 08:49:33 jA_cOp, I dont have any "Android" category. Feb 21 08:49:45 jA_cOp, thats my porblem. Feb 21 08:50:09 jA_cOp, We get it it oly after instaling the adt plugin. right? Feb 21 08:50:23 indeed, but DDMS is part of the Android category here Feb 21 08:51:03 Window -> Preferences, then in the tree, Android -> DDMS. Strange that you have DDMS without the Android category :O Feb 21 08:53:25 jA_cOp, ya. :( Feb 21 08:59:14 is there somewhere a list of glyphs supported by the default unicode font in android? Feb 21 09:00:13 leeds got a tablelayout with 5 rows, but how do i get them rows to equally fill the height of the table layout? i tried setting them all to fill_parent height and layout gravity should be...1? Feb 21 09:00:38 you explained this to me perfectly a while back damn my memory Feb 21 09:01:41 ah they should be 0dip high right Feb 21 09:02:29 ah there goes eclipse dyign again this keeps happpening unhandled event loop execution no more handles Feb 21 09:02:58 Anyone here who knows how to prevent the whole layout from re-drawing when just updating the text of a textview? Feb 21 09:02:59 then i have to quit and start again :-/ Feb 21 09:06:55 aha weight 1.0 Feb 21 09:07:00 not gravity doh Feb 21 09:08:31 nice that works, ill get the hang of this one day Feb 21 09:09:30 oh eclipse died again wtf is wrong with it Feb 21 09:10:31 I needs a hug! Feb 21 09:10:47 Hug your Eclispe at least once a day. :D Feb 21 09:13:14 *hugs his eclipse* Feb 21 09:13:18 go team jacob! Feb 21 09:15:12 hehe Feb 21 09:15:18 god making for diff screensizes is confusing Feb 21 09:15:24 and i been doing this just fine in j2me for yrs Feb 21 09:15:32 wish it would just give some example dirs full of images Feb 21 09:16:42 like i want a banner that is a 5th the height of the screen and the width of it, how do i work out what size to make that banner for each res? Feb 21 09:21:58 Does android's LVL cache the license response during the 15 min refunc period? Feb 21 09:22:04 refund* Feb 21 09:24:14 nice eclipse wont stay alive at all Feb 21 09:24:33 Have you hugged it yet? Feb 21 09:24:38 not yet Feb 21 09:24:43 itd rather kill it Feb 21 09:24:45 Gaz: crashes when opening layout editor '? Feb 21 09:24:55 crashes when i make changes in layout editor, randomly Feb 21 09:24:56 Eclipse just needs a hug! :3 Feb 21 09:25:01 then i reload eclipse and it works for a while Feb 21 09:25:17 Gaz`: windows? for me reboot only works Feb 21 09:25:19 Check dat logcat bro. Feb 21 09:25:30 aolin ;-/ Feb 21 09:25:34 well logcat wont show anything Feb 21 09:25:37 this isnt even running Feb 21 09:25:56 I was totally kidding. Feb 21 09:25:59 Gaz`: I have exact same problem in my core2duo windows7 machine Feb 21 09:26:04 32bit Feb 21 09:26:22 I've learned to reboot when ever eclipse starts doing that Feb 21 09:26:29 You should get 64 bits. Feb 21 09:26:34 i got 64 bit Feb 21 09:26:39 double the bits. :D Feb 21 09:26:41 3 core cpu, 16 gigs Feb 21 09:26:43 in linux or 64bit i7 I do not have this problem Feb 21 09:26:51 Gaz`: Feb 21 09:27:03 You have a 4 core, with a locked core. Feb 21 09:27:06 Gaz`: windows or linux? Feb 21 09:27:16 You're not getting your full potential! Feb 21 09:27:32 windows Feb 21 09:27:46 id unlock if possible Dystinio;) Feb 21 09:28:17 What specific proc. you on? Feb 21 09:28:37 Gaz`: once I reinstalled everything starting from Java JDK etc, but the problem never disappeared Feb 21 09:28:47 AMD Athlon II X3 425 Feb 21 09:28:59 aolin nightmar,e iwonde rif new eclipse will fix Feb 21 09:29:05 so I'd say it's a bug somewhere Feb 21 09:29:34 atleast when I tried to get rid of it, I had latest updates of everything Feb 21 09:30:01 but, that said, I've havent seen this bug lately as I've been mostly developing on my linux laptop Feb 21 09:30:10 as everyhiting seems to be faster on it Feb 21 09:30:51 Is it not possible to prevent all other views from re-drawing when I set text for a textview? I'm setting new text every second. Don't want all the views to re-draw! :( Feb 21 09:31:01 i still dont udnerstand how you are easily suposed to make graphics sets for different resolutions on android Feb 21 09:31:17 inkscape :D Feb 21 09:31:30 deweylewie how does it help Feb 21 09:31:35 its vector Feb 21 09:31:39 Gaz`: you don't need to ... just make the xhdpi and let the system do scaling Feb 21 09:31:40 ohh Feb 21 09:31:46 Gaz`: that's what I do .... Feb 21 09:31:47 can u convert pngs to vector in inkscape? Feb 21 09:31:51 so export 1 at 72, 48 and 32 pixels or w/e Feb 21 09:31:55 aolin they thats kinda smart Feb 21 09:32:16 you draw it all in svg to start Feb 21 09:32:24 the syste does pretty good quality downscales Feb 21 09:32:24 ah but graphics are supplied in png Feb 21 09:32:37 android graphics? Feb 21 09:32:44 no Feb 21 09:32:46 graphics from client Feb 21 09:32:52 Do I need SDK Platform Android 2.2, API 8, Rev 3? Feb 21 09:32:54 For my SDK? Feb 21 09:33:10 oh, yeah you cant do anything then apart from get the highest resolution to start with and downscale Feb 21 09:33:15 Dystinio: no unless you're developing for it :) Feb 21 09:33:16 My phone came with 2.3 and I don't plan on devving for any other device. Feb 21 09:33:23 Thats what I thought. Feb 21 09:33:24 aolin so what res is xhdpi Feb 21 09:33:29 How do I stop it in Linux? Feb 21 09:33:31 :\ Feb 21 09:33:34 Gaz`: it is 320dpi Feb 21 09:33:43 Gah. Feb 21 09:33:46 Whatever. Feb 21 09:33:52 I'll just let it download. Feb 21 09:33:56 That's the harm, right? Feb 21 09:34:09 I dont think do Dystinio infact I was planning to uninstall the 1.5 and 1.6 platforms soon Feb 21 09:34:21 Gaz`: so you need to create the gfx double the size compared to mdpi Feb 21 09:34:33 Alright. Feb 21 09:34:38 Serious question guys. Feb 21 09:34:51 If I change my name to Dystinia, does it make me seem femenine? Feb 21 09:35:35 Dystinio: I'm pretty sure no one here gives a shit about that kind of stuff Feb 21 09:35:37 porn star name. Feb 21 09:35:42 :\ Feb 21 09:37:24 I'm playing (streaming) an mp3, and android is reporting the wrong length Feb 21 09:37:45 player.getDuration() and the standard audio player are both wrong, claim it's apr. 40 seconds in stead of 1min40 Feb 21 09:37:52 anyone know what might cause this? Feb 21 09:40:13 ffmpeg is also wrong it seems Feb 21 09:40:15 ffmpeg -i 07_Mitsuharu.mp3 2>&1 | grep Duration Feb 21 09:40:15 Duration: 00:00:40.59, start: 0.000000, bitrate: 127 kb/s Feb 21 09:40:24 might be bitrate-related Feb 21 09:40:39 #ffmpeg Feb 21 09:41:13 #notreally Feb 21 09:42:38 join #freemarker Feb 21 09:48:08 aolin trying what u said, i have a table with imagebuttons in but how do i make them scale? Feb 21 09:48:38 scaleType Feb 21 09:48:56 well what do i put for width and height tho Feb 21 09:49:01 wrap or fill?? Feb 21 09:49:59 i honestly think this xml lark is ridiculous Feb 21 09:57:31 eclipse has got to be one of the worst programs ive ever used Feb 21 09:58:00 Gaz` probably try it out Feb 21 09:58:10 i'd do wrap_content Feb 21 09:58:12 yeh im trying Feb 21 09:58:18 between mass crashes Feb 21 10:00:10 Gaz`: +1 Feb 21 10:01:30 i get this error when trying to run a application trouble processing "javax/security/auth/callback/PasswordCallback.class": even though i dont even use this class Feb 21 10:01:34 that's what I've been mostly struggling within android => the UI :D Feb 21 10:01:52 Aeefire wrap content just makes it the size it actually is so when i go to lower res the buttons are huge Feb 21 10:01:57 what is another java IDE whcih supports android emulator? IntelliJ ? Feb 21 10:02:31 yes rendar but no gui editor ;/ Feb 21 10:02:37 oh.. Feb 21 10:02:55 http://developer.android.com/reference/android/widget/ImageView.ScaleType.html Feb 21 10:03:42 thanks Aeefire Feb 21 10:03:55 I've e.g. done wrap_content to width and fill_parent to height, + fitStart for some image... but yeah it mostly depends on your needs. you have to try yourself i think sry :) Feb 21 10:04:36 its a bloody nightmare Feb 21 10:04:39 android is awful Feb 21 10:04:48 in terms of UI... yep :) Feb 21 10:05:31 question from my side: noone of you knows some library to generate PDFs which is freely available (for commercial purpose too) ? :P Feb 21 10:05:41 openoffice can Feb 21 10:06:18 i mean... one which i can implement into my android app :) Feb 21 10:06:27 like itextpdf (which isn't free for commercial purpose) Feb 21 10:06:31 ah Feb 21 10:06:33 not sure Feb 21 10:07:23 i've asked them for some price, for which they can offer me a license.. but yeah my financial situation is not very good as i am a student, not even at university yet ;) Feb 21 10:08:26 nice Feb 21 10:08:35 after uni ull be an android diva Feb 21 10:08:38 if its still around Feb 21 10:08:39 :) Feb 21 10:09:47 Gaz: the images scale according to device dpi Feb 21 10:10:16 Gaz`: if you need to make different size images (according to button size) then the system doesn't do it for you Feb 21 10:10:32 though u just said it did Feb 21 10:10:36 system just makes sure the image is same "physical" size on every device Feb 21 10:10:47 haha Gaz` the world is changing so fast, i think there'll be some different new thing :) Feb 21 10:11:59 so your 64x64 xhdpi icon is scaled to 32x32 on some lowend device and tablets Feb 21 10:12:10 and 48x48 on nexus s Feb 21 10:12:23 will stay 64x64 on galaxy nexus Feb 21 10:13:53 if you need to use the same icon in different sizes at same time, then yes, you need to create it different sizes.... I don't think the downscaling would work too well on arbitrary sizes Feb 21 10:14:22 the 120, 160, 240, 320 dpi are all nicely divisible Feb 21 10:16:23 mornin' Feb 21 10:16:36 g'day :) Feb 21 10:16:50 i'm trying to filter my contactlist based on the groups Feb 21 10:17:10 hmmi managed to get it workign with no scaletype Feb 21 10:17:12 I can see groups, and contacts, but how are they linked Feb 21 10:17:47 thanks aolin Feb 21 10:17:56 ? Feb 21 10:19:33 anyone? Feb 21 10:33:06 how to send email directly with gmail, but not without ACTION_SEND, because I don't want the bluetooth sharing option. Feb 21 10:33:22 any idea how android 3.x creates the glowing border around dialogs? Feb 21 10:33:54 elye: just gmail or other mail apps too? Feb 21 10:34:00 i just found out, that it's not the android:windowBackground style Feb 21 10:34:02 for example HTC mail and android's built-in "mail"? Feb 21 10:34:18 hrnt, yes if possible Feb 21 10:34:57 i can't remember the exact combination that worked best, but you should try using the data type message/rfc822. IIRC that filters out a lot of the applications Feb 21 10:35:31 hrnt, okay I will try that Feb 21 10:36:49 elye: or use ACTION_SENDTO instead Feb 21 10:48:21 How to write to file in JNI code ? I want to write some data to a file in JNI code.. how can I do it ? Feb 21 10:58:35 appel1, thanks it worked Feb 21 11:20:15 hi Feb 21 11:21:38 has anyone put any development into augmented reality? there is layar out there, but there seems to be nop real application of the augmented reality world, other than virtual advertising. Feb 21 11:27:40 paulnoise: games? Feb 21 11:28:00 http://code.google.com/p/droidar/ is a framework made by a guy from my university Feb 21 11:28:59 there was a bunch of news/rumours recently about google doing augmented reality glasses Feb 21 11:29:23 there are already some AR glasses out there Feb 21 11:29:42 but i doubt they will gain any market share in the next years Feb 21 11:31:32 the reason i ask is there was an online flash game i played about a year ago, it was set in the future, and people used AR to communicate, leave messages and the like through mobile phones and AR tags. im trying to find the game now, it was a good concept Feb 21 11:35:21 i found it, www.thecurfewgame.com Feb 21 11:35:24 hello Feb 21 11:35:35 hi flowyk Feb 21 11:35:45 how to "hack" TabWidget? to looks like in voltage control app? Feb 21 11:35:54 or just remove drawable part Feb 21 11:37:23 droidar looks good :) Feb 21 11:37:30 apps for android are open source like android right? where i can find their code? Feb 21 11:37:41 hi Feb 21 11:37:45 flowyk: not all of them Feb 21 11:37:45 you need to ask the developer for the code Feb 21 11:38:20 flowyk: but there are quite a lot of open source applications on github if you are looking for examples. Feb 21 11:38:50 Ankhwatcher: I found that server but it looks like its also for another platform Feb 21 11:39:01 is there something like list of apps for android? Feb 21 11:39:24 flowyk: what are you looking specifically? Feb 21 11:39:40 *for Feb 21 11:39:57 tabhost that dont contain images and titles are scrolling left-right when you click it Feb 21 11:40:15 like kitchenRom app or voltage control Feb 21 11:40:42 are you sure you're not looking for ViewPager? Feb 21 11:40:58 will check that thanks Feb 21 11:42:15 yeah in market is it used too Feb 21 11:43:17 im trying to make a transition between my splash and my main menu (slide in) but nothing is happening, any ideas? http://pastebin.com/U5iKyMtu Feb 21 11:51:12 any ideas? tried a few tutorials but nothing seems to happen Feb 21 11:52:49 How do I actually stop my service from within itself, if it's started via my AlarmManager? Feb 21 11:53:58 stopSelf() ? :p Feb 21 11:56:28 In the onStartCommand? Feb 21 11:57:01 oh lol it works i had anims turned off Feb 21 11:57:04 on phone Feb 21 12:29:14 How do I make a surfaceview transparent?= Feb 21 12:32:49 nevermind Feb 21 12:39:30 how do i lay over something over the top of another layout? like i have 10 buttons on screen but i want to overlay an image to the left which covers them Feb 21 12:42:32 hi, any of you ever had problems with gl.glBindTexture() failing on a device but no problems on the emulator? Feb 21 12:45:57 are you sure it's not a previous glGenTextures() that fails? Feb 21 12:45:58 http://pastie.org/3426760 Feb 21 12:46:41 GL_INVALID_VALUE is generated if target is not a name returned from a previous call to glGenTextures. Feb 21 12:47:30 my guess: you try to create a texture that is too large, or create too many textures Feb 21 12:47:35 I ask myself why it works on the emulator then. (also i use glGenTexture to create to required number of textured ids in beforehand) Feb 21 12:48:36 you guess might be right (because i use a htc magic which is slow) an the first texture i load is a hdpi fullscreentexture Feb 21 12:49:46 do you think it might help if i reduce the actual image size of the textures (f.e. indexed palttes, more kompression) Feb 21 12:49:56 like in bytes Feb 21 12:55:15 hi all. Feb 21 12:57:35 how do i lay over something over the top of another layout? like i have 10 buttons on screen but i want to overlay an image to the left which covers them Feb 21 13:00:27 Gaz`: framelayout ? Feb 21 13:00:47 Gaz`: http://mobileorchard.com/android-app-development-%E2%80%93-layouts-part-three-frame-layout-and-scroll-view/ Feb 21 13:02:12 my android apps have died Feb 21 13:02:19 who wants to turn them into zombies? Feb 21 13:02:22 mikedg: :( Feb 21 13:03:02 mikedg, how did they die? Feb 21 13:03:10 neglect :( Feb 21 13:03:26 you mean they become unused? Feb 21 13:03:29 you must water them regulary Feb 21 13:03:30 i.e. no users? Feb 21 13:03:48 yeah, i only have 1 5 figure active users app left :( Feb 21 13:03:57 unruhe: check the maximum texture size of your device Feb 21 13:04:01 arw poor you :p Feb 21 13:04:46 mikedg: is softalarm yours? Feb 21 13:04:57 no Feb 21 13:04:59 why do you ask Feb 21 13:05:08 I want that one to work ;) Feb 21 13:05:11 mitch0: I will thx, btw. is the powers of 2 rules for texture-dimensions actually important? Feb 21 13:05:28 unruhe: not sure about that one Feb 21 13:05:35 but it doesn't hurt to keep to that Feb 21 13:06:19 hmm u sure miha Feb 21 13:06:26 Gaz`: no? Feb 21 13:06:39 Gaz`: i'm noob, everyone here knows by now :) Feb 21 13:06:40 ah k Feb 21 13:06:44 hehe Feb 21 13:06:45 me too Feb 21 13:06:53 Gaz`: but framelayout is to overlay things, one above other Feb 21 13:07:03 mitch0: thx anyway Feb 21 13:07:32 Gaz`: and to position inside framelayout, you use.. gravity.. or is it layout_gravity .. anyway :D Feb 21 13:09:22 Hi all Feb 21 13:10:00 Hi! Is there a chance to get the kernel logs even during a kernel panic? I can not attach a USB serial console and I want to use the UART port of the chip as a last option. The best way would be if the last 1000 lines or so would be written to the flash memory or the SD card. Is anything like this possible? Feb 21 13:16:20 miha oh is it, i cant see any evidence Feb 21 13:16:43 :)) Feb 21 13:20:18 bugger Feb 21 13:20:21 cant work it out at all Feb 21 13:20:29 why does it take 3 days of strugglign to do simple things in android gui Feb 21 13:20:49 cause you dont know what you are doing? Feb 21 13:22:52 well yeh Feb 21 13:22:54 but how to find out Feb 21 13:22:58 something so specific Feb 21 13:23:06 if i was painting this by hand i could dothis in a heartbeat Feb 21 13:24:04 Gaz`: if you like painting by hand, look at http://developer.android.com/guide/topics/ui/custom-components.html Feb 21 13:24:43 wow nice Feb 21 13:24:50 altho i suspect theres a very simple way to do what i want Feb 21 13:24:55 framelayout just makes everything go black Feb 21 13:25:33 setBackgroundColor(Color.TRANSPARENT) ? Feb 21 13:25:43 to the view that's black Feb 21 13:25:47 hmm Feb 21 13:25:49 yeh Feb 21 13:26:04 ive read soem stuff yet i still dont get it Feb 21 13:26:08 overlapping views Feb 21 13:26:11 pita Feb 21 13:27:15 gaz, draw concept on paper... remember to see something below, there must be some transparency :) Feb 21 13:27:18 :D Feb 21 13:27:36 mitch0: guess what, it was the powers of 2 rule, I didn't obey so I got screwed. Feb 21 13:28:24 i know the theory perfectly Feb 21 13:28:29 its just android making life difficult for me Feb 21 13:28:50 i got 10 buttons on screen, i just want an image to the left Feb 21 13:28:56 sort of covering the edges of the buttons Feb 21 13:29:23 shame theres no foreground option Feb 21 13:29:26 that would be it basically Feb 21 13:31:28 is it possible to detect that the user is hiding the soft keyboard? Feb 21 13:32:14 marcreichelt: without a custom rom, probably not. Feb 21 13:32:33 marcreichelt: #android-root or #cyanogenmod might be more helpful Feb 21 13:32:33 lov, and with a custom ROM? Feb 21 13:32:37 okay Feb 21 13:32:45 marcreichelt: with a custom rom you can make your own kernel that does whatever :P Feb 21 13:36:00 or is it possible to make the hide keyboard button act like an enter? Feb 21 13:42:26 how do u make a framelayout transparent? its just black wont show things underneath Feb 21 13:43:34 Gaz`: khm, you add all your buttons as one viewgroup to framelaoyout.. and then another viewgroup with images on top of buttons Feb 21 13:43:50 ah Feb 21 13:43:53 chers m8 Feb 21 13:44:07 each view you add to framelayout is one layer Feb 21 13:44:19 ViewGroup? Feb 21 13:44:22 wheres that Feb 21 13:44:40 ViewGroup is LinearLayout, and other layout's Feb 21 13:45:35 Viewgroup is the parent class of all layouts Feb 21 13:45:49 d.android.com :V Feb 21 13:46:20 that's an interesting smiley Feb 21 13:46:46 done that got framelayout holding a linear layout full of stuff but its still black Feb 21 13:47:04 is File.renameTo atomic on android? and does it require locking? Feb 21 13:47:08 i will be so happy the day someone makes a good gui editor Feb 21 13:47:14 or can i use it to overwrite a target file? Feb 21 13:53:43 good morning Feb 21 13:53:52 argh even @android:color/transparent doesnt work Feb 21 13:53:59 . Feb 21 13:54:01 framelayout is utterly pointless if it cany be made transparent Feb 21 13:54:13 Gaz: i think you are doing something wrong :p Feb 21 13:54:19 or if its not needed to be transparent why doesnt my linearlayout show up Feb 21 13:54:24 yes me too Feb 21 13:54:41 show the code. Feb 21 13:54:43 Gaz`: It's transparent by default.. Every view is Feb 21 13:55:00 ah ok, so i have framelayout holding a linear layout but nothign shows, any ideas why Feb 21 13:55:10 You're doing it wrong Feb 21 13:55:28 well yes obviously :) Feb 21 13:55:31 but how do i do it right? Feb 21 13:55:36 You forgot to the end xml with Feb 21 13:55:58 no thats in just checked Feb 21 13:56:02 no errors etc Feb 21 13:56:04 You're looking at the wrong device Feb 21 13:56:34 You set all widths/heights to 0px Feb 21 13:57:20 Gaz`: is the issue that you can't see what's underneath the activity? Have you set the activity's background? Feb 21 13:57:25 Gaz`: have you tried using HierarchyViewer? Feb 21 13:57:30 hmm Feb 21 13:57:33 no i havent used that before Feb 21 13:57:40 consider using it, it's quite useful. Feb 21 13:58:07 http://pastebin.com/RFGA2FJx Feb 21 13:58:10 yeh ill check it out Feb 21 13:58:14 thats my xml^^ Feb 21 13:58:39 wheres the hierarchy viewer hiding? Feb 21 13:58:48 uh Feb 21 13:58:58 the "tools" dir in your sdk Feb 21 13:59:01 android:layout_height="0dip" Feb 21 13:59:30 i think thats correct Feb 21 13:59:42 to get all my buttons to fit avail space etc Feb 21 13:59:44 0dp height and no weights on the view or anything? Feb 21 13:59:53 anyway that linearlayout looks fine when its not in a framelayout Feb 21 14:00:00 oh which line Feb 21 14:00:07 Every tablerow Feb 21 14:00:22 hmm Feb 21 14:00:24 works fine in a linear tho Feb 21 14:00:48 will try Feb 21 14:00:49 thanks Feb 21 14:01:27 Yo dawg i heard you liked layouts so I stuck a tableview inside of a linear layout inside of a frame layout Feb 21 14:01:38 because I couldn't just make a vertical linear layout Feb 21 14:01:41 Yo lov, there's no tableview Feb 21 14:01:55 ahahaha you're right, therei sn't Feb 21 14:01:57 just tablerows Feb 21 14:01:58 /layout Feb 21 14:02:06 WELP Feb 21 14:02:15 good luck with THAT. Feb 21 14:02:46 Lets see the documentation for TableRow Feb 21 14:02:49 "A TableRow should always be used as a child of a TableLayout." Feb 21 14:02:59 Is it possible to reliably know if the background color of the menu displayed with the menu key is a dark or light color ? Feb 21 14:03:10 damn now just one big button shows up Feb 21 14:03:12 what a nightmare Feb 21 14:03:27 Gaz`: you know you love it Feb 21 14:03:32 "@drawable/gutton" Feb 21 14:03:36 please tell me this is a typo Feb 21 14:03:40 and/or you're just trolling us Feb 21 14:04:09 also, perhaps you want a listview... Feb 21 14:04:16 * lov shrugs Feb 21 14:04:23 no, know what, I don't actually care. I'm not getting involved. Feb 21 14:04:29 gl w/ that. Feb 21 14:05:48 typo Feb 21 14:05:51 file is called that Feb 21 14:06:01 no i honestly think this is the worst gui system ive ever seen Feb 21 14:06:04 swing is way better Feb 21 14:06:29 this is because you literally do not know what you are doing. Feb 21 14:06:30 then again hated swing til i started wotking for me Feb 21 14:06:33 I don't even know what you're doing. Feb 21 14:06:37 what are you actually trying to do. Feb 21 14:06:41 well im trying to do somethign very simple Feb 21 14:06:49 and i have a clear idea of how but android just doesnt let me Feb 21 14:07:13 What are you trying to do. Feb 21 14:07:21 What do you want the end result to actually be. Feb 21 14:07:24 oki want ten buttons on screen each takign up equal y space and stretching the width of the screen, then i want an image over layout over the top of them to the left, a sort of semi circle Feb 21 14:07:50 so yeh 10 buttons, with a semi circle on far left covering the left edges of the buttons up Feb 21 14:08:00 .... right. Feb 21 14:08:35 http://developer.android.com/guide/topics/resources/drawable-resource.html#LayerList Feb 21 14:08:40 use that for the semi circle Feb 21 14:09:00 I'm not sure if the default drawable for buttons is exposed, you may need to use your own button 9patch Feb 21 14:09:21 actually, http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Feb 21 14:09:26 that might be relevant for you idk Feb 21 14:09:59 ah lost my actual workign buttons now, such fun this Feb 21 14:10:01 huhu Feb 21 14:10:24 for your layout, You should be able to do