**** BEGIN LOGGING AT Mon Mar 31 03:00:00 2014 Mar 31 03:01:28 Is there a way to get/store (on the android device) the sound being played by the native FM radio app of an android device? Mar 31 03:02:22 Borgirius: usually not Mar 31 03:02:32 well, maybe by playing a bit with microphone Mar 31 03:03:24 private static Typeface getRobotoThin(final Context context) { Mar 31 03:03:25 if (mRobotoLightTypeface == null) { Mar 31 03:03:25 mRobotoThinTypeface = Typeface.createFromAsset(context.getAssets(), Mar 31 03:03:25 "Roboto-Thin.ttf"); Mar 31 03:03:25 } Mar 31 03:03:25 return mRobotoThinTypeface; Mar 31 03:03:25 } Mar 31 03:05:18 p_l... is there any audio buffer or so, where all media resources are processed? Mar 31 03:06:36 Borgirius: the thing is, in more than one device equipped with FM radio, the sound from the FM receiver *never* touches the "application processor" (i.e. where the Android runs) Mar 31 03:06:55 the driver and FM Radio app only setup tuner and mixer Mar 31 03:07:48 at least on the devices I dealt with that had FM Radio, the output of FM receiver was *physically* unaccessible to software Mar 31 03:08:02 (similarly to phone audio - phone, not media) Mar 31 03:10:07 I'm trying to programmatically add custom checkboxes/radiobuttons. The images add great but for some reason no text is appearing. Any idea where I'm going wrong? https://gist.github.com/guitarlover52/dd080d46083e9a9dad75 Mar 31 03:11:53 p_l.. and if I hypothetically develop an FM Radio app. In that case theoretically, could I save the received audio? Mar 31 03:13:07 Borgirius: ... I just said that the audio stream on many devices is *NOT* connected to application processor Mar 31 03:13:32 that means the only shot you have at recording it is hoping the microphone picks it up Mar 31 03:14:46 there were tricks around that on old qualcomm devices, because of single integrated SoC and Qualcomm for some reason exposing the buffers to application processor Mar 31 03:18:01 Thks a lot for the info, p_l : ) Mar 31 03:33:39 huh, well this is counterintuitive. so thats normal for android. i would expect onCreateOptionsMenu to be called before onStart(). since onStart is when the UI is visible Mar 31 03:34:24 Can anyonne help me with http://stackoverflow.com/questions/22753225/ondateset-interface-getting-a-stack-overflow-error Mar 31 03:38:22 g00s: onCreateOptionsMenu is called when the user queries to create the options menu, if i'm not mistaken. Mar 31 03:38:51 Question: I know how i can dynamicly add views to other views etc. But can I also add a view / layout straight from an xml which isn't part of the activity? Mar 31 03:39:19 ThomQ: setContentView() ? Mar 31 03:40:07 not sure if i missed the point Mar 31 03:40:39 zpr: no i want to add it to an already exsisting view. Mar 31 03:40:52 with addView Mar 31 03:41:03 yes, you get an Inflator Mar 31 03:41:14 ThomQ: use an inflator Mar 31 03:41:58 hmm. i dont understand how, its the action bar. Mar 31 03:42:01 Ahh, I can inflate multiple layouts into 1 view? Mar 31 03:42:26 inflator.inflate() returns a View Mar 31 03:42:31 you can use that view to do whatever you want with it Mar 31 03:43:22 g00s: it can be any options menu you want, including the one that inflates when you press the "back/settings" physical keY Mar 31 03:43:31 which often hides Mar 31 03:44:56 bankai_au there ? Mar 31 03:45:03 yerp Mar 31 03:45:09 yerp! Mar 31 03:45:51 so this is one thing i'm wondering if i can use RxJava for. i need to wait for a service to be bound, query that, and then with the result, update an ActionView in my action bar Mar 31 03:46:06 so far , just been using it to compose threaded things Mar 31 03:47:05 there are some timing dependencies. (1) status can't be gotten until serviceConnection exists; (2) actionView can't be updated until … whenever the hell android decides to call onCreateOptionsMenu Mar 31 03:47:27 its /this kind of crap/ i hate most about android Mar 31 03:47:37 along with the other crap i hate most about android , heh Mar 31 03:47:45 i wonder if Rx would help here Mar 31 03:47:47 so much hate Mar 31 03:48:05 i personally dislike java but enjoy coding for android Mar 31 03:48:31 g00s: to answer your question, i don't know :S i struggle a lot with rx :S Mar 31 03:52:30 otherwise its al a bunch of defensive programming, checking for null, and calling updateUi() whenever anything could have changed Mar 31 03:54:18 i bet somebody got around this my posting a delayed runnable :D Mar 31 03:54:25 pos Mar 31 04:13:18 thanks zpr btw Mar 31 04:25:22 so bankai_au , you may remember http://slid.es/yaroslavheriatovych/frponandroid/ Mar 31 04:25:57 click > once, V twice - what we're trying to avoid Mar 31 04:26:24 last slide on the bottom is what i'm aiming for Mar 31 04:44:36 smali files are a pain Mar 31 04:48:08 JesusFreke those are fighting words Mar 31 05:01:26 g00s, simple answer, never use bound services unless ipc is involved Mar 31 05:02:23 as for solving that problem, I can use two promises and join or sequence them easily Mar 31 05:02:59 i'm sure rx can do it too, probably using the same .join() … just have to adjust my thinking to a dataflow way Mar 31 05:03:49 and rx java isn't remotely functional, just reactive Mar 31 05:07:04 hm, whats this rxjava-promises library Mar 31 05:07:43 could be a copycat futures lib Mar 31 05:08:22 if copycat means implementing Promises/A+ i suppose Mar 31 05:08:40 spring reactor had promises but i couldn't get it to work on android Mar 31 05:09:13 No idea what that is Mar 31 05:09:55 you can just use my future/promise implementation Mar 31 05:10:25 I haven't updated my gist with some bugfixes, but the concept is sound Mar 31 05:11:03 https://gist.github.com/pfn/9487660 Mar 31 05:14:57 seems like there is a lot of prior art here. i'm unfamiliar with promises Mar 31 05:15:03 i guess this laibrary https://github.com/CodeAndMagic/android-deferred-object Mar 31 05:15:10 inspired this https://github.com/jdeferred/jdeferred Mar 31 05:17:07 i think i need to understand the concept better Mar 31 05:18:05 all this stuff seems odly wrong in java ;) Mar 31 05:19:45 pfn i'll have to take a look at your gist; whenever i see List> i think .. rx Mar 31 05:20:34 Promises in Java? I still don't know why I need them in javascript Mar 31 05:21:02 i think for chaining callbacks right ? Mar 31 05:22:02 yah, but js did that already? Mar 31 05:22:38 hm, dunno Mar 31 05:23:14 callbacks obscure logic badly enough as it is Mar 31 05:24:09 as least the way js does it Mar 31 05:24:14 someone please explain to me how to pack a boot.img I have a ZImage and ramdisk.img Mar 31 05:24:29 Magmas read topic, please Mar 31 05:24:59 tl;dr try #android-root Mar 31 05:25:14 mean Mar 31 05:25:19 ty Mar 31 05:26:12 capella the mess i got into was: onCreateOptionsMenu() inflated a menu with an ActionView in it. I needed to update that based on whats goin on in a service. one gets a reference to view there. before then, you can't access. but the timing with regards to other callbacks is undefined in the docs Mar 31 05:26:41 i thought onCreateOptionsMenu would get called before onStart Mar 31 05:27:02 maybe it kinda sometimes gets called before onResume (who knows?) Mar 31 05:27:28 mmm ... not until it's needed / instantiated I thought ... Mar 31 05:27:40 well the actionView is always in the AB Mar 31 05:27:47 showAsAction="always" Mar 31 05:28:17 so it show show "along with its fragment" a little before / after whatever Mar 31 05:28:32 *should show Mar 31 05:30:11 maybe i will set its value in inPrepareOptionsMenu Mar 31 05:30:15 g00s: i think i may have cleaned up my code neatly to avoid leaks Mar 31 05:30:17 :D Mar 31 05:30:25 jareddlc i doubt it, ha ! Mar 31 05:30:28 XD Mar 31 05:30:44 probably, but atleast im not saving the context directly Mar 31 05:30:47 :) Mar 31 05:30:48 :) Mar 31 05:30:49 maybe i am indirectly Mar 31 05:31:09 capella so, inPrepareOptionsMenu i can update the actionView .. but what if the service hasn't bound :| Mar 31 05:31:18 so , i just kicked the can down the road Mar 31 05:32:08 in the past, i would have put an updateMe() in onPrepareOptionsMenu and onServiceConnected() which checked both conditions were true, and then updated … but thats sucks Mar 31 05:32:55 Oh, heh - I've done that in code Mar 31 05:33:02 and i think thats what most devs do Mar 31 05:33:09 which results in … spaghetti Mar 31 05:33:34 Yep ... And I object to the suggestion when my reviewer made it, but there wasnt anything better Mar 31 05:33:47 I wrote it, he signed it Mar 31 05:39:26 Nilium i think i need to make a Dash RxJava docset Mar 31 05:39:45 looks like there is a tool to suck up javadoc Mar 31 05:40:07 Yep. Mar 31 05:40:21 Though in Dash 2.0, you can just download any docset off of Maven Mar 31 05:41:16 so .. if rxjava is on maven, it will just work ? Mar 31 05:41:22 mavenCentral Mar 31 05:41:28 Only if you download the docset. Mar 31 05:44:01 I'm trying to add an ad to my app and although it displays fine, the rest of the screen is black! How do I get it to display along with my app? Mar 31 05:45:08 thats a pretty handy app right there Mar 31 05:54:40 Nilium may i ask you; since you seem to be quite polyglot and probably know a technique i'm missing from my imperative tunnel vision. if you had one thread, and you needed to complete an action once all of several events occurred, how would you do that ? Mar 31 05:55:08 Semaphore. Mar 31 05:55:09 obviously, looking for something shnazzy like promises, or whatever you can think of Mar 31 05:55:16 same thread ? Mar 31 05:55:18 g00s, sure, some similar concepts apply, sure Mar 31 05:55:38 Ah. Count. Mar 31 05:55:39 my implementation is just derived from Twitter futures Mar 31 05:56:36 countdown latch in java Mar 31 05:56:58 i'd use that if events were coming from other threads Mar 31 05:57:08 and i needed to wait until they were done Mar 31 05:57:20 single thread... Mar 31 05:57:27 He's apparently doing it single-threaded, in which case, keep a running count. Mar 31 05:57:47 Or a set of flags. Mar 31 05:57:53 otoh, its a state machine with checks / guards Mar 31 05:57:58 Yes, in a single thread it should be obvious Mar 31 05:58:29 i thought somehow i could use promises in a way i'm not familiar with Mar 31 05:58:53 basically, to chain events (when x is done, y is done, z is done) then -> do that Mar 31 05:59:16 but these aren't futures Mar 31 05:59:24 just plain old callbacks on the main thread Mar 31 05:59:28 from android Mar 31 05:59:53 basically, trying to do this without global state Mar 31 06:00:04 (counters, flags, checking if things are null, etc) Mar 31 06:00:51 you can still treat them as promises, but simple counters and flags are much more straightforward to comprehend Mar 31 06:01:37 ok Mar 31 06:02:45 I feel like having a bowl of shredded wheat. Mar 31 06:02:50 if I wanted to use a promise I'd just model it as a Promise Mar 31 06:02:53 And now I miss being able to eat grapenuts.. Mar 31 06:03:08 gluten intolerance? Mar 31 06:03:24 Fractured tooth. Mar 31 06:03:35 oh no ! bite how ? Mar 31 06:03:39 uh Mar 31 06:03:54 Was going to get it crowned but the nerve went all haywire so I had to give it time to recover Mar 31 06:04:18 i almost broke a tooth on a rock in my lentils Mar 31 06:04:24 now i sort my lentils Mar 31 06:04:25 Also had to pack said tooth with a sedative filling, which has helped a lot Mar 31 06:05:05 At any rate, should be getting something set up to get the tooth crowned soon, which makes me slightly nervous because it means grinding down my tooth and putting a metal cap on it Mar 31 06:05:33 But there's no other real treatment for a fracture and it's probably just putting off the inevitable loss of the tooth Mar 31 06:06:34 seems like medline often has some adhesive / therapy to damage teeth but .. by dentist never knows about it Mar 31 06:06:44 to fix damage teeth Mar 31 06:07:11 Eh, there's no fixing teeth Mar 31 06:07:21 like this stuff that prevents bacteria from growing on it, would seem to make cleanings thing of the past Mar 31 06:07:28 are we talking about british people Mar 31 06:07:30 Nilium they are close or able to regrow teeth Mar 31 06:07:33 and their teeth Mar 31 06:07:41 or is it your dogs Mar 31 06:07:53 yeah, my dogs teeth need a cleaning Mar 31 06:07:57 doggy breath for sure Mar 31 06:08:09 thepoosh would you like to volunteer ? Mar 31 06:08:15 for what? Mar 31 06:08:18 Not the English, though I have teeth about as bad as them Mar 31 06:08:38 english teeth must be a thing i don't know about Mar 31 06:08:39 g00s: what am I volunteering for ? Mar 31 06:08:51 thepoosh scrape tartar off my dog's molars Mar 31 06:09:09 gotta get under the gum line ! Mar 31 06:09:14 YES! Mar 31 06:09:16 and keep your fingers Mar 31 06:09:17 bring them over Mar 31 06:10:21 bankai_ today is our dogs' lucky day ! Mar 31 06:10:35 One upside to getting a crown, though, is I get a partially metal tooth, which therefore puts me on the path to being a cyborg. Mar 31 06:11:06 Also since it's a far-back molar i don't have to care about what it looks like, which is nice. Mar 31 06:12:45 Nilium one step closer to becoming Dr Claw Mar 31 06:12:50 you already have the cats Mar 31 06:15:26 g00s, anyway, for best sanity avoid binding services Mar 31 06:15:48 treat them as singleton use any sort of event notification Mar 31 06:17:40 Meh, we have no milk in the house Mar 31 06:17:40 Shredded wheat plans are gone. Mar 31 06:18:13 pop "go to shop" on the top of your stack Mar 31 06:18:23 er, push... you know what I mean Mar 31 06:18:28 pfn i try too .. when i can. i'm using localservice setup overlapped with start/stop service atm Mar 31 06:19:25 no aidl Mar 31 06:20:26 ditch local service Mar 31 06:20:34 No binders Mar 31 06:21:53 pfn are you recommending the technique in i think email , "DummyService" basically an empty service, they just start / stop to mark the process as doing something Mar 31 06:22:33 dunno, I suppose maybe Mar 31 06:22:55 over the years i've seen a lot of different stykes Mar 31 06:22:57 *styles Mar 31 06:22:59 all most people really want out of services are the life cycle and nothing else Mar 31 06:23:24 there is absolutely no reason to use binders except for ipc Mar 31 06:24:32 set your instance oncreate and clear it ondestroy Mar 31 06:24:33 it can kind of serve as a reference counter. i have 3 fragments which bind to the service. if its not started, then it simply gets destroyed when they all unbind Mar 31 06:24:41 yeah, i have seen that Mar 31 06:25:12 as if reference counting is a hard problem Mar 31 06:26:04 but if the service is started of course, even if they all unbind its still going Mar 31 06:26:14 yeah, i'll see if i can simplify this more Mar 31 06:26:19 * g00s likes simple Mar 31 06:26:40 * Nilium likes fires because they're warm Mar 31 06:26:45 binding services is the opposite of simple Mar 31 06:27:07 Nilium plus, its cold were you are :) Mar 31 06:28:14 About 30f right now, so all things considered, it's warmer than normal Mar 31 06:32:12 I still can't think of a reason for multiprocess in a single app on modern devices Mar 31 06:32:27 heap size used to be an issue Mar 31 06:32:57 maybe fault isolation ? Mar 31 06:33:13 security, hmm Mar 31 06:33:41 I can't get my app to work with both the new maps and the old google maps. Mar 31 06:33:50 (in gradle with android studio) Mar 31 06:33:53 pfn you are talking about multiprocess thing in manifest, right ? Mar 31 06:33:58 fault isolation is a potential reason if using crashy 3rd party libs beyond your control Mar 31 06:34:26 if I add the maps.jar manually I get it to compile but then I get the error: Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation Mar 31 06:34:41 g00s, yes Mar 31 06:34:52 when I go to an Activity with the old map Mar 31 06:35:25 any ideas? Mar 31 06:37:09 are there any drawbacks to turning on optimization in proguard for release builds? Mar 31 06:38:07 your app will run faster Mar 31 06:38:08 and be smaller Mar 31 06:38:09 :P Mar 31 06:38:27 oh no! Mar 31 06:39:34 there used to be bugs with proguard & dx when using different optimization levels Mar 31 06:39:48 i think i could use 1 without stuff exploding Mar 31 06:39:51 2 exploded Mar 31 06:40:16 mooo :) Mar 31 06:40:39 canadiancow anyone going to do a talk on content providers at I/O :D Mar 31 06:40:46 no idea Mar 31 06:40:59 did they choose the talks yet? Mar 31 06:41:12 i'm guessing not, the website doesn't say anything Mar 31 06:41:17 no idea Mar 31 06:44:39 I've always had problems enabling proguard optimizations Mar 31 06:45:42 i've found proguard tricky when you need to add some incantation for a library; hopefully they say what you need; otherwise its up to you Mar 31 06:46:02 it's fairly easy in gradle, you just change the proguardFile property to getDefaultProguardFile('proguard-android-optimize.txt') Mar 31 06:46:15 most libraries are easy except for reflection Mar 31 06:46:19 the tricky part was making sure it doesn't screw up some libraries Mar 31 06:46:24 yeah, like Gson Mar 31 06:48:12 good morning Mar 31 06:50:54 Developing with fragments here. For some reason on older androids (~2.3) when a fragment is switched into view the edittext in a fragment doesn't allow for input. Keyboard sometimes appears, sometimes it doesn't, even when it does no text can be put in, when it doesn't the edittext is in focus but no keyboard appears. Mar 31 06:51:32 In this peace of code, does Picasso running in UI Thread? Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView); Mar 31 06:51:41 no Mar 31 06:52:12 even I am running in Main(UI) Thread, it will use different thread? Mar 31 06:52:24 you must call it from the main thread Mar 31 06:52:28 it will always use a background thread Mar 31 06:53:44 Strange, my android killing my app because of timeout... maybe, I did wrong somewhere else . Thank you Jake! Mar 31 06:54:11 any ideas about my problem? Mar 31 06:54:47 hello Mar 31 06:55:23 im trying to use the infowindowclicklistener on my map but is not working, im getting this message: The method setOnInfoWindowClickListener(GoogleMap.OnInfoWindowClickListener) in the type GoogleMap is not applicable for the arguments (new OnInfoWindowClickListener(){}) any idea? Mar 31 06:55:52 nope Mar 31 06:55:55 :P Mar 31 06:57:05 hello? Mar 31 06:57:17 is anyone here? Mar 31 06:58:45 hello? Mar 31 06:58:52 No. Mar 31 06:58:52 The user list is clearly empty. Mar 31 06:59:16 so why is it quiet? Mar 31 06:59:26 shhhh! Mar 31 06:59:27 noone is writing here. Mar 31 06:59:51 i have problem witch AppStateManager Mar 31 07:00:05 that is (com.google.android.gms.appstate.AppStateManager) Mar 31 07:00:18 for cloud saving game state Mar 31 07:01:44 wow...this plase is useless Mar 31 07:01:52 no coversation at all Mar 31 07:01:54 is not, maybe is because of the hour Mar 31 07:02:20 ranma1988: you haven't even asked a question yet Mar 31 07:02:21 in 9:00 im in europe. Mar 31 07:02:34 people here usually helps me when they are availbale Mar 31 07:02:37 also, this is IRC, people will response when they can Mar 31 07:02:47 well in america is lik 1am-ish Mar 31 07:02:55 it's not a support line, don't act like people owe you something Mar 31 07:03:19 ok then Mar 31 07:06:18 barbs: erm... I think ranma1988 has the #android-dev Pro subscription Mar 31 07:06:30 woowowow Mar 31 07:06:30 :ranma1988 what is your question? (Can you write in one line w/o enters? And provide your code via pastebin) Mar 31 07:06:34 do you get that with a commonsware subscription ? Mar 31 07:07:00 nm mark isn't here, he's on SO Mar 31 07:09:05 omg the commonsware book is 2600 pages Mar 31 07:09:25 im getting AppStateManager databuffer data leak while using 'AppStateManager.update(getApiClient(), 0, data);' Mar 31 07:09:47 how do i close AppStateManager databuffer ? Mar 31 07:10:46 i dont know, if its something owned by AppStateManager, it would be good design if it managed the lifecycle of that object. if its getting leaked, maybe its a bug, perhaps file a bug report Mar 31 07:11:18 thank you Mar 31 07:11:45 is it possible to open a Marker in GoogleMaps app? I want to click on the infowindow and open that marker in the maps app for further features Mar 31 07:12:54 ranma1988 hm, out of curiosity i looked at the docs Mar 31 07:13:21 not clear if it copies the byte[] Mar 31 07:14:02 umm..I dont know this Mar 31 07:14:29 by dock you mean: https://developers.google.com/games/services/android/cloudsave Mar 31 07:14:43 http://developer.android.com/reference/com/google/android/gms/appstate/AppStateManager.html#update(com.google.android.gms.common.api.GoogleApiClient, int, byte[]) Mar 31 07:15:32 anyhow i haven't used these apis Mar 31 07:16:04 :JakeWharton in Picasso, there is anyway to add listener on completion of download? So I could hide my progress bar when it is done? Mar 31 07:16:07 should i somehow free the byte[] ? Mar 31 07:16:12 kamol: second arg to into Mar 31 07:16:21 Developing with fragments here. For some reason on older androids (~2.3) when a fragment is switched into view the edittext in a fragment doesn't allow for input. Keyboard sometimes appears, sometimes it doesn't, even when it does no text can be put in, when it doesn't the edittext is in focus but no keyboard appears. Mar 31 07:16:34 ranma1988 i'd use MAT to see the root of the leak Mar 31 07:16:45 what is MAT? Mar 31 07:16:50 or whatever the cool tool is these days Mar 31 07:17:22 http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html Mar 31 07:17:26 Memory Analysis for Android Applications? ow... im real nob.. Mar 31 07:17:28 :JakeWharton you are replying so fast... are you robot? :) thank you a lot! Hahaha Mar 31 07:17:42 just efficient Mar 31 07:18:13 I have a feeling his IRC client alerts him whenever someone mentions one of his libraries (e.g. Picasso) :) Mar 31 07:18:19 that too Mar 31 07:23:28 * alex_PP makes note to discuss small swords, simpsons characters and cubism more often Mar 31 07:23:35 g00s ok im lerning new thing.. Mar 31 07:23:44 thank you for help! Mar 31 07:24:17 yw Mar 31 07:32:23 its very annoying that Switch.setChecked() casues the onCheckChangeListener to fire Mar 31 07:32:56 should be Switch.setChecked(boolean isChecked, boolean selfNotify) Mar 31 07:33:23 It's even more annoying that SwitchPreference is broken. Mar 31 07:33:39 is switchpreference broken? Mar 31 07:33:43 i haven't used it Mar 31 07:34:06 https://code.google.com/p/android/issues/detail?id=26194 Mar 31 07:34:27 Yep, known issue. Has never been fixed. Mar 31 07:35:03 #12 fixed camera ui on 4.3 Mar 31 07:35:03 thanks Mar 31 07:35:07 ha Mar 31 07:36:05 yeah, it would be … very helpful and courteous, that somehow the external defect tracker got more info from their internal one after triage Mar 31 07:36:29 seems like what we have here, is failure to communicate Mar 31 07:40:28 yay just got my new phone well .. new to me Mar 31 07:40:32 the lg g2 D802 Mar 31 07:40:34 win :) Mar 31 07:40:45 :) Mar 31 07:41:05 now all it needs .. is to be rooted and rommed :) heh Mar 31 07:41:20 g00s, the problem with OS bugs, is even once they're fixed there's still so many devices out there that aren't si you still need to work around them Mar 31 07:41:22 :( Mar 31 07:41:34 lg g2 Mar 31 07:41:40 alex_PP yeah :( Mar 31 07:41:41 whoops, wrong window Mar 31 07:42:57 cant get nexus devices in my country LG doesn't import them for some reason Mar 31 07:43:02 so i have to make due with the G2 Mar 31 07:43:34 looks nice Mar 31 07:43:43 not sure about the volume rocker Mar 31 07:44:23 its not bad Mar 31 07:44:31 its not in the way like the S3 one is Mar 31 07:44:54 so i dont accidentally click it while holding the phone in landscape to watch youtbue Mar 31 07:44:57 youtube even Mar 31 07:45:56 where are you lemonxah Mar 31 07:45:57 ? Mar 31 07:46:02 south africa Mar 31 07:46:06 cool Mar 31 08:56:10 Hello, my app has a user reported bug on the Galaxy Tab 2, however we don't have that device here for testing. Is there a way I can emulate that specific device? Mar 31 09:03:46 Syzygy you can get a better report from them so you can reproduce it or se what the issue is ---- or, you can sign up to a testing service that has that device Mar 31 09:05:04 i'm sure you knew that already ;) Mar 31 09:05:26 hey everybody Mar 31 09:05:49 i have a common service which i want to start with different intent attributes Mar 31 09:06:27 presently i start the IntentService with new Intent(context, MyIntentService.class) Mar 31 09:06:28 It's a reminder, so there's no crashlog, all I know is that the our reminder is just not doing anything at all. Guess I'll have to talk to my boss if we can either get that device (unlikely with 1 user on that device according to google) or sign up to a testing service Mar 31 09:06:36 and other params with i put in the intent Mar 31 09:06:48 this is a common service which i run in 2 places Mar 31 09:07:25 the problem is that if one person tries to run this intentservice and the other calls stopservice() , then it stops the service Mar 31 09:07:34 how can i avoid this ? Mar 31 09:07:53 how can i start the same service with different attributes Mar 31 09:08:12 for different operations Mar 31 09:08:58 Syzygy also you know alarm manager changed a little in 4.4 right ? Mar 31 09:09:19 if you are using that for the reminder Mar 31 09:09:31 I didn't know, but I'll look into it, thanks for the hint. Mar 31 09:09:49 yeah, things are not exact now - unless you use a certain method Mar 31 09:09:50 User is running 4.2.2 though Mar 31 09:10:05 ok Mar 31 09:10:33 hi g00s . can you please tell me how can i run an IntentService which handles multiple requests with differnt intent params ? Mar 31 09:10:58 sunny_slls i dont see why there is an issue. nobody should be calling stopselvice. it does that Mar 31 09:11:31 g00s: ya but i have a scenario where i have to do the stopService implicitly Mar 31 09:12:03 then make your own service ... Mar 31 09:12:10 try something like goro Mar 31 09:12:16 Hello , I am new to android dev , creating new Activity is equivalent to creating new class? Mar 31 09:13:37 g00s: making my own service means ? Mar 31 09:15:12 how can i create new graphical layout for second activity , anyone can help? Mar 31 09:18:24 Spl0it_S4in7, you need a new xml layout file for the second activity Mar 31 09:19:39 okay , I just add second xml and then how can i link second class to that xml? Mar 31 09:20:24 The same way as you did with your first activity Mar 31 09:20:38 um , when i created first one it was already there Mar 31 09:21:49 if you're using an IDE it should create the necessary code in the second activity as well, if not, just copy the code over and change the code for your new activity Mar 31 09:22:08 specificall setContentView(R.layout.second_activity); Mar 31 09:22:26 I am using eclipse and I added a new class named activity2.java and then created a new xml layout Mar 31 09:22:48 You should be able to create a new Activity rather than a new class Mar 31 09:24:21 although as long as you include the correct code it shouldn't make a difference Mar 31 09:25:03 hmm gotcha :) thanks Mar 31 09:26:06 np Mar 31 09:27:05 What is the correct way to create a tag using the Tag.CREATOR ? This doesn't seem to work : https://gist.github.com/daneoke/99c1ff278addd642bfeb Mar 31 09:27:49 Hi all, I have a Fragment with a camera preview. I can detect NFC, which start an activity again but i ignore the intent if activity is present. But when I detect NFC, the camera preview is black for 1 second, what can be the problem of that? Mar 31 09:29:56 HttpPost seems to be causing this, in some cases: “Channel is unrecoverably broken and will be disposed!" Mar 31 09:46:10 I got an newIntent on my Activity, but first onPause is called, then onNewIntent got triggered, but when the activity is present, onPause is called too, is it possible to keep the 1st activity alive without onpause? Mar 31 10:02:05 Don't know if anyone responded yet, but I'm having trouble simulating an NFC tag : https://gist.github.com/daneoke/99c1ff278addd642bfeb Mar 31 10:02:41 Developing with fragments here. For some reason on older androids (~2.3) when a fragment is switched into view the edittext in a fragment doesn't allow for input. Keyboard sometimes appears, sometimes it doesn't, even when it does no text can be put in, when it doesn't the edittext is in focus but no keyboard appears. Mar 31 10:03:58 Kulverstukas can you hack something like this http://stackoverflow.com/questions/2403632/android-show-soft-keyboard-automatically-when-focus-is-on-an-edittext Mar 31 10:04:02 How to position textview ? Mar 31 10:04:31 Spl0it_S4in7 read the documents Mar 31 10:05:31 Kulverstukas several things pop out in that page, also check the bit Mar 31 10:06:29 for NFC detection, I got a newIntent but I want to keep my activity alive, try to use enableForegroundDispatch but I still got onPause on my activity, is this normal? Mar 31 10:06:36 request focus doesn't work :/ Mar 31 10:06:57 thing here is that the focus is gained, but the editbox doesn't accept text Mar 31 10:07:21 is it some crappy phone, or happening in the emu ? Mar 31 10:13:04 g00s , in eclipse i could have dragged and dropped is there any other way to do in xml ? Mar 31 10:17:00 emu doesn't work on this computer, too slow. It is happening on a system, doesn't depend on a phone g00s Mar 31 10:17:07 android 2.3-2.4 Mar 31 10:27:37 Spl0it_S4in7, http://developer.android.com/training/basics/firstapp/building-ui.html this is a fairly good resource Mar 31 10:28:26 worth following through all the way Mar 31 10:36:59 Has someone here tried working with ScrollViews overScrollBy function? I'm trying to display something by changing the margin by the deltaY this function utilizes, but the values when overscrolling and when scrolling back to normal does not seem to match up... any recommendation out there on how to fix that? Mar 31 10:39:46 Spl0it_S4in7: layouts. Then layouts Then read about layouts. Mar 31 10:40:15 yeah thanks gotcha android:layout_margin Mar 31 10:40:19 What's the "correct" way to deal with AsyncTask Results? i.e. what do I do if the referenced activity gets destroyed while the task is executing? Mar 31 10:40:41 or hidden, even. Doesn't even need to be destroyed Mar 31 10:46:53 sonOfRa see hackbod http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something Mar 31 10:48:36 yeah, that's looks like something I had in mind... looks odd Mar 31 10:53:39 So, if the Activity gets destroyed after the check for null, I still get a nullpointerexception? Mar 31 11:00:59 I got one more question , if i get some data in form how do i parse that to a url Mar 31 11:01:27 like i got some data named "random" and i want to send it to server by GET request Mar 31 11:01:44 http://server.com/index.php?data=random Mar 31 11:02:43 Spl0it_S4in7: check out HttpClient class Mar 31 11:03:00 thank you sir :) Mar 31 11:03:55 is it normal for the android emulator to take AGES? Mar 31 11:04:09 i mean it hasn't even booted yet Mar 31 11:05:23 Hey Guys, how can I get the file path from a file in the assets folder? Mar 31 11:07:04 tstivers: use genymotion instead Mar 31 11:13:11 Click66, usually via R.folder.filename Mar 31 11:17:05 Click66: the path is relative within the apk file:///android_asset/RELATIVEPATH where RELATIVEPATH is the path to your resource relative to the assets folder. Mar 31 11:20:27 since when is 120mb lightweight... Mar 31 11:24:51 somebody experience with nfc? Mar 31 11:29:55 A little, why? Mar 31 12:01:59 I'm trying to programmatically add custom checkboxes/radiobuttons. The images add great but for some reason no text is appearing. Any idea where I'm going wrong? https://gist.github.com/guitarlover52/dd080d46083e9a9dad75 Mar 31 12:03:43 breakpoints and debug Mar 31 12:18:11 Testing an IRC client so I may come and go for a bit. So far I don't like the clients for Android. Mar 31 12:19:22 gee that's not inconsiderate at all Mar 31 12:33:46 how do i integrate a lib like this into my android studio project? https://github.com/jdeferred/jdeferred Mar 31 12:50:38 does anyone know how to bring up a popup menu for settings when the physical menu button is pressed? Mar 31 12:59:40 Is there an easy way to get a list view to expand its items so that if there is exmpty space the items expand to fill it? Mar 31 13:06:18 hi Mar 31 13:06:53 i published an android app 3 days back but i am not able to see it using the package name Mar 31 13:07:09 although the developer console is saying its published Mar 31 13:07:18 what is wrong Mar 31 13:13:19 I've created a custom xml resource file and added some strings: The string Mar 31 13:13:30 i can now get the resources with this: getResources().getString(R.mytype.name) Mar 31 13:13:43 but how do i reference them from zn xml layout? Mar 31 13:19:43 shmooz: Thanks. But I solved it by copying the file to the cache and then opening it. Mar 31 13:38:54 http://t.co/CKEbY22z24 Mar 31 13:38:58 just for kicks Mar 31 13:55:45 Do you guys pass a db connection to another activity or just open another one in the new activity? Mar 31 14:03:36 as I can create a window that allows me to download xml down? Mar 31 14:03:41 the content Mar 31 14:03:44 DarkDr0id: I use a contentprovider, but if I were to use a "normal" database connection I'd probably use a singleton Mar 31 14:04:30 as a window of a web page, I can navigate down shifting Mar 31 14:04:53 spinner is not the option Mar 31 14:06:57 b0t: I'm not sure I even understand the question, are you looking for a type of view that allows you to navigate XML with collapsing and expanding? Mar 31 14:08:01 I want to create a linear layout, but type spinner Mar 31 14:08:13 to scroll down Mar 31 14:09:05 without "item", with Texts Mar 31 14:09:09 So, a scrollview? Mar 31 14:09:36 yes Mar 31 14:10:07 i want scroll down the content Mar 31 14:10:20 Then use a scrollview, with a linearlayout inside Mar 31 14:11:28 thanks Mar 31 14:12:27 i uploaded app 3 days back and google play says its published but i cannot see it using the package name Mar 31 14:12:56 whenever I type in the url it says We're sorry, the requested URL was not found on this server. Mar 31 14:13:13 what is wrong .. Mar 31 14:13:24 sandeep01: what's the URL? Mar 31 14:13:44 https://play.google.com/store/apps/details?id=com.simprosys.callApp Mar 31 14:14:04 i upload it 4-5 times by changing the package name Mar 31 14:14:09 We're sorry, the requested URL was not found on this server Mar 31 14:14:13 but its giving me same error Mar 31 14:14:31 yes this is the error i am getting :( Mar 31 14:14:43 what is the name? Mar 31 14:15:10 sandeep01: you're the author of winrar? Mar 31 14:15:19 https://play.google.com/store/apps/details?id=com.simprosys.winzipper Mar 31 14:15:22 niceee Mar 31 14:15:23 name of the app ollo CallApp Mar 31 14:15:53 not be by the capital letters? Mar 31 14:15:53 yes :) Mar 31 14:16:03 callapp Mar 31 14:16:53 no I tried small letters as well but its giving same error Mar 31 14:17:03 com.abc.callmanager ..this is the package name i used Mar 31 14:17:26 but it was giving the error so I unpublished it and published that callApp one Mar 31 14:18:30 the error is for uppercase Mar 31 14:18:59 no sir, you can see this url Mar 31 14:18:59 https://play.google.com/store/apps/details?id=com.callandsms.ollo Mar 31 14:19:14 its also giving the same error Mar 31 14:19:28 declared in the main xml name in lowercase Mar 31 14:20:05 package="com.simprosys.callapp" Mar 31 14:20:59 all fomas is not allowed to put it in all caps, look for google play, no capital letters used in the application id Mar 31 14:21:10 Thorbear: ok. It won't be necessary to let other apps read my db so I don't see the need for a contentprovider Mar 31 14:21:12 sandeep01: I can recommend not taking advice from b0t... Mar 31 14:23:08 sandeep01: https://support.google.com/googleplay/android-developer/answer/1072599?hl=en Mar 31 14:23:20 DarkDr0id: a contentprovider can be useful anyway, as it is automatically available in all activities, and allows for some fancy easy-to-use async patterns, it might require a bit more boilerplate code though Mar 31 14:23:22 "An ID should be composed of lowercase letters(a-z), numbers(0-9), underline(_) and dot(.)." Mar 31 14:23:52 --> Cannot be modified or reused in the future :( Mar 31 14:24:17 Leeds: my answer is correct, sorry Mar 31 14:24:24 b0t: fortunately, that replies to in-app purchase items, not package names Mar 31 14:25:11 argh, applies, not replies - do not argue with weirdos on IRC while watching comedy in another window Mar 31 14:25:20 It should also start with lowercase alphabets or numbers. For example, "some_id", "1_2_3" or "a.sword" are available but "SOME_ID", "_1_2_3" or ".a.sword" are not. Mar 31 14:25:30 bot: I have used small letters package names as well with getting same error Mar 31 14:25:34 Thorbear: sounds like a decent good advantages. I'll look into it, thanks Mar 31 14:26:18 leeds: do you have any idea whats wrong with the app Mar 31 14:26:49 sandeep01: not really, sorry Mar 31 14:27:34 sandeep01: which is the error it gives you? paste it explicitly Mar 31 14:27:59 .c Mar 31 14:28:03 Hi everyone, I'm developing an android app with bluetooth, the thing is the app can work as server or as client, the client should connect to every server available and send a message and the serve just listen for it. I've achieved the connection but now I'm doubtfully how I should treat the socket. Should I close the socket any time I've achieved a connection? It's ok with closing just the streams open with the socket? Mar 31 14:29:14 We're sorry, the requested URL was not found on this server. Mar 31 14:29:19 this is the error Mar 31 14:30:00 http://imgur.com/v3jKz6Z Mar 31 14:30:09 this is the screnshot of my developer console Mar 31 14:30:14 do not understand how google allows you to upload an application with capital leetters Mar 31 14:31:13 https://play.google.com/store/apps/details?id=com.abc.callmanager Mar 31 14:31:24 this is the same app ...with different package name Mar 31 14:31:40 its having all the letters in package name in small letters Mar 31 14:31:46 its giving the same error Mar 31 14:31:56 it's nothing to do with capital letters Mar 31 14:32:11 ya that is what i am trying to tell bot Mar 31 14:32:24 looking the other hand, the error is not the id then. Mar 31 14:32:31 yes man Mar 31 14:33:27 and when you put "published"? publishes? I think not ... Mar 31 14:34:00 i published it 4-5 times Mar 31 14:34:11 and every time i waited for 3-4 days Mar 31 14:34:35 all the app i upload is giving the same problem Mar 31 14:34:38 and have deleted all the "drafts"? Mar 31 14:35:03 yes Mar 31 14:35:25 also the package name is changed everytime i upload new apk Mar 31 14:35:34 because we cannot upload 2 app with same package name Mar 31 14:35:37 take a screen of your package manager Mar 31 14:35:49 in google play Mar 31 14:36:54 you may have a waiting list, "pending" waiting to have so many publications. You have sent several requests, it's not automatic. Mar 31 14:37:48 I'm starting to hate how IDEA thinks inflater.inflate(...) might return null and other stuff that actually never does return null -.- Mar 31 14:38:28 http://imgur.com/MvfPVDS Mar 31 14:38:30 turn off the null inspections Mar 31 14:38:49 no, they're useful at times... but I don't get why it thinks these suddenly return nulls Mar 31 14:39:08 well, libraries need to be documented as to whether they return null or not Mar 31 14:39:18 bot: nah man ...its not the case Mar 31 14:39:22 there are @Nullable and @NotNull annotations Mar 31 14:39:36 I waited for 3-4 days and then i unpublish the previous apk and upload new one Mar 31 14:39:54 google should do that then Mar 31 14:40:01 bunch of lazy bastards Mar 31 14:40:52 status = "in prod" Mar 31 14:41:39 Is it correct to throw away the bitmap if the AsyncTask's isCancelled is true...or should be LRUCache, for a ListView? Mar 31 14:41:49 *we Mar 31 14:42:07 can i set up a google merchant account and charge for my app without being registered as a business entity? Mar 31 14:42:24 Zharf, probably happens when loading a library which uses @Nullable/@NotNull Mar 31 14:42:33 using an adhoc business name/address Mar 31 14:42:37 Zharf, might enable an inspection that's off by default, I suppose Mar 31 14:42:42 bot; oh I did something and saved it thats why its saying in prod Mar 31 14:42:42 zpr: yes, although that may or may not be okay according to local laws etc. Mar 31 14:43:22 Leeds: hey do you have any idea where should i go and search about this problem :) Mar 31 14:43:27 pfn, nah, it happens with just android sdk Mar 31 14:43:32 any help about my last question? Mar 31 14:43:34 i am not getting anything on google :( Mar 31 14:43:55 been starting to find them in more and more places... just recently in all of my listadapter's when inflating views... Mar 31 14:45:57 sandeep01: https://productforums.google.com/forum/#!forum/apps Mar 31 14:46:31 https://support.google.com/googleplay/?hl=en# Mar 31 14:47:17 Question them on the forums, it may be a bug in google, not your apk if you say that is correct ... Mar 31 14:47:21 any updated version of this post http://android-developers.blogspot.in/2010/07/multithreading-for-performance.html ? Mar 31 14:47:23 Hi Mar 31 14:48:06 he is a troll Mar 31 14:48:09 Zharf, odd that I never see those... rarely get the nullity bugs Mar 31 14:48:09 * b0t away Mar 31 14:48:11 .c Mar 31 14:48:44 I'm looking for a library that allows us to call Java code from LUA code and vice versa, however, this should not break our LUA <-> C++ code. Mar 31 14:49:08 Currently we have a manual solution, but it's very limited so far Mar 31 14:50:57 if the AsynTask's isCancelled() is true, shouldn't the WeakReference be also null in that case? i.e. garbage collected? Mar 31 14:53:07 bot: ok i wil post a question there Mar 31 14:53:09 thanks mate Mar 31 14:53:40 Is there anyway to set background but still have it show the press on a list item? Mar 31 14:54:57 hi all i am trying to debug my phone app with google chrome , i can only see GT-N7100 with the s/n next to it nothing more what can be the problem ? Mar 31 14:55:18 Hi everyone, I'm developing an android app with bluetooth, the thing is the app can work as server or as client, the client should connect to every server available and send a message and the serve just listen for it. I've achieved the connection but now I'm doubtfully how I should treat the socket. Should I close the socket any time I've achieved a connection? It's ok with closing just the streams open with the socket? Mar 31 14:56:29 anyone Mar 31 14:57:43 emotionull: I'd assume the most up to date information can be found in either http://developer.android.com/guide/components/processes-and-threads.html#WorkerThreads or http://developer.android.com/reference/android/os/AsyncTask.html Mar 31 14:59:03 idont see any inspect Mar 31 14:59:49 Thorbear: thnx...looking at it Mar 31 15:00:19 pagios: I thought the connection with google chome would only allow debugging webpages viewed in chome on the phone? Mar 31 15:00:44 Thorbear: i want to debug my app Mar 31 15:01:22 Thorbear: in what case isCancelled will be true for a ListView Mar 31 15:01:49 pagios: Then you should use the SDK and your IDE of choice, which probably has access to DDMS Mar 31 15:02:38 Does anybody have an idea? Mar 31 15:03:08 emotionull: I don't know that ListView has any isCancelled method at all, do you mean some other class interfacing with it? Mar 31 15:03:25 not true Thorbear you can debug your app in chrome Mar 31 15:04:02 pagios: Ok, then I have no idea how to do that, and are unable to help you, sorry :) Mar 31 15:04:32 Does anybody know of a library that allows me to call Java functions from lua and doesn't ship with the LUA VM? Mar 31 15:06:40 Serus, easy, write a jni interface to your lua runtime Mar 31 15:06:52 or google for one Mar 31 15:06:55 We already did Mar 31 15:06:57 btoh Mar 31 15:06:59 both* Mar 31 15:07:01 then you're done Mar 31 15:07:18 But all the Java <-> LUA stuff ships with the LUA VM integrated Mar 31 15:07:27 which will break our code Mar 31 15:07:28 then remove it yourself Mar 31 15:07:45 That's an option Mar 31 15:08:17 What we currently do is work with a limited bridge we wrote Mar 31 15:08:51 which can send over strings, floats (numbers), booleans and function pointers Mar 31 15:09:30 apparently these things are coming from google changes to android studio Mar 31 15:09:39 google seems to produce only shit these days Mar 31 15:11:05 Hi, do you have any recommendations on how could I detected whether any synchronized blocks are waiting for a long time, across the application? Mar 31 15:11:12 Why does Android Studio never break on the two breakpoints in the catch, but why does it break on the last breakpoint on the return? http://4o4.nl/201403310vNp0.png Mar 31 15:11:51 and another question, is there a way to detect whether any executors/threadpools are busy and their queue holds runnables for a long time? Mar 31 15:12:29 Hi Mar 31 15:12:54 Please tell me, if I want to start developing for Android, then what language should I use? Mar 31 15:13:19 I thought it is Java. But guys from ##java insist that I'm wrong Mar 31 15:13:51 Java, ##java is not the nicest of places Mar 31 15:14:27 but it's not on an official jvm, it's on dalvik Mar 31 15:14:51 For example, I'd like to get GDK, try it, develop some new apps... Isn't it Java which is used in all the examples? Isn't it Java which I almost natively can use in Android programming? Mar 31 15:15:33 OnkelTem: You should use C++ and the do the necessary Java stuff via the JNI Mar 31 15:15:56 Serus: should or could? Mar 31 15:16:06 imo should Mar 31 15:16:12 but I'm a C++ fanboy Mar 31 15:16:15 :P Mar 31 15:16:15 OnkelTem: Android is Java-the-language, not Java-the-VM Mar 31 15:16:18 Why does Android Studio never break on the two breakpoints in the catch, but why does it break on the last breakpoint on the return? http://4o4.nl/201403310vNp0.png Mar 31 15:16:22 OnkelTem: so they may not like that Mar 31 15:16:40 Serus: so you mean C++ is the "straightforward way to start Mar 31 15:16:42 ? Mar 31 15:16:45 lol Mar 31 15:16:46 no Mar 31 15:16:47 I'm doubt in that )) Mar 31 15:17:01 Angelo: becauce no exception is thrown Mar 31 15:17:03 OnkelTem, not even close, doing it like that would be about the least straight forward way Mar 31 15:17:08 jonp: ok, I see :) Mar 31 15:17:11 what? Mar 31 15:17:22 Serus: No, the return in the try doesn't return. Mar 31 15:17:41 always you hear people say that you shouldn't start with C++, which is bullshit, because I started with C++. Mar 31 15:17:43 Serus: you see, I mean of course HIGH level development, using MOST of what Android offers for making User Apps. Mar 31 15:17:50 sigh Mar 31 15:17:50 Serus: for an Android app? Mar 31 15:18:00 maybe if you have an existing C++ codebase, sure, that makes sense Mar 31 15:18:05 but for "newbies" to the platform? Mar 31 15:18:07 Serus, for android dev? no you shouldn't start with C++ Mar 31 15:18:18 I started with C++ for development Mar 31 15:18:22 not for android Mar 31 15:18:31 OnkelTem, Java is the officialy supported language for the platform, the OS itself was written prevalently in Java and the OS API is Java API Mar 31 15:18:31 * Zharf feels like taking a trip to googleville and punch whoever is responsible for the breakage in intellij android plugin Mar 31 15:18:33 we're talking about Android, not in general. :-) Mar 31 15:18:34 android wasn't even remotely big at the time Mar 31 15:18:40 I started with True Basic then moved to C++ Mar 31 15:18:46 OnkelTem, if you use another language you have to retrofit it to call Java APIs which is... painful at best Mar 31 15:18:52 due to the madness that is JNI :) Mar 31 15:19:03 but I like all of the libraries available to java and the single place to find a large portion of them (maven <3) Mar 31 15:19:03 JNI and Java you mean Mar 31 15:19:35 Java is horrible enough to use as a tool for torture lol Mar 31 15:19:50 I find it a lot more productive overall Mar 31 15:20:00 c++ is madness... Mar 31 15:20:02 yes, is there efficiency in C++? of course Mar 31 15:20:08 Angelo: do a clean, rebuilt, and restart android studio with cache reset. AS sometimes gets stuck on some version of the code. Mar 31 15:20:24 wildroman2: How to do I restart with cache reset? Mar 31 15:20:27 Mavrik: that's what I keening to know. Thank you. Now I have to learn Java. Damni't, I was trying to escape from it whole my life LOL Mar 31 15:20:43 Angelo: File->Invalidate caches / Restart... Mar 31 15:20:45 OnkelTem, I was the same way, learned it and learned to like it Mar 31 15:21:06 especially when doing threaded work, I hated any type of threading in C / C++ other than Boost threads Mar 31 15:21:14 OnkelTem, yea... when it comes to Android that's probably not gonna change soon Mar 31 15:21:19 is there a resource file generator in the android-maven-plugin? Mar 31 15:21:24 threading is so easy in C++ Mar 31 15:21:25 jonc-1: thanks for that :) I believe I can do it too! Mar 31 15:21:27 I need to generate a build number... Mar 31 15:21:27 jonc-1, well there wasn't any threading until C++11 anyway :) Mar 31 15:21:30 in contrary to C# Mar 31 15:21:33 Serus: i'm advocating that for people new to the platform, Java is probably better. Mar 31 15:21:37 Mavrik: false Mar 31 15:21:38 threading is stupid easy in c# Mar 31 15:21:42 Serus: JNI is to be avoided if at all possible Mar 31 15:21:43 what cracksmoking are you talking about Mar 31 15:21:50 Mavrik, threading is doable in C / C++ but it was platform specific Mar 31 15:21:51 Serus: though if you really hate Java, i have a C# product to sell you... ;-) Mar 31 15:22:07 Serus, threading isn't native to the language/stdlib Mar 31 15:22:08 wildroman2: Nope, didn't change a thing. Mar 31 15:22:09 jonp: let me guess Mar 31 15:22:13 you have pthreads and boost Mar 31 15:22:16 jonc-1, mhm Mar 31 15:22:18 jonp: "Unity3D" Mar 31 15:22:22 pthreads were common enough tho Mar 31 15:22:22 or not? Mar 31 15:22:23 Serus: no. Mar 31 15:22:24 * OnkelTem hides Mar 31 15:22:42 pthreads are terrible, the terribleness that is passing around Void* Mar 31 15:22:45 pfn: pthreads are not multiplatform Mar 31 15:22:51 Angelo: that's quick, for me restart with caches + rebuild takes a few minutes. Mar 31 15:22:52 I never said that they were Mar 31 15:23:08 there's _a_ pthread implementation on Windows... Mar 31 15:23:11 jonc-1: They don't have much else in C Mar 31 15:23:11 wildroman2: Well this is a fast PC and a tiny app. :P Mar 31 15:23:13 not sure how great it is Mar 31 15:23:13 and if multithreading is easy on c++... Mar 31 15:23:19 OnkelTem, I assure you, Java only hurts until you get Stockholm syndrome ;) Mar 31 15:23:22 like they say.. Mar 31 15:23:22 gordon_, yeah, someone's cracksmoking Mar 31 15:23:29 Threading in java is very simple Mar 31 15:23:36 "simple" Mar 31 15:23:38 only really bad thing in java is the stupid verbose language Mar 31 15:23:38 threading is way easier in C++ than in C# Mar 31 15:23:45 Serus: HAHAH Mar 31 15:23:47 Serus, false Mar 31 15:23:49 Serus: wow Mar 31 15:24:07 aside from shock, i don't know how to reply to that Mar 31 15:24:12 lol Mar 31 15:24:13 yeah Mar 31 15:24:14 Angelo: is the Log.e happening? Mar 31 15:24:39 but then again... anyone saying C++ is anything other than a frankenstein of languages ... Mar 31 15:24:51 'beginner programmer thinks that threads are hard, experienced programmer thins that threads are easy, veteran programmer thinks threads are hard' Mar 31 15:25:07 wildroman2: If I should see that in here, then no. http://4o4.nl/2014033123mHZ.png Mar 31 15:25:08 gordon_: i'm not sure experienced devs would think they're easy either Mar 31 15:25:08 Mavrik: can you recommend a reading which would be the best for someone targeting to Android development and doesn't know Java? Mar 31 15:25:15 something between beginner and experienced Mar 31 15:25:23 proper threading is hard, but just in general to start a thread, it was a nightmare in c and c++ Mar 31 15:25:24 OnkelTem, hmm... sorry, maybe someone else would know Mar 31 15:25:30 C++ is the best language, all other languages I've used didn't offer me the power I want Mar 31 15:25:37 I like how functional programming is dealing with threads Mar 31 15:25:38 * jonp backs away slowly Mar 31 15:25:38 OnkelTem, I've been doing Java way before Android so I really can't give good advice on that front :/ Mar 31 15:25:50 Mavrik: I see, okay :) Mar 31 15:25:55 OnkelTem, knowing java is core to doing android well Mar 31 15:25:56 i know C++. i've used it. i wouldn't say it's "best" Mar 31 15:26:01 The bottlenecks I run into typically aren't cpu performance based Mar 31 15:26:09 IO is the number 1 issue Mar 31 15:26:16 C++ is neat... when you stop using about 3/4 of its features Mar 31 15:26:16 Serus, all languages offer you the power that you want Mar 31 15:26:18 adb devices shows: List of devices attached Mar 31 15:26:18 4df7c97c546bcfcf device Mar 31 15:26:22 how can i access it Mar 31 15:26:26 Mavrik: Exactly Mar 31 15:26:28 Mavrik: but then it's no fun! Mar 31 15:26:34 pfn: false Mar 31 15:26:35 i need to see the logs of my app Mar 31 15:26:41 _everybody_ needs a turing-complete compile-time functional language! Mar 31 15:26:42 on the other hands Mar 31 15:26:55 jonp: fun ends when your program turns off due to exception Mar 31 15:27:00 there's really no good way of avoiding 150 line compiler error garbage when you forget a semicolon Mar 31 15:27:00 Serus, if it's turing complete, it gives you the power that you want, not understanding that means you don't know languages Mar 31 15:27:04 so that's that. Mar 31 15:27:09 gordon_: or 15 minute compile+link times Mar 31 15:27:19 gordon_: or entirely unreadable template-based error messages Mar 31 15:27:22 gordon_: or... ;-) Mar 31 15:27:25 Angelo: try do a catch on Throwable instead of on Exception. Also try adding a finally block to make sure there's log output that you can see. Mar 31 15:27:27 yeah.... Mar 31 15:27:30 i've done plenty of C++. Mar 31 15:27:33 jonp: only 15 minutes? you're lucky Mar 31 15:27:36 i don't use it. Mar 31 15:27:41 pfn: apparently :) Can you help with good reading on modern Java? Mar 31 15:27:44 i went back to C Mar 31 15:27:49 and C# Mar 31 15:27:55 I dont have experience in BIG c++ project Mar 31 15:28:02 gordon_: i worked on LibreOffice Mar 31 15:28:05 gordon_: PAIN Mar 31 15:28:10 for me Mar 31 15:28:15 I worked alot of C++ Mar 31 15:28:15 so why it still doesnt use qt ? Mar 31 15:28:16 ;) Mar 31 15:28:16 others enjoy it, k'm sure Mar 31 15:28:21 gordon_: Qt is C++ Mar 31 15:28:26 gordon_: not sure what you're getting at Mar 31 15:28:28 but... C is just way cleaner and saner language when you need it Mar 31 15:28:36 Mavrik: right. Mar 31 15:28:39 and pretty much anything else is better than random madness that is C++ quirks :D Mar 31 15:28:41 Angelo: i'm still suspecting build system issues / incompatibility between the deployed (debugged) code and presented source. Mar 31 15:28:54 Oh well, this is turning into a language war, not any productive answers are given as usual Mar 31 15:29:02 (ever debugged forgotten virtual destructor? FUN!) Mar 31 15:29:07 Serus: what's the question? i missed it/didn't understand it Mar 31 15:29:09 jonp: https://wiki.documentfoundation.org/Development/Crazy_Ideas#Replace_all_interface_code_with_an_interface_using_the_Qt_widgets Mar 31 15:29:11 Serus, it's the internet :P Mar 31 15:29:12 Serus: something about JNI... Mar 31 15:29:18 still waiting ;) Mar 31 15:29:23 JNI might not be that bad Mar 31 15:29:26 gordon_: it's a crazy idea Mar 31 15:29:29 wildroman2: it hits the finally block, but not the catch block (catching Throwable) Mar 31 15:29:32 gordon_: depeneds no how you define "bad" Mar 31 15:29:39 but there's no really good support for that Mar 31 15:29:41 gordon_: compared to .NET P/Invoke? it's horrible. Mar 31 15:29:54 well Mar 31 15:30:06 on how many platforms .net is running ? ;) Mar 31 15:30:09 enough? Mar 31 15:30:10 I hate maven... Mar 31 15:30:17 btw Mar 31 15:30:19 well, ECMA CLI Mar 31 15:30:30 if you HAVE to call C code fom java... JNA is about the P/Invoke level of neat Mar 31 15:30:31 on Android, iOS, PS3, PS4, Windows... Mar 31 15:30:32 I was writing in c# for some time Mar 31 15:30:40 JNA is great Mar 31 15:30:46 I'm just not sure it works on Android Mar 31 15:30:52 wildroman2: Okay so apparently there was no exception, but the return in the try didn't actually return. What's up with that? Mar 31 15:30:55 Mavrik, it could easily be ported to android Mar 31 15:31:00 Angelo: process crash? Mar 31 15:31:04 however, since you're on Android... you sometimes have to call Java code from C Mar 31 15:31:04 Angelo: check logcat? Mar 31 15:31:07 Mavrik, and I think there is a version for android Mar 31 15:31:07 what are we now talking about ? Mar 31 15:31:14 java or c# P/Invoke ? Mar 31 15:31:16 Angelo, finally will run even if it hits a return, it is guaranteed to run (unless a total system failure) Mar 31 15:31:16 and that part of JNI... was built by a madman Mar 31 15:31:23 pfn, possibly, I haven't really kept up Mar 31 15:31:23 yes. Mar 31 15:31:29 jonc-1: Yeah I got that. Mar 31 15:31:36 though part of that is because Java doesn't have a good concept of "delegates" or "function pointers" Mar 31 15:31:50 yeah, I miss that Mar 31 15:31:54 jonp: java8 is here now ! Mar 31 15:31:58 _now_ Mar 31 15:32:01 but I believe java 8 added it Mar 31 15:32:02 anyway, I'd sell my firstborn and the cat to Google if they implement Java8 :- Mar 31 15:32:06 only...18 years later than JNI? Mar 31 15:32:07 :- Mar 31 15:32:08 jonc-1: I mean that execution continued even after the return in the try block without it throwing an exception - is that normal in Java? Mar 31 15:32:11 shhhh Mar 31 15:32:16 dont crash my dreams Mar 31 15:32:17 yeah, but no java8 in android for the forseeable future Mar 31 15:32:27 when's Android going to get Java7? Mar 31 15:32:30 hey! kitkat is java7 :) Mar 31 15:32:37 _parts_ are. kinda. ish. Mar 31 15:32:39 it's very odd. Mar 31 15:32:40 jonp, android has java7 language support as of build-tools19/api19 Mar 31 15:32:43 jonp: We have a game engine written in C++ and we use LUA as the scripting language. Now the engine is also running on android we want to call Java code from LUA and vice versa, but without breaking our current working LUA VM. The Java code should have access to all mapped (including those made in C++) LUA functions and the LUA code should be able to call both C functions and Java classes. Mar 31 15:33:06 Serus: two words: code generator Mar 31 15:33:10 yeah, Java 8 would require Dalvik upgrade Mar 31 15:33:24 which means... YEARS for adaption Mar 31 15:33:33 jonp: Yeah, I was thinking of that. Mar 31 15:33:42 Serus: you either have a "generic" Java class which can hit _any_ Lua type, meaning 'strong types' are out the window Mar 31 15:33:52 But isn't there a library that provides such functionality? Mar 31 15:33:54 Serus: or you need a code generator to generate a Java class per Lua type Mar 31 15:34:28 wait Mar 31 15:34:29 i don't know of any such library Mar 31 15:34:37 i've _written_ such a code generator Mar 31 15:34:42 but not for Lua ;-) Mar 31 15:35:01 I just want to call Java functions, not write Java code from LUA or write LUA classes from Java Mar 31 15:35:20 But Java should be able to call a LUA function Mar 31 15:35:22 Serus: you gonna have hard time :) Mar 31 15:35:22 i thought you also said call Lua from Java. my misreading. Mar 31 15:35:43 jonp: Mainly via callbacks though Mar 31 15:36:07 Just out of curiosity: how much do you usually charge per hour and how much experience do you have? Mar 31 15:36:17 doing it bidirectional should be easy Mar 31 15:36:45 autrilla: who is "you"? Mar 31 15:36:59 or is it a general question to the channel? Mar 31 15:37:10 Serus, you is the second person of the plural in this case. So yes, to the whooole channel Mar 31 15:38:33 Serus: again, depends on how "strongly typed" you want to be. Mar 31 15:38:53 I'll have to ask that to the head developer Mar 31 15:38:57 autrilla, depends on what, where and how annoying the customer would be :P Mar 31 15:38:59 Serus: Java > native invocation requires a "java stub" of some form (class w/ `native` metrhods) Mar 31 15:39:09 that's easy... Mar 31 15:39:15 Serus: so you either have one such class that is responsible for ALL your Lua callbacks Mar 31 15:39:18 jonp: Yeah, they contain native methods Mar 31 15:39:32 Serus: or you have a _set_ of such Java classes, e.g. one per Lua type Mar 31 15:39:52 Serus: the former is easier, but "loses type safety" as you have a single class which "multiplexes" across your Lua code Mar 31 15:40:00 well, I gotta go, or else I'm missing my bus Mar 31 15:40:03 Serus: the latter is a path to insanity if you have too many Lua types (so depends on size of project) Mar 31 15:40:13 I gotta go Mar 31 15:40:15 to sleep ! Mar 31 15:40:18 see you guys Mar 31 15:40:20 Mavrik, I know it really depends on the sort of project, but if you had to set an hourly rate, how much would it be? Or better: how much would you charge for an app that lets users manage their farms, edit farm device parameters etc? Mar 31 15:40:27 jonp: ttyl Mar 31 15:41:00 autrilla, remember that prices also differ who your customer is and where in the world you are Mar 31 15:41:41 if I have to give out a (company) invoice I really can't go lower than 70€/hr and usually go to up to about 120€/hr for more complex projects Mar 31 15:41:49 Mavrik, both of us in Spain. Minimum wage here is 660€/month, average is ~22.000/year ~= 1500€/month Mar 31 15:42:02 if you're a student and trying to get some starting experience you can go way lower than that Mar 31 15:42:24 Should session timeout for Google Analytics be specified on webpage analytics.google.com or in code with 30 ? Mar 31 15:42:27 It's kinda weird. That setting in code means 30 seconds, but on the analytics.google.com site the minimum is 1 minute Mar 31 15:42:35 Mavrik, oh, I've been doing stuff with Android for a couple of years now. But as you know I'm not very good and need help often :) Mar 31 15:42:52 autrilla, I suggest you think of a monthly wage, think about how much time in months it'll take you the project and set accordingly Mar 31 15:43:24 around here an average wage for a starter developer is about 1200-1400€ before taxes Mar 31 15:44:27 Mavrik, a month? Mar 31 15:44:49 mhm Mar 31 15:44:53 where is here? Mar 31 15:44:57 SI Mar 31 15:45:10 YES? Mar 31 15:45:15 uhh.. SI? Mar 31 15:45:20 singapore? Mar 31 15:45:24 no, thats sg Mar 31 15:45:27 Quacked: that's sg Mar 31 15:45:29 er, slovenia :) Mar 31 15:45:41 slovenia pay rates are that good? Mar 31 15:45:43 Mavrik, aha Mar 31 15:45:48 70-120euros/hr? Mar 31 15:45:51 that seems high Mar 31 15:45:57 pfn, no, not Slovenia Mar 31 15:46:12 pfn, most people can't charge that much Mar 31 15:46:20 but remember... consultant fees go easily up to 300 even Mar 31 15:46:37 but you never get a 40hr billable week Mar 31 15:46:42 sure, if you're a full on design/qa/etc. farm Mar 31 15:47:12 as I said, beginners get like 800-900 after taxes monthly, average "codemonkey" programmer pay is about 1600-1800 monthly Mar 31 15:47:17 Well, spain's average salary according to wikipedia is 1615€, and slovenia's 1000€. So if people there earn ~1300€, I should earn 2100€ if I'm right Mar 31 15:47:20 i suspect a "good" contracting guideline is "desired yearly salary * N", where N is e.g. 2, to make up for taxes, "downtime", etc. Mar 31 15:47:33 yeah, you have to subtract 2 months Mar 31 15:47:42 as it's not really possible to fill all your possible working hours Mar 31 15:47:45 for sickdays, vacation, emergencies, etc. Mar 31 15:47:50 and you need e.g. a vacation at some point Mar 31 15:47:50 autrilla, what makes you above average? :p Mar 31 15:47:59 pfn, I'm not above average Mar 31 15:48:06 also, if you're a freelancer you burn increadible amounts of non-billable time just talking to people about possible projects Mar 31 15:48:07 pfn, he said 1200-1400 Mar 31 15:48:11 pfn, how did you get 70-120 euros/hr from 1200-1400 a month? Mar 31 15:48:20 Quacked, experience Mar 31 15:48:22 Quacked, read previous statement from Mavrik Mar 31 15:48:24 Hi all.. Admob still down? Mar 31 15:49:00 ThomQ: zilch for me :( Mar 31 15:49:18 yeah me too. Mar 31 15:49:33 autrilla, lol, what? Mar 31 15:49:37 So 3 days their systems are fucked now.. You'd think they'd send out a mail, or at Least a notification in the console :D Mar 31 15:50:19 pfn, you know I'm bad :3 Mar 31 15:50:35 I wish accessibilitynodeinfo.isEditable was actually available on a reasonably low api-level Mar 31 15:50:38 ThomQ, you mistook Google for a company with custome service :) Mar 31 15:50:49 autrilla, your clients don't know that :P Mar 31 15:51:46 isEditable isn't even available until api18, how the hell is the accessbilityservice supposed to know if something's a textfield Mar 31 15:52:05 ThomQ: dunno if it's everyone, or just us, or somewhere in the middle Mar 31 15:52:23 spoke to some people on here yesterday who had the same thing too Mar 31 15:52:57 let's put it the other way then: anyone here using admob who sees non-zero impressions/clicks/revenue/etc over the past couple of days? Mar 31 15:53:38 pfn, Mavrik, you more or less know my level, so how much would you charge with my level? 70-120€ seems a lot Mar 31 15:54:05 working with lots of places in silicon valley, it seems they're cheap and expect payrates of 45-75usd/hr Mar 31 15:54:14 euro's? Mar 31 15:54:25 Doesn't the symbol appear? Mar 31 15:54:27 so that's another datapoint Mar 31 15:54:27 € Mar 31 15:54:38 mhm Mar 31 15:54:41 120 pesos Mar 31 15:54:57 autrilla, as I said, it depends on how much taxes you'll have to pay and how much do you want Mar 31 15:55:03 autrilla, if it took you one month to make an app Mar 31 15:55:19 and you want a pay of 1500€ just tell them 1500€ + taxes and that's that Mar 31 15:55:23 scale accordingly Mar 31 15:55:44 if your average pay in the area is 2000, do that :) Mar 31 15:56:04 well, tbh, I would go above average pay for freelance jobs Mar 31 15:56:26 of course :) Mar 31 15:57:15 ThomQ: I guess nobody uses admob Mar 31 15:57:39 what Do you guys use? Mar 31 15:58:33 Alright then. I don't think I'll use 160h on the project though. Not even close Mar 31 15:59:34 autrilla, don't forget to count total hours Mar 31 15:59:42 e.g. meetings, coordination, etc. Mar 31 15:59:44 that's work as well Mar 31 16:00:15 That's something I should have done for my latest Java project Mar 31 16:00:50 But anyway, do you usually have work the whole month? Mar 31 16:01:00 solving knotty data structure problems in your sleep - that's work Mar 31 16:01:40 what exactly should i do in onCreateView? Mar 31 16:01:52 tstivers, onCreateView of what class? Mar 31 16:02:03 for example would i perform an action based on the arguments in onCreateView, or is that better left to onCreate? Mar 31 16:02:06 a fragment Mar 31 16:02:29 create the Fragment's View Mar 31 16:02:35 and hold references to the Views you need Mar 31 16:02:48 so i should handle any arguments passed to the fragment etc in onCreate then? Mar 31 16:03:09 onCreate runs before onCreateView Mar 31 16:03:23 correct Mar 31 16:03:27 now here's a possible dilemma Mar 31 16:03:45 my fragment is a listview that is to retain search results Mar 31 16:03:53 why not initialize the Fragment, then use methods to pass what you want Mar 31 16:04:20 my idea is to implement the actual searching functionality in the fragment itself Mar 31 16:04:39 that would be best ys Mar 31 16:04:40 yes Mar 31 16:04:51 I'm guessing the search param comes from the Activity Mar 31 16:04:53 so if i do that and the search gets called (and returned) before onCreateView gets called, and I try to add items to the listview it's going to die in a fire Mar 31 16:05:11 but at the same time i guess it wouldn't considering listview uses adapters, so i'd be modifying the adapter, not the listview Mar 31 16:05:17 Per layout, I built classes containing ref's to all the views. But I'm an android n00b :) Mar 31 16:05:19 correct MohammadAG Mar 31 16:05:45 so initialize the Fragment, then do something like myFragment.doSearch("foo") Mar 31 16:05:50 i'm using Fragment.setArguments() Mar 31 16:06:06 you can keep a reference to a Fragment Mar 31 16:06:10 true Mar 31 16:06:40 (I'm not the best person to be talking to about this, but I've used Fragments extensively in a notes app, and that's the approach I used) Mar 31 16:06:43 and considering the activity will contain this search fragment 90% of the time it's probably the best bet Mar 31 16:06:59 but the other time I used fragments was in a car app Mar 31 16:07:05 rather than my current method of replacing the fragment with a new one and passing an argument with the search query for every search Mar 31 16:07:18 the logic was mixed between activities and fragments, and I lost interest in the whole thing cause of the mess I made Mar 31 16:07:40 my actual logic is in separate non-ui classes Mar 31 16:07:56 but the fragments will be calling the actual method to initiate a search with those classes Mar 31 16:08:03 oh no, initialize the view more than once takes resources Mar 31 16:08:08 initializing* Mar 31 16:08:17 so yeah, reuse the View Mar 31 16:08:21 err, Fragment Mar 31 16:08:23 yeah Mar 31 16:08:27 sounds like the best bet Mar 31 16:08:39 anyone compiled kernels on OS X? Mar 31 16:08:49 I feel like it's going to be a mess Mar 31 16:08:50 saves me having to use these retarded bundles too Mar 31 16:09:03 yeah, never been a fan of Bunles Mar 31 16:09:05 Bundles Mar 31 16:09:12 hi Mar 31 16:09:15 i seriously cannot stand bundles, such a terribly useless class if you want to do anything but pass a string to some useless class Mar 31 16:09:16 especially since I can't pass my own objects in them Mar 31 16:09:31 you can make the class implement Parceable Mar 31 16:09:35 but that's also a mess imo Mar 31 16:09:47 parcelable, bundles, and serializable are all pretty much useless imo Mar 31 16:10:13 Ensure that the following correspond to what is in the API Console: Package Name: br.lojasnoparaguai.com.app, Mar 31 16:10:13 API Key: xxxXXXXXxxXXXXxxxXXX, Certificate Fingerprint: D89898217D798372198D89080 Mar 31 16:10:20 i am using maps, with debug.key stores, i change my key to production sha1, but i have one error Mar 31 16:10:35 unless you feel like writing 500 lines of code to pass a class that's 30 lines Mar 31 16:10:36 t0th_- pastebin.org Mar 31 16:10:36 ahh nvm Mar 31 16:10:48 eclipse is getting the fingerprint of debug key... Mar 31 16:10:55 tstivers tbh, coming from a Qt background, I miss passing my own instances of classes around Mar 31 16:11:26 i'm used to C# so Mar 31 16:11:33 i'm actually writing this app in C# because fuck java Mar 31 16:11:48 hahahaha Mar 31 16:11:52 good for you Mar 31 16:11:53 shu Mar 31 16:11:58 didn't know C# worked on Android Mar 31 16:11:59 don't ask for help with it, though :p Mar 31 16:12:02 MohammadAG, xamarin Mar 31 16:12:04 i will ask for help Mar 31 16:12:06 oh, that Mar 31 16:12:09 do you know a website that refering all or some uri format for google apps such as google maps/navigation or google agenda? Mar 31 16:12:12 i can translate between java and C# just fine :) Mar 31 16:13:25 you can't get help for xamarin because fuck community support too, so you have to understand java and the original java/android implementation in order to figure out how to do something in xamarin Mar 31 16:13:57 Schoumi iOS, but wf Android too http://stackoverflow.com/questions/17915901/is-there-an-android-equivalent-to-google-maps-url-scheme-for-ios Mar 31 16:14:06 only time i'm screwed is when xamarin is screwing up or works ass backwards from the original java implementation and i'm not familiar enough to see it Mar 31 16:14:09 has there been a change to admob that asks users if they want to open the ad? Mar 31 16:14:10 tstivers: scala Mar 31 16:14:11 tstivers, that's generally the case for any alternative language thing for android Mar 31 16:14:14 earlier a click just opened the web page Mar 31 16:14:58 gordon_ what about it? Mar 31 16:15:06 better than c# :) Mar 31 16:15:13 gordon_, completely Mar 31 16:15:22 does it have an equivalent to C#'s task parallel library? Mar 31 16:15:44 futures are better than task parallel Mar 31 16:15:47 MohammadAG: thanks Mar 31 16:15:56 since when c# is functional and object oriented at the same time ? ;) Mar 31 16:16:33 do you know what tpl is gordon_? Mar 31 16:16:41 tstivers, http://docs.scala-lang.org/overviews/core/futures.html Mar 31 16:16:47 not really Mar 31 16:16:52 heh Mar 31 16:17:00 or maybe I know Mar 31 16:17:03 if you had ever used it you would probably use C#/xamarin Mar 31 16:17:09 aa Mar 31 16:17:11 ok I know Mar 31 16:17:16 futures > task parallel Mar 31 16:17:24 string value = await someLongRunningTaskAsync(); Mar 31 16:17:49 yep Mar 31 16:17:50 that's the worst example ever Mar 31 16:17:53 because that's blocking Mar 31 16:17:56 ;) Mar 31 16:18:07 how is it blocking? Mar 31 16:18:11 there's nothing blocking about it Mar 31 16:18:17 just looking at docs Mar 31 16:18:19 value cannot be assigned until someLongRunningTaskAsync completes Mar 31 16:18:25 sigh Mar 31 16:18:35 that doesn't make it blocking Mar 31 16:18:44 that's the whole POINT of tpl Mar 31 16:19:05 I was using c# until 4.0 Mar 31 16:19:07 I guess Mar 31 16:19:18 you said var s = await... s can't be assigned Mar 31 16:19:20 what I loved in c# was linq Mar 31 16:19:35 the await operator returns control to the calling method until someLongRunningTaskAsync() returns it's value Mar 31 16:20:08 The await operator is applied to a task in an asynchronous method to suspend the execution of the method until the awaited task completes. The task represents ongoing work. Mar 31 16:20:09 from msdn Mar 31 16:20:15 by definition: it blocks until awaited task completes Mar 31 16:20:27 define block Mar 31 16:20:39 prevents following code from executing Mar 31 16:20:55 which is what i want Mar 31 16:21:00 if you called await on the UI thread, then it is blocking the UI thread Mar 31 16:21:06 no, it's not Mar 31 16:21:06 so it is /blocking/ Mar 31 16:21:25 because somewhere up the line the ui thread called an async method without using await Mar 31 16:21:31 Is there a way to create multi-platorm (iOS / Android) apps using Python? Mar 31 16:21:48 seriously go read up on tpl Mar 31 16:21:51 blahblahcurrentlyonMain(); blahblah = await asyncJunk(); // while asyncJunk executes, main is not executed, UI is not updated Mar 31 16:21:53 you will love it, it's absolutely genius Mar 31 16:21:58 ELFrederich: maybe jython Mar 31 16:22:04 with robovm Mar 31 16:22:08 yes the ui is executed Mar 31 16:22:12 dont know what's the status of jython now Mar 31 16:22:15 ELFrederich, pretty much all multiplatform app engines are terrible Mar 31 16:22:23 tstivers, I've read it, it's not genius... Mar 31 16:22:38 gordon_, you can use jython on iOS? I thought Java or any "interpreted" language was forbidden Mar 31 16:22:53 ELFrederich: look at robovm Mar 31 16:23:03 tstivers, of course, with some message passing framework around it, you can pause the processing of a message, etc. Mar 31 16:23:04 http://www.robovm.org/ Mar 31 16:23:11 but by itself, it's nothing special Mar 31 16:23:48 which I suppose the whole tpl kit&kaboodle gets you Mar 31 16:24:14 havent tried it mysefl, dont have any ios device Mar 31 16:24:18 seems like scala is working Mar 31 16:24:39 https://github.com/ajhager/sbt-robovm Mar 31 16:24:40 bah Mar 31 16:24:41 ELFrederich, that restriction was lifted years ago Mar 31 16:24:52 pfn: http://pastebin.com/rtwVMBGz Mar 31 16:24:56 that's how tpl works Mar 31 16:25:11 tstivers_, yeah, I know Mar 31 16:25:18 so how does it block the ui? Mar 31 16:25:31 tstivers_, right, I was slightly wrong on my assertion Mar 31 16:25:47 hell i could even await in onButtonClick and it still wouldn't block the ui, because when the ui called onButtonClick it didn't await it Mar 31 16:25:51 tstivers_, like I said, I didn't realize the whole xamarin kit gave you a full messagequeue/continuation thing Mar 31 16:26:08 it's not just xamarin, tpl is part of C# itself Mar 31 16:26:15 I wouldn't use c# Mar 31 16:26:20 * pfn shrugs Mar 31 16:26:22 because of microsoft Mar 31 16:26:25 still not impressed, but ok Mar 31 16:26:33 and I don't justify my choices based on "because of microsoft" Mar 31 16:26:38 you must like callbacks vOv Mar 31 16:26:38 f#, would be a consideration Mar 31 16:26:49 well Mar 31 16:27:04 that the opposide what I would say 3 years ago :) Mar 31 16:27:11 hey if java added something useful to the language in the past decade i might use it too Mar 31 16:27:13 when I was writing in ms technologies Mar 31 16:28:01 well I dont have argument for that ;) Mar 31 16:28:08 you can write letter to oracle Mar 31 16:28:12 to screw things up Mar 31 16:28:12 Should session timeout for Google Analytics be specified on webpage analytics.google.com or in code with 30 ? Mar 31 16:28:18 or i can use C# lol Mar 31 16:28:21 It's kinda weird. That setting in code means 30 seconds, but on the analytics.google.com site the minimum is 1 minute Mar 31 16:28:52 tstivers: until MS will close the project due to licence issues lol Mar 31 16:28:57 and then I would laugh ;) Mar 31 16:29:04 uhh Mar 31 16:29:07 close what project? Mar 31 16:29:13 say what? Mar 31 16:29:15 xamarin Mar 31 16:29:24 microsoft doesn't own xamarin Mar 31 16:29:29 C# is an open standard language Mar 31 16:29:33 so is most of .net Mar 31 16:29:44 xamarin is owned by miguel de icaza Mar 31 16:29:56 gordon_, indeed, msft has no say on that matter Mar 31 16:30:00 I know exactly who he is Mar 31 16:30:11 I also know why open source doesnt like him ;) Mar 31 16:30:15 so do i Mar 31 16:30:35 but i'm not going to let politics get in the way of me using something that saves me tons of time :P Mar 31 16:30:36 and I dont think .net is open Mar 31 16:30:47 it's not as open as open source per-se Mar 31 16:30:47 Sorry to bother. If I want to develop an android app should I first learn Java? Mar 31 16:30:55 but it's pretty open for something microsoft created Mar 31 16:30:55 tharkun, yes Mar 31 16:30:57 tharkun: YES Mar 31 16:31:09 tstivers: yeah... Mar 31 16:31:11 * tstivers refrains from mentioning xamarin Mar 31 16:31:22 Thanks, any resources you might recomend on the web? Mar 31 16:31:25 it's a standard like their OOXML Mar 31 16:32:03 I'd say it's a trap Mar 31 16:32:10 miguel pissed me off with the fact monodroid doesn't work on linux, when mono was started with one of their main goals being linux compatibility Mar 31 16:32:15 until it's not popular on other platforms Mar 31 16:32:22 it's safe Mar 31 16:32:50 anyone upgrade to the new admob? how did existing funds work that were left over in the old admob? Mar 31 16:32:53 monodroid works with visual studio Mar 31 16:33:03 so microsoft really wants it to pick up Mar 31 16:33:10 so it only works on windows ? :D Mar 31 16:33:15 looool Mar 31 16:33:22 yeah, that's a dealbreaker Mar 31 16:33:23 plus any dependency on C# is inherently a dependency on microsoft, because microsoft has the best tools for C# Mar 31 16:33:27 it works on mac too Mar 31 16:33:30 but not linux Mar 31 16:33:36 still a dealbreaker Mar 31 16:33:41 thanks for nothing, miguel Mar 31 16:33:48 it's pretty stupid honestly, miguel is a jackass for making it incompatible with linux Mar 31 16:33:56 well Mar 31 16:33:59 he should seriously be shot for treason like that in my eyes Mar 31 16:33:59 gnome kicked him off Mar 31 16:34:05 and nobody cares, really Mar 31 16:34:07 boo hoo for him Mar 31 16:34:27 sounds like he had an "i'm taking my ball and i'm going home" moment Mar 31 16:35:17 really nobody really botheres Mar 31 16:35:21 &bothered Mar 31 16:35:24 I think Mar 31 16:36:28 still, even though i hate miguel, xamarin has made my life a million times easier and i can't live without the features C# provides me Mar 31 16:36:49 there are just a million things to make your life easier in C#, plus i know the language the best out of any language i know Mar 31 16:37:11 I dunno about a million things, but ok Mar 31 16:37:59 close enough Mar 31 16:38:17 tpl is worth at least 500k Mar 31 16:38:18 I found java to be easier and makes more sense (better naming of collections etc, specific types of concurrent collections), this is after using C# for several years Mar 31 16:42:31 different strokes for different folks i guess vOv Mar 31 16:42:54 anyone using admob and not seeing updates for the past 3 days? Mar 31 16:50:12 what would the intent action be if the app was launched or the view was launched? Mar 31 16:50:23 err Mar 31 16:50:24 activity Mar 31 16:51:19 android.intent.action.MAIN Mar 31 16:51:20 ACTION_VIEW? Mar 31 16:51:31 at least for the main activity that's what it is Mar 31 16:51:32 whatever's in the intent :) Mar 31 16:51:40 err, AndroidManifest Mar 31 16:52:02 what is the intent if i just call StartActivity()? Mar 31 16:54:00 I'd guess the same Mar 31 16:54:07 getIntent().getAction() will show it Mar 31 16:54:09 toast that Mar 31 16:54:17 yeah, i could Mar 31 16:54:19 i'm just being lazy Mar 31 16:54:29 hahaha Mar 31 16:56:48 so unfortunately what i want to do won't work... Mar 31 16:57:04 calling a fragment's method from the activity Mar 31 16:57:12 keep a reference to it Mar 31 16:57:26 how are you instatiating the fragment? Mar 31 16:57:31 because i want to call the method from the activity's oncreate method, basically to do some initializing that may or may not need to happen Mar 31 16:57:58 the problem is the fragment's onCreate doesn't get called immediately like i would need in order to get all the initialization done Mar 31 16:58:13 searchFragment = new SearchFragment(); Mar 31 16:58:13 FragmentManager.BeginTransaction().Add(Resource.Id.lvSearchResults, searchFragment).Commit(); Mar 31 16:58:21 it's in C# but you get the idea Mar 31 16:58:23 I think there's a onActivityCreated method? Mar 31 16:58:50 http://developer.android.com/reference/android/app/Fragment.html#onActivityCreated(android.os.Bundle) Mar 31 16:58:53 maybe there's a DoItNow method in the Fragment class Mar 31 16:59:20 what's wrong with following the correct lifecycle... Mar 31 16:59:22 right but that won't work Mar 31 16:59:23 or setArguments Mar 31 16:59:32 pfn i already tried setarguments Mar 31 16:59:40 i was told calling a method within the fragment would be better Mar 31 16:59:46 it wouldn't Mar 31 16:59:49 i originally started with setarguments though Mar 31 17:00:05 here's my dilemma with setarguments Mar 31 17:00:05 you can call any method on your fragment as long as it doesn't depend on any lifecycle Mar 31 17:00:14 say the fragment already exists Mar 31 17:00:21 how would i use setarguments then? Mar 31 17:00:54 override setArguments... Mar 31 17:00:58 if necessary Mar 31 17:01:22 but that's not really the usage of it Mar 31 17:01:24 only for initial setup Mar 31 17:01:27 why not just call a method instead though? Mar 31 17:01:35 lifecycle constraints Mar 31 17:01:37 seems that would be a bit cleaner than overriding something i really don't need to override Mar 31 17:01:53 then why don't you just call a method Mar 31 17:01:59 you keep saying so, but you don't do it... Mar 31 17:02:08 that's what i'm trying to do... Mar 31 17:02:14 but i'm running into issues with that as well Mar 31 17:02:24 surely there's a correct way to tell my fragment to do something Mar 31 17:02:33 ie: perform a search Mar 31 17:02:42 god, I hate the download manager Mar 31 17:02:48 loosely coupled: send a broadcast Mar 31 17:02:54 use events and listeners Mar 31 17:02:56 etc. Mar 31 17:03:11 * pfn kicks the pos download manager some more Mar 31 17:03:36 something is seriously wrong with android Mar 31 17:04:02 something's seriously wrong with the way you write code Mar 31 17:04:06 i shouldn't have to set up events just to tell my fragment to perform a damn search Mar 31 17:04:14 then call the method on your fragment Mar 31 17:04:21 all of this is seriously trivial Mar 31 17:04:33 that's what i'm trying to do Mar 31 17:04:37 you're saying i shouldn't though... Mar 31 17:04:39 make up your mind Mar 31 17:04:45 I never said you shouldn't Mar 31 17:04:50 I said use the appropriate approach for your task Mar 31 17:04:55 if you can't tightly couple, then loosely couple Mar 31 17:05:11 obey the lifecycle Mar 31 17:05:15 that's all Mar 31 17:05:29 i'm not understanding tightly/loosely coupling Mar 31 17:05:33 nor lifecycle Mar 31 17:05:45 where do you see me not obeying the lifecycle Mar 31 17:06:14 you said you depend on onCreate in your fragment Mar 31 17:06:16 then depend on it Mar 31 17:06:44 right Mar 31 17:06:58 and the problem here is i want to call a method immediately after creating the fragment Mar 31 17:07:11 unfortunately it appears onCreate isn't being called before this method is Mar 31 17:07:22 which will create problems because initialization is done in oncreate Mar 31 17:07:32 then organize your code so that it's called after onCreate Mar 31 17:07:35 or forward the call Mar 31 17:07:50 forward, defer, wrap, flag, whatever Mar 31 17:08:04 onOnCreate ;p Mar 31 17:08:06 ok, how do i organize code in my activity so that it's called after the fragment's oncreate? Mar 31 17:08:24 why would you do this in your activity Mar 31 17:08:38 encapsulate Mar 31 17:08:42 because fragment's can't handle searches from the activity bar Mar 31 17:08:48 fragments* Mar 31 17:09:06 action bar Mar 31 17:09:07 whatever it is Mar 31 17:09:38 basically, i have a fragment that contains a listview, when the fragment is created if it's not told to search, i want it to load a set of predefined results Mar 31 17:10:06 i have an actionbar with a searchview, which leads to the activity housing the fragment Mar 31 17:10:29 i want to pass the search to the fragment so the fragment can deal with the search as it's what actually holds the results of the search so it seems logical that it handle it Mar 31 17:10:56 create the Fragment and don't make it load anything Mar 31 17:11:05 when user wants to search, call the search method Mar 31 17:11:23 then call the search method Mar 31 17:11:41 have the fragment execute the actual search at the correct time in its lifecycle Mar 31 17:11:43 sounds straightforward Mar 31 17:12:00 i have to decide whether i'm going to load the predefined data or perform a search within my activity's oncreate, because oncreate is called when the searchview is submitted (onNewIntent can be called too) Mar 31 17:12:08 doSearch -> amICreated? No? WaitForCreate. Yes? DoSearch Mar 31 17:12:14 right but if no search is performed then i need the fragment to load predefined data Mar 31 17:12:21 logic OP Mar 31 17:12:30 condescending op Mar 31 17:12:31 * pfn wanders from boredom Mar 31 17:12:38 loadPredefinedData() Mar 31 17:12:55 if init code hasn't been called yet, make that set a boolean that loads the data Mar 31 17:13:23 this all sounds like an ass backwards over-complicated way to do something really simple Mar 31 17:13:33 i mean just using activities it was pretty damn straight forward Mar 31 17:14:06 maybe it's just me but it appears every new "feature" android adds just makes things more un-necessarily complex Mar 31 17:14:12 it's just you Mar 31 17:14:16 and programming is complex Mar 31 17:14:38 and un-necessarily complex programming is bad Mar 31 17:14:44 it's not unnecessarily Mar 31 17:14:51 who are you to judge whether its necessary Mar 31 17:16:21 well every solution you seem to be giving me is unnecessarily complex, that much i know Mar 31 17:16:49 it's just some simple OOP, in a way Mar 31 17:16:50 unnecessarily complex? if isready do it if not ready don'tdoit Mar 31 17:16:52 wow, that's complex Mar 31 17:17:38 ok well i'm moving on now, captain condescending Mar 31 17:23:52 the only way i can think of to do it that isn't retarded is by passing an argument to the fragment on creation that indicates whether it is searching, as well as the search query, and then calling the methods if the fragment already exists Mar 31 17:24:19 i wanted to avoid this though because it's implementing the same thing in two different ways to get around something i'm sure there's an easier way around Mar 31 17:27:05 is there a way to remove items from a bundle? Mar 31 17:27:40 actually i guess i don't need to, i can just set arguments = null Mar 31 17:38:16 can someone explain something to me? Mar 31 17:38:25 what (1 << 2) means in enums Mar 31 17:39:43 in enums? Mar 31 17:40:06 well, it's used in enums, but it's an operator Mar 31 17:40:15 I'm guessing it's something to do with bits Mar 31 17:40:32 it's a bit shift operator Mar 31 17:40:39 but it has nothing to do with enums Mar 31 17:40:45 it works on ints. Mar 31 17:41:25 I'm messing up since I don't know what it is Mar 31 17:41:29 but https://github.com/MohammadAG/android_kernel_sony_msm8974/blob/master/drivers/input/touchscreen/clearpad_core.c#L202 Mar 31 17:42:20 that's C code Mar 31 17:42:52 1 << 0 = 0000...001 Mar 31 17:42:58 1 << 1 = 0000..10 Mar 31 17:43:06 1 << 2 = 0000..100 Mar 31 17:43:07 etc. Mar 31 17:43:10 http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/BitOp/bitshift.html Mar 31 17:43:42 ah, thanks! Mar 31 17:44:29 hey everyone. Someone experienced with ndk? Mar 31 17:55:34 hey, I was wondering whats the best way to setup a db on android platform where apps can periodically query for updates or be notified of them Mar 31 17:59:05 hey guys, i'm having trouble using a send SMS intent in my app; i'm starting the intent with startactivityforresult(), but it never actually goes back to my app i think Mar 31 18:03:26 there's no way to send an MMS using SMSManager, right? i dunno why but my Messaging app doesn't return to my app after I send the message (though the Messaging app does get properly populated from my app) Mar 31 18:05:14 RedDunce: use starActivityForResult Mar 31 18:06:01 thePoosh: Mar 31 18:06:07 or read this: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/4.4.2_r1/com/android/mms/MmsApp.java/ Mar 31 18:06:07 https://www.irccloud.com/pastebin/uyZm89wE Mar 31 18:06:12 no thanks Mar 31 18:06:30 it's 6 lines lol Mar 31 18:07:03 wanted to see if it looked right to you Mar 31 18:07:12 because i am using startActivityForResult Mar 31 18:07:20 it just never actually returns after i hit the send button Mar 31 18:07:21 I never sent an mms, only sms Mar 31 18:07:27 and i used the smsManager Mar 31 18:07:31 my SMS isn't really working either Mar 31 18:07:36 oh ok you used an SMSManager, got you Mar 31 18:07:38 ive just split up some code into android bits and then a "no android stuff" library in intellij. I added junit:junit:4.11 as a compile dependency in the build.gradle for that lib but intellij isnt picking it up - @Test is not offering any imports.. any ideas? Mar 31 18:07:43 stupid thing doesn't work with MMS :( Mar 31 18:11:50 is it bad practice to use fragment's like activities? Mar 31 18:12:15 essentially having one main activity that would load different fragments based on the action at hand? Mar 31 18:13:35 why am i using apostrophes where they don't belong so damn much today... Mar 31 18:16:08 I d'no Mar 31 18:16:36 Does any have experience with admob? When I add the code to use it in my app, all I see now is the ad on a black screen! Can anyone help? Mar 31 18:16:42 about me using apostrophes incorrectly, or whether it's bad practice to use fragments like activities? Mar 31 18:17:12 Nick82 all i can say is "working as intended" :P Mar 31 18:17:36 even though i know it really isn't, it still sounds good lol Mar 31 18:18:10 in all seriousness though, the first place i would look is in my layout Mar 31 18:18:42 i've never used admob so idk exactly how it puts itself on screen, but maybe it or it's container's layout is causing it to take up the whole screen Mar 31 18:19:02 That could be! Mar 31 18:19:13 I didn't have a layout initially (it's a single activity game), so I added one to house the ad Mar 31 18:19:49 Mar 31 18:19:49 android:id="@+id/linearLayout" Mar 31 18:19:49 android:orientation="vertical" Mar 31 18:19:49 android:layout_width="match_parent" Mar 31 18:19:49 android:layout_height="match_parent"> Mar 31 18:19:50 Mar 31 18:19:50 Mar 31 18:20:10 well match parent basically means take up the whole screen if it's the root element Mar 31 18:20:56 how do I make it so the banner only displays at the bottom Mar 31 18:21:10 http://stackoverflow.com/questions/7036970/beginning-android-games-and-admob Mar 31 18:21:13 check out the second answer Mar 31 18:21:25 it sounds like you don't want to use a layout at all, instead doing it all programmatically Mar 31 18:21:35 especially if your game doesn't otherwise need a layout Mar 31 18:21:53 by not use a layout at all i mean not use a layout xml file Mar 31 18:22:43 that would be ideal, the game doesn't use layouts, but when I tried to program admob without one, it kept crashing Mar 31 18:23:03 try what's posted in the second answer on that page Mar 31 18:23:09 you basically create a layout programmatically Mar 31 18:23:15 it looks like what you want Mar 31 18:23:28 cool, lemme try that Mar 31 18:28:42 Nick82: For future reference, use pastebin for code Mar 31 18:41:19 I was trying to follow this SO - http://stackoverflow.com/questions/11752961/how-to-show-a-progress-spinner-in-android-when-doinbackground-is-being-execut to display a progress spinner while my async task is showing, but when I call dismiss on the spinner in the onPostExecute it throws a "view not attached to window manager" error. Anyone ever encountered this before? Mar 31 18:44:03 Is there an open source project that deals with google forms ? Mar 31 18:44:30 I want to enable the user to submit a google form from my app Mar 31 18:47:04 It seems like a lot of other folks get that same error with a spinner in the async task when a configuration change occurs but this is coming from the emulator during initial dev and no configuration changes are occuring (though good to keep in mind) Mar 31 18:48:56 has anyone else experienced application crashes with absolutely no error output? Mar 31 18:49:05 I have no idea how to debug this Mar 31 18:49:47 bacon1989: step through with the debugger Mar 31 18:49:52 bacon1989: Log everything. See where it breaks Mar 31 18:56:21 ah ok, I think an empty catch statement was the culprit Mar 31 18:56:36 I was still expecting it to throw a NullPointerException Mar 31 18:56:42 I guess I need to be more careful Mar 31 19:08:05 so I used this tool to make style: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-tab.html Mar 31 19:08:29 and it created a style_mystyle.xml in addition to my normal style.xml Mar 31 19:08:41 how do I set the project to use style_mystyle.xml instead of style.xml? Mar 31 19:10:09 I believe everything within your /res folder is automagically referenced into your R.java file. So it's a matter of configuring your activities to use that new style Mar 31 19:10:17 isn't style.xml your style? Mar 31 19:10:45 that tool created style_mystyle instead Mar 31 19:10:55 then fix it Mar 31 19:11:26 Filename doesn't matter in values/ Mar 31 19:11:43 Any resources defined are available in R Mar 31 19:12:45 aha, thanks Mar 31 19:13:52 thanks what? sticking with style_mystyle? Mar 31 19:14:32 SimonVT's info was useful Mar 31 19:14:48 and the bacon Mar 31 19:14:55 mhmmm bacon Mar 31 19:14:57 not as much useful as just semantics, style is your style, why go rogue? Mar 31 19:15:18 rogue, haha :D Mar 31 19:30:45 still not having any luck incorporating admob ads :( Feels like I've been at this for days Mar 31 19:31:02 can anyone help me if I share my code? Mar 31 19:32:37 Does anyone know why startActivityForResult(mmsIntent, SEND_MMS) doesn't ever reach the onResultActivity's SEND_MMS requestCode branch? Mar 31 19:32:47 I can only go back to my app by hitting the back button from the messaging app Mar 31 19:32:49 which is really confusing me Mar 31 20:01:21 Hi Guys, I don't know why my global variable johnB is Null even if I declared this as a global variable. on line 16, johnB is assign a value but after that FindCallback() , johnB is null again, here my code http://pastebin.com/b9Y4yBtn , any ideas? Mar 31 20:04:46 androidnewb: it's because the callback is executed asynchronously - so it hasn't executed by the time that your code on line 23 is run Mar 31 20:05:09 JesusFreke: yeah, just got an answer from #java Mar 31 20:05:41 JesusFreke: Any hack on the code to do what I want? Mar 31 20:06:01 androidnewb: move the toast to inside the callback Mar 31 20:06:21 JesusFreke: but I need the value after the callback? Mar 31 20:06:37 out side the callback. Mar 31 20:07:23 androidnewb: you have to somehow wait until the callback has finished. Mar 31 20:07:40 JesusFreke: ok, thanks, Ill just google it Mar 31 20:09:21 does anyone use jfeinstein's SlidingMenu library? Mar 31 20:15:20 i'm just using the navigation drawer from the compat library. seems to work just fine Mar 31 20:23:27 Anyone know how to send a message with startActivityForResult() and actually have it work? Mar 31 20:37:08 RedDunce: are you sending in with the intent? Mar 31 20:38:28 jaynewstrom are you using fragments with your nav drawer? particularly, are you dynamically loading fragments into a container or launching new activities from the nav drawer? Mar 31 20:38:42 no Mar 31 20:42:26 jaynewstrom so you launch new activities from the items in your nav drawer? Mar 31 20:44:19 something like that. Mar 31 20:45:11 I load fragments into a container. Mar 31 20:47:45 jaynewstrom: yes, I am. but the intent is never returning a result Mar 31 20:47:59 so my onactivityreturned() method is never called from it Mar 31 20:48:48 Hi I am tring to do: getFragmentManager().beginTransaction().replace(R.id.content_frame, new FilterSetActivity()).commit(); Mar 31 20:49:11 but all I get is the fragment on top of the existing fragment Mar 31 20:49:24 I can see both at the same time. Mar 31 20:50:12 so it doesn't look like replace. How can I get rid of the old activity (I'd like to implment a back feature, so I don't want to kill it completely) Mar 31 20:50:30 <_genuser_> hello folks. JSONObject mObj=new JSONObject(JSON); fails Mar 31 20:50:38 <_genuser_> does this mean, the JSON string contains invalid json objects? Mar 31 20:50:46 <_genuser_> this fails intermittently. Not always. Mar 31 20:51:08 read the log Mar 31 20:51:27 <_genuser_> pfn: you're talking to me? Mar 31 20:51:30 RedDunce: are you calling setResult() before finish in the activity you are expecting the result from? Mar 31 20:51:47 is everyone enjoying google maps pokemon master? Mar 31 20:51:59 Is it a bad idea to track a keystore in version control? Mar 31 20:52:58 jaynewstrom: I'm using the default MMS messaging app Mar 31 20:53:08 well that wasn't quite true Mar 31 20:54:00 https://www.irccloud.com/pastebin/EtVjdy5r Mar 31 20:54:14 I am creating a boolean array from a cursor and I am having issues where it says it is true in one place, and false in another: here is the code that is giving issues (the parts with the core issue have !!!! wrapping them in comments) pastebin.com/fvy7tQ7x Mar 31 20:54:41 and your onActivityResult() isn't being called? Mar 31 20:54:46 no sir Mar 31 20:54:53 not when returning from the messaging app Mar 31 20:55:02 hmmm, well. i can't really help you without more code. Mar 31 20:55:03 so i had to do some hacky thing with this returningFromMMS and checking for it onResume() Mar 31 20:55:24 what could would you like to see? i can send you my whole MainActivity if you'd like but it might take a while to parse through... Mar 31 20:56:22 if onActivityResult works you shouldn't have to do hacky stuff in onResume(), no? Mar 31 20:57:20 i definitely shouldn't, but the thing is apparently these intents don't have the right stuff working :/ Mar 31 20:57:37 so they don't call a resultCode or anything Mar 31 20:59:35 like, the default ACTION_SEND intents Mar 31 21:06:42 How can I give my MainActivity a title without changing the name of the app launcher? Mar 31 21:07:11 setTitle Mar 31 21:11:50 pfn if I use setTitle, it displays the app launcher name for a moment, before switching to the MainActivity title Mar 31 21:12:11 pfn I was hoping I could do it in manifest, but then I noticed that the app launcher name changed also Mar 31 21:17:41 jaynewstrom, kakazza we were talking about the nav drawer earlier. i personally launch new activities from the nav drawer, but it seems that the nav drawer is reallying pushing for dynamic fragment loading. I say this because a couple things are really clunky right now. like when you hit back you notice a title change that was leftover from the onDrawerClosed setTitle call. Also the animation is kind of clunky due to a new Mar 31 21:17:42 closes Mar 31 21:18:42 RedDunce: you don't have to call setResult for onActivityResult to get called. if i recall correctly. Mar 31 21:19:29 Can someone help me get admob ad to display. Currently, it displays, but everything else goes black. Mar 31 21:19:43 theblang: i notice the small bit of the drawer that shows when you come back to the previous activity as well. not the end of the world for me though Mar 31 21:22:49 jaynewstrom did you figure out a way to keep the title from switching when you go back? Mar 31 21:23:10 theblang: are you talking about the actionbar title? Mar 31 21:23:59 jaynewstrom yeah, because it changes to the global title when you open, so when it closes it goes back to the activity's title. however, if you launch a new activity, the switch back to the activity's title doesn't happen until you go back to the original activity Mar 31 21:24:34 i use a custom view as part of the actionbar. and that seems to work really well. Mar 31 21:24:47 actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); Mar 31 21:25:44 as I can assign the function of the back button of the phone? Mar 31 21:26:06 in my app Mar 31 21:26:21 b0t yes, override onBackPressed Mar 31 21:26:36 thanks Mar 31 21:26:54 So I put that activity? Mar 31 21:26:56 jaynewstrom so does your custom view show a title for the activity? Mar 31 21:27:17 theblang: not exactly. but it does display text as well as other things and it works fine Mar 31 21:28:21 b0t yes, it is a function you can @Override in Activity. be careful about what you do there though, users expect a certain functionality with the back button Mar 31 21:29:16 thank you, very much Mar 31 21:29:25 b0t np! Mar 31 21:32:22 hi Mar 31 21:33:01 i want use default mediacontroller , but i want just mediacontroller don't show file name Mar 31 21:33:29 it show something like 124545sdfa4545 in below player that is not good Mar 31 21:41:34 Is the android language pretty easy to pick up for someone with C# syntax familiarity? Mar 31 21:43:19 JakeWharton: thanks for tweeting that reminder about your dagger talk! Mar 31 21:43:35 i forgot all about it Mar 31 21:43:46 it just hit me that it's been open for a few days Mar 31 21:47:19 extor, the language is java, and java is similar to c# Mar 31 21:47:23 considering c# is a java-ripoff Mar 31 21:55:30 (with a bunch of better features) Mar 31 21:56:45 of course, c# is a much nicer language Mar 31 21:56:59 but it's pretty derivative, so learning java from c# should be pretty straightforward Mar 31 21:59:11 definitely Mar 31 21:59:56 * pfn watches this rain Mar 31 22:00:04 * JakeWharton watches this pfn Mar 31 22:00:56 is that why my webcam has a green light on Mar 31 22:05:42 ...... no Mar 31 22:05:48 ignore that Mar 31 22:06:48 you should tape the webcam pfn Mar 31 22:07:08 just to stay on the safe side Mar 31 22:07:47 pfn are you in sf? Mar 31 22:07:59 any idea? Mar 31 22:08:12 jjnye, close enough Mar 31 22:08:35 pfn first time i've heard thunder since moving out here :) Mar 31 22:09:23 this past year has been remarkably dry Mar 31 22:20:30 How does one add a MenuItem to an existing MenuItem > Menu programatically when needed to improve the UX? Mar 31 22:21:03 Menu.add Mar 31 22:21:10 Thanks :) Mar 31 22:34:42 i want to create a custom view to show multiple images in one view Mar 31 22:34:52 9*9 images Mar 31 22:34:59 How to? Mar 31 22:35:55 you can extend a layout group if you want Mar 31 22:36:14 ok Mar 31 22:36:18 i will try Mar 31 22:36:29 Anyone know the name of the paper clip icon? Mar 31 22:37:22 clippy Mar 31 22:37:41 Mentos: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-generic.html#source.type=clipart&source.space.trim=0&source.space.pad=0&size=24&padding=8&color=33b5e5%2C100&name=ic_example Mar 31 22:37:57 ic_content_attachment it seems Mar 31 22:38:10 or ic_content_new_attach ... i'm sure there's a few, check the link Mar 31 22:38:13 a question, what is the command to close the application? to kill her? Mar 31 22:38:17 destroy? Mar 31 22:38:38 bankai_au: cool thanks Mar 31 22:38:45 android.os.Process.killProcess(android.os.Process.myPid()); Mar 31 22:39:06 anyone here familiar with admob? Mar 31 22:39:06 I have a challenging problem, I'm streaming images by continuously making Http Calls, receiving byte arrays, and using it to hydrate my ImageView. This causes the Garbage Collection to run constantly. I was wondering if there is a good way of reducing the Garbage Collection by reusing the byte arrays or something Mar 31 22:39:06 sure???' Mar 31 22:39:11 ok Mar 31 22:39:18 i am using it Mar 31 22:39:27 thank Mar 31 22:39:31 mal`e Mar 31 22:39:48 Male, you use admob? Mar 31 22:40:59 No Mar 31 22:41:16 b0t: use it in public void onBackPressed() Mar 31 22:41:24 after @Override Mar 31 22:42:12 ok Mar 31 22:42:14 whoah, what ? why ? Mar 31 22:42:15 one moment Mar 31 22:42:22 Does anyone know of a way to view the git history of a single file in Intellij/AndroidStudio Mar 31 22:43:34 MalekAlrwily: see it -> http://pastebin.com/hnXNNhEK Mar 31 22:45:01 yiati: i think there's an option when you view the vcs history, give me a sec and i'll check Mar 31 22:45:03 MalekAlrwily right? Mar 31 22:45:15 bakai see my code pls... Mar 31 22:46:43 why do you want to 'kill' it ? Mar 31 22:49:07 yiati: right click -> git -> show history Mar 31 22:50:04 bankai_au: Awesome, thanks Mar 31 22:50:26 if you don't see that 'git' option then you'll need to tell intellij to pick it up Mar 31 22:50:50 bankai_au: what is LayoutGroup package name? android. ..... Mar 31 22:51:25 ahh sorry, viewgroup Mar 31 22:51:36 bankai_au: I want the application to close Mar 31 22:51:37 ok Mar 31 22:52:00 b0t: it will close when you back out of it, there's no need to use 'kill' Mar 31 22:52:33 it will close when you back out of it--- > i do not understand Mar 31 22:52:59 perhaps you should investigate activity/fragment state tehn Mar 31 22:53:18 ok Mar 31 22:53:19 this command is placed within a chat window Mar 31 22:53:42 when I use the "back" returns me to the login home Mar 31 22:54:07 I want to use "back button", the app closes. Mar 31 22:59:04 huh, how weird, okhttp's disk cache messed up and was returning garbage Mar 31 22:59:27 b0t: probably best to start the main activity, then start the login. then your backstack will be clean Mar 31 23:00:28 ok i try it Mar 31 23:02:34 can someone please help me put a couple lines of code together to save these images to my gallery, been trying for days now and no code i use seems to work http://pastebin.com/XUTMvqXm Mar 31 23:18:22 hm, how does one handle multiple fragments adding a custom view to the actionbar? there is only setCustomView, not addCustomView. seems they would all clobber each other. or i would have to mediate that myself :| Mar 31 23:19:40 .c Mar 31 23:19:48 new Random().nextInt() Mar 31 23:20:04 may the odds be ever in your favor! Mar 31 23:21:05 fragments should be using an abstraction to touch the action bar rather than doing so directly Mar 31 23:21:13 it's a window-level component and fragments are view-level Mar 31 23:23:16 JakeWharton ok, so maybe the fragments can declare they have a custom thing to add, an dthe hosting activity can decide, add all those to a layout, and then finally setCustomView? Mar 31 23:23:25 yep Mar 31 23:23:27 sounds reasonable Mar 31 23:23:28 ok, thx Mar 31 23:24:15 i didn't used a custom view in the past :( Mar 31 23:24:26 but selecting one randomly is much more exciting Mar 31 23:24:41 i don't know how to extends ViewGroup correctly Mar 31 23:25:01 to add multiple images Mar 31 23:30:31 How ViewGroup work? Mar 31 23:32:15 -_- Mar 31 23:32:45 (-_-)zZ Mar 31 23:32:59 Good night Mar 31 23:52:21 is it possible to make a shape size like the available space? Mar 31 23:58:21 wow, I hate eclipse. that is all. Apr 01 00:29:27 working with an open source project on github. We want to use google cloud messaging and need a way to include the API key in the compiled code without checking it into the repo, and prefer not to hand-jam it in because we might forget to take it out before the next commit. How can we dynamically include it for a build, but keep it out of the git repo entirely while using eclipse+adt? Apr 01 00:33:52 damccull, add it in its own resource xml file and add that file to .gitignore Apr 01 00:33:57 Hi! Apr 01 00:34:09 Does anyone know how to start a specific method on application startup? Apr 01 00:34:29 alex_PP: that still leaves the ability to accidentally check it in, since it's in the repo folder Apr 01 00:34:47 you might want to use Resources.get... to chect it exists before using it Apr 01 00:34:59 add it it .gitignore Apr 01 00:35:15 Chizbang: add the method in question to your main activity's onCreate() Apr 01 00:35:24 but whenever I change orientation Apr 01 00:35:28 it repeats whatevers in there Apr 01 00:35:37 Chizbang, extend Application and add it to onCreate or do it in your main activity Apr 01 00:35:49 Chizbang: ....what alex_PP said. He's faster. Apr 01 00:36:00 But, I have already done that Apr 01 00:36:06 Every time I tilt my phone Apr 01 00:36:10 it repeats whatevers in there Apr 01 00:36:11 Chizbang: extend the Application class and put it in onCreate() Apr 01 00:36:23 https://developer.android.com/reference/android/app/Application.html Apr 01 00:37:07 alex_PP: .gitignore is a good tool, yes, but what happens when someone overwrites THAT file, or the owner of the file accidentally checks it in manually anyways somehow? Apr 01 00:37:53 what happens when anyone makes any changes willy nilly to a git repo Apr 01 00:38:12 public class MainActivity extends Activity,Application{ Apr 01 00:38:14 I have tried that Apr 01 00:38:27 fair enough. Ok, i'll suggest this solution to the project owner. I'm apparently the "git expert" of the team. haha. as if I know what I'm talking about. Apr 01 00:38:29 just makes more errors, one sec il check what it says Apr 01 00:38:41 Chizbang: your main activity doesn't extend it Apr 01 00:38:54 Chizbang: class MyActivity extends Activity {} Apr 01 00:39:06 haaha oops Apr 01 00:39:07 ah Apr 01 00:39:14 Chizbang: class MyApplication extends Application {} Apr 01 00:39:24 then you put that MyApplication in your AndroidManifest Apr 01 00:39:48 are you sure you want something to run "on application startup"? Apr 01 00:39:50 there's some element in the androidmanifest that lets you specify a custom Application class Apr 01 00:40:02 the android devs have said more than a couple of times they wish they made Application final Apr 01 00:40:34 in fact the docs now say "There is normally no need to subclass Application. In most situation, static singletons can provide the same functionality in a more modular way." Apr 01 00:43:16 Chizbang: wabz has a good point. Also, if you just want something to run once, set a boolean value in your sharedprefs and from then on if it's 1, don't do it again Apr 01 00:43:55 thats what I thought, thanks for the insight! Apr 01 00:44:13 Also, I do have a small question about my progress Apr 01 00:45:10 I have been programming in Objective C for iOS development since I was 13, I started it in 2010, and its all I have ever programmed for barr web development Apr 01 00:45:38 I'm now 16, and its taken me 4 days to make my first fully functioning android app with no prior Java experiance Apr 01 00:45:49 is that good? or bad? Im always really worried about the pace of my progress Apr 01 00:48:25 it's really baf Apr 01 00:48:29 bad Apr 01 00:48:54 it should take you 2 minutes to make a fully functional app with no prior experience Apr 01 00:49:12 lol Apr 01 00:50:29 alex_PP: without commiting a file into the repo, what happens to code referencing a string from it for OTHERS who are trying to compile? In other words, how do I keep the compiler from exploding because the interior of an if statement references a non-existent string resource? Apr 01 00:51:25 Chizbang: it's no laughing matter. It's taken me since android 1.6 released to get where I am and I STILL don't even have a functional app. Apr 01 00:51:29 pfn hates me so much Apr 01 00:51:33 he never helps me Apr 01 00:51:35 like ever Apr 01 00:51:37 cause i'm so slow Apr 01 00:51:45 Thank god I'm not alone! Apr 01 00:52:01 phew me neither Apr 01 00:52:18 I know no one in the programming business and I'm entirely self taught along with other life issues on the side so I sorta feel out of touch Apr 01 00:52:21 damccull, https://developer.android.com/reference/android/content/res/Resources.html Apr 01 00:52:23 i'm just figureing out the android 4+ stuff :) Apr 01 00:52:23 with how my progress is Apr 01 00:52:25 acutally i lied about pfn never helping me. he does. wait pfn is a he right? Apr 01 00:52:32 use the methods in there to retreive the values Apr 01 00:52:32 anyone know why my onResume might not be being called when my app loads? onCreate is running but the database object that onResume should be initialising is null. Apr 01 00:53:00 wabz, I prefer that application can be extended Apr 01 00:53:49 resume is after create Apr 01 00:53:52 alex_PP: right, but when I do getString(R.string.someApiKey) it's gonna go "omg halp! there's no resource called that let me crash and tell you this" Apr 01 00:54:14 pfn: yeap just realised that. how awkward - thanks Apr 01 00:54:28 https://developer.android.com/reference/android/content/res/Resources.html#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String) Apr 01 00:54:50 alex_PP: I am such a douche. Apr 01 00:54:53 don't get resources that don't exist :p Apr 01 00:54:55 haha i never knew that was there Apr 01 00:55:26 but a better way might be to use the resource overlay feature of aapt Apr 01 00:55:52 'i don't know your build well enough help with that though Apr 01 00:56:13 considering i don't know what aapt is, guess I'll be googling a bit ;) Apr 01 00:57:05 oh, interesting Apr 01 00:57:25 it's too bad this project isn't in android studio. gradle would have made this problem easy. Apr 01 00:57:41 yeah Apr 01 00:57:45 maven too Apr 01 00:57:52 what're you using, did you say ant? Apr 01 00:57:58 whatever eclipse+adt is Apr 01 00:58:05 ah Apr 01 00:58:53 i'm trying to help the project owner convert to AS eventually, but he tried it and doesn't like it yet. Says it's too slow at compiling (which it is) and can't figure out the workflow. He'll convert over some day but not likely before 1.0 Apr 01 00:59:46 are there any conditionals the compiler will recognize that I can use to skip an entire block of code from existing in the final? Apr 01 00:59:50 like #if or something Apr 01 01:00:03 no Apr 01 01:00:07 sad Apr 01 01:00:17 / Apr 01 01:00:21 // Apr 01 01:00:22 haha Apr 01 01:00:37 just use a code generator to create the resource when building Apr 01 01:00:51 and include a stub resource in your repo Apr 01 01:01:21 i'm reading about this resource overlay thing alex_PP was talking about Apr 01 01:03:52 not easy to find info on it though. i must be using the wrong terms. Apr 01 01:05:55 easiest approach is to add a library project that provides a default value for your resource Apr 01 01:06:13 you can override that resource value at build time Apr 01 01:06:55 makes it more complex for new devs to set up though. now they have to ensure they have the library project and include it too Apr 01 01:06:57 using library projects in eclipse is pretty nasty Apr 01 01:07:42 alex_PP: got a good place i can read about these overlays? Apr 01 01:07:53 library projects suck, period, but not a good way around them Apr 01 01:08:05 http://tools.android.com/tech-docs/new-build-system/resource-merging for gradle Apr 01 01:08:20 there's no nice way that will work with eclipse Apr 01 01:08:49 http://jayway.github.io/maven-android-plugin/apk-mojo.html#resourceOverlayDirectories maven Apr 01 01:08:56 and i can't find a way in eclipse Apr 01 01:08:58 yeah i know how in gradle. It sucks with eclipse :( Apr 01 01:09:07 https://android.googlesource.com/platform/sdk/+/d8ee1b032dafdbd2fbffea5c6cd11246ce595988/eclipse/plugins/com.android.ide.eclipse.adt.overlay/META-INF/MANIFEST.MF Apr 01 01:09:09 i found that Apr 01 01:09:12 thanks Apr 01 01:09:17 but that's the only reference i can find Apr 01 01:09:17 i'll look at it Apr 01 01:09:32 that's not realated Apr 01 01:09:34 ignore that Apr 01 01:09:43 hmm. lame. too bad no pre-executing scripts in eclispe Apr 01 01:10:29 i'll just tell him to keep the line commented out until he builds, and everyone else can have a commented line Apr 01 01:10:37 :( Apr 01 01:10:47 that in conjunction with .gitignore will work until i convince him to switch to gradle Apr 01 01:11:25 damccull remember you can have a gitignore stored in the repo too Apr 01 01:11:44 uh wait Apr 01 01:11:53 g00s: you can ignore a .gitignore with a .gitignore :) Apr 01 01:12:19 Patterns read from $GIT_DIR/info/exclude. Apr 01 01:12:57 i'm going to tell him to put a .gitignore in the res/values folder along side a new xml containing the string. then just uncomment the right line when he goes to build Apr 01 01:19:49 what's the project damccull ? Apr 01 01:19:55 avare Apr 01 01:20:09 https://github.com/apps4av/avare Apr 01 01:20:31 The gcm code isn't integrated in the github repo yet Apr 01 01:27:17 it's really not very well documented. Apr 01 01:27:27 that's something I'm hoping to help with too Apr 01 01:34:24 damccull you should work on one of pfn's projects Apr 01 01:34:28 XD Apr 01 01:34:34 g00s: what are they? Apr 01 01:34:59 he'll whip you into shape Apr 01 01:35:01 oh you're making a joke that he doesn't document them. i get it Apr 01 01:35:16 you'll have to learn scala Apr 01 01:35:19 eww Apr 01 01:35:21 wait what's scala? Apr 01 01:35:35 something better than java Apr 01 01:35:46 hmm Apr 01 01:35:54 does it android? Apr 01 01:36:04 with some effort, yes Apr 01 01:36:35 damccull were you looking for open source projects a while back to contribute to ? Apr 01 01:36:42 its been a while, i can't remember Apr 01 01:36:48 no, must be someone else Apr 01 01:37:01 avare's the first and only one so far i've been interested in Apr 01 01:37:20 i like to rip code out of open source projects on occasion for reuse Apr 01 01:37:23 k Apr 01 01:37:24 with proper attribution of course Apr 01 01:39:42 is scala like... alt-java? Apr 01 01:41:46 maybe more like ctrl-alt-java Apr 01 01:42:36 i se Apr 01 01:42:37 e Apr 01 01:43:35 it was me looking for new projects :) Apr 01 01:43:57 "but i still, haven't found … what i'm looking for …" ..... Apr 01 01:44:14 capella yeah then mozilla shitcanned metro stuff Apr 01 01:44:26 right .. so back to square one ;) Apr 01 01:44:37 hey, i read about that new generation GC that FF gets in 31 ! Apr 01 01:44:44 something android should have too Apr 01 01:44:47 fffufuuufufufu Apr 01 01:44:51 I pushed couple four patches to Mobile Apr 01 01:45:02 just annoying stuff Apr 01 01:45:29 capella did i ever send you that patio11 blog about never ending the week without something ? Apr 01 01:45:52 this was good https://training.kalzumeus.com/newsletters/archive/do-not-end-the-week-with-nothing Apr 01 01:45:54 No - but I believe in that idea ... I try to get one or two a week even if small Apr 01 01:46:48 Problem with the mobile team is there's too many talent FTE's hacking and as a contributor I feel somtimes like I get in the way Apr 01 01:47:19 I change stuff, then Moz-er re-does the whole thing different for an effort I didnt know about Apr 01 01:51:44 how do I change the width of tabs like these http://cl.ly/image/3Q181d0Y2s2d ? Apr 01 01:51:50 I want the text to take more area Apr 01 01:55:39 hello... Apr 01 01:56:32 anyone still there? Apr 01 01:57:09 brooooo Apr 01 01:57:43 Hi all. question (prob a bit of a tough one). I have this view that sits at the top of the screen, let's say a 50dp high, and fill_parent wide. With an inflator I add stuff to that view, thereby extending it. But, I want it animated. So I use a XML animation with android:fromYDelta="-100%" android:toYDelta="0%". This works fine on getting the view to pop down from the top of the screen, Apr 01 01:57:43 but when extending the view it resets the whole view to be outside of the screen again, while I only want it to be the extended part of the view that gets animated, the part that was already there shouldn't move Apr 01 01:58:34 can I set the animation instead of the inflated view, to the view that contains the part that's got to be extended? Apr 01 01:58:56 g00s: hahaah, morning bro :) Apr 01 01:59:43 * creatorb1 :) Apr 01 02:00:01 ha, so i went spelunking to see how aosp code uses Switch.onCheckedChangeListener … to see how they avoid getting self-notifications . man, so lame - they unsubscribe , do setChecked(), and then resubscribe Apr 01 02:00:18 http://www.google.co.jp/ime/m9/ Apr 01 02:00:33 pretty much precludes anonymous inner class for that Apr 01 02:03:29 instead of onCheckedChanged I tried an onClickListener - but that doesn't fire if the switch is deagged Apr 01 02:03:34 *dragged Apr 01 02:04:33 hello all Apr 01 02:04:46 i have a question, if i may Apr 01 02:05:53 i have some animation code that used to work, and now doesn't Apr 01 02:06:00 i'm at my wit's end as to why Apr 01 02:07:20 so how can we help? ;) Apr 01 02:08:18 i'm not sure, but allow me to explain the animations and their uses in practice Apr 01 02:08:28 there is an image that sits in the middle of the screen Apr 01 02:08:57 the user is able to hide this image by "sliding" it up and out of view, then reshow it by sliding it down into view Apr 01 02:09:09 or sliding down out of view and up back into view Apr 01 02:09:13 idi0tf0wl used to work .. until when ? Apr 01 02:09:19 or down and out, down and in, etc. Apr 01 02:09:35 until i started testing on a post-4.0 device Apr 01 02:09:42 i know i'm late to the adoption party Apr 01 02:09:47 me too ;) Apr 01 02:09:49 but such is the life of a poor dev Apr 01 02:09:55 * g00s understands Apr 01 02:10:14 well, you know that HC got a new animation framework Apr 01 02:10:21 anyway the code used to work beautifully, everything worked exactly as it should Apr 01 02:10:33 now the image will slide out of view correctly Apr 01 02:10:41 but will not slide back into view correctly Apr 01 02:10:51 i have no idea why Apr 01 02:10:59 anyone here know of a dashcam recording app that will record from both the front and rear facing cameras? Apr 01 02:11:04 i mean as an option Apr 01 02:11:21 i.e. i want to record INTO the vehicle if the camera is on my dash, not out the front of the car Apr 01 02:11:23 i've changed nothing, only the platform it's running on and the build target Apr 01 02:11:41 so if you change the build target back, it works hmm Apr 01 02:11:43 but i only changed the build target after confirming that it didn't work correctly with the old build target Apr 01 02:11:45 changed nothing Apr 01 02:12:00 no it doesn't work on my 4.1.2 device at all Apr 01 02:12:08 no matter what the build target Apr 01 02:12:22 idi0tf0wl well, i'd rewrite it using http://developer.android.com/guide/topics/graphics/prop-animation.html Apr 01 02:13:52 also try meanwhile disabling hw acceleration Apr 01 02:13:52 thank you Apr 01 02:14:08 i can't help but be frustrated at this though Apr 01 02:14:12 that caused some issues, when it came out, with a few charting libraries i was using Apr 01 02:14:15 code worked for years Apr 01 02:14:21 now it doesn't Apr 01 02:14:23 makes no sense Apr 01 02:14:37 maintaining an android app is a full time job Apr 01 02:14:52 apparently Apr 01 02:14:57 when you say targetSdk = x; you enable certain compatibility paths Apr 01 02:15:16 what's most puzzling is that half of the code still works as predicted Apr 01 02:15:21 if thats all you change, behavior can vary quite amazingly Apr 01 02:15:21 only half of it no longer does Apr 01 02:15:47 has translateanimation been deprecated or something? Apr 01 02:15:59 i'm not an expert with animations Apr 01 02:16:08 is it any more efficient at all to have an app open a database connection the first time one of your activities or fragments connects to it, then use an int to increment or decrement when additional activities/fragments connect/disconnect to it, and not release it until the final one is done, then close it? I thought android would already handle things like this for us... Apr 01 02:16:10 i just recalled during HC they added some Apr 01 02:16:16 or it would just work, since it's...you know, a database. Apr 01 02:16:42 damccull O.o Apr 01 02:16:46 yeah this code is hold-over from pre-honeycomb days Apr 01 02:17:13 thanks g00s Apr 01 02:17:26 i suppose it would be about time to just rewrite the whole damn thing Apr 01 02:17:26 sorry couldn't help much Apr 01 02:17:35 but i'm not gonna be happy about it Apr 01 02:17:44 why can't buildToolsVersion in build.gradle take wildcards? Apr 01 02:17:45 g00s: someone wrote this dbhelper (not based on SqliteOpenHelper) as a stanadlone class that keeps a built in record of how many objects have connected to it, and it keeps the db connectoin open until all are done, then closes it. Apr 01 02:18:00 damccull thats weird Apr 01 02:18:13 it makes switching branches a PITA when they are on different Apr 01 02:18:28 g00s: yeah well the dude that wrote this app is/was by no means familiar with android. heh. Apr 01 02:18:37 I mean, it works, so there is that. Apr 01 02:18:45 but it's uuuuuuugly Apr 01 02:18:50 damccull just do it like everyone else, make the sqliteopenhelper a singleton Apr 01 02:19:01 its stupid, no need to exist Apr 01 02:19:17 i'm not rewriting his entire db code atm. maybe later. Apr 01 02:19:39 just trying to figure out where to store new data i'm introducing. so my decision is....a new databse! Apr 01 02:22:40 g00s what do you mean sqliteopenhelper need not exist? Apr 01 02:23:17 damccull: he left, man... Apr 01 02:23:47 oh... Apr 01 02:23:57 i turned off the conn/disconn messages. they bugged me ;D Apr 01 02:25:03 would be nice to have a 'smart' filter, which could show you joins/parts of people you're talking to now, or talk to regularly Apr 01 02:25:10 hi guys, I am having a difficult time with my Adapter, with Picasso http://pastebin.com/52z04YDm Apr 01 02:26:24 what does "difficult time" mean ? Apr 01 02:27:45 i'm sorry i'd like to just check this out one more time here Apr 01 02:28:07 can someone tell me what would potentially be wrong with these animation definitions?: Apr 01 02:28:16 moveUpFromCenter = new TranslateAnimation( Apr 01 02:28:17 Animation.RELATIVE_TO_SELF, 0, Apr 01 02:28:18 Animation.RELATIVE_TO_SELF, 0, Apr 01 02:28:20 Animation.RELATIVE_TO_SELF, 0, Apr 01 02:28:21 Animation.RELATIVE_TO_SELF, -2); Apr 01 02:28:22 moveUpFromCenter.setDuration(700); Apr 01 02:28:23 moveUpFromCenter.setFillAfter(true); Apr 01 02:28:24 aww paste some more annoying code, please ... Apr 01 02:28:30 moveDownFromTop = new TranslateAnimation( Apr 01 02:28:31 Animation.RELATIVE_TO_SELF, 0, Apr 01 02:28:32 Animation.RELATIVE_TO_SELF, 0, Apr 01 02:28:34 Animation.RELATIVE_TO_SELF, -2, Apr 01 02:28:35 Animation.RELATIVE_TO_SELF, 0); Apr 01 02:28:37 moveDownFromTop.setDuration(700); Apr 01 02:28:37 don't stop there, do it again Apr 01 02:28:38 moveDownFromTop.setFillAfter(true); Apr 01 02:28:38 Apr 01 02:29:16 i apologise for annoying you, bankai_au Apr 01 02:29:44 i'll do us all a favor and acknowledge your facetiousness for what it is Apr 01 02:29:47 there's a pretty standard 2-3 line paste run on IRC, be more considerate Apr 01 02:30:08 please excuse my ignorance Apr 01 02:30:18 whoa, no Apr 01 02:31:19 i suppose i'll just go fuck off and die then Apr 01 02:31:24 my bad Apr 01 02:32:15 at least i wasn't so ignorant as to assume pasting an entire page would be acceptable Apr 01 02:32:17 good plan... Apr 01 02:32:20 next! Apr 01 02:32:49 is there a more standard procedure for asking questions regarding code? Apr 01 02:33:07 please, teach me your ways Apr 01 02:33:10 use any of the innumerable pastebins... Apr 01 02:33:13 i'm not out to antagonise Apr 01 02:33:34 or if you want another chance for help, a well-formatted question on stackoverflow Apr 01 02:33:59 what exactly is the purpose of this channel? Apr 01 02:34:19 the attitudes since the one gentleman left have me confused Apr 01 02:34:41 warning: may contain traces of nuts Apr 01 02:34:47 devs talking to devs, mostly but not entirely about Android app development and related subjects Apr 01 02:35:10 oh i see Apr 01 02:35:21 so it is more of a discussion channel? Apr 01 02:35:31 discussion as opposed to? Apr 01 02:35:44 hello Apr 01 02:36:01 well i came here by way of this page: http://developer.android.com/support.html Apr 01 02:36:03 I was to use font awesome logo inside the action bar. is it possible to do this? Apr 01 02:36:17 so i'd assumed it was some sort of question/answer community Apr 01 02:36:29 I can see I can set a "title" on an item, but how can I change the font type of that item to use the font awesome type? Apr 01 02:36:43 talking to each other often involves helping each other, giving advice, etc. - but it's not a support channel as such Apr 01 02:37:27 ir7466: use a custom action view Apr 01 02:37:38 or a drawable that draws text Apr 01 02:37:41 again, please accept my apologies Apr 01 02:38:17 everyone gets to screw up once... stick around, shoot the breeze, chew the fat, list some cliches... Apr 01 02:38:41 We could discuss things, but I don't want to talk about it Apr 01 02:38:48 they make you jump through special hoops to get here and everything Apr 01 02:39:02 actually, given the mostly hands-off moderation of this channel... everyone gets to screw up a few times, mostly Apr 01 02:39:29 weird, i'd never had to register with freenode before trying to join this room Apr 01 02:39:34 but yeah Apr 01 02:39:42 there's a lot of channels where you have to Apr 01 02:40:05 none i'd ever visited Apr 01 02:40:22 but that doesn't mean much, probably Apr 01 02:40:29 it's a way of putting a minor speedbump in front of real newbies, spammers, etc. Apr 01 02:40:41 makes sense Apr 01 02:41:22 now i feel special… Apr 01 02:41:40 i can follow instructions like a pro Apr 01 02:41:43 ha Apr 01 02:42:04 anyway sorry to have wasted everyone's time Apr 01 02:42:15 i'll remember this place as a place to shoot the shit in the future Apr 01 02:42:25 many peaces Apr 01 02:47:54 * capella doesn't think bankai_au was being facetious ... more like sardonic maybe **** ENDING LOGGING AT Tue Apr 01 02:59:59 2014