**** BEGIN LOGGING AT Fri Mar 22 02:59:58 2013 Mar 22 03:00:57 alex_PP: i'm feeling positive about BLE :) how else would the android watch communicate with the phone :) Mar 22 03:06:29 android does not support blue Mar 22 03:06:32 ble Mar 22 03:06:48 i hope KLP will Mar 22 03:11:02 indeed Mar 22 03:11:15 moving away from bluez is annoying Mar 22 03:19:16 StingRay_ fragments cant call setContentView Mar 22 03:19:30 no Mar 22 03:19:37 but they return a view Mar 22 03:19:44 that your activity can Mar 22 03:20:10 but not relevent to you with tabs Mar 22 03:20:33 hence why I said you can set the entire child tab to be (returned fragment view) Mar 22 03:21:05 rather than seting child tabe, layout, view id , (returned fragment) Mar 22 03:21:11 tab* Mar 22 03:23:25 do the docs talk about that? i wanna try it Mar 22 03:24:00 child fragment manager isnt working out for me Mar 22 03:25:54 never used tabs Mar 22 03:26:37 if there is not a handy method to change/swap cant you just getChildAtIndex(i).removeAll() Mar 22 03:26:43 and then addView() ? Mar 22 03:26:47 i really dont know Mar 22 03:31:27 g00s, Android watch? linky? Mar 22 03:36:42 ah well, the answer will pop up some time Mar 22 03:38:01 alex_PP: http://www.theverge.com/2013/3/21/4133428/is-google-building-a-smart-watch-of-its-own Mar 22 03:39:00 i honestly dont know how the android team could get that platform working on the power architecture required to run a watch Mar 22 03:39:38 hmmmm Mar 22 03:39:44 any watch i would wear, like if i was going backpacking or something, would have to last at least a week Mar 22 03:39:46 not convinced Mar 22 03:40:07 no one wears watches anymore Mar 22 03:40:20 i wear a suunto for backpacking Mar 22 03:40:44 i can see utility in that Mar 22 03:40:48 but yeah, seems like the phone sucked all that stuff up ... Mar 22 03:40:55 now its barfing it back up or something :) Mar 22 03:40:59 but a massive watch that need charging daily Mar 22 03:41:59 i can't imagine carrying a watch larger than a swatch around Mar 22 03:42:13 been looking for a GPS/ANT one that isn't massive Mar 22 03:42:19 they don't exist Mar 22 03:44:52 meanwhile, google purchased Frommer travel guides from Wiley publishing a while back , and they are discontinuing the print version. no matter how hard core geek i am, i never go anywhere i'm not familiar with - without a physical map / travel guide Mar 22 03:46:31 teally? Mar 22 03:46:32 *r Mar 22 03:46:34 yeah ok, you dont need a physical book to visit SF - everybody has tablets strapped to their heads or something, but if you're going to cambodia or something - i want the physical book Mar 22 03:46:35 wow Mar 22 03:46:54 cambodia's easy :P Mar 22 03:47:01 just ask alex_PP :) Mar 22 03:47:20 any news on what they're doing with Nik? Mar 22 03:47:42 interesting you should ask. i new book from peachpit just came out on NIk stuff Mar 22 03:48:10 http://www.amazon.com/Plug-Nik-Photographers-Creating-Software/dp/0321839773 Mar 22 03:48:19 one of the reviews, kinda caught my eye ... Mar 22 03:48:53 i guess i'm not the only one who isn't so sure what is going to happen. oh, its the first review, BostonAaron Mar 22 03:49:13 "NIK has already stopped selling NIK plug-ins for use with Nikon's Capture NX; not a good sign." <-- didn't know that Mar 22 03:50:31 i think Topaz has some stuff similar to Nik, if they were to completely go away Mar 22 03:50:39 :( Mar 22 03:50:50 ah well Mar 22 03:51:03 i've never used them, so it's not a huge loss to me Mar 22 03:51:06 so man, if you're going to sell RSS readers or PS plugins for photographers, now is a good time Mar 22 03:51:07 shame though Mar 22 03:56:10 g00s: what PS pluggins ? Mar 22 03:56:37 i cant imagine anything I would want to do inside of RGB space that PS cant do Mar 22 03:56:47 StingRay_: stuff equivalent to the Nik suite (color efex, hdr efex, silver efex) Mar 22 03:57:02 all just range/tone mapping Mar 22 03:57:12 nothing that cant be done already ? Mar 22 03:59:09 this was a test I did with PS tone mapping years ago https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-snc7/4437_88085106785_3645964_n.jpg Mar 22 03:59:58 they now have tools in there to make it really easy Mar 22 04:01:09 StingRay_: well there you go; put down your game and write StingEfexPro Mar 22 04:01:23 not doing a game Mar 22 04:01:38 and my point was I dont think there is much you cant do in ps Mar 22 04:01:47 so no need now for things like that Mar 22 04:02:03 it has all the raw dev suff you need mostly Mar 22 04:02:23 and the things it dont have on tap you can still do, just take a bit of thought Mar 22 04:02:26 I think Mar 22 04:02:28 :) Mar 22 04:22:24 nullpointer exception on a line with three functions. doesnt say which function caused it Mar 22 04:22:45 add some line breaks? Mar 22 04:24:46 i cant break on this getSupportFragmentManager().findFragmentByTag("mytag").getChildFragmentManager().popBackStackImmediate("mytag", FragmentManager.POP_BACK_STACK_INCLUSIVE) Mar 22 04:25:07 myguess getChildFragmentManager Mar 22 04:25:13 callin it on null Mar 22 04:25:20 and you could debug it neways Mar 22 04:25:28 break it down Mar 22 04:25:40 getSupportFragMan() Mar 22 04:25:50 then findFragById Mar 22 04:25:58 then …. well… you get it Mar 22 04:43:02 bored :( Mar 22 04:43:15 anyone got a fun problem? Mar 22 04:51:01 i do :o Mar 22 04:51:52 alex_PP: you could always try out some problems on topcoder :) Mar 22 04:55:22 it's ok, its lunch time now :D Mar 22 04:55:48 achmode: whats your prob now ? Mar 22 04:57:23 StingRay_ its the same problem. can pop fragments off the backstack when Im using getChildFragmentManager. it appears i was overriding onbackpressed in the right place(FragmentTabsPager) since Im getting a null pointer Mar 22 04:58:01 well odds are your findBy is returning null Mar 22 04:58:04 cant* Mar 22 04:58:17 did you not check ? Mar 22 04:58:41 i did check.happens on this line FragmentManager a = getSupportFragmentManager(); Mar 22 04:59:08 what getSupportFr*() returns null ? Mar 22 04:59:48 yes it does... Mar 22 05:00:05 and whats your parent class extending ? Mar 22 05:00:28 SherlockFragmentActivity Mar 22 05:00:51 oh never used that Mar 22 05:00:52 and getSupportFragmentManager belongs to android.support.v4.app.FragmentActivity.getSupportFragmentManager() Mar 22 05:01:41 out of interest what advantages does that give you over just fragmentActivity ? Mar 22 05:01:48 cause I'm too lazy to search Mar 22 05:01:52 and it's 5am here Mar 22 05:02:22 its way easier to use than the support library Mar 22 05:02:32 in what way ? Mar 22 05:03:24 I cant recall... Mar 22 05:03:35 http://stackoverflow.com/questions/7844517/difference-between-actionbarsherlock-and-actionbar-compatibility Mar 22 05:03:42 i read this and just decided to stick with it Mar 22 05:04:16 oh your targeting < 10 Mar 22 05:04:24 or < 11 rather Mar 22 05:04:32 yes Mar 22 05:04:44 you dont? Mar 22 05:04:55 nope Mar 22 05:05:13 I decided by the time I realease my 1st app, not even sure android is going to be the in thing Mar 22 05:05:28 let alone people still using gingerbread Mar 22 05:05:30 :) Mar 22 05:05:50 well gingerbread is killing apple right now Mar 22 05:06:09 huh? Mar 22 05:06:27 wut ? Mar 22 05:06:41 who dunnit? Mar 22 05:06:55 what WHAT?! Mar 22 05:06:58 gingerbread makes up the majority of android Mar 22 05:07:13 changing very quick though Mar 22 05:07:24 and not sure thats killing apple so much :) Mar 22 05:07:44 I would expect if android was still gingerbread like, I would have an iphone :) Mar 22 05:07:56 i'm going to go out on a limb here; any new phone that comes out with GB today - isn't for Apple's target market Mar 22 05:08:41 BOLLOCKS Mar 22 05:08:57 hehe Mar 22 05:11:12 damn, i still have the xmas songs they played in the stores stuck in my head … and its almost april Mar 22 05:11:49 and its the worst ones too Mar 22 05:12:03 g00s: I just noticed something on apples website Mar 22 05:12:09 the voices in my head have to talk over the songs Mar 22 05:12:18 no buy option for mac pro's no more Mar 22 05:12:35 StingRay_: yeah Mar 22 05:12:46 errr, why ? Mar 22 05:12:53 well they were talking about refreshing them Mar 22 05:12:57 but maybe they just axed them Mar 22 05:13:04 yeah , heh Mar 22 05:13:24 i think something like a Mac Mini Pro would be cool Mar 22 05:13:30 apple would make a killing if they just built a desktop line based on i7 rather than zeon, and had it in a mac pro case etc Mar 22 05:13:44 xeon* Mar 22 05:13:50 honestly osx is kinda getting stale anwyay Mar 22 05:13:55 not sure why I put "z" Mar 22 05:14:01 yeah you cant get photoshop for linux Mar 22 05:14:25 but honestly I think once linux works out their whole x11 replacement Mar 22 05:14:35 theres a good chance linux desktop is gonna take off Mar 22 05:14:36 ron_frown: if you couldn't get intellij for linux, i think you would be singing a different toon :) Mar 22 05:14:45 tune Mar 22 05:14:45 and you were forced to use eclipse :D Mar 22 05:14:51 yeah, that Mar 22 05:14:56 oh god I have had to use eclipse at work lately Mar 22 05:14:57 what a pita Mar 22 05:15:04 well the only mac no based on a dam laptop is the xeon mac pro and thats just silly Mar 22 05:15:11 mmm, sourdough pita Mar 22 05:15:15 so I hope they release a atx desktop Mar 22 05:15:27 the worst one is it pops up the device chooser window, but always pops up in the bg for some reason Mar 22 05:15:31 blocks eclipse ui Mar 22 05:15:47 I only become aware that happens when I kill it, its closing windows and I see the window in the bg Mar 22 05:16:44 i remember the days when you always had to select a device in the chooser every fucking time you launched Mar 22 05:16:58 I do that anyway Mar 22 05:17:08 because adb is touchy on os build server and if you dont Mar 22 05:17:10 launching was like playing wak-a-mole Mar 22 05:17:17 it'll start firing up an avd Mar 22 05:17:37 if i start adb before eclipse, it doesn't try to start stuff Mar 22 05:17:55 when you do an os build Mar 22 05:17:58 it rebuilds adb Mar 22 05:18:10 and actually with intellij its even more annoying Mar 22 05:18:18 it kills the real adb from os build and launches one from sdk Mar 22 05:18:23 with the wrong permissions Mar 22 05:18:29 so I am CONSTANTLY Mar 22 05:18:32 adb kill-server Mar 22 05:18:35 sudo adb start-server Mar 22 05:19:32 wtf is with Shuttleworth working with the Chinese government on ubuntu phone? Mar 22 05:19:50 i knew they were going to fuck this up Mar 22 05:20:37 oh actually, its Ubuntu in general Mar 22 05:23:01 ron_frown: http://www.canonical.com/content/canonical-and-chinese-standards-body-announce-ubuntu-collaboration Mar 22 05:23:33 haha Mar 22 05:23:36 I dont care Mar 22 05:23:44 anything the chinese are involved in... I'm not. Mar 22 05:23:50 nothing against them, I just cant trust them Mar 22 05:28:30 had to use this.getSupportFragmentManager() and getChildFragmentManager() is null Mar 22 05:31:53 damn it I have the munchies Mar 22 05:32:01 I could go for ice cream sandwiches and a redbull right about now Mar 22 05:32:09 I missed the big Jake Wharton WebEx telecast Mar 22 05:33:57 what was it on Mar 22 05:35:22 ActionbarSherlock 3000 Mar 22 05:35:32 what was it really Mar 22 05:35:43 The NYC Java meetup organizers set up a live stream of a talk Jake Wharton did today. I was indisposed while it was going on though. Mar 22 05:36:00 fuck java. Mar 22 05:36:29 thats the guy who made shirley Mar 22 05:37:14 I know EXACTLY who jake is Mar 22 05:37:33 fuck java, hail dalvik! Mar 22 05:38:36 dalvik is WAY behind Mar 22 05:38:49 ever wondered why you were stuck with a hugely deprecated java api to program with? Mar 22 05:38:55 I'd be willing to bet dalvik is why Mar 22 05:39:01 not deprecated Mar 22 05:39:02 just old Mar 22 05:39:12 You mean Dalvik doesn't do lambdas like Java 8? Mar 22 05:39:24 doesnt every api deprecate? Mar 22 05:39:43 or real generics Mar 22 05:39:48 or much of everything else Mar 22 05:39:52 java is le doo doo Mar 22 05:40:03 easier than c++ I guess Mar 22 05:40:07 but I still find it torture Mar 22 05:44:47 Ologn: any idea what it was about ? Mar 22 05:46:27 JakeWharton what was your stuff about today Mar 22 05:46:41 g00s, http://www.meetup.com/Android-Study-Groups/events/108932752/ Mar 22 05:46:57 "Bootstrapping Android Apps with Open Source" Mar 22 05:47:05 I have no idea what that means Mar 22 05:47:06 haha Mar 22 05:48:46 ron_frown: there is a description down Mar 22 05:49:08 ahh Mar 22 05:49:23 I am done trying to teach people Mar 22 05:49:28 Suyash Joshi's talk looks interesting Mar 22 05:49:33 I'd like to think majority of the people out there are smarter than my coworkers Mar 22 05:49:42 but I teach them something I dont find to be terribly complicated Mar 22 05:49:46 and its like fucking crickets Mar 22 05:49:55 oh its over Mar 22 05:50:06 no real questions that are at least remotely related to what I talked about Mar 22 05:50:39 I briefly mentioned the injection of logging via AOP, when talking about IOC, and my boss was like hey can we add that everywhere Mar 22 05:50:57 yes, but that was just the stereotypical example of what you can do with AOP, there are many better ways to achieve that =) Mar 22 05:52:32 kinda sucks because everytime I want to use any remotely modern features of an language Mar 22 05:52:36 I either ahve to teach everyone about it Mar 22 05:52:44 or hope and pray that people understand Mar 22 05:52:52 otherwise its engineering to the lowest common denominator Mar 22 05:53:05 (yes, my work sucks... sorry for bitching about it ) Mar 22 05:54:07 are the sessions presented at I/O available yet? i can't find them on the website. i would kinda want to know that in advance before registration; you know - unless i was just going as a social event :) Mar 22 05:54:35 g00s are you going to go? Mar 22 05:54:35 haha Mar 22 05:54:55 no, dont have the dinero Mar 22 05:55:22 i'd love to go though, just for the chance to ask some questions at the microphone :) Mar 22 05:55:33 I bet I;d get denied Mar 22 05:55:36 haha Mar 22 05:55:49 I like to ask the kind of questions no one wants to answer Mar 22 05:58:57 * achmode argh!! Mar 22 06:06:15 I think google is going to have to really wow the fuck out of people at this years Mar 22 06:08:04 wat Mar 22 06:08:12 g00s, they're not available yet afaik Mar 22 06:09:11 androids dev process, and all the bs hoops everyone has to jump through and lack of documentation in general on the platform etc Mar 22 06:09:12 I dont know Mar 22 06:09:16 I'm getting sick of it Mar 22 06:09:27 too many ways to shoot yourself in the foot Mar 22 06:09:55 would be REAL easy to write some code to prevent that shit from happening (maybe not now and be backwards compatible) Mar 22 06:25:11 =\ well i give up. might as well use sub tabs in my tabs Mar 22 06:25:41 achmode: you dog, we put tabs in your tab so you could indent while you indent Mar 22 06:26:13 lawl. read that as intent Mar 22 07:58:37 Q: when does apk extraction happen? at install? at application start? Mar 22 08:03:12 Anyone reasonably familiar with DB based ContentProviders? Mar 22 08:29:21 mhm. shouldnt be the /data/data..../files folder created as soon as the apk is installed? Mar 22 09:11:56 why can asynctask be used only once -__- Mar 22 09:12:34 i would guess because its using some kind of thread, and threads can only started once Mar 22 09:13:21 i thought it used some sort of executorservice to process Mar 22 09:16:31 yeah it does, but i think the generel reason why it isn't repeated applies Mar 22 09:16:47 not sure why they made it that way, i assume, to prevent errors Mar 22 09:16:59 because devs not reset stuff properly and such Mar 22 09:17:07 but its just assumption Mar 22 09:17:37 but at least that was the reason, why they made AsyncTask to be executed serialized and not parallel again in newer versions, to prevent lots of cofing errors devs made Mar 22 09:18:08 fair enough Mar 22 10:02:02 Hi. why does the android emulator take so long to load? Its still stick for me at text Android_ Mar 22 10:02:22 poee: because it emulates complete hardware and it makes it slow Mar 22 10:02:28 and first boot especially is slow Mar 22 10:02:41 how long should it take, generally. An hour? Mar 22 10:02:43 (various caches are initialized and saved to filesystem by Android OS) Mar 22 10:02:49 poee: depends on hw Mar 22 10:02:58 ah okay Mar 22 10:03:07 are you developing on a netbook? Mar 22 10:03:07 30 minutes? Mar 22 10:03:13 laptop yes Mar 22 10:03:21 Leeds: ... that's masochism Mar 22 10:04:24 I am running it in 240x320 Mar 22 10:04:46 whats the recommended internal storage Mar 22 10:20:58 Is there a way to see/control what admob ads are being shown? Mar 22 10:22:45 Not that I'm aware of Mar 22 10:22:51 apple741: how are you finding admob so far though? Mar 22 10:23:11 apple741: how are your users reacting to it? do you get a lot of clicks? Mar 22 10:24:30 you can block specific ads, if you know they're there and you don't want them - e.g. for your competitors Mar 22 10:24:50 Its my first app so not really too popular, didn't expect it to be to be honest. Only been 5 days so far so still kind of early. Mar 22 10:25:28 cool Mar 22 10:25:42 Leeds: Really how? Is there an easy way to see which are being shown for just that reason. Mar 22 10:26:24 if you go to sites&apps, manage settings, you can put filters in Mar 22 10:29:03 Ah ok that makes sense, thanks Leeds. So I have to manually keep using my app to see what type of ads are being shown - in the case of competitors etc as you mentioned? Mar 22 10:29:43 I guess if you've got any obvious competitors, or any who you know have ads running, you could just throw their names/URLs in Mar 22 10:30:08 wouldn't do any harm Mar 22 10:31:39 Thanks, thats a good point :) Mar 22 10:32:02 Any idea whats shown under the category 'Personals' ? Mar 22 10:33:24 how to meet women? dunno... Mar 22 10:34:09 go to a python developer conference and make dick jokes Mar 22 10:34:13 seems to work Mar 22 11:18:23 Hi Everybody! Mar 22 11:21:37 Hi Dr. Nick! Mar 22 11:29:25 hi there! i try to load admob in my app, I do it like all time before, but now i get a nullpointer when i wrote adMob.addView(adView); and adMob is my LinearLayout!!! Anyone know whats going on? Mar 22 11:35:30 capella: ;-) Mar 22 11:36:09 Quasimotto: that sounds like a job for step-through debugging Mar 22 11:36:57 Where can I get Java.lang.NullPointerException t-shirt? Mar 22 11:42:57 Ankhwatcher: i have tryed it. but i create it in this line adView = new AdView(this, AdSize.SMART_BANNER, BoersennewsActivity.adMobAccountId); and in the next one it get killed. does not make sence to me Mar 22 11:43:27 Ankhwatcher: i need those shirts too :) Mar 22 11:56:45 hi!. How do I install files on the android emulator in linux? Mar 22 11:56:54 using apk Mar 22 11:56:56 install apps Mar 22 11:57:14 hmm Mar 22 11:57:29 poee: you should be able to install apps by connecting adb to the emulator Mar 22 11:57:31 poee: adb works fine Mar 22 11:57:38 ^^ Mar 22 11:57:44 how do I connect adb to the emulator? Mar 22 11:58:15 http://bit.ly/11oB0Sz Mar 22 11:58:33 right Mar 22 11:59:07 adb --help Mar 22 12:06:35 what is the default location in which I should store the .apk file to install Mar 22 12:06:36 ? Mar 22 12:07:05 when I do adb install app.apk, it says it cannot find file Mar 22 12:07:51 why don't you give it the full location of the file and see if that works Mar 22 12:08:21 yeah, it works :) Mar 22 12:08:29 success! Mar 22 12:08:30 :D Mar 22 12:40:50 hi. i have a correct link put in a webview. the link is a youtube link. it's not working at all. internet is really working Mar 22 12:40:58 what should i do? Mar 22 12:41:37 what error message are you getting? Mar 22 12:46:02 Ankhwatcher, i am always getting that there is no internet Mar 22 12:47:51 not no internet, i mean page is down Mar 22 12:50:11 Ankhwatcher, when i rebooted the phone it worked! Mar 22 12:50:23 really bad! Mar 22 13:02:46 hey guys I have a ***** ******** ***** blue ***** problem with my app Mar 22 13:02:58 remove the stars, problem solved. Mar 22 13:03:02 :P Mar 22 13:03:37 I have an imageview.. with a picture.. and its set to width: match_parent.. and height wrap_content Mar 22 13:03:48 inside a relativelayout Mar 22 13:04:13 the thing is.. on some devices.. it will create white 'bars' between itself and the top of the screen Mar 22 13:04:20 even though I put it to alignwithparentTop Mar 22 13:04:35 it will fix the width perfectly everytime Mar 22 13:04:40 but the height.. it doesn't wrap correctly Mar 22 13:05:02 alright 1min.. will upload a picture of it Mar 22 13:12:26 morning Mar 22 13:12:40 http://oi48.tinypic.com/jaicz8.jpg Mar 22 13:12:57 alright I hope you see what I mean on this picture Mar 22 13:13:06 you see the 2 thick white borders it creates Mar 22 13:13:12 I dont get it.. why it does that Mar 22 13:13:37 the source picture is just the 'black' part of it Mar 22 13:13:48 pastebin your layout please. Mar 22 13:14:38 something to do with how scale is set maybe? or your expanding a view your image is in and not the image itself Mar 22 13:15:04 upload to pastebin now but Mar 22 13:15:07 as you can see to the right Mar 22 13:15:14 its just in the relative viewgroup nothing else Mar 22 13:15:37 http://pastebin.com/AebD5Jx3 Mar 22 13:15:54 its the imageview at the top Mar 22 13:18:25 hmph. I'm not sure, it probably has to do with resizing. What happens when you view in landscape instead of portrait? Mar 22 13:18:47 it does a much better fit.. still has small white borders though.. but a lot better Mar 22 13:18:48 there are ways to preserve the ratio Mar 22 13:19:02 so yeah its a rezise scaling thing but what I dont get is Mar 22 13:19:03 i'm not sure if on an image view match_parent for width and wrap_content for height makes sense anyways Mar 22 13:19:16 well Mar 22 13:19:19 P3nnyw1se: try changing the scaletype: http://developer.android.com/reference/android/widget/ImageView.ScaleType.html Mar 22 13:19:24 see if it helps Mar 22 13:19:28 but yah, Ankhwatcher says ScaleType Mar 22 13:19:33 and that will decide about ratio Mar 22 13:19:55 ok clicking on link .. but what I dont get is.. it scales the size of the image like its suppose to Mar 22 13:19:59 but for no reason just adds white borders Mar 22 13:20:14 making the image taller.. than it actually is Mar 22 13:20:15 P3nnyw1se, it might be the background to preserve ratio Mar 22 13:20:25 P3nnyw1se, you can try setting a transparent background Mar 22 13:20:45 I've tried all the scale types btw one of them makes it fit perfectly Mar 22 13:20:48 XY one Mar 22 13:20:53 but.. it stretches the image and makes it ugly Mar 22 13:21:00 XY preserves ratio, doesnt it? Mar 22 13:21:18 dunno but the FIT_XY makes it really nasty to look at Mar 22 13:21:24 especially on landscape view on a big tablet Mar 22 13:21:26 ooh, no, FIT_XY means scale to fit X and Y Mar 22 13:21:37 hello! How can I pass a generic ArrayList in a broadcast intent? I've tried with intent.getParceableArrayListExtra, but it gives me a strange error: "Bound mismatch: The generic method getParcelableArrayListExtra(String) of type Intent is not applicable for the arguments (String). The inferred type Object is not a valid substitute for the bounded parameter " Mar 22 13:21:40 okay so just to sum up what I know.. Mar 22 13:21:53 it makes sense to me that it scales Mar 22 13:21:59 but the white borders it has on the picture I linked here Mar 22 13:22:01 P3nnyw1se, if you want to preserve the ratio use FIT_CENTER Mar 22 13:22:03 shouldn't have anything to do with the scale Mar 22 13:22:05 it could do without that Mar 22 13:22:08 P3nnyw1se, it will fit it inside without messing with the ratio Mar 22 13:22:38 alright.... hmm.. I just wanted to force it to find the appropriate width Mar 22 13:22:43 and then just trim the height to wrap_content Mar 22 13:23:05 http://oi48.tinypic.com/jaicz8.jpg Mar 22 13:23:11 P3nnyw1se, http://developer.android.com/reference/android/graphics/Matrix.ScaleToFit.html#CENTER Mar 22 13:23:17 on this picture.. we agree it wouldn't interfer at all with the scaling Mar 22 13:23:22 if those white borders were gone Mar 22 13:24:19 kaneda the matrix Mar 22 13:24:22 cuts the picture in half Mar 22 13:24:31 but leaves no white border though :) Mar 22 13:25:17 Hello, is it possible to extend an activity that extends Activity? all i did was to extend the class setup an onCreate(..) { super.onCreate() } but the app crashes Mar 22 13:25:40 Does it matter in admob if two apps have the same package url? Mar 22 13:26:59 P3nnyw1se, i'ms till fairly certain that FIT_CENTER is right for you Mar 22 13:27:04 I dont get this.. I dont see why it needs those 2 white borders, ratio and scaling aside.. the picture has the correct size Mar 22 13:27:23 P3nnyw1se, different resolutions/densities perhaps? Mar 22 13:27:25 it just adds those 2 white borders for no apperent reason (not apperent to me at least) Mar 22 13:27:40 but even so kaneda Mar 22 13:27:48 why can't it just chew off those white borders.. Mar 22 13:27:51 it doesn't have to change the picture at all Mar 22 13:27:52 P3nnyw1se, did you try making the border/background of the image transparent? Mar 22 13:28:20 ehmm says failed to convert 2 sec Mar 22 13:29:27 viran: yes, you can subclass a subclass of activity. Obviously, you're not telling the whole story here, so pastebin your code and any other relevant content, including the stacktrace. Mar 22 13:30:11 Kaneda it just keeps the white borders.. (so it sees the relative parent view) Mar 22 13:30:36 P3nnyw1se, and you set the borders in to transparent?? Mar 22 13:31:08 P3nnyw1se, you need to do this res drawable, btw, and assign the style or whatever to the image Mar 22 13:31:23 hmmm Mar 22 13:32:09 P3nnyw1se, you can also do 'android:background="@null"' on your ImageView i think Mar 22 13:32:57 for the background anyways Mar 22 13:33:13 that doesn't really do anything Mar 22 13:33:34 P3nnyw1se, it's probably the border, that's why Mar 22 13:33:38 if I add black color.. the white borders are removed ofc and turn black Mar 22 13:33:43 as the background Mar 22 13:33:59 I dont know what to make of that Mar 22 13:34:03 http://stackoverflow.com/questions/3263611/border-for-an-image-view-in-android/10133434#10133434 Mar 22 13:34:07 but clearly its not a part of the picture.. its the background :P Mar 22 13:34:26 well make a shape that defines the border then set the color to #00FFFFFF Mar 22 13:34:31 00 = no alpha, transparent Mar 22 13:34:40 the thing is though Kaneda, if I landscape view it Mar 22 13:34:47 then it fits perfectly? Mar 22 13:34:47 the border is barely visible at all Mar 22 13:34:51 yeah almost Mar 22 13:34:58 yah, it's a density/resolution issue probably Mar 22 13:35:10 you should use a drawable item/shape to make the bodrers/background transparent Mar 22 13:35:54 and just to be sure what would do that for me Mar 22 13:35:58 making the borders transparent Mar 22 13:36:10 hopefully it makes those white borders disappear Mar 22 13:36:19 it wont make the image fit any better though unless you use cropping Mar 22 13:36:28 or you dont want to preserve the aspect ratio Mar 22 13:36:30 those are your only options Mar 22 13:36:30 Is there anyway that I can load a ListActivity Class inside a fragment class? Mar 22 13:36:59 I want to preserve the picture as it is.. it cropped the picture perfectly it just added those annoyning white borders Mar 22 13:37:19 so my question is now, if I make them transparent will it push the actionbar closer Mar 22 13:37:24 or will the 'effect' of the border still be there Mar 22 13:37:27 it wont Mar 22 13:37:31 it will just make the white invisible Mar 22 13:37:46 then I might aswell just make the background black.. Mar 22 13:37:47 P3nnyw1se, you need to match_parent in both width and height probably, and then use CROP Mar 22 13:38:16 like CENTER_CROP, but make sure there's no padding on the image Mar 22 13:38:26 oh, that's another thing, did you check that your imageview padding is 0? Mar 22 13:39:13 I didn't add padding anywhere so shouldn't it be ? Mar 22 13:40:23 P3nnyw1se, probably not, but you can probably, no harm in trying it though Mar 22 13:40:30 you can probably do no harm* Mar 22 13:40:49 yeah well check but the thing that annoys me about this whole thing Mar 22 13:40:54 is that it fits it much better during landscape mode Mar 22 13:41:02 leaving almost no border Mar 22 13:41:04 P3nnyw1se, try CENTER_CROP... Mar 22 13:41:21 and match_parent in width and height (assuming the paernt is exactly the right size Mar 22 13:41:40 Center_Crop does the exact same thing as default.. it stretches the picture perfectly Mar 22 13:41:45 but leaves unneeded big white borders Mar 22 13:42:53 no... Mar 22 13:43:01 "Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding)." Mar 22 13:43:19 CENTER_CROP makes it so that the image will be equal to or LARGER than the corresponding dimensino of he view minus padding Mar 22 13:43:30 CENTER_INSIDE would do what you described, no CENTER_CROP Mar 22 13:43:56 center crop.. displays only 1/3 of the picture Mar 22 13:43:59 and that is the 'middle part' Mar 22 13:44:29 it's resizing to match both in at least one dimension and the other must be equal to or larger Mar 22 13:44:45 CENTER_INSIDE will match the largest, allowin the other one to be equal or less than the dimensino of the target view Mar 22 13:45:02 P3nnyw1se, i can assure you i've gotten this to work adequately ;p Mar 22 13:45:18 alright sorry I'm gonna take it abc now to make sure I understand what you mean too Mar 22 13:45:22 if a picture is 4x2 .. Mar 22 13:45:26 it should also be 8x4 Mar 22 13:45:28 we agree? Mar 22 13:45:31 or 2x1 Mar 22 13:45:51 sure, but the way it looks on a screen of varying resolutions and densities doesnt match that description, you realize Mar 22 13:46:06 the thing is it looks like to me Mar 22 13:46:12 it takes a 4x2 and makes into a 8x20 Mar 22 13:46:13 :P Mar 22 13:46:32 ? Mar 22 13:46:44 looking at the picture I linked Mar 22 13:46:53 even though this is about keeping resolution and scaling Mar 22 13:47:01 it doesn't need those white borders.. removing them wouldn't affect the image at all Mar 22 13:47:03 thats what I dont get Mar 22 13:47:20 the scale looks good to me Mar 22 13:47:35 yes it looks good to me too if the white borders weren't included :P Mar 22 13:48:04 P3nnyw1se, you need to adjust the size of the parent view it seems for vertical vs. landscape to match the dp of the image Mar 22 13:48:11 what I'm saying is.. it makes it higher/taller than the source picture Mar 22 13:48:12 hmmm Mar 22 13:48:29 you can programtically get the DP of the resultant image and set the parent to that height, for instance Mar 22 13:48:34 ;p Mar 22 13:48:40 oh god :P Mar 22 13:48:52 easy enough, you just need an on orientation changed listener Mar 22 13:48:54 ;) Mar 22 13:49:03 but what we are talking about here.. is changing the relativeview Mar 22 13:49:06 and the actual size of the app then Mar 22 13:49:17 it seems you designed the app to fit Mar 22 13:49:27 I thought I did :P Mar 22 13:49:30 so in reality you'll only get the "actual" size of the app by doing something like this Mar 22 13:49:30 but obviously not Mar 22 13:50:13 I'm only 3 weeks into android programming 2½ actually Mar 22 13:50:14 this is DEFINITELY not a scale problem, is what i'mt rying to tell you Mar 22 13:50:16 but it just feels like Mar 22 13:50:22 the scale is perfect Mar 22 13:50:22 there must be some other solution Mar 22 13:50:25 yes Mar 22 13:50:27 the scale is perfect :P Mar 22 13:50:30 the solution is to not have a parent view Mar 22 13:50:53 but the only parent view is the relateview that contains everything, actionbar, fragments etc Mar 22 13:51:03 then android:layout_width = "match_parent" and android:layout_width = "wrap_content" Mar 22 13:51:23 P3nnyw1se, so make an outer relative view and make the body below the header Mar 22 13:51:30 P3nnyw1se, just like you might do in CSS/HTML Mar 22 13:51:58 mmmm :P Mar 22 13:52:28 having the imageview by itself to fill the screen should remove any unecessary fitting Mar 22 13:52:51 hell, you dont even need the outer wrapper Mar 22 13:52:53 but.. hmmm it just feels like it shouldn't have to be like this Mar 22 13:52:59 :P Mar 22 13:53:03 relativelayout -> imageheader -> content below imageheader Mar 22 13:53:13 actually, i think you made it TOO complicated, which is why its acting this way Mar 22 13:53:21 you probably wrapped the imageview in its own linearlayout or something Mar 22 13:53:36 right now I have RelativeLayout -> imageView Mar 22 13:53:49 and then content below imageView? Mar 22 13:54:03 android:layout_below = "@id/imageView" ? Mar 22 13:54:04 I have a linearlayout with 3 buttons in Mar 22 13:54:08 yes Mar 22 13:54:31 P3nnyw1se, do me a favor, make the relativelayout's android:layout_gravity = "top" or something Mar 22 13:55:21 its bitching "string types not allowed Mar 22 13:55:26 oh baadadddadadad Mar 22 13:55:28 wrong command Mar 22 13:55:29 sry Mar 22 13:56:09 I still have those nice very pretty white borders for absolutely no reason :P Mar 22 13:56:11 you can also try saying 'padding = "0dp"' Mar 22 13:56:24 and background="#00000000" or something for no alpha Mar 22 13:56:45 then try adjustViewBounds="true" and make sure you still have "centerCrop" as your scaleType Mar 22 13:57:13 http://pastebin.com/AebD5Jx3 Mar 22 13:57:19 alright now I'm just guessing stuff here.. could the other views Mar 22 13:57:26 the 2 linearviews cause this ? Mar 22 13:57:33 the one with the actionbar and the one that holds fragments Mar 22 13:57:55 not sure Mar 22 13:58:19 we both agree right that the scaling is fine.. it just adds some white borders to the picture that it shouldn't really need Mar 22 13:58:22 right? Mar 22 13:58:26 the scaling is great, yes Mar 22 13:58:33 try adjustViewBounds="true" Mar 22 13:58:39 with center crop scaleType Mar 22 13:58:39 in the relate? Mar 22 13:58:42 relative Mar 22 13:58:44 no, in the image Mar 22 13:59:31 that works! Mar 22 13:59:45 it works! its scaling it correctly now Mar 22 13:59:46 no borders Mar 22 13:59:48 same scale Mar 22 13:59:58 :) Mar 22 14:00:01 alright explain wtf just happened Mar 22 14:00:05 ok, so adjustViewBounds was the culprit Mar 22 14:00:17 it didnt tell the image to adjust itself, so instead it tried to fit that original space Mar 22 14:00:29 stupid view Mar 22 14:00:31 :P Mar 22 14:00:32 P3nnyw1se, it means you were scaling down, and it wasnt adjusting to meet the new size Mar 22 14:00:47 these kinda things should be on by default if you ask me Mar 22 14:00:56 P3nnyw1se, eh, things to learn i guess ;) Mar 22 14:01:23 I suppose.. :P Mar 22 14:02:06 well that was nice phew now I can go on to next list of 'problems to come' Mar 22 14:05:45 ohh **** me :P Mar 22 14:09:32 Kaneda I have to keep the width now on wrap_content .. on a 10" device it cuts the text in half if I dont Mar 22 14:09:39 not that its a big issue just means I can't center it Mar 22 14:09:40 all the time Mar 22 14:10:17 unless.. hmmm Mar 22 14:10:37 ? Mar 22 14:10:47 P3nnyw1se, CENTER_INSIDE Mar 22 14:10:49 hello there Mar 22 14:10:59 that will force it to be the minimum of the two instead of the maximum Mar 22 14:11:34 how I can detect the time pressed on OnLongClickListener ? this thing not works correctly for me.. Mar 22 14:12:10 illusyon, you can grab the system time on down press and on release probably Mar 22 14:12:18 i say probably because i'm not sure about it at all Mar 22 14:14:50 youre a ***** genius Mar 22 14:14:53 now it works perfectly Mar 22 14:15:07 how can I redraw a fragment in my viewpager? Mar 22 14:17:09 yes, but.. i have a dream about OnLongClickListener… and in my dream still remains the android perfect api lol Mar 22 14:24:37 How can I enable logcat imediatly after phone starts? Mar 22 14:24:43 i am trying to debug a bootloop? Mar 22 14:25:19 may u can get it on first activity on onCreate ? Mar 22 14:30:37 ? Mar 22 14:31:50 Hello. Why does my app works strangely after returning to it from opened by itself Google Maps? Mar 22 14:31:53 work* Mar 22 14:33:30 ivali: you might have better luck in #android-root Mar 22 14:33:49 ivali: or #cyanogenmod-dev or whatever that channel is Mar 22 14:35:03 I've never tried this before but I wanna do an app where if its in portrait mode.. I have 2 buttons, itemslist and basket Mar 22 14:35:25 but if its in landscape mode those 2 fragments are shown together in the same view Mar 22 14:35:36 do you have any advice to throw at me before I spend my evening on this :P Mar 22 14:43:17 P3nnyw1se: you'll need to define different layouts for portrait and landscape Mar 22 14:51:56 heh, yes, and then you need to switch the layouts on orientatino change Mar 22 15:23:04 * P3nnyw1se slaps kaneda^ around a bit with a large trout Mar 22 15:23:09 does that mean Mar 22 15:23:12 Only iPhone can slap Mar 22 15:23:22 I'm not sure Mar 22 15:23:26 I understand what you mean Mar 22 15:23:57 kaneda you say that I need 2 layouts depending on orientation wouldn't that mean Mar 22 15:24:12 that I would 'destroy' the layout if the user changed orientation Mar 22 15:24:20 ? Mar 22 15:27:47 Android does that for you Mar 22 15:27:55 your activity is re-created on any configuration change Mar 22 15:31:10 if I go to an editText Mar 22 15:31:13 and write 'P3nnyw1se' Mar 22 15:31:18 then change orientation Mar 22 15:31:25 on my virtual device.. I keep the input 'P3nnyw1se' Mar 22 15:31:45 does this apply aswell to making a new layout Mar 22 15:31:45 ? Mar 22 15:32:54 butterknife is neat. Mar 22 15:33:07 stork: heh, thanks Mar 22 15:33:24 P3nnyw1se: that's because the EditText is saving it's state in a Bundle Mar 22 15:33:42 the code injection is much more complex than the traditional (dumb) reflection way of 'injecting' views.. is the performance speedup significant? Mar 22 15:34:57 that part is, yes Mar 22 15:35:12 both still end up calling findViewById which is also slow Mar 22 15:36:14 it inspired me to do some annotation processing in my own codebase, although not the fancypants kind you're doing in butterknife - the dumb, slow kind. Mar 22 15:36:44 so the saved bundle state Mar 22 15:36:54 using annotations to denote fields that should be automagically pulled out of Bundles in activities/fragments arguments Mar 22 15:36:55 still applies if I do the other way you know Mar 22 15:37:00 ? Mar 22 15:37:18 stork: well get it working, and then move on to trying to get code generation working Mar 22 15:38:44 definitely on my mind. Mar 22 15:39:30 que? Mar 22 15:39:33 P3nnyw1se, you rang? Mar 22 15:40:05 probably the first priority would be to implement parcelable in my bean-like classes (at the moment I'm just using gson to serialize/deserialize to/from bundles) :shame: Mar 22 15:40:17 i have a beautiful question: can I just send some data to a website thru a webview without displaying it at all? Mar 22 15:40:42 i like just want it as simple object Mar 22 15:40:48 superlinux-hp, i'm not sure what you mean Mar 22 15:41:50 all i want is to make use of the method LoadURL sp cand the data as url query variables Mar 22 15:42:01 only the loadURL Mar 22 15:42:32 this way i won't need the apache library Mar 22 15:42:48 this way i won't need the apache http library Mar 22 15:44:09 kaneda^, understand? Mar 22 15:45:25 not really Mar 22 15:46:07 Why, hello there... Mar 22 15:46:44 I'm working on this application that needs to use a custom account from the AccountManager. Mar 22 15:47:20 kaneda Mar 22 15:47:25 I'm just thinking about doing this thing Mar 22 15:47:44 where I in profile have 2 fragments in 2 different views that I can swap between Mar 22 15:48:00 but in landscape the 2 views are aligned next to each other Mar 22 15:48:01 I alredy have a working AccountManager implementation (Authenticator), but when I try to use it from a different app (different package and all) I get a wierd error and the AuthenticationActivity doesn't work. Mar 22 15:48:03 fragments even Mar 22 15:48:21 *already Mar 22 15:48:38 but there are things I'm unsure about like.. if the user changes orientation, which fragment will be viewed? Mar 22 15:49:04 or when the orientation is changed because it changes view does that mean it won't remember the bundle state Mar 22 15:49:09 like it does on normal orientation change Mar 22 15:52:29 stork: we do the same thing with small objects Mar 22 15:54:02 I'm finding that a small spinner animation is invalidating the entire screen. Is there any way to 'isolate' the invalidation region? I know that if a Dialog pops up, only the dialog area gets invalidated. Mar 22 15:55:01 JakeWharton: for what definition of 'small' :p ? Mar 22 15:55:30 (50 pix x 50 pix) on a tablet screen. Mar 22 15:55:55 oh Mar 22 15:55:59 sorry. silly me. Mar 22 15:56:11 stork: < 10 fields Mar 22 15:56:24 i might be exceeding that by a smidgen heh. Mar 22 15:56:30 :S Mar 22 15:59:00 Are dirty rectangles computed by the ViewRoot? Mar 22 16:01:42 problem is i'm trying to avoid tight coupling between my activity/fragment components, as a result there's a lot of serializing/deserializing going on as stuff is bundled&unbundled around Mar 22 16:05:09 Do all javascript based browser apps work in android? Mar 22 16:05:32 JohnnyL: that would depend on the browser you run them in Mar 22 16:05:58 ok Mar 22 16:06:26 well i was curious if it would make sense developing games in c++ or javascript/opengl es 2 Mar 22 16:06:28 JohnnyL: short answer: no, long answer: depends :) ofc every browser(engine) behaves different, so there might be stuff, that don't run (or don't run right or the same) in the common android browsers Mar 22 16:06:56 JohnnyL: in principle, they should be able to. In practice, there are differences between desktop browsers and device browsers. Also, websites may discriminate against mobile users with user-agents. Mar 22 16:07:15 ok Mar 22 16:08:46 Does someone knows an example of corss application use of custom AccountManager (Authenticator)? Mar 22 16:10:40 So, in android, if a view becomes invalidated, will it call it's parent's invalidation method? How does the viewroot determine if it needs to redraw views? Is it the ViewRoot that calls the draw method of each dirty view in the hierarchy? Mar 22 16:10:46 JohnnyL: trying to develop a game in JS/OpenGL seems like insanity Mar 22 16:11:00 evanc: :) Mar 22 16:11:47 JohnnyL: keyboard input would be the hard part. Mar 22 16:18:06 i tried switching back to eclipse from intellij this week for this new project. Mar 22 16:18:13 didn't last long. i'm back in intellij Mar 22 16:19:11 with intellij it's the little things. if you want to go to where a resource is defined with f3 in eclipse, it'll take you to the generated resource. in intellij, it takes you to the res/ folder Mar 22 16:22:29 :-7 Mar 22 16:25:24 how easy it is to implement google drive support ? quick read on SO people say it's not really good at all Mar 22 16:28:04 when I do 'adb install bin\Plasma-debug.apk' it just hangs. Mar 22 16:28:08 hello-jni works fine Mar 22 16:28:14 i am using an emulator Mar 22 16:28:48 diracdelta, evanc: ok thanks guys. Mar 22 16:35:12 alertdialog = easy, dialogfragment = less easy... looking for some sort of generic 'error handling solution' to use throughout my app, i'm wondering if someone has solved this problem already so i don't have to bother? Mar 22 16:36:09 Both are easy Mar 22 16:36:31 there's a lot more verbosity involved in the latter though Mar 22 16:37:35 You can literally copy paste your alertdialog code to DialogFragment#onCreateDialog Mar 22 16:37:50 From then it's just Activity#showDialog vs DialogFragment#show Mar 22 16:38:45 And, you can even use it from a Fragment Mar 22 16:38:57 And have callbacks to fragments Mar 22 16:39:08 (because surely you're not manually managing dialogs.. right?) Mar 22 16:40:54 http://pastebin.com/12nViKJ8 is this valid? Mar 22 16:41:15 'unfortunately gl2jni has stopped' Mar 22 16:41:35 I've tried it and it doesn't seem to complain too much, but is it gonna cause me problems that i haven't forseen? Mar 22 16:41:57 Eh, no, don't do that Mar 22 16:42:07 Create a class that extends DialogFragment Mar 22 16:42:32 It's gonna cause you problems on orientation changes Mar 22 16:42:38 i thought it might Mar 22 16:43:14 i'd like to avoid having those classes littered everywhere though, so i was thinking about creating a 'generic' one (where i can pass in title/message/button stuff via the fragment arguments) Mar 22 16:43:23 and was wondering if it had already been done Mar 22 16:44:55 Mar 22 17:24:44 (Hope channel doesn't mind these small code being posted) Mar 22 17:25:39 @riccoski have you tried @color/white instead of @android:color/white? Mar 22 17:25:49 what colour is it showing up as now? Mar 22 17:26:33 black Mar 22 17:26:42 ive tried hex value for white Mar 22 17:27:18 shouldn't titleTextStyle be under the actionbarstyle, not the main theme? Mar 22 17:27:34 Sounds like an appropriate place to put it Mar 22 17:28:16 you also need to add an actionItemTextColor element in the theme Mar 22 17:28:29 and set it to white. Mar 22 17:28:48 ok thanks guys, i shall try these things!! =] Mar 22 17:29:06 Or, you know, just use a dark theme for the action bar and not have to worry about it Mar 22 17:30:06 SimonVT: That is probably what I would do if it was my app, but doesn't really solve the problem itself Mar 22 17:30:09 lol Mar 22 17:31:24 thanks, im sort of trying to, someone mentioned about the inverse theme but im not too sure how to do it i only know how to extend from light theme Mar 22 17:31:35 my app is a light theme with a dark actionbar Mar 22 17:32:02 Light.DarkActionBar Mar 22 17:32:21 Add a Theme.Holo. to that and you're good to go Mar 22 17:32:30 Results may vary based on where you add it Mar 22 17:33:26 oh thanks, @android:style/Theme.Holo.Light.DarkActionBar requires API level 14 (current min is 11) :DD Mar 22 17:33:36 guess I have to change that in the manifest? Mar 22 17:33:54 Yes Mar 22 17:34:03 ^_^ Mar 22 17:34:26 RadioButton does not have a 'value'? Mar 22 17:34:32 There's no reason to support honeycomb unless it's just a side-effect of supporting gingerbread Mar 22 17:35:30 cool, thanks SimonVT ;) Mar 22 17:35:49 wish emulator was faster Mar 22 17:36:09 Get a device Mar 22 17:36:32 or use the x86 emulator Mar 22 17:36:35 I has nexus 4, but i couldnt find clear enough instructions or im being dumb :D Mar 22 17:36:37 lightning fast Mar 22 17:36:57 only lightning fast if you have a supported cpu Mar 22 17:37:15 and properly install the haxm drivers Mar 22 17:37:37 And use GPU Host too Mar 22 17:37:46 riccoski: you mean http://developer.android.com/tools/device.html Mar 22 17:37:53 JohnnyL: you typically need drivers specific to the phone brand on windows, yes Mar 22 17:38:16 Leeds: Cleary lacking a pictured walkthrough! Mar 22 17:38:35 dragorn: yes, i'm finding that i didn't have the sdk seperate from the ndk. Mar 22 17:39:06 JohnnyL: you may need that; you probably will for assembling the apk, but you also need vendor-specific phone drivers for windows Mar 22 17:39:07 Leeds: idd haha, weren't able to obtain the usb driver needed iirc Mar 22 17:39:35 i can make apk's no problem with just the ndk. Mar 22 17:39:39 JohnnyL: and while it's POSSIBLE now to implement a complete lifecycle in native-only code, it sure isn't common, so you might want to investigate more what you plan to do Mar 22 17:40:00 dragorn: i am developing a game. Mar 22 17:40:07 riccoski: You enabled Developer Setting, enabled USB debugging but your device does not show up in DDMS oder 'adb devices'? Mar 22 17:40:58 adb spazzes sometimes spazzes out and you to toggle usb debugging and/or adb kill/restart server to get it functional again Mar 22 17:41:03 kakazza: ill try that exactly now Mar 22 17:41:10 s/spazzes // Mar 22 17:41:19 s/to/have to/ Mar 22 17:41:50 do anyone in here know about the gaming type 'erix' Mar 22 17:41:51 you're probably just missing the usb driver set-up Mar 22 17:41:51 ? Mar 22 17:42:18 pragma-: that's my guess Mar 22 17:42:41 do you know this type of game: http://img156.imageshack.us/img156/2776/200908246583ca5b85d9ec2.png Mar 22 17:43:34 looks like a typical virus/trojan vector Mar 22 17:43:57 kakazza: no it doesnt appear Mar 22 17:44:02 The type of game where a giant octopus eats a picture of a lady until just the silhouette is left? Mar 22 17:44:46 the kinda game where you eat more and more of the screen Mar 22 17:45:05 the kind game that distracts you while it installs viruses Mar 22 17:45:13 ?? Mar 22 17:45:15 wtf u talking about Mar 22 17:45:36 its a picture file Mar 22 17:45:38 ... Mar 22 17:45:49 is it worth buying an n4 when the next nexus will probably be coming out in 7 months or so? Mar 22 17:45:50 Just use an imageview then Mar 22 17:46:12 stork: if you're satisfied with have a demo-toy/dev phone Mar 22 17:46:27 are you not a fan of it as a proper phone? Mar 22 17:46:28 with having, wtf my typing today Mar 22 17:46:55 how can it be a proper phone with a 5gb model? Mar 22 17:47:32 surely importance of local storage is a subjective thing Mar 22 17:47:41 all that horsepower and you can only install 2 or 3 of the bigger games Mar 22 17:48:18 a ubuntu image for a full-fledged linux-in-android install takes up 2gb for decent usability Mar 22 17:48:41 (which is awesome) Mar 22 17:48:51 not really sure if that'd be my thing Mar 22 17:49:24 i haven't found anything that didn't have an arm build in the ubuntu repositories yet... apt-get has installed everything i've thrown at it on my phone so far Mar 22 17:49:25 get the 16gb then ;o Mar 22 17:49:57 i don't really want ubuntu anywhere near me Mar 22 17:50:40 i'll take it to have a fully functioning linux environment on my phone Mar 22 17:50:48 either debug mode stops all push notifications or no one loves me Mar 22 17:51:18 fair enough. Can't quite see the point, myself.. Mar 22 17:51:31 no, my minimum baseline for my next phone will be at least 32gb internal storage and 128/256gb removable sdcard Mar 22 17:51:42 holyshit Mar 22 17:51:48 do they even make those Mar 22 17:52:11 sure Mar 22 17:52:19 plenty of phones come with 32gb internal Mar 22 17:52:33 they make 64 gig sdxc, i haven't seen but haven't looked for larger in micro format Mar 22 17:52:35 ahh my text is still black lol but icons the settings icon is light! so something happened Mar 22 17:52:36 external 256gb ? really ? Mar 22 17:52:39 my experience with sdxc has been very negative Mar 22 17:52:56 you really have that much porn ? and it's THAT important to have it with you ? Mar 22 17:52:59 my 64gb sdxc hasn't failed me Mar 22 17:53:09 what do you use the space for? Mar 22 17:53:14 namely most phones claim to handle it, but can't, because the timing in the protocol is a lot tighter than sd or sdhc; leads to data corruption and weird lockups Mar 22 17:53:31 StingRay_: it's convenient to be able to plug your phone into a friend's high-def tv and have your bluray movie selecteion available Mar 22 17:53:43 the phone i have that DID seem to handle sdxc then hit physical corruption a few weeks later, as did the second card, both from "real brands" like sandisk Mar 22 17:53:50 that does sound pretty alright. Mar 22 17:53:50 I also like being able to have all my games installed at once without having to micromanage storage Mar 22 17:54:03 pragma-: to be fair, it's not a quality hd experience you would get though Mar 22 17:54:18 oh unless you mean you use it as a hdd Mar 22 17:54:35 fair enough Mar 22 17:54:41 any san diego pplz in the house? Mar 22 17:55:32 it'll be nice to be able to take very long hd videos with the camera too Mar 22 17:55:56 and to download the entire google maps database! Mar 22 17:56:31 no more pesky seeing only an arrow and no maps when you have gps but no data Mar 22 17:56:54 those are all use cases that don't apply to me! :D Mar 22 17:56:54 this is true Mar 22 17:56:57 right there is some caching going on there but not sure if it wil work totally offline Mar 22 17:57:05 even iphone comes in 64gb internal Mar 22 17:57:25 Only iPhone can handle your Storage Needs. Mar 22 17:57:36 iphone doesn't have removable sd Mar 22 17:57:43 can't swap movie libaries! Mar 22 17:57:48 riccoski: for $850 Mar 22 17:57:59 haha idd too pricey haha Mar 22 17:58:22 * pragma- was willing to spend $299 for a sgs3 a few months ago Mar 22 17:58:51 * pragma- doesn't mind being back on a temporary 2 year contract with a carrier that he's been with for 10 years Mar 22 17:59:16 thats a good price Mar 22 17:59:23 so i'm writing an app that streams audio via a MediaPlayer and I'm writing the corresponding service to handle the media playing.. does it seem like a sensible enough idea to use the service with a binder? Mar 22 17:59:30 even better is the unlimited 4g at $29.99 a month Mar 22 18:00:19 man so cheap Mar 22 18:00:29 you know leeds is paying buckets for his service :p Mar 22 18:00:37 here in UK 8GB 4G is like £50+ Mar 22 18:01:39 6GB 4G is ~$65 CAD before tax here Mar 22 18:01:59 lol nice Mar 22 18:02:06 Ive got my text white woooo Mar 22 18:03:00 thanks to what someone metioned earlier about titletextstyle :p Mar 22 18:03:21 so now it works on your device -- let's see what happens when you publish! Mar 22 18:03:37 dont scare me Mar 22 18:03:39 lol Mar 22 18:04:44 when using the facebook sdk, do you need to register an app with facebook.com to update your local status? Mar 22 18:04:51 I can't find a full, simple example of someone updating their own status with the sdk that doesn't require the user to be a developer. Mar 22 18:05:04 how else do you use the facebook api without an api key? Mar 22 18:05:21 fair enough, okay so is this a one time thing? Mar 22 18:05:28 just sniff the facebook traffic and duplicate those commands Mar 22 18:05:30 or does each user need to add that facebook.com app to their account Mar 22 18:05:44 pragma-, it uses oauth Mar 22 18:05:59 Orbital_sFear, you can piggyback on an already installed facebook app most likely Mar 22 18:06:13 Tss, if I want unlimited data I use my iphone Mar 22 18:06:22 otherwise you'd have to provide them with an auth mechanism to get an oauth token to make a post Mar 22 18:06:35 where does this term "piggyback" come from anyway? I've never heard of a pig jumping on the back of anything. Mar 22 18:06:55 kaneda^: okay, so that means just username and password, some http transactions and I'm good? Mar 22 18:07:04 https Mar 22 18:07:09 Orbital_sFear, do you know what oauth says, i've said it 3 times now Mar 22 18:07:13 pragma-: http://en.wikipedia.org/wiki/Piggyback_(transportation)#Etymology Mar 22 18:07:27 kaneda^: I don't, I'll research it Mar 22 18:07:41 oauth is a token that says "yes, i've authenticated" Mar 22 18:08:07 okay, cool, that sounds like the ticket then Mar 22 18:08:12 it is Mar 22 18:08:55 you request oauth -> oauth token is obtained through 3rd party, e.g. facebook -> calback occurs w/ oauth token Mar 22 18:09:14 Cool Mar 22 18:09:22 alright I'll do some googling on that solution then Mar 22 18:09:24 thanks Mar 22 18:09:57 there's no legit service that now allows you to do basic auth Mar 22 18:10:50 what does that mean? Mar 22 18:11:12 basically, that auth will happen at the 3rd party end and a token will be given Mar 22 18:11:14 oauth isn't possible anymore unless you hack it? Mar 22 18:11:22 ooo Mar 22 18:11:22 oauth is the only thing that's possible Mar 22 18:11:47 http://developers.facebook.com/docs/concepts/login/ Mar 22 18:12:10 auh IC Mar 22 18:12:17 this makes sense Mar 22 18:12:26 so they are doing away with all other methods besides oauth Mar 22 18:12:37 i think oauth2 is the only auth for facebook Mar 22 18:12:39 how does one go about publishing? Mar 22 18:12:40 same for twitter i believe Mar 22 18:12:59 good to know, twitter is my next todo Mar 22 18:13:01 JohnnyL, log into your dashboard and upload an apk, you'll need to put in a bunch of info Mar 22 18:13:21 kaneda^: ok. can you also put the apk on a website? Mar 22 18:13:32 JohnnyL, yes, but the user must have 3rd party apps enabled on their phone Mar 22 18:13:44 kaneda^: ok. Mar 22 18:13:47 and you wont be able to easily track the usage Mar 22 18:14:08 kaneda^: can you program tcp/ip for android apps? Mar 22 18:14:17 you mean, do socket level programming in java? Mar 22 18:14:44 i'm not sure if you can bind sockets arbitrarily in android...in linux you can bind above 1024 generally Mar 22 18:15:04 k Mar 22 18:15:07 yes Mar 22 18:15:10 java or c++ Mar 22 18:15:19 both it seems Mar 22 18:15:34 http://developer.android.com/reference/java/net/Socket.html <-- for java Mar 22 18:21:55 kaneda^: thanks Mar 22 18:22:03 lots of great documentation there. Mar 22 18:22:25 Looking for ndk network apis. Mar 22 18:22:59 So... Mar 22 18:23:15 For anyone who had any interest on my problem... Mar 22 18:23:39 The solution is to create an intent using Settings.ACTION_ADD_ACCOUNT. Mar 22 18:24:52 dotn you want to use nio sockets if possible? Mar 22 18:25:38 dorky: correct Mar 22 18:28:07 i do mostly tablet stuff but for 2.2 is nio in the compat lib or do you have to port it in yourself these days still? Mar 22 18:28:28 kaneda^: thanks for the tip, I found the perfect example. Mar 22 18:29:40 does GCM works if google play is blocked? I got a GCMRegistrationID but it dont receive any message on an Iran located Device=? Mar 22 18:33:07 it's annoying. RegistrationID is received but Playstore is not able to get opened (because of DNS Block in iran). In this case im not able to send push/gcm messages through playstore to the device. Any idea how i can still receive them? Mar 22 18:34:13 dorky: i am in gave development. I would need to port anything just on or over the tcp/ip network level. Mar 22 18:34:16 game Mar 22 18:34:18 sorry Mar 22 18:37:42 pretty sure the guy upstairs just killed his wife Mar 22 18:37:52 someone should do something Mar 22 18:38:14 she was yelling at him for like 10 minutes.. then suddenly I heard a clunk and it all went quiet Mar 22 18:38:22 now there is this 'dragging' sound across the floor Mar 22 18:38:42 misterli: is Iran DNS-blocking google.com? If so, GCM clearly won't work Mar 22 18:41:16 P3nnyw1se, maybe she fainted? Mar 22 18:42:52 P3nnyw1se: you should investigate. Mar 22 18:43:26 P3nnyw1se, may be you should go upstairs and offer some help? Mar 22 18:44:13 hmm my libre office not working Mar 22 18:44:15 I mean, they might need it. Or he. Depends on how it actually turned out Mar 22 18:47:17 I described my problem more: http://stackoverflow.com/questions/15577718/android-strange-behavior-of-activity-after-searching-in-google-maps Mar 22 18:49:35 Lol Mar 22 18:49:42 I'm not going up there are u crazy :D Mar 22 18:50:54 P3nnyw1se, why? Maybe there is a noble man, who is in need of your help in hiding his not-so-beloved wifes body.. Mar 22 18:51:28 Me? Mar 22 18:53:17 Dalv_Vokicz, I believe he is talking about a suggestion for him to go upstairs, where crime may or may not have been commited :) Mar 22 19:02:01 Dalv_Vokicz: I have had similar problems in the past Mar 22 19:02:31 occurs when setting data in the same view tree where the viewId is duplicated Mar 22 19:02:52 even though some of the docs say that is fine if not at the same level, I don't think it is all that fine Mar 22 19:03:32 Ok. Can somebody here please explain to me, how does notifyDataSetChanged works with baseAdapter and child classes? Mar 22 19:03:58 icehaunter: it just causes a view refresh Mar 22 19:04:08 and getView to be called on all current child views Mar 22 19:04:27 StingRay_ does it just call GetView() again? Mar 22 19:04:31 don't the docs say that ? Mar 22 19:04:34 well yeah Mar 22 19:04:49 cause your saying the data that drives them may have changed Mar 22 19:04:56 so they need to be updated Mar 22 19:05:09 say, are opencl sdk's available on androids or not? or if not what would be an alternative to renderscript for utilizing the gpu (pre api 11). it seems like "android opencl" isnt very popular on google Mar 22 19:06:17 balls2thewall: you can use opengl directly, using, e.g. GLSurfaceView Mar 22 19:06:43 ok, I get it.. Mar 22 19:06:43 errr not the question Mar 22 19:06:59 balls2thewall: Do you hope to download and retrofit an OpenCL library to a system running a version of Android pre-dating version 11 of the API? Mar 22 19:07:02 balls2thewall: oh, for compute workloads? Mar 22 19:07:10 yes Mar 22 19:07:14 balls2thewall: would not openCL degrade the HW UI stuff in an unchecked manner ? Mar 22 19:07:43 Surely those libraries would be platform-specific. If no vendor is advertising it then it probably doesn't exist. Mar 22 19:08:00 A platform agnostic OpenCL would be a CPU-based one. Mar 22 19:15:42 well this makes no sense. how can renderscript utilize the gpu if not via some standard (like opencl) >_> and why wouldnt it be accessible to me directly Mar 22 19:17:06 balls2thewall: Well, they integrate GPU-specific drivers into Android. Mar 22 19:17:43 Just the same as the version of OpenGL that you have on your device is specific to your hardware. Mar 22 19:18:05 Writing a test for my service, I want to make sure that a notfication is shown. Any way to do that? Mar 22 19:19:47 balls2thewall: Renderscript is an alternative to OpenCL, not a layer on top. Mar 22 19:22:24 i need some more info on this >_> i somehow dont want to believe something like this would be made from scratch. for every possible gpu the device could have Mar 22 19:22:49 especially when certain other options exist *cough* opencl *cough* Mar 22 19:24:12 balls2thewall: renderscript in no way uses opencl. it was made from scratch. Mar 22 19:24:48 I'm not super familiar with the details, but it basically compiles your renderscript C into a combination of cpu and gpu instructions, and manages the flow of data between the two as needed Mar 22 19:25:18 balls2thewall: Well, a GPU vendor may or may not choose to make use of their pre-existing OpenCL technology when they implement Renderscript support. Mar 22 19:25:28 They're not too far removed from each other. Mar 22 19:26:14 How would I go about imitating a person clicking a button in java code (inside the application)? Mar 22 19:27:49 does it take up more resources to make a button with shape in xml? Mar 22 19:32:39 trying to make a java server that send an image as a byteArray to an android Device what would be the correct way to send and receive the image Mar 22 19:33:16 output the binary data as some sort of haiku over plaintext for maximum style points Mar 22 19:33:45 StingRay_: I have to use differend id's? Mar 22 19:33:53 well you should try Mar 22 19:33:59 cause I think that will fix it Mar 22 19:35:46 Hm... I don't know how. Create custom view? Mar 22 19:36:31 My project tree has a messed up order. Src is usually at the top but is now at the bottom. Does anyone know how I managed to do that? (or how to turn it back)? Mar 22 19:36:55 Dalv_Vokicz: myView.setId(someIdInt); Mar 22 19:37:09 just to test Mar 22 19:37:22 do that on views where the data changes Mar 22 19:38:11 Math.random? Mar 22 19:38:47 () * someInt Mar 22 19:39:31 well just to test the theory, suppose you could use the upper limit of an int Mar 22 19:41:28 bleh i need to remember to keep a ngotiating cheat sheet handy so I always have a quick riposte for last minute stunts Mar 22 19:41:39 hate the salesman ship aspect of mobile consulting Mar 22 19:41:51 sup guys Mar 22 19:42:47 I've a question, if anyone is able to answer Mar 22 19:42:53 That works. I think it's necessary to avoid using existing IDs?.. Mar 22 19:44:45 sir-nick, dont ask to ask, just ask Mar 22 19:45:09 ah... well... I was wondering if it's possible to have a sound/mp3 play when I answer and close a call Mar 22 19:45:55 if you've ever played metal gear solid 1... you'll remember the codec featured in it Mar 22 19:46:16 was wondering whether it'd be possible if it doesnt exist to actually do that on android Mar 22 19:46:25 The first Metal Gear was weird. "I feel very asleep..." Mar 22 19:46:41 lol Mar 22 19:46:45 sir-nick: sure. You just listen for broadcast events. Mar 22 19:46:58 broadcast events? Mar 22 19:47:03 sir-nick: what you can't do, is record the call, or play audio into the call Mar 22 19:47:11 (without using private apis, etc) Mar 22 19:47:14 sir-nick: all is OK. Would you like to give this solution on StackOverflow? Mar 22 19:47:32 Thanks Mar 22 19:47:36 sir-nick: http://developer.android.com/reference/android/telephony/TelephonyManager.html#ACTION_PHONE_STATE_CHANGED Mar 22 19:47:38 I have an activity with One button and I want to do myBtn.performClick(); How do I give it one second before performing that click when the activity is initiated? Mar 22 19:47:59 sir-nick: have your receiver call startService for a service to play the sound and end itself. Mar 22 19:48:00 bearing in mind, I'm not a programmer (only do HMTL/CSS) Mar 22 19:48:03 oh. Mar 22 19:48:08 uh, get a programmer to do this, or learn java? :> Mar 22 19:48:08 sorry Mar 22 19:48:21 Well I was wondering if something similar exosted Mar 22 19:48:25 existed* Mar 22 19:48:34 I'm sure there's some app but really it's trivial. Mar 22 19:48:52 it's a neat app idea though tbqh. Mar 22 19:48:53 ah Mar 22 19:48:57 * lov steals it Mar 22 19:49:03 :P Mar 22 19:49:20 * pragma- files the patent first. Mar 22 19:49:22 I have many app ideas better than that Mar 22 19:49:58 EGamerHDK: Handler#postDelayed(Runnable,long) Mar 22 19:49:58 where is ant? Mar 22 19:51:18 many gles 1.x uses out there? Mar 22 19:51:22 if you make an app for that, lov, let me know Mar 22 19:51:48 ali1234: `which ant` will tell you that Mar 22 19:52:12 nevermind, google answered Mar 22 19:52:27 actually... is it possible to change lock/unlock sounds? Mar 22 19:52:32 with root Mar 22 19:59:17 sir-nick: you might want to ask on #android or #android-root. There might be folks there who will know apps that do exactly this. Mar 22 20:04:51 UNFORTUNATELY Gl2JNI HAS STOPPED! Mar 22 20:05:05 quite unfortunate Mar 22 20:05:27 most unfortunate. Mar 22 20:07:14 hey plasma works. however, it takes up 1/9th screen size. Mar 22 20:12:09 if you hit menu or home, does it auto stop running programs like the Plasma sample? Mar 22 20:17:18 JohnnyL: "no" Mar 22 20:17:27 JohnnyL: I'd strongly recommend that you look up the activity and the application lifecycle. Mar 22 20:17:34 lov: ok Mar 22 20:18:02 that new nativity screen thingie, i should use that > 2.3 Mar 22 20:18:04 ? Mar 22 20:18:34 guys do you know where I can find something about using different layouts and fragments depending on orientation Mar 22 20:18:42 I can't find it under developer fragments Mar 22 20:18:45 know I saw it somewhere Mar 22 20:19:49 P3nnyw1se: http://developer.android.com/guide/topics/resources/providing-resources.html Mar 22 20:20:46 hmmm Mar 22 20:20:51 I started a new app this week... this one line made me extra happy: Mar 22 20:21:06 What could cause crash in this line: echoSocket = new Socket("taranis", 7); Mar 22 20:21:24 java.lang.RuntimeException: Unable to start activity ComponentInfo Mar 22 20:21:45 sounds like you're looking at the wrong line; mismatch between the build you're running and the sources? Mar 22 20:22:39 when i change a variable being displayed by a fragment, how can i make sure that i see the change happen immediately in the running app? Mar 22 20:23:08 @ctate, don't think so. Just ran this program with this part and anything related commented out and it worked fine.. Mar 22 20:23:41 yeah but there's no way that a startActivity() failure can result from plain old Socket code Mar 22 20:23:56 Also, it is in catch statement, so.. Mar 22 20:24:22 Hm, i shall investigate :) Mar 22 20:24:29 bryan I'm trying to wrap my head around this.. the link you provided I found port/land 2 orientation ways Mar 22 20:24:34 but where does this come into play Mar 22 20:24:40 in my xml file`? Mar 22 20:25:49 ctate: networking on UI thread. Mar 22 20:26:01 icehaunter: can you pastebin the relevant activity AND the stacktrace? Mar 22 20:26:06 oh, strictmode failure? yeah, don't do that. Mar 22 20:26:19 or, more simply, are you doing networking in onCreate, etc? Mar 22 20:26:35 and yeah when you share what the errors are, you do need to supply the *whole* error message :) Mar 22 20:27:25 lov, i am starting a little testing program, so there is not much to it yet: 5 lines of code literally Mar 22 20:27:41 * lov sighs Mar 22 20:27:43 it's in onCreate isn't it. Mar 22 20:27:58 lov, it must be not? Mar 22 20:28:02 correct. Mar 22 20:28:11 You MUST NOT do IO on the UI thread. Mar 22 20:28:16 Consider using an AsyncTask. Mar 22 20:28:26 * icehaunter cries Mar 22 20:29:08 can it be the case? Mar 22 20:29:21 I don't understand what you're asking. Mar 22 20:29:25 Your lack of threading is bad and you should feel bad, icehaunter Mar 22 20:29:32 * lov rolls his eyes Mar 22 20:29:43 I feel bad :< Mar 22 20:30:02 icehaunter: it's a safety mechanism because developers refused to fix their terrible code. It's annoying for proof of concept apps, but just deal with it. Start up an AsyncTask. Mar 22 20:30:47 lov, so using AsyncTask will fix the crash? Mar 22 20:31:36 sorry for stupid questions Mar 22 20:31:55 hi, i import trebuchet launcher soruce code in eclipse but i have some code such us " com.android.internal.R" don't resolve and other, I know that i must import framework.. Mar 22 20:34:02 hey I'm looking at a guide for orientation change, specifically an if/else statement that checks if I'm on landscape or on profile orientation.. Mar 22 20:34:32 I'm unsure how to use it.. cause in my case I have an activity with a frameLayout 4 fragments that can be in that view one at the time Mar 22 20:34:43 I want when its in landscape to have 2 fragments share that one view Mar 22 20:34:50 mmm and I guess I dont know where to start Mar 22 20:35:06 P3nnyw1se: most likely you don't want to do that in code Mar 22 20:35:17 you want to use the resource system for landscape and portrait mode to load other layouts Mar 22 20:35:20 I was hoping to do it in the XML Mar 22 20:35:23 (that might include different fragments) Mar 22 20:36:01 so mmm I check for the orientation and if A: I add one viewgroup? if B I add 2 viewgroup? Mar 22 20:37:07 and the reason you can't do it in xml is ? Mar 22 20:37:18 well, resource folders etc Mar 22 20:37:20 ? Mar 22 20:37:51 I didn't say I couldnt? in fact I would prefer it that way Mar 22 20:38:17 oh, just thought there was a vild reason you were doing it in code Mar 22 20:38:31 nope havent tried it before ever and was linked a guide Mar 22 20:38:37 that started throwing if/else statements at me Mar 22 20:39:50 so are we talking about me making 2 completely different xml files identical, except the place I want 2 fragments in landscape and 1 fragment in profile? Mar 22 20:40:24 you not see the screen change stuff in the docs ? Mar 22 20:40:29 layout-land etc ? Mar 22 20:40:42 How can I understand if GPS_PROVIDER cannot load but enabled? Mar 22 20:40:51 lol sorry no :P Mar 22 20:40:55 where am I suppose to look Stingray Mar 22 20:41:01 Dalv_Vokicz: did you sort your prob ? Mar 22 20:41:29 P3nnyw1se: offical docs Mar 22 20:41:46 P3nnyw1se: always prefer xml layout files when given the option, and your layout overrides can include they stuff they have in common Mar 22 20:42:39 StingRay_: sorry... what do you mean? Mar 22 20:42:53 view id? Mar 22 20:43:11 alright I'm lost Mar 22 20:43:48 ohhh Mar 22 20:43:58 I'm suppose to manually create those folders ? Mar 22 20:44:00 It's resolved Mar 22 20:44:02 no wonder I can't ind them Mar 22 20:44:03 find Mar 22 20:44:17 Dalv_Vokicz: what was it ? Mar 22 20:45:28 StingRay there is no layout-land just layout in my folder.. so my question is.. what does the 'layout' resemble? Mar 22 20:45:33 do I make both a layout-land and profile Mar 22 20:45:39 or just the land.. or just the profile Mar 22 20:46:14 StingRay_: you were right, ID's problem Mar 22 20:46:49 Nooo Mar 22 20:47:24 I caught it again... but it not as often as before. Mar 22 20:47:28 Hey there. Someone experience with robospice? Mar 22 20:47:49 P3nnyw1se: your default layout goes in layout, your landscape override goes in layout-land Mar 22 20:48:35 alright so whatever I put into the layout-land it reacts to if its landscape mode Mar 22 20:48:44 yes Mar 22 20:48:46 so are we talking a total copy of my layout here? Mar 22 20:49:03 I'll try creating custom view. Mar 22 20:49:17 I can't get the RoboSpice examples running ... someone? Mar 22 20:49:18 if they are named the same, then you just do setContentView(R.layout.my_layout); Mar 22 20:49:32 android will choose the most appropriate layout for you Mar 22 20:50:01 not really a copy, a landscape optimized version of it Mar 22 20:50:19 hehe sorry if I seem slow but I never attempted this Mar 22 20:50:26 if there are common views shared between them, you can include the common views Mar 22 20:50:27 but I think I'm getting it Mar 22 20:50:49 http://developer.android.com/guide/topics/resources/providing-resources.html\ Mar 22 20:50:53 http://developer.android.com/guide/topics/resources/providing-resources.html Mar 22 20:51:11 well the thing is.. everything is suppose to be identical except 1/3 of the screen that I want to be in profile 1 fragment Mar 22 20:51:15 and in landscape 2 fragments Mar 22 20:51:46 It's as often as before now. Is Google Maps a virus? Mar 22 20:52:05 baby steps, just copy and modify it, you can learn includes later, though i recommend sooner than later if you have this happen frequently (and it will) Mar 22 20:53:11 http://developer.android.com/guide/topics/resources/layout-resource.html#include-element Mar 22 20:53:28 guess this is gonna be a trial and error solution Mar 22 20:53:47 you need to read that first link and understand resource qualifiers. then it is really simple Mar 22 20:55:22 you probably do not want layout-land, you probably want layout-sw600dp Mar 22 20:55:36 unless you want both fragments in landscape on any screen Mar 22 20:58:31 Still nobody can help me on stating with roboSpice ? Mar 22 20:59:16 level9: what is it ? Mar 22 20:59:22 Whats my problem? Mar 22 20:59:30 no Mar 22 20:59:34 what is roboSpice? Mar 22 20:59:36 level9, what about samples? Mar 22 20:59:36 https://github.com/octo-online/RoboSpice-samples Mar 22 21:00:15 StingRay_: I want to run those roboSpice examples ... Mar 22 21:00:21 luv, can you please give me a brief explanation on how to use asynctask.. I am new to the platform and java.. I still cannot get this thing to work :( Mar 22 21:00:42 still, seems to be the socket and my stupidity case Mar 22 21:01:11 vovkab, StingRay_ do you know roboSpice? Mar 22 21:01:16 or pure stupidity Mar 22 21:01:40 birdbeck I had this philosophy that I could have the double fragment in landscape mode no matter the device.. and if that was too small for some phones then they had the profile option... Mar 22 21:03:20 level9: there are loads of samples there Mar 22 21:03:32 just look at them Mar 22 21:03:34 StingRay_: But I can't get none running Mar 22 21:04:11 ok, well you should sort that out so you can Mar 22 21:04:24 Always sorry? Mar 22 21:04:26 why wouldn't some samples from the NDK not work? Mar 22 21:04:27 sorry? Mar 22 21:05:31 level9: are you really going to make people ask "oh, why can't you get them running" ? Mar 22 21:07:18 Sorry for that. I was just trying to find you if there someone ever dealt with robospice Mar 22 21:13:07 holy shit Mar 22 21:13:22 we are beating the shit out of Czech Mar 22 21:20:28 level9, 1. download any sample, i.e. Mar 22 21:20:28 https://github.com/octo-online/RoboSpice-samples/tree/release/robospice-sample-core Mar 22 21:20:28 2. download jars from here: Mar 22 21:20:28 https://github.com/octo-online/robospice/tree/repository/dependencies/1.4.1-SNAPSHOT/robospice Mar 22 21:20:28 copy them and android-support.jar into robospice-sample-core/libs Mar 22 21:20:28 3. import project into your IDE, attach libs to the project and you ready to go Mar 22 21:21:59 more details here: https://github.com/octo-online/robospice/wiki Mar 22 21:24:18 hi anyone can help me? Mar 22 21:25:23 Hello Mar 22 21:26:26 * P3nnyw1se slaps pepigno75 around a bit with a large trout Mar 22 21:26:29 ask the question Mar 22 21:26:35 and if someone can help you they will reply Mar 22 21:26:52 I need some TextViews, which have to be shown on a random position on a screen. If it's possible, it have to be match to the display size. How can i do this? : Mar 22 21:26:54 :) Mar 22 21:27:20 random position or random ordering? Mar 22 21:27:36 cause it would be fairly easy to place them in random permanent places Mar 22 21:27:42 like 6 permanent places and swap between them Mar 22 21:28:05 position, but they dont have to be on an other one Mar 22 21:28:20 without planting deeper thought into it Mar 22 21:28:31 I would place 20 different textViews Mar 22 21:28:36 then roll 1-20 Mar 22 21:28:46 Right Mar 22 21:28:48 and if 5.. pick textview @id Mar 22 21:28:50 5 Mar 22 21:28:51 Thats a good idea, thanks Mar 22 21:28:54 i know Mar 22 21:29:01 and the others have to been hidden Mar 22 21:29:16 yes shouldnt be a problem as long as nothing is in them Mar 22 21:29:17 if they are blank it wont matter Mar 22 21:29:21 But have you an idea how i can give size bei every display-size else? Mar 22 21:29:25 i'm nearly new Mar 22 21:29:29 but you can set View.GONE if you want Mar 22 21:30:05 Silerinty I dont think you will experience your textViews dissapearing out of the screen Mar 22 21:30:09 as long as they are in your parent view Mar 22 21:30:14 correct me if wrong birbeck Mar 22 21:30:29 not unless you did it intentionally Mar 22 21:31:03 i have no idea what the end goal is here Mar 22 21:31:18 placing random textviews on the screen Mar 22 21:31:23 but..my solution which I think he is using Mar 22 21:31:27 is not planting random Mar 22 21:31:31 Silerinty, or you could use something with .setX and .setY for textviews Mar 22 21:31:32 just planting a lot.. then swapping between them Mar 22 21:31:34 so it looks random Mar 22 21:31:44 no its placing 20 textviews on the screen and choosing 5 random ones Mar 22 21:31:48 yes Mar 22 21:32:01 thats fine, i just dont know what the use case or requirements are Mar 22 21:32:05 I only want, that on the tablet is not to much place under the textviews when i give them sizes Mar 22 21:32:13 silerinty Mar 22 21:32:20 do they have different styles, do they overlap, need different typography? Mar 22 21:32:21 Maybe on the tablet are the textviews bigger as on the mobile phone Mar 22 21:32:25 how essential is the randomness ? Mar 22 21:32:30 can 20 actually fit on the screen? Mar 22 21:32:31 I mean is it okay if its 'cheat' random Mar 22 21:32:35 or does it actually have to be random Mar 22 21:33:07 no it can be cheat like you say Mar 22 21:33:09 you could do some random padding.. roll a lot of ints Mar 22 21:33:19 just seems like a lot of work for the same result Mar 22 21:33:22 hmmm Mar 22 21:33:27 Silerinty: so you set the text size in dimens and dimens-sw600dp Mar 22 21:33:28 I can create lots of TextView and hidden someones Mar 22 21:33:31 P3nnyw1se, (Tesxtview).setX Mar 22 21:33:45 or setPaddingTopX Mar 22 21:33:45 :P Mar 22 21:33:50 then your textview just uses android:textSize="@dimen/randomTextViewSize" Mar 22 21:34:12 The size 'dp' is dependet on the display-size? Mar 22 21:34:19 with random and function, which would get other coordinates, widths and ajust itself to not cross over Mar 22 21:34:19 you would use sp Mar 22 21:34:30 dp is for graphics, sp is for text Mar 22 21:34:45 The Random problem have i solved... Mar 22 21:35:05 I thought you said you wouldn't cheat :P Mar 22 21:35:09 my solution is cheating Mar 22 21:35:13 its 20 fixed positions ..that swap Mar 22 21:35:16 its not really random Mar 22 21:35:18 I said, that cheating is okay? Mar 22 21:35:22 oh ok :P Mar 22 21:35:26 yes, but thats okay ^^ Mar 22 21:35:34 (02:32:56 PM) Silerinty: no it can be cheat like you say Mar 22 21:35:41 lol, silerinty, wait a little, conversation will give birth to moore and more complex and hardcore ideas :D Mar 22 21:36:04 and if someone writes 'nothing is really random' Mar 22 21:36:06 I will slap him :P Mar 22 21:36:28 meh, go with the simple solution instead of having to calculate the size and position of each element Mar 22 21:36:49 Sorry, i'm really new at android developing... Mar 22 21:36:54 so am I Mar 22 21:36:57 2½ weeks into it Mar 22 21:37:01 but 1 year of java Mar 22 21:37:02 And me :) Mar 22 21:37:08 But no java Mar 22 21:37:12 C# Mar 22 21:37:21 pffff :P Mar 22 21:37:48 Hey, I would lovw to develop on android on C# Mar 22 21:37:59 love, i meant Mar 22 21:38:40 MonoDevelop is.. good, but it is paaain to get android tutorials for some things to work under it Mar 22 21:38:41 go do Iphone shit instead Mar 22 21:38:48 thats C# right ? Mar 22 21:38:50 or something like that Mar 22 21:38:54 So sorry when i dont understand, but how can i solve the problem with the display-size that (f.e. on the tablet) is no parnet space Mar 22 21:38:56 Only iPhone can objective c Mar 22 21:38:57 Objectivee-C Mar 22 21:39:03 objective C Mar 22 21:39:04 thats objective-c, not even close to c# Mar 22 21:39:06 the language that wanted to be java Mar 22 21:39:14 *blank Mar 22 21:39:16 c# wanted to be java Mar 22 21:39:28 objective-c wanted to be apple Mar 22 21:39:29 java still wants to be c# Mar 22 21:39:31 :) Mar 22 21:39:35 java wants to be java 2 Mar 22 21:39:36 :P Mar 22 21:39:38 g00s: talk to the hand Mar 22 21:39:39 g00s, + Mar 22 21:40:06 this semester of clas Mar 22 21:40:06 c# has some nice qualities, but in general... Mar 22 21:40:23 P3nnyw1se, you cannot even imagine, how much pain it was to get used to nested classes Mar 22 21:40:26 in general, its a much better thought out language which has evolved nicely Mar 22 21:40:37 I have 36 hours of PHP and HTML teachings.. and I never tried it.. and afterwards I'm suppose to do my own webservice and webpages Mar 22 21:40:49 P3nnyw1se: Which Layout have i to use for my display problem? Mar 22 21:41:02 Whats your display problem? Mar 22 21:41:09 birbeck, in general C# is clean, smooth an pretty, while Java can work on pretty much anything Mar 22 21:41:21 2 words Mar 22 21:41:27 garbage... collector.. Mar 22 21:41:49 never heard this before :D Mar 22 21:41:57 P3nnyw1se: are you saying c# doesnt have one? Mar 22 21:42:20 objective doesnt .. does it ? Mar 22 21:42:27 P3nnyw1se, C# has one Mar 22 21:42:28 yes Mar 22 21:42:33 but objective C Mar 22 21:42:34 doesnt right ? Mar 22 21:42:35 anybody notice, the last updated on the OHA website was July 18, 2011 O.o Mar 22 21:42:38 objective-c has one now Mar 22 21:42:43 whaaaat Mar 22 21:42:44 since when Mar 22 21:42:53 My display problem is, that on the tablet is to much blank space, if i make the textview 'good' for the mobile phone Mar 22 21:42:57 Objective-C and C# are two different languagess Mar 22 21:43:08 they have to adapt to the display-size :D Mar 22 21:43:24 well silerinty you could do a tablelayout Mar 22 21:43:28 P3nnyw1se: its called ARC Mar 22 21:43:32 Silerinity, anjust the pure size in code, depending on the size Mar 22 21:43:39 *ajust Mar 22 21:43:54 hm.. well doesn't matter.. I'm learning PHP, HTML, XML, and MYSQL right now Mar 22 21:43:57 And a tablelayout adapt to the display.size? Mar 22 21:43:59 4 languages is plenty enough at the time Mar 22 21:44:27 silerinty better direct this at birbeck I fear you have come to think I actually know something ;) Mar 22 21:44:50 P3nnyw1se, if not a secret, what for would you need to switch for mobile dev to web?) Mar 22 21:45:00 table layouts have stretchColumns and shrinkColumns Mar 22 21:45:23 icehaunt I'm not sure I get that question ? :) Mar 22 21:45:40 why I'm learning PHP and HTML aswell ? Mar 22 21:45:44 P3nnyw1se when you have a question to PHP / MySQL ask me :D Mar 22 21:46:07 I decided to not do a PHP plugin for eclipse Mar 22 21:46:14 instead using notepad..so I get 0 help Mar 22 21:46:17 you learn a lot.. and you fail a lot Mar 22 21:46:24 So birbeck, tableLayout is a good choice when i will do an app, which have to be adapt to the display resolution Mar 22 21:46:39 alright off to make pancakes now Mar 22 21:46:40 i also do PHP at Notpad... Mar 22 21:46:46 all layouts can adapt to the size of the screen Mar 22 21:46:54 P3nnyw1se, use PhpStorm or something.. Mar 22 21:46:57 if you aren't at least using a syntax highlighter, you're doing it wrong Mar 22 21:47:00 you will use relative and linear layouts the most Mar 22 21:47:02 and the textviews also? => HOW? Mar 22 21:47:16 yes, thats right Mar 22 21:47:30 Can you give me a clue what i have to do :D Mar 22 21:47:54 P3nnyw1se, bon appetit Mar 22 21:48:12 i want that the textview are all over the size... Mar 22 21:48:33 and that you can Read all on Tablet and also on mobile phone, so the size have to be other, birbeck :D Mar 22 21:50:06 ok, my brain is melting, it is 2 A.M. here.. so good night everyone! (Or good day || morning || evening, which one you prefer :3) Mar 22 21:50:22 good night Mar 22 21:52:58 birbeck, can you help me or give me a clue for maybe a searchterm? :D Mar 22 21:56:07 Hi, quick question, I am trying to install my applications apk with adb by calling "adb install -r com.some.app.apk" and I am getting following error: Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]. However, I have never used any signatured version. The funny thing is that from my old laptop, where I started the project long ago, the "ant debug" and "adb install -r ..." works perfectly. Any Idea what might be going on ? Mar 22 21:57:24 debug certificate is different Mar 22 21:57:33 just uninstall old version from device Mar 22 21:58:39 can I uninstallit anyother way ? It is a custom media box with a customized desktop and settings, and the uninstall option is unavailable from gui. Can I do the same from "adb shell" ... ? Mar 22 21:58:52 yes Mar 22 21:59:23 adb uninstall [-k] - remove this app package from the device Mar 22 21:59:23 ('-k' means keep the data and cache directories) Mar 22 22:00:58 I already did that and the "adb uninstall xx.xx.xx" gave me a success message, from my old laptop, after that I tried to run adb install xx.xx.xx and I got message that the application was already installed,, so I used "-r" option and I got the inconsistent certificate error Mar 22 22:03:13 hm, maybe package name is different for some reasons? Mar 22 22:03:46 what happens if you try to execute uninstall twice? Mar 22 22:03:59 It just says failure Mar 22 22:06:04 try to run the app, and check exact package name it uses, you can find it from logcat, see if it is different from what you use when you try to uninstall Mar 22 22:06:45 or try to uninstall it from settings -> applications Mar 22 22:08:22 Is scaling a nine patch significantly slower than having a resource that is close to the size of the view (assuming the size of the view is relatively constant i.e. always 25 dp) Mar 22 22:08:25 the uninstall option is unavailable Mar 22 22:08:26 ? Mar 22 22:09:37 is this app is a system app? Mar 22 22:11:07 this is destinated to run in an android device that will only let the user use a few apps, so now I beleive that the vendor might have installed an old version as a system app ( omg, my bosses never tell me anynithing...) Mar 22 22:11:32 this can be a problem Mar 22 22:12:07 the device is rooted, cant i do anything from adb shell ? Mar 22 22:12:08 so you have two ways: obtain certificate or properly signed apk or use root to delete old version Mar 22 22:12:11 yes Mar 22 22:12:12 LuigiBairesDev: just copy your debug key over from your laptop Mar 22 22:12:25 LuigiBairesDev: adb root && adb wait-for-device remount Mar 22 22:12:27 go to system/app and delete apk Mar 22 22:14:38 vovkab: so I just rm /system/app/Myapp.apk ? Mar 22 22:14:59 yes, make sure you have a root Mar 22 22:15:02 evanc: Where is the debug key by defaylt ? Mar 22 22:15:37 evanc: the problem is that he have system app installed, so he can't remove it with adb unstall Mar 22 22:16:08 docs are only available online? Mar 22 22:16:43 JohnnyL: they are also available as part of sdk Mar 22 22:16:54 vovkab: what dir? Mar 22 22:16:56 vovkab: yeah but if he pulls his key over, the signatures will match and he can install on top of it (but can't remove it completely) Mar 22 22:16:56 in yoursdk/docs Mar 22 22:16:57 i have ndk and sdk. Mar 22 22:17:07 LuigiBairesDev: I don't know, ~/.android/debug.keystore maybe? Mar 22 22:17:43 LuigiBairesDev: but you should get a real signing key anyway because that debug one expires one year from creation Mar 22 22:18:01 also make a debug key that expires a long time from now :P Mar 22 22:18:16 or just use a real key Mar 22 22:18:33 canadiancow: the problem is that his debug app built from his laptop was apparently installed on /system Mar 22 22:18:37 (/facepalm) Mar 22 22:22:24 nevermind i have it Mar 22 22:25:47 lol evanc Mar 22 22:32:06 so when a key expires, what do you procedure since you cant't just install the same application with a different key ? Mar 22 22:33:27 thats why it needs to be 30+ years Mar 22 22:33:45 if people are still using my apps in 30 years, may god help them Mar 22 22:34:13 You can uninstall the app (old key) and re-install the app (new key) Mar 22 22:34:28 debug certificate is only for test purpose, you need to create your release certificate 20+ years, and use it. Mar 22 22:34:32 not with the same package Mar 22 22:35:21 here is more info about certificates and how to create them: http://developer.android.com/tools/publishing/app-signing.html Mar 22 22:38:11 OMG, I feel like a vb6 developer ! I rebooted the device and it let me install the app from my new laptop.... it just doesn't make any sense !! Mar 22 22:40:31 hmm how do i get a unique instance of a drawable, so it isn't cached for use by other callers? Mar 22 22:41:47 canadiancow: take a look at this one: http://www.curious-creature.org/2009/05/02/drawable-mutations/ Mar 22 22:43:29 canadiancow: can you make a defensive copy? Mar 22 22:44:35 thanks Mar 22 22:44:40 birbeck, i dont know, can i? Mar 22 22:44:44 looks like mutate does what i want Mar 22 22:47:27 yep :) Mar 22 22:49:28 mutate looks like it could be lighter on memory usage than having an accessor return a new bitmap instance of the drawable Mar 22 22:49:53 yes, and that's what im using Mar 22 22:49:56 :P Mar 22 22:57:19 wth is 'R'? Mar 22 22:57:36 it's a class containing references to resources Mar 22 22:58:26 autogenerated from your resource files Mar 22 22:58:50 Leeds: except he's doing pure ndk (last time he asked) so who knows what he'll end up with Mar 22 22:59:14 oh, well... dunno then Mar 22 23:08:58 native-activity sample may not be compatbile with every version of android?? Mar 22 23:12:07 why does Environment.getExternalStorageDirectory() returns me /storage/emulated/0, while the external storage directory is /storage/emulated/legacy? Mar 22 23:16:19 evening Mar 22 23:16:29 hello Mar 22 23:17:30 elegos: the /0 signifies that it's the emulated storage directory for the first user on the system, AFAIK Mar 22 23:17:52 which *probably* means you're on an N7 or N10 Mar 22 23:18:14 Leeds: any idea on how to properly get the external device mount point, without using the hack-ish way "/sdcard"? btw I'm on a Galaxy Nexus Mar 22 23:18:28 external storage* Mar 22 23:18:32 erm, you use the result of getExternalStorageDirectory and trust it Mar 22 23:18:39 ehm Mar 22 23:18:41 hopw does ones debug when adb install hangs on some samples? Mar 22 23:18:42 elegos: from an application, you use Environment.getExternalStorageDirectory() Mar 22 23:19:01 that returns me that erroneous /storage/emulated/0 Mar 22 23:19:08 note that this may not be the same directory/path as you would use to access it in adb shell :) Mar 22 23:19:14 adb shelling, I checked and it's /storage/emulated/legacy Mar 22 23:19:21 elegos: right. they're different paths Mar 22 23:19:22 uhm Mar 22 23:19:29 the application sees a different view of the filesystem Mar 22 23:19:36 then I've got a serious issue Mar 22 23:19:37 http://pastebin.com/NpkrGc8J Mar 22 23:19:58 I'm using the android.permission.WRITE_EXTERNAL_STORAGE Mar 22 23:20:00 what is fileUri? Mar 22 23:20:08 /storage/emulated/0/MartinekenBlog/44299de3c5bd4b66c6695ecf474ec59 Mar 22 23:21:06 Are you sure? :) Mar 22 23:21:12 yep, Log.d'd Mar 22 23:21:29 not sure then Mar 22 23:21:34 =\ Mar 22 23:21:36 are you sure you declared the permission correctly? Mar 22 23:21:41 no typos? in the right place? Mar 22 23:22:15 shit now all the apks can't be installed. Mar 22 23:22:42 JohnnyL: logcat should have details on the installation (or failure thereof) Mar 22 23:22:44 used the GUI to do that, in any case: this is the permissions Manifest file part: http://pastebin.com/RZYxiKj5 Mar 22 23:23:26 Hey there! Mar 22 23:23:31 JesusFreke: ok Mar 22 23:23:32 hey where!? Mar 22 23:24:06 here Mar 22 23:24:09 :P Mar 22 23:24:22 elegos: and it's a child of , not , right? Mar 22 23:24:48 JesusFreke: exactly, it's a manifest child Mar 22 23:24:58 Yeah, I dunno then :) Mar 22 23:25:27 You're running this as the first user (user 0), right? Mar 22 23:25:42 oh galaxy nexus. so no multi-user Mar 22 23:26:02 question about what database program defaults are stored in ? Mar 22 23:26:46 sqlite or probably preference(xml file) Mar 22 23:27:07 the db PROGRAM is SQLite Mar 22 23:27:13 in the applications i have an application java code viewer which took over as my default text viewer Mar 22 23:27:23 droidbuster: xml in app data Mar 22 23:27:39 there is no make default set but anytime i open any text it defaults to this program Mar 22 23:27:53 if i remove the program it fails to open any text document \ Mar 22 23:28:09 native activity has stopped Mar 22 23:28:16 everyone else get this? Mar 22 23:28:57 droidbuster: you need to go to settings -> applications -> your default viewer and click clear defaults button Mar 22 23:29:05 wiping the pgone is not an option bc it has no connection and i cant redo the phone but i do have root and could modify it if i clearly know what is calling the default text document renderer to javas code viewer Mar 22 23:29:18 vovkab: it is not set there whatsoever Mar 22 23:29:26 JesusFreke: sadly this returns false: String created = (outputFile.mkdirs()) ? "true" : "false"; Mar 22 23:29:42 java code viewer has no make default checked. if i remove the program no documents open Mar 22 23:29:50 it must be a bug, trying the brute way "/sdcard" Mar 22 23:30:22 elegos: I don't think /sdcard is available to your application Mar 22 23:30:29 elegos: you might try creating the directories manually Mar 22 23:30:49 droidbuster: what exactly you want to achieve? Mar 22 23:30:50 I'm sure it's too late for the next release if it hasn't been done, but Android needs more notification management controls. Mar 22 23:30:50 JesusFreke: in which way, if I can't get into /storage/emulated/0? Mar 22 23:30:55 i.e. creating each individually, instead of relying on mkdirs. At least, you'll get a more relevant exception if it fails Mar 22 23:31:18 JesusFreke: actually it should create only the "MartinekenBlog" folder Mar 22 23:31:19 remove java code viewer as default textviewer and remove the crappy app it crashes on any file over 10kb Mar 22 23:31:52 elegos: right. but if you try to create it manually, you should get the actual error from the create directory operation Mar 22 23:32:07 rather than just some false return value that doesn't tell you why Mar 22 23:32:13 JesusFreke: using file.mkdir()? Mar 22 23:32:16 yea Mar 22 23:32:21 for the directory Mar 22 23:32:32 the actual error may or may not be useful, but it's something to try, at least Mar 22 23:32:46 droidbuster: just delete the app, or disable it from the settings if you are on 4.x Mar 22 23:33:20 JesusFreke: trying. Sadly it takes a while to get data :P Mar 22 23:33:57 elegos: make sure sdcard is not mounted to your pc Mar 22 23:34:22 vovkab: even if it's using the MTP protocol? Mar 22 23:34:30 vovkab: as stated above if i remove the app it wont open any text document Mar 22 23:34:31 mtp should be fine Mar 22 23:34:40 elegos: oh, I guess mkdir doesn't throw an exception either Mar 22 23:34:45 so i need to modify the settings files or.... db Mar 22 23:34:51 something funny happened Mar 22 23:34:52 JesusFreke: mkdir does, IOException Mar 22 23:34:58 droidbuster: install the viewer you like from play store... Mar 22 23:35:04 elegos: not in the javadoc I'm looking at Mar 22 23:35:09 aide is a good viewer Mar 22 23:35:22 but no matter what i do it defaults to java code viewer Mar 22 23:35:42 JesusFreke: right: this does NOT throw... Mar 22 23:36:11 yeah. I thought mkdir would throw an exception, like createNewFile. but it doesn't Mar 22 23:36:19 JesusFreke: I'd create the dir in MTP and try again... and see if it can create the file Mar 22 23:36:31 elegos: just for kicks, try to create a file in the sdcard root, from your application Mar 22 23:36:40 JesusFreke: ok Mar 22 23:38:29 JesusFreke: I'd say no, it doesn't work =\ http://pastebin.com/ZX1wisXd Mar 22 23:39:20 elegos: hmm. I'm not sure you want the file:// prefix Mar 22 23:40:13 JesusFreke: trying manually deleting it Mar 22 23:40:19 should be the problem probably Mar 22 23:40:58 elegos: where did that come from anyway? Mar 22 23:41:09 aha! it was! from Uri.Builder (android class) Mar 22 23:41:16 ah, yeah Mar 22 23:41:43 btw I now create the file as directory Mar 22 23:41:49 have to mkdirs() for the parent Mar 22 23:41:49 :P Mar 22 23:41:59 yeah :) Mar 22 23:42:21 outputFile.getParentFile().mkdirs(); should work Mar 22 23:43:38 droidbuster: looks like aide doesn't support intent for java files, I can see like 7 apps ready to open java file, but no Aide Mar 22 23:43:52 btw is it possible that sensible time passes between a broadcast and the receiver's notice? Mar 22 23:44:28 ah all this trouble was because of develop tool bugs. Mar 22 23:48:04 how many megs of ram do you have on your devices? Mar 22 23:50:49 can i define the layout at anytime in an activity? Mar 22 23:51:25 yes, call setContentView(); Mar 22 23:51:48 uhm... I've got an HTML text shown in a TextView, and the text is being parsed by Html.fromHtml(myHTMLstring, myCustomImageGetter, null). It works OK, but the images are not shown. My class successfully save the images as PNG files (with as name their URL MD5 hash), but images are never shown... any idea? this is the class which implements Html.ImageGetter: http://pastebin.com/gwtZU16W Mar 22 23:52:45 the idea is to return the drawable instantly if it's already available locally, or a drawable with null content, download, replace its drawable and invalidate the container View Mar 22 23:52:56 thanks bud! Mar 22 23:53:13 elegos: make sure path to images is set correctly Mar 22 23:53:30 great now DemoActivty doesn't work Mar 22 23:54:07 vovkab: double checked, indeed it says "ImageCacher: serving image *HASH*" Mar 22 23:54:14 (on the second execution) Mar 22 23:54:32 I've downloaded the image locally and added .png and it shows up correctly Mar 22 23:55:32 not the image, but the path to the image like file:///sdcard/..../image.png Mar 22 23:55:46 in your html Mar 22 23:56:33 vovkab: with Html.ImageGetter, every is being processed and src argument is being passed to the ImageGetter, which supposely returns with a Drawable Mar 22 23:57:39 so, what this all is for? just to download image and store it? Mar 22 23:57:49 vovkab: yep Mar 22 23:58:04 being a blog about 99% images, it's a good idea to cache them Mar 22 23:58:34 maybe it is better to use one of dozen of available libs? :) Mar 22 23:58:55 I don't know any of them =\ Mar 22 23:59:12 sample from android website: http://developer.android.com/training/displaying-bitmaps/index.html Mar 22 23:59:23 https://github.com/nostra13/Android-Universal-Image-Loader Mar 22 23:59:30 what is the trick to get all of the non working samples, to ...well... work? Mar 22 23:59:55 vovkab like i said i need to know the database or prefs file defaults are stored in \ Mar 23 00:00:41 hi guys, does anyone here know roughly what percentage of users who download apps from Google Play are using the old version of the Google Play store app (com.android.vending version 2.x)? Mar 23 00:00:54 I return a Drawable (DownloadableDrawable subclass) which returns its inner drawable, or null if it's not set. If the image is in cache, it directly returns the drawable loading it from the file, otherwise I return a "blank" DownloadableDrawable and in the AsyncTask I get the image, cache it and replace the returned DownloadableDrawable drawable attribute with the downloaded bitmap, then I invalidate the textview to force the redraw Mar 23 00:01:04 is this something like a joke? Mar 23 00:01:36 droidbuster: nothing is being saved in \, at least in /data/app.name/yourdatabase (which is SQLite btw) or /data/app.name/preferences.xml (or something similar) for preferences Mar 23 00:02:12 elegos so where is the default text viewer the built in one in android Mar 23 00:02:42 elegos: there is the same here http://developer.android.com/shareables/training/BitmapFun.zip, just use this example in your app Mar 23 00:02:43 droidbuster: probably you should delete the default values of the ORIGINAL reader Mar 23 00:02:53 ok Mar 23 00:03:32 vovkab: thanks, will study it Mar 23 00:05:44 vovkab: that's freaking enormous ._. Mar 23 00:06:28 it is the same what you are trying to do with a few more features... Mar 23 00:06:39 here is step by step explanation: http://developer.android.com/training/displaying-bitmaps/index.html Mar 23 00:07:48 this is a good sample if you want to understand how it works Mar 23 00:07:58 if not just take this lib https://github.com/nostra13/Android-Universal-Image-Loader and use it... Mar 23 00:10:28 I think I'm gonna debug my code first to understand what went wrong, then, eventually, I'll use the lib and/or follow the training Mar 23 00:18:08 sup fos! Mar 23 00:29:35 anyone have advoice on action bar customization or any good libraries/articles about it? I need an action bar that lets you drag it down (or tap it) until it takes up the entire screen, if that makes sense, sort of like iphone notification center Mar 23 00:31:31 you mean like android notifications ? Mar 23 00:31:33 :) Mar 23 00:31:40 I dont actually have an android phone xD Mar 23 00:31:57 just develop apps for it Mar 23 00:32:08 but sure why not =P Mar 23 00:33:48 I mean, I'm pretty new to android design but would it be 'bad' if I had an entire second screen on top of the regular one, just set the y value to way above the regular screen so all you see is the bottom. making it look like an action bar? Mar 23 00:33:59 or entire second activity I guess, not quite sure Mar 23 00:35:04 sounds like you should search for a lib like SimonVT slindingDrawer Mar 23 00:35:23 I think that can be bottom,left right not sure about top Mar 23 00:35:36 as that conflicts with android notifications Mar 23 00:35:59 I think that actually is what I want! thanks Mar 23 00:36:12 vovkab: I'm a step forward: I can get the cached images, but I can't get the downloaded ones invalidating the TextView. Apparently MyClass.this.myView.invalidate() doesn't work from the onPostExecute AsyncTask's method Mar 23 00:36:14 and he's in this channel when you want to complain Mar 23 00:36:21 but how do android notifications work, on the iphone you drag from the top 5px or so and it appears Mar 23 00:36:32 the idea was that people would drag the menu down from the bottom right corner of the screen Mar 23 00:36:43 Bunnub: well the copied from android, so yeah… the same Mar 23 00:36:48 they* Mar 23 00:36:56 ah ok Mar 23 00:50:11 Bunnub: Run the emulator, get in touch with how Android looks and works. Mar 23 00:50:35 so if a client was really flakey about a year ago, but it was somehwat understandable because they were in a high growth is it worth attempting to trust them now or should i wait a few more years? Mar 23 00:50:38 I'm actually planning on buying a nexus 4 within the week, but I have been messing around with an emulator a lot recently Mar 23 00:50:41 Just as with the iPhone, there are Design Guidelines. Learn them, embrace them, break them. In that order. Mar 23 00:50:55 haha, will do Mar 23 00:51:00 kakazza googles own apps do all of the above Mar 23 00:51:10 :) Mar 23 00:51:25 * StingRay_ gives kakazza a respect point Mar 23 00:51:35 don't hear the last bit that much in here Mar 23 00:54:53 is there a repository of libs for android like ActionBarSherlock? Like a place that helps with finding libs like it. Mar 23 00:55:03 you need nothing else Mar 23 00:55:17 lol Mar 23 00:55:17 alt.religion.actionbarsherlock Mar 23 00:55:22 hey jakey Mar 23 00:55:29 JakeWharton: haha Mar 23 00:55:33 what do you guys use to find android projects and hawt kinda rates are you seeing? Mar 23 00:55:42 gkatsev: try here: http://www.appbrain.com/stats/libraries/dev Mar 23 00:56:22 Dorky: the jobs seem to find me Mar 23 00:57:14 vovkab: cool. Any other things like it? Mar 23 00:57:26 napalm: how do they find you ? word of mouth? Linkedin? Your website? craigslist? Mar 23 00:57:47 also, I didn't know there were so many adnetworks :/ Mar 23 00:58:06 JakeWharton: any chance you can share your yesterday meetup slides? Mar 23 00:58:08 ActivityManager( 278): Unbind failed: could not find connection for android.os.BinderProxy@50f1a758 Mar 23 00:58:19 Dorky: Word of mouth, but today I was told I should get a LinkedIn profile setup Mar 23 00:58:38 vovkab: they will be posted along with the video Mar 23 00:59:16 cool, any estimate? :) Mar 23 01:03:13 not up to me but i sent along my slides Mar 23 01:03:19 i'll tweet and G+ when they're available Mar 23 01:03:57 there may be many errors in the emulators. but i am suprised the emus on 64 bit do as well as they do. sometimes the demos upload and work, sometimes not. Mar 23 01:03:58 ok, thanks Mar 23 01:04:22 i get some busines word of mouth but ive never really any made money off linkedin personally Mar 23 01:04:37 what part of the country are you in napalm what do you normally charge? Mar 23 01:05:52 Dorky: im probably not in your country, and this is not the place to talk money Mar 23 01:06:13 is there an #android-developers-biz channel? Mar 23 01:06:29 if not it seems reasonable since its android dev related...people have to eat after all Mar 23 01:07:39 I could do without eating for a few weeks Mar 23 01:07:51 really too fat compared to how I used to be Mar 23 01:08:06 well i used some of my massive income to buy a bicycle Mar 23 01:08:17 been riding it a bit Mar 23 01:08:28 frame didnt collapse yet so so far so good Mar 23 01:08:34 i used all my massive hordes to take 2 year break Mar 23 01:08:47 but that break included no exercise Mar 23 01:08:54 where did you live during those 2 yrs? somewhere cheap like thailand? Mar 23 01:09:04 well no, in my house Mar 23 01:09:06 :) Mar 23 01:09:18 its nuts i live in california and my massive income gets massively eroded by the high cost ofliving Mar 23 01:09:28 after everything maybe i clear a few thousand/month Mar 23 01:09:49 i could live in romania and clear more probably Mar 23 01:10:40 im sorta kiddinga bout the massive income but its not too shabby Mar 23 01:10:41 well I'm penniless now, and actually feel better about myself Mar 23 01:10:45 which is odd Mar 23 01:11:01 well thats terrific Mar 23 01:11:08 you can work pro bono on FOSS projects Mar 23 01:11:26 well I'm just trying android dev for a bit Mar 23 01:11:31 tis not what I really do Mar 23 01:11:47 android seems to be paying a ton right now Mar 23 01:11:58 i see a lot of job listings in the bay area offering $150k+ for 2 years android Mar 23 01:12:14 thats quite a stack for someone with only a few years expeience in anyhing and they dont say they need 5+ of java or whatever Mar 23 01:12:51 but contract clients dont realize that but they are starting too it seems like more and more Mar 23 01:28:10 hi guys, does anyone here know roughly what percentage of users who download apps from Google Play are using the old version of the Google Play store app (com.android.vending version 2.x)? Mar 23 01:28:51 I've got a 400 pixels width display, and I set a drawable's bounds to [0, 0, 500, 373], i.e. 500 width and 373 height. When I see it in the display though its width is less than its container (TextView with fill_parent as width). How can I avoid this? Mar 23 01:29:55 elegos: you mean you want it off the screen ? and it's being scale TO the screen ? Mar 23 01:30:07 cause that will come from the parent, if thats what you mean Mar 23 01:31:05 StingRay_: actually I tried with myView.getWidth, but AFAIK being in the onCreate of the fragment, my view will still have 0 width. In any case I'd like to make the image's width <= view's width Mar 23 01:31:48 ok you kinda lost me now, maybe I need more coffee Mar 23 01:32:12 lol... I load images in a TextView in the onCreate method of the fragment I'm building Mar 23 01:32:25 a textView ? Mar 23 01:32:34 yep, with HTML formatting Mar 23 01:32:53 oh, right now I really am "out of bounds" Mar 23 01:32:59 :) Mar 23 01:33:08 myTextView.setText(Html.fromHTML(myHTMLString, myImageGetter, null)); Mar 23 01:33:22 images are drawables Mar 23 01:39:14 wonderful... if I double the drawable bounds, it makes it bigger Mar 23 01:39:25 so, bounds are not in pixels Mar 23 01:39:33 Drawable.setBounds Mar 23 01:48:39 Where can I download the android kernel source code? Mar 23 01:49:38 https://android.googlesource.com/?format=HTML Mar 23 01:54:42 how come the intellisense etc for google maps api etc doesnt appear and i cnat seem to set the source location in eclipse even though my project using google play services references it as described on google site and the app works but intellisense doesnt? Mar 23 02:17:53 if I'm using pattern.matcher("tttttt").matches() and the pattern is [^f] why would it come back false ? Mar 23 02:29:45 StingRay_, what does matches() do? Mar 23 02:29:49 just check if it matches? Mar 23 02:32:23 StingRay_: you didnt specify a length attribute Mar 23 02:32:37 StingRay_: try [^f]* Mar 23 02:36:58 ah Mar 23 02:44:19 what's the best protocol and libs to use with connecting to an http game server desktop? encrypting would be nice too. **** ENDING LOGGING AT Sat Mar 23 02:59:58 2013