**** BEGIN LOGGING AT Wed Jan 30 02:59:59 2013 Jan 30 03:01:05 other options are db4o if the license is still free, not sure tho Jan 30 03:24:55 Hi there, I'm using eclipse and when I try to run in debug mode the gui of my application does not show up on the screen (device nor emulator), can anyone tell me some common mistakes I might be making to make this happen? Jan 30 03:26:09 does it start? Jan 30 03:26:33 yep, the application starts but then no controls show up Jan 30 03:26:47 I can see my vars and the starting values are correct Jan 30 03:27:09 but no way to use the application controls so I can step through Jan 30 03:27:25 and see changes Jan 30 03:27:56 It basically looks like an empty app with just the titlebar set Jan 30 03:27:59 have you put breakpoints in there that it's halting at ? Jan 30 03:28:26 ah, that's probably it, I must have put something in too early Jan 30 03:28:28 thank you Jan 30 03:29:50 that was it, thanks very much, too little sleep and too long of a day I guess ;) Jan 30 03:53:15 hey y'all Jan 30 03:53:48 anybody happen to remember the name of that website I could generate android starter apps from (there were checkboxes for libraries like roboguice and maven integration) Jan 30 03:53:51 ? Jan 30 03:54:41 there we go, found it -> http://androidkickstartr.com/ Jan 30 03:57:06 pay me $1000000000 and i'll write an awesome app Jan 30 03:57:18 oh that's not the kickstarter iwas thinking about Jan 30 04:28:17 hey guys Jan 30 04:28:40 just want to say thanks for all your help these past few days... this channel is the shizzzz! thanks again, all of you Jan 30 04:40:28 g00s, if I want to save list of object to xml, do I have to implement that list ? Jan 30 04:41:08 wat Jan 30 05:10:27 i'm watching this video of the new touchwiz multi-window capability; i'm seeing stuff like gmail and youtube which … i can't imagine they modified. but i thought that they had to modify apps for this Jan 30 05:10:46 no, they'd just need multiple PhoneWindows Jan 30 05:17:14 hello all Jan 30 05:17:42 morning Jan 30 05:18:29 hey stin Jan 30 05:18:31 hey StingRay_ Jan 30 05:19:10 g00s: the framework has always supported multiple apps visible at one time - that's how translucent screens, the status bar, etc are handled Jan 30 05:23:45 Hi all Jan 30 05:24:00 StingRay_ - thanks again for all the help earlier Jan 30 05:24:24 You've helped me realize a few things, which I'm hoping I can get more out of from Blender. Jan 30 05:24:28 :) Jan 30 05:25:11 Get this though - the matrices represent the x,y, and z axes, right? Well not directly: Their transpose represent them Jan 30 05:25:36 i still think you should drop it Jan 30 05:25:37 So for some reason, the matrices have been pre-transposed for God-knows-what reason. Jan 30 05:25:38 :) Jan 30 05:25:45 from a height Jan 30 05:26:12 Heh xD I would if I had more alternatives. Jan 30 05:26:29 But I'm so far gone into it now that I'm actually learning through trial and error. Jan 30 05:26:37 And a bit of calcuation on the side. ;-) Jan 30 05:26:41 well in any case even if you just wanted base data you could get the rotation order Jan 30 05:26:54 Yeah Jan 30 05:27:05 I think I have a plan now, though. Jan 30 05:27:07 so if rot order puts the bones local axis at z Jan 30 05:27:07 :) Jan 30 05:27:22 all you need is head, tail for a vector Jan 30 05:27:31 Yeah Jan 30 05:27:35 and then y_axis (vector) for orientation Jan 30 05:27:47 but still, all these plenty easy with maya Jan 30 05:27:49 :) Jan 30 05:27:52 Yeah Jan 30 05:28:00 But Maya costs $$$ which I don't have. ={ Jan 30 05:28:02 =P* Jan 30 05:28:16 tis a shame, I have 12+ licenses Jan 30 05:28:24 not allowed to transfer them Jan 30 05:28:28 That sucks. Jan 30 05:33:18 I found something else odd Jan 30 05:33:25 which can throw off any calculation Jan 30 05:33:42 Do you still have that blender animation file you created? Jan 30 05:35:30 Pretty much... Jan 30 05:36:00 You know how Blender has y set for depth and z for height? Jan 30 05:36:29 to me x'y coords and z is depth Jan 30 05:36:53 Yeah Jan 30 05:36:56 no such thing as y-depth Jan 30 05:36:58 :) Jan 30 05:37:02 well... get this: Jan 30 05:37:14 well 3ds max does that too Jan 30 05:37:16 the bone matrix uses your standard coordinate system Jan 30 05:37:31 y for height and z for depth Jan 30 05:37:40 most objects will Jan 30 05:37:48 But pose bones don't Jan 30 05:37:54 just I think blender copied max coords Jan 30 05:37:59 Possibly Jan 30 05:38:15 and max z is up cause it's based of cad/arch drawings Jan 30 05:38:31 Regardless, that could be a crux for where most of the issues I have lie. Jan 30 05:38:35 Yeah Jan 30 05:38:38 I mean it makes sense Jan 30 05:38:44 But keep with a standard notation. Jan 30 05:38:47 dont forget Jan 30 05:38:56 pose bones you can alter rot order Jan 30 05:39:04 and thus their local transforms Jan 30 05:39:05 What do you mean? Jan 30 05:39:17 the poseBone controller has rotation order Jan 30 05:39:19 xyz Jan 30 05:39:23 zyx Jan 30 05:39:25 zxy Jan 30 05:39:27 etc Jan 30 05:39:55 from what i remember of my 7 minutes Jan 30 05:39:56 :) Jan 30 05:40:02 Ah, I see. Jan 30 05:40:08 brb, 2nd coffee of the morning Jan 30 05:46:48 p_l: does Piano 5 simulate Li-Ion battery failure modes :P Jan 30 06:00:31 I figured it out! :D Jan 30 06:05:51 StingRay_: are you Jacob Cohen? Jan 30 06:06:23 i dont know who that is Jan 30 06:06:28 so...er... no? Jan 30 06:06:31 http://rafb.net/paste/ Jan 30 06:06:56 oh Jan 30 06:07:00 no I am not :) Jan 30 06:07:58 i'm always on the lookout for a paste bin that doesn't suck or look like ass... that was my previous favorite Jan 30 06:08:11 why is it dead ? Jan 30 06:08:20 and whats wrong with pastebin or all the others ? Jan 30 06:08:27 they suit purpose no ? Jan 30 06:08:48 i mean sure... but they're so ugly Jan 30 06:08:54 i usually just use gists nowadatys Jan 30 06:09:03 ugly = subjective "eye of the beholder" Jan 30 06:09:21 one mans ugly is anothers beautiful Jan 30 06:09:41 I would have thought being a programmer you would only want ....functionality Jan 30 06:09:43 :) Jan 30 06:10:04 StingRay_: i hope you don't do UI design :) Jan 30 06:10:23 I do/have/can Jan 30 06:11:48 my analogy in the game console dev world, was, artists think of the game as pegasus with bolts of lightning shooting from it's arse, designers or producers thing stallion, fastest there is, and programmers think mildly functional donkey, carries lots of weight though Jan 30 06:12:08 so surprised to hear a programmer think something ugly when it suits purpose Jan 30 06:12:42 design has an emotional component :) doesn't your car feel like it drives better when it doesn't squek when you turn ? Jan 30 06:13:40 no, cause I was brought up in a mechanics and body shop, so i doubt I would look at it that way Jan 30 06:13:41 :) Jan 30 06:14:16 people feel like their cars are faster after they are washed Jan 30 06:14:47 of course its ridiculous, but why? Jan 30 06:15:00 but does that increase fuel efficiency, and could piano sim it / Jan 30 06:15:01 ? Jan 30 06:15:18 if you put wings on your car, Piano could sim it :D Jan 30 06:19:51 is it possible to have a resettable thread interrupt on a timer without needing an additional thread? Jan 30 06:20:38 i have a synchronous block of code that i want to wrap in a try/catch which will get interrupted if it does not complete in a certain amount of time OR it does not call interrupter.reset() at some point (and get an additional period of time) Jan 30 06:20:40 see i dont even understand the question Jan 30 06:21:24 https://gist.github.com/a239bf7043cd90eae079 Jan 30 06:21:26 actually now I do :( Jan 30 06:22:07 i'm seeking 'Foo' in that situation Jan 30 06:24:54 JakeWharton: dont forget, FutureTask allows timeouts Jan 30 06:25:44 when i looked under the hood at what this entailed; i only remember saying - ok, if i tried to do this myself, i would surely have fucked this up Jan 30 06:26:37 future task implies asynchronous action Jan 30 06:31:18 I think I can write my own Foo with a thread and normal waiting semantics Jan 30 06:33:40 be careful with timeouts and clock drift Jan 30 06:33:56 JakeWharton will have a fun filled evening Jan 30 06:36:14 i think i'm already done Jan 30 06:36:17 i was just hoping it was built-in Jan 30 06:36:42 TimeUnit.SECONDS.toMillis(5) srsly Jan 30 06:37:27 heh, it was an example. the actual code takes an input for that value Jan 30 06:37:43 I'm not talking about the hardcoded 5 :p Jan 30 06:38:06 i don't think it's possible without two threads. you need one to do the work, and another to monitor the timeout. the monitor thread could easily be shared among workers. Jan 30 06:40:06 Well sure I could just multiply, but this is JVM code where I can do all kinds of fun things and performance doesn't matter! Jan 30 06:44:06 JakeWharton: to just write 5000 :p Jan 30 06:45:08 Well I figured it out. Time for me to go to sleep now. Take care everyone! Jan 30 06:45:12 do you have a clue why would 2.2.2 device ignore state colors, while 4.2 shows them? Jan 30 06:45:47 I have framelayout, last item of which is relative layout with background attribute set to state drawable Jan 30 06:46:00 it is just opaque color for pressed event Jan 30 06:50:24 squ you sure its getting the touch event ? Jan 30 06:50:47 StingRay_, I have two phones, one htc 2.2.2, another nexus 4.2 Jan 30 06:50:58 one highlights clicks another not Jan 30 06:51:17 which is the answer to "what phones do you have" Jan 30 06:51:24 :) Jan 30 06:52:23 which one doesn't work properly? Jan 30 06:52:35 2.2 Jan 30 06:52:38 yeah ok Jan 30 06:52:42 minSdkVersion="10" Jan 30 06:52:44 probelm solved :P Jan 30 06:52:57 ? Jan 30 06:53:16 Jan 30 06:53:45 yes Jan 30 06:53:46 ah that was a joke :) Jan 30 06:53:47 s/8/10/ Jan 30 06:53:48 no Jan 30 06:53:51 it wasn't a joke Jan 30 06:54:06 why 10? Jan 30 06:54:09 not 16 Jan 30 06:54:16 http://developer.android.com/about/dashboards/index.html Jan 30 06:54:25 because 16+ is 10% of the market Jan 30 06:54:30 10+ is like 85 Jan 30 06:54:39 I vote 14+ Jan 30 06:54:45 you can target 100% of the Android 4.0+ market Jan 30 06:55:05 2.2 is 10% Jan 30 06:55:26 9% Jan 30 06:55:26 JakeWharton, the app i work on is 14+ :) Jan 30 06:55:44 4.1 + 4.2 = 10% Jan 30 06:55:50 to be fair, when you're using API 19 yourself, everyone else looks obsolete :) Jan 30 06:55:55 LOL Jan 30 06:56:14 canadiancow: lucky bastard :) Jan 30 06:56:19 yeah i'm sitting here on lemon meringue pie Jan 30 06:56:29 well not sitting on it Jan 30 06:56:32 but sitting here, using it Jan 30 06:56:35 that could be messy Jan 30 06:56:51 jelly bean is hte only non-messy one to sit on i think Jan 30 06:57:05 and i use "non-messy" very loosely Jan 30 06:57:09 ... did they skip 18 or something? Jan 30 06:57:14 or am i missing a joke here Jan 30 06:57:28 well that's why i went with L rather than K Jan 30 06:57:37 under the assumption that 18 would be K Jan 30 06:57:48 but yes, it's all a joke Jan 30 06:57:51 yeah, although I can't see lemon meringue pie following key lime pie Jan 30 06:57:54 * tophyr_ slow Jan 30 06:57:58 TOO MUCH PIE Jan 30 06:58:05 Leeds: you shut your mouth Jan 30 06:58:08 has that name been announced for K? Jan 30 06:58:12 there's never too much pie Jan 30 06:58:21 k should be kake Jan 30 06:58:28 lol Jan 30 06:59:15 wanna get your minds blown? in danish cake is spelled 'kage' Jan 30 06:59:29 you're welcome :) Jan 30 07:00:00 the kage is a lie Jan 30 07:00:28 kagen er en løgn ^^ Jan 30 07:00:50 romainguy_: custom viewgroup this morning. worked like a charm. should've done that up front for sure. Jan 30 07:04:01 sigh Jan 30 07:04:08 not having very much luck with my computers tonight Jan 30 07:06:09 g00s: Piano doesn't concern itself with that kind of failures ;) Jan 30 07:06:30 g00s: something that causes fire is a case of "you gonna get banned" ;) Jan 30 07:07:00 p_l: if it can't sim battery fires ,how can it be worth 26k :P Jan 30 07:07:34 JakeWharton: yep :) Jan 30 07:07:43 JakeWharton: I always find them liberating to write Jan 30 07:07:59 g00s: because that kind of stuff isn't exploatation :) Jan 30 07:08:07 JakeWharton: every Android I wrote (there weren't too many but still…) had a custom view group or two Jan 30 07:08:33 romainguy_: more docs on that would be welcome :) Jan 30 07:09:21 g00s: just watch this: http://www.parleys.com/#st=5&id=2191&sl=0 Jan 30 07:09:23 the docs are pretty good and there's a Parley's talk on it from Romain Jan 30 07:09:44 there are several examples in the SDK sample apps too Jan 30 07:11:10 another romainguy_ talk that i should probably watch Jan 30 07:11:19 queue it up! Jan 30 07:11:24 romainguy_ when is there going to be a fix for eclipse property sheet stuff for OSX, just interested Jan 30 07:11:29 it also explains how the standard layout classes work Jan 30 07:11:34 StingRay_: no clue Jan 30 07:11:37 im sure romainguy_ knows all about the dev efforts of ADT Jan 30 07:11:52 canadiancow: I know about a lot but usually not the details :) Jan 30 07:12:21 isnt ADT developed completely in AOSP anyway? Jan 30 07:12:44 yes Jan 30 07:13:09 except the SDK license... Jan 30 07:23:34 When using parcelable and Dates in there, should I writeLong(date.getTime()); and when reading again new Date(readLong());, or should I use write/read serializable? Jan 30 07:24:19 to avoid future headaches, avoid serializable at all costs Jan 30 07:25:02 yeah i would generally write it out as a logn Jan 30 07:25:04 long Jan 30 07:25:28 the only time i ever put a serializable in a parcel was when the objects were the same on android and blackberry Jan 30 07:25:34 and that's a general rule, not just for Bundle/Parcelable/etc. Jan 30 07:27:06 Does anyone here have experience with the front facing camera? Specifically for the Galaxy s3? Jan 30 07:27:45 yes, i dare say someone has had some kind of random experience with that Jan 30 07:28:18 have you ever encountered error 1001? Jan 30 07:28:59 any idea why onEditorAction() is never getting called for me? Jan 30 07:29:00 :( Jan 30 07:29:01 explain what you're trying to do, provide any supporting logs/errors/st and code... then someone will be able to actively help you Jan 30 07:29:18 im just trying to capture an image out of the front camera Jan 30 07:29:25 the preview surface and camera are initialized properly Jan 30 07:29:38 i can see my face with the preview, but on takePicture() it fails Jan 30 07:29:44 the preview freezes and i get that error Jan 30 07:29:52 the picture callback is properly defined Jan 30 07:30:02 if i switch to a back facing camera id then all works smoothly Jan 30 07:30:17 stacktrace ? Jan 30 07:30:17 also this problem is specific to the gs3 Jan 30 07:30:24 works on gs2 with jellybean Jan 30 07:30:32 and an old 2.3 phone Jan 30 07:30:41 and teh galaxy s Jan 30 07:30:43 jellybean on s2 out ? Jan 30 07:30:50 CM yes Jan 30 07:30:53 official, no Jan 30 07:31:01 ah so custom rom Jan 30 07:31:08 yeah Jan 30 07:31:27 there is no stack trace Jan 30 07:31:28 for what it's worth, apparently yes Samsung have started a rollout of JB for the S2 Jan 30 07:31:50 limited release so far Jan 30 07:31:56 I still love my old s2 Jan 30 07:31:59 the app doesnt crash or anything, the camera just doesnt take the picture and the preview freezes Jan 30 07:32:03 Leeds: more like "only non-branded devices got it" Jan 30 07:32:12 dont like my new massive form factors Jan 30 07:32:13 p_l: that goes without saying Jan 30 07:32:15 and my error callback tells me the error code is 1001 Jan 30 07:32:33 alright, thanks JakeWharton and canadiancow Jan 30 07:32:53 on occaision it will say the media server died, but i do have code to reinstantiate the camera object when that happens :| Jan 30 07:35:03 Hello! I add fragment1 to container R.id.container. And then i add fragment2 to it. When i remove (using transaction) fragment2 from his self after some action - i don't receive onResume calllback in fragment1. How i can solve this problem? Jan 30 07:37:23 I want to use JDBC Driver for postgresql Jan 30 07:37:49 it is saying ClassNotFOund Exception on loading Jan 30 07:44:53 m0hsin: Android does not come with JDBC drivers Jan 30 07:44:58 nor JDBC for that matter Jan 30 07:45:36 i thought android had jdbc support but no jdbc drivers Jan 30 07:46:23 oh yeah you're right Jan 30 07:46:26 we have java.sql Jan 30 07:46:28 i want to synchonize data from server having postgres DB Jan 30 07:46:40 How i connect to that DB? Jan 30 07:46:40 we don't have javax.sql though Jan 30 07:47:45 m0hsin: preferably with a middle tier server application that provides application-oriented protocol for the phone, and which talks with the DB server? Jan 30 07:48:32 http://jdbc.postgresql.org/download.html from here i pick the driver Jan 30 07:49:07 and tried several solutions for loading it after putting it into Android Dependencies but invain :( Jan 30 07:50:03 m0hsin: if you get it to work, i think you may be disappointed with the performance. Jan 30 07:50:28 this is basically the problem the H2 guys had Jan 30 07:50:53 oh wait! Jan 30 07:51:01 this is a terrible idea, you don't use jdbc over wan Jan 30 07:51:07 Hello! I add fragment1 to container R.id.container. And then i add fragment2 to it. When i remove (using transaction) fragment2 from his self after some action - i don't receive onResume calllback in fragment1. How i can solve this problem? How i can do fragment transaction remove like back button press? Jan 30 07:51:07 m0hsin: I recommend not connecting directly to database Jan 30 07:51:16 p_l is correct Jan 30 07:52:50 how does framework/ex work? third party apps include that code into their own projects? Jan 30 07:53:33 xgear http://developer.android.com/guide/components/fragments.html Jan 30 07:53:46 Anyone have any idea why I get "Camera server died!" and "Camera error 1001" on .takePicture()? The Camera.open() works and the preview is successfully initialized. This only happens when i utilize the front facing camera as well, the back camera works perfectly. This also only happens on the GS3 :/ Jan 30 07:53:53 thnx p_l & g00s Jan 30 07:53:56 canadiancow: pretty much Jan 30 07:54:14 canadiancow: wut is framework/ex ? Jan 30 07:54:20 lol g00s Jan 30 07:54:23 you know the chips library? Jan 30 07:54:30 no Jan 30 07:54:34 romainguy_, any idea about this? http://stackoverflow.com/questions/11311790/oneditoraction-is-not-called-after-enter-key-has-been-pressed-on-jelly-bean-em Jan 30 07:55:00 OK FINE Jan 30 07:55:06 heh Jan 30 07:55:16 chips is like Jan 30 07:55:19 if romain is using his mac pro, it cuts out all the time Jan 30 07:55:20 you know in gmail or sms or whatnot Jan 30 07:55:26 in the "to" field Jan 30 07:55:29 you get little... "chips" Jan 30 07:55:31 for each contact Jan 30 07:55:45 oh, ok Jan 30 07:56:01 my android world is pretty much froyo + compat lib, i guess thats new stuff :D Jan 30 07:56:02 anyway, there appears to be a bug in that library related to that SO post Jan 30 07:56:13 g00s the server is on LAN, so the performance may not be the issue, but is there any way i can use jdbc driver in android app?? Jan 30 07:56:17 well this is... not too new Jan 30 07:57:15 m0hsin: i think i would still expose it as a service Jan 30 07:57:33 the chips lib started in may 2011 according to git Jan 30 07:58:00 ok so web service is the best option Jan 30 07:58:33 anyway its midnight.. i shouldnt be working Jan 30 07:58:36 i googled chips library, and found (Karma & Chips) (Library of Wisdom) Jan 30 07:58:41 lawl Jan 30 07:58:57 try ANDROID chips library Jan 30 07:59:27 thx :) Jan 30 07:59:57 m0hsin: yeah, i think so. Jan 30 08:00:05 ok thnx Jan 30 08:00:37 i'd say "goodnight", but quite likely im just going to switch computers Jan 30 08:00:45 :) Jan 30 08:09:20 I'm still trying to use viepager with fragments inside fragment from sliding menu. Here is my SO question with git code. if some one have any idea what is going on :D i would be extremely happy. http://stackoverflow.com/questions/14259170/no-activity-exception-when-using-viewpager-and-fragments-inside-fragments Jan 30 08:13:07 StingRay_: for example. i replace fragment1 with fragment2 using addToBackStack(null). if i press back button - behavior is ok(i return to fragment1). If i press button in fragment2 which call fragmentManager.popBackStack() ("Pop fragments off the back stack, with popBackStack() (simulating a Back command by the user)") - all fragments dissapear. if i use add method instead of replace for... Jan 30 08:13:08 ...fragment2 - after button click(in fragment2) i call popBackStack() and return to fragment1 but i should pres back button 2 times to return from fragement1. Jan 30 08:14:44 xgear i'm not ashamed to say, I have no idea what you just said, then again I still need to wakeup Jan 30 08:16:02 how i can programaticly return from fragment2 to fragment1? and after this return i should press back button and return to main activity. Jan 30 08:16:33 do the 1st bit yourself with frag manager, and dont add to stack Jan 30 08:17:22 it seems like you want the stack to be a history/hierachy rather than what it is, like a breadcrumb Jan 30 08:17:43 "do the 1st bit yourself with frag manager" i dont understand Jan 30 08:18:34 frag manager, replace Jan 30 08:18:39 if i add fragment2 without "add to stack" - after back button press i lose fragment1 and fragment2 Jan 30 08:19:24 so, since your wanting a different behaviour to the default, why not capture the back press and do what you want based of conditions you set > Jan 30 08:19:25 ? Jan 30 08:19:47 xgear: popBackStack or popBackStackImmediate? Jan 30 08:21:27 nm memory doesn't serve me correct Jan 30 08:28:09 Anyone have any idea why I get "Camera server died!" and "Camera error 1001" on .takePicture()? The Camera.open() works and the preview is successfully initialized. This only happens when i utilize the front facing camera as well, the back camera works perfectly. This also only happens on the GS3 :/ Jan 30 08:28:36 Pyuruku sammy specific thing then Jan 30 08:28:47 go beat them up Jan 30 08:29:09 another application that does the same thing that im trying to accomplish works flawlessly though :( Jan 30 08:29:23 it using any sammy specific libs ? Jan 30 08:29:52 I cant tell you for sure... probably not? Jan 30 08:30:47 alright, so getting into java was quite tricky.. then trying to understand the basics for android also pulled a couple of hairs, but the damn xml for making a simple menu is killing me Jan 30 08:31:04 im more or less confused about "Camera error 1001" Jan 30 08:31:09 that isnt even an error documented... Jan 30 08:31:37 hence why I think sammy wrappy libby thingy Jan 30 08:31:38 :) Jan 30 08:31:46 :/ Jan 30 08:31:52 and having many sammy devices myself Jan 30 08:31:57 not hte gs3 though Jan 30 08:31:58 do you think that would appear in the logcat? Jan 30 08:32:16 what would ? Jan 30 08:32:24 whether the application is using sammy libs Jan 30 08:32:30 like specific tags i should be looking for Jan 30 08:32:32 or prefixes Jan 30 08:32:33 D: Jan 30 08:32:46 well it WILL be likely using sammy specific drivers Jan 30 08:33:03 and I suppose you can check what the drivers are Jan 30 08:33:10 then look for some ref to that error Jan 30 08:33:44 okay, but I'm not using any special libraries and I get the 1001 error Jan 30 08:34:23 Pyuruku, have you narrowed down where the error appears? Jan 30 08:34:29 yes, on takepicture() Jan 30 08:34:35 Camera.takePicture() Jan 30 08:34:48 logcat spits out "Camera server died!" and "Camera error 1001" Jan 30 08:34:51 no trace Jan 30 08:34:56 and has anyone else on google experienced this issue? Jan 30 08:35:01 1 person Jan 30 08:35:05 hmm.. Jan 30 08:35:12 but he fixed it by rolling back to a previos version Jan 30 08:35:18 kinda sounds like it's a local problem Jan 30 08:35:30 as in the device you're using Jan 30 08:35:37 its happened on 2 gs3s so far Jan 30 08:35:40 different roms Jan 30 08:35:57 both touchwiz but one is modded Jan 30 08:36:30 so imagine that there's something in the build that makes the camera function glitch.. Jan 30 08:36:53 its just the front camera too... if I make it use the back camera everything works perfectly :S Jan 30 08:37:11 interesting Jan 30 08:37:27 could be a bug, or hardware issues Jan 30 08:37:43 not a bug as a different app that does what im trying to accomplish works Jan 30 08:37:59 oh, ok Jan 30 08:38:10 then it's your script :) Jan 30 08:38:16 exactly :( Jan 30 08:38:17 that's good to know Jan 30 08:38:34 so have you considered alternative methods? Jan 30 08:38:43 yes ive refactored my camera code tons of times Jan 30 08:38:44 to test where it crashes Jan 30 08:38:58 yeah, that wont really do much i think Jan 30 08:39:10 it doesnt even crash, the camera just fails silently Jan 30 08:39:31 and logcat gives you an error that is close to ancient latin, yeah Jan 30 08:39:32 the preview freezes when takePicture is called, which is expected Jan 30 08:39:51 well, the error could be happening earlier Jan 30 08:40:04 misconfiguration? Jan 30 08:40:27 but it just so happens that when you reach the takepicture it all fails Jan 30 08:40:43 well, somewhere in your script Jan 30 08:41:06 i believe ive set the necessary parameters for the camera Jan 30 08:41:06 some variables you set that don't get the right information Jan 30 08:41:12 ok Jan 30 08:41:23 picture size, preview size, error callback, preview callback, preview surface, and surface callbacks for that surface :S Jan 30 08:41:25 i believe you haven't if you get errors :) Jan 30 08:41:46 the id as well Jan 30 08:42:04 im hesitant to think about misconfiguration since the back camera works though Jan 30 08:42:17 now, double check.. everything that goes into takePicture() needs a revalidation.. Jan 30 08:42:30 im just supplying a picture callback Jan 30 08:42:38 no shutter, etc Jan 30 08:42:46 and the callback isnt even called since the function itself fails Jan 30 08:43:17 well, tbh i know heck about that stuff.. but i've experienced enough errors in my life to know that error isn't always where the script says it is ;) Jan 30 08:44:16 i have been looking through the 4.1.2 camera app source code Jan 30 08:44:23 and i dont see anything special done for the front camera Jan 30 08:44:46 so yeah, look into whatever other methods you are using and make sure everything looks good Jan 30 08:44:58 and do some Log.d on the variables you use Jan 30 08:45:08 just to make sure that you're getting the expected input Jan 30 08:45:10 trust me there are more log.d's than id like to admit, its a mess Jan 30 08:45:44 well then, you should have the variables covered Jan 30 08:45:55 now... Jan 30 08:45:59 start from scratch :D Jan 30 08:46:01 ..or don't Jan 30 08:46:06 already did 2 days ago Jan 30 08:46:09 no change Jan 30 08:46:21 any chance of testing it on a different device? Jan 30 08:46:29 it works on any other device ive tested it on Jan 30 08:46:32 s2 with jb Jan 30 08:46:36 and old 2.3 phone Jan 30 08:46:40 nexus Jan 30 08:46:42 etc Jan 30 08:46:44 kk Jan 30 08:46:52 its just the s3 Jan 30 08:46:53 that narrows it down Jan 30 08:47:02 and i cant ignore that market since the majority of my app userbase uses the s3 Jan 30 08:47:32 well, you shouldn't ignore any parts of the market Jan 30 08:47:46 but are that many people really using custom roms? Jan 30 08:48:00 correct, but sometimes its not worth the extra effort to support those 100 android 2.0 users or whatever Jan 30 08:48:15 hehe, true :D Jan 30 08:48:17 custom roms? Jan 30 08:48:22 gs3 is stock jb Jan 30 08:48:26 if they're still using android 2.0 they don't deserve the latest stuff Jan 30 08:48:37 aah, ok.. you were just talking about some rom stuff earlier Jan 30 08:48:56 oh, i meant that ive tested it on two gs3s Jan 30 08:49:01 [09:35:46] its happened on 2 gs3s so far Jan 30 08:49:01 [09:35:49] different roms Jan 30 08:49:04 one with a bone stock rom and one with a modded stock rom Jan 30 08:49:13 kk Jan 30 08:50:21 like ive said before, this is day 4 on working on this bug Jan 30 08:50:31 ive exhausted all of the solutions i could think of Jan 30 08:50:33 yeah, that sucks Jan 30 08:50:37 i see Jan 30 08:50:39 and this feature was due for release a week ago Jan 30 08:50:41 :S Jan 30 08:51:21 well, you could release it and mention the error that occurs Jan 30 08:51:37 probably a bad tip though :) Jan 30 08:51:41 :) Jan 30 08:51:59 i knew i'd be pretty mad after 4 days :D Jan 30 08:52:24 infact i'm getting fairly upset about my own stuff, hehe.. and it's only been two days Jan 30 08:52:57 hey, does anyone knows why the AdMob SDK can play an HTML ad in a WebView with a inline html video which start by itself (auto play) without any user interaction, and i can't within a WebView of my android app? Jan 30 08:54:08 i'm guessing there's a limitation in the app Jan 30 08:54:24 you have auto-start set for your video element? Jan 30 08:55:52 yes, i looked at the AdMob ad and there is the autoplay attribute on the video tag in the HTML page, i do the same, but in my case i have to touch the video to play it Jan 30 08:56:34 do they have any js that could be starting it? Jan 30 08:57:53 Yes they have, and i looked a it too, beautify it look at it for hours Jan 30 08:58:28 the only thing the JS script does is set the autoplay attribute :) Jan 30 08:58:29 have you tried using js to "touch" your element ? Jan 30 08:58:53 yes, it doesn't work Jan 30 08:59:20 anyone have a nexus 7? Jan 30 08:59:46 since Android 4, true user interaction is required to play media files on the browser or a WebView in an app Jan 30 09:00:37 this is the reason why i'm surprised to see that AdMob can actually bypass this limitation, so i wonder if Admob as part of Google has access to some private API or something like it ? Jan 30 09:00:55 doubt it Jan 30 09:01:12 google put that in to stop videos from auto playing, why would they let some ad service bypass that Jan 30 09:01:29 stop from auto playing and eating up data Jan 30 09:01:30 * Jan 30 09:02:11 so you said they use javascript to put the auto-start attribute on the element Jan 30 09:02:17 did you do that too? or did you hardcode it in? Jan 30 09:02:34 I don't know, but Apple has added a property to its UIWebView component "mediaPlaybackRequireUserInteraction" to control this behaviour Jan 30 09:02:44 on iOS Jan 30 09:02:53 So? Jan 30 09:03:57 yes, i tested it too… since this was already the way i was doing it Jan 30 09:09:23 maybe look into the code that is executed when you tap on the video? Jan 30 09:36:17 Is it possible to round the corners of an ImageButton? When I've tried, the button were indeed rounded, but its dimensions went nuts Jan 30 09:36:48 valgrind you can use a ninepatch with rounded corners? Jan 30 09:37:18 no idea :D Jan 30 09:37:37 i am assuming you mean a design thing, not an actual implementation where you have a problem pressing the corners? Jan 30 09:38:06 a ninepatch drawable is a scalable png file where you can define the dimensions for what scales and the boundaries of the content Jan 30 09:38:45 tho not nece very useful Jan 30 09:39:18 oops! grammar, tho not nece, very useful Jan 30 09:39:19 The imgbutton allwos the user to upload his own pic, either from the gallery or the camera... when i tried to round the corners the image was still squared, but the image button turned into a larger thing with round corners... :D Jan 30 09:39:38 by round corners you mean the background image of the imagebutton? Jan 30 09:39:39 Im gonna google ninepatch draw to see what comes out Jan 30 09:40:13 well i would like the image provided by the user AND the imgbtn itself to be squared but have round corners... Jan 30 09:40:46 you could grab the image, through in in a canvas, then clip the canvas with a rounded rect Jan 30 09:40:54 *throw it in a canvas for the user image Jan 30 09:41:30 anyways i was trying to say: the imagebutton will be square in it's functionality as a widget, but you can make it appear rounded by using a background / selector state image that is rounded Jan 30 09:42:15 Im gonna give it a try Jan 30 09:42:16 :) Jan 30 09:43:05 look at the android dev widget backgrounds they are rounded and nine patch Jan 30 09:43:17 thx Jan 30 09:43:20 *you can download a pack off the website Jan 30 09:44:58 Hi guys, I don't know why my app is automatically restarted after a crash. After the crash it works fine but the httpclient dosn't connect anymore to any urls. Jan 30 09:45:50 How can I stop it to restart? or make the httpclient working after the crash? Jan 30 09:45:53 what does the DDMS say? Jan 30 09:46:31 valgrind: it crash for different reason because i'm still developing it but each time android restart it Jan 30 09:46:57 yea that's why it would be good to check the error messages from ddms... :) Jan 30 09:47:31 the problem is not why it crashes, but why it keep restarting. Jan 30 09:49:11 salentinux maybe put something infront of your activity, like another activity, so the current crash wont be app wide and you will keep logs Jan 30 09:49:59 it will crash cause of xxx reason, and restart the app cause the crash was top level I would think Jan 30 09:50:05 have you tried catching UncaughtExceptionHandler ? Jan 30 09:50:27 I was wandering if that is caused by the service that I define in the manifest Jan 30 09:50:29 :D Jan 30 09:50:43 i can't remember, does it restart the activity or the app Jan 30 09:51:55 Anyone ever tried using Apache Mahout in Android? Jan 30 09:53:10 lol Jan 30 09:53:19 valgrind: you need a real computer for that Jan 30 09:53:21 XD Jan 30 09:53:39 my tablet is better than my 1996 real computer :P Jan 30 09:53:59 did a 1996 real computer run mahout ? Jan 30 09:54:10 mine could barely run"word" Jan 30 09:54:11 Never tried :P Jan 30 09:55:36 valgrind: were you asking about running neural networks on android the other day? Jan 30 09:55:39 :) Jan 30 09:55:42 yup :P Jan 30 09:55:59 I'd love to use something ...more sophisticated than a decision tree Jan 30 09:56:37 or state machine + decision tree... Jan 30 10:02:47 <\0x90\> if i put timer in a service, and make service go to background, will the timer work after phone go to sleep state (sleep = lock keypad, turn off display..etc) ? i need a timed execution of asynctask in a service Jan 30 10:03:23 <\0x90\> people say put a timer, but i read somewhere that timer stops .. "timing" when phone sleeps. Jan 30 10:11:13 \0x90\ alarmManager dont does it ? Jan 30 10:12:56 <\0x90\> read somewhere that alarmmanager "should" be used for scheduling .. at exact times, instead of timing (as in every 5 minutes do X) Jan 30 10:13:12 <\0x90\> but... timer seems convenient ... so that's why i'm asking Jan 30 10:13:22 <\0x90\> figuring .. maybe it still keeps working when in service. Jan 30 10:13:34 <\0x90\> since ... service itself is still working Jan 30 10:13:59 easy to test Jan 30 10:14:03 <\0x90\> yeah doing so right now Jan 30 10:14:57 Hallo, I have a little problem with my android app. When the app si launched and I lock my screen, the activity and onCreate are called again when the screen is locked. Jan 30 10:16:25 this is my activity code Jan 30 10:16:26 http://pastebin.com/j1mTRUnB Jan 30 10:16:29 any suggestion? Jan 30 10:21:44 how exatcly is the last known location determined? >_> when i use it it keeps returning a location from when i was in another city, but google maps works fine Jan 30 10:21:57 can i perhaps delete it somehow? Jan 30 10:27:15 balls2thewall if you do getLastKnownLocation or what it's called you should be fine Jan 30 10:27:22 on all providers Jan 30 10:30:43 (w 23 Jan 30 10:31:32 =/ but it keep returning an age old location Jan 30 10:31:39 at one point is the last known location updated Jan 30 10:33:57 balls2thewall it's not in your control so don't worry Jan 30 10:34:12 your phone says it's at location x? what are you gonna do Jan 30 10:35:01 :( customer complaints Jan 30 10:36:46 customers? bah! what do they know... Jan 30 10:39:10 <\0x90\> ok question again... how does whatsapp/line start a service ? since while reading about this i see you need to have a notification (while doing setforeground .. setforeground keeps a service running while the activity that started it is .. not) Jan 30 10:39:30 <\0x90\> they don't have a notification... their app is just running in background all the time, that's it Jan 30 10:39:51 <\0x90\> when you get a message (for example) then you get a notification Jan 30 10:40:47 does that not depend on A) the type of service and B) how it was started ? Jan 30 10:40:49 ive just transformed my camera code to utilize a Fragment, hopefully that fixes all of the s3 issues (I doubt it but im playing in the dark here :s) Jan 30 10:41:47 <\0x90\> type of service ? what types are there ? and B) well .. are there many ways to start a service ? mostly what i find on google.. they all do the same way Jan 30 10:41:57 <\0x90\> if you want service to keep running, you do setforeground.. that's about it Jan 30 10:42:06 <\0x90\> s/set/start/ Jan 30 10:42:14 \0x90\: I know that with my service binder/Messenger if i .startService() the thing runs beyond my apps life Jan 30 10:42:18 so thats odd Jan 30 10:43:46 whereas just binding to it makes it dynamic Jan 30 10:44:02 <\0x90\> mm yeah thats what i want.. for service to keep running. basically the service should keep running and execute asynctask in timed fashion. but i don't use binder/messanger .. since data updates i get from asynctask i store in DB Jan 30 10:44:11 <\0x90\> that's all i need Jan 30 10:44:32 well mine are stored in db too Jan 30 10:44:32 \0x90\: timed fashion? Jan 30 10:44:39 and synced local and mysql Jan 30 10:44:47 <\0x90\> appel1, ever x minutes execute asynctask that does something Jan 30 10:45:23 \0x90\: shouldn't you be using AlarmManager to start the service and let the service stop itself when the current update is done? Jan 30 10:45:41 leaving a service running unecessarily is a big no-no Jan 30 10:46:34 <\0x90\> why Jan 30 10:46:47 appel1 tell that to facebook Jan 30 10:47:22 back in the old days, it was a no - no … but now, i'm not so sure. Jan 30 10:47:23 \0x90\: because the user might prefer that the memory is available for apps he actually uses? Jan 30 10:47:34 in the old days, it was about memory pressure Jan 30 10:47:42 but now devices have a lot of memory. Jan 30 10:48:09 now if the service is constantly doing stuff and eating cpu, thats bad. Jan 30 10:48:11 the Galaxy Nexus normally has about 200MB available for cached processes with some of the built-in services running like Maps and Email Jan 30 10:48:47 that means there's room for perhaps the launcher and browser in memory at the same time Jan 30 10:49:04 <\0x90\> appel1, sometimes its better to use memory then to initiate/kill something all the time. imho. generally.. my service initiates (_multiple) connections to different servers every x minutes Jan 30 10:49:40 <\0x90\> bringing service up and down all the time .. seems illogical to me. though maybe i misunderstood the concept of a service. Jan 30 10:50:26 how is it that google maps gives a good location while my app doesnt >_> Jan 30 10:50:28 \0x90\: the point of a service is to let Android know that the processes is important to the user and shouldn't be killed to free memory except for in extreme cases Jan 30 10:51:11 \0x90\: perhaps your case is one of the few exceptions :) don't know enough about what you do to tell Jan 30 10:52:07 \0x90\: and really, if there is memory available your process wont be killed even if the service is stopped Jan 30 10:52:41 \0x90\: so if you cache stuff in memory you wont loose it unless the memory actually is needed by another app on the device that has higher priority Jan 30 10:53:19 <\0x90\> appel1, like i said im just using service to time execution of asynctasks inside service. asynctasks connect to remote servers (each server one asynctask) and gets data from socket. it stores data in db.. waits x minutes.. then does it again Jan 30 10:55:13 \0x90\: sounds like a perfect fit for AlarmManager combined with IntentService Jan 30 10:55:53 <\0x90\> can't remember why i decided to use service instead of intentservice. Jan 30 10:56:40 <\0x90\> ah yes i think i remember. exacty for this reason.. i thought way to go is to keep the service upp and running like .. music players do Jan 30 10:57:51 \0x90\: there's a huge difference between playing music continously and polling at a regular interval Jan 30 10:58:52 \0x90\: but for all I know you're builing an app that will run on a device with only your app installed and power always connected then playing nice doesn't matter Jan 30 10:59:11 <\0x90\> don't think that will be the case. Jan 30 11:00:32 doesn't touch on the everlasting service subject, but there's some good pointers here for minmizing battery drain http://developer.android.com/training/efficient-downloads/index.html Jan 30 11:06:44 <\0x90\> and what about constantly creating/destroying a service ? i mean.. when it comes to general resource usage/battery life. for example on servers, doing constant create/destroy of something that ain't lightweight.. as threads, is not a good idea. Jan 30 11:07:06 <\0x90\> i'm talking about... "lesser evil".. is it better to allocate some ram, and to just spawn asynctasks.. or to just do everything.. Jan 30 11:07:13 \0x90\: depends on how frequently you poll Jan 30 11:07:14 <\0x90\> all the time Jan 30 11:07:28 hello all Jan 30 11:08:40 <\0x90\> well think about.. every 10 minutes for 10 data sources. each data source multiple (about 5 to 10) connections (which means.. 5 to 10 different data to be processed and inserted into db) Jan 30 11:08:42 i go update android to 4.0.4and now i lost USB Mass Storage Jan 30 11:08:53 <\0x90\> i would say .. that's almost constantly creating/destroying a service. Jan 30 11:09:47 vitalis #xda-devs #android Jan 30 11:09:58 <\0x90\> now if creating a service then creating asynctask.. then killing everyhing .. is better then creating a service (when it comes to "playing nice") i would certainly do it that way. Jan 30 11:10:01 or google.com :) Jan 30 11:10:22 \0x90\: perhaps, unfortunately the only way to really know is to profile it Jan 30 11:10:34 <\0x90\> yeah.. it all comes down to that in the end Jan 30 11:10:44 <\0x90\> ok will play around until i find best solution, thanks all Jan 30 11:11:11 \0x90\: how long does a full update cycle take usually? seconds or almost the full 10 minutes? Jan 30 11:12:20 nevermind, time for lunch :) Jan 30 11:13:06 <\0x90\> alarmmanager kicked in huh Jan 30 11:24:10 did anyone try http://www.sqlite.org/inmemorydb.html for the storage backend of an app? Jan 30 11:25:31 Ge0rG: this is the only way to have a relational DB in Android Jan 30 11:26:43 thepoosh: I am talking explicitly of in-memory databases Jan 30 11:28:50 oh Jan 30 11:29:12 well, I use GreenDAO that has a live session that stores lots of info in memory Jan 30 11:30:23 what is ic_launcher-web ? and why it is 512x512? Jan 30 11:31:40 squ http://stackoverflow.com/questions/13895390/what-does-the-ic-launcher-web-png-in-my-project-root-do Jan 30 11:37:19 what exactly is in the agps cache? what data does it save Jan 30 11:41:32 I'm playing a ringtone set by a RingtonePreference, and if it is set to silent, the default ringtone is played on a htc sense device. is there a workaround? Jan 30 11:48:20 balls2thewall: AGPS in general is assisted GPS, meaning using additional information (e.g. the mobile network) for retrieving the location Jan 30 11:48:38 but don't know what APGS cache you mean exactly Jan 30 11:49:27 a gps toolkit app has a feature to clean agps cache. im wondering whats inside it Jan 30 11:50:22 yeah so i would guess the saved location data :) Jan 30 11:51:02 you can retrieve location passive on android, meaning you get the last location but don't need to fetch a new one (but perhaps another app is currently getting anyway new location data), so I guess that app cleans the saved locations Jan 30 11:51:11 but just a guess, don't know that app Jan 30 11:53:29 "Using AGPS, of course, can't always fix everything. In fact, sometimes your AGPS will keep trying to use satellites or towers that aren't nearby, which makes it hard to get a lock. " Jan 30 11:53:41 why would it >_> Jan 30 11:54:56 balls2thewall: because AGPS fix speedup is based on knowing high-quality timestamp and coarse location. If it has, for example, rather inexact time, it will be harder to sync with GPS Jan 30 11:56:45 there's also the fact that AGPS is pretty... wide term Jan 30 11:59:47 also, note that AGPS is heavily relevant on network support Jan 30 12:00:31 it varies from simply downloading time and ephemirides through the internet, to sending a server a complete digitised waveform and asking it to compute your position Jan 30 12:00:42 a read about a problem on HTC's with GPS. and clearning AGPS cache solved the problem. but i cant understand why would it cause a problem in the first place Jan 30 12:00:44 and about a hundred variants in between Jan 30 12:01:30 balls2thewall: to simplify - the cache means the GPS can speed up lock by knowing exactly 'where' to look. Jan 30 12:01:53 i understand the idea, im interested in the specifics Jan 30 12:02:01 if the cached data is inappropriate, it can spend ages looking in the wrong place Jan 30 12:02:14 :o good call Jan 30 12:02:27 ill include that line in my report Jan 30 12:02:29 specifically frequency/phase/code space Jan 30 12:03:29 http://www.colorado.edu/geography/gcraft/notes/gps/gps_f.html Jan 30 12:03:36 how can I addContentView to the bottom of my activity's contentView? i.e. I want everything in my layout xml to overlay my camera preview Jan 30 12:04:22 bottom == lowest z-index, not aligned bottom :) Jan 30 12:04:36 SpeedEvil: the data on that page is not completelty up to date anymore, is it? Jan 30 12:04:46 says the personal gps can reach accuracy of 100m Jan 30 12:04:53 whereas military can reach around 22m Jan 30 12:05:33 receivers have advanced somewhat since it was written Jan 30 12:05:40 I think gps nowadays can even without assistance reach around 10m, and the military one is even in cm accuracy Jan 30 12:05:42 the signals have not changed Jan 30 12:06:07 except for the introduction of egnos/waas satellites Jan 30 12:06:39 which aren't directly relevant to reception, but are a sort of over-the-air agps Jan 30 12:06:55 timroes: there's no cm resolution on military stuff Jan 30 12:07:20 the wikipedia page on agps was accurate the last time I touched it. Jan 30 12:07:26 timroes: also note it's "error function", not exact resolution Jan 30 12:07:32 (largely rewrote) Jan 30 12:07:49 that was some time ago though Jan 30 12:08:22 GPS "accuracy of 100m" means "the reported position can miss real by 100m without breaking operating spec" Jan 30 12:09:29 the only real change was a) hybrid systems (all the extra location data) becoming more common among "normal" civvies b) military disabling SA signal overlay Jan 30 12:10:15 p_l: on the page it says "predictable accuracy" what I would have read as, accurancy you can normally expect and not error function Jan 30 12:11:29 timroes: averaged result :) Jan 30 12:12:07 oh and just looked up the <1m accuracy was for the commercial service of galileo navigation Jan 30 12:12:13 and not gps, sorry mixed that up :) Jan 30 12:12:33 (but as far as I read commercial service is assisted, and not "plain" "gps") Jan 30 12:12:46 galileo is the latest, and not yet operational, and I think it uses a network for D-GPS transmitters Jan 30 12:13:06 D-GPS heavily increases actual accuracy of GPS Jan 30 12:13:16 p_l: yeah, but we did it in the lecture about satelite transmission and data encoding, that's how it was still on my mind :) Jan 30 12:20:37 timroes: then you should recognize that cities are hell for GPS :) Jan 30 12:21:51 but there for the addionatal stuff works normally better in cities :) Jan 30 12:22:06 smaller mobile cells, more wlan networks around :) Jan 30 12:22:25 (at least here in germany, don't know if that (with the cell sizes) is anyhow true for other areas, but I would assume so) Jan 30 12:22:40 I might be missing something fundemental here.. but an activity can have an xml layout... how can I add an xml layout to an xml layout programatically? Jan 30 12:23:06 timroes: ...more fudging with finances behind each cell... Jan 30 12:23:39 ahhughes inflate it and addView Jan 30 12:24:06 p_l: sorry didn't get that sentence :D would you care to write it in easier english for me, please :D Jan 30 12:25:23 timroes: let's say I've been there when we had astonished T-Mobile Deutschland requesting explanation of why our (polish) base stations cost that much. Then we learned that everyone else used creative accounting in how they reported those costs :> Jan 30 12:25:34 StingRay_, inflate what? Jan 30 12:25:44 the layout resource Jan 30 12:25:53 R.layout.myLayout Jan 30 12:25:56 p_l: thanks now I got it :) Jan 30 12:26:31 errr you got me StingRay_ all new terms :/ Jan 30 12:26:53 timroes: we had the whole cost, including UPS etc. counted in one place. And I think we had way more UPSes than rest (though I think Germany is cursing lack of them sometimes, all hail unstable but green power sources) Jan 30 12:27:41 I think lack of UPS is not even the problem, considering the general bad state of our mobile network :D Jan 30 12:27:46 ahhughes google dev docs "inflate", google dev docs "addView" Jan 30 12:28:07 carriers were suprised by large amount of smartphone users, and didn't catch up with the extending of their networks Jan 30 12:28:08 then if you dont quite understand you can ask questions that have answers Jan 30 12:28:25 so I am stick with o2 (telefonica), that here in the inner city still is slow as hell, often doesn't even transmit my calls at all Jan 30 12:28:53 and 3G you totally forget here in our university, cause too many ppl with smartphones here :D Jan 30 12:30:36 ahh cool StingRay_ so I can call one layout once I have created the root :) Jan 30 12:31:03 well inflate it then addView from your root/parent Jan 30 12:31:08 or wherever you want it Jan 30 12:33:39 timroes: regarding "fun" things with GPS. A lot of !FUN! is had when people take raw GPS coordinates and try to apply them to a different grid system and decide that it must be *spoofed* or jammed :> Jan 30 12:34:02 :D Jan 30 12:34:42 just because they compared with a map that doesn't use WGS84... Jan 30 12:34:51 "fun" gps things: bad weather :D I had one day, and I guess it was the only time till now, when I really got bad GPS results, when the weather was really really cloudy over me, but totally clear at horicon (I think its what caused the problem) Jan 30 12:35:04 and my device just placed my into poland Jan 30 12:35:11 (what is approx. 700km away from here :D) Jan 30 12:35:28 even after i restarted the device, and I also used another device (but both android) Jan 30 12:35:56 might be Jan 30 12:36:02 and all placed me to the very same area in poldn (so might alos be a bug in android, but I guess bad weather oculd have had an influence) Jan 30 12:36:42 what was a mess, because it was one of the seldom times when i really needed the navigation, and didn't just use it as support and did know the approx. way :D Jan 30 12:36:57 heh Jan 30 12:37:20 well, at least no one tried to sue you for it ;) Jan 30 12:37:29 yeah not sueing :D Jan 30 12:37:35 but i came one hour late to pick someone up :D Jan 30 12:38:19 because i had all the time need to check on a map... what is so 90th like :D Jan 30 12:44:58 StingRay_, thanks heaps! All working now :) Jan 30 12:46:41 ahhughes np, gl Jan 30 12:46:52 timroes: Dead Reconing FTW :P Jan 30 12:54:46 *Reckoning Jan 30 12:58:33 hey guys, I don't suppose anyone has a copy of the admarvel android sdk docs to hand? Jan 30 12:58:45 a colleague has run away with the company login details :( Jan 30 13:09:34 Hello Android, can you un-ban my in #android room? I have bought 500 Android tablets and 600 Samsung Galaxy S 2. I got plenty of questions, but always it says "* Cannot join #android (You are banned)." Jan 30 13:10:13 This 7" Android sucks completely. Its not giving me correct cursor when i touch it. Callibration is completely broken on those. Jan 30 13:25:38 Who was involved in 7" Android MIDR47B? I really want to slap that team leader. Idiot. Whole touch does not work and its in production to let us buy and test it out. So irresponsible idiot developers!!! Jan 30 13:27:19 IamTrying: no one involved here Jan 30 13:27:40 IamTrying: you still wonder why you got banned from #android :D Jan 30 13:27:47 if so, i have a slight idea Jan 30 13:27:54 yah - talk like that'll get him far Jan 30 13:28:22 no seriously p_l i just bought about 500 7" Android tablets model MIDR R7B. All of them touch screen does not work. Jan 30 13:28:34 and shows from great expertise and professionality :D Jan 30 13:28:43 timroes, YES - because i am a good tester, and developers hate testers saying what does not work. Jan 30 13:29:08 aha okay yeah right, developers never test their code, sorry forgot that :D Jan 30 13:29:21 IamTrying: Report that to seller. They look like some random cheap generic tablet from China (where the motto is "you get what you paid for, unless you're shit at haggling") Jan 30 13:29:28 I am just used to working in good environment, thats why i am not used to all that crap anymore Jan 30 13:30:15 timroes: I work in a good team that got handled really shitty code. Jan 30 13:30:18 and I do QA. FML Jan 30 13:30:44 aha okay yeah right, developers never test their code, sorry forgot that :D Jan 30 13:30:48 so much truth Jan 30 13:30:58 p_l: yeah and you have a fight between testers and devs ? (and everyone is clearly separated iunto tester or dev); that was what i was playing for :) Jan 30 13:31:40 timroes: nope Jan 30 13:31:51 timroes, Android is almost getting tested by people like us only. For quality approval. Most of there product never being tested well yet. Its horrible to see so many things are not working but its getting sold out by making users stupid. Jan 30 13:32:05 IamTrying: cheap generic tablets aren't tested Jan 30 13:32:14 OK - hmmm Jan 30 13:32:35 cheapGeneric != Android Jan 30 13:32:48 IamTrying: I can't even find the device you named outside of a list of Browser UserAgents Jan 30 13:33:05 hey Jan 30 13:33:11 we have a saying: a poor person can't afford to buy cheap Jan 30 13:33:24 because buy cheap, buy twice/thrice etc. Jan 30 13:33:37 in your case, vendor skimped on actual testing Jan 30 13:34:14 (and the platform compat testing iirc can't catch those bugs, as it's centered around feature set required of devices that want to legally include Google Play market) Jan 30 13:35:37 p_l, i have also 300 Asus Eee pad tablets. It has same problem like the cheap one. I am a cross tester. Jan 30 13:37:08 IamTrying: you make us all look bad, that's why we hate you Jan 30 13:37:18 IamTrying contact asus then Jan 30 13:37:20 also, because we have to sort through bugs like Jan 30 13:37:26 Subject: It is broken Jan 30 13:37:32 Body: The app is broken when I click Jan 30 13:37:38 sweet bug report bro. Jan 30 13:37:39 lov ++ Jan 30 13:38:04 alternately, making 50 different bug reports for 50 different instances of the same bug Jan 30 13:38:25 PS: I really want to slap that team leader. Idiot. Jan 30 13:43:47 man, i wish i were more fluent in logcat Jan 30 13:44:16 trying to understand these messages is no fun at all :D Jan 30 13:44:22 :D Jan 30 13:44:36 bad ones begin with an E ;) Jan 30 13:44:48 hehe Jan 30 13:45:03 well, i'm only reading the red ones Jan 30 13:45:12 That's racist Jan 30 13:45:19 wait Jan 30 13:45:43 * lime is waiting.. Jan 30 13:45:55 On that note, anyone can recommend a good logcat reader (with colors at least) for OS X? Jan 30 13:46:08 I tried the Sublime Text 2 plugin but had no success (ayone got that running?) Jan 30 13:46:13 kakazza: outside an ide? Jan 30 13:46:19 Outside the IDE, yeah Jan 30 13:46:36 i saw OS X in your sentence and justed looked the other way.. Jan 30 13:46:37 I use this script I found and modified myelf https://github.com/timroes/android-snippets/blob/master/logcat Jan 30 13:46:58 lov, i am a contributor i test i find bugs or problems, i fix it and patch it. Why am i ban in #android ? (i contribute in linux kernel, ubuntu, php, python, zf etc etc) Jan 30 13:47:00 its python, so don't know if all the used packages work the same way then on linux Jan 30 13:47:12 lime: Can we still be friends, though? ;( Jan 30 13:47:14 but you could try Jan 30 13:47:26 timroes: will do, thanks Jan 30 13:47:34 dunno man.. you like things with apple-logos on them Jan 30 13:47:49 i'm kinda racist when it comes to this Jan 30 13:48:01 and logcat output! Jan 30 13:48:27 haha Jan 30 13:50:01 lov, anyway what-ever Jan 30 13:50:29 oh man dude, that was one professional :D Jan 30 13:50:53 kakazza: if you tried the script on a mac, I would be interested if it worked or not Jan 30 13:51:11 Will do once I get home. Jan 30 13:51:16 Pythin 2.7 or 3.x? Jan 30 13:51:36 oh good question, I guess 2.7 is at the mooment default on my pc :D Jan 30 13:52:15 hmm but i guess i also ran it with 3.X already, so not 100% sure :D Jan 30 13:52:20 but 2.7 should work Jan 30 13:55:10 alright, can anyone find any apparent mistakes in this code? http://pastebin.com/pvkUjayb Jan 30 13:55:17 it fails on l_theme.setAdapter(adapter); Jan 30 13:55:32 I'm using in AlertDialog.Builder setMessage method, which refers to R.string.message. Which is @string/message2 Jan 30 13:55:35 and this does not work Jan 30 13:55:48 lime with what exception? Jan 30 13:56:18 lime null pointer ? Jan 30 13:56:59 java.lang.nullpointerexeption Jan 30 13:57:07 null pointer are overrated! Jan 30 13:57:11 l_theme will probably be null Jan 30 13:57:26 as in null returned by findViewById Jan 30 13:57:33 l_theme = (ListView) findViewById(R.id.theme_list); Jan 30 13:57:37 so the error lies here? Jan 30 13:57:40 no Jan 30 13:57:41 y Jan 30 13:57:45 the error is a user error Jan 30 13:57:46 (possibly) Jan 30 13:58:18 in the current view there is no view with that id that can be found ;) Jan 30 13:59:42 could it be that it's due to the id being a child of another id? Jan 30 13:59:46 kakazza: for the case you get it working, the colors are meant for a black bg shell, if you use a light shell you will need to change the colors in the script :) Jan 30 14:00:21 lime: could you paste your res/layout/layout_menu.xml Jan 30 14:01:31 lime: step through w/ the debugger, verify that l_theme is actually being assigned a value instead of null. Jan 30 14:02:13 lime: it can be a typo Jan 30 14:02:20 http://pastebin.com/6KUqRWB7 Jan 30 14:02:36 or just put a "if (null) {log}" in after the assignment Jan 30 14:02:53 alright, i'll try these suggestions Jan 30 14:03:36 that list is in layout_themes Jan 30 14:03:57 not in layout_menu Jan 30 14:03:58 Hi guys, i was looking some thing in tutorials, and i just want to ask, is this okay ? public int[] icons={R.drawable.sp1,R.drawable.sp2, ... } iam just curious about use of int on actuall words, can someone explain me why that work ? Jan 30 14:04:03 Hi, i just ran a little audio-capture app on my nexus 4 (w/o sd-card). The app was originally programmed to write data to external storage (== SD-card?) and I ran it unchanged. What does the android do with my data now that there is no external storage? Or am iI getting something confused? Jan 30 14:04:36 DOSP define 'words' ? Jan 30 14:04:47 you are making an array of integers Jan 30 14:05:08 hmm, i forgot that there's a... Jan 30 14:05:09 View layout = inflater.inflate(R.layout.layout_themes, (ViewGroup)findViewById(R.id.themelayout)); Jan 30 14:05:12 ...along the lines Jan 30 14:05:16 yes, well by words i ment those "R.drawable" and so on Jan 30 14:05:18 DOSP: R.anything is an integer ID, nothing more Jan 30 14:05:24 ahaa Jan 30 14:05:28 Leeds allright : Jan 30 14:05:32 Thanks:) Jan 30 14:05:36 yes, find R.java Jan 30 14:05:40 you can open the R.java file and look at them if you want - but it's boring :) Jan 30 14:06:06 although intellij seems to obscure R.java Jan 30 14:07:39 mornin Jan 30 14:07:56 lime: you are doing strange things there :D Jan 30 14:08:18 tell me about it Jan 30 14:08:32 you load layout_menu Jan 30 14:08:34 there is no list in that? Jan 30 14:08:46 well, sec Jan 30 14:08:55 it's cause i load new layouts in alertdialogs Jan 30 14:09:23 http://pastebin.com/ZeXwTTeL Jan 30 14:09:28 here's the entire file Jan 30 14:09:33 i don't have your overall code, but that still sounds like dirty :D Jan 30 14:09:59 yeah well, i have a feeling this is very dirty code Jan 30 14:10:02 :s Jan 30 14:10:13 but i've struggled so much to make it work in the first place Jan 30 14:11:05 i really have no idea what i'm doing.. and this part is really difficult to google Jan 30 14:11:47 the second onclicklistener works, so i tried adding this one with the themes.. Jan 30 14:11:53 but i'm really just guessing Jan 30 14:11:54 all dirtyness aside, you are trying to inflate into themelayout, that isn't on the screen at all? Jan 30 14:12:03 because its in layout_themes, but you are showing layout_menu Jan 30 14:12:28 well Jan 30 14:12:29 View layout = inflater.inflate(R.layout.layout_speed, (ViewGroup)findViewById(R.id.speedlayout)); Jan 30 14:12:31 basically you are trying to inflate layout_themes into its own root view, that is not shown at all Jan 30 14:12:35 this line works.. and does the same thing Jan 30 14:13:21 ah wait i missed some of your lines Jan 30 14:13:22 "i know that works, i have that feeling..." Jan 30 14:13:46 monsti, it ACTUALLY works.. i can click the item and it opens a dialog with the layout Jan 30 14:14:04 same goes for the new layout_themes Jan 30 14:14:15 okay but from what i can say, it should fail Jan 30 14:14:17 however, as soon as i hit the adapter thingie it crashes Jan 30 14:14:22 l_themes will be null Jan 30 14:14:29 alright Jan 30 14:14:38 l_theme = (ListView) findViewById(R.id.theme_list); Jan 30 14:14:46 there is no list with that id in your screen Jan 30 14:14:56 because layout_menu is shown Jan 30 14:15:07 yeah from a item of a listview you can't find your list Jan 30 14:15:15 and you never assign another value to l_themes Jan 30 14:15:15 alright Jan 30 14:15:19 it's starting to make sense Jan 30 14:15:30 https://www.youtube.com/watch?v=WlsahuZ_4oM Jan 30 14:15:30 your explanation that is Jan 30 14:15:45 just because you switch views afterwards, doesn't suprisingly assign a vlaue to l_themes by executing some line you had earlier in your code again Jan 30 14:16:13 ok, i understand Jan 30 14:16:29 but can i change view somehow? Jan 30 14:16:50 and I am still not sure about what you are trygin to do, but on the first view it looks like you have 3 different activities? Jan 30 14:16:51 or should i do these methods in seperate classes? Jan 30 14:17:06 that you tried to pput into one, by changing views instead of using different activities/fragments Jan 30 14:18:00 ah okay NOW i guess i got what you mean, If its what i mean, you should rewrite your dialogs, and do the adapter stuff in the dialog, for which it is meant Jan 30 14:18:06 yeah, i'm sure this is not the optimal way of doing it, but since it's all very new to me i'm googling like a mad man and if i make something work, i keep it and try and build on top of that Jan 30 14:18:35 http://developer.android.com/guide/topics/ui/dialogs.html Jan 30 14:18:48 if you haven't done so, you should work through some of the doc guides and trainings Jan 30 14:19:59 alright Jan 30 14:20:17 i'll try and keep this in mind, even though it's abstract Jan 30 14:20:22 and try and move some stuff around Jan 30 14:20:40 thanks for taking your time to give some insight though Jan 30 14:20:55 android dialogs are somehow strange Jan 30 14:21:11 how does the OnMeasure function related to the layout size? how cn i determine within on measure if the view is setto match parent or wrap content? Jan 30 14:21:23 i am hating this whole xml part, hehe Jan 30 14:21:47 i feel like i'm doing the same thing as css and getElementById from homepage scripting Jan 30 14:21:49 lately i cant get one sentence out without a million typos >_> Jan 30 14:21:54 just in a much more complicated way Jan 30 14:23:33 homepage... scripting... Jan 30 14:23:38 oh lord Jan 30 14:23:42 javascript stuff Jan 30 14:23:47 you might've heard of it Jan 30 14:23:48 :) Jan 30 14:24:07 and yes, that's where i come from.. thought it was about time i upgraded though Jan 30 14:25:42 yes, I know what javascript is Jan 30 14:26:38 * capella javascript hurts my brain Jan 30 14:26:58 (not trying to be rude, but i do excuse if sarcasm is badly displayed in text) Jan 30 14:27:19 to quote a SRE friend of mine: "JavaScript is a horrible language that exists only because of being ubiquitous in browsers" Jan 30 14:27:48 javascript is fun :) ..it's so simple Jan 30 14:28:10 till you find out it isn't Jan 30 14:28:13 and shows you all its wonderful errors only at runtime Jan 30 14:28:38 now i want you all to shiver when i mention ... Jan 30 14:28:41 ..wait for it... Jan 30 14:28:43 mirc scripting Jan 30 14:28:45 and breaks minds of people who think "OOP" is what their "Foundations of Computing Science" course Jan 30 14:28:54 lime: didn't ever see or use it, so nope Jan 30 14:29:15 *course taught Jan 30 14:29:25 it's like dummied down javascript with very few purposes Jan 30 14:29:52 lime: quite recently I had to deal with VBScript Jan 30 14:29:58 "OOP" is what you exclain when you bump into someone going around the corner Jan 30 14:30:10 I'll admit that computer scientists are very clumsy but that doesn't mean that OOP is relegated to CS Jan 30 14:30:24 if you add an "a" to oop, you can do that silly horse dance as well :D Jan 30 14:30:29 lov: depends who you bump into Jan 30 14:30:50 now, there's a similar concept specific to CS which is "Principles of Object Oriented Programming" Jan 30 14:31:05 the acronym is also frequently stated in the halls of CS. Jan 30 14:31:49 wait wait.. what's wrong with computer science now? ..i'm planning on studying that next semester :s Jan 30 14:31:54 though usually in form of a more explicit synonym of it :) Jan 30 14:32:11 lime: I recommend a lot of independent reading then Jan 30 14:32:29 the best resource in CS course is the uni library and ability to actually talk with some people Jan 30 14:32:35 well, i learnt javascript, php and now getting into java all by myself Jan 30 14:32:36 the courses... not necessarily Jan 30 14:33:02 I recommend liberal application of 70% alcohol to erase PHP from memory Jan 30 14:33:17 hehe Jan 30 14:33:19 yeah, PHP is the new basic Jan 30 14:33:35 i'm not gonna toy around with drugs just to learn new standards Jan 30 14:33:43 i'm slowly adapting into the java logic Jan 30 14:34:43 i'm writing raw audio data to external storage (nexus4). it shows on the device if i use e.g. ES FileExplorer, but I cannot see the file or folder when conecting the device to my PC. Any ideas? Jan 30 14:35:19 freiform: that can be explained Jan 30 14:35:27 freiform: hold - i'll get you a link Jan 30 14:35:35 freiform: you need to tell the system there's new files, only indexed files are visible over mtp Jan 30 14:35:46 lime: then use liberal application of hammer to head. And not talking about learning new standard, I'm talking about unlearning crap Jan 30 14:35:51 or in other terms, MTP sucks Jan 30 14:36:27 can anybody explain to me, how ListView.setOnItemClickListener(...) works exactly. I'm using a customized baseadapter to populate my listview. What methods inside my baseadapter are being called when i'm adding a onItemClickListener Jan 30 14:36:48 no idea why they didn't make the system index new files automatically, perf or power usage optmization perhaps? Jan 30 14:36:54 MrMaffen none, i guess Jan 30 14:37:03 freiform: http://www.humbug.in/stackoverflow/de/android-how-to-use-mediascannerconnection-scanfile-4646913.html Jan 30 14:37:10 i'm asking for this information, because i want to debug my StickyListHeadersListView Jan 30 14:37:12 freiform: http://stackoverflow.com/questions/9414955/trigger-mediascanner-on-specific-path-folder-how-to Jan 30 14:37:32 freiform: you need to do "stuff" after you write/modify a file Jan 30 14:37:47 xorgate: do you know how the setOnItemClickListener method sets the listeners for every listItem? Jan 30 14:37:49 monsti, appel1 thanks, i'll give it a shot. Jan 30 14:38:04 erm, you shouldn't need to do anything to have the file show up on the PC, should you? Jan 30 14:38:18 MrMaffen i would suspect it does not. the listview catches the click, then determines which item was clicked, then calls OnItemClicked Jan 30 14:38:36 all files should show up, not just the indexed files Jan 30 14:39:16 android index new files Jan 30 14:39:20 Leeds: yes you have to do Jan 30 14:39:24 sry, wrong window. Jan 30 14:39:31 Leeds: it's the MCP stuff that forces you Jan 30 14:39:43 mcp? Jan 30 14:39:51 Leeds: MTP only shows files indexed by the "media" database Jan 30 14:39:54 Leeds: the usb connection protocol that is used by windows Jan 30 14:39:56 sry MTP Jan 30 14:40:13 seriously? okay, didn't know that, never really tried to use MTP Jan 30 14:40:27 so if the indexer doesn't know about a file type, it simply doesn't show up? Jan 30 14:40:33 Leeds: well do you connect your phone/tablet via usb to your PC/MAC? Jan 30 14:40:44 Leeds: afaik it includes all files Jan 30 14:40:46 monsti: yes, and I use adb like a normal developer Jan 30 14:40:47 than you use MTP ;) Jan 30 14:40:59 Leeds: adb != MTP Jan 30 14:41:09 xorgate: well yea. perhaps it helps if i explain my current issue in greater detail. i'm using a StickyListHeadersListView from emilsjolander. When I'm using a simple android listview, my onItemClickListener works perfectly. But when i'm using the stickylistheadersListView, the first item in my list can't be clicked Jan 30 14:41:15 I'm not a fucking idiot, I know I don't use MTP Jan 30 14:41:42 Leeds: if you copy a file via the windows explorer to your device or from the device that's MTP Jan 30 14:41:57 monsti: welcome to the world where a lot of people don't use windows Jan 30 14:42:04 Leeds: also in OSX Jan 30 14:42:08 or OSX Jan 30 14:42:09 also in linux ;) Jan 30 14:42:19 also not in Linux Jan 30 14:42:22 MrMaffen well i know nothing about that. sounds like it specifically does something with the first item (or header) Jan 30 14:42:22 xorgate: by "can't be clicked" i mean, that the onItemClick method doesn't fire at all. it's as if there was no onItemClickListener associated with this list item Jan 30 14:42:25 anyway Jan 30 14:42:31 monsti: i do not have media-files in the common sense, as i write raw audio-data w/o headers. it's just a byte-stream. Jan 30 14:43:26 freiform: that's what i do after writing/modifing a file Jan 30 14:43:28 context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory()))); Jan 30 14:43:45 xorgate: yea ok. i'm starting to think it's a bug within that custom listview library :S Jan 30 14:43:49 monsti: you tell to index everything? not very battery friendly. Jan 30 14:44:08 appel1: i have no file explorer app Jan 30 14:44:22 MrMaffen maybe it's working as intended. it's probably not called '*listheaders*' for nothing Jan 30 14:44:23 xorgate: problem is. it does work correctly in the sample activity that is provided with the library ... grml :( frustration starts to kick in Jan 30 14:44:26 appel1: i only write a crashdump Jan 30 14:44:40 xorgate: na. that isn't it. unfortunately Jan 30 14:45:26 monsti: so instead of passing the whole external storage, i could just pass teh newly written file to sendBroadcast? Jan 30 14:49:17 freiform: yes you can - urlify the absolute file name Jan 30 14:49:27 freiform: well i don't care for a single file Jan 30 14:50:36 monsti: this is just fo debugging purposes, really. i want to acess my raw data to compare some calculations i perform on the device with routines i have written in matlab. easy access would be rathe rhandy.. Jan 30 14:53:26 monsti: working like a charm, thanks. Jan 30 14:55:05 freiform: i hope this is helpfull - it tool me ages to find ;) Jan 30 15:01:14 lime: http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ Jan 30 15:01:22 lime: You really do need to unlearn PHP before you can grow as a developer. Jan 30 15:01:47 i've been linked to that stuff before Jan 30 15:01:58 well, re-read it Jan 30 15:01:59 it's all true Jan 30 15:02:02 php is terribad Jan 30 15:02:12 not like a "ha ha guys that sucks" kind of bad Jan 30 15:02:18 it's a "cult deprogramming" kind of bad Jan 30 15:02:24 sure it is, i'm not focusing on php anymore though Jan 30 15:02:54 now i'm learning java, and i don't really care about what flaws php has Jan 30 15:03:08 and i probably wont understand half of that article anyway Jan 30 15:03:49 * lov shrugs Jan 30 15:04:39 i'm here to learn lol, not being told what i did wrong in the past Jan 30 15:05:53 lime, it'd be good to make effort to understand it Jan 30 15:05:58 it'd mkae you grow as a programmer Jan 30 15:06:32 i'll read it at some point Jan 30 15:06:37 i got it bookmarked since last time Jan 30 15:07:16 ok, ok.. you guys will probably cry now.. but i made my script work Jan 30 15:07:33 by adding: l_theme = (ListView) layout.findViewById(R.id.theme_list); Jan 30 15:08:01 which defines the new layout loaded in the inflating thingie Jan 30 15:08:32 script? Jan 30 15:09:17 http://pastebin.com/ZeXwTTeL <-- i'm talking about this stuff Jan 30 15:09:56 so i moved line 36 to 58-ish.. and added layout in front of findnewbyid Jan 30 15:10:18 stop calling java code script Jan 30 15:10:18 :E Jan 30 15:10:29 lol, sorry Jan 30 15:10:43 better than people that refer to code as 'a code' Jan 30 15:11:45 you guys are so picky Jan 30 15:12:02 it helps :) Jan 30 15:22:51 Hello guys Jan 30 15:22:53 http://stackoverflow.com/questions/14607437/first-click-doesnt-work-in-menuitem-android-actionbarsherlock Jan 30 15:23:01 any ideas ? Jan 30 15:25:24 hi there. I've got trouble setting up an Android test project in Eclipse Juno according to http://developer.android.com/tools/testing/testing_android.html#TestProjects Jan 30 15:25:27 how can i have my activity *not* be in the backstack? I have a startup activity that might show a layout, depending on current version vs known version. If the user hits 'proceed' a new activity shows, if clicked 'back' i don't want the startup activity shown Jan 30 15:26:15 Eclipse tells me "[…] overlaps the location of another project" when trying to create the test project as "tests" below the project that is to be tested Jan 30 15:26:34 xorgate: you start a new activity and do a finish() to the parent activity Jan 30 15:26:47 that makes sense because the latter is my repository and I'd like to have the tests there. but is that still a best practice? Jan 30 15:27:22 monsti excellent sir thanks :) Jan 30 15:27:49 xorgate: there is also some magic in the manifest you can do, but this basically does a finish() Jan 30 15:28:10 monsti do you know which magic that is? Jan 30 15:28:44 no because i checked the android source, and i can also call a finish() if i really think it's needed Jan 30 15:28:55 ah noHistory Jan 30 15:29:01 yeah Jan 30 15:30:43 i think i prefer the manifest solution Jan 30 15:39:55 anyone here paying attention to BlacBerry 10 launch? Jan 30 15:40:43 I'm watching it... Jan 30 15:41:41 so far multi-tasking is better than Android Jan 30 15:42:06 keyboard is pretty good too Jan 30 15:42:13 url? Jan 30 15:42:41 I'm watching with commentary at live.twit.tv Jan 30 15:42:41 xorgate: http://tremolo.edgesuite.net/blackberry_experience_launch/desktop_dvr/index.html Jan 30 15:43:08 i have this feeling it's all or nothing for bb Jan 30 15:43:54 definitely Jan 30 15:44:44 cheers Jan 30 15:45:14 they were offering like 200 euros per ported app Jan 30 15:45:58 some companies just don't know when they're beat Jan 30 15:49:45 did i just see the videofeed being slower than the phone-clone-feed Jan 30 15:50:18 I just cant stand hosts that "clap" either at themselves or the presentation Jan 30 15:50:32 specially too close to mic Jan 30 15:50:56 it's either that or 'this is a huge step!' as certain apple ppl used to do Jan 30 15:53:19 it'll be interesting to see if BB can actually pull this off. I think you're right xorgate, this is their very last chance. if this doesn't take off, they get bought for patents. Jan 30 16:02:08 committed to blackberry 10! Jan 30 16:02:27 can anyone Direct me a link of webinar for my first android game app? Jan 30 16:03:03 sucejson say what? Jan 30 16:03:46 sucejson: no. Start here: http://developer.android.com/training/index.html Jan 30 16:04:13 no. android java for game development Jan 30 16:04:34 you need to learn android before you do game development. Jan 30 16:04:43 Alternately you can just fuck around with something like andengine and annoy us endlessly Jan 30 16:05:18 no google maps on blackberry 10 Jan 30 16:05:31 android has a lot of atypical concepts and an atypical lifecycle, and if you don't understand some core concepts you'll get lost very fast. Jan 30 16:08:40 lov: lol Jan 30 16:08:46 what's wrong with andengine? Jan 30 16:08:57 yeah that's why I wanted to know if there is a already made projects out there which I need to config only as my start Jan 30 16:09:10 no, you need to learn android Jan 30 16:09:20 kind of like learning how to drive before entering a race Jan 30 16:09:29 yup Jan 30 16:09:38 we can give you a racecar Jan 30 16:09:41 but can I skip that? Jan 30 16:09:43 but you're just going to crash it Jan 30 16:09:50 i don't Jan 30 16:09:56 trust me Jan 30 16:10:01 i jsut need the webinar Jan 30 16:10:23 see if you were actaully "that good", you wouldnt be in here asking for our help Jan 30 16:10:27 so i dont believe you Jan 30 16:10:38 funny Jan 30 16:10:52 i don't treat myself good at all Jan 30 16:10:59 i just wanted it skip Jan 30 16:11:15 should i start reverse engineer it to make it ASAP. ofcourse not i should go with the trend Jan 30 16:11:19 http://www.ladyada.net/make/mintyboost/ Jan 30 16:11:22 is it possible to create a service or something which would do something after a notification is received? or arre notifications only for users? Jan 30 16:11:48 w0w! Jan 30 16:12:14 lol... Jan 30 16:12:29 is this a joke Jan 30 16:12:47 alica keys Jan 30 16:13:02 haha Jan 30 16:13:05 yeah :) Jan 30 16:14:06 she's intelligent, but i don't know about a gig at blackberry Jan 30 16:14:50 can someone tell me what phone technology Nadal has been paid a lot of money to endorse, so I can buy it? Jan 30 16:15:05 because I prefer to get my tech reviews from sports people, not singers Jan 30 16:15:10 :0 Jan 30 16:15:31 http://lifehacker.com/5948722/upgrade-your-mintyboost-for-better-charging-efficiency Jan 30 16:15:32 I buy what Oprah tells me to Jan 30 16:15:35 give her a break, she's merely creative director Jan 30 16:15:46 xorgate: she's "paid spokeswoman" Jan 30 16:16:01 she a marketing director Jan 30 16:16:11 not just a spokes person Jan 30 16:16:23 yeah, right Jan 30 16:16:27 lol Jan 30 16:16:52 she's going to basically sell to the music industry Jan 30 16:17:06 could her hair make her look any less attractive Jan 30 16:17:06 * monsti sells his soul Jan 30 16:17:50 ok srsly, what are you talking about? Jan 30 16:18:13 SimonVT http://tremolo.edgesuite.net/blackberry_experience_launch/desktop_dvr/index.html Jan 30 16:18:25 oh Jan 30 16:18:40 SimonVT: RIM - who are renaming themselves Blackberry - launching their new platform... have announced Alicia Keys as their paid spokeswoman^W^Wcreative director Jan 30 16:18:55 is it possible to somehow disable the action bar for devices that do not support it? Jan 30 16:19:15 How can you disable something that doesn't exist? Jan 30 16:19:20 SimonVT: ;) Jan 30 16:19:28 Daani you probably want actionbarsherlock Jan 30 16:19:42 Leeds: Guess they realized their research wasn't very much in motion Jan 30 16:19:55 SimonVT: that's like a OnBeforeMouseClick event in windows ;) Jan 30 16:19:57 SimonVT: also, fruit mobiles make money Jan 30 16:19:57 haha sorry, that sounded crazy. I meant, prevent it from trying to use it as it does not exist Jan 30 16:20:21 Check your API level before you use action bar methods Jan 30 16:20:21 i'll see you in the office! aaaaand cut! $$$ Jan 30 16:23:05 I'm handling MotionEvent.ACTION_DOWN and MotionEvent.ACTION_UP in my custom View, and it works perfectly in the emulator clicking on it with the mouse. But on a phone nothing happens when I touch the widget on the screen. Is it something else that I should receive instead of these very MotionEvents? Jan 30 16:23:31 any recommendations of "android developer news" sources. Blogs and such I envision.. Jan 30 16:23:31 Maybe the mouse isn't emulating screen touches? Jan 30 16:23:53 ACTION_DOWN and ACTION_UP works perfectly on devices Jan 30 16:24:10 Weird. Jan 30 16:24:33 kdehl, perhaps some other view is stealing the motionevent Jan 30 16:24:40 I'm only interested in where on the widget a user touches the screen and where he lets it go. Jan 30 16:24:45 Hm. Okay... Jan 30 16:24:55 did you write your own eventhandler? Jan 30 16:25:34 I've just overridden onTouchEvent() Jan 30 16:25:58 is there an onclick handler on the view or a parent? Jan 30 16:26:17 Only for the buttons... Jan 30 16:27:46 Oh wel, I'll work something out. Thank you guys Jan 30 16:27:46 ! Jan 30 16:27:56 Hi android-dev community :) Jan 30 16:28:12 I'm afraid if it works on the emulator but not on the device I'm out of ideas kdehl Jan 30 16:28:14 preds: there's the dev blog, but it's not particularly active Jan 30 16:28:35 just be careful with the return true / false in your ontouch listener Jan 30 16:28:39 If you want android developer news, start following android people on g+ Jan 30 16:28:54 Just want to know If It's allowed to develop Youtube Download App ? Thanks. Jan 30 16:29:22 preds: Yeah, it's really strange, isn't it? Jan 30 16:29:25 Does youtubes terms allow you to make download apps? Jan 30 16:29:36 jangdev: you're allowed to develop whatever you want... you might get pulled from the play store if you're breaking terms Jan 30 16:30:39 contradictory statement detected Jan 30 16:30:58 Thanks guys. Jan 30 16:31:12 develop != publish/distribute Jan 30 16:31:15 there's a few youtube downloader apps on the play store already Jan 30 16:32:40 Yup. but I cannot find specific app for youtube. Currently developing a unique one. Jan 30 16:32:50 hrm, looks like they pulled tubemate Jan 30 16:32:52 You can upload one, but if it's against youtube's terms of service, or whatever it's called, and they decide to enforce it, it might disappear Jan 30 16:32:58 oh well, good thing it's available on other sites Jan 30 16:33:00 Oh. Jan 30 16:34:24 We'll see how it goes. Hope it'll be accepted. Jan 30 16:35:54 Haha, if you search for youtube downloader the top two results have "YOUTUBE IS NOT SUPPORTED DUE TO THEIR TERMS OF SERVICE" at the top of their description Jan 30 16:36:31 Whoa. haha. my bad. thanks for the info Jan 30 16:37:44 if your browser can play it, your browser can download it Jan 30 16:38:12 it can't play it without downloading it Jan 30 16:41:42 my GCM intentservice fires up an activity (styled as dialog, so not fullscreen). When i get another gcm i want to send its data to this already opened activity. Right now i use launchmode=singleTop which works, but i want to have the popup start another popup. Now when a message comes in, another version of the activity is started. How can i have my gcm intentservice be unaware of whether Jan 30 16:41:42 or not it the first activity is 'active'? Jan 30 16:41:52 what a horrible few sentences.. sorry :) Jan 30 16:41:55 it could be using the entirely-secure in-browser decryption technique Jan 30 16:42:36 xorgate: set the activity to be singleInstance, and override onNewIntent Jan 30 16:42:41 * pragma- waves his sarcasm detect-o-meter over Leeds's statement Jan 30 16:42:59 hello Jan 30 16:43:04 * Leeds is British - sarcastic-by-default Jan 30 16:43:06 Ah. It had nothing to do with touchEvents, at least. Jan 30 16:43:28 i'm having trouble getting hideSoftInputFromWindow to work on an editText Jan 30 16:43:44 tried using the EditText object itself, getCurrentFocus(), different flags, nothing seems to work Jan 30 16:43:44 evanc it's almost what i want. it makes the first activity move to foreground, which is not what i want Jan 30 16:43:46 keyboard stays open Jan 30 16:44:23 i was alreday overriding onNewIntent Jan 30 16:45:31 gcm->popup1->click->popup2 now when new gcm shows up it's gcm->popup2->popup1 because popup1 is forced to the front Jan 30 16:46:46 what i want is popup1 to be below popup2 always, and new gcms push their data to the popup1 (which updates itself in the background) Jan 30 16:47:08 so onNewIntent was working up to a certain point Jan 30 16:47:28 my other idea is to move the functionality from popup2 into a fragment shown in popup1 Jan 30 16:50:34 hello, anyone? Jan 30 16:52:40 Hi! Jan 30 16:53:43 xorgate: then you need to bind the service to the activity (popup1) somehow. Possibly through a static subscriber mechanism or something Jan 30 16:53:54 I'm looking for info in GMap's API how to make a view in perspective, how navigations app, where the marker is in the bottom border and always pointing to up (front), any idea? Jan 30 16:54:17 wait RIM is renaming themselves to Blackberry? Jan 30 16:54:41 canadiancow: yes, except with two capital Bs Jan 30 16:54:51 you'd think i'd know this Jan 30 16:54:54 canadiancow this changes everything! Jan 30 16:54:59 i applied for an internship there once Jan 30 16:55:03 got to the interview Jan 30 16:55:30 "so this position has changed a little. instead of being 100% technical, it's now 10% technical and 90% project management. so let's get started. [some PM question]" Jan 30 16:55:54 i walked out Jan 30 16:56:26 well you missed your chance to meet alicia keys, mister Jan 30 16:58:10 omi... passed up a perfectly good PM position? Jan 30 17:04:34 we just got a BB 10 alpha device yesterday Jan 30 17:05:02 tested our app on it.. back and menu buttons aren't always easily accessible Jan 30 17:05:30 the media manager wasn't returning artwork embedded into mp3's and the "hitbox" on small buttons was notably difficult Jan 30 17:05:43 the gesture based navigation was quite impressive in the OS Jan 30 17:05:48 ‎"You can now install multiple apps at the same time and you don't have to reboot your phone." - this was announced as a feature during the BB10 launch. Jan 30 17:05:54 and aside from the above the application ran perfectly Jan 30 17:06:49 I am trying to implement an onScroll listener to my listview to load more results from a mysql/php. Everything is working as it should except 1. line 144 states that "count() is undefined for the type LiveFeed.FeedListAdapter" and 2. when new items are added to the list it automatically scrolls back to the top of the list. Jan 30 17:07:05 anyone willing to take a look? http://pastie.org/private/v95ydectb0haerhc0cigta Jan 30 17:08:06 str8uplinux: i would use a custom adapter, extending Jan 30 17:08:27 str8uplinux: BaseAdapter Jan 30 17:08:44 str8uplinux: i would have getCount return the real total rows, from the server Jan 30 17:09:09 str8uplinux: and getItem would get things from a cache, or return a 'loading...' object and schedule the download Jan 30 17:09:35 when the download is done, call notifyDataSetChanged(), so it re-runs getItem and loads it from the cache Jan 30 17:11:29 str8uplinux: something similar to this, http://privatepaste.com/de643fb03a Jan 30 17:12:57 clever, that is the other thing i'm having problems with. when i try to call notifyDataSetChanged() in my post execute i get "Cannot make a static reference to the non-static method notifyDataSetChanged() from the type ArrayAdapter" Jan 30 17:13:14 str8uplinux: how are you calling it? Jan 30 17:13:49 FeedListAdapter.notifyDataSetChanged(); Jan 30 17:14:05 str8uplinux: you need to call it on an instance of the object, like currentChannel.adapter.notifyDataSetChanged(); Jan 30 17:14:08 not on the type Jan 30 17:15:42 hmm, so how would i go about that on line 175 of my paste? (i'm really sorry, i am still trying to teach myself java/android) Jan 30 17:15:55 str8uplinux: which paste? Jan 30 17:16:09 http://pastie.org/private/v95ydectb0haerhc0cigta Jan 30 17:16:55 str8uplinux: you want to use the object you made on line 176 Jan 30 17:17:43 and as far as your adapter that you sent me, do i use that INSTEAD of the FeedAdapter? or do i make another adapter for the scrolling? Jan 30 17:17:57 that is another adapter you could use, instead of an arraylist Jan 30 17:18:20 ArrayList expects to have all of the items from the start Jan 30 17:18:44 the one i put in the pastebin could be modified to act like it has 10000 items, but only download 10 Jan 30 17:22:59 clever, if i remember right, i used the arraylist becasue for some reason i couldn't figure out how to place the JSON that was returned from the server into the textviews... Jan 30 17:23:44 str8uplinux: in the example in my pastebin, you would need to convert each item in the json into an object, and store those in some kind of array Jan 30 17:23:55 then getCount would need to return the count of items, and getItem the item itself Jan 30 17:24:12 and getView would then use getItem to create a View (or TextView) to display it Jan 30 17:24:56 in my case, i'm using the layout inflater to make each list item from chat_row.xml, and storing the text into a TextView with the id msg Jan 30 17:25:22 brb Jan 30 17:26:54 clever: if you aren't using the Holder pattern, you should Jan 30 17:27:05 Do the resource qualifiers apply to screen size without DPI consideration? In other words, does values-sw600dp mean that any screen that's ACTUALLY wider than 600 pixels? Otherwise, how would this qualifier work for the N7? If it's 800 pixels wide at XHDPI (tvdpi), then that would give it a DP-independent width of 400, right? Jan 30 17:27:09 Am I missing something? Jan 30 17:27:23 clever, thanks. This could be quite the challange being a newb, it took me forever to get what i have working the way it is so it is a little intimidating to try to implement your Adapter. Jan 30 17:28:42 Chronax: the Nexus 4 screen is wider than 600px but it is not 600dp Jan 30 17:29:11 Well, right. It's 800 px wide, right? So doesn't that translate to 400 DP @ XHDPI? Jan 30 17:29:30 I can't understand how layout-sw600dp is applying to the N7 and I feel like a dumb stupid idiot. Jan 30 17:29:32 Nexus 7 isn't xhdpi Jan 30 17:29:47 N7 is tvdpi Jan 30 17:29:49 nexus 7 is tvdpi (216?) Jan 30 17:30:11 the nexus 7 is wtfdpi... Jan 30 17:30:21 Yeah, yeah, Jan 30 17:30:23 I know. Jan 30 17:30:33 But that should still be < 600dp, right? Jan 30 17:30:44 800 * (160/216) = 593 Jan 30 17:30:52 Right. Jan 30 17:30:55 hm Jan 30 17:31:09 So how are my sw600dp things applying on the N7? Jan 30 17:31:19 I thought it was 213 Jan 30 17:31:21 dpi Jan 30 17:31:25 JakeWharton: yeah you're right Jan 30 17:31:27 evanc: holder pattern? Jan 30 17:31:38 Chronax: that's 601 Jan 30 17:31:49 clever: http://developer.android.com/training/improving-layouts/smooth-scrolling.html#ViewHolder Jan 30 17:31:51 Dianne posted about this: https://plus.google.com/105051985738280261832/posts/6eWwQvFGLV8 Jan 30 17:32:16 Eek. Jan 30 17:32:17 clever: that's a terrible article about it, so if you don't understand it, let me know and I'll explain it further Jan 30 17:32:18 Okay, I see. Jan 30 17:32:24 Thanks. :) Jan 30 17:32:36 evanc: ah, yeah i'm not doing anything like that Jan 30 17:32:48 evanc: however, i did notice that creating 4 TextView's per row ate up 50% of the cpu time Jan 30 17:32:57 evanc: then i figured out how to correctly use convertView Jan 30 17:33:00 clever: so don't do that :) Jan 30 17:33:06 clever: nice Jan 30 17:33:25 clever: if you have an hourish to kill, watch http://www.youtube.com/watch?v=wDBM6wVEO70 Jan 30 17:33:41 How can I distinguish between 7" and 10" tablets with a string like this? 213dpi;sdk4.2.1;800x1205 Jan 30 17:33:44 evanc: the problem is now over in the sqlite area, its doing blocking db queries on the sqlite db, for getItem Jan 30 17:33:55 Can I just use screen width? Jan 30 17:34:13 w600dp Jan 30 17:34:16 evanc: i was thinking either batch up the queries, or make it more async Jan 30 17:34:36 Aren't 10" tablets sw720dp ? Jan 30 17:34:51 Estel: pending OEM idiocy, yes Jan 30 17:35:12 clever: yeah, switch to Loaders for that Jan 30 17:36:17 evanc: min api 11 Jan 30 17:36:35 support library, min api 4 Jan 30 17:36:44 seems simpler to just do what i was telling str8uplinux about, getItem returns a 'please wait' object, then schedule a download Jan 30 17:36:48 gives me more control over thing Jan 30 17:36:50 s Jan 30 17:37:28 except you have to handle view reuse properly so you don't update a reused view as well as supporting canceling queued downloads if the view is recycled before your executor starts download Jan 30 17:37:46 JakeWharton: i was using 4 views in each row, and that broke text wrapping Jan 30 17:38:03 JakeWharton: the channel+name eats half the screen, then the message is forced to wrap within only half the screen Jan 30 17:38:12 Should've been more clear. I need to identify the difference between 7" and 10" tablets using that string in a Rails back-end. Jan 30 17:38:22 213dpi;sdk4.2.1;800x1205 Jan 30 17:38:26 That's where I'm having problems. Jan 30 17:38:28 JakeWharton: look at the example in http://gallery.earthtools.ca/index.py/android/device-2013-01-29-180658.png Jan 30 17:38:53 Chronax: calculate the sw in dp Jan 30 17:38:53 Chronax: take the smaller of the two resolution px sizes and multiply it by 160/density Jan 30 17:38:55 JakeWharton: i have since fixed that, by using a SpannableStringBuilder, much better, and makes that view reuse problem simpler as well Jan 30 17:39:01 * evanc high-fives JakeWharton Jan 30 17:39:07 Yeah, that's a good idea. Jan 30 17:40:10 JakeWharton: see the issue i was having with word-wrap? Jan 30 17:40:36 clever: yes, but how is that related to loaders, DB queries, and asynchronous downloads? Jan 30 17:40:40 or have we moved on to another problem Jan 30 17:41:11 JakeWharton: that makes each view much simpler, so view reuse with asynchronous downloads becomes simpler Jan 30 17:41:43 its just a TextView with a Spannable in it, so its easyer to put in a 'please wait' msg and then recycle it Jan 30 17:42:42 hi. Jan 30 17:42:50 who uses snapdragon SDK to make android games Jan 30 17:42:59 the display of the data doesn't matter, the problem with re-use it that you need the ability to cancel downloads that haven't happened yet and ignore updates for views that have been re-used (and have subsequently triggered new downloads) Jan 30 17:43:52 JakeWharton: i was planning to cache the objects into a SparseArray, so getItem would return them on the second trip Jan 30 17:44:12 Hey Guys :) I want to upload a file to a php file but its not working.. i dont really know why... my code is sending the data but the php file answers everytime there are no files... here is my code: http://pastebin.com/XaRPLVgK Jan 30 17:48:22 JakeWharton: hmmm, seems the SpannableStringBuilder is a non-issue, getItem takes up 99% of the cpu time Jan 30 17:48:44 oh, was looking at the wrong part of the profile Jan 30 17:49:53 damn... i'll ask so Jan 30 17:50:29 Styler2go: did you set multipart header? Jan 30 17:50:50 evanc: ah, i see how the view holders work Jan 30 17:50:54 i dont know.. i posted my code above. yeah i tihink i have set them Jan 30 17:51:11 "conn.setRequestProperty("Content-Type", "multipart/form-data;boundary=" + boundary);" Jan 30 17:52:30 what do u think http://www.youtube.com/watch?v=t-UF6DXRR5M Jan 30 17:53:17 snapdragon is the processor in n4 or? Jan 30 18:02:43 Nobody any Idea about my upload problem? http://pastebin.com/XaRPLVgK (Server says, $_FILES is empty, but my phone is sending some data...) Jan 30 18:03:28 Styler2go: dos.writeBytes("Content-Disposition: form-data; name=\"uploadedfile\";filename=\"" + iFileName + "\"" + lineEnd); Jan 30 18:03:37 remind me, it's been a while, but is this supposed to be an HTTP Header? Jan 30 18:03:42 or is it actually part of the POST data? Jan 30 18:03:45 without knowing what you're doing, my guess is the content disposition is wrong Jan 30 18:04:06 lets try to set it as header ;) Jan 30 18:04:32 Styler2go: well, no, lets try looking up the HTTP spec and knowing how to do it. Jan 30 18:04:50 Styler2go: try multipart/form-data for your content disposition Jan 30 18:05:02 Content-Disposition is a request header, I know that. Jan 30 18:05:21 also there's no reason to write raw http, use a library for that Jan 30 18:05:31 Styler2go: http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html#sec19.5.1 Jan 30 18:05:46 i recommend this one: https://github.com/kevinsawicki/http-request Jan 30 18:06:14 sooo... its a header? Jan 30 18:06:16 just use HttpClient, HttpPost, and MultipartEntity and call it a day Jan 30 18:06:31 Styler2go: is it? (hint: rtfrfc) Jan 30 18:07:14 hm... Jan 30 18:07:32 I literally pasted the url for you, to the exact spot. Jan 30 18:07:42 yeah i know Jan 30 18:07:44 but yeah, consider using higher level classes like HttpPost Jan 30 18:08:13 sorry gyus i am not that good.. i dont know what u mean with HttpPost right now :-/ Jan 30 18:08:41 https://developer.android.com/reference/org/apache/http/client/methods/HttpPost.html Jan 30 18:09:25 first of all, u are telling me, i can delete my complete code? Jan 30 18:09:35 well, you can, you may not want to. Jan 30 18:10:31 lets try it Jan 30 18:10:35 give me some minutes :D Jan 30 18:12:12 will i need some jar external jar file(s)? Jan 30 18:13:23 JakeWharton: hmmm, that isnt working as well as i planned Jan 30 18:13:44 JakeWharton: ive made getItem async, but notifyDataSetChanged causes it to scroll back to the bottom Jan 30 18:16:01 Where i can get the "StringBody" and "FileBody"? Jan 30 18:19:05 JakeWharton: i think i want TRANSCRIPT_MODE_NORMAL Jan 30 18:19:07 Can Android speak directly to a Firebird SQL server? Jan 30 18:19:43 JakeWharton: yep, but the AsyncTask is ddos'ing the main thread, i'll keep working on it Jan 30 18:22:21 oh my god. why is it soooo easy to download a file, but uploading a file is so damn complicated.... Jan 30 18:22:50 Styler2go: just use this: https://github.com/kevinsawicki/http-request Jan 30 18:23:05 it's not that complicated, you just have to follow the spec Jan 30 18:23:53 * cantido notes that some versions of android have really broken a HttpURLConnection.. where streaming doesnt work Jan 30 18:23:55 ... sry i dont know what to do with this github thing... i am not that pro, i know the basics... Jan 30 18:24:57 I would just use HTTPClient to be honest.. it's deprecated blah blah.. but it works Jan 30 18:25:03 What would be the best way to have my app talk to a Firebird DB? Jan 30 18:25:35 ok i will google again.. there must be something which would help me... Jan 30 18:25:42 there MUST ... :o :D Jan 30 18:26:31 Styler2go: HTTP is a bit of a mess. If you browse the github page JakeWharton linked you can get a class that wraps around all the nastyness Jan 30 18:27:08 yeah but... i could not find any jar file.. and i thought i would need a jar file... Jan 30 18:27:09 Styler2go: you can download the source without installing/learning git too Jan 30 18:27:19 Styler2go: it looks like an android library Jan 30 18:27:43 apparently not Jan 30 18:28:02 yeah i know that.. oh damn ok i will look at this http request :) thnaks, i will look, could take mom.. Jan 30 18:28:40 https://github.com/kevinsawicki/http-request/tree/master/lib/src/main/java/com/github/kevinsawicki/http .. you only need that class I think Jan 30 18:29:18 the only imports are java/javax stuff Jan 30 18:29:27 ok got it Jan 30 18:29:30 now wait :) Jan 30 18:30:16 But it's a wrapper around HttpURLConnection.. so if you want to upload big files you might get OOM on Android 2.x Jan 30 18:30:20 I am confused again, so please forgive my stupidity. If I need an image that's say… 300x300dp on a Nexus 10 tablet, how do I calculate the actual size image I need? Jan 30 18:30:46 Chronax: turn dp into pixels? Jan 30 18:31:15 Right, so it's 320dpi... Jan 30 18:31:23 http://developer.android.com/reference/android/util/TypedValue.html#applyDimension(int, float, android.util.DisplayMetrics) Jan 30 18:32:14 I think you're approaching it the wrong way Jan 30 18:32:55 if you have an asset you intend to display on devices at a resolution of 300x300dp you will need to provide that asset in 300x300 for mdpi and 450x450px for hdpi devices Jan 30 18:33:10 Right, okay. Jan 30 18:33:11 Thanks. Jan 30 18:33:16 you can optionally provide 600x600 for xhdpi devices, let the OS handle the rest Jan 30 18:33:32 uhm...so ... how can i get the answer from the server with this code? :D Jan 30 18:33:43 i have the simple code: HttpRequest request = HttpRequest.post(conf.d + "upload.php"); request.part("uploadedfile[image]", new File(u)); Jan 30 18:33:51 definitely include xhdpi Jan 30 18:33:57 you do *not* want to scale up Jan 30 18:34:06 Styler2go: it has comments.. Jan 30 18:34:28 the complete worlds is made of comments... Jan 30 18:35:18 Styler2go: it is a polite way of saying "rtfm" Jan 30 18:35:45 i know... Jan 30 18:37:31 If you're really crazy you could read the HTTP docs instead and do it with Socket :) Jan 30 18:37:50 alternately, read the HTTP docs and fix the original code snippit you came in here with Jan 30 18:37:51 i am totally NOT crazy :D Jan 30 18:38:13 ok i have my server response. now i will try to fix this thing :) Jan 30 18:38:46 * cantido wonders what the sensible replacement for HTTPClient will be Jan 30 18:39:14 HttpClient is pretty damn sensible Jan 30 18:39:53 why the hell is downloading so easy! and this uplaod thing sooo much more difficult... Jan 30 18:39:55 JakeWharton: but it is now "deprecated" in favour of HttpURLConnection Jan 30 18:40:07 cantido: yeah but for sure not because of its api :D Jan 30 18:40:17 i just dont get it why they make uploads as easy as downloads :D Jan 30 18:40:18 which is like having a chainsaw to cut down trees and then given a spoon instead Jan 30 18:40:38 but all the improvements in android work only on HttpUrlConnection and not in HttpClient Jan 30 18:40:44 1. it's not deprecated, it just isn't being actively developed Jan 30 18:40:50 Styler2go: because HTTP evolved, so it's a bunch of shit stacked up on other shit Jan 30 18:40:51 2. HttpUrlConnection is very powerful Jan 30 18:41:23 if you are sensible you'll ignore both and use a standalone HTTP library Jan 30 18:42:43 Is it possible to tell Android to ignore it's built in versions of classes? Like httpclient? Jan 30 18:42:52 JakeWharton: Interesting -- on that note do you have any recommendations? Jan 30 18:43:14 marcab: https://github.com/square/okhttp Jan 30 18:43:19 cantido: i had similar problems putting my own build org.json Jan 30 18:43:20 JakeWharton: thanks much Jan 30 18:43:24 i am almost crying! :D Jan 30 18:43:28 cantido: i just went the simple way, rename it to org.json2! Jan 30 18:43:56 clever: yeah, stuff like that makes me feel bad ;) Jan 30 18:44:18 cantido: the libs on the system seem to take prio, even if the method i called is in my dex Jan 30 18:45:21 Why not use GSON for JSON though? manually writing parsers with the lowlevel built in JSON stuff is not my idea of fun Jan 30 18:45:45 cantido: does GSON still parse json?, i thought it was a slightly different standard Jan 30 18:45:47 marcab: http://code.google.com/p/basic-http-client/ is recommended by 'the google guys' Jan 30 18:46:09 https://www.youtube.com/watch?v=XKoWWi_0qGk&t=26m49s their opinion on httpclient vs. httpurlconnection Jan 30 18:46:19 clever: GSON deserialises json into objects Jan 30 18:46:22 clever: yes it parses JSON as that's its sole job Jan 30 18:46:44 cantido: that might work then Jan 30 18:47:36 clever: you'll like it Jan 30 18:47:54 cantido: part of the problem, is that the json has single character fields Jan 30 18:48:00 clever: until you have some crazy json you can't map.. but it's not as bad as XML with name spaces Jan 30 18:48:03 GSON lets you map those to full names, right? Jan 30 18:48:24 HAHAHAHA Jan 30 18:48:39 the file upload did not work because the php script had no roights to write in the uploads dir :D Jan 30 18:48:49 Styler2go: lol Jan 30 18:49:07 clever: can you give an example of the json? Jan 30 18:49:15 oh no... :D Jan 30 18:49:15 cantido: {"s":"Cnxtrader","c":"@A","m":"i havent done any speed. just scout strength and baron cap"} Jan 30 18:49:33 annotate your properties with @SerializedName then Jan 30 18:49:44 cantido: https://privatepaste.com/b0da685dfa is my current parser Jan 30 18:49:58 clever: ^ what JakeWharton said Jan 30 18:50:04 JakeWharton: some of the fields are packed, s contains 2 values Jan 30 18:50:18 and later on, some of them are bit-packed numbers in base 92 Jan 30 18:50:24 then use a custom JsonSerializer to unpack them to normal ttypes Jan 30 18:50:28 gson > jackson? Jan 30 18:50:36 that's a matter of opinion Jan 30 18:50:43 kk Jan 30 18:50:44 i'll have to try it out Jan 30 18:52:01 JakeWharton: and reflection to read those attributes will still be faster then org.json? Jan 30 18:53:01 might be a few ms slower but it's infinitely more convenient and sane and maintainable and readable and usable and... Jan 30 18:53:58 you'll write code that deals with JSON in 90% less time and take a 0.1% penalty on deserialization speed Jan 30 18:54:45 JakeWharton: yeah, i have noticed how JSON parsing is now taking over the cpu profile Jan 30 18:54:56 its in a background thread, but its making it hard to even see the main thread activity Jan 30 18:55:25 how much json are you parsing? Jan 30 18:55:37 cantido: usualy under 1kb, but sometimes 20kb or more Jan 30 18:55:46 are you constantly parsing json? Jan 30 18:56:11 cantido: yeah, every 10 seconds Jan 30 18:56:20 that's really not that much and will be very fast using either technique Jan 30 18:56:49 JakeWharton: ive optimized my ListView to the point that JSON is now using more CPU then the list Jan 30 18:57:19 clever: is the listview causing json to be parsed? Jan 30 18:57:35 cantido: nope, background thread polling on its own Jan 30 18:58:05 oh ok, I imagined you were triggering json parsing inside getView in the Adapter ;) Jan 30 18:58:45 cantido: the json gets inserted into sqlite and triggers notifyDataSetChanged Jan 30 18:58:56 then the list pulls it back out, based on what is currently on-screen Jan 30 18:59:12 but its often parsing json un-related to the list Jan 30 18:59:32 so it goes json -> memory -> sqlite -> memory Jan 30 18:59:44 yeah, i need to implement a cache for recently used objects Jan 30 19:00:02 Look at the LRUCache Jan 30 19:00:08 but all the cpu is getting eaten up just turning the JSON into a ChatMsg Jan 30 19:00:11 It's in the support library Jan 30 19:00:14 yeah, thats what i was thinking of using Jan 30 19:00:22 just wasnt sure how much id have to implement myself Jan 30 19:01:28 Guys, can you please tell me, why after i changed Icon (physicaly in res/drawable) for another slightly changed icon with the same size and 9 patch it will totally ruin whole allignment of buttons ? Jan 30 19:03:04 even if it is the same icon only with for example changed color , but same size (x,y) same and name. as soon as it is replaced with new one in View, it will all !randomly! align . Jan 30 19:04:17 clever: For stuff that doesn't work like Bitmap (on older versions of android) it should be pretty easy Jan 30 19:04:44 cantido: let me see if i can add LruCache... Jan 30 19:05:04 clever: you put stuff into it and it will eject stuff as the cache gets full, you have to make sure you aren't holding a reference to the ejected stuff so that it actually gets collected though Jan 30 19:05:32 cantido: yeah, nothing should be holding the references Jan 30 19:05:49 clever: I would get GSON working first, and see if that is any better than your custom parser Jan 30 19:06:04 Don't mix too many changes in in one go Jan 30 19:06:18 cantido: the GSON is used in many places, much bigger rewrite Jan 30 19:07:48 * cantido sees a problem tab full to bursting in clever's future Jan 30 19:08:54 4am, time for bed Jan 30 19:09:55 The Blackberry interviews on the BBC today made me want to punch their exec in the face :/ Jan 30 19:16:41 !seen belgianguy Jan 30 19:19:53 * brx_ is sick of eclipse breaking things Jan 30 19:27:33 intelliJ Jan 30 19:29:47 hi all, anyone tried to implement this? Jan 30 19:29:48 https://github.com/jfeinstein10/SlidingMenu Jan 30 19:29:51 in intellij? Jan 30 19:29:59 i have no idea how to do it.. Jan 30 19:30:51 hey guys Jan 30 19:31:06 is there any way I can write a service and track what's currently running in the foreground? Jan 30 19:31:38 anyone tried scribe-java btw? :p Jan 30 19:36:38 hey guys Jan 30 19:36:47 is there anyway I can know what is currently running in the foreground? Jan 30 19:37:44 question guys if i do a httpclient & httppost is there a way to keep the session data intact? Jan 30 19:38:05 so httpclient does a login, create a php session @ otherside Jan 30 19:38:09 and than i can retrieve data or? Jan 30 19:40:19 meetoman: take a look on this link https://groups.google.com/forum/?fromgroups=#!topic/android-developers/zH-2bovZSLg Jan 30 19:40:55 this could help you Jan 30 19:41:03 vandyk, thanks Jan 30 19:41:33 you're welcome. Hope it helps. Jan 30 19:43:06 Thanks Vandyk, now the second question Jan 30 19:43:09 how do I get a listner? Jan 30 19:43:18 otherwise I have to do a while loop ;) Jan 30 19:43:42 let me user rest room, brb Jan 30 19:45:34 this link will explain you the concept about listener in Android app http://www.geekmind.net/2010/10/android-implementing-your-own-listener.html Jan 30 19:46:21 to see a code sample how to implement it, take a look on this another link: http://stackoverflow.com/questions/5941960/android-how-to-implement-listener Jan 30 19:48:34 this is a good code sample too: http://stackoverflow.com/questions/2983250/custom-event-listener-on-android-app Jan 30 19:51:17 hi all Jan 30 19:53:46 hey Jan 30 19:53:55 can i use netbeans for android dev Jan 30 19:54:00 yes Jan 30 19:54:39 profligacy: nbandroid is the plugin you want to look at Jan 30 19:56:03 are there any serious disadvantages of going the netbeans route? Jan 30 19:56:19 you have to code yourself :) Jan 30 19:56:25 no fancy gui builders for android Jan 30 19:56:27 no manifest editor Jan 30 19:56:51 so ofc eclipse offers you a lot of more comfort editing android stuff, but for the disadvantage of you needing to use eclipse Jan 30 19:57:33 I use NetBeans since I began android development, and most of the support I don't really miss. Jan 30 19:57:52 intellij \o/ Jan 30 19:58:52 Good evening to all Jan 30 19:59:09 Could someone help me with gov interactive?have some question! Jan 30 19:59:49 anyone here happen to be from ireland? Jan 30 20:01:32 timroes: irrelevant question disregarded Jan 30 20:02:02 neh its even linked to mobile the next question :D Jan 30 20:02:58 No one here how know about interactive cov? Jan 30 20:05:40 switchgott: be more specific Jan 30 20:06:41 Sorry, i use a acer a700 and like to know, if i can compile my kernel with the neweset source code for interactive gov without code change? Jan 30 20:06:49 say this line is issued in SecureSMSActivity, it will end up launching SecureSMSActivity whenever this activity again when the action that receives this pending intent is called, right? PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, SecureSMSActivity.class), 0); Jan 30 20:07:26 because what I'm getting when that pendingIntent-caller function is called, is a duplicate activity ontop of the previous one where the function was called Jan 30 20:07:34 what I want is to kill that previous one Jan 30 20:08:10 is there something that I can set for the PendingIntent that will tell it to...well, I don't know, not do what it is doing? Jan 30 20:09:04 Guys :D Do you have the Problem with webViews too? if the webview have no content on one place there is no background color... Jan 30 20:12:49 timroes: your logcat script works without modification on OS X, Mountain Lion Jan 30 20:15:06 kakazza: thanks for the information :) Jan 30 20:15:08 good to now Jan 30 20:16:46 monsti do you have any information for me? Jan 30 20:20:52 Hi. When publishing application, does one usually have company to do so? If not, do I need to publish my application with my full name? I'm just curious how the legal things go if I publish application with some kind of nickname, without company behind it. Jan 30 20:21:07 no u dont have too Jan 30 20:21:28 i made some fatansy name and no problems till now Jan 30 20:21:50 but if they ask are u ca company say no of course Jan 30 20:22:02 anyone mind taking a look to see why my refresh button on line 37 stops my onScrollListener from working anymore after that on line 137. As long as I don't refresh, my onscrolllistener works as intended. http://privatepaste.com/c80e7cf9e7 Jan 30 20:22:11 That is what I was planning too. Not wanting to create company to publish application which may be easily forgotten to oblivion Jan 30 20:25:12 I'm writing Android app, which uses Camera, NDK and OpenCV(some 3rd party lib)… Jan 30 20:25:13 now at line#20, 21it uses 'Mat' type whose Java-implementation is provided by line#7, now is there some other way(direct) way to send such native type to C/C++ via ndk?? Jan 30 20:26:05 or in simple words, I don't want to use Java-wrapper of OpenCV…so can I direct interact with OpenCV written in C/C++ ?? Jan 30 20:30:06 yes? Jan 30 20:30:21 http://developer.android.com/tools/sdk/ndk/index.html look at the NDK if u mean that Jan 30 20:30:26 Styler2go: how..?? Jan 30 20:30:34 I'm specific about OpenCV Jan 30 20:31:13 i just know if u dont want java and need more "power" from the device, the ndk is what u want... Jan 30 20:31:34 maybe i am just missunderstanding you Jan 30 20:32:28 Styler2go: thanks mate, but I know that…my problem is how can one serialize/deserialize native objects..precisely for OpenCV. Jan 30 20:32:40 Styler2go: but yeah, thnx for inputs :) Jan 30 20:32:55 oh.. sorry .. :) Jan 30 20:33:17 anyone used scribe-java? :P trying to find how to do posts of tweets etc Jan 30 20:37:24 Uhm guys... i have a problem... i have a picture select intent and i want to upload the photo i selected. thats working great. but if i select a photo from another direcotry than the first tried directory, its not working... any idea? :D Jan 30 20:41:07 Styler2go: do it correctly Jan 30 20:41:42 funny ;) Jan 30 20:44:24 seems to be a php problem.... Jan 30 20:46:24 gosh Jan 30 20:46:39 its "error 1" which tells me to set the "upload_max_filesize" higher.. Jan 30 20:46:42 sometimes so easy... Jan 30 20:49:33 is it possible to have multiple AIDLs for one service? Jan 30 20:49:59 in the onBind method call, it doesn't really show the service which aidl the client is using Jan 30 20:54:57 sleepster: sure. This is actually an expected use case; your onBind method can return different things. Jan 30 20:55:16 it's assumed that if you have multiple possible values, the client will identify it somehow in the intent Jan 30 20:56:26 lov, ah I see Jan 30 20:56:33 from the service side though Jan 30 20:56:41 I am not sure what I should check in the intent Jan 30 20:56:47 there is a .getAction() Jan 30 20:56:49 well, you're the one providing the service Jan 30 20:56:53 you can define the spec Jan 30 20:57:05 different actions get different values, or however else you want to do it Jan 30 20:57:10 lov: but i dont think this works in practice Jan 30 20:57:14 ah I see. so I can make sure that they set the action correctly Jan 30 20:57:15 caveat emptor Jan 30 20:57:21 caveat hacker Jan 30 20:57:31 in other words, android used to cache the first binder returned Jan 30 20:57:36 thats all you'll ever see Jan 30 20:57:46 oh really! Jan 30 20:57:49 oh I see. hmm. that stinks Jan 30 20:57:56 when did that change? Jan 30 20:58:00 maybe I'm wrong about this Jan 30 20:58:05 i dont think it ever worked Jan 30 20:58:11 did it start working recently ? Jan 30 20:58:21 so the preferred way is to implement one service per AIDL? Jan 30 20:58:32 I have 6 :( Jan 30 20:58:53 is there a performance hit for doing this? The service will still live in the same process Jan 30 20:59:27 sleepster: well, you can try this https://groups.google.com/forum/?fromgroups=#!topic/android-platform/Sr1veDk3rUM Jan 30 20:59:44 but i thought there was a bug in the tracker, trying to find it Jan 30 21:05:49 is he android defect tracker down ? Jan 30 21:05:59 theres a bug in yur bugs Jan 30 21:07:15 maybe they're batch purging everthing Jan 30 21:07:20 one can only hope Jan 30 21:09:35 anyone know if it's possible to pay for the nexus 4 without google wallet? I don't have a credit card :( Jan 30 21:12:55 sonOfRa, I think you'll have to look at a 3rd party for this Jan 30 21:13:38 that's unfortunate. Is google not aware that in many european countries, credit cards are very uncommon? Jan 30 21:14:20 I know it's less than optimal, but they had enough trouble launching the N4 :P Jan 30 21:14:30 This isn't just an N4 issue Jan 30 21:14:34 this is the entire android market Jan 30 21:14:44 Gift cards, maybe? Jan 30 21:14:50 apps I can pay over my carrier, but not all carriers support this Jan 30 21:15:27 thanks g00s Jan 30 21:16:24 sleepster: try it and let us know; you may be able to do that before the bug tracker comes back up :P Jan 30 21:17:19 :) Jan 30 21:17:44 so the idea is that even though the target is the same for the intent, if the action is different, it might still invoke onBind Jan 30 21:17:46 sleepster: just make a local service, switch on some actionin the onBind intent Jan 30 21:17:46 ? Jan 30 21:18:17 i'm pretty sure i already tried that but … will be interested to know what you come up with :) Jan 30 21:18:39 this may also be related to the leaked binder bug, which i dont think was ever fixed either Jan 30 21:18:46 hmm. well actually I think it will be simpler to have several services Jan 30 21:18:46 so its a cached *leaked* binder :D Jan 30 21:18:58 for my implementation Jan 30 21:19:05 there you go Jan 30 21:19:08 I would hate for the client to have to typecast the object differently Jan 30 21:19:13 based on the action Jan 30 21:19:19 I could see quite a bit of bugs for that Jan 30 21:19:33 alrighty well thanks for the input g00s Jan 30 21:19:42 I guess my next research Item is how much overhead is there Jan 30 21:19:50 to have several different services Jan 30 21:19:53 someone good at5 mysql? could need a bit of help :-/ Jan 30 21:19:54 not much Jan 30 21:21:22 that's what I think too Jan 30 21:21:24 I'll be sure to test that Jan 30 21:21:26 though Jan 30 21:21:49 Does anyone have experience using a SearchWidget in an ActionBar? I'm trying to pass additional variables on a search through onSearchRequested() using an app data bundle, but the bundle is not getting passed to my search class. Jan 30 21:22:07 hmm. actually, I was planning to version my AIDLs too which means if I have SomeAIDLv1, SomeAIDLv2, etc. I would actually need a lot more services :( Jan 30 21:24:10 g00s: I don't know, I just assumed that it would start working :X Jan 30 21:24:17 perhaps you cannot actually have multiple binders from a service! Jan 30 21:24:50 hey google, here is a sane app lifecycle http://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.devguide/com.qnx.doc.native_sdk.devguide/topic/c_appfund_applifecycle.html Jan 30 21:25:06 and? Jan 30 21:25:24 Styler2go: what about mysql ? Jan 30 21:25:31 maybe #mysql would be better Jan 30 21:25:39 http://developer.android.com/reference/android/app/Activity.html here is androids cycle? :D Jan 30 21:26:05 i think i got it.. but i dont know if this is the clean way to do it^^ Jan 30 21:27:06 my impression of reading the bb10 app design guidelines, is that apps are pretty much just what one would expect on any modern OS: start, stop, you grab whatever memory you need, etc Jan 30 21:27:30 Styler2go: you forgot to mix in the service and fragment lifecycles :D Jan 30 21:27:57 :D Jan 30 21:28:08 g00s can u do mysql things? Jan 30 21:28:37 i want to combine the data from three tables Jan 30 21:29:22 Styler, you can do joins Jan 30 21:29:43 i did it this way right now: SELECT *, ( SELECT COUNT(*) FROM downloads WHERE download = video.video ) AS downloads FROM videos AS video ORDER BY downloads DESC Jan 30 21:29:54 but i need one more table and i dont know how to handle this... Jan 30 21:30:29 oh wait... Jan 30 21:31:34 got it Jan 30 21:31:37 i am a hero! :D Jan 30 21:33:26 Has anyone here worked with RevMob? Jan 30 21:33:31 I know, it's bad. Jan 30 21:33:37 to put ads in an app. Jan 30 21:37:59 OK, better question: if I need to pass an activity to a method in my class that extends Application, what do I do? Jan 30 21:48:53 JakeWharton: I am now running tape-sample. I choose "Upload Image", select one from the gallery. App says one upload pending. I click "Upload Image" again, choose another pic and all I ever get is one uploaded image, not the second one. Jan 30 21:52:54 Ah, I see. Both get uploaded (according to logcat), but the UI is only updated once Jan 30 21:54:57 And the uploaded images end up like that http://i.imgur.com/TGZnXM8.jpg :\ Jan 30 21:56:32 hi guys, is it possible to make a fragment zoom in based on an event like a button click? I know how to animate views for zooming but I just want to know if it is possible to apply that to a fragment Jan 30 21:57:07 KillmeSoftly: to the degree you can make a View zoom in Jan 30 21:57:57 okay so i should put the fragment in a container and then zoom that container right? Jan 30 21:59:06 ok, i misunderstood. Jan 30 21:59:34 kakazza: imgur changed their api recently Jan 30 21:59:37 probably broke the sample Jan 30 21:59:53 i assure you, as this library drives our payments capturing, the code works :( Jan 30 21:59:54 er Jan 30 21:59:55 :) Jan 30 22:00:15 Hmm, I see. Weird to see uploads where the images are only partly uploaded. Jan 30 22:00:18 a fragment container is a view, correct? so that said i should be able to zoom it... Jan 30 22:00:18 <_u2pop_> hello all Jan 30 22:00:28 <_u2pop_> is that true the phone nokia lumia 900 can be install android ? Jan 30 22:01:07 Btw, I saw the blog entry on velocity based signatures. Do you guys plan to open source that? I'd be really interested into seeing a more advanced Canvas/Drawing example than the one provided with the API samples. Especially Bezier curves. Jan 30 22:01:12 _u2pop_: wut Jan 30 22:01:25 are you JakeWharton with of nineoldandroids? Jan 30 22:01:26 <_u2pop_> g00s yes? Jan 30 22:01:32 KillmeSoftly: yes Jan 30 22:01:39 kakazza: I think the post had all you needed to implement it Jan 30 22:01:49 i just want to say thank you for all the tutorials you put up dude, really helped me a lot Jan 30 22:02:43 cool. glad it helped Jan 30 22:03:30 <_u2pop_> g00s you said yes? Jan 30 22:03:39 i did ? Jan 30 22:03:50 when calling post.clear() on line 38, it makes my setOnScrollListener break on line 65. The onScroll works fine until I call post.clear() http://privatepaste.com/2f2125fa24 Jan 30 22:04:11 <_u2pop_> then why you mention me? Jan 30 22:05:16 JakeWharton: Hmm, must have missed something then. Guess I was just hoping for a github repo I could just clone ;p Jan 30 22:05:50 ah, yeah there's no sample or anything like that Jan 30 22:06:02 there's a decent amount of code in the post that you could use to implement your own Jan 30 22:06:12 just need touch events and a Canvas basically Jan 30 22:06:17 I guess. Jan 30 22:06:54 Because the previous post about 'surgically invalidating' was really interesting too. Guess I'll have to put both together myself. Jan 30 22:06:57 Poor me! Jan 30 22:08:09 does the "go out and do stuff" in "AsyncTask is used when you need to go out and do stuff" also include sending an SMS? Jan 30 22:08:20 Does anyone have experience using a SearchWidget in an ActionBar? I'm trying to pass additional variables on a search through onSearchRequested() using an app data bundle, but the bundle is not getting passed to my search class. Jan 30 22:08:38 because I seem to be having trouble with the loader that is supposed to pop up whenever Send SMS is pressed, I don't know where to cancel it. Usually I would do that in onPostExecute() for the AsyncTask Jan 30 22:08:49 and in doInBackground() I would do whatever I had to do Jan 30 22:10:51 quick question... in gallery i have a handful of movies, and one porn movie. every movie except the porn movie has a preview image. how does gallery know the porn movie is porn so it can censor the preview? Jan 30 22:12:16 Question. I have a broadcast reciever, and it is listening for SMS recived. I can get it all down to the originating address and message body and stuff, but a little bit later, I need the "_id=" value for the SMS. Jan 30 22:12:32 I don't need to / don't want to go through the database each time for what I'm doing, is there any way to get that in the reciever ? Jan 30 22:15:18 ashes, the porn video is probably a different format and not caching a thumbnail Jan 30 22:17:02 I can't seem to find out if "startService" is reference counted.. meaning if I start my service, and someone else starts my service.. if they decide to stop my service, will it stay up? Jan 30 22:17:18 sleepster: the docs say that Jan 30 22:17:28 k. let me read again then :) Jan 30 22:17:28 no, it is not reference counted Jan 30 22:17:37 that's what I was afraid of Jan 30 22:18:36 i've never needed those semantics Jan 30 22:24:08 definitely use AsyncTask for what I was asking about above Jan 30 22:24:14 it's.....it's the truth. Jan 30 22:29:29 When is the best time to get assistance here? :P Jan 30 22:29:51 PST working hours Jan 30 22:30:11 the time is now Jan 30 22:30:35 g00s did u write world of goo Jan 30 22:30:43 no Jan 30 22:30:47 what is how much Jan 30 22:30:49 Makes sense, g00s Jan 30 22:30:52 world of g00 :) Jan 30 22:30:54 g00s shame Jan 30 22:30:58 lol Jan 30 22:31:24 to bad, its an awesome game hehe Jan 30 22:31:33 not that I've ever finished a mobile game Jan 30 22:31:39 jug6ernaut, the alient in star trek 6 talking to mccoy Jan 30 22:32:02 umm, ok Jan 30 22:32:28 i'll give this one more shot before I leave for the day. Anyone willing to take a look to see why post.clear() on line 38 makes my setOnScrollListener stop working on line 65? the listener works flawlessly until post.clear() is called. http://privatepaste.com/2740278782 Jan 30 22:33:40 The listener just stops, no errors? Jan 30 22:34:52 are u sure its posts.clear() and not something in ur asynctask Jan 30 22:35:37 ctrl+shift+f that thing :S Jan 30 22:35:39 str8uplinux: does it make your list have no items in it, and therefore not scroll? Jan 30 22:35:55 str8uplinux: also, you're doing a bunch of dumb things in that code, especially around your menu handling Jan 30 22:36:25 evanc: i'm open for suggestions. I am VERY new to this as you can probably notice Jan 30 22:36:30 in my broadcast reciever im trying to figure out: for(SmsMessage message : messages){ int msgID (How to get this?) Jan 30 22:36:40 str8uplinux: for starters, don't do string comparisons to figure out which menu item was click Jan 30 22:36:46 I can get everything but the ID it appears Jan 30 22:37:00 str8uplinux: secondly, this scroll listener is just to load more data? do that in the adapter (getView()) Jan 30 22:37:15 evanc: use onclicklisteners instead? Jan 30 22:37:37 str8uplinux: no, check the IDs or something that doesn't depend on user's locale... Jan 30 22:37:55 evanc: ok. that makes sense. Jan 30 22:38:11 evanc: yeah it is just to load more data from mysql/php Jan 30 22:38:36 evanc: i'm not quite sure how to use the adapter getView() in this case? Jan 30 22:39:35 str8uplinux: getView() gives you the position. If position is within N items from getCount(), then load more. (N = 5 or some other buffer) Jan 30 22:40:10 @Exano, can you use getIndexOnIcc? I'm not sure if the ID is also the sms index Jan 30 22:40:48 hi Jan 30 22:41:09 Hi audi Jan 30 22:41:26 evanc: does that mean i have to pull all the results in on the first query? Jan 30 22:42:02 I'm porting a C library for android that itself uses dlopen() to load so plugins. I put them to lib folder, but not sure where they are now on the target. Means: which path should I load with dlopen()? Jan 30 22:43:52 str8uplinux: it's your code; I have no idea Jan 30 22:44:02 str8uplinux: I do know that using a scroll listener for this is weird Jan 30 22:44:54 audi, try String libraryPath = getContext().getApplicationInfo().dataDir + "/lib"; Jan 30 22:46:03 could I then hard code the result on my C lib? Or may this differ from device and user? Jan 30 22:46:14 evanc: but wouldn't you have to use onScroll to know when to call getView()? Jan 30 22:46:16 do I have to get it dynamicly? Jan 30 22:46:26 This might differ Jan 30 22:46:41 So it's best to pass it over to your c lib Jan 30 22:47:20 for testing purposes, go ahead and hard code it, but you never know how the directory structure will change even with future versions of android Jan 30 22:48:42 Has anyone worked with a SearchWidget/View in an action bar? Jan 30 22:51:00 str8uplinux: you don't call getView; listview does that automatically Jan 30 22:51:31 I get /data/data/com.example.efl/lib, but if I look on the mobile with my explorer the data folder in root is complete empty Jan 30 22:51:36 is this normal? Jan 30 22:53:19 Yup Jan 30 22:53:38 @danada, I tried that, I got 0 each time :( Jan 30 22:54:03 @Exano, hmm, strange Jan 30 22:54:06 evanc: i guess i'm just confused on how it will know WHEN to load more results? When is it checking to see if it needs to load more results? Jan 30 22:54:12 I think, can't hurt to try again Jan 30 22:55:09 str8uplinux: on every call Jan 30 22:56:07 evanc: but i thought you said you don't call getView? (sorry i'm probably just confusing myself now, like i said, i'm just learning) Jan 30 22:58:15 str8uplinux: yes, you're confusing yourself Jan 30 22:58:30 go look at getView()'s documentation Jan 30 22:58:33 str8uplinux i am a listview. i wish to draw myself on screen. i call getView(count++) until all heights combined are bigger than my height Jan 30 23:00:10 xorgate: or until count == getCount() Jan 30 23:00:20 sure Jan 30 23:00:24 bye Jan 30 23:00:29 see you audi Jan 30 23:00:31 good luck Jan 30 23:02:45 Is it possible to pass a bundle on a search invoked by a searchwidget? Jan 30 23:06:25 Is it possible to get the currently running activity from within the Application class? Jan 30 23:10:24 jdawes: maybe something to do with Application.ActivityLifecycleCallbacks.onActivityStarted Jan 30 23:10:52 JakeWharton: Sorry to bother you again, but the sample says (in logcat) "Upload failed :( Will try again". When does it try again? Does it automatically do that? Do I have to schedule it? Jan 30 23:11:02 that's on you Jan 30 23:11:04 and you service Jan 30 23:11:20 Also, I tried fixing the sample app with the new API, but I get a "403" error. API key not valid anymore perhaps? Jan 30 23:11:30 maybe, we need a better example Jan 30 23:12:51 Yeah nope, when trying to recieve the ID of the sms in the broadcast reciever by usng getIndexOnIcc, I get zero. But it may be because it isn't there yet, because my broadcast goes first O.o Jan 30 23:13:11 Ok, I guess it's here https://github.com/square/tape/blob/master/tape-sample/src/main/java/com/squareup/tape/sample/ImageUploadTaskService.java#L52-L53 where I'd put the re-sheduling? Jan 30 23:13:24 As in, use a Timer or whatever to call executeNext() again? Jan 30 23:14:37 Using Eclipse and when I try to run as android I am getting an error that aapt cannot be found. The path to aapt is just missing a / Jan 30 23:14:46 I'm new with the android development environment and trying to figure out how I can fix this by explicitly configuring the path to aapt ... ? Jan 30 23:15:24 bzitzow, which OS? Jan 30 23:16:32 kakazza: yeah that sounds right Jan 30 23:16:36 i'll work on getting a better sample Jan 30 23:16:37 JakeWharton: I'd gladly help to write a different example or fix that one. Not sure how much you'd trust me with that after I came to you for help so much on this very topic ;) Jan 30 23:16:58 linux mint Jan 30 23:17:06 Mavrik: ^ Jan 30 23:17:16 bzitzow, x64? Jan 30 23:17:20 yes Jan 30 23:17:47 bzitzow, usually those "aapt not found" errors are because you're missing 32-bit libraries aapt/adb/etc. depend on Jan 30 23:17:55 usually fixed with "apt-get install ia32-libs" Jan 30 23:18:06 the path to Android SDK itself is set in Eclipse preferences under "Android" :) Jan 30 23:19:41 "ia32-libs is already the newest version." Jan 30 23:20:21 Mavrik: so ... I am trying with the latest adt-bundle download now to open the existing project and it just continues to load but never actually loads Jan 30 23:20:49 hmm Jan 30 23:20:56 did you grab eclipse from repos or from download? Jan 30 23:21:28 Mavrik: download Jan 30 23:22:10 Has something changed in how Bluetooth HIDs are handled in Android 4.2? Do they depend on the "UHID" driver now? Jan 30 23:24:53 clever: thanks for the tip, I'll look into it. Jan 30 23:27:47 and my other version of eclipse can open the project, but its the aapt path that is missing a slash between the $ANDROID_HOME and the platforms/tools directory ... however - I just opened eclipse again and built it just fine! WTF Jan 30 23:28:01 *wierd* no idea why it works now Jan 30 23:28:26 Eclipse ^^ Jan 30 23:28:41 yeah, restarting it fixes weird 'problems' Jan 30 23:31:22 hmm but if I do message.toString I think I pull the id Jan 30 23:31:27 well, part of it is the ID Jan 30 23:32:59 that might just pull the resource ID or something Jan 30 23:39:40 Exano, are you using a cursor to go through the messages? Jan 30 23:42:55 No I'm trying to avoid that, Danada Jan 30 23:43:01 if at all possible Jan 30 23:43:06 Why? Jan 30 23:43:13 Right now I only want a single text Jan 30 23:43:23 I dont really care about the whole list of em Jan 30 23:43:31 so I have a broadcast reciever that listens for SMS recived Jan 30 23:43:46 and then tells me the details with the name/number Jan 30 23:43:56 can't you still select one using a conditional query? Jan 30 23:44:39 probably actually Jan 30 23:44:59 just a shame its not already there for easy grabbing, I was wondering I was missing the obvious :P Jan 30 23:45:32 if you can use sql to select it then do something like: select * from messages order by _id DESC limit 1 Jan 30 23:46:00 Yeah that's what I'll do. Thank you my friend :) Jan 30 23:46:13 Good luck! Jan 30 23:46:15 Me and my laziness was hoping it'd be as simple as Msg.getSMSID() lol Jan 30 23:46:18 thanks :) Jan 30 23:52:36 Exano, any chance you've worked with search in any application you've made? Jan 30 23:53:42 Not particularly, I'm not going to lie, the most advanced thing I worked with like this is a high score screen Jan 30 23:54:18 lol Jan 30 23:55:39 aggh, this thing is driving me nuts Jan 31 00:18:45 Hello! Jan 31 00:18:58 How many people here have been to I/O in 2012? Jan 31 00:19:33 I wish Jan 31 00:19:38 I did. Jan 31 00:19:41 :D Jan 31 00:19:44 And it's funny Jan 31 00:19:50 I loved it Jan 31 00:19:57 I got there because of Chrome OS Jan 31 00:20:06 (Submitted a few patches) Jan 31 00:20:25 danada: I did a conditional query and got the ID no problem Jan 31 00:20:31 thanks :) Jan 31 00:20:38 hooray, glad it worked! Jan 31 00:20:58 Exano, it might be because there really is no ID associated with the message Jan 31 00:21:14 And that the id is only formed as the cursor queries the data Jan 31 00:21:38 yeah I understand, I think youre probably right Jan 31 00:21:57 the trick is the default SMS app uses that too, so the ID's are the same Jan 31 00:22:01 as far as I'm aware Jan 31 00:22:48 Are you going to io13, kaendfinger? Jan 31 00:23:04 Unfortunately no. Jan 31 00:23:17 But since I will be in this channel all the time with my IRC bouncer Jan 31 00:23:29 If anyone is in here a lot and IS going Jan 31 00:23:33 Keep me updated lol Jan 31 00:24:11 What is Freenode's policy on bots? Jan 31 00:26:56 as long as they're not annoying.. Jan 31 00:27:00 kaendfinger: bots which do what? Jan 31 00:27:36 Like EsperNET bots. Jan 31 00:27:56 that doesn't clarify anything Jan 31 00:28:00 what's an EsperNET bot? Jan 31 00:28:23 You know, !op, !voice Jan 31 00:28:23 etc Jan 31 00:28:39 those are worse than useless on freenode Jan 31 00:28:54 we have ChanServ and NickServ for that Jan 31 00:29:14 yeah Jan 31 00:29:30 But I have my own KenNet and it uses some better bots Jan 31 00:29:48 brb Jan 31 00:29:59 Setting up my IRC Bouncer in Freenode Jan 31 00:30:01 why are you asking #android-dev? go ask #freenode Jan 31 00:30:05 yeah Jan 31 00:30:08 I know Jan 31 00:32:06 evanc, have you ever worked with searchwidgets? Jan 31 00:32:39 yes, but I don't know if you can pass a Bundle or else I would've answered that Jan 31 00:33:13 sorry for pestering Jan 31 00:53:18 o/ Jan 31 00:54:31 I've a large NDK project that we're currently just using a build script to compile. I'd like to get this into Eclipse for a cleaner build setup and better Android debugging. Can I create a project based on an Android.mk file? Jan 31 01:16:51 Has anyone ever encountered "Camera error 1001" (no trace) on the Galaxy S3 before? Jan 31 01:17:52 nope Jan 31 01:18:46 using android in-app billing, how can i tell what currency the user is buying my product in? i can query billing for the product via the SKU, but it just returns back a "price" field that looks like "$0.99". no indication of whether that's USD, CAD, AUD.. etc Jan 31 01:23:37 Im using the compass sucessfully when the phone is flat... like you would put it down on a table... however I need the compass while taking a picture so the phone is not flat. When I do this the compass doesn't really work... how can I use the compass when the phone is in this position? Jan 31 01:24:19 the compass works fine Jan 31 01:24:30 the software doesn't understand it. Jan 31 01:24:52 what compass do you mean - from what program? Jan 31 01:25:00 or are you reading the sensors? Jan 31 01:25:08 ahhughes: get the orientation matrix for the phone Jan 31 01:25:43 SpeedEvil: yep Jan 31 01:25:52 as I said.. works fine when flat. Jan 31 01:26:03 just when upright it aint happy Jan 31 01:26:07 how are you computing the direction? Jan 31 01:26:40 you really need to look at the angle between gravity and the magnetic vector. Jan 31 01:26:42 there is an event[0] which is a float from -180.0 .. +180.0 Jan 31 01:26:50 0 == north Jan 31 01:27:29 I am unsure what android method of reading the sensors will give you a proper reading Jan 31 01:29:08 eh, more things to learn :) Jan 31 01:29:42 im probably wrong, but arent default apps' source code included in a rom's source code? Jan 31 01:30:24 Pyuruku: most of them yes Jan 31 01:30:39 Pyuruku: some of them can be included just as binaries, but mostly yes Jan 31 01:30:55 in my case, im looking through the SGS3 rom source, not finding anything interesting :S Jan 31 01:31:21 Pyuruku: what are you looking for? Jan 31 01:31:27 the camera app source code Jan 31 01:31:45 Pyuruku: look in packages/apps/camera Jan 31 01:32:15 im presented with two folders, kernel and platform Jan 31 01:32:21 both of which dont have a packages folder :S Jan 31 01:36:27 http://forum.xda-developers.com/showthread.php?t=1059024 Jan 31 01:36:38 guess samsung doesnt provide source to their applications : Jan 31 01:36:40 :/ Jan 31 01:37:31 Pyuruku: theres aosp code git clone https://android.googlesource.com/platform/packages/apps/Camera Jan 31 01:37:45 i know Jan 31 01:37:52 samsung is doing something differently Jan 31 01:38:06 and im not doing it in my app, which is causing a weird crash on the sgs3 Jan 31 01:39:07 Pyuruku: are you using the touchwiz camera by an intent? Jan 31 01:40:33 evanc: is this how I would use getView() to load more items as you explained earlier? http://privatepaste.com/28d6ff2b05 Jan 31 01:41:36 OMFG SpeedEvil this compass things very difficult. Jan 31 01:41:57 yes. Jan 31 01:42:09 I've only done it from raw sensors Jan 31 01:42:26 don't know how it works 'cooked' Jan 31 01:42:32 f2prateek_: no Jan 31 01:42:46 f2prateek_: custom camera activity in my application Jan 31 01:43:04 f2prateek_: just trying to take a picture out of the front camera but it fails with error 1001 Jan 31 01:43:22 the back camera works fine though... and this only happens on the gs3 so far Jan 31 01:44:21 Pyuruku: then you should be lookingbe looking at the sdk implementation, the camera app doesn't come into play Jan 31 01:44:42 i have looked at the sdk implementation Jan 31 01:44:43 Pyuruku: i'm not sure if they have their implementations of the sdk out though Jan 31 01:44:47 and i have pretty much copied it Jan 31 01:45:02 like ive said, its not a jelly bean thing Jan 31 01:45:12 i have a sgs2 with jb and it works perfectly Jan 31 01:45:16 same for a nexus with jb Jan 31 01:45:32 the sgs2 doesnt use touchwiz though Jan 31 01:45:33 Pyuruku: why are you looking at the app source then? Jan 31 01:46:07 i wanted to see the touch wiz camera app source to see if there is anyhthing special i need to dothat is not done normally for just plain jb Jan 31 01:46:20 because my code only fails on stock gs3s Jan 31 01:46:22 Pyuruku: ah ok Jan 31 01:46:36 out of the range of devices ive tested Jan 31 01:46:48 which includes gingerbread ics and jb Jan 31 02:22:34 guys, I have no java experience, no android dev experience and some python experience, I want to do a graduation project at college that basically involves two android phones, one sends a request for the other using bluetooth, the receiver then sends a request for a database to do a certain query, like deducting money from an account for example. So, my questions are: is it doable? and will I be able to learn android development and make the app i Jan 31 02:22:34 n under 2 months? notice that I tried to study from the docs but discovered that I need to know some Java, what do you guys think? Jan 31 02:23:53 look at the BluettothChat example Jan 31 02:24:13 Do you have any programming experience? I was able to publish my first app in about 3 weeks (working weekends and a few evenings) Jan 31 02:24:24 g00s: will do, thank you :) Jan 31 02:24:45 danada: beginner experience in python, no real projects or sth Jan 31 02:25:36 Then follow g00s advice Jan 31 02:26:05 danada: I am, thanks :) Jan 31 02:26:07 And try to pick up java syntax while working through the examples Jan 31 02:28:41 aha, the stuff I don't know are stuff like polymorphism, extends, interface and for example: public void sendMessage(View view), I have no idea what View view between the brackets means, doesn't look like a parameter"argument" to me Jan 31 02:31:54 view is the parameter, View is the type Jan 31 02:33:08 great, pretty easy, thanks Jan 31 02:33:43 maybe I was too put-off by the way the docs look like (cluttered) Jan 31 02:38:31 I gotta take off now guys, thanks very much for your help, have a great day :) Jan 31 02:39:57 hello room. Jan 31 02:40:05 channel* Jan 31 02:50:27 hello jerry_l **** ENDING LOGGING AT Thu Jan 31 02:59:58 2013